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