1 2015-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
3 * nat/linux-personality.c: Replace "#ifndef
4 HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if
5 !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5
8 2015-01-16 Eli Zaretskii <eliz@gnu.org>
10 * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
12 (_initialize_tui_win) <border-kind, border-mode>:
13 <active-border-mode>: Use tui_set_var_cmd as the "set" function.
14 (tui_set_tab_width_command): Fix the commentary.
16 * tui/tui-win.h: Add prototype for tui_rehighlight_all.
18 * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
20 (tui_set_tab_width_command): Delete and recreate the source and
21 the disassembly windows, to show the effect of the changed tab
24 * tui/tui-data.h (LINE_PREFIX): Make shorter
25 (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for
26 "Thread NNNNN.XXXX" thread ID notation on Windows.
28 2015-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
30 Fix gcc-5 compilation.
31 * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
33 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
35 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
36 (linux-personality.o): New rule.
37 * common/common-defs.h: Include <stdint.h>.
38 * config/aarch64/linux.mh (NATDEPFILES): Include
40 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
41 * config/arm/linux.mh (NATDEPFILES): Likewise.
42 * config/i386/linux64.mh (NATDEPFILES): Likewise.
43 * config/i386/linux.mh (NATDEPFILES): Likewise.
44 * config/ia64/linux.mh (NATDEPFILES): Likewise.
45 * config/m32r/linux.mh (NATDEPFILES): Likewise.
46 * config/m68k/linux.mh (NATDEPFILES): Likewise.
47 * config/mips/linux.mh (NATDEPFILES): Likewise.
48 * config/pa/linux.mh (NATDEPFILES): Likewise.
49 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
50 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
51 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
52 * config/s390/linux.mh (NATDEPFILES): Likewise.
53 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
54 * config/sparc/linux.mh (NATDEPFILES): Likewise.
55 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
56 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
57 * defs.h: Remove #include <stdint.h> (moved to
58 common/common-defs.h).
59 * linux-nat.c: Include nat/linux-personality.h. Remove #include
60 <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
61 nat/linux-personality.c).
62 (linux_nat_create_inferior): Remove code to disable address space
63 randomization (moved to nat/linux-personality.c). Create cleanup
64 to disable address space randomization.
65 * nat/linux-personality.c: New file.
66 * nat/linux-personality.h: Likewise.
68 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
70 * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
71 common/posix-strerror.c.
72 (posix-strerror.o): New rule.
73 (mingw-strerror.o): Likewise.
74 * common/common-utils.h (safe_strerror): Move prototype to here,
76 * common/common.host: New file.
77 * common/mingw-strerror.c: Likewise.
78 * common/posix-strerror.c: Likewise.
79 * configure: Regenerated.
80 * configure.ac: Source common/common.host. Add variable
81 common_host_obs to gdb_host_obs.
82 * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
83 gdb/common/posix-strerror.c when warning about the use of
85 * mingw-hdep.c (safe_strerror): Remove definition; move it to
86 common/mingw-strerror.c.
87 * posix-hdep.c (safe_strerror): Remove definition; move it to
89 * utils.h (safe_strerror): Remove prototype; move to
90 common/common-utils.h.
92 2015-01-15 Joel Brobecker <brobecker@adacore.com>
96 2015-01-15 Joel Brobecker <brobecker@adacore.com>
98 * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
99 ___XA type if the array has already been fixed.
101 2015-01-14 Yao Qi <yao@codesourcery.com>
103 * Makefile.in (ppc-linux.o): New rule.
104 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
105 * configure.ac: AC_CHECK_FUNCS(getauxval).
106 * config.in: Re-generated.
107 * configure: Re-generated.
108 * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
110 * nat/ppc-linux.c: New file.
111 * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
112 Call ppc64_64bit_inferior_p.
114 2015-01-14 Yao Qi <yao@codesourcery.com>
116 * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
118 (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
119 (PPC_FEATURE_HAS_DFP): Likewise.
120 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
121 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
122 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
123 Include "nat/ppc-linux.h".
124 * nat/ppc-linux.h: New file.
125 * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
127 2015-01-14 Pedro Alves <palves@redhat.com>
130 * breakpoint.c: Include "interps.h".
131 (bpstat_do_actions_1): Also check whether the interpreter is
134 2015-01-14 Pedro Alves <palves@redhat.com>
137 * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
138 reinstall if the interpreter is sync.
140 2015-01-13 Doug Evans <dje@google.com>
142 * objfiles.c (objfile_filename): New function.
143 * objfiles.h (objfile_filename): Declare it.
144 (objfile_name): Add function comment.
145 * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
146 bfd file name (which may be realpath'd), and the original name.
148 2015-01-13 Joel Brobecker <brobecker@adacore.com>
150 * NEWS: Create a new section for the next release branch.
151 Rename the section of the current branch, now that it has
154 2015-01-13 Joel Brobecker <brobecker@adacore.com>
156 GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
157 * version.in: Bump version to 7.9.50.DATE-cvs.
159 2015-01-13 Joel Brobecker <brobecker@adacore.com>
161 * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
162 Remove trailing new-line in argument of call to warning.
164 2015-01-13 Joel Brobecker <brobecker@adacore.com>
166 * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
167 new-line in argument of call to "warning".
169 2015-01-13 Joel Brobecker <brobecker@adacore.com>
171 * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
172 in static block, then try searching for primitive types.
174 2015-01-12 Patrick Palka <patrick@parcs.ath.cx>
176 * top.h (gdb_add_history): Declare.
177 * top.c (command_count): New variable.
178 (gdb_add_history): New function.
179 (gdb_safe_append_history): New static function.
180 (quit_force): Call it.
181 (command_line_input): Use gdb_add_history instead of
183 * event-top.c (command_line_handler): Likewise.
185 2015-01-12 James Clarke <jrtc27@jrtc27.com> (tiny patch)
188 * darwin-nat.c: Replace <machine/setjmp.h> #include by
191 2015-01-11 Doug Evans <xdje42@gmail.com>
193 * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
195 2015-01-11 Doug Evans <xdje42@gmail.com>
198 * NEWS: The "maint demangle" command is renamed as "demangle".
199 * demangle.c: #include cli/cli-utils.h, language.h.
200 (demangle_command): New function.
201 (_initialize_demangle): Add new command "demangle".
202 * maint.c (maintenance_demangle): Stub out.
203 (_initialize_maint_cmds): Update help text for "maint demangle",
204 and mark as deprecated.
206 2015-01-11 Mark Kettenis <kettenis@gnu.org>
208 * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
209 inferior_thread is a function.
211 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
213 * Makefile.in (.y.c): Don't munge yacc's #line
216 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
218 * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
220 * tui/tui-hooks.c (tui_query_hook): Remove.
221 (tui_install_hooks): Don't set deprecated_query_hook.
222 * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
223 height calculation. Always update the command window's cur_line.
225 2015-01-09 Pedro Alves <palves@redhat.com>
227 * breakpoint.c (hardware_breakpoint_inserted_here_p): New
229 * breakpoint.h (hardware_breakpoint_inserted_here_p): New
231 * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
232 (linux_resume_one_lwp): Store the thread's PC. Adjust to clear
234 (check_stopped_by_watchpoint): New function.
235 (save_sigtrap): Reimplement.
236 (linux_nat_stopped_by_watchpoint): Adjust.
237 (linux_nat_lp_status_is_event): Delete.
238 (stop_wait_callback): Only call save_sigtrap after storing the
240 (status_callback): If the thread had been stopped for a breakpoint
241 that has since been removed, discard the event and resume the LWP.
242 (count_events_callback, select_event_lwp_callback): Use
243 lwp_status_pending_p instead of linux_nat_lp_status_is_event.
244 (cancel_breakpoint): Rename to ...
245 (check_stopped_by_breakpoint): ... this. Record whether the LWP
246 stopped for a software breakpoint or hardware breakpoint.
247 (select_event_lwp): Only give preference to the stepping LWP in
248 all-stop mode. Adjust comments.
249 (stop_and_resume_callback): Remove references to new_pending_p.
250 (linux_nat_filter_event): Likewise. Leave exit events of the
251 leader thread pending here. Handle signal short circuiting here.
252 Only call save_sigtrap after storing the pending waitstatus.
253 (linux_nat_wait_1): Remove 'retry' label. Remove references to
254 new_pending. Don't handle leaving events the caller is not
255 interested in pending here, nor handle signal short-circuiting
256 here. Also give equal priority to all LWPs that have had events
257 in non-stop mode. If reporting a software breakpoint event,
258 unadjust the LWP's PC.
259 * linux-nat.h (enum lwp_stop_reason): New.
260 (struct lwp_info) <stop_pc>: New field.
261 (struct lwp_info) <stopped_by_watchpoint>: Delete field.
262 (struct lwp_info) <stop_reason>: New field.
263 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
265 2015-01-09 Pedro Alves <palves@redhat.com>
267 * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
268 Set the LWP's 'resumed' flag.
270 2015-01-09 Pedro Alves <palves@redhat.com>
272 * linux-nat.c (linux_resume_one_lwp): New function.
273 (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
274 (linux_nat_resume): Use lwp_status_pending_p and
275 linux_resume_one_lwp.
276 (linux_handle_syscall_trap): Use linux_resume_one_lwp.
277 (linux_handle_extended_wait): Use linux_resume_one_lwp.
278 (status_callback, running_callback): Use lwp_status_pending_p.
279 (lwp_status_pending_p): New function.
280 (stop_and_resume_callback): Use lwp_status_pending_p.
281 (linux_nat_filter_event): Use linux_resume_one_lwp.
282 (linux_nat_wait_1): Always use status_callback to look for an LWP
283 with a pending status. Use linux_resume_one_lwp.
284 (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
285 linux_resume_one_lwp.
287 2015-01-09 Pedro Alves <palves@redhat.com>
289 * breakpoint.c (bp_location_inserted_here_p): New function,
290 factored out from ...
291 (breakpoint_inserted_here_p): ... here. Use
292 ALL_BP_LOCATIONS_AT_ADDR.
293 (software_breakpoint_inserted_here_p): Use
294 bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
296 2014-01-09 Pedro Alves <palves@redhat.com>
298 Skip enabling event reporting if the kernel supports
300 * linux-thread-db.c: Include "nat/linux-ptrace.h".
301 (thread_db_use_events): New function.
302 (try_thread_db_load_1): Check thread_db_use_events before enabling
304 (update_thread_state): New function.
305 (attach_thread): Use it. Check thread_db_use_events before
306 enabling event reporting.
307 (thread_db_detach): Check thread_db_use_events before disabling
309 (find_new_threads_callback): Check thread_db_use_events before
310 enabling event reporting. Update the thread's state if not using
313 2015-01-09 Pedro Alves <palves@redhat.com>
315 * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
316 about to wait for is > 0.
317 * linux-thread-db.c (find_new_threads_callback): Ignore thread if
318 the kernel thread ID is -1.
320 2015-01-09 Pedro Alves <palves@redhat.com>
322 * linux-nat.c (attach_proc_task_lwp_callback): New function.
323 (linux_nat_attach): Use linux_proc_attach_tgid_threads.
324 (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
326 * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
328 * nat/linux-procfs.c: Include <dirent.h>.
329 (linux_proc_get_int): New parameter "warn". Handle it.
330 (linux_proc_get_tgid): Adjust.
331 (linux_proc_get_tracerpid): Rename to ...
332 (linux_proc_get_tracerpid_nowarn): ... this.
333 (linux_proc_pid_get_state): New function, factored out from
334 (linux_proc_pid_has_state): ... this. Add new parameter "warn"
336 (linux_proc_pid_is_gone): New function.
337 (linux_proc_pid_is_stopped): Adjust.
338 (linux_proc_pid_is_zombie_maybe_warn)
339 (linux_proc_pid_is_zombie_nowarn): New functions.
340 (linux_proc_pid_is_zombie): Use
341 linux_proc_pid_is_zombie_maybe_warn.
342 (linux_proc_attach_tgid_threads): New function.
343 * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
344 (linux_proc_get_tracerpid): Rename to ...
345 (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
346 (linux_proc_pid_is_gone): New declaration.
347 (linux_proc_pid_is_zombie): Update comment.
348 (linux_proc_pid_is_zombie_nowarn): New declaration.
349 (linux_proc_attach_lwp_func): New typedef.
350 (linux_proc_attach_tgid_threads): New declaration.
351 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
352 use nowarn functions.
353 (linux_ptrace_attach_fail_reason_string): Move here from
354 gdbserver/linux-low.c and rename.
355 (ptrace_supports_feature): If the current ptrace options are not
356 known yet, check them now, instead of asserting.
357 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
360 2015-01-09 Pedro Alves <palves@redhat.com>
362 * linux-thread-db.c (thread_db_find_new_threads_silently)
363 (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
364 (find_new_threads_once): Print debug output on gdb_stdlog.
366 2015-01-09 Chen Gang <gang.chen.5i5j@gmail.com>
367 Pedro Alves <palves@redhat.com>
369 * compile/compile.c: Include "gdb_wait.h".
370 (do_rmdir): Check return value, and free 'zap'.
372 2015-01-08 Pedro Alves <palves@redhat.com>
373 Yao Qi <yao@codesourcery.com>
375 * dwarf2loc.c (indirect_pieced_value): Don't call
376 gdb_sign_extend. Call extract_signed_integer instead.
377 * utils.c (gdb_sign_extend): Remove.
378 * utils.h (gdb_sign_extend): Remove declaration.
380 2015-01-07 Pierre Muller <muller@sourceware.org>
383 * stabsread.c (define_symbol): Set language for C++ special symbols.
385 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
387 * inflow.c (initial_gdb_ttystate): Tweak comment.
389 2015-01-07 Joel Brobecker <brobecker@adacore.com>
391 * inflow.c (set_initial_gdb_ttystate): Add empty line after
392 comment documenting function.
394 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
396 * terminal.h (set_initial_gdb_ttystate): Declare.
397 * inflow.c (initial_gdb_ttystate): New static variable.
398 (set_initial_gdb_ttystate): New setter.
399 (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
400 instead of our current terminal state.
401 * top.c (gdb_init): Call set_initial_gdb_ttystate.
403 2015-01-07 Joel Brobecker <brobecker@adacore.com>
405 * guile/scm-type.c (tyscm_array_1): Add comment.
406 * python/py-type.c (typy_array_1): Add comment.
408 2015-01-06 Joel Brobecker <brobecker@adacore.com>
410 * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
411 error if N2 is equal to N1 - 1.
413 2015-01-06 Joel Brobecker <brobecker@adacore.com>
415 * python/py-type.c (typy_array_1): Do not raise negative-length
416 exception if N2 is equal to N1 - 1.
418 2015-01-03 Doug Evans <xdje42@gmail.com>
420 * c-exp.y: Whitespace cleanup.
421 (classify_inner_name): Remove extra ;.
423 2015-01-02 Maciej W. Rozycki <macro@codesourcery.com>
425 * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
428 2015-01-02 Doug Evans <dje@google.com>
430 * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
432 2015-01-02 Doug Evans <dje@google.com>
434 * symtab.h (struct symbol): Fix typo in comment.
436 2015-01-01 Joel Brobecker <brobecker@adacore.com>
438 Update year range in copyright notice of all files.
440 2015-01-01 Joel Brobecker <brobecker@adacore.com>
442 * top.c (print_gdb_version): Update copyright year to 2015.
444 2015-01-01 Joel Brobecker <brobecker@adacore.com>
446 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
448 For older changes see ChangeLog-2014.
454 version-control: never