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