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