Append to input history file instead of overwriting it
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2015-01-12 Patrick Palka <patrick@parcs.ath.cx>
2
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.
7 (quit_force): Call it.
8 (command_line_input): Use gdb_add_history instead of
9 add_history.
10 * event-top.c (command_line_handler): Likewise.
11
12 2015-01-12 James Clarke <jrtc27@jrtc27.com> (tiny patch)
13
14 PR gdb/17046
15 * darwin-nat.c: Replace <machine/setjmp.h> #include by
16 <setjmp.h> #include.
17
18 2015-01-11 Doug Evans <xdje42@gmail.com>
19
20 * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
21
22 2015-01-11 Doug Evans <xdje42@gmail.com>
23
24 PR gdb/15830
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.
32
33 2015-01-11 Mark Kettenis <kettenis@gnu.org>
34
35 * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
36 inferior_thread is a function.
37
38 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
39
40 * Makefile.in (.y.c): Don't munge yacc's #line
41 directives.
42
43 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
44
45 * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
46 to prompt for input.
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.
51
52 2015-01-09 Pedro Alves <palves@redhat.com>
53
54 * breakpoint.c (hardware_breakpoint_inserted_here_p): New
55 function.
56 * breakpoint.h (hardware_breakpoint_inserted_here_p): New
57 declaration.
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
60 stop_reason.
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
66 pending status.
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.
91
92 2015-01-09 Pedro Alves <palves@redhat.com>
93
94 * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
95 Set the LWP's 'resumed' flag.
96
97 2015-01-09 Pedro Alves <palves@redhat.com>
98
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.
113
114 2015-01-09 Pedro Alves <palves@redhat.com>
115
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.
122
123 2014-01-09 Pedro Alves <palves@redhat.com>
124
125 Skip enabling event reporting if the kernel supports
126 PTRACE_EVENT_CLONE.
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
130 event reporting.
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
135 event reporting.
136 (find_new_threads_callback): Check thread_db_use_events before
137 enabling event reporting. Update the thread's state if not using
138 libthread_db events.
139
140 2015-01-09 Pedro Alves <palves@redhat.com>
141
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.
146
147 2015-01-09 Pedro Alves <palves@redhat.com>
148
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
152 ptrace option flags.
153 * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
154 field.
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"
162 and handle it.
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):
185 Declare.
186
187 2015-01-09 Pedro Alves <palves@redhat.com>
188
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.
192
193 2015-01-09 Chen Gang <gang.chen.5i5j@gmail.com>
194 Pedro Alves <palves@redhat.com>
195
196 * compile/compile.c: Include "gdb_wait.h".
197 (do_rmdir): Check return value, and free 'zap'.
198
199 2015-01-08 Pedro Alves <palves@redhat.com>
200 Yao Qi <yao@codesourcery.com>
201
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.
206
207 2015-01-07 Pierre Muller <muller@sourceware.org>
208
209 PR symtab/17811
210 * stabsread.c (define_symbol): Set language for C++ special symbols.
211
212 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
213
214 * inflow.c (initial_gdb_ttystate): Tweak comment.
215
216 2015-01-07 Joel Brobecker <brobecker@adacore.com>
217
218 * inflow.c (set_initial_gdb_ttystate): Add empty line after
219 comment documenting function.
220
221 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
222
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.
229
230 2015-01-07 Joel Brobecker <brobecker@adacore.com>
231
232 * guile/scm-type.c (tyscm_array_1): Add comment.
233 * python/py-type.c (typy_array_1): Add comment.
234
235 2015-01-06 Joel Brobecker <brobecker@adacore.com>
236
237 * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
238 error if N2 is equal to N1 - 1.
239
240 2015-01-06 Joel Brobecker <brobecker@adacore.com>
241
242 * python/py-type.c (typy_array_1): Do not raise negative-length
243 exception if N2 is equal to N1 - 1.
244
245 2015-01-03 Doug Evans <xdje42@gmail.com>
246
247 * c-exp.y: Whitespace cleanup.
248 (classify_inner_name): Remove extra ;.
249
250 2015-01-02 Maciej W. Rozycki <macro@codesourcery.com>
251
252 * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
253 offset signed.
254
255 2015-01-02 Doug Evans <dje@google.com>
256
257 * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
258
259 2015-01-02 Doug Evans <dje@google.com>
260
261 * symtab.h (struct symbol): Fix typo in comment.
262
263 2015-01-01 Joel Brobecker <brobecker@adacore.com>
264
265 Update year range in copyright notice of all files.
266
267 2015-01-01 Joel Brobecker <brobecker@adacore.com>
268
269 * top.c (print_gdb_version): Update copyright year to 2015.
270
271 2015-01-01 Joel Brobecker <brobecker@adacore.com>
272
273 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
274
275 For older changes see ChangeLog-2014.
276 \f
277 Local Variables:
278 mode: change-log
279 left-margin: 8
280 fill-column: 74
281 version-control: never
282 coding: utf-8
283 End:
This page took 0.036184 seconds and 5 git commands to generate.