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