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