Initialize input statement created in add_archive_member
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
e6485aaf
PA
12016-10-29 Pedro Alves <palves@redhat.com>
2
3 * NEWS: Clarify C++ requirement.
4
d2946923
PA
52016-10-29 Pedro Alves <palves@redhat.com>
6
7 * NEWS: Adjust to mention C++11 requirement.
8
8ba42bc5
EZ
92016-10-29 Eli Zaretskii <eliz@gnu.org>
10
11 * NEWS: Mention support for redirection on MS-Windows.
12
13 * windows-nat.c (redir_open, redir_set_redirection)
14 (redirect_inferior_handles) [!__CYGWIN__]: New functions.
15 (windows_create_inferior) [!__CYGWIN__]: Use
16 'redirect_inferior_handles' to redirect standard handles of the
17 debuggee if the command line requests that.
18
0bcda685
PA
192016-10-28 Pedro Alves <palves@redhat.com>
20
21 * Makefile.in (CXX_DIALECT): Get from configure.
22 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
23 (FLAGS_TO_PASS): Pass CXX_DIALECT.
24 * acinclude.m4: Include ax_cxx_compile_stdcxx.m4.
25 * ax_cxx_compile_stdcxx.m4: Add FSF copyright header. Set and
26 AC_SUBST CXX_DIALECT instead of changing CXX/CXXCPP.
27 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
28 * config.in: Regenerate.
29 * configure: Regenerate.
30
87106a7b
PA
312016-10-28 Pedro Alves <palves@redhat.com>
32
33 * ax_cxx_compile_stdcxx.m4: New file.
34
44d83468
PA
352016-10-28 Pedro Alves <palves@redhat.com>
36
37 * maint.c (scoped_command_stats::scoped_command_stats): Clear
38 m_space_enabled, m_time_enabled and m_symtab_enabled.
39
d87fdac3
MM
402016-10-28 Markus Metzger <markus.t.metzger@intel.com>
41
42 * btrace.c (bfun_s): New typedef.
43 (ftrace_update_caller): Print caller in debug dump.
44 (ftrace_get_caller, ftrace_match_backtrace, ftrace_fixup_level)
45 (ftrace_compute_global_level_offset, ftrace_connect_bfun)
46 (ftrace_connect_backtrace, ftrace_bridge_gap, btrace_bridge_gaps): New.
47 (btrace_compute_ftrace_bts): Pass vector of gaps. Collect gaps.
48 (btrace_compute_ftrace_pt): Likewise.
49 (btrace_compute_ftrace): Split into this, ...
50 (btrace_compute_ftrace_1): ... this, and ...
51 (btrace_finalize_ftrace): ... this. Call btrace_bridge_gaps.
52
259ba1e8
MM
532016-10-28 Markus Metzger <markus.t.metzger@intel.com>
54
55 * btrace.c (ftrace_new_return): Start from the previous function's
56 level if we can't find a matching call for a return.
57
2dfdb47a
MM
582016-10-28 Markus Metzger <markus.t.metzger@intel.com>
59
60 * btrace.c (ftrace_update_function): Update tail call heuristic.
61
b61ce85c
MM
622016-10-28 Markus Metzger <markus.t.metzger@intel.com>
63
64 * btrace.c (btrace_compute_ftrace_bts, ftrace_add_pt): Allow
65 leading gaps.
66 * record-btrace.c (record_btrace_single_step_forward)
67 (record_btrace_single_step_backward): Jump back to last
68 instruction if step ends at a gap.
69 (record_btrace_goto_begin): Skip gaps.
70
63ab433e
MM
712016-10-28 Markus Metzger <markus.t.metzger@intel.com>
72
73 * btrace.c (ftrace_add_pt): Fix gap indication. Add warning for non-
74 contiguous trace and overflow. Rephrase trace decode warning and print
75 instruction number. Remove dead gaps warning.
76 (btrace_compute_ftrace_bts): Rephrase warnings and print instruction
77 number.
78
ecf45d2c
SL
792016-10-25 Sandra Loosemore <sandra@codesourcery.com>
80 Luis Machado <lgustavo@codesourcery.com>
81 Pedro Alves <palves@redhat.com>
82
83 PR gdb/20569
84 * exceptions.c (exception_print_same): Moved here from exec.c.
85 * exceptions.h (exception_print_same): Declare.
86 * exec.h: Include "symfile-add-flags.h".
87 (try_open_exec_file): New declaration.
88 * exec.c (exception_print_same): Moved to exceptions.c.
89 (try_open_exec_file): New function.
90 (exec_file_locate_attach): Rename exec_file and full_exec_path
91 variables to avoid confusion between target and host pathnames.
92 Move pathname processing logic to exec_file_find. Do not return
93 early if pathname lookup fails; Call try_open_exec_file.
94 * infrun.c (follow_exec): Split and rename execd_pathname variable
95 to avoid confusion between target and host pathnames. Warn if
96 pathname lookup fails. Pass target pathname to
97 target_follow_exec, not hostpathname. Call try_open_exec_file.
98 * main.c (symbol_file_add_main_adapter): New function.
99 (captured_main_1): Use it.
100 * solib-svr4.c (open_symbol_file_object): Adjust to pass
101 symfile_add_flags to symbol_file_add_main.
102 * solib.c (exec_file_find): Incorporate fallback logic for relative
103 pathnames formerly in exec_file_locate_attach.
104 * symfile.c (symbol_file_add_main, symbol_file_add_main_1):
105 Replace 'from_tty' parameter with a symfile_add_file.
106 (symbol_file_command): Adjust to pass symfile_add_flags to
107 symbol_file_add_main.
108 * symfile.h (symbol_file_add_main): Replace 'from_tty' parameter
109 with a symfile_add_file.
110
b15cc25c
PA
1112016-10-26 Pedro Alves <palves@redhat.com>
112
113 * coffread.c (coff_symfile_read): Use symfile_add_flags.
114 * dbxread.c (dbx_symfile_read): Ditto.
115 * elfread.c (elf_symfile_read): Ditto.
116 * inferior.h: Include symfile-add-flags.h.
117 (struct inferior) <symfile_flags>: Now symfile_add_flags.
118 * machoread.c (macho_add_oso_symfile, macho_symfile_read_all_oso)
119 (macho_symfile_read, mipscoff_symfile_read): Use
120 symfile_add_flags.
121 * objfile-flags.h: New file.
122 * objfiles.c (allocate_objfile): Use objfile_flags.
123 * objfiles.h: Include objfile-flags.h.
124 (struct objfile) <flags>: Now an objfile_flags.
125 (OBJF_REORDERED, OBJF_SHARED, OBJF_READNOW, OBJF_USERLOADED)
126 (OBJF_PSYMTABS_READ, OBJF_MAINLINE, OBJF_NOT_FILENAME): Delete.
127 Converted to an enum-flags in objfile-flags.h.
128 (allocate_objfile): Use objfile_flags.
129 * python/py-objfile.c (objfpy_add_separate_debug_file): Remove
130 unnecessary local.
131 * solib.c (solib_read_symbols, solib_add)
132 (reload_shared_libraries_1): Use symfile_add_flags.
133 * solib.h: Include "symfile-add-flags.h".
134 (solib_read_symbols): Use symfile_add_flags.
135 * symfile-add-flags.h: New file.
136 * symfile-debug.c (debug_sym_read): Use symfile_add_flags.
137 * symfile-mem.c (symbol_file_add_from_memory): Use
138 symfile_add_flags.
139 * symfile.c (read_symbols, syms_from_objfile_1)
140 (syms_from_objfile, finish_new_objfile): Use symfile_add_flags.
141 (symbol_file_add_with_addrs): Use symfile_add_flags and
142 objfile_flags.
143 (symbol_file_add_separate): Use symfile_add_flags.
144 (symbol_file_add_from_bfd, symbol_file_add): Use symfile_add_flags
145 and objfile_flags.
146 (symbol_file_add_main_1): : Use objfile_flags. Fix add_flags vs
147 flags confusion.
148 (symbol_file_command): Use objfile_flags.
149 (add_symbol_file_command): Use symfile_add_flags and
150 objfile_flags.
151 (clear_symtab_users): Use symfile_add_flags.
152 * symfile.h: Include "symfile-add-flags.h" and "objfile-flags.h".
153 (struct sym_fns) <sym_read>: Use symfile_add_flags.
154 (clear_symtab_users): Use symfile_add_flags.
155 (enum symfile_add_flags): Delete, moved to symfile-add-flags.h and
156 converted to enum-flags.
157 (symbol_file_add, symbol_file_add_from_bfd)
158 (symbol_file_add_separate): Use symfile_add_flags.
159 * xcoffread.c (xcoff_initial_scan): Use symfile_add_flags.
160
85ad3aaf
PA
1612016-10-26 Pedro Alves <palves@redhat.com>
162
163 * inferior.h (ALL_NON_EXITED_INFERIORS): New macro.
164 * infrun.c (do_target_resume): Call target_commit_resume.
165 (proceed): Defer target_commit_resume while looping over threads,
166 resuming them. Call target_commit_resume at the end.
167 * record-btrace.c (record_btrace_commit_resume): New function.
168 (init_record_btrace_ops): Install it as to_commit_resume method.
169 * record-full.c (record_full_commit_resume): New function.
170 (record_full_wait_1): Call the beneath target's to_commit_resume
171 method.
172 (init_record_full_ops): Install record_full_commit_resume as
173 to_commit_resume method.
174 * remote.c (struct private_thread_info) <last_resume_step,
175 last_resume_sig, vcont_resumed>: New fields.
176 (remote_add_thread): Set the new thread's vcont_resumed flag.
177 (demand_private_info): Delete.
178 (get_private_info_thread, get_private_info_ptid): New functions.
179 (remote_update_thread_list): Adjust.
180 (process_initial_stop_replies): Clear the thread's vcont_resumed
181 flag.
182 (remote_resume): If connected in non-stop mode, record the resume
183 request and return early.
184 (struct private_inferior): New.
185 (struct vcont_builder): New.
186 (vcont_builder_restart, vcont_builder_flush)
187 (vcont_builder_push_action): New functions.
188 (MAX_ACTION_SIZE): New macro.
189 (remote_commit_resume): New function.
190 (thread_pending_fork_status, is_pending_fork_parent_thread): New
191 functions.
192 (check_pending_event_prevents_wildcard_vcont_callback)
193 (check_pending_events_prevent_wildcard_vcont): New functions.
194 (process_stop_reply): Adjust. Clear the thread's vcont_resumed
195 flag.
196 (init_remote_ops): Install remote_commit_resume.
197 * target-delegates.c: Regenerate.
198 * target.c (defer_target_commit_resume): New global.
199 (target_commit_resume, make_cleanup_defer_target_commit_resume):
200 New functions.
201 * target.h (struct target_ops) <to_commit_resume>: New field.
202 (target_resume): Update comments.
203 (target_commit_resume): New declaration.
204
ef4a3395
PA
2052016-10-26 Pedro Alves <palves@redhat.com>
206
207 * inferior.c (exit_inferior_1): Free 'priv'.
208
7b68ffbb
PA
2092016-10-26 Pedro Alves <palves@redhat.com>
210
211 * remote.c (remote_resume_with_hc): New function, factored out
212 from ...
213 (remote_resume): ... this. Always try vCont first.
214 (remote_vcont_resume): Rename to ...
215 (remote_resume_with_vcont): ... this. Bail out if execution
216 direction is reverse.
217
beb18c86
PA
2182016-10-25 Pedro Alves <palves@redhat.com>
219
220 * dwarf2expr.h (struct dwarf_expr_context) <~dwarf_expr_context>:
221 Make virtual.
222
b196bc4c
RO
2232016-10-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
224
225 PR build/20712
226 * defs.h: Remove obsolete comment
227 (atof): Remove.
228 * procfs.c (do_destroy_procinfo_cleanup): Add cast.
229 (sysset_t_alloc): Likewise.
230 (proc_set_traced_sysentry): Likewise.
231 (proc_set_traced_sysexit): Likewise.
232 [!PIOCLSTATUS && NEW_PROC_API] (do_closedir_cleanup): Likewise.
233 (proc_get_LDT_entry): Initiate cleanups before returns.
234 (procfs_wait): Use GDB_SIGNAL_0.
235 (procfs_corefile_thread_callback): Add cast.
236 * sol-thread.c (td_log_ftype, td_ta_new_ftype, td_ta_delete_ftype)
237 (td_init_ftype, td_ta_get_ph_ftype, td_ta_get_nthreads_ftype)
238 (td_ta_tsd_iter_ftype, td_ta_thr_iter_ftype)
239 (td_thr_validate_ftype, td_thr_tsd_ftype, td_thr_get_info_ftype)
240 (td_thr_getfpregs_ftype, td_thr_getxregsize_ftype)
241 (td_thr_getxregs_ftype, td_thr_sigsetmask_ftype)
242 (td_thr_setprio_ftype, td_thr_setsigpending_ftype)
243 (td_thr_setfpregs_ftype, td_thr_setxregs_ftype)
244 (td_ta_map_id2thr_ftype, td_ta_map_lwp2thr_ftype)
245 (td_thr_getgregs_ftype, td_thr_setgregs_ftype): New typedefs.
246 (p_td_log, p_td_ta_new, p_td_ta_delete, p_td_init, p_td_ta_get_ph)
247 (p_td_ta_get_nthreads, p_td_ta_tsd_iter, p_td_ta_thr_iter)
248 (p_td_thr_validate, p_td_thr_tsd, p_td_thr_get_info)
249 (p_td_thr_getfpregs, p_td_thr_getxregsize, p_td_thr_getxregs)
250 (p_td_thr_sigsetmask, p_td_thr_setprio, p_td_thr_setsigpending)
251 (p_td_thr_setfpregs, p_td_thr_setxregs, p_td_ta_map_id2thr)
252 (p_td_ta_map_lwp2thr, p_td_thr_getgregs, p_td_thr_setgregs): Use them.
253 (ps_pdread): Add cast.
254 (ps_ptread): Likewise.
255 (resolve): Likewise.
256 * top.c (gdb_safe_append_history): Print pid_t as long.
257
b30f354a
PA
2582016-10-25 Pedro Alves <palves@redhat.com>
259
260 * common/common-defs.h (__STDC_FORMAT_MACROS): Define.
261
e4426cb4
PA
2622016-10-25 Pedro Alves <palves@redhat.com>
263
264 * common/new-op.c: Add comment about -fsanitize=address.
265
28fe4f87
PA
2662016-10-25 Pedro Alves <palves@redhat.com>
267
268 * common/common-defs.h (__STDC_CONSTANT_MACROS)
269 (__STDC_LIMIT_MACROS): Define.
270
3ef9d661
YQ
2712016-10-25 Yao Qi <yao.qi@linaro.org>
272
273 PR gdb/20716
274 * common/new-op.c (__has_feature): New macro.
275 Don't override operator new if asan is used.
276
b5e1db87
LM
2772016-10-24 Luis Machado <lgustavo@codesourcery.com>
278
279 * exec.c (exec_file_locate_attach): Prevent NULL pointer dereference
280 when duplicating a string.
281
010ece9c
LM
2822016-10-24 Luis Machado <lgustavo@codesourcery.com>
283
284 * exec.c (exception_print_same): Fix string comparison to use
285 statically-allocated ones.
286
befbff86
TT
2872016-10-21 Tom Tromey <tom@tromey.com>
288
289 * dwarf2expr.h (class dwarf_expr_context)
290 <get_frame_base, get_frame_cfa, get_tls_address, dwarf_call,
291 push_dwarf_block_entry_value, get_addr_index, get_object_address>:
292 Now pure virtual.
293 * dwarf2-frame.c (class dwarf_expr_executor)
294 <get_frame_base, get_frame_cfa, get_tls_address, dwarf_call,
295 push_dwarf_block_entry_value, get_addr_index, get_object_address>:
296 New methods.
297 <invalid>: New method.
298
ce6c454e
TT
2992016-10-21 Tom Tromey <tom@tromey.com>
300
301 * minsyms.h (minimal_symbol_reader::record_full): "copy_name" now
302 a bool.
303 (record, record_with_info): Update.
304 * minsyms.c (record): Fix indentation.
305 (record_full): Fix indentation. Update for type change.
306 * elfread.c (record_minimal_symbol): "copy_name" now a bool.
307 (elf_symtab_read): "copy_names" now a bool.
308 (elf_rel_plt_read, elf_read_minimal_symbols): Update.
309
f60ee22e
TT
3102016-10-21 Tom Tromey <tom@tromey.com>
311
312 * main.c: Include <vector>.
313 (cmdarg_s): Remove typedef. Don't define VEC.
314 (captured_main_1): Use vector, not VEC. Remove cleanups.
315
192ca6d8
TT
3162016-10-21 Tom Tromey <tom@tromey.com>
317
318 * dwarf2loc.c (struct dwarf_expr_context_funcs): Don't declare.
319 (dwarf_expr_read_addr_from_reg, dwarf_expr_get_reg_value)
320 (dwarf_expr_read_mem, dwarf_expr_frame_base): Rename; turn into
321 methods.
322 (get_frame_pc_for_per_cu_dwarf_call): New function.
323 (dwarf_expr_frame_cfa, dwarf_expr_frame_pc)
324 (dwarf_expr_tls_address): Rename; turn into methods.
325 (per_cu_dwarf_call): Remove arguments. Use
326 get_frame_pc_for_per_cu_dwarf_call.
327 (dwarf_evaluate_loc_desc): New class.
328 (dwarf_expr_dwarf_call, dwarf_expr_context)
329 (dwarf_expr_push_dwarf_reg_entry_value)
330 (dwarf_expr_get_addr_index, dwarf_expr_get_obj_addr): Rename; turn
331 into methods.
332 (dwarf_expr_ctx_funcs): Remove.
333 (dwarf2_evaluate_loc_desc_full): Update.
334 (dwarf2_locexpr_baton_eval): Update.
335 (symbol_needs_eval_context): New class.
336 (symbol_needs_read_addr_from_reg, symbol_needs_get_reg_value)
337 (symbol_needs_read_mem, symbol_needs_frame_base)
338 (symbol_needs_frame_cfa, symbol_needs_tls_address)
339 (symbol_needs_dwarf_call, needs_dwarf_reg_entry_value): Rename;
340 turn into methods.
341 (needs_get_addr_index, needs_get_obj_addr): Remove; turn into
342 methods.
343 (symbol_needs_ctx_funcs): Remove.
344 (dwarf2_loc_desc_get_symbol_read_needs): Update.
345 * dwarf2expr.h (struct dwarf_expr_context_funcs): Remove; turn
346 contents into methods.
347 (struct dwarf_expr_context) <baton, funcs>: Remove.
348 <read_addr_from_reg, get_reg_value, read_mem, get_frame_base,
349 get_frame_cfa, get_frame_pc, get_tls_address, dwarf_call,
350 impl_get_base_type, push_dwarf_block_entry_value, get_addr_index,
351 get_object_address>: Declare new methods.
352 (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
353 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
354 (ctx_no_get_base_type, ctx_no_push_dwarf_reg_entry_value)
355 (ctx_no_get_addr_index): Don't declare.
356 * dwarf2expr.c (get_base_type): Use impl_get_base_type.
357 (execute_stack_op): Update.
358 (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
359 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
360 (ctx_no_get_base_type, ctx_no_push_dwarf_reg_entry_value)
361 (ctx_no_get_addr_index): Remove; now methods on
362 dwarf_expr_context.
363 * dwarf2-frame.c (read_addr_from_reg): Take a frame_info, not a
364 baton.
365 (class dwarf_expr_executor): New class.
366 (get_reg_value, read_mem): Rename, turn into methods.
367 (execute_stack_op): Use dwarf_expr_executor.
368
595d2e30
TT
3692016-10-21 Tom Tromey <tom@tromey.com>
370
371 * dwarf2loc.c (per_cu_dwarf_call)
372 (dwarf_expr_push_dwarf_reg_entry_value)
373 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
374 (needs_dwarf_reg_entry_value)
375 (dwarf2_loc_desc_get_symbol_read_needs): Update.
376 * dwarf2expr.h (dwarf_expr_context) <push_address, eval, fetch,
377 fetch_address, fetch_in_stack_memory, address_type, grow_stack,
378 push, stack_empty_p, add_piece, get_base_type, execute_stack_op,
379 pop>: New method declarations.
380 (dwarf_expr_push_address, dwarf_expr_eval, dwarf_expr_fetch)
381 (dwarf_expr_fetch_address, dwarf_expr_fetch_in_stack_memory):
382 Don't declare.
383 * dwarf2expr.c (address_type, grow_stack, push, push_address)
384 (pop, fetch, fetch_address, fetch_in_stack_memory)
385 (stack_empty_p, add_piece, eval, get_base_type)
386 (execute_stack_op): Rename. Turn into methods.
387 * dwarf2-frame.c (execute_stack_op): Update.
388
718b9626
TT
3892016-10-21 Tom Tromey <tom@tromey.com>
390
391 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Stack-allocate
392 dwarf_expr_context. Remove cleanups.
393 (dwarf2_locexpr_baton_eval)
394 (dwarf2_loc_desc_get_symbol_read_needs): Likewise.
395 * dwarf2expr.h (dwarf_expr_context, ~dwarf_expr_context): Add
396 constructors and destructors.
397 (new_dwarf_expr_context, free_dwarf_expr_context)
398 (make_cleanup_free_dwarf_expr_context): Don't declare.
399 * dwarf2-frame.c (execute_stack_op): Stack-allocate
400 dwarf_expr_context. Remove cleanups.
401 (dwarf_expr_context): Rename from new_dwarf_expr_context. Turn
402 into constructor.
403 (free_dwarf_expr_context, free_dwarf_expr_context_cleanup):
404 Remove.
405 (~dwarf_expr_context): Rename from
406 make_cleanup_free_dwarf_expr_context. Turn into destructor.
407
58414334
TT
4082016-10-21 Tom Tromey <tom@tromey.com>
409
410 * dwarf2loc.c: Include <vector>.
411 (read_pieced_value, write_pieced_value)
412 (dwarf2_compile_expr_to_ax): Use std::vector.
413
67ad9399
TT
4142016-10-21 Tom Tromey <tom@tromey.com>
415
416 * stack.c (print_stack_frame_to_uiout): Use scoped_restore.
417 * ui-out.c (make_cleanup_restore_current_uiout)
418 (restore_current_uiout_cleanup): Remove.
419 * infrun.c (print_stop_event): Use scoped_restore.
420 * ui-out.h (make_cleanup_restore_current_uiout): Don't declare.
421
d1e4a624
TT
4222016-10-21 Tom Tromey <tom@tromey.com>
423
424 * elfread.c (elf_read_minimal_symbols): Use gdb::unique_ptr.
425
cd9da5b0
TT
4262016-10-21 Tom Tromey <tom@tromey.com>
427
428 * cli/cli-dump.c (dump_memory_to_file): Use gdb::unique_ptr.
429 (restore_binary_file): Likewise.
430
1e3b796d
TT
4312016-10-21 Tom Tromey <tom@tromey.com>
432
433 * maint.h (scoped_command_stats): New class.
434 (make_command_stats_cleanup): Don't declare.
435 * maint.c (struct cmd_stats): Remove.
436 (~scoped_command_stats): Rename from report_command_stats. Now a
437 destructor.
438 (scoped_command_stats): Rename from make_command_stats_cleanup.
439 Now a constructor.
440 * main.c (captured_main_1): New function. Use
441 scoped_command_stats.
442 (captured_main): Call captured_main_1.
443 * event-top.c (command_handler): Use scoped_command_stats.
444
6fc31fc7
TT
4452016-10-21 Tom Tromey <tom@tromey.com>
446
447 * mi/mi-main.c (mi_cmd_data_read_memory): Use gdb::unique_ptr.
448 Remove some cleanups.
449
0e454242
TT
4502016-10-21 Tom Tromey <tom@tromey.com>
451
452 * tui/tui-interp.c (tui_on_normal_stop, tui_on_signal_received)
453 (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
454 (tui_on_no_history, tui_on_user_selected_context_changed):
455 Update.
456 * top.h (switch_thru_all_uis): New class.
457 (SWITCH_THRU_ALL_UIS): Rewrite.
458 (make_cleanup_restore_current_ui, switch_thru_all_uis_init)
459 (switch_thru_all_uis_cond, switch_thru_all_uis_next): Don't
460 declare.
461 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
462 (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
463 (mi_inferior_exit, mi_inferior_removed, mi_on_signal_received)
464 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
465 (mi_on_no_history, mi_on_normal_stop, mi_traceframe_changed)
466 (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
467 (mi_breakpoint_created, mi_breakpoint_deleted)
468 (mi_breakpoint_modified, mi_output_running_pid, mi_on_resume)
469 (mi_solib_loaded, mi_solib_unloaded, mi_command_param_changed)
470 (mi_memory_changed, mi_user_selected_context_changed): Update.
471 * infrun.c (all_uis_check_sync_execution_done)
472 (all_uis_on_sync_execution_starting, normal_stop): Update.
473 * event-top.c (restore_ui_cleanup)
474 (make_cleanup_restore_current_ui, switch_thru_all_uis_init)
475 (switch_thru_all_uis_cond, switch_thru_all_uis_next): Remove.
476 * cli/cli-interp.c (cli_on_normal_stop, cli_on_signal_received)
477 (cli_on_end_stepping_range, cli_on_signal_exited, cli_on_exited)
478 (cli_on_no_history, cli_on_user_selected_context_changed):
479 Update.
480 * breakpoint.c (watchpoint_check): Update.
481
8dddcb8f
TT
4822016-10-21 Tom Tromey <tom@tromey.com>
483
484 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab): Add
485 "reader" argument. Update.
486 (xcoff_initial_scan): Update.
487 * symfile.h (mdebug_build_psymtabs): Add "reader" argument.
488 * mipsread.c (mipscoff_symfile_read): Update.
489 (read_alphacoff_dynamic_symtab): Add "reader" argument. Update.
490 * minsyms.h (minimal_symbol_reader) <record, record_full>:
491 Declare.
492 <m_msym_bunch, m_msym_bunch_index, m_msym_count>: New members.
493 <record_with_info>: New function, renamed from
494 prim_record_minimal_symbol_and_info.
495 * minsyms.c (msym_bunch, msym_bunch_index, msym_count): Remove
496 globals.
497 (minimal_symbol_reader): Initialize new members.
498 (minimal_symbol_reader::record): Renamed from
499 prim_record_minimal_symbol.
500 (minimal_symbol_reader::record_full): Renamed from
501 prim_record_minimal_symbol_full.
502 (prim_record_minimal_symbol_and_info): Move to minsyms.h; rename.
503 * mdebugread.c (mdebug_build_psymtabs, parse_partial_symbols)
504 (record_minimal_symbol): Add "reader" argument. Update.
505 (elfmdebug_build_psymtabs): Update.
506 * machoread.c (macho_symtab_add_minsym, macho_symtab_read): Add
507 "reader" argument. Update.
508 (macho_symfile_read): Update.
509 * elfread.c (record_minimal_symbol, elf_symtab_read)
510 (elf_rel_plt_read): Add "reader" argument. Update.
511 (elf_read_minimal_symbols): Update.
512 * dbxread.c (record_minimal_symbol, read_dbx_dynamic_symtab)
513 (read_dbx_symtab): Add "reader" argument. Update.
514 (dbx_symfile_read): Update.
515 * coffread.c (record_minimal_symbol, coff_symtab_read): Add
516 "reader" argument. Update.
517 (coff_symfile_read): Update.
518 * coff-pe-read.h (read_pe_exported_syms): Add "reader" argument.
519 * coff-pe-read.c (add_pe_exported_sym, add_pe_forwarded_sym)
520 (read_pe_exported_syms): Add "reader" argument. Update.
521
d25e8719
TT
5222016-10-21 Tom Tromey <tom@tromey.com>
523
524 * xcoffread.c (xcoff_initial_scan): Update.
525 * mipsread.c (mipscoff_symfile_read): Update.
526 * minsyms.c (minimal_symbol_reader): Add obj argument.
527 Initialize member.
528 (install): Remove objfile argument. Update.
529 * mdebugread.c (elfmdebug_build_psymtabs): Update.
530 * machoread.c (macho_symfile_read): Update.
531 * elfread.c (elf_read_minimal_symbols): Update.
532 * dbxread.c (dbx_symfile_read): Update.
533 * coffread.c (coff_symfile_read): Update.
534 * minsyms.h (minimal_symbol_reader): Add m_objfile member.
535 (constructor): Add objfile argument.
536 (minimal_symbol_reader::install): Remove objfile argument.
537
873a915e
TT
5382016-10-21 Tom Tromey <tom@tromey.com>
539
540 * xcoffread.c (xcoff_initial_scan): Use
541 minimal_symbol_reader.
542 * mipsread.c (mipscoff_symfile_read): Use
543 minimal_symbol_reader.
544 * minsyms.h (minimal_symbol_reader): New class.
545 (init_minimal_symbol_collection)
546 (make_cleanup_discard_minimal_symbols, install_minimal_symbols):
547 Don't declare.
548 * minsyms.c (minimal_symbol_reader): Renamed from
549 init_minimal_symbol_collection, turned into constructor.
550 (~minimal_symbol_reader): Renamed from
551 do_discard_minimal_symbols_cleanup, turned into destructor.
552 (make_cleanup_discard_minimal_symbols): Remove.
553 (minimal_symbol_reader::install): Rename form
554 install_minimal_symbols.
555 * mdebugread.c (elfmdebug_build_psymtabs): Use
556 minimal_symbol_reader.
557 * machoread.c (macho_symfile_read): Use
558 minimal_symbol_reader.
559 * elfread.c (elf_read_minimal_symbols): Use
560 minimal_symbol_reader.
561 * dbxread.c (dbx_symfile_read): Use minimal_symbol_reader.
562 * coffread.c (coff_symfile_read): Use
563 minimal_symbol_reader.
564
4b6749b9
TT
5652016-10-21 Tom Tromey <tom@tromey.com>
566
567 * top.c (new_ui_command, wait_sync_command_done)
568 (gdb_readline_wrapper): Use scoped_restore.
569 * infrun.c (fetch_inferior_event): Use scoped_restore.
570 * infcall.c (call_thread_fsm_should_stop): Use scoped_restore.
571
97468094
TT
5722016-10-21 Tom Tromey <tom@tromey.com>
573
574 * utils.c (make_cleanup_restore_ui_file, do_restore_ui_file)
575 (struct restore_ui_file_closure): Remove.
576 * utils.h (make_cleanup_restore_ui_file): Don't declare.
577 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
578 scoped_restore.
579 * top.c (execute_command_to_string): Use scoped_restore.
580
b7b633e9
TT
5812016-10-21 Tom Tromey <tom@tromey.com>
582
583 * common/scoped_restore.h: New file.
584 * utils.h: Include scoped_restore.h.
585 * top.c (execute_command_to_string): Use scoped_restore.
586 * python/python.c (python_interactive_command): Use
587 scoped_restore.
588 (python_command, execute_gdb_command): Likewise.
589 * printcmd.c (do_one_display): Use scoped_restore.
590 * mi/mi-main.c (exec_continue): Use scoped_restore.
591 * mi/mi-cmd-var.c (mi_cmd_var_assign): Use scoped_restore.
592 * linux-fork.c (checkpoint_command): Use scoped_restore.
593 * infrun.c (restore_execution_direction): Remove.
594 (fetch_inferior_event): Use scoped_restore.
595 * compile/compile.c (compile_file_command): Use
596 scoped_restore.
597 (compile_code_command, compile_print_command): Likewise.
598 * cli/cli-script.c (execute_user_command): Use
599 scoped_restore.
600 (while_command, if_command, script_from_file): Likewise.
601 * arm-tdep.c (arm_insert_single_step_breakpoint): Use
602 scoped_restore.
603
9a1e3f00
TT
6042016-10-21 Tom Tromey <tom@tromey.com>
605
606 * xcoffread.c (read_xcoff_symtab): Make "filestring" const.
607
d11261fc
UW
6082016-10-21 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
609 Ulrich Weigand <uweigand@de.ibm.com>
610
611 * xcoffread.c (read_xcoff_symtab): Make name of current file as
612 pst->filename instead of _start_ in AIX.
613
4db41a0a
PR
6142016-10-21 Philipp Rudo <prudo@linux.vnet.ibm.com>
615
616 * solist.h (struct target_so_ops): Delete special_symbol_handling
617 hook.
618 * solib.c (solib_add, reload_shared_libraries): Adjust.
619 * solib-aix.c (solib_aix_special_symbol_handling): Delete
620 (_initialize_solib_aix): Adjust
621 * solib-darwin.c (darwin_special_symbol_handling): Delete
622 (_initialize_darwin_solib): Adjust
623 * solib-dsbt.c (dsbt_special_symbol_handling): Delete
624 (_initialize_dsbt_solib): Adjust
625 * solib-frv.c (frv_special_symbol_handling): Delete
626 (_initialize_frv_solib): Adjust
627 * solib-svr4.c (svr4_special_symbol_handling): Delete
628 (_initialize_svr4_solib): Adjust
629 * solib-target.c (solib_target_special_symbol_handling): Delete
630 (_initialize_solib_target): Adjust
631
78836e90
YQ
6322016-10-20 Yao Qi <yao.qi@linaro.org>
633
634 * configure.tgt: Don't configure if target is *-*-vxworks*.
635
f77a9b48
PA
6362016-10-19 Pedro Alves <palves@redhat.com>
637
638 * config.in: Regenerate.
639
f6abaf7a
PA
6402016-10-18 Pedro Alves <palves@redhat.com>
641
642 * common/common-defs.h (__STDC_CONSTANT_MACROS)
643 (__STDC_LIMIT_MACROS): Delete.
644
49e4877c
PA
6452016-10-18 Pedro Alves <palves@redhat.com>
646
647 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
648 2692e23a48e21f6daa029e8af9f1a143b7532f47.
649 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4:
650 Regenerate.
651 * gnulib/import/Makefile: Update.
652 * gnulib/import/alloca: Update.
653 * gnulib/import/basename-lgpl: Update.
654 * gnulib/import/canonicalize-lgpl: Update.
655 * gnulib/import/config: Update.
656 * gnulib/import/dirent: Update.
657 * gnulib/import/dirfd: Update.
658 * gnulib/import/dirname-lgpl: Update.
659 * gnulib/import/dirname.h: Update.
660 * gnulib/import/dosname.h: Update.
661 * gnulib/import/errno: Update.
662 * gnulib/import/extra/snippet/arg-nonnull.h: Update.
663 * gnulib/import/extra/snippet/c++defs.h: Update.
664 * gnulib/import/extra/snippet/warn-on-use.h: Update.
665 * gnulib/import/extra/update-copyright: Update.
666 * gnulib/import/flexmember.h: Update.
667 * gnulib/import/float+.h: Update.
668 * gnulib/import/float: Update.
669 * gnulib/import/float: Update.
670 * gnulib/import/fnmatch: Update.
671 * gnulib/import/fnmatch: Update.
672 * gnulib/import/fnmatch_loop: Update.
673 * gnulib/import/fpucw.h: Update.
674 * gnulib/import/frexp: Update.
675 * gnulib/import/frexpl: Update.
676 * gnulib/import/gettimeofday: Update.
677 * gnulib/import/hard-locale: Update.
678 * gnulib/import/hard-locale.h: Update.
679 * gnulib/import/inttypes: Update.
680 * gnulib/import/isnan: Update.
681 * gnulib/import/isnand-nolibm.h: Update.
682 * gnulib/import/isnand: Update.
683 * gnulib/import/isnanl-nolibm.h: Update.
684 * gnulib/import/isnanl: Update.
685 * gnulib/import/itold: Update.
686 * gnulib/import/limits: Update.
687 * gnulib/import/localcharset: Update.
688 * gnulib/import/localcharset.h: Update.
689 * gnulib/import/lstat: Update.
690 * gnulib/import/m4/00gnulib: Update.
691 * gnulib/import/m4/absolute-header: Update.
692 * gnulib/import/m4/alloca: Update.
693 * gnulib/import/m4/canonicalize: Update.
694 * gnulib/import/m4/codeset: Update.
695 * gnulib/import/m4/configmake: Update.
696 * gnulib/import/m4/dirent_h: Update.
697 * gnulib/import/m4/dirfd: Update.
698 * gnulib/import/m4/dirname: Update.
699 * gnulib/import/m4/double-slash-root: Update.
700 * gnulib/import/m4/eealloc: Update.
701 * gnulib/import/m4/errno_h: Update.
702 * gnulib/import/m4/exponentd: Update.
703 * gnulib/import/m4/exponentl: Update.
704 * gnulib/import/m4/extensions: Update.
705 * gnulib/import/m4/extern-inline: Update.
706 * gnulib/import/m4/fcntl-o: Update.
707 * gnulib/import/m4/flexmember: Update.
708 * gnulib/import/m4/float_h: Update.
709 * gnulib/import/m4/fnmatch: Update.
710 * gnulib/import/m4/fpieee: Update.
711 * gnulib/import/m4/frexp: Update.
712 * gnulib/import/m4/frexpl: Update.
713 * gnulib/import/m4/gettimeofday: Update.
714 * gnulib/import/m4/glibc21: Update.
715 * gnulib/import/m4/gnulib-cache: Update.
716 * gnulib/import/m4/gnulib-common: Update.
717 * gnulib/import/m4/gnulib-comp: Update.
718 * gnulib/import/m4/gnulib-tool: Update.
719 * gnulib/import/m4/hard-locale: Update.
720 * gnulib/import/m4/include_next: Update.
721 * gnulib/import/m4/inttypes-pri: Update.
722 * gnulib/import/m4/inttypes: Update.
723 * gnulib/import/m4/isnand: Update.
724 * gnulib/import/m4/isnanl: Update.
725 * gnulib/import/m4/largefile: Update.
726 * gnulib/import/m4/limits-h: Update.
727 * gnulib/import/m4/localcharset: Update.
728 * gnulib/import/m4/locale-fr: Update.
729 * gnulib/import/m4/locale-ja: Update.
730 * gnulib/import/m4/locale-zh: Update.
731 * gnulib/import/m4/longlong: Update.
732 * gnulib/import/m4/lstat: Update.
733 * gnulib/import/m4/malloc: Update.
734 * gnulib/import/m4/malloca: Update.
735 * gnulib/import/m4/math_h: Update.
736 * gnulib/import/m4/mbrtowc: Update.
737 * gnulib/import/m4/mbsinit: Update.
738 * gnulib/import/m4/mbsrtowcs: Update.
739 * gnulib/import/m4/mbstate_t: Update.
740 * gnulib/import/m4/memchr: Update.
741 * gnulib/import/m4/memmem: Update.
742 * gnulib/import/m4/mmap-anon: Update.
743 * gnulib/import/m4/multiarch: Update.
744 * gnulib/import/m4/nocrash: Update.
745 * gnulib/import/m4/off_t: Update.
746 * gnulib/import/m4/pathmax: Update.
747 * gnulib/import/m4/rawmemchr: Update.
748 * gnulib/import/m4/readlink: Update.
749 * gnulib/import/m4/rename: Update.
750 * gnulib/import/m4/rmdir: Update.
751 * gnulib/import/m4/signal_h: Update.
752 * gnulib/import/m4/ssize_t: Update.
753 * gnulib/import/m4/stat: Update.
754 * gnulib/import/m4/stdbool: Update.
755 * gnulib/import/m4/stddef_h: Update.
756 * gnulib/import/m4/stdint: Update.
757 * gnulib/import/m4/stdio_h: Update.
758 * gnulib/import/m4/stdlib_h: Update.
759 * gnulib/import/m4/strchrnul: Update.
760 * gnulib/import/m4/string_h: Update.
761 * gnulib/import/m4/strstr: Update.
762 * gnulib/import/m4/strtok_r: Update.
763 * gnulib/import/m4/sys_socket_h: Update.
764 * gnulib/import/m4/sys_stat_h: Update.
765 * gnulib/import/m4/sys_time_h: Update.
766 * gnulib/import/m4/sys_types_h: Update.
767 * gnulib/import/m4/time_h: Update.
768 * gnulib/import/m4/unistd_h: Update.
769 * gnulib/import/m4/warn-on-use: Update.
770 * gnulib/import/m4/wchar_h: Update.
771 * gnulib/import/m4/wchar_t: Update.
772 * gnulib/import/m4/wctype_h: Update.
773 * gnulib/import/m4/wint_t: Update.
774 * gnulib/import/malloc: Update.
775 * gnulib/import/malloca: Update.
776 * gnulib/import/malloca.h: Update.
777 * gnulib/import/math: Update.
778 * gnulib/import/math: Update.
779 * gnulib/import/mbrtowc: Update.
780 * gnulib/import/mbsinit: Update.
781 * gnulib/import/mbsrtowcs-impl.h: Update.
782 * gnulib/import/mbsrtowcs-state: Update.
783 * gnulib/import/mbsrtowcs: Update.
784 * gnulib/import/memchr: Update.
785 * gnulib/import/memmem: Update.
786 * gnulib/import/pathmax.h: Update.
787 * gnulib/import/rawmemchr: Update.
788 * gnulib/import/readlink: Update.
789 * gnulib/import/ref-add.sin: Update.
790 * gnulib/import/ref-del.sin: Update.
791 * gnulib/import/rename: Update.
792 * gnulib/import/rmdir: Update.
793 * gnulib/import/same-inode.h: Update.
794 * gnulib/import/signal: Update.
795 * gnulib/import/stat: Update.
796 * gnulib/import/stdbool: Update.
797 * gnulib/import/stddef: Update.
798 * gnulib/import/stdint: Update.
799 * gnulib/import/stdio: Update.
800 * gnulib/import/stdlib: Update.
801 * gnulib/import/str-two-way.h: Update.
802 * gnulib/import/strchrnul: Update.
803 * gnulib/import/streq.h: Update.
804 * gnulib/import/string: Update.
805 * gnulib/import/stripslash: Update.
806 * gnulib/import/strnlen1: Update.
807 * gnulib/import/strnlen1.h: Update.
808 * gnulib/import/strstr: Update.
809 * gnulib/import/strtok_r: Update.
810 * gnulib/import/sys_stat: Update.
811 * gnulib/import/sys_time: Update.
812 * gnulib/import/sys_types: Update.
813 * gnulib/import/time: Update.
814 * gnulib/import/unistd: Update.
815 * gnulib/import/unistd: Update.
816 * gnulib/import/verify.h: Update.
817 * gnulib/import/wchar: Update.
818 * gnulib/import/wctype: Update.
819 * gnulib/import/flexmember.h: New file.
820 * gnulib/import/hard-locale.c: New file.
821 * gnulib/import/hard-locale.h: New file.
822 * gnulib/import/limits.in.h: New file.
823 * gnulib/import/m4/flexmember.m4: New file.
824 * gnulib/import/m4/hard-locale.m4: New file.
825 * gnulib/import/m4/limits-h.m4: New file.
826
da804164
PA
8272016-10-18 Pedro Alves <palves@redhat.com>
828
829 * common/common-defs.h: Include "gdb_unique_ptr.h".
830 * common/gdb_unique_ptr.h: New.
831
ae71e7b5
MR
8322016-10-18 Maciej W. Rozycki <macro@imgtec.com>
833
834 * i386-tdep.c (i386_mpx_info_bounds): Make sure the architecture
835 is `bfd_arch_i386' before proceeding.
836 (i386_mpx_set_bounds): Likewise.
837
b348d11b
MR
8382016-10-18 Maciej W. Rozycki <macro@imgtec.com>
839
840 * tilegx-tdep.c (tilegx_analyze_prologue): Use the `long long'
841 type for `operands'.
842
5bad3170
SM
8432016-10-17 Simon Marchi <simon.marchi@ericsson.com>
844
845 * mi/mi-main.c (mi_cmd_trace_save): Check if argument is present
846 before using it.
847
5562a44e
PA
8482016-10-17 Pedro Alves <palves@redhat.com>
849
850 * charset.h (class wchar_iterator) [PHONY_ICONV] <m_desc>: Use
851 'int' as type.
852
754c39c2
UW
8532016-10-14 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
854 Ulrich Weigand <uweigand@de.ibm.com>
855
856 * solib-aix.c (solib_aix_bfd_open): Call solib_find so that sysroot
857 path is set properly if program has a dependency on .a archive and
858 sysroot is set via set sysroot command.
859
afb1110b
MM
8602016-10-14 Markus Metzger <markus.t.metzger@intel.com>
861
862 * nat/linux-btrace.c: Remove leftover comment.
863
8ffc1bb1
EZ
8642016-10-14 Eli Zaretskii <eliz@gnu.org>
865
866 * common/common-defs.h [HAVE_STRINGS_H]: Include strings.h if
867 available, to get prototypes of 'strcasecmp' and 'strncasecmp'.
868
1f2e9c5e
PA
8692016-10-13 Pedro Alves <palves@redhat.com>
870
871 * contrib/ari/gdb_ari.sh (boolean): Suggest bool instead.
872 (false, true): Remove checks.
873
af533a5f
TT
8742016-10-12 Tom Tromey <tom@tromey.com>
875
876 * machoread.c (macho_symfile_read_all_oso): Use std::string.
877
d1a760cb
TT
8782016-10-12 Tom Tromey <tom@tromey.com>
879
880 * tracepoint.c (trace_dump_command): Remove unnecessary
881 null_cleanup.
882
cda6c55b
TT
8832016-10-12 Tom Tromey <tom@tromey.com>
884
885 * valprint.c (generic_emit_char, count_next_character)
886 (generic_printstr): Update.
887 * charset.c (struct wchar_iterator): Move to charset.h.
888 (wchar_iterator::wchar_iterator): Rename from
889 make_wchar_iterator, turn into a constructor.
890 (wchar_iterator::~wchar_iterator): Rename from
891 do_cleanup_iterator, turn into a destructor.
892 (make_cleanup_wchar_iterator): Remove.
893 (wchar_iterator::iterate): Rename from wchar_iterate. Remove
894 "iter" argument. Update.
895 * charset.h: Include <vector>.
896 (class wchar_iterator): New class, from old struct
897 wchar_iterator.
898 (make_wchar_iterator, make_cleanup_wchar_iterator): Don't
899 declare.
900
816d7b53
TT
9012016-10-12 Tom Tromey <tom@tromey.com>
902
903 * selftest.c: Include <vector>, not "vec.h".
904 (self_test_function_ptr): Remove.
905 (tests): Now a std::vector.
906 (register_self_test, run_self_tests): Update.
907
bfd28288
PA
9082016-10-13 Pedro Alves <palves@redhat.com>
909 Tom Tromey <tom@tromey.com>
910
911 * tid-parse.h (tid_range_parser): New class.
912 (enum tid_range_state): Move into tid_range_parser's scope.
913 Remove TID_RANGE_ prefix from all values.
914 (tid_range_parser_get_tid, tid_range_parser_get_tid_range)
915 (tid_range_parser_star_range, tid_range_parser_finished)
916 (tid_range_parser_skip, tid_range_parser_qualified): Don't
917 declare.
918 (tid_is_in_list): Update comment.
919 * tid-parse.c (tid_range_parser::tid_range_parser): New.
920 (init, finished, get_string, skip, tid_is_qualified)
921 (get_tid_or_range, get_tid_range, get_tid, star_range): Rename;
922 turn into methods.
923 (tid_is_in_list): Adjust.
924 * cli/cli-utils.h (number_or_range_parser): New class.
925 (init_number_or_range, get_number_or_range)
926 (number_range_setup_range): Don't declare.
927 * cli/cli-utils.c
928 (number_or_range_parser::number_or_range_parser): New.
929 (init_number_or_range, get_number_or_range)
930 (number_range_setup_range): Rename; turn into methods.
931 (number_is_in_list): Adjust.
932 * breakpoint.c (map_breakpoint_numbers): Adjust. Use bool.
933 (trace_pass_command, get_tracepoint_by_number): Adjust.
934 * breakpoint.h (get_tracepoint_by_number): Adjust.
935 * inferior.c (detach_inferior_command, kill_inferior_command)
936 (remove_inferior_command): Adjust.
937 * linespec.c (decode_line_2): Adjust.
938 * memattr.c (mem_enable_command, mem_disable_command)
939 (mem_delete_command): Adjust.
940 * printcmd.c (map_display_numbers): Adjust.
941 * reverse.c (delete_bookmark_command, bookmarks_info): Adjust.
942 * thread.c (thread_apply_command): Adjust.
943
4a2f4826
AK
9442016-10-12 Anton Kolesov <anton.kolesov@synopsys.com>
945
946 * arc-newlib-tdep.c: New file.
947 * configure.tgt: Add newlib support for ARC.
948
aaf43c48
AK
9492016-10-12 Anton Kolesov <anton.kolesov@synopsys.com>
950
951 * arc-tdep.h (struct gdbarch_tdep) <jb_pc>: New field.
952 * arc-tdep.c (arc_get_longjmp_target): New function.
953 (arc_gdbarch_init): Set get_longjmp_target if jb_pc is non-negative.
954 (arc_dump_tdep): Print jb_pc.
955
b845c31e
AK
9562016-10-12 Anton Kolesov <anton.kolesov@synopsys.com>
957
958 * arc-tdep.h (struct gdbarch_tdep): New.
959 * arc-tdep.c (arc_gdbarch_init): Allocate gdbarch_tdep.
960
187f5d00
YQ
9612016-10-12 Yao Qi <yao.qi@linaro.org>
962
963 PR tdep/20682
964 * aarch64-tdep.c: Replace 32 with AARCH64_D_REGISTER_COUNT.
965 (aarch64_analyze_prologue): Extend array 'regs' for D registers.
966 Assert that operand 0 and 1 can be X or D registers. Update
967 register number for D registers. Update registers in frame
968 cache.
969 * aarch64-tdep.h (AARCH64_D_REGISTER_COUNT): New macro.
970
a1078bea
YQ
9712016-10-10 Yao Qi <yao.qi@linaro.org>
972
973 * arch/arm.h (enum arm_breakpoint_kinds): New.
974 * arm-tdep.c (arm_remote_breakpoint_from_pc): Use
975 ARM_BP_KIND_THUMB2.
976
97ce08cb
YQ
9772016-10-10 Yao Qi <yao.qi@linaro.org>
978
979 * m32c-tdep.c (m32c_gdbarch_init): Rename local 'arch' by
980 'gdbarch'.
981
ff12a659
YQ
9822016-10-10 Yao Qi <yao.qi@linaro.org>
983
984 * v850-tdep.c (v850_breakpoint_from_pc): Use the right
985 breakpoint instruction.
986 (v850_dbtrap_breakpoint_from_pc): Remove.
987 (v850_gdbarch_init): Update.
988
49d06418
SM
9892016-10-08 Simon Marchi <simon.marchi@polymtl.ca>
990
991 * ui-out.c (push_level): Remove "id" parameter.
992 (ui_out_begin): Update call.
993
1a307001
JB
9942016-10-07 Joel Brobecker <brobecker@adacore.com>
995
996 GDB 7.12 released.
997
68dadef5
MM
9982016-10-07 Markus Metzger <markus.t.metzger@intel.com>
999
1000 * python/python.c (gdbpy_decode_line): Call
1001 string_to_event_location_basic instead of new_linespec_location.
1002
1fb77080
SDJ
10032016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
1004
1005 * target.c (target_supports_multi_process): New function, moved
1006 from...
1007 * target.h (target_supports_multi_process): ... here. Remove
1008 macro.
1009 * target/target.h (target_supports_multi_process): New prototype.
1010
ddb6d633
PA
10112016-10-06 Pedro Alves <palves@redhat.com>
1012
1013 * cp-valprint.c (vtbl_ptr_name): Write "extern const" instead of
1014 EXPORTED_CONST.
1015 * stub-termcap.c: Remove __cplusplus checks.
1016 * common/common-defs.h [!__cplusplus] (EXTERN_C, EXTERN_C_PUSH,
1017 EXTERN_C_POP): Delete.
1018 * common/common-exceptions.h (GDB_XCPT_SJMP): Update comments.
1019 (GDB_XCPT) [!__cplusplus]: Delete.
1020 (throw_exception, throw_exception_sjlj): Update comments.
1021 * guile/guile-internal.h (as_a_scm_t_subr) [!__cplusplus]: Delete.
1022 * guile/guile.c (extension_language_guile): Write "extern const"
1023 instead of EXPORTED_CONST.
1024 * features/feature_to_c.sh: Don't emit !__cplusplus code. Write
1025 "extern const" instead of EXPORTED_CONST.
1026
33fa2c6e
DE
10272016-10-06 Doug Evans <dje@google.com>
1028
1029 * python/py-value.c (valpy_long): Handle unsigned values.
1030
d73f9c4b
SM
10312016-10-06 Simon Marchi <simon.marchi@ericsson.com>
1032
1033 * frame.h: Forward-declare struct ui_out.
1034
9c37b5ae
TT
10352016-10-06 Tom Tromey <tom@tromey.com>
1036
1037 * MAINTAINERS: Remove Java test maintainer.
1038 * varobj.h (java_varobj_ops): Don't declare.
1039 * valprint.h (struct value_print_options)
1040 <pascal_static_field_print>: Update comment.
1041 * utils.c (producer_is_gcc): Remove java reference.
1042 * symtab.h (struct general_symbol_info): Remove java references.
1043 (SYMBOL_SEARCH_NAME): Likewise.
1044 * objfiles.c (allocate_objfile): Update comment.
1045 * linespec.c (find_linespec_symbols): Remove java references.
1046 * gnu-v3-abi.c (gnuv3_rtti_type, gnuv3_baseclass_offset): Remove
1047 java references.
1048 * gdbtypes.h (struct cplus_struct_type) <is_java>: Remove.
1049 (TYPE_CPLUS_REALLY_JAVA): Remove.
1050 * c-varobj.c (enum vsections): Update comment.
1051 * symtab.c (symbol_set_language, symbol_set_names)
1052 (symbol_natural_name, symbol_demangled_name)
1053 (demangle_for_lookup, symbol_matches_domain)
1054 (default_make_symbol_completion_list_break_on_1): Remove java
1055 references.
1056 (JAVA_PREFIX, JAVA_PREFIX_LEN): Remove.
1057 * psymtab.c (match_partial_symbol, psymtab_search_name)
1058 (lookup_partial_symbol): Remove java references.
1059 * dwarf2read.c (find_slot_in_mapped_hash): Remove java references.
1060 (add_partial_symbol, dwarf2_compute_name, dwarf2_physname)
1061 (dwarf2_add_member_fn, is_vtable_name, read_structure_type)
1062 (process_structure_scope, read_subroutine_type)
1063 (read_subrange_type, load_partial_dies)
1064 (new_symbol_full, determine_prefix, typename_concat)
1065 (dwarf2_name): Remove java references.
1066 (set_cu_language): Treat Java as C++.
1067 * c-typeprint.c (c_type_print_args): Remove java reference.
1068 * defs.h (enum language) <language_java>: Remove.
1069 * Makefile.in (SFILES, HFILES_NO_SRCDIR, COMMON_OBS, YYFILES)
1070 (YYOBJ, local-maintainer-clean): Don't mention java files.
1071 * jv-exp.y, jv-lang.c, jv-lang.h, jv-typeprint.c, jv-valprint.c,
1072 jv-varobj.c: Remove.
1073
78b86327
MR
10742016-10-06 Maciej W. Rozycki <macro@imgtec.com>
1075
1076 * mips-tdep.c (mips_pseudo_register_type): Make FCRs always
1077 32-bit.
1078
a6912260
MR
10792016-10-06 Maciej W. Rozycki <macro@imgtec.com>
1080
1081 * mips-tdep.c (mips_pseudo_register_type): Rearrange comments
1082 throughout.
1083
c620c3e4
MM
10842016-10-06 Markus Metzger <markus.t.metzger@intel.com>
1085
1086 * stack.c (frame_info): Call val_print_not_saved instead of
1087 val_print_unavailable if frame_id check fails.
1088
4a556533
PA
10892016-10-06 Pedro Alves <palves@redhat.com>
1090
1091 * jit.c (free_objfile_data): Delete the JIT breakpoint and clear
1092 the cached code address.
1093
ee8da4b8
DE
10942016-10-06 Doug Evans <dje@google.com>
1095
1096 * features/aarch64-core.xml (cpsr_flags): Elide "type" and specify
1097 "end" in all fields.
1098 * features/aarch64.c: Regenerate.
1099 * features/i386/32bit-mpx.xml (_bndcfgu): Specify type of "preserved"
1100 and "enabled" fields. Correct size of "enabled" field.
1101 * features/i386/64bit-mpx.xml (_bndcfgu): Specify type of "preserved"
1102 and "enabled" fields.
1103 * features/i386/i386-avx-mpx-linux.c: Regenerate.
1104 * features/i386/i386-avx-mpx.c: Regenerate.
1105 * features/i386/i386-avx512-linux.c: Regenerate.
1106 * features/i386/i386-avx512.c: Regenerate.
1107 * features/i386/i386-mpx-linux.c: Regenerate.
1108 * features/i386/i386-mpx.c: Regenerate.
1109 * features/arc-arcompact.c: Regenerate.
1110 * features/arc-v2.c: Regenerate.
1111 * xml-tdesc.c (tdesc_start_field): Require "end" spec. Single bit
1112 fields default to "bool" type.
1113
1114 Revert 2016-03-15 Doug Evans <dje@google.com>
1115 * features/i386/32bit-core.xml (i386_eflags): Remove "end" spec.
1116 * features/i386/32bit-sse.xml (i386_eflags): Ditto.
1117 * features/i386/64bit-core.xml (i386_eflags): Ditto.
1118 * features/i386/64bit-sse.xml (i386_eflags): Ditto.
1119 * features/i386/x32-core.xml (i386_eflags): Ditto.
1120
e742d386
TT
11212016-10-05 Tom Tromey <tom@tromey.com>
1122
1123 PR breakpoints/20653:
1124 * location.c (string_to_explicit_location): Use NULL, not '\0'.
1125
3e611445
TT
11262016-10-05 Tom Tromey <tom@tromey.com>
1127
1128 PR symtab/20652:
1129 * psymtab.c (psymbol_compare): Correctly compare "ginfo.value"
1130 fields.
1131
f206f69c
AA
11322016-10-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
1133
1134 * dwarf2expr.c (dwarf_expr_require_composition): Allow
1135 DW_OP_GNU_uninit.
1136 (execute_stack_op): Use dwarf_expr_require_composition instead of
1137 copying its logic.
1138
ed2f09e1
AK
11392016-10-05 Anton Kolesov <anton.kolesov@synopsys.com>
1140
dba48492 1141 * arc-tdep.c (arc_frame_prev_register): Remove annoying log message.
ed2f09e1 1142
5878efd4
YQ
11432016-10-05 Yao Qi <yao.qi@linaro.org>
1144
1145 * features/Makefile (WHICH): Add
1146 rs6000/powerpc-isa205-32l, rs6000/powerpc-isa205-64l,
1147 rs6000/powerpc-isa205-altivec32l, rs6000/powerpc-isa205-altivec64l,
1148 rs6000/powerpc-isa205-vsx32l and rs6000/powerpc-isa205-vsx64l.
1149 * regformats/rs6000/powerpc-isa205-32l.dat: Regenerated.
1150 * regformats/rs6000/powerpc-isa205-64l.dat: Likewise.
1151 * regformats/rs6000/powerpc-isa205-altivec32l.dat: Likewise.
1152 * regformats/rs6000/powerpc-isa205-altivec64l.dat: Likewise.
1153 * regformats/rs6000/powerpc-isa205-vsx32l.dat: Likewise.
1154 * regformats/rs6000/powerpc-isa205-vsx64l.dat: Likewise.
1155
defaaad5
YQ
11562016-10-05 Yao Qi <yao.qi@linaro.org>
1157
1158 * features/Makefile (XMLTOC): Add s390-tevx-linux64.xml,
1159 s390-vx-linux64.xml, s390x-tevx-linux64.xml and
1160 s390x-vx-linux64.xml.
1161
414c838a
YQ
11622016-10-05 Yao Qi <yao.qi@linaro.org>
1163
1164 * features/Makefile: Remove i386/*-expedite. Add i386-expedite,
1165 amd64-expedite, and x32-expedite.
1166
0a69eedb
YQ
11672016-10-05 Terry Guo <terry.guo@arm.com>
1168 Yao Qi <yao.qi@linaro.org>
1169
1170 * arm-tdep.c: Adjust includes.
1171 * features/Makefile (WHICH): Add "arm/" directory to arm
1172 target descriptions.
1173 (XMLTOC): Likewise.
1174 (arm/arm-with-iwmmxt.dat): Adjust the path for
1175 dependencies.
1176 * features/arm-core.xml: Moved to ...
1177 * features/arm/arm-core.xml: ... it.
1178 * features/arm-fpa.xml: Moved to ...
1179 * features/arm/arm-fpa.xml: ... it.
1180 * features/arm-m-profile.xml: Moved to ...
1181 * features/arm/arm-m-profile.xm: ... it.
1182 * features/arm-vfpv2.xml: Moved to ...
1183 * features/arm/arm-vfpv2.xm: ... it.
1184 * features/arm-vfpv3.xml: Moved to ...
1185 * features/arm/arm-vfpv3.xml: ... it.
1186 * features/arm-with-iwmmxt.c: Moved to ...
1187 * features/arm/arm-with-iwmmxt.c: ... it.
1188 * features/arm-with-iwmmxt.xml: Moved to ...
1189 * features/arm/arm-with-iwmmxt.xml: ... it.
1190 * features/arm-with-m-fpa-layout.c: Moved to ...
1191 * features/arm/arm-with-m-fpa-layout.c: ... it.
1192 * features/arm-with-m-fpa-layout.xml: Moved to ...
1193 * features/arm/arm-with-m-fpa-layout.xml: ... it.
1194 * features/arm-with-m-vfp-d16.c: Moved to ...
1195 * features/arm/arm-with-m-vfp-d16.c: ... it.
1196 * features/arm-with-m-vfp-d16.xml: Moved to ...
1197 * features/arm/arm-with-m-vfp-d16.xml: ... it.
1198 * features/arm-with-m.c: Moved to ...
1199 * features/arm/arm-with-m.c: ... it.
1200 * features/arm-with-m.xml: Moved to ...
1201 * features/arm/arm-with-m.xm: ... it.
1202 * features/arm-with-neon.c: Moved to ...
1203 * features/arm/arm-with-neon.c: ... it.
1204 * features/arm-with-neon.xml: Moved to ...
1205 * features/arm/arm-with-neon.xml: ... it.
1206 * features/arm-with-vfpv2.c: Moved to ...
1207 * features/arm/arm-with-vfpv2.c: ... it.
1208 * features/arm-with-vfpv2.xml: Moved to ...
1209 * features/arm/arm-with-vfpv2.xml: ... it.
1210 * features/arm-with-vfpv3.c: Moved to ...
1211 * features/arm/arm-with-vfpv3.c: ... it.
1212 * features/arm-with-vfpv3.xml: Moved to ...
1213 * features/arm/arm-with-vfpv3.xml: ... it.
1214 * features/xscale-iwmmxt.xml: Moved to ...
1215 * features/arm/xscale-iwmmxt.xml: ... it.
1216
4034d0ff
AT
12172016-10-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
12182016-10-03 Simon Marchi <simon.marchi@ericsson.com>
1219
1220 PR gdb/20487
1221 * NEWS: Mention new frame field of =thread-selected event.
1222 * cli/cli-decode.c (add_cmd): Initialize c->suppress_notification.
1223 (add_com_suppress_notification): New function definition.
1224 (cmd_func): Set and restore the suppress_notification flag.
1225 * cli/cli-deicode.h (struct cmd_list_element)
1226 <suppress_notification>: New field.
1227 * cli/cli-interp.c (cli_suppress_notification): New global variable.
1228 (cli_on_user_selected_context_changed): New function.
1229 (_initialize_cli_interp): Attach to user_selected_context_changed
1230 observer.
1231 * command.h (struct cli_suppress_notification): New structure.
1232 (cli_suppress_notification): New global variable declaration.
1233 (add_com_suppress_notification): New function declaration.
1234 * defs.h (enum user_selected_what_flag): New enum.
1235 (user_selected_what): New enum flag type.
1236 * frame.h (print_stack_frame_to_uiout): New function declaration.
1237 * gdbthread.h (print_selected_thread_frame): New function declaration.
1238 * inferior.c (print_selected_inferior): New function definition.
1239 (inferior_command): Remove printing of inferior/thread/frame switch
1240 notifications, notify user_selected_context_changed observer.
1241 * inferior.h (print_selected_inferior): New function declaration.
1242 * mi/mi-cmds.c (struct mi_cmd): Add user_selected_context
1243 suppression to stack-select-frame and thread-select commands.
1244 * mi/mi-interp.c (struct mi_suppress_notification)
1245 <user_selected_context>: Initialize.
1246 (mi_user_selected_context_changed): New function definition.
1247 (_initialize_mi_interp): Attach to user_selected_context_changed.
1248 * mi/mi-main.c (mi_cmd_thread_select): Print thread selection reply.
1249 (mi_execute_command): Handle notification suppression. Notify
1250 user_selected_context_changed observer on thread change instead of printing
1251 event directly. Don't send it if command already sends the notification.
1252 (command_notifies_uscc_observer): New function.
1253 (mi_cmd_execute): Don't handle notification suppression.
1254 * mi/mi-main.h (struct mi_suppress_notification)
1255 <user_selected_context>: New field.
1256 * stack.c (print_stack_frame_to_uiout): New function definition.
1257 (select_frame_command): Notify user_selected_context_changed
1258 observer.
1259 (frame_command): Call print_selected_thread_frame if there's no frame
1260 change or notify user_selected_context_changed observer if there is.
1261 (up_command): Notify user_selected_context_changed observer.
1262 (down_command): Likewise.
1263 (_initialize_stack): Suppress user_selected_context notification for
1264 command select-frame.
1265 * thread.c (thread_command): Notify
1266 user_selected_context_changed if the thread has changed, print
1267 thread info directly if it hasn't.
1268 (do_captured_thread_select): Do not print thread switch event.
1269 (print_selected_thread_frame): New function definition.
1270 * tui/tui-interp.c (tui_on_user_selected_context_changed):
1271 New function definition.
1272 (_initialize_tui_interp): Attach to user_selected_context_changed
1273 observer.
1274
bb805577
JK
12752016-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1276
1277 PR gdb/20609 - attach of JIT-debug-enabled inf 7.11.1 regression
1278 * exec.c (exec_file_locate_attach): Add parameter defer_bp_reset.
1279 Use it.
1280 * gdbcore.h (exec_file_locate_attach): Add parameter defer_bp_reset.
1281 * infcmd.c (setup_inferior): Update caller.
1282 * remote.c (remote_add_inferior): Likewise.
1283
6d61dee5
PA
12842016-09-28 Pedro Alves <palves@redhat.com>
1285
1286 * infcall.c (run_inferior_call): Remove input from the event
1287 loop while running the infcall.
1288
ca90e760
FH
12892016-09-27 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
1290
1291 * arm-tdep.c (arm_m_addr_is_magic): New function.
1292 (arm_addr_bits_remove): Call arm_m_addr_is_magic.
1293 (arm_m_exception_unwind_sniffer): Likewise.
1294
9eee20eb
JT
12952016-09-23 Jon Turney <jon.turney@dronecode.org.uk>
1296
1297 * windows-nat.c (windows_delete_thread): Adjusting call to
1298 target_mourn_inferior to include ptid_t argument.
1299
a97e29d2
TT
13002016-09-23 Tom Tromey <tom@tromey.com>
1301
1302 * utils.h (make_cleanup_dyn_string_delete): Remove declaration.
1303 * utils.c: Don't include dyn-string.h.
1304 (do_dyn_string_delete, make_cleanup_dyn_string_delete): Remove.
1305 * cli/cli-cmds.c: Include <string>. Don't include dyn-string.h.
1306 (argv_to_string): Rename. Change return type to std::string.
1307 (alias_command): Use std::string.
1308
cfe826d4
TT
13092016-09-23 Tom Tromey <tom@tromey.com>
1310
1311 * objfiles.c: Include <vector>.
1312 (objfile_relocate): Use std::vector.
1313
ab8b80a8
TT
13142016-09-23 Tom Tromey <tom@tromey.com>
1315
1316 * rust-lang.c: Include <string> and <vector>.
1317 (rust_evaluate_funcall): Use std::vector, std::string.
1318 (rust_evaluate_subexp): Use std::string.
1319 (rust_lookup_symbol_nonlocal): Use std::string.
1320
05d49c37
TT
13212016-09-23 Tom Tromey <tom@tromey.com>
1322
1323 * cp-namespace.c: Include <string>.
1324 (cp_search_static_and_baseclasses)
1325 (cp_lookup_symbol_imports_or_template, find_symbol_in_baseclass):
1326 Use std::string.
1327
5809899d
TT
13282016-09-23 Tom Tromey <tom@tromey.com>
1329
1330 * break-catch-sig.c: Include <string>.
1331 (signal_catchpoint_print_one): Use std::string.
1332
3e25a500
TT
13332016-09-23 Tom Tromey <tom@tromey.com>
1334
1335 * utils.c (struct restore_ui_out_closure): Remove.
1336 * objfiles.h (terminate_minimal_symbol_table): Don't declare.
1337
97e64e5a
YQ
13382016-09-23 Yao Qi <yao.qi@linaro.org>
1339
1340 * nat/linux-osdata.c (linux_xfer_osdata_threads): Replace
1341 sprintf with xsnprintf.
1342 (linux_xfer_osdata_fds): Likewise.
1343
503b1c39
PA
13442016-09-23 Pedro Alves <palves@redhat.com>
1345
1346 * Makefile.in (SFILES): Add common/new-op.c.
1347 (COMMON_OBS): Add common/new-op.o.
1348 (new-op.o): New rule.
1349 * common/common-exceptions.h: Include <new>.
1350 (struct gdb_quit_bad_alloc): New type.
1351 * common/new-op.c: New file.
1352
de678454
EBM
13532016-09-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1354
1355 * rs6000-tdep.c (ppc_process_record_op31): Fix
1356 regcache_raw_read_unsigned call using the correct parameter type.
1357
fa42dd2e
AK
13582016-09-22 Anton Kolesov <anton.kolesov@synopsys.com>
1359
1360 * arc-tdep.c: Fix ARI warning for printf(%p).
1361
31da3f27
AK
13622016-09-21 Anton Kolesov <anton.kolesov@synopsys.com>
1363
1364 * MAINTAINERS (Write After Approval): Add Anton Kolesov.
1365
ad0a504f
AK
13662016-09-21 Anton Kolesov <anton.kolesov@synopsys.com>
1367
1368 * Makefile.in (ALL_TARGET_OBS): Add arc-tdep.o.
1369 (HFILES_NO_SRCDIR): Add arc-tdep.h.
1370 (ALLDEPFILES): Add arc-tdep.c.
1371 * NEWS: Mention new ARC port.
1372 * configure.tgt: Add ARC.
1373 * arc-tdep.c: New file.
1374 * arc-tdep.h: New file.
1375 * features/Makefile (XMLTOC): Add arc-v2.xml and arc-arcompact.xml.
1376 * features/arc-v2.xml: New file.
1377 * features/arc-v2.c: New file (generated).
1378 * features/arc-arcompact.xml: New file.
1379 * features/arc-arcompact.c: New file (generated).
1380
8aabe2e2
EBM
13812016-09-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1382
1383 * rs6000-tdep.c (ppc_process_record_op63): Fix return of instruction
1384 handlers.
1385
36cf1806
TT
13862016-09-21 Tom Tromey <tom@tromey.com>
1387
1388 PR gdb/20604:
1389 * top.h (quit_force): Update.
1390 * top.c (quit_force): Changed type of first argument. Don't
1391 evaluate expression. Pass NULL to kill_or_detach.
1392 * cli/cli-cmds.c (quit_command): Evaluate "args".
1393
74172ecf
SM
13942016-09-21 Simon Marchi <simon.marchi@ericsson.com>
1395
1396 * .gitignore: Ignore more files.
1397 * data-directory/.gitignore: Likewise.
1398
6ec2b213
EBM
13992016-09-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1400
1401 * rs6000-tdep.c (PPC_DQ): New macro.
1402 (ppc_process_record_op4): Add Power ISA 3.0 instructions.
1403 (ppc_process_record_op19): Likewise.
1404 (ppc_process_record_op31): Likewise.
1405 (ppc_process_record_op59): Likewise.
1406 (ppc_process_record_op60): Likewise.
1407 (ppc_process_record_op63): Likewise.
1408 (ppc_process_record): Likewise.
1409 (ppc_process_record_op61): New function.
1410
fc6cda2e
YQ
14112016-09-21 Yao Qi <yao.qi@linaro.org>
1412
1413 * aarch32-linux-nat.c (aarch32_gp_regcache_collect): Keep
1414 bits 20 to 23.
1415
12c58cd4
TT
14162016-09-20 Tom Tromey <tom@tromey.com>
1417
1418 * python/py-value.c (convert_value_from_python): Make PyInt_Check
1419 conditional on Python 2.
1420 * python/py-arch.c (archpy_disassemble): Make PyInt_Check
1421 conditional on Python 2.
1422
9f7efd5b
EBM
14232016-09-20 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1424
1425 * rs6000-tdep.c (ppc_process_record_op31): Fix record of Store String
1426 Word instructions.
1427
7d5adfe3
SDJ
14282016-09-20 Sergio Durigan Junior <sergiodj@redhat.com>
1429
1430 * fork-inferior.c (startup_inferior): Pass 'event_ptid' instead of
1431 'resume_ptid' to 'target_mourn_inferior'. Fix regression
1432 introduced by my last commit.
1433
66797541
PA
14342016-09-19 Pedro Alves <palves@redhat.com>
1435
1436 * common/gdb_locale.h [!ENABLE_NLS] (gettext, dgettext, dcgettext,
1437 textdomain, bindtextdomain): Delete macros.
1438 * main.c (captured_main) [!ENABLE_NLS]: Skip bintextdomain and
1439 textdomain calls.
1440
bc1e6c81
SDJ
14412016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
1442
1443 * darwin-nat.c (darwin_kill_inferior): Adjusting call to
1444 target_mourn_inferior to include ptid_t argument.
1445 * fork-child.c (startup_inferior): Likewise.
1446 * gnu-nat.c (gnu_kill_inferior): Likewise.
1447 * inf-ptrace.c (inf_ptrace_kill): Likewise.
1448 * infrun.c (handle_inferior_event_1): Likewise.
1449 * linux-nat.c (linux_nat_attach): Likewise.
1450 (linux_nat_kill): Likewise.
1451 * nto-procfs.c (interrupt_query): Likewise.
1452 (procfs_interrupt): Likewise.
1453 (procfs_kill_inferior): Likewise.
1454 * procfs.c (procfs_kill_inferior): Likewise.
1455 * record.c (record_mourn_inferior): Likewise.
1456 * remote-sim.c (gdbsim_kill): Likewise.
1457 * remote.c (remote_detach_1): Likewise.
1458 (remote_kill): Likewise.
1459 * target.c (target_mourn_inferior): Change declaration to accept
1460 new ptid_t argument; use gdb_assert on it.
1461 * target.h (target_mourn_inferior): Move function prototype from
1462 here...
1463 * target/target.h (target_mourn_inferior): ... to here. Adjust it
1464 to accept new ptid_t argument.
1465 * windows-nat.c (get_windows_debug_event): Adjusting call to
1466 target_mourn_inferior to include ptid_t argument.
1467
93689493
PA
14682016-09-18 Pedro Alves <palves@redhat.com>
1469
1470 * s390-linux-nat.c: Include <algorithm>.
1471
768adc05
PA
14722016-09-18 Pedro Alves <palves@redhat.com>
1473
1474 * breakpoint.c (hardware_watchpoint_inserted_in_range): Explicitly
1475 specify the std:min/std::max specialization.
1476 * exec.c (section_table_read_available_memory): Likewise.
1477 * remote.c (remote_read_qxfer): Likewise.
1478 * target.c (simple_verify_memory): Likewise.
1479
cd94f6d5
SM
14802016-09-16 Simon Marchi <simark@simark.ca>
1481
1482 * infrun.c (restore_current_uiout_cleanup): Move to ui-out.c.
1483 (print_stop_event): Use make_cleanup_restore_current_uiout.
1484 * python/python.c (execute_gdb_command): Likewise.
1485 * ui-out.c (restore_current_uiout_cleanup): Move from infrun.c.
1486 (make_cleanup_restore_current_uiout): New function definition.
1487 * ui-out.h (make_cleanup_restore_current_uiout): New function
1488 declaration.
1489 * utils.c (do_restore_ui_out): Remove.
1490 (make_cleanup_restore_ui_out): Remove.
1491 * utils.h (make_cleanup_restore_ui_out): Remove.
1492
325fac50
PA
14932016-09-16 Pedro Alves <palves@redhat.com>
1494
1495 * defs.h (min, max): Delete.
1496 * aarch64-tdep.c: Include <algorithm> and use std::min and
1497 std::max throughout.
1498 * aarch64-tdep.c: Likewise.
1499 * alpha-tdep.c: Likewise.
1500 * amd64-tdep.c: Likewise.
1501 * amd64-windows-tdep.c: Likewise.
1502 * arm-tdep.c: Likewise.
1503 * avr-tdep.c: Likewise.
1504 * breakpoint.c: Likewise.
1505 * btrace.c: Likewise.
1506 * ctf.c: Likewise.
1507 * disasm.c: Likewise.
1508 * doublest.c: Likewise.
1509 * dwarf2loc.c: Likewise.
1510 * dwarf2read.c: Likewise.
1511 * environ.c: Likewise.
1512 * exec.c: Likewise.
1513 * f-exp.y: Likewise.
1514 * findcmd.c: Likewise.
1515 * ft32-tdep.c: Likewise.
1516 * gcore.c: Likewise.
1517 * hppa-tdep.c: Likewise.
1518 * i386-darwin-tdep.c: Likewise.
1519 * i386-tdep.c: Likewise.
1520 * linux-thread-db.c: Likewise.
1521 * lm32-tdep.c: Likewise.
1522 * m32r-tdep.c: Likewise.
1523 * m88k-tdep.c: Likewise.
1524 * memrange.c: Likewise.
1525 * minidebug.c: Likewise.
1526 * mips-tdep.c: Likewise.
1527 * moxie-tdep.c: Likewise.
1528 * nds32-tdep.c: Likewise.
1529 * nios2-tdep.c: Likewise.
1530 * nto-procfs.c: Likewise.
1531 * parse.c: Likewise.
1532 * ppc-sysv-tdep.c: Likewise.
1533 * probe.c: Likewise.
1534 * record-btrace.c: Likewise.
1535 * remote.c: Likewise.
1536 * rs6000-tdep.c: Likewise.
1537 * rx-tdep.c: Likewise.
1538 * s390-linux-nat.c: Likewise.
1539 * s390-linux-tdep.c: Likewise.
1540 * ser-tcp.c: Likewise.
1541 * sh-tdep.c: Likewise.
1542 * sh64-tdep.c: Likewise.
1543 * source.c: Likewise.
1544 * sparc-tdep.c: Likewise.
1545 * symfile.c: Likewise.
1546 * target-memory.c: Likewise.
1547 * target.c: Likewise.
1548 * tic6x-tdep.c: Likewise.
1549 * tilegx-tdep.c: Likewise.
1550 * tracefile-tfile.c: Likewise.
1551 * tracepoint.c: Likewise.
1552 * valprint.c: Likewise.
1553 * value.c: Likewise.
1554 * xtensa-tdep.c: Likewise.
1555 * cli/cli-cmds.c: Likewise.
1556 * compile/compile-object-load.c: Likewise.
1557
8193adea
AA
15582016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
1559
1560 * s390-linux-nat.c (PER_BIT, PER_EVENT_BRANCH, PER_EVENT_IFETCH)
1561 (PER_EVENT_STORE, PER_EVENT_NULLIFICATION)
1562 (PER_CONTROL_BRANCH_ADDRESS, PER_CONTROL_SUSPENSION)
1563 (PER_CONTROL_ALTERATION): New macros.
1564 (struct s390_debug_reg_state) <break_areas>: New member.
1565 (s390_forget_process): Free break_areas as well.
1566 (s390_linux_new_fork): Copy break_areas as well.
1567 (s390_prepare_to_resume): Install hardware breakpoints.
1568 (s390_can_use_hw_breakpoint): Indicate support for hardware
1569 breakpoints.
1570 (s390_insert_hw_breakpoint, s390_remove_hw_breakpoint): New
1571 linux_nat target methods.
1572 (_initialize_s390_nat): Register them.
1573
0e00e962
AA
15742016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
1575
1576 * nat/linux-nat.h (lwp_is_stepping): New declaration.
1577 * linux-nat.c (lwp_is_stepping): New function.
1578
169fe0df
AA
15792016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
1580
1581 * s390-linux-nat.c (gdbcmd.h): New include.
1582 (s390_show_debug_regs): New function.
1583 (s390_stopped_by_watchpoint): Call it, if show_debug_regs is set.
1584 (s390_prepare_to_resume): Likewise.
1585 (_initialize_s390_nat): Register the command "maint set
1586 show-debug-regs".
1587
373c3dad
AA
15882016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
1589
1590 * s390-linux-nat.c (watch_areas): Remove variable. Replace by a
1591 member of...
1592 (struct s390_debug_reg_state): ...this. New struct.
1593 (struct s390_process_info): New struct.
1594 (s390_process_list): New variable.
1595 (s390_find_process_pid, s390_add_process, s390_process_info_get)
1596 (s390_get_debug_reg_state): New functions.
1597 (s390_stopped_by_watchpoint): Now access the watch_areas VEC via
1598 s390_get_debug_reg_state.
1599 (s390_prepare_to_resume): Likewise.
1600 (s390_insert_watchpoint): Likewise.
1601 (s390_remove_watchpoint): Likewise.
1602 (s390_forget_process, s390_linux_new_fork): New linux_nat target
1603 methods.
1604 (_initialize_s390_nat): Register them.
1605
17c84cca
AA
16062016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
1607
1608 * s390-linux-nat.c (s390_watch_area): New typedef. Define a VEC.
1609 (watch_base): Remove variable.
1610 (watch_areas): New variable.
1611 (s390_stopped_by_watchpoint): Transform operations on the
1612 watch_base list to equivalent operations on the watch_areas VEC.
1613 (s390_prepare_to_resume): Likewise.
1614 (s390_insert_watchpoint): Likewise.
1615 (s390_remove_watchpoint): Likewise.
1616
9c2996c9
AA
16172016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
1618
1619 * s390-linux-nat.c (s390_prepare_to_resume): Use advertised lwp
1620 functions instead of accessing lwp_info structure members.
1621 (s390_mark_per_info_changed): New function.
1622 (s390_new_thread): Use it.
1623 (s390_refresh_per_info_cb): New function.
1624 (s390_refresh_per_info): Remove parameter. Refresh all lwps of
1625 the current process.
1626 (s390_insert_watchpoint): Adjust call to s390_refresh_per_info.
1627 (s390_remove_watchpoint): Likewise.
1628
e1b2624a
AA
16292016-09-09 Andreas Arnez <arnez@linux.vnet.ibm.com>
1630
1631 * elfread.c (auxv.h): New include.
1632 (elf_gnu_ifunc_resolve_addr): Pass HWCAP to ifunc resolver.
1633
f5c4fcd9
TT
16342016-09-08 Tom Tromey <tom@tromey.com>
1635
1636 * remote.c (remote_notif_stop_ack, remote_wait_as)
1637 (show_remote_cmd): Remove unneeded casts.
1638
4295e285
PA
16392016-09-06 Pedro Alves <palves@redhat.com>
1640
1641 * top.c (wait_sync_command_done): Don't assume current_ui doesn't
1642 change across events. Restore the current UI before returning.
1643 (gdb_readline_wrapper): Restore the current UI before returning.
1644
a025b477
PA
16452016-09-06 Pedro Alves <palves@redhat.com>
1646
1647 * event-top.c (restore_ui_cleanup): Now static.
1648 (make_cleanup_restore_current_ui): New function.
1649 (switch_thru_all_uis_init): Use it.
1650 * infcall.c (call_thread_fsm_should_stop): Use it.
1651 * infrun.c (fetch_inferior_event): Use it.
1652 * top.c (new_ui_command): Use it.
1653 * top.h (restore_ui_cleanup): Delete declaration.
1654 (make_cleanup_restore_current_ui): New declaration.
1655
00d5215e
UW
16562016-09-05 Ulrich Weigand <uweigand@de.ibm.com>
1657
1658 * i386-tdep.c (i386_floatformat_for_type): New function.
1659 (i386_gdbarch_init): Install it.
1660 * ppc-linux-tdep.c (ppc_floatformat_for_type): New function.
1661 (ppc_linux_init_abi): Install it.
1662
9b790ce7
UW
16632016-09-05 Ulrich Weigand <uweigand@de.ibm.com>
1664
1665 * gdbarch.sh (floatformat_for_type): New gdbarch callback.
1666 * gdbarch.h, gdbarch.c: Re-generate.
1667 * arch-utils.h (default_floatformat_for_type): New prototype.
1668 * arch-utils.c (default_floatformat_for_type): New function.
1669
1670 * doublest.c (floatformat_from_length): Remove.
1671 (floatformat_from_type): Assume TYPE_FLOATFORMAT is non-NULL.
1672 * gdbtypes.c (verify_floatformat): Require non-NULL format.
1673
1674 * dwarf2read.c (dwarf2_init_float_type): New function.
1675 (read_base_type): Use it.
1676 * stabsread.c (dbx_init_float_type): New function.
1677 (read_sun_floating_type): Use it.
1678 (read_range_type): Likewise.
1679
49f190bc
UW
16802016-09-05 Ulrich Weigand <uweigand@de.ibm.com>
1681
1682 * ada-lang.c (ada_language_arch_info): Use gdbarch-provided
1683 platform ABI floating-point formats for built-in types.
1684 * d-lang.c (build_d_types): Likewise.
1685 * f-lang.c (build_fortran_types): Likewise.
1686 * m2-lang.c (build_m2_types): Likewise.
1687 * mdebugread.c (basic_type): Likewise.
1688
1689 * go-lang.c (build_go_types): Use IEEE floating-point formats
1690 for language built-in types as mandanted by the language.
1691 * jv-lang.c (build_java_types): Likewise.
1692 * rust-lang.c (rust_language_arch_info): Likewise.
1693 * stabsread.c (rs6000_builtin_type): Likewise.
1694
c413c448
UW
16952016-09-05 Ulrich Weigand <uweigand@de.ibm.com>
1696
1697 * gdbtypes.c (init_type): Remove "char" special case.
1698 (arch_integer_type): Likewise.
1699 (gdbtypes_post_init): Set TYPE_NOSIGN for "char" type.
1700 (objfile_type): Likewise.
1701 * mdebugread.c (basic_type): Likewise.
1702 * stabsread.c (rs6000_builtin_type): Likewise.
1703
a9ff5f12
UW
17042016-09-05 Ulrich Weigand <uweigand@de.ibm.com>
1705
1706 * gdbtypes.h (enum type_flag_value): Remove.
1707 Remove references to TYPE_FLAG_... in comments throughout.
1708 * gdbtypes.c (recursive_dump_type): Do not print TYPE_FLAG_...
1709 flags, print the corresponding TYPE_... access macro names.
1710 Remove references to TYPE_FLAG_... in comments throughout.
1711 * infcall.c: Remove references to TYPE_FLAG_... in comments.
1712 * valprint.c: Likewise.
1713 * gdb-gdb.py (class TypeFlag): No longer consider TYPE_FLAG_...
1714 values, only TYPE_INSTANCE_FLAG_... values.
1715 (class TypeFlagsPrinter): Likewise.
1716
19f392bc
UW
17172016-09-05 Ulrich Weigand <uweigand@de.ibm.com>
1718
1719 * gdbtypes.h (init_type): Remove FLAGS argument. Move OBJFILE
1720 argument to first position.
1721 (init_integer_type): New prototype.
1722 (init_character_type): Likewise.
1723 (init_boolean_type): Likewise.
1724 (init_float_type): Likewise.
1725 (init_decfloat_type): Likewise.
1726 (init_complex_type): Likewise.
1727 (init_pointer_type): Likewise.
1728 * gdbtypes.c (verify_floatflormat): New function.
1729 (init_type): Remove FLAGS argument and processing. Move OBJFILE
1730 argument to first position.
1731 (init_integer_type): New function.
1732 (init_character_type): Likewise.
1733 (init_boolean_type): Likewise.
1734 (init_float_type): Likewise.
1735 (init_decfloat_type): Likewise.
1736 (init_complex_type): Likewise.
1737 (init_pointer_type): Likewise.
1738 (arch_float_type): Use verify_floatflormat.
1739 (objfile_type): Use init_..._type helpers instead of calling
1740 init_type directly.
1741 * dwarf2read.c (fixup_go_packaging): Update to changed init_type
1742 prototype.
1743 (read_namespace_type): Likewise.
1744 (read_module_type): Likewise.
1745 (read_typedef): Likewise.
1746 (read_unspecified_type): Likewise.
1747 (build_error_marker_type): Likewise.
1748 (read_base_type): Use init_..._type helpers.
1749 * mdebugread.c (basic_type): Use init_..._type helpers.
1750 (parse_type): Update to changed init_type prototype.
1751 (cross_ref): Likewise.
1752 * stabsread.c (rs6000_builtin_type): Use init_..._type helpers.
1753 (read_sun_builtin_type): Likewise.
1754 (read_sun_floating_type): Likewise.
1755 (read_range_type): Likewise. Also update to changed init_type
1756 prototype.
1757
88dfca6c
UW
17582016-09-05 Ulrich Weigand <uweigand@de.ibm.com>
1759
1760 * gdbtypes.h (arch_decfloat_type): New prototype.
1761 (arch_pointer_type): Likewise.
1762 * gdbtypes.c (arch_decfloat_type): New function.
1763 (arch_pointer_type): Likewise.
1764 (gdbtypes_post_init): Use arch_decfloat_type.
1765 * avr-tdep.c (avr_gdbarch_init): Use arch_pointer_type.
1766 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
1767 * m32c-tdep.c (make_types): Likewise.
1768 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
1769
ae438bc5
UW
17702016-09-05 Ulrich Weigand <uweigand@de.ibm.com>
1771
1772 * gdbtypes.c (set_type_code): New function.
1773 (init_type, arch_type): Use it.
1774
5f3bceb6
UW
17752016-09-05 Ulrich Weigand <uweigand@de.ibm.com>
1776
1777 * ada-lang.c (ada_language_arch_info): Use gdbarch_long_double_bit
1778 instead of gdbarch_double_bit for "long_long_float".
1779
cf6de44d
PA
17802016-09-05 Pedro Alves <palves@redhat.com>
1781
1782 * NEWS: Mention that a C++ compiler is now required.
1783 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
1784 (COMPILE.pre, CC_LD): Use CXX directly.
1785 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
1786 * acinclude.m4: Don't include build-with-cxx.m4.
1787 * build-with-cxx.m4: Delete file.
1788 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
1789 * warning.m4: Assume $enable_build_with_cxx is yes.
1790 * configure: Regenerate.
1791
f245535c
PA
17922016-09-05 Pedro Alves <palves@redhat.com>
1793
1794 PR backtrace/19927
1795 * frame.c (get_frame_id): Compute the frame id if not computed
1796 yet.
1797 (unwind_to_current_frame): Delete.
1798 (get_current_frame): Use get_prev_frame_always_1 to get the
1799 current frame and assert that that always succeeds.
1800 (get_prev_frame_if_no_cycle): Skip cycle detection if returning
1801 the current frame.
1802
4aa4e28b
TT
18032016-09-02 Tom Tromey <tom@tromey.com>
1804
1805 PR gdb/11616:
1806 * dwarf2read.c (decode_locdesc): Handle DW_OP_form_tls_address.
1807 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Handle
1808 DW_OP_form_tls_address.
1809 (locexpr_describe_location_piece): Likewise.
1810 * dwarf2expr.h (struct dwarf_expr_context_funcs): Update comment.
1811 * dwarf2expr.c (execute_stack_op): Handle DW_OP_form_tls_address.
1812 (ctx_no_get_tls_address): Mention DW_OP_form_tls_address.
1813 * compile/compile-loc2c.c (struct insn_info): Update comment.
1814 (compute_stack_depth_worker): Handle DW_OP_form_tls_address.
1815
f2b9e3df
SDJ
18162016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
1817
1818 * target.c (target_wait): Mention that the function's prototype
1819 can be found at target/target.h.
1820 * target.h (target_wait): Move prototype from here...
1821 * target/target.h (target_wait): ... to here.
1822
049a8570
SDJ
18232016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
1824
1825 * fork-child.c (startup_inferior): Replace calls to target_resume
1826 by target_continue{,_no_signal}, depending on the case.
1827 * linux-nat.c (cleanup_target_stop): Call
1828 target_continue_no_signal instead of target_resume.
1829 * procfs.c (procfs_wait): Likewise.
1830 * target.c (target_continue): New function.
1831 * target/target.h (target_continue): New prototype.
1832
f99bd5f2
YQ
18332016-08-31 Yao Qi <yao.qi@linaro.org>
1834
1835 * record-full.c (record_full_insert_breakpoint): Fix typo.
1836
5af962df
AA
18372016-08-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1838
1839 * thread.c (tp_array_compar): Insert missing parentheses.
1840
ae68ff9f
AA
18412016-08-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
1842
1843 * xtensa-tdep.h (XTENSA_GDBARCH_TDEP_INSTANTIATE): Replace
1844 designated initializer list by plain initializer list, for C++
1845 compliance.
1846
754653a7
AZ
18472016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1848
1849 * aarch64-linux-nat.c (ps_get_thread_area): Remove const from
1850 struct ps_prochandle.
1851 * amd64-linux-nat.c (ps_get_thread_area): Likewise.
1852 * arm-linux-nat.c (ps_get_thread_area): Likewise.
1853 * gdb_proc_service.h (ps_get_thread_area): Likewise.
1854 * i386-linux-nat.c (ps_get_thread_area): Likewise.
1855 * m68klinux-nat.c (ps_get_thread_area): Likewise.
1856 * mips-linux-nat.c (ps_get_thread_area): Likewise.
1857 * nat/aarch64-linux.c (aarch64_ps_get_thread_area): Likewise.
1858 * nat/aarch64-linux.h (aarch64_ps_get_thread_area): Likewise.
1859 * xtensa-linux-nat.c (ps_get_thread_area): Likewise.
1860
0a1ddfa6
SM
18612016-08-24 Simon Marchi <simon.marchi@ericsson.com>
1862
1863 * infcmd.c (set_inferior_io_terminal): Set inferior terminal to
1864 NULL if terminal_name is an empty string.
1865 (_initialize_infcmd): Make the argument of "set inferior-tty"
1866 optional, mention it in the help doc.
1867
bdd78711
CL
18682016-08-24 Carl Love <cel@us.ibm.com>
1869
1870 * rs6000-tdep.c (rs6000_gdbarch_init): Remove call
1871 set_gdbarch_deprecated_fp_regnum() architecture
1872 initialization function.
1873
34f81801
SM
18742016-08-23 Simon Marchi <simon.marchi@ericsson.com>
1875
1876 * stack.c (parse_frame_specification): Fix typo in comment.
1877
d9de1fe3
PA
18782016-08-23 Pedro Alves <palves@redhat.com>
1879
1880 PR gdb/20494
1881 * inflow.c (our_terminal_info, initial_gdb_ttystate): Update
1882 comments.
1883 (enum gdb_has_a_terminal_flag_enum, gdb_has_a_terminal_flag):
1884 Delete.
1885 (set_initial_gdb_ttystate): Record our_terminal_info here too,
1886 instead of ...
1887 (gdb_has_a_terminal): ... here. Reimplement in terms of
1888 initial_gdb_ttystate. Make static.
1889 * terminal.h (gdb_has_a_terminal): Delete declaration.
1890 (set_initial_gdb_ttystate): Add comment.
1891 * top.c (show_interactive_mode): Use input_interactive_p instead
1892 of gdb_has_a_terminal.
1893
6bb90213
PA
18942016-08-22 Pedro Alves <palves@redhat.com>
1895
1896 PR gdb/20505
1897 * linux-tdep.c (linux_vsyscall_range_raw): For core inferiors,
1898 find the vDSO's start address with AT_SYSINFO_EHDR too, and
1899 determine the vDSO's size by finding the PT_LOAD segment that
1900 matches AT_SYSINFO_EHDR.
1901
03bcd739
YQ
19022016-08-19 Yao Qi <yao.qi@linaro.org>
1903
1904 * aarch64-tdep.c (aarch64_analyze_prologue): Handle register
1905 based STP instruction.
1906
bbfa2517
YQ
19072016-08-19 Yao Qi <yao.qi@linaro.org>
1908
1909 * completer.c (linespec_location_completer): Make file_to_match
1910 null-terminated.
1911
f077e978
PA
19122016-08-19 Pedro Alves <palves@redhat.com>
1913
1914 * amd64-tdep.c (amd64_relocate_instruction) <callq>: Handle return
1915 addresses over 0x7fffffff.
1916
46da9242
CL
19172016-08-18 Carl Love <cel@us.ibm.com>
1918
1919 * MAINTANERS Write After Approval): Add "Carl Love".
1920
d44c67f3
EBM
19212016-08-18 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1922
1923 * rs6000-tdep.c (ppc_process_record_op31): Handle HTM instructions.
1924
eb2332d7
SM
19252016-08-17 Simon Marchi <simon.marchi@ericsson.com>
1926
1927 * inferior.c (remove_inferior_command): Fix error message.
1928
9b19e390
SM
19292016-08-17 Simon Marchi <simon.marchi@ericsson.com>
1930
1931 * inferior.c (exit_inferior_1): Remove comment.
1932
31925464
MW
19332016-08-15 Matthew Wahab <matthew.wahab@arm.com>
1934
1935 PR gdb/20457
1936 * gdb_proc_service.h: Add an include of gregset.h
1937 [!HAVE_PROC_SERVICE_H]: Remove the include of gregset.h.
1938
b31f9478
YQ
19392016-08-15 Yao Qi <yao.qi@linaro.org>
1940
1941 * location.c (explicit_location_lex_one): Compare the return
1942 value of strncmp with zero. Don't check (*inp)[9]. Increment
1943 *inp by 8.
1944
39b22471
PA
19452016-08-11 Pedro Alves <palves@redhat.com>
1946
1947 PR gdb/20413
1948 * nat/linux-ptrace.c: Include <sys/procfs.h> instead of
1949 "gregset.h".
1950
01d3dedf
PA
19512016-08-10 Pedro Alves <palves@redhat.com>
1952
1953 PR gdb/19187
1954 * record-full.c (record_full_remove_breakpoint): Don't remove the
1955 breakpoint from the record_full_breakpoints VEC if we're detaching
1956 the breakpoint from a fork child.
1957
73971819
PA
19582016-08-10 Pedro Alves <palves@redhat.com>
1959
1960 PR gdb/19187
1961 * break-catch-sig.c (signal_catchpoint_remove_location): Adjust
1962 interface.
1963 * break-catch-syscall.c (remove_catch_syscall):
1964 * breakpoint.c (enum remove_bp_reason): Moved to breakpoint.h.
1965 (remove_breakpoint_1): Pass 'reason' down.
1966 (remove_catch_fork, remove_catch_vfork, remove_catch_solib)
1967 (remove_catch_exec, remove_watchpoint, remove_masked_watchpoint)
1968 (base_breakpoint_remove_location, bkpt_remove_location)
1969 (bkpt_probe_remove_location, bkpt_probe_remove_location): Adjust
1970 interface.
1971 * breakpoint.h (enum remove_bp_reason): Moved here from
1972 breakpoint.c.
1973 (struct breakpoint_ops) <remove_location>: Add 'reason' parameter.
1974 * corelow.c (core_remove_breakpoint): New function.
1975 (init_core_ops): Install it as to_remove_breakpoint method.
1976 * exec.c (exec_remove_breakpoint): New function.
1977 (init_exec_ops): Install it as to_remove_breakpoint method.
1978 * mem-break.c (memory_remove_breakpoint): Adjust interface.
1979 * record-btrace.c (record_btrace_remove_breakpoint): Adjust
1980 interface.
1981 * record-full.c (record_full_remove_breakpoint)
1982 (record_full_core_remove_breakpoint): Adjust interface.
1983 * remote.c (remote_remove_breakpoint): Adjust interface.
1984 * target-debug.h (target_debug_print_enum_remove_bp_reason): New
1985 macro.
1986 * target-delegates.c: Regenerate.
1987 * target.c (target_remove_breakpoint): Add 'reason' parameter.
1988 * target.h (struct target_ops) <to_remove_breakpoint>: Add
1989 'reason' parameter.
1990 (target_remove_breakpoint, memory_remove_breakpoint): Add 'reason'
1991 parameter.
1992
b2b6a7da
PA
19932016-08-10 Pedro Alves <palves@redhat.com>
1994
1995 PR gdb/19187
1996 * breakpoint.c (insertion_state_t): Delete.
1997 (enum remove_bp_reason): New.
1998 (detach_breakpoints, remove_breakpoint_1, remove_breakpoint):
1999 Adjust to use enum remove_bp_reason instead of insertion_state_t.
2000
834c0d03
PA
20012016-08-10 Pedro Alves <palves@redhat.com>
2002
2003 PR gdb/19187
2004 * breakpoint.c (remove_breakpoint): Remove 'is' parameter and
2005 always pass mark_uninserted to remove_breakpoint_1.
2006 (insert_breakpoint_locations, remove_breakpoints)
2007 (remove_breakpoints_pid, update_global_location_list): Update
2008 callers.
2009
24cdb46e
РИ
20102016-08-10 Руслан Ижбулатов <lrn1986@gmail.com>
2011 Pedro Alves <palves@redhat.com>
2012
2013 * windows-nat.c (MS_VC_EXCEPTION): New define.
2014 (handle_exception_result): New enum.
2015 (windows_delete_thread): Free the thread's name.
2016 (handle_exception): Handle MS_VC_EXCEPTION.
2017 (get_windows_debug_event): Handle HANDLE_EXCEPTION_IGNORED.
2018 (windows_thread_name): New function.
2019 (windows_target): Install it as to_thread_name method.
2020 * NEWS: Mention the thread naming support on MS-Windows.
2021
669f9429
PA
20222016-08-10 Pedro Alves <palves@redhat.com>
2023
2024 * common/signals-state-save-restore.c
2025 (save_original_signals_state, restore_original_signals_state):
2026 Wrap perror_with_name arguments with '()'.
2027
3eb7562a
PA
20282016-08-09 Pedro Alves <palves@redhat.com>
2029
2030 PR gdb/20418
2031 * event-top.c (ui_register_input_event_handler)
2032 (ui_unregister_input_event_handler): New functions.
2033 (async_enable_stdin): Register input in the event loop.
2034 (async_disable_stdin): Unregister input from the event loop.
2035 (gdb_setup_readline): Register input in the event loop.
2036 * infrun.c (check_curr_ui_sync_execution_done): Register input in
2037 the event loop.
2038 * target.c (target_terminal_inferior): Don't unregister input from
2039 the event loop.
2040 (target_terminal_ours): Don't register input in the event loop.
2041 * target.h (target_terminal_inferior)
2042 (target_terminal_ours_for_output, target_terminal_ours): Update
2043 comments.
2044 * top.h (ui_register_input_event_handler)
2045 (ui_unregister_input_event_handler): New declarations.
2046 * utils.c (ui_unregister_input_event_handler_cleanup)
2047 (prepare_to_handle_input): New functions.
2048 (defaulted_query, prompt_for_continue): Use
2049 prepare_to_handle_input.
2050
80614914
PA
20512016-08-09 Pedro Alves <palves@redhat.com>
2052
2053 PR mi/20431
2054 * mi/mi-main.c (mi_execute_command): Enable input and set prompt
2055 state to PROMPT_NEEDED.
2056
f348d89a
PA
20572016-08-09 Pedro Alves <palves@redhat.com>
2058
2059 PR gdb/18653
2060 * Makefile.in (SFILES): Add
2061 common/signals-state-save-restore.c.
2062 (HFILES_NO_SRCDIR): Add common/signals-state-save-restore.h.
2063 (COMMON_OBS): Add signals-state-save-restore.o.
2064 (signals-state-save-restore.o): New rule.
2065 * configure: Regenerate.
2066 * fork-child.c: Include "signals-state-save-restore.h".
2067 (fork_inferior): Call restore_original_signals_state.
2068 * main.c: Include "signals-state-save-restore.h".
2069 (captured_main): Call save_original_signals_state.
2070 * common/common.m4: Add sigaction to AC_CHECK_FUNCS checks.
2071 * common/signals-state-save-restore.c: New file.
2072 * common/signals-state-save-restore.h: New file.
2073
e5ca03b4
PA
20742016-08-09 Pedro Alves <palves@redhat.com>
2075
2076 * value.c (unpack_value_bitfield): Skip unpacking if the parent
2077 has no contents buffer to begin with.
2078
6a17ca31
PA
20792016-08-08 Pedro Alves <palves@redhat.com>
2080
2081 * features/i386/amd64-avx-mpx-linux.c: Regenerate.
2082 * features/i386/amd64-avx-mpx.c: Regenerate.
2083 * features/i386/i386-avx-mpx-linux.c: Regenerate.
2084 * features/i386/i386-avx-mpx.c: Regenerate.
2085
c632e428
SM
20862016-08-05 Simon Marchi <simon.marchi@ericsson.com>
2087
2088 * event-top.h (cli_command_loop): Remove.
2089
3906a8fc
PA
20902016-08-05 Pedro Alves <palves@redhat.com>
2091
2092 PR remote/20398
2093 * remote-fileio.c (remote_fileio_quit_handler): Check the quit
2094 flag before calling quit.
2095
69ffd7f2
PA
20962016-08-05 Pedro Alves <palves@redhat.com>
2097
2098 * NEWS: Mention that GDB and GDBserver build with a C++ compiler
2099 by default.
2100
1baf5149
PA
21012016-08-05 Pedro Alves <palves@redhat.com>
2102
2103 * build-with-cxx.m4: Change help string to be in terms of
2104 --disable-build-with-cxx.
2105 * configure: Regenerate.
2106
6f67973b
YQ
21072016-08-04 Yao Qi <yao.qi@linaro.org>
2108
2109 * aarch64-linux-nat.c (tdesc_arm_with_vfpv3): Remove the
2110 declaration.
2111 (aarch64_linux_read_description): Remove code on getting
2112 auxv and select target description on it. Select target
2113 description by the result of NT_ARM_VFP ptrace request.
2114
282a0691
TT
21152016-08-03 Tom Tromey <tom@tromey.com>
2116
2117 PR python/18565:
2118 * python/py-frame.c (frapy_function): Use find_frame_funname.
2119
d10153cf
TT
21202016-08-03 Tom Tromey <tom@tromey.com>
2121
2122 * stack.c (find_frame_funname): Avoid any possible leak in case
2123 cp_remove_params can throw.
2124
8d2a0a14
TT
21252016-08-03 Tom Tromey <tom@tromey.com>
2126
2127 * NEWS: Mention new Python breakpoint events.
2128
33541b2e
TT
21292016-08-02 Tom Tromey <tom@tromey.com>
2130
2131 * MAINTAINERS (Core): Add self as Rust maintainer.
2132
751b375e
JB
21332016-08-01 Joel Brobecker <brobecker@adacore.com>
2134
2135 * NEWS: Create a new section for the next release branch.
2136 Rename the section of the current branch, now that it has
2137 been cut.
2138
b2bd7787
JB
21392016-08-01 Joel Brobecker <brobecker@adacore.com>
2140
2141 GDB 7.12 branch created (41bfcd638a4e0e48b96ce4de2845372dea481322):
2142 * version.in: Bump version to 7.12.50.DATE-git.
2143
293acfae
AM
21442016-07-27 Alan Modra <amodra@gmail.com>
2145
2146 * amd64-darwin-tdep.c: Don't include libbfd.h.
2147 * i386-darwin-tdep.c: Likewise.
2148 * rs6000-nat.c: Likewise.
2149 * rs6000-tdep.c: Likewise.
2150
0b31a4bc
TT
21512016-07-26 Tom Tromey <tom@tromey.com>
2152
2153 * symtab.c (register_symbol_computed_impl): Update.
2154 PR python/20190:
2155 * value.h (symbol_read_needs): Declare.
2156 (symbol_read_needs_frame): Add comment.
2157 * symtab.h (struct symbol_computed_ops) <read_variable>: Update
2158 comment.
2159 <get_symbol_read_needs>: Rename. Change return type.
2160 * findvar.c (symbol_read_needs): New function.
2161 (symbol_read_needs_frame): Rewrite.
2162 (default_read_var_value): Use symbol_read_needs.
2163 * dwarf2loc.c (struct symbol_needs_baton): Rename.
2164 <needs>: Renamed from needs_frame. Changed type.
2165 (needs_frame_read_addr_from_reg, symbol_needs_get_reg_value)
2166 (symbol_needs_read_mem, symbol_needs_frame_base)
2167 (symbol_needs_frame_cfa, symbol_needs_tls_address)
2168 (symbol_needs_dwarf_call): Rename.
2169 (needs_dwarf_reg_entry_value): Update.
2170 (symbol_needs_ctx_funcs, dwarf2_loc_desc_get_symbol_read_needs):
2171 Rename and update.
2172 (locexpr_get_symbol_read_needs, loclist_symbol_needs): Likewise.
2173 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Update.
2174 * defs.h (enum symbol_needs_kind): New.
2175
40c31709
PA
21762016-07-26 Pedro Alves <palves@redhat.com>
2177
2178 * nat/linux-ptrace.c: Include "gregset.h".
2179 (linux_ptrace_test_ret_to_nx): Use PTRACE_GETREGS instead of
2180 PTRACE_PEEKUSER.
2181
9cf12d57
PA
21822016-07-26 Pedro Alves <palves@redhat.com>
2183
2184 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Rename 'native'
2185 parameter to 'ptrace'.
2186 * nat/amd64-linux-siginfo.c (GDB_SI_SIZE): New define.
2187 (nat_uptr_t): New an unsigned long.
2188 (nat_clock_t): Remove attribute __aligned__.
2189 (struct nat_timeval): Delete.
2190 (nat_siginfo_t): Remove attribute __aligned__.
2191 (ptrace_siginfo_t): Define.
2192 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
2193 (compat_x32_siginfo_from_siginfo)
2194 (siginfo_from_compat_x32_siginfo): Make 'from' parameter const.
2195 Convert through a ptrace_siginfo_t instead of a nat_siginfo_t.
2196 Remove casts.
2197 (amd64_linux_siginfo_fixup_common): Rename 'native' parameter to
2198 'ptrace'. Remove static assertions.
2199 (top level): New static assertions.
2200
8194e927
SM
22012016-07-25 Simon Marchi <simon.marchi@ericsson.com>
2202
2203 * top.h (make_delete_ui_cleanup): New declaration.
2204 * top.c (delete_ui_cleanup): New function.
2205 (make_delete_ui_cleanup): New function.
2206 (new_ui_command): Create restore_ui cleanup earlier, create a
2207 delete_ui cleanup and discard it on success.
2208
0e1a6a51
PA
22092016-07-25 Pedro Alves <palves@redhat.com>
2210 Jan Kratochvil <jan.kratochvil@redhat.com>
2211
2212 * nat/linux-procfs.c (parse_proc_status_state): Handle lowercase
2213 't'.
2214
d617208b
PA
22152016-07-25 Pedro Alves <palves@redhat.com>
2216
2217 * nat/linux-procfs.c (enum proc_state): New enum.
2218 (parse_proc_status_state): New function.
2219 (linux_proc_pid_get_state): Replace output string buffer parameter
2220 with an output proc_state parameter. Use parse_proc_status_state.
2221 (linux_proc_pid_is_gone): Adjust to use proc_state values.
2222 (linux_proc_pid_has_state): Change type of 'state' parameter; now
2223 an enum proc_state. Adjust to linux_proc_pid_get_state interface
2224 change.
2225 (linux_proc_pid_is_stopped)
2226 (linux_proc_pid_is_trace_stopped_nowarn)
2227 (linux_proc_pid_is_zombie_maybe_warn): Adjust to
2228 linux_proc_pid_get_state interface change.
2229
3a1518e4
TW
22302016-07-25 Tim Wiederhake <tim.wiederhake@intel.com>
2231
2232 * MAINTAINERS (Write After Approval): Add Tim Wiederhake
2233
c0272db5
TW
22342016-07-25 Tim Wiederhake <tim.wiederhake@intel.com>
2235
2236 * NEWS: Resume btrace on reconnect.
2237 * record-btrace.c: Added record-btrace.h include.
2238 (record_btrace_open): Split into this and ...
2239 (record_btrace_push_target): ... this.
2240 (record_btrace_disconnect): New function.
2241 (init_record_btrace_ops): Use record_btrace_disconnect.
2242 * record-btrace.h: New file.
2243 * remote.c: Added record-btrace.h include.
2244 (remote_start_remote): Check recording status.
2245 (remote_btrace_maybe_reopen): New function.
2246
e3487908
GKB
22472016-07-23 Gabriel Krisman Bertazi <gabriel@krisman.be>
2248
2249 * xml-syscall.c (get_syscalls_by_group): New.
2250 (get_syscall_group_names): New.
2251 (struct syscall_group_desc): New structure to store group data.
2252 (struct syscalls_info): Include field to store the group list.
2253 (sysinfo_free_syscall_group_desc): New.
2254 (free_syscalls_info): Free group list.
2255 (syscall_group_create_syscall_group_desc): New.
2256 (syscall_group_add_syscall): New.
2257 (syscall_create_syscall_desc): Add syscall to its groups.
2258 (syscall_start_syscall): Load group attribute.
2259 (syscall_group_get_group_by_name): New.
2260 (xml_list_syscalls_by_group): New.
2261 (xml_list_of_groups): New.
2262 * xml-syscall.h (get_syscalls_by_group): Export function
2263 to retrieve a list of syscalls filtered by the group name.
2264 (get_syscall_group_names): Export function to retrieve the list
2265 of syscall groups.
2266 * break-catch-syscall.c (catch_syscall_split_args): Verify if
2267 argument is a syscall group and expand it to a list of syscalls
2268 when creating catchpoints.
2269 (catch_syscall_completer): Add word completion for system call
2270 groups.
2271 * configure.ac: Include dependency for xsltproc when building
2272 in maintainer-mode.
2273 * break-catch-syscall.c (_initialize_breakpoint): Update catch
2274 syscall command documentation.
2275 * NEWS: Include section about catching groups of syscalls.
2276 * configure: Regenerate.
2277 * data-directory/Makefile.in: Generate syscall xml when building
2278 in maintainer mode.
2279 * syscalls/gdb-syscalls.dtd: Include group attribute to the
2280 syscall element.
2281 * syscalls/apply-defaults.xsl: New.
2282 * syscalls/linux-defaults.xml.in: New.
2283 * syscalls/aarch64-linux.xml: Rename to aarch64-linux.xml.in.
2284 * syscalls/amd64-linux.xml: Rename to amd64-linux.xml.in.
2285 * syscalls/arm-linux.xml: Rename to arm-linux.xml.in.
2286 * syscalls/bfin-linux.xml: Rename to bfin-linux.xml.in.
2287 * syscalls/i386-linux.xml: Rename to i386-linux.xml.in.
2288 * syscalls/mips-n32-linux.xml: Rename to mips-n32-linux.xml.in.
2289 * syscalls/mips-n64-linux.xml: Rename to mips-n64-linux.xml.in.
2290 * syscalls/mips-o32-linux.xml: Rename to mips-o32-linux.xml.in.
2291 * syscalls/ppc-linux.xml: Rename to ppc-linux.xml.in.
2292 * syscalls/ppc64-linux.xml: Rename to ppc64-linux.xml.in.
2293 * syscalls/s390-linux.xml: Rename to s390-linux.xml.in.
2294 * syscalls/s390x-linux.xml: Rename to s390x-linux.xml.in.
2295 * syscalls/sparc-linux.xml: Rename to sparc-linux.xml.in.
2296 * syscalls/sparc64-linux.xml: Rename to sparc64-linux.xml.in.
2297 * syscalls/aarch64-linux.xml: Regenerate.
2298 * syscalls/amd64-linux.xml: Regenerate.
2299 * syscalls/arm-linux.xml: Regenerate.
2300 * syscalls/i386-linux.xml: Regenerate.
2301 * syscalls/mips-n32-linux.xml: Regenerate.
2302 * syscalls/mips-n64-linux.xml: Regenerate.
2303 * syscalls/mips-o32-linux.xml: Regenerate.
2304 * syscalls/ppc-linux.xml: Regenerate.
2305 * syscalls/ppc64-linux.xml: Regenerate.
2306 * syscalls/s390-linux.xml: Regenerate.
2307 * syscalls/s390x-linux.xml: Regenerate.
2308 * syscalls/sparc-linux.xml: Regenerate.
2309 * syscalls/sparc64-linux.xml: Regenerate.
2310
49ecef2a
AP
23112016-07-23 Andrew Pinski <apinski@cavium.com>
2312
2313 * nat/aarch64-linux-hw-point.c
2314 (aarch64_linux_get_debug_reg_capacity): Handle
2315 ARMv8.1 and ARMv8.2 debug versions.
2316 * nat/aarch64-linux-hw-point.h
2317 (AARCH64_DEBUG_ARCH_V8_1): New define.
2318 (AARCH64_DEBUG_ARCH_V8_2): New define.
2319
463888ab
РИ
23202016-06-30 Руслан Ижбулатов <lrn1986@gmail.com>
2321
2322 PR gdb/14529
2323 * windows-nat.c (signal_event_command): New command 'signal-event'
2324 for W32 JIT debug support.
2325 * NEWS: Add an entry about the new 'signal-event' command.
2326
e98c9e7c
TT
23272016-07-22 Tom Tromey <tom@tromey.com>
2328
2329 PR rust/20162:
2330 * dwarf2read.c (scan_partial_symbols) <DW_TAG_structure_type>:
2331 Call scan_partial_symbols for children when reading a Rust CU.
2332 (dwarf2_physname): Ignore invalid DW_AT_linkage_name generated by
2333 rustc.
2334 (process_structure_scope) <DW_TAG_subprogram>: Call
2335 read_func_scope for Rust.
2336
eed2386e
YQ
23372016-07-22 Yao Qi <yao.qi@linaro.org>
2338
2339 * ctf.c (ctf_traceframe_info): Call bt_ctf_get_uint64 rather than
2340 bt_ctf_get_int64.
2341
12df5c00
TT
23422016-07-21 Tom Tromey <tom@tromey.com>
2343
2344 * rust-lang.c (rust_tuple_struct_type_p): Return false for empty
2345 structs.
2346 * rust-exp.y (struct_expr_list): Allow empty elements.
2347
305450ed
TT
23482016-07-21 Tom Tromey <tom@tromey.com>
2349
2350 * configure: Rebuild.
2351 * warning.m4 (AM_GDB_WARNINGS) <build_warnings>: Add
2352 -Wunused-but-set-parameter, -Wunused-but-set-variable.
2353
f515a1d6
PA
23542016-07-21 Pedro Alves <palves@redhat.com>
2355
2356 * go32-nat.c (go32_create_inferior): Add cast.
2357 * ser-go32.c (dos_noop): Delete.
2358 (dos_flush_output, dos_setparity, dos_drain_output): New
2359 functions.
2360 (dos_write): Add cast.
2361 (dos_ops): Use dos_flush_output, dos_setparity and
2362 dos_drain_output.
2363 * top.c (do_chdir_cleanup): Add cast.
2364
c25b7cce
PA
23652016-07-21 Pedro Alves <palves@redhat.com>
2366
2367 * windows-nat.c (handle_exception): Remove "th".
2368
e3821cca
PA
23692016-07-21 Pedro Alves <palves@redhat.com>
2370
2371 * varobj.c (varobj_value_get_print_value): Move "gdbarch" to block
2372 scope that uses it.
2373
dbaed385
JB
23742016-07-20 John Baldwin <jhb@FreeBSD.org>
2375
2376 * fbsd-nat.c (fbsd_enable_proc_events): Enable "PTRACE_VFORK"
2377 events.
2378 (fbsd_pending_vfork_done): Only define if "PTRACE_VFORK" is not
2379 defined.
2380 (fbsd_add_vfork_done): Likewise.
2381 (fbsd_is_vfork_done_pending): Likewise.
2382 (fbsd_next_vfork_done): Likewise.
2383 (fbsd_resume): Only ignore pending vfork done events if
2384 "PTRACE_VFORK" is not defined.
2385 (fbsd_wait): Only look for pending vfork done events if
2386 "PTRACE_VFORK" is not defined.
2387 [PTRACE_VFORK]: Handle "PL_FLAG_VFORKED" and "PL_FLAG_VFORK_DONE"
2388 events.
2389 (fbsd_follow_fork): Only fake a vfork done event if "PTRACE_VFORK"
2390 is not defined.
2391
5fa14c6b
JB
23922016-07-20 John Baldwin <jhb@FreeBSD.org>
2393
2394 * fbsd-nat.c (fbsd_wait): Use "fbsd_enable_proc_events" on
2395 new child processes.
2396
da95a26c
JB
23972016-07-20 John Baldwin <jhb@FreeBSD.org>
2398
2399 * fbsd-nat.c (fbsd_enable_lwp_events): Remove function.
2400 (fbsd_enable_proc_events): New function.
2401 (fbsd_enable_follow_fork): Remove function.
2402 (fbsd_post_startup_inferior): Use "fbsd_enable_proc_events".
2403 (fbsd_post_attach): Likewise.
2404
bc7b765a
JB
24052016-07-15 John Baldwin <jhb@FreeBSD.org>
2406
2407 * common/signals.c (gdb_signal_from_host): Handle SIGLIBRT.
2408 (do_gdb_signal_to_host): Likewise.
2409 * infrun.c (_initialize_infrun): Pass GDB_SIGNAL_LIBRT through to
2410 programs.
2411 * proc-events.c (signal_table): Add entry for SIGLIBRT.
2412
7f131b39
TT
24132016-07-14 Tom Tromey <tom@tromey.com>
2414
2415 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Add missing
2416 newline.
2417
78cc6c2d
TT
24182016-07-14 Tom Tromey <tom@tromey.com>
2419
2420 * mips-tdep.c (micromips_scan_prologue): Remove "frame_addr".
2421 (mips_o32_push_dummy_call): Remove "stack_used_p".
2422 * aarch64-tdep.c (aarch64_record_data_proc_imm): Remove
2423 "insn_bit28".
2424 * rust-lang.c (rust_print_type): Remove "len".
2425 * rust-exp.y (super_name): Remove "current_len".
2426 * python/py-framefilter.c (py_print_type): Remove "type".
2427 * mdebugread.c (parse_partial_symbols): Remove
2428 "past_first_source_file".
2429 <N_SO>: Remove "valu", "first_so_symnum", "prev_textlow_not_set".
2430 * m2-valprint.c (m2_print_unbounded_array): Remove
2431 "content_type".
2432 (m2_val_print): Remove "i".
2433 * linespec.c (unexpected_linespec_error): Remove "cleanup".
2434 * f-valprint.c (f_val_print): Remove "i".
2435 * elfread.c (elf_symtab_read): Remove "offset".
2436 * dwarf2-frame.c (dwarf2_fetch_cfa_info): Remove "addr_size".
2437 * jit.c (jit_dealloc_cache): Remove "i" and "frame_arch".
2438
ac298888
TT
24392016-07-14 Tom Tromey <tom@tromey.com>
2440
2441 * arch-utils.c (default_skip_permanent_breakpoint): Remove
2442 "bp_insn".
2443 * disasm.c (do_assembly_only): Remove "num_displayed".
2444 * dwarf2read.c (read_abbrev_offset): Remove "length".
2445 (dwarf_decode_macro_bytes) <DW_MACINFO_vendor_ext>: Remove
2446 "constant".
2447 * m32c-tdep.c (make_regs): Remove "r2hl", "r3hl", and "intbhl".
2448 * microblaze-tdep.c (microblaze_frame_cache): Remove "func".
2449 * tracefile.c (trace_save): Remove "status".
2450
764c99c1
TT
24512016-07-14 Tom Tromey <tom@tromey.com>
2452
2453 * symfile.c (simple_overlay_update_1): Remove initialization
2454 of "size", and commented-out code.
2455 (simple_overlay_update): Likewise.
2456
cecc8b99
TT
24572016-07-14 Tom Tromey <tom@tromey.com>
2458
2459 * tui/tui-winsource.c (tui_show_source_line): Use getcurx.
2460 * tui/tui-io.c (tui_puts): Use getcurx.
2461 (tui_redisplay_readline): Likewise.
2462
821fc4ae
TT
24632016-07-14 Tom Tromey <tom@tromey.com>
2464
2465 * inflow.c (child_terminal_ours_1): Use ATTRIBUTE_UNUSED.
2466
537d9b85
TT
24672016-07-14 Tom Tromey <tom@tromey.com>
2468
2469 * corefile.c (reopen_exec_file): Only examine st.st_mtime if stat
2470 succeeded.
2471
dac790e1
TT
24722016-07-13 Tom Tromey <tom@tromey.com>
2473
2474 PR python/15620, PR python/18620:
2475 * python/py-evts.c (gdbpy_initialize_py_events): Call
2476 add_new_registry for new events.
2477 * python/py-events.h (events_object) <breakpoint_created,
2478 breakpoint_deleted, breakpoint_modified>: New fields.
2479 * python/py-breakpoint.c (gdbpy_breakpoint_created): Emit the
2480 breakpoint changed event.
2481 (gdbpy_breakpoint_deleted): Emit the breakpoint deleted event.
2482 (gdbpy_breakpoint_modified): New function.
2483 (gdbpy_initialize_breakpoints): Attach to the breakpoint modified
2484 observer.
2485
93daf339
TT
24862016-07-13 Tom Tromey <tom@tromey.com>
2487
2488 PR python/17698:
2489 * NEWS: Update.
2490 * python/py-breakpoint.c (bppy_get_pending): New function.
2491 (breakpoint_object_getset): Add entry for "pending".
2492 * breakpoint.h (pending_breakpoint_p): Declare.
2493 * breakpoint.c (pending_breakpoint_p): New function.
2494
43684a7b
TT
24952016-07-13 Tom Tromey <tom@tromey.com>
2496
2497 * python/py-breakpoint.c (bppy_get_visibility)
2498 (gdbpy_breakpoint_created): Use user_breakpoint_p.
2499
6571a381
TT
25002016-07-13 Tom Tromey <tom@tromey.com>
2501
2502 PR cli/18053:
2503 * jit.c (jit_reader_load_command): Use tilde_expand.
2504 (_initialize_jit): Fix help for jit-reader-unload. Set completer
2505 for new commands.
2506
e0f3fd7c
TT
25072016-07-12 Tom Tromey <tom@tromey.com>
2508
2509 PR python/19293:
2510 * python/lib/gdb/command/unwinders.py (do_enable_unwinder): Call
2511 gdb.invalidate_cached_frames.
2512 * python/lib/gdb/unwinder.py (register_unwinder): Call
2513 gdb.invalidate_cached_frames.
2514 * python/python.c (gdbpy_invalidate_cached_frames): New function.
2515 (python_GdbMethods): Add entry for invalidate_cached_frames.
2516
41c977aa
WT
25172016-07-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
2518
2519 * cp-namespace.c (cp_lookup_bare_symbol): Initialize
2520 lang_this.symbol.
2521
4f19a0e6
WT
25222016-07-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
2523
2524 * cp-namespace.c (cp_lookup_bare_symbol): Use language passed as
2525 parameter to look for the symbol "this".
2526
2527
fb36c6bf
JB
25282016-07-06 John Baldwin <jhb@FreeBSD.org>
2529
2530 * h8300-tdep.c (h8300_print_register): Remove extraneous parentheses.
2531
db297a65
JB
25322016-07-06 John Baldwin <jhb@FreeBSD.org>
2533
2534 * ada-lang.c (ada_unpack_from_contents): Use unsigned constants with
2535 left shifts.
2536
9ca10714
JB
25372016-07-06 John Baldwin <jhb@FreeBSD.org>
2538
2539 * sh64-tdep.c (sh64_analyze_prologue): Set "uses_fp" when setting
2540 the MEDIA_FP_REGNUM register.
2541
d66ff635
JB
25422016-07-06 John Baldwin <jhb@FreeBSD.org>
2543
2544 * score-tdep.c (score7_malloc_and_get_memblock): Remove check for
2545 negative size.
2546
ee950322
JB
25472016-07-06 John Baldwin <jhb@FreeBSD.org>
2548
2549 * fbsd-nat.c (fbsd_is_vfork_done_pending): Fix return type.
2550
1040b979
YQ
25512016-07-06 Yao Qi <yao.qi@linaro.org>
2552
2553 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Don't call
2554 arm_vfp_cprc_sub_candidate for static field.
2555
42d94011
MG
25562016-07-06 Manish Goregaokar <manish@mozilla.com>
2557
2558 * rust-lang.c (rust_subscript): Allow subscripting pointers
2559
13cdc2af
JK
25602016-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2561
2562 * configure: Regenerate.
2563 * configure.ac (HAVE_LIBBABELTRACE): Fix pos variable dereference.
2564
09c98b44
DB
25652016-07-01 Don Breazeal <donb@codesourcery.com>
2566
2567 * remote.c (remote_get_memory_xfer_limit): New function.
2568 * target-delegates.c: Regenerate.
2569 * target.c (memory_xfer_partial): Call
2570 target_ops.to_get_memory_xfer_limit.
2571 * target.h (struct target_ops) <to_get_memory_xfer_limit>: New
2572 member.
2573
2c5c2a33
JB
25742016-07-01 John Baldwin <jhb@FreeBSD.org>
2575
2576 * fbsd-nat.c (struct fbsd_fork_child_info): Rename to ...
2577 (struct fbsd_fork_info): ... this.
2578 (struct fbsd_fork_info) <child>: Rename to ...
2579 (struct fbsd_fork_info) <ptid>: ... this.
2580 (fbsd_pending_children): Update type.
2581 (fbsd_remember_child): Update type and field name.
2582 (fbsd_is_child_pending): Likewise.
2583 (fbsd_pending_vfork_done): New variable.
2584 (fbsd_is_vfork_done_pending): New function.
2585 (fbsd_next_vfork_done): New function.
2586 (fbsd_resume): Don't resume processes with a pending vfork done
2587 event.
2588 (fbsd_wait): Report pending vfork done events.
2589 (fbsd_follow_fork): Delay and record a pending vfork done event
2590 for a vfork parent when detaching the child.
2591
8607ea63
JB
25922016-07-01 John Baldwin <jhb@FreeBSD.org>
2593
2594 * fbsd-nat.c (super_resume): Move earlier next to "super_wait".
2595 (resume_one_thread_cb): Move below fork following helper code.
2596 (resume_all_threads_cb): Likewise.
2597 (fbsd_resume): Likewise.
2598
bb2a62e6
JB
25992016-07-01 John Baldwin <jhb@FreeBSD.org>
2600
2601 * fbsd-nat.c (fbsd_follow_fork): Only detach child if
2602 "detach_fork" is true.
2603
5077bfff
JB
26042016-07-01 John Baldwin <jhb@FreeBSD.org>
2605
2606 * x86bsd-nat.c: Include 'gdbthread.h'.
2607 (x86bsd_dr_set): Set debug registers on all threads belonging to
2608 the current inferior.
2609
a3405d12
JB
26102016-07-01 John Baldwin <jhb@FreeBSD.org>
2611
2612 * Makefile.in [HFILES_NO_SRCDIR]: Replace 'amd64bsd-nat.h' with
2613 'x86bsd-nat.h'.
2614 * amd64bsd-nat.c: Include 'x86bsd-nat.h' instead of
2615 'amd64bsd-nat.h'.
2616 (amd64bsd_xsave_len): Rename and move to x86bsd-nat.c.
2617 (amd64bsd_fetch_inferior_registers): Replace 'amd64bsd_xsave_len'
2618 with 'x86bsd_xsave_len'.
2619 (amd64bsd_store_inferior_registers): Likewise.
2620 (amd64bsd_target): Inherit from x86bsd_target.
2621 (amd64bsd_dr_get): Rename and move to x86bsd-nat.c.
2622 (amd64bsd_dr_set): Likewise.
2623 (amd64bsd_dr_set_control): Likewise.
2624 (amd64bsd_dr_set_addr): Likewise.
2625 (amd64bsd_dr_get_addr): Likewise.
2626 (amd64bsd_dr_get_status): Likewise.
2627 (amd64bsd_dr_get_control): Likewise.
2628 * amd64fbsd-nat.c: Include 'x86bsd-nat.h' instead of
2629 'amd64bsd-nat.h'.
2630 (super_mourn_inferior): Move to x86bsd-nat.c.
2631 (amd64fbsd_mourn_inferior): Rename and move to x86bsd-nat.c.
2632 (amd64fbsd_read_description): Replace 'amd64bsd_xsave_len' with
2633 'x86bsd_xsave_len'.
2634 (_initialize_amd64fbsd_nat): Remove x86 watchpoint setup and
2635 mourn_inferior' target op.
2636 * config/i386/fbsd.mh (NATDEPFILES): Add x86bsd-nat.o.
2637 * config/i386/fbsd64.mh: Likewise.
2638 * config/i386/nbsd64.mh: Likewise.
2639 * config/i386/nbsdelf.mh: Likewise.
2640 * config/i386/obsd.mh: Likewise.
2641 * config/i386/obsd64.mh: Likewise.
2642 * i386bsd-nat.c: Include 'x86bsd-nat.h'.
2643 (i386bsd_xsave_len): Rename and move to x86bsd-nat.c.
2644 (i386bsd_fetch_inferior_registers): Replace 'i386bsd_xsave_len'
2645 with 'x86bsd_xsave_len'.
2646 (i386bsd_store_inferior_registers): Likewise.
2647 (i386bsd_target): Inherit from x86bsd_target.
2648 (i386bsd_dr_get): Rename and move to x86bsd-nat.c.
2649 (i386bsd_dr_set): Likewise.
2650 (i386bsd_dr_set_control): Likewise.
2651 (i386bsd_dr_set_addr): Likewise.
2652 (i386bsd_dr_get_addr): Likewise.
2653 (i386bsd_dr_get_status): Likewise.
2654 (i386bsd_dr_get_control): Likewise.
2655 * i386bsd-nat.h (i386bsd_xsave_len): Remove.
2656 (i386bsd_dr_set_control): Remove.
2657 (i386bsd_dr_set_addr): Remove.
2658 (i386bsd_dr_get_addr): Remove.
2659 (i386bsd_dr_get_status): Remove.
2660 (i386bsd_dr_get_control): Remove.
2661 * i386fbsd-nat.c: Include 'x86bsd-nat.h'.
2662 (i386fbsd_read_description): Replace 'i386bsd_xsave_len' with
2663 'x86bsd_xsave_len'.
2664 (_initialize_i386fbsd_nat): Remove x86 watchpoint setup and
2665 mourn_inferior' target op.
2666 * x86bsd-nat.c: New file.
2667 * x86bsd-nat.h: New file.
2668
20aa2c60
PA
26692016-07-01 Pedro Alves <palves@redhat.com>
2670 Tom Tromey <tom@tromey.com>
2671
2672 * jit.c (jit_reader_load_command): Call reinit_frame_cache and
2673 jit_inferior_created_hook.
2674 (jit_reader_unload_command): Call reinit_frame_cache and
2675 jit_inferior_exit_hook.
2676 * jit.c (struct jit_unwind_private) <registers>: Delete field.
2677 <regcache>: New field.
2678 (jit_unwind_reg_set_impl): Set the register's value in the
2679 regcache. Free the passed-in gdb_reg_value.
2680 (jit_dealloc_cache): Adjust to free the regcache.
2681 (jit_frame_sniffer): Allocate a regcache instead of an array of
2682 gdb_reg_value pointers.
2683 (jit_frame_this_id): Adjust.
2684 (jit_frame_prev_register): Read raw registers off of the regcache
2685 instead of from the gdb_reg_value pointer array. Use
2686 gdbarch_pseudo_register_read_value to read pseudo registers.
2687 * regcache.c (regcache_raw_set_cached_value): New function,
2688 factored out from ...
2689 (regcache_raw_write): ... here.
2690 * regcache.h (regcache_raw_set_cached_value): Declare.
2691
ced2dffb
PA
26922016-07-01 Pedro Alves <palves@redhat.com>
2693 Antoine Tremblay <antoine.tremblay@ericsson.com>
2694
2695 * inf-ptrace.c (inf_ptrace_detach_success): New function, factored
2696 out from ...
2697 (inf_ptrace_detach): ... here.
2698 * inf-ptrace.h (inf_ptrace_detach_success): New declaration.
2699 * linux-nat.c (get_pending_status): Rename to ...
2700 (get_detach_signal): ... this, and return a host signal instead of
2701 filling in a wait status.
2702 (detach_one_lwp): New function, factored out from detach_callback
2703 and adjusted to handle detaching from a zombie thread.
2704 (detach_callback): Skip the leader thread.
2705 (linux_nat_detach): No longer defer to inf_ptrace_detach to detach
2706 the leader thread, nor build a signal string to pass down.
2707 Instead, use target_announce_detach, detach_one_lwp and
2708 inf_ptrace_detach_success.
2709
63000888
PA
27102016-07-01 Pedro Alves <palves@redhat.com>
2711
2712 * breakpoint.c (breakpoint_init_inferior): Discard watchpoint
2713 locations.
2714 * infcmd.c (detach_command): Call breakpoint_init_inferior.
2715
0f48b757
PA
27162016-07-01 Pedro Alves <palves@redhat.com>
2717
2718 * darwin-nat.c (darwin_detach): Use target_announce_detach.
2719 * inf-ptrace.c (inf_ptrace_detach): Likewise.
2720 * nto-procfs.c (procfs_detach): Likewise.
2721 * remote.c (remote_detach_1): Likewise.
2722 * target.c (target_announce_detach): New function.
2723 * target.h (target_announce_detach): New declaration.
2724
803b47e5
TT
27252016-06-29 Tom Tromey <tom@tromey.com>
2726
2727 PR python/20129:
2728 * python/lib/gdb/command/frame_filters.py (_do_enable_frame_filter)
2729 (SetFrameFilterPriority._set_filter_priority): Use "frame_filter",
2730 not "name".
2731
9d78f827
TT
27322016-06-29 Tom Tromey <tom@tromey.com>
2733
2734 PR gdb/17210:
2735 * target.c (free_memory_read_result_vector): Take a pointer to the
2736 VEC as an argument.
2737 (read_memory_robust): Install a cleanup for "result".
2738 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Update.
2739
a405c228
MG
27402016-06-29 Manish Goregaokar <manish@mozilla.com>
2741
9bf74fb2
MG
2742 * rust-lang.c (rust_get_disr_info): Initialize saveptr to NULL.
2743
27442016-06-29 Manish Goregaokar <manish@mozilla.com>
2745
a405c228
MG
2746 * rust-lang.c (rust_get_disr_info): Use strtok_r instead of strsep.
2747
2ac09a5b
YQ
27482016-06-28 Yao Qi <yao.qi@linaro.org>
2749
2750 * aarch64-tdep.c (aarch64_displaced_step_b): Use int64_t for
2751 variable new_offset.
2752
921d8f54
MG
27532016-06-27 Manish Goregaokar <manish@mozilla.com>
2754
6763d566 2755 * rust-lang.c (rust_print_type, rust_decorations): Print unit
0b08e1f3
PA
2756 types as "()".
2757 (rust_print_type): Omit return type for functions returning unit.
921d8f54 2758
f4952523
PMR
27592016-06-25 Pierre-Marie de Rodat <derodat@adacore.com>
2760
2761 * python/py-breakpoint.c (bppy_init): Clear bppy_pending_object
2762 when there is an error during the breakpoint creation.
2763
9e8a8ea8
TT
27642016-06-25 Tom Tromey <tom@tromey.com>
2765
2766 * rust-lang.c (rust_get_disr_info, rust_print_type): Fix
2767 formatting.
2768
b5a4b3c5
MG
27692016-06-25 Manish Goregaokar <manish@mozilla.com>
2770
2771 PR gdb/20239
2772 * rust-lang.c (rust_get_disr_info): Correctly interpret
2773 NonZero-optimized enums of arbitrary depth.
2774 (rust_print_type): Correctly print NonZero-optimized
2775 enums.
2776
6b850546
DT
27772016-06-24 David Taylor <dtaylor@emc.com>
2778
2779 PR gdb/17520 Structure offset wrong when 1/4 GB or greater.
2780 * c-lang.h: Change all parameters, variables, and struct or union
2781 members used as struct or union fie3ld offsets from int to
2782 LONGEST.
2783 * c-valprint.c: Likewise.
2784 * cp-abi.c: Likewise.
2785 * cp-abi.h: Likewise.
2786 * cp-valprint.c: Likewise.
2787 * d-valprint.c: Likewise.
2788 * dwarf2loc.c: Likewise.
2789 * eval.c: Likewise.
2790 * extension-priv.h: Likewise.
2791 * extension.c: Likewise.
2792 * extension.h: Likewise.
2793 * findvar.c: Likewise.
2794 * gdbtypes.h: Likewise.
2795 * gnu-v2-abi.c: Likewise.
2796 * gnu-v3-abi.c: Likewise.
2797 * go-valprint.c: Likewise.
2798 * guile/guile-internal.h: Likewise.
2799 * guile/scm-pretty-print.c: Likewise.
2800 * jv-valprint.c Likewise.
2801 * opencl-lang.c: Likewise.
2802 * p-lang.h: Likewise.
2803 * python/py-prettyprint.c: Likewise.
2804 * python/python-internal.h: Likewise.
2805 * spu-tdep.c: Likewise.
2806 * typeprint.c: Likewise.
2807 * valarith.c: Likewise.
2808 * valops.c: Likewise.
2809 * valprint.c: Likewise.
2810 * valprint.h: Likewise.
2811 * value.c: Likewise.
2812 * value.h: Likewise.
2813 * p-valprint.c: Likewise.
2814 * c-typeprint.c (c_type_print_base): When printing offset, use
2815 plongest, not %d.
2816 * gdbtypes.c (recursive_dump_type): Ditto.
2817
2907f414
DT
28182016-06-24 David Taylor <david.taylor@emc.com>
2819
2820 * MAINTAINERS (Write After Approval): Add David Taylor.
2821
e6cdd38e
JB
28222016-06-24 John Baldwin <jhb@FreeBSD.org>
2823
2824 * configure.ac: Check for support for system call LWP fields on
2825 FreeBSD.
2826 * config.in, configure: Rebuild.
2827 * data-directory/Makefile.in (SYSCALLS_FILES): Add freebsd.xml.
2828 * fbsd-nat.c (fbsd_wait) [HAVE_STRUCT_PTRACE_LWPINFO_PL_SYSCALL_CODE]:
2829 Report system call events.
2830 [HAVE_STRUCT_PTRACE_LWPINFO_PL_SYSCALL_CODE]
2831 (fbsd_set_syscall_catchpoint): New function.
2832 (fbsd_nat_add_target) [HAVE_STRUCT_PTRACE_LWPINFO_PL_SYSCALL_CODE]:
2833 Set "to_set_syscall_catchpoint" to "fbsd_set_syscall_catchpoint".
2834 * fbsd-tdep.c: Include xml-syscall.h
2835 (fbsd_get_syscall_number): New function.
2836 (fbsd_init_abi): Set XML system call file name.
2837 Add "get_syscall_number" gdbarch method.
2838 * syscalls/freebsd.xml: New file.
2839
82372b2f
JB
28402016-06-24 John Baldwin <jhb@FreeBSD.org>
2841
2842 * fbsd-tdep.c: Include "auxv.h".
2843 (fbsd_print_auxv_entry): New function.
2844 (fbsd_init_abi): Install gdbarch "print_auxv_entry" method.
2845
2faa3447
JB
28462016-06-24 John Baldwin <jhb@FreeBSD.org>
2847
2848 * auxv.c (fprint_auxv_entry): New function.
2849 (default_print_auxv_entry): New function.
2850 (fprint_target_auxv): Use gdbarch_print_auxv_entry.
2851 * auxv.h (enum auxv_format): New enum.
2852 (fprint_auxv_entry): Declare.
2853 (default_print_auxv_entry): Declare.
2854 * gdbarch.sh (print_auxv_entry): New.
2855 * gdbarch.c, gdbarch.h: Re-generated.
2856
7697fc9e
JB
28572016-06-24 John Baldwin <jhb@FreeBSD.org>
2858
2859 * fbsd-nat.c [KERN_PROC_AUXV] New variable super_xfer_partial.
2860 (fbsd_xfer_partial): New function.
2861 (fbsd_nat_add_target) [KERN_PROC_AUXV] Set "to_xfer_partial" to
2862 "fbsd_xfer_partial".
2863
8b302db8
TT
28642016-06-23 Tom Tromey <tom@tromey.com>
2865
2866 * symtab.c (symbol_find_demangled_name): Loop over languages and
2867 use language_sniff_from_mangled_name.
2868 * rust-lang.c (rust_sniff_from_mangled_name): New function.
2869 (rust_language_defn): Update.
2870 * p-lang.c (pascal_language_defn): Update.
2871 * opencl-lang.c (opencl_language_defn): Update.
2872 * objc-lang.c (objc_sniff_from_mangled_name): New function.
2873 (objc_language_defn): Update.
2874 * m2-lang.c (m2_language_defn): Update.
2875 * language.h (struct language_defn) <la_sniff_from_mangled_name>: New
2876 field.
2877 (language_sniff_from_mangled_name): Declare.
2878 * language.c (language_sniff_from_mangled_name): New function.
2879 (unknown_language_defn, auto_language_defn, local_language_defn):
2880 Update.
2881 * jv-lang.c (java_sniff_from_mangled_name): New function.
2882 (java_language_defn): Use it.
2883 * go-lang.c (go_sniff_from_mangled_name): New function.
2884 (go_language_defn): Use it.
2885 * f-lang.c (f_language_defn): Update.
2886 * defs.h (enum language): Reorder.
2887 * d-lang.c (d_sniff_from_mangled_name): New function.
2888 (d_language_defn): Use it.
2889 * cp-support.h (gdb_sniff_from_mangled_name): Declare.
2890 * cp-support.c (gdb_sniff_from_mangled_name): New function.
2891 * c-lang.c (c_language_defn, cplus_language_defn)
2892 (asm_language_defn, minimal_language_defn): Update.
2893 * ada-lang.c (ada_sniff_from_mangled_name): New function.
2894 (ada_language_defn): Use it.
2895
56618e20
TT
28962016-06-23 Tom Tromey <tom@tromey.com>
2897
2898 * ada-lang.c (ada_extensions): New array.
2899 (ada_language_defn): Use it.
2900 * c-lang.c (c_extensions): New array.
2901 (c_language_defn): Use it.
2902 (cplus_extensions): New array.
2903 (cplus_language_defn): Use it.
2904 (asm_extensions): New array.
2905 (asm_language_defn): Use it.
2906 (minimal_language_defn): Update.
2907 * d-lang.c (d_extensions): New array.
2908 (d_language_defn): Use it.
2909 * f-lang.c (f_extensions): New array.
2910 (f_language_defn): Use it.
2911 * go-lang.c (go_language_defn): Update.
2912 * jv-lang.c (java_extensions): New array.
2913 (java_language_defn): Use it.
2914 * language.c (add_language): Call add_filename_language.
2915 (unknown_language_defn, auto_language_defn, local_language_defn):
2916 Update.
2917 * language.h (struct language_defn) <la_filename_extensions>: New
2918 field.
2919 * m2-lang.c (m2_language_defn): Update.
2920 * objc-lang.c (objc_extensions): New array.
2921 (objc_language_defn): Use it.
2922 * opencl-lang.c (opencl_language_defn): Update.
2923 * p-lang.c (p_extensions): New array.
2924 (pascal_language_defn): Use it.
2925 * rust-lang.c (rust_extensions): New array.
2926 (rust_language_defn): Use it.
2927 * symfile.c (add_filename_language): No longer static. Make "ext"
2928 const.
2929 (init_filename_language_table): Remove.
2930 (_initialize_symfile): Update.
2931 * symfile.h (add_filename_language): Declare.
2932
3fcf0b0d
TT
29332016-06-23 Tom Tromey <tom@tromey.com>
2934
2935 * symfile.c (filename_language_table): Now a VEC.
2936 (fl_table_size, fl_table_next): Remove.
2937 (add_filename_language): Use VEC_safe_push.
2938 (set_ext_lang_command, info_ext_lang_command)
2939 (deduce_language_from_filename): Use VEC_iterate.
2940 (init_filename_language_table): Use VEC_empty.
2941
0c72ed4c
TT
29422016-06-23 Tom Tromey <tom@tromey.com>
2943
2944 * python/python.c (gdbpy_parameter): Now static.
2945 * python/python-internal.h (gdbpy_parameter): Don't declare.
2946
17621150
TT
29472016-06-23 Tom Tromey <tom@tromey.com>
2948
2949 PR gdb/16483:
2950 * python/lib/gdb/command/frame_filters.py
2951 (InfoFrameFilter.list_frame_filters): Rename to print_list. Print
2952 nothing if no filters found. Return value indicating whether
2953 filters were printed.
2954 (InfoFrameFilter.print_list): Remove.
2955 (InfoFrameFilter.invoke): Print message if no frame filters
2956 found.
2957
04d59df6
WT
29582016-06-21 Walfred Tedeschi <walfred.tedeschi@intel.com>
2959
2960 * f-valprint.c (f_val_print): Add field names for printing
2961 derived types fields.
2962
34a60ddb
AA
29632016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2964
2965 * s390-linux-tdep.c (s390_iterate_over_regset_sections): Fix typo
2966 in name of last-break regset.
2967
49940788
PA
29682016-06-21 Pedro Alves <palves@redhat.com>
2969
2970 * fork-child.c (fork_inferior): Switch the child to the main UI
2971 right after vfork. Save/restore the current UI in the parent.
2972 Flush outputs of the main UI instead of the current UI.
2973
468afe6c
PA
29742016-06-21 Pedro Alves <palves@redhat.com>
2975
2976 * breakpoint.c (watchpoint_check): Send watchpoint-deleted output
2977 to all UIs.
2978
86f78169
PA
29792016-06-21 Pedro Alves <palves@redhat.com>
2980
2981 * NEWS: Mention support for running interpreters on separate
2982 UIs and the new new-ui command.
2983
60eb5395
PA
29842016-06-21 Pedro Alves <palves@redhat.com>
2985
2986 * interps.c (set_top_level_interpreter): New function, factored
2987 out from captured_main.
2988 (interpreter_completer): Make extern.
2989 * interps.h (set_top_level_interpreter, interpreter_completer):
2990 New declarations.
2991 (captured_main): Use set_top_level_interpreter.
2992 * top.c [!O_NOCTTY] (O_NOCTTY): Define as 0.
2993 (open_terminal_stream, new_ui_command): New functions.
2994 (init_main): Install the "new-ui" command.
2995
268a799a
PA
29962016-06-21 Pedro Alves <palves@redhat.com>
2997
2998 * cli/cli-script.c (read_next_line): Adjust to per-UI stdin.
2999 (read_command_lines): Use input_interactive_p instead of
3000 input_from_terminal_p.
3001 * defs.h (struct ui): Forward declare.
3002 (input_from_terminal_p): Rename to ...
3003 (input_interactive_p): ... this.
3004 * event-top.c (stdin_event_handler): Pass 0 as from_tty argument
3005 to quit_command.
3006 (command_handler): Adjust to per-UI stdin.
3007 (handle_line_of_input): Adjust to per-UI stdin and use
3008 input_interactive_p instead of ISATTY and input_from_terminal_p.
3009 (gdb_readline_no_editing_callback): Adjust to per-UI stdin.
3010 (command_line_handler): Always pass true as "from_tty" parameter
3011 of handle_line_of_input and execute_command.
3012 (async_sigterm_handler): Pass 0 as from_tty argument to
3013 quit_command.
3014 * inflow.c (interactive_mode, show_interactive_mode): Moved to ...
3015 (gdb_has_a_terminal): Don't check interactive_mode here.
3016 (_initialize_inflow): Don't install "set interactive-mode" here.
3017 * main.c (captured_command_loop): Adjust to per-UI stdin.
3018 * mi/mi-interp.c (mi_execute_command_wrapper): Adjust to per-UI
3019 stdin.
3020 * top.c (new_ui): Save the stdin stream and whether it's a tty.
3021 (dont_repeat): Adjust to per-UI stdin.
3022 (command_line_input): Adjust to per-UI stdin and to use
3023 input_interactive_p.
3024 (quit_force): Write history if any UI supports interactive input.
3025 (interactive_mode, show_interactive_mode): Move here, from
3026 inflow.c.
3027 (input_from_terminal_p): Rename to ...
3028 (input_interactive_p): ... this, and check the "interactive_mode"
3029 global instead of calling gdb_has_a_terminal.
3030 (_initialize_top): Install "set interactive-mode" here.
3031 * top.h (struct ui) <stdin_stream, input_interactive_p>: New
3032 fields.
3033 * utils.c (quit): Pass 0 as from_tty argument to quit_force.
3034 (defaulted_query): Adjust to per-UI stdin and to use
3035 input_interactive_p.
3036
07169ff7
PA
30372016-06-21 Pedro Alves <palves@redhat.com>
3038
3039 * event-top.c (stdin_event_handler): Don't quit gdb if it was a
3040 secondary UI's input stream that closed. Instead, just delete the
3041 UI.
3042
98d9f24e
PA
30432016-06-21 Pedro Alves <palves@redhat.com>
3044
3045 * event-top.c (main_ui_): Delete.
3046 (main_ui, current_ui, ui_list): No longer initialize here.
3047 * main.c (captured_main): UI initialization code factored out to
3048 new new_ui function.
3049 (gdb_main): Wrap captured_main with TRY/CATCH instead of
3050 catch_errors.
3051 * top.c (highest_ui_num): New global.
3052 (new_ui): New function.
3053 * top.h (struct ui) <num>: New field.
3054 (new_ui): New declaration.
3055
eaae60fd
PA
30562016-06-21 Pedro Alves <palves@redhat.com>
3057
3058 * cli/cli-interp.c (cli_on_normal_stop): Bail out early if there's
3059 nothing to print. Use should_print_stop_to_console.
3060 * tui/tui-interp.c (tui_on_normal_stop): Likewise.
3061
8980e177
PA
30622016-06-21 Pedro Alves <palves@redhat.com>
3063
3064 * breakpoint.c (new_until_break_fsm): Add 'cmd_interp' parameter.
3065 (until_break_fsm_should_stop, until_break_fsm_clean_up): Add
3066 thread parameter.
3067 (until_break_command): Pass command interpreter to thread fsm
3068 ctor.
3069 * cli/cli-interp.c (should_print_stop_to_console): Adjust.
3070 * gdbthread.h (struct thread_control_state) <command_interp>:
3071 Delete field.
3072 * infcall.c (new_call_thread_fsm): Add 'cmd_interp' parameter.
3073 Pass it down.
3074 (call_thread_fsm_should_stop): Add thread parameter.
3075 (call_function_by_hand_dummy): Pass command interpreter to thread
3076 fsm ctor. Pass thread pointer to fsm clean up method.
3077 * infcmd.c: Include interps.h.
3078 (struct step_command_fsm) <thread>: Delete field.
3079 (new_step_command_fsm): Add 'cmd_interp' parameter. Pass it down.
3080 (step_command_fsm_prepare): Remove references to fsm's thread
3081 field.
3082 (step_1): Pass command interpreter to thread
3083 fsm ctor. Pass thread pointer to fsm clean up method.
3084 (step_command_fsm_should_stop, step_command_fsm_clean_up): Add
3085 thread parameter and use it.
3086 (new_until_next_fsm): Add 'cmd_interp' parameter. Pass it down.
3087 (until_next_fsm_should_stop, until_next_fsm_clean_up): Add thread
3088 parameter and use it.
3089 (until_next_command): Pass command interpreter to thread fsm ctor.
3090 (struct finish_command_fsm) <thread>: Delete field.
3091 (finish_command_fsm_ops): Add NULL slot for should_notify_stop.
3092 (new_finish_command_fsm): Add 'cmd_interp' parameter and pass it
3093 down. Remove thread parameter and adjust.
3094 (finish_command_fsm_should_stop, finish_command_fsm_clean_up): Add
3095 thread parameter and use it.
3096 (finish_command): Pass command interpreter to thread fsm ctor.
3097 Don't pass thread.
3098 * infrun.c (follow_fork): Move thread fsm to child fork instead of
3099 command interpreter, only.
3100 (clear_proceed_status_thread): Remove reference to command_interp.
3101 (proceed): Don't record the thread's command interpreter.
3102 (clean_up_just_stopped_threads_fsms): Pass thread to fsm clean_up
3103 method.
3104 (fetch_inferior_event): Pass thread to fsm should_stop method.
3105 * thread-fsm.c (thread_fsm_ctor): Add 'cmd_interp' parameter.
3106 Store it.
3107 (thread_fsm_clean_up, thread_fsm_should_stop): Add thread
3108 parameter and pass it down.
3109 * thread-fsm.h (struct thread_fsm) <command_interp>: New field.
3110 (struct thread_fsm_ops) <clean_up, should_stop>: Add thread
3111 parameter.
3112 (thread_fsm_ctor): Add 'cmd_interp' parameter.
3113 (thread_fsm_clean_up, thread_fsm_should_stop): Add thread
3114 parameter.
3115 * thread.c (thread_cancel_execution_command): Pass thread to
3116 thread fsm clean_up method.
3117
26cde2cc
PA
31182016-06-21 Pedro Alves <palves@redhat.com>
3119
3120 * cli/cli-interp.c: Include gdbthread.h and thread-fsm.h.
3121 (should_print_stop_to_console): New function, factored out from
3122 mi_on_normal_stop_1.
3123 * cli/cli-interp.h (should_print_stop_to_console): Declare.
3124 * mi/mi-interp.c (mi_on_normal_stop_1): Use
3125 should_print_stop_to_console. Pass it the current UI's console
3126 interpreter.
3127 * mi/mi-main.c (captured_mi_execute_command): Use the
3128 INTERP_CONSOLE symbol rather than explicit "console".
3129
a8836c93
PA
31302016-06-21 Pedro Alves <palves@redhat.com>
3131
3132 * infcmd.c (prepare_execution_command): Use
3133 all_uis_on_sync_execution_starting.
3134 * infrun.c (all_uis_on_sync_execution_starting): New function.
3135 * infrun.h (all_uis_on_sync_execution_starting): Declare.
3136
3b12939d
PA
31372016-06-21 Pedro Alves <palves@redhat.com>
3138
3139 * annotate.c: Include top.h.
3140 (async_background_execution_p): Delete.
3141 (print_value_flags): Check the UI's prompt state rather then
3142 async_background_execution_p.
3143 * event-loop.c (start_event_loop): Set the prompt state to
3144 PROMPT_NEEDED.
3145 * event-top.c (display_gdb_prompt, async_enable_stdin)
3146 (async_disable_stdin): Check the current UI's prompt state instead
3147 of the sync_execution global.
3148 (command_line_handler): Set the prompt state to PROMPT_NEEDED
3149 before running a command, and display the prompt if still needed
3150 afterwards.
3151 * infcall.c (struct call_thread_fsm) <waiting_ui>: New field.
3152 (new_call_thread_fsm): New parameter 'waiting_ui'. Store it.
3153 (call_thread_fsm_should_stop): Set the prompt state to
3154 PROMPT_NEEDED.
3155 (run_inferior_call): Adjust to temporarily set the prompt state to
3156 PROMPT_BLOCKED instead of using the sync_execution global.
3157 (call_function_by_hand_dummy): Pass the current UI to
3158 new_call_thread_fsm.
3159 * infcmd.c: Include top.h.
3160 (continue_1): Check the current UI's prompt state instead of the
3161 sync_execution global.
3162 (continue_command): Validate global execution state before calling
3163 prepare_execution_command.
3164 (step_1): Call all_uis_check_sync_execution_done.
3165 (attach_post_wait): Don't call async_enable_stdin here. Remove
3166 reference to sync_execution.
3167 * infrun.c (sync_execution): Delete global.
3168 (follow_fork_inferior)
3169 (reinstall_readline_callback_handler_cleanup): Check the current
3170 UI's prompt state instead of the sync_execution global.
3171 (check_curr_ui_sync_execution_done)
3172 (all_uis_check_sync_execution_done): New functions.
3173 (fetch_inferior_event): Call all_uis_check_sync_execution_done
3174 instead of trying to determine whether the global sync execution
3175 changed.
3176 (handle_no_resumed): Check the prompt state of all UIs.
3177 (normal_stop): Emit the no unwait-for even to all PROMPT_BLOCKED
3178 UIs. Emit the "Switching to" notification to all UIs. Enable
3179 stdin in all UIs.
3180 * infrun.h (sync_execution): Delete.
3181 (all_uis_check_sync_execution_done): Declare.
3182 * main.c (captured_command_loop): Don't call
3183 interp_pre_command_loop if the prompt is blocked.
3184 (catch_command_errors, catch_command_errors_const): Adjust.
3185 (captured_main): Set the initial prompt state to PROMPT_NEEDED.
3186 * mi/mi-interp.c (display_mi_prompt): Set the prompt state to
3187 PROMPTED.
3188 (mi_interpreter_resume): Don't clear sync_execution. Remove hack
3189 comment.
3190 (mi_execute_command_input_handler): Set the prompt state to
3191 PROMPT_NEEDED before executing the command, and only display the
3192 prompt if the prompt state is PROMPT_NEEDED afterwards.
3193 (mi_on_resume_1): Adjust to check the prompt state.
3194 * target.c (target_terminal_inferior): Adjust to check the prompt
3195 state.
3196 * top.c (wait_sync_command_done, maybe_wait_sync_command_done)
3197 (execute_command): Check the current UI's prompt state instead of
3198 sync_execution.
3199 * top.h (enum prompt_state): New.
3200 (struct ui) <prompt_state>: New field.
3201 (ALL_UIS): New macro.
3202
dbf30ca3
PA
32032016-06-21 Pedro Alves <palves@redhat.com>
3204
3205 * top.c (gdb_secondary_prompt_depth): Delete.
3206 (gdb_in_secondary_prompt_p): Add ui parameter. Use it.
3207 (gdb_readline_wrapper_cleanup, gdb_readline_wrapper): Adjust to
3208 per-UI gdb_secondary_prompt_depth.
3209 * top.h (struct ui) <secondary_prompt_depth>: New field.
3210
b2d86570
PA
32112016-06-21 Pedro Alves <palves@redhat.com>
3212
3213 * cli/cli-interp.c (cli_interpreter_pre_command_loop): New
3214 function.
3215 (cli_interp_procs): Install it instead of cli_command_loop.
3216 * cli/cli-interp.h (cli_interpreter_pre_command_loop): Declare.
3217 * event-top.c (cli_command_loop): Delete.
3218 * interps.c (interp_new): Remove reference to command_loop_proc.
3219 (current_interp_command_loop): Delete.
3220 (interp_pre_command_loop): New function.
3221 (interp_command_loop_ftype): Delete.
3222 * interps.h (interp_pre_command_loop_ftype): New typedef.
3223 (struct interp_procs) <command_loop_proc>: Delele field.
3224 <pre_command_loop_proc>: New field.
3225 (current_interp_command_loop): Delete declaration.
3226 (interp_pre_command_loop): New declaration.
3227 * main.c (captured_command_loop): Call interp_pre_command_loop
3228 instead of current_interp_command_loop and start an event loop.
3229 * mi/mi-interp.c (mi_command_loop): Delete.
3230 (mi_interpreter_pre_command_loop): New.
3231 (mi_interp_procs): Update.
3232 * tui/tui-interp.c (tui_interp_procs): Install
3233 cli_interpreter_pre_command_loop instead of cli_command_loop.
3234
9204d692
PA
32352016-06-21 Pedro Alves <palves@redhat.com>
3236
3237 * interps.c (current_interpreter): New function.
3238 * interps.h (current_interpreter): New declaration.
3239 * mi/mi-cmds.h (raw_stdout): Delete declaration.
3240 * mi/mi-common.h (struct mi_interp) <raw_stdout,
3241 saved_raw_stdout>: New field.
3242 * mi/mi-interp.c (display_mi_prompt): New parameter 'mi'. Adjust
3243 to per-UI raw_stdout.
3244 (mi_interpreter_init): Adjust to per-UI raw_stdout.
3245 (mi_on_sync_execution_done, mi_execute_command_input_handler)
3246 (mi_command_loop): Pass MI instance to display_mi_prompt.
3247 (mi_on_normal_stop_1, mi_output_running_pid, mi_on_resume_1)
3248 (mi_on_resume): Adjust to per-UI raw_stdout.
3249 (saved_raw_stdout): Delete.
3250 (mi_set_logging): Adjust to per-UI raw_stdout and
3251 saved_raw_stdout.
3252 * mi/mi-main.c (raw_stdout): Delete.
3253 (mi_cmd_gdb_exit, captured_mi_execute_command)
3254 (mi_print_exception, mi_load_progress): Adjust to per-UI
3255 raw_stdout.
3256 (print_diff_now, mi_print_timing_maybe): New ui_file parameter.
3257 Pass it along.
3258 (print_diff): New ui_file parameter. Send output there instead of
3259 raw_stdout.
3260 * mi/mi-main.h (struct ui_file): Forward declare.
3261 (mi_print_timing_maybe): Add ui_file parameter.
3262
05beb275
PA
32632016-06-21 Pedro Alves <palves@redhat.com>
3264
3265 * mi/mi-interp.c (display_mi_prompt): New function.
3266
215d3118
PA
32672016-06-21 Pedro Alves <palves@redhat.com>
3268
3269 * target.c (target_terminal_inferior): Bail out after
3270 unregistering input_fd if not on the main UI.
3271 (target_terminal_ours): Bail out after registering input_fd if not
3272 on the main UI.
3273 (target_terminal_ours_for_output): Bail out if not on the main UI.
3274
c61db772
PA
32752016-06-21 Pedro Alves <palves@redhat.com>
3276
3277 * event-top.c (restore_ui_cleanup): Make extern.
3278 * infrun.c (fetch_inferior_event): Always switch to the main UI.
3279 * top.h (restore_ui_cleanup): Declare.
3280
3c216924
PA
32812016-06-21 Pedro Alves <palves@redhat.com>
3282
3283 PR mi/20034
3284 * cli/cli-interp.c: Include cli-interp.h and event-top.h.
3285 (cli_interpreter_resume): Pass 1 to gdb_setup_readline. Set the
3286 UI's input_handler here.
3287 (cli_interpreter_supports_command_editing): New function.
3288 (cli_interp_procs): Install it.
3289 * cli/cli-interp.h: New file.
3290 * event-top.c (async_command_editing_p): Rename to ...
3291 (set_editing_cmd_var): ... this.
3292 (change_line_handler): Add parameter 'editing', and use it. Bail
3293 early if the interpreter doesn't support editing. Don't touch
3294 readline state if editing is off.
3295 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
3296 (gdb_rl_callback_handler_reinstall): Assert the current UI is the
3297 main UI.
3298 (display_gdb_prompt): Don't call gdb_rl_callback_handler_remove if
3299 not using readline. Check whether the current UI is using command
3300 editing instead of checking the async_command_editing_p global.
3301 (set_async_editing_command): Delete.
3302 (gdb_setup_readline): Add 'editing' parameter. Only allow editing
3303 on the main UI. Don't touch readline state if editing is off.
3304 (gdb_disable_readline): Don't touch readline state if editing is
3305 off.
3306 * event-top.h (gdb_setup_readline): Add 'int' parameter.
3307 (set_async_editing_command): Delete declaration.
3308 (change_line_handler, command_line_handler): Declare.
3309 (async_command_editing_p): Rename to ...
3310 (set_editing_cmd_var): ... this.
3311 * infrun.c (reinstall_readline_callback_handler_cleanup): Check
3312 whether the current UI has editing enabled rather than checking
3313 the async_command_editing_p global.
3314 * interps.c (interp_supports_command_editing): New function.
3315 * interps.h (interp_supports_command_editing_ftype): New typedef.
3316 (struct interp_procs) <supports_command_editing_proc>: New field.
3317 (interp_supports_command_editing): Declare.
3318 * mi/mi-interp.c (mi_interpreter_resume): Pass 0 to
3319 gdb_setup_readline. Don't clear the async_command_editing_p
3320 global. Update comments.
3321 * top.c (gdb_readline_wrapper_line, gdb_readline_wrapper): Check
3322 whether the current UI has editing enabled rather than checking
3323 the async_command_editing_p global. Don't touch readline state if
3324 editing is off.
3325 (undo_terminal_modifications_before_exit): Switch to the main UI.
3326 Unconditionally call gdb_disable_readline.
3327 (set_editing): New function.
3328 (show_async_command_editing_p): Rename to ...
3329 (show_editing): ... this. Show the state of the current UI.
3330 (_initialize_top): Adjust.
3331 * top.h (struct ui) <command_editing>: New field.
3332 * tui/tui-interp.c: Include cli/cli-interp.h.
3333 (tui_resume): Pass 1 to gdb_setup_readline. Set the UI's
3334 input_handler.
3335 (tui_interp_procs): Install
3336 cli_interpreter_supports_command_editing.
3337 * tui/tui-io.c (tui_getc): Check whether the current UI has
3338 editing enabled rather than checking the async_command_editing_p
3339 global.
3340
b6dcde57
PA
33412016-06-21 Pedro Alves <palves@redhat.com>
3342
3343 * top.c: Call gen_ret_current_ui_field_ptr for current_uiout.
3344 * top.h (struct ui) <m_current_uiout>: New field.
3345 * ui-out.c (current_uiout): Delete.
3346 * ui-out.h (current_uiout): Delete.
3347 (current_ui_current_uiout_ptr): New declaration.
3348 (current_uiout): Reimplement as wrapper around
3349 current_ui_current_uiout_ptr.
3350
23ff98d2
PA
33512016-06-21 Pedro Alves <palves@redhat.com>
3352
3353 * ui-out.c (default_ui_out_impl): Delete.
3354 (def_uiout): Delete.
3355 (current_uiout): Set to NULL.
3356 (default_table_begin, default_table_body, default_table_end)
3357 (default_table_header, default_begin, default_end)
3358 (default_field_int, default_field_skip, default_field_string)
3359 (default_field_fmt, default_spaces, default_text, default_message)
3360 (default_wrap_hint, default_flush, default_data_destroy): Delete.
3361
694ec099
PA
33622016-06-21 Pedro Alves <palves@redhat.com>
3363
3364 * event-top.c (gdb_setup_readline): Pass the UI's outstream and
3365 errstream to stdout_fileopen and stderr_fileopen.
3366 * exceptions.c: Include top.h.
3367 (print_flush): Open the current UI's outstream file descriptor,
3368 instead of hardcoding file descriptor 1.
3369 * main.c (captured_main): Save the main UI's out and error
3370 streams. Adjust stderr_fileopen call.
3371 * top.h (struct ui) <outstream, errstream>: New fields.
3372 * ui-file.c (stderr_fileopen): Add stream parameter. Use it
3373 instead of stderr.
3374 * ui-file.h (stderr_fileopen): Add stream parameter and update
3375 comment.
3376
41fd2b0f
PA
33772016-06-21 Pedro Alves <palves@redhat.com>
3378
3379 * event-top.c (input_fd): Delete.
3380 (stdin_event_handler): Switch to the UI whose input descriptor got
3381 the event. Adjust to per-UI input_fd.
3382 (gdb_setup_readline): Don't set the input_fd global. Adjust to
3383 per-UI input_fd.
3384 (gdb_disable_readline): Adjust to per-UI input_fd.
3385 * event-top.h (input_fd): Delete declaration.
3386 * linux-nat.c (linux_nat_terminal_inferior): Don't remove input_fd
3387 from the event-loop here.
3388 (linux_nat_terminal_ours): Don't register input_fd in the
3389 event-loop here.
3390 * main.c (captured_main): Adjust to per-UI input_fd.
3391 * remote.c (remote_terminal_inferior): Don't remove input_fd from
3392 the event-loop here.
3393 (remote_terminal_ours): Don't register input_fd in the event-loop
3394 here.
3395 * target.c: Include top.h and event-top.h.
3396 (target_terminal_inferior): Remove input_fd from the event-loop
3397 here.
3398 (target_terminal_ours): Register input_fd in the event-loop.
3399 * top.h (struct ui) <input_fd>: New field.
3400
f38d3ad1
PA
34012016-06-21 Pedro Alves <palves@redhat.com>
3402
3403 * cli/cli-script.c (execute_user_command, read_next_line)
3404 (read_next_line): Adjust to per-UI instream.
3405 * event-top.c (stdin_event_handler, command_handler)
3406 (handle_line_of_input, command_line_handler)
3407 (gdb_readline_no_editing_callback, async_sigterm_handler)
3408 (gdb_setup_readline): Likewise.
3409 * inflow.c: Include top.h.
3410 (gdb_has_a_terminal, child_terminal_init_with_pgrp)
3411 (gdb_save_tty_state, child_terminal_inferior)
3412 (child_terminal_ours_1, copy_terminal_info): Use the main UI.
3413 (initialize_stdin_serial): Adjust to per-UI instream.
3414 * main.c (captured_command_loop, captured_main): Adjust to per-UI
3415 instream.
3416 * mi/mi-interp.c (mi_execute_command_wrapper): Likewise.
3417 * python/python.c (python_interactive_command): Likewise.
3418 * terminal.h (struct ui): Forward declare.
3419 (initialize_stdin_serial): Add struct ui parameter.
3420 * top.c (instream): Delete.
3421 (do_restore_instream_cleanup, read_command_file, dont_repeat)
3422 (gdb_readline_no_editing, command_line_input)
3423 (input_from_terminal_p, gdb_init): Adjust to per-UI instream.
3424 * top.h (struct ui) <instream>: New field.
3425 (instream): Delete declaration.
3426 (quit): Adjust to per-UI instream.
3427
34282016-06-21 Pedro Alves <palves@redhat.com>
3429
3430 * event-loop.c: Include top.h.
3431 (invoke_async_signal_handlers): Switch to the main UI.
3432 * event-top.c (main_ui_): Update comment.
3433 (main_ui): New global.
3434 * top.h (main_ui): Declare.
3435
73ab01a0
PA
34362016-06-21 Pedro Alves <palves@redhat.com>
3437
3438 * cli/cli-interp.c (cli_interp): Delete.
3439 (as_cli_interp): New function.
3440 (cli_on_normal_stop, cli_on_signal_received)
3441 (cli_on_end_stepping_range, cli_on_signal_exited, cli_on_exited)
3442 (cli_on_no_history): Send output to all CLI UIs.
3443 (cli_on_sync_execution_done, cli_on_command_error): Skip output if
3444 the top level interpreter is not a CLI.
3445 (cli_interpreter_init): Don't set cli_interp or install observers
3446 here.
3447 (_initialize_cli_interp): Install observers here.
3448 * event-top.c (main_ui_, ui_list): New globals.
3449 (current_ui): Point to main_ui_.
3450 (restore_ui_cleanup, switch_thru_all_uis_init)
3451 (switch_thru_all_uis_cond, switch_thru_all_uis_next): New
3452 functions.
3453 * mi/mi-interp.c (as_mi_interp): New function.
3454 (mi_interpreter_init): Don't install observers here.
3455 (mi_on_sync_execution_done): Skip output if the top level
3456 interpreter is not a MI.
3457 (mi_new_thread, mi_thread_exit, mi_record_changed)
3458 (mi_inferior_added, mi_inferior_appeared, mi_inferior_exit)
3459 (mi_inferior_removed): Send output to all MI UIs.
3460 (find_mi_interpreter, mi_interp_data): Delete.
3461 (find_mi_interp): New function.
3462 (mi_on_signal_received, mi_on_end_stepping_range)
3463 (mi_on_signal_exited, mi_on_exited, mi_on_no_history): Send output
3464 to all MI UIs.
3465 (mi_on_normal_stop): Rename to ...
3466 (mi_on_normal_stop_1): ... this.
3467 (mi_on_normal_stop): Reimplement, sending output to all MI UIs.
3468 (mi_traceframe_changed, mi_tsv_created, mi_tsv_deleted)
3469 (mi_tsv_modified, mi_breakpoint_created, mi_breakpoint_deleted)
3470 (mi_breakpoint_modified, mi_output_running_pid): Send output to
3471 all MI UIs.
3472 (mi_on_resume): Rename to ...
3473 (mi_on_resume_1): ... this. Don't handle infcalls here.
3474 (mi_on_resume): Reimplement, sending output to all MI UIs.
3475 (mi_solib_loaded, mi_solib_unloaded, mi_command_param_changed)
3476 (mi_memory_changed): Send output to all MI UIs.
3477 (report_initial_inferior): Install observers here.
3478 * top.h (struct ui) <next>: New field.
3479 (ui_list): Declare.
3480 (struct switch_thru_all_uis): New.
3481 (switch_thru_all_uis_init, switch_thru_all_uis_cond)
3482 (switch_thru_all_uis_next): Declare.
3483 (SWITCH_THRU_ALL_UIS): New macro.
3484 * tui/tui-interp.c (tui_interp): Delete global.
3485 (as_tui_interp): New function.
3486 (tui_on_normal_stop, tui_on_signal_received)
3487 (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
3488 (tui_on_no_history): Send output to all TUI UIs.
3489 (tui_on_sync_execution_done, tui_on_command_error): Skip output if
3490 the top level interpreter is not a TUI.
3491 (tui_init): Don't set tui_interp or install observers here.
3492 (_initialize_tui_interp): Install observers here.
3493
8322445e
PA
34942016-06-21 Pedro Alves <palves@redhat.com>
3495
3496 * cli/cli-interp.c (cli_uiout): Delete, moved into ...
3497 (struct cli_interp): ... this new structure.
3498 (cli_on_normal_stop, cli_on_signal_received)
3499 (cli_on_end_stepping_range, cli_on_signal_exited, cli_on_exited)
3500 (cli_on_no_history): Use interp_ui_out.
3501 (cli_interpreter_init): If top level, set the cli_interp global.
3502 (cli_interpreter_init): Return the interp's data instead of NULL.
3503 (cli_interpreter_resume, cli_interpreter_exec, cli_ui_out): Adjust
3504 to cli_uiout being in the interpreter's data.
3505 (cli_interp_procs): New, factored out from _initialize_cli_interp.
3506 (cli_interp_factory): New function.
3507 (_initialize_cli_interp): Call interp_factory_register.
3508 * interps.c (get_interp_info): New, factored out from ...
3509 (get_current_interp_info): ... this.
3510 (interp_new): Add parameter 'data'. Store it.
3511 (struct interp_factory): New function.
3512 (interp_factory_p): New typedef. Define a VEC_P.
3513 (interpreter_factories): New global.
3514 (interp_factory_register): New function.
3515 (interp_add): Add 'ui' parameter. Use get_interp_info and
3516 interp_lookup_existing.
3517 (interp_lookup): Rename to ...
3518 (interp_lookup_existing): ... this. Add 'ui' parameter. Don't
3519 check for NULL or empty name here.
3520 (interp_lookup): Add 'ui' parameter and reimplement.
3521 (interp_set_temp, interpreter_exec_cmd): Adjust.
3522 (interpreter_completer): Complete on registered interpreter
3523 factories instead of interpreters.
3524 * interps.h (interp_factory_func): New typedef.
3525 (interp_factory_register): Declare.
3526 (interp_new, interp_add): Adjust.
3527 (interp_lookup): Declare.
3528 * main.c (captured_main): Adjust.
3529 * mi/mi-interp.c (mi_cmd_interpreter_exec): Adjust.
3530 (mi_interp_procs): New, factored out from
3531 _initialize_mi_interp.
3532 (mi_interp_factory): New function.
3533 * python/python.c (execute_gdb_command): Adjust.
3534 * tui/tui-interp.c (tui_init): If top level, set the tui_interp
3535 global.
3536 (tui_interp_procs): New.
3537 (tui_interp_factory): New function.
3538 (_initialize_tui_interp): Call interp_factory_register.
3539
cb814510
PA
35402016-06-21 Pedro Alves <palves@redhat.com>
3541
3542 * breakpoint.c (bpstat_do_actions_1): Access the current UI's
3543 async field instead of the interpreter_async global.
3544 * cli/cli-script.c (execute_user_command, while_command)
3545 (if_command, script_from_file): Likewise.
3546 * compile/compile.c: Include top.h instead of interps.h.
3547 (compile_file_command, compile_code_command)
3548 (compile_print_command): Access the current UI's async field
3549 instead of the interpreter_async global.
3550 * guile/guile.c: Include top.h instead of interps.h.
3551 (guile_repl_command, guile_command, gdbscm_execute_gdb_command):
3552 Access the current UI's async field instead of the
3553 interpreter_async global.
3554 * guile/scm-ports.c: Include top.h instead of interps.h.
3555 (ioscm_with_output_to_port_worker): Access the current UI's async
3556 field instead of the interpreter_async global.
3557 * inf-loop.c (inferior_event_handler): Likewise.
3558 * infcall.c (run_inferior_call): Likewise.
3559 * infrun.c (reinstall_readline_callback_handler_cleanup)
3560 (fetch_inferior_event): Likewise.
3561 * interps.c (interpreter_async): Delete.
3562 (struct ui_interp_info): New.
3563 (get_current_interp_info): New function.
3564 (interp_list, current_interpreter, top_level_interpreter_ptr):
3565 Delete.
3566 (interp_add, interp_set, interp_lookup, interp_ui_out)
3567 (current_interp_set_logging, interp_set_temp)
3568 (current_interp_named_p): Adjust to per-UI interpreters.
3569 (command_interpreter): Delete.
3570 (command_interp, current_interp_command_loop, interp_quiet_p)
3571 (interp_exec, interpreter_exec_cmd, interpreter_completer)
3572 (top_level_interpreter, top_level_interpreter_data): Adjust to
3573 per-UI interpreters.
3574 * interps.h (interpreter_async): Delete.
3575 * main.c (captured_command_loop): Access the current UI's async
3576 field instead of the interpreter_async global.
3577 * python/python.c (python_interactive_command, python_command)
3578 (execute_gdb_command): Likewise.
3579 * top.c (maybe_wait_sync_command_done, execute_command_to_string):
3580 Access the current UI's async field instead of the
3581 interpreter_async global.
3582 * top.h (struct tl_interp_info): Forward declare.
3583 (struct ui) <interp_info, async>: New fields.
3584
79aa2fe8
PA
35852016-06-21 Pedro Alves <palves@redhat.com>
3586
3587 * main.c (gdb_stdout, gdb_stderr, gdb_stdlog, gdb_stdin): Delete
3588 globals.
3589 (gen_ret_current_ui_field_ptr): New macro. Use it to generate
3590 wrappers for gdb_stdout, gdb_stderr, gdb_stdlog and gdb_stdin.
3591 * top.h (struct ui) <m_gdb_stdout, m_gdb_stdin, m_gdb_stderr,
3592 m_gdb_stdlog>: New fields.
3593 (current_ui_gdb_stdout_ptr, current_ui_gdb_stdin_ptr)
3594 (current_ui_gdb_stderr_ptr, current_ui_gdb_stdlog_ptr): Declare.
3595 (gdb_stdout, gdb_stdin, gdb_stderr, gdb_stdlog): Reimplement as
3596 macros.
3597
a74e1786
PA
35982016-06-21 Pedro Alves <palves@redhat.com>
3599
3600 * event-top.c: Update readline-related comments.
3601 (input_handler, call_readline): Delete globals.
3602 (gdb_rl_callback_handler): Call the current UI's input_handler
3603 method.
3604 (change_line_handler): Adjust to set current UI's properties
3605 instead of globals.
3606 (current_ui_, current_ui): New globals.
3607 (get_command_line_buffer): Rewrite to refer to the current UI.
3608 (stdin_event_handler): Adjust to call the call_readline method of
3609 the current UI.
3610 (gdb_readline_no_editing_callback): Adjust to call the current UI's
3611 input_handler method.
3612 (gdb_setup_readline): Adjust to set current UI's properties
3613 instead of globals.
3614 * event-top.h (call_readline, input_handler): Delete declarations.
3615 * mi/mi-interp.c (mi_interpreter_resume): Adjust to set current
3616 UI's properties instead of globals.
3617 * top.c (gdb_readline_wrapper_cleanup): Adjust to set current UI's
3618 properties instead of globals.
3619 (gdb_readline_wrapper): Adjust to call and set current UI's
3620 methods instead of globals.
3621 * top.h: Include buffer.h and event-loop.h.
3622 (struct ui): New struct.
3623 (current_ui): New declaration.
3624
45db7c09
PA
36252016-06-21 Pedro Alves <palves@redhat.com>
3626
3627 * ada-lang.c (ada_exception_name_addr_1): Add comment.
3628 (print_it_exception): Select the current frame.
3629
a28d8e50
YTL
36302016-06-17 Yan-Ting Lin <currygt52@gmail.com>
3631
3632 * Makefile.in (ALL_TARGET_OBS): Add nds32-tdep.o.
3633 (HFILES_NO_SRCDIR): Add nds32-tdep.h.
3634 (ALLDEPFILES): Add nds32-tdep.c.
3635 * NEWS: Mention new NDS32 port.
3636 * configure.tgt: Add NDS32.
3637 * nds32-tdep.c: New file.
3638 * nds32-tdep.h: New file.
3639 * features/Makefile (XMLTOC): Add nds32.xml.
3640 * features/nds32-core.xml: New file.
3641 * features/nds32-fpu.xml: New file.
3642 * features/nds32-system.xml: New file.
3643 * features/nds32.c: New file (generated).
3644 * features/nds32.xml: New file.
3645
4bf5402d
JB
36462016-06-14 John Baldwin <jhb@FreeBSD.org>
3647
3648 * v850-tdep.c (v850_use_struct_convention): Trim type length checks.
3649
683cd65e
JB
36502016-06-14 John Baldwin <jhb@FreeBSD.org>
3651
3652 * tui/tui-stack.c (tui_show_frame_info): Fix type mismatch.
3653
bec734b2
JB
36542016-06-14 John Baldwin <jhb@FreeBSD.org>
3655
3656 * rs6000-tdep.c (ppc_process_record_op31): Initialize ra.
3657
e46dd0f4
NC
36582016-06-13 Nick Clifton <nickc@redhat.com>
3659
3660 * gdbtypes.c (replace_type): Fix assertion.
3661
695bfa52
TT
36622016-06-10 Tom Tromey <tom@tromey.com>
3663
3664 * gdbtypes.c (arch_type, arch_integer_type, arch_character_type)
3665 (arch_boolean_type, arch_float_type, arch_complex_type)
3666 (arch_flags_type, append_flags_type_field)
3667 (append_flags_type_flag, arch_composite_type)
3668 (append_composite_type_field_raw)
3669 (append_composite_type_field_aligned)
3670 (append_composite_type_field): Make "name" parameter const.
3671 * gdbtypes.h (arch_type, arch_integer_type, arch_character_type)
3672 (arch_boolean_type, arch_float_type, arch_complex_type)
3673 (append_composite_type_field, append_composite_type_field_aligned)
3674 (append_composite_type_field_raw, arch_flags_type)
3675 (append_flags_type_field, append_flags_type_flag): Constify.
3676
347dc102
TT
36772016-06-10 Tom Tromey <tom@tromey.com>
3678
3679 PR rust/20110:
3680 * rust-exp.y (lex_number): Don't truncate large numbers to i32.
3681
edef7b8c
TT
36822016-06-10 Tom Tromey <tom@tromey.com>
3683
3684 * Makefile.in (COMMON_OBS): Remove rust-exp.o.
3685 (YYFILES): Add rust-exp.c.
3686 (YYOBJ): Add rust-exp.o.
3687 (local-maintainer-clean): Remove rust-exp.c.
3688
bb556f1f
TK
36892016-06-09 Toshihito Kikuchi <k.toshihito@yahoo.de>
3690
3691 * NEWS: Mention that GDB now supports a negative repeat count in
3692 the 'x' command.
3693 * printcmd.c (decode_format): Allow '-' in the parameter
3694 "string_ptr" to accept a negative repeat count.
3695 (find_instruction_backward): New function.
3696 (read_memory_backward): New function.
3697 (integer_is_zero): New function.
3698 (find_string_backward): New function.
3699 (do_examine): Use new functions to examine memory backward.
3700 (_initialize_printcmd): Mention that 'x' command supports a negative
3701 repeat count.
3702
c040f3fb
TK
37032016-06-09 Toshihito Kikuchi <k.toshihito@yahoo.de>
3704
3705 * MAINTAINERS (Write After Approval): Add Toshihito Kikuchi.
3706
4dee3531
TT
37072016-06-09 Tom Tromey <tom@tromey.com>
3708
3709 PR python/19819:
3710 * python/py-xmethods.c (invoke_method_name)
3711 (py_get_result_type_method_name, py_invoke_method_name): Remove.
3712 (gdbpy_initialize_xmethods): Don't initialize
3713 py_invoke_method_name, py_get_result_type_method_name.
3714
1aec0b6a
SM
37152016-06-07 Simon Marchi <simon.marchi@ericsson.com>
3716
3717 * mi/mi-interp.c (mi_record_changed): Add missing braces.
3718
2091da29
BH
37192016-06-07 Bernhard Heckel <bernhard.heckel@intel.com>
3720
3721 * findvar.c (follow_static_link): Check for valid pointer.
3722
38b022b4
SM
37232016-06-06 Simon Marchi <simon.marchi@ericsson.com>
3724
3725 * NEWS: Mention the new fields in =record-started.
3726 * common/btrace-common.h (btrace_format_short_string): New function
3727 declaration.
3728 * common/btrace-common.c (btrace_format_short_string): New
3729 function.
3730 * mi/mi-interp.c (mi_record_changed): Output method and format
3731 fields in the =record-started record.
3732 * record-btrace.c (record_btrace_open): Adapt record_changed
3733 notification.
3734 * record-full.c (record_full_open): Likewise.
3735 * record.c (cmd_record_stop): Likewise.
3736
0ae534d2
JT
37372016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
3738
3739 * windows-nat.c (handle_output_debug_string): Return type of
3740 gdb_signal_from_host() is gdb_signal, not an int.
3741 (windows_get_exec_module_filename): Add pointer casts for C++.
3742
1b40ec05
TT
37432016-06-02 Tom Tromey <tom@tromey.com>
3744
3745 PR python/18984:
3746 * python/python.c (gdbpy_solib_name): Use GDB_PY_LLU_ARG.
3747
bb7c96de
PA
37482016-06-01 Pedro Alves <palves@redhat.com>
3749
3750 * remote-fileio.c (remote_fio_ctrl_c_flag, remote_fio_sa)
3751 (remote_fio_osa)
3752 (remote_fio_ofunc, remote_fileio_sig_init, remote_fileio_sig_set)
3753 (remote_fileio_sig_exit, remote_fileio_ctrl_c_signal_handler):
3754 Delete.
3755 (remote_fileio_o_quit_handler): New global.
3756 (remote_fileio_quit_handler): New function.
3757 (remote_fileio_reply): Check the quit flag instead of the custom
3758 'remote_fio_ctrl_c_flag' flag. Restore the quit handler instead
3759 of changing the SIGINT handler.
3760 (do_remote_fileio_request): Override the quit handler instead of
3761 changing the SIGINT handler.
3762
51403f74
NC
37632016-06-01 Nick Clifton <nickc@redhat.com>
3764
3765 * common/common-utils.c (xmalloc_failed): New function. Provided
3766 so that the version in libiberty is not linked in.
3767
e3b5daf9
MM
37682016-06-01 Markus Metzger <markus.t.metzger@intel.com>
3769
3770 * infcmd.c (skip_finish_frames): New.
3771 (finish_command): Call skip_finish_frames.
3772
03d73f1f
YQ
37732016-06-01 Yao Qi <yao.qi@linaro.org>
3774
3775 PR remote/19998
3776 * remote-fileio.c (remote_fileio_ctrl_c_signal_handler): Call
3777 quit_serial_event_set.
3778
c799dec7
JB
37792016-06-01 Joel Brobecker <brobecker@adacore.com>
3780
3781 GDB 7.11.1 released.
3782
3326303b
MG
37832016-05-31 Martin Galvan <martin.galvan@tallertechnologies.com>
3784
3785 PR c++/19893
3786 * dwarf2loc.c (coerce_pieced_ref, indirect_synthetic_pointer,
3787 fetch_const_value_from_synthetic_pointer): New functions.
3788 (indirect_pieced_value): Move lower half to indirect_synthetic_pointer.
3789 (pieced_value_funcs): Implement coerce_ref.
3790 * valops.c (value_addr): Call coerce_ref for synthetic references.
3791 * valprint.c (valprint_check_validity): Return true for synthetic
3792 references. Also, don't show "<synthetic pointer>" if they reference
3793 addressable values.
3794 (generic_val_print_ref): Handle synthetic references. Also move some
3795 code to print_ref_address.
3796 (print_ref_address, get_value_addr_contents): New functions.
3797
e385593e
JK
37982016-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
3799
3800 PR c++/15231
3801 * dwarf2read.c (enum pc_bounds_kind): Add PC_BOUNDS_INVALID.
3802 (process_psymtab_comp_unit_reader, read_func_scope): Adjust callers.
3803 (read_lexical_block_scope): Import DIEs from bare DW_TAG_lexical_block.
3804 (read_call_site_scope): Adjust callers.
3805 (dwarf2_get_pc_bounds): Implement pc_bounds_invalid.
3806 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds): Adjust callers.
3807
3a2b436a
JK
38082016-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
3809
3810 Code cleanup: dwarf2_get_pc_bounds: -1/0/+1 -> enum
3811 * dwarf2read.c (enum pc_bounds_kind) New.
3812 (dwarf2_get_pc_bounds): Use it in the declaration.
3813 (process_psymtab_comp_unit_reader): Adjust caller. Rename has_pc_info
3814 to cu_bounds_kind.
3815 (read_func_scope, read_lexical_block_scope, read_call_site_scope):
3816 Adjust callers.
3817 (dwarf2_get_pc_bounds): Use enum pc_bounds_kind in the definition.
3818 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds): Adjust callers.
3819
aab3c527
JK
38202016-05-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3821
3822 * NEWS (QCatchSyscalls): Remove the parameter. Include ...
3823 (QCatchSyscalls:1 in qSupported) ... this separate entry which got
3824 deleted.
3825
c64e0f61
JK
38262016-05-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3827
3828 * NEWS (N stop reply): Remove empty line.
3829
1a72702b
AM
38302016-05-28 Alan Modra <amodra@gmail.com>
3831
3832 * compile/compile-object-load.c (link_callbacks_multiple_definition,
3833 link_callbacks_warning, link_callbacks_undefined_symbol,
3834 link_callbacks_undefined_symbol, link_callbacks_reloc_overflow,
3835 link_callbacks_reloc_dangerous,
3836 link_callbacks_unattached_reloc): Return void.
3837
51415b9f
AB
38382016-05-27 Andrew Burgess <andrew.burgess@embecosm.com>
3839
3840 * opencl-lang.c (evaluate_subexp_opencl): If
3841 EVAL_AVOID_SIDE_EFFECTS mode, forward the VALUE_LVAL attribute to
3842 the returned value in the STRUCTOP_STRUCT case.
3843
ac775bf4
AB
38442016-05-27 Andrew Burgess <andrew.burgess@embecosm.com>
3845
3846 * eval.c (evaluate_subexp_standard): If EVAL_AVOID_SIDE_EFFECTS
3847 mode, forward the VALUE_LVAL attribute to the returned value in
3848 the STRUCTOP_PTR case.
3849
7bd787e8
TT
38502016-05-25 Tom Tromey <tom@tromey.com>
3851
3852 * python/py-value.c (value_object_as_number): Use correct spelling
3853 of HAVE_LIBPYTHON2_4.
3854
2bbad2ea
BH
38552016-05-25 Bernhard Heckel <bernhard.heckel@intel.com>
3856
3857 * f-typeprint.c (f_type_print_base): Replace 0 by show.
3858
e188eb36
BH
38592016-05-25 Bernhard Heckel <bernhard.heckel@intel.com>
3860
3861 * f-typeprint.c (f_type_print_base): Decrease show by one.
3862
9b2db1fd
BH
38632016-05-25 Bernhard Heckel <bernhard.heckel@intel.com>
3864
3865 * f-typeprint.c (f_type_print_base): Don't print fields when show < 0.
3866
72b17055
BH
38672016-05-25 Bernhard Heckel <bernhard.heckel@intel.com>
3868
3869 * f-typeprint.c (f_type_print_base): Take print level into account.
3870
ddae9462
TT
38712016-05-24 Tom Tromey <tom@tromey.com>
3872
3873 PR python/17386:
3874 * python/py-value.c (value_object_as_number): Add
3875 nb_inplace_floor_divide, nb_inplace_true_divide, nb_index.
3876
e2b7f516
TT
38772016-05-24 Tom Tromey <tom@tromey.com>
3878
3879 * python/py-value.c (value_object_as_number): Add
3880 nb_inplace_divide for Python 2.
3881
1957f6b8
TT
38822016-05-23 Tom Tromey <tom@tromey.com>
3883
3884 PR python/17981:
3885 * python/py-breakpoint.c (gdbpy_breakpoints): Return a new tuple
3886 when there are no breakpoints.
3887
026a9174
PA
38882016-05-24 Pedro Alves <palves@redhat.com>
3889
3890 PR gdb/19828
3891 * linux-nat.c (attach_proc_task_lwp_callback): Mark the lwp
3892 resumed, and add the thread to GDB's thread list.
3893
72b049d3
PA
38942016-05-24 Pedro Alves <palves@redhat.com>
3895
3896 PR gdb/19828
3897 * linux-nat.c (get_pending_status): If the thread reported the
3898 event to the core and it's pending, use the pending status signal
3899 number.
3900
774113b0
PA
39012016-05-24 Pedro Alves <palves@redhat.com>
3902
3903 PR gdb/19828
3904 * linux-nat.c (lwp_lwpid_htab): New htab.
3905 (lwp_info_hash, lwp_lwpid_htab_eq, lwp_lwpid_htab_create)
3906 (lwp_lwpid_htab_add_lwp): New functions.
3907 (lwp_list): Tweak comment.
3908 (lwp_list_add, lwp_list_remove, lwp_lwpid_htab_remove_pid): New
3909 functions.
3910 (purge_lwp_list): Rewrite, using htab_traverse_noresize.
3911 (add_initial_lwp): Add lwp to htab too. Use lwp_list_add.
3912 (delete_lwp): Use lwp_list_remove. Remove htab too.
3913 (find_lwp_pid): Search in htab.
3914 (_initialize_linux_nat): Call lwp_lwpid_htab_create.
3915 * linux-nat.h (struct lwp_info) <prev>: New field.
3916
39172016-05-24 Pedro Alves <palves@redhat.com>
3918
3919 PR gdb/19828
3920 * linux-nat.c (lwp_lwpid_htab): New htab.
3921 (lwp_info_hash, lwp_lwpid_htab_eq, lwp_lwpid_htab_create)
3922 (lwp_lwpid_htab_add_lwp): New functions.
3923 (lwp_list): Tweak comment.
3924 (lwp_list_add, lwp_list_remove, lwp_lwpid_htab_remove_pid): New
3925 functions.
3926 (purge_lwp_list): Rewrite, using htab_traverse_noresize.
3927 (add_initial_lwp): Add lwp to htab too. Use lwp_list_add.
3928 (delete_lwp): Use lwp_list_remove. Remove htab too.
3929 (find_lwp_pid): Search in htab.
3930 (_initialize_linux_nat): Call lwp_lwpid_htab_create.
3931 * linux-nat.h (struct lwp_info) <prev>: New field.
3932
1ad3de98
PA
39332016-05-24 Pedro Alves <palves@redhat.com>
3934
3935 PR gdb/19828
3936 * linux-nat.c (linux_resume_one_lwp_throw): Clear the LWP's core
3937 field.
3938 (linux_nat_update_thread_list): Don't fetch the core if already
3939 known.
3940
95e94c3f
PA
39412016-05-24 Pedro Alves <palves@redhat.com>
3942
3943 PR gdb/19828
3944 * linux-tdep.c (find_mapping_size): Delete.
3945 (linux_vsyscall_range_raw): Rewrite reading from
3946 /proc/PID/task/PID/maps directly instead of using
3947 gdbarch_find_memory_regions.
3948
aa01bd36
PA
39492016-05-24 Pedro Alves <palves@redhat.com>
3950
3951 PR gdb/19828
3952 * linux-nat.c (report_thread_events): New global.
3953 (linux_handle_extended_wait): Report
3954 TARGET_WAITKIND_THREAD_CREATED if thread event reporting is
3955 enabled.
3956 (wait_lwp, linux_nat_filter_event): Report all thread exits if
3957 thread event reporting is enabled. Remove comment.
3958 (filter_exit_event): New function.
3959 (linux_nat_wait_1): Use it.
3960 (linux_nat_thread_events): New function.
3961 (linux_nat_add_target): Install it as target_thread_events method.
3962
00a3cb9c
YTL
39632016-05-24 Yan-Ting Lin <currygt52@gmail.com>
3964
3965 * MAINTAINERS (Write After Approval): Add "Yan-Ting Lin".
3966
7eb89530
YQ
39672016-05-23 Yao Qi <yao.qi@arm.com>
3968
3969 * arch-utils.c (default_code_of_frame_writable): New function.
3970 * arch-utils.h (default_code_of_frame_writable): Declare.
3971 * arm-tdep.c (arm_code_of_frame_writable): New function.
3972 (arm_gdbarch_init): Install gdbarch method
3973 code_of_frame_writable if the target is M-profile.
3974 * frame.c (skip_unwritable_frames): New function.
3975 * frame.h (skip_unwritable_frames): Declare.
3976 * gdbarch.sh (code_of_frame_writable): New.
3977 * gdbarch.c, gdbarch.h: Re-generated.
3978 * infcmd.c (finish_command): Call skip_unwritable_frames.
3979
0f6ed0e0
TT
39802016-05-23 Tom Tromey <tom@tromey.com>
3981
3982 PR python/19438, PR python/18393:
3983 * python/py-objfile.c (objfpy_initialize): Initialize self->dict.
3984 * python/py-progspace.c (pspy_initialize): Initialize self->dict.
3985
d0571b99
GB
39862016-05-23 Gary Benson <gbenson@redhat.com>
3987
3988 * nat/gdb_thread_db.h (td_thr_validate_ftype): Remove typedef.
3989 * linux-thread-db.c (struct thread_db_info) <td_thr_validate_p>:
3990 Remove field.
3991 (try_thread_db_load_1): Remove td_thr_validate initialization.
3992
37773e78
JB
39932016-05-23 Jon Boden <jon@ubuntubsd.org> (tiny change)
3994
3995 * configure.ac: Search for libutil-freebsd as alternative to libutil.
3996 * configure: Re-generated.
3997
bfb0d950
AS
39982016-05-19 Andreas Schwab <schwab@suse.de>
3999
4000 * ia64-libunwind-tdep.c (libunwind_descr): Add cast from void *.
4001 (libunwind_frame_set_descr): Likewise.
4002 (libunwind_frame_cache): Likewise.
4003 (libunwind_frame_dealloc_cache): Likewise.
4004 (libunwind_frame_sniffer): Likewise.
4005 (libunwind_search_unwind_table): Likewise.
4006 (libunwind_sigtramp_frame_sniffer): Likewise.
4007 (libunwind_get_reg_special): Likewise.
4008 (libunwind_load): Likewise.
4009 * ia64-linux-nat.c (ia64_linux_fetch_register): Likewise.
4010 (ia64_linux_store_register): Likewise.
4011 (ia64_linux_xfer_partial): Likewise.
4012 * ia64-tdep.c (ia64_access_reg): Likewise.
4013 (ia64_access_fpreg): Likewise.
4014 (ia64_access_rse_reg): Likewise.
4015 (ia64_access_rse_fpreg): Likewise.
4016
45f4ed92
TT
40172016-05-18 Tom Tromey <tom@tromey.com>
4018
4019 * rust-lang.c (rust_subscript): Initialize "high".
4020
28addb40
SM
40212016-05-17 Simon Marchi <simon.marchi@ericsson.com>
4022
4023 PR gdb/20045
4024 * mi/mi-main.c (mi_on_resume): Call target_can_async_p instead
4025 of target_is_async_p.
4026
61c6156d
SM
40272016-05-17 Simon Marchi <simon.marchi@ericsson.com>
4028
4029 PR gdb/18077
4030 * mi/mi-main.c (run_one_inferior): Use run target to determine
4031 whether to run async or not.
4032 (mi_cmd_exec_run): Likewise.
4033
01739a3b
TT
40342016-05-17 Tom Tromey <tom@tromey.com>
4035
4036 * std-operator.def (OP_RANGE): Rename from OP_F90_RANGE.
4037 * rust-lang.c: Don't include f-lang.h.
4038 (rust_range, rust_compute_range, rust_subscript)
4039 (rust_evaluate_subexp): Update.
4040 * rust-exp.y: Don't include f-lang.h.
4041 (ast_range, convert_ast_to_expression): Update.
4042 * parse.c (operator_length_standard): Update.
4043 * f-lang.h (enum f90_range_type): Move to expression.h.
4044 * f-exp.y: Use OP_RANGE.
4045 * expression.h (enum range_type): New enum; renamed from
4046 f90_range_type.
4047 * expprint.c: Don't include f-lang.h.
4048 (print_subexp_standard, dump_subexp_body_standard): Use OP_RANGE.
4049 * eval.c (value_f90_subarray, evaluate_subexp_standard): Update.
4050
0bdfa368
TT
40512016-05-17 Tom Tromey <tom@tromey.com>
4052
4053 * NEWS: Add Rust item.
4054
c44af4eb
TT
40552016-05-17 Tom Tromey <tom@tromey.com>
4056 Manish Goregaokar <manishsmail@gmail.com>
4057
4058 * symtab.c (symbol_find_demangled_name): Handle Rust.
4059 * symfile.c (init_filename_language_table): Treat ".rs" as Rust.
4060 * std-operator.def (STRUCTOP_ANONYMOUS, OP_RUST_ARRAY): New
4061 constants.
4062 * rust-lang.h: New file.
4063 * rust-lang.c: New file.
4064 * rust-exp.y: New file.
4065 * dwarf2read.c (read_file_scope): Add Rust producer sniffing.
4066 (dwarf2_compute_name, read_func_scope, read_structure_type)
4067 (read_base_type, read_subrange_type, set_cu_language)
4068 (new_symbol_full, determine_prefix): Handle Rust.
4069 * defs.h (enum language) <language_rust>: New constant.
4070 * Makefile.in (SFILES): Add rust-exp.y, rust-lang.c.
4071 (COMMON_OBS): Add rust-exp.o, rust-lang.o.
4072
00272ec4
TT
40732016-05-17 Tom Tromey <tom@tromey.com>
4074
4075 * valprint.h (struct generic_val_print_array) <array_start,
4076 array_end>: New fields.
4077 * valprint.c (generic_val_print_array): Add "decorations"
4078 parameter. Use "array_start", "array_end".
4079 (generic_val_print) <TYPE_CODE_ARRAY>: Update.
4080 * p-valprint.c (p_decorations): Update.
4081 * m2-valprint.c (m2_decorations): Update.
4082 * f-valprint.c (f_decorations): Update.
4083 * c-valprint.c (c_decorations): Update.
4084
dcd1f979
TT
40852016-05-17 Tom Tromey <tom@tromey.com>
4086
4087 * NEWS: Add "maint selftest" entry.
4088 * selftest.h: New file.
4089 * selftest.c: New file.
4090 * maint.c: Include selftest.h.
4091 (maintenance_selftest): New function.
4092 (_initialize_maint_cmds): Add "maint selftest" command.
4093 * configure.ac (GDB_SELF_TEST): Maybe define.
4094 * config.in, configure: Rebuild.
4095 * Makefile.in (SFILES): Add selftest.c.
4096 (COMMON_OBS): Add selftest.o.
4097
e4b8a1c8
TT
40982016-05-17 Tom Tromey <tom@tromey.com>
4099
4100 * expprint.c: Include f-lang.h.
4101 (print_subexp_standard, dump_subexp_body_standard): Handle
4102 OP_F90_RANGE.
4103
9ab0bb2a
TT
41042016-05-17 Tom Tromey <tom@tromey.com>
4105
4106 * Makefile.in (init.c): Search .y files for initialization
4107 functions.
4108
8ddd5a6c
DE
41092016-05-12 Doug Evans <dje@google.com>
4110
4111 PR symtab/19999
4112 * dwarf2loc.c (dwarf2_find_location_expression): For DWO files still
4113 add base_offset.
4114
df140a0b
TS
41152016-05-10 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
4116
4117 * iq2000-tdep.c (iq2000_scan_prologue): Remove if that shouldn't guard
4118 anything.
4119 * linespec.c (add_sal_to_sals): Restore call to symtab_to_fullname.
4120
39d911fc
TP
41212016-05-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
4122
4123 * arm-tdep.c (arm_elf_make_msymbol_special): Use
4124 ARM_GET_SYM_BRANCH_TYPE to get branch type of a symbol.
4125
870f88f7
TS
41262016-05-07 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
4127
4128 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Remove unused
4129 variables.
4130 * aarch64-tdep.c (aarch64_skip_prologue): Likewise.
4131 (aarch64_scan_prologue): Likewise.
4132 (aarch64_prologue_prev_register): Likewise.
4133 (aarch64_dwarf2_prev_register): Likewise.
4134 (pass_in_v): Likewise.
4135 (aarch64_push_dummy_call): Likewise.
4136 (aarch64_breakpoint_from_pc): Likewise.
4137 (aarch64_return_in_memory): Likewise.
4138 (aarch64_return_value): Likewise.
4139 (aarch64_displaced_step_b_cond): Likewise.
4140 (aarch64_displaced_step_cb): Likewise.
4141 (aarch64_displaced_step_tb): Likewise.
4142 (aarch64_gdbarch_init): Likewise.
4143 (aarch64_process_record): Likewise.
4144 * alpha-mdebug-tdep.c (alpha_mdebug_init_abi): Likewise.
4145 * alpha-tdep.c (_initialize_alpha_tdep): Likewise.
4146 * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise.
4147 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Likewise.
4148 * amd64-tdep.c (fixup_riprel): Likewise.
4149 * amd64-windows-tdep.c (amd64_windows_frame_decode_epilogue): Likewise.
4150 (amd64_windows_frame_decode_insns): Likewise.
4151 (amd64_windows_frame_cache): Likewise.
4152 (amd64_windows_frame_prev_register): Likewise.
4153 (amd64_windows_frame_this_id): Likewise.
4154 (amd64_windows_init_abi): Likewise.
4155 * arm-linux-tdep.c (arm_linux_get_syscall_number): Likewise.
4156 (arm_linux_get_next_pcs_syscall_next_pc): Likewise.
4157 * arm-symbian-tdep.c (arm_symbian_init_abi): Likewise.
4158 * arm-tdep.c (arm_make_epilogue_frame_cache): Likewise.
4159 (arm_epilogue_frame_prev_register): Likewise.
4160 (arm_record_vdata_transfer_insn): Likewise.
4161 (arm_record_exreg_ld_st_insn): Likewise.
4162 * auto-load.c (execute_script_contents): Likewise.
4163 (print_scripts): Likewise.
4164 * avr-tdep.c (avr_frame_prev_register): Likewise.
4165 (avr_push_dummy_call): Likewise.
4166 * bfin-linux-tdep.c (bfin_linux_sigframe_init): Likewise.
4167 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
4168 * blockframe.c (find_pc_partial_function_gnu_ifunc): Likewise.
4169 * break-catch-throw.c (fetch_probe_arguments): Likewise.
4170 * breakpoint.c (breakpoint_xfer_memory): Likewise.
4171 (breakpoint_init_inferior): Likewise.
4172 (breakpoint_inserted_here_p): Likewise.
4173 (software_breakpoint_inserted_here_p): Likewise.
4174 (hardware_breakpoint_inserted_here_p): Likewise.
4175 (bpstat_what): Likewise.
4176 (break_range_command): Likewise.
4177 (save_breakpoints): Likewise.
4178 * coffread.c (coff_symfile_read): Likewise.
4179 * cris-tdep.c (cris_push_dummy_call): Likewise.
4180 (cris_scan_prologue): Likewise.
4181 (cris_register_size): Likewise.
4182 (_initialize_cris_tdep): Likewise.
4183 * d-exp.y: Likewise.
4184 * dbxread.c (dbx_read_symtab): Likewise.
4185 (process_one_symbol): Likewise.
4186 (coffstab_build_psymtabs): Likewise.
4187 (elfstab_build_psymtabs): Likewise.
4188 * dicos-tdep.c (dicos_init_abi): Likewise.
4189 * disasm.c (do_mixed_source_and_assembly): Likewise.
4190 (gdb_disassembly): Likewise.
4191 * dtrace-probe.c (dtrace_process_dof): Likewise.
4192 * dwarf2read.c (error_check_comp_unit_head): Likewise.
4193 (build_type_psymtabs_1): Likewise.
4194 (skip_one_die): Likewise.
4195 (process_imported_unit_die): Likewise.
4196 (dwarf2_physname): Likewise.
4197 (read_file_scope): Likewise.
4198 (setup_type_unit_groups): Likewise.
4199 (create_dwo_cu_reader): Likewise.
4200 (create_dwo_cu): Likewise.
4201 (create_dwo_unit_in_dwp_v1): Likewise.
4202 (create_dwo_unit_in_dwp_v2): Likewise.
4203 (lookup_dwo_unit_in_dwp): Likewise.
4204 (free_dwo_file): Likewise.
4205 (check_producer): Likewise.
4206 (dwarf2_add_typedef): Likewise.
4207 (dwarf2_add_member_fn): Likewise.
4208 (read_unsigned_leb128): Likewise.
4209 (read_signed_leb128): Likewise.
4210 (dwarf2_const_value): Likewise.
4211 (follow_die_sig_1): Likewise.
4212 (dwarf_decode_macro_bytes): Likewise.
4213 * extension.c (restore_active_ext_lang): Likewise.
4214 * frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Likewise.
4215 * ft32-tdep.c (ft32_analyze_prologue): Likewise.
4216 * gdbtypes.c (lookup_typename): Likewise.
4217 (resolve_dynamic_range): Likewise.
4218 (check_typedef): Likewise.
4219 * h8300-tdep.c (h8300_is_argument_spill): Likewise.
4220 (h8300_gdbarch_init): Likewise.
4221 * hppa-tdep.c (hppa32_push_dummy_call): Likewise.
4222 (hppa_frame_this_id): Likewise.
4223 (_initialize_hppa_tdep): Likewise.
4224 * hppanbsd-tdep.c (hppanbsd_sigtramp_cache_init): Likewise.
4225 * hppaobsd-tdep.c (hppaobsd_supply_fpregset): Likewise.
4226 * i386-dicos-tdep.c (i386_dicos_init_abi): Likewise.
4227 * i386-tdep.c (i386_bnd_type): Likewise.
4228 (i386_gdbarch_init): Likewise.
4229 (i386_mpx_bd_base): Likewise.
4230 * i386nbsd-tdep.c (i386nbsd_sigtramp_cache_init): Likewise.
4231 * i386obsd-tdep.c (i386obsd_elf_init_abi): Likewise.
4232 * ia64-tdep.c (examine_prologue): Likewise.
4233 (ia64_frame_cache): Likewise.
4234 (ia64_push_dummy_call): Likewise.
4235 * infcmd.c (finish_command_fsm_async_reply_reason): Likewise.
4236 (default_print_one_register_info): Likewise.
4237 * infrun.c (infrun_thread_ptid_changed): Likewise.
4238 (thread_still_needs_step_over): Likewise.
4239 (stop_all_threads): Likewise.
4240 (restart_threads): Likewise.
4241 (keep_going_stepped_thread): Likewise.
4242 * iq2000-tdep.c (iq2000_scan_prologue): Likewise.
4243 * language.c (language_init_primitive_type_symbols): Likewise.
4244 * linespec.c (add_sal_to_sals): Likewise.
4245 * linux-nat.c (status_callback): Likewise.
4246 (kill_unfollowed_fork_children): Likewise.
4247 (linux_nat_kill): Likewise.
4248 * linux-tdep.c (linux_fill_prpsinfo): Likewise.
4249 * linux-thread-db.c (thread_db_notice_clone): Likewise.
4250 (record_thread): Likewise.
4251 * location.c (string_to_event_location_basic): Likewise.
4252 * m32c-tdep.c (m32c_prev_register): Likewise.
4253 * m32r-linux-tdep.c (m32r_linux_init_abi): Likewise.
4254 * m32r-tdep.c (decode_prologue): Likewise.
4255 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
4256 * machoread.c (macho_symtab_read): Likewise.
4257 (macho_symfile_read): Likewise.
4258 (macho_symfile_offsets): Likewise.
4259 * maint.c (set_per_command_cmd): Likewise.
4260 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Likewise.
4261 (mi_cmd_stack_list_variables): Likewise.
4262 * mi/mi-main.c (mi_cmd_exec_run): Likewise.
4263 (output_register): Likewise.
4264 (mi_cmd_execute): Likewise.
4265 (mi_cmd_trace_define_variable): Likewise.
4266 (print_variable_or_computed): Likewise.
4267 * minsyms.c (prim_record_minimal_symbol_full): Likewise.
4268 * mn10300-tdep.c (mn10300_frame_prev_register): Likewise.
4269 * msp430-tdep.c (msp430_pseudo_register_write): Likewise.
4270 * mt-tdep.c (mt_registers_info): Likewise.
4271 * nios2-tdep.c (nios2_analyze_prologue): Likewise.
4272 (nios2_push_dummy_call): Likewise.
4273 (nios2_frame_unwind_cache): Likewise.
4274 (nios2_stub_frame_cache): Likewise.
4275 (nios2_stub_frame_sniffer): Likewise.
4276 (nios2_gdbarch_init): Likewise.
4277 * ppc-ravenscar-thread.c: Likewise.
4278 * ppcfbsd-tdep.c (ppcfbsd_sigtramp_frame_cache): Likewise.
4279 * python/py-evts.c (add_new_registry): Likewise.
4280 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
4281 (bpfinishpy_detect_out_scope_cb): Likewise.
4282 * python/py-framefilter.c (py_print_value): Likewise.
4283 * python/py-inferior.c (infpy_write_memory): Likewise.
4284 * python/py-infevents.c (create_inferior_call_event_object): Likewise.
4285 * python/py-infthread.c (thpy_get_ptid): Likewise.
4286 * python/py-linetable.c (ltpy_get_pcs_for_line): Likewise.
4287 (ltpy_get_all_source_lines): Likewise.
4288 (ltpy_is_valid): Likewise.
4289 (ltpy_iternext): Likewise.
4290 * python/py-symtab.c (symtab_and_line_to_sal_object): Likewise.
4291 * python/py-unwind.c (pyuw_object_attribute_to_pointer): Likewise.
4292 (unwind_infopy_str): Likewise.
4293 * python/py-varobj.c (py_varobj_get_iterator): Likewise.
4294 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
4295 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
4296 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
4297 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Likewise.
4298 * s390-linux-tdep.c (s390_supply_tdb_regset): Likewise.
4299 (s390_frame_prev_register): Likewise.
4300 (s390_dwarf2_frame_init_reg): Likewise.
4301 (s390_record_vr): Likewise.
4302 (s390_process_record): Likewise.
4303 * score-tdep.c (score_push_dummy_call): Likewise.
4304 (score3_analyze_prologue): Likewise.
4305 * sh-tdep.c (sh_extract_return_value_nofpu): Likewise.
4306 * sh64-tdep.c (sh64_analyze_prologue): Likewise.
4307 (sh64_push_dummy_call): Likewise.
4308 (sh64_extract_return_value): Likewise.
4309 (sh64_do_fp_register): Likewise.
4310 * solib-aix.c (solib_aix_get_section_offsets): Likewise.
4311 * solib-darwin.c (darwin_read_exec_load_addr_from_dyld): Likewise.
4312 (darwin_solib_read_all_image_info_addr): Likewise.
4313 * solib-dsbt.c (enable_break): Likewise.
4314 * solib-frv.c (enable_break2): Likewise.
4315 (frv_fdpic_find_canonical_descriptor): Likewise.
4316 * solib-svr4.c (svr4_handle_solib_event): Likewise.
4317 * sparc-tdep.c (sparc_skip_stack_check): Likewise.
4318 * sparc64-linux-tdep.c (sparc64_linux_get_longjmp_target): Likewise.
4319 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
4320 * spu-tdep.c (info_spu_dma_cmdlist): Likewise.
4321 * stack.c (read_frame_local): Likewise.
4322 * symfile.c (symbol_file_add_separate): Likewise.
4323 (remove_symbol_file_command): Likewise.
4324 * symmisc.c (maintenance_print_one_line_table): Likewise.
4325 * symtab.c (symbol_cache_flush): Likewise.
4326 (basic_lookup_transparent_type): Likewise.
4327 (sort_search_symbols_remove_dups): Likewise.
4328 * target.c (target_memory_map): Likewise.
4329 (target_detach): Likewise.
4330 (target_resume): Likewise.
4331 (acquire_fileio_fd): Likewise.
4332 (target_store_registers): Likewise.
4333 * thread.c (print_thread_info_1): Likewise.
4334 * tic6x-tdep.c (tic6x_analyze_prologue): Likewise.
4335 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Likewise.
4336 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
4337 (tilegx_analyze_prologue): Likewise.
4338 (tilegx_stack_frame_destroyed_p): Likewise.
4339 (tilegx_frame_cache): Likewise.
4340 * tracefile.c (trace_save): Likewise.
4341 * tracepoint.c (encode_actions_and_make_cleanup): Likewise.
4342 (start_tracing): Likewise.
4343 (print_one_static_tracepoint_marker): Likewise.
4344 * tui/tui.c (tui_enable): Likewise.
4345 * valops.c (value_struct_elt_bitpos): Likewise.
4346 (find_overload_match): Likewise.
4347 (find_oload_champ): Likewise.
4348 * value.c (value_contents_copy_raw): Likewise.
4349 * windows-tdep.c (windows_get_tlb_type): Likewise.
4350 * x86-linux-nat.c (x86_linux_enable_btrace): Likewise.
4351 * xcoffread.c (record_minimal_symbol): Likewise.
4352 (scan_xcoff_symtab): Likewise.
4353 * xtensa-tdep.c (execute_code): Likewise.
4354 (xtensa_gdbarch_init): Likewise.
4355 (_initialize_xtensa_tdep): Likewise.
4356
c1aebf87
UW
43572016-05-04 Ulrich Weigand <uweigand@de.ibm.com>
4358
4359 * spu-linux-nat.c (spu_bfd_iovec_pread): Add pointer cast for C++.
4360 (spu_bfd_open): Likewise.
4361
edf689f0
YQ
43622016-05-04 Yao Qi <yao.qi@linaro.org>
4363
4364 PR gdb/19947
4365 * corefile.c (read_memory): Rename it to ...
4366 (read_memory_object): ... it. Add parameter object.
4367 (read_memory): Call read_memory_object.
4368 (read_stack): Likewise.
4369 (read_code): Likewise.
4370
6c447423
DE
43712016-05-03 Yunlian Jiang <yunlian@google.com>
4372 Doug Evans <dje@google.com>
4373
4374 PR symtab/19914
4375 * dwarf2read.c (open_and_init_dwp_file): Look at backlink if objfile
4376 is separate debug file.
4377
a1ec3d24
DB
43782016-05-03 Don Breazeal <donb@codesourcery.com>
4379
4380 * serial.h (gdb_pipe): Fix argument names in comment.
4381
86f1abec
PA
43822016-05-03 Pedro Alves <palves@redhat.com>
4383
4384 PR python/20037
4385 * python/python.c (_initialize_python) [IS_PY3K]: xstrdup/xfree
4386 oldloc.
4387
1aa96702
PA
43882016-05-03 Pedro Alves <palves@redhat.com>
4389
4390 * python/python.c (_initialize_python) [IS_PY3K]: Remove dead
4391 code.
4392
a4a1c157
PA
43932016-05-03 Pedro Alves <palves@redhat.com>
4394
4395 * configure.ac (PYTHON_LIBS): Sed away "-Xlinker -export-dynamic".
4396 * configure: Regenerate.
4397
1b4f615e
PA
43982016-05-03 Pedro Alves <palves@redhat.com>
4399
4400 * configure.ac (checking for the dynamic export flag): Add
4401 $PYTHON_CPPFLAGS to CPPFLAGS.
4402 * configure: Regenerate.
4403
b631e59b
KT
44042016-05-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4405
4406 * symfile.c (find_pc_overlay): Add braces to avoid -Wparentheses
4407 warning.
4408 (find_pc_mapped_section): Likewise.
4409 (list_overlays_command): Likewise.
4410
1270fac6
EZ
44112016-05-02 Eli Zaretskii <eliz@gnu.org>
4412
4413 * windows-nat.c (_initialize_check_for_gdb_ini): Fix off-by-one
4414 error in allocation of space for "$HOME/.gdbinit" string. This
4415 caused GDB to abort on startup whenever a '~/gdb.ini' file was
4416 actually found, because xsnprintf would hit an assertion
4417 violation.
4418
0400cf2f
SM
44192016-04-28 Simon Marchi <simon.marchi@ericsson.com>
4420
4421 * cli/cli-decode.c (help_cmd_list): Do not list commands that
4422 are deprecated.
4423
57809e5e
JK
44242016-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4425
4426 * remote.c (remote_start_remote): Detect PACKET_vFile_setfs.support.
4427
476350ba
MG
44282016-04-27 Martin Galvan <martin.galvan@tallertechnologies.com>
4429
4430 * c-valprint.c (c_value_print): Always convert val back to reference
4431 type if we converted it to a pointer type.
4432
2d681be4
AA
44332016-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
4434
4435 * configure.ac: Enhance configure check for babeltrace to reject
4436 non-C++-enabled versions.
4437 * configure: Regenerate.
4438
3e2e34f8
KB
44392016-04-26 Sanimir Agovic <sanimir.agovic@intel.com>
4440 Keven Boell <keven.boell@intel.com>
4441 Bernhard Heckel <bernhard.heckel@intel.com>
4442
4443 * f-valprint.c (f77_create_arrayprint_offset_tbl): Remove
4444 function.
4445 (F77_DIM_SIZE, F77_DIM_OFFSET): Remove macro.
4446 (f77_print_array_1): Use value_subscript to subscript a
4447 value array.
4448 (f77_print_array): Remove call to f77_create_arrayprint_offset_tbl.
4449 (f_val_print): Use value_field to construct a field value.
4450
8f07e298
BH
44512016-04-26 Bernhard Heckel <bernhard.heckel@intel.com>
4452
4453 * valarith.c (value_address): Resolve dynamic types.
4454
9920b434
BH
44552016-04-26 Bernhard Heckel <bernhard.heckel@intel.com>
4456 Keven Boell <kevel.boell@intel.com>
4457
4458 * NEWS: Add new supported features for fortran.
4459 * gdbtypes.c (remove_dyn_prop): New.
4460 (resolve_dynamic_struct): Keep type length for fortran structs.
4461 * gdbtypes.h: Forward declaration of new function.
4462 * value.c (value_address): Return dynamic resolved location of a value.
4463 (set_value_component_location): Adjust the value address
4464 for single value prints.
4465 (value_primitive_field): Support value types with a dynamic location.
4466 (set_internalvar): Remove dynamic location property of
4467 internal variables.
4468
20249ae4
YQ
44692016-04-25 Pedro Alves <palves@redhat.com>
4470 Yao Qi <yao.qi@linaro.org>
4471
4472 * mem-break.c (set_raw_breakpoint_at): Create a raw breakpoint
4473 object. Insert it if it is not inserted yet. Increase the
4474 refcount and link it into the proc's raw breakpoint list.
4475
21edc42f
YQ
44762016-04-25 Yao Qi <yao.qi@linaro.org>
4477
4478 * breakpoint.c (should_be_inserted): Return 0 if the location's
4479 owner is not single step breakpoint or single step breakpoint's
4480 thread isn't the thread which is stepping past a breakpoint.
4481 * gdbarch.sh (software_single_step): Update comments.
4482 * gdbarch.h: Regenerated.
4483 * infrun.c (struct step_over_info) <thread>: New field.
4484 (set_step_over_info): New argument 'thread'. Callers updated.
4485 (clear_step_over_info): Set field thread to -1.
4486 (thread_is_stepping_over_breakpoint): New function.
4487 * infrun.h (thread_is_stepping_over_breakpoint): Declaration.
4488
0154d990
EBM
44892016-04-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4490
4491 * ppc-linux-nat.c (ppc_linux_read_description): Use PPC_FEATURE_HAS_VSX
4492 and PPC_FEATURE_HAS_ALTIVEC to check if such features are available.
4493
6d7e9d3b
YQ
44942016-04-22 Yao Qi <yao.qi@linaro.org>
4495
4496 * valops.c (read_value_memory): New local variable 'stack'.
4497 Set it to either TARGET_OBJECT_STACK_MEMORY or
4498 TARGET_OBJECT_MEMORY.
4499
b3f11165
PA
45002016-04-22 Pedro Alves <palves@redhat.com>
4501
4502 * ada-exp.y: Remove all yy symbol remappings.
4503 (GDB_YY_REMAP_PREFIX): Define.
4504 Include "yy-remap.h".
4505 * ada-lang.c (ada_language_defn): Adjust.
4506 * ada-lang.h (ada_error): Rename to ...
4507 (ada_yyerror): ... this.
4508 * c-exp.y: Remove all yy symbol remappings.
4509 (GDB_YY_REMAP_PREFIX): Define.
4510 Include "yy-remap.h".
4511 * c-lang.c (c_language_defn, cplus_language_defn)
4512 (asm_language_defn, minimal_language_defn): Adjust.
4513 * c-lang.h (c_error): Rename to ...
4514 (c_yyerror): ... this.
4515 * d-exp.y: Remove all yy symbol remappings.
4516 (GDB_YY_REMAP_PREFIX): Define.
4517 Include "yy-remap.h".
4518 * d-lang.c (d_language_defn): Adjust.
4519 * d-lang.h (d_error): Rename to ...
4520 (d_yyerror): ... this.
4521 * f-exp.y: Remove all yy symbol remappings.
4522 (GDB_YY_REMAP_PREFIX): Define.
4523 Include "yy-remap.h".
4524 * f-lang.c (f_language_defn): Adjust.
4525 * f-lang.h (f_error): Rename to ...
4526 (f_yyerror): ... this.
4527 * go-exp.y: Remove all yy symbol remappings.
4528 (GDB_YY_REMAP_PREFIX): Define.
4529 Include "yy-remap.h".
4530 * go-lang.c (go_language_defn): Adjust.
4531 * go-lang.h (go_error): Rename to ...
4532 (go_yyerror): ... this.
4533 * jv-exp.y: Remove all yy symbol remappings.
4534 (GDB_YY_REMAP_PREFIX): Define.
4535 Include "yy-remap.h".
4536 * jv-lang.c (java_language_defn): Adjust.
4537 * jv-lang.h (java_error): Rename to ...
4538 (java_yyerror): ... this.
4539 * m2-exp.y: Remove all yy symbol remappings.
4540 (GDB_YY_REMAP_PREFIX): Define.
4541 Include "yy-remap.h".
4542 * m2-lang.c (m2_language_defn): Adjust.
4543 * m2-lang.h (m2_error): Rename to ...
4544 (m2_yyerror): ... this.
4545 * objc-exp.y: Remove all yy symbol remappings.
4546 (GDB_YY_REMAP_PREFIX): Define.
4547 Include "yy-remap.h".
4548 * objc-lang.c (objc_language_defn): Adjust.
4549 * opencl-lang.c (opencl_language_defn): Adjust.
4550 * p-exp.y: Remove all yy symbol remappings.
4551 (GDB_YY_REMAP_PREFIX): Define.
4552 Include "yy-remap.h".
4553 * p-lang.c (pascal_language_defn): Adjust.
4554 * p-lang.h (pascal_error): Rename to ...
4555 (pascal_yyerror): ... this.
4556 * yy-remap.h: New file.
4557
6290672f
PA
45582016-04-22 Pedro Alves <palves@redhat.com>
4559
4560 * common/common-exceptions.h (GDB_XCPT_TRY): Remove mention of
4561 the foreign frames issue.
4562 [__cplusplus] (GDB_XCPT): Define as GDB_XCPT_TRY.
4563
89525768
PA
45642016-04-22 Pedro Alves <palves@redhat.com>
4565
4566 * common/common-exceptions.c (enum catcher_state, struct catcher)
4567 (current_catcher): Define in C++ mode too.
4568 (exceptions_state_mc_catch): Call throw_exception_sjlj instead of
4569 throw_exception.
4570 (throw_exception_sjlj, throw_exception_cxx): New functions,
4571 factored out from throw_exception.
4572 (throw_exception): Reimplement.
4573 * common/common-exceptions.h (exceptions_state_mc_init)
4574 (exceptions_state_mc_action_iter)
4575 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
4576 Declare in C++ mode too.
4577 (TRY): Rename to ...
4578 (TRY_SJLJ): ... this.
4579 (CATCH): Rename to ...
4580 (CATCH_SJLJ): ... this.
4581 (END_CATCH): Rename to ...
4582 (END_CATCH_SJLJ): ... this.
4583 [GDB_XCPT == GDB_XCPT_SJMP] (TRY, CATCH, END_CATCH): Map to SJLJ
4584 equivalents.
4585 (throw_exception): Update comments.
4586 (throw_exception_sjlj): Declare.
4587 * event-top.c (gdb_rl_callback_read_char_wrapper): Extend intro
4588 comment. Wrap body in TRY_SJLJ/CATCH_SJLJ and rethrow any
4589 intercepted exception.
4590 (gdb_rl_callback_handler): New function.
4591 (gdb_rl_callback_handler_install): Always install
4592 gdb_rl_callback_handler as readline callback.
4593
3c610247
PA
45942016-04-22 Pedro Alves <palves@redhat.com>
4595
4596 * event-top.c (rl_callback_read_char_wrapper): Rename to ...
4597 (gdb_rl_callback_read_char_wrapper): ... this.
4598 (change_line_handler, gdb_setup_readline): Adjust.
4599
3539aa13
YQ
46002016-04-22 Yao Qi <yao.qi@linaro.org>
4601
4602 * aarch32-linux-nat.c (aarch32_gp_regcache_supply): Clear CPSR
4603 bits 20 to 23.
4604
0f60e29b
JB
46052016-04-22 Joel Brobecker <brobecker@adacore.com>
4606
4607 * MAINTAINER: Remove myself as AIX Maintainer.
4608
3877922e
MR
46092016-04-22 Maciej W. Rozycki <macro@imgtec.com>
4610
4611 * mips-tdep.c (mips_gdbarch_init): For GDB_OSABI_LINUX set
4612 `num_regs' to 90 rather than 79. Where a target description is
4613 present adjust the setting appropriately.
4614
88c3cd8d
PA
46152016-04-21 Pedro Alves <palves@redhat.com>
4616
4617 * common/common-exceptions.h (GDB_XCPT_TRY): Add comment.
4618 (GDB_XCPT): Always define as GDB_XCPT_SJMP.
4619
71829b1a
PA
46202016-04-21 Pedro Alves <palves@redhat.com>
4621
4622 * aix-thread.c (pdc_read_data, pdc_write_data): Add cast.
4623 (aix_thread_resume): Use PTRACE_TYPE_ARG5.
4624 * rs6000-nat.c (rs6000_ptrace64): Use PTRACE_TYPE_ARG5.
4625 (rs6000_ptrace_ldinfo): Change type of 'ldi' local to void
4626 pointer, and cast return to gdb_byte pointer.
4627
3451269c
PA
46282016-04-21 Pedro Alves <palves@redhat.com>
4629
4630 * s390-linux-nat.c (fetch_regset, store_regset, check_regset): Use
4631 void * instead of gdb_byte *.
4632
b36cec19
PA
46332016-04-21 Pedro Alves <palves@redhat.com>
4634
4635 * dwarf2read.c (try_open_dwop_file, open_dwo_file)
4636 (file_file_name, file_full_name): Add char * cast to sentinel in
4637 concat/reconcat calls.
4638 * event-top.c (top_level_prompt): Likewise.
4639 * guile/guile.c (initialize_scheme_side): Likewise.
4640 * linux-tdep.c (linux_fill_prpsinfo): Likewise.
4641 * macrotab.c (macro_source_fullname): Likewise.
4642 * main.c (get_init_files, captured_main): Likewise.
4643 * psymtab.c (psymtab_to_fullname): Likewise.
4644 * python/python.c (_initialize_python)
4645 (gdbpy_finish_initialization): Likewise.
4646 * source.c (symtab_to_fullname): Likewise.
4647
a2358508
PA
46482016-04-20 Pedro Alves <palves@redhat.com>
4649
4650 * build-with-cxx.m4 (GDB_AC_BUILD_WITH_CXX): Default to yes.
4651 * configure: Renegerate.
4652
5ae00552
PA
46532016-04-20 Pedro Alves <palves@redhat.com>
4654
4655 * darwin-nat.c (darwin_decode_message): Use gdb_signal_from_host.
4656
d9436c7c
PA
46572016-04-20 Pedro Alves <palves@redhat.com>
4658
4659 * aarch64-tdep.c (aarch64_record_load_store): Change type of
4660 'reg_rm_val' local to ULONGEST.
4661
597e448c
PA
46622016-04-20 Pedro Alves <palves@redhat.com>
4663
4664 * darwin-nat.c (darwin_resume_thread): Add uintptr_t cast.
4665
6c739336
DE
46662016-04-20 Doug Evans <xdje42@gmail.com>
4667
4668 * symmisc.c (dump_symtab_1): Print owning compunit for identical
4669 blockvectors.
4670
8cef59a2
YQ
46712016-04-20 Yao Qi <yao.qi@linaro.org>
4672
4673 * aarch32-linux-nat.c: Include "arch/arm-linux.h".
4674
6885166d
YQ
46752016-04-20 Yao Qi <yao.qi@linaro.org>
4676
4677 * arm-linux-tdep.h (ARM_CPSR_GREGNUM): Move it to ...
4678 * arch/arm-linux.h: ... here.
4679
21002a63
JB
46802016-04-19 John Baldwin <jhb@FreeBSD.org>
4681
4682 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Change xstateregs
4683 to void *.
4684 (amd64bsd_store_inferior_registers): Likewise.
4685 * fbsd-nat.c (resume_one_thread_cb): Explicitly cast data to ptid_t *.
4686 (resume_all_threads_cb): Likewise.
4687 * i386bsd-nat.c (i386bsd_supply_gregset): Cast gregs to char *.
4688 (i386bsd_collect_gregset): Likewise.
4689 (i386bsd_fetch_inferior_registers): Change xstateregs to void *.
4690 (i386bsd_store_inferior_registers): Likewise.
4691
f39c07ac
JB
46922016-04-19 John Baldwin <jhb@FreeBSD.org>
4693
4694 * main.c (setup_alternate_signal_stack): Cast to char *.
4695
d04c1a59
DE
46962016-04-19 Doug Evans <xdje42@gmail.com>
4697
4698 * symmisc.c (dump_symtab_1, dump_symtab): Delete arg objfile.
4699 All callers updated.
4700
a55411b9
DE
47012016-04-19 Doug Evans <xdje42@gmail.com>
4702
ee2915c9 4703 PR gdb/17911
a55411b9
DE
4704 * source.c (is_regular_file): New arg errno_ptr.
4705 All callers updated.
4706
73e6209f
AA
47072016-04-19 Andreas Arnez <arnez@linux.vnet.ibm.com>
4708
4709 * linux-record.c (record_linux_system_call): Merge handling for
4710 readlink/recv/read and pipe/pipe2.
4711
f42bf748
WT
47122016-04-14 Walfred Tedeschi <walfred.tedeschi@intel.com>
4713
4714 * features/i386/amd64-mpx-linux.xml: Remove AVX feature.
4715 * features/i386/amd64-mpx.xml: Remove AVX feature.
4716 * features/i386/i386-mpx-linux.xml: Remove AVX feature.
4717 * features/i386/i386-mpx.xml: Remove AVX feature.
4718 * features/i386/amd64-mpx-linux.c: Regenerate.
4719 * features/i386/amd64-mpx.c: Regenerate.
4720 * features/i386/i386-mpx-linux.c: Regenerate.
4721 * features/i386/i386-mpx.c: Regenerate.
4722 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
4723 * regformats/i386/amd64-mpx.dat: Regenerate.
4724 * regformats/i386/i386-mpx-linux.dat: Regenerate.
4725 * regformats/i386/i386-mpx.dat: Regenerate.
4726
2b863f51
WT
47272016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
4728
4729 * amd64-linux-tdep.c (features/i386/amd64-avx-mpx-linux.c):
4730 New include.
4731 (amd64_linux_core_read_description): Add case for
4732 X86_XSTATE_AVX_MPX_MASK.
4733 (_initialize_amd64_linux_tdep): Call initialize_tdesc_amd64_avx_mpx_linux.
4734 * amd64-linux-tdep.h (tdesc_amd64_avx_mpx_linux): New definition.
4735 * amd64-tdep.c (features/i386/amd64-avx-mpx.c): New include.
4736 (amd64_target_description): Add case for X86_XSTATE_AVX_MPX_MASK.
4737 (_initialize_amd64_tdep): Call initialize_tdesc_amd64_avx_mpx.
4738 * common/x86-xstate.h (X86_XSTATE_MPX_MASK): Remove AVX bits.
4739 (X86_XSTATE_AVX_MPX_MASK): New case.
4740 * features/Makefile (i386/i386-avx-mpx, i386/i386-avx-mpx-linux)
4741 (i386/amd64-avx-mpx, i386/amd64-avx-mpx-linux): New rules.
4742 (i386/i386-avx-mpx-expedite, i386/i386-avx-mpx-linux-expedite)
4743 (i386/amd64-avx-mpx-expedite, i386/amd64-avx-mpx-linux-expedite):
4744 New expedites.
4745 * i386-linux-tdep.c (features/i386/i386-avx-mpx-linux.c): New
4746 include.
4747 (i386_linux_core_read_description): Add case
4748 X86_XSTATE_AVX_MPX_MASK.
4749 (_initialize_i386_linux_tdep): Call
4750 initialize_tdesc_i386_avx_mpx_linux.
4751 * i386-linux-tdep.h (tdesc_i386_avx_mpx_linux): New include.
4752 * i386-tdep.c (features/i386/i386-avx-mpx.c): New include.
4753 (i386_target_description): Add case for X86_XSTATE_AVX_MPX_MASK.
4754 * x86-linux-nat.c (x86_linux_read_description): Add case for
4755 X86_XSTATE_AVX_MPX_MASK.
4756 * features/i386/amd64-avx-mpx-linux.xml: New file.
4757 * features/i386/i386-avx-mpx-linux.xml: New file.
4758 * features/i386/i386-avx-mpx.xml: New file.
4759 * features/i386/amd64-avx-mpx.xml: New file.
4760 * features/i386/amd64-avx-mpx-linux.c: Generated.
4761 * features/i386/amd64-avx-mpx.c: Generated.
4762 * features/i386/i386-avx-mpx-linux.c: Generated.
4763 * features/i386/i386-avx-mpx.c: Generated.
4764 * regformats/i386/amd64-avx-mpx-linux.dat: Generated.
4765 * regformats/i386/amd64-avx-mpx.dat: Generated.
4766 * regformats/i386/i386-avx-mpx-linux.dat: Generated.
4767 * regformats/i386/i386-avx-mpx.dat: Generated.
4768
9b30624b
PA
47692016-04-18 Pedro Alves <palves@redhat.com>
4770
4771 * ptrace.m4 (GDB_AC_PTRACE): Don't run tests in C++ mode.
4772 * configure: Regenerate.
4773
a22df60a
MG
47742016-04-18 Martin Galvan <martin.galvan@tallertechnologies.com>
4775
4776 * valops.c (value_addr): For C++ references, set the copied value's
4777 enclosing_type as well.
4778
5947319e
YQ
47792016-04-18 Yao Qi <yao.qi@linaro.org>
4780
4781 Revert:
4782 2016-04-15 Yao Qi <yao.qi@linaro.org>
4783
4784 * arm-tdep.c (thumb_stack_frame_destroyed_p): Return zero if
4785 PC is far from the end of function.
4786
58484447
PA
47872016-04-16 Pedro Alves <palves@redhat.com>
4788
4789 * ada-exp.y (yydefred): Define as ada_yydefred.
4790
2b2798cc
PA
47912016-04-15 Pedro Alves <palves@redhat.com>
4792
4793 * ada-lang.c (ada_lookup_struct_elt_type): Constify 'type_str' and
4794 'name_str' locals.
4795
d7abe101
PA
47962016-04-15 Pedro Alves <palves@redhat.com>
4797
4798 * btrace.c (pt_btrace_insn_flags): Change return type to
4799 btrace_insn_flags. Use btrace_insn_flags for local.
4800
77770d83
PA
48012016-04-15 Pedro Alves <palves@redhat.com>
4802
4803 * nat/linux-ptrace.h [__mips__] (GDB_ARCH_IS_TRAP_BRKPT): Also
4804 accept TRAP_BRKPT.
4805 [__mips__] (GDB_ARCH_IS_TRAP_HWBKPT): Also accept TRAP_HWBKPT.
4806
415fa612
YQ
48072016-04-15 Yao Qi <yao.qi@linaro.org>
4808
4809 * arm-tdep.c (thumb_stack_frame_destroyed_p): Return zero if
4810 PC is far from the end of function.
4811
7f31862a
PA
48122016-04-14 Pedro Alves <palves@redhat.com>
4813
4814 * cli/cli-cmds.c (alias_usage_error): New function.
4815 (alias_command): Use it.
4816 * ctf.c (ctf_save_metadata_header): Inline metadata_fmt local in
4817 ctf_save_write_metadata call.
4818
aebf07fc
PA
48192016-04-14 Pedro Alves <palves@redhat.com>
4820
4821 * ada-typeprint.c (print_fixed_point_type): Don't pass float as
4822 argument to function expecting LONGEST.
4823 * value.c (unpack_long): Add casts to LONGEST.
4824
57d1de9c
LM
48252016-04-13 Luis Machado <lgustavo@codesourcery.com>
4826
4827 * exec.c (exec_file_locate_attach): Guard a couple functions
4828 that can throw errors.
4829 (exception_print_same): New helper function.
4830
3a00c802
PA
48312016-04-13 Pedro Alves <palves@redhat.com>
4832
4833 PR remote/19840
4834 * remote.c (struct remote_state) <last_resume_exec_dir>: New
4835 field.
4836 (new_remote_state): Default last_resume_exec_dir to EXEC_FORWARD.
4837 (remote_open_1): Reset last_resume_exec_dir to EXEC_FORWARD.
4838 (remote_resume): Store the last execution direction.
4839 (remote_execution_direction): New function.
4840 (init_remote_ops): Install it as to_execution_direction target_ops
4841 method.
4842
0f41b320
PA
48432016-04-12 Pedro Alves <palves@redhat.com>
4844
4845 * common/common-exceptions.h (GDB_XCPT_TRY): Update comment.
4846 [__cplusplus] (GDB_XCPT): Define as GDB_XCPT_TRY.
4847
173981bc
PA
48482016-04-12 Pedro Alves <palves@redhat.com>
4849
4850 * common/common-exceptions.c (struct catcher) <buf>: Now a
4851 'jmp_buf' instead of SIGJMP_BUF.
4852 (exceptions_state_mc_init): Change return type to 'jmp_buf'.
4853 (throw_exception): Use longjmp instead of SIGLONGJMP.
4854 * common/common-exceptions.h: Include <setjmp.h> instead of
4855 "gdb_setjmp.h".
4856 (exceptions_state_mc_init): Change return type to 'jmp_buf'.
4857 [GDB_XCPT == GDB_XCPT_SJMP] (TRY): Use setjmp instead of
4858 SIGSETJMP.
4859 * cp-support.c: Include "gdb_setjmp.h".
4860
2afc13ff
PA
48612016-04-12 Pedro Alves <palves@redhat.com>
4862
4863 * common/common-exceptions.c (exception_rethrow): Remove
4864 prepare_to_throw_exception call.
4865 * common/common-exceptions.h (prepare_to_throw_exception): Delete
4866 declaration.
4867 * exceptions.c (prepare_to_throw_exception): Delete.
4868
cfd0fbdd
PA
48692016-04-12 Pedro Alves <palves@redhat.com>
4870
4871 * target.c (target_check_pending_interrupt): Delete.
4872 * target.h (struct target_ops) <to_check_pending_interrupt>:
4873 Remove method.
4874 (target_check_pending_interrupt): Remove declaration.
4875 * target-delegates.c: Regenerate.
4876
585a46a2
PA
48772016-04-12 Pedro Alves <palves@redhat.com>
4878
4879 * defs.h: Update comments on SIGINT handling.
4880 (immediate_quit): Delete declaration.
4881 * event-loop.c (call_async_signal_handler): Delete.
4882 * event-loop.h (call_async_signal_handler): Delete declaration.
4883 (mark_async_signal_handler): Update comments.
4884 (gdb_call_async_signal_handler): Delete declaration.
4885 * event-top.c (handle_sigint): Call mark_async_signal_handler
4886 instead of gdb_call_async_signal_handler.
4887 * exceptions.c (prepare_to_throw_exception): Remove reference to
4888 immediate_quit.
4889 (exception_fprintf): Remove comments about immediate_quit.
4890 * mingw-hdep.c (sigint_event, sigint_handler): Delete.
4891 (gdb_select): Don't wait on sigint_event.
4892 (gdb_call_async_signal_handler): Delete.
4893 (_initialize_mingw_hdep): Delete.
4894 * posix-hdep.c (gdb_call_async_signal_handler): Delete.
4895 * utils.c (immediate_quit): Delete.
4896
048094ac
PA
48972016-04-12 Pedro Alves <palves@redhat.com>
4898
4899 * defs.h (quit_handler_ftype, quit_handler)
4900 (make_cleanup_override_quit_handler, default_quit_handler): New.
4901 (QUIT): Adjust comments.
4902 * event-top.c (default_quit_handler): New function.
4903 (quit_handler): New global.
4904 (struct quit_handler_cleanup_data): New.
4905 (restore_quit_handler, restore_quit_handler_dtor)
4906 (make_cleanup_override_quit_handler): New.
4907 (async_request_quit): Call QUIT.
4908 * remote.c (struct remote_state) <got_ctrlc_during_io>: New field.
4909 (async_sigint_remote_twice_token, async_sigint_remote_token):
4910 Delete.
4911 (remote_close): Update comments.
4912 (remote_start_remote): Don't set immediate_quit. Set starting_up
4913 earlier.
4914 (remote_serial_quit_handler, remote_unpush_and_throw): New
4915 functions.
4916 (remote_open_1): Clear got_ctrlc_during_io. Set
4917 remote_async_terminal_ours_p unconditionally.
4918 (async_initialize_sigint_signal_handler)
4919 (async_handle_remote_sigint, async_handle_remote_sigint_twice)
4920 (remote_check_pending_interrupt, async_remote_interrupt)
4921 (async_remote_interrupt_twice)
4922 (async_cleanup_sigint_signal_handler, ofunc)
4923 (sync_remote_interrupt, sync_remote_interrupt_twice): Delete.
4924 (remote_terminal_inferior, remote_terminal_ours): Remove async
4925 checks.
4926 (remote_wait_as): Don't install a SIGINT handler in sync mode.
4927 (readchar, remote_serial_write): Override the quit handler with
4928 remote_serial_quit_handler.
4929 (getpkt_or_notif_sane_1): Don't call QUIT.
4930 (initialize_remote_ops): Don't install
4931 remote_check_pending_interrupt.
4932 (_initialize_remote): Don't create async_sigint_remote_token and
4933 async_sigint_remote_twice_token.
4934 * ser-base.c (ser_base_wait_for): Call QUIT and use
4935 interruptible_select.
4936 (ser_base_write): Call QUIT.
4937 * ser-go32.c (dos_readchar, dos_write): Call QUIT.
4938 * ser-unix.c (wait_for): Don't use VTIME. Always take the
4939 gdb_select path, but call QUIT and interruptible_select.
4940 * utils.c (maybe_quit): Call the current quit handler. Don't call
4941 target_check_pending_interrupt.
4942 (defaulted_query, prompt_for_continue): Override the quit handler
4943 with the default quit handler.
4944
a12ac513
PA
49452016-04-12 Pedro Alves <palves@redhat.com>
4946
4947 * tui/tui-hooks.c (tui_target_has_run): Delete.
4948 (tui_about_to_proceed): Delete.
4949 (tui_about_to_proceed_observer): Delete.
4950 (tui_install_hooks, tui_remove_hooks): Don't install/remove an
4951 about_to_proceed observer.
4952
5fe96654
PA
49532016-04-12 Pedro Alves <palves@redhat.com>
4954
4955 * mi/mi-interp.c (mi_new_thread): Put
4956 target_terminal_ours_for_output in effect while outputting.
4957 (mi_thread_exit): Use target_terminal_ours_for_output instead of
4958 target_terminal_ours.
4959 (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
4960 (mi_inferior_exit, mi_inferior_removed, mi_traceframe_changed)
4961 (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
4962 (mi_breakpoint_created, mi_breakpoint_deleted)
4963 (mi_breakpoint_modified, mi_solib_loaded, mi_solib_unloaded)
4964 (mi_command_param_changed, mi_memory_changed)
4965 (report_initial_inferior): Use target_terminal_ours_for_output
4966 instead of target_terminal_ours. Restore terminal settings.
4967 * mi/mi-main.c (mi_execute_command): Use
4968 target_terminal_ours_for_output instead of target_terminal_ours.
4969 Restore terminal settings.
4970
651ce16a
PA
49712016-04-12 Pedro Alves <palves@redhat.com>
4972
4973 PR gdb/19828
4974 * gnu-nat.c (inf_validate_task_sc): Don't call
4975 target_terminal_ours / target_terminal_inferior around query.
4976 * i386-tdep.c (i386_record_lea_modrm, i386_process_record): Don't
4977 call target_terminal_ours / target_terminal_inferior around
4978 yquery.
4979 * linux-record.c (record_linux_system_call): Don't call
4980 target_terminal_ours / target_terminal_inferior around yquery.
4981 * nto-procfs.c (interrupt_query): Don't call target_terminal_ours
4982 / target_terminal_inferior around query.
4983 * record-full.c (record_full_check_insn_num): Remove
4984 'set_terminal' parameter. Don't call target_terminal_ours /
4985 target_terminal_inferior around query.
4986 (record_full_message, record_full_registers_change)
4987 (record_full_xfer_partial): Adjust.
4988 * remote.c (interrupt_query): Don't call target_terminal_ours /
4989 target_terminal_inferior around query.
4990 * utils.c (defaulted_query): Install cleanup to restore target
4991 terminal. Put target_terminal_ours_for_output in effect while
4992 defaulted producing, and target_terminal_ours in in effect while
4993 handling input.
4994 (prompt_for_continue): Install cleanup to restore target terminal.
4995 Put target_terminal_ours in in effect while handling input.
4996
80dbc9fd
PA
49972016-04-12 Pedro Alves <palves@redhat.com>
4998
4999 * utils.c (defaulted_query, prompt_for_continue): Free temporary
5000 strings with cleanups, instead of xfree.
5001
c5ac1540
PA
50022016-04-12 Pedro Alves <palves@redhat.com>
5003
5004 * utils.c (vwarning, internal_vproblem): Use
5005 make_cleanup_restore_target_terminal and
5006 target_terminal_ours_for_output.
5007
f8e3ef9d
PA
50082016-04-12 Pedro Alves <palves@redhat.com>
5009
5010 * infcmd.c (post_create_inferior, prepare_one_step): Use
5011 target_terminal_ours_for_output instead of target_terminal_ours.
5012
481ac8c9
PA
50132016-04-12 Pedro Alves <palves@redhat.com>
5014
5015 * exceptions.c (print_flush): Use target_terminal_ours_for_output
5016 instead of target_terminal_ours, and restore target terminal with
5017 a cleanup.
5018
c509f1e1
PA
50192016-04-12 Pedro Alves <palves@redhat.com>
5020
5021 * cp-support.c (gdb_demangle): Use target_terminal_ours_for_output
5022 instead of target_terminal_ours, and restore target terminal with
5023 a cleanup.
5024
99bbb428
PA
50252016-04-12 Pedro Alves <palves@redhat.com>
5026
5027 * ada-lang.c (type_as_string, type_as_string_and_cleanup): New
5028 functions.
5029 (ada_lookup_struct_elt_type): Use type_as_string_and_cleanup.
5030
75ee5925
PA
50312016-04-12 Pedro Alves <palves@redhat.com>
5032
5033 * ser-base.c (fd_event): Retry read_prim on EINTR.
5034 (do_ser_base_readchar): Retry read_prim on EINTR.
5035 (ser_base_write): Retry write_prim on EINTR.
5036 * ser-unix.c (ser_unix_read_prim): Don't retry on EINTR here.
5037 (ser_unix_write_prim): Remove comment.
5038
93692b58
PA
50392016-04-12 Pedro Alves <palves@redhat.com>
5040
5041 * remote.c (remote_pass_ctrlc): New function.
5042 (init_remote_ops): Install it.
5043 * target.c (target_terminal_inferior): Pass pending Ctrl-C to the
5044 target.
5045 (target_pass_ctrlc, default_target_pass_ctrlc): New functions.
5046 * target.h (struct target_ops) <to_pass_ctrlc>: New method.
5047 (target_pass_ctrlc, default_target_pass_ctrlc): New declarations.
5048 * target-delegates.c: Regenerate.
5049
e42de8c7
PA
50502016-04-12 Pedro Alves <palves@redhat.com>
5051
5052 * infcmd.c (interrupt_target_1): Call target_stop is in non-stop
5053 mode.
5054 * linux-nat.c (linux_nat_interrupt): Delete.
5055 (linux_nat_add_target): Don't install linux_nat_interrupt.
5056 * remote.c (remote_interrupt_ns): Change return type to void.
5057 Throw error if interrupting the target is not supported.
5058 (remote_interrupt): Don't call the remote_stop_ns/remote_stop_as.
5059
a149683b
PA
50602016-04-12 Pedro Alves <palves@redhat.com>
5061
5062 * defs.h (clear_quit_flag): Remove declaration.
5063 * extension-priv.h (struct extension_language_ops)
5064 <clear_quit_flag>: Remove field and update comments.
5065 * extension.c (clear_quit_flag): Delete.
5066 * guile/guile.c (guile_extension_ops): Adjust.
5067 * python/python.c (python_extension_ops): Adjust.
5068 (gdbpy_clear_quit_flag): Delete.
5069
da1e5f54
PA
50702016-04-12 Pedro Alves <palves@redhat.com>
5071
5072 * main.c (captured_main): Don't clear the quit flag.
5073
0af679c6
PA
50742016-04-12 Pedro Alves <palves@redhat.com>
5075
5076 * exceptions.c (prepare_to_throw_exception): Don't clear the quit
5077 flag.
5078
4a81fd47
PA
50792016-04-12 Pedro Alves <palves@redhat.com>
5080
5081 * event-top.c (command_handler): Don't call clear_quit_flag.
5082
abf009ef
PA
50832016-04-12 Pedro Alves <palves@redhat.com>
5084
5085 * remote-sim.c (gdb_os_poll_quit): Don't call clear_quit_flag.
5086 * remote.c (remote_wait_as): Don't call clear_quit_flag.
5087
6eddd09a
PA
50882016-04-12 Pedro Alves <palves@redhat.com>
5089
5090 * python/python.c: Include "ser-event.h".
5091 (gdbpy_event_fds): Delete.
5092 (gdbpy_serial_event): New.
5093 (gdbpy_run_events): Change prototype. Use serial_event_clear
5094 instead of serial_readchar.
5095 (gdbpy_post_event): Use serial_event_set instead of serial_write.
5096 (gdbpy_initialize_events): Use make_serial_event instead of
5097 serial_pipe.
5098
f0881b37
PA
50992016-04-12 Pedro Alves <palves@redhat.com>
5100
5101 * defs.h: Extend QUIT-related comments to mention
5102 interruptible_select.
5103 (quit_serial_event_set, quit_serial_event_clear): Declare.
5104 * event-top.c: Include "ser-event.h" and "gdb_select.h".
5105 (quit_serial_event): New global.
5106 (async_init_signals): Make quit_serial_event.
5107 (quit_serial_event_set, quit_serial_event_clear)
5108 (quit_serial_event_fd, interruptible_select): New functions.
5109 * extension.c (set_quit_flag): Set the quit serial event.
5110 (check_quit_flag): Clear the quit serial event.
5111 * gdb_select.h (interruptible_select): New declaration.
5112 * guile/scm-ports.c (ioscm_input_waiting): Use
5113 interruptible_select instead of gdb_select.
5114 * top.c (gdb_readline_no_editing): Likewise.
5115 * ui-file.c (stdio_file_read): Likewise.
5116
5cc3ce8b
PA
51172016-04-12 Pedro Alves <palves@redhat.com>
5118
5119 * event-loop.c: Include "ser-event.h".
5120 (async_signal_handlers_serial_event): New global.
5121 (async_signals_handler, initialize_async_signal_handlers): New
5122 functions.
5123 (mark_async_signal_handler): Set
5124 async_signal_handlers_serial_event.
5125 (invoke_async_signal_handlers): Clear
5126 async_signal_handlers_serial_event.
5127 * event-top.c (async_init_signals): Call
5128 initialize_async_signal_handlers.
5129
00340e1b
PA
51302016-04-12 Pedro Alves <palves@redhat.com>
5131
5132 * Makefile.in (SFILES): Add ser-event.c.
5133 (HFILES_NO_SRCDIR): Add ser-event.h.
5134 (COMMON_OBS): Add ser-event.o.
5135 * ser-event.c, ser-event.h: New files.
5136 * serial.c (new_serial): New function, factored out from
5137 (serial_fdopen_ops): ... this.
5138 (serial_open_ops_1): New function, factored out from
5139 (serial_open): ... this.
5140 (serial_open_ops): New function.
5141 * serial.h (struct serial): Forware declare.
5142 (serial_open_ops): New declaration.
5143
5f5219fc
PA
51442016-04-12 Pedro Alves <palves@redhat.com>
5145
5146 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
5147 Remove references to name.
5148 * serial.h (struct serial) <name>: Delete.
5149
acd5494d
PA
51502016-04-12 Pedro Alves <palves@redhat.com>
5151
5152 * remote-fileio.c (sigint_fileio_token, remote_fio_no_longjmp):
5153 Delete.
5154 (async_remote_fileio_interrupt): Delete.
5155 (remote_fileio_ctrl_c_signal_handler): Don't call the async signal
5156 handler. Instead just always set the ctrl_c flag.
5157 (remote_fileio_reply): Clear remote_fio_ctrl_c_flag before
5158 re-enabling the SIGINT handler.
5159 (remote_fileio_func_open, remote_fileio_func_close)
5160 (remote_fileio_func_read, remote_fileio_func_write)
5161 (remote_fileio_func_lseek, remote_fileio_func_rename)
5162 (remote_fileio_func_unlink, remote_fileio_func_stat)
5163 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
5164 (remote_fileio_func_isatty, remote_fileio_func_system)
5165 (remote_fileio_request): Remove references to
5166 remote_fio_no_longjmp.
5167 (initialize_remote_fileio): Don't create an async signal handler.
5168
d2acc30b
PA
51692016-04-12 Pedro Alves <palves@redhat.com>
5170
5171 * event-top.c (stdin_event_handler): Call QUIT;
5172 (prompt_for_continue): Don't run with immediate_quit set.
5173
ab33ab13
PA
51742016-04-12 Pedro Alves <palves@redhat.com>
5175
5176 * tui/tui-io.c (tui_redisplay_readline): Check
5177 gdb_in_secondary_prompt_p instead of immediate_quit.
5178 * tui/tui.c: Include top.h.
5179 (tui_rl_startup_hook): Check gdb_in_secondary_prompt_p instead of
5180 immediate_quit.
5181
faa4ebe1
PA
51822016-04-12 Pedro Alves <palves@redhat.com>
5183
5184 * top.c (read_command_file): Inline command_loop here.
5185 (command_loop): Delete.
5186
3212b858
PA
51872016-04-12 Pedro Alves <palves@redhat.com>
5188
5189 * top.c: Include "gdb_select.h".
5190 (gdb_readline_no_editing): Wait for input with gdb_select instead
5191 of blocking in fgetc.
5192 (command_line_input): Don't set immediate_quit.
5193
4bf7b526
MG
51942016-04-08 Martin Galvan <martin.galvan@tallertechnologies.com>
5195
5196 * value.c (value_next): Make pass-by-reference parameters const-correct.
5197 (value_parent): Likewise.
5198 (value_enclosing_type): Likewise.
5199 (value_lazy): Likewise.
5200 (value_stack): Likewise.
5201 (value_embedded_offset): Likewise.
5202 (value_pointed_to_offset): Likewise.
5203 (value_raw_address): Likewise.
5204 (deprecated_value_modifiable): Likewise.
5205 (value_free_to_mark): Likewise.
5206 (value_release_to_mark): Likewise.
5207 (internalvar_name): Likewise.
5208 (readjust_indirect_value_type): Likewise.
5209 (value_initialized): Likewise.
5210 * value.h (value_next): Likewise.
5211 (value_parent): Likewise.
5212 (value_enclosing_type): Likewise.
5213 (value_lazy): Likewise.
5214 (value_stack): Likewise.
5215 (value_embedded_offset): Likewise.
5216 (value_pointed_to_offset): Likewise.
5217 (value_raw_address): Likewise.
5218 (deprecated_value_modifiable): Likewise.
5219 (value_free_to_mark): Likewise.
5220 (value_release_to_mark): Likewise.
5221 (internalvar_name): Likewise.
5222 (readjust_indirect_value_type): Likewise.
5223 (value_initialized): Likewise.
5224
e390720b
YQ
52252016-04-07 Yao Qi <yao.qi@linaro.org>
5226
5227 * record-full.c (record_full_insert_breakpoint): Return
5228 early if entry on the address is found in
5229 record_full_breakpoints.
5230
1ccd06e4
YQ
52312016-04-07 Yao Qi <yao.qi@linaro.org>
5232
5233 * record-full.c (record_full_insert_breakpoint): Set
5234 bp_tgt->reqstd_address and bp_tgt->placed_size.
5235
ecf2e90c
DB
52362016-04-06 Don Breazeal <donb@codesourcery.com>
5237
5238 * value.c (value_actual_type): Don't try to get rtti type
5239 of the value if it has been optimized out.
5240 (value_optimized_out): If a memory access error occurs,
5241 just check vaue->optimized_out.
5242
14731617
JK
52432016-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5244
5245 Revert the previous commit adding unknown_v_replies_ok.
5246
319cb5d0
JK
52472016-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5248
5249 * remote.c (struct remote_state): New field unknown_v_replies_ok.
5250 (packet_config_support): Read it.
5251 (remote_start_remote): Set it.
5252
052d2eb2
JK
52532016-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5254
5255 * remote.c: Revert check-in by a mistake in the previous commit.
5256
fef3cb9f
JK
52572016-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5258 Pedro Alves <palves@redhat.com>
5259
5260 * exec.c (exec_file_locate_attach): Print warning for unsupported
5261 target_pid_to_exec_file.
5262 * symfile-mem.c (add_vsyscall_page): Remove the "file" command
5263 message part.
5264
2aa08bd1
SM
52652016-04-04 Simon Marchi <simon.marchi@ericsson.com>
5266
5267 * cli/cli-decode.c (help_cmd_list): Fix function doc and remove
5268 trailing spaces.
5269
cc63428a
AV
52702016-04-01 Artemiy Volkov <artemiyv@acm.org>
5271
5272 PR gdb/19820
5273 * eval.c (evaluate_subexp_standard): Allow TYPE_CODE_ENUM to be
5274 the type of BINOP_REPEAT's second operand.
5275
9bb84c9f
YY
52762016-03-31 Yichao Yu <yyc1992@gmail.com>
5277
5278 PR gdb/19858
5279 * jit.c (jit_breakpoint_re_set_internal): Return 0 if we already
5280 got the breakpoint at the right address.
5281 (jit_inferior_created): New function.
5282 (_initialize_jit): Install jit_inferior_created as
5283 inferior_created observer.
5284
22084c42
MK
52852016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
5286
5287 * NEWS: Mention support for tracepoints on powerpc*-linux.
5288
e7ea3ec7
CU
52892016-03-31 Catalin Udma <catalin.udma@freescale.com>
5290
5291 PR python/19743
5292 * python/python.c (execute_gdb_command): Use console uiout
5293 when executing gdb command.
5294 * utils.c (restore_ui_out_closure): New structure.
5295 (do_restore_ui_out): New function.
5296 (make_cleanup_restore_ui_out): Likewise.
5297 * utils.h (make_cleanup_restore_ui_out): Declare.
5298
f7c38292
PA
52992016-03-31 Pedro Alves <palves@redhat.com>
5300
5301 * NEWS: Mention that support for "target m32rsdi", "target mips",
5302 "target pmon", "target ddb", "target rockhopper", and "target lsi"
5303 was removed.
5304 * Makefile.in (ALL_TARGET_OBS): Remove remote-m32r-sdi.o and
5305 remote-mips.o.
5306 (ALLDEPFILES): Remove remote-m32r-sdi.c and remote-mips.c.
5307 * configure.tgt: Remove all references to remote-m32r-sdi.o and
5308 remote-mips.o.
5309 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Delete
5310 function.
5311 * mips-tdep.h (deprecated_mips_set_processor_regs_hack): Delete
5312 declaration.
5313 * remote-m32r-sdi.c, remote-mips.c: Delete files.
5314 * symfile.c (generic_load, generic_load): Remove comments.
5315
fb3f3d25
YQ
53162016-03-30 Yao Qi <yao.qi@linaro.org>
5317
5318 * arm-tdep.c (arm_epilogue_frame_this_id): Check 'func' against
5319 0 rather than NULL.
5320
779aa56f
YQ
53212016-03-30 Yao Qi <yao.qi@linaro.org>
5322
5323 * arm-tdep.c: (arm_make_epilogue_frame_cache): New function.
5324 (arm_epilogue_frame_this_id): New function.
5325 (arm_epilogue_frame_prev_register): New function.
5326 (arm_epilogue_frame_sniffer): New function.
5327 (arm_epilogue_frame_unwind): New.
5328 (arm_gdbarch_init): Append unwinder arm_epilogue_frame_unwind.
5329
c58b006a
YQ
53302016-03-30 Yao Qi <yao.qi@linaro.org>
5331
5332 * arm-tdep.c (arm_stack_frame_destroyed_p): Rename it ...
5333 (arm_stack_frame_destroyed_p_1): ... here. Don't call
5334 arm_pc_is_thumb.
5335 (arm_stack_frame_destroyed_p): Call
5336 thumb_stack_frame_destroyed_p and
5337 arm_stack_frame_destroyed_p_1.
5338
4ae6cc19
DE
53392016-03-30 Doug Evans <dje@google.com>
5340
5341 * python/py-utils.c (host_string_to_python_string): New function.
5342 * python/python-internal.h (host_string_to_python_string): Declare it.
5343 * python/py-*.c (*): Update all calls to
5344 PyString_Decode (str, strlen (str), host_charset (), NULL);
5345 to use host_string_to_python_string instead.
5346
28170b88
MK
53472016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
5348
5349 * remote.c (remote_check_symbols): Allocate own buffer for reply.
5350
a08b52b5
MF
53512016-03-29 Max Filippov <jcmvbkbc@gmail.com>
5352
5353 * xtensa-tdep.c (xtensa_frame_cache): Change op1 type to LONGEST.
5354 Use safe_read_memory_integer instead of read_memory_integer.
5355
c37c0ba6
MK
53562016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
5357
5358 * NEWS: Mention support for tracepoints on s390*-linux.
5359
444bca65
DB
53602016-03-29 Don Breazeal <donb@codesourcery.com>
5361
5362 * gdb/value.c (value_actual_type): Fix formatting issue.
5363
cc651c1c
YQ
53642016-03-23 Yao Qi <yao.qi@linaro.org>
5365
5366 * gdbarch.sh (software_single_step): Remove comments.
5367 * gdbarch.h: Regenerated.
5368
c55978a6
YQ
53692016-03-21 Yao Qi <yao.qi@linaro.org>
5370
5371 * arm-tdep.c (arm_record_media): New.
5372 (arm_record_ld_st_reg_offset): Call arm_record_media.
5373
479fe002
YQ
53742016-03-21 Yao Qi <yao.qi@linaro.org>
5375
5376 * arm-linux-tdep.c (arm_canonicalize_syscall): Canonicalize
5377 more syscalls.
5378
9c3f2234
YQ
53792016-03-18 Yao Qi <yao.qi@linaro.org>
5380
5381 * sparc-tdep.c (sparc_software_single_step): Make it static.
5382 * sparc-tdep.h (sparc_software_single_step): Remove declaration.
5383
941319d1
YQ
53842016-03-18 Yao Qi <yao.qi@linaro.org>
5385
5386 * spu-tdep.c (spu_software_single_step): Throw error when
5387 target_read_memory fails.
5388
708bf0a1
JK
53892016-03-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5390
5391 * linux-thread-db.c (check_pid_namespace_match): Extend the message.
5392
0d5b594f
PA
53932016-03-17 Pedro Alves <palves@redhat.com>
5394 Don Breazeal <donb@codesourcery.com>
5395
5396 PR remote/19496
5397 * infcmd.c (notice_new_inferior): Use the 'leave_running' argument
5398 instead of checking the 'non_stop' global.
5399 * remote.c (remote_add_thread): New parameter 'executing'. Use it
5400 to set the new thread's executing state.
5401 (remote_notice_new_inferior): Rename parameter 'running' to
5402 'executing'. Always set the thread state to THREAD_RUNNING in
5403 non-stop mode, and to THREAD_STOPPED in all-stop mode. Pass
5404 EXECUTING to remote_add_thread and notice_new_inferior.
5405 (remote_update_thread_list): Update to pass executing state, not
5406 running state.
5407
bba960fc
AA
54082016-03-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
5409
5410 * syscalls/s390-linux.xml: Add NUMA syscalls and new syscalls up
5411 to 374.
5412 * syscalls/s390x-linux.xml: Likewise.
5413
5fd0888a
AA
54142016-03-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
5415
5416 * linux-record.c (record_mem_at_reg): New helper function.
5417 (record_linux_system_call): Exploit new helper function where
5418 applicable.
5419
0fc8f115
AA
54202016-03-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
5421
5422 * linux-record.c: Fix whitespace issues; tabify, remove trailing
5423 spaces.
5424
afdab916
AA
54252016-03-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
5426
5427 * linux-record.c (record_linux_system_call): Add missing return
5428 statements to handling of pipe and pipe2 syscalls.
5429
bfeeb14b
DE
54302016-03-16 Doug Evans <dje@google.com>
5431
5432 * xml-tdesc.c (tdesc_start_enum): Fix c++ build.
5433
6b94a855
YQ
54342016-03-16 Yao Qi <yao.qi@linaro.org>
5435
5436 * arm-linux-tdep.c (arm_linux_init_abi): Fix
5437 arm_linux_record_tdep.arg1, arm_linux_record_tdep.arg2 and
5438 arm_linux_record_tdep.arg3. Set arm_linux_record_tdep.arg4,
5439 arm_linux_record_tdep.arg5, arm_linux_record_tdep.arg6, and
5440 arm_linux_record_tdep.arg7.
5441
1cafadb4
DB
54422016-03-15 Keith Seitz <keiths@redhat.com>
5443
5444 PR breakpoints/18303
5445 * cp-namespace.c (cp_lookup_bare_symbol): Change assertion to
5446 look for "::" instead of simply ":".
5447 (cp_search_static_and_baseclasses): Return null_block_symbol for
5448 malformed input.
5449 Remove assertions.
5450 * cp-support.c (cp_find_first_component_aux): Do not return
5451 a prefix length for ':' unless the next character is also ':'.
5452
89c200ed
DE
54532016-03-15 Doug Evans <dje@google.com>
5454
5455 * features/aarch64-core.xml (cpsr_flags): New flags type.
5456 (cpsr): Use it.
5457 * features/aarch64.c: Regenerate.
5458
49b7ae7b
DE
54592016-03-15 Doug Evans <dje@google.com>
5460
5461 * features/i386/32bit-core.xml (i386_eflags): Remove "end" spec.
5462 * features/i386/32bit-sse.xml (i386_eflags): Ditto.
5463 * features/i386/64bit-core.xml (i386_eflags): Ditto.
5464 * features/i386/64bit-sse.xml (i386_eflags): Ditto.
5465 * features/i386/x32-core.xml (i386_eflags): Ditto.
5466
81516450 54672016-03-15 Doug Evans <dje@google.com>
79427bd2 5468 Wei-cheng Wang <cole945@gmail.com>
81516450
DE
5469
5470 Extend flags to support multibit and enum bitfields.
79427bd2 5471 * NEWS: Document new features.
81516450
DE
5472 * c-typeprint.c (c_type_print_varspec_prefix): Handle TYPE_CODE_FLAGS.
5473 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
5474 * gdbtypes.c (arch_flags_type): Don't assume all fields are one bit.
5475 (append_flags_type_field): New function.
5476 (append_flags_type_flag): Call it.
5477 * gdbtypes.h (append_flags_type_field): Declare.
5478 * target-descriptions.c (struct tdesc_type_flag): Delete.
5479 (enum tdesc_type_kind) <TDESC_TYPE_BOOL>: New enum value.
5480 (enum tdesc_type_kind) <TDESC_TYPE_ENUM>: Ditto.
5481 (struct tdesc_type) <u.f>: Delete.
5482 (tdesc_predefined_types): Add "bool".
5483 (tdesc_predefined_type): New function.
5484 (tdesc_gdb_type): Handle TDESC_TYPE_BOOL, TDESC_TYPE_ENUM.
5485 Update TDESC_TYPE_FLAGS support.
5486 (tdesc_free_type): Handle TDESC_TYPE_ENUM. Update TDESC_TYPE_FLAGS.
5487 (tdesc_create_flags): Update.
5488 (tdesc_create_enum): New function.
5489 (tdesc_add_field): Initialize start,end to -1.
5490 (tdesc_add_typed_bitfield): New function.
5491 (tdesc_add_bitfield): Call it.
5492 (tdesc_add_flag): Allow TDESC_TYPE_STRUCT. Update.
5493 (tdesc_add_enum_value): New function.
5494 (maint_print_c_tdesc_cmd): Fold TDESC_TYPE_FLAGS support into
5495 TDESC_TYPE_STRUCT. Handle TDESC_TYPE_ENUM.
5496 * target-descriptions.h (tdesc_create_enum): Declare.
5497 (tdesc_add_typed_bitfield, tdesc_add_enum_value): Declare.
5498 * valprint.c (generic_val_print_enum_1): New function.
5499 (generic_val_print_enum): Call it.
5500 (val_print_type_code_flags): Make static. Handle multibit bitfields
5501 and enum bitfields.
5502 * valprint.h (val_print_type_code_flags): Delete.
5503 * xml-tdesc.c (struct tdesc_parsing_data) <current_type_is_flags>:
5504 Delete. All uses removed.
5505 (tdesc_start_enum): New function.
5506 (tdesc_start_field): Handle multibit and enum bitfields.
5507 (tdesc_start_enum_value): New function.
5508 (enum_value_attributes, enum_children, enum_attributes): New static
5509 globals.
5510 (feature_children): Add "enum".
5511 * features/gdb-target.dtd (enum, evalue): New elements.
5512
54157a25
DE
55132016-03-15 Doug Evans <dje@google.com>
5514
5515 * target-descriptions.c (struct tdesc_type) <u.u.size>: Change type
5516 from LONGEST to int.
5517 (struct tdesc_type) <u.f.size>: Ditto.
5518 (tdesc_set_struct_size): Change type of "size" arg from LONGEST
5519 to int. Add assertion size > 0.
5520 (tdesc_create_flags): Ditto.
5521 * target-descriptions.h (tdesc_set_struct_size): Update.
5522 (tdesc_create_flags): Update.
5523 * xml-tdesc.c (MAX_FIELD_SIZE, MAX_FIELD_BITSIZE): New macros.
5524 (MAX_VECTOR_SIZE): New macro.
5525 (tdesc_start_struct): Catch conversion errors from LONGEST to int.
5526 (tdesc_start_flags, tdesc_start_field, tdesc_start_vector): Ditto.
5527
73b4f516
DE
55282016-03-15 Doug Evans <dje@google.com>
5529
5530 * target-descriptions.c (maint_print_c_tdesc_cmd): Use "type" for
5531 TYPE_CODE_FLAGS instead of "field_type", for consistency.
5532 * features/i386/amd64-avx-linux.c: Regenerate.
5533 * features/i386/amd64-avx.c: Regenerate.
5534 * features/i386/amd64-avx512-linux.c: Regenerate.
5535 * features/i386/amd64-avx512.c: Regenerate.
5536 * features/i386/amd64-linux.c: Regenerate.
5537 * features/i386/amd64-mpx-linux.c: Regenerate.
5538 * features/i386/amd64-mpx.c: Regenerate.
5539 * features/i386/amd64.c: Regenerate.
5540 * features/i386/i386-avx-linux.c: Regenerate.
5541 * features/i386/i386-avx.c: Regenerate.
5542 * features/i386/i386-avx512-linux.c: Regenerate.
5543 * features/i386/i386-avx512.c: Regenerate.
5544 * features/i386/i386-linux.c: Regenerate.
5545 * features/i386/i386-mmx-linux.c: Regenerate.
5546 * features/i386/i386-mmx.c: Regenerate.
5547 * features/i386/i386-mpx-linux.c: Regenerate.
5548 * features/i386/i386-mpx.c: Regenerate.
5549 * features/i386/i386.c: Regenerate.
5550 * features/i386/x32-avx-linux.c: Regenerate.
5551 * features/i386/x32-avx.c: Regenerate.
5552 * features/i386/x32-avx512-linux.c: Regenerate.
5553 * features/i386/x32-avx512.c: Regenerate.
5554 * features/i386/x32-linux.c: Regenerate.
5555 * features/i386/x32.c: Regenerate.
5556
1eb2dbb8
PA
55572016-03-15 Pedro Alves <palves@redhat.com>
5558
5559 PR gdb/19676
5560 * linux-thread-db.c (try_thread_db_load_1): Leave
5561 info->td_ta_thr_iter_p NULL iff debugging a live process and we
5562 have /proc access.
5563 (find_new_threads_once): Assert that we have a non-NULL
5564 info->td_ta_thr_iter_p instead of checking whether the target has
5565 execution.
5566
16b41842
PA
55672016-03-15 Pedro Alves <palves@redhat.com>
5568
5569 PR gdb/19676
5570 * infrun.c (displaced_step_prepare): Also disable displaced
5571 stepping on NOT_SUPPORTED_ERROR.
5572 * linux-tdep.c (linux_displaced_step_location): If reading auxv
5573 fails, throw NOT_SUPPORTED_ERROR instead of generic error.
5574
70104a90
MK
55752016-03-13 Marcin Kościelnicki <koriakin@0x04.net>
5576
5577 * s390-linux-tdep.c (s390_gen_return_address): New function.
5578 (s390_gdbarch_init): Fill gen_return_address hook.
5579
f2403c39
AB
55802016-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
5581
5582 * symmisc.c (maintenance_info_line_tables): New function.
5583 (maintenance_print_one_line_table): New function.
5584 (_initialize_symmisc): Register 'maint info line-table' command.
5585 * NEWS: Mention new command.
5586
c4b3e547
MK
55872016-03-11 Marcin Kościelnicki <koriakin@0x04.net>
5588
5589 * s390-linux-tdep.c (s390_ax_pseudo_register_collect): New function.
5590 (s390_ax_pseudo_register_push_stack): New function.
5591 (s390_gdbarch_init): Fill ax_pseudo_register_collect and
5592 ax_pseudo_register_push_stack hooks.
5593
f2f3ccb9
SM
55942016-03-10 Simon Marchi <simon.marchi@polymtl.ca>
5595
5596 * data-directory/Makefile.in (PYTHON_FILE_LIST): Install
5597 gdb/function/as_string.py.
5598 * python/lib/gdb/function/as_string.py: New file.
5599 * NEWS: Mention the new $_as_string function.
5600
2343b78a
JM
56012016-03-09 Jose E. Marchesi <jose.marchesi@oracle.com>
5602
5603 * target.h: Fix doc string of target_can_use_hardware_watchpoint.
5604
b69d38af
PA
56052016-03-09 Pedro Alves <palves@redhat.com>
5606
5607 * event-top.c (more_to_come): Delete.
5608 (struct readline_input_state): Delete.
5609 (readline_input_state): Delete.
5610 (get_command_line_buffer): New function.
5611 (command_handler): Update comments. Don't handle NULL commands
5612 here. Do not execute commented lines.
5613 (command_line_append_input_line): New function.
5614 (handle_line_of_input): New function, partly based on
5615 command_line_handler and command_line_input.
5616 (command_line_handler): Rewrite.
5617 * event-top.h (command_handler): New declaration.
5618 (command_loop): Defer command execution to command_handler.
5619 (command_line_input): Update comments. Simplify, using struct
5620 buffer and handle_line_of_input.
5621 * top.h (struct buffer): New forward declaration.
5622 (handle_line_of_input): New declaration.
5623
2669cade
PA
56242016-03-09 Pedro Alves <palves@redhat.com>
5625
5626 * event-top.c (command_line_handler): Use xfree + xstrdup instead
5627 of xrealloc + strcpy.
5628 * main.c (captured_main): Use xstrdup instead of xmalloc plus
5629 manual clear.
5630 * top.c (saved_command_line): Rewrite comment.
5631 (saved_command_line_size): Delete.
5632 (command_line_input): Use xfree + xstrdup instead of xrealloc +
5633 strcpy.
5634 * top.h (saved_command_line_size): Delete declaration.
5635
187212b3
PA
56362016-03-09 Pedro Alves <palves@redhat.com>
5637
5638 * event-top.c: Include buffer.h.
5639 (gdb_readline_no_editing_callback): Use struct buffer instead
5640 of xrealloc.
5641
7a3bde34
PA
56422016-03-09 Pedro Alves <palves@redhat.com>
5643
5644 * common/buffer.h (buffer_grow_char): New function.
5645 * top.c: Include buffer.h.
5646 (gdb_readline_no_editing): Rename 'prompt_arg' parameter to
5647 'prompt'. Use struct buffer instead of xrealloc.
5648
c5c136ea
PA
56492016-03-09 Pedro Alves <palves@redhat.com>
5650
5651 * defs.h (gdb_readline): Delete declaration.
5652 * top.c (gdb_readline): Rename to ...
5653 (gdb_readline_no_editing): ... this, and make static.
5654
720d2e96
PA
56552016-03-09 Pedro Alves <palves@redhat.com>
5656
5657 * utils.c (prompt_for_continue): Update comments.
5658
608ff013
PA
56592016-03-09 Pedro Alves <palves@redhat.com>
5660
5661 * event-top.c (async_annotation_suffix): Delete.
5662 (top_level_prompt, command_line_handler): Don't use
5663 'async_annotation_suffix' and simplify.
5664 * event-top.h (async_annotation_suffix): Delete declaration.
5665 (init_main): Remove reference to 'async_annotation_suffix'.
5666
c70061cf
PA
56672016-03-09 Pedro Alves <palves@redhat.com>
5668
5669 * event-top.c (gdb_readline2): Rename to ...
5670 (gdb_readline_no_editing_callback): ... this.
5671 (change_line_handler, stdin_event_handler)
5672 (gdb_setup_readline): Adjust.
5673 * event-top.h (gdb_readline2): Rename to ...
5674 (gdb_readline_no_editing_callback): ... this, and move closer to
5675 other readline-related declarations.
5676 * mi/mi-interp.c (mi_interpreter_resume): Adjust.
5677
8a243832
PA
56782016-03-09 Pedro Alves <palves@redhat.com>
5679
5680 * top.c (window_hook): Delete.
5681 (command_loop): Remove references to window_hook.
5682
cc2c4da8
MK
56832016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
5684
5685 * corefile.c (safe_read_memory_unsigned_integer): New function.
5686 * gdbcore.h (safe_read_memory_unsigned_integer): New prototype.
5687 * rs6000-tdep.c (rs6000_frame_cache): Read backchain as unsigned.
5688
a67914de
MK
56892016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
5690
5691 * rs6000-tdep.c: Add "ax.h" and "ax-gdb.h" includes.
5692 (rs6000_gen_return_address): New function.
5693 (rs6000_gdbarch_init): Wire in the above.
5694
2a2fa07b
MK
56952016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
5696
5697 * rs6000-tdep.c (rs6000_ax_pseudo_register_collect): New function.
5698 (rs6000_gdbarch_init): Wire in the above.
5699
bc0e3f49
AA
57002016-03-09 Andreas Arnez <arnez@linux.vnet.ibm.com>
5701
5702 * s390-linux-tdep.c (s390_analyze_prologue): Ignore BRC and BRCL
5703 instructions that do nothing or are conditional traps.
5704
6d53bec8
AA
57052016-03-09 Andreas Arnez <arnez@linux.vnet.ibm.com>
5706
5707 * s390-linux-tdep.c (s390_prologue_frame_unwind_cache): Store
5708 frame func's PC in info->func before any other failure can occur.
5709 (s390_frame_this_id): Use frame_id_build_unavailable_stack if
5710 info->func has been filled out.
5711
f7990f16
PA
57122016-03-09 Pedro Alves <palves@redhat.com>
5713
5714 * osabi.c (gdb_osabi_names): Avoid spaces in osabi names.
5715
087ccc6a
PA
57162016-03-09 Pedro Alves <palves@redhat.com>
5717
5718 * frv-tdep.c (frv_gdbarch_init): Handle bfd_mach_fr300.
5719
114d7832
PA
57202016-03-09 Pedro Alves <palves@redhat.com>
5721
5722 * cris-tdep.c (cris_gdbarch_init): Return 0 if the info's byte
5723 order is BFD_ENDIAN_BIG or if the cris version is unsupported.
5724
d7a87b5e
PA
57252016-03-09 Pedro Alves <palves@redhat.com>
5726
5727 * doublest.c: Extend comments.
5728 (floatformat_to_doublest, floatformat_from_doublest): Copy the
5729 floatformat's total size, not the host type's size.
5730
b79497cb
PA
57312016-03-09 Pedro Alves <palves@redhat.com>
5732
5733 * doublest.c (floatformat_totalsize_bytes): New function.
5734 (floatformat_from_type): Assert that the type's length is at least
5735 as long as the floatformat's totalsize.
5736 * doublest.h (floatformat_totalsize_bytes): New declaration.
5737 * gdbtypes.c (arch_float_type): Assert that the type's length is
5738 at least as long as the floatformat's totalsize.
5739
aacca8a7
PA
57402016-03-09 Pedro Alves <palves@redhat.com>
5741
5742 * hppa-linux-tdep.c (hppa_linux_init_abi): Set the long double
5743 format to floatformats_ieee_double.
5744
e6c2f47b
PA
57452016-03-07 Pedro Alves <palves@redhat.com>
5746
5747 * mips-tdep.c (mips_gdbarch_init): Check whether info.abfd is NULL
5748 before calling bfd_get_flavour.
5749
cb86f388
DC
57502016-03-05 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
5751
5752 * avr-tdep.c (AVR_LAST_ARG_REGNUM): Define.
5753 (avr_push_dummy_call): Correct last needed argument register.
5754 Write MSB of argument into register and subsequent bytes into
5755 other registers in decreasing order.
5756
f1771dce
YQ
57572016-03-04 Yao Qi <yao.qi@linaro.org>
5758
5759 * arm-tdep.c (arm_record_vdata_transfer_insn): Simplify the
5760 condition check. Record the right D register number.
5761
ca92db2d
YQ
57622016-03-04 Yao Qi <yao.qi@linaro.org>
5763
5764 * arm-tdep.c (arm_record_extension_space): Remove code
5765 printing "Process record does not support".
5766 (arm_record_data_proc_misc_ld_str): Likewise.
5767 (decode_insn): Call arm_record_extension_space if condition
5768 is 0xf. Call arm_record_unsupported_insn if ret isn't
5769 ARM_RECORD_SUCCESS. Use 'ret' instead of 'insn_id' to hold
5770 the value of thumb2_record_decode_insn_handler.
5771
73519cce
SM
57722016-03-04 Simon Marchi <simon.marchi@ericsson.com>
5773
5774 * features/feature_to_c.sh: Print the help when passing no
5775 argument.
5776
650beae3
BH
57772016-03-02 Bernhard Heckel <bernhard.heckel@intel.com>
5778
5779 * MAINTAINERS (Write After Approval): Add Bernhard Heckel.
5780
28586665
BH
57812016-03-02 Bernhard Heckel <bernhard.heckel@intel.com>
5782
5783 * dwarf2read.c (new_symbol_full): Fix detection of gfortran compilers.
5784
f2489477
AA
57852016-03-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
5786
5787 * s390-linux-tdep.c (s390_backchain_frame_unwind_cache): Avoid
5788 exception when attempting to access the inferior's backchain.
5789
d5219069
YQ
57902016-02-29 Yao Qi <yao.qi@linaro.org>
5791
5792 * aarch64-linux-tdep.c (aarch64_canonicalize_syscall): Support
5793 eventfd2, eventfd2, dup3, inotify_init1, fallocate and pipe2.
5794 Return gdb_sys_epoll_create1 instead of gdb_sys_epoll_create
5795 for aarch64_sys_epoll_create1.
5796
253b4d3a
YQ
57972016-02-29 Yao Qi <yao.qi@linaro.org>
5798
5799 * linux-record.h (enum gdb_syscall) <gdb_sys_fallocate>: New.
5800 <gdb_sys_eventfd2, gdb_sys_epoll_create1, gdb_sys_dup3>: New.
5801 <gdb_sys_pipe2, gdb_sys_inotify_init1>: New.
5802 * linux-record.c (record_linux_system_call): Handle them.
5803
38899f16
IB
58042016-02-28 Iain Buclaw <ibuclaw@gdcproject.org>
5805
5806 * d-namespace.c (d_lookup_symbol_imports): Avoid recursive lookups from
5807 cyclic imports.
5808
1ed0c2a4
KS
58092016-02-26 Keith Seitz <keiths@redhat.com>
5810
5811 * rs6000-tdep.c (rs6000_frame_cache): Explicitly cast return result
5812 to avoid invalid conversion from void *.
5813
9fde51ed
YQ
58142016-02-26 Yao Qi <yao.qi@linaro.org>
5815
5816 * arm-tdep.c (arm_record_exreg_ld_st_insn): Set 'single_reg'
5817 per bit 8. Check bit 20 instead of bit 4 for VMOV
5818 instruction. Record D registers for instructions changing
5819 S registers. Change of the order of length and address
5820 in record_buf_mem array.
5821
1f33efec
YQ
58222016-02-26 Yao Qi <yao.qi@linaro.org>
5823
5824 * arm-tdep.c (thumb_record_ld_st_reg_offset): Fix the register
5825 number of Rd.
5826
1547ef64
DE
58272016-02-25 Doug Evans <dje@google.com>
5828
5829 * remote-m32r-sdi.c (recv_char_data): Initialize val to avoid
5830 compiler warning.
5831 (recv_long_data): Ditto.
5832
166616ce
SM
58332016-02-25 Simon Marchi <simon.marchi@ericsson.com>
5834
5835 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault):
5836 Initialize variables.
5837
1eb7c2d8
AT
58382016-02-25 Antoine Tremblay <antoine.tremblay@ericsson.com>
5839
5840 * ax-general.c (ax_reg): Call gdbarch_remote_register_number.
5841 (ax_reg_mask): Likewise.
5842
e7ad2f14
PA
58432016-02-24 Pedro Alves <palves@redhat.com>
5844
5845 * linux-nat.c (save_sigtrap) Delete.
5846 (stop_wait_callback): Call save_stop_reason instead of
5847 save_sigtrap.
5848 (check_stopped_by_breakpoint): Rename to ...
5849 (save_stop_reason): ... this. Bits of save_sigtrap folded here.
5850 Use GDB_ARCH_IS_TRAP_HWBKPT and handle ambiguous
5851 GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT. Factor out
5852 common code between the USE_SIGTRAP_SIGINFO and
5853 !USE_SIGTRAP_SIGINFO blocks.
5854 (linux_nat_filter_event): Call save_stop_reason instead of
5855 save_sigtrap.
5856 * nat/linux-ptrace.h: Check for both SI_KERNEL and TRAP_BRKPT
5857 si_code for MIPS.
5858 * nat/linux-ptrace.h: Fix "TRAP_HWBPT" typo in x86 table. Add
5859 comments on MIPS behavior.
5860 (GDB_ARCH_IS_TRAP_HWBKPT): Define for all archs.
5861
338435ef
MK
58622016-02-24 Marcin Kościelnicki <koriakin@0x04.net>
5863
5864 * rs6000-tdep.c (rs6000_frame_cache): Initialize frame and pc to 0
5865 to avoid spurious warnings.
5866
bf74e428
GB
58672016-02-24 Gary Benson <gbenson@redhat.com>
5868
5869 * exec.c (exec_file_locate_attach): Do not attempt to
5870 locate main executable locally if not found in sysroot.
5871
62fb310b
JB
58722016-02-24 Joel Brobecker <brobecker@adacore.com>
5873
5874 GDB 7.11 released.
5875
50ae56ec
WW
58762016-02-24 Wei-cheng Wang <cole945@gmail.com>
5877
5878 * rs6000-tdep.c (rs6000_frame_cache, rs6000_frame_this_id): Handle
5879 unavailable PC/SP to build unavailable frame.
5880
cce0e923
DE
58812016-02-23 Doug Evans <dje@google.com>
5882
5883 Extend "skip" command to support -file, -gfile, -function, -rfunction.
5884 * NEWS: Document new features.
5885 * skip.c: #include "fnmatch.h", "gdb_regex.h".
5886 (skiplist_entry) <file>: Renamed from filename.
5887 <function>: Renamed from function_name.
5888 <file_is_glob, function_is_regexp>: New members.
5889 <compiled_function_regexp, compiled_function_regexp_is_valid>:
5890 New members.
5891 (make_skip_entry): New function.
5892 (free_skiplist_entry, free_skiplist_entry_cleanup): New functions.
5893 (make_free_skiplist_entry_cleanup): New function.
5894 (skip_file_command): Update.
5895 (skip_function, skip_function_command): Update.
5896 (compile_skip_regexp): New functions.
5897 (skip_command): Add support for new options.
5898 (skip_info): Update.
5899 (skip_file_p, skip_gfile_p): New functions.
5900 (skip_function_p, skip_rfunction_p): New functions.
5901 (function_name_is_marked_for_skip): Update and simplify.
5902 (_initialize_step_skip): Update.
5903 * symtab.c: #include "fnmatch.h".
5904 (compare_glob_filenames_for_search): New function.
5905 * symtab.h (compare_glob_filenames_for_search): Declare.
5906 * utils.c (count_path_elements): New function.
5907 (strip_leading_path_elements): New function.
5908 * utils.h (count_path_elements): Declare.
5909 (strip_leading_path_elements): Declare.
5910
12545665
SM
59112016-02-23 Simon Marchi <simon.marchi@ericsson.com>
5912
5913 * arm-tdep.c (arm_decode_svc_copro): Remove "to" parameter.
5914 (thumb_process_displaced_insn): Likewise.
5915 (arm_process_displaced_insn): Adjust calls.
5916
c955ae73
YQ
59172016-02-23 Yao Qi <yao.qi@linaro.org>
5918
5919 * aarch64-linux-tdep.c (enum aarch64_syscall) <aarch64_sys_mknod>:
5920 Remove.
5921 <aarch64_sys_mkdir, aarch64_sys_unlink, aarch64_sys_symlink>: Remove.
5922 <aarch64_sys_link, aarch64_sys_rename, aarch64_sys_faccess>: Remove.
5923 <aarch64_sys_mknodat, aarch64_sys_mkdirat>: New.
5924 <aarch64_sys_unlinkat, aarch64_sys_symlinkat>: New.
5925 <aarch64_sys_linkat, aarch64_sys_renameat>: New.
5926 <aarch64_sys_faccessat>: New.
5927 <aarch64_sys_open, aarch64_sys_readlink, aarch64_sys_fstatat>: Remove.
5928 <aarch64_sys_openat, aarch64_sys_readlinkat>: New.
5929 <aarch64_sys_newfstatat>: New.
5930 (UNSUPPORTED_SYSCALL_MAP): New macro.
5931 (aarch64_canonicalize_syscall): Add missing syscalls.
5932
ac46107c
JK
59332016-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5934
5935 * gdb-gdb.py (class TypeFlagsPrinter): Use parentheses for print.
5936
01e57735
YQ
59372016-02-22 Yao Qi <yao.qi@linaro.org>
5938
5939 * arm-tdep.c: Fix code format issues.
5940
30a6a7f0
IB
59412016-02-21 Iain Buclaw <ibuclaw@gdcproject.org>
5942
5943 * d-namespace.c (d_lookup_symbol_imports): Remove argument
5944 'search_parents'. All callers updated.
5945
f79a3bae
MK
59462016-02-18 Marcin Kościelnicki <koriakin@0x04.net>
5947
5948 * s390-linux-tdep.c (s390_guess_tracepoint_registers): New function.
5949 (s390_gdbarch_init): Fill guess_tracepoint_registers hook.
5950
012b3a21
WT
59512016-02-18 Walfred Tedeschi <walfred.tedeschi@intel.com>
5952
5953 * NEWS: Add entry for bound violation.
5954 * amd64-linux-tdep.c (amd64_linux_init_abi_common):
5955 Add handler for segmentation fault.
5956 * gdbarch.sh (handle_segmentation_fault): New.
5957 * gdbarch.c: Regenerate.
5958 * gdbarch.h: Regenerate.
5959 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): New.
5960 (SIG_CODE_BONDARY_FAULT): New define.
5961 (i386_linux_init_abi): Use i386_mpx_bound_violation_handler.
5962 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault) New.
5963 * i386-tdep.c (i386_mpx_enabled): Add as external.
5964 * i386-tdep.c (i386_mpx_enabled): Add as external.
5965 * infrun.c (handle_segmentation_fault): New function.
5966 (print_signal_received_reason): Use handle_segmentation_fault.
5967
5f034a78
MK
59682016-02-18 Marcin Kościelnicki <koriakin@0x04.net>
5969
5970 * arch-utils.c (default_guess_tracepoint_registers): New function.
5971 * arch-utils.h (default_guess_tracepoint_registers): New prototype.
5972 * gdbarch.c: Regenerate.
5973 * gdbarch.h: Regenerate.
5974 * gdbarch.sh: Add guess_tracepoint_registers hook.
5975 * tracefile.c (tracefile_fetch_registers): Use the new gdbarch hook.
5976
88178e82
GB
59772016-02-17 Gary Benson <gbenson@redhat.com>
5978
5979 * exec.c (exec_file_locate_attach): Add missing cleanup.
5980
4041ed77
DB
59812016-02-16 Don Breazeal <donb@codesourcery.com>
5982
5983 PR remote/19496
5984 * remote.c (remove_new_fork_children): Check for pending
5985 fork status in thread_info.suspend.
5986
b442c911
YQ
59872016-02-16 Yao Qi <yao.qi@linaro.org>
5988
5989 * arm-linux-tdep.c (arm_linux_software_single_step): Assign
5990 'old_chain' later.
5991
553cb527
YQ
59922016-02-16 Yao Qi <yao.qi@linaro.org>
5993
5994 * arch/arm-get-next-pcs.h (struct arm_get_next_pcs_ops)
5995 <syscall_next_pc>: Remove argument PC. Callers updated.
5996 * arm-linux-tdep.c (arm_linux_get_next_pcs_syscall_next_pc):
5997 Remove argument PC. Get pc from regcache_read_pc.
5998 * arm-tdep.c (arm_get_next_pcs_syscall_next_pc): Remove
5999 argument PC.
6000
0a0da556
YQ
60012016-02-15 Yao Qi <yao.qi@linaro.org>
6002
6003 * aarch64-tdep.c (aarch64_analyze_prologue): Remove "0x".
6004
01113bc1
YQ
60052016-02-12 Yao Qi <yao.qi@linaro.org>
6006
6007 * arch/arm-linux.c (arm_linux_get_next_pcs_fixup): Calculate
6008 nextpc according to instruction.
6009
ed443b61
YQ
60102016-02-12 Yao Qi <yao.qi@linaro.org>
6011
6012 * arch/arm-get-next-pcs.c (arm_get_next_pcs): Call
6013 self->ops->fixup if it isn't NULL.
6014 * arch/arm-get-next-pcs.h: Include gdb_vecs.h.
6015 (struct arm_get_next_pcs_ops) <fixup>: New field.
6016 * arch/arm-linux.c: Include common-regcache.h and
6017 arch/arm-get-next-pcs.h.
6018 (arm_linux_get_next_pcs_fixup): New function.
6019 * arch/arm-linux.h (arm_linux_get_next_pcs_fixup): Declare.
6020 * arm-linux-tdep.c (arm_linux_get_next_pcs_ops): Initialize
6021 it with arm_linux_get_next_pcs_fixup.
6022 (arm_linux_software_single_step): Move code to
6023 arm_linux_get_next_pcs_fixup.
6024 * arm-tdep.c (arm_get_next_pcs_ops): Initialize it.
6025
d21b5f15
MK
60262016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
6027
6028 * xml-tdesc.c (target_fetch_description_xml) [!HAVE_LIBEXPAT]: Warn
6029 and return NULL.
6030
33b4777c
MM
60312016-02-12 Markus Metzger <markus.t.metzger@intel.com>
6032
6033 * frame.h (skip_tailcall_frames): Update comment.
6034 * frame.c (skip_artificial_frames, skip_tailcall_frames): Return NULL
6035 if only artificial frames are found. Update comment.
6036 (frame_unwind_caller_id): Handle NULL return.
6037 (frame_unwind_caller_pc, frame_unwind_caller_arch): Assert that
6038 skip_artificial_frames does not return NULL.
6039 (frame_pop): Add an error if only tailcall frames are found.
6040 * infcmd.c (finish_command): Move skip_tailcall_frames call into
6041 forward-execution case. Add an error if only tailcall frames are
6042 found.
6043
a038fa3e
MM
60442016-02-12 Markus Metzger <markus.t.metzger@intel.com>
6045
6046 * stack.c (frame_info): Check frame_unwind_caller_id.
6047
2f3ef606
MM
60482016-02-12 Markus Metzger <markus.t.metzger@intel.com>
6049
6050 * frame.h (skip_tailcall_frames): New.
6051 * frame.c (skip_tailcall_frames): New.
6052 (frame_pop): Call skip_tailcall_frames.
6053 * infcmd.c (finish_command): Call skip_tailcall_frames.
6054
e352bf0a
PA
60552016-02-11 Pedro Alves <palves@redhat.com>
6056
6057 * Makefile.in (check-parallel): New rule.
6058
bec2ab5a
SM
60592016-02-11 Simon Marchi <simon.marchi@ericsson.com>
6060
6061 * arm-tdep.c (arm_skip_prologue): Remove unused variables.
6062 (arm_analyze_prologue): Likewise.
6063 (arm_scan_prologue): Likewise.
6064 (arm_m_exception_prev_register): Likewise.
6065 (arm_copy_block_xfer): Likewise.
6066 (thumb2_copy_block_xfer): Likewise.
6067 (arm_decode_miscellaneous): Likewise.
6068 (arm_decode_ld_st_word_ubyte): Likewise.
6069 (arm_decode_svc_copro): Likewise.
6070 (thumb2_decode_svc_copro): Likewise.
6071 (thumb_copy_16bit_ldr_literal): Likewise.
6072 (thumb_copy_pop_pc_16bit): Likewise.
6073 (decode_thumb_32bit_ld_mem_hints): Likewise.
6074 (arm_show_force_mode): Likewise.
6075 (_initialize_arm_tdep): Likewise.
6076 (arm_record_strx): Likewise.
6077 (arm_record_extension_space): Likewise.
6078 (arm_record_data_proc_misc_ld_str): Likewise.
6079 (arm_record_exreg_ld_st_insn): Likewise.
6080 (arm_record_vfp_data_proc_insn): Likewise.
6081 (arm_record_coproc_data_proc): Likewise.
6082 (thumb_record_misc): Likewise.
6083 (thumb_record_ldm_stm_swi): Likewise.
6084 (thumb2_record_ld_st_dual_ex_tbb): Likewise.
6085 (thumb2_record_ld_mem_hints): Likewise.
6086 (thumb2_record_lmul_lmla_div): Likewise.
6087 (thumb2_record_asimd_struct_ld_st): Likewise.
6088 (arm_process_record): Likewise.
6089
2ba163c8
SM
60902016-02-11 Simon Marchi <simon.marchi@ericsson.com>
6091
6092 * arm-tdep.c (arm_displaced_step_copy_insn): Remove.
6093 (ARM displaced stepping support): Remove reference to
6094 arm_displaced_step_copy_insn in comment.
6095 * arm-tdep.h (arm_displaced_step_copy_insn): Remove.
6096 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Remove
6097 reference to arm_displaced_step_copy_insn in comment.
6098
615234c1
SM
60992016-02-11 Simon Marchi <simon.marchi@ericsson.com>
6100
6101 * arm-tdep.c (thumb_copy_unmodified_16bit): Change type of insn.
6102 (thumb_copy_b): Likewise.
6103 (arm_decode_b_bl_ldmstm): Likewise.
6104 (thumb_copy_16bit_ldr_literal): Likewise.
6105 (thumb_copy_pop_pc_16bit): Likewise.
6106
82e9becd
AT
61072016-02-11 Antoine Tremblay <antoine.tremblay@ericsson.com>
6108
6109 * tracepoint.c (encode_actions_1): Use target_gdbarch () rather
6110 than loc->gdbarch.
6111
5ac87a99
MK
61122016-02-10 Marcin Kościelnicki <koriakin@0x04.net>
6113
6114 * tracefile-tfile.c (trace_tdesc): New static variable.
6115 (tfile_open): Clear trace_tdesc, call target_find_description.
6116 (tfile_interp_line): Recognize tdesc lines.
6117 (tfile_close): Clear trace_tdesc.
6118 (tfile_xfer_partial_features): New function.
6119 (tfile_xfer_partial): Call tfile_xfer_partial_features.
6120 (tfile_append_tdesc_line): New function.
6121
18d3cec5
MK
61222016-02-10 Marcin Kościelnicki <koriakin@0x04.net>
6123
6124 * ctf.c (ctf_write_tdesc): New function.
6125 (ctf_write_ops): Wire in ctf_write_tdesc.
6126 * tracefile-tfile.c (tfile_write_tdesc): New function.
6127 (tfile_write_ops): Wire in tfile_write_tdesc.
6128 * tracefile.c (trace_save): Call write_tdesc method.
6129 * tracefile.h (struct trace_file_write_ops): Add write_tdesc method.
6130 * xml-tdesc.c (target_fetch_description_xml): New function.
6131 * xml-tdesc.h: Add target_fetch_description_xml prototype.
6132
550dc4e2
SM
61332016-02-10 Simon Marchi <simon.marchi@ericsson.com>
6134
6135 * arm-tdep.c (arm_copy_extra_ld_st): Fix "unpriveleged" typo.
6136 (arm_decode_dp_misc): Likewise.
6137
62e5fd57
MK
61382016-02-10 Marcin Kościelnicki <koriakin@0x04.net>
6139
6140 * amd64-tdep.c (amd64_ax_pseudo_register_collect): New function.
6141 (amd64_init_abi): Fill ax_pseudo_register_collect hook.
6142 * gdb/i386-tdep.c (i386_pseudo_register_read_into_value): Remove
6143 misleading comment.
6144 (i386_pseudo_register_write): Ditto.
6145 (i386_ax_pseudo_register_collect): New function.
6146 (i386_gdbarch_init): Fill ax_pseudo_register_collect hook.
6147 * i386-tdep.h: Add i386_ax_pseudo_register_collect prototype.
6148
e909d859
MK
61492016-02-10 Marcin Kościelnicki <koriakin@0x04.net>
6150
6151 * tracefile-tfile.c (tfile_fetch_registers): Use g packet order
6152 instead of gdb order.
6153
473b99e5
MK
61542016-02-10 Marcin Kościelnicki <koriakin@0x04.net>
6155
6156 * tracefile-tfile.c (tfile_fetch_registers): Fix off-by-one in bounds
6157 check.
6158
1233c0ba
JB
61592016-02-10 Joel Brobecker <brobecker@adacore.com>
6160
6161 * NEWS: Create a new section for the next release branch.
6162 Rename the section of the current branch, now that it has
6163 been cut.
6164
d1dc0942
JB
61652016-02-10 Joel Brobecker <brobecker@adacore.com>
6166
6167 GDB 7.11 branch created (9ef9e6a6a0dd8f948708cb67c9afcfd0be40cb0a):
6168 * version.in: Bump version to 7.11.50.DATE-git.
6169
9ef9e6a6
KS
61702016-02-09 Keith Seitz <keiths@redhat.com>
6171
6172 PR breakpoints/19546
6173 * breakpoint.c (breakpoint_event_location_empty_p): New function.
6174 (update_breakpoints_after_exec, bkpt_re_set): Use this new function
6175 instead of event_location_empty_p.
6176
39a67dc4
KS
61772016-02-09 Keith Seitz <keiths@redhat.com>
6178
6179 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Use
6180 string_to_event_location_basic instead of string_to_event_location.
6181
a96e36da
KS
61822016-02-09 Keith Seitz <keiths@redhat.com>
6183
6184 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Skip
6185 leading whitespace and use string_to_event_location_basic instead
6186 of new_linespec_location.
6187
9f61929f
KS
61882016-02-09 Keith Seitz <keiths@redhat.com>
6189
6190 PR python/19506
6191 * python/py-breakpoint.c (bppy_init): Use
6192 string_to_event_location_basic instead of new_linespec_location.
6193
eeb1af43
KS
61942016-02-09 Keith Seitz <keiths@redhat.com>
6195
6196 * location.c (string_to_explicit_location): Note that "-p" is
6197 reserved for probe locations and return NULL for any input
6198 that starts with that.
6199 (string_to_event_location): Move "legacy" linespec code to ...
6200 (string_to_event_location_basic): ... here.
6201 * location.h (string_to_event_location): Update comment.
6202 (string_to_event_location_basic): New function.
6203
1e94266c
SM
62042016-02-09 Simon Marchi <simon.marchi@ericsson.com>
6205
6206 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
6207 to AC_OUTPUT. Remove "exit 0" at the end.
6208 * configure: Regenerate.
6209
2a7f3dff
PA
62102016-02-09 Pedro Alves <palves@redhat.com>
6211
6212 PR breakpoints/19548
6213 * breakpoint.c (create_overlay_event_breakpoint): Don't update
6214 global location list here.
6215 (create_longjmp_master_breakpoint)
6216 (create_std_terminate_master_breakpoint)
6217 (create_exception_master_breakpoint, create_jit_event_breakpoint)
6218 (update_breakpoint_locations):
6219 (breakpoint_re_set): Update global location list after all
6220 breakpoints are re-set.
6221
54887903
SM
62222016-02-08 Simon Marchi <simon.marchi@ericsson.com>
6223
6224 * remote.c (remote_register_number_and_offset): Remove unused
6225 variable(s).
6226 (remote_thread_always_alive): Likewise.
6227 (remote_update_thread_list): Likewise.
6228 (process_initial_stop_replies): Likewise.
6229 (remote_start_remote): Likewise.
6230 (remote_check_symbols): Likewise.
6231 (discard_pending_stop_replies): Likewise.
6232 (process_stop_reply): Likewise.
6233 (putpkt_binary): Likewise.
6234 (getpkt): Likewise.
6235 (remote_add_target_side_condition): Likewise.
6236 (remote_insert_breakpoint): Likewise.
6237 (remote_supports_stopped_by_sw_breakpoint): Likewise.
6238 (remote_supports_stopped_by_hw_breakpoint): Likewise.
6239 (remote_xfer_partial): Likewise.
6240 (remote_read_btrace): Likewise.
6241 (remote_async_serial_handler): Likewise.
6242 (remote_thread_events): Likewise.
6243 (_initialize_remote): Likewise.
6244
30914ca8
SM
62452016-02-07 Simon Marchi <simon.marchi@polymtl.ca>
6246
6247 * varobj.h (varobj_delete): Remove dellist parameter, update and
6248 move documentation here.
6249 * varobj.c (struct cpstack, cppush, cppop): Remove.
6250 (delete_variable): Remove resultp (first) parameter.
6251 (delete_variable_1): Likewise.
6252 (varobj_delete): Remove dellist parameter and unused code.
6253 (update_dynamic_varobj_children): Adjust varobj_delete call.
6254 (update_type_if_necessary): Likewise.
6255 (varobj_set_visualizer): Likewise.
6256 (varobj_update): Likewise.
6257 (value_of_root): Likewise.
6258 (varobj_invalidate_iter): Likewise.
6259 * mi/mi-cmd-var.c (mi_cmd_var_delete): Likewise.
6260
e42e5352
YQ
62612016-02-04 Yao Qi <yao.qi@linaro.org>
6262
6263 * remote.c (remote_wait_as): Set rs->waiting_for_stop_reply to
6264 0 before handling 'F' and set it back afterwards.
6265
6456a18b
SM
62662016-02-02 Simon Marchi <simon.marchi@ericsson.com>
6267
6268 * ui-out.c (MAX_UI_OUT_LEVELS): Remove.
6269
3f2f6cb5
WT
62702016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
6271
6272 * amd64-linux-siginfo.c (nat_siginfo_t, nat_sigval_t, nat_timeval):
6273 New types.
6274 (compat_siginfo): New bound fields added.
6275 (compat_x32_siginfo): New field added.
6276 (cpt_si_addr_lsb): New define.
6277 (compat_siginfo_from_siginfo): Use nat_siginfo.
6278 (siginfo_from_compat_siginfo): Use nat_siginfo.
6279 (compat_x32_siginfo_from_siginfo): Likewise.
6280 (siginfo_from_compat_x32_siginfo): Likewise.
6281
96b5c49f
WT
62822016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
6283
6284 * linux-tdep.c (linux_get_siginfo_type): Add the _addr_bnd
6285 structure to the siginfo if extra_fields contains
6286 LINUX_SIGINFO_FIELD_ADDR_BND.
6287
190b495d
WT
62882016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
6289
6290 * linux-tdep.h (linux_get_siginfo_type_with_fields): Make extern.
6291 * linux-tdep.c (linux_get_siginfo_type_with_fields): Make extern.
6292 * i386-linux-tdep.h (x86_linux_get_siginfo_type): New
6293 function.
6294 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Add
6295 x86_linux_get_siginfo_type for the amd64 abi.
6296 * i386-linux-tdep.c (x86_linux_get_siginfo_type): New
6297 function.
6298 (i386_linux_init_abi): Add new function at the i386 ABI
6299 initialization.
6300
43564574
WT
63012016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
6302
6303 * linux-tdep.h (linux_siginfo_extra_field_values): New enum values.
6304 (linux_siginfo_extra_fields): New enum type.
6305 * linux-tdep.c (linux_get_siginfo_type_with_fields): New function.
6306 (linux_get_siginfo_type): Use new function.
6307
93813b37
WT
63082016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
6309
6310 * nat/amd64-linux-siginfo.c: New file.
6311 * nat/amd64-linux-siginfo.h: New file.
6312 * Makefile.in (HFILES_NO_SRCDIR): Add nat/amd64-linux-siginfo.h.
6313 (amd64-linux-siginfo.o): New rule.
6314 * config/i386/linux64.mh (NATDEPFILES): Add amd64-linux-siginfo.o.
6315 * amd64-linux-nat.c (nat/amd64-linux-siginfo.h): New include.
6316 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
6317 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
6318 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
6319 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
6320 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
6321 (cpt_si_fd, si_timerid, si_overrun): Move to nat/amd64-linux-siginfo.c.
6322
5fdf6324
AB
63232016-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
6324
6325 * value.c (max_value_size): New variable.
6326 (MIN_VALUE_FOR_MAX_VALUE_SIZE): New define.
6327 (set_max_value_size): New function.
6328 (show_max_value_size): New function.
6329 (check_type_length_before_alloc): New function.
6330 (allocate_value_contents): Call check_type_length_before_alloc.
6331 (set_value_enclosing_type): Likewise.
6332 (_initialize_values): Add set/show handler for max-value-size.
6333 * NEWS: Mention new set/show command.
6334
5fa13070
SM
63352016-01-31 Simon Marchi <simon.marchi@polymtl.ca>
6336
6337 * varobj.h (struct varobj): Fix typos in comments.
6338 (struct lang_varobj_ops): Likewise.
6339 * varobj.c (VAROBJ_TABLE_SIZE): Likewise.
6340 (varobj_create): Move misplaced comment.
6341
a2e3e93f
SM
63422016-01-29 Simon Marchi <simon.marchi@ericsson.com>
6343
6344 * aarch64-tdep.c (aarch64_record_asimd_load_store): Add braces
6345 to for include additional lines.
6346 * xcoffread.c (scan_xcoff_symtab): Remove unnecessary braces.
6347
56e374a6
SM
63482016-01-28 Simon Marchi <simon.marchi@ericsson.com>
6349
6350 * gnulib/import/Makefile.am: Regenerate.
6351 * gnulib/import/Makefile.in: Regenerate.
6352 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
6353 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add rawmemchr.
6354
8424cc97
SM
63552016-01-28 Simon Marchi <simon.marchi@ericsson.com>
6356
6357 * remote.c (skip_to_semicolon): Remove.
6358 (remote_parse_stop_reply): Use strchrnul instead of
6359 skip_to_semicolon.
6360 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
6361 strchrnul.
6362 * gnulib/aclocal.m4: Regenerate.
6363 * gnulib/config.in: Regenerate.
6364 * gnulib/configure: Regenerate.
6365 * gnulib/import/Makefile.am: Regenerate.
6366 * gnulib/import/Makefile.in: Regenerate.
6367 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
6368 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
6369 * gnulib/import/m4/rawmemchr.m4: New file.
6370 * gnulib/import/m4/strchrnul.m4: New file.
6371 * gnulib/import/rawmemchr.c: New file.
6372 * gnulib/import/rawmemchr.valgrind: New file.
6373 * gnulib/import/strchrnul.c: New file.
6374 * gnulib/import/strchrnul.valgrind: New file.
6375
4a6a1ed4
YQ
63762016-01-28 Yao Qi <yao.qi@linaro.org>
6377
6378 * breakpoint.c (build_target_command_list): Don't call continue
6379 if aexpr is NULL.
6380 (build_target_condition_list): Likewise.
6381
94715c17
KB
63822016-01-27 Kevin Buettner <kevinb@redhat.com>
6383
6384 * rx-tdep.c (rx_push_dummy_call): Treat scalars larger than 8
6385 bytes as aggregates.
6386
c07af0ab
JB
63872016-01-27 Joel Brobecker <brobecker@adacore.com>
6388
6389 * MAINTAINERS (Responsible Maintainers): Add Keith Seitz as
6390 Linespec Maintainers.
6391
41548caa
SM
63922016-01-26 Simon Marchi <simon.marchi@ericsson.com>
6393
6394 * common/common-utils.c (skip_spaces): Fix comment.
6395 (skip_to_space_const): Likewise.
6396
4d18591b
YQ
63972016-01-25 Yao Qi <yao.qi@linaro.org>
6398
6399 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
6400 Remove argument pc. Get pc by regcache_read_pc. Callers updated.
6401 (arm_deal_with_atomic_sequence_raw): Likewise.
6402 (thumb_get_next_pcs_raw): Likewise.
6403 (arm_get_next_pcs_raw): Likewise.
6404 (arm_get_next_pcs): Remove argument pc. Callers updated.
6405 * arch/arm-get-next-pcs.h (arm_get_next_pcs): Update declaration.
6406
a579cd9a
MW
64072016-01-25 Mark Wielaard <mjw@redhat.com>
6408
6409 * ada-lang.c (ada_evaluate_subexp): Add proper else block.
6410 * c-typeprint.c (c_type_print_base): Fix misleading indentation of
6411 if statement.
6412 * inflow.c (child_terminal_ours_1): Fix misleading indentation of
6413 statement block by introducing an else.
6414 * linux-record.c (record_linux_sockaddr): Fix misleading indentation
6415 of return statements.
6416 (record_linux_msghdr): Likewise.
6417
a2077e25
PA
64182016-01-25 Pedro Alves <palves@redhat.com>
6419
6420 PR threads/19461
6421 * infrun.c (handle_inferior_event_1) <fork/vfork>: Update
6422 parent/child running states.
6423
1d2736d4
PA
64242016-01-25 Pedro Alves <palves@redhat.com>
6425
6426 PR gdb/19494
6427 * linux-nat.c (kill_one_lwp): New, factored out from ...
6428 (kill_callback): ... this.
6429 (kill_wait_callback): New, factored out from ...
6430 (kill_wait_one_lwp): ... this.
6431 (kill_unfollowed_fork_children): New function.
6432 (linux_nat_kill): Use it.
6433
b2bae2f7
JB
64342016-01-22 John Baldwin <jhb@FreeBSD.org>
6435
6436 * fbsd-nat.c (fbsd_pid_to_str): Adjust string format.
6437
d86feca3
YQ
64382016-01-22 Yao Qi <yao.qi@linaro.org>
6439
6440 * arm-linux-nat.c (fetch_fpregs): Call perror_with_name
6441 instead of warning.
6442 (store_fpregs, fetch_regs, store_regs): Likewise.
6443 (fetch_wmmx_regs, store_wmmx_regs): Likewise.
6444 (fetch_vfp_regs, store_vfp_regs): Likewise.
6445
b35a8b2f
DE
64462016-01-21 Doug Evans <dje@google.com>
6447
6448 * breakpoint.c (init_breakpoint_sal): Add comment.
6449
f906b857
MK
64502016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
6451
6452 * ax-gdb.c (gen_traced_pop): Use gen_fetch for string collection.
6453
4a099de2
AB
64542016-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
6455
6456 * disasm.c (maybe_add_dis_line_entry): Rename to...
6457 (add_dis_line_entry): ...this, and update header comment.
6458 (do_mixed_source_and_assembly): Now use add_dis_line_entry.
6459
a994041d
PA
64602016-01-21 Pedro Alves <palves@redhat.com>
6461
6462 * Makefile.in (COMPILER_CFLAGS): New.
6463 (CXXFLAGS): Get it from configure.
6464 (INTERNAL_CFLAGS_BASE, INTERNAL_LDFLAGS): Use COMPILER_CFLAGS
6465 instead of CFLAGS.
6466 * build-with-cxx.m4 (GDB_AC_BUILD_WITH_CXX): Set and AC_SUBST
6467 COMPILER_CFLAGS.
6468 * configure: Regenerate.
6469
305e13e6
JB
64702016-01-21 Joel Brobecker <brobecker@adacore.com>
6471
6472 * location.h (new_address_location): Add new parameters
6473 "addr_string" and "addr_string_len".
6474 (get_address_string_location): Add declaration.
6475 * location.c (new_address_location): Add new parameters
6476 "addr_string" and "addr_string_len". If not NULL, store
6477 a copy of the addr_string in the new location as well.
6478 (get_address_string_location): New function.
6479 (string_to_event_location): Update call to new_address_location.
6480 * linespec.c (event_location_to_sals) <ADDRESS_LOCATION>:
6481 Save the event location in the parser's state before
6482 passing it to convert_address_location_to_sals.
6483 * breakpoint.c (create_thread_event_breakpoint): Update call
6484 to new_address_location.
6485 (init_breakpoint_sal): Get the event location's string, if any,
6486 and use it to update call to new_address_location.
6487 * python/py-finishbreakpoint.c (bpfinishpy_init):
6488 Update call to new_address_location.
6489 * spu-tdep.c (spu_catch_start): Likewise.
6490
6491 * config/djgpp/fnchange.lst: Add entries for
6492 gdb/testsuite/gdb.base/break-fun-addr1.c and
6493 gdb/testsuite/gdb.base/break-fun-addr2.c.
6494
f7a6a40d
YQ
64952016-01-21 Yao Qi <yao.qi@linaro.org>
6496
6497 * arm-linux-tdep.c (arm_linux_sigreturn_next_pc): Add parameter
6498 is_thumb and set it according to CPSR saved on the stack.
6499 (arm_linux_get_next_pcs_syscall_next_pc): Pass is_thumb to
6500 arm_linux_sigreturn_next_pc.
6501
5f5dfff6
SM
65022016-01-20 Simon Marchi <simon.marchi@polymtl.ca>
6503
6504 * python/lib/gdb/printing.py (FlagEnumerationPrinter.__call__):
6505 Fix enumerators sort key function.
6506
be56871e
JB
65072016-01-20 Joel Brobecker <brobecker@adacore.com>
6508
b12e5614 6509 * printcmd.c (print_scalar_formatted): Move binary operator from
be56871e
JB
6510 end of line to beginning of next line. Adjust formatting
6511 accordingly.
6512
f2feec98
JB
65132016-01-19 John Baldwin <jhb@FreeBSD.org>
6514
6515 * fbsd-nat.c (fbsd_pid_to_exec_file): Use new "buflen" instead of
6516 "len" with sysctl.
6517
20a0aab3
JB
65182016-01-19 John Baldwin <jhb@FreeBSD.org>
6519
6520 * fbsd-tdep.c (find_stop_signal): Remove.
6521 (struct fbsd_collect_regset_section_cb) <lwp>: New field.
6522 <stop_signal>: New field.
6523 <abort_iteration>: New field.
6524 (fbsd_collect_regset_section_cb): Use new fields.
6525 (fbsd_collect_thread_registers): New function.
6526 (struct fbsd_corefile_thread_data): New structure.
6527 (fbsd_corefile_thread): New function.
6528 (fbsd_make_corefile_notes): Use new function to dump notes for each
6529 non-exited thread in a process.
6530
6e9567fe
JB
65312016-01-19 John Baldwin <jhb@FreeBSD.org>
6532
6533 * configure.ac: Check for support for LWP names on FreeBSD.
6534 * fbsd-nat.c [PT_LWPINFO] New variable debug_fbsd_lwp.
6535 [TDP_RFPPWAIT || HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME]
6536 (fbsd_fetch_kinfo_proc): Move function earlier.
6537 [PT_LWPINFO] (fbsd_thread_alive): New function.
6538 [PT_LWPINFO] (fbsd_pid_to_str): New function.
6539 [HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME] (fbsd_thread_name): New function.
6540 [PT_LWP_EVENTS] (fbsd_enable_lwp_events): New function.
6541 [PT_LWPINFO] (fbsd_add_threads): New function.
6542 [PT_LWPINFO] (fbsd_update_thread_list): New function.
6543 [PT_LWPINFO] New variable super_resume.
6544 [PT_LWPINFO] (resume_one_thread_cb): New function.
6545 [PT_LWPINFO] (resume_all_threads_cb): New function.
6546 [PT_LWPINFO] (fbsd_resume): New function.
6547 (fbsd_remember_child): Save full ptid instead of plain pid.
6548 (fbsd_is_child_pending): Return ptid of saved child process.
6549 (fbsd_wait): Include lwp in returned ptid and switch to LWP ptid on
6550 first stop.
6551 [PT_LWP_EVENTS] Handle LWP events.
6552 [TDP_RFPPWAIT] Include LWP in child ptid.
6553 (fbsd_post_startup_inferior) [PT_LWP_EVENTS]: Enable LWP events.
6554 (fbsd_post_attach) [PT_LWP_EVENTS]: Enable LWP events.
6555 Add threads for existing processes.
6556 (fbsd_nat_add_target) [PT_LWPINFO]: Set "to_thread_alive" to
6557 "fbsd_thread_alive".
6558 Set "to_pid_to_str" to "fbsd_pid_to_str".
6559 [HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME]: Set "to_thread_name" to
6560 "fbsd_thread_name".
6561 [PT_LWPINFO]: Set "to_update_thread_list" to "fbsd_update_thread_list".
6562 Set "to_has_thread_control" to "tc_schedlock".
6563 Set "to_resume" to "fbsd_resume".
6564 (_initialize_fbsd_nat): New function.
6565 * configure: Regenerate.
6566 * config.in: Regenerate.
6567
94309df7
JB
65682016-01-19 John Baldwin <jhb@FreeBSD.org>
6569
6570 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
6571 get_ptrace_pid.
6572 (amd64bsd_store_inferior_registers): Use get_ptrace_pid.
6573 (amd64bsd_dr_get): Use get_ptrace_pid.
6574 (amd64bsd_dr_set): Use get_ptrace_pid.
6575 * i386bsd-nat.c (i386bsd_fetch_inferior_registers): Use get_ptrace_pid.
6576 (i386bsd_store_inferior_registers): Use get_ptrace_pid.
6577 (i386bsd_dr_get): Use get_ptrace_pid.
6578 (i386bsd_dr_set): Use get_ptrace_pid.
6579 * inf-ptrace.c (get_ptrace_pid): Export.
6580 * inf-ptrace.h (get_ptrace_pid): Declare.
6581 * ppcfbsd-nat.c (ppcfbsd_fetch_inferior_registers): Use lwp id.
6582 (ppcfbsd_store_inferior_registers): Use lwp id.
6583
79117428
JB
65842016-01-19 John Baldwin <jhb@FreeBSD.org>
6585
6586 * fbsd_tdep.c (fbsd_core_pid_to_str): New function.
6587 (fbsd_core_thread_name): New function.
6588 (fbsd_init_abi): Add "core_pid_to_str" gdbarch method.
6589 Add "core_thread_name" gdbarch method.
6590
4dfc5dbc
JB
65912016-01-19 John Baldwin <jhb@FreeBSD.org>
6592
6593 * corelow.c (core_thread_name): New function.
6594 (init_core_ops): Use "core_thread_name" for the "to_thread_name"
6595 target op.
6596 * gdbarch.sh (core_thread_name): New gdbarch callback.
6597 * gdbarch.h: Re-generate.
6598 * gdbarch.c: Re-generate.
6599
10e3ed90
SM
66002016-01-19 Simon Marchi <simon.marchi@polymtl.ca>
6601
6602 * python/lib/gdb/printing.py (_EnumInstance.to_string): Explicitly
6603 convert gdb.Value to integer type using int().
6604
a6e69c1f
JB
66052016-01-19 John Baldwin <jhb@FreeBSD.org>
6606
6607 * configure.ac: Include <sys/types.h when checking for "r_fs" in
6608 "struct reg".
6609 * configure: Regenerate.
6610
37e42b4f
PA
66112016-01-19 Pedro Alves <palves@redhat.com>
6612
6613 * ax-gdb.c (agent_command_1): Adjust call to decode_line_full.
6614 * break-catch-throw.c (re_set_exception_catchpoint): Pass the
6615 current program space down to linespec decoding and breakpoint
6616 location updating.
6617 * breakpoint.c (parse_breakpoint_sals): Adjust calls to
6618 decode_line_full.
6619 (until_break_command): Adjust calls to decode_line_1.
6620 (base_breakpoint_decode_location, bkpt_decode_location): Add
6621 'search_pspace' parameter. Pass it along.
6622 (bkpt_probe_create_sals_from_location): Adjust calls to
6623 parse_probes.
6624 (tracepoint_decode_location, tracepoint_probe_decode_location)
6625 (strace_marker_decode_location): Add 'search_pspace' parameter.
6626 Pass it along.
6627 (all_locations_are_pending): Rewrite to take a breakpoint and
6628 program space as arguments instead.
6629 (hoist_existing_locations): New function.
6630 (update_breakpoint_locations): Add 'filter_pspace' parameter. Use
6631 hoist_existing_locations instead of always removing all locations,
6632 and adjust to all_locations_are_pending change.
6633 (location_to_sals): Add 'search_pspace' parameter. Pass it along.
6634 Don't disable the breakpoint if there are other locations in
6635 another program space.
6636 (breakpoint_re_set_default): Adjust to pass down the current
6637 program space as filter program space.
6638 (decode_location_default): Add 'search_pspace' parameter and pass
6639 it along.
6640 (prepare_re_set_context): Don't switch program space here.
6641 (breakpoint_re_set): Use save_current_space_and_thread instead of
6642 save_current_program_space.
6643 * breakpoint.h (struct breakpoint_ops) <decode_location>: Add
6644 'search_pspace' parameter.
6645 (update_breakpoint_locations): Add 'filter_pspace' parameter.
6646 * cli/cli-cmds.c (edit_command, list_command): Adjust calls to
6647 decode_line_1.
6648 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the current
6649 program space as filter program space.
6650 * linespec.c (struct linespec_state) <search_pspace>: New field.
6651 (create_sals_line_offset, convert_explicit_location_to_sals)
6652 (parse_linespec): Pass the search program space down.
6653 (linespec_state_constructor): Add 'search_pspace' parameter.
6654 Store it.
6655 (linespec_parser_new): Add 'search_pspace' parameter and pass it
6656 along.
6657 (linespec_lex_to_end): Adjust.
6658 (decode_line_full, decode_line_1): Add 'search_pspace' parameter
6659 and pass it along.
6660 (decode_line_with_last_displayed): Adjust.
6661 (collect_symtabs_from_filename, symtabs_from_filename): New
6662 'search_pspace' parameter. Use it.
6663 (find_function_symbols): Pass the search program space down.
6664 * linespec.h (decode_line_1, decode_line_full): Add
6665 'search_pspace' parameter.
6666 * probe.c (parse_probes_in_pspace): New function, factored out
6667 from ...
6668 (parse_probes): ... this. Add 'search_pspace' parameter and use
6669 it.
6670 * probe.h (parse_probes): Add pspace' parameter.
6671 * python/python.c (gdbpy_decode_line): Adjust.
6672 * tracepoint.c (scope_info): Adjust.
6673
100b4f2e
MR
66742016-01-18 Maciej W. Rozycki <macro@imgtec.com>
6675
6676 * mips-tdep.c (mips_insn_size): Remove 48-bit microMIPS
6677 instruction support.
6678 (micromips_next_pc): Likewise.
6679 (micromips_scan_prologue): Likewise.
6680 (micromips_deal_with_atomic_sequence): Likewise.
6681 (micromips_stack_frame_destroyed_p): Likewise.
6682 (mips_breakpoint_from_pc): Likewise.
6683
3f7f3650
MR
66842016-01-18 Maciej W. Rozycki <macro@imgtec.com>
6685
6686 * mips-tdep.c (micromips_insn_at_pc_has_delay_slot): Pass
6687 unshifted 16-bit microMIPS instruction word to `mips_insn_size'.
6688
f303dbd6
PA
66892016-01-18 Pedro Alves <palves@redhat.com>
6690
6691 * NEWS: Mention that GDB now displays the ID and name of the
6692 thread that hit a breakpoint or received a signal.
6693 * break-catch-sig.c (signal_catchpoint_print_it): Use
6694 maybe_print_thread_hit_breakpoint.
6695 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
6696 * break-catch-throw.c (print_it_exception_catchpoint): Likewise.
6697 * breakpoint.c (maybe_print_thread_hit_breakpoint): New function.
6698 (print_it_catch_fork, print_it_catch_vfork, print_it_catch_solib)
6699 (print_it_catch_exec, print_it_ranged_breakpoint)
6700 (print_it_watchpoint, print_it_masked_watchpoint, bkpt_print_it):
6701 Use maybe_print_thread_hit_breakpoint.
6702 * breakpoint.h (maybe_print_thread_hit_breakpoint): Declare.
6703 * gdbthread.h (show_thread_that_caused_stop): Declare.
6704 * infrun.c (print_signal_received_reason): Print which thread
6705 received signal.
6706 * thread.c (show_thread_that_caused_stop): New function.
6707
eb0edac8
GB
67082016-01-18 Gary Benson <gbenson@redhat.com>
6709
6710 * nat/linux-namespaces.c (do_fork): New function.
6711 (linux_mntns_get_helper): Use the above.
6712
dc365182
JH
67132016-01-17 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de> (tiny change)
6714
6715 Pushed by Joel Brobecker <brobecker@adacore.com>.
6716 PR gdb/19208
6717 * dwarf2read.c (read_partial_die): Do not call set_objfile_main_name
6718 if the function has no name.
6719
f74f61cb
SL
67202016-01-15 Sandra Loosemore <sandra@codesourcery.com>
6721
6722 * charset.c [PHONY_ICONV] (GDB_DEFAULT_HOST_CHARSET):
6723 Conditionalize for Windows host.
6724 (GDB_DEFAULT_TARGET_CHARSET): Match GDB_DEFAULT_HOST_CHARSET.
6725 (GDB_DEFAULT_TARGET_WIDE_CHARSET): Use UTF-32.
6726 (phony_iconv_open): Handle both UTF-32 endiannesses.
6727 (phony_iconv): Likewise. Check for output overflow and clean up
6728 out-of-input cases. Correct adjustment to input buffer pointer.
6729 (set_be_le_names) [PHONY_ICONV]: Use hard-wired names to match
6730 phony_iconv_open.
6731
71ef29a8
PA
67322016-01-15 Pedro Alves <palves@redhat.com>
6733
6734 * NEWS: Mention star wildcard ranges.
6735 * cli/cli-utils.c (get_number_or_range): Check state->in_range first.
6736 (number_range_setup_range): New function.
6737 * cli/cli-utils.h (number_range_setup_range): New declaration.
6738 * thread.c (thread_apply_command): Support star TID ranges.
6739 * tid-parse.c (tid_range_parser_finished)
6740 (tid_range_parser_string, tid_range_parser_skip)
6741 (get_tid_or_range, get_tid_or_range): Handle
6742 TID_RANGE_STATE_STAR_RANGE.
6743 (tid_range_parser_star_range): New function.
6744 * tid-parse.h (enum tid_range_state) <TID_RANGE_STATE_STAR_RANGE>:
6745 New value.
6746 (tid_range_parser_star_range): New declaration.
6747
3f5b7598
PA
67482016-01-15 Pedro Alves <palves@redhat.com>
6749
6750 * thread.c (thread_apply_command): Use the tid range parser to
6751 advance past the thread ID list.
6752 * tid-parse.c (get_positive_number_trailer): New function.
6753 (parse_thread_id): Use it.
6754 (get_tid_or_range): Use it. Return 0 instead of throwing invalid
6755 thread ID error.
6756 (get_tid_or_range): Detect negative values. Return 0 instead of
6757 throwing invalid thread ID error.
6758
e7cf25a8
YQ
67592016-01-14 Yao Qi <yao.qi@linaro.org>
6760
6761 * arm-linux-tdep.c (arm_linux_get_next_pcs_syscall_next_pc):
6762 Declare.
6763 (arm_linux_get_next_pcs_ops): Install
6764 arm_linux_get_next_pcs_syscall_next_pc.
6765 (arm_linux_syscall_next_pc): Change to ...
6766 (arm_linux_get_next_pcs_syscall_next_pc): ... it.
6767 (arm_linux_init_abi): Don't set tdep->syscall_next_pc.
6768 * arm-tdep.c (arm_get_next_pcs_syscall_next_pc): Declare.
6769 (arm_get_next_pcs_syscall_next_pc): Make it static. Don't
6770 call tdep->syscall_next_pc.
6771 * arm-tdep.h (struct gdbarch_tdep) <syscall_next_pc>: Remove.
6772 (arm_get_next_pcs_syscall_next_pc): Remove.
6773
c0518081
YQ
67742016-01-14 Yao Qi <yao.qi@linaro.org>
6775
6776 * remote.c (remote_set_syscall_catchpoint): Cast to char *.
6777 * thread.c (do_captured_thread_select): Cast to const char *.
6778
1b451dda
YQ
67792016-01-14 Yao Qi <yao.qi@linaro.org>
6780
6781 * arch/arm-get-next-pcs.c (arm_get_next_pcs_ctor): Change
6782 argument arm_thumb2_breakpoint to has_thumb2_breakpoint.
6783 (thumb_get_next_pcs_raw): Check has_thumb2_breakpoint
6784 instead.
6785 * arch/arm-get-next-pcs.h (struct arm_get_next_pcs)
6786 <arm_thumb2_breakpoint>: Remove.
6787 <has_thumb2_breakpoint>: New field.
6788 (arm_get_next_pcs_ctor): Update declaration.
6789 * arm-linux-tdep.c (arm_linux_software_single_step): Pass
6790 1 to arm_get_next_pcs_ctor.
6791 * arm-tdep.c (arm_software_single_step): Pass 0 to
6792 arm_get_next_pcs_ctor.
6793
bc06e0b1
UW
67942016-01-13 Ulrich Weigand <uweigand@de.ibm.com>
6795
6796 * MAINTAINERS: Add Andreas Arnez as s390 target maintainer.
6797
4e7b8bea
YQ
67982016-01-13 Yao Qi <yao.qi@linaro.org>
6799
6800 * arch/arm-get-next-pcs.c (arm_get_next_pcs_raw): Use
6801 byte_order_for_code to read instruction.
6802
663f6d42
PA
68032016-01-13 Pedro Alves <palves@redhat.com>
6804
6805 * NEWS: Mention $_gthread.
6806 * gdbthread.h (struct thread_info) <global_num>: Mention
6807 $_gthread.
6808 * thread.c (thread_num_make_value_helper): New function.
6809 (thread_id_make_value): Delete.
6810 (thread_id_per_inf_num_make_value, global_thread_id_make_value):
6811 New.
6812 (thread_funcs): Adjust.
6813 (gthread_funcs): New.
6814 (_initialize_thread): Register $_gthread variable.
6815
c84f6bbf
PA
68162016-01-13 Pedro Alves <palves@redhat.com>
6817
6818 * NEWS: Mention "info threads -gid".
6819 * gdbthread.h (struct thread_info) <global_num>: Mention "info
6820 threads -gid".
6821 * thread.c (info_threads_command): Handle "-gid".
6822 (_initialize_thread): Adjust "info threads" help string to mention
6823 -gid.
6824
22a02324
PA
68252016-01-13 Pedro Alves <palves@redhat.com>
6826
6827 * NEWS: Mention InferiorThread.global_num.
6828 * python/py-infthread.c (thpy_get_global_num): New function.
6829 (thread_object_getset): Register "global_num".
6830
5d5658a1
PA
68312016-01-13 Pedro Alves <palves@redhat.com>
6832
6833 * NEWS: Mention that thread IDs are now per inferior and global
6834 thread IDs.
6835 * Makefile.in (SFILES): Add tid-parse.c.
6836 (COMMON_OBS): Add tid-parse.o.
6837 (HFILES_NO_SRCDIR): Add tid-parse.h.
6838 * ada-tasks.c: Adjust to use ptid_to_global_thread_id.
6839 * breakpoint.c (insert_breakpoint_locations)
6840 (remove_threaded_breakpoints, bpstat_check_breakpoint_conditions)
6841 (print_one_breakpoint_location, set_longjmp_breakpoint)
6842 (check_longjmp_breakpoint_for_call_dummy)
6843 (set_momentary_breakpoint): Adjust to use global IDs.
6844 (find_condition_and_thread, watch_command_1): Use parse_thread_id.
6845 (until_break_command, longjmp_bkpt_dtor)
6846 (breakpoint_re_set_thread, insert_single_step_breakpoint): Adjust
6847 to use global IDs.
6848 * dummy-frame.c (pop_dummy_frame_bpt): Adjust to use
6849 ptid_to_global_thread_id.
6850 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
6851 * gdbthread.h (struct thread_info): Rename field 'num' to
6852 'global_num. Add new fields 'per_inf_num' and 'inf'.
6853 (thread_id_to_pid): Rename thread_id_to_pid to
6854 global_thread_id_to_ptid.
6855 (pid_to_thread_id): Rename to ...
6856 (ptid_to_global_thread_id): ... this.
6857 (valid_thread_id): Rename to ...
6858 (valid_global_thread_id): ... this.
6859 (find_thread_id): Rename to ...
6860 (find_thread_global_id): ... this.
6861 (ALL_THREADS, ALL_THREADS_BY_INFERIOR): Declare.
6862 (print_thread_info): Add comment.
6863 * tid-parse.h: New file.
6864 * tid-parse.c: New file.
6865 * infcmd.c (step_command_fsm_prepare)
6866 (step_command_fsm_should_stop): Adjust to use the global thread
6867 ID.
6868 (until_next_command, until_next_command)
6869 (finish_command_fsm_should_stop): Adjust to use the global thread
6870 ID.
6871 (attach_post_wait): Adjust to check the inferior number too.
6872 * inferior.h (struct inferior) <highest_thread_num>: New field.
6873 * infrun.c (handle_signal_stop)
6874 (insert_exception_resume_breakpoint)
6875 (insert_exception_resume_from_probe): Adjust to use the global
6876 thread ID.
6877 * record-btrace.c (record_btrace_open): Use global thread IDs.
6878 * remote.c (process_initial_stop_replies): Also consider the
6879 inferior number.
6880 * target.c (target_pre_inferior): Clear the inferior's highest
6881 thread num.
6882 * thread.c (clear_thread_inferior_resources): Adjust to use the
6883 global thread ID.
6884 (new_thread): New inferior parameter. Adjust to use it. Set both
6885 the thread's global ID and the thread's per-inferior ID.
6886 (add_thread_silent): Adjust.
6887 (find_thread_global_id): New.
6888 (find_thread_id): Make static. Adjust to rename.
6889 (valid_thread_id): Rename to ...
6890 (valid_global_thread_id): ... this.
6891 (pid_to_thread_id): Rename to ...
6892 (ptid_to_global_thread_id): ... this.
6893 (thread_id_to_pid): Rename to ...
6894 (global_thread_id_to_ptid): ... this. Adjust.
6895 (first_thread_of_process): Adjust.
6896 (do_captured_list_thread_ids): Adjust to use global thread IDs.
6897 (should_print_thread): New function.
6898 (print_thread_info): Rename to ...
6899 (print_thread_info_1): ... this, and add new show_global_ids
6900 parameter. Handle it. Iterate over inferiors.
6901 (print_thread_info): Reimplement as wrapper around
6902 print_thread_info_1.
6903 (show_inferior_qualified_tids): New function.
6904 (print_thread_id): Use it.
6905 (tp_array_compar): Compare inferior numbers too.
6906 (thread_apply_command): Use tid_range_parser.
6907 (do_captured_thread_select): Use parse_thread_id.
6908 (thread_id_make_value): Adjust.
6909 (_initialize_thread): Adjust "info threads" help string.
6910 * varobj.c (struct varobj_root): Update comment.
6911 (varobj_create): Adjust to use global thread IDs.
6912 (value_of_root_1): Adjust to use global_thread_id_to_ptid.
6913 * windows-tdep.c (display_tib): No longer accept an argument.
6914 * cli/cli-utils.c (get_number_trailer): Make extern.
6915 * cli/cli-utils.h (get_number_trailer): Declare.
6916 (get_number_const): Adjust documentation.
6917 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Adjust to use global
6918 thread IDs.
6919 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
6920 (mi_on_normal_stop, mi_output_running_pid, mi_on_resume):
6921 * mi/mi-main.c (mi_execute_command, mi_cmd_execute): Likewise.
6922 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_thread_x):
6923 Likewise.
6924 * python/py-breakpoint.c (bppy_set_thread): Likewise.
6925 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
6926 * python/py-infthread.c (thpy_get_num): Add comment and return the
6927 per-inferior thread ID.
6928 (thread_object_getset): Update comment of "num".
6929
43792cf0
PA
69302016-01-13 Pedro Alves <palves@redhat.com>
6931
6932 * breakpoint.c (remove_threaded_breakpoints)
6933 (print_one_breakpoint_location): Use print_thread_id.
6934 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
6935 (btrace_fetch, btrace_clear): Use print_thread_id.
6936 * common/print-utils.c (CELLSIZE): Delete.
6937 (get_cell): Rename to ...
6938 (get_print_cell): ... this and made extern. Adjust call callers.
6939 Adjust to use PRINT_CELL_SIZE.
6940 * common/print-utils.h (get_print_cell): Declare.
6941 (PRINT_CELL_SIZE): New.
6942 * gdbthread.h (print_thread_id): Declare.
6943 * infcmd.c (signal_command): Use print_thread_id.
6944 * inferior.c (print_inferior): Use print_thread_id.
6945 * infrun.c (handle_signal_stop)
6946 (insert_exception_resume_breakpoint)
6947 (insert_exception_resume_from_probe)
6948 (print_signal_received_reason): Use print_thread_id.
6949 * record-btrace.c (record_btrace_info)
6950 (record_btrace_resume_thread, record_btrace_cancel_resume)
6951 (record_btrace_step_thread, record_btrace_wait): Use
6952 print_thread_id.
6953 * thread.c (thread_apply_all_command): Use print_thread_id.
6954 (print_thread_id): New function.
6955 (thread_apply_command): Use print_thread_id.
6956 (thread_command, thread_find_command, do_captured_thread_select):
6957 Use print_thread_id.
6958
84654457
PA
69592016-01-13 Pedro Alves <palves@redhat.com>
6960
6961 * NEWS: Mention InferiorThread.inferior.
6962 * python/py-infthread.c (thpy_get_inferior): New.
6963 (thread_object_getset): Register "inferior".
6964
e3940304
PA
69652016-01-13 Pedro Alves <palves@redhat.com>
6966
6967 * NEWS: Mention $_inferior.
6968 * inferior.c (inferior_id_make_value): New.
6969 (inferior_funcs): New.
6970 (_initialize_inferior): Create $_inferior variable.
6971
a911d87a
PA
69722016-01-13 Pedro Alves <palves@redhat.com>
6973
6974 PR breakpoints/19388
6975 * frame.c (get_current_frame): Use validate_registers_access.
6976 * gdbthread.h (validate_registers_access): Declare.
6977 * infrun.c (validate_siginfo_access): Delete.
6978 (siginfo_value_read, siginfo_value_write): Use
6979 validate_registers_access.
6980 * thread.c (validate_registers_access): New function.
6981
82075af2
JS
69822016-01-12 Josh Stone <jistone@redhat.com>
6983 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6984
6985 * NEWS (Changes since GDB 7.10): Mention QCatchSyscalls and the
6986 syscall_entry and syscall_return stop reasons. Mention GDB
6987 support for remote catch syscall.
6988 * remote.c (PACKET_QCatchSyscalls): New enum.
6989 (remote_set_syscall_catchpoint): New function.
6990 (remote_protocol_features): New element for QCatchSyscalls.
6991 (remote_parse_stop_reply): Parse syscall_entry/return stops.
6992 (init_remote_ops): Install remote_set_syscall_catchpoint.
6993 (_initialize_remote): Config QCatchSyscalls.
6994 * linux-nat.h (struct lwp_info) <syscall_state>: Comment typo.
6995
d18547d8
YQ
69962016-01-12 Yao Qi <yao.qi@linaro.org>
6997
6998 * nat/linux-ptrace.c (linux_child_function): Cast child_stack
6999 to gdb_byte * and pass to linux_fork_to_function.
7000
ba4dd7c4
YQ
70012016-01-12 Yao Qi <yao.qi@linaro.org>
7002
7003 * nat/linux-ptrace.c (linux_fork_to_function): Change type
7004 of argument 'function'.
7005 (linux_grandchild_function): Change return type to 'int'.
7006 Change child_stack's type to 'void *'.
7007 (linux_child_function): Likewise.
7008
bc504a31
PA
70092016-01-12 Pedro Alves <palves@redhat.com>
7010
7011 Remove use of the registered trademark symbol throughout.
7012
5eddd578
TS
70132016-01-12 Thomas Schwinge <thomas@codesourcery.com>
7014
7015 * reply_mig_hack.awk: Rewrite one regular expression.
7016
b835bb52
MF
70172016-01-11 Mike Frysinger <vapier@gentoo.org>
7018
7019 * acinclude.m4: Include new warning.m4 file.
7020 * configure: Regenerated.
7021 * configure.ac: Move all warning logic ...
7022 * warning.m4: ... here.
7023
2f99e8fc
YQ
70242016-01-08 Yao Qi <yao.qi@linaro.org>
7025
7026 * extension.c: Include target.h.
7027 (set_active_ext_lang): Only call install_gdb_sigint_handler,
7028 check_quit_flag, and set_quit_flag if target_terminal_is_ours
7029 returns false.
7030 (restore_active_ext_lang): Likewise.
7031 * target.c (target_terminal_is_ours): New function.
7032 * target.h (target_terminal_is_ours): Declare.
7033
5dd05630
MR
70342016-01-07 Maciej W. Rozycki <macro@imgtec.com>
7035
7036 * mips-tdep.c (mips_breakpoint_from_pc): Rename local `status'
7037 to `err' in the little-endian leg.
7038
f5aa3069
YQ
70392016-01-06 Yao Qi <yao.qi@linaro.org>
7040
7041 * arch/arm-get-next-pcs.c (arm_get_next_pcs): Move it to some
7042 lines below.
7043 (thumb_get_next_pcs_raw): Make it static.
7044 (arm_get_next_pcs_raw): Likewise.
7045 * arch/arm-get-next-pcs.h (thumb_get_next_pcs_raw): Remove the
7046 declaration.
7047 (arm_get_next_pcs_raw): Likewise.
7048
bf69ad5a
MF
70492016-01-05 Mike Frysinger <vapier@gentoo.org>
7050
7051 * version.in: Change cvs to git.
7052
66750332
MF
70532016-01-05 Mike Frysinger <vapier@gentoo.org>
7054
7055 * configure.tgt (score-*-*): Delete gdb_sim assignment.
7056
976102cd
PA
70572016-01-05 Pedro Alves <palves@redhat.com>
7058
7059 PR sim/13418
7060 * configure.ac: Define WITH_PPC_SIM when linking in the sim and
7061 the target is powerpc*.
fa89c126
PA
7062 * rs6000-tdep.c (init_sim_regno_table): Check WITH_PPC_SIM instead
7063 of WITH_SIM.
976102cd
PA
7064 * configure: Regenerate.
7065 * config.in: Regenerate.
7066
43368e1d
MM
70672016-01-04 Markus Metzger <markus.t.metzger@intel.com>
7068
7069 * btrace.c (btrace_pt_readmem_callback): Do not return in TRY/CATCH.
7070
32273fe6
MF
70712016-01-02 Mike Frysinger <vapier@gentoo.org>
7072
7073 * configure.tgt (powerpc*-*-*): Delete test call and
7074 always assign gdb_sim.
7075
618f726f
JB
70762016-01-01 Joel Brobecker <brobecker@adacore.com>
7077
7078 Update year range in copyright notice of all files.
7079
edd88788
JB
70802016-01-01 Joel Brobecker <brobecker@adacore.com>
7081
7082 * top.c (print_gdb_version): Change copyright year in version
7083 message.
7084
0f7b3ef4 70852016-01-01 Joel Brobecker <brobecker@adacore.com>
aec47d1d 7086
0f7b3ef4 7087 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2015.
aec47d1d 7088
0f7b3ef4 7089For older changes see ChangeLog-2015.
c906108c
SS
7090\f
7091Local Variables:
7092mode: change-log
7093left-margin: 8
7094fill-column: 74
7095version-control: never
57da7796 7096coding: utf-8
c906108c 7097End:
This page took 2.365319 seconds and 4 git commands to generate.