This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug gdb/18208] Fails in gdb.base/coredump-filter.exp in remote testing


https://sourceware.org/bugzilla/show_bug.cgi?id=18208

Yao Qi <qiyao at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|                            |aarch64-linux-gnu

--- Comment #1 from Yao Qi <qiyao at gcc dot gnu.org> ---
Both native testing and remote testing are running on the same aarch64 board,
but the generated corefile is different,

On native, the file is large, and has more sections,
$ ls ./testsuite/gdb.base/non-shared-anon.gcore -lh
-rw-rw-r-- 1 yaoqi01 yaoqi01 1.6M Apr  7 11:51
./testsuite/gdb.base/non-shared-anon.gcore

(gdb) maintenance info sections
....
Core file:
   
`/home/yaoqi01/SourceCode/gnu/build-gdb/gdb/./testsuite/gdb.base/non-shared-anon.gcore',
file type elf64-littleaarch64.
 [0]     0x00000000->0x00000928 at 0x000003c0: note0 READONLY HAS_CONTENTS
 [1]     0x00000000->0x00000110 at 0x000004e0: .reg/4741 HAS_CONTENTS
 [2]     0x00000000->0x00000110 at 0x000004e0: .reg HAS_CONTENTS
 [3]     0x00000000->0x00000210 at 0x0000060c: .reg2/4741 HAS_CONTENTS
 [4]     0x00000000->0x00000210 at 0x0000060c: .reg2 HAS_CONTENTS
 [5]     0x00000000->0x00000080 at 0x00000830: .note.linuxcore.siginfo/4741
HAS_CONTENTS
---Type <return> to continue, or q <return> to quit---
 [6]     0x00000000->0x00000080 at 0x00000830: .note.linuxcore.siginfo
HAS_CONTENTS
 [7]     0x00000000->0x00000130 at 0x000008c4: .auxv HAS_CONTENTS
 [8]     0x00000000->0x000002e0 at 0x00000a08: .note.linuxcore.file/4741
HAS_CONTENTS
 [9]     0x00000000->0x000002e0 at 0x00000a08: .note.linuxcore.file
HAS_CONTENTS
 [10]     0x00400000->0x00401000 at 0x00000ce8: load1 ALLOC LOAD READONLY CODE
HAS_CONTENTS
 [11]     0x00410000->0x00411000 at 0x00001ce8: load2 ALLOC LOAD READONLY CODE
HAS_CONTENTS
 [12]     0x00411000->0x00412000 at 0x00002ce8: load3 ALLOC LOAD CODE
HAS_CONTENTS
 [13]     0x2000000000->0x200001b000 at 0x00003ce8: load4 ALLOC LOAD READONLY
CODE HAS_CONTENTS
 [14]     0x200001b000->0x200001d000 at 0x0001ece8: load5 ALLOC LOAD READONLY
CODE HAS_CONTENTS
 [15]     0x200001d000->0x2000020000 at 0x00020ce8: load6 ALLOC LOAD CODE
HAS_CONTENTS
 [16]     0x2000028000->0x200002a000 at 0x00023ce8: load7 ALLOC LOAD CODE
HAS_CONTENTS
 [17]     0x200002b000->0x200002c000 at 0x00025ce8: load8 ALLOC LOAD READONLY
CODE HAS_CONTENTS
 [18]     0x200002c000->0x200002e000 at 0x00026ce8: load9 ALLOC LOAD CODE
HAS_CONTENTS
 [19]     0x200002e000->0x200015f000 at 0x00028ce8: load10 ALLOC LOAD READONLY
CODE HAS_CONTENTS
 [20]     0x200015f000->0x200016e000 at 0x00159ce8: load11 ALLOC LOAD READONLY
HAS_CONTENTS
 [21]     0x200016e000->0x2000172000 at 0x00168ce8: load12 ALLOC LOAD READONLY
CODE HAS_CONTENTS
 [22]     0x2000172000->0x2000174000 at 0x0016cce8: load13 ALLOC LOAD CODE
HAS_CONTENTS
 [23]     0x2000174000->0x2000178000 at 0x0016ece8: load14 ALLOC LOAD CODE
HAS_CONTENTS
 [24]     0x7ffffdf000->0x8000000000 at 0x00172ce8: load15 ALLOC LOAD CODE
HAS_CONTENTS

However, on remote testing, the corefile is small and only has one "load*"
section.

$ ls -lh ./testsuite/gdb.base/non-shared-anon.gcore
-rw-rw-r-- 1 yao yao 10K Apr  7 12:37
./testsuite/gdb.base/non-shared-anon.gcore
(gdb) maintenance info sections
...
Core file:
   
`/scratch/yao/gdb/build-git/aarch64-linux-gnu/gdb/./testsuite/gdb.base/non-shared-anon.gcore',
file type elf64-littleaarch64.
 [0]     0x00000000->0x00000634 at 0x000000b0: note0 READONLY HAS_CONTENTS
 [1]     0x00000000->0x00000110 at 0x000001d0: .reg/4643 HAS_CONTENTS
 [2]     0x00000000->0x00000110 at 0x000001d0: .reg HAS_CONTENTS
 [3]     0x00000000->0x00000210 at 0x000002fc: .reg2/4643 HAS_CONTENTS
 [4]     0x00000000->0x00000210 at 0x000002fc: .reg2 HAS_CONTENTS
 [5]     0x00000000->0x00000080 at 0x00000520: .note.linuxcore.siginfo/4643
HAS_CONTENTS
 [6]     0x00000000->0x00000080 at 0x00000520: .note.linuxcore.siginfo
HAS_CONTENTS
 [7]     0x00000000->0x00000130 at 0x000005b4: .auxv HAS_CONTENTS
 [8]     0x7fb7ffc000->0x7fb7ffe000 at 0x000006e4: load1 ALLOC LOAD READONLY
CODE HAS_CONTENTS

-- 
You are receiving this mail because:
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]