Make command line editing (use of readline) be per UI
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2016-06-21 Pedro Alves <palves@redhat.com>
2
3 PR mi/20034
4 * cli/cli-interp.c: Include cli-interp.h and event-top.h.
5 (cli_interpreter_resume): Pass 1 to gdb_setup_readline. Set the
6 UI's input_handler here.
7 (cli_interpreter_supports_command_editing): New function.
8 (cli_interp_procs): Install it.
9 * cli/cli-interp.h: New file.
10 * event-top.c (async_command_editing_p): Rename to ...
11 (set_editing_cmd_var): ... this.
12 (change_line_handler): Add parameter 'editing', and use it. Bail
13 early if the interpreter doesn't support editing. Don't touch
14 readline state if editing is off.
15 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
16 (gdb_rl_callback_handler_reinstall): Assert the current UI is the
17 main UI.
18 (display_gdb_prompt): Don't call gdb_rl_callback_handler_remove if
19 not using readline. Check whether the current UI is using command
20 editing instead of checking the async_command_editing_p global.
21 (set_async_editing_command): Delete.
22 (gdb_setup_readline): Add 'editing' parameter. Only allow editing
23 on the main UI. Don't touch readline state if editing is off.
24 (gdb_disable_readline): Don't touch readline state if editing is
25 off.
26 * event-top.h (gdb_setup_readline): Add 'int' parameter.
27 (set_async_editing_command): Delete declaration.
28 (change_line_handler, command_line_handler): Declare.
29 (async_command_editing_p): Rename to ...
30 (set_editing_cmd_var): ... this.
31 * infrun.c (reinstall_readline_callback_handler_cleanup): Check
32 whether the current UI has editing enabled rather than checking
33 the async_command_editing_p global.
34 * interps.c (interp_supports_command_editing): New function.
35 * interps.h (interp_supports_command_editing_ftype): New typedef.
36 (struct interp_procs) <supports_command_editing_proc>: New field.
37 (interp_supports_command_editing): Declare.
38 * mi/mi-interp.c (mi_interpreter_resume): Pass 0 to
39 gdb_setup_readline. Don't clear the async_command_editing_p
40 global. Update comments.
41 * top.c (gdb_readline_wrapper_line, gdb_readline_wrapper): Check
42 whether the current UI has editing enabled rather than checking
43 the async_command_editing_p global. Don't touch readline state if
44 editing is off.
45 (undo_terminal_modifications_before_exit): Switch to the main UI.
46 Unconditionally call gdb_disable_readline.
47 (set_editing): New function.
48 (show_async_command_editing_p): Rename to ...
49 (show_editing): ... this. Show the state of the current UI.
50 (_initialize_top): Adjust.
51 * top.h (struct ui) <command_editing>: New field.
52 * tui/tui-interp.c: Include cli/cli-interp.h.
53 (tui_resume): Pass 1 to gdb_setup_readline. Set the UI's
54 input_handler.
55 (tui_interp_procs): Install
56 cli_interpreter_supports_command_editing.
57 * tui/tui-io.c (tui_getc): Check whether the current UI has
58 editing enabled rather than checking the async_command_editing_p
59 global.
60
61 2016-06-21 Pedro Alves <palves@redhat.com>
62
63 * top.c: Call gen_ret_current_ui_field_ptr for current_uiout.
64 * top.h (struct ui) <m_current_uiout>: New field.
65 * ui-out.c (current_uiout): Delete.
66 * ui-out.h (current_uiout): Delete.
67 (current_ui_current_uiout_ptr): New declaration.
68 (current_uiout): Reimplement as wrapper around
69 current_ui_current_uiout_ptr.
70
71 2016-06-21 Pedro Alves <palves@redhat.com>
72
73 * ui-out.c (default_ui_out_impl): Delete.
74 (def_uiout): Delete.
75 (current_uiout): Set to NULL.
76 (default_table_begin, default_table_body, default_table_end)
77 (default_table_header, default_begin, default_end)
78 (default_field_int, default_field_skip, default_field_string)
79 (default_field_fmt, default_spaces, default_text, default_message)
80 (default_wrap_hint, default_flush, default_data_destroy): Delete.
81
82 2016-06-21 Pedro Alves <palves@redhat.com>
83
84 * event-top.c (gdb_setup_readline): Pass the UI's outstream and
85 errstream to stdout_fileopen and stderr_fileopen.
86 * exceptions.c: Include top.h.
87 (print_flush): Open the current UI's outstream file descriptor,
88 instead of hardcoding file descriptor 1.
89 * main.c (captured_main): Save the main UI's out and error
90 streams. Adjust stderr_fileopen call.
91 * top.h (struct ui) <outstream, errstream>: New fields.
92 * ui-file.c (stderr_fileopen): Add stream parameter. Use it
93 instead of stderr.
94 * ui-file.h (stderr_fileopen): Add stream parameter and update
95 comment.
96
97 2016-06-21 Pedro Alves <palves@redhat.com>
98
99 * event-top.c (input_fd): Delete.
100 (stdin_event_handler): Switch to the UI whose input descriptor got
101 the event. Adjust to per-UI input_fd.
102 (gdb_setup_readline): Don't set the input_fd global. Adjust to
103 per-UI input_fd.
104 (gdb_disable_readline): Adjust to per-UI input_fd.
105 * event-top.h (input_fd): Delete declaration.
106 * linux-nat.c (linux_nat_terminal_inferior): Don't remove input_fd
107 from the event-loop here.
108 (linux_nat_terminal_ours): Don't register input_fd in the
109 event-loop here.
110 * main.c (captured_main): Adjust to per-UI input_fd.
111 * remote.c (remote_terminal_inferior): Don't remove input_fd from
112 the event-loop here.
113 (remote_terminal_ours): Don't register input_fd in the event-loop
114 here.
115 * target.c: Include top.h and event-top.h.
116 (target_terminal_inferior): Remove input_fd from the event-loop
117 here.
118 (target_terminal_ours): Register input_fd in the event-loop.
119 * top.h (struct ui) <input_fd>: New field.
120
121 2016-06-21 Pedro Alves <palves@redhat.com>
122
123 * cli/cli-script.c (execute_user_command, read_next_line)
124 (read_next_line): Adjust to per-UI instream.
125 * event-top.c (stdin_event_handler, command_handler)
126 (handle_line_of_input, command_line_handler)
127 (gdb_readline_no_editing_callback, async_sigterm_handler)
128 (gdb_setup_readline): Likewise.
129 * inflow.c: Include top.h.
130 (gdb_has_a_terminal, child_terminal_init_with_pgrp)
131 (gdb_save_tty_state, child_terminal_inferior)
132 (child_terminal_ours_1, copy_terminal_info): Use the main UI.
133 (initialize_stdin_serial): Adjust to per-UI instream.
134 * main.c (captured_command_loop, captured_main): Adjust to per-UI
135 instream.
136 * mi/mi-interp.c (mi_execute_command_wrapper): Likewise.
137 * python/python.c (python_interactive_command): Likewise.
138 * terminal.h (struct ui): Forward declare.
139 (initialize_stdin_serial): Add struct ui parameter.
140 * top.c (instream): Delete.
141 (do_restore_instream_cleanup, read_command_file, dont_repeat)
142 (gdb_readline_no_editing, command_line_input)
143 (input_from_terminal_p, gdb_init): Adjust to per-UI instream.
144 * top.h (struct ui) <instream>: New field.
145 (instream): Delete declaration.
146 (quit): Adjust to per-UI instream.
147
148 2016-06-21 Pedro Alves <palves@redhat.com>
149
150 * event-loop.c: Include top.h.
151 (invoke_async_signal_handlers): Switch to the main UI.
152 * event-top.c (main_ui_): Update comment.
153 (main_ui): New global.
154 * top.h (main_ui): Declare.
155
156 2016-06-21 Pedro Alves <palves@redhat.com>
157
158 * cli/cli-interp.c (cli_interp): Delete.
159 (as_cli_interp): New function.
160 (cli_on_normal_stop, cli_on_signal_received)
161 (cli_on_end_stepping_range, cli_on_signal_exited, cli_on_exited)
162 (cli_on_no_history): Send output to all CLI UIs.
163 (cli_on_sync_execution_done, cli_on_command_error): Skip output if
164 the top level interpreter is not a CLI.
165 (cli_interpreter_init): Don't set cli_interp or install observers
166 here.
167 (_initialize_cli_interp): Install observers here.
168 * event-top.c (main_ui_, ui_list): New globals.
169 (current_ui): Point to main_ui_.
170 (restore_ui_cleanup, switch_thru_all_uis_init)
171 (switch_thru_all_uis_cond, switch_thru_all_uis_next): New
172 functions.
173 * mi/mi-interp.c (as_mi_interp): New function.
174 (mi_interpreter_init): Don't install observers here.
175 (mi_on_sync_execution_done): Skip output if the top level
176 interpreter is not a MI.
177 (mi_new_thread, mi_thread_exit, mi_record_changed)
178 (mi_inferior_added, mi_inferior_appeared, mi_inferior_exit)
179 (mi_inferior_removed): Send output to all MI UIs.
180 (find_mi_interpreter, mi_interp_data): Delete.
181 (find_mi_interp): New function.
182 (mi_on_signal_received, mi_on_end_stepping_range)
183 (mi_on_signal_exited, mi_on_exited, mi_on_no_history): Send output
184 to all MI UIs.
185 (mi_on_normal_stop): Rename to ...
186 (mi_on_normal_stop_1): ... this.
187 (mi_on_normal_stop): Reimplement, sending output to all MI UIs.
188 (mi_traceframe_changed, mi_tsv_created, mi_tsv_deleted)
189 (mi_tsv_modified, mi_breakpoint_created, mi_breakpoint_deleted)
190 (mi_breakpoint_modified, mi_output_running_pid): Send output to
191 all MI UIs.
192 (mi_on_resume): Rename to ...
193 (mi_on_resume_1): ... this. Don't handle infcalls here.
194 (mi_on_resume): Reimplement, sending output to all MI UIs.
195 (mi_solib_loaded, mi_solib_unloaded, mi_command_param_changed)
196 (mi_memory_changed): Send output to all MI UIs.
197 (report_initial_inferior): Install observers here.
198 * top.h (struct ui) <next>: New field.
199 (ui_list): Declare.
200 (struct switch_thru_all_uis): New.
201 (switch_thru_all_uis_init, switch_thru_all_uis_cond)
202 (switch_thru_all_uis_next): Declare.
203 (SWITCH_THRU_ALL_UIS): New macro.
204 * tui/tui-interp.c (tui_interp): Delete global.
205 (as_tui_interp): New function.
206 (tui_on_normal_stop, tui_on_signal_received)
207 (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
208 (tui_on_no_history): Send output to all TUI UIs.
209 (tui_on_sync_execution_done, tui_on_command_error): Skip output if
210 the top level interpreter is not a TUI.
211 (tui_init): Don't set tui_interp or install observers here.
212 (_initialize_tui_interp): Install observers here.
213
214 2016-06-21 Pedro Alves <palves@redhat.com>
215
216 * cli/cli-interp.c (cli_uiout): Delete, moved into ...
217 (struct cli_interp): ... this new structure.
218 (cli_on_normal_stop, cli_on_signal_received)
219 (cli_on_end_stepping_range, cli_on_signal_exited, cli_on_exited)
220 (cli_on_no_history): Use interp_ui_out.
221 (cli_interpreter_init): If top level, set the cli_interp global.
222 (cli_interpreter_init): Return the interp's data instead of NULL.
223 (cli_interpreter_resume, cli_interpreter_exec, cli_ui_out): Adjust
224 to cli_uiout being in the interpreter's data.
225 (cli_interp_procs): New, factored out from _initialize_cli_interp.
226 (cli_interp_factory): New function.
227 (_initialize_cli_interp): Call interp_factory_register.
228 * interps.c (get_interp_info): New, factored out from ...
229 (get_current_interp_info): ... this.
230 (interp_new): Add parameter 'data'. Store it.
231 (struct interp_factory): New function.
232 (interp_factory_p): New typedef. Define a VEC_P.
233 (interpreter_factories): New global.
234 (interp_factory_register): New function.
235 (interp_add): Add 'ui' parameter. Use get_interp_info and
236 interp_lookup_existing.
237 (interp_lookup): Rename to ...
238 (interp_lookup_existing): ... this. Add 'ui' parameter. Don't
239 check for NULL or empty name here.
240 (interp_lookup): Add 'ui' parameter and reimplement.
241 (interp_set_temp, interpreter_exec_cmd): Adjust.
242 (interpreter_completer): Complete on registered interpreter
243 factories instead of interpreters.
244 * interps.h (interp_factory_func): New typedef.
245 (interp_factory_register): Declare.
246 (interp_new, interp_add): Adjust.
247 (interp_lookup): Declare.
248 * main.c (captured_main): Adjust.
249 * mi/mi-interp.c (mi_cmd_interpreter_exec): Adjust.
250 (mi_interp_procs): New, factored out from
251 _initialize_mi_interp.
252 (mi_interp_factory): New function.
253 * python/python.c (execute_gdb_command): Adjust.
254 * tui/tui-interp.c (tui_init): If top level, set the tui_interp
255 global.
256 (tui_interp_procs): New.
257 (tui_interp_factory): New function.
258 (_initialize_tui_interp): Call interp_factory_register.
259
260 2016-06-21 Pedro Alves <palves@redhat.com>
261
262 * breakpoint.c (bpstat_do_actions_1): Access the current UI's
263 async field instead of the interpreter_async global.
264 * cli/cli-script.c (execute_user_command, while_command)
265 (if_command, script_from_file): Likewise.
266 * compile/compile.c: Include top.h instead of interps.h.
267 (compile_file_command, compile_code_command)
268 (compile_print_command): Access the current UI's async field
269 instead of the interpreter_async global.
270 * guile/guile.c: Include top.h instead of interps.h.
271 (guile_repl_command, guile_command, gdbscm_execute_gdb_command):
272 Access the current UI's async field instead of the
273 interpreter_async global.
274 * guile/scm-ports.c: Include top.h instead of interps.h.
275 (ioscm_with_output_to_port_worker): Access the current UI's async
276 field instead of the interpreter_async global.
277 * inf-loop.c (inferior_event_handler): Likewise.
278 * infcall.c (run_inferior_call): Likewise.
279 * infrun.c (reinstall_readline_callback_handler_cleanup)
280 (fetch_inferior_event): Likewise.
281 * interps.c (interpreter_async): Delete.
282 (struct ui_interp_info): New.
283 (get_current_interp_info): New function.
284 (interp_list, current_interpreter, top_level_interpreter_ptr):
285 Delete.
286 (interp_add, interp_set, interp_lookup, interp_ui_out)
287 (current_interp_set_logging, interp_set_temp)
288 (current_interp_named_p): Adjust to per-UI interpreters.
289 (command_interpreter): Delete.
290 (command_interp, current_interp_command_loop, interp_quiet_p)
291 (interp_exec, interpreter_exec_cmd, interpreter_completer)
292 (top_level_interpreter, top_level_interpreter_data): Adjust to
293 per-UI interpreters.
294 * interps.h (interpreter_async): Delete.
295 * main.c (captured_command_loop): Access the current UI's async
296 field instead of the interpreter_async global.
297 * python/python.c (python_interactive_command, python_command)
298 (execute_gdb_command): Likewise.
299 * top.c (maybe_wait_sync_command_done, execute_command_to_string):
300 Access the current UI's async field instead of the
301 interpreter_async global.
302 * top.h (struct tl_interp_info): Forward declare.
303 (struct ui) <interp_info, async>: New fields.
304
305 2016-06-21 Pedro Alves <palves@redhat.com>
306
307 * main.c (gdb_stdout, gdb_stderr, gdb_stdlog, gdb_stdin): Delete
308 globals.
309 (gen_ret_current_ui_field_ptr): New macro. Use it to generate
310 wrappers for gdb_stdout, gdb_stderr, gdb_stdlog and gdb_stdin.
311 * top.h (struct ui) <m_gdb_stdout, m_gdb_stdin, m_gdb_stderr,
312 m_gdb_stdlog>: New fields.
313 (current_ui_gdb_stdout_ptr, current_ui_gdb_stdin_ptr)
314 (current_ui_gdb_stderr_ptr, current_ui_gdb_stdlog_ptr): Declare.
315 (gdb_stdout, gdb_stdin, gdb_stderr, gdb_stdlog): Reimplement as
316 macros.
317
318 2016-06-21 Pedro Alves <palves@redhat.com>
319
320 * event-top.c: Update readline-related comments.
321 (input_handler, call_readline): Delete globals.
322 (gdb_rl_callback_handler): Call the current UI's input_handler
323 method.
324 (change_line_handler): Adjust to set current UI's properties
325 instead of globals.
326 (current_ui_, current_ui): New globals.
327 (get_command_line_buffer): Rewrite to refer to the current UI.
328 (stdin_event_handler): Adjust to call the call_readline method of
329 the current UI.
330 (gdb_readline_no_editing_callback): Adjust to call the current UI's
331 input_handler method.
332 (gdb_setup_readline): Adjust to set current UI's properties
333 instead of globals.
334 * event-top.h (call_readline, input_handler): Delete declarations.
335 * mi/mi-interp.c (mi_interpreter_resume): Adjust to set current
336 UI's properties instead of globals.
337 * top.c (gdb_readline_wrapper_cleanup): Adjust to set current UI's
338 properties instead of globals.
339 (gdb_readline_wrapper): Adjust to call and set current UI's
340 methods instead of globals.
341 * top.h: Include buffer.h and event-loop.h.
342 (struct ui): New struct.
343 (current_ui): New declaration.
344
345 2016-06-21 Pedro Alves <palves@redhat.com>
346
347 * ada-lang.c (ada_exception_name_addr_1): Add comment.
348 (print_it_exception): Select the current frame.
349
350 2016-06-17 Yan-Ting Lin <currygt52@gmail.com>
351
352 * Makefile.in (ALL_TARGET_OBS): Add nds32-tdep.o.
353 (HFILES_NO_SRCDIR): Add nds32-tdep.h.
354 (ALLDEPFILES): Add nds32-tdep.c.
355 * NEWS: Mention new NDS32 port.
356 * configure.tgt: Add NDS32.
357 * nds32-tdep.c: New file.
358 * nds32-tdep.h: New file.
359 * features/Makefile (XMLTOC): Add nds32.xml.
360 * features/nds32-core.xml: New file.
361 * features/nds32-fpu.xml: New file.
362 * features/nds32-system.xml: New file.
363 * features/nds32.c: New file (generated).
364 * features/nds32.xml: New file.
365
366 2016-06-14 John Baldwin <jhb@FreeBSD.org>
367
368 * v850-tdep.c (v850_use_struct_convention): Trim type length checks.
369
370 2016-06-14 John Baldwin <jhb@FreeBSD.org>
371
372 * tui/tui-stack.c (tui_show_frame_info): Fix type mismatch.
373
374 2016-06-14 John Baldwin <jhb@FreeBSD.org>
375
376 * rs6000-tdep.c (ppc_process_record_op31): Initialize ra.
377
378 2016-06-13 Nick Clifton <nickc@redhat.com>
379
380 * gdbtypes.c (replace_type): Fix assertion.
381
382 2016-06-10 Tom Tromey <tom@tromey.com>
383
384 * gdbtypes.c (arch_type, arch_integer_type, arch_character_type)
385 (arch_boolean_type, arch_float_type, arch_complex_type)
386 (arch_flags_type, append_flags_type_field)
387 (append_flags_type_flag, arch_composite_type)
388 (append_composite_type_field_raw)
389 (append_composite_type_field_aligned)
390 (append_composite_type_field): Make "name" parameter const.
391 * gdbtypes.h (arch_type, arch_integer_type, arch_character_type)
392 (arch_boolean_type, arch_float_type, arch_complex_type)
393 (append_composite_type_field, append_composite_type_field_aligned)
394 (append_composite_type_field_raw, arch_flags_type)
395 (append_flags_type_field, append_flags_type_flag): Constify.
396
397 2016-06-10 Tom Tromey <tom@tromey.com>
398
399 PR rust/20110:
400 * rust-exp.y (lex_number): Don't truncate large numbers to i32.
401
402 2016-06-10 Tom Tromey <tom@tromey.com>
403
404 * Makefile.in (COMMON_OBS): Remove rust-exp.o.
405 (YYFILES): Add rust-exp.c.
406 (YYOBJ): Add rust-exp.o.
407 (local-maintainer-clean): Remove rust-exp.c.
408
409 2016-06-09 Toshihito Kikuchi <k.toshihito@yahoo.de>
410
411 * NEWS: Mention that GDB now supports a negative repeat count in
412 the 'x' command.
413 * printcmd.c (decode_format): Allow '-' in the parameter
414 "string_ptr" to accept a negative repeat count.
415 (find_instruction_backward): New function.
416 (read_memory_backward): New function.
417 (integer_is_zero): New function.
418 (find_string_backward): New function.
419 (do_examine): Use new functions to examine memory backward.
420 (_initialize_printcmd): Mention that 'x' command supports a negative
421 repeat count.
422
423 2016-06-09 Toshihito Kikuchi <k.toshihito@yahoo.de>
424
425 * MAINTAINERS (Write After Approval): Add Toshihito Kikuchi.
426
427 2016-06-09 Tom Tromey <tom@tromey.com>
428
429 PR python/19819:
430 * python/py-xmethods.c (invoke_method_name)
431 (py_get_result_type_method_name, py_invoke_method_name): Remove.
432 (gdbpy_initialize_xmethods): Don't initialize
433 py_invoke_method_name, py_get_result_type_method_name.
434
435 2016-06-07 Simon Marchi <simon.marchi@ericsson.com>
436
437 * mi/mi-interp.c (mi_record_changed): Add missing braces.
438
439 2016-06-07 Bernhard Heckel <bernhard.heckel@intel.com>
440
441 * findvar.c (follow_static_link): Check for valid pointer.
442
443 2016-06-06 Simon Marchi <simon.marchi@ericsson.com>
444
445 * NEWS: Mention the new fields in =record-started.
446 * common/btrace-common.h (btrace_format_short_string): New function
447 declaration.
448 * common/btrace-common.c (btrace_format_short_string): New
449 function.
450 * mi/mi-interp.c (mi_record_changed): Output method and format
451 fields in the =record-started record.
452 * record-btrace.c (record_btrace_open): Adapt record_changed
453 notification.
454 * record-full.c (record_full_open): Likewise.
455 * record.c (cmd_record_stop): Likewise.
456
457 2016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
458
459 * windows-nat.c (handle_output_debug_string): Return type of
460 gdb_signal_from_host() is gdb_signal, not an int.
461 (windows_get_exec_module_filename): Add pointer casts for C++.
462
463 2016-06-02 Tom Tromey <tom@tromey.com>
464
465 PR python/18984:
466 * python/python.c (gdbpy_solib_name): Use GDB_PY_LLU_ARG.
467
468 2016-06-01 Pedro Alves <palves@redhat.com>
469
470 * remote-fileio.c (remote_fio_ctrl_c_flag, remote_fio_sa)
471 (remote_fio_osa)
472 (remote_fio_ofunc, remote_fileio_sig_init, remote_fileio_sig_set)
473 (remote_fileio_sig_exit, remote_fileio_ctrl_c_signal_handler):
474 Delete.
475 (remote_fileio_o_quit_handler): New global.
476 (remote_fileio_quit_handler): New function.
477 (remote_fileio_reply): Check the quit flag instead of the custom
478 'remote_fio_ctrl_c_flag' flag. Restore the quit handler instead
479 of changing the SIGINT handler.
480 (do_remote_fileio_request): Override the quit handler instead of
481 changing the SIGINT handler.
482
483 2016-06-01 Nick Clifton <nickc@redhat.com>
484
485 * common/common-utils.c (xmalloc_failed): New function. Provided
486 so that the version in libiberty is not linked in.
487
488 2016-06-01 Markus Metzger <markus.t.metzger@intel.com>
489
490 * infcmd.c (skip_finish_frames): New.
491 (finish_command): Call skip_finish_frames.
492
493 2016-06-01 Yao Qi <yao.qi@linaro.org>
494
495 PR remote/19998
496 * remote-fileio.c (remote_fileio_ctrl_c_signal_handler): Call
497 quit_serial_event_set.
498
499 2016-06-01 Joel Brobecker <brobecker@adacore.com>
500
501 GDB 7.11.1 released.
502
503 2016-05-31 Martin Galvan <martin.galvan@tallertechnologies.com>
504
505 PR c++/19893
506 * dwarf2loc.c (coerce_pieced_ref, indirect_synthetic_pointer,
507 fetch_const_value_from_synthetic_pointer): New functions.
508 (indirect_pieced_value): Move lower half to indirect_synthetic_pointer.
509 (pieced_value_funcs): Implement coerce_ref.
510 * valops.c (value_addr): Call coerce_ref for synthetic references.
511 * valprint.c (valprint_check_validity): Return true for synthetic
512 references. Also, don't show "<synthetic pointer>" if they reference
513 addressable values.
514 (generic_val_print_ref): Handle synthetic references. Also move some
515 code to print_ref_address.
516 (print_ref_address, get_value_addr_contents): New functions.
517
518 2016-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
519
520 PR c++/15231
521 * dwarf2read.c (enum pc_bounds_kind): Add PC_BOUNDS_INVALID.
522 (process_psymtab_comp_unit_reader, read_func_scope): Adjust callers.
523 (read_lexical_block_scope): Import DIEs from bare DW_TAG_lexical_block.
524 (read_call_site_scope): Adjust callers.
525 (dwarf2_get_pc_bounds): Implement pc_bounds_invalid.
526 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds): Adjust callers.
527
528 2016-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
529
530 Code cleanup: dwarf2_get_pc_bounds: -1/0/+1 -> enum
531 * dwarf2read.c (enum pc_bounds_kind) New.
532 (dwarf2_get_pc_bounds): Use it in the declaration.
533 (process_psymtab_comp_unit_reader): Adjust caller. Rename has_pc_info
534 to cu_bounds_kind.
535 (read_func_scope, read_lexical_block_scope, read_call_site_scope):
536 Adjust callers.
537 (dwarf2_get_pc_bounds): Use enum pc_bounds_kind in the definition.
538 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds): Adjust callers.
539
540 2016-05-29 Jan Kratochvil <jan.kratochvil@redhat.com>
541
542 * NEWS (QCatchSyscalls): Remove the parameter. Include ...
543 (QCatchSyscalls:1 in qSupported) ... this separate entry which got
544 deleted.
545
546 2016-05-29 Jan Kratochvil <jan.kratochvil@redhat.com>
547
548 * NEWS (N stop reply): Remove empty line.
549
550 2016-05-28 Alan Modra <amodra@gmail.com>
551
552 * compile/compile-object-load.c (link_callbacks_multiple_definition,
553 link_callbacks_warning, link_callbacks_undefined_symbol,
554 link_callbacks_undefined_symbol, link_callbacks_reloc_overflow,
555 link_callbacks_reloc_dangerous,
556 link_callbacks_unattached_reloc): Return void.
557
558 2016-05-27 Andrew Burgess <andrew.burgess@embecosm.com>
559
560 * opencl-lang.c (evaluate_subexp_opencl): If
561 EVAL_AVOID_SIDE_EFFECTS mode, forward the VALUE_LVAL attribute to
562 the returned value in the STRUCTOP_STRUCT case.
563
564 2016-05-27 Andrew Burgess <andrew.burgess@embecosm.com>
565
566 * eval.c (evaluate_subexp_standard): If EVAL_AVOID_SIDE_EFFECTS
567 mode, forward the VALUE_LVAL attribute to the returned value in
568 the STRUCTOP_PTR case.
569
570 2016-05-25 Tom Tromey <tom@tromey.com>
571
572 * python/py-value.c (value_object_as_number): Use correct spelling
573 of HAVE_LIBPYTHON2_4.
574
575 2016-05-25 Bernhard Heckel <bernhard.heckel@intel.com>
576
577 * f-typeprint.c (f_type_print_base): Replace 0 by show.
578
579 2016-05-25 Bernhard Heckel <bernhard.heckel@intel.com>
580
581 * f-typeprint.c (f_type_print_base): Decrease show by one.
582
583 2016-05-25 Bernhard Heckel <bernhard.heckel@intel.com>
584
585 * f-typeprint.c (f_type_print_base): Don't print fields when show < 0.
586
587 2016-05-25 Bernhard Heckel <bernhard.heckel@intel.com>
588
589 * f-typeprint.c (f_type_print_base): Take print level into account.
590
591 2016-05-24 Tom Tromey <tom@tromey.com>
592
593 PR python/17386:
594 * python/py-value.c (value_object_as_number): Add
595 nb_inplace_floor_divide, nb_inplace_true_divide, nb_index.
596
597 2016-05-24 Tom Tromey <tom@tromey.com>
598
599 * python/py-value.c (value_object_as_number): Add
600 nb_inplace_divide for Python 2.
601
602 2016-05-23 Tom Tromey <tom@tromey.com>
603
604 PR python/17981:
605 * python/py-breakpoint.c (gdbpy_breakpoints): Return a new tuple
606 when there are no breakpoints.
607
608 2016-05-24 Pedro Alves <palves@redhat.com>
609
610 PR gdb/19828
611 * linux-nat.c (attach_proc_task_lwp_callback): Mark the lwp
612 resumed, and add the thread to GDB's thread list.
613
614 2016-05-24 Pedro Alves <palves@redhat.com>
615
616 PR gdb/19828
617 * linux-nat.c (get_pending_status): If the thread reported the
618 event to the core and it's pending, use the pending status signal
619 number.
620
621 2016-05-24 Pedro Alves <palves@redhat.com>
622
623 PR gdb/19828
624 * linux-nat.c (lwp_lwpid_htab): New htab.
625 (lwp_info_hash, lwp_lwpid_htab_eq, lwp_lwpid_htab_create)
626 (lwp_lwpid_htab_add_lwp): New functions.
627 (lwp_list): Tweak comment.
628 (lwp_list_add, lwp_list_remove, lwp_lwpid_htab_remove_pid): New
629 functions.
630 (purge_lwp_list): Rewrite, using htab_traverse_noresize.
631 (add_initial_lwp): Add lwp to htab too. Use lwp_list_add.
632 (delete_lwp): Use lwp_list_remove. Remove htab too.
633 (find_lwp_pid): Search in htab.
634 (_initialize_linux_nat): Call lwp_lwpid_htab_create.
635 * linux-nat.h (struct lwp_info) <prev>: New field.
636
637 2016-05-24 Pedro Alves <palves@redhat.com>
638
639 PR gdb/19828
640 * linux-nat.c (lwp_lwpid_htab): New htab.
641 (lwp_info_hash, lwp_lwpid_htab_eq, lwp_lwpid_htab_create)
642 (lwp_lwpid_htab_add_lwp): New functions.
643 (lwp_list): Tweak comment.
644 (lwp_list_add, lwp_list_remove, lwp_lwpid_htab_remove_pid): New
645 functions.
646 (purge_lwp_list): Rewrite, using htab_traverse_noresize.
647 (add_initial_lwp): Add lwp to htab too. Use lwp_list_add.
648 (delete_lwp): Use lwp_list_remove. Remove htab too.
649 (find_lwp_pid): Search in htab.
650 (_initialize_linux_nat): Call lwp_lwpid_htab_create.
651 * linux-nat.h (struct lwp_info) <prev>: New field.
652
653 2016-05-24 Pedro Alves <palves@redhat.com>
654
655 PR gdb/19828
656 * linux-nat.c (linux_resume_one_lwp_throw): Clear the LWP's core
657 field.
658 (linux_nat_update_thread_list): Don't fetch the core if already
659 known.
660
661 2016-05-24 Pedro Alves <palves@redhat.com>
662
663 PR gdb/19828
664 * linux-tdep.c (find_mapping_size): Delete.
665 (linux_vsyscall_range_raw): Rewrite reading from
666 /proc/PID/task/PID/maps directly instead of using
667 gdbarch_find_memory_regions.
668
669 2016-05-24 Pedro Alves <palves@redhat.com>
670
671 PR gdb/19828
672 * linux-nat.c (report_thread_events): New global.
673 (linux_handle_extended_wait): Report
674 TARGET_WAITKIND_THREAD_CREATED if thread event reporting is
675 enabled.
676 (wait_lwp, linux_nat_filter_event): Report all thread exits if
677 thread event reporting is enabled. Remove comment.
678 (filter_exit_event): New function.
679 (linux_nat_wait_1): Use it.
680 (linux_nat_thread_events): New function.
681 (linux_nat_add_target): Install it as target_thread_events method.
682
683 2016-05-24 Yan-Ting Lin <currygt52@gmail.com>
684
685 * MAINTAINERS (Write After Approval): Add "Yan-Ting Lin".
686
687 2016-05-23 Yao Qi <yao.qi@arm.com>
688
689 * arch-utils.c (default_code_of_frame_writable): New function.
690 * arch-utils.h (default_code_of_frame_writable): Declare.
691 * arm-tdep.c (arm_code_of_frame_writable): New function.
692 (arm_gdbarch_init): Install gdbarch method
693 code_of_frame_writable if the target is M-profile.
694 * frame.c (skip_unwritable_frames): New function.
695 * frame.h (skip_unwritable_frames): Declare.
696 * gdbarch.sh (code_of_frame_writable): New.
697 * gdbarch.c, gdbarch.h: Re-generated.
698 * infcmd.c (finish_command): Call skip_unwritable_frames.
699
700 2016-05-23 Tom Tromey <tom@tromey.com>
701
702 PR python/19438, PR python/18393:
703 * python/py-objfile.c (objfpy_initialize): Initialize self->dict.
704 * python/py-progspace.c (pspy_initialize): Initialize self->dict.
705
706 2016-05-23 Gary Benson <gbenson@redhat.com>
707
708 * nat/gdb_thread_db.h (td_thr_validate_ftype): Remove typedef.
709 * linux-thread-db.c (struct thread_db_info) <td_thr_validate_p>:
710 Remove field.
711 (try_thread_db_load_1): Remove td_thr_validate initialization.
712
713 2016-05-23 Jon Boden <jon@ubuntubsd.org> (tiny change)
714
715 * configure.ac: Search for libutil-freebsd as alternative to libutil.
716 * configure: Re-generated.
717
718 2016-05-19 Andreas Schwab <schwab@suse.de>
719
720 * ia64-libunwind-tdep.c (libunwind_descr): Add cast from void *.
721 (libunwind_frame_set_descr): Likewise.
722 (libunwind_frame_cache): Likewise.
723 (libunwind_frame_dealloc_cache): Likewise.
724 (libunwind_frame_sniffer): Likewise.
725 (libunwind_search_unwind_table): Likewise.
726 (libunwind_sigtramp_frame_sniffer): Likewise.
727 (libunwind_get_reg_special): Likewise.
728 (libunwind_load): Likewise.
729 * ia64-linux-nat.c (ia64_linux_fetch_register): Likewise.
730 (ia64_linux_store_register): Likewise.
731 (ia64_linux_xfer_partial): Likewise.
732 * ia64-tdep.c (ia64_access_reg): Likewise.
733 (ia64_access_fpreg): Likewise.
734 (ia64_access_rse_reg): Likewise.
735 (ia64_access_rse_fpreg): Likewise.
736
737 2016-05-18 Tom Tromey <tom@tromey.com>
738
739 * rust-lang.c (rust_subscript): Initialize "high".
740
741 2016-05-17 Simon Marchi <simon.marchi@ericsson.com>
742
743 PR gdb/20045
744 * mi/mi-main.c (mi_on_resume): Call target_can_async_p instead
745 of target_is_async_p.
746
747 2016-05-17 Simon Marchi <simon.marchi@ericsson.com>
748
749 PR gdb/18077
750 * mi/mi-main.c (run_one_inferior): Use run target to determine
751 whether to run async or not.
752 (mi_cmd_exec_run): Likewise.
753
754 2016-05-17 Tom Tromey <tom@tromey.com>
755
756 * std-operator.def (OP_RANGE): Rename from OP_F90_RANGE.
757 * rust-lang.c: Don't include f-lang.h.
758 (rust_range, rust_compute_range, rust_subscript)
759 (rust_evaluate_subexp): Update.
760 * rust-exp.y: Don't include f-lang.h.
761 (ast_range, convert_ast_to_expression): Update.
762 * parse.c (operator_length_standard): Update.
763 * f-lang.h (enum f90_range_type): Move to expression.h.
764 * f-exp.y: Use OP_RANGE.
765 * expression.h (enum range_type): New enum; renamed from
766 f90_range_type.
767 * expprint.c: Don't include f-lang.h.
768 (print_subexp_standard, dump_subexp_body_standard): Use OP_RANGE.
769 * eval.c (value_f90_subarray, evaluate_subexp_standard): Update.
770
771 2016-05-17 Tom Tromey <tom@tromey.com>
772
773 * NEWS: Add Rust item.
774
775 2016-05-17 Tom Tromey <tom@tromey.com>
776 Manish Goregaokar <manishsmail@gmail.com>
777
778 * symtab.c (symbol_find_demangled_name): Handle Rust.
779 * symfile.c (init_filename_language_table): Treat ".rs" as Rust.
780 * std-operator.def (STRUCTOP_ANONYMOUS, OP_RUST_ARRAY): New
781 constants.
782 * rust-lang.h: New file.
783 * rust-lang.c: New file.
784 * rust-exp.y: New file.
785 * dwarf2read.c (read_file_scope): Add Rust producer sniffing.
786 (dwarf2_compute_name, read_func_scope, read_structure_type)
787 (read_base_type, read_subrange_type, set_cu_language)
788 (new_symbol_full, determine_prefix): Handle Rust.
789 * defs.h (enum language) <language_rust>: New constant.
790 * Makefile.in (SFILES): Add rust-exp.y, rust-lang.c.
791 (COMMON_OBS): Add rust-exp.o, rust-lang.o.
792
793 2016-05-17 Tom Tromey <tom@tromey.com>
794
795 * valprint.h (struct generic_val_print_array) <array_start,
796 array_end>: New fields.
797 * valprint.c (generic_val_print_array): Add "decorations"
798 parameter. Use "array_start", "array_end".
799 (generic_val_print) <TYPE_CODE_ARRAY>: Update.
800 * p-valprint.c (p_decorations): Update.
801 * m2-valprint.c (m2_decorations): Update.
802 * f-valprint.c (f_decorations): Update.
803 * c-valprint.c (c_decorations): Update.
804
805 2016-05-17 Tom Tromey <tom@tromey.com>
806
807 * NEWS: Add "maint selftest" entry.
808 * selftest.h: New file.
809 * selftest.c: New file.
810 * maint.c: Include selftest.h.
811 (maintenance_selftest): New function.
812 (_initialize_maint_cmds): Add "maint selftest" command.
813 * configure.ac (GDB_SELF_TEST): Maybe define.
814 * config.in, configure: Rebuild.
815 * Makefile.in (SFILES): Add selftest.c.
816 (COMMON_OBS): Add selftest.o.
817
818 2016-05-17 Tom Tromey <tom@tromey.com>
819
820 * expprint.c: Include f-lang.h.
821 (print_subexp_standard, dump_subexp_body_standard): Handle
822 OP_F90_RANGE.
823
824 2016-05-17 Tom Tromey <tom@tromey.com>
825
826 * Makefile.in (init.c): Search .y files for initialization
827 functions.
828
829 2016-05-12 Doug Evans <dje@google.com>
830
831 PR symtab/19999
832 * dwarf2loc.c (dwarf2_find_location_expression): For DWO files still
833 add base_offset.
834
835 2016-05-10 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
836
837 * iq2000-tdep.c (iq2000_scan_prologue): Remove if that shouldn't guard
838 anything.
839 * linespec.c (add_sal_to_sals): Restore call to symtab_to_fullname.
840
841 2016-05-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
842
843 * arm-tdep.c (arm_elf_make_msymbol_special): Use
844 ARM_GET_SYM_BRANCH_TYPE to get branch type of a symbol.
845
846 2016-05-07 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
847
848 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Remove unused
849 variables.
850 * aarch64-tdep.c (aarch64_skip_prologue): Likewise.
851 (aarch64_scan_prologue): Likewise.
852 (aarch64_prologue_prev_register): Likewise.
853 (aarch64_dwarf2_prev_register): Likewise.
854 (pass_in_v): Likewise.
855 (aarch64_push_dummy_call): Likewise.
856 (aarch64_breakpoint_from_pc): Likewise.
857 (aarch64_return_in_memory): Likewise.
858 (aarch64_return_value): Likewise.
859 (aarch64_displaced_step_b_cond): Likewise.
860 (aarch64_displaced_step_cb): Likewise.
861 (aarch64_displaced_step_tb): Likewise.
862 (aarch64_gdbarch_init): Likewise.
863 (aarch64_process_record): Likewise.
864 * alpha-mdebug-tdep.c (alpha_mdebug_init_abi): Likewise.
865 * alpha-tdep.c (_initialize_alpha_tdep): Likewise.
866 * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise.
867 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Likewise.
868 * amd64-tdep.c (fixup_riprel): Likewise.
869 * amd64-windows-tdep.c (amd64_windows_frame_decode_epilogue): Likewise.
870 (amd64_windows_frame_decode_insns): Likewise.
871 (amd64_windows_frame_cache): Likewise.
872 (amd64_windows_frame_prev_register): Likewise.
873 (amd64_windows_frame_this_id): Likewise.
874 (amd64_windows_init_abi): Likewise.
875 * arm-linux-tdep.c (arm_linux_get_syscall_number): Likewise.
876 (arm_linux_get_next_pcs_syscall_next_pc): Likewise.
877 * arm-symbian-tdep.c (arm_symbian_init_abi): Likewise.
878 * arm-tdep.c (arm_make_epilogue_frame_cache): Likewise.
879 (arm_epilogue_frame_prev_register): Likewise.
880 (arm_record_vdata_transfer_insn): Likewise.
881 (arm_record_exreg_ld_st_insn): Likewise.
882 * auto-load.c (execute_script_contents): Likewise.
883 (print_scripts): Likewise.
884 * avr-tdep.c (avr_frame_prev_register): Likewise.
885 (avr_push_dummy_call): Likewise.
886 * bfin-linux-tdep.c (bfin_linux_sigframe_init): Likewise.
887 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
888 * blockframe.c (find_pc_partial_function_gnu_ifunc): Likewise.
889 * break-catch-throw.c (fetch_probe_arguments): Likewise.
890 * breakpoint.c (breakpoint_xfer_memory): Likewise.
891 (breakpoint_init_inferior): Likewise.
892 (breakpoint_inserted_here_p): Likewise.
893 (software_breakpoint_inserted_here_p): Likewise.
894 (hardware_breakpoint_inserted_here_p): Likewise.
895 (bpstat_what): Likewise.
896 (break_range_command): Likewise.
897 (save_breakpoints): Likewise.
898 * coffread.c (coff_symfile_read): Likewise.
899 * cris-tdep.c (cris_push_dummy_call): Likewise.
900 (cris_scan_prologue): Likewise.
901 (cris_register_size): Likewise.
902 (_initialize_cris_tdep): Likewise.
903 * d-exp.y: Likewise.
904 * dbxread.c (dbx_read_symtab): Likewise.
905 (process_one_symbol): Likewise.
906 (coffstab_build_psymtabs): Likewise.
907 (elfstab_build_psymtabs): Likewise.
908 * dicos-tdep.c (dicos_init_abi): Likewise.
909 * disasm.c (do_mixed_source_and_assembly): Likewise.
910 (gdb_disassembly): Likewise.
911 * dtrace-probe.c (dtrace_process_dof): Likewise.
912 * dwarf2read.c (error_check_comp_unit_head): Likewise.
913 (build_type_psymtabs_1): Likewise.
914 (skip_one_die): Likewise.
915 (process_imported_unit_die): Likewise.
916 (dwarf2_physname): Likewise.
917 (read_file_scope): Likewise.
918 (setup_type_unit_groups): Likewise.
919 (create_dwo_cu_reader): Likewise.
920 (create_dwo_cu): Likewise.
921 (create_dwo_unit_in_dwp_v1): Likewise.
922 (create_dwo_unit_in_dwp_v2): Likewise.
923 (lookup_dwo_unit_in_dwp): Likewise.
924 (free_dwo_file): Likewise.
925 (check_producer): Likewise.
926 (dwarf2_add_typedef): Likewise.
927 (dwarf2_add_member_fn): Likewise.
928 (read_unsigned_leb128): Likewise.
929 (read_signed_leb128): Likewise.
930 (dwarf2_const_value): Likewise.
931 (follow_die_sig_1): Likewise.
932 (dwarf_decode_macro_bytes): Likewise.
933 * extension.c (restore_active_ext_lang): Likewise.
934 * frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Likewise.
935 * ft32-tdep.c (ft32_analyze_prologue): Likewise.
936 * gdbtypes.c (lookup_typename): Likewise.
937 (resolve_dynamic_range): Likewise.
938 (check_typedef): Likewise.
939 * h8300-tdep.c (h8300_is_argument_spill): Likewise.
940 (h8300_gdbarch_init): Likewise.
941 * hppa-tdep.c (hppa32_push_dummy_call): Likewise.
942 (hppa_frame_this_id): Likewise.
943 (_initialize_hppa_tdep): Likewise.
944 * hppanbsd-tdep.c (hppanbsd_sigtramp_cache_init): Likewise.
945 * hppaobsd-tdep.c (hppaobsd_supply_fpregset): Likewise.
946 * i386-dicos-tdep.c (i386_dicos_init_abi): Likewise.
947 * i386-tdep.c (i386_bnd_type): Likewise.
948 (i386_gdbarch_init): Likewise.
949 (i386_mpx_bd_base): Likewise.
950 * i386nbsd-tdep.c (i386nbsd_sigtramp_cache_init): Likewise.
951 * i386obsd-tdep.c (i386obsd_elf_init_abi): Likewise.
952 * ia64-tdep.c (examine_prologue): Likewise.
953 (ia64_frame_cache): Likewise.
954 (ia64_push_dummy_call): Likewise.
955 * infcmd.c (finish_command_fsm_async_reply_reason): Likewise.
956 (default_print_one_register_info): Likewise.
957 * infrun.c (infrun_thread_ptid_changed): Likewise.
958 (thread_still_needs_step_over): Likewise.
959 (stop_all_threads): Likewise.
960 (restart_threads): Likewise.
961 (keep_going_stepped_thread): Likewise.
962 * iq2000-tdep.c (iq2000_scan_prologue): Likewise.
963 * language.c (language_init_primitive_type_symbols): Likewise.
964 * linespec.c (add_sal_to_sals): Likewise.
965 * linux-nat.c (status_callback): Likewise.
966 (kill_unfollowed_fork_children): Likewise.
967 (linux_nat_kill): Likewise.
968 * linux-tdep.c (linux_fill_prpsinfo): Likewise.
969 * linux-thread-db.c (thread_db_notice_clone): Likewise.
970 (record_thread): Likewise.
971 * location.c (string_to_event_location_basic): Likewise.
972 * m32c-tdep.c (m32c_prev_register): Likewise.
973 * m32r-linux-tdep.c (m32r_linux_init_abi): Likewise.
974 * m32r-tdep.c (decode_prologue): Likewise.
975 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
976 * machoread.c (macho_symtab_read): Likewise.
977 (macho_symfile_read): Likewise.
978 (macho_symfile_offsets): Likewise.
979 * maint.c (set_per_command_cmd): Likewise.
980 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Likewise.
981 (mi_cmd_stack_list_variables): Likewise.
982 * mi/mi-main.c (mi_cmd_exec_run): Likewise.
983 (output_register): Likewise.
984 (mi_cmd_execute): Likewise.
985 (mi_cmd_trace_define_variable): Likewise.
986 (print_variable_or_computed): Likewise.
987 * minsyms.c (prim_record_minimal_symbol_full): Likewise.
988 * mn10300-tdep.c (mn10300_frame_prev_register): Likewise.
989 * msp430-tdep.c (msp430_pseudo_register_write): Likewise.
990 * mt-tdep.c (mt_registers_info): Likewise.
991 * nios2-tdep.c (nios2_analyze_prologue): Likewise.
992 (nios2_push_dummy_call): Likewise.
993 (nios2_frame_unwind_cache): Likewise.
994 (nios2_stub_frame_cache): Likewise.
995 (nios2_stub_frame_sniffer): Likewise.
996 (nios2_gdbarch_init): Likewise.
997 * ppc-ravenscar-thread.c: Likewise.
998 * ppcfbsd-tdep.c (ppcfbsd_sigtramp_frame_cache): Likewise.
999 * python/py-evts.c (add_new_registry): Likewise.
1000 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
1001 (bpfinishpy_detect_out_scope_cb): Likewise.
1002 * python/py-framefilter.c (py_print_value): Likewise.
1003 * python/py-inferior.c (infpy_write_memory): Likewise.
1004 * python/py-infevents.c (create_inferior_call_event_object): Likewise.
1005 * python/py-infthread.c (thpy_get_ptid): Likewise.
1006 * python/py-linetable.c (ltpy_get_pcs_for_line): Likewise.
1007 (ltpy_get_all_source_lines): Likewise.
1008 (ltpy_is_valid): Likewise.
1009 (ltpy_iternext): Likewise.
1010 * python/py-symtab.c (symtab_and_line_to_sal_object): Likewise.
1011 * python/py-unwind.c (pyuw_object_attribute_to_pointer): Likewise.
1012 (unwind_infopy_str): Likewise.
1013 * python/py-varobj.c (py_varobj_get_iterator): Likewise.
1014 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
1015 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
1016 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
1017 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Likewise.
1018 * s390-linux-tdep.c (s390_supply_tdb_regset): Likewise.
1019 (s390_frame_prev_register): Likewise.
1020 (s390_dwarf2_frame_init_reg): Likewise.
1021 (s390_record_vr): Likewise.
1022 (s390_process_record): Likewise.
1023 * score-tdep.c (score_push_dummy_call): Likewise.
1024 (score3_analyze_prologue): Likewise.
1025 * sh-tdep.c (sh_extract_return_value_nofpu): Likewise.
1026 * sh64-tdep.c (sh64_analyze_prologue): Likewise.
1027 (sh64_push_dummy_call): Likewise.
1028 (sh64_extract_return_value): Likewise.
1029 (sh64_do_fp_register): Likewise.
1030 * solib-aix.c (solib_aix_get_section_offsets): Likewise.
1031 * solib-darwin.c (darwin_read_exec_load_addr_from_dyld): Likewise.
1032 (darwin_solib_read_all_image_info_addr): Likewise.
1033 * solib-dsbt.c (enable_break): Likewise.
1034 * solib-frv.c (enable_break2): Likewise.
1035 (frv_fdpic_find_canonical_descriptor): Likewise.
1036 * solib-svr4.c (svr4_handle_solib_event): Likewise.
1037 * sparc-tdep.c (sparc_skip_stack_check): Likewise.
1038 * sparc64-linux-tdep.c (sparc64_linux_get_longjmp_target): Likewise.
1039 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
1040 * spu-tdep.c (info_spu_dma_cmdlist): Likewise.
1041 * stack.c (read_frame_local): Likewise.
1042 * symfile.c (symbol_file_add_separate): Likewise.
1043 (remove_symbol_file_command): Likewise.
1044 * symmisc.c (maintenance_print_one_line_table): Likewise.
1045 * symtab.c (symbol_cache_flush): Likewise.
1046 (basic_lookup_transparent_type): Likewise.
1047 (sort_search_symbols_remove_dups): Likewise.
1048 * target.c (target_memory_map): Likewise.
1049 (target_detach): Likewise.
1050 (target_resume): Likewise.
1051 (acquire_fileio_fd): Likewise.
1052 (target_store_registers): Likewise.
1053 * thread.c (print_thread_info_1): Likewise.
1054 * tic6x-tdep.c (tic6x_analyze_prologue): Likewise.
1055 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Likewise.
1056 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
1057 (tilegx_analyze_prologue): Likewise.
1058 (tilegx_stack_frame_destroyed_p): Likewise.
1059 (tilegx_frame_cache): Likewise.
1060 * tracefile.c (trace_save): Likewise.
1061 * tracepoint.c (encode_actions_and_make_cleanup): Likewise.
1062 (start_tracing): Likewise.
1063 (print_one_static_tracepoint_marker): Likewise.
1064 * tui/tui.c (tui_enable): Likewise.
1065 * valops.c (value_struct_elt_bitpos): Likewise.
1066 (find_overload_match): Likewise.
1067 (find_oload_champ): Likewise.
1068 * value.c (value_contents_copy_raw): Likewise.
1069 * windows-tdep.c (windows_get_tlb_type): Likewise.
1070 * x86-linux-nat.c (x86_linux_enable_btrace): Likewise.
1071 * xcoffread.c (record_minimal_symbol): Likewise.
1072 (scan_xcoff_symtab): Likewise.
1073 * xtensa-tdep.c (execute_code): Likewise.
1074 (xtensa_gdbarch_init): Likewise.
1075 (_initialize_xtensa_tdep): Likewise.
1076
1077 2016-05-04 Ulrich Weigand <uweigand@de.ibm.com>
1078
1079 * spu-linux-nat.c (spu_bfd_iovec_pread): Add pointer cast for C++.
1080 (spu_bfd_open): Likewise.
1081
1082 2016-05-04 Yao Qi <yao.qi@linaro.org>
1083
1084 PR gdb/19947
1085 * corefile.c (read_memory): Rename it to ...
1086 (read_memory_object): ... it. Add parameter object.
1087 (read_memory): Call read_memory_object.
1088 (read_stack): Likewise.
1089 (read_code): Likewise.
1090
1091 2016-05-03 Yunlian Jiang <yunlian@google.com>
1092 Doug Evans <dje@google.com>
1093
1094 PR symtab/19914
1095 * dwarf2read.c (open_and_init_dwp_file): Look at backlink if objfile
1096 is separate debug file.
1097
1098 2016-05-03 Don Breazeal <donb@codesourcery.com>
1099
1100 * serial.h (gdb_pipe): Fix argument names in comment.
1101
1102 2016-05-03 Pedro Alves <palves@redhat.com>
1103
1104 PR python/20037
1105 * python/python.c (_initialize_python) [IS_PY3K]: xstrdup/xfree
1106 oldloc.
1107
1108 2016-05-03 Pedro Alves <palves@redhat.com>
1109
1110 * python/python.c (_initialize_python) [IS_PY3K]: Remove dead
1111 code.
1112
1113 2016-05-03 Pedro Alves <palves@redhat.com>
1114
1115 * configure.ac (PYTHON_LIBS): Sed away "-Xlinker -export-dynamic".
1116 * configure: Regenerate.
1117
1118 2016-05-03 Pedro Alves <palves@redhat.com>
1119
1120 * configure.ac (checking for the dynamic export flag): Add
1121 $PYTHON_CPPFLAGS to CPPFLAGS.
1122 * configure: Regenerate.
1123
1124 2016-05-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1125
1126 * symfile.c (find_pc_overlay): Add braces to avoid -Wparentheses
1127 warning.
1128 (find_pc_mapped_section): Likewise.
1129 (list_overlays_command): Likewise.
1130
1131 2016-05-02 Eli Zaretskii <eliz@gnu.org>
1132
1133 * windows-nat.c (_initialize_check_for_gdb_ini): Fix off-by-one
1134 error in allocation of space for "$HOME/.gdbinit" string. This
1135 caused GDB to abort on startup whenever a '~/gdb.ini' file was
1136 actually found, because xsnprintf would hit an assertion
1137 violation.
1138
1139 2016-04-28 Simon Marchi <simon.marchi@ericsson.com>
1140
1141 * cli/cli-decode.c (help_cmd_list): Do not list commands that
1142 are deprecated.
1143
1144 2016-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1145
1146 * remote.c (remote_start_remote): Detect PACKET_vFile_setfs.support.
1147
1148 2016-04-27 Martin Galvan <martin.galvan@tallertechnologies.com>
1149
1150 * c-valprint.c (c_value_print): Always convert val back to reference
1151 type if we converted it to a pointer type.
1152
1153 2016-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
1154
1155 * configure.ac: Enhance configure check for babeltrace to reject
1156 non-C++-enabled versions.
1157 * configure: Regenerate.
1158
1159 2016-04-26 Sanimir Agovic <sanimir.agovic@intel.com>
1160 Keven Boell <keven.boell@intel.com>
1161 Bernhard Heckel <bernhard.heckel@intel.com>
1162
1163 * f-valprint.c (f77_create_arrayprint_offset_tbl): Remove
1164 function.
1165 (F77_DIM_SIZE, F77_DIM_OFFSET): Remove macro.
1166 (f77_print_array_1): Use value_subscript to subscript a
1167 value array.
1168 (f77_print_array): Remove call to f77_create_arrayprint_offset_tbl.
1169 (f_val_print): Use value_field to construct a field value.
1170
1171 2016-04-26 Bernhard Heckel <bernhard.heckel@intel.com>
1172
1173 * valarith.c (value_address): Resolve dynamic types.
1174
1175 2016-04-26 Bernhard Heckel <bernhard.heckel@intel.com>
1176 Keven Boell <kevel.boell@intel.com>
1177
1178 * NEWS: Add new supported features for fortran.
1179 * gdbtypes.c (remove_dyn_prop): New.
1180 (resolve_dynamic_struct): Keep type length for fortran structs.
1181 * gdbtypes.h: Forward declaration of new function.
1182 * value.c (value_address): Return dynamic resolved location of a value.
1183 (set_value_component_location): Adjust the value address
1184 for single value prints.
1185 (value_primitive_field): Support value types with a dynamic location.
1186 (set_internalvar): Remove dynamic location property of
1187 internal variables.
1188
1189 2016-04-25 Pedro Alves <palves@redhat.com>
1190 Yao Qi <yao.qi@linaro.org>
1191
1192 * mem-break.c (set_raw_breakpoint_at): Create a raw breakpoint
1193 object. Insert it if it is not inserted yet. Increase the
1194 refcount and link it into the proc's raw breakpoint list.
1195
1196 2016-04-25 Yao Qi <yao.qi@linaro.org>
1197
1198 * breakpoint.c (should_be_inserted): Return 0 if the location's
1199 owner is not single step breakpoint or single step breakpoint's
1200 thread isn't the thread which is stepping past a breakpoint.
1201 * gdbarch.sh (software_single_step): Update comments.
1202 * gdbarch.h: Regenerated.
1203 * infrun.c (struct step_over_info) <thread>: New field.
1204 (set_step_over_info): New argument 'thread'. Callers updated.
1205 (clear_step_over_info): Set field thread to -1.
1206 (thread_is_stepping_over_breakpoint): New function.
1207 * infrun.h (thread_is_stepping_over_breakpoint): Declaration.
1208
1209 2016-04-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1210
1211 * ppc-linux-nat.c (ppc_linux_read_description): Use PPC_FEATURE_HAS_VSX
1212 and PPC_FEATURE_HAS_ALTIVEC to check if such features are available.
1213
1214 2016-04-22 Yao Qi <yao.qi@linaro.org>
1215
1216 * valops.c (read_value_memory): New local variable 'stack'.
1217 Set it to either TARGET_OBJECT_STACK_MEMORY or
1218 TARGET_OBJECT_MEMORY.
1219
1220 2016-04-22 Pedro Alves <palves@redhat.com>
1221
1222 * ada-exp.y: Remove all yy symbol remappings.
1223 (GDB_YY_REMAP_PREFIX): Define.
1224 Include "yy-remap.h".
1225 * ada-lang.c (ada_language_defn): Adjust.
1226 * ada-lang.h (ada_error): Rename to ...
1227 (ada_yyerror): ... this.
1228 * c-exp.y: Remove all yy symbol remappings.
1229 (GDB_YY_REMAP_PREFIX): Define.
1230 Include "yy-remap.h".
1231 * c-lang.c (c_language_defn, cplus_language_defn)
1232 (asm_language_defn, minimal_language_defn): Adjust.
1233 * c-lang.h (c_error): Rename to ...
1234 (c_yyerror): ... this.
1235 * d-exp.y: Remove all yy symbol remappings.
1236 (GDB_YY_REMAP_PREFIX): Define.
1237 Include "yy-remap.h".
1238 * d-lang.c (d_language_defn): Adjust.
1239 * d-lang.h (d_error): Rename to ...
1240 (d_yyerror): ... this.
1241 * f-exp.y: Remove all yy symbol remappings.
1242 (GDB_YY_REMAP_PREFIX): Define.
1243 Include "yy-remap.h".
1244 * f-lang.c (f_language_defn): Adjust.
1245 * f-lang.h (f_error): Rename to ...
1246 (f_yyerror): ... this.
1247 * go-exp.y: Remove all yy symbol remappings.
1248 (GDB_YY_REMAP_PREFIX): Define.
1249 Include "yy-remap.h".
1250 * go-lang.c (go_language_defn): Adjust.
1251 * go-lang.h (go_error): Rename to ...
1252 (go_yyerror): ... this.
1253 * jv-exp.y: Remove all yy symbol remappings.
1254 (GDB_YY_REMAP_PREFIX): Define.
1255 Include "yy-remap.h".
1256 * jv-lang.c (java_language_defn): Adjust.
1257 * jv-lang.h (java_error): Rename to ...
1258 (java_yyerror): ... this.
1259 * m2-exp.y: Remove all yy symbol remappings.
1260 (GDB_YY_REMAP_PREFIX): Define.
1261 Include "yy-remap.h".
1262 * m2-lang.c (m2_language_defn): Adjust.
1263 * m2-lang.h (m2_error): Rename to ...
1264 (m2_yyerror): ... this.
1265 * objc-exp.y: Remove all yy symbol remappings.
1266 (GDB_YY_REMAP_PREFIX): Define.
1267 Include "yy-remap.h".
1268 * objc-lang.c (objc_language_defn): Adjust.
1269 * opencl-lang.c (opencl_language_defn): Adjust.
1270 * p-exp.y: Remove all yy symbol remappings.
1271 (GDB_YY_REMAP_PREFIX): Define.
1272 Include "yy-remap.h".
1273 * p-lang.c (pascal_language_defn): Adjust.
1274 * p-lang.h (pascal_error): Rename to ...
1275 (pascal_yyerror): ... this.
1276 * yy-remap.h: New file.
1277
1278 2016-04-22 Pedro Alves <palves@redhat.com>
1279
1280 * common/common-exceptions.h (GDB_XCPT_TRY): Remove mention of
1281 the foreign frames issue.
1282 [__cplusplus] (GDB_XCPT): Define as GDB_XCPT_TRY.
1283
1284 2016-04-22 Pedro Alves <palves@redhat.com>
1285
1286 * common/common-exceptions.c (enum catcher_state, struct catcher)
1287 (current_catcher): Define in C++ mode too.
1288 (exceptions_state_mc_catch): Call throw_exception_sjlj instead of
1289 throw_exception.
1290 (throw_exception_sjlj, throw_exception_cxx): New functions,
1291 factored out from throw_exception.
1292 (throw_exception): Reimplement.
1293 * common/common-exceptions.h (exceptions_state_mc_init)
1294 (exceptions_state_mc_action_iter)
1295 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
1296 Declare in C++ mode too.
1297 (TRY): Rename to ...
1298 (TRY_SJLJ): ... this.
1299 (CATCH): Rename to ...
1300 (CATCH_SJLJ): ... this.
1301 (END_CATCH): Rename to ...
1302 (END_CATCH_SJLJ): ... this.
1303 [GDB_XCPT == GDB_XCPT_SJMP] (TRY, CATCH, END_CATCH): Map to SJLJ
1304 equivalents.
1305 (throw_exception): Update comments.
1306 (throw_exception_sjlj): Declare.
1307 * event-top.c (gdb_rl_callback_read_char_wrapper): Extend intro
1308 comment. Wrap body in TRY_SJLJ/CATCH_SJLJ and rethrow any
1309 intercepted exception.
1310 (gdb_rl_callback_handler): New function.
1311 (gdb_rl_callback_handler_install): Always install
1312 gdb_rl_callback_handler as readline callback.
1313
1314 2016-04-22 Pedro Alves <palves@redhat.com>
1315
1316 * event-top.c (rl_callback_read_char_wrapper): Rename to ...
1317 (gdb_rl_callback_read_char_wrapper): ... this.
1318 (change_line_handler, gdb_setup_readline): Adjust.
1319
1320 2016-04-22 Yao Qi <yao.qi@linaro.org>
1321
1322 * aarch32-linux-nat.c (aarch32_gp_regcache_supply): Clear CPSR
1323 bits 20 to 23.
1324
1325 2016-04-22 Joel Brobecker <brobecker@adacore.com>
1326
1327 * MAINTAINER: Remove myself as AIX Maintainer.
1328
1329 2016-04-22 Maciej W. Rozycki <macro@imgtec.com>
1330
1331 * mips-tdep.c (mips_gdbarch_init): For GDB_OSABI_LINUX set
1332 `num_regs' to 90 rather than 79. Where a target description is
1333 present adjust the setting appropriately.
1334
1335 2016-04-21 Pedro Alves <palves@redhat.com>
1336
1337 * common/common-exceptions.h (GDB_XCPT_TRY): Add comment.
1338 (GDB_XCPT): Always define as GDB_XCPT_SJMP.
1339
1340 2016-04-21 Pedro Alves <palves@redhat.com>
1341
1342 * aix-thread.c (pdc_read_data, pdc_write_data): Add cast.
1343 (aix_thread_resume): Use PTRACE_TYPE_ARG5.
1344 * rs6000-nat.c (rs6000_ptrace64): Use PTRACE_TYPE_ARG5.
1345 (rs6000_ptrace_ldinfo): Change type of 'ldi' local to void
1346 pointer, and cast return to gdb_byte pointer.
1347
1348 2016-04-21 Pedro Alves <palves@redhat.com>
1349
1350 * s390-linux-nat.c (fetch_regset, store_regset, check_regset): Use
1351 void * instead of gdb_byte *.
1352
1353 2016-04-21 Pedro Alves <palves@redhat.com>
1354
1355 * dwarf2read.c (try_open_dwop_file, open_dwo_file)
1356 (file_file_name, file_full_name): Add char * cast to sentinel in
1357 concat/reconcat calls.
1358 * event-top.c (top_level_prompt): Likewise.
1359 * guile/guile.c (initialize_scheme_side): Likewise.
1360 * linux-tdep.c (linux_fill_prpsinfo): Likewise.
1361 * macrotab.c (macro_source_fullname): Likewise.
1362 * main.c (get_init_files, captured_main): Likewise.
1363 * psymtab.c (psymtab_to_fullname): Likewise.
1364 * python/python.c (_initialize_python)
1365 (gdbpy_finish_initialization): Likewise.
1366 * source.c (symtab_to_fullname): Likewise.
1367
1368 2016-04-20 Pedro Alves <palves@redhat.com>
1369
1370 * build-with-cxx.m4 (GDB_AC_BUILD_WITH_CXX): Default to yes.
1371 * configure: Renegerate.
1372
1373 2016-04-20 Pedro Alves <palves@redhat.com>
1374
1375 * darwin-nat.c (darwin_decode_message): Use gdb_signal_from_host.
1376
1377 2016-04-20 Pedro Alves <palves@redhat.com>
1378
1379 * aarch64-tdep.c (aarch64_record_load_store): Change type of
1380 'reg_rm_val' local to ULONGEST.
1381
1382 2016-04-20 Pedro Alves <palves@redhat.com>
1383
1384 * darwin-nat.c (darwin_resume_thread): Add uintptr_t cast.
1385
1386 2016-04-20 Doug Evans <xdje42@gmail.com>
1387
1388 * symmisc.c (dump_symtab_1): Print owning compunit for identical
1389 blockvectors.
1390
1391 2016-04-20 Yao Qi <yao.qi@linaro.org>
1392
1393 * aarch32-linux-nat.c: Include "arch/arm-linux.h".
1394
1395 2016-04-20 Yao Qi <yao.qi@linaro.org>
1396
1397 * arm-linux-tdep.h (ARM_CPSR_GREGNUM): Move it to ...
1398 * arch/arm-linux.h: ... here.
1399
1400 2016-04-19 John Baldwin <jhb@FreeBSD.org>
1401
1402 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Change xstateregs
1403 to void *.
1404 (amd64bsd_store_inferior_registers): Likewise.
1405 * fbsd-nat.c (resume_one_thread_cb): Explicitly cast data to ptid_t *.
1406 (resume_all_threads_cb): Likewise.
1407 * i386bsd-nat.c (i386bsd_supply_gregset): Cast gregs to char *.
1408 (i386bsd_collect_gregset): Likewise.
1409 (i386bsd_fetch_inferior_registers): Change xstateregs to void *.
1410 (i386bsd_store_inferior_registers): Likewise.
1411
1412 2016-04-19 John Baldwin <jhb@FreeBSD.org>
1413
1414 * main.c (setup_alternate_signal_stack): Cast to char *.
1415
1416 2016-04-19 Doug Evans <xdje42@gmail.com>
1417
1418 * symmisc.c (dump_symtab_1, dump_symtab): Delete arg objfile.
1419 All callers updated.
1420
1421 2016-04-19 Doug Evans <xdje42@gmail.com>
1422
1423 PR gdb/17911
1424 * source.c (is_regular_file): New arg errno_ptr.
1425 All callers updated.
1426
1427 2016-04-19 Andreas Arnez <arnez@linux.vnet.ibm.com>
1428
1429 * linux-record.c (record_linux_system_call): Merge handling for
1430 readlink/recv/read and pipe/pipe2.
1431
1432 2016-04-14 Walfred Tedeschi <walfred.tedeschi@intel.com>
1433
1434 * features/i386/amd64-mpx-linux.xml: Remove AVX feature.
1435 * features/i386/amd64-mpx.xml: Remove AVX feature.
1436 * features/i386/i386-mpx-linux.xml: Remove AVX feature.
1437 * features/i386/i386-mpx.xml: Remove AVX feature.
1438 * features/i386/amd64-mpx-linux.c: Regenerate.
1439 * features/i386/amd64-mpx.c: Regenerate.
1440 * features/i386/i386-mpx-linux.c: Regenerate.
1441 * features/i386/i386-mpx.c: Regenerate.
1442 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
1443 * regformats/i386/amd64-mpx.dat: Regenerate.
1444 * regformats/i386/i386-mpx-linux.dat: Regenerate.
1445 * regformats/i386/i386-mpx.dat: Regenerate.
1446
1447 2016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
1448
1449 * amd64-linux-tdep.c (features/i386/amd64-avx-mpx-linux.c):
1450 New include.
1451 (amd64_linux_core_read_description): Add case for
1452 X86_XSTATE_AVX_MPX_MASK.
1453 (_initialize_amd64_linux_tdep): Call initialize_tdesc_amd64_avx_mpx_linux.
1454 * amd64-linux-tdep.h (tdesc_amd64_avx_mpx_linux): New definition.
1455 * amd64-tdep.c (features/i386/amd64-avx-mpx.c): New include.
1456 (amd64_target_description): Add case for X86_XSTATE_AVX_MPX_MASK.
1457 (_initialize_amd64_tdep): Call initialize_tdesc_amd64_avx_mpx.
1458 * common/x86-xstate.h (X86_XSTATE_MPX_MASK): Remove AVX bits.
1459 (X86_XSTATE_AVX_MPX_MASK): New case.
1460 * features/Makefile (i386/i386-avx-mpx, i386/i386-avx-mpx-linux)
1461 (i386/amd64-avx-mpx, i386/amd64-avx-mpx-linux): New rules.
1462 (i386/i386-avx-mpx-expedite, i386/i386-avx-mpx-linux-expedite)
1463 (i386/amd64-avx-mpx-expedite, i386/amd64-avx-mpx-linux-expedite):
1464 New expedites.
1465 * i386-linux-tdep.c (features/i386/i386-avx-mpx-linux.c): New
1466 include.
1467 (i386_linux_core_read_description): Add case
1468 X86_XSTATE_AVX_MPX_MASK.
1469 (_initialize_i386_linux_tdep): Call
1470 initialize_tdesc_i386_avx_mpx_linux.
1471 * i386-linux-tdep.h (tdesc_i386_avx_mpx_linux): New include.
1472 * i386-tdep.c (features/i386/i386-avx-mpx.c): New include.
1473 (i386_target_description): Add case for X86_XSTATE_AVX_MPX_MASK.
1474 * x86-linux-nat.c (x86_linux_read_description): Add case for
1475 X86_XSTATE_AVX_MPX_MASK.
1476 * features/i386/amd64-avx-mpx-linux.xml: New file.
1477 * features/i386/i386-avx-mpx-linux.xml: New file.
1478 * features/i386/i386-avx-mpx.xml: New file.
1479 * features/i386/amd64-avx-mpx.xml: New file.
1480 * features/i386/amd64-avx-mpx-linux.c: Generated.
1481 * features/i386/amd64-avx-mpx.c: Generated.
1482 * features/i386/i386-avx-mpx-linux.c: Generated.
1483 * features/i386/i386-avx-mpx.c: Generated.
1484 * regformats/i386/amd64-avx-mpx-linux.dat: Generated.
1485 * regformats/i386/amd64-avx-mpx.dat: Generated.
1486 * regformats/i386/i386-avx-mpx-linux.dat: Generated.
1487 * regformats/i386/i386-avx-mpx.dat: Generated.
1488
1489 2016-04-18 Pedro Alves <palves@redhat.com>
1490
1491 * ptrace.m4 (GDB_AC_PTRACE): Don't run tests in C++ mode.
1492 * configure: Regenerate.
1493
1494 2016-04-18 Martin Galvan <martin.galvan@tallertechnologies.com>
1495
1496 * valops.c (value_addr): For C++ references, set the copied value's
1497 enclosing_type as well.
1498
1499 2016-04-18 Yao Qi <yao.qi@linaro.org>
1500
1501 Revert:
1502 2016-04-15 Yao Qi <yao.qi@linaro.org>
1503
1504 * arm-tdep.c (thumb_stack_frame_destroyed_p): Return zero if
1505 PC is far from the end of function.
1506
1507 2016-04-16 Pedro Alves <palves@redhat.com>
1508
1509 * ada-exp.y (yydefred): Define as ada_yydefred.
1510
1511 2016-04-15 Pedro Alves <palves@redhat.com>
1512
1513 * ada-lang.c (ada_lookup_struct_elt_type): Constify 'type_str' and
1514 'name_str' locals.
1515
1516 2016-04-15 Pedro Alves <palves@redhat.com>
1517
1518 * btrace.c (pt_btrace_insn_flags): Change return type to
1519 btrace_insn_flags. Use btrace_insn_flags for local.
1520
1521 2016-04-15 Pedro Alves <palves@redhat.com>
1522
1523 * nat/linux-ptrace.h [__mips__] (GDB_ARCH_IS_TRAP_BRKPT): Also
1524 accept TRAP_BRKPT.
1525 [__mips__] (GDB_ARCH_IS_TRAP_HWBKPT): Also accept TRAP_HWBKPT.
1526
1527 2016-04-15 Yao Qi <yao.qi@linaro.org>
1528
1529 * arm-tdep.c (thumb_stack_frame_destroyed_p): Return zero if
1530 PC is far from the end of function.
1531
1532 2016-04-14 Pedro Alves <palves@redhat.com>
1533
1534 * cli/cli-cmds.c (alias_usage_error): New function.
1535 (alias_command): Use it.
1536 * ctf.c (ctf_save_metadata_header): Inline metadata_fmt local in
1537 ctf_save_write_metadata call.
1538
1539 2016-04-14 Pedro Alves <palves@redhat.com>
1540
1541 * ada-typeprint.c (print_fixed_point_type): Don't pass float as
1542 argument to function expecting LONGEST.
1543 * value.c (unpack_long): Add casts to LONGEST.
1544
1545 2016-04-13 Luis Machado <lgustavo@codesourcery.com>
1546
1547 * exec.c (exec_file_locate_attach): Guard a couple functions
1548 that can throw errors.
1549 (exception_print_same): New helper function.
1550
1551 2016-04-13 Pedro Alves <palves@redhat.com>
1552
1553 PR remote/19840
1554 * remote.c (struct remote_state) <last_resume_exec_dir>: New
1555 field.
1556 (new_remote_state): Default last_resume_exec_dir to EXEC_FORWARD.
1557 (remote_open_1): Reset last_resume_exec_dir to EXEC_FORWARD.
1558 (remote_resume): Store the last execution direction.
1559 (remote_execution_direction): New function.
1560 (init_remote_ops): Install it as to_execution_direction target_ops
1561 method.
1562
1563 2016-04-12 Pedro Alves <palves@redhat.com>
1564
1565 * common/common-exceptions.h (GDB_XCPT_TRY): Update comment.
1566 [__cplusplus] (GDB_XCPT): Define as GDB_XCPT_TRY.
1567
1568 2016-04-12 Pedro Alves <palves@redhat.com>
1569
1570 * common/common-exceptions.c (struct catcher) <buf>: Now a
1571 'jmp_buf' instead of SIGJMP_BUF.
1572 (exceptions_state_mc_init): Change return type to 'jmp_buf'.
1573 (throw_exception): Use longjmp instead of SIGLONGJMP.
1574 * common/common-exceptions.h: Include <setjmp.h> instead of
1575 "gdb_setjmp.h".
1576 (exceptions_state_mc_init): Change return type to 'jmp_buf'.
1577 [GDB_XCPT == GDB_XCPT_SJMP] (TRY): Use setjmp instead of
1578 SIGSETJMP.
1579 * cp-support.c: Include "gdb_setjmp.h".
1580
1581 2016-04-12 Pedro Alves <palves@redhat.com>
1582
1583 * common/common-exceptions.c (exception_rethrow): Remove
1584 prepare_to_throw_exception call.
1585 * common/common-exceptions.h (prepare_to_throw_exception): Delete
1586 declaration.
1587 * exceptions.c (prepare_to_throw_exception): Delete.
1588
1589 2016-04-12 Pedro Alves <palves@redhat.com>
1590
1591 * target.c (target_check_pending_interrupt): Delete.
1592 * target.h (struct target_ops) <to_check_pending_interrupt>:
1593 Remove method.
1594 (target_check_pending_interrupt): Remove declaration.
1595 * target-delegates.c: Regenerate.
1596
1597 2016-04-12 Pedro Alves <palves@redhat.com>
1598
1599 * defs.h: Update comments on SIGINT handling.
1600 (immediate_quit): Delete declaration.
1601 * event-loop.c (call_async_signal_handler): Delete.
1602 * event-loop.h (call_async_signal_handler): Delete declaration.
1603 (mark_async_signal_handler): Update comments.
1604 (gdb_call_async_signal_handler): Delete declaration.
1605 * event-top.c (handle_sigint): Call mark_async_signal_handler
1606 instead of gdb_call_async_signal_handler.
1607 * exceptions.c (prepare_to_throw_exception): Remove reference to
1608 immediate_quit.
1609 (exception_fprintf): Remove comments about immediate_quit.
1610 * mingw-hdep.c (sigint_event, sigint_handler): Delete.
1611 (gdb_select): Don't wait on sigint_event.
1612 (gdb_call_async_signal_handler): Delete.
1613 (_initialize_mingw_hdep): Delete.
1614 * posix-hdep.c (gdb_call_async_signal_handler): Delete.
1615 * utils.c (immediate_quit): Delete.
1616
1617 2016-04-12 Pedro Alves <palves@redhat.com>
1618
1619 * defs.h (quit_handler_ftype, quit_handler)
1620 (make_cleanup_override_quit_handler, default_quit_handler): New.
1621 (QUIT): Adjust comments.
1622 * event-top.c (default_quit_handler): New function.
1623 (quit_handler): New global.
1624 (struct quit_handler_cleanup_data): New.
1625 (restore_quit_handler, restore_quit_handler_dtor)
1626 (make_cleanup_override_quit_handler): New.
1627 (async_request_quit): Call QUIT.
1628 * remote.c (struct remote_state) <got_ctrlc_during_io>: New field.
1629 (async_sigint_remote_twice_token, async_sigint_remote_token):
1630 Delete.
1631 (remote_close): Update comments.
1632 (remote_start_remote): Don't set immediate_quit. Set starting_up
1633 earlier.
1634 (remote_serial_quit_handler, remote_unpush_and_throw): New
1635 functions.
1636 (remote_open_1): Clear got_ctrlc_during_io. Set
1637 remote_async_terminal_ours_p unconditionally.
1638 (async_initialize_sigint_signal_handler)
1639 (async_handle_remote_sigint, async_handle_remote_sigint_twice)
1640 (remote_check_pending_interrupt, async_remote_interrupt)
1641 (async_remote_interrupt_twice)
1642 (async_cleanup_sigint_signal_handler, ofunc)
1643 (sync_remote_interrupt, sync_remote_interrupt_twice): Delete.
1644 (remote_terminal_inferior, remote_terminal_ours): Remove async
1645 checks.
1646 (remote_wait_as): Don't install a SIGINT handler in sync mode.
1647 (readchar, remote_serial_write): Override the quit handler with
1648 remote_serial_quit_handler.
1649 (getpkt_or_notif_sane_1): Don't call QUIT.
1650 (initialize_remote_ops): Don't install
1651 remote_check_pending_interrupt.
1652 (_initialize_remote): Don't create async_sigint_remote_token and
1653 async_sigint_remote_twice_token.
1654 * ser-base.c (ser_base_wait_for): Call QUIT and use
1655 interruptible_select.
1656 (ser_base_write): Call QUIT.
1657 * ser-go32.c (dos_readchar, dos_write): Call QUIT.
1658 * ser-unix.c (wait_for): Don't use VTIME. Always take the
1659 gdb_select path, but call QUIT and interruptible_select.
1660 * utils.c (maybe_quit): Call the current quit handler. Don't call
1661 target_check_pending_interrupt.
1662 (defaulted_query, prompt_for_continue): Override the quit handler
1663 with the default quit handler.
1664
1665 2016-04-12 Pedro Alves <palves@redhat.com>
1666
1667 * tui/tui-hooks.c (tui_target_has_run): Delete.
1668 (tui_about_to_proceed): Delete.
1669 (tui_about_to_proceed_observer): Delete.
1670 (tui_install_hooks, tui_remove_hooks): Don't install/remove an
1671 about_to_proceed observer.
1672
1673 2016-04-12 Pedro Alves <palves@redhat.com>
1674
1675 * mi/mi-interp.c (mi_new_thread): Put
1676 target_terminal_ours_for_output in effect while outputting.
1677 (mi_thread_exit): Use target_terminal_ours_for_output instead of
1678 target_terminal_ours.
1679 (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
1680 (mi_inferior_exit, mi_inferior_removed, mi_traceframe_changed)
1681 (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
1682 (mi_breakpoint_created, mi_breakpoint_deleted)
1683 (mi_breakpoint_modified, mi_solib_loaded, mi_solib_unloaded)
1684 (mi_command_param_changed, mi_memory_changed)
1685 (report_initial_inferior): Use target_terminal_ours_for_output
1686 instead of target_terminal_ours. Restore terminal settings.
1687 * mi/mi-main.c (mi_execute_command): Use
1688 target_terminal_ours_for_output instead of target_terminal_ours.
1689 Restore terminal settings.
1690
1691 2016-04-12 Pedro Alves <palves@redhat.com>
1692
1693 PR gdb/19828
1694 * gnu-nat.c (inf_validate_task_sc): Don't call
1695 target_terminal_ours / target_terminal_inferior around query.
1696 * i386-tdep.c (i386_record_lea_modrm, i386_process_record): Don't
1697 call target_terminal_ours / target_terminal_inferior around
1698 yquery.
1699 * linux-record.c (record_linux_system_call): Don't call
1700 target_terminal_ours / target_terminal_inferior around yquery.
1701 * nto-procfs.c (interrupt_query): Don't call target_terminal_ours
1702 / target_terminal_inferior around query.
1703 * record-full.c (record_full_check_insn_num): Remove
1704 'set_terminal' parameter. Don't call target_terminal_ours /
1705 target_terminal_inferior around query.
1706 (record_full_message, record_full_registers_change)
1707 (record_full_xfer_partial): Adjust.
1708 * remote.c (interrupt_query): Don't call target_terminal_ours /
1709 target_terminal_inferior around query.
1710 * utils.c (defaulted_query): Install cleanup to restore target
1711 terminal. Put target_terminal_ours_for_output in effect while
1712 defaulted producing, and target_terminal_ours in in effect while
1713 handling input.
1714 (prompt_for_continue): Install cleanup to restore target terminal.
1715 Put target_terminal_ours in in effect while handling input.
1716
1717 2016-04-12 Pedro Alves <palves@redhat.com>
1718
1719 * utils.c (defaulted_query, prompt_for_continue): Free temporary
1720 strings with cleanups, instead of xfree.
1721
1722 2016-04-12 Pedro Alves <palves@redhat.com>
1723
1724 * utils.c (vwarning, internal_vproblem): Use
1725 make_cleanup_restore_target_terminal and
1726 target_terminal_ours_for_output.
1727
1728 2016-04-12 Pedro Alves <palves@redhat.com>
1729
1730 * infcmd.c (post_create_inferior, prepare_one_step): Use
1731 target_terminal_ours_for_output instead of target_terminal_ours.
1732
1733 2016-04-12 Pedro Alves <palves@redhat.com>
1734
1735 * exceptions.c (print_flush): Use target_terminal_ours_for_output
1736 instead of target_terminal_ours, and restore target terminal with
1737 a cleanup.
1738
1739 2016-04-12 Pedro Alves <palves@redhat.com>
1740
1741 * cp-support.c (gdb_demangle): Use target_terminal_ours_for_output
1742 instead of target_terminal_ours, and restore target terminal with
1743 a cleanup.
1744
1745 2016-04-12 Pedro Alves <palves@redhat.com>
1746
1747 * ada-lang.c (type_as_string, type_as_string_and_cleanup): New
1748 functions.
1749 (ada_lookup_struct_elt_type): Use type_as_string_and_cleanup.
1750
1751 2016-04-12 Pedro Alves <palves@redhat.com>
1752
1753 * ser-base.c (fd_event): Retry read_prim on EINTR.
1754 (do_ser_base_readchar): Retry read_prim on EINTR.
1755 (ser_base_write): Retry write_prim on EINTR.
1756 * ser-unix.c (ser_unix_read_prim): Don't retry on EINTR here.
1757 (ser_unix_write_prim): Remove comment.
1758
1759 2016-04-12 Pedro Alves <palves@redhat.com>
1760
1761 * remote.c (remote_pass_ctrlc): New function.
1762 (init_remote_ops): Install it.
1763 * target.c (target_terminal_inferior): Pass pending Ctrl-C to the
1764 target.
1765 (target_pass_ctrlc, default_target_pass_ctrlc): New functions.
1766 * target.h (struct target_ops) <to_pass_ctrlc>: New method.
1767 (target_pass_ctrlc, default_target_pass_ctrlc): New declarations.
1768 * target-delegates.c: Regenerate.
1769
1770 2016-04-12 Pedro Alves <palves@redhat.com>
1771
1772 * infcmd.c (interrupt_target_1): Call target_stop is in non-stop
1773 mode.
1774 * linux-nat.c (linux_nat_interrupt): Delete.
1775 (linux_nat_add_target): Don't install linux_nat_interrupt.
1776 * remote.c (remote_interrupt_ns): Change return type to void.
1777 Throw error if interrupting the target is not supported.
1778 (remote_interrupt): Don't call the remote_stop_ns/remote_stop_as.
1779
1780 2016-04-12 Pedro Alves <palves@redhat.com>
1781
1782 * defs.h (clear_quit_flag): Remove declaration.
1783 * extension-priv.h (struct extension_language_ops)
1784 <clear_quit_flag>: Remove field and update comments.
1785 * extension.c (clear_quit_flag): Delete.
1786 * guile/guile.c (guile_extension_ops): Adjust.
1787 * python/python.c (python_extension_ops): Adjust.
1788 (gdbpy_clear_quit_flag): Delete.
1789
1790 2016-04-12 Pedro Alves <palves@redhat.com>
1791
1792 * main.c (captured_main): Don't clear the quit flag.
1793
1794 2016-04-12 Pedro Alves <palves@redhat.com>
1795
1796 * exceptions.c (prepare_to_throw_exception): Don't clear the quit
1797 flag.
1798
1799 2016-04-12 Pedro Alves <palves@redhat.com>
1800
1801 * event-top.c (command_handler): Don't call clear_quit_flag.
1802
1803 2016-04-12 Pedro Alves <palves@redhat.com>
1804
1805 * remote-sim.c (gdb_os_poll_quit): Don't call clear_quit_flag.
1806 * remote.c (remote_wait_as): Don't call clear_quit_flag.
1807
1808 2016-04-12 Pedro Alves <palves@redhat.com>
1809
1810 * python/python.c: Include "ser-event.h".
1811 (gdbpy_event_fds): Delete.
1812 (gdbpy_serial_event): New.
1813 (gdbpy_run_events): Change prototype. Use serial_event_clear
1814 instead of serial_readchar.
1815 (gdbpy_post_event): Use serial_event_set instead of serial_write.
1816 (gdbpy_initialize_events): Use make_serial_event instead of
1817 serial_pipe.
1818
1819 2016-04-12 Pedro Alves <palves@redhat.com>
1820
1821 * defs.h: Extend QUIT-related comments to mention
1822 interruptible_select.
1823 (quit_serial_event_set, quit_serial_event_clear): Declare.
1824 * event-top.c: Include "ser-event.h" and "gdb_select.h".
1825 (quit_serial_event): New global.
1826 (async_init_signals): Make quit_serial_event.
1827 (quit_serial_event_set, quit_serial_event_clear)
1828 (quit_serial_event_fd, interruptible_select): New functions.
1829 * extension.c (set_quit_flag): Set the quit serial event.
1830 (check_quit_flag): Clear the quit serial event.
1831 * gdb_select.h (interruptible_select): New declaration.
1832 * guile/scm-ports.c (ioscm_input_waiting): Use
1833 interruptible_select instead of gdb_select.
1834 * top.c (gdb_readline_no_editing): Likewise.
1835 * ui-file.c (stdio_file_read): Likewise.
1836
1837 2016-04-12 Pedro Alves <palves@redhat.com>
1838
1839 * event-loop.c: Include "ser-event.h".
1840 (async_signal_handlers_serial_event): New global.
1841 (async_signals_handler, initialize_async_signal_handlers): New
1842 functions.
1843 (mark_async_signal_handler): Set
1844 async_signal_handlers_serial_event.
1845 (invoke_async_signal_handlers): Clear
1846 async_signal_handlers_serial_event.
1847 * event-top.c (async_init_signals): Call
1848 initialize_async_signal_handlers.
1849
1850 2016-04-12 Pedro Alves <palves@redhat.com>
1851
1852 * Makefile.in (SFILES): Add ser-event.c.
1853 (HFILES_NO_SRCDIR): Add ser-event.h.
1854 (COMMON_OBS): Add ser-event.o.
1855 * ser-event.c, ser-event.h: New files.
1856 * serial.c (new_serial): New function, factored out from
1857 (serial_fdopen_ops): ... this.
1858 (serial_open_ops_1): New function, factored out from
1859 (serial_open): ... this.
1860 (serial_open_ops): New function.
1861 * serial.h (struct serial): Forware declare.
1862 (serial_open_ops): New declaration.
1863
1864 2016-04-12 Pedro Alves <palves@redhat.com>
1865
1866 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
1867 Remove references to name.
1868 * serial.h (struct serial) <name>: Delete.
1869
1870 2016-04-12 Pedro Alves <palves@redhat.com>
1871
1872 * remote-fileio.c (sigint_fileio_token, remote_fio_no_longjmp):
1873 Delete.
1874 (async_remote_fileio_interrupt): Delete.
1875 (remote_fileio_ctrl_c_signal_handler): Don't call the async signal
1876 handler. Instead just always set the ctrl_c flag.
1877 (remote_fileio_reply): Clear remote_fio_ctrl_c_flag before
1878 re-enabling the SIGINT handler.
1879 (remote_fileio_func_open, remote_fileio_func_close)
1880 (remote_fileio_func_read, remote_fileio_func_write)
1881 (remote_fileio_func_lseek, remote_fileio_func_rename)
1882 (remote_fileio_func_unlink, remote_fileio_func_stat)
1883 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
1884 (remote_fileio_func_isatty, remote_fileio_func_system)
1885 (remote_fileio_request): Remove references to
1886 remote_fio_no_longjmp.
1887 (initialize_remote_fileio): Don't create an async signal handler.
1888
1889 2016-04-12 Pedro Alves <palves@redhat.com>
1890
1891 * event-top.c (stdin_event_handler): Call QUIT;
1892 (prompt_for_continue): Don't run with immediate_quit set.
1893
1894 2016-04-12 Pedro Alves <palves@redhat.com>
1895
1896 * tui/tui-io.c (tui_redisplay_readline): Check
1897 gdb_in_secondary_prompt_p instead of immediate_quit.
1898 * tui/tui.c: Include top.h.
1899 (tui_rl_startup_hook): Check gdb_in_secondary_prompt_p instead of
1900 immediate_quit.
1901
1902 2016-04-12 Pedro Alves <palves@redhat.com>
1903
1904 * top.c (read_command_file): Inline command_loop here.
1905 (command_loop): Delete.
1906
1907 2016-04-12 Pedro Alves <palves@redhat.com>
1908
1909 * top.c: Include "gdb_select.h".
1910 (gdb_readline_no_editing): Wait for input with gdb_select instead
1911 of blocking in fgetc.
1912 (command_line_input): Don't set immediate_quit.
1913
1914 2016-04-08 Martin Galvan <martin.galvan@tallertechnologies.com>
1915
1916 * value.c (value_next): Make pass-by-reference parameters const-correct.
1917 (value_parent): Likewise.
1918 (value_enclosing_type): Likewise.
1919 (value_lazy): Likewise.
1920 (value_stack): Likewise.
1921 (value_embedded_offset): Likewise.
1922 (value_pointed_to_offset): Likewise.
1923 (value_raw_address): Likewise.
1924 (deprecated_value_modifiable): Likewise.
1925 (value_free_to_mark): Likewise.
1926 (value_release_to_mark): Likewise.
1927 (internalvar_name): Likewise.
1928 (readjust_indirect_value_type): Likewise.
1929 (value_initialized): Likewise.
1930 * value.h (value_next): Likewise.
1931 (value_parent): Likewise.
1932 (value_enclosing_type): Likewise.
1933 (value_lazy): Likewise.
1934 (value_stack): Likewise.
1935 (value_embedded_offset): Likewise.
1936 (value_pointed_to_offset): Likewise.
1937 (value_raw_address): Likewise.
1938 (deprecated_value_modifiable): Likewise.
1939 (value_free_to_mark): Likewise.
1940 (value_release_to_mark): Likewise.
1941 (internalvar_name): Likewise.
1942 (readjust_indirect_value_type): Likewise.
1943 (value_initialized): Likewise.
1944
1945 2016-04-07 Yao Qi <yao.qi@linaro.org>
1946
1947 * record-full.c (record_full_insert_breakpoint): Return
1948 early if entry on the address is found in
1949 record_full_breakpoints.
1950
1951 2016-04-07 Yao Qi <yao.qi@linaro.org>
1952
1953 * record-full.c (record_full_insert_breakpoint): Set
1954 bp_tgt->reqstd_address and bp_tgt->placed_size.
1955
1956 2016-04-06 Don Breazeal <donb@codesourcery.com>
1957
1958 * value.c (value_actual_type): Don't try to get rtti type
1959 of the value if it has been optimized out.
1960 (value_optimized_out): If a memory access error occurs,
1961 just check vaue->optimized_out.
1962
1963 2016-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1964
1965 Revert the previous commit adding unknown_v_replies_ok.
1966
1967 2016-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1968
1969 * remote.c (struct remote_state): New field unknown_v_replies_ok.
1970 (packet_config_support): Read it.
1971 (remote_start_remote): Set it.
1972
1973 2016-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1974
1975 * remote.c: Revert check-in by a mistake in the previous commit.
1976
1977 2016-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1978 Pedro Alves <palves@redhat.com>
1979
1980 * exec.c (exec_file_locate_attach): Print warning for unsupported
1981 target_pid_to_exec_file.
1982 * symfile-mem.c (add_vsyscall_page): Remove the "file" command
1983 message part.
1984
1985 2016-04-04 Simon Marchi <simon.marchi@ericsson.com>
1986
1987 * cli/cli-decode.c (help_cmd_list): Fix function doc and remove
1988 trailing spaces.
1989
1990 2016-04-01 Artemiy Volkov <artemiyv@acm.org>
1991
1992 PR gdb/19820
1993 * eval.c (evaluate_subexp_standard): Allow TYPE_CODE_ENUM to be
1994 the type of BINOP_REPEAT's second operand.
1995
1996 2016-03-31 Yichao Yu <yyc1992@gmail.com>
1997
1998 PR gdb/19858
1999 * jit.c (jit_breakpoint_re_set_internal): Return 0 if we already
2000 got the breakpoint at the right address.
2001 (jit_inferior_created): New function.
2002 (_initialize_jit): Install jit_inferior_created as
2003 inferior_created observer.
2004
2005 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
2006
2007 * NEWS: Mention support for tracepoints on powerpc*-linux.
2008
2009 2016-03-31 Catalin Udma <catalin.udma@freescale.com>
2010
2011 PR python/19743
2012 * python/python.c (execute_gdb_command): Use console uiout
2013 when executing gdb command.
2014 * utils.c (restore_ui_out_closure): New structure.
2015 (do_restore_ui_out): New function.
2016 (make_cleanup_restore_ui_out): Likewise.
2017 * utils.h (make_cleanup_restore_ui_out): Declare.
2018
2019 2016-03-31 Pedro Alves <palves@redhat.com>
2020
2021 * NEWS: Mention that support for "target m32rsdi", "target mips",
2022 "target pmon", "target ddb", "target rockhopper", and "target lsi"
2023 was removed.
2024 * Makefile.in (ALL_TARGET_OBS): Remove remote-m32r-sdi.o and
2025 remote-mips.o.
2026 (ALLDEPFILES): Remove remote-m32r-sdi.c and remote-mips.c.
2027 * configure.tgt: Remove all references to remote-m32r-sdi.o and
2028 remote-mips.o.
2029 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Delete
2030 function.
2031 * mips-tdep.h (deprecated_mips_set_processor_regs_hack): Delete
2032 declaration.
2033 * remote-m32r-sdi.c, remote-mips.c: Delete files.
2034 * symfile.c (generic_load, generic_load): Remove comments.
2035
2036 2016-03-30 Yao Qi <yao.qi@linaro.org>
2037
2038 * arm-tdep.c (arm_epilogue_frame_this_id): Check 'func' against
2039 0 rather than NULL.
2040
2041 2016-03-30 Yao Qi <yao.qi@linaro.org>
2042
2043 * arm-tdep.c: (arm_make_epilogue_frame_cache): New function.
2044 (arm_epilogue_frame_this_id): New function.
2045 (arm_epilogue_frame_prev_register): New function.
2046 (arm_epilogue_frame_sniffer): New function.
2047 (arm_epilogue_frame_unwind): New.
2048 (arm_gdbarch_init): Append unwinder arm_epilogue_frame_unwind.
2049
2050 2016-03-30 Yao Qi <yao.qi@linaro.org>
2051
2052 * arm-tdep.c (arm_stack_frame_destroyed_p): Rename it ...
2053 (arm_stack_frame_destroyed_p_1): ... here. Don't call
2054 arm_pc_is_thumb.
2055 (arm_stack_frame_destroyed_p): Call
2056 thumb_stack_frame_destroyed_p and
2057 arm_stack_frame_destroyed_p_1.
2058
2059 2016-03-30 Doug Evans <dje@google.com>
2060
2061 * python/py-utils.c (host_string_to_python_string): New function.
2062 * python/python-internal.h (host_string_to_python_string): Declare it.
2063 * python/py-*.c (*): Update all calls to
2064 PyString_Decode (str, strlen (str), host_charset (), NULL);
2065 to use host_string_to_python_string instead.
2066
2067 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
2068
2069 * remote.c (remote_check_symbols): Allocate own buffer for reply.
2070
2071 2016-03-29 Max Filippov <jcmvbkbc@gmail.com>
2072
2073 * xtensa-tdep.c (xtensa_frame_cache): Change op1 type to LONGEST.
2074 Use safe_read_memory_integer instead of read_memory_integer.
2075
2076 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
2077
2078 * NEWS: Mention support for tracepoints on s390*-linux.
2079
2080 2016-03-29 Don Breazeal <donb@codesourcery.com>
2081
2082 * gdb/value.c (value_actual_type): Fix formatting issue.
2083
2084 2016-03-23 Yao Qi <yao.qi@linaro.org>
2085
2086 * gdbarch.sh (software_single_step): Remove comments.
2087 * gdbarch.h: Regenerated.
2088
2089 2016-03-21 Yao Qi <yao.qi@linaro.org>
2090
2091 * arm-tdep.c (arm_record_media): New.
2092 (arm_record_ld_st_reg_offset): Call arm_record_media.
2093
2094 2016-03-21 Yao Qi <yao.qi@linaro.org>
2095
2096 * arm-linux-tdep.c (arm_canonicalize_syscall): Canonicalize
2097 more syscalls.
2098
2099 2016-03-18 Yao Qi <yao.qi@linaro.org>
2100
2101 * sparc-tdep.c (sparc_software_single_step): Make it static.
2102 * sparc-tdep.h (sparc_software_single_step): Remove declaration.
2103
2104 2016-03-18 Yao Qi <yao.qi@linaro.org>
2105
2106 * spu-tdep.c (spu_software_single_step): Throw error when
2107 target_read_memory fails.
2108
2109 2016-03-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2110
2111 * linux-thread-db.c (check_pid_namespace_match): Extend the message.
2112
2113 2016-03-17 Pedro Alves <palves@redhat.com>
2114 Don Breazeal <donb@codesourcery.com>
2115
2116 PR remote/19496
2117 * infcmd.c (notice_new_inferior): Use the 'leave_running' argument
2118 instead of checking the 'non_stop' global.
2119 * remote.c (remote_add_thread): New parameter 'executing'. Use it
2120 to set the new thread's executing state.
2121 (remote_notice_new_inferior): Rename parameter 'running' to
2122 'executing'. Always set the thread state to THREAD_RUNNING in
2123 non-stop mode, and to THREAD_STOPPED in all-stop mode. Pass
2124 EXECUTING to remote_add_thread and notice_new_inferior.
2125 (remote_update_thread_list): Update to pass executing state, not
2126 running state.
2127
2128 2016-03-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
2129
2130 * syscalls/s390-linux.xml: Add NUMA syscalls and new syscalls up
2131 to 374.
2132 * syscalls/s390x-linux.xml: Likewise.
2133
2134 2016-03-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
2135
2136 * linux-record.c (record_mem_at_reg): New helper function.
2137 (record_linux_system_call): Exploit new helper function where
2138 applicable.
2139
2140 2016-03-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
2141
2142 * linux-record.c: Fix whitespace issues; tabify, remove trailing
2143 spaces.
2144
2145 2016-03-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
2146
2147 * linux-record.c (record_linux_system_call): Add missing return
2148 statements to handling of pipe and pipe2 syscalls.
2149
2150 2016-03-16 Doug Evans <dje@google.com>
2151
2152 * xml-tdesc.c (tdesc_start_enum): Fix c++ build.
2153
2154 2016-03-16 Yao Qi <yao.qi@linaro.org>
2155
2156 * arm-linux-tdep.c (arm_linux_init_abi): Fix
2157 arm_linux_record_tdep.arg1, arm_linux_record_tdep.arg2 and
2158 arm_linux_record_tdep.arg3. Set arm_linux_record_tdep.arg4,
2159 arm_linux_record_tdep.arg5, arm_linux_record_tdep.arg6, and
2160 arm_linux_record_tdep.arg7.
2161
2162 2016-03-15 Keith Seitz <keiths@redhat.com>
2163
2164 PR breakpoints/18303
2165 * cp-namespace.c (cp_lookup_bare_symbol): Change assertion to
2166 look for "::" instead of simply ":".
2167 (cp_search_static_and_baseclasses): Return null_block_symbol for
2168 malformed input.
2169 Remove assertions.
2170 * cp-support.c (cp_find_first_component_aux): Do not return
2171 a prefix length for ':' unless the next character is also ':'.
2172
2173 2016-03-15 Doug Evans <dje@google.com>
2174
2175 * features/aarch64-core.xml (cpsr_flags): New flags type.
2176 (cpsr): Use it.
2177 * features/aarch64.c: Regenerate.
2178
2179 2016-03-15 Doug Evans <dje@google.com>
2180
2181 * features/i386/32bit-core.xml (i386_eflags): Remove "end" spec.
2182 * features/i386/32bit-sse.xml (i386_eflags): Ditto.
2183 * features/i386/64bit-core.xml (i386_eflags): Ditto.
2184 * features/i386/64bit-sse.xml (i386_eflags): Ditto.
2185 * features/i386/x32-core.xml (i386_eflags): Ditto.
2186
2187 2016-03-15 Doug Evans <dje@google.com>
2188 Wei-cheng Wang <cole945@gmail.com>
2189
2190 Extend flags to support multibit and enum bitfields.
2191 * NEWS: Document new features.
2192 * c-typeprint.c (c_type_print_varspec_prefix): Handle TYPE_CODE_FLAGS.
2193 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
2194 * gdbtypes.c (arch_flags_type): Don't assume all fields are one bit.
2195 (append_flags_type_field): New function.
2196 (append_flags_type_flag): Call it.
2197 * gdbtypes.h (append_flags_type_field): Declare.
2198 * target-descriptions.c (struct tdesc_type_flag): Delete.
2199 (enum tdesc_type_kind) <TDESC_TYPE_BOOL>: New enum value.
2200 (enum tdesc_type_kind) <TDESC_TYPE_ENUM>: Ditto.
2201 (struct tdesc_type) <u.f>: Delete.
2202 (tdesc_predefined_types): Add "bool".
2203 (tdesc_predefined_type): New function.
2204 (tdesc_gdb_type): Handle TDESC_TYPE_BOOL, TDESC_TYPE_ENUM.
2205 Update TDESC_TYPE_FLAGS support.
2206 (tdesc_free_type): Handle TDESC_TYPE_ENUM. Update TDESC_TYPE_FLAGS.
2207 (tdesc_create_flags): Update.
2208 (tdesc_create_enum): New function.
2209 (tdesc_add_field): Initialize start,end to -1.
2210 (tdesc_add_typed_bitfield): New function.
2211 (tdesc_add_bitfield): Call it.
2212 (tdesc_add_flag): Allow TDESC_TYPE_STRUCT. Update.
2213 (tdesc_add_enum_value): New function.
2214 (maint_print_c_tdesc_cmd): Fold TDESC_TYPE_FLAGS support into
2215 TDESC_TYPE_STRUCT. Handle TDESC_TYPE_ENUM.
2216 * target-descriptions.h (tdesc_create_enum): Declare.
2217 (tdesc_add_typed_bitfield, tdesc_add_enum_value): Declare.
2218 * valprint.c (generic_val_print_enum_1): New function.
2219 (generic_val_print_enum): Call it.
2220 (val_print_type_code_flags): Make static. Handle multibit bitfields
2221 and enum bitfields.
2222 * valprint.h (val_print_type_code_flags): Delete.
2223 * xml-tdesc.c (struct tdesc_parsing_data) <current_type_is_flags>:
2224 Delete. All uses removed.
2225 (tdesc_start_enum): New function.
2226 (tdesc_start_field): Handle multibit and enum bitfields.
2227 (tdesc_start_enum_value): New function.
2228 (enum_value_attributes, enum_children, enum_attributes): New static
2229 globals.
2230 (feature_children): Add "enum".
2231 * features/gdb-target.dtd (enum, evalue): New elements.
2232
2233 2016-03-15 Doug Evans <dje@google.com>
2234
2235 * target-descriptions.c (struct tdesc_type) <u.u.size>: Change type
2236 from LONGEST to int.
2237 (struct tdesc_type) <u.f.size>: Ditto.
2238 (tdesc_set_struct_size): Change type of "size" arg from LONGEST
2239 to int. Add assertion size > 0.
2240 (tdesc_create_flags): Ditto.
2241 * target-descriptions.h (tdesc_set_struct_size): Update.
2242 (tdesc_create_flags): Update.
2243 * xml-tdesc.c (MAX_FIELD_SIZE, MAX_FIELD_BITSIZE): New macros.
2244 (MAX_VECTOR_SIZE): New macro.
2245 (tdesc_start_struct): Catch conversion errors from LONGEST to int.
2246 (tdesc_start_flags, tdesc_start_field, tdesc_start_vector): Ditto.
2247
2248 2016-03-15 Doug Evans <dje@google.com>
2249
2250 * target-descriptions.c (maint_print_c_tdesc_cmd): Use "type" for
2251 TYPE_CODE_FLAGS instead of "field_type", for consistency.
2252 * features/i386/amd64-avx-linux.c: Regenerate.
2253 * features/i386/amd64-avx.c: Regenerate.
2254 * features/i386/amd64-avx512-linux.c: Regenerate.
2255 * features/i386/amd64-avx512.c: Regenerate.
2256 * features/i386/amd64-linux.c: Regenerate.
2257 * features/i386/amd64-mpx-linux.c: Regenerate.
2258 * features/i386/amd64-mpx.c: Regenerate.
2259 * features/i386/amd64.c: Regenerate.
2260 * features/i386/i386-avx-linux.c: Regenerate.
2261 * features/i386/i386-avx.c: Regenerate.
2262 * features/i386/i386-avx512-linux.c: Regenerate.
2263 * features/i386/i386-avx512.c: Regenerate.
2264 * features/i386/i386-linux.c: Regenerate.
2265 * features/i386/i386-mmx-linux.c: Regenerate.
2266 * features/i386/i386-mmx.c: Regenerate.
2267 * features/i386/i386-mpx-linux.c: Regenerate.
2268 * features/i386/i386-mpx.c: Regenerate.
2269 * features/i386/i386.c: Regenerate.
2270 * features/i386/x32-avx-linux.c: Regenerate.
2271 * features/i386/x32-avx.c: Regenerate.
2272 * features/i386/x32-avx512-linux.c: Regenerate.
2273 * features/i386/x32-avx512.c: Regenerate.
2274 * features/i386/x32-linux.c: Regenerate.
2275 * features/i386/x32.c: Regenerate.
2276
2277 2016-03-15 Pedro Alves <palves@redhat.com>
2278
2279 PR gdb/19676
2280 * linux-thread-db.c (try_thread_db_load_1): Leave
2281 info->td_ta_thr_iter_p NULL iff debugging a live process and we
2282 have /proc access.
2283 (find_new_threads_once): Assert that we have a non-NULL
2284 info->td_ta_thr_iter_p instead of checking whether the target has
2285 execution.
2286
2287 2016-03-15 Pedro Alves <palves@redhat.com>
2288
2289 PR gdb/19676
2290 * infrun.c (displaced_step_prepare): Also disable displaced
2291 stepping on NOT_SUPPORTED_ERROR.
2292 * linux-tdep.c (linux_displaced_step_location): If reading auxv
2293 fails, throw NOT_SUPPORTED_ERROR instead of generic error.
2294
2295 2016-03-13 Marcin Kościelnicki <koriakin@0x04.net>
2296
2297 * s390-linux-tdep.c (s390_gen_return_address): New function.
2298 (s390_gdbarch_init): Fill gen_return_address hook.
2299
2300 2016-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
2301
2302 * symmisc.c (maintenance_info_line_tables): New function.
2303 (maintenance_print_one_line_table): New function.
2304 (_initialize_symmisc): Register 'maint info line-table' command.
2305 * NEWS: Mention new command.
2306
2307 2016-03-11 Marcin Kościelnicki <koriakin@0x04.net>
2308
2309 * s390-linux-tdep.c (s390_ax_pseudo_register_collect): New function.
2310 (s390_ax_pseudo_register_push_stack): New function.
2311 (s390_gdbarch_init): Fill ax_pseudo_register_collect and
2312 ax_pseudo_register_push_stack hooks.
2313
2314 2016-03-10 Simon Marchi <simon.marchi@polymtl.ca>
2315
2316 * data-directory/Makefile.in (PYTHON_FILE_LIST): Install
2317 gdb/function/as_string.py.
2318 * python/lib/gdb/function/as_string.py: New file.
2319 * NEWS: Mention the new $_as_string function.
2320
2321 2016-03-09 Jose E. Marchesi <jose.marchesi@oracle.com>
2322
2323 * target.h: Fix doc string of target_can_use_hardware_watchpoint.
2324
2325 2016-03-09 Pedro Alves <palves@redhat.com>
2326
2327 * event-top.c (more_to_come): Delete.
2328 (struct readline_input_state): Delete.
2329 (readline_input_state): Delete.
2330 (get_command_line_buffer): New function.
2331 (command_handler): Update comments. Don't handle NULL commands
2332 here. Do not execute commented lines.
2333 (command_line_append_input_line): New function.
2334 (handle_line_of_input): New function, partly based on
2335 command_line_handler and command_line_input.
2336 (command_line_handler): Rewrite.
2337 * event-top.h (command_handler): New declaration.
2338 (command_loop): Defer command execution to command_handler.
2339 (command_line_input): Update comments. Simplify, using struct
2340 buffer and handle_line_of_input.
2341 * top.h (struct buffer): New forward declaration.
2342 (handle_line_of_input): New declaration.
2343
2344 2016-03-09 Pedro Alves <palves@redhat.com>
2345
2346 * event-top.c (command_line_handler): Use xfree + xstrdup instead
2347 of xrealloc + strcpy.
2348 * main.c (captured_main): Use xstrdup instead of xmalloc plus
2349 manual clear.
2350 * top.c (saved_command_line): Rewrite comment.
2351 (saved_command_line_size): Delete.
2352 (command_line_input): Use xfree + xstrdup instead of xrealloc +
2353 strcpy.
2354 * top.h (saved_command_line_size): Delete declaration.
2355
2356 2016-03-09 Pedro Alves <palves@redhat.com>
2357
2358 * event-top.c: Include buffer.h.
2359 (gdb_readline_no_editing_callback): Use struct buffer instead
2360 of xrealloc.
2361
2362 2016-03-09 Pedro Alves <palves@redhat.com>
2363
2364 * common/buffer.h (buffer_grow_char): New function.
2365 * top.c: Include buffer.h.
2366 (gdb_readline_no_editing): Rename 'prompt_arg' parameter to
2367 'prompt'. Use struct buffer instead of xrealloc.
2368
2369 2016-03-09 Pedro Alves <palves@redhat.com>
2370
2371 * defs.h (gdb_readline): Delete declaration.
2372 * top.c (gdb_readline): Rename to ...
2373 (gdb_readline_no_editing): ... this, and make static.
2374
2375 2016-03-09 Pedro Alves <palves@redhat.com>
2376
2377 * utils.c (prompt_for_continue): Update comments.
2378
2379 2016-03-09 Pedro Alves <palves@redhat.com>
2380
2381 * event-top.c (async_annotation_suffix): Delete.
2382 (top_level_prompt, command_line_handler): Don't use
2383 'async_annotation_suffix' and simplify.
2384 * event-top.h (async_annotation_suffix): Delete declaration.
2385 (init_main): Remove reference to 'async_annotation_suffix'.
2386
2387 2016-03-09 Pedro Alves <palves@redhat.com>
2388
2389 * event-top.c (gdb_readline2): Rename to ...
2390 (gdb_readline_no_editing_callback): ... this.
2391 (change_line_handler, stdin_event_handler)
2392 (gdb_setup_readline): Adjust.
2393 * event-top.h (gdb_readline2): Rename to ...
2394 (gdb_readline_no_editing_callback): ... this, and move closer to
2395 other readline-related declarations.
2396 * mi/mi-interp.c (mi_interpreter_resume): Adjust.
2397
2398 2016-03-09 Pedro Alves <palves@redhat.com>
2399
2400 * top.c (window_hook): Delete.
2401 (command_loop): Remove references to window_hook.
2402
2403 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
2404
2405 * corefile.c (safe_read_memory_unsigned_integer): New function.
2406 * gdbcore.h (safe_read_memory_unsigned_integer): New prototype.
2407 * rs6000-tdep.c (rs6000_frame_cache): Read backchain as unsigned.
2408
2409 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
2410
2411 * rs6000-tdep.c: Add "ax.h" and "ax-gdb.h" includes.
2412 (rs6000_gen_return_address): New function.
2413 (rs6000_gdbarch_init): Wire in the above.
2414
2415 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
2416
2417 * rs6000-tdep.c (rs6000_ax_pseudo_register_collect): New function.
2418 (rs6000_gdbarch_init): Wire in the above.
2419
2420 2016-03-09 Andreas Arnez <arnez@linux.vnet.ibm.com>
2421
2422 * s390-linux-tdep.c (s390_analyze_prologue): Ignore BRC and BRCL
2423 instructions that do nothing or are conditional traps.
2424
2425 2016-03-09 Andreas Arnez <arnez@linux.vnet.ibm.com>
2426
2427 * s390-linux-tdep.c (s390_prologue_frame_unwind_cache): Store
2428 frame func's PC in info->func before any other failure can occur.
2429 (s390_frame_this_id): Use frame_id_build_unavailable_stack if
2430 info->func has been filled out.
2431
2432 2016-03-09 Pedro Alves <palves@redhat.com>
2433
2434 * osabi.c (gdb_osabi_names): Avoid spaces in osabi names.
2435
2436 2016-03-09 Pedro Alves <palves@redhat.com>
2437
2438 * frv-tdep.c (frv_gdbarch_init): Handle bfd_mach_fr300.
2439
2440 2016-03-09 Pedro Alves <palves@redhat.com>
2441
2442 * cris-tdep.c (cris_gdbarch_init): Return 0 if the info's byte
2443 order is BFD_ENDIAN_BIG or if the cris version is unsupported.
2444
2445 2016-03-09 Pedro Alves <palves@redhat.com>
2446
2447 * doublest.c: Extend comments.
2448 (floatformat_to_doublest, floatformat_from_doublest): Copy the
2449 floatformat's total size, not the host type's size.
2450
2451 2016-03-09 Pedro Alves <palves@redhat.com>
2452
2453 * doublest.c (floatformat_totalsize_bytes): New function.
2454 (floatformat_from_type): Assert that the type's length is at least
2455 as long as the floatformat's totalsize.
2456 * doublest.h (floatformat_totalsize_bytes): New declaration.
2457 * gdbtypes.c (arch_float_type): Assert that the type's length is
2458 at least as long as the floatformat's totalsize.
2459
2460 2016-03-09 Pedro Alves <palves@redhat.com>
2461
2462 * hppa-linux-tdep.c (hppa_linux_init_abi): Set the long double
2463 format to floatformats_ieee_double.
2464
2465 2016-03-07 Pedro Alves <palves@redhat.com>
2466
2467 * mips-tdep.c (mips_gdbarch_init): Check whether info.abfd is NULL
2468 before calling bfd_get_flavour.
2469
2470 2016-03-05 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
2471
2472 * avr-tdep.c (AVR_LAST_ARG_REGNUM): Define.
2473 (avr_push_dummy_call): Correct last needed argument register.
2474 Write MSB of argument into register and subsequent bytes into
2475 other registers in decreasing order.
2476
2477 2016-03-04 Yao Qi <yao.qi@linaro.org>
2478
2479 * arm-tdep.c (arm_record_vdata_transfer_insn): Simplify the
2480 condition check. Record the right D register number.
2481
2482 2016-03-04 Yao Qi <yao.qi@linaro.org>
2483
2484 * arm-tdep.c (arm_record_extension_space): Remove code
2485 printing "Process record does not support".
2486 (arm_record_data_proc_misc_ld_str): Likewise.
2487 (decode_insn): Call arm_record_extension_space if condition
2488 is 0xf. Call arm_record_unsupported_insn if ret isn't
2489 ARM_RECORD_SUCCESS. Use 'ret' instead of 'insn_id' to hold
2490 the value of thumb2_record_decode_insn_handler.
2491
2492 2016-03-04 Simon Marchi <simon.marchi@ericsson.com>
2493
2494 * features/feature_to_c.sh: Print the help when passing no
2495 argument.
2496
2497 2016-03-02 Bernhard Heckel <bernhard.heckel@intel.com>
2498
2499 * MAINTAINERS (Write After Approval): Add Bernhard Heckel.
2500
2501 2016-03-02 Bernhard Heckel <bernhard.heckel@intel.com>
2502
2503 * dwarf2read.c (new_symbol_full): Fix detection of gfortran compilers.
2504
2505 2016-03-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
2506
2507 * s390-linux-tdep.c (s390_backchain_frame_unwind_cache): Avoid
2508 exception when attempting to access the inferior's backchain.
2509
2510 2016-02-29 Yao Qi <yao.qi@linaro.org>
2511
2512 * aarch64-linux-tdep.c (aarch64_canonicalize_syscall): Support
2513 eventfd2, eventfd2, dup3, inotify_init1, fallocate and pipe2.
2514 Return gdb_sys_epoll_create1 instead of gdb_sys_epoll_create
2515 for aarch64_sys_epoll_create1.
2516
2517 2016-02-29 Yao Qi <yao.qi@linaro.org>
2518
2519 * linux-record.h (enum gdb_syscall) <gdb_sys_fallocate>: New.
2520 <gdb_sys_eventfd2, gdb_sys_epoll_create1, gdb_sys_dup3>: New.
2521 <gdb_sys_pipe2, gdb_sys_inotify_init1>: New.
2522 * linux-record.c (record_linux_system_call): Handle them.
2523
2524 2016-02-28 Iain Buclaw <ibuclaw@gdcproject.org>
2525
2526 * d-namespace.c (d_lookup_symbol_imports): Avoid recursive lookups from
2527 cyclic imports.
2528
2529 2016-02-26 Keith Seitz <keiths@redhat.com>
2530
2531 * rs6000-tdep.c (rs6000_frame_cache): Explicitly cast return result
2532 to avoid invalid conversion from void *.
2533
2534 2016-02-26 Yao Qi <yao.qi@linaro.org>
2535
2536 * arm-tdep.c (arm_record_exreg_ld_st_insn): Set 'single_reg'
2537 per bit 8. Check bit 20 instead of bit 4 for VMOV
2538 instruction. Record D registers for instructions changing
2539 S registers. Change of the order of length and address
2540 in record_buf_mem array.
2541
2542 2016-02-26 Yao Qi <yao.qi@linaro.org>
2543
2544 * arm-tdep.c (thumb_record_ld_st_reg_offset): Fix the register
2545 number of Rd.
2546
2547 2016-02-25 Doug Evans <dje@google.com>
2548
2549 * remote-m32r-sdi.c (recv_char_data): Initialize val to avoid
2550 compiler warning.
2551 (recv_long_data): Ditto.
2552
2553 2016-02-25 Simon Marchi <simon.marchi@ericsson.com>
2554
2555 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault):
2556 Initialize variables.
2557
2558 2016-02-25 Antoine Tremblay <antoine.tremblay@ericsson.com>
2559
2560 * ax-general.c (ax_reg): Call gdbarch_remote_register_number.
2561 (ax_reg_mask): Likewise.
2562
2563 2016-02-24 Pedro Alves <palves@redhat.com>
2564
2565 * linux-nat.c (save_sigtrap) Delete.
2566 (stop_wait_callback): Call save_stop_reason instead of
2567 save_sigtrap.
2568 (check_stopped_by_breakpoint): Rename to ...
2569 (save_stop_reason): ... this. Bits of save_sigtrap folded here.
2570 Use GDB_ARCH_IS_TRAP_HWBKPT and handle ambiguous
2571 GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT. Factor out
2572 common code between the USE_SIGTRAP_SIGINFO and
2573 !USE_SIGTRAP_SIGINFO blocks.
2574 (linux_nat_filter_event): Call save_stop_reason instead of
2575 save_sigtrap.
2576 * nat/linux-ptrace.h: Check for both SI_KERNEL and TRAP_BRKPT
2577 si_code for MIPS.
2578 * nat/linux-ptrace.h: Fix "TRAP_HWBPT" typo in x86 table. Add
2579 comments on MIPS behavior.
2580 (GDB_ARCH_IS_TRAP_HWBKPT): Define for all archs.
2581
2582 2016-02-24 Marcin Kościelnicki <koriakin@0x04.net>
2583
2584 * rs6000-tdep.c (rs6000_frame_cache): Initialize frame and pc to 0
2585 to avoid spurious warnings.
2586
2587 2016-02-24 Gary Benson <gbenson@redhat.com>
2588
2589 * exec.c (exec_file_locate_attach): Do not attempt to
2590 locate main executable locally if not found in sysroot.
2591
2592 2016-02-24 Joel Brobecker <brobecker@adacore.com>
2593
2594 GDB 7.11 released.
2595
2596 2016-02-24 Wei-cheng Wang <cole945@gmail.com>
2597
2598 * rs6000-tdep.c (rs6000_frame_cache, rs6000_frame_this_id): Handle
2599 unavailable PC/SP to build unavailable frame.
2600
2601 2016-02-23 Doug Evans <dje@google.com>
2602
2603 Extend "skip" command to support -file, -gfile, -function, -rfunction.
2604 * NEWS: Document new features.
2605 * skip.c: #include "fnmatch.h", "gdb_regex.h".
2606 (skiplist_entry) <file>: Renamed from filename.
2607 <function>: Renamed from function_name.
2608 <file_is_glob, function_is_regexp>: New members.
2609 <compiled_function_regexp, compiled_function_regexp_is_valid>:
2610 New members.
2611 (make_skip_entry): New function.
2612 (free_skiplist_entry, free_skiplist_entry_cleanup): New functions.
2613 (make_free_skiplist_entry_cleanup): New function.
2614 (skip_file_command): Update.
2615 (skip_function, skip_function_command): Update.
2616 (compile_skip_regexp): New functions.
2617 (skip_command): Add support for new options.
2618 (skip_info): Update.
2619 (skip_file_p, skip_gfile_p): New functions.
2620 (skip_function_p, skip_rfunction_p): New functions.
2621 (function_name_is_marked_for_skip): Update and simplify.
2622 (_initialize_step_skip): Update.
2623 * symtab.c: #include "fnmatch.h".
2624 (compare_glob_filenames_for_search): New function.
2625 * symtab.h (compare_glob_filenames_for_search): Declare.
2626 * utils.c (count_path_elements): New function.
2627 (strip_leading_path_elements): New function.
2628 * utils.h (count_path_elements): Declare.
2629 (strip_leading_path_elements): Declare.
2630
2631 2016-02-23 Simon Marchi <simon.marchi@ericsson.com>
2632
2633 * arm-tdep.c (arm_decode_svc_copro): Remove "to" parameter.
2634 (thumb_process_displaced_insn): Likewise.
2635 (arm_process_displaced_insn): Adjust calls.
2636
2637 2016-02-23 Yao Qi <yao.qi@linaro.org>
2638
2639 * aarch64-linux-tdep.c (enum aarch64_syscall) <aarch64_sys_mknod>:
2640 Remove.
2641 <aarch64_sys_mkdir, aarch64_sys_unlink, aarch64_sys_symlink>: Remove.
2642 <aarch64_sys_link, aarch64_sys_rename, aarch64_sys_faccess>: Remove.
2643 <aarch64_sys_mknodat, aarch64_sys_mkdirat>: New.
2644 <aarch64_sys_unlinkat, aarch64_sys_symlinkat>: New.
2645 <aarch64_sys_linkat, aarch64_sys_renameat>: New.
2646 <aarch64_sys_faccessat>: New.
2647 <aarch64_sys_open, aarch64_sys_readlink, aarch64_sys_fstatat>: Remove.
2648 <aarch64_sys_openat, aarch64_sys_readlinkat>: New.
2649 <aarch64_sys_newfstatat>: New.
2650 (UNSUPPORTED_SYSCALL_MAP): New macro.
2651 (aarch64_canonicalize_syscall): Add missing syscalls.
2652
2653 2016-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2654
2655 * gdb-gdb.py (class TypeFlagsPrinter): Use parentheses for print.
2656
2657 2016-02-22 Yao Qi <yao.qi@linaro.org>
2658
2659 * arm-tdep.c: Fix code format issues.
2660
2661 2016-02-21 Iain Buclaw <ibuclaw@gdcproject.org>
2662
2663 * d-namespace.c (d_lookup_symbol_imports): Remove argument
2664 'search_parents'. All callers updated.
2665
2666 2016-02-18 Marcin Kościelnicki <koriakin@0x04.net>
2667
2668 * s390-linux-tdep.c (s390_guess_tracepoint_registers): New function.
2669 (s390_gdbarch_init): Fill guess_tracepoint_registers hook.
2670
2671 2016-02-18 Walfred Tedeschi <walfred.tedeschi@intel.com>
2672
2673 * NEWS: Add entry for bound violation.
2674 * amd64-linux-tdep.c (amd64_linux_init_abi_common):
2675 Add handler for segmentation fault.
2676 * gdbarch.sh (handle_segmentation_fault): New.
2677 * gdbarch.c: Regenerate.
2678 * gdbarch.h: Regenerate.
2679 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): New.
2680 (SIG_CODE_BONDARY_FAULT): New define.
2681 (i386_linux_init_abi): Use i386_mpx_bound_violation_handler.
2682 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault) New.
2683 * i386-tdep.c (i386_mpx_enabled): Add as external.
2684 * i386-tdep.c (i386_mpx_enabled): Add as external.
2685 * infrun.c (handle_segmentation_fault): New function.
2686 (print_signal_received_reason): Use handle_segmentation_fault.
2687
2688 2016-02-18 Marcin Kościelnicki <koriakin@0x04.net>
2689
2690 * arch-utils.c (default_guess_tracepoint_registers): New function.
2691 * arch-utils.h (default_guess_tracepoint_registers): New prototype.
2692 * gdbarch.c: Regenerate.
2693 * gdbarch.h: Regenerate.
2694 * gdbarch.sh: Add guess_tracepoint_registers hook.
2695 * tracefile.c (tracefile_fetch_registers): Use the new gdbarch hook.
2696
2697 2016-02-17 Gary Benson <gbenson@redhat.com>
2698
2699 * exec.c (exec_file_locate_attach): Add missing cleanup.
2700
2701 2016-02-16 Don Breazeal <donb@codesourcery.com>
2702
2703 PR remote/19496
2704 * remote.c (remove_new_fork_children): Check for pending
2705 fork status in thread_info.suspend.
2706
2707 2016-02-16 Yao Qi <yao.qi@linaro.org>
2708
2709 * arm-linux-tdep.c (arm_linux_software_single_step): Assign
2710 'old_chain' later.
2711
2712 2016-02-16 Yao Qi <yao.qi@linaro.org>
2713
2714 * arch/arm-get-next-pcs.h (struct arm_get_next_pcs_ops)
2715 <syscall_next_pc>: Remove argument PC. Callers updated.
2716 * arm-linux-tdep.c (arm_linux_get_next_pcs_syscall_next_pc):
2717 Remove argument PC. Get pc from regcache_read_pc.
2718 * arm-tdep.c (arm_get_next_pcs_syscall_next_pc): Remove
2719 argument PC.
2720
2721 2016-02-15 Yao Qi <yao.qi@linaro.org>
2722
2723 * aarch64-tdep.c (aarch64_analyze_prologue): Remove "0x".
2724
2725 2016-02-12 Yao Qi <yao.qi@linaro.org>
2726
2727 * arch/arm-linux.c (arm_linux_get_next_pcs_fixup): Calculate
2728 nextpc according to instruction.
2729
2730 2016-02-12 Yao Qi <yao.qi@linaro.org>
2731
2732 * arch/arm-get-next-pcs.c (arm_get_next_pcs): Call
2733 self->ops->fixup if it isn't NULL.
2734 * arch/arm-get-next-pcs.h: Include gdb_vecs.h.
2735 (struct arm_get_next_pcs_ops) <fixup>: New field.
2736 * arch/arm-linux.c: Include common-regcache.h and
2737 arch/arm-get-next-pcs.h.
2738 (arm_linux_get_next_pcs_fixup): New function.
2739 * arch/arm-linux.h (arm_linux_get_next_pcs_fixup): Declare.
2740 * arm-linux-tdep.c (arm_linux_get_next_pcs_ops): Initialize
2741 it with arm_linux_get_next_pcs_fixup.
2742 (arm_linux_software_single_step): Move code to
2743 arm_linux_get_next_pcs_fixup.
2744 * arm-tdep.c (arm_get_next_pcs_ops): Initialize it.
2745
2746 2016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
2747
2748 * xml-tdesc.c (target_fetch_description_xml) [!HAVE_LIBEXPAT]: Warn
2749 and return NULL.
2750
2751 2016-02-12 Markus Metzger <markus.t.metzger@intel.com>
2752
2753 * frame.h (skip_tailcall_frames): Update comment.
2754 * frame.c (skip_artificial_frames, skip_tailcall_frames): Return NULL
2755 if only artificial frames are found. Update comment.
2756 (frame_unwind_caller_id): Handle NULL return.
2757 (frame_unwind_caller_pc, frame_unwind_caller_arch): Assert that
2758 skip_artificial_frames does not return NULL.
2759 (frame_pop): Add an error if only tailcall frames are found.
2760 * infcmd.c (finish_command): Move skip_tailcall_frames call into
2761 forward-execution case. Add an error if only tailcall frames are
2762 found.
2763
2764 2016-02-12 Markus Metzger <markus.t.metzger@intel.com>
2765
2766 * stack.c (frame_info): Check frame_unwind_caller_id.
2767
2768 2016-02-12 Markus Metzger <markus.t.metzger@intel.com>
2769
2770 * frame.h (skip_tailcall_frames): New.
2771 * frame.c (skip_tailcall_frames): New.
2772 (frame_pop): Call skip_tailcall_frames.
2773 * infcmd.c (finish_command): Call skip_tailcall_frames.
2774
2775 2016-02-11 Pedro Alves <palves@redhat.com>
2776
2777 * Makefile.in (check-parallel): New rule.
2778
2779 2016-02-11 Simon Marchi <simon.marchi@ericsson.com>
2780
2781 * arm-tdep.c (arm_skip_prologue): Remove unused variables.
2782 (arm_analyze_prologue): Likewise.
2783 (arm_scan_prologue): Likewise.
2784 (arm_m_exception_prev_register): Likewise.
2785 (arm_copy_block_xfer): Likewise.
2786 (thumb2_copy_block_xfer): Likewise.
2787 (arm_decode_miscellaneous): Likewise.
2788 (arm_decode_ld_st_word_ubyte): Likewise.
2789 (arm_decode_svc_copro): Likewise.
2790 (thumb2_decode_svc_copro): Likewise.
2791 (thumb_copy_16bit_ldr_literal): Likewise.
2792 (thumb_copy_pop_pc_16bit): Likewise.
2793 (decode_thumb_32bit_ld_mem_hints): Likewise.
2794 (arm_show_force_mode): Likewise.
2795 (_initialize_arm_tdep): Likewise.
2796 (arm_record_strx): Likewise.
2797 (arm_record_extension_space): Likewise.
2798 (arm_record_data_proc_misc_ld_str): Likewise.
2799 (arm_record_exreg_ld_st_insn): Likewise.
2800 (arm_record_vfp_data_proc_insn): Likewise.
2801 (arm_record_coproc_data_proc): Likewise.
2802 (thumb_record_misc): Likewise.
2803 (thumb_record_ldm_stm_swi): Likewise.
2804 (thumb2_record_ld_st_dual_ex_tbb): Likewise.
2805 (thumb2_record_ld_mem_hints): Likewise.
2806 (thumb2_record_lmul_lmla_div): Likewise.
2807 (thumb2_record_asimd_struct_ld_st): Likewise.
2808 (arm_process_record): Likewise.
2809
2810 2016-02-11 Simon Marchi <simon.marchi@ericsson.com>
2811
2812 * arm-tdep.c (arm_displaced_step_copy_insn): Remove.
2813 (ARM displaced stepping support): Remove reference to
2814 arm_displaced_step_copy_insn in comment.
2815 * arm-tdep.h (arm_displaced_step_copy_insn): Remove.
2816 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Remove
2817 reference to arm_displaced_step_copy_insn in comment.
2818
2819 2016-02-11 Simon Marchi <simon.marchi@ericsson.com>
2820
2821 * arm-tdep.c (thumb_copy_unmodified_16bit): Change type of insn.
2822 (thumb_copy_b): Likewise.
2823 (arm_decode_b_bl_ldmstm): Likewise.
2824 (thumb_copy_16bit_ldr_literal): Likewise.
2825 (thumb_copy_pop_pc_16bit): Likewise.
2826
2827 2016-02-11 Antoine Tremblay <antoine.tremblay@ericsson.com>
2828
2829 * tracepoint.c (encode_actions_1): Use target_gdbarch () rather
2830 than loc->gdbarch.
2831
2832 2016-02-10 Marcin Kościelnicki <koriakin@0x04.net>
2833
2834 * tracefile-tfile.c (trace_tdesc): New static variable.
2835 (tfile_open): Clear trace_tdesc, call target_find_description.
2836 (tfile_interp_line): Recognize tdesc lines.
2837 (tfile_close): Clear trace_tdesc.
2838 (tfile_xfer_partial_features): New function.
2839 (tfile_xfer_partial): Call tfile_xfer_partial_features.
2840 (tfile_append_tdesc_line): New function.
2841
2842 2016-02-10 Marcin Kościelnicki <koriakin@0x04.net>
2843
2844 * ctf.c (ctf_write_tdesc): New function.
2845 (ctf_write_ops): Wire in ctf_write_tdesc.
2846 * tracefile-tfile.c (tfile_write_tdesc): New function.
2847 (tfile_write_ops): Wire in tfile_write_tdesc.
2848 * tracefile.c (trace_save): Call write_tdesc method.
2849 * tracefile.h (struct trace_file_write_ops): Add write_tdesc method.
2850 * xml-tdesc.c (target_fetch_description_xml): New function.
2851 * xml-tdesc.h: Add target_fetch_description_xml prototype.
2852
2853 2016-02-10 Simon Marchi <simon.marchi@ericsson.com>
2854
2855 * arm-tdep.c (arm_copy_extra_ld_st): Fix "unpriveleged" typo.
2856 (arm_decode_dp_misc): Likewise.
2857
2858 2016-02-10 Marcin Kościelnicki <koriakin@0x04.net>
2859
2860 * amd64-tdep.c (amd64_ax_pseudo_register_collect): New function.
2861 (amd64_init_abi): Fill ax_pseudo_register_collect hook.
2862 * gdb/i386-tdep.c (i386_pseudo_register_read_into_value): Remove
2863 misleading comment.
2864 (i386_pseudo_register_write): Ditto.
2865 (i386_ax_pseudo_register_collect): New function.
2866 (i386_gdbarch_init): Fill ax_pseudo_register_collect hook.
2867 * i386-tdep.h: Add i386_ax_pseudo_register_collect prototype.
2868
2869 2016-02-10 Marcin Kościelnicki <koriakin@0x04.net>
2870
2871 * tracefile-tfile.c (tfile_fetch_registers): Use g packet order
2872 instead of gdb order.
2873
2874 2016-02-10 Marcin Kościelnicki <koriakin@0x04.net>
2875
2876 * tracefile-tfile.c (tfile_fetch_registers): Fix off-by-one in bounds
2877 check.
2878
2879 2016-02-10 Joel Brobecker <brobecker@adacore.com>
2880
2881 * NEWS: Create a new section for the next release branch.
2882 Rename the section of the current branch, now that it has
2883 been cut.
2884
2885 2016-02-10 Joel Brobecker <brobecker@adacore.com>
2886
2887 GDB 7.11 branch created (9ef9e6a6a0dd8f948708cb67c9afcfd0be40cb0a):
2888 * version.in: Bump version to 7.11.50.DATE-git.
2889
2890 2016-02-09 Keith Seitz <keiths@redhat.com>
2891
2892 PR breakpoints/19546
2893 * breakpoint.c (breakpoint_event_location_empty_p): New function.
2894 (update_breakpoints_after_exec, bkpt_re_set): Use this new function
2895 instead of event_location_empty_p.
2896
2897 2016-02-09 Keith Seitz <keiths@redhat.com>
2898
2899 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Use
2900 string_to_event_location_basic instead of string_to_event_location.
2901
2902 2016-02-09 Keith Seitz <keiths@redhat.com>
2903
2904 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Skip
2905 leading whitespace and use string_to_event_location_basic instead
2906 of new_linespec_location.
2907
2908 2016-02-09 Keith Seitz <keiths@redhat.com>
2909
2910 PR python/19506
2911 * python/py-breakpoint.c (bppy_init): Use
2912 string_to_event_location_basic instead of new_linespec_location.
2913
2914 2016-02-09 Keith Seitz <keiths@redhat.com>
2915
2916 * location.c (string_to_explicit_location): Note that "-p" is
2917 reserved for probe locations and return NULL for any input
2918 that starts with that.
2919 (string_to_event_location): Move "legacy" linespec code to ...
2920 (string_to_event_location_basic): ... here.
2921 * location.h (string_to_event_location): Update comment.
2922 (string_to_event_location_basic): New function.
2923
2924 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
2925
2926 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
2927 to AC_OUTPUT. Remove "exit 0" at the end.
2928 * configure: Regenerate.
2929
2930 2016-02-09 Pedro Alves <palves@redhat.com>
2931
2932 PR breakpoints/19548
2933 * breakpoint.c (create_overlay_event_breakpoint): Don't update
2934 global location list here.
2935 (create_longjmp_master_breakpoint)
2936 (create_std_terminate_master_breakpoint)
2937 (create_exception_master_breakpoint, create_jit_event_breakpoint)
2938 (update_breakpoint_locations):
2939 (breakpoint_re_set): Update global location list after all
2940 breakpoints are re-set.
2941
2942 2016-02-08 Simon Marchi <simon.marchi@ericsson.com>
2943
2944 * remote.c (remote_register_number_and_offset): Remove unused
2945 variable(s).
2946 (remote_thread_always_alive): Likewise.
2947 (remote_update_thread_list): Likewise.
2948 (process_initial_stop_replies): Likewise.
2949 (remote_start_remote): Likewise.
2950 (remote_check_symbols): Likewise.
2951 (discard_pending_stop_replies): Likewise.
2952 (process_stop_reply): Likewise.
2953 (putpkt_binary): Likewise.
2954 (getpkt): Likewise.
2955 (remote_add_target_side_condition): Likewise.
2956 (remote_insert_breakpoint): Likewise.
2957 (remote_supports_stopped_by_sw_breakpoint): Likewise.
2958 (remote_supports_stopped_by_hw_breakpoint): Likewise.
2959 (remote_xfer_partial): Likewise.
2960 (remote_read_btrace): Likewise.
2961 (remote_async_serial_handler): Likewise.
2962 (remote_thread_events): Likewise.
2963 (_initialize_remote): Likewise.
2964
2965 2016-02-07 Simon Marchi <simon.marchi@polymtl.ca>
2966
2967 * varobj.h (varobj_delete): Remove dellist parameter, update and
2968 move documentation here.
2969 * varobj.c (struct cpstack, cppush, cppop): Remove.
2970 (delete_variable): Remove resultp (first) parameter.
2971 (delete_variable_1): Likewise.
2972 (varobj_delete): Remove dellist parameter and unused code.
2973 (update_dynamic_varobj_children): Adjust varobj_delete call.
2974 (update_type_if_necessary): Likewise.
2975 (varobj_set_visualizer): Likewise.
2976 (varobj_update): Likewise.
2977 (value_of_root): Likewise.
2978 (varobj_invalidate_iter): Likewise.
2979 * mi/mi-cmd-var.c (mi_cmd_var_delete): Likewise.
2980
2981 2016-02-04 Yao Qi <yao.qi@linaro.org>
2982
2983 * remote.c (remote_wait_as): Set rs->waiting_for_stop_reply to
2984 0 before handling 'F' and set it back afterwards.
2985
2986 2016-02-02 Simon Marchi <simon.marchi@ericsson.com>
2987
2988 * ui-out.c (MAX_UI_OUT_LEVELS): Remove.
2989
2990 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
2991
2992 * amd64-linux-siginfo.c (nat_siginfo_t, nat_sigval_t, nat_timeval):
2993 New types.
2994 (compat_siginfo): New bound fields added.
2995 (compat_x32_siginfo): New field added.
2996 (cpt_si_addr_lsb): New define.
2997 (compat_siginfo_from_siginfo): Use nat_siginfo.
2998 (siginfo_from_compat_siginfo): Use nat_siginfo.
2999 (compat_x32_siginfo_from_siginfo): Likewise.
3000 (siginfo_from_compat_x32_siginfo): Likewise.
3001
3002 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
3003
3004 * linux-tdep.c (linux_get_siginfo_type): Add the _addr_bnd
3005 structure to the siginfo if extra_fields contains
3006 LINUX_SIGINFO_FIELD_ADDR_BND.
3007
3008 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
3009
3010 * linux-tdep.h (linux_get_siginfo_type_with_fields): Make extern.
3011 * linux-tdep.c (linux_get_siginfo_type_with_fields): Make extern.
3012 * i386-linux-tdep.h (x86_linux_get_siginfo_type): New
3013 function.
3014 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Add
3015 x86_linux_get_siginfo_type for the amd64 abi.
3016 * i386-linux-tdep.c (x86_linux_get_siginfo_type): New
3017 function.
3018 (i386_linux_init_abi): Add new function at the i386 ABI
3019 initialization.
3020
3021 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
3022
3023 * linux-tdep.h (linux_siginfo_extra_field_values): New enum values.
3024 (linux_siginfo_extra_fields): New enum type.
3025 * linux-tdep.c (linux_get_siginfo_type_with_fields): New function.
3026 (linux_get_siginfo_type): Use new function.
3027
3028 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
3029
3030 * nat/amd64-linux-siginfo.c: New file.
3031 * nat/amd64-linux-siginfo.h: New file.
3032 * Makefile.in (HFILES_NO_SRCDIR): Add nat/amd64-linux-siginfo.h.
3033 (amd64-linux-siginfo.o): New rule.
3034 * config/i386/linux64.mh (NATDEPFILES): Add amd64-linux-siginfo.o.
3035 * amd64-linux-nat.c (nat/amd64-linux-siginfo.h): New include.
3036 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
3037 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
3038 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
3039 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
3040 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
3041 (cpt_si_fd, si_timerid, si_overrun): Move to nat/amd64-linux-siginfo.c.
3042
3043 2016-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
3044
3045 * value.c (max_value_size): New variable.
3046 (MIN_VALUE_FOR_MAX_VALUE_SIZE): New define.
3047 (set_max_value_size): New function.
3048 (show_max_value_size): New function.
3049 (check_type_length_before_alloc): New function.
3050 (allocate_value_contents): Call check_type_length_before_alloc.
3051 (set_value_enclosing_type): Likewise.
3052 (_initialize_values): Add set/show handler for max-value-size.
3053 * NEWS: Mention new set/show command.
3054
3055 2016-01-31 Simon Marchi <simon.marchi@polymtl.ca>
3056
3057 * varobj.h (struct varobj): Fix typos in comments.
3058 (struct lang_varobj_ops): Likewise.
3059 * varobj.c (VAROBJ_TABLE_SIZE): Likewise.
3060 (varobj_create): Move misplaced comment.
3061
3062 2016-01-29 Simon Marchi <simon.marchi@ericsson.com>
3063
3064 * aarch64-tdep.c (aarch64_record_asimd_load_store): Add braces
3065 to for include additional lines.
3066 * xcoffread.c (scan_xcoff_symtab): Remove unnecessary braces.
3067
3068 2016-01-28 Simon Marchi <simon.marchi@ericsson.com>
3069
3070 * gnulib/import/Makefile.am: Regenerate.
3071 * gnulib/import/Makefile.in: Regenerate.
3072 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
3073 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add rawmemchr.
3074
3075 2016-01-28 Simon Marchi <simon.marchi@ericsson.com>
3076
3077 * remote.c (skip_to_semicolon): Remove.
3078 (remote_parse_stop_reply): Use strchrnul instead of
3079 skip_to_semicolon.
3080 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
3081 strchrnul.
3082 * gnulib/aclocal.m4: Regenerate.
3083 * gnulib/config.in: Regenerate.
3084 * gnulib/configure: Regenerate.
3085 * gnulib/import/Makefile.am: Regenerate.
3086 * gnulib/import/Makefile.in: Regenerate.
3087 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
3088 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
3089 * gnulib/import/m4/rawmemchr.m4: New file.
3090 * gnulib/import/m4/strchrnul.m4: New file.
3091 * gnulib/import/rawmemchr.c: New file.
3092 * gnulib/import/rawmemchr.valgrind: New file.
3093 * gnulib/import/strchrnul.c: New file.
3094 * gnulib/import/strchrnul.valgrind: New file.
3095
3096 2016-01-28 Yao Qi <yao.qi@linaro.org>
3097
3098 * breakpoint.c (build_target_command_list): Don't call continue
3099 if aexpr is NULL.
3100 (build_target_condition_list): Likewise.
3101
3102 2016-01-27 Kevin Buettner <kevinb@redhat.com>
3103
3104 * rx-tdep.c (rx_push_dummy_call): Treat scalars larger than 8
3105 bytes as aggregates.
3106
3107 2016-01-27 Joel Brobecker <brobecker@adacore.com>
3108
3109 * MAINTAINERS (Responsible Maintainers): Add Keith Seitz as
3110 Linespec Maintainers.
3111
3112 2016-01-26 Simon Marchi <simon.marchi@ericsson.com>
3113
3114 * common/common-utils.c (skip_spaces): Fix comment.
3115 (skip_to_space_const): Likewise.
3116
3117 2016-01-25 Yao Qi <yao.qi@linaro.org>
3118
3119 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
3120 Remove argument pc. Get pc by regcache_read_pc. Callers updated.
3121 (arm_deal_with_atomic_sequence_raw): Likewise.
3122 (thumb_get_next_pcs_raw): Likewise.
3123 (arm_get_next_pcs_raw): Likewise.
3124 (arm_get_next_pcs): Remove argument pc. Callers updated.
3125 * arch/arm-get-next-pcs.h (arm_get_next_pcs): Update declaration.
3126
3127 2016-01-25 Mark Wielaard <mjw@redhat.com>
3128
3129 * ada-lang.c (ada_evaluate_subexp): Add proper else block.
3130 * c-typeprint.c (c_type_print_base): Fix misleading indentation of
3131 if statement.
3132 * inflow.c (child_terminal_ours_1): Fix misleading indentation of
3133 statement block by introducing an else.
3134 * linux-record.c (record_linux_sockaddr): Fix misleading indentation
3135 of return statements.
3136 (record_linux_msghdr): Likewise.
3137
3138 2016-01-25 Pedro Alves <palves@redhat.com>
3139
3140 PR threads/19461
3141 * infrun.c (handle_inferior_event_1) <fork/vfork>: Update
3142 parent/child running states.
3143
3144 2016-01-25 Pedro Alves <palves@redhat.com>
3145
3146 PR gdb/19494
3147 * linux-nat.c (kill_one_lwp): New, factored out from ...
3148 (kill_callback): ... this.
3149 (kill_wait_callback): New, factored out from ...
3150 (kill_wait_one_lwp): ... this.
3151 (kill_unfollowed_fork_children): New function.
3152 (linux_nat_kill): Use it.
3153
3154 2016-01-22 John Baldwin <jhb@FreeBSD.org>
3155
3156 * fbsd-nat.c (fbsd_pid_to_str): Adjust string format.
3157
3158 2016-01-22 Yao Qi <yao.qi@linaro.org>
3159
3160 * arm-linux-nat.c (fetch_fpregs): Call perror_with_name
3161 instead of warning.
3162 (store_fpregs, fetch_regs, store_regs): Likewise.
3163 (fetch_wmmx_regs, store_wmmx_regs): Likewise.
3164 (fetch_vfp_regs, store_vfp_regs): Likewise.
3165
3166 2016-01-21 Doug Evans <dje@google.com>
3167
3168 * breakpoint.c (init_breakpoint_sal): Add comment.
3169
3170 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
3171
3172 * ax-gdb.c (gen_traced_pop): Use gen_fetch for string collection.
3173
3174 2016-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
3175
3176 * disasm.c (maybe_add_dis_line_entry): Rename to...
3177 (add_dis_line_entry): ...this, and update header comment.
3178 (do_mixed_source_and_assembly): Now use add_dis_line_entry.
3179
3180 2016-01-21 Pedro Alves <palves@redhat.com>
3181
3182 * Makefile.in (COMPILER_CFLAGS): New.
3183 (CXXFLAGS): Get it from configure.
3184 (INTERNAL_CFLAGS_BASE, INTERNAL_LDFLAGS): Use COMPILER_CFLAGS
3185 instead of CFLAGS.
3186 * build-with-cxx.m4 (GDB_AC_BUILD_WITH_CXX): Set and AC_SUBST
3187 COMPILER_CFLAGS.
3188 * configure: Regenerate.
3189
3190 2016-01-21 Joel Brobecker <brobecker@adacore.com>
3191
3192 * location.h (new_address_location): Add new parameters
3193 "addr_string" and "addr_string_len".
3194 (get_address_string_location): Add declaration.
3195 * location.c (new_address_location): Add new parameters
3196 "addr_string" and "addr_string_len". If not NULL, store
3197 a copy of the addr_string in the new location as well.
3198 (get_address_string_location): New function.
3199 (string_to_event_location): Update call to new_address_location.
3200 * linespec.c (event_location_to_sals) <ADDRESS_LOCATION>:
3201 Save the event location in the parser's state before
3202 passing it to convert_address_location_to_sals.
3203 * breakpoint.c (create_thread_event_breakpoint): Update call
3204 to new_address_location.
3205 (init_breakpoint_sal): Get the event location's string, if any,
3206 and use it to update call to new_address_location.
3207 * python/py-finishbreakpoint.c (bpfinishpy_init):
3208 Update call to new_address_location.
3209 * spu-tdep.c (spu_catch_start): Likewise.
3210
3211 * config/djgpp/fnchange.lst: Add entries for
3212 gdb/testsuite/gdb.base/break-fun-addr1.c and
3213 gdb/testsuite/gdb.base/break-fun-addr2.c.
3214
3215 2016-01-21 Yao Qi <yao.qi@linaro.org>
3216
3217 * arm-linux-tdep.c (arm_linux_sigreturn_next_pc): Add parameter
3218 is_thumb and set it according to CPSR saved on the stack.
3219 (arm_linux_get_next_pcs_syscall_next_pc): Pass is_thumb to
3220 arm_linux_sigreturn_next_pc.
3221
3222 2016-01-20 Simon Marchi <simon.marchi@polymtl.ca>
3223
3224 * python/lib/gdb/printing.py (FlagEnumerationPrinter.__call__):
3225 Fix enumerators sort key function.
3226
3227 2016-01-20 Joel Brobecker <brobecker@adacore.com>
3228
3229 * printcmd.c (print_scalar_formatted): Move binary operator from
3230 end of line to beginning of next line. Adjust formatting
3231 accordingly.
3232
3233 2016-01-19 John Baldwin <jhb@FreeBSD.org>
3234
3235 * fbsd-nat.c (fbsd_pid_to_exec_file): Use new "buflen" instead of
3236 "len" with sysctl.
3237
3238 2016-01-19 John Baldwin <jhb@FreeBSD.org>
3239
3240 * fbsd-tdep.c (find_stop_signal): Remove.
3241 (struct fbsd_collect_regset_section_cb) <lwp>: New field.
3242 <stop_signal>: New field.
3243 <abort_iteration>: New field.
3244 (fbsd_collect_regset_section_cb): Use new fields.
3245 (fbsd_collect_thread_registers): New function.
3246 (struct fbsd_corefile_thread_data): New structure.
3247 (fbsd_corefile_thread): New function.
3248 (fbsd_make_corefile_notes): Use new function to dump notes for each
3249 non-exited thread in a process.
3250
3251 2016-01-19 John Baldwin <jhb@FreeBSD.org>
3252
3253 * configure.ac: Check for support for LWP names on FreeBSD.
3254 * fbsd-nat.c [PT_LWPINFO] New variable debug_fbsd_lwp.
3255 [TDP_RFPPWAIT || HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME]
3256 (fbsd_fetch_kinfo_proc): Move function earlier.
3257 [PT_LWPINFO] (fbsd_thread_alive): New function.
3258 [PT_LWPINFO] (fbsd_pid_to_str): New function.
3259 [HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME] (fbsd_thread_name): New function.
3260 [PT_LWP_EVENTS] (fbsd_enable_lwp_events): New function.
3261 [PT_LWPINFO] (fbsd_add_threads): New function.
3262 [PT_LWPINFO] (fbsd_update_thread_list): New function.
3263 [PT_LWPINFO] New variable super_resume.
3264 [PT_LWPINFO] (resume_one_thread_cb): New function.
3265 [PT_LWPINFO] (resume_all_threads_cb): New function.
3266 [PT_LWPINFO] (fbsd_resume): New function.
3267 (fbsd_remember_child): Save full ptid instead of plain pid.
3268 (fbsd_is_child_pending): Return ptid of saved child process.
3269 (fbsd_wait): Include lwp in returned ptid and switch to LWP ptid on
3270 first stop.
3271 [PT_LWP_EVENTS] Handle LWP events.
3272 [TDP_RFPPWAIT] Include LWP in child ptid.
3273 (fbsd_post_startup_inferior) [PT_LWP_EVENTS]: Enable LWP events.
3274 (fbsd_post_attach) [PT_LWP_EVENTS]: Enable LWP events.
3275 Add threads for existing processes.
3276 (fbsd_nat_add_target) [PT_LWPINFO]: Set "to_thread_alive" to
3277 "fbsd_thread_alive".
3278 Set "to_pid_to_str" to "fbsd_pid_to_str".
3279 [HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME]: Set "to_thread_name" to
3280 "fbsd_thread_name".
3281 [PT_LWPINFO]: Set "to_update_thread_list" to "fbsd_update_thread_list".
3282 Set "to_has_thread_control" to "tc_schedlock".
3283 Set "to_resume" to "fbsd_resume".
3284 (_initialize_fbsd_nat): New function.
3285 * configure: Regenerate.
3286 * config.in: Regenerate.
3287
3288 2016-01-19 John Baldwin <jhb@FreeBSD.org>
3289
3290 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
3291 get_ptrace_pid.
3292 (amd64bsd_store_inferior_registers): Use get_ptrace_pid.
3293 (amd64bsd_dr_get): Use get_ptrace_pid.
3294 (amd64bsd_dr_set): Use get_ptrace_pid.
3295 * i386bsd-nat.c (i386bsd_fetch_inferior_registers): Use get_ptrace_pid.
3296 (i386bsd_store_inferior_registers): Use get_ptrace_pid.
3297 (i386bsd_dr_get): Use get_ptrace_pid.
3298 (i386bsd_dr_set): Use get_ptrace_pid.
3299 * inf-ptrace.c (get_ptrace_pid): Export.
3300 * inf-ptrace.h (get_ptrace_pid): Declare.
3301 * ppcfbsd-nat.c (ppcfbsd_fetch_inferior_registers): Use lwp id.
3302 (ppcfbsd_store_inferior_registers): Use lwp id.
3303
3304 2016-01-19 John Baldwin <jhb@FreeBSD.org>
3305
3306 * fbsd_tdep.c (fbsd_core_pid_to_str): New function.
3307 (fbsd_core_thread_name): New function.
3308 (fbsd_init_abi): Add "core_pid_to_str" gdbarch method.
3309 Add "core_thread_name" gdbarch method.
3310
3311 2016-01-19 John Baldwin <jhb@FreeBSD.org>
3312
3313 * corelow.c (core_thread_name): New function.
3314 (init_core_ops): Use "core_thread_name" for the "to_thread_name"
3315 target op.
3316 * gdbarch.sh (core_thread_name): New gdbarch callback.
3317 * gdbarch.h: Re-generate.
3318 * gdbarch.c: Re-generate.
3319
3320 2016-01-19 Simon Marchi <simon.marchi@polymtl.ca>
3321
3322 * python/lib/gdb/printing.py (_EnumInstance.to_string): Explicitly
3323 convert gdb.Value to integer type using int().
3324
3325 2016-01-19 John Baldwin <jhb@FreeBSD.org>
3326
3327 * configure.ac: Include <sys/types.h when checking for "r_fs" in
3328 "struct reg".
3329 * configure: Regenerate.
3330
3331 2016-01-19 Pedro Alves <palves@redhat.com>
3332
3333 * ax-gdb.c (agent_command_1): Adjust call to decode_line_full.
3334 * break-catch-throw.c (re_set_exception_catchpoint): Pass the
3335 current program space down to linespec decoding and breakpoint
3336 location updating.
3337 * breakpoint.c (parse_breakpoint_sals): Adjust calls to
3338 decode_line_full.
3339 (until_break_command): Adjust calls to decode_line_1.
3340 (base_breakpoint_decode_location, bkpt_decode_location): Add
3341 'search_pspace' parameter. Pass it along.
3342 (bkpt_probe_create_sals_from_location): Adjust calls to
3343 parse_probes.
3344 (tracepoint_decode_location, tracepoint_probe_decode_location)
3345 (strace_marker_decode_location): Add 'search_pspace' parameter.
3346 Pass it along.
3347 (all_locations_are_pending): Rewrite to take a breakpoint and
3348 program space as arguments instead.
3349 (hoist_existing_locations): New function.
3350 (update_breakpoint_locations): Add 'filter_pspace' parameter. Use
3351 hoist_existing_locations instead of always removing all locations,
3352 and adjust to all_locations_are_pending change.
3353 (location_to_sals): Add 'search_pspace' parameter. Pass it along.
3354 Don't disable the breakpoint if there are other locations in
3355 another program space.
3356 (breakpoint_re_set_default): Adjust to pass down the current
3357 program space as filter program space.
3358 (decode_location_default): Add 'search_pspace' parameter and pass
3359 it along.
3360 (prepare_re_set_context): Don't switch program space here.
3361 (breakpoint_re_set): Use save_current_space_and_thread instead of
3362 save_current_program_space.
3363 * breakpoint.h (struct breakpoint_ops) <decode_location>: Add
3364 'search_pspace' parameter.
3365 (update_breakpoint_locations): Add 'filter_pspace' parameter.
3366 * cli/cli-cmds.c (edit_command, list_command): Adjust calls to
3367 decode_line_1.
3368 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the current
3369 program space as filter program space.
3370 * linespec.c (struct linespec_state) <search_pspace>: New field.
3371 (create_sals_line_offset, convert_explicit_location_to_sals)
3372 (parse_linespec): Pass the search program space down.
3373 (linespec_state_constructor): Add 'search_pspace' parameter.
3374 Store it.
3375 (linespec_parser_new): Add 'search_pspace' parameter and pass it
3376 along.
3377 (linespec_lex_to_end): Adjust.
3378 (decode_line_full, decode_line_1): Add 'search_pspace' parameter
3379 and pass it along.
3380 (decode_line_with_last_displayed): Adjust.
3381 (collect_symtabs_from_filename, symtabs_from_filename): New
3382 'search_pspace' parameter. Use it.
3383 (find_function_symbols): Pass the search program space down.
3384 * linespec.h (decode_line_1, decode_line_full): Add
3385 'search_pspace' parameter.
3386 * probe.c (parse_probes_in_pspace): New function, factored out
3387 from ...
3388 (parse_probes): ... this. Add 'search_pspace' parameter and use
3389 it.
3390 * probe.h (parse_probes): Add pspace' parameter.
3391 * python/python.c (gdbpy_decode_line): Adjust.
3392 * tracepoint.c (scope_info): Adjust.
3393
3394 2016-01-18 Maciej W. Rozycki <macro@imgtec.com>
3395
3396 * mips-tdep.c (mips_insn_size): Remove 48-bit microMIPS
3397 instruction support.
3398 (micromips_next_pc): Likewise.
3399 (micromips_scan_prologue): Likewise.
3400 (micromips_deal_with_atomic_sequence): Likewise.
3401 (micromips_stack_frame_destroyed_p): Likewise.
3402 (mips_breakpoint_from_pc): Likewise.
3403
3404 2016-01-18 Maciej W. Rozycki <macro@imgtec.com>
3405
3406 * mips-tdep.c (micromips_insn_at_pc_has_delay_slot): Pass
3407 unshifted 16-bit microMIPS instruction word to `mips_insn_size'.
3408
3409 2016-01-18 Pedro Alves <palves@redhat.com>
3410
3411 * NEWS: Mention that GDB now displays the ID and name of the
3412 thread that hit a breakpoint or received a signal.
3413 * break-catch-sig.c (signal_catchpoint_print_it): Use
3414 maybe_print_thread_hit_breakpoint.
3415 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
3416 * break-catch-throw.c (print_it_exception_catchpoint): Likewise.
3417 * breakpoint.c (maybe_print_thread_hit_breakpoint): New function.
3418 (print_it_catch_fork, print_it_catch_vfork, print_it_catch_solib)
3419 (print_it_catch_exec, print_it_ranged_breakpoint)
3420 (print_it_watchpoint, print_it_masked_watchpoint, bkpt_print_it):
3421 Use maybe_print_thread_hit_breakpoint.
3422 * breakpoint.h (maybe_print_thread_hit_breakpoint): Declare.
3423 * gdbthread.h (show_thread_that_caused_stop): Declare.
3424 * infrun.c (print_signal_received_reason): Print which thread
3425 received signal.
3426 * thread.c (show_thread_that_caused_stop): New function.
3427
3428 2016-01-18 Gary Benson <gbenson@redhat.com>
3429
3430 * nat/linux-namespaces.c (do_fork): New function.
3431 (linux_mntns_get_helper): Use the above.
3432
3433 2016-01-17 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de> (tiny change)
3434
3435 Pushed by Joel Brobecker <brobecker@adacore.com>.
3436 PR gdb/19208
3437 * dwarf2read.c (read_partial_die): Do not call set_objfile_main_name
3438 if the function has no name.
3439
3440 2016-01-15 Sandra Loosemore <sandra@codesourcery.com>
3441
3442 * charset.c [PHONY_ICONV] (GDB_DEFAULT_HOST_CHARSET):
3443 Conditionalize for Windows host.
3444 (GDB_DEFAULT_TARGET_CHARSET): Match GDB_DEFAULT_HOST_CHARSET.
3445 (GDB_DEFAULT_TARGET_WIDE_CHARSET): Use UTF-32.
3446 (phony_iconv_open): Handle both UTF-32 endiannesses.
3447 (phony_iconv): Likewise. Check for output overflow and clean up
3448 out-of-input cases. Correct adjustment to input buffer pointer.
3449 (set_be_le_names) [PHONY_ICONV]: Use hard-wired names to match
3450 phony_iconv_open.
3451
3452 2016-01-15 Pedro Alves <palves@redhat.com>
3453
3454 * NEWS: Mention star wildcard ranges.
3455 * cli/cli-utils.c (get_number_or_range): Check state->in_range first.
3456 (number_range_setup_range): New function.
3457 * cli/cli-utils.h (number_range_setup_range): New declaration.
3458 * thread.c (thread_apply_command): Support star TID ranges.
3459 * tid-parse.c (tid_range_parser_finished)
3460 (tid_range_parser_string, tid_range_parser_skip)
3461 (get_tid_or_range, get_tid_or_range): Handle
3462 TID_RANGE_STATE_STAR_RANGE.
3463 (tid_range_parser_star_range): New function.
3464 * tid-parse.h (enum tid_range_state) <TID_RANGE_STATE_STAR_RANGE>:
3465 New value.
3466 (tid_range_parser_star_range): New declaration.
3467
3468 2016-01-15 Pedro Alves <palves@redhat.com>
3469
3470 * thread.c (thread_apply_command): Use the tid range parser to
3471 advance past the thread ID list.
3472 * tid-parse.c (get_positive_number_trailer): New function.
3473 (parse_thread_id): Use it.
3474 (get_tid_or_range): Use it. Return 0 instead of throwing invalid
3475 thread ID error.
3476 (get_tid_or_range): Detect negative values. Return 0 instead of
3477 throwing invalid thread ID error.
3478
3479 2016-01-14 Yao Qi <yao.qi@linaro.org>
3480
3481 * arm-linux-tdep.c (arm_linux_get_next_pcs_syscall_next_pc):
3482 Declare.
3483 (arm_linux_get_next_pcs_ops): Install
3484 arm_linux_get_next_pcs_syscall_next_pc.
3485 (arm_linux_syscall_next_pc): Change to ...
3486 (arm_linux_get_next_pcs_syscall_next_pc): ... it.
3487 (arm_linux_init_abi): Don't set tdep->syscall_next_pc.
3488 * arm-tdep.c (arm_get_next_pcs_syscall_next_pc): Declare.
3489 (arm_get_next_pcs_syscall_next_pc): Make it static. Don't
3490 call tdep->syscall_next_pc.
3491 * arm-tdep.h (struct gdbarch_tdep) <syscall_next_pc>: Remove.
3492 (arm_get_next_pcs_syscall_next_pc): Remove.
3493
3494 2016-01-14 Yao Qi <yao.qi@linaro.org>
3495
3496 * remote.c (remote_set_syscall_catchpoint): Cast to char *.
3497 * thread.c (do_captured_thread_select): Cast to const char *.
3498
3499 2016-01-14 Yao Qi <yao.qi@linaro.org>
3500
3501 * arch/arm-get-next-pcs.c (arm_get_next_pcs_ctor): Change
3502 argument arm_thumb2_breakpoint to has_thumb2_breakpoint.
3503 (thumb_get_next_pcs_raw): Check has_thumb2_breakpoint
3504 instead.
3505 * arch/arm-get-next-pcs.h (struct arm_get_next_pcs)
3506 <arm_thumb2_breakpoint>: Remove.
3507 <has_thumb2_breakpoint>: New field.
3508 (arm_get_next_pcs_ctor): Update declaration.
3509 * arm-linux-tdep.c (arm_linux_software_single_step): Pass
3510 1 to arm_get_next_pcs_ctor.
3511 * arm-tdep.c (arm_software_single_step): Pass 0 to
3512 arm_get_next_pcs_ctor.
3513
3514 2016-01-13 Ulrich Weigand <uweigand@de.ibm.com>
3515
3516 * MAINTAINERS: Add Andreas Arnez as s390 target maintainer.
3517
3518 2016-01-13 Yao Qi <yao.qi@linaro.org>
3519
3520 * arch/arm-get-next-pcs.c (arm_get_next_pcs_raw): Use
3521 byte_order_for_code to read instruction.
3522
3523 2016-01-13 Pedro Alves <palves@redhat.com>
3524
3525 * NEWS: Mention $_gthread.
3526 * gdbthread.h (struct thread_info) <global_num>: Mention
3527 $_gthread.
3528 * thread.c (thread_num_make_value_helper): New function.
3529 (thread_id_make_value): Delete.
3530 (thread_id_per_inf_num_make_value, global_thread_id_make_value):
3531 New.
3532 (thread_funcs): Adjust.
3533 (gthread_funcs): New.
3534 (_initialize_thread): Register $_gthread variable.
3535
3536 2016-01-13 Pedro Alves <palves@redhat.com>
3537
3538 * NEWS: Mention "info threads -gid".
3539 * gdbthread.h (struct thread_info) <global_num>: Mention "info
3540 threads -gid".
3541 * thread.c (info_threads_command): Handle "-gid".
3542 (_initialize_thread): Adjust "info threads" help string to mention
3543 -gid.
3544
3545 2016-01-13 Pedro Alves <palves@redhat.com>
3546
3547 * NEWS: Mention InferiorThread.global_num.
3548 * python/py-infthread.c (thpy_get_global_num): New function.
3549 (thread_object_getset): Register "global_num".
3550
3551 2016-01-13 Pedro Alves <palves@redhat.com>
3552
3553 * NEWS: Mention that thread IDs are now per inferior and global
3554 thread IDs.
3555 * Makefile.in (SFILES): Add tid-parse.c.
3556 (COMMON_OBS): Add tid-parse.o.
3557 (HFILES_NO_SRCDIR): Add tid-parse.h.
3558 * ada-tasks.c: Adjust to use ptid_to_global_thread_id.
3559 * breakpoint.c (insert_breakpoint_locations)
3560 (remove_threaded_breakpoints, bpstat_check_breakpoint_conditions)
3561 (print_one_breakpoint_location, set_longjmp_breakpoint)
3562 (check_longjmp_breakpoint_for_call_dummy)
3563 (set_momentary_breakpoint): Adjust to use global IDs.
3564 (find_condition_and_thread, watch_command_1): Use parse_thread_id.
3565 (until_break_command, longjmp_bkpt_dtor)
3566 (breakpoint_re_set_thread, insert_single_step_breakpoint): Adjust
3567 to use global IDs.
3568 * dummy-frame.c (pop_dummy_frame_bpt): Adjust to use
3569 ptid_to_global_thread_id.
3570 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
3571 * gdbthread.h (struct thread_info): Rename field 'num' to
3572 'global_num. Add new fields 'per_inf_num' and 'inf'.
3573 (thread_id_to_pid): Rename thread_id_to_pid to
3574 global_thread_id_to_ptid.
3575 (pid_to_thread_id): Rename to ...
3576 (ptid_to_global_thread_id): ... this.
3577 (valid_thread_id): Rename to ...
3578 (valid_global_thread_id): ... this.
3579 (find_thread_id): Rename to ...
3580 (find_thread_global_id): ... this.
3581 (ALL_THREADS, ALL_THREADS_BY_INFERIOR): Declare.
3582 (print_thread_info): Add comment.
3583 * tid-parse.h: New file.
3584 * tid-parse.c: New file.
3585 * infcmd.c (step_command_fsm_prepare)
3586 (step_command_fsm_should_stop): Adjust to use the global thread
3587 ID.
3588 (until_next_command, until_next_command)
3589 (finish_command_fsm_should_stop): Adjust to use the global thread
3590 ID.
3591 (attach_post_wait): Adjust to check the inferior number too.
3592 * inferior.h (struct inferior) <highest_thread_num>: New field.
3593 * infrun.c (handle_signal_stop)
3594 (insert_exception_resume_breakpoint)
3595 (insert_exception_resume_from_probe): Adjust to use the global
3596 thread ID.
3597 * record-btrace.c (record_btrace_open): Use global thread IDs.
3598 * remote.c (process_initial_stop_replies): Also consider the
3599 inferior number.
3600 * target.c (target_pre_inferior): Clear the inferior's highest
3601 thread num.
3602 * thread.c (clear_thread_inferior_resources): Adjust to use the
3603 global thread ID.
3604 (new_thread): New inferior parameter. Adjust to use it. Set both
3605 the thread's global ID and the thread's per-inferior ID.
3606 (add_thread_silent): Adjust.
3607 (find_thread_global_id): New.
3608 (find_thread_id): Make static. Adjust to rename.
3609 (valid_thread_id): Rename to ...
3610 (valid_global_thread_id): ... this.
3611 (pid_to_thread_id): Rename to ...
3612 (ptid_to_global_thread_id): ... this.
3613 (thread_id_to_pid): Rename to ...
3614 (global_thread_id_to_ptid): ... this. Adjust.
3615 (first_thread_of_process): Adjust.
3616 (do_captured_list_thread_ids): Adjust to use global thread IDs.
3617 (should_print_thread): New function.
3618 (print_thread_info): Rename to ...
3619 (print_thread_info_1): ... this, and add new show_global_ids
3620 parameter. Handle it. Iterate over inferiors.
3621 (print_thread_info): Reimplement as wrapper around
3622 print_thread_info_1.
3623 (show_inferior_qualified_tids): New function.
3624 (print_thread_id): Use it.
3625 (tp_array_compar): Compare inferior numbers too.
3626 (thread_apply_command): Use tid_range_parser.
3627 (do_captured_thread_select): Use parse_thread_id.
3628 (thread_id_make_value): Adjust.
3629 (_initialize_thread): Adjust "info threads" help string.
3630 * varobj.c (struct varobj_root): Update comment.
3631 (varobj_create): Adjust to use global thread IDs.
3632 (value_of_root_1): Adjust to use global_thread_id_to_ptid.
3633 * windows-tdep.c (display_tib): No longer accept an argument.
3634 * cli/cli-utils.c (get_number_trailer): Make extern.
3635 * cli/cli-utils.h (get_number_trailer): Declare.
3636 (get_number_const): Adjust documentation.
3637 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Adjust to use global
3638 thread IDs.
3639 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
3640 (mi_on_normal_stop, mi_output_running_pid, mi_on_resume):
3641 * mi/mi-main.c (mi_execute_command, mi_cmd_execute): Likewise.
3642 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_thread_x):
3643 Likewise.
3644 * python/py-breakpoint.c (bppy_set_thread): Likewise.
3645 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
3646 * python/py-infthread.c (thpy_get_num): Add comment and return the
3647 per-inferior thread ID.
3648 (thread_object_getset): Update comment of "num".
3649
3650 2016-01-13 Pedro Alves <palves@redhat.com>
3651
3652 * breakpoint.c (remove_threaded_breakpoints)
3653 (print_one_breakpoint_location): Use print_thread_id.
3654 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
3655 (btrace_fetch, btrace_clear): Use print_thread_id.
3656 * common/print-utils.c (CELLSIZE): Delete.
3657 (get_cell): Rename to ...
3658 (get_print_cell): ... this and made extern. Adjust call callers.
3659 Adjust to use PRINT_CELL_SIZE.
3660 * common/print-utils.h (get_print_cell): Declare.
3661 (PRINT_CELL_SIZE): New.
3662 * gdbthread.h (print_thread_id): Declare.
3663 * infcmd.c (signal_command): Use print_thread_id.
3664 * inferior.c (print_inferior): Use print_thread_id.
3665 * infrun.c (handle_signal_stop)
3666 (insert_exception_resume_breakpoint)
3667 (insert_exception_resume_from_probe)
3668 (print_signal_received_reason): Use print_thread_id.
3669 * record-btrace.c (record_btrace_info)
3670 (record_btrace_resume_thread, record_btrace_cancel_resume)
3671 (record_btrace_step_thread, record_btrace_wait): Use
3672 print_thread_id.
3673 * thread.c (thread_apply_all_command): Use print_thread_id.
3674 (print_thread_id): New function.
3675 (thread_apply_command): Use print_thread_id.
3676 (thread_command, thread_find_command, do_captured_thread_select):
3677 Use print_thread_id.
3678
3679 2016-01-13 Pedro Alves <palves@redhat.com>
3680
3681 * NEWS: Mention InferiorThread.inferior.
3682 * python/py-infthread.c (thpy_get_inferior): New.
3683 (thread_object_getset): Register "inferior".
3684
3685 2016-01-13 Pedro Alves <palves@redhat.com>
3686
3687 * NEWS: Mention $_inferior.
3688 * inferior.c (inferior_id_make_value): New.
3689 (inferior_funcs): New.
3690 (_initialize_inferior): Create $_inferior variable.
3691
3692 2016-01-13 Pedro Alves <palves@redhat.com>
3693
3694 PR breakpoints/19388
3695 * frame.c (get_current_frame): Use validate_registers_access.
3696 * gdbthread.h (validate_registers_access): Declare.
3697 * infrun.c (validate_siginfo_access): Delete.
3698 (siginfo_value_read, siginfo_value_write): Use
3699 validate_registers_access.
3700 * thread.c (validate_registers_access): New function.
3701
3702 2016-01-12 Josh Stone <jistone@redhat.com>
3703 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3704
3705 * NEWS (Changes since GDB 7.10): Mention QCatchSyscalls and the
3706 syscall_entry and syscall_return stop reasons. Mention GDB
3707 support for remote catch syscall.
3708 * remote.c (PACKET_QCatchSyscalls): New enum.
3709 (remote_set_syscall_catchpoint): New function.
3710 (remote_protocol_features): New element for QCatchSyscalls.
3711 (remote_parse_stop_reply): Parse syscall_entry/return stops.
3712 (init_remote_ops): Install remote_set_syscall_catchpoint.
3713 (_initialize_remote): Config QCatchSyscalls.
3714 * linux-nat.h (struct lwp_info) <syscall_state>: Comment typo.
3715
3716 2016-01-12 Yao Qi <yao.qi@linaro.org>
3717
3718 * nat/linux-ptrace.c (linux_child_function): Cast child_stack
3719 to gdb_byte * and pass to linux_fork_to_function.
3720
3721 2016-01-12 Yao Qi <yao.qi@linaro.org>
3722
3723 * nat/linux-ptrace.c (linux_fork_to_function): Change type
3724 of argument 'function'.
3725 (linux_grandchild_function): Change return type to 'int'.
3726 Change child_stack's type to 'void *'.
3727 (linux_child_function): Likewise.
3728
3729 2016-01-12 Pedro Alves <palves@redhat.com>
3730
3731 Remove use of the registered trademark symbol throughout.
3732
3733 2016-01-12 Thomas Schwinge <thomas@codesourcery.com>
3734
3735 * reply_mig_hack.awk: Rewrite one regular expression.
3736
3737 2016-01-11 Mike Frysinger <vapier@gentoo.org>
3738
3739 * acinclude.m4: Include new warning.m4 file.
3740 * configure: Regenerated.
3741 * configure.ac: Move all warning logic ...
3742 * warning.m4: ... here.
3743
3744 2016-01-08 Yao Qi <yao.qi@linaro.org>
3745
3746 * extension.c: Include target.h.
3747 (set_active_ext_lang): Only call install_gdb_sigint_handler,
3748 check_quit_flag, and set_quit_flag if target_terminal_is_ours
3749 returns false.
3750 (restore_active_ext_lang): Likewise.
3751 * target.c (target_terminal_is_ours): New function.
3752 * target.h (target_terminal_is_ours): Declare.
3753
3754 2016-01-07 Maciej W. Rozycki <macro@imgtec.com>
3755
3756 * mips-tdep.c (mips_breakpoint_from_pc): Rename local `status'
3757 to `err' in the little-endian leg.
3758
3759 2016-01-06 Yao Qi <yao.qi@linaro.org>
3760
3761 * arch/arm-get-next-pcs.c (arm_get_next_pcs): Move it to some
3762 lines below.
3763 (thumb_get_next_pcs_raw): Make it static.
3764 (arm_get_next_pcs_raw): Likewise.
3765 * arch/arm-get-next-pcs.h (thumb_get_next_pcs_raw): Remove the
3766 declaration.
3767 (arm_get_next_pcs_raw): Likewise.
3768
3769 2016-01-05 Mike Frysinger <vapier@gentoo.org>
3770
3771 * version.in: Change cvs to git.
3772
3773 2016-01-05 Mike Frysinger <vapier@gentoo.org>
3774
3775 * configure.tgt (score-*-*): Delete gdb_sim assignment.
3776
3777 2016-01-05 Pedro Alves <palves@redhat.com>
3778
3779 PR sim/13418
3780 * configure.ac: Define WITH_PPC_SIM when linking in the sim and
3781 the target is powerpc*.
3782 * rs6000-tdep.c (init_sim_regno_table): Check WITH_PPC_SIM instead
3783 of WITH_SIM.
3784 * configure: Regenerate.
3785 * config.in: Regenerate.
3786
3787 2016-01-04 Markus Metzger <markus.t.metzger@intel.com>
3788
3789 * btrace.c (btrace_pt_readmem_callback): Do not return in TRY/CATCH.
3790
3791 2016-01-02 Mike Frysinger <vapier@gentoo.org>
3792
3793 * configure.tgt (powerpc*-*-*): Delete test call and
3794 always assign gdb_sim.
3795
3796 2016-01-01 Joel Brobecker <brobecker@adacore.com>
3797
3798 Update year range in copyright notice of all files.
3799
3800 2016-01-01 Joel Brobecker <brobecker@adacore.com>
3801
3802 * top.c (print_gdb_version): Change copyright year in version
3803 message.
3804
3805 2016-01-01 Joel Brobecker <brobecker@adacore.com>
3806
3807 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2015.
3808
3809 For older changes see ChangeLog-2015.
3810 \f
3811 Local Variables:
3812 mode: change-log
3813 left-margin: 8
3814 fill-column: 74
3815 version-control: never
3816 coding: utf-8
3817 End:
This page took 0.112245 seconds and 4 git commands to generate.