PR cli/17828: -batch -ex r breaks terminal
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
6c400b59
PA
12015-01-14 Pedro Alves <palves@redhat.com>
2
3 PR cli/17828
4 * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
5 reinstall if the interpreter is sync.
6
e02c96a7
DE
72015-01-13 Doug Evans <dje@google.com>
8
9 * objfiles.c (objfile_filename): New function.
10 * objfiles.h (objfile_filename): Declare it.
11 (objfile_name): Add function comment.
12 * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
13 bfd file name (which may be realpath'd), and the original name.
14
3b2f13ff
JB
152015-01-13 Joel Brobecker <brobecker@adacore.com>
16
17 * NEWS: Create a new section for the next release branch.
18 Rename the section of the current branch, now that it has
19 been cut.
20
b4cfe7f8
JB
212015-01-13 Joel Brobecker <brobecker@adacore.com>
22
23 GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
24 * version.in: Bump version to 7.9.50.DATE-cvs.
25
92fc2e69
JB
262015-01-13 Joel Brobecker <brobecker@adacore.com>
27
28 * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
29 Remove trailing new-line in argument of call to warning.
30
f71f0b0d
JB
312015-01-13 Joel Brobecker <brobecker@adacore.com>
32
33 * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
34 new-line in argument of call to "warning".
35
04dccad0
JB
362015-01-13 Joel Brobecker <brobecker@adacore.com>
37
38 * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
39 in static block, then try searching for primitive types.
40
08b13bdd
PP
412015-01-12 Patrick Palka <patrick@parcs.ath.cx>
42
43 * top.h (gdb_add_history): Declare.
44 * top.c (command_count): New variable.
45 (gdb_add_history): New function.
46 (gdb_safe_append_history): New static function.
47 (quit_force): Call it.
48 (command_line_input): Use gdb_add_history instead of
49 add_history.
50 * event-top.c (command_line_handler): Likewise.
51
4ac15b59
JC
522015-01-12 James Clarke <jrtc27@jrtc27.com> (tiny patch)
53
54 PR gdb/17046
55 * darwin-nat.c: Replace <machine/setjmp.h> #include by
56 <setjmp.h> #include.
57
005e54bb
DE
582015-01-11 Doug Evans <xdje42@gmail.com>
59
60 * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
61
439250fb
DE
622015-01-11 Doug Evans <xdje42@gmail.com>
63
64 PR gdb/15830
65 * NEWS: The "maint demangle" command is renamed as "demangle".
66 * demangle.c: #include cli/cli-utils.h, language.h.
67 (demangle_command): New function.
68 (_initialize_demangle): Add new command "demangle".
69 * maint.c (maintenance_demangle): Stub out.
70 (_initialize_maint_cmds): Update help text for "maint demangle",
71 and mark as deprecated.
72
ebf3aa72
MK
732015-01-11 Mark Kettenis <kettenis@gnu.org>
74
75 * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
76 inferior_thread is a function.
77
6bf045cd
PP
782015-01-09 Patrick Palka <patrick@parcs.ath.cx>
79
80 * Makefile.in (.y.c): Don't munge yacc's #line
81 directives.
82
588dcc3e
PP
832015-01-09 Patrick Palka <patrick@parcs.ath.cx>
84
85 * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
86 to prompt for input.
87 * tui/tui-hooks.c (tui_query_hook): Remove.
88 (tui_install_hooks): Don't set deprecated_query_hook.
89 * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
90 height calculation. Always update the command window's cur_line.
91
9c02b525
PA
922015-01-09 Pedro Alves <palves@redhat.com>
93
94 * breakpoint.c (hardware_breakpoint_inserted_here_p): New
95 function.
96 * breakpoint.h (hardware_breakpoint_inserted_here_p): New
97 declaration.
98 * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
99 (linux_resume_one_lwp): Store the thread's PC. Adjust to clear
100 stop_reason.
101 (check_stopped_by_watchpoint): New function.
102 (save_sigtrap): Reimplement.
103 (linux_nat_stopped_by_watchpoint): Adjust.
104 (linux_nat_lp_status_is_event): Delete.
105 (stop_wait_callback): Only call save_sigtrap after storing the
106 pending status.
107 (status_callback): If the thread had been stopped for a breakpoint
108 that has since been removed, discard the event and resume the LWP.
109 (count_events_callback, select_event_lwp_callback): Use
110 lwp_status_pending_p instead of linux_nat_lp_status_is_event.
111 (cancel_breakpoint): Rename to ...
112 (check_stopped_by_breakpoint): ... this. Record whether the LWP
113 stopped for a software breakpoint or hardware breakpoint.
114 (select_event_lwp): Only give preference to the stepping LWP in
115 all-stop mode. Adjust comments.
116 (stop_and_resume_callback): Remove references to new_pending_p.
117 (linux_nat_filter_event): Likewise. Leave exit events of the
118 leader thread pending here. Handle signal short circuiting here.
119 Only call save_sigtrap after storing the pending waitstatus.
120 (linux_nat_wait_1): Remove 'retry' label. Remove references to
121 new_pending. Don't handle leaving events the caller is not
122 interested in pending here, nor handle signal short-circuiting
123 here. Also give equal priority to all LWPs that have had events
124 in non-stop mode. If reporting a software breakpoint event,
125 unadjust the LWP's PC.
126 * linux-nat.h (enum lwp_stop_reason): New.
127 (struct lwp_info) <stop_pc>: New field.
128 (struct lwp_info) <stopped_by_watchpoint>: Delete field.
129 (struct lwp_info) <stop_reason>: New field.
130 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
131
8af756ef
PA
1322015-01-09 Pedro Alves <palves@redhat.com>
133
134 * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
135 Set the LWP's 'resumed' flag.
136
8a99810d
PA
1372015-01-09 Pedro Alves <palves@redhat.com>
138
139 * linux-nat.c (linux_resume_one_lwp): New function.
140 (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
141 (linux_nat_resume): Use lwp_status_pending_p and
142 linux_resume_one_lwp.
143 (linux_handle_syscall_trap): Use linux_resume_one_lwp.
144 (linux_handle_extended_wait): Use linux_resume_one_lwp.
145 (status_callback, running_callback): Use lwp_status_pending_p.
146 (lwp_status_pending_p): New function.
147 (stop_and_resume_callback): Use lwp_status_pending_p.
148 (linux_nat_filter_event): Use linux_resume_one_lwp.
149 (linux_nat_wait_1): Always use status_callback to look for an LWP
150 with a pending status. Use linux_resume_one_lwp.
151 (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
152 linux_resume_one_lwp.
153
f7ce857f
PA
1542015-01-09 Pedro Alves <palves@redhat.com>
155
156 * breakpoint.c (bp_location_inserted_here_p): New function,
157 factored out from ...
158 (breakpoint_inserted_here_p): ... here. Use
159 ALL_BP_LOCATIONS_AT_ADDR.
160 (software_breakpoint_inserted_here_p): Use
161 bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
162
c1a747c1
PA
1632014-01-09 Pedro Alves <palves@redhat.com>
164
165 Skip enabling event reporting if the kernel supports
166 PTRACE_EVENT_CLONE.
167 * linux-thread-db.c: Include "nat/linux-ptrace.h".
168 (thread_db_use_events): New function.
169 (try_thread_db_load_1): Check thread_db_use_events before enabling
170 event reporting.
171 (update_thread_state): New function.
172 (attach_thread): Use it. Check thread_db_use_events before
173 enabling event reporting.
174 (thread_db_detach): Check thread_db_use_events before disabling
175 event reporting.
176 (find_new_threads_callback): Check thread_db_use_events before
177 enabling event reporting. Update the thread's state if not using
178 libthread_db events.
179
a33e3959
PA
1802015-01-09 Pedro Alves <palves@redhat.com>
181
182 * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
183 about to wait for is > 0.
184 * linux-thread-db.c (find_new_threads_callback): Ignore thread if
185 the kernel thread ID is -1.
186
8784d563
PA
1872015-01-09 Pedro Alves <palves@redhat.com>
188
189 * linux-nat.c (attach_proc_task_lwp_callback): New function.
190 (linux_nat_attach): Use linux_proc_attach_tgid_threads.
191 (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
192 ptrace option flags.
193 * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
194 field.
195 * nat/linux-procfs.c: Include <dirent.h>.
196 (linux_proc_get_int): New parameter "warn". Handle it.
197 (linux_proc_get_tgid): Adjust.
198 (linux_proc_get_tracerpid): Rename to ...
199 (linux_proc_get_tracerpid_nowarn): ... this.
200 (linux_proc_pid_get_state): New function, factored out from
201 (linux_proc_pid_has_state): ... this. Add new parameter "warn"
202 and handle it.
203 (linux_proc_pid_is_gone): New function.
204 (linux_proc_pid_is_stopped): Adjust.
205 (linux_proc_pid_is_zombie_maybe_warn)
206 (linux_proc_pid_is_zombie_nowarn): New functions.
207 (linux_proc_pid_is_zombie): Use
208 linux_proc_pid_is_zombie_maybe_warn.
209 (linux_proc_attach_tgid_threads): New function.
210 * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
211 (linux_proc_get_tracerpid): Rename to ...
212 (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
213 (linux_proc_pid_is_gone): New declaration.
214 (linux_proc_pid_is_zombie): Update comment.
215 (linux_proc_pid_is_zombie_nowarn): New declaration.
216 (linux_proc_attach_lwp_func): New typedef.
217 (linux_proc_attach_tgid_threads): New declaration.
218 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
219 use nowarn functions.
220 (linux_ptrace_attach_fail_reason_string): Move here from
221 gdbserver/linux-low.c and rename.
222 (ptrace_supports_feature): If the current ptrace options are not
223 known yet, check them now, instead of asserting.
224 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
225 Declare.
226
883ed13e
PA
2272015-01-09 Pedro Alves <palves@redhat.com>
228
229 * linux-thread-db.c (thread_db_find_new_threads_silently)
230 (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
231 (find_new_threads_once): Print debug output on gdb_stdlog.
232
1710aab8
CG
2332015-01-09 Chen Gang <gang.chen.5i5j@gmail.com>
234 Pedro Alves <palves@redhat.com>
235
236 * compile/compile.c: Include "gdb_wait.h".
237 (do_rmdir): Check return value, and free 'zap'.
238
b597c318
YQ
2392015-01-08 Pedro Alves <palves@redhat.com>
240 Yao Qi <yao@codesourcery.com>
241
242 * dwarf2loc.c (indirect_pieced_value): Don't call
243 gdb_sign_extend. Call extract_signed_integer instead.
244 * utils.c (gdb_sign_extend): Remove.
245 * utils.h (gdb_sign_extend): Remove declaration.
246
025ac414
PM
2472015-01-07 Pierre Muller <muller@sourceware.org>
248
249 PR symtab/17811
250 * stabsread.c (define_symbol): Set language for C++ special symbols.
251
fa5af12a
PP
2522015-01-07 Patrick Palka <patrick@parcs.ath.cx>
253
254 * inflow.c (initial_gdb_ttystate): Tweak comment.
255
ea42d6f8
JB
2562015-01-07 Joel Brobecker <brobecker@adacore.com>
257
258 * inflow.c (set_initial_gdb_ttystate): Add empty line after
259 comment documenting function.
260
6a06d660
PP
2612015-01-07 Patrick Palka <patrick@parcs.ath.cx>
262
263 * terminal.h (set_initial_gdb_ttystate): Declare.
264 * inflow.c (initial_gdb_ttystate): New static variable.
265 (set_initial_gdb_ttystate): New setter.
266 (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
267 instead of our current terminal state.
268 * top.c (gdb_init): Call set_initial_gdb_ttystate.
269
e810d75b
JB
2702015-01-07 Joel Brobecker <brobecker@adacore.com>
271
272 * guile/scm-type.c (tyscm_array_1): Add comment.
273 * python/py-type.c (typy_array_1): Add comment.
274
fce10a84
JB
2752015-01-06 Joel Brobecker <brobecker@adacore.com>
276
277 * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
278 error if N2 is equal to N1 - 1.
279
8503d6e1
JB
2802015-01-06 Joel Brobecker <brobecker@adacore.com>
281
282 * python/py-type.c (typy_array_1): Do not raise negative-length
283 exception if N2 is equal to N1 - 1.
284
4d29c0a8
DE
2852015-01-03 Doug Evans <xdje42@gmail.com>
286
287 * c-exp.y: Whitespace cleanup.
288 (classify_inner_name): Remove extra ;.
289
eaa6a9a4
MR
2902015-01-02 Maciej W. Rozycki <macro@codesourcery.com>
291
292 * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
293 offset signed.
294
02fe9972
DE
2952015-01-02 Doug Evans <dje@google.com>
296
297 * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
298
e2ada9cb
DE
2992015-01-02 Doug Evans <dje@google.com>
300
301 * symtab.h (struct symbol): Fix typo in comment.
302
32d0add0
JB
3032015-01-01 Joel Brobecker <brobecker@adacore.com>
304
305 Update year range in copyright notice of all files.
306
76f2b779
JB
3072015-01-01 Joel Brobecker <brobecker@adacore.com>
308
309 * top.c (print_gdb_version): Update copyright year to 2015.
310
077309e2 3112015-01-01 Joel Brobecker <brobecker@adacore.com>
6bf6fd09 312
077309e2 313 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
6bf6fd09 314
077309e2 315For older changes see ChangeLog-2014.
c906108c
SS
316\f
317Local Variables:
318mode: change-log
319left-margin: 8
320fill-column: 74
321version-control: never
57da7796 322coding: utf-8
c906108c 323End:
This page took 2.404802 seconds and 4 git commands to generate.