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