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