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