aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2014-04-26Automatic date update in version.inGDB Administrator1-1/+1
2014-04-25Automatic date update in version.inGDB Administrator1-1/+1
2014-04-24Following up on Tom's suggestion I am checking in a patch to replace the variousNick Clifton5-11/+83
bfd_xxx_set macros with static inline functions, so that we can avoid compile time warnings about comma expressions with unused values. PR build/16873 * bfd-in.h (bfd_set_section_vma): Delete. (bfd_set_section_alignment): Delete. (bfd_set_section_userdata): Delete. (bfd_set_cacheable): Delete. * bfd.c (bfd_set_cacheable): New static inline function. * section.c (bfd_set_section_userdata): Likewise. (bfd_set_section_vma): Likewise. (bfd_set_section_alignment): Likewise. * bfd-in2.h: Regenerate.
2014-04-24Automatic date update in version.inGDB Administrator1-1/+1
2014-04-23Automatic date update in version.inGDB Administrator1-1/+1
2014-04-22Automatic date update in version.inGDB Administrator1-1/+1
2014-04-21Automatic date update in version.inGDB Administrator1-1/+1
2014-04-20Automatic date update in version.inGDB Administrator1-1/+1
2014-04-19PR gdb/14018 -- avoid "PC register not available" errors.Eli Zaretskii2-16/+52
gdb/windows-nat.c (thread_rec): Don't display a warning when SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread fails for any reason, set th->suspended to -1, so that we don't try to resume such a thread. Also, don't return NULL in these cases, to avoid completely ruin the session due to "PC register is not available" error. (do_windows_fetch_inferior_registers): Check errors in GetThreadContext call. (windows_continue): Accept an additional argument KILLED; if not zero, ignore errors in the SetThreadContext call, since the inferior was killed and is shutting down. (windows_resume, get_windows_debug_event) (windows_create_inferior, windows_mourn_inferior) (windows_kill_inferior): All callers of windows_continue changed to adjust to its new calling sequence.
2014-04-19Automatic date update in version.inGDB Administrator1-1/+1
2014-04-18Automatic date update in version.inGDB Administrator1-1/+1
2014-04-17Automatic date update in version.inGDB Administrator1-1/+1
2014-04-16Automatic date update in version.inGDB Administrator1-1/+1
2014-04-15Automatic date update in version.inGDB Administrator1-1/+1
2014-04-14Automatic date update in version.inGDB Administrator1-1/+1
2014-04-13Automatic date update in version.inGDB Administrator1-1/+1
2014-04-12Automatic date update in version.inGDB Administrator1-1/+1
2014-04-11Erroneous backtrace on AVR.Pierre Langlois3-2/+21
PR backtrace/16721 PR backtrace/16832 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment. (avr_gdbarch_init): Add xmega architectures given by bfd_architecture when setting the size of call_length. (avr_scan_prologue): Accept push r1 instruction for small stack allocation. * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
2014-04-11Automatic date update in version.inGDB Administrator1-1/+1
2014-04-10Automatic date update in version.inGDB Administrator1-1/+1
2014-04-09Automatic date update in version.inGDB Administrator1-1/+1
2014-04-08Automatic date update in version.inGDB Administrator1-1/+1
2014-04-07Automatic date update in version.inGDB Administrator1-1/+1
2014-04-06Automatic date update in version.inGDB Administrator1-1/+1
2014-04-05Automatic date update in version.inGDB Administrator1-1/+1
2014-04-04Automatic date update in version.inGDB Administrator1-1/+1
2014-04-03Automatic date update in version.inGDB Administrator1-1/+1
2014-04-02Automatic date update in version.inGDB Administrator1-1/+1
2014-04-01Automatic date update in version.inGDB Administrator1-1/+1
2014-03-31Automatic date update in version.inGDB Administrator1-1/+1
2014-03-30Automatic date update in version.inGDB Administrator1-1/+1
2014-03-29Automatic date update in version.inGDB Administrator1-1/+1
2014-03-28Automatic date update in version.inGDB Administrator1-1/+1
2014-03-27Automatic date update in version.inGDB Administrator1-1/+1
2014-03-26Automatic date update in version.inGDB Administrator1-1/+1
2014-03-25Automatic date update in version.inGDB Administrator1-1/+1
2014-03-24Automatic date update in version.inGDB Administrator1-1/+1
2014-03-23Automatic date update in version.inGDB Administrator1-1/+1
2014-03-22Automatic date update in version.inGDB Administrator1-1/+1
2014-03-21Automatic date update in version.inGDB Administrator1-1/+1
2014-03-20Automatic date update in version.inGDB Administrator1-1/+1
2014-03-19Automatic date update in version.inGDB Administrator1-1/+1
2014-03-18Automatic date update in version.inGDB Administrator1-1/+1
2014-03-17Automatic date update in version.inGDB Administrator1-1/+1
2014-03-16Automatic date update in version.inGDB Administrator1-1/+1
2014-03-15Automatic date update in version.inGDB Administrator1-1/+1
2014-03-14Automatic date update in version.inGDB Administrator1-1/+1
2014-03-13Automatic date update in version.inGDB Administrator1-1/+1
2014-03-12AIX 32-bit core loading, high section addresses.Pedro Alves2-2/+8
I noticed GDB was failing to enable threading support for 32-bit AIX cores. I traced it to failure to read variables from libpthreads.a. The issue is that data for that library is loaded at a high address, and bfd is sign extending the section addresses: (gdb) info files Symbols from "/home/palves/crash". Local core dump file: `/home/palves/core', file type aixcoff-rs6000. 0x2ff22000 - 0x2ff23000 is .stack 0x20000000 - 0x200316e0 is .data 0x20000e90 - 0x200016c0 is .data 0xfffffffff0254000 - 0xfffffffff0297920 is .data 0xfffffffff07b46a8 - 0xfffffffff07b47c8 is .data 0xfffffffff0298000 - 0xfffffffff029bfcc is .data 0xfffffffff06dafe0 - 0xfffffffff07b3838 is .data Local exec file: `/home/palves/crash', file type aixcoff-rs6000. Entry point: 0x20001394 0x10000150 - 0x10000e90 is .text 0x20000e90 - 0x2000149c is .data 0x2000149c - 0x200016c0 is .bss 0xd053b124 - 0xd053e15f is .text in /usr/lib/libpthreads.a(shr_comm.o) 0xf0254000 - 0xf0297920 is .data in /usr/lib/libpthreads.a(shr_comm.o) 0xf0254450 - 0xf0297920 is .bss in /usr/lib/libpthreads.a(shr_comm.o) 0xd053a280 - 0xd053aabe is .text in /usr/lib/libcrypt.a(shr.o) 0xf07b46a8 - 0xf07b47c8 is .data in /usr/lib/libcrypt.a(shr.o) 0xf07b47c8 - 0xf07b47c8 is .bss in /usr/lib/libcrypt.a(shr.o) 0xd04fb180 - 0xd053917e is .text in /usr/lib/libpthreads.a(shr_xpg5.o) 0xf0298000 - 0xf029bfcc is .data in /usr/lib/libpthreads.a(shr_xpg5.o) 0xf029bf64 - 0xf029bfcc is .bss in /usr/lib/libpthreads.a(shr_xpg5.o) 0xd0100900 - 0xd04fa39c is .text in /usr/lib/libc.a(shr.o) 0xf06dafe0 - 0xf07b3838 is .data in /usr/lib/libc.a(shr.o) 0xf0751e94 - 0xf07b3838 is .bss in /usr/lib/libc.a(shr.o) Notice: ... 0xfffffffff0298000 - 0xfffffffff029bfcc is .data ... Those are the bfd section start/end addresses. It't not visible here: ... 0xf0298000 - 0xf029bfcc is .data in /usr/lib/libpthreads.a(shr_xpg5.o) ... ... just because GDB trims that number to 32-bit when printing. GDB then fails to find the memory for libpthreads.a variables in the core, and falls back to reading it directly from the executable (which yields the values as originally initialized in the code). E.g.: (gdb) p &__n_pthreads $2 = (<data variable, no debug info> *) 0xf074fda8 <__n_pthreads> (gdb) p __n_pthreads $1 = -1 That should have returned 2 instead of -1. bfd/ 2014-03-12 Pedro Alves <palves@redhat.com> PR gdb/16696 * rs6000-core.c (rs6000coff_core_p): Cast pointers to bfd_vma through ptr_to_uint instead of through long.
2014-03-12Automatic date update in version.inGDB Administrator1-1/+1