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