ChangeLog-1992 269 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242
  1. Thu Dec 31 11:06:38 1992 Fred Fish (fnf@cygnus.com)
  2. * Makefile.in (BISON): Add comment that when bison is used, it
  3. must include the "-y" option.
  4. * c-exp.y, m2-exp.y (yyrule, yyname, yyss, yyssp, yyvs, yyvsp):
  5. Remove defines to remap non-yacc symbols, thus backing out of
  6. previous recent changes. Standard policy is that non-yacc parser
  7. generators get fixed, rather than adding bug workarounds in gdb
  8. for each new one that pops up. Expand comment to note this.
  9. * c-exp.y, m2-exp.y (YYDEBUG): Revert back to disabled by default.
  10. Thu Dec 31 09:03:02 1992 Stu Grossman (grossman at cygnus.com)
  11. * partial-stab.h (near N_BINCL): Remove redundant code in N_BINCL
  12. case. Use code in N_SOL.
  13. * paread.c: New file that contains all HPPA/HPUX symbol reading
  14. code.
  15. * dbxread.c: Remove almost all HPPA/HPUX symbol reading code.
  16. * (dbx_symfile_init): Use sizeof(long) instead of 4.
  17. * (dbx_symfile_offsets): Make static.
  18. * (pastab_build_psymtabs): New interface routine for paread to
  19. send stabs into dbxread.
  20. * gdb-stabs.h: Remove gobs of HPPA cruft.
  21. Wed Dec 30 19:47:13 1992 Fred Fish (fnf@cygnus.com)
  22. * c-exp.y, m2-exp.y (yyrule, yyname): Remap like other yy* names
  23. for byacc.
  24. * ch-exp.y (yyrule, yyname): Remap like other yy* names for byacc.
  25. * c-exp.y, m2-exp.y (yyreds, yytoks): Remap like other yy* names.
  26. * c-exp.y, m2-exp.y (YYDEBUG): Define if MAINTENANCE_CMDS is defined
  27. and YYDEBUG is not already defined.
  28. * c-exp.y (strncmp): Replace throughout with STREQN, missed
  29. them during the previous replacements.
  30. * printcmd.c (_initialize_printcmd): Update internal documentation
  31. for "set" command to note that the assignment syntax is language
  32. dependent.
  33. * ch-exp.y (yyreds, yytoks): Remap like other yy* names.
  34. * ch-exp.y (YYDEBUG): Define if MAINTENANCE_CMDS is defined
  35. and YYDEBUG is not already defined.
  36. * ch-exp.y (GDB_REGNAME, GDB_LAST, GDB_VARIABLE, GDB_ASSIGNMENT,
  37. single_assignment_action): New terminals and nonterminal for gdb
  38. extensions to chill expression grammer.
  39. * ch-exp.y (match_dollar_tokens): Lexer routine to match all
  40. tokens that start with '$' (register names, convenience vars, etc).
  41. * ch-exp.y (tokentab2): Add GDB_ASSIGNMENT.
  42. * ch-exp.y (yylex): Call match_dollar_tokens.
  43. Mon Dec 28 15:00:01 1992 Stu Grossman (grossman at cygnus.com)
  44. * hppah-tdep.c (skip_trampoline_code): Use new macros for
  45. accessing minimal symbol data.
  46. * infcmd.c (read_pc): Use #ifdef, not #if.
  47. * symfile.c (syms_from_objfile): Add CONST to decl for targets.
  48. * tm-hppa.h (FIX_CALL_DUMMY): Use new macros for accessing
  49. minimal symbol data.
  50. * hppah-tdep.c (frame_saved_pc): Use better test for outermost
  51. frame. Use find_return_regnum to find the caller.
  52. * (find_unwind_entry): New routine to locate stack frame info
  53. associated with a procedure. This looks in the $UNWIND_START$
  54. section in the SOM file.
  55. * (find_return_regnum): New routine. Uses find_unwind_entry() to
  56. figure out where the caller's return address is stored.
  57. * (find_proc_framesize): New routine. Uses find_unwind_entry()
  58. to figure out the frame size for a procedure.
  59. * (saved_pc_after_call): New routine, moved from tm-hppa.h.
  60. * (init_extra_frame_info): New routine. Corrects PC and FP for
  61. outermost frame if necessary.
  62. * (frame_chain): New routine, moved from tm-hppa.h.
  63. * (skip_trampoline_code): Handle computed function calls (ie:
  64. calls from $$dyncall).
  65. * (unwind_command): Temporary support function to allow user
  66. to control/observe aspects of the unwind (stack frame) info.
  67. * infcmd.c (read_pc): (Temporary), put a hack in to see if the PC
  68. was in a system call, if so, then read the PC from r31.
  69. * tm-hppah.h (SKIP_TRAMPOLINE_CODE, IN_SOLIB_TRAMPOLINE): Deal
  70. with extra arg for skip_trampoline_code().
  71. * (INIT_EXTRA_FRAME_INFO): Define to point at subr (see above).
  72. * (FRAME_CHAIN, FRAME_CHAIN_VALID): Turn into real subroutines.
  73. * tm-hppa.h (SAVED_PC_AFTER_CALL): Turn into real subroutine.
  74. Sun Dec 27 17:34:15 1992 Fred Fish (fnf@cygnus.com)
  75. * dbxread.c (dbx_symfile_init, elfstab_build_psymtabs):
  76. Call new bfd_get_size() and verify that string table is no larger
  77. than the file that is supposed to contain it.
  78. * symfile.c (syms_from_objfile): Only complain about configured
  79. NAMES_HAVE_UNDERSCORE differences between gdb and bfd if the
  80. current target is the default BFD target.
  81. Sat Dec 26 20:51:41 1992 Fred Fish (fnf@cygnus.com)
  82. * solib.c (BKPT_AT_MAIN): Change to BKPT_AT_SYMBOL.
  83. * solib.c (bkpt_names): New array of symbol names to try to
  84. use for the "mapping complete" breakpoint. Configurable
  85. define SOLIB_BKPT_NAME is first one to try.
  86. * solib.c (find_solib): Test debug_base for nonzero rather
  87. than just greater than zero.
  88. * solib.c (enable_break): Use bkpt_names to look up address
  89. at which to set "mapping complete" breakpoint.
  90. Tue Dec 22 20:33:38 1992 Fred Fish (fnf@cygnus.com)
  91. * defs.h (STRCMP, STREQ, STREQN): New macros.
  92. * defs.h (demangle_and_match): Remove prototype.
  93. * dwarfread.c (STREQ, STREQN): Remove macros, replaced with STREQ
  94. and STREQN defined in defs.h.
  95. * dwarfread.c (set_cu_language): For completely unknown languages,
  96. try to deduce the language from the filename. Retain behavior
  97. that for known languages we don't know how to handle, we use
  98. language_unknown.
  99. * dwarfread.c (enum_type, symthesize_typedef): Initialize language
  100. and demangled name fields in symbol.
  101. * dwarfread.c, mipsread.c, partial-stab.h: For all usages of
  102. ADD_PSYMBOL_TO_LIST, add language and objfile parameters.
  103. * dwarfread.c (new_symbol): Attempt to demangle C++ symbol names
  104. and cache the results in SYMBOL_DEMANGLED_NAME for the symbol.
  105. * elfread.c (STREQ): Remove macro, use STREQ defined in defs.h.
  106. Replace usages throughout.
  107. * elfread.c (demangle.h): Include.
  108. * elfread.c (record_minimal_symbol): Remove prototype and function.
  109. * gdbtypes.h, symtab.h (B_SET, B_CLR, B_TST, B_TYPE, B_BYTES,
  110. B_CLRALL): Moved from symtab.h to gdbtypes.h.
  111. * infcmd.c (jump_command): Remove code to demangle name and add
  112. it to a cleanup list. Now just use SYMBOL_DEMANGLED_NAME.
  113. * minsyms.c (demangle.h): Include.
  114. * minsyms.c (lookup_minimal_symbol): Indent comment to match code.
  115. * minsyms.c (install_minimal_symbols): Attempt to demangle symbol
  116. names as C++ names, and cache them in SYMBOL_DEMANGLED_NAME.
  117. * mipsread.c (psymtab_language): Add static variable.
  118. * stabsread.c (demangle.h): Include.
  119. * stabsread.c (define_symbol): Attempt to demangle C++ symbol
  120. names and cache them in the SYMBOL_DEMANGLED_NAME field.
  121. * stack.c (return_command): Remove explicit demangling of name
  122. and use of cleanups. Just use SYMBOL_DEMANGLED_NAME.
  123. * symfile.c (demangle.h): Include.
  124. * symfile.c (add_psymbol_to_list, add_psymbol_addr_to_list): Fix
  125. to match macros in symfile.h and allow them to be compiled
  126. if INLINE_ADD_PSYMBOL is not true.
  127. * symfile.h (INLINE_ADD_PSYMBOL): Default to true if not set.
  128. * symfile.h (ADD_PSYMBOL_*): Add language and objfile parameters.
  129. Add code to demangle and cache C++ symbol names. Use macro form
  130. if INLINE_ADD_PSYMBOL is true, otherwise use C function form.
  131. * symmisc.c (add_psymbol_to_list, add_psymbol_addr_to_list):
  132. Remove, also defined in symfile.c, which we already fixed.
  133. * symtab.c (expensive_mangler): Remove prototype and function.
  134. * symtab.c (find_methods): Remove physnames parameter and fix
  135. prototype to match.
  136. * symtab.c (completion_list_add_symbol): Name changed to
  137. completion_list_add_name.
  138. * symtab.c (COMPLETION_LIST_ADD_SYMBOL): New macro, adds both
  139. the normal symbol name and the cached C++ demangled name.
  140. * symtab.c (lookup_demangled_partial_symbol,
  141. lookup_demangled_block_symbol): Remove prototypes and functions.
  142. * symtab.c (lookup_symbol): Remove use of expensive_mangler,
  143. use lookup_block_symbol instead of lookup_demangled_block_symbol.
  144. Remove code to try demangling names and matching them.
  145. * symtab.c (lookup_partial_symbol, lookup_block_symbol):
  146. Fix to try matching the cached demangled name if no match is
  147. found using the regular symbol name.
  148. * symtab.c (find_methods): Remove unused physnames array.
  149. * symtab.c (name_match, NAME_MATCH): Remove function and macro,
  150. replaced with SYMBOL_MATCHES_REGEXP from symtab.h.
  151. * symtab.c (completion_list_add_symbol): Rewrite to use cached
  152. C++ demangled symbol names.
  153. * symtab.h: Much reformatting of structures and such to add
  154. whitespace to make them more readable, and make them more
  155. consistent with other gdb structure definitions.
  156. * symtab.h (general_symbol_info): New struct containing fields
  157. common to all symbols.
  158. * symtab.h (SYMBOL_LANGUAGE, SYMBOL_DEMANGLED_NAME,
  159. SYMBOL_SOURCE_NAME, SYMBOL_LINKAGE_NAME, SYMBOL_MATCHES_NAME,
  160. SYMBOL_MATCHES_REGEXP, MSYMBOL_INFO, MSYMBOL_TYPE): New macros.
  161. * symtab. (struct minimal_symbol, struct partial_symbol, struct
  162. symbol): Use general_symbol_info struct.
  163. * utils.c (demangle_and_match): Remove, no longer used.
  164. * valops.c (demangle.h): Include.
  165. * xcoffexec.c (eq): Remove macro, replace usages with STREQ.
  166. * blockframe.c, breakpoint.c, c-exp.y, c-valprint.c, dbxread.c,
  167. infcmd.c, m2-exp.y, minsyms.c, objfiles.h, solib.c, stack.c,
  168. symmisc.c, symtab.c, valops.c: Replace references to minimal
  169. symbol fields with appropriate macros.
  170. * breakpoint.c, buildsym.c, c-exp.y, c-typeprint.c, c-valprint.c,
  171. coffread.c, command.c, convex-tdep.c, cp-valprint.c, dbxread.c,
  172. demangle.c, elfread.c, energize.c, environ.c, exec.c,
  173. gdbtypes.c, i960-tdep.c, infrun.c, infrun-hacked.c, language.c,
  174. main.c, minsyms.c, mipsread.c, partial-stab.h, remote-es1800.c,
  175. remote-nindy.c, remote-udi.c, rs6000-tdep.c, solib.c, source.c,
  176. sparc-pinsn.c, stabsread.c, standalone.c, state.c, stuff.c,
  177. symfile.c, symmisc.c, symtab.c, symtab.h, tm-sysv4.h,
  178. tm-ultra3.h, values.c, xcoffexec.c, xcoffread.c: Replace strcmp
  179. and strncmp usages with STREQ, STREQN, or STRCMP as appropriate.
  180. * breakpoint.c, buildsym.c, c-typeprint.c, expprint.c, findvar.c,
  181. mipsread.c, printcmd.c, source.c, stabsread.c, stack.c,
  182. symmisc.c, tm-29k.h, valops.c, values.c: Replace SYMBOL_NAME
  183. references with SYMBOL_SOURCE_NAME or SYMBOL_LINKAGE_NAME as
  184. appropriate.
  185. * buildsym.c (start_subfile, patch_subfile_names): Default the
  186. source language to what can be deduced from the filename.
  187. * buildsym.c (end_symtab): Update the source language in the
  188. allocated symtab to match what we have been using.
  189. * buildsym.h (struct subfile): Add a language field.
  190. * c-typeprint.c (c_print_type): Remove code to do explicit
  191. demangling.
  192. * dbxread.c (psymtab_language): Add static variable.
  193. * dbxread.c (start_psymtab): Initialize psymtab_language using
  194. deduce_language_from_filename.
  195. Mon Dec 21 22:24:33 1992 Fred Fish (fnf@cygnus.com)
  196. * valprint.c (val_print): Reorganize comment and add note
  197. about dependency on target byte ordering.
  198. * ch-exp.y (value_array_slice): Fix typo.
  199. * ch-valprint.c (chill_val_print): Remove C'ism that arrays of
  200. byte sized ints are assumed to be char strings and printed with
  201. string syntax. In chill, arrays of chars and arrays of
  202. bytes/ubytes are distinquishable, and printed appropriately.
  203. Mon Dec 21 18:02:35 1992 Stu Grossman (grossman at cygnus.com)
  204. * tm-hppah.h: #define NEED_TEXT_START_END for target memory
  205. read/write routines for HPUX.
  206. * hppa-pinsn.c (print_insn): Improve handling of be and ble
  207. branch targets to compute target address using const from previous
  208. instruction if necessary.
  209. * Add `Q' operator to print out bit position field various
  210. instructions.
  211. * hppah-nat.c: #include sys/param.h, and sys/user.h. General
  212. cleanups, use new code from Utah.
  213. * (store_inferior_registers): Update to new code from Utah.
  214. * (initialize_kernel_u_addr): Re-enable decl of struct user u.
  215. * (fetch_register): Clear out priv level when reading PCs.
  216. * hppah-tdep.c: Get rid of gobs of KERNELDEBUG stuff.
  217. * Remove decl of errno, #include wait.h and target.h.
  218. * (frame_saved_pc): Check `flags' pseudo-register to see if we
  219. were inside of a kernel call. If so, then PC is in a different
  220. register. Also, mask out bottom two bits of all PCs so as not to
  221. confuse higher level code.
  222. * (push_dummy_frame): Create from #define in tm-hppa.h.
  223. * (find_dummy_frame_regs): Update from Utah.
  224. * (hp_pop_frame): Create from #define in tm-hppa.h.
  225. * (hp_restore_pc_queue): New, from Utah.
  226. * (hp_push_arguments): Big fixes from Utah.
  227. * (pa_do_registers_info, pa_print_registers): Only print out fp
  228. regs upon request.
  229. * (skip_trampoline_code): New routine to deal with stubs that
  230. live in nowhereland between callers and callees.
  231. * i860-tdep.c: Remove decl of attach_flag.
  232. * infrun.c (wait_for_inferior): Add new macro
  233. INSTRUCTION_NULLIFIED, which can tell if the instruction pointed
  234. at by PC will be nullified. If so, then step the target once more
  235. so as to avoid confusing the user.
  236. * (just before step_over_function:): Use stop_func_start, not
  237. stop_pc when checking for the existance of line number info.
  238. stop_func_start will reflect the proper address of the target
  239. routine, not of the stub that we may be traversing to get there.
  240. * tm-hppa.h: define SKIP_TRAMPOLINE_CODE and IN_SOLIB_TRAMPOLINE
  241. to deal with the stubs that PA compilers sometimes stick between
  242. callers and callees. Also, define FLAGS_REGNUM for access to the
  243. `flags' pseudo-reg.
  244. * (REGISTER_CONVERT_TO_VIRTUAL, REGISTER_CONVERT_TO_RAW): Use
  245. memcpy, not bcopy.
  246. * (CANNOT_STORE_REGISTER): New from Utah. Says that we can't
  247. write gr0, PC regs, and PSW!
  248. * (FRAME_FIND_SAVED_REGS): Bug fixes from Utah.
  249. * (PUSH_DUMMY_FRAME, POP_FRAME): Make into real routines in
  250. hppah-nat.c.
  251. * (CALL_DUMMY, FIX_CALL_DUMMY): Fixes from Utah.
  252. * Define struct unwind_table_entry.
  253. * valops.c (call_function_by_hand): Add another arg to
  254. FIX_CALL_DUMMY (under #ifdef GDB_TARGET_IS_HPPA). Why is this
  255. necessary?
  256. Mon Dec 21 02:17:57 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
  257. * remote-vx.c: remove include of "symfile.h", replace it with "complaints.h"
  258. Fri Dec 18 10:32:25 1992 Fred Fish (fnf@cygnus.com)
  259. * Makefile.in (VERSION): Bump to 4.7.4.
  260. * Makefile.in (SFILES_MAINDIR): Add typeprint.c, c-typeprint.c,
  261. m2-typeprint.c, c-valprint.c cp-valprint.c m2-valprint.c.
  262. * Makefile.in (HFILES): Add valprint.h.
  263. * Makefile.in (OBS): Add typeprint.o, c-typeprint.o,
  264. m2-typeprint.o, c-valprint.o, cp-valprint.o m2-valprint.o.
  265. * typeprint.c, typeprint.h: New files for language independent
  266. type printing functions.
  267. * c-typeprint.c, m2-typeprint.c: New files for language dependent
  268. type printing functions and definitions.
  269. * valprint.h: New include file for language independent value
  270. printing definitions.
  271. * c-valprint.c, cp-valprint.c, m2-valprint.c: New files for language
  272. dependent value printing functions.
  273. * c-exp.y (production ptype): Add range_type variable and use new
  274. create_range_type function.
  275. * c-exp.y (tokentab2, tokentab3), c-lang.c (c_op_print_tab),
  276. infcmd.c (path_var_name), language.c (unk_op_print_tab),
  277. m2-lang.c (m2_op_print_tab): Change from ANSI-obsolescent
  278. "const static" to ANSI-conformant "static const".
  279. * c-exp.y (c_create_fundamental_type): Remove unused nbytes.
  280. * c-exp.y (c_language_defn, cplus_language_defn): Add c_print_type,
  281. and c_val_print.
  282. * c-lang.h (c_print_type, c_val_print): Add prototypes.
  283. * coffread.c (decode_type): Add range_type variable and call to
  284. new create_range_type function.
  285. * complaints.c (complain): Remove unused val variable.
  286. * complaints.c (_initialize_complaints): Make it void.
  287. * convex-tdep.c (value_of_trapped_internalvar): Add range_type
  288. variable and call new create_range_type function.
  289. * defs.h (enum val_prettyprint): Move enum from value.h to here
  290. so we can avoid having to include value.h just for prototypes that
  291. need the enum (thanks ANSI).
  292. * dwarfread.c (struct_type): Local anonymous_size variable is
  293. only used if !BITS_BIG_ENDIAN.
  294. * dwarfread.c (decode_subscript_data_item): Add rangetype
  295. variable and call new create_range_type function.
  296. * elfread.c (elf_symfile_read): Remove unused dbx and text_sect
  297. variables.
  298. * eval.c (evaluate_subexp): Remove unused local variable name
  299. and the statement with no side effects that initializes it.
  300. * expprint.c (print_subexp): Change local_printstr to
  301. LA_PRINT_STRING.
  302. * gdbtypes.c (create_range_type): New function that creates
  303. a range type using code fragments from object file readers as
  304. an example of what has to be initialized.
  305. * gdbtypes.c (create_array_type): Removed index_type, low_bound,
  306. and high_bound parameters, replaced with a single range_type
  307. parameter. Change function body to use passed in range_type
  308. rather than handcrafting one.
  309. * gdbtypes.h (create_range_type): Add prototype.
  310. * gdbtypes.h (create_array_type): Change prototype parameters.
  311. * infrun.c (normal_stop): Remove unused local variables tem and c.
  312. * infrun.c (hook_stop_stub): Return 0 rather than random value.
  313. * language.c (unk_lang_print_type, unk_lang_val_print): Add
  314. stub functions that call error if called.
  315. * language.c (unknown_language_defn, auto_language_defn,
  316. local_language_defn): Add initializers unk_lang_print_type and
  317. unk_lang_val_print.
  318. * language.h (struct language_defn): Reformat for larger
  319. comments, add la_print_type and la_val_print members. Add
  320. LA_PRINT_TYPE and LA_VAL_PRINT macros. Change local_printchar
  321. to LA_PRINT_CHAR and local_printstr to LA_PRINT_STRING.
  322. * m2-lang.c (m2_create_fundamental_type): Remove unused local
  323. variable nbytes.
  324. * m2-lang.c (m2_language_defn): Add initializers m2_print_type
  325. and m2_val_print.
  326. * m2-lang.h (m2_print_type, m2_val_print): Add prototypes.
  327. * main.c (execute_command): Remove unused local variable cmdlines.
  328. * main.c (echo_command), stabsread.c (read_type), printcmd.c
  329. (clear_displays), symmisc.c (block_depth), values.c
  330. (clear_value_history):
  331. Make testing of truth value of assignment result explicit.
  332. * mipsread.c (upgrade_type): Update FIXME to include future use
  333. of create_range_type.
  334. * printcmd.c (ptype_command, ptype_eval, whatis_command,
  335. whatis_exp, maintenance_print_type): Move prototypes and functions
  336. to new typeprint.c.
  337. * printcmd.c (_initialize_printcmd): Move add_com calls for
  338. ptype_command and whatis_command to new typeprint.c.
  339. * ser-bsd.c (serial_open): Remove unused variable sgttyb.
  340. * source.c (find_source_lines): Local variable c only used
  341. when LSEEK_NOT_LINEAR is defined.
  342. * stabsread.c (read_array_type): Use new create_range_type
  343. function.
  344. * stabsread.c (read_range_type): Add new index_type variable and
  345. call new create_range_type function rather than handcrafting
  346. range types.
  347. * symmisc.c (type_print_1): Change usages to LA_PRINT_TYPE.
  348. * symtab.c (typedef_print usages): Use c_typedef_print, renamed.
  349. * symtab.c (type_print_base usages): Use c_type_print_base.
  350. * symtab.c (type_print_varspec_prefix usages): Use
  351. c_type_print_varspec_prefix.
  352. * symtab.c (type_print_method_args usages): Use
  353. cp_type_print_method_args.
  354. * valprint.c: Completely ripped apart and the fragments used
  355. to create c-valprint.c, cp-valprint.c, m2-valprint.c, and
  356. valprint.h. Remaining stuff is language independent.
  357. * value.h (struct fn_field): Forward declare for prototypes.
  358. * value.h (type_print_1): Remove prototype.
  359. * value.h (enum val_prettyprint): Moved to defs.h.
  360. * value.h (typedef_print): Prototype renamed to c_typedef_print.
  361. * value.h (baseclass_offset): Add prototype.
  362. * Makefile.in (SFILES_MAINDIR): Add ch-typeprint.c, ch-valprint.c.
  363. * Makefile.in (OBS): Add ch-typeprint.o, ch-valprint.o.
  364. * ch-typeprint.c: New file for language dependent type printing.
  365. * ch-valprint.c: New file for language dependent value printing.
  366. * ch-exp.y (parse_number): Remove prototype and stub function.
  367. * ch-exp.y (decode_integer_literal): Removed unused digits and
  368. temp variables.
  369. * ch-exp.y (convert_float): Completely ifdef out for now.
  370. * ch-exp.y (tokentab2, tokentab3, tokentab4, tokentab5),
  371. ch-lang.c (chill_op_print_tab):
  372. Change from ANSI-obsolescent "const static" to ANSI-conformant
  373. "static const".
  374. * ch-exp.y (yylex): Add unhandled storage class enumeration
  375. literals to switch statement for completeness.
  376. * ch-lang.c (chill_create_fundamental_types): Remove unused
  377. nbytes variable. Change dummy type to 2 bytes to match int.
  378. Handle FT_VOID types gratuituously added to chill DWARF by
  379. compiler. Change FT_CHAR case to generate an TYPE_CODE_CHAR
  380. type rather than a one byte TYPE_CODE_INT type.
  381. * ch-lang.c (chill_language_defn): Add chill_print_type and
  382. chill_val_print.
  383. * ch-lang.h (chill_print_type, chill_val_print): Add prototypes.
  384. Thu Dec 17 00:44:57 1992 John Gilmore (gnu@cygnus.com)
  385. Eliminate uses of NAMES_HAVE_UNDERSCORE, using
  386. bfd_get_symbol_leading_char instead.
  387. * coffread.c (EXTERNAL_NAME): New macro for removing possible
  388. leading character from names.
  389. (read_coff_symtab): Use BFD's FILE *, don't open a second one.
  390. (process_coff_symbol, coff_read_struct_type, coff_read_enum_type):
  391. Replace NAMES_HAVE_UNDERSCORE with EXTERNAL_NAME.
  392. * kdb-start.c (main): Remove NAMES_HAVE_UNDERSCORE.
  393. * minsyms.c (install_minimal_symbols): Replace NAMES_HAVE_UNDERSCORE.
  394. Remove SOME_NAMES_HAVE_DOT support (apparently unused).
  395. * partial-stab.h: Replace NAMES_HAVE_UNDERSCORE.
  396. * solib.c: Replace NAMES_HAVE_UNDERSCORE.
  397. * stabsread.h: Remove NAMES_HAVE_UNDERSCORE and HASH_OFFSET.
  398. * symfile.c (syms_from_objfile): Insert debugging check to test
  399. NAMES_HAVE_UNDERSCORE setting against the BFD support.
  400. * xm-rs6000.h (MEM_FNS_DECLARED): Update comments.
  401. * coffread.c (read_coff_symtab, C_BLOCK): Use complain() rather
  402. than error() for .bb/.eb. Bug found by Eddie Fung, <efung@cs.uq.oz.au>.
  403. Tue Dec 15 10:05:56 1992 Ian Lance Taylor (ian@cygnus.com)
  404. * coffread.c (decode_type): catch negative tagndx fields generated
  405. by SCO 3.2v4 cc.
  406. * exec.c: comment out string following #endif.
  407. * configure.in (i[34]86-*-sco3.2v4*): use host i386sco4.
  408. * xm-i386sco.h: include <sys/types.h> and <sys/dir.h>, required by
  409. <sys/user.h>.
  410. * config/i386sco4.mh: new file; like i386sco.mh, but don't require
  411. gcc, and define const to empty to avoid SCO 3.2v4 cc bug.
  412. Tue Dec 15 04:14:24 1992 Fred Fish (fnf@cygnus.com)
  413. * complaints.c: New file, code moved from utils.c.
  414. * complaints.c (complain): Made into a varargs function.
  415. * complaints.h: New file, code moved from symfile.h.
  416. * Makefile.in (SFILES_MAINDIR): Add complaints.c.
  417. * Makefile.in (HFILES): Add complaints.h.
  418. * Makefile.in (OBS): Add complaints.o.
  419. * symfile.c (complaint_root, stop_whining, complaint_series,
  420. complain, clear_complaints, add_show_from_set for stop_whining):
  421. Moved to complaints.c.
  422. * symfile.h (struct complaint, complaint_root decl, complain
  423. prototype, clear_complaints prototype): Moved to complaints.h.
  424. * buildsym.c, coffread.c, dbxread.c, dwarfread.c, elfread.c,
  425. gdbtypes.c, mipsread.c, stbsread.c, symfile.c: Include
  426. complaints.h. Remove casts from arguments to complain(),
  427. which is now a varargs function, and remove unnecessary
  428. placeholder zero args.
  429. * defs.h (begin_line): Add prototype.
  430. * defs.h (vprintf_filtered): Add prototype.
  431. * dwarfread.c (varargs.h): Remove, no longer needed.
  432. * dwarfread.c (dwarfwarn): Remove prototype and function.
  433. * dwarfread.c (complaints): Define a bunch of complaints.
  434. * dwarfread.c (SQUAWK): Remove macro defs, convert all
  435. usages to standard complain() calls.
  436. * utils.c (begin_line): New function that ensures that
  437. whatever gets filter-printed next starts on its own line.
  438. * utils.c (vprintf_filtered): New func, like vfprintf_filtered,
  439. but to stdout (calls vfprintf_filtered internally).
  440. Tue Dec 15 02:01:00 1992 John Gilmore (gnu@cygnus.com)
  441. * remote.c: Avoid printf_filtered line limit. Suggested by
  442. Robert R. Henry, <rrh@tera.com>.
  443. * infcmd.c (environment_info): Ditto, for Don Allen <allen@think.com>.
  444. * main.c (main): Accept --silent as well as --quiet. Change +help
  445. to --help. Suggested by Karl Berry, <karl@cs.umb.edu>.
  446. Mon Dec 14 23:28:15 1992 John Gilmore (gnu@cygnus.com)
  447. * tm-nindy960.h, remote-nindy.c: Lint.
  448. Mon Dec 14 18:48:52 1992 Fred Fish (fnf@cygnus.com)
  449. * gdbtypes.c (create_array_type): Complete rewrite. Now requires
  450. a optional type to decorate as an array type, the type of the
  451. index, and the bounds of the array. Records this additional info
  452. in the array type for use with languages with nonzero array
  453. bounds.
  454. * gdbtypes.h (enum type_code): Update comment for TYPE_CODE_ARRAY
  455. to note that arrays may have bounds.
  456. * gdbtypes.h (create_array_type): Update prototype.
  457. * c-exp.y (ptype production): Adjust for new create_array_type
  458. calling conventions.
  459. * coffread.c (decode_type): Call create_array_type rather than
  460. handcrafting array types.
  461. * convex-tdep.c (value_type): Remove, now use create_array_type.
  462. * convex-tdep.c (value_of_trapped_internalvar): Convert calls to
  463. vector_type into calls to create_array_type.
  464. * dwarfread.c (decode_subscr_data): Name changed to
  465. decode_subscript_data_item throughout.
  466. * dwarfread.c (decode_subscript_data_item): Rewrite to use
  467. create_array_type. Now records index type and range as well.
  468. * dwarfread.c (dwarf_read_array_type): Rewrite as part of
  469. change to use create_array_type.
  470. * dwarfread.c (read_subroutine_type): Test existing user defined
  471. types before decorating them, to ensure they are blank, and
  472. complain about it if they are not.
  473. * dwarfread.c (decode_fund_type): For unrecognized types, always
  474. return some valid type (type integer). If the unrecognized type
  475. cannot be an implementation defined type, complain as well.
  476. * m88k-tdep.c (pushed_size): Update comment for TYPE_CODE_ARRAY.
  477. * m88k-tdep.c (store_param): Update comment for TYPE_CODE_ARRAY.
  478. * mipsread.c (upgrade_type): Add FIXME comment that code to
  479. handcraft arrays should be replaced with call to create_array_type.
  480. * stabsread.c (read_array_type): Replace code to handcraft
  481. array types with call to create_array_type.
  482. * valprint.c (type_print_varspec_prefix): Minor formatting
  483. change, join lines that don't need to be split.
  484. Mon Dec 14 17:18:42 1992 Stu Grossman (grossman at cygnus.com)
  485. * convex-xdep.c, hppab-nat.c, infptrace.c: Remove
  486. decl for attach_flag, it now lives in inferior.h.
  487. * hppa-pinsn.c: Reformat opcode tables. Add function prototypes.
  488. Make most functions static.
  489. * hppah-nat.c: General cleanups, remove BSD specific code (since
  490. that all lives in hppab-nat.c).
  491. * hppah-tdep.c (frame_chain_valid), tm-hppa.h (FRAME_CHAIN):
  492. Change sense of test against inside_entry_file(). This fix is
  493. from U. of Utah.
  494. * tm-hppa.h (PUSH_DUMMY_FRAME, POP_FRAME): Use char * for 2nd arg
  495. to read/write_register_bytes().
  496. * gdbtypes.h: Remove const from decl for cplus_struct_default to
  497. work around PA-GAS assembler bug. Also, add trailing */ to some
  498. comments.
  499. * gdbtypes.c: Remove const from decl for cplus_struct_default.
  500. Same reason as above.
  501. Wed Dec 9 19:53:25 1992 John Gilmore (gnu@cygnus.com)
  502. * mipsread.c (parse_symbol): When checking whether a structured
  503. type is an enum, check qualifiers of its first member, as well as
  504. the base type of the member. Bug found and fixed by John M.
  505. Farrell, <farrell@fjord.reo.dec.com>.
  506. * vx-share/{reg.h,xdr_regs.h,xdr_regs.c}: Remove, unused.
  507. * remote-vx.c: Don't include vx-share/reg.h.
  508. * vx-share/ptrace.h: Reproduce from scratch.
  509. * config/{vxworks68,vxworks960}: Don't include xdr_regs.o.
  510. * Makefile.in: Remove references to removed files, and to removed
  511. 29k-share directories.
  512. Tue Dec 8 13:30:58 1992 Fred Fish (fnf@cygnus.com)
  513. * c-lang.c (_initialize_c_language): Name changed from
  514. _initialize_c_exp.
  515. * m2-lang.c (_initialize_m2_language): Name changed from
  516. _initialize_m2_exp.
  517. * m2-lang.c (_initialize_m2_language): Change malloc to xmalloc since
  518. it is no longer inside m2-exp.y, where it was remapped by Makefile.
  519. * c-exp.y, m2-exp.y: Migrate code that has nothing to do with
  520. expression parsing into c-lang.c and m2-lang.c respectively.
  521. * c-lang.c, m2-lang.c: New files, code migrated from c-exp.y and
  522. m2-exp.y respectively.
  523. * c-lang.h, m2-lang.h: New files, internal interfaces between c-*
  524. and m2-* files respectively.
  525. * Makefile.in (SFILES_MAINDIR): Add c-lang.c, m2-lang.c.
  526. * Makefile.in (HFILES): Add c-lang.h, m2-lang.h.
  527. * Makefile.in (OBS): Add c-lang.o, m2-lang.o.
  528. * expression.h (struct block): Forward declaration for prototypes.
  529. * language.h (struct objfile): Forward declaration for prototypes.
  530. * Makefile.in (SFILES_MAINDIR): Add ch-lang.c.
  531. * Makefile.in (HFILES): Add ch-lang.h.
  532. * Makefile.in (OBS): Add ch-lang.o.
  533. * ch-exp.y: Migrate code that has nothing to do with expression
  534. parsing into ch-lang.c.
  535. * ch-lang.c: New file, code migrated from c-exp.y.
  536. * ch-lang.h: New file, internal interface between ch-* files.
  537. * ch-lang.c (_initialize_chill_language): Name changed from
  538. _initialize_chill_exp.
  539. Changes for Amiga Unix from rhealey@ub.d.umn.edu.
  540. * config/amix.mh (NAT_FILE): Add, set to nm-sysv4.h.
  541. * config/amix.mh (NATDEPFILES): Add.
  542. * config/amix.mh (XDEPFILES): Move procfs.o and fork-child.o
  543. to NATDEPFILES.
  544. * dwarfread.c (decode_subscr_data): Remove spurious test that
  545. accepted only integer subscript types. We don't do anything
  546. with the type at the moment anyway.
  547. Fri Dec 4 06:56:56 1992 Fred Fish (fnf@cygnus.com)
  548. * ch-exp.y (match_character_literal): Fix case where no
  549. match at all is found.
  550. * ch-exp.y (chill_create_fundamental_type): Chill uses fixed
  551. width types. For example, "INT" is always 2 bytes regardless
  552. of the values of any TARGET_*_BIT macros. So use explicit
  553. numeric sizes for the types.
  554. Thu Dec 3 12:00:06 1992 Fred Fish (fnf@cygnus.com)
  555. * c-exp.y (c_create_fundamental_type): New function to create
  556. language specific fundamental types for C.
  557. * m2-exp.y (m2_create_fundamental_type): New function to create
  558. language specific fundamental types for Modula 2.
  559. * c-exp.y (c_language_defn, cplus_language_defn): Add
  560. c_create_fundamental_type to language struct initializers.
  561. * m2-exp.y (m2_language_defn): Add m2_create_fundamental_type
  562. to language struct initializers.
  563. * dwarfread.c (expression.h, language.h): Include.
  564. * dwarfread.c (ftypes): New array to hold fundamental types
  565. for current compilation unit.
  566. * dwarfread.c (cu_language_defn): New pointer to language
  567. struct for language of current compilation unit.
  568. * dwarfread.c (dwarf_fundamental_type): New function to
  569. create/lookup fundamental types.
  570. * dwarfread.c (set_cu_language): Initialize cu_language_defn.
  571. * dwarfread.c (throughout): Replace lookup_fundamental_type
  572. with dwarf_fundamental_type.
  573. * dwarfread.c (read_file_scope): Zero out ftypes for each new
  574. compilation unit (may be different language or different objfile).
  575. * gdbtypes.c (lookup_fundamental_type): Move actual type
  576. creations into language specific fundamental type creation
  577. functions and call via create_fundamental_type. Add comment
  578. about this function being obsolescent.
  579. * gdbtypes.h (FT_BYTE, FT_UNSIGNED_BYTE): New types, true byte
  580. sized signed and unsigned integers.
  581. * gdbtypes.h (FT_NUM_MEMBERS): Increment, new types added.
  582. * language.c (language_def): New function to lookup a language
  583. struct given it's enumeration.
  584. * language.h (struct language_defn): Add la_fund_type, a pointer
  585. to a function that creates fundamental types for this language.
  586. * language.h (create_fundamental_type): New macro to create
  587. fundamental types based on the current language.
  588. * language.h (language_def): Add prototype.
  589. * language.c (unk_lang_create_fundamental_type): New function
  590. for initializing language structs, calls error if called.
  591. * language.c (unk_language_defn, auto_language_defn,
  592. local_language_defn): Use unk_lang_create_fundamental_type.
  593. ch-exp.y (chill_create_fundamental_type): New function.
  594. ch-exp.y (chill_language_defn): Add chill_create_fundamental_type.
  595. ch-exp.y (_initialize_chill_exp): BOOL types are only one byte.
  596. Tue Dec 1 17:07:31 1992 Fred Fish (fnf@cygnus.com)
  597. * dwarfread.c (CHILL_PRODUCER): Add producer string for
  598. GNU chill.
  599. * dwarfread.c (handle_producer): Test CHILL_PRODUCER as well
  600. as GCC_PRODUCER and GPLUS_PRODUCER.
  601. Mon Nov 30 18:46:58 1992 Stu Grossman (grossman at cygnus.com)
  602. * remote-udi.c (udi_wait): Don't stop if TIP says that remote is
  603. still running.
  604. Mon Nov 30 12:00:25 1992 Fred Fish (fnf@cygnus.com)
  605. * tm-sun4sol2.h: Add CPLUS_MARKER. Solaris 2.0 requires '.'
  606. rather than '$'. This particular piece of braindamage is
  607. spreading like ooze. It's now infected libiberty, deja-gnu,
  608. gdb, and gcc.
  609. * values.c (baseclass_addr): Use CPLUS_MARKER rather than
  610. hardwired '$' character.
  611. Sun Nov 29 15:22:42 1992 Fred Fish (fnf@cygnus.com)
  612. (Changes to break incredibly ugly, unmaintainable 750 line
  613. read_struct_type function up into managable pieces.)
  614. * Makefile.in (VERSION): Bump to 4.7.3.
  615. * stabsread.c (struct field_info): Local struct definition.
  616. * stabsread.c (read_member_functions, read_struct_fields,
  617. read_baseclasses, read_tilde_fields, attach_fn_fields_to_type,
  618. attach_fields_to_type, read_cpp_abbrev): Prototypes and new
  619. functions from fragmented read_struct_type.
  620. * stabsread.c (stabs_general_complaint): Catchall complaint.
  621. * stabsread.c (STABS_CONTINUE): Macro'ize cretinous stabs
  622. symbol name continuation code. Use macro throughout.
  623. * stabsread.c (various places): Replace add-one-to-pointer
  624. with pointer increment.
  625. * stabsread.c (read_type): Retain function local copy of type
  626. descriptor. Rearrange code calling read_struct_type() to match
  627. new conventions.
  628. * stabsread.c (define_symbol): For the sake of dbx, gcc emits
  629. a single blank as the name of nameless enumerations. Recognize
  630. this special case and set nameless flag.
  631. * ch-exp.y (GENERAL_PROCEDURE_NAME, LOCATION_NAME): New
  632. terminal tokens.
  633. * ch-exp.y (access_name): New non-terminal token and
  634. production.
  635. * ch-exp.y (general_procedure_name): Now a terminal token.
  636. * ch-exp.y (location): Expand production.
  637. * ch-exp.y (match_simple_name_string): New function.
  638. * ch-exp.y (yylex): Call match_simple_name_string and return
  639. GENERAL_PROCEDURE_NAME or LOCATION_NAME as appropriate.
  640. Wed Nov 25 07:17:13 1992 Fred Fish (fnf@cygnus.com)
  641. * munch: Backslash escape vertical bar characters inside
  642. grep patterns since they have special meaning for some greps.
  643. * parse.c (write_exp_string): Complete rewrite to store string
  644. contants as a leading explicit length, followed by the string data,
  645. followed by a trailing explicit length.
  646. * eval.c (evaluate_subexp), expprint.c (print_subexp),
  647. parse.c (length_of_subexp), parse.c (prefixify_subexp):
  648. Use recorded explicit length of strings in expression elements,
  649. rather than strlen. Adjust code to skip over strings stored in
  650. expression elements, and code to access strings, to account for
  651. new leading explicit size expression element.
  652. * parse.c (length_of_subexp): Test for minimum endpos of 1, not
  653. 0, to avoid negative expression element indices.
  654. * valops.c (search_struct_method): Minor whitespace change.
  655. Mon Nov 23 11:14:15 1992 Fred Fish (fnf@cygnus.com)
  656. * c-exp.y (yylex): Add tempbuf, tempbufindex, and tempbufsize,
  657. which together maintain a dynamically expandable static buffer
  658. for the lexer to use when translating C strings to their internal
  659. form (other future uses possible). Fix parsing of C style strings
  660. to do the normal C style input conversions of escaped character
  661. sequences.
  662. * valops.c (value_string): Remove translation of escaped
  663. character sequences, now done in C expression parser.
  664. * language.h (PRINT_LITERAL_FORM): New macro that takes character
  665. and decides if it should be printed in literal form or some other
  666. form, based on it's ASCII value and setting of sevenbit_strings.
  667. * {c-exp.y, m2-exp.y} (emit_char): Use new PRINT_LITERAL_FORM
  668. macro, change indentation style.
  669. * ch-exp.y (chill_printchar): Use new PRINT_LITERAL_FORM macro.
  670. * ch-exp.y (chill_printstr): First cut at real function instead
  671. of error stub.
  672. Sun Nov 22 16:21:41 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
  673. * nindy-share/stop.h: fixed bogus comment-end in copyright message
  674. * i960-pinsn.c: fixed two calls of fputs_filtered that had 3 arguments
  675. Fri Nov 20 21:35:57 1992 Fred Fish (fnf@cygnus.com)
  676. * defs.h (sevenbit_strings): Add declaration.
  677. * defs.h (printchar): Replace with gdb_printchar.
  678. * language.h (language_defn): Add new function pointers
  679. la_printchar and la_printstr, to do language dependent
  680. printing of characters and strings.
  681. * language.h (local_printchar, local_printstr): New macros
  682. to call language dependent functions pointed to by la_printchar
  683. and la_printstr respectively.
  684. * c-exp.y (emit_char, c_printchar, c_printstr): New language
  685. dependent functions for printing characters and strings.
  686. * c-exp.y (c_language_defn, cplus_language_defn): Add
  687. c_printchar and c_printstr.
  688. * command.c (do_setshow_command): Rename printchar use to
  689. gdb_printchar.
  690. * expprint.c (print_subexp): Replace C style string output
  691. with call to local_printstr.
  692. * language.c (unk_lang_printchar, unk_lang_printstr):
  693. New stubs, currently errors.
  694. * language.c (unknown_language_defn, auto_language_defn,
  695. local_language_defn): Add unk_lang_printchar and
  696. unk_lang_printstr.
  697. * m2-exp.y (emit_char, m2_printchar, m2_printstr): New
  698. language dependent functions to print characters and strings.
  699. * m2-exp.y (m2_language_defn): Add m2_printchar and m2_printstr.
  700. * utils.c (printchar): Renamed to gdb_printchar.
  701. * valprint.c (print_string): Remove prototype, function moved
  702. to c-exp.y, where it becomes c_printstr.
  703. * valprint.c (print_max): Made global for reference from the
  704. language dependent printing routines in *-exp.y.
  705. * valprint.c (repeat_count_threshold): New variable with function
  706. of old REPEAT_COUNT_THREHOLD define, but now settable by user.
  707. Change all references to old macro to references to new variable.
  708. * valprint.c (value_print, val_print): Replace calls to
  709. print_string with calls to local_printstr.
  710. * valprint.c (val_print): Replace C style character printing
  711. with call to local_printchar.
  712. * valprint.c (val_print): Add case for TYPE_CODE_CHAR.
  713. * valprint.c (_initialize_valprint): Add add_show_from_set
  714. call for setting up repeat_count_threshold as print variable.
  715. * ch-exp.y (decode_integer_value): New function.
  716. * ch-exp.y (decode_integer_literal): Use decode_integer_value.
  717. * ch-exp.y (chill_printchar, chill_printstr): New language
  718. dependent functions for printing characters and strings.
  719. * ch-exp.y (chill_language_defn): Add chill_printchar and
  720. chill_printstr.
  721. Thu Nov 19 21:22:21 1992 John Gilmore (gnu@cygnus.com)
  722. * main.c (main): Print GDB version number in gdb -help; doc pid arg.
  723. Suggested by Marty Leisner, <leisner@eso.mc.xerox.com>.
  724. (print_gdb_version): New arg is stdout or stderr. Callers changed.
  725. Wed Nov 18 15:05:45 1992 Ian Lance Taylor (ian@cygnus.com)
  726. * remote-vx.c (vx_kill): just warn if we can't contact the board,
  727. and assume the process has been killed.
  728. Wed Nov 18 14:39:57 1992 Stu Grossman (grossman at cygnus.com)
  729. * remote-udi.c (udi_open): Reset vars so that user can re-run
  730. programs without leaving GDB.
  731. * (many routines): Slightly improve error handling.
  732. * (download): Zero out BSS by longs instead of bytes to avoid
  733. timeouts in real hardware.
  734. * 29k-share/udi/udip2soc.c (UDIDisconnect, UDIKill): Indicate
  735. that connection is no longer in use after shutdown() of socket.
  736. This keeps GDB from dying of a SIGPIPE when you issue multiple
  737. `target udi' commands.
  738. Wed Nov 18 14:27:47 1992 Fred Fish (fnf@cygnus.com)
  739. * language.h (language_format_info): New structure to bundle
  740. local formatting information.
  741. * language.h (language_defn): Replace individual format info
  742. with language_format_info structs.
  743. * language.h (local_*_format, local_*_format_prefix,
  744. local_*_format_specifier, local_*_format_suffix): New macros
  745. for binary/octal/decimal/hex formats to access info elements.
  746. * c-exp.y (c_language_defn): Update for new format handling.
  747. * m2-exp.y (m2_language_defn): Update for new format handling.
  748. * dbxread.c (language.h): Include for partial-stab.h use.
  749. * mipsread.c (expression.h, language.h): Include for
  750. partial-stab.h use.
  751. * defs.h (local_hex_format, local_hex_format_custom,
  752. local_hex_string, local_hex_string_custom): Move to language.h.
  753. * language.c (local_hex_format_custom, local_hex_string,
  754. local_hex_string_custom, local_octal_format_custom): Use new
  755. format handling.
  756. * language.c (unknown_language_defn, auto_language_defn,
  757. local_language_defn): Update for new format handling.
  758. * printcmd.c (print_scalar_formatted): Use new macros
  759. to access decimal and binary format info for printing.
  760. * c-exp.y (chill_language_defn): Update for new format handling.
  761. * ch-exp.y (CHARACTER_LITERAL): Add support to yylex.
  762. * ch-exp.y (decode_integer_literal): Add function
  763. * ch-exp.y (match_integer_literal): Use decode_integer_literal.
  764. * ch-exp.y (builtin_type_chill_char): Add definition.
  765. * gdbtypes.h (builtin_type_chill_char): Add declaration.
  766. Tue Nov 17 11:17:06 1992 Ian Lance Taylor (ian@cygnus.com)
  767. * tm-rs6000.h (BELIEVE_PCC_PROMOTION): Define, since AIX cc gets
  768. it right.
  769. (aix_framedata): added nosavedpc field.
  770. (SAVED_PC_AFTER_CALL): Don't try to optimize; just call
  771. read_register.
  772. (FRAMELESS_FUNCTION_INVOCATION): Pass second argument of 0.
  773. (FRAME_SAVED_PC): If PC not saved, use SAVED_PC_AFTER_CALL.
  774. * rs6000-tdep.c (skip_prologue): Handle gcc generated stfd
  775. instructions as function_frame_info does. Expand special case of
  776. st r31,-4(r1) to be st r31,NUM(r1), since gcc can generate offsets
  777. other than -4.
  778. (pop_frame): Add 4 rather than sizeof (int) to avoid host
  779. dependence.
  780. (function_frame_info): Set frameless if the function has no frame,
  781. and set nosavedpc if the PC was not saved. Handle gcc generated
  782. stfd 31,-4(31); st 31, -12(31) correctly.
  783. (frameless_function_invocation): New second argument pcsaved; if 0
  784. return whether the function has a frame, if 1 return whether the
  785. function saved PC.
  786. (frame_initial_stack_address): Correct typo: cache registers for
  787. callee_fi, not for fi, (avoids reading garbage memory locations).
  788. Mon Nov 16 15:58:07 1992 Stu Grossman (grossman at cygnus.com)
  789. * infrun.c (wait_for_inferior (just before step_over_function
  790. label)): Change test for stepping into subroutine to check for the
  791. presence of line number info. This makes stuff compiled with -g1
  792. cause GDB to not lose control when stepping.
  793. * symtab.c (find_pc_line): Improve code per gnu's suggestions.
  794. Improve comments as well.
  795. Sun Nov 15 09:22:09 1992 Fred Fish (fnf@cygnus.com)
  796. * Makefile.in (VERSION): Bump to 4.7.2
  797. * symtab.c (find_pc_symtab): Fix return of random value
  798. to caller.
  799. * Makefile.in (c-exp.tab.c, m2-exp.tab.c): Add dependency on
  800. Makefile since it contains sed patterns used in generation.
  801. Add sed pattern to also delete #include of any malloc.h.
  802. * c-exp.y, expr.c, expression.h, language.c, m2-exp.y,
  803. parser-defs.h, valarith.c, valops.c, value.h: Remap macros and
  804. function names to conform to K&R terminology with respect to
  805. logical and bitwise operators:
  806. UNOP_ZEROP => UNOP_LOGICAL_NOT
  807. UNOP_LOGNOT => UNOP_COMPLEMENT
  808. BINOP_LOGAND => BINOP_BITWISE_AND
  809. BINOP_LOGXOR => BINOP_BITWISE_XOR
  810. BINOP_LOGIOR => BINOP_BITWISE_IOR
  811. BINOP_AND => BINOP_LOGICAL_AND
  812. BINOP_OR => BINOP_LOGICAL_OR
  813. PREC_OR => PREC_LOGICAL_OR
  814. PREC_AND => PREC_LOGICAL_AND
  815. PREC_LOGIOR => PREC_BITWISE_IOR
  816. PREC_LOGXOR => PREC_BITWISE_XOR
  817. PREC_LOGAND => PREC_BITWISE_AND
  818. value_zerop() => value_logical_not()
  819. value_lognot() => value_complement()
  820. * c-exp.y (c_op_print_tab): Add explicit empty terminator.
  821. * m2-exp.y (m2_op_print_tab): Add explicit empty terminator.
  822. * i387-tdep.c (sys/dir.h): Remove, appears to be unnecessary
  823. and is nonexistant in some SVR4 based systems.
  824. * language.c (DEFAULT_ALLOCSIZE): Change from 3 => 4.
  825. * m2-exp.y (number_sign, modblock): Make static, #ifdef out
  826. unused modblock.
  827. * m2-exp.y (ANDAND): Rename to LOGICAL_AND.
  828. * source.c (source_info): Fix minor nits, print "1 line" rather
  829. than "1 lines", and "language is <lang>".
  830. * valarith.c (value_binop): Handle TYPE_CODE_BOOL as well
  831. as TYPE_CODE_INT and TYPE_CODE_FLOAT.
  832. * valprint.c (val_print): Print TYPE_CODE_BOOL type values as
  833. "TRUE" or "FALSE".
  834. * values.c (value_from_longest): Handle TYPE_CODE_BOOL.
  835. * ch-exp.y: New expression parser, for GNU-Chill.
  836. * defs.h (enum language): Add language_chill.
  837. * dwarfread.c (set_cu_language): Add LANG_CHILL case and make
  838. LANG_MODULA2 a recognized language.
  839. * gdbtypes.h (enum_typecode): Note TYPE_CODE_BOOL used for
  840. Chill as well as Modula-2.
  841. * gdbtypes.y (builtin_type_chill_bool, builtin_type_chill_long,
  842. builtin_type_chill_ulong, builtin_type_chill_real): Add.
  843. * language.c (set_language_command): Add chill.
  844. * language.c (binop_result_type, integral_type, character_type,
  845. boolean_type, structured_type, value_true, binop_type_check):
  846. Add language_chill cases.
  847. * language.h (_LANG_chill): Define.
  848. * symfile.c (deduce_language_from_filename): Recognize the
  849. filename extensions ".chill", ".c186", and ".c286" for Chill.
  850. * valprint.c (typedef_print): Add case for language_chill.
  851. * Makefile.in (SFILES_MAINDIR): Add ch-exp.y.
  852. * Makefile.in (YYFILES): Add ch-exp.tab.c.
  853. * Makefile.in (YYOBJ): Add ch-exp.tab.o.
  854. * Makefile.in (saber_gdb): Add unload of ch-exp.y and load
  855. of ch-exp.tab.c.
  856. * Makefile.in (distclean): Add target ch-exp.tab.c.
  857. * Makefile.in (realclean): Add rm of ch-exp.tab.c.
  858. * Makefile.in (ch-exp.tab.o, ch-exp.tab.c): New targets.
  859. * eval.c (evaluate_subexp): Add OP_BOOL case.
  860. * expprint.c (print_subexp): Add OP_BOOL case.
  861. Fri Nov 13 20:36:28 1992 John Gilmore (gnu@cygnus.com)
  862. * infcmd.c (set_environment_command): Avoid skipping first
  863. char of env value if an '=' appears in it. Bug report and fix
  864. by Mark Jungerman, <maj@lucid.com>.
  865. Fri Nov 13 20:24:10 1992 Stu Grossman (grossman at cygnus.com)
  866. * infcmd.c (step_over_calls): Improve comments.
  867. * symtab.c (find_pc_psymtab): Clean up a bit.
  868. * (find_pc_symtab): Fix comments, clean up code.
  869. * (find_pc_line): General cleanups, efficiency improvements.
  870. Also, don't return garbage when some line info exists, but there
  871. was no good match.
  872. Thu Nov 5 23:04:38 1992 Rob Ryan (rr2b@andrew.cmu.edu)
  873. * xcoffexec.c (vmap_symtab): fixed a bug where if a object has no
  874. member, and the stat pointer passed to vmap_symtab was NULL, the
  875. wrong vmap entries would be modified. Fixes behavior where
  876. attempting to load symbols for a module with no member would mess
  877. up already read in symbols.
  878. Wed Nov 11 17:09:17 1992 Stu Grossman (grossman at cygnus.com)
  879. * Makefile.in: Remove dependancies for 29k-share/dfe/yank.o and
  880. 29k-share/dfe/mini2udi.o.
  881. * config/a29k-udi.mt: Remove yank.o and mini2udi.o.
  882. * alldeps.mak, depend: Update to deal with removal of
  883. aforementioned files.
  884. * remote-udi.c: Major cleanups. Clean up udi_open and drop
  885. requirement for useless 'program' argument. Clean up
  886. udi_create_inferior, and udi_load to call common download()
  887. routine. Create download routine to load remote hosts directly
  888. (with the help of BFD) so that we don't need yank.c and
  889. mini2udi.c.
  890. Fix udi_detach to call UDIDisconnect with
  891. the right arguments. Clean up udi_resume, don't assign tip_error
  892. twice. Clean up udi_wait, straighten out status codes. Make
  893. udi_kill really work.
  894. Fri Nov 6 10:26:01 1992 Steve Chamberlain (sac@thepub.cygnus.com)
  895. * c-exp.y: separated host/target idea of integer type size,
  896. removed redundant parse rules. (YYSTYPE): added typed_val, removed
  897. UINT and CHAR rules. (parse_number): work out the targetwise type
  898. of a number based upon it's size and qualifiers. (yylex): chars
  899. are now treated the same way as ints.
  900. * source.c (indentify_source_line): don't core dump if wanted
  901. line is larger than number of lines in source. (can happen when
  902. coff gets confused about #included source).
  903. Fri Nov 6 03:00:39 1992 John Gilmore (gnu@cygnus.com)
  904. Fix problems noticed by Allan Steel, <allan@maths.su.oz.au>,
  905. when debugging a program with 100 shared libraries.
  906. * solib.c (solib_map_sections): Always close the BFD we open.
  907. Free all malloc'd storage we allocate, too, including error cases.
  908. (struct so_list): Remove unused so_bfd member.
  909. (clear_solib): Don't bother closing so_bfd.
  910. * symfile.c (symfile_bfd_open): Mark newly opened BFD as
  911. cacheable. `So many symbol files, so little file descriptors.'
  912. Fri Nov 6 00:14:38 1992 John Gilmore (gnu@cygnus.com)
  913. * m68k-stub.c: Remove ansidecl.h and the few uses of it.
  914. Stubs should stand alone as much as possible.
  915. * source.c (show_directories): Avoid printf_filtered length prob
  916. pointed out by Jonathan Stone.
  917. * i960-pinsn.c (MEM_MAX, MEM_SIZ): Set upper limit properly to
  918. avoid accesses beyond end of table. Fix by Lee W. Cooprider,
  919. <Lee_Cooprider@vos.stratus.com>.
  920. Thu Nov 5 17:33:08 1992 Fred Fish (fnf@cygnus.com)
  921. * {ser-bsd.c, ser-termios.c} (serial_close): Pass address of
  922. struct, not struct itself.
  923. * serial.h (serial_restore): Fix prototype, takes pointer not
  924. struct.
  925. Thu Nov 5 17:12:42 1992 Stu Grossman (grossman at cygnus.com)
  926. * Makefile.in (depend): Add nm.h to the list of things to fixup.
  927. * depend: Redo, to fixup nm.h problems with *-tab.c files.
  928. Thu Nov 5 00:19:51 1992 John Gilmore (gnu@cygnus.com)
  929. * i386-stub.c: Remove ansidecl.h and the few uses of it.
  930. Stubs should stand alone as much as possible.
  931. * README: Add remote-es1800.c and remote-st2000.c to table.
  932. * go32-nat.c: Remove, there is no native go32 support.
  933. * go32-xdep.c: Remove unused fork, fvork, wait, execlp, kill_inferior.
  934. Wed Nov 4 15:27:31 1992 Stu Grossman (grossman at cygnus.com)
  935. * inflow.c (pass_signal, set_sigint_trap, clear_sigint_trap): Add
  936. new routines to deal with sending SIGINTs to attached processes
  937. when the user interrupts the controlling GDB.
  938. * inftarg.c (child_wait), procfs.c (procfs_wait): Add calls to
  939. the aforementioned routines when waiting for the attached process.
  940. * elfread.c, mipsread.c: Include <string.h>.
  941. * i386-stub.c: Include "ansidecl.h" to deal with prototypes.
  942. * serial.h: Add prototype for serial_restore().
  943. Wed Nov 4 11:13:25 1992 Ian Lance Taylor (ian@cygnus.com)
  944. * minsyms.c (lookup_minimal_symbol_by_pc): subtract 1, not 2, from
  945. minimal_symbol_count, because the NULL symbol is not included in
  946. the count. This prevented this function from finding the last
  947. symbol in the table.
  948. Tue Nov 3 11:29:17 1992 Ian Lance Taylor (ian@cygnus.com)
  949. * dbxread.c (process_one_symbol): if not defined
  950. (BLOCK_ADDRESS_FUNCTION_RELATIVE), set function_start_offset at
  951. the start of the function, not just after N_FUN.
  952. Fri Oct 30 16:33:02 1992 Fred Fish (fnf@cygnus.com)
  953. * Makefile.in (c-exp.tab.c, m2-exp.tab.c): Add sed patterns to
  954. remap all malloc's to xmalloc's and all realloc's to xrealloc's.
  955. * c-exp.y, m2-exp.y: Add comment about how malloc/realloc are
  956. remapped to xmalloc/xrealloc, use only malloc/realloc in grammer
  957. file. Remove preprocessor defines that previously did remapping.
  958. Fri Oct 30 00:58:18 1992 John Gilmore (gnu@cygnus.com)
  959. * infcmd.c (run_command): Avoid long calls to printf_filtered.
  960. Bug fix courtesy of Alexander Klaiber.
  961. Tue Oct 27 17:08:45 1992 K. Richard Pixley (rich@cygnus.com)
  962. hp300 native support (hp300hpux untested).
  963. * hp300ux-xdep.c: removed.
  964. * xm-hp300bsd.h (REGISTER_U_ADDR): removed.
  965. * xm-hp300hpux.h: updated copyright.
  966. (ATTACH_DETACH, FETCH_INFERIOR_REGISTERS): removed.
  967. * nm-hp300bsd.h, nm-hp300hpux.h, hp300ux-nat.c: new files.
  968. * Makefile.in (HFILES): added nm-hp300bsd.h and nm-hp300hpux.h.
  969. * config/hp300bsd.mh (XDEPFILES): removed infptrace.o inftarg.o
  970. fork-child.o coredep.o corelow.o.
  971. (NAT_FILE, NATDEPFILES): new macros.
  972. * config/hp300bsd.mt (TDEPFILES): removed exec.o.
  973. * config/hp300hpux.mh (XDEPFILES): removed infptrace.o inftarg.o
  974. fork-child.o.
  975. (NAT_FILE, NATDEPFILES): new macros.
  976. * config/hp300hpux.mt (TDEPFILES): removed exec.o.
  977. Vax ultrix native support.
  978. * nm-vax.h: new file.
  979. * Makefile.in (HFILES): added nm-vax.h.
  980. * config/vaxult.mh (XDEPFILES): infptrace.o inftarg.o fork-child.o
  981. coredep.o corelow.o removed.
  982. (NAT_FILE, NATDEPFILES): new macros.
  983. * xm-vax.h: updated copyright.
  984. (REGISTER_U_ADDR): removed.
  985. Apollo native support (untested).
  986. * Makefile.in (HFILES): added nm-apollo68[bv].h.
  987. * a68v-nat.c, nm-apollo68[bv].h: new files.
  988. * xm-apollo68[bv].h (FETCH_INFERIOR_REGISTERS): removed.
  989. * xm-apollo68b.h (PTRACE_IN_WRONG_PLACE): removed.
  990. * a68v-xdep.c: removed.
  991. * config/apollo68[bv].mh (XDEPFILES): removed infptrace.o
  992. inftarg.o fork-child.o a68v-xdep.o.
  993. (NAT_FILE, NATDEPFILES): new macros.
  994. * defs.h: include nm.h.
  995. * coredep.c, infptrace.c, procfs.c, rs6000-nat.c, sparc-nat.c,
  996. sparc-tdep.c, : do not include nm.h.
  997. Fri Oct 23 04:47:17 1992 Stu Grossman (grossman at cygnus.com)
  998. * Makefile.in (VERSION): 4.7.1 post release!
  999. * config/hppahpux.mh (NATDEPFILES): Add hppah-nat.o.
  1000. Fri Oct 23 00:48:08 1992 John Gilmore (gnu@cygnus.com)
  1001. * Makefile.in (VERSION): gdb-4.7 release.
  1002. * README: Update for gdb-4.7.
  1003. Thu Oct 22 11:24:18 1992 Stu Grossman (grossman at cygnus.com)
  1004. * sparc-tdep.c: include nm.h (for now) so that we get USE_PROC_FS
  1005. when necessary.
  1006. * alldeps.mak, depend: Update.
  1007. Thu Oct 22 03:14:36 1992 John Gilmore (gnu@cygnus.com)
  1008. * partial-stab.h ('f', 'F'): Don't reference pst->textlow if pst
  1009. is null.
  1010. * tm-sun4sol2.h (PROLOGUE_FIRSTLINE_OVERLAP): Remove -- it
  1011. causes problems in setting breakpoint in the right place in
  1012. functions with `float' args which are passed as doubles.
  1013. * xm-vaxbsd.h (MEM_FNS_DECLARED): Avoid erroneous redecl's.
  1014. * config/rs6000.mh (NATDEPFILES): Add corelow.o.
  1015. Thu Oct 22 01:01:24 1992 Stu Grossman (grossman at cygnus.com)
  1016. * Makefile.in (HFILES): Add nm-i386sco.h.
  1017. * dwarfread.c: include <sys/types.h> for SCO.
  1018. * infptrace.c: Don't include ptrace.h under SCO.
  1019. * config/i386sco.mh: Use -D_POSIX_SOURCE instead of -posix for
  1020. gcc.
  1021. * config/i386v.mt: Add exec.o to TDEPFILES.
  1022. Wed Oct 21 19:08:20 1992 Stu Grossman (grossman at cygnus.com)
  1023. * i386v-nat.c: Remove space from front of #endif.
  1024. * irix4-nat.c: Remove externs of registers[], include inferior.h
  1025. instead.
  1026. * mips-nat.c: Explicitly initialize zerobuf to 0!
  1027. * mips-tdep.c (init_extra_frame_info): Undo John's last change.
  1028. Always setup fci->frame, even if it's non-zero. Too many places
  1029. depend upon this behavior (and I have to get a release out the
  1030. door)!
  1031. * mipsread.c (parse_partial_symbols, psymtab_to_symtab_1): Set
  1032. processing_gcc_compilation if we find the embedded stabs marker.
  1033. This fixes several bugs with finding the location of short or char
  1034. function parameters passed on the stack.
  1035. Wed Oct 21 17:46:07 1992 K. Richard Pixley (rich@sendai.cygnus.com)
  1036. Native support for sun4sol2.
  1037. * xm-sysv4.h (USE_PROC_FS, ATTACH_DETACH): removed to nm-sysv4.h.
  1038. * nm-sysv4.h: new file.
  1039. * Makefile.in (HFILES): added nm-sysv4.h.
  1040. * config/sun4sol2.mh (XDEPFILES): removed procfs.o fork-child.o.
  1041. (NAT_FILE, NATDEPFILES): new macros.
  1042. * config/sun4sol2.mt (TDEPFILES): removed exec.o and solib.o.
  1043. Wed Oct 21 03:51:01 1992 John Gilmore (gnu@cygnus.com)
  1044. * coredep.c: Include "nm.h" to get REGISTER_U_ADDR.
  1045. * Makefile.in (VERSION): Tick to 4.6.9.
  1046. Tue Oct 20 23:27:56 1992 John Gilmore (gnu@cygnus.com)
  1047. * mipsread.c (UNSAFE_DATA_ADDR): Remove MIPS-host-specific
  1048. definition, replace with portable one.
  1049. * remote-nindy.c: Lint.
  1050. (nindy_wait): Return type is int, result is inferior_pid.
  1051. * symmisc.c (dump_psymtab): Only print section_offsets if set.
  1052. (initialize_symmisc): Remove empty function.
  1053. * tm-spc-noun.h, tm-sun4os4.h, tm-sun4sol2.h (STACK_END_ADDRESS):
  1054. Remove obsolete, misspelled macro.
  1055. Wed Oct 21 00:14:34 1992 Stu Grossman (grossman at cygnus.com)
  1056. * mips-nat.c (zerobuf): Get rid of const to avoid gcc warnings.
  1057. * xm-mips.h (offsetof): Don't define this if __STDC__.
  1058. Tue Oct 20 21:32:18 1992 K. Richard Pixley (rich@sendai.cygnus.com)
  1059. umax native support (untested).
  1060. * config/umax.mh (XDEPFILES): removed infptrace.o inftarg.o
  1061. fork-child.o.
  1062. (NAT_FILE, NATDEPFILES): new macros.
  1063. * config/umax.mt (TDEPFILES): removed exec.o.
  1064. * xm-umax.h (U_REGS_OFFSET, ATTACH_DETACH, REGISTER_U_ADDR):
  1065. removed to nm-umax.h.
  1066. * nm-umax.h: new file.
  1067. * Makefile.in (HFILES): added nm-umax.h.
  1068. hppa native support (untested).
  1069. * config/hppahpux.mh, config/hppabsd.mh (XDEPFILES): now empty.
  1070. (NAT_FILE, NATDEPFILES): new macros.
  1071. * config/hppabsd.mt (TDEPFILES): removed exec.o and hppab-core.o.
  1072. * config/hppahpux.mt (TDEPFILES): removed exec.o.
  1073. * xm-hppa[bh].h (REGISTER_U_ADDR, U_REGS_OFFSET): removed.
  1074. * nm-hppa[bh].h, hppa[bh]-nat.c: new files.
  1075. * hppa[bh]-xdep.c: removed.
  1076. * hppa[bh]h-tdep.c: do not include ptrace.h.
  1077. * Makefile.in (HFILES): added nm-hppa[bh].h.
  1078. Tue Oct 20 00:01:46 1992 Stu Grossman (grossman at cygnus.com)
  1079. * mips-nat.c: Straighten out include files. Work around
  1080. conflicting defs of JB_xxx syms in <setjmp.h> and <machine/pcb.h>
  1081. for Ultrix-4.2.
  1082. Mon Oct 19 15:09:57 1992 Stu Grossman (grossman at cygnus.com)
  1083. * mips-nat.c (fetch_core_registers, register_addr): Copy from
  1084. coredep.c, but zero out FP_REGNUM & ZERO_REGNUM so that stack
  1085. backtraces from core files work.
  1086. * config/decstation.mh, config/irix3.mh: Remove coredep.o.
  1087. Functions are now defined in mips-nat.c.
  1088. * tm-irix3.h: Put MIPS_EFI_SYMBOL_NAME in here too.
  1089. * remote-hms.c: Disable all uses of serial_nextbaudrate and
  1090. serial_default_name().
  1091. * remote-hms.c, ser-go32.c, serial.h: Change from
  1092. serial_timedreadchar() to new serial_readchar().
  1093. * Makefile.in (HFILES): Fixup list of nm-*.h files. Add missing ones.
  1094. Mon Oct 19 12:45:23 1992 Per Bothner (bothner@cygnus.com)
  1095. * c-exp.y: Moved handling of 'const' and 'volatile' from
  1096. <type> to <typebase>. This removes 2 conflicts.
  1097. Sun Oct 18 00:36:30 1992 Fred Fish (fnf@cygnus.com)
  1098. * breakpoint.c (breakpoint_re_set_one): Don't delete watchpoints
  1099. from breakpoint table when reseting breakpoints.
  1100. Sat Oct 17 00:59:23 1992 Fred Fish (fnf@cygnus.com)
  1101. Native support cleanup and corefile fixes for i386 SVR4 systems.
  1102. * i386-tdep.c (supply_gregset, fill_gregset, supply_fpregset,
  1103. fill_fpregset): Moved to i386v4-nat.c
  1104. * i386v4-nat.c, nm-i386v4.h, : New files.
  1105. * i386sol2.mh, i386v4.mh, ncr3000.mh (NAT_FILE): Use nm-i386v4.h.
  1106. * i386sol2.mh, i386v4.mh, ncr3000.mh (NATDEPFILES): Add corelow.o,
  1107. change i386v-nat.o to i386v4-nat.o.
  1108. Fri Oct 16 13:06:08 1992 K. Richard Pixley (rich@sendai.cygnus.com)
  1109. Miscellaneous 386 configs updated.
  1110. * config/i386aout.mt (TDEPFILES): removed exec.o.
  1111. * config/i386sol2.mh, config/ncr3000.mh, config/i386v4.mh
  1112. (XDEPFILES): removed procfs.o fork-child.o i386-xdep.o.
  1113. (NAT_FILE, NATDEPFILES): new macros.
  1114. * config/i386aout.mt, config/i386sol2.mt, config/ncr3000.mt,
  1115. config/i386v4.mt (TDEPFILES): removed exec.o.
  1116. * config/i386v32.mh (XDEPFILES): removed infptrace.o inftarg.o
  1117. fork-child.o coredep.o corelow.o i386-xdep.o i387-tdep.o.
  1118. (NAT_FILE, NATDEPFILES): new macros.
  1119. * config/i386sco.mh (XDEPFILES): removed infptrace.o inftarg.o
  1120. fork-child.o coredep.o corelow.o i386-xdep.o.
  1121. (NAT_FILE, NATDEPFILES): new macros.
  1122. Native support cleanup for i386bsd (untested).
  1123. * config/i386bsd.mt (NATDEPFILES): exec.o removed.
  1124. * config/i386bsd.mh (NATDEPFILES): added exec.o
  1125. * tm-i386bsd.h (FLOAT_INFO): removed.
  1126. * nm-i386bsd.h (FLOAT_INFO): added.
  1127. Native support for i386v (untested).
  1128. * config/i386v.mh (XDEPFILES): removed infptrace.o inftarg.o
  1129. fork-child.o coredep.o corelow.o i386-xdep.o i387-tdep.o.
  1130. (NAT_FILE, NATDEPFILES): new macros.
  1131. * config/i386v.mt (TDEPFILES): removed exec.o, added i387-tdep.o.
  1132. * i386-xdep.c: removed.
  1133. * Makefile.in (HFILES): added nm-i386v.h
  1134. * i386v-nat.c, nm-i386v.h: new file.
  1135. * xm-i386v.h: (REGISTER_U_ADDR, i386_register_u_addr): removed to
  1136. nm-i386v.h.
  1137. * tm-i386v.h (FLOAT_INFO): removed.
  1138. Native support for linux (untested).
  1139. * config/linux.mh (XDEPFILES): removed infptrace.o inftarg.o
  1140. fork-child.o coredep.o corelow.o i387-tdep.o i386-xdep.o.
  1141. (NAT_FILE, NATDEPFILES): new macros.
  1142. * config/linux.mt (TDEPFILES): removed exec.o, added i387-tdep.o.
  1143. * Makefile.in (HFILES): added nm-linux.h.
  1144. * nm-linux.h: new file.
  1145. * xm-linux.h: updated copyright. cleaned up formatting.
  1146. (ATTACH_DETACH, U_REGS_OFFSET): removed to nm-linux.h.
  1147. Native support for sun386 (untested).
  1148. * config/sun386.mh (XDEPFILES): removed infptrace.o inftarg.o
  1149. fork-child.o sun386-xdep.o.
  1150. (NAT_FILE, NATDEPFILES): new macros.
  1151. * config/sun386.mt (TDEPFILES): removed exec.o.
  1152. * Makefile.in (HFILES): added nm-sun386.h.
  1153. * sun386-nat.c, nm-sun386.h: new file.
  1154. * sun386-xdep.c: removed.
  1155. * xm-sun386.h: updated comment and copyright.
  1156. (ATTACH_DETACH, FETCH_INFERIOR_REGISTERS): removed to
  1157. nm-sun386.h.
  1158. Native support for i386mach (untested).
  1159. * config/i386mach.mh (XDEPFILES): removed infptrace.o inftarg.o
  1160. fork-child.o mach386-xdep.o.
  1161. (NAT_FILE, NATDEPFILES): new macros.
  1162. * Makefile.in (HFILES): added nm-i386mach.h.
  1163. * nm-i386mach.h, i386mach-nat.c: new files.
  1164. * mach386-xdep.c: removed.
  1165. * xm-i386mach.h: updated copyright.
  1166. (ATTACH_DETACH, FETCH_INFERIOR_REGISTERS): removed to
  1167. nm-i386mach.h.
  1168. Native separation for go32 (untested).
  1169. * config/go32.mh (NAT_FILE, NATDEPFILES): new macros.
  1170. * go32-nat.c: new file.
  1171. * go32-xdep.c (call_ptrace, child_resume,
  1172. fetch_inferior_registers, store_inferior_registers,
  1173. child_xfer_memory, fetch_core_registers): removed to go32-nat.c.
  1174. Native support for m88k (untested).
  1175. * Makefile.in (HFILES): added nm-m88k.h
  1176. * xm-delta88.h, xm-m88k.h (REGISTER_U_ADDR,
  1177. FETCH_INFERIOR_REGISTERS): removed.
  1178. * config/m88k.mh, config/delta88.mh (XDEPFILES): infptrace.o
  1179. inftarg.o fork-child.o m88k-xdep.o removed to NATDEPFILES.
  1180. (NAT_FILE, NATDEPFILES): new macros.
  1181. * config/m88k.mt, config/delta88.mt (TDEPFILES): removed exec.o.
  1182. * m88k-nat.c, nm-m88k.h, nm-delta88.h: new files.o.
  1183. * m88k-xdep.c: removed.
  1184. Fri Oct 16 04:16:30 1992 John Gilmore (gnu@cygnus.com)
  1185. * i386b-nat.c: Comment changes.
  1186. * nm-i386bsd.h, xm-i386bsd.h: Split native dependent pieces out
  1187. into new nm-file.
  1188. * config/i386bsd.mh (NAT_FILE): Point to new nm-file.
  1189. Fri Oct 16 03:34:01 1992 John Gilmore (gnu@cygnus.com)
  1190. Avoid longjmp()-catching compilation errors in cross-ports.
  1191. * irix4-nat.c, mips-nat.c (JB_ELEMENT_SIZE, get_longjmp_target):
  1192. Move from mips-tdep.c and tm-{irix3,mips}.h.
  1193. * mips-nat.c: Remove a bunch of code that was ifdef'd out of
  1194. native MIPS ports.
  1195. * nm-irix3.h, nm-mips.h (GET_LONGJMP_TARGET): Move from tm-irix3.h
  1196. and tm-mips.h.
  1197. * ultra3-nat.c (register_addr): Move from ultra3-xdep.c.
  1198. (fetch_core_registers): Fix bfd_seek arguments.
  1199. Fri Oct 16 03:02:28 1992 John Gilmore (gnu@cygnus.com)
  1200. Make core files work again (add back the `core' target).
  1201. * config/decstation.mh, news.mh, sun2os3.mh, sun2os4.mh
  1202. (NATDEPFILES): Add corelow.o.
  1203. * config/delta88.mt, m88k.mt (TDEPFILES): Remove coredep.o, it's
  1204. native dependent.
  1205. * config/3b1.mh, bigmips.mh, hp300bsd.mh, hppabsd.mh, hppahpux.mh,
  1206. i386sco.mh, i386v.mh, i386v32.mh, irix3.mh, isi.mh, linux.mh,
  1207. littlemips.mh, merlin.mh, news1000.mh, pn.mh, rtbsd.mh, tahoe.mh,
  1208. vaxbsd.mh, vaxult.mh (XDEPFILES): Add corelow.o whenever coredep.o
  1209. appears. FIXME, these should be moved to NATDEPFILES for native
  1210. use only.
  1211. Thu Oct 15 21:53:53 1992 K. Richard Pixley (rich@sendai.cygnus.com)
  1212. Ultra3 host/target/native split. (untested).
  1213. * ultra3-xdep.c: updated copyright. Do not include sys/ptrace.h.
  1214. (fetch_register, fetch_inferior_registers,
  1215. store_inferior_registers, fetch_core_registers): removed to
  1216. ultra3-nat.c.
  1217. * xm-ultra3.h (FETCH_INFERIOR_REGISTERS, U_REGS_OFFSET): removed
  1218. to nm-ultra3.h.
  1219. * Makefile.in (HFILES): added nm-ultra3.h.
  1220. * nm-ultra3.h, ultra3-nat.c: new files for native support.
  1221. * config/ultra3.mh (XDEPFILES): removed infptrace.o inftarg.o
  1222. fork-child.o.
  1223. (NAT_FILE, NATDEPFILES): new macros for native support.
  1224. * config/ultra3.mt (TDEPFILES): exec.o removed.
  1225. * xm-vaxult.h: add MEM_FNS_DECLARED.
  1226. Thu Oct 15 02:59:30 1992 John Gilmore (gnu@cygnus.com)
  1227. * Makefile.in (VERSION): Roll to 4.6.8.
  1228. (OBS): Put version.o first, so Makefile rebuild happens early.
  1229. * command.h: Publicize prototype for not_just_help_class_command.
  1230. * command.c: Remove proto.
  1231. * maint.c: Mark "mt" as an abbrev, to avoid duplicated help
  1232. output. Move "maint info" from class info to class maintenance,
  1233. and improve text.
  1234. * infrun.c: Move "stop" to class_obscure, and give it a
  1235. function so it will not be seen as a global help topic. FIXME,
  1236. it should be possible to set these attributes independently.
  1237. * core.c (core_command): Make nicer error message for no core support.
  1238. Lint around file_ptr's (bfd's off_t's) and bfd_seek.
  1239. * dbxread.c (read_dbx_symtab): Use L_SET as bfd_seek arg.
  1240. (elfstab_build_psymtabs): staboffset and stabstroffset args are
  1241. file_ptr's.
  1242. * dwarfread.c (struct dwfinfo): Convert dbfoff, lnfoff to file_ptr.
  1243. (scan_compilation_units): Punt unused filename arg. dbfoff,
  1244. lnoffset, and curlnoffset are file_ptr's now.
  1245. (dwarf_build_psymtabs): Drop desc and filename args; use
  1246. objfile. dbfoff and lnoffset are file_ptr's now.
  1247. (read_ofile_symtab): foffset is now file_ptr. Use L_SET in bfd_seek.
  1248. * elfread.c (struct elfinfo): dboffset and lnoffset are file_ptr's.
  1249. (elf_symfile_read): Skip desc and filename args to
  1250. dwarf_build_psymtabs. Pass file_ptr's to elfstab_build_psymtabs.
  1251. * gdb-stabs.h: Use file_ptr rather than off_t.
  1252. * mipsread.c (fixup_symtab): f_ptr is a file_ptr. Re-enable
  1253. compile-time debug check that someone turned off as "unused".
  1254. (read_the_mips_symtab): st_filptr is a file_ptr. Fix bfd_seek call.
  1255. * symfile.h: Update dwarf_build_psymtabs and
  1256. elfstab_build_psymtabs prototypes.
  1257. * xcoffread.c (init_stringtab, init_lineno, xcoff_symfile_read):
  1258. Use file_ptr offsets. bfd_seeks use L_SET.
  1259. Thu Oct 15 01:27:32 1992 Stu Grossman (grossman at cygnus.com)
  1260. * mips-tdep.c, mipsread.c, tm-mips.h: Get rid of ".gdbinfo."
  1261. symbol. #define MIPS_EFI_SYMBOL_NAME instead. Use different
  1262. value so that demangler won't be invoked. This greatly speeds up
  1263. stepping.
  1264. * mips-tdep.c (mips_pop_frame): Rewrite handling of
  1265. linked_proc_info so that it properly deallocates the appropriate
  1266. item after it is done with it instead of before.
  1267. * Don't pass bogus frame pointer to create_new_frame(). Just
  1268. leave it as zero so that lower level code will figure out the
  1269. correct value.
  1270. Wed Oct 14 18:56:28 1992 K. Richard Pixley (rich@sendai.cygnus.com)
  1271. Sony News native support.
  1272. * Makefile.in (HFILES): added nm-news.h.
  1273. * nm-news.h: new file.
  1274. * config/news.mh (XDEPFILES): removed infptrace.o inftarg.o
  1275. fork-child.o coredep.o to NATDEPFILES.
  1276. (NAT_FILE, NATDEPFILES): new macros for native support.
  1277. * config/news.mt (TDEPFILES): removed exec.o.
  1278. * remote-vx.c: remove redundant include of sys/time.h.
  1279. * infrun.c: include ctype.h. Otherwise some machines result in
  1280. undefined for isdigit.
  1281. Tue Oct 13 01:27:14 1992 John Gilmore (gnu@cygnus.com)
  1282. * configure.in: Convert m68k entries to m68* entries to handle
  1283. all the various m68xxx hosts and targets.
  1284. * config/news1000.mt: No longer needed, same as news.mt.
  1285. Fri Oct 9 18:54:37 1992 K. Richard Pixley (rich@sendai.cygnus.com)
  1286. * config/sun3os[34].mh (NATDEPFILES): remove duplicate inftarg.o.
  1287. Fri Oct 9 14:20:08 1992 Stu Grossman (grossman at cygnus.com)
  1288. * Makefile.in (HFILES): Add all nm-irix3.h, nm-irix4.h,
  1289. nm-sun2.h, nm-mips.h.
  1290. * config/irix3.mh (NATDEPFILES): nat-mips.o => mips-nat.o.
  1291. * Makefile.in (alldeps.mak): Add = sign after NATDEPFILES.
  1292. * config/bigmips.mh config/littlemips.mh: Remove mips-xdep.o.
  1293. Fri Oct 9 08:41:11 1992 Ian Lance Taylor (ian@cygnus.com)
  1294. * xm-hppah.h: if __STDC__ is not defined, define
  1295. HPPA_COMPILER_BUG.
  1296. symtab.c (decode_line_1): avoid a bug in the HP9000/700 native
  1297. compiler; see the comment in the file.
  1298. Fri Oct 9 04:43:43 1992 John Gilmore (gnu@cygnus.com)
  1299. First cut at support for all BSD variants on 386.
  1300. * tm-i386bsd.h, xm-i386bsd.h: New config files.
  1301. * i386b-nat.c: New native support file.
  1302. * configure.in: Add host and target for i[34]86-*-bsd*.
  1303. * config/i386bsd.mh, config/i386bsd.mt: New config files.
  1304. Fri Oct 9 00:31:33 1992 K. Richard Pixley (rich@sendai.cygnus.com)
  1305. Sun2 native support (untested).
  1306. * xm-sun2.h (ATTACH_DETACH, FETCH_INFERIOR_REGISTERS,
  1307. REGISTER_U_ADDR): removed to nm-sun2.h.
  1308. * nm-sun2.h: new file.
  1309. * config/sun2os[34].mh (XDEPFILES): infptrace.o inftarg.o
  1310. fork-child.o sun3-xdep.o removed.
  1311. (NAT_FILE, NATDEPFILES): new macros.
  1312. Mips native support. Decstation and iris4 have been tested.
  1313. Iris3 has not.
  1314. * mips-tdep.c (supply_gregset, fill_gregset, supply_fpregset,
  1315. fill_fpregset): removed to irix4-nat.c
  1316. * mips-xdep.c: removed.
  1317. * irix4-nat.c, mips-nat.c, nm-irix3.h, nm-irix4.h, nm-mips.h: new
  1318. files.
  1319. * procfs.c: include nm.h.
  1320. * xm-irix3.h (U_REGS_OFFSET, FETCH_INFERIOR_REGISTERS): removed.
  1321. * xm-irix4.h: bump copyright.
  1322. (U_REGS_OFFSET, FETCH_INFERIOR_REGISTERS, USE_PROC_FS,
  1323. PROC_NAME_FMT): removed.
  1324. * xm-mips.h (FETCH_INFERIOR_REGISTERS): removed.
  1325. * config/irix4.mh (XDEPFILES): removed procfs.o fork-child.o.
  1326. (NAT_FILE, NATDEPFILES): new macros for native support.
  1327. (CC): supply default compiler switches.
  1328. * config/irix3.mh (XDEPFILES): removed infptrace.o inftarg.o
  1329. fork-child.o coredep.o.
  1330. (NAT_FILE, NATDEPFILES): new macros for native support. Note that
  1331. irix3 is untested.
  1332. * config/decstation.mh (XDEPFILES): removed infptrace.o inftarg.o
  1333. fork-child.o mips-xdep.o coredep.o.
  1334. (NAT_FILE, NATDEPFILES): new macros for native support.
  1335. Thu Oct 8 23:50:51 1992 K. Richard Pixley (rich@sendai.cygnus.com)
  1336. * config/rs6000.mh (XDEPFILES): removed fork-child.o.
  1337. (NATDEPFILES): added fork-child.o
  1338. * config/sun3os3.mh (XDEPFILES): removed fork-child.o.
  1339. (NATDEPFILES): added fork-child.o
  1340. * config/sun3os4.mh (XDEPFILES): removed fork-child.o.
  1341. (NATDEPFILES): added fork-child.o
  1342. Thu Oct 8 23:19:25 1992 John Gilmore (gnu@cygnus.com)
  1343. * infcmd.c (path_info): Avoid 250-char limit on printf_filtered,
  1344. by using puts_filtered instead.
  1345. Fri Oct 9 00:28:25 1992 Ken Raeburn (raeburn@cambridge.cygnus.com)
  1346. * remote-nindy.c (nindy_load): Replacement version from Steve
  1347. Chamberlain, doesn't require forking to run "strip" or "sx".
  1348. Thu Oct 8 18:27:35 1992 Stu Grossman (grossman at cygnus.com)
  1349. * Makefile.in (HFILES): Add nm-*.h files.
  1350. Thu Oct 8 16:27:45 1992 K. Richard Pixley (rich@sendai.cygnus.com)
  1351. * config/sun4os4.mh (XDEPFILES): fork-child.o removed.
  1352. (NATDEPFILES): added fork-child.o.
  1353. Thu Oct 8 13:52:46 1992 Stu Grossman (grossman at cygnus.com)
  1354. * Makefile.in alldeps.mak depend: Rip out 29k/udi pending
  1355. resolution of copyright issues.
  1356. Wed Oct 7 20:08:53 1992 Stu Grossman (grossman at cygnus.com)
  1357. * Makefile.in (setup-to-dist): Remove -norecursion so that doc
  1358. subdir gets configured.
  1359. Wed Oct 7 12:24:01 1992 Ken Raeburn (raeburn@cygnus.com)
  1360. * Makefile.in (nindy.o): Define "STRIP" as pathname of strip
  1361. program.
  1362. * nindy-share/nindy.c (coffstrip): Use that pathname, instead of
  1363. searching for a "bfd_strip" program. Also, fixed up arguments
  1364. passed to that program.
  1365. * tm-nindy960.h (ADDITIONAL_OPTIONS): Use "-ser" rather than "-r",
  1366. which is now used for something else. Rewrite description of
  1367. associated parameters to match how gdb does it now.
  1368. (ADDITIONAL_OPTION_HELP): Fix message accordingly.
  1369. * m68k-pinsn.c (print_insn_arg): Handle new "`" operand type.
  1370. Tue Oct 6 14:47:11 1992 K. Richard Pixley (rich@sendai.cygnus.com)
  1371. NOTICE_SIGNAL_HANDLING_CHANGE macro added to the target vector as
  1372. to_notice_signals.
  1373. * inferior.h (proc_signal_handling_change): prototype removed.
  1374. * infrun.c (NOTICE_SIGNAL_HANDLING_CHANGE): default removed.
  1375. (handle_command): now calls target_notice_signals.
  1376. * procfs.c (proc_signal_handling_change): renamed to
  1377. procfs_notice_signals. Now static. Add prototype. All callers
  1378. changed.
  1379. * target.h (struct target_ops): new field, to_notice_signals.
  1380. (target_notice_signals): new macro to cover new field.
  1381. * target.c (cleanup_target): default to_notice_signals to ignore.
  1382. * corelow.c (core_ops),
  1383. exec.c (exec_ops),
  1384. inftarg.c (child_ops),
  1385. procfs.c (procfs_ops),
  1386. remote-adapt.c (adapt-ops),
  1387. remote-eb.c (eb_ops),
  1388. remote-es1800.c (es1800_ops, es1800_child_ops),
  1389. remote-hms.c (hms_ops),
  1390. remote-mm.c (mm_ops),
  1391. remote-nindy.c (nindy_ops),
  1392. remote-st2000.c (st2000_ops),
  1393. remote-udi.c (udi_ops),
  1394. remote-vx.c (vx_ops, vx_run_ops),
  1395. remote.c (remote_ops),
  1396. target.c (dummy_target),
  1397. xcoffexec.c (exec_ops): added static initializer for
  1398. to_notice_signals.
  1399. * xm-irix4.h, xm-sysv4.h (NOTICE_SIGNAL_HANDLING_CHANGE): removed.
  1400. Tue Oct 6 12:13:08 1992 John Gilmore (gnu@cygnus.com)
  1401. * main.c (define_command): Add forgotten initializer.
  1402. Tue Oct 6 02:23:17 1992 John Gilmore (gnu@cygnus.com)
  1403. * language.c, language.h: Move saved_language out to global
  1404. expected_language. Set expected_language when user expectation
  1405. changes.
  1406. * language.c (language_info): Don't print type/range checking gub.
  1407. * main.c (main): Set expected language.
  1408. (execute_command): Check against expected language.
  1409. * symfile.c (set_initial_language): Set expected language.
  1410. * configure.in, config/i386sol2.{mh,mt}: Preliminary Solaris-x86 conf.
  1411. Fri Sep 4 00:34:30 1992 Per Bothner (bothner@rtl.cygnus.com)
  1412. A bunch of changes mostly to improve debugging of C++ programs.
  1413. Specifically, the calling of inferiors methods is improved.
  1414. * value.h: New macros METHOD_PTR_IS_VIRTUAL,
  1415. METHOD_PTR_FROM_VOFFSET, METHOD_PTR_TO_VOFFSET to partially
  1416. hide the implementation details of pointer-to-method objects.
  1417. How to tell if the pointer points to a virtual method is
  1418. still very dependent on the particular compiler, but this
  1419. should make it easier to find the places to change.
  1420. * eval.c (evaluate_subexp [case OP_FUNCALL]), valprint.c
  1421. (val_print [case TYPE_CODE_PTR]): Use the new METHOD_PTR_*
  1422. macros, instead of a hard-wired-in code that incorrectly
  1423. assumed a no-longerused representation of pointer-to-method
  1424. values. And otherwise fix the relevant bit-rotted code.
  1425. * valprint.c (type_print_base [case TYPE_CODE_STRUCT]):
  1426. If there are both fields and methods, put a space between.
  1427. * stabsread.c (read_struct_type): Fix bug in handling of
  1428. GNU C++ anonymous type (indicated by CPLUS_MARKER followed
  1429. by '_'). (It used to prematurely exit the loop reading in
  1430. the fields, so it would think it should start reading
  1431. methods while still in the fields. This could crash gdb
  1432. given a gcc that can emit nested type information.)
  1433. * valops.c (search_struct_method): Pass 'this' value by
  1434. reference instead of by value. This provides a more
  1435. consistent interface through a recursive search where the
  1436. "bottom" functions may need to adjust offsets (due to multiple
  1437. inheritance).
  1438. * valops.c, value.h, values.c: Pass extra parameters to
  1439. value_fn_field and value_virtual_fn_field so we can
  1440. correctly adjust offset for multiple inheritance.
  1441. * eval.c (evaluate_subexp [case OP_FUNCALL]): Simplify
  1442. virtual function calls by using value_virtual_fn_field().
  1443. * values.c: New function baseclass_offset, derived from
  1444. baseclass_addr (which perhaps can be made obsolete?).
  1445. It returns an offset rather than an address. This is a
  1446. cleaner interface since it doesn't mess around allocating
  1447. new values.
  1448. * valops.c (search_struct_method): Use baseclass_offset
  1449. rather than baseclass_addr.
  1450. Mon Oct 5 16:02:04 1992 Stu Grossman (grossman at cygnus.com)
  1451. * Makefile.in: Re-install 29K/UDI stuff.
  1452. * remote-udi.c (udi_resume): Clean up.
  1453. * (udi_wait): Rewrite, leave out bugs.
  1454. * Add debugging code to print out all register fetches and stores.
  1455. * Straighten out target_ops.
  1456. * tm-29k.h (DUMMY_FRAME_RSIZE): Pad out to doubleword.
  1457. Mon Oct 5 09:46:44 1992 Ian Lance Taylor (ian@cygnus.com)
  1458. * remote-udi.c (udi_create_inferior): run with no arguments should
  1459. not pass the program name as an argument, since the UDI code
  1460. already handles that.
  1461. (udi_load): get the symbols from prog_name, not arg_string (the
  1462. load command should really use arg_string as the program name, not
  1463. prog_name, but at least the run command works now).
  1464. * munch: HP9000/300 nm puts an extra space between T and symbol
  1465. name.
  1466. * config/irix4.mh: added -lsun to XM_CLIBS to get RPC functions
  1467. needed for vxworks targets.
  1468. Fri Oct 2 22:04:42 1992 John Gilmore (gnu@cygnus.com)
  1469. * am29k-tdep.c (_initialize_29k): Make it possible for the
  1470. user to set and query the address where function calls into the
  1471. inferior write a small scratch routine. `set call_scratch_address'
  1472. * inferior.h (PC_IN_CALL_DUMMY): Fix fencepost error.
  1473. * remote.c (remote_prepare_to_store): Only fetch regs if they are
  1474. not already cached validly.
  1475. Thu Oct 1 14:36:42 1992 K. Richard Pixley (rich@sendai.cygnus.com)
  1476. Rs6000 native support.
  1477. * infptrace.c: remove #ifdef USG from around include ptrace.h.
  1478. machines without this header should not be compiling this file.
  1479. * nm-rs6000.h, rs6000-nat.c: new files for native support.
  1480. * rs6000-tdep.c: do not include sys/ptrace.h or sys/reg.h.
  1481. * rs6000-xdep.c: removed. all code now in rs6000-nat.c.
  1482. * xm-rs6000.h: do not include ptrace.h.
  1483. (ATTACH_DETACH, FETCH_INFERIOR_REGISTERS): moved to nm-rs6000.h.
  1484. * config/rs6000.mh (XDEPFILES): removed rs6000-xdep.o.
  1485. infptrace.o and inftarg.o move to NATDEPFIES.
  1486. (NAT_FILE, NATDEPFILES): new macro for native support.
  1487. Sun3 native support.
  1488. * config/sun3os3.mh, config/sun3os4.mh (NAT_FILE, NATDEPFILES):
  1489. new macros for native support.
  1490. (XDEPFILES): moved infptrace.o and inftarg.o to NATDEPFILES,
  1491. removed sun3-xdep.o.
  1492. * xm-sun3.h (ATTACH_DETACH, FETCH_INFERIOR_REGISTERS): moved to
  1493. nm-sun3.h.
  1494. * sun3-xdep.c: removed. All code is now in sun3-nat.c.
  1495. * sun3-nat.c, nm-sun3.h: new files for native support.
  1496. Thu Oct 1 10:30:54 1992 Fred Fish (fnf@cygnus.com)
  1497. * dwarfread.c (dbsize): New variable to hold size of dwarf info.
  1498. * dwarfread.c (dwarf_build_psymtabs): Rename dbsize parameter to
  1499. dbfsize and use it to initialize new local file scope dbsize.
  1500. * dwarfread.c (read_ofile_symtab): Initialize dbsize and use it.
  1501. * dwarfread.c (basicdieinfo): Use dbsize to check for oversize
  1502. DIEs as well as the current check for undersize DIEs. This helps
  1503. to gracefully detect and reject corrupted DIE information.
  1504. Thu Oct 1 01:57:56 1992 John Gilmore (gnu@cygnus.com)
  1505. Add `command hooks' and a hook for inferior program stopping.
  1506. * command.h (struct cmd_list_element): Remove unused `aux'
  1507. field. Add new `hook', `hookee', and `cmd_pointer' fields.
  1508. * command.c (add_cmd): Initialize new fields, elim old.
  1509. (add_alias_cmd): Clone new fields.
  1510. (delete_cmd): Un-hook hookee if we're deleting hook.
  1511. (help_cmd): Tell user the command is hooked, if it is.
  1512. (lookup_cmd_1): Abbreviations return the original command
  1513. instead of themselves, so that hooks on the original cmd will be
  1514. run.
  1515. * defs.h (enum command_class): Add class_pseudo and comments.
  1516. * gdbcmd.h (execute_user_command): Add prototype.
  1517. * infrun.c (normal_stop): If the stop command is hooked,
  1518. run the hook whenever we stop.
  1519. (hook_stop_stub): Stub for catch_errors.
  1520. (_initialize_infrun): Set up pseudo "stop" command.
  1521. * main.c (execute_user_command): Code extracted from execute_command.
  1522. (execute_command): If hooked, run the hook before the command.
  1523. (define_command): If defining a new hook, check the command it
  1524. is hooking, and warn if none. Install the hook.
  1525. * source.c (_initialize_source): "l" is an abbrev for "list".
  1526. * Makefile.in (VERSION): Roll to 4.6.7.
  1527. * config/sun4os4.mh: Remove dup inftarg.o from NATDEPFILES.
  1528. * infrun.c (breakpoints_inserted): Make it static again.
  1529. * tm-symmetry.h (FLOAT_INFO): #if 0 it for cross-ptrace abuse.
  1530. Wed Sep 30 15:33:22 1992 K. Richard Pixley (rich@sendai.cygnus.com)
  1531. Native file renaming.
  1532. * nat-sparc.c -> sparc-nat.c
  1533. * nat-sun4os4.h -> nm-sun4os4.h
  1534. * nat-trash.h -> nm-trash.h
  1535. * config/sun4os4.mh: track file renaming.
  1536. * configure.in: link to nm.h rather than nat.h.
  1537. * infptrace.c: include nm.h rather than nat.h.
  1538. Tue Sep 29 14:35:00 1992 K. Richard Pixley (rich@sendai.cygnus.com)
  1539. Host/target/native split for sun4.
  1540. * Makefile.in (TSOBS): removed corelow.o.
  1541. * infptrace.c: included nat.h.
  1542. * nat-trash.h: temporary header file. This should be removed once
  1543. all hosts have the native/host/target split.
  1544. * configure.in: add a symlink from nat-trash.h to nat.h if no
  1545. other nat file exists for this configuration.
  1546. * sparc-tdep.c: no longer include sys/ptrace.h.
  1547. * sparc-xdep.c: removed. contents have been moved to nat-sparc.c.
  1548. * xm-sparc.h (ATTACH_DETACH, FETCH_INFERIOR_REGISTERS): moved to
  1549. nat-sun4os4.h.
  1550. * nat-sparc.c, nat-sun4os4.h: new files for sun4 native support.
  1551. * config/sun4os4.mh (XDEPFILES): moved infptrace.o and inftarg.o
  1552. to NATDEPFILES. removed sparc-xdep.o.
  1553. (NATDEPFILES, NAT_FILE): new macros for native support.
  1554. Break the direct connection from core_file_command to any
  1555. particular type of core file support.
  1556. * target.h (find_core_target): new prototype.
  1557. * target.c (find_core_target): new function. Walks the target
  1558. list looking for the core target.
  1559. * core.c (core_file_command): replace calls to core_detach and
  1560. core_open with find_core_target and direct calls.
  1561. Tue Sep 29 10:19:00 1992 Ian Lance Taylor (ian@cygnus.com)
  1562. * xm-hp300hpux.h: define MEM_FNS_DECLARED; include <sys/ptrace.h>
  1563. for infptrace.c.
  1564. config/hp300hpux.mh: ALLOCA1 was not defined.
  1565. Mon Sep 28 22:03:41 1992 Stu Grossman (grossman at cygnus.com)
  1566. * breakpoint.c, exec.c, language.c, main.c, printcmd.c, symfile.c,
  1567. target.c, valprint.c: Use unfiltered forms of f/printf, et. al.
  1568. until we can figure out a better way to do paging.
  1569. Sat Sep 26 02:07:31 1992 John Gilmore (gnu@cygnus.com)
  1570. * findvar.c (supply_register): Add CLEAN_UP_REGISTER_VALUE hook.
  1571. * tm-hppa.h (CLEAN_UP_REGISTER_VALUE): Use it.
  1572. * hppa-coredep.c: Remove, now that we use the hook.
  1573. * config/hppab.mh, config/hppah.mh: Use standard coredep.o.
  1574. * hppab-xdep.c, hppah-xdep.c: Remove custom code, use hook.
  1575. * dbxread.c, partial-stab.h: Replace all #ifdef hp9000s800's with
  1576. GDB_TARGET_IS_HPPA's. This is a SERIOUS KLUDGE. The code needs to all
  1577. be ripped out and reimplemented right (see elfread.c).
  1578. * tm-hppa.h (GDB_TARGET_IS_HPPA): Define.
  1579. Rename all HPPA files to fit into unique DOS filenames:
  1580. * *hppabsd* => *hppab*
  1581. * *hppahpux* => *hppah*
  1582. Sat Sep 26 00:25:15 1992 John Gilmore (gnu@cygnus.com)
  1583. Make the /proc support a target-struct in its own right.
  1584. * Makefile.in: Remove inftarg.[co], since it is now included via
  1585. config/*.mh files.
  1586. * config/*.mh: Add inftarg.o and fork-child.o to all *.mh that
  1587. reference infptrace.o. Add fork-child.o to all *.mh that
  1588. reference procfs.o.
  1589. * inferior.h (proc_wait, inferior_proc_init, proc_set_exec_trap):
  1590. No longer global functions.
  1591. (fork_inferior): New global function from fork-child.c.
  1592. * inftarg.c (child_wait): Remove USE_PROC_FS conditional.
  1593. (ptrace_me, ptrace_him): New stub functions for fork_inferior().
  1594. (child_create_inferior): Moved to fork-child.c as fork_inferior.
  1595. (child_create_inferior): New tiny function that calls fork_inferior.
  1596. * fork-child.c: New file, containing fork_inferior, which is
  1597. built from slight mods to inftarg.c's child_create_inferior.
  1598. * procfs.c (procfs_ops): Add target vector.
  1599. (attach): Rename as static do_attach.
  1600. (procfs_create_inferior): New tiny function that calls fork_inferior.
  1601. (child_xfer_memory): Rename to static procfs_xfer_memory.
  1602. (store_inferior_registers): Rename to static procfs_store_registers.
  1603. (inferior_proc_init): Rename to static procfs_init_inferior.
  1604. (procfs_attach, procfs_detach, procfs_prepare_to_store,
  1605. procfs_files_info, procfs_open, procfs_mourn_inferior,
  1606. procfs_can_run): Slightly mangled copies of the corresponding
  1607. child_XXX routines from inftarg.c.
  1608. (proc_wait): Renamed to static procfs_wait.
  1609. (child_resume): Rename to static procfs_resume.
  1610. (fetch_inferior_registers): Rename to static procfs_fetch_registers.
  1611. (initialize_proc_fs): Rename to initialize_procfs. Set up
  1612. procfs_ops, too.
  1613. * putenv.c: index -> strchr.
  1614. * regex.c: Always rename bcopy to memcpy, etc.
  1615. FIXME: Eventually do the renames rather than use #define's.
  1616. * sparc-tdep.c (deferred_stores): Moved from sparc-xdep.c.
  1617. Fix bcopy->memcpy.
  1618. * sparc-xdep.c: Move deferred_stores to target dependent.
  1619. * xm-irix4.h, xm-sysv4.h (CREATE_INFERIOR_HOOK): No longer needed.
  1620. Fri Sep 25 21:59:27 1992 John Gilmore (gnu@cygnus.com)
  1621. Split non-target-dependent code out of target_attach routines.
  1622. * target.h: Comments on target_attach args and results.
  1623. * infcmd.c (attach_command): Check for existing execution, call
  1624. target_attach, set up terminal status and wait_for_inferior, wait
  1625. for the attach status, and do normal_stop.
  1626. * inftarg.c (child_attach): Remove target independent stuff.
  1627. * remote-adapt.c (adapt_attach): Ditto.
  1628. * remote-mm.c (mm_attach): Ditto.
  1629. * remote-udi.c (udi_attach): Ditto.
  1630. * remote-vx.c (vx_attach): Ditto.
  1631. Cleanup.
  1632. * remote-hms.c (hms_attach): Remove completely, it was useless.
  1633. * remote-mm.c, remote-hms.c, remote-udi.c, remote-adapt.c: Remove
  1634. commented-out start_remote calls.
  1635. * remote-hms.c, remote-adapt.c, remote-mm.c, remote-udi.c: Remove
  1636. DENTER and DEXIT macros and their calls. Use a real debugger --
  1637. like gdb -- to see what functions are being called when.
  1638. * utils.c (strcmp_iw): Make nonstatic, for lint.
  1639. Fri Sep 25 18:48:20 1992 John Gilmore (gnu@cygnus.com)
  1640. * infrun.c, inftarg.c, inferior.h: Comment and lint cleanups.
  1641. Fri Sep 25 15:13:44 1992 Stu Grossman (grossman at cygnus.com)
  1642. * tm-sparc.h, dbxread.c (read_ofile_symtab): Install Jim Wilson's
  1643. fix to differentiate between gcc1 & gcc2 compiled files so that we
  1644. can debug calls that pass structs as args correctly.
  1645. * symmisc.c (dump_symtab): If block was compiled with gcc, say
  1646. so, and what version.
  1647. * remote.c (remote_wait): Make regs be char to avoid picayune
  1648. ANSI compiler warnings.
  1649. * energize.h: Move all external struct decls to inside of
  1650. __STDC__, add prototype for energize_shell_wait().
  1651. * energize.c (getpty): Clean up, make us really get a controlling
  1652. terminal.
  1653. * (energize_initialize): Disable SIGIO prior to setting up for
  1654. I/O interrupts. Move setsid(), et. al. to getpty().
  1655. * (energize_shell_wait): New routine to wait for things started
  1656. via the shell command, uses wait() instead of /dev/proc.
  1657. * Also, add prototype for execute_command_1().
  1658. Fri Sep 25 12:09:33 1992 K. Richard Pixley (rich@sendai.cygnus.com)
  1659. * inftarg.c (child_create_inferior, child_attach,
  1660. child_mourn_inferior): collect unix child process stratum
  1661. functions which live below the target vector into this file to
  1662. facilitate host/target/native split. Also, make them static.
  1663. * inflow.c (child_mourn_inferior): removed.
  1664. * infrun.c (child_create_inferior, child_attach): removed.
  1665. (resume): becomes global so that functions below the
  1666. target vector can find it.
  1667. * inferior.h (resume): add prototype.
  1668. (child_mourn_inferior, child_create_inferior, child_attach):
  1669. remove prototypes.
  1670. * xcoffexec.c (exec_ops): child_attach and child_create_inferior
  1671. replaced with find_default_attach and
  1672. find_default_create_inferior.
  1673. Fri Sep 25 10:21:04 1992 Ken Raeburn (raeburn@rtl.cygnus.com)
  1674. * i960-pinsn.c: Use _filtered routines for printing, so symbolic
  1675. addresses don't get displayed in the wrong positions.
  1676. Fri Sep 25 09:52:47 1992 K. Richard Pixley (rich@sendai.cygnus.com)
  1677. Separate core functions along target vector in preparation for
  1678. native support. Functions above vector now live in core.c. Those
  1679. below in corelow.c.
  1680. * core.c (solib_add_stub, core_close, core_open, core_detach,
  1681. get_core_registers, core_files_info, core_ops): moved to corelow.c
  1682. (_initialize_core): removed addition of core_ops target.
  1683. * corelow.c: new file.
  1684. (solib_add_stub, core_close, core_open, core_detach,
  1685. get_core_registers, core_files_info, core_ops): moved from core.c
  1686. (_initialize_corelow): new function.
  1687. * gdbcore.h (core_open, core_detach): added prototypes.
  1688. (core_ops): add forward declaration.
  1689. * Makefile.in (SFILES_MAINDIR): add core.c
  1690. (OBS): add core.o
  1691. (TSOBS): change core.o to corelow.o
  1692. Wed Sep 23 11:14:53 1992 Stu Grossman (grossman at cygnus.com)
  1693. * m68k-tdep.c (m68k_saved_pc_after_call): Use 'GDB_TARGET_IS_SUN3'
  1694. instead of 'sun' predefined symbol so that trap analysis code is
  1695. enabled only when the TARGET is a sun3.
  1696. Tue Sep 22 17:13:19 1992 Ken Raeburn (raeburn@cambridge.cygnus.com)
  1697. * tm-i960.h (ext_format_i960): Add top-level declaration.
  1698. (REGISTER_CONVERT_TO_{VIRTUAL,RAW}): Don't declare it in nested
  1699. blocks, else Sun4 compiler complains.
  1700. Tue Sep 22 00:43:51 1992 John Gilmore (gnu@cygnus.com)
  1701. * mips-pinsn.c (print_insn_arg, case 'B'): Disassemble `break'
  1702. instruction's argument. Patch from jonathan@cs.stanford.edu
  1703. (Jonathan Stone).
  1704. Mon Sep 21 18:16:30 1992 K. Richard Pixley (rich@sendai.cygnus.com)
  1705. Break the thread of control that implies that a unix child
  1706. process will be the default target.
  1707. * target.c (find_default_run_target, find_default_attach,
  1708. find_default_create_inferior, return_zero): new functions.
  1709. (cleanup_target): Make return_zero the default for to_can_run.
  1710. * exec.c (exec_ops), core.c (core_ops): Replace child_attach and
  1711. child_create_inferior references with find_default_XXX instead.
  1712. * target.h (struct target_ops): new field, to_can_run.
  1713. (find_default_attach, find_default_create_inferior): new prototypes.
  1714. (target_can_run): new macro.
  1715. * Also added a zero (default) to_can_run element to all static
  1716. struct target_ops initializations throughout GDB, except:
  1717. * inftarg.c (child_ops): Use new child_can_run() to enable child runs.
  1718. * infrun.c (child_create_inferior): Clean up error handling when
  1719. no exec file is specified.
  1720. (child_attach): Don't require exec file.
  1721. Mon Sep 21 19:43:13 1992 John Gilmore and K. Richard Pixley (gnu@cygnus.com)
  1722. Remove kill_inferior_fast, in favor of target_kill, which goes
  1723. through the target vector.
  1724. * inferior.h (kill_inferior_fast): remove declaration.
  1725. * main.c (disconnect): call quit_cover using catch_errors rather
  1726. than calling kill_inferior_fast directly. New way goes through
  1727. the target vector, handles attached processes, and writes
  1728. command history if appropriate.
  1729. (quit_cover): new function, wrapper for quit_command.
  1730. * convex-xdep.c, go32-xdep.c, hppabsd-xdep.c, hppahpux-xdep.c,
  1731. infptrace.c, procfs.c: Removed all instances of kill_inferior_fast,
  1732. inlining them into the local kill_inferior when needed.
  1733. Mon Sep 21 19:23:05 1992 John Gilmore (gnu@cygnus.com)
  1734. * infrun.c (_initialize_infrun): Alias `i handle' == `i signals'.
  1735. * stabsread.c (read_struct_type): Simplify complicated expression
  1736. for dumb DECstation compiler.
  1737. Mon Sep 21 14:54:35 1992 Ian Lance Taylor (ian@cygnus.com)
  1738. * m68k-pinsn (print_insn_arg, fetch_arg): added support for
  1739. operands to memory management instructions, from WRS.
  1740. Sep 20 08:42:12 1992 Fred Fish (fnf@cygnus.com)
  1741. * main.c (main): Back out previous language setting changes.
  1742. Replace with simple default to C before processing any init
  1743. files. There MUST be a language set, even in the absence of
  1744. init files or executables, or expression parsing fails.
  1745. Sat Sep 19 09:52:26 1992 Fred Fish (fnf@cygnus.com)
  1746. * main.c (main): Move code that sets initial language to
  1747. symfile.c. Fixup places where command files are processed to
  1748. be consistent in setting a default language if none has been
  1749. previously set.
  1750. * symfile.c (set_initial_language): Add code moved from
  1751. main() that sets an initial default language when a new
  1752. symbol file is read.
  1753. * symfile.c (symbol_file_command): Call set_initial_language.
  1754. * symtab.c (find_main_psymtab): Add FIXME comment.
  1755. Wed Sep 16 22:31:55 1992 K. Richard Pixley (rich@sendai.cygnus.com)
  1756. * breakpoint.c, sparc-tdep.c: comment changes.
  1757. * configure.in: removed target_dependent line.
  1758. * remote-mm.c (mm_attach): change printf to error to prevent
  1759. fallthrough bug.
  1760. * remote-udi.c (udi_attach): change printf to error to prevent
  1761. fallthrough bug.
  1762. * rs6000-tdep.c (push_dummy_frame, pop_dummy_frame): replace
  1763. calls to {fetch|store}_inferior_registers with calls to
  1764. target_{fetch|store}_registers, for remote-target independence.
  1765. Sat Sep 19 04:23:54 1992 John Gilmore (gnu@cygnus.com)
  1766. * Makefile.in: Fix bug I introduced in merging Rich's change.
  1767. * infrun.c (child_create_inferior): Use proceed() rather than
  1768. doing all the same stuff by hand.
  1769. Thu Sep 17 17:35:37 1992 K. Richard Pixley (rich@sendai.cygnus.com)
  1770. * Makefile.in, configure.in: add support for files used only when
  1771. configured native, that is, when host = target.
  1772. Wed Sep 16 23:03:23 1992 K. Richard Pixley (rich@sendai.cygnus.com)
  1773. * tm-sparc.h, xm-sparc.h: externs and macros relating to deferred
  1774. stores are target dependent and were moved from xm to tm.
  1775. Sat Sep 19 03:14:37 1992 John Gilmore (gnu@cygnus.com)
  1776. * Makefile.in (gdb-all.texi): Build in objdir, not $srcdir.
  1777. * config/decstation.mh: Add MMALLOC_LIB and MMALLOC_DISABLE
  1778. overrides, to avoid problem in xdr_bytes with malloc(0) => 0.
  1779. Wed Sep 16 20:04:54 1992 K. Richard Pixley (rich@sendai.cygnus.com)
  1780. * target.h (struct target_ops): removed to_convert_to_virtual and
  1781. to_convert_from_virtual elements. Initializations removed from
  1782. all static initializations.
  1783. (target_convert_to_virtual, target_convert_from_virtual):
  1784. removed.
  1785. (host_convert_to_virtual, host_convert_from_virtual): Removed
  1786. forward declarations.
  1787. * target.c (cleanup_target): removed default assignments for
  1788. to_convert_to_virtual and to_convert_from_virtual.
  1789. * inftarg.c (host_convert_to_virtual, host_convert_from_virtual):
  1790. removed.
  1791. * findvar.c (value_of_register, value_from_register):
  1792. target_convert_to_virtual inlined.
  1793. * infcmd.c (do_registers_info): target_convert_to_virtual inlined.
  1794. * valops.c (value_assign): target_convert_from_virtual inlined.
  1795. Fri Sep 18 02:07:39 1992 John Gilmore (gnu@cygnus.com)
  1796. * main.c (gdb_readline): Avoid printf_filtered, which sets char
  1797. position wrong if used for the prompt.
  1798. * utils.c (puts_filtered): Comment: NOT a puts() replacement!
  1799. Support for accessing arbitrary MIPS stack frames in memory.
  1800. * blockframe.c (get_prev_frame_info): If INIT_FRAME_PC_FIRST is
  1801. set, run it before INIT_EXTRA_FRAME_INFO.
  1802. * stack.c (frame_info): If PRINT_EXTRA_FRAME_INFO defined, call it.
  1803. * mips-tdep.c (init_extra_frame_info): Only clobber the `frame'
  1804. (FP) value in the frame_info struct if it is zero (as from top of
  1805. execution stack).
  1806. (setup_arbitrary_frame): Implement FRAME_SPECIFICATION_DYADIC.
  1807. * mips-xdep.c (fetch_inferior_registers): ZERO_REGNUM always
  1808. comes back as zero. So does FP_REGNUM, as a trigger for
  1809. init_extra_frame_info.
  1810. * tm-mips.h (INIT_FRAME_PC_FIRST): Kludge, FIXME, defined to get
  1811. the program counter set before INIT_EXTRA_FRAME_INFO is run.
  1812. (INIT_FRAME_PC): Defined to null.
  1813. (PRINT_EXTRA_FRAME_INFO): print frame pointer location via symtab.
  1814. (FRAME_SPECIFICATION_DYADIC): Ask for two args in frame command.
  1815. Briefly explain MIPS stacks in GDB.
  1816. Thu Sep 17 03:49:59 1992 John Gilmore (gnu@cygnus.com)
  1817. * copying.awk, copying.c (show_copying_command,
  1818. show_warranty_command): Rename from copying_info, warranty_info,
  1819. to match command function conventions.
  1820. * utils.c (prompt_for_continue): Reinitialize more-counts
  1821. before printing anything, and again afterward. Fix comments.
  1822. (vfprintf_filtered): Eliminate static buffer; use auto buffer,
  1823. or alloca() if needed.
  1824. * rs6000-xdep.c: Use correct conditional (IBM6000_TARGET) to
  1825. detect native versus cross-host.
  1826. Wed Sep 16 21:57:14 1992 Stu Grossman (grossman at cygnus.com)
  1827. * m68k-tdep.c (sun3_saved_pc_after_call): Only do trap check for
  1828. Suns. Rename to m68k_saved_pc_after_call.
  1829. * tm-68k-noun.h, tm-sun3.h (SAVED_PC_AFTER_CALL): Use
  1830. m68k_saved... instead of sun3_saved...
  1831. Wed Sep 16 17:00:07 1992 John Gilmore (gnu@cygnus.com)
  1832. * Makefile.in (update-depend, update-alldeps): Split out of
  1833. setup-to-dist, for convenience in rebuilding the depend and
  1834. alldeps.mak files.
  1835. (assorted): Update to catch straggler files when building gdb.tar.Z.
  1836. Tue Sep 15 01:18:50 1992 John Gilmore (gnu@cygnus.com)
  1837. Preliminary cleanup for splitting host/native/target.
  1838. * infptrace.c (child_resume): Don't deal with NO_SINGLE_STEP
  1839. here; it is dealt with at a gdb-target-independent level.
  1840. * rs6000-tdep.c (single_step): Don't call ptrace, we are a
  1841. high toned routine. Fix return type to void.
  1842. * tm-rs6000.h (AIX_BUGGY_PTRACE_CALL): Zap, we think we fixed it.
  1843. Rich and I believe the "real problem" was that both single_step
  1844. and target_resume were issuing PT_CONTINUE calls. This would
  1845. cause the second PT_CONTINUE to sometimes fail because the process
  1846. was already running.
  1847. * infptrace.c (child_resume): Remove AIX_BUGGY_PTRACE_CALL kludge.
  1848. Mon Sep 14 19:20:43 1992 Stu Grossman (grossman at cygnus.com)
  1849. * energize.c (pty_to_kernel): Must check for EAGAIN as
  1850. termination condition.
  1851. (full_filename): Don't prepend dirname if filename begins with /.
  1852. (breakpoint_notify, kernel_dispatch): Deal with DynamicLoad
  1853. messages properly!!
  1854. (getpty (NCR)): Lotsa bug fixes...
  1855. (kernel_dispatch (case StopRType)): Use kill() instead of
  1856. killpg() so we can deal with losing systems...
  1857. (wait_for_events): Work around NCR select() lossage. It doesn't
  1858. zero out readfds when select() returns zero.
  1859. (energize_initialize): Use I_SETSIG to get SIGIO interrupts. Use
  1860. getcwd() instead of getwd() (NCR getwd() seg faults).
  1861. (energize_wait): Use sigaction() for NCR. Their version of signal()
  1862. is unreliable by default.
  1863. * procfs.c (proc_wait): Call print_sys_errmsg() if we get an
  1864. error from PIOCSWSTOP.
  1865. * breakpoint.c, core.c, exec.c, language.c, main.c, printcmd.c,
  1866. symfile.c, target.c, valprint.c: Use _filtered form of *printf.
  1867. defs.h, utils.c: Make vfprintf_filtered global.
  1868. * energize.c (send_location): New routine to consolidate all
  1869. places where we must notify kernel of where the given pc is.
  1870. (cplus_demangle): Put single-quotes around demangled names.
  1871. (energize_call_command): Call send_location() after doing up,
  1872. down, and frame commands.
  1873. Fri Sep 11 01:34:25 1992 John Gilmore (gnu@sphagnum.cygnus.com)
  1874. * mipsread.c: Clean up some white space.
  1875. (parse_symbol): Handle stEnd of stFile.
  1876. (parse_partial_symbols): Remove old #if 0'd code. Handle stLocal.
  1877. * mips-xdep.c (REGISTER_PTRACE_ADDR, fetch_inferior_registers,
  1878. store_inferior_registers): Replace unexplained numbers
  1879. with manifest constants from a DECstation header file.
  1880. * xm-mips.h (KERNEL_U_ADDR): Get from <machine/param.h>.
  1881. (REGISTER_U_ADDR): Fix up for Ultrix 4.2.
  1882. * tm-tahoe.h, xm-tahoe.h (KERNEL_U_ADDR): Move macro to xm-tahoe.h.
  1883. * stack.c (_initialize_stack): "dow" should be a valid abbreviation
  1884. for "down". Suggested by Richard Stallman.
  1885. Thu Sep 10 15:26:07 1992 Ken Raeburn (raeburn@cambridge.cygnus.com)
  1886. * remote-vx.c: Rename realloc for inclusion of rpc/rpc.h, to avoid
  1887. redeclaration bug on SunOS 4.
  1888. Wed Sep 9 17:36:53 1992 John Gilmore (gnu@cygnus.com)
  1889. * i386-stub.c, sparc-stub.c (getpacket): Actually check checksums.
  1890. * m68k-stub.c: Remove a few extraneous ANSI-isms.
  1891. * remote-nindy.c (nindy_prepare_to_store): Only fetch regs if
  1892. they aren't already there.
  1893. * remote-vx.c (vx_prepare_to_store): Ditto.
  1894. * xcoffread.c: Surround forward struct defns with #ifdef __STDC__.
  1895. Wed Sep 9 16:50:22 1992 John Gilmore (gnu@cygnus.com)
  1896. Removed a large number of changes inserted by Per Bothner
  1897. for C++ support. These will go back in when they've been
  1898. examined.
  1899. Tue Sep 8 21:05:18 1992 Stu Grossman (grossman at cygnus.com)
  1900. * serial.h: Fix prototye for serial_raw().
  1901. * ser-bsd.c, ser-termios.c: Fix args for serial_open() &
  1902. serial_write() to match prototypes.
  1903. * remote-st2000.c (get_reg_name): Make *p be const.
  1904. Tue Sep 8 17:24:52 1992 Ken Raeburn (raeburn@cambridge.cygnus.com)
  1905. * remote-nindy.c (nindy_fetch_registers): Make return type void,
  1906. to agree with target structure field type.
  1907. (nindy_store_registers): Ditto.
  1908. * Makefile (OPCODES): New var, pointing to opcodes library.
  1909. (CLIBS, CDEPS): Include it.
  1910. (saber_gdb): Load opcodes library.
  1911. Tue Sep 8 15:22:06 1992 Stu Grossman (grossman at cygnus.com)
  1912. * a68v-xdep.c (store_inferior_registers): declare as void.
  1913. * infptrace.c: HP/Apollos have ptrace.h in the wrong place.
  1914. * remote-st2000.c: Massive changes to use new serial package.
  1915. Also added 'connect' command to transparantly connect to serial
  1916. port.
  1917. * ser-termios.c: Big cleanup, use nicer coding conventions.
  1918. * ser-bsd.c: New module, serial stuff for BSD systems.
  1919. * serial.h: Define struct ttystate properly using HAVE_TERMIO.
  1920. * xm-apollo68b.h: #define PTRACE_IN_WRONG_PLACE...
  1921. Fri Sep 4 00:34:30 1992 Per Bothner (bothner@rtl.cygnus.com)
  1922. * symfile.h: Declaration of set_demangling_style() moved
  1923. here from demangle.h (which is now in ../include).
  1924. * i386-xdep.c: Update comment.
  1925. Thu Sep 3 13:44:46 1992 K. Richard Pixley (rich@sendai.cygnus.com)
  1926. * symtab.c (completion_list_add_symbol): restructured to optimize
  1927. for time. First clip names that cannot match. Then clip any
  1928. names we've already considered. Drop a redundant strncpy. Drop
  1929. a redundant malloc and associated free for demangled names.
  1930. Thu Sep 3 09:17:05 1992 Stu Grossman (grossman at cygnus.com)
  1931. * a68v-xdep.c (store_inferior_registers): Define as type void.
  1932. * configure.in: Add host m68k-apollo*-bsd*.
  1933. * demangle.c (struct demanglers): Use enum instead of constant
  1934. value to keep braindamaged HP/Apollo compiler happy.
  1935. Wed Sep 2 20:45:31 1992 Per Bothner (bothner@rtl.cygnus.com)
  1936. * utils.c (strcmp_iw): Add a hack to allow "FOO(ARGS)" to
  1937. match "FOO". This allows 'break Foo' to work when Foo is
  1938. a mangled C++ function. (See comment before function.)
  1939. Wed Sep 2 13:45:27 1992 John Gilmore (gnu@cygnus.com)
  1940. * config/rs6000.mh (MH_CFLAGS): Circumvent IBM <rpc/rpc.h> bug,
  1941. for files in vx-share/*.c.
  1942. * xm-rs6000.h (fd_set): Circumvent the rs6000.mh circumvention,
  1943. for normal GDB source files.
  1944. * Makefile.in (VERSION): Roll to 4.6.6.
  1945. * tm-vx68.h, tm-es1800.h: Use tm-68k.h rather than tm-sun3.h.
  1946. * tm-sun3.h: Remove STACK_END_ADDR, no longer used.
  1947. * tm-sun3os4.h: Update comments.
  1948. * xm-delta88.h: Remove STACK_END_ADDR.
  1949. Wed Sep 2 01:18:31 1992 John Gilmore (gnu@cygnus.com)
  1950. * Makefile.in (VERSION): Roll to 4.6.5.
  1951. * infrun.c: Lint for recent `handle' changes.
  1952. * ser-termios.c, ser-go32.c: Remove DEFUN crap, clean up.
  1953. * serial.h (EXFUN): Remove all uses, convert to PARAMS.
  1954. * config/sun4os4.mh: Include ser-termios.o. FIXME, all .mh files
  1955. should include a ser-XXX.o module.
  1956. * dbxread.c (elfstab_build_psymtabs): Remove DEFUN crap.
  1957. * defs.h, i960-pinsn.c, remote-hms.c: Replace CONST with simple const.
  1958. * configure.in: Map unrecognized sun 68k's, sun sparcs, into
  1959. known suns in configure.in, rather than mapping them to unique
  1960. config files that happen to duplicate other config files.
  1961. * config/sun3.{mh,mt}: Remove (use identical sun3os4.*).
  1962. * config/sun4.{mh,mt}: Remove (use identical sun4os4.*).
  1963. Wed Sep 2 00:10:43 1992 John Gilmore (gnu@cygnus.com)
  1964. * configure.in (*-*-sunos*): Use trailing * to match all
  1965. sub-variants of SunOS, e.g. sunos4* to match sunos4.1.1.
  1966. (sparc-*-sunos3): Remove host & target. Sunos3 never shipped
  1967. in production on Sun-4.
  1968. ({a29k,i[34]86,i960}-*-elf): Add targets, equivalent to coff.
  1969. (m68k-*-{aout,coff,elf}): Add targets, w/new config and tm files.
  1970. (sparc-*-{aout,coff,elf}): Add targets, w/new config and tm files.
  1971. * config/m68k-un.mt, config/m68k-noun.mt, config/sparc-un.mt,
  1972. config/sparc-noun.mt: New target configs for embedded.
  1973. * config/sun4os3.{mh,mt}: Remove, never existed in production.
  1974. * tm-68k-un.h, tm-68k-noun.h, tm-spc-un.h, tm-spc-noun.h: New
  1975. target definitions for embedded with and without underlines on
  1976. identifiers.
  1977. * tm-sparc.h, tm-sun2.h, tm-sun3.h: Delete NAMES_HAVE_UNDERSCORE:
  1978. not a parameter of the CPU, but of the development environment.
  1979. * tm-es1800.h, tm-sunos.h, tm-vx68.h: Add NAMES_HAVE_UNDERSCORE.
  1980. Tue Sep 1 17:31:45 1992 John Gilmore (gnu@cygnus.com)
  1981. * breakpoint.c (breakpoint_re_set): Avoid setting source symtab
  1982. (which involves reading in main's symtab) if we have no breakpoints.
  1983. Mon Aug 31 13:47:45 1992 Fred Fish (fnf@cygnus.com)
  1984. * dwarfread.c (cu_language): New local variable to record
  1985. language for current compilation unit being processed.
  1986. * dwarfread.c (set_cu_language): New local function to decode
  1987. and record language for current compilation unit being processed.
  1988. * dwarfread.c (synthesize_typedef): Add local function to
  1989. synthesize a typedef for C++ classes, structs, unions, and
  1990. enumerations.
  1991. * dwarfread.c (read_structure_scope): Synthesize typedefs
  1992. for C++ classes, structs and unions.
  1993. * dwarfread.c (read_enumeration): Synthesize typedefs for
  1994. C++ enumerations.
  1995. * dwarfread.c (read_file_scope): Call set_cu_language to
  1996. record language for current compilation unit. After symtab
  1997. is built, save this recorded language.
  1998. * dwarfread.c (process_dies, add_partial_symbol, struct_type,
  1999. scan_partial_symbols, new_symbol): Recognize TAG_class_type.
  2000. * dwarfread.c (add_partial_symbol): Synthesize partial symbol
  2001. typedefs for C++ classes, structs, unions, and enumerations.
  2002. * dwarfread.c (scan_compilation_units): Call set_cu_language
  2003. to record language for current compilation unit.
  2004. * dwarfread.c (scan_partial_symbols): Call add_enum_psymbol here
  2005. for TAG_enumeration_types, rather than in add_partial_symbol.
  2006. * dwarfread.c (add_partial_symbol): Combine TAG_enumeration_type
  2007. case with class, struct, and union type cases, now that they are
  2008. the same. Remove tests for non-NULL name attributes, now done
  2009. by callers.
  2010. * gdbtypes.h (TYPE_CODE_CLASS): Add type for C++ classes, but
  2011. treat as alias for TYPE_CODE_STRUCT for now.
  2012. Sun Aug 30 21:32:17 1992 Ian Lance Taylor (ian@cygnus.com)
  2013. * Makefile.in: map "gdb" through program_transform_name when
  2014. installing.
  2015. Sun Aug 30 21:18:51 1992 Fred Fish (fnf@cygnus.com)
  2016. * {i386-tdep.c, m68k-tdep.c, mips-tdep.c, sparc-tdep.c}
  2017. (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
  2018. Use "regi" for local indexing through register numbers, reserving
  2019. "regno" for the name of a specific register passed as an input
  2020. parameter. Fix bug propagated through all versions that sometimes
  2021. used regno as an index when it should have been regi, thus using
  2022. -1 as an index in some cases.
  2023. Sun Aug 30 18:15:17 1992 Per Bothner (bothner@rtl.cygnus.com)
  2024. * cplus-dem.c, demangle.h: Moved to ../libiberty and ../include,
  2025. respectively, so same demangler can be used by other programs.
  2026. * Makefile.in: Remove demangler stuff.
  2027. * Makefile.in (depend): Pass -I../readline (needed for main.c).
  2028. * demangle.c (_initialize_demangler): Tell demangler which
  2029. CPLUS_MARKER to assume.
  2030. Fri Aug 28 13:13:33 1992 John Gilmore (gnu@cygnus.com)
  2031. RS/6000 portability changes (for hosting cross-debuggers).
  2032. * breakpoint.c (fixup_breakpoints): Re-kludge to IBM6000_TARGET.
  2033. * buildsym.c, rs6000-xdep.c, rs6000-tdep.c, tm-rs6000.h,
  2034. xcoffexec.c, xcoffread.c: Rename aixcoff to xcoff everywhere.
  2035. * printcmd.c (print_frame_args): Remove an RS/6000 dependency.
  2036. * stabsread.c (define_symbol): Remove RS/6000 dependencies.
  2037. * tm-rs6000.h (ATTACH_DETACH): Remove: host-dependent.
  2038. (PTRACE_ATTACH, PTRACE_DETACH): Remove: host-dep.
  2039. (NO_SINGLE_STEP): Add, target-dependent.
  2040. (loadinfotextindex): Lowercase, remove "aix_".
  2041. * xm-rs6000.h: Add <sys/ptrace.h> for infptrace.c.
  2042. (NO_SINGLE_STEP): Remove, target-dependent.
  2043. * xcoffexec.c (vmap_symtab): Cleanup #if 0'd code.
  2044. * xcoffread.c: Only build file if RS/6000 native GDB.
  2045. (build_function_symbol): Remove #if 0'd code.
  2046. * rs6000-tdep.c: Cleanup. Add static fn protos.
  2047. Use CORE_ADDR for addresses throughout. Make void fns void.
  2048. (pop_dummy_frame): Add FIXME about bogosity of design here.
  2049. (rs6000_struct_return_address): Ditto.
  2050. (frameless_function_invocation, frame_get_cache_fsr,
  2051. frame_initial_stack_address, xcoff_relocate_symtab,
  2052. xcoff_init_loadinfo, free_loadinfo, xcoff_add_toc_to_loadinfo,
  2053. add_text_to_loadinfo, find_toc_address): Move from xdep file.
  2054. Use CORE_ADDRs. Change identifiers to lowercase.
  2055. * rs6000-xdep.c: Make whole file conditional on native RS/6000,
  2056. supplying dummy routines if non-native. Add prototype for
  2057. static exec_one_dummy_insn. Move a mess of functions to
  2058. rs6000-tdep.c (as above). Remove #if 0'd code.
  2059. * config/rs6000.mh (XDEPFILES): Move xcoffexec.o to target side.
  2060. (XM_CLIBS): Add -lm to circumvent AIX 3.2 libc ldexp bug.
  2061. * config/rs6000.mt (TDEPFILES): Adopt xcoffexec.o.
  2062. * gdbtypes.h (TYPE_ALLOC): Parenthesize result to avoid problems
  2063. for callers.
  2064. * vx-share/README, nindy-share/README: New files describing
  2065. how these directories' code is shared, and with whom.
  2066. Thu Aug 27 20:04:56 1992 John Gilmore (gnu@cygnus.com)
  2067. * configure.in (target configurations): Reformat into table.
  2068. Remove unsupp. Amigados host and target. Ditto Mach 386 target.
  2069. * tm-altosgas.h, tm-i386v-g.h: Remove ancient coff encap configs.
  2070. * config/{altosgas.mt, i386v-g.mt, i386v32-g.mt}: Ditto.
  2071. * config/{i386sco.mt,i386v32.mt}: Remove; identical to i386v.mt.
  2072. * config/{go32.mt,i960.mt}: Remove; they only printed error msgs.
  2073. * config/nindy960.mt: Remove useless MT_CFLAGS setting.
  2074. * config/i386aout.mt: Use tm-i386v.h, not tm-i386v-g.h.
  2075. * Makefile.in (config-check): Add command to check whether
  2076. configure.in is consistent with config/*.
  2077. Wed Aug 26 21:10:52 1992 John Gilmore (gnu@cygnus.com)
  2078. * configure.in (host configurations): Reformat nested cases into
  2079. easy-to-maintain table.
  2080. (m68k-altos-*, i386v*): We don't care whether coff encap is used.
  2081. config/{altosgas.mh, i386v-g.mh, i386v32-g.mh}: Remove.
  2082. Wed Aug 26 16:02:01 1992 Fred Fish (fnf@cygnus.com)
  2083. * cplus-dem.c: Reorder args to most local functions to make them
  2084. follow the consistent pattern of struct work_stuff pointer first,
  2085. followed by pointer into string being demangled, followed by
  2086. pointer to the string where the result is being stored, followed
  2087. by other args. Also generally replace most variables of name
  2088. "type" with "mangled" for consistency. They all pointed to the
  2089. same string but half were one name and half the other.
  2090. * cplus-dem.c (LONGERNAMES): Remove #ifndef's.
  2091. * cplus-dem.c (demangle_qualified): Rewrite to clean up and allow
  2092. use whenever a qualified name is being demangled.
  2093. * cplus-dem.c (do_type): Qualified names are treated similarly
  2094. to fundamental types, not as modifiers of fundamental types.
  2095. Mon Aug 24 20:44:38 1992 Stu Grossman (grossman at cygnus.com)
  2096. * configure.in: Add sparclite as a target.
  2097. * sparc-stub.c (handle_exception): Flush instruction cache just
  2098. before returning to the user. (hexToInt): Fix overzealous cleanup.
  2099. Mon Aug 24 11:57:13 1992 Fred Fish (fnf@cygnus.com)
  2100. * infrun.c (handle_command): Rewrite to allow multiple signal
  2101. numbers, signal number ranges, and to recognize "all" to mean all
  2102. signals except those used by the debugger.
  2103. * infrun.c (SET_SIGS, UNSET_SIGS): Macros used in handle_command
  2104. to set or reset actions for specific signals.
  2105. Sun Aug 23 17:10:07 1992 Fred Fish (fnf@cygnus.com)
  2106. * coffread.c (decode_type): Call alloc_type to alloc new
  2107. types.
  2108. * stabsread.c (read_array_type, read_range_type, define_symbol):
  2109. Call alloc_type to alloc new types.
  2110. * stabsread.c (define_symbol): Move dbl_valu symbol field data
  2111. from type_obstack to symbol_obstack.
  2112. * stabsread.c (define_symbol): Move typedef_sym from type_obstack
  2113. to symbol_obstack.
  2114. * gdbtypes.h (TYPE_ALLOC): New macro to allocate space for data
  2115. associated with a type, using the same mechanism as was used to
  2116. allocate space for the type structure itself.
  2117. * coffread.c (patch_type, coff_read_struct_type,
  2118. coff_read_enum_type): Use TYPE_ALLOC.
  2119. * dwarfread.c (struct_type): Use TYPE_ALLOC.
  2120. * gdbtypes.c (create_array_type, check_stub_method,
  2121. allocate_cplus_struct_type): Use TYPE_ALLOC.
  2122. * mipsread.c (parse_symbol, parse_type): Use TYPE_ALLOC.
  2123. * stabsread.c (read_struct_type, read_array_type, read_enum_type,
  2124. read_range_type): Use TYPE_ALLOC.
  2125. Sun Aug 23 11:04:08 1992 Fred Fish (fnf@cygnus.com)
  2126. * breakpoint.c (breakpoint_re_set): Select a default source
  2127. symtab if one is not currently selected.
  2128. * utils.c (query): Call wrap_here before building the output
  2129. query string, to turn off wrapping and flush any buffered output.
  2130. Otherwise our query may end up in the wrap buffer and never be
  2131. seen by the user.
  2132. * eval.c (evaluate_subexp): Report error when attempting to
  2133. evaluate subscript for types without a target type, rather
  2134. than dumping core by using the NULL pointer.
  2135. * symfile.c (symbol_file_command): Forget current_source_symtab
  2136. and current_source_line when discarding symbol table.
  2137. Sat Aug 22 22:33:20 1992 John Gilmore (gnu@cygnus.com)
  2138. Bug fixes from Andrew Heybey <ath@lcs.mit.edu>.
  2139. * tm-mips.h (REGISTER_VIRTUAL_TYPE): Float regs are float type.
  2140. * mips-tdep.c (mips_print_register): Alloc enough space for two regs.
  2141. Fri Aug 21 15:17:03 1992 Stu Grossman (grossman at cygnus.com)
  2142. * remote.c (remote_open): Fix baud rate setting to make -b flag
  2143. work. (remote_wait): Change 'T' message parser to deal with new
  2144. improved format which allows stub to send an arbitrary bunch of
  2145. registers.
  2146. * sparc-stub.c: General cleanups. (trap_low, handle_exception):
  2147. make all this re-entrant by storing all state on the stack. Clean
  2148. up memory error trapping. (computeSignal, set_debug_traps):
  2149. make it all table driven. Make a start at a baud rate setting command.
  2150. Wed Aug 19 10:23:27 1992 Ian Lance Taylor (ian@cygnus.com)
  2151. * m68k-pinsn.c: handle new operand type 'r', introduced for cas2.
  2152. * remote-vx.c: redefine malloc to avoid buggy declaration on
  2153. RS/6000 <rpc/types.h>.
  2154. xm-rs6000.h: include <sys/select.h> to define fd_set for
  2155. <rpc/svc.h> on RS/6000.
  2156. Tue Aug 18 14:48:24 1992 Ian Lance Taylor (ian@cygnus.com)
  2157. * Makefile.in: added FLAGS_TO_PASS variable, and passed it to
  2158. recursive invocations of make. Always create installation
  2159. directories.
  2160. Mon Aug 17 18:29:58 1992 Per Bothner (bothner@rtl.cygnus.com)
  2161. * m68k-pinsn.c: Minor fix in style of output (don't use
  2162. range to indicate floating point control registers).
  2163. Sat Aug 15 02:58:03 1992 John Gilmore (gnu@cygnus.com)
  2164. * m68k-pinsn.c: Surround extended support with #ifdef HAVE_68881.
  2165. * infcmd.c (registers_info): Handle multiple register names.
  2166. Changes inspired by Roland McGrath.
  2167. Sat Aug 15 02:28:52 1992 Stu Grossman (grossman at cygnus.com)
  2168. * sparc-stub.c: New file. Mix it with your SPARClite
  2169. application, and it will speak GDB remote protocol!
  2170. * remote.c (remote_wait): Change 'T' (expedited reply) message to
  2171. deal with arbitrary registers. Needed for sparc-stub.
  2172. Fri Aug 14 12:11:25 1992 Fred Fish (fnf@cygnus.com)
  2173. * cplus-dem.c (cplus_markers): Add table for gnu style and
  2174. use throughout, in place of compile time constant CPLUS_MARKER.
  2175. * cplus-dem.c (ARM_VTABLE_STRING, ARM_VTABLE_STRLEN): Add.
  2176. * cplus-dem.c (cfront_special): New function, as suggested
  2177. by pfieland@stratus.com.
  2178. * cplus-dem.c (forget_types): New function.
  2179. * cplus-dem.c (cplus_demangle): Call gnu_special, moved from
  2180. demangle_prefix().
  2181. * cplus-dem.c (mop_up): Call forget_types().
  2182. * cplus-dem.c (AUTO_DEMANGLING, GNU_DEMANGLING, LUCID_DEMANGLING):
  2183. Use throughout, instead of checking current_demangling_style.
  2184. * cplus-dem.c (demangle_signature): When finding an explicit
  2185. start of function args, forget all remembered types for
  2186. lucid/cfront style demangling.
  2187. * cplus-dem.c (demangle_prefix): In a sequence of two or more
  2188. underbar characters, use last pair as the delimiter. Hoist
  2189. gnu_special() call up to cplus_demangle(). Call cfront_special()
  2190. when appropriate.
  2191. * cplus-dem.c (cplus_special): Fix virtual table name demangling
  2192. for inherited classes.
  2193. * cplus-dem.c (demangle_args): Document quirks of numbered
  2194. references to previously seen types.
  2195. * dbxread.c (read_ofile_symtab, process_one_symbol):
  2196. Use AUTO_DEMANGLING rather than explicitly checking
  2197. current_demangling_style.
  2198. * demangle.h: Add some comments.
  2199. * demangle.h (AUTO_DEMANGLING, GNU_DEMANGLING, LUCID_DEMANGLING,
  2200. CFRONT_DEMANGLING): New macros.
  2201. * dwarfread.c (LCC_PRODUCER): Remove trailing space, which is
  2202. not found in the actual producer string produced by lcc.
  2203. * dwarfread.c (handle_producer): Use AUTO_DEMANGLING rather
  2204. than explicitly checking current_demangling_style.
  2205. Thu Aug 13 11:54:46 1992 John Gilmore (gnu at cygnus.com)
  2206. * breakpoint.c (enable_longjmp_breakpoint,
  2207. disable_longjmp_breakpoint, set_longjmp_resume_breakpoint):
  2208. Check for duplicate breakpoints at the same address. Bug report
  2209. and preliminary fix from Dave Morrison, <drmorris@us.oracle.com>.
  2210. Wed Aug 12 11:14:58 1992 Fred Fish (fnf@cygnus.com)
  2211. * buildsym.c (end_symtab): Document that end_symtab can return
  2212. NULL under non-error conditions.
  2213. * dwarfread.c (read_file_scope): Guard against dereferencing NULL
  2214. returned from end_symtab for empty compilation units.
  2215. Tue Aug 11 02:49:39 1992 John Gilmore (gnu at cygnus.com)
  2216. * am29k-tdep.c: Lint from DECstation compiler.
  2217. * mem-break.c: Restore test of BREAKPOINT size that Fred removed.
  2218. As the man page says, "Sometimes you just can't get lint to shut
  2219. up". That doesn't mean you should blow away the code it won't
  2220. shut up about.
  2221. * mips-xdep.c: Revise stubbing-out of code until Rich cleans
  2222. it up over the next few weeks. Make mips x 29k build.
  2223. * tm-29k.h (CALL_DUMMY): Make it work on cross-endian hosts.
  2224. (FIX_CALL_DUMMY): Comment in the patching of the breakpoint,
  2225. but leave it as a comment because the breakpoint instruction
  2226. is not easily accessible at this moment (it's static, and if
  2227. we define one here, it goes into every file compiled).
  2228. Mon Aug 10 22:27:19 1992 Fred Fish (fnf@cygnus.com)
  2229. * Makefile.in (VERSION): Bump to 4.6.3.
  2230. * dwarfread.c (scan_partial_symbols): Skip over DIE's within
  2231. function scopes when building partial symbol tables.
  2232. * objfiles.c (open_existing_mapped_file): Make it clear in
  2233. warning message that out of date mapped files are ignored.
  2234. * symtab.c (lookup_symtab_1, lookup_symbol): Print compilation
  2235. unit source file name in error message.
  2236. Sat Aug 8 23:12:22 1992 Fred Fish (fnf@cygnus.com)
  2237. * dwarfread.c (struct dieinfo): Add has_at_byte_size.
  2238. * dwarfread.c (struct_type): In absence of AT_byte_size for
  2239. bitfield, use size of object of member's type for the size of
  2240. the anonymous object containing the bit field.
  2241. * dwarfread.c (completedieinfo): Set has_at_byte_size when
  2242. an AT_byte_size attribute is seen.
  2243. * mipsread.c (psymtab_to_symtab_1): Fix misspelled cast to
  2244. union aux_ext (was aux_ent).
  2245. * i386-pinsn.c (print_insn): Cast 2'nd arg to read_memory from
  2246. unsigned char* to char*, for Lucid compiler.
  2247. * i386-tdep.c (codestream_fill): Fix cast of 2'nd arg to read_memory
  2248. to be correct type (from unsigned char* to char*).
  2249. * valprint.c (type_print_derivation_info): Minor tweak to placement
  2250. of commas in derived class printing.
  2251. * xcoffread.c (builtin_type): Fix misspelling in fatal message.
  2252. Fri Aug 7 11:18:23 1992 Steve Chamberlain (sac@thepub.cygnus.com)
  2253. * xm-go32.h: Define LSEEK_NOT_LINEAR
  2254. * source.c (find_source_lines): if LSEEK_NOT_LINEAR is defined
  2255. then work out the lseek positions of newlines by running through
  2256. the file and `tell'ing. This makes source file listing work on
  2257. OS's where the relationship between physical position in file and
  2258. canonical position is indeterminate, eg VMS and DOS.
  2259. Thu Aug 6 10:56:01 1992 Fred Fish (fnf@cygnus.com)
  2260. * stabsread.c: Ensure that all members of all allocated structures
  2261. are initialized to known state to avoid hard to find bugs with gdb
  2262. using fields containing random data.
  2263. * buildsym.c (start_subfile): Compact dirname initialization.
  2264. * buildsym.c (patch_subfile_names): New function.
  2265. * buildsym.c (end_symtab): Make copy of dirname on symbol obstack.
  2266. * buildsym.c (end_symtab): Free all malloc'd subfile fields.
  2267. * buildsym.h (patch_subfile_names): Add prototype.
  2268. * dbxread.c (process_one_symbol): Call patch_subfile_names.
  2269. Wed Aug 5 01:42:40 1992 John Gilmore (gnu at cygnus.com)
  2270. * remote-udi.c: Update comments.
  2271. * remote.c (getpkt): Only force retransmission ten times;
  2272. after that, assume bug in target code, and handle pkt anyway.
  2273. Mon Aug 3 17:06:20 1992 Stu Grossman (grossman at cygnus.com)
  2274. * configure.in: Add support for apollo 68k under BSD environment.
  2275. * xm-apollo68b.h: New file to support above.
  2276. Mon Aug 3 00:25:56 1992 Fred Fish (fnf@cygnus.com)
  2277. * configure.in: Recognize i486 host cpu.
  2278. * valprint.c (type_print_derivation_info): Print derivation info
  2279. in same form as class declarations in source.
  2280. * valprint.c (type_print_varspec_suffix): Split arg printing
  2281. code out to type_print_args function.
  2282. Sat Aug 1 13:32:58 1992 Fred Fish (fnf@cygnus.com)
  2283. * dwarfread.c (struct dieinfo): Remove obsolete at_visibility,
  2284. at_import, at_frame_base.
  2285. * dwarfread.c (completedieinfo): Remove cases for obsolete
  2286. AT_visibility, AT_import, and AT_frame_base attributes.
  2287. * breakpoint.h (BREAKPOINT_MAX): Increase from 10 to 16 for
  2288. i860, which can keep up to 4 shadow breakpoints.
  2289. * tm-stratus.h (USG): Define.
  2290. * tm-stratus.h (TARGET_BYTE_ORDER): Define to BIG_ENDIAN.
  2291. * xm-stratus.h (HOST_BYTE_ORDER): Define to BIG_ENDIAN.
  2292. * xm-stratus.h (xm-sysv4.h): Include, name changed from xm-svr4.h.
  2293. * xm-stratus.h (NO_JOB_CONTROL): Remove define.
  2294. * config/stratus.mt (TDEPFILES): Include files available from
  2295. stratus that are not yet in release pending receipt of paperwork
  2296. at FSF.
  2297. * buildsym.c (finish_block): Minor code format change.
  2298. * gdbtypes.h (struct field): Add to comments.
  2299. * gdbtypes.h (virtual_field_bits): Add to comments.
  2300. * objfiles.c (allocate_objfile): Change obstack interface to
  2301. match FSF merging efforts.
  2302. Mon Jul 27 21:14:44 1992 Fred Fish (fnf@cygnus.com)
  2303. * Makefile.in (VERSION): Bump to 4.6.2.
  2304. * Makefile.in (SFILES_MAINDIR): Add stabsread.c
  2305. * Makefile.in (OBS): Add stabsread.o
  2306. * Makefile.in (stabsread.o): Add build rule.
  2307. * stabsread.c, stabsread.h: New files.
  2308. * buildsym.c: Split out stabs specific support to stabsread.c.
  2309. * buildsym.h: Split out stabs specific support to stabsread.h.
  2310. * dbxread.c (stabsread.h): Include
  2311. * dbxread.c (dbx_new_init): Call stabsread_new_init.
  2312. * dbxread.c (dbx_psymtab_to_symtab_1): Call stabsread_init.
  2313. * dbxread.c (read_ofile_symtab): Call end_stabs.
  2314. * dbxread.c (process_one_symbol): Call end_stabs and start_stabs.
  2315. * dbxread.c (elfstab_build_psymtabs): Call stabsread_new_init.
  2316. * dwarfread.c (psymtab_to_symtab_1): Call buildsym_init, add
  2317. really_free_pendings to cleanups.
  2318. * elfread.c (elf_new_init): Call stabsread_new_init.
  2319. * gdbtypes.c: Small changes to maintenance commands.
  2320. * mipsread.c (stabsread.h): Include.
  2321. * mipsread.c (psymtab_to_symtab_1): Call end_stabs.
  2322. * xcoffread.c (stabsread.h): Include.
  2323. * xcoffread.c (global_stabs): Remove redundant def.
  2324. * xcoffread.c (read_xcoff_symtab): Call start_stabs and end_stabs.
  2325. Wed Jul 22 21:39:33 1992 Fred Fish (fnf@cygnus.com)
  2326. * lmode_inferior_valid, lmode_ours_valid: New static vars.
  2327. * inflow.c (terminal_init_inferior, terminal_inferior,
  2328. terminal_ours_1, initialize_inflow): Record and use state
  2329. of lmode_inferior_valid and lmode_ours_valid.
  2330. Wed Jul 22 04:23:03 1992 D. V. Henkel-Wallace (gumby@cygnus.com)
  2331. * es1800.c: use FREAD|FWRITE rather than _FREAD|_FWRITE.
  2332. include <sgtty.h> on USG. (from sef).
  2333. * depend: es1800 dependency needed here.
  2334. Mon Jul 20 21:09:53 1992 Fred Fish (fnf@cygnus.com)
  2335. * buildsym.c (read_struct_type): Initialize structs allocated
  2336. with alloca, to avoid using random values from stack later on.
  2337. * defs.h (fprintf_filtered): Add prototype.
  2338. * gdbtypes.c (check_stub_method): Fix misleading comments.
  2339. * gdbtypes.c (print_arg_types, dump_fn_fieldlists): New maint
  2340. support functions.
  2341. * gdbtypes.c (print_cplus_stuff, recursive_dump_type): Many
  2342. small changes to maint support functions.
  2343. * gdbtypes.h (cplus_struct_type): Reorganize member ordering
  2344. for some fields and expand comments.
  2345. * objfiles.c (allocate_objfile): Use new obstack_alloc_arg
  2346. macro and track change to obstack_full_begin macro.
  2347. * utils.c (fprintfi_filtered): New function.
  2348. * valprint.c (type_print_base): Fixup field printing to not
  2349. print extraneous lines and not print bogus "no data fields"
  2350. messages for C++ classes with no data members. Also use new
  2351. fprintfi_filtered function.
  2352. Mon Jul 20 11:25:18 1992 D. V. Henkel-Wallace (gumby@cygnus.com)
  2353. * configure.in: es1800 ok for 68000 too.
  2354. Sat Jul 18 15:48:58 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
  2355. * configure.in: echo error messages to stderr, not stdout
  2356. Fri Jul 17 17:07:24 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
  2357. * configure.in: recognize hppa* instead of hppa
  2358. Fri Jul 17 16:52:04 1992 Stu Grossman (grossman at cygnus.com)
  2359. * energize.c: Second cut at DynamicLoad message handling.
  2360. * energize.c: Relativize pathnames in #include statements.
  2361. * (kernel_dispatch): Better error messages for unknown protocol
  2362. messages.
  2363. * (kernel_dispatch): First cut at DynamicLoad message handling.
  2364. * Makefile.in: Remove -I../readline from all compilations,
  2365. include a special case for main.o instead.
  2366. Fri Jul 17 10:14:56 1992 Fred Fish (fnf@cygnus.com)
  2367. * eval.c (evaluate_subexp): Ask lookup_struct_elt_type to call
  2368. error if it fails to find a member type, rather than return NULL
  2369. and trigger a coredump.
  2370. * symtab.c (lookup_symbol, lookup_demangled_block_symbol,
  2371. lookup_demangled_partial_symbol,): Ask demangle_and_match to
  2372. match on complete demanglings, including argument lists for member
  2373. functions, rather than just accepting the first demangling that
  2374. matches the class and function name.
  2375. * dwarfread.c (read_file_scope): Pass contents of AT_comp_dir
  2376. to start_symtab as the directory name.
  2377. * dwarfread.c (completedieinfo): Strip off any leading hostname
  2378. portion of the AT_comp_dir attribute string. Gdb doesn't know
  2379. what to do with them (FIXME).
  2380. Thu Jul 16 13:37:09 1992 Stu Grossman (grossman at cygnus.com)
  2381. * breakpoint.c (commands_command): Simplify code a bit, remove
  2382. unnecessary fflush().
  2383. * Makefile.in (OTHERS): Add gcc.patch.
  2384. * partial-stab.h (N_SO): Fix handling of redundant SOs (again...)
  2385. Thu Jul 16 12:07:40 1992 Fred Fish (fnf@cygnus.com)
  2386. * dwarfread.c (LCC_PRODUCER): Change to match current NCR
  2387. lcc producer string.
  2388. Thu Jul 16 11:40:55 1992 Stu Grossman (grossman at cygnus.com)
  2389. * WHATS.NEW renamed to NEWS.
  2390. Wed Jul 15 11:37:31 1992 Fred Fish (fnf@cygnus.com)
  2391. * dbxread.c, dwarfread.c: Re-enable experimental code to
  2392. automatically select demangling style.
  2393. * demangle.c (DEFAULT_DEMANGLING_STYLE): Rename from simply
  2394. DEMANGLING_STYLE, to make more descriptive. Revert back to
  2395. "auto" as default. Comment use.
  2396. * Makefile.in (DEMANGLING_STYLE, DEMANGLE_OPTS): Remove.
  2397. * Makefile.in (${DEMANGLER}.o) Remove target and special
  2398. compilation rule.
  2399. Tue Jul 14 23:05:14 1992 Fred Fish (fnf@cygnus.com)
  2400. * Makefile.in (VERSION): Bump to 4.6.1 (post-release versions).
  2401. Tue Jul 14 19:26:54 1992 Stu Grossman (grossman at cygnus.com)
  2402. * Makefile.in, demangle.c: Change default demangling style to
  2403. gnu.
  2404. * Makefile.in: Update version to 4.6 !!!
  2405. * README, WHATS.NEW: Update for 4.6.
  2406. Tue Jul 14 16:59:46 1992 Ken Raeburn (raeburn@cygnus.com)
  2407. * i960-tdep.c (frame_args_address): If arg pointer can't be found,
  2408. use frame address.
  2409. * buildsym.c (read_struct_type): Don't die on TYPE_CODE_UNDEF
  2410. nodes as base classes.
  2411. Tue Jul 14 00:12:30 1992 Stu Grossman (grossman at cygnus.com)
  2412. * alldeps.mak, depend: Update.
  2413. * xcoffread.c: Add decl for section_offset to keep prototype happy.
  2414. * Makefile.in (VERSION): 4.5.9.
  2415. * xm-hp300bsd.h: Add decl for strdup().
  2416. * mips-tdep.c (heuristic_proc_desc): Fill in proc start addr in
  2417. PDR. Cleanup a few things, fix compilation warnings.
  2418. Mon Jul 13 19:06:54 1992 Fred Fish (fnf@cygnus.com)
  2419. * Makefile.in (DEMANGLING_STYLE): New define to set default
  2420. demangling style for C++. Defaults to "auto".
  2421. * Makefile.in (DEMANGLE_OPTS): Use DEMANGLING_STYLE.
  2422. * Makefile.in (SFILES_MAINDIR): Add demangle.c
  2423. * Makefile.in (OBS): Add demangle.o
  2424. * cplus-dem.c (GNU_DEMANGLING, ARM_DEMANGLING, LUCID_DEMANGLING):
  2425. Remove compile time decisions about demangling style and replace
  2426. with runtime decisions using current_demangling_style.
  2427. * cplus-dem.c (main): Expand code included during building of
  2428. standalone demangler to recognize demangling style options.
  2429. * dbxread.c (demangle.h): Include.
  2430. * dbxread.c (read_ofile_symtab, process_one_symbol): Set GNU C++
  2431. demangling style if processing g++ code and current demangling style
  2432. is auto (Note: this feature currently disabled.)
  2433. * demangle.c: New file, generic demangling control.
  2434. * demangle.h (demangling_styles): New enumeration to select one
  2435. of several demangling styles. Also define string names for each
  2436. style.
  2437. * demangle.h (set_demangling_style): Add prototype.
  2438. * dwarfread.c (demangle.h): Include.
  2439. * dwarfread.c (GPLUS_PRODUCER, LCC_PRODUCER, CFRONT_PRODUCER):
  2440. New producer string prefixes to recognize.
  2441. * dwarfread.c (handle_producer): Consolidate actions for specific
  2442. producers. Set demangling style based on producer string if
  2443. current style is auto. (Note: this feature currently disabled.)
  2444. * config/ncr3000.mt (DEMANGLE_OPTS): Remove.
  2445. Sat Jul 11 18:23:58 1992 John Gilmore (gnu at cygnus.com)
  2446. * config/sun4sol2.mh: Remove -xs flag, default INSTALL to cp.
  2447. Fri Jul 10 13:58:34 1992 Per Bothner (bothner@rtl.cygnus.com)
  2448. * gdbtypes.c, gdbtypes.h: New function lookup_signed_typename.
  2449. * c-exp.y: Call lookup_signed_typename() after seeing
  2450. "signed". This handles "signed char" correctly.
  2451. * c-exp.y: Recognize (but ignore) 'const' and 'volatile'
  2452. keywords before a type specifier.
  2453. Fri Jul 10 10:19:52 1992 Fred Fish (fnf@cygnus.com)
  2454. * command.c (lookup_cmd_1): Clarify descriptive comments.
  2455. * gdbcmd.h (maintenanceprintlist): Add declaration.
  2456. * main.c (maintenanceprintlist): Add definition.
  2457. * main.c (gdb_completer_command_word_break_characters): Add.
  2458. * main.c (symbol_completion_function): Switch completer word
  2459. break character sets dynamically, based on whether completion is
  2460. being done on commands or on something else.
  2461. * main.c (initialize_cmd_lists): Init maintenanceprintlist.
  2462. * maint.c: Include demangle.h.
  2463. * maint.c (maintenance_demangle): New function.
  2464. * maint.c (maintenance_print_command): New function.
  2465. * maint.c (_initialize_maint_cmds): Reorganize some commands
  2466. under new maintenance print subcommand.
  2467. Thu Jul 9 19:05:27 1992 Per Bothner (bothner@rtl.cygnus.com)
  2468. * gdbtypes.c (lookup_struct_elt_type): If the input type is
  2469. TYPE_CODE_PTR or TYPE_CODE_REF, dereference it to get the
  2470. target type. Otherwise, 'whatis this.field' wouldn't work,
  2471. which would be inconsistent, since 'print this.field' works.
  2472. * buildsym.c (read_struct_type, read_enum_type): Clear
  2473. TYPE_FLAG_STUB flag.
  2474. * buildsym.c (cleanup_undefined_types): Don't rely on a
  2475. flawed "Reasonable test to see if" a type has been defined
  2476. since it was referred to; now we can just see if the
  2477. TYPE_FLAG_STUB flag has been cleared.
  2478. * valprint.c (print_type_base): Emit public/protected/private
  2479. labels for methods as well as fields. Also, indent these labels
  2480. 2 spaces instead of 4, for a more conventional "look".
  2481. * symtab.c (gdb_mangle_name): Undo Fred's change, unless
  2482. GCC_MANGLE_BUG is defined. Also, handle destructors specially.
  2483. * gcc.patch: New file. Contains patch for gcc (so people
  2484. with gdb-2.2.x won't have to wait for a new gcc release).
  2485. Thu Jul 9 18:44:26 1992 Ken Raeburn (raeburn@cygnus.com)
  2486. * i960-pinsn.c (mem): Variables reg[123] should point to CONST.
  2487. (print_addr): Call print_address to show symbolic version as well.
  2488. * remote-vx.c (vx_kill): Don't look for arguments; they aren't
  2489. being passed.
  2490. (vx_read_register): Declare inferior_fp_regs. Delete code for
  2491. copying "inferior_registers" around; the values are already in var
  2492. "registers". Use correct size for register set.
  2493. * remote-vx.c (vx_write_register): Don't try writing FP regs; the
  2494. target doesn't support it.
  2495. (vx_read_register): Don't try reading them either.
  2496. * tm-i960.h (IP_REGNUM): Move to end of non-FP list, since the
  2497. VxWorks back end reads them in one contiguous set except for this
  2498. one.
  2499. (register_names): Change "pc" to "pcw" to avoid confusion printing
  2500. "$pc".
  2501. * tm-vx960.h (PC_REGNUM): Use RIP_REGNUM, since that's where we
  2502. find the PC under VxWorks.
  2503. Wed Jul 8 21:34:30 1992 Fred Fish (fnf@cygnus.com)
  2504. * dwarfread.c (alloc_utype, decode_subscr_data): Call alloc_type
  2505. to create new blank types, instead of handcrafting them.
  2506. * defs.h (printfi_filtered): Add prototype.
  2507. * utils.c (printfi_filtered): New function.
  2508. * gdbtypes.c (recursive_dump_type): Use printfi_filtered to
  2509. to simplify the code. Other cleanups.
  2510. * gdbtypes.c (check_stub_method): Demangle using DMGL_ANSI.
  2511. * gdbtypes.h (struct cplus_struct_type): Add comments describing
  2512. use of various fields.
  2513. * gdbtypes.c (print_bit_vector, print_cplus_stuff): New functions.
  2514. * c-exp.y (%token): Add CLASS as a token for C++, add grammar
  2515. production that currently treats it exactly the same as STRUCT.
  2516. * c-exp.y (yylex): Recognize "class" as token CLASS.
  2517. * symtab.c (gdb_mangle_name): Rewrite to match current g++ stabs.
  2518. * symtab.c (decode_line_1): Fix to pass quoted args on down to
  2519. general symbol handling code. Call cplus_mangle_opname with
  2520. DMGL_ANSI.
  2521. * symtab.c (decode_line_2): Print demangled function names in
  2522. breakpoint menus, instead of just file and line number.
  2523. * symtab.c (name_match): Call cplus_demangle with DMGL_ANSI.
  2524. * valprint.c (type_print_base): Print "class" for C++ classes,
  2525. rather than "struct". Print section labels for public, protected
  2526. and private members of C++ classes.
  2527. * values.c: Include demangle.h.
  2528. * values.c (value_headof): Call cplus_demangle with DMGL_ANSI.
  2529. Wed Jul 8 17:23:07 1992 Stu Grossman (grossman at cygnus.com)
  2530. * Makefile.in (VERSION): Update to 4.5.8.
  2531. Wed Jul 8 00:11:02 1992 Stu Grossman (grossman at cygnus.com)
  2532. * dbxread.c (dbx_symfile_init): Init stab_section_info to NULL to
  2533. prevent crashes when examining cross-targets.
  2534. * dbxread.c (process_one_symbol): Include directory name when
  2535. calling start_subfile for SOL & BINCL symbols. This allows gdb to
  2536. find include files, and yacc/lex sources when the cwd doesn't match
  2537. that in which the object was compiled.
  2538. * objfiles.h (ALL_MSYMBOLS): Don't seg fault when there are no
  2539. msymbols.
  2540. * symtab.c (lookup_symtab_1): Rewrite. It now handles include
  2541. files.
  2542. Tue Jul 7 09:00:42 1992 Fred Fish (fnf@cygnus.com)
  2543. * maint.c (maintenance_command, maintenance_info_command):
  2544. Install with allow_unknown as 0 and call help_list to show
  2545. list of possibilities when no subcommand is specified.
  2546. Tue Jul 7 00:20:29 1992 Fred Fish (fnf@cygnus.com)
  2547. * configure.in: Add m68k-ericsson-*.
  2548. * remote-es1800.c, tm-es1800.h, config/es1800.mt: New files.
  2549. Sun Jul 5 17:17:16 1992 Fred Fish (fnf@cygnus.com)
  2550. * maint.c: New file.
  2551. * Makefile.in (SFILES_MAINDIR): Add new file maint.c.
  2552. * Makefile.in (OBS): Add new file maint.o.
  2553. * defs.h (command_class): Add class_maintenance.
  2554. * defs.h (MAINTENANCE_CMDS): Default to including maintenance
  2555. commands. Allow for them (and other nonessential parts of gdb)
  2556. to be selectively left out under special circumstances.
  2557. * gdbtypes.c (recursive_dump_type): New function; supports
  2558. maintenance print-type command.
  2559. * gdbtypes.h (recursive_dump_type, maintenance_print_type):
  2560. Add prototypes.
  2561. * main.c (maintenancelist, maintenanceinfolist): Add maintenance
  2562. command lists.
  2563. * main.c (initialize_cmd_lists): Eliminate unnecessary casts on
  2564. initializers. Add initializations for setprintlist, showprintlist,
  2565. setchecklist, showchecklist, maintenancelist, and maintenanceinfolist.
  2566. * printcmd.c (maintenance_print_type): New maintenance cmd.
  2567. * valprint.c (setprintlist, showprintlist): Move to main.c, as
  2568. implied by comment that all cmd lists are owned by main.c.
  2569. * infcmd.c (unsetlist): Move to main.c, as implied by comment
  2570. that all cmd lists are owned by main.c.
  2571. * language.c (setchecklist, showchecklist): Move to main.c, as
  2572. implied by comment that all cmd lists are owned by main.c
  2573. * breakpoint.c (enablelist, enablebreaklist, disablelist, cmdlist,
  2574. deletelist): Remove redundant declarations (also in gdbcmd.h).
  2575. * symmisc.c (printsyms_command): Now maintenance_print_symbols.
  2576. * symmisc.c (printmsyms_command): Now maintenance_print_msymbols.
  2577. * symmisc.c (printpsyms_command): Now maintenance_print_psymbols.
  2578. * symmisc.c (printobjfiles_command): Now maintenance_print_objfiles.
  2579. * symtab.h (maintenance_print_symbols, maintenance_print_psymbols,
  2580. maintenance_print_msymbols, maintenance_print_objfiles):
  2581. Add prototypes.
  2582. * symmisc.c (printsyms_command, printpsyms_command,
  2583. printmsyms_command, printobjfiles_command): Removed from
  2584. _initialize_symmisc.
  2585. * main.c (dump_me_command): Moved to maint.c and renamed to
  2586. maintenance_dump_me.
  2587. * breakpoint.c (all_breakpoints_info): Rename to
  2588. maintenance_info_breakpoints.
  2589. * breakpoint.c (_initialize_breakpoint): Convert add_info of
  2590. all_breakpoints_info to add maintenance_info_breakpoints to the
  2591. maintenanceinfolist instead.
  2592. main.c (initialize_main): Set up maintenance class commands.
  2593. Sun Jul 5 11:03:53 1992 Stu Grossman (grossman at cygnus.com)
  2594. * energize-patches: Fix minor problems with building energize lib.
  2595. * energize-patches: Change names of all cadillac procedure calls
  2596. to be energize procedure calls. Simplify many hooks by moving
  2597. tests energize.c. Configure energize, and build it automatically now.
  2598. Sun Jul 5 09:43:28 1992 Fred Fish (fnf@cygnus.com)
  2599. * Makefile.in (VERSION): Bump to 4.5.7.
  2600. * cplus-dem.c (demangle_args): Validate index for previously
  2601. seen type to guard against bogus values from malformed manglings.
  2602. * valops.c (value_struct_elt_for_reference): Guard against
  2603. blindly using NULL return value from lookup_symbol.
  2604. Sun Jul 5 09:46:43 1992 Stu Grossman (grossman at cygnus.com)
  2605. * cadillac.c, cadillac-patches: Rename to energize.c and
  2606. energize-patches. Change all routines and variables named
  2607. 'cadillac*' to 'energize*'. Create new file called energize.h to
  2608. hold all interface declarations.
  2609. * deblib/connection/*: Move all of this stuff into energize/, but
  2610. delete unneeded files.
  2611. Sun Jul 5 03:06:39 1992 John Gilmore (gnu at cygnus.com)
  2612. * tm-sysv4.h (NAMES_HAVE_UNDERSCORE): SVR4 systems don't.
  2613. * buildsym.c (finish_block): Fix thinko `inner block' complaints.
  2614. * dbxread.c (process_one_symbol): Parse N_OPT "gcc2_compiled.".
  2615. * procfs.c (proc_set_exec_trap): Set run-on-last-close flag on
  2616. child processes, to avoid dead ones "hanging around" after GDB exits.
  2617. (attach): Always stop the process if it needs it. Set RLC flag
  2618. when attaching running processes, so it will continue if we detach
  2619. it, quit, or are killed.
  2620. (detach): Clear faults and set RLC flag to make process run
  2621. when we close it.
  2622. (open_proc_file): New `mode' argument for O_RDONLY or O_RDWR.
  2623. Callers changed.
  2624. (info_proc): Open process O_RDONLY, so we can see any process,
  2625. even those controlled by debuggers.
  2626. * tm-sun4sol2.h (SUN_FIXED_LBRAC_BUG): They did (in Sol 2).
  2627. Sat Jul 4 03:43:38 1992 John Gilmore (gnu at cygnus.com)
  2628. Relocate symbols using an array of section_offsets, rather than a
  2629. single `addr' or `offset'. This makes Solaris-2 support work, and
  2630. permits better VxWorks (and maybe xcoff) support later.
  2631. * symtab.h (struct section_offsets): New structure for keeping
  2632. a set of offsets, rather than a single one.
  2633. (struct objfile): Replace addr with section_offsets member.
  2634. * symfile.h: Add sym_offsets to struct sym_fns. Conforming changes.
  2635. * gdb-stabs.h: New include file with `symbol type specific'
  2636. parameters for psymtabs and objfiles.
  2637. * Makefile.in (HFILES): Add gdb-stabs.h.
  2638. * buildsym.h (start_psymtab, process_one_symbol): Fix prototypes.
  2639. * coffread.c: Conforming changes. Fake offset array always 0.
  2640. * dbxread.c: Conforming changes.
  2641. (struct dbx_symfile_info): Move to gdb-stabs.h.
  2642. (start_psymtab): Call elfstab_offset_sections to calculate good
  2643. offsets for this source file, based on the ELF symbol table info.
  2644. (read_ofile_symtab): Yank N_CATCH, which is dead.
  2645. (process_one_symbol, N_CATCH): Yank.
  2646. (", N_FUN, N_FNAME, N_FN, N_FN_SEQ, N_SO, N_SOL, N_ENTRY):
  2647. Relocate with SECT_OFF_TEXT.
  2648. (", N_STSYM, N_LCSYM, N_ROSYM): Grope around in the stab string
  2649. to distinguish relocatable from absolute symbols. Then, if not
  2650. absolute, do:
  2651. (", N_STSYM, N_DSLINE): SECT_OFF_DATA.
  2652. (", N_LCSYM, N_BSLINE): SECT_OFF_BSS.
  2653. (", N_ROSYM): SECT_OFF_RODATA.
  2654. (elfstab_build_psymtabs): Caller has allocated dbx_symfile_info.
  2655. (dbx_symfile_offsets): Add to translate addr to offset.
  2656. * dwarfread.c: Conforming changes. Single offset currently used.
  2657. * elfread.c: Add various complaints about elf/stab stuff.
  2658. #include gdb-stabs.h. Conforming changes, using a single offset.
  2659. (elf_symtab_read): Record info from BSF_FILE symbols, and local
  2660. variables called "Bbss.bss", "Ddata.data", and "Drodata.rodata",
  2661. for later use in building psymtabs.
  2662. (elf_symfile_read): Allocate dbx_symfile_info here, to keep
  2663. the info collected in elf_symtab_read. Cleanup calls free_elfinfo.
  2664. (free_elfinfo): New fn, frees all chained stab_section_infos
  2665. in an objfile, and zaps the start-of-chain pointer.
  2666. (elfstab_offset_sections): New fn, looks in stab_section_info
  2667. chain to determine section bases to relocate a psymtab's worth
  2668. of symbols, as they are being read.
  2669. * mipsread.c: Conforming changes. Stabs-reading will relocate
  2670. using one offset. MIPS-reading will not relocate at all.
  2671. * partial-stab.h: Relocate different symbol types using different
  2672. offsets from section_offsets.
  2673. * symfile.c: Conforming changes.
  2674. (find_lowest_section): Unused function to use later
  2675. to free us from the Tyranny of the Text Section.
  2676. (syms_from_objfile): Translate absolute arg ADDR to offsets used
  2677. in all lower layers of symbol reading. Call format-specific
  2678. sym_offsets function to initialize offsets for high speed symbol
  2679. reading.
  2680. (symbol_file_add): Call reinit_frame_cache so callers don't have to.
  2681. (symbol_file_command, add_symbol_file_command): Callers changed.
  2682. * symmisc.c (dump_psymtab): Print new relocation parameters.
  2683. * xcoffread.c: Corresponding changes.
  2684. * buildsym.c: Tidy innerblock_complaint and blockvector_complaint.
  2685. * main.c (main): Read the $HOME/.gdbinit file before processing
  2686. the argv arguments (e.g. reading symbol files or core
  2687. files). This allows global parameters to be set, which will apply
  2688. during the symbol reading. The ./.gdbinit is still read after
  2689. argv processing.
  2690. * symtab.c (list_symbols): `i variables' shouldn't show enum values.
  2691. * xcoffexec.c: Clean up quote inside comment.
  2692. Fri Jul 3 20:18:26 1992 Fred Fish (fnf@cygnus.com)
  2693. * breakpoint.c, buildsym.c, c-exp.y, coffread.c, command.c,
  2694. core.c, cplus-dem.c, dbxread.c, dwarfread.c, elfread.c, environ.c,
  2695. eval.c, findvar.c, gdbtypes.c, hppabsd-tdep.c, hppahpux-tdep.c,
  2696. i386-tdep.c, ieee-float.c, infcmd.c, inflow.c, infptrace.c,
  2697. infrun.c, m2-exp.y, mipsread.c, objfiles.c, parse.c, procfs.c,
  2698. putenv.c, remote-mm.c, remote-vx.c, solib.c, sparc-tdep.c,
  2699. sparc-xdep.c, stack.c, symfile.c, symtab.c, symtab.h, target.c,
  2700. tm-i386v.h, tm-sparc.h, utils.c, valarith.c, valops.c, valprint.c,
  2701. values.c, xcoffread.c:
  2702. Remove "(void)" casts from function calls where the return value
  2703. is ignored, in accordance with GNU coding standards.
  2704. Fri Jul 3 00:00:49 1992 John Gilmore (gnu at cygnus.com)
  2705. * dbxread.c (process_one_symbol): Ignore N_MAIN, N_ENDM for Solaris.
  2706. * partial-stab.h: Ignore N_ENDM.
  2707. * elfread.c (elf_symtab_read): Ignore symbols that don't have a
  2708. CODE or DATA section attachment. This eliminates a lot of random
  2709. values from shared libraries, which screw up the ordinary symbols
  2710. in the address ranges they happen to overlap.
  2711. * buildsym.c (define_symbol): Eliminate special tests
  2712. for function types; move into "function" cases in switch statement.
  2713. (define_symbol: 'f', 'F', 'P'): Process all parameter types
  2714. in case they define new type numbers. But ignore them (FIXME).
  2715. ('k', 'B'): Ignore const and volatile if we see them (FIXME).
  2716. (read_sun_builtin_type): Add commentary.
  2717. Wed Jul 1 00:47:02 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
  2718. * xm-rs6000.h: define MEM_FNS_DECLARED
  2719. Tue Jun 30 02:25:10 1992 John Gilmore (gnu at cygnus.com)
  2720. * tm-mips.h (GDB_TARGET_IS_MIPS): Define for mips-xdep.c.
  2721. (READ_MIPS_FORMAT, COFF_FORMAT): Remove, unused now.
  2722. * mips-xdep.c: Remove most include files (unused, caused errs).
  2723. (fetch_core_registers): Use right parameters in dummy fn.
  2724. Mon Jun 29 18:30:57 1992 John Gilmore (gnu at cygnus.com)
  2725. * buildsym.c (scan_file_globals): Beware the null file.
  2726. Fix from Jim Williams.
  2727. * stack.c (return_command): Evaluate expression *before* popping
  2728. off the stack frames! Fix inspired by Jim Williams.
  2729. (up_silently_command, down_silently_command): No sel frame is error.
  2730. * defs.h (memcpy, memset): Conditionalize decls on
  2731. #ifndef MEM_FNS_DECLARED, since DECstation differs.
  2732. (alloca): Break out the STDC and non-STDC alloca cases, to make
  2733. it work on old preprocessors as well as "picky ANSI" ones.
  2734. * xm-mips.h (memcpy, memset): Declare, and set MEM_FNS_DECLARED.
  2735. * mips-tdep.c (heuristic_proc_start): Zero arg produces zero.
  2736. * utils.c (fputs_demangled): Rename SLOP since DECstation system
  2737. header files define it!
  2738. * tm-29k.h (BREAKPOINT): Allow it to be overridden with -D.
  2739. Mon Jun 29 16:30:25 1992 Fred Fish (fnf@cygnus.com)
  2740. * dbxread.c, i386-pinsn.c, i386-tdep.c, regex.c, solib.c, symmisc.c,
  2741. symtab.h, tm-i386v4.h, valprint.c, values.c: Lint.
  2742. * breakpoint.c, c-exp.y, coffread.c, command.c, environ.c, eval.c,
  2743. findvar.c, infcmd.c, infptrace.c, infrun.c, m2-exp.y, parse.c,
  2744. putenv.c, solib.c, sparc-xdep.c, symtab.c, tm-i386v.h, tm-sparc.h,
  2745. utils.c, valarith.c, valops.c, valprint.c, values.c:
  2746. Replace bcopy() use with memcpy(), which is more standard and can
  2747. take advantage of gcc's builtin functions for increased performance.
  2748. * breakpoint.c, buildsym.c, coffread.c, dbxread.c, i386-tdep.c,
  2749. ieee-float.c, infcmd.c, sparc-tdep.c, stack.c, symtab.c, symtab.h,
  2750. target.c, values.c:
  2751. Replace bzero() use with memset(), which is more standard and can
  2752. take advantage of gcc's builtin functions for increased performance.
  2753. * i386-tdep.c, main.c, valprint.c:
  2754. Replace bcmp() use with memcmp(), which is more standard and can
  2755. take advantage of gcc's builtin functions for increased performance.
  2756. Sun Jun 28 13:30:22 1992 Fred Fish (fnf@cygnus.com)
  2757. * remote.c (remote_wait): Fix cast on signal() call.
  2758. * defs.h (alloca): More diddling with alloca. Have to ensure
  2759. that it has a prototype, so that if alloca is defined as a macro
  2760. that takes an arg, the definition is seen as a use of a macro
  2761. that takes an arg, to satisfy picky ANSI preprocessors.
  2762. Sat Jun 27 12:12:20 1992 Fred Fish (fnf@cygnus.com)
  2763. * sparc-pinsn.c: Use <string.h> rather than "string.h", for
  2764. consistency with all other gdb files.
  2765. * cadillac.c: Use <string.h> rather than <strings.h>.
  2766. * cadillac.c (kernel_dispatch): Convert rindex usage to strrchr.
  2767. * Makefile.in (MAKE): Remove definition for consistency with
  2768. other Makefile.in files and to fix problem with recursive makes.
  2769. Fri Jun 26 19:03:23 1992 John Gilmore (gnu at cygnus.com)
  2770. * hppahpux-xdep.c (child_xfer_memory): Avoid PT_WDUSER because it
  2771. crashes H-PUX.
  2772. Fri Jun 26 11:09:10 1992 Steve Chamberlain (sac@thepub.cygnus.com)
  2773. * source.c (print_source_lines): for DOS interoperability; don't
  2774. print CR (013) as ^M.
  2775. Thu Jun 25 15:18:42 1992 Stu Grossman (grossman at cygnus.com)
  2776. * dbxread.c (dbx_symfile_init): Move more code under hp9000s800
  2777. conditional.
  2778. * hppabsd-core.c: Don't include "param.h", include <sys/param.h>
  2779. instead.
  2780. * remote.c (remote_wait): Cast signal to void * to avoid warning
  2781. from busted HP compiler.
  2782. * partial-stab.h (N_SO): Rearrange code a little so that all SO
  2783. stabs cause end_psymtab to be called.
  2784. * buildsym.c (read_sun_builtin_type): Handle new FCS Sun CC
  2785. compiler feature of putting 'c' into basic type descriptors for
  2786. all forms of char.
  2787. * procfs.c (child_resume): Work around Solaris (on Sparc) lossage
  2788. where there is no place for nPC in prrun struct.
  2789. Thu Jun 25 12:06:00 1992 Fred Fish (fnf@cygnus.com)
  2790. * mipsread.c: Pass NULL name pointer to init_type, not 0.
  2791. * gdbtypes.c (init_type): Use copy of typename on type_obstack.
  2792. * dwarfread.c (enum_type): Save enum names on type_obstack.
  2793. * dwarfread.c (struct_type): Save member name on type_obstack.
  2794. * symtab.c (_initialize_symtab): Fix misspelling.
  2795. * regex.c (store_jump, insert_jump): Return void.
  2796. Thu Jun 25 04:00:10 1992 John Gilmore (gnu at cygnus.com)
  2797. * defs.h (PARAMS): Move to ../include/ansidecl.h.
  2798. (alloca): Declare return type on SPARC, since Sun doesn't.
  2799. (*_BYTE_ORDER): Improve comment: *must* be defined.
  2800. * tm-hppa.h: New file, architectural definition of HP PA.
  2801. * tm-hppabsd.h, tm-hppahpux.h: Shrink to deltas from tm-hppa.h.
  2802. * am29k-pinsn.c, am29k-tdep.c, copying.awk, copying.c,
  2803. hppa-coredep.c, hppa-pinsn.c, hppabsd-core.c, hppabsd-tdep.c,
  2804. hppabsd-xdep.c, hppahpux-tdep.c, hppahpux-xdep.c, remote-udi.c,
  2805. ser-go32.c, xcoffsolib.c: Remove <stdio.h> which is already in
  2806. "defs.h".
  2807. * hppa-coredep.c, hppa-pinsn.c, hppabsd-core.c, hppabsd-tdep.c,
  2808. hppabsd-xdep.c, hppahpux-tdep.c, hppahpux-xdep.c, xcoffsolib.c,
  2809. xcoffsolib.h, xm-go32.h, xm-hppabsd.h, xm-hppahpux.h: Copyrights.
  2810. Wed Jun 24 12:53:20 1992 John Gilmore (gnu at cygnus.com)
  2811. * printcmd.c (output_command): Thinko.
  2812. (x_command): Only set remembered size/format if cmd succeeds.
  2813. * dbxread.c (read_ofile_symtab): Remove N_CATCH special case,
  2814. since it is no longer used and burns time for every symbol read.
  2815. (process_one_symbol): Treat N_CATCH like default (complain).
  2816. Wed Jun 24 00:26:56 1992 Stu Grossman (grossman at cygnus.com)
  2817. * partial-stab.h (case N_TEXT): Fix fencepost error when
  2818. detecting start of new symbol info after reading symtab for a
  2819. module with a zero length TEXT segment.
  2820. Tue Jun 23 21:46:26 1992 Fred Fish (fnf@cygnus.com)
  2821. * Makefile.in (VERSION): Bump to 4.5.6.
  2822. * coffread.c (coff_end_symtab): Cast 2nd arg of complain() to
  2823. correct type.
  2824. * defs.h (NORETURN): Define away for Lucid compiler.
  2825. * remote.c (remote_timer, remote_interrupt): Signal handlers
  2826. take one int arg.
  2827. * ser-termios.c (serial_write, serial_close): Return whatever
  2828. value the write/close call returns, rather than falling off end.
  2829. * inferior.h (PTRACE_ARG3_TYPE): Third arg to ptrace is int on
  2830. more systems than it is "char *". Define PTRACE_ARG3_TYPE to
  2831. default to int.
  2832. * infptrace.c, hppabsd-xdep.c, hppahpux-xdep.c, i386-xdep.c,
  2833. inferior.h (call_ptrace): Use PTRACE_ARG3_TYPE to declare type
  2834. of third arg.
  2835. * a68v-xdep.c, arm-xdep.c, convex-xdep.c, hp300ux-xdep.c, infrun.c,
  2836. m88k-xdep.c, mach386-xdep.c, mips-xdep.c, os68k-xdep.c, pyr-tdep.c,
  2837. pyr-xdep.c, rs6000-xdep.c, sparc-xdep.c, sun3-xdep.c, sun386-xdep.c,
  2838. symm-xdep.c, ultra3-xdep.c: Use PTRACE_ARG3_TYPE to cast ptrace
  2839. argument 3.
  2840. * sparc-xdep.c, a68v-xdep.c (fetch_inferior_registers,
  2841. store_inferior_registers): Supply missing fourth argument to
  2842. ptrace().
  2843. * cadillac.c (kernel_dispatch): Make return type void.
  2844. * cadillac.c (iosig): Signal handlers take one int arg.
  2845. * valprint.c (val_print_fields): Call fprint_symbol to get
  2846. automatic C++ demangling for mangled field names.
  2847. Mon Jun 22 20:18:06 1992 Fred Fish (fnf@cygnus.com)
  2848. * command.c (add_abbrev_prefix_cmd): Fix misspelling in comment.
  2849. * dwarfread.c (enum_type): Fix misspelling in comment.
  2850. * valprint.c (val_print_fields, cplus_val_print): Minor
  2851. adjustment to printing of C++ class structures to more closely
  2852. match format for printing C structures, with and without setting
  2853. pretty print.
  2854. Mon Jun 22 17:19:02 1992 Per Bothner (bothner@cygnus.com)
  2855. * infrun.c (wait_for_inferior): Don't test for SIGEMT
  2856. (which is not a Posix signal) if it isn't defined.
  2857. * tm-linux.h, xm-linux.h, config/linux.m[ht], configure.in:
  2858. New port to Linux (a free Unix clone for 386 machines).
  2859. Sat Jun 20 19:19:52 1992 John Gilmore (gnu at cygnus.com)
  2860. COFF changes for dealing better with EPI 29K C compiler output.
  2861. * coffread.c (record_minimal_symbol): Pass the minsym type to it.
  2862. Callers changed.
  2863. (coff_end_symtab): Sort blocks if needed. Complain if misordered.
  2864. (read_coff_symtab): Move patch_opaque_types call from
  2865. coff_symfile_read. Restrict it to symtabs from this objfile.
  2866. (process_coff_symbol: C_TPDEF): Don't put ordinary foward
  2867. references on opaque type chain; just let coff_lookup_type handle 'em.
  2868. (decode_type): Complain about tagndx values on
  2869. non-struct/union/enum types, which the EPI compiler tends to produce.
  2870. * symtab.c (list_symbols): Make minimal symbol variable-finding work.
  2871. * tm-68k.h (FIX_CALL_DUMMY): Avoid alignment and byte order
  2872. dependency.
  2873. * elfread.c (elf_symfile_read): Update bfd_elf_find_section
  2874. usage to match new prototype. Include libbfd.h to get prototype.
  2875. * source.c (find_source_lines): Handle large st_size fields.
  2876. Sat Jun 20 16:28:39 1992 Fred Fish (fnf@cygnus.com)
  2877. * infcmd.c (jump_command): Use cleanups to avoid memory leaks.
  2878. * stack.c (return_command): Use cleanups to avoid memory leaks.
  2879. Fri Jun 19 19:06:41 1992 John Gilmore (gnu at cygnus.com)
  2880. * remote-adapt.c, remote-eb.c, remote-mm.c: Lint. Fix
  2881. INT_REGNUM to INTE_REGNUM.
  2882. * tm-29k.h (SDB_REG_TO_REGNUM): Add for EPI 29K C compiler.
  2883. Fri Jun 19 15:30:15 1992 Stu Grossman (grossman at cygnus.com)
  2884. * configure.in, dbxread.c, hppa-coredep.c, hppa-pinsn.c,
  2885. hppabsd-core.c, hppabsd-tdep.c, hppabsd-xdep.c, hppahpux-tdep.c,
  2886. hppahpux-xdep.c, munch, partial-stab.h, tm-hppabsd.h,
  2887. tm-hppahpux.h, xm-hppabsd.h, xm-hppahpux.h: HPPA merge.
  2888. * Makefile.in (c-exp.tab.c, m2-exp.tab.c): Filter out bogus extern
  2889. declarations of malloc/realloc/free that are inserted by some
  2890. versions of yacc.
  2891. * m2-exp.y: Prevent conflicts with TRUE and FALSE tokens by
  2892. #undeffing them.
  2893. * xm-rs6000.h: Declare malloc/realloc/free appropriately. Yet
  2894. another decl of strdup (this really ought to come from libiberty.h!).
  2895. Fri Jun 19 10:28:05 1992 John Gilmore (gnu at cygnus.com)
  2896. * remote.c (getpkt): Error if input exceeds buffer size.
  2897. (_initialize_remote): `set remotedebug' enables packet trace.
  2898. * dbxread.c (process_one_symbol:N_FUN): GCC now produces relative
  2899. N_SLINE's, etc, just like Sun cc on Solaris2.
  2900. * am29k-tdep.c (read_register_stack, write_register_stack):
  2901. Change RSTACK_HIGH_ADDR to rstack_high_address, a user-settable
  2902. variable. Add `set' and `show' commands for it.
  2903. Thu Jun 18 19:35:22 1992 Fred Fish (fnf@cygnus.com)
  2904. * valprint.c (type_print_1): Plug memory leak. Print all
  2905. C++ syms as demangled, not just functions.
  2906. * buildsym.c (read_range_type): When we find a signed char
  2907. type, do a lookup of signed char, not plain char. Plain char's
  2908. still get looked up as plain char's elsewhere.
  2909. Thu Jun 18 18:59:04 1992 John Gilmore (gnu at cygnus.com)
  2910. * eval.c: Avoid residue-by-zero when evaluating without side effects.
  2911. (Bug and fix found by Pierre Willard.)
  2912. Wed Jun 17 13:08:33 1992 Stu Grossman (grossman at cygnus.com)
  2913. * xm-rs6000.h: Fix decls for malloc, realloc, and free.
  2914. * xm-rs6000.h: Add decl for strdup().
  2915. * tm-rs6000.h: Remove #include of inferior.h. Fixes many
  2916. compilation errors.
  2917. * breakpoint.c (enable_command, disable_command): Without args,
  2918. should only affect normal breakpoints and watchpoints.
  2919. * m68k-pinsn.c (print_insn_arg): Make register be const.
  2920. * xcoffexec.c: Remove ' from comment.
  2921. * xm-sun3os4.h: Define MALLOC_INCOMPATIBLE to avoid conflicts
  2922. with decls of malloc in c-exp.tab.c (as produced by yacc).
  2923. There's got to be a better way to do this...
  2924. Wed Jun 17 11:10:40 1992 Fred Fish (fnf@cygnus.com)
  2925. * partial-stab.h: Convert single rindex use to strrchr.
  2926. * mipsread.c, dbxread.c: Remove troublesome inclusion of non-
  2927. standard <strings.h> file, now that the only single use of
  2928. rindex in the gdb source files is gone.
  2929. Tue Jun 16 22:17:49 1992 Fred Fish (fnf@cygnus.com)
  2930. * mipsread.c: Undo ill effects from including <strings.h>,
  2931. which #defines index to be strchr. Unfortunately, index is
  2932. a member of a symbol table structure that can't be changed.
  2933. * mipsread.c: tm-mips.h includes coff/symconst.h and coff/sym.h,
  2934. remove redundant #include's.
  2935. Tue Jun 16 14:15:51 1992 Stu Grossman (grossman at cygnus.com)
  2936. * mipsread.c: #include <strings.h> for rindex().
  2937. Tue Jun 16 09:01:49 1992 Fred Fish (fnf@cygnus.com)
  2938. * xcoffexec.c (map_vmap): Turn comment into a real C comment.
  2939. Mon Jun 15 18:41:23 1992 Stu Grossman (grossman at cygnus.com)
  2940. * dbxread.c (process_one_symbol), partial-stab.h: Ignore
  2941. extraneous SO stabs from busted C++ compilers.
  2942. Mon Jun 15 12:21:45 1992 Fred Fish (fnf@cygnus.com)
  2943. * Makefile.in (VERSION): Bump to 4.5.5.
  2944. * symtab.c (decode_line_1): Until C++ support stabilizes, when
  2945. C++ lookups fail, print possibly helpful hint about completion.
  2946. * cplus-dem.c (demangle_signature): Fix ARM style demangling
  2947. for static data members.
  2948. * dbxread.c (dbx_psymtab_to_symtab_1): Fix prototype.
  2949. * config/ncr3000.mh (INSTALL): Don't use /usr/ucb/install,
  2950. it's broken on ncr3000's.
  2951. Mon Jun 15 07:21:00 1992 Fred Fish (fnf@cygnus.com)
  2952. * dwarfread.c (decode_modified_type): Change type of first arg.
  2953. Change 'modifier' to char from unsigned char. Cast single use
  2954. that needs to be unsigned char.
  2955. * symtab.h (SYMBOL_BASEREG_VALID): Explain disabling.
  2956. * utils.c (strdup_demangled): Add function.
  2957. * defs.h (strdup_demangled): Add prototype.
  2958. * stack.c (return_command): Demangle C++ function names for query.
  2959. * infcmd.c (jump_command): Demangle C++ function names for query.
  2960. * cplus-dem.c (consume_count): New function and prototype.
  2961. * cplus-dem.c (demangle_class, gnu_special, demangle_func_type,
  2962. do_type): Replace conversion code with consume_count().
  2963. * cplus-dem.c (gnu_special): Fix demangled of static members.
  2964. * source.c (list_command): Print demangled function names
  2965. when appropriate. Fix supplied by Peter Schauer.
  2966. Mon Jun 15 01:45:48 1992 John Gilmore (gnu at cygnus.com)
  2967. * sparc-tdep.c: Clean up slightly for Solaris2.
  2968. * buildsym.c (define_symbol): Nameless types are now on several
  2969. platforms; generalize them and un-ifdef them to make Solaris 2
  2970. work.
  2971. Sun Jun 14 10:55:51 1992 John Gilmore (gnu at cygnus.com)
  2972. * infcmd.c: Fix typo (reported by Rob Savoye).
  2973. * xm-sun4sol2.h (gregset_t): Thinko in register set definition.
  2974. * symtab.h: Disable SYMBOL_BASEREG_VALID until it works.
  2975. * dbxread.c (dbx_psymtab_to_symtab_1): Renamed from
  2976. psymtab_to_symtab_1. Use current psymtab's sym_offset and symbol_size,
  2977. rather than the one for the first file in the dependency chain.
  2978. * dbxread.c (end_psymtab): Only reset texthigh if it's not already
  2979. set. Don't reset our own texthigh, or dependency-only pst's, in
  2980. scanning all the rest of the psymtabs.
  2981. (process_one_symbol): Fix comments around N_OBJ, N_OPT, N_UNDF.
  2982. * buildsym.h (N_UNDF): Improve comments.
  2983. (N_LSYM, etc): Skip types without names (":T(0,3)=sfoob...").
  2984. Sat Jun 13 11:16:45 1992 Fred Fish (fnf at cygnus.com)
  2985. * symtab.h (struct symbol): Add aux_value union for preserving
  2986. an additional per-symbol value.
  2987. * symtab.h (SYMBOL_BASEREG, SYMBOL_BASEREG_VALID): Add defines.
  2988. * frame.h (FRAME_GET_BASEREG_VALUE): Provide default definition.
  2989. * findvar.c (read_var_value): Use SYMBOL_BASEREG if valid.
  2990. * printcmd.c (address_info): Use SYMBOL_BASEREG if valid.
  2991. * symmisc.c (print_symbol): Use SYMBOL_BASEREG if valid.
  2992. Sat Jun 13 09:18:46 1992 Michael Tiemann (tiemann@rtl.cygnus.com)
  2993. * symfile.c (clear_symtab_users_once): Now non-static (for
  2994. objfiles.c).
  2995. Fri Jun 12 18:54:40 1992 John Gilmore (gnu at cygnus.com)
  2996. * arm-pinsn.c, i960-pinsn.c, m68k-pinsn.c, mips-pinsn.c,
  2997. ns32k-pinsn.c, pyr-pinsn.c, sparc-pinsn.c, tahoe-pinsn.c,
  2998. vax-pinsn.c: Remove reg_names decl (now in defs.h).
  2999. Solaris-2 support on SPARC:
  3000. * dbxread.c: Add symbol_size to struct dbx_symfile_info.
  3001. Add symbol_size and file offsets to struct symloc.
  3002. Add static symbol_table_offset, string_table_offset,
  3003. file_string_table_offset, next_file_string_table_offset,
  3004. last_function_name.
  3005. (add_old_header_file): Convert error() to complain()t.
  3006. (dbx_symfile_read): Get symbol size via the objfile.
  3007. Also get symbol_table_offset.
  3008. (dbx_symfile_init): Record symbol size and count via the objfile.
  3009. (dbx_next_symbol_text): Always add file_string_table_offset when
  3010. accessing string table.
  3011. (read_dbx_symtab): Initialize file_string_table_offset to 0.
  3012. (SET_NAMESTRING): Use the offset.
  3013. (end_psymtab): Large kludge to determine addresses where source
  3014. files start and end (for the psymtab header).
  3015. (psymtab_to_symtab_1): Set file_string_table_offset before reading.
  3016. Get this, symbol size, and symbol offset, from psymtab.
  3017. (read_ofile_symtab): Don't back up one symbol for Solaris2.
  3018. Patch up last_source_start_addr if zero in N_SO.
  3019. (process_one_symbol): Add variable function_start_offset.
  3020. ( "", N_FUN, N_LBRAC, N_RBRAC, N_SLINE): Add ifdef for
  3021. BLOCK_ADDRESS_FUNCTION_RELATIVE.
  3022. ( "", N_OBJ, N_OPT): Ignore.
  3023. (elfstab_build_psymtabs): New function to read stabs out of
  3024. an ELF file.
  3025. * Makefile.in: Accept $(BISON) even though we really want $(YACC).
  3026. (gdb): use GLOBAL_CFLAGS when linking, too.
  3027. * partial-stab.h (N_UNDF): Deal with Sol2 relative stringtab offsets.
  3028. (N_OBJ, N_OPT): Ignore.
  3029. ('f', 'F'): Save last function name.
  3030. * elfread.c (record_minimal_symbol_and_info): Kludged to put
  3031. extra info in the minimal symbol.
  3032. (elf_symtab_read): The extra info is the size of an ELF object,
  3033. which was kludged to us in the `udata' field of the BFD symbol.
  3034. Gag me with a crowbar...
  3035. (elf_symfile_read): Keep track of both the absolute load address,
  3036. and the offset between load addr and symbols. Handle STABS as
  3037. well as DWARF sections, passing the absolute load address to
  3038. elfstab_build_psymtabs.
  3039. * symfile.h: Prototype elfstab_build_psymtabs.
  3040. * symfile.c: Add almost-OK debug versions of add_psymbol_*to_list.
  3041. * xm-sysv4.h: Add <limits.h> to avoid conflicting defns in defs.h.
  3042. * buildsym.h: Add processing_acc_compilation flag.
  3043. * buildsym.c (read_sun_builtin_type, read_sun_floating_type): New.
  3044. (define_symbol): Skip arg types in function entries. Resolve
  3045. overloaded 'P' which acc uses for prototypes of functions called
  3046. by this file.
  3047. (read_type: 'b', 'r'): Handle Solaris2 builtin types.
  3048. * minsyms.c (prim_record_minimal_symbol_and_info): Hack to
  3049. save size of ELF symbols. FIXME.
  3050. * tm-sun4os5.h: Rename to tm-sun4sol2.h. Update defines for Sol2.
  3051. * xm-sun4os5.h: Rename to xm-sun4sol2.h. Hack more defines.
  3052. * configure.in: Solaris config is sparc-sun-solaris2.
  3053. * config/sun4os5.m[ht]: Rename to config/sun4sol2.m[ht]; new xm, tm.
  3054. * objfiles.c (free_objfile): Eliminate storage leaks. Contributed
  3055. by <Peter.Schauer@regent.e-technik.tu-muenchen.dbp.de>.
  3056. * symfile.c (symfile_bfd_open): Comment where name is freed.
  3057. * symmisc.c (extend_psymbol_list): Comment where list is freed.
  3058. Fri Jun 12 08:24:36 1992 Fred Fish (fnf at cygnus.com)
  3059. * expprint.c (print_subexp): Add missing ']'.
  3060. * defs.h (reg_names): Fix declaration to match that in infcmd.c
  3061. * stack.c (reg_names): Delete redundant (and inconsistent) decl.
  3062. * WHATS.NEW: Point out improved C++ function name handling.
  3063. * gdbtypes.c (lookup_fundamental_type): For now, use the same
  3064. type names for both implicitly and explicitly signed integral
  3065. types. See comment in the source code.
  3066. Thu Jun 11 12:31:50 1992 John Gilmore (gnu at cygnus.com)
  3067. Two `long long' fixes from Robert R. Henry (rrh@dino.tera.com):
  3068. * defs.h (longest_to_int): Avoid void arm of ?: in error case.
  3069. * expprint.c (print_subexp): Fix printing of register names.
  3070. Thu Jun 11 01:33:40 1992 John Gilmore (gnu at cygnus.com)
  3071. * inferior.h (register_valid): Declare.
  3072. * remote-udi.c, rs6000-xdep.c, sparc-xdep.c, tm-rs6000.h: Remove decl.
  3073. * objfiles.h (ALL_OBJFILE_{SYMTABS,PSYMTABS,MSYMBOLS}): Add
  3074. macros for traversing the data structures in a single objfile.
  3075. * tm-m88k.h, tm-sparc.h (REGISTER_NAMES): Remove extra semicolon.
  3076. * tm-i960.h (REGISTER_NAMES): Cosmetic change.
  3077. * infcmd.c: Lint.
  3078. Tue Jun 9 17:19:45 1992 Fred Fish (fnf at cygnus.com)
  3079. * c-exp.y, m2-exp.y: Move remapping defines for malloc and
  3080. realloc. Add remapping defines for {yyss, yyssp, yyvs, yyvsp}.
  3081. * config/{amix.mh, i386v4.mh, ncr3000.mh, stratus.mh,
  3082. sun4os5.mh}: Add definition for INSTALL using /usr/ucb/install.
  3083. Tue Jun 9 16:29:19 1992 Stu Grossman (grossman at cygnus.com)
  3084. * depend: rebuild to account for remote-st2000.c.
  3085. * remote-st2000.c: Almost works now.
  3086. * tm-st2000.h: Need to turn on HAVE_68881, else things won't compile.
  3087. Mon Jun 8 23:05:51 1992 Fred Fish (fnf@cygnus.com)
  3088. * c-exp.y (yylex): Recognize single-quoted strings that specify
  3089. tokens with embedded whitespace, such as C++ demangled names.
  3090. * defs.h (demangle_and_match, strcmp_iw, skip_quoted): Prototypes.
  3091. * main.c (gdb_completer_quote_characters): Add global variable.
  3092. * main.c (symbol_completion_function): Total rewrite for C++
  3093. demangled name handling.
  3094. * main.c (skip_quoted): New function.
  3095. * main.c (main): Set rl_completer_quote_characters.
  3096. * symmisc.c (dump_symtab): Print source language for symtab.
  3097. * symtab.c (expensive_mangler): Add prototype and function.
  3098. * symtab.c (completion_list_add_symbol): Total rewrite for new
  3099. C++ demangled name handling.
  3100. * symtab.c (lookup_symbol): Check for demangled C++ symbol first,
  3101. other changes for demangled C++ symbol handling.
  3102. * symtab.c (lookup_demangled_block_symbol): Use demangle_and_match.
  3103. * symtab.c (lookup_demangled_partial_symbol): Use demangle_and_match.
  3104. * symtab.c (decode_line_1): Recognize C++ demangled names on input.
  3105. * symtab.c (completion_list_add_symbol): Total rewrite for new
  3106. C++ demangled name handling.
  3107. * symtab.c (expensive_mangler): New function.
  3108. * utils.c (strcmp_iw, demangle_and_match): New functions.
  3109. * xcoffread.c (aixcoff_symfile_read): Fix prototype.
  3110. Mon Jun 8 21:59:08 1992 John Gilmore (gnu at cygnus.com)
  3111. * Makefile.in: Roll VERSION to 4.5.4.
  3112. * Makefile.in, config/*.mh, config/*.mt: Rename TM_CFLAGS
  3113. to MT_CFLAGS, XM_CFLAGS to MH_CFLAGS to match file names.
  3114. * config/sun4os5.mh: Add MH_CFLAGS=-xs to save debug info.
  3115. Mon Jun 8 14:17:42 1992 Stu Grossman (grossman at cygnus.com)
  3116. * alldeps.mak: Rebuild to account for new files.
  3117. * config/st2000.mt: Use tm-st2000.h, not tm-68k.h.
  3118. * tm-st2000.h: New file.
  3119. * configure.in: Tandem debug monitor (st2000) support.
  3120. * remote-st2000.c, config/st2000.mt: ditto.
  3121. Fri Jun 5 11:51:01 1992 John Gilmore (gnu at cygnus.com)
  3122. * blockframe.c (inside_entry_file, inside_main_func,
  3123. inside_entry_func): Return 0 if no symbols; avoid crashing.
  3124. Wed Jun 3 17:48:04 1992 John Gilmore (gnu@cygnus.com)
  3125. * xcoffread.c (read_xcoff_symtab): Set c_sclass from n_sclass
  3126. without masking, since it is signed and will later be compared
  3127. against signed quantities. The right fix is probably to make
  3128. it all unsigned, but this is a small, safe fix for this release.
  3129. FIXME -- make the real change sometime soon.
  3130. Mon Jun 1 16:16:12 1992 Michael Tiemann (tiemann@cygnus.com)
  3131. * remote-vx.c (vx_load_command,add_symbol_stub): Default READNOW
  3132. parameter in call to `symbol_file_add' to 0.
  3133. * xm-sun4os4.h (MALLOC_INCOMPATIBLE): Define it.
  3134. Sun May 31 06:38:27 1992 Michael Tiemann (tiemann@cygnus.com)
  3135. * configure.in: Handle -m680[01234]0-wrs.
  3136. Fri May 29 22:16:02 1992 Michael Tiemann (tiemann@rtl.cygnus.com)
  3137. * m68k-pinsn.c (print_insn_arg): Pass &EXT_FORMAT_68881 to
  3138. `ieee_extended_to_double'.
  3139. Wed May 27 09:27:57 1992 John Gilmore (gnu at cygnus.com)
  3140. * valops.c (value_assign): Lint, by Pierre Willard.
  3141. Tue May 19 19:38:10 1992 John Gilmore (gnu at cygnus.com)
  3142. * coredep.c (fetch_core_registers): Remove premature warning,
  3143. which triggers on DECstation even though all regs are accessible.
  3144. * m68k-pinsn.c (print_insn_arg): Use new macros to get
  3145. sign-extension of instruction fields even on unsigned-char hosts.
  3146. Bug found by Fred J Roeber, fjr@sgfb.ssd.ray.com.
  3147. 88K changes inspired by Ted Lemon (uunet!lupine!mellon):
  3148. * tm-m88k.h, tm-umax.h: Avoid sizeof() in REGISTER_xxx macros,
  3149. since they define the target, not the host.
  3150. * m88k-pinsn.c: Fix typo.
  3151. Thu May 14 01:16:48 1992 John Gilmore (gnu at cygnus.com)
  3152. * valarith.c (value_zerop): -0.0 is still zero.
  3153. * eval.c (evaluate_subexp): Avoid NaN anomalies in float compares.
  3154. Patches by Paul Eggert <eggert@twinsun.com>.
  3155. Mon May 18 13:53:51 1992 Stu Grossman (grossman at cygnus.com)
  3156. * alldeps.mak, depend: re-make to account for ser-*.c.
  3157. Sun May 17 16:51:20 1992 Fred Fish (fnf@cygnus.com)
  3158. * inflow.c (new_tty): Temporarily ignore SIGTTOU when
  3159. disconnecting from controlling terminal, to avoid gdb hanging
  3160. on SVR4. Fixes bug reported by Oliver Okrongli.
  3161. * procfs.c (PROC_NAME_FMT): Change format to match default used
  3162. by system, as suggested by Oliver Okrongli.
  3163. * tm-68k.h (FRAME_FIND_SAVED_REGS): Apply missing parentheses
  3164. bug fix from Brent Townshend (bst%tt@cam.ORG).
  3165. * c-exp.y (nonempty_typelist): Fix memory overrun bug reported
  3166. by turlais@rechser.total.fr.
  3167. * dwarfread.c (decode_subscr_data): Fix bug in calculation of
  3168. length of non-zero lowerbound arrays. Bug fix from Peggy Fieland.
  3169. * objfiles.h (unlink_objfile): Add prototype.
  3170. * objfiles.c (unlink_objfile): Add function.
  3171. * objfiles.c (free_objfile): Call unlink_objfile.
  3172. * objfiles.c (allocate_objfile): Call unlink_objfile on newly
  3173. remapped objfiles. Bug reported by hahn@sunshine.labs.tek.com.
  3174. Also, discard old possibly bogus sf struct.
  3175. * symfile.c (symbol_file_add): Call init_entry_point_info() and
  3176. find_sym_fns() for remapped symbol files, in case of any changes
  3177. since the last mapping.
  3178. Wed May 13 18:28:20 1992 Steve Chamberlain (sac@thepub.cygnus.com)
  3179. * findvar.c (read_relative_register_raw_bytes): use the raw size
  3180. of a register to bcopy, rather than the host's sizeof(CORE_ADDR).
  3181. Tue May 12 17:44:39 1992 Steve Chamberlain (sac@thepub.cygnus.com)
  3182. Changes to support GDB running on DOS using GO32 and H8 support
  3183. * defs.h: if xm.h doesn't define FOPEN_RB, include "fopen-same.h",
  3184. allowing hosts with different text and binary file formats to
  3185. work.
  3186. * coffread.c (read_coff_symtab): changed calling convention and
  3187. operation - now it opens its own file with FOPEN_RB rather than
  3188. duping and fdopening the provided handle.
  3189. * dbxread.c, cplus-dem.c: #include mangling.
  3190. * exec.c: If O_BINARY isn't defined, set it to 0, call openp for
  3191. binary files oring in the right bit.
  3192. * utils.c, terminal.h, inflow.c: hackery because dos doesn't have terminals.
  3193. * remote-hms.c: cleanup to use the new remote serial stuff
  3194. * serial.h, ser-termios.c, ser-go32.c: newfiles to provide host
  3195. independent remote terminal I/O.
  3196. * remote.c: if DONT_USE_REMOTE not defined, then don't use it.
  3197. * source.c (openp): fix off by one problem removing / - can now
  3198. open a source file in the root directory with DOS.
  3199. * values.c (value_as_pointer): remove bogus address bits from
  3200. long. (unpack_long): unpack into unsigned long/short if pointer.
  3201. Tue May 12 14:15:48 1992 Stu Grossman (grossman at cygnus.com)
  3202. * infrun.c (child_attach): Don't allow gdb to attach to itself.
  3203. It gets permanently stuck in many OSes.
  3204. * breakpoint.c, infcmd.c, infrun.c, utils.c: Change many printfs
  3205. to printf_filtered.
  3206. * breakpoint.c: Improve help text for info breakpoints.
  3207. Mon May 11 14:17:18 1992 John Gilmore (gnu at cygnus.com)
  3208. * README: Add pointer to internals doc, and describe reading
  3209. info files.
  3210. * utils.c (print_sys_errmsg): Use stderr. Reported by Pierre Willard.
  3211. * symtab.c (output_source_filename): Remove old glop for wrapping
  3212. lines, use wrap_here. Reported by Pierre Willard (pierre@la.tce.com).
  3213. Thu May 7 11:45:03 1992 John Gilmore (gnu at cygnus.com)
  3214. * Makefile.in: version.c should depend on Makefile, not Makefile.in.
  3215. * munch: Add sort -u to avoid duplications.
  3216. * symtab.c (lookup_symbol): Improve Stu's fix of 22 April.
  3217. Improved fix by hahn@sunshine.labs.tek.com (Doug Hahn).
  3218. Mon May 11 13:27:46 1992 Fred Fish (fnf@cygnus.com)
  3219. * cplus-dem.c (demangle_signature): Recognize misplaced '_' to
  3220. avoid infinite loops while demangling bogus mangled names.
  3221. * valprint.c (type_print_base): Minor fix for GNU style guide
  3222. conformance.
  3223. Sat May 9 18:02:17 1992 Fred Fish (fnf at fishpond)
  3224. * Makefile.in (VERSION): Bump to 4.5.3
  3225. * Makefile.in (DEMANGLE_OPTS): Remove obsolete -Dnounderscore
  3226. * Makefile.in (demangle): New target to create standalone
  3227. demangler with same code and options as internal demangler.
  3228. * cplus-dem.c: Massive restructuring, rewriting, cleanups, etc
  3229. to support ARM style and Lucid style demangling, improve
  3230. maintainability, fix several demangling bugs. More changes
  3231. to follow.
  3232. * defs.h (strstr): Add ANSI compatible prototype.
  3233. * valprint.c (type_print_1): Demangle using ansi option.
  3234. * config/ncr3000.mt (DEMANGLE_OPTS): Remove -Dnounderscore.
  3235. Sat May 9 14:47:28 1992 Stu Grossman (grossman at cygnus.com)
  3236. * xcoffexec.c (vmap_exec): Don't assume .text and .data are the
  3237. first two sections.
  3238. Fri May 8 11:42:15 1992 Per Bothner (bothner@rtl.cygnus.com)
  3239. * mipsread.c (parse_procedure): Return rather than using
  3240. uninitialized variable 'b'.
  3241. Fri May 8 07:48:27 1992 Stu Grossman (grossman at cygnus.com)
  3242. * Makefile.in, remote-udi.c, remote-vx.c, 29k-share/dfe/mini2udi.c,
  3243. 29k-share/dfe/yank.c, vx-share/xdr_ptrace.c, vx-share/xdr_regs.c:
  3244. Remove -I29k-share, -Ivx-share from Makefile.in. Make #includes
  3245. relative to each source file.
  3246. Fri May 8 07:48:27 1992 K. Richard Pixley (rich@cygnus.com)
  3247. * Makefile.in: propogate INSTALL, INSTALL_DATA, INSTALL_PROGRAM on
  3248. recursions.
  3249. Thu May 7 10:00:52 1992 Stu Grossman (grossman at cygnus.com)
  3250. * am29k-pinsn.c: Use new opcode table in "opcode/a29k.h".
  3251. * am29k-tdep.c: Update to latest code from AMD.
  3252. (get_saved_register) don't crap out if no frame.
  3253. * remote-udi.c: Set/clear inferior_pid as appropriate.
  3254. (udi_open) call target_preopen, don't close fd 0!!!, clean up
  3255. error handling. Fixup end-of-debugging messages.
  3256. (udi_fetch_registers) clean up big time, mainly don't multiply
  3257. register_valid indices by 4, and use proper Offset when reading
  3258. gr96-gr127. (udi_store_registers) general cleanup.
  3259. (fetch_register) cleanup, simplify. (regnum_to_srnum)
  3260. INT_REGNUM->INTE_REGNUM.
  3261. * tm-29k.h: Upgrade to latest code from AMD.
  3262. * 29k-share/udi/udip2soc.c: Get rid of useless errmsg_m macro.
  3263. (UDIConnect) Clean up error processing (like, don't do exit() if
  3264. execlp fails), make code restartable, make more attractive.
  3265. (UDIStop) Use SIGINT instead of SIGUSR1, as isstip won't stop
  3266. otherwise.
  3267. Wed May 6 14:34:18 1992 Per Bothner (bothner@rtl.cygnus.com)
  3268. * tm-irix3.h: Re-define CPLUS_MARKER to '.'.
  3269. * xm-rs6000.h, tm-rs6000.h: Move re-definition of CPLUS_MARKER
  3270. from former to latter.
  3271. Wed May 6 14:12:35 1992 Fred Fish (fnf@cygnus.com)
  3272. * cplus-dem.c (do_args): Handle void args the same as others.
  3273. * objfiles.c (free_objfile): Only try to unmap files when
  3274. reusable objfiles are supported.
  3275. * valprint.c (type_print_varspec_suffix): Add parameter that
  3276. specifies if C++ demangling included function arguments. Use
  3277. it to suppress printing extra pair of ()'s.
  3278. * valprint.c (type_print_1): Fix problem with printing demangled
  3279. C++ function types where demangled type includes the function
  3280. args.
  3281. Tue May 5 11:10:27 1992 Fred Fish (fnf@cygnus.com)
  3282. * Makefile.in (DEMANGLER): Define and default to cplus-dem.
  3283. Allows selection of C++ demangler to be a configuration option
  3284. until multiple demanglers are supported.
  3285. * demangle.h: New include file for extended demangler support.
  3286. * breakpoint.c, gdbtypes.c, printcmd.c, stack.c, symtab.c,
  3287. utils.c, valprint.c: Include "demangle.h" and change all calls
  3288. to cplus_demangle() or fputs_demangled() to use individual
  3289. demangling options.
  3290. * valprint.c (type_print_1): Change options to cplus_demangle
  3291. to print demangled function args. Still broken, but now less so.
  3292. * cplus-dem.c: Include demangle.h, reorganize and update some
  3293. comments to reflect reality.
  3294. * cplus-dem.c (cplus_demangle, cplus_mangle_opname): Change
  3295. second arg from fixed integer to bit based multiple options.
  3296. * cplus-dem.c (optable): Reformat and replace ansi members with
  3297. bit based options.
  3298. * cplus-dem.c (do_type): Fix bug with parsing missing return type.
  3299. Mon May 4 22:26:59 1992 John Gilmore (gnu at cygnus.com)
  3300. * values.c (set_internalvar): Force evaluation of lazy values.
  3301. Bug reported by RMS.
  3302. Sun May 3 15:47:45 1992 Fred Fish (fnf@cygnus.com)
  3303. * Makefile.in (VERSION): Bump to 4.5.2.
  3304. * Makefile.in (DEMANGLE_OPTS): Add, default to -Dnounderscore.
  3305. * configure.in: Simplify ncr3000 gdb_host logic, add gdb_target.
  3306. * dwarfread.c (struct_type): Apply fix from Peggy Fieland for
  3307. proper handling of bit fields.
  3308. * gdbtypes.h (struct type): Clarify use of field.bitpos.
  3309. * symtab.h: Fix couple of misspellings in comments.
  3310. * value.h (struct value): Clarify use of bitpos.
  3311. * value.h (unpack_field_as_long): Change prototype, returns
  3312. LONGEST.
  3313. * values.c (unpack_field_as_long): Change return type to LONGEST,
  3314. sign extend unpacked fields that are signed, other rewriting.
  3315. * config/ncr3000.mt: New target config file.
  3316. Fri May 1 01:53:26 1992 John Gilmore (gnu at cygnus.com)
  3317. * utils.c (printchar): Print 0x7F and 0x80-0x9F in \nnn notation
  3318. even when printing 8-bit characters.
  3319. * gdbtypes.c (make_{reference,pointer,function}_type): New
  3320. functions which handle overwriting of forward-referenced types
  3321. for stabs file reading.
  3322. (lookup_{reference,pointer,function}_type): These just call
  3323. the make_*_type functions with a null storage alloc parameter.
  3324. * gdbtypes.h (make_{reference,pointer,function}_type): Declare.
  3325. * xcoffread.c (smash_to_pointer_type): Remove, no longer used.
  3326. * buildsym.c (dbx_lookup_type): Zero result for (-1,-1) arg.
  3327. (dbx_alloc_type): Make it easier to understand. No funct change.
  3328. (define_symbol: 't'): Don't put the typedef name into the name of
  3329. the struct, union, or enum. Bugfix.
  3330. (read_type: '*', '&', 'f'): Add comments. Use make_XXX_type
  3331. routines to properly handle overwriting preallocated types so that
  3332. forward references will work.
  3333. (read_enum_type): Force enum values to file scope, due to bug in
  3334. Sun compiler output. FIXME, fix later.
  3335. Remove unused header_file_prev_index mechanism. It was already
  3336. obsolete in gdb-3.5. These comments appeared in 3.5:
  3337. /* This code was used before I knew about the instance codes.
  3338. My first hypothesis is that it is not necessary now
  3339. that instance codes are handled. */
  3340. * dbxread.c (add_new_header_file): Remove header_file_prev_index.
  3341. * buildsym.h: Remove it and prev_index that saves it.
  3342. * buildsym.c (push_subfile, pop_subfile, start_symtab): Remove it.
  3343. * solib.c (special_symbol_handling): When called from core files,
  3344. must set up debug_addr. Don't print error messages, just return.
  3345. * symmisc.c (print_symbol): Less ascii diarrhea for enums, please.
  3346. Wed Apr 29 15:26:51 1992 Per Bothner (bothner@rtl.cygnus.com)
  3347. * cplus-dem.c: Allow nested class names (as in
  3348. Foo::Bar::method()).
  3349. Allow the cleaner cfront style of nested class names
  3350. (Q2_3Foo3Bar as well as Q23Foo3Bar).
  3351. Make cplus_demangle re-entrant by removing use of global
  3352. variables. Instead, place all shared variables in a
  3353. stack-allocated structure, and pass around its address.
  3354. Fri Apr 24 07:41:19 1992 Stu Grossman (grossman at cygnus.com)
  3355. * Makefile.in (make-proto-gdb-1): 1st cut at packaging
  3356. 29k-share/* subdirs...
  3357. * remote-udi.c (udi_insert/remove_breakpoint): Completely
  3358. rewrite, only leave out the bugs.
  3359. * Makefile.in: Add 29k/UDI support. Improve depend.
  3360. * alldeps.mak, configure.in, depend: Add 29k/UDI support.
  3361. * am29k-tdep.c: Update to use new calling conventions, and misc
  3362. symbol elements.
  3363. * m68k-pinsn.c (print_insn_arg): Make branch offsets be signed.
  3364. Thu Apr 23 18:43:17 1992 Fred Fish (fnf@cygnus.com)
  3365. * tm-29k.h: Set DECR_PC_AFTER_BREAK to 0, as 29ks have nice
  3366. breakpoint instructions that leave PC pointing at the right place.
  3367. * core.c (core_open): Call warning() to print warnings.
  3368. Wed Apr 22 09:55:42 1992 Stu Grossman (grossman at cygnus.com)
  3369. * symtab.c (lookup_symbol): Need to check if msymbol->name is
  3370. NULL, as ALL_MSYMBOLS will never return a NULL msymbol pointer.
  3371. This prevents a crash when trying to lookup the value of a
  3372. non-existent symbol.
  3373. Wed Apr 22 09:42:15 1992 Fred Fish (fnf@cygnus.com)
  3374. * signame.c, signame.h: Remove, replaced by strsignal.c in
  3375. libiberty.
  3376. * i960-tdep.c, infrun.c, mach386-xdep.c, procfs.c, sparc-tdep.c,
  3377. sun386-xdep.c: Remove include of signame.h
  3378. * Makefile.in (SFILES_MAINDIR): Remove signame.c
  3379. * Makefile.in (HFILES): Remove signame.h
  3380. * Makefile.in (OBS): Remove signame.o
  3381. * defs.h (safe_strerror, safe_strsignal, strerrno, strsigno,
  3382. errno_max, signo_max, strtoerrno, strtosigno, strsignal,
  3383. psignal, perror): Add prototypes.
  3384. * defs.h, xm-apollo68v.h, xm-ultra3.h (SYS_SIGLIST_MISSING):
  3385. Remove define.
  3386. * depend: Manually remove signame.[cho] references.
  3387. * convex-tdep.c (subsig_name): Replace use of sys_siglist with
  3388. strsignal.
  3389. * convex-xdep.c (core_file_command): Replace use of sys_siglist
  3390. with safe_strsignal.
  3391. * core.c (core_open): Replace use of sys_siglist with
  3392. safe_strsignal.
  3393. * core.c (memory_error): Replace use of sys_errlist with
  3394. safe_strerror.
  3395. * i960-tdep.c (print_fault): Replace use of sys_siglist with
  3396. safe_strsignal.
  3397. * infcmd.c (program_info): Replace use of sys_siglist with
  3398. safe_strsignal.
  3399. * infrun.c (signal_stop, signal_print, signal_program):
  3400. Allocate dynamically based on dynamic determination of number
  3401. of signals to support.
  3402. * infrun.c (child_create_inferior): Replace use of sys_errlist
  3403. with safe_strerror.
  3404. * infrun.c (wait_for_inferior): Replace use of sys_siglist with
  3405. safe_strsignal.
  3406. * infrun.c (sig_print_info): Replace use of sig_abbrev with
  3407. strsigno and sys_siglist with safe_strsignal.
  3408. * infrun.c (handle_command): Call signo_max to find number of
  3409. signals. Replace sig_number with strtosigno and sig_abbrev with
  3410. strsigno.
  3411. * infrun.c (signals_info): Replace sig_number with strtosigno.
  3412. * infrun.c (_initialize_infrun): Call signo_max to find number of
  3413. signals. Dynamically allocate signal_{stop,print,program}.
  3414. * procfs.c (errno_table): Remove, now in libiberty/strerror.c.
  3415. * procfs.c (errnoname): Add function and prototype.
  3416. * procfs.c (info_proc_siginfo): Call errnoname, replace use
  3417. of sys_siglist with safe_strsignal.
  3418. * procfs.c (info_proc_stop, info_proc_signals): Replace use of
  3419. sys_siglist with safe_strsignal.
  3420. * procfs.c (info_proc_stop): Call errnoname.
  3421. * procfs.c (signalname): Replace sig_abbrev with strsigno.
  3422. * stuff.c (main, get_offset): Replace use of sys_errlist with
  3423. strerror.
  3424. * sun386-xdep.c (core_file_command): Replace use of sys_siglist
  3425. with safe_strsignal.
  3426. * umax-xdep.c (core_file_command): Replace use of sys_siglist
  3427. with safe_strsignal.
  3428. * utils.c (safe_strerror, safe_strsignal): Add functions that
  3429. call strerror and strsignal respectively, and deal with NULL
  3430. returns.
  3431. * utils.c (perror_with_name, print_sys_errmsg): Replace use of
  3432. sys_errlist with safe_strerror.
  3433. * valprint.c (val_print): Replace use of sys_errlist with
  3434. safe_strerror.
  3435. Tue Apr 21 12:00:47 1992 K. Richard Pixley (rich@cygnus.com)
  3436. * Makefile.in: rework CFLAGS so that they can be set from the
  3437. command line to make. CFLAGS -> INTERNAL_CFLAGS.
  3438. USER_CFLAGS -> CFLAGS. Remove MINUS_G. Default CFLAGS to -g.
  3439. Pass CFLAGS on recusions.
  3440. Fri Apr 17 19:25:57 1992 Fred Fish (fnf@cygnus.com)
  3441. * gdbtypes.h, c-exp.y, m2-exp.y, mipsread.c, gdbtypes.c: Back
  3442. out of change on 4/14/92 and remove TYPE_FLAG_FUND_TYPE. It was
  3443. overkill for the problem it solved.
  3444. * valprint.c (type_print_base): Remove TYPE_FLAG_FUND_TYPE test
  3445. and default to simply printing type names as appropriate.
  3446. * main.c (main): Remove one of the leading newlines from
  3447. warning_pre_print initialization.
  3448. * objfiles.c (open_existing_mapped_file): Add function and
  3449. prototype.
  3450. * objfiles.c (open_mapped_file): Rewrite to use new function
  3451. open_existing_mapped_file.
  3452. Thu Apr 16 23:50:12 1992 John Gilmore (gnu at cygnus.com)
  3453. * sun3-xdep.c (fetch_core_registers): Lint.
  3454. * tm-sun3.h: Prototype lint.
  3455. * value.h: Typo.
  3456. Thu Apr 16 19:56:50 1992 Fred Fish (fnf@cygnus.com)
  3457. * dwarfread.c (TARGET_FT_POINTER_SIZE, TARGET_FT_LONG_SIZE):
  3458. Define using TARGET_PTR_BIT and TARGET_LONG_BIT for now.
  3459. * objfiles.c: Cast calls to close() with unused returns to void.
  3460. * objfiles.c (allocate_objfile): Initialize objfile's mmfd, free
  3461. old objfile's name before updating it.
  3462. * objfiles.c (free_objfile): Major rewrite for mapped objfiles.
  3463. * objfiles.h (objfile struct): Add mmfd member.
  3464. * symfile.c (syms_from_objfile): Move some code to
  3465. new_symfile_objfile.
  3466. * symfile.c (new_symfile_objfile): Add new function, common code
  3467. from syms_from_objfile.
  3468. * symfile.c (symbol_file_add): Call new_symfile_objfile for both
  3469. mapped and unmapped symbol files.
  3470. * symfile.c (symbol_file_command): Print "No symbol file now"
  3471. message, ala exec_file_command for the exec file.
  3472. * symfile.h (new_symfile_objfile): Add prototype.
  3473. * xcoffexec.c (map_vmap): Add call to new_symfile_objfile.
  3474. * xcoffsolib.c (solib_add): Add call to new_symfile_objfile.
  3475. Thu Apr 16 18:26:34 1992 Per Bothner (bothner@cygnus.com)
  3476. * rs6000-pinsn.c: New version from IBM (Metin).
  3477. * m2-exp.y: Re-write string initializers ("<>" => {'<', '>'})
  3478. to avoid warnings from some compilers.
  3479. Tue Apr 14 22:33:55 1992 Fred Fish (fnf@cygnus.com)
  3480. * gdbtypes.h (FT_FIXED_DECIMAL, FT_FLOAT_DECIMAL): Add defines.
  3481. * gdbtypes.h (TYPE_FLAG_FUND_TYPE): Add define for bit in a
  3482. type's flag word that marks it as a fundamental type.
  3483. * c-exp.y (_initialize_c_exp): Add TYPE_FLAG_FUND_TYPE bit to
  3484. flags argument for all calls to init_type().
  3485. * m2-exp.y (_initialize_m2_exp): Add TYPE_FLAG_FUND_TYPE bit to
  3486. flags argument for all calls to init_type(). Also remove
  3487. dependency on host sizes for ints, floats, etc.
  3488. * mipsread.c (_initialize_mipsread): Add TYPE_FLAG_FUND_TYPE bit to
  3489. flags argument for all calls to init_type(). Also remove
  3490. dependency on host sizes for ints, floats, etc.
  3491. * gdbtypes.c (lookup_fundamental_type): Add TYPE_FLAG_FUND_TYPE
  3492. bit to flags argument for all calls to init_type(). Add types
  3493. FT_FIXED_DECIMAL and FT_FLOAT_DECIMAL.
  3494. * valprint.c (unsigned_type_table, signed_type_table,
  3495. float_type_table): Remove.
  3496. * valprint.c (type_print_base): Test new TYPE_FLAG_FUND_TYPE
  3497. bit when printing fundamental types, and print the actual name
  3498. for such types, rather than inventing one. Remove code that
  3499. invented fundamental type names.
  3500. * valprint.c (_initialize_valprint): Remove initializations
  3501. for now removed unsigned_type_table, signed_type_table, and
  3502. float_type_table.
  3503. Tue Apr 14 14:30:46 1992 Stu Grossman (grossman at cygnus.com)
  3504. * remote-vx.c, vx-share/xdr_ptrace.c, vx-share/xdr_ptrace.h,
  3505. vx-share/xdr_rdb.h: Update for new remote protocol under VxWorks
  3506. 5.0.2.
  3507. Mon Apr 13 20:59:21 1992 Fred Fish (fnf@cygnus.com)
  3508. * dwarfread.c (target_to_host): New function similar to previous
  3509. swapin function.
  3510. * dwarfread.c (SWAPIN, swapin): Remove macro and support function.
  3511. Extensive changes to convert all previous usages to use new
  3512. target_to_host() function.
  3513. * dwarfread.c (struct dieinfo): Change types of most integral
  3514. members to be unsigned.
  3515. Mon Apr 13 15:59:10 1992 John Gilmore (gnu at cygnus.com)
  3516. * WHATS.NEW: Revise -mapped doc.
  3517. Sat Apr 11 23:14:36 1992 John Gilmore (gnu at cygnus.com)
  3518. * mipsread.c (parse_partial_symbols): Complain when sh->index is
  3519. too high or when skipping `forwards' moves us backwards.
  3520. (parse_type): Print mis-guessed tag name in complaint.
  3521. (parse_external): Eliminate cur_stab and obscure top_stack clobbers.
  3522. (parse_procedure): Do not attempt to create symbols; just fill in
  3523. the SYMBOL_VALUE field of a .gdbinfo. symbol if we can find one.
  3524. (psymtab_to_symtab_1): Split up `stabs' from `native ecoff' code
  3525. for clarity. Set top_stack before calling parse_external. In
  3526. stabs, sort symbols before calling parse_procedure.
  3527. * mipsread.c: Lint.
  3528. * symmisc.c (std_in, std_out, std_err): Add vars to access std
  3529. FILE *'s when debugging GDB (e.g. as args to dump_symtab).
  3530. * Makefile.in: Remove stage* targets. Avoid echo on recursive
  3531. makes. Eliminate doc/Makefile from tar.Z file if doc/Makefile.in
  3532. exists.
  3533. Fri Apr 10 23:47:37 1992 John Gilmore (gnu at cygnus.com)
  3534. * Makefile.in (VERSION): Set to 4.5.1.
  3535. * xcoffread.c (NO_TYPEDEFS): Fix typo in commented-out #define.
  3536. * sparc-tdep.c (supply_gregset, fill_gregset, supply_fpregset,
  3537. fill_gregset): New functions for SVR4 /proc support.
  3538. * mipsread.c: Cleanup. Add more complaints for unhandled cases.
  3539. Remove new symbol types and such to ../include/coff/symconst.h.
  3540. (parse_symbol): Simplify code for parsing struct/enum/unions.
  3541. (parse_type): Handle `long long' types.
  3542. (upgrade_type): Handle `const' qualifier.
  3543. (parse_partial_symbols): fix indentation, clean a bit.
  3544. Fri Apr 10 22:41:03 1992 Fred Fish (fnf@cygnus.com)
  3545. * dwarfread.c (SWAPIN,swapin): New macro and function to call to
  3546. copy in data from raw read buffers, calling bfd byteswapping
  3547. routines as appropriate. Use to replace most existing memcpy
  3548. calls.
  3549. * dwarfread.c (basicdieinfo, completedieinfo): Add objfile arg.
  3550. * configure.in: Recognize new ncr3000 config.
  3551. * config/ncr3000.mh: New config file.
  3552. Fri Apr 10 08:30:58 1992 Stu Grossman (grossman at cygnus.com)
  3553. GDB-4.5 release!
  3554. * README: Update for release.
  3555. * Makefile.in: Update version to 4.5.
  3556. * WHATS.NEW: The obvious.
  3557. * depend: Generate new depend file for this release.
  3558. * Makefile.in (depend): Fix dependancy generation so that it does
  3559. not include gcc 'fixincluded' files, which are usually in a system
  3560. specific location.
  3561. Thu Apr 9 13:35:00 1992 Per Bothner (bothner@rtl.cygnus.com)
  3562. Changes from metin@ibmpa.awdpa.ibm.com (Metin G. Ozisik).
  3563. * buildsym.c (#ifdef RS6000_TARGET): Don't create unnecessary
  3564. symbols for nameless types. And, handle `R' (register parameter
  3565. type) for AIX. (an extension to existing stabstring grammar).
  3566. * rs6000-xdep.c: Fix typo (= should have been ==).
  3567. Thu Apr 9 12:10:06 1992 Stu Grossman (grossman at cygnus.com)
  3568. * Makefile.in: version=4.4.88, add xm-vax.h to HFILES.
  3569. Thu Apr 9 02:29:03 1992 John Gilmore (gnu at cygnus.com)
  3570. * xm-sun4os5.h (DO_DEFERRED_STORES, CLEAR_DEFERRED_STORES): Zap.
  3571. * signame.c (SIGWAITING, SIGLWP): Add.
  3572. Tue Apr 7 16:34:07 1992 Per Bothner (bothner@cygnus.com)
  3573. * xm-i386mach.h: add decls for errno and strdup().
  3574. * breakpoint.c (breakpoint_1): Add (int) casts for enums
  3575. used in array index context (otherwise, some compilers barf).
  3576. Tue Apr 7 08:45:46 1992 Stu Grossman (grossman at cygnus.com)
  3577. * m68k-tdep.c, tm-sun3.h: #ifdef around get_longjmp_target().
  3578. Change def of SAVED_PC_AFTER_CALL to call routine to see if we are
  3579. in a system call, and provide better backtrace if so.
  3580. * Makefile.in (HFILES): Add xcoffsolib.h.
  3581. * rs6k-opcode.h: Move to ../include/opcode/rs6k.h.
  3582. * rs6000-pinsn.c: #include "opcode/rs6k.h"
  3583. * mipsread.c (read_mips_symtab, read_the_mips_symtab,
  3584. mipscoff_symfile_read): Convert to BFD to do file I/O.
  3585. * symfile.c: #include <ctype.h> to get proper def if isspace().
  3586. * i386-tdep.c (get_longjmp_target): #ifdef GET_LONGJMP_TARGET.
  3587. Mon Apr 6 17:25:45 1992 Per Bothner (bothner@cygnus.com)
  3588. * mipsread.c: Create a .gdbinfo pseudo-symbol for each
  3589. function also when parsing embedded stabs.
  3590. Mon Apr 6 15:25:03 1992 Stu Grossman (grossman at cygnus.com)
  3591. * mipsread.c: Fix more declarations.
  3592. * mipsread.c: Fix many invocations of complain. Use enum
  3593. type_code where appropriate.
  3594. * xm-vaxult.h: Add decl for strdup().
  3595. * Makefile.in: Add dependancies for xm-vaxbsd.h and xm-vaxult.h
  3596. for xm-vax.h.
  3597. Fri Apr 3 17:41:29 1992 Stu Grossman (grossman at cygnus.com)
  3598. * buildsym.h, dbxread.c, mipsread.c: Add objfile arg to
  3599. process_one_symbol.
  3600. Fri Apr 3 12:17:14 1992 Per Bothner (bothner@cygnus.com)
  3601. * munch: Must pre-pend "_" to "initialize" for SYSV style nm.
  3602. * tm-rs6000.h, xcoffexec.c, xcoffread.c, xm-rs6000.h:
  3603. Merge in more patches for rs6000 from Metin Ozisik.
  3604. * utils.c: Fix typo in comment.
  3605. Fri Apr 3 11:23:03 1992 Fred Fish (fnf@cygnus.com)
  3606. * procfs.c (procinfo struct): Add nopass_next_sigstop member.
  3607. * procfs.c (attach): Set nopass_next_sigstop if attached
  3608. process is forcibly stopped.
  3609. * procfs.c (child_resume): Use nopass_next_sigstop to suppress
  3610. resending SIGSTOP to attached process on first resume.
  3611. Fri Apr 3 01:37:26 1992 Stu Grossman (grossman at cygnus.com)
  3612. * Makefile.in (SFILES_MAINDIR): add mipsread.c
  3613. Thu Apr 2 20:20:54 1992 John Gilmore (gnu at cygnus.com)
  3614. * Makefile.in (OBS): Compile mipsread.c for all targets now.
  3615. (VERSION): Bump to 4.4.85.
  3616. * mipsread.c: Update for new include files. Lint.
  3617. * tm-irix3.h, tm-mips.h: Use new include files for ECOFF symtab.
  3618. * config/{bigmips.mt, littlemips.mt, irix3.mt, decstation.mt}:
  3619. Don't need to bring in mipsread.o specially any more.
  3620. Thu Apr 2 19:38:31 1992 Stu Grossman (grossman at cygnus.com)
  3621. * mipsread.c (fixup_sigtramp): Also look for _sigtramp as a real
  3622. routine (for Irix-4.x). Make many funcs static and void.
  3623. * mips-tdep.c (mips-frame-chain): Clean up, simplify.
  3624. * (init_extra_frame_info): Don't trash cached value of frame
  3625. pointer register. This fixes backtracing through routines that use
  3626. alloca(). Generally clean up declarations of functions, and use
  3627. typedefs and macros to reference data structures as appropriate.
  3628. * tm-irix3.h, tm-mips.h (EXTRA_FRAME_INFO): use proper type for
  3629. proc_desc element.
  3630. Thu Apr 2 09:47:11 1992 Fred Fish (fnf@cygnus.com)
  3631. * values.c (unpack_long): Fix unpacking error for signed chars
  3632. on hosts where the default character type is unsigned.
  3633. * procfs.c (pr_flag_table, pr_why_table): Add some entries
  3634. for newer SVR4 variants.
  3635. * procfs.c (proc_set_exec_trap): Reorder tests for ioctl's that
  3636. turn off trace inherit-on-fork flag to favor latest SVR4 method.
  3637. * procfs.c (mappingflags): Add support for MA_PHYS
  3638. Thu Apr 2 00:55:56 1992 John Gilmore (gnu at cygnus.com)
  3639. * buildsym.c (read_struct_type): Avoid coredump when C++
  3640. abbreviated type name is messed up. Reported by Joe Buck.
  3641. FIXME, we need to determine whether GDB or GCC needs to be
  3642. smarter to correctly locate this type name.
  3643. * c-exp.y, coffread.c, command.c, command.h, copying.awk,
  3644. dbxread.c, gdbtypes.c, infcmd.c, inferior.h, infrun.c,
  3645. m2-exp.y, printcmd.c, remote.c, solib.c, source.c, stack.c,
  3646. symtab.c, tm-sun4os4.h, tm-sun4os5.h, values.c: Lint.
  3647. * symfile.c (add_symbol_file_command): Initialize mapped/readnow.
  3648. Wed Apr 1 11:39:52 1992 Fred Fish (fnf@cygnus.com)
  3649. * breakpoint.h (bpdisp, bptype): Remove trailing comma.
  3650. * symtab.h (current_source_symtab): Make extern
  3651. * symtab.h (current_source_line): Make extern
  3652. * inferior.h: Move all procfs.c prototypes to one place, add
  3653. prototype for proc_signal_handling_change. Add prototypes for
  3654. signal_stop_state, signal_print_state, and signal_pass_state.
  3655. * inferior.h (stop_soon_quietly): Make extern
  3656. * inferior.h (attach_flag): Make extern
  3657. * infrun.c (NOTICE_SIGNAL_HANDLING_CHANGE): Default is null.
  3658. * infrun.c (signal_stop_state, signal_print_state,
  3659. signal_pass_state): New functions to query specific signal
  3660. handling flags.
  3661. * infrun.c (handle_command): Minor error message change, add
  3662. NOTICE_SIGNAL_HANDLING_CHANGE.
  3663. * procfs.c (open_proc_file): Remove iris specific reset of
  3664. inherit-on-fork flag, moved to proc_set_exec_trap().
  3665. * procfs.c (proc_set_exec_trap): Add SVR4 and iris code
  3666. to reset inherit-on-fork flag, bash comment to GNU form.
  3667. * procfs.c (proc_base_address, set_proc_siginfo,
  3668. fetch_core_registers): Conform to code style.
  3669. * procfs.c (signame.h): Include.
  3670. * procfs.c (MAX_SYSCALLS, syscall_table[], init_syscalltable(),
  3671. syscallname(), info_proc_syscalls()): New macros, tables, and
  3672. functions to organize and report system call information.
  3673. * procfs.c (saved_fltset, saved_trace, saved_sighold,
  3674. saved_exitset, saved_entryset): Add to procinfo struct.
  3675. * procfs.c (struct trans): Add.
  3676. * procfs.c (pr_flag_table, pr_why_table, faults_table,
  3677. siginfo_table, errno_table): Tables to translate numeric values
  3678. to symbolic names and short descriptions.
  3679. * procfs.c (signalname, info_proc_signals): Add function and
  3680. prototype.
  3681. * procfs.c (proc_info): Now info_proc.
  3682. * procfs.c (proc_info_address_map): Now info_proc_mappings.
  3683. * procfs.c (info_proc_flags, info_proc_stop, info_proc_siginfo,
  3684. info_proc_faults, lookupname, lookupdesc, sigcodename,
  3685. sigcodedesc): New functions.
  3686. * procfs.c (proc_signal_handling_change): New function to set
  3687. the trace flags based on the state of gdb's signal handling flags.
  3688. * procfs.c (inferior_proc_init): Call proc_signal_handling_change
  3689. and remove code to do PIOCSTRACE ioctl.
  3690. * procfs.c (attach, detach): Preserve and restore process flags
  3691. using saved_* fields in procinfo struct.
  3692. * procfs.c (attach): Call proc_signal_handling_change.
  3693. * procfs.c (info_proc): Major rework to expand "info proc" cmd.
  3694. * procfs.c (proc_desc): Update for latest changes.
  3695. * xm-irix4.h (CREATE_INFERIOR_HOOK): Protect by USE_PROC_FS.
  3696. * xm-irix4.h (NOTICE_SIGNAL_HANDLING_CHANGE): Add definition.
  3697. * xm-sysv4.h (NOTICE_SIGNAL_HANDLING_CHANGE): Add definition.
  3698. Tue Mar 31 18:38:28 1992 Fred Fish (fnf@cygnus.com)
  3699. * procfs.c (set_proc_siginfo): Add prototype and new function.
  3700. * procfs.c (detach, child_resume): Call set_proc_siginfo to set
  3701. up inferior siginfo struct.
  3702. * elfread.c (elf_symfile_read): Compute the relocation amount
  3703. by subtracting off the address of the ".text" section.
  3704. * solib.c: Add pointer to ".text" section to so_list struct.
  3705. * solib.c (solib_map_sections): Initialize pointer to ".text"
  3706. section in so_list struct.
  3707. * solib.c (symbol_add_stub): Pass base address of ".text"
  3708. section to symbol_file_add, rather than the load address of
  3709. the shared library. On SunOS they are the same. On SVR4 they
  3710. are not.
  3711. Tue Mar 31 17:48:15 1992 Stu Grossman (grossman at cygnus.com)
  3712. * mipsread.c (parse_procedure): PDR.isym should get pointer to
  3713. function name, not .gdbinfo. symbol.
  3714. Tue Mar 31 17:05:04 1992 John Gilmore (gnu at cygnus.com)
  3715. * breakpoint.c (breakpoint_1): Fix prototype, this time for sure!
  3716. Tue Mar 31 11:01:06 1992 Stu Grossman (grossman at cygnus.com)
  3717. * Makefile.in (VERSION): 4.4.8
  3718. * procfs.c (open_proc_file): Disable inherit-on-fork flag so that
  3719. commands in .cshrc/.profile won't get traced.
  3720. Tue Mar 31 08:11:58 1992 John Gilmore (gnu at cygnus.com)
  3721. * elfread.c (elf_symtab_read): Use xmalloc, not bfd_xmalloc.
  3722. * exec.c (build_section_table): Don't abort if no sections.
  3723. * sparc-tdep.c (single_step): Lint.
  3724. * utils.c (mrealloc): Handle realloc (0, size) case here.
  3725. Mon Mar 30 16:50:43 1992 Stu Grossman (grossman at cygnus.com)
  3726. * Makefile.in (alldeps.mak): Config files are now *.m[ht] as
  3727. opposed to m[ht]-*!
  3728. * config/irix4.mh: Don't use coredep.o. It doesn't work with procfs.
  3729. * mipsread.c (parse_symbol, parse_procedure): Re-do the way that
  3730. .gdbinfo. symbols are created. Move creation from parse_procedure
  3731. to parse_symbol, where it is fairly easy to grow the symtab. This
  3732. also fixes a symtab trashing bug on all mips-based systems.
  3733. * (got_numargs, lookup_numargs, free_numargs): Delete. Not
  3734. needed anymore.
  3735. * tm-mips.h, tm-iris3.h, mips-tdep.c, mipsread.c: Re-do struct
  3736. mips_extra_func_info, and all the PROC_xxx macros that look at it.
  3737. Mon Mar 30 14:17:53 1992 Per Bothner (bothner@cygnus.com)
  3738. * c-exp.y: Add missing return type to yyparse() prototype.
  3739. Sat Mar 28 22:22:06 1992 John Gilmore (gnu at cygnus.com)
  3740. Create and use macros for iterating on symtabs, psymtabs, msymbols.
  3741. * minsyms.c (iterate_over_msymbols): Remove; clunky and slow.
  3742. * symfile.h, symtab.h (iterate_over_msymbols): Remove prototype
  3743. * coffread.c (coff_symfile_read): iterate_over_symtabs => ALL_SYMTABS.
  3744. (patch_opaque_types): Avoid dummy args and result.
  3745. * objfiles.c (have_partial_symbols, have_full_symbols,
  3746. have_minimal_symbols): explicit iteration => ALL_OBJFILES; simplify.
  3747. (iterate_over_objfiles, iterate_over_symtabs,
  3748. iterate_over_psymtabs): Remove, clunky and slow.
  3749. * objfiles.h: Replace iterate_over_* prototypes with ALL_SYMTABS,
  3750. ALL_PSYMTABS, and ALL_MSYMBOLS macros.
  3751. * symmisc.c (dump_symtab, dump_psymtab, dump_msymbols,
  3752. dump_objfile): Remove dummy args and results. Move filename
  3753. comparisons to callers.
  3754. (printsyms_command, printpsyms_command, printmsyms_command,
  3755. printobjfiles_command): iterate_over_* => ALL_*. Compare filenames.
  3756. * symtab.c (lookup_symtab_1, lookup_symtab, lookup_partial_symtab,
  3757. lookup_symbol, find_main_psymtab, find_pc_symtab, sources_info,
  3758. list_symbols, make_symbol_completion_list): Replace explicit
  3759. iteration with ALL_SYMTABS, ALL_PSYMTABS, or ALL_MSYMBOLS.
  3760. Eliminate Dijkstra flag crap, break out of loops with gotos.
  3761. (lookup_symtab_1): Protect '/' tests from short filenames.
  3762. (cplus_mangled_symbol): Move inline into lookup_symbol.
  3763. * xcoffexec.c (relocate_objfile_msymbols): Remove poor hack.
  3764. (relocate_minimal_symbol): Move inline to vmap_symtab.
  3765. (vmap_symtab): Replace iteration with ALL_OBJFILES,
  3766. iterate_over_msymbols with ALL_MSYMBOLS.
  3767. Misc cleanup prior to release.
  3768. * Makefile.in (VERSION): Roll to 4.4.7.
  3769. (HFILES): Add call-cmds.h.
  3770. * call-cmds.h: New header for command fns called by other files.
  3771. * breakpoint.c (watchpoints_info): Remove, same as breakpoints_info.
  3772. (breakpoint_1): Remove unused type arg. Change callers.
  3773. * dwarfread.c (dwarf_build_psymtabs): Remove mainline test.
  3774. * mipsread.c (compare_symtabs, compare_psymtabs): Remove, unused.
  3775. * mipsread.c: Add prototypes for all static functions.
  3776. * symmisc.c (dump_symtab_lines, dump_symtabs, dump_last_symtab,
  3777. dump_blockvector, dump_block, dump_addrchass, dump_namespace,
  3778. dump_symbol, dump_type, dump_linetable, dump_strtbl): Remove, unused.
  3779. * xcoffread.c (dump_symtab_lines, dump_symtabs, dump_last_symtab,
  3780. dump_blockvector, dump_block, dump_addrchass, dump_namespace,
  3781. dump_symbol, dump_type, dump_linetable, dump_strtbl): Remove 2nd
  3782. unused copy!
  3783. * buildsym.c (define_symbol): Handle global register variables
  3784. (from Pierre Willard). Complain if register numbers are too large.
  3785. * target.c (nomemory): Now that higher levels examine errno, give EIO.
  3786. * tm-sparc.h: Don't #include <sun4/reg.h>.
  3787. * sparc-tdep.c (sparc_frame_chain, frame_saved_pc): Remove
  3788. dependency on <sun4/reg.h>. Start to handle cross-byte-order.
  3789. * language.h: Avoid forward enum declaration.
  3790. * configure.in, tm-sun4os5.h, xm-sun4os5.h, config/sun4os5.mh,
  3791. config/sun4os5.mt: New host and target.
  3792. * defs.h (errno): #include <errno.h> rather than assuming int.
  3793. From Pierre Willard.
  3794. * breakpoint.c, breakpoint.h, buildsym.c, coffread.c, cplus-dem.c,
  3795. dbxread.c, dwarfread.c, elfread.c, infcmd.c, infrun.c, inftarg.c,
  3796. language.c, main.c, mem-break.c, mips-tdep.c, mipsread.c,
  3797. partial-stab.h, remote.c, saber.suppress, symfile.c, symtab.c,
  3798. valops.c, valprint.c, xcoffread.c, c-exp.y, m2-exp.y, blockframe.c,
  3799. command.c, core.c, exec.c, gdbtypes.h, parse.c, printcmd.c, solib.c,
  3800. sparc-xdep.c, utils.c, value.h, values.c: Lint.
  3801. Sat Mar 28 02:43:26 1992 John Gilmore (gnu at cygnus.com)
  3802. * buildsym.c (read_range_type): Avoid int overflow by using unsigned.
  3803. * dbxread.c (dbx_symfile_init): Remove bogus `lvalue cast'.
  3804. * language.h (enum exp_opcode): Avoid forward enum def.
  3805. * main.c (define_command, user_defined_command): Lint.
  3806. * mem-break.c, xcoffread.c: Lint.
  3807. * solib.c: Only #include <a.out.h> on SunOS, not SVR4.
  3808. Sun Mar 29 14:16:22 1992 Per Bothner (bothner@cygnus.com)
  3809. * Merged in latest RS6000 diffs from Metin G. Ozisik.
  3810. * xcoffsolib.c, xcoffsolib.h: New files, from Metin.
  3811. * Various files: Changed #ifdef IBM6000 to IBM6000_HOST
  3812. or IBM6000_TARGET as (approximately) appropriate.
  3813. Sat Mar 28 13:00:10 1992 Fred Fish (fnf@cygnus.com)
  3814. * objfiles.h (OBJF_SYMS): Define flag bit for objfile flags.
  3815. * symfile.c (symbol_file_add): Use OBJF_SYMS to decide whether
  3816. or not to try reading symbols from a mapped objfile. Plugs memory
  3817. leak due to shared libraries generating no psymtabs or symtabs.
  3818. Fri Mar 27 15:44:55 1992 John Gilmore (gnu at cygnus.com)
  3819. * buildsym.c (MAX_OF_C_TYPE, MIN_OF_C_TYPE): Unused, remove.
  3820. * copying.awk: Lint. Make stronger warning at top of copying.c.
  3821. * elfread.c (elf_symtab_read): Eliminate check of mainline.
  3822. * gdbtypes.c (smash_to_*): Remove FIXME comments.
  3823. (lookup_pointer_type): Add FIXME comment.
  3824. * main.c (set_history_size_command): Disallow negative size.
  3825. * partial-stab.h: Update copyright.
  3826. * rs6000-tdep.c (skip_trampoline_code): Better comments.
  3827. Wed Mar 25 10:45:38 1992 John Gilmore (gnu at cygnus.com)
  3828. * main.c (set_history_size_command): Negative size is error.
  3829. (Reported by Peggy Fieland.)
  3830. Thu Mar 26 17:01:18 1992 Fred Fish (fnf@cygnus.com)
  3831. * coffread.c (coff_symfile_init): Update comment.
  3832. * dbxread.c (DBX_SYMFILE_INFO, DBX_TEXT_SECT, DBX_SYMCOUNT,
  3833. DBX_STRINGTAB, DBX_STRINGTAB_SIZE, DBX_SYMTAB_OFFSET): Define
  3834. macros to access the dbx specific objfile information.
  3835. * dbxread.c (symfile_string_table, symfile_string_table_size):
  3836. Remove these local variables.
  3837. * dbxread.c (read_ofile_symtab, psymtab_to_symtab_1,
  3838. read_dbx_symtab): Remove the stringtab and stringtab_size params
  3839. from the function prototypes, the function definition, and the
  3840. function calls. These are now available via DBX_STRINGTAB and
  3841. DBX_STRINGTAB_SIZE using the objfile pointer.
  3842. * dbxread.c (dbx_symfile_read): Relocate addr before using as
  3843. an arg to read_dbx_symtab.
  3844. * dbxread.c (dbx_symfile_read): Remove code that free'd the
  3845. stringtab and the dbx specific per-objfile private info.
  3846. * dbxread.c (init_psymbol_list): Remove symbol count from passed
  3847. args in prototype, function definition, and function calls. It is
  3848. now available via the DBX_SYMCOUNT macro using the objfile
  3849. pointer.
  3850. * dbxread.c (dbx_symfile_read, dbx_symfile_init): Remove the
  3851. local instance of struct dbx_symfile_info and replace with DBX_*
  3852. macros.
  3853. * dbxread.c (dbx_symfile_read): Remove init's of now deleted
  3854. symfile_string_table and symfile_string_table_size.
  3855. * dbxread.c (dbx_symfile_finish): Remove now obsolete free of
  3856. symfile_string_table.
  3857. * dbxread.c (init_psymbol_list): Use DBX_SYMCOUNT.
  3858. * dbxread.c (dbx_psymtab_to_symtab): Remove local stringtab and
  3859. stringtab size variables. Remove all code that used to reread
  3860. the stringtab.
  3861. * objfiles.c (allocate_objfile): Move calls to init_malloc()
  3862. to prior to any calls to mmalloc for the objfile specific heap.
  3863. * utils.c (init_malloc): Document the requirement that for each
  3864. heap for which corruption checking is desired, that init_mmalloc
  3865. must be called prior to any mmalloc calls on the heap.
  3866. Thu Mar 26 13:20:06 1992 Per Bothner (bothner@cygnus.com)
  3867. * rs6000-pinsn.c: Make dis-assembly output more like
  3868. other targets: Don't print instruction in hex before
  3869. the assembly; use print_address to print out jump
  3870. destinations.
  3871. Wed Mar 25 16:52:35 1992 Per Bothner (bothner@cygnus.com)
  3872. * c-exp.y, gdbtypes.h: Add builtin_type_signed_char.
  3873. * cplus-dem.c: Support "Sc" meaning "signed char".
  3874. Wed Mar 25 15:21:44 1992 Stu Grossman (grossman at cygnus.com)
  3875. * configure.in: fix iris/iris3.
  3876. Wed Mar 25 14:55:48 1992 Per Bothner (bothner@cygnus.com)
  3877. * command.c, main.c (various places): Use ctype.h macros
  3878. (such as isupper(x)), instead of hard-wiring in ASCII-isms
  3879. (such as (x >= 'A' && x <= 'Z')).
  3880. (There are still more of these in other files.)
  3881. * main.c (defined_command): Lower-case the user's
  3882. new command before entering it. Needed because
  3883. command lookup is case-insensitive (and also lower-cases).
  3884. (Based on Metin's earlier patch.)
  3885. Tue Mar 24 23:27:01 1992 K. Richard Pixley (rich@cygnus.com)
  3886. * config/irix4.mh: new file.
  3887. Tue Mar 24 14:17:48 1992 Stu Grossman (grossman@cygnus.com)
  3888. * infcmd.c (step_1): Call disable_longjmp_breakpoint at the right
  3889. time.
  3890. * xm-mips.h: Declare strdup for ultrix.
  3891. * mipsread.c (fixup_sigtramp): Make sure that current_objfile is setup
  3892. when calling new_symbol.
  3893. * mips-tdep.c (mips_frame_chain): Use symfile_objfile instead of
  3894. current_objfile.
  3895. Tue Mar 24 13:26:25 1992 Per Bothner (bothner@rtl.cygnus.com)
  3896. * config/rs6000.mh: Update (for Fred's new mmalloc)
  3897. flags to disable use of GNU malloc/mmalloc.
  3898. * munch: Change SYSV rule to allow .text before the label,
  3899. as well as after, to work for AIX.
  3900. * gdbtypes.h: Minor clarifiction.
  3901. Tue Mar 24 07:26:19 1992 Michael Tiemann (tiemann@cygnus.com)
  3902. * buildsym.c (read_struct_type): Handle cretinous dbx symbol name
  3903. continuation in yet another place (between method declarations).
  3904. Mon Mar 23 23:01:41 1992 Stu Grossman (grossman at cygnus.com)
  3905. * mips-tdep.c: include symfile.h and objfiles.h to fix
  3906. compilation errors.
  3907. Mon Mar 23 15:49:14 1992 Per Bothner (bothner@cygnus.com)
  3908. * valops.c (value_struct_elt_for_reference): Added 'offset'
  3909. parameter to handle multiple inheritance.
  3910. * eval.c, value.h: Update accordingly.
  3911. Fri Mar 20 17:43:27 1992 Fred Fish (fnf@cygnus.com)
  3912. * objfiles.h: New file
  3913. * Makefile.in (HFILES): Add objfiles.h
  3914. * blockframe.c: Remove entry_scope_lowpc, entry_scope_highpc,
  3915. main_scope_lowpc, main_scope_highpc.
  3916. * blockframe.c, buildsym.c, coffread.c, dbxread.c, dwarfread.c,
  3917. elfread.c, gdbtypes.h, minsyms.c, mipsread.c, objfiles.c, solib.c,
  3918. source.c, symfile.c, symmisc.c, symtab.c, target.c, xcoffexec.c,
  3919. xcoffread.c, : Include objfiles.h.
  3920. * tm-29k.h, tm-i386v.h, tm-merlin.h, tm-rs6000.h, tm-sun386.h,
  3921. tm-symmetry.h, tm-tahoe.h, tm-umax.h, tm-vax.h, m88k-tdep.c,
  3922. mips-tdep.c (FRAME_CHAIN): Renamed outside_startup_file to
  3923. inside_entry_file() and logic changed appropriately.
  3924. * blockframe.c (outside_startup_file): Renamed to
  3925. inside_entry_file() and logic changed appropriately.
  3926. * blockframe.c (inside_main_scope): Renamed to inside_main_func()
  3927. and logic changed to use per-objfile specific fields.
  3928. * blockframe.c (inside_entry_scope): Renamed to
  3929. inside_entry_func() and logic changed to use per-objfile specific
  3930. fields.
  3931. * blockframe.c, buildsym.h, coffread.c, dwarfread.c, mipsread.c,
  3932. symfile.c, mips-tdep.c (startup_file_start, startup_file_end):
  3933. Remove extern decls.
  3934. * symfile.c, symfile.h (entry_point): Remove extern decl.
  3935. * coffread.c (coff_symfile_init): Common entry point init code
  3936. moved to symfiles.c, call init_entry_point_info().
  3937. * coffread.c (complete_symtab): Use new per-objfile entry info.
  3938. * mip-tdep.c (mips_frame_chain): Use new per-objfile entry info.
  3939. * mipsread.c (parse_partial_symbols): Use new per-objfile entry
  3940. info.
  3941. * dbxread.c (read_dbx_symtab): Use new per-objfile entry info.
  3942. * defs.h (inside_entry_scope, outside_startup_file,
  3943. inside_main_scope): Prototypes changed for renames to
  3944. inside_entry_func, inside_entry_file, inside_main_func,
  3945. respectively.
  3946. * symfile.c (syms_from_objfile): Common entry point init code
  3947. moved to init_entry_point_info() and call init_entry_point_info().
  3948. * symfile.h (init_entry_point_info): Include prototype.
  3949. * xcoffread.c (aixcoff_symfile_init): Common entry point init code
  3950. moved to symfiles.c and call init_entry_point_info().
  3951. * dwarfread.c (entry_scope_lowpc, entry_scope_highpc,
  3952. main_scope_lowpc, main_scope_highpc): Remove extern decls.
  3953. * dwarfread.c (read_func_scope, read_file_scope): Use new per-
  3954. objfile entry info.
  3955. * frame.h (FRAME_CHAIN_VALID): Provide default definition that
  3956. works for the majority of targets.
  3957. * tm-68k.h, tm-convex.h, tm-h8300.h, tm-i386v.h, tm-irix3.h,
  3958. tm-merlin.h, tm-mips.h, tm-pyr.h, tm-rs6000.h, tm-sparc.h,
  3959. tm-sun386.h, tm-tahoe.h, tm-umax.h, tm-vax.h (FRAME_CHAIN_VALID):
  3960. Use default definition in frame.h.
  3961. * frame.h (selected_frame_level): Make decl extern.
  3962. * objfiles.c, symfile.c (current_objfile): Moved to objfiles.c
  3963. * objfiles.c, symfile.c (symfile_objfile): Moved to objfiles.c
  3964. * partial-stab.h: Use new per-objfile entry info.
  3965. * symfile.h (struct objfile): Removed, moved to objfiles.h.
  3966. * symfile.h, objfiles.h (allocate_objfile, free_objfile,
  3967. free_all_objfiles, iterate_over_objfiles, iterate_over_symtabs,
  3968. iterate_over_psymtabs, have_partial_symbols, have_full_symbols,
  3969. have_minimal_symbols): Prototypes moved to objfiles.h.
  3970. * symfile.h, objfiles.h (ALL_OBJFILES, ALL_OBJFILES_SAFE):
  3971. Macros moved to objfiles.h.
  3972. * tm-h8300.h, tm-i386v4.h (FRAME_CHAIN_VALID_ALTERNATE): Define.
  3973. Thu Mar 19 18:49:45 1992 Per Bothner (bothner@cygnus.com)
  3974. More C++ improvements (pointers to members, qualified names).
  3975. * c-exp.y: Support exp.type::name and exp->type::name
  3976. syntaxes. (Unfortunately, doesn't work for static members.)
  3977. * c-exp.y, eval.c: Make type::~type work better.
  3978. * eval.c (evaluate_subexp: OP_SCOPE): Replace use of
  3979. value_static_field by value_struct_elt_for_reference.
  3980. * eval.c (evaluate_subexp): Merge code for STRUCTOP_MEMBER
  3981. and STRUCTOP_MPTR; cast arg1 to domain-type of arg2.
  3982. * eval.c (evaluate_subexp): Remove special case for UNOP_ADDR
  3983. for OP_SCOPE operand; no point in it now that we use lazy
  3984. reading of values, and use "reference to member" objects.
  3985. * gdbtypes.h: Clarify comment.
  3986. * valops.c: Change value_struct_elt_for_address to return
  3987. a reference (or variable), rather than a pointer. Change
  3988. the name to value_struct_elt_for_reference to reflect this.
  3989. Returning a reference instead of a address provides a
  3990. generalization, since we can use the routine for both
  3991. class::name as well as &class::name.
  3992. Also, recurse to handle multiple inheritance properly.
  3993. * valprint.c: Moved code to print pointer-to-members
  3994. to new function point_class_member. This allows a
  3995. "reference-to-member" to be printed using the same code.
  3996. * valprint.c (type_print_varspec_prefix): Avoid printing
  3997. "struct " for domains of class-member types.
  3998. * valops.c (search_struct_field): Inline code for simplified
  3999. version of value_static_field (which can then be deleted).
  4000. * value.h: Rename value_struct_elt_for_address to
  4001. value_struct_elt_for_reference. Delete value_static_field.
  4002. * values.c: Remove no longer used function value_static_field.
  4003. Thu Mar 19 13:54:11 1992 Fred Fish (fnf@cygnus.com)
  4004. * coffread.c, mipsread.c, xcoffread.c, coffread.c, dbxread.c,
  4005. elfread.c (coff_symfile_finish): Add function, prototype, and
  4006. add to the xxxx_sym_fns struct for each file type. Also reformat
  4007. the xxxx_sym_fns vector to a standard format and add comments.
  4008. * coffread.c, mipsread.c, xcoffread.c, coffread.c, dbxread.c,
  4009. elfread.c (xxx_symfile_new_init, xxx_symfile_init, xxx_symfile_read):
  4010. Pass pointer to struct objfile rather than pointer to sym_fns.
  4011. Change references inside each function accordingly. Allocate any
  4012. symbol file specific info in the per-objfile memory region.
  4013. * dbxread.c (free_and_init_header_files): Break function into
  4014. free_header_files(), called from dbx_symfile_finish(), and
  4015. init_header_files(), called from dbx_new_init().
  4016. * dbxread.c (dbx_new_init): Move deallocation things to new
  4017. dbx_symfile_finish function.
  4018. * elfread.c (elf_new_init): Call buildsym_new_init().
  4019. * objfiles.c (free_objfile): Call the appropriate symfile_finish()
  4020. routine for the objfile before deallocating other stuff.
  4021. * sparc-tdep.c (get_longjmp_target): Cast target_read_memory arg.
  4022. * symfile.h: Move struct sym_fns to before struct objfile def.
  4023. Add sym_finish function pointer and change prototypes of other
  4024. function pointers to reflect passing struct objfile pointer rather
  4025. than struct sym_fns pointer.
  4026. * symfile.c: Remove now obsolete symtab_fns pointer.
  4027. * symfile.c (symfile_init): Renamed to find_sym_fns, and now only
  4028. locates the correct sym_fns struct for the given objfile.
  4029. * symfile.c (syms_from_objfile, symbol_file_add): Restructured
  4030. for better support of mapped symbol tables.
  4031. * symfile.c (symbol_file_command): Remove obsolete code using
  4032. symfile_fns.
  4033. * symfile.h: Remove duplicate declarations for symfile_objfile,
  4034. entry_point, and object_files.
  4035. * target.c (target_info): Compare symfile_objfile to NULL.
  4036. * xcoffread.c (aixcoff_new_init): Move deallocation stuff to
  4037. aixcoff_symfile_finish().
  4038. Wed Mar 18 18:22:46 1992 Fred Fish (fnf@cygnus.com)
  4039. * infrun.c (IN_SOLIB_TRAMPOLINE): Add default definition.
  4040. * infrun.c (wait_for_inferior): Use IN_SOLIB_TRAMPOLINE.
  4041. * tm-sysv4.h (IN_SOLIB_TRAMPOLINE): Add SVR4 definition.
  4042. Wed Mar 18 15:51:15 1992 Per Bothner (bothner@cygnus.com)
  4043. Some improvements to g++ debugging.
  4044. * symtab.c (list_symbols): demangle before pattern matching.
  4045. * symtab.c: Other fixes to improve handing of operators.
  4046. * valprint.c (type_print_base): Fix test for constructor.
  4047. * values.c (value_static_field): Allow evaluation of
  4048. CLASS::METHOD, returning a function pointer.
  4049. Wed Mar 18 08:39:52 1992 Fred Fish (fnf@cygnus.com)
  4050. * Makefile.in (VERSION): Roll 4.4.6.
  4051. * exec.c (exec_file_command): Add code to ignore optional args
  4052. passed in by file_command() for use in symbol_file_command().
  4053. * main.c (main): Document -mapped and -readnow in help summary.
  4054. * objfiles.c (open_mapped_file): Cosmetic change, arg renamed.
  4055. * objfiles.c (allocate_objfile): Filename arg removed. Changes
  4056. to get filename from bfd with bfd_get_filename(). Test mapto
  4057. against 0, not NULL. Use mstrsave() to make copy of filename.
  4058. * remote-mm.c (mm_load): Symbol_file_add() takes an additional
  4059. arg.
  4060. * remote-vx.c (vx_load_command, add_symbol_stub):
  4061. Symbol_file_add() takes an additional arg.
  4062. * solib.c (symbol_add_stub): Symbol_file_add() takes an
  4063. additional arg.
  4064. * symfile.c (symfile_open): Renamed to symfile_bfd_open and
  4065. changed to return a bfd not an objfile pointer.
  4066. * symfile.c (syms_from_objfile): Eliminate local copy of bfd.
  4067. * symfile.c (symbol_file_add): Takes an additional arg (readnow).
  4068. Change to eliminate local bfd and use symfile_bfd_open() plus
  4069. allocate_objfile(). Add code to implement readnow option.
  4070. * symfile.c (symbol_file_command): Changes to option handling,
  4071. readnow functionality moved to symbol_file_add().
  4072. * symfile.c (symfile_init): Eliminate local copy of bfd.
  4073. * symfile.c (add_symbol_file_command): Changes to parse mapped
  4074. and readnow options.
  4075. * symfile.h (allocate_objfile): Arg removed from prototype.
  4076. * symtab.h (symbol_file_add): Arg added to prototype.
  4077. * xcoffexec.c (map_vmap): Allocate_objfile() takes an additional
  4078. arg.
  4079. Sat Mar 14 16:38:47 1992 Fred Fish (fnf@cygnus.com)
  4080. * gmalloc.c, gmalloc.h mcheck.c mmap-alloc.c mmap-sbrk.c mtrace.c,
  4081. mtrace.awk, state.c, state.h: Removed.
  4082. * .gdbinit: Add ../malloc, ../libiberty, and ../bfd to list of
  4083. directories searched for source files.
  4084. * Makefile.in (GNU_MALLOC, MALLOC_CFLAGS, MALLOCSRC): Removed
  4085. * Makefile.in (MMALLOC_DIR, MMALLOC_DEP, MMALLOC_LIB,
  4086. MMALLOC_DISABLE, MMALLOC_CHECK, MMALLOC_CFLAGS): Add
  4087. * Makefile.in (CFLAGS): Replace MALLOC_CFLAGS with MMALLOC_CFLAGS.
  4088. * Makefile.in (CLIBS, CDEPS): Add MMALLOC_LIB
  4089. * Makefile.in (ADD_FILES, ADD_DEPS): Remove GNU_MALLOC.
  4090. * Makefile.in (SFILES_MAINDIR): Remove stat.c mmap-alloc.c, mmap-
  4091. sbrk.c
  4092. * Makefile.in (HFILES): Remove state.h
  4093. * Makefile.in (POSSLIBS_MAINDIR): Remove MALLOCSRC.
  4094. * Makefile.in (OBS): Remove state.o mmap-alloc.o mmap-sbrk.o
  4095. * Makefile.in (saber_gdb): Remove mcheck, mtrace. Add MMALLOC_DIR.
  4096. * Makefile.in (clean): Remove all object files.
  4097. * c-exp.y: Define malloc to xmalloc and realloc to xrealloc.
  4098. * cplus-dem.c: Remove prototypes definitions that are now done in
  4099. def.h.
  4100. * dbxread.c (throughout): Change from using per-objfile
  4101. xmalloc/xrealloc/free functions to xmmalloc/xmrealloc/mfree.
  4102. * defs.h: Remove prototypes for mmap_* functions. Add prototypes
  4103. for xmmalloc, xmrealloc, mfree, mmcheck, mmtrace, mmalloc_attach,
  4104. mmalloc_detach, mmalloc_setkey, msavestring, and mstrsave, nomem.
  4105. * depend: Remove dependencies for state.o, state.h.
  4106. * dwarfread.c: Add declaration for warning_pre_print.
  4107. * dwarfread.c (dwarfwarn): Use warning_pre_print.
  4108. * dwarfread.c (throughout): Change from using per-objfile
  4109. xmalloc/xrealloc/free functions to xmmalloc/xmrealloc/mfree.
  4110. * gdbtypes.c (lookup_fundamental_type): Fix init_type calls to
  4111. use supplied objfile.
  4112. * i386-xdep.c (print_387_status): Change to use warning() rather
  4113. than printfs.
  4114. * i387-tdep.c (print_387_control_word): Change to use warning()
  4115. rather than printfs.
  4116. * infrun.c (wait_for_inferior): Remove unreachable abort() call
  4117. that some compilers grumble about.
  4118. * language.c (throughout): Add declaration for warning_pre_print
  4119. and using warning() instead of printfs.
  4120. * m2-exp.y: Define malloc to xmalloc and realloc to xrealloc.
  4121. * main.c (main): Add declaration for warning_pre_print and set it
  4122. similarly to error_pre_print. Add declarations for
  4123. mapped_symbol_files and readnow_symbol_files. Add appropriate
  4124. definitions to long_options[].
  4125. * minsyms.c: Trivial fix to comment.
  4126. * objfiles.c (allocate_objfile): Substantially rewritten for
  4127. using mapped symbol files.
  4128. * objfiles.c (throughout): Change from using per-objfile
  4129. xmalloc/xrealloc/free functions to xmmalloc/xmrealloc/mfree.
  4130. * objfiles.c (open_mapped_file, mapped_to_address): Add functions.
  4131. * source.c (throughout): Change from using per-objfile
  4132. xmalloc/xrealloc/free functions to xmmalloc/xmrealloc/mfree.
  4133. * source.c (open_source_file): Use mstrsave to save file name in
  4134. mapped symbol region for objfile.
  4135. * symfile.c: Remove include for state.h.
  4136. include to local form.
  4137. * symfile.c (symbol_file_add_digested): Remove.
  4138. * symfile.c (symbol_file_add): Substantially rewritten for mapped
  4139. symbol files.
  4140. * symfile.h: Remove malloc/xrealloc/xmalloc/xrealloc/free members
  4141. from objfile structure. Add malloc descriptor pointer (md).
  4142. * symfile.h (OBJF_DUMPABLE): Changed name to OBJF_MAPPED.
  4143. * symm-xdep.c (print_fpu_status): Use warning() rather than
  4144. printfs.
  4145. * symmisc.c (free_symtab_block): Now takes and uses current
  4146. objfile pointer.
  4147. * symmisc.c (throughout): Change from using per-objfile
  4148. xmalloc/xrealloc/free functions to xmmalloc/xmrealloc/mfree.
  4149. * symtab.c (cplus_mangled_symbol): Cast return value to avoid
  4150. Sun compiler grumblings when PTR is char *.
  4151. * symtab.c (lookup_symbol): Cast return value of iterate_over_
  4152. msymbols() to correct pointer type.
  4153. * utils.c (warning_pre_print): Initialize to "\nwarning: ".
  4154. * utils.c (fatal, fatal_dump_core): Ensure that the fatal
  4155. error always starts on a line of it's own.
  4156. * utils.c (init_malloc, malloc_botch, xmalloc, xrealloc):
  4157. Rewrite for new mapped malloc package use.
  4158. * utils.c (mmalloc, mrealloc, mfree): Stubs for configurations
  4159. that don't want to use the mapped malloc package; pass arguments
  4160. on to traditional malloc package functions.
  4161. * utils.c (nomem): Add for fatal virtual memory exhausted aborts.
  4162. * utils.c (xmmalloc, xmrealloc, xmalloc, xrealloc): Like mmalloc,
  4163. mrealloc, malloc, and realloc but get fatal error if runs out
  4164. of memory.
  4165. * utils.c (msavestring, mstrsave): Save a string in a specific
  4166. mapped malloc region.
  4167. * utils.c (print_spaces): Use xmalloc to get the buffer.
  4168. * xm-amix.h, xm-i386v4.h, xm-sun3os4.h, xm-sun4os4.h: Add defines
  4169. for MMAP_BASE_ADDRESS and MMAP_INCREMENT.
  4170. * config/i386v4.mh: Insignificant reorganization.
  4171. Sat Mar 14 11:44:47 1992 Fred Fish (fnf@cygnus.com)
  4172. * xcoffread.c: Only enable compilation of debugging functions
  4173. if IBM6000 is defined. Fails to compile otherwise.
  4174. Fri Mar 13 15:51:11 1992 K. Richard Pixley (rich@cygnus.com)
  4175. * Makefile.in: pass MAKEINFO down on info.
  4176. Fri Mar 13 12:56:36 1992 John Gilmore (gnu at cygnus.com)
  4177. * mipsread.c (mipscoff_symfile_read): Eliminate a lot of
  4178. useless code, including an lseek to an uninitialized variable.
  4179. Reported by Jim Williams <jimbo@wrs.com>.
  4180. Thu Mar 12 11:56:46 1992 Per Bothner (bothner@cygnus.com)
  4181. Merged in patches from metin@ibmpa.awdpa.ibm.com (Metin G.
  4182. Ozisik) (dated Fri, 6 Mar 92 17:51) for the rs6000.
  4183. * minsyms.c, symfile.c: Changes that may be generally
  4184. applicable, but are #ifdef IBM6000 for now.
  4185. * rs6000-xdep.c: Fixed typo in comment.
  4186. * rs6000-tdep.c: Non-substatial changes.
  4187. * xoffread.c: The main change here is addition of some
  4188. debugging functions.
  4189. * xoffexec.c: More changes.
  4190. * xcoffread.c: Fixed two too-few-parameters bugs.
  4191. * solib.h, infrun.c, tm-rs6000.h: Add a PID parameter
  4192. to SOLIB_CREATE_INFERIOR_HOOK macro.
  4193. Sun Mar 8 21:17:48 1992 Fred Fish (fnf@cygnus.com)
  4194. * symfile.h: Add prototype for iterate_over_msymbols().
  4195. * symtab.c (cplus_mangled_symbol): Add function.
  4196. * symtab.c (lookup_symbol): Call cplus_mangled_symbol via
  4197. iterate_over_msymbols to find demangled C++ symbol.
  4198. * xcoffexec.c (relocate_minimal_symbol): Return meaningful
  4199. value to iterate_over_msymbols().
  4200. * xcoffexec.c (vmap_symtab): Ignore return from iterate_over_
  4201. msymbols().
  4202. Fri Mar 6 21:59:34 1992 K. Richard Pixley (rich@cygnus.com)
  4203. * Makefile.in: added check target.
  4204. Thu Mar 5 23:56:01 1992 John Gilmore (gnu at cygnus.com)
  4205. * ecoff.c: Move to ../bfd/coff-msym.c.
  4206. * config/mt-*mips: Remove ecoff.o from the configuration.
  4207. * remote.c (): Add newline to initial +.
  4208. (remote_resume): Mention how to cope with signals.
  4209. (remote_interrupt): Add debug msg.
  4210. (remote-wait): Implement new 'T' reply, which includes
  4211. status, PC, and FP all in a single short message.
  4212. (putpkt): Add further debugging of packet acks.
  4213. * mipsread.c (fixup_symtab): Also swap RFD's.
  4214. (parse_partial_symbols): Avoid bug on unknown symbol types.
  4215. * Makefile.in (VERSION): Roll to 4.4.5.
  4216. * mips-tdep.c (heuristic_proc_start): Avoid long delays
  4217. for remote MIPS by limiting heuristic to 200 byte search.
  4218. (heuristic_proc_desc): Byte-swapping.
  4219. (mips_print_register): Cope with failure of
  4220. read_relative_register_raw_bytes. Byte-swap integers for
  4221. printing.
  4222. * mips-pinsn.c (print_insn): Byte-swap instruction.
  4223. Thu Mar 5 12:32:09 1992 Stu Grossman (grossman at cygnus.com)
  4224. * config.sub configure.in config/mh-irix4
  4225. gdb/configure.in gdb/mips-tdep.c gdb/mipsread.c
  4226. gdb/procfs.c gdb/signame.h gdb/tm-irix3.h gdb/tm-mips.h
  4227. gdb/xm-irix4.h gdb/config/mt-irix3
  4228. gdb/config/mh-irix4 texinfo/configure.in: Port to SGI Irix-4.x.
  4229. Wed Mar 4 11:56:42 1992 Fred Fish (fnf@cygnus.com)
  4230. * defs.h, utils.c: xrealloc takes PTR as first arg.
  4231. * defs.h: Reword confusing comment about ANSI prototypes.
  4232. * defs.h: Some minor whitespace changes.
  4233. * infrun.c (wait_for_inferior): Compare int tmp to int 0,
  4234. not NULL, which can be (void *).
  4235. * tm-amix.h, tm-i386v4.h: Add defines for setjmp/longjmp handling.
  4236. * tm-i386v.h (SP_ARG0): Define
  4237. * xm-sysv4.h: Back out of change for missing prototypes.
  4238. * i386-tdep.c (get_longjmp_target): Add function.
  4239. Wed Mar 4 05:46:11 1992 K. Richard Pixley (rich@rtl.cygnus.com)
  4240. * Makefile.in: install man page too.
  4241. Tue Mar 3 15:11:52 1992 Michael Tiemann (tiemann@cygnus.com)
  4242. * All GDB files that #include defs.h: Removed stdio.h.
  4243. (defs.h): #include stdio.h.
  4244. Mon Mar 2 23:00:12 1992 Steve Chamberlain (sac@thepub.cygnus.com)
  4245. * gdbtypes.c (lookup_pointer_type): initialize the TYPE_LENGTH of
  4246. a ptype to reflect the setting of TARGET_PTR_BIT. Set the
  4247. TYPE_FLAGS of a ptype to TYPE_FLAG_UNSIGNED.
  4248. * tm-h8300.h, h8300-tdep.c, remote-hms.c: personal checkpoint
  4249. * printcmd.c (print_address): if ADDR_BITS_REMOVE is defined, use
  4250. it before printing out the hex shape of an address.
  4251. Sun Mar 1 17:41:09 1992 Per Bothner (bothner@cygnus.com)
  4252. * rs6000-xdep.c (frame_initial_stack_address): Move
  4253. code to set frame->cache_fsr into new separate function
  4254. frame_get_cacahe_fsr. This allows fixing a fatal error.
  4255. * xcoffexec.c: Turn previously suppressed error
  4256. message back on, after cleaning up BFD.
  4257. * breakpoint.c (breakpoint_re_set): Removed (at least for now)
  4258. printing of blank line, since it cases printing of an
  4259. extra blank line. Is this intended? It does mess up
  4260. gdb test suite.
  4261. * defs.h: Put back declarations of malloc and realloc,
  4262. but protected by #ifndef MALLOC_INCOMPATIBLE.
  4263. * objfiles.c: Undo previous change: Use malloc/realloc
  4264. for objfile malloc/realloc fields (but add a cast).
  4265. * xcoffexec.c: Suppress an error message (for now).
  4266. Sat Feb 29 14:43:02 1992 Per Bothner (bothner@cygnus.com)
  4267. Changes from metin@ibmpa.awdpa.ibm.com (Metin G. Ozisik)
  4268. [Mail dated Fri, 21 Feb 92 13:14:54 -0800]
  4269. * buildsym.c: Use smash_to_pointer_type() to handle forward type
  4270. references.
  4271. * xcoffread.c: Modifications to C_DECL storage class handling, and
  4272. introduction of an old smash_to_pointer_type() routine.
  4273. Changes from metin@ibmpa.awdpa.ibm.com (Metin G. Ozisik)
  4274. [Mail dated Thu, 20 Feb 92 13:57:16 -0800]
  4275. * rs6000-xdep.c, rs6000-tdep.c, tm-rs6000.h: function_frame_info()
  4276. parameters have been modified.
  4277. Changes from metin@ibmpa.awdpa.ibm.com (Metin G. Ozisik)
  4278. [Mail dated Thu, 20 Feb 92 10:10:05 -0800]
  4279. * rs6000-tdep.c: Before Feb 5 92, register_valid[] array was not used,
  4280. and fetch_inferior_registers() always fetched all the registers
  4281. resulting valid register values at hand all the time. Pushing a dummy
  4282. frame did not require validating all register values first. After
  4283. putting the above mechanism into action, we didn't have valid registers
  4284. values always ready. Thus, all registers need to be fetched before
  4285. pushing a dummy frame now.
  4286. Changes from metin@ibmpa.awdpa.ibm.com (Metin G. Ozisik)
  4287. [Mail dated Thu, 13 Feb 92 16:22:44 -0800]
  4288. * rs6000-xdep.c: frame_initial_stack_address() function to calculate
  4289. the starting address (actual frame address) of a frame.
  4290. * rs6000-tdep.c: modifications to function_frame_info() to see if
  4291. function reserves a frame pointer register (alloca register)
  4292. * tm-rs6000.h: EXTRA_FRAME_INFO, FRAME_ARGS_ADDRESS and
  4293. FRAME_LOCALS_ADDRESS has been updated to support debugging of
  4294. functions with alloca() calls.
  4295. Sun Mar 1 13:13:39 1992 Fred Fish (fnf@cygnus.com)
  4296. * xm-sysv4.h: Provide definitions/prototypes for host environment
  4297. functions for which no definitions or prototypes are provided in
  4298. any currently included gdb or host environment header files.
  4299. For SVR4, this currently includes malloc and realloc, which cannot
  4300. be portably prototyped in any gdb include file.
  4301. Sat Feb 29 14:43:02 1992 Per Bothner (bothner@cygnus.com)
  4302. * buildsym.h: Remove obsolete variable file_stabs.
  4303. * Makefile.in: Move place where configure merges in host-
  4304. and target-dependent fragments later, so the latter
  4305. can override (say) GNU_MALLOC.
  4306. * config/mh-rs6000: Use system malloc. Otherwise, I
  4307. ended up with *two* incompatible versions of malloc
  4308. (functions in libc would call the malloc in libc).
  4309. I assume this is a shared library problem.
  4310. * remote.c: Fix (presumed) typo.
  4311. * objfiles.c: Use xmalloc/xrealloc instead of
  4312. malloc/realloc (since the latter are no longer declared).
  4313. Changes from metin@ibmpa.awdpa.ibm.com (Metin G. Ozisik)
  4314. [Mail dated Thu, 6 Feb 1992 10:22:02 -0800]
  4315. * rs6000-xdep.c: Improvements to fetch_inferior_registers() to
  4316. handle individual registers.
  4317. * tm-rs6000.h: Fix SAVED_PC_AFTER_CALL macro to handle pc value
  4318. correctly in case it wasn't cached yet. (A problem showed up
  4319. after fetching individual registers.)
  4320. * buildsym.c: Disable type_synonym_name's type name overwriting
  4321. in cases it is unnecesary. rs6000 portation doesn't use
  4322. type_synonym_name, and it used to nullify type names
  4323. * xcoffread.c: to handle g++'s typename abbreviation, fill in a
  4324. type's name as soon as space for that type is allocated.
  4325. * xcoffread.c: ignore a section's lineno information if it is
  4326. not `.text'. (In rs6000 bfd portation integration, skipping over
  4327. `.pad' sections are ignored since it was in machine independent
  4328. part of the code. Thus, a problem of fake sections with invalid
  4329. lineno information arised.)
  4330. Changes from metin@ibmpa.awdpa.ibm.com (Metin G. Ozisik)
  4331. [Mail dated Thu, 6 Feb 1992 13:26:22 -0800]
  4332. * rs6000-tdep.c: make function_frame_info() work whether or not
  4333. reading from a core file.
  4334. * tm-rs6000.h: Implementation of FRAME_FIND_SAVED_REGS macro.
  4335. * infrun.c. main.c, printcmd.c. symtab.c:
  4336. More changes from IBM for rs6000.
  4337. Thu Feb 27 22:57:19 1992 Per Bothner (bothner@cygnus.com)
  4338. * rs6k-opcode.h, tm-rs6000.h, xm-rs6000.h, rs6000-tdep.c,
  4339. rs6000-xdep.c, xcoffexec.c, xcoffread.c:
  4340. Merge in changes (mostly from IBM) for RS6000.
  4341. * breakpoint.c, buildsym.c, infptrace.c, stack.c, symtab.c:
  4342. More changes from IBM for RS6000. These are in machine-
  4343. independent code, and probably could do with some cleaning
  4344. up. The most questionable of these are #ifdef IBM6000.
  4345. * infrun.c, sparc-tdep.c: Pass a parameter (signal number)
  4346. to single_step() (for consistency with rs6000 and i860).
  4347. * utils.c: Allow the 1st arg to xrealloc to be NULL
  4348. (in which case do malloc). This removes the need for
  4349. some tests in xcoff code (and perhaps other places?).
  4350. * coffread.c: Removed variables last_source_file,
  4351. type_vector, and type_vector_length as these are now
  4352. defined by buildsym.[ch].
  4353. * defs.h: Remove prototypes for malloc and realloc, since
  4354. these should only be used to implement xmalloc and xrealloc,
  4355. and they conflict with <stdlib.h> in AIX - where they
  4356. return void* even when __STDC__ isn't defined. Sigh.
  4357. * munch: Recognize *initialize* in data as well as text
  4358. (AIX uses data). Also, incorporate a patch from Garrett
  4359. Wollman <wollman@uvm-gen.uvm.edu> to make the sed script
  4360. much more sensible, by only trying to match the name of
  4361. the initialize_foo function, and not the junk before it.
  4362. Thu Feb 27 20:07:43 1992 Stu Grossman (grossman at cygnus.com)
  4363. * breakpoint.c (breakpoint_re_set_one): Don't reset breakpoint
  4364. unless symbol table indicates that something has changed.
  4365. Thu Feb 27 11:48:47 1992 John Gilmore (gnu at cygnus.com)
  4366. * remote.c: Make it work for embedded MIPS. Increase buffer
  4367. size, and use throughout. Round buffer size up if too many regs.
  4368. Support baud rate setting and try for an 8-bit path. If
  4369. interrupted while waiting for target, send a ^C down the wire.
  4370. Avoid single-byte reads.
  4371. * tm-mips.h: Add more embedded-system registers to REGISTER_NAMES
  4372. and NUM_REGS.
  4373. * mips-xdep.h: Avoid the embedded regs when on Unix.
  4374. * mipsread.c: Byte-swap the symbol table structures, using
  4375. routines from ecoff.c, to read a symbol table written in any
  4376. of the four possible byte orders.
  4377. * configure.in (mips-big-* target): Same as Sony News.
  4378. * config/mt-bigmips, config/mt-littlemips: Add ecoff.o.
  4379. * ecoff.c: New file for symbol swapping routines.
  4380. Thu Feb 27 09:26:38 1992 Stu Grossman (grossman at cygnus.com)
  4381. * breakpoint.c (all_breakpoints_info, breakpoint_1): Add 'info
  4382. all-breakpoints' command.
  4383. * (get_number): Allow users to enter negative breakpoint numbers.
  4384. * (breakpoint_1): Reformat display of 'info break' to show new
  4385. fields.
  4386. * (create_longjmp_breakpoint, breakpoint_re_set,
  4387. breakpoint_re_set_one, enable/disable_longjmp_breakpoint),
  4388. symfile.c (syms_from_objfile): Re-do
  4389. insertion of longjmp breakpoints. Move all code into
  4390. breakpoint_re_set, and call that instead of
  4391. create_longjmp_breakpoint in symfile.c.
  4392. Thu Feb 27 06:11:05 1992 John Gilmore (gnu at cygnus.com)
  4393. * breakpoint.h (ALL_BREAKPOINTS_SAFE): Add.
  4394. * breakpoint.c (breakpoint_re_set): Use ALL_BREAKPOINTS_SAFE.
  4395. * symtab.c (find_pc_symtab): Handle having no objfiles.
  4396. * infcmd.c: Fix comment.
  4397. * objfiles.c (free_all_objfiles): Add.
  4398. * symfile.h (ALL_OBJFILES, ALL_OBJFILES_SAFE): Add.
  4399. * symfile.c (symbol_file_command): free all objfiles when
  4400. specifying a new symbol file.
  4401. (reread_symbols): Stat the file name, don't fstat the descriptor.
  4402. Wed Feb 26 18:04:40 1992 K. Richard Pixley (rich@cygnus.com)
  4403. * Makefile.in, configure.in: removed traces of namesubdir,
  4404. -subdirs, $(subdir), $(unsubdir), some rcs triggers. Forced
  4405. copyrights to '92, changed some from Cygnus to FSF.
  4406. Tue Feb 25 19:31:19 1992 Stu Grossman (grossman at cygnus.com)
  4407. * dbxread.c (end_psymtab): Delete empty psymtabs.
  4408. * symfile.c (allocate_psymtab): Recycle empty psymtabs.
  4409. * symfile.h (struct objfile): Add free_psymtabs.
  4410. Sat Feb 22 02:00:32 1992 John Gilmore (gnu at cygnus.com)
  4411. * Makefile.in (VERSION): Roll to gdb-4.4.4.
  4412. * symfile.c (symbol_file_command): strcmp => !strcmp.
  4413. * breakpoint.h: Move prototypes to follow enum definition they need.
  4414. * breakpoint.c, infrun.c: Lint.
  4415. * printcmd.c: Use `enum enable' rather than `enum
  4416. display_status'.
  4417. * mipsread.c: First pass at making it compile with the new
  4418. objfile changes. Probably seriously broken still, but it
  4419. compiles. FIXME.
  4420. Sat Feb 22 00:56:39 1992 Stu Grossman (grossman at cygnus.com)
  4421. * infrun.c, infcmd.c, breakpoint.c, main.c, symfile.c,
  4422. breakpoint.h, tm-sun4os4.h, tm-sparc.h, sparc-tdep.c, tm-mips.h,
  4423. mips-tdep.h, tm-sun3.h, tm-68k.h, m68k-tdep.h: Add support for
  4424. stepping (and nexting) through longjmp(). Also, cleanup
  4425. breakpoint handling quite a bit by creating explicit breakpoint
  4426. types instead of using magic breakpoint numbers.
  4427. Makefile.in: Update version to 4.4.3
  4428. Sat Feb 22 00:08:50 1992 John Gilmore (gnu at cygnus.com)
  4429. * buildsym.c, dwarfread.c, gdbtypes.c, inflow.c, main.c,
  4430. minsyms.c, printcmd.c, remote.c, saber.suppress: Saberlint.
  4431. * symmisc.c, xcoffread.c: Move debug functions to symmisc.c.
  4432. * xm-sun3os4.h, xm-sun4os4.h: Enable HAVE_MMAP.
  4433. * minsyms.c (install_minimal_symbols): Add bunches to any
  4434. existing minsyms in the objfile. Avoid extra mallocation
  4435. by working directly in the obstack. Remove ignored `mainline' parm.
  4436. * coffread.c, dbxread.c, elfread.c, mipsread.c, solib.c, symtab.h,
  4437. xcoffread.c: Change all callers.
  4438. * FIXME: We should be able to eliminate MAINLINE from all the
  4439. symbol readers now, with a small bit of work.
  4440. * valops.c, value.h: Lint.
  4441. * remote-vx.c: Add missing break; statement. Bugfix by
  4442. Michael Sclafani, <sclafani@src.dec.com>.
  4443. Fri Feb 21 17:29:54 1992 Fred Fish (fnf at cygnus.com)
  4444. * Makefile.in (VERSION): Update version to 4.4.2
  4445. * Makefile.in (SFILES_MAINDIR): Add gdbtypes.c, state.c, objfiles.c,
  4446. minsyms.c, mmap-alloc.c, mmap-sbrk.c
  4447. * Makefile.in (HFILES): Add gdbtypes.h, state.h, solib.h
  4448. * Makefile.in (OBS): Add gdbtypes.o, state.o, objfiles.o, minsyms.o,
  4449. mmap-alloc.o, mmap-sbrk.o
  4450. * altos-xdep.c: Minor whitespace change.
  4451. * am29k-tdep.c (examine_prologue): Convert from misc function vector
  4452. use to new minimal symbol table use.
  4453. * arm-xdep.c (fetch_inferior_registers): Document unused argument.
  4454. * arm-xdep.c (store_inferior_registers): Returns void.
  4455. * blockframe.c (get_pc_function_start, find_pc_partial_function):
  4456. Convert from misc function vector use to new minimal symbol table use.
  4457. Remove find_pc_misc_function(). Ifdef out block_innermost_frame().
  4458. * breakpoint.c: Add prototypes for local functions.
  4459. * breakpoint.c (catch_command_1): Change to static and remove unused
  4460. local "pc".
  4461. * breakpoint.c (map_breakpoint_numbers): Prototype arg "function".
  4462. * breakpoint.h: Change function decls to prototype form.
  4463. * buildsym.c: Add prototypes for local functions.
  4464. * buildsym.c: Moved hashname() function here from dbxread.c.
  4465. * buildsym.c (dbx_lookup_type): Cast args to xrealloc().
  4466. * buildsym.c: Remove dbx_create_type(), uses changed to alloc_type().
  4467. * buildsym.c (dbx_alloc_type): Change to static.
  4468. * buildsym.c (finish_block): Add objfile parameter.
  4469. * buildsym.c (misc): Change symbol_obstack to objfile version.
  4470. * buildsym.c (make_blockvector): Change to static.
  4471. * buildsym.c (start_subfile): Use strdup instead of obsavestring.
  4472. * buildsym.c (compare_line_numbers): Change to static, args are const,
  4473. cast args when used.
  4474. * buildsym.c (start_symtab): Inline new_object_header_files() call.
  4475. * buildsym.c (patch_block_stabs): Moved to this file from xcoffread
  4476. and made static. Add objfile parameter.
  4477. * buildsym.c (end_symtab): Simplify code using line table size.
  4478. Realloc the linetable on the objfile symbol_obstack and copy there.
  4479. * buildsym.c (scan_file_globals): Convert from misc function vector
  4480. use to new minimal symbol use.
  4481. * buildsym.c (define_symbol): Add objfile parameter. Make sure
  4482. strings get allocated in objfile's symbol_obstack. Convert references
  4483. to builtin types to lookup_fundamental_type().
  4484. * buildsym.c (read_type): Make static, add objfile parameter, convert
  4485. references to buildin types to lookup_fundamental_type().
  4486. * buildsym.c (read_struct_type): Add objfile parameter.
  4487. * buildsym.c (read_array_type): Make static, add objfile parameter.
  4488. * buildsym.c (read_enum_type): Make static, add objfile parameter.
  4489. * buildsym.c (read_huge_number): Make static.
  4490. * buildsym.c (read_range_type): Make static, add objfile parameter,
  4491. convert references to buildin types to lookup_fundamental_type ().
  4492. * buildsym.c (read_args): Make static, add objfile parameter.
  4493. * buildsym.h: Convert function decl's to prototype form.
  4494. * c-exp.y: Add prototypes for local functions, convert uses of misc
  4495. function vector to minimal symbol table. Reformat all builtin type
  4496. initializations and pass a NULL objfile to init_type() for them.
  4497. * coffread.c: Change context_stack ref's to coff_context_stack,
  4498. add local function prototypes. Cast uses of xrealloc arg 1.
  4499. * coffread.c (coff_alloc_type): Call alloc_type instead of hand-
  4500. crafting a new type.
  4501. * coffread.c (add_symbol_to_list): Change to coff_add_symbol_to_list.
  4502. * coffread.c (finish_block): Change name to coff_finish_block.
  4503. * coffread.c (make_blockvector): Add and use objfile parameter.
  4504. * coffread.c (record_line): Change name to coff_record_line.
  4505. * coffread.c (start_symtab): Change name to coff_start_symtab.
  4506. * coffread.c (end_symtab): Change name to coff_end_symtab.
  4507. * coffread.c (record_misc_function): Change name to record_minimal_
  4508. symbol and change to minimal symbol table use from misc func tbl.
  4509. * coffread.c (coff_symfile_read): Convert from misc function vector
  4510. use to minimal symbol table use.
  4511. * coffread.c (hashname): Remove; use common version in buildsym.c.
  4512. * coffread.c (decode_base_type): Change references to builtin types
  4513. to calls to lookup_fundamental_type().
  4514. * coffread.c (read_struct_type): Change name to coff_read_struct_type.
  4515. * coffread.c (read_enum_type): Change name to coff_read_enum_type.
  4516. * command.c: Add prototypes for local functions.
  4517. * command.c (add_cmd): Prototype the 'fun' parameter and use the
  4518. appropriate member of the function union for that type.
  4519. * command.c (add_abbrev_cmd): Prototype the 'fun' parameter and
  4520. ifdef out the function since it isn't currently used.
  4521. * command.c (add_alias_cmd): Pass correct function type to add_cmd.
  4522. * command.c (add_prefix_cmd): Prototype the 'fun' parameter.
  4523. * command.c (add_abbrev_prefix_cmd): Prototype the 'fun' parameter.
  4524. * command.c (help_cmd): Compare function pointer to NULL.
  4525. * command.c (help_cmd_list): Compare function pointer to NULL.
  4526. * command.c (lookup_cmd_1): Use correct member of function union.
  4527. * command.c (undef_cmd_error): Make static.
  4528. * command.c (complete_on_cmdlist): Use correct member of func union.
  4529. * command.c (do_setshow_command): Use correct member of func union.
  4530. * command.c (shell_escape): Convert rindex use to strrchr.
  4531. * command.h (COMMAND_H): Define if already included.
  4532. * command.h (cmd_list_element struct): Change 'function' to a union
  4533. and prototype args. Prototype completer function.
  4534. * command.h: Convert decl's to prototype form.
  4535. * convex-xdep.c (store_inferior_registers): Returns void.
  4536. * copying.c: Prototype local functions.
  4537. * coredep.c: Minor whitespace change.
  4538. * cplus-dem.c: Remove hack to use BSD equivalents of mem* and str*.
  4539. * cplus-dem.c: Prototype local functions.
  4540. * dbxread.c (hashname): Remove; moved to buildsym.c.
  4541. * dbxread.c (free_and_init_header_files): Make static.
  4542. * dbxread.c: Add prototypes for local functions.
  4543. * dbxread.c (new_object_header_files): Remove; inlined usages.
  4544. * dbxread.c (xrealloc usages): Cast args.
  4545. * dbxread.c (record_misc_function): Change to record_minimal_symbol
  4546. and change usages accordingly.
  4547. * dbxread.c (static_psymbols usages): Change to use per-objfile copy.
  4548. * dbxread.c (xmalloc usages): Use per-objfile copy when appropriate.
  4549. * dbxread.c (dbx_next_symbol_text): Make static.
  4550. * dbxread.c (init_psymbol_list): Convert to use per-objfile data.
  4551. * dbxread.c (init_bincl_list): Add and use objfile parameter.
  4552. * dbxread.c (free_bincl_list): Add and use objfile parameter.
  4553. * dbxread.c (compare_psymbols): Remove; use common symfile.c version.
  4554. * dbxread.c (end_psymtab): Convert to use per-objfile data.
  4555. * dwarfread.c (DEFUN/EXFUN): Remove all usages. Use PARAMS for
  4556. prototypes.
  4557. * dwarfread.c (record_misc_function): Change name to record_minimal_
  4558. symbol and use minimal symbol table throughout.
  4559. * dwarfread.c (compare_psymbols): Remove; use common symtab.c version.
  4560. * dwarfread.c: Convert all references to builtin types to use the new
  4561. lookup_fundamental_type function.
  4562. * dwarfread.c (read_enumeration): Add and use objfile parameter.
  4563. * elfread.c (DEFUN/EXFUN): Remove all usages. Use PARAMS for proto-
  4564. types.
  4565. * elfread.c (record_misc_function): Convert to use record_minimal_
  4566. symbol.
  4567. * elfread.c (elf_symtab_read): Add objfile parameter.
  4568. * eval.c: Add prototypes for local functions and move some decls
  4569. around to accomodate prototypes.
  4570. * expprint.c: Add prototypes for local functions. Change references
  4571. to misc function vector to minimal symbol table.
  4572. * findvar.c (read_memory usages): Cast args.
  4573. * gdbtypes.h: New file, type info from symfile.h and symtab.h.
  4574. * gmalloc.c: Use NOARGS where prototypes used hardwired void.
  4575. * gmalloc.c (BLOCKSIZE): Constant to be shifted is unsigned.
  4576. * gmalloc.h: Use NOARGS where prototypes used hardwired void.
  4577. * gould-xdep.c: Minor whitespace change.
  4578. * hp300ux-xdep.c (fetch_inferior_registers): Remove unused regno var.
  4579. * hp300ux-xdep.c (store_inferior_registers): Returns void.
  4580. * hp300ux-xdep.c (fetch_core_registers): Takes unused arg reg_addr.
  4581. * i386-stub.c: Add prototypes, change "volatile" to NORETURN.
  4582. * i386-tdep.c: Add prototypes for local functions.
  4583. * i386-tdep.c (codestream_fill, codestream_seek, codestream_read,
  4584. i386_get_frame_setup, i386_skip_prologue): Explicitly declare params
  4585. that defaulted to int.
  4586. * i386-tdep.c (i386_follow_jump, i386_frame_find_saved_regs,
  4587. i386_push_dummy_frame): Returns void.
  4588. * i386-xdep.c (i386_register_u_addr): Declare params that default to
  4589. int and explicitly declare return type as int.
  4590. * i387-tdep.c: Minor formatting changes.
  4591. * i960-tdep.c (leafproc_return): Convert from misc function vector
  4592. use to minimal symbol table use.
  4593. * infcmd.c: Add prototypes for local functions.
  4594. * infcmd.c (continue_command, until_next_command, until_command,
  4595. path_info, path_command): Make static.
  4596. * infcmd.c (step_1, until_next_command): Convert from misc func
  4597. vector to minimal symbol table use.
  4598. * inflow.c: Add prototypes for local functions.
  4599. * infptrace.c (store_inferior_registers): Returns void, not int.
  4600. * language.c (_initialize_language): Use proper member of function
  4601. union.
  4602. * m2-exp.y: Add prototypes for local functions, convert misc function
  4603. vector uses to minimal symbol table uses.
  4604. * m2-exp.y (make_qualname, yyerror): Make static.
  4605. * m2-exp.y (_initialize_m2_exp): Call init_types with NULL objfile.
  4606. * m68k-pinsn.c: Add prototypes for local functions.
  4607. * m68k-pinsn.c (print_insn): Cast args to read_memory.
  4608. * m68k-pinsn.c (fetch_arg): Make parameter 'code' and int.
  4609. * m68k-stub.c: Add prototypes.
  4610. * m88k-pinsn.c (sprint_address): Convert from misc function vector
  4611. use to minimal symbol table use.
  4612. * m88k-xdep.c (fetch_inferior_registers): Takes an unused parameter.
  4613. * m88k-xdep.c (store_inferior_registers): Returns void.
  4614. * mach386-xdep.c (fetch_inferior_registers): Takes an unused param.
  4615. * mach386-xdep.c (store_inferior_registers): Returns void.
  4616. * mach386-xdep.c (fetch_core_registers): Takes an unused parameter.
  4617. * main.c: Add prototypes for local functions.
  4618. * main.c (return_to_top_level): Is type NORETURN (volatile). Cast
  4619. longjmp() result to (NORETURN void).
  4620. * main.c (catch_errors): Prototype the 'func' parameter.
  4621. * main.c (disconnect, stop_sig, do_nothin, float_handler):
  4622. Takes an unused arg.
  4623. * main.c (execute_command): Call the right member of the func union.
  4624. * main.c (command_loop_marker, symbol_completion_function,
  4625. command_loop): Make static.
  4626. * main.c (command_line_input): Make linelength unsigned, cast arg
  4627. to command_line_input().
  4628. * main.c (add_info, add_com): Prototype the 'fun' parameter.
  4629. * main.c (initialize_main): Call right member of function union.
  4630. * mcheck.c (NOARGS): Change hardwired void in prototypes to NOARGS.
  4631. * mem-break.c: Include symtab.h
  4632. * mips-xdep.c (fetch_inferior_registers): Takes unused param.
  4633. * mips-xdep.c (store_inferior_registers): Returns void.
  4634. * mipsread.c (mipscoff_symfile_read): Change from misc function vector
  4635. use to minimal symbol table use.
  4636. * mipsread.c (symbol_obstack usages): Convert all to use per-objfile
  4637. version.
  4638. * mipsread.c (make_type): Remove, convert usages to init_type.
  4639. * mipsread.c (_initialize_mipsread): Call init_type with NULL objfile.
  4640. * nindy-tdep.c (nindy_frame_chain_valid): Convert from misc function
  4641. vector use to minimal symbol table use.
  4642. * parse.c: Add prototypes for local functions.
  4643. * parse.c (xrealloc usages): Cast args.
  4644. * parse.c (prefixify_expression, length_of_subexp): Make static.
  4645. * parser-defs.h (PARSER_DEFS_H): Define when first included.
  4646. * parser-defs.h: Convert function decls to prototype form.
  4647. * partial-stab.h: Convert from misc function vector use to new minimal
  4648. symbol table use.
  4649. * partial-stab.h (global_psymbols, static_psymbols usages): Reference
  4650. the per-objfile copies.
  4651. * printcmd.c: Add prototypes for local functions. Move some struct
  4652. definitions around to accomodate prototypes.
  4653. * printcmd.c (decode_format): Make static, change args oformat and
  4654. osize to int from char.
  4655. * printcmd.c (print_formatted): Change 'format' and 'size' to int.
  4656. * printcmd.c (print_scalar_formatted): Change arg 'format' to int.
  4657. * printcmd.c (print_address_symbolic): Convert from misc function
  4658. vector use to minimal symbol table use.
  4659. * printcmd.c (address_info): Convert from misc function vector use
  4660. to minimal symbol table use.
  4661. * printcmd.c (delete_display, enable_display, disable_display_command):
  4662. Make static.
  4663. * procfs.c (EXFUN/DEFUN): Remove all usages, convert to PARAMS.
  4664. * procfs.c (fetch_core_registers): Add unused param reg_addr.
  4665. * pyr-xdep.c (fetch_inferior_registers): Add unused param regno.
  4666. * pyr-xdep.c (store_inferior_registers): Returns void.
  4667. * remote-mm.c (mm_load): symbol_file_add return value unused.
  4668. * remote-nindy.c: Minor format change.
  4669. * remote-vx.c (vx_load_command): symbol_file_add result unused.
  4670. * rs6000-xdep.c (fetch_inferior_registers): Add unused param regno.
  4671. * rs6000-xdep.c (store_inferior_registers): Returns void.
  4672. * rs6000-xdep.c (fetch_core_registers): add unused param reg_addr
  4673. * rs6000-xdep.c (aixcoff_relocate_symtab): Convert from misc function
  4674. vector use to minimal symbol table use.
  4675. * solib.c: Add prototypes for local functions.
  4676. * solib.c (solib_add_common_symbols, locate_base): Convert from misc
  4677. function vector use to minimal symbol table use.
  4678. * solib.c (EXFUN/DEFUN): Remove all usages, convert to PARAMS.
  4679. * solib.c (find_solib, shared_library_command): Make static
  4680. * solib.c (read_memory, write_memory usages): Cast args.
  4681. * solib.c (special_symbol_handling): Add function
  4682. * source.c: Add prototypes for local functions.
  4683. * source.c (select_source_symtab): Convert to scan objfiles.
  4684. * source.c (open_source_file): Make static.
  4685. * source.c (xrealloc usages): Cast args.
  4686. * source.c (source_line_charpos): ifdef out, unused.
  4687. * source.c (get_filename_and_charpos): Make static.
  4688. * stack.c: Add prototypes for local functions.
  4689. * stack.c (print_frame_info, frame_info): Convert from misc function
  4690. vector use to minimal symbol table use.
  4691. * symfile.c: Add prototypes for local functions.
  4692. * symfile.c (compare_symbols): Make args const PTR's.
  4693. * symfile.c (compare_psymbols, sort_pst_symbols) add.
  4694. * symfile.c (sort_all_symtab_syms): Scan objfile list.
  4695. * symfile.c (obsavestring): Add objfile parameter.
  4696. * symfile.c (init_misc_bunches, prim_record_misc_function,
  4697. compare_misc_functions, discard_misc_bunches, condense_misc_bunches,
  4698. sort_misc_function_vector, compact_misc_function_vector): Remove
  4699. * symfile.c (symbol_file_add_digested): Add function.
  4700. * symfile.c (symbol_file_add): Returns struct objfile *.
  4701. * symfile.c (symbol_file_command): Modify for state file use.
  4702. * symfile.c (symfile_open): Add parameter "dumpable".
  4703. * symfile.c (allocate_objfile, free_objfile): Moved to objfiles.c
  4704. * symfile.c (load_command, add_symbol_file_command): Make static.
  4705. * symfile.c (fill_in_vptr_fieldno): Moved to gdbtypes.c
  4706. * symfile.c (rindex usages): Converted to strrchr.
  4707. * symfile.c (allocate_psymtab): New
  4708. * symfile.c (free_named_symtabs): Ifdef out code that needs to be
  4709. converted to minimal symbol table usage, but no obvious conversion.
  4710. * symfile.c (free_all_symtabs): Remove.
  4711. * symfile.c (_initialize_symfile): Use per-objfile info.
  4712. * symfile.h: Rework the objfile structure to add per-objfile data
  4713. objects (psymbol_obstack, symbol_obstack, type_obstack,
  4714. global_psymbols, static_psymbols, msymbols, minimal_symbol_count,
  4715. fundamental_types, malloc, realloc, free, xmalloc, xrealloc, etc).
  4716. Add prototypes to function declarations.
  4717. * symm-tdep.c (symmetry_extract_return_value): Convert from misc
  4718. function vector usage to minimal symbol table usage.
  4719. * symmisc.c (DEV_TTY): Define if not defined.
  4720. * symmisc.c: Add local function prototypes.
  4721. * symmisc.c (dump_objfile, dump_msymbols, dump-symtab, print_syms,
  4722. printpsyms_command, print_objfiles, print_objfiles_command):
  4723. Rework to use iterate_over_*
  4724. * symtab.c: Add prototypes for local functions.
  4725. * symtab.c (lookup_symtab_1): Convert to look through objfiles.
  4726. * symtab.c (lookup_partial_symtab): Scan through objfiles.
  4727. * symtab.c (lookup_primitive_typename, lookup_typename, lookup_
  4728. unsigned_typename, lookup_struct, lookup_union, lookup_enum,
  4729. lookup_template_type, lookup_struct_elt_type, lookup_pointer_type,
  4730. lookup_reference_type, lookup_member_type, allocate_stub_method,
  4731. check_stub_method, create_array_type, smash_to_member_type,):
  4732. Moved to gdbtypes.c
  4733. * symtab.c (lookup_symbol): Some args are const.
  4734. * symtab.h: All type related defs and structs moved to gdbtypes.h
  4735. * symtab.h: Convert decls to prototypes.
  4736. * target.c (noprocess): Make static.
  4737. * target.h: Change decl's to prototypes.
  4738. * tm-sunos.h: (CLEAR_SOLIB, SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK,
  4739. DISABLE_UNSETTABLE_BREAK) Moved to solib.h.
  4740. * utils.c (_initialize_utils): Use correct member of function union.
  4741. * valarith.c: include gdbtypes.h
  4742. * valops.c: include gdbtypes.h, add prototypes for local functions.
  4743. * valops.c (value_push, value_arg_push, find_function_addr):
  4744. Make static.
  4745. * valops.c (value_string): Convert from misc function vector use
  4746. to minimal symbol table use.
  4747. * valops.c (check_field_in): Make arg const.
  4748. * valprint.c: Add prototypes for local functions.
  4749. * valprint.c (print_string): Make static
  4750. * valprint.c (value_print, val_print_fields, val_print): Make arg int.
  4751. * values.c: Add prototypes for local functions.
  4752. * values.c (value_headof): Convert from misc function vector to
  4753. minimal symbol table.
  4754. * xcoffexec.c: Add prototypes for local functions.
  4755. * xcoffexec.c (exec_close, file_command, add_to_section_table):
  4756. Make static.
  4757. * xcoffexec.c (relocate_minimal_symbol): Add.
  4758. * xcoffread.c (patch_block_stabs): Moved to buildsyms.c.
  4759. * xcoffread.c: Add prototypes for local functions.
  4760. * xcoffread.c (sort_syms): Convert to scan objfiles.
  4761. * xcoffread.c (read_xcoff_symtab): Make static.
  4762. * xcoffread.c (various): Replace references to builtin types with
  4763. calls to lookup_fundamental_type. Replace references to symbol_obstack
  4764. and psymbol_obstack with pointers to the per-objfile copies.
  4765. * xcoffread.c (dump_linetable, dump_type, dump_symbol, dump_namespace,
  4766. dump_block, dump_blockvector, dump_last_symtab, dump_symtabs):
  4767. Make static.
  4768. * xcoffread.c (init_stringtab): Add objfile parameter.
  4769. * gdbtypes.c: New file
  4770. * minsyms.c: New file
  4771. * mmap-alloc.c: New file
  4772. * mmap-sbrk.c: New file
  4773. * objfiles.c: New file
  4774. * state.c: New file
  4775. * state.h: New file
  4776. Fri Feb 21 17:29:54 1992 John Gilmore (gnu at cygnus.com)
  4777. * Check in Fred Fish's changes in these modules. Fred
  4778. will make ChangeLog entries for all of them. Update VERSION
  4779. to 4.4.2.
  4780. Thu Feb 20 18:10:17 1992 Fred Fish (fnf at cygnus.com)
  4781. * tm-sparc.h, tm-sysv4.h, solib.h: Move shared lib definitions
  4782. into solib.h.
  4783. * sparc-pinsn.c, sparc-tdep.c, standalone.c, sun3-xdep.c,
  4784. sun386-xdep.c, symm-xdep.c, target.c, ultra3-xdep.c, utils.c,
  4785. value.h: Prototypes for static functions; lint.
  4786. * gdbtypes.h: Empty file to ease transition.
  4787. Thu Feb 20 16:43:13 1992 Fred Fish (fnf at cygnus.com)
  4788. * environ.h, expression.h, frame.h, gdbcmd.h, gdbcore.h,
  4789. inferior.h, language.h, signame.h, target.h, terminal.h,
  4790. tm-68k.h, tm-i386v.h, tm-sparc.h, tm-sun386.h, tm-symmetry.h,
  4791. xm-i386v.h, xm-sparc.h: Prototypes for all external functions.
  4792. Lint.
  4793. * core.c, exec.c, infrun.c, inftarg.c, language.c, remote.c,
  4794. signame.c, sparc-xdep.c: Prototypes for all static functions.
  4795. Lint.
  4796. * core.c, eval.c, exec.c, inftarg.c, remote-adapt.c, remote-eb.c,
  4797. remote-hms.c, remote-mm.c, remote-nindy.c, remote-vx.c, remote.c,
  4798. target.c, target.h, valarith.c, valops.c, value.h, xcoffexec.c:
  4799. Remove to_call_function and target_call_function, since it
  4800. always calls the same thing (call_function_by_hand).
  4801. * core.c, exec.c, solib.c: Rename target_ops sections =>
  4802. to_sections, etc.
  4803. * infcmd.c, inflow.c, infptrace.c, infrun.c, main.c, target.c,
  4804. target.h: target_kill takes no args.
  4805. * language.c (language_info): Scaffolding to allow briefer
  4806. messages when the current language changes. FIXME.
  4807. * xm-amix.h, xm-i386v4.h, xm-stratus.h: Define NORETURN to avoid
  4808. complaints about volatile functions.
  4809. * xm-sysv4.h (HAVE_MMAP): Define.
  4810. Thu Feb 20 09:04:18 1992 Fred Fish (fnf at cygnus.com)
  4811. * defs.h: Include ansidecl.h and PARAMS macro. Use PARAMS
  4812. to make prototypes for all functions declared here.
  4813. * cplus-dem.c: Avoid declaring xmalloc and xrealloc.
  4814. * c-exp.y: Rename SIGNED, OR, and AND to avoid conflict.
  4815. * environ.c: Include <stdio.h> before defs.h. Minor cleanup.
  4816. * ieee-float.h: Use PARAMS for prototypes; make some params const.
  4817. * ieee-float.c, valarith.c: Include <stdio.h>. Lint. b*=>mem*.
  4818. * m2-exp.y: Remove unused CONST; Rename OR and AND.
  4819. * utils.c: Avoid declaring malloc and realloc. Lint.
  4820. (request_quit): Accept signal-number parameter.
  4821. Mon Feb 17 07:13:27 1992 Fred Fish (fnf at cygnus.com)
  4822. * dwarfread.c (process_dies): Add case to handle TAG_pointer_type
  4823. DIE's. Add new function read_tag_pointer_type() to read them.
  4824. * dwarfread.c (dwarf_read_array_type, read_subroutine_type):
  4825. When creating a new user defined type, check to see if a partial
  4826. type already exists, and if so, bash it to fit.
  4827. Fri Feb 14 19:00:17 1992 John Gilmore (gnu at cygnus.com)
  4828. * coffread.c (decode_base_type): Pass long, not union.
  4829. Fix by Eric Valette, ev@chorus.fr.
  4830. Thu Feb 13 17:14:28 1992 Fred Fish (fnf at cygnus.com)
  4831. * elfread.c (elf_symtab_read): Fix code to correctly track
  4832. changes in bfd for absolute symbols.
  4833. Thu Feb 13 12:43:29 1992 Stu Grossman (grossman at cygnus.com)
  4834. * xm-vaxbsd.h: Close off comment.
  4835. Thu Feb 13 07:45:19 1992 Fred Fish (fnf at cygnus.com)
  4836. * xm-sysv4.h: Define NEED_POSIX_SETPGID.
  4837. Fri Feb 7 11:51:12 1992 Per Bothner (bothner at cygnus.com)
  4838. * mips-tdep.c (mips_print_registers): Print correct register
  4839. number for double pseudo-registers.
  4840. Fri Feb 7 07:56:05 1992 John Gilmore (gnu at cygnus.com)
  4841. * buildsym.c (read_struct_type): Avoid double-bump of parse ptr
  4842. in the op$::OPERATOR. case. From Steven McCanne,
  4843. <mccanne@horse.ee.lbl.gov>.
  4844. * exec.c (set_section_name): Pass arg to exec_files_info;
  4845. only call it if interactive. From Francis Kauth <fk@tv.tv.tek.com>.
  4846. Thu Feb 6 17:41:32 1992 John Gilmore (gnu at cygnus.com)
  4847. * main.c (print_gdb_version): Copyright msg: only this year.
  4848. (cd_command): Avoid changing current_directory on error.
  4849. Thu Feb 6 15:14:01 1992 Per Bothner (bothner at cygnus.com)
  4850. * mipsread.c (parse_partial_symbols): Handle dependencies
  4851. between partial symbol tables (when not doing stabs-in-ecoff).
  4852. (This used to be handled by parse_fdr, but parse_fdr was
  4853. incompatible with handling stabs-in-ecoff, so the code
  4854. was re-written to not use parse_fdr. Unfortunately,
  4855. the logic to handle dependencies was overlooked.)
  4856. Thu Feb 6 11:51:39 1992 Steve Chamberlain (sac at rtl.cygnus.com)
  4857. * coffread.c (read_enum_type): Use the size of a target int when
  4858. describing enum.
  4859. * defs.h: added new #define for TARGET_PTR_BIT, defaults to size
  4860. of target int.
  4861. * h8300-tdep.c, remote-hms.c, tm-h8300.h: too many changes to count
  4862. * symtab.c (lookup_reference_type, lookup_ptr_type): use
  4863. TARGET_PTR_BIT to determine size of a pointer
  4864. * values.c (unpack_long): when unpacking a REF or a PTR don't
  4865. assume the size of the type.
  4866. Wed Feb 5 22:29:59 1992 John Gilmore (gnu at cygnus.com)
  4867. * mipsread.c (parse_symbol): Avoid clobbering enum pointer when
  4868. looking at its members. Improve guess between struct and union,
  4869. only assuming union if multiple members have offsets of zero.
  4870. Tue Feb 4 18:05:44 1992 Per Bothner (bothner at cygnus.com)
  4871. * mipsread.c: Use (FP0_REGNUM-32) instead of magic number 6.
  4872. (This is just for clarity - and one day permitting us to
  4873. change FP0_REGNUM from 38 to 32, which would make more sense.)
  4874. * tm-mips.h: Added STAB_REG_TO_REGNUM macro, so that
  4875. register numbers in stabs-in-ecoff get handled correctly.
  4876. Sat Feb 1 04:45:10 1992 Stu Grossman (grossman at cygnus.com)
  4877. * xm-vax.h, xm-vaxult.h, xm-vaxbsd.h, config/mh-vaxult,
  4878. config/mh-vaxbsd, configure.in: Split up config stuff for Vaxen
  4879. into BSD and Ultrix.
  4880. Sat Feb 1 04:39:41 1992 John Gilmore (gnu at cygnus.com)
  4881. * dbxread.c (dbx_symfile_init): Call malloc, not xmalloc.
  4882. Sat Feb 1 04:15:41 1992 Stu Grossman (grossman at cygnus.com)
  4883. * Makefile.in: Increment version to 4.4.1.
  4884. * main.c (print_gdb_version): Update copyright notice.
  4885. Sat Feb 1 01:43:11 1992 Per Bothner (bothner at cygnus.com)
  4886. * mipsread.c: Prepend "struct " to the names of structure
  4887. types, and similarly for enums and unions. (This used
  4888. to be done, but got lost in the re-write to "guess" the
  4889. difference between enum/struct/union.)
  4890. Also, guess that a tag is an enum if the first member
  4891. has type btNil.
  4892. Fri Jan 31 21:45:51 1992 Stu Grossman (grossman at cygnus.com)
  4893. * xm-vax.h: #ifndef ultrix around #include of endian.h and
  4894. limits.h (sigh).
  4895. Fri Jan 31 00:05:01 1992 John Gilmore (gnu at cygnus.com)
  4896. * Projects: Patching executables is done.
  4897. * Makefile.in (VERSION): Roll to gdb-4.4.
  4898. * README, WHATS.NEW: Update for gdb-4.4.
  4899. * symfile.c (reread_symbols): Whenever we reread one object
  4900. file's symbols, we must restart the scan, because the object_files
  4901. chain has been permuted.
  4902. * exec.c (exec_files_info): Split out into print_section_info.
  4903. Print BFD filename of each section if it's not the default one.
  4904. * core.c (core_files_info): Call print_section_info.
  4905. * xm-vax.h: Include a few system header files whose definitions
  4906. must precede defs.h.
  4907. * language.c, language.h: Make some things const.
  4908. * expression.h, main.c: const spreads like ooze.
  4909. * mem-break.c (break_insn, break_insn_size): Use unsigned chars,
  4910. since BREAKPOINT values can be >0x80.
  4911. Thu Jan 30 17:21:14 1992 Stu Grossman (grossman at cygnus.com)
  4912. * infrun.c, xm-i386sco.h: SCO needs to use setpgid().
  4913. Thu Jan 30 01:04:23 1992 John Gilmore (gnu at cygnus.com)
  4914. * sparc-pinsn.c: Remove kludge for preferring architectures.
  4915. Remove #ifdef's for SORT_NEEDED. We need to sort the table, now
  4916. and forever. Add `add' instruction to the set that get checked
  4917. for a preceding `sethi' in order to print an absolute address.
  4918. Corresponding changes in ../include/opcode/sparc.h needed
  4919. to eliminate garbage instructions.
  4920. Wed Jan 29 19:24:34 1992 Per Bothner (bothner at cygnus.com)
  4921. * mipsread.c (parse_partial_symbols): Make sure partial
  4922. symbols are created for external symbols (as used to be
  4923. the case). This is a bit of a pain with the mips-coff.
  4924. It uses a table which points to all of the external
  4925. symbols belonging to a particular FDR or psymtab.
  4926. Once we've generated this table, we might as well save
  4927. it, and then use it in psymtab_to_symtab_1 to find
  4928. the symbols to pass to parse_external().
  4929. * symfile.c, symfile.c: New function start_psymtab_common
  4930. to share the common parts of allocating a new psymtab
  4931. for dbxread, mipsread (and later dwarfread). Its code
  4932. was pulled out from start_psymtab in dbxread.c.
  4933. * dbxread.c (start_psymtab): Use start_psymtab_common().
  4934. * valprint.c (val_print): If there is an error when trying
  4935. to print a string, check to see if there really is a problem
  4936. by reading just one character. If that works, assume
  4937. things are ok.
  4938. Wed Jan 29 18:58:43 1992 Stu Grossman (grossman at cygnus.com)
  4939. * sparc-pinsn.c (compare_opcodes): Make it prefer v6, v7,
  4940. cypress, v8 mnemonics in that order.
  4941. Tue Jan 28 17:32:13 1992 Per Bothner (bothner at cygnus.com)
  4942. * sparc-pinsn.c: Put the qsort() back in.
  4943. Mon Jan 27 18:51:03 1992 John Gilmore (gnu at cygnus.com)
  4944. * findvar.c (read_register, write_register): Handle machines
  4945. where REGISTER_TYPE is not the same size as "int".
  4946. Handle debug symbols in dynamically loaded (relocated) code:
  4947. * dbxread.c (read_ofile_symtab): Fix up N_CATCH better. Pass
  4948. offset to process_one_symbol.
  4949. (process_one_symbol): Take new offset parameter. Add it into
  4950. appropriate symbol types to relocate symbols to loaded addresses.
  4951. Handle all possible symbol types, and complain() about types that
  4952. we don't expect to see.
  4953. * mipsread.c (psymtab_to_symtab_1): Pass offset of zero to
  4954. process_one_symbol (FIXME, should pass real offset).
  4955. Misc bugfixes:
  4956. * breakpoint.c (resolve_sal_pc): Split out code to resolve a
  4957. sal's PC value.
  4958. (set_breakpoint, break_command_1, until_break_command,
  4959. catch_command_1, breakpoint_re_set_one): Use it.
  4960. * symtab.h (resolve_sal_pc): Declare.
  4961. * infcmd.c (jump_command): Use resolve_sal_pc.
  4962. * source.c (list_command): Shorten "FILE, line N" to "FILE:N".
  4963. * putenv.c (putenv): Avoid unportably casting pointers to unsigneds.
  4964. * c-exp.y (yylex): `this' and `template' are only tokens in C++.
  4965. * xm-convex.h, xm-hp300bsd.h, xm-isi.h, xm-merlin.h, xm-news.h,
  4966. xm-np1.h, xm-pn.h, xm-pyr.h, xm-rtbsd.h, xm-symmetry.h, xm-umax.h:
  4967. Remove MISSING_VPRINTF declaration, and superfluous "kgdb" defines.
  4968. Mon Jan 27 15:46:21 1992 Stu Grossman (grossman at cygnus.com)
  4969. * dbxread.c (process_one_symbol): Make a first cut at handling
  4970. symbol tables generated by Sun's acc. (#ifdef'd out, FIXME.)
  4971. * symtab.c (find_pc_line): Fix stepping into and out of #included
  4972. files.
  4973. Mon Jan 27 13:00:55 1992 Stu Grossman (grossman at cygnus.com)
  4974. * Makefile.in (OPCODES): Remove OPCODES defs and refs. There is
  4975. no longer any need to copy ../include/opcode/* into gdb.
  4976. Mon Jan 27 12:30:38 1992 John Gilmore (gnu at cygnus.com)
  4977. * ChangeLog, ChangeLog-9091: Split ChangeLog at 1992.
  4978. Sun Jan 26 19:05:40 1992 Per Bothner (bothner at cygnus.com)
  4979. * valprint.c (type_print_base, type_print_method_args):
  4980. Print C++ constructor methods without bogus "return type."
  4981. Sat Jan 25 15:57:59 1992 Fred Fish (fnf at cygnus.com)
  4982. * infptrace.c (child_xfer_memory): Parameter "target" should
  4983. be a pointer to a structure, not the entire structure.
  4984. Fri Jan 24 01:30:27 1992 Fred Fish (fnf at cygnus.com)
  4985. * depend: Convert the couple of references to ansidecl.h that
  4986. used the local gdb version to use the ../include version.
  4987. Thu Jan 23 22:24:43 1992 Fred Fish (fnf at cygnus.com)
  4988. * procfs.c
  4989. (child_xfer_memory): Takes pointer to a struct, not entire struct.
  4990. (inferior_proc_init): Fix non-ANSI version of args.
  4991. (attach): Call print_sys_errmsg with correct number of args.
  4992. (mappingflags): Make static, does not need to be global.
  4993. * i386-tdep.c (i386_frame_num_args): Takes a pointer to a struct
  4994. not the entire struct itself.
  4995. * valops.c (value_assign): Cast some args to modify_field() and
  4996. {read,write}_register_bytes() correctly.
  4997. * ansidecl.h: Removed, is duplicate of ../include/ansidecl.h
  4998. * Makefile.in (MALLOCSRC): Removed reference to removed local
  4999. copy of ansidecl.h.
  5000. * dwarfread.c (list_in_scope): Needs an initial value, use file
  5001. scope.
  5002. Mon Jan 20 19:06:28 1992 Stu Grossman (grossman at cygnus.com)
  5003. * main.c (main): Make option_index local to keep new getopt happy.
  5004. main.c, solib.c, Makefile.in: Update copyright notices.
  5005. Mon Jan 20 08:54:00 1992 Michael Tiemann (tiemann at cygnus.com)
  5006. * cplus-dem.c (cplus_demangle): Correctly demangle destructors.
  5007. Sat Jan 18 17:17:45 1992 Stu Grossman (grossman at cygnus.com)
  5008. * Makefile.in (HFILES): Add partial-stab.h.
  5009. Sat Jan 18 16:45:01 1992 Fred Fish (fnf at cygnus.com)
  5010. * config/mh-stratus, config/mt-stratus, tm-stratus.h, xm-stratus.h:
  5011. New files for stratus. Not complete enough to actually build
  5012. on the Stratus machine; that awaits copyright assignment for
  5013. i860 changes.
  5014. * Makefile.in (USER_CFLAGS): Add macro specifically reserved
  5015. for getting custom flags into CFLAGS when doing makes.
  5016. * configure.in: Add config information for stratus.
  5017. Thu Jan 16 00:51:46 1992 Fred Fish (fnf at cygnus.com)
  5018. * dbxread.c (process_one_symbol): Pass address of structure
  5019. to complain(), rather than the whole structure.
  5020. Wed Jan 15 09:56:16 1992 Fred Fish (fnf at cygnus.com)
  5021. * solib.c (solib_add_common_symbols): Only compile in when not
  5022. using SVR4 style shared libraries.
  5023. Tue Jan 14 22:34:00 1992 Fred Fish (fnf at cygnus.com)
  5024. * dwarfread.c (locval): Add offreg flag to indicate location
  5025. values that are computed off a base register.
  5026. * dwarfread.c (new_symbol): Rework TAG_global_variable and
  5027. TAG_local_variable cases to account for static variables
  5028. within function scopes.
  5029. Tue Jan 14 12:28:52 1992 Stu Grossman (grossman at cygnus.com)
  5030. * inflow.c: remove #include <sys/dir.h>. Not necessary, and
  5031. doesn't exist on some systems.
  5032. * infrun.c (wait_for_inferior!!!!): Prevent gdb from hanging when
  5033. nexting over recursive function calls.
  5034. * target.c (target_read_string): Create this routine to read null
  5035. terminated strings from the target. It deals with running off the
  5036. end of memory elegantly as well. solib.c (find_solib): Use
  5037. target_read_string() to avoid problems with running off the end of
  5038. memory.
  5039. * inflow.c (child_terminal_info): #ifdef TIOCPGRP around lines
  5040. that reference pgrp_inferior.
  5041. Mon Jan 13 14:57:11 1992 Per Bothner (bothner at cygnus.com)
  5042. * tm-mips.h: Removed BLOCK_ADDRESS_ABSOLUTE, now that
  5043. mips-tfile has been hacked to act more "traditionally."
  5044. * dbxread.c: Fixed typo in comment.
  5045. Sun Jan 12 13:08:36 1992 Per Bothner (bothner at cygnus.com)
  5046. * mips-tdep.c (mips_skip_prologue): Add some number of
  5047. 'sw' instructions before 'addiu' adjusts the stack.
  5048. Fri Jan 10 13:47:06 1992 Fred Fish (fnf at cygnus.com)
  5049. * dwarfread.c (start_symtab, end_symtab, scopecount, openscope,
  5050. freescope, buildblock closescope, record_line, add_symbol_to_list,
  5051. gatherblocks, make_blockvector): Extensive changes to switch
  5052. to generic symbol table building code in buildsym.c. Remove
  5053. scope tree structures and functions, symbol table building
  5054. functions, and lots of other small changes.
  5055. * dwarfread.c: Add new macros GCC_PRODUCER and STREQN. Remove
  5056. GCC_COMPILED_FLAG_SYMBOL and GCC2_COMPILED_FLAG_SYMBOL.
  5057. Tue Jan 7 13:09:57 1992 Stu Grossman (grossman at cygnus.com)
  5058. * buildsym.c (cleanup_undefined_types): Add support for enums.
  5059. This fixes the 'GDB internal error. cleanup_undefined_types with
  5060. bad type' problem.
  5061. Sun Jan 5 09:47:50 1992 Stu Grossman (grossman at cygnus.com)
  5062. * dbxread.c: detect gcc2 compilations.
  5063. Thu Jan 2 15:07:41 1992 John Gilmore (gnu at cygnus.com)
  5064. * sparc-pinsn.c: Rename bitfields that overlap with macro names
  5065. in ../include/opcode/sparc.h.
  5066. Wed Jan 1 04:29:00 1992 Fred Fish (fnf at cygnus.com)
  5067. * Makefile.in: Change tm-svr4.h to tm-sysv4.h. Change xm-svr4.h
  5068. to xm-sysv4.h. Split OPCODE_DIR into OPCODE_DIR1 and OPCODE_DIR2
  5069. to reflect actual locations of opcode files, so TAGS target will
  5070. be buildable.
  5071. * i386-tdep.c: Change an erroneous 'm68k' reference to 'i386'.
  5072. * i386-tdep.c (supply_fpregset, fill_fpregset): Remove m68k
  5073. code.
  5074. * m68k-tdep.c (supply_fpregset, fill_fpregset): Fix array
  5075. dereferencing to access the correct elements.
  5076. * valops.c (value_addr): Declare return type of external func
  5077. value_copy().
  5078. * xcoffread.c: Undefine next_symbol_text before redefining it.
  5079. For older changes see ChangeLog-1991
  5080. Local Variables:
  5081. mode: indented-text
  5082. left-margin: 8
  5083. fill-column: 74
  5084. version-control: never
  5085. End: