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