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