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