Implement all-stop on top of a target running non-stop mode
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
fbea99ea
PA
12015-08-07 Pedro Alves <palves@redhat.com>
2
3 * NEWS: Mention "maint set/show target-non-stop".
4 * breakpoint.c (update_global_location_list): Check
5 target_is_non_stop_p instead of non_stop.
6 * infcmd.c (attach_command_post_wait, attach_command): Likewise.
7 * infrun.c (show_can_use_displaced_stepping)
8 (can_use_displaced_stepping_p, start_step_over_inferior):
9 Likewise.
10 (internal_resume_ptid): New function.
11 (resume): Use it.
12 (proceed): Check target_is_non_stop_p instead of non_stop. If in
13 all-stop mode but the target is always in non-stop mode, start all
14 the other threads that are implicitly resumed too.
15 (for_each_just_stopped_thread, fetch_inferior_event)
16 (adjust_pc_after_break, stop_all_threads): Check
17 target_is_non_stop_p instead of non_stop.
18 (handle_inferior_event): Likewise. Handle detach-fork in all-stop
19 with the target always in non-stop mode.
20 (handle_signal_stop) <random signal>: Check target_is_non_stop_p
21 instead of non_stop.
22 (switch_back_to_stepped_thread): Check target_is_non_stop_p
23 instead of non_stop.
24 (keep_going_stepped_thread): Use internal_resume_ptid.
25 (stop_waiting): If in all-stop mode, and the target is in non-stop
26 mode, stop all threads.
27 (keep_going_pass): Likewise, when starting a new in-line step-over
28 sequence.
29 * linux-nat.c (get_pending_status, select_event_lwp)
30 (linux_nat_filter_event, linux_nat_wait_1, linux_nat_wait): Check
31 target_is_non_stop_p instead of non_stop.
32 (linux_nat_always_non_stop_p): New function.
33 (linux_nat_stop): Check target_is_non_stop_p instead of non_stop.
34 (linux_nat_add_target): Install linux_nat_always_non_stop_p.
35 * target-delegates.c: Regenerate.
36 * target.c (target_is_non_stop_p): New function.
37 (target_non_stop_enabled, target_non_stop_enabled_1): New globals.
38 (maint_set_target_non_stop_command)
39 (maint_show_target_non_stop_command): New functions.
40 (_initilize_target): Install "maint set/show target-non-stop"
41 commands.
42 * target.h (struct target_ops) <to_always_non_stop_p>: New field.
43 (target_non_stop_enabled): New declaration.
44 (target_is_non_stop_p): New declaration.
45
372316f1
PA
462015-08-07 Pedro Alves <pedro@codesourcery.com>
47
48 * breakpoint.c (breakpoints_should_be_inserted_now): If any thread
49 has a pending status, return true.
50 * gdbthread.h: Include target/waitstatus.h.
51 (struct thread_suspend_state) <stop_reason, waitstatus_pending_p,
52 stop_pc>: New fields.
53 (struct thread_info) <resumed>: New field.
54 (set_resumed): Declare.
55 * infrun.c: Include "event-loop.h".
56 (infrun_async_inferior_event_token, infrun_is_async): New globals.
57 (infrun_async): New function.
58 (clear_step_over_info): Add debug output.
59 (displaced_step_in_progress_any_inferior): New function.
60 (displaced_step_fixup): New returns int.
61 (start_step_over): Handle in-line step-overs too. Assert the
62 thread is marked resumed.
63 (resume_cleanups): Clear the thread's resumed flag.
64 (resume): Set the thread's resumed flag. Return early if the
65 thread has a pending status. Allow stepping a breakpoint with no
66 signal.
67 (proceed): Adjust to check 'resumed' instead of 'executing'.
68 (clear_proceed_status_thread): If the thread has a pending status,
69 and that status is a finished step, discard the pending status.
70 (clear_proceed_status): Don't clear step_over_info here.
71 (random_pending_event_thread, do_target_wait): New functions.
72 (prepare_for_detach, wait_for_inferior, fetch_inferior_event): Use
73 do_target_wait.
74 (wait_one): New function.
75 (THREAD_STOPPED_BY): New macro.
76 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
77 (thread_stopped_by_hw_breakpoint): New functions.
78 (switch_to_thread_cleanup, save_waitstatus, stop_all_threads): New
79 functions.
80 (handle_inferior_event): Also call set_resumed(false) on all
81 threads implicitly stopped by the event.
82 (restart_threads, resumed_thread_with_pending_status): New
83 functions.
84 (finish_step_over): If we were doing an in-line step-over before,
85 and no longer are after trying to start a new step-over, restart
86 all threads. If we have multiple threads with pending events,
87 save the current event and go through the event loop again.
88 (handle_signal_stop): Return early if finish_step_over returns
89 false.
90 <random signal>: If we get a signal while stepping over a
91 breakpoint in-line in non-stop mode, restart all threads. Clear
92 step_over_info before delivering the signal.
93 (keep_going_stepped_thread): Use internal_error instead of
94 gdb_assert. Mark the thread as resumed.
95 (keep_going_pass_signal): Assert the thread isn't already resumed.
96 If some other thread is doing an in-line step-over, defer the
97 resume. If we just started a new in-line step-over, stop all
98 threads. Don't clear step_over_info.
99 (infrun_async_inferior_event_handler): New function.
100 (_initialize_infrun): Create async event handler with
101 infrun_async_inferior_event_handler as callback.
102 (infrun_async): New declaration.
103 * target.c (target_async): New function.
104 * target.h (target_async): Declare macro and readd as function
105 declaration.
106 * target/waitstatus.h (enum target_stop_reason)
107 <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
108 * thread.c (new_thread): Clear the new waitstatus field.
109 (set_resumed): New function.
110
2ac7589c
PA
1112015-08-07 Pedro Alves <palves@redhat.com>
112
113 * infrun.c (keep_going_stepped_thread): New function, factored out
114 from ...
115 (switch_back_to_stepped_thread): ... here.
116
8b061563
PA
1172015-08-07 Pedro Alves <palves@redhat.com>
118
119 * infrun.c (currently_stepping): Extend intro comment.
120 * target.h (target_resume): Extend intro comment.
121
1afd5965
PA
1222015-08-07 Pedro Alves <palves@redhat.com>
123
124 * infrun.c (switch_back_to_stepped_thread): Use ecs->ptid instead
125 of inferior_ptid. If the stepped thread vanished, return 0
126 instead of resuming here. Use reset_ecs. Print the prev_pc and
127 the current stop_pc in log message. Clear trap_expected if the
128 thread advanced. Don't pass currently_stepping to
129 do_target_resume.
130
4d9d9d04
PA
1312015-08-07 Pedro Alves <palves@redhat.com>
132
133 * gdbthread.h (struct thread_info) <prev_pc>: Extend comment.
134 * infrun.c (struct execution_control_state): Move higher up in the
135 file.
136 (reset_ecs): New function.
137 (start_step_over): Now returns int. Rewrite to use
138 keep_going_pass_signal instead of manually starting a displaced step.
139 (resume): Don't call set_running here. If displaced stepping
140 can't start now, clear trap_expected.
141 (find_thread_needs_step_over): Delete function.
142 (proceed): Set up finish_thread_state_cleanup. Call set_running.
143 If the current thread needs a step over, push it in the step-over
144 chain. Don't set insert breakpoints nor call resume directly
145 here. Instead rewrite to use start_step_over and
146 keep_going_pass_signal.
147 (finish_step_over): New function.
148 (handle_signal_stop): Call finish_step_over instead of
149 start_step_over.
150 (switch_back_to_stepped_thread): If the event thread needs another
151 step-over do that first. Use start_step_over.
152 (keep_going_pass_signal): New function, factored out from ...
153 (keep_going): ... here.
154 (_initialize_infrun): Comment moved here.
155 * thread.c (set_running_thread): New function.
156 (set_running, finish_thread_state): Use set_running_thread.
157
c2829269
PA
1582015-08-07 Pedro Alves <palves@redhat.com>
159
160 * gdbthread.h (struct thread_info) <step_over_prev,
161 step_over_next>: New fields.
162 (thread_step_over_chain_enqueue, thread_step_over_chain_remove)
163 (thread_step_over_chain_next, thread_is_in_step_over_chain): New
164 declarations.
165 * infrun.c (struct displaced_step_request): Delete.
166 (struct displaced_step_inferior_state) <step_request_queue>:
167 Delete field.
168 (displaced_step_prepare): Assert that trap_expected is set. Use
169 thread_step_over_chain_enqueue. Split starting a new displaced
170 step to ...
171 (start_step_over): ... this new function.
172 (resume): Assert the thread isn't waiting for a step over already.
173 (proceed): Assert the thread isn't waiting for a step over
174 already.
175 (infrun_thread_stop_requested): Adjust to remove threads from the
176 embedded step-over chain.
177 (handle_inferior_event) <fork/vfork>: Call start_step_over after
178 displaced_step_fixup.
179 (handle_signal_stop): Call start_step_over after
180 displaced_step_fixup.
181 * infrun.h (step_over_queue_head): New declaration.
182 * thread.c (step_over_chain_enqueue, step_over_chain_remove)
183 (thread_step_over_chain_next, thread_is_in_step_over_chain)
184 (thread_step_over_chain_enqueue)
185 (thread_step_over_chain_remove): New functions.
186 (delete_thread_1): Remove thread from the step-over chain.
187
6c4cfb24
PA
1882015-08-07 Pedro Alves <palves@redhat.com>
189
190 * infrun.c (thread_still_needs_step_over): Rename to ...
191 (thread_still_needs_step_over_bp): ... this.
192 (enum step_over_what): New.
193 (thread_still_needs_step_over): Reimplement.
194
567420d1
PA
1952015-08-07 Pedro Alves <palves@redhat.com>
196
197 * remote.c (remote_wait_as): If not waiting for a stop reply,
198 return TARGET_WAITKIND_NO_RESUMED. If TARGET_WNOHANG is
199 requested, don't block waiting forever.
200
d8dd4d5f
PA
2012015-08-07 Pedro Alves <pedro@codesourcery.com>
202
203 * infrun.c (adjust_pc_after_break): Now takes thread_info and
204 waitstatus pointers instead of an ecs. Adjust.
205 (handle_inferior_event): Adjust caller.
206
e1316e60
PA
2072015-08-07 Pedro Alves <palves@redhat.com>
208
209 * infrun.c (handle_inferior_event): If we get
210 TARGET_WAITKIND_SIGNALLED or TARGET_WAITKIND_EXITED in non-stop
211 mode, mark all threads of the exiting process as not-executing.
212 (normal_stop): If we get TARGET_WAITKIND_SIGNALLED or
213 TARGET_WAITKIND_EXITED in non-stop mode, finish all threads of the
214 exiting process, if inferior_ptid still points at a process.
215 * thread.c (struct current_thread_cleanup) <next>: New field.
216 (current_thread_cleanup_chain): New global.
217 (restore_current_thread_ptid_changed): New function.
218 (restore_current_thread_cleanup_dtor): Remove the cleanup from the
219 current_thread_cleanup_chain list.
220 (make_cleanup_restore_current_thread): Add the cleanup data to the
221 current_thread_cleanup_chain list.
222 (_initialize_thread): Install restore_current_thread_ptid_changed
223 as thread_ptid_changed observer.
224
47e9c225
JB
2252015-08-07 Joel Brobecker <brobecker@adacore.com>
226
227 * dtrace-probe.c (dtrace_process_dof): Ignore the objfile's DOF
228 data if a DTRACE_DOF_SECT_TYPE_PROVIDER section is found to be
229 smaller than expected.
230
06096720
AB
2312015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
232
233 * stack.c (get_frame_language): Moved ...
234 * frame.c (get_frame_language): ... to here.
235 * language.h (get_frame_language): Declaration moved to frame.h.
236 * frame.h: Add language.h include, for language enum.
237 (get_frame_language): Declaration moved from language.h.
238 * language.c: Add frame.h include.
239 * top.c: Add frame.h include.
240 * symtab.h (struct obj_section): Declare.
241 (struct cmd_list_element): Declare.
242
7ff38b1c
AB
2432015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
244
245 * language.c (show_language_command): Find selected frame before
246 asking for the language of that frame.
247 (set_language_command): Likewise.
248 * language.h (get_frame_language): Add frame parameter.
249 * stack.c (get_frame_language): Add frame parameter, assert
250 parameter is not NULL, update comment and reindent.
251 * top.c (check_frame_language_change): Pass the selected frame
252 into get_frame_language.
253
da8c46d2
MM
2542015-08-07 Markus Metzger <markus.t.metzger@intel.com>
255
256 * btrace.c (btrace_compute_ftrace_bts): Clear insn flags.
257 (pt_btrace_insn_flags): New.
258 (ftrace_add_pt): Call pt_btrace_insn_flags.
259 * btrace.h (btrace_insn_flag): New.
260 (btrace_insn) <flags>: New.
261 * record-btrace.c (btrace_insn_history): Print insn prefix.
262 * NEWS: Announce it.
263
5599c404
MM
2642015-08-07 Markus Metzger <markus.t.metzger@intel.com>
265
266 * configure.ac: Check for PERF_ATTR_SIZE_VER5 in linux/perf_event.h
267 * configure: Regenerate.
268
016a3251
DD
2692015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
270
271 * Makefile.in (LIBICONV): Define.
272 (CLIBS): Add LIBICONV.
273 * acinclude.m4: Use config/iconv.m4 instead of custom AM_ICONV.
274 * configure: Regenerate.
275
aead7601
SM
2762015-08-06 Simon Marchi <simon.marchi@ericsson.com>
277 Pedro Alves <palves@redhat.com>
278
279 * arm-tdep.c (set_fp_model_sfunc): Add cast from integer to enum.
280 (arm_set_abi): Likewise.
281 * ax-general.c (ax_print): Likewise.
282 * c-exp.y (exp : string_exp): Likewise.
283 * compile/compile-loc2c.c (compute_stack_depth_worker): Likewise.
284 (do_compile_dwarf_expr_to_c): Likewise.
285 * cp-name-parser.y (demangler_special : DEMANGLER_SPECIAL start):
286 Likewise.
287 * dwarf2expr.c (execute_stack_op): Likewise.
288 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
289 (disassemble_dwarf_expression): Likewise.
290 * dwarf2read.c (dwarf2_add_member_fn): Likewise.
291 (read_array_order): Likewise.
292 (abbrev_table_read_table): Likewise.
293 (read_attribute_value): Likewise.
294 (skip_unknown_opcode): Likewise.
295 (dwarf_decode_macro_bytes): Likewise.
296 (dwarf_decode_macros): Likewise.
297 * eval.c (value_f90_subarray): Likewise.
298 * guile/scm-param.c (gdbscm_make_parameter): Likewise.
299 * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
300 * infrun.c (handle_command): Likewise.
301 * memory-map.c (memory_map_start_memory): Likewise.
302 * osabi.c (set_osabi): Likewise.
303 * parse.c (operator_length_standard): Likewise.
304 * ppc-linux-tdep.c (ppc_canonicalize_syscall): Likewise, and use
305 single return point.
306 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
307 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
308 (gdbpy_lookup_global_symbol): Likewise.
309 * record-full.c (record_full_restore): Likewise.
310 * regcache.c (regcache_register_status): Likewise.
311 (regcache_raw_read): Likewise.
312 (regcache_cooked_read): Likewise.
313 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
314 * symtab.c (initialize_ordinary_address_classes): Likewise.
315 * target-debug.h (target_debug_print_signals): Likewise.
316 * utils.c (do_restore_current_language): Likewise.
317
ca0a5f0b
CD
3182015-08-06 Clem Dickey <clemd@acm.org>
319
320 PR python/17136
321 * python/lib/gdb/command/type_printers.py (InfoTypePrinter): Fix typo.
322
05d999b0
SM
3232015-08-06 Simon Marchi <simon.marchi@ericsson.com>
324
325 * complaints.c (enum complaint_series): Add newlines and remove
326 out of date comment.
327 (struct complaints) <series>: Change type to enum
328 complaint_series and remove out of date comment.
329 (symfile_complaint_hook): Use equivalent enum value
330 ISOLATED_MESSAGE instead of 0.
331
bf47e248
PA
3322015-08-06 Pedro Alves <palves@redhat.com>
333
334 * nat/linux-waitpid.c (my_waitpid): Only print *status if waitpid
335 returned > 0.
336
b6b9ffcc
PL
3372015-08-06 Pierre Langlois <pierre.langlois@arm.com>
338
339 * common/agent.c (symbol_list) <required>: Remove.
340
863d01bd
PA
3412015-08-06 Pedro Alves <palves@redhat.com>
342
343 * target/waitstatus.h (enum target_stop_reason)
344 <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
345
0a39bb32
PA
3462015-08-05 Pedro Alves <palves@redhat.com>
347 Joel Brobecker <brobecker@adacore.com>
348
9d996aba 349 * breakpoint.c (bpstat_what) <bp_longjmp, bp_longjmp_call_dummy>
0a39bb32
PA
350 <bp_exception, bp_longjmp_resume, bp_exception_resume>: Handle the
351 case where BS->STOP is not set.
352
260439cb
UW
3532015-08-05 Ulrich Weigand <uweigand@de.ibm.com>
354
355 * nat/gdb_thread_db.h: Add copyright header.
356 Protect against multiple inclusion.
357
d89fa914
YQ
3582015-08-05 Yao Qi <yao.qi@linaro.org>
359
360 * aarch64-linux-nat.c (get_thread_id): Remove.
361 (debug_reg_change_callback): Call ptid_get_lwp instead of
362 get_thread_id.
363 (fetch_gregs_from_thread): Likewise.
364 (store_gregs_to_thread): Likewise.
365 (fetch_fpregs_from_thread): Likewise.
366 (store_fpregs_to_thread): Likewise.
367 (aarch64_linux_get_debug_reg_capacity): Likewise.
368 * arm-linux-nat.c (get_thread_id): Remove.
369 (GET_THREAD_ID): Update macro to use ptid_get_lwp.
370 * xtensa-linux-nat.c (get_thread_id): Remove.
371 (GET_THREAD_ID): Update macro to use ptid_get_lwp.
372 * arm-linux-nat.c (get_thread_id): Remove.
373 (GET_THREAD_ID): Remove.
374 (fetch_fpregs): Call ptid_get_lwp instead of GET_THREAD_ID.
375 (store_fpregs, fetch_regs, store_regs): Likewise.
376 (fetch_wmmx_regs, store_wmmx_regs): Likewise.
377 (fetch_vfp_regs, store_vfp_regs): Likewise.
378 (arm_linux_read_description): Likewise.
379 (arm_linux_get_hwbp_cap): Likewise.
380 * xtensa-linux-nat.c (get_thread_id): Remove.
381 (GET_THREAD_ID): Remove.
382 (fetch_gregs, store_gregs): Call ptid_get_lwp instead of
383 GET_THREAD_ID.
384
4efd80aa
CS
3852015-08-04 Ciro Santilli <ciro.santilli@gmail.com> (obvious patch)
386
387 * python/py-linetable.c: Fix case of Linetable to LineTable
388 in docstrings and code comments.
389 * python/py-symtab.c: Same.
390
c6343a91
JK
3912015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
392
393 * infcmd.c (signal_command): Call do_cleanups for args_chain.
394
978b9495
JK
3952015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
396
397 PR gdb/18767
398 * infcmd.c (attach_command): Move ARGS_CHAIN cleanup after last ARGS
399 use.
400
96e9210f
PA
4012015-08-04 Pedro Alves <palves@redhat.com>
402
403 * nat/gdb_thread_db.h (td_init_ftype, td_ta_new_ftype)
404 (td_ta_map_lwp2thr_ftype, td_ta_thr_iter_ftype)
405 (td_ta_event_addr_ftype, td_ta_set_event_ftype)
406 (td_ta_clear_event_ftype, td_ta_event_getmsg_ftype)
407 (td_thr_validate_ftype, td_thr_get_info_ftype)
408 (td_thr_event_enable_ftype, td_thr_tls_get_addr_ftype)
409 (td_thr_tlsbase_ftype, td_symbol_list_ftype, td_ta_delete_ftype):
410 New typedefs.
411 * linux-thread-db.c (struct thread_db_info): Use new typedefs.
412 (try_thread_db_load_1): Define TDB_VERBOSE_DLSYM, TDB_DLSYM , CHK
413 local macros and use them instead of verbose_dlsym and dlsym
414 calls.
415
af60a1ef
SL
4162015-08-03 Sandra Loosemore <sandra@codesourcery.com>
417
418 * nios2-tdep.h: Include opcode/nios2.h here.
419 (NIOS2_CDX_OPCODE_SIZE): New.
420 (struct gdbarch_tdep): Add OP parameter to syscall_next_pc.
421 * nios2-tdep.c: Don't include opcode/nios2.h here.
422 (nios2_fetch_insn): For R2, try reading 2-byte instruction if
423 4-byte read fails.
424 (nios2_match_add, nios2_match_sub): Add cases for R2 encodings.
425 (nios2_match_addi, nios2_match_orhi): Likewise.
426 (nios2_match_stw, nios2_match_ldw): Likewise.
427 (nios2_match_rdctl): Likewise.
428 (nios2_match_stwm, nios2_match_ldwm): New.
429 (nios2_match_branch): Add cases for R2 encodings.
430 (nios2_match_jmpi, nios2_match_calli): Likewise.
431 (nios2_match_jmpr, nios2_match_callr): Likewise.
432 (nios2_match_break, nios2_match_trap): Likewise.
433 (nios2_in_epilogue_p): Add R2 support.
434 (nios2_analyze_prologue): Update comments. Recognize R2 CDX
435 prologues.
436 (nios2_breakpoint_from_pc): Handle R2 instructions.
437 (nios2_get_next_pc): Likewise. Adjust call to
438 tdep->syscall_next_pc.
439 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame):
440 Renamed from nios2_linux_rt_sigreturn_tramp_frame. Use
441 instruction field macros instead of literal hex values.
442 (nios2_r2_linux_rt_sigreturn_tramp_frame): New.
443 (nios2_linux_syscall_next_pc): Adjust signature to pass OP.
444 Use size field from OP instead of assuming all instructions
445 are the same size.
446 (nios2_linux_init_abi): Register appropriate unwinder for mach.
447
1da03605
UW
4482015-08-03 Ulrich Weigand <uweigand@de.ibm.com>
449
450 * cp-namespace.c (cp_lookup_symbol_via_imports): Fix uninitialized
451 variable warning with some compilers.
452
8156fe7f
YQ
4532015-08-03 Yao Qi <yao.qi@linaro.org>
454
455 * arm-linux-nat.c (arm_linux_get_hwbp_type): Capitalize "type"
456 in comment. Replace "rw" with "type".
457 (arm_linux_remove_watchpoint): Change type of "rw" to
458 "enum target_hw_bp_type".
459
835a09d9
PMR
4602015-08-02 Pierre-Marie de Rodat <derodat@adacore.com>
461
462 * alpha-mdebug-tdep.c (find_proc_desc): Update call to
463 lookup_symbol.
464 * ft32-tdep.c (ft32_skip_prologue): Likewise.
465 * moxie-tdep.c (moxie_skip_prologue): Likewise.
466 * mt-tdep.c (mt_skip_prologue): Likewise.
467 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
468
d12307c1
PMR
4692015-08-01 Pierre-Marie de Rodat <derodat@adacore.com>
470
471 * ada-exp.y (write_object_renaming): Replace struct
472 ada_symbol_info with struct block_symbol. Update field
473 references accordingly.
474 (block_lookup, select_possible_type_sym): Likewise.
475 (find_primitive_type): Likewise. Also update call to
476 ada_lookup_symbol to extract the symbol itself.
477 (write_var_or_type, write_name_assoc): Likewise.
478 * ada-lang.h (struct ada_symbol_info): Remove.
479 (ada_lookup_symbol_list): Replace struct ada_symbol_info with
480 struct block_symbol.
481 (ada_lookup_encoded_symbol, user_select_syms): Likewise.
482 (ada_lookup_symbol): Return struct block_symbol instead of a
483 mere symbol.
484 * ada-lang.c (defns_collected): Replace struct ada_symbol_info
485 with struct block_symbol.
486 (resolve_subexp, ada_resolve_function, sort_choices,
487 user_select_syms, is_nonfunction, add_defn_to_vec,
488 num_defns_collected, defns_collected,
489 symbols_are_identical_enums, remove_extra_symbols,
490 remove_irrelevant_renamings, add_lookup_symbol_list_worker,
491 ada_lookup_symbol_list, ada_iterate_over_symbols,
492 ada_lookup_encoded_symbol, get_var_value): Likewise.
493 (ada_lookup_symbol): Return a block_symbol instead of a mere
494 symbol. Replace struct ada_symbol_info with struct
495 block_symbol.
496 (ada_lookup_symbol_nonlocal): Likewise.
497 (standard_lookup): Make block passing explicit through
498 lookup_symbol_in_language.
499 * ada-tasks.c (get_tcb_types_info): Update the calls to
500 lookup_symbol_in_language to extract the mere symbol out of the
501 returned value.
502 (ada_tasks_inferior_data_sniffer): Likewise.
503 * ax-gdb.c (gen_static_field): Likewise for the call to
504 lookup_symbol.
a5fdf78a 505 (gen_maybe_namespace_elt): Deal with struct block_symbol from
d12307c1
PMR
506 lookup functions.
507 (gen_expr): Likewise.
508 * c-exp.y: Likewise. Remove uses of block_found.
509 (lex_one_token, classify_inner_name, c_print_token): Likewise.
510 (classify_name): Likewise. Rename the "sym" local variable to
511 "bsym".
512 * c-valprint.c (print_unpacked_pointer): Likewise.
513 * compile/compile-c-symbols.c (convert_symbol_sym): Promote the
514 "sym" parameter from struct symbol * to struct block_symbol.
515 Use it to remove uses of block_found. Deal with struct
a5fdf78a 516 block_symbol from lookup functions.
d12307c1
PMR
517 (gcc_convert_symbol): Likewise. Update the call to
518 convert_symbol_sym.
519 * compile/compile-object-load.c (compile_object_load): Deal with
a5fdf78a 520 struct block_symbol from lookup functions.
d12307c1
PMR
521 * cp-namespace.c (cp_lookup_nested_symbol_1,
522 cp_lookup_nested_symbol, cp_lookup_bare_symbol,
523 cp_search_static_and_baseclasses,
524 cp_lookup_symbol_in_namespace, cp_lookup_symbol_via_imports,
525 cp_lookup_symbol_imports_or_template,
526 cp_lookup_symbol_via_all_imports, cp_lookup_symbol_namespace,
527 lookup_namespace_scope, cp_lookup_nonlocal,
a5fdf78a
PMR
528 find_symbol_in_baseclass): Return struct block_symbol instead of
529 mere symbols and deal with struct block_symbol from lookup
d12307c1
PMR
530 functions.
531 * cp-support.c (inspect_type, replace_typedefs,
a5fdf78a 532 cp_lookup_rtti_type): Deal with struct block_symbol from
d12307c1
PMR
533 lookup functions.
534 * cp-support.h (cp_lookup_symbol_nonlocal,
535 cp_lookup_symbol_from_namespace,
536 cp_lookup_symbol_imports_or_template, cp_lookup_nested_symbol):
a5fdf78a 537 Return struct block_symbol instead of mere symbols.
d12307c1
PMR
538 * d-exp.y (d_type_from_name, d_module_from_name, push_variable,
539 push_module_name):
a5fdf78a 540 Deal with struct block_symbol from lookup functions. Remove
d12307c1
PMR
541 uses of block_found.
542 * eval.c (evaluate_subexp_standard): Update call to
543 cp_lookup_symbol_namespace.
a5fdf78a
PMR
544 * f-exp.y: Deal with struct block_symbol from lookup functions.
545 Remove uses of block_found.
d12307c1
PMR
546 (yylex): Likewise.
547 * gdbtypes.c (lookup_typename, lookup_struct, lookup_union,
548 lookup_enum, lookup_template_type, check_typedef): Deal with
a5fdf78a 549 struct block_symbol from lookup functions.
d12307c1
PMR
550 * guile/scm-frame.c (gdbscm_frame_read_var): Likewise.
551 * guile/scm-symbol.c (gdbscm_lookup_symbol): Likewise.
552 (gdbscm_lookup_global_symbol): Likewise.
553 * gnu-v3-abi.c (gnuv3_get_typeid_type): Likewise.
554 * go-exp.y: Likewise. Remove uses of block_found.
555 (package_name_p, classify_packaged_name, classify_name):
556 Likewise.
557 * infrun.c (insert_exception_resume_breakpoint): Likewise.
558 * jv-exp.y (push_variable): Likewise.
559 * jv-lang.c (java_lookup_class, get_java_object_type): Likewise.
560 * language.c (language_bool_type): Likewise.
561 * language.h (struct language_defn): Update
a5fdf78a
PMR
562 la_lookup_symbol_nonlocal to return a struct block_symbol rather
563 than a mere symbol.
564 * linespec.c (find_label_symbols): Deal with struct block_symbol
565 from lookup functions.
d12307c1
PMR
566 * m2-exp.y: Likewise. Remove uses of block_found.
567 (yylex): Likewise.
568 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
569 * objc-lang.c (lookup_struct_typedef, find_imps): Likewise.
570 * p-exp.y: Likewise. Remove uses of block_found.
571 (yylex): Likewise.
572 * p-valprint.c (pascal_val_print): Likewise.
573 * parse.c (write_dollar_variable): Likewise. Remove uses of
574 block_found.
575 * parser-defs.h (struct symtoken): Turn the SYM field into a
a5fdf78a
PMR
576 struct block_symbol.
577 * printcmd.c (address_info): Deal with struct block_symbol from
578 lookup functions.
d12307c1
PMR
579 * python/py-frame.c (frapy_read_var): Likewise.
580 * python/py-symbol.c (gdbpy_lookup_symbol,
581 gdbpy_lookup_global_symbol): Likewise.
582 * skip.c (skip_function_command): Likewise.
583 * solib-darwin.c (darwin_lookup_lib_symbol): Return a struct
a5fdf78a 584 block_symbol instead of a mere symbol.
d12307c1
PMR
585 * solib-spu.c (spu_lookup_lib_symbol): Likewise.
586 * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
587 * solib.c (solib_global_lookup): Likewise.
588 * solist.h (solib_global_lookup): Likewise.
589 (struct target_so_ops): Update lookup_lib_global_symbol to
a5fdf78a
PMR
590 return a struct block_symbol rather than a mere symbol.
591 * source.c (select_source_symtab): Deal with struct block_symbol
592 from lookup functions.
d12307c1
PMR
593 * stack.c (print_frame_args, iterate_over_block_arg_vars):
594 Likewise.
595 * symfile.c (set_initial_language): Likewise.
596 * symtab.c (SYMBOL_LOOKUP_FAILED): Turn into a struct
a5fdf78a 597 block_symbol.
d12307c1
PMR
598 (SYMBOL_LOOKUP_FAILED_P): New predicate as a macro.
599 (struct symbol_cache_slot): Turn the FOUND field into a struct
a5fdf78a 600 block_symbol.
d12307c1 601 (block_found): Remove.
a5fdf78a 602 (eq_symbol_entry): Update to deal with struct block_symbol in
d12307c1 603 cache slots.
a5fdf78a
PMR
604 (symbol_cache_lookup): Return a struct block_symbol rather than
605 a mere symbol.
d12307c1
PMR
606 (symbol_cache_mark_found): Add a BLOCK parameter to fill
607 appropriately the cache slots. Update callers.
608 (symbol_cache_dump): Update cache slots handling to the type
609 change.
610 (lookup_symbol_in_language, lookup_symbol, lookup_language_this,
611 lookup_symbol_aux, lookup_local_symbol,
612 lookup_symbol_in_objfile, lookup_global_symbol_from_objfile,
613 lookup_symbol_in_objfile_symtabs,
614 lookup_symbol_in_objfile_from_linkage_name,
615 lookup_symbol_via_quick_fns, basic_lookup_symbol_nonlocal,
616 lookup_symbol_in_static_block, lookup_static_symbol,
617 lookup_global_symbol):
a5fdf78a
PMR
618 Return a struct block_symbol rather than a mere symbol. Deal
619 with struct block_symbol from other lookup functions. Remove
d12307c1
PMR
620 uses of block_found.
621 (lookup_symbol_in_block): Remove uses of block_found.
622 (struct global_sym_lookup_data): Turn the RESULT field into a
a5fdf78a 623 struct block_symbol.
d12307c1
PMR
624 (lookup_symbol_global_iterator_cb): Update references to the
625 RESULT field.
a5fdf78a 626 (search_symbols): Deal with struct block_symbol from lookup
d12307c1 627 functions.
a5fdf78a 628 * symtab.h (struct block_symbol): New structure.
d12307c1
PMR
629 (block_found): Remove.
630 (lookup_symbol_in_language, lookup_symbol,
631 basic_lookup_symbol_nonlocal, lookup_symbol_in_static_block,
a5fdf78a
PMR
632 lookup_static_symbol, lookup_global_symbol, lookup_language_this,
633 lookup_global_symbol_from_objfile): Return a struct block_symbol
634 rather than just a mere symbol. Update comments to remove
635 mentions of block_found.
d12307c1
PMR
636 * valops.c (find_function_in_inferior,
637 value_struct_elt_for_reference, value_maybe_namespace_elt,
a5fdf78a 638 value_of_this): Deal with struct block_symbol from lookup
d12307c1
PMR
639 functions.
640 * value.c (value_static_field, value_fn_field): Likewise.
641
b1c59ddc
SM
6422015-07-31 Simon Marchi <simon.marchi@ericsson.com>
643
644 * remote-m32r-sdi.c (m32r_remove_watchpoint): Use enum type
645 instead of integer.
646
f486487f 6472015-07-31 Simon Marchi <simon.marchi@ericsson.com>
84da3f0c 648 Pedro Alves <palves@redhat.com>
f486487f
SM
649
650 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Use enum
651 type or value instead of integer.
652 (aarch64_linux_insert_watchpoint): Likewise.
653 (aarch64_linux_remove_watchpoint): Likewise.
654 * ada-lang.c (ada_op_print_tab): Likewise.
655 * amd64-linux-tdep.c (amd64_canonicalize_syscall): Likewise.
656 (amd64_linux_syscall_record_common): Likewise.
657 * arch-utils.c (target_byte_order_user): Likewise.
658 (default_byte_order): Likewise.
659 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Likewise.
660 (arm_linux_get_hwbp_type): Likewise.
661 (arm_linux_hw_watchpoint_initialize): Likewise.
662 (arm_linux_insert_watchpoint): Likewise.
663 * arm-linux-tdep.c (arm_canonicalize_syscall): Likewise.
664 (arm_linux_syscall_record): Likewise.
665 * breakpoint.c (update_watchpoint): Likewise.
666 (breakpoint_here_p): Likewise.
667 (bpstat_print): Likewise.
668 (enable_breakpoint_disp): Likewise.
669 * c-lang.c (c_op_print_tab): Likewise.
670 * cli/cli-decode.c (add_info_alias): Likewise.
671 * d-lang.c (d_op_print_tab): Likewise.
672 * eval.c (evaluate_subexp_standard): Likewise.
673 * f-exp.y (dot_ops): Likewise.
674 (f77_keywords): Likewise.
675 * f-lang.c (f_op_print_tab): Likewise.
676 * go-lang.c (go_op_print_tab): Likewise.
677 * guile/scm-breakpoint.c (gdbscm_make_breakpoint): Likewise.
678 * guile/scm-cmd.c (gdbscm_make_command): Likewise.
679 * guile/scm-param.c (gdbscm_make_parameter): Likewise.
680 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Likewise.
681 * guile/scm-string.c (struct scm_to_stringn_data): Likewise.
682 (struct scm_from_stringn_data): Likewise.
683 * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
684 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
685 (ia64_linux_remove_watchpoint): Likewise.
686 (ia64_linux_can_use_hw_breakpoint): Likewise.
687 * infrun.c (print_stop_event): Likewise.
688 * jv-lang.c (java_op_print_tab): Likewise.
689 * linux-nat.c (linux_proc_xfer_partial): Likewise.
690 * linux-nat.h (struct lwp_info): Likewise.
691 * linux-thread-db.c (enable_thread_event): Likewise.
692 * m2-lang.c (m2_op_print_tab): Likewise.
693 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Likewise.
694 (mi_cmd_stack_list_variables): Likewise.
695 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
696 * mi/mi-out.c (mi_table_begin): Likewise.
697 (mi_table_header): Likewise.
698 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Likewise.
699 (mips_linux_insert_watchpoint): Likewise.
700 (mips_linux_remove_watchpoint): Likewise.
701 * nat/mips-linux-watch.c (mips_linux_watch_type_to_irw): Likewise.
702 * nat/mips-linux-watch.h (struct mips_watchpoint): Likewise.
703 (mips_linux_watch_type_to_irw): Likewise.
704 * nto-procfs.c (procfs_can_use_hw_breakpoint): Likewise.
705 (procfs_insert_hw_watchpoint): Likewise.
706 (procfs_remove_hw_watchpoint): Likewise.
707 (procfs_hw_watchpoint): Likewise.
708 (procfs_can_use_hw_breakpoint): Likewise.
709 (procfs_remove_hw_watchpoint): Likewise.
710 (procfs_insert_hw_watchpoint): Likewise.
711 * p-lang.c (pascal_op_print_tab): Likewise.
712 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Likewise.
713 * ppc-linux-tdep.c (ppu2spu_unwind_register): Likewise.
714 * ppc-sysv-tdep.c (get_decimal_float_return_value): Likewise.
715 * procfs.c (procfs_can_use_hw_breakpoint): Likewise.
716 (procfs_insert_watchpoint): Likewise.
717 (procfs_remove_watchpoint): Likewise.
718 * psymtab.c (recursively_search_psymtabs): Likewise.
719 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Likewise.
720 (m32r_insert_watchpoint): Likewise.
721 * remote-mips.c (mips_can_use_watchpoint): Likewise.
722 (mips_insert_watchpoint): Likewise.
723 (mips_remove_watchpoint): Likewise.
724 * remote.c (watchpoint_to_Z_packet): Likewise.
725 (remote_insert_watchpoint): Likewise.
726 (remote_remove_watchpoint): Likewise.
727 (remote_check_watch_resources): Likewise.
728 * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
729 (s390_remove_watchpoint): Likewise.
730 (s390_can_use_hw_breakpoint): Likewise.
731 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
732 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Likewise.
733 * target.h (struct target_ops): Likewise.
734 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
735 * ui-out.c (struct ui_out_hdr): Likewise.
736 (append_header_to_list): Likewise.
737 (get_next_header): Likewise.
738 (verify_field): Likewise.
739 (ui_out_begin): Likewise.
740 (ui_out_field_int): Likewise.
741 (ui_out_field_fmt_int): Likewise.
742 (ui_out_field_skip): Likewise.
743 (ui_out_field_string): Likewise.
744 (ui_out_field_fmt): Likewise.
745 * varobj.c (new_variable): Likewise.
746 * x86-nat.c (x86_insert_watchpoint): Likewise.
747 (x86_remove_watchpoint): Likewise.
748 (x86_can_use_hw_breakpoint): Likewise.
749 * xtensa-tdep.h (struct gdbarch_tdep): Likewise.
750 * inflow.c (enum gdb_has_a_terminal_flag_enum): Add name to
751 previously anonymous enumeration type..
752 * linux-record.h (enum gdb_syscall): Add gdb_sys_no_syscall
753 value.
754 * target-debug.h (target_debug_print_enum_target_hw_bp_type): New.
755 (target_debug_print_enum_bptype): New.
756 * target-delegates.c: Regenerate.
757
e1b5381f
SL
7582015-07-30 Sandra Loosemore <sandra@codesourcery.com>
759
760 * nios2-tdep.c (nios2_analyze_prologue): Do what the comment
761 already says and disallow non-stack memory writes in the prologue.
762
9aaf8e3a
SL
7632015-07-30 Sandra Loosemore <sandra@codesourcery.com>
764
765 * nios2-tdep.c (nios2_analyze_prologue): Update comments to
766 reflect how current GCC emits stack overflow checks. Match
767 both trap and break instructions for backward compatbility.
768 Disallow other trap and break instructions in the prologue.
769
69dde7dc
PA
7702015-07-30 Pedro Alves <palves@redhat.com>
771
772 PR threads/18600
773 * linux-nat.c (wait_lwp): Report to the core when thread group
774 leader exits.
775
4dd63d48
PA
7762015-07-30 Pedro Alves <palves@redhat.com>
777 Simon Marchi <simon.marchi@ericsson.com>
778
779 PR threads/18600
780 * linux-nat.c (linux_handle_extended_wait): On CLONE event, always
781 mark the new thread as resumed. Remove STOPPING parameter.
782 (wait_lwp): Adjust call to linux_handle_extended_wait.
783 (linux_nat_filter_event): Adjust call to
784 linux_handle_extended_wait.
785 (resume_stopped_resumed_lwps): Add debug output.
786
6b940e6a
PL
7872015-07-30 Pierre Langlois <pierre.langlois@arm.com>
788
789 * arch-utils.c (default_fast_tracepoint_valid_at): Remove unused
790 isize argument.
791 * arch-utils.h (default_fast_tracepoint_valid_at): Likewise.
792 * breakpoint.c (check_fast_tracepoint_sals): Adjust call to
793 gdbarch_fast_tracepoint_valid_at.
794 * gdbarch.sh (fast_tracepoint_valid_at): Remove isize argument.
795 * gdbarch.h: Regenerate.
796 * gdbarch.c: Regenerate.
797 * i386-tdep.c (i386_fast_tracepoint_valid_at): Remove isize
798 argument. Do not set it.
799 * remote.c (remote_download_tracepoint): Adjust call to
800 gdbarch_fast_tracepoint_valid_at. Call gdb_insn_length to get
801 the instruction length.
802
ec741292
YQ
8032015-07-30 Yao Qi <yao.qi@linaro.org>
804
805 * arm-tdep.h (enum gdb_regnum): Move it to ...
806 * arch/arm.h: ... here. New file.
807 * Makefile.in (HFILES_NO_SRCDIR): Add arch/arm.h.
808
0ea6402e
PL
8092015-07-30 Pierre Langlois <pierre.langlois@arm.com>
810
811 * aarch64-tdep.c (decode_b): Rename link argument to is_bl.
812 Change its type to int *.
813 (decode_br): Rename link argument to is_blr. Change its type to
814 int *.
815 (decode_cb): Rename op argument to is_cbnz. Change its type to
816 int *.
817 (decode_tb): Rename op argument to is_tbnz. Change its type to
818 int *. Set is_tbnz to either 1 or 0.
819 (aarch64_analyze_prologue): Change type of is_link to int. Add
820 new variables is_cbnz and is_tbnz. Adjust call to
821 aarch64_decode_cb and aarch64_decode_tb.
822
aa58a496
SM
8232015-07-29 Simon Marchi <simon.marchi@ericsson.com>
824
825 * mips-linux-nat.c (write_watchpoint_regs): Add NULL as ptrace's 4th
826 parameter.
827 (mips_linux_new_thread): Likewise.
828 * nat/mips-linux-watch.c (mips_linux_read_watch_registers): Likewise.
829
18206ca3
PP
8302015-07-29 Patrick Palka <patrick@parcs.ath.cx>
831
832 * top.c: Include "tui/tui.h".
833 (undo_terminal_modifications_before_exit): New static function.
834 (quit_force): Use it.
835
7afa63c6
PP
8362015-07-29 Patrick Palka <patrick@parcs.ath.cx>
837
838 * target.c (terminal_state): Initialize to terminal_is_ours.
839
cc9f16aa
YQ
8402015-07-29 Yao Qi <yao.qi@linaro.org>
841
842 PR record/18691
843 * dcache.c (dcache_read_memory_partial): Call
844 raw_memory_xfer_partial.
845 * target.c (raw_memory_xfer_partial): Make it non-static.
846 * target.h (raw_memory_xfer_partial): Declare.
847
3ae385af
SM
8482015-07-28 Simon Marchi <simon.marchi@ericsson.com>
849
850 * c-valprint.c (c_val_print_array): Consider addressable memory
851 unit size.
852 (c_val_print_ptr): Likewise.
853 (c_val_print_int): Likewise.
854 * findvar.c (read_frame_register_value): Likewise.
855 * valarith.c (find_size_for_pointer_math): Likewise.
856 (value_ptrdiff): Likewise.
857 (value_subscripted_rvalue): Likewise.
858 * valops.c (read_value_memory): Likewise (and rename variables).
859 (value_assign): Likewise.
860 (value_repeat): Likewise.
861 (value_array): Likewise.
862 (value_slice): Likewise.
863 * valprint.c (generic_val_print_ptr): Likewise.
864 (generic_val_print_enum): Likewise.
865 (generic_val_print_bool): Likewise.
866 (generic_val_print_int): Likewise.
867 (generic_val_print_char): Likewise.
868 (generic_val_print_float): Likewise.
869 (generic_val_print_decfloat): Likewise.
870 (generic_val_print_complex): Likewise.
871 (val_print_scalar_formatted): Likewise.
872 (val_print_array_elements): Likewise.
873 * value.c (set_value_parent): Likewise.
874 (value_contents_copy_raw): Likewise.
875 (set_internalvar_component): Likewise.
876 (value_primitive_field): Likewise.
877 (value_fetch_lazy): Likewise.
878 * value.h (read_value_memory): Update comment.
879
e512cdbd
SM
8802015-07-28 Simon Marchi <simon.marchi@ericsson.com>
881
882 * value.c (get_value_arch): New function.
883 * value.h (get_value_arch): New declaration.
884
3723fda8
SM
8852015-07-28 Simon Marchi <simon.marchi@ericsson.com>
886
887 * value.c (struct value): Update comments.
888
2e056931
SM
8892015-07-28 Simon Marchi <simon.marchi@ericsson.com>
890
891 * gdbtypes.c (type_length_units): New function.
892 * gdbtypes.h (type_length_units): New declaration.
893 (struct type) <length>: Update comment.
894
0c87c0bf
SM
8952015-07-27 Simon Marchi <simon.marchi@ericsson.com>
896
897 * valprint.c (generic_val_print): Factor out complex
898 printing code to ...
899 (generic_val_print_complex): ... this new function.
900
9550ae5e
SM
9012015-07-27 Simon Marchi <simon.marchi@ericsson.com>
902
903 * valprint.c (generic_val_print): Factor out decfloat
904 printing code to ...
905 (generic_val_print_decfloat): ... this new function.
906
7784724b
SM
9072015-07-27 Simon Marchi <simon.marchi@ericsson.com>
908
909 * valprint.c (generic_val_print): Factor out float
910 printing code to ...
911 (generic_val_print_float): ... this new function.
912
385f5aff
SM
9132015-07-27 Simon Marchi <simon.marchi@ericsson.com>
914
915 * valprint.c (generic_val_print): Factor out char
916 printing code to ...
917 (generic_val_print_char): ... this new function.
918
b21b6342
SM
9192015-07-27 Simon Marchi <simon.marchi@ericsson.com>
920
921 * valprint.c (generic_val_print): Factor out integer
922 printing code to ...
923 (generic_val_print_int): ... this new function.
924
e5bead4b
SM
9252015-07-27 Simon Marchi <simon.marchi@ericsson.com>
926
927 * valprint.c (generic_val_print): Factor out bool
928 printing code to ...
929 (generic_val_print_bool): ... this new function.
930
4a8c372f
SM
9312015-07-27 Simon Marchi <simon.marchi@ericsson.com>
932
933 * valprint.c (generic_val_print): Factor out function/method
934 printing code to ...
935 (generic_val_print_func): ... this new function.
936
d93880bd
SM
9372015-07-27 Simon Marchi <simon.marchi@ericsson.com>
938
939 * valprint.c (generic_val_print): Factor out flags
940 printing code to ...
941 (generic_val_print_flags): ... this new function.
942
ef0bc0dd
SM
9432015-07-27 Simon Marchi <simon.marchi@ericsson.com>
944
945 * valprint.c (generic_val_print): Factor out enum
946 printing code to ...
947 (generic_val_print_enum): ... this new function.
948
fe43fede
SM
9492015-07-27 Simon Marchi <simon.marchi@ericsson.com>
950
951 * valprint.c (generic_val_print): Factor out reference
952 printing code to ...
953 (generic_val_print_ref): ... this new function.
954
45000ea2
SM
9552015-07-27 Simon Marchi <simon.marchi@ericsson.com>
956
957 * valprint.c (generic_val_print): Factor out memberptr
958 printing code to ...
959 (generic_val_print_memberptr): ... this new function.
960
81eb921a
SM
9612015-07-27 Simon Marchi <simon.marchi@ericsson.com>
962
963 * valprint.c (generic_val_print): Factor out pointer
964 printing code to ...
965 (generic_val_print_ptr): ... this new function.
966
557dbe8a
SM
9672015-07-27 Simon Marchi <simon.marchi@ericsson.com>
968
969 * valprint.c (generic_val_print): Factor out array
970 printing code to ...
971 (generic_val_print_array): ... this new function.
972
9f436164
SM
9732015-07-27 Simon Marchi <simon.marchi@ericsson.com>
974
975 * valprint.c (generic_val_print): Factor out
976 print_unpacked_pointer code to ...
977 (print_unpacked_pointer): ... this new function.
978
077836f7
PP
9792015-07-27 Patrick Palka <patrick@parcs.ath.cx>
980
981 * event-top.c (handle_sigterm): Don't inspect
982 target_can_async_p. Always set the quit flag and always mark
983 the async signal handler.
984
3a60804f
YQ
9852015-07-27 Yao Qi <yao.qi@linaro.org>
986
987 * Makefile.in (REMOTE_EXAMPLES): Remove it.
988
c9f35b34
KB
9892015-07-25 Kevin Buettner <kevinb@redhat.com>
990
991 * remote.c (read_ptid): Return null_ptid when no thread id
992 is found.
993 (remote_current_thread): Add log warning for malformed
994 qC reply.
995 (remote_start_remote): Add log warning when current thread
996 not found.
997
2b4cab86
PA
9982015-07-24 Pedro Alves <palves@redhat.com>
999
1000 * s390-linux-nat.c (fetch_regs, store_regs, fetch_fpregs)
1001 (s390_stopped_by_watchpoint, s390_prepare_to_resume): Pass 0 as
1002 forth argument to ptrace PTRACE_PEEKUSR_AREA/PTRACE_POKEUSR_AREA.
1003
77598427
PA
10042015-07-24 Pedro Alves <palves@redhat.com>
1005
1006 PR gdb/18717
1007 * linux-nat.c (linux_nat_filter_event): Don't assert that the lwp
1008 is resumed, and extend the debug log.
1009
fe23c31f
PA
10102015-07-24 Pedro Alves <palves@redhat.com>
1011
1012 * fork-child.c (fork_inferior): Print argv[0] instead of exec_file.
1013
5826e159
PA
10142015-07-24 Pedro Alves <palves@redhat.com>
1015
1016 * aarch64-linux-nat.c: Include nat/gdb_ptrace.h instead of
1017 sys/ptrace.h.
1018 * alpha-linux-nat.c: Likewise.
1019 * amd64-linux-nat.c: Likewise.
1020 * arm-linux-nat.c: Likewise.
1021 * hppa-linux-nat.c: Likewise.
1022 * i386-linux-nat.c: Likewise.
1023 * ia64-linux-nat.c: Likewise.
1024 * linux-fork.c: Likewise.
1025 * linux-nat.c: Likewise.
1026 * m32r-linux-nat.c: Likewise.
1027 * m68klinux-nat.c: Likewise.
1028 * mips-linux-nat.c: Likewise.
1029 * nat/linux-btrace.c: Likewise.
1030 * nat/linux-ptrace.c: Likewise.
1031 * nat/linux-ptrace.h
1032 * nat/mips-linux-watch.c: Likewise.
1033 * nat/x86-linux-dregs.c: Likewise.
1034 * ppc-linux-nat.c: Likewise.
1035 * s390-linux-nat.c: Likewise.
1036 * spu-linux-nat.c: Likewise.
1037 * tilegx-linux-nat.c: Likewise.
1038 * x86-linux-nat.c: Likewise.
1039 * xtensa-linux-nat.c: Likewise.
1040
54019719
PA
10412015-07-24 Pedro Alves <palves@redhat.com>
1042
1043 * ptrace.m4 (ptrace tests): Test in C++ mode. Try with 'enum
1044 __ptrace_request as first parameter type instead of int.
1045 (PTRACE_TYPE_ARG1): Define.
1046 * nat/gdb_ptrace.h [!PTRACE_TYPE_ARG5] (ptrace): Define as wrapper
1047 that casts first argument to PTRACE_TYPE_ARG1.
1048 * config.in: Regenerate.
1049 * configure: Regenerate.
1050
e3790375
PA
10512015-07-24 Pedro Alves <palves@redhat.com>
1052
1053 * gdb_ptrace.h: Move ...
1054 * nat/gdb_ptrace.h: ... here.
1055 * inf-ptrace.c: Adjust.
1056
eb7aa561
PA
10572015-07-24 Pedro Alves <palves@redhat.com>
1058
1059 * acinclude.m4: Include ptrace.m4.
1060 * configure.ac: Call GDB_AC_PTRACE and move ptrace checks ...
1061 * ptrace.m4: ... to this new file.
1062
cc12ce38
DE
10632015-07-23 Doug Evans <dje@google.com>
1064
1065 * dwarf2read.c (dwarf2_per_cu_data): Add comment.
1066 (load_cu): Handle dummy CUs.
1067 (dw2_do_instantiate_symtab, process_queuef): Ditto.
1068 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes): Ditto.
1069
7b849db4
CS
10702015-07-23 Ciro Santilli <ciro.santilli@gmail.com> (tiny patch)
1071
1072 * py-linetable.c (ltpy_get_all_source_lines): Adjust function
1073 documentation to say that it returns a list rather than
1074 a FrozenSet.
1075 (linetable_object_methods): Update the docstring of the
1076 "source_line" entry.
1077
d0d84780
PMR
10782015-07-23 Pierre-Marie de Rodat <derodat@adacore.com>
1079
1080 * gdbtypes.c (resolve_dynamic_array): Pass the peeled element
1081 type to the recursive call instead of the original (maybe
1082 TYPE_CODE_TYPEDEF) type.
1083
c2fbdc59
YQ
10842015-07-23 Yao Qi <yao.qi@linaro.org>
1085
1086 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): If
1087 TYPE is watchpoint, return zero if aarch64_num_wp_regs is zero.
1088 If TYPE is breakpoint, return zero if arch64_num_bp_regs is zero.
1089
af1b22f3
YQ
10902015-07-21 Yao Qi <yao.qi@linaro.org>
1091
1092 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
1093 Move it to nat/aarch64-linux-hw-point.c.
1094 (aarch64_linux_child_post_startup_inferior): Update.
1095 * nat/aarch64-linux-hw-point.c (aarch64_linux_get_debug_reg_capacity):
1096 New function.
1097 * nat/aarch64-linux-hw-point.h (aarch64_linux_get_debug_reg_capacity):
1098 Declare it.
1099
40e050d2
MM
11002015-07-21 Markus Metzger <markus.t.metzger@intel.com>
1101
1102 * common/btrace-common.c (btrace_data_append): Change case label.
1103
3675a06a
YQ
11042015-07-20 Yao Qi <yao.qi@linaro.org>
1105
1106 * nat/aarch64-linux-hw-point.c (aarch64_handle_unaligned_watchpoint):
1107 Re-indent the code.
1108 * nat/aarch64-linux-hw-point.h: Use ULONGEST rather than
1109 "unsigned long long".
1110
b4e1fd61
KB
11112015-07-18 Kevin Buettner <kevinb@redhat.com>
1112
1113 * dwarf2read.c (dwarf2_locate_sections): Allow has_section_at_zero
1114 to be set for SEC_ALLOC sections too.
1115
554717a3
YQ
11162015-07-17 Yao Qi <yao.qi@linaro.org>
1117
1118 * Makefile.in (HFILES_NO_SRCDIR): Add
1119 nat/aarch64-linux-hw-point.h.
1120 (aarch64-linux-hw-point.o): New rule.
1121 * nat/aarch64-linux-hw-point.h: New file.
1122 * nat/aarch64-linux-hw-point.c: New file.
1123 * aarch64-linux-nat.c: Include nat/aarch64-linux-hw-point.h.
1124 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
1125 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
1126 (AARCH64_HWP_ALIGNMENT): Likewise.
1127 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
1128 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
1129 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
1130 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
1131 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
1132 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
1133 (struct aarch64_debug_reg_state): Likewise.
1134 (struct arch_lwp_info): Likewise.
1135 (aarch64_linux_set_debug_regs): Likewise.
1136 (aarch64_notify_debug_reg_change): Remove static.
1137 (aarch64_align_watchpoint): Likewise.
1138 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
1139 (aarch64_watchpoint_length): Likewise.
1140 (aarch64_point_encode_ctrl_reg): Likewise
1141 (aarch64_point_is_aligned): Likewise.
1142 (aarch64_dr_state_insert_one_point): Likewise.
1143 (aarch64_dr_state_remove_one_point): Likewise.
1144 (aarch64_handle_breakpoint): Likewise.
1145 (aarch64_handle_aligned_watchpoint): Likewise.
1146 (aarch64_handle_unaligned_watchpoint): Likewise.
1147 (aarch64_handle_watchpoint): Likewise.
1148 * config/aarch64/linux.mh (NAT_FILE): Add
1149 aarch64-linux-hw-point.o.
1150
c67ca4de
YQ
11512015-07-17 Yao Qi <yao.qi@linaro.org>
1152
1153 * aarch64-linux-nat.c (aarch64_handle_breakpoint): Add argument
1154 state and don't call aarch64_get_debug_reg_state. All callers
1155 update.
1156 (aarch64_linux_insert_hw_breakpoint): Call
1157 aarch64_get_debug_reg_state earlier.
1158 (aarch64_linux_remove_hw_breakpoint): Likewise.
1159 (aarch64_handle_aligned_watchpoint): Add argument state and
1160 don't call aarch64_get_debug_reg_state. All callers update.
1161 (aarch64_handle_unaligned_watchpoint): Likewise.
1162 (aarch64_handle_watchpoint): Add argument state.
1163 (aarch64_linux_insert_watchpoint): Call aarch64_get_debug_reg_state
1164 earlier.
1165 (aarch64_linux_remove_watchpoint): Likewise.
1166
25abf979
YQ
11672015-07-17 Yao Qi <yao.qi@linaro.org>
1168
1169 * aarch64-linux-nat.c (aarch64_show_debug_reg_state): Use
1170 debug_printf.
1171 (aarch64_handle_unaligned_watchpoint): Likewise.
1172
2ecd81c2
YQ
11732015-07-17 Yao Qi <yao.qi@linaro.org>
1174
1175 * aarch64-linux-nat.c (aarch64_dr_state_insert_one_point): Change
1176 argument type's type to 'enum target_hw_bp_type'.
1177 (aarch64_dr_state_remove_one_point): Likewise.
1178 (aarch64_handle_breakpoint): Likewise.
1179 (aarch64_linux_insert_hw_breakpoint): Likewise.
1180 (aarch64_linux_remove_hw_breakpoint): Likewise.
1181 (aarch64_handle_aligned_watchpoint): Likewise.
1182
e53b6938
YQ
11832015-07-17 Yao Qi <yao.qi@linaro.org>
1184
1185 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Call
1186 ptid_get_pid instead of get_thread_id.
1187
6a49a997
YQ
11882015-07-17 Yao Qi <yao.qi@linaro.org>
1189
1190 * remote.c (get_current_thread): Initialise ptid to null_ptid.
1191 (add_current_inferior_and_thread): Don't initialise ptid.
1192
4bcddace
PL
11932015-07-16 Pierre Langlois <pierre.langlois@arm.com>
1194
1195 * aarch64-tdep.c (aarch64_pseudo_read_value): Mark S register as
1196 unavailable if invalid.
1197
db1ff28b
JK
11982015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1199
1200 Revert the previous 6 commits:
1201 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
1202 Move gdb_regex* to common/
1203 Prepare linux_find_memory_regions_full & co. for move
1204 Move linux_find_memory_regions_full & co.
1205 gdbserver build-id attribute generator
1206 Validate symbol file using build-id
1207
ca5268b6
JK
12082015-07-15 Aleksandar Ristovski <aristovski@qnx.com
1209 Jan Kratochvil <jan.kratochvil@redhat.com>
1210
1211 Validate symbol file using build-id.
1212 * NEWS (Changes since GDB 7.10): Add 'set validate-build-id'
1213 and 'show validate-build-id'. Add build-id attribute.
1214 * solib-darwin.c (_initialize_darwin_solib): Assign validate value.
1215 * solib-dsbt.c (_initialize_dsbt_solib): Ditto.
1216 * solib-frv.c (_initialize_frv_solib): Ditto.
1217 * solib-spu.c (set_spu_solib_ops): Ditto.
1218 * solib-svr4.c: Include rsp-low.h.
1219 (NOTE_GNU_BUILD_ID_NAME): New define.
1220 (svr4_validate): New function.
1221 (svr4_copy_library_list): Duplicate field build_id.
1222 (library_list_start_library): Parse 'build-id' attribute.
1223 (svr4_library_attributes): Add 'build-id' attribute.
1224 (_initialize_svr4_solib): Assign validate value.
1225 * solib-target.c (solib.h): Include.
1226 (_initialize_solib_target): Assign validate value.
1227 * solib.c (validate_build_id, show_validate_build_id): New.
1228 (solib_map_sections): Use ops->validate.
1229 (clear_so): Free build_id.
1230 (default_solib_validate): New function.
1231 (_initialize_solib): Add "validate-build-id".
1232 * solib.h (default_solib_validate): New declaration.
1233 * solist.h (struct so_list): New fields 'build_idsz' and 'build_id'.
1234 (target_so_ops): New field 'validate'.
1235
700ca40f
JK
12362015-07-15 Aleksandar Ristovski <aristovski@qnx.com
1237 Jan Kratochvil <jan.kratochvil@redhat.com>
1238
1239 gdbserver build-id attribute generator.
1240 * features/library-list-svr4.dtd (library-list-svr4): New
1241 'build-id' attribute.
1242
9904185c
JK
12432015-07-15 Aleksandar Ristovski <aristovski@qnx.com
1244 Jan Kratochvil <jan.kratochvil@redhat.com>
1245
1246 Move linux_find_memory_regions_full & co.
1247 * linux-tdep.c (nat/linux-maps.h): Include.
1248 (gdb_regex.h): Remove the include.
1249 (enum filterflags, struct smaps_vmflags, read_mapping, decode_vmflags)
1250 (mapping_is_anonymous_p, dump_mapping_p): Moved to nat/linux-maps.c.
1251 (linux_find_memory_region_ftype): Moved typedef to nat/linux-maps.h.
1252 (linux_find_memory_regions_full): Moved definition to nat/linux-maps.c.
1253 * nat/linux-maps.c: Include ctype.h, target/target-utils.h, gdb_regex.h
1254 and target/target.h.
1255 (struct smaps_vmflags, read_mapping, decode_vmflags)
1256 (mapping_is_anonymous_p, dump_mapping_p): Move from linux-tdep.c.
1257 (linux_find_memory_regions_full): Move from linux-tdep.c.
1258 * nat/linux-maps.h (read_mapping): New declaration.
1259 (linux_find_memory_region_ftype, enum filterflags): Moved from
1260 linux-tdep.c.
1261 (linux_find_memory_regions_full): New declaration.
1262 * target.c (target/target-utils.h): Include.
1263 (read_alloc_pread_ftype): Moved typedef to target/target-utils.h.
1264 (read_alloc, read_stralloc_func_ftype, read_stralloc): Moved
1265 definitions to target/target-utils.c.
1266 * target.h (target_fileio_read_stralloc): Move it to target/target.h.
1267 * target/target-utils.c (read_alloc, read_stralloc): Move definitions
1268 from target.c.
1269 * target/target-utils.h (read_alloc_pread_ftype): New typedef.
1270 (read_alloc): New declaration.
1271 (read_stralloc_func_ftype): New typedef.
1272 (read_stralloc): New declaration.
1273 * target/target.h (target_fileio_read_stralloc): Move it from target.h.
1274
f7af1fcd
JK
12752015-07-15 Aleksandar Ristovski <aristovski@qnx.com
1276 Jan Kratochvil <jan.kratochvil@redhat.com>
1277
1278 Prepare linux_find_memory_regions_full & co. for move.
1279 * linux-tdep.c (linux_find_memory_region_ftype): Comment.
1280 (linux_find_memory_regions_full): Change signature and prepare
1281 for moving to linux-maps.
1282 (linux_find_memory_regions_data): Rename field 'obfd' to 'data'.
1283 (linux_find_memory_regions_thunk): New.
1284 (linux_find_memory_regions_thunk): Use 'data' field instead of 'obfd'.
1285 (linux_find_memory_regions_gdb): New.
1286 (linux_find_memory_regions): Rename argument 'obfd' to 'func_data'.
1287 (linux_make_mappings_corefile_notes): Use
1288 linux_find_memory_regions_gdb.
1289 * target.c (read_alloc_pread_ftype): New typedef.
1290 (target_fileio_read_alloc_1_pread): New function.
1291 (read_alloc): Refactor from target_fileio_read_alloc_1.
1292 (read_stralloc_func_ftype): New typedef.
1293 (target_fileio_read_alloc_1): New implementation. Use read_alloc.
1294 (read_stralloc): Refactored from target_fileio_read_stralloc.
1295 (target_fileio_read_stralloc): New implementation, use read_stralloc.
1296
6e5b4429
JK
12972015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1298
1299 * Makefile.in (HFILES_NO_SRCDIR): Change gdb_regex.h to
1300 common/gdb_regex.h.
1301 (COMMON_OBS): Add gdb_regex.o.
1302 (gdb_regex.o): New.
1303 * common/common.m4 (GDB_AC_COMMON): Add gdb_use_included_regex,
1304 --without-included-regex and USE_INCLUDED_REGEX.
1305 * common/gdb_regex.c: New file from utils.c functions.
1306 * common/gdb_regex.h: Move it here from gdb_regex.h, update include
1307 file wrapping define name.
1308 * configure: Rebuilt.
1309 * configure.ac (gdb_use_included_regex, --without-included-regex)
1310 (USE_INCLUDED_REGEX): Move them to common/common.m4.
1311 * gdb_regex.h: Move it to common/gdb_regex.h.
1312 * utils.c: Remove include gdb_regex.h.
1313 (do_regfree_cleanup, make_regfree_cleanup, get_regcomp_error)
1314 (compile_rx_or_error): Move them to common/gdb_regex.c.
1315
ddc98fbf
JK
13162015-07-15 Aleksandar Ristovski <aristovski@qnx.com
1317 Jan Kratochvil <jan.kratochvil@redhat.com>
1318
1319 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
1320 * Makefile.in (HFILES_NO_SRCDIR); Add nat/linux-maps.h,
1321 common/target-utils.h.
1322 (COMMON_OBS): Add target-utils.o.
1323 (linux-maps.o, target-utils.o): New.
1324 * target/target-utils.c: New file.
1325 * target/target-utils.h: New file.
1326 * config/i386/linux.mh (NATDEPFILES): Add linux-maps.o.
1327 * config/i386/linux64.mh (NATDEPFILES): Ditto.
1328 * nat/linux-maps.c: New file.
1329 * nat/linux-maps.h: New file.
1330
e7b01ce0
MM
13312015-07-15 Markus Metzger <markus.t.metzger@intel.com>
1332 Pedro Alves <palves@redhat.com>
1333
1334 * nat/linux-btrace.c (perf_event_read): Change the type of DATA_HEAD.
1335 (perf_event_read_all): Change the type of SIZE and DATA_HEAD.
1336 (perf_event_read_bts): Change the type of SIZE and READ.
1337 (linux_enable_bts): Change the type of SIZE, PAGES, DATA_SIZE,
1338 and DATA_OFFSET. Move DATA_SIZE declaration. Restrict the buffer size
1339 to UINT_MAX. Check for overflows when using DATA_HEAD from the perf
1340 mmap page.
1341 (linux_enable_pt): Change the type of PAGES and SIZE. Restrict the
1342 buffer size to UINT_MAX.
1343 (linux_read_bts): Change the type of BUFFER_SIZE, SIZE, DATA_HEAD, and
1344 DATA_TAIL.
1345 * nat/linux-btrace.h (struct perf_event_buffer)<size, data_head>
1346 <last_head>: Change type.
1347 * common/btrace-common.h (struct btrace_dat_pt) <size>: Change type.
1348 * common/btrace-common.c (btrace_data_append): Change the type of
1349 SIZE.
1350 * btrace.c (parse_xml_raw): Change the type of SIZE. Change oddness
1351 check.
1352
f168693b
SM
13532015-07-14 Simon Marchi <simon.marchi@ericsson.com>
1354
1355 * gdbtypes.h (CHECK_TYPEDEF): Remove.
1356 * aarch64-tdep.c (aarch64_return_in_memory): Replace CHECK_TYPEDEF
1357 with check_typedef.
1358 * ada-lang.c (decode_constrained_packed_array_type): Likewise.
1359 (ada_array_length): Likewise.
1360 (find_parallel_type_by_descriptive_type): Likewise.
1361 (ada_check_typedef): Likewise.
1362 * arm-tdep.c (arm_return_in_memory): Likewise.
1363 * ax-gdb.c (gen_trace_static_fields): Likewise.
1364 (gen_struct_ref_recursive): Likewise.
1365 * c-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
1366 (variable: block COLONCOLON name): Likewise.
1367 (qualified_name: TYPENAME COLONCOLON name): Likewise.
1368 * c-lang.c (classify_type): Likewise.
1369 * c-typeprint.c (c_print_type): Likewise.
1370 (c_print_typedef): Likewise.
1371 (c_type_print_base): Likewise.
1372 * c-valprint.c (c_val_print): Likewise.
1373 * compile/compile-c-types.c (convert_type): Likewise.
1374 * compile/compile-object-load.c (get_out_value_type): Likewise.
1375 * completer.c (add_struct_fields): Likewise.
1376 (expression_completer): Likewise.
1377 * cp-namespace.c (cp_find_type_baseclass_by_name): Likewise.
1378 (cp_lookup_nested_symbol_1): Likewise.
1379 (cp_lookup_nested_symbol): Likewise.
1380 * cp-valprint.c (cp_print_value_fields): Likewise.
1381 (cp_print_static_field): Likewise.
1382 * d-valprint.c (d_val_print): Likewise.
1383 * eval.c (evaluate_subexp_standard): Likewise.
1384 (evaluate_subexp_for_sizeof): Likewise.
1385 * f-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
1386 * f-typeprint.c (f_type_print_base): Likewise.
1387 * f-valprint.c (f_val_print): Likewise.
1388 * gdbtypes.c (get_discrete_bounds): Likewise.
1389 (create_array_type_with_stride): Likewise.
1390 (type_name_no_tag_or_error): Likewise.
1391 (lookup_struct_elt_type): Likewise.
1392 (get_unsigned_type_max): Likewise.
1393 (internal_type_vptr_fieldno): Likewise.
1394 (set_type_vptr_fieldno): Likewise.
1395 (internal_type_vptr_basetype): Likewise.
1396 (set_type_vptr_basetype): Likewise.
1397 (get_vptr_fieldno): Likewise.
1398 (is_integral_type): Likewise.
1399 (is_scalar_type): Likewise.
1400 (is_scalar_type_recursive): Likewise.
1401 (distance_to_ancestor): Likewise.
1402 (is_unique_ancestor_worker): Likewise.
1403 (check_types_equal): Likewise.
1404 * gnu-v2-abi.c (gnuv2_value_rtti_type): Likewise.
1405
45280282
IB
14062015-07-14 Iain Buclaw <ibuclaw@gdcproject.org>
1407
1408 * dwarf2read.c (find_slot_in_mapped_hash): Extend language support to
1409 also test for language_d.
1410 (dwarf2_compute_name): Likewise.
1411 (read_func_scope): Likewise.
1412 (read_structure_type): Likewise.
1413 (new_symbol_full): Likewise.
1414 (determine_prefix): Likewise.
1415 (read_import_statement): Use dot as the separator for language_d.
1416 (typename_concat): Likewise, but don't prefix the D main function.
1417
99fe86f7
PB
14182015-07-14 Peter Bergner <bergner@vnet.ibm.com>
1419
1420 * nat/linux-namespaces.c (setns): Rename from this ...
1421 (do_setns): ... to this. Support calling setns if it exists.
1422 (mnsh_handle_setns): Call do_setns.
1423
d5131498
YQ
14242015-07-13 Yao Qi <yao.qi@linaro.org>
1425
1426 * exec.c (exec_file_attach): Add period at the end of error
1427 message.
1428
97605e61
AB
14292015-07-13 Andrew Burgess <andrew.burgess@embecosm.com>
1430
1431 * tui/tui-win.c (window_name_completer): New function.
1432 (focus_completer): Call window_name_completer. All old content
1433 moved into window_name_completer.
1434 (winheight_completer): New function.
1435 (_initialize_tui_win): Rename variable. Add completer to
1436 winheight command. Update doc string on winheight.
1437
8d6dbeb4
SL
14382015-07-12 Sandra Loosemore <sandra@codesourcery.com>
1439
1440 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Register
1441 all nios2 mach variants.
1442
a0e28e54
KB
14432015-07-10 Kevin Buettner <kevinb@redhat.com>
1444
1445 * rx-tdep.c (rx_get_opcode_byte): Use target_read_code instead
1446 of target_read_memory.
1447
c101f28f
AB
14482015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
1449
1450 * tui/tui-win.c (tui_set_win_height): Use a cleanup to free the
1451 string copy.
1452 (parse_scrolling_args): Likewise.
1453
150375dc
AB
14542015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
1455
1456 * tui/tui-win.c (focus_completer): Don't duplicate the tui window
1457 names in this function.
1458
6dce28e4
AB
14592015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
1460
1461 * tui/tui-data.h (SRC_NAME): Convert to lower case.
1462 (CMD_NAME): Likewise.
1463 (DATA_NAME): Likewise.
1464 (DISASSEM_NAME): Likewise.
1465 * tui/tui-win.c (tui_set_focus): Window names are now lower case.
1466 (tui_set_win_height): Likewise.
1467 (parse_scrolling_args): Likewise.
1468
485668e5
MM
14692015-07-10 Markus Metzger <markus.t.metzger@intel.com>
1470
1471 * record-btrace.c (record_btrace_goto_begin)
1472 (record_btrace_goto_end, record_btrace_goto): Move call to
1473 print_stack_frame ...
1474 (record_btrace_set_replay): ... here. Set stop_pc.
1475 * record-full.c (record_full_goto_entry): Set stop_pc.
1476
58d2eda5
PL
14772015-07-09 Pierre Langlois <pierre.langlois@arm.com>
1478
1479 * NEWS: Mention support for tracepoints on aarch64-linux.
1480
7671bf47
PL
14812015-07-09 Pierre Langlois <pierre.langlois@arm.com>
1482
1483 * linux-aarch64-low.c (aarch64_supports_tracepoints): New
1484 function. Return 1.
1485 (the_low_target): Install it.
1486
7890fb45
PL
14872015-07-09 Pierre Langlois <pierre.langlois@arm.com>
1488
1489 * gdb.trace/backtrace.exp: Set registers for aarch64 target.
1490 * gdb.trace/collection.exp: Likewise.
1491 * gdb.trace/mi-trace-frame-collected.exp: Likewise.
1492 * gdb.trace/mi-trace-unavailable.exp: Likewise.
1493 * gdb.trace/report.exp: Likewise.
1494 * gdb.trace/trace-break.exp: Likewise.
1495 * gdb.trace/unavailable.exp: Likewise.
1496 * gdb.trace/while-dyn.exp: Likewise.
1497
ea873d8e
PL
14982015-07-09 Pierre Langlois <pierre.langlois@arm.com>
1499
1500 * aarch64-tdep.c: Add ax.h and ax-gdb.h includes.
1501 (aarch64_gen_return_address): New function.
1502 (aarch64_gdbarch_init): Hook it.
1503
02a2a705
PL
15042015-07-09 Pierre Langlois <pierre.langlois@arm.com>
1505
1506 * aarch64-tdep.c (aarch64_make_stub_cache): Set available_p and
1507 swallow NOT_AVAILABLE_ERROR.
1508 (aarch64_stub_this_id): Call frame_id_build_unavailable_stack if
1509 available_p is not set.
1510 (aarch64_stub_frame_unwind_stop_reason): New function.
1511 (aarch64_stub_unwind): Install it.
1512
7dfa3edc
PL
15132015-07-09 Pierre Langlois <pierre.langlois@arm.com>
1514
1515 * aarch64-tdep.c (aarch64_prologue_cache) <available_p>: New
1516 field.
1517 (aarch64_make_prologue_cache_1): New function, factored out from
1518 aarch64_make_prologue_cache. Do not allocate cache. Set
1519 available_p.
1520 (aarch64_make_prologue_cache): Reimplement wrapping
1521 aarch64_make_prologue_cache_1, and swallowing
1522 NOT_AVAILABLE_ERROR.
1523 (aarch64_prologue_frame_unwind_stop_reason): New function.
1524 Return UNWIND_UNAVAILABLE if available_p is not set.
1525 (aarch64_prologue_unwind): Install it.
1526 (aarch64_prologue_this_id): Move prev_pc and prev_sp limit
1527 checks into aarch64_prologue_frame_unwind_stop_reason. Call
1528 frame_id_build_unavailable_stack if available_p is not set.
1529
db634143
PL
15302015-07-09 Pierre Langlois <pierre.langlois@arm.com>
1531
1532 * aarch64-tdep.c (aarch64_prologue_cache) <func, prev_pc>: New
1533 fields.
1534 (aarch64_scan_prologue): Set prev_pc.
1535 (aarch64_make_prologue_cache): Set func.
1536 (aarch64_make_stub_cache): Set prev_pc.
1537 (aarch64_prologue_this_id): Remove local variables id, pc and
1538 func. Read prev_pc and func from cache.
1539 (aarch64_stub_this_id): Read prev_pc from cache.
1540
8b61f75d
PL
15412015-07-09 Pierre Langlois <pierre.langlois@arm.com>
1542
1543 * aarch64-tdep.c (aarch64_make_stub_cache): Update comment. New
1544 argument this_cache. Remove unused local variables reg and
1545 unwound_fp. Return early if this_cache is already set. Set
1546 this_cache.
1547 (aarch64_stub_this_id): Update call to aarch64_make_stub_cache.
1548
7c8edfae
PL
15492015-07-09 Pierre Langlois <pierre.langlois@arm.com>
1550
1551 * aarch64-tdep.c (aarch64_make_prologue_cache): Update comment.
1552 New argument this_cache. Return early if this_cache is already
1553 set. Set this_cache.
1554 (aarch64_prologue_this_id): Update call to
1555 aarch64_make_prologue_cache.
1556 (aarch64_prologue_prev_register): Likewise.
1557 (aarch64_normal_frame_base): Likewise.
1558
938c69a1
SM
15592015-07-09 Simon Marchi <simon.marchi@ericsson.com>
1560
1561 * c-valprint.c (c_val_print): Factor out memberptr printing code
1562 from c_val_print to ...
1563 (c_val_print_memberptr): ... this new function.
1564
49f7fe28
SM
15652015-07-09 Simon Marchi <simon.marchi@ericsson.com>
1566
1567 * c-valprint.c (c_val_print): Factor out int printing code to ...
1568 (c_val_print_int): ... this new function.
1569
9e4f353c
SM
15702015-07-09 Simon Marchi <simon.marchi@ericsson.com>
1571
1572 * c-valprint.c (c_val_print): Factor out struct and union
1573 printing code to ...
1574 (c_val_print_struct): ... this new function ...
1575 (c_val_print_union): ... and this new function.
1576
1c67f032
SM
15772015-07-09 Simon Marchi <simon.marchi@ericsson.com>
1578
1579 * c-valprint.c (c_val_print): Factor out pointer printing code
1580 to ...
1581 (c_val_print_ptr): ... this new function.
1582
0b6ef777
SM
15832015-07-09 Simon Marchi <simon.marchi@ericsson.com>
1584
1585 * c-valprint.c (c_valprint): Factor our array printing code from
1586 c_val_print to ...
1587 (c_val_print_array): ... this new function.
1588
1033c33c
SM
15892015-07-09 Simon Marchi <simon.marchi@ericsson.com>
1590
1591 * c-valprint.c (c_val_print): Factor out pointer printing code
1592 to ...
1593 (print_unpacked_pointer): ... this new function.
1594
f6b93c34
SM
15952015-07-09 Simon Marchi <simon.marchi@ericsson.com>
1596
1597 * c-valprint.c (c_val_print): Remove an assignment to i and move
1598 its declaration.
1599
0f4576e3
YQ
16002015-07-09 Yao Qi <yao.qi@linaro.org>
1601
1602 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Add
1603 argument ptid. Update comments. Caller update.
1604
37fdfe4c
MM
16052015-07-09 Markus Metzger <markus.t.metzger@intel.com>
1606
1607 * btrace.c (pt_print_packet): Print stop, vmcs, tma, mtc, cyc, and
1608 mnt packets.
1609
80a2b330
MM
16102015-07-09 Markus Metzger <markus.t.metzger@intel.com>
1611
1612 * btrace.c (btrace_pt_readmem_callback): Change type of PC argument.
1613
4ab31498
SM
16142015-07-08 Simon Marchi <simon.marchi@ericsson.com>
1615
1616 * progspace.c (delete_program_space): Add missing spaces.
1617
7a41607e
SM
16182015-07-08 Simon Marchi <simon.marchi@ericsson.com>
1619
1620 * inferior.c (delete_inferior_1): Rename to ...
1621 (delete_inferior): ..., remove 'silent' parameter, delete
1622 program space when unused and remove call to prune_program_spaces.
1623 Remove the old, unused, delete_inferior.
1624 (delete_inferior_silent): Remove.
1625 (prune_inferiors): Change call from delete_inferior_1 to
1626 delete_inferior and remove 'silent' parameter. Remove call to
1627 prune_program_spaces.
1628 (remove_inferior_command): Idem.
1629 * inferior.h (delete_inferior_1): Rename to...
1630 (delete_inferior): ..., remove 'silent' parameter and remove the
1631 original delete_inferior.
1632 (delete_inferior_silent): Remove.
1633 * mi/mi-main.c (mi_cmd_remove_inferior): Change call from
1634 delete_inferior_1 to delete_inferior and remove 'silent'
1635 parameter.
1636 * progspace.c (prune_program_spaces): Remove.
1637 (pspace_empty_p): Rename to...
1638 (program_space_empty_p): ... and make non-static.
1639 (delete_program_space): New.
1640 * progspace.h (prune_program_spaces): Remove declaration.
1641 (program_space_empty_p): New declaration.
1642 (delete_program_space): New declaration.
1643 * monitor.c (monitor_close): Replace call to
1644 delete_thread_silent and delete_inferior_silent with
1645 discard_all_inferiors.
1646
a9bd710f
PP
16472015-07-08 Patrick Palka <patrick@parcs.ath.cx>
1648
1649 * defs.h (deprecated_register_changed_hook): Remove prototype.
1650 * interps.c (clear_iterpreter_hooks): Remove reference to
1651 deprecated_register_changed_hook.
1652 * top.c (deprecated_register_changed_hook): Remove prototype.
1653 * valops.c (value_assign): Remove reference to
1654 deprecated_register_changed_hook.
1655 * tui/tui-hooks.c (tui_register_changed): Add parameter "frame".
1656 Add comment documenting the function.
1657 (tui_register_changed_observer): Define.
1658 (tui_install_hooks): Remove reference to
1659 deprecated_register_changed_hook. Set
1660 tui_register_changed_observer.
1661 (tui_remove_hooks): Remove reference to
1662 deprecated_register_changed_hook. Unset
1663 tui_register_changed_observer.
1664
08464196
JK
16652015-07-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1666
1667 PR compile/18484
1668 * compile/compile-c-types.c (insert_type): Change gdb_assert to error.
1669
bcf5c1d9
RC
16702015-07-08 Robert O'Callahan <robert@ocallahan.org>
1671
1672 PR exp/18617
1673 * ax-gdb.c (gen_conversion): Extend to 'to' bits, not 'from'.
1674
e8643a45
MM
16752015-07-08 Markus Metzger <markus.t.metzger@intel.com>
1676
1677 * MAINTAINERS (Write After Approval): Add Markus T. Metzger.
1678
76fb6829
MM
16792015-07-08 Markus Metzger <markus.t.metzger@intel.com>
1680
1681 * nat/linux-btrace.c (kernel_supports_bts, kernel_supports_pt):
1682 Use safe_strerror() instead of strerror().
1683
82c40d4b
YQ
16842015-07-07 Yao Qi <yao.qi@linaro.org>
1685
1686 * features/arm-with-m-fpa-layout.xml: Set architecture to arm.
1687 * features/arm-with-m-fpa-layout.c: Regenerated.
1688 * features/arm-with-m-vfp-d16.xml: Likewise.
1689 * features/arm-with-m-vfp-d16.c: Regenerated.
1690 * features/arm-with-m.xml: Likewise.
1691 * features/arm-with-m.c: Regenerated.
1692 * features/arm-with-neon.xml: Likewise.
1693 * features/arm-with-neon.c: Regenerated.
1694 * features/arm-with-vfpv2.xml: Likewise.
1695 * features/arm-with-vfpv2.c: Regenerated.
1696 * features/arm-with-vfpv3.xml: Likewise.
1697 * features/arm-with-vfpv3.c: Regenerated.
1698
607685ec
YQ
16992015-07-07 Yao Qi <yao.qi@linaro.org>
1700
1701 * aarch32-linux-nat.h (VFP_REGS_SIZE): New macro, moved from
1702 arm-linux-nat.c.
1703 * aarch64-linux-nat.c: Include aarch32-linux-nat.h and
1704 elf/external.h.
1705 (fetch_gregs_from_thread): Call aarch32_gp_regcache_supply
1706 if target is 32-bit.
1707 (store_gregs_to_thread): Call aarch32_gp_regcache_collect
1708 if target is 32-bit.
1709 (fetch_fpregs_from_thread): Call aarch32_vfp_regcache_supply
1710 if target is 32-bit.
1711 (store_fpregs_to_thread): Call aarch32_vfp_regcache_collect
1712 if target is 32-bit.
1713 (tdesc_arm_with_vfpv3, tdesc_arm_with_neon): Declare.
1714 (aarch64_linux_read_description): Return the right target
1715 description.
1716 * arm-linux-nat.c (VFP_REGS_SIZE): Moved to aarch32-linux-nat.h.
1717 * config/aarch64/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
1718 * configure.tgt (aarch64*-*-linux*): Add arm-tdep.o and
1719 arm-linux-tdep.o.
1720
f1b67888
YQ
17212015-07-07 Yao Qi <yao.qi@linaro.org>
1722
1723 * aarch32-linux-nat.c: New file.
1724 * aarch32-linux-nat.h: New file.
1725 * arm-linux-nat.c: Include aarch32-linux-nat.h.
1726 (fetch_regs): Move code to aarch32-linux-nat.c. Call
1727 aarch32_gp_regcache_supply.
1728 (store_regs): Move code to aarch32-linux-nat.c. Call
1729 aarch32_gp_regcache_collect.
1730 (fetch_vfp_regs): Move code to aarch32-linux-nat.c. Call
1731 aarch32_vfp_regcache_supply.
1732 (store_vfp_regs): Move code to aarch32-linux-nat.c. Call
1733 aarch32_vfp_regcache_collect.
1734 * config/arm/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
1735
179bfe82
YQ
17362015-07-07 Yao Qi <yao.qi@linaro.org>
1737
1738 * arm-linux-nat.c (store_fpregister): Remove.
1739 (store_register): Likewise.
1740 (fetch_fpregister): Likewise.
1741 (fetch_register): Likewise.
1742 (arm_linux_store_inferior_registers): Call store_regs and
1743 store_fpregs instead.
1744 (arm_linux_fetch_inferior_registers): Call fetch_fpregs and
1745 fetch_regs instead.
1746
6008fc5f
AB
17472015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1748
1749 * doc/gdb.texinfo (TUI): Restructure documentation on TUI layout
1750 and focus commands.
1751
7c79d316
JB
17522015-07-06 Joel Brobecker <brobecker@adacore.com>
1753
1754 * NEWS: Create a new section for the next release branch.
1755 Rename the section of the current branch, now that it has
1756 been cut.
1757
f2232bea
JB
17582015-07-06 Joel Brobecker <brobecker@adacore.com>
1759
1760 GDB 7.10 branch created (66c4b3e8a628a207bc6aafef6af0c4128195f56e):
1761 * version.in: Bump version to 7.10.50.DATE-cvs.
1762
66c4b3e8
LM
17632015-07-06 Luis Machado <lgustavo@codesourcery.com>
1764
1765 * breakpoint.c (remove_breakpoint_1): Don't handle permanent
1766 breakpoints in a special way.
1767 (remove_breakpoint): Likewise.
1768 (mark_breakpoints_out): Likewise.
1769
bcd8537c
AB
17702015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1771
1772 * doc/gdb.texinfo (TUI): Add comma after @xref.
1773
10e9aaa3
AB
17742015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1775
1776 * tui/tui-win.c (tui_set_focus): Use structure member 'generic'
1777 instead of casting the structure type.
1778
8a13d42d
SM
17792015-07-06 Simon Marchi <simon.marchi@ericsson.com>
1780
1781 * valops.c (search_struct_field): Remove OFFSET parameter.
1782 (value_cast_structs): Adjust calls to search_struct_field.
1783 (value_struct_elt): Same.
1784 (find_overload_match): Same.
1785
a844296a
SM
17862015-07-06 Simon Marchi <simon.marchi@ericsson.com>
1787
1788 * value.c (value_fetch_lazy): Update comment, change return
1789 value to void.
1790 * value.h (value_fetch_lazy): Change return value to void.
1791
f41cbf58
AB
17922015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1793
1794 * tui/tui-data.c (tui_partial_win_by_name): Window name is const.
1795 (tui_win_name): Make parameter and result const.
1796 * tui/tui-data.h (tui_win_name): Make parameter and result const.
1797
118ca224
PP
17982015-07-06 Patrick Palka <patrick@parcs.ath.cx>
1799
1800 * i386-tdep.c (i386_mpx_info_bounds): Don't call error, instead
1801 use printf_unfiltered.
1802 (set_mpx_cmd): Add missing trailing space to command string
1803 literal.
1804 (_initialize_i386_tdep): Give the "mpx" prefix command its
1805 correct name.
1806
1b485e67
KB
18072015-07-02 Kevin Buettner <kevinb@redhat.com>
1808
1809 * rx-tdep.c (RX_USP_REGNUM, RX_BPC_REGNUM): New constants.
1810 (enum rx_frame_type): New.
1811 (struct rx_prologue): Add new field `frame_type'.
1812 (rx_analyze_prologue): Add `frame_type' parameter. Cache this
1813 parameter in the prologue struct. Add code for recording
1814 locations of PC and PSW for fast interrupt and exception frames.
1815 (rx_skip_prologue): Adjust call to rx_analyze_prologue.
1816 (rx_analyze_frame_prologue): Add `frame_type' parameter.
1817 (rx_frame_type): New function.
1818 (rx_frame_base): Fetch frame type and pass it to rx_analyze_prologue.
1819 (rx_frame_this_id): Rename parameter `this_prologue_cache' to
1820 `this_cache'.
1821 (rx_frame_prev_register): Rename parameter `this_prologue_cache' to
72f4393d 1822 `this_cache'. Add cases for RX_FRAME_TYPE_EXCEPTION and
1b485e67
KB
1823 RX_FRAME_TYPE_FAST_INTERRUPT.
1824 (normal_frame_p, exception_frame_p, rx_frame_sniffer_common)
1825 (rx_frame_sniffer, rx_exception_sniffer): New functions.
1826 (rx_frame_unwind): Use rx_frame_sniffer instead of
1827 default_frame_sniffer.
1828 (rx_frame_unwind): New unwinder.
1829 (rx_gdbarch_init): Register new unwinder.
1830
0561fea4
KB
18312015-07-02 Kevin Buettner <kevinb@redhat.com>
1832
1833 * rx-tdep.c (RX_BPSW_REGNUM, RX_FPSW_REGNUM): New constants.
1834 (struct gdbarch_tdep): Add fields rx_psw_type and rx_fpsw_type.
1835 (rx_register_type): Add cases for RX_PSW_REGNUM, RX_BPSW_REGNUM,
1836 and RX_FPSW_REGNUM.
1837 (rx_gdbarch_init): Initialize PSW, BPSW, and FPSW flags types.
1838
decf8d9a
JK
18392015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1840
1841 Fix GCC false warning.
1842 * s390-linux-tdep.c (s390_handle_arg): Initialize VAL.
1843
2fd0f80d
YQ
18442015-07-02 Yao Qi <yao.qi@linaro.org>
1845
1846 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Fix
1847 typo in the debugging message.
1848
b0627500
MM
18492015-07-02 Markus Metzger <markus.t.metzger@intel.com>
1850
1851 * btrace.c: Include gdbcmd.h, cli/cli-utils.h, and ctype.h.
1852 (maint_btrace_cmdlist, maint_btrace_set_cmdlist)
1853 (maint_btrace_show_cmdlist, maint_btrace_pt_set_cmdlist)
1854 (maint_btrace_pt_show_cmdlist, maint_btrace_pt_skip_pad)
1855 (btrace_maint_clear): New.
1856 (btrace_fetch, btrace_clear): Call btrace_maint_clear.
1857 (pt_print_packet, btrace_maint_decode_pt)
1858 (btrace_maint_update_pt_packets, btrace_maint_update_packets)
1859 (btrace_maint_print_packets, get_uint, get_context_size, no_chunk)
1860 (maint_btrace_packet_history_cmd)
1861 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
1862 (maint_btrace_cmd, maint_btrace_set_cmd, maint_btrace_show_cmd)
1863 (maint_btrace_pt_set_cmd, maint_btrace_pt_show_cmd)
1864 (maint_info_btrace_cmd, _initialize_btrace): New.
1865 * btrace.h (btrace_pt_packet, btrace_pt_packet_s)
1866 (btrace_maint_packet_history, btrace_maint_info): New.
1867 (btrace_thread_info) <maint>: New.
1868 * NEWS: Announce it.
1869
9be54cae
MM
18702015-07-02 Markus Metzger <markus.t.metzger@intel.com>
1871
1872 * btrace.c (btrace_fetch): Append the new trace data.
1873 (btrace_clear): Clear the stored trace data.
1874 * btrace.h (btrace_thread_info) <data>: New.
1875 * common/btrace-common.h (btrace_data_clear)
1876 (btrace_data_append): New.
1877 * common/btrace-common.c (btrace_data_clear)
1878 (btrace_data_append): New.
1879
010a18a1
MM
18802015-07-02 Markus Metzger <markus.t.metzger@intel.com>
1881
1882 * nat/linux-btrace.c (linux_enable_bts): Check for
1883 PERF_ATTR_SIZE_VER5.
1884 Check for data_offset and data_size fields. Use them.
1885
b20a6524
MM
18862015-07-02 Markus Metzger <markus.t.metzger@intel.com>
1887
1888 * NEWS: Announce new commands "record btrace pt" and "record pt".
1889 Announce new options "set|show record btrace pt buffer-size".
1890 * btrace.c: Include "rsp-low.h".
1891 Include "inttypes.h".
1892 (btrace_add_pc): Add forward declaration.
1893 (pt_reclassify_insn, ftrace_add_pt, btrace_pt_readmem_callback)
1894 (pt_translate_cpu_vendor, btrace_finalize_ftrace_pt)
1895 (btrace_compute_ftrace_pt): New.
1896 (btrace_compute_ftrace): Support BTRACE_FORMAT_PT.
1897 (check_xml_btrace_version): Update version check.
1898 (parse_xml_raw, parse_xml_btrace_pt_config_cpu)
1899 (parse_xml_btrace_pt_raw, parse_xml_btrace_pt)
1900 (btrace_pt_config_cpu_attributes, btrace_pt_config_children)
1901 (btrace_pt_children): New.
1902 (btrace_children): Add support for "pt".
1903 (parse_xml_btrace_conf_pt, btrace_conf_pt_attributes): New.
1904 (btrace_conf_children): Add support for "pt".
1905 * btrace.h: Include "intel-pt.h".
1906 (btrace_pt_error): New.
1907 * common/btrace-common.c (btrace_format_string, btrace_data_fini)
1908 (btrace_data_empty): Support BTRACE_FORMAT_PT.
1909 * common/btrace-common.h (btrace_format): Add BTRACE_FORMAT_PT.
1910 (struct btrace_config_pt): New.
1911 (struct btrace_config)<pt>: New.
1912 (struct btrace_data_pt_config, struct btrace_data_pt): New.
1913 (struct btrace_data)<pt>: New.
1914 * features/btrace-conf.dtd (btrace-conf)<pt>: New.
1915 (pt): New.
1916 * features/btrace.dtd (btrace)<pt>: New.
1917 (pt, pt-config, cpu): New.
1918 * nat/linux-btrace.c (perf_event_read, perf_event_read_all)
1919 (perf_event_pt_event_type, kernel_supports_pt)
1920 (linux_supports_pt): New.
1921 (linux_supports_btrace): Support BTRACE_FORMAT_PT.
1922 (linux_enable_bts): Free tinfo on error.
1923 (linux_enable_pt): New.
1924 (linux_enable_btrace): Support BTRACE_FORMAT_PT.
1925 (linux_disable_pt): New.
1926 (linux_disable_btrace): Support BTRACE_FORMAT_PT.
1927 (linux_fill_btrace_pt_config, linux_read_pt): New.
1928 (linux_read_btrace): Support BTRACE_FORMAT_PT.
1929 * nat/linux-btrace.h (struct btrace_tinfo_pt): New.
1930 (struct btrace_target_info)<pt>: New.
1931 * record-btrace.c (set_record_btrace_pt_cmdlist)
1932 (show_record_btrace_pt_cmdlist): New.
1933 (record_btrace_print_pt_conf): New.
1934 (record_btrace_print_conf): Support BTRACE_FORMAT_PT.
1935 (btrace_ui_out_decode_error): Support BTRACE_FORMAT_PT.
1936 (cmd_record_btrace_pt_start): New.
1937 (cmd_record_btrace_start): Support BTRACE_FORMAT_PT.
1938 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): New.
1939 (_initialize_record_btrace): Add new commands.
1940 * remote.c (PACKET_Qbtrace_pt, PACKET_Qbtrace_conf_pt_size): New.
1941 (remote_protocol_features): Add "Qbtrace:pt".
1942 Add "Qbtrace-conf:pt:size".
1943 (remote_supports_btrace): Support BTRACE_FORMAT_PT.
1944 (btrace_sync_conf): Support PACKET_Qbtrace_conf_pt_size.
1945 (remote_enable_btrace): Support BTRACE_FORMAT_PT.
1946 (_initialize_remote): Add new commands.
1947
58bfce93
MM
19482015-07-02 Markus Metzger <markus.t.metzger@intel.com>
1949
1950 * configure.ac: check for libipt
1951 * configure: Regenerate.
1952 * config.in: Regenerate.
1953 * Makefile.in (LIBIPT): New.
1954 (CLIBS): Add $LIBIPT.
1955 * NEWS: document new configure options
1956
b0fd6b30
JK
19572015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1958
1959 * compile/compile-object-load.c (compile_object_load): Replace debug
1960 message "lookup undefined ELF symbol" by 3 more specific messages.
1961
e6280369
KB
19622015-07-01 Kevin Buettner <kevinb@redhat.com>
1963
1964 * rl78-tdep.c (struct gdbarch_tdep): Add new field, rl78_psw_type.
1965 (rl78_register_type): Add case for RL78_PSW_REGNUM.
1966 (rl78_gdbarch_init): Initialize rl78_psw_type.
1967
bbcbf914
PP
19682015-07-01 Patrick Palka <patrick@parcs.ath.cx>
1969
1970 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
1971 Update commentary. Always refresh the registers when frame
1972 information has changed.
1973 * tui/tui-stack.c (tui_show_frame_info): Update commentary.
1974 Change return type to int. Return 1 if frame information has
1975 changed, 0 otherwise.
1976 (tui_before_prompt): Update commentary.
1977 * tui/tui-stack.h (tui_show_frame_info): Change return type to
1978 int.
1979
0986c744
PP
19802015-06-30 Patrick Palka <patrick@parcs.ath.cx>
1981
1982 PR tui/13378
1983 * frame.c (select_frame): Remove reference to
1984 deprecated_selected_frame_level_changed_hook.
1985 * frame.h (deprecated_selected_frame_level_changed_hook): Remove
1986 declaration.
1987 * stack.c (deprecated_selected_frame_level_changed_hook):
1988 Likewise.
1989 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook):
1990 Rename to ...
1991 (tui_refresh_frame_and_register_information): ... this. Bail
1992 out if there is no stack. Don't update register information
1993 unless registers_too_p is true.
1994 (tui_print_frame_info_listing_hook): Rename to ...
1995 (tui_dummy_print_frame_info_listing_hook): ... this.
1996 (tui_before_prompt): New function.
1997 (tui_normal_stop): New function.
1998 (tui_before_prompt_observer): New observer.
1999 (tui_normal_stop_observer): New observer.
2000 (tui_install_hooks): Set
2001 deprecated_print_frame_info_listing_hook to
2002 tui_dummy_print_frame_info_listing_hook. Register
2003 tui_before_prompt_observer to call tui_before_prompt and
2004 tui_normal_stop_observer to call tui_normal_stop. Remove
2005 reference to deprecated_selected_frame_level_changed_hook.
2006 (tui_remove_hooks): Detach and unset tui_before_prompt_observer
2007 and tui_normal_stop_observer. Remove reference to
2008 deprecated_selected_frame_level_changed_hook.
2009
b5fca6d7
PP
20102015-06-30 Patrick Palka <patrick@parcs.ath.cx>
2011
2012 PR tui/13378
2013 * tui/tui-stack.c (tui_set_locator_info): Change prototype to
2014 return an int instead of void. Return whether the locator
2015 window has changed.
2016 (tui_show_frame_info): If the locator info has not changed, then
2017 bail out early to avoid refreshing the windows.
2018
c45613e3
PP
20192015-06-30 Patrick Palka <patrick@parcs.ath.cx>
2020
2021 * tui/tui-stack.c (tui_set_locator_info): Explicitly pass
2022 LOCATOR_WIN to tui_alloc_content.
2023
7b9be803
YQ
20242015-06-30 Yao Qi <yao.qi@linaro.org>
2025
2026 PR tdep/18605
2027 * arm-tdep.c (arm_get_next_pc_raw): Break for media
2028 instructions.
2029
fd6e021d
KB
20302015-06-29 Kevin Buettner <kevinb@redhat.com>
2031
78ab7e9d
KB
2032 * rx-tdep.c (RX_PSW_REGNUM): New enum constant.
2033 (rx_dwarf_reg_to_regnum): New function.
2034 (rx_gdbarch_init): Register rx_dwarf_reg_to_regnum. Use dwarf2
2035 unwinding.
fd6e021d 2036
28bf096c
PA
20372015-06-29 Pedro Alves <palves@redhat.com>
2038
2039 PR threads/18127
2040 * infcall.c (run_inferior_call): On infcall success, if the thread
2041 was marked stopped before, reset it back to stopped.
2042 * infrun.c (resume): Don't suppress the set_running calls when
2043 doing an infcall.
2044 (normal_stop): Only discard the finish_thread_state cleanup if the
2045 infcall succeeded.
2046
2880b51c 20472015-06-29 Pierre Langlois <pierre.langlois@arm.com>
1451ea7d
PL
2048
2049 * MAINTAINERS (Write After Approval): Update my email address.
2050
ee93cd5e
KS
20512015-06-26 Keith Seitz <keiths@redhat.com>
2052 Doug Evans <dje@google.com>
2053
2054 PR 16253
2055 * block.c (block_lookup_symbol): For non-function blocks,
2056 continue to search for a symbol with an exact domain match
2057 Otherwise, return any previously found "best domain" symbol.
2058 (block_lookup_symbol_primary): Likewise.
2059
fc637f04
PP
20602015-06-26 Patrick Palka <patrick@parcs.ath.cx>
2061
2062 * NEWS: Mention the new option "history remove-duplicates".
2063 * top.c (history_remove_duplicates): New static variable.
2064 (show_history_remove_duplicates): New static function.
2065 (gdb_add_history): Conditionally remove duplicate history
2066 entries.
2067 (init_main): Add "history remove-duplicates" option.
2068
2e52ae68
PP
20692015-06-26 Patrick Palka <patrick@parcs.ath.cx>
2070
2071 * tui/tui-win.c (focus_completer): New static function.
2072 (_initialize_tui_win): Set the completion function of the
2073 "focus" command to focus_completer.
2074
6e22494e
JK
20752015-06-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2076
2077 * linespec.c (minsym_found): Reset sal.PC for COMPUNIT_LOCATIONS_VALID
2078 and language_asm..
2079 * symtab.c (find_function_start_sal): Likewise.
2080
f8773be1
GB
20812015-06-25 Gary Benson <gbenson@redhat.com>
2082
2083 * solib.c (solib_find_1): Set local variable sysroot to NULL if
2084 it is the empty string after trailing slashes have been stripped.
2085
a3be80c3
GB
20862015-06-25 Gary Benson <gbenson@redhat.com>
2087
2088 * exec.c (exec_file_locate_attach): Remove gdb_sysroot NULL check.
2089 * infrun.c (follow_exec): Likewise.
2090 * remote.c (remote_filesystem_is_local): Likewise.
2091 * solib.c (solib_find_1): Likewise.
2092
32fad71f
KS
20932015-06-24 Keith Seitz <keiths@redhat.com>
2094
2095 * build-id.c (build_id_to_debug_bfd): Add cleanup to free
2096 return value from lrealpath.
2097
87d1b309
MF
20982015-06-24 Mike Frysinger <vapier@gentoo.org>
2099
2100 * remote-sim.c (gdbsim_open): Move sysroot update to the top.
2101
23bf70af
MF
21022015-06-24 Mike Frysinger <vapier@gentoo.org>
2103
2104 * remote-sim.c: Include gdb_bfd.h.
2105 (gdbsim_open): Declare new local sysroot pointing to gdb_sysroot.
2106 Skip TARGET_SYSROOT_PREFIX in gdb_sysroot when it is active.
2107
5cd867b4
YQ
21082015-06-24 Yao Qi <yao.qi@linaro.org>
2109
2110 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't call
2111 set_gdbarch_get_siginfo_type.
2112 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
2113 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
2114 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
2115 * m68klinux-tdep.c (m68k_linux_init_abi): Likewise.
2116 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
2117 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
2118 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
2119 * linux-tdep.c (linux_get_siginfo_type): Change it to static.
2120 (linux_init_abi): Call set_gdbarch_get_siginfo_type.
2121 * linux-tdep.h (linux_get_siginfo_type): Remove the declaration.
2122
dc06243f
GB
21232015-06-24 Gary Benson <gbenson@redhat.com>
2124
2125 * common/buffer.c (stdint.h): Do not include.
2126 * common/print-utils.c (stdint.h): Likewise.
2127 * compile/compile-c-symbols.c (gdb_assert.h): Likewise.
2128 * compile/compile-c-types.c (gdb_assert.h): Likewise.
2129 * ft32-tdep.c (gdb_assert.h): Likewise.
2130 * guile/scm-utils.c (stdint.h): Likewise.
2131 * i386-linux-tdep.c (stdint.h): Likewise.
2132 * i386-tdep.c (stdint.h): Likewise.
2133 * nat/linux-btrace.c (stdint.h): Likewise.
2134 * nat/linux-btrace.h (stdint.h): Likewise.
2135 * nat/linux-ptrace.c (stdint.h): Likewise.
2136 * nat/mips-linux-watch.h (stdint.h): Likewise.
2137 * ppc-linux-nat.c (stdint.h): Likewise.
2138 * python/python-internal.h (stdint.h): Likewise.
2139 * stub-termcap.c (stdlib.h): Likewise.
2140 * target/target.h (stdint.h): Likewise.
2141 * xtensa-linux-nat.c (stdint.h): Likewise.
2142
0fc26caf
PP
21432015-06-23 Patrick Palka <patrick@parcs.ath.cx>
2144
2145 * top.c (init_history): Look at errno after calling strtol to
2146 properly map large GDBHISTSIZE values to infinity.
2147
a38fe4fe
DE
21482015-06-23 Doug Evans <dje@google.com>
2149
2150 * inferior.h (struct inferior_suspend_state): Delete, unused.
2151 All references deleted.
2152
7564fe45
MF
21532015-06-23 Mike Frysinger <vapier@gentoo.org>
2154
2155 * microblaze-tdep.c (microblaze_push_dummy_code): Delete.
2156 (microblaze_push_dummy_call): Likewise.
2157 (microblaze_gdbarch_init): Delete calls to set_gdbarch_push_dummy_code
2158 and set_gdbarch_push_dummy_call.
2159
0bdb2f78
YQ
21602015-06-23 Yao Qi <yao.qi@linaro.org>
2161
2162 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
2163 Check whether have_ptrace_getregset is TRIBOOL_TRUE explicitly.
2164 (amd64_linux_store_inferior_registers): Likewise.
2165 * arm-linux-nat.c (fetch_fpregister): Likewise.
2166 (fetch_fpregs, store_fpregister): Likewise.
2167 (store_fpregister, store_fpregs): Likewise.
2168 (fetch_register, fetch_regs): Likewise.
2169 (store_register, store_regs): Likewise.
2170 (fetch_vfp_regs, store_vfp_regs): Likewise.
2171 (arm_linux_read_description): Check have_ptrace_getregset is
2172 TRIBOOL_UNKNOWN. Set have_ptrace_getregset to TRIBOOL_TRUE
2173 or TRIBOOL_FALSE.
2174 * i386-linux-nat.c (fetch_xstateregs): Check
2175 have_ptrace_getregset is not TRIBOOL_TRUE.
2176 (store_xstateregs): Likewise.
2177 * linux-nat.c (have_ptrace_getregset): Change its type to
2178 enum tribool.
2179 * linux-nat.h (tribool): New enum.
2180 * x86-linux-nat.c (x86_linux_read_description): Use enum tribool.
2181 Check whether have_ptrace_getregset is TRIBOOL_TRUE.
2182
18a94d75
DE
21832015-06-19 Doug Evans <dje@google.com>
2184
2185 * NEWS: Mention Sun's version of stabs is no longer supported.
2186 * elfread.c (free_elfinfo): Delete. All uses updated.
2187 (elfstab_offset_sections): Delete. All uses updated.
2188 * gdb-stabs.h (stab_section_info): Delete. All uses updated.
2189 * psympriv.h (partial_symtab) <section_offsets>: Delete.
2190 All uses updated.
2191 * psymtab.c (start_psymtab_common): Delete arg section_offsets.
2192 All callers updated.
2193
124e13d9
SM
21942015-06-18 Simon Marchi <simon.marchi@ericsson.com>
2195
2196 * common/rsp-low.c (needs_escaping): New.
2197 (remote_escape_output): Add unit_size parameter. Refactor to
2198 support multi-byte addressable units. Rename parameters.
2199 * common/rsp-low.h (remote_escape_output): Add unit_size
2200 parameter and rename others. Update doc.
2201 * remote.c (align_for_efficient_write): New.
2202 (remote_write_bytes_aux): Add unit_size parameter and use it.
2203 Rename some variables. Update doc.
2204 (remote_xfer_partial): Get unit size and use it.
2205 (remote_read_bytes_1): Add unit_size parameter and use it.
2206 Rename some variables. Update doc.
2207 (remote_write_bytes): Same.
2208 (remote_xfer_live_readonly_partial): Same.
2209 (remote_read_bytes): Same.
2210 (remote_flash_write): Update call to remote_write_bytes_aux.
2211 (remote_write_qxfer): Update call to remote_escape_output.
2212 (remote_search_memory): Same.
2213 (remote_hostio_pwrite): Same.
2214
6ae88661
LM
22152015-06-17 Luis Machado <lgustavo@codesourcery.com>
2216
2217 * breakpoint.c (add_location_to_breakpoint): Don't mark permanent
2218 locations as inserted.
2219 Update and expand comment about permanent locations.
2220 (bp_loc_is_permanent): Don't return 0 for bp_call_dummy.
2221 Move comment to add_location_to_breakpoint.
2222 (update_global_location_list): Don't error out if a permanent
2223 breakpoint is not marked inserted.
2224 Don't error out if a non-permanent breakpoint location is inserted on
2225 top of a permanent breakpoint.
2226
da4616f6
LM
22272015-06-17 Luis Machado <lgustavo@codesourcery.com>
2228
2229 * breakpoint.c (make_breakpoint_permanent): Remove unused
2230 function.
2231 * breakpoint.h (make_breakpoint_permanent): Remove declaration.
2232
bc460514
PP
22332015-06-17 Patrick Palka <patrick@parcs.ath.cx>
2234
2235 PR gdb/16999
2236 * NEWS: Mention new GDBHISTSIZE behavior.
2237 * top.c (init_history): For null or out-of-range GDBHISTSIZE,
2238 set history size to unlimited. Ignore non-numeric GDBHISTSIZE.
2239
b58c513b
PP
22402015-06-17 Patrick Palka <patrick@parcs.ath.cx>
2241
2242 * NEWS: Mention that GDBHISTSIZE is read instead of HISTSIZE.
2243 * top.c (init_history): Read from GDBHISTSIZE instead of
2244 HISTSIZE.
2245 (init_main): Refer to GDBHISTSIZE instead of HISTSIZE.
2246
2093d2d3
PP
22472015-06-17 Patrick Palka <patrick@parcs.ath.cx>
2248
2249 * top.c (gdb_safe_append_history): Do not call
2250 history_truncate_file if the history is not stifled.
2251
fc248485
AA
22522015-06-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
2253
2254 * syscalls/s390-linux.xml: Add syscalls 344 through 354.
2255 * syscalls/s390x-linux.xml: Likewise.
2256
4da680ad
ME
22572015-06-16 Michael Eager <eager@eagercon.com>
2258
2259 * nat/linux-namespaces.c (MSG_CMSG_CLOEXEC): Define if not defined.
2260
0a75489f
PP
22612015-06-16 Patrick Palka <patrick@parcs.ath.cx>
2262
2263 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Call
2264 target_terminal_ours_for_output() before calling
2265 tui_show_frame_info(), and restore the original terminal
2266 settings afterwards.
2267
95855ca8
MS
22682015-06-16 Martin Simmons <martin@lispworks.com> (tiny patch)
2269
2270 * arm-linux-nat.c: Include nat/linux-ptrace.h.
2271
cfc32360
SM
22722015-06-15 Simon Marchi <simon.marchi@ericsson.com>
2273
2274 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Consider addressable
2275 memory unit size.
2276 (mi_cmd_data_write_memory_bytes): Same.
2277
cb6f16cf
SM
22782015-06-15 Simon Marchi <simon.marchi@ericsson.com>
2279
2280 * corefile.c (write_memory): Update doc.
2281 * gdbcore.h (write_memory): Same.
2282
31b7833d
JK
22832015-06-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2284
2285 * linux-tdep.c (enum filterflags): Make it from anonymous enum.
2286 (dump_mapping_p): Use it for parameter filterflags.
2287 (linux_find_memory_regions_full): Use it for variable filterflags.
2288
909c2cda
JK
22892015-06-15 Aleksandar Ristovski <aristovski@qnx.com
2290 Jan Kratochvil <jan.kratochvil@redhat.com>
2291
2292 Merge multiple hex conversions.
2293 * monitor.c: Include rsp-low.h.
2294 (fromhex): Remove definition.
2295
03aef70f
JK
22962015-06-15 Aleksandar Ristovski <aristovski@qnx.com
2297 Jan Kratochvil <jan.kratochvil@redhat.com>
2298
2299 Move utility functions to common/.
2300 * cli/cli-utils.c (skip_spaces, skip_spaces_const, skip_to_space_const):
2301 Move defs to common/common-utils.c.
2302 * cli/cli-utils.h (skip_spaces, skip_spaces_const, skip_to_space)
2303 (skip_to_space_const): Move decls to common/common-utils.h.
2304 * common/common-defs.h: Move include of common-types.h before
2305 common-utils.h.
2306 * common/common-utils.c: Include host-defs.h and ctype.h.
2307 (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int, strtoulst): Move
2308 from utils.c.
2309 (skip_spaces, skip_spaces_const, skip_to_space_const): Move from
2310 cli/cli-utils.c.
2311 * common/common-utils.h (strtoulst): Move decl from utils.h.
2312 (skip_spaces, skip_spaces_const, skip_to_space, skip_to_space_const):
2313 Move from cli/cli-utils.h.
2314 * common/host-defs.h: Include limits.h.
2315 (TARGET_CHAR_BIT, HOST_CHAR_BIT): Moved from defs.h.
2316 (skip_spaces, skip_spaces_const): Move decls from cli/cli-utils.h.
2317 * defs.h (TARGET_CHAR_BIT, HOST_CHAR_BIT): Move to
2318 common/common-utils.h.
2319 * utils.c (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int)
2320 (strtoulst): Move to common/common-utils.c.
2321 * utils.h (strtoulst): Moved decl to common/common-utils.h.
2322
d1168cc1
YQ
23232015-06-15 Yao Qi <yao.qi@linaro.org>
2324
2325 * data-directory/Makefile.in (SYSCALLS_FILES): Add aarch64-linux.xml.
2326
c74f7d1c
JT
23272015-06-10 Jon Turney <jon.turney@dronecode.org.uk>
2328
2329 * build-id.c: Don't include elf-bfd.h.
2330 (build_id_bfd_get): Use bfd_build_id.
2331 (build_id_verify): Ditto.
2332 * build-id.h: Ditto.
2333 (find_separate_debug_file_by_buildid): Ditto.
2334 * python/py-objfile.c: Don't include elf-bfd.h.
2335 (objfpy_get_build_id) Use bfd_build_id.
2336 (objfpy_build_id_matches, objfpy_lookup_objfile_by_build_id): Ditto.
2337 * coffread.c: Include build-id.h.
2338 (coff_symfile_read): Try find_separate_debug_file_by_buildid.
2339
f20c58f5
JT
23402015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
2341
2342 * windows-nat.c (do_windows_fetch_inferior_registers)
2343 (handle_output_debug_string): Replace __COPY_CONTEXT_SIZE
2344 conditional with __CYGWIN__.
2345
51f0e40d
AB
23462015-06-13 Andrew Burgess <andrew.burgess@embecosm.com>
2347
2348 * completer.c: Add arch-utils.h include.
2349 (enum reg_completer_targets): New enum.
2350 (reg_or_group_completer_1): New function containing old
2351 reg_or_group_completer, add and use new parameter to control what
2352 is completed on. Use get_current_arch rather than architecture of
2353 currently selected frame.
2354 (reg_or_group_completer): Call new reg_or_group_completer_1.
2355 (reggroup_completer): Call new reg_or_group_completer_1.
2356 * completer.h (reggroup_completer): Add declaration.
2357 * tui/tui-regs.c: Add 'completer.h' include.
2358 (tui_reg_next_command): Renamed to...
2359 (tui_reg_next): ...this. Adjust parameters and return rather than
2360 display new group.
2361 (tui_reg_prev_command): Renamed to...
2362 (tui_reg_prev): ...this. Adjust parameters and return rather than
2363 display new group.
2364 (tui_reg_float_command): Delete.
2365 (tui_reg_general_command): Delete.
2366 (tui_reg_system_command): Delete.
2367 (tui_reg_command): Rewrite to perform switching of register group.
2368 Add header comment.
2369 (tuireglist): Remove.
2370 (tui_reggroup_completer): New function.
2371 (_initialize_tui_regs): Remove 'tui reg' sub-commands, update
2372 creation of 'tui reg' command.
2373 * NEWS: Add comment about 'tui reg' changes.
2374
d309493c
SM
23752015-06-12 Simon Marchi <simon.marchi@ericsson.com>
2376
2377 * target.c (target_read): Consider addressable unit size when
2378 reading from a memory object.
2379 (read_memory_robust): Same.
2380 (read_whatever_is_readable): Same.
2381 (target_write_with_progress): Consider addressable unit size
2382 when writing to a memory object.
2383 * target.h (target_read): Update documentation.
2384 (target_write): Add documentation.
2385
3374165f
SM
23862015-06-12 Simon Marchi <simon.marchi@ericsson.com>
2387
2388 * arch-utils.h (default_addressable_memory_unit_size): New.
2389 * arch-utils.c (default_addressable_memory_unit_size): New.
2390 * gdbarch.sh (addressable_memory_unit_size): New.
2391 * gdbarch.h: Re-generate.
2392 * gdbarch.c: Re-generate.
2393
279a6fed
SM
23942015-06-12 Simon Marchi <simon.marchi@ericsson.com>
2395
2396 * target.c (target_read): Rename variables and use
2397 TARGET_XFER_E_IO.
2398 (target_read_with_progress): Same.
2399 (read_memory_robust): Constify parameters and rename
2400 variables.
2401 (read_whatever_is_readable): Constify parameters,
2402 rename variables, adjust formatting.
2403 * target.h (read_memory_robust): Constify parameters.
2404
1e5338b6 24052015-06-12 Ulrich Weigand <uweigand@de.ibm.com>
a1da2672
UW
2406
2407 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value_base): Handle short
2408 synthetic (non-AltiVec) vector types.
2409 (ppc64_sysv_abi_return_value): Likewise.
2410
98aa42ee
AT
24112015-06-12 Antoine Tremblay <antoine.tremblay@ericsson.com>
2412
2413 PR breakpoints/16465
2414 * breakpoint.c (create_breakpoint): Save extra_string for
2415 pending breakpoints.
2416
966f0aef
WT
24172015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
2418
2419 * i386-tdep.c (i386_mpx_get_bt_entry): Add a cast for mpx_bd_mask
2420 and bt_mask to CORE_ADDR.
2421
6449ed0d
GB
24222015-06-11 Gary Benson <gbenson@redhat.com>
2423
2424 * nat/linux-namespaces.c (mnsh_send_message): Use pulongest.
2425 (mnsh_recv_message): Likewise.
2426
34f8ac9f
WT
24272015-06-11 Walfred Tedeschi <walfred.tedeschi@intel.com>
2428
2429 * i386-tdep.c (i386_mpx_print_bounds): use of LONGEST instead of
2430 long long int and plongest instead of %ll.
2431
198c808c
GB
24322015-06-11 Gary Benson <gbenson@redhat.com>
2433
2434 * nat/linux-namespaces.c (gdb_wait.h): New include.
2435 (sys/wait.h): Do not include.
2436
e815d2d2
SM
24372015-06-10 Simon Marchi <simon.marchi@ericsson.com>
2438
2439 * dwarf2read.c (dwarf_record_line): Call dwarf_record_line if
2440 end_sequence is true.
2441
8847cac2
JK
24422015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2443
2444 Code cleanup.
2445 * solib-target.c (library_list_start_list): Use explicit NULL
2446 comparison.
2447
24c05f46
JK
24482015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2449
2450 * solib-target.c (library_list_start_list): Do not dereference
2451 variable version in its initialization. Make the VERSION check handle
2452 NULL.
2453 (library_list_attributes): Make "version" GDB_XML_AF_OPTIONAL.
2454
51aad7cc
GB
24552015-06-10 Gary Benson <gbenson@redhat.com>
2456
2457 * NEWS: Announce support for direct access of executable and
2458 shared library files when attaching to inferiors in containers
2459 on GNU/Linux systems.
2460
15a201c8
GB
24612015-06-10 Gary Benson <gbenson@redhat.com>
2462
2463 * remote.c (struct remote_state) <fs_pid>: New field.
2464 (new_remote_state): Initialize the above.
2465 (PACKET_vFile_setfs): New enum value.
2466 (remote_hostio_set_filesystem): New function.
2467 (remote_hostio_open): Call the above.
2468 (remote_hostio_unlink): Likewise.
2469 (remote_hostio_readlink): Likewise.
2470 (_initialize_remote): Register new "set/show remote
2471 hostio-setfs-packet" command.
2472 * NEWS: Announce new vFile:setfs packet.
2473
7a6a1731
GB
24742015-06-10 Gary Benson <gbenson@redhat.com>
2475
2476 * linux-nat.c (nat/linux-namespaces.h): New include.
2477 (fileio.h): Likewise.
2478 (linux_nat_filesystem_is_local): New function.
2479 (linux_nat_fileio_pid_of): Likewise.
2480 (linux_nat_fileio_open): Likewise.
2481 (linux_nat_fileio_readlink): Likewise.
2482 (linux_nat_fileio_unlink): Likewise.
2483 (linux_nat_add_target): Initialize to_filesystem_is_local,
2484 to_fileio_open, to_fileio_readlink and to_fileio_unlink.
2485 (_initialize_linux_nat): New "set/show debug linux-namespaces"
2486 commands.
2487 * NEWS: Mention new "set/show debug linux-namespaces" commands.
2488
07c138c8
GB
24892015-06-10 Gary Benson <gbenson@redhat.com>
2490
2491 * target.h (struct inferior): New forward declaration.
2492 (struct target_ops) <to_filesystem_is_local>: Update comment.
2493 (struct target_ops) <to_fileio_open>: New argument inf.
2494 Update comment. All implementations updated.
2495 (struct target_ops) <to_fileio_unlink>: Likewise.
2496 (struct target_ops) <to_fileio_readlink>: Likewise.
2497 (target_filesystem_is_local): Update comment.
2498 (target_fileio_open): New argument inf. Update comment.
2499 (target_fileio_unlink): Likewise.
2500 (target_fileio_readlink): Likewise.
2501 (target_fileio_read_alloc): Likewise.
2502 (target_fileio_read_stralloc): Likewise.
2503 * target.c (target_fileio_open): New argument inf.
2504 Pass inf to implementation. Update debug printing.
2505 (target_fileio_unlink): Likewise.
2506 (target_fileio_readlink): Likewise.
2507 (target_fileio_read_alloc_1): New argument inf. Pass inf
2508 to target_fileio_open.
2509 (target_fileio_read_alloc): New argument inf. Pass inf to
2510 target_fileio_read_alloc_1.
2511 (target_fileio_read_stralloc): Likewise.
2512 * gdb_bfd.c (inferior.h): New include.
2513 (gdb_bfd_iovec_fileio_open): Replace unused "open_closure"
2514 argument with new argument "inferior". Pass inferior to
2515 target_fileio_open.
2516 (gdb_bfd_open): Supply inferior argument to
2517 gdb_bfd_iovec_fileio_open.
2518 * linux-tdep.c (linux_info_proc): Supply inf argument to
2519 relevant target_fileio calls.
2520 (linux_find_memory_regions_full): Likewise.
2521 (linux_fill_prpsinfo): Likewise.
2522 * remote.c (remote_filesystem_is_local): Supply inf
2523 argument to remote_hostio_open.
2524 (remote_file_put): Likewise.
2525 (remote_file_get): Likewise.
2526 (remote_file_delete): Supply inf argument to
2527 remote_hostio_unlink.
2528
12e2a5fd
GB
25292015-06-10 Gary Benson <gbenson@redhat.com>
2530
2531 * inf-child.c (inf_child_fileio_open): Replace comment.
2532 (inf_child_fileio_pwrite): Likewise.
2533 (inf_child_fileio_pread): Likewise.
2534 (inf_child_fileio_fstat): Insert blank line before comment.
2535 (inf_child_fileio_close): Replace comment.
2536 (inf_child_fileio_unlink): Likewise.
2537 (inf_child_fileio_readlink): Likewise.
2538 * remote.c (remote_hostio_open): Likewise.
2539 (remote_hostio_pread): Likewise.
2540 (remote_hostio_pwrite): Likewise.
2541 (remote_hostio_close): Likewise.
2542 (remote_hostio_unlink): Likewise.
2543 (remote_hostio_readlink): Likewise.
2544 (remote_hostio_fstat): Likewise.
2545 (remote_filesystem_is_local): Likewise.
2546 * target.c (target_fileio_open): Likewise.
2547 (target_fileio_pwrite): Likewise.
2548 (target_fileio_pread): Likewise.
2549 (target_fileio_fstat): Insert blank line before comment.
2550 (target_fileio_close): Replace comment.
2551 (target_fileio_unlink): Likewise.
2552 (target_fileio_readlink): Likewise.
2553 (target_fileio_read_alloc): Likewise.
2554 (target_fileio_read_stralloc): Likewise.
2555
9bc3a976
GB
25562015-06-10 Gary Benson <gbenson@redhat.com>
2557
2558 * linux-thread-db.c (nat/linux-namespaces.h): New include.
2559 (check_pid_namespace_match): Use linux_ns_same rather than
2560 linux_proc_pid_get_ns to spot PID namespace mismatches.
2561 * nat/linux-procfs.h (linux_proc_pid_get_ns): Remove.
2562 * nat/linux-procfs.c (linux_proc_pid_get_ns): Likewise.
2563
4b8b5e72
GB
25642015-06-10 Gary Benson <gbenson@redhat.com>
2565
2566 * configure.ac (AC_CHECK_FUNCS): Add setns.
2567 * config.in: Regenerate.
2568 * configure: Likewise.
2569 * nat/linux-namespaces.h: New file.
2570 * nat/linux-namespaces.c: Likewise.
2571 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-namespaces.h.
2572 (linux-namespaces.o): New rule.
2573 * config/aarch64/linux.mh (NATDEPFILES): Add linux-namespaces.o.
2574 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
2575 * config/arm/linux.mh (NATDEPFILES): Likewise.
2576 * config/i386/linux.mh (NATDEPFILES): Likewise.
2577 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2578 * config/ia64/linux.mh (NATDEPFILES): Likewise.
2579 * config/m32r/linux.mh (NATDEPFILES): Likewise.
2580 * config/m68k/linux.mh (NATDEPFILES): Likewise.
2581 * config/mips/linux.mh (NATDEPFILES): Likewise.
2582 * config/pa/linux.mh (NATDEPFILES): Likewise.
2583 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
2584 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
2585 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
2586 * config/s390/linux.mh (NATDEPFILES): Likewise.
2587 * config/sparc/linux.mh (NATDEPFILES): Likewise.
2588 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
2589 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
2590 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
2591
ca095836
GB
25922015-06-10 Gary Benson <gbenson@redhat.com>
2593
2594 * utils.h (make_cleanup_close): Moved to common/filestuff.h.
2595 * utils.c (do_close_cleanup): Moved to common/filestuff.c.
2596 (make_cleanup_close): Likewise.
2597 * common/filestuff.h (make_cleanup_close): Moved from utils.h.
2598 * common/filestuff.c (do_close_cleanup): Moved from utils.c.
2599 (make_cleanup_close): Likewise.
2600
5d9c55d3
JT
26012015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
2602
2603 * windows-nat.c (thread_rec): Also ignore ERROR_INVALID_HANDLE
2604 from SuspendThread().
2605
040ea00b
JT
26062015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
2607
2608 * windows-nat.c (handle_output_debug_string): Trim trailing '\n'
2609 from OutputDebugString.
2610
7d73c23c
WT
26112015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
2612 Mircea Gherzan <mircea.gherzan@intel.com>
2613
2614 * i386-tdep.c (MPX_BASE_MASK, MPX_BD_MASK, MPX_BT_MASK, MPX_BD_MASK_32,
2615 MPX_BT_MASK_32): New macros.
2616 (i386_mpx_set_bounds): New function that implements
2617 the command "set-mpx-bound".
2618 (i386_mpx_enabled): Helper function to test MPX availability.
2619 (i386_mpx_bd_base): Helper function to calculate the base directory
2620 address.
2621 (i386_mpx_get_bt_entry): Helper function to access a bound
2622 table entry.
2623 (i386_mpx_print_bounds): Effectively display bound information.
2624 (_initialize_i386_tdep): Add new commands to commands "set mpx" and
2625 "show mpx".
2626 (_initialize_i386_tdep):
2627 Add "bound" to the commands "show mpx" and "set mpx" commands.
2628 (mpx_set_cmdlist and mpx_show_cmdlist): List for the new prefixed "set mpx"
2629 and "show mpx" commands.
2630 * NEWS: List new commands for MPX support.
2631
3ac2e371
GB
26322015-06-09 Gary Benson <gbenson@redhat.com>
2633
2634 * common/fileio.h (fileio_to_host_mode): New declaration.
2635 * common/fileio.c (fileio_to_host_mode): New Function.
2636 * inf-child.c (inf_child_fileio_open): Process mode argument
2637 with fileio_to_host_mode.
2638
ecef18c5
GB
26392015-06-09 Gary Benson <gbenson@redhat.com>
2640
2641 * common/fileio.c (fileio_mode_pack): Fix preprocessor
2642 conditional.
2643
e3dd7556
GB
26442015-06-05 Gary Benson <gbenson@redhat.com>
2645
2646 * gdb_bfd.c (gdb_bfd_open): Move vgdb special case to...
2647 * remote.c (remote_filesystem_is_local): ...here.
2648
5b74bf7d
YQ
26492015-06-04 Yao Qi <yao.qi@linaro.org>
2650
2651 * gdbarch.c: Regenerate it.
2652
7f361056
JK
26532015-06-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2654
2655 * arch-utils.c (default_infcall_munmap): New.
2656 * arch-utils.h (default_infcall_munmap): New declaration.
2657 * compile/compile-object-load.c (struct munmap_list, munmap_list_add)
2658 (munmap_list_free, munmap_listp_free_cleanup): New.
2659 (struct setup_sections_data): Add field munmap_list_headp.
2660 (setup_sections): Call munmap_list_add.
2661 (compile_object_load): New variable munmap_list_head, initialize
2662 setup_sections_data.munmap_list_headp, return munmap_list_head.
2663 * compile/compile-object-load.h (struct munmap_list): New declaration.
2664 (struct compile_module): Add field munmap_list_head.
2665 (munmap_list_free): New declaration.
2666 * compile/compile-object-run.c (struct do_module_cleanup): Add field
2667 munmap_list_head.
2668 (do_module_cleanup): Call munmap_list_free.
2669 (compile_object_run): Pass munmap_list_head to do_module_cleanup.
2670 * gdbarch.c: Regenerate.
2671 * gdbarch.h: Regenerate.
2672 * gdbarch.sh (infcall_munmap): New.
2673 * linux-tdep.c (linux_infcall_munmap): New.
2674 (linux_init_abi): Install it.
2675
3b462ec2
SM
26762015-06-02 Simon Marchi <simon.marchi@ericsson.com>
2677
2678 PR gdb/15564
2679 * inferior.c (detach_inferior): Call exit_inferior_1 with silent = 0.
2680
8d683210
YQ
26812015-06-02 Yao Qi <yao.qi@linaro.org>
2682
2683 * i386-linux-nat.c: Include linux-nat.h.
2684
e0619de6
JK
26852015-06-01 Andreas Schwab <schwab@linux-m68k.org>
2686 Jan Kratochvil <jan.kratochvil@redhat.com>
2687
2688 PR symtab/18392
2689 * dwarf2-frame-tailcall.c (pretended_chain_levels): Correct
2690 assertion.
2691 * dwarf2loc.c (chain_candidate): Likewise.
2692
bd16da51
YQ
26932015-06-01 Yao Qi <yao.qi@linaro.org>
2694
2695 * arm-linux-nat.c (fetch_vfp_regs): Use PTRACE_GETREGSET.
2696 (store_vfp_regs): Use PTRACE_SETREGSET.
2697
df9d7ec9
YQ
26982015-06-01 Yao Qi <yao.qi@linaro.org>
2699
2700 * arm-linux-nat.c (fetch_fpregister): Use PTRACE_GETREGSET.
2701 (fetch_fpregs): Likewise.
2702 * arm-linux-nat.c (store_fpregister): Use PTRACE_SETREGSET.
2703 (store_fpregs): Likewise.
2704
10766686
YQ
27052015-06-01 Yao Qi <yao.qi@linaro.org>
2706
2707 * arm-linux-nat.c (fetch_register): Use PTRACE_GETREGSET.
2708 (fetch_regs): Likewise.
2709 (store_regs): Use PTRACE_SETREGSET.
2710 (store_register): Likewise.
2711
7efe48d1
YQ
27122015-06-01 Yao Qi <yao.qi@linaro.org>
2713
2714 * arm-linux-nat.c (arm_linux_read_description): Check whether
2715 kernel supports PTRACE_GETREGSET.
2716
433bbbf8
YQ
27172015-06-01 Yao Qi <yao.qi@linaro.org>
2718
2719 * x86-linux-nat.c (have_ptrace_getregset): Move it to ...
2720 * linux-nat.c: ... here.
2721 * x86-linux-nat.h (have_ptrace_getregset): Move the declaration
2722 to ...
2723 * linux-nat.h: ... here.
2724
ca9b78ce
YQ
27252015-06-01 Yao Qi <yao.qi@linaro.org>
2726
2727 * amd64-linux-nat.c: Include "nat/linux-ptrace.h".
2728 * i386-linux-nat.c: Likewise.
2729 * nat/linux-ptrace.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Define.
2730 * s390-linux-nat.c: Include "nat/linux-ptrace.h".
2731 (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
2732 * x86-linux-nat.c: Include "nat/linux-ptrace.h".
2733 * x86-linux-nat.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
2734
99cee7b7
EZ
27352015-05-30 Eli Zaretskii <eliz@gnu.org>
2736
2737 * go32-nat.c (go32_xfer_memory): Fix the return value to be
2738 compatible to what read_child and write_child return. This
2739 unbreaks that DJGPP build of GDB which was broken since v7.7.
2740
2147f5bd
MG
27412015-05-29 Martin Galvan <martin.galvan@tallertechnologies.com>
2742
2743 * MAINTAINERS (Write After Approval): Add Martin Galvan.
2744
c8f6c93c
RM
27452015-05-29 Roland McGrath <mcgrathr@google.com>
2746
2747 PR gdb/18464
2748 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Use warning
2749 rather than internal_error for an unrecognized value.
2750
8c6a948d
MF
27512015-05-29 Max Filippov <jcmvbkbc@gmail.com>
2752
2753 * xtensa-tdep.c (xtensa_pseudo_register_read)
2754 (xtensa_pseudo_register_write): Don't alias last pseudo register
2755 to a1.
2756
8dd06f7a
DB
27572015-05-28 Don Breazeal <donb@codesourcery.com>
2758
2759 * infrun.c (follow_fork_inferior): Ensure the use of
2760 process-style ptids (pid,0,0) in verbose/debug "Detaching"
2761 messages.
2762
a051152b
DE
27632015-05-28 Doug Evans <dje@google.com>
2764
2765 * dwarf2read.c (record_line_ftype): Remove, duplicate.
2766
a56cc1ce
YQ
27672015-05-28 Yao Qi <yao.qi@linaro.org>
2768
2769 * arm-linux-nat.c (arm_linux_has_wmmx_registers): Remove.
2770 (arm_linux_fetch_inferior_registers): Use
2771 tdep->have_wmmx_registers instead of arm_linux_has_wmmx_registers.
2772 (arm_linux_store_inferior_registers): Likewise.
2773 (arm_linux_read_description): Don't set
2774 arm_linux_has_wmmx_registers.
2775 * arm-tdep.c (arm_gdbarch_init): Set
2776 tdep->have_wmmx_registers according target descriptions.
2777 * arm-tdep.h (struct gdbarch_tdep) <have_wmmx_registers>: New
2778 field.
2779
330c6ca9
YQ
27802015-05-28 Yao Qi <yao.qi@linaro.org>
2781
2782 * arm-linux-nat.c (arm_linux_vfp_register_count): Remove.
2783 (fetch_vfp_regs): Use vfp_register_count from gdbarch_tdep
2784 instead of arm_linux_vfp_register_count.
2785 (store_vfp_regs): Likewise.
2786 (arm_linux_fetch_inferior_registers): Likewise.
2787 (arm_linux_store_inferior_registers): Likewise.
2788 (arm_linux_read_description): Don't set
2789 arm_linux_vfp_register_count.
2790 * arm-linux-tdep.c (arm_linux_iterate_over_regset_sections):
2791 Adjust.
2792 * arm-tdep.c (arm_gdbarch_init): Add assert on
2793 vfp_register_count.
2794 * arm-tdep.h (struct gdbarch_tdep) <have_vfp_registers>: Rename
2795 field to vfp_register_count. All users updated.
2796
d403db27
KH
27972015-05-28 Kyle Huey <me@kylehuey.com> (tiny patch)
2798
2799 * gdb/arm-tdep.c (arm_gdbarch_init): Perform arm_abi detection on
2800 ELFOSABI_GNU binaries.
2801
d9b3de22
DE
28022015-05-27 Doug Evans <dje@google.com>
2803
2804 * dwarf2read.c (lnp_state_machine): New typedef.
2805 (lnp_reader_state): New typedef.
2806 (dwarf_record_line_1): Renamed from dwarf_record_line.
2807 All callers updated.
2808 (dwarf_record_line): New function.
2809 (init_lnp_state_machine): New function.
2810 (check_line_address): Replace p_record_line parameter with state.
2811 All callers updated.
2812 (dwarf_decode_lines_1): Call dwarf_record_line, init_lnp_state_machine.
2813 Update to record state in lnp_state_machine.
2814
924c2928
DE
28152015-05-27 Doug Evans <dje@google.com>
2816
2817 * dwarf2read.c (record_line_ftype): New typedef.
2818 (check_line_address): New function.
2819 (dwarf_decode_lines_1): Call it.
2820
27e0867f
DE
28212015-05-27 Doug Evans <dje@google.com>
2822
2823 * NEWS: Mention "set debug dwarf-line".
2824 * dwarf2read.c (dwarf_line_debug): New static global.
2825 (add_include_dir): Add debug dwarf-line support.
2826 (add_file_name, dwarf_record_line, dwarf_finish_line): Ditto.
2827 (_initialize_dwarf2_read): New parameter "debug dwarf-line".
2828
4dcabcc2
DE
28292015-05-27 Doug Evans <dje@google.com>
2830
2831 * cp-namespace.c (cp_lookup_nested_symbol): New arg "domain".
2832 All callers updated.
2833 (cp_lookup_nested_symbol_1, find_symbol_in_baseclass): Ditto.
2834 * cp-support.h (cp_lookup_nested_symbol): Update.
2835
b2e2f908
DE
28362015-05-27 Doug Evans <dje@google.com>
2837
2838 PR symtab/18258
2839 * block.c (block_find_symbol): New function.
2840 (block_find_non_opaque_type): Ditto.
2841 (block_find_non_opaque_type_preferred): Ditto.
2842 * block.h (block_symbol_matcher_ftype): New typedef.
2843 (block_find_symbol): Declare.
2844 (block_find_non_opaque_type): Ditto.
2845 (block_find_non_opaque_type_preferred): Ditto.
2846 * dwarf2read.c (dw2_lookup_symbol): Call block_find_symbol.
2847 * psymtab.c (psym_lookup_symbol): Ditto.
2848 * symtab.c (basic_lookup_transparent_type_1): New function.
2849 (basic_lookup_transparent_type): Call it.
2850
f62fce35
YQ
28512015-05-27 Yao Qi <yao.qi@linaro.org>
2852
2853 * aarch64-tdep.c (aarch64_record_data_proc_simd_fp): Return
2854 AARCH64_RECORD_UNKNOWN for unknown instruction encoding.
2855
5d98d3cd
YQ
28562015-05-27 Yao Qi <yao.qi@linaro.org>
2857
2858 * aarch64-tdep.c (aarch64_record_branch_except_sys): Split lines
2859 before operator &&.
2860 (aarch64_record_load_store): Likewise.
2861
82c7be31
DE
28622015-05-26 Doug Evans <dje@google.com>
2863
2864 PR c++/18141, c++/18417.
2865 * cp-support.c (cp_lookup_rtti_type): Handle the case of NAME being
2866 a typedef.
2867
b4f54984
DE
28682015-05-26 Doug Evans <dje@google.com>
2869
2870 * NEWS: Add entries for command renamings.
2871 * dwarf2read.c (dwarf_read_debug): Renamed from dwarf2_read_debug.
2872 All uses updated.
2873 (dwarf_die_debug): Renamed from dwarf2_die_debug. All uses updated.
2874 (dwarf_max_cache_age): Renamed from dwarf2_max_cache_age.
2875 All uses updated.
2876 (show_dwarf_max_cache_age): Renamed from show_dwarf2_max_cache_age.
2877 All callers updated. Fix spelling of DWARF in help text.
2878 (set_dwarf_cmdlist): Renamed from set_dwarf2_cmdlist.
2879 All uses updated.
2880 (show_dwarf_cmdlist): Renamed from show_dwarf2_cmdlist.
2881 All uses updated.
2882 (set_dwarf_cmd): Renamed from set_dwarf2_cmd. All callers updated.
2883 (show_dwarf_cmd): Renamed from show_dwarf2_cmd. All callers updated.
2884 (dwarf_always_disassemble): Renamed from dwarf_always_disassemble.
2885 All uses updated.
2886 (show_dwarf_always_disassemble): Renamed from
2887 show_dwarf2_always_disassemble. All callers updated.
2888 (_initialize_dwarf2_read): Rename "set/show dwarf2" prefix to
2889 "set/show dwarf". Rename "set/show dwarf2 max-cache-age" to
2890 "set/show dwarf max-cache-age". Rename
2891 "set/show dwarf2 always-disassemble" to
2892 "set/show dwarf always-disassemble". Rename
2893 "set/show debug dwarf2-read" to "set/show debug dwarf-read". Rename
2894 "set/show debug dwarf2-die" to "set/show debug dwarf-die".
2895
4ea6efe9
DE
28962015-05-26 Doug Evans <dje@google.com>
2897
2898 PR python/18438
2899 * python/py-lazy-string.c (stpy_convert_to_value): Use
2900 gdbpy_gdb_memory_error not PyExc_MemoryError.
2901 (gdbpy_create_lazy_string_object): Ditto.
2902
b93fd21d
AB
29032015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
2904
2905 * tui/tui-regs.c (tui_reg_next_command): Compare against NULL.
2906
55b40027
AB
29072015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
2908
2909 * tui/tui-regs.c (tui_reg_prev_command): New function.
2910 (_initialize_tui_regs): Add 'prev' command for 'tui reg'.
2911 * reggroups.c (reggroup_prev): New function.
2912 * reggroups.h (reggroup_prev): Add declaration. Update comment.
2913
99afc88b
OJ
29142015-05-26 Omair Javaid <omair.javaid@linaro.org>
2915 Yao Qi <yao.qi@linaro.org>
2916
2917 * aarch64-linux-tdep.c: Include linux-record.h and
2918 record-full.h.
2919 (struct linux_record_tdep aarch64_linux_record_tdep): Declare.
2920 (aarch64_syscall): New enum.
2921 (aarch64_canonicalize_syscall): New function.
2922 (aarch64_all_but_pc_registers_record): New function.
2923 (aarch64_linux_syscall_record): New function.
2924 (aarch64_linux_init_abi): Install AArch64 process record
2925 handler. Update to handle syscall recording.
2926 * aarch64-tdep.c: Include record.h and record-full.h.
2927 (submask, bit, bits, REG_ALLOC, MEM_ALLOC): New macros.
2928 (struct aarch64_mem_r): Define.
2929 (aarch64_record_result): New enum.
2930 (struct insn_decode_record): Define.
2931 (insn_decode_record): New typedef.
2932 (aarch64_record_data_proc_reg): New function.
2933 (aarch64_record_data_proc_imm): New function.
2934 (aarch64_record_branch_except_sys): New function.
2935 (aarch64_record_load_store): New function.
2936 (aarch64_record_data_proc_simd_fp): New function.
2937 (aarch64_record_asimd_load_store): New function.
2938 (aarch64_record_decode_insn_handler): New function.
2939 (deallocate_reg_mem): New function.
2940 (aarch64_process_record): New function.
2941 * aarch64-tdep.h (struct gdbarch_tdep) <aarch64_syscall_record>:
2942 New field.
2943 (aarch64_process_record): New extern declaration.
2944 * configure.tgt: Add linux-record.o to gdb_target_obs.
2945 * linux-record.h (struct linux_record_tdep) <arg7>: New field.
2946
c16a3f52
OJ
29472015-05-26 Omair Javaid <omair.javaid@linaro.org>
2948
2949 * NEWS: Add a note on process record-replay support on aarch64*-linux*
2950 targets.
2951
c9cf6e20
MG
29522015-05-26 Martin Galvan <martin.galvan@tallertechnologies.com>
2953
2954 * amd64-tdep.c: Replace in_function_epilogue_p with
2955 stack_frame_destroyed_p throughout.
2956 * arch-utils.c: Ditto.
2957 * arch-utils.h: Ditto.
2958 * arm-tdep.c: Ditto.
2959 * breakpoint.c: Ditto.
2960 * gdbarch.sh: Ditto.
2961 * hppa-tdep.c: Ditto.
2962 * i386-tdep.c: Ditto.
2963 * mips-tdep.c: Ditto.
2964 * nios2-tdep.c: Ditto.
2965 * rs6000-tdep.c: Ditto.
2966 * s390-linux-tdep.c: Ditto.
2967 * score-tdep.c: Ditto.
2968 * sh-tdep.c: Ditto.
2969 * sparc-tdep.c: Ditto.
2970 * sparc-tdep.h: Ditto.
2971 * sparc64-tdep.c: Ditto.
2972 * spu-tdep.c: Ditto.
2973 * tic6x-tdep.c: Ditto.
2974 * tilegx-tdep.c: Ditto.
2975 * xstormy16-tdep.c: Ditto.
2976 * gdbarch.c, gdbarch.h: Re-generated.
2977
a4ea0946
AB
29782015-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
2979
2980 * NEWS: Mention 'tui enable' and 'tui disable'.
2981 * tui/tui.c (tui_enable_command): New function.
2982 (tui_disable_command): New function.
2983 (_initialize_tui): New function.
2984
b75c69bb
AB
29852015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
2986
2987 * tui/tui-regs.c (tui_reg_next_command): Use NULL not 0.
2988
c1b009ee
AB
29892015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
2990
2991 * tui/tui-layout.c (tui_set_layout_for_display_command): Ensure
2992 buf_ptr is freed.
2993
880d1e40
AB
29942015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
2995
2996 * tui/tui-layout.c (tui_layout_command): Move call to tui_enable
2997 into ...
2998 (tui_set_layout_for_display_command): ...here, before calling
2999 tui_set_layout. Only set the layout if gdb has not already
3000 entered the TUI_FAILURE state.
3001
a0145030
AB
30022015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
3003
3004 * tui/tui-layout.c (layout_completer): New function.
3005 (_initialize_tui_layout): Set completer on layout command.
3006
7bd0be3a
AB
30072015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
3008
3009 * tui/tui-layout.c (tui_set_layout): Remove
3010 tui_register_display_type parameter. Remove all checking of this
3011 parameter, and reindent function. Update header comment.
3012 (tui_set_layout_for_display_command): Rename to...
3013 (tui_set_layout_by_name): ...this, and don't check for different
3014 register class types, don't pass a tui_register_display_type to
3015 tui_set_layout. Update header comment.
3016 (layout_names): Remove register set specific names.
3017 * tui/tui-layout.h (tui_set_layout): Remove
3018 tui_register_display_type parameter.
3019 * tui/tui.c (tui_rl_change_windows): Don't pass a
3020 tui_register_display_type to tui_set_layout.
3021 (tui_rl_delete_other_windows): Likewise.
3022 (tui_enable): Likewise.
3023 * tui/tui-data.h (TUI_FLOAT_REGS_NAME): Remove.
3024 (TUI_FLOAT_REGS_NAME_LOWER): Remove.
3025 (TUI_GENERAL_REGS_NAME): Remove.
3026 (TUI_GENERAL_REGS_NAME_LOWER): Remove.
3027 (TUI_SPECIAL_REGS_NAME): Remove.
3028 (TUI_SPECIAL_REGS_NAME_LOWER): Remove.
3029 (TUI_GENERAL_SPECIAL_REGS_NAME): Remove.
3030 (TUI_GENERAL_SPECIAL_REGS_NAME_LOWER): Remove.
3031 (enum tui_register_display_type): Remove.
3032 (struct tui_layout_def): Remove regs_display_type and
3033 float_regs_display_type fields.
3034 (struct tui_data_info): Remove regs_display_type field.
3035 (tui_layout_command): Use new name for
3036 tui_set_layout_for_display_command.
3037 * tui/tui-data.c (layout_def): Don't initialise removed fields.
3038 (tui_clear_win_detail): Don't initialise removed fields of
3039 win_info.
3040 * tui/tui-regs.c (tui_show_registers): Use new name for
3041 tui_set_layout_for_display_command.
3042 * tui/tui.h (tui_set_layout_for_display_command): Rename
3043 declaration to...
3044 (tui_set_layout_by_name): ...this.
3045 * printcmd.c (display_command): Remove tui related layout call,
3046 and reindent.
3047
0b6e5e10
JB
30482015-05-20 Joel Brobecker <brobecker@adacore.com>
3049
3050 * infrun.c (handle_inferior_event_1): Renames handle_inferior_event.
3051 (handle_inferior_event): New function.
3052
1da0522e
JB
30532015-05-20 Joel Brobecker <brobecker@adacore.com>
3054
3055 * ada-lang.c (to_fixed_array_type): Rename local variable
3056 typename into type_name.
3057
5fe75eec
JK
30582015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3059
3060 Fix ASAN crash for gdb.compile/compile.exp.
3061 * infcall.c (call_function_by_hand_dummy): Use xstrdup for NAME.
3062
a4063588
JK
30632015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3064
3065 * compile/compile-c-symbols.c (convert_symbol_sym, gcc_convert_symbol)
3066 (gcc_symbol_address): Change gdb_stdout to gdb_stdlog.
3067 * compile/compile-object-load.c (setup_sections, compile_object_load):
3068 Likewise.
3069 * compile/compile.c (compile_to_object): Likewise.
3070
37442ce1
DE
30712015-05-16 Doug Evans <xdje42@gmail.com>
3072
3073 * NEWS: Mention support for unbuffered Guile memory ports.
3074 * scm-ports.c (ioscm_memory_port): Update comments on end, size.
3075 (ioscm_lseek_address): Improve overflow calculation.
3076 (gdbscm_memory_port_fill_input): Add assert.
3077 (gdbscm_memory_port_write): Handle unbuffered ports.
3078 Handle large writes identical to Guile's fport_write.
3079 (gdbscm_memory_port_seek): Fix seeking past end check.
3080 (gdbscm_memory_port_close): Handle closing unbuffered port.
3081 (ioscm_parse_mode_bits): Recognize "0" for unbuffered ports.
3082 (ioscm_init_memory_port): Handle unbuffered ports.
3083 (ioscm_reinit_memory_port): Ditto.
3084 (ioscm_init_memory_port): Update size calculation.
3085 (gdbscm_open_memory): Support zero sized ports.
3086
d976bace
JK
30872015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
3088
3089 * compile/compile-object-load.c (get_out_value_type): Fix uninitialized
3090 variable compiler warnings.
3091
4d18dfad
JK
30922015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
3093
3094 * compile/compile-object-load.c (get_out_value_type): Fix returned type.
3095
36de76f9
JK
30962015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
3097 Phil Muldoon <pmuldoon@redhat.com>
3098
3099 * NEWS (Changes since GDB 7.9): Add compile print.
3100 * compile/compile-c-support.c (add_code_header, add_code_footer)
3101 (c_compute_program): Add COMPILE_I_PRINT_ADDRESS_SCOPE and
3102 COMPILE_I_PRINT_VALUE_SCOPE.
3103 * compile/compile-internal.h (COMPILE_I_PRINT_OUT_ARG_TYPE)
3104 (COMPILE_I_PRINT_OUT_ARG, COMPILE_I_EXPR_VAL, COMPILE_I_EXPR_PTR_TYPE):
3105 New.
3106 * compile/compile-object-load.c: Include block.h.
3107 (get_out_value_type): New function.
3108 (compile_object_load): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
3109 COMPILE_I_PRINT_VALUE_SCOPE. Set compile_module's OUT_VALUE_ADDR and
3110 OUT_VALUE_TYPE.
3111 * compile/compile-object-load.h (struct compile_module): Add fields
3112 out_value_addr and out_value_type.
3113 * compile/compile-object-run.c: Include valprint.h and compile.h.
3114 (struct do_module_cleanup): Add fields out_value_addr and
3115 out_value_type.
3116 (do_module_cleanup): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
3117 COMPILE_I_PRINT_VALUE_SCOPE.
3118 (compile_object_run): Propagate out_value_addr and out_value_type.
3119 Pass OUT_VALUE_ADDR.
3120 * compile/compile.c: Include valprint.h.
3121 (compile_print_value, compile_print_command): New functions.
3122 (eval_compile_command): Handle failed COMPILE_I_PRINT_ADDRESS_SCOPE.
3123 (_initialize_compile): Update compile code help text. Install
3124 compile_print_command.
3125 * compile/compile.h (compile_print_value): New prototype.
3126 * defs.h (enum compile_i_scope_types): Add
3127 COMPILE_I_PRINT_ADDRESS_SCOPE and COMPILE_I_PRINT_VALUE_SCOPE.
3128
83d3415e
JK
31292015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
3130
3131 * compile/compile-object-load.c (get_regs_type): Add parameter func_sym.
3132 Rely on its parameter count.
3133 (compile_object_load): Replace lookup_minimal_symbol_text by
3134 lookup_global_symbol_from_objfile. Verify FUNC_SYM. Set it in the
3135 return value.
3136 * compile/compile-object-load.h (struct compile_module): Replace
3137 func_addr by func_sym.
3138 * compile/compile-object-run.c: Include block.h.
3139 (compile_object_run): Reset module variable after it is freed. Use
3140 FUNC_SYM instead of FUNC_ADDR. Rely on it.
3141
3a9558c4
JK
31422015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
3143
3144 * compile/compile-c-support.c (print_one_macro): Use #ifndef.
3145 (generate_register_struct): Use __gdb_uintptr for TYPE_CODE_PTR.
3146 (c_compute_program): Call generate_register_struct after typedefs.
3147 * compile/compile-loc2c.c (push, pushf_register_address)
3148 (pushf_register): Cast to GCC_UINTPTR.
3149 (do_compile_dwarf_expr_to_c): Use unused attribute. Add space after
3150 type. Use GCC_UINTPTR instead of void *. Remove excessive cast.
3151 (compile_dwarf_expr_to_c): Use GCC_UINTPTR instead of void *.
3152 * compile/compile.c (_initialize_compile): Enable warnings for
3153 COMPILE_ARGS.
3154
5c65b58a
JK
31552015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
3156
3157 * cli/cli-script.c (execute_control_command): Update
3158 eval_compile_command caller.
3159 * compile/compile-object-load.c (compile_object_load): Add parameters
3160 scope and scope_data. Set them.
3161 * compile/compile-object-load.h (struct compile_module): Add fields
3162 scope and scope_data.
3163 (compile_object_load): Add parameters scope and scope_data.
3164 * compile/compile-object-run.c (struct do_module_cleanup): Add fields
3165 scope and scope_data.
3166 (compile_object_run): Propagate the fields scope and scope_data.
3167 * compile/compile.c (compile_file_command, compile_code_command):
3168 Update eval_compile_command callers.
3169 (eval_compile_command): Add parameter scope_data. Pass it plus scope.
3170 * compile/compile.h (eval_compile_command): Add parameter scope_data.
3171 * defs.h (struct command_line): Add field scope_data.
3172
1c88ceb1
JK
31732015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
3174
3175 * printcmd.c (struct format_data): Move it to valprint.h.
3176 (print_command_parse_format, print_value): New functions from ...
3177 (print_command_1): ... here. Call them.
3178 * valprint.h (struct format_data): Move it here from printcmd.c.
3179 (print_command_parse_format, print_value): New declarations.
3180
0b738f27
JK
31812015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
3182
3183 * compile/compile-object-load.c (compile_object_load): Add
3184 COMPILE_DEBUG message.
3185
aa715135
JG
31862015-05-15 Jerome Guitton <guitton@adacore.com>
3187
3188 * ada-lang.c (ada_value_ptr_subscript): Use enum position of
3189 index to get element instead of enum value.
3190 (ada_value_slice_from_ptr, ada_value_slice): Use enum position
3191 of index to compute length, but enum values to compute bounds.
3192 (ada_array_length): Use enum position of index instead of enum value.
3193 (pos_atr): Move position computation to...
3194 (ada_evaluate_subexp): Use enum values to compute bounds.
3195 * gdbtypes.c (discrete_position): ...this new function.
3196 * gdbtypes.h (discrete_position): New function declaration.
3197 * valprint.c (val_print_array_elements): Call discrete_position
3198 to handle array indexed by non-contiguous enumeration types.
3199
931e5bc3
JG
32002015-05-15 Jerome Guitton <guitton@adacore.com>
3201
3202 * ada-lang.c (find_parallel_type_by_descriptive_type):
3203 Go through typedefs during lookup.
3204 (to_fixed_array_type): Add support for non-bit packed arrays
3205 as variable-length fields.
3206
4e63d0ac
PA
32072015-05-15 Pedro Alves <palves@redhat.com>
3208 Simon Marchi <simon.marchi@ericsson.com>
3209
3210 * event-loop.c (gdb_notifier) <next_file_handler,
3211 next_poll_fds_index>: New fields.
3212 (get_next_file_handler_to_handle_and_advance): New function.
3213 (delete_file_handler): If deleting the next file handler to
3214 handle, advance to the next file handler.
3215 (gdb_wait_for_event): Bail early if no event fired. Poll file
3216 handlers in round-robin fashion.
3217
52e48b36
PA
32182015-05-15 Pedro Alves <palves@redhat.com>
3219
3220 * linux-tdep.c (linux_find_memory_regions_full): Rename local
3221 'private' to 'priv'.
3222
2465e12e
PA
32232015-05-15 Pedro Alves <palves@redhat.com>
3224
3225 * nat/linux-nat.h: Include "target/waitstatus.h".
3226
13fa0398
YZ
32272015-05-15 Yuanhui Zhang <asmwarrior@gmail.com>
3228
3229 * python/py-unwind.c (struct reg_info): Move out of ...
3230 (struct cached_frame_info): ... this scope.
3231 (pending_frame_object_type, unwind_info_object_type): Make extern.
3232
9cd4d857
JB
32332015-05-15 Joel Brobecker <brobecker@adacore.com>
3234
3235 * ada-lang.c (ada_value_primitive_packed_val): Make sure
3236 accumSize is never negative.
3237
e3555239
PP
32382015-05-14 Patrick Palka <patrick@parcs.ath.cx>
3239
3240 * tui/tui-command.c: Remove include of <ctype.h>.
3241 (tui_dispatch_ctrl_char): Remove workaround for xterm terminals.
3242
08a76f8a
MG
32432015-05-13 Martin Galvan <martin.galvan@tallertechnologies.com>
3244
3245 * dwarf2read.c (die_needs_namespace): Return 1 for
3246 DW_TAG_inlined_subroutine.
3247
bd49952b
JK
32482015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3249
3250 * regcache.c (regcache_cpy_no_passthrough): New declaration.
3251 (regcache_cpy_no_passthrough): Make it static, add function comment.
3252 * regcache.h (regcache_dup, regcache_cpy): Reduce/update their comment.
3253 (regcache_cpy_no_passthrough): Remove declaration.
3254
46c03469
JK
32552015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3256
3257 * gdbthread.h (struct thread_control_state): Update comment for
3258 proceed_to_finish.
3259 * infcall.c (run_inferior_call): Update comment about
3260 proceed_to_finish.
3261 * infcmd.c (get_return_value): Update comment about stop_registers.
3262 (finish_forward): Update comment about proceed_to_finish.
3263 * infrun.c (stop_registers): Remove.
3264 (clear_proceed_status, normal_stop): Remove stop_registers handling.
3265 * infrun.h (stop_registers): Remove.
3266
8a6c4031
JK
32672015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3268
3269 * infcall.c (struct dummy_frame_context_saver)
3270 (dummy_frame_context_saver_data_free, dummy_frame_context_saver_dtor)
3271 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
3272 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
3273 New.
3274 (call_function_by_hand_dummy): Move discard_cleanups of
3275 inf_status_cleanup before dummy_frame_push. Call
3276 dummy_frame_context_saver_setup and prepare context_saver_cleanup.
3277 Use dummy_frame_context_saver_get_regs instead of stop_registers.
3278 * infcall.h (struct dummy_frame_context_saver)
3279 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
3280 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
3281 New declarations.
3282 * infcmd.c: Include infcall.h.
3283 (get_return_value): Add parameter ctx_saver, use it instead of
3284 stop_registers.
3285 (print_return_value): Add parameter ctx_saver, pass it.
3286 (struct finish_command_continuation_args): Add field ctx_saver.
3287 (finish_command_continuation): Update print_return_value caller.
3288 (finish_command_continuation_free_arg): Free also ctx_saver.
3289 (finish_forward): Call dummy_frame_context_saver_setup.
3290 * inferior.h (struct dummy_frame_context_saver): New declaration.
3291 (get_return_value): Add parameter ctx_saver.
3292 * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Update
3293 get_return_value caller.
3294
10989690
JK
32952015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3296
3297 * dummy-frame.c (struct dummy_frame_dtor_list): New.
3298 (struct dummy_frame): Replace dtor and dtor_data by dtor_list.
3299 (remove_dummy_frame): Process dtor_list.
3300 (pop_dummy_frame): Process dtor_list.
3301 (register_dummy_frame_dtor): Maintain dtor_list.
3302 (find_dummy_frame_dtor): Handle dtor_list.
3303 * dummy-frame.h (register_dummy_frame_dtor, find_dummy_frame_dtor):
3304 Update comments.
3305
5e970501
JK
33062015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3307
3308 * compile/compile-object-run.c (do_module_cleanup): Add parameter
3309 registers_valid.
3310 (compile_object_run): Update do_module_cleanup caller.
3311 * dummy-frame.c: Include infcall.h.
3312 (struct dummy_frame): Update dtor comment.
3313 (remove_dummy_frame): Call dtor.
3314 (pop_dummy_frame): Update dtor caller.
3315 * dummy-frame.h (dummy_frame_dtor_ftype): Add parameter
3316 registers_valid.
3317
1c4eb778
JB
33182015-05-13 Joel Brobecker <brobecker@adacore.com>
3319
3320 GDB 7.9.1 released.
3321
f5f85ab9
JB
33222015-05-13 Joel Brobecker <brobecker@adacore.com>
3323
3324 * NEWS: Create "Changes in GDB 7.9.1" section. Move news about
3325 Xmethods now being able to specify a result type to that new
3326 sectioin.
3327
242cd84c
PP
33282015-05-13 Patrick Palka <patrick@parcs.ath.cx>
3329
3330 * tui/tui-win.c (tui_async_resize_screen): Clear win_resized
3331 first before resizing the window.
e3555239 3332 * tui/tui.c (tui_enable): Likewise.
242cd84c
PP
3333
33342015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
558e5469
JK
3335
3336 * dummy-frame.c (struct dummy_frame): Use proper typedef for dtor.
3337 * dummy-frame.h (dummy_frame_dtor_ftype): Add its comment.
3338 * infcall.c (call_function_by_hand_dummy): Use proper typedef for
3339 dummy_dtor parameter.
3340 * infcall.h: Include dummy-frame.h.
3341 (call_function_by_hand_dummy_dtor_ftype): Remove.
3342 (call_function_by_hand_dummy): Use proper typedef for dummy_dtor
3343 parameter.
3344
ebfd00d2
PP
33452015-05-13 Patrick Palka <patrick@parcs.ath.cx>
3346
3347 PR gdb/17820
3348 * top.c (history_size_setshow_var): Change type to signed.
3349 Initialize to -2. Update documentation.
3350 (set_readline_history_size): Define.
3351 (set_history_size_command): Use it. Remove logic for handling
3352 out-of-range sizes.
3353 (init_history): Use set_readline_history_size(). Test for a
3354 value of -2 instead of 0 when determining whether to set a
3355 default history size.
3356 (init_main): Decode the argument of the "size" command as a
3357 zuinteger_unlimited.
3358
83769d0b
DE
33592015-05-12 Doug Evans <dje@google.com>
3360
3361 * dwarf2read.c (struct file_entry): Tweak comments.
3362 (get_debug_line_section): Tweak comments.
3363
0d71eef5
DB
33642015-05-12 Don Breazeal <donb@codesourcery.com>
3365
3366 * NEWS: Announce fork support in the RSP and support
3367 for fork debugging in extended mode.
3368
cbb8991c
DB
33692015-05-12 Don Breazeal <donb@codesourcery.com>
3370
3371 * remote.c (remote_insert_fork_catchpoint): New function.
3372 (remote_remove_fork_catchpoint): New function.
3373 (remote_insert_vfork_catchpoint): New function.
3374 (remote_remove_vfork_catchpoint): New function.
3375 (pending_fork_parent_callback): New function.
3376 (remove_new_fork_child): New function.
3377 (remote_update_thread_list): Call remote_notif_get_pending_events
3378 and remove_new_fork_child.
3379 (extended_remote_kill): Kill fork child when killing the
3380 parent before follow_fork completes.
3381 (init_extended_remote_ops): Initialize target vector with
3382 new fork catchpoint functions.
3383
c269dbdb
DB
33842015-05-12 Don Breazeal <donb@codesourcery.com>
3385
3386 * remote.c (remove_vfork_event_p): New function.
3387 (remote_follow_fork): Add vfork event type to event checking.
3388 (remote_parse_stop_reply): New stop reasons "vfork" and
3389 "vforkdone" for RSP 'T' Stop Reply Packet.
3390
de0d863e
DB
33912015-05-12 Don Breazeal <donb@codesourcery.com>
3392
3393 * linux-nat.c (linux_nat_ptrace_options): New function.
3394 (linux_init_ptrace, wait_lwp, linux_nat_filter_event):
3395 Call linux_nat_ptrace_options and use different argument to
3396 linux_enable_event_reporting.
3397 (_initialize_linux_nat): Delete call to
3398 linux_ptrace_set_additional_flags.
c8f6c93c 3399 * nat/linux-ptrace.c (current_ptrace_options): Rename to
de0d863e
DB
3400 supported_ptrace_options.
3401 (additional_flags): Delete variable.
3402 (linux_check_ptrace_features): Use supported_ptrace_options.
3403 (linux_test_for_tracesysgood, linux_test_for_tracefork):
3404 Likewise, and remove additional_flags check.
3405 (linux_enable_event_reporting): Change 'attached' argument to
3406 'options'. Use supported_ptrace_options.
c8f6c93c 3407 (ptrace_supports_feature): Change comment. Use
de0d863e
DB
3408 supported_ptrace_options.
3409 (linux_ptrace_set_additional_flags): Delete function.
3410 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
3411 Delete function prototype.
3412 * remote.c (remote_fork_event_p): New function.
3413 (remote_detach_pid): New function.
3414 (remote_detach_1): Call remote_detach_pid, don't mourn inferior
3415 if doing detach-on-fork.
3416 (remote_follow_fork): New function.
3417 (remote_parse_stop_reply): Handle new "T" stop reason "fork".
3418 (remote_pid_to_str): Print "process" strings for pid/0/0 ptids.
3419 (init_extended_remote_ops): Initialize to_follow_fork.
3420
89245bc0
DB
34212015-05-12 Don Breazeal <donb@codesourcery.com>
3422
3423 * nat/linux-ptrace.c (linux_check_ptrace_features): Change
3424 from static to extern.
3425 * nat/linux-ptrace.h (linux_check_ptrace_features): Declare.
3426 * remote.c (anonymous enum): <PACKET_fork_event_feature,
3427 * PACKET_vfork_event_feature>: New enumeration constants.
3428 (remote_protocol_features): Add table entries for new packets.
3429 (remote_query_supported): Add new feature queries to qSupported
3430 packet.
3431
835205d0
GB
34322015-05-12 Gary Benson <gbenson@redhat.com>
3433
3434 * remote.c (remote_add_inferior): Call exec_file_locate_attach
3435 for fake PIDs as well as real ones.
3436 (remote_pid_to_exec_file): Send empty annex if PID is fake.
3437
4c082a81
SC
34382015-05-09 Siva Chandra Reddy <sivachandra@google.com>
3439
3440 * NEWS (Python Scripting): Mention the new gdb.Value methods.
3441 * python/py-value.c (valpy_reference_value): New function.
3442 (valpy_const_value): Likewise.
3443 (value_object_methods): Add new methods.
3444 * value.c (make_cv_value): New function.
3445 * value.h (make_cv_value): Declare.
3446
afa6c9ab
SL
34472015-05-08 Yao Qi <yao@codesourcery.com>
3448 Sandra Loosemore <sandra@codesourcery.com>
3449
3450 * dwarf2read.c (setup_type_unit_groups): Do NULL pointer check
3451 to 'lh->include_dirs' before accessing to it.
3452 (psymtab_include_file_name): Likewise.
3453 (dwarf_decode_lines_1): Likewise.
3454 (dwarf_decode_lines): Likewise.
3455 (file_file_name): Likewise.
3456
35d54293
SL
34572015-05-08 Sandra Loosemore <sandra@codesourcery.com>
3458
3459 * nios2-linux-tdep.c (NIOS2_SIGRETURN_TRAMP_ADDR): Define.
3460 (NIOS2_SIGRETURN_REGSAVE_OFFSET): Define.
3461 (nios2_linux_rt_sigreturn_init): Adjust base address of
3462 register save area.
3463
b73c49b7
SL
34642015-05-08 Sandra Loosemore <sandra@codesourcery.com>
3465
3466 * nios2-tdep.c (nios2_breakpoint_from_pc): Revert to using
3467 "trap 31" as the breakpoint instruction on all targets.
3468
dd9f02a0
JK
34692015-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3470
3471 * infcmd.c (print_return_value): Remove unused declaration.
3472
6ad395a7
JB
34732015-05-08 Joel Brobecker <brobecker@adacore.com>
3474
3475 * dwarf2read.c (attr_to_dynamic_prop)
3476 <DW_AT_data_member_location>: Use read_type_die isntead of
3477 get_die_type.
3478
8344af1e
JB
34792015-05-08 Joel Brobecker <brobecker@adacore.com>
3480
3481 * ada-lang.c (ada_convert_actual): Add handling of formals
3482 passed inside an aligner type.
3483
80b0912b
JB
34842015-05-08 Joel Brobecker <brobecker@adacore.com>
3485
3486 * copyright.py (NOT_FSF_LIST): Remove sim/erc32 entries.
3487
df2eb078
SC
34882015-05-08 Siva Chandra Reddy <sivachandra@google.com>
3489
3490 PR python/18291
3491 * python/lib/gdb/command/xmethods.py (print_xm_info): Fix typo.
3492 Print xmethod matcher status.
3493
2492f0d0
AA
34942015-05-08 Andreas Arnez <arnez@linux.vnet.ibm.com>
3495
3496 * s390-linux-nat.c (fill_gregset): Avoid relying on the PSWA
3497 register in the regcache when treating the PSWM register, and vice
3498 versa.
3499
1c56a84d
GB
35002015-05-07 Gary Benson <gbenson@redhat.com>
3501
3502 * linux-thread-db.c (struct thread_db_info)
3503 <td_ta_map_id2thr_p>: Remove field.
3504 (try_thread_db_load_1): Remove initialization for the above.
3505
74850322
GB
35062015-05-07 Gary Benson <gbenson@redhat.com>
3507
3508 * linux-thread-db.c (struct thread_db_info)
3509 <td_thr_validate_p>: Remove field.
3510 (try_thread_db_load_1): Remove initialization for the above.
3511
e26efa40
JK
35122015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3513
3514 * compile/compile-object-load.c (compile_object_load): Support
3515 mst_text_gnu_ifunc.
3516
851c9091
JK
35172015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3518
3519 * compile/compile.c (compile_to_object): Make the cmd_string parameter
3520 const. Use new variables for the const compatibility.
3521 (eval_compile_command): Make the cmd_string parameter const.
3522 * compile/compile.h (eval_compile_command): Make the cmd_string
3523 parameter const.
3524
f218b647
JB
35252015-05-06 Joel Brobecker <brobecker@adacore.com>
3526
3527 * defs.h (deprecated_init_ui_hook): Delete. Remove associated
3528 comment.
3529 * top.c (deprecated_init_ui_hook): Delete.
3530 (gdb_init): Remove handling of deprecated_init_ui_hook.
3531 * interps.c (clear_interpreter_hooks): Remove handling of
3532 deprecated_init_ui_hook.
3533 * main.c (captured_main): Update comment.
3534
b30a0bc3
JB
35352015-05-06 Joel Brobecker <brobecker@adacore.com>
3536
3537 * solib.c (_initialize_solib): Add "info dll" alias creation.
3538 * windows-nat.c (set_windows_aliases): Delete.
3539 (_initialize_windows_nat): Remove deprecated_init_ui_hook
3540 assignment.
3541 * NEWS: Add news entry about "info dll" now being available
3542 on all platforms.
3543
7c512744
JB
35442015-05-05 Joel Brobecker <brobecker@adacore.com>
3545
3546 * ada-lang.c (value_assign_to_component): Reformat and improve
3547 documentation. Remove all trailing spaces.
3548
0fa7fe50
JB
35492015-05-05 Joel Brobecker <brobecker@adacore.com>
3550
3551 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
3552 Stop counting inlined frames as soon as an out-of-line function
3553 is found.
3554
3ea89b92
PMR
35552014-05-05 Pierre-Marie de Rodat <derodat@adacore.com>
3556
3557 * dwarf2read.c (inherit_abstract_dies): Skip
3558 DW_TAG_GNU_call_site dies while inheriting children of an
3559 abstract DIE into a scope.
3560 (read_lexical_block_scope): Inherit abstract DIE's for
3561 lexical scopes.
3562
2478d075
JB
35632015-05-05 Joel Brobecker <brobecker@adacore.com>
3564
3565 * ada-valprint.c (val_print_packed_array_elements): Delete
3566 variable "len". Add a type-length check when comparing two
3567 consecutive elements of the array. Use the element's actual
3568 length in call to value_contents_eq.
3569 * ada-lang.c (ada_value_primitive_packed_val): Always return
3570 a value whose type has been resolved.
3571
fc958966
JB
35722015-05-05 Joel Brobecker <brobecker@adacore.com>
3573
3574 * ada-lang.c (ada_value_primitive_packed_val): Recompute
3575 BIT_SIZE and LEN if the size of the resolved type is smaller
3576 than BIT_SIZE * HOST_CHAR_BIT.
3577
ca34b84f
JB
35782015-05-05 Joel Brobecker <brobecker@adacore.com>
3579
3580 * ada-lang.c (ada_value_primitive_packed_val): Use a more
3581 correct address in call to value_at. Adjust call to
3582 value_address accordingly.
3583
62c67f3c
JB
35842015-05-05 Joel Brobecker <brobecker@adacore.com>
3585
3586 * ada-valprint.c (ada_val_print_1): Resolve TYPE before trying
3587 to print it.
3588
c3345124
JB
35892015-05-05 Joel Brobecker <brobecker@adacore.com>
3590
3591 * dwarf2loc.h (struct property_addr_info): Add "valaddr" field.
3592 * dwarf2loc.c (dwarf2_evaluate_property): Add handling of
3593 pinfo->valaddr.
3594 * gdbtypes.h (resolve_dynamic_type): Add "valaddr" parameter.
3595 * gdbtypes.c (resolve_dynamic_struct): Set pinfo.valaddr.
3596 (resolve_dynamic_type_internal): Set pinfo.valaddr.
3597 Add handling of addr_stack->valaddr.
3598 (resolve_dynamic_type): Add "valaddr" parameter.
3599 Set pinfo.valaddr field.
3600 * ada-lang.c (ada_discrete_type_high_bound): Update call to
3601 resolve_dynamic_type.
3602 (ada_discrete_type_low_bound): Likewise.
3603 * findvar.c (default_read_var_value): Likewise.
3604 * value.c (value_from_contents_and_address): Likewise.
3605
75ea5859
JB
36062015-05-05 Joel Brobecker <brobecker@adacore.com>
3607
3608 * gdbtypes.c (resolve_dynamic_array): Use
3609 create_array_type_with_stride instead of create_array_type.
3610
0952813b
DD
36112015-04-30 DJ Delorie <dj@redhat.com>
3612
3613 * rl78-tdep.c (rl78_analyze_prologue): Pass RL78_ISA_DEFAULT to
3614 rl78_decode_opcode
3615
2ce1cdbf
DE
36162015-04-29 Doug Evans <dje@google.com>
3617
3618 PR python/18285
3619 * NEWS: Document new gdb.XMethodWorker.get_result_type method.
3620 * eval.c (evaluate_subexp_standard) <OP_FUNCALL>: Handle
3621 EVAL_AVOID_SIDE_EFFECTS for xmethods.
3622 * extension-priv.h (struct extension_language_ops)
3623 <get_xmethod_result_type>: New member.
3624 * extension.c (get_xmethod_result_type): New function.
3625 * extension.h (get_xmethod_result_type): Declare.
3626 * python/py-xmethods.c (get_result_type_method_name): New static
3627 global.
3628 (py_get_result_type_method_name): Ditto.
3629 (gdbpy_get_xmethod_result_type): New function.
3630 (gdbpy_initialize_xmethods): Initialize py_get_result_type_method_name.
3631 * python/python-internal.h (gdbpy_get_xmethod_result_type): Declare.
3632 * python/python.c (python_extension_ops): Add
3633 gdbpy_get_xmethod_result_type.
3634 * python/lib/gdb/xmethod.py (XMethodWorker): Add get_result_type.
3635 * valarith.c (value_x_binop): Handle EVAL_AVOID_SIDE_EFFECTS for
3636 xmethods.
3637 (value_x_unop): Ditto.
3638 * value.c (result_type_of_xmethod): New function.
3639 * value.h (result_type_of_xmethod): Declare.
3640
998d2a3e
GB
36412015-04-29 Gary Benson <gbenson@redhat.com>
3642
3643 * solib.c (solib_find_1): Allow fd argument to be NULL.
3644 (exec_file_find): Update comment.
3645 (solib_find): Likewise.
3646 * exec.c (exec_file_locate_attach): Use NULL as fd
3647 argument to exec_file_find to avoid having to close
3648 the opened file.
3649 * infrun.c (follow_exec): Likewise.
3650
34f5f757
DE
36512015-04-28 Doug Evans <dje@google.com>
3652
3653 PR python/18299
3654 * python/lib/gdb/printing.py (register_pretty_printer): Handle
3655 name or __name__ attributes. Handle gdb module as first argument.
3656
69b4374a
DE
36572015-04-28 Doug Evans <dje@google.com>
3658
3659 PR python/18089
3660 * python/py-prettyprint.c (print_children): Verify result of children
3661 iterator. Provide better error message.
3662 * python/python-internal..h (gdbpy_print_python_errors_p): Declare.
3663 * python/python.c (gdbpy_print_python_errors_p): New function.
3664
5e7cf078
DE
36652015-04-28 Doug Evans <dje@google.com>
3666
3667 * gdbtypes.h (struct cplus_struct_type) <n_baseclasses>: Fix comment.
3668
59fb7612
SS
36692015-04-28 Sasha Smundak <asmundak@google.com>
3670
3671 * NEWS: Mention gdb.Type.optimized_out method.
3672 * python/py-type.c (typy_optimized_out): New function.
3673
cea6e4f1
JB
36742015-04-28 John Baldwin <jhb@FreeBSD.org>
3675
3676 * fbsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
3677
24b73f8e
PP
36782015-04-28 Patrick Palka <patrick@parcs.ath.cx>
3679
3680 * utils.c (init_page_info): Set rl_catch_sigwinch to zero.
3681 (initialize_utils): Move call of init_page_info() to ...
3682 * top.c (gdb_init): ... here.
3683
a88d0bb3
PP
36842015-04-28 Patrick Palka <patrick@parcs.ath.cx>
3685
3686 * tui/tui-win.c (tui_sigwinch_handler): Remove now-stale comment.
3687 (tui_sigwinch_handler): Still update our idea of
3688 the terminal's width and height even when TUI is not active.
3689
d6e5e7f7
PP
36902015-04-28 Patrick Palka <patrick@parcs.ath.cx>
3691
3692 * utils.h (set_screen_width_and_height): Declare.
3693 * utils.c (set_screen_width_and_height): Define.
3694 * tui/tui-win.c (tui_update_gdb_sizes): Use it.
3695
ff862be4
GB
36962015-04-28 Gary Benson <gbenson@redhat.com>
3697
3698 * infrun.c (solist.h): New include.
3699 (follow_exec): Use exec_file_find to prefix execd_pathname
3700 with gdb_sysroot.
3701
2eb639cb
PP
37022015-04-28 Patrick Palka <patrick@parcs.ath.cx>
3703
3704 * tui/tui-source.c (tui_set_source_content): Avoid calling
3705 strcpy() when offset is 0.
3706
97206799
PP
37072015-04-28 Patrick Palka <patrick@parcs.ath.cx>
3708
3709 PR gdb/18155
3710 * tui/tui-data.c (tui_free_window): Don't free the locator
3711 window when passed an SRC_WIN or a DISASSEM_WIN.
3712
63ed8182
PP
37132015-04-28 Patrick Palka <patrick@parcs.ath.cx>
3714
3715 * tui/tui-data.h (struct tui_win_element): Forward-declare.
3716 (tui_win_content): Move declaration.
3717 (struct tui_gen_win_info): Give 'content' field the
3718 type tui_win_content.
3719 * tui/tui-data.c (init_content_element): Remove redundant and
3720 erroneous casts.
3721 (tui_add_content_elements): Remove erroneous cast.
3722 * tui/tui-disasm.c (tui_set_disassem_content): Remove redundant
3723 casts.
3724 (tui_get_begin_asm_address): Likewise.
3725 * tui/tui-regs.c (tui_show_registers): Likewise.
3726 (tui_show_register_group): Likewise.
3727 (tui_display_registers_from): Likewise.
3728 (tui_check_register_values): Likewise.
3729 * tui/tui-source.c (tui_set_source_content): Likewise.
3730 (tui_set_source_content_nil): Likewise.
3731 (tui_source_is_displayed): Likewise.
3732 * tui/tui-stack.c (tui_show_locator_content): Likewise.
3733 (tui_set_locator_fullname): Likewise.
3734 (tui_set_locator_info): Likewise.
3735 (tui_show_frame_info): Likewise.
3736 * tui/tui-winsource.c (tui_clear_source_content): Likewise.
3737 (tui_show_source_line): Likewise.
3738 (tui_horizontal_source_scroll): Likewise.
3739 (tui_update_breakpoint_info): Likewise.
3740 (tui_set_exec_info_content): Likewise.
3741 (tui_show_exec_info_content): Likewise.
3742 (tui_alloc_source_buffer): Likewise.
3743 (tui_line_is_displayed): Likewise.
3744 (tui_addr_is_displayed): Likewise.
3745
d2b41ca0
JB
37462015-04-27 John Baldwin <jhb@FreeBSD.org>
3747
3748 * fbsd-nat.c: (fbsd_wait) [PL_FLAG_EXEC]: Report TARGET_WAITKIND_EXECD
3749 event if PL_FLAG_EXEC is set.
3750 [PL_FLAG_EXEC] (fbsd_insert_exec_catchpoint): New function.
3751 [PL_FLAG_EXEC] (fbsd_remove_exec_catchpoint): New function.
3752 (fbsd_nat_add_target) [PL_FLAG_EXEC]: Set
3753 "to_insert_exec_catchpoint" to "fbsd_insert_exec_catchpoint".
3754 Set "to_remove_exec_catchpoint" to "fbsd_remove_exec_catchpoint".
3755
e58e05d6
JB
37562015-04-27 John Baldwin <jhb@FreeBSD.org>
3757
3758 * fbsd-nat.c: [PT_LWPINFO] New variable super_wait.
3759 [TDP_RFPPWAIT] New variable fbsd_pending_children.
3760 [TDP_RFPPWAIT] (fbsd_remember_child): New function.
3761 [TDP_RFPPWAIT] (fbsd_is_child_pending): New function.
3762 [TDP_RFPPWAIT] (fbsd_fetch_kinfo_proc): New function.
3763 [PT_LWPINFO] (fbsd_wait): New function.
3764 [TDP_RFPPWAIT] (fbsd_follow_fork): New function.
3765 [TDP_RFPPWAIT] (fbsd_insert_fork_catchpoint): New function.
3766 [TDP_RFPPWAIT] (fbsd_remove_fork_catchpoint): New function.
3767 [TDP_RFPPWAIT] (fbsd_insert_vfork_catchpoint): New function.
3768 [TDP_RFPPWAIT] (fbsd_remove_vfork_catchpoint): New function.
3769 [TDP_RFPPWAIT] (fbsd_enable_follow_fork): New function.
3770 [TDP_RFPPWAIT] (fbsd_post_startup_inferior): New function.
3771 [TDP_RFPPWAIT] (fbsd_post_attach): New function.
3772 (fbsd_nat_add_target) [PT_LWPINFO] Set "to_wait" to
3773 "fbsd_wait".
3774 [TDP_RFPPWAIT] Set "to_follow_fork" to "fbsd_follow_fork".
3775 Set "to_insert_fork_catchpoint" to "fbsd_insert_fork_catchpoint".
3776 Set "to_remove_fork_catchpoint" to "fbsd_remove_fork_catchpoint".
3777 Set "to_insert_vfork_catchpoint" to "fbsd_insert_vfork_catchpoint".
3778 Set "to_remove_vfork_catchpoint" to "fbsd_remove_vfork_catchpoint".
3779 Set "to_post_startup_inferior" to "fbsd_post_startup_inferior".
3780 Set "to_post_attach" to "fbsd_post_attach".
3781
8f60fe01
JB
37822015-04-27 John Baldwin <jhb@FreeBSD.org>
3783
3784 * fbsd-nat.c (fbsd_pid_to_exec_file): Mark static.
3785 (fbsd_find_memory_regions): Mark static.
3786 (fbsd_nat_add_target): New function.
3787 * fbsd-nat.h: Export fbsd_nat_add_target and remove prototypes for
3788 fbsd_pid_to_exec_file and fbsd_find_memory_regions.
3789 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Use fbsd_nat_add_target.
3790 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
3791 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Likewise.
3792 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Likewise.
3793
5fbae7d1
GB
37942015-04-27 Gary Benson <gbenson@redhat.com>
3795
3796 * objfiles.c (allocate_objfile): Do not attempt to expand name
3797 if name is a "target:" filename.
3798 * auto-load.c (load_auto_scripts_for_objfile): Do not attempt
3799 to load auto-load scripts for objfiles with "target:" filenames.
3800
417c80f9
AA
38012015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
3802
3803 * s390-linux-tdep.c: Include "elf/s390.h" and "elf-bfd.h".
3804 (enum s390_vector_abi_kind): New enum.
3805 (struct gdbarch_tdep)<vector_abi>: New field.
3806 (s390_effective_inner_type): Add parameter min_size. Stop
3807 unwrapping if the inner type is smaller than min_size.
3808 (s390_function_arg_float): Adjust call to
3809 s390_effective_inner_type.
3810 (s390_function_arg_vector): New function.
3811 (s390_function_arg_integer): Adjust comment.
3812 (struct s390_arg_state)<vr>: New field.
3813 (s390_handle_arg): Add parameter 'is_unnamed'. Pass vector
3814 arguments according to vector ABI when appropriate.
3815 (s390_push_dummy_call): Initialize the argument state's field
3816 'vr'. Adjust calls to s390_handle_arg.
3817 (s390_register_return_value): Handle vector return values.
3818 (s390_return_value): Apply the "register" return value convention
3819 to a vector when appropriate.
3820 (s390_gdbarch_init): Initialize tdep->vector_abi.
3821 * NEWS: Announce S390 vector ABI support.
3822
4e65a17e
AA
38232015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
3824
3825 * s390-linux-tdep.c (s390_return_value_convention): Remove
3826 function. Inline its logic...
3827 (s390_return_value): ...here. Instead, move the handling of the
3828 "register" return value convention...
3829 (s390_register_return_value): ...here. New function.
3830
80f75320
AA
38312015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
3832
3833 * s390-linux-tdep.c
3834 (is_float_singleton): Remove function. Move the "singleton" part
3835 of the logic...
3836 (s390_effective_inner_type): ...here. New function.
3837 (is_float_like): Remove function. Inline its logic...
3838 (s390_function_arg_float): ...here.
3839 (is_pointer_like, is_integer_like, is_struct_like): Remove
3840 functions. Inline their logic...
3841 (s390_function_arg_integer): ...here.
3842 (s390_function_arg_pass_by_reference): Remove function.
3843 (extend_simple_arg): Remove function.
3844 (alignment_of): Remove function.
3845 (struct s390_arg_state): New structure.
3846 (s390_handle_arg): New function.
3847 (s390_push_dummy_call): Move parameter placement logic to the new
3848 function s390_handle_arg. Call it for calculating the stack area
3849 sizes first, and again for actually writing the parameters.
3850
6dbc9c04
AA
38512015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
3852
3853 * s390-linux-tdep.c (is_power_of_two): Add comment. Return
3854 false if the argument is zero.
3855
9e195661
PMR
38562015-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
3857
3858 * ada-lang.c (template_to_static_fixed_type): Return input type
3859 when it is already fixed. Cache the input type itself when not
3860 creating a static fixed copy. Make it explicit that we never
3861 molestate the input type.
3862 * gdbtypes.c (resolve_dynamic_struct): Reset the
3863 TYPE_TARGET_TYPE field for resolved copies.
3864
460efde1
JB
38652015-04-27 Joel Brobecker <brobecker@adacore.com>
3866
3867 * ada-lang.c (ada_is_tagged_type): Add call to ada_check_typedef.
3868 (ada_lookup_struct_elt_type): Remove calls to ada_check_typedef.
3869 (template_to_static_fixed_type): Call ada_check_typedef only
3870 when necessary.
3871
6faec16b
AB
38722015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
3873
3874 * cli/cli-dump.c (srec_dump_command): Add internationalization
3875 mark ups.
3876 (ihex_dump_command): Likewise.
3877 (tekhex_dump_command): Likewise.
3878 (binary_dump_command): Likewise.
3879 (binary_append_command): Likewise.
3880
cf75d6c3
AB
38812015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
3882
3883 * cli/cli-dump.c (verilog_cmdlist): New variable.
3884 (dump_verilog_memory): New function.
3885 (dump_verilog_value): New function.
3886 (verilog_dump_command): New function.
3887 (_initialize_cli_dump): Add new commands to support verilog dump
3888 format.
3889 * NEWS: Add entry for "dump verilog".
3890
8cd00c59
PMR
38912015-04-24 Pierre-Marie de Rodat <derodat@adacore.com>
3892
3893 * gdbtypes.c (print_gnat_stuff): Do not recurse on the
3894 descriptive type when there is none.
3895
8900d71e
PP
38962015-04-23 Patrick Palka <patrick@parcs.ath.cx>
3897
3898 * tui/tui-win.c (tui_async_resize_screen): Call
3899 rl_resize_terminal().
3900
f16eab5f
JT
39012015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
3902
3903 * windows-nat.c (handle_output_debug_string): Don't change
3904 current_event.dwThreadId.
3905 (get_windows_debug_event): Use thread_id, rather than relying on
3906 current_event.dwThreadId being changed.
3907
68ffc902
JT
39082015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
3909
3910 * windows-nat.c (windows_continue): Report an error if
3911 ContinueDebugEvent() fails.
3912
23942819
JT
39132015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
3914
3915 * windows-nat.c (windows_resume): Fix misspelling in debug output.
3916
e6ad66bd
JT
39172015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
3918
3919 * windows-nat.c (get_windows_debug_event): Replace retval with
3920 thread_id throughout. Update stale comment.
3921
776704b9
JT
39222015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
3923
3924 * windows-nat.c (get_windows_debug_event): Don't use ternary
3925 conditional operator.
3926
8aae4344
PM
39272015-04-21 Pierre Muller <muller@sourceware.org>
3928
3929 PR pascal/17815
3930 p-exp.y (yylex): Reorganize code to return the matched pattern
3931 for a field of this.
3932
819843c7
GB
39332015-04-21 Gary Benson <gbenson@redhat.com>
3934
3935 * common/fileio.h (fileio_to_host_openflags): New declaration.
3936 * common/fileio.c (fcntl.h): New include.
3937 (fileio_to_host_openflags): New function, factored out from...
3938 * inf-child.c (inf_child_fileio_open_flags_to_host): ...here.
3939 Single use updated.
3940
0bca7f99
KB
39412015-04-21 Kevin Buettner <kevinb@redhat.com>
3942
3943 * rl78-tdep.c (RL78_SP_ADDR): Define.
3944 (opc_reg_to_gdb_regnum): New static function.
3945 (rl78_analyze_prologue): Recognize instructions forming slightly
3946 more interesting prologues.
3947
e771e4be
PMR
39482015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
3949
3950 Revert:
3951 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
3952 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
3953 TYPE_CODE_REF types so that they are not considered as dynamic
3954 depending on the referenced type.
3955 (resolve_dynamic_type_internal): Likewise.
3956
ee715b5a
PMR
39572015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
3958
3959 Revert:
3960 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
3961 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
3962 "top_level" parameter.
3963 (resolve_dynamic_type_internal): Remove the unused "top_level"
3964 parameter. Update call to is_dynamic_type_internal.
3965 (is_dynamic_type): Update call to is_dynamic_type_internal.
3966 (resolve_dynamic_range): Update call to
3967 resolve_dynamic_type_internal.
3968 (resolve_dynamic_union): Likewise.
3969 (resolve_dynamic_struct): Likewise.
3970 (resolve_dynamic_type): Likewise.
3971
e31d7699
GKB
39722015-04-19 Gabriel Krisman Bertazi <gabriel@krisman.be>
3973
3974 * breakpoint.c (update_dprintf_command_list): Remove duplicated
3975 xmalloc.
3976
d214e5e7
TS
39772015-04-20 Thomas Schwinge <thomas@codesourcery.com>
3978
110f9112
TS
3979 * reply_mig_hack.awk: Robustify parsing.
3980
d214e5e7
TS
3981 * reply_mig_hack.awk: Don't bother to declare an intermediate
3982 function pointer variable.
3983
8f61baf8
DE
39842015-04-17 Doug Evans <dje@google.com>
3985
3986 * solib-svr4.c (svr4_exec_displacement): Rename outer "displacement"
3987 to "exec_displacement" to avoid confusion with inner use of the name.
3988
dbbf180a
YQ
39892015-04-17 Pedro Alves <palves@redhat.com>
3990
3991 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Return zero
3992 if HW point of TYPE isn't supported.
3993
059790a0
YQ
39942015-04-17 Yao Qi <yao.qi@linaro.org>
3995 Pedro Alves <palves@redhat.com>
3996
3997 * target.h (target_can_use_hardware_watchpoint): Update comments.
3998 Remove trailing ";".
3999
1b6e6f5c
GB
40002015-04-17 Gary Benson <gbenson@redhat.com>
4001
4002 * remote.c (remote_add_inferior): New argument try_open_exec.
4003 If nonzero, attempt to open the inferior's executable file as
4004 the main executable if no main executable is open already.
4005 All callers updated.
4006 * NEWS: Mention that GDB now supports automatic location and
4007 retrieval of executable + files from remote targets.
4008
c78fa86a
GB
40092015-04-17 Gary Benson <gbenson@redhat.com>
4010
4011 * target.h (TARGET_OBJECT_EXEC_FILE): New enum value.
4012 * remote.c (PACKET_qXfer_exec_file): Likewise.
4013 (remote_protocol_features): Register the
4014 "qXfer:exec-file:read" feature.
4015 (remote_xfer_partial): Handle TARGET_OBJECT_EXEC_FILE.
4016 (remote_pid_to_exec_file): New function.
4017 (init_remote_ops): Initialize to_pid_to_exec_file.
4018 (_initialize_remote): Register new "set/show remote
4019 pid-to-exec-file-packet" command.
4020 * NEWS: Announce new qXfer:exec-file:read packet.
4021
e0d86d2c
GB
40222015-04-17 Gary Benson <gbenson@redhat.com>
4023
4024 * nat/linux-procfs.h (linux_proc_pid_to_exec_file):
4025 New declaration.
4026 * nat/linux-procfs.c (linux_proc_pid_to_exec_file):
4027 New function, factored out from...
4028 * linux-nat.c (linux_child_pid_to_exec_file): ...here.
4029
a9a5a3d1
GB
40302015-04-17 Gary Benson <gbenson@redhat.com>
4031
4032 * exec.c (solist.h): New include.
4033 (exec_file_locate_attach): Prefix absolute executable
4034 paths with gdb_sysroot if set.
4035 * NEWS: Mention that executable paths may be prepended
4036 with sysroot.
4037
af1900b0
GB
40382015-04-17 Gary Benson <gbenson@redhat.com>
4039
4040 * solist.h (exec_file_find): New declaration.
4041 * solib.c (solib_find_1): New function, factored out from...
4042 (solib_find): ...here.
4043 (exec_file_find): New function.
4044
a10de604
GB
40452015-04-17 Gary Benson <gbenson@redhat.com>
4046
4047 * gdbcore.h (exec_file_locate_attach): New declaration.
4048 * exec.c (exec_file_locate_attach): New function, factored
4049 out from...
4050 * infcmd.c (attach_command_post_wait): ...here.
4051
92209ddf
MF
40522015-04-17 Mike Frysinger <vapier@gentoo.org>
4053
4054 * MAINTAINERS: Add myself for Blackfin/write-after-approval.
4055
8550d3b3
YQ
40562015-04-16 Yao Qi <yao.qi@linaro.org>
4057
4058 * infrun.c (maybe_software_singlestep): Declare.
4059 (displaced_step_fixup): Call maybe_software_singlestep.
4060
30b3dd9d
DE
40612015-04-15 Doug Evans <dje@google.com>
4062
4063 * psymtab.c (psym_expand_symtabs_matching): Add QUIT call.
4064
61d96d7e
DE
40652015-04-15 Doug Evans <dje@google.com>
4066
4067 * dwarf2read.c (dw2_expand_symtabs_matching): Add some QUIT calls.
4068
40d2f8d6
SM
40692015-04-15 Simon Marchi <simon.marchi@ericsson.com>
4070
4071 * python/lib/gdb/command/unwinders.py: Add parentheses.
4072
6bbbba9b
YQ
40732015-04-15 Yao Qi <yao.qi@linaro.org>
4074
4075 * arm-linux-tdep.c (arm_linux_copy_svc): Update debug message.
4076
2bb2dcab
YQ
40772015-04-15 Yao Qi <yao.qi@linaro.org>
4078
4079 * arm-linux-tdep.c (arm_linux_copy_svc): Fix indentation.
4080
41f071ef
YQ
40812015-04-15 Yao Qi <yao.qi@linaro.org>
4082
4083 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
4084 dsc->insn_size instead of 4.
4085
326a5c7e
GB
40862015-04-14 Gary Benson <gbenson@redhat.com>
4087
4088 * jit.c (mem_bfd_iovec_stat): Zero supplied buffer.
4089 * minidebug.c (lzma_stat): Likewise.
4090 * solib-spu.c (spu_bfd_iovec_stat): Likewise.
4091 * spu-linux-nat.c (spu_bfd_iovec_stat): Likewise.
4092
dd177e81
SS
40932015-04-13 Stan Shebs <stanshebs@google.com>
4094
4095 * MAINTAINERS: Update my email address.
4096
97de3545
JB
40972015-04-13 John Baldwin <jhb@FreeBSD.org>
4098
4099 * amd64-tdep.c (amd64_target_description): New function.
4100 * amd64-tdep.h: Export amd64_target_description and tdesc_amd64.
4101 * amd64bsd-nat.c [PT_GETXSTATE_INFO]: New variable amd64bsd_xsave_len.
4102 (amd64bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
4103 x86 extended save area.
4104 (amd64bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
4105 * amd64bsd-nat.h: Export amd64bsd_xsave_len.
4106 * amd64fbsd-nat.c (amd64fbsd_read_description): New function.
4107 (_initialize_amd64fbsd_nat): Set "to_read_description" to
4108 "amd64fbsd_read_description".
4109 * amd64fbsd-tdep.c (amd64fbsd_core_read_description): New function.
4110 (amd64fbsd_supply_xstateregset): New function.
4111 (amd64fbsd_collect_xstateregset): New function.
4112 Add "amd64fbsd_xstateregset".
4113 (amd64fbsd_iterate_over_regset_sections): New function.
4114 (amd64fbsd_init_abi): Set "xsave_xcr0_offset" to
4115 "I386_FBSD_XSAVE_XCR0_OFFSET".
4116 Add "iterate_over_regset_sections" gdbarch method.
4117 Add "core_read_description" gdbarch method.
4118 * i386-tdep.c (i386_target_description): New function.
4119 * i386-tdep.h: Export i386_target_description and tdesc_i386.
4120 * i386bsd-nat.c [PT_GETXSTATE_INFO]: New variable i386bsd_xsave_len.
4121 (i386bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
4122 x86 extended save area.
4123 (i386bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
4124 * i386bsd-nat.h: Export i386bsd_xsave_len.
4125 * i386fbsd-nat.c (i386fbsd_read_description): New function.
4126 (_initialize_i386fbsd_nat): Set "to_read_description" to
4127 "i386fbsd_read_description".
4128 * i386fbsd-tdep.c (i386fbsd_core_read_xcr0): New function.
4129 (i386fbsd_core_read_description): New function.
4130 (i386fbsd_supply_xstateregset): New function.
4131 (i386fbsd_collect_xstateregset): New function.
4132 Add "i386fbsd_xstateregset".
4133 (i386fbsd_iterate_over_regset_sections): New function.
4134 (i386fbsd4_init_abi): Set "xsave_xcr0_offset" to
4135 "I386_FBSD_XSAVE_XCR0_OFFSET".
4136 Add "iterate_over_regset_sections" gdbarch method.
4137 Add "core_read_description" gdbarch method.
4138 * i386fbsd-tdep.h: New file.
4139
4f45d445
JK
41402015-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4141
4142 * NEWS (Changes since GDB 7.9): Add removed -xdb.
4143 * breakpoint.c (command_line_is_silent): Remove xdb_commands
4144 conditional.
4145 (_initialize_breakpoint): Remove xdb_commands for bc, ab, sb, db, ba
4146 and lb.
4147 * cli/cli-cmds.c (_initialize_cli_cmds): Remove xdb_commands for v and
4148 va.
4149 * cli/cli-decode.c (find_command_name_length): Remove xdb_commands
4150 conditional.
4151 * defs.h (xdb_commands): Remove declaration.
4152 * f-valprint.c (_initialize_f_valprint): Remove xdb_commands for lc.
4153 * guile/scm-cmd.c (command_classes): Remove xdb from comment.
4154 * infcmd.c (run_no_args_command, go_command): Remove.
4155 (_initialize_infcmd): Remove xdb_commands for S, go, g, R and lr.
4156 * infrun.c (xdb_handle_command): Remove.
4157 (_initialize_infrun): Remove xdb_commands for lz and z.
4158 * main.c (xdb_commands): Remove variable.
4159 (captured_main): Remove "xdb" from long_options.
4160 (print_gdb_help): Remove --xdb from help.
4161 * python/py-cmd.c (gdbpy_initialize_commands): Remove xdb from comment.
4162 * source.c (_initialize_source): Remove xdb_commands for D, ld, / and ?.
4163 * stack.c (backtrace_full_command, args_plus_locals_info)
4164 (current_frame_command): Remove.
4165 (_initialize_stack): Remove xdb_commands for t, T and l.
4166 * symtab.c (_initialize_symtab): Remove xdb_commands for lf and lg.
4167 * thread.c (_initialize_thread): Remove xdb_commands condition.
4168 * tui/tui-layout.c (tui_toggle_layout_command)
4169 (tui_toggle_split_layout_command, tui_handle_xdb_layout): Remove.
4170 (_initialize_tui_layout): Remove xdb_commands for td and ts.
4171 * tui/tui-regs.c (tui_scroll_regs_forward_command)
4172 (tui_scroll_regs_backward_command): Remove.
4173 (_initialize_tui_regs): Remove xdb_commands for fr, gr, sr, +r and -r.
4174 * tui/tui-win.c (tui_xdb_set_win_height_command): Remove.
4175 (_initialize_tui_win): Remove xdb_commands for U and w.
4176 * utils.c (pagination_on_command, pagination_off_command): Remove.
4177 (initialize_utils): Remove xdb_commands for am and sm.
4178
cb71640d
PA
41792015-04-10 Pedro Alves <palves@redhat.com>
4180
4181 * infrun.c (displaced_step_fixup): Switch to the event ptid
4182 earlier. If the thread stopped for a watchpoint and the
4183 target/arch has non-continuable watchpoints, cancel the displaced
4184 step.
4185 (resume): Don't start a displaced step if in-line step-over info
4186 is valid.
4187
8f572e5c
PA
41882015-04-10 Pedro Alves <palves@redhat.com>
4189
4190 * infrun.c (displaced_step_in_progress): New function.
4191 (do_target_resume): Advise target to report all signals if
4192 displaced stepping.
4193
8d707a12
PA
41942015-04-10 Pedro Alves <palves@redhat.com>
4195
4196 PR gdb/18216
4197 * infrun.c (process_event_stop_test): Don't assume a step-resume
4198 is set if tp->stepped_breakpoint is true.
4199
ef713951
YQ
42002015-04-10 Yao Qi <yao.qi@linaro.org>
4201
4202 * arm-tdep.c (install_alu_reg): Update comment.
4203 (thumb_copy_alu_reg): Remove local variable rn. Update
4204 debugging message. Use r2 instead of r1 in the modified
4205 instruction.
4206
906d60cf
PA
42072015-04-10 Pedro Alves <palves@redhat.com>
4208
4209 PR gdb/13858
4210 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Install
4211 linux_displaced_step_location as gdbarch_displaced_step_location
4212 hook.
4213 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
4214 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
4215 * linux-tdep.c (linux_displaced_step_location): New function,
4216 based on ppc_linux_displaced_step_location.
4217 * linux-tdep.h (linux_displaced_step_location): New declaration.
4218 * ppc-linux-tdep.c (ppc_linux_entry_point_addr): Delete.
4219 (ppc_linux_inferior_created, ppc_linux_displaced_step_location):
4220 Delete.
4221 (ppc_linux_init_abi): Install linux_displaced_step_location as
4222 gdbarch_displaced_step_location hook, even without Cell/B.E..
4223 (_initialize_ppc_linux_tdep): Don't install
4224 ppc_linux_inferior_created as inferior_created observer.
4225 * s390-linux-tdep.c (s390_gdbarch_init): Install
4226 linux_displaced_step_location as gdbarch_displaced_step_location
4227 hook.
4228
7823a941
GB
42292015-04-09 Gary Benson <gbenson@redhat.com>
4230
4231 * common/common-remote-fileio.h: Rename to...
4232 * common/fileio.h: ...this. Update all references.
4233 (remote_fileio_to_fio_error): Rename to...
4234 (host_to_fileio_error): ...this.
4235 (remote_fileio_to_be): Rename to...
4236 (host_to_bigendian): ...this. Update all callers.
4237 (remote_fileio_to_fio_uint): Rename to...
4238 (host_to_fileio_uint): ...this. Update all callers.
4239 (remote_fileio_to_fio_time): Rename to...
4240 (host_to_fileio_time): ...this. Update all callers.
4241 (remote_fileio_to_fio_stat): Rename to...
4242 (host_to_fileio_stat): ...this.
4243 Update all references.
4244 * common/common-remote-fileio.c: Rename to...
4245 * common/fileio.c: ...this. Update all references.
4246 (remote_fileio_to_fio_error): Rename to...
4247 (host_to_fileio_error): ...this. Update all callers.
4248 (remote_fileio_mode_to_target): Rename to...
4249 (fileio_mode_pack): ...this. Update all callers.
4250 (remote_fileio_to_fio_mode): Rename to...
4251 (host_to_fileio_mode): ...this. Update all callers.
4252 (remote_fileio_to_fio_ulong): Rename to...
4253 (host_to_fileio_ulong): ...this. Update all callers.
4254 (remote_fileio_to_fio_stat): Rename to...
4255 (host_to_fileio_stat): ...this. Update all callers.
4256
f2983cc3
AW
42572015-04-09 Andy Wingo <wingo@igalia.com>
4258
4259 * guile/scm-frame.c (gdbscm_frame_read_register): New function.
4260 (frame_functions): Bind gdbscm_frame_read_register to
4261 frame-read-register.
4262 * guile/lib/gdb.scm (frame-read-register): Export.
4263
b88bb450
GB
42642015-04-09 Gary Benson <gbenson@redhat.com>
4265
4266 * common/common-remote-fileio.h (remote_fileio_to_fio_error):
4267 New declaration.
4268 * common/common-remote-fileio.c (remote_fileio_to_fio_error):
4269 New function, factored out the named functions below.
4270 * inf-child.c (gdb/fileio.h): Remove include.
4271 (common-remote-fileio.h): New include.
4272 (inf_child_errno_to_fileio_error): Remove function. Update
4273 all callers to use remote_fileio_to_fio_error.
4274 * remote-fileio.c (remote_fileio_errno_to_target): Likewise.
4275
2f2680f3
AW
42762015-04-09 Andy Wingo <wingo@igalia.com>
4277
4278 * MAINTAINERS (Write After Approval): Add Andy Wingo.
4279
5a2d4533
L
42802015-04-09 H.J. Lu <hongjiu.lu@intel.com>
4281
4282 * acinclude.m4: (GDB_AC_CHECK_BFD): Set ZLIBDIR with $zlibdir.
4283 Replace $zlibdir with $ZLIBDIR in LDFLAGS.
4284 * configure: Regenerated.
4285
421693b0
PA
42862015-04-09 Pedro Alves <palves@redhat.com>
4287
4288 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strtok_r.
4289 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/strtok_r.m4.
4290 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4: Regenerate.
4291 * gnulib/import/Makefile.am: Update.
4292 * gnulib/import/Makefile.in: Update.
4293 * gnulib/import/m4/gnulib-cache.m4: Update.
4294 * gnulib/import/m4/gnulib-comp.m4: Update.
4295 * gnulib/import/m4/strtok_r.m4: New file.
4296 * gnulib/import/strtok_r.c: New file.
4297
f543dc83
PA
42982015-04-09 Pedro Alves <palves@redhat.com>
4299
4300 * gnulib/update-gnulib.sh (aclocal version check): Filter out
4301 "called too early to check prototype".
4302
6d62641c
SDJ
43032015-04-08 Sergio Durigan Junior <sergiodj@redhat.com>
4304
4305 PR python/16699
4306 * python/py-cmd.c (cmdpy_completer_helper): Adjust function to not
4307 use a caching mechanism. Adjust comments and code to reflect
4308 that. Replace 'sizeof' by 'strlen' when fetching 'wordobj'.
4309 (cmdpy_completer_handle_brkchars): Adjust call to
4310 cmdpy_completer_helper. Call Py_XDECREF for 'resultobj'.
4311 (cmdpy_completer): Likewise.
4312
85558555
YQ
43132015-04-08 Yao Qi <yao.qi@linaro.org>
4314
4315 * spu-tdep.c (spu_gdbarch_init): Don't call
4316 set_gdbarch_cannot_step_breakpoint.
4317
d249a14a
SDJ
43182015-04-07 Sergio Durigan Junior <sergiodj@redhat.com>
4319
4320 * linux-tdep.c (decode_vmflags): Initialize 'saveptr'.
4321
8a06aea7
PA
43222015-04-07 Pedro Alves <palves@redhat.com>
4323
4324 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): Rename to ...
4325 (ALL_THREADS_SAFE): ... this, and don't skip exited threads.
4326 (delete_exited_threads): New declaration.
4327 * infrun.c (follow_exec): Use ALL_THREADS_SAFE.
4328 * linux-nat.c (linux_nat_update_thread_list): New function.
4329 (linux_nat_add_target): Install it.
4330 * remote.c (remote_update_thread_list): Use ALL_THREADS_SAFE.
4331 * thread.c (prune_threads): Use ALL_THREADS_SAFE.
4332 (delete_exited_threads): New function.
4333
d9b67d9f
PA
43342015-04-07 Pedro Alves <pedro@codesourcery.com>
4335
4336 * infrun.c (resume) <displaced stepping debug output>: Get the
4337 leader thread's regcache, not resume_ptid's.
4338
2c26b84f
DE
43392015-04-06 Doug Evans <xdje42@gmail.com>
4340
4341 * symtab.c (hash_symbol_entry): Hash STRUCT_DOMAIN symbols as
4342 VAR_DOMAIN.
4343 (symbol_cache_lookup): Clarify use of bsc_ptr, slot_ptr parameters.
4344 Include symbol domain in debugging output.
4345
7a85168d
PA
43462015-04-06 Pedro Alves <palves@redhat.com>
4347 Bernd Edlinger <bernd.edlinger@hotmail.de>
4348
4349 * configure.ac: Remove the mingw32-specific stub-termcap.o
4350 fallback, and instead fallback to the stub termcap on all hosts.
4351 * configure: Regenerate.
4352 * stub-termcap.c [!__MINGW32__] (PC, BC, UP): Define as weak
4353 symbols.
4354
25755e2b
PMR
43552015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
4356
4357 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
4358 "top_level" parameter.
4359 (resolve_dynamic_type_internal): Remove the unused "top_level"
4360 parameter. Update call to is_dynamic_type_internal.
4361 (is_dynamic_type): Update call to is_dynamic_type_internal.
4362 (resolve_dynamic_range): Update call to
4363 resolve_dynamic_type_internal.
4364 (resolve_dynamic_union): Likewise.
4365 (resolve_dynamic_struct): Likewise.
4366 (resolve_dynamic_type): Likewise.
4367
961f4160
PMR
43682015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
4369
4370 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
4371 TYPE_CODE_REF types so that they are not considered as dynamic
4372 depending on the referenced type.
4373 (resolve_dynamic_type_internal): Likewise.
4374
39f3de7c
L
43752015-04-02 H.J. Lu <hongjiu.lu@intel.com>
4376
4377 * Makefile.in (top_srcdir): New.
4378 * configure: Regenerated.
4379
599bd15c
GB
43802015-04-02 Gary Benson <gbenson@redhat.com>
4381
4382 * NEWS: Announce the new default sysroot of "target:".
4383
fed040c6
GB
43842015-04-02 Gary Benson <gbenson@redhat.com>
4385
4386 * main.c (captured_main): Set gdb_sysroot to "target:"
4387 if not otherwise set.
4388
64c0b5de
GB
43892015-04-02 Gary Benson <gbenson@redhat.com>
4390
4391 * exec.c (exec_file_attach): Support "target:" filenames.
4392
b57fbfba
GB
43932015-04-02 Gary Benson <gbenson@redhat.com>
4394
4395 * solib.c (solib_find): Strip "target:" prefix from sysroot
4396 if accessing local files.
4397
97a41605
GB
43982015-04-02 Gary Benson <gbenson@redhat.com>
4399
4400 * symfile.c (symfile_bfd_open): Reorder to remove duplicated
4401 checks and error messages.
4402
2938e6cf
GB
44032015-04-02 Gary Benson <gbenson@redhat.com>
4404
4405 * remote.h (REMOTE_SYSROOT_PREFIX): Remove definition.
4406 (remote_filename_p): Remove declaration.
4407 (remote_bfd_open): Likewise.
4408 * remote.c (remote_bfd_iovec_open): Remove function.
4409 (remote_bfd_iovec_close): Likewise.
4410 (remote_bfd_iovec_pread): Likewise.
4411 (remote_bfd_iovec_stat): Likewise.
4412 (remote_filename_p): Likewise.
4413 (remote_bfd_open): Likewise.
4414 * symfile.h (gdb_bfd_open_maybe_remote): Remove declaration.
4415 * symfile.c (separate_debug_file_exists): Use gdb_bfd_open.
4416 (gdb_bfd_open_maybe_remote): Remove function.
4417 (symfile_bfd_open): Replace remote filename check with
4418 target filename check.
4419 (reread_symbols): Use gdb_bfd_open.
4420 * build-id.c (gdbcore.h): New include.
4421 (build_id_to_debug_bfd): Use gdb_bfd_open.
4422 * infcmd.c (attach_command_post_wait): Remove remote filename
4423 check.
4424 * solib.c (solib_find): Replace remote-specific handling with
4425 target-specific handling. Update comments where necessary.
4426 (solib_bfd_open): Replace remote-specific handling with
4427 target-specific handling.
4428 (gdb_sysroot_changed): New function.
4429 (_initialize_solib): Call the above when gdb_sysroot changes.
4430 * windows-tdep.c (gdbcore.h): New include.
4431 (windows_xfer_shared_library): Use gdb_bfd_open.
4432
f08e97fe
GB
44332015-04-02 Gary Benson <gbenson@redhat.com>
4434
4435 * gdb/gdb_bfd.h (TARGET_SYSROOT_PREFIX): New definition.
4436 (is_target_filename): New declaration.
4437 (gdb_bfd_has_target_filename): Likewise.
4438 (gdb_bfd_open): Update documentation comment.
4439 * gdb_bfd.c (target.h): New include.
4440 (gdb/fileio.h): Likewise.
4441 (is_target_filename): New function.
4442 (gdb_bfd_has_target_filename): Likewise.
4443 (fileio_errno_to_host): Likewise.
4444 (gdb_bfd_iovec_fileio_open): Likewise.
4445 (gdb_bfd_iovec_fileio_pread): Likewise.
4446 (gdb_bfd_iovec_fileio_close): Likewise.
4447 (gdb_bfd_iovec_fileio_fstat): Likewise.
4448 (gdb_bfd_open): Use target fileio to access paths prefixed
4449 with "target:" where necessary.
4450
4bd7dc42
GB
44512015-04-02 Gary Benson <gbenson@redhat.com>
4452
4453 * target.h (struct target_ops) <to_filesystem_is_local>:
4454 New field.
4455 (target_filesystem_is_local): New macro.
4456 * target-delegates.c: Regenerate.
4457 * remote.c (remote_filesystem_is_local): New function.
4458 (init_remote_ops): Initialize to_filesystem_is_local.
4459
9b15c1f0
GB
44602015-04-02 Gary Benson <gbenson@redhat.com>
4461
4462 * target.h (struct target_ops) <to_fileio_fstat>: New field.
4463 (target_fileio_fstat): New declaration.
4464 * target.c (target_fileio_fstat): New function.
4465 * inf-child.c (inf_child_fileio_fstat): Likewise.
4466 (inf_child_target): Initialize to_fileio_fstat.
4467 * remote.c (init_remote_ops): Likewise.
4468
d11916aa
SS
44692015-04-01 Sasha Smundak <asmundak@google.com>
4470
4471 * Makefile.in (SUBDIR_PYTHON_OBJS): Add py-unwind.o.
4472 (SUBDIR_PYTHON_SRCS): Add py-unwind.c.
4473 (py-unwind.o): New recipe.
4474 * NEWS: mention Python frame unwinding.
4475 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add
4476 gdb/unwinder.py and gdb/command/unwinder.py
4477 * python/lib/gdb/__init__.py (packages): Add frame_unwinders
4478 list.
4479 (execute_unwinders): New function.
4480 * python/lib/gdb/command/unwinders.py: New file.
4481 * python/lib/gdb/unwinder.py: New file.
4482 * python/py-objfile.c (objfile_object): Add frame_unwinders field.
4483 (objfpy_dealloc): Decrement frame_unwinders reference count.
4484 (objfpy_initialize): Create frame_unwinders list.
4485 (objfpy_get_frame_unwinders): New function.
4486 (objfpy_set_frame_unwinders): Ditto.
4487 (objfile_getset): Add frame_unwinders attribute to Objfile.
4488 * python/py-progspace.c (pspace_object): Add frame_unwinders field.
4489 (pspy_dealloc): Decrement frame_unwinders reference count.
4490 (pspy_initialize): Create frame_unwinders list.
4491 (pspy_get_frame_unwinders): New function.
4492 (pspy_set_frame_unwinders): Ditto.
4493 (pspy_getset): Add frame_unwinders attribute to gdb.Progspace.
4494 * python/py-unwind.c: New file.
4495 * python/python-internal.h (pspy_get_name_unwinders): New prototype.
4496 (objpy_get_frame_unwinders): New prototype.
4497 (gdbpy_initialize_unwind): New prototype.
4498 * python/python.c (gdbpy_apply_type_printers): Call
4499 gdbpy_initialize_unwind.
4500
6b403daa
PA
45012015-04-01 Pedro Alves <palves@redhat.com>
4502
4503 * infrun.c (resume): Check currently_stepping after clearing
4504 stepped_breakpoint, not before.
4505
1176ecec
PA
45062015-04-01 Pedro Alves <palves@redhat.com>
4507
4508 * infrun.c (print_target_wait_results): Print all the ptid
4509 elements.
4510
de1fe8c8
PA
45112015-04-01 Pedro Alves <palves@redhat.com>
4512
4513 * infrun.c (keep_going): Also discard cleanups if inserting
4514 breakpoints fails.
4515
e6f5c25b
PA
45162015-04-01 Pedro Alves <palves@redhat.com>
4517
4518 * infrun.c (wait_for_inferior): Install the
4519 finish_thread_state_cleanup cleanup across the whole function, not
4520 just around handle_inferior_event.
4521
1ac806b8
PA
45222015-04-01 Pedro Alves <palves@redhat.com>
4523
4524 * infrun.c (resume) <step past permanent breakpoint>: Use
4525 do_target_resume.
4526
2ee52aa4
PA
45272015-04-01 Pedro Alves <palves@redhat.com>
4528
4529 * linux-nat.c (linux_handle_extended_wait): Always call set_running.
4530
5445da1b
PMR
45312015-04-01 Pierre-Marie de Rodat <derodat@adacore.com>
4532
4533 * MAINTAINERS (Write After Approval): Add "Pierre-Marie de Rodat".
4534
4eec2deb
PA
45352015-04-01 Pedro Alves <palves@redhat.com>
4536
4537 * linux-thread-db.c (record_thread): Readd the thread to gdb's
4538 list if it was marked exited.
4539
afa59b79
L
45402015-04-01 H.J. Lu <hongjiu.lu@intel.com>
4541
4542 * configure: Regenerated.
4543
df8411da
SDJ
45442015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
4545 Jan Kratochvil <jan.kratochvil@redhat.com>
4546 Oleg Nesterov <oleg@redhat.com>
4547
4548 PR corefiles/16092
4549 * linux-tdep.c: Include 'gdbcmd.h' and 'gdb_regex.h'.
4550 New enum identifying the various options of the coredump_filter
4551 file.
4552 (struct smaps_vmflags): New struct.
4553 (use_coredump_filter): New variable.
4554 (decode_vmflags): New function.
4555 (mapping_is_anonymous_p): Likewise.
4556 (dump_mapping_p): Likewise.
4557 (linux_find_memory_regions_full): New variables
4558 'coredumpfilter_name', 'coredumpfilterdata', 'pid', 'filterflags'.
4559 Removed variable 'modified'. Read /proc/<PID>/smaps file; improve
4560 parsing of its information. Implement memory mapping filtering
4561 based on its contents.
4562 (show_use_coredump_filter): New function.
4563 (_initialize_linux_tdep): New command 'set use-coredump-filter'.
4564 * NEWS: Mention the possibility of using the
4565 '/proc/PID/coredump_filter' file when generating a corefile.
4566 Mention new command 'set use-coredump-filter'.
4567
416f679e
SDJ
45682015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
4569
4570 * solib-svr4.c (solib_svr4_r_ldsomap): Catch possible exception by
4571 read_memory_unsigned_integer.
4572
711a72d3
L
45732015-03-31 H.J. Lu <hongjiu.lu@intel.com>
4574
4575 * Makefile.in (ZLIB): New.
4576 (ZLIBINC): Likewise.
4577 (INTERNAL_CFLAGS_BASE): Add $(ZLIBINC).
4578 (CLIBS): Add $(ZLIB).
4579 * acinclude.m4: (GDB_AC_CHECK_BFD): Add $zlibdir to LDFLAGS.
4580 Add -lz to LIBS.
4581 * gdb_bfd.c: Don't check HAVE_ZLIB_H to include <zlib.h>.
4582 * top.c (print_gdb_configuration): Remove --with-zlib and
4583 --without-zlib.
4584 * config.in: Regenerated.
4585 * configure: Likewise.
4586
d33279b3
AT
45872015-03-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
4588
4589 * NEWS: Mention info os cpus support.
4590 * gdb/nat/linux-osdata.c (linux_xfer_osdata_cpus): New function.
4591 (struct osdata_type): Add cpus entry, reorder the entries in
4592 alphabetical order.
4593
71b30f27
MK
45942015-03-31 Matthias Klose <doko@ubuntu.com>
4595
4596 * compile/compile.c (compile_to_object): Allow triplets with or
4597 without vendor set.
4598
13ce9222
DE
45992015-03-30 Doug Evans <dje@google.com>
4600
4601 PR c++/18141
4602 * cp-namespace.c (cp_search_static_and_baseclasses): Always look for
4603 klass in VAR_DOMAIN.
4604
20f796c9
GB
46052015-03-30 Gary Benson <gbenson@redhat.com>
4606
4607 * remote.c (remote_mourn_1): Remove function. Update all callers
4608 to use remote_mourn.
4609 (extended_remote_mourn_1): Remove function. Update all callers
4610 to use extended_remote_mourn.
4611 (extended_remote_attach_1): Remove function. Update all callers
4612 to use extended_remote_attach.
4613
49d45b20
JB
46142015-03-28 James Bowman <james.bowman@ftdichip.com>
4615
4616 * Makefile.in (ALL_TARGET_OBS): Add ft32-tdep.o.
4617 (HFILES_NO_SRCDIR): Add ft32-tdep.h.
4618 (ALLDEPFILES): Add ft32-tdep.c.
4619 * configure.tgt: Add FT32 entry.
4620 * ft32-tdep.c: New file, FT32 target-dependent code.
4621 * ft32-tdep.h: New file, FT32 target-dependent code.
4622
1c4ff080
JK
46232015-03-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4624
4625 Revert:
4626 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
4627 Code cleanup.
4628 * printcmd.c (print_command_1): Move expr variable scope.
4629
79498702
JB
46302015-03-27 Joel Brobecker <brobecker@adacore.com>
4631
4632 * dtrace-probe.c (dtrace_process_dof_probe): Initialize expr to NULL.
4633
ce9c0ca1
AK
46342015-03-27 Andrzej Kaczmarek <andrzej.kaczmarek@tieto.com>
4635
4636 * gdb_bfd.c (gdb_bfd_section_index): Fix off-by-one for special
4637 sections.
4638
429e1e81
JB
46392015-03-26 Joel Brobecker <brobecker@adacore.com>
4640
4641 * dtrace-probe.c (dtrace_process_dof_probe): Contain any
4642 exception raised while parsing the probe arguments.
4643 Force parsing to be done using the C language parser.
4644 * expression.h (parse_expression_with_language): Declare.
4645 * parse.c (parse_expression_with_language): New function.
4646
4593441b
JT
46472015-03-26 Jon Turney <jon.turney@dronecode.org.uk>
4648
4649 * MAINTAINERS (Write After Approval): Add "Jon Turney".
4650
ff908ebf
AW
46512015-03-26 Andy Wingo <wingo@igalia.com>
4652
4653 PR symtab/18148
4654 * dwarf2read.c (struct partial_die_info): Add has_const_value
4655 member.
4656 (add_partial_symbol): Don't punt on symbols that have const_value
4657 attributes.
4658 (read_partial_die): Detect DW_AT_const_value.
4659
f30d5c78
JK
46602015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
4661
4662 Code cleanup.
4663 * printcmd.c (print_command_1): Move expr variable scope.
4664
8d89f51a
JK
46652015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
4666
4667 Code cleanup.
4668 * printcmd.c (validate_format): Make the parameter cmdname const.
4669
0b736949
DB
46702015-03-26 Don Breazeal <donb@codesourcery.com>
4671
4672 * remote.c (_initialize_remote): Update comment.
4673
20d35291
PA
46742015-03-26 Pedro Alves <palves@redhat.com>
4675 Jon TURNEY <jon.turney@dronecode.org.uk>
4676
4677 * coffread.c (coff_symfile_read): When constructing the name of an
4678 import stub symbol from import symbol for amd64, only skip the
4679 char after _imp_ if the target is underscored (like i386) and the
4680 char is indeed the target's leading char.
4681
6a3753b3
PA
46822015-03-25 Pedro Alves <palves@redhat.com>
4683
4684 * target.h <to_async>: Replace 'callback' and 'context' parameters
4685 with boolean 'enable' parameter.
4686 (target_async): Replace CALLBACK and CONTEXT parameters with
4687 boolean ENABLE parameter.
4688 * inf-loop.c (inferior_event_handler): Adjust.
4689 * linux-nat.c (linux_nat_attach, linux_nat_resume)
4690 (linux_nat_resume): Adjust.
4691 (async_client_callback, async_client_context): Delete.
4692 (handle_target_event): Call inferior_event_handler directly.
4693 (linux_nat_async): Replace 'callback' and 'context' parameters
4694 with boolean 'enable' parameter. Adjust. Remove references to
4695 async_client_callback and async_client_context.
4696 (linux_nat_close): Adjust.
4697 * record-btrace.c (record_btrace_async): Replace 'callback' and
4698 'context' parameters with boolean 'enable' parameter. Adjust.
4699 (record_btrace_resume): Adjust.
4700 * record-full.c (record_full_async): Replace 'callback' and
4701 'context' parameters with boolean 'enable' parameter. Adjust.
4702 (record_full_resume, record_full_core_resume): Adjust.
4703 * remote.c (struct remote_state) <async_client_callback,
4704 async_client_context>: Delete fields.
4705 (remote_start_remote, extended_remote_attach_1, remote_resume)
4706 (extended_remote_create_inferior): Adjust.
4707 (remote_async_serial_handler): Call inferior_event_handler
4708 directly.
4709 (remote_async): Replace 'callback' and 'context' parameters with
4710 boolean 'enable' parameter. Adjust.
4711 * top.c (gdb_readline_wrapper_cleanup, gdb_readline_wrapper):
4712 Adjust.
4713 * target-delegates.c: Regenerate.
4714
1c4b552b
GB
47152015-03-25 Gary Benson <gbenson@redhat.com>
4716 Pedro Alves <palves@redhat.com>
4717
4718 * target.c (fileio_ft_t): New typedef, define object vector.
4719 (fileio_fhandles): New static variable.
4720 (is_closed_fileio_fh): New macro.
4721 (lowest_closed_fd): New static variable.
4722 (acquire_fileio_fd): New function.
4723 (release_fileio_fd): Likewise.
4724 (fileio_fd_to_fh): New macro.
4725 (target_fileio_open): Wrap the file descriptor on success.
4726 (target_fileio_pwrite): Updated to use wrapped file descriptor.
4727 (target_fileio_pread): Likewise.
4728 (target_fileio_close): Likewise.
4729
a25d8bf9
PA
47302015-03-24 Pedro Alves <palves@redhat.com>
4731
4732 * thread.c (thread_apply_all_command): Take exited threads into
4733 account.
4734
44a1ee51
PA
47352015-03-24 Pedro Alves <palves@redhat.com>
4736
4737 * infrun.c (resume, proceed): Mention
4738 switch_back_to_stepped_thread, not switch_back_to_stepping.
4739
f3263aa4
PA
47402015-03-24 Pedro Alves <palves@redhat.com>
4741
4742 * infrun.c (user_visible_resume_ptid): Rewrite going from
4743 most-locked to unlocked instead of the opposite. Move comment ...
4744 * infrun.h (user_visible_resume_ptid): ... here.
4745
2bf6fb9d
PA
47462015-03-24 Pedro Alves <palves@redhat.com>
4747
4748 * linux-nat.c (linux_nat_resume): Output debug logs before trying
4749 to resume the event lwp. Use the lwp's ptid instead of the passed
4750 in (maybe wildcard) ptid.
4751 (stop_wait_callback): Tweak debug log output.
4752 (check_stopped_by_breakpoint): Tweak debug log output. Also dump
4753 TRAP_TRACE.
4754 (linux_nat_filter_event): In debug output, distinguish a
4755 resume_stop SIGSTOP from a delayed SIGSTOP. Output debug logs
4756 before trying to resume the lwp.
4757
283a9958
JB
47582015-03-24 Joel Brobecker <brobecker@adacore.com>
4759
4760 * gdbtypes.h (struct dynamic_prop_list) <prop>: Remove
4761 pointer indirection.
4762 * gdbtypes.c (get_dyn_prop): Adjust, following change above.
4763 (add_dyn_prop, copy_dynamic_prop_list): Likewise.
4764
93a8e227
JB
47652015-03-24 Joel Brobecker <brobecker@adacore.com>
4766
4767 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_DATA_LOCATION>:
4768 Renames DYN_ATTR_DATA_LOCATION.
4769 (TYPE_DATA_LOCATION): Use DYN_PROP_DATA_LOCATION instead of
4770 DYN_ATTR_DATA_LOCATION.
4771 * dwarf2read.c (set_die_type): Use DYN_PROP_DATA_LOCATION
4772 instead of DYN_ATTR_DATA_LOCATION.
4773
64ce06e4
PA
47742015-03-24 Pedro Alves <palves@redhat.com>
4775
4776 * breakpoint.c (until_break_command): Adjust call to proceed.
4777 * gdbthread.h (struct thread_control_state) <stepping_command>:
4778 New field.
4779 * infcall.c (run_inferior_call): Adjust call to proceed.
4780 * infcmd.c (run_command_1, proceed_thread_callback, continue_1):
4781 Adjust calls to proceed.
4782 (set_step_frame): Set the current thread's step_start_function
4783 here.
4784 (step_once): Adjust calls to proceed.
4785 (jump_command, signal_command, until_next_command)
4786 (finish_backward, finish_forward, proceed_after_attach_callback)
4787 (attach_command_post_wait): Adjust calls to proceed.
4788 * infrun.c (proceed_after_vfork_done): Adjust call to proceed.
4789 (do_target_resume): New function, factored out from ...
4790 (resume): ... here. Remove 'step' parameter. Instead, check
4791 currently_stepping to determine whether the thread should be
4792 single-stepped.
4793 (proceed): Remove 'step' parameter and don't set the thread's
4794 step_start_function here. Adjust call to 'resume'.
4795 (handle_inferior_event): Adjust calls to 'resume'.
4796 (switch_back_to_stepped_thread): Use do_target_resume instead of
4797 'resume'.
4798 (keep_going): Adjust calls to 'resume'.
4799 * infrun.h (proceed): Remove 'step' parameter.
4800 (resume): Likewise.
4801 * windows-nat.c (do_initial_windows_stuff): Adjust call to
4802 'resume'.
4803 * mi/mi-main.c (proceed_thread): Adjust call to 'proceed'.
4804
856e7dd6
PA
48052015-03-24 Pedro Alves <palves@redhat.com>
4806
4807 * gdbthread.h (struct thread_control_state) <stepping_command>:
4808 New field.
4809 * infcmd.c (step_once): Pass step=1 to clear_proceed_status. Set
4810 the thread's stepping_command field.
4811 * infrun.c (resume): Check the thread's stepping_command flag to
4812 determine which threads should be resumed. Rename 'entry_step'
4813 local to user_step.
4814 (clear_proceed_status_thread): Clear 'stepping_command'.
4815 (schedlock_applies): Change parameter type to struct thread_info
4816 pointer. Adjust.
4817 (find_thread_needs_step_over): Remove 'step' parameter. Adjust.
4818 (switch_back_to_stepped_thread): Adjust calls to
4819 'schedlock_applies'.
4820 (_initialize_infrun): Adjust "set scheduler-locking step" help.
4821
885eeb5b
PA
48222015-03-24 Pedro Alves <palves@redhat.com>
4823
4824 * infrun.c (step_start_function): Delete and ...
4825 * gdbthread.h (struct thread_control_state) <step_start_function>:
4826 ... now a field here.
4827 * infrun.c (clear_proceed_status_thread): Clear the thread's
4828 step_start_function.
4829 (proceed, process_event_stop_test, print_stop_event): Adjust.
4830
3333f03a
PA
48312015-03-24 Pedro Alves <palves@redhat.com>
4832
4833 * infrun.c (proceed): No longer handle negative step.
4834
369f6daa
GB
48352015-03-24 Gary Benson <gbenson@redhat.com>
4836
4837 * nat/x86-linux.h (x86_linux_new_thread): New declaration.
4838 (x86_linux_prepare_to_resume): Likewise.
4839 * x86-linux-nat.c (x86_linux_new_thread):
4840 Moved to nat/x86-linux.c.
4841 (x86_linux_prepare_to_resume): Likewise.
4842 * nat/x86-linux.c (x86_linux_new_thread): New function.
4843 (x86_linux_prepare_to_resume): Likewise.
4844
8e5d4070
GB
48452015-03-24 Gary Benson <gbenson@redhat.com>
4846
4847 * nat/x86-linux-dregs.h: New file.
4848 * nat/x86-linux-dregs.c: Likewise.
4849 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux-dregs.h.
4850 (x86-linux-dregs.o): New rule.
4851 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-dregs.o.
4852 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4853 * x86-linux-nat.c: Include nat/x86-linux-dregs.h.
4854 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
4855 (x86_linux_dr_get): Likewise.
4856 (x86_linux_dr_set): Likewise.
4857 (x86_linux_dr_get_addr): Likewise.
4858 (x86_linux_dr_get_control): Likewise.
4859 (x86_linux_dr_get_status): Likewise.
4860 (update_debug_registers_callback): Likewise.
4861 (x86_linux_dr_set_control): Likewise.
4862 (x86_linux_dr_set_addr): Likewise.
4863 (x86_linux_update_debug_registers): Likewise.
4864
2b95d440
GB
48652015-03-24 Gary Benson <gbenson@redhat.com>
4866
4867 * x86-linux-nat.c (x86_linux_update_debug_registers):
4868 New function, factored out from...
4869 (x86_linux_prepare_to_resume): ...this.
4870
14b0bc68
GB
48712015-03-24 Gary Benson <gbenson@redhat.com>
4872
4873 * x86-linux-nat.c (x86_linux_dr_get): Update comments.
4874 (x86_linux_dr_set): Likewise.
4875 (x86_linux_dr_get_addr): Likewise.
4876 (x86_linux_dr_get_control): Likewise.
4877 (x86_linux_dr_get_status): Likewise.
4878 (update_debug_registers_callback): Likewise.
4879 (x86_linux_dr_set_control): Likewise.
4880 (x86_linux_dr_set_addr): Likewise.
4881 (x86_linux_prepare_to_resume): Likewise.
4882 (x86_linux_new_thread): Likewise.
4883
5dfe6ca8
GB
48842015-03-24 Gary Benson <gbenson@redhat.com>
4885
4886 * x86-linux-nat.c (x86_linux_dr_set_addr): Update assertion.
4887 (x86_linux_new_thread): Rename argument.
4888
4b134ca1
GB
48892015-03-24 Gary Benson <gbenson@redhat.com>
4890
4891 * nat/x86-linux.h: New file.
4892 * nat/x86-linux.c: Likewise.
4893 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux.h.
4894 (x86-linux.o): New rule.
4895 * config/i386/linux.mh (NATDEPFILES): Add x86-linux.o.
4896 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4897 * nat/linux-nat.h (struct arch_lwp_info): New forward declaration.
4898 (lwp_set_arch_private_info): New declaration.
4899 (lwp_arch_private_info): Likewise.
4900 * linux-nat.c (lwp_set_arch_private_info): New function.
4901 (lwp_arch_private_info): Likewise.
4902 * x86-linux-nat.c: Include nat/x86-linux.h.
4903 (arch_lwp_info): Removed structure.
4904 (update_debug_registers_callback):
4905 Use lwp_set_debug_registers_changed.
4906 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
4907 and lwp_set_debug_registers_changed.
4908 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
4909
cff068da
GB
49102015-03-24 Gary Benson <gbenson@redhat.com>
4911
4912 * nat/linux-nat.h (ptid_of_lwp): New declaration.
4913 (lwp_is_stopped): Likewise.
4914 (lwp_stop_reason): Likewise.
4915 * linux-nat.c (ptid_of_lwp): New function.
4916 (lwp_is_stopped): Likewise.
4917 (lwp_is_stopped_by_watchpoint): Likewise.
4918 * x86-linux-nat.c (update_debug_registers_callback):
4919 Use lwp_is_stopped.
4920 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
4921 lwp_stop_reason.
4922
b2f7c7e8
GB
49232015-03-24 Gary Benson <gbenson@redhat.com>
4924
4925 * linux-nat.h (linux_stop_lwp): Move declaration to...
4926 * nat/linux-nat.h (linux_stop_lwp): New declaration.
4927
6d4ee8c6
GB
49282015-03-24 Gary Benson <gbenson@redhat.com>
4929
4930 * linux-nat.h: Include nat/linux-nat.h.
4931 (iterate_over_lwps): Move declaration to nat/linux-nat.h.
4932 * nat/linux-nat.h (struct lwp_info): New forward declaration.
4933 (iterate_over_lwps_ftype): New typedef.
4934 (iterate_over_lwps): New declaration.
4935 * linux-nat.h (iterate_over_lwps): Update comment. Use
4936 iterate_over_lwps_ftype. Update callback return value check.
4937
70a0bb6b
GB
49382015-03-24 Gary Benson <gbenson@redhat.com>
4939
4940 * x86-nat.h (x86_debug_reg_state): Move declaration to...
4941 * nat/x86-dregs.h (x86_debug_reg_state): New declaration.
4942
7b669087
GB
49432015-03-24 Gary Benson <gbenson@redhat.com>
4944
4945 * nat/linux-nat.h (current_lwp_ptid): New declaration.
4946 * linux-nat.c (current_lwp_ptid): New function.
4947 * x86-linux-nat.c: Include nat/linux-nat.h.
4948 (x86_linux_dr_get_addr): Use current_lwp_ptid.
4949 (x86_linux_dr_get_control): Likewise.
4950 (x86_linux_dr_get_status): Likewise.
4951 (x86_linux_dr_set_control): Likewise.
4952 (x86_linux_dr_set_addr): Likewise.
4953
15630549
AT
49542015-03-24 Antoine Tremblay <antoine.tremblay@ericsson.com>
4955
4956 PR breakpoints/16466
4957 * breakpoint.c (create_breakpoint): Set thread on breakpoint struct.
4958
8a4506c0
JB
49592015-03-23 Joel Brobecker <brobecker@adacore.com>
4960
4961 * ser-mingw.c (ser_windows_setparity): Fix indentation.
4962 * ser-unix.c (hardwire_setparity): Likewise.
4963
236af5e3
YG
49642015-03-23 Yurij Grechishhev <yurij.grechishhev@gmail.com>
4965
4966 * NEWS: Mention set/show serial parity command.
4967 * monitor.c (monitor_open): Call serial_setparity.
4968 * remote.c (remote_open_1): Likewise.
4969 * ser-base.c (ser_base_serparity): New function.
4970 * ser-base.h (ser_base_setparity): Add declaration.
4971 * ser-go32.c (dos_ops): Set "setparity" field.
4972 * ser-mingw.c (ser_windows_raw): Do not set state.fParity and
4973 state.Parity.
4974 (ser_windows_setparity): New function.
4975 (hardwire_ops): Add ser_windows_setparity.
4976 (tty_ops): Add NULL for setparity field.
4977 (pipe_ops): Add ser_base_setparity.
4978 (tcp_ops): Likewise.
4979 * ser-pipe.c (pipe_ops): Likewise.
4980 * ser-tcp.c (tcp_ops): Likewise.
4981 * ser-unix.c (hardwire_setparity): Add declaration.
4982 (hardwire_raw): Don't reset PARENB flag.
4983 (hardwire_setparity): New function.
4984 (hardwire_ops): Add hardwire_setparity.
4985 * serial.c (serial_setparity): New function.
4986 (serial_parity): New global.
4987 (parity_none, parity_odd, parity_even, parity_enums, parity):
4988 New static globals.
4989 (set_parity): New function.
4990 (_initialize_serial): Add set/show serial parity commands.
4991 * serial.h (GDBPARITY_NONE): Define.
4992 (GDBPARITY_ODD): Define.
4993 (GDBPARITY_EVEN): Define.
4994 (serial_setparity) Add declaration.
4995 (struct serial_ops): Add setparity field.
4996 * target.h (serial_parity): Add declaration.
4997
32b40af9
KS
49982015-03-23 Keith Seitz <keiths@redhat.com>
4999
5000 * linespec.c (linespec_lexer_lex_keyword): Update comment.
5001
693dca06
KS
50022015-03-23 Keith Seitz <keiths@redhat.com>
5003
5004 * breakpoint.c (parse_breakpoint_sals): Use
5005 linespec_lexer_lex_keyword to ascertain if the user specified
5006 a NULL location.
5007 * linespec.c [IF_KEYWORD_INDEX]: Define.
5008 (linespec_lexer_lex_keyword): Export.
5009 (struct ls_parser) <keyword_ok>: Remove.
5010 A keyword is only a keyword if not followed by another keyword.
5011 (linespec_lexer_lex_one): Remove keyword_ok handling.
5012 Add comment explaining why the parsing stream is not advanced
5013 when a keyword is seen.
5014 (parse_linespec): Remove parser->keyword_ok.
5015 * linespec.h (linespec_lexer_lex_keyword): Add declaration.
5016
7e993ebf
KS
50172015-03-23 Keith Seitz <keiths@redhat.com>
5018
5019 PR gdb/18021
5020 * dwarf2read.c (dwarf2_add_member_fn): Issue a complaint
5021 if we find a static method with DW_AT_vtable_elem_location.
5022
b1a0f704
EZ
50232015-03-21 Eli Zaretskii <eliz@gnu.org>
5024
5025 * tui/tui-io.c (tui_expand_tabs): Reinitialize the column counter
5026 before the second loop, to avoid undefined behavior. Reported by
5027 Anton Blanchard <anton@samba.org>.
5028
d9823cbb
KB
50292015-03-20 Keven Boell <keven.boell@intel.com>
5030
5031 * gdbtypes.c (resolve_dynamic_type_internal): Adapt
5032 data_location usage to linked list.
5033 (resolve_dynamic_type_internal): Adapt data_location to
5034 linked list.
5035 (get_dyn_prop, add_dyn_prop, copy_dynamic_prop_list): New function.
5036 (copy_type_recursive, copy_type): Add copy of linked list.
5037 * gdbtypes.h (enum dynamic_prop_node_kind): New enum.
5038 (struct dynamic_prop_list): New struct.
5039 * dwarf2read.c (set_die_type): Set data_location data.
5040
2e7bf1d7
PA
50412015-03-20 Pedro Alves <palves@redhat.com>
5042
5043 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Move "p" to
5044 inner block and make it const.
5045 * machoread.c (get_archive_prefix_len): Make "lparen" const.
5046
7a26bd4d
PA
50472015-03-20 Pedro Alves <palves@redhat.com>
5048
5049 * breakpoint.c (set_breakpoint_condition): Make argument "exp" const.
5050 * breakpoint.h (set_breakpoint_condition): Update declaration.
5051
cd46431b
PA
50522015-03-20 Pedro Alves <palves@redhat.com>
5053
5054 * tui/tui-io.c (tui_expand_tabs): Make "s1" const.
5055
e28566f7
PA
50562015-03-20 Pedro Alves <palves@redhat.com>
5057
5058 * xcoffread.c (scan_xcoff_symtab): Make "p" and "q" const.
5059
f6fc92f6
PA
50602015-03-20 Pedro Alves <palves@redhat.com>
5061
5062 * remote-m32r-sdi.c (m32r_open): Make "port_str" const.
5063
c32ed3ef
PA
50642015-03-20 Pedro Alves <palves@redhat.com>
5065
5066 * nto-tdep.c (nto_find_and_open_solib): Make "endian" const.
5067 (nto_init_solib_absolute_prefix): Likewise.
5068
53e78085
PA
50692015-03-20 Pedro Alves <palves@redhat.com>
5070
5071 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Make "p" const.
5072 * spu-tdep.c (spu_gdbarch_init): Make "name" const.
5073
bc23328c
JK
50742015-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5075
5076 * config/djgpp/README: Remove gdb.hp.
5077
e8ffc436
YQ
50782015-03-20 Yao Qi <yao.qi@linaro.org>
5079
5080 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
5081 set_gdbarch_cannot_step_breakpoint.
5082
23f238d3
PA
50832015-03-19 Pedro Alves <palves@redhat.com>
5084
5085 * linux-nat.c (linux_resume_one_lwp): Rename to ...
5086 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
5087 instead call perror_with_name.
5088 (check_ptrace_stopped_lwp_gone): New function.
5089 (linux_resume_one_lwp): Reimplement as wrapper around
5090 linux_resume_one_lwp_throw that swallows errors if the LWP is
5091 gone.
5092 (resume_stopped_resumed_lwps): Try register reads in TRY/CATCH and
5093 swallows errors if the LWP is gone. Use
5094 linux_resume_one_lwp_throw instead of linux_resume_one_lwp.
5095
eb54c8bf
PA
50962015-03-19 Pedro Alves <palves@redhat.com>
5097
5098 * linux-nat.c (status_callback): Return early if the LWP has no
5099 status pending.
5100
b90fc188
PA
51012015-03-19 Pedro Alves <palves@redhat.com>
5102
5103 * linux-nat.c (select_event_lwp_callback): Update comment to no
5104 longer mention SIGTRAP.
5105
670f82d4
TG
51062015-03-18 Tristan Gingold <gingold@adacore.com>
5107
72f4393d
L
5108 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Move
5109 redirection code to ...
5110 (amd64_windows_frame_decode_insns): ... Here. Fix in prologue
5111 checks. Fix SAVE_NONVOL operations. Add debug code and comments.
670f82d4 5112
464b0089
GB
51132015-03-18 Gary Benson <gbenson@redhat.com>
5114
5115 (remote_protocol_features): Remove the "vFile:fstat" feature.
5116 (remote_hostio_fstat): Probe for "vFile:fstat" support.
5117
f68f11b7
YQ
51182015-03-11 Yao Qi <yao.qi@linaro.org>
5119
5120 PR tdep/18107
5121 * aarch64-linux-tdep.c: Include xml-syscall.h
5122 (aarch64_linux_get_syscall_number): New function.
5123 (aarch64_linux_init_abi): Call
5124 set_gdbarch_get_syscall_number.
5125 * syscalls/aarch64-linux.xml: New file.
5126
393bd0c0
YG
51272015-03-17 Yurij Grechishhev <yurij.grechishhev@gmail.com>
5128
5129 * ser-base.h (ser_base_setstopbits): Change second argument name
5130 from "rate" to "num".
5131
7f3647e2
GB
51322015-03-17 Gary Benson <gbenson@redhat.com>
5133 Luke Allardyce <lukeallardyce@gmail.com>
5134
5135 PR gdb/18131
5136 * common/common-remote-fileio.h (sys/stat.h): New include.
5137 (stuct stat): Remove forward declaration.
5138
3ce5b6e2
JB
51392015-03-16 John Baldwin <jhb@FreeBSD.org>
5140
5141 * fbsd-tdep.c (fbsd_make_corefile_notes): Fetch all target registers
5142 before writing core register notes.
5143
d053f6be
YZ
51442015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
5145 Pedro Alves <palves@redhat.com>
5146
5147 * gdb_curses.h (tgetnum): Mark with EXTERN_C.
5148 * stub-termcap.c (tgetent, tgetnum, tgetflag, tgetstr, tputs)
5149 (tgoto): Wrap with extern "C".
5150
b1a921c8
PA
51512015-03-16 Pedro Alves <palves@redhat.com>
5152 Yuanhui Zhang <asmwarrior@gmail.com>
5153
5154 * stub-termcap.c (tputs): Change prototype.
5155
876d1cd7
YZ
51562015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
5157 Pedro Alves <palves@redhat.com>
5158
5159 * windows-nat.c (struct thread_info_struct): Rename to ...
5160 (struct windows_thread_info_struct): ... this.
5161 (thread_info): Rename to ...
5162 (windows_thread_info): ... this.
5163 All users updated.
5164
0800b440
JK
51652015-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5166 Pedro Alves <palves@redhat.com>
5167
5168 * NEWS: New Removed targets and native configurations.
5169
51702015-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
61a12cfa
JK
5171
5172 Remove HPUX.
5173 * Makefile.in (ALL_64_TARGET_OBS): Remove ia64-hpux-tdep.o.
5174 (ALL_TARGET_OBS): Remove hppa-hpux-tdep.o, solib-som.o and solib-pa64.o.
5175 (HFILES_NO_SRCDIR): Remove solib-som.h, inf-ttrace.h, solib-pa64.h and
5176 ia64-hpux-tdep.h, solib-ia64-hpux.h.
5177 (ALLDEPFILES): Remove hppa-hpux-tdep.c, hppa-hpux-nat.c,
5178 ia64-hpux-nat.c, ia64-hpux-tdep.c, somread.c and solib-som.c.
5179 * config/djgpp/fnchange.lst: Remove hppa-hpux-nat.c and
5180 hppa-hpux-tdep.c.
5181 * config/ia64/hpux.mh: Remove file.
5182 * config/pa/hpux.mh: Remove file.
5183 * configure: Rebuilt.
5184 * configure.ac (dlgetmodinfo, somread.o): Remove.
5185 * configure.host (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
5186 (ia64-*-hpux*): Remove its float format exception.
5187 * configure.tgt (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
5188 * hppa-hpux-nat.c: Remove file.
5189 * hppa-hpux-tdep.c: Remove file.
5190 * hppa-tdep.c (struct hppa_unwind_info, struct hppa_objfile_private):
5191 Move them here from hppa-tdep.h
5192 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Make it static.
5193 (hppa_frame_prev_register_helper): Remove HPPA_FLAGS_REGNUM exception.
5194 * hppa-tdep.h (struct hppa_unwind_info, struct hppa_objfile_private):
5195 Move them to hppa-tdep.c.
5196 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Remove
5197 declarations.
5198 * ia64-hpux-nat.c: Remove file.
5199 * ia64-hpux-tdep.c: Remove file.
5200 * ia64-hpux-tdep.h: Remove file.
5201 * inf-ttrace.c: Remove file.
5202 * inf-ttrace.h: Remove file.
5203 * solib-ia64-hpux.c: Remove file.
5204 * solib-ia64-hpux.h: Remove file.
5205 * solib-pa64.c: Remove file.
5206 * solib-pa64.h: Remove file.
5207 * solib-som.c: Remove file.
5208 * solib-som.h: Remove file.
5209 * somread.c: Remove file.
5210
25268153
JB
52112015-03-13 John Baldwin <jhb@FreeBSD.org>
5212
5213 * configure.ac: AC_SEARCH_LIBS(kinfo_getvmmap, util).
5214 * config.in: Regenerate.
5215 * configure: Regenerate.
5216 * fbsd-nat.c [!HAVE_KINFO_GETVMMAP] (fbsd_read_mapping): Don't
72f4393d 5217 define.
25268153
JB
5218 (fbsd_find_memory_regions): Use kinfo_getvmmap to
5219 enumerate memory regions if present.
5220
773eacf5
JB
52212015-03-13 John Baldwin <jhb@FreeBSD.org>
5222
5223 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_p): Style fixes.
5224 * i386fbsd-tdep.c: Fix style in various gdb_static_assert
5225 expressions.
5226 (i386fbsd_sigtramp_p): Likewise.
5227
01b6bdb0
JB
52282015-03-12 John Baldwin <jhb@FreeBSD.org>
5229
5230 * MAINTAINERS (Write After Approval): Add John Baldwin.
5231
811a659a
GB
52322015-03-12 Gary Benson <gbenson@redhat.com>
5233
5234 * solib.c (_initialize_solib): Make "set/show sysroot" use
5235 add_setshow_optional_filename_cmd so it can be restored to
5236 empty after being set.
5237
10304ef3
SDJ
52382015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
5239
5240 * Makefile.in (SFILES): New source break-catch-syscall.c.
5241 (COMMON_OBS): New object break-catch-syscall.o.
5242 * break-catch-syscall.c: New file.
5243 * breakpoint.c: Remove inclusion of "xml-syscall.h".
5244 (syscall_catchpoint_p): Move declaration to break-catch-syscall.c
5245 (struct syscall_catchpoint): Likewise.
5246 (dtor_catch_syscall): Likewise.
5247 (catch_syscall_inferior_data): Likewise.
5248 (struct catch_syscall_inferior_data): Likewise.
5249 (get_catch_syscall_inferior_data): Likewise.
5250 (catch_syscall_inferior_data_cleanup): Likewise.
5251 (insert_catch_syscall): Likewise.
5252 (remove_catch_syscall): Likewise.
5253 (breakpoint_hit_catch_syscall): Likewise.
5254 (print_it_catch_syscall): Likewise.
5255 (print_one_catch_syscall): Likewise.
5256 (print_mention_catch_syscall): Likewise.
5257 (print_recreate_catch_syscall): Likewise.
5258 (catch_syscall_breakpoint_ops): Likewise.
5259 (syscall_catchpoint_p): Likewise.
5260 (create_syscall_event_catchpoint): Likewise.
5261 (catch_syscall_split_args): Likewise.
5262 (catch_syscall_command_1): Likewise.
5263 (is_syscall_catchpoint_enabled): Likewise.
5264 (catch_syscall_enabled): Likewise.
5265 (catching_syscall_number): Likewise.
5266 (catch_syscall_completer): Likewise.
5267 (clear_syscall_counts): Likewise.
5268 (initialize_breakpoint_ops): Move initialization of syscall
5269 catchpoints to break-catch-syscall.c.
5270 (_initialize_breakpoint): Move code related to syscall catchpoints
5271 to break-catch-syscall.c.
5272
badd37ce
SDJ
52732015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
5274
5275 * breakpoint.c (breakpoint_find_if): New function.
5276 * breakpoint.h (breakpoint_find_if): New prototype.
5277
0a93529c
GB
52782015-03-11 Gary Benson <gbenson@redhat.com>
5279
5280 * remote-fileio.h (remote_fileio_to_host_stat): New declaration.
5281 * remote-fileio.c (remote_fileio_to_host_uint): New function.
5282 (remote_fileio_to_host_ulong): Likewise.
5283 (remote_fileio_to_host_mode): Likewise.
5284 (remote_fileio_to_host_time): Likewise.
5285 (remote_fileio_to_host_stat): Likewise.
5286 * remote.c (PACKET_vFile_fstat): New enum value.
5287 (remote_protocol_features): Register the "vFile:fstat" feature.
5288 (remote_hostio_fstat): New function.
5289 (remote_bfd_iovec_stat): Use the above.
5290 (_initialize_remote): Register new "set/show remote
5291 hostio-fstat-packet" command.
5292 * symfile.c (separate_debug_file_exists): Update comment.
5293 * NEWS: Announce new vFile:fstat packet.
5294
791c0056
GB
52952015-03-11 Gary Benson <gbenson@redhat.com>
5296
5297 * common/common-remote-fileio.h: New file.
5298 * common/common-remote-fileio.c: Likewise.
5299 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
5300 (HFILES_NO_SRCDIR): Add common/common-remote-fileio.h.
5301 (COMMON_OBS): Add common-remote-fileio.o.
5302 (common-remote-fileio.o): New rule.
5303 * remote-fileio.h (common-remote-fileio.h): New include.
5304 * remote-fileio.c (gdb/fileio.h): Do not include.
5305 (remote_fileio_to_be): Moved to common-remote-fileio.h.
5306 (remote_fileio_to_fio_uint): Likewise.
5307 (remote_fileio_to_fio_time): Likewise.
5308 (remote_fileio_mode_to_target): Moved to common-remote-fileio.c.
5309 (remote_fileio_to_fio_mode): Likewise.
5310 (remote_fileio_to_fio_ulong): Likewise.
5311 (remote_fileio_to_fio_stat): Likewise.
5312
1390d0ef
AW
53132015-03-11 Andy Wingo <wingo@igalia.com>
5314
5315 * guile/scm-value.c (gdbscm_value_dynamic_type): Fix typo in which
5316 we were checking the cached type, not the cached dynamic type.
5317
84a4591a
AW
53182015-03-11 Andy Wingo <wingo@igalia.com>
5319
5320 * guile/scm-cmd.c (cmdscm_destroyer): Don't xfree the name and
5321 other strings, as these are on the GC'd heap, and will be
5322 collected along with the smob.
5323
85642ba0
AW
53242015-03-11 Andy Wingo <wingo@igalia.com>
5325
5326 * guile/scm-objfile.c (gdbscm_objfile_progspace): New function.
5327 (objfile_functions): Bind gdbscm_objfile_progspace to
5328 objfile-progspace.
5329 * guile/lib/gdb.scm: Add objfile-progspace to exports.
5330
92fab5a6
AW
53312015-03-11 Andy Wingo <wingo@igalia.com>
5332
5333 * guile/guile.c (_initialize_guile): Disable automatic
5334 finalization, if Guile offers us that possibility.
5335 * guile/guile.c (call_initialize_gdb_module):
5336 * guile/scm-safe-call.c (gdbscm_with_catch): Arrange to run
5337 finalizers in appropriate places.
5338 * configure.ac (AC_TRY_LIBGUILE): Add a check for
5339 scm_set_automatic_finalization_enabled.
5340 * configure: Regenerated.
5341
f054145e
AA
53422015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
5343
5344 * s390-linux-tdep.c (s390_skip_prologue): Skip the prologue using
5345 SAL, if possible.
5346
18396193
AA
53472015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
5348
5349 * s390-linux-nat.c (struct arch_lwp_info): New.
5350 (s390_fix_watch_points): Rename to...
5351 (s390_prepare_to_resume): ...this. Skip the PER info update
5352 unless the watch points have changed.
5353 (s390_refresh_per_info, s390_new_thread): New functions.
5354 (s390_insert_watchpoint): Call s390_refresh_per_info instead of
5355 s390_fix_watch_points.
5356 (s390_remove_watchpoint): Likewise.
5357 (_initialize_s390_nat): Reflect renaming of s390_fix_watch_points.
5358 Register s390_prepare_to_resume.
5359
9eb1356e
PA
53602015-03-09 Pedro Alves <palves@redhat.com>
5361
5362 Revert:
5363 2015-03-07 Pedro Alves <palves@redhat.com>
5364 * common/gdb_socket.h: New file.
5365 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
5366 sys/socket.h.
5367 (net_open): Use union gdb_sockaddr_u.
5368
aac331e4
PA
53692015-03-07 Pedro Alves <palves@redhat.com>
5370
5371 * configure.ac (build_warnings): Move -Wmissing-prototypes
5372 -Wdeclaration-after-statement -Wmissing-parameter-type
5373 -Wold-style-declaration -Wold-style-definition to the C-specific
5374 set.
5375 * configure: Regenerate.
5376
366c75fc
PA
53772015-03-07 Pedro Alves <palves@redhat.com>
5378
5379 * common/gdb_socket.h: New file.
5380 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
5381 sys/socket.h.
5382 (net_open): Use union gdb_sockaddr_u.
5383
72df25b2
PA
53842015-03-07 Pedro Alves <palves@redhat.com>
5385
5386 * common/common-exceptions.c [!__cplusplus] (enum catcher_state)
5387 (exceptions_state_mc_action_iter)
5388 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
5389 Don't define.
5390 [__cplusplus] (try_scope_depth): New global.
5391 [__cplusplus] (exception_try_scope_entry)
5392 (exception_try_scope_exit, gdb_exception_sliced_copy)
5393 (exception_rethrow): New functions.
5394 (throw_exception): In C++ mode, throw
5395 gdb_exception_RETURN_MASK_QUIT for RETURN_QUIT and
5396 gdb_exception_RETURN_MASK_ERROR for RETURN_ERROR.
5397 (throw_it): In C++ mode, use try_scope_depth.
5398 * common/common-exceptions.h [!__cplusplus]
5399 (exceptions_state_mc_action_iter)
5400 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
5401 Don't declare.
5402 [__cplusplus] (exception_try_scope_entry)
5403 (exception_try_scope_exit, exception_rethrow): Declare.
5404 [__cplusplus] (struct exception_try_scope): New struct.
5405 [__cplusplus] (TRY, CATCH, END_CATCH): Reimplement on top of real
5406 C++ exceptions.
5407 (struct gdb_exception_RETURN_MASK_ALL)
5408 (struct gdb_exception_RETURN_MASK_ERROR)
5409 (struct gdb_exception_RETURN_MASK_QUIT): New types.
5410
284e6217
PA
54112015-03-07 Pedro Alves <palves@redhat.com>
5412
5413 * main.c (handle_command_errors): Remove volatile qualifier from
5414 parameter.
5415
6c63c96a
PA
54162015-03-07 Pedro Alves <palves@redhat.com>
5417
5418 * breakpoint.c (save_breakpoints): Adjust to avoid code between
5419 TRY and CATCH.
5420 * gdbtypes.c (safe_parse_type): Remove empty line.
5421 (types_deeply_equal):
5422 * guile/scm-frame.c (gdbscm_frame_name):
5423 * linux-thread-db.c (find_new_threads_once):
5424 * python/py-breakpoint.c (bppy_get_commands):
5425 * record-btrace.c (record_btrace_insert_breakpoint)
5426 (record_btrace_remove_breakpoint, record_btrace_start_replaying)
5427 (record_btrace_start_replaying): Adjust to avoid code between TRY
5428 and CATCH.
5429
492d29ea
PA
54302015-03-07 Pedro Alves <palves@redhat.com>
5431
5432 * common/common-exceptions.c (struct catcher) <exception>: No
5433 longer a pointer to volatile exception. Now an exception value.
5434 <mask>: Delete field.
5435 (exceptions_state_mc_init): Remove all parameters. Adjust.
5436 (exceptions_state_mc): No longer pop the catcher here.
5437 (exceptions_state_mc_catch): New function.
5438 (throw_exception): Adjust.
5439 * common/common-exceptions.h (exceptions_state_mc_init): Remove
5440 all parameters.
5441 (exceptions_state_mc_catch): Declare.
5442 (TRY_CATCH): Rename to ...
5443 (TRY): ... this. Remove EXCEPTION and MASK parameters.
5444 (CATCH, END_CATCH): New.
5445 All callers adjusted.
5446
ece957c8
TT
54472015-03-07 Tom Tromey <tromey@redhat.com>
5448
5449 * top.c (quit_force): Inline and delete DO_TRY, DO_PRINT_EX.
5450
7556d4a4
PA
54512015-03-07 Pedro Alves <palves@redhat.com>
5452
5453 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
5454 (amd64_epilogue_frame_cache): Normal exception handling code.
5455 * break-catch-throw.c (check_status_exception_catchpoint)
5456 (re_set_exception_catchpoint): Ditto.
5457 * cli/cli-interp.c (safe_execute_command):
5458 * cli/cli-script.c (script_from_file): Ditto.
5459 * compile/compile-c-symbols.c (generate_c_for_for_one_variable):
5460 Ditto.
5461 * compile/compile-object-run.c (compile_object_run): Ditto.
5462 * cp-abi.c (baseclass_offset): Ditto.
5463 * cp-valprint.c (cp_print_value): Ditto.
5464 * exceptions.c (catch_exceptions_with_msg):
5465 * frame-unwind.c (frame_unwind_try_unwinder): Ditto.
5466 * frame.c (get_frame_address_in_block_if_available): Ditto.
5467 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
5468 (i386_sigtramp_frame_cache): Ditto.
5469 * infcmd.c (post_create_inferior): Ditto.
5470 * linespec.c (parse_linespec, find_linespec_symbols):
5471 * p-valprint.c (pascal_object_print_value): Ditto.
5472 * parse.c (parse_expression_for_completion): Ditto.
5473 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
5474 * remote.c (remote_get_noisy_reply): Ditto.
5475 * s390-linux-tdep.c (s390_frame_unwind_cache): Ditto.
5476 * solib-svr4.c (solib_svr4_r_map): Ditto.
5477
f873665f 54782015-03-06 Gary Benson <gbenson@redhat.com>
61012eef
GB
5479
5480 * common/common-utils.h (startswith): New inline function.
5481 All places where this logic was used updated to use the above.
5482
68901c4d
PA
54832015-03-05 Pedro Alves <palves@redhat.com>
5484
5485 PR gdb/18002
5486 * mem-break.c (default_memory_insert_breakpoint): Set shadow_len
5487 after reading the breakpoint's shadow memory.
5488
2dcb2b1a
MK
54892015-03-05 Mark Kettenis <kettenis@gnu.org>
5490
5491 * hppabsd-nat.c: Remove file.
5492 * hppaobsd-nat.c: New file.
5493 * Makefile.in (ALLDEPFILES): Remove hppabsd-nat.c. Add
5494 hppaobsd-nat.c.
5495 * config/pa/obsd.mh (NATDEPFILES): Replace hppabsd-nat.o with
5496 hppaobsd-nat.o.
5497
527a273a
PA
54982015-03-04 Pedro Alves <palves@redhat.com>
5499
5500 * target.h (struct target_ops) <to_decr_pc_after_break>: Delete.
5501 (target_decr_pc_after_break): Delete declaration.
5502 * target.c (default_target_decr_pc_after_break)
5503 (target_decr_pc_after_break): Delete.
5504 * linux-nat.c (check_stopped_by_breakpoint, linux_nat_wait_1): Use
5505 gdbarch_decr_pc_after_break instead of target_decr_pc_after_break.
5506 * linux-thread-db.c (check_event): Likewise.
5507 * infrun.c (adjust_pc_after_break): Likewise.
5508 * darwin-nat.c (cancel_breakpoint): Likewise.
5509 * aix-thread.c (aix_thread_wait): Likewise.
5510 * target-delegates.c: Regenerate.
5511
faf09f01
PA
55122015-03-04 Pedro Alves <palves@redhat.com>
5513
5514 * linux-nat.c (save_sigtrap): Check for breakpoints before
5515 checking watchpoints.
5516 (status_callback) [USE_SIGTRAP_SIGINFO]: Don't check whether a
5517 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
5518 (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]: Decide whether
5519 a breakpoint triggered based on the SIGTRAP's siginfo.si_code.
5520 (linux_nat_stopped_by_sw_breakpoint)
5521 (linux_nat_supports_stopped_by_sw_breakpoint)
5522 (linux_nat_stopped_by_hw_breakpoint)
5523 (linux_nat_supports_stopped_by_hw_breakpoint): New functions.
5524 (linux_nat_wait_1): Don't re-increment the PC if relying on
5525 SIGTRAP's siginfo->si_code.
5526 (linux_nat_add_target): Install new target methods.
5527 * linux-thread-db.c (check_event): Don't account for breakpoint PC
5528 offset if the target already adjusted the PC.
5529 * nat/linux-ptrace.h (USE_SIGTRAP_SIGINFO): New.
5530 (GDB_ARCH_TRAP_BRKPT): New.
5531 (TRAP_HWBKPT): Define if not already defined.
5532
f7e6eed5
PA
55332015-03-04 Pedro Alves <palves@redhat.com>
5534
5535 * NEWS: Mention the new "swbreak" and "hwbreak" stop reasons.
5536 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p>:
5537 Delete field.
5538 <stop_reason>: New field.
5539 (PACKET_swbreak_feature, PACKET_hwbreak_feature): New enum values.
5540 (packet_set_cmd_state): New function.
5541 (remote_protocol_features): Register the "swbreak" and "hwbreak"
5542 features.
5543 (remote_query_supported): If not disabled with the corresponding
5544 "set remote foo-packet" command, report support for the swbreak
5545 and hwbreak features.
5546 (struct stop_reply) <remote_stopped_by_watchpoint_p>: Delete
5547 field.
5548 <stop_reason>: New field.
5549 (remote_parse_stop_reply): Handle "swbreak" and "hwbreak".
5550 (remote_wait_as): Adjust.
5551 (remote_stopped_by_sw_breakpoint)
5552 (remote_supports_stopped_by_sw_breakpoint)
5553 (remote_stopped_by_hw_breakpoint)
5554 (remote_supports_stopped_by_hw_breakpoint): New functions.
5555 (remote_stopped_by_watchpoint): New function.
5556 (init_remote_ops): Install them.
5557 (_initialize_remote): Register new "set/show remote
5558 swbreak-feature-packet" and "set/show remote
5559 swbreak-feature-packet" commands.
5560
9e8915c6
PA
55612015-03-04 Pedro Alves <palves@redhat.com>
5562
5563 * btrace.h: Include target/waitstatus.h.
5564 (struct btrace_thread_info) <stop_reason>: New field.
5565 * record-btrace.c (record_btrace_step_thread): Use
5566 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
5567 (record_btrace_decr_pc_after_break): Delete.
5568 (record_btrace_stopped_by_sw_breakpoint)
5569 (record_btrace_supports_stopped_by_sw_breakpoint)
5570 (record_btrace_stopped_by_hw_breakpoint)
5571 (record_btrace_supports_stopped_by_hw_breakpoint): New functions.
5572 (init_record_btrace_ops): Install them.
5573 * record-full.c (record_full_hw_watchpoint): Delete and replace
5574 with ...
5575 (record_full_stop_reason): ... this throughout.
5576 (record_full_exec_insn): Adjust.
5577 (record_full_wait_1): Adjust. No longer re-increment the PC.
5578 (record_full_wait_1): Adjust. Use
5579 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
5580 (record_full_stopped_by_watchpoint): Adjust.
5581 (record_full_stopped_by_sw_breakpoint)
5582 (record_full_supports_stopped_by_sw_breakpoint)
5583 (record_full_supports_stopped_by_sw_breakpoint)
5584 (record_full_stopped_by_hw_breakpoint)
5585 (record_full_supports_stopped_by_hw_breakpoint): New functions.
5586 (init_record_full_ops, init_record_full_core_ops): Install them.
5587 * record.c (record_check_stopped_by_breakpoint): New function.
5588 * record.h: Include target/waitstatus.h.
5589 (record_check_stopped_by_breakpoint): New declaration.
5590
15c66dd6
PA
55912015-03-04 Pedro Alves <palves@redhat.com>
5592
5593 enum lwp_stop_reason -> enum target_stop_reason
5594 * linux-nat.c (linux_resume_one_lwp, check_stopped_by_watchpoint)
5595 (linux_nat_stopped_by_watchpoint, status_callback)
5596 (linux_nat_wait_1): Adjust.
5597 * linux-nat.h (enum lwp_stop_reason): Delete.
5598 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
5599 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
5600 * target/waitstatus.h (enum target_stop_reason): New.
5601
1cf4d951
PA
56022015-03-04 Pedro Alves <palves@redhat.com>
5603
5604 * breakpoint.c (need_moribund_for_location_type): New function.
5605 (bpstat_stop_status): Don't skipping checking moribund locations
5606 of breakpoint types which the target tell caused a stop.
5607 (program_breakpoint_here_p): New function, factored out from ...
5608 (bp_loc_is_permanent): ... this.
5609 (update_global_location_list): Don't create a moribund location if
5610 the target supports reporting stops of the type of the removed
5611 breakpoint.
5612 * breakpoint.h (program_breakpoint_here_p): New declaration.
5613 * infrun.c (adjust_pc_after_break): Return early if the target has
5614 already adjusted the PC. Add comments.
5615 (handle_signal_stop): If nothing explains a signal, and the target
5616 tells us the stop was caused by a software breakpoint, check if
5617 there's a breakpoint instruction in the memory. If so, adjust the
5618 PC before presenting the stop to the user. Otherwise, ignore the
5619 trap. If nothing explains a signal, and the target tells us the
5620 stop was caused by a hardware breakpoint, ignore the trap.
5621 * target.h (struct target_ops) <to_stopped_by_sw_breakpoint,
5622 to_supports_stopped_by_sw_breakpoint, to_stopped_by_hw_breakpoint,
5623 to_supports_stopped_by_hw_breakpoint>: New fields.
5624 (target_stopped_by_sw_breakpoint)
5625 (target_supports_stopped_by_sw_breakpoint)
5626 (target_stopped_by_hw_breakpoint)
5627 (target_supports_stopped_by_hw_breakpoint): Define.
5628 * target-delegates.c: Regenerate.
5629
79639e11
PA
56302015-03-04 Pedro Alves <palves@redhat.com>
5631
5632 * infrun.c (follow_fork_inferior): Use the whole of the
5633 inferior_ptid and pending_follow.related_pid ptids instead of
5634 building ptids from the process components. Adjust verbose output
5635 to use target_pid_to_str.
5636 * linux-nat.c (linux_child_follow_fork): Use the whole of the
5637 inferior_ptid and pending_follow.related_pid ptids instead of
5638 building ptids from the process components.
5639
e85e8e5e
MK
56402015-03-04 Mark Kettenis <kettenis@gnu.org>
5641
5642 * inf-ptrace.c [PT_GET_PROCESS_STATE]
5643 (inf_ptrace_insert_fork_catchpoint): New function.
5644 (inf_ptrace_remove_fork_catchpoint): New function.
5645 (inf_ptrace_target) [PT_GET_PROCESS_STATE]: Install them.
5646
87de11c0
AA
56472015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
5648
5649 * s390-linux-tdep.c (s390_register_name): Return empty string
5650 instead of NULL for registers that shouldn't be visible.
5651
d851a69a
AA
56522015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
5653
5654 * s390-linux-tdep.c (s390_gdbarch_init): Use the correct syscall
5655 XML file for 64-bit targets.
5656
b072f6c1
SM
56572015-03-03 Simon Marchi <simon.marchi@ericsson.com>
5658
5659 * target.h (find_default_create_inferior): Remove declaration.
5660 (find_default_attach): Likewise.
5661
c1593e4f
PA
56622015-03-03 Pedro Alves <palves@redhat.com>
5663
5664 * inf-ptrace.c (inf_ptrace_resume): Remove spurious whitespace.
5665 Use ptid_get_pid to get the overall process id when resuming all
5666 threads.
5667
90ad5e1d
PA
56682015-03-03 Pedro Alves <palves@redhat.com>
5669
5670 * i386-linux-nat.c (i386_linux_resume): Get the ptrace PID out of
5671 the lwp field of ptid. Pass the full ptid to get_thread_regcache.
5672 * inf-ptrace.c (get_ptrace_pid): New function.
5673 (inf_ptrace_resume): Use it.
5674 * linux-nat.c (linux_resume_one_lwp): Pass the LWP's ptid ummodified
5675 to the lower layer.
5676
d68e53f4
MM
56772015-03-03 Markus Metzger <markus.t.metzger@intel.com>
5678
5679 * nat/linux-btrace.c: Include sys/utsname.h.
5680 (linux_determine_kernel_ptr_bits): New.
5681 (linux_enable_bts): Call linux_determine_kernel_ptr_bits.
5682 * x86-linux-nat.c (x86_linux_enable_btrace): Do not overwrite non-zero
5683 ptr_bits.
5684
986b6601
MM
56852015-03-03 Markus Metzger <markus.t.metzger@intel.com>
5686
5687 * btrace.c (ftrace_update_function): Treat return as tailcall for
5688 "_dl_runtime_resolve".
5689
ce0dfbea
MM
56902015-03-03 Markus Metzger <markus.t.metzger@intel.com>
5691
5692 * btrace.h (btrace_function) <lbegin, lend>: Remove.
5693 * btrace.c (ftrace_debug): Do not print the line range.
5694 (ftrace_skip_file, ftrace_update_lines): Remove.
5695 (ftrace_new_function): Remove lbegin and lend initialization.
5696 (btrace_compute_ftrace_bts): Remove call to ftrace_update_lines.
5697 * record-btrace.c (btrace_compute_src_line_range): New.
5698 (btrace_call_history_src_line): Call btrace_compute_src_line_range.
5699
95e50b27
PA
57002015-03-02 Pedro Alves <palves@redhat.com>
5701
5702 * infrun.c (follow_exec): Delete all threads of the process except
5703 the event thread. Extended comments.
5704
00e474c2
JB
57052015-03-02 Joel Brobecker <brobecker@adacore.com>
5706
5707 * contrib/ari/gdb_ari.sh: Reinstate checks for "true" and "false".
5708
cc7039d3
JB
57092015-03-02 Joel Brobecker <brobecker@adacore.com>
5710
5711 * utils.h: Remove <stdbool.h> #include.
5712 (producer_is_gcc): Change return type to "int".
5713 * utils.c (producer_is_gcc): Change return type to int.
5714 Return 1 instead of true, and 0 instead of false.
5715 Adjust function documentation accordingly.
5716
550bdf96
AA
57172015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
5718
5719 * s390-linux-nat.c (have_regset_vxrs): New static variable.
5720 (s390_linux_fetch_inferior_registers): Handle vector registers, if
5721 present.
5722 (s390_linux_store_inferior_registers): Likewise.
5723 (s390_get_hwcap): Remove function. Embed its logic...
5724 (s390_read_description): ...here. Yield a target description with
5725 vector registers if applicable.
5726 * s390-linux-tdep.c: Include "features/s390-vx-linux64.c",
5727 "features/s390-tevx-linux64.c", "features/s390x-vx-linux64.c", and
5728 "features/s390x-tevx-linux64.c".
5729 (struct gdbarch_tdep) <v0_full_regnum>: New field.
5730 (s390_dwarf_regmap): Add vector registers. Remove bogus entries
5731 for "GNU/Linux-specific registers".
5732 (s390_dwarf_reg_r0l): New enum value.
5733 (s390_dwarf_reg_to_regnum): Support vector registers.
5734 (s390_adjust_frame_regnum): Adjust pseudo DWARF register numbers
5735 of GPR lower halves.
5736 (regnum_is_vxr_full): New function.
5737 (s390_register_name): New function.
5738 (s390_pseudo_register_name): Handle v0-v15, which are composed of
5739 f0-f15 and v0l-v15l.
5740 (s390_pseudo_register_type): Likewise.
5741 (s390_pseudo_register_read): Likewise.
5742 (s390_pseudo_register_write): Likewise.
5743 (s390_value_from_register): Account for the fact that values are
5744 placed left-justified in vector registers.
5745 (s390_pseudo_register_reggroup_p): Add pseudo registers v0-v15 to
5746 the vector reggroup and omit them from the general reggroup.
5747 (s390_regmap_vxrs_low, s390_regmap_vxrs_high): New register maps.
5748 (s390_vxrs_low_regset, s390_vxrs_high_regset): New regsets.
5749 (s390_iterate_over_regset_sections): Add iterations for the two
5750 new vector regsets.
5751 (s390_core_read_description): Yield a target description with
5752 vector registers if applicable.
5753 (s390_gdbarch_init): Handle target descriptions with vector
5754 registers. Add "register_name" gdbarch method.
5755 (_initialize_s390_tdep): Call new tdesc initialization functions.
5756 * s390-linux-tdep.h (HWCAP_S390_VX): New macro.
5757 (S390_V0_LOWER_REGNUM, S390_V1_LOWER_REGNUM, S390_V2_LOWER_REGNUM)
5758 (S390_V3_LOWER_REGNUM, S390_V4_LOWER_REGNUM, S390_V5_LOWER_REGNUM)
5759 (S390_V6_LOWER_REGNUM, S390_V7_LOWER_REGNUM, S390_V8_LOWER_REGNUM)
5760 (S390_V9_LOWER_REGNUM, S390_V10_LOWER_REGNUM)
5761 (S390_V11_LOWER_REGNUM, S390_V12_LOWER_REGNUM)
5762 (S390_V13_LOWER_REGNUM, S390_V14_LOWER_REGNUM)
5763 (S390_V15_LOWER_REGNUM, S390_V16_REGNUM, S390_V17_REGNUM)
5764 (S390_V18_REGNUM, S390_V19_REGNUM, S390_V20_REGNUM)
5765 (S390_V21_REGNUM, S390_V22_REGNUM, S390_V23_REGNUM)
5766 (S390_V24_REGNUM, S390_V25_REGNUM, S390_V26_REGNUM)
5767 (S390_V27_REGNUM, S390_V28_REGNUM, S390_V29_REGNUM)
5768 (S390_V30_REGNUM, S390_V31_REGNUM): New macros.
5769 (S390_NUM_REGS): Adjust value.
5770 (s390_vxrs_low_regset, s390_vxrs_high_regset): Declare.
5771 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
5772 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): Likewise.
5773 * NEWS: Announce S/390 vector register support.
5774
446899e4
AA
57752015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
5776
5777 * features/s390-tevx-linux64.xml: New file.
5778 * features/s390-vx-linux64.xml: New file.
5779 * features/s390-vx.xml: New file.
5780 * features/s390x-tevx-linux64.xml: New file.
5781 * features/s390x-vx-linux64.xml: New file.
5782 * features/Makefile (WHICH): Add s390-vx-linux64,
5783 s390x-vx-linux64, s390-tevx-linux64, and s390x-tevx-linux64.
5784 (s390-vx-linux64-expedite, s390-tevx-linux64-expedite)
5785 (s390x-vx-linux64-expedite, s390x-tevx-linux64-expedite): New
5786 macros.
5787 * features/s390-tevx-linux64.c: New generated file.
5788 * features/s390-vx-linux64.c: Likewise.
5789 * features/s390x-tevx-linux64.c: Likewise.
5790 * features/s390x-vx-linux64.c: Likewise.
5791 * regformats/s390-tevx-linux64.dat: Likewise.
5792 * regformats/s390-vx-linux64.dat: Likewise.
5793 * regformats/s390x-tevx-linux64.dat: Likewise.
5794 * regformats/s390x-vx-linux64.dat: Likewise.
5795
b7236fbe
DE
57962015-02-28 Doug Evans <xdje42@gmail.com>
5797
5798 * symtab.h (struct symtab) <next>: Fix comment.
5799
02e62830
SM
58002015-02-27 Simon Marchi <simon.marchi@ericsson.com>
5801
5802 * python/python.c (python_GdbModuleDef): Rename GdbMethods to
5803 python_GdbMethods.
5804
bf36a1e7
PA
58052015-02-27 Pedro Alves <palves@redhat.com>
5806
5807 * dtrace-probe.c (dtrace_probe_ops): Make extern.
5808
ad6aff7d
PA
58092015-02-27 Pedro Alves <palves@redhat.com>
5810
5811 * common/common-exceptions.h (exception_none): Declare.
5812 * common/common-exceptions.c (exception_none): Moved from
5813 exceptions.c.
5814 (exceptions_state_mc_init): Use exception_none.
5815 * exceptions.c (exception_none): Move to
5816 common/common-exceptions.c.
5817 * exceptions.h (exception_none): Move to
5818 common/common-exceptions.h.
5819
97c18565
PA
58202015-02-27 Pedro Alves <palves@redhat.com>
5821
5822 * main.c (catch_command_errors, catch_command_errors_const):
5823 Remove 'mask' argument. Adjust.
5824 (captured_main): Adjust callers.
5825
e992c591
PA
58262015-02-27 Pedro Alves <palves@redhat.com>
5827
5828 * python/python-internal.h: Include "extension-priv.h".
5829
64166036
PA
58302015-02-27 Pedro Alves <palves@redhat.com>
5831
5832 * breakpoint.h (enum print_stop_action): Move further up in the
5833 file.
5834
8a526fa6
PA
58352015-02-27 Pedro Alves <palves@redhat.com>
5836
5837 * gdbarch.sh: Include regcache.h.
5838 * gdbarch.h: Regenerate.
5839
0fa9c223
PA
58402015-02-27 Pedro Alves <palves@redhat.com>
5841
5842 * arm-tdep.c (decode_insn) <arm_handle_insn, thumb_handle_insn>:
5843 Remove duplicate const.
5844 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Remove
5845 duplicate const.
5846
7cf99fb1
PA
58472015-02-27 Pedro Alves <palves@redhat.com>
5848
5849 * cp-valprint.c (vtbl_ptr_name): Use EXPORTED_CONST.
5850 * guile/guile.c (extension_language_guile): Use EXPORTED_CONST.
5851 * features/feature_to_c.sh: Tag the generated xml_builtin array
5852 with extern const in C++ mode.
5853
1424c16e
TT
58542015-02-27 Tom Tromey <tromey@redhat.com>
5855
5856 * minidebug.c (struct lzma_stream): Rename to ...
5857 (struct gdb_lzma_stream): ... this.
5858 (lzma_open, lzma_pread, lzma_close, lzma_stat): Adjust.
5859
10367c7c
PA
58602015-02-27 Pedro Alves <palves@redhat.com>
5861
5862 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): New
5863 function.
5864 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
5865 (mi_cmd_stack_list_variables): Use it.
5866
4180215b
PA
58672015-02-27 Pedro Alves <palves@redhat.com>
5868
5869 * x86-linux-nat.c (u_debugreg_offset): New function.
5870 (x86_linux_dr_get, x86_linux_dr_set): Use it.
5871
2f56f7c3
PA
58722015-02-27 Pedro Alves <palves@redhat.com>
5873
5874 * nat/x86-dregs.h (enum target_hw_bp_type): Remove forward
5875 declaration.
5876 Include break-common.h.
5877
570dc176
TT
58782015-02-27 Tom Tromey <tromey@redhat.com>
5879 Pedro Alves <palves@redhat.com>
5880
5881 * arm-tdep.c (set_fp_model_sfunc, arm_set_abi): Use 'int' for
5882 local used to iterate over enums.
5883 * completer.c (signal_completer): Likewise.
5884 * i386-tdep.c (i386_stap_parse_special_token): Likewise.
5885 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
5886 * tui/tui-data.c (tui_next_win, tui_prev_win): Likewise.
5887 * tui/tui-layout.c (next_layout, prev_layout): Likewise.
5888 * tui/tui-win.c (tui_refresh_all_win, tui_rehighlight_all)
5889 (tui_resize_all, tui_set_focus_command, tui_all_windows_info): Likewise.
5890 * tui-wingeneral.c (tui_refresh_all): Likewise.
5891
68c14faa
PA
58922015-02-27 Pedro Alves <palves@redhat.com>
5893
5894 * target.h: Include "infrun.h".
5895
749bab01
PA
58962015-02-27 Pedro Alves <palves@redhat.com>
5897
5898 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
5899
3c14e5a3
PA
59002015-02-27 Pedro Alves <palves@redhat.com>
5901
5902 * common/agent.h (IPA_SYM_EXPORTED_NAME): New.
5903 (IPA_SYM): Use it.
5904 * common/common-defs.h (EXTERN_C_PUSH, EXTERN_C_POP): New macros.
5905
56000a98
PA
59062015-02-27 Pedro Alves <palves@redhat.com>
5907
5908 * cli-out.c (_rl_erase_entire_line): Move declaration out of
5909 cli_mld_erase_entire_line, and make it extern "C".
5910 * common/common-defs.h (EXTERN_C): New.
5911 * completer.c (_rl_completion_prefix_display_length)
5912 (_rl_print_completions_horizontally, QSFUNC): Move declarations
5913 out of gdb_display_match_list_1.
5914 (_rl_qsort_string_compare): Move declaration out of
5915 gdb_display_match_list_1, and make it extern "C".
5916 * defs.h (re_comp): Use EXTERN_C.
5917 * maint.c (_mcleanup): Move declaration out of mcleanup_wrapper,
5918 and make it extern "C".
5919 (monstartup): Move declaration out of maintenance_set_profile_cmd,
5920 and make it extern "C".
5921 (main): Move declaration out of maintenance_set_profile_cmd.
5922 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string): Use
5923 EXTERN_C.
5924
bcabf420
PA
59252015-02-27 Pedro Alves <palves@redhat.com>
5926
5927 * python/python.c (GdbMethods): Rename to ...
5928 (python_GdbMethods): ... this and make extern.
5929 (GdbModuleDef): Rename to ...
5930 (python_GdbModuleDef): ... this and make extern.
5931
928dbe07
PA
59322015-02-27 Pedro Alves <palves@redhat.com>
5933
5934 * record-btrace.c (set_record_btrace_cmdlist)
5935 (show_record_btrace_cmdlist): Remove redefinitions.
5936
52059ffd
TT
59372015-02-27 Tom Tromey <tromey@redhat.com>
5938 Pedro Alves <palves@redhat.com>
5939
5940 * dwarf2-frame.c (enum cfa_how_kind, struct
5941 dwarf2_frame_state_reg_info): Move out of struct
5942 dwarf2_frame_state.
5943 * dwarf2read.c (struct tu_stats): Move out of struct
5944 dwarf2_per_objfile.
5945 (struct file_entry): Move out of struct line_header.
5946 (struct nextfield, struct nextfnfield, struct fnfieldlist, struct
5947 typedef_field_list): Move out of struct field_info.
5948 * gdbtypes.h (enum dynamic_prop_kind, union dynamic_prop_data):
5949 Move out of struct dynamic_prop.
5950 (union type_owner, union field_location, struct field, struct
5951 range_bounds, union type_specific): Move out of struct main_type.
5952 (struct fn_fieldlist, struct fn_field, struct typedef_field)
5953 (VOFFSET_STATIC): Move out of struct cplus_struct_type.
5954 (struct call_site_target, union call_site_parameter_u, struct
5955 call_site_parameter): Move out of struct call_site.
5956 * m32c-tdep.c (enum m32c_prologue_kind): Move out of struct
5957 m32c_prologue.
5958 (enum srcdest_kind): Move out of struct srcdest.
5959 * main.c (enum cmdarg_kind): Move out of struct cmdarg.
5960 * prologue-value.h (enum prologue_value_kind): Move out of struct
5961 prologue_value.
5962 * s390-linux-tdep.c (enum s390_abi_kind): Move out of struct
5963 gdbarch_tdep.
5964 * stabsread.c (struct nextfield, struct next_fnfieldlist): Move
5965 out of struct field_info.
5966 * symfile.h (struct other_sections): Move out of struct
5967 section_addr_info.
5968 * symtab.c (struct symbol_cache_slot): Move out struct
5969 block_symbol_cache.
5970 * target-descriptions.c (enum tdesc_type_kind): Move out of
5971 typedef struct tdesc_type.
5972 * tui/tui-data.h (enum tui_line_or_address_kind): Move out of
5973 struct tui_line_or_address.
5974 * value.c (enum internalvar_kind, union internalvar_data): Move
5975 out of struct internalvar.
5976 * xtensa-tdep.h (struct ctype_cache): Move out of struct
5977 gdbarch_tdep.
5978
fe978cb0
PA
59792015-02-27 Tom Tromey <tromey@redhat.com>
5980 Pedro Alves <palves@redhat.com>
5981
5982 Rename symbols whose names are reserved C++ keywords throughout.
5983
3bc3d82a
PA
59842015-02-27 Pedro Alves <palves@redhat.com>
5985
5986 * Makefile.in (COMPILER): New, get it from autoconf.
5987 (COMPILE.pre, CC_LD): Use COMPILER.
5988 (CXX): Get from autoconf instead.
5989 (CXX_FOR_TARGET): Default to g++ instead of gcc.
5990 * acinclude.m4: Include build-with-cxx.m4.
5991 * build-with-cxx.m4: New file.
5992 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
5993 Disable -Werror by default if building in C++ mode.
5994 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
5995 -Wno-narrowing in C++ mode. Only enable -Wpointer-sign in C mode.
5996 Run supported-warning-flags tests with the C++ compiler.
5997 Save/restore CXXFLAGS too.
5998 * configure: Regenerate.
5999
07697489
PA
60002015-02-27 Pedro Alves <palves@redhat.com>
6001
6002 * libiberty.m4: New file.
6003 * acinclude.m4: Include libiberty.m4.
6004 * configure.ac: Call libiberty_INIT.
6005 * config.in, configure: Regenerate.
6006
60abeae4
AA
60072015-02-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
6008
6009 * s390-linux-tdep.c (s390_gcc_target_options): Not just handle
6010 31-bit targets, but 64-bit targets as well.
6011 (s390_gnu_triplet_regexp): New function.
6012 (s390_gdbarch_init): Set the gcc_target_options gdbarch method for
6013 64-bit targets as well. Set the gnu_triplet_regexp gdbarch
6014 method.
6015
f44466fb 60162015-02-27 Jon TURNEY <jon.turney@dronecode.org.uk> (tiny patch)
f0666312
JT
6017
6018 * windows-nat.c (CONTEXT_DEBUGGER): Remove.
6019 (CONTEXT_DEBUGGER_DR): Add CONTEXT_SEGMENTS. Incorporate flags
6020 from CONTEXT_DEBUGGER.
6021
0def5aaa
DE
60222015-02-26 Doug Evans <dje@google.com>
6023
6024 * gdbtypes.c (internal_type_vptr_fieldno): Add missing call to
6025 CHECK_TYPEDEF.
6026 (set_type_vptr_fieldno): Ditto.
6027 (internal_type_vptr_basetype, set_type_vptr_basetype): Ditto.
6028 * gnu-v3-abi.c (gnuv3_dynamic_class): Ditto.
6029
77b64a49
PA
60302015-02-26 Pedro Alves <palves@redhat.com>
6031
6032 * auto-load.h (file_is_auto_load_safe): Add ATTRIBUTE_PRINTF.
6033 * complaints.c (vcomplaint): Pass argument FMT directly to
6034 printf-like functions instead of complaint->fmt.
6035 * ctf.c (ctf_save_write_metadata): Add ATTRIBUTE_PRINTF.
6036 * darwin-nat.c (inferior_debug): Add ATTRIBUTE_PRINTF.
6037 * compile/compile-loc2c.c (pushf, unary, binary): Add
6038 ATTRIBUTE_PRINTF.
6039 (do_compile_dwarf_expr_to_c): Pass string literal as format string
6040 to pushf.
6041 (BINARY): Pass string literal as format string to 'binary'.
6042 * compile/compile-object-load.c (link_callbacks_einfo): Add
6043 ATTRIBUTE_PRINTF.
6044 * guile/guile-internal.h (gdbscm_printf): Add ATTRIBUTE_PRINTF.
6045
532f44ed
PA
60462015-02-26 Pedro Alves <palves@redhat.com>
6047
6048 * windows-termcap.c: Rename to ...
6049 * stub-termcap.c: ... this. Adjust header line.
6050 * Makefile.in (SFILES): Refer to stub-termcap.c instead of
6051 windows-termcap.c.
6052 * configure: Regenerate.
6053 * configure.ac: Refer to stub-termcap.o instead of
6054 windows-termcap.o.
6055 * gdb_curses.h: Mention stub-termcap.c instead of
6056 windows-termcap.c.
6057
081a1c2c
JK
60582015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6059
6060 * compile/compile-c-symbols.c (convert_one_symbol, convert_symbol_bmsym)
6061 (gcc_symbol_address): Call gnu_ifunc_resolve_addr.
6062
2f41223f
AT
60632015-02-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
6064
6065 * gdb/infcmd.c (print_return_value): use type_to_string to print type.
6066
80c57053
JK
60672015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6068
6069 * elfread.c (elf_read_minimal_symbols): Use bfd_alloc for
6070 bfd_canonicalize_symtab.
6071
cf424aef
JB
60722015-02-25 John Baldwin <jhb@FreeBSD.org>
6073
6074 * amd64fbsd-nat.c: Include sys/user.h.
6075 (_initialize_amd64fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
6076 instead of KERN_PS_STRINGS to locate the signal trampoline.
6077 * i386fbsd-nat.c: Include sys/user.h.
6078 (_initialize_i386fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
6079 instead of KERN_PS_STRINGS to locate the signal trampoline.
6080 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_code): New.
6081 (amd64fbsd_sigtramp_p): New.
6082 (amd64fbsd_sigtramp_start_addr, amd64fbsd_sigtramp_end_addr): No
6083 longer set default values.
6084 (amd64fbsd_init_abi): Set "sigtramp_p" to "amd64fbsd_sigtramp_p".
6085 * i386fbsd-tdep.c (i386fbsd_sigtramp_start)
6086 (i386fbsd_sigtramp_middle, i386fbsd_sigtramp_end)
6087 (i386fbsd_freebsd4_sigtramp_start)
6088 (i386fbsd_freebsd4_sigtramp_middle)
6089 (i386fbsd_freebsd4_sigtramp_end, i386fbsd_osigtramp_start)
6090 (i386fbsd_osigtramp_middle, i386fbsd_osigtramp_end): New.
6091 (i386fbsd_sigtramp_p): New.
6092 (i386fbsd_sigtramp_start_addr, i386fbsd_sigtramp_end_addr): No
6093 longer set default values.
6094 (i386fbsd_init_abi): Set "sigtramp_p" to "i386fbsd_sigtramp_p".
6095
c5cb74ee
JB
60962015-02-25 John Baldwin <jhb@freebsd.org>
6097
6098 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use
6099 get_frame_register instead of frame_unwind_register_unsigned.
6100
17487d85
JK
61012015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6102
6103 PR build/18033
6104 * compile/compile-c-support.c (c_compute_program): Change // comment.
6105 * compile/compile-object-load.c (setup_sections): Change // comment.
6106
9357a9e6
JB
61072015-02-26 Joel Brobecker <brobecker@adacore.com>
6108
6109 PR build/18033:
6110 * iq2000-tdep.c (iq2000_frame_cache): Delete C++-style comment.
6111
1f10ba14
PA
61122015-02-23 Pedro Alves <palves@redhat.com>
6113
6114 * remote.c (skip_to_semicolon): New function.
6115 (remote_parse_stop_reply) <T stop reply>: Use it. Don't
6116 special case the stop reasons that look like hex numbers
6117 upfront. Instead handle real register numbers after matching
6118 all the known stop reasons.
6119
96553a0c
DE
61202015-02-21 Doug Evans <dje@google.com>
6121
6122 PR c++/17976, symtab/17821
6123 * cp-namespace.c (cp_search_static_and_baseclasses): New parameter
6124 is_in_anonymous. All callers updated.
6125 (find_symbol_in_baseclass): Ditto.
6126 (cp_lookup_nested_symbol_1): Ditto. Don't search all static blocks
6127 for symbols in an anonymous namespace.
6128 * dwarf2read.c (namespace_name): Don't call dwarf2_name, fetch
6129 DW_AT_name directly.
6130 (dwarf2_name): Convert missing namespace name to
6131 CP_ANONYMOUS_NAMESPACE_STR.
6132
2db9a427
PA
61332015-02-20 Pedro Alves <palves@redhat.com>
6134
6135 * linux-nat.c (linux_handle_extended_wait): Call
6136 thread_db_notice_clone whenever a new clone LWP is detected.
6137 (linux_stop_and_wait_all_lwps, linux_unstop_all_lwps): New
6138 functions.
6139 * linux-nat.h (thread_db_attach_lwp): Delete declaration.
6140 (thread_db_notice_clone, linux_stop_and_wait_all_lwps)
6141 (linux_unstop_all_lwps): Declare.
6142 * linux-thread-db.c (struct thread_get_info_inout): Delete.
6143 (thread_get_info_callback): Delete.
6144 (thread_from_lwp): Use td_thr_get_info and record_thread.
6145 (thread_db_attach_lwp): Delete.
6146 (thread_db_notice_clone): New function.
6147 (try_thread_db_load_1): If /proc is mounted and shows the
6148 process'es task list, walk over all LWPs and call thread_from_lwp
6149 instead of relying on td_ta_thr_iter.
6150 (attach_thread): Don't call check_thread_signals here. Split the
6151 tail part of the function (which adds the thread to the core GDB
6152 thread list) to ...
6153 (record_thread): ... this function. Call check_thread_signals
6154 here.
6155 (thread_db_wait): Don't call thread_db_find_new_threads_1. Always
6156 call thread_from_lwp.
6157 (thread_db_update_thread_list): Rename to ...
6158 (thread_db_update_thread_list_org): ... this.
6159 (thread_db_update_thread_list): New function.
6160 (thread_db_find_thread_from_tid): Delete.
6161 (thread_db_get_ada_task_ptid): Simplify.
6162 * nat/linux-procfs.c: Include <sys/stat.h>.
6163 (linux_proc_task_list_dir_exists): New function.
6164 * nat/linux-procfs.h (linux_proc_task_list_dir_exists): Declare.
6165
3b27ef47
PA
61662015-02-20 Pedro Alves <palves@redhat.com>
6167
6168 * linux-nat.c (lin_lwp_attach_lwp): No longer special case the
6169 main LWP. Handle the case of waitpid returning 0 if we're already
6170 attached to the LWP. Don't set the LWP's last_resume_kind to
6171 resume_stop if we already knew about the LWP.
6172 (linux_nat_filter_event): Add debug logs.
6173
1cc28231
PA
61742015-02-20 Pedro Alves <palves@redhat.com>
6175
6176 * target.h (forward_target_decr_pc_after_break): Delete
6177 declaration.
6178
5c5019c2
PA
61792015-02-20 Pedro Alves <palves@redhat.com>
6180
6181 PR threads/18006
6182 * linux-thread-db.c (thread_get_info_callback): Return early if
6183 the thread's lwp id is -1.
6184
f3978e91
JB
61852015-02-20 Joel Brobecker <brobecker@adacore.com>
6186
6187 GDB 7.9 released.
6188
ffdf88ec
SE
61892015-02-19 Steve Ellcey <sellcey@imgtec.com>
6190
6191 * dtrace-probe.c (dtrace_process_dof_probe): Initialize arg.expr.
6192 (dtrace_get_probes) Change type of variable 'dof'.
6193
c9587f88
AT
61942015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
6195
6196 PR breakpoints/16812
6197 * linux-nat.c (linux_nat_filter_event): Report SIGTRAP,SIGILL,SIGSEGV.
6198 * nat/linux-ptrace.c (linux_wstatus_maybe_breakpoint): Add.
6199 * nat/linux-ptrace.h: Add linux_wstatus_maybe_breakpoint.
6200
53cf2ee0
DT
62012015-02-19 David Taylor <dtaylor@emc.com>
6202
6203 * common/ax.def (setv): Fix consumed entry in setv DEFOP.
6204
acfe0940
PP
62052015-02-18 Patrick Palka <patrick@parcs.ath.cx>
6206
6207 * tui/tui-io.c (tui_handle_resize_during_io): Remove this
6208 function.
6209 (tui_putc): Don't call tui_handle_resize_during_io.
6210 (tui_getc): Likewise.
6211 (tui_mld_getc): Likewise.
6212 * tui/tui-win.c: Include event-loop.h and tui/tui-io.h.
6213 (tui_sigwinch_token): New static variable.
6214 (tui_initialize_win): Adjust documentation. Set
6215 tui_sigwinch_token.
6216 (tui_async_resize_screen): New asynchronous callback.
6217 (tui_sigwinch_handler): Adjust documentation. Asynchronously
6218 invoke tui_async_resize_screen.
6219
f6a88844
JM
62202015-02-18 Jose E. Marchesi <jose.marchesi@oracle.com>
6221
6222 * configure: Regenerated.
6223 * configure.ac: Use GDB_AC_TRANSFORM.
6224 * Makefile.in (aclocal_m4_deps): Added transform.m4.
6225 * acinclude.m4: sinclude transform.m4.
6226 * transform.m4: New file.
6227 (GDB_AC_TRANSFORM): New macro.
6228
b05e3b0d
JM
62292015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
6230
6231 * NEWS: Announce the support for DTrace SDT probes.
6232
c3e3045e
JM
62332015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
6234
6235 * amd64-linux-tdep.c: Include "parser-defs.h" and "user-regs.h".
6236 (amd64_dtrace_parse_probe_argument): New function.
6237 (amd64_dtrace_probe_is_enabled): Likewise.
6238 (amd64_dtrace_enable_probe): Likewise.
6239 (amd64_dtrace_disable_probe): Likewise.
6240 (amd64_linux_init_abi): Register the
6241 `gdbarch_dtrace_probe_argument', `gdbarch_dtrace_enable_probe',
6242 `gdbarch_dtrace_disable_probe' and
6243 `gdbarch_dtrace_probe_is_enabled' hooks.
6244 (amd64_dtrace_disabled_probe_sequence_1): New constant.
6245 (amd64_dtrace_disabled_probe_sequence_2): Likewise.
6246 (amd64_dtrace_enable_probe_sequence): Likewise.
6247 (amd64_dtrace_disable_probe_sequence): Likewise.
6248
d4777acb
JM
62492015-01-17 Jose E. Marchesi <jose.marchesi@oracle.com>
6250
6251 * breakpoint.c (BREAK_ARGS_HELP): Help string updated to mention
6252 the -probe-dtrace new vpossible value for PROBE_MODIFIER.
6253 * configure.ac (CONFIG_OBS): dtrace-probe.o added if BFD can
6254 handle ELF files.
6255 * Makefile.in (SFILES): dtrace-probe.c added.
6256 * configure: Regenerate.
6257 * dtrace-probe.c: New file.
6258 (SHT_SUNW_dof): New constant.
6259 (dtrace_probe_type): New enum.
6260 (dtrace_probe_arg): New struct.
6261 (dtrace_probe_arg_s): New typedef.
6262 (struct dtrace_probe_enabler): New struct.
6263 (dtrace_probe_enabler_s): New typedef.
6264 (dtrace_probe): New struct.
6265 (dtrace_probe_is_linespec): New function.
6266 (dtrace_dof_sect_type): New enum.
6267 (dtrace_dof_dofh_ident): Likewise.
6268 (dtrace_dof_encoding): Likewise.
6269 (DTRACE_DOF_ENCODE_LSB): Likewise.
6270 (DTRACE_DOF_ENCODE_MSB): Likewise.
6271 (dtrace_dof_hdr): New struct.
6272 (dtrace_dof_sect): Likewise.
6273 (dtrace_dof_provider): Likewise.
6274 (dtrace_dof_probe): Likewise.
6275 (DOF_UINT): New macro.
6276 (DTRACE_DOF_PTR): Likewise.
6277 (DTRACE_DOF_SECT): Likewise.
6278 (dtrace_process_dof_probe): New function.
6279 (dtrace_process_dof): Likewise.
6280 (dtrace_build_arg_exprs): Likewise.
6281 (dtrace_get_arg): Likewise.
6282 (dtrace_get_probes): Likewise.
6283 (dtrace_get_probe_argument_count): Likewise.
6284 (dtrace_can_evaluate_probe_arguments): Likewise.
6285 (dtrace_evaluate_probe_argument): Likewise.
6286 (dtrace_compile_to_ax): Likewise.
6287 (dtrace_probe_destroy): Likewise.
6288 (dtrace_gen_info_probes_table_header): Likewise.
6289 (dtrace_gen_info_probes_table_values): Likewise.
6290 (dtrace_probe_is_enabled): Likewise.
6291 (dtrace_probe_ops): New variable.
6292 (info_probes_dtrace_command): New function.
6293 (_initialize_dtrace_probe): Likewise.
6294 (dtrace_type_name): Likewise.
6295
8b367e17
JM
62962015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
6297
6298 * gdbarch.sh (dtrace_parse_probe_argument): New.
6299 (dtrace_probe_is_enabled): Likewise.
6300 (dtrace_enable_probe): Likewise.
6301 (dtrace_disable_probe): Likewise.
6302 * gdbarch.c: Regenerate.
6303 * gdbarch.h: Regenerate.
6304
9aca2ff8
JM
63052015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
6306
6307 * stap-probe.c (stap_probe_ops): Add NULLs in the static
6308 stap_probe_ops for `enable_probe' and `disable_probe'.
6309 * probe.c (enable_probes_command): New function.
6310 (disable_probes_command): Likewise.
6311 (_initialize_probe): Define the cli commands `enable probe' and
6312 `disable probe'.
6313 (parse_probe_linespec): New function.
6314 (info_probes_for_ops): Use parse_probe_linespec.
6315 * probe.h (probe_ops): New hooks `enable_probe' and
6316 `disable_probe'.
6317
03e98035
JM
63182015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
6319
6320 * probe.c (compute_probe_arg): Moved from stap-probe.c
6321 (compile_probe_arg): Likewise.
6322 (probe_funcs): Likewise.
6323 * stap-probe.c (compute_probe_arg): Moved to probe.c.
6324 (compile_probe_arg): Likewise.
6325 (probe_funcs): Likewise.
6326
6f9b8491
JM
63272015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
6328
6329 * probe.c (print_ui_out_not_applicables): New function.
6330 (exists_probe_with_pops): Likewise.
6331 (info_probes_for_ops): Do not include column headers for probe
6332 types for which no probe has been actually found on any object.
6333 Also invoke `print_ui_out_not_applicables' in order to match the
6334 column rows with the header when probes of several types are
6335 listed.
6336 Print the "Type" column.
6337 * probe.h (probe_ops): Added a new probe operation `type_name'.
6338 * stap-probe.c (stap_probe_ops): Add `stap_type_name'.
6339 (stap_type_name): New function.
6340
69efdff1
PP
63412015-02-17 Patrick Palka <patrick@parcs.ath.cx>
6342
6343 * tui/tui-io.c (tui_getc): Don't call key_is_command_char.
6344 (key_is_command_char): Delete.
6345
f8e5e23e
PA
63462015-02-17 Pedro Alves <palves@redhat.com>
6347
6348 * tui/tui.c (tui_enable): Resize windows before anything
6349 might show a window.
6350
9f2e0721
MO
63512015-02-17 Max Ostapenko <m.ostapenko@partner.samsung.com>
6352
6353 PR gdb/17984
6354 * aarch64-linux-nat.c: Don't include features/aarch64.c anymore.
6355 (aarch64_linux_read_description): Remove initialize_tdesc_aarch64
6356 call.
6357 * aarch64-tdep.h (tdesc_aarch64): Declare.
6358
171e6b1c
MW
63592015-02-12 Mark Wielaard <mjw@redhat.com>
6360
6361 * contrib/ari/gdb_ari.sh: Remove checks for "true" and "false".
6362
d5ff0482
DE
63632015-02-13 Doug Evans <dje@google.com>
6364
6365 * cp-namespace.c (cp_basic_lookup_symbol): Rename parameter
6366 anonymous_namespace to is_in_anonymous for consistency with the rest
6367 of the file.
6368 (cp_lookup_bare_symbol): Fix typo in comment.
6369 (cp_search_static_and_baseclasses): Ditto.
6370 (search_symbol_list): Use vertical space in comment better.
6371 (reset_directive_searched): Ditto. Fix typo.
6372 (cp_lookup_nested_symbol_1): Clarify contents of NESTED_NAME parameter.
6373
9f04ac5f
YQ
63742015-02-13 Yao Qi <yao.qi@arm.com>
6375
6376 * MAINTAINERS: Update my email address.
6377
013d0319
DE
63782015-02-12 Doug Evans <dje@google.com>
6379
b615dd20 6380 * symtab.c (completion_list_add_name): Fix memory leak.
013d0319 6381
9a7e538e
DE
63822015-02-12 Doug Evans <dje@google.com>
6383
6384 * completer.c (complete_line): Remove incorrect comment.
6385
e1fcd575
JK
63862015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6387
6388 * python/py-framefilter.c (py_print_single_arg, enumerate_locals)
6389 (py_print_frame): Use RETURN_MASK_ERROR.
6390
b99bf4e3
JK
63912015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6392
6393 * python/py-framefilter.c (py_print_frame): Mention RETURN_QUIT in
6394 function comment. Wrap all function that can throw in cleanups.
6395 (gdbpy_apply_frame_filter): Wrap all function that can throw in
6396 cleanups.
6397
800eb1ce
JK
63982015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6399
6400 * python/py-framefilter.c (py_print_frame): Substitute goto error.
6401 Remove the error label.
6402
34019068
JK
64032015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6404
6405 * python/py-framefilter.c (py_print_frame): Put conditional code paths
6406 with goto first, indent the former else codepath left. Put variable
6407 'elided' to a new inner block.
6408
8d4a54e2
JK
64092015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6410
6411 * python/py-framefilter.c (py_print_frame): Whitespacing fixes.
6412
18ad82c1
PA
64132015-02-11 Pedro Alves <palves@redhat.com>
6414
6415 * xcoffread.c (within_function): Delete.
6416
e36122e9
TT
64172015-02-11 Tom Tromey <tromey@redhat.com>
6418 Pedro Alves <palves@redhat.com>
6419
6420 * breakpoint.c (base_breakpoint_ops): Delete.
6421 * dwarf2loc.c (dwarf_expr_ctx_funcs): Make extern.
6422 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_lazy_psyms): Make extern.
6423 * guile/guile.c (guile_extension_script_ops, guile_extension_ops): Make extern.
6424 * ppcnbsd-tdep.c (ppcnbsd2_sigtramp): Make extern.
6425 * python/py-arch.c (arch_object_type): Make extern.
6426 * python/py-block.c (block_syms_iterator_object_type): Make extern.
6427 * python/py-bpevent.c (breakpoint_event_object_type): Make extern.
6428 * python/py-cmd.c (cmdpy_object_type): Make extern.
6429 * python/py-continueevent.c (continue_event_object_type)
6430 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove 'qual'
6431 parameter. Update all callers.
6432 * python/py-evtregistry.c (eventregistry_object_type): Make extern.
6433 * python/py-exitedevent.c (exited_event_object_type): Make extern.
6434 * python/py-finishbreakpoint.c (finish_breakpoint_object_type): Make extern.
6435 * python/py-function.c (fnpy_object_type): Make extern.
6436 * python/py-inferior.c (inferior_object_type, membuf_object_type): Make extern.
6437 * python/py-infevents.c (call_pre_event_object_type)
6438 (inferior_call_post_event_object_type).
6439 (memory_changed_event_object_type): Make extern.
6440 * python/py-infthread.c (thread_object_type): Make extern.
6441 * python/py-lazy-string.c (lazy_string_object_type): Make extern.
6442 * python/py-linetable.c (linetable_entry_object_type)
6443 (linetable_object_type, ltpy_iterator_object_type): Make extern.
6444 * python/py-newobjfileevent.c (new_objfile_event_object_type)
6445 (clear_objfiles_event_object_type): Make extern.
6446 * python/py-objfile.c (objfile_object_type): Make extern.
6447 * python/py-param.c (parmpy_object_type): Make extern.
6448 * python/py-progspace.c (pspace_object_type): Make extern.
6449 * python/py-signalevent.c (signal_event_object_type): Make extern.
6450 * python/py-symtab.c (symtab_object_type, sal_object_type): Make extern.
6451 * python/py-type.c (type_object_type, field_object_type)
6452 (type_iterator_object_type): Make extern.
6453 * python/python.c (python_extension_script_ops)
6454 (python_extension_ops): Make extern.
6455 * stap-probe.c (stap_probe_ops): Make extern.
6456
0703599a
PA
64572015-02-11 Pedro Alves <pedro@codesourcery.com>
6458
6459 * infrun.c (adjust_pc_after_break): Don't adjust the PC just
6460 because the event thread is not the current thread.
6461
eaaf76ab
DE
64622015-02-11 Doug Evans <xdje42@gmail.com>
6463
6464 * gdbtypes.c (internal_type_self_type): If TYPE_SPECIFIC_FIELD hasn't
6465 been initialized yet, return NULL.
6466
e7d52ed3
DE
64672015-02-11 Doug Evans <dje@google.com>
6468
6469 * symfile.h (new_symfile_objfile): Delete.
6470 * symfile.c (finish_new_objfile): Renamed from new_symfile_objfile.
6471 All callers updated.
6472
fc6b1256
PP
64732015-02-11 Patrick Palka <patrick@parcs.ath.cx>
6474
6475 * tui/tui-io.c (tui_handle_resize_during_io): Call
6476 tui_update_gdb_sizes() after resizing the screen.
6477 * tui/tui.c (tui_enable): Resize the terminal before
6478 calling tui_update_gdb_sizes().
6479
d9080678
PP
64802015-02-11 Patrick Palka <patrick@parcs.ath.cx>
6481
6482 * tui/tui-io.c (tui_getc): Move cursor to the end of the command
6483 line before printing a newline.
6484
9f615e3a
MW
64852015-02-11 Mark Wielaard <mjw@redhat.com>
6486
6487 * utils.c (producer_is_gcc): Return true or false.
6488
d9080678 64892015-02-10 Mark Wielaard <mjw@redhat.com>
b1ffba5a
MW
6490
6491 * utils.h (producer_is_gcc): Change return type to bool. Add major
6492 argument.
6493 * utils.c (producer_is_gcc): Likewise.
6494 (producer_is_gcc_ge_4): Adjust producer_is_gcc call.
6495 * dwarf2read.c (check_producer): Likewise.
6496
b052c4fb
PA
64972015-02-10 Pedro Alves <palves@redhat.com>
6498
6499 * infrun.c (displaced_step_fixup): Switch to the event thread
6500 before calling gdbarch_displaced_step_fixup.
6501
3ac240d4
AT
65022015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
6503
6504 * MAINTAINERS (Write After Approval): Add Antoine Tremblay.
6505
c1cc6152
SM
65062015-02-10 Simon Marchi <simon.marchi@ericsson.com>
6507
6508 * ada-varobj.c (ada_name_of_child): Constify parent.
6509 (ada_path_expr_of_child): Same.
6510 (ada_value_of_child): Same.
6511 (ada_type_of_child): Same.
6512 * c-varobj.c (c_is_path_expr_parent): Same.
6513 (c_describe_child): Same.
6514 (c_name_of_child): Same.
6515 (c_value_of_child): Same.
6516 (c_type_of_child): Same.
6517 (cplus_number_of_children): Same.
6518 (cplus_describe_child): Constify var.
6519 (cplus_name_of_child): Constify parent.
6520 (cplus_value_of_child): Same.
6521 (cplus_type_of_child): Same.
6522 * jv-varobj.c (java_name_of_child): Same.
6523 (java_value_of_child): Same.
6524 (java_type_of_child): Same.
6525 * varobj.c (value_of_child): Same.
6526 (varobj_default_is_path_expr_parent): Constify var, parent and return
6527 value.
6528 (varobj_get_path_expr): Constify var, modify path_expr through
6529 mutable_var.
6530 (install_new_value): Constify parent.
6531 (value_of_child): Constify parent.
6532 * varobj.h (struct varobj): Constify parent.
6533 (struct lang_varobj_ops): Constify name_of_child, value_of_child and
6534 type_of_child.
6535 (varobj_get_path_expr): Constify var.
6536 (varobj_get_path_expr_parent): Constify var and return value.
6537
c1ee9414
LM
65382015-02-10 Luis Machado <lgustavo@codesourcery.com>
6539
6540 * arm-tdep.c (arm_prologue_unwind_stop_reason): New function.
6541 (arm_prologue_this_id): Move PC and SP limit checks to
6542 arm_prologue_unwind_stop_reason.
6543 (arm_prologue_unwind) <stop_reason> : Set to
6544 arm_prologue_unwind_stop_reason.
6545
f7de9aab
MW
65462015-02-09 Mark Wielaard <mjw@redhat.com>
6547
6548 * dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and
6549 DW_LANG_Fortran08 as language_fortran.
6550
0b24eb2d
SDJ
65512015-02-09 Sergio Durigan Junior <sergiodj@redhat.com>
6552
6553 PR remote/17946
6554 * gdb/remote.c (remote_parse_stop_reply): Fix wrong comparison
6555 of pointer against char.
6556
a2c2acaf
MW
65572015-02-09 Mark Wielaard <mjw@redhat.com>
6558
6559 * c-typeprint.c (cp_type_print_method_args): Handle '_Atomic'.
6560 (c_type_print_modifier): Likewise.
6561 * dwarf2read.c (read_tag_atomic_type): New function.
6562 (read_type_die_1): Handle DW_TAG_atomic_type.
6563 * gdbtypes.c (make_atomic_type): New function.
6564 (recursive_dump_type): Handle TYPE_ATOMIC.
6565 * gdbtypes.h (enum type_flag_values): Renumber.
6566 (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_ATOMIC.
6567 (TYPE_ATOMIC): New macro.
6568 (make_atomic_type): Declare.
6569
31fd9caa
MM
65702015-02-09 Markus Metzger <markus.t.metzger@intel.com>
6571
6572 * btrace.c (ftrace_find_call): Skip gaps.
6573 (ftrace_new_function): Initialize level.
6574 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return)
6575 (ftrace_new_switch): Update
6576 level computation.
6577 (ftrace_new_gap): New.
6578 (ftrace_update_function): Create new function after gap.
6579 (btrace_compute_ftrace_bts): Create gap on error.
6580 (btrace_stitch_bts): Update parameters. Clear trace if it
6581 becomes empty.
6582 (btrace_stitch_trace): Update parameters. Update callers.
6583 (btrace_clear): Reset the number of gaps.
6584 (btrace_insn_get): Return NULL if the iterator points to a gap.
6585 (btrace_insn_number): Return zero if the iterator points to a gap.
6586 (btrace_insn_end): Allow gaps at the end.
6587 (btrace_insn_next, btrace_insn_prev, btrace_insn_cmp): Handle gaps.
6588 (btrace_find_insn_by_number): Assert that the found iterator does
6589 not point to a gap.
6590 (btrace_call_next, btrace_call_prev): Assert that the last function
6591 is not a gap.
6592 * btrace.h (btrace_bts_error): New.
6593 (btrace_function): Update comment.
6594 (btrace_function) <insn, insn_offset, number>: Update comment.
6595 (btrace_function) <errcode>: New.
6596 (btrace_thread_info) <ngaps>: New.
6597 (btrace_thread_info) <replay>: Update comment.
6598 (btrace_insn_get): Update comment.
6599 * record-btrace.c (btrace_ui_out_decode_error): New.
6600 (record_btrace_info): Print number of gaps.
6601 (btrace_insn_history, btrace_call_history): Call
6602 btrace_ui_out_decode_error for gaps.
6603 (record_btrace_step_thread, record_btrace_start_replaying): Skip gaps.
6604
afb778a2
MM
66052015-02-09 Markus Metzger <markus.t.metzger@intel.com>
6606
6607 * common/btrace-common.h (btrace_cpu_vendor, btrace_cpu): New.
6608 * nat/linux-btrace.c: (btrace_this_cpu): New.
6609 (cpu_supports_bts): Call btrace_this_cpu.
6610 (intel_supports_bts): Add cpu parameter.
6611
7d5c24b3
MM
66122015-02-09 Markus Metzger <markus.t.metzger@intel.com>
6613
6614 * btrace.h (btrace_insn_class): New.
6615 (btrace_insn) <size, iclass>: New.
6616 * btrace.c (ftrace_find_call): Update parameters. Update users.
6617 Use instruction classification.
6618 (ftrace_new_return): Update parameters. Update users.
6619 (ftrace_update_function): Update parameters. Update users. Use
6620 instruction classification.
6621 (ftrace_update_insns): Update parameters. Update users.
6622 (ftrace_classify_insn): New.
6623 (btrace_compute_ftrace_bts): Fill in new btrace_insn fields. Add
6624 TRY_CATCH around call to gdb_insn_length.
6625
76235df1
MM
66262015-02-09 Markus Metzger <markus.t.metzger@intel.com>
6627
6628 * btrace.c (btrace_compute_ftrace_bts, btrace_compute_ftrace):
6629 Update parameters. Update users.
6630
d33501a5
MM
66312015-02-09 Markus Metzger <markus.t.metzger@intel.com>
6632
6633 * btrace.c (parse_xml_btrace_conf_bts): Add size.
6634 (btrace_conf_bts_attributes): New.
6635 (btrace_conf_children): Add attributes.
6636 * common/btrace-common.h (btrace_config_bts): New.
6637 (btrace_config)<bts>: New.
6638 (btrace_config): Update comment.
6639 * nat/linux-btrace.c (linux_enable_btrace, linux_enable_bts):
6640 Use config.
6641 * features/btrace-conf.dtd: Increment version. Add size
6642 attribute to bts element.
6643 * record-btrace.c (set_record_btrace_bts_cmdlist,
6644 show_record_btrace_bts_cmdlist): New.
6645 (record_btrace_adjust_size, record_btrace_print_bts_conf,
6646 record_btrace_print_conf, cmd_set_record_btrace_bts,
6647 cmd_show_record_btrace_bts): New.
6648 (record_btrace_info): Call record_btrace_print_conf.
6649 (_initialize_record_btrace): Add commands.
6650 * remote.c: Add PACKET_Qbtrace_conf_bts_size enum.
6651 (remote_protocol_features): Add Qbtrace-conf:bts:size packet.
6652 (btrace_sync_conf): Synchronize bts size.
6653 (_initialize_remote): Add Qbtrace-conf:bts:size packet.
6654 * NEWS: Announce new commands and new packets.
6655
f4abbc16
MM
66562015-02-09 Markus Metzger <markus.t.metzger@intel.com>
6657
6658 * Makefile.in (XMLFILES): Add btrace-conf.dtd.
6659 * x86-linux-nat.c (x86_linux_enable_btrace): Update parameters.
6660 (x86_linux_btrace_conf): New.
6661 (x86_linux_create_target): Initialize to_btrace_conf.
6662 * nat/linux-btrace.c (linux_enable_btrace): Update parameters.
6663 Check format. Split into this and ...
6664 (linux_enable_bts): ... this.
6665 (linux_btrace_conf): New.
6666 (perf_event_skip_record): Renamed into ...
6667 (perf_event_skip_bts_record): ... this. Updated users.
6668 (linux_disable_btrace): Split into this and ...
6669 (linux_disable_bts): ... this.
6670 (linux_read_btrace): Check format.
6671 * nat/linux-btrace.h (linux_enable_btrace): Update parameters.
6672 (linux_btrace_conf): New.
6673 (btrace_target_info)<ptid>: Moved.
6674 (btrace_target_info)<conf>: New.
6675 (btrace_target_info): Split into this and ...
6676 (btrace_tinfo_bts): ... this. Updated users.
6677 * btrace.c (btrace_enable): Update parameters.
6678 (btrace_conf, parse_xml_btrace_conf_bts, parse_xml_btrace_conf)
6679 (btrace_conf_children, btrace_conf_attributes)
6680 (btrace_conf_elements): New.
6681 * btrace.h (btrace_enable): Update parameters.
6682 (btrace_conf, parse_xml_btrace_conf): New.
6683 * common/btrace-common.h (btrace_config): New.
6684 * feature/btrace-conf.dtd: New.
6685 * record-btrace.c (record_btrace_conf): New.
6686 (record_btrace_cmdlist): New.
6687 (record_btrace_enable_warn, record_btrace_open): Pass
6688 &record_btrace_conf.
6689 (record_btrace_info): Print recording format.
6690 (cmd_record_btrace_bts_start): New.
6691 (cmd_record_btrace_start): Call cmd_record_btrace_bts_start.
6692 (_initialize_record_btrace): Add "record btrace bts" subcommand.
6693 Add "record bts" alias command.
6694 * remote.c (remote_state)<btrace_config>: New.
6695 (remote_btrace_reset, PACKET_qXfer_btrace_conf): New.
6696 (remote_protocol_features): Add qXfer:btrace-conf:read.
6697 (remote_open_1): Call remote_btrace_reset.
6698 (remote_xfer_partial): Handle TARGET_OBJECT_BTRACE_CONF.
6699 (btrace_target_info)<conf>: New.
6700 (btrace_sync_conf, btrace_read_config): New.
6701 (remote_enable_btrace): Update parameters. Call btrace_sync_conf and
6702 btrace_read_conf.
6703 (remote_btrace_conf): New.
6704 (init_remote_ops): Initialize to_btrace_conf.
6705 (_initialize_remote): Add qXfer:btrace-conf packet.
6706 * target.c (target_enable_btrace): Update parameters.
6707 (target_btrace_conf): New.
6708 * target.h (target_enable_btrace): Update parameters.
6709 (target_btrace_conf): New.
6710 (target_object)<TARGET_OBJECT_BTRACE_CONF>: New.
6711 (target_ops)<to_enable_btrace>: Update parameters and comment.
6712 (target_ops)<to_btrace_conf>: New.
6713 * target-delegates: Regenerate.
6714 * target-debug.h (target_debug_print_const_struct_btrace_config_p)
6715 (target_debug_print_const_struct_btrace_target_info_p): New.
6716 * NEWS: Announce new command and new packet.
6717
aadf7753
MM
67182015-02-09 Markus Metzger <markus.t.metzger@intel.com>
6719
6720 * nat/linux-btrace.h (perf_event_buffer): New.
6721 (btrace_target_info) <buffer, size, data_head>: Replace with ...
6722 <bts>: ... this.
6723 * nat/linux-btrace.c (perf_event_header, perf_event_mmap_size)
6724 (perf_event_buffer_size, perf_event_buffer_begin)
6725 (perf_event_buffer_end, linux_btrace_has_changed): Removed.
6726 Updated users.
6727 (perf_event_new_data): New.
6728
043c3577
MM
67292015-02-09 Markus Metzger <markus.t.metzger@intel.com>
6730
6731 * btrace.c (btrace_enable): Pass BTRACE_FORMAT_BTS.
6732 * record-btrace.c (record_btrace_open): Remove call to
6733 target_supports_btrace.
6734 * remote.c (remote_supports_btrace): Update parameters.
6735 * target.c (target_supports_btrace): Update parameters.
6736 * target.h (to_supports_btrace, target_supports_btrace): Update
6737 parameters.
6738 * target-delegates.c: Regenerate.
6739 * target-debug.h (target_debug_print_enum_btrace_format): New.
6740 * nat/linux-btrace.c
6741 (kernel_supports_btrace): Rename into ...
6742 (kernel_supports_bts): ... this. Update users. Update warning text.
6743 (intel_supports_btrace): Rename into ...
6744 (intel_supports_bts): ... this. Update users.
6745 (cpu_supports_btrace): Rename into ...
6746 (cpu_supports_bts): ... this. Update users.
6747 (linux_supports_btrace): Update parameters. Split into this and ...
6748 (linux_supports_bts): ... this.
6749 * nat/linux-btrace.h (linux_supports_btrace): Update parameters.
6750
734b0e4b
MM
67512015-02-09 Markus Metzger <markus.t.metzger@intel.com>
6752
6753 * Makefile.in (SFILES): Add common/btrace-common.c.
6754 (COMMON_OBS): Add common/btrace-common.o.
6755 (btrace-common.o): Add build rules.
6756 * btrace.c (parse_xml_btrace): Update parameters.
6757 (parse_xml_btrace_block): Set format field.
6758 (btrace_add_pc, btrace_fetch): Use struct btrace_data.
6759 (do_btrace_data_cleanup, make_cleanup_btrace_data): New.
6760 (btrace_compute_ftrace): Split into this and...
6761 (btrace_compute_ftrace_bts): ...this.
6762 (btrace_stitch_trace): Split into this and...
6763 (btrace_stitch_bts): ...this.
6764 * btrace.h (parse_xml_btrace): Update parameters.
6765 (make_cleanup_btrace_data): New.
6766 * common/btrace-common.c: New.
6767 * common/btrace-common.h: Include common-defs.h.
6768 (btrace_block_s): Update comment.
6769 (btrace_format): New.
6770 (btrace_format_string): New.
6771 (btrace_data_bts): New.
6772 (btrace_data): New.
6773 (btrace_data_init, btrace_data_fini, btrace_data_empty): New.
6774 * remote.c (remote_read_btrace): Update parameters.
6775 * target.c (target_read_btrace): Update parameters.
6776 * target.h (target_read_btrace): Update parameters.
6777 (target_ops)<to_read_btrace>: Update parameters.
6778 * x86-linux-nat.c (x86_linux_read_btrace): Update parameters.
6779 * target-delegates.c: Regenerate.
6780 * target-debug (target_debug_print_struct_btrace_data_p): New.
6781 * nat/linux-btrace.c (linux_read_btrace): Split into this and...
6782 (linux_read_bts): ...this.
6783 * nat/linux-btrace.h (linux_read_btrace): Update parameters.
6784
bd2e0e9e
DE
67852015-02-06 Doug Evans <dje@google.com>
6786
6787 * remote-m32r-sdi.c: Include symfile.h.
6788
f176c4b5
DE
67892015-02-06 Doug Evans <dje@google.com>
6790
6791 * symtab.h (clear_symtab_users, deduce_language_from_filename): Move
6792 * symfile.h (clear_symtab_users, deduce_language_from_filename): ...
6793 to here.
6794
d6c146e9
PA
67952015-02-06 Pedro Alves <palves@redhat.com>
6796
6797 * linux-thread-db.c (find_new_threads_callback): Add debug output.
6798
b9d61307
SM
67992015-02-06 Simon Marchi <simon.marchi@ericsson.com>
6800
6801 PR gdb/15678
6802 * breakpoint.c (map_breakpoint_numbers): Check for empty args string.
6803 (enable_count_command): Check args for NULL value.
6804
e9fbd043
DE
68052015-02-05 Doug Evans <xdje42@gmail.com>
6806
6807 * guile/scm-frame.c: Fix spelling errors in a comment.
6808
881d5d5d
JK
68092015-02-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6810
6811 * python/python-internal.h (Py_hash_t): Define it for Python <3.2.
6812 * python/py-value.c (valpy_fetch_lazy): Use it. Remove cast to the
6813 return type.
6814
20ba1ce6
PA
68152015-02-04 Pedro Alves <palves@redhat.com>
6816
6817 * linux-nat.c (handle_extended_wait): Don't resume LWPs here.
6818 (wait_lwp): Don't call wait_lwp if linux_handle_extended_wait
6819 returns true.
6820 (resume_stopped_resumed_lwps): Don't check whether the thread is
6821 marked as executing.
6822 (linux_nat_wait_1): Use resume_stopped_resumed_lwps.
6823
f962539a
AA
68242015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
6825
6826 * regset.h (struct regset): Add flags field.
6827 (REGSET_VARIABLE_SIZE): New value for a regset's flags field.
6828 * corelow.c (get_core_register_section): Add warning if the size
6829 exceeds the requested size and the regset does not have the
6830 REGSET_VARIABLE_SIZE flag set.
6831 * alphanbsd-tdep.c (alphanbsd_gregset): Add REGSET_VARIABLE_SIZE
6832 flag.
6833 * armbsd-tdep.c (armbsd_gregset): Likewise.
6834 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
6835 * hppaobsd-tdep.c (hppaobsd_gregset): Likewise.
6836 * m68kbsd-tdep.c (m68kbsd_gregset): Likewise.
6837 * mipsnbsd-tdep.c (mipsnbsd_gregset): Likewise.
6838
dde9acd6
AA
68392015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
6840
6841 * amd64-linux-tdep.c (amd64_linux_iterate_over_regset_sections):
6842 For ".reg-xstate", explicitly specify the requested section size
6843 via X86_XSTATE_SIZE instead of just 0 on input and
6844 X86_XSTATE_MAX_SIZE on output.
6845 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections):
6846 Likewise.
6847
1528345d
AA
68482015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
6849
6850 PR corefiles/17808:
6851 * gdbarch.sh (iterate_over_regset_sections_cb): Document this
6852 function type, particularly its SIZE parameter.
6853 * gdbarch.h: Regenerate.
6854 * amd64-tdep.c (amd64_supply_fpregset): In gdb_assert, compare
6855 actual against required size using ">=" instead of "==".
6856 (amd64_collect_fpregset): Likewise.
6857 * i386-tdep.c (i386_supply_gregset): Likewise.
6858 (i386_collect_gregset): Likewise.
6859 (i386_supply_fpregset): Likewise.
6860 (i386_collect_fpregset): Likewise.
6861 * mips-linux-tdep.c (mips_supply_gregset_wrapper): Likewise.
6862 (mips_fill_gregset_wrapper): Likewise.
6863 (mips_supply_fpregset_wrapper): Likewise.
6864 (mips_fill_fpregset_wrapper): Likewise.
6865 (mips64_supply_gregset_wrapper): Likewise.
6866 (mips64_fill_gregset_wrapper): Likewise.
6867 (mips64_supply_fpregset_wrapper): Likewise.
6868 (mips64_fill_fpregset_wrapper): Likewise.
6869 * mn10300-linux-tdep.c (am33_supply_gregset_method): Likewise.
6870 (am33_supply_fpregset_method): Likewise.
6871 (am33_collect_gregset_method): Likewise.
6872 (am33_collect_fpregset_method): Likewise.
6873
518be979
DE
68742015-02-04 Doug Evans <dje@google.com>
6875 Pedro Alves <palves@redhat.com>
6876 Eli Zaretskii <eliz@gnu.org>
6877
6878 PR tui/17810
6879 * tui/tui-command.c (tui_refresh_cmd_win): New function.
6880 * tui/tui-command.c (tui_refresh_cmd_win): Declare.
6881 * tui/tui-file.c: #include tui/tui-command.h.
6882 (tui_file_fputs): Refresh command window if stream is not gdb_stdout.
6883 (tui_file_flush): Refresh command window if stream is gdb_stdout.
6884 * tui/tui-io.c (tui_puts): Remove calls to wrefresh, fflush.
6885
80bd5fab
PA
68862015-02-04 Pedro Alves <palves@redhat.com>
6887
6888 Fix build breakage.
6889 * event-loop.c (gdb_do_one_event): Add default switch case.
6890
a7606d80
JK
68912015-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6892
6893 Filter out inferior gcc option -fpreprocessed.
6894 * compile/compile.c (filter_args): New function.
6895 (get_args): Use it.
6896
70b66289
PA
68972015-02-03 Pedro Alves <palves@redhat.com>
6898
6899 * event-loop.c: Don't declare nor define a queue type for
6900 gdb_event_p.
6901 (event_queue): Delete.
6902 (create_event, create_file_event, gdb_event_xfree)
6903 (initialize_event_loop, process_event): Delete.
6904 (gdb_do_one_event): Return as soon as one event is handled.
6905 (handle_file_event): Change prototype. Used the passed in
6906 file_handler pointer and ready_mask instead of looping over all
6907 file handlers.
6908 (gdb_wait_for_event): Update the poll/select timeouts before
6909 blocking. Run event handlers directly instead of queueing events.
6910 Return as soon as one event is handled.
6911 (struct async_event_handler_data): Delete.
6912 (invoke_async_event_handler): Delete.
6913 (check_async_event_handlers): Change return type to int. Run
6914 event handlers directly instead of queueing events. Return as
6915 soon as one event is handled.
6916 (handle_timer_event): Delete.
6917 (update_wait_timeout): New function, factored out from
6918 poll_timers.
6919 (poll_timers): Reimplement.
6920 * event-loop.h (initialize_event_loop): Delete declaration.
6921 * top.c (gdb_init): Don't call initialize_event_loop.
6922
b7d2e916
PA
69232015-02-03 Pedro Alves <palves@redhat.com>
6924
6925 * event-loop.c (clear_async_event_handler): New function.
6926 * event-loop.h (clear_async_event_handler): New declaration.
6927 * record-btrace.c (record_btrace_async): New function.
6928 (init_record_btrace_ops): Install record_btrace_async.
6929 * record-full.c (record_full_async): New function.
6930 (record_full_resume): Don't mark the async event source here.
6931 (init_record_full_ops): Install record_full_async.
6932 (record_full_core_resume): Don't mark the async event source here.
6933 (init_record_full_core_ops): Install record_full_async.
6934 * remote.c (remote_async): Mark and clear the async stop reply
6935 queue event-loop token as appropriate.
6936
d9d41e78
PA
69372015-02-03 Pedro Alves <palves@redhat.com>
6938
6939 * linux-nat.c (linux_child_follow_fork, linux_nat_wait_1): Use
6940 target_is_async_p instead of target_can_async.
6941 (linux_nat_wait): Use target_is_async_p instead of
6942 target_can_async. Don't enable async here.
6943 * remote.c (interrupt_query, remote_wait, putpkt_binary): Use
6944 target_is_async_p instead of target_can_async.
6945
aa3de267
SM
69462015-02-02 Simon Marchi <simon.marchi@ericsson.com>
6947
6948 * varobj.h (lang_varobj_ops): Mention which return values need
6949 to be freed.
6950
2c811c0f
JB
69512015-02-02 Joel Brobecker <brobecker@adacore.com>
6952
6953 * dwarf2loc.c (dwarf2_evaluate_property): Add i18n marker.
6954
b1eedac9
JB
69552015-02-02 Joel Brobecker <brobecker@adacore.com>
6956
6957 PR gdb/17856:
6958 * ada-lang.c (ada_lookup_symbol_list_worker): Do not re-cache
6959 results found in the cache.
6960
66c168ae
JB
69612015-02-02 Joel Brobecker <brobecker@adacore.com>
6962
6963 PR gdb/17854:
6964 * ada-lang.c (ada_get_symbol_cache): Set pspace_data->sym_cache
6965 when allocating a new one.
6966
4bdc02b2
TT
69672015-02-01 Tom Tromey <tom@tromey.com>
6968
6969 * MAINTAINERS: Remove myself.
6970
ae6ae975
DE
69712015-01-31 Doug Evans <xdje42@gmail.com>
6972
6973 * dwarf2read.c (process_structure_scope): Update setting of
6974 TYPE_VPTR_BASETYPE, TYPE_VPTR_FIELDNO.
6975 * gdbtypes.c (internal_type_vptr_fieldno): New function.
6976 (set_type_vptr_fieldno): New function.
6977 (internal_type_vptr_basetype): New function.
6978 (set_type_vptr_basetype): New function.
6979 (get_vptr_fieldno): Update setting of TYPE_VPTR_FIELDNO,
6980 TYPE_VPTR_BASETYPE.
6981 (allocate_cplus_struct_type): Initialize vptr_fieldno.
6982 (recursive_dump_type): Printing of vptr_fieldno, vptr_basetype ...
6983 (print_cplus_stuff): ... moved here.
6984 (copy_type_recursive): Don't copy TYPE_VPTR_BASETYPE.
6985 * gdbtypes.h (struct main_type): Members vptr_fieldno, vptr_basetype
6986 moved to ...
6987 (struct cplus_struct_type): ... here. All uses updated.
6988 (TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE): Rewrite.
6989 (internal_type_vptr_fieldno, set_type_vptr_fieldno): Declare.
6990 (internal_type_vptr_basetype, set_type_vptr_basetype): Declare.
6991 * stabsread.c (read_tilde_fields): Update setting of
6992 TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE.
6993
09e2d7c7
DE
69942015-01-31 Doug Evans <xdje42@gmail.com>
6995
6996 * cp-valprint.c (cp_find_class_member): Rename parameter domain_p
6997 to self_p.
6998 (cp_print_class_member): Rename local domain to self_type.
6999 * dwarf2read.c (quirk_gcc_member_function_pointer): Rename local
7000 domain_type to self_type.
7001 (set_die_type) <need_gnat_info>: Handle
7002 TYPE_CODE_METHODPTR, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD.
7003 * gdb-gdb.py (StructMainTypePrettyPrinter): Handle
7004 TYPE_SPECIFIC_SELF_TYPE.
7005 * gdbtypes.c (internal_type_self_type): New function.
7006 (set_type_self_type): New function.
7007 (smash_to_memberptr_type): Rename parameter domain to self_type.
7008 Update setting of TYPE_SELF_TYPE.
7009 (smash_to_methodptr_type): Update setting of TYPE_SELF_TYPE.
7010 (smash_to_method_type): Rename parameter domain to self_type.
7011 Update setting of TYPE_SELF_TYPE.
7012 (check_stub_method): Call smash_to_method_type.
7013 (recursive_dump_type): Handle TYPE_SPECIFIC_SELF_TYPE.
7014 (copy_type_recursive): Ditto.
7015 * gdbtypes.h (enum type_specific_kind): New value
7016 TYPE_SPECIFIC_SELF_TYPE.
7017 (struct main_type) <type_specific>: New member self_type.
7018 (struct cplus_struct_type) <fn_field.type>: Update comment.
7019 (TYPE_SELF_TYPE): Rewrite.
7020 (internal_type_self_type, set_type_self_type): Declare.
7021 * gnu-v3-abi.c (gnuv3_print_method_ptr): Rename local domain to
7022 self_type.
7023 (gnuv3_method_ptr_to_value): Rename local domain_type to self_type.
7024 * m2-typeprint.c (m2_range): Replace TYPE_SELF_TYPE with
7025 TYPE_TARGET_TYPE.
7026 * stabsread.c (read_member_functions): Mark methods with
7027 TYPE_CODE_METHOD, not TYPE_CODE_FUNC. Update setting of
7028 TYPE_SELF_TYPE.
7029
4bfb94b8
DE
70302015-01-31 Doug Evans <xdje42@gmail.com>
7031
7032 * gdbtypes.h (TYPE_SELF_TYPE): Renamed from TYPE_DOMAIN_TYPE.
7033 All uses updated.
7034
5f4ce105
DE
70352015-01-31 Doug Evans <xdje42@gmail.com>
7036
7037 * gnu-v3-abi.c (gnuv3_dynamic_class): Assert only passed structs
7038 or unions. Return zero if union.
7039 (gnuv3_get_vtable): Call check_typedef. Assert only passed structs.
7040 (gnuv3_rtti_type): Pass already-check_typedef'd value to
7041 gnuv3_get_vtable.
7042 (compute_vtable_size): Assert only passed structs.
7043 (gnuv3_print_vtable): Don't call gnuv3_get_vtable for non-structs.
7044
f6b3afbf
DE
70452015-01-31 Doug Evans <xdje42@gmail.com>
7046
7047 * gdbtypes.c (copy_type_recursive): Handle all TYPE_SPECIFIC_FIELD
7048 kinds.
7049
cfb069a8
GB
70502015-01-31 Gary Benson <gbenson@redhat.com>
7051 Doug Evans <dje@google.com>
7052
7053 PR cli/9007
7054 PR cli/11920
7055 PR cli/15548
7056 * cli/cli-cmds.c (complete_command): Notify user if max-completions
7057 reached.
7058 * common/common-exceptions.h (enum errors)
7059 <MAX_COMPLETIONS_REACHED_ERROR>: New value.
7060 * completer.h (get_max_completions_reached_message): New declaration.
7061 (max_completions): Likewise.
7062 (completion_tracker_t): New typedef.
7063 (new_completion_tracker): New declaration.
7064 (make_cleanup_free_completion_tracker): Likewise.
7065 (maybe_add_completion_enum): New enum.
7066 (maybe_add_completion): New declaration.
7067 (throw_max_completions_reached_error): Likewise.
7068 * completer.c (max_completions): New global variable.
7069 (new_completion_tracker): New function.
7070 (free_completion_tracker): Likewise.
7071 (make_cleanup_free_completion_tracker): Likewise.
7072 (maybe_add_completions): Likewise.
7073 (throw_max_completions_reached_error): Likewise.
7074 (complete_line): Remove duplicates and limit result to max_completions
7075 entries.
7076 (get_max_completions_reached_message): New function.
7077 (gdb_display_match_list): Handle max_completions.
7078 (_initialize_completer): New declaration and function.
7079 * symtab.c: Include completer.h.
7080 (completion_tracker): New static variable.
7081 (completion_list_add_name): Call maybe_add_completion.
7082 (default_make_symbol_completion_list_break_on_1): Renamed from
7083 default_make_symbol_completion_list_break_on. Maintain
7084 completion_tracker across calls to completion_list_add_name.
7085 (default_make_symbol_completion_list_break_on): New function.
7086 * top.c (init_main): Set rl_completion_display_matches_hook.
7087 * tui/tui-io.c: Include completer.h.
7088 (tui_old_rl_display_matches_hook): New static global.
7089 (tui_rl_display_match_list): Notify user if max-completions reached.
7090 (tui_setup_io): Save/restore rl_completion_display_matches_hook.
7091 * NEWS (New Options): Mention set/show max-completions.
7092
e11c72c7
GB
70932015-01-31 Gary Benson <gbenson@redhat.com>
7094
7095 * symtab.c (struct add_name_data) <code>: New field.
7096 Updated comments.
7097 (add_symtab_completions): New function.
7098 (symtab_expansion_callback): Likewise.
7099 (default_make_symbol_completion_list_break_on): Set datum.code.
7100 Move minimal symbol scan before calling expand_symtabs_matching.
7101 Scan known primary symtabs for externs and statics before calling
7102 expand_symtabs_matching. Pass symtab_expansion_callback as
7103 expansion_notify argument to expand_symtabs_matching. Do not scan
7104 primary symtabs for externs and statics after calling
7105 expand_symtabs_matching.
7106
276d885b
GB
71072015-01-31 Gary Benson <gbenson@redhat.com>
7108
7109 * symfile.h (expand_symtabs_exp_notify_ftype): New typedef.
7110 (struct quick_symbol_functions) <expand_symtabs_matching>:
7111 New argument expansion_notify. All uses updated.
7112 (expand_symtabs_matching): New argument expansion_notify.
7113 All uses updated.
7114 * symfile-debug.c (debug_qf_expand_symtabs_matching):
7115 Also print expansion notify.
7116 * symtab.c (expand_symtabs_matching_via_partial): Call
7117 expansion_notify whenever a partial symbol table is expanded.
7118 * dwarf2read.c (dw2_expand_symtabs_matching): Call
7119 expansion_notify whenever a symbol table is instantiated.
7120
82083d6d
DE
71212015-01-31 Doug Evans <xdje42@gmail.com>
7122
7123 * cli-out.c: #include completer.h, readline/readline.h.
7124 (cli_mld_crlf, cli_mld_putch, cli_mld_puts): New functions.
7125 (cli_mld_flush, cld_mld_erase_entire_line): Ditto.
7126 (cli_mld_beep, cli_mld_read_key, cli_display_match_list): Ditto.
7127 * cli-out.h (cli_display_match_list): Declare.
7128 * completer.c (MB_INVALIDCH, MB_NULLWCH): New macros.
7129 (ELLIPSIS_LEN): Ditto.
7130 (gdb_get_y_or_n, gdb_display_match_list_pager): New functions.
7131 (gdb_path_isdir, gdb_printable_part, gdb_fnwidth): Ditto.
7132 (gdb_fnprint, gdb_print_filename): Ditto.
7133 (gdb_complete_get_screenwidth, gdb_display_match_list_1): Ditto.
7134 (gdb_display_match_list): Ditto.
7135 * completer.h (mld_crlf_ftype, mld_putch_ftype): New typedefs.
7136 (mld_puts_ftype, mld_flush_ftype, mld_erase_entire_line_ftype): Ditto.
7137 (mld_beep_ftype, mld_read_key_ftype): Ditto.
7138 (match_list_displayer): New struct.
7139 (gdb_display_match_list): Declare.
7140 * top.c (init_main): Set rl_completion_display_matches_hook.
7141 * tui/tui-io.c: #include completer.h.
7142 (printable_part, PUTX, print_filename, get_y_or_n): Delete.
7143 (tui_mld_crlf, tui_mld_putch, tui_mld_puts): New functions.
7144 (tui_mld_flush, tui_mld_erase_entire_line, tui_mld_beep): Ditto.
7145 (tui_mld_getc, tui_mld_read_key): Ditto.
7146 (tui_rl_display_match_list): Rewrite.
7147 (tui_handle_resize_during_io): New arg for_completion. All callers
7148 updated.
7149
f57d2163
DE
71502015-01-31 Doug Evans <xdje42@gmail.com>
7151
7152 Add symbol lookup cache.
7153 * NEWS: Document new options and commands.
7154 * symtab.c (symbol_cache_key): New static global.
7155 (DEFAULT_SYMBOL_CACHE_SIZE, MAX_SYMBOL_CACHE_SIZE): New macros.
7156 (SYMBOL_LOOKUP_FAILED): New macro.
7157 (symbol_cache_slot_state): New enum.
7158 (block_symbol_cache): New struct.
7159 (symbol_cache): New struct.
7160 (new_symbol_cache_size, symbol_cache_size): New static globals.
7161 (hash_symbol_entry, eq_symbol_entry): New functions.
7162 (symbol_cache_byte_size, resize_symbol_cache): New functions.
7163 (make_symbol_cache, free_symbol_cache): New functions.
7164 (get_symbol_cache, symbol_cache_cleanup): New function.
7165 (set_symbol_cache_size, set_symbol_cache_size_handler): New functions.
7166 (symbol_cache_lookup, symbol_cache_clear_slot): New function.
7167 (symbol_cache_mark_found, symbol_cache_mark_not_found): New functions.
7168 (symbol_cache_flush, symbol_cache_dump): New functions.
7169 (maintenance_print_symbol_cache): New function.
7170 (maintenance_flush_symbol_cache): New function.
7171 (symbol_cache_stats): New function.
7172 (maintenance_print_symbol_cache_statistics): New function.
7173 (symtab_new_objfile_observer): New function.
7174 (symtab_free_objfile_observer): New function.
7175 (lookup_static_symbol, lookup_global_symbol): Use symbol cache.
7176 (_initialize_symtab): Init symbol_cache_key. New parameter
7177 maint symbol-cache-size. New maint commands print symbol-cache,
7178 print symbol-cache-statistics, flush-symbol-cache.
7179 Install new_objfile, free_objfile observers.
7180
e700d1b2
JB
71812015-01-31 Joel Brobecker <brobecker@adacore.com>
7182
7183 PR symtab/17855
7184 * symfile.c (clear_symtab_users): Move call to breakpoint_re_set
7185 to end.
7186
9f050062
DE
71872015-01-31 Doug Evans <xdje42@gmail.com>
7188
7189 * NEWS: Mention inlined scripts in .debug_gdb_scripts section.
7190 * auto-load.c: #include ctype.h.
7191 (struct auto_load_pspace_info): Replace member loaded_scripts with
7192 new members loaded_script_files, loaded_script_texts.
7193 (auto_load_pspace_data_cleanup): Update.
7194 (init_loaded_scripts_info): Update.
7195 (get_auto_load_pspace_data_for_loading): Update.
7196 (maybe_add_script_file): Renamed from maybe_add_script. All callers
7197 updated.
7198 (maybe_add_script_text): New function.
7199 (clear_section_scripts): Update.
7200 (source_script_file, execute_script_contents): New functions.
7201 (source_section_scripts): Add support for
7202 SECTION_SCRIPT_ID_PYTHON_TEXT, SECTION_SCRIPT_ID_GUILE_TEXT.
7203 (print_scripts): New function.
7204 (auto_load_info_scripts): Also print inlined scripts.
7205 (maybe_print_unsupported_script_warning): Renamed from
7206 unsupported_script_warning_print. All callers updated.
7207 (maybe_print_script_not_found_warning): Renamed from
7208 script_not_found_warning_print. All callers updated.
7209 * extension-priv.h (struct extension_language_script_ops): New member
7210 objfile_script_executor.
7211 * extension.c (ext_lang_objfile_script_executor): New function.
7212 * extension.h (objfile_script_executor_func): New typedef.
7213 (ext_lang_objfile_script_executor): Declare.
7214 * guile/guile-internal.h (gdbscm_execute_objfile_script): Declare.
7215 * guile/guile.c (guile_extension_script_ops): Update.
7216 * guile/scm-objfile.c (gdbscm_execute_objfile_script): New function.
7217 * python/python.c (python_extension_script_ops): Update.
7218 (gdbpy_execute_objfile_script): New function.
7219
312809f8
EZ
72202015-01-31 Eli Zaretskii <eliz@gnu.org>
7221
7222 * tui/tui-io.c (tui_expand_tabs): New function.
7223 (tui_puts, tui_redisplay_readline): Expand TABs into the
7224 appropriate number of spaces.
7225 * tui/tui-regs.c: Include tui-io.h.
7226 (tui_register_format): Call tui_expand_tabs to expand TABs into
7227 the appropriate number of spaces.
7228 * tui/tui-io.h: Add prototype for tui_expand_tabs.
7229
b6577aab
DE
72302015-01-30 Doug Evans <dje@google.com>
7231
7232 * NEWS: "info source" command now display producer string if present.
7233 * source.c (source_info): Print producer string if present.
7234
6da58d3e
SM
72352015-01-30 Simon Marchi <simon.marchi@ericsson.com>
7236
7237 * varobj.c (varobj_delete): Fix comment.
7238
837ce252
SM
72392015-01-30 Simon Marchi <simon.marchi@ericsson.com>
7240
7241 * varobj.c (create_child): Modify comment.
7242
b09e2c59
SM
72432015-01-30 Simon Marchi <simon.marchi@ericsson.com>
7244
7245 * ada-varobj.c (ada_number_of_children): Constify struct varobj *
7246 parameter.
7247 (ada_name_of_variable): Same.
7248 (ada_path_expr_of_child): Same.
7249 (ada_value_of_variable): Same.
7250 (ada_value_is_changeable_p): Same.
7251 (ada_value_has_mutated): Same.
7252 * c-varobj.c (varobj_is_anonymous_child): Same.
7253 (c_is_path_expr_parent): Same.
7254 (c_number_of_children): Same.
7255 (c_name_of_variable): Same.
7256 (c_path_expr_of_child): Same.
7257 (get_type): Same.
7258 (c_value_of_variable): Same.
7259 (cplus_number_of_children): Same.
7260 (cplus_name_of_variable): Same.
7261 (cplus_path_expr_of_child): Same.
7262 (cplus_value_of_variable): Same.
7263 * jv-varobj.c (java_number_of_children): Same.
7264 (java_name_of_variable): Same.
7265 (java_path_expr_of_child): Same.
7266 (java_value_of_variable): Same.
7267 * varobj.c (number_of_children): Same.
7268 (name_of_variable): Same.
7269 (is_root_p): Same.
7270 (varobj_ensure_python_env): Same.
7271 (varobj_get_objname): Same.
7272 (varobj_get_expression): Same.
7273 (varobj_get_display_format): Same.
7274 (varobj_get_display_hint): Same.
7275 (varobj_has_more): Same.
7276 (varobj_get_thread_id): Same.
7277 (varobj_get_frozen): Same.
7278 (dynamic_varobj_has_child_method): Same.
7279 (varobj_get_gdb_type): Same.
7280 (is_path_expr_parent): Same.
7281 (varobj_default_is_path_expr_parent): Same.
7282 (varobj_get_language): Same.
7283 (varobj_get_attributes): Same.
7284 (varobj_is_dynamic_p): Same.
7285 (varobj_get_child_range): Same.
7286 (varobj_value_has_mutated): Same.
7287 (varobj_get_value_type): Same.
7288 (number_of_children): Same.
7289 (name_of_variable): Same.
7290 (check_scope): Same.
7291 (varobj_editable_p): Same.
7292 (varobj_value_is_changeable_p): Same.
7293 (varobj_floating_p): Same.
7294 (varobj_default_value_is_changeable_p): Same.
7295
2568868e
SM
72962015-01-30 Simon Marchi <simon.marchi@ericsson.com>
7297
7298 * varobj.c (varobj_get_path_expr): Set var->path_expr.
7299 * c-varobj.c (c_path_expr_of_child): Set local var instead of
7300 child->path_expr.
7301 (cplus_path_expr_of_child): Same.
7302
ca83fa81
SM
73032015-01-30 Simon Marchi <simon.marchi@ericsson.com>
7304
7305 * mi-cmd-var.c (print_varobj): Free varobj_get_expression
7306 result.
7307 (mi_cmd_var_info_expression): Same.
7308 * varobj.c (varobj_get_expression): Mention in the comment that
7309 the result must by freed by the caller.
7310
afa269ae
SM
73112015-01-30 Simon Marchi <simon.marchi@ericsson.com>
7312
7313 * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of
7314 varobj_get_type.
7315 (varobj_update_one): Same.
7316 * varobj.c (update_type_if_necessary): Free curr_type_str and
7317 new_type_str.
7318 (varobj_get_type): Specify in comment that the result needs to be
7319 freed by the caller.
7320
cd366ee8
DE
73212015-01-29 Doug Evans <dje@google.com>
7322
7323 PR symtab/17890
7324 * dwarf2read.c (dwarf_decode_line_header): Punt if version > 4.
7325
38360086
MW
73262015-01-25 Mark Wielaard <mjw@redhat.com>
7327
7328 * dwarf2read.c (checkproducer): Call producer_is_gcc.
7329 * utils.c (producer_is_gcc_ge_4): Likewise.
7330 (producer_is_gcc): New function.
7331 * utils.h (producer_is_gcc): New declaration.
7332
df25ebbd
JB
73332015-01-29 Joel Brobecker <brobecker@adacore.com>
7334
7335 * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum
7336 kind.
7337 * gdbtypes.c (resolve_dynamic_type_internal): Replace "addr"
7338 parameter by "addr_stack" parameter.
7339 (resolve_dynamic_range): Replace "addr" parameter by
7340 "stack_addr" parameter. Update function documentation.
7341 Update code accordingly.
7342 (resolve_dynamic_array, resolve_dynamic_union)
7343 (resolve_dynamic_struct, resolve_dynamic_type_internal): Likewise.
7344 (resolve_dynamic_type): Update code, following the changes made
7345 to resolve_dynamic_type_internal's interface.
7346 * dwarf2loc.h (struct property_addr_info): New.
7347 (dwarf2_evaluate_property): Replace "address" parameter
7348 by "addr_stack" parameter. Adjust function documentation.
7349 (struct dwarf2_offset_baton): New.
7350 (struct dwarf2_property_baton): Update documentation of
7351 field "referenced_type" to be more general. New field
7352 "offset_info" in union data field.
7353 * dwarf2loc.c (dwarf2_evaluate_property): Replace "address"
7354 parameter by "addr_stack" parameter. Adjust code accordingly.
7355 Add support for PROP_ADDR_OFFSET properties.
7356 * dwarf2read.c (attr_to_dynamic_prop): Add support for
7357 DW_AT_data_member_location attributes as well. Use case
7358 statements instead of if/else condition.
7359
4a0ca9ec
JB
73602015-01-29 Joel Brobecker <brobecker@adacore.com>
7361
7362 * ada-varobj.c (ada_varobj_get_array_number_of_children):
7363 Return zero if PARENT_VALUE is NULL and parent_type's
7364 range type is dynamic.
7365
ddb87a81
JB
73662015-01-29 Joel Brobecker <brobecker@adacore.com>
7367
7368 * gdbtypes.c (is_dynamic_type_internal) <TYPE_CODE_RANGE>: Return
7369 nonzero if the type's subtype is dynamic.
7370 (resolve_dynamic_range): Also resolve the range's subtype.
7371
3d7ad9b4 73722015-01-29 Alexander Klimov <alserkli@inbox.ru> (tiny patch)
7a270e0c 7373
3d7ad9b4 7374 Pushed by Joel Brobecker <brobecker@adacore.com>.
7a270e0c
AK
7375 * symfile.c (unmap_overlay_command): Initialize sec to NULL.
7376
3a8b707a
DE
73772015-01-27 Doug Evans <dje@google.com>
7378
7379 * NEWS: Mention gdb.Objfile.username.
7380 * python/py-objfile.c (objfpy_get_username): New function.
7381 (objfile_getset): Add "username".
7382
d35b90fb
MW
73832015-01-24 Mark Wielaard <mjw@redhat.com>
7384
7385 * stack.c (return_command): Markup warning message with _.
7386
734ae125
DE
73872015-01-24 Doug Evans <xdje42@gmail.com>
7388
7389 * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete.
7390
527f3840
JK
73912015-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
7392
7393 Fix 100x slowdown regression on DWZ files.
7394 * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash.
7395 (struct line_header): Add offset and offset_in_dwz.
7396 (dwarf_decode_lines): Add parameter decode_mapping to the declaration.
7397 (free_line_header_voidp): New declaration.
7398 (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New
7399 functions.
7400 (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller.
7401 (handle_DW_AT_stmt_list): Use line_header_hash.
7402 (free_line_header_voidp): New function.
7403 (dwarf_decode_line_header): Initialize offset and offset_in_dwz.
7404 (dwarf_decode_lines): New parameter decode_mapping, use it.
7405 (dwarf2_free_objfile): Free line_header_hash.
7406
f7e5394d
SM
74072015-01-23 Simon Marchi <simon.marchi@ericsson.com>
7408
7409 PR gdb/17416
7410 * valops.c (value_rtti_indirect_type): Catch exception thrown by
7411 value_ind.
7412
743649fd
MW
74132015-01-15 Mark Wielaard <mjw@redhat.com>
7414
7415 * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from
7416 DW_AT_noreturn.
7417 * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make
7418 calling_convention an 8 bit bit field.
7419 (TYPE_NO_RETURN): New macro.
7420 * infcmd.c (finish_command): Query if function does not return
7421 normally.
7422 * stack.c (return_command): Likewise.
7423
198297aa
PA
74242015-01-23 Pedro Alves <palves@redhat.com>
7425
7426 * linux-nat.c (linux_is_async_p): New macro.
7427 (linux_nat_is_async_p):
7428 (linux_nat_terminal_inferior): Check whether the target can async
7429 instead of whether it is already async.
7430 (linux_nat_terminal_ours): Don't check whether the target is
7431 async.
7432 (linux_async_pipe): Use linux_is_async_p.
7433
253828f1
JK
74342015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7435
7436 * NEWS (Changes since GDB 7.9): Add 'thread apply all' option
7437 '-ascending'.
7438 * thread.c (tp_array_compar_ascending, tp_array_compar): New.
7439 (thread_apply_all_command): Parse CMD for tp_array_compar_ascending.
7440 Sort tp_array using tp_array_compar.
7441 (_initialize_thread): Extend thread_apply_all_command help.
7442
f0e8c4c5
JK
74432015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7444
7445 * corelow.c (core_open): Call also thread_command.
7446 * gdbthread.h (thread_command): New prototype moved from ...
7447 * thread.c (thread_command): ... here.
7448 (thread_command): Make it global.
7449
03b79603
PA
74502015-01-22 Pedro Alves <palves@redhat.com>
7451
7452 * configure.ac [*mingw32*]: Check $curses_found instead of
7453 $prefer_curses.
7454 * configure: Regenerate.
7455 * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and
7456 HAVE_NCURSES_NCURSES_H checks.
7457
6b8a872f
EZ
74582015-01-22 Eli Zaretskii <eliz@gnu.org>
7459
bbbbffbb 7460 * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm'
6b8a872f
EZ
7461 fails with the 1st arg NULL, try again with "unknown". Don't test
7462 the "cup" capability: it isn't supported by the Windows port of
7463 ncurses, but the Windows console driver is still capable of
7464 supporting TUI.
7465
4b62a76e
JK
74662015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7467
7468 * compile/compile.c (_initialize_compile): Use -fPIE for compile_args.
7469
82a864f9
EZ
74702015-01-22 Eli Zaretskii <eliz@gnu.org>
7471
7472 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
7473 (ALLDEPFILES): Remove irix5-nat.c. These two are part of the
7474 reason that "make TAGS" is broken.
7475
b35018fd
CG
74762015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
7477
7478 * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues
7479 and check additional store instructions.
7480
ffbc4646
WW
74812015-01-21 Wei-cheng Wang <cole945@gmail.com>
7482
7483 * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang".
7484
ddeca1df
WW
74852015-01-21 Wei-cheng Wang <cole945@gmail.com>
7486
7487 * ppc-linux-tdep.c (ppc_skip_trampoline_code,
7488 ppc_canonicalize_syscall, ppc_linux_syscall_record,
7489 ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments.
7490 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
7491 * rs6000-tdep.c (rs6000_epilogue_frame_cache,
7492 rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register,
7493 rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4,
7494 ppc_process_record_op19, ppc_process_record_op31,
7495 ppc_process_record_op59, ppc_process_record_op60,
7496 ppc_process_record_op63): Likewise.
7497
049bb5de
JB
74982015-01-20 Joel Brobecker <brobecker@adacore.com>
7499
7500 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string)
7501 (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of
7502 strerror.
7503
42b87c63 75042015-01-20 Wei-cheng Wang <cole945@gmail.com>
810c1026
WW
7505
7506 * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19,
7507 ppc_process_record_op31, ppc_process_record_op59,
7508 ppc_process_record_op60, ppc_process_record_op63,
7509 ppc_process_record): Fix -Wformat warning.
7510 * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60):
7511 Remove unused variables.
7512
569340fc
CG
75132015-01-20 Chen Gang <gang.chen.5i5j@gmail.com>
7514
7515 * MAINTAINERS (Write After Approval): Add "Chen Gang".
7516
63413d85
EZ
75172015-01-19 Eli Zaretskii <eliz@gnu.org>
7518
7519 * configure.ac [*mingw32*]: Only add windows-termcap.o to
7520 CONFIG_OBS if not building with a curses library.
7521 * configure: Regenerate.
7522
7523 * windows-termcap.c: Include defs.h. Make the whole body empty if
7524 either one of HAVE_CURSES_H or HAVE_NCURSES_H or
7525 HAVE_NCURSES_NCURSES_H is defined.
7526
16d8013c
JB
75272015-01-19 Joel Brobecker <brobecker@adacore.com>
7528
7529 * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator
7530 from end of line to start of next line.
7531
cf90fd9a
WW
75322015-01-17 Wei-cheng Wang <cole945@gmail.com>
7533
7534 * ppc-linux-tdep.c (ppc_skip_trampoline_code):
7535 Scan PLT stub backward for reverse debugging.
7536 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
7537
b4cdae6f
WW
75382015-01-17 Wei-cheng Wang <cole945@gmail.com>
7539 Ulrich Weigand <uweigand@de.ibm.com>
7540
7541 * configure.tgt (powerpc*-*-linux): Add linux-record.o to
7542 gdb_target_obs.
7543 (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall
7544 record.
7545 (ppc_canonicalize_syscall, ppc_linux_syscall_record,
7546 ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions.
7547 (ppc_linux_init_abi): Set process_record, process_record_signal.
7548 * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and
7549 ppc_linux_record_tdep to gdbarch_tdep.
7550 (ppc_process_record): New declaration.
7551 * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4,
7552 ppc_process_record_op19, ppc_process_record_op31,
7553 ppc_process_record_op59, ppc_process_record_op60,
7554 ppc_process_record_op63, ppc_process_record): New functions.
7555
2608dbf8
WW
75562015-01-17 Wei-cheng Wang <cole945@gmail.com>
7557
7558 * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to
7559 rs6000_in_function_epilogue_frame_p and add an argument
7560 for frame_info.
7561 (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id,
7562 rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer):
7563 New functions.
7564 (rs6000_epilogue_frame_unwind): New.
7565 (rs6000_gdbarch_init): Append epilogue unwinder.
7566
4c347be6
SDJ
75672015-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
7568
7569 * nat/linux-personality.c: Replace "#ifndef
7570 HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if
7571 !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5
7572 systems.
7573
9f2850ba
EZ
75742015-01-16 Eli Zaretskii <eliz@gnu.org>
7575
6cdb25f4
EZ
7576 * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
7577 functions.
7578 (_initialize_tui_win) <border-kind, border-mode>:
7579 <active-border-mode>: Use tui_set_var_cmd as the "set" function.
c54da50d
EZ
7580 (tui_set_tab_width_command): Fix the commentary.
7581
6cdb25f4
EZ
7582 * tui/tui-win.h: Add prototype for tui_rehighlight_all.
7583
bf555842
EZ
7584 * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
7585 Doc fix.
cb86fcc1
EZ
7586 (tui_set_tab_width_command): Delete and recreate the source and
7587 the disassembly windows, to show the effect of the changed tab
7588 size immediately.
bf555842 7589
9f2850ba
EZ
7590 * tui/tui-data.h (LINE_PREFIX): Make shorter
7591 (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for
7592 "Thread NNNNN.XXXX" thread ID notation on Windows.
7593
95761b2d
JK
75942015-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7595
7596 Fix gcc-5 compilation.
7597 * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
7598
8cc73a39
SDJ
75992015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
7600
7601 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
7602 (linux-personality.o): New rule.
7603 * common/common-defs.h: Include <stdint.h>.
7604 * config/aarch64/linux.mh (NATDEPFILES): Include
7605 linux-personality.o.
7606 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
7607 * config/arm/linux.mh (NATDEPFILES): Likewise.
7608 * config/i386/linux64.mh (NATDEPFILES): Likewise.
7609 * config/i386/linux.mh (NATDEPFILES): Likewise.
7610 * config/ia64/linux.mh (NATDEPFILES): Likewise.
7611 * config/m32r/linux.mh (NATDEPFILES): Likewise.
7612 * config/m68k/linux.mh (NATDEPFILES): Likewise.
7613 * config/mips/linux.mh (NATDEPFILES): Likewise.
7614 * config/pa/linux.mh (NATDEPFILES): Likewise.
7615 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
7616 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
7617 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
7618 * config/s390/linux.mh (NATDEPFILES): Likewise.
7619 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
7620 * config/sparc/linux.mh (NATDEPFILES): Likewise.
7621 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
7622 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
7623 * defs.h: Remove #include <stdint.h> (moved to
7624 common/common-defs.h).
7625 * linux-nat.c: Include nat/linux-personality.h. Remove #include
7626 <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
7627 nat/linux-personality.c).
7628 (linux_nat_create_inferior): Remove code to disable address space
7629 randomization (moved to nat/linux-personality.c). Create cleanup
7630 to disable address space randomization.
7631 * nat/linux-personality.c: New file.
7632 * nat/linux-personality.h: Likewise.
7633
fb23d554
SDJ
76342015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
7635
7636 * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
7637 common/posix-strerror.c.
7638 (posix-strerror.o): New rule.
7639 (mingw-strerror.o): Likewise.
7640 * common/common-utils.h (safe_strerror): Move prototype to here,
7641 from utils.h.
7642 * common/common.host: New file.
7643 * common/mingw-strerror.c: Likewise.
7644 * common/posix-strerror.c: Likewise.
7645 * configure: Regenerated.
7646 * configure.ac: Source common/common.host. Add variable
7647 common_host_obs to gdb_host_obs.
7648 * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
7649 gdb/common/posix-strerror.c when warning about the use of
7650 strerror.
7651 * mingw-hdep.c (safe_strerror): Remove definition; move it to
7652 common/mingw-strerror.c.
7653 * posix-hdep.c (safe_strerror): Remove definition; move it to
7654 common/posix-hdep.c.
7655 * utils.h (safe_strerror): Remove prototype; move to
7656 common/common-utils.h.
7657
3af8af43
JB
76582015-01-15 Joel Brobecker <brobecker@adacore.com>
7659
7660 GDB 7.8.2 released.
7661
bafffb51
JB
76622015-01-15 Joel Brobecker <brobecker@adacore.com>
7663
7664 * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
7665 ___XA type if the array has already been fixed.
7666
cdf43629
YQ
76672015-01-14 Yao Qi <yao@codesourcery.com>
7668
7669 * Makefile.in (ppc-linux.o): New rule.
7670 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
7671 * configure.ac: AC_CHECK_FUNCS(getauxval).
7672 * config.in: Re-generated.
7673 * configure: Re-generated.
7674 * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
7675 Declare.
7676 * nat/ppc-linux.c: New file.
7677 * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
7678 Call ppc64_64bit_inferior_p.
7679
514c5338
YQ
76802015-01-14 Yao Qi <yao@codesourcery.com>
7681
7682 * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
7683 nat/ppc-linux.h.
7684 (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
7685 (PPC_FEATURE_HAS_DFP): Likewise.
7686 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
7687 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
7688 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
7689 Include "nat/ppc-linux.h".
7690 * nat/ppc-linux.h: New file.
7691 * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
7692
5589af0e
PA
76932015-01-14 Pedro Alves <palves@redhat.com>
7694
7695 PR gdb/17525
7696 * breakpoint.c: Include "interps.h".
7697 (bpstat_do_actions_1): Also check whether the interpreter is
7698 async.
7699
6c400b59
PA
77002015-01-14 Pedro Alves <palves@redhat.com>
7701
7702 PR cli/17828
7703 * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
7704 reinstall if the interpreter is sync.
7705
e02c96a7
DE
77062015-01-13 Doug Evans <dje@google.com>
7707
7708 * objfiles.c (objfile_filename): New function.
7709 * objfiles.h (objfile_filename): Declare it.
7710 (objfile_name): Add function comment.
7711 * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
7712 bfd file name (which may be realpath'd), and the original name.
7713
3b2f13ff
JB
77142015-01-13 Joel Brobecker <brobecker@adacore.com>
7715
7716 * NEWS: Create a new section for the next release branch.
7717 Rename the section of the current branch, now that it has
7718 been cut.
7719
b4cfe7f8
JB
77202015-01-13 Joel Brobecker <brobecker@adacore.com>
7721
7722 GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
7723 * version.in: Bump version to 7.9.50.DATE-cvs.
7724
92fc2e69
JB
77252015-01-13 Joel Brobecker <brobecker@adacore.com>
7726
7727 * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
7728 Remove trailing new-line in argument of call to warning.
7729
f71f0b0d
JB
77302015-01-13 Joel Brobecker <brobecker@adacore.com>
7731
7732 * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
7733 new-line in argument of call to "warning".
7734
04dccad0
JB
77352015-01-13 Joel Brobecker <brobecker@adacore.com>
7736
7737 * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
7738 in static block, then try searching for primitive types.
7739
08b13bdd
PP
77402015-01-12 Patrick Palka <patrick@parcs.ath.cx>
7741
7742 * top.h (gdb_add_history): Declare.
7743 * top.c (command_count): New variable.
7744 (gdb_add_history): New function.
7745 (gdb_safe_append_history): New static function.
7746 (quit_force): Call it.
7747 (command_line_input): Use gdb_add_history instead of
7748 add_history.
7749 * event-top.c (command_line_handler): Likewise.
7750
4ac15b59
JC
77512015-01-12 James Clarke <jrtc27@jrtc27.com> (tiny patch)
7752
7753 PR gdb/17046
7754 * darwin-nat.c: Replace <machine/setjmp.h> #include by
7755 <setjmp.h> #include.
7756
005e54bb
DE
77572015-01-11 Doug Evans <xdje42@gmail.com>
7758
7759 * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
7760
439250fb
DE
77612015-01-11 Doug Evans <xdje42@gmail.com>
7762
7763 PR gdb/15830
7764 * NEWS: The "maint demangle" command is renamed as "demangle".
7765 * demangle.c: #include cli/cli-utils.h, language.h.
7766 (demangle_command): New function.
7767 (_initialize_demangle): Add new command "demangle".
7768 * maint.c (maintenance_demangle): Stub out.
7769 (_initialize_maint_cmds): Update help text for "maint demangle",
7770 and mark as deprecated.
7771
ebf3aa72
MK
77722015-01-11 Mark Kettenis <kettenis@gnu.org>
7773
7774 * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
7775 inferior_thread is a function.
7776
6bf045cd
PP
77772015-01-09 Patrick Palka <patrick@parcs.ath.cx>
7778
7779 * Makefile.in (.y.c): Don't munge yacc's #line
7780 directives.
7781
588dcc3e
PP
77822015-01-09 Patrick Palka <patrick@parcs.ath.cx>
7783
7784 * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
7785 to prompt for input.
7786 * tui/tui-hooks.c (tui_query_hook): Remove.
7787 (tui_install_hooks): Don't set deprecated_query_hook.
7788 * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
7789 height calculation. Always update the command window's cur_line.
7790
9c02b525
PA
77912015-01-09 Pedro Alves <palves@redhat.com>
7792
7793 * breakpoint.c (hardware_breakpoint_inserted_here_p): New
7794 function.
7795 * breakpoint.h (hardware_breakpoint_inserted_here_p): New
7796 declaration.
7797 * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
7798 (linux_resume_one_lwp): Store the thread's PC. Adjust to clear
7799 stop_reason.
7800 (check_stopped_by_watchpoint): New function.
7801 (save_sigtrap): Reimplement.
7802 (linux_nat_stopped_by_watchpoint): Adjust.
7803 (linux_nat_lp_status_is_event): Delete.
7804 (stop_wait_callback): Only call save_sigtrap after storing the
7805 pending status.
7806 (status_callback): If the thread had been stopped for a breakpoint
7807 that has since been removed, discard the event and resume the LWP.
7808 (count_events_callback, select_event_lwp_callback): Use
7809 lwp_status_pending_p instead of linux_nat_lp_status_is_event.
7810 (cancel_breakpoint): Rename to ...
7811 (check_stopped_by_breakpoint): ... this. Record whether the LWP
7812 stopped for a software breakpoint or hardware breakpoint.
7813 (select_event_lwp): Only give preference to the stepping LWP in
7814 all-stop mode. Adjust comments.
7815 (stop_and_resume_callback): Remove references to new_pending_p.
7816 (linux_nat_filter_event): Likewise. Leave exit events of the
7817 leader thread pending here. Handle signal short circuiting here.
7818 Only call save_sigtrap after storing the pending waitstatus.
7819 (linux_nat_wait_1): Remove 'retry' label. Remove references to
7820 new_pending. Don't handle leaving events the caller is not
7821 interested in pending here, nor handle signal short-circuiting
7822 here. Also give equal priority to all LWPs that have had events
7823 in non-stop mode. If reporting a software breakpoint event,
7824 unadjust the LWP's PC.
7825 * linux-nat.h (enum lwp_stop_reason): New.
7826 (struct lwp_info) <stop_pc>: New field.
7827 (struct lwp_info) <stopped_by_watchpoint>: Delete field.
7828 (struct lwp_info) <stop_reason>: New field.
7829 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
7830
8af756ef
PA
78312015-01-09 Pedro Alves <palves@redhat.com>
7832
7833 * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
7834 Set the LWP's 'resumed' flag.
7835
8a99810d
PA
78362015-01-09 Pedro Alves <palves@redhat.com>
7837
7838 * linux-nat.c (linux_resume_one_lwp): New function.
7839 (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
7840 (linux_nat_resume): Use lwp_status_pending_p and
7841 linux_resume_one_lwp.
7842 (linux_handle_syscall_trap): Use linux_resume_one_lwp.
7843 (linux_handle_extended_wait): Use linux_resume_one_lwp.
7844 (status_callback, running_callback): Use lwp_status_pending_p.
7845 (lwp_status_pending_p): New function.
7846 (stop_and_resume_callback): Use lwp_status_pending_p.
7847 (linux_nat_filter_event): Use linux_resume_one_lwp.
7848 (linux_nat_wait_1): Always use status_callback to look for an LWP
7849 with a pending status. Use linux_resume_one_lwp.
7850 (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
7851 linux_resume_one_lwp.
7852
f7ce857f
PA
78532015-01-09 Pedro Alves <palves@redhat.com>
7854
7855 * breakpoint.c (bp_location_inserted_here_p): New function,
7856 factored out from ...
7857 (breakpoint_inserted_here_p): ... here. Use
7858 ALL_BP_LOCATIONS_AT_ADDR.
7859 (software_breakpoint_inserted_here_p): Use
7860 bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
7861
c1a747c1
PA
78622014-01-09 Pedro Alves <palves@redhat.com>
7863
7864 Skip enabling event reporting if the kernel supports
7865 PTRACE_EVENT_CLONE.
7866 * linux-thread-db.c: Include "nat/linux-ptrace.h".
7867 (thread_db_use_events): New function.
7868 (try_thread_db_load_1): Check thread_db_use_events before enabling
7869 event reporting.
7870 (update_thread_state): New function.
7871 (attach_thread): Use it. Check thread_db_use_events before
7872 enabling event reporting.
7873 (thread_db_detach): Check thread_db_use_events before disabling
7874 event reporting.
7875 (find_new_threads_callback): Check thread_db_use_events before
7876 enabling event reporting. Update the thread's state if not using
7877 libthread_db events.
7878
a33e3959
PA
78792015-01-09 Pedro Alves <palves@redhat.com>
7880
7881 * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
7882 about to wait for is > 0.
7883 * linux-thread-db.c (find_new_threads_callback): Ignore thread if
7884 the kernel thread ID is -1.
7885
8784d563
PA
78862015-01-09 Pedro Alves <palves@redhat.com>
7887
7888 * linux-nat.c (attach_proc_task_lwp_callback): New function.
7889 (linux_nat_attach): Use linux_proc_attach_tgid_threads.
7890 (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
7891 ptrace option flags.
7892 * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
7893 field.
7894 * nat/linux-procfs.c: Include <dirent.h>.
7895 (linux_proc_get_int): New parameter "warn". Handle it.
7896 (linux_proc_get_tgid): Adjust.
7897 (linux_proc_get_tracerpid): Rename to ...
7898 (linux_proc_get_tracerpid_nowarn): ... this.
7899 (linux_proc_pid_get_state): New function, factored out from
7900 (linux_proc_pid_has_state): ... this. Add new parameter "warn"
7901 and handle it.
7902 (linux_proc_pid_is_gone): New function.
7903 (linux_proc_pid_is_stopped): Adjust.
7904 (linux_proc_pid_is_zombie_maybe_warn)
7905 (linux_proc_pid_is_zombie_nowarn): New functions.
7906 (linux_proc_pid_is_zombie): Use
7907 linux_proc_pid_is_zombie_maybe_warn.
7908 (linux_proc_attach_tgid_threads): New function.
7909 * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
7910 (linux_proc_get_tracerpid): Rename to ...
7911 (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
7912 (linux_proc_pid_is_gone): New declaration.
7913 (linux_proc_pid_is_zombie): Update comment.
7914 (linux_proc_pid_is_zombie_nowarn): New declaration.
7915 (linux_proc_attach_lwp_func): New typedef.
7916 (linux_proc_attach_tgid_threads): New declaration.
7917 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
7918 use nowarn functions.
7919 (linux_ptrace_attach_fail_reason_string): Move here from
7920 gdbserver/linux-low.c and rename.
7921 (ptrace_supports_feature): If the current ptrace options are not
7922 known yet, check them now, instead of asserting.
7923 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
7924 Declare.
7925
883ed13e
PA
79262015-01-09 Pedro Alves <palves@redhat.com>
7927
7928 * linux-thread-db.c (thread_db_find_new_threads_silently)
7929 (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
7930 (find_new_threads_once): Print debug output on gdb_stdlog.
7931
1710aab8
CG
79322015-01-09 Chen Gang <gang.chen.5i5j@gmail.com>
7933 Pedro Alves <palves@redhat.com>
7934
7935 * compile/compile.c: Include "gdb_wait.h".
7936 (do_rmdir): Check return value, and free 'zap'.
7937
b597c318
YQ
79382015-01-08 Pedro Alves <palves@redhat.com>
7939 Yao Qi <yao@codesourcery.com>
7940
7941 * dwarf2loc.c (indirect_pieced_value): Don't call
7942 gdb_sign_extend. Call extract_signed_integer instead.
7943 * utils.c (gdb_sign_extend): Remove.
7944 * utils.h (gdb_sign_extend): Remove declaration.
7945
025ac414
PM
79462015-01-07 Pierre Muller <muller@sourceware.org>
7947
7948 PR symtab/17811
7949 * stabsread.c (define_symbol): Set language for C++ special symbols.
7950
fa5af12a
PP
79512015-01-07 Patrick Palka <patrick@parcs.ath.cx>
7952
7953 * inflow.c (initial_gdb_ttystate): Tweak comment.
7954
ea42d6f8
JB
79552015-01-07 Joel Brobecker <brobecker@adacore.com>
7956
7957 * inflow.c (set_initial_gdb_ttystate): Add empty line after
7958 comment documenting function.
7959
6a06d660
PP
79602015-01-07 Patrick Palka <patrick@parcs.ath.cx>
7961
7962 * terminal.h (set_initial_gdb_ttystate): Declare.
7963 * inflow.c (initial_gdb_ttystate): New static variable.
7964 (set_initial_gdb_ttystate): New setter.
7965 (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
7966 instead of our current terminal state.
7967 * top.c (gdb_init): Call set_initial_gdb_ttystate.
7968
e810d75b
JB
79692015-01-07 Joel Brobecker <brobecker@adacore.com>
7970
7971 * guile/scm-type.c (tyscm_array_1): Add comment.
7972 * python/py-type.c (typy_array_1): Add comment.
7973
fce10a84
JB
79742015-01-06 Joel Brobecker <brobecker@adacore.com>
7975
7976 * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
7977 error if N2 is equal to N1 - 1.
7978
8503d6e1
JB
79792015-01-06 Joel Brobecker <brobecker@adacore.com>
7980
7981 * python/py-type.c (typy_array_1): Do not raise negative-length
7982 exception if N2 is equal to N1 - 1.
7983
4d29c0a8
DE
79842015-01-03 Doug Evans <xdje42@gmail.com>
7985
7986 * c-exp.y: Whitespace cleanup.
7987 (classify_inner_name): Remove extra ;.
7988
eaa6a9a4
MR
79892015-01-02 Maciej W. Rozycki <macro@codesourcery.com>
7990
7991 * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
7992 offset signed.
7993
02fe9972
DE
79942015-01-02 Doug Evans <dje@google.com>
7995
7996 * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
7997
e2ada9cb
DE
79982015-01-02 Doug Evans <dje@google.com>
7999
8000 * symtab.h (struct symbol): Fix typo in comment.
8001
32d0add0
JB
80022015-01-01 Joel Brobecker <brobecker@adacore.com>
8003
8004 Update year range in copyright notice of all files.
8005
76f2b779
JB
80062015-01-01 Joel Brobecker <brobecker@adacore.com>
8007
8008 * top.c (print_gdb_version): Update copyright year to 2015.
8009
077309e2 80102015-01-01 Joel Brobecker <brobecker@adacore.com>
6bf6fd09 8011
077309e2 8012 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
6bf6fd09 8013
077309e2 8014For older changes see ChangeLog-2014.
c906108c
SS
8015\f
8016Local Variables:
8017mode: change-log
8018left-margin: 8
8019fill-column: 74
8020version-control: never
57da7796 8021coding: utf-8
c906108c 8022End:
This page took 2.019961 seconds and 4 git commands to generate.