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