[12253] in Athena Bugs
RS/6000 gdb in cygnus locker
daemon@ATHENA.MIT.EDU (John Carr)
Thu Jul 21 17:31:08 1994
To: bugs@MIT.EDU
Date: Thu, 21 Jul 94 17:31:04 EDT
From: John Carr <jfc@MIT.EDU>
There is a bug in the RS/6000 gdb in the cygnus locker. When I use it to
debug a program compiled with xlc 1.3.0.19 gdb gets the source filename
wrong. The default cygnus version thinks all source files are named ".file".
The version in cygnus-94q1 thinks the source file is named "". In the
first case, if only one file is compiled -g I can work around the bug by
creating a link to that file named ".file". In the second case there is no
workaround: gdb reads "", which is an alias for the current directory, and
prints binary garbage instead of a source listing. dbx reads the correct
source filename so this is probably not a compiler bug.
Here is a sample program:
----------------------------------------------------------------
main(){return 0;}
----------------------------------------------------------------
I compiled this code, in a file named "test.c", into the binary
encoded below.
If you want to recreate this bug by compiling from source you must
use xlc 1.3; gdb works with xlc 1.2.
begin 775 a.out
M`=\`!RXNYBP```JV````2P!($`(!"P`!```!#````FP````0```"/````@``
M```````"7``$``(`!``$``<`!0`"``(Q3```````````````````````````
M```N<&%D````````````````````%````>P````````````````````(+G1E
M>'0```````(````"`````0P```(````)O@``"J0`!P`#````("YP860`````
M``````````````#T```##`````````````````````@N9&%T80``````````
M```````";```!`````H$```````0``````!`+F)S<P````````)L```";```
M`!``````````````````````````@"YP860```````````````````&4```&
M;`````````````````````@N;&]A9&5R```````````````!O@``"```````
M`````````````!``````````````````````````````````````````````
M````_____P``````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M``````````````````````""0@``@/(`"#D```"1!P``@3(``)!I``"!,@`$
MD(D``(#B``21!P``2```44__^X*`\@`(@.<``"P'``!!@@`,@1(`#(!H``!(
M``!9@$$`%'R!"`@```````P`````````````````````````````````````
M```X8```2```!$Z``"`````````@0`````$````,``1M86EN````````@8(`
M")!!`!2`#```@$P`!'P)`Z9.@`0@```````,@```````3H``(4WO>X)(```,
M3H``(8!!`!1]@A`(2```#8!!`!1+___T@8(`#)!!`!2`#```@$P`!'P)`Z9.
M@`0@```````,@```````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M`````````````````````````````````````````````````FP```)P```"
M=````G@`````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M```````````````````````````````"`````EP```+$```"7````M````)<
M```"V````EP`````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M```````````````````````````````````!````"````!`````>`````@``
M`:```````````&5R<FYO````````````0`4````!`````&5X:70`````````
M````0`H````!`````&9F;'5S:```````````0`H````!`````%]?9&)A<F=S
M````/``$$@4``````````%]?<W1A<G0````"/``$(0H``````````%]?9&)S
M=6)C```"1``$$0H``````````%]?9&)S=6)G```"3``$$0H``````````%]?
M9&)S=6)N```"5``$$0H````````````````````"'P``!`````0````"'P``
M!`````@````"'P``!`````P````"'P``!````CP`````'P``!````D`````!
M'P``!````D0`````'P``!````D@````!'P``!````DP`````'P``!````E``
M```!'P``!````E0`````'P``!````E@````!'P``!````EP````!'P``!```
M`F`````#'P``!````F0````$'P``!````F@````%'P``!"]U<W(O;&EB.B]L
M:6(`````;&EB8RYA`'-H<BYO`````@(````(#P,```(B````"@\#```"*```
M`!N9&@```D@```!$F1H```*B````1@\#```"W````#N9&@```NH````]#P,`
M````````#!\`````!`````X?``````@````0'P`````,````$A\````"/```
M```?`````D`````&'P````)$````)!\````"2`````8?`````DP````D'P``
M``)0````!A\````"5````"0?`````E@````&'P````)<````!!\````"8```
M`$D?`````F0```!`'P````)H````-Q\`````&P`````">``!```"@``!+E]?
M<W1A<G0```(```(```(!````>```````"!$`````````7U]S=&%R=`````(\
M``0```(!````"```````"!$*````````7V%D871A``````````0``&L!````
M$```````"!$%````````5$]#``````````)<``0``&L!````````````"!$/
M````````7V%D871A``````)<``0``&L!````!```````"!$#````````97)R
M;F\```````)@``0``&L!````!```````"!$#````````<%]X87)G8P````)L
M``4```(!````!```````"!,%````````<%]X87)G=@````)P``4```(!````
M!```````"!,%````````<%]X<F-F9P````)T``4```(!````!```````"!,%
M````````<%]X<F,```````)X``4```(!````!```````"!,%````````+F9I
M;&4````````C__X``V<#=&5S="YC``````````````````````````0`````
M```!`````````````!8````````"````.G0Q/68M,3L`````__X``(P`+FUA
M:6X```````)X``(``&L!````*```````"!$`````````+FUA:6X```````)X
M``(`(`("`````````"0```JD````(P``````&0``````"`(`````````;6%I
M;CI&+3$`````__X``(X`+F)F``````````)X``(``&4!```````!````````
M````````+F5F``````````*$``(``&4!```````!````````````````9&)X
M>'@N<P`````V__X``&<``````````$4```+$``(``&L!````)```````"!$`
M`````````````````$\```+$``(```(!````)```````"!(`````````````
M`````%D```+0``(```(!````)```````"`(``````````````````&,```+8
M``(```(!````)```````"`(`````````9&)X>'@````````0``0``&L!```"
M+```````"!$%````````7U]D8F%R9W,````\``0```(!````+```````"`(%
M````````7U]D8G-U8F,```)$``0```(!````"```````"!$*````````7U]D
M8G-U8F<```),``0```(!````"```````"!$*````````7U]D8G-U8FX```)4
M``0```(!````"```````"!$*````````9VQI;FLN<P`````___X``&<`9F9L
M=7-H``````````````(!````````````"``*````````+F9F;'5S:`````+H
M``(``&L!````)```````"!$&````````+F9F;'5S:`````+H``(```(!````
M.0``````"`(&````````9F9L=7-H``````)H``0``&L!````!```````"!$#
M````````9VQI;FLN<P````!(__X``&<`97AI=`````````````````(!````
M````````"``*````````+F5X:70```````*@``(``&L!````)```````"!$&
M````````+F5X:70```````*@``(```(!````0@``````"`(&````````97AI
M=`````````)D``0``&L!````!```````"!$#````````9V5N+F9I;&7_____
M__X``&<`97)R;F\```````````````(!````````````"``%````````````
M;3`W+S(Q+SDT(#$W.C$X.C(W`$E"32!!25@@6$P@0R!#;VUP:6QE<B`@5F5R
M<VEO;B`P,2XP,RXP,#`P+C`P,3D`+E]?9&)S=6)C`"Y?7V1B<W5B8P`N7U]D
08G-U8F<`+E]?9&)S=6)N`#`P
`
end