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