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