1 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
3 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
4 (linux-personality.o): New rule.
5 * common/common-defs.h: Include <stdint.h>.
6 * config/aarch64/linux.mh (NATDEPFILES): Include
8 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
9 * config/arm/linux.mh (NATDEPFILES): Likewise.
10 * config/i386/linux64.mh (NATDEPFILES): Likewise.
11 * config/i386/linux.mh (NATDEPFILES): Likewise.
12 * config/ia64/linux.mh (NATDEPFILES): Likewise.
13 * config/m32r/linux.mh (NATDEPFILES): Likewise.
14 * config/m68k/linux.mh (NATDEPFILES): Likewise.
15 * config/mips/linux.mh (NATDEPFILES): Likewise.
16 * config/pa/linux.mh (NATDEPFILES): Likewise.
17 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
18 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
19 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
20 * config/s390/linux.mh (NATDEPFILES): Likewise.
21 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
22 * config/sparc/linux.mh (NATDEPFILES): Likewise.
23 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
24 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
25 * defs.h: Remove #include <stdint.h> (moved to
26 common/common-defs.h).
27 * linux-nat.c: Include nat/linux-personality.h. Remove #include
28 <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
29 nat/linux-personality.c).
30 (linux_nat_create_inferior): Remove code to disable address space
31 randomization (moved to nat/linux-personality.c). Create cleanup
32 to disable address space randomization.
33 * nat/linux-personality.c: New file.
34 * nat/linux-personality.h: Likewise.
36 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
38 * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
39 common/posix-strerror.c.
40 (posix-strerror.o): New rule.
41 (mingw-strerror.o): Likewise.
42 * common/common-utils.h (safe_strerror): Move prototype to here,
44 * common/common.host: New file.
45 * common/mingw-strerror.c: Likewise.
46 * common/posix-strerror.c: Likewise.
47 * configure: Regenerated.
48 * configure.ac: Source common/common.host. Add variable
49 common_host_obs to gdb_host_obs.
50 * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
51 gdb/common/posix-strerror.c when warning about the use of
53 * mingw-hdep.c (safe_strerror): Remove definition; move it to
54 common/mingw-strerror.c.
55 * posix-hdep.c (safe_strerror): Remove definition; move it to
57 * utils.h (safe_strerror): Remove prototype; move to
58 common/common-utils.h.
60 2015-01-15 Joel Brobecker <brobecker@adacore.com>
64 2015-01-15 Joel Brobecker <brobecker@adacore.com>
66 * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
67 ___XA type if the array has already been fixed.
69 2015-01-14 Yao Qi <yao@codesourcery.com>
71 * Makefile.in (ppc-linux.o): New rule.
72 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
73 * configure.ac: AC_CHECK_FUNCS(getauxval).
74 * config.in: Re-generated.
75 * configure: Re-generated.
76 * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
78 * nat/ppc-linux.c: New file.
79 * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
80 Call ppc64_64bit_inferior_p.
82 2015-01-14 Yao Qi <yao@codesourcery.com>
84 * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
86 (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
87 (PPC_FEATURE_HAS_DFP): Likewise.
88 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
89 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
90 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
91 Include "nat/ppc-linux.h".
92 * nat/ppc-linux.h: New file.
93 * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
95 2015-01-14 Pedro Alves <palves@redhat.com>
98 * breakpoint.c: Include "interps.h".
99 (bpstat_do_actions_1): Also check whether the interpreter is
102 2015-01-14 Pedro Alves <palves@redhat.com>
105 * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
106 reinstall if the interpreter is sync.
108 2015-01-13 Doug Evans <dje@google.com>
110 * objfiles.c (objfile_filename): New function.
111 * objfiles.h (objfile_filename): Declare it.
112 (objfile_name): Add function comment.
113 * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
114 bfd file name (which may be realpath'd), and the original name.
116 2015-01-13 Joel Brobecker <brobecker@adacore.com>
118 * NEWS: Create a new section for the next release branch.
119 Rename the section of the current branch, now that it has
122 2015-01-13 Joel Brobecker <brobecker@adacore.com>
124 GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
125 * version.in: Bump version to 7.9.50.DATE-cvs.
127 2015-01-13 Joel Brobecker <brobecker@adacore.com>
129 * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
130 Remove trailing new-line in argument of call to warning.
132 2015-01-13 Joel Brobecker <brobecker@adacore.com>
134 * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
135 new-line in argument of call to "warning".
137 2015-01-13 Joel Brobecker <brobecker@adacore.com>
139 * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
140 in static block, then try searching for primitive types.
142 2015-01-12 Patrick Palka <patrick@parcs.ath.cx>
144 * top.h (gdb_add_history): Declare.
145 * top.c (command_count): New variable.
146 (gdb_add_history): New function.
147 (gdb_safe_append_history): New static function.
148 (quit_force): Call it.
149 (command_line_input): Use gdb_add_history instead of
151 * event-top.c (command_line_handler): Likewise.
153 2015-01-12 James Clarke <jrtc27@jrtc27.com> (tiny patch)
156 * darwin-nat.c: Replace <machine/setjmp.h> #include by
159 2015-01-11 Doug Evans <xdje42@gmail.com>
161 * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
163 2015-01-11 Doug Evans <xdje42@gmail.com>
166 * NEWS: The "maint demangle" command is renamed as "demangle".
167 * demangle.c: #include cli/cli-utils.h, language.h.
168 (demangle_command): New function.
169 (_initialize_demangle): Add new command "demangle".
170 * maint.c (maintenance_demangle): Stub out.
171 (_initialize_maint_cmds): Update help text for "maint demangle",
172 and mark as deprecated.
174 2015-01-11 Mark Kettenis <kettenis@gnu.org>
176 * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
177 inferior_thread is a function.
179 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
181 * Makefile.in (.y.c): Don't munge yacc's #line
184 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
186 * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
188 * tui/tui-hooks.c (tui_query_hook): Remove.
189 (tui_install_hooks): Don't set deprecated_query_hook.
190 * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
191 height calculation. Always update the command window's cur_line.
193 2015-01-09 Pedro Alves <palves@redhat.com>
195 * breakpoint.c (hardware_breakpoint_inserted_here_p): New
197 * breakpoint.h (hardware_breakpoint_inserted_here_p): New
199 * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
200 (linux_resume_one_lwp): Store the thread's PC. Adjust to clear
202 (check_stopped_by_watchpoint): New function.
203 (save_sigtrap): Reimplement.
204 (linux_nat_stopped_by_watchpoint): Adjust.
205 (linux_nat_lp_status_is_event): Delete.
206 (stop_wait_callback): Only call save_sigtrap after storing the
208 (status_callback): If the thread had been stopped for a breakpoint
209 that has since been removed, discard the event and resume the LWP.
210 (count_events_callback, select_event_lwp_callback): Use
211 lwp_status_pending_p instead of linux_nat_lp_status_is_event.
212 (cancel_breakpoint): Rename to ...
213 (check_stopped_by_breakpoint): ... this. Record whether the LWP
214 stopped for a software breakpoint or hardware breakpoint.
215 (select_event_lwp): Only give preference to the stepping LWP in
216 all-stop mode. Adjust comments.
217 (stop_and_resume_callback): Remove references to new_pending_p.
218 (linux_nat_filter_event): Likewise. Leave exit events of the
219 leader thread pending here. Handle signal short circuiting here.
220 Only call save_sigtrap after storing the pending waitstatus.
221 (linux_nat_wait_1): Remove 'retry' label. Remove references to
222 new_pending. Don't handle leaving events the caller is not
223 interested in pending here, nor handle signal short-circuiting
224 here. Also give equal priority to all LWPs that have had events
225 in non-stop mode. If reporting a software breakpoint event,
226 unadjust the LWP's PC.
227 * linux-nat.h (enum lwp_stop_reason): New.
228 (struct lwp_info) <stop_pc>: New field.
229 (struct lwp_info) <stopped_by_watchpoint>: Delete field.
230 (struct lwp_info) <stop_reason>: New field.
231 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
233 2015-01-09 Pedro Alves <palves@redhat.com>
235 * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
236 Set the LWP's 'resumed' flag.
238 2015-01-09 Pedro Alves <palves@redhat.com>
240 * linux-nat.c (linux_resume_one_lwp): New function.
241 (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
242 (linux_nat_resume): Use lwp_status_pending_p and
243 linux_resume_one_lwp.
244 (linux_handle_syscall_trap): Use linux_resume_one_lwp.
245 (linux_handle_extended_wait): Use linux_resume_one_lwp.
246 (status_callback, running_callback): Use lwp_status_pending_p.
247 (lwp_status_pending_p): New function.
248 (stop_and_resume_callback): Use lwp_status_pending_p.
249 (linux_nat_filter_event): Use linux_resume_one_lwp.
250 (linux_nat_wait_1): Always use status_callback to look for an LWP
251 with a pending status. Use linux_resume_one_lwp.
252 (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
253 linux_resume_one_lwp.
255 2015-01-09 Pedro Alves <palves@redhat.com>
257 * breakpoint.c (bp_location_inserted_here_p): New function,
258 factored out from ...
259 (breakpoint_inserted_here_p): ... here. Use
260 ALL_BP_LOCATIONS_AT_ADDR.
261 (software_breakpoint_inserted_here_p): Use
262 bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
264 2014-01-09 Pedro Alves <palves@redhat.com>
266 Skip enabling event reporting if the kernel supports
268 * linux-thread-db.c: Include "nat/linux-ptrace.h".
269 (thread_db_use_events): New function.
270 (try_thread_db_load_1): Check thread_db_use_events before enabling
272 (update_thread_state): New function.
273 (attach_thread): Use it. Check thread_db_use_events before
274 enabling event reporting.
275 (thread_db_detach): Check thread_db_use_events before disabling
277 (find_new_threads_callback): Check thread_db_use_events before
278 enabling event reporting. Update the thread's state if not using
281 2015-01-09 Pedro Alves <palves@redhat.com>
283 * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
284 about to wait for is > 0.
285 * linux-thread-db.c (find_new_threads_callback): Ignore thread if
286 the kernel thread ID is -1.
288 2015-01-09 Pedro Alves <palves@redhat.com>
290 * linux-nat.c (attach_proc_task_lwp_callback): New function.
291 (linux_nat_attach): Use linux_proc_attach_tgid_threads.
292 (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
294 * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
296 * nat/linux-procfs.c: Include <dirent.h>.
297 (linux_proc_get_int): New parameter "warn". Handle it.
298 (linux_proc_get_tgid): Adjust.
299 (linux_proc_get_tracerpid): Rename to ...
300 (linux_proc_get_tracerpid_nowarn): ... this.
301 (linux_proc_pid_get_state): New function, factored out from
302 (linux_proc_pid_has_state): ... this. Add new parameter "warn"
304 (linux_proc_pid_is_gone): New function.
305 (linux_proc_pid_is_stopped): Adjust.
306 (linux_proc_pid_is_zombie_maybe_warn)
307 (linux_proc_pid_is_zombie_nowarn): New functions.
308 (linux_proc_pid_is_zombie): Use
309 linux_proc_pid_is_zombie_maybe_warn.
310 (linux_proc_attach_tgid_threads): New function.
311 * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
312 (linux_proc_get_tracerpid): Rename to ...
313 (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
314 (linux_proc_pid_is_gone): New declaration.
315 (linux_proc_pid_is_zombie): Update comment.
316 (linux_proc_pid_is_zombie_nowarn): New declaration.
317 (linux_proc_attach_lwp_func): New typedef.
318 (linux_proc_attach_tgid_threads): New declaration.
319 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
320 use nowarn functions.
321 (linux_ptrace_attach_fail_reason_string): Move here from
322 gdbserver/linux-low.c and rename.
323 (ptrace_supports_feature): If the current ptrace options are not
324 known yet, check them now, instead of asserting.
325 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
328 2015-01-09 Pedro Alves <palves@redhat.com>
330 * linux-thread-db.c (thread_db_find_new_threads_silently)
331 (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
332 (find_new_threads_once): Print debug output on gdb_stdlog.
334 2015-01-09 Chen Gang <gang.chen.5i5j@gmail.com>
335 Pedro Alves <palves@redhat.com>
337 * compile/compile.c: Include "gdb_wait.h".
338 (do_rmdir): Check return value, and free 'zap'.
340 2015-01-08 Pedro Alves <palves@redhat.com>
341 Yao Qi <yao@codesourcery.com>
343 * dwarf2loc.c (indirect_pieced_value): Don't call
344 gdb_sign_extend. Call extract_signed_integer instead.
345 * utils.c (gdb_sign_extend): Remove.
346 * utils.h (gdb_sign_extend): Remove declaration.
348 2015-01-07 Pierre Muller <muller@sourceware.org>
351 * stabsread.c (define_symbol): Set language for C++ special symbols.
353 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
355 * inflow.c (initial_gdb_ttystate): Tweak comment.
357 2015-01-07 Joel Brobecker <brobecker@adacore.com>
359 * inflow.c (set_initial_gdb_ttystate): Add empty line after
360 comment documenting function.
362 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
364 * terminal.h (set_initial_gdb_ttystate): Declare.
365 * inflow.c (initial_gdb_ttystate): New static variable.
366 (set_initial_gdb_ttystate): New setter.
367 (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
368 instead of our current terminal state.
369 * top.c (gdb_init): Call set_initial_gdb_ttystate.
371 2015-01-07 Joel Brobecker <brobecker@adacore.com>
373 * guile/scm-type.c (tyscm_array_1): Add comment.
374 * python/py-type.c (typy_array_1): Add comment.
376 2015-01-06 Joel Brobecker <brobecker@adacore.com>
378 * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
379 error if N2 is equal to N1 - 1.
381 2015-01-06 Joel Brobecker <brobecker@adacore.com>
383 * python/py-type.c (typy_array_1): Do not raise negative-length
384 exception if N2 is equal to N1 - 1.
386 2015-01-03 Doug Evans <xdje42@gmail.com>
388 * c-exp.y: Whitespace cleanup.
389 (classify_inner_name): Remove extra ;.
391 2015-01-02 Maciej W. Rozycki <macro@codesourcery.com>
393 * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
396 2015-01-02 Doug Evans <dje@google.com>
398 * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
400 2015-01-02 Doug Evans <dje@google.com>
402 * symtab.h (struct symbol): Fix typo in comment.
404 2015-01-01 Joel Brobecker <brobecker@adacore.com>
406 Update year range in copyright notice of all files.
408 2015-01-01 Joel Brobecker <brobecker@adacore.com>
410 * top.c (print_gdb_version): Update copyright year to 2015.
412 2015-01-01 Joel Brobecker <brobecker@adacore.com>
414 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
416 For older changes see ChangeLog-2014.
422 version-control: never