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