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