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