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