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