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