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