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