1 2015-01-13 Joel Brobecker <brobecker@adacore.com>
3 * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
4 new-line in argument of call to "warning".
6 2015-01-13 Joel Brobecker <brobecker@adacore.com>
8 * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
9 in static block, then try searching for primitive types.
11 2015-01-12 Patrick Palka <patrick@parcs.ath.cx>
13 * top.h (gdb_add_history): Declare.
14 * top.c (command_count): New variable.
15 (gdb_add_history): New function.
16 (gdb_safe_append_history): New static function.
17 (quit_force): Call it.
18 (command_line_input): Use gdb_add_history instead of
20 * event-top.c (command_line_handler): Likewise.
22 2015-01-12 James Clarke <jrtc27@jrtc27.com> (tiny patch)
25 * darwin-nat.c: Replace <machine/setjmp.h> #include by
28 2015-01-11 Doug Evans <xdje42@gmail.com>
30 * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
32 2015-01-11 Doug Evans <xdje42@gmail.com>
35 * NEWS: The "maint demangle" command is renamed as "demangle".
36 * demangle.c: #include cli/cli-utils.h, language.h.
37 (demangle_command): New function.
38 (_initialize_demangle): Add new command "demangle".
39 * maint.c (maintenance_demangle): Stub out.
40 (_initialize_maint_cmds): Update help text for "maint demangle",
41 and mark as deprecated.
43 2015-01-11 Mark Kettenis <kettenis@gnu.org>
45 * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
46 inferior_thread is a function.
48 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
50 * Makefile.in (.y.c): Don't munge yacc's #line
53 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
55 * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
57 * tui/tui-hooks.c (tui_query_hook): Remove.
58 (tui_install_hooks): Don't set deprecated_query_hook.
59 * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
60 height calculation. Always update the command window's cur_line.
62 2015-01-09 Pedro Alves <palves@redhat.com>
64 * breakpoint.c (hardware_breakpoint_inserted_here_p): New
66 * breakpoint.h (hardware_breakpoint_inserted_here_p): New
68 * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
69 (linux_resume_one_lwp): Store the thread's PC. Adjust to clear
71 (check_stopped_by_watchpoint): New function.
72 (save_sigtrap): Reimplement.
73 (linux_nat_stopped_by_watchpoint): Adjust.
74 (linux_nat_lp_status_is_event): Delete.
75 (stop_wait_callback): Only call save_sigtrap after storing the
77 (status_callback): If the thread had been stopped for a breakpoint
78 that has since been removed, discard the event and resume the LWP.
79 (count_events_callback, select_event_lwp_callback): Use
80 lwp_status_pending_p instead of linux_nat_lp_status_is_event.
81 (cancel_breakpoint): Rename to ...
82 (check_stopped_by_breakpoint): ... this. Record whether the LWP
83 stopped for a software breakpoint or hardware breakpoint.
84 (select_event_lwp): Only give preference to the stepping LWP in
85 all-stop mode. Adjust comments.
86 (stop_and_resume_callback): Remove references to new_pending_p.
87 (linux_nat_filter_event): Likewise. Leave exit events of the
88 leader thread pending here. Handle signal short circuiting here.
89 Only call save_sigtrap after storing the pending waitstatus.
90 (linux_nat_wait_1): Remove 'retry' label. Remove references to
91 new_pending. Don't handle leaving events the caller is not
92 interested in pending here, nor handle signal short-circuiting
93 here. Also give equal priority to all LWPs that have had events
94 in non-stop mode. If reporting a software breakpoint event,
95 unadjust the LWP's PC.
96 * linux-nat.h (enum lwp_stop_reason): New.
97 (struct lwp_info) <stop_pc>: New field.
98 (struct lwp_info) <stopped_by_watchpoint>: Delete field.
99 (struct lwp_info) <stop_reason>: New field.
100 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
102 2015-01-09 Pedro Alves <palves@redhat.com>
104 * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
105 Set the LWP's 'resumed' flag.
107 2015-01-09 Pedro Alves <palves@redhat.com>
109 * linux-nat.c (linux_resume_one_lwp): New function.
110 (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
111 (linux_nat_resume): Use lwp_status_pending_p and
112 linux_resume_one_lwp.
113 (linux_handle_syscall_trap): Use linux_resume_one_lwp.
114 (linux_handle_extended_wait): Use linux_resume_one_lwp.
115 (status_callback, running_callback): Use lwp_status_pending_p.
116 (lwp_status_pending_p): New function.
117 (stop_and_resume_callback): Use lwp_status_pending_p.
118 (linux_nat_filter_event): Use linux_resume_one_lwp.
119 (linux_nat_wait_1): Always use status_callback to look for an LWP
120 with a pending status. Use linux_resume_one_lwp.
121 (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
122 linux_resume_one_lwp.
124 2015-01-09 Pedro Alves <palves@redhat.com>
126 * breakpoint.c (bp_location_inserted_here_p): New function,
127 factored out from ...
128 (breakpoint_inserted_here_p): ... here. Use
129 ALL_BP_LOCATIONS_AT_ADDR.
130 (software_breakpoint_inserted_here_p): Use
131 bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
133 2014-01-09 Pedro Alves <palves@redhat.com>
135 Skip enabling event reporting if the kernel supports
137 * linux-thread-db.c: Include "nat/linux-ptrace.h".
138 (thread_db_use_events): New function.
139 (try_thread_db_load_1): Check thread_db_use_events before enabling
141 (update_thread_state): New function.
142 (attach_thread): Use it. Check thread_db_use_events before
143 enabling event reporting.
144 (thread_db_detach): Check thread_db_use_events before disabling
146 (find_new_threads_callback): Check thread_db_use_events before
147 enabling event reporting. Update the thread's state if not using
150 2015-01-09 Pedro Alves <palves@redhat.com>
152 * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
153 about to wait for is > 0.
154 * linux-thread-db.c (find_new_threads_callback): Ignore thread if
155 the kernel thread ID is -1.
157 2015-01-09 Pedro Alves <palves@redhat.com>
159 * linux-nat.c (attach_proc_task_lwp_callback): New function.
160 (linux_nat_attach): Use linux_proc_attach_tgid_threads.
161 (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
163 * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
165 * nat/linux-procfs.c: Include <dirent.h>.
166 (linux_proc_get_int): New parameter "warn". Handle it.
167 (linux_proc_get_tgid): Adjust.
168 (linux_proc_get_tracerpid): Rename to ...
169 (linux_proc_get_tracerpid_nowarn): ... this.
170 (linux_proc_pid_get_state): New function, factored out from
171 (linux_proc_pid_has_state): ... this. Add new parameter "warn"
173 (linux_proc_pid_is_gone): New function.
174 (linux_proc_pid_is_stopped): Adjust.
175 (linux_proc_pid_is_zombie_maybe_warn)
176 (linux_proc_pid_is_zombie_nowarn): New functions.
177 (linux_proc_pid_is_zombie): Use
178 linux_proc_pid_is_zombie_maybe_warn.
179 (linux_proc_attach_tgid_threads): New function.
180 * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
181 (linux_proc_get_tracerpid): Rename to ...
182 (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
183 (linux_proc_pid_is_gone): New declaration.
184 (linux_proc_pid_is_zombie): Update comment.
185 (linux_proc_pid_is_zombie_nowarn): New declaration.
186 (linux_proc_attach_lwp_func): New typedef.
187 (linux_proc_attach_tgid_threads): New declaration.
188 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
189 use nowarn functions.
190 (linux_ptrace_attach_fail_reason_string): Move here from
191 gdbserver/linux-low.c and rename.
192 (ptrace_supports_feature): If the current ptrace options are not
193 known yet, check them now, instead of asserting.
194 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
197 2015-01-09 Pedro Alves <palves@redhat.com>
199 * linux-thread-db.c (thread_db_find_new_threads_silently)
200 (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
201 (find_new_threads_once): Print debug output on gdb_stdlog.
203 2015-01-09 Chen Gang <gang.chen.5i5j@gmail.com>
204 Pedro Alves <palves@redhat.com>
206 * compile/compile.c: Include "gdb_wait.h".
207 (do_rmdir): Check return value, and free 'zap'.
209 2015-01-08 Pedro Alves <palves@redhat.com>
210 Yao Qi <yao@codesourcery.com>
212 * dwarf2loc.c (indirect_pieced_value): Don't call
213 gdb_sign_extend. Call extract_signed_integer instead.
214 * utils.c (gdb_sign_extend): Remove.
215 * utils.h (gdb_sign_extend): Remove declaration.
217 2015-01-07 Pierre Muller <muller@sourceware.org>
220 * stabsread.c (define_symbol): Set language for C++ special symbols.
222 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
224 * inflow.c (initial_gdb_ttystate): Tweak comment.
226 2015-01-07 Joel Brobecker <brobecker@adacore.com>
228 * inflow.c (set_initial_gdb_ttystate): Add empty line after
229 comment documenting function.
231 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
233 * terminal.h (set_initial_gdb_ttystate): Declare.
234 * inflow.c (initial_gdb_ttystate): New static variable.
235 (set_initial_gdb_ttystate): New setter.
236 (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
237 instead of our current terminal state.
238 * top.c (gdb_init): Call set_initial_gdb_ttystate.
240 2015-01-07 Joel Brobecker <brobecker@adacore.com>
242 * guile/scm-type.c (tyscm_array_1): Add comment.
243 * python/py-type.c (typy_array_1): Add comment.
245 2015-01-06 Joel Brobecker <brobecker@adacore.com>
247 * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
248 error if N2 is equal to N1 - 1.
250 2015-01-06 Joel Brobecker <brobecker@adacore.com>
252 * python/py-type.c (typy_array_1): Do not raise negative-length
253 exception if N2 is equal to N1 - 1.
255 2015-01-03 Doug Evans <xdje42@gmail.com>
257 * c-exp.y: Whitespace cleanup.
258 (classify_inner_name): Remove extra ;.
260 2015-01-02 Maciej W. Rozycki <macro@codesourcery.com>
262 * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
265 2015-01-02 Doug Evans <dje@google.com>
267 * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
269 2015-01-02 Doug Evans <dje@google.com>
271 * symtab.h (struct symbol): Fix typo in comment.
273 2015-01-01 Joel Brobecker <brobecker@adacore.com>
275 Update year range in copyright notice of all files.
277 2015-01-01 Joel Brobecker <brobecker@adacore.com>
279 * top.c (print_gdb_version): Update copyright year to 2015.
281 2015-01-01 Joel Brobecker <brobecker@adacore.com>
283 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
285 For older changes see ChangeLog-2014.
291 version-control: never