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