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