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