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