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