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