public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/13707] New: "/usr/bin/localc": not in executable format: File format not recognized
@ 2012-02-18  0:59 christopher.penalver at gmx dot com
  2012-02-21 18:21 ` [Bug gdb/13707] " tromey at redhat dot com
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: christopher.penalver at gmx dot com @ 2012-02-18  0:59 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=13707

             Bug #: 13707
           Summary: "/usr/bin/localc": not in executable format: File
                    format not recognized
           Product: gdb
           Version: 7.4
            Status: NEW
          Severity: minor
          Priority: P2
         Component: gdb
        AssignedTo: unassigned@sourceware.org
        ReportedBy: christopher.penalver@gmx.com
    Classification: Unclassified


Downstream bug may be found at:
https://bugs.launchpad.net/ubuntu/+source/gdb/+bug/871940

1) lsb_release -rd
Description: Ubuntu precise (development branch)
Release: 12.04

2) apt-cache policy gdb
gdb:
  Installed: 7.4-0ubuntu1
  Candidate: 7.4-0ubuntu1
  Version table:
 *** 7.4-0ubuntu1 0
        500 http://us.archive.ubuntu.com/ubuntu/ precise/main i386 Packages
        100 /var/lib/dpkg/status

apt-cache policy libreoffice-calc
libreoffice-calc:
  Installed: 1:3.5.0~beta2-2ubuntu4
  Candidate: 1:3.5.0~beta2-2ubuntu4
  Version table:
 *** 1:3.5.0~beta2-2ubuntu4 0
        500 http://us.archive.ubuntu.com/ubuntu/ precise/main i386 Packages
        100 /var/lib/dpkg/status

3) What is expected to happen at the Terminal:

gdb localc 2>&1 | tee gdb-libreoffice.txt

is LibreOffice Calc opens via gdb for debugging purposes.

4) What happens instead is Calc is not launched with the following shown in the
Terminal:

 GNU gdb (Ubuntu/Linaro 7.4-0ubuntu1) 7.4
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 "i686-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
"/usr/bin/localc": not in executable format: File format not recognized
(gdb)

WORKAROUND: Attach to the process ID via the Terminal:

sudo gdb localc 21015 2>&1 | tee gdb-libreoffice.txt

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug gdb/13707] "/usr/bin/localc": not in executable format: File format not recognized
  2012-02-18  0:59 [Bug gdb/13707] New: "/usr/bin/localc": not in executable format: File format not recognized christopher.penalver at gmx dot com
@ 2012-02-21 18:21 ` tromey at redhat dot com
  2012-02-23 10:07 ` jan.kratochvil at redhat dot com
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: tromey at redhat dot com @ 2012-02-21 18:21 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=13707

Tom Tromey <tromey at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |WAITING
                 CC|                            |tromey at redhat dot com

--- Comment #1 from Tom Tromey <tromey at redhat dot com> 2012-02-21 18:20:42 UTC ---
I don't have an Ubuntu install, but at least on Fedora,
/usr/bin/oocalc is a shell script.
What does "file /usr/bin/localc" say?

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug gdb/13707] "/usr/bin/localc": not in executable format: File format not recognized
  2012-02-18  0:59 [Bug gdb/13707] New: "/usr/bin/localc": not in executable format: File format not recognized christopher.penalver at gmx dot com
  2012-02-21 18:21 ` [Bug gdb/13707] " tromey at redhat dot com
@ 2012-02-23 10:07 ` jan.kratochvil at redhat dot com
  2012-02-23 15:10 ` tromey at redhat dot com
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: jan.kratochvil at redhat dot com @ 2012-02-23 10:07 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=13707

Jan Kratochvil <jan.kratochvil at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jan.kratochvil at redhat
                   |                            |dot com

--- Comment #2 from Jan Kratochvil <jan.kratochvil at redhat dot com> 2012-02-23 10:06:23 UTC ---
GDB could automatically do:
  gdb --args /bin/sh -c /usr/bin/oocalc

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug gdb/13707] "/usr/bin/localc": not in executable format: File format not recognized
  2012-02-18  0:59 [Bug gdb/13707] New: "/usr/bin/localc": not in executable format: File format not recognized christopher.penalver at gmx dot com
  2012-02-21 18:21 ` [Bug gdb/13707] " tromey at redhat dot com
  2012-02-23 10:07 ` jan.kratochvil at redhat dot com
@ 2012-02-23 15:10 ` tromey at redhat dot com
  2012-02-24 23:49 ` christopher.penalver at gmx dot com
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: tromey at redhat dot com @ 2012-02-23 15:10 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=13707

--- Comment #3 from Tom Tromey <tromey at redhat dot com> 2012-02-23 15:10:24 UTC ---
(In reply to comment #2)
> GDB could automatically do:
>   gdb --args /bin/sh -c /usr/bin/oocalc

Yeah, I have thought about that for the future, maybe as 
part of switching over to multi-inferior-by-default or something.
This would be useful for the situation where libtool makes a
shell script for you instead of a real executable...
However, an additional feature would be needed as well, because
the above won't work as expected if you want to pass your own
arguments to the inferior.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug gdb/13707] "/usr/bin/localc": not in executable format: File format not recognized
  2012-02-18  0:59 [Bug gdb/13707] New: "/usr/bin/localc": not in executable format: File format not recognized christopher.penalver at gmx dot com
                   ` (2 preceding siblings ...)
  2012-02-23 15:10 ` tromey at redhat dot com
@ 2012-02-24 23:49 ` christopher.penalver at gmx dot com
  2012-02-27 19:36 ` tromey at redhat dot com
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: christopher.penalver at gmx dot com @ 2012-02-24 23:49 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=13707

Christopher M. Penalver <christopher.penalver at gmx dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |NEW

--- Comment #4 from Christopher M. Penalver <christopher.penalver at gmx dot com> 2012-02-24 23:48:16 UTC ---
file /usr/bin/localc
/usr/bin/localc: POSIX shell script text executable

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug gdb/13707] "/usr/bin/localc": not in executable format: File format not recognized
  2012-02-18  0:59 [Bug gdb/13707] New: "/usr/bin/localc": not in executable format: File format not recognized christopher.penalver at gmx dot com
                   ` (3 preceding siblings ...)
  2012-02-24 23:49 ` christopher.penalver at gmx dot com
@ 2012-02-27 19:36 ` tromey at redhat dot com
  2012-02-27 22:34 ` christopher.penalver at gmx dot com
  2023-12-31 13:32 ` ssbssa at sourceware dot org
  6 siblings, 0 replies; 8+ messages in thread
From: tromey at redhat dot com @ 2012-02-27 19:36 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=13707

Tom Tromey <tromey at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID

--- Comment #5 from Tom Tromey <tromey at redhat dot com> 2012-02-27 19:35:05 UTC ---
Ok, this isn't a bug.
gdb doesn't know about shell scripts.
I don't really think we're serious in comment #2 and comment #3;
but if someone thinks otherwise they can reopen this and turn
it into a feature request with the appropriate synopsis.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug gdb/13707] "/usr/bin/localc": not in executable format: File format not recognized
  2012-02-18  0:59 [Bug gdb/13707] New: "/usr/bin/localc": not in executable format: File format not recognized christopher.penalver at gmx dot com
                   ` (4 preceding siblings ...)
  2012-02-27 19:36 ` tromey at redhat dot com
@ 2012-02-27 22:34 ` christopher.penalver at gmx dot com
  2023-12-31 13:32 ` ssbssa at sourceware dot org
  6 siblings, 0 replies; 8+ messages in thread
From: christopher.penalver at gmx dot com @ 2012-02-27 22:34 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=13707

Christopher M. Penalver <christopher.penalver at gmx dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|INVALID                     |
           Severity|minor                       |enhancement

--- Comment #6 from Christopher M. Penalver <christopher.penalver at gmx dot com> 2012-02-27 22:34:16 UTC ---
I did not know if this was a bug or enhancement. Since this is not a bug, this
is an enhancement request.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug gdb/13707] "/usr/bin/localc": not in executable format: File format not recognized
  2012-02-18  0:59 [Bug gdb/13707] New: "/usr/bin/localc": not in executable format: File format not recognized christopher.penalver at gmx dot com
                   ` (5 preceding siblings ...)
  2012-02-27 22:34 ` christopher.penalver at gmx dot com
@ 2023-12-31 13:32 ` ssbssa at sourceware dot org
  6 siblings, 0 replies; 8+ messages in thread
From: ssbssa at sourceware dot org @ 2023-12-31 13:32 UTC (permalink / raw)
  To: gdb-prs

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

Hannes Domani <ssbssa at sourceware dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|---                         |DUPLICATE
                 CC|                            |ssbssa at sourceware dot org

--- Comment #7 from Hannes Domani <ssbssa at sourceware dot org> ---
Dup.

*** This bug has been marked as a duplicate of bug 12208 ***

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2023-12-31 13:32 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-18  0:59 [Bug gdb/13707] New: "/usr/bin/localc": not in executable format: File format not recognized christopher.penalver at gmx dot com
2012-02-21 18:21 ` [Bug gdb/13707] " tromey at redhat dot com
2012-02-23 10:07 ` jan.kratochvil at redhat dot com
2012-02-23 15:10 ` tromey at redhat dot com
2012-02-24 23:49 ` christopher.penalver at gmx dot com
2012-02-27 19:36 ` tromey at redhat dot com
2012-02-27 22:34 ` christopher.penalver at gmx dot com
2023-12-31 13:32 ` ssbssa at sourceware dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).