From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30813 invoked by alias); 1 Jan 2013 07:49:37 -0000 Received: (qmail 30787 invoked by uid 48); 1 Jan 2013 07:49:36 -0000 From: "ThomasDHowell at gmail dot com" To: gdb-prs@sourceware.org Subject: [Bug gdb/14992] New: gdb on object file produces: internal error - "Please report this bug" Date: Tue, 01 Jan 2013 07:49:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: gdb X-Bugzilla-Keywords: X-Bugzilla-Severity: minor X-Bugzilla-Who: ThomasDHowell at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-prs-owner@sourceware.org X-SW-Source: 2013-q1/txt/msg00000.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=14992 Bug #: 14992 Summary: gdb on object file produces: internal error - "Please report this bug" Product: gdb Version: 7.1 Status: NEW Severity: minor Priority: P2 Component: gdb AssignedTo: unassigned@sourceware.org ReportedBy: ThomasDHowell@gmail.com Classification: Unclassified I just re-installed gcc and gdb under Windows 7 Professional SP1. The downloads were these: mingw-w64-bin_i686-mingw_20111220.zip x86_64-w64-mingw32-gdb-7.1.90.20100730.zip I teach a course in which students compile C programs and examine the machine instructions they generate. I was testing the capability to generate and examine x86_64 code. The test program is rtsb.c. It reads a command line argument as a decimal or hex integer prints the bytes representing the argument and its address. gcc -m64 -g -c rtsb.c runs and generates rtsb.o gcc -m64 -g rtsb.c runs and generates a working executable file. objdump runs fine on either the object file or the executable. gdb needs to run on the executable file, not the object file, but I typed the following line in error (should have typed just gdb rtsb). gdb rtsb.o It creates the following output. GNU gdb (GDB) 7.1.90.20100730-cvs Copyright (C) 2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later 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-w64-mingw32". For bug reporting instructions, please see: ... Reading symbols from C:\MinGW-w64\home\Tom\cs47prg/rtsb.o...BFD: BFD (GNU Binutils) 2.20.51.20100707 internal error, aborting at ../../gdb-cvs/bfd/reloc.c line 5720 in bfd_generic_get_relocated_section_contents BFD: Please report this bug. This is not an important problem for me. It happens only when I make a typo, but the error message asks for a bug report, so here it is. -- 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.