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