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