"info files" not showing any info
Ruslan Kabatsayev
b7.10110111@gmail.com
Sat Mar 7 10:37:11 GMT 2020
Hello,
I was trying to use the "info files" command on a very simple ELF file
generated by the following bash/fasm command:
fasm /dev/stdin test <<< $'format ELF executable\nint3'
When run via GDB and inspected with "info files" command, I get no
information about the file:
$ gdb -q -ex 'info files' ./test
Reading symbols from ./test...
(No debugging symbols found in ./test)
Symbols from "/tmp/test".
(gdb) quit
For comparison, trying this command on /bin/true gives me not only
sections names, but also file type and entry point:
$ gdb -q -ex 'info files' /bin/true
Reading symbols from /bin/true...
Symbols from "/bin/true".
Local exec file:
`/bin/true', file type elf32-i386.
Entry point: 0x8048e40
0x08048154 - 0x08048167 is .interp
0x08048168 - 0x08048188 is .note.ABI-tag
0x08048188 - 0x080482fc is .hash
0x080482fc - 0x0804865c is .dynsym
<...>
Is it supposed to work as such, or is it a bug worth reporting? If
it's supposed to be so, then what is the rationale for omitting file
type and entry point from the info about such simple files as my test
case?
For reference, here's the content of the test case file generated by
the above given fasm command:
$ xxd -g1 test
0000000: 7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00 .ELF............
0000010: 02 00 03 00 01 00 00 00 54 80 04 08 34 00 00 00 ........T...4...
0000020: 00 00 00 00 00 00 00 00 34 00 20 00 01 00 28 00 ........4. ...(.
0000030: 00 00 00 00 01 00 00 00 54 00 00 00 54 80 04 08 ........T...T...
0000040: 54 80 04 08 01 00 00 00 01 00 00 00 07 00 00 00 T...............
0000050: 00 10 00 00 cc .....
Regards,
Ruslan
More information about the Gdb
mailing list