Your message dated Tue, 05 Feb 2013 10:15:09 -0500
with message-id <[email protected]>
and subject line Re: Bug#679081: gdb doesn't recognize executables generated by 
tcc
has caused the Debian Bug report #679081,
regarding gdb doesn't recognize executables generated by tcc
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
679081: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=679081
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
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

Attachment: main
Description: Binary data


--- End Message ---
--- Begin Message ---
Package: gdb
Version: 7.4.1-3

It seems to work reasonably well now:

naesten@hydrogen:~/hacking/bugs% dpkg -l gdb tcc
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                Version        Architecture   Description
+++-===================-==============-==============-===========================================
ii  gdb                 7.4.1-3        i386           The GNU Debugger
ii  tcc                 0.9.26~git2012 i386           small ANSI C compiler
naesten@hydrogen:~/hacking/bugs% tcc -g a.c
naesten@hydrogen:~/hacking/bugs% gdb a.out
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 "i486-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
BFD: /home/naesten/hacking/bugs/a.out: no group info for section 
.text.__i686.get_pc_thunk.bx
BFD: /home/naesten/hacking/bugs/a.out: no group info for section 
.text.__i686.get_pc_thunk.bx
Reading symbols from /home/naesten/hacking/bugs/a.out...done.
(gdb)


-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature to help me spread!

--- End Message ---

Reply via email to