1 2016-11-11 Yao Qi <yao.qi@linaro.org>
3 * spu-tdep.c (spu_software_single_step): Don't call
4 get_frame_register_bytes, call get_frame_register_unsigned
7 2016-11-11 Yao Qi <yao.qi@linaro.org>
9 * cp-valprint.c (cp_print_value): Remove local base_valaddr.
10 * extension-priv.h (struct extension_language_ops)
11 <apply_val_pretty_printer>: Remove the second parameter.
12 Remove const from "struct value *". Callers updated.
13 * extension.c (apply_ext_lang_val_pretty_printer): Update
14 comments. Remove parameter valaddr. Remove const from
16 * extension.h (apply_ext_lang_val_pretty_printer): Update
18 * guile/guile-internal.h (gdbscm_apply_val_pretty_printer):
20 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
21 Remove parameter valaddr. Remove const from "struct value *".
22 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer):
24 * python/python-internal.h (gdbpy_apply_val_pretty_printer):
27 2016-11-11 Yao Qi <yao.qi@linaro.org>
29 * c-lang.h (cp_print_value_fields): Update declaration.
30 * cp-valprint.c (cp_print_value): Update declaration.
31 (cp_print_value_fields): Remove parameter valaddr. Callers
33 (cp_print_value): Likewise.
35 2016-11-09 Tom Tromey <tom@tromey.com>
37 * varobj.h (varobj_get_display_hint): Change return type.
38 * varobj.c (varobj_get_display_hint): Return unique_xmalloc_ptr.
39 (varobj_value_get_print_value): Update.
40 * python/python.c (gdbpy_before_prompt_hook, gdbpy_print_stack)
41 (gdbpy_apply_type_printers): Update.
42 * python/python-internal.h (unicode_to_target_string)
43 (python_string_to_target_string, python_string_to_host_string)
44 (gdbpy_obj_to_string, gdbpy_exception_to_string)
45 (gdbpy_get_display_hint): Change return types.
46 * python/py-varobj.c (py_varobj_iter_next): Update.
47 * python/py-value.c (valpy_getitem, convert_value_from_python):
49 * python/py-utils.c (unicode_to_encoded_string)
50 (unicode_to_target_string, python_string_to_target_string)
51 (python_string_to_host_string, gdbpy_obj_to_string)
52 (gdbpy_exception_to_string): Return unique_xmalloc_ptr.
53 * python/py-unwind.c (pyuw_parse_register_id): Update.
54 * python/py-type.c (typy_getitem): Update.
55 * python/py-prettyprint.c (gdbpy_get_display_hint)
56 (print_stack_unless_memory_error, print_children)
57 (gdbpy_apply_val_pretty_printer): Update.
58 * python/py-param.c (set_parameter_value): Update.
59 (get_doc_string, call_doc_function): Return unique_xmalloc_ptr.
60 (get_set_value, get_show_value, compute_enum_values, parmpy_init):
62 * python/py-infthread.c (thpy_set_name): Update.
63 * python/py-function.c (fnpy_call, fnpy_init): Update.
64 * python/py-framefilter.c (extract_sym): Change "name" to
66 (enumerate_args, enumerate_locals): Update.
67 (py_print_frame): Use unique_xmalloc_ptr.
68 * python/py-frame.c (frapy_read_var): Update. Remove cleanup.
69 * python/py-cmd.c (cmdpy_function, cmdpy_completer, cmdpy_init):
71 * python/py-breakpoint.c (bppy_set_condition): Use
73 (bppy_init): Likewise. Remove cleanup.
74 (local_setattro): Update.
75 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_list_children)
76 (varobj_update_one): Update.
78 2016-11-09 Pedro Alves <palves@redhat.com>
80 * ax-gdb.c (agent_eval_command_one): Use std::move instead of
82 * ax.h (agent_expr_up): Use std::unique_ptr instead of
84 * breakpoint.c (parse_cond_to_aexpr): Use std::move instead of
86 * tracepoint.c (collection_list::collect_symbol): Likewise.
87 (collection_list::~collection_list): Delete.
88 (encode_actions_1): Use std::move instead of gdb::move.
89 (collection_list::add_aexpr): Use std::move instead of
91 * tracepoint.h (collection_list) <~collection_list>: Delete
93 <m_aexprs>: Now a vector of agent_ptr_up.
95 2016-11-09 Pedro Alves <palves@redhat.com>
97 * main.c (struct cmdarg): Add constructor.
98 (captured_main_1): Use vector::emplace_back.
99 * tracepoint.c (collection_list::add_memrange): Likewise.
101 2016-11-09 Andreas Arnez <arnez@linux.vnet.ibm.com>
103 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove
104 failed-xmalloc handling.
106 2016-11-09 Andreas Arnez <arnez@linux.vnet.ibm.com>
108 * tui/tui-winsource.c (tui_alloc_source_buffer): Subtract
109 highlight box's overhead when calculating the content height.
111 2016-11-09 Andreas Arnez <arnez@linux.vnet.ibm.com>
113 * tui/tui-disasm.c (tui_set_disassem_content): Fix calculation of
114 the longest disassembly line's length.
116 2016-11-09 Andreas Arnez <arnez@linux.vnet.ibm.com>
118 * tui/tui-disasm.c (tui_set_disassem_content): Fix line buffer
119 overrun due to unchecked strcpy.
121 2016-11-09 Tristan Gingold <gingold@adacore.com>
123 * darwin-nat.c (find_inferior_task_it): Fix indentation.
124 (find_inferior_notify_it): Remove.
125 (find_inferior_pid_it): New function.
126 (darwin_find_inferior_by_notify): Remove.
127 (darwin_find_inferior_by_pid): New function.
128 (darwin_find_new_inferior): New function.
129 (darwin_check_message_ndr): New function from
130 darwin_decode_exception_message.
131 (darwin_decode_exception_message): Call darwin_check_message_ndr.
132 Handle SIGTRAP addressed to an unknown task (when a task spawned).
133 (darwin_decode_notify_message): New function.
134 (darwin_decode_message): Handle unknown task.
135 (darwin_deallocate_threads): New function from darwin_mourn_inferior.
136 (darwin_mourn_inferior): Use darwin_deallocate_threads and
137 darwin_deallocate_exception_ports.
138 (darwin_deallocate_exception_ports): New function from
139 darwin_mourn_inferior.
140 (darwin_setup_exceptions): New function from darwin_attach_pid.
141 (darwin_setup_request_notification): Likewise.
142 (darwin_attach_pid): Call darwin_setup_request_notification and
143 darwin_setup_request_notification.
145 2016-11-08 Tom Tromey <tom@tromey.com>
147 * python/py-framefilter.c (py_print_frame): Use
148 get_addr_from_python. Check for errors when getting line number.
150 2016-11-08 Yao Qi <yao.qi@linaro.org>
152 * ada-lang.h (ada_val_print): Remove second parameter. Remove
153 const from "struct value *".
154 * ada-valprint.c (print_field_values): Remove const from
156 (val_print_packed_array_elements): Likewise.
157 (print_variant_part): Likewise.
158 (ada_val_print_string): Likewise.
159 (ada_val_print_gnat_array): Likewise.
160 (ada_val_print_ptr): Likewise.
161 (ada_val_print_num): Likewise.
162 (ada_val_print_enum): Likewise.
163 (ada_val_print_flt): Likewise.
164 (ada_val_print_union): Likewise.
165 (ada_val_print_struct_union): Likewise.
166 (ada_val_print_ref): Likewise.
167 (ada_val_print_1): Remove second parameter. Remove const from
169 (ada_val_print): Likewise.
170 * c-lang.h (c_val_print): Likewise.
171 * c-valprint.c (c_val_print_array): Remove const from
173 (c_val_print_ptr): Likewise.
174 (c_val_print_struct): Likewise.
175 (c_val_print_union): Likewise.
176 (c_val_print_int): Likewise.
177 (c_val_print_memberptr): Likewise.
178 (c_val_print): Remove second parameter. Remove const from
179 "struct value *". All callers updated.
180 * cp-valprint.c (cp_print_value): Remove const from
182 (cp_print_value_fields): Likewise.
183 (c_val_print_value): Likewise.
184 * d-lang.h (d_val_print): Remove second parameter. Remove const
185 from "struct value *".
186 * d-valprint.c (dynamic_array_type): Likewise.
187 (d_val_print): Likewise.
188 * f-lang.h (f_val_print): Likewise.
189 * f-valprint.c (f_val_print): Likewise.
190 * go-lang.h (go_val_print): Likewise.
191 * go-valprint.c (print_go_string): Likewise.
192 (go_val_print): Likewise.
193 * language.c (unk_lang_val_print): Likewise.
194 * language.h (struct language_defn) <la_val_print>: Likewise.
196 (LA_VAL_PRINT): Remove.
197 * m2-lang.h (m2_val_print): Remove const from
199 * m2-valprint.c (m2_print_array_contents): Likewise.
200 (m2_val_print): Likewise.
201 * p-lang.h (pascal_val_print): Remove second parameter. Remove
202 const from "struct value *".
203 (pascal_object_print_value_fields): Likewise.
204 * p-valprint.c (pascal_val_print): Likewise.
205 (pascal_object_print_value_fields): Likewise.
206 (pascal_object_print_value): Likewise.
207 * rust-lang.c (rust_get_disr_info): Likewise.
208 (val_print_struct): Likewise.
209 (rust_val_print): Likewise.
210 * valprint.c (generic_val_print_array): Likewise.
211 (generic_val_print_ptr): Likewise.
212 (generic_val_print_memberptr): Likewise.
213 (generic_val_print_ref): Likewise.
214 (generic_val_print_enum): Likewise.
215 (generic_val_print_flags): Likewise.
216 (generic_val_print_func): Likewise.
217 (generic_val_print_bool): Likewise.
218 (generic_val_print_int): Likewise.
219 (generic_val_print_char): Likewise.
220 (generic_val_print_float): Likewise.
221 (generic_val_print_decfloat): Likewise.
222 (generic_val_print_complex): Likewise.
223 (generic_val_print): Likewise.
224 (val_print): Likewise.
225 (common_val_print): Likewise.
226 (val_print_type_code_flags): Likewise.
227 (val_print_scalar_formatted): Likewise.
228 (val_print_array_elements): Likewise.
229 * valprint.h (val_print_array_elements): Update declaration.
230 (val_print_scalar_formatted): Likewise.
231 (generic_val_print): Likewise.
232 * value.h (val_print): Likewise.
234 2016-11-08 Yao Qi <yao.qi@linaro.org>
236 * mt-tdep.c (mt_registers_info): Call
237 get_frame_register_value instead of
238 deprecated_frame_register_read.
239 * sh64-tdep.c (sh64_do_register): Likewise.
241 2016-11-08 Pedro Alves <palves@redhat.com>
243 * ax.h (agent_expr_p): Delete.
244 (DEF_VEC_P (agent_expr_p)): Delete.
245 * breakpoint.c (build_target_condition_list)
246 (build_target_command_list): Adjust to use of std::vector.
247 (bp_location_dtor): Remove now unnecessary VEC_free calls.
248 * breakpoint.h: Include <vector>.
249 (struct bp_target_info) <conditions, tcommands>: Now
251 * remote.c (remote_add_target_side_condition): bp_tgt->conditions
252 is now a std::vector; adjust.
253 (remote_add_target_side_commands, remote_insert_breakpoint):
254 bp_tgt->tcommands is now a std::vector; adjust.
256 2016-11-08 Pedro Alves <palves@redhat.com>
258 * ax-gdb.c (is_nontrivial_conversion): Use agent_expr_up.
259 (gen_trace_for_var, gen_trace_for_expr, gen_eval_for_expr)
260 (gen_trace_for_return_address, gen_printf): Use and return an
261 agent_expr_up. Don't use make_cleanup_free_agent_expr.
262 (agent_eval_command_one, maint_agent_printf_command): Use
263 agent_expr_up. Don't use make_cleanup_free_agent_expr.
264 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
265 (gen_trace_for_return_address, gen_eval_for_expr, gen_printf): Use
267 * ax-general.c (new_agent_expr): Rename to ...
268 (agent_expr::agent_expr): ... this, and now a constructor.
269 (free_agent_expr): Rename to ...
270 (agent_expr::~agent_exp): ... this, and now a destructor.
271 (do_free_agent_expr_cleanup, make_cleanup_free_agent_expr):
273 * ax.h (struct agent_expr): Add ctor/dtor.
274 (agent_expr_up): New typedef.
275 (new_agent_expr, free_agent_expr, make_cleanup_free_agent_expr):
277 * breakpoint.c (parse_cond_to_aexpr): Use and return an
278 agent_expr_up. Don't use make_cleanup_free_agent_expr.
279 (build_target_condition_list): Adjust to use agent_expr_up.
280 (parse_cmd_to_aexpr): Use and return an agent_expr_up. Don't use
281 make_cleanup_free_agent_expr.
282 (build_target_command_list): Adjust to use agent_expr_up.
283 (force_breakpoint_reinsertion): Adjust to use agent_expr_up.
284 (bp_location_dtor): Remove unnecessary free_agent_expr and xfree
286 * breakpoint.h (struct bp_target_info) <cond_bytecode,
287 cmd_bytecode>: Now agent_expr_up's.
288 * remote.c (remote_download_tracepoint): Adjust to use
289 agent_expr_up and remove use of make_cleanup_free_agent_expr.
290 * tracepoint.c (validate_actionline, collect_symbol): Adjust to
291 use agent_expr_up and remove uses of make_cleanup_free_agent_expr.
292 (collection_list::~collection_list): Call delete instead of
294 (encode_actions_1): Adjust to use agent_expr_up and remove uses of
295 make_cleanup_free_agent_expr.
296 (add_aexpr): Change parameter type to agent_expr_up; Return a raw
299 2016-11-08 Pedro Alves <palves@redhat.com>
301 * ada-lang.c (ada_name_for_lookup, type_as_string): Use and return
303 (type_as_string_and_cleanup): Delete.
304 (ada_lookup_struct_elt_type): Use type_as_string.
305 * ada-lang.h (ada_name_for_lookup): Now returns std::string.
306 * ada-varobj.c (ada_varobj_scalar_image): Return a std::string.
307 (ada_varobj_describe_child): Make 'child_name' and
308 'child_path_expr' parameters std::string pointers.
309 (ada_varobj_describe_struct_child, ada_varobj_describe_ptr_child):
310 Likewise, and use string_printf.
311 (ada_varobj_describe_simple_array_child)
312 (ada_varobj_describe_child): Likewise.
313 (ada_varobj_get_name_of_child, ada_varobj_get_path_expr_of_child)
314 (ada_varobj_get_value_image)
315 (ada_varobj_get_value_of_array_variable)
316 (ada_varobj_get_value_of_variable, ada_name_of_variable)
317 (ada_name_of_child, ada_path_expr_of_child)
318 (ada_value_of_variable): Now returns std::string. Use
320 (ada_value_of_child): Adjust.
321 * break-catch-throw.c (check_status_exception_catchpoint): Adjust
323 * breakpoint.c (watch_command_1): Adjust to use std::string.
324 * c-lang.c (c_get_string): Adjust to use std::string.
325 * c-typeprint.c (print_name_maybe_canonical): Use std::string.
326 * c-varobj.c (varobj_is_anonymous_child): Use ==/!= std::string
328 (c_name_of_variable): Now returns a std::string.
329 (c_describe_child): The 'cname' and 'cfull_expression' output
330 parameters are now std::string pointers. Adjust.
331 (c_name_of_child, c_path_expr_of_child, c_value_of_variable)
332 (cplus_number_of_children): Adjust to use std::string and
334 (cplus_name_of_variable): Now returns a std::string.
335 (cplus_describe_child): The 'cname' and 'cfull_expression' output
336 parameters are now std::string pointers. Adjust.
337 (cplus_name_of_child, cplus_path_expr_of_child)
338 (cplus_value_of_variable): Now returns a std::string.
339 * cp-abi.c (cplus_typename_from_type_info): Return std::string.
340 * cp-abi.h (cplus_typename_from_type_info): Return std::string.
341 (struct cp_abi_ops) <get_typename_from_type_info>: Return
343 * cp-support.c (inspect_type): Use std::string.
344 (cp_canonicalize_string_full, cp_canonicalize_string_no_typedefs)
345 (cp_canonicalize_string): Return std::string and adjust.
346 * cp-support.h (cp_canonicalize_string)
347 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string_full):
349 * dbxread.c (read_dbx_symtab): Use std::string.
350 * dwarf2read.c (dwarf2_canonicalize_name): Adjust to use std::string.
351 * gdbcmd.h (lookup_struct_elt_type): Adjust to use std::string.
352 * gnu-v3-abi.c (gnuv3_get_typeid): Use std::string.
353 (gnuv3_get_typename_from_type_info): Return a std::string and
355 (gnuv3_get_type_from_type_info): Adjust to use std::string.
356 * guile/guile.c (gdbscm_execute_gdb_command): Adjust to use
358 * infcmd.c (print_return_value_1): Adjust to use std::string.
359 * linespec.c (find_linespec_symbols): Adjust to
360 demangle_for_lookup API change. Use std::string.
361 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_set_format)
362 (mi_cmd_var_info_type, mi_cmd_var_info_path_expression)
363 (mi_cmd_var_info_expression, mi_cmd_var_evaluate_expression)
364 (mi_cmd_var_assign, varobj_update_one): Adjust to use std::string.
365 * minsyms.c (lookup_minimal_symbol): Use std::string.
366 * python/py-varobj.c (py_varobj_iter_next): Use new instead of
367 XNEW. vitem->name is a std::string now, adjust.
368 * rust-exp.y (convert_ast_to_type, convert_name): Adjust to use
370 * stabsread.c (define_symbol): Adjust to use std::string.
371 * symtab.c (demangle_for_lookup): Now returns 'const char *'. Add
372 a demangle_result_storage parameter. Use it for storage.
373 (lookup_symbol_in_language)
374 (lookup_symbol_in_objfile_from_linkage_name): Adjust to new
375 demangle_for_lookup API.
376 * symtab.h (struct demangle_result_storage): New type.
377 (demangle_for_lookup): Now returns 'const char *'. Add a
378 demangle_result_storage parameter.
379 * typeprint.c (type_to_string): Return std::string and use
381 * value.h (type_to_string): Change return type to std::string.
382 * varobj-iter.h (struct varobj_item) <name>: Now a std::string.
383 (varobj_iter_delete): Use delete instead of xfree.
384 * varobj.c (create_child): Return std::string instead of char * in
386 (name_of_variable, name_of_child, my_value_of_variable): Return
387 std::string instead of char *.
388 (varobj_create, varobj_get_handle): Constify 'objname' parameter.
389 Adjust to std::string fields.
390 (varobj_get_objname): Return a const char * instead of a char *.
391 (varobj_get_expression): Return a std::string.
392 (varobj_list_children): Adjust to use std::string.
393 (varobj_get_type): Return a std::string.
394 (varobj_get_path_expr): Return a const char * instead of a char *.
395 Adjust to std::string fields.
396 (varobj_get_formatted_value, varobj_get_value): Return a
398 (varobj_set_value): Change type of 'expression' parameter to
399 std::string. Use std::string.
400 (install_new_value): Use std::string.
401 (delete_variable_1): Adjust to use std::string.
402 (create_child): Change the 'name' parameter to a std::string
403 reference. Swap it into the new item's name.
404 (create_child_with_value): Swap item's name into the new child's
405 name. Use string_printf.
406 (new_variable): Use new instead of XNEW.
407 (free_variable): Don't xfree fields that are now std::string.
408 (name_of_variable, name_of_child): Now returns std::string.
409 (value_of_root): Adjust to use std::string.
410 (my_value_of_variable, varobj_value_get_print_value): Return
412 (varobj_value_get_print_value): Adjust to use ui_file_as_string
414 * varobj.h (struct varobj) <name, path_expr, obj_name,
415 print_value>: Now std::string's.
416 <name_of_variable, name_of_child, path_expr_of_child,
417 value_of_variable>: Return std::string.
418 (varobj_create, varobj_get_handle): Constify 'objname' parameter.
419 (varobj_get_objname): Return a const char * instead of a char *.
420 (varobj_get_expression, varobj_get_type): Return a std::string.
421 (varobj_get_path_expr): Return a const char * instead of a char *.
422 (varobj_get_formatted_value, varobj_get_value): Return a
424 (varobj_set_value): Constify 'expression' parameter.
425 (varobj_value_get_print_value): Return a std::string.
427 2016-11-08 Pedro Alves <palves@redhat.com>
429 * language.c (add_language): Use ui_file_as_string and adjust to
432 2016-11-08 Pedro Alves <palves@redhat.com>
433 Tom Tromey <tom@tromey.com>
435 * rust-lang.c (struct disr_info) <name>: Now a std::string.
436 (rust_get_disr_info): Use ui_file_as_string and adjust to use
438 (rust_val_print): Adjust to use std::string.
440 2016-11-08 Pedro Alves <palves@redhat.com>
442 * infrun.c (print_target_wait_results): Use ui_file_as_string and
445 2016-11-08 Pedro Alves <palves@redhat.com>
447 * ada-lang.c (type_as_string): Use ui_file_as_string and return
449 (type_as_string_and_cleanup): Delete.
450 (ada_lookup_struct_elt_type): Use type_as_string.
452 2016-11-08 Pedro Alves <palves@redhat.com>
454 * gdbarch.sh (verify_gdbarch): Use ui_file_as_string and
456 * gdbarch.c: Regenerate.
458 2016-11-08 Pedro Alves <palves@redhat.com>
460 * c-exp.y (OPERATOR NEW): Adjust to use ui_file_as_string and
463 2016-11-08 Pedro Alves <palves@redhat.com>
465 * c-lang.h (c_compute_program): Now returns std::string.
466 * compile/compile-internal.h (class compile_file_names): New
468 * compile/compile-object-load.c (compile_object_load): Replace
469 object_file and source_file parameters with a compile_file_names
471 * compile-object-load.h: Include "compile-internal.h".
472 (compile_object_load): Replace object_file and source_file
473 parameters with a compile_file_names parameter.
474 * compile/compile-c-support.c (c_compute_program): Now returns a
475 std::string. Use ui_file_as_string.
476 * compile/compile.c (get_new_file_names): Remove parameters and
477 return a compile_file_names instead.
478 (compile_to_object): Now returns a compile_file_names. Use
480 (eval_compile_command): Use compile_file_names.
481 * language.h (struct language_defn) <la_compute_program>: Now
484 2016-11-08 Pedro Alves <palves@redhat.com>
486 * cli/cli-setshow.c (do_show_command): Adjust to use
487 ui_file_as_string and std::string.
489 2016-11-08 Pedro Alves <palves@redhat.com>
491 * remote.c (escape_buffer): Use ui_file_as_string and return
493 (putpkt_binary, read_frame): Adjust to use std::string.
495 2016-11-08 Pedro Alves <palves@redhat.com>
497 * python/py-arch.c (archpy_disassemble): Use ui_file_as_string and
499 * python/py-breakpoint.c (bppy_get_commands): Use
500 ui_file_as_string and std::string.
501 * python/py-frame.c (frapy_str): Likewise.
502 * python/py-type.c (typy_str): Likewise.
503 * python/py-unwind.c (unwind_infopy_str): Likewise.
504 * python/py-value.c (valpy_str): Likewise.
506 2016-11-08 Pedro Alves <palves@redhat.com>
508 * printcmd.c (eval_command): Use ui_file_as_string and
511 2016-11-08 Pedro Alves <palves@redhat.com>
513 * top.c (quit_confirm): Use ui_file_as_string and std::string.
515 2016-11-08 Pedro Alves <palves@redhat.com>
517 * gdbcmd.h (execute_command_to_string): Now returns std::string.
518 (lookup_struct_elt_type): Adjust to use std::string.
519 * top.c (execute_command_to_string): Use ui_file_as_string and
521 * guile/guile.c (gdbscm_execute_gdb_command): Adjust to use
523 * python/python.c (execute_gdb_command): Adjust to use
526 2016-11-08 Pedro Alves <palves@redhat.com>
528 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Use
529 ui_file_as_string and adjust to use std::string.
530 * guile/scm-disasm.c (gdbscm_arch_disassemble): Likewise.
531 * guile/scm-frame.c (frscm_print_frame_smob): Likewise.
532 * guile/scm-type.c (tyscm_type_name): Use ui_file_as_string and
533 adjust to use std::string. Throw exception directly instead of
534 returning it in EXCP output parameter.
535 (tyscm_print_type_smob, gdbscm_type_print_name): Adjust to
536 tyscm_type_name interface change.
537 * guile/scm-value.c (vlscm_print_value_smob, gdbscm_value_print):
538 Use ui_file_as_string and std::string.
540 2016-11-08 Pedro Alves <palves@redhat.com>
542 * arm-tdep.c (_initialize_arm_tdep): Use ui_file_as_string and
545 2016-11-08 Pedro Alves <palves@redhat.com>
547 * utils.c (error_stream): Use ui_file_as_string and std::string.
549 2016-11-08 Pedro Alves <palves@redhat.com>
551 * ui-out.c (ui_out_field_stream): Use ui_file_as_string.
553 2016-11-08 Pedro Alves <palves@redhat.com>
555 * ada-valprint.c (ada_print_floating): Use ui_file_as_string and
558 2016-11-08 Pedro Alves <palves@redhat.com>
560 * xtensa-tdep.c (xtensa_verify_config): Use ui_file_as_string and
563 2016-11-08 Pedro Alves <palves@redhat.com>
565 * dwarf2read.c (dwarf2_compute_name): Use ui_file_as_string and
568 2016-11-08 Pedro Alves <palves@redhat.com>
570 * mi/mi-main.c (print_variable_or_computed): Constify 'expression'
572 (mi_cmd_trace_frame_collected): Call encode_actions instead of
573 encode_actions_and_make_cleanup. Adjust to use std::vector.
574 * tracepoint.c (memrange_cmp): Delete.
575 (memrange_comp): New.
576 (memrange_sortmerge): Take a memrange vector as parameter instead
577 of a collection_list. Use std::sort instead of qsort.
578 (add_register): Now a method of collection_list. Adjust to m_
579 prefix of data fields.
580 (add_memrange): Now a method of collection_list. Adjust to m_
581 prefix of data fields. Adjust to use std::vector.
582 (collect_symbol): Now a method of collection_list. Adjust to m_
583 prefix of data fields.
584 (do_collect_symbol): Adjust. Call add_wholly_collected instead of
585 accessing the vector directly.
586 (collection_list::add_wholly_collected): New.
587 (add_local_symbols): Now a method of collection_list.
588 (add_static_trace_data): Now a method of collection_list. Adjust
590 (clear_collection_list, do_clear_collection_list): Delete.
591 (init_collection_list): Delete.
592 (collection_list::collection_list): New.
593 (collection_list::~collection_list): New.
594 (stringify_collection_list): Rename to ...
595 (collection_list::stringify): ... this and adjust to being a
596 method of collection_list. Adjust to use of std::vector.
597 (append_exp): Now a method of collection_list. Use
598 ui_file_as_string. Adjust to std::vector.
599 (collection_list::finish): New.
600 (encode_actions_1): Adjust.
601 (encode_actions_and_make_cleanup): Rename to ...
602 (encode_actions)... this. No longer returns a cleanup. No longer
603 call init_collection_list nor install do_clear_collection_list
604 cleanups. Call collection_list::finish instead of
605 memrange_sortmerge directly.
606 (encode_actions_rsp): Adjust to call encode_actions instead of
607 encode_actions_and_make_cleanup. Adjust to method renames.
608 (add_aexpr): Now a method of collection_list.
609 * tracepoint.h: Include <vector> and <string>.
610 (struct memrange): Add constructors.
611 (struct collection_list): Now a class.
612 (class collection_list) <collection_list, ~collection_list,
613 add_wholly_collected, append_exp, add_aexpr, add_register,
614 add_memrange, collect_symbol, add_local_symbols,
615 add_static_trace_data, finish, stringify, wholly_collected, and
616 computed>: New methods.
617 <regs_mask>: Rename to ...
618 <m_regs_mask>: ... this.
619 <listsize, next_memrange, list>: Delete fields.
620 <m_memranges>: New field.
621 <aexpr_listsize, next_aexpr_elt, aexpr_list>: Delete fields.
622 <m_aexprs>: New field.
623 <strace_data>: Rename to ...
624 <m_strace_data>: ... this. Now a bool.
625 <wholly_collected>: Rename to ...
626 <m_wholly_collected>: ... this. Now a std::vector<std::string>.
627 <computed>: Rename to ...
628 <m_computed>: ... this. Now a std::vector<std::string>.
629 (encode_actions_and_make_cleanup): Delete declaration.
630 (encode_actions): New declaration.
632 2016-11-08 Pedro Alves <palves@redhat.com>
634 * ui-file.c (do_ui_file_as_string, ui_file_as_string): New
636 * ui-file.h: Include <string>.
637 (ui_file_as_string): New declaration.
639 2016-11-08 Pedro Alves <palves@redhat.com>
641 * ada-lang.c (ada_read_renaming_var_value): Use expression_up.
642 (struct ada_catchpoint_location) <excep_cond_expr>: Now an
644 (ada_catchpoint_location_dtor): Reset excep_cond_expr instead of
646 (create_excep_cond_exprs): Use expression_up and gdb::move.
647 (allocate_location_exception): Use new instead of XNEW.
648 (should_stop_exception): Likewise. Adjust to use expression_up.
649 (create_ada_exception_catchpoint): Use new instead of XNEW.
650 * ax-gdb.c (agent_eval_command_one): Use expression_up instead of
652 (maint_agent_printf_command): Use expression_up.
653 * break-catch-sig.c (create_signal_catchpoint): Use new instead of
655 * break-catch-syscall.c (create_syscall_event_catchpoint):
657 * break-catch-throw.c (handle_gnu_v3_exceptions): Use new instead
658 of XCNEW. Use gdb::unique_ptr instead of cleanups.
659 * breakpoint.c (set_breakpoint_condition, update_watchpoint)
660 (parse_cmd_to_aexpr, watchpoint_check)
661 (bpstat_check_breakpoint_conditions, watchpoint_locations_match):
662 Adjust to use expression_up.
663 (init_bp_location): Adjust.
664 (free_bp_location): Use delete instead of xfree.
665 (set_raw_breakpoint_without_location, set_raw_breakpoint)
666 (add_solib_catchpoint, create_fork_vfork_event_catchpoint)
667 (new_single_step_breakpoint, create_breakpoint_sal): Use new
669 (find_condition_and_thread): Adjust to use expression_up.
670 (create_breakpoint): Use new instead of XNEW.
671 (dtor_watchpoint): Don't xfree expression pointers, they're
673 (insert_watchpoint, remove_watchpoint): Adjust.
674 (watch_command_1): Use expression_up. Use new instead of XCNEW.
675 (catch_exec_command_1): Use new instead of XNEW.
676 (bp_location_dtor): Don't xfree expression pointers, they're
678 (base_breakpoint_allocate_location)
679 (strace_marker_create_breakpoints_sal): Use new instead of XNEW.
680 (delete_breakpoint): Use delete instead of xfree.
681 * breakpoint.h (struct bp_location) <cond>: Now an
682 unique_ptr<expression> instead of a raw pointer.
683 (struct watchpoint) <exp, cond_exp>: Likewise.
684 * cli/cli-script.c (execute_control_command): Use expression_up
686 * dtrace-probe.c (dtrace_process_dof_probe): Use expression_up.
687 * eval.c (parse_and_eval_address, parse_and_eval_long)
688 (parse_and_eval, parse_to_comma_and_eval, parse_and_eval_type):
689 Use expression_up instead of cleanups.
690 * expression.h (expression_up): New typedef.
691 (parse_expression, parse_expression_with_language, parse_exp_1):
692 Change return type to expression_up.
693 * mi/mi-main.c (mi_cmd_data_evaluate_expression)
694 (print_variable_or_computed): Use expression_up.
695 * objc-lang.c (print_object_command): Use expression_up instead of
697 * parse.c (parse_exp_1, parse_exp_in_context)
698 (parse_exp_in_context_1, parse_expression)
699 (parse_expression_with_language): Return an expression_up instead
701 (parse_expression_for_completion): Use expression_up.
702 * printcmd.c (struct display) <exp>: Now an expression_up instead
704 (print_command_1, output_command_const, set_command, x_command):
705 Use expression_up instead of cleanups.
706 (display_command): Likewise. Use new instead of XNEW.
707 (free_display): Use delete instead of xfree.
708 (do_one_display): Adjust to use expression_up.
709 * remote.c (remote_download_tracepoint): Likewise.
710 * stack.c (return_command): Likewise.
711 * tracepoint.c (validate_actionline, encode_actions_1): Use
712 expression_up instead of cleanups.
713 * typeprint.c (whatis_exp, maintenance_print_type): Likewise.
714 * value.c (init_if_undefined_command): Likewise.
715 * varobj.c (struct varobj_root) <exp>: Now an expression_up
716 instead of a raw pointer.
717 (varobj_create): Adjust.
718 (varobj_set_value): Use an expression_up instead of cleanups.
719 (new_root_variable): Use new instead of XNEW.
720 (free_variable): Use delete instead of xfree.
721 (value_of_root_1): Use std::swap.
723 2016-11-08 Pedro Alves <palves@redhat.com>
725 * cli/cli-script.c (execute_control_command): Use std::string
727 (locate_arg): Constify return type.
728 (insert_args): Constify paremeter. Simplify using std::string.
729 Return a std::string.
731 2016-11-08 Pedro Alves <palves@redhat.com>
733 * breakpoint.c (struct commands_info) <arg>: Constify.
734 (commands_command_1): Constify 'arg' parameter. Use std::string
736 (commands_from_control_command): Constify 'arg' parameter.
737 (map_breakpoint_numbers): Constify 'args' parameter.
738 * breakpoint.h (commands_from_control_command): Constify 'arg'
741 2016-11-08 Pedro Alves <palves@redhat.com>
743 * cli/cli-script.c (execute_control_command): Assume insert_args
745 (insert_args): Assume xmalloc never returns NULL.
747 2016-11-08 Pedro Alves <palves@redhat.com>
749 * Makefile.in (COMMON_OBS): Add utils-selftests.o.
750 * common/common-utils.c (string_printf): New function.
751 * common/common-utils.h: Include <string>.
752 (string_printf): Declare.
753 * utils-selftests.c: New file.
755 2016-11-08 Yao Qi <yao.qi@linaro.org>
757 * aarch64-tdep.c (aarch64_software_single_step): Return
758 VEC (CORE_ADDR) *. Return NULL instead of 0. Don't call
759 insert_single_step_breakpoint.
760 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Likewise.
761 (alpha_software_single_step): Likewise.
762 * alpha-tdep.h (alpha_software_single_step): Update declaration.
763 * arm-linux-tdep.c (arm_linux_software_single_step): Return
764 VEC (CORE_ADDR) *. Return NULL instead of 0.
765 * arm-tdep.c (arm_software_single_step): Return NULL instead of 0.
766 * arm-tdep.h (arm_software_single_step): Update declaration.
767 * breakpoint.c (insert_single_step_breakpoints): New function.
768 * breakpoint.h (insert_single_step_breakpoints): Declare.
769 * cris-tdep.c (cris_software_single_step): Return
770 VEC (CORE_ADDR) *. Don't call insert_single_step_breakpoint.
771 * gdbarch.sh (software_single_step): Change it to return
773 * gdbarch.c, gdbarch.h: Regenerated.
774 * infrun.c (maybe_software_singlestep): Adjust.
775 * mips-tdep.c (mips_deal_with_atomic_sequence): Return
776 VEC (CORE_ADDR) *. Don't call insert_single_step_breakpoint.
777 (micromips_deal_with_atomic_sequence): Likewise.
778 (deal_with_atomic_sequence): Likewise.
779 (mips_software_single_step): Likewise.
780 * mips-tdep.h (mips_software_single_step): Update declaration.
781 * moxie-tdep.c (moxie_software_single_step): Likewise.
782 * nios2-tdep.c (nios2_software_single_step): Likewise.
783 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Update
785 * record-full.c (record_full_resume): Adjust.
786 (record_full_wait_1): Likewise.
787 * rs6000-aix-tdep.c (rs6000_software_single_step): Return
788 VEC (CORE_ADDR) *. Don't call insert_single_step_breakpoint.
789 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Return
790 VEC (CORE_ADDR) *. Don't call insert_single_step_breakpoint.
791 * s390-linux-tdep.c (s390_software_single_step): Likewise.
792 * sparc-tdep.c (sparc_software_single_step): Likewise.
793 * spu-tdep.c (spu_software_single_step): Likewise.
794 * tic6x-tdep.c (tic6x_software_single_step): Likewise.
796 2016-11-08 Yao Qi <yao.qi@linaro.org>
798 * arm-linux-tdep.c (arm_linux_software_single_step): Write
799 adjusted address back to vector. Call insert_single_step_breakpoint
801 * arm-tdep.c (arm_software_single_step): Likewise.
803 2016-11-08 Yao Qi <yao.qi@linaro.org>
805 * arm-linux-tdep.c (arm_linux_software_single_step): Don't
806 call arm_insert_single_step_breakpoint, call
807 insert_single_step_breakpoint instead.
808 * arm-tdep.c (arm_insert_single_step_breakpoint): Remove.
809 (arm_software_single_step): Don't call
810 arm_insert_single_step_breakpoint, call
811 insert_single_step_breakpoint instead.
812 * arm-tdep.h (arm_insert_single_step_breakpoint): Remove
815 2016-11-08 Cordian A. Daniluk <th3c0r1uk@gmail.com>
818 * breakpoint.c (check_fast_tracepoint_sals): Don't print duplicate
821 2016-11-08 Yao Qi <yao.qi@linaro.org>
823 * rust-lang.c (val_print_struct): Fix indentation.
825 2016-11-08 Lionel Flandrin <lionel@svkt.org>
827 * remote.c (process_g_packet): Detect truncated registers in 'g'
828 packets and raise an error.
830 2016-11-07 Doug Evans <dje@google.com>
832 * guile/scm-value.c (gdbscm_value_field): Fix call to value_struct_elt.
833 * python/py-value.c (valpy_getitem): Ditto.
835 2016-11-07 Doug Evans <dje@google.com>
837 * i386-tdep.c (i386_gdbarch_init): Add comments.
839 2016-11-07 Doug Evans <dje@google.com>
841 * python/py-unwind.c (unwind_infopy_str): Fix use of VEC_iterate.
843 2016-11-07 Doug Evans <dje@google.com>
845 * configure.tgt (x86_64-*-elf*): Remove i386bsd-tdep.o.
847 2016-11-04 Simon Marchi <simon.marchi@polymtl.ca>
849 * maint.c (scoped_command_stats::scoped_command_stats): Fix typo.
850 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Likewise.
851 * ppcobsd-tdep.c (_initialize_ppcobsd_tdep): Likewise.
852 * ui-out.c (ui_out_new): Likewise.
853 * utils.c (init_page_info): Likewise.
854 (reset_prompt_for_continue_wait_time): Likewise.
855 * windows-nat.c (windows_init_thread_list): Likewise.
856 * xtensa-tdep.c (call0_analyze_prologue): Likewise.
858 2016-10-29 Manish Goregaokar <manish@mozilla.com>
860 * rust-exp.y: Parse `sizeof(exp)` as `UNOP_SIZEOF`.
862 2016-10-28 Manish Goregaokar <manish@mozilla.com>
864 * rust-lang.c (rust_union_is_untagged): Add function to check if a
865 union is an untagged union.
866 (rust_val_print): Handle printing of untagged union values.
867 (rust_print_type): Handle printing of untagged union types.
868 (rust_evaluate_subexp): Handle evaluating field access on untagged
871 2016-10-27 Manish Goregaokar <manish@mozilla.com>
873 * rust-lang.c (rust_get_disr_info): Treat univariant enums without
874 discriminants as encoded enums with a real field.
875 * rust-lang.c (rust_evaluate_subexp): Handle field access on
876 encoded struct-like enums.
878 2016-11-03 Yao Qi <yao.qi@linaro.org>
880 * Makefile.in (.y.c): Replace YY_NULL with YY_NULLPTR.
882 2016-11-03 Yao Qi <yao.qi@linaro.org>
883 Pedro Alves <palves@redhat.com>
885 * aarch64-tdep.c (aarch64_default_breakpoint): Change it to
886 constexpr. Don't use GDBARCH_BREAKPOINT_MANIPULATION.
887 (aarch64_gdbarch_init): Don't use
888 SET_GDBARCH_BREAKPOINT_MANIPULATION.
889 * alpha-tdep.c (break_insn): Rename to alpha_break_insn.
890 Don't use GDBARCH_BREAKPOINT_MANIPULATION.
891 (alpha_gdbarch_init): Don't use
892 SET_GDBARCH_BREAKPOINT_MANIPULATION.
893 * arc-tdep.c (arc_gdbarch_init): Don't use
894 SET_GDBARCH_BREAKPOINT_MANIPULATION.
895 * arch-utils.h (GDBARCH_BREAKPOINT_MANIPULATION): Remove.
896 (struct bp_manipulation): New.
897 (SET_GDBARCH_BREAKPOINT_MANIPULATION): Remove.
898 (struct bp_manipulation_endian): New.
899 (BP_MANIPULATION): New.
900 (BP_MANIPULATION_ENDIAN): New.
901 * arm-tdep.c (arm_gdbarch_init): Don't use
902 SET_GDBARCH_BREAKPOINT_MANIPULATION.
903 * avr-tdep.c (avr_break_insn): Change it constexpr.
904 (avr_gdbarch_init): Don't use
905 SET_GDBARCH_BREAKPOINT_MANIPULATION.
906 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
907 * cris-tdep.c (cris_gdbarch_init): Likewise.
908 * frv-tdep.c (breakpoint): Rename it to frv_break_insn, and
909 change its type to constexpr. Don't use
910 GDBARCH_BREAKPOINT_MANIPULATION.
911 (frv_gdbarch_init): Don't use
912 SET_GDBARCH_BREAKPOINT_MANIPULATION.
913 * ft32-tdep.c (breakpoint): Rename it to ft32_break_insn and
914 change its type to constexpr. Don't use
915 GDBARCH_BREAKPOINT_MANIPULATION.
916 (ft32_gdbarch_init): Don't use
917 SET_GDBARCH_BREAKPOINT_MANIPULATION.
918 * h8300-tdep.c (breakpoint): Rename it to h8300_break_insn.
919 Don't use GDBARCH_BREAKPOINT_MANIPULATION.
920 (h8300_gdbarch_init): Don't use
921 SET_GDBARCH_BREAKPOINT_MANIPULATION.
922 * hppa-tdep.c (breakpoint): Rename it to h8300_break_insn.
923 Don't use GDBARCH_BREAKPOINT_MANIPULATION.
924 (hppa_gdbarch_init): Don't use
925 SET_GDBARCH_BREAKPOINT_MANIPULATION.
926 * i386-tdep.c (break_insn): Rename it to i386_break_insn.
927 Don't use GDBARCH_BREAKPOINT_MANIPULATION.
928 (i386_gdbarch_init): Don't use
929 SET_GDBARCH_BREAKPOINT_MANIPULATION.
930 * iq2000-tdep.c (iq2000_gdbarch_init): Don't use
931 SET_GDBARCH_BREAKPOINT_MANIPULATION.
932 * lm32-tdep.c (breakpoint): Rename it to lm32_break_insn and
933 change its type to constexpr. Don't use
934 GDBARCH_BREAKPOINT_MANIPULATION.
935 (lm32_gdbarch_init): Don't use
936 SET_GDBARCH_BREAKPOINT_MANIPULATION.
937 * m32c-tdep.c (break_insn): Rename it to m32c_break_insn and change
938 its type to constexpr. Don't use GDBARCH_BREAKPOINT_MANIPULATION.
939 (m32c_gdbarch_init): Don't use
940 SET_GDBARCH_BREAKPOINT_MANIPULATION.
941 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
942 * m68hc11-tdep.c (breakpoint): Rename it to m68hc11_break_insn and
943 change its type to constexpr.
944 Don't use GDBARCH_BREAKPOINT_MANIPULATION.
945 (m68hc11_gdbarch_init): Don't use SET_GDBARCH_BREAKPOINT_MANIPULATION.
946 * m68k-tdep.c (break_insn): Rename it to m68k_break_insn and change
947 its type to constexpr. Don't use GDBARCH_BREAKPOINT_MANIPULATION.
948 (m68k_gdbarch_init): Don't use
949 SET_GDBARCH_BREAKPOINT_MANIPULATION.
950 * m88k-tdep.c (break_insn): Rename it to m88k_break_insn and change
951 its type to constexpr. Don't use GDBARCH_BREAKPOINT_MANIPULATION.
952 (m88k_gdbarch_init): Don't use
953 SET_GDBARCH_BREAKPOINT_MANIPULATION.
954 * mep-tdep.c (breakpoint): Rename it to mep_break_insn and change
955 its type to constexpr. Don't use GDBARCH_BREAKPOINT_MANIPULATION.
956 (mep_gdbarch_init): Don't use
957 SET_GDBARCH_BREAKPOINT_MANIPULATION.
958 * microblaze-tdep.c (break_insn): Rename it to
959 microblaze_break_insn and change its type to constexpr. Don't use
960 GDBARCH_BREAKPOINT_MANIPULATION.
961 (microblaze_gdbarch_init): Don't use
962 SET_GDBARCH_BREAKPOINT_MANIPULATION.
963 * mips-tdep.c (mips_gdbarch_init): Likewise.
964 * mn10300-tdep.c (breakpoint): Rename it to mn10300_break_insn and
965 change its type to constexpr. Don't use
966 GDBARCH_BREAKPOINT_MANIPULATION.
967 (mn10300_gdbarch_init): Don't use
968 SET_GDBARCH_BREAKPOINT_MANIPULATION.
969 * moxie-tdep.c (breakpoint): Rename it to moxie_break_insn and
970 change its type to constexpr. Don't use
971 GDBARCH_BREAKPOINT_MANIPULATION.
972 (moxie_gdbarch_init): Don't use
973 SET_GDBARCH_BREAKPOINT_MANIPULATION.
974 * msp430-tdep.c (breakpoint): Rename it to msp430_break_insn
975 and change its type to constexpr. Don't use
976 GDBARCH_BREAKPOINT_MANIPULATION.
977 (msp430_gdbarch_init): Don't use
978 SET_GDBARCH_BREAKPOINT_MANIPULATION.
979 * mt-tdep.c (mt_gdbarch_init): Likewise.
980 * nds32-tdep.c (break_insn): Rename it to nds32_break_insn
981 and change its type to constexpr. Don't use
982 GDBARCH_BREAKPOINT_MANIPULATION.
983 (nds32_gdbarch_init): Don't use
984 SET_GDBARCH_BREAKPOINT_MANIPULATION.
985 * nios2-tdep.c (nios2_gdbarch_init): Likewise.
986 * rl78-tdep.c (breakpoint): Rename it to rl78_break_ins
987 and change its type to rl78_break_insn. Don't use
988 GDBARCH_BREAKPOINT_MANIPULATION.
989 (rl78_gdbarch_init): Don't use
990 SET_GDBARCH_BREAKPOINT_MANIPULATION.
991 * rs6000-tdep.c (big_breakpoint): Change its type to
993 (little_breakpoint): Likewise.
994 Don't use GDBARCH_BREAKPOINT_MANIPULATION_ENDIAN.
995 (rs6000_gdbarch_init): Don't use
996 SET_GDBARCH_BREAKPOINT_MANIPULATION.
997 * rx-tdep.c (breakpoint): Rename it to rx_break_insn and
998 change its type to constexpr. Don't use
999 GDBARCH_BREAKPOINT_MANIPULATION.
1000 (rx_gdbarch_init): Don't use
1001 SET_GDBARCH_BREAKPOINT_MANIPULATION.
1002 * s390-linux-tdep.c (breakpoint): Rename it to s390_break_insn
1003 and change its type to constexpr. Don't use
1004 GDBARCH_BREAKPOINT_MANIPULATION
1005 (s390_gdbarch_init): Don't use
1006 SET_GDBARCH_BREAKPOINT_MANIPULATION.
1007 * score-tdep.c (score_gdbarch_init): Likewise.
1008 * sh-tdep.c (sh_gdbarch_init): Likewise.
1009 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
1010 * sparc-tdep.c (break_insn): Rename it to sparc_break_insn
1011 and change its type to constexpr. Don't use
1012 GDBARCH_BREAKPOINT_MANIPULATION.
1013 (sparc32_gdbarch_init): Don't use
1014 SET_GDBARCH_BREAKPOINT_MANIPULATION.
1015 * spu-tdep.c (breakpoint): Rename it to spu_break_insn and change
1016 its type to constexpr. Don't use
1017 GDBARCH_BREAKPOINT_MANIPULATION.
1018 (spu_gdbarch_init): Don't use
1019 SET_GDBARCH_BREAKPOINT_MANIPULATION.
1020 * tic6x-tdep.c (tic6x_gdbarch_init): Likewise.
1021 * tilegx-tdep.c (breakpoint): Rename it to tilegx_break_insn
1022 and change its type to constexpr. Don't use
1023 GDBARCH_BREAKPOINT_MANIPULATION.
1024 (tilegx_gdbarch_init): Don't use
1025 SET_GDBARCH_BREAKPOINT_MANIPULATION.
1026 * v850-tdep.c (v850_gdbarch_init): Likewise.
1027 * vax-tdep.c (break_insn): Rename it to vax_break_insn and
1028 change its type to constexpr.
1029 Don't use GDBARCH_BREAKPOINT_MANIPULATION.
1030 (vax_gdbarch_init): Don't use
1031 SET_GDBARCH_BREAKPOINT_MANIPULATION.
1032 * xstormy16-tdep.c (breakpoint): Rename it to
1033 xstormy16_break_insn and change its type to constexpr.
1034 Don't use GDBARCH_BREAKPOINT_MANIPULATION.
1035 (xstormy16_gdbarch_init): Don't use
1036 SET_GDBARCH_BREAKPOINT_MANIPULATION.
1037 * xtensa-tdep.c (xtensa_gdbarch_init): Likewise.
1039 2016-11-03 Yao Qi <yao.qi@linaro.org>
1041 * arm-tdep.c (arm_override_mode): Remove.
1042 (arm_pc_is_thumb): Update.
1043 (arm_insert_single_step_breakpoint): Update.
1045 2016-11-03 Yao Qi <yao.qi@linaro.org>
1047 * arch-utils.c (default_breakpoint_kind_from_current_state):
1049 * arch-utils.h (default_breakpoint_kind_from_current_state):
1051 * arm-tdep.c (arm_breakpoint_kind_from_current_state): New
1053 (arm_gdbarch_init): Call
1054 set_gdbarch_breakpoint_kind_from_current_state.
1055 * breakpoint.c (breakpoint_kind): Call
1056 gdbarch_breakpoint_kind_from_current_state for single step
1057 breakpoint. Update comments.
1058 * gdbarch.sh (breakpoint_kind_from_current_state): New.
1059 * gdbarch.c, gdbarch.h: Regenerate.
1061 2016-11-03 Yao Qi <yao.qi@linaro.org>
1063 * arch-utils.c (default_breakpoint_from_pc): New function.
1064 * arch-utils.h (GDBARCH_BREAKPOINT_FROM_PC): Remove.
1065 (GDBARCH_BREAKPOINT_MANIPULATION): Don't use
1066 GDBARCH_BREAKPOINT_FROM_PC.
1067 (SET_GDBARCH_BREAKPOINT_MANIPULATION): Don't call
1068 set_gdbarch_breakpoint_from_pc.
1069 (default_breakpoint_from_pc): Remove declaration.
1070 * gdbarch.sh (breakpoint_from_pc): Add its default implementation.
1071 * gdbarch.c, gdbarch.h: Regenerate.
1072 * arm-tdep.c: Don't use GDBARCH_BREAKPOINT_FROM_PC.
1073 * arc-tdep.c, bfin-tdep.c, cris-tdep.c, iq2000-tdep.c: Likewise.
1074 * m32r-tdep.c, mips-tdep.c, mt-tdep.c: Likewise.
1075 * nios2-tdep.c, score-tdep.c, sh-tdep.c: Likewise.
1076 * sh64-tdep.c, tic6x-tdep.c, v850-tdep.c, xtensa-tdep.c: Likewise.
1078 2016-11-03 Yao Qi <yao.qi@linaro.org>
1080 * arch-utils.c (default_remote_breakpoint_from_pc): Remove.
1081 * arch-utils.h (default_remote_breakpoint_from_pc): Remove.
1082 * arm-tdep.c (arm_remote_breakpoint_from_pc): Remove.
1083 (arm_gdbarch_init): Don't call
1084 set_gdbarch_remote_breakpoint_from_pc.
1085 * gdbarch.sh (remote_breakpoint_from_pc): Remove.
1086 * gdbarch.c, gdbarch.h: Regenerate.
1087 * mips-tdep.c (mips_remote_breakpoint_from_pc): Remove.
1088 (mips_gdbarch_init): Don't call
1089 set_gdbarch_remote_breakpoint_from_pc.
1091 2016-11-03 Yao Qi <yao.qi@linaro.org>
1093 * breakpoint.h (struct bp_target_info) <placed_size>: Remove.
1097 2016-11-03 Yao Qi <yao.qi@linaro.org>
1099 * arch-utils.h (GDBARCH_BREAKPOINT_MANIPULATION): Define
1100 breakpoint_kind_from_pc and sw_breakpoint_from_kind.
1101 (GDBARCH_BREAKPOINT_MANIPULATION_ENDIAN): Likewise.
1102 (SET_GDBARCH_BREAKPOINT_MANIPULATION): Call
1103 set_gdbarch_breakpoint_kind_from_pc and
1104 set_gdbarch_sw_breakpoint_from_kind.
1105 * arm-tdep.c: Add comments.
1106 * bfin-tdep.c: Likewise.
1107 * breakpoint.c (breakpoint_kind): New function.
1108 (insert_bp_location): Set target_info.placed_size and
1109 target_info.placed_address.
1110 (bkpt_insert_location): Likewise.
1111 * cris-tdep.c: Add comments.
1112 * gdbarch.sh (breakpoint_kind_from_pc): New.
1113 (sw_breakpoint_from_kind): New.
1114 * gdbarch.c, gdbarch.h: Regenerated.
1115 * ia64-tdep.c (ia64_memory_insert_breakpoint): Don't set
1116 bp_tgt->placed_size.
1117 (ia64_memory_remove_breakpoint): Don't assert
1118 bp_tgt->placed_size.
1119 (ia64_breakpoint_kind_from_pc): New function.
1120 (ia64_gdbarch_init): Install ia64_breakpoint_kind_from_pc.
1121 * m32r-tdep.c (m32r_memory_insert_breakpoint): Don't set
1122 bp_tgt->placed_size.
1123 * mem-break.c (default_memory_insert_breakpoint): Don't set
1124 bp_tgt->placed_size. Call gdbarch_sw_breakpoint_from_kind.
1125 (default_memory_remove_breakpoint): Call
1126 gdbarch_sw_breakpoint_from_kind.
1127 (memory_validate_breakpoint): Don't check bp_tgt->placed_size.
1128 * mips-tdep.c: Add comments.
1129 * mt-tdep.c: Likewise.
1130 * nios2-tdep.c: Likewise.
1131 * record-full.c (record_full_insert_breakpoint): Don't call
1132 gdbarch_breakpoint_from_pc. Don't set bp_tgt->placed_address
1133 and bp_tgt->placed_size.
1134 * remote.c (remote_insert_breakpoint): Don't call
1135 gdbarch_remote_breakpoint_from_pc. Use bp_tgt->placed_size.
1136 Don't set bp_tgt->placed_address and bp_tgt->placed_size.
1137 (remote_insert_hw_breakpoint): Likewise.
1138 * score-tdep.c: Likewise.
1139 * sh-tdep.c: Likewise.
1140 * tic6x-tdep.c: Likewise.
1141 * v850-tdep.c: Likewise.
1142 * xtensa-tdep.c: Likewise.
1144 2016-11-03 Yao Qi <yao.qi@linaro.org>
1146 * arch-utils.h (GDBARCH_BREAKPOINT_FROM_PC): New macro.
1147 (GDBARCH_BREAKPOINT_MANIPULATION_ENDIAN): New macro.
1148 * arm-tdep.c (arm_breakpoint_from_pc): Remove.
1149 (arm_breakpoint_kind_from_pc): New function.
1150 (arm_sw_breakpoint_from_kind): New function.
1151 (arm_breakpoint_from_pc): Call arm_breakpoint_kind_from_pc
1152 and arm_sw_breakpoint_from_kind.
1153 Use GDBARCH_BREAKPOINT_FROM_PC.
1154 (arm_remote_breakpoint_from_pc): Call
1155 arm_breakpoint_kind_from_pc.
1156 (arm_gdbarch_init): Replace set_gdbarch_breakpoint_from_pc
1157 with SET_GDBARCH_BREAKPOINT_MANIPULATION.
1158 * arc-tdep.c: Likewise.
1159 * bfin-tdep.c: Likewise.
1160 * cris-tdep.c: Likewise.
1161 * iq2000-tdep.c: Likewise.
1162 * m32r-tdep.c: Likewise.
1163 * mips-tdep.c: Likewise.
1164 * mt-tdep.c: Likewise.
1165 * nios2-tdep.c: Likewise.
1166 * rs6000-tdep.c: Likewise.
1167 * score-tdep.c: Likewise.
1168 * sh-tdep.c: Likewise.
1169 * sh64-tdep.c: Likewise.
1170 * tic6x-tdep.c: Likewise.
1171 * v850-tdep.c: Likewise.
1172 * xtensa-tdep.c: Likewise.
1174 2016-11-03 Yao Qi <yao.qi@linaro.org>
1176 * mips-tdep.c (mips_breakpoint_kind): New enum.
1177 (mips_breakpoint_from_pc): Use it.
1178 (mips_remote_breakpoint_from_pc): Likewise.
1180 2016-11-03 Yao Qi <yao.qi@linaro.org>
1182 * arch-utils.h (GDBARCH_BREAKPOINT_MANIPULATION): New macro.
1183 (SET_GDBARCH_BREAKPOINT_MANIPULATION): New macro.
1184 aarch64-tdep.c (aarch64_breakpoint_from_pc): Remove. Use
1185 GDBARCH_BREAKPOINT_MANIPULATION.
1186 (aarch64_gdbarch_init): Replace set_gdbarch_breakpoint_from_pc
1187 with SET_GDBARCH_BREAKPOINT_MANIPULATION.
1188 * alpha-tdep.c: Likewise.
1189 * avr-tdep.c: Likewise.
1190 * frv-tdep.c: Likewise.
1191 * ft32-tdep.c: Likewise.
1192 * h8300-tdep.c: Likewise.
1193 * hppa-tdep.c: Likewise.
1194 * i386-tdep.c: Likewise.
1195 * lm32-tdep.c: Likewise.
1196 * m32c-tdep.c: Likewise.
1197 * m68hc11-tdep.c: Likewise.
1198 * m68k-tdep.c: Likewise.
1199 * m88k-tdep.c: Likewise.
1200 * mep-tdep.c: Likewise.
1201 * microblaze-tdep.c: Likewise.
1202 * mn10300-tdep.c: Likewise.
1203 * moxie-tdep.c: Likewise.
1204 * msp430-tdep.c: Likewise.
1205 * rl78-tdep.c: Likewise.
1206 * rx-tdep.c: Likewise.
1207 * s390-linux-tdep.c: Likewise.
1208 * sparc-tdep.c: Likewise.
1209 * spu-tdep.c: Likewise.
1210 * tilegx-tdep.c: Likewise.
1211 * vax-tdep.c: Likewise.
1212 * xstormy16-tdep.c: Likewise.
1214 2016-11-03 Yao Qi <yao.qi@linaro.org>
1216 * mem-break.c (default_memory_insert_breakpoint): Don't check
1218 * microblaze-linux-tdep.c (microblaze_linux_memory_remove_breakpoint):
1220 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
1222 2016-11-02 Tom Tromey <tom@tromey.com>
1224 * dwarf2loc.c (dwarf_evaluate_loc_desc::get_base_type): Rename
1225 from impl_get_base_type. Rewrite.
1226 (struct dwarf_expr_baton): Remove.
1227 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value): Save and
1228 restore more fields.
1229 (symbol_needs_eval_context::get_frame_pc): New method.
1230 * dwarf2expr.h (dwarf_expr_context::get_base_type): Now public,
1232 (dwarf_expr_context::impl_get_base_type): Remove.
1233 * dwarf2expr.c (dwarf_expr_context::get_base_type): Remove.
1235 2016-10-31 Maciej W. Rozycki <macro@imgtec.com>
1237 * configure.ac <mips-sgi-irix5*>: Remove <sys/proc.h> _KMEMUSER
1239 * configure: Regenerate.
1240 * config.in: Regenerate.
1242 2016-10-31 Maciej W. Rozycki <macro@imgtec.com>
1244 * mips-tdep.c (mips_r3041_reg_names): Remove.
1245 (mips_breakpoint_from_pc): Remove IDT and PMON breakpoint
1248 2016-10-31 Maciej W. Rozycki <macro@imgtec.com>
1250 * defs.h (gdb_osabi): Remove GDB_OSABI_IRIX enum value.
1251 * osabi.c (gdb_osabi_names): Remove "Irix" entry.
1252 * mips-tdep.c (mips_irix_reg_names): Remove.
1253 (mips_register_type): Remove GDB_OSABI_IRIX code.
1254 (mips_pseudo_register_type): Likewise.
1255 (mips_breakpoint_from_pc): Likewise.
1256 (mips_gdbarch_init): Likewise.
1258 2016-10-29 Pedro Alves <palves@redhat.com>
1260 * NEWS: Clarify C++ requirement.
1262 2016-10-29 Pedro Alves <palves@redhat.com>
1264 * NEWS: Adjust to mention C++11 requirement.
1266 2016-10-29 Eli Zaretskii <eliz@gnu.org>
1268 * NEWS: Mention support for redirection on MS-Windows.
1270 * windows-nat.c (redir_open, redir_set_redirection)
1271 (redirect_inferior_handles) [!__CYGWIN__]: New functions.
1272 (windows_create_inferior) [!__CYGWIN__]: Use
1273 'redirect_inferior_handles' to redirect standard handles of the
1274 debuggee if the command line requests that.
1276 2016-10-28 Pedro Alves <palves@redhat.com>
1278 * Makefile.in (CXX_DIALECT): Get from configure.
1279 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
1280 (FLAGS_TO_PASS): Pass CXX_DIALECT.
1281 * acinclude.m4: Include ax_cxx_compile_stdcxx.m4.
1282 * ax_cxx_compile_stdcxx.m4: Add FSF copyright header. Set and
1283 AC_SUBST CXX_DIALECT instead of changing CXX/CXXCPP.
1284 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
1285 * config.in: Regenerate.
1286 * configure: Regenerate.
1288 2016-10-28 Pedro Alves <palves@redhat.com>
1290 * ax_cxx_compile_stdcxx.m4: New file.
1292 2016-10-28 Pedro Alves <palves@redhat.com>
1294 * maint.c (scoped_command_stats::scoped_command_stats): Clear
1295 m_space_enabled, m_time_enabled and m_symtab_enabled.
1297 2016-10-28 Markus Metzger <markus.t.metzger@intel.com>
1299 * btrace.c (bfun_s): New typedef.
1300 (ftrace_update_caller): Print caller in debug dump.
1301 (ftrace_get_caller, ftrace_match_backtrace, ftrace_fixup_level)
1302 (ftrace_compute_global_level_offset, ftrace_connect_bfun)
1303 (ftrace_connect_backtrace, ftrace_bridge_gap, btrace_bridge_gaps): New.
1304 (btrace_compute_ftrace_bts): Pass vector of gaps. Collect gaps.
1305 (btrace_compute_ftrace_pt): Likewise.
1306 (btrace_compute_ftrace): Split into this, ...
1307 (btrace_compute_ftrace_1): ... this, and ...
1308 (btrace_finalize_ftrace): ... this. Call btrace_bridge_gaps.
1310 2016-10-28 Markus Metzger <markus.t.metzger@intel.com>
1312 * btrace.c (ftrace_new_return): Start from the previous function's
1313 level if we can't find a matching call for a return.
1315 2016-10-28 Markus Metzger <markus.t.metzger@intel.com>
1317 * btrace.c (ftrace_update_function): Update tail call heuristic.
1319 2016-10-28 Markus Metzger <markus.t.metzger@intel.com>
1321 * btrace.c (btrace_compute_ftrace_bts, ftrace_add_pt): Allow
1323 * record-btrace.c (record_btrace_single_step_forward)
1324 (record_btrace_single_step_backward): Jump back to last
1325 instruction if step ends at a gap.
1326 (record_btrace_goto_begin): Skip gaps.
1328 2016-10-28 Markus Metzger <markus.t.metzger@intel.com>
1330 * btrace.c (ftrace_add_pt): Fix gap indication. Add warning for non-
1331 contiguous trace and overflow. Rephrase trace decode warning and print
1332 instruction number. Remove dead gaps warning.
1333 (btrace_compute_ftrace_bts): Rephrase warnings and print instruction
1336 2016-10-25 Sandra Loosemore <sandra@codesourcery.com>
1337 Luis Machado <lgustavo@codesourcery.com>
1338 Pedro Alves <palves@redhat.com>
1341 * exceptions.c (exception_print_same): Moved here from exec.c.
1342 * exceptions.h (exception_print_same): Declare.
1343 * exec.h: Include "symfile-add-flags.h".
1344 (try_open_exec_file): New declaration.
1345 * exec.c (exception_print_same): Moved to exceptions.c.
1346 (try_open_exec_file): New function.
1347 (exec_file_locate_attach): Rename exec_file and full_exec_path
1348 variables to avoid confusion between target and host pathnames.
1349 Move pathname processing logic to exec_file_find. Do not return
1350 early if pathname lookup fails; Call try_open_exec_file.
1351 * infrun.c (follow_exec): Split and rename execd_pathname variable
1352 to avoid confusion between target and host pathnames. Warn if
1353 pathname lookup fails. Pass target pathname to
1354 target_follow_exec, not hostpathname. Call try_open_exec_file.
1355 * main.c (symbol_file_add_main_adapter): New function.
1356 (captured_main_1): Use it.
1357 * solib-svr4.c (open_symbol_file_object): Adjust to pass
1358 symfile_add_flags to symbol_file_add_main.
1359 * solib.c (exec_file_find): Incorporate fallback logic for relative
1360 pathnames formerly in exec_file_locate_attach.
1361 * symfile.c (symbol_file_add_main, symbol_file_add_main_1):
1362 Replace 'from_tty' parameter with a symfile_add_file.
1363 (symbol_file_command): Adjust to pass symfile_add_flags to
1364 symbol_file_add_main.
1365 * symfile.h (symbol_file_add_main): Replace 'from_tty' parameter
1366 with a symfile_add_file.
1368 2016-10-26 Pedro Alves <palves@redhat.com>
1370 * coffread.c (coff_symfile_read): Use symfile_add_flags.
1371 * dbxread.c (dbx_symfile_read): Ditto.
1372 * elfread.c (elf_symfile_read): Ditto.
1373 * inferior.h: Include symfile-add-flags.h.
1374 (struct inferior) <symfile_flags>: Now symfile_add_flags.
1375 * machoread.c (macho_add_oso_symfile, macho_symfile_read_all_oso)
1376 (macho_symfile_read, mipscoff_symfile_read): Use
1378 * objfile-flags.h: New file.
1379 * objfiles.c (allocate_objfile): Use objfile_flags.
1380 * objfiles.h: Include objfile-flags.h.
1381 (struct objfile) <flags>: Now an objfile_flags.
1382 (OBJF_REORDERED, OBJF_SHARED, OBJF_READNOW, OBJF_USERLOADED)
1383 (OBJF_PSYMTABS_READ, OBJF_MAINLINE, OBJF_NOT_FILENAME): Delete.
1384 Converted to an enum-flags in objfile-flags.h.
1385 (allocate_objfile): Use objfile_flags.
1386 * python/py-objfile.c (objfpy_add_separate_debug_file): Remove
1388 * solib.c (solib_read_symbols, solib_add)
1389 (reload_shared_libraries_1): Use symfile_add_flags.
1390 * solib.h: Include "symfile-add-flags.h".
1391 (solib_read_symbols): Use symfile_add_flags.
1392 * symfile-add-flags.h: New file.
1393 * symfile-debug.c (debug_sym_read): Use symfile_add_flags.
1394 * symfile-mem.c (symbol_file_add_from_memory): Use
1396 * symfile.c (read_symbols, syms_from_objfile_1)
1397 (syms_from_objfile, finish_new_objfile): Use symfile_add_flags.
1398 (symbol_file_add_with_addrs): Use symfile_add_flags and
1400 (symbol_file_add_separate): Use symfile_add_flags.
1401 (symbol_file_add_from_bfd, symbol_file_add): Use symfile_add_flags
1403 (symbol_file_add_main_1): : Use objfile_flags. Fix add_flags vs
1405 (symbol_file_command): Use objfile_flags.
1406 (add_symbol_file_command): Use symfile_add_flags and
1408 (clear_symtab_users): Use symfile_add_flags.
1409 * symfile.h: Include "symfile-add-flags.h" and "objfile-flags.h".
1410 (struct sym_fns) <sym_read>: Use symfile_add_flags.
1411 (clear_symtab_users): Use symfile_add_flags.
1412 (enum symfile_add_flags): Delete, moved to symfile-add-flags.h and
1413 converted to enum-flags.
1414 (symbol_file_add, symbol_file_add_from_bfd)
1415 (symbol_file_add_separate): Use symfile_add_flags.
1416 * xcoffread.c (xcoff_initial_scan): Use symfile_add_flags.
1418 2016-10-26 Pedro Alves <palves@redhat.com>
1420 * inferior.h (ALL_NON_EXITED_INFERIORS): New macro.
1421 * infrun.c (do_target_resume): Call target_commit_resume.
1422 (proceed): Defer target_commit_resume while looping over threads,
1423 resuming them. Call target_commit_resume at the end.
1424 * record-btrace.c (record_btrace_commit_resume): New function.
1425 (init_record_btrace_ops): Install it as to_commit_resume method.
1426 * record-full.c (record_full_commit_resume): New function.
1427 (record_full_wait_1): Call the beneath target's to_commit_resume
1429 (init_record_full_ops): Install record_full_commit_resume as
1430 to_commit_resume method.
1431 * remote.c (struct private_thread_info) <last_resume_step,
1432 last_resume_sig, vcont_resumed>: New fields.
1433 (remote_add_thread): Set the new thread's vcont_resumed flag.
1434 (demand_private_info): Delete.
1435 (get_private_info_thread, get_private_info_ptid): New functions.
1436 (remote_update_thread_list): Adjust.
1437 (process_initial_stop_replies): Clear the thread's vcont_resumed
1439 (remote_resume): If connected in non-stop mode, record the resume
1440 request and return early.
1441 (struct private_inferior): New.
1442 (struct vcont_builder): New.
1443 (vcont_builder_restart, vcont_builder_flush)
1444 (vcont_builder_push_action): New functions.
1445 (MAX_ACTION_SIZE): New macro.
1446 (remote_commit_resume): New function.
1447 (thread_pending_fork_status, is_pending_fork_parent_thread): New
1449 (check_pending_event_prevents_wildcard_vcont_callback)
1450 (check_pending_events_prevent_wildcard_vcont): New functions.
1451 (process_stop_reply): Adjust. Clear the thread's vcont_resumed
1453 (init_remote_ops): Install remote_commit_resume.
1454 * target-delegates.c: Regenerate.
1455 * target.c (defer_target_commit_resume): New global.
1456 (target_commit_resume, make_cleanup_defer_target_commit_resume):
1458 * target.h (struct target_ops) <to_commit_resume>: New field.
1459 (target_resume): Update comments.
1460 (target_commit_resume): New declaration.
1462 2016-10-26 Pedro Alves <palves@redhat.com>
1464 * inferior.c (exit_inferior_1): Free 'priv'.
1466 2016-10-26 Pedro Alves <palves@redhat.com>
1468 * remote.c (remote_resume_with_hc): New function, factored out
1470 (remote_resume): ... this. Always try vCont first.
1471 (remote_vcont_resume): Rename to ...
1472 (remote_resume_with_vcont): ... this. Bail out if execution
1473 direction is reverse.
1475 2016-10-25 Pedro Alves <palves@redhat.com>
1477 * dwarf2expr.h (struct dwarf_expr_context) <~dwarf_expr_context>:
1480 2016-10-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1483 * defs.h: Remove obsolete comment
1485 * procfs.c (do_destroy_procinfo_cleanup): Add cast.
1486 (sysset_t_alloc): Likewise.
1487 (proc_set_traced_sysentry): Likewise.
1488 (proc_set_traced_sysexit): Likewise.
1489 [!PIOCLSTATUS && NEW_PROC_API] (do_closedir_cleanup): Likewise.
1490 (proc_get_LDT_entry): Initiate cleanups before returns.
1491 (procfs_wait): Use GDB_SIGNAL_0.
1492 (procfs_corefile_thread_callback): Add cast.
1493 * sol-thread.c (td_log_ftype, td_ta_new_ftype, td_ta_delete_ftype)
1494 (td_init_ftype, td_ta_get_ph_ftype, td_ta_get_nthreads_ftype)
1495 (td_ta_tsd_iter_ftype, td_ta_thr_iter_ftype)
1496 (td_thr_validate_ftype, td_thr_tsd_ftype, td_thr_get_info_ftype)
1497 (td_thr_getfpregs_ftype, td_thr_getxregsize_ftype)
1498 (td_thr_getxregs_ftype, td_thr_sigsetmask_ftype)
1499 (td_thr_setprio_ftype, td_thr_setsigpending_ftype)
1500 (td_thr_setfpregs_ftype, td_thr_setxregs_ftype)
1501 (td_ta_map_id2thr_ftype, td_ta_map_lwp2thr_ftype)
1502 (td_thr_getgregs_ftype, td_thr_setgregs_ftype): New typedefs.
1503 (p_td_log, p_td_ta_new, p_td_ta_delete, p_td_init, p_td_ta_get_ph)
1504 (p_td_ta_get_nthreads, p_td_ta_tsd_iter, p_td_ta_thr_iter)
1505 (p_td_thr_validate, p_td_thr_tsd, p_td_thr_get_info)
1506 (p_td_thr_getfpregs, p_td_thr_getxregsize, p_td_thr_getxregs)
1507 (p_td_thr_sigsetmask, p_td_thr_setprio, p_td_thr_setsigpending)
1508 (p_td_thr_setfpregs, p_td_thr_setxregs, p_td_ta_map_id2thr)
1509 (p_td_ta_map_lwp2thr, p_td_thr_getgregs, p_td_thr_setgregs): Use them.
1510 (ps_pdread): Add cast.
1511 (ps_ptread): Likewise.
1512 (resolve): Likewise.
1513 * top.c (gdb_safe_append_history): Print pid_t as long.
1515 2016-10-25 Pedro Alves <palves@redhat.com>
1517 * common/common-defs.h (__STDC_FORMAT_MACROS): Define.
1519 2016-10-25 Pedro Alves <palves@redhat.com>
1521 * common/new-op.c: Add comment about -fsanitize=address.
1523 2016-10-25 Pedro Alves <palves@redhat.com>
1525 * common/common-defs.h (__STDC_CONSTANT_MACROS)
1526 (__STDC_LIMIT_MACROS): Define.
1528 2016-10-25 Yao Qi <yao.qi@linaro.org>
1531 * common/new-op.c (__has_feature): New macro.
1532 Don't override operator new if asan is used.
1534 2016-10-24 Luis Machado <lgustavo@codesourcery.com>
1536 * exec.c (exec_file_locate_attach): Prevent NULL pointer dereference
1537 when duplicating a string.
1539 2016-10-24 Luis Machado <lgustavo@codesourcery.com>
1541 * exec.c (exception_print_same): Fix string comparison to use
1542 statically-allocated ones.
1544 2016-10-21 Tom Tromey <tom@tromey.com>
1546 * dwarf2expr.h (class dwarf_expr_context)
1547 <get_frame_base, get_frame_cfa, get_tls_address, dwarf_call,
1548 push_dwarf_block_entry_value, get_addr_index, get_object_address>:
1550 * dwarf2-frame.c (class dwarf_expr_executor)
1551 <get_frame_base, get_frame_cfa, get_tls_address, dwarf_call,
1552 push_dwarf_block_entry_value, get_addr_index, get_object_address>:
1554 <invalid>: New method.
1556 2016-10-21 Tom Tromey <tom@tromey.com>
1558 * minsyms.h (minimal_symbol_reader::record_full): "copy_name" now
1560 (record, record_with_info): Update.
1561 * minsyms.c (record): Fix indentation.
1562 (record_full): Fix indentation. Update for type change.
1563 * elfread.c (record_minimal_symbol): "copy_name" now a bool.
1564 (elf_symtab_read): "copy_names" now a bool.
1565 (elf_rel_plt_read, elf_read_minimal_symbols): Update.
1567 2016-10-21 Tom Tromey <tom@tromey.com>
1569 * main.c: Include <vector>.
1570 (cmdarg_s): Remove typedef. Don't define VEC.
1571 (captured_main_1): Use vector, not VEC. Remove cleanups.
1573 2016-10-21 Tom Tromey <tom@tromey.com>
1575 * dwarf2loc.c (struct dwarf_expr_context_funcs): Don't declare.
1576 (dwarf_expr_read_addr_from_reg, dwarf_expr_get_reg_value)
1577 (dwarf_expr_read_mem, dwarf_expr_frame_base): Rename; turn into
1579 (get_frame_pc_for_per_cu_dwarf_call): New function.
1580 (dwarf_expr_frame_cfa, dwarf_expr_frame_pc)
1581 (dwarf_expr_tls_address): Rename; turn into methods.
1582 (per_cu_dwarf_call): Remove arguments. Use
1583 get_frame_pc_for_per_cu_dwarf_call.
1584 (dwarf_evaluate_loc_desc): New class.
1585 (dwarf_expr_dwarf_call, dwarf_expr_context)
1586 (dwarf_expr_push_dwarf_reg_entry_value)
1587 (dwarf_expr_get_addr_index, dwarf_expr_get_obj_addr): Rename; turn
1589 (dwarf_expr_ctx_funcs): Remove.
1590 (dwarf2_evaluate_loc_desc_full): Update.
1591 (dwarf2_locexpr_baton_eval): Update.
1592 (symbol_needs_eval_context): New class.
1593 (symbol_needs_read_addr_from_reg, symbol_needs_get_reg_value)
1594 (symbol_needs_read_mem, symbol_needs_frame_base)
1595 (symbol_needs_frame_cfa, symbol_needs_tls_address)
1596 (symbol_needs_dwarf_call, needs_dwarf_reg_entry_value): Rename;
1598 (needs_get_addr_index, needs_get_obj_addr): Remove; turn into
1600 (symbol_needs_ctx_funcs): Remove.
1601 (dwarf2_loc_desc_get_symbol_read_needs): Update.
1602 * dwarf2expr.h (struct dwarf_expr_context_funcs): Remove; turn
1603 contents into methods.
1604 (struct dwarf_expr_context) <baton, funcs>: Remove.
1605 <read_addr_from_reg, get_reg_value, read_mem, get_frame_base,
1606 get_frame_cfa, get_frame_pc, get_tls_address, dwarf_call,
1607 impl_get_base_type, push_dwarf_block_entry_value, get_addr_index,
1608 get_object_address>: Declare new methods.
1609 (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
1610 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
1611 (ctx_no_get_base_type, ctx_no_push_dwarf_reg_entry_value)
1612 (ctx_no_get_addr_index): Don't declare.
1613 * dwarf2expr.c (get_base_type): Use impl_get_base_type.
1614 (execute_stack_op): Update.
1615 (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
1616 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
1617 (ctx_no_get_base_type, ctx_no_push_dwarf_reg_entry_value)
1618 (ctx_no_get_addr_index): Remove; now methods on
1620 * dwarf2-frame.c (read_addr_from_reg): Take a frame_info, not a
1622 (class dwarf_expr_executor): New class.
1623 (get_reg_value, read_mem): Rename, turn into methods.
1624 (execute_stack_op): Use dwarf_expr_executor.
1626 2016-10-21 Tom Tromey <tom@tromey.com>
1628 * dwarf2loc.c (per_cu_dwarf_call)
1629 (dwarf_expr_push_dwarf_reg_entry_value)
1630 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
1631 (needs_dwarf_reg_entry_value)
1632 (dwarf2_loc_desc_get_symbol_read_needs): Update.
1633 * dwarf2expr.h (dwarf_expr_context) <push_address, eval, fetch,
1634 fetch_address, fetch_in_stack_memory, address_type, grow_stack,
1635 push, stack_empty_p, add_piece, get_base_type, execute_stack_op,
1636 pop>: New method declarations.
1637 (dwarf_expr_push_address, dwarf_expr_eval, dwarf_expr_fetch)
1638 (dwarf_expr_fetch_address, dwarf_expr_fetch_in_stack_memory):
1640 * dwarf2expr.c (address_type, grow_stack, push, push_address)
1641 (pop, fetch, fetch_address, fetch_in_stack_memory)
1642 (stack_empty_p, add_piece, eval, get_base_type)
1643 (execute_stack_op): Rename. Turn into methods.
1644 * dwarf2-frame.c (execute_stack_op): Update.
1646 2016-10-21 Tom Tromey <tom@tromey.com>
1648 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Stack-allocate
1649 dwarf_expr_context. Remove cleanups.
1650 (dwarf2_locexpr_baton_eval)
1651 (dwarf2_loc_desc_get_symbol_read_needs): Likewise.
1652 * dwarf2expr.h (dwarf_expr_context, ~dwarf_expr_context): Add
1653 constructors and destructors.
1654 (new_dwarf_expr_context, free_dwarf_expr_context)
1655 (make_cleanup_free_dwarf_expr_context): Don't declare.
1656 * dwarf2-frame.c (execute_stack_op): Stack-allocate
1657 dwarf_expr_context. Remove cleanups.
1658 (dwarf_expr_context): Rename from new_dwarf_expr_context. Turn
1660 (free_dwarf_expr_context, free_dwarf_expr_context_cleanup):
1662 (~dwarf_expr_context): Rename from
1663 make_cleanup_free_dwarf_expr_context. Turn into destructor.
1665 2016-10-21 Tom Tromey <tom@tromey.com>
1667 * dwarf2loc.c: Include <vector>.
1668 (read_pieced_value, write_pieced_value)
1669 (dwarf2_compile_expr_to_ax): Use std::vector.
1671 2016-10-21 Tom Tromey <tom@tromey.com>
1673 * stack.c (print_stack_frame_to_uiout): Use scoped_restore.
1674 * ui-out.c (make_cleanup_restore_current_uiout)
1675 (restore_current_uiout_cleanup): Remove.
1676 * infrun.c (print_stop_event): Use scoped_restore.
1677 * ui-out.h (make_cleanup_restore_current_uiout): Don't declare.
1679 2016-10-21 Tom Tromey <tom@tromey.com>
1681 * elfread.c (elf_read_minimal_symbols): Use gdb::unique_ptr.
1683 2016-10-21 Tom Tromey <tom@tromey.com>
1685 * cli/cli-dump.c (dump_memory_to_file): Use gdb::unique_ptr.
1686 (restore_binary_file): Likewise.
1688 2016-10-21 Tom Tromey <tom@tromey.com>
1690 * maint.h (scoped_command_stats): New class.
1691 (make_command_stats_cleanup): Don't declare.
1692 * maint.c (struct cmd_stats): Remove.
1693 (~scoped_command_stats): Rename from report_command_stats. Now a
1695 (scoped_command_stats): Rename from make_command_stats_cleanup.
1697 * main.c (captured_main_1): New function. Use
1698 scoped_command_stats.
1699 (captured_main): Call captured_main_1.
1700 * event-top.c (command_handler): Use scoped_command_stats.
1702 2016-10-21 Tom Tromey <tom@tromey.com>
1704 * mi/mi-main.c (mi_cmd_data_read_memory): Use gdb::unique_ptr.
1705 Remove some cleanups.
1707 2016-10-21 Tom Tromey <tom@tromey.com>
1709 * tui/tui-interp.c (tui_on_normal_stop, tui_on_signal_received)
1710 (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
1711 (tui_on_no_history, tui_on_user_selected_context_changed):
1713 * top.h (switch_thru_all_uis): New class.
1714 (SWITCH_THRU_ALL_UIS): Rewrite.
1715 (make_cleanup_restore_current_ui, switch_thru_all_uis_init)
1716 (switch_thru_all_uis_cond, switch_thru_all_uis_next): Don't
1718 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
1719 (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
1720 (mi_inferior_exit, mi_inferior_removed, mi_on_signal_received)
1721 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
1722 (mi_on_no_history, mi_on_normal_stop, mi_traceframe_changed)
1723 (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
1724 (mi_breakpoint_created, mi_breakpoint_deleted)
1725 (mi_breakpoint_modified, mi_output_running_pid, mi_on_resume)
1726 (mi_solib_loaded, mi_solib_unloaded, mi_command_param_changed)
1727 (mi_memory_changed, mi_user_selected_context_changed): Update.
1728 * infrun.c (all_uis_check_sync_execution_done)
1729 (all_uis_on_sync_execution_starting, normal_stop): Update.
1730 * event-top.c (restore_ui_cleanup)
1731 (make_cleanup_restore_current_ui, switch_thru_all_uis_init)
1732 (switch_thru_all_uis_cond, switch_thru_all_uis_next): Remove.
1733 * cli/cli-interp.c (cli_on_normal_stop, cli_on_signal_received)
1734 (cli_on_end_stepping_range, cli_on_signal_exited, cli_on_exited)
1735 (cli_on_no_history, cli_on_user_selected_context_changed):
1737 * breakpoint.c (watchpoint_check): Update.
1739 2016-10-21 Tom Tromey <tom@tromey.com>
1741 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab): Add
1742 "reader" argument. Update.
1743 (xcoff_initial_scan): Update.
1744 * symfile.h (mdebug_build_psymtabs): Add "reader" argument.
1745 * mipsread.c (mipscoff_symfile_read): Update.
1746 (read_alphacoff_dynamic_symtab): Add "reader" argument. Update.
1747 * minsyms.h (minimal_symbol_reader) <record, record_full>:
1749 <m_msym_bunch, m_msym_bunch_index, m_msym_count>: New members.
1750 <record_with_info>: New function, renamed from
1751 prim_record_minimal_symbol_and_info.
1752 * minsyms.c (msym_bunch, msym_bunch_index, msym_count): Remove
1754 (minimal_symbol_reader): Initialize new members.
1755 (minimal_symbol_reader::record): Renamed from
1756 prim_record_minimal_symbol.
1757 (minimal_symbol_reader::record_full): Renamed from
1758 prim_record_minimal_symbol_full.
1759 (prim_record_minimal_symbol_and_info): Move to minsyms.h; rename.
1760 * mdebugread.c (mdebug_build_psymtabs, parse_partial_symbols)
1761 (record_minimal_symbol): Add "reader" argument. Update.
1762 (elfmdebug_build_psymtabs): Update.
1763 * machoread.c (macho_symtab_add_minsym, macho_symtab_read): Add
1764 "reader" argument. Update.
1765 (macho_symfile_read): Update.
1766 * elfread.c (record_minimal_symbol, elf_symtab_read)
1767 (elf_rel_plt_read): Add "reader" argument. Update.
1768 (elf_read_minimal_symbols): Update.
1769 * dbxread.c (record_minimal_symbol, read_dbx_dynamic_symtab)
1770 (read_dbx_symtab): Add "reader" argument. Update.
1771 (dbx_symfile_read): Update.
1772 * coffread.c (record_minimal_symbol, coff_symtab_read): Add
1773 "reader" argument. Update.
1774 (coff_symfile_read): Update.
1775 * coff-pe-read.h (read_pe_exported_syms): Add "reader" argument.
1776 * coff-pe-read.c (add_pe_exported_sym, add_pe_forwarded_sym)
1777 (read_pe_exported_syms): Add "reader" argument. Update.
1779 2016-10-21 Tom Tromey <tom@tromey.com>
1781 * xcoffread.c (xcoff_initial_scan): Update.
1782 * mipsread.c (mipscoff_symfile_read): Update.
1783 * minsyms.c (minimal_symbol_reader): Add obj argument.
1785 (install): Remove objfile argument. Update.
1786 * mdebugread.c (elfmdebug_build_psymtabs): Update.
1787 * machoread.c (macho_symfile_read): Update.
1788 * elfread.c (elf_read_minimal_symbols): Update.
1789 * dbxread.c (dbx_symfile_read): Update.
1790 * coffread.c (coff_symfile_read): Update.
1791 * minsyms.h (minimal_symbol_reader): Add m_objfile member.
1792 (constructor): Add objfile argument.
1793 (minimal_symbol_reader::install): Remove objfile argument.
1795 2016-10-21 Tom Tromey <tom@tromey.com>
1797 * xcoffread.c (xcoff_initial_scan): Use
1798 minimal_symbol_reader.
1799 * mipsread.c (mipscoff_symfile_read): Use
1800 minimal_symbol_reader.
1801 * minsyms.h (minimal_symbol_reader): New class.
1802 (init_minimal_symbol_collection)
1803 (make_cleanup_discard_minimal_symbols, install_minimal_symbols):
1805 * minsyms.c (minimal_symbol_reader): Renamed from
1806 init_minimal_symbol_collection, turned into constructor.
1807 (~minimal_symbol_reader): Renamed from
1808 do_discard_minimal_symbols_cleanup, turned into destructor.
1809 (make_cleanup_discard_minimal_symbols): Remove.
1810 (minimal_symbol_reader::install): Rename form
1811 install_minimal_symbols.
1812 * mdebugread.c (elfmdebug_build_psymtabs): Use
1813 minimal_symbol_reader.
1814 * machoread.c (macho_symfile_read): Use
1815 minimal_symbol_reader.
1816 * elfread.c (elf_read_minimal_symbols): Use
1817 minimal_symbol_reader.
1818 * dbxread.c (dbx_symfile_read): Use minimal_symbol_reader.
1819 * coffread.c (coff_symfile_read): Use
1820 minimal_symbol_reader.
1822 2016-10-21 Tom Tromey <tom@tromey.com>
1824 * top.c (new_ui_command, wait_sync_command_done)
1825 (gdb_readline_wrapper): Use scoped_restore.
1826 * infrun.c (fetch_inferior_event): Use scoped_restore.
1827 * infcall.c (call_thread_fsm_should_stop): Use scoped_restore.
1829 2016-10-21 Tom Tromey <tom@tromey.com>
1831 * utils.c (make_cleanup_restore_ui_file, do_restore_ui_file)
1832 (struct restore_ui_file_closure): Remove.
1833 * utils.h (make_cleanup_restore_ui_file): Don't declare.
1834 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
1836 * top.c (execute_command_to_string): Use scoped_restore.
1838 2016-10-21 Tom Tromey <tom@tromey.com>
1840 * common/scoped_restore.h: New file.
1841 * utils.h: Include scoped_restore.h.
1842 * top.c (execute_command_to_string): Use scoped_restore.
1843 * python/python.c (python_interactive_command): Use
1845 (python_command, execute_gdb_command): Likewise.
1846 * printcmd.c (do_one_display): Use scoped_restore.
1847 * mi/mi-main.c (exec_continue): Use scoped_restore.
1848 * mi/mi-cmd-var.c (mi_cmd_var_assign): Use scoped_restore.
1849 * linux-fork.c (checkpoint_command): Use scoped_restore.
1850 * infrun.c (restore_execution_direction): Remove.
1851 (fetch_inferior_event): Use scoped_restore.
1852 * compile/compile.c (compile_file_command): Use
1854 (compile_code_command, compile_print_command): Likewise.
1855 * cli/cli-script.c (execute_user_command): Use
1857 (while_command, if_command, script_from_file): Likewise.
1858 * arm-tdep.c (arm_insert_single_step_breakpoint): Use
1861 2016-10-21 Tom Tromey <tom@tromey.com>
1863 * xcoffread.c (read_xcoff_symtab): Make "filestring" const.
1865 2016-10-21 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
1866 Ulrich Weigand <uweigand@de.ibm.com>
1868 * xcoffread.c (read_xcoff_symtab): Make name of current file as
1869 pst->filename instead of _start_ in AIX.
1871 2016-10-21 Philipp Rudo <prudo@linux.vnet.ibm.com>
1873 * solist.h (struct target_so_ops): Delete special_symbol_handling
1875 * solib.c (solib_add, reload_shared_libraries): Adjust.
1876 * solib-aix.c (solib_aix_special_symbol_handling): Delete
1877 (_initialize_solib_aix): Adjust
1878 * solib-darwin.c (darwin_special_symbol_handling): Delete
1879 (_initialize_darwin_solib): Adjust
1880 * solib-dsbt.c (dsbt_special_symbol_handling): Delete
1881 (_initialize_dsbt_solib): Adjust
1882 * solib-frv.c (frv_special_symbol_handling): Delete
1883 (_initialize_frv_solib): Adjust
1884 * solib-svr4.c (svr4_special_symbol_handling): Delete
1885 (_initialize_svr4_solib): Adjust
1886 * solib-target.c (solib_target_special_symbol_handling): Delete
1887 (_initialize_solib_target): Adjust
1889 2016-10-20 Yao Qi <yao.qi@linaro.org>
1891 * configure.tgt: Don't configure if target is *-*-vxworks*.
1893 2016-10-19 Pedro Alves <palves@redhat.com>
1895 * config.in: Regenerate.
1897 2016-10-18 Pedro Alves <palves@redhat.com>
1899 * common/common-defs.h (__STDC_CONSTANT_MACROS)
1900 (__STDC_LIMIT_MACROS): Delete.
1902 2016-10-18 Pedro Alves <palves@redhat.com>
1904 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
1905 2692e23a48e21f6daa029e8af9f1a143b7532f47.
1906 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4:
1908 * gnulib/import/Makefile: Update.
1909 * gnulib/import/alloca: Update.
1910 * gnulib/import/basename-lgpl: Update.
1911 * gnulib/import/canonicalize-lgpl: Update.
1912 * gnulib/import/config: Update.
1913 * gnulib/import/dirent: Update.
1914 * gnulib/import/dirfd: Update.
1915 * gnulib/import/dirname-lgpl: Update.
1916 * gnulib/import/dirname.h: Update.
1917 * gnulib/import/dosname.h: Update.
1918 * gnulib/import/errno: Update.
1919 * gnulib/import/extra/snippet/arg-nonnull.h: Update.
1920 * gnulib/import/extra/snippet/c++defs.h: Update.
1921 * gnulib/import/extra/snippet/warn-on-use.h: Update.
1922 * gnulib/import/extra/update-copyright: Update.
1923 * gnulib/import/flexmember.h: Update.
1924 * gnulib/import/float+.h: Update.
1925 * gnulib/import/float: Update.
1926 * gnulib/import/float: Update.
1927 * gnulib/import/fnmatch: Update.
1928 * gnulib/import/fnmatch: Update.
1929 * gnulib/import/fnmatch_loop: Update.
1930 * gnulib/import/fpucw.h: Update.
1931 * gnulib/import/frexp: Update.
1932 * gnulib/import/frexpl: Update.
1933 * gnulib/import/gettimeofday: Update.
1934 * gnulib/import/hard-locale: Update.
1935 * gnulib/import/hard-locale.h: Update.
1936 * gnulib/import/inttypes: Update.
1937 * gnulib/import/isnan: Update.
1938 * gnulib/import/isnand-nolibm.h: Update.
1939 * gnulib/import/isnand: Update.
1940 * gnulib/import/isnanl-nolibm.h: Update.
1941 * gnulib/import/isnanl: Update.
1942 * gnulib/import/itold: Update.
1943 * gnulib/import/limits: Update.
1944 * gnulib/import/localcharset: Update.
1945 * gnulib/import/localcharset.h: Update.
1946 * gnulib/import/lstat: Update.
1947 * gnulib/import/m4/00gnulib: Update.
1948 * gnulib/import/m4/absolute-header: Update.
1949 * gnulib/import/m4/alloca: Update.
1950 * gnulib/import/m4/canonicalize: Update.
1951 * gnulib/import/m4/codeset: Update.
1952 * gnulib/import/m4/configmake: Update.
1953 * gnulib/import/m4/dirent_h: Update.
1954 * gnulib/import/m4/dirfd: Update.
1955 * gnulib/import/m4/dirname: Update.
1956 * gnulib/import/m4/double-slash-root: Update.
1957 * gnulib/import/m4/eealloc: Update.
1958 * gnulib/import/m4/errno_h: Update.
1959 * gnulib/import/m4/exponentd: Update.
1960 * gnulib/import/m4/exponentl: Update.
1961 * gnulib/import/m4/extensions: Update.
1962 * gnulib/import/m4/extern-inline: Update.
1963 * gnulib/import/m4/fcntl-o: Update.
1964 * gnulib/import/m4/flexmember: Update.
1965 * gnulib/import/m4/float_h: Update.
1966 * gnulib/import/m4/fnmatch: Update.
1967 * gnulib/import/m4/fpieee: Update.
1968 * gnulib/import/m4/frexp: Update.
1969 * gnulib/import/m4/frexpl: Update.
1970 * gnulib/import/m4/gettimeofday: Update.
1971 * gnulib/import/m4/glibc21: Update.
1972 * gnulib/import/m4/gnulib-cache: Update.
1973 * gnulib/import/m4/gnulib-common: Update.
1974 * gnulib/import/m4/gnulib-comp: Update.
1975 * gnulib/import/m4/gnulib-tool: Update.
1976 * gnulib/import/m4/hard-locale: Update.
1977 * gnulib/import/m4/include_next: Update.
1978 * gnulib/import/m4/inttypes-pri: Update.
1979 * gnulib/import/m4/inttypes: Update.
1980 * gnulib/import/m4/isnand: Update.
1981 * gnulib/import/m4/isnanl: Update.
1982 * gnulib/import/m4/largefile: Update.
1983 * gnulib/import/m4/limits-h: Update.
1984 * gnulib/import/m4/localcharset: Update.
1985 * gnulib/import/m4/locale-fr: Update.
1986 * gnulib/import/m4/locale-ja: Update.
1987 * gnulib/import/m4/locale-zh: Update.
1988 * gnulib/import/m4/longlong: Update.
1989 * gnulib/import/m4/lstat: Update.
1990 * gnulib/import/m4/malloc: Update.
1991 * gnulib/import/m4/malloca: Update.
1992 * gnulib/import/m4/math_h: Update.
1993 * gnulib/import/m4/mbrtowc: Update.
1994 * gnulib/import/m4/mbsinit: Update.
1995 * gnulib/import/m4/mbsrtowcs: Update.
1996 * gnulib/import/m4/mbstate_t: Update.
1997 * gnulib/import/m4/memchr: Update.
1998 * gnulib/import/m4/memmem: Update.
1999 * gnulib/import/m4/mmap-anon: Update.
2000 * gnulib/import/m4/multiarch: Update.
2001 * gnulib/import/m4/nocrash: Update.
2002 * gnulib/import/m4/off_t: Update.
2003 * gnulib/import/m4/pathmax: Update.
2004 * gnulib/import/m4/rawmemchr: Update.
2005 * gnulib/import/m4/readlink: Update.
2006 * gnulib/import/m4/rename: Update.
2007 * gnulib/import/m4/rmdir: Update.
2008 * gnulib/import/m4/signal_h: Update.
2009 * gnulib/import/m4/ssize_t: Update.
2010 * gnulib/import/m4/stat: Update.
2011 * gnulib/import/m4/stdbool: Update.
2012 * gnulib/import/m4/stddef_h: Update.
2013 * gnulib/import/m4/stdint: Update.
2014 * gnulib/import/m4/stdio_h: Update.
2015 * gnulib/import/m4/stdlib_h: Update.
2016 * gnulib/import/m4/strchrnul: Update.
2017 * gnulib/import/m4/string_h: Update.
2018 * gnulib/import/m4/strstr: Update.
2019 * gnulib/import/m4/strtok_r: Update.
2020 * gnulib/import/m4/sys_socket_h: Update.
2021 * gnulib/import/m4/sys_stat_h: Update.
2022 * gnulib/import/m4/sys_time_h: Update.
2023 * gnulib/import/m4/sys_types_h: Update.
2024 * gnulib/import/m4/time_h: Update.
2025 * gnulib/import/m4/unistd_h: Update.
2026 * gnulib/import/m4/warn-on-use: Update.
2027 * gnulib/import/m4/wchar_h: Update.
2028 * gnulib/import/m4/wchar_t: Update.
2029 * gnulib/import/m4/wctype_h: Update.
2030 * gnulib/import/m4/wint_t: Update.
2031 * gnulib/import/malloc: Update.
2032 * gnulib/import/malloca: Update.
2033 * gnulib/import/malloca.h: Update.
2034 * gnulib/import/math: Update.
2035 * gnulib/import/math: Update.
2036 * gnulib/import/mbrtowc: Update.
2037 * gnulib/import/mbsinit: Update.
2038 * gnulib/import/mbsrtowcs-impl.h: Update.
2039 * gnulib/import/mbsrtowcs-state: Update.
2040 * gnulib/import/mbsrtowcs: Update.
2041 * gnulib/import/memchr: Update.
2042 * gnulib/import/memmem: Update.
2043 * gnulib/import/pathmax.h: Update.
2044 * gnulib/import/rawmemchr: Update.
2045 * gnulib/import/readlink: Update.
2046 * gnulib/import/ref-add.sin: Update.
2047 * gnulib/import/ref-del.sin: Update.
2048 * gnulib/import/rename: Update.
2049 * gnulib/import/rmdir: Update.
2050 * gnulib/import/same-inode.h: Update.
2051 * gnulib/import/signal: Update.
2052 * gnulib/import/stat: Update.
2053 * gnulib/import/stdbool: Update.
2054 * gnulib/import/stddef: Update.
2055 * gnulib/import/stdint: Update.
2056 * gnulib/import/stdio: Update.
2057 * gnulib/import/stdlib: Update.
2058 * gnulib/import/str-two-way.h: Update.
2059 * gnulib/import/strchrnul: Update.
2060 * gnulib/import/streq.h: Update.
2061 * gnulib/import/string: Update.
2062 * gnulib/import/stripslash: Update.
2063 * gnulib/import/strnlen1: Update.
2064 * gnulib/import/strnlen1.h: Update.
2065 * gnulib/import/strstr: Update.
2066 * gnulib/import/strtok_r: Update.
2067 * gnulib/import/sys_stat: Update.
2068 * gnulib/import/sys_time: Update.
2069 * gnulib/import/sys_types: Update.
2070 * gnulib/import/time: Update.
2071 * gnulib/import/unistd: Update.
2072 * gnulib/import/unistd: Update.
2073 * gnulib/import/verify.h: Update.
2074 * gnulib/import/wchar: Update.
2075 * gnulib/import/wctype: Update.
2076 * gnulib/import/flexmember.h: New file.
2077 * gnulib/import/hard-locale.c: New file.
2078 * gnulib/import/hard-locale.h: New file.
2079 * gnulib/import/limits.in.h: New file.
2080 * gnulib/import/m4/flexmember.m4: New file.
2081 * gnulib/import/m4/hard-locale.m4: New file.
2082 * gnulib/import/m4/limits-h.m4: New file.
2084 2016-10-18 Pedro Alves <palves@redhat.com>
2086 * common/common-defs.h: Include "gdb_unique_ptr.h".
2087 * common/gdb_unique_ptr.h: New.
2089 2016-10-18 Maciej W. Rozycki <macro@imgtec.com>
2091 * i386-tdep.c (i386_mpx_info_bounds): Make sure the architecture
2092 is `bfd_arch_i386' before proceeding.
2093 (i386_mpx_set_bounds): Likewise.
2095 2016-10-18 Maciej W. Rozycki <macro@imgtec.com>
2097 * tilegx-tdep.c (tilegx_analyze_prologue): Use the `long long'
2098 type for `operands'.
2100 2016-10-17 Simon Marchi <simon.marchi@ericsson.com>
2102 * mi/mi-main.c (mi_cmd_trace_save): Check if argument is present
2105 2016-10-17 Pedro Alves <palves@redhat.com>
2107 * charset.h (class wchar_iterator) [PHONY_ICONV] <m_desc>: Use
2110 2016-10-14 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
2111 Ulrich Weigand <uweigand@de.ibm.com>
2113 * solib-aix.c (solib_aix_bfd_open): Call solib_find so that sysroot
2114 path is set properly if program has a dependency on .a archive and
2115 sysroot is set via set sysroot command.
2117 2016-10-14 Markus Metzger <markus.t.metzger@intel.com>
2119 * nat/linux-btrace.c: Remove leftover comment.
2121 2016-10-14 Eli Zaretskii <eliz@gnu.org>
2123 * common/common-defs.h [HAVE_STRINGS_H]: Include strings.h if
2124 available, to get prototypes of 'strcasecmp' and 'strncasecmp'.
2126 2016-10-13 Pedro Alves <palves@redhat.com>
2128 * contrib/ari/gdb_ari.sh (boolean): Suggest bool instead.
2129 (false, true): Remove checks.
2131 2016-10-12 Tom Tromey <tom@tromey.com>
2133 * machoread.c (macho_symfile_read_all_oso): Use std::string.
2135 2016-10-12 Tom Tromey <tom@tromey.com>
2137 * tracepoint.c (trace_dump_command): Remove unnecessary
2140 2016-10-12 Tom Tromey <tom@tromey.com>
2142 * valprint.c (generic_emit_char, count_next_character)
2143 (generic_printstr): Update.
2144 * charset.c (struct wchar_iterator): Move to charset.h.
2145 (wchar_iterator::wchar_iterator): Rename from
2146 make_wchar_iterator, turn into a constructor.
2147 (wchar_iterator::~wchar_iterator): Rename from
2148 do_cleanup_iterator, turn into a destructor.
2149 (make_cleanup_wchar_iterator): Remove.
2150 (wchar_iterator::iterate): Rename from wchar_iterate. Remove
2151 "iter" argument. Update.
2152 * charset.h: Include <vector>.
2153 (class wchar_iterator): New class, from old struct
2155 (make_wchar_iterator, make_cleanup_wchar_iterator): Don't
2158 2016-10-12 Tom Tromey <tom@tromey.com>
2160 * selftest.c: Include <vector>, not "vec.h".
2161 (self_test_function_ptr): Remove.
2162 (tests): Now a std::vector.
2163 (register_self_test, run_self_tests): Update.
2165 2016-10-13 Pedro Alves <palves@redhat.com>
2166 Tom Tromey <tom@tromey.com>
2168 * tid-parse.h (tid_range_parser): New class.
2169 (enum tid_range_state): Move into tid_range_parser's scope.
2170 Remove TID_RANGE_ prefix from all values.
2171 (tid_range_parser_get_tid, tid_range_parser_get_tid_range)
2172 (tid_range_parser_star_range, tid_range_parser_finished)
2173 (tid_range_parser_skip, tid_range_parser_qualified): Don't
2175 (tid_is_in_list): Update comment.
2176 * tid-parse.c (tid_range_parser::tid_range_parser): New.
2177 (init, finished, get_string, skip, tid_is_qualified)
2178 (get_tid_or_range, get_tid_range, get_tid, star_range): Rename;
2180 (tid_is_in_list): Adjust.
2181 * cli/cli-utils.h (number_or_range_parser): New class.
2182 (init_number_or_range, get_number_or_range)
2183 (number_range_setup_range): Don't declare.
2185 (number_or_range_parser::number_or_range_parser): New.
2186 (init_number_or_range, get_number_or_range)
2187 (number_range_setup_range): Rename; turn into methods.
2188 (number_is_in_list): Adjust.
2189 * breakpoint.c (map_breakpoint_numbers): Adjust. Use bool.
2190 (trace_pass_command, get_tracepoint_by_number): Adjust.
2191 * breakpoint.h (get_tracepoint_by_number): Adjust.
2192 * inferior.c (detach_inferior_command, kill_inferior_command)
2193 (remove_inferior_command): Adjust.
2194 * linespec.c (decode_line_2): Adjust.
2195 * memattr.c (mem_enable_command, mem_disable_command)
2196 (mem_delete_command): Adjust.
2197 * printcmd.c (map_display_numbers): Adjust.
2198 * reverse.c (delete_bookmark_command, bookmarks_info): Adjust.
2199 * thread.c (thread_apply_command): Adjust.
2201 2016-10-12 Anton Kolesov <anton.kolesov@synopsys.com>
2203 * arc-newlib-tdep.c: New file.
2204 * configure.tgt: Add newlib support for ARC.
2206 2016-10-12 Anton Kolesov <anton.kolesov@synopsys.com>
2208 * arc-tdep.h (struct gdbarch_tdep) <jb_pc>: New field.
2209 * arc-tdep.c (arc_get_longjmp_target): New function.
2210 (arc_gdbarch_init): Set get_longjmp_target if jb_pc is non-negative.
2211 (arc_dump_tdep): Print jb_pc.
2213 2016-10-12 Anton Kolesov <anton.kolesov@synopsys.com>
2215 * arc-tdep.h (struct gdbarch_tdep): New.
2216 * arc-tdep.c (arc_gdbarch_init): Allocate gdbarch_tdep.
2218 2016-10-12 Yao Qi <yao.qi@linaro.org>
2221 * aarch64-tdep.c: Replace 32 with AARCH64_D_REGISTER_COUNT.
2222 (aarch64_analyze_prologue): Extend array 'regs' for D registers.
2223 Assert that operand 0 and 1 can be X or D registers. Update
2224 register number for D registers. Update registers in frame
2226 * aarch64-tdep.h (AARCH64_D_REGISTER_COUNT): New macro.
2228 2016-10-10 Yao Qi <yao.qi@linaro.org>
2230 * arch/arm.h (enum arm_breakpoint_kinds): New.
2231 * arm-tdep.c (arm_remote_breakpoint_from_pc): Use
2234 2016-10-10 Yao Qi <yao.qi@linaro.org>
2236 * m32c-tdep.c (m32c_gdbarch_init): Rename local 'arch' by
2239 2016-10-10 Yao Qi <yao.qi@linaro.org>
2241 * v850-tdep.c (v850_breakpoint_from_pc): Use the right
2242 breakpoint instruction.
2243 (v850_dbtrap_breakpoint_from_pc): Remove.
2244 (v850_gdbarch_init): Update.
2246 2016-10-08 Simon Marchi <simon.marchi@polymtl.ca>
2248 * ui-out.c (push_level): Remove "id" parameter.
2249 (ui_out_begin): Update call.
2251 2016-10-07 Joel Brobecker <brobecker@adacore.com>
2255 2016-10-07 Markus Metzger <markus.t.metzger@intel.com>
2257 * python/python.c (gdbpy_decode_line): Call
2258 string_to_event_location_basic instead of new_linespec_location.
2260 2016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
2262 * target.c (target_supports_multi_process): New function, moved
2264 * target.h (target_supports_multi_process): ... here. Remove
2266 * target/target.h (target_supports_multi_process): New prototype.
2268 2016-10-06 Pedro Alves <palves@redhat.com>
2270 * cp-valprint.c (vtbl_ptr_name): Write "extern const" instead of
2272 * stub-termcap.c: Remove __cplusplus checks.
2273 * common/common-defs.h [!__cplusplus] (EXTERN_C, EXTERN_C_PUSH,
2274 EXTERN_C_POP): Delete.
2275 * common/common-exceptions.h (GDB_XCPT_SJMP): Update comments.
2276 (GDB_XCPT) [!__cplusplus]: Delete.
2277 (throw_exception, throw_exception_sjlj): Update comments.
2278 * guile/guile-internal.h (as_a_scm_t_subr) [!__cplusplus]: Delete.
2279 * guile/guile.c (extension_language_guile): Write "extern const"
2280 instead of EXPORTED_CONST.
2281 * features/feature_to_c.sh: Don't emit !__cplusplus code. Write
2282 "extern const" instead of EXPORTED_CONST.
2284 2016-10-06 Doug Evans <dje@google.com>
2286 * python/py-value.c (valpy_long): Handle unsigned values.
2288 2016-10-06 Simon Marchi <simon.marchi@ericsson.com>
2290 * frame.h: Forward-declare struct ui_out.
2292 2016-10-06 Tom Tromey <tom@tromey.com>
2294 * MAINTAINERS: Remove Java test maintainer.
2295 * varobj.h (java_varobj_ops): Don't declare.
2296 * valprint.h (struct value_print_options)
2297 <pascal_static_field_print>: Update comment.
2298 * utils.c (producer_is_gcc): Remove java reference.
2299 * symtab.h (struct general_symbol_info): Remove java references.
2300 (SYMBOL_SEARCH_NAME): Likewise.
2301 * objfiles.c (allocate_objfile): Update comment.
2302 * linespec.c (find_linespec_symbols): Remove java references.
2303 * gnu-v3-abi.c (gnuv3_rtti_type, gnuv3_baseclass_offset): Remove
2305 * gdbtypes.h (struct cplus_struct_type) <is_java>: Remove.
2306 (TYPE_CPLUS_REALLY_JAVA): Remove.
2307 * c-varobj.c (enum vsections): Update comment.
2308 * symtab.c (symbol_set_language, symbol_set_names)
2309 (symbol_natural_name, symbol_demangled_name)
2310 (demangle_for_lookup, symbol_matches_domain)
2311 (default_make_symbol_completion_list_break_on_1): Remove java
2313 (JAVA_PREFIX, JAVA_PREFIX_LEN): Remove.
2314 * psymtab.c (match_partial_symbol, psymtab_search_name)
2315 (lookup_partial_symbol): Remove java references.
2316 * dwarf2read.c (find_slot_in_mapped_hash): Remove java references.
2317 (add_partial_symbol, dwarf2_compute_name, dwarf2_physname)
2318 (dwarf2_add_member_fn, is_vtable_name, read_structure_type)
2319 (process_structure_scope, read_subroutine_type)
2320 (read_subrange_type, load_partial_dies)
2321 (new_symbol_full, determine_prefix, typename_concat)
2322 (dwarf2_name): Remove java references.
2323 (set_cu_language): Treat Java as C++.
2324 * c-typeprint.c (c_type_print_args): Remove java reference.
2325 * defs.h (enum language) <language_java>: Remove.
2326 * Makefile.in (SFILES, HFILES_NO_SRCDIR, COMMON_OBS, YYFILES)
2327 (YYOBJ, local-maintainer-clean): Don't mention java files.
2328 * jv-exp.y, jv-lang.c, jv-lang.h, jv-typeprint.c, jv-valprint.c,
2329 jv-varobj.c: Remove.
2331 2016-10-06 Maciej W. Rozycki <macro@imgtec.com>
2333 * mips-tdep.c (mips_pseudo_register_type): Make FCRs always
2336 2016-10-06 Maciej W. Rozycki <macro@imgtec.com>
2338 * mips-tdep.c (mips_pseudo_register_type): Rearrange comments
2341 2016-10-06 Markus Metzger <markus.t.metzger@intel.com>
2343 * stack.c (frame_info): Call val_print_not_saved instead of
2344 val_print_unavailable if frame_id check fails.
2346 2016-10-06 Pedro Alves <palves@redhat.com>
2348 * jit.c (free_objfile_data): Delete the JIT breakpoint and clear
2349 the cached code address.
2351 2016-10-06 Doug Evans <dje@google.com>
2353 * features/aarch64-core.xml (cpsr_flags): Elide "type" and specify
2354 "end" in all fields.
2355 * features/aarch64.c: Regenerate.
2356 * features/i386/32bit-mpx.xml (_bndcfgu): Specify type of "preserved"
2357 and "enabled" fields. Correct size of "enabled" field.
2358 * features/i386/64bit-mpx.xml (_bndcfgu): Specify type of "preserved"
2359 and "enabled" fields.
2360 * features/i386/i386-avx-mpx-linux.c: Regenerate.
2361 * features/i386/i386-avx-mpx.c: Regenerate.
2362 * features/i386/i386-avx512-linux.c: Regenerate.
2363 * features/i386/i386-avx512.c: Regenerate.
2364 * features/i386/i386-mpx-linux.c: Regenerate.
2365 * features/i386/i386-mpx.c: Regenerate.
2366 * features/arc-arcompact.c: Regenerate.
2367 * features/arc-v2.c: Regenerate.
2368 * xml-tdesc.c (tdesc_start_field): Require "end" spec. Single bit
2369 fields default to "bool" type.
2371 Revert 2016-03-15 Doug Evans <dje@google.com>
2372 * features/i386/32bit-core.xml (i386_eflags): Remove "end" spec.
2373 * features/i386/32bit-sse.xml (i386_eflags): Ditto.
2374 * features/i386/64bit-core.xml (i386_eflags): Ditto.
2375 * features/i386/64bit-sse.xml (i386_eflags): Ditto.
2376 * features/i386/x32-core.xml (i386_eflags): Ditto.
2378 2016-10-05 Tom Tromey <tom@tromey.com>
2380 PR breakpoints/20653:
2381 * location.c (string_to_explicit_location): Use NULL, not '\0'.
2383 2016-10-05 Tom Tromey <tom@tromey.com>
2386 * psymtab.c (psymbol_compare): Correctly compare "ginfo.value"
2389 2016-10-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
2391 * dwarf2expr.c (dwarf_expr_require_composition): Allow
2393 (execute_stack_op): Use dwarf_expr_require_composition instead of
2396 2016-10-05 Anton Kolesov <anton.kolesov@synopsys.com>
2398 * arc-tdep.c (arc_frame_prev_register): Remove annoying log message.
2400 2016-10-05 Yao Qi <yao.qi@linaro.org>
2402 * features/Makefile (WHICH): Add
2403 rs6000/powerpc-isa205-32l, rs6000/powerpc-isa205-64l,
2404 rs6000/powerpc-isa205-altivec32l, rs6000/powerpc-isa205-altivec64l,
2405 rs6000/powerpc-isa205-vsx32l and rs6000/powerpc-isa205-vsx64l.
2406 * regformats/rs6000/powerpc-isa205-32l.dat: Regenerated.
2407 * regformats/rs6000/powerpc-isa205-64l.dat: Likewise.
2408 * regformats/rs6000/powerpc-isa205-altivec32l.dat: Likewise.
2409 * regformats/rs6000/powerpc-isa205-altivec64l.dat: Likewise.
2410 * regformats/rs6000/powerpc-isa205-vsx32l.dat: Likewise.
2411 * regformats/rs6000/powerpc-isa205-vsx64l.dat: Likewise.
2413 2016-10-05 Yao Qi <yao.qi@linaro.org>
2415 * features/Makefile (XMLTOC): Add s390-tevx-linux64.xml,
2416 s390-vx-linux64.xml, s390x-tevx-linux64.xml and
2417 s390x-vx-linux64.xml.
2419 2016-10-05 Yao Qi <yao.qi@linaro.org>
2421 * features/Makefile: Remove i386/*-expedite. Add i386-expedite,
2422 amd64-expedite, and x32-expedite.
2424 2016-10-05 Terry Guo <terry.guo@arm.com>
2425 Yao Qi <yao.qi@linaro.org>
2427 * arm-tdep.c: Adjust includes.
2428 * features/Makefile (WHICH): Add "arm/" directory to arm
2429 target descriptions.
2431 (arm/arm-with-iwmmxt.dat): Adjust the path for
2433 * features/arm-core.xml: Moved to ...
2434 * features/arm/arm-core.xml: ... it.
2435 * features/arm-fpa.xml: Moved to ...
2436 * features/arm/arm-fpa.xml: ... it.
2437 * features/arm-m-profile.xml: Moved to ...
2438 * features/arm/arm-m-profile.xm: ... it.
2439 * features/arm-vfpv2.xml: Moved to ...
2440 * features/arm/arm-vfpv2.xm: ... it.
2441 * features/arm-vfpv3.xml: Moved to ...
2442 * features/arm/arm-vfpv3.xml: ... it.
2443 * features/arm-with-iwmmxt.c: Moved to ...
2444 * features/arm/arm-with-iwmmxt.c: ... it.
2445 * features/arm-with-iwmmxt.xml: Moved to ...
2446 * features/arm/arm-with-iwmmxt.xml: ... it.
2447 * features/arm-with-m-fpa-layout.c: Moved to ...
2448 * features/arm/arm-with-m-fpa-layout.c: ... it.
2449 * features/arm-with-m-fpa-layout.xml: Moved to ...
2450 * features/arm/arm-with-m-fpa-layout.xml: ... it.
2451 * features/arm-with-m-vfp-d16.c: Moved to ...
2452 * features/arm/arm-with-m-vfp-d16.c: ... it.
2453 * features/arm-with-m-vfp-d16.xml: Moved to ...
2454 * features/arm/arm-with-m-vfp-d16.xml: ... it.
2455 * features/arm-with-m.c: Moved to ...
2456 * features/arm/arm-with-m.c: ... it.
2457 * features/arm-with-m.xml: Moved to ...
2458 * features/arm/arm-with-m.xm: ... it.
2459 * features/arm-with-neon.c: Moved to ...
2460 * features/arm/arm-with-neon.c: ... it.
2461 * features/arm-with-neon.xml: Moved to ...
2462 * features/arm/arm-with-neon.xml: ... it.
2463 * features/arm-with-vfpv2.c: Moved to ...
2464 * features/arm/arm-with-vfpv2.c: ... it.
2465 * features/arm-with-vfpv2.xml: Moved to ...
2466 * features/arm/arm-with-vfpv2.xml: ... it.
2467 * features/arm-with-vfpv3.c: Moved to ...
2468 * features/arm/arm-with-vfpv3.c: ... it.
2469 * features/arm-with-vfpv3.xml: Moved to ...
2470 * features/arm/arm-with-vfpv3.xml: ... it.
2471 * features/xscale-iwmmxt.xml: Moved to ...
2472 * features/arm/xscale-iwmmxt.xml: ... it.
2474 2016-10-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
2475 2016-10-03 Simon Marchi <simon.marchi@ericsson.com>
2478 * NEWS: Mention new frame field of =thread-selected event.
2479 * cli/cli-decode.c (add_cmd): Initialize c->suppress_notification.
2480 (add_com_suppress_notification): New function definition.
2481 (cmd_func): Set and restore the suppress_notification flag.
2482 * cli/cli-deicode.h (struct cmd_list_element)
2483 <suppress_notification>: New field.
2484 * cli/cli-interp.c (cli_suppress_notification): New global variable.
2485 (cli_on_user_selected_context_changed): New function.
2486 (_initialize_cli_interp): Attach to user_selected_context_changed
2488 * command.h (struct cli_suppress_notification): New structure.
2489 (cli_suppress_notification): New global variable declaration.
2490 (add_com_suppress_notification): New function declaration.
2491 * defs.h (enum user_selected_what_flag): New enum.
2492 (user_selected_what): New enum flag type.
2493 * frame.h (print_stack_frame_to_uiout): New function declaration.
2494 * gdbthread.h (print_selected_thread_frame): New function declaration.
2495 * inferior.c (print_selected_inferior): New function definition.
2496 (inferior_command): Remove printing of inferior/thread/frame switch
2497 notifications, notify user_selected_context_changed observer.
2498 * inferior.h (print_selected_inferior): New function declaration.
2499 * mi/mi-cmds.c (struct mi_cmd): Add user_selected_context
2500 suppression to stack-select-frame and thread-select commands.
2501 * mi/mi-interp.c (struct mi_suppress_notification)
2502 <user_selected_context>: Initialize.
2503 (mi_user_selected_context_changed): New function definition.
2504 (_initialize_mi_interp): Attach to user_selected_context_changed.
2505 * mi/mi-main.c (mi_cmd_thread_select): Print thread selection reply.
2506 (mi_execute_command): Handle notification suppression. Notify
2507 user_selected_context_changed observer on thread change instead of printing
2508 event directly. Don't send it if command already sends the notification.
2509 (command_notifies_uscc_observer): New function.
2510 (mi_cmd_execute): Don't handle notification suppression.
2511 * mi/mi-main.h (struct mi_suppress_notification)
2512 <user_selected_context>: New field.
2513 * stack.c (print_stack_frame_to_uiout): New function definition.
2514 (select_frame_command): Notify user_selected_context_changed
2516 (frame_command): Call print_selected_thread_frame if there's no frame
2517 change or notify user_selected_context_changed observer if there is.
2518 (up_command): Notify user_selected_context_changed observer.
2519 (down_command): Likewise.
2520 (_initialize_stack): Suppress user_selected_context notification for
2521 command select-frame.
2522 * thread.c (thread_command): Notify
2523 user_selected_context_changed if the thread has changed, print
2524 thread info directly if it hasn't.
2525 (do_captured_thread_select): Do not print thread switch event.
2526 (print_selected_thread_frame): New function definition.
2527 * tui/tui-interp.c (tui_on_user_selected_context_changed):
2528 New function definition.
2529 (_initialize_tui_interp): Attach to user_selected_context_changed
2532 2016-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2534 PR gdb/20609 - attach of JIT-debug-enabled inf 7.11.1 regression
2535 * exec.c (exec_file_locate_attach): Add parameter defer_bp_reset.
2537 * gdbcore.h (exec_file_locate_attach): Add parameter defer_bp_reset.
2538 * infcmd.c (setup_inferior): Update caller.
2539 * remote.c (remote_add_inferior): Likewise.
2541 2016-09-28 Pedro Alves <palves@redhat.com>
2543 * infcall.c (run_inferior_call): Remove input from the event
2544 loop while running the infcall.
2546 2016-09-27 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
2548 * arm-tdep.c (arm_m_addr_is_magic): New function.
2549 (arm_addr_bits_remove): Call arm_m_addr_is_magic.
2550 (arm_m_exception_unwind_sniffer): Likewise.
2552 2016-09-23 Jon Turney <jon.turney@dronecode.org.uk>
2554 * windows-nat.c (windows_delete_thread): Adjusting call to
2555 target_mourn_inferior to include ptid_t argument.
2557 2016-09-23 Tom Tromey <tom@tromey.com>
2559 * utils.h (make_cleanup_dyn_string_delete): Remove declaration.
2560 * utils.c: Don't include dyn-string.h.
2561 (do_dyn_string_delete, make_cleanup_dyn_string_delete): Remove.
2562 * cli/cli-cmds.c: Include <string>. Don't include dyn-string.h.
2563 (argv_to_string): Rename. Change return type to std::string.
2564 (alias_command): Use std::string.
2566 2016-09-23 Tom Tromey <tom@tromey.com>
2568 * objfiles.c: Include <vector>.
2569 (objfile_relocate): Use std::vector.
2571 2016-09-23 Tom Tromey <tom@tromey.com>
2573 * rust-lang.c: Include <string> and <vector>.
2574 (rust_evaluate_funcall): Use std::vector, std::string.
2575 (rust_evaluate_subexp): Use std::string.
2576 (rust_lookup_symbol_nonlocal): Use std::string.
2578 2016-09-23 Tom Tromey <tom@tromey.com>
2580 * cp-namespace.c: Include <string>.
2581 (cp_search_static_and_baseclasses)
2582 (cp_lookup_symbol_imports_or_template, find_symbol_in_baseclass):
2585 2016-09-23 Tom Tromey <tom@tromey.com>
2587 * break-catch-sig.c: Include <string>.
2588 (signal_catchpoint_print_one): Use std::string.
2590 2016-09-23 Tom Tromey <tom@tromey.com>
2592 * utils.c (struct restore_ui_out_closure): Remove.
2593 * objfiles.h (terminate_minimal_symbol_table): Don't declare.
2595 2016-09-23 Yao Qi <yao.qi@linaro.org>
2597 * nat/linux-osdata.c (linux_xfer_osdata_threads): Replace
2598 sprintf with xsnprintf.
2599 (linux_xfer_osdata_fds): Likewise.
2601 2016-09-23 Pedro Alves <palves@redhat.com>
2603 * Makefile.in (SFILES): Add common/new-op.c.
2604 (COMMON_OBS): Add common/new-op.o.
2605 (new-op.o): New rule.
2606 * common/common-exceptions.h: Include <new>.
2607 (struct gdb_quit_bad_alloc): New type.
2608 * common/new-op.c: New file.
2610 2016-09-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2612 * rs6000-tdep.c (ppc_process_record_op31): Fix
2613 regcache_raw_read_unsigned call using the correct parameter type.
2615 2016-09-22 Anton Kolesov <anton.kolesov@synopsys.com>
2617 * arc-tdep.c: Fix ARI warning for printf(%p).
2619 2016-09-21 Anton Kolesov <anton.kolesov@synopsys.com>
2621 * MAINTAINERS (Write After Approval): Add Anton Kolesov.
2623 2016-09-21 Anton Kolesov <anton.kolesov@synopsys.com>
2625 * Makefile.in (ALL_TARGET_OBS): Add arc-tdep.o.
2626 (HFILES_NO_SRCDIR): Add arc-tdep.h.
2627 (ALLDEPFILES): Add arc-tdep.c.
2628 * NEWS: Mention new ARC port.
2629 * configure.tgt: Add ARC.
2630 * arc-tdep.c: New file.
2631 * arc-tdep.h: New file.
2632 * features/Makefile (XMLTOC): Add arc-v2.xml and arc-arcompact.xml.
2633 * features/arc-v2.xml: New file.
2634 * features/arc-v2.c: New file (generated).
2635 * features/arc-arcompact.xml: New file.
2636 * features/arc-arcompact.c: New file (generated).
2638 2016-09-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2640 * rs6000-tdep.c (ppc_process_record_op63): Fix return of instruction
2643 2016-09-21 Tom Tromey <tom@tromey.com>
2646 * top.h (quit_force): Update.
2647 * top.c (quit_force): Changed type of first argument. Don't
2648 evaluate expression. Pass NULL to kill_or_detach.
2649 * cli/cli-cmds.c (quit_command): Evaluate "args".
2651 2016-09-21 Simon Marchi <simon.marchi@ericsson.com>
2653 * .gitignore: Ignore more files.
2654 * data-directory/.gitignore: Likewise.
2656 2016-09-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2658 * rs6000-tdep.c (PPC_DQ): New macro.
2659 (ppc_process_record_op4): Add Power ISA 3.0 instructions.
2660 (ppc_process_record_op19): Likewise.
2661 (ppc_process_record_op31): Likewise.
2662 (ppc_process_record_op59): Likewise.
2663 (ppc_process_record_op60): Likewise.
2664 (ppc_process_record_op63): Likewise.
2665 (ppc_process_record): Likewise.
2666 (ppc_process_record_op61): New function.
2668 2016-09-21 Yao Qi <yao.qi@linaro.org>
2670 * aarch32-linux-nat.c (aarch32_gp_regcache_collect): Keep
2673 2016-09-20 Tom Tromey <tom@tromey.com>
2675 * python/py-value.c (convert_value_from_python): Make PyInt_Check
2676 conditional on Python 2.
2677 * python/py-arch.c (archpy_disassemble): Make PyInt_Check
2678 conditional on Python 2.
2680 2016-09-20 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2682 * rs6000-tdep.c (ppc_process_record_op31): Fix record of Store String
2685 2016-09-20 Sergio Durigan Junior <sergiodj@redhat.com>
2687 * fork-inferior.c (startup_inferior): Pass 'event_ptid' instead of
2688 'resume_ptid' to 'target_mourn_inferior'. Fix regression
2689 introduced by my last commit.
2691 2016-09-19 Pedro Alves <palves@redhat.com>
2693 * common/gdb_locale.h [!ENABLE_NLS] (gettext, dgettext, dcgettext,
2694 textdomain, bindtextdomain): Delete macros.
2695 * main.c (captured_main) [!ENABLE_NLS]: Skip bintextdomain and
2698 2016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
2700 * darwin-nat.c (darwin_kill_inferior): Adjusting call to
2701 target_mourn_inferior to include ptid_t argument.
2702 * fork-child.c (startup_inferior): Likewise.
2703 * gnu-nat.c (gnu_kill_inferior): Likewise.
2704 * inf-ptrace.c (inf_ptrace_kill): Likewise.
2705 * infrun.c (handle_inferior_event_1): Likewise.
2706 * linux-nat.c (linux_nat_attach): Likewise.
2707 (linux_nat_kill): Likewise.
2708 * nto-procfs.c (interrupt_query): Likewise.
2709 (procfs_interrupt): Likewise.
2710 (procfs_kill_inferior): Likewise.
2711 * procfs.c (procfs_kill_inferior): Likewise.
2712 * record.c (record_mourn_inferior): Likewise.
2713 * remote-sim.c (gdbsim_kill): Likewise.
2714 * remote.c (remote_detach_1): Likewise.
2715 (remote_kill): Likewise.
2716 * target.c (target_mourn_inferior): Change declaration to accept
2717 new ptid_t argument; use gdb_assert on it.
2718 * target.h (target_mourn_inferior): Move function prototype from
2720 * target/target.h (target_mourn_inferior): ... to here. Adjust it
2721 to accept new ptid_t argument.
2722 * windows-nat.c (get_windows_debug_event): Adjusting call to
2723 target_mourn_inferior to include ptid_t argument.
2725 2016-09-18 Pedro Alves <palves@redhat.com>
2727 * s390-linux-nat.c: Include <algorithm>.
2729 2016-09-18 Pedro Alves <palves@redhat.com>
2731 * breakpoint.c (hardware_watchpoint_inserted_in_range): Explicitly
2732 specify the std:min/std::max specialization.
2733 * exec.c (section_table_read_available_memory): Likewise.
2734 * remote.c (remote_read_qxfer): Likewise.
2735 * target.c (simple_verify_memory): Likewise.
2737 2016-09-16 Simon Marchi <simark@simark.ca>
2739 * infrun.c (restore_current_uiout_cleanup): Move to ui-out.c.
2740 (print_stop_event): Use make_cleanup_restore_current_uiout.
2741 * python/python.c (execute_gdb_command): Likewise.
2742 * ui-out.c (restore_current_uiout_cleanup): Move from infrun.c.
2743 (make_cleanup_restore_current_uiout): New function definition.
2744 * ui-out.h (make_cleanup_restore_current_uiout): New function
2746 * utils.c (do_restore_ui_out): Remove.
2747 (make_cleanup_restore_ui_out): Remove.
2748 * utils.h (make_cleanup_restore_ui_out): Remove.
2750 2016-09-16 Pedro Alves <palves@redhat.com>
2752 * defs.h (min, max): Delete.
2753 * aarch64-tdep.c: Include <algorithm> and use std::min and
2754 std::max throughout.
2755 * aarch64-tdep.c: Likewise.
2756 * alpha-tdep.c: Likewise.
2757 * amd64-tdep.c: Likewise.
2758 * amd64-windows-tdep.c: Likewise.
2759 * arm-tdep.c: Likewise.
2760 * avr-tdep.c: Likewise.
2761 * breakpoint.c: Likewise.
2762 * btrace.c: Likewise.
2764 * disasm.c: Likewise.
2765 * doublest.c: Likewise.
2766 * dwarf2loc.c: Likewise.
2767 * dwarf2read.c: Likewise.
2768 * environ.c: Likewise.
2770 * f-exp.y: Likewise.
2771 * findcmd.c: Likewise.
2772 * ft32-tdep.c: Likewise.
2773 * gcore.c: Likewise.
2774 * hppa-tdep.c: Likewise.
2775 * i386-darwin-tdep.c: Likewise.
2776 * i386-tdep.c: Likewise.
2777 * linux-thread-db.c: Likewise.
2778 * lm32-tdep.c: Likewise.
2779 * m32r-tdep.c: Likewise.
2780 * m88k-tdep.c: Likewise.
2781 * memrange.c: Likewise.
2782 * minidebug.c: Likewise.
2783 * mips-tdep.c: Likewise.
2784 * moxie-tdep.c: Likewise.
2785 * nds32-tdep.c: Likewise.
2786 * nios2-tdep.c: Likewise.
2787 * nto-procfs.c: Likewise.
2788 * parse.c: Likewise.
2789 * ppc-sysv-tdep.c: Likewise.
2790 * probe.c: Likewise.
2791 * record-btrace.c: Likewise.
2792 * remote.c: Likewise.
2793 * rs6000-tdep.c: Likewise.
2794 * rx-tdep.c: Likewise.
2795 * s390-linux-nat.c: Likewise.
2796 * s390-linux-tdep.c: Likewise.
2797 * ser-tcp.c: Likewise.
2798 * sh-tdep.c: Likewise.
2799 * sh64-tdep.c: Likewise.
2800 * source.c: Likewise.
2801 * sparc-tdep.c: Likewise.
2802 * symfile.c: Likewise.
2803 * target-memory.c: Likewise.
2804 * target.c: Likewise.
2805 * tic6x-tdep.c: Likewise.
2806 * tilegx-tdep.c: Likewise.
2807 * tracefile-tfile.c: Likewise.
2808 * tracepoint.c: Likewise.
2809 * valprint.c: Likewise.
2810 * value.c: Likewise.
2811 * xtensa-tdep.c: Likewise.
2812 * cli/cli-cmds.c: Likewise.
2813 * compile/compile-object-load.c: Likewise.
2815 2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
2817 * s390-linux-nat.c (PER_BIT, PER_EVENT_BRANCH, PER_EVENT_IFETCH)
2818 (PER_EVENT_STORE, PER_EVENT_NULLIFICATION)
2819 (PER_CONTROL_BRANCH_ADDRESS, PER_CONTROL_SUSPENSION)
2820 (PER_CONTROL_ALTERATION): New macros.
2821 (struct s390_debug_reg_state) <break_areas>: New member.
2822 (s390_forget_process): Free break_areas as well.
2823 (s390_linux_new_fork): Copy break_areas as well.
2824 (s390_prepare_to_resume): Install hardware breakpoints.
2825 (s390_can_use_hw_breakpoint): Indicate support for hardware
2827 (s390_insert_hw_breakpoint, s390_remove_hw_breakpoint): New
2828 linux_nat target methods.
2829 (_initialize_s390_nat): Register them.
2831 2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
2833 * nat/linux-nat.h (lwp_is_stepping): New declaration.
2834 * linux-nat.c (lwp_is_stepping): New function.
2836 2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
2838 * s390-linux-nat.c (gdbcmd.h): New include.
2839 (s390_show_debug_regs): New function.
2840 (s390_stopped_by_watchpoint): Call it, if show_debug_regs is set.
2841 (s390_prepare_to_resume): Likewise.
2842 (_initialize_s390_nat): Register the command "maint set
2845 2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
2847 * s390-linux-nat.c (watch_areas): Remove variable. Replace by a
2849 (struct s390_debug_reg_state): ...this. New struct.
2850 (struct s390_process_info): New struct.
2851 (s390_process_list): New variable.
2852 (s390_find_process_pid, s390_add_process, s390_process_info_get)
2853 (s390_get_debug_reg_state): New functions.
2854 (s390_stopped_by_watchpoint): Now access the watch_areas VEC via
2855 s390_get_debug_reg_state.
2856 (s390_prepare_to_resume): Likewise.
2857 (s390_insert_watchpoint): Likewise.
2858 (s390_remove_watchpoint): Likewise.
2859 (s390_forget_process, s390_linux_new_fork): New linux_nat target
2861 (_initialize_s390_nat): Register them.
2863 2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
2865 * s390-linux-nat.c (s390_watch_area): New typedef. Define a VEC.
2866 (watch_base): Remove variable.
2867 (watch_areas): New variable.
2868 (s390_stopped_by_watchpoint): Transform operations on the
2869 watch_base list to equivalent operations on the watch_areas VEC.
2870 (s390_prepare_to_resume): Likewise.
2871 (s390_insert_watchpoint): Likewise.
2872 (s390_remove_watchpoint): Likewise.
2874 2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
2876 * s390-linux-nat.c (s390_prepare_to_resume): Use advertised lwp
2877 functions instead of accessing lwp_info structure members.
2878 (s390_mark_per_info_changed): New function.
2879 (s390_new_thread): Use it.
2880 (s390_refresh_per_info_cb): New function.
2881 (s390_refresh_per_info): Remove parameter. Refresh all lwps of
2882 the current process.
2883 (s390_insert_watchpoint): Adjust call to s390_refresh_per_info.
2884 (s390_remove_watchpoint): Likewise.
2886 2016-09-09 Andreas Arnez <arnez@linux.vnet.ibm.com>
2888 * elfread.c (auxv.h): New include.
2889 (elf_gnu_ifunc_resolve_addr): Pass HWCAP to ifunc resolver.
2891 2016-09-08 Tom Tromey <tom@tromey.com>
2893 * remote.c (remote_notif_stop_ack, remote_wait_as)
2894 (show_remote_cmd): Remove unneeded casts.
2896 2016-09-06 Pedro Alves <palves@redhat.com>
2898 * top.c (wait_sync_command_done): Don't assume current_ui doesn't
2899 change across events. Restore the current UI before returning.
2900 (gdb_readline_wrapper): Restore the current UI before returning.
2902 2016-09-06 Pedro Alves <palves@redhat.com>
2904 * event-top.c (restore_ui_cleanup): Now static.
2905 (make_cleanup_restore_current_ui): New function.
2906 (switch_thru_all_uis_init): Use it.
2907 * infcall.c (call_thread_fsm_should_stop): Use it.
2908 * infrun.c (fetch_inferior_event): Use it.
2909 * top.c (new_ui_command): Use it.
2910 * top.h (restore_ui_cleanup): Delete declaration.
2911 (make_cleanup_restore_current_ui): New declaration.
2913 2016-09-05 Ulrich Weigand <uweigand@de.ibm.com>
2915 * i386-tdep.c (i386_floatformat_for_type): New function.
2916 (i386_gdbarch_init): Install it.
2917 * ppc-linux-tdep.c (ppc_floatformat_for_type): New function.
2918 (ppc_linux_init_abi): Install it.
2920 2016-09-05 Ulrich Weigand <uweigand@de.ibm.com>
2922 * gdbarch.sh (floatformat_for_type): New gdbarch callback.
2923 * gdbarch.h, gdbarch.c: Re-generate.
2924 * arch-utils.h (default_floatformat_for_type): New prototype.
2925 * arch-utils.c (default_floatformat_for_type): New function.
2927 * doublest.c (floatformat_from_length): Remove.
2928 (floatformat_from_type): Assume TYPE_FLOATFORMAT is non-NULL.
2929 * gdbtypes.c (verify_floatformat): Require non-NULL format.
2931 * dwarf2read.c (dwarf2_init_float_type): New function.
2932 (read_base_type): Use it.
2933 * stabsread.c (dbx_init_float_type): New function.
2934 (read_sun_floating_type): Use it.
2935 (read_range_type): Likewise.
2937 2016-09-05 Ulrich Weigand <uweigand@de.ibm.com>
2939 * ada-lang.c (ada_language_arch_info): Use gdbarch-provided
2940 platform ABI floating-point formats for built-in types.
2941 * d-lang.c (build_d_types): Likewise.
2942 * f-lang.c (build_fortran_types): Likewise.
2943 * m2-lang.c (build_m2_types): Likewise.
2944 * mdebugread.c (basic_type): Likewise.
2946 * go-lang.c (build_go_types): Use IEEE floating-point formats
2947 for language built-in types as mandanted by the language.
2948 * jv-lang.c (build_java_types): Likewise.
2949 * rust-lang.c (rust_language_arch_info): Likewise.
2950 * stabsread.c (rs6000_builtin_type): Likewise.
2952 2016-09-05 Ulrich Weigand <uweigand@de.ibm.com>
2954 * gdbtypes.c (init_type): Remove "char" special case.
2955 (arch_integer_type): Likewise.
2956 (gdbtypes_post_init): Set TYPE_NOSIGN for "char" type.
2957 (objfile_type): Likewise.
2958 * mdebugread.c (basic_type): Likewise.
2959 * stabsread.c (rs6000_builtin_type): Likewise.
2961 2016-09-05 Ulrich Weigand <uweigand@de.ibm.com>
2963 * gdbtypes.h (enum type_flag_value): Remove.
2964 Remove references to TYPE_FLAG_... in comments throughout.
2965 * gdbtypes.c (recursive_dump_type): Do not print TYPE_FLAG_...
2966 flags, print the corresponding TYPE_... access macro names.
2967 Remove references to TYPE_FLAG_... in comments throughout.
2968 * infcall.c: Remove references to TYPE_FLAG_... in comments.
2969 * valprint.c: Likewise.
2970 * gdb-gdb.py (class TypeFlag): No longer consider TYPE_FLAG_...
2971 values, only TYPE_INSTANCE_FLAG_... values.
2972 (class TypeFlagsPrinter): Likewise.
2974 2016-09-05 Ulrich Weigand <uweigand@de.ibm.com>
2976 * gdbtypes.h (init_type): Remove FLAGS argument. Move OBJFILE
2977 argument to first position.
2978 (init_integer_type): New prototype.
2979 (init_character_type): Likewise.
2980 (init_boolean_type): Likewise.
2981 (init_float_type): Likewise.
2982 (init_decfloat_type): Likewise.
2983 (init_complex_type): Likewise.
2984 (init_pointer_type): Likewise.
2985 * gdbtypes.c (verify_floatflormat): New function.
2986 (init_type): Remove FLAGS argument and processing. Move OBJFILE
2987 argument to first position.
2988 (init_integer_type): New function.
2989 (init_character_type): Likewise.
2990 (init_boolean_type): Likewise.
2991 (init_float_type): Likewise.
2992 (init_decfloat_type): Likewise.
2993 (init_complex_type): Likewise.
2994 (init_pointer_type): Likewise.
2995 (arch_float_type): Use verify_floatflormat.
2996 (objfile_type): Use init_..._type helpers instead of calling
2998 * dwarf2read.c (fixup_go_packaging): Update to changed init_type
3000 (read_namespace_type): Likewise.
3001 (read_module_type): Likewise.
3002 (read_typedef): Likewise.
3003 (read_unspecified_type): Likewise.
3004 (build_error_marker_type): Likewise.
3005 (read_base_type): Use init_..._type helpers.
3006 * mdebugread.c (basic_type): Use init_..._type helpers.
3007 (parse_type): Update to changed init_type prototype.
3008 (cross_ref): Likewise.
3009 * stabsread.c (rs6000_builtin_type): Use init_..._type helpers.
3010 (read_sun_builtin_type): Likewise.
3011 (read_sun_floating_type): Likewise.
3012 (read_range_type): Likewise. Also update to changed init_type
3015 2016-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3017 * gdbtypes.h (arch_decfloat_type): New prototype.
3018 (arch_pointer_type): Likewise.
3019 * gdbtypes.c (arch_decfloat_type): New function.
3020 (arch_pointer_type): Likewise.
3021 (gdbtypes_post_init): Use arch_decfloat_type.
3022 * avr-tdep.c (avr_gdbarch_init): Use arch_pointer_type.
3023 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
3024 * m32c-tdep.c (make_types): Likewise.
3025 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
3027 2016-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3029 * gdbtypes.c (set_type_code): New function.
3030 (init_type, arch_type): Use it.
3032 2016-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3034 * ada-lang.c (ada_language_arch_info): Use gdbarch_long_double_bit
3035 instead of gdbarch_double_bit for "long_long_float".
3037 2016-09-05 Pedro Alves <palves@redhat.com>
3039 * NEWS: Mention that a C++ compiler is now required.
3040 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
3041 (COMPILE.pre, CC_LD): Use CXX directly.
3042 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
3043 * acinclude.m4: Don't include build-with-cxx.m4.
3044 * build-with-cxx.m4: Delete file.
3045 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
3046 * warning.m4: Assume $enable_build_with_cxx is yes.
3047 * configure: Regenerate.
3049 2016-09-05 Pedro Alves <palves@redhat.com>
3052 * frame.c (get_frame_id): Compute the frame id if not computed
3054 (unwind_to_current_frame): Delete.
3055 (get_current_frame): Use get_prev_frame_always_1 to get the
3056 current frame and assert that that always succeeds.
3057 (get_prev_frame_if_no_cycle): Skip cycle detection if returning
3060 2016-09-02 Tom Tromey <tom@tromey.com>
3063 * dwarf2read.c (decode_locdesc): Handle DW_OP_form_tls_address.
3064 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Handle
3065 DW_OP_form_tls_address.
3066 (locexpr_describe_location_piece): Likewise.
3067 * dwarf2expr.h (struct dwarf_expr_context_funcs): Update comment.
3068 * dwarf2expr.c (execute_stack_op): Handle DW_OP_form_tls_address.
3069 (ctx_no_get_tls_address): Mention DW_OP_form_tls_address.
3070 * compile/compile-loc2c.c (struct insn_info): Update comment.
3071 (compute_stack_depth_worker): Handle DW_OP_form_tls_address.
3073 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
3075 * target.c (target_wait): Mention that the function's prototype
3076 can be found at target/target.h.
3077 * target.h (target_wait): Move prototype from here...
3078 * target/target.h (target_wait): ... to here.
3080 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
3082 * fork-child.c (startup_inferior): Replace calls to target_resume
3083 by target_continue{,_no_signal}, depending on the case.
3084 * linux-nat.c (cleanup_target_stop): Call
3085 target_continue_no_signal instead of target_resume.
3086 * procfs.c (procfs_wait): Likewise.
3087 * target.c (target_continue): New function.
3088 * target/target.h (target_continue): New prototype.
3090 2016-08-31 Yao Qi <yao.qi@linaro.org>
3092 * record-full.c (record_full_insert_breakpoint): Fix typo.
3094 2016-08-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3096 * thread.c (tp_array_compar): Insert missing parentheses.
3098 2016-08-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
3100 * xtensa-tdep.h (XTENSA_GDBARCH_TDEP_INSTANTIATE): Replace
3101 designated initializer list by plain initializer list, for C++
3104 2016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3106 * aarch64-linux-nat.c (ps_get_thread_area): Remove const from
3107 struct ps_prochandle.
3108 * amd64-linux-nat.c (ps_get_thread_area): Likewise.
3109 * arm-linux-nat.c (ps_get_thread_area): Likewise.
3110 * gdb_proc_service.h (ps_get_thread_area): Likewise.
3111 * i386-linux-nat.c (ps_get_thread_area): Likewise.
3112 * m68klinux-nat.c (ps_get_thread_area): Likewise.
3113 * mips-linux-nat.c (ps_get_thread_area): Likewise.
3114 * nat/aarch64-linux.c (aarch64_ps_get_thread_area): Likewise.
3115 * nat/aarch64-linux.h (aarch64_ps_get_thread_area): Likewise.
3116 * xtensa-linux-nat.c (ps_get_thread_area): Likewise.
3118 2016-08-24 Simon Marchi <simon.marchi@ericsson.com>
3120 * infcmd.c (set_inferior_io_terminal): Set inferior terminal to
3121 NULL if terminal_name is an empty string.
3122 (_initialize_infcmd): Make the argument of "set inferior-tty"
3123 optional, mention it in the help doc.
3125 2016-08-24 Carl Love <cel@us.ibm.com>
3127 * rs6000-tdep.c (rs6000_gdbarch_init): Remove call
3128 set_gdbarch_deprecated_fp_regnum() architecture
3129 initialization function.
3131 2016-08-23 Simon Marchi <simon.marchi@ericsson.com>
3133 * stack.c (parse_frame_specification): Fix typo in comment.
3135 2016-08-23 Pedro Alves <palves@redhat.com>
3138 * inflow.c (our_terminal_info, initial_gdb_ttystate): Update
3140 (enum gdb_has_a_terminal_flag_enum, gdb_has_a_terminal_flag):
3142 (set_initial_gdb_ttystate): Record our_terminal_info here too,
3144 (gdb_has_a_terminal): ... here. Reimplement in terms of
3145 initial_gdb_ttystate. Make static.
3146 * terminal.h (gdb_has_a_terminal): Delete declaration.
3147 (set_initial_gdb_ttystate): Add comment.
3148 * top.c (show_interactive_mode): Use input_interactive_p instead
3149 of gdb_has_a_terminal.
3151 2016-08-22 Pedro Alves <palves@redhat.com>
3154 * linux-tdep.c (linux_vsyscall_range_raw): For core inferiors,
3155 find the vDSO's start address with AT_SYSINFO_EHDR too, and
3156 determine the vDSO's size by finding the PT_LOAD segment that
3157 matches AT_SYSINFO_EHDR.
3159 2016-08-19 Yao Qi <yao.qi@linaro.org>
3161 * aarch64-tdep.c (aarch64_analyze_prologue): Handle register
3162 based STP instruction.
3164 2016-08-19 Yao Qi <yao.qi@linaro.org>
3166 * completer.c (linespec_location_completer): Make file_to_match
3169 2016-08-19 Pedro Alves <palves@redhat.com>
3171 * amd64-tdep.c (amd64_relocate_instruction) <callq>: Handle return
3172 addresses over 0x7fffffff.
3174 2016-08-18 Carl Love <cel@us.ibm.com>
3176 * MAINTANERS Write After Approval): Add "Carl Love".
3178 2016-08-18 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3180 * rs6000-tdep.c (ppc_process_record_op31): Handle HTM instructions.
3182 2016-08-17 Simon Marchi <simon.marchi@ericsson.com>
3184 * inferior.c (remove_inferior_command): Fix error message.
3186 2016-08-17 Simon Marchi <simon.marchi@ericsson.com>
3188 * inferior.c (exit_inferior_1): Remove comment.
3190 2016-08-15 Matthew Wahab <matthew.wahab@arm.com>
3193 * gdb_proc_service.h: Add an include of gregset.h
3194 [!HAVE_PROC_SERVICE_H]: Remove the include of gregset.h.
3196 2016-08-15 Yao Qi <yao.qi@linaro.org>
3198 * location.c (explicit_location_lex_one): Compare the return
3199 value of strncmp with zero. Don't check (*inp)[9]. Increment
3202 2016-08-11 Pedro Alves <palves@redhat.com>
3205 * nat/linux-ptrace.c: Include <sys/procfs.h> instead of
3208 2016-08-10 Pedro Alves <palves@redhat.com>
3211 * record-full.c (record_full_remove_breakpoint): Don't remove the
3212 breakpoint from the record_full_breakpoints VEC if we're detaching
3213 the breakpoint from a fork child.
3215 2016-08-10 Pedro Alves <palves@redhat.com>
3218 * break-catch-sig.c (signal_catchpoint_remove_location): Adjust
3220 * break-catch-syscall.c (remove_catch_syscall):
3221 * breakpoint.c (enum remove_bp_reason): Moved to breakpoint.h.
3222 (remove_breakpoint_1): Pass 'reason' down.
3223 (remove_catch_fork, remove_catch_vfork, remove_catch_solib)
3224 (remove_catch_exec, remove_watchpoint, remove_masked_watchpoint)
3225 (base_breakpoint_remove_location, bkpt_remove_location)
3226 (bkpt_probe_remove_location, bkpt_probe_remove_location): Adjust
3228 * breakpoint.h (enum remove_bp_reason): Moved here from
3230 (struct breakpoint_ops) <remove_location>: Add 'reason' parameter.
3231 * corelow.c (core_remove_breakpoint): New function.
3232 (init_core_ops): Install it as to_remove_breakpoint method.
3233 * exec.c (exec_remove_breakpoint): New function.
3234 (init_exec_ops): Install it as to_remove_breakpoint method.
3235 * mem-break.c (memory_remove_breakpoint): Adjust interface.
3236 * record-btrace.c (record_btrace_remove_breakpoint): Adjust
3238 * record-full.c (record_full_remove_breakpoint)
3239 (record_full_core_remove_breakpoint): Adjust interface.
3240 * remote.c (remote_remove_breakpoint): Adjust interface.
3241 * target-debug.h (target_debug_print_enum_remove_bp_reason): New
3243 * target-delegates.c: Regenerate.
3244 * target.c (target_remove_breakpoint): Add 'reason' parameter.
3245 * target.h (struct target_ops) <to_remove_breakpoint>: Add
3247 (target_remove_breakpoint, memory_remove_breakpoint): Add 'reason'
3250 2016-08-10 Pedro Alves <palves@redhat.com>
3253 * breakpoint.c (insertion_state_t): Delete.
3254 (enum remove_bp_reason): New.
3255 (detach_breakpoints, remove_breakpoint_1, remove_breakpoint):
3256 Adjust to use enum remove_bp_reason instead of insertion_state_t.
3258 2016-08-10 Pedro Alves <palves@redhat.com>
3261 * breakpoint.c (remove_breakpoint): Remove 'is' parameter and
3262 always pass mark_uninserted to remove_breakpoint_1.
3263 (insert_breakpoint_locations, remove_breakpoints)
3264 (remove_breakpoints_pid, update_global_location_list): Update
3267 2016-08-10 Руслан Ижбулатов <lrn1986@gmail.com>
3268 Pedro Alves <palves@redhat.com>
3270 * windows-nat.c (MS_VC_EXCEPTION): New define.
3271 (handle_exception_result): New enum.
3272 (windows_delete_thread): Free the thread's name.
3273 (handle_exception): Handle MS_VC_EXCEPTION.
3274 (get_windows_debug_event): Handle HANDLE_EXCEPTION_IGNORED.
3275 (windows_thread_name): New function.
3276 (windows_target): Install it as to_thread_name method.
3277 * NEWS: Mention the thread naming support on MS-Windows.
3279 2016-08-10 Pedro Alves <palves@redhat.com>
3281 * common/signals-state-save-restore.c
3282 (save_original_signals_state, restore_original_signals_state):
3283 Wrap perror_with_name arguments with '()'.
3285 2016-08-09 Pedro Alves <palves@redhat.com>
3288 * event-top.c (ui_register_input_event_handler)
3289 (ui_unregister_input_event_handler): New functions.
3290 (async_enable_stdin): Register input in the event loop.
3291 (async_disable_stdin): Unregister input from the event loop.
3292 (gdb_setup_readline): Register input in the event loop.
3293 * infrun.c (check_curr_ui_sync_execution_done): Register input in
3295 * target.c (target_terminal_inferior): Don't unregister input from
3297 (target_terminal_ours): Don't register input in the event loop.
3298 * target.h (target_terminal_inferior)
3299 (target_terminal_ours_for_output, target_terminal_ours): Update
3301 * top.h (ui_register_input_event_handler)
3302 (ui_unregister_input_event_handler): New declarations.
3303 * utils.c (ui_unregister_input_event_handler_cleanup)
3304 (prepare_to_handle_input): New functions.
3305 (defaulted_query, prompt_for_continue): Use
3306 prepare_to_handle_input.
3308 2016-08-09 Pedro Alves <palves@redhat.com>
3311 * mi/mi-main.c (mi_execute_command): Enable input and set prompt
3312 state to PROMPT_NEEDED.
3314 2016-08-09 Pedro Alves <palves@redhat.com>
3317 * Makefile.in (SFILES): Add
3318 common/signals-state-save-restore.c.
3319 (HFILES_NO_SRCDIR): Add common/signals-state-save-restore.h.
3320 (COMMON_OBS): Add signals-state-save-restore.o.
3321 (signals-state-save-restore.o): New rule.
3322 * configure: Regenerate.
3323 * fork-child.c: Include "signals-state-save-restore.h".
3324 (fork_inferior): Call restore_original_signals_state.
3325 * main.c: Include "signals-state-save-restore.h".
3326 (captured_main): Call save_original_signals_state.
3327 * common/common.m4: Add sigaction to AC_CHECK_FUNCS checks.
3328 * common/signals-state-save-restore.c: New file.
3329 * common/signals-state-save-restore.h: New file.
3331 2016-08-09 Pedro Alves <palves@redhat.com>
3333 * value.c (unpack_value_bitfield): Skip unpacking if the parent
3334 has no contents buffer to begin with.
3336 2016-08-08 Pedro Alves <palves@redhat.com>
3338 * features/i386/amd64-avx-mpx-linux.c: Regenerate.
3339 * features/i386/amd64-avx-mpx.c: Regenerate.
3340 * features/i386/i386-avx-mpx-linux.c: Regenerate.
3341 * features/i386/i386-avx-mpx.c: Regenerate.
3343 2016-08-05 Simon Marchi <simon.marchi@ericsson.com>
3345 * event-top.h (cli_command_loop): Remove.
3347 2016-08-05 Pedro Alves <palves@redhat.com>
3350 * remote-fileio.c (remote_fileio_quit_handler): Check the quit
3351 flag before calling quit.
3353 2016-08-05 Pedro Alves <palves@redhat.com>
3355 * NEWS: Mention that GDB and GDBserver build with a C++ compiler
3358 2016-08-05 Pedro Alves <palves@redhat.com>
3360 * build-with-cxx.m4: Change help string to be in terms of
3361 --disable-build-with-cxx.
3362 * configure: Regenerate.
3364 2016-08-04 Yao Qi <yao.qi@linaro.org>
3366 * aarch64-linux-nat.c (tdesc_arm_with_vfpv3): Remove the
3368 (aarch64_linux_read_description): Remove code on getting
3369 auxv and select target description on it. Select target
3370 description by the result of NT_ARM_VFP ptrace request.
3372 2016-08-03 Tom Tromey <tom@tromey.com>
3375 * python/py-frame.c (frapy_function): Use find_frame_funname.
3377 2016-08-03 Tom Tromey <tom@tromey.com>
3379 * stack.c (find_frame_funname): Avoid any possible leak in case
3380 cp_remove_params can throw.
3382 2016-08-03 Tom Tromey <tom@tromey.com>
3384 * NEWS: Mention new Python breakpoint events.
3386 2016-08-02 Tom Tromey <tom@tromey.com>
3388 * MAINTAINERS (Core): Add self as Rust maintainer.
3390 2016-08-01 Joel Brobecker <brobecker@adacore.com>
3392 * NEWS: Create a new section for the next release branch.
3393 Rename the section of the current branch, now that it has
3396 2016-08-01 Joel Brobecker <brobecker@adacore.com>
3398 GDB 7.12 branch created (41bfcd638a4e0e48b96ce4de2845372dea481322):
3399 * version.in: Bump version to 7.12.50.DATE-git.
3401 2016-07-27 Alan Modra <amodra@gmail.com>
3403 * amd64-darwin-tdep.c: Don't include libbfd.h.
3404 * i386-darwin-tdep.c: Likewise.
3405 * rs6000-nat.c: Likewise.
3406 * rs6000-tdep.c: Likewise.
3408 2016-07-26 Tom Tromey <tom@tromey.com>
3410 * symtab.c (register_symbol_computed_impl): Update.
3412 * value.h (symbol_read_needs): Declare.
3413 (symbol_read_needs_frame): Add comment.
3414 * symtab.h (struct symbol_computed_ops) <read_variable>: Update
3416 <get_symbol_read_needs>: Rename. Change return type.
3417 * findvar.c (symbol_read_needs): New function.
3418 (symbol_read_needs_frame): Rewrite.
3419 (default_read_var_value): Use symbol_read_needs.
3420 * dwarf2loc.c (struct symbol_needs_baton): Rename.
3421 <needs>: Renamed from needs_frame. Changed type.
3422 (needs_frame_read_addr_from_reg, symbol_needs_get_reg_value)
3423 (symbol_needs_read_mem, symbol_needs_frame_base)
3424 (symbol_needs_frame_cfa, symbol_needs_tls_address)
3425 (symbol_needs_dwarf_call): Rename.
3426 (needs_dwarf_reg_entry_value): Update.
3427 (symbol_needs_ctx_funcs, dwarf2_loc_desc_get_symbol_read_needs):
3429 (locexpr_get_symbol_read_needs, loclist_symbol_needs): Likewise.
3430 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Update.
3431 * defs.h (enum symbol_needs_kind): New.
3433 2016-07-26 Pedro Alves <palves@redhat.com>
3435 * nat/linux-ptrace.c: Include "gregset.h".
3436 (linux_ptrace_test_ret_to_nx): Use PTRACE_GETREGS instead of
3439 2016-07-26 Pedro Alves <palves@redhat.com>
3441 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Rename 'native'
3442 parameter to 'ptrace'.
3443 * nat/amd64-linux-siginfo.c (GDB_SI_SIZE): New define.
3444 (nat_uptr_t): New an unsigned long.
3445 (nat_clock_t): Remove attribute __aligned__.
3446 (struct nat_timeval): Delete.
3447 (nat_siginfo_t): Remove attribute __aligned__.
3448 (ptrace_siginfo_t): Define.
3449 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
3450 (compat_x32_siginfo_from_siginfo)
3451 (siginfo_from_compat_x32_siginfo): Make 'from' parameter const.
3452 Convert through a ptrace_siginfo_t instead of a nat_siginfo_t.
3454 (amd64_linux_siginfo_fixup_common): Rename 'native' parameter to
3455 'ptrace'. Remove static assertions.
3456 (top level): New static assertions.
3458 2016-07-25 Simon Marchi <simon.marchi@ericsson.com>
3460 * top.h (make_delete_ui_cleanup): New declaration.
3461 * top.c (delete_ui_cleanup): New function.
3462 (make_delete_ui_cleanup): New function.
3463 (new_ui_command): Create restore_ui cleanup earlier, create a
3464 delete_ui cleanup and discard it on success.
3466 2016-07-25 Pedro Alves <palves@redhat.com>
3467 Jan Kratochvil <jan.kratochvil@redhat.com>
3469 * nat/linux-procfs.c (parse_proc_status_state): Handle lowercase
3472 2016-07-25 Pedro Alves <palves@redhat.com>
3474 * nat/linux-procfs.c (enum proc_state): New enum.
3475 (parse_proc_status_state): New function.
3476 (linux_proc_pid_get_state): Replace output string buffer parameter
3477 with an output proc_state parameter. Use parse_proc_status_state.
3478 (linux_proc_pid_is_gone): Adjust to use proc_state values.
3479 (linux_proc_pid_has_state): Change type of 'state' parameter; now
3480 an enum proc_state. Adjust to linux_proc_pid_get_state interface
3482 (linux_proc_pid_is_stopped)
3483 (linux_proc_pid_is_trace_stopped_nowarn)
3484 (linux_proc_pid_is_zombie_maybe_warn): Adjust to
3485 linux_proc_pid_get_state interface change.
3487 2016-07-25 Tim Wiederhake <tim.wiederhake@intel.com>
3489 * MAINTAINERS (Write After Approval): Add Tim Wiederhake
3491 2016-07-25 Tim Wiederhake <tim.wiederhake@intel.com>
3493 * NEWS: Resume btrace on reconnect.
3494 * record-btrace.c: Added record-btrace.h include.
3495 (record_btrace_open): Split into this and ...
3496 (record_btrace_push_target): ... this.
3497 (record_btrace_disconnect): New function.
3498 (init_record_btrace_ops): Use record_btrace_disconnect.
3499 * record-btrace.h: New file.
3500 * remote.c: Added record-btrace.h include.
3501 (remote_start_remote): Check recording status.
3502 (remote_btrace_maybe_reopen): New function.
3504 2016-07-23 Gabriel Krisman Bertazi <gabriel@krisman.be>
3506 * xml-syscall.c (get_syscalls_by_group): New.
3507 (get_syscall_group_names): New.
3508 (struct syscall_group_desc): New structure to store group data.
3509 (struct syscalls_info): Include field to store the group list.
3510 (sysinfo_free_syscall_group_desc): New.
3511 (free_syscalls_info): Free group list.
3512 (syscall_group_create_syscall_group_desc): New.
3513 (syscall_group_add_syscall): New.
3514 (syscall_create_syscall_desc): Add syscall to its groups.
3515 (syscall_start_syscall): Load group attribute.
3516 (syscall_group_get_group_by_name): New.
3517 (xml_list_syscalls_by_group): New.
3518 (xml_list_of_groups): New.
3519 * xml-syscall.h (get_syscalls_by_group): Export function
3520 to retrieve a list of syscalls filtered by the group name.
3521 (get_syscall_group_names): Export function to retrieve the list
3523 * break-catch-syscall.c (catch_syscall_split_args): Verify if
3524 argument is a syscall group and expand it to a list of syscalls
3525 when creating catchpoints.
3526 (catch_syscall_completer): Add word completion for system call
3528 * configure.ac: Include dependency for xsltproc when building
3530 * break-catch-syscall.c (_initialize_breakpoint): Update catch
3531 syscall command documentation.
3532 * NEWS: Include section about catching groups of syscalls.
3533 * configure: Regenerate.
3534 * data-directory/Makefile.in: Generate syscall xml when building
3536 * syscalls/gdb-syscalls.dtd: Include group attribute to the
3538 * syscalls/apply-defaults.xsl: New.
3539 * syscalls/linux-defaults.xml.in: New.
3540 * syscalls/aarch64-linux.xml: Rename to aarch64-linux.xml.in.
3541 * syscalls/amd64-linux.xml: Rename to amd64-linux.xml.in.
3542 * syscalls/arm-linux.xml: Rename to arm-linux.xml.in.
3543 * syscalls/bfin-linux.xml: Rename to bfin-linux.xml.in.
3544 * syscalls/i386-linux.xml: Rename to i386-linux.xml.in.
3545 * syscalls/mips-n32-linux.xml: Rename to mips-n32-linux.xml.in.
3546 * syscalls/mips-n64-linux.xml: Rename to mips-n64-linux.xml.in.
3547 * syscalls/mips-o32-linux.xml: Rename to mips-o32-linux.xml.in.
3548 * syscalls/ppc-linux.xml: Rename to ppc-linux.xml.in.
3549 * syscalls/ppc64-linux.xml: Rename to ppc64-linux.xml.in.
3550 * syscalls/s390-linux.xml: Rename to s390-linux.xml.in.
3551 * syscalls/s390x-linux.xml: Rename to s390x-linux.xml.in.
3552 * syscalls/sparc-linux.xml: Rename to sparc-linux.xml.in.
3553 * syscalls/sparc64-linux.xml: Rename to sparc64-linux.xml.in.
3554 * syscalls/aarch64-linux.xml: Regenerate.
3555 * syscalls/amd64-linux.xml: Regenerate.
3556 * syscalls/arm-linux.xml: Regenerate.
3557 * syscalls/i386-linux.xml: Regenerate.
3558 * syscalls/mips-n32-linux.xml: Regenerate.
3559 * syscalls/mips-n64-linux.xml: Regenerate.
3560 * syscalls/mips-o32-linux.xml: Regenerate.
3561 * syscalls/ppc-linux.xml: Regenerate.
3562 * syscalls/ppc64-linux.xml: Regenerate.
3563 * syscalls/s390-linux.xml: Regenerate.
3564 * syscalls/s390x-linux.xml: Regenerate.
3565 * syscalls/sparc-linux.xml: Regenerate.
3566 * syscalls/sparc64-linux.xml: Regenerate.
3568 2016-07-23 Andrew Pinski <apinski@cavium.com>
3570 * nat/aarch64-linux-hw-point.c
3571 (aarch64_linux_get_debug_reg_capacity): Handle
3572 ARMv8.1 and ARMv8.2 debug versions.
3573 * nat/aarch64-linux-hw-point.h
3574 (AARCH64_DEBUG_ARCH_V8_1): New define.
3575 (AARCH64_DEBUG_ARCH_V8_2): New define.
3577 2016-06-30 Руслан Ижбулатов <lrn1986@gmail.com>
3580 * windows-nat.c (signal_event_command): New command 'signal-event'
3581 for W32 JIT debug support.
3582 * NEWS: Add an entry about the new 'signal-event' command.
3584 2016-07-22 Tom Tromey <tom@tromey.com>
3587 * dwarf2read.c (scan_partial_symbols) <DW_TAG_structure_type>:
3588 Call scan_partial_symbols for children when reading a Rust CU.
3589 (dwarf2_physname): Ignore invalid DW_AT_linkage_name generated by
3591 (process_structure_scope) <DW_TAG_subprogram>: Call
3592 read_func_scope for Rust.
3594 2016-07-22 Yao Qi <yao.qi@linaro.org>
3596 * ctf.c (ctf_traceframe_info): Call bt_ctf_get_uint64 rather than
3599 2016-07-21 Tom Tromey <tom@tromey.com>
3601 * rust-lang.c (rust_tuple_struct_type_p): Return false for empty
3603 * rust-exp.y (struct_expr_list): Allow empty elements.
3605 2016-07-21 Tom Tromey <tom@tromey.com>
3607 * configure: Rebuild.
3608 * warning.m4 (AM_GDB_WARNINGS) <build_warnings>: Add
3609 -Wunused-but-set-parameter, -Wunused-but-set-variable.
3611 2016-07-21 Pedro Alves <palves@redhat.com>
3613 * go32-nat.c (go32_create_inferior): Add cast.
3614 * ser-go32.c (dos_noop): Delete.
3615 (dos_flush_output, dos_setparity, dos_drain_output): New
3617 (dos_write): Add cast.
3618 (dos_ops): Use dos_flush_output, dos_setparity and
3620 * top.c (do_chdir_cleanup): Add cast.
3622 2016-07-21 Pedro Alves <palves@redhat.com>
3624 * windows-nat.c (handle_exception): Remove "th".
3626 2016-07-21 Pedro Alves <palves@redhat.com>
3628 * varobj.c (varobj_value_get_print_value): Move "gdbarch" to block
3631 2016-07-20 John Baldwin <jhb@FreeBSD.org>
3633 * fbsd-nat.c (fbsd_enable_proc_events): Enable "PTRACE_VFORK"
3635 (fbsd_pending_vfork_done): Only define if "PTRACE_VFORK" is not
3637 (fbsd_add_vfork_done): Likewise.
3638 (fbsd_is_vfork_done_pending): Likewise.
3639 (fbsd_next_vfork_done): Likewise.
3640 (fbsd_resume): Only ignore pending vfork done events if
3641 "PTRACE_VFORK" is not defined.
3642 (fbsd_wait): Only look for pending vfork done events if
3643 "PTRACE_VFORK" is not defined.
3644 [PTRACE_VFORK]: Handle "PL_FLAG_VFORKED" and "PL_FLAG_VFORK_DONE"
3646 (fbsd_follow_fork): Only fake a vfork done event if "PTRACE_VFORK"
3649 2016-07-20 John Baldwin <jhb@FreeBSD.org>
3651 * fbsd-nat.c (fbsd_wait): Use "fbsd_enable_proc_events" on
3652 new child processes.
3654 2016-07-20 John Baldwin <jhb@FreeBSD.org>
3656 * fbsd-nat.c (fbsd_enable_lwp_events): Remove function.
3657 (fbsd_enable_proc_events): New function.
3658 (fbsd_enable_follow_fork): Remove function.
3659 (fbsd_post_startup_inferior): Use "fbsd_enable_proc_events".
3660 (fbsd_post_attach): Likewise.
3662 2016-07-15 John Baldwin <jhb@FreeBSD.org>
3664 * common/signals.c (gdb_signal_from_host): Handle SIGLIBRT.
3665 (do_gdb_signal_to_host): Likewise.
3666 * infrun.c (_initialize_infrun): Pass GDB_SIGNAL_LIBRT through to
3668 * proc-events.c (signal_table): Add entry for SIGLIBRT.
3670 2016-07-14 Tom Tromey <tom@tromey.com>
3672 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Add missing
3675 2016-07-14 Tom Tromey <tom@tromey.com>
3677 * mips-tdep.c (micromips_scan_prologue): Remove "frame_addr".
3678 (mips_o32_push_dummy_call): Remove "stack_used_p".
3679 * aarch64-tdep.c (aarch64_record_data_proc_imm): Remove
3681 * rust-lang.c (rust_print_type): Remove "len".
3682 * rust-exp.y (super_name): Remove "current_len".
3683 * python/py-framefilter.c (py_print_type): Remove "type".
3684 * mdebugread.c (parse_partial_symbols): Remove
3685 "past_first_source_file".
3686 <N_SO>: Remove "valu", "first_so_symnum", "prev_textlow_not_set".
3687 * m2-valprint.c (m2_print_unbounded_array): Remove
3689 (m2_val_print): Remove "i".
3690 * linespec.c (unexpected_linespec_error): Remove "cleanup".
3691 * f-valprint.c (f_val_print): Remove "i".
3692 * elfread.c (elf_symtab_read): Remove "offset".
3693 * dwarf2-frame.c (dwarf2_fetch_cfa_info): Remove "addr_size".
3694 * jit.c (jit_dealloc_cache): Remove "i" and "frame_arch".
3696 2016-07-14 Tom Tromey <tom@tromey.com>
3698 * arch-utils.c (default_skip_permanent_breakpoint): Remove
3700 * disasm.c (do_assembly_only): Remove "num_displayed".
3701 * dwarf2read.c (read_abbrev_offset): Remove "length".
3702 (dwarf_decode_macro_bytes) <DW_MACINFO_vendor_ext>: Remove
3704 * m32c-tdep.c (make_regs): Remove "r2hl", "r3hl", and "intbhl".
3705 * microblaze-tdep.c (microblaze_frame_cache): Remove "func".
3706 * tracefile.c (trace_save): Remove "status".
3708 2016-07-14 Tom Tromey <tom@tromey.com>
3710 * symfile.c (simple_overlay_update_1): Remove initialization
3711 of "size", and commented-out code.
3712 (simple_overlay_update): Likewise.
3714 2016-07-14 Tom Tromey <tom@tromey.com>
3716 * tui/tui-winsource.c (tui_show_source_line): Use getcurx.
3717 * tui/tui-io.c (tui_puts): Use getcurx.
3718 (tui_redisplay_readline): Likewise.
3720 2016-07-14 Tom Tromey <tom@tromey.com>
3722 * inflow.c (child_terminal_ours_1): Use ATTRIBUTE_UNUSED.
3724 2016-07-14 Tom Tromey <tom@tromey.com>
3726 * corefile.c (reopen_exec_file): Only examine st.st_mtime if stat
3729 2016-07-13 Tom Tromey <tom@tromey.com>
3731 PR python/15620, PR python/18620:
3732 * python/py-evts.c (gdbpy_initialize_py_events): Call
3733 add_new_registry for new events.
3734 * python/py-events.h (events_object) <breakpoint_created,
3735 breakpoint_deleted, breakpoint_modified>: New fields.
3736 * python/py-breakpoint.c (gdbpy_breakpoint_created): Emit the
3737 breakpoint changed event.
3738 (gdbpy_breakpoint_deleted): Emit the breakpoint deleted event.
3739 (gdbpy_breakpoint_modified): New function.
3740 (gdbpy_initialize_breakpoints): Attach to the breakpoint modified
3743 2016-07-13 Tom Tromey <tom@tromey.com>
3747 * python/py-breakpoint.c (bppy_get_pending): New function.
3748 (breakpoint_object_getset): Add entry for "pending".
3749 * breakpoint.h (pending_breakpoint_p): Declare.
3750 * breakpoint.c (pending_breakpoint_p): New function.
3752 2016-07-13 Tom Tromey <tom@tromey.com>
3754 * python/py-breakpoint.c (bppy_get_visibility)
3755 (gdbpy_breakpoint_created): Use user_breakpoint_p.
3757 2016-07-13 Tom Tromey <tom@tromey.com>
3760 * jit.c (jit_reader_load_command): Use tilde_expand.
3761 (_initialize_jit): Fix help for jit-reader-unload. Set completer
3764 2016-07-12 Tom Tromey <tom@tromey.com>
3767 * python/lib/gdb/command/unwinders.py (do_enable_unwinder): Call
3768 gdb.invalidate_cached_frames.
3769 * python/lib/gdb/unwinder.py (register_unwinder): Call
3770 gdb.invalidate_cached_frames.
3771 * python/python.c (gdbpy_invalidate_cached_frames): New function.
3772 (python_GdbMethods): Add entry for invalidate_cached_frames.
3774 2016-07-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
3776 * cp-namespace.c (cp_lookup_bare_symbol): Initialize
3779 2016-07-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
3781 * cp-namespace.c (cp_lookup_bare_symbol): Use language passed as
3782 parameter to look for the symbol "this".
3785 2016-07-06 John Baldwin <jhb@FreeBSD.org>
3787 * h8300-tdep.c (h8300_print_register): Remove extraneous parentheses.
3789 2016-07-06 John Baldwin <jhb@FreeBSD.org>
3791 * ada-lang.c (ada_unpack_from_contents): Use unsigned constants with
3794 2016-07-06 John Baldwin <jhb@FreeBSD.org>
3796 * sh64-tdep.c (sh64_analyze_prologue): Set "uses_fp" when setting
3797 the MEDIA_FP_REGNUM register.
3799 2016-07-06 John Baldwin <jhb@FreeBSD.org>
3801 * score-tdep.c (score7_malloc_and_get_memblock): Remove check for
3804 2016-07-06 John Baldwin <jhb@FreeBSD.org>
3806 * fbsd-nat.c (fbsd_is_vfork_done_pending): Fix return type.
3808 2016-07-06 Yao Qi <yao.qi@linaro.org>
3810 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Don't call
3811 arm_vfp_cprc_sub_candidate for static field.
3813 2016-07-06 Manish Goregaokar <manish@mozilla.com>
3815 * rust-lang.c (rust_subscript): Allow subscripting pointers.
3817 2016-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3819 * configure: Regenerate.
3820 * configure.ac (HAVE_LIBBABELTRACE): Fix pos variable dereference.
3822 2016-07-01 Don Breazeal <donb@codesourcery.com>
3824 * remote.c (remote_get_memory_xfer_limit): New function.
3825 * target-delegates.c: Regenerate.
3826 * target.c (memory_xfer_partial): Call
3827 target_ops.to_get_memory_xfer_limit.
3828 * target.h (struct target_ops) <to_get_memory_xfer_limit>: New
3831 2016-07-01 John Baldwin <jhb@FreeBSD.org>
3833 * fbsd-nat.c (struct fbsd_fork_child_info): Rename to ...
3834 (struct fbsd_fork_info): ... this.
3835 (struct fbsd_fork_info) <child>: Rename to ...
3836 (struct fbsd_fork_info) <ptid>: ... this.
3837 (fbsd_pending_children): Update type.
3838 (fbsd_remember_child): Update type and field name.
3839 (fbsd_is_child_pending): Likewise.
3840 (fbsd_pending_vfork_done): New variable.
3841 (fbsd_is_vfork_done_pending): New function.
3842 (fbsd_next_vfork_done): New function.
3843 (fbsd_resume): Don't resume processes with a pending vfork done
3845 (fbsd_wait): Report pending vfork done events.
3846 (fbsd_follow_fork): Delay and record a pending vfork done event
3847 for a vfork parent when detaching the child.
3849 2016-07-01 John Baldwin <jhb@FreeBSD.org>
3851 * fbsd-nat.c (super_resume): Move earlier next to "super_wait".
3852 (resume_one_thread_cb): Move below fork following helper code.
3853 (resume_all_threads_cb): Likewise.
3854 (fbsd_resume): Likewise.
3856 2016-07-01 John Baldwin <jhb@FreeBSD.org>
3858 * fbsd-nat.c (fbsd_follow_fork): Only detach child if
3859 "detach_fork" is true.
3861 2016-07-01 John Baldwin <jhb@FreeBSD.org>
3863 * x86bsd-nat.c: Include 'gdbthread.h'.
3864 (x86bsd_dr_set): Set debug registers on all threads belonging to
3865 the current inferior.
3867 2016-07-01 John Baldwin <jhb@FreeBSD.org>
3869 * Makefile.in [HFILES_NO_SRCDIR]: Replace 'amd64bsd-nat.h' with
3871 * amd64bsd-nat.c: Include 'x86bsd-nat.h' instead of
3873 (amd64bsd_xsave_len): Rename and move to x86bsd-nat.c.
3874 (amd64bsd_fetch_inferior_registers): Replace 'amd64bsd_xsave_len'
3875 with 'x86bsd_xsave_len'.
3876 (amd64bsd_store_inferior_registers): Likewise.
3877 (amd64bsd_target): Inherit from x86bsd_target.
3878 (amd64bsd_dr_get): Rename and move to x86bsd-nat.c.
3879 (amd64bsd_dr_set): Likewise.
3880 (amd64bsd_dr_set_control): Likewise.
3881 (amd64bsd_dr_set_addr): Likewise.
3882 (amd64bsd_dr_get_addr): Likewise.
3883 (amd64bsd_dr_get_status): Likewise.
3884 (amd64bsd_dr_get_control): Likewise.
3885 * amd64fbsd-nat.c: Include 'x86bsd-nat.h' instead of
3887 (super_mourn_inferior): Move to x86bsd-nat.c.
3888 (amd64fbsd_mourn_inferior): Rename and move to x86bsd-nat.c.
3889 (amd64fbsd_read_description): Replace 'amd64bsd_xsave_len' with
3891 (_initialize_amd64fbsd_nat): Remove x86 watchpoint setup and
3892 mourn_inferior' target op.
3893 * config/i386/fbsd.mh (NATDEPFILES): Add x86bsd-nat.o.
3894 * config/i386/fbsd64.mh: Likewise.
3895 * config/i386/nbsd64.mh: Likewise.
3896 * config/i386/nbsdelf.mh: Likewise.
3897 * config/i386/obsd.mh: Likewise.
3898 * config/i386/obsd64.mh: Likewise.
3899 * i386bsd-nat.c: Include 'x86bsd-nat.h'.
3900 (i386bsd_xsave_len): Rename and move to x86bsd-nat.c.
3901 (i386bsd_fetch_inferior_registers): Replace 'i386bsd_xsave_len'
3902 with 'x86bsd_xsave_len'.
3903 (i386bsd_store_inferior_registers): Likewise.
3904 (i386bsd_target): Inherit from x86bsd_target.
3905 (i386bsd_dr_get): Rename and move to x86bsd-nat.c.
3906 (i386bsd_dr_set): Likewise.
3907 (i386bsd_dr_set_control): Likewise.
3908 (i386bsd_dr_set_addr): Likewise.
3909 (i386bsd_dr_get_addr): Likewise.
3910 (i386bsd_dr_get_status): Likewise.
3911 (i386bsd_dr_get_control): Likewise.
3912 * i386bsd-nat.h (i386bsd_xsave_len): Remove.
3913 (i386bsd_dr_set_control): Remove.
3914 (i386bsd_dr_set_addr): Remove.
3915 (i386bsd_dr_get_addr): Remove.
3916 (i386bsd_dr_get_status): Remove.
3917 (i386bsd_dr_get_control): Remove.
3918 * i386fbsd-nat.c: Include 'x86bsd-nat.h'.
3919 (i386fbsd_read_description): Replace 'i386bsd_xsave_len' with
3921 (_initialize_i386fbsd_nat): Remove x86 watchpoint setup and
3922 mourn_inferior' target op.
3923 * x86bsd-nat.c: New file.
3924 * x86bsd-nat.h: New file.
3926 2016-07-01 Pedro Alves <palves@redhat.com>
3927 Tom Tromey <tom@tromey.com>
3929 * jit.c (jit_reader_load_command): Call reinit_frame_cache and
3930 jit_inferior_created_hook.
3931 (jit_reader_unload_command): Call reinit_frame_cache and
3932 jit_inferior_exit_hook.
3933 * jit.c (struct jit_unwind_private) <registers>: Delete field.
3934 <regcache>: New field.
3935 (jit_unwind_reg_set_impl): Set the register's value in the
3936 regcache. Free the passed-in gdb_reg_value.
3937 (jit_dealloc_cache): Adjust to free the regcache.
3938 (jit_frame_sniffer): Allocate a regcache instead of an array of
3939 gdb_reg_value pointers.
3940 (jit_frame_this_id): Adjust.
3941 (jit_frame_prev_register): Read raw registers off of the regcache
3942 instead of from the gdb_reg_value pointer array. Use
3943 gdbarch_pseudo_register_read_value to read pseudo registers.
3944 * regcache.c (regcache_raw_set_cached_value): New function,
3945 factored out from ...
3946 (regcache_raw_write): ... here.
3947 * regcache.h (regcache_raw_set_cached_value): Declare.
3949 2016-07-01 Pedro Alves <palves@redhat.com>
3950 Antoine Tremblay <antoine.tremblay@ericsson.com>
3952 * inf-ptrace.c (inf_ptrace_detach_success): New function, factored
3954 (inf_ptrace_detach): ... here.
3955 * inf-ptrace.h (inf_ptrace_detach_success): New declaration.
3956 * linux-nat.c (get_pending_status): Rename to ...
3957 (get_detach_signal): ... this, and return a host signal instead of
3958 filling in a wait status.
3959 (detach_one_lwp): New function, factored out from detach_callback
3960 and adjusted to handle detaching from a zombie thread.
3961 (detach_callback): Skip the leader thread.
3962 (linux_nat_detach): No longer defer to inf_ptrace_detach to detach
3963 the leader thread, nor build a signal string to pass down.
3964 Instead, use target_announce_detach, detach_one_lwp and
3965 inf_ptrace_detach_success.
3967 2016-07-01 Pedro Alves <palves@redhat.com>
3969 * breakpoint.c (breakpoint_init_inferior): Discard watchpoint
3971 * infcmd.c (detach_command): Call breakpoint_init_inferior.
3973 2016-07-01 Pedro Alves <palves@redhat.com>
3975 * darwin-nat.c (darwin_detach): Use target_announce_detach.
3976 * inf-ptrace.c (inf_ptrace_detach): Likewise.
3977 * nto-procfs.c (procfs_detach): Likewise.
3978 * remote.c (remote_detach_1): Likewise.
3979 * target.c (target_announce_detach): New function.
3980 * target.h (target_announce_detach): New declaration.
3982 2016-06-29 Tom Tromey <tom@tromey.com>
3985 * python/lib/gdb/command/frame_filters.py (_do_enable_frame_filter)
3986 (SetFrameFilterPriority._set_filter_priority): Use "frame_filter",
3989 2016-06-29 Tom Tromey <tom@tromey.com>
3992 * target.c (free_memory_read_result_vector): Take a pointer to the
3994 (read_memory_robust): Install a cleanup for "result".
3995 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Update.
3997 2016-06-29 Manish Goregaokar <manish@mozilla.com>
3999 * rust-lang.c (rust_get_disr_info): Initialize saveptr to NULL.
4001 2016-06-29 Manish Goregaokar <manish@mozilla.com>
4003 * rust-lang.c (rust_get_disr_info): Use strtok_r instead of strsep.
4005 2016-06-28 Yao Qi <yao.qi@linaro.org>
4007 * aarch64-tdep.c (aarch64_displaced_step_b): Use int64_t for
4008 variable new_offset.
4010 2016-06-27 Manish Goregaokar <manish@mozilla.com>
4012 * rust-lang.c (rust_print_type, rust_decorations): Print unit
4014 (rust_print_type): Omit return type for functions returning unit.
4016 2016-06-25 Pierre-Marie de Rodat <derodat@adacore.com>
4018 * python/py-breakpoint.c (bppy_init): Clear bppy_pending_object
4019 when there is an error during the breakpoint creation.
4021 2016-06-25 Tom Tromey <tom@tromey.com>
4023 * rust-lang.c (rust_get_disr_info, rust_print_type): Fix
4026 2016-06-25 Manish Goregaokar <manish@mozilla.com>
4029 * rust-lang.c (rust_get_disr_info): Correctly interpret
4030 NonZero-optimized enums of arbitrary depth.
4031 (rust_print_type): Correctly print NonZero-optimized
4034 2016-06-24 David Taylor <dtaylor@emc.com>
4036 PR gdb/17520 Structure offset wrong when 1/4 GB or greater.
4037 * c-lang.h: Change all parameters, variables, and struct or union
4038 members used as struct or union fie3ld offsets from int to
4040 * c-valprint.c: Likewise.
4041 * cp-abi.c: Likewise.
4042 * cp-abi.h: Likewise.
4043 * cp-valprint.c: Likewise.
4044 * d-valprint.c: Likewise.
4045 * dwarf2loc.c: Likewise.
4047 * extension-priv.h: Likewise.
4048 * extension.c: Likewise.
4049 * extension.h: Likewise.
4050 * findvar.c: Likewise.
4051 * gdbtypes.h: Likewise.
4052 * gnu-v2-abi.c: Likewise.
4053 * gnu-v3-abi.c: Likewise.
4054 * go-valprint.c: Likewise.
4055 * guile/guile-internal.h: Likewise.
4056 * guile/scm-pretty-print.c: Likewise.
4057 * jv-valprint.c Likewise.
4058 * opencl-lang.c: Likewise.
4059 * p-lang.h: Likewise.
4060 * python/py-prettyprint.c: Likewise.
4061 * python/python-internal.h: Likewise.
4062 * spu-tdep.c: Likewise.
4063 * typeprint.c: Likewise.
4064 * valarith.c: Likewise.
4065 * valops.c: Likewise.
4066 * valprint.c: Likewise.
4067 * valprint.h: Likewise.
4068 * value.c: Likewise.
4069 * value.h: Likewise.
4070 * p-valprint.c: Likewise.
4071 * c-typeprint.c (c_type_print_base): When printing offset, use
4073 * gdbtypes.c (recursive_dump_type): Ditto.
4075 2016-06-24 David Taylor <david.taylor@emc.com>
4077 * MAINTAINERS (Write After Approval): Add David Taylor.
4079 2016-06-24 John Baldwin <jhb@FreeBSD.org>
4081 * configure.ac: Check for support for system call LWP fields on
4083 * config.in, configure: Rebuild.
4084 * data-directory/Makefile.in (SYSCALLS_FILES): Add freebsd.xml.
4085 * fbsd-nat.c (fbsd_wait) [HAVE_STRUCT_PTRACE_LWPINFO_PL_SYSCALL_CODE]:
4086 Report system call events.
4087 [HAVE_STRUCT_PTRACE_LWPINFO_PL_SYSCALL_CODE]
4088 (fbsd_set_syscall_catchpoint): New function.
4089 (fbsd_nat_add_target) [HAVE_STRUCT_PTRACE_LWPINFO_PL_SYSCALL_CODE]:
4090 Set "to_set_syscall_catchpoint" to "fbsd_set_syscall_catchpoint".
4091 * fbsd-tdep.c: Include xml-syscall.h
4092 (fbsd_get_syscall_number): New function.
4093 (fbsd_init_abi): Set XML system call file name.
4094 Add "get_syscall_number" gdbarch method.
4095 * syscalls/freebsd.xml: New file.
4097 2016-06-24 John Baldwin <jhb@FreeBSD.org>
4099 * fbsd-tdep.c: Include "auxv.h".
4100 (fbsd_print_auxv_entry): New function.
4101 (fbsd_init_abi): Install gdbarch "print_auxv_entry" method.
4103 2016-06-24 John Baldwin <jhb@FreeBSD.org>
4105 * auxv.c (fprint_auxv_entry): New function.
4106 (default_print_auxv_entry): New function.
4107 (fprint_target_auxv): Use gdbarch_print_auxv_entry.
4108 * auxv.h (enum auxv_format): New enum.
4109 (fprint_auxv_entry): Declare.
4110 (default_print_auxv_entry): Declare.
4111 * gdbarch.sh (print_auxv_entry): New.
4112 * gdbarch.c, gdbarch.h: Re-generated.
4114 2016-06-24 John Baldwin <jhb@FreeBSD.org>
4116 * fbsd-nat.c [KERN_PROC_AUXV] New variable super_xfer_partial.
4117 (fbsd_xfer_partial): New function.
4118 (fbsd_nat_add_target) [KERN_PROC_AUXV] Set "to_xfer_partial" to
4119 "fbsd_xfer_partial".
4121 2016-06-23 Tom Tromey <tom@tromey.com>
4123 * symtab.c (symbol_find_demangled_name): Loop over languages and
4124 use language_sniff_from_mangled_name.
4125 * rust-lang.c (rust_sniff_from_mangled_name): New function.
4126 (rust_language_defn): Update.
4127 * p-lang.c (pascal_language_defn): Update.
4128 * opencl-lang.c (opencl_language_defn): Update.
4129 * objc-lang.c (objc_sniff_from_mangled_name): New function.
4130 (objc_language_defn): Update.
4131 * m2-lang.c (m2_language_defn): Update.
4132 * language.h (struct language_defn) <la_sniff_from_mangled_name>: New
4134 (language_sniff_from_mangled_name): Declare.
4135 * language.c (language_sniff_from_mangled_name): New function.
4136 (unknown_language_defn, auto_language_defn, local_language_defn):
4138 * jv-lang.c (java_sniff_from_mangled_name): New function.
4139 (java_language_defn): Use it.
4140 * go-lang.c (go_sniff_from_mangled_name): New function.
4141 (go_language_defn): Use it.
4142 * f-lang.c (f_language_defn): Update.
4143 * defs.h (enum language): Reorder.
4144 * d-lang.c (d_sniff_from_mangled_name): New function.
4145 (d_language_defn): Use it.
4146 * cp-support.h (gdb_sniff_from_mangled_name): Declare.
4147 * cp-support.c (gdb_sniff_from_mangled_name): New function.
4148 * c-lang.c (c_language_defn, cplus_language_defn)
4149 (asm_language_defn, minimal_language_defn): Update.
4150 * ada-lang.c (ada_sniff_from_mangled_name): New function.
4151 (ada_language_defn): Use it.
4153 2016-06-23 Tom Tromey <tom@tromey.com>
4155 * ada-lang.c (ada_extensions): New array.
4156 (ada_language_defn): Use it.
4157 * c-lang.c (c_extensions): New array.
4158 (c_language_defn): Use it.
4159 (cplus_extensions): New array.
4160 (cplus_language_defn): Use it.
4161 (asm_extensions): New array.
4162 (asm_language_defn): Use it.
4163 (minimal_language_defn): Update.
4164 * d-lang.c (d_extensions): New array.
4165 (d_language_defn): Use it.
4166 * f-lang.c (f_extensions): New array.
4167 (f_language_defn): Use it.
4168 * go-lang.c (go_language_defn): Update.
4169 * jv-lang.c (java_extensions): New array.
4170 (java_language_defn): Use it.
4171 * language.c (add_language): Call add_filename_language.
4172 (unknown_language_defn, auto_language_defn, local_language_defn):
4174 * language.h (struct language_defn) <la_filename_extensions>: New
4176 * m2-lang.c (m2_language_defn): Update.
4177 * objc-lang.c (objc_extensions): New array.
4178 (objc_language_defn): Use it.
4179 * opencl-lang.c (opencl_language_defn): Update.
4180 * p-lang.c (p_extensions): New array.
4181 (pascal_language_defn): Use it.
4182 * rust-lang.c (rust_extensions): New array.
4183 (rust_language_defn): Use it.
4184 * symfile.c (add_filename_language): No longer static. Make "ext"
4186 (init_filename_language_table): Remove.
4187 (_initialize_symfile): Update.
4188 * symfile.h (add_filename_language): Declare.
4190 2016-06-23 Tom Tromey <tom@tromey.com>
4192 * symfile.c (filename_language_table): Now a VEC.
4193 (fl_table_size, fl_table_next): Remove.
4194 (add_filename_language): Use VEC_safe_push.
4195 (set_ext_lang_command, info_ext_lang_command)
4196 (deduce_language_from_filename): Use VEC_iterate.
4197 (init_filename_language_table): Use VEC_empty.
4199 2016-06-23 Tom Tromey <tom@tromey.com>
4201 * python/python.c (gdbpy_parameter): Now static.
4202 * python/python-internal.h (gdbpy_parameter): Don't declare.
4204 2016-06-23 Tom Tromey <tom@tromey.com>
4207 * python/lib/gdb/command/frame_filters.py
4208 (InfoFrameFilter.list_frame_filters): Rename to print_list. Print
4209 nothing if no filters found. Return value indicating whether
4210 filters were printed.
4211 (InfoFrameFilter.print_list): Remove.
4212 (InfoFrameFilter.invoke): Print message if no frame filters
4215 2016-06-21 Walfred Tedeschi <walfred.tedeschi@intel.com>
4217 * f-valprint.c (f_val_print): Add field names for printing
4218 derived types fields.
4220 2016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4222 * s390-linux-tdep.c (s390_iterate_over_regset_sections): Fix typo
4223 in name of last-break regset.
4225 2016-06-21 Pedro Alves <palves@redhat.com>
4227 * fork-child.c (fork_inferior): Switch the child to the main UI
4228 right after vfork. Save/restore the current UI in the parent.
4229 Flush outputs of the main UI instead of the current UI.
4231 2016-06-21 Pedro Alves <palves@redhat.com>
4233 * breakpoint.c (watchpoint_check): Send watchpoint-deleted output
4236 2016-06-21 Pedro Alves <palves@redhat.com>
4238 * NEWS: Mention support for running interpreters on separate
4239 UIs and the new new-ui command.
4241 2016-06-21 Pedro Alves <palves@redhat.com>
4243 * interps.c (set_top_level_interpreter): New function, factored
4244 out from captured_main.
4245 (interpreter_completer): Make extern.
4246 * interps.h (set_top_level_interpreter, interpreter_completer):
4248 (captured_main): Use set_top_level_interpreter.
4249 * top.c [!O_NOCTTY] (O_NOCTTY): Define as 0.
4250 (open_terminal_stream, new_ui_command): New functions.
4251 (init_main): Install the "new-ui" command.
4253 2016-06-21 Pedro Alves <palves@redhat.com>
4255 * cli/cli-script.c (read_next_line): Adjust to per-UI stdin.
4256 (read_command_lines): Use input_interactive_p instead of
4257 input_from_terminal_p.
4258 * defs.h (struct ui): Forward declare.
4259 (input_from_terminal_p): Rename to ...
4260 (input_interactive_p): ... this.
4261 * event-top.c (stdin_event_handler): Pass 0 as from_tty argument
4263 (command_handler): Adjust to per-UI stdin.
4264 (handle_line_of_input): Adjust to per-UI stdin and use
4265 input_interactive_p instead of ISATTY and input_from_terminal_p.
4266 (gdb_readline_no_editing_callback): Adjust to per-UI stdin.
4267 (command_line_handler): Always pass true as "from_tty" parameter
4268 of handle_line_of_input and execute_command.
4269 (async_sigterm_handler): Pass 0 as from_tty argument to
4271 * inflow.c (interactive_mode, show_interactive_mode): Moved to ...
4272 (gdb_has_a_terminal): Don't check interactive_mode here.
4273 (_initialize_inflow): Don't install "set interactive-mode" here.
4274 * main.c (captured_command_loop): Adjust to per-UI stdin.
4275 * mi/mi-interp.c (mi_execute_command_wrapper): Adjust to per-UI
4277 * top.c (new_ui): Save the stdin stream and whether it's a tty.
4278 (dont_repeat): Adjust to per-UI stdin.
4279 (command_line_input): Adjust to per-UI stdin and to use
4280 input_interactive_p.
4281 (quit_force): Write history if any UI supports interactive input.
4282 (interactive_mode, show_interactive_mode): Move here, from
4284 (input_from_terminal_p): Rename to ...
4285 (input_interactive_p): ... this, and check the "interactive_mode"
4286 global instead of calling gdb_has_a_terminal.
4287 (_initialize_top): Install "set interactive-mode" here.
4288 * top.h (struct ui) <stdin_stream, input_interactive_p>: New
4290 * utils.c (quit): Pass 0 as from_tty argument to quit_force.
4291 (defaulted_query): Adjust to per-UI stdin and to use
4292 input_interactive_p.
4294 2016-06-21 Pedro Alves <palves@redhat.com>
4296 * event-top.c (stdin_event_handler): Don't quit gdb if it was a
4297 secondary UI's input stream that closed. Instead, just delete the
4300 2016-06-21 Pedro Alves <palves@redhat.com>
4302 * event-top.c (main_ui_): Delete.
4303 (main_ui, current_ui, ui_list): No longer initialize here.
4304 * main.c (captured_main): UI initialization code factored out to
4305 new new_ui function.
4306 (gdb_main): Wrap captured_main with TRY/CATCH instead of
4308 * top.c (highest_ui_num): New global.
4309 (new_ui): New function.
4310 * top.h (struct ui) <num>: New field.
4311 (new_ui): New declaration.
4313 2016-06-21 Pedro Alves <palves@redhat.com>
4315 * cli/cli-interp.c (cli_on_normal_stop): Bail out early if there's
4316 nothing to print. Use should_print_stop_to_console.
4317 * tui/tui-interp.c (tui_on_normal_stop): Likewise.
4319 2016-06-21 Pedro Alves <palves@redhat.com>
4321 * breakpoint.c (new_until_break_fsm): Add 'cmd_interp' parameter.
4322 (until_break_fsm_should_stop, until_break_fsm_clean_up): Add
4324 (until_break_command): Pass command interpreter to thread fsm
4326 * cli/cli-interp.c (should_print_stop_to_console): Adjust.
4327 * gdbthread.h (struct thread_control_state) <command_interp>:
4329 * infcall.c (new_call_thread_fsm): Add 'cmd_interp' parameter.
4331 (call_thread_fsm_should_stop): Add thread parameter.
4332 (call_function_by_hand_dummy): Pass command interpreter to thread
4333 fsm ctor. Pass thread pointer to fsm clean up method.
4334 * infcmd.c: Include interps.h.
4335 (struct step_command_fsm) <thread>: Delete field.
4336 (new_step_command_fsm): Add 'cmd_interp' parameter. Pass it down.
4337 (step_command_fsm_prepare): Remove references to fsm's thread
4339 (step_1): Pass command interpreter to thread
4340 fsm ctor. Pass thread pointer to fsm clean up method.
4341 (step_command_fsm_should_stop, step_command_fsm_clean_up): Add
4342 thread parameter and use it.
4343 (new_until_next_fsm): Add 'cmd_interp' parameter. Pass it down.
4344 (until_next_fsm_should_stop, until_next_fsm_clean_up): Add thread
4345 parameter and use it.
4346 (until_next_command): Pass command interpreter to thread fsm ctor.
4347 (struct finish_command_fsm) <thread>: Delete field.
4348 (finish_command_fsm_ops): Add NULL slot for should_notify_stop.
4349 (new_finish_command_fsm): Add 'cmd_interp' parameter and pass it
4350 down. Remove thread parameter and adjust.
4351 (finish_command_fsm_should_stop, finish_command_fsm_clean_up): Add
4352 thread parameter and use it.
4353 (finish_command): Pass command interpreter to thread fsm ctor.
4355 * infrun.c (follow_fork): Move thread fsm to child fork instead of
4356 command interpreter, only.
4357 (clear_proceed_status_thread): Remove reference to command_interp.
4358 (proceed): Don't record the thread's command interpreter.
4359 (clean_up_just_stopped_threads_fsms): Pass thread to fsm clean_up
4361 (fetch_inferior_event): Pass thread to fsm should_stop method.
4362 * thread-fsm.c (thread_fsm_ctor): Add 'cmd_interp' parameter.
4364 (thread_fsm_clean_up, thread_fsm_should_stop): Add thread
4365 parameter and pass it down.
4366 * thread-fsm.h (struct thread_fsm) <command_interp>: New field.
4367 (struct thread_fsm_ops) <clean_up, should_stop>: Add thread
4369 (thread_fsm_ctor): Add 'cmd_interp' parameter.
4370 (thread_fsm_clean_up, thread_fsm_should_stop): Add thread
4372 * thread.c (thread_cancel_execution_command): Pass thread to
4373 thread fsm clean_up method.
4375 2016-06-21 Pedro Alves <palves@redhat.com>
4377 * cli/cli-interp.c: Include gdbthread.h and thread-fsm.h.
4378 (should_print_stop_to_console): New function, factored out from
4379 mi_on_normal_stop_1.
4380 * cli/cli-interp.h (should_print_stop_to_console): Declare.
4381 * mi/mi-interp.c (mi_on_normal_stop_1): Use
4382 should_print_stop_to_console. Pass it the current UI's console
4384 * mi/mi-main.c (captured_mi_execute_command): Use the
4385 INTERP_CONSOLE symbol rather than explicit "console".
4387 2016-06-21 Pedro Alves <palves@redhat.com>
4389 * infcmd.c (prepare_execution_command): Use
4390 all_uis_on_sync_execution_starting.
4391 * infrun.c (all_uis_on_sync_execution_starting): New function.
4392 * infrun.h (all_uis_on_sync_execution_starting): Declare.
4394 2016-06-21 Pedro Alves <palves@redhat.com>
4396 * annotate.c: Include top.h.
4397 (async_background_execution_p): Delete.
4398 (print_value_flags): Check the UI's prompt state rather then
4399 async_background_execution_p.
4400 * event-loop.c (start_event_loop): Set the prompt state to
4402 * event-top.c (display_gdb_prompt, async_enable_stdin)
4403 (async_disable_stdin): Check the current UI's prompt state instead
4404 of the sync_execution global.
4405 (command_line_handler): Set the prompt state to PROMPT_NEEDED
4406 before running a command, and display the prompt if still needed
4408 * infcall.c (struct call_thread_fsm) <waiting_ui>: New field.
4409 (new_call_thread_fsm): New parameter 'waiting_ui'. Store it.
4410 (call_thread_fsm_should_stop): Set the prompt state to
4412 (run_inferior_call): Adjust to temporarily set the prompt state to
4413 PROMPT_BLOCKED instead of using the sync_execution global.
4414 (call_function_by_hand_dummy): Pass the current UI to
4415 new_call_thread_fsm.
4416 * infcmd.c: Include top.h.
4417 (continue_1): Check the current UI's prompt state instead of the
4418 sync_execution global.
4419 (continue_command): Validate global execution state before calling
4420 prepare_execution_command.
4421 (step_1): Call all_uis_check_sync_execution_done.
4422 (attach_post_wait): Don't call async_enable_stdin here. Remove
4423 reference to sync_execution.
4424 * infrun.c (sync_execution): Delete global.
4425 (follow_fork_inferior)
4426 (reinstall_readline_callback_handler_cleanup): Check the current
4427 UI's prompt state instead of the sync_execution global.
4428 (check_curr_ui_sync_execution_done)
4429 (all_uis_check_sync_execution_done): New functions.
4430 (fetch_inferior_event): Call all_uis_check_sync_execution_done
4431 instead of trying to determine whether the global sync execution
4433 (handle_no_resumed): Check the prompt state of all UIs.
4434 (normal_stop): Emit the no unwait-for even to all PROMPT_BLOCKED
4435 UIs. Emit the "Switching to" notification to all UIs. Enable
4437 * infrun.h (sync_execution): Delete.
4438 (all_uis_check_sync_execution_done): Declare.
4439 * main.c (captured_command_loop): Don't call
4440 interp_pre_command_loop if the prompt is blocked.
4441 (catch_command_errors, catch_command_errors_const): Adjust.
4442 (captured_main): Set the initial prompt state to PROMPT_NEEDED.
4443 * mi/mi-interp.c (display_mi_prompt): Set the prompt state to
4445 (mi_interpreter_resume): Don't clear sync_execution. Remove hack
4447 (mi_execute_command_input_handler): Set the prompt state to
4448 PROMPT_NEEDED before executing the command, and only display the
4449 prompt if the prompt state is PROMPT_NEEDED afterwards.
4450 (mi_on_resume_1): Adjust to check the prompt state.
4451 * target.c (target_terminal_inferior): Adjust to check the prompt
4453 * top.c (wait_sync_command_done, maybe_wait_sync_command_done)
4454 (execute_command): Check the current UI's prompt state instead of
4456 * top.h (enum prompt_state): New.
4457 (struct ui) <prompt_state>: New field.
4458 (ALL_UIS): New macro.
4460 2016-06-21 Pedro Alves <palves@redhat.com>
4462 * top.c (gdb_secondary_prompt_depth): Delete.
4463 (gdb_in_secondary_prompt_p): Add ui parameter. Use it.
4464 (gdb_readline_wrapper_cleanup, gdb_readline_wrapper): Adjust to
4465 per-UI gdb_secondary_prompt_depth.
4466 * top.h (struct ui) <secondary_prompt_depth>: New field.
4468 2016-06-21 Pedro Alves <palves@redhat.com>
4470 * cli/cli-interp.c (cli_interpreter_pre_command_loop): New
4472 (cli_interp_procs): Install it instead of cli_command_loop.
4473 * cli/cli-interp.h (cli_interpreter_pre_command_loop): Declare.
4474 * event-top.c (cli_command_loop): Delete.
4475 * interps.c (interp_new): Remove reference to command_loop_proc.
4476 (current_interp_command_loop): Delete.
4477 (interp_pre_command_loop): New function.
4478 (interp_command_loop_ftype): Delete.
4479 * interps.h (interp_pre_command_loop_ftype): New typedef.
4480 (struct interp_procs) <command_loop_proc>: Delele field.
4481 <pre_command_loop_proc>: New field.
4482 (current_interp_command_loop): Delete declaration.
4483 (interp_pre_command_loop): New declaration.
4484 * main.c (captured_command_loop): Call interp_pre_command_loop
4485 instead of current_interp_command_loop and start an event loop.
4486 * mi/mi-interp.c (mi_command_loop): Delete.
4487 (mi_interpreter_pre_command_loop): New.
4488 (mi_interp_procs): Update.
4489 * tui/tui-interp.c (tui_interp_procs): Install
4490 cli_interpreter_pre_command_loop instead of cli_command_loop.
4492 2016-06-21 Pedro Alves <palves@redhat.com>
4494 * interps.c (current_interpreter): New function.
4495 * interps.h (current_interpreter): New declaration.
4496 * mi/mi-cmds.h (raw_stdout): Delete declaration.
4497 * mi/mi-common.h (struct mi_interp) <raw_stdout,
4498 saved_raw_stdout>: New field.
4499 * mi/mi-interp.c (display_mi_prompt): New parameter 'mi'. Adjust
4500 to per-UI raw_stdout.
4501 (mi_interpreter_init): Adjust to per-UI raw_stdout.
4502 (mi_on_sync_execution_done, mi_execute_command_input_handler)
4503 (mi_command_loop): Pass MI instance to display_mi_prompt.
4504 (mi_on_normal_stop_1, mi_output_running_pid, mi_on_resume_1)
4505 (mi_on_resume): Adjust to per-UI raw_stdout.
4506 (saved_raw_stdout): Delete.
4507 (mi_set_logging): Adjust to per-UI raw_stdout and
4509 * mi/mi-main.c (raw_stdout): Delete.
4510 (mi_cmd_gdb_exit, captured_mi_execute_command)
4511 (mi_print_exception, mi_load_progress): Adjust to per-UI
4513 (print_diff_now, mi_print_timing_maybe): New ui_file parameter.
4515 (print_diff): New ui_file parameter. Send output there instead of
4517 * mi/mi-main.h (struct ui_file): Forward declare.
4518 (mi_print_timing_maybe): Add ui_file parameter.
4520 2016-06-21 Pedro Alves <palves@redhat.com>
4522 * mi/mi-interp.c (display_mi_prompt): New function.
4524 2016-06-21 Pedro Alves <palves@redhat.com>
4526 * target.c (target_terminal_inferior): Bail out after
4527 unregistering input_fd if not on the main UI.
4528 (target_terminal_ours): Bail out after registering input_fd if not
4530 (target_terminal_ours_for_output): Bail out if not on the main UI.
4532 2016-06-21 Pedro Alves <palves@redhat.com>
4534 * event-top.c (restore_ui_cleanup): Make extern.
4535 * infrun.c (fetch_inferior_event): Always switch to the main UI.
4536 * top.h (restore_ui_cleanup): Declare.
4538 2016-06-21 Pedro Alves <palves@redhat.com>
4541 * cli/cli-interp.c: Include cli-interp.h and event-top.h.
4542 (cli_interpreter_resume): Pass 1 to gdb_setup_readline. Set the
4543 UI's input_handler here.
4544 (cli_interpreter_supports_command_editing): New function.
4545 (cli_interp_procs): Install it.
4546 * cli/cli-interp.h: New file.
4547 * event-top.c (async_command_editing_p): Rename to ...
4548 (set_editing_cmd_var): ... this.
4549 (change_line_handler): Add parameter 'editing', and use it. Bail
4550 early if the interpreter doesn't support editing. Don't touch
4551 readline state if editing is off.
4552 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
4553 (gdb_rl_callback_handler_reinstall): Assert the current UI is the
4555 (display_gdb_prompt): Don't call gdb_rl_callback_handler_remove if
4556 not using readline. Check whether the current UI is using command
4557 editing instead of checking the async_command_editing_p global.
4558 (set_async_editing_command): Delete.
4559 (gdb_setup_readline): Add 'editing' parameter. Only allow editing
4560 on the main UI. Don't touch readline state if editing is off.
4561 (gdb_disable_readline): Don't touch readline state if editing is
4563 * event-top.h (gdb_setup_readline): Add 'int' parameter.
4564 (set_async_editing_command): Delete declaration.
4565 (change_line_handler, command_line_handler): Declare.
4566 (async_command_editing_p): Rename to ...
4567 (set_editing_cmd_var): ... this.
4568 * infrun.c (reinstall_readline_callback_handler_cleanup): Check
4569 whether the current UI has editing enabled rather than checking
4570 the async_command_editing_p global.
4571 * interps.c (interp_supports_command_editing): New function.
4572 * interps.h (interp_supports_command_editing_ftype): New typedef.
4573 (struct interp_procs) <supports_command_editing_proc>: New field.
4574 (interp_supports_command_editing): Declare.
4575 * mi/mi-interp.c (mi_interpreter_resume): Pass 0 to
4576 gdb_setup_readline. Don't clear the async_command_editing_p
4577 global. Update comments.
4578 * top.c (gdb_readline_wrapper_line, gdb_readline_wrapper): Check
4579 whether the current UI has editing enabled rather than checking
4580 the async_command_editing_p global. Don't touch readline state if
4582 (undo_terminal_modifications_before_exit): Switch to the main UI.
4583 Unconditionally call gdb_disable_readline.
4584 (set_editing): New function.
4585 (show_async_command_editing_p): Rename to ...
4586 (show_editing): ... this. Show the state of the current UI.
4587 (_initialize_top): Adjust.
4588 * top.h (struct ui) <command_editing>: New field.
4589 * tui/tui-interp.c: Include cli/cli-interp.h.
4590 (tui_resume): Pass 1 to gdb_setup_readline. Set the UI's
4592 (tui_interp_procs): Install
4593 cli_interpreter_supports_command_editing.
4594 * tui/tui-io.c (tui_getc): Check whether the current UI has
4595 editing enabled rather than checking the async_command_editing_p
4598 2016-06-21 Pedro Alves <palves@redhat.com>
4600 * top.c: Call gen_ret_current_ui_field_ptr for current_uiout.
4601 * top.h (struct ui) <m_current_uiout>: New field.
4602 * ui-out.c (current_uiout): Delete.
4603 * ui-out.h (current_uiout): Delete.
4604 (current_ui_current_uiout_ptr): New declaration.
4605 (current_uiout): Reimplement as wrapper around
4606 current_ui_current_uiout_ptr.
4608 2016-06-21 Pedro Alves <palves@redhat.com>
4610 * ui-out.c (default_ui_out_impl): Delete.
4611 (def_uiout): Delete.
4612 (current_uiout): Set to NULL.
4613 (default_table_begin, default_table_body, default_table_end)
4614 (default_table_header, default_begin, default_end)
4615 (default_field_int, default_field_skip, default_field_string)
4616 (default_field_fmt, default_spaces, default_text, default_message)
4617 (default_wrap_hint, default_flush, default_data_destroy): Delete.
4619 2016-06-21 Pedro Alves <palves@redhat.com>
4621 * event-top.c (gdb_setup_readline): Pass the UI's outstream and
4622 errstream to stdout_fileopen and stderr_fileopen.
4623 * exceptions.c: Include top.h.
4624 (print_flush): Open the current UI's outstream file descriptor,
4625 instead of hardcoding file descriptor 1.
4626 * main.c (captured_main): Save the main UI's out and error
4627 streams. Adjust stderr_fileopen call.
4628 * top.h (struct ui) <outstream, errstream>: New fields.
4629 * ui-file.c (stderr_fileopen): Add stream parameter. Use it
4631 * ui-file.h (stderr_fileopen): Add stream parameter and update
4634 2016-06-21 Pedro Alves <palves@redhat.com>
4636 * event-top.c (input_fd): Delete.
4637 (stdin_event_handler): Switch to the UI whose input descriptor got
4638 the event. Adjust to per-UI input_fd.
4639 (gdb_setup_readline): Don't set the input_fd global. Adjust to
4641 (gdb_disable_readline): Adjust to per-UI input_fd.
4642 * event-top.h (input_fd): Delete declaration.
4643 * linux-nat.c (linux_nat_terminal_inferior): Don't remove input_fd
4644 from the event-loop here.
4645 (linux_nat_terminal_ours): Don't register input_fd in the
4647 * main.c (captured_main): Adjust to per-UI input_fd.
4648 * remote.c (remote_terminal_inferior): Don't remove input_fd from
4649 the event-loop here.
4650 (remote_terminal_ours): Don't register input_fd in the event-loop
4652 * target.c: Include top.h and event-top.h.
4653 (target_terminal_inferior): Remove input_fd from the event-loop
4655 (target_terminal_ours): Register input_fd in the event-loop.
4656 * top.h (struct ui) <input_fd>: New field.
4658 2016-06-21 Pedro Alves <palves@redhat.com>
4660 * cli/cli-script.c (execute_user_command, read_next_line)
4661 (read_next_line): Adjust to per-UI instream.
4662 * event-top.c (stdin_event_handler, command_handler)
4663 (handle_line_of_input, command_line_handler)
4664 (gdb_readline_no_editing_callback, async_sigterm_handler)
4665 (gdb_setup_readline): Likewise.
4666 * inflow.c: Include top.h.
4667 (gdb_has_a_terminal, child_terminal_init_with_pgrp)
4668 (gdb_save_tty_state, child_terminal_inferior)
4669 (child_terminal_ours_1, copy_terminal_info): Use the main UI.
4670 (initialize_stdin_serial): Adjust to per-UI instream.
4671 * main.c (captured_command_loop, captured_main): Adjust to per-UI
4673 * mi/mi-interp.c (mi_execute_command_wrapper): Likewise.
4674 * python/python.c (python_interactive_command): Likewise.
4675 * terminal.h (struct ui): Forward declare.
4676 (initialize_stdin_serial): Add struct ui parameter.
4677 * top.c (instream): Delete.
4678 (do_restore_instream_cleanup, read_command_file, dont_repeat)
4679 (gdb_readline_no_editing, command_line_input)
4680 (input_from_terminal_p, gdb_init): Adjust to per-UI instream.
4681 * top.h (struct ui) <instream>: New field.
4682 (instream): Delete declaration.
4683 (quit): Adjust to per-UI instream.
4685 2016-06-21 Pedro Alves <palves@redhat.com>
4687 * event-loop.c: Include top.h.
4688 (invoke_async_signal_handlers): Switch to the main UI.
4689 * event-top.c (main_ui_): Update comment.
4690 (main_ui): New global.
4691 * top.h (main_ui): Declare.
4693 2016-06-21 Pedro Alves <palves@redhat.com>
4695 * cli/cli-interp.c (cli_interp): Delete.
4696 (as_cli_interp): New function.
4697 (cli_on_normal_stop, cli_on_signal_received)
4698 (cli_on_end_stepping_range, cli_on_signal_exited, cli_on_exited)
4699 (cli_on_no_history): Send output to all CLI UIs.
4700 (cli_on_sync_execution_done, cli_on_command_error): Skip output if
4701 the top level interpreter is not a CLI.
4702 (cli_interpreter_init): Don't set cli_interp or install observers
4704 (_initialize_cli_interp): Install observers here.
4705 * event-top.c (main_ui_, ui_list): New globals.
4706 (current_ui): Point to main_ui_.
4707 (restore_ui_cleanup, switch_thru_all_uis_init)
4708 (switch_thru_all_uis_cond, switch_thru_all_uis_next): New
4710 * mi/mi-interp.c (as_mi_interp): New function.
4711 (mi_interpreter_init): Don't install observers here.
4712 (mi_on_sync_execution_done): Skip output if the top level
4713 interpreter is not a MI.
4714 (mi_new_thread, mi_thread_exit, mi_record_changed)
4715 (mi_inferior_added, mi_inferior_appeared, mi_inferior_exit)
4716 (mi_inferior_removed): Send output to all MI UIs.
4717 (find_mi_interpreter, mi_interp_data): Delete.
4718 (find_mi_interp): New function.
4719 (mi_on_signal_received, mi_on_end_stepping_range)
4720 (mi_on_signal_exited, mi_on_exited, mi_on_no_history): Send output
4722 (mi_on_normal_stop): Rename to ...
4723 (mi_on_normal_stop_1): ... this.
4724 (mi_on_normal_stop): Reimplement, sending output to all MI UIs.
4725 (mi_traceframe_changed, mi_tsv_created, mi_tsv_deleted)
4726 (mi_tsv_modified, mi_breakpoint_created, mi_breakpoint_deleted)
4727 (mi_breakpoint_modified, mi_output_running_pid): Send output to
4729 (mi_on_resume): Rename to ...
4730 (mi_on_resume_1): ... this. Don't handle infcalls here.
4731 (mi_on_resume): Reimplement, sending output to all MI UIs.
4732 (mi_solib_loaded, mi_solib_unloaded, mi_command_param_changed)
4733 (mi_memory_changed): Send output to all MI UIs.
4734 (report_initial_inferior): Install observers here.
4735 * top.h (struct ui) <next>: New field.
4737 (struct switch_thru_all_uis): New.
4738 (switch_thru_all_uis_init, switch_thru_all_uis_cond)
4739 (switch_thru_all_uis_next): Declare.
4740 (SWITCH_THRU_ALL_UIS): New macro.
4741 * tui/tui-interp.c (tui_interp): Delete global.
4742 (as_tui_interp): New function.
4743 (tui_on_normal_stop, tui_on_signal_received)
4744 (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
4745 (tui_on_no_history): Send output to all TUI UIs.
4746 (tui_on_sync_execution_done, tui_on_command_error): Skip output if
4747 the top level interpreter is not a TUI.
4748 (tui_init): Don't set tui_interp or install observers here.
4749 (_initialize_tui_interp): Install observers here.
4751 2016-06-21 Pedro Alves <palves@redhat.com>
4753 * cli/cli-interp.c (cli_uiout): Delete, moved into ...
4754 (struct cli_interp): ... this new structure.
4755 (cli_on_normal_stop, cli_on_signal_received)
4756 (cli_on_end_stepping_range, cli_on_signal_exited, cli_on_exited)
4757 (cli_on_no_history): Use interp_ui_out.
4758 (cli_interpreter_init): If top level, set the cli_interp global.
4759 (cli_interpreter_init): Return the interp's data instead of NULL.
4760 (cli_interpreter_resume, cli_interpreter_exec, cli_ui_out): Adjust
4761 to cli_uiout being in the interpreter's data.
4762 (cli_interp_procs): New, factored out from _initialize_cli_interp.
4763 (cli_interp_factory): New function.
4764 (_initialize_cli_interp): Call interp_factory_register.
4765 * interps.c (get_interp_info): New, factored out from ...
4766 (get_current_interp_info): ... this.
4767 (interp_new): Add parameter 'data'. Store it.
4768 (struct interp_factory): New function.
4769 (interp_factory_p): New typedef. Define a VEC_P.
4770 (interpreter_factories): New global.
4771 (interp_factory_register): New function.
4772 (interp_add): Add 'ui' parameter. Use get_interp_info and
4773 interp_lookup_existing.
4774 (interp_lookup): Rename to ...
4775 (interp_lookup_existing): ... this. Add 'ui' parameter. Don't
4776 check for NULL or empty name here.
4777 (interp_lookup): Add 'ui' parameter and reimplement.
4778 (interp_set_temp, interpreter_exec_cmd): Adjust.
4779 (interpreter_completer): Complete on registered interpreter
4780 factories instead of interpreters.
4781 * interps.h (interp_factory_func): New typedef.
4782 (interp_factory_register): Declare.
4783 (interp_new, interp_add): Adjust.
4784 (interp_lookup): Declare.
4785 * main.c (captured_main): Adjust.
4786 * mi/mi-interp.c (mi_cmd_interpreter_exec): Adjust.
4787 (mi_interp_procs): New, factored out from
4788 _initialize_mi_interp.
4789 (mi_interp_factory): New function.
4790 * python/python.c (execute_gdb_command): Adjust.
4791 * tui/tui-interp.c (tui_init): If top level, set the tui_interp
4793 (tui_interp_procs): New.
4794 (tui_interp_factory): New function.
4795 (_initialize_tui_interp): Call interp_factory_register.
4797 2016-06-21 Pedro Alves <palves@redhat.com>
4799 * breakpoint.c (bpstat_do_actions_1): Access the current UI's
4800 async field instead of the interpreter_async global.
4801 * cli/cli-script.c (execute_user_command, while_command)
4802 (if_command, script_from_file): Likewise.
4803 * compile/compile.c: Include top.h instead of interps.h.
4804 (compile_file_command, compile_code_command)
4805 (compile_print_command): Access the current UI's async field
4806 instead of the interpreter_async global.
4807 * guile/guile.c: Include top.h instead of interps.h.
4808 (guile_repl_command, guile_command, gdbscm_execute_gdb_command):
4809 Access the current UI's async field instead of the
4810 interpreter_async global.
4811 * guile/scm-ports.c: Include top.h instead of interps.h.
4812 (ioscm_with_output_to_port_worker): Access the current UI's async
4813 field instead of the interpreter_async global.
4814 * inf-loop.c (inferior_event_handler): Likewise.
4815 * infcall.c (run_inferior_call): Likewise.
4816 * infrun.c (reinstall_readline_callback_handler_cleanup)
4817 (fetch_inferior_event): Likewise.
4818 * interps.c (interpreter_async): Delete.
4819 (struct ui_interp_info): New.
4820 (get_current_interp_info): New function.
4821 (interp_list, current_interpreter, top_level_interpreter_ptr):
4823 (interp_add, interp_set, interp_lookup, interp_ui_out)
4824 (current_interp_set_logging, interp_set_temp)
4825 (current_interp_named_p): Adjust to per-UI interpreters.
4826 (command_interpreter): Delete.
4827 (command_interp, current_interp_command_loop, interp_quiet_p)
4828 (interp_exec, interpreter_exec_cmd, interpreter_completer)
4829 (top_level_interpreter, top_level_interpreter_data): Adjust to
4830 per-UI interpreters.
4831 * interps.h (interpreter_async): Delete.
4832 * main.c (captured_command_loop): Access the current UI's async
4833 field instead of the interpreter_async global.
4834 * python/python.c (python_interactive_command, python_command)
4835 (execute_gdb_command): Likewise.
4836 * top.c (maybe_wait_sync_command_done, execute_command_to_string):
4837 Access the current UI's async field instead of the
4838 interpreter_async global.
4839 * top.h (struct tl_interp_info): Forward declare.
4840 (struct ui) <interp_info, async>: New fields.
4842 2016-06-21 Pedro Alves <palves@redhat.com>
4844 * main.c (gdb_stdout, gdb_stderr, gdb_stdlog, gdb_stdin): Delete
4846 (gen_ret_current_ui_field_ptr): New macro. Use it to generate
4847 wrappers for gdb_stdout, gdb_stderr, gdb_stdlog and gdb_stdin.
4848 * top.h (struct ui) <m_gdb_stdout, m_gdb_stdin, m_gdb_stderr,
4849 m_gdb_stdlog>: New fields.
4850 (current_ui_gdb_stdout_ptr, current_ui_gdb_stdin_ptr)
4851 (current_ui_gdb_stderr_ptr, current_ui_gdb_stdlog_ptr): Declare.
4852 (gdb_stdout, gdb_stdin, gdb_stderr, gdb_stdlog): Reimplement as
4855 2016-06-21 Pedro Alves <palves@redhat.com>
4857 * event-top.c: Update readline-related comments.
4858 (input_handler, call_readline): Delete globals.
4859 (gdb_rl_callback_handler): Call the current UI's input_handler
4861 (change_line_handler): Adjust to set current UI's properties
4863 (current_ui_, current_ui): New globals.
4864 (get_command_line_buffer): Rewrite to refer to the current UI.
4865 (stdin_event_handler): Adjust to call the call_readline method of
4867 (gdb_readline_no_editing_callback): Adjust to call the current UI's
4868 input_handler method.
4869 (gdb_setup_readline): Adjust to set current UI's properties
4871 * event-top.h (call_readline, input_handler): Delete declarations.
4872 * mi/mi-interp.c (mi_interpreter_resume): Adjust to set current
4873 UI's properties instead of globals.
4874 * top.c (gdb_readline_wrapper_cleanup): Adjust to set current UI's
4875 properties instead of globals.
4876 (gdb_readline_wrapper): Adjust to call and set current UI's
4877 methods instead of globals.
4878 * top.h: Include buffer.h and event-loop.h.
4879 (struct ui): New struct.
4880 (current_ui): New declaration.
4882 2016-06-21 Pedro Alves <palves@redhat.com>
4884 * ada-lang.c (ada_exception_name_addr_1): Add comment.
4885 (print_it_exception): Select the current frame.
4887 2016-06-17 Yan-Ting Lin <currygt52@gmail.com>
4889 * Makefile.in (ALL_TARGET_OBS): Add nds32-tdep.o.
4890 (HFILES_NO_SRCDIR): Add nds32-tdep.h.
4891 (ALLDEPFILES): Add nds32-tdep.c.
4892 * NEWS: Mention new NDS32 port.
4893 * configure.tgt: Add NDS32.
4894 * nds32-tdep.c: New file.
4895 * nds32-tdep.h: New file.
4896 * features/Makefile (XMLTOC): Add nds32.xml.
4897 * features/nds32-core.xml: New file.
4898 * features/nds32-fpu.xml: New file.
4899 * features/nds32-system.xml: New file.
4900 * features/nds32.c: New file (generated).
4901 * features/nds32.xml: New file.
4903 2016-06-14 John Baldwin <jhb@FreeBSD.org>
4905 * v850-tdep.c (v850_use_struct_convention): Trim type length checks.
4907 2016-06-14 John Baldwin <jhb@FreeBSD.org>
4909 * tui/tui-stack.c (tui_show_frame_info): Fix type mismatch.
4911 2016-06-14 John Baldwin <jhb@FreeBSD.org>
4913 * rs6000-tdep.c (ppc_process_record_op31): Initialize ra.
4915 2016-06-13 Nick Clifton <nickc@redhat.com>
4917 * gdbtypes.c (replace_type): Fix assertion.
4919 2016-06-10 Tom Tromey <tom@tromey.com>
4921 * gdbtypes.c (arch_type, arch_integer_type, arch_character_type)
4922 (arch_boolean_type, arch_float_type, arch_complex_type)
4923 (arch_flags_type, append_flags_type_field)
4924 (append_flags_type_flag, arch_composite_type)
4925 (append_composite_type_field_raw)
4926 (append_composite_type_field_aligned)
4927 (append_composite_type_field): Make "name" parameter const.
4928 * gdbtypes.h (arch_type, arch_integer_type, arch_character_type)
4929 (arch_boolean_type, arch_float_type, arch_complex_type)
4930 (append_composite_type_field, append_composite_type_field_aligned)
4931 (append_composite_type_field_raw, arch_flags_type)
4932 (append_flags_type_field, append_flags_type_flag): Constify.
4934 2016-06-10 Tom Tromey <tom@tromey.com>
4937 * rust-exp.y (lex_number): Don't truncate large numbers to i32.
4939 2016-06-10 Tom Tromey <tom@tromey.com>
4941 * Makefile.in (COMMON_OBS): Remove rust-exp.o.
4942 (YYFILES): Add rust-exp.c.
4943 (YYOBJ): Add rust-exp.o.
4944 (local-maintainer-clean): Remove rust-exp.c.
4946 2016-06-09 Toshihito Kikuchi <k.toshihito@yahoo.de>
4948 * NEWS: Mention that GDB now supports a negative repeat count in
4950 * printcmd.c (decode_format): Allow '-' in the parameter
4951 "string_ptr" to accept a negative repeat count.
4952 (find_instruction_backward): New function.
4953 (read_memory_backward): New function.
4954 (integer_is_zero): New function.
4955 (find_string_backward): New function.
4956 (do_examine): Use new functions to examine memory backward.
4957 (_initialize_printcmd): Mention that 'x' command supports a negative
4960 2016-06-09 Toshihito Kikuchi <k.toshihito@yahoo.de>
4962 * MAINTAINERS (Write After Approval): Add Toshihito Kikuchi.
4964 2016-06-09 Tom Tromey <tom@tromey.com>
4967 * python/py-xmethods.c (invoke_method_name)
4968 (py_get_result_type_method_name, py_invoke_method_name): Remove.
4969 (gdbpy_initialize_xmethods): Don't initialize
4970 py_invoke_method_name, py_get_result_type_method_name.
4972 2016-06-07 Simon Marchi <simon.marchi@ericsson.com>
4974 * mi/mi-interp.c (mi_record_changed): Add missing braces.
4976 2016-06-07 Bernhard Heckel <bernhard.heckel@intel.com>
4978 * findvar.c (follow_static_link): Check for valid pointer.
4980 2016-06-06 Simon Marchi <simon.marchi@ericsson.com>
4982 * NEWS: Mention the new fields in =record-started.
4983 * common/btrace-common.h (btrace_format_short_string): New function
4985 * common/btrace-common.c (btrace_format_short_string): New
4987 * mi/mi-interp.c (mi_record_changed): Output method and format
4988 fields in the =record-started record.
4989 * record-btrace.c (record_btrace_open): Adapt record_changed
4991 * record-full.c (record_full_open): Likewise.
4992 * record.c (cmd_record_stop): Likewise.
4994 2016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
4996 * windows-nat.c (handle_output_debug_string): Return type of
4997 gdb_signal_from_host() is gdb_signal, not an int.
4998 (windows_get_exec_module_filename): Add pointer casts for C++.
5000 2016-06-02 Tom Tromey <tom@tromey.com>
5003 * python/python.c (gdbpy_solib_name): Use GDB_PY_LLU_ARG.
5005 2016-06-01 Pedro Alves <palves@redhat.com>
5007 * remote-fileio.c (remote_fio_ctrl_c_flag, remote_fio_sa)
5009 (remote_fio_ofunc, remote_fileio_sig_init, remote_fileio_sig_set)
5010 (remote_fileio_sig_exit, remote_fileio_ctrl_c_signal_handler):
5012 (remote_fileio_o_quit_handler): New global.
5013 (remote_fileio_quit_handler): New function.
5014 (remote_fileio_reply): Check the quit flag instead of the custom
5015 'remote_fio_ctrl_c_flag' flag. Restore the quit handler instead
5016 of changing the SIGINT handler.
5017 (do_remote_fileio_request): Override the quit handler instead of
5018 changing the SIGINT handler.
5020 2016-06-01 Nick Clifton <nickc@redhat.com>
5022 * common/common-utils.c (xmalloc_failed): New function. Provided
5023 so that the version in libiberty is not linked in.
5025 2016-06-01 Markus Metzger <markus.t.metzger@intel.com>
5027 * infcmd.c (skip_finish_frames): New.
5028 (finish_command): Call skip_finish_frames.
5030 2016-06-01 Yao Qi <yao.qi@linaro.org>
5033 * remote-fileio.c (remote_fileio_ctrl_c_signal_handler): Call
5034 quit_serial_event_set.
5036 2016-06-01 Joel Brobecker <brobecker@adacore.com>
5038 GDB 7.11.1 released.
5040 2016-05-31 Martin Galvan <martin.galvan@tallertechnologies.com>
5043 * dwarf2loc.c (coerce_pieced_ref, indirect_synthetic_pointer,
5044 fetch_const_value_from_synthetic_pointer): New functions.
5045 (indirect_pieced_value): Move lower half to indirect_synthetic_pointer.
5046 (pieced_value_funcs): Implement coerce_ref.
5047 * valops.c (value_addr): Call coerce_ref for synthetic references.
5048 * valprint.c (valprint_check_validity): Return true for synthetic
5049 references. Also, don't show "<synthetic pointer>" if they reference
5051 (generic_val_print_ref): Handle synthetic references. Also move some
5052 code to print_ref_address.
5053 (print_ref_address, get_value_addr_contents): New functions.
5055 2016-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
5058 * dwarf2read.c (enum pc_bounds_kind): Add PC_BOUNDS_INVALID.
5059 (process_psymtab_comp_unit_reader, read_func_scope): Adjust callers.
5060 (read_lexical_block_scope): Import DIEs from bare DW_TAG_lexical_block.
5061 (read_call_site_scope): Adjust callers.
5062 (dwarf2_get_pc_bounds): Implement pc_bounds_invalid.
5063 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds): Adjust callers.
5065 2016-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
5067 Code cleanup: dwarf2_get_pc_bounds: -1/0/+1 -> enum
5068 * dwarf2read.c (enum pc_bounds_kind) New.
5069 (dwarf2_get_pc_bounds): Use it in the declaration.
5070 (process_psymtab_comp_unit_reader): Adjust caller. Rename has_pc_info
5072 (read_func_scope, read_lexical_block_scope, read_call_site_scope):
5074 (dwarf2_get_pc_bounds): Use enum pc_bounds_kind in the definition.
5075 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds): Adjust callers.
5077 2016-05-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5079 * NEWS (QCatchSyscalls): Remove the parameter. Include ...
5080 (QCatchSyscalls:1 in qSupported) ... this separate entry which got
5083 2016-05-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5085 * NEWS (N stop reply): Remove empty line.
5087 2016-05-28 Alan Modra <amodra@gmail.com>
5089 * compile/compile-object-load.c (link_callbacks_multiple_definition,
5090 link_callbacks_warning, link_callbacks_undefined_symbol,
5091 link_callbacks_undefined_symbol, link_callbacks_reloc_overflow,
5092 link_callbacks_reloc_dangerous,
5093 link_callbacks_unattached_reloc): Return void.
5095 2016-05-27 Andrew Burgess <andrew.burgess@embecosm.com>
5097 * opencl-lang.c (evaluate_subexp_opencl): If
5098 EVAL_AVOID_SIDE_EFFECTS mode, forward the VALUE_LVAL attribute to
5099 the returned value in the STRUCTOP_STRUCT case.
5101 2016-05-27 Andrew Burgess <andrew.burgess@embecosm.com>
5103 * eval.c (evaluate_subexp_standard): If EVAL_AVOID_SIDE_EFFECTS
5104 mode, forward the VALUE_LVAL attribute to the returned value in
5105 the STRUCTOP_PTR case.
5107 2016-05-25 Tom Tromey <tom@tromey.com>
5109 * python/py-value.c (value_object_as_number): Use correct spelling
5110 of HAVE_LIBPYTHON2_4.
5112 2016-05-25 Bernhard Heckel <bernhard.heckel@intel.com>
5114 * f-typeprint.c (f_type_print_base): Replace 0 by show.
5116 2016-05-25 Bernhard Heckel <bernhard.heckel@intel.com>
5118 * f-typeprint.c (f_type_print_base): Decrease show by one.
5120 2016-05-25 Bernhard Heckel <bernhard.heckel@intel.com>
5122 * f-typeprint.c (f_type_print_base): Don't print fields when show < 0.
5124 2016-05-25 Bernhard Heckel <bernhard.heckel@intel.com>
5126 * f-typeprint.c (f_type_print_base): Take print level into account.
5128 2016-05-24 Tom Tromey <tom@tromey.com>
5131 * python/py-value.c (value_object_as_number): Add
5132 nb_inplace_floor_divide, nb_inplace_true_divide, nb_index.
5134 2016-05-24 Tom Tromey <tom@tromey.com>
5136 * python/py-value.c (value_object_as_number): Add
5137 nb_inplace_divide for Python 2.
5139 2016-05-23 Tom Tromey <tom@tromey.com>
5142 * python/py-breakpoint.c (gdbpy_breakpoints): Return a new tuple
5143 when there are no breakpoints.
5145 2016-05-24 Pedro Alves <palves@redhat.com>
5148 * linux-nat.c (attach_proc_task_lwp_callback): Mark the lwp
5149 resumed, and add the thread to GDB's thread list.
5151 2016-05-24 Pedro Alves <palves@redhat.com>
5154 * linux-nat.c (get_pending_status): If the thread reported the
5155 event to the core and it's pending, use the pending status signal
5158 2016-05-24 Pedro Alves <palves@redhat.com>
5161 * linux-nat.c (lwp_lwpid_htab): New htab.
5162 (lwp_info_hash, lwp_lwpid_htab_eq, lwp_lwpid_htab_create)
5163 (lwp_lwpid_htab_add_lwp): New functions.
5164 (lwp_list): Tweak comment.
5165 (lwp_list_add, lwp_list_remove, lwp_lwpid_htab_remove_pid): New
5167 (purge_lwp_list): Rewrite, using htab_traverse_noresize.
5168 (add_initial_lwp): Add lwp to htab too. Use lwp_list_add.
5169 (delete_lwp): Use lwp_list_remove. Remove htab too.
5170 (find_lwp_pid): Search in htab.
5171 (_initialize_linux_nat): Call lwp_lwpid_htab_create.
5172 * linux-nat.h (struct lwp_info) <prev>: New field.
5174 2016-05-24 Pedro Alves <palves@redhat.com>
5177 * linux-nat.c (lwp_lwpid_htab): New htab.
5178 (lwp_info_hash, lwp_lwpid_htab_eq, lwp_lwpid_htab_create)
5179 (lwp_lwpid_htab_add_lwp): New functions.
5180 (lwp_list): Tweak comment.
5181 (lwp_list_add, lwp_list_remove, lwp_lwpid_htab_remove_pid): New
5183 (purge_lwp_list): Rewrite, using htab_traverse_noresize.
5184 (add_initial_lwp): Add lwp to htab too. Use lwp_list_add.
5185 (delete_lwp): Use lwp_list_remove. Remove htab too.
5186 (find_lwp_pid): Search in htab.
5187 (_initialize_linux_nat): Call lwp_lwpid_htab_create.
5188 * linux-nat.h (struct lwp_info) <prev>: New field.
5190 2016-05-24 Pedro Alves <palves@redhat.com>
5193 * linux-nat.c (linux_resume_one_lwp_throw): Clear the LWP's core
5195 (linux_nat_update_thread_list): Don't fetch the core if already
5198 2016-05-24 Pedro Alves <palves@redhat.com>
5201 * linux-tdep.c (find_mapping_size): Delete.
5202 (linux_vsyscall_range_raw): Rewrite reading from
5203 /proc/PID/task/PID/maps directly instead of using
5204 gdbarch_find_memory_regions.
5206 2016-05-24 Pedro Alves <palves@redhat.com>
5209 * linux-nat.c (report_thread_events): New global.
5210 (linux_handle_extended_wait): Report
5211 TARGET_WAITKIND_THREAD_CREATED if thread event reporting is
5213 (wait_lwp, linux_nat_filter_event): Report all thread exits if
5214 thread event reporting is enabled. Remove comment.
5215 (filter_exit_event): New function.
5216 (linux_nat_wait_1): Use it.
5217 (linux_nat_thread_events): New function.
5218 (linux_nat_add_target): Install it as target_thread_events method.
5220 2016-05-24 Yan-Ting Lin <currygt52@gmail.com>
5222 * MAINTAINERS (Write After Approval): Add "Yan-Ting Lin".
5224 2016-05-23 Yao Qi <yao.qi@arm.com>
5226 * arch-utils.c (default_code_of_frame_writable): New function.
5227 * arch-utils.h (default_code_of_frame_writable): Declare.
5228 * arm-tdep.c (arm_code_of_frame_writable): New function.
5229 (arm_gdbarch_init): Install gdbarch method
5230 code_of_frame_writable if the target is M-profile.
5231 * frame.c (skip_unwritable_frames): New function.
5232 * frame.h (skip_unwritable_frames): Declare.
5233 * gdbarch.sh (code_of_frame_writable): New.
5234 * gdbarch.c, gdbarch.h: Re-generated.
5235 * infcmd.c (finish_command): Call skip_unwritable_frames.
5237 2016-05-23 Tom Tromey <tom@tromey.com>
5239 PR python/19438, PR python/18393:
5240 * python/py-objfile.c (objfpy_initialize): Initialize self->dict.
5241 * python/py-progspace.c (pspy_initialize): Initialize self->dict.
5243 2016-05-23 Gary Benson <gbenson@redhat.com>
5245 * nat/gdb_thread_db.h (td_thr_validate_ftype): Remove typedef.
5246 * linux-thread-db.c (struct thread_db_info) <td_thr_validate_p>:
5248 (try_thread_db_load_1): Remove td_thr_validate initialization.
5250 2016-05-23 Jon Boden <jon@ubuntubsd.org> (tiny change)
5252 * configure.ac: Search for libutil-freebsd as alternative to libutil.
5253 * configure: Re-generated.
5255 2016-05-19 Andreas Schwab <schwab@suse.de>
5257 * ia64-libunwind-tdep.c (libunwind_descr): Add cast from void *.
5258 (libunwind_frame_set_descr): Likewise.
5259 (libunwind_frame_cache): Likewise.
5260 (libunwind_frame_dealloc_cache): Likewise.
5261 (libunwind_frame_sniffer): Likewise.
5262 (libunwind_search_unwind_table): Likewise.
5263 (libunwind_sigtramp_frame_sniffer): Likewise.
5264 (libunwind_get_reg_special): Likewise.
5265 (libunwind_load): Likewise.
5266 * ia64-linux-nat.c (ia64_linux_fetch_register): Likewise.
5267 (ia64_linux_store_register): Likewise.
5268 (ia64_linux_xfer_partial): Likewise.
5269 * ia64-tdep.c (ia64_access_reg): Likewise.
5270 (ia64_access_fpreg): Likewise.
5271 (ia64_access_rse_reg): Likewise.
5272 (ia64_access_rse_fpreg): Likewise.
5274 2016-05-18 Tom Tromey <tom@tromey.com>
5276 * rust-lang.c (rust_subscript): Initialize "high".
5278 2016-05-17 Simon Marchi <simon.marchi@ericsson.com>
5281 * mi/mi-main.c (mi_on_resume): Call target_can_async_p instead
5282 of target_is_async_p.
5284 2016-05-17 Simon Marchi <simon.marchi@ericsson.com>
5287 * mi/mi-main.c (run_one_inferior): Use run target to determine
5288 whether to run async or not.
5289 (mi_cmd_exec_run): Likewise.
5291 2016-05-17 Tom Tromey <tom@tromey.com>
5293 * std-operator.def (OP_RANGE): Rename from OP_F90_RANGE.
5294 * rust-lang.c: Don't include f-lang.h.
5295 (rust_range, rust_compute_range, rust_subscript)
5296 (rust_evaluate_subexp): Update.
5297 * rust-exp.y: Don't include f-lang.h.
5298 (ast_range, convert_ast_to_expression): Update.
5299 * parse.c (operator_length_standard): Update.
5300 * f-lang.h (enum f90_range_type): Move to expression.h.
5301 * f-exp.y: Use OP_RANGE.
5302 * expression.h (enum range_type): New enum; renamed from
5304 * expprint.c: Don't include f-lang.h.
5305 (print_subexp_standard, dump_subexp_body_standard): Use OP_RANGE.
5306 * eval.c (value_f90_subarray, evaluate_subexp_standard): Update.
5308 2016-05-17 Tom Tromey <tom@tromey.com>
5310 * NEWS: Add Rust item.
5312 2016-05-17 Tom Tromey <tom@tromey.com>
5313 Manish Goregaokar <manishsmail@gmail.com>
5315 * symtab.c (symbol_find_demangled_name): Handle Rust.
5316 * symfile.c (init_filename_language_table): Treat ".rs" as Rust.
5317 * std-operator.def (STRUCTOP_ANONYMOUS, OP_RUST_ARRAY): New
5319 * rust-lang.h: New file.
5320 * rust-lang.c: New file.
5321 * rust-exp.y: New file.
5322 * dwarf2read.c (read_file_scope): Add Rust producer sniffing.
5323 (dwarf2_compute_name, read_func_scope, read_structure_type)
5324 (read_base_type, read_subrange_type, set_cu_language)
5325 (new_symbol_full, determine_prefix): Handle Rust.
5326 * defs.h (enum language) <language_rust>: New constant.
5327 * Makefile.in (SFILES): Add rust-exp.y, rust-lang.c.
5328 (COMMON_OBS): Add rust-exp.o, rust-lang.o.
5330 2016-05-17 Tom Tromey <tom@tromey.com>
5332 * valprint.h (struct generic_val_print_array) <array_start,
5333 array_end>: New fields.
5334 * valprint.c (generic_val_print_array): Add "decorations"
5335 parameter. Use "array_start", "array_end".
5336 (generic_val_print) <TYPE_CODE_ARRAY>: Update.
5337 * p-valprint.c (p_decorations): Update.
5338 * m2-valprint.c (m2_decorations): Update.
5339 * f-valprint.c (f_decorations): Update.
5340 * c-valprint.c (c_decorations): Update.
5342 2016-05-17 Tom Tromey <tom@tromey.com>
5344 * NEWS: Add "maint selftest" entry.
5345 * selftest.h: New file.
5346 * selftest.c: New file.
5347 * maint.c: Include selftest.h.
5348 (maintenance_selftest): New function.
5349 (_initialize_maint_cmds): Add "maint selftest" command.
5350 * configure.ac (GDB_SELF_TEST): Maybe define.
5351 * config.in, configure: Rebuild.
5352 * Makefile.in (SFILES): Add selftest.c.
5353 (COMMON_OBS): Add selftest.o.
5355 2016-05-17 Tom Tromey <tom@tromey.com>
5357 * expprint.c: Include f-lang.h.
5358 (print_subexp_standard, dump_subexp_body_standard): Handle
5361 2016-05-17 Tom Tromey <tom@tromey.com>
5363 * Makefile.in (init.c): Search .y files for initialization
5366 2016-05-12 Doug Evans <dje@google.com>
5369 * dwarf2loc.c (dwarf2_find_location_expression): For DWO files still
5372 2016-05-10 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
5374 * iq2000-tdep.c (iq2000_scan_prologue): Remove if that shouldn't guard
5376 * linespec.c (add_sal_to_sals): Restore call to symtab_to_fullname.
5378 2016-05-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
5380 * arm-tdep.c (arm_elf_make_msymbol_special): Use
5381 ARM_GET_SYM_BRANCH_TYPE to get branch type of a symbol.
5383 2016-05-07 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
5385 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Remove unused
5387 * aarch64-tdep.c (aarch64_skip_prologue): Likewise.
5388 (aarch64_scan_prologue): Likewise.
5389 (aarch64_prologue_prev_register): Likewise.
5390 (aarch64_dwarf2_prev_register): Likewise.
5391 (pass_in_v): Likewise.
5392 (aarch64_push_dummy_call): Likewise.
5393 (aarch64_breakpoint_from_pc): Likewise.
5394 (aarch64_return_in_memory): Likewise.
5395 (aarch64_return_value): Likewise.
5396 (aarch64_displaced_step_b_cond): Likewise.
5397 (aarch64_displaced_step_cb): Likewise.
5398 (aarch64_displaced_step_tb): Likewise.
5399 (aarch64_gdbarch_init): Likewise.
5400 (aarch64_process_record): Likewise.
5401 * alpha-mdebug-tdep.c (alpha_mdebug_init_abi): Likewise.
5402 * alpha-tdep.c (_initialize_alpha_tdep): Likewise.
5403 * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise.
5404 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Likewise.
5405 * amd64-tdep.c (fixup_riprel): Likewise.
5406 * amd64-windows-tdep.c (amd64_windows_frame_decode_epilogue): Likewise.
5407 (amd64_windows_frame_decode_insns): Likewise.
5408 (amd64_windows_frame_cache): Likewise.
5409 (amd64_windows_frame_prev_register): Likewise.
5410 (amd64_windows_frame_this_id): Likewise.
5411 (amd64_windows_init_abi): Likewise.
5412 * arm-linux-tdep.c (arm_linux_get_syscall_number): Likewise.
5413 (arm_linux_get_next_pcs_syscall_next_pc): Likewise.
5414 * arm-symbian-tdep.c (arm_symbian_init_abi): Likewise.
5415 * arm-tdep.c (arm_make_epilogue_frame_cache): Likewise.
5416 (arm_epilogue_frame_prev_register): Likewise.
5417 (arm_record_vdata_transfer_insn): Likewise.
5418 (arm_record_exreg_ld_st_insn): Likewise.
5419 * auto-load.c (execute_script_contents): Likewise.
5420 (print_scripts): Likewise.
5421 * avr-tdep.c (avr_frame_prev_register): Likewise.
5422 (avr_push_dummy_call): Likewise.
5423 * bfin-linux-tdep.c (bfin_linux_sigframe_init): Likewise.
5424 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
5425 * blockframe.c (find_pc_partial_function_gnu_ifunc): Likewise.
5426 * break-catch-throw.c (fetch_probe_arguments): Likewise.
5427 * breakpoint.c (breakpoint_xfer_memory): Likewise.
5428 (breakpoint_init_inferior): Likewise.
5429 (breakpoint_inserted_here_p): Likewise.
5430 (software_breakpoint_inserted_here_p): Likewise.
5431 (hardware_breakpoint_inserted_here_p): Likewise.
5432 (bpstat_what): Likewise.
5433 (break_range_command): Likewise.
5434 (save_breakpoints): Likewise.
5435 * coffread.c (coff_symfile_read): Likewise.
5436 * cris-tdep.c (cris_push_dummy_call): Likewise.
5437 (cris_scan_prologue): Likewise.
5438 (cris_register_size): Likewise.
5439 (_initialize_cris_tdep): Likewise.
5440 * d-exp.y: Likewise.
5441 * dbxread.c (dbx_read_symtab): Likewise.
5442 (process_one_symbol): Likewise.
5443 (coffstab_build_psymtabs): Likewise.
5444 (elfstab_build_psymtabs): Likewise.
5445 * dicos-tdep.c (dicos_init_abi): Likewise.
5446 * disasm.c (do_mixed_source_and_assembly): Likewise.
5447 (gdb_disassembly): Likewise.
5448 * dtrace-probe.c (dtrace_process_dof): Likewise.
5449 * dwarf2read.c (error_check_comp_unit_head): Likewise.
5450 (build_type_psymtabs_1): Likewise.
5451 (skip_one_die): Likewise.
5452 (process_imported_unit_die): Likewise.
5453 (dwarf2_physname): Likewise.
5454 (read_file_scope): Likewise.
5455 (setup_type_unit_groups): Likewise.
5456 (create_dwo_cu_reader): Likewise.
5457 (create_dwo_cu): Likewise.
5458 (create_dwo_unit_in_dwp_v1): Likewise.
5459 (create_dwo_unit_in_dwp_v2): Likewise.
5460 (lookup_dwo_unit_in_dwp): Likewise.
5461 (free_dwo_file): Likewise.
5462 (check_producer): Likewise.
5463 (dwarf2_add_typedef): Likewise.
5464 (dwarf2_add_member_fn): Likewise.
5465 (read_unsigned_leb128): Likewise.
5466 (read_signed_leb128): Likewise.
5467 (dwarf2_const_value): Likewise.
5468 (follow_die_sig_1): Likewise.
5469 (dwarf_decode_macro_bytes): Likewise.
5470 * extension.c (restore_active_ext_lang): Likewise.
5471 * frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Likewise.
5472 * ft32-tdep.c (ft32_analyze_prologue): Likewise.
5473 * gdbtypes.c (lookup_typename): Likewise.
5474 (resolve_dynamic_range): Likewise.
5475 (check_typedef): Likewise.
5476 * h8300-tdep.c (h8300_is_argument_spill): Likewise.
5477 (h8300_gdbarch_init): Likewise.
5478 * hppa-tdep.c (hppa32_push_dummy_call): Likewise.
5479 (hppa_frame_this_id): Likewise.
5480 (_initialize_hppa_tdep): Likewise.
5481 * hppanbsd-tdep.c (hppanbsd_sigtramp_cache_init): Likewise.
5482 * hppaobsd-tdep.c (hppaobsd_supply_fpregset): Likewise.
5483 * i386-dicos-tdep.c (i386_dicos_init_abi): Likewise.
5484 * i386-tdep.c (i386_bnd_type): Likewise.
5485 (i386_gdbarch_init): Likewise.
5486 (i386_mpx_bd_base): Likewise.
5487 * i386nbsd-tdep.c (i386nbsd_sigtramp_cache_init): Likewise.
5488 * i386obsd-tdep.c (i386obsd_elf_init_abi): Likewise.
5489 * ia64-tdep.c (examine_prologue): Likewise.
5490 (ia64_frame_cache): Likewise.
5491 (ia64_push_dummy_call): Likewise.
5492 * infcmd.c (finish_command_fsm_async_reply_reason): Likewise.
5493 (default_print_one_register_info): Likewise.
5494 * infrun.c (infrun_thread_ptid_changed): Likewise.
5495 (thread_still_needs_step_over): Likewise.
5496 (stop_all_threads): Likewise.
5497 (restart_threads): Likewise.
5498 (keep_going_stepped_thread): Likewise.
5499 * iq2000-tdep.c (iq2000_scan_prologue): Likewise.
5500 * language.c (language_init_primitive_type_symbols): Likewise.
5501 * linespec.c (add_sal_to_sals): Likewise.
5502 * linux-nat.c (status_callback): Likewise.
5503 (kill_unfollowed_fork_children): Likewise.
5504 (linux_nat_kill): Likewise.
5505 * linux-tdep.c (linux_fill_prpsinfo): Likewise.
5506 * linux-thread-db.c (thread_db_notice_clone): Likewise.
5507 (record_thread): Likewise.
5508 * location.c (string_to_event_location_basic): Likewise.
5509 * m32c-tdep.c (m32c_prev_register): Likewise.
5510 * m32r-linux-tdep.c (m32r_linux_init_abi): Likewise.
5511 * m32r-tdep.c (decode_prologue): Likewise.
5512 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
5513 * machoread.c (macho_symtab_read): Likewise.
5514 (macho_symfile_read): Likewise.
5515 (macho_symfile_offsets): Likewise.
5516 * maint.c (set_per_command_cmd): Likewise.
5517 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Likewise.
5518 (mi_cmd_stack_list_variables): Likewise.
5519 * mi/mi-main.c (mi_cmd_exec_run): Likewise.
5520 (output_register): Likewise.
5521 (mi_cmd_execute): Likewise.
5522 (mi_cmd_trace_define_variable): Likewise.
5523 (print_variable_or_computed): Likewise.
5524 * minsyms.c (prim_record_minimal_symbol_full): Likewise.
5525 * mn10300-tdep.c (mn10300_frame_prev_register): Likewise.
5526 * msp430-tdep.c (msp430_pseudo_register_write): Likewise.
5527 * mt-tdep.c (mt_registers_info): Likewise.
5528 * nios2-tdep.c (nios2_analyze_prologue): Likewise.
5529 (nios2_push_dummy_call): Likewise.
5530 (nios2_frame_unwind_cache): Likewise.
5531 (nios2_stub_frame_cache): Likewise.
5532 (nios2_stub_frame_sniffer): Likewise.
5533 (nios2_gdbarch_init): Likewise.
5534 * ppc-ravenscar-thread.c: Likewise.
5535 * ppcfbsd-tdep.c (ppcfbsd_sigtramp_frame_cache): Likewise.
5536 * python/py-evts.c (add_new_registry): Likewise.
5537 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
5538 (bpfinishpy_detect_out_scope_cb): Likewise.
5539 * python/py-framefilter.c (py_print_value): Likewise.
5540 * python/py-inferior.c (infpy_write_memory): Likewise.
5541 * python/py-infevents.c (create_inferior_call_event_object): Likewise.
5542 * python/py-infthread.c (thpy_get_ptid): Likewise.
5543 * python/py-linetable.c (ltpy_get_pcs_for_line): Likewise.
5544 (ltpy_get_all_source_lines): Likewise.
5545 (ltpy_is_valid): Likewise.
5546 (ltpy_iternext): Likewise.
5547 * python/py-symtab.c (symtab_and_line_to_sal_object): Likewise.
5548 * python/py-unwind.c (pyuw_object_attribute_to_pointer): Likewise.
5549 (unwind_infopy_str): Likewise.
5550 * python/py-varobj.c (py_varobj_get_iterator): Likewise.
5551 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
5552 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
5553 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
5554 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Likewise.
5555 * s390-linux-tdep.c (s390_supply_tdb_regset): Likewise.
5556 (s390_frame_prev_register): Likewise.
5557 (s390_dwarf2_frame_init_reg): Likewise.
5558 (s390_record_vr): Likewise.
5559 (s390_process_record): Likewise.
5560 * score-tdep.c (score_push_dummy_call): Likewise.
5561 (score3_analyze_prologue): Likewise.
5562 * sh-tdep.c (sh_extract_return_value_nofpu): Likewise.
5563 * sh64-tdep.c (sh64_analyze_prologue): Likewise.
5564 (sh64_push_dummy_call): Likewise.
5565 (sh64_extract_return_value): Likewise.
5566 (sh64_do_fp_register): Likewise.
5567 * solib-aix.c (solib_aix_get_section_offsets): Likewise.
5568 * solib-darwin.c (darwin_read_exec_load_addr_from_dyld): Likewise.
5569 (darwin_solib_read_all_image_info_addr): Likewise.
5570 * solib-dsbt.c (enable_break): Likewise.
5571 * solib-frv.c (enable_break2): Likewise.
5572 (frv_fdpic_find_canonical_descriptor): Likewise.
5573 * solib-svr4.c (svr4_handle_solib_event): Likewise.
5574 * sparc-tdep.c (sparc_skip_stack_check): Likewise.
5575 * sparc64-linux-tdep.c (sparc64_linux_get_longjmp_target): Likewise.
5576 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
5577 * spu-tdep.c (info_spu_dma_cmdlist): Likewise.
5578 * stack.c (read_frame_local): Likewise.
5579 * symfile.c (symbol_file_add_separate): Likewise.
5580 (remove_symbol_file_command): Likewise.
5581 * symmisc.c (maintenance_print_one_line_table): Likewise.
5582 * symtab.c (symbol_cache_flush): Likewise.
5583 (basic_lookup_transparent_type): Likewise.
5584 (sort_search_symbols_remove_dups): Likewise.
5585 * target.c (target_memory_map): Likewise.
5586 (target_detach): Likewise.
5587 (target_resume): Likewise.
5588 (acquire_fileio_fd): Likewise.
5589 (target_store_registers): Likewise.
5590 * thread.c (print_thread_info_1): Likewise.
5591 * tic6x-tdep.c (tic6x_analyze_prologue): Likewise.
5592 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Likewise.
5593 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
5594 (tilegx_analyze_prologue): Likewise.
5595 (tilegx_stack_frame_destroyed_p): Likewise.
5596 (tilegx_frame_cache): Likewise.
5597 * tracefile.c (trace_save): Likewise.
5598 * tracepoint.c (encode_actions_and_make_cleanup): Likewise.
5599 (start_tracing): Likewise.
5600 (print_one_static_tracepoint_marker): Likewise.
5601 * tui/tui.c (tui_enable): Likewise.
5602 * valops.c (value_struct_elt_bitpos): Likewise.
5603 (find_overload_match): Likewise.
5604 (find_oload_champ): Likewise.
5605 * value.c (value_contents_copy_raw): Likewise.
5606 * windows-tdep.c (windows_get_tlb_type): Likewise.
5607 * x86-linux-nat.c (x86_linux_enable_btrace): Likewise.
5608 * xcoffread.c (record_minimal_symbol): Likewise.
5609 (scan_xcoff_symtab): Likewise.
5610 * xtensa-tdep.c (execute_code): Likewise.
5611 (xtensa_gdbarch_init): Likewise.
5612 (_initialize_xtensa_tdep): Likewise.
5614 2016-05-04 Ulrich Weigand <uweigand@de.ibm.com>
5616 * spu-linux-nat.c (spu_bfd_iovec_pread): Add pointer cast for C++.
5617 (spu_bfd_open): Likewise.
5619 2016-05-04 Yao Qi <yao.qi@linaro.org>
5622 * corefile.c (read_memory): Rename it to ...
5623 (read_memory_object): ... it. Add parameter object.
5624 (read_memory): Call read_memory_object.
5625 (read_stack): Likewise.
5626 (read_code): Likewise.
5628 2016-05-03 Yunlian Jiang <yunlian@google.com>
5629 Doug Evans <dje@google.com>
5632 * dwarf2read.c (open_and_init_dwp_file): Look at backlink if objfile
5633 is separate debug file.
5635 2016-05-03 Don Breazeal <donb@codesourcery.com>
5637 * serial.h (gdb_pipe): Fix argument names in comment.
5639 2016-05-03 Pedro Alves <palves@redhat.com>
5642 * python/python.c (_initialize_python) [IS_PY3K]: xstrdup/xfree
5645 2016-05-03 Pedro Alves <palves@redhat.com>
5647 * python/python.c (_initialize_python) [IS_PY3K]: Remove dead
5650 2016-05-03 Pedro Alves <palves@redhat.com>
5652 * configure.ac (PYTHON_LIBS): Sed away "-Xlinker -export-dynamic".
5653 * configure: Regenerate.
5655 2016-05-03 Pedro Alves <palves@redhat.com>
5657 * configure.ac (checking for the dynamic export flag): Add
5658 $PYTHON_CPPFLAGS to CPPFLAGS.
5659 * configure: Regenerate.
5661 2016-05-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5663 * symfile.c (find_pc_overlay): Add braces to avoid -Wparentheses
5665 (find_pc_mapped_section): Likewise.
5666 (list_overlays_command): Likewise.
5668 2016-05-02 Eli Zaretskii <eliz@gnu.org>
5670 * windows-nat.c (_initialize_check_for_gdb_ini): Fix off-by-one
5671 error in allocation of space for "$HOME/.gdbinit" string. This
5672 caused GDB to abort on startup whenever a '~/gdb.ini' file was
5673 actually found, because xsnprintf would hit an assertion
5676 2016-04-28 Simon Marchi <simon.marchi@ericsson.com>
5678 * cli/cli-decode.c (help_cmd_list): Do not list commands that
5681 2016-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5683 * remote.c (remote_start_remote): Detect PACKET_vFile_setfs.support.
5685 2016-04-27 Martin Galvan <martin.galvan@tallertechnologies.com>
5687 * c-valprint.c (c_value_print): Always convert val back to reference
5688 type if we converted it to a pointer type.
5690 2016-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
5692 * configure.ac: Enhance configure check for babeltrace to reject
5693 non-C++-enabled versions.
5694 * configure: Regenerate.
5696 2016-04-26 Sanimir Agovic <sanimir.agovic@intel.com>
5697 Keven Boell <keven.boell@intel.com>
5698 Bernhard Heckel <bernhard.heckel@intel.com>
5700 * f-valprint.c (f77_create_arrayprint_offset_tbl): Remove
5702 (F77_DIM_SIZE, F77_DIM_OFFSET): Remove macro.
5703 (f77_print_array_1): Use value_subscript to subscript a
5705 (f77_print_array): Remove call to f77_create_arrayprint_offset_tbl.
5706 (f_val_print): Use value_field to construct a field value.
5708 2016-04-26 Bernhard Heckel <bernhard.heckel@intel.com>
5710 * valarith.c (value_address): Resolve dynamic types.
5712 2016-04-26 Bernhard Heckel <bernhard.heckel@intel.com>
5713 Keven Boell <kevel.boell@intel.com>
5715 * NEWS: Add new supported features for fortran.
5716 * gdbtypes.c (remove_dyn_prop): New.
5717 (resolve_dynamic_struct): Keep type length for fortran structs.
5718 * gdbtypes.h: Forward declaration of new function.
5719 * value.c (value_address): Return dynamic resolved location of a value.
5720 (set_value_component_location): Adjust the value address
5721 for single value prints.
5722 (value_primitive_field): Support value types with a dynamic location.
5723 (set_internalvar): Remove dynamic location property of
5726 2016-04-25 Pedro Alves <palves@redhat.com>
5727 Yao Qi <yao.qi@linaro.org>
5729 * mem-break.c (set_raw_breakpoint_at): Create a raw breakpoint
5730 object. Insert it if it is not inserted yet. Increase the
5731 refcount and link it into the proc's raw breakpoint list.
5733 2016-04-25 Yao Qi <yao.qi@linaro.org>
5735 * breakpoint.c (should_be_inserted): Return 0 if the location's
5736 owner is not single step breakpoint or single step breakpoint's
5737 thread isn't the thread which is stepping past a breakpoint.
5738 * gdbarch.sh (software_single_step): Update comments.
5739 * gdbarch.h: Regenerated.
5740 * infrun.c (struct step_over_info) <thread>: New field.
5741 (set_step_over_info): New argument 'thread'. Callers updated.
5742 (clear_step_over_info): Set field thread to -1.
5743 (thread_is_stepping_over_breakpoint): New function.
5744 * infrun.h (thread_is_stepping_over_breakpoint): Declaration.
5746 2016-04-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5748 * ppc-linux-nat.c (ppc_linux_read_description): Use PPC_FEATURE_HAS_VSX
5749 and PPC_FEATURE_HAS_ALTIVEC to check if such features are available.
5751 2016-04-22 Yao Qi <yao.qi@linaro.org>
5753 * valops.c (read_value_memory): New local variable 'stack'.
5754 Set it to either TARGET_OBJECT_STACK_MEMORY or
5755 TARGET_OBJECT_MEMORY.
5757 2016-04-22 Pedro Alves <palves@redhat.com>
5759 * ada-exp.y: Remove all yy symbol remappings.
5760 (GDB_YY_REMAP_PREFIX): Define.
5761 Include "yy-remap.h".
5762 * ada-lang.c (ada_language_defn): Adjust.
5763 * ada-lang.h (ada_error): Rename to ...
5764 (ada_yyerror): ... this.
5765 * c-exp.y: Remove all yy symbol remappings.
5766 (GDB_YY_REMAP_PREFIX): Define.
5767 Include "yy-remap.h".
5768 * c-lang.c (c_language_defn, cplus_language_defn)
5769 (asm_language_defn, minimal_language_defn): Adjust.
5770 * c-lang.h (c_error): Rename to ...
5771 (c_yyerror): ... this.
5772 * d-exp.y: Remove all yy symbol remappings.
5773 (GDB_YY_REMAP_PREFIX): Define.
5774 Include "yy-remap.h".
5775 * d-lang.c (d_language_defn): Adjust.
5776 * d-lang.h (d_error): Rename to ...
5777 (d_yyerror): ... this.
5778 * f-exp.y: Remove all yy symbol remappings.
5779 (GDB_YY_REMAP_PREFIX): Define.
5780 Include "yy-remap.h".
5781 * f-lang.c (f_language_defn): Adjust.
5782 * f-lang.h (f_error): Rename to ...
5783 (f_yyerror): ... this.
5784 * go-exp.y: Remove all yy symbol remappings.
5785 (GDB_YY_REMAP_PREFIX): Define.
5786 Include "yy-remap.h".
5787 * go-lang.c (go_language_defn): Adjust.
5788 * go-lang.h (go_error): Rename to ...
5789 (go_yyerror): ... this.
5790 * jv-exp.y: Remove all yy symbol remappings.
5791 (GDB_YY_REMAP_PREFIX): Define.
5792 Include "yy-remap.h".
5793 * jv-lang.c (java_language_defn): Adjust.
5794 * jv-lang.h (java_error): Rename to ...
5795 (java_yyerror): ... this.
5796 * m2-exp.y: Remove all yy symbol remappings.
5797 (GDB_YY_REMAP_PREFIX): Define.
5798 Include "yy-remap.h".
5799 * m2-lang.c (m2_language_defn): Adjust.
5800 * m2-lang.h (m2_error): Rename to ...
5801 (m2_yyerror): ... this.
5802 * objc-exp.y: Remove all yy symbol remappings.
5803 (GDB_YY_REMAP_PREFIX): Define.
5804 Include "yy-remap.h".
5805 * objc-lang.c (objc_language_defn): Adjust.
5806 * opencl-lang.c (opencl_language_defn): Adjust.
5807 * p-exp.y: Remove all yy symbol remappings.
5808 (GDB_YY_REMAP_PREFIX): Define.
5809 Include "yy-remap.h".
5810 * p-lang.c (pascal_language_defn): Adjust.
5811 * p-lang.h (pascal_error): Rename to ...
5812 (pascal_yyerror): ... this.
5813 * yy-remap.h: New file.
5815 2016-04-22 Pedro Alves <palves@redhat.com>
5817 * common/common-exceptions.h (GDB_XCPT_TRY): Remove mention of
5818 the foreign frames issue.
5819 [__cplusplus] (GDB_XCPT): Define as GDB_XCPT_TRY.
5821 2016-04-22 Pedro Alves <palves@redhat.com>
5823 * common/common-exceptions.c (enum catcher_state, struct catcher)
5824 (current_catcher): Define in C++ mode too.
5825 (exceptions_state_mc_catch): Call throw_exception_sjlj instead of
5827 (throw_exception_sjlj, throw_exception_cxx): New functions,
5828 factored out from throw_exception.
5829 (throw_exception): Reimplement.
5830 * common/common-exceptions.h (exceptions_state_mc_init)
5831 (exceptions_state_mc_action_iter)
5832 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
5833 Declare in C++ mode too.
5834 (TRY): Rename to ...
5835 (TRY_SJLJ): ... this.
5836 (CATCH): Rename to ...
5837 (CATCH_SJLJ): ... this.
5838 (END_CATCH): Rename to ...
5839 (END_CATCH_SJLJ): ... this.
5840 [GDB_XCPT == GDB_XCPT_SJMP] (TRY, CATCH, END_CATCH): Map to SJLJ
5842 (throw_exception): Update comments.
5843 (throw_exception_sjlj): Declare.
5844 * event-top.c (gdb_rl_callback_read_char_wrapper): Extend intro
5845 comment. Wrap body in TRY_SJLJ/CATCH_SJLJ and rethrow any
5846 intercepted exception.
5847 (gdb_rl_callback_handler): New function.
5848 (gdb_rl_callback_handler_install): Always install
5849 gdb_rl_callback_handler as readline callback.
5851 2016-04-22 Pedro Alves <palves@redhat.com>
5853 * event-top.c (rl_callback_read_char_wrapper): Rename to ...
5854 (gdb_rl_callback_read_char_wrapper): ... this.
5855 (change_line_handler, gdb_setup_readline): Adjust.
5857 2016-04-22 Yao Qi <yao.qi@linaro.org>
5859 * aarch32-linux-nat.c (aarch32_gp_regcache_supply): Clear CPSR
5862 2016-04-22 Joel Brobecker <brobecker@adacore.com>
5864 * MAINTAINER: Remove myself as AIX Maintainer.
5866 2016-04-22 Maciej W. Rozycki <macro@imgtec.com>
5868 * mips-tdep.c (mips_gdbarch_init): For GDB_OSABI_LINUX set
5869 `num_regs' to 90 rather than 79. Where a target description is
5870 present adjust the setting appropriately.
5872 2016-04-21 Pedro Alves <palves@redhat.com>
5874 * common/common-exceptions.h (GDB_XCPT_TRY): Add comment.
5875 (GDB_XCPT): Always define as GDB_XCPT_SJMP.
5877 2016-04-21 Pedro Alves <palves@redhat.com>
5879 * aix-thread.c (pdc_read_data, pdc_write_data): Add cast.
5880 (aix_thread_resume): Use PTRACE_TYPE_ARG5.
5881 * rs6000-nat.c (rs6000_ptrace64): Use PTRACE_TYPE_ARG5.
5882 (rs6000_ptrace_ldinfo): Change type of 'ldi' local to void
5883 pointer, and cast return to gdb_byte pointer.
5885 2016-04-21 Pedro Alves <palves@redhat.com>
5887 * s390-linux-nat.c (fetch_regset, store_regset, check_regset): Use
5888 void * instead of gdb_byte *.
5890 2016-04-21 Pedro Alves <palves@redhat.com>
5892 * dwarf2read.c (try_open_dwop_file, open_dwo_file)
5893 (file_file_name, file_full_name): Add char * cast to sentinel in
5894 concat/reconcat calls.
5895 * event-top.c (top_level_prompt): Likewise.
5896 * guile/guile.c (initialize_scheme_side): Likewise.
5897 * linux-tdep.c (linux_fill_prpsinfo): Likewise.
5898 * macrotab.c (macro_source_fullname): Likewise.
5899 * main.c (get_init_files, captured_main): Likewise.
5900 * psymtab.c (psymtab_to_fullname): Likewise.
5901 * python/python.c (_initialize_python)
5902 (gdbpy_finish_initialization): Likewise.
5903 * source.c (symtab_to_fullname): Likewise.
5905 2016-04-20 Pedro Alves <palves@redhat.com>
5907 * build-with-cxx.m4 (GDB_AC_BUILD_WITH_CXX): Default to yes.
5908 * configure: Renegerate.
5910 2016-04-20 Pedro Alves <palves@redhat.com>
5912 * darwin-nat.c (darwin_decode_message): Use gdb_signal_from_host.
5914 2016-04-20 Pedro Alves <palves@redhat.com>
5916 * aarch64-tdep.c (aarch64_record_load_store): Change type of
5917 'reg_rm_val' local to ULONGEST.
5919 2016-04-20 Pedro Alves <palves@redhat.com>
5921 * darwin-nat.c (darwin_resume_thread): Add uintptr_t cast.
5923 2016-04-20 Doug Evans <xdje42@gmail.com>
5925 * symmisc.c (dump_symtab_1): Print owning compunit for identical
5928 2016-04-20 Yao Qi <yao.qi@linaro.org>
5930 * aarch32-linux-nat.c: Include "arch/arm-linux.h".
5932 2016-04-20 Yao Qi <yao.qi@linaro.org>
5934 * arm-linux-tdep.h (ARM_CPSR_GREGNUM): Move it to ...
5935 * arch/arm-linux.h: ... here.
5937 2016-04-19 John Baldwin <jhb@FreeBSD.org>
5939 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Change xstateregs
5941 (amd64bsd_store_inferior_registers): Likewise.
5942 * fbsd-nat.c (resume_one_thread_cb): Explicitly cast data to ptid_t *.
5943 (resume_all_threads_cb): Likewise.
5944 * i386bsd-nat.c (i386bsd_supply_gregset): Cast gregs to char *.
5945 (i386bsd_collect_gregset): Likewise.
5946 (i386bsd_fetch_inferior_registers): Change xstateregs to void *.
5947 (i386bsd_store_inferior_registers): Likewise.
5949 2016-04-19 John Baldwin <jhb@FreeBSD.org>
5951 * main.c (setup_alternate_signal_stack): Cast to char *.
5953 2016-04-19 Doug Evans <xdje42@gmail.com>
5955 * symmisc.c (dump_symtab_1, dump_symtab): Delete arg objfile.
5956 All callers updated.
5958 2016-04-19 Doug Evans <xdje42@gmail.com>
5961 * source.c (is_regular_file): New arg errno_ptr.
5962 All callers updated.
5964 2016-04-19 Andreas Arnez <arnez@linux.vnet.ibm.com>
5966 * linux-record.c (record_linux_system_call): Merge handling for
5967 readlink/recv/read and pipe/pipe2.
5969 2016-04-14 Walfred Tedeschi <walfred.tedeschi@intel.com>
5971 * features/i386/amd64-mpx-linux.xml: Remove AVX feature.
5972 * features/i386/amd64-mpx.xml: Remove AVX feature.
5973 * features/i386/i386-mpx-linux.xml: Remove AVX feature.
5974 * features/i386/i386-mpx.xml: Remove AVX feature.
5975 * features/i386/amd64-mpx-linux.c: Regenerate.
5976 * features/i386/amd64-mpx.c: Regenerate.
5977 * features/i386/i386-mpx-linux.c: Regenerate.
5978 * features/i386/i386-mpx.c: Regenerate.
5979 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
5980 * regformats/i386/amd64-mpx.dat: Regenerate.
5981 * regformats/i386/i386-mpx-linux.dat: Regenerate.
5982 * regformats/i386/i386-mpx.dat: Regenerate.
5984 2016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
5986 * amd64-linux-tdep.c (features/i386/amd64-avx-mpx-linux.c):
5988 (amd64_linux_core_read_description): Add case for
5989 X86_XSTATE_AVX_MPX_MASK.
5990 (_initialize_amd64_linux_tdep): Call initialize_tdesc_amd64_avx_mpx_linux.
5991 * amd64-linux-tdep.h (tdesc_amd64_avx_mpx_linux): New definition.
5992 * amd64-tdep.c (features/i386/amd64-avx-mpx.c): New include.
5993 (amd64_target_description): Add case for X86_XSTATE_AVX_MPX_MASK.
5994 (_initialize_amd64_tdep): Call initialize_tdesc_amd64_avx_mpx.
5995 * common/x86-xstate.h (X86_XSTATE_MPX_MASK): Remove AVX bits.
5996 (X86_XSTATE_AVX_MPX_MASK): New case.
5997 * features/Makefile (i386/i386-avx-mpx, i386/i386-avx-mpx-linux)
5998 (i386/amd64-avx-mpx, i386/amd64-avx-mpx-linux): New rules.
5999 (i386/i386-avx-mpx-expedite, i386/i386-avx-mpx-linux-expedite)
6000 (i386/amd64-avx-mpx-expedite, i386/amd64-avx-mpx-linux-expedite):
6002 * i386-linux-tdep.c (features/i386/i386-avx-mpx-linux.c): New
6004 (i386_linux_core_read_description): Add case
6005 X86_XSTATE_AVX_MPX_MASK.
6006 (_initialize_i386_linux_tdep): Call
6007 initialize_tdesc_i386_avx_mpx_linux.
6008 * i386-linux-tdep.h (tdesc_i386_avx_mpx_linux): New include.
6009 * i386-tdep.c (features/i386/i386-avx-mpx.c): New include.
6010 (i386_target_description): Add case for X86_XSTATE_AVX_MPX_MASK.
6011 * x86-linux-nat.c (x86_linux_read_description): Add case for
6012 X86_XSTATE_AVX_MPX_MASK.
6013 * features/i386/amd64-avx-mpx-linux.xml: New file.
6014 * features/i386/i386-avx-mpx-linux.xml: New file.
6015 * features/i386/i386-avx-mpx.xml: New file.
6016 * features/i386/amd64-avx-mpx.xml: New file.
6017 * features/i386/amd64-avx-mpx-linux.c: Generated.
6018 * features/i386/amd64-avx-mpx.c: Generated.
6019 * features/i386/i386-avx-mpx-linux.c: Generated.
6020 * features/i386/i386-avx-mpx.c: Generated.
6021 * regformats/i386/amd64-avx-mpx-linux.dat: Generated.
6022 * regformats/i386/amd64-avx-mpx.dat: Generated.
6023 * regformats/i386/i386-avx-mpx-linux.dat: Generated.
6024 * regformats/i386/i386-avx-mpx.dat: Generated.
6026 2016-04-18 Pedro Alves <palves@redhat.com>
6028 * ptrace.m4 (GDB_AC_PTRACE): Don't run tests in C++ mode.
6029 * configure: Regenerate.
6031 2016-04-18 Martin Galvan <martin.galvan@tallertechnologies.com>
6033 * valops.c (value_addr): For C++ references, set the copied value's
6034 enclosing_type as well.
6036 2016-04-18 Yao Qi <yao.qi@linaro.org>
6039 2016-04-15 Yao Qi <yao.qi@linaro.org>
6041 * arm-tdep.c (thumb_stack_frame_destroyed_p): Return zero if
6042 PC is far from the end of function.
6044 2016-04-16 Pedro Alves <palves@redhat.com>
6046 * ada-exp.y (yydefred): Define as ada_yydefred.
6048 2016-04-15 Pedro Alves <palves@redhat.com>
6050 * ada-lang.c (ada_lookup_struct_elt_type): Constify 'type_str' and
6053 2016-04-15 Pedro Alves <palves@redhat.com>
6055 * btrace.c (pt_btrace_insn_flags): Change return type to
6056 btrace_insn_flags. Use btrace_insn_flags for local.
6058 2016-04-15 Pedro Alves <palves@redhat.com>
6060 * nat/linux-ptrace.h [__mips__] (GDB_ARCH_IS_TRAP_BRKPT): Also
6062 [__mips__] (GDB_ARCH_IS_TRAP_HWBKPT): Also accept TRAP_HWBKPT.
6064 2016-04-15 Yao Qi <yao.qi@linaro.org>
6066 * arm-tdep.c (thumb_stack_frame_destroyed_p): Return zero if
6067 PC is far from the end of function.
6069 2016-04-14 Pedro Alves <palves@redhat.com>
6071 * cli/cli-cmds.c (alias_usage_error): New function.
6072 (alias_command): Use it.
6073 * ctf.c (ctf_save_metadata_header): Inline metadata_fmt local in
6074 ctf_save_write_metadata call.
6076 2016-04-14 Pedro Alves <palves@redhat.com>
6078 * ada-typeprint.c (print_fixed_point_type): Don't pass float as
6079 argument to function expecting LONGEST.
6080 * value.c (unpack_long): Add casts to LONGEST.
6082 2016-04-13 Luis Machado <lgustavo@codesourcery.com>
6084 * exec.c (exec_file_locate_attach): Guard a couple functions
6085 that can throw errors.
6086 (exception_print_same): New helper function.
6088 2016-04-13 Pedro Alves <palves@redhat.com>
6091 * remote.c (struct remote_state) <last_resume_exec_dir>: New
6093 (new_remote_state): Default last_resume_exec_dir to EXEC_FORWARD.
6094 (remote_open_1): Reset last_resume_exec_dir to EXEC_FORWARD.
6095 (remote_resume): Store the last execution direction.
6096 (remote_execution_direction): New function.
6097 (init_remote_ops): Install it as to_execution_direction target_ops
6100 2016-04-12 Pedro Alves <palves@redhat.com>
6102 * common/common-exceptions.h (GDB_XCPT_TRY): Update comment.
6103 [__cplusplus] (GDB_XCPT): Define as GDB_XCPT_TRY.
6105 2016-04-12 Pedro Alves <palves@redhat.com>
6107 * common/common-exceptions.c (struct catcher) <buf>: Now a
6108 'jmp_buf' instead of SIGJMP_BUF.
6109 (exceptions_state_mc_init): Change return type to 'jmp_buf'.
6110 (throw_exception): Use longjmp instead of SIGLONGJMP.
6111 * common/common-exceptions.h: Include <setjmp.h> instead of
6113 (exceptions_state_mc_init): Change return type to 'jmp_buf'.
6114 [GDB_XCPT == GDB_XCPT_SJMP] (TRY): Use setjmp instead of
6116 * cp-support.c: Include "gdb_setjmp.h".
6118 2016-04-12 Pedro Alves <palves@redhat.com>
6120 * common/common-exceptions.c (exception_rethrow): Remove
6121 prepare_to_throw_exception call.
6122 * common/common-exceptions.h (prepare_to_throw_exception): Delete
6124 * exceptions.c (prepare_to_throw_exception): Delete.
6126 2016-04-12 Pedro Alves <palves@redhat.com>
6128 * target.c (target_check_pending_interrupt): Delete.
6129 * target.h (struct target_ops) <to_check_pending_interrupt>:
6131 (target_check_pending_interrupt): Remove declaration.
6132 * target-delegates.c: Regenerate.
6134 2016-04-12 Pedro Alves <palves@redhat.com>
6136 * defs.h: Update comments on SIGINT handling.
6137 (immediate_quit): Delete declaration.
6138 * event-loop.c (call_async_signal_handler): Delete.
6139 * event-loop.h (call_async_signal_handler): Delete declaration.
6140 (mark_async_signal_handler): Update comments.
6141 (gdb_call_async_signal_handler): Delete declaration.
6142 * event-top.c (handle_sigint): Call mark_async_signal_handler
6143 instead of gdb_call_async_signal_handler.
6144 * exceptions.c (prepare_to_throw_exception): Remove reference to
6146 (exception_fprintf): Remove comments about immediate_quit.
6147 * mingw-hdep.c (sigint_event, sigint_handler): Delete.
6148 (gdb_select): Don't wait on sigint_event.
6149 (gdb_call_async_signal_handler): Delete.
6150 (_initialize_mingw_hdep): Delete.
6151 * posix-hdep.c (gdb_call_async_signal_handler): Delete.
6152 * utils.c (immediate_quit): Delete.
6154 2016-04-12 Pedro Alves <palves@redhat.com>
6156 * defs.h (quit_handler_ftype, quit_handler)
6157 (make_cleanup_override_quit_handler, default_quit_handler): New.
6158 (QUIT): Adjust comments.
6159 * event-top.c (default_quit_handler): New function.
6160 (quit_handler): New global.
6161 (struct quit_handler_cleanup_data): New.
6162 (restore_quit_handler, restore_quit_handler_dtor)
6163 (make_cleanup_override_quit_handler): New.
6164 (async_request_quit): Call QUIT.
6165 * remote.c (struct remote_state) <got_ctrlc_during_io>: New field.
6166 (async_sigint_remote_twice_token, async_sigint_remote_token):
6168 (remote_close): Update comments.
6169 (remote_start_remote): Don't set immediate_quit. Set starting_up
6171 (remote_serial_quit_handler, remote_unpush_and_throw): New
6173 (remote_open_1): Clear got_ctrlc_during_io. Set
6174 remote_async_terminal_ours_p unconditionally.
6175 (async_initialize_sigint_signal_handler)
6176 (async_handle_remote_sigint, async_handle_remote_sigint_twice)
6177 (remote_check_pending_interrupt, async_remote_interrupt)
6178 (async_remote_interrupt_twice)
6179 (async_cleanup_sigint_signal_handler, ofunc)
6180 (sync_remote_interrupt, sync_remote_interrupt_twice): Delete.
6181 (remote_terminal_inferior, remote_terminal_ours): Remove async
6183 (remote_wait_as): Don't install a SIGINT handler in sync mode.
6184 (readchar, remote_serial_write): Override the quit handler with
6185 remote_serial_quit_handler.
6186 (getpkt_or_notif_sane_1): Don't call QUIT.
6187 (initialize_remote_ops): Don't install
6188 remote_check_pending_interrupt.
6189 (_initialize_remote): Don't create async_sigint_remote_token and
6190 async_sigint_remote_twice_token.
6191 * ser-base.c (ser_base_wait_for): Call QUIT and use
6192 interruptible_select.
6193 (ser_base_write): Call QUIT.
6194 * ser-go32.c (dos_readchar, dos_write): Call QUIT.
6195 * ser-unix.c (wait_for): Don't use VTIME. Always take the
6196 gdb_select path, but call QUIT and interruptible_select.
6197 * utils.c (maybe_quit): Call the current quit handler. Don't call
6198 target_check_pending_interrupt.
6199 (defaulted_query, prompt_for_continue): Override the quit handler
6200 with the default quit handler.
6202 2016-04-12 Pedro Alves <palves@redhat.com>
6204 * tui/tui-hooks.c (tui_target_has_run): Delete.
6205 (tui_about_to_proceed): Delete.
6206 (tui_about_to_proceed_observer): Delete.
6207 (tui_install_hooks, tui_remove_hooks): Don't install/remove an
6208 about_to_proceed observer.
6210 2016-04-12 Pedro Alves <palves@redhat.com>
6212 * mi/mi-interp.c (mi_new_thread): Put
6213 target_terminal_ours_for_output in effect while outputting.
6214 (mi_thread_exit): Use target_terminal_ours_for_output instead of
6215 target_terminal_ours.
6216 (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
6217 (mi_inferior_exit, mi_inferior_removed, mi_traceframe_changed)
6218 (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
6219 (mi_breakpoint_created, mi_breakpoint_deleted)
6220 (mi_breakpoint_modified, mi_solib_loaded, mi_solib_unloaded)
6221 (mi_command_param_changed, mi_memory_changed)
6222 (report_initial_inferior): Use target_terminal_ours_for_output
6223 instead of target_terminal_ours. Restore terminal settings.
6224 * mi/mi-main.c (mi_execute_command): Use
6225 target_terminal_ours_for_output instead of target_terminal_ours.
6226 Restore terminal settings.
6228 2016-04-12 Pedro Alves <palves@redhat.com>
6231 * gnu-nat.c (inf_validate_task_sc): Don't call
6232 target_terminal_ours / target_terminal_inferior around query.
6233 * i386-tdep.c (i386_record_lea_modrm, i386_process_record): Don't
6234 call target_terminal_ours / target_terminal_inferior around
6236 * linux-record.c (record_linux_system_call): Don't call
6237 target_terminal_ours / target_terminal_inferior around yquery.
6238 * nto-procfs.c (interrupt_query): Don't call target_terminal_ours
6239 / target_terminal_inferior around query.
6240 * record-full.c (record_full_check_insn_num): Remove
6241 'set_terminal' parameter. Don't call target_terminal_ours /
6242 target_terminal_inferior around query.
6243 (record_full_message, record_full_registers_change)
6244 (record_full_xfer_partial): Adjust.
6245 * remote.c (interrupt_query): Don't call target_terminal_ours /
6246 target_terminal_inferior around query.
6247 * utils.c (defaulted_query): Install cleanup to restore target
6248 terminal. Put target_terminal_ours_for_output in effect while
6249 defaulted producing, and target_terminal_ours in in effect while
6251 (prompt_for_continue): Install cleanup to restore target terminal.
6252 Put target_terminal_ours in in effect while handling input.
6254 2016-04-12 Pedro Alves <palves@redhat.com>
6256 * utils.c (defaulted_query, prompt_for_continue): Free temporary
6257 strings with cleanups, instead of xfree.
6259 2016-04-12 Pedro Alves <palves@redhat.com>
6261 * utils.c (vwarning, internal_vproblem): Use
6262 make_cleanup_restore_target_terminal and
6263 target_terminal_ours_for_output.
6265 2016-04-12 Pedro Alves <palves@redhat.com>
6267 * infcmd.c (post_create_inferior, prepare_one_step): Use
6268 target_terminal_ours_for_output instead of target_terminal_ours.
6270 2016-04-12 Pedro Alves <palves@redhat.com>
6272 * exceptions.c (print_flush): Use target_terminal_ours_for_output
6273 instead of target_terminal_ours, and restore target terminal with
6276 2016-04-12 Pedro Alves <palves@redhat.com>
6278 * cp-support.c (gdb_demangle): Use target_terminal_ours_for_output
6279 instead of target_terminal_ours, and restore target terminal with
6282 2016-04-12 Pedro Alves <palves@redhat.com>
6284 * ada-lang.c (type_as_string, type_as_string_and_cleanup): New
6286 (ada_lookup_struct_elt_type): Use type_as_string_and_cleanup.
6288 2016-04-12 Pedro Alves <palves@redhat.com>
6290 * ser-base.c (fd_event): Retry read_prim on EINTR.
6291 (do_ser_base_readchar): Retry read_prim on EINTR.
6292 (ser_base_write): Retry write_prim on EINTR.
6293 * ser-unix.c (ser_unix_read_prim): Don't retry on EINTR here.
6294 (ser_unix_write_prim): Remove comment.
6296 2016-04-12 Pedro Alves <palves@redhat.com>
6298 * remote.c (remote_pass_ctrlc): New function.
6299 (init_remote_ops): Install it.
6300 * target.c (target_terminal_inferior): Pass pending Ctrl-C to the
6302 (target_pass_ctrlc, default_target_pass_ctrlc): New functions.
6303 * target.h (struct target_ops) <to_pass_ctrlc>: New method.
6304 (target_pass_ctrlc, default_target_pass_ctrlc): New declarations.
6305 * target-delegates.c: Regenerate.
6307 2016-04-12 Pedro Alves <palves@redhat.com>
6309 * infcmd.c (interrupt_target_1): Call target_stop is in non-stop
6311 * linux-nat.c (linux_nat_interrupt): Delete.
6312 (linux_nat_add_target): Don't install linux_nat_interrupt.
6313 * remote.c (remote_interrupt_ns): Change return type to void.
6314 Throw error if interrupting the target is not supported.
6315 (remote_interrupt): Don't call the remote_stop_ns/remote_stop_as.
6317 2016-04-12 Pedro Alves <palves@redhat.com>
6319 * defs.h (clear_quit_flag): Remove declaration.
6320 * extension-priv.h (struct extension_language_ops)
6321 <clear_quit_flag>: Remove field and update comments.
6322 * extension.c (clear_quit_flag): Delete.
6323 * guile/guile.c (guile_extension_ops): Adjust.
6324 * python/python.c (python_extension_ops): Adjust.
6325 (gdbpy_clear_quit_flag): Delete.
6327 2016-04-12 Pedro Alves <palves@redhat.com>
6329 * main.c (captured_main): Don't clear the quit flag.
6331 2016-04-12 Pedro Alves <palves@redhat.com>
6333 * exceptions.c (prepare_to_throw_exception): Don't clear the quit
6336 2016-04-12 Pedro Alves <palves@redhat.com>
6338 * event-top.c (command_handler): Don't call clear_quit_flag.
6340 2016-04-12 Pedro Alves <palves@redhat.com>
6342 * remote-sim.c (gdb_os_poll_quit): Don't call clear_quit_flag.
6343 * remote.c (remote_wait_as): Don't call clear_quit_flag.
6345 2016-04-12 Pedro Alves <palves@redhat.com>
6347 * python/python.c: Include "ser-event.h".
6348 (gdbpy_event_fds): Delete.
6349 (gdbpy_serial_event): New.
6350 (gdbpy_run_events): Change prototype. Use serial_event_clear
6351 instead of serial_readchar.
6352 (gdbpy_post_event): Use serial_event_set instead of serial_write.
6353 (gdbpy_initialize_events): Use make_serial_event instead of
6356 2016-04-12 Pedro Alves <palves@redhat.com>
6358 * defs.h: Extend QUIT-related comments to mention
6359 interruptible_select.
6360 (quit_serial_event_set, quit_serial_event_clear): Declare.
6361 * event-top.c: Include "ser-event.h" and "gdb_select.h".
6362 (quit_serial_event): New global.
6363 (async_init_signals): Make quit_serial_event.
6364 (quit_serial_event_set, quit_serial_event_clear)
6365 (quit_serial_event_fd, interruptible_select): New functions.
6366 * extension.c (set_quit_flag): Set the quit serial event.
6367 (check_quit_flag): Clear the quit serial event.
6368 * gdb_select.h (interruptible_select): New declaration.
6369 * guile/scm-ports.c (ioscm_input_waiting): Use
6370 interruptible_select instead of gdb_select.
6371 * top.c (gdb_readline_no_editing): Likewise.
6372 * ui-file.c (stdio_file_read): Likewise.
6374 2016-04-12 Pedro Alves <palves@redhat.com>
6376 * event-loop.c: Include "ser-event.h".
6377 (async_signal_handlers_serial_event): New global.
6378 (async_signals_handler, initialize_async_signal_handlers): New
6380 (mark_async_signal_handler): Set
6381 async_signal_handlers_serial_event.
6382 (invoke_async_signal_handlers): Clear
6383 async_signal_handlers_serial_event.
6384 * event-top.c (async_init_signals): Call
6385 initialize_async_signal_handlers.
6387 2016-04-12 Pedro Alves <palves@redhat.com>
6389 * Makefile.in (SFILES): Add ser-event.c.
6390 (HFILES_NO_SRCDIR): Add ser-event.h.
6391 (COMMON_OBS): Add ser-event.o.
6392 * ser-event.c, ser-event.h: New files.
6393 * serial.c (new_serial): New function, factored out from
6394 (serial_fdopen_ops): ... this.
6395 (serial_open_ops_1): New function, factored out from
6396 (serial_open): ... this.
6397 (serial_open_ops): New function.
6398 * serial.h (struct serial): Forware declare.
6399 (serial_open_ops): New declaration.
6401 2016-04-12 Pedro Alves <palves@redhat.com>
6403 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
6404 Remove references to name.
6405 * serial.h (struct serial) <name>: Delete.
6407 2016-04-12 Pedro Alves <palves@redhat.com>
6409 * remote-fileio.c (sigint_fileio_token, remote_fio_no_longjmp):
6411 (async_remote_fileio_interrupt): Delete.
6412 (remote_fileio_ctrl_c_signal_handler): Don't call the async signal
6413 handler. Instead just always set the ctrl_c flag.
6414 (remote_fileio_reply): Clear remote_fio_ctrl_c_flag before
6415 re-enabling the SIGINT handler.
6416 (remote_fileio_func_open, remote_fileio_func_close)
6417 (remote_fileio_func_read, remote_fileio_func_write)
6418 (remote_fileio_func_lseek, remote_fileio_func_rename)
6419 (remote_fileio_func_unlink, remote_fileio_func_stat)
6420 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
6421 (remote_fileio_func_isatty, remote_fileio_func_system)
6422 (remote_fileio_request): Remove references to
6423 remote_fio_no_longjmp.
6424 (initialize_remote_fileio): Don't create an async signal handler.
6426 2016-04-12 Pedro Alves <palves@redhat.com>
6428 * event-top.c (stdin_event_handler): Call QUIT;
6429 (prompt_for_continue): Don't run with immediate_quit set.
6431 2016-04-12 Pedro Alves <palves@redhat.com>
6433 * tui/tui-io.c (tui_redisplay_readline): Check
6434 gdb_in_secondary_prompt_p instead of immediate_quit.
6435 * tui/tui.c: Include top.h.
6436 (tui_rl_startup_hook): Check gdb_in_secondary_prompt_p instead of
6439 2016-04-12 Pedro Alves <palves@redhat.com>
6441 * top.c (read_command_file): Inline command_loop here.
6442 (command_loop): Delete.
6444 2016-04-12 Pedro Alves <palves@redhat.com>
6446 * top.c: Include "gdb_select.h".
6447 (gdb_readline_no_editing): Wait for input with gdb_select instead
6448 of blocking in fgetc.
6449 (command_line_input): Don't set immediate_quit.
6451 2016-04-08 Martin Galvan <martin.galvan@tallertechnologies.com>
6453 * value.c (value_next): Make pass-by-reference parameters const-correct.
6454 (value_parent): Likewise.
6455 (value_enclosing_type): Likewise.
6456 (value_lazy): Likewise.
6457 (value_stack): Likewise.
6458 (value_embedded_offset): Likewise.
6459 (value_pointed_to_offset): Likewise.
6460 (value_raw_address): Likewise.
6461 (deprecated_value_modifiable): Likewise.
6462 (value_free_to_mark): Likewise.
6463 (value_release_to_mark): Likewise.
6464 (internalvar_name): Likewise.
6465 (readjust_indirect_value_type): Likewise.
6466 (value_initialized): Likewise.
6467 * value.h (value_next): Likewise.
6468 (value_parent): Likewise.
6469 (value_enclosing_type): Likewise.
6470 (value_lazy): Likewise.
6471 (value_stack): Likewise.
6472 (value_embedded_offset): Likewise.
6473 (value_pointed_to_offset): Likewise.
6474 (value_raw_address): Likewise.
6475 (deprecated_value_modifiable): Likewise.
6476 (value_free_to_mark): Likewise.
6477 (value_release_to_mark): Likewise.
6478 (internalvar_name): Likewise.
6479 (readjust_indirect_value_type): Likewise.
6480 (value_initialized): Likewise.
6482 2016-04-07 Yao Qi <yao.qi@linaro.org>
6484 * record-full.c (record_full_insert_breakpoint): Return
6485 early if entry on the address is found in
6486 record_full_breakpoints.
6488 2016-04-07 Yao Qi <yao.qi@linaro.org>
6490 * record-full.c (record_full_insert_breakpoint): Set
6491 bp_tgt->reqstd_address and bp_tgt->placed_size.
6493 2016-04-06 Don Breazeal <donb@codesourcery.com>
6495 * value.c (value_actual_type): Don't try to get rtti type
6496 of the value if it has been optimized out.
6497 (value_optimized_out): If a memory access error occurs,
6498 just check vaue->optimized_out.
6500 2016-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6502 Revert the previous commit adding unknown_v_replies_ok.
6504 2016-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6506 * remote.c (struct remote_state): New field unknown_v_replies_ok.
6507 (packet_config_support): Read it.
6508 (remote_start_remote): Set it.
6510 2016-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6512 * remote.c: Revert check-in by a mistake in the previous commit.
6514 2016-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6515 Pedro Alves <palves@redhat.com>
6517 * exec.c (exec_file_locate_attach): Print warning for unsupported
6518 target_pid_to_exec_file.
6519 * symfile-mem.c (add_vsyscall_page): Remove the "file" command
6522 2016-04-04 Simon Marchi <simon.marchi@ericsson.com>
6524 * cli/cli-decode.c (help_cmd_list): Fix function doc and remove
6527 2016-04-01 Artemiy Volkov <artemiyv@acm.org>
6530 * eval.c (evaluate_subexp_standard): Allow TYPE_CODE_ENUM to be
6531 the type of BINOP_REPEAT's second operand.
6533 2016-03-31 Yichao Yu <yyc1992@gmail.com>
6536 * jit.c (jit_breakpoint_re_set_internal): Return 0 if we already
6537 got the breakpoint at the right address.
6538 (jit_inferior_created): New function.
6539 (_initialize_jit): Install jit_inferior_created as
6540 inferior_created observer.
6542 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
6544 * NEWS: Mention support for tracepoints on powerpc*-linux.
6546 2016-03-31 Catalin Udma <catalin.udma@freescale.com>
6549 * python/python.c (execute_gdb_command): Use console uiout
6550 when executing gdb command.
6551 * utils.c (restore_ui_out_closure): New structure.
6552 (do_restore_ui_out): New function.
6553 (make_cleanup_restore_ui_out): Likewise.
6554 * utils.h (make_cleanup_restore_ui_out): Declare.
6556 2016-03-31 Pedro Alves <palves@redhat.com>
6558 * NEWS: Mention that support for "target m32rsdi", "target mips",
6559 "target pmon", "target ddb", "target rockhopper", and "target lsi"
6561 * Makefile.in (ALL_TARGET_OBS): Remove remote-m32r-sdi.o and
6563 (ALLDEPFILES): Remove remote-m32r-sdi.c and remote-mips.c.
6564 * configure.tgt: Remove all references to remote-m32r-sdi.o and
6566 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Delete
6568 * mips-tdep.h (deprecated_mips_set_processor_regs_hack): Delete
6570 * remote-m32r-sdi.c, remote-mips.c: Delete files.
6571 * symfile.c (generic_load, generic_load): Remove comments.
6573 2016-03-30 Yao Qi <yao.qi@linaro.org>
6575 * arm-tdep.c (arm_epilogue_frame_this_id): Check 'func' against
6578 2016-03-30 Yao Qi <yao.qi@linaro.org>
6580 * arm-tdep.c: (arm_make_epilogue_frame_cache): New function.
6581 (arm_epilogue_frame_this_id): New function.
6582 (arm_epilogue_frame_prev_register): New function.
6583 (arm_epilogue_frame_sniffer): New function.
6584 (arm_epilogue_frame_unwind): New.
6585 (arm_gdbarch_init): Append unwinder arm_epilogue_frame_unwind.
6587 2016-03-30 Yao Qi <yao.qi@linaro.org>
6589 * arm-tdep.c (arm_stack_frame_destroyed_p): Rename it ...
6590 (arm_stack_frame_destroyed_p_1): ... here. Don't call
6592 (arm_stack_frame_destroyed_p): Call
6593 thumb_stack_frame_destroyed_p and
6594 arm_stack_frame_destroyed_p_1.
6596 2016-03-30 Doug Evans <dje@google.com>
6598 * python/py-utils.c (host_string_to_python_string): New function.
6599 * python/python-internal.h (host_string_to_python_string): Declare it.
6600 * python/py-*.c (*): Update all calls to
6601 PyString_Decode (str, strlen (str), host_charset (), NULL);
6602 to use host_string_to_python_string instead.
6604 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
6606 * remote.c (remote_check_symbols): Allocate own buffer for reply.
6608 2016-03-29 Max Filippov <jcmvbkbc@gmail.com>
6610 * xtensa-tdep.c (xtensa_frame_cache): Change op1 type to LONGEST.
6611 Use safe_read_memory_integer instead of read_memory_integer.
6613 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
6615 * NEWS: Mention support for tracepoints on s390*-linux.
6617 2016-03-29 Don Breazeal <donb@codesourcery.com>
6619 * gdb/value.c (value_actual_type): Fix formatting issue.
6621 2016-03-23 Yao Qi <yao.qi@linaro.org>
6623 * gdbarch.sh (software_single_step): Remove comments.
6624 * gdbarch.h: Regenerated.
6626 2016-03-21 Yao Qi <yao.qi@linaro.org>
6628 * arm-tdep.c (arm_record_media): New.
6629 (arm_record_ld_st_reg_offset): Call arm_record_media.
6631 2016-03-21 Yao Qi <yao.qi@linaro.org>
6633 * arm-linux-tdep.c (arm_canonicalize_syscall): Canonicalize
6636 2016-03-18 Yao Qi <yao.qi@linaro.org>
6638 * sparc-tdep.c (sparc_software_single_step): Make it static.
6639 * sparc-tdep.h (sparc_software_single_step): Remove declaration.
6641 2016-03-18 Yao Qi <yao.qi@linaro.org>
6643 * spu-tdep.c (spu_software_single_step): Throw error when
6644 target_read_memory fails.
6646 2016-03-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6648 * linux-thread-db.c (check_pid_namespace_match): Extend the message.
6650 2016-03-17 Pedro Alves <palves@redhat.com>
6651 Don Breazeal <donb@codesourcery.com>
6654 * infcmd.c (notice_new_inferior): Use the 'leave_running' argument
6655 instead of checking the 'non_stop' global.
6656 * remote.c (remote_add_thread): New parameter 'executing'. Use it
6657 to set the new thread's executing state.
6658 (remote_notice_new_inferior): Rename parameter 'running' to
6659 'executing'. Always set the thread state to THREAD_RUNNING in
6660 non-stop mode, and to THREAD_STOPPED in all-stop mode. Pass
6661 EXECUTING to remote_add_thread and notice_new_inferior.
6662 (remote_update_thread_list): Update to pass executing state, not
6665 2016-03-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
6667 * syscalls/s390-linux.xml: Add NUMA syscalls and new syscalls up
6669 * syscalls/s390x-linux.xml: Likewise.
6671 2016-03-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
6673 * linux-record.c (record_mem_at_reg): New helper function.
6674 (record_linux_system_call): Exploit new helper function where
6677 2016-03-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
6679 * linux-record.c: Fix whitespace issues; tabify, remove trailing
6682 2016-03-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
6684 * linux-record.c (record_linux_system_call): Add missing return
6685 statements to handling of pipe and pipe2 syscalls.
6687 2016-03-16 Doug Evans <dje@google.com>
6689 * xml-tdesc.c (tdesc_start_enum): Fix c++ build.
6691 2016-03-16 Yao Qi <yao.qi@linaro.org>
6693 * arm-linux-tdep.c (arm_linux_init_abi): Fix
6694 arm_linux_record_tdep.arg1, arm_linux_record_tdep.arg2 and
6695 arm_linux_record_tdep.arg3. Set arm_linux_record_tdep.arg4,
6696 arm_linux_record_tdep.arg5, arm_linux_record_tdep.arg6, and
6697 arm_linux_record_tdep.arg7.
6699 2016-03-15 Keith Seitz <keiths@redhat.com>
6701 PR breakpoints/18303
6702 * cp-namespace.c (cp_lookup_bare_symbol): Change assertion to
6703 look for "::" instead of simply ":".
6704 (cp_search_static_and_baseclasses): Return null_block_symbol for
6707 * cp-support.c (cp_find_first_component_aux): Do not return
6708 a prefix length for ':' unless the next character is also ':'.
6710 2016-03-15 Doug Evans <dje@google.com>
6712 * features/aarch64-core.xml (cpsr_flags): New flags type.
6714 * features/aarch64.c: Regenerate.
6716 2016-03-15 Doug Evans <dje@google.com>
6718 * features/i386/32bit-core.xml (i386_eflags): Remove "end" spec.
6719 * features/i386/32bit-sse.xml (i386_eflags): Ditto.
6720 * features/i386/64bit-core.xml (i386_eflags): Ditto.
6721 * features/i386/64bit-sse.xml (i386_eflags): Ditto.
6722 * features/i386/x32-core.xml (i386_eflags): Ditto.
6724 2016-03-15 Doug Evans <dje@google.com>
6725 Wei-cheng Wang <cole945@gmail.com>
6727 Extend flags to support multibit and enum bitfields.
6728 * NEWS: Document new features.
6729 * c-typeprint.c (c_type_print_varspec_prefix): Handle TYPE_CODE_FLAGS.
6730 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
6731 * gdbtypes.c (arch_flags_type): Don't assume all fields are one bit.
6732 (append_flags_type_field): New function.
6733 (append_flags_type_flag): Call it.
6734 * gdbtypes.h (append_flags_type_field): Declare.
6735 * target-descriptions.c (struct tdesc_type_flag): Delete.
6736 (enum tdesc_type_kind) <TDESC_TYPE_BOOL>: New enum value.
6737 (enum tdesc_type_kind) <TDESC_TYPE_ENUM>: Ditto.
6738 (struct tdesc_type) <u.f>: Delete.
6739 (tdesc_predefined_types): Add "bool".
6740 (tdesc_predefined_type): New function.
6741 (tdesc_gdb_type): Handle TDESC_TYPE_BOOL, TDESC_TYPE_ENUM.
6742 Update TDESC_TYPE_FLAGS support.
6743 (tdesc_free_type): Handle TDESC_TYPE_ENUM. Update TDESC_TYPE_FLAGS.
6744 (tdesc_create_flags): Update.
6745 (tdesc_create_enum): New function.
6746 (tdesc_add_field): Initialize start,end to -1.
6747 (tdesc_add_typed_bitfield): New function.
6748 (tdesc_add_bitfield): Call it.
6749 (tdesc_add_flag): Allow TDESC_TYPE_STRUCT. Update.
6750 (tdesc_add_enum_value): New function.
6751 (maint_print_c_tdesc_cmd): Fold TDESC_TYPE_FLAGS support into
6752 TDESC_TYPE_STRUCT. Handle TDESC_TYPE_ENUM.
6753 * target-descriptions.h (tdesc_create_enum): Declare.
6754 (tdesc_add_typed_bitfield, tdesc_add_enum_value): Declare.
6755 * valprint.c (generic_val_print_enum_1): New function.
6756 (generic_val_print_enum): Call it.
6757 (val_print_type_code_flags): Make static. Handle multibit bitfields
6759 * valprint.h (val_print_type_code_flags): Delete.
6760 * xml-tdesc.c (struct tdesc_parsing_data) <current_type_is_flags>:
6761 Delete. All uses removed.
6762 (tdesc_start_enum): New function.
6763 (tdesc_start_field): Handle multibit and enum bitfields.
6764 (tdesc_start_enum_value): New function.
6765 (enum_value_attributes, enum_children, enum_attributes): New static
6767 (feature_children): Add "enum".
6768 * features/gdb-target.dtd (enum, evalue): New elements.
6770 2016-03-15 Doug Evans <dje@google.com>
6772 * target-descriptions.c (struct tdesc_type) <u.u.size>: Change type
6773 from LONGEST to int.
6774 (struct tdesc_type) <u.f.size>: Ditto.
6775 (tdesc_set_struct_size): Change type of "size" arg from LONGEST
6776 to int. Add assertion size > 0.
6777 (tdesc_create_flags): Ditto.
6778 * target-descriptions.h (tdesc_set_struct_size): Update.
6779 (tdesc_create_flags): Update.
6780 * xml-tdesc.c (MAX_FIELD_SIZE, MAX_FIELD_BITSIZE): New macros.
6781 (MAX_VECTOR_SIZE): New macro.
6782 (tdesc_start_struct): Catch conversion errors from LONGEST to int.
6783 (tdesc_start_flags, tdesc_start_field, tdesc_start_vector): Ditto.
6785 2016-03-15 Doug Evans <dje@google.com>
6787 * target-descriptions.c (maint_print_c_tdesc_cmd): Use "type" for
6788 TYPE_CODE_FLAGS instead of "field_type", for consistency.
6789 * features/i386/amd64-avx-linux.c: Regenerate.
6790 * features/i386/amd64-avx.c: Regenerate.
6791 * features/i386/amd64-avx512-linux.c: Regenerate.
6792 * features/i386/amd64-avx512.c: Regenerate.
6793 * features/i386/amd64-linux.c: Regenerate.
6794 * features/i386/amd64-mpx-linux.c: Regenerate.
6795 * features/i386/amd64-mpx.c: Regenerate.
6796 * features/i386/amd64.c: Regenerate.
6797 * features/i386/i386-avx-linux.c: Regenerate.
6798 * features/i386/i386-avx.c: Regenerate.
6799 * features/i386/i386-avx512-linux.c: Regenerate.
6800 * features/i386/i386-avx512.c: Regenerate.
6801 * features/i386/i386-linux.c: Regenerate.
6802 * features/i386/i386-mmx-linux.c: Regenerate.
6803 * features/i386/i386-mmx.c: Regenerate.
6804 * features/i386/i386-mpx-linux.c: Regenerate.
6805 * features/i386/i386-mpx.c: Regenerate.
6806 * features/i386/i386.c: Regenerate.
6807 * features/i386/x32-avx-linux.c: Regenerate.
6808 * features/i386/x32-avx.c: Regenerate.
6809 * features/i386/x32-avx512-linux.c: Regenerate.
6810 * features/i386/x32-avx512.c: Regenerate.
6811 * features/i386/x32-linux.c: Regenerate.
6812 * features/i386/x32.c: Regenerate.
6814 2016-03-15 Pedro Alves <palves@redhat.com>
6817 * linux-thread-db.c (try_thread_db_load_1): Leave
6818 info->td_ta_thr_iter_p NULL iff debugging a live process and we
6820 (find_new_threads_once): Assert that we have a non-NULL
6821 info->td_ta_thr_iter_p instead of checking whether the target has
6824 2016-03-15 Pedro Alves <palves@redhat.com>
6827 * infrun.c (displaced_step_prepare): Also disable displaced
6828 stepping on NOT_SUPPORTED_ERROR.
6829 * linux-tdep.c (linux_displaced_step_location): If reading auxv
6830 fails, throw NOT_SUPPORTED_ERROR instead of generic error.
6832 2016-03-13 Marcin Kościelnicki <koriakin@0x04.net>
6834 * s390-linux-tdep.c (s390_gen_return_address): New function.
6835 (s390_gdbarch_init): Fill gen_return_address hook.
6837 2016-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
6839 * symmisc.c (maintenance_info_line_tables): New function.
6840 (maintenance_print_one_line_table): New function.
6841 (_initialize_symmisc): Register 'maint info line-table' command.
6842 * NEWS: Mention new command.
6844 2016-03-11 Marcin Kościelnicki <koriakin@0x04.net>
6846 * s390-linux-tdep.c (s390_ax_pseudo_register_collect): New function.
6847 (s390_ax_pseudo_register_push_stack): New function.
6848 (s390_gdbarch_init): Fill ax_pseudo_register_collect and
6849 ax_pseudo_register_push_stack hooks.
6851 2016-03-10 Simon Marchi <simon.marchi@polymtl.ca>
6853 * data-directory/Makefile.in (PYTHON_FILE_LIST): Install
6854 gdb/function/as_string.py.
6855 * python/lib/gdb/function/as_string.py: New file.
6856 * NEWS: Mention the new $_as_string function.
6858 2016-03-09 Jose E. Marchesi <jose.marchesi@oracle.com>
6860 * target.h: Fix doc string of target_can_use_hardware_watchpoint.
6862 2016-03-09 Pedro Alves <palves@redhat.com>
6864 * event-top.c (more_to_come): Delete.
6865 (struct readline_input_state): Delete.
6866 (readline_input_state): Delete.
6867 (get_command_line_buffer): New function.
6868 (command_handler): Update comments. Don't handle NULL commands
6869 here. Do not execute commented lines.
6870 (command_line_append_input_line): New function.
6871 (handle_line_of_input): New function, partly based on
6872 command_line_handler and command_line_input.
6873 (command_line_handler): Rewrite.
6874 * event-top.h (command_handler): New declaration.
6875 (command_loop): Defer command execution to command_handler.
6876 (command_line_input): Update comments. Simplify, using struct
6877 buffer and handle_line_of_input.
6878 * top.h (struct buffer): New forward declaration.
6879 (handle_line_of_input): New declaration.
6881 2016-03-09 Pedro Alves <palves@redhat.com>
6883 * event-top.c (command_line_handler): Use xfree + xstrdup instead
6884 of xrealloc + strcpy.
6885 * main.c (captured_main): Use xstrdup instead of xmalloc plus
6887 * top.c (saved_command_line): Rewrite comment.
6888 (saved_command_line_size): Delete.
6889 (command_line_input): Use xfree + xstrdup instead of xrealloc +
6891 * top.h (saved_command_line_size): Delete declaration.
6893 2016-03-09 Pedro Alves <palves@redhat.com>
6895 * event-top.c: Include buffer.h.
6896 (gdb_readline_no_editing_callback): Use struct buffer instead
6899 2016-03-09 Pedro Alves <palves@redhat.com>
6901 * common/buffer.h (buffer_grow_char): New function.
6902 * top.c: Include buffer.h.
6903 (gdb_readline_no_editing): Rename 'prompt_arg' parameter to
6904 'prompt'. Use struct buffer instead of xrealloc.
6906 2016-03-09 Pedro Alves <palves@redhat.com>
6908 * defs.h (gdb_readline): Delete declaration.
6909 * top.c (gdb_readline): Rename to ...
6910 (gdb_readline_no_editing): ... this, and make static.
6912 2016-03-09 Pedro Alves <palves@redhat.com>
6914 * utils.c (prompt_for_continue): Update comments.
6916 2016-03-09 Pedro Alves <palves@redhat.com>
6918 * event-top.c (async_annotation_suffix): Delete.
6919 (top_level_prompt, command_line_handler): Don't use
6920 'async_annotation_suffix' and simplify.
6921 * event-top.h (async_annotation_suffix): Delete declaration.
6922 (init_main): Remove reference to 'async_annotation_suffix'.
6924 2016-03-09 Pedro Alves <palves@redhat.com>
6926 * event-top.c (gdb_readline2): Rename to ...
6927 (gdb_readline_no_editing_callback): ... this.
6928 (change_line_handler, stdin_event_handler)
6929 (gdb_setup_readline): Adjust.
6930 * event-top.h (gdb_readline2): Rename to ...
6931 (gdb_readline_no_editing_callback): ... this, and move closer to
6932 other readline-related declarations.
6933 * mi/mi-interp.c (mi_interpreter_resume): Adjust.
6935 2016-03-09 Pedro Alves <palves@redhat.com>
6937 * top.c (window_hook): Delete.
6938 (command_loop): Remove references to window_hook.
6940 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
6942 * corefile.c (safe_read_memory_unsigned_integer): New function.
6943 * gdbcore.h (safe_read_memory_unsigned_integer): New prototype.
6944 * rs6000-tdep.c (rs6000_frame_cache): Read backchain as unsigned.
6946 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
6948 * rs6000-tdep.c: Add "ax.h" and "ax-gdb.h" includes.
6949 (rs6000_gen_return_address): New function.
6950 (rs6000_gdbarch_init): Wire in the above.
6952 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
6954 * rs6000-tdep.c (rs6000_ax_pseudo_register_collect): New function.
6955 (rs6000_gdbarch_init): Wire in the above.
6957 2016-03-09 Andreas Arnez <arnez@linux.vnet.ibm.com>
6959 * s390-linux-tdep.c (s390_analyze_prologue): Ignore BRC and BRCL
6960 instructions that do nothing or are conditional traps.
6962 2016-03-09 Andreas Arnez <arnez@linux.vnet.ibm.com>
6964 * s390-linux-tdep.c (s390_prologue_frame_unwind_cache): Store
6965 frame func's PC in info->func before any other failure can occur.
6966 (s390_frame_this_id): Use frame_id_build_unavailable_stack if
6967 info->func has been filled out.
6969 2016-03-09 Pedro Alves <palves@redhat.com>
6971 * osabi.c (gdb_osabi_names): Avoid spaces in osabi names.
6973 2016-03-09 Pedro Alves <palves@redhat.com>
6975 * frv-tdep.c (frv_gdbarch_init): Handle bfd_mach_fr300.
6977 2016-03-09 Pedro Alves <palves@redhat.com>
6979 * cris-tdep.c (cris_gdbarch_init): Return 0 if the info's byte
6980 order is BFD_ENDIAN_BIG or if the cris version is unsupported.
6982 2016-03-09 Pedro Alves <palves@redhat.com>
6984 * doublest.c: Extend comments.
6985 (floatformat_to_doublest, floatformat_from_doublest): Copy the
6986 floatformat's total size, not the host type's size.
6988 2016-03-09 Pedro Alves <palves@redhat.com>
6990 * doublest.c (floatformat_totalsize_bytes): New function.
6991 (floatformat_from_type): Assert that the type's length is at least
6992 as long as the floatformat's totalsize.
6993 * doublest.h (floatformat_totalsize_bytes): New declaration.
6994 * gdbtypes.c (arch_float_type): Assert that the type's length is
6995 at least as long as the floatformat's totalsize.
6997 2016-03-09 Pedro Alves <palves@redhat.com>
6999 * hppa-linux-tdep.c (hppa_linux_init_abi): Set the long double
7000 format to floatformats_ieee_double.
7002 2016-03-07 Pedro Alves <palves@redhat.com>
7004 * mips-tdep.c (mips_gdbarch_init): Check whether info.abfd is NULL
7005 before calling bfd_get_flavour.
7007 2016-03-05 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
7009 * avr-tdep.c (AVR_LAST_ARG_REGNUM): Define.
7010 (avr_push_dummy_call): Correct last needed argument register.
7011 Write MSB of argument into register and subsequent bytes into
7012 other registers in decreasing order.
7014 2016-03-04 Yao Qi <yao.qi@linaro.org>
7016 * arm-tdep.c (arm_record_vdata_transfer_insn): Simplify the
7017 condition check. Record the right D register number.
7019 2016-03-04 Yao Qi <yao.qi@linaro.org>
7021 * arm-tdep.c (arm_record_extension_space): Remove code
7022 printing "Process record does not support".
7023 (arm_record_data_proc_misc_ld_str): Likewise.
7024 (decode_insn): Call arm_record_extension_space if condition
7025 is 0xf. Call arm_record_unsupported_insn if ret isn't
7026 ARM_RECORD_SUCCESS. Use 'ret' instead of 'insn_id' to hold
7027 the value of thumb2_record_decode_insn_handler.
7029 2016-03-04 Simon Marchi <simon.marchi@ericsson.com>
7031 * features/feature_to_c.sh: Print the help when passing no
7034 2016-03-02 Bernhard Heckel <bernhard.heckel@intel.com>
7036 * MAINTAINERS (Write After Approval): Add Bernhard Heckel.
7038 2016-03-02 Bernhard Heckel <bernhard.heckel@intel.com>
7040 * dwarf2read.c (new_symbol_full): Fix detection of gfortran compilers.
7042 2016-03-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
7044 * s390-linux-tdep.c (s390_backchain_frame_unwind_cache): Avoid
7045 exception when attempting to access the inferior's backchain.
7047 2016-02-29 Yao Qi <yao.qi@linaro.org>
7049 * aarch64-linux-tdep.c (aarch64_canonicalize_syscall): Support
7050 eventfd2, eventfd2, dup3, inotify_init1, fallocate and pipe2.
7051 Return gdb_sys_epoll_create1 instead of gdb_sys_epoll_create
7052 for aarch64_sys_epoll_create1.
7054 2016-02-29 Yao Qi <yao.qi@linaro.org>
7056 * linux-record.h (enum gdb_syscall) <gdb_sys_fallocate>: New.
7057 <gdb_sys_eventfd2, gdb_sys_epoll_create1, gdb_sys_dup3>: New.
7058 <gdb_sys_pipe2, gdb_sys_inotify_init1>: New.
7059 * linux-record.c (record_linux_system_call): Handle them.
7061 2016-02-28 Iain Buclaw <ibuclaw@gdcproject.org>
7063 * d-namespace.c (d_lookup_symbol_imports): Avoid recursive lookups from
7066 2016-02-26 Keith Seitz <keiths@redhat.com>
7068 * rs6000-tdep.c (rs6000_frame_cache): Explicitly cast return result
7069 to avoid invalid conversion from void *.
7071 2016-02-26 Yao Qi <yao.qi@linaro.org>
7073 * arm-tdep.c (arm_record_exreg_ld_st_insn): Set 'single_reg'
7074 per bit 8. Check bit 20 instead of bit 4 for VMOV
7075 instruction. Record D registers for instructions changing
7076 S registers. Change of the order of length and address
7077 in record_buf_mem array.
7079 2016-02-26 Yao Qi <yao.qi@linaro.org>
7081 * arm-tdep.c (thumb_record_ld_st_reg_offset): Fix the register
7084 2016-02-25 Doug Evans <dje@google.com>
7086 * remote-m32r-sdi.c (recv_char_data): Initialize val to avoid
7088 (recv_long_data): Ditto.
7090 2016-02-25 Simon Marchi <simon.marchi@ericsson.com>
7092 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault):
7093 Initialize variables.
7095 2016-02-25 Antoine Tremblay <antoine.tremblay@ericsson.com>
7097 * ax-general.c (ax_reg): Call gdbarch_remote_register_number.
7098 (ax_reg_mask): Likewise.
7100 2016-02-24 Pedro Alves <palves@redhat.com>
7102 * linux-nat.c (save_sigtrap) Delete.
7103 (stop_wait_callback): Call save_stop_reason instead of
7105 (check_stopped_by_breakpoint): Rename to ...
7106 (save_stop_reason): ... this. Bits of save_sigtrap folded here.
7107 Use GDB_ARCH_IS_TRAP_HWBKPT and handle ambiguous
7108 GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT. Factor out
7109 common code between the USE_SIGTRAP_SIGINFO and
7110 !USE_SIGTRAP_SIGINFO blocks.
7111 (linux_nat_filter_event): Call save_stop_reason instead of
7113 * nat/linux-ptrace.h: Check for both SI_KERNEL and TRAP_BRKPT
7115 * nat/linux-ptrace.h: Fix "TRAP_HWBPT" typo in x86 table. Add
7116 comments on MIPS behavior.
7117 (GDB_ARCH_IS_TRAP_HWBKPT): Define for all archs.
7119 2016-02-24 Marcin Kościelnicki <koriakin@0x04.net>
7121 * rs6000-tdep.c (rs6000_frame_cache): Initialize frame and pc to 0
7122 to avoid spurious warnings.
7124 2016-02-24 Gary Benson <gbenson@redhat.com>
7126 * exec.c (exec_file_locate_attach): Do not attempt to
7127 locate main executable locally if not found in sysroot.
7129 2016-02-24 Joel Brobecker <brobecker@adacore.com>
7133 2016-02-24 Wei-cheng Wang <cole945@gmail.com>
7135 * rs6000-tdep.c (rs6000_frame_cache, rs6000_frame_this_id): Handle
7136 unavailable PC/SP to build unavailable frame.
7138 2016-02-23 Doug Evans <dje@google.com>
7140 Extend "skip" command to support -file, -gfile, -function, -rfunction.
7141 * NEWS: Document new features.
7142 * skip.c: #include "fnmatch.h", "gdb_regex.h".
7143 (skiplist_entry) <file>: Renamed from filename.
7144 <function>: Renamed from function_name.
7145 <file_is_glob, function_is_regexp>: New members.
7146 <compiled_function_regexp, compiled_function_regexp_is_valid>:
7148 (make_skip_entry): New function.
7149 (free_skiplist_entry, free_skiplist_entry_cleanup): New functions.
7150 (make_free_skiplist_entry_cleanup): New function.
7151 (skip_file_command): Update.
7152 (skip_function, skip_function_command): Update.
7153 (compile_skip_regexp): New functions.
7154 (skip_command): Add support for new options.
7155 (skip_info): Update.
7156 (skip_file_p, skip_gfile_p): New functions.
7157 (skip_function_p, skip_rfunction_p): New functions.
7158 (function_name_is_marked_for_skip): Update and simplify.
7159 (_initialize_step_skip): Update.
7160 * symtab.c: #include "fnmatch.h".
7161 (compare_glob_filenames_for_search): New function.
7162 * symtab.h (compare_glob_filenames_for_search): Declare.
7163 * utils.c (count_path_elements): New function.
7164 (strip_leading_path_elements): New function.
7165 * utils.h (count_path_elements): Declare.
7166 (strip_leading_path_elements): Declare.
7168 2016-02-23 Simon Marchi <simon.marchi@ericsson.com>
7170 * arm-tdep.c (arm_decode_svc_copro): Remove "to" parameter.
7171 (thumb_process_displaced_insn): Likewise.
7172 (arm_process_displaced_insn): Adjust calls.
7174 2016-02-23 Yao Qi <yao.qi@linaro.org>
7176 * aarch64-linux-tdep.c (enum aarch64_syscall) <aarch64_sys_mknod>:
7178 <aarch64_sys_mkdir, aarch64_sys_unlink, aarch64_sys_symlink>: Remove.
7179 <aarch64_sys_link, aarch64_sys_rename, aarch64_sys_faccess>: Remove.
7180 <aarch64_sys_mknodat, aarch64_sys_mkdirat>: New.
7181 <aarch64_sys_unlinkat, aarch64_sys_symlinkat>: New.
7182 <aarch64_sys_linkat, aarch64_sys_renameat>: New.
7183 <aarch64_sys_faccessat>: New.
7184 <aarch64_sys_open, aarch64_sys_readlink, aarch64_sys_fstatat>: Remove.
7185 <aarch64_sys_openat, aarch64_sys_readlinkat>: New.
7186 <aarch64_sys_newfstatat>: New.
7187 (UNSUPPORTED_SYSCALL_MAP): New macro.
7188 (aarch64_canonicalize_syscall): Add missing syscalls.
7190 2016-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7192 * gdb-gdb.py (class TypeFlagsPrinter): Use parentheses for print.
7194 2016-02-22 Yao Qi <yao.qi@linaro.org>
7196 * arm-tdep.c: Fix code format issues.
7198 2016-02-21 Iain Buclaw <ibuclaw@gdcproject.org>
7200 * d-namespace.c (d_lookup_symbol_imports): Remove argument
7201 'search_parents'. All callers updated.
7203 2016-02-18 Marcin Kościelnicki <koriakin@0x04.net>
7205 * s390-linux-tdep.c (s390_guess_tracepoint_registers): New function.
7206 (s390_gdbarch_init): Fill guess_tracepoint_registers hook.
7208 2016-02-18 Walfred Tedeschi <walfred.tedeschi@intel.com>
7210 * NEWS: Add entry for bound violation.
7211 * amd64-linux-tdep.c (amd64_linux_init_abi_common):
7212 Add handler for segmentation fault.
7213 * gdbarch.sh (handle_segmentation_fault): New.
7214 * gdbarch.c: Regenerate.
7215 * gdbarch.h: Regenerate.
7216 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): New.
7217 (SIG_CODE_BONDARY_FAULT): New define.
7218 (i386_linux_init_abi): Use i386_mpx_bound_violation_handler.
7219 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault) New.
7220 * i386-tdep.c (i386_mpx_enabled): Add as external.
7221 * i386-tdep.c (i386_mpx_enabled): Add as external.
7222 * infrun.c (handle_segmentation_fault): New function.
7223 (print_signal_received_reason): Use handle_segmentation_fault.
7225 2016-02-18 Marcin Kościelnicki <koriakin@0x04.net>
7227 * arch-utils.c (default_guess_tracepoint_registers): New function.
7228 * arch-utils.h (default_guess_tracepoint_registers): New prototype.
7229 * gdbarch.c: Regenerate.
7230 * gdbarch.h: Regenerate.
7231 * gdbarch.sh: Add guess_tracepoint_registers hook.
7232 * tracefile.c (tracefile_fetch_registers): Use the new gdbarch hook.
7234 2016-02-17 Gary Benson <gbenson@redhat.com>
7236 * exec.c (exec_file_locate_attach): Add missing cleanup.
7238 2016-02-16 Don Breazeal <donb@codesourcery.com>
7241 * remote.c (remove_new_fork_children): Check for pending
7242 fork status in thread_info.suspend.
7244 2016-02-16 Yao Qi <yao.qi@linaro.org>
7246 * arm-linux-tdep.c (arm_linux_software_single_step): Assign
7249 2016-02-16 Yao Qi <yao.qi@linaro.org>
7251 * arch/arm-get-next-pcs.h (struct arm_get_next_pcs_ops)
7252 <syscall_next_pc>: Remove argument PC. Callers updated.
7253 * arm-linux-tdep.c (arm_linux_get_next_pcs_syscall_next_pc):
7254 Remove argument PC. Get pc from regcache_read_pc.
7255 * arm-tdep.c (arm_get_next_pcs_syscall_next_pc): Remove
7258 2016-02-15 Yao Qi <yao.qi@linaro.org>
7260 * aarch64-tdep.c (aarch64_analyze_prologue): Remove "0x".
7262 2016-02-12 Yao Qi <yao.qi@linaro.org>
7264 * arch/arm-linux.c (arm_linux_get_next_pcs_fixup): Calculate
7265 nextpc according to instruction.
7267 2016-02-12 Yao Qi <yao.qi@linaro.org>
7269 * arch/arm-get-next-pcs.c (arm_get_next_pcs): Call
7270 self->ops->fixup if it isn't NULL.
7271 * arch/arm-get-next-pcs.h: Include gdb_vecs.h.
7272 (struct arm_get_next_pcs_ops) <fixup>: New field.
7273 * arch/arm-linux.c: Include common-regcache.h and
7274 arch/arm-get-next-pcs.h.
7275 (arm_linux_get_next_pcs_fixup): New function.
7276 * arch/arm-linux.h (arm_linux_get_next_pcs_fixup): Declare.
7277 * arm-linux-tdep.c (arm_linux_get_next_pcs_ops): Initialize
7278 it with arm_linux_get_next_pcs_fixup.
7279 (arm_linux_software_single_step): Move code to
7280 arm_linux_get_next_pcs_fixup.
7281 * arm-tdep.c (arm_get_next_pcs_ops): Initialize it.
7283 2016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
7285 * xml-tdesc.c (target_fetch_description_xml) [!HAVE_LIBEXPAT]: Warn
7288 2016-02-12 Markus Metzger <markus.t.metzger@intel.com>
7290 * frame.h (skip_tailcall_frames): Update comment.
7291 * frame.c (skip_artificial_frames, skip_tailcall_frames): Return NULL
7292 if only artificial frames are found. Update comment.
7293 (frame_unwind_caller_id): Handle NULL return.
7294 (frame_unwind_caller_pc, frame_unwind_caller_arch): Assert that
7295 skip_artificial_frames does not return NULL.
7296 (frame_pop): Add an error if only tailcall frames are found.
7297 * infcmd.c (finish_command): Move skip_tailcall_frames call into
7298 forward-execution case. Add an error if only tailcall frames are
7301 2016-02-12 Markus Metzger <markus.t.metzger@intel.com>
7303 * stack.c (frame_info): Check frame_unwind_caller_id.
7305 2016-02-12 Markus Metzger <markus.t.metzger@intel.com>
7307 * frame.h (skip_tailcall_frames): New.
7308 * frame.c (skip_tailcall_frames): New.
7309 (frame_pop): Call skip_tailcall_frames.
7310 * infcmd.c (finish_command): Call skip_tailcall_frames.
7312 2016-02-11 Pedro Alves <palves@redhat.com>
7314 * Makefile.in (check-parallel): New rule.
7316 2016-02-11 Simon Marchi <simon.marchi@ericsson.com>
7318 * arm-tdep.c (arm_skip_prologue): Remove unused variables.
7319 (arm_analyze_prologue): Likewise.
7320 (arm_scan_prologue): Likewise.
7321 (arm_m_exception_prev_register): Likewise.
7322 (arm_copy_block_xfer): Likewise.
7323 (thumb2_copy_block_xfer): Likewise.
7324 (arm_decode_miscellaneous): Likewise.
7325 (arm_decode_ld_st_word_ubyte): Likewise.
7326 (arm_decode_svc_copro): Likewise.
7327 (thumb2_decode_svc_copro): Likewise.
7328 (thumb_copy_16bit_ldr_literal): Likewise.
7329 (thumb_copy_pop_pc_16bit): Likewise.
7330 (decode_thumb_32bit_ld_mem_hints): Likewise.
7331 (arm_show_force_mode): Likewise.
7332 (_initialize_arm_tdep): Likewise.
7333 (arm_record_strx): Likewise.
7334 (arm_record_extension_space): Likewise.
7335 (arm_record_data_proc_misc_ld_str): Likewise.
7336 (arm_record_exreg_ld_st_insn): Likewise.
7337 (arm_record_vfp_data_proc_insn): Likewise.
7338 (arm_record_coproc_data_proc): Likewise.
7339 (thumb_record_misc): Likewise.
7340 (thumb_record_ldm_stm_swi): Likewise.
7341 (thumb2_record_ld_st_dual_ex_tbb): Likewise.
7342 (thumb2_record_ld_mem_hints): Likewise.
7343 (thumb2_record_lmul_lmla_div): Likewise.
7344 (thumb2_record_asimd_struct_ld_st): Likewise.
7345 (arm_process_record): Likewise.
7347 2016-02-11 Simon Marchi <simon.marchi@ericsson.com>
7349 * arm-tdep.c (arm_displaced_step_copy_insn): Remove.
7350 (ARM displaced stepping support): Remove reference to
7351 arm_displaced_step_copy_insn in comment.
7352 * arm-tdep.h (arm_displaced_step_copy_insn): Remove.
7353 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Remove
7354 reference to arm_displaced_step_copy_insn in comment.
7356 2016-02-11 Simon Marchi <simon.marchi@ericsson.com>
7358 * arm-tdep.c (thumb_copy_unmodified_16bit): Change type of insn.
7359 (thumb_copy_b): Likewise.
7360 (arm_decode_b_bl_ldmstm): Likewise.
7361 (thumb_copy_16bit_ldr_literal): Likewise.
7362 (thumb_copy_pop_pc_16bit): Likewise.
7364 2016-02-11 Antoine Tremblay <antoine.tremblay@ericsson.com>
7366 * tracepoint.c (encode_actions_1): Use target_gdbarch () rather
7369 2016-02-10 Marcin Kościelnicki <koriakin@0x04.net>
7371 * tracefile-tfile.c (trace_tdesc): New static variable.
7372 (tfile_open): Clear trace_tdesc, call target_find_description.
7373 (tfile_interp_line): Recognize tdesc lines.
7374 (tfile_close): Clear trace_tdesc.
7375 (tfile_xfer_partial_features): New function.
7376 (tfile_xfer_partial): Call tfile_xfer_partial_features.
7377 (tfile_append_tdesc_line): New function.
7379 2016-02-10 Marcin Kościelnicki <koriakin@0x04.net>
7381 * ctf.c (ctf_write_tdesc): New function.
7382 (ctf_write_ops): Wire in ctf_write_tdesc.
7383 * tracefile-tfile.c (tfile_write_tdesc): New function.
7384 (tfile_write_ops): Wire in tfile_write_tdesc.
7385 * tracefile.c (trace_save): Call write_tdesc method.
7386 * tracefile.h (struct trace_file_write_ops): Add write_tdesc method.
7387 * xml-tdesc.c (target_fetch_description_xml): New function.
7388 * xml-tdesc.h: Add target_fetch_description_xml prototype.
7390 2016-02-10 Simon Marchi <simon.marchi@ericsson.com>
7392 * arm-tdep.c (arm_copy_extra_ld_st): Fix "unpriveleged" typo.
7393 (arm_decode_dp_misc): Likewise.
7395 2016-02-10 Marcin Kościelnicki <koriakin@0x04.net>
7397 * amd64-tdep.c (amd64_ax_pseudo_register_collect): New function.
7398 (amd64_init_abi): Fill ax_pseudo_register_collect hook.
7399 * gdb/i386-tdep.c (i386_pseudo_register_read_into_value): Remove
7401 (i386_pseudo_register_write): Ditto.
7402 (i386_ax_pseudo_register_collect): New function.
7403 (i386_gdbarch_init): Fill ax_pseudo_register_collect hook.
7404 * i386-tdep.h: Add i386_ax_pseudo_register_collect prototype.
7406 2016-02-10 Marcin Kościelnicki <koriakin@0x04.net>
7408 * tracefile-tfile.c (tfile_fetch_registers): Use g packet order
7409 instead of gdb order.
7411 2016-02-10 Marcin Kościelnicki <koriakin@0x04.net>
7413 * tracefile-tfile.c (tfile_fetch_registers): Fix off-by-one in bounds
7416 2016-02-10 Joel Brobecker <brobecker@adacore.com>
7418 * NEWS: Create a new section for the next release branch.
7419 Rename the section of the current branch, now that it has
7422 2016-02-10 Joel Brobecker <brobecker@adacore.com>
7424 GDB 7.11 branch created (9ef9e6a6a0dd8f948708cb67c9afcfd0be40cb0a):
7425 * version.in: Bump version to 7.11.50.DATE-git.
7427 2016-02-09 Keith Seitz <keiths@redhat.com>
7429 PR breakpoints/19546
7430 * breakpoint.c (breakpoint_event_location_empty_p): New function.
7431 (update_breakpoints_after_exec, bkpt_re_set): Use this new function
7432 instead of event_location_empty_p.
7434 2016-02-09 Keith Seitz <keiths@redhat.com>
7436 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Use
7437 string_to_event_location_basic instead of string_to_event_location.
7439 2016-02-09 Keith Seitz <keiths@redhat.com>
7441 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Skip
7442 leading whitespace and use string_to_event_location_basic instead
7443 of new_linespec_location.
7445 2016-02-09 Keith Seitz <keiths@redhat.com>
7448 * python/py-breakpoint.c (bppy_init): Use
7449 string_to_event_location_basic instead of new_linespec_location.
7451 2016-02-09 Keith Seitz <keiths@redhat.com>
7453 * location.c (string_to_explicit_location): Note that "-p" is
7454 reserved for probe locations and return NULL for any input
7455 that starts with that.
7456 (string_to_event_location): Move "legacy" linespec code to ...
7457 (string_to_event_location_basic): ... here.
7458 * location.h (string_to_event_location): Update comment.
7459 (string_to_event_location_basic): New function.
7461 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
7463 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
7464 to AC_OUTPUT. Remove "exit 0" at the end.
7465 * configure: Regenerate.
7467 2016-02-09 Pedro Alves <palves@redhat.com>
7469 PR breakpoints/19548
7470 * breakpoint.c (create_overlay_event_breakpoint): Don't update
7471 global location list here.
7472 (create_longjmp_master_breakpoint)
7473 (create_std_terminate_master_breakpoint)
7474 (create_exception_master_breakpoint, create_jit_event_breakpoint)
7475 (update_breakpoint_locations):
7476 (breakpoint_re_set): Update global location list after all
7477 breakpoints are re-set.
7479 2016-02-08 Simon Marchi <simon.marchi@ericsson.com>
7481 * remote.c (remote_register_number_and_offset): Remove unused
7483 (remote_thread_always_alive): Likewise.
7484 (remote_update_thread_list): Likewise.
7485 (process_initial_stop_replies): Likewise.
7486 (remote_start_remote): Likewise.
7487 (remote_check_symbols): Likewise.
7488 (discard_pending_stop_replies): Likewise.
7489 (process_stop_reply): Likewise.
7490 (putpkt_binary): Likewise.
7492 (remote_add_target_side_condition): Likewise.
7493 (remote_insert_breakpoint): Likewise.
7494 (remote_supports_stopped_by_sw_breakpoint): Likewise.
7495 (remote_supports_stopped_by_hw_breakpoint): Likewise.
7496 (remote_xfer_partial): Likewise.
7497 (remote_read_btrace): Likewise.
7498 (remote_async_serial_handler): Likewise.
7499 (remote_thread_events): Likewise.
7500 (_initialize_remote): Likewise.
7502 2016-02-07 Simon Marchi <simon.marchi@polymtl.ca>
7504 * varobj.h (varobj_delete): Remove dellist parameter, update and
7505 move documentation here.
7506 * varobj.c (struct cpstack, cppush, cppop): Remove.
7507 (delete_variable): Remove resultp (first) parameter.
7508 (delete_variable_1): Likewise.
7509 (varobj_delete): Remove dellist parameter and unused code.
7510 (update_dynamic_varobj_children): Adjust varobj_delete call.
7511 (update_type_if_necessary): Likewise.
7512 (varobj_set_visualizer): Likewise.
7513 (varobj_update): Likewise.
7514 (value_of_root): Likewise.
7515 (varobj_invalidate_iter): Likewise.
7516 * mi/mi-cmd-var.c (mi_cmd_var_delete): Likewise.
7518 2016-02-04 Yao Qi <yao.qi@linaro.org>
7520 * remote.c (remote_wait_as): Set rs->waiting_for_stop_reply to
7521 0 before handling 'F' and set it back afterwards.
7523 2016-02-02 Simon Marchi <simon.marchi@ericsson.com>
7525 * ui-out.c (MAX_UI_OUT_LEVELS): Remove.
7527 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
7529 * amd64-linux-siginfo.c (nat_siginfo_t, nat_sigval_t, nat_timeval):
7531 (compat_siginfo): New bound fields added.
7532 (compat_x32_siginfo): New field added.
7533 (cpt_si_addr_lsb): New define.
7534 (compat_siginfo_from_siginfo): Use nat_siginfo.
7535 (siginfo_from_compat_siginfo): Use nat_siginfo.
7536 (compat_x32_siginfo_from_siginfo): Likewise.
7537 (siginfo_from_compat_x32_siginfo): Likewise.
7539 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
7541 * linux-tdep.c (linux_get_siginfo_type): Add the _addr_bnd
7542 structure to the siginfo if extra_fields contains
7543 LINUX_SIGINFO_FIELD_ADDR_BND.
7545 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
7547 * linux-tdep.h (linux_get_siginfo_type_with_fields): Make extern.
7548 * linux-tdep.c (linux_get_siginfo_type_with_fields): Make extern.
7549 * i386-linux-tdep.h (x86_linux_get_siginfo_type): New
7551 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Add
7552 x86_linux_get_siginfo_type for the amd64 abi.
7553 * i386-linux-tdep.c (x86_linux_get_siginfo_type): New
7555 (i386_linux_init_abi): Add new function at the i386 ABI
7558 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
7560 * linux-tdep.h (linux_siginfo_extra_field_values): New enum values.
7561 (linux_siginfo_extra_fields): New enum type.
7562 * linux-tdep.c (linux_get_siginfo_type_with_fields): New function.
7563 (linux_get_siginfo_type): Use new function.
7565 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
7567 * nat/amd64-linux-siginfo.c: New file.
7568 * nat/amd64-linux-siginfo.h: New file.
7569 * Makefile.in (HFILES_NO_SRCDIR): Add nat/amd64-linux-siginfo.h.
7570 (amd64-linux-siginfo.o): New rule.
7571 * config/i386/linux64.mh (NATDEPFILES): Add amd64-linux-siginfo.o.
7572 * amd64-linux-nat.c (nat/amd64-linux-siginfo.h): New include.
7573 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
7574 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
7575 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
7576 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
7577 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
7578 (cpt_si_fd, si_timerid, si_overrun): Move to nat/amd64-linux-siginfo.c.
7580 2016-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
7582 * value.c (max_value_size): New variable.
7583 (MIN_VALUE_FOR_MAX_VALUE_SIZE): New define.
7584 (set_max_value_size): New function.
7585 (show_max_value_size): New function.
7586 (check_type_length_before_alloc): New function.
7587 (allocate_value_contents): Call check_type_length_before_alloc.
7588 (set_value_enclosing_type): Likewise.
7589 (_initialize_values): Add set/show handler for max-value-size.
7590 * NEWS: Mention new set/show command.
7592 2016-01-31 Simon Marchi <simon.marchi@polymtl.ca>
7594 * varobj.h (struct varobj): Fix typos in comments.
7595 (struct lang_varobj_ops): Likewise.
7596 * varobj.c (VAROBJ_TABLE_SIZE): Likewise.
7597 (varobj_create): Move misplaced comment.
7599 2016-01-29 Simon Marchi <simon.marchi@ericsson.com>
7601 * aarch64-tdep.c (aarch64_record_asimd_load_store): Add braces
7602 to for include additional lines.
7603 * xcoffread.c (scan_xcoff_symtab): Remove unnecessary braces.
7605 2016-01-28 Simon Marchi <simon.marchi@ericsson.com>
7607 * gnulib/import/Makefile.am: Regenerate.
7608 * gnulib/import/Makefile.in: Regenerate.
7609 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
7610 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add rawmemchr.
7612 2016-01-28 Simon Marchi <simon.marchi@ericsson.com>
7614 * remote.c (skip_to_semicolon): Remove.
7615 (remote_parse_stop_reply): Use strchrnul instead of
7617 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
7619 * gnulib/aclocal.m4: Regenerate.
7620 * gnulib/config.in: Regenerate.
7621 * gnulib/configure: Regenerate.
7622 * gnulib/import/Makefile.am: Regenerate.
7623 * gnulib/import/Makefile.in: Regenerate.
7624 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
7625 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
7626 * gnulib/import/m4/rawmemchr.m4: New file.
7627 * gnulib/import/m4/strchrnul.m4: New file.
7628 * gnulib/import/rawmemchr.c: New file.
7629 * gnulib/import/rawmemchr.valgrind: New file.
7630 * gnulib/import/strchrnul.c: New file.
7631 * gnulib/import/strchrnul.valgrind: New file.
7633 2016-01-28 Yao Qi <yao.qi@linaro.org>
7635 * breakpoint.c (build_target_command_list): Don't call continue
7637 (build_target_condition_list): Likewise.
7639 2016-01-27 Kevin Buettner <kevinb@redhat.com>
7641 * rx-tdep.c (rx_push_dummy_call): Treat scalars larger than 8
7642 bytes as aggregates.
7644 2016-01-27 Joel Brobecker <brobecker@adacore.com>
7646 * MAINTAINERS (Responsible Maintainers): Add Keith Seitz as
7647 Linespec Maintainers.
7649 2016-01-26 Simon Marchi <simon.marchi@ericsson.com>
7651 * common/common-utils.c (skip_spaces): Fix comment.
7652 (skip_to_space_const): Likewise.
7654 2016-01-25 Yao Qi <yao.qi@linaro.org>
7656 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
7657 Remove argument pc. Get pc by regcache_read_pc. Callers updated.
7658 (arm_deal_with_atomic_sequence_raw): Likewise.
7659 (thumb_get_next_pcs_raw): Likewise.
7660 (arm_get_next_pcs_raw): Likewise.
7661 (arm_get_next_pcs): Remove argument pc. Callers updated.
7662 * arch/arm-get-next-pcs.h (arm_get_next_pcs): Update declaration.
7664 2016-01-25 Mark Wielaard <mjw@redhat.com>
7666 * ada-lang.c (ada_evaluate_subexp): Add proper else block.
7667 * c-typeprint.c (c_type_print_base): Fix misleading indentation of
7669 * inflow.c (child_terminal_ours_1): Fix misleading indentation of
7670 statement block by introducing an else.
7671 * linux-record.c (record_linux_sockaddr): Fix misleading indentation
7672 of return statements.
7673 (record_linux_msghdr): Likewise.
7675 2016-01-25 Pedro Alves <palves@redhat.com>
7678 * infrun.c (handle_inferior_event_1) <fork/vfork>: Update
7679 parent/child running states.
7681 2016-01-25 Pedro Alves <palves@redhat.com>
7684 * linux-nat.c (kill_one_lwp): New, factored out from ...
7685 (kill_callback): ... this.
7686 (kill_wait_callback): New, factored out from ...
7687 (kill_wait_one_lwp): ... this.
7688 (kill_unfollowed_fork_children): New function.
7689 (linux_nat_kill): Use it.
7691 2016-01-22 John Baldwin <jhb@FreeBSD.org>
7693 * fbsd-nat.c (fbsd_pid_to_str): Adjust string format.
7695 2016-01-22 Yao Qi <yao.qi@linaro.org>
7697 * arm-linux-nat.c (fetch_fpregs): Call perror_with_name
7699 (store_fpregs, fetch_regs, store_regs): Likewise.
7700 (fetch_wmmx_regs, store_wmmx_regs): Likewise.
7701 (fetch_vfp_regs, store_vfp_regs): Likewise.
7703 2016-01-21 Doug Evans <dje@google.com>
7705 * breakpoint.c (init_breakpoint_sal): Add comment.
7707 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
7709 * ax-gdb.c (gen_traced_pop): Use gen_fetch for string collection.
7711 2016-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
7713 * disasm.c (maybe_add_dis_line_entry): Rename to...
7714 (add_dis_line_entry): ...this, and update header comment.
7715 (do_mixed_source_and_assembly): Now use add_dis_line_entry.
7717 2016-01-21 Pedro Alves <palves@redhat.com>
7719 * Makefile.in (COMPILER_CFLAGS): New.
7720 (CXXFLAGS): Get it from configure.
7721 (INTERNAL_CFLAGS_BASE, INTERNAL_LDFLAGS): Use COMPILER_CFLAGS
7723 * build-with-cxx.m4 (GDB_AC_BUILD_WITH_CXX): Set and AC_SUBST
7725 * configure: Regenerate.
7727 2016-01-21 Joel Brobecker <brobecker@adacore.com>
7729 * location.h (new_address_location): Add new parameters
7730 "addr_string" and "addr_string_len".
7731 (get_address_string_location): Add declaration.
7732 * location.c (new_address_location): Add new parameters
7733 "addr_string" and "addr_string_len". If not NULL, store
7734 a copy of the addr_string in the new location as well.
7735 (get_address_string_location): New function.
7736 (string_to_event_location): Update call to new_address_location.
7737 * linespec.c (event_location_to_sals) <ADDRESS_LOCATION>:
7738 Save the event location in the parser's state before
7739 passing it to convert_address_location_to_sals.
7740 * breakpoint.c (create_thread_event_breakpoint): Update call
7741 to new_address_location.
7742 (init_breakpoint_sal): Get the event location's string, if any,
7743 and use it to update call to new_address_location.
7744 * python/py-finishbreakpoint.c (bpfinishpy_init):
7745 Update call to new_address_location.
7746 * spu-tdep.c (spu_catch_start): Likewise.
7748 * config/djgpp/fnchange.lst: Add entries for
7749 gdb/testsuite/gdb.base/break-fun-addr1.c and
7750 gdb/testsuite/gdb.base/break-fun-addr2.c.
7752 2016-01-21 Yao Qi <yao.qi@linaro.org>
7754 * arm-linux-tdep.c (arm_linux_sigreturn_next_pc): Add parameter
7755 is_thumb and set it according to CPSR saved on the stack.
7756 (arm_linux_get_next_pcs_syscall_next_pc): Pass is_thumb to
7757 arm_linux_sigreturn_next_pc.
7759 2016-01-20 Simon Marchi <simon.marchi@polymtl.ca>
7761 * python/lib/gdb/printing.py (FlagEnumerationPrinter.__call__):
7762 Fix enumerators sort key function.
7764 2016-01-20 Joel Brobecker <brobecker@adacore.com>
7766 * printcmd.c (print_scalar_formatted): Move binary operator from
7767 end of line to beginning of next line. Adjust formatting
7770 2016-01-19 John Baldwin <jhb@FreeBSD.org>
7772 * fbsd-nat.c (fbsd_pid_to_exec_file): Use new "buflen" instead of
7775 2016-01-19 John Baldwin <jhb@FreeBSD.org>
7777 * fbsd-tdep.c (find_stop_signal): Remove.
7778 (struct fbsd_collect_regset_section_cb) <lwp>: New field.
7779 <stop_signal>: New field.
7780 <abort_iteration>: New field.
7781 (fbsd_collect_regset_section_cb): Use new fields.
7782 (fbsd_collect_thread_registers): New function.
7783 (struct fbsd_corefile_thread_data): New structure.
7784 (fbsd_corefile_thread): New function.
7785 (fbsd_make_corefile_notes): Use new function to dump notes for each
7786 non-exited thread in a process.
7788 2016-01-19 John Baldwin <jhb@FreeBSD.org>
7790 * configure.ac: Check for support for LWP names on FreeBSD.
7791 * fbsd-nat.c [PT_LWPINFO] New variable debug_fbsd_lwp.
7792 [TDP_RFPPWAIT || HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME]
7793 (fbsd_fetch_kinfo_proc): Move function earlier.
7794 [PT_LWPINFO] (fbsd_thread_alive): New function.
7795 [PT_LWPINFO] (fbsd_pid_to_str): New function.
7796 [HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME] (fbsd_thread_name): New function.
7797 [PT_LWP_EVENTS] (fbsd_enable_lwp_events): New function.
7798 [PT_LWPINFO] (fbsd_add_threads): New function.
7799 [PT_LWPINFO] (fbsd_update_thread_list): New function.
7800 [PT_LWPINFO] New variable super_resume.
7801 [PT_LWPINFO] (resume_one_thread_cb): New function.
7802 [PT_LWPINFO] (resume_all_threads_cb): New function.
7803 [PT_LWPINFO] (fbsd_resume): New function.
7804 (fbsd_remember_child): Save full ptid instead of plain pid.
7805 (fbsd_is_child_pending): Return ptid of saved child process.
7806 (fbsd_wait): Include lwp in returned ptid and switch to LWP ptid on
7808 [PT_LWP_EVENTS] Handle LWP events.
7809 [TDP_RFPPWAIT] Include LWP in child ptid.
7810 (fbsd_post_startup_inferior) [PT_LWP_EVENTS]: Enable LWP events.
7811 (fbsd_post_attach) [PT_LWP_EVENTS]: Enable LWP events.
7812 Add threads for existing processes.
7813 (fbsd_nat_add_target) [PT_LWPINFO]: Set "to_thread_alive" to
7814 "fbsd_thread_alive".
7815 Set "to_pid_to_str" to "fbsd_pid_to_str".
7816 [HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME]: Set "to_thread_name" to
7818 [PT_LWPINFO]: Set "to_update_thread_list" to "fbsd_update_thread_list".
7819 Set "to_has_thread_control" to "tc_schedlock".
7820 Set "to_resume" to "fbsd_resume".
7821 (_initialize_fbsd_nat): New function.
7822 * configure: Regenerate.
7823 * config.in: Regenerate.
7825 2016-01-19 John Baldwin <jhb@FreeBSD.org>
7827 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
7829 (amd64bsd_store_inferior_registers): Use get_ptrace_pid.
7830 (amd64bsd_dr_get): Use get_ptrace_pid.
7831 (amd64bsd_dr_set): Use get_ptrace_pid.
7832 * i386bsd-nat.c (i386bsd_fetch_inferior_registers): Use get_ptrace_pid.
7833 (i386bsd_store_inferior_registers): Use get_ptrace_pid.
7834 (i386bsd_dr_get): Use get_ptrace_pid.
7835 (i386bsd_dr_set): Use get_ptrace_pid.
7836 * inf-ptrace.c (get_ptrace_pid): Export.
7837 * inf-ptrace.h (get_ptrace_pid): Declare.
7838 * ppcfbsd-nat.c (ppcfbsd_fetch_inferior_registers): Use lwp id.
7839 (ppcfbsd_store_inferior_registers): Use lwp id.
7841 2016-01-19 John Baldwin <jhb@FreeBSD.org>
7843 * fbsd_tdep.c (fbsd_core_pid_to_str): New function.
7844 (fbsd_core_thread_name): New function.
7845 (fbsd_init_abi): Add "core_pid_to_str" gdbarch method.
7846 Add "core_thread_name" gdbarch method.
7848 2016-01-19 John Baldwin <jhb@FreeBSD.org>
7850 * corelow.c (core_thread_name): New function.
7851 (init_core_ops): Use "core_thread_name" for the "to_thread_name"
7853 * gdbarch.sh (core_thread_name): New gdbarch callback.
7854 * gdbarch.h: Re-generate.
7855 * gdbarch.c: Re-generate.
7857 2016-01-19 Simon Marchi <simon.marchi@polymtl.ca>
7859 * python/lib/gdb/printing.py (_EnumInstance.to_string): Explicitly
7860 convert gdb.Value to integer type using int().
7862 2016-01-19 John Baldwin <jhb@FreeBSD.org>
7864 * configure.ac: Include <sys/types.h when checking for "r_fs" in
7866 * configure: Regenerate.
7868 2016-01-19 Pedro Alves <palves@redhat.com>
7870 * ax-gdb.c (agent_command_1): Adjust call to decode_line_full.
7871 * break-catch-throw.c (re_set_exception_catchpoint): Pass the
7872 current program space down to linespec decoding and breakpoint
7874 * breakpoint.c (parse_breakpoint_sals): Adjust calls to
7876 (until_break_command): Adjust calls to decode_line_1.
7877 (base_breakpoint_decode_location, bkpt_decode_location): Add
7878 'search_pspace' parameter. Pass it along.
7879 (bkpt_probe_create_sals_from_location): Adjust calls to
7881 (tracepoint_decode_location, tracepoint_probe_decode_location)
7882 (strace_marker_decode_location): Add 'search_pspace' parameter.
7884 (all_locations_are_pending): Rewrite to take a breakpoint and
7885 program space as arguments instead.
7886 (hoist_existing_locations): New function.
7887 (update_breakpoint_locations): Add 'filter_pspace' parameter. Use
7888 hoist_existing_locations instead of always removing all locations,
7889 and adjust to all_locations_are_pending change.
7890 (location_to_sals): Add 'search_pspace' parameter. Pass it along.
7891 Don't disable the breakpoint if there are other locations in
7892 another program space.
7893 (breakpoint_re_set_default): Adjust to pass down the current
7894 program space as filter program space.
7895 (decode_location_default): Add 'search_pspace' parameter and pass
7897 (prepare_re_set_context): Don't switch program space here.
7898 (breakpoint_re_set): Use save_current_space_and_thread instead of
7899 save_current_program_space.
7900 * breakpoint.h (struct breakpoint_ops) <decode_location>: Add
7901 'search_pspace' parameter.
7902 (update_breakpoint_locations): Add 'filter_pspace' parameter.
7903 * cli/cli-cmds.c (edit_command, list_command): Adjust calls to
7905 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the current
7906 program space as filter program space.
7907 * linespec.c (struct linespec_state) <search_pspace>: New field.
7908 (create_sals_line_offset, convert_explicit_location_to_sals)
7909 (parse_linespec): Pass the search program space down.
7910 (linespec_state_constructor): Add 'search_pspace' parameter.
7912 (linespec_parser_new): Add 'search_pspace' parameter and pass it
7914 (linespec_lex_to_end): Adjust.
7915 (decode_line_full, decode_line_1): Add 'search_pspace' parameter
7917 (decode_line_with_last_displayed): Adjust.
7918 (collect_symtabs_from_filename, symtabs_from_filename): New
7919 'search_pspace' parameter. Use it.
7920 (find_function_symbols): Pass the search program space down.
7921 * linespec.h (decode_line_1, decode_line_full): Add
7922 'search_pspace' parameter.
7923 * probe.c (parse_probes_in_pspace): New function, factored out
7925 (parse_probes): ... this. Add 'search_pspace' parameter and use
7927 * probe.h (parse_probes): Add pspace' parameter.
7928 * python/python.c (gdbpy_decode_line): Adjust.
7929 * tracepoint.c (scope_info): Adjust.
7931 2016-01-18 Maciej W. Rozycki <macro@imgtec.com>
7933 * mips-tdep.c (mips_insn_size): Remove 48-bit microMIPS
7934 instruction support.
7935 (micromips_next_pc): Likewise.
7936 (micromips_scan_prologue): Likewise.
7937 (micromips_deal_with_atomic_sequence): Likewise.
7938 (micromips_stack_frame_destroyed_p): Likewise.
7939 (mips_breakpoint_from_pc): Likewise.
7941 2016-01-18 Maciej W. Rozycki <macro@imgtec.com>
7943 * mips-tdep.c (micromips_insn_at_pc_has_delay_slot): Pass
7944 unshifted 16-bit microMIPS instruction word to `mips_insn_size'.
7946 2016-01-18 Pedro Alves <palves@redhat.com>
7948 * NEWS: Mention that GDB now displays the ID and name of the
7949 thread that hit a breakpoint or received a signal.
7950 * break-catch-sig.c (signal_catchpoint_print_it): Use
7951 maybe_print_thread_hit_breakpoint.
7952 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
7953 * break-catch-throw.c (print_it_exception_catchpoint): Likewise.
7954 * breakpoint.c (maybe_print_thread_hit_breakpoint): New function.
7955 (print_it_catch_fork, print_it_catch_vfork, print_it_catch_solib)
7956 (print_it_catch_exec, print_it_ranged_breakpoint)
7957 (print_it_watchpoint, print_it_masked_watchpoint, bkpt_print_it):
7958 Use maybe_print_thread_hit_breakpoint.
7959 * breakpoint.h (maybe_print_thread_hit_breakpoint): Declare.
7960 * gdbthread.h (show_thread_that_caused_stop): Declare.
7961 * infrun.c (print_signal_received_reason): Print which thread
7963 * thread.c (show_thread_that_caused_stop): New function.
7965 2016-01-18 Gary Benson <gbenson@redhat.com>
7967 * nat/linux-namespaces.c (do_fork): New function.
7968 (linux_mntns_get_helper): Use the above.
7970 2016-01-17 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de> (tiny change)
7972 Pushed by Joel Brobecker <brobecker@adacore.com>.
7974 * dwarf2read.c (read_partial_die): Do not call set_objfile_main_name
7975 if the function has no name.
7977 2016-01-15 Sandra Loosemore <sandra@codesourcery.com>
7979 * charset.c [PHONY_ICONV] (GDB_DEFAULT_HOST_CHARSET):
7980 Conditionalize for Windows host.
7981 (GDB_DEFAULT_TARGET_CHARSET): Match GDB_DEFAULT_HOST_CHARSET.
7982 (GDB_DEFAULT_TARGET_WIDE_CHARSET): Use UTF-32.
7983 (phony_iconv_open): Handle both UTF-32 endiannesses.
7984 (phony_iconv): Likewise. Check for output overflow and clean up
7985 out-of-input cases. Correct adjustment to input buffer pointer.
7986 (set_be_le_names) [PHONY_ICONV]: Use hard-wired names to match
7989 2016-01-15 Pedro Alves <palves@redhat.com>
7991 * NEWS: Mention star wildcard ranges.
7992 * cli/cli-utils.c (get_number_or_range): Check state->in_range first.
7993 (number_range_setup_range): New function.
7994 * cli/cli-utils.h (number_range_setup_range): New declaration.
7995 * thread.c (thread_apply_command): Support star TID ranges.
7996 * tid-parse.c (tid_range_parser_finished)
7997 (tid_range_parser_string, tid_range_parser_skip)
7998 (get_tid_or_range, get_tid_or_range): Handle
7999 TID_RANGE_STATE_STAR_RANGE.
8000 (tid_range_parser_star_range): New function.
8001 * tid-parse.h (enum tid_range_state) <TID_RANGE_STATE_STAR_RANGE>:
8003 (tid_range_parser_star_range): New declaration.
8005 2016-01-15 Pedro Alves <palves@redhat.com>
8007 * thread.c (thread_apply_command): Use the tid range parser to
8008 advance past the thread ID list.
8009 * tid-parse.c (get_positive_number_trailer): New function.
8010 (parse_thread_id): Use it.
8011 (get_tid_or_range): Use it. Return 0 instead of throwing invalid
8013 (get_tid_or_range): Detect negative values. Return 0 instead of
8014 throwing invalid thread ID error.
8016 2016-01-14 Yao Qi <yao.qi@linaro.org>
8018 * arm-linux-tdep.c (arm_linux_get_next_pcs_syscall_next_pc):
8020 (arm_linux_get_next_pcs_ops): Install
8021 arm_linux_get_next_pcs_syscall_next_pc.
8022 (arm_linux_syscall_next_pc): Change to ...
8023 (arm_linux_get_next_pcs_syscall_next_pc): ... it.
8024 (arm_linux_init_abi): Don't set tdep->syscall_next_pc.
8025 * arm-tdep.c (arm_get_next_pcs_syscall_next_pc): Declare.
8026 (arm_get_next_pcs_syscall_next_pc): Make it static. Don't
8027 call tdep->syscall_next_pc.
8028 * arm-tdep.h (struct gdbarch_tdep) <syscall_next_pc>: Remove.
8029 (arm_get_next_pcs_syscall_next_pc): Remove.
8031 2016-01-14 Yao Qi <yao.qi@linaro.org>
8033 * remote.c (remote_set_syscall_catchpoint): Cast to char *.
8034 * thread.c (do_captured_thread_select): Cast to const char *.
8036 2016-01-14 Yao Qi <yao.qi@linaro.org>
8038 * arch/arm-get-next-pcs.c (arm_get_next_pcs_ctor): Change
8039 argument arm_thumb2_breakpoint to has_thumb2_breakpoint.
8040 (thumb_get_next_pcs_raw): Check has_thumb2_breakpoint
8042 * arch/arm-get-next-pcs.h (struct arm_get_next_pcs)
8043 <arm_thumb2_breakpoint>: Remove.
8044 <has_thumb2_breakpoint>: New field.
8045 (arm_get_next_pcs_ctor): Update declaration.
8046 * arm-linux-tdep.c (arm_linux_software_single_step): Pass
8047 1 to arm_get_next_pcs_ctor.
8048 * arm-tdep.c (arm_software_single_step): Pass 0 to
8049 arm_get_next_pcs_ctor.
8051 2016-01-13 Ulrich Weigand <uweigand@de.ibm.com>
8053 * MAINTAINERS: Add Andreas Arnez as s390 target maintainer.
8055 2016-01-13 Yao Qi <yao.qi@linaro.org>
8057 * arch/arm-get-next-pcs.c (arm_get_next_pcs_raw): Use
8058 byte_order_for_code to read instruction.
8060 2016-01-13 Pedro Alves <palves@redhat.com>
8062 * NEWS: Mention $_gthread.
8063 * gdbthread.h (struct thread_info) <global_num>: Mention
8065 * thread.c (thread_num_make_value_helper): New function.
8066 (thread_id_make_value): Delete.
8067 (thread_id_per_inf_num_make_value, global_thread_id_make_value):
8069 (thread_funcs): Adjust.
8070 (gthread_funcs): New.
8071 (_initialize_thread): Register $_gthread variable.
8073 2016-01-13 Pedro Alves <palves@redhat.com>
8075 * NEWS: Mention "info threads -gid".
8076 * gdbthread.h (struct thread_info) <global_num>: Mention "info
8078 * thread.c (info_threads_command): Handle "-gid".
8079 (_initialize_thread): Adjust "info threads" help string to mention
8082 2016-01-13 Pedro Alves <palves@redhat.com>
8084 * NEWS: Mention InferiorThread.global_num.
8085 * python/py-infthread.c (thpy_get_global_num): New function.
8086 (thread_object_getset): Register "global_num".
8088 2016-01-13 Pedro Alves <palves@redhat.com>
8090 * NEWS: Mention that thread IDs are now per inferior and global
8092 * Makefile.in (SFILES): Add tid-parse.c.
8093 (COMMON_OBS): Add tid-parse.o.
8094 (HFILES_NO_SRCDIR): Add tid-parse.h.
8095 * ada-tasks.c: Adjust to use ptid_to_global_thread_id.
8096 * breakpoint.c (insert_breakpoint_locations)
8097 (remove_threaded_breakpoints, bpstat_check_breakpoint_conditions)
8098 (print_one_breakpoint_location, set_longjmp_breakpoint)
8099 (check_longjmp_breakpoint_for_call_dummy)
8100 (set_momentary_breakpoint): Adjust to use global IDs.
8101 (find_condition_and_thread, watch_command_1): Use parse_thread_id.
8102 (until_break_command, longjmp_bkpt_dtor)
8103 (breakpoint_re_set_thread, insert_single_step_breakpoint): Adjust
8105 * dummy-frame.c (pop_dummy_frame_bpt): Adjust to use
8106 ptid_to_global_thread_id.
8107 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
8108 * gdbthread.h (struct thread_info): Rename field 'num' to
8109 'global_num. Add new fields 'per_inf_num' and 'inf'.
8110 (thread_id_to_pid): Rename thread_id_to_pid to
8111 global_thread_id_to_ptid.
8112 (pid_to_thread_id): Rename to ...
8113 (ptid_to_global_thread_id): ... this.
8114 (valid_thread_id): Rename to ...
8115 (valid_global_thread_id): ... this.
8116 (find_thread_id): Rename to ...
8117 (find_thread_global_id): ... this.
8118 (ALL_THREADS, ALL_THREADS_BY_INFERIOR): Declare.
8119 (print_thread_info): Add comment.
8120 * tid-parse.h: New file.
8121 * tid-parse.c: New file.
8122 * infcmd.c (step_command_fsm_prepare)
8123 (step_command_fsm_should_stop): Adjust to use the global thread
8125 (until_next_command, until_next_command)
8126 (finish_command_fsm_should_stop): Adjust to use the global thread
8128 (attach_post_wait): Adjust to check the inferior number too.
8129 * inferior.h (struct inferior) <highest_thread_num>: New field.
8130 * infrun.c (handle_signal_stop)
8131 (insert_exception_resume_breakpoint)
8132 (insert_exception_resume_from_probe): Adjust to use the global
8134 * record-btrace.c (record_btrace_open): Use global thread IDs.
8135 * remote.c (process_initial_stop_replies): Also consider the
8137 * target.c (target_pre_inferior): Clear the inferior's highest
8139 * thread.c (clear_thread_inferior_resources): Adjust to use the
8141 (new_thread): New inferior parameter. Adjust to use it. Set both
8142 the thread's global ID and the thread's per-inferior ID.
8143 (add_thread_silent): Adjust.
8144 (find_thread_global_id): New.
8145 (find_thread_id): Make static. Adjust to rename.
8146 (valid_thread_id): Rename to ...
8147 (valid_global_thread_id): ... this.
8148 (pid_to_thread_id): Rename to ...
8149 (ptid_to_global_thread_id): ... this.
8150 (thread_id_to_pid): Rename to ...
8151 (global_thread_id_to_ptid): ... this. Adjust.
8152 (first_thread_of_process): Adjust.
8153 (do_captured_list_thread_ids): Adjust to use global thread IDs.
8154 (should_print_thread): New function.
8155 (print_thread_info): Rename to ...
8156 (print_thread_info_1): ... this, and add new show_global_ids
8157 parameter. Handle it. Iterate over inferiors.
8158 (print_thread_info): Reimplement as wrapper around
8159 print_thread_info_1.
8160 (show_inferior_qualified_tids): New function.
8161 (print_thread_id): Use it.
8162 (tp_array_compar): Compare inferior numbers too.
8163 (thread_apply_command): Use tid_range_parser.
8164 (do_captured_thread_select): Use parse_thread_id.
8165 (thread_id_make_value): Adjust.
8166 (_initialize_thread): Adjust "info threads" help string.
8167 * varobj.c (struct varobj_root): Update comment.
8168 (varobj_create): Adjust to use global thread IDs.
8169 (value_of_root_1): Adjust to use global_thread_id_to_ptid.
8170 * windows-tdep.c (display_tib): No longer accept an argument.
8171 * cli/cli-utils.c (get_number_trailer): Make extern.
8172 * cli/cli-utils.h (get_number_trailer): Declare.
8173 (get_number_const): Adjust documentation.
8174 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Adjust to use global
8176 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
8177 (mi_on_normal_stop, mi_output_running_pid, mi_on_resume):
8178 * mi/mi-main.c (mi_execute_command, mi_cmd_execute): Likewise.
8179 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_thread_x):
8181 * python/py-breakpoint.c (bppy_set_thread): Likewise.
8182 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
8183 * python/py-infthread.c (thpy_get_num): Add comment and return the
8184 per-inferior thread ID.
8185 (thread_object_getset): Update comment of "num".
8187 2016-01-13 Pedro Alves <palves@redhat.com>
8189 * breakpoint.c (remove_threaded_breakpoints)
8190 (print_one_breakpoint_location): Use print_thread_id.
8191 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
8192 (btrace_fetch, btrace_clear): Use print_thread_id.
8193 * common/print-utils.c (CELLSIZE): Delete.
8194 (get_cell): Rename to ...
8195 (get_print_cell): ... this and made extern. Adjust call callers.
8196 Adjust to use PRINT_CELL_SIZE.
8197 * common/print-utils.h (get_print_cell): Declare.
8198 (PRINT_CELL_SIZE): New.
8199 * gdbthread.h (print_thread_id): Declare.
8200 * infcmd.c (signal_command): Use print_thread_id.
8201 * inferior.c (print_inferior): Use print_thread_id.
8202 * infrun.c (handle_signal_stop)
8203 (insert_exception_resume_breakpoint)
8204 (insert_exception_resume_from_probe)
8205 (print_signal_received_reason): Use print_thread_id.
8206 * record-btrace.c (record_btrace_info)
8207 (record_btrace_resume_thread, record_btrace_cancel_resume)
8208 (record_btrace_step_thread, record_btrace_wait): Use
8210 * thread.c (thread_apply_all_command): Use print_thread_id.
8211 (print_thread_id): New function.
8212 (thread_apply_command): Use print_thread_id.
8213 (thread_command, thread_find_command, do_captured_thread_select):
8214 Use print_thread_id.
8216 2016-01-13 Pedro Alves <palves@redhat.com>
8218 * NEWS: Mention InferiorThread.inferior.
8219 * python/py-infthread.c (thpy_get_inferior): New.
8220 (thread_object_getset): Register "inferior".
8222 2016-01-13 Pedro Alves <palves@redhat.com>
8224 * NEWS: Mention $_inferior.
8225 * inferior.c (inferior_id_make_value): New.
8226 (inferior_funcs): New.
8227 (_initialize_inferior): Create $_inferior variable.
8229 2016-01-13 Pedro Alves <palves@redhat.com>
8231 PR breakpoints/19388
8232 * frame.c (get_current_frame): Use validate_registers_access.
8233 * gdbthread.h (validate_registers_access): Declare.
8234 * infrun.c (validate_siginfo_access): Delete.
8235 (siginfo_value_read, siginfo_value_write): Use
8236 validate_registers_access.
8237 * thread.c (validate_registers_access): New function.
8239 2016-01-12 Josh Stone <jistone@redhat.com>
8240 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8242 * NEWS (Changes since GDB 7.10): Mention QCatchSyscalls and the
8243 syscall_entry and syscall_return stop reasons. Mention GDB
8244 support for remote catch syscall.
8245 * remote.c (PACKET_QCatchSyscalls): New enum.
8246 (remote_set_syscall_catchpoint): New function.
8247 (remote_protocol_features): New element for QCatchSyscalls.
8248 (remote_parse_stop_reply): Parse syscall_entry/return stops.
8249 (init_remote_ops): Install remote_set_syscall_catchpoint.
8250 (_initialize_remote): Config QCatchSyscalls.
8251 * linux-nat.h (struct lwp_info) <syscall_state>: Comment typo.
8253 2016-01-12 Yao Qi <yao.qi@linaro.org>
8255 * nat/linux-ptrace.c (linux_child_function): Cast child_stack
8256 to gdb_byte * and pass to linux_fork_to_function.
8258 2016-01-12 Yao Qi <yao.qi@linaro.org>
8260 * nat/linux-ptrace.c (linux_fork_to_function): Change type
8261 of argument 'function'.
8262 (linux_grandchild_function): Change return type to 'int'.
8263 Change child_stack's type to 'void *'.
8264 (linux_child_function): Likewise.
8266 2016-01-12 Pedro Alves <palves@redhat.com>
8268 Remove use of the registered trademark symbol throughout.
8270 2016-01-12 Thomas Schwinge <thomas@codesourcery.com>
8272 * reply_mig_hack.awk: Rewrite one regular expression.
8274 2016-01-11 Mike Frysinger <vapier@gentoo.org>
8276 * acinclude.m4: Include new warning.m4 file.
8277 * configure: Regenerated.
8278 * configure.ac: Move all warning logic ...
8279 * warning.m4: ... here.
8281 2016-01-08 Yao Qi <yao.qi@linaro.org>
8283 * extension.c: Include target.h.
8284 (set_active_ext_lang): Only call install_gdb_sigint_handler,
8285 check_quit_flag, and set_quit_flag if target_terminal_is_ours
8287 (restore_active_ext_lang): Likewise.
8288 * target.c (target_terminal_is_ours): New function.
8289 * target.h (target_terminal_is_ours): Declare.
8291 2016-01-07 Maciej W. Rozycki <macro@imgtec.com>
8293 * mips-tdep.c (mips_breakpoint_from_pc): Rename local `status'
8294 to `err' in the little-endian leg.
8296 2016-01-06 Yao Qi <yao.qi@linaro.org>
8298 * arch/arm-get-next-pcs.c (arm_get_next_pcs): Move it to some
8300 (thumb_get_next_pcs_raw): Make it static.
8301 (arm_get_next_pcs_raw): Likewise.
8302 * arch/arm-get-next-pcs.h (thumb_get_next_pcs_raw): Remove the
8304 (arm_get_next_pcs_raw): Likewise.
8306 2016-01-05 Mike Frysinger <vapier@gentoo.org>
8308 * version.in: Change cvs to git.
8310 2016-01-05 Mike Frysinger <vapier@gentoo.org>
8312 * configure.tgt (score-*-*): Delete gdb_sim assignment.
8314 2016-01-05 Pedro Alves <palves@redhat.com>
8317 * configure.ac: Define WITH_PPC_SIM when linking in the sim and
8318 the target is powerpc*.
8319 * rs6000-tdep.c (init_sim_regno_table): Check WITH_PPC_SIM instead
8321 * configure: Regenerate.
8322 * config.in: Regenerate.
8324 2016-01-04 Markus Metzger <markus.t.metzger@intel.com>
8326 * btrace.c (btrace_pt_readmem_callback): Do not return in TRY/CATCH.
8328 2016-01-02 Mike Frysinger <vapier@gentoo.org>
8330 * configure.tgt (powerpc*-*-*): Delete test call and
8331 always assign gdb_sim.
8333 2016-01-01 Joel Brobecker <brobecker@adacore.com>
8335 Update year range in copyright notice of all files.
8337 2016-01-01 Joel Brobecker <brobecker@adacore.com>
8339 * top.c (print_gdb_version): Change copyright year in version
8342 2016-01-01 Joel Brobecker <brobecker@adacore.com>
8344 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2015.
8346 For older changes see ChangeLog-2015.
8352 version-control: never