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