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