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