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