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