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