public inbox for gdb-prs@sourceware.org help / color / mirror / Atom feed
* [Bug symtab/15343] New: Crash when setting a breakpoint in assembler file compiled by ARM tool chain @ 2013-04-08 7:57 Andreas.Kaufmann at gmx dot de 2013-04-08 8:01 ` [Bug symtab/15343] " Andreas.Kaufmann at gmx dot de ` (2 more replies) 0 siblings, 3 replies; 4+ messages in thread From: Andreas.Kaufmann at gmx dot de @ 2013-04-08 7:57 UTC (permalink / raw) To: gdb-prs http://sourceware.org/bugzilla/show_bug.cgi?id=15343 Bug #: 15343 Summary: Crash when setting a breakpoint in assembler file compiled by ARM tool chain Product: gdb Version: 7.5 Status: NEW Severity: normal Priority: P2 Component: symtab AssignedTo: unassigned@sourceware.org ReportedBy: Andreas.Kaufmann@gmx.de Classification: Unclassified Created attachment 6969 --> http://sourceware.org/bugzilla/attachment.cgi?id=6969 Elf file, which causes gdb crash gdb crashes when trying to set a breakpoint in an assembler file compiled by ARM tool chain. This happens for part of assembler code inside some assembler macro. Here are the steps to reproduce the problem: **** Use the following file gdb_crash.s: MACRO MY_MACRO AREA | Header CODE|, CODE Start MOV r1, #1 MOV r2, #1 MOV r3, #1 B Entry AREA |Main CODE|, CODE, ALIGN=12 Entry MOV r0, #0 MEND MY_MACRO END *** Compile it with ARM tool chain. I see the problem when using ARM tool chain RVD4.0 or DS-5/v5.12 on Linux RedHat 4. Compile the above file with the following commands: * armasm --arm -g gdb_crash.s * armlink --elf --noremove \ --ro-base 0x00000000 --entry 0x00000000 gdb_crash.o -o gdb_crash.elf The file gdb_crash.elf is attached. *** Run gdb Use gdb 7.5.1 configured as "--host=x86_64-unknown-linux-gnu --target=arm-unknown-elf". * gdb gdb_crash.elf * br *0x0 Segmentation fault Apparently ARM assembler doesn't generate any debug line information for included assembler macro and gdb fails to handle such situation. This bug is probably the same issue as described in http://sourceware.org/bugzilla/show_bug.cgi?id=14983 I also see the crash in latest gdb 7.6 sources. I will submit a patch for this crash. -- 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] 4+ messages in thread
* [Bug symtab/15343] Crash when setting a breakpoint in assembler file compiled by ARM tool chain 2013-04-08 7:57 [Bug symtab/15343] New: Crash when setting a breakpoint in assembler file compiled by ARM tool chain Andreas.Kaufmann at gmx dot de @ 2013-04-08 8:01 ` Andreas.Kaufmann at gmx dot de 2013-04-08 8:27 ` Andreas.Kaufmann at gmx dot de 2013-04-12 17:45 ` tromey at redhat dot com 2 siblings, 0 replies; 4+ messages in thread From: Andreas.Kaufmann at gmx dot de @ 2013-04-08 8:01 UTC (permalink / raw) To: gdb-prs http://sourceware.org/bugzilla/show_bug.cgi?id=15343 Andreas Kaufmann <Andreas.Kaufmann at gmx dot de> changed: What |Removed |Added ---------------------------------------------------------------------------- Target| |arm-unknown-elf Host| |x86_64-unknown-linux-gnu See Also| |http://sourceware.org/bugzi | |lla/show_bug.cgi?id=14983 Build| |7.5.1 -- 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] 4+ messages in thread
* [Bug symtab/15343] Crash when setting a breakpoint in assembler file compiled by ARM tool chain 2013-04-08 7:57 [Bug symtab/15343] New: Crash when setting a breakpoint in assembler file compiled by ARM tool chain Andreas.Kaufmann at gmx dot de 2013-04-08 8:01 ` [Bug symtab/15343] " Andreas.Kaufmann at gmx dot de @ 2013-04-08 8:27 ` Andreas.Kaufmann at gmx dot de 2013-04-12 17:45 ` tromey at redhat dot com 2 siblings, 0 replies; 4+ messages in thread From: Andreas.Kaufmann at gmx dot de @ 2013-04-08 8:27 UTC (permalink / raw) To: gdb-prs http://sourceware.org/bugzilla/show_bug.cgi?id=15343 --- Comment #1 from Andreas Kaufmann <Andreas.Kaufmann at gmx dot de> 2013-04-08 08:27:40 UTC --- Proposed patch for this issue: http://sourceware.org/ml/gdb-patches/2013-04/msg00171.html -- 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] 4+ messages in thread
* [Bug symtab/15343] Crash when setting a breakpoint in assembler file compiled by ARM tool chain 2013-04-08 7:57 [Bug symtab/15343] New: Crash when setting a breakpoint in assembler file compiled by ARM tool chain Andreas.Kaufmann at gmx dot de 2013-04-08 8:01 ` [Bug symtab/15343] " Andreas.Kaufmann at gmx dot de 2013-04-08 8:27 ` Andreas.Kaufmann at gmx dot de @ 2013-04-12 17:45 ` tromey at redhat dot com 2 siblings, 0 replies; 4+ messages in thread From: tromey at redhat dot com @ 2013-04-12 17:45 UTC (permalink / raw) To: gdb-prs http://sourceware.org/bugzilla/show_bug.cgi?id=15343 Tom Tromey <tromey at redhat dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |tromey at redhat dot com Resolution| |DUPLICATE --- Comment #2 from Tom Tromey <tromey at redhat dot com> 2013-04-12 17:45:35 UTC --- Duplicate. *** This bug has been marked as a duplicate of bug 14983 *** -- 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] 4+ messages in thread
end of thread, other threads:[~2013-04-12 17:45 UTC | newest] Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2013-04-08 7:57 [Bug symtab/15343] New: Crash when setting a breakpoint in assembler file compiled by ARM tool chain Andreas.Kaufmann at gmx dot de 2013-04-08 8:01 ` [Bug symtab/15343] " Andreas.Kaufmann at gmx dot de 2013-04-08 8:27 ` Andreas.Kaufmann at gmx dot de 2013-04-12 17:45 ` tromey at redhat dot com
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).