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