Package: gdb Version: 7.4.1-1.1 Severity: normal gdb doesn't recognize executables generated by tcc.
$ cat main.c
int main(void)
{
return 0;
}
$ tcc -O2 main.c -o main
$ ./main
$ file main
main: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked
(uses shared libs), not stripped
$ gdb main
GNU gdb (GDB) 7.4.1-debian
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
"/home/vlefevre/main": not in executable format: Bad value
(gdb) run
Starting program:
No executable file specified.
Use the "file" or "exec-file" command.
(gdb)
I've attached the generated executable "main".
-- System Information:
Debian Release: wheezy/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1,
'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 3.2.0-2-amd64 (SMP w/8 CPU cores)
Locale: LANG=POSIX, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages gdb depends on:
ii gdbserver 7.4.1-1.1
ii libc6 2.13-33
ii libexpat1 2.1.0-1
ii libncurses5 5.9-9
ii libpython2.7 2.7.3-1
ii libreadline6 6.2-8
ii libtinfo5 5.9-9
ii zlib1g 1:1.2.7.dfsg-11
gdb recommends no packages.
Versions of packages gdb suggests:
ii gdb-doc 7.4.1-1
-- no debconf information
main
Description: Binary data

