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