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