c830053934e2763e09c754f6124bf1c5e9b6ba8e
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
2
3 * Makefile.in (.y.c): Don't munge yacc's #line
4 directives.
5
6 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
7
8 * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
9 to prompt for input.
10 * tui/tui-hooks.c (tui_query_hook): Remove.
11 (tui_install_hooks): Don't set deprecated_query_hook.
12 * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
13 height calculation. Always update the command window's cur_line.
14
15 2015-01-09 Pedro Alves <palves@redhat.com>
16
17 * breakpoint.c (hardware_breakpoint_inserted_here_p): New
18 function.
19 * breakpoint.h (hardware_breakpoint_inserted_here_p): New
20 declaration.
21 * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
22 (linux_resume_one_lwp): Store the thread's PC. Adjust to clear
23 stop_reason.
24 (check_stopped_by_watchpoint): New function.
25 (save_sigtrap): Reimplement.
26 (linux_nat_stopped_by_watchpoint): Adjust.
27 (linux_nat_lp_status_is_event): Delete.
28 (stop_wait_callback): Only call save_sigtrap after storing the
29 pending status.
30 (status_callback): If the thread had been stopped for a breakpoint
31 that has since been removed, discard the event and resume the LWP.
32 (count_events_callback, select_event_lwp_callback): Use
33 lwp_status_pending_p instead of linux_nat_lp_status_is_event.
34 (cancel_breakpoint): Rename to ...
35 (check_stopped_by_breakpoint): ... this. Record whether the LWP
36 stopped for a software breakpoint or hardware breakpoint.
37 (select_event_lwp): Only give preference to the stepping LWP in
38 all-stop mode. Adjust comments.
39 (stop_and_resume_callback): Remove references to new_pending_p.
40 (linux_nat_filter_event): Likewise. Leave exit events of the
41 leader thread pending here. Handle signal short circuiting here.
42 Only call save_sigtrap after storing the pending waitstatus.
43 (linux_nat_wait_1): Remove 'retry' label. Remove references to
44 new_pending. Don't handle leaving events the caller is not
45 interested in pending here, nor handle signal short-circuiting
46 here. Also give equal priority to all LWPs that have had events
47 in non-stop mode. If reporting a software breakpoint event,
48 unadjust the LWP's PC.
49 * linux-nat.h (enum lwp_stop_reason): New.
50 (struct lwp_info) <stop_pc>: New field.
51 (struct lwp_info) <stopped_by_watchpoint>: Delete field.
52 (struct lwp_info) <stop_reason>: New field.
53 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
54
55 2015-01-09 Pedro Alves <palves@redhat.com>
56
57 * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
58 Set the LWP's 'resumed' flag.
59
60 2015-01-09 Pedro Alves <palves@redhat.com>
61
62 * linux-nat.c (linux_resume_one_lwp): New function.
63 (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
64 (linux_nat_resume): Use lwp_status_pending_p and
65 linux_resume_one_lwp.
66 (linux_handle_syscall_trap): Use linux_resume_one_lwp.
67 (linux_handle_extended_wait): Use linux_resume_one_lwp.
68 (status_callback, running_callback): Use lwp_status_pending_p.
69 (lwp_status_pending_p): New function.
70 (stop_and_resume_callback): Use lwp_status_pending_p.
71 (linux_nat_filter_event): Use linux_resume_one_lwp.
72 (linux_nat_wait_1): Always use status_callback to look for an LWP
73 with a pending status. Use linux_resume_one_lwp.
74 (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
75 linux_resume_one_lwp.
76
77 2015-01-09 Pedro Alves <palves@redhat.com>
78
79 * breakpoint.c (bp_location_inserted_here_p): New function,
80 factored out from ...
81 (breakpoint_inserted_here_p): ... here. Use
82 ALL_BP_LOCATIONS_AT_ADDR.
83 (software_breakpoint_inserted_here_p): Use
84 bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
85
86 2014-01-09 Pedro Alves <palves@redhat.com>
87
88 Skip enabling event reporting if the kernel supports
89 PTRACE_EVENT_CLONE.
90 * linux-thread-db.c: Include "nat/linux-ptrace.h".
91 (thread_db_use_events): New function.
92 (try_thread_db_load_1): Check thread_db_use_events before enabling
93 event reporting.
94 (update_thread_state): New function.
95 (attach_thread): Use it. Check thread_db_use_events before
96 enabling event reporting.
97 (thread_db_detach): Check thread_db_use_events before disabling
98 event reporting.
99 (find_new_threads_callback): Check thread_db_use_events before
100 enabling event reporting. Update the thread's state if not using
101 libthread_db events.
102
103 2015-01-09 Pedro Alves <palves@redhat.com>
104
105 * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
106 about to wait for is > 0.
107 * linux-thread-db.c (find_new_threads_callback): Ignore thread if
108 the kernel thread ID is -1.
109
110 2015-01-09 Pedro Alves <palves@redhat.com>
111
112 * linux-nat.c (attach_proc_task_lwp_callback): New function.
113 (linux_nat_attach): Use linux_proc_attach_tgid_threads.
114 (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
115 ptrace option flags.
116 * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
117 field.
118 * nat/linux-procfs.c: Include <dirent.h>.
119 (linux_proc_get_int): New parameter "warn". Handle it.
120 (linux_proc_get_tgid): Adjust.
121 (linux_proc_get_tracerpid): Rename to ...
122 (linux_proc_get_tracerpid_nowarn): ... this.
123 (linux_proc_pid_get_state): New function, factored out from
124 (linux_proc_pid_has_state): ... this. Add new parameter "warn"
125 and handle it.
126 (linux_proc_pid_is_gone): New function.
127 (linux_proc_pid_is_stopped): Adjust.
128 (linux_proc_pid_is_zombie_maybe_warn)
129 (linux_proc_pid_is_zombie_nowarn): New functions.
130 (linux_proc_pid_is_zombie): Use
131 linux_proc_pid_is_zombie_maybe_warn.
132 (linux_proc_attach_tgid_threads): New function.
133 * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
134 (linux_proc_get_tracerpid): Rename to ...
135 (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
136 (linux_proc_pid_is_gone): New declaration.
137 (linux_proc_pid_is_zombie): Update comment.
138 (linux_proc_pid_is_zombie_nowarn): New declaration.
139 (linux_proc_attach_lwp_func): New typedef.
140 (linux_proc_attach_tgid_threads): New declaration.
141 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
142 use nowarn functions.
143 (linux_ptrace_attach_fail_reason_string): Move here from
144 gdbserver/linux-low.c and rename.
145 (ptrace_supports_feature): If the current ptrace options are not
146 known yet, check them now, instead of asserting.
147 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
148 Declare.
149
150 2015-01-09 Pedro Alves <palves@redhat.com>
151
152 * linux-thread-db.c (thread_db_find_new_threads_silently)
153 (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
154 (find_new_threads_once): Print debug output on gdb_stdlog.
155
156 2015-01-09 Chen Gang <gang.chen.5i5j@gmail.com>
157 Pedro Alves <palves@redhat.com>
158
159 * compile/compile.c: Include "gdb_wait.h".
160 (do_rmdir): Check return value, and free 'zap'.
161
162 2015-01-08 Pedro Alves <palves@redhat.com>
163 Yao Qi <yao@codesourcery.com>
164
165 * dwarf2loc.c (indirect_pieced_value): Don't call
166 gdb_sign_extend. Call extract_signed_integer instead.
167 * utils.c (gdb_sign_extend): Remove.
168 * utils.h (gdb_sign_extend): Remove declaration.
169
170 2015-01-07 Pierre Muller <muller@sourceware.org>
171
172 PR symtab/17811
173 * stabsread.c (define_symbol): Set language for C++ special symbols.
174
175 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
176
177 * inflow.c (initial_gdb_ttystate): Tweak comment.
178
179 2015-01-07 Joel Brobecker <brobecker@adacore.com>
180
181 * inflow.c (set_initial_gdb_ttystate): Add empty line after
182 comment documenting function.
183
184 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
185
186 * terminal.h (set_initial_gdb_ttystate): Declare.
187 * inflow.c (initial_gdb_ttystate): New static variable.
188 (set_initial_gdb_ttystate): New setter.
189 (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
190 instead of our current terminal state.
191 * top.c (gdb_init): Call set_initial_gdb_ttystate.
192
193 2015-01-07 Joel Brobecker <brobecker@adacore.com>
194
195 * guile/scm-type.c (tyscm_array_1): Add comment.
196 * python/py-type.c (typy_array_1): Add comment.
197
198 2015-01-06 Joel Brobecker <brobecker@adacore.com>
199
200 * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
201 error if N2 is equal to N1 - 1.
202
203 2015-01-06 Joel Brobecker <brobecker@adacore.com>
204
205 * python/py-type.c (typy_array_1): Do not raise negative-length
206 exception if N2 is equal to N1 - 1.
207
208 2015-01-03 Doug Evans <xdje42@gmail.com>
209
210 * c-exp.y: Whitespace cleanup.
211 (classify_inner_name): Remove extra ;.
212
213 2015-01-02 Maciej W. Rozycki <macro@codesourcery.com>
214
215 * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
216 offset signed.
217
218 2015-01-02 Doug Evans <dje@google.com>
219
220 * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
221
222 2015-01-02 Doug Evans <dje@google.com>
223
224 * symtab.h (struct symbol): Fix typo in comment.
225
226 2015-01-01 Joel Brobecker <brobecker@adacore.com>
227
228 Update year range in copyright notice of all files.
229
230 2015-01-01 Joel Brobecker <brobecker@adacore.com>
231
232 * top.c (print_gdb_version): Update copyright year to 2015.
233
234 2015-01-01 Joel Brobecker <brobecker@adacore.com>
235
236 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
237
238 For older changes see ChangeLog-2014.
239 \f
240 Local Variables:
241 mode: change-log
242 left-margin: 8
243 fill-column: 74
244 version-control: never
245 coding: utf-8
246 End:
This page took 0.033579 seconds and 4 git commands to generate.