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