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