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