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