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