ChangeLog-2004 584 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226
  1. 2004-12-28 Jim Blandy <jimb@redhat.com>
  2. * remote.c (fetch_register_using_p): Recognize a register value
  3. starting with 'x' as indicating an unfetchable register.
  4. 2004-12-27 Mark Kettenis <kettenis@gnu.org>
  5. * config/mips/obsd64.mh (NATDEPFILES): Unwrap line.
  6. 2004-12-26 Mark Kettenis <kettenis@gnu.org>
  7. * inftarg.c (child_xfer_partial): Remove code that handles
  8. TARGET_OBJ_WCOOKIE.
  9. 2004-12-25 Mark Kettenis <kettenis@gnu.org>
  10. * inftarg.c (child_create_inferior) [HPUXHPPA]: Remove code.
  11. 2004-12-24 Mark Kettenis <kettenis@gnu.org>
  12. * target.h (TARGET_DISABLE_HW_WATCHPOINTS)
  13. (TARGET_ENABLE_HW_WATCHPOINTS): Remove macros.
  14. * infrun.c (struct execution_control_state): Remove
  15. enable_hw_watchpoints_after_wait member.
  16. (number_of_threads_in_syscalls): Remove variable.
  17. (init_wait_for_inferior): Don't initialize
  18. number_of_threads_in_syscalls.
  19. (init_execution_control_state): Don't initialize
  20. ECS->enable_hw_watchpoints_after_wait.
  21. (handle_inferior_event): Never invoke TARGET_ENABLE_HW_WATCHPOINTS
  22. or TARGET_DISABLE_HW_WATCHPOINTS.
  23. 2004-12-23 Mark Kettenis <kettenis@gnu.org>
  24. * i386-nto-tdep.c: Reorder include files.
  25. (i386nto_svr4_fetch_link_map_offsets): Remove function.
  26. (init_i386nto_ops, i386nto_init_abi): Use
  27. svr4_ilp32_fetch_link_map_offsets instead of
  28. i386nto_svr4_fetch_link_map_offsets.
  29. 2004-12-21 Mark Kettenis <kettenis@gnu.org>
  30. * hppa-tdep.c (hppa_frame_prev_register_helper): Make 64-bit safe.
  31. 2004-12-21 Mark Kettenis <kettenis@gnu.org>
  32. * hppa-tdep.c (hppa64_return_value): Fix previous commit.
  33. 2004-12-21 Mark Kettenis <kettenis@gnu.org>
  34. * hppa-tdep.c (hppa32_return_value): Move further down.
  35. (hppa64_return_value): Re-implement.
  36. 2004-12-21 Jim Blandy <jimb@redhat.com>
  37. * remote.c (fetch_register_using_p): Fix formatting.
  38. 2004-12-21 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
  39. * ada-lang.c (ada_print_subexp): Remove i18n markup from Ada code
  40. output.
  41. * ada-typeprint.c (ada_typedef_print): Ditto.
  42. (print_unchecked_union_type): Ditto.
  43. (print_record_type): Ditto, and correct output for non-derived
  44. types that was inadvertently left off during the markup.
  45. 2004-12-19 Mark Kettenis <kettenis@gnu.org>
  46. * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence): Check
  47. whether the name returned by find_pc_partial_function is a null
  48. pointer, not whether it is an empty string.
  49. * hppa-tdep.h (hppa_regnum): Add HPPA_DP_REGNUM, HPPA_RET0_REGNUM,
  50. HPPA_RET1_REGNUM and HPPA64_FP4_REGNUM.
  51. * hppa-tdep.c (hppa64_integral_or_pointer_p)
  52. (hppa64_floating_p) New functions.
  53. (hppa64_push_dummy_call): Re-implement.
  54. (hppa32_register_type): Rename argument reg_nr to regnum.
  55. (hppa64_register_type): Likewise. Use HPPA64_FP4_REGNUM instead
  56. of HPPA_FP4_REGNUM.
  57. (hppa32_cannot_store_register): Renamed from
  58. hppa_cannot_store_register.
  59. (hppa64_cannot_store_register): New function.
  60. (hppa_gdbarch_init): Set cannot_store_register and
  61. cannot_fetch_register to hppa32_cannot_store_register or
  62. hppa64_cannot_store_register when appropriate.
  63. 2004-12-18 Mark Kettenis <kettenis@gnu.org>
  64. * hppah-nat.c: Remove file.
  65. * infttrace.h: Remove file.
  66. * infttrace.c: Remove file.
  67. * Makefile.in (ALLDEPFILES): Remove hppah-nat.c
  68. (infttrace_h): Remove variable.
  69. (hppah-nat.o, infttrace.o): Remove dependencies.
  70. * configure.host (hppa*64*-*-hpux11*): Remove.
  71. * config/pa/hpux11w.mh: Remove file.
  72. * config/pa/nm-hppah.h: Remove file.
  73. * config/pa/nm-hppah11.h: Remove file.
  74. * config/djgpp/fnchange.lst: Resolve name clash between
  75. ../bfd/elf32-arm.c and ../bfd/elf32-arc.c, i386-sol2-nat.c and
  76. i386-sol2-tdep.c, mips64obsd-nat.c and mips64obsd-tdep.c,
  77. testsuite/gdb.base/bitfields.c and
  78. testsuite/gdb.base/bitfields2.c, testsuite/gdb.base/bitfields.exp
  79. and testsuite/gdb.base/bitfields2.exp. Remove entry for
  80. config/m88k/xm-delta88v4.h.
  81. * solib-pa64.c: Only include <dlfcn.h>, <elf.h> and <elf_hp.h> if
  82. PA_SOM_ONLY isn't defined.
  83. * somread.c: Include "solib-som.h".
  84. (som_symfile_init, som_new_init, som_symfile_read,
  85. som_symfile_finish, som_symtab_read, som_symfile_offsets): Remove
  86. redudant prototypes.
  87. * Makefile.in (somread.o): Update dependencies.
  88. 2004-12-17 Jim Blandy <jimb@redhat.com>
  89. * remote.c (fetch_register_using_p): Indentation cleanup.
  90. 2004-12-17 Randolph Chung <tausq@debian.org>
  91. * hppa-hpux-tdep.c (setup_d_pid_in_inferior): Make static.
  92. (find_stub_with_shl_get): Make static.
  93. 2004-12-17 Randolph Chung <tausq@debian.org>
  94. * hppa-hpux-tdep.c (IS_32BIT_TARGET): New.
  95. (in_opd_section): New.
  96. (hppa32_hpux_find_global_pointer): Rename from
  97. hppa_hpux_som_find_global_pointer.
  98. (hppa64_hpux_find_global_pointer): New.
  99. (ldsid_pattern): New.
  100. (hppa_hpux_search_pattern): New.
  101. (hppa32_hpux_search_dummy_call_sequence): New.
  102. (hppa64_hpux_search_dummy_call_sequence): New.
  103. (hppa_hpux_find_import_stub_for_addr): New.
  104. (hppa_hpux_sr_for_addr): New.
  105. (hppa_hpux_find_dummy_bpaddr): New.
  106. (hppa_hpux_init_abi): Use IS_32BIT_TARGET predicate.
  107. (hppa_hpux_som_init_abi): Set find_global_pointer method to
  108. hppa32_hpux_find_global_pointer instead of
  109. hppa_hpux_som_find_global_pointer.
  110. (hppa_hpux_elf_init_abi): Set find_global_pointer method.
  111. * hppa-tdep.c (hppa_init_objfile_priv_data): New.
  112. (read_unwind_info): Use function to initialize objfile-private data.
  113. (hppa32_push_dummy_call): Don't automatically set the RP if there is
  114. a push_dummy_code method.
  115. (hppa64_push_dummy_call): Retrieve and set the global pointer.
  116. Don't automatically set the RP if there is a push_dummy_code method.
  117. * hppa-tdep.h (hppa_objfile_private): Add dummy_call_sequence_reg and
  118. dummy_call_sequence_addr members.
  119. (hppa_init_objfile_priv_data): New prototype.
  120. 2004-12-17 Joel Brobecker <brobecker@gnat.com>
  121. * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): New function.
  122. * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Add declaration.
  123. * solib-som.c (som_solib_create_inferior_hook): Replace stub
  124. msymbol search by call to hppa_lookup_stub_minimal_symbol. This
  125. extends the search to all objfiles, not just shared libraries.
  126. Remove unused variable.
  127. 2004-12-16 Michael Snyder <msnyder@redhat.com>
  128. * MAINTAINERS: Add myself as maintainer for mn10300.
  129. * NEWS: Mention mn10300.
  130. 2004-12-15 Kevin Buettner <kevinb@redhat.com>
  131. * xstormy16-tdep.c (xstormy16_skip_prologue): Clear/initialize the
  132. frame cache.
  133. 2004-12-14 Randolph Chung <tausq@debian.org>
  134. * hppa-tdep.c (hppa_in_function_epilogue_p): New function.
  135. (hppa_gdbarch_init): Set in_epilogue_p method.
  136. 2004-12-14 Corinna Vinschen <vinschen@redhat.com>
  137. * sh-tdep.c (sh_extract_return_value_nofpu): Rename from
  138. sh_default_extract_return_value.
  139. (sh_extract_return_value_fpu): Rename from
  140. sh3e_sh4_extract_return_value.
  141. (sh_store_return_value_nofpu): Rename from
  142. sh_default_store_return_value.
  143. (sh_store_return_value_fpu): Rename from sh3e_sh4_store_return_value.
  144. (sh_return_value_nofpu): Accomodate above changes.
  145. (sh_return_value_fpu): Ditto.
  146. 2004-12-13 Jerome Guitton <guitton@gnat.com>
  147. * stabsread.c (read_huge_number): Add support for reading octal
  148. signed number in twos complement, based on the size of this
  149. number.
  150. (read_range_type): Add support for reading octal signed bounds
  151. in twos complements, based on the size of the type.
  152. (read_type_number, read_cpp_abbrev, read_member_functions,
  153. read_cpp_abbrev, read_one_struct_field, read_baseclasses,
  154. read_struct_type, read_array_type, read_enum_type,
  155. read_sun_builtin_type, read_sun_floating_type): Update calls to
  156. read_huge_number.
  157. (read_type): Update call to read_range_type.
  158. 2004-12-13 Randolph Chung <tausq@debian.org>
  159. * hppa-hpux-tdep.c (internalize_hp_cxx_exception_support): Call
  160. solib_get_solib_by_pc method through target vector.
  161. (hppa_hpux_som_find_global_pointer): Call solib_get_got_by_pc
  162. method through target vector.
  163. 2004-12-13 Joel Brobecker <brobecker@gnat.com>
  164. * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Change
  165. parameter name to make it clear that we already have a next
  166. frame. Return the sigcontext from that next frame instead
  167. of the frame following it.
  168. 2004-12-13 Randolph Chung <tausq@debian.org>
  169. * Makefile.in (pa64solib_h, somsolib_h): Delete.
  170. (solib_pa64_h, solib_som_h): New.
  171. (HFILES_NO_SRCDIR, ALLDEPFILES): Replace somsolib.h with solib-som.h.
  172. (hppa-hpux-tdep.o, hpread.o): Update dependencies.
  173. (pa64solib.o, somsolib.o): Delete.
  174. (solib-pa64.o, solib-som.o): New.
  175. * hppa-hpux-tdep.c: Include new solib interfaces.
  176. (hppa_hpux_som_init_abi): Attach to SOM solib interface.
  177. (hppa_hpux_elf_init_abi): Attach to PA64 ELF solib interface.
  178. * hppa-tdep.c (internalize_unwinds): If solib_get_text_base method
  179. is available, use it to determine the base of unwind records.
  180. * hppa-tdep.h (gdbarch_tdep): Add new solib methods.
  181. * hpread.c: Replace somsolib.h with solib-som.h.
  182. (hpread_process_one_debug_symbol): Use target vector to get thread
  183. start address.
  184. * config/pa/hppa64.mt (TDEPFILES): Use new solib interface.
  185. * config/pa/hppahpux.mt (TDEPFILES): Likewise.
  186. * config/pa/hpux.mh (NATDEPFILES): Delete references to target objects.
  187. * config/pa/tm-hppah.h: Use new solib interface.
  188. 2004-12-13 Randolph Chung <tausq@debian.org>
  189. * tramp-frame.c (tramp_frame_sniffer): Allow frames with names or
  190. sections to be trampolines too.
  191. 2004-12-13 Ben Elliston <bje@au.ibm.com>
  192. * f-exp.y (typename): Remove unused nonterminal.
  193. (name): Likewise.
  194. 2004-12-12 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
  195. Committed by Andrew Cagney.
  196. * abug-rom.c, ada-lang.c, ada-typeprint.c, alpha-tdep.c: i18n
  197. markup.
  198. 2004-12-12 Andrew Cagney <cagney@gnu.org>
  199. * frame.c (get_prev_frame): When unwinding normal frames, check
  200. that the PC isn't zero.
  201. * hppa-tdep.c (hppa_stub_frame_unwind_cache): Delete check for a
  202. zero PC.
  203. * MAINTAINERS: Reword description of what "Target Instruction Set
  204. Architectures" covers.
  205. 2004-12-12 Mark Kettenis <kettenis@gnu.org>
  206. * hppa-hpux-nat.c (hppa_hpux_child_can_run): Tweak comment.
  207. 2004-12-11 Mark Kettenis <kettenis@gnu.org>
  208. * hppa-hpux-nat.c (ss_mpsfu_high): Remove define.
  209. (hppa_hpux_save_state_offset): New function, replacing variable
  210. with the same name.
  211. (hppa_cannot_fetch_register, hppa_cannot_store_register): Remove
  212. functions.
  213. (hppa_hpux_fetch_register): Don't call hppa_cannot_fetch_register.
  214. Use new hppa_hpux_save_state_offset function. Add special
  215. handling for handling 64-bit "flags" register.
  216. (hppa_hpux_store_register): Likewise.
  217. (hppa_hpux_child_can_run): Tweak comment.
  218. * inf-ttrace.c (inf_ttrace_him): Set TTEVT_BPT_SSTEP if available.
  219. (inf_ttrace_attach): Likewise.
  220. (inf_ttrace_resume_callback): New function.
  221. (inf_ttrace_resume): Don't use TT_PROC_CONTINUE. Iterate over all
  222. lwps and call inf_ttrace_resume_callback instead.
  223. (inf_ttrace_wait): Handle TTEVT_BPT_SSTEP.
  224. * inf-ttrace.c (_initialize_inf_ttrace): Unconditionially compile.
  225. 2004-12-10 Michael Snyder <msnyder@redhat.com>
  226. * mn10300-tdep.c: New file. This is a re-implementation of
  227. the mn10300 target back-end using the new frame api etc.
  228. * mn10300-tdep.h: New file.
  229. * config/mn10300/mn10300.mt: New file (or replace old file).
  230. * configure.tgt: Add mn10300 target.
  231. 2004-12-10 Mark Kettenis <kettenis@gnu.org>
  232. * configure.host (hppa*-*-hpux11*): Remove.
  233. * config/pa/hpux11.mh: Remove file.
  234. * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind_cache): Fix
  235. typo.
  236. 2004-12-10 Kris Warkentin <kewarken@qnx.com>
  237. * nto-tdep.h: Include osabi.h. Prototypes for generic Neutrino
  238. osabi sniffer, signal handling initializer, 'in_dynsym_resolve_code'
  239. function and nto_set_target function.
  240. (struct nto_target_ops): Put comments inline with struct. Add osabi
  241. sniffer hook. Redefine macros to permit testing/assignment. Remove
  242. nto_ prefix from members.
  243. * nto-tdep.c (nto_find_and_open_solib): Allocate all buffers
  244. dynamically to support arbitrary root paths. Check for basename of
  245. lib in search path and then check for absolute.
  246. (nto_in_dynsym_resolve_code): New function.
  247. (nto_core_sniffer): New function.
  248. (regset_core_fns): Register core sniffer.
  249. (nto_initialize_signals): New function.
  250. (_initialize_nto_tdep): Move signal initialization code to above to
  251. avoid initialization race conditions.
  252. (nto_set_target): New function.
  253. * nto-procfs.c: Minor formatting/indenting changes.
  254. (procfs_is_nto_target): New function.
  255. (procfs_open): Set nto_is_nto_target.
  256. (_initialize_procfs): Ditto. Remove notice_signals() call to avoid
  257. initialization race conditions.
  258. (procfs_create_inferior): Resume inferior after creation.
  259. * i386-nto-tdep.c: Declare i386_nto_target.
  260. (init_i386nto_ops): Initialize i386_nto_target instead of
  261. current_nto_target.
  262. (i386nto_init_abi): Initialize signals. Call nto_set_target. Set
  263. TARGET_SO_IN_DYNSYM_RESOLVE_CODE.
  264. (_initialize_i386nto_tdep): Call init_i386nto_ops. Register osabi
  265. sniffer.
  266. 2004-12-10 Mark Kettenis <kettenis@gnu.org>
  267. * hppa-hpux-tdep.c (child_enable_exception_callback): Use XMALLOC.
  268. (hppa_hpux_sigtramp_frame_unwind_cache): Use ARRAY_SIZE.
  269. (hppa_hpux_init_abi): Reformat long line.
  270. 2004-12-09 Mark Kettenis <kettenis@gnu.org>
  271. * hppa-hpux-tdep.c: Include "regset.h".
  272. (HPPA_HPUX_SS_WIDEREGS, HPPA_HPUX_SS_FLAGS_OFFSET)
  273. (HPPA_HPUX_SS_NARROW_OFFSET, HPPA_HPUX_SS_FPBLOCK_OFFSET)
  274. (HPPA_HPUX_SS_WIDE_OFFSET, HPPA_HPUX_SAVE_STATE_SIZE)
  275. (HPPA_HPUX_PA89_SAVE_STATE_SIZE): New defines.
  276. (hppa_hpux_supply_ss_narrow, hppa_hpux_supply_ss_fpblock)
  277. (hppa_hpux_supply_ss_wide, hppa_hpux_supply_save_state): New
  278. functions.
  279. (hppa_hpux_regset): New variable.
  280. (hppa_hpux_regset_from_core_section): New function.
  281. (hppa_hpux_init_abi): Set regset_from_core_section.
  282. (hppa_hpux_core_osabi_sniffer): New function.
  283. (_initialize_hppa_hpux_tdep): Register
  284. hppa_hpux_core_osabi_sniffer.
  285. * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
  286. * config/pa/hppahpux.mt (TDEPFILES): Add corelow.o.
  287. 2004-12-09 Randolph Chung <tausq@debian.org>
  288. * solib-pa64.c (pa64_relocate_section_addresses): Properly relocate
  289. text and data sections.
  290. (pa64_current_sos): Also include the dld in the list of current shared
  291. objects.
  292. (pa64_solib_get_solib_by_pc): Update comments.
  293. (pa64_solib_get_text_base): New function.
  294. (pa64_solib_select): Set solib_get_text_base method.
  295. 2004-12-08 Daniel Jacobowitz <dan@debian.org>
  296. * linux-thread-db.c (BUILD_THREAD): Delete.
  297. (thread_get_info_callback): Include LWP ID in thread ID.
  298. (thread_from_lwp, check_event, find_new_threads_callback): Likewise.
  299. (lwp_from_thread): Use the LWP ID from the thread ID.
  300. 2004-12-07 Randolph Chung <tausq@debian.org>
  301. * hppa-tdep.c (hppa_frame_prev_register_helper): Zero out the entire
  302. register for both 32- and 64-bit targets.
  303. 2004-12-07 Randolph Chung <tausq@debian.org>
  304. * frame.c (get_prev_frame): Don't terminate unwinding at main if we
  305. are unwinding through a dummy frame.
  306. 2004-12-07 Randolph Chung <tausq@debian.org>
  307. * hppa-tdep.h (gdbarch_tdep): Add unwind_adjust_stub method.
  308. * hppa-hpux-tdep.c (hppa_hpux_unwind_adjust_stub): New function.
  309. (hppa_hpux_init_abi) Set unwind_adjust_stub method.
  310. * hppa-tdep.c (hppa_frame_cache): Call unwind_adjust_stub method
  311. if defined.
  312. 2004-12-07 Randolph Chung <tausq@debian.org>
  313. * hppa-tdep.c (hppa_stub_Frame_unwind_cache): Stop unwinding if
  314. unwinding from a frame with pc == 0.
  315. (hppa_stub_frame_this_id): Likewise.
  316. (hppa_stub_frame_prev_register): Only provide real values if the frame
  317. cache is not NULL.
  318. 2004-12-07 Randolph Chung <tausq@debian.org>
  319. * solib-som.c: New file.
  320. * solib-som.h: New file.
  321. * solib-pa64.c: New file.
  322. * solib-pa64.h: New file.
  323. 2004-12-07 Mark Kettenis <kettenis@gnu.org>
  324. * Makefile.in (inf-ttrace.o): Fix typo.
  325. 2004-12-07 Jim Blandy <jimb@redhat.com>
  326. * remote.c (remote_threads_info, remote_current_thread): Use
  327. strtoul to parse thread ID numbers.
  328. 2004-12-07 Mark Kettenis <kettenis@gnu.org>
  329. * inf-ttrace.c: Include "gdbthread.h".
  330. (inf_ttrace_num_lwps): New variable.
  331. (inf_ttrace_num_lwps_in_syscall): Renamed from
  332. inf_ttrace_num_threads_in_syscall.
  333. (inf_ttrace_him): Track TTEVT_LWP_CREATE, TTEVT_LWP_EXIT and
  334. TTEVT_LWP_TERMINATE events.
  335. (inf_ttrace_create_inferior): Assert that INF_TTRACE_NUM_LWPS is
  336. zero.
  337. (inf_ttrace_mourn_inferior): Set INF_TTRACE_NUM_LWPS to zero.
  338. (inf_ttrace_attach): Assert that INF_TTRACE_NUM_LWPS is zero.
  339. Track TTEVT_LWP_CREATE, TTEVT_LWP_EXIT and TTEVT_LWP_TERMINATE
  340. events.
  341. (inf_ttrace_wait): Report status as TARGET_WAITKIND_SPURIOUS by
  342. default. Handle TTEVT_LWP_CREATE, TTEVT_LWP_EXIT and
  343. TTEVT_LWP_TERMINATE events.
  344. (inf_ttrace_thread_alive, inf_ttrace_pid_to_str): New functions.
  345. (inf_ttrace_target): Set to_thread_alive and to_pid_to_str.
  346. * Makefile.in (inf-ttrace.o): Update dependencies.
  347. * hppa-tdep.h (hppa_read_pc, hppa_write_pc, hppa_unwind_pc): New
  348. prototypes.
  349. * hppa-tdep.c (hppa_read_pc): Rename from hppa_target_read_pc.
  350. Make global. Remove HP-UX specific code. Use
  351. frame_unwind_register_unsigned instead of
  352. frame_unwind_register_signed.
  353. (hppa_write_pc): Rename from hppa_target_write_pc. Make global.
  354. Remove HP-UX specific code.
  355. (hppa_unwind_pc): Make global. Remove HP-UX specific code.
  356. (hppa_frame_prev_register_helper): Set "flags" register to zero
  357. for all unwound frames.
  358. (hppa_gdbarch_init): Adjust.
  359. * hppa-hpux-tdep.c (HPPA_HPUX_SS_INSYSCALL): New define.
  360. (hppa_hpux_read_pc, hppa_hpux_write_pc)
  361. (hppa_hpux_unwind_pc): New functions.
  362. (hppa_hpux_init_abi): Set read_pc, write_pc and unwind_pc.
  363. 2004-12-07 Andreas Schwab <schwab@suse.de>
  364. * main.c (long_options): Add entry for "-l".
  365. (print_gdb_help): Add line for -l option.
  366. * NEWS: Mention it.
  367. 2004-12-05 Randolph Chung <tausq@debian.org>
  368. * hppah-nat.c (store_inferior_registers): Rewrite logic to not use
  369. DEPRECATED_REGISTER_BYTE.
  370. 2004-12-05 Randolph Chung <tausq@debian.org>
  371. * hppa-tdep.c (unwind_command): Print the stub type for stub unwind
  372. records.
  373. 2004-12-05 Mark Kettenis <kettenis@gnu.org>
  374. * somsolib.c [PA_SOM_ONLY] (no_shared_libraries): New function.
  375. * config/pa/hppahpux.mt (TDEPFILES): Remove solib.o.
  376. * hppa-hpux-tdep.c: Update copyright notice and year.
  377. 2004-12-05 Richard Earnshaw <rearnsha@arm.com>
  378. * doublest.c (FLOATFORMAT_LARGEST_BYTES): New define.
  379. (get_field, put_field): Assert that the format is one we can handle.
  380. Simplify logic accordingly.
  381. (floatformat_normalize_byteorder): New function.
  382. (convert_floatformat_to_doublest): Use floatformat_normalize_byteorder
  383. to normalize and select modified byte order. Pass modified byte order
  384. to get_field.
  385. (floatformat_is_negative, floatformat_is_nan, floatformat_mantissa):
  386. Likewise.
  387. (convert_doublest_to_floatformat): Select an appropriate intermediate
  388. byte order if necessary. Always convert to the final format before
  389. returning.
  390. 2004-12-04 Daniel Jacobowitz <dan@debian.org>
  391. PR tui/1703
  392. * linux-nat.c (linux_tracefork_child): Use _exit instead of exit.
  393. Suggested by Joshua Neuheisel.
  394. 2004-12-03 Randolph Chung <tausq@debian.org>
  395. * gdbarch.sh (instruction_nullified): Delete.
  396. * gdbarch.c: Regenerate.
  397. * gdbarch.h: Regenerate.
  398. * hppa-tdep.c (hppa_target_read_pc): Adjust pc if instruction is
  399. nullified.
  400. (hppa_unwind_pc): Likewise.
  401. (hppa_instruction_nullified): Delete.
  402. (hppa_gdbarch_init): Don't set instruction_nullified method.
  403. * infrun.c (infwait_states): Remove infwait_nullified_state.
  404. (handle_inferior_event): Remove handling of infwait_nullified_state.
  405. Remove handling of nullified instructions.
  406. 2004-12-03 Mark Kettenis <kettenis@gnu.org>
  407. * inf-ttrace.c: Include <sys/mman.h>.
  408. (struct inf_ttrace_page): New.
  409. (struct inf_ttrace_page_dict): New.
  410. (inf_ttrace_num_threads_in_syscall)
  411. (inf_ttrace_reenable_page_protections): New variables.
  412. (inf_ttrace_enable_syscall_events)
  413. (inf_ttrace_disable_syscall_events, inf_ttrace_get_page)
  414. (inf_ttrace_add_page, inf_ttrace_insert_page)
  415. (inf_ttrace_remove_page, inf_ttrace_mask_page_protections)
  416. (inf_ttrace_enable_page_protections)
  417. (inf_ttrace_disable_page_protections)
  418. (inf_ttrace_insert_watchpoint, inf_ttrace_remove_watchpoint)
  419. (inf_ttrace_can_use_hw_breakpoint)
  420. (inf_ttrace_region_size_ok_for_hw_watchpoint)
  421. (inf_ttrace_stopped_by_watchpoint): New functions.
  422. (inf_ttrace_him): Remove unsused varaible `tts'.
  423. (inf_ttrace_create_inferior): Add assertionts.
  424. (inf_ttrace_mourn_inferior): Clear page dictionary.
  425. (inf_ttrace_attach): Set initial event mask.
  426. (inf_ttrace_detach): Reset number of threads in system call.
  427. (inf_ttrace_wait): Deal with system call events.
  428. (inf_ttrace_target): Initialize "hardware" watchpoint-related
  429. parts of the target vector.
  430. (_initialize_inf_ttrace): New prototype and function.
  431. * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Use ULONGEST as
  432. type of `gp' variable.
  433. 2004-12-03 Richard Sandiford <rsandifo@redhat.com>
  434. * README: Remove config.if from directory listing.
  435. 2004-12-01 Joel Brobecker <brobecker@gnat.com>
  436. * alpha-tdep.c (alpha_register_name): Add comment.
  437. (alpha_cannot_fetch_register): Exclude registers numbers which
  438. are no longer used from the list of registers that can be fetched.
  439. (alpha_cannot_store_register): Exclude registers numbers which
  440. are no longer used from the list of registers that can be stored.
  441. * alpha-nat.c (fetch_osf_core_registers): Add missing value in
  442. core_reg_mapping array.
  443. 2004-12-01 Joel Brobecker <brobecker@gnat.com>
  444. * alpha-tdep.c (alpha_heuristic_frame_prev_register): Fetch
  445. the register value from the correct frame.
  446. 2004-11-30 Randolph Chung <tausq@debian.org>
  447. * hppa-linux-tdep.c (insns_match_pattern_relaxed): New function.
  448. (hppa_linux_in_dyncall): Check that we are inside the range of
  449. $$dyncall, not necessarily at the first insn.
  450. (hppa_linux_in_solib_call_trampoline): Identify a trampoline
  451. even if the pc does not point to the first insn of the trampoline.
  452. 2004-11-30 Randolph Chung <tausq@debian.org>
  453. * breakpoint.c (break_at_finish_command): Delete.
  454. (break_at_finish_command_1): Delete.
  455. (break_at_finish_at_depth_command): Delete.
  456. (break_at_finish_at_depth_command_1): Delete.
  457. (tbreak_at_finish_command): Delete.
  458. * hppa-tdep.c (_initialize_hppa_tdep): Remove deprecated xbreak, tbreak
  459. and bx commands.
  460. 2004-11-30 Andrew Cagney <cagney@gnu.org>
  461. * config/nm-gnu.h: Delete file.
  462. * config/i386/nm-i386gnu.h: Inline "config/nm-gnu.h".
  463. * config/nm-sysv4.h: Delete file.
  464. * config/i386/nm-i386v4.h: Inline "config/nm-sysv4.h".
  465. * config/i386/nm-i386v42mp.h: Inline "config/nm-sysv4.h".
  466. * config/i386/nm-i386sol2.h: Inline "config/nm-sysv4.h".
  467. * config/ia64/nm-aix.h: Inline "config/nm-sysv4.h".
  468. * config/mips/nm-irix5.h: Inline "config/nm-sysv4.h".
  469. 2004-11-29 Andrew Cagney <cagney@gnu.org>
  470. * MAINTAINERS: Add Randolph Chung (pa), Jeff Johnston (ia64), Kei
  471. Sakamoto (m32r), Joel Brobecker (mips), and Ulrich Weigand (s390)
  472. as can-commit architecture developers.
  473. 2004-11-29 Mark Kettenis <kettenis@gnu.org>
  474. * sparc-tdep.c (X_RS1, X_SIMM13): New macros.
  475. (sparc32_skip_prologue): Skip instructions that store arguments in
  476. registers into their corresponding stack slots.
  477. * config/m68k/nbsdaout.mh (NAT_FILE): Set to solib.h instead of
  478. tm-solib.h.
  479. * config/m68k/obsd.mh (NAT_FILE): Likewise.
  480. * sparc-tdep.h (sparc32nbsd_elf_init_abi): New prototype.
  481. * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Make global.
  482. * sparcobsd-tdep.c (sparc32obsd_init_abi): Call
  483. sparc32nbsd_elf_init_abi. Remove duplicate code.
  484. * config/sparc/nbsdaout.mh (NAT_FILE): Set to solib.h.
  485. * config/sparc/nbsdelf.mh (NAT_FILE): Remove variable.
  486. * config/sparc/nm-nbsd.h: Remove file.
  487. * config/sparc/nm-nbsdaout.h: Remove file.
  488. * sparc-nat.c (inf_ptrace_xfer_partial): New variable.
  489. (sparc_xfer_partial): New function.
  490. (sparc_target): Save value of to_xfer_partial from ptrace vector.
  491. Set to_xfer_partial.
  492. * fork-child.c (fork_inferior): Fork instead of vfork if
  493. PRE_TRACE_FUN is non-null.
  494. 2004-11-24 Fred Fish <fnf@specifixinc.com>
  495. * rs6000-tdep.c (skip_prologue): Use line table info to skip over
  496. compiler generated function calls made as part of a prologue.
  497. 2004-11-23 Mark Kettenis <kettenis@gnu.org>
  498. * inf-ttrace.c: New file.
  499. * inf-ttrace.h: New file.
  500. * hppa-hpux-nat.c [HAVE_TTRACE]: Include <sys/ttrace>.
  501. Include "inf-ttrace.h".
  502. (ss_mpsfu_high): Define to ss_tlsp if necessary.
  503. (hppa_hpux_fetch_register, hppa_hpux_store_register): Use
  504. ptid_get_pid instead of PIDGET. Modify to handle both ttrace and
  505. ptrace systems.
  506. (_initialize_hppa_hpux_nat) [HAVE_TTRACE]: Call inf_ttrace_traget
  507. instead of inf_ptrace_target.
  508. * config/pa/hpux.mh (NATDEPFILES): Add inf-ttrace.o.
  509. * Makefile.in (inf_ttrace_h): New variable.
  510. (hppa-hpux-nat.o): Update dependency.
  511. (inf-ttrace.o): New dependency.
  512. (ALLDEPFILES): Add inf-ptrace.c and inf-ttrace.c.
  513. 2004-11-23 Randolph Chung <tausq@debian.org>
  514. * arch-utils.c (generic_instruction_nullified): New.
  515. * arch-utils.h (generic_instruction_nullified): New.
  516. * gdbarch.sh (instruction_nullified): New method.
  517. * gdbarch.c: Regenerate.
  518. * gdbarch.h: Regenerate.
  519. * infrun.c (INSTRUCTION_NULLIFIED): Delete.
  520. (handle_inferior_event): Replace INSTRUCTION_NULLIFIED with calls to
  521. new gdbarch method.
  522. * config/pa/tm-hppa.h (INSTRUCTION_NULLIFIED): Delete definition.
  523. * hppa-tdep.c (hppa_instruction_nullified): Remove prototype and make
  524. static. Rewrite to work directly off the passed regcache.
  525. (hppa_gdbarch_init): Set instruction_nullified method.
  526. 2004-11-23 Joel Brobecker <brobecker@gnat.com>
  527. * sparc-tdep.c (sparc_is_unimp_insn): New function.
  528. (sparc32_frame_cache): For functions where there is no debugging
  529. information to help us determine whether it's a struct-return
  530. function or not, fallback on checking whether the instruction
  531. at the return address is an "unimp" instruction or not.
  532. 2004-11-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
  533. * MAINTAINERS: Add myself to write after approval section.
  534. * hppa-hpux-nat.c (child_suppress_run): Add variable to allow
  535. hpux-thread.c to suppress children from running.
  536. (hppa_hpux_child_can_run): New function.
  537. (_initialize_hppa_hpux_nat): Use hppa_hpux_child_can_run.
  538. * hpux-thread.c: Include string.h and hppa-tdep.h.
  539. (FLAGS_REGNUM, SP_REGNUM, PC_REGNUM): Rename to HPPA_FLAGS_REGNUM,
  540. HPPA_SP_REGNUM and HPPA_PCOQ_HEAD_REGNUM, respectively.
  541. (hpux_thread_store_registers): Replace deprecated_registers with
  542. calls to regcache_raw_read.
  543. * config/pa/hpux11.mh, config/pa/hpux11w.mh: Delete HOST_IPC.
  544. 2004-11-21 Mark Kettenis <kettenis@gnu.org>
  545. * sparc64fbsd-nat.c: Update copyright year.
  546. (_initialize_sparc64fbsd_nat): Construct and add target vector.
  547. * config/sparc/fbsd.mh (NATDEPFILES): Remove infptrace.o,
  548. inftarg.o.
  549. 2004-11-21 Daniel Jacobowitz <dan@debian.org>
  550. * sparc-tdep.c (sparc_software_single_step): Handle stepping to NULL.
  551. 2004-11-21 Daniel Jacobowitz <dan@debian.org>
  552. * linux-nat.c (my_waitpid): New function.
  553. (linux_test_for_tracefork): Make more robust and verbose. Take
  554. an ORIGINAL_PID argument and test for PTRACE_SETOPTIONS first.
  555. (linux_supports_tracefork, linux_supports_tracevforkdone): Take a PID
  556. argument. Update calls to linux_test_for_tracefork.
  557. (linux_enable_event_reporting, child_follow_fork)
  558. (child_insert_fork_catchpoint, child_insert_vfork_catchpoint)
  559. (child_insert_exec_catchpoint): Update calls to
  560. linux_supports_tracefork and linux_supports_tracevforkdone.
  561. 2004-11-21 Daniel Jacobowitz <dan@debian.org>
  562. * valarith.c (value_subscript): Copy VALUE_FRAME_ID.
  563. (value_subscripted_rvalue): Likewise.
  564. * valops.c (search_struct_field, value_slice): Likewise.
  565. 2004-11-21 Mark Kettenis <kettenis@gnu.org>
  566. * inf-ptrace.c: Don't include "regcache.h" and "gdbcmd.h".
  567. Reorder includes a bit. Fix comment.
  568. * Makefile.in (inf-ptrace.o): Update dependencies.
  569. 2004-11-21 Andreas Schwab <schwab@suse.de>
  570. * m68klinux-tdep.c: Include "glibc-tdep.h" and "solib-svr4.h".
  571. (m68k_linux_init_abi): Set solib_svr4_fetch_link_map_offsets to
  572. svr4_ilp32_fetch_link_map_offsets and gdbarch_skip_solib_resolver
  573. to glibc_skip_solib_resolver.
  574. * config/m68k/linux.mt (TDEPFILES): Add glibc-tdep.o. Remove
  575. solib-legacy.o.
  576. * Makefile.in (m68klinux-tdep.o): Update dependencies.
  577. 2004-11-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
  578. * infttrace.h (ttrace_write_reg_64): Add prototype.
  579. * hppah-nat.c (store_inferior_registers): Fix warning from ambiguous
  580. expression.
  581. (store_inferior_registers): Correct formatting. Replace uses of
  582. deprecated_registers with calls to regcache_raw_read,
  583. regcache_raw_write_part and regcache_raw_read_part.
  584. 2004-11-21 Mark Kettenis <kettenis@gnu.org>
  585. * config/pa/hppahpux.mh: Remove file.
  586. * config/pa/hpux1020.mh: Remove file.
  587. 2004-11-20 Andreas Schwab <schwab@suse.de>
  588. * configure.host: Set host floatformat for m68k.
  589. 2004-11-20 Eli Zaretskii <eliz@gnu.org>
  590. * config/djgpp/fnchange.lst: Resolve file-name clash between
  591. hppa-hpux-tdep.c and the new hppa-hpux-nat.c.
  592. 2004-11-20 Mark Kettenis <kettenis@gnu.org>
  593. * hppa-hpux-nat.c: New file.
  594. * config/pa/hpux.mh (NATDEPFILES): New file.
  595. * Makefile.in (ALLDEPFILES): Add hppa-hpux-nat.c.
  596. (hppa-hpux-nat.o): New dependency.
  597. * configure.host: Remove hppa*-*-hpux10.20.
  598. (hppa*-*-hpux*, hppa*-*-hiux*): Set gdb_host to hpux.mh.
  599. * inf-ptrace.c: Fix coding style.
  600. * gdb_ptrace.h [PTRACE_TYPE_ARG5] (ptrace): New macro.
  601. * infptrace.c (call_ptrace): Simply call ptrace with four
  602. arguments.
  603. * dbxread.c (process_one_symbol): Fix a few coding standard
  604. issues. Improve code formatting.
  605. * dbxread.c: Include "gdb_string.h".
  606. (record_minimal_symbol, read_ofile_symtab): Replace
  607. DEPRECATED_STREQ and DEPRECATED_STREQN with strcmp and strncmp.
  608. * Makefile.in (dbxread.o): Update dependencies.
  609. * dwarf2-frame.c (read_encoded_value): Correctly calculate number
  610. of bytes read for aligned LEB128 encodings.
  611. 2004-11-19 Mark Kettenis <kettenis@gnu.org>
  612. * bsd-kvm.c (bsd_kvm_pcb_cmd): Cast return value from
  613. parse_and_eval_address to u_long before converting it to a pointer
  614. type.
  615. * i386fbsd-nat.c (_initialize_i386fbsd_nat): Change type of
  616. ps_strings from int to u_long.
  617. * i386obsd-nat.c (_initialize_i386obsd_nat): Cast _ps.val to
  618. u_long instead of CORE_ADDR.
  619. 2004-11-18 Mark Kettenis <kettenis@gnu.org>
  620. * dbxread.c (process_one_symbol): Do not adjust address of first
  621. N_SLINE stab for a function for code generated by non-GCC
  622. compilers.
  623. 2004-11-18 Kevin Buettner <kevinb@redhat.com>
  624. * solib-null.c: New file.
  625. 2004-11-17 Andrew Cagney <cagney@gnu.org>
  626. * MAINTAINERS: Drop MIPS and remote.
  627. 2004-11-15 Andrew Cagney <cagney@gnu.org>
  628. * findvar.c (value_of_register): Set the frame ID.
  629. * value.c (value_primitive_field): Copy the frame ID.
  630. * valops.c (value_assign): Simplify lval_register case, there's
  631. always a frame.
  632. 2004-11-14 Daniel Jacobowitz <dan@debian.org>
  633. * Makefile.in (mips-linux-tdep.o): Update dependencies.
  634. * mips-linux-tdep.c: Include "regcache.h".
  635. (fill_fpregset, mips64_fill_fpregset): Use regcache_raw_collect.
  636. 2004-11-14 Daniel Jacobowitz <dan@debian.org>
  637. * Makefile.in (linux-thread-db.o): Fix typo in last change.
  638. 2004-11-14 Daniel Jacobowitz <dan@debian.org>
  639. * linux-thread-db.c: New file, renamed from thread-db.c.
  640. * thread-db.c: Remove.
  641. * Makefile.in (linux-thread-db.o): Rename from thread-db.o rule.
  642. * config/alpha/alpha-linux.mh (NATDEPFILES): Rename thread-db.o
  643. to linux-thread-db.o.
  644. * config/arm/linux.mh (NATDEPFILES): Likewise.
  645. * config/i386/linux.mh (NATDEPFILES): Likewise.
  646. * config/i386/linux64.mh (NATDEPFILES): Likewise.
  647. * config/ia64/linux.mh (NATDEPFILES): Likewise.
  648. * config/m32r/linux.mh (NATDEPFILES): Likewise.
  649. * config/m68k/linux.mh (NATDEPFILES): Likewise.
  650. * config/mips/linux.mh (NATDEPFILES): Likewise.
  651. * config/pa/linux.mh (NATDEPFILES): Likewise.
  652. * config/powerpc/linux.mh (NATDEPFILES): Likewise.
  653. * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
  654. * config/s390/s390.mh (NATDEPFILES): Likewise.
  655. * config/sparc/linux.mh (NATDEPFILES): Likewise.
  656. * config/sparc/linux64.mh (NATDEPFILES): Likewise.
  657. 2004-11-13 Andrew Cagney <cagney@gnu.org>
  658. * config/i386/i386lynx.mh: Delete file.
  659. * config/i386/i386lynx.mt: Delete file.
  660. * Makefile.in (ALLDEPFILES, i386ly-tdep.o): Remove i386ly-tdep.c.
  661. * i386ly-tdep.c: Delete.
  662. * config/tm-lynx.h: Delete, inline contents ...
  663. * config/rs6000/tm-rs6000ly.h: ... here.
  664. * config/tm-sysv4.h: Delete file, inlining contents.
  665. * config/ia64/tm-aix.h (SKIP_TRAMPOLINE_CODE): Define.
  666. * config/tm-linux.h (SKIP_TRAMPOLINE_CODE): Define.
  667. * config/tm-nto.h (SKIP_TRAMPOLINE_CODE): Define.
  668. * regcache.h (deprecated_register_valid): Delete.
  669. (deprecated_registers): Delete.
  670. * regcache.c (deprecated_register_valid): Delete.
  671. (deprecated_registers): Delete.
  672. (deprecated_read_register_byte, _initialize_regcache)
  673. (deprecated_write_register_bytes, build_regcache): Update.
  674. * config/powerpc/ppc-sim.mt (TDEPFILES): Remove ppc-bdm.o and
  675. remote-sds.o.
  676. * config/powerpc/ppc-eabi.mt (TDEPFILES): Ditto.
  677. * config/mips/embed.mt (TDEPFILES): Remove remote-mips.o.
  678. * NEWS: List h8300*-*-*, mcore-*-*, mn10300-*-*, ns32k-*-*, and
  679. v850-*-* under removed.
  680. * configure.host: Delete ns32k-*-netbsd*.
  681. * configure.tgt: Delete h8300-*-*, mcore*-*-*, mn10300-*-*,
  682. ns32k-*-netbsd*, and v850*-*-*.
  683. * MAINTAINERS: Mark h8300, mcore, mn10300, ns32k, v850 as
  684. "Deleted"
  685. * config/h8300/tm-h8300.h, config/h8300/h8300.mt: Delete.
  686. * h8300-tdep.c, config/mcore/mcore.mt, mcore-rom.c: Delete.
  687. * mcore-tdep.c, config/mn10300/mn10300.mt: Delete.
  688. * mn10300-tdep.c, config/ns32k/nbsdaout.mh: Delete.
  689. * config/ns32k/nbsdaout.mt, config/ns32k/nm-nbsd.h: Delete.
  690. * config/ns32k/nm-nbsdaout.h, config/ns32k/tm-ns32k.h: Delete.
  691. * ns32knbsd-nat.c, ns32knbsd-tdep.c, ns32k-tdep.c: Delete.
  692. * ns32k-tdep.h, config/v850/v850.mt, v850ice.c: Delete.
  693. * v850-tdep.c: Delete.
  694. 2004-11-13 Joel Brobecker <brobecker@gnat.com>
  695. * irix5-nat.c (fetch_core_registers): Replace use of
  696. deprecated_registers by equivalent code.
  697. 2004-11-13 Joel Brobecker <brobecker@gnat.com>
  698. * irix5-nat.c (fill_gregset): Replace use of deprecated_registers
  699. with equivalent code.
  700. (fill_fpregset): Likewise.
  701. 2004-11-13 Andrew Cagney <cagney@gnu.org>
  702. * MAINTAINERS: Do not list "Deleted" architectures.
  703. * configure.tgt: Delete i[34567]86-*-vxworks*, m68*-netx-*,
  704. m68*-*-vxworks*, mips*-*-vxworks*, powerpc-*-vxworks*, and
  705. sparc-*-vxworks*.
  706. * NEWS: Mention that vxworks was deleted.
  707. * config/m68k/tm-vx68.h, config/mips/tm-vxmips.h: Delete.
  708. * config/powerpc/tm-vxworks.h, config/tm-vxworks.h: Delete.
  709. * config/i386/vxworks.mt, config/m68k/vxworks68.mt: Delete.
  710. * config/mips/vxmips.mt, config/powerpc/vxworks.mt: Delete.
  711. * config/sparc/vxworks.mt, vx-share/dbgRpcLib.h: Delete.
  712. * vx-share/ptrace.h, vx-share/regPacket.h: Delete.
  713. * vx-share/vxTypes.h, vx-share/vxWorks.h: Delete.
  714. * vx-share/wait.h, vx-share/xdr_ld.c: Delete.
  715. * vx-share/xdr_ld.h, vx-share/xdr_ptrace.c: Delete.
  716. * vx-share/xdr_ptrace.h, vx-share/xdr_rdb.c: Delete.
  717. * vx-share/xdr_rdb.h, remote-vxsparc.c: Delete.
  718. * remote-vxmips.c, remote-vx.c: Delete.
  719. * remote-vx68.c: Delete.
  720. * config/m68k/tm-os68k.h: Remove reference to VxWorks.
  721. * config/m68k/os68k.mt, ada-lang.h: Ditto.
  722. * Makefile.in (HFILES_NO_SRCDIR, ALLDEPFILES, remote-vx68.o)
  723. (remote-vx.o, remote-vxmips.o, remote-vxsparc.o): Delete vx files.
  724. 2004-11-13 Eli Zaretskii <eliz@gnu.org>
  725. * config/i386/xm-go32.h: Don't include fopen-bin.h.
  726. Don't define CRLF_SOURCE_FILES and DIRNAME_SEPARATOR.
  727. * source.c (OPEN_MODE, FDOPEN_MODE): Remove the definitions in the
  728. branch that doesn't define CRLF_SOURCE_FILES; always use
  729. binary-mode open.
  730. (print_source_lines_base, forward_search_command)
  731. (reverse_search_command): Enable the code that accepts DOS-style
  732. CRLF line endings on all platforms (this removes the need for
  733. CRLF_SOURCE_FILES).
  734. * defs.h: Fix wording of the comment before FOPEN_RB.
  735. (DIRNAME_SEPARATOR) [__MSDOS__]: Define to ';'.
  736. * config/djgpp/fnchange.lst: Group renames for opcode directory
  737. together.
  738. * config/djgpp/djconfig.sh: Replace file names that don't exist
  739. anymore with existing files, for checking the unpacked
  740. distribution.
  741. * config/djgpp/config.sed (am_cv_exeext, lt_cv_sys_max_cmd_len):
  742. Export pre-cooked values in configure-* targets that begin with
  743. "@test -f stage_last".
  744. 2004-11-12 Andrew Cagney <cagney@gnu.org>
  745. * defs.h (enum lval_type): Delete lval_reg_frame_relative.
  746. * value.h (struct value): Update comment.
  747. * valops.c (value_assign): Fold lval_reg_fame_relative into
  748. lval_register.
  749. * findvar.c (value_from_register, locate_var_value): Ditto.
  750. 2004-11-12 Randolph Chung <tausq@debian.org>
  751. * config/tm/tm-hppa.h (SYMBOLS_CAN_START_WITH_DOLLAR): Remove.
  752. * parse.c (SYMBOLS_CAN_START_WITH_DOLLAR): Remove.
  753. (write_exp_msymbol): Remove conditional check for symbols starting
  754. with $. Update comments.
  755. 2004-11-12 Randolph Chung <tausq@debian.org>
  756. * pa64solib.c (pa64_solib_thread_start_addr): Rename from
  757. so_lib_thread_start_addr.
  758. * pa64solib.h (so_list): Forward declare.
  759. (pa64_solib_thread_start_addr): Prototype.
  760. * somsolib.c (SHL_LOAD, SHL_UNLOAD): Define if not already defined.
  761. (no_shared_libraries): Remove.
  762. (som_solib_thread_start_addr): Rename from so_lib_thread_start_addr.
  763. * somsolib.h (som_solib_thread_start_addr): Likewise; prototype.
  764. * hpread.c (hpread_process_one_debug_symbol): Use either the som or
  765. the elf solib handler to find the start address.
  766. * config/pa/hppahpux.mh (NATDEPFILES): Move target-specific support
  767. files to the target makefile.
  768. * config/pa/hpux1020.mh (NATDEPFILES): Likewise.
  769. * config/pa/hpux11.mh (NATDEPFILES): Likewise.
  770. * config/pa/hpux11w.mh (NATDEPFILES): Likewise.
  771. * config/pa/hppa64.mt (TDEPFILES): Put target-specific support
  772. files for symbol reading and shared library handling here.
  773. * config/pa/hppahpux.mt (TDEPFILES): Likewise.
  774. (PA_SOM_ONLY): Define so we can build a 32-bit SOM only target
  775. without bringing in 64-bit support.
  776. 2004-11-12 Andrew Cagney <cagney@gnu.org>
  777. * sparc-tdep.c: Replace VALUE_TYPE with value_type.
  778. * v850-tdep.c, sparc64-tdep.c, sh-tdep.c: Ditto.
  779. * sh64-tdep.c, s390-tdep.c, mcore-tdep.c: Ditto.
  780. * h8300-tdep.c, arm-linux-tdep.c, amd64-tdep.c: Ditto.
  781. * hppa-tdep.c, mips-tdep.c, m88k-tdep.c: Ditto.
  782. * m68hc11-tdep.c, m32r-tdep.c, ia64-tdep.c: Ditto.
  783. * frv-tdep.c, cris-tdep.c, avr-tdep.c, alpha-tdep.c: Ditto.
  784. Merge VALUE_REGNO and VALUE_FRAME_REGNUM into VALUE_REGNUM.
  785. * value.h (VALUE_REGNO, VALUE_FRAME_REGNUM): Delete.
  786. (VALUE_REGNUM): Define.
  787. (struct value): Delete location.regnum, rename "regno" to
  788. "regnum".
  789. * value.c, valops.c, valarith.c, findvar.c: Update.
  790. * value.h (VALUE_TYPE, VALUE_NEXT, VALUE_OFFSET, VALUE_BITSIZE)
  791. (VALUE_BITPOS): Delete.
  792. (value_type, value_offset, value_bitsize, value_bitpos): Declare.
  793. * value.c (value_type, value_offset, value_bitpos)
  794. (value_bitsize): New functions. Update references.
  795. * arm-tdep.c, gnu-v3-abi.c, hpacc-abi.c, gnu-v2-abi.c: Update.
  796. * f-valprint.c, cp-valprint.c, c-valprint.c: Update.
  797. * ada-valprint.c, typeprint.c, scm-valprint.c, scm-exp.c: Update.
  798. * p-valprint.c, jv-valprint.c, jv-lang.c, varobj.c: Update.
  799. * objc-lang.c, ada-lang.c, std-regs.c, stack.c: Update.
  800. * infcall.c, linespec.c, printcmd.c, valarith.c: Update.
  801. * valops.c, eval.c, findvar.c, breakpoint.c: Update.
  802. * tracepoint.c, ax-gdb.c, mi/mi-main.c, cli/cli-dump.c:
  803. * rs6000-tdep.c, ppc-sysv-tdep.c: Update.
  804. 2004-11-12 Andrew Cagney <cagney@gnu.org>
  805. * cris-tdep.c (cris_register_offset): Delete, never called.
  806. (cris_spec_reg_applicable): Delete cris_ver_sim.
  807. * MAINTAINERS: List d10v as OBSOLETE.
  808. * rdi-share/host.h (FOPEN_WB): #ifdef 0 out definitions of
  809. FOPEN_WB et.al., defined by "fopen-bin.h".
  810. 2004-11-12 Randolph Chung <tausq@debian.org>
  811. * hppa-tdep.c (hppa_skip_permanent_breakpoint): Move definition ...
  812. * hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): ... to here.
  813. * config/pa/tm-hppa.h (SKIP_PERMANENT_BREAKPOINT): Move definition ...
  814. * config/pa/tm-hppah.h (SKIP_PERMANENT_BREAKPOINT): ... to here.
  815. 2004-11-12 Mark Kettenis <kettenis@jive.nl>
  816. * tui/tui-io.c: Don't include "terminal.h".
  817. * Makefile.in (tui-io.o): Update dependencies.
  818. 2004-11-12 Kei Sakamoto <sakamoto.kei@renesas.com>
  819. * Makefile.in (m32r-linux-tdep.o): Update dependencies.
  820. * m32r-linux-tdep.c (m32r_linux_init_abi): Call
  821. set_gdbarch_regset_from_core_section for core file support.
  822. (m32r_linux_supply_gregset, m32r_linux_regset_from_core_section):
  823. New functions.
  824. 2004-11-11 Randolph Chung <tausq@debian.org>
  825. * hppa-tdep.c (skip_prologue_hard_way): Make static, add
  826. stop_after_branch parameter and use it to determine if we should look
  827. at the delay slot of the first branch insn to find prologue insns.
  828. (hppa_skip_prologue): Update comment and call to skip_prologue_hard_way.
  829. (hppa_frame_cache): Likewise.
  830. 2004-11-11 Randolph Chung <tausq@debian.org>
  831. * hppa-tdep.c (hppa_frame_cache): Properly handle the frame pointer
  832. register so that it can be unwound from anywhere in the prologue.
  833. 2004-11-10 msnyder <msnyder@redhat.com>
  834. * rs6000-tdep.c (skip_prologue): After saving lr_offset,
  835. must invalidate lr_reg (so we don't try to save it again).
  836. Ditto for cr_offset and cr_reg.
  837. 2004-11-05 Jon Beniston <jon@beniston.com>
  838. Committed by Andrew Cagney.
  839. * remote.c (putpkt_binary) Fix PR gdb/1806. Send an ACK
  840. when an unexpected packet is received, as the target stubs
  841. continually retransmit the same packet until ACKed.
  842. 2004-11-10 Randolph Chung <tausq@debian.org>
  843. * frame.c (get_prev_frame): Use get_frame_type to retrieve the
  844. frame's type.
  845. 2004-11-10 Randolph Chung <tausq@debian.org>
  846. * blockframe.c (inside_entry_func): Move to .....
  847. * frame.c (inside_entry_func): ... here, and make static.
  848. (backtrace_past_entry): New flag.
  849. (get_prev_frame): Stop backtrace at the entry function if enabled
  850. by flag. Update comments.
  851. (_initialize_frame): Add command to set backtrace_past_entry flag.
  852. * defs.h (inside_entry_func): Remove prototype.
  853. 2004-11-10 Mark Kettenis <kettenis@gnu.org>
  854. * dwarf2read.c: Fix formatting.
  855. 2004-11-10 Andrew Cagney <cagney@gnu.org>
  856. * value.h (COERCE_REF, COERCE_ARRAY, COERCE_NUMBER, COERCE_ENUM)
  857. (coerce_ref, coerce_array, coerce_number, coerce_enum): Replace
  858. macros with function declarations.
  859. * value.c (coerce_ref, coerce_array, coerce_number)
  860. (coerce_enum): New functions.
  861. (value_as_long, value_as_address): Update.
  862. * ada-lang.c (ada_coerce_ref, ada_value_binop)
  863. (ada_evaluate_subexp, ada_value_assign, ada_value_struct_elt): Update.
  864. * jv-lang.c (evaluate_subexp_java): Update.
  865. * valarith.c (value_less, value_neg, value_complement)
  866. (value_binop, value_add, value_subscript, value_x_binop)
  867. (value_logical_not, value_sub): Update.
  868. * valops.c (check_field, value_struct_elt, value_ind)
  869. (value_find_oload_method_list, value_cast, value_assign): Update.
  870. * eval.c (evaluate_subexp_standard): Update.
  871. 2004-11-10 Mark Kettenis <kettenis@gnu.org>
  872. * mips-tdep.c (mips32_relative_offset): Change return type to
  873. LONGEST, change argument type to ULONGEST. Fix sign-extension.
  874. 2004-11-10 Randolph Chung <tausq@debian.org>
  875. * hppa-tdep.c (hppa32_register_name, hppa64_register_name): Make static.
  876. (hppa32_push_dummy_call, hppa64_push_dummy_call): Likewise.
  877. (hppa_fetch_pointer_argument): Likewise.
  878. (hppa_frame_cache): Use safe_frame_unwind_memory instead of
  879. deprecated_read_memory_nobpt.
  880. (_initialize_hppa_tdep): Replace deprecated_add_show_from_set/
  881. add_set_cmd sequence with add_setshow_boolean_cmd.
  882. 2004-11-09 Andrew Cagney <cagney@gnu.org>
  883. GDB 6.3 released from GDB 6.3 branch.
  884. 2004-11-09 Andrew Cagney <cagney@gnu.org>
  885. * values.c: Rename to ...
  886. * value.c: ..., new file.
  887. * Makefile.in: Update.
  888. 2004-11-09 Daniel Jacobowitz <dan@debian.org>
  889. * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Correct allocated
  890. size.
  891. 2004-11-09 Andrew Cagney <cagney@gnu.org>
  892. * TODO: Delete.
  893. * value.h (struct value): Delete field bfd_section.
  894. (VALUE_BFD_SECTION): Delete macro.
  895. (COERCE_REF): Update.
  896. (value_at, value_at_lazy): Delete asection parameter.
  897. * printcmd.c (print_formatted, x_command): Update.
  898. (do_examine): Delete asection parameter.
  899. (next_section): Delete variable.
  900. * valops.c (value_cast, value_at, value_at_lazy)
  901. (value_coerce_function, value_addr, value_ind, value_string)
  902. (find_rt_vbase_offset, value_full_object): Update.
  903. * hpacc-abi.c (hpacc_virtual_fn_field)
  904. (hpacc_value_rtti_type): Update.
  905. * gnu-v3-abi.c (gnuv3_rtti_type, gnuv3_virtual_fn_field)
  906. (gnuv3_baseclass_offset): Update.
  907. * f-valprint.c (f_val_print): Update.
  908. * c-valprint.c (c_val_print): Update.
  909. * p-valprint.c (pascal_val_print): Update.
  910. * jv-valprint.c (java_value_print): Update.
  911. * jv-lang.c (java_class_from_object, evaluate_subexp_java): Update.
  912. * ada-lang.c (ada_value_primitive_packed_val)
  913. (ada_evaluate_subexp): Update.
  914. * dwarf2loc.c (dwarf2_evaluate_loc_desc): Update.
  915. * expprint.c (print_subexp_standard): Update.
  916. * infcall.c (call_function_by_hand): Update.
  917. * valarith.c (value_add): Update.
  918. * eval.c (evaluate_subexp_standard): Update.
  919. * values.c (allocate_value, value_copy, value_static_field): Update.
  920. * findvar.c (read_var_value, locate_var_value): Update.
  921. 2004-11-09 Andrew Cagney <cagney@gnu.org>
  922. * i386-linux-tdep.c: Include "dwarf2-frame.h".
  923. * Makefile.in: Update all dependencies.
  924. 2004-11-08 Andrew Cagney <cagney@gnu.org>
  925. * sentinel-frame.c (sentinel_frame_prev_pc): New function.
  926. (sentinel_frame_unwinder): Add the prev_pc method.
  927. * frame.c (frame_pc_unwind): Use the per-frame pc unwinder when
  928. available. Do not handle the sentinel-frame case.
  929. * frame-unwind.h (frame_prev_register_ftype): Define.
  930. (struct frame_unwind): Add prev_pc;
  931. 2004-11-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
  932. * configure.in: Check for ncurses/term.h.
  933. * gdb_curses.h: Include term.h here, prefering ncurses/term.h.
  934. * utils.c: Include gdb_curses.h instead of curses.h and term.h.
  935. * tui/tui.c: Don't include term.h.
  936. * configure, config.in: Rebuilt.
  937. 2004-11-08 Mark Kettenis <kettenis@gnu.org>
  938. * m68kbsd-nat.c: Include "inf-ptrace.h".
  939. (_initialize_m68kbsd_nat): Fix pasto.
  940. * Makefile.in (m68kbsd-nat.o): Update dependencies.
  941. 2004-11-08 Randolph Chung <tausq@debian.org>
  942. * infrun.c (debug_infrun): New variable.
  943. (resume, proceed, wait_for_inferior): Annotate with debug messages.
  944. (handle_inferior_event, keep_going): Likewise.
  945. (_initialize_infrun): Register "set debug infrun" command.
  946. 2004-11-08 Andreas Schwab <schwab@suse.de>
  947. * linux-nat.c (PTRACE_EVENT_VFORK_DONE): Renamed from
  948. PTRACE_EVENT_VFORKDONE.
  949. (child_follow_fork): Adjust.
  950. 2004-11-08 Andrew Cagney <cagney@gnu.org>
  951. * README: Refer to 6.3, not 6.2, update directory listing droppng
  952. references to intl/ and mmalloc/.
  953. * PROBLEMS: Refer to 6.3 not 6.2.
  954. * PROBLEMS: Delete no-longer applicable problems.
  955. 2004-11-07 Andrew Cagney <cagney@redhat.com>
  956. Daniel Jacobowitz <dan@debian.org>
  957. Roland McGrath <roland@redhat.com>
  958. * Makefile.in (symfile-mem.o): Update dependencies.
  959. * i386-linux-tdep.c (i386_linux_dwarf_signal_frame_p): New.
  960. (i386_linux_init_abi): Call dwarf2_frame_set_signal_frame_p.
  961. * inf-ptrace.c (inf_ptrace_attach): Call
  962. observer_notify_inferior_created.
  963. * inftarg.c (child_attach): Likewise.
  964. * symfile-mem.c: Include "observer.h", "auxv.h", and "elf/common.h".
  965. (symbol_file_add_from_memory): Take NAME argument. Use it for
  966. the new BFD's filename.
  967. (add_symbol_file_from_memory_command): Update call to
  968. symbol_file_add_from_memory.
  969. (struct symbol_file_add_from_memory_args, add_vsyscall_page)
  970. (symbol_file_add_from_memory_wrapper): New.
  971. (_initialize_symfile_mem): Register add_vsyscall_page as an
  972. inferior_created observer.
  973. 2004-11-07 Mark Kettenis <kettenis@gnu.org>
  974. * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Rename from
  975. fetch_inferior_registers. Make static.
  976. (m68kbsd_store_inferior_registers): Rename from
  977. store_inferior_registers. Make static.
  978. (_initialize_m68kbsd_nat): Construct and add target vector.
  979. * config/m68k/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
  980. inftarg.o. Add inf-ptrace.o.
  981. (NAT_FILE): Set to tm-solib.h.
  982. (LOADLIBES): New variable.
  983. * config/m68k/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
  984. inftarg.o. Add inf-ptrace.o.
  985. (NAT_FILE): Delete variable.
  986. * config/m68k/obsd.mh (NATDEPFILES): Remove infptrace.o and
  987. inftarg.o. Add inf-ptrace.o.
  988. (NAT_FILE): Set to tm-solib.h.
  989. * config/m68k/nm-nbsdaout.h: Remove file.
  990. 2004-11-07 Daniel Jacobowitz <dan@debian.org>
  991. * dwarf2-frame.c (struct dwarf2_frame_ops): Add signal_frame_p.
  992. (dwarf2_frame_set_signal_frame_p, dwarf2_frame_signal_frame_p)
  993. (dwarf2_signal_frame_unwind): New.
  994. (dwarf2_frame_sniffer): Use dwarf2_frame_signal_frame_p.
  995. * dwarf2-frame.h (dwarf2_frame_set_signal_frame_p): New prototype.
  996. 2004-11-07 Mark Kettenis <kettenis@gnu.org>
  997. * Makefile.in (mips64obsd-tdep.o): Fix typo.
  998. * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Renamed
  999. from mipsnbsd_ilp32_solib_svr4_fetch_link_map_offsets. Trim sizes
  1000. to only include the structure members we actually need.
  1001. (mipsnbsd_lp64_fetch_link_map_offsets): Renamed from
  1002. mipsnbsd_lp64_solib_svr4_fetch_link_map_offsets. Trim sizes to
  1003. only include the structure members we actually need.
  1004. (mipsnbsd_init_abi): Update.
  1005. * mips64obsd-nat.c: Include "mips-tdep.h".
  1006. (MIPS64OBSD_NUM_REGS): Remove define.
  1007. (MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM): New defines.
  1008. (mips64obsd_supply_gregset, mips64obsd_collect_gregset): Handle
  1009. floating-point registers correctly.
  1010. * Makefile.in (mips64obsd-nat.o): Update dependencies.
  1011. * mips64obsd-tdep.c: Include "trad-frame.h", "tramp-frame.h" and
  1012. "gdb_assert.h".
  1013. (mips64obsd_sigframe_init): New function.
  1014. (mips64obsd_sigframe): New variable.
  1015. (mips64obsd_init_abi): Add comments. Prepend mips64obsd_sigrame
  1016. unwinder.
  1017. * Makefile.in (mips64obsd-tdep.o): Update dependencies.
  1018. 2004-11-06 Joel Brobecker <brobecker@gnat.com>
  1019. * alpha-mdebug-tdep.c: #include mdebugread.h.
  1020. Replace alpha_extra_func_info_t by struct mdebug_extra_func_info *.
  1021. * Makefile.in (alpha-mdebug-tdep.o): Add dependency on mdebugread.h.
  1022. 2004-11-05 Andrew Cagney <cagney@gnu.org>
  1023. * dwarf2-frame.c (dwarf2_frame_cache): Only complain when both the
  1024. CFI and the init_reg method leave the register unspecified.
  1025. Include the register name in the "Incomplete CFI data" complaint.
  1026. Supress leading zeros in the address.
  1027. 2004-11-05 Mark Kettenis <kettenis@gnu.org>
  1028. * dwarf2-frame.c (decode_frame_entry_1): Avoid indirection when
  1029. skipping a personality routine in a CIE augmentation.
  1030. 2004-11-05 Jeff Johnston <jjohnstn@redhat.com>
  1031. * defs.h (fatal, vfatal): New function prototypes.
  1032. * stack.c (backtrace_command_stub): Stub to call backtrace_command_1
  1033. via catch_errors.
  1034. (backtrace_command): Change to call backtrace_command_stub via
  1035. catch_errors instead of calling backtrace_command_1 directly.
  1036. (backtrace_full_command): Ditto.
  1037. * utils.c (error_stream_1): New static function.
  1038. (verror): Change to call error_stream_1 instead of error_stream.
  1039. (error_stream): Call error_stream_1 with RETURN_ERROR argument.
  1040. (vfatal, fatal): New functions.
  1041. 2004-11-05 Andrew Cagney <cagney@gnu.org>
  1042. * stack.c (parse_frame_specification_1): Clear selected_frame_p
  1043. when not using selected frame.
  1044. 2004-11-05 Mark Kettenis <kettenis@jive.nl>
  1045. * dwarf2-frame.c (decode_frame_entry_1): Correctly skip
  1046. personality routine in a CIE augmentation.
  1047. 2004-11-05 Felix Lee <felix+log1@specifixinc.com>
  1048. * stack.c (set_current_sal_from_frame): New function.
  1049. (print_args_stub): Use it.
  1050. (print_frame_info): Don't set sal here.
  1051. 2004-11-04 Mark Kettenis <kettenis@gnu.org>
  1052. * dwarf2-frame.c (read_encoded_value): Change type of third
  1053. argument to `unsigned char *'. Add support for LEB128 encodings.
  1054. 2004-11-04 Jim Blandy <jimb@redhat.com>
  1055. * gdbtypes.c (make_qualified_type): Doc fix. Add assertion to
  1056. prevent cross-objfile references.
  1057. (make_cv_type): Doc fix. Don't create cross-objfile references,
  1058. even for stub types.
  1059. (replace_type): Add assertion to prevent cross-objfile references.
  1060. (check_typedef): Never resolve a stub type by copying over a type
  1061. from another file.
  1062. 2004-11-04 Kei Sakamoto <sakamoto.kei@denesas.com>
  1063. * Makefile.in (m32r-tdep.o): Update dependencies.
  1064. * m32r-tdep.c (m32r_gdbarch_init): Call gdbarch_init_osabi for
  1065. ABI-specific overrides.
  1066. 2004-11-04 Kei Sakamoto <sakamoto.kei@denesas.com>
  1067. * m32r-tdep.c (m32r_memory_insert_breakpoint): Remove
  1068. unnecessary parallel execution bit.
  1069. (m32r_memory_remove_breakpoint): Ditto.
  1070. (m32r_breakpoint_from_pc): Update.
  1071. 2004-11-03 Randolph Chung <tausq@debian.org>
  1072. * hppa-tdep.c (hppa_frame_cache): Use frame_pc_unwind instead of
  1073. frame_func_unwind to locate the unwind entry.
  1074. (hppa_frame_this_id): Likewise.
  1075. 2004-11-03 Andrew Cagney <cagney@gnu.org>
  1076. * NEWS: Mention internationalization, m32r-*-linux-gnu, 'p'
  1077. packet, obsolete configurations, end-of-life deprecated_registers.
  1078. 2004-11-02 Mark Kettenis <kettenis@gnu.org>
  1079. * dwarf2-frame.c (read_encoded_value): Set proper size for signed
  1080. encodings as well as unsigned encodings.
  1081. 2004-11-02 Andrew Cagney <cagney@gnu.org>
  1082. * value.h (COERCE_VARYING_ARRAY): Delete.
  1083. * valops.c (value_cast, value_slice): Delete use.
  1084. * valarith.c (value_subscript, value_concat): Delete use.
  1085. 2004-11-02 Paul Hilfinger <hilfingr@nile.gnat.com>
  1086. * NEWS: GDB understands GNAT Ada.
  1087. 2004-11-01 Joseph S. Myers <joseph@codesourcery.com>
  1088. * Makefile.in (ALLDEPFILES): Add amd64-sol2-tdep.c.
  1089. (amd64-sol2-tdep.o): Add dependencies.
  1090. * amd64-sol2-tdep.c, config/i386/sol2-64.mh,
  1091. config/i386/sol2-64.mt: New files.
  1092. * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offset,
  1093. amd64_sol2_gregset32_reg_offset, _initialize_amd64_sol2_nat): New.
  1094. (supply_gregset): Correct order of arguments to
  1095. amd64_supply_native_gregset.
  1096. (fill_gregset): Correct order of arguments to
  1097. amd64_collect_native_gregset.
  1098. * configure.host (i[34567]86-*-solaris2.1[0-9]*): Add new case.
  1099. * configure.tgt (i[34567]86-*-solaris2.1[0-9]*): Likewise.
  1100. * configure.in (*-*-solaris2.[[6789]]): Add *-*-solaris2.1[[0-9]]
  1101. for definition of NEW_PROC_API.
  1102. * configure: Regenerate.
  1103. 2004-11-01 Joseph S. Myers <joseph@codesourcery.com>
  1104. * MAINTAINERS (Write After Approval): Add myself.
  1105. 2004-11-01 Andrew Cagney <cagney@gnu.org>
  1106. * configure.tgt: Mark d10v-*-* as obsolete.
  1107. * config/d10v/d10v.mt, d10v-tdep.c: Obsolete files.
  1108. 2004-11-01 Paul N. Hilfinger <Hilfinger@gnat.com>
  1109. * values.c (modify_field): Correct handling of bit-fields that
  1110. don't fit in 32 bits. Use unsigned operations throughout and
  1111. simplify the code a bit. Document preconditions.
  1112. 2004-10-31 Andrew Cagney <cagney@gnu.org>
  1113. * config/pa/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
  1114. * config/tm-sysv4.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
  1115. (in_plt_section): Delete.
  1116. * mips-tdep.c (mips_in_solib_return_trampoline): Delete.
  1117. (mips_gdbarch_init): Do not set same.
  1118. * arch-utils.c (generic_in_solib_call_trampoline): Delete.
  1119. * arch-utils.h (generic_in_solib_call_trampoline): Delete.
  1120. * gdbarch.sh (in_solib_call_trampoline): Delete.
  1121. * gdbarch.h, gdbarch.c: Re-generate.
  1122. * hppa-tdep.c (hppa_stub_unwind_sniffer): Replace
  1123. IN_SOLIB_CALL_TRAMPOLINE with tdep.in_solib_call_trampoline.
  1124. * hppa-tdep.h (struct gdbarch_tdep): Add in_solib_call_trampoline.
  1125. * hppa-hpux-tdep.c (hppa_hpux_init_abi): Set same.
  1126. * hppa-linux-tdep.c (hppa_linux_init_abi): Ditto.
  1127. 2004-10-31 Mark Kettenis <kettenis@gnu.org>
  1128. * mipsnbsd-nat.c: Include "target.h" and "inf-ptrace.h".
  1129. (mipsnbsd_fetch_inferior_registers): Rename from
  1130. fetch_inferior_registers. Make static.
  1131. (mipsnbsd_store_inferior_registers): Rename from
  1132. store_inferior_registers. Make static.
  1133. (_initialize_mipsnbsd_nat): New function and prototype.
  1134. * Makefile.in (mipsnbsd-nat.o): Update dependencies.
  1135. * config/mips/nbsd.mh (NAT_CLIBS, NAT_FILE): Remove variables.
  1136. (NATDEPFILES): Remove infptrace.o and inftarg.o. Add
  1137. inf-ptrace.o.
  1138. 2004-10-31 Andrew Cagney <cagney@gnu.org>
  1139. * xstormy16-tdep.c (xstormy16_in_solib_call_trampoline)
  1140. (xstormy16_gdbarch_init): Do not set in_solib_call_trampoline,
  1141. delete corresponding unused function.
  1142. * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Really do not set
  1143. in_solib_call_trampoline.
  1144. * config/arm/tm-embed.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
  1145. * config/powerpc/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
  1146. * config/mips/tm-nbsd.h: Ditto.
  1147. * config/arm/tm-linux.h: Ditto.
  1148. * config/mips/tm-linux.h: Ditto.
  1149. * armnbsd-tdep.c (arm_netbsd_aout_init_abi)
  1150. (arm_netbsd_aout_in_solib_call_trampoline): Do not set
  1151. in_solib_call_trampoline, delete corresponding unused function.
  1152. * vaxnbsd-tdep.c (vaxnbsd_aout_in_solib_call_trampoline)
  1153. (vaxnbsd_aout_init_abi): Ditto.
  1154. * sparcnbsd-tdep.c (sparcnbsd_aout_in_solib_call_trampoline)
  1155. (sparc32nbsd_aout_init_abi): Ditto.
  1156. * ppc-linux-tdep.c (ppc64_in_solib_call_trampoline)
  1157. (ppc_linux_init_abi): Ditto.
  1158. * ns32knbsd-tdep.c (ns32knbsd_aout_in_solib_call_trampoline)
  1159. (ns32knbsd_init_abi_aout): Ditto.
  1160. * mips-tdep.c (mips_in_call_stub, mips_gdbarch_init): Ditto.
  1161. * mips-linux-tdep.c (mips_linux_init_abi): Ditto.
  1162. * m68kbsd-tdep.c (m68kbsd_aout_in_solib_call_trampoline)
  1163. (m68kbsd_aout_init_abi): Ditto.
  1164. * i386-cygwin-tdep.c (i386_cygwin_in_solib_call_trampoline)
  1165. (i386_cygwin_init_abi): Ditto.
  1166. * i386bsd-tdep.c (i386bsd_aout_in_solib_call_trampoline)
  1167. (i386bsd_init_abi): Ditto.
  1168. * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Do not set
  1169. in_solib_call_trampoline to in_plt_entry, IN_SOLIB_CALL_TRAMPOLINE
  1170. isn't used by this architecture.
  1171. * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto.
  1172. * sparc64obsd-tdep.c (sparc64obsd_init_abi): Ditto.
  1173. * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Ditto.
  1174. * s390-tdep.c (s390_gdbarch_init): Ditto.
  1175. * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
  1176. * m68klinux-tdep.c (m68k_linux_init_abi): Ditto.
  1177. * i386-tdep.c (i386_svr4_init_abi): Ditto.
  1178. * i386-nto-tdep.c (i386nto_init_abi): Ditto.
  1179. * arm-linux-tdep.c (arm_linux_init_abi): Ditto.
  1180. * amd64-tdep.c (amd64_init_abi): Ditto.
  1181. * vaxnbsd-tdep.c (vaxnbsd_elf_init_abi): Do not set
  1182. in_solib_call_trampoline to its default value of
  1183. generic_in_solib_call_trampoline.
  1184. * ppcobsd-tdep.c (ppcobsd_init_abi): Ditto.
  1185. * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Ditto.
  1186. * i386obsd-tdep.c (i386obsd_elf_init_abi): Ditto.
  1187. * i386nbsd-tdep.c (i386nbsdelf_init_abi): Ditto.
  1188. * i386fbsd-tdep.c (i386fbsd_init_abi): Ditto.
  1189. * hppabsd-tdep.c (hppabsd_init_abi): Ditto.
  1190. * mips-tdep.c (mips_dump_tdep): Don't print any of the macros.
  1191. * config/mips/obsd64.mt (DEPRECATED_TM_FILE): Delete.
  1192. * config/mips/tm-mips.h: Delete file.
  1193. * remote-mips.c: Delete tm-mips.h from comment.
  1194. * config/mips/embed.mt (DEPRECATED_TM_FILE): Delete.
  1195. * config/mips/tm-nbsd.h: Don't include tm-mips.h.
  1196. * config/mips/irix6.mt (DEPRECATED_TM_FILE): Delete.
  1197. * config/mips/tm-linux.h: Don't include tm-mips.h.
  1198. * config/mips/tm-vxmips.h: Don't include tm-mips.h.
  1199. * config/mips/irix5.mt (DEPRECATED_TM_FILE):
  1200. * config/mips/tm-wince.h: Don't include.
  1201. * mdebugread.h (MDEBUG_EFI_SYMBOL_NAME): Define.
  1202. * mdebugread.c (MDEBUG_EFI_SYMBOL_NAME): Delete.
  1203. * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
  1204. * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
  1205. * mdebugread.h (ecoff_relocate_efi): Delete declaration.
  1206. * mdebugread.c (ecoff_relocate_efi): Delete function.
  1207. * objfiles.c (objfile_relocate): Delete #ifdef
  1208. MDEBUG_EFI_SYMBOL_NAME code.
  1209. 2004-10-31 Orjan Friberg <organ.friberg@axis.com>
  1210. Andrew Cagney <cagney@gnu.org>
  1211. * gdbarch.sh (single_step_through_delay): Add.
  1212. * gdbarch.h, gdbarch.c: Re-generate.
  1213. * config/mips/tm-mips.h (STEP_SKIPS_DELAY_P, STEP_SKIPS_DELAY)
  1214. (mips_step_skips_delay): Delete.
  1215. * mips-tdep.c (mips_single_step_through_delay): Replace
  1216. mips_step_skips_delay.
  1217. (mips_gdbarch_init): Set single_step_through_delay.
  1218. (mips_dump_tdep): Do not print STEP_SKIPS_DELAY.
  1219. 2004-10-31 Mark Kettenis <kettenis@gnu.org>
  1220. * tramp-frame.c (tramp_frame_prepend_unwinder): Set unwinder type
  1221. from TRAMP_FRAME frame type.
  1222. 2004-10-31 Andrew Cagney <cagney@gnu.org>
  1223. * mdebugread.c (parse_procedure): Wrap use of RA_REGNUM in #ifdef.
  1224. * mips-tdep.c (mips_ignore_helper): Delete.
  1225. * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Delete.
  1226. * infrun.c (handle_inferior_event): Delete #ifdef
  1227. DEPRECATED_IGNORE_HELPER_CALL code.
  1228. * config/mips/tm-mips.h (RA_REGNUM): Delete.
  1229. 2004-10-31 Mark Kettenis <kettenis@gnu.org>
  1230. * i386v4-nat.c (supply_gregset, supply_fpregset, fill_gregset)
  1231. (fill_fpregset): Do not compile for 64-bit systems.
  1232. * i386-sol2-nat.c: Don't include "i386v4-nat.c".
  1233. * Makefile.in (i386-sol2-nat.o): Update dependencies.
  1234. * config/i386/i386sol2.mh (NATDEPFILES): Add back i386v4-nat.c.
  1235. 2004-10-30 Andrew Cagney <cagney@gnu.org>
  1236. * mdebugread.h: Include "coff/sym.h" and "coff/symconst.h".
  1237. (struct mdebug_extra_func_info): Define.
  1238. * config/alpha/tm-alpha.h: Delete same.
  1239. * config/mips/tm-mips.h: Delete same.
  1240. * mdebugread.c: Delete same.
  1241. * Makefile.in: Update dependencies.
  1242. * mips-mdebug-tdep.c: Include "mdebugread.h".
  1243. * objfiles.c: Include "mdebugread.h".
  1244. * mdebugread.c: Include "mdebugread.h".
  1245. (ecoff_relocate_cfi): Delete.
  1246. * config/alpha/tm-alpha.h (ecoff_relcate_cfi): Delete.
  1247. * config/mips/tm-mips.h (ecoff_relcate_cfi): Delete.
  1248. * mdebugread.h (ecoff_relocate_efi): New file.
  1249. * Makefile.in: Update dependencies.
  1250. * mips-tdep.c (struct frame_extra_info): Delete.
  1251. (temp_proc_desc): Delete.
  1252. * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Rename
  1253. MIPS_EFI_SYMBOL_NAME.
  1254. (mips_extra_func_info_t, mips_extra_func_info): Delete.
  1255. (struct mdebug_extra_func_info): Replace struct
  1256. alpha_extra_func_info and alpha_extra_func_info_t.
  1257. * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Rename
  1258. MIPS_EFI_SYMBOL_NAME.
  1259. (struct mdebug_extra_func_info): Replace struct
  1260. alpha_extra_func_info and alpha_extra_func_info_t.
  1261. * objfiles.c, mips-tdep.c, mips-mdebug-tdep.c: Update.
  1262. * mdebugread.c, alpha-mdebug-tdep.c:
  1263. Suggested by Mark Kettenis.
  1264. * config/mips/tm-mips.h (struct mips_extra_func_info): Delete
  1265. fields frame_adjust and high_addr.
  1266. * mips-mdebug-tdep.c (PROC_HIGH_ADDR, PROC_FRAME_ADJUST): Delete.
  1267. (non_heuristic_proc_desc): Delete references.
  1268. * mips-tdep.h (MIPS_PRID_REGNUM): Add.
  1269. * config/mips/tm-mips.h (PRID_REGNUM): Delete.
  1270. * mips-tdep.c: Update.
  1271. * mips-tdep.h (MIPS_FIRST_EMBED_REGNUM)
  1272. (MIPS_LAST_EMBED_REGNUM): Add.
  1273. * config/mips/tm-mips.h (FIRST_EMBED_REGNUM)
  1274. (LAST_EMBED_REGNUM): Delete.
  1275. * mipsv4-nat.c, mips-tdep.c, mips-linux-tdep.c: Update.
  1276. * config/mips/tm-mips.h (PS_REGNUM): Delete.
  1277. * mips-tdep.h (MIPS_PS_REGNUM): Add.
  1278. * remote-vxmips.c, mipsv4-nat.c, mips-tdep.c: Update.
  1279. * mips-linux-nat.c: Update.
  1280. * mips-tdep.h: Add comments on registers.
  1281. (MIPS_UNUSED_REGNUM): Define.
  1282. * config/mips/tm-mips.h (ZERO_REGNUM, UNUSED_REGNUM)
  1283. (T9_REGNUM, V0_REGNUM, A0_REGNUM): Delete.
  1284. * irix5-nat.c, mipsv4-nat.c, mips-linux-tdep.c: Update.
  1285. * mips-linux-nat.c, remote-mips.c: Update.
  1286. * config/mips/tm-mips.h (t_insn): Delete.
  1287. * mips-tdep.c (mips_fetch_instruction, mips_skip_trampoline_code):
  1288. Replace t_insn with ULONGEST.
  1289. 2004-10-30 Mark Kettenis <kettenis@gnu.org>
  1290. * mipsnbsd-tdep.c: Include "regset.h" and "gdb_assert.h".
  1291. (MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM)
  1292. (MIPSNBSD_NUM_GREGS, MIPSNBSD_NUM_FPREGS): New defines.
  1293. (fetch_core_registers, fetch_elfcore_registers): Remove functions.
  1294. (mipsnbsd_core_fns, mipsnbsd_elfcore_fns): Remove variables.
  1295. (mipsnbsd_core_osabi_sniffer): New function.
  1296. (mipsnbsd_init_abi): Set regset_from_core_section.
  1297. (_initialize_mipsnbsd_tdep): Remove calls to
  1298. deprecated_add_core_fns.
  1299. (mipsnbsd_supply_fpregset, mipsnbsd_supply_gregset)
  1300. (mipsnbsd_regset_from_core_section): New functions.
  1301. (mipsnbsd_gregset, mipsnbsd_fpregset): New variables.
  1302. * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
  1303. * procfs.c (procfs_fetch_registers, procfs_store_registers): Like
  1304. Remove optimization for DEPRECATED_FP_REGNUM.
  1305. 2004-10-30 Andrew Cagney <cagney@gnu.org>
  1306. * alpha-tdep.c (alpha_setup_arbitrary_frame): Delete.
  1307. * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Delete.
  1308. (alpha_setup_arbitrary_frame): Delete.
  1309. * mips-tdep.c (setup_arbitrary_frame): Delete.
  1310. * config/mips/tm-mips.h (SETUP_ARBITRARY_FRAME): Delete.
  1311. (setup_arbitrary_frame): Delete.
  1312. * stack.c (parse_frame_specification_1): When specified, call
  1313. create_new_frame with two parameters. Delete #ifdef
  1314. SETUP_ARBITRARY_FRAME.
  1315. * config/mips/tm-mips.h (MIPS16_INSTLEN, MIPS_NUMREGS)
  1316. (MIPS_INSTLEN): Delete.
  1317. * mips-tdep.h (enum mips_insn_size): Rename MIPS32_INSN_SIZE and
  1318. MIPS16_INSN_SIZE to MIPS_INSN32_SIZE and MIPS_INSN16_SIZE.
  1319. * remote-mips.c, mips-tdep.c: Update.
  1320. * config/mips/embed.mt (TDEPFILES): Add mips-mdebug-tdep.o.
  1321. * mips-mdebug-tdep.h, mips-mdebug-tdep.c: New files.
  1322. * mips-tdep.c (mips_mdebug_frame_cache)
  1323. (mips_mdebug_frame_this_id, mips_mdebug_frame_prev_register)
  1324. (mips_mdebug_frame_unwind, mips_mdebug_frame_sniffer)
  1325. (mips_mdebug_frame_base_address, mips_mdebug_frame_sniffer)
  1326. (mips_mdebug_frame_base_sniffer, non_heuristic_proc_desc)
  1327. (compare_pdr_entries, the_bfd, mips16_fetch_instruction): Delete.
  1328. (mips_gdbarch_init): Do not append mdebug sniffers.
  1329. (PROC_LOW_ADDR, PROC_HIGH_ADDR, PROC_FRAME_OFFSET)
  1330. (PROC_FRAME_REG, PROC_FRAME_ADJUST, PROC_REG_MASK)
  1331. (PROC_FREG_MASK, PROC_REG_OFFSET, PROC_FREG_OFFSET, PROC_PC_REG)
  1332. (PROC_SYMBOL, _PROC_MAGIC_): Delete.
  1333. * Makefile.in: Update dependencies.
  1334. * mips-tdep.h (mips_abi_regsize): Declare.
  1335. * mips-tdep.c (mips_abi_regsize): Make non-static.
  1336. * mips-tdep.c (gdb_print_insn_mips): Simplify.
  1337. (make_mips16_addr): Delete.
  1338. 2004-10-30 Mark Kettenis <kettenis@gnu.org>
  1339. * i386-sol2-nat.c: New file.
  1340. * Makefile.in (ALLDEPFILES): Add i386-sol2-nat.c and
  1341. i386-sol2-tdep.c.
  1342. (i386-sol2-nat.o): Update dependencies.
  1343. * config/i386/i386sol2.mh (NATDEPFILES): Remove i386v4.o, add
  1344. i386-sol2-nat.o.
  1345. 2004-10-30 Andrew Cagney <cagney@gnu.org>
  1346. Total breakage identified by Joel Brobecker.
  1347. * mips-tdep.c (after_prologue): Delete.
  1348. (mips_skip_prologue): Use skip_prologue_using_sal.
  1349. (heuristic_proc_desc): Delete, unused.
  1350. 2004-10-30 Mark Kettenis <kettenis@gnu.org>
  1351. * procfs.c (proc_get_gregs, proc_get_fpregs, proc_set_gregs)
  1352. (proc_set_fpregs, procfs_fetch_registers, procfs_store_registers):
  1353. Cleanup coding style.
  1354. 2004-10-30 Andrew Cagney <cagney@gnu.org>
  1355. * mips-tdep.h (mips_pc_is_mips16): Declare.
  1356. * mips-tdep.c (mips_pc_is_mips16): Rename pc_is_mips16, make
  1357. non-static. Update calls.
  1358. * cli/cli-decode.c (add_setshow_enum_cmd): New function.
  1359. * command.h (add_setshow_enum_cmd): Declare.
  1360. * mips-tdep.c (_initialize_mips_tdep): Use add_setshow_enum_cmd.
  1361. * mips-tdep.c (_initialize_mips_tdep): Use
  1362. add_setshow_zinteger_cmd.
  1363. * mips-tdep.c (mips_eabi_extract_return_value)
  1364. (mips_o64_extract_return_value, mips_o64_store_return_value)
  1365. (return_value_location, mips_eabi_reg_struct_has_addr)
  1366. (mips_eabi_use_struct_convention)
  1367. (mips_eabi_store_return_value): Delete.
  1368. (mips_eabi_store_return_value): New function.
  1369. (mips_eabi_return_value): New function.
  1370. (mips_gdbarch_init): For O64 and EABI, delete
  1371. extract_return_value, store_return_value, use_struct_convention
  1372. and reg_struct_has_addr, add return_value.
  1373. * mips-tdep.c (read_signed_register): Use
  1374. regcache_cooked_read_signed.
  1375. 2004-10-30 Mark Kettenis <kettenis@gnu.org>
  1376. * mipsread.c: Cleanup coding style.
  1377. (mipscoff_new_init, mipscoff_symfile_init, mipscoff_symfile_read)
  1378. (mipscoff_symfile_finish): Remove prototypes.
  1379. 2004-10-29 Mark Kettenis <kettenis@gnu.org>
  1380. * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
  1381. (mips_mdebug_frame_cache, mips16_scan_prologue)
  1382. (mips32_scan_prologue, mips_stub_frame_cache)
  1383. (heuristic_proc_start, heuristic_proc_desc)
  1384. (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
  1385. (mips_n32n64_return_value, mips_o32_push_dummy_call)
  1386. (mips_o32_return_value, mips_o64_push_dummy_call)
  1387. (mips_step_skips_delay, mips_skip_trampoline_code)
  1388. (mips_gdbarch_init): Use MIPS_A0_REGNUM instead of A0_REGNUM,
  1389. MIPS_RA_REGNUM instead of RA_REGNUM, MIPS_T9_REGNUM instead of
  1390. T9_REGNUM, MIPS_V0_REGNUM instead of V0_REGNUM, MIPS_ZERO_REGNUM
  1391. instead of ZERO_REGNUM, MIPS32_SIZE_INSN instead of MIPS_INSTLEN
  1392. and MIPS16_INSN_SIZE instead of MIPS16_INSTLEN.
  1393. (mips_dump_tdep): Don't print A0_REGNUM, RA_REGNUM,
  1394. T9_REGNUM, V0_REGNUM, ZERO_REGNUM, MIPS_INSTLEN and
  1395. MIPS16_INSTLEN. Use MIPS_A0_REGNUM instead of A0_REGNUM.
  1396. * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
  1397. (mips_linux_n32n64_sigframe_init): Use MIPS_ZERO_REGNUM instead of
  1398. ZERO_REGNUM.
  1399. * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register)
  1400. (mipsnbsd_cannot_store_register): Use MIPS_ZERO_REGNUM instead of
  1401. ZERO_REGNUM.
  1402. (mipsnbsd_get_longjmp_target): Use MIPS_A0_REGNUM instead of
  1403. A0_REGNUM.
  1404. * mipsnbsd-nat.c: Include "mips-tdep.h".
  1405. (getregs_supplies): Use MIPS_ZERO_REGNUM instead of ZERO_REGNUM.
  1406. * Makefile.in (mipsnbsd-nat.o): Update dependencies.
  1407. 2004-10-29 Andrew Cagney <cagney@gnu.org>
  1408. * stack.c (parse_frame_specification_1): New function based on
  1409. parse_frame_specification. Add message and selected_frame_p
  1410. paramters. Truely always return non-NULL.
  1411. (parse_frame_specification): Call parse_frame_specification_1.
  1412. (frame_info): Update. Eliminate target_has_stack check.
  1413. (select_frame_command): Update.
  1414. 2004-10-29 Andrew Cagney <cagney@gnu.org>
  1415. * frame.h (get_selected_frame): Add message parameter.
  1416. * frame.c (get_selected_frame): Add and use message parameter.
  1417. * stack.c (current_frame_command, return_command, locals_info)
  1418. (catch_info, args_info, up_silently_base, down_silently_base): Use
  1419. get_selected_frame with an explicit message.
  1420. * thread.c, stack.c, sh-tdep.c, sh64-tdep.c: Update.
  1421. * remote-rdp.c, remote-mips.c, remote-e7000.c: Update.
  1422. * ocd.c, mi/mi-main.c, mi/mi-cmd-stack.c: Update.
  1423. * infrun.c, inflow.c, infcmd.c, frame.c: Update.
  1424. * findvar.c, eval.c, corelow.c, bsd-kvm.c: Update.
  1425. * breakpoint.c: Update.
  1426. 2004-10-29 Andrew Cagney <cagney@gnu.org>
  1427. * trad-frame.c (trad_frame_get_prev_register): Use
  1428. frame_unwind_register instead of frame_register_unwind, do not
  1429. recurse the register's location.
  1430. * xstormy16-tdep.c (xstormy16_frame_prev_register):
  1431. * sparc-tdep.c (sparc32_frame_prev_register): Ditto.
  1432. * sparc64-tdep.c (sparc64_frame_prev_register): Ditto.
  1433. * sh-tdep.c (sh_frame_prev_register): Ditto.
  1434. * m68k-tdep.c (m68k_frame_prev_register): Ditto.
  1435. * i386-tdep.c (i386_frame_prev_register): Ditto.
  1436. * dwarf2-frame.c (dwarf2_frame_prev_register): Ditto.
  1437. * amd64-tdep.c (amd64_frame_prev_register): Ditto.
  1438. 2004-10-28 Mark Kettenis <kettenis@jive.nl>
  1439. * proc-events.c: Fix several coding-style issues. Consistently
  1440. use #ifdef instead of #if defined().
  1441. (proc_prettyfprint_fault, proc_prettyfprint_faultset): Use
  1442. ARRAY_SIZE.
  1443. (_initialize_proc_events): New prototype.
  1444. * proc-why.c: Fix several coding-style issues.
  1445. (proc_prettyfprint_why): Use ARRAY_SIZE.
  1446. 2004-10-27 Jim Blandy <jimb@redhat.com>
  1447. * remote.c (fetch_register_using_p): Construct 'p' packet in a
  1448. manner independent of the host byte order.
  1449. 2004-10-27 Mark Kettenis <kettenis@gnu.org>
  1450. * mips-tdep.c (id_delayed): Remove prototype.
  1451. 2004-10-26 Mark Kettenis <kettenis@gnu.org>
  1452. * mips-tdep.h: Add MIPS_ZERO_REGNUM, MIPS_AT_REGNUM,
  1453. MIPS_V0_REGNUM. MIPS_A0_REGNUM, MIPS_T9_REGNUM and MIPS_RA_REGNUM
  1454. to enum with register numbers.
  1455. (enum mips_insn_size): New enum.
  1456. 2004-10-26 Andrew Cagney <cagney@gnu.org>
  1457. * config/mips/tm-linux.h: Delete #undef SKIP_TRAMPOLINE_CODE.
  1458. * mips-tdep.c (mips_skip_trampoline_code): Rename mips_skip_stub.
  1459. (mips_gdbarch_init): Update.
  1460. (mips_dump_tdep): Do not print SKIP_TRAMPOLINE_CODE.
  1461. * config/arm/tm-linux.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
  1462. * config/mips/tm-nbsd.h, config/mips/tm-linux.h: Delete #undef
  1463. IN_SOLIB_RETURN_TRAMPOLINE.
  1464. * mips-tdep.c (mips_dump_tdep): Do not print
  1465. IN_SOLIB_RETURN_TRAMPOLINE.
  1466. (mips_in_solib_return_trampoline): Rename mips_in_return_stub.
  1467. (mips_gdbarch_init): Update.
  1468. * mips-tdep.h (mips_software_single_step): Move to here ...
  1469. * config/mips/tm-mips.h: ... from here.
  1470. * config/mips/tm-linux.h (SOFTWARE_SINGLE_STEP_P)
  1471. (SOFTWARE_SINGLE_STEP): Delete.
  1472. * mips-linux-tdep.c (mips_linux_init_abi): Set software_single_step.
  1473. 2004-10-25 Andrew Cagney <cagney@gnu.org>
  1474. * NEWS: Add Changes since GDB 6.3 section.
  1475. 2004-10-23 Andreas Schwab <schwab@suse.de>
  1476. * ada-lang.c (grow_vect): Return the new array instead of
  1477. expecting pointer to pointer to avoid violation of aliasing rules.
  1478. * ada-lang.h (GROW_VECT): Adapt call to grow_vect.
  1479. 2004-10-23 Ulrich Weigand <uweigand@de.ibm.com>
  1480. * s390-tdep.c (enum pv_boolean): Remove.
  1481. (pv_is_array_ref): Remove.
  1482. (s390_on_stack): Remove.
  1483. (S390_NUM_SPILL_SLOTS): Remove.
  1484. (struct s390_prologue_data): Remove members 'spill' and 'back_chain',
  1485. add members 'gpr_slot', 'fpr_slot', and 'back_chain_saved_p'.
  1486. (s390_store): Track all stores of orginal incoming registers to the
  1487. stack constant offsets relative to the CFA, instead of only tracking
  1488. stores into specific spill slots.
  1489. (s390_load): Likewise.
  1490. (s390_analyze_prologue): Adapt to struct s390_prologue_data changes.
  1491. (s390_prologue_frame_unwind_cache): Likewise. Only track registers
  1492. defined as call-saved by the ABI.
  1493. (s390_push_dummy_call): Use bottom of dummy call argument save area
  1494. as return value, not the top. Do not store to the called function's
  1495. register save area.
  1496. (s390_unwind_dummy_id): Adapt accordingly.
  1497. 2004-10-23 Andrew Cagney <cagney@gnu.org>
  1498. * objfiles.h (struct objfile): Rename obj_private to
  1499. deprecated_obj_private, sym_private to deprecated_sym_private, and
  1500. sym_stab_info to deprecated_sym_stab_info.
  1501. * gdb-stabs.h: Update.
  1502. * elfread.c: Update.
  1503. * dbxread.c: Update.
  1504. * coffread.c: Update.
  1505. * xcoffread.c: Update.
  1506. * symfile.c: Update.
  1507. * somread.c: Update.
  1508. * nlmread.c: Update.
  1509. * mdebugread.c: Update.
  1510. * hpread.c: Update.
  1511. * coffread.c: Update.
  1512. 2004-10-23 Mark Kettenis <kettenis@gnu.org>
  1513. * mips64obsd-nat.c, mips64obsd-tdep.c: New files.
  1514. * configure.host: Add mips64*-*-openbsd*.
  1515. * configure.tgt: Add mips64*-*-openbsd*.
  1516. * Makefile.in (ALLDEPFILES): Add mips64obsd-nat.o,
  1517. mips64obsd-tdep.c.
  1518. (mips64obsd-nat.o, mips64obsd-tdep.o): New dependecies.
  1519. * config/mips/obsd64.mh, config/mips/obsd64.mt: New files.
  1520. 2004-10-21 Joel Brobecker <brobecker@gnat.com>
  1521. * symtab.c (symbol_search_name): Minor reformatting.
  1522. 2004-10-20 Joel Brobecker <brobecker@gnat.com>
  1523. * symtab.h: Fix typo in comment.
  1524. 2004-10-19 Mark Kettenis <kettenis@gnu.org>
  1525. * dwarf2read.c (struct comp_unit_head): Fix coding style.
  1526. (dwarf_decode_line_header): Likewise.
  1527. 2004-10-19 Michael Chastain <mec.gnu@mindspring.com>
  1528. * NEWS: GDB works with GCC -feliminate-dwarf2-dups.
  1529. 2004-10-19 Andrew Cagney <cagney@gnu.org>
  1530. GDB 6.3 branch created.
  1531. * version.in: Bump to version 6.3.50_2004-10-19-cvs.
  1532. 2004-10-15 Joel Brobecker <brobecker@gnat.com>
  1533. * dwarf2read.c (set_cu_language): Set language to Ada for
  1534. DW_LANG_Ada83 and DW_LANG_Ada95.
  1535. 2004-10-15 Michael Chastain <mec.gnu@mindspring.com>
  1536. From Andreas Schwab <schwab@suse.de>:
  1537. * Makefile.in (.y.c, .l.c.): Fix the substitutions for
  1538. for xmalloc and xrealloc.
  1539. 2004-10-15 Andrew Cagney <cagney@gnu.org>
  1540. * ada-exp.y, ada-lex.l: Use xmalloc and xrealloc through out.
  1541. * inf-ptrace.c: Include "gdb_wait.h" instead of <wait.h>.
  1542. * Makefile.in (.y.c, .l.c): Don't replace xmalloc with xxmalloc.
  1543. Update dependencies.
  1544. 2004-10-15 Paul Hilfinger <Hilfinger@gnat.com>
  1545. * ada-lang.c (ada_lookup_symbol): Correct comment.
  1546. (ada_evaluate_subexp): Change error message for
  1547. OP_FUNCALL case so as not to indicate an internal error.
  1548. 2004-10-15 Joel Brobecker <brobecker@gnat.com>
  1549. Committed by Paul Hilfinger.
  1550. * ada-lang.c (ada_template_to_fixed_record_type_1): Detect bogus
  1551. type sizes in XVE/XVU types, and emit a warning when that happens,
  1552. instead of rounding up the size of the resulting type.
  1553. Some minor reformatting.
  1554. (ada_is_aligner_type): Do not consider a type as an aligner type
  1555. if there is a corresponding XVS type as well.
  1556. (ada_evaluate_subexp): For TERNOP_SLICE, handle cases where we
  1557. have several levels of pointer indirection to the array.
  1558. 2004-10-15 Jerome Guitton <guitton@gnat.com>
  1559. Committed by Paul Hilfinger.
  1560. * ada-lang.c (check_size): New function.
  1561. (coerce_unspec_val_to_type): call check_size to make sure
  1562. that the object size is reasonable.
  1563. (ada_evaluate_subexp): in UNOP_IND: Ditto. In TERNOP_SLICE:
  1564. Implements the case when we get a reference when we evaluate
  1565. the expression of one of the bounds of the slice.
  1566. (ada_value_struct_elt): when a packed array field is
  1567. a reference, use ada_coerce_ref to dereference it; use
  1568. ada_value_ind only if it is a pointer.
  1569. 2004-10-15 Joel Brobecker <brobecker@gnat.com>
  1570. * mips-tdep.c (mips32_scan_prologue): Move the implementation up
  1571. a bit to avoid the necessity of an advance declaration. Remove
  1572. declaration.
  1573. (set_reg_offset): Move implemenation up.
  1574. (mips16_get_imm): Likewise.
  1575. (mips16_scan_prologue): Likewise.
  1576. (reset_saved_regs): Likewise.
  1577. (mips32_scan_prologue): Likewise.
  1578. 2004-10-14 Joel Brobecker <brobecker@gnat.com>
  1579. * mips-tdep.c (mips32_scan_prologue): Add advance declaration.
  1580. Remove sp as a parameter, compute it internally instead. Move
  1581. prologue scanning limit from heuristic_proc_desc to here.
  1582. (mips16_scan_prologue): Likewise.
  1583. (mips_insn16_frame_cache): Replace call to heuristic_proc_desc
  1584. by call to mips16_scan_prologue.
  1585. (mips_insn32_frame_cache): Replace call to heuristic_proc_desc
  1586. by call to mips32_scan_prologue.
  1587. (heuristic_proc_desc): Remove code that's no longer necessary.
  1588. Update calls to mips16_scan_prologue and mips32_scan_prologue.
  1589. (mips_skip_prologue): Update calls to mips16_scan_prologue
  1590. and mips32_scan_prologue.
  1591. 2004-10-14 Joel Brobecker <brobecker@gnat.com>
  1592. * mips-tdep.c (mips16_scan_prologue): Merge code from
  1593. mips16_skip_prologue. Now return the address of the first
  1594. instruction past the function prologue.
  1595. (mips16_skip_prologue): Remove, no longer necessary.
  1596. (mips_skip_prologue): Replace call to mips16_skip_prologue
  1597. by call to mips16_scan_prologue.
  1598. 2004-10-14 Joel Brobecker <brobecker@gnat.com>
  1599. * mips-tdep.c (mips32_scan_prologue): Merge code from
  1600. mips32_skip_prologue. Now return the address of the first
  1601. instruction past the function prologue.
  1602. (mips32_skip_prologue): Remove. No longer necessary.
  1603. (mips16_skip_prologue): Add parameter end_pc instead of
  1604. computing it.
  1605. (mips_skip_prologue): Compute the upper limit for the
  1606. prologue scanning. Update call to mips16_skip_prologue.
  1607. Replace call to mips32_skip_prologue by call to
  1608. mips32_scan_prologue.
  1609. 2004-10-14 Mark Kettenis <kettenis@gnu.org>
  1610. * hppa-tdep.c (hppa_frame_cache): Add support for OpenBSD and
  1611. NetBSD system call stubs that store %rp in the ERP slot of the
  1612. stack frame.
  1613. * source.c: Always define O_BINARY to 0 if not defined already.
  1614. (openp): Unconditionally use O_BINARY.
  1615. * top.c (gdb_readline): Always accept "\r\n" as a line-ending.
  1616. * event-top.c (gdb_readline2): Likewise.
  1617. 2004-10-14 Orjan Friberg <orjanf@axis.com>
  1618. * cris-tdep.c (_initialize_cris_tdep): Re-add call to
  1619. deprecated_add_core_fns which was removed by mistake.
  1620. 2004-10-13 Kevin Buettner <kevinb@redhat.com>
  1621. * ia64-linux-nat.c (fill_gregset, fill_fpregset): Replace
  1622. references to deprecated_registers[] with equivalent code.
  1623. 2004-10-13 Kevin Buettner <kevinb@redhat.com>
  1624. * rs6000-tdep.c (rs6000_push_dummy_call): Replace references to
  1625. ``deprecated_registers'' with equivalent code. Use gdb_assert()
  1626. instead of explicit test and print statement.
  1627. 2004-10-12 Mark Kettenis <kettenis@gnu.org>
  1628. * sparc-nat.c: Include "inf-ptrace.h".
  1629. (sparc_target): New function.
  1630. * sparc-nat.h: Update copyright year.
  1631. (sparc_target): New prototype.
  1632. * sparcnbsd-nat.c: Don't include "gdbcore.h", include "target.h".
  1633. (_initialize_sparcnbsd_nat): Construct and add target vector.
  1634. * sparc64nbsd-nat.c: Include "target.h".
  1635. (_initialize_sparc64nbsd_nat): Construct and add target vector.
  1636. * Makefile.in (sparc-nat.o, sparcnbsd-nat.o, sparc64nbsd-nat.o):
  1637. Update dependencies.
  1638. * config/sparc/nbsd64.mh (NATDEPFILES): Remove infptrace.o and
  1639. inftarg.o, add inf-ptrace.o.
  1640. * config/sparc/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
  1641. inftarg.o, add inf-ptrace.o and bsd-kvm.o.
  1642. (NAT_FILE): Set to nm-bsd.h.
  1643. (LOADLIBES): New variable.
  1644. * config/sparc/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
  1645. infarg.o, add inf-ptrace.o.
  1646. * config/sparc/nm-nbsdaout.h: Remove file.
  1647. * config/sparc/fbsd.mh (NATDEPFILES): Add inf-ptrace.o.
  1648. * config/sparc/linux.mh (NATDEPFILES): Add inf-ptrace.o.
  1649. * config/sparc/linux64.mh (NATDEPFILES): Add inf-ptrace.o.
  1650. * defs.h [!FOPEN_RB]: Include "fopen-bin.h" instead of
  1651. "fopen-same.h". Update comment.
  1652. 2004-10-11 Mark Kettenis <kettenis@gnu.org>
  1653. * i386gnu-nat.c: Include "gdb_string.h".
  1654. (fetch_fpregs): Use i387_supply_fxsave to fill the floating-point
  1655. registers when the floating-point state isn't initialized.
  1656. * Makefile.in (i386gnu-nat.o): Update dependencies.
  1657. 2004-10-11 David Anderson <davea@sgi.com>
  1658. * regcache.c (regcache_raw_read): Comment was missing "to".
  1659. Extraneous ' removed.
  1660. * gdb_thread_db.h (struct td_thrinfo): ti_lid field
  1661. comment now describes use.
  1662. 2004-10-11 Orjan Friberg <orjanf@axis.com>
  1663. * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start)
  1664. (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
  1665. (cris_sigtramp_frame_this_id, cris_sigtramp_frame_prev_register)
  1666. (cris_sigtramp_frame_sniffer): New functions.
  1667. (cris_gdbarch_init): Hook in signal trampoline unwinder.
  1668. (cris_dwarf2_reg_to_regnum, cris_dwarf2_frame_init_reg): New functions.
  1669. (cris_gdbarch_init): Hook in Dwarf-2 unwinder.
  1670. (struct gdbarch_tdep, set_cris_dwarf2_cfi, cris_dump_tdep)
  1671. (cris_gdbarch_init, _initialize_cris_tdep): Add CRIS Dwarf-2 CFI usage
  1672. command.
  1673. (cris_version_update): Remove, replace with ...
  1674. (set_cris_version): New function.
  1675. (struct gdbarch_tdep, cris_mode, cris_mode_update)
  1676. (cris_cannot_store_register, cris_dump_tdep, cris_gdbarch_init)
  1677. (_initialize_cris_tdep): Remove CRIS mode command.
  1678. (cris_fpless_backtrace, _initialize_cris_tdep): Remove
  1679. cris-fpless-backtrace command.
  1680. (cris_scan_prologue): Fix prologue scanning limit.
  1681. (cris_register_type): Update to reflect actual registers.
  1682. (cris_register_bytes_ok) Remove.
  1683. (cris_gdbarch_init): Remove support for CRIS v8 and v9.
  1684. Remove set_gdbarch_deprecated_register_size,
  1685. set_gdbarch_deprecated_register_byte, set_gdbarch_register_bytes_ok.
  1686. 2004-10-10 Andrew Cagney <cagney@gnu.org>
  1687. * ada-lang.c (lim_warning): Add ATTR_FORMAT prototype and FIXME
  1688. comment.
  1689. 2004-10-10 Joel Brobecker <brobecker@gnat.com>
  1690. * mips-tdep.c (mips16_scan_prologue): Remove redundant code.
  1691. 2004-10-10 Joel Brobecker <brobecker@gnat.com>
  1692. * mips-tdep.c (mips16_scan_prologue): Renames
  1693. mips16_heuristic_proc_desc. Update comment.
  1694. (mips32_scan_prologue): Renames mips32_heuristic_proc_desc.
  1695. (heuristic_proc_desc): Update calls to the 2 functions above.
  1696. 2004-10-10 Joel Brobecker <brobecker@gnat.com>
  1697. * mips-tdep.c (mips_insn16_frame_cache): Remove unused variables.
  1698. Update comments. Also immediately return empty cache when the start
  1699. address of our function could not be found.
  1700. (mips_insn32_frame_cache): Likewise.
  1701. 2004-10-10 Joel Brobecker <brobecker@gnat.com>
  1702. * mips-tdep.c (mips16_decode_reg_save): Delete, no longer used.
  1703. (mips_insn16_frame_cache): Pass frame cache in call to
  1704. heuristic_proc_desc. Move some code to mips16_heuristic_proc_desc.
  1705. Remove code that became redundant as a consequence.
  1706. (mips32_heuristic_proc_desc): No longer compute a fake
  1707. procedure descriptor. Compute the full frame cache instead.
  1708. Some minor comment reformatting.
  1709. 2004-10-10 Jim Blandy <jimb@redhat.com>
  1710. * MAINTAINERS (generic symtabs, dwarf readers, elf reader, stabs
  1711. reader, tracing bytecode stuff): Remove self.
  1712. 2004-10-10 Mark Kettenis <kettenis@gnu.org>
  1713. * sparc64-linux-tdep.c: Update copyright year. Don't include
  1714. "solib-svr4.h".
  1715. (sparc64_linux_svr4_fetch_link_map_offsets): Remove function.
  1716. (sparc64_linux_init_abi): Don't set solib_svr4_link_map_offsets.
  1717. * Makefile.in (sparc64-linux-tdep.o): Update dependencies.
  1718. * sparc-linux-tdep.c: Update copyright year.
  1719. (sparc_linux_sigtramp_start): Change first argument from CORE_ADDR
  1720. to struct frame_info *. Use safe_frame_unwind_memory instead of
  1721. deprecated_read_memory_nobpt.
  1722. (sparc32_linux_sigtramp_start, sparc32_linux_rt_sigtramp_start):
  1723. Change argumen from CORE_ADDR to struct frame_info *. Adjust for
  1724. changed signature of sparc_linux_sigtramp_start.
  1725. (sparc32_linux_pc_in_sigtramp): Remove function.
  1726. (sparc32_linux_sigtramp_p): New function.
  1727. (sparc32_linux_sigtramp_frame_sniffer): Use
  1728. sparc32_linux_sigtramp_p instead of sparc32_linux_pc_in_sigtramp.
  1729. * sparc-linux-tdep.c (sparc32_linux_svr4_fetch_link_map_offsets):
  1730. Remove function.
  1731. (sparc32_linux_init_abi): Don't set solib_svr4_link_map_offsets.
  1732. * ada-lang.c (lim_warning): Re-implement as a varargs function.
  1733. (decode_packed_array_type, value_subscript_packed)
  1734. (ada_evaluate_subexp, to_fixed_range_type): Remove redundant
  1735. argument in call to lim_warning.
  1736. * configure.in: Really disable the TUI if an enhanced curses
  1737. library isn't found.
  1738. * configure: Regenerate.
  1739. 2004-10-09 Mark Kettenis <kettenis@gnu.org>
  1740. * config/i386/nbsdaout.mh (NAT_FILE): Set to solib.h.
  1741. * config/i386/nbsdelf.mh (NAT_FILE): Set to solib.h.
  1742. * config/i386/nm-nbsdaout.h: Remove file.
  1743. * config/i386/nm-fbsd.h (link_object, lo_name, lo_library)
  1744. (lo_unused, lo_major, lo_minor, lo_next, link_map, lm_addr)
  1745. (lm_name, lm_next, lm_lop, lm_lob, lm_rwt, lm_ld, lm_lpd)
  1746. (link_dynamic_2, ld_loaded, ld_need, ld_rules, ld_got, ld_plt)
  1747. (ld_rel, ld_hash, ld_stab, ld_stab_hash, ld_buckets, ld_symbols)
  1748. (ld_symb_size, ld_text, ld_plt_sz, rtc_symb, rtc_sp, rtc_next)
  1749. (ld_debug, ldd_version, ldd_in_debugger, ldd_sym_loaded)
  1750. (ldd_bp_addr, ldd_bp_inst, ldd_cp, link_dynamic, ld_version)
  1751. (ldd, ld_un, ld_2): Remove defines.
  1752. * config/i386/nm-obsd.h: Likewise.
  1753. 2004-10-09 Paul Hilfinger <hilfingr@nile.gnat.com>
  1754. * ada-lex.l: Remove useless rule whose right-context clause
  1755. causes unreferenced static function warning for yyrealloc.
  1756. (ada_flex_use): Remove the artificial reference to yyrealloc.
  1757. 2004-10-08 Andrew Cagney <cagney@gnu.org>
  1758. * target.h (struct target_ops): Rename to_xfer_memory to
  1759. deprecated_xfer_memory.
  1760. * target.c: Update.
  1761. (deprecated_debug_xfer_memory): Rename debug_to_xfer_memory.
  1762. * wince.c: Update.
  1763. * win32-nat.c: Update.
  1764. * v850ice.c: Update.
  1765. * uw-thread.c: Update.
  1766. * thread-db.c: Update.
  1767. * sol-thread.c: Update.
  1768. * remote.c: Update.
  1769. * remote-vx.c: Update.
  1770. * remote-st.c: Update.
  1771. * remote-sim.c: Update.
  1772. * remote-sds.c: Update.
  1773. * remote-rdp.c: Update.
  1774. * remote-rdi.c: Update.
  1775. * remote-mips.c: Update.
  1776. * remote-m32r-sdi.c: Update.
  1777. * remote-e7000.c: Update.
  1778. * procfs.c: Update.
  1779. * ppc-bdm.c: Update.
  1780. * nto-procfs.c: Update.
  1781. * monitor.c: Update.
  1782. * linux-nat.c: Update.
  1783. * inftarg.c: Update.
  1784. * hpux-thread.c: Update.
  1785. * go32-nat.c: Update.
  1786. * gnu-nat.c: Update.
  1787. * exec.c: Update.
  1788. * corelow.c: Update.
  1789. * bsd-kvm.c: Update.
  1790. * aix-thread.c: Update.
  1791. 2004-10-08 Andrew Cagney <cagney@gnu.org>
  1792. * target.c (debug_target): Move to near start of file.
  1793. (target_stopped_data_address_p): Re-org logic, add casts.
  1794. 2004-10-02 Mark Kettenis <kettenis@gnu.org>
  1795. * solib-sunos.c [HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS] (link_map)
  1796. (lm_addr, lm_name, lm_next, link_dynamic_2, ld_loaded, rtc_symb)
  1797. (rtc_sp, rtc_next, ld_debug, ldd_in_debugger, ldd_bp_addr)
  1798. (ldd_bp_inst, ldd_cp, link_dynamic, ld_version, ldd, ld_un, ld_2):
  1799. New defines.
  1800. 2004-10-08 Jeff Johnston <jjohnstn@redhat.com>
  1801. * target.h (to_stopped_data_address): Change prototype to
  1802. take a CORE_ADDR pointer and return an int.
  1803. * target.c (update_current_target): Change to_stopped_data_address
  1804. to match new prototype.
  1805. (debug_to_stopped_data_address): Change appropriately.
  1806. * breakpoint.c (bpstat_stop_status): Change call to
  1807. target_stopped_data_address to use new prototype.
  1808. * frv-tdep.c (frv_have_stopped_data_address): New function.
  1809. (frv_stopped_data_address): Change to new prototype and
  1810. functionality.
  1811. * ia64-linux-nat.c (ia64_stopped_data_address): Change to new
  1812. prototype and functionality.
  1813. (ia64_stopped_by_watchpoint): New function.
  1814. * i386-nat.c (i386_stopped_data_address): Change to new
  1815. prototype and functionality.
  1816. (i386_stopped_by_watchpoint): New function.
  1817. * remote.c (remote_stopped_data_address): Change to new prototype
  1818. and functionality.
  1819. * remote-m32r-sdi.c (m32r_stopped_data_address): Ditto.
  1820. * config/frv/tm-frv.h (frv_stopped_data_address): Change prototype.
  1821. (STOPPED_BY_WATCHPOINT): Change to use frv_have_stopped_data_address.
  1822. * config/i386/nm-i386.h (STOPPED_BY_WATCHPOINT): Change to use
  1823. new i386_stopped_by_watchpoint function.
  1824. (i386_stopped_by_watchpoint): New prototype.
  1825. (i386_stoppped_data_address): Change to new prototype.
  1826. * config/ia64/nm-linux.h (STOPPED_BY_WATCHPOINT): Change to use
  1827. new ia64_stopped_by_watchpoint function.
  1828. (ia64_stopped_by_watchpoint): New prototype.
  1829. (ia64_stopped_data_address): Ditto.
  1830. 2004-10-08 Paul Hilfinger <Hilfinger@gnat.com>
  1831. * ada-typeprint.c (ada_print_type): Use int_string for printing
  1832. modulus of modular type.
  1833. * ada-lang.h (ada_modulus): Change return type to unsigned.
  1834. * ada-lang.c (ada_language_arch_info): Correct type of
  1835. string_char_type.
  1836. (ada_modulus): Return unsigned result.
  1837. (ada_lookup_symbol): Remove user disambiguation and modify comment
  1838. accordingly.
  1839. 2004-10-08 Eric Botcazou <ebotcazou@act-europe.fr>
  1840. Committed by Paul Hilfinger.
  1841. * ada-lang.c (decode_packed_array): On big-endian targets,
  1842. left-justify the value if it comes with a modular type.
  1843. 2004-10-08 Joel Brobecker <brobecker@gnat.com>
  1844. Committed by Paul Hilfinger.
  1845. * ada-lang.c (template_to_static_fixed_type): Fix a small typo.
  1846. (is_name_suffix): Add support for "___JM" suffixes.
  1847. (ada_check_typedef): Renames ada_completed_type.
  1848. Update all users of CHECK_TYPEDEF, check_typedef, and
  1849. ada_complete_type to call ada_check_typedef.
  1850. * ada-typeprint.c: Likewise.
  1851. * ada-valprint.c: Likewise.
  1852. 2004-10-08 Corinna Vinschen <vinschen@redhat.com>
  1853. * infcall.c (call_function_by_hand): Use correct VALUE_TYPE macro.
  1854. 2004-10-08 Nick Roberts <nickrob@snap.net.nz>
  1855. * MAINTAINERS: Update e-mail address.
  1856. 2004-10-07 Daniel Jacobowitz <dan@debian.org>
  1857. From Maciej W. Rozycki <macro@mips.com>:
  1858. * mips-tdep.c (mips32_next_pc): Check the register's contents,
  1859. not its number for BLEZ/BLEZL and BGTZ/BGTZL.
  1860. 2004-10-07 Kei Sakamoto <sakamoto.kei@renesas.com>
  1861. * m32r-tdep.c (decode_prologue): Support functions written
  1862. in assembler language. Recognize trap instructions as the
  1863. end of prologue.
  1864. (m32r_frame_unwind_cache): Ditto.
  1865. (m32r_skip_prologue): Extend search limit. Quit analyzing
  1866. prologue if pc's location is not readable.
  1867. 2004-10-06 Paul N. Hilfinger <Hilfinger@gnat.com>
  1868. * Makefile.in (.l.c): Do conversions of names of alloc and free
  1869. functions that are done for .y.c files, plus special one
  1870. for yy_flex_realloc. Also, correct missing-file tests here.
  1871. * ada-lex.l (malloc, free): Remove macros.
  1872. (resize_tempbuf): Use "realloc"; rely on sed changes to convert to
  1873. xrealloc.
  1874. (ada_flex_use): Dummy definition to remove warnings about unused
  1875. functions.
  1876. * ada-exp.y (dummy_string_to_ada_operator): Temporary definition
  1877. to suppress warning.
  1878. 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
  1879. * sh-tdep.c (sh_return_value_nofpu): New function, implementing
  1880. RETURN_VALUE.
  1881. (sh_return_value_fpu): Ditto for CPUs with FPU.
  1882. (sh_gdbarch_init): Remove STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
  1883. RETURN_VALUE_ON_STACK and USE_STRUCT_CONVENTION throughout.
  1884. Install sh_return_value_nofpu resp. sh_return_value_fpu as
  1885. RETURN_VALUE functions.
  1886. 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
  1887. * sh-tdep.c (sh_pseudo_register_read): Add PSEUDO_BANK_REGNUM handling.
  1888. (sh_pseudo_register_write): Ditto.
  1889. 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
  1890. * sh-tdep.c (IS_MACL_STS): New define.
  1891. (IS_MOVI20): Ditto.
  1892. (IS_MACL_LDS): Ditto.
  1893. (sh_analyze_prologue): Recognize STS.L MACL,@-r15 and MOVI20
  1894. instructions in prologue.
  1895. (sh_in_function_epilogue_p): Recognize LDS.L @r15+,MACL and MOVI20
  1896. instructions in epilogue.
  1897. 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
  1898. * sh-tdep.c (SH_NUM_REGS): Define as 67.
  1899. (sh_sh_register_name): Add eight empty register names.
  1900. (sh_sh3_register_name): Ditto.
  1901. (sh_sh3e_register_name): Ditto.
  1902. (sh_sh2e_register_name): Ditto.
  1903. (sh_sh2a_register_name): New function, defining SH2A register set.
  1904. (sh_sh2a_nofpu_register_name): New function, defining SH2A register set
  1905. in nofpu case.
  1906. (sh_sh_dsp_register_name): Add eight empty register names.
  1907. (sh_sh3_dsp_register_name): Ditto.
  1908. (sh_sh4_register_name): Ditto.
  1909. (sh_sh4_nofpu_register_name): Ditto.
  1910. (sh_sh4al_dsp_register_name): Ditto.
  1911. (sh2a_show_regs): New function.
  1912. (sh2a_nofpu_show_regs): New function.
  1913. (sh_sh2a_register_type): New function.
  1914. (do_bank_register_info): New function.
  1915. (sh_print_pseudo_register): Call do_bank_register_info.
  1916. Call sh_print_pseudo_register for valid "bank" register.
  1917. (sh_sh2a_register_sim_regno): New function.
  1918. (sh_gdbarch_init): Add bfd_mach_sh2a and bfd_mach_sh2a_nofpu handling.
  1919. Increment pseudo register count by one for all sh variants with
  1920. pseudo registers to accomodate pseudo bank register.
  1921. * sh-tdep.h: Add register numbers for R0_BANK0_REGNUM, MACHB_REGNUM,
  1922. IVNB_REGNUM, PRB_REGNUM, GBRB_REGNUM, MACLB_REGNUM, BANK_REGNUM,
  1923. IBCR_REGNUM, IBNR_REGNUM, TBR_REGNUM and PSEUDO_BANK_REGNUM.
  1924. Increment pseudo register numbers.
  1925. 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
  1926. * dwarf2read.c (read_subroutine_type): Call make_function_type
  1927. instead of lookup_function_type.
  1928. 2004-10-05 Jim Blandy <jimb@redhat.com>
  1929. * linux-nat.c (_initialize_linux_nat): Rename child_ops.
  1930. (Previous change missed some uses.)
  1931. 2004-10-05 Andrew Cagney <cagney@gnu.org>
  1932. * target.h (deprecated_child_ops): Rename child_ops.
  1933. * wince.c: Update copyright. Rename child_ops.
  1934. * win32-nat.c: Rename child_ops.
  1935. * target.c: Rename child_ops.
  1936. * rs6000-nat.c: Rename child_ops.
  1937. * linux-nat.c: Rename child_ops.
  1938. * infttrace.c: Rename child_ops.
  1939. * inftarg.c: Rename child_ops.
  1940. * infptrace.c: Rename child_ops.
  1941. * hppah-nat.c: Update copyright. Rename child_ops.
  1942. * hpux-thread.c: Update copyright. Rename child_ops.
  1943. 2004-10-05 Daniel Jacobowitz <dan@debian.org>
  1944. * remote.c (remote_xfer_partial): Handle TARGET_OBJECT_MEMORY.
  1945. 2004-10-05 Andrew Cagney <cagney@gnu.org>
  1946. * version.in: Bump to version 6.2.50_YYYY-MM-DD-cvs.
  1947. 2004-10-05 Daniel Jacobowitz <dan@debian.org>
  1948. * dwarf2read.c (REF_HASH_SIZE): Move earlier.
  1949. (die_ref_table): Remove.
  1950. (struct dwarf2_cu): Add DIES, DEPENDENCIES, and DIE_REF_TABLE.
  1951. (struct dwarf2_per_cu_data): Add PSYMTAB. Add a comment describing
  1952. the usage of this type.
  1953. (struct dwarf2_per_objfile): Update comment for ALL_COMP_UNITS.
  1954. (struct dwarf2_pinfo, PST_PRIVATE, DWARF_INFO_OFFSET): Remove.
  1955. (struct dwarf2_queue_item, dwarf2_queue, dwarf2_queue_tail): New.
  1956. (dwarf2_create_include_psymtab): Update comment.
  1957. (find_partial_die): Remove third argument. Remove unreachable call
  1958. to error ().
  1959. (dwarf2_find_containing_comp_unit): Update comments. Change one
  1960. assertion to an error. Remove an unreachable error.
  1961. (dwarf2_find_comp_unit): Update comments.
  1962. (type_at_offset): Remove dead code.
  1963. (make_cleanup_free_die_list, dwarf2_empty_hash_tables): Remove.
  1964. (store_in_ref_table): Add CU argument.
  1965. (follow_die_ref): Take DIE, attribute, and CU arguments. Handle
  1966. inter-compilation-unit references.
  1967. (load_full_comp_unit, process_full_comp_unit): New functions, based
  1968. on psymtab_to_symtab_1.
  1969. (psymtab_to_symtab_1): Use them.
  1970. (dwarf2_add_dependence): New function.
  1971. (dwarf2_build_psymtabs_hard): Set the psymtab in per_cu. Always create
  1972. a per_cu structure, and save it in READ_PSYMTAB_PRIVATE.
  1973. (partial_die_parent_scope, guess_structure_name): Update for changes
  1974. to find_partial_die.
  1975. (dwarf2_psymtab_to_symtab): Initialize dwarf2_per_objfile here.
  1976. (queue_comp_unit, process_queue, dwarf2_release_queue): New.
  1977. (read_comp_unit): Don't call dwarf2_empty_hash_tables.
  1978. (read_die_and_children): Update call to store_in_ref_table.
  1979. (do_free_die_list_cleanup): Remove.
  1980. (fixup_partial_die): Update for changes to find_partial_die.
  1981. (read_full_die): Handle queueing absolute references.
  1982. (read_attribute_value): Use DW_ADDR for all DW_FORM_ref* forms.
  1983. (dwarf2_attr, die_specification, die_type)
  1984. (die_containing_type, dwarf2_extension): Update calls to
  1985. follow_die_ref.
  1986. (dump_die): Update DW_FORM_ref* handling.
  1987. (dwarf2_get_ref_die_offset): Likewise.
  1988. (free_one_comp_unit): Release the dies list.
  1989. (dwarf2_mark_helper): New function.
  1990. (dwarf2_mark): Use it.
  1991. 2004-10-05 Mark Kettenis <kettenis@jive.nl>
  1992. * procfs.c (procfs_xfer_partial): Use WRITEBUF instead of READBUF
  1993. when writing to memory.
  1994. 2004-10-05 Kei Sakamoto <sakamoto.kei@renesas.com>
  1995. * m32r-tdep.c (m32r_use_struct_convention): Delete function.
  1996. (m32r_extract_struct_value_address): Delete function.
  1997. (m32r_return_value): New function.
  1998. (m32r_gdbarch_init): Instead of store_return_value,
  1999. extract_return_value, deprecated_extract_struct_value_address
  2000. and deprecated_use_struct_convention, set return_value.
  2001. 2004-10-03 Daniel Jacobowitz <dan@debian.org>
  2002. * dwarf2read.c (read_subrange_type): Add comment for variable
  2003. sized arrays.
  2004. 2004-10-03 Paul Hilfinger <hilfingr@nile.gnat.com>
  2005. * Makefile.in (.l.c): Modify rule for compatibility with recent
  2006. versions of flex, and remove most command-line options.
  2007. * ada-lex.l: Add %options line in place of -I -i and -s command-line
  2008. options.
  2009. 2004-10-02 Paul N. Hilfinger <Hilfinger@gnat.com>
  2010. Turn on initial Ada support (mainly expression evaluation).
  2011. * Makefile.in (SFILES): Remove ada-tasks.c.
  2012. (HFILES_NO_SRCDIR): Add ada-lang.h.
  2013. (COMMON_OBS): Add ada-lang.o, ada-typeprint.o, ada-valprint.o.
  2014. (YYOBJ): Add ada-exp.o.
  2015. (rule .l.c): Generalize to not mention ada.
  2016. * symtab.c: Include ada-lang.h.
  2017. (symbol_natural_name, symbol_demangled_name)
  2018. (symbol_search_name): Add Ada case.
  2019. 2004-10-01 Andrew Cagney <cagney@gnu.org>
  2020. * Makefile.in (COMMON_OBS): Add inf-child.o.
  2021. * config/vax/obsd.mh (NATDEPFILES): Remove inf-child.o.
  2022. * config/vax/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
  2023. * config/vax/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
  2024. * config/powerpc/nbsd.mh (NATDEPFILES): Remove inf-child.o.
  2025. * config/m88k/obsd.mh (NATDEPFILES): Remove inf-child.o.
  2026. * config/i386/obsdaout.mh (NATDEPFILES): Remove inf-child.o.
  2027. * config/i386/obsd64.mh (NATDEPFILES): Remove inf-child.o.
  2028. * config/i386/obsd.mh (NATDEPFILES): Remove inf-child.o.
  2029. * config/i386/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
  2030. * config/i386/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
  2031. * config/i386/nbsd64.mh (NATDEPFILES): Remove inf-child.o.
  2032. * config/i386/fbsd64.mh (NATDEPFILES): Remove inf-child.o.
  2033. * config/i386/fbsd.mh (NATDEPFILES): Remove inf-child.o.
  2034. * target.c (xfer_using_stratum): Change return type to LONGEST.
  2035. On each iteration offset, readbuf and writebuf.
  2036. * inf-ptrace.c (inf_ptrace_xfer_partial): Simplify computation of
  2037. partial_length, and read/modify/write predicate, update comments.
  2038. Pass buffer.word to ptrace write.
  2039. 2004-10-01 Paul N. Hilfinger <Hilfinger@gnat.com>
  2040. * symfile.c (init_filename_language_table): Add extensions for
  2041. Ada.
  2042. * defs.h (enum language): Add language_ada.
  2043. * gdbtypes.h (TYPE_FLAG_FIXED_INSTANCE): Define.
  2044. * ada-lang.c: Strip code that is conditionalized out by GNAT_GDB.
  2045. (add_symbols_from_enclosing_procs): Make a no-op for now.
  2046. (ada_unqualified_name,add_angle_brackets,function_name_from_pc)
  2047. (extended_canonical_line_spec, find_sal_from_funcs_and_line)
  2048. (find_line_in_linetable, find_next_line_in_linetable)
  2049. (read_all_symtabs, is_plausible_func_for_line)
  2050. (adjust_pc_past_prologue, error_breakpoint_runtime_sym_not_found)
  2051. (is_runtime_sym_defined, check_size): Remove declaration.
  2052. (function_name_from_pc, ada_translate_error_message)
  2053. (ada_lookup_minimal_symbol): Remove definition.
  2054. (ada_add_block_symbols): Remove useless label.
  2055. * ada-lang.h (ada_maybe_exception_partial_symbol): Remove
  2056. useless declaration.
  2057. (ada_is_exception_sym): Likewise.
  2058. 2004-09-30 Kei Sakamoto <sakamoto.kei@renesas.com>
  2059. Add m32r-linux support.
  2060. * configure.tgt: Add m32r*-*-linux*.
  2061. * Makefile.in (ALLDEPFILES): Add m32r-tdep.c, m32r-linux-nat.c
  2062. and m32r-linux-tdep.c.
  2063. (m32r-linux-nat.o, m32r-linux-tdep.o): New dependencies.
  2064. * m32r-tdep.c: Move some definitions to m32r-tdep.h.
  2065. * config/djgpp/fnchange.lst: Add m32r-linux-nat.c and
  2066. m32r-linux-tdep.c.
  2067. * m32r-tdep.h, m32r-linux-nat.c, m32r-linux-tdep.c,
  2068. config/m32r/linux.mh, config/m32r/linux.mt,
  2069. config/m32r/nm-linux.h: New files.
  2070. 2004-09-30 Joel Brobecker <brobecker@gnat.com>
  2071. * mips-tdep.c (mips32_decode_reg_save): Remove, unused.
  2072. (mips32_fetch_instruction): Remove, unused.
  2073. 2004-09-30 Joel Brobecker <brobecker@gnat.com>
  2074. * mips-tdep.c (mips_insn16_frame_cache): Remove dead code or
  2075. conditions that will always be true.
  2076. 2004-09-30 Mark Kettenis <kettenis@gnu.org>
  2077. * vaxbsd-nat.c: Include "target,h" and "inf-ptrace.h".
  2078. (vaxbsd_fetch_inferior_registers): Rename from
  2079. fetch_inferior_registers. Make static.
  2080. (vaxbsd_store_inferior_registers): Rename from
  2081. store_inferior_registers. Make static.
  2082. (_initialize_vaxbsd_nat): Construct and add target vector.
  2083. * config/vax/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
  2084. inftarg.o. Add inf-child.o and inf-ptrace.o.
  2085. * config/vax/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
  2086. inftarg.o. Add inf-child.o and inf-ptrace.o.
  2087. (NAT_FILE): Remove.
  2088. * config/vax/obsd.mh (NATDEPFILES): Remove infptrace.o and
  2089. inftarg.o. Add inf-child.o and inf-ptrace.o.
  2090. (NAT_FILE): Remove.
  2091. * Makefile.in (vaxbsd-nat.o): Update dependencies.
  2092. * m88kbsd-nat.c: Include "target.h" and "inf-ptrace.h".
  2093. (m88kbsd_fetch_inferior_registers): Rename from
  2094. fetch_inferior_registers. Make static.
  2095. (m88kbsd_store_inferior_registers): Rename from
  2096. store_inferior_registers. Make static.
  2097. (_initialize_m88kbsd_nat): New prototype and function.
  2098. * config/m88k/obsd.mh (NATDEPFILES): Remove infptrace.o and
  2099. inftarg.o. Add inf-child.o and inf-ptrace.o.
  2100. (NAT_FILE): Remove.
  2101. * Makefile.in (m88kbsd-nat.o): Update dependencies.
  2102. 2004-09-30 Andrew Cagney <cagney@gnu.org>
  2103. * target.c (target_xfer_partial): New function.
  2104. (target_read_memory_partial, target_write_memory_partial)
  2105. (default_xfer_partial, target_read_partial, target_write_partial)
  2106. (xfer_using_stratum): Use.
  2107. (debug_to_xfer_partial): Delete function.
  2108. (setup_target_debug): Do not override to_xfer_partial.
  2109. 2004-09-30 Mark Kettenis <kettenis@chello.nl>
  2110. * fork-child.c: Update copyright year. Fix coding style.
  2111. 2004-09-29 Mark Kettenis <kettenis@gnu.org>
  2112. * defs.h (msavestring, mstrsave): Remove prototypes.
  2113. * utils.c (msavestring, mstrsave): Remove functions.
  2114. * objfiles.c (allocate_objfile): Use xstrdup instead of mstrsave.
  2115. * solib-sunos.c (allocate_rt_common_objfile): Use xstrdup instead
  2116. of mstrsave.
  2117. * source.c (find_and_open_source): Use xstrdup instead of
  2118. mstrsave.
  2119. 2004-09-30 Andrew Cagney <cagney@gnu.org>
  2120. * inf-ptrace.c (inf_ptrace_target): Do not set to_xfer_memory.
  2121. (inf_ptrace_xfer_memory): Delete.
  2122. * target.c (target_xfer_partial_p, xfer_using_stratum): New.
  2123. (target_read_memory, target_write_memory): Use xfer_using_stratum
  2124. when target_xfer_partial_p.
  2125. (debug_target): Move to start of file.
  2126. (target_read_memory_partial, target_write_memory_partial): Use
  2127. to_xfer_partial when target_xfer_partial_p.
  2128. * inf-ptrace.c (inf_ptrace_xfer_partial): Replace call to
  2129. inf_ptrace_xfer_memory with equivalent code.
  2130. * inftarg.c (child_xfer_partial): When performing a write, pass
  2131. writebuf to child_xfer_memory.
  2132. * target.c (target_read_string): Use target_read_memory instead of
  2133. target_xfer_memory.
  2134. 2004-09-29 Andrew Cagney <cagney@gnu.org>
  2135. * infptrace.c (kill_inferior): Fix typo, in previous inline. Pass
  2136. the address of status.
  2137. * infptrace.c (ptrace_wait): Mention problem with HPUX.
  2138. (kill_inferior): Inline ptrace_wait call.
  2139. * linux-nat.c (kill_inferior): Inline ptrace_wait call.
  2140. * inftarg.c (child_wait): Inline ptrace_wait call.
  2141. * target.h (struct target_ops): Delete field to_post_wait.
  2142. (target_post_wait): Delete macro.
  2143. (child_post_wait): Delete declaration.
  2144. * target.c (update_current_target, update_current_target)
  2145. (debug_to_post_wait, setup_target_debug): Delete functions and
  2146. references.
  2147. * infttrace.c (ptrace_wait): Delete call to target_post_wait.
  2148. * inftarg.c (child_post_wait): Delete.
  2149. (init_child_ops): Do not set to_post_wait.
  2150. * infptrace.c (ptrace_wait): Delete call to target_post_wait.
  2151. * inf-ptrace.c (inf_ptrace_wait): Delete call to target_post_wait.
  2152. * inf-child.c (inf_child_post_wait): Delete.
  2153. (inf_child_target): Do not set to_post_wait.
  2154. * inf-ptrace.c (inf_ptrace_post_wait): Delete.
  2155. (inf_ptrace_target): Do not set to_post_wait.
  2156. * wince.c (child_ops): Delete.
  2157. * win32-nat.c (child_ops): Delete.
  2158. * inftarg.c (inftarg_set_find_memory_regions)
  2159. (inftarg_set_make_corefile_notes): Delete functions.
  2160. (_initialize_linux_nat): Inline calls.
  2161. * target.h (child_ops): Declare.
  2162. * inftarg.c (child_ops): Move from here ...
  2163. * target.c (child_ops): ... to here.
  2164. * wince.c (child_ops): Delete extern declaration.
  2165. * win32-nat.c (child_ops): Delete extern declaration.
  2166. * linux-nat.c (child_ops): Delete extern declaration.
  2167. * hpux-thread.c (child_ops): Delete extern declaration.
  2168. 2004-09-28 Mark Kettenis <kettenis@gnu.org>
  2169. * configure.tgt: Set default OS/ABI for OpenBSD ELF targets.
  2170. 2004-09-28 Mark Kettenis <kettenis@gnu.org>
  2171. * configure.in: Only set host_makefile_frag when building a native
  2172. debugger.
  2173. * configure: Regenerate.
  2174. * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Register OS/ABI
  2175. for OpenBSD ELF.
  2176. 2004-09-28 Andrew Cagney <cagney@gnu.org>
  2177. Problem identified by Paul Hilfinger.
  2178. * Makefile.in (ada_lex_c): Define.
  2179. (ada-lex.o): Delete rule.
  2180. * linux-proc.c: Delete file.
  2181. * Makefile.in: Update.
  2182. * config/sparc/linux64.mh (NATDEPFILES):
  2183. * config/sparc/linux.mh (NATDEPFILES): Update.
  2184. * config/s390/s390.mh (NATDEPFILES): Update.
  2185. * config/powerpc/ppc64-linux.mh (NATDEPFILES): Update.
  2186. * config/powerpc/linux.mh (NATDEPFILES): Update.
  2187. * config/pa/linux.mh (NATDEPFILES): Update.
  2188. * config/mips/linux.mh (NATDEPFILES): Update.
  2189. * config/m68k/linux.mh (NATDEPFILES): Update.
  2190. * config/ia64/linux.mh (NATDEPFILES): Update.
  2191. * config/i386/linux64.mh (NATDEPFILES): Update.
  2192. * config/i386/linux.mh (NATDEPFILES): Update.
  2193. * config/arm/linux.mh (NATDEPFILES): Update.
  2194. * config/alpha/alpha-linux.mh (NATDEPFILES): Update.
  2195. * linux-nat.c: Update copyright. Include <sys/param.h>,
  2196. <sys/procfs.h>, "elf-bfd.h", "gregset.h", <ctype.h>,
  2197. "gdbthread.h", "gdb_stat.h", <fcntl.h>.
  2198. (O_LARGEFILE): Possibly define.
  2199. (_initialize_linux_nat, linux_proc_pending_signals)
  2200. (add_line_to_sigset, linux_proc_xfer_memory)
  2201. (linux_nat_info_proc_cmd, linux_nat_make_corefile_notes)
  2202. (linux_nat_do_registers, linux_nat_corefile_thread_callback)
  2203. (struct linux_corefile_thread_data)
  2204. (linux_nat_do_thread_registers, linux_nat_find_memory_regions)
  2205. (child_pid_to_exec_file): Insert code previously in linux-proc.c.
  2206. 2004-09-16 Andrew Cagney <cagney@gnu.org>
  2207. * lin-lwp.c: Delete file.
  2208. * linux-nat.c: Include "gdb_assert.h", "gdb_string.h", <unistd.h>,
  2209. <sys/syscall.h>, "gdbthread.h", "gdbcmd.h", "regcache.h".
  2210. (status_to_str, init_lwp_list, add_lwp, delete_lwp)
  2211. (find_lwp_pid, iterate_over_lwps, lin_lwp_attach_lwp)
  2212. (linux_nat_attach, detach_callback, linux_nat_detach)
  2213. (resume_callback, resume_clear_callback, linux_nat_resume)
  2214. (kill_lwp, linux_nat_handle_extended, wait_lwp, stop_callback)
  2215. (stop_wait_callback, linux_nat_has_pending, flush_callback)
  2216. (status_callback, running_callback, count_events_callback)
  2217. (select_singlestep_lwp_callback, select_event_lwp_callback)
  2218. (cancel_breakpoints_callback, select_event_lwp, resumed_callback)
  2219. (child_wait, stop_and_resume_callback, linux_nat_wait)
  2220. (kill_callback, kill_wait_callback, linux_nat_kill)
  2221. (linux_nat_create_inferior, linux_nat_mourn_inferior)
  2222. (linux_nat_xfer_memory, linux_nat_thread_alive)
  2223. (linux_nat_pid_to_str, init_linux_nat_ops, sigchld_handler)
  2224. (_initialize_linux_nat): New functions.
  2225. * Makefile.in: Update all dependencies.
  2226. * config/sparc/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
  2227. * config/sparc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
  2228. * config/s390/s390.mh (NATDEPFILES): Remove lin-lwp.o.
  2229. * config/powerpc/ppc64-linux.mh (NATDEPFILES): Remove lin-lwp.o.
  2230. * config/powerpc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
  2231. * config/pa/linux.mh (NATDEPFILES): Remove lin-lwp.o.
  2232. * config/mips/linux.mh (NATDEPFILES): Remove lin-lwp.o.
  2233. * config/m68k/linux.mh (NATDEPFILES): Remove lin-lwp.o.
  2234. * config/ia64/linux.mh (NATDEPFILES): Remove lin-lwp.o.
  2235. * config/i386/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
  2236. * config/i386/linux.mh (NATDEPFILES): Remove lin-lwp.o.
  2237. * config/arm/linux.mh (NATDEPFILES): Remove lin-lwp.o.
  2238. * config/alpha/alpha-linux.mh (NATDEPFILES): Remove lin-lwp.o.
  2239. 2004-09-27 Mark Kettenis <kettenis@gnu.org>
  2240. * config/i386/fbsd64.mh, config/i386/nbsd64.mh,
  2241. config/i386/obsd64.mh (NAT_FILE): Remove variable.
  2242. * configure.in: Don't comment out NATDEPFILES in the generated
  2243. Makefile if NAT_FILE is unset.
  2244. * configure: Regenerate.
  2245. 2004-09-27 Andrew Cagney <cagney@gnu.org>
  2246. * infrun.c (check_for_old_step_resume_breakpoint): Delete.
  2247. (insert_step_resume_breakpoint): Delete.
  2248. (insert_step_resume_breakpoint_at_frame): New function.
  2249. (insert_step_resume_breakpoint_at_sal): New function.
  2250. (handle_inferior_event, step_into_function)
  2251. (insert_step_resume_breakpoint): Simplify by using same.
  2252. * gdb_indent.sh (types): Add caddr_t to list of predefined types.
  2253. 2004-09-26 Mark Kettenis <kettenis@gnu.org>
  2254. * fbsd-proc.c: Remove file.
  2255. * Makefile.in (fbsd-proc.o): Remove dependency.
  2256. * i386fbsd-nat.c (_initialize_i386fbsd_nat): Group target related
  2257. code together.
  2258. * config/i386/nm-fbsd64.h: Remove file.
  2259. * config/i386/fbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
  2260. 2004-09-26 Mark Kettenis <kettenis@gnu.org>
  2261. * amd64-nat.h: Update copyright year.
  2262. (amd64bsd_target): New prototype.
  2263. * amd64bsd-nat.c: Include "target.h" and "inf-ptrace.h".
  2264. (amd64bsd_target): New function.
  2265. (amd64bsd_fetch_inferior_registers): Rename from
  2266. fetch_inferior_registers. Make static.
  2267. (amd64bsd_store_inferior_registers): Rename from
  2268. store_inferior_registers. Make static.
  2269. * amd64fbsd-nat.c: Include "target.h" and "fbsd-nat.h".
  2270. (_initialize_amd64fbsd_nat): Construct and add target vector.
  2271. * amd64nbsd-nat.o: Include "target.h".
  2272. (_initialize_amd64nbsd_nat): Construct and add target vector.
  2273. * amd64obsd-nat.c: Include "target.h".
  2274. (_initialize_amd64obsd_nat): Construct and add target vector.
  2275. * config/i386/nm-fbsd64.h (CHILD_PID_TO_EXEC_FILE): Remove define.
  2276. * config/i386/fbsd64.mh (NATDEPFILES): Remove infptrace.o,
  2277. inftarg.o and fbsd-proc.o. Add inf-child.o, inf-ptrace.o and
  2278. fbsd-nat.o.
  2279. * config/i386/nbsd64.mh, config/i386/obsd64.mh (NATDEPFILES):
  2280. Remove infptrace.o and inftarg.o. Add inf-child.o and
  2281. inf-ptrace.o.
  2282. * Makefile.in (amd64bsd-nat.o, amd64fbsd-nat.o, amd64nbsd-nat.o)
  2283. (amd64obsd-nat.o): Update dependencies.
  2284. 2004-09-25 Mark Kettenis <kettenis@gnu.org>
  2285. * config/i386/fbsd.mh (NATDEPFILES): Remove infptrace.o.
  2286. * config/i386/nbsdaout.mh (NATDEPFILES): Remove infptrace.o.
  2287. * config/i386/nbsdelf.mh (NATDEPFILES): Remove infptrace.o.
  2288. * config/i386/obsd.mh (NATDEPFILES): Remove infptrace.o.
  2289. * config/i386/obsdaout.mh (NATDEPFILES): Remove infptrace.o.
  2290. * inf-ptrace.c (inf_ptrace_attach): Remove redundant parenthesis.
  2291. Inline attach call.
  2292. (inf_ptrace_detach): Inline detach call.
  2293. * configure.in: Check for waddstr instead of mvwaddstr when
  2294. searching for curses library. Check for wborder.
  2295. * configure, config.in: Regenerate.
  2296. * tui/tui-wingeneral.c (box_win): Use box if wborder isn't
  2297. available.
  2298. * inf-ptrace.c (inf_ptrace_xfer_memory): Fix gdb_indent.sh wart.
  2299. 2004-09-24 Robert Picco <Robert.Picco@hp.com>
  2300. Committed by Andrew Cagney.
  2301. * remote.c (set_remote_protocol_p_packet_cmd, remote_protocol_p)
  2302. (show_remote_protocol_p_packet_cmd): New. Implement 'p' packet.
  2303. configuration.
  2304. (fetch_register_using_p): Implement 'p' packet. Based on code by
  2305. Fernando Nasser.
  2306. (remote_fetch_registers): Call fetch_register_using_p.
  2307. (init_all_packet_configs, show_remote_cmd)
  2308. (_initialize_remote): Add p-packet.
  2309. 2004-09-24 Mark Kettenis <kettenis@gnu.org>
  2310. * inf-ptrace.c (inf_ptrace_kill_inferior): Call ptrace directly
  2311. instead of call_ptrace. Call wait directly instead of
  2312. ptrace_wait.
  2313. (inf_ptrace_me): Call ptrace directly instead of call_ptrace.
  2314. (inf_ptrace_wait): Inline ptrace_wait call.
  2315. 2004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
  2316. * Makefile.in (.y.c): Revert previous change. ../ylwrap was
  2317. rolled back instead.
  2318. 2004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
  2319. * Makefile.in (.y.c): Modify $(YLWRAP) invocation to use
  2320. the new argument order.
  2321. 2004-09-23 Corinna Vinschen <vinschen@redhat.com>
  2322. * MAINTAINERS: Remove "broken" from XStormy16 entry.
  2323. * xstormy16-tdep.c: Convert XStormy16 target to latest GDB methods.
  2324. (struct gdbarch_tdep): Remove.
  2325. (struct xstormy16_frame_cache): New frame cache structure.
  2326. (xstormy16_register_byte, xstormy16_register_raw_size)
  2327. (xstormy16_reg_virtual_type, xstormy16_register_type)
  2328. (xstormy16_push_arguments, xstormy16_push_return_address)
  2329. (xstormy16_pop_frame, xstormy16_store_struct_return)
  2330. (xstormy16_store_return_value, xstormy16_extract_struct_value_address)
  2331. (xstormy16_frame_saved_register, xstormy16_get_saved_register)
  2332. (xstormy16_scan_prologue, xstormy16_frame_init_saved_regs)
  2333. (xstormy16_frame_saved_pc, xstormy16_init_extra_frame_info)
  2334. (xstormy16_frame_chain, xstormy16_frame_chain_valid,
  2335. (xstormy16_saved_pc_after_call, xstormy16_save_dummy_frame_to): Remove.
  2336. (xstormy16_use_struct_convention): Drop gcc_p parameter.
  2337. (xstormy16_extract_return_value, xstormy16_store_return_value):
  2338. Regcachify. Drop useless struct convention handling.
  2339. (xstormy16_register_type, xstormy16_return_value)
  2340. (xstormy16_push_dummy_call, xstormy16_analyze_prologue)
  2341. (xstormy16_alloc_frame_cache, xstormy16_frame_cache)
  2342. (xstormy16_frame_prev_register, xstormy16_frame_this_id)
  2343. (xstormy16_frame_base_address, xstormy16_frame_sniffer)
  2344. (xstormy16_unwind_sp, xstormy16_unwind_pc)
  2345. (xstormy16_unwind_dummy_id) : New functions.
  2346. (xstormy16_skip_prologue): Call xstormy16_analyze_prologue instead
  2347. of xstormy16_scan_prologue.
  2348. (xstormy16_frame_unwind): New frame_unwind structure.
  2349. (xstormy16_frame_base): New frame_base structure.
  2350. (xstormy16_gdbarch_init): Accomodate all of the above changes.
  2351. Reshuffle for better readability. Also add dwarf2_frame_sniffer.
  2352. 2004-09-22 Mark Kettenis <kettenis@gnu.org>
  2353. * language.c (language_gdbarch_post_init): Fix off-by one error.
  2354. 2004-09-21 Daniel Jacobowitz <dan@debian.org>
  2355. * dwarf2read.c (struct dwarf2_per_cu_data): New field type_hash.
  2356. (struct dwarf2_offset_and_type): New.
  2357. (set_die_type, reset_die_and_siblings_types, get_die_type)
  2358. (offset_and_type_hash, offset_and_type_eq): New functions.
  2359. (read_structure_type, read_enumeration_type, read_array_type)
  2360. (read_namespace, read_tag_pointer_type, read_tag_ptr_to_member_type)
  2361. (read_tag_reference_type, read_tag_const_type)
  2362. (read_tag_volatile_type, read_tag_string_type, read_subroutine_type)
  2363. (read_typedef, read_base_type, read_subrange_type): Use
  2364. set_die_type.
  2365. 2004-09-20 Daniel Jacobowitz <dan@debian.org>
  2366. * Makefile.in (dwarf2read.o): Update dependencies.
  2367. * dwarf2read.c: Include "command.h" and "gdbcmd.h".
  2368. (struct dwarf2_per_objfile): Add all_comp_units, n_comp_units,
  2369. and read_in_chain.
  2370. (struct dwarf2_cu): Add read_in_chain, per_cu, last_used,
  2371. mark, and has_form_ref_addr.
  2372. (struct dwarf2_per_cu_data): New.
  2373. (dwarf2_max_cache_age): New.
  2374. (dwarf2_build_psymtabs_hard): Free cached compilation units
  2375. after loading. Create and manage the list of compilation units.
  2376. Remove unnecessary NULL initialization. Fix indentation.
  2377. (psymtab_to_symtab_1): Initialize all of CU.
  2378. (dwarf2_read_abbrevs): Set has_form_ref_addr.
  2379. (find_partial_die): Use dwarf2_find_containing_comp_unit
  2380. and load_comp_unit.
  2381. (free_stack_comp_unit): Update comments. Clear the per-cu
  2382. pointer. Handle aging.
  2383. (dwarf2_find_containing_comp_unit, free_cached_comp_units)
  2384. (age_cached_comp_units, free_one_cached_comp_unit)
  2385. (dwarf2_mark, dwarf2_clear_marks, create_all_comp_units)
  2386. (load_comp_unit, dwarf2_find_comp_unit, free_one_comp_unit)
  2387. (set_dwarf2_cmdlist, show_dwarf2_cmdlist, set_dwarf2_cmd)
  2388. (show_dwarf2_cmd): New.
  2389. (_initialize_dwarf2_read): Provide "maint set dwarf2 max-cache-age"
  2390. and "maint show dwarf2 max-cache-age".
  2391. * gdbcmd.h (maintenance_set_cmdlist, maintenance_show_cmdlist): New
  2392. externs.
  2393. * maint.c (maintenance_set_cmdlist, maintenance_show_cmdlist): Make
  2394. global.
  2395. 2004-09-20 Jeff Johnston <jjohnstn@redhat.com>
  2396. * dwarf2read.c (typename_concat): Change prototype to accept obstack
  2397. and dwarf2_cu struct pointer as arguments. Change function to use
  2398. obstack if provided and use dwarf2_cu to determine language-specific
  2399. separator.
  2400. (partial_die_parent_scope): Change comment to include java. Use
  2401. new version of typename_concat instead of obconcat.
  2402. (partial_die_full_name): Use typename_concat.
  2403. (read_namespace): Ditto.
  2404. (read_enumeration_type): Use typename_concat instead of obconcat.
  2405. (new_symbol): Ditto.
  2406. (add_partial_symbol): Enhance tests for C++ to also test for Java.
  2407. (guess_structure_name): Ditto.
  2408. (read_subroutine_type): Ditto.
  2409. (read_structure_type): Ditto.
  2410. (is_vtable_name): Add Java support.
  2411. (determine_class_name): Switch to new typename_concat call.
  2412. (determine_prefix): Switch to new typename_concat call.
  2413. * jv-exp.y (FuncStart): New pattern.
  2414. (MethodInvocation): Add support for simple function calls. Change
  2415. warning message for other forms of inferior call currently not
  2416. supported.
  2417. * valarith.c (value_subscript): Treat an array with upper-bound
  2418. of -1 as unknown size.
  2419. 2004-09-20 Daniel Jacobowitz <dan@debian.org>
  2420. * symtab.c (lookup_partial_symtab): Use psymtab_to_fullname.
  2421. (lookup_partial_symtab): Use symtab_to_fullname.
  2422. 2004-09-19 Jim Blandy <jimb@redhat.com>
  2423. * minsyms.c (lookup_minimal_symbol): Doc fix.
  2424. 2004-09-20 Andrew Cagney <cagney@gnu.org>
  2425. * config/nm-lynx.h (DEPRECATED_CHILD_RESUME): Deprecate
  2426. CHILD_RESUME.
  2427. * config/i386/nm-linux.h (DEPRECATED_CHILD_RESUME): Ditto.
  2428. * config/nm-linux.h (DEPRECATED_KILL_INFERIOR): Deprecate
  2429. KILL_INFERIOR.
  2430. * infptrace.c: Update.
  2431. 2004-09-19 Daniel Jacobowitz <dan@debian.org>
  2432. * symtab.c (output_source_filename): Mark first argument as const.
  2433. (sources_info): Use symtab_to_fullname and psymtab_to_fullname
  2434. for "info sources" output.
  2435. 2004-09-20 Mark Kettenis <kettenis@gnu.org>
  2436. * config/i386/nm-fbsd.h, config/i386/nm-obsd.h: Don't include
  2437. <machine/vmparam.h>.
  2438. (KERNEL_U_ADDR, REGISTER_U_ADDR): Remove defines.
  2439. (register_u_addr): Remove prototype.
  2440. 2004-09-19 Mark Kettenis <kettenis@gnu.org>
  2441. * i386bsd-nat.c: Include "i386bsd-nat.h" and "inf-ptrace.h".
  2442. (i386bsd_fetch_inferior_registers): Rename from
  2443. fetch_inferior_registers. Make static.
  2444. (i386bsd_store_inferior_registers): Rename from
  2445. store_inferior_registers. Make static.
  2446. (i386bsd_target): New function.
  2447. * i386bsd-nat.h: New file.
  2448. * i386fbsd-nat.c: Include "target.h", "fbsd-nat.h" and
  2449. "i386bsd-nat.h".
  2450. (i386fbsd_resume): Rename from child_resume. Make static.
  2451. (_initialize_i386fbsd_nat): Construct and add target vector.
  2452. * i386nbsd-nat.c: Include "target.h" and "i386bsd-nat.h".
  2453. (_initialize_i386nbsd_nat): Construct and add target vector.
  2454. * config/i386/nm-fbsd.h: (CHILD_RESUME, CHILD_PID_TO_EXEC_FILE):
  2455. Remove defines.
  2456. * config/i386/fbsd.mh (NATDEPFILES): Add inf-child.o, inf-ptrace.o
  2457. and fbsd-nat.o. Remove inftarg.o and fbsd-proc.o.
  2458. * config/i386/nbsdaout.mh (NATDEPFILES): Add inf-child.o,
  2459. inf-ptrace.o, i386bsd-nat.o and bsd-kvm.o. Remove inftarg.o.
  2460. (LOADLIBES): New variable.
  2461. * config/i386/nbsdelf.mh (NATDEPFILES): Add inf-child.o and
  2462. inf-ptrace.o. Remove inftarg.o.
  2463. * config/i386/obsd.mh (NATDEPFILES): Add inf-child.o and
  2464. inf-ptrace.o. Remove inftarg.o.
  2465. * config/i386/obsdaout.mh (NATDEPFILES): Add inf-child.o,
  2466. inf-ptrace.o, i386nbsd-nat.o and bsd-kvm.o. Remove inftarg.o.
  2467. (LOADLIBES): New variable.
  2468. * Makefile.in (i386bsd_nat_h): New variable.
  2469. (i386bsd-nat.o, i386fbsd-nat.o, i386nbsd-nat.o): Update
  2470. dependencies.
  2471. * sparc64nbsd-tdep.c: Include "objfiles.h".
  2472. (sparc64nbsd_init_abi): Set in_solib_call_trampoline and
  2473. skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
  2474. svr4_lp64_fetch_link_map_offsets.
  2475. * sparc64obsd-tdep.c: Include "objfiles.h". Don't include
  2476. "nbsd-tdep.h".
  2477. (sparc64obsd_init_abi): Set in_solib_call_trampoline and
  2478. skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
  2479. svr4_lp64_fetch_link_map_offsets.
  2480. * Makefile.in (sparc64nbsd-tdep.o, sparc64obsd-tdep.o): Update
  2481. dependencies.
  2482. * fbsd-nat.c: New files with cleaned up contents of fbsd-proc.c.
  2483. * fbsd-nat.h: New file.
  2484. * Makefile.in (ALLDEPFILES): Add fbsd-nat.c.
  2485. (fbsd_nat_h): New variable.
  2486. (fbsd-nat.o): New dependency.
  2487. * config/sparc/nbsd64.mt, config/sparc/obsd.mt,
  2488. config/sparc/obsd64.mt (DEPRECATED_TM_FILE): Set to solib.h.
  2489. * inf-child.c (inf_child_post_wait): Remove stray whitespace in
  2490. comment.
  2491. 2004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
  2492. * ada-exp.y (type_int): New function to add layer of abstraction
  2493. around references to expression types.
  2494. (type_long): Ditto.
  2495. (type_long_long): Ditto.
  2496. (type_float): Ditto.
  2497. (type_double): Ditto.
  2498. (type_long_double): Ditto.
  2499. (type_char): Ditto.
  2500. (type_system_address): Ditto.
  2501. (simple_exp): Use type_* functions in place of builtin_*
  2502. variables.
  2503. (exp): Ditto.
  2504. (write_var_from_name): Ditto.
  2505. (write_object_renaming): Ditto.
  2506. * ada-lang.c (ada_create_fundamental_type): Remove redundant
  2507. declaration.
  2508. (build_ada_types): Remove, replacing with...
  2509. (ada_language_arch_info): New function to initialize primitive
  2510. type vector in language_arch_info.
  2511. (ada_array_length): Remove use of builtin_type_ada_int.
  2512. (value_pos_atr): Ditto.
  2513. (ada_evaluate_subexp): Ditto.
  2514. (builtin_type_ada_int, builtin_type_ada_short, builtin_type_ada_long,
  2515. builtin_type_ada_long_long, builtin_type_ada_char,
  2516. builtin_type_ada_float, builtin_type_ada_double,
  2517. builtin_type_ada_long_double, builtin_type_ada_natural,
  2518. builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
  2519. (ada_builtin_types): Remove.
  2520. (ada_language_defn): Remove entries for la_builtin_type_vector and
  2521. string_char_type and use ada_language_arch_info.
  2522. (_initialize_ada_language): Do type-vector initialization along
  2523. the lines of c-lang.c.
  2524. (ada_create_fundamental_type): Break up line.
  2525. (ada_dump_symtab): Remove unused function.
  2526. (enum ada_primitive_types): Define.
  2527. * ada-lang.h (builtin_type_ada_int, builtin_type_ada_short,
  2528. builtin_type_ada_long,builtin_type_ada_long_long,builtin_type_ada_char,
  2529. builtin_type_ada_float, builtin_type_ada_double,
  2530. builtin_type_ada_long_double, builtin_type_ada_natural,
  2531. builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
  2532. * ada-lex.l: Use type_* functions in place of builtin_* variables.
  2533. (processInt): Ditto.
  2534. (processReal): Ditto.
  2535. (name_lookup): Ditto.
  2536. * ada-typeprint.c (print_range): Use builtin_type_int, not
  2537. builtin_type_ada_int.
  2538. 2004-09-18 Mark Kettenis <kettenis@gnu.org>
  2539. * i386-tdep.c (i386_register_name): Rename regno to regnum.
  2540. * config/pa/hpux1020.mh (MH_CFLAGS): Remove -D__HP_CURSES.
  2541. * config/pa/hpux11.mh (MH_CFLAGS): Likewise.
  2542. * config/pa/hpux11w.mh (MH_CFLAGS): Likewise.
  2543. * configure.in: Improve checks for curses library by checking for
  2544. mvwaddstr instead of initscr. Drop HP curses in favour of
  2545. standard curses on HP-UX.
  2546. * configure: Regenerated.
  2547. 2004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
  2548. * ada-lang.c: (ada_main_name, ada_value_slice_ptr, ada_value_slice,
  2549. ada_breakpoint_rewrite, ada_template_to_fixed_record_type_1):
  2550. Minor formatting changes.
  2551. (empty_array): Slight rewrite for formatting.
  2552. (emit_char,parse,ada_language_defn,build_ada_types,
  2553. ada_is_exception_sym, _initialize_ada_language): Move
  2554. definitions around.
  2555. (ada_dump_symtab): Remove unused definition.
  2556. (ada_maybe_exception_partial_symbol): Remove unused definition.
  2557. 2004-09-16 Andrew Cagney <cagney@gnu.org>
  2558. * inf-child.c: Include "gdb_string.h".
  2559. (inf_child_core_file_to_sym_file): Delete.
  2560. (inf_child_target): Set to_fetch_registers and to_store_registers.
  2561. * inf-ptrace.c: Include "gdb_string.h".
  2562. * Makefile.in: Update all dependencies.
  2563. * Makefile.in (gnu-v3-abi.o): Add explict rule to avoid -Werror
  2564. problem.
  2565. 2004-09-14 Joel Brobecker <brobecker@gnat.com>
  2566. * mips-tdep.c (mips_insn32_frame_cache): Pass frame cache in
  2567. call to heuristic_proc_desc. Remove code that became redundant
  2568. as a consequence.
  2569. (read_next_frame_reg): Remove special case for SP_REGNUM.
  2570. (set_reg_offset): Fix small typo.
  2571. (reset_saved_regs): New procedure.
  2572. (mips32_heuristic_proc_desc): No longer compute a fake
  2573. procedure descriptor. Compute the full frame cache instead.
  2574. Some minor comment reformatting.
  2575. 2004-09-14 Andrew Cagney <cagney@gnu.org>
  2576. * MAINTAINERS: Add Michael Chastain as the backup gdb.threads
  2577. maintainer.
  2578. * thread-db.c (thread_db_new_objfile): Assume that there is a
  2579. child process.
  2580. 2004-09-13 Jim Blandy <jimb@redhat.com>
  2581. * valops.c (value_assign): Move 'buffer' to the enclosing block,
  2582. so that its storage isn't referenced after its lifetime ends.
  2583. * valops.c (value_assign): 'use_buffer' is initialized to zero,
  2584. and never assigned to. Delete it, and the 'if (use_buffer)'
  2585. clauses. Delete 'raw_buffer', since it is now unused.
  2586. 2004-09-13 Andrew Cagney <cagney@gnu.org>
  2587. * configure.in (frags): Replace TM_FILE with DEPRECATED_TM_FILE.
  2588. * configure: Re-generate.
  2589. * nlm/Makefile.in (TAGS): Update.
  2590. * Makefile.in (TAGS): Update.
  2591. * config/vax/nbsd.mt (TM_FILE): Update.
  2592. * config/sparc/vxworks.mt (TM_FILE): Update.
  2593. * config/sparc/sol2.mt (TM_FILE): Update.
  2594. * config/sparc/sol2-64.mt (TM_FILE): Update.
  2595. * config/sparc/obsd64.mt (TM_FILE): Update.
  2596. * config/sparc/obsd.mt (TM_FILE): Update.
  2597. * config/sparc/nbsd64.mt (TM_FILE): Update.
  2598. * config/sparc/nbsd.mt (TM_FILE): Update.
  2599. * config/sparc/linux64.mt (TM_FILE): Update.
  2600. * config/sparc/linux.mt (TM_FILE): Update.
  2601. * config/sparc/fbsd.mt (TM_FILE): Update.
  2602. * config/sh/wince.mt (TM_FILE): Update.
  2603. * config/sh/nbsd.mt (TM_FILE): Update.
  2604. * config/sh/linux.mt (TM_FILE): Update.
  2605. * config/sh/embed.mt (TM_FILE): Update.
  2606. * config/s390/s390.mt (TM_FILE): Update.
  2607. * config/rs6000/rs6000lynx.mt (TM_FILE): Update.
  2608. * config/rs6000/rs6000.mt (TM_FILE): Update.
  2609. * config/rs6000/aix4.mt (TM_FILE): Update.
  2610. * config/powerpc/vxworks.mt (TM_FILE): Update.
  2611. * config/powerpc/ppc-sim.mt (TM_FILE): Update.
  2612. * config/powerpc/ppc-eabi.mt (TM_FILE): Update.
  2613. * config/powerpc/obsd.mt (TM_FILE): Update.
  2614. * config/powerpc/nbsd.mt (TM_FILE): Update.
  2615. * config/powerpc/linux.mt (TM_FILE): Update.
  2616. * config/powerpc/aix.mt (TM_FILE): Update.
  2617. * config/pa/obsd.mt (TM_FILE): Update.
  2618. * config/pa/linux.mt (TM_FILE): Update.
  2619. * config/pa/hppahpux.mt (TM_FILE): Update.
  2620. * config/pa/hppa64.mt (TM_FILE): Update.
  2621. * config/pa/hppa.mt (TM_FILE): Update.
  2622. * config/ns32k/nbsdaout.mt (TM_FILE): Update.
  2623. * config/mips/wince.mt (TM_FILE): Update.
  2624. * config/mips/vxmips.mt (TM_FILE): Update.
  2625. * config/mips/nbsd.mt (TM_FILE): Update.
  2626. * config/mips/linux.mt (TM_FILE): Update.
  2627. * config/mips/irix6.mt (TM_FILE): Update.
  2628. * config/mips/irix5.mt (TM_FILE): Update.
  2629. * config/mips/embed.mt (TM_FILE): Update.
  2630. * config/m68k/vxworks68.mt (TM_FILE): Update.
  2631. * config/m68k/st2000.mt (TM_FILE): Update.
  2632. * config/m68k/os68k.mt (TM_FILE): Update.
  2633. * config/m68k/obsd.mt (TM_FILE): Update.
  2634. * config/m68k/nbsd.mt (TM_FILE): Update.
  2635. * config/m68k/monitor.mt (TM_FILE): Update.
  2636. * config/m68k/linux.mt (TM_FILE): Update.
  2637. * config/m68k/cisco.mt (TM_FILE): Update.
  2638. * config/ia64/linux.mt (TM_FILE): Update.
  2639. * config/ia64/aix.mt (TM_FILE): Update.
  2640. * config/ia64/ia64.mt (TM_FILE): Update.
  2641. * config/i386/vxworks.mt (TM_FILE): Update.
  2642. * config/i386/obsd64.mt (TM_FILE): Update.
  2643. * config/i386/obsd.mt (TM_FILE): Update.
  2644. * config/i386/nto.mt (TM_FILE): Update.
  2645. * config/i386/nbsd64.mt (TM_FILE): Update.
  2646. * config/i386/nbsd.mt (TM_FILE): Update.
  2647. * config/i386/linux64.mt (TM_FILE): Update.
  2648. * config/i386/linux.mt (TM_FILE): Update.
  2649. * config/i386/i386sol2.mt (TM_FILE): Update.
  2650. * config/i386/i386lynx.mt (TM_FILE): Update.
  2651. * config/i386/fbsd64.mt (TM_FILE): Update.
  2652. * config/i386/fbsd.mt (TM_FILE): Update.
  2653. * config/i386/cygwin.mt (TM_FILE): Update.
  2654. * config/h8300/h8300.mt (TM_FILE): Update.
  2655. * config/frv/frv.mt (TM_FILE): Update.
  2656. * config/cris/cris.mt (TM_FILE): Update.
  2657. * config/arm/wince.mt (TM_FILE): Update.
  2658. * config/arm/nbsd.mt (TM_FILE): Update.
  2659. * config/arm/linux.mt (TM_FILE): Update.
  2660. * config/arm/embed.mt (TM_FILE): Update.
  2661. * config/alpha/nbsd.mt (TM_FILE): Update.
  2662. * config/alpha/fbsd.mt (TM_FILE): Update.
  2663. * config/alpha/alpha.mt (TM_FILE): Update.
  2664. * config/alpha/alpha-osf1.mt (TM_FILE): Update.
  2665. * config/alpha/alpha-linux.mt (TM_FILE): Update.
  2666. Eliminate event_loop_p, always has the value 1.
  2667. * defs.h (event_loop_p): Delete macro.
  2668. * breakpoint.c (until_break_command): Simplify.
  2669. * utils.c (prompt_for_continue): Simplify.
  2670. * tracepoint.c (read_actions): Simplify.
  2671. * top.c (throw_exception, execute_command, gdb_readline_wrapper)
  2672. (gdb_rl_operate_and_get_next, command_line_input, get_prompt)
  2673. (set_prompt, init_main): Simplify.
  2674. (init_signals, disconnect): Delete, unused.
  2675. * remote.c (remote_async_resume)
  2676. (extended_remote_async_create_inferior): Simplify.
  2677. * mi/mi-interp.c (mi_input): Delete, unused.
  2678. (mi_interpreter_resume, mi_command_loop): Simplify.
  2679. * interps.c (current_interp_command_loop): Simplify.
  2680. * infrun.c (proceed): Simplify.
  2681. * infcmd.c (run_command, continue_command, step_1, jump_command)
  2682. (until_command, advance_command, finish_command)
  2683. (interrupt_target_command): Simplify.
  2684. * event-top.c (gdb_setup_readline, gdb_disable_readline): Simplify.
  2685. * config/i386/nm-i386.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
  2686. * config/s390/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
  2687. * config/pa/nm-hppah.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
  2688. * config/ia64/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
  2689. * config/frv/tm-frv.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
  2690. * mips-tdep.c (mips_dump_tdep): Do not print same.
  2691. 2004-09-12 Andrew Cagney <cagney@gnu.org>
  2692. * valprint.c (print_longest): Use fputs_filtered. Make "val"
  2693. const.
  2694. * Makefile.in (valprint.o): Delete explict rule.
  2695. * config/m68k/nbsdelf.mh: Add missing trailing newline. Problem
  2696. reported by Dave Anderson.
  2697. * target.c (target_info): Delete #ifdef call to FILES_INFO_HOOK.
  2698. * inferior.h (STORE_STRUCT_RETURN): Delete macro.
  2699. 2004-09-12 Salvador E. Tropea <set@users.sf.net>
  2700. Andrew Cagney <cagney@gnu.org>
  2701. * mi/mi-main.c (mi_cmd_data_list_changed_registers)
  2702. (mi_cmd_data_list_register_values)
  2703. (mi_cmd_data_write_register_values): Include the PSEUDO_REGS in
  2704. the register number computation.
  2705. 2004-09-12 Andrew Cagney <cagney@gnu.org>
  2706. * ppcnbsd-nat.c: Include "inf-ptrace.h".
  2707. (ppcnbsd_fetch_inferior_registers): Rename fetch_inferior_registers.
  2708. (ppcnbsd_store_inferior_registers): Rename store_inferior_registers.
  2709. (_initialize_ppcnbsd_nat): Create and add a NetBSD/PPC ptrace
  2710. target.
  2711. * config/powerpc/nbsd.mh (NATDEPFILES): Replace and inftarg.o with
  2712. inf-ptrace.o and inf-child.o.
  2713. * inf-ptrace.h, inf-ptrace.c, inf-child.h, inf-child.c: New files.
  2714. * Makefile.in: Update dependencies.
  2715. 2004-09-11 Andrew Cagney <cagney@gnu.org>
  2716. * language.c (hex_string, hex_string_custom): Move from here ...
  2717. * utils.c (hex_string, hex_string_custom): ... to here, rewrite.
  2718. (CELLSIZE): Increase to 50.
  2719. * language.h (hex_string, hex_string_custom): Move from here ...
  2720. * defs.h: ... to here.
  2721. * Makefile.in: Update all dependencies.
  2722. 2004-09-11 Paul N. Hilfinger <hilfinger@gnat.com>
  2723. * language.c (local_hex_format_custom): Remove.
  2724. (local_hex_string): Rename to hex_string, use C format, and move to
  2725. utils.c
  2726. (local_hex_string_custom): Rename to hex_string_custom and change
  2727. interface. Now uses C format. Move to utils.c
  2728. (local_octal_format_custom): Remove.
  2729. (local_decimal_format_custom): Remove.
  2730. (unknown_language_defn): Remove language-specific number
  2731. formatting entries.
  2732. (auto_language_defn): Ditto.
  2733. (local_language_defn): Ditto.
  2734. * language.h (struct language_format_info): Delete declaration.
  2735. (struct language_defn): Remove language_format_info fields
  2736. la_binary_format, la_octal_format, la_decimal_format, la_hex_format.
  2737. (local_binary_format): Remove macro.
  2738. (local_binary_format_prefix): Remove macro.
  2739. (local_binary_format_specifier): Remove macro.
  2740. (local_binary_format_suffix): Remove macro.
  2741. (local_octal_format): Remove macro.
  2742. (local_octal_format_prefix): Remove macro.
  2743. (local_octal_format_specifier): Remove macro.
  2744. (local_octal_format_suffix): Remove macro.
  2745. (local_decimal_format): Remove macro.
  2746. (local_decimal_format_prefix): Remove macro.
  2747. (local_decimal_format_specifier): Remove macro.
  2748. (local_decimal_format_suffix): Remove macro.
  2749. (local_hex_format): Remove macro.
  2750. (local_hex_format_prefix): Remove macro.
  2751. (local_hex_format_specifier): Remove macro.
  2752. (local_hex_format_suffix): Remove macro.
  2753. (local_decimal_format_custom): Remove.
  2754. (local_octal_format_custom): Remove.
  2755. (local_hex_format_custom): Remove.
  2756. (local_hex_string): Rename to hex_string and move to defs.h.
  2757. (local_hex_string_custom): Rename to hex_string_custom, change
  2758. interface, and move to defs.h.
  2759. * utils.c: (int_string): New function.
  2760. (hex_string): New function (from language.c).
  2761. (hex_string_custom): New function (from language.c).
  2762. (octal2str): New function.
  2763. (decimal2str): Add width parameter.
  2764. (paddr_u): Use new decimal2str interface.
  2765. (paddr_d): Ditto.
  2766. * defs.h (hex_string): Declare.
  2767. (hex_string_custom): Declare.
  2768. (int_string): Declare.
  2769. * printcmd.c (print_scalar_formatted): Remove localized binary
  2770. formatting.
  2771. * valprint.c (print_longest): Use int_string.
  2772. (print_floating): Use C hex format.
  2773. (print_hex_chars): Ditto.
  2774. (print_binary_chars): Remove language-specific formatting.
  2775. (print_octal_chars): Use C octal format.
  2776. (print_decimal_chars): Delocalize format.
  2777. (print_decimal): Remove.
  2778. * ada-lang.c (ada_language_defn): Remove language-specific number
  2779. formatting entries.
  2780. * p-lang.c (pascal_language_defn): Ditto.
  2781. * c-lang.c (c_language_defn): Ditto.
  2782. (cplus_language_defn): Ditto.
  2783. (asm_language_defn): Ditto.
  2784. (minimal_language_defn): Ditto.
  2785. * f-lang.c (f_language_defn): Ditto.
  2786. * jv-lang.c (java_language_defn): Ditto.
  2787. * m2-lang.c (m2_language_defn): Ditto.
  2788. * scm-lang.c (scm_language_defn): Ditto.
  2789. * objc-lang.c (objc_language_defn): Ditto.
  2790. * memattr.c (mem_info_command): Use renamed hex_string_custom with
  2791. new interface.
  2792. * pa64solib.c (pa64_sharedlibrary_info_command): Ditto.
  2793. * ui-out.c (ui_out_field_core_addr): Ditto.
  2794. * breakpoint.c (breakpoint_adjustment_warning): Ditto.
  2795. * exec.c (print_section_info): Ditto.
  2796. * i387-tdep.c (print_i387_status_word): Ditto.
  2797. (print_i387_control_word): Ditto.
  2798. (i387_print_float_info): Ditto.
  2799. * maint.c (maint_print_section_info): Ditto.
  2800. * solib.c (info_sharedlibrary_command): Ditto.
  2801. * somsolib.c (som_sharedlibrary_info_command): Ditto.
  2802. * symtab.c (print_msymbol_info): Ditto.
  2803. * tracepoint.c (tracepoints_info): Ditto.
  2804. * solib-frv.c (lm_base): Ditto.
  2805. (frv_current_sos): Ditto.
  2806. (enable_break2): Ditto.
  2807. (enable_break): Ditto.
  2808. * dbxread.c (read_dbx_symtab): Use renamed hex_string.
  2809. (process_one_symbol): Ditto.
  2810. * infcmd.c (program_info): Ditto.
  2811. * mdebugread.c (parse_partial_symbols): Ditto.
  2812. * symfile.c (add_symbol_file_command): Ditto.
  2813. * cli/cli-cmds.c (edit_command): Ditto.
  2814. (list_command): Ditto.
  2815. * infcall.c (call_function_by_hand): Ditto.
  2816. * remote-vx.c (vx_run_files_info): Ditto.
  2817. (vx_wait): Ditto.
  2818. (vx_attach): Ditto.
  2819. (vx_detach): Ditto.
  2820. (vx_kill): Ditto.
  2821. * aix-thread.c (pdc_symbol_addrs): Ditto.
  2822. (pdc_read_regs): Ditto.
  2823. (pdc_write_regs): Ditto.
  2824. (pdc_read_data): Ditto.
  2825. (pdc_write_data): Ditto.
  2826. * d10v-tdep.c (display_trace): Ditto.
  2827. * rs6000-nat.c (find_toc_address): Ditto.
  2828. * aix-thread.c: Don't include language.h.
  2829. * buildsym.c: Ditto.
  2830. * dbxread.c: Ditto.
  2831. * mdebugread.c: Ditto.
  2832. * rs6000-nat.c: Ditto.
  2833. * buildsym.c (make_blockvector): Use renamed hex_string.
  2834. 2004-09-10 Jason Molenda (jmolenda@apple.com)
  2835. * cli/cli-script.c (read_next_line): Accept zero or more whitespace
  2836. chars after 'if' or 'while' commands in user-defined commands.
  2837. 2004-09-08 Jim Blandy <jimb@redhat.com>
  2838. Fix bug reported and analyzed by Olivier Crete:
  2839. * symfile.c (copy_section_addr_info): New function.
  2840. (symbol_file_add_with_addrs_or_offsets): Use it to save the
  2841. original set of address arguments, instead of handwritten code
  2842. that uses one length to allocate and a different length to
  2843. initialize. Use make_cleanup_free_section_addr_info.
  2844. * symfile.h (copy_section_addr_info): New declaration.
  2845. * utils.c: #include "symfile.h".
  2846. (do_free_section_addr_info, make_cleanup_free_section_addr_info):
  2847. New functions.
  2848. * defs.h (make_cleanup_free_section_addr_info): New declaration.
  2849. * Makefile.in (utils.o): Update dependencies.
  2850. 2004-09-08 Andrew Cagney <cagney@gnu.org>
  2851. * thread-db.c (keep_thread_db): Delete.
  2852. (thread_db_new_objfile, thread_db_create_inferior)
  2853. (thread_db_mourn_inferior): Simplify assuming !keep_thread_db.
  2854. 2004-09-08 Mark Kettenis <kettenis@gnu.org>
  2855. * i386-tdep.h (FPC_REGNUM, FCTRL_REGNUM, FSTAT_REGNUM, FTAG_REGNUM)
  2856. (FISEG_REGNUM, FIOFF_REGNUM, FOSEG_REGNUM, FOOFF_REGNUM)
  2857. (FOP_REGNUM, XMM0_REGNUM, MXCSR_REGNUM): Remove macros.
  2858. (i386_frameless_signal_p): Remove prototype.
  2859. * i386-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
  2860. (GETFPXREGS_SUPPLIES): Define using I386_ST0_REGNUM and
  2861. I386_SSE_NUM_REGS.
  2862. * i386-nto-tdep.c (i386nto_supply_gregset): Use I386_NUM_GREGS
  2863. instead of FP0_REGNUM.
  2864. (i386nto_regset_id): Use I386_NUM_GREGS and I386_NUM_FREGS instead
  2865. of FP0_REGNUM and FPC_REGNUM.
  2866. * solib-sunos.c (sunos_relocate_main_executable): Remove function.
  2867. (sunos_solib_create_inferior_hook): Don't call
  2868. sunos_relocate_main_executable.
  2869. * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Set
  2870. solib_svr4_fetch_link_map_offsets to
  2871. svr4_ilp32_fetch_link_map_offsets.
  2872. * sparcobsd-tdep.c: Don't include "nbsd-tdep.h".
  2873. (sparc32obsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
  2874. svr4_ilp32_fetch_link_map_offsets.
  2875. * Makefile.in (sparcobsd-tdep.o): Update dependencies.
  2876. 2004-09-07 Jim Blandy <jimb@redhat.com>
  2877. * frame.h (frame_register): Doc fix.
  2878. 2004-09-07 Andrew Cagney <cagney@gnu.org>
  2879. * vx-share/wait.h: Delete #ifdef USG.
  2880. * utils.c (request_quit): Ditto.
  2881. * tui/tui.c (tui_reset): Ditto.
  2882. * remote.c: Ditto.
  2883. * remote-sds.c: Ditto.
  2884. * remote-rdi.c: Ditto.
  2885. * mdebugread.c: Ditto.
  2886. * m68klinux-nat.c: Ditto.
  2887. * infttrace.c: Ditto.
  2888. * infptrace.c: Ditto.
  2889. * i386v-nat.c: Ditto.
  2890. * exec.c: Ditto.
  2891. * dbxread.c: Ditto.
  2892. * core-aout.c: Ditto.
  2893. 2004-09-05 Joel Brobecker <brobecker@gnat.com>
  2894. * mips-tdep.c (mips_insn16_frame_cache): Fix parameter in call to
  2895. heuristic_proc_desc.
  2896. (mips_insn32_frame_cache): Likewise.
  2897. 2004-09-04 Joel Brobecker <brobecker@gnat.com>
  2898. * mips-tdep.c (mips32_heuristic_proc_desc): Remove code that was
  2899. left behind by error.
  2900. 2004-09-04 Joel Brobecker <brobecker@gnat.com>
  2901. * config/alpha/nm-osf.h (PTRACE_ARG3_TYPE): Remove define.
  2902. * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Likewise.
  2903. 2004-09-04 Joel Brobecker <brobecker@gnat.com>
  2904. * config/rs6000/xm-aix4.h: Remove this file.
  2905. * config/rs6000/aix4.mh (XM_FILE): Delete.
  2906. 2004-09-04 Joel Brobecker <brobecker@gnat.com>
  2907. * config/rs6000/xm-rs6000.h: Remove this file.
  2908. * config/rs6000/rs6000.mh (XM_FILE): Remove.
  2909. 2004-09-03 Andrew Cagney <cagney@gnu.org>
  2910. * mips-tdep.c (PROC_DESC_IS_DUMMY, SET_PROC_DESC_IS_DUMMY)
  2911. (_PROC_MAGIC_, after_prologue, mips_dump_tdep): Delete macros and
  2912. only use.
  2913. * mips-tdep.c (temp_saved_regs): Delete.
  2914. (set_reg_offset): Replace saved_regs parameter with this_cache.
  2915. (heuristic_proc_desc, mips16_heuristic_proc_desc)
  2916. (mips32_heuristic_proc_desc): Add this_cache parameter.
  2917. (mips_insn32_frame_cache, mips_insn16_frame_cache)
  2918. (after_prologue): Pass a NULL this_cache.
  2919. * mips-tdep.c (mips_mdebug_frame_cache): Delete code handling
  2920. non-kernel trap prologues.
  2921. * mips-tdep.c (find_proc_desc): Delete function.
  2922. (mips_mdebug_frame_cache): Inline call to find_proc_desc,
  2923. simplify.
  2924. (mips_insn16_frame_cache): Replace find_proc_desc with code from
  2925. mips_insn32_frame_cache.
  2926. * mips-tdep.c (after_prologue): Inline call to find_proc_desc.
  2927. Simplify as NEXT_FRAME is NULL.
  2928. (find_proc_desc): Simplify as NEXT_FRAME is non-NULL.
  2929. * mips-tdep.c (after_prologue): Replace proc_desc parameter with
  2930. local variable.
  2931. (mips_skip_prologue): Update.
  2932. * mips-tdep.c (find_proc_desc, heuristic_proc_desc): Delete
  2933. "cur_frame" parameter.
  2934. (after_prologue, mips_mdebug_frame_cache, mips_insn16_frame_cache):
  2935. (mips_insn32_frame_cache, find_proc_desc): Update
  2936. * config/vax/nm-obsd.h: Delete file.
  2937. * config/vax/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
  2938. * config/vax/nm-nbsd.h: Delete file.
  2939. * config/vax/nm-nbsdaout.h: Include config/nm-nbsd.h.
  2940. * config/vax/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
  2941. * config/sh/nm-nbsd.h: Delete file.
  2942. * config/sh/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
  2943. * config/rs6000/nm-rs6000ly.h: Delete file.
  2944. * config/djgpp/fnchange.lst: Do not rename nm-rs6000ly.h.
  2945. * config/rs6000/rs6000lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
  2946. * config/powerpc/nm-obsd.h: Delete file.
  2947. * config/powerpc/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
  2948. * config/powerpc/nm-nbsd.h: Delete file.
  2949. * config/powerpc/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
  2950. * config/pa/nm-obsd.h: Delete file.
  2951. * config/pa/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
  2952. * config/mips/nm-nbsd.h: Delete file.
  2953. * config/mips/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
  2954. * config/m88k/nm-obsd.h: Delete file.
  2955. * config/m88k/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
  2956. * config/m68k/nm-nbsd.h: Delete file.
  2957. * config/m68k/nm-nbsdaout.h: Include config/nm-nbsd.h.
  2958. * config/m68k/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
  2959. * config/i386/nm-nbsd.h: Delete file.
  2960. * config/i386/nm-nbsdaout.h: Include config/nm-nbsd.h.
  2961. * config/i386/obsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
  2962. * config/i386/nbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
  2963. * config/i386/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
  2964. * config/i386/nm-i386lynx.h: Delete file.
  2965. * config/i386/i386lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
  2966. * config/arm/nm-nbsd.h: Delete file.
  2967. * config/arm/nm-nbsdaout.h: Include config/nm-nbsd.h.
  2968. * config/arm/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
  2969. * config/i386/tm-fbsd.h: Delete file.
  2970. * config/i386/fbsd64.mt (TM_FILE): Set to solib.h.
  2971. * config/i386/fbsd.mt (TM_FILE): Set to solib.h.
  2972. * config/rs6000/tm-rs6000-aix4.h: Delete file.
  2973. * config/djgpp/fnchange.lst: Do not rename tm-rs6000-aix4.h.
  2974. * config/rs6000/aix4.mt (TM_FILE): Set to
  2975. config/rs6000/tm-rs6000.h.
  2976. * config/powerpc/tm-ppc-aix.h: Delete file.
  2977. * config/powerpc/aix.mt (TM_FILE): Set to
  2978. config/rs6000/tm-rs6000.h.
  2979. * config/m68k/tm-linux.h: Delete file.
  2980. * config/m68k/linux.mt (TM_FILE): Set to solib.h
  2981. * config/i386/tm-linux64.h: Delete file.
  2982. * config/i386/linux64.mt (TM_FILE): Set to solib.h.
  2983. * config/djgpp/fnchange.lst: Do not rename tm-linux.h.
  2984. * config/m68k/tm-linux.h (SVR4_SHARED_LIBS): Delete.
  2985. * config/i386/tm-linux64.h (SVR4_SHARED_LIBS): Delete.
  2986. * config/i386/nm-i386sco5.h (SVR4_SHARED_LIBS): Delete.
  2987. * config/tm-linux.h (SVR4_SHARED_LIBS): Delete.
  2988. * config/nm-sysv4.h (SVR4_SHARED_LIBS): Delete.
  2989. * config/nm-linux.h (SVR4_SHARED_LIBS): Delete.
  2990. * config/nm-gnu.h (SVR4_SHARED_LIBS): Delete.
  2991. * sh64-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
  2992. * sh-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
  2993. * configure.in (GDB_TM_FILE): Fix typo, use gdb_target_cpu and not
  2994. gdb_host_cpu.
  2995. 2004-09-02 Joel Brobecker <brobecker@gnat.com>
  2996. * mips-tdep.c (mips_insn32_frame_cache): Remove some dead code.
  2997. Minor reformatting. Some code factoring.
  2998. 2004-09-02 Andrew Cagney <cagney@gnu.org>
  2999. * config/vax/nbsd.mt (TM_FILE): Set to solib.h.
  3000. * config/vax/tm-nbsd.h: Delete file.
  3001. * config/sparc/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
  3002. * config/sparc/tm-vxworks.h: Delete file.
  3003. * config/sparc/nbsd.mt (TM_FILE): Set to solib.h.
  3004. * config/sparc/tm-nbsd.h: Delete file.
  3005. * config/sparc/linux64.mt (TM_FILE): Set to solib.h.
  3006. * config/sparc/linux.mt (TM_FILE): Set to solib.h.
  3007. * config/sparc/tm-linux.h: Delete file.
  3008. * config/s390/s390.mt (TM_FILE): Set to config/tm-linux.h
  3009. * config/s390/tm-linux.h: Delete file.
  3010. * config/pa/obsd.mt (TM_FILE): Set to solib.h.
  3011. * config/pa/tm-bsd.h: Delete file.
  3012. * config/m68k/obsd.mt (TM_FILE): Set to solib.h.
  3013. * config/m68k/tm-obsd.h: Delete file.
  3014. * config/m68k/nbsd.mt (TM_FILE): Set to solib.h.
  3015. * config/m68k/tm-nbsd.h: Delete file.
  3016. * config/i386/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
  3017. * config/i386/tm-vxworks.h: Delete file.
  3018. * config/i386/obsd64.mt (TM_FILE): Set to solib.h.
  3019. * config/i386/obsd.mt (TM_FILE): Set to solib.h.
  3020. * config/i386/nbsd64.mt (TM_FILE): Set to solib.h.
  3021. * config/i386/nbsd.mt (TM_FILE): Set to solib.h.
  3022. * config/i386/tm-nbsd.h: Delete file.
  3023. * config/i386/i386lynx.mt (TM_FILE): Set to config/tm-lynx.h.
  3024. * config/i386/tm-i386lynx.h: Delete file.
  3025. * config/cris/cris.mt (TM_FILE): Set to solib.h.
  3026. * config/cris/tm-cris.h: Delete file.
  3027. * configure.in: Let TM_FILE, XM_FILE and NAT_FILE specify a path.
  3028. * configure: Re-generate.
  3029. * config/arm/nbsd.mt (TM_FILE): Set to "solib.h".
  3030. * config/arm/tm-nbsd.h: Delete file.
  3031. * config/powerpc/tm-ppcle-sim.h: Delete.
  3032. * config/powerpc/tm-ppcle-eabi.h: Delete.
  3033. * config/powerpc/tm-nbsd.h: Delete.
  3034. * config/powerpc/nbsd.mt (TM_FILE): Set to tm-ppc-eabi.h.
  3035. * config/djgpp/fnchange.lst: Do not rename tm-ppcle-sim.h or
  3036. tm-ppcle-eabi.h.
  3037. * config/i386/nto.mh (NAT_FILE): Delete.
  3038. * config/i386/nm-nto.h: Delete.
  3039. * config/m68k/tm-vx68.h: Do not include "tm-m68k.h".
  3040. * config/m68k/tm-os68k.h: Ditto.
  3041. * config/m68k/tm-monitor.h: Ditto.
  3042. * config/m68k/tm-cisco.h: Ditto.
  3043. * config/m68k/st2000.mt (TM_FILE): Delete.
  3044. * config/m68k/tm-vx68.h (GET_LONGJMP_TARGET): Delete.
  3045. * config/m68k/tm-cisco.h (GET_LONGJMP_TARGET): Delete.
  3046. * config/m68k/tm-m68k.h (m68k_get_longjmp_target): Delete file.
  3047. * m68k-tdep.c (m68k_get_longjmp_target): Make static.
  3048. * config/m68k/tm-st2000.h: Delete.
  3049. * config/m68k/st2000.mt (TM_FILE): Set to tm-m68k.h.
  3050. * config/sparc/fbsd.mt (TM_FILE): Delete.
  3051. * config/sparc/tm-fbsd.h: Delete.
  3052. * acconfig.h (GDB_MULTI_ARCH): Delete undef.
  3053. * defs.h (GDB_MULTI_ARCH_PARTIAL, GDB_MULTI_ARCH_TM)
  3054. (GDB_MULTI_ARCH_PURE, GDB_MULTI_ARCH): Delete macros.
  3055. * gdbarch.sh: Instead of GDB_MULTI_ARCH print GDB_NM_FILE,
  3056. GDB_TM_FILE and GDB_XM_FILE.
  3057. * gdbarch.c: Re-generate.
  3058. * configure.in (GDB_XM_FILE, GDB_NM_FILE, GDB_TM_FILE): Include
  3059. quotes in macro definition.
  3060. * configure.in: Re-generate.
  3061. * gdbarch.sh: Delete check for GDB_MULTI_ARCH_PARTIAL when
  3062. validating architecture methods.
  3063. * gdbarch.c: Re-generate.
  3064. * gdbarch.sh: Delete check for consistency between GDB_MULTI_ARCH
  3065. and GDB_TM_FILE. Check for GDB_TM_FILE instead of
  3066. GDB_MULTI_ARCH_PARTIAL.
  3067. * gdbarch.h: Re-generate.
  3068. * config/sparc/tm-vxworks.h (GDB_MULTI_ARCH): Delete.
  3069. * config/sparc/tm-sol2.h (GDB_MULTI_ARCH): Delete.
  3070. * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete.
  3071. * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete.
  3072. * config/sparc/tm-fbsd.h (GDB_MULTI_ARCH): Delete.
  3073. * config/sh/tm-sh.h (GDB_MULTI_ARCH): Delete.
  3074. * config/rs6000/tm-rs6000.h (GDB_MULTI_ARCH): Delete.
  3075. * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Delete.
  3076. * config/mips/tm-mips.h (GDB_MULTI_ARCH): Delete.
  3077. * config/ia64/tm-ia64.h (GDB_MULTI_ARCH): Delete.
  3078. * config/cris/tm-cris.h (GDB_MULTI_ARCH): Delete.
  3079. * config/arm/tm-arm.h (GDB_MULTI_ARCH): Delete.
  3080. 2004-09-01 Andrew Cagney <cagney@gnu.org>
  3081. * objfiles.h (struct entry_info): Delete fields main_func_lowpc
  3082. and main_func_highpc.
  3083. (INVALID_ENTRY_LOWPC, INVALID_ENTRY_HIGHPC): Delete macros.
  3084. * objfiles.c (init_entry_point_info, objfile_relocate): Update
  3085. * nlmread.c (nlm_symfile_read): Update.
  3086. 2004-09-01 Joel Brobecker <brobecker@gnat.com>
  3087. * mips-tdep.c (linked_proc_desc_table): Delete, not used.
  3088. (mips_insn32_frame_cache): Inline call to find_proc_desc.
  3089. (find_proc_desc): Remove dead code.
  3090. 2004-09-01 Joel Brobecker <brobecker@gnat.com>
  3091. * mips-tdep.c (mips_mdebug_frame_cache): Minor reformatting.
  3092. 2004-09-01 Jeff Johnston <jjohnstn@redhat.com>
  3093. * observer.sh: Add struct so_list declaration.
  3094. * Makefile.in: Add dependencies on observer.h for solib.c and
  3095. breakpoint.c.
  3096. * breakpoint.c (disable_breakpoints_in_unloaded_shlib): New
  3097. function.
  3098. (_initialize_breakpoint): Register
  3099. disable_breakpoints_in_unloaded_shlib as an observer of the
  3100. "solib unloaded" observation event.
  3101. (re_enable_breakpoints_in_shlibs): For bp_shlib_disabled breakpoints,
  3102. call decode_line_1 so unfound breakpoint errors are silent.
  3103. * solib.c (update_solib_list): When a solib is discovered to have
  3104. been unloaded by the program, notify all observers of the
  3105. "solib unloaded" observation event.
  3106. 2004-09-01 Andrew Cagney <cagney@gnu.org>
  3107. * frame.c: Include "objfiles.h".
  3108. (inside_main_func): New function.
  3109. (get_prev_frame): Use new inside_main_func.
  3110. * Makefile.in (frame.o): Update dependencies.
  3111. * defs.h (inside_main_func): Delete declaration.
  3112. * blockframe.c (inside_main_func): Delete function.
  3113. 2004-08-31 Jim Blandy <jimb@redhat.com>
  3114. * dwarf2read.c (is_vtable_name): New function, based on logic from
  3115. read_structure_type, but passing the correct length to strncmp,
  3116. and using 'sizeof' instead of 'strlen'.
  3117. (read_structure_type): Call it.
  3118. 2004-08-31 Joel Brobecker <brobecker@gnat.com>
  3119. * config/powerpc/aix.mh: Add comment.
  3120. 2004-08-31 Paul GIlliam <pgilliam@us.ibm.com>
  3121. * MAINTAINERS: Add self to Write-After-Approval.
  3122. 2004-08-30 Manoj Iyer <manjo@austin.ibm.com>
  3123. * MAINTAINERS: Add self to Write-After-Approval.
  3124. 2004-08-30 Andrew Cagney <cagney@gnu.org>
  3125. Fix PR breakpoints/1757.
  3126. * infrun.c (struct execution_control_state): Replace
  3127. remove_breakpoints_on_following_step with
  3128. step_after_step_resume_breakpoint.
  3129. (init_execution_control_state): Update.
  3130. (handle_inferior_event): For signals, when stepping off a
  3131. breakpoint, set step_after_step_resume_breakpoint. When
  3132. BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
  3133. (keep_going): Delete code handling
  3134. remove_breakpoints_on_following_step.
  3135. 2004-08-29 David Lecomber <david@streamline-computing.com>
  3136. Fix PR gdb/648
  3137. * language.h (enum array_ordering): New enum.
  3138. * language.h (struct language_defn): New la_array_ordering
  3139. attribute.
  3140. * language.c (unknown_language_defn, auto_language_defn)
  3141. (local_language_defn): Ditto.
  3142. * ada-lang.c (ada_language_defn): Ditto.
  3143. * c-lang.c (c_language_defn, cplus_language_defn)
  3144. (asm_language_defn, minimal_language_defn): Ditto.
  3145. * f-lang.c (f_language_defn): Ditto.
  3146. * jv-lang.c (java_language_defn): Ditto.
  3147. * m2-lang.c (f_language_defn): Ditto.
  3148. * objc-lang.c (objc_language_defn): Ditto.
  3149. * p-lang.c (pascal_language_defn): Ditto.
  3150. * scm-lang.c (scm_language_defn): Ditto.
  3151. * eval.c (evaluate_subexp_standard): Assume Fortran arrays are
  3152. oriented large to small in type structure.
  3153. * dwarf2read.c (read_array_order): New function.
  3154. (read_array_type): Use read_array_order to check row/column
  3155. major ordering.
  3156. 2004-08-27 Nathan J. Williams <nathanw@wasabisystems.com>
  3157. * target.c (target_resize_to_sections): Check
  3158. current_target.to_sections for an old value when updating.
  3159. 2004-08-27 Joel Brobecker <brobecker@gnat.com>
  3160. * procfs.c (dbx_link_bpt_addr): New static global variable.
  3161. (dbx_link_shadow_contents): New static global variable.
  3162. (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
  3163. (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
  3164. if we just hit it.
  3165. (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
  3166. Reset dbx_link_bpt_addr as the address of __dbx_link() may change
  3167. from run to run.
  3168. (procfs_create_inferior): Remove syssgi syscall-exit notifications
  3169. after the inferior has been forked.
  3170. (remove_dbx_link_breakpoint): New function.
  3171. (dbx_link_addr): New function.
  3172. (insert_dbx_link_bpt_in_file): New function.
  3173. (insert_dbx_link_bpt_in_region): New function.
  3174. (insert_dbx_link_breakpoint): New function.
  3175. (proc_trace_syscalls_1): New function, extracted from
  3176. proc_trace_syscalls.
  3177. (proc_trace_syscalls): Replace extract code by call to
  3178. proc_trace_syscalls_1.
  3179. * solib-irix.c (disable_break): Remove stop_pc assertion, as it
  3180. is no longer valid.
  3181. 2004-08-25 Jim Blandy <jimb@redhat.com>
  3182. * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
  3183. 2004-08-25 Andrew Cagney <cagney@gnu.org>
  3184. * infrun.c (struct execution_control_state): Delete field
  3185. "stepping_through_sigtramp".
  3186. (init_execution_control_state): Do not set same.
  3187. (context_switch): Do not pass same to save_infrun_state and
  3188. load_infrun_state.
  3189. * gdbthread.h (struct thread_info): Delete field
  3190. stepping_through_sigtramp.
  3191. (save_infrun_state, load_infrun_state): Delete parameter
  3192. stepping_through_sigtramp.
  3193. * thread.c (load_infrun_state, save_infrun_state): Update.
  3194. * infrun.c: Re-indent. Move expression operators to the beginning
  3195. of the line. Remove long disabled #if 0 code.
  3196. 2004-08-24 Andrew Cagney <cagney@gnu.org>
  3197. * doublest.h (floatformat_ieee_quad): Rename
  3198. floatformat_ia64_quad.
  3199. * doublest.c (floatformat_ieee_quad): Rename
  3200. floatformat_ia64_quad.
  3201. (_initialize_doublest): Update.
  3202. 2004-08-24 Jim Blandy <jimb@redhat.com>
  3203. * dwarf2expr.h (struct dwarf_expr_context): New members
  3204. 'num_pieces' and 'pieces', for returning the result of an
  3205. expression that uses DW_OP_piece.
  3206. (struct dwarf_expr_piece): New struct type.
  3207. * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
  3208. pieces.
  3209. (free_dwarf_expr_context): Free pieces, if any.
  3210. (add_piece): New function.
  3211. (execute_stack_op): Implement DW_OP_piece.
  3212. * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
  3213. expression is a list of pieces, print an error message.
  3214. (dwarf2_loc_desc_needs_frame): If the expression yields
  3215. pieces, and any piece is in a register, then we need a frame.
  3216. * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
  3217. the stack until we've decided what sort of result the evaluation
  3218. has produced. Use separate variables, with more specific names.
  3219. 2004-08-23 Richard Earnshaw <rearnsha@arm.com>
  3220. * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
  3221. (arm_nbsd_thumb_[lb]e_breakpoint): Define.
  3222. (arm_netbsd_init_abi_common): Register them.
  3223. 2004-08-22 Mark Kettenis <kettenis@gnu.org>
  3224. * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
  3225. * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
  3226. safe_frame_unwind_memory instead of target_read_memory.
  3227. * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
  3228. Reorder includes.
  3229. (fetch_register, store_register): Remove prototypes.
  3230. (child_resume): Reorganize code and comments such that it is
  3231. grouped a bit more logically.
  3232. (attach): Explicitly compare errno against 0.
  3233. (detach): Likewise. Use perror_with_name instead of
  3234. print_sys_errmsg.
  3235. * Makefile.in (infptrace.o): Update dependencies.
  3236. * ia64-linux-nat.c: Update copyright year.
  3237. (fetch_debug_register, store_debug_register)
  3238. (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
  3239. PTRACE_TYPE_ARG3.
  3240. * config/ia64/nm-linux.h: Update copyright year.
  3241. (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
  3242. * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
  3243. from CORE_ADDR to struct frame_info *. Use
  3244. safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
  3245. (amd64_linux_sigtramp_p): Adjust for changed signature of
  3246. and64_linux_sigtramp_start
  3247. * gdb_ptrace.h: GNU/Linux.
  3248. * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
  3249. Remove defines.
  3250. * infptrace.c: Include "gdb_assert.h".
  3251. (PTRACE_XFER_TYPE): Remove define.
  3252. (offsetof): Only define if U_REGS_OFFSET isn't defined.
  3253. (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
  3254. Tweak comment.
  3255. (fetch_inferior_registers, store_inferior_registers): Remove
  3256. redundant culry braces. Tweak comment. s/regno/regnum.
  3257. * Makefile.in (infptrace.o): Update dependencies.
  3258. * configure.in: Change test for return type of ptrace to default
  3259. to `long' instead of `int'.
  3260. * configure: Regenerate.
  3261. 2004-08-21 Mark Kettenis <kettenis@gnu.org>
  3262. * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
  3263. * configure.in: Check for ttrace function.
  3264. * configure, config.in: Regenerate.
  3265. * gdb_ptrace.h: New file.
  3266. * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
  3267. <sys/ptrace.h>.
  3268. (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
  3269. (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
  3270. (attach): Don't define PT_ATTACH.
  3271. (detach): Don't define PT_DETACH.
  3272. * Makefile.in (gdb_ptrace_h): New variable.
  3273. (infptrace.o): Update dependencies.
  3274. 2004-08-16 Mark Kettenis <kettenis@gnu.org>
  3275. * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
  3276. instead of `int' if not already defined.
  3277. (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
  3278. PTRACE_TYPE_ARG3.
  3279. * infptrace.c (call_ptrace): Revert change that replaced
  3280. PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
  3281. 2004-08-15 Mark Kettenis <kettenis@gnu.org>
  3282. * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
  3283. Remove defines.
  3284. * linux-nat.c (kill_inferior): Add missing third and fourth
  3285. arguments to ptrace call. Don't use PTRACE_ARG3_TYPE.
  3286. * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
  3287. PTRACE_TYPE_RET.
  3288. * proc-why.c (proc_prettyfprint_why): Fix format string.
  3289. * solib-osf.c (osf_current_sos): Remove unsused label.
  3290. * configure.in: Add <ncurses/ncurses.h> to the list of possible
  3291. curses headers.
  3292. * configure, config.in: Regenerate.
  3293. * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
  3294. <ncurses/ncurses.h>.
  3295. * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
  3296. * config/nm-nbsd.h: Update copyright year.
  3297. (PTRACE_ARG3_TYPE): Remove define.
  3298. * sparc-nat.c (fetch_inferior_registers)
  3299. (store_inferior_registers, sparc_xfer_wcookie):
  3300. Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
  3301. * alphabsd-nat.c (fetch_inferior_registers):
  3302. (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
  3303. PTRACE_TYPE_ARG3.
  3304. * amd64bsd-nat.c (fetch_inferior_registers)
  3305. (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
  3306. PTRACE_TYPE_ARG3.
  3307. * armnbsd-nat.c: Update copyright year.
  3308. (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
  3309. (store_register, store_regs, store_fp_register, store_fp_regs):
  3310. Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
  3311. * hppabsd-nat.c (fetch_inferior_registers)
  3312. (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
  3313. PTRACE_TYPE_ARG3.
  3314. * i386bsd-nat.c (fetch_inferior_registers)
  3315. (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
  3316. Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
  3317. * m68kbsd-nat.c (fetch_inferior_registers)
  3318. (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
  3319. PTRACE_TYPE_ARG3.
  3320. * m88kbsd-nat.c (fetch_inferior_registers)
  3321. (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
  3322. PTRACE_TYPE_ARG3.
  3323. * mipsnbsd-nat.c: Update copyright year.
  3324. (fetch_inferior_registers, store_inferior_registers):
  3325. Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
  3326. * ns32knbsd-nat.c: Update copyright year.
  3327. (fetch_inferior_registers, store_inferior_registers):
  3328. Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
  3329. * ppcnbsd-nat.c (fetch_inferior_registers):
  3330. (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
  3331. PTRACE_TYPE_ARG3.
  3332. * ppcobsd-nat.c (fetch_inferior_registers):
  3333. (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
  3334. PTRACE_TYPE_ARG3.
  3335. * shnbsd-nat.c: Update copyright year.
  3336. (fetch_inferior_registers, store_inferior_registers):
  3337. Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
  3338. * vaxbsd-nat.c (fetch_inferior_registers)
  3339. (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
  3340. PTRACE_TYPE_ARG3.
  3341. * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
  3342. PTRACE_TYPE_ARG3.
  3343. * infptrace.c (call_ptrace, child_resume, attach, detach)
  3344. (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
  3345. (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
  3346. * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
  3347. PTRACE_TYPE_ARG3.
  3348. 2004-08-14 Mark Kettenis <kettenis@gnu.org>
  3349. * defs.h: Remove out-of-date comment.
  3350. [!FCLOSE_PROVIDED] (fclose): Remove prototype.
  3351. [!GETENV_PROVIDED] (getenv): Remove prototype.
  3352. * standalone.c: Remove file.
  3353. * Makefile.in (standalone.o): Remove dependency.
  3354. * i386-linux-nat.c (dummy_sse_values): Remove function and
  3355. prototype.
  3356. (i386_linux_dr_get): Fix typo in comment.
  3357. (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
  3358. * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
  3359. * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
  3360. from declaration.
  3361. * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
  3362. from definition.
  3363. 2004-08-13 Mark Kettenis <kettenis@gnu.org>
  3364. * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
  3365. parenthesis in definition.
  3366. * configure: Regenerated.
  3367. 2004-08-12 Michael Chastain <mec.gnu@mindspring.com>
  3368. * PROBLEMS: Mention build/1411.
  3369. 2004-08-09 Robert Millan <robertmh@gnu.org>
  3370. Committed by Nathanael Nerode.
  3371. * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
  3372. * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
  3373. 2004-08-12 Andrew Cagney <cagney@gnu.org>
  3374. * NEWS: Mention fixes in GDB 6.2.1.
  3375. * PROBLEMS: Remove mention of mips-irix.
  3376. 2004-08-11 Joel Brobecker <brobecker@gnat.com>
  3377. * config/powerpc/xm-aix.h: Delete.
  3378. * config/powerpc/aix.mh (MH_FILE): Remove.
  3379. * config/powerpc/aix432.mh (MH_FILE): Remove.
  3380. 2004-08-11 Joel Brobecker <brobecker@gnat.com>
  3381. * config/powerpc/aix.mh: Remove obsolete comment.
  3382. * config/powerpc/aix432.mh: Likewise.
  3383. 2004-08-11 Joel Brobecker <brobecker@gnat.com>
  3384. * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
  3385. 2004-08-11 Joel Brobecker <brobecker@gnat.com>
  3386. * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
  3387. this file is now empty.
  3388. * config/xm-aix4.h: Remove, this file is no longer included
  3389. anywhere.
  3390. 2004-08-11 Joel Brobecker <brobecker@gnat.com>
  3391. * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
  3392. that file is now empty.
  3393. (termdef): Remove prototype, function no longer used.
  3394. 2004-08-11 Joel Brobecker <brobecker@gnat.com>
  3395. * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
  3396. * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
  3397. 2004-08-11 Joel Brobecker <brobecker@gnat.com>
  3398. * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
  3399. * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
  3400. * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
  3401. 2004-08-11 Mark Kettenis <kettenis@gnu.org>
  3402. * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
  3403. instead of FIVE_ARG_PTRACE.
  3404. * inflow.c (O_NOCTTY): Define to zero if not already defined.
  3405. (new_tty): Use O_NOCTTY unconditionally.
  3406. 2004-08-10 Mark Kettenis <kettenis@gnu.org>
  3407. * procfs.c (procfs_detach): Cleanup. Print process ID, not LWP
  3408. ID. Use comma in output. Use gdb_flush on gdb_stdout instead of
  3409. fflush on stdout.
  3410. 2004-08-10 Joel Brobecker <brobecker@gnat.com>
  3411. * xcoff_symfile_finish: Replace last call to xmfree by call
  3412. to xfree.
  3413. 2004-08-10 Andrew Cagney <cagney@gnu.org>
  3414. * main.c (captured_main): Delete call to init_malloc.
  3415. * defs.h (init_malloc): Delete declaration.
  3416. * utils.c (mmalloc, mrealloc, mcalloc, mfree)
  3417. (init_malloc): Delete functions.
  3418. * defs.h (xmfree): Delete.
  3419. * utils.c (xmfree): Delete function.
  3420. (xfree): Inline calls to xmfree and mfree.
  3421. * symmisc.c (free_symtab_block, free_symtab): Use xfree.
  3422. * symfile.c (reread_symbols, init_psymbol_list): Ditto.
  3423. * source.c (forget_cached_source_info, find_and_open_source): Ditto.
  3424. * somread.c (som_symfile_finish): Ditto.
  3425. * objfiles.c (allocate_objfile, free_objfile):
  3426. * nlmread.c (nlm_symfile_finish): Ditto.
  3427. * hpread.c (hpread_symfile_finish): Ditto.
  3428. * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
  3429. * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
  3430. * coffread.c (coff_symfile_finish): Ditto.
  3431. * defs.h (xmcalloc): Delete declaration.
  3432. * utils.c (xmcalloc): Delete.
  3433. (xcalloc): Inline calls to xmcalloc and mcalloc.
  3434. * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
  3435. xcalloc and xfree.
  3436. * symtab.c (create_demangled_names_hash): Ditto.
  3437. * defs.h (xmrealloc): Delete.
  3438. * utils.c (xmrealloc): Delete.
  3439. (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
  3440. * symmisc.c (extend_psymbol_list): Use xrealloc.
  3441. * source.c (find_source_lines): Ditto.
  3442. * hpread.c (hpread_lookup_type): Ditto.
  3443. * dbxread.c (add_bincl_to_list): Ditto.
  3444. * utils.c (xmmalloc): Delete.
  3445. (xmalloc): Inline xmmalloc and mmalloc calls.
  3446. (msavestring): Use xmalloc.
  3447. * defs.h (xmmalloc): Delete declaration.
  3448. * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
  3449. xmmalloc.
  3450. * symmisc.c (extend_psymbol_list): Ditto.
  3451. * symfile.c (init_psymbol_list): Ditto.
  3452. * source.c (find_source_lines): Ditto.
  3453. * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
  3454. * elfread.c (elf_symtab_read): Ditto.
  3455. * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
  3456. * coffread.c (coff_symfile_init): Ditto.
  3457. 2004-08-10 David Carlton <carlton@bactrian.org>
  3458. * MAINTAINERS: Remove David Carlton from c++ testsuite
  3459. maintainers.
  3460. 2004-08-10 Jerome Guitton <guitton@gnat.com>
  3461. * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
  3462. print a line feed before the prompt.
  3463. 2004-08-10 Mark Kettenis <kettenis@gnu.org>
  3464. * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
  3465. 2004-08-09 Joel Brobecker <brobecker@gnat.com>
  3466. General cleanup of the AIX xm include file:
  3467. * config/xm-aix4.h (fd_set): Remove undefine.
  3468. Remove include of <sys/select.h>.
  3469. (HAVE_TERMIO): Remove define.
  3470. (USG): Likewise.
  3471. (NULL): Remove redefine.
  3472. (alloca): Remove #pragma.
  3473. (vfork): Remove define.
  3474. (termdef): Remove.
  3475. (SIGWINCH_HANDLER): Remove.
  3476. (SIGWINCH_HANDLER_BODY): Remove.
  3477. 2004-08-09 Mark Kettenis <kettenis@gnu.org>
  3478. * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
  3479. GDB_OSABI_OPENBSD_ELF.
  3480. 2004-08-07 Robert Millan <robertmh@gnu.org>
  3481. * bsd-kvm.c: Check for nlist.h before including it.
  3482. 2004-08-09 Mark Kettenis <kettenis@gnu.org>
  3483. * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
  3484. sigcontext' offset consistency checks for ancient BSD.
  3485. * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
  3486. * configure.in: Check for <sys/types.h>. Check return and
  3487. argument types of ptrace.
  3488. * configure, config.in: Regenerate.
  3489. 2004-08-09 Jim Blandy <jimb@redhat.com>
  3490. * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
  3491. rs6000_register_sim_regno): Doc fixes.
  3492. 2004-08-08 Joel Brobecker <brobecker@gnat.com>
  3493. * mips-tdep.c: Include "floatformat.h".
  3494. (n32n64_floatformat_always_valid): New function.
  3495. (floatformat_n32n64_long_double_big): New constant.
  3496. (mips_gdbarch_init): Set size and format of long double
  3497. for N32 and N64 ABIs.
  3498. * Makefile.in (mips-tdep.o): Update dependencies.
  3499. 2004-08-08 Andrew Cagney <cagney@gnu.org>
  3500. * gdbarch.sh: Delete "fmt" and "attrib" fields. Always use %s to
  3501. print. Improve script's error messages.
  3502. * gdbarch.h: Re-generate.
  3503. * gdbarch.sh (pformat): New function.
  3504. (float_format, double_format, long_double_format): List with bit
  3505. members. Use pformat when printing.
  3506. * gdbarch.c, gdbarch.h: Re-generate.
  3507. 2004-08-08 Nathan J. Williams <nathanw@wasabisystems.com>
  3508. * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
  3509. "gdbcore.h", "regcache.h", and "bsd-kvm.h".
  3510. (ppcnbsd_supply_pcb): New function.
  3511. (_initialize_ppcnbsd_nat): New prototype and function.
  3512. * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
  3513. (LOADLIBES): New variable.
  3514. * Makefile.in (ppcnbsd-nat.o): Update dependencies.
  3515. 2004-08-08 Andrew Cagney <cagney@gnu.org>
  3516. * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
  3517. (builtin_type_ieee_double, builtin_type_ia64_quad)
  3518. (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
  3519. BE/LE floating-point types.
  3520. * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
  3521. (builtin_type_ieee_double, builtin_type_ia64_quad)
  3522. (builtin_type_ia64_spill): Declare.
  3523. * doublest.c (_initialize_doublest, floatformat_ieee_single)
  3524. (floatformat_ieee_double, floatformat_arm_ext)
  3525. (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
  3526. of LE/BE floatformats.
  3527. * doublest.h: (struct floatformat, floatformat_ieee_single)
  3528. (floatformat_ieee_double, floatformat_arm_ext)
  3529. (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
  3530. 2004-08-08 Mark Kettenis <kettenis@gnu.org>
  3531. * i386gnu-nat.c (gnu_store_registers): Fix typo.
  3532. * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
  3533. instead of regcache_raw_supply when storing the registers.
  3534. * i386gnu-nat.c: Update copyright year.
  3535. (gnu_store_registers): Don't use deprecated_registers and
  3536. deprecated_registers_valid. Use regcache_valid_p and
  3537. regcache_raw_supply instead.
  3538. * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
  3539. frame_pc_unwind.
  3540. * procfs.c (procfs_pid_to_str): Remove redundant and unused
  3541. variables. Incapitalized "process".
  3542. * configure.in: Add cursesX to the list of possible curses libs.
  3543. Add cursesX.h to the list of possible curses headers.
  3544. * configure, config.in: Regenerate.
  3545. 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
  3546. * configure.in: Test for struct lwp in <sys/lwp.h>.
  3547. * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
  3548. the offset of l_addr in struct lwp.
  3549. 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
  3550. * bsd-kvm.c: Include "gdbcore.h"
  3551. (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
  3552. 2004-08-07 Andrew Cagney <cagney@gnu.org>
  3553. * gdbtypes.c (build_flt, build_complex): New functions.
  3554. (gdbtypes_post_init): Use.
  3555. * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
  3556. * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
  3557. through to builtin_type_uint128.
  3558. * c-exp.y: Use builtin_type function to obtain builtin types.
  3559. * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
  3560. builtin_uint128.
  3561. * gdbtypes.c (gdbtypes_post_init): Update.
  3562. (build_gdbtypes): Move initialization of builtin_type_int0
  3563. through to builtin_type_uint128 from here ...
  3564. (_initialize_gdbtypes): ... to here.
  3565. * d10v-tdep.c (d10v_register_type): Update.
  3566. * doublest.c: Update copyright.
  3567. (floatformat_from_length): Call error when floatformat is NULL.
  3568. (extract_floating_by_length): Remove NULL fmt check.
  3569. (store_floating_by_length): Ditto.
  3570. 2004-08-07 Andrew Cagney <cagney@gnu.org>
  3571. * regcache.c (regcache_raw_read): For the moment, #ifdef assert
  3572. that the register is valid.
  3573. 2004-08-05 Mark Kettenis <kettenis@chello.nl>
  3574. * i386-linux-tdep.c (i386_linux_sigtramp_start)
  3575. (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
  3576. struct frame_info *. Use safe_frame_unwind_memory instead of
  3577. deprecated_read_memory_nobpt.
  3578. (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
  3579. changed signature of i386_linux_sigtramp_start and
  3580. i386_linux_rt_sigtramp_start.
  3581. * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
  3582. CORE_ADDR to struct frame_info *. Use safe_frame_unwind_memory
  3583. instead of deprecated_read_memory_nobpt.
  3584. (i386nbsd_sigtramp_p): Adjust for changed signature of
  3585. i386nbsd_sigtramp_offset.
  3586. * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
  3587. safe_frame_unwind_memory instead of target_read_memory.
  3588. * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
  3589. !NO_SYS_FILE.
  3590. [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
  3591. [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
  3592. (_initialize_kernel_u_addr): Remove prototype and function.
  3593. * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
  3594. !NO_SYS_FILE.
  3595. * xcoffread.c: Likewise.
  3596. 2004-08-06 Mark Kettenis <kettenis@gnu.org>
  3597. * vax-nat.c: New file.
  3598. * vaxbsd-nat.c: Tweak comment.
  3599. * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
  3600. vaxnbsd-tdep.c.
  3601. (vax-nat.o): New dependency.
  3602. * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
  3603. (vax-*-ultrix2*): Remove.
  3604. * config/vax/vax.mh: New file.
  3605. * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
  3606. (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
  3607. (vax_register_u_addr): New prototype.
  3608. (REGISTER_U_ADDR): Define using vax_register_u_addr.
  3609. * config/vax/vaxult2.mh: Remove file.
  3610. * config/vax/vaxult.mh: Remove file.
  3611. * config/vax/vaxbsd.mh: Remove file.
  3612. * config/vax/vax.mt (TM_FILE): Remove.
  3613. * config/vax/tm-vaxbsd.h: Remove file.
  3614. 2004-08-06 Joel Brobecker <brobecker@gnat.com>
  3615. * aix-thread.c (get_signaled_thread): New function.
  3616. (iter_trap): Delete, no longer used.
  3617. (iter_tid): New function.
  3618. (pd_update): Find the thread that received the SIGTRAP signal
  3619. by first locating the kernel thread, and then finding its
  3620. associated thread.
  3621. 2004-08-06 Ulrich Weigand <uweigand@de.ibm.com>
  3622. * lin-lwp.c (child_wait): Continue inferior after processing
  3623. PTRACE_EVENT_CLONE event.
  3624. 2004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
  3625. * MAINTAINERS: Add self to Write-After-Approval.
  3626. 2004-08-05 Jeff Johnston <jjohnstn@redhat.com>
  3627. * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
  3628. libunwind-xxxx.so" where xxxx is UNW_TARGET.
  3629. 2004-08-05 Andrew Cagney <cagney@gnu.org>
  3630. * config/xm-sysv4.h: Delete file.
  3631. * config/mips/xm-irix5.h: Delete file.
  3632. * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
  3633. * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
  3634. * config/ia64/xm-aix.h: Delete file.
  3635. * config/ia64/aix.mh (XM_FILE): Delete.
  3636. * config/pa/xm-hppah.h: Delete file.
  3637. * config/pa/hpux11w.mh (XM_FILE): Delete.
  3638. * config/pa/hpux11.mh (XM_FILE): Delete.
  3639. * config/pa/hpux1020.mh (XM_FILE): Delete.
  3640. * config/pa/hppahpux.mh (XM_FILE): Delete.
  3641. * config/alpha/xm-alphalinux.h: Delete file.
  3642. * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
  3643. * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
  3644. * config/alpha/xm-alphaosf.h: Delete file.
  3645. * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
  3646. * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
  3647. * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
  3648. * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
  3649. * config/i386/xm-i386v.h: Delete file.
  3650. * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
  3651. * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
  3652. * config/i386/xm-i386sco.h: Delete file.
  3653. * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
  3654. * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
  3655. * config/i386/xm-i386v4.h: Delete file.
  3656. * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
  3657. * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
  3658. * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
  3659. * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
  3660. * config/vax/xm-vax.h: Delete file.
  3661. * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
  3662. * config/vax/xm-vaxult2.h: Delete file.
  3663. * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
  3664. * config/vax/vaxult2.mh (XM_FILE): Delete.
  3665. * config/vax/xm-vaxult.h: Delete file.
  3666. * config/vax/vaxult.mh (XM_FILE): Delete.
  3667. * config/vax/xm-vaxbsd.h: Delete file.
  3668. * config/vax/vaxbsd.mh (XM_FILE): Delete.
  3669. * gdbarch.sh (deprecated_frame_saved_pc): Delete.
  3670. * gdbarch.h, gdbarch.c: Re-generate.
  3671. * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
  3672. * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
  3673. * frame.h: Delete deprecated_read_fp from comments.
  3674. * arch-utils.c (deprecated_init_frame_pc_default): Delete.
  3675. * arch-utils.h (deprecated_init_frame_pc_default): Delete.
  3676. 2004-08-04 Mark Kettenis <kettenis@gnu.org>
  3677. * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
  3678. trampoline in OpenBSD 3.5-current.
  3679. * i387-tdep.c (i387_supply_fsave): Provide summy values for the
  3680. SSE registers.
  3681. * Makefile.in: Remove embedded page breaks.
  3682. 2004-08-04 Jim Blandy <jimb@redhat.com>
  3683. * regcache.c (regcache_raw_read): Assert that, after calling
  3684. target_fetch_registers, the register we're reading is cached.
  3685. * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
  3686. a call to 'internal_error', with a more helpful error message.
  3687. * rs6000-tdep.c (e500_pseudo_register_read,
  3688. e500_pseudo_register_write, rs6000_store_return_value): Same.
  3689. 2004-08-04 Andrew Cagney <cagney@gnu.org>
  3690. * Makefile.in: Update dependencies.
  3691. 2004-08-04 Jim Blandy <jimb@redhat.com>
  3692. Change the layout of the PowerPC E500 raw register cache to allow
  3693. the lower 32-bit halves of the GPRS to be their own raw registers,
  3694. not pseudoregisters.
  3695. * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
  3696. add ppc_ev0_upper_regnum flag.
  3697. * rs6000-tdep.c: #include "reggroups.h".
  3698. (spe_register_p): Recognize the ev upper half registers as SPE
  3699. registers.
  3700. (init_sim_regno_table): Build gdb->sim mappings for the upper-half
  3701. registers.
  3702. (e500_move_ev_register): New function.
  3703. (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
  3704. vector registers are the pseudo-registers now, formed by splicing
  3705. together the gprs and the upper-half registers.
  3706. (e500_register_reggroup_p): New function.
  3707. (P): Macro deleted.
  3708. (P8, A4): New macro.
  3709. (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
  3710. (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
  3711. macros.
  3712. (registers_e500): Rearrange register set so that the raw register
  3713. set contains 32-bit GPRs and upper-half registers, and the SPE
  3714. vector registers become pseudo-registers.
  3715. (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
  3716. it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
  3717. register numbers are now the same for the E500 as they are for
  3718. other PowerPC variants. Register e500_register_reggroup_p as the
  3719. register group function for the E500.
  3720. * Makefile.in (rs6000-tdep.o): Update dependencies.
  3721. Adapt PPC E500 native support to the new raw regcache layout.
  3722. * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
  3723. (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
  3724. (fetch_spe_register, store_spe_register): Handle fetching/storing
  3725. all the SPE registers at once, if regno == -1. These now take
  3726. over the job of fetch_spe_registers and store_spe_registers.
  3727. (fetch_spe_registers, store_spe_registers): Deleted.
  3728. (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
  3729. unconditionally; they're always raw. Fetch/store SPE upper half
  3730. registers, if present, instead of ev registers.
  3731. (fetch_register, store_register): Remove sanity checks: gprs are
  3732. never pseudo-registers now, so we never need to even mention any
  3733. registers that are ever pseudoregisters.
  3734. Use a fixed register numbering when communicating with the PowerPC
  3735. simulator.
  3736. * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
  3737. * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
  3738. (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
  3739. New functions.
  3740. (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
  3741. init_sim_regno_table.
  3742. * Makefile.in (gdb_sim_ppc_h): New variable.
  3743. (rs6000-tdep.o): Update dependencies.
  3744. 2004-08-02 Andrew Cagney <cagney@gnu.org>
  3745. * cris-tdep.c (cris_register_size): Restore function, still used
  3746. locally.
  3747. * gdbarch.sh (deprecated_target_read_fp)
  3748. (deprecated_frame_locals_address, deprecated_frame_args_address)
  3749. (deprecated_frame_chain_valid, deprecated_frame_chain)
  3750. (deprecated_init_extra_frame_info, deprecated_pop_frame)
  3751. (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
  3752. (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
  3753. * gdbarch.h, gdbarch.c: Re-generate.
  3754. * regcache.c (deprecated_read_fp): Do not call
  3755. DEPRECATED_TARGET_READ_FP_P.
  3756. * infcmd.c (default_print_registers_info): Do not call
  3757. DEPRECATED_DO_REGISTERS_INFO.
  3758. * frame-base.c (default_frame_locals_address): Do not call
  3759. DEPRECATED_FRAME_LOCALS_ADDRESS.
  3760. (default_frame_args_address): Do not call
  3761. DEPRECATED_FRAME_ARGS_ADDRESS.
  3762. * gdbarch.sh (deprecated_register_raw_size)
  3763. (deprecated_register_virtual_size:int): Delete.
  3764. * gdbarch.h, gdbarch.c: Re-generate.
  3765. * cris-tdep.c (cris_register_size): Delete.
  3766. (cris_gdbarch_init): Update.
  3767. * alpha-tdep.c (alpha_register_raw_size)
  3768. (alpha_register_virtual_size): Delete.
  3769. (alpha_gdbarch_init): Update.
  3770. * gdbarch.sh (deprecated_register_virtual_type)
  3771. (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
  3772. (deprecated_dummy_write_sp): Delete.
  3773. * gdbarch.h, gdbarch.c: Re-generate.
  3774. * gdbarch.sh (deprecated_register_bytes): Delete.
  3775. * gdbarch.h, gdbarch.c: Re-generate.
  3776. * regcache.c (deprecated_register_bytes): New function.
  3777. * regcache.h (deprecated_register_bytes): Declare.
  3778. * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
  3779. * v850-tdep.c (v850_gdbarch_init): Update.
  3780. * sh64-tdep.c (sh64_gdbarch_init): Update.
  3781. * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
  3782. * mn10300-tdep.c (mn10300_gdbarch_init): Update.
  3783. * mcore-tdep.c (mcore_gdbarch_init): Update.
  3784. * cris-tdep.c (cris_gdbarch_init): Update.
  3785. * arm-tdep.c (arm_gdbarch_init): Update.
  3786. * remote.c (init_remote_state): Update.
  3787. * remote-vx.c (vx_prepare_to_store): Update.
  3788. * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
  3789. * irix5-nat.c (fetch_core_registers): Update.
  3790. * cris-tdep.c (cris_register_bytes_ok): Update.
  3791. * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
  3792. * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
  3793. (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
  3794. (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
  3795. (mips_insn16_frame_base_address, mips_insn16_frame_base)
  3796. (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
  3797. (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
  3798. (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
  3799. (mips_insn32_frame_base_address, mips_insn32_frame_base)
  3800. (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
  3801. with mips_insn16 and mips_insn32.
  3802. Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
  3803. * rs6000-tdep.c (rs6000_push_dummy_call)
  3804. (rs6000_extract_return_value): Use register_size.
  3805. * xstormy16-tdep.c (xstormy16_get_saved_register)
  3806. (xstormy16_extract_return_value): Ditto.
  3807. * valops.c (value_assign): Ditto.
  3808. * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
  3809. * v850-tdep.c (v850_extract_return_value): Ditto.
  3810. * tracepoint.c (collect_symbol): Ditto.
  3811. * target.c (debug_print_register): Ditto.
  3812. * stack.c (frame_info): Ditto.
  3813. * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
  3814. * rom68k-rom.c (rom68k_supply_one_register): Ditto.
  3815. * remote.c (struct packet_reg, remote_wait, remote_async_wait)
  3816. (store_register_using_P): Ditto.
  3817. * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
  3818. * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
  3819. * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
  3820. * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
  3821. * regcache.c (deprecated_read_register_bytes)
  3822. (deprecated_write_register_bytes, read_register)
  3823. (write_register): Ditto.
  3824. * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
  3825. (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
  3826. * monitor.c (monitor_supply_register, monitor_fetch_register)
  3827. (monitor_store_register): Ditto.
  3828. * mn10300-tdep.c (mn10300_pop_frame_regular)
  3829. (mn10300_print_register): Ditto.
  3830. * mipsv4-nat.c (fill_fpregset): Ditto.
  3831. * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
  3832. (mips64_fill_fpregset): Ditto.
  3833. * mi/mi-main.c (register_changed_p, get_register)
  3834. (mi_cmd_data_write_register_values): Ditto.
  3835. * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
  3836. * irix5-nat.c (fill_gregset, fetch_core_registers):
  3837. * infrun.c (write_inferior_status_register): Ditto.
  3838. * infptrace.c (fetch_register, store_register): Ditto.
  3839. * infcmd.c (default_print_registers_info): Ditto.
  3840. * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
  3841. * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
  3842. * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
  3843. * hpux-thread.c (hpux_thread_fetch_registers)
  3844. (hpux_thread_store_registers): Ditto.
  3845. * hppah-nat.c (store_inferior_registers, fetch_register):
  3846. * findvar.c (value_from_register): Ditto.
  3847. * dve3900-rom.c (fetch_bitmapped_register):
  3848. * cris-tdep.c (cris_gdbarch_init): Ditto.
  3849. * alpha-tdep.h: Ditto.
  3850. * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
  3851. * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
  3852. DEPRECATED_REGISTER_RAW_SIZE from comments.
  3853. * regcache.c (init_regcache_descr, regcache_dump): Do not check or
  3854. use DEPRECATED_REGISTER_VIRTUAL_SIZE and
  3855. DEPRECATED_REGISTER_RAW_SIZE.
  3856. * findvar.c (value_of_register): Simplify by assuming that the
  3857. registers raw and virtual sizes are identical.
  3858. * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
  3859. comment.
  3860. * arch-utils.c (generic_register_size): Simplify by assuming
  3861. register_type.
  3862. * regcache.c (legacy_read_register_gen, real_register)
  3863. (legacy_write_register_gen): Delete, not used.
  3864. * regcache.c (struct regcache_descr): Delete legacy_p.
  3865. (init_legacy_regcache_descr): Delete function.
  3866. (init_regcache_descr): Delete call to init_legacy_regcache_descr.
  3867. Do not use deprecated register functions.
  3868. (regcache_raw_read, deprecated_write_register_gen):
  3869. (deprecated_read_register_gen, regcache_raw_write): Delete code
  3870. predicated on legacy_p.
  3871. (register_size): Delete check against register raw size.
  3872. * cris-tdep.c (cris_register_type): Replace
  3873. cris_register_virtual_type.
  3874. (cris_gdbarch_init): Update, set register_type.
  3875. * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
  3876. * gdbarch.h, gdbarch.c: Re-generate.
  3877. * arm-tdep.c (arm_frameless_function_invocation): Delete.
  3878. (arm_gdbarch_init) Do not set frameless function invocation.
  3879. * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
  3880. * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
  3881. * frv-tdep.c (frv_frameless_function_invocation): Delete.
  3882. (frv_gdbarch_init): Do not set frameless function invocation.
  3883. * sh64-tdep.c (sh64_gdbarch_init): Ditto.
  3884. * sh-tdep.c (sh_gdbarch_init): Ditto.
  3885. * m32r-tdep.c (m32r_gdbarch_init): Ditto.
  3886. * h8300-tdep.c (h8300_gdbarch_init): Ditto.
  3887. * avr-tdep.c (avr_gdbarch_init): Ditto.
  3888. * blockframe.c (legacy_frame_chain_valid): Delete function.
  3889. * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
  3890. and pc. Update comments.
  3891. (pc_in_dummy_frame): Delete function.
  3892. (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
  3893. use the "id".
  3894. (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
  3895. call_hi, top and pc, use the id.
  3896. (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
  3897. * dummy-frame.c: Include "gdb_string.h".
  3898. (generic_save_call_dummy_addr, generic_push_dummy_frame)
  3899. (generic_save_dummy_frame_tos): Delete.
  3900. (dummy_frame_push): New function, replaces above.
  3901. * dummy-frame.h: Update copyright.
  3902. (dummy_frame_push): Declare.
  3903. * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
  3904. (generic_save_call_dummy_addr): Delete declarations.
  3905. * infcall.c: Include "dummy-frame.h".
  3906. (call_function_by_hand): Add locals caller_regcache,
  3907. caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
  3908. with call to frame_save_as_regcache plus cleanup. Delete calls to
  3909. generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
  3910. Move clear_proceed_status to just before the resume, add call to
  3911. dummy_frame_push (discard cleanup).
  3912. * Makefile.in (infcall.o): Add $(dummy_frame_h).
  3913. (dummy-frame.o): Add $(gdb_string_h).
  3914. 2004-08-01 Andrew Cagney <cagney@gnu.org>
  3915. * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
  3916. * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
  3917. * dummy-frame.c (find_dummy_frame): Delete.
  3918. (struct dummy_frame_cache, dummy_frame_sniffer)
  3919. (dummy_frame_prev_register, dummy_frame_this_id)
  3920. (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
  3921. frame unwinder using a dummy_frame_cache.
  3922. 2004-08-01 Andrew Cagney <cagney@gnu.org>
  3923. * frame.h (frame_save_as_regcache): Declare.
  3924. * frame.c (frame_save_as_regcache): New function.
  3925. (do_frame_read_register): Replace do_frame_unwind_register.
  3926. (frame_pop): Use frame_save_as_regcache.
  3927. * dummy-frame.c (generic_push_dummy_frame): Use
  3928. frame_save_as_regcache.
  3929. 2004-08-01 Joel Brobecker <brobecker@gnat.com>
  3930. * dwarf2read.c (dwarf_decode_lines): Do not consider the current
  3931. file as included until we record the first line in the linetable.
  3932. 2004-08-01 Andrew Cagney <cagney@gnu.org>
  3933. * frame.h (deprecated_pop_dummy_frame)
  3934. (deprecated_read_register_dummy)
  3935. (deprecated_generic_find_dummy_frame): Delete.
  3936. * dummy-frame.c (deprecated_generic_find_dummy_frame)
  3937. (deprecated_read_register_dummy)
  3938. (deprecated_find_dummy_frame_regcache)
  3939. (discard_innermost_dummy)
  3940. (deprecated_pop_dummy_frame): Delete.
  3941. (dummy_frame_this_id): Simplify.
  3942. (struct dummy_frame): Delete "fp" and "sp".
  3943. (find_dummy_frame): Simplify.
  3944. (generic_push_dummy_frame): Do not set "fp" or "sp".
  3945. (fprint_dummy_frames): Do not print "fp" and "sp"
  3946. 2004-08-01 Mark Kettenis <kettenis@gnu.org>
  3947. * i386-tdep.c (I386_MAX_INSN_LEN): New define.
  3948. (struct i386_insn): New structure.
  3949. (i386_match_insn): New function.
  3950. (i386_frame_setup_skip_insns): New variable.
  3951. (i386_analyze_frame_setup): Change to use i386_match_insn and the
  3952. array i386_frame_setup_insns of instructions that should be
  3953. skipped inside the frame setup sequence.
  3954. 2004-08-01 Andrew Cagney <cagney@gnu.org>
  3955. * frame.h (deprecated_frame_xmalloc_with_cleanup)
  3956. (frame_saved_regs_zalloc, frame_extra_info_zalloc)
  3957. (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
  3958. * stack.c (frame_info): Delete references to
  3959. DEPRECATED_FRAME_INIT_SAVED_REGS and
  3960. deprecated_get_frame_saved_regs.
  3961. * frame.c (struct frame_info): Delete saved_regs and extra_info.
  3962. (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
  3963. (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
  3964. (frame_unwind_register_signed)
  3965. (frame_unwind_register_unsigned)
  3966. (frame_unwind_unsigned_register): Use register_size.
  3967. (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
  3968. (deprecated_frame_xmalloc_with_cleanup)
  3969. (frame_saved_regs_zalloc, frame_extra_info_zalloc)
  3970. (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
  3971. * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
  3972. * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
  3973. * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
  3974. * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
  3975. * infcall.c (call_function_by_hand): Do not use
  3976. DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
  3977. DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
  3978. DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
  3979. DEPRECATED_STACK_ALIGN.
  3980. 2004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
  3981. Committed by Andrew Cagney.
  3982. * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
  3983. 2004-08-01 Andrew Cagney <cagney@gnu.org>
  3984. * mips-tdep.c (mips16_frame_cache)
  3985. (mips16_frame_this_id, mips16_frame_prev_register)
  3986. (mips16_frame_unwind, mips16_frame_sniffer)
  3987. (mips16_frame_base_address, mips16_frame_base)
  3988. (mips16_frame_base_sniffer, mips32_frame_cache)
  3989. (mips32_frame_this_id, mips32_frame_prev_register)
  3990. (mips32_frame_unwind, mips32_frame_sniffer)
  3991. (mips32_frame_base_address, mips32_frame_base)
  3992. (mips32_frame_base_sniffer): Clone the mdebug unwinder into
  3993. separate heuristic mips16 and mips32 unwinders.
  3994. (mips_stub_frame_cache, mips_stub_frame_this_id)
  3995. (mips_stub_frame_prev_register)
  3996. (mips_stub_frame_unwind, mips_stub_frame_sniffer)
  3997. (mips_stub_frame_base_address, mips_stub_frame_base)
  3998. (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
  3999. (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
  4000. match true mdebug frames.
  4001. (non_heuristic_proc_desc): Add forward declaration.
  4002. 2004-08-01 Andrew Cagney <cagney@gnu.org>
  4003. * config/mips/tm-irix6.h: Delete file.
  4004. * config/mips/tm-irix5.h: Delete file.
  4005. * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
  4006. * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
  4007. * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
  4008. * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
  4009. * config/nm-gnu.h (NO_CORE_OPS): Delete.
  4010. * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
  4011. * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
  4012. * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
  4013. * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
  4014. * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
  4015. * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
  4016. * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
  4017. * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
  4018. (TARGET_SIGNAL_RAW_VALUES): Delete.
  4019. * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
  4020. Delete.
  4021. * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
  4022. (TARGET_HW_WATCH_LIMIT): Delete.
  4023. * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
  4024. * minimon.h: Delete file.
  4025. * trad-frame.c (trad_frame_get_this_base)
  4026. (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
  4027. functions.
  4028. * trad-frame.h (trad_frame_set_this_base)
  4029. (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
  4030. 2004-07-31 Andrew Cagney <cagney@gnu.org>
  4031. * trad-frame.c (trad_frame_get_prev_register): Rename
  4032. trad_frame_get_prev_register.
  4033. * vax-tdep.c (vax_frame_prev_register): Update.
  4034. * trad-frame.h: Update.
  4035. * trad-frame.c (trad_frame_get_register): Update.
  4036. * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
  4037. * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
  4038. Update.
  4039. * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
  4040. * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
  4041. Update.
  4042. * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
  4043. Update.
  4044. * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
  4045. Update.
  4046. * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
  4047. Update.
  4048. * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
  4049. Update.
  4050. * s390-tdep.c (s390_frame_prev_register)
  4051. (s390_stub_frame_prev_register)
  4052. (s390_sigtramp_frame_prev_register): Update.
  4053. * rs6000-tdep.c (rs6000_frame_prev_register): Update.
  4054. * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
  4055. * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
  4056. * m88k-tdep.c (m88k_frame_prev_register)
  4057. * m68hc11-tdep.c (m68hc11_frame_prev_register)
  4058. * m32r-tdep.c (m32r_frame_prev_register): Update.
  4059. * hppa-tdep.c (hppa_frame_prev_register_helper)
  4060. * frv-tdep.c (frv_frame_prev_register): Update.
  4061. * d10v-tdep.c (d10v_frame_prev_register): Update.
  4062. * cris-tdep.c (cris_frame_prev_register): Update.
  4063. * avr-tdep.c (avr_frame_prev_register): Update.
  4064. * arm-tdep.c (arm_prologue_prev_register)
  4065. (arm_sigtramp_prev_register): Update.
  4066. 2004-07-31 Andrew Cagney <cagney@gnu.org>
  4067. * frame.h (legacy_saved_regs_unwind)
  4068. (legacy_frame_chain_valid, legacy_frame_p)
  4069. (enum frame_type): Delete UNKNOWN_FRAME.
  4070. * dummy-frame.c (dummy_frame_this_id): Simplify.
  4071. * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
  4072. * frame.c (struct frame_info): Delete the field "type".
  4073. (legacy_saved_regs_prev_register, legacy_get_prev_frame)
  4074. (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
  4075. (legacy_saved_regs_unwind, legacy_frame_p)
  4076. (frame_type_from_pc): Delete.
  4077. (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
  4078. (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
  4079. 2004-07-31 Mark Kettenis <kettenis@gnu.org>
  4080. * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
  4081. indentation.
  4082. * mips-nat.c: Remove file.
  4083. * Makefile.in (ALLDEPFILES): Remove mips-nat.c
  4084. (mips-nat.o): Remove dependency.
  4085. * infptrace.c: Update copyright year.
  4086. (fetch_register): Pass NULL in regcache_raw_supply call instead of
  4087. explicitly setting the buffer to all zeroes.
  4088. * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
  4089. (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
  4090. 2004-07-30 Andrew Cagney <cagney@gnu.org>
  4091. * GDB 6.2 released from gdb_6_2-branch.
  4092. 2004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
  4093. * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
  4094. * exec.c (exec_file_attach):
  4095. * nto-tdep.c (nto_find_and_open_solib):
  4096. * pa64solib.c (pa64_solib_sizeof_symbol_table):
  4097. * solib.c (solib_open):
  4098. * somsolib.c (som_solib_sizeof_symbol_table):
  4099. * source.c (is_regular_file, openp, open_source_file):
  4100. * symfile.c (symfile_bfd_open):
  4101. * wince.c (upload_to_device): Differentiate between the search for
  4102. binary and source files.
  4103. 2004-07-30 Andrew Cagney <cagney@gnu.org>
  4104. * complaints.c (_initialize_complaints): Pass NULL to
  4105. add_setshow_zinteger_cmd for help_doc.
  4106. * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
  4107. 2004-07-30 Andrew Cagney <cagney@gnu.org>
  4108. Fix PR i18n/761.
  4109. * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
  4110. (.PHONY): Add all-po install-po, uninstall-po, clean-po,
  4111. $(PACKAGE).pot and update-po.
  4112. (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
  4113. (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
  4114. (update-po): New rules.
  4115. (localedir): Define using autoconf.
  4116. (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
  4117. (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
  4118. (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
  4119. * configure.in: Generate CATALOGS and LINGUAS from contents of
  4120. src/gdb/po/ directory. Set @localedir@ in Makefile.in.
  4121. * configure: Re-generate.
  4122. * po/gdbtext: New file
  4123. 2004-07-30 Jerome Guitton <guitton@gnat.com>
  4124. * MAINTAINERS: Reorder Write After Approval list in alphabetical
  4125. order.
  4126. 2004-07-30 David Lecomber <dsl@sources.redhat.com>
  4127. * dwarf2read.c (read_file_scope): Set producer if attribute
  4128. present.
  4129. (struct dwarf2_cu): Added new member producer.
  4130. 2004-07-30 Jerome Guitton <guitton@gnat.com>
  4131. * inflow.c (kill_command): release file handles in BFD.
  4132. * exec.c (exec_file_attach): Ditto.
  4133. * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
  4134. 2004-07-29 Andrew Cagney <cagney@gnu.org>
  4135. * PROBLEMS (mips-irix): Note that it is broken.
  4136. 2004-07-29 Andrew Cagney <cagney@gnu.org>
  4137. * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
  4138. * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
  4139. * config/xm-nbsd.h: Delete file.
  4140. * config/arm/xm-nbsd.h: Delete file.
  4141. * config/i386/xm-nbsd.h: Delete file.
  4142. * config/ns32k/xm-nbsd.h: Delete file.
  4143. * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
  4144. * config/i386/nbsdelf.mh (XM_FILE): Delete.
  4145. * config/i386/nbsdaout.mh (XM_FILE): Delete.
  4146. * config/arm/nbsdelf.mh (XM_FILE): Delete.
  4147. * config/arm/nbsdaout.mh (XM_FILE): Delete.
  4148. * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
  4149. * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
  4150. * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
  4151. * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
  4152. * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
  4153. * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
  4154. * config/powerpc/xm-linux.h: Delete empty file.
  4155. * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
  4156. * config/powerpc/linux.mh (XM_FILE): Delete.
  4157. * config/m68k/xm-linux.h: Delete empty file.
  4158. * config/m68k/linux.mh (XM_FILE): Delete.
  4159. * config/ia64/xm-linux.h: Delete empty file.
  4160. * config/ia64/linux.mh (XM_FILE): Delete.
  4161. * config/arm/xm-linux.h: Delete empty file.
  4162. * config/arm/linux.mh (XM_FILE): Delete.
  4163. * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
  4164. * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
  4165. * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
  4166. * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
  4167. * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
  4168. * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
  4169. * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
  4170. * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
  4171. * config/m68k/xm-m68k.h: Delete file.
  4172. * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
  4173. copyright.
  4174. (HOST_LONG_DOUBLE_FORMAT): Delete macro.
  4175. * config/pa/xm-linux.h: Delete empty file.
  4176. * config/pa/linux.mh (XM_FILE): Delete.
  4177. * config/i386/xm-i386.h: Delete empty file.
  4178. * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
  4179. "i386/xm-i386.h".
  4180. * config/i386/obsdaout.mh (XM_FILE): Delete.
  4181. * config/i386/obsd64.mh (XM_FILE): Delete.
  4182. * config/i386/fbsd64.mh (XM_FILE): Delete.
  4183. * config/i386/nto.mh (XM_FILE): Delete.
  4184. * config/i386/obsd.mh (XM_FILE): Delete.
  4185. * config/i386/linux64.mh (XM_FILE): Delete.
  4186. * config/i386/linux.mh (XM_FILE): Delete.
  4187. * config/i386/i386sol2.mh (XM_FILE): Delete.
  4188. * config/i386/i386gnu.mh (XM_FILE): Delete.
  4189. * config/i386/fbsd.mh (XM_FILE): Delete.
  4190. * config/i386/nbsd64.mh (XM_FILE): Delete.
  4191. 2004-07-29 Andrew Cagney <cagney@gnu.org>
  4192. * config/pa/xm-linux.h: Do not include "floatformat.h".
  4193. (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
  4194. (HOST_LONG_DOUBLE_FORMAT): Delete macros.
  4195. * config/i386/xm-i386.h: Do not include "floatformat.h".
  4196. (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
  4197. (HOST_LONG_DOUBLE_FORMAT): Delete macros.
  4198. * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
  4199. (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
  4200. GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
  4201. GDB_HOST_LONG_DOUBLE_FORMAT instead.
  4202. * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
  4203. (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
  4204. * configure, config.in: Regenerate.
  4205. * configure.host (gdb_host_float_format, gdb_host_double_format)
  4206. (gdb_host_long_double_format): Set according to the host.
  4207. 2004-07-29 Andrew Cagney <cagney@gnu.org>
  4208. * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
  4209. 2004-07-28 Andrew Cagney <cagney@gnu.org>
  4210. * PROBLEMS: Mention threads/1650.
  4211. * NEWS: Mention the NPTL fix.
  4212. 2004-07-28 Andrew Cagney <cagney@gnu.org>
  4213. * cli/cli-decode.c (add_setshow_cmd): Delete function.
  4214. (add_setshow_cmd_full): Make static.
  4215. * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
  4216. (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
  4217. * cli/cli-decode.c (add_setshow_filename_cmd)
  4218. (add_setshow_string_cmd): New functions.
  4219. * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
  4220. * mips-tdep.c (_initialize_mips_tdep): Update.
  4221. * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
  4222. * cli/cli-logging.c (_initialize_cli_logging): Update.
  4223. * complaints.c (_initialize_complaints): Update.
  4224. * remote.c (_initialize_remote): Update.
  4225. 2004-07-28 Andrew Cagney <cagney@gnu.org>
  4226. * cli/cli-decode.c (add_setshow_zinteger_cmd)
  4227. (add_setshow_cmd, add_setshow_auto_boolean_cmd)
  4228. (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
  4229. print parameters. Make string parameters constant.
  4230. * command.h: Update. Update copyright.
  4231. * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
  4232. * observer.c (_initialize_observer): Ditto.
  4233. * frame.c (_initialize_frame): Ditto.
  4234. * complaints.c (_initialize_complaints): Ditto.
  4235. * maint.c (_initialize_maint_cmds): Ditto.
  4236. * target.c (initialize_targets): Ditto.
  4237. * cli/cli-logging.c (_initialize_cli_logging): Ditto.
  4238. * infcall.c (_initialize_infcall): Ditto.
  4239. * arm-tdep.c (_initialize_arm_tdep): Ditto.
  4240. * m32r-rom.c (_initialize_m32r_rom): Ditto.
  4241. * remote-rdi.c (_initialize_remote_rdi): Ditto.
  4242. * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
  4243. * mips-tdep.c (_initialize_mips_tdep): Ditto.
  4244. 2004-07-28 Andrew Cagney <cagney@gnu.org>
  4245. * gdbtypes.c (lookup_primitive_typename): Delete function.
  4246. * gdbtypes.h (lookup_primitive_typename): Delete declaration.
  4247. * ada-lex.l: Use language_lookup_primitive_type_by_name.
  4248. * gdbtypes.c (lookup_typename): Ditto.
  4249. * f-exp.y (yylex): Ditto.
  4250. * c-exp.y (yylex): Ditto, eliminate assignment in "if".
  4251. * scm-lang.c (c_builtin_types): Delete extern declaration.
  4252. (scm_language_defn): Replace
  4253. string_char_type and primitive_type_vector with
  4254. la_language_arch_info.
  4255. * jv-lang.c (java_language_defn): Replace
  4256. string_char_type and primitive_type_vector with
  4257. la_language_arch_info.
  4258. * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
  4259. c_builtin_types in comment.
  4260. * c-lang.h (struct language_arch_info): Declare opaque.
  4261. (c_language_arch_info): Declare.
  4262. (c_builtin_types): Delete declaration.
  4263. * c-lang.c (c_language_arch_info): Set string_char_type to
  4264. builtin_char, not builtin_true_char. Make global.
  4265. (c_builtin_types): Delete array.
  4266. (asm_language_defn, minimal_language_defn): Replace
  4267. string_char_type and primitive_type_vector with
  4268. la_language_arch_info.
  4269. 2004-07-28 Andrew Cagney <cagney@gnu.org>
  4270. * gdbtypes.h (struct builtin_type): Rename true_char to
  4271. builtin_true_char.
  4272. * gdbtypes.c (gdbtypes_post_init): Update.
  4273. * c-lang.c (arch_info): New function.
  4274. (enum c_primitive_types): New enum.
  4275. (c_language_defn): Instead of string_char_type and
  4276. primitive_type_vector set la_language_arch_info.
  4277. 2004-07-28 Andrew Cagney <cagney@gnu.org>
  4278. * language.h (struct language_arch_info): Fix typo
  4279. s/primative/primitive/.
  4280. * gdbtypes.c (lookup_primitive_typename): Ditto.
  4281. * language.c (language_lookup_primitive_type_by_name)
  4282. (unknown_language_arch_info): Ditto.
  4283. 2004-07-27 Andrew Cagney <cagney@gnu.org>
  4284. * defs.h (enum language): Add nr_languages.
  4285. * language.h (struct language_arch_info): Define.
  4286. (struct language_defn): Add la_language_arch_info.
  4287. (language_lookup_primative_type_by_name): Declare.
  4288. (language_string_char_type): Declare.
  4289. * language.c (_initialize_language, language_gdbarch_post_init)
  4290. (struct language_gdbarch, language_gdbarch_data): Implement
  4291. per-architecture language information.
  4292. (unknown_language_arch_info, language_string_char_type)
  4293. (language_lookup_primative_type_by_name): New functions.
  4294. (unknown_language_defn, auto_language_defn)
  4295. (local_language_defn): Set la_language_arch_info to
  4296. unknown_language_arch_info.
  4297. (unknown_builtin_types): Delete.
  4298. * gdbtypes.c (lookup_primitive_typename): Use
  4299. language_lookup_primative_type_by_name.
  4300. (create_string_type): Use language_string_char_type.
  4301. * values.c (value_from_string): Use language_string_char_type.
  4302. * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
  4303. * p-lang.c (pascal_language_defn): Ditto.
  4304. * m2-lang.c (m2_language_defn): Ditto.
  4305. * jv-lang.c (java_language_defn): Ditto.
  4306. * objc-lang.c (objc_language_defn): Ditto.
  4307. * f-lang.c (f_language_defn): Ditto.
  4308. * c-lang.c (c_language_defn, cplus_language_defn)
  4309. (asm_language_defn, minimal_language_defn): Ditto.
  4310. 2004-07-27 Andrew Cagney <cagney@gnu.org>
  4311. * gdbtypes.h (struct builtin_type): Declare.
  4312. (builtin_type): Declare.
  4313. * d10v-tdep.c (d10v_register_type): Use builtin_type.
  4314. * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
  4315. (gdbtypes_post_init): New function.
  4316. (builtin_type): New function.
  4317. 2004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
  4318. * remote-m32r-sdi.c: Fix breakpoint bug.
  4319. (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
  4320. recv_char_data, recv_long_data): New functions to replace communication
  4321. sequences.
  4322. 2004-07-26 Michael Chastain <mec.gnu@mindspring.com>
  4323. Document PR threads/1650.
  4324. * PROBLEMS (Threads): Document problem with many threads
  4325. 2004-07-26 Andrew Cagney <cagney@gnu.org>
  4326. * gdb-mi.el: Move from here ...
  4327. * mi/gdb-mi.el: ... to here.
  4328. 2004-07-26 Andrew Cagney <cagney@gnu.org>
  4329. Problem reported by Ashley Pittman <ashley@quadrics.com>.
  4330. * main.c (captured_main): When in batch mode always detach.
  4331. 2004-07-26 Andrew Cagney <cagney@gnu.org>
  4332. * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
  4333. and h8300 as broken.
  4334. * NEWS: END-OF-LIFE frame compatibility module.
  4335. * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
  4336. specific comments.
  4337. 2004-07-26 Andrew Cagney <cagney@gnu.org>
  4338. * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
  4339. * xcoffsolib.c (_initialize_xcoffsolib): Update.
  4340. * wince.c (_initialize_wince): Update.
  4341. * win32-nat.c (_initialize_win32_nat): Update.
  4342. * varobj.c (_initialize_varobj): Update.
  4343. * valops.c (_initialize_valops): Update.
  4344. * utils.c (initialize_utils, initialize_utils): Update.
  4345. * tui/tui-win.c (_initialize_tui_win): Update.
  4346. * top.c (init_main): Update.
  4347. * symfile.c (_initialize_symfile): Update.
  4348. * source.c (_initialize_source): Update.
  4349. * somsolib.c (_initialize_som_solib): Update.
  4350. * solib.c (_initialize_solib): Update.
  4351. * solib-frv.c (_initialize_frv_solib): Update.
  4352. * serial.c (_initialize_serial): Update.
  4353. * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
  4354. * remote.c (_initialize_remote, _initialize_remote): Update.
  4355. * remote-vx.c (_initialize_vx): Update.
  4356. * remote-utils.c (_initialize_sr_support): Update.
  4357. * remote-sds.c (_initialize_remote_sds): Update.
  4358. * remote-mips.c (_initialize_remote_mips): Update.
  4359. * remote-e7000.c (_initialize_remote_e7000): Update.
  4360. * proc-api.c (_initialize_proc_api): Update.
  4361. * printcmd.c: Update.
  4362. * parse.c (_initialize_parse): Update.
  4363. * pa64solib.c (_initialize_pa64_solib): Update.
  4364. * p-valprint.c (_initialize_pascal_valprint): Update.
  4365. * monitor.c (_initialize_remote_monitors): Update.
  4366. * mips-tdep.c (_initialize_mips_tdep): Update.
  4367. * mcore-tdep.c (_initialize_mcore_tdep): Update.
  4368. * maint.c (_initialize_maint_cmds): Update.
  4369. * lin-lwp.c (_initialize_lin_lwp): Update.
  4370. * language.c (_initialize_language): Update.
  4371. * kod.c (_initialize_kod): Update.
  4372. * infrun.c (set_schedlock_func, _initialize_infrun): Update.
  4373. * i386-tdep.c (_initialize_i386_tdep): Update.
  4374. * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
  4375. * gdbarch.sh: Update.
  4376. * gdbarch.c: Re-generate.
  4377. * gdb-events.sh: Update.
  4378. * gdb-events.c: Re-generate.
  4379. * frame.c (_initialize_frame): Update.
  4380. * exec.c: Update.
  4381. * demangle.c (_initialize_demangler): Update.
  4382. * dcache.c (_initialize_dcache): Update.
  4383. * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
  4384. * cp-valprint.c (_initialize_cp_valprint): Update.
  4385. * corefile.c (_initialize_core): Update.
  4386. * command.h: Update.
  4387. * cli/cli-decode.h: Update.
  4388. * cli/cli-cmds.c (init_cli_cmds): Update.
  4389. * charset.c (_initialize_charset): Update.
  4390. * breakpoint.c (_initialize_breakpoint): Update.
  4391. * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
  4392. * alpha-tdep.c (_initialize_alpha_tdep): Update.
  4393. * aix-thread.c (_initialize_aix_thread): Update.
  4394. 2004-07-24 Mark Kettenis <kettenis@gnu.org>
  4395. Partial fix for PR backtrace/1718.
  4396. * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
  4397. that GCC migrates into the prolugue. Don't handle any
  4398. instructions that clobber %ebx.
  4399. 2004-07-23 Andrew Cagney <cagney@gnu.org>
  4400. Use regcache_raw_collect instead of regcache_collect.
  4401. * regcache.h (regcache_collect): Delete declaration.
  4402. * regcache.c (regcache_colect): Delete function.
  4403. * win32-nat.c (do_child_store_inferior_registers): Update.
  4404. * sol-thread.c (sol_thread_store_registers): Update.
  4405. * shnbsd-tdep.c (shnbsd_fill_reg): Update.
  4406. * rs6000-nat.c (store_register): Update.
  4407. * remote.c (store_register_using_P, remote_store_registers): Update.
  4408. * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
  4409. * ppc-linux-nat.c (store_altivec_register, store_spe_register)
  4410. (fill_vrregset, store_spe_registers, fill_gregset)
  4411. (fill_gregset): Update.
  4412. * nto-procfs.c (procfs_store_registers): Update.
  4413. * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
  4414. * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
  4415. * m68klinux-nat.c (store_register, fill_gregset): Update.
  4416. * m68k-tdep.c (fill_gregset): Update.
  4417. * infptrace.c (store_register): Update.
  4418. * i386-nto-tdep.c (i386nto_regset_fill): Update.
  4419. * i386-linux-nat.c (store_register, fill_gregset): Update.
  4420. * hppa-linux-nat.c (fill_gregset): Update.
  4421. * go32-nat.c (store_register): Update.
  4422. * armnbsd-nat.c (store_register, store_regs, store_fp_register)
  4423. (store_fp_regs): Update.
  4424. * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
  4425. (store_nwfpe_extended, store_fpregister, store_fpregs)
  4426. (store_register, store_regs, fill_gregset, fill_fpregset): Update.
  4427. * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
  4428. * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
  4429. (store_regs_user_thread, store_regs_kernel_thread): Update.
  4430. 2004-07-24 Mark Kettenis <kettenis@gnu.org>
  4431. * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
  4432. (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
  4433. encoding.
  4434. (dwarf2_build_frame_info): Adjust for removal of `addr_size'
  4435. member of `struct comp_unit'.
  4436. 2004-07-23 Andrew Cagney <cagney@gnu.org>
  4437. * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
  4438. DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
  4439. 2004-07-23 Martin Hunt <hunt@redhat.com>
  4440. Kevin Buettner <kevinb@redhat.com>
  4441. * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
  4442. alignment was being added to the offset instead of multiplied.
  4443. 2004-07-23 Mark Kettenis <kettenis@gnu.org>
  4444. * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
  4445. changed signal trampoline in OpenBSD 3.5-current.
  4446. * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
  4447. <machine/pcb.h> and "bsd-kvm.h".
  4448. (sparc64nbsd_supply_pcb): New function.
  4449. (_initialize_sparc64nbsd_nat): Renamed from
  4450. _initialize_sparcnbsd_nat. Enable libkvm interface.
  4451. * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
  4452. * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
  4453. (LOADLIBES): New variable.
  4454. * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
  4455. * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
  4456. 2004-07-21 Andrew Cagney <cagney@gnu.org>
  4457. Use regcache_raw_supply instead of supply_register.
  4458. * regcache.h (supply_register): Delete declaration.
  4459. * regcache.c (supply_register): Delete function.
  4460. * wince.c (do_child_fetch_inferior_registers): Update.
  4461. * win32-nat.c (do_child_fetch_inferior_registers)
  4462. (fetch_elf_core_registers): Update.
  4463. * v850ice.c (v850ice_fetch_registers): Update.
  4464. * thread-db.c (thread_db_store_registers): Update.
  4465. * sol-thread.c (sol_thread_store_registers): Update.
  4466. * shnbsd-tdep.c (shnbsd_supply_reg): Update.
  4467. * rs6000-nat.c (fetch_register): Update.
  4468. * rom68k-rom.c (rom68k_supply_one_register): Update.
  4469. * remote.c (remote_wait, remote_async_wait): Update.
  4470. * remote-st.c (get_hex_regs): Update.
  4471. * remote-sim.c (gdbsim_fetch_register): Update.
  4472. * remote-sds.c (sds_fetch_registers): Update.
  4473. * remote-rdp.c (remote_rdp_fetch_register): Update.
  4474. * remote-rdi.c (arm_rdi_fetch_registers): Update.
  4475. * remote-mips.c (mips_wait, mips_fetch_registers): Update.
  4476. * remote-m32r-sdi.c (m32r_fetch_register): Update.
  4477. * remote-hms.c (init_hms_cmds): Update.
  4478. * remote-est.c (init_est_cmds): Update.
  4479. * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
  4480. (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
  4481. * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
  4482. * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
  4483. (fetch_register, supply_vrregset, supply_vrregset)
  4484. (fetch_spe_registers): Update.
  4485. * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
  4486. * monitor.c (monitor_supply_register): Update.
  4487. * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
  4488. * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
  4489. (mipsnbsd_supply_fpreg): Update.
  4490. * mips-nat.c (fetch_inferior_registers)
  4491. (fetch_core_registers): Update.
  4492. * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
  4493. (supply_fpregset, mips64_supply_gregset)
  4494. (mips64_supply_fpregset): Update.
  4495. * m68klinux-nat.c (fetch_register, supply_gregset)
  4496. (supply_fpregset): Update.
  4497. * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
  4498. * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
  4499. * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
  4500. * irix5-nat.c (supply_gregset, supply_fpregset): Update.
  4501. * infptrace.c (fetch_register): Update.
  4502. * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
  4503. * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
  4504. * i386gnu-nat.c (fetch_fpregs, supply_gregset)
  4505. (gnu_fetch_registers, gnu_store_registers): Update.
  4506. * i386-nto-tdep.c (i386nto_supply_gregset): Update.
  4507. * i386-linux-nat.c (fetch_register, supply_gregset)
  4508. (dummy_sse_values): Update.
  4509. * hpux-thread.c (hpux_thread_fetch_registers): Update.
  4510. * hppah-nat.c (fetch_register): Update.
  4511. * hppa-linux-nat.c (fetch_register, supply_gregset)
  4512. (supply_fpregset): Update.
  4513. * go32-nat.c (fetch_register): Update.
  4514. * dve3900-rom.c (fetch_bitmapped_register)
  4515. (_initialize_r3900_rom): Update.
  4516. * cris-tdep.c (supply_gregset): Update.
  4517. * abug-rom.c (init_abug_cmds): Update.
  4518. * core-aout.c (fetch_core_registers): Update.
  4519. * armnbsd-nat.c (supply_gregset, supply_fparegset)
  4520. (fetch_register, fetch_fp_register): Update.
  4521. * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
  4522. (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
  4523. (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
  4524. * alphanbsd-tdep.c (fetch_core_registers): Update.
  4525. * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
  4526. * alpha-nat.c (fetch_osf_core_registers)
  4527. (fetch_osf_core_registers, fetch_osf_core_registers): Update.
  4528. * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
  4529. (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
  4530. 2004-07-21 Andrew Cagney <cagney@gnu.org>
  4531. * PROBLEMS: Mention breakpoints/1702.
  4532. * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
  4533. that is known to work.
  4534. 2004-07-21 Andrew Cagney <cagney@gnu.org>
  4535. * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
  4536. * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
  4537. * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
  4538. (handle_inferior_event): Wrap call to deprecated
  4539. IGNORE_HELPER_CALL in #ifdef.
  4540. * config/mips/tm-nbsd.h: Update.
  4541. 2004-07-20 Jim Blandy <jimb@redhat.com>
  4542. * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
  4543. bfd_mach_ppc has no segment registers.
  4544. Include PowerPC SPR numbers for special-purpose registers.
  4545. * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
  4546. (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
  4547. new member in initializer.
  4548. (S, S4, SN4, S64): New macros for defining special-purpose
  4549. registers.
  4550. (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
  4551. registers_403, registers_403GC, registers_505, registers_860,
  4552. registers_601, registers_602, registers_603, registers_604,
  4553. registers_750, registers_e500): Use them.
  4554. * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
  4555. replace references with expression used to initialize variable.
  4556. 2004-07-20 Andrew Cagney <cagney@gnu.org>
  4557. * breakpoint.c (deprecated_read_memory_nobpt): Rename
  4558. read_memory_nobpt.
  4559. * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
  4560. * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
  4561. (s390_sigtramp_frame_sniffer): Update.
  4562. * mn10300-tdep.c (mn10300_analyze_prologue): Update.
  4563. * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
  4564. * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
  4565. (mips32_fetch_instruction): Update.
  4566. * mcore-tdep.c (get_insn): Update.
  4567. * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
  4568. * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
  4569. * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
  4570. * i386-linux-tdep.c (i386_linux_sigtramp_start)
  4571. (i386_linux_rt_sigtramp_start): Update.
  4572. * i386-linux-nat.c (child_resume): Update.
  4573. * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
  4574. * hppa-linux-tdep.c (insns_match_pattern): Update.
  4575. * gdbcore.h: Update.
  4576. * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
  4577. * frame.c (safe_frame_unwind_memory): Update.
  4578. * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
  4579. * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
  4580. * alpha-tdep.c (alpha_read_insn): Update.
  4581. 2004-07-20 Andrew Cagney <cagney@gnu.org>
  4582. * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
  4583. containing both bytes and mask. Add "frame_type".
  4584. * tramp-frame.c (tramp_frame_start): Update.
  4585. (tramp_frame_prepend_unwinder): Update.
  4586. * mips-linux-tdep.c (mips_linux_o32_sigframe)
  4587. (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
  4588. (mips_linux_n64_rt_sigframe): Update. Make "static const".
  4589. * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
  4590. 2004-07-19 Eli Zaretskii <eliz@gnu.org>
  4591. * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
  4592. bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
  4593. sim/testsuite/sim/mips/hilo-hazard-[123].s, and
  4594. sim/testsuite/sim/mips/fpu64-ps-sb1.s.
  4595. 2004-07-17 Andrew Cagney <cagney@gnu.org>
  4596. * NEWS, PROBLEMS: Update for 6.2.
  4597. * README: Update to 6.2.
  4598. * utils.c (xvasprintf): Call xstrvprintf.
  4599. * parse.c: Update copyright.
  4600. (null_post_parser): Eliminate ARGSUSED.
  4601. * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
  4602. * tui/tui-win.c (tui_get_cmd_list): Ditto.
  4603. * symfile-mem.c (_initialize_symfile_mem): Ditto.
  4604. * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
  4605. * ppc-linux-nat.c: Use "Linux kernel".
  4606. * hppa-linux-tdep.c: Use GNU/Linux.
  4607. * hppa-linux-nat.c: Use GNU/Linux.
  4608. * dwarfread.c: Add [sic] to use of Linux.
  4609. * hppa-linux-nat.c: Do not include <string.h>.
  4610. (supply_fpregset): Remove "register" attribute.
  4611. * solib-frv.c (fetch_loadmap): Use xfree, not free.
  4612. 2004-07-17 Mark Kettenis <kettenis@gnu.org>
  4613. * configure.in: Define _MSE_INT_H on Solaris 9 too.
  4614. * configure, config.in: Regenerated.
  4615. * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
  4616. "bsd-kvm.h".
  4617. (vaxbsd_supply_pcb): New function.
  4618. (_initialize_vaxbsd_nat): New prototype and function.
  4619. * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
  4620. solib-sunos.o.
  4621. (LOADLIBES): New variable.
  4622. * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
  4623. (LOADLIBES): New variable.
  4624. * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
  4625. (LOADLIBES): New variable.
  4626. * Makefile.in (vaxbsd-nat.o): Update dependencies.
  4627. 2004-07-16 Andrew Cagney <cagney@gnu.org>
  4628. * defs.h (event_loop_p): Replace variable declaration with macro,
  4629. always 1.
  4630. * main.c (captured_main): Delete options "-async" and "-noasync".
  4631. (event_loop_p): Delete variable.
  4632. * NEWS: Mention that "-async" and "-noasync" were removed.
  4633. 2004-07-16 Andrew Cagney <cagney@gnu.org>
  4634. * remote-m32r-sdi.c: Re-indent.
  4635. 2004-07-16 Jim Blandy <jimb@redhat.com>
  4636. * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
  4637. (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
  4638. (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
  4639. missing MPC823 SPRs.
  4640. (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
  4641. incorrect. (This was corrected in GDB's register name tables on
  4642. 2004-07-14.)
  4643. * rs6000-tdep.c (registers_602): Correct register name: "esassr"
  4644. should be "esasrr" ("ESA Save and Restore Register").
  4645. 2004-07-16 Andrew Cagney <cagney@gnu.org>
  4646. * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
  4647. calls, no longer applicable. Update comments and rename parameter
  4648. "step_frame" to "return_frame".
  4649. 2004-07-16 Andrew Cagney <cagney@gnu.org>
  4650. * frame.c (fprint_field): New function.
  4651. (fprint_frame_id): Use fprint_field.
  4652. 2004-07-15 Joel Brobecker <brobecker@gnat.com>
  4653. * ada-lang.c (ada_language_defn): Remove commented out code.
  4654. 2004-07-15 Jim Blandy <jimb@redhat.com>
  4655. * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
  4656. * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
  4657. 2004-07-14 Jim Blandy <jimb@redhat.com>
  4658. * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
  4659. * ppc-tdep.h (ppc_num_vrs): New enum constant.
  4660. * ppc-tdep.h (ppc_num_srs): New enum constant.
  4661. * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
  4662. (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
  4663. (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
  4664. (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
  4665. (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
  4666. (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
  4667. (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
  4668. (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
  4669. (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
  4670. (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
  4671. (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
  4672. (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
  4673. (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
  4674. (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
  4675. (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
  4676. (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
  4677. (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
  4678. (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
  4679. (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
  4680. (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
  4681. (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
  4682. (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
  4683. (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
  4684. (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
  4685. (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
  4686. (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
  4687. (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
  4688. (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
  4689. (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
  4690. (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
  4691. (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
  4692. (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
  4693. (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
  4694. (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
  4695. (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
  4696. (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
  4697. (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
  4698. (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
  4699. (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
  4700. special-purpose register numbers.
  4701. * rs6000-tdep.c (registers_860): Correct register name. (No PPC
  4702. manual mentions 'md_twb', but many mention 'm_twb', and at that
  4703. point in the register list.)
  4704. 2004-07-14 Andrew Cagney <cagney@gnu.org>
  4705. * utils.c (internal_warning_problem): Fix typo, "internal-warning"
  4706. instead of "internal-error".
  4707. 2004-07-10 Joel Brobecker <brobecker@gnat.com>
  4708. * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
  4709. that was inserted inside a comment.
  4710. 2004-07-10 Randolph Chung <tausq@debian.org>
  4711. * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
  4712. function.
  4713. (hppa_hpux_push_dummy_code): New function.
  4714. (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
  4715. Set find_global_pointer method.
  4716. 2004-07-10 Mark Kettenis <kettenis@gnu.org>
  4717. * NEWS: Mention BSD libkvm interface.
  4718. 2004-07-10 Michael Snyder <msnyder@redhat.com>
  4719. * symfile.c (generic_load): Comment typo.
  4720. * stack.c (get_selected_block): Ditto.
  4721. * regcache.c (regcache_cooked_read): Ditto.
  4722. * monitor.c (monitor_debug): Ditto.
  4723. * mips-tdep.c (mips_read_pc): Ditto.
  4724. * i386-linux-nat.c (ps_get_thread_area): Ditto.
  4725. * gdb_mbuild.sh: Ditto.
  4726. * gdbarch.sh: Ditto.
  4727. * gdbarch.h: Ditto.
  4728. 2004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
  4729. * ada-tasks.c: Remove file.
  4730. Remove ARI problems:
  4731. * ada-exp.y (write_var_from_sym): Reformat to put operator at
  4732. beginning of line.
  4733. * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
  4734. Add comment.
  4735. Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
  4736. (MIN_OF_SIZE): Rename min_of_size. Add comment.
  4737. (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
  4738. (UMIN_OF_SIZE): Remove.
  4739. (max_of_type): New function to replace orphan macro in gdbtypes.h
  4740. (min_of_type): Ditto.
  4741. (discrete_type_high_bound): Use max_of_type.
  4742. (discrete_type_low_bound): Use min_of_type.
  4743. (possible_user_operator_p): Move operator to beginning of line.
  4744. (ada_is_variant_part): Ditto.
  4745. (ensure_lval): Rewrite to avoid deprecated operations.
  4746. (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
  4747. rather than adding DEPRECATED_FUNCTION_START_OFFSET.
  4748. (ada_enum_name): Remove assignments in 'if' statements.
  4749. (build_ada_types): Add gdbarch parameter.
  4750. (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
  4751. with gdbarch_data_register_post_init.
  4752. Use add_setshow_uinteger_cmd rather than add_set_cmd and
  4753. add_show_from_set.
  4754. * ada-valprint.c (inspect_it): Remove declaration.
  4755. (repeat_count_threshold): Remove declaration.
  4756. (ada_print_floating): Remove assignments in 'if' statements.
  4757. (print_str): Move operator to beginning of line.
  4758. 2004-07-08 Jim Blandy <jimb@redhat.com>
  4759. * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
  4760. 2004-07-08 Bob Rossi <bob@brasko.net>
  4761. * symtab.c (lookup_symtab): check return value of symtab_to_fullname
  4762. 2004-07-06 Jeff Johnston <jjohnstn@redhat.com>
  4763. * language.h (struct_language_defn): Add new function pointer:
  4764. la_class_name_from_physname. Also add new prototype for
  4765. language_class_name_from_physname.
  4766. * language.c (language_class_name_from_physname): New function.
  4767. (unk_lang_class_name): Ditto.
  4768. (unknown_language_defn, auto_language_defn): Change
  4769. to add unk_lang_class_name function pointer for
  4770. la_class_name_from_physname.
  4771. (local_language_defn): Ditto.
  4772. * dwarf2read.c (guess_structure_name): Change to call
  4773. language_class_name_from_physname.
  4774. (determine_class_name): Ditto.
  4775. * cp-support.c (class_name_from_physname): Renamed.
  4776. (cp_class_name_from_physname): New name of function.
  4777. * cp-support.h: Ditto.
  4778. * c-lang.c (c_language_defn): Change to add NULL
  4779. for class_name_from_physname function pointer.
  4780. (cplus_language_defn): Change to add cp_class_name_from_physname.
  4781. * jv-lang.c (java_class_name_physname): New function.
  4782. (java_find_last_component): New static routine.
  4783. (java_language_defn): Add java_class_name_from_physname pointer.
  4784. * ada-lang.c (ada_language_defn): Change to add NULL
  4785. for class_name_from_physname function pointer.
  4786. * f-lang.c (f_language_defn): Ditto.
  4787. * m2-lang.c (m2_language_defn): Ditto.
  4788. * objc-lang.c (objc_language_defn): Ditto.
  4789. * p-lang.c (pascal_language_defn): Ditto.
  4790. * scm-lang.c (scm_language_defn): Ditto.
  4791. 2004-07-06 Andrew Cagney <cagney@gnu.org>
  4792. Patch from Bart Robinson.
  4793. * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
  4794. (O_LARGEFILE): Define to 0, if not defined.
  4795. 2004-07-03 Mark Kettenis <kettenis@gnu.org>
  4796. * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
  4797. <machine/pcb.h> and "bsd-kvm.h".
  4798. (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
  4799. (m68kbsd_supply_pcb): New function.
  4800. (_initialize_m68kbsd_nat): New prototype and function.
  4801. * Makefile.in (m68kbsd-nat.o): Update dependencies.
  4802. * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
  4803. (LOADLIBES): New variable.
  4804. * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
  4805. (LOADLIBES): New variable.
  4806. * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
  4807. 2004-07-03 Mark Kettenis <kettenis@gnu.org>
  4808. * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
  4809. <sys/proc.h>.
  4810. (bsd_kvm_cmdlist): New variable.
  4811. (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
  4812. (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
  4813. command and "kvm proc" command.
  4814. * Makefile.in (bsd-kvm.o): Update dependencies.
  4815. 2004-07-02 Mark Kettenis <kettenis@gnu.org>
  4816. * osabi.c: Update copyright year.
  4817. (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
  4818. notes if EI_OSABI is set to ELFOSABI_HPUX.
  4819. 2004-07-01 Michael Snyder <msnyder@redhat.com>
  4820. * win32-nat.c (core_dll_symbols_add): Re-indent a small section
  4821. that seems to have gotten whacked out of line.
  4822. 2004-07-01 Mark Kettenis <kettenis@gnu.org>
  4823. * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
  4824. code.
  4825. 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
  4826. * ada-lang.c (decode_packed_array): Minor change to comment.
  4827. (ada_value_slice_ptr): New function.
  4828. (ada_value_slice): New function.
  4829. (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
  4830. test. Don't know why it is there.
  4831. Change slice code to use ada_value_slice_ptr and ada_value_slice, and
  4832. to avoid dereferencing huge arrays from which one is slicing.
  4833. (empty_array): Correct to return an array rather than
  4834. a subrange value.
  4835. * ada-valprint.c (print_optional_low_bound): Don't print lower bound
  4836. on empty arrays (let'em use 'FIRST instead).
  4837. 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
  4838. Address complaints from gdb_ari.sh:
  4839. * ada-exp.y: Include gdb_string.h rather than string.h.
  4840. (convert_char_literal): Reformat declaration.
  4841. * ada-lang.h: Include opaque struct declaration for struct frame_info.
  4842. * ada-lex.l: Change use of free to xfree (the macro would do so
  4843. anyway, but this is harmless).
  4844. Include gdb_string.h rather than string.h.
  4845. * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
  4846. * ada-lang.c (parse): Remove K&Rism in parameter list.
  4847. (is_name_suffix): Correct Linux => GNU/Linux in comment.
  4848. 2004-06-30 Mark Kettenis <kettenis@gnu.org>
  4849. * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
  4850. dead code.
  4851. 2004-06-30 Mark Kettenis <kettenis@gnu.org>
  4852. * alphabsd-nat.c: Update copyright year.
  4853. (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
  4854. 2004-06-29 Joel Brobecker <brobecker@gnat.com>
  4855. * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
  4856. (i386_cygwin_in_solib_call_trampoline): New function.
  4857. (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
  4858. and skip_trampoline_code gdbarch methods.
  4859. 2004-06-29 Jim Blandy <jimb@redhat.com>
  4860. * Makefile.in (gdb_callback_h): Renamed from callback_h to the
  4861. name actually used in the dependency lists.
  4862. 2004-06-29 Randolph Chung <tausq@debian.org>
  4863. * NEWS (New native configurations): Mention GNU/Linux/hppa.
  4864. 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
  4865. * win32-nat.c (child_pid_to_exec_file): New function.
  4866. (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
  4867. functionality.
  4868. 2004-06-28 Andrew Cagney <cagney@gnu.org>
  4869. * defs.h (xstrvprintf): Declare.
  4870. * utils.c (xstrvprintf): New function.
  4871. (internal_vproblem, xstrprintf, xasprintf)
  4872. (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
  4873. * serial.c (serial_printf): Ditto.
  4874. * complaints.c (vcomplaint): Ditto.
  4875. 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
  4876. * infcmd.c (attach_command): Move call to target_terminal_inferior
  4877. behind loading symbol table.
  4878. 2004-06-28 Andrew Cagney <cagney@gnu.org>
  4879. * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
  4880. change - add back extern deprecated_ui_loop_hook declaration.
  4881. 2004-06-28 Andrew Cagney <cagney@gnu.org>
  4882. * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
  4883. xstrprintf.
  4884. * varobj.c (varobj_gen_name, create_child, c_name_of_child)
  4885. (c_value_of_variable): Ditto.
  4886. * utils.c (internal_vproblem): Ditto.
  4887. * solib-aix5.c (build_so_list_from_mapfile): Ditto.
  4888. * remote.c (add_packet_config_cmd): Ditto.
  4889. * remote-rdp.c (rdp_set_command_line): Ditto.
  4890. * regcache.c (regcache_dump): Ditto.
  4891. * frv-tdep.c (new_variant, new_variant): Ditto.
  4892. * fbsd-proc.c (child_pid_to_exec_file): Ditto.
  4893. (fbsd_find_memory_regions): Ditto.
  4894. * breakpoint.c (create_thread_event_breakpoint)
  4895. (create_breakpoints): Ditto.
  4896. * aix-thread.c (aix_thread_pid_to_str): Ditto.
  4897. * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
  4898. 2004-06-28 Joel Brobecker <brobecker@gnat.com>
  4899. * ada-lang.c: Re-indent file, with some massaging to help indent
  4900. a bit when the result is otherwise really too ugly.
  4901. 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
  4902. * frame.h (struct frame_id): Change bit field type of stack_addr_p,
  4903. code_addr_p and special_addr_p to 'unsigned int'.
  4904. 2004-06-27 Mark Kettenis <kettenis@gnu.org>
  4905. * i386v4-nat.c: Update copyright year and tweak comment.
  4906. (regmap): Remove trailing comma.
  4907. (supply_gregset): Rename local variable i to regnum. Call
  4908. regcache_raw_supply instead of supply_register.
  4909. (fill_gregset): Rename argument regno to regnum. Call
  4910. regcache_raw_collect instead of regcache_collect.
  4911. 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
  4912. * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
  4913. and special_addr_p.
  4914. (frame_id_build, frame_id_build_special): Update comments.
  4915. (frame_id_build_wild): New prototype.
  4916. * frame.c (frame_id_build, frame_id_build_special): Fill in new
  4917. struct frame_id fields.
  4918. (frame_id_build_wild): New function.
  4919. (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
  4920. 2004-06-27 Mark Kettenis <kettenis@gnu.org>
  4921. * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
  4922. hppabsd-tdep.c.
  4923. 2004-06-27 Joel Brobecker <brobecker@gnat.com>
  4924. * ada-lang.c: Minor reformatting to conform to GNU coding standards.
  4925. 2004-06-27 Joel Brobecker <brobecker@gnat.com>
  4926. * ada-lang.c: Re-indent file.
  4927. 2004-06-27 Joel Brobecker <brobecker@gnat.com>
  4928. * ada-lang.c (symtab_symbol_info): Remove unused declaration.
  4929. (no_symtab_msg): Likewise.
  4930. 2004-06-27 Andreas Schwab <schwab@suse.de>
  4931. * source.c: Fix whitespace.
  4932. 2004-06-27 Mark Kettenis <kettenis@gnu.org>
  4933. * configure.in: Include <sys/param.h> for td_pcb test.
  4934. * configure: Regenerated.
  4935. * i386nbsd-nat.c: New file.
  4936. * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
  4937. i386obsd-nat.c and i386obsd-tdep.c.
  4938. (i386nbsd-nat.o): New dependency.
  4939. * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
  4940. bsd-kvm.o.
  4941. (LOADLIBES): New variable.
  4942. * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
  4943. bsd-kvm.o.
  4944. (LOADLIBES): New variable.
  4945. * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
  4946. (LOADLIBES): New variable.
  4947. * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
  4948. fetching from BSD_KVM_PADDR. Correctly lookup address for
  4949. "_thread0".
  4950. * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
  4951. "bsd-kvm.h".
  4952. (amd64fbsd_supply_pcb): New funcion.
  4953. (_initialize_amd64fbsd_nat): Enable libkvm interface.
  4954. 2004-06-27 <david@streamline-computing.com>
  4955. Partial fix for PR cli/1056.
  4956. * valarith.c: Check for zero in division and remainder
  4957. evaluation.
  4958. 2004-06-27 Mark Kettenis <kettenis@gnu.org>
  4959. * i387-tdep.c: Remove excessive whitespace.
  4960. 2004-06-26 Andrew Cagney <cagney@gnu.org>
  4961. * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
  4962. * gdb-events.h, gdb-events.c: Re-generate.
  4963. * tui/tui-hooks.c (tui_install_hooks): Update.
  4964. (tui_remove_hooks): Update.
  4965. * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
  4966. 2004-06-26 Mark Kettenis <kettenis@gnu.org>
  4967. * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
  4968. (gregset_t, fpregset_t): Remove typedefs.
  4969. (REG_OFFSET): Rename argument.
  4970. (amd64bsd_r_reg_offset): Rename from reg_offset.
  4971. (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
  4972. Remove functions.
  4973. (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
  4974. of reg_offset.
  4975. * Makefile.in (amd64fbsd-nat.o): Update dependencies.
  4976. * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
  4977. * vax-tdep.c: Tweak comment.
  4978. Add OpenBSD/hppa support.
  4979. * NEWS (New native configurations): Mention OpenBSD/hppa.
  4980. * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
  4981. config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
  4982. files.
  4983. * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
  4984. (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
  4985. * configure.host: Add hppa*-*-openbsd*.
  4986. * configure.tgt: Add hppa*-*-openbsd*.
  4987. 2004-06-25 Andrew Cagney <cagney@gnu.org>
  4988. * defs.h (deprecated_ui_loop_hook): Deprecated.
  4989. * wince.c (child_wait): Update.
  4990. * win32-nat.c (child_wait): Update.
  4991. * v850ice.c (v850ice_wait): Update.
  4992. * top.c (deprecated_ui_loop_hook): Update.
  4993. * serial.h: Update.
  4994. * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
  4995. (do_unix_readchar): Update.
  4996. * ser-tcp.c (net_open): Update.
  4997. * remote-sim.c (gdb_os_poll_quit): Update.
  4998. * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
  4999. 2004-06-24 Andrew Cagney <cagney@gnu.org>
  5000. * defs.h (deprecated_pre_add_symbol_hook)
  5001. (deprecated_post_add_symbol_hook): Deprecated.
  5002. * symfile.c (symbol_file_add_with_addrs_or_offsets)
  5003. (symbol_file_add_with_addrs_or_offsets): Update references.
  5004. 2004-06-24 Andrew Cagney <cagney@gnu.org>
  5005. * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
  5006. (ui_loop_hook, selected_frame_level_changed_hook): Declare.
  5007. * wince.c (ui_loop_hook): Delete extern declaration.
  5008. * win32-nat.c (ui_loop_hook): Delete extern declaration..
  5009. * v850ice.c (ui_loop_hook): Delete extern declaration..
  5010. * ser-unix.c (ui_loop_hook): Delete extern declaration..
  5011. * ser-tcp.c (ui_loop_hook): Delete extern declaration..
  5012. * remote-sim.c (ui_loop_hook): Delete extern declaration..
  5013. * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
  5014. ui_loop_hook declaration.
  5015. 2004-06-24 Andrew Cagney <cagney@gnu.org>
  5016. * objfiles.h (struct entry_info): Delete entry_func_lowpc and
  5017. entry_func_highpc fields.
  5018. * objfiles.c (init_entry_point_info): Do not clear
  5019. entry_func_lowpc and entry_func_highpc.
  5020. (objfile_relocate): Do not relocate entry_func_lowpc and
  5021. entry_func_highpc.
  5022. * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
  5023. entry_func_highpc.
  5024. * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
  5025. entry_func_highpc.
  5026. * blockframe.c (legacy_frame_chain_valid): Replace tests against
  5027. entry_func_lowpc and entry_func_highpc with call to
  5028. inside_entry_func.
  5029. 2004-06-24 Mark Kettenis <kettenis@gnu.org>
  5030. * sparc64-tdep.c (sparc64_store_arguments): Fix passing
  5031. quad-precision floating point arguments in registers.
  5032. 2004-06-24 Mark Kettenis <kettenis@gnu.org>
  5033. From Michael Mueller <m.mueller99@kay-mueller.de>:
  5034. * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
  5035. account.
  5036. 2004-06-22 Jeff Johnston <jjohnstn@redhat.com>
  5037. * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
  5038. to -1.
  5039. * breakpoint.c (bpstat_stop_status): Move check for ignoring
  5040. untriggered watchpoints to a separate if clause. Update function
  5041. comment regarding STOPPED_BY_WATCHPOINT argument.
  5042. 2004-06-22 Jim Blandy <jimb@redhat.com>
  5043. * gdbarch.sh: Doc fix.
  5044. 2004-06-21 Martin Hunt <hunt@redhat.com>
  5045. Kevin Buettner <kevinb@redhat.com>
  5046. * config/mips/tm-mips.h (SP_REGNUM): Delete define.
  5047. * mips-tdep.h (MIPS_SP_REGNUM): Define.
  5048. * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
  5049. to set_gdbarch_sp_regnum(). Use cooked register number.
  5050. (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
  5051. 2004-06-21 Andrew Cagney <cagney@gnu.org>
  5052. * gdbarch.sh: When the macro field is empty, do not generate a
  5053. macro definition. When the macro field is "=", generate the macro
  5054. name from the upper-case function name.
  5055. (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
  5056. (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
  5057. (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
  5058. (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
  5059. (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
  5060. (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
  5061. (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
  5062. (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
  5063. (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
  5064. (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
  5065. (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
  5066. (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
  5067. (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
  5068. (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
  5069. (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
  5070. (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
  5071. (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
  5072. (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
  5073. (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
  5074. (DEPRECATED_USE_STRUCT_CONVENTION)
  5075. (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
  5076. (DEPRECATED_FRAME_INIT_SAVED_REGS)
  5077. (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
  5078. (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
  5079. (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
  5080. (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
  5081. (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
  5082. (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
  5083. (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
  5084. (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
  5085. (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
  5086. (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
  5087. (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
  5088. (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
  5089. (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
  5090. (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
  5091. (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
  5092. (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
  5093. 2004-06-21 Andrew Cagney <cagney@gnu.org>
  5094. * gdbarch.sh: For gdbarch_dump, print the "function" rather than
  5095. macro name, and the function rather than macro value. Only wrap
  5096. macro print statements in #ifdef. Move format logic to where it
  5097. is needed.
  5098. * gdbarch.c: Re-generate.
  5099. * gdbarch.sh (read): Delete "print_p" and "description", add
  5100. "garbage_at_eol". Check for non-empty garbage at end-of-line.
  5101. Delete references to print_p.
  5102. (TARGET_ARCHITECTURE): Delete print predicate.
  5103. * gdbarch.c: Re-generate.
  5104. * gdbarch.sh: Check that multi-arch methods do not provide a
  5105. macro.
  5106. (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
  5107. (print_registers_info, print_float_info, print_vector_info)
  5108. (adjust_breakpoint_address, remote_translate_xfer_address)
  5109. (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
  5110. (address_class_type_flags_to_name, unwind_sp): Remove the macro
  5111. name from the multi-arch definition.
  5112. 2004-06-20 Andrew Cagney <cagney@gnu.org>
  5113. * gdbarch.sh: Sort by the function, instead of macro name.
  5114. * gdbarch.c: Re-generate.
  5115. 2004-06-20 Andrew Cagney <cagney@gnu.org>
  5116. * gdbarch.sh: Use the function, instead of macro name in
  5117. errors and the log file.
  5118. (return_value): Remove stray ":" in spec.
  5119. * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
  5120. * gdbarch.h, gdbarch.c: Re-generate.
  5121. * Makefile.in (arch-utils.o): Update dependencies.
  5122. * values.c (using_struct_return): Move code calling
  5123. USE_STRUCT_CONVENTION to legacy_return_value, simplify.
  5124. * stack.c (return_command): Move code calling STORE_RETURN_VALUE
  5125. to legacy_return_value, simplify.
  5126. * infcmd.c (print_return_value): Move code calling
  5127. DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
  5128. to legacy_return_value, simplify.
  5129. * infcall.c (call_function_by_hand): Move code calling
  5130. EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
  5131. * arch-utils.c: Update copyright. Include "gdbcore.h".
  5132. (legacy_return_value): New function.
  5133. * arch-utils.h: Update copyright.
  5134. (legacy_return_value): Declare.
  5135. 2004-06-20 Andrew Cagney <cagney@gnu.org>
  5136. * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
  5137. * gdbarch.h, gdbarch.c: Re-generate.
  5138. * values.c (using_struct_return): Update call.
  5139. * mcore-tdep.c: Update comment.
  5140. * infcall.c (call_function_by_hand): Update comment.
  5141. * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
  5142. * arch-utils.h (always_use_struct_convention): Update.
  5143. * v850-tdep.c (v850_gdbarch_init): Update.
  5144. * sh64-tdep.c (sh64_gdbarch_init): Update.
  5145. * sh-tdep.c (sh_gdbarch_init): Update.
  5146. * rs6000-tdep.c (rs6000_gdbarch_init): Update.
  5147. * mips-tdep.c (mips_gdbarch_init): Update.
  5148. * mcore-tdep.c (mcore_gdbarch_init): Update.
  5149. * m32r-tdep.c (m32r_gdbarch_init): Update.
  5150. * ia64-tdep.c (ia64_gdbarch_init): Update.
  5151. * h8300-tdep.c (h8300_gdbarch_init): Update.
  5152. * frv-tdep.c (frv_gdbarch_init): Update.
  5153. * cris-tdep.c (cris_gdbarch_init): Update.
  5154. * arm-tdep.c (arm_gdbarch_init): Update.
  5155. * alpha-tdep.c (alpha_gdbarch_init): Update.
  5156. 2004-06-18 Michael Chastain <mec.gnu@mindspring.com>
  5157. * PROBLEMS: Add more specific information, and a work-around,
  5158. for PR gdb/1458.
  5159. 2004-06-18 Andrew Cagney <cagney@gnu.org>
  5160. * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
  5161. * gdbarch.h, gdbarch.c: Re-generate.
  5162. * ada-lang.c (ada_finish_decode_line_1): Update.
  5163. * infrun.c (handle_inferior_event): Update.
  5164. * infcall.c (find_function_addr): Update.
  5165. * linespec.c (minsym_found): Update.
  5166. * symtab.c (find_function_start_sal, skip_prologue_using_sal):
  5167. Update.
  5168. * blockframe.c (legacy_frameless_look_for_prologue): Update.
  5169. * cli/cli-cmds.c (disassemble_command): Update.
  5170. * vax-tdep.c (vax_gdbarch_init): Update.
  5171. 2004-06-18 Mark Kettenis <kettenis@gnu.org>
  5172. * i386-tdep.c (i386_collect_fpregset): Fix comment.
  5173. 2004-06-17 Andrew Cagney <cagney@gnu.org>
  5174. GDB 6.1.1 released from the GDB 6.1 branch.
  5175. * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
  5176. * PROBLEMS: Ditto.
  5177. 2004-06-16 Daniel Jacobowitz <dan@debian.org>
  5178. PR gdb/1658
  5179. * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
  5180. operation as a uleb128. Found by Michael Coulter.
  5181. 2004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
  5182. * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
  5183. make it non-static.
  5184. * ada-lang.h (task_control_block): declaration moved from ada-task.c
  5185. to ada-lang.h; this is needed to be able to implement the kill command
  5186. in multi-task mode.
  5187. (task_ptid): Ditto.
  5188. (task_entry): Ditto.
  5189. (task_list): Ditto.
  5190. (ada_build_task_list): Ditto.
  5191. * ada-lang.c: Conditionalize routines and data structures related
  5192. to breakpoints, exceptions, completion, and symbol caching on
  5193. GNAT_GDB, since these are not yet used in the submitted public sources.
  5194. (ada_main_name): Editorial: Move definition out of exception-related
  5195. code.
  5196. 2004-06-15 Andrew Cagney <cagney@gnu.org>
  5197. * mips-tdep.c (non_heuristic_proc_desc): Delete call to
  5198. deprecated_pc_in_call_dummy.
  5199. 2004-06-15 Alan Modra <amodra@bigpond.net.au>
  5200. * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
  5201. bfd_get_section_size_before_reloc or _raw_size.
  5202. * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
  5203. * dwarf2read.c (dwarf2_locate_sections): Likewise.
  5204. (dwarf2_read_section): Likewise.
  5205. * elfread.c (elf_locate_sections): Likewise.
  5206. * gcore.c (derive_heap_segment): Likewise.
  5207. * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
  5208. * remote-e7000.c (e7000_load): Likewise.
  5209. * remote-m32r-sdi.c (m32r_load): Likewise.
  5210. * remote-mips.c (mips_load_srec): Likewise.
  5211. (pmon_load_fast): Likewise.
  5212. * remote.c (compare_sections_command): Likewise.
  5213. * symfile.c (add_section_size_callback): Likewise.
  5214. (load_section_callback): Likewise.
  5215. (pc_in_unmapped_range): Likewise.
  5216. (pc_in_mapped_range): Likewise.
  5217. (sections_overlap): Likewise.
  5218. (list_overlays_command): Likewise.
  5219. (simple_overlay_update_1): Likewise.
  5220. (simple_overlay_update): Likewise.
  5221. * tracepoint.c (remote_set_transparent_ranges): Likewise.
  5222. * win32-nat.c (core_section_load_dll_symbols): Likewise.
  5223. 2004-06-14 Randolph Chung <tausq@debian.org>
  5224. * Makefile.in (hppa-hpux-tdep.o): Update dependency.
  5225. * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
  5226. static.
  5227. (hppa_hpux_inferior_created): New function.
  5228. (hppa_hpux_init_abi): Register observer.
  5229. * symfile.c (hp_cxx_exception_support_initialized)
  5230. (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
  5231. (symbol_file_add_main_1, symbol_file_clear): Likewise.
  5232. 2004-06-14 Randolph Chung <tausq@debian.org>
  5233. * MAINTAINERS (Write After Approval): Alphabetize my entry
  5234. correctly.
  5235. 2004-06-14 Andrew Cagney <cagney@gnu.org>
  5236. * MAINTAINERS (testsuite): List Michael Chastain as the lead
  5237. testsuite maintainer.
  5238. 2004-06-13 Andrew Cagney <cagney@gnu.org>
  5239. * infcmd.c (print_return_value): Fix logic, allow
  5240. DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
  5241. * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
  5242. defining any macros.
  5243. * gdbarch.h: Re-generate.
  5244. * gdbarch.sh: Delete "level" attribute. Only check for a macro
  5245. redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
  5246. * gdbarch.h: Re-generate.
  5247. * values.c (generic_use_struct_convention): Don't check gcc_p.
  5248. * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
  5249. (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
  5250. * gdbarch.h, gdbarch.c: Regenerate.
  5251. * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
  5252. (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
  5253. * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
  5254. deprecated_max_register_raw_size and
  5255. deprecated_max_register_virtual_size.
  5256. * v850-tdep.c (v850_gdbarch_init): Ditto.
  5257. * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
  5258. * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
  5259. * mcore-tdep.c (mcore_gdbarch_init): Ditto.
  5260. * cris-tdep.c (cris_gdbarch_init): Ditto.
  5261. * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
  5262. * gdbarch.h, gdbarch.c: Re-generate.
  5263. * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
  5264. (m68hc11_use_struct_convention): Delete function.
  5265. (m68hc11_extract_struct_value_address): Delete function.
  5266. (m68hc11_return_value): New function.
  5267. (m68hc11_gdbarch_init): Instead of store_return_value,
  5268. extract_return_value, return_value_on_stack,
  5269. deprecated_extract_struct_value_address and use_struct_convention,
  5270. set return_value.
  5271. * values.c (using_struct_return): Do not call
  5272. RETURN_VALUE_ON_STACK.
  5273. * arch-utils.h (generic_return_value_on_stack_not): Delete
  5274. declaration.
  5275. * arch-utils.c (generic_return_value_on_stack_not): Delete
  5276. function.
  5277. 2004-06-12 Andrew Cagney <cagney@gnu.org>
  5278. * values.c (register_value_being_returned): Delete function.
  5279. * infcmd.c (legacy_return_value): Delete function.
  5280. * infcall.c (call_function_by_hand): Inline
  5281. "register_value_being_returned", simplify.
  5282. * values.c (using_struct_return): Update comment, refer to
  5283. print_return_value instead of register_value_being_returned.
  5284. * infcmd.c (print_return_value): Inline calls to
  5285. register_value_being_returned and legacy_return_value. Simplify.
  5286. 2004-06-11 Randolph Chung <tausq@debian.org>
  5287. * somread.c (som_symtab_read): Exclude gcc local symbols.
  5288. 2004-06-11 Randolph Chung <tausq@debian.org>
  5289. * infrun.c (handle_inferior_event): Handle the case when a
  5290. trampoline ends up in the runtime resolver, and if the trampoline
  5291. has no name. Rearrange the code so that all the trampoline
  5292. processing happens before other step-out-of-range handling.
  5293. 2004-06-11 Martin Hunt <hunt@redhat.com>
  5294. * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
  5295. has no fpu.
  5296. 2004-06-10 Andrew Cagney <cagney@gnu.org>
  5297. * blockframe.c (legacy_inside_entry_func): Delete.
  5298. (legacy_frame_chain_valid): Inline call to
  5299. legacy_inside_entry_func, simplify.
  5300. 2004-06-10 Bob Rossi <bob@brasko.net>
  5301. * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
  5302. * dwarf2read.c (partial_die_info): Add dirname field.
  5303. (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
  5304. (read_partial_die): Save away DW_AT_comp_dir.
  5305. * defs.h (symtab_to_filename): Removed.
  5306. * source.c (find_and_open_source): Added.
  5307. (open_source_file): Just calls find_and_open_source.
  5308. (symtab_to_filename): Removed.
  5309. (symtab_to_fullname, psymtab_to_fullname): Added.
  5310. * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
  5311. * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
  5312. symtab_to_filename.
  5313. * symtab.h (partial_symtab): Add dirname field.
  5314. * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
  5315. (mi_cmd_file_list_exec_source_file): Call new function
  5316. symtab_to_fullname to find fullname.
  5317. (mi_cmd_file_list_exec_source_files): Added.
  5318. * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
  5319. * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
  5320. 2004-06-10 Andrew Cagney <cagney@gnu.org>
  5321. * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
  5322. to generic_use_struct_convention, the default value.
  5323. * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
  5324. of abort.
  5325. * ns32k-tdep.c (ns32k_push_arguments): New function.
  5326. (ns32k_gdbarch_init): Set deprecated_push_arguments.
  5327. * infcall.c (call_function_by_hand): Call error instead of
  5328. legacy_push_arguments.
  5329. * value.h (legacy_push_arguments): Delete declaration.
  5330. * valops.c (legacy_push_arguments): Delete function.
  5331. (value_push): Delete function.
  5332. 2004-06-10 Brian Ford <ford@vss.fsi.com>
  5333. * coffread.c (coff_symfile_read): Prevent mixed debugging formats
  5334. from corrupting/reinitializing the psymtab. Support DWARF 2 frame
  5335. info.
  5336. * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
  5337. 2004-06-10 Andrew Cagney <cagney@gnu.org>
  5338. * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
  5339. * gdbarch.h, gdbarch.c: Re-generate.
  5340. * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
  5341. parameters.
  5342. * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
  5343. * arm-tdep.c (arm_pc_is_thumb_dummy): Call
  5344. deprecated_pc_in_call_dummy instead of
  5345. DEPRECATED_PC_IN_CALL_DUMMY.
  5346. (arm_skip_prologue): Ditto.
  5347. * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
  5348. (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
  5349. * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
  5350. (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
  5351. Ditto.
  5352. * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
  5353. (sh64_init_extra_frame_info, sh64_get_saved_register)
  5354. (sh64_pop_frame): Ditto.
  5355. * mips-tdep.c (non_heuristic_proc_desc): Ditto.
  5356. * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
  5357. (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
  5358. * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
  5359. (h8300_pop_frame): Ditto.
  5360. * blockframe.c (legacy_inside_entry_func)
  5361. (legacy_frame_chain_valid): Ditto.
  5362. * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
  5363. to deprecated_pc_in_call_dummy.
  5364. 2004-06-09 Andrew Cagney <cagney@gnu.org>
  5365. * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
  5366. provide a default value.
  5367. (CONVERT_REGISTER_P): Default to generic_convert_register_p.
  5368. * gdbarch.h, gdbarch.c: Re-generate.
  5369. * arch-utils.c (generic_convert_register_p): Rename
  5370. legacy_convert_register_p
  5371. (legacy_register_to_value, legacy_value_to_register): Delete
  5372. functions.
  5373. * arch-utils.h (generic_convert_register_p): Rename
  5374. legacy_convert_register_p.
  5375. (legacy_register_to_value, legacy_value_to_register): Delete
  5376. declarations.
  5377. * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
  5378. (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
  5379. (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
  5380. * gdbarch.h, gdbarch.c: Re-generate.
  5381. * infcmd.c (default_print_registers_info): Simplify.
  5382. * findvar.c (value_of_register): Simplify.
  5383. * mi/mi-main.c (get_register): Simplify.
  5384. * arch-utils.c (legacy_convert_register_p): Always return 0.
  5385. (legacy_register_to_value, legacy_value_to_register): Always call
  5386. internal_error.
  5387. * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
  5388. #ifdef CLEAR_INSN_CACHE code.
  5389. * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
  5390. Delete #ifdef CLEAR_DEFERRED_STORES code.
  5391. * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
  5392. * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
  5393. copyright.
  5394. * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
  5395. * config/mips/mipsv4.mh: Delete file.
  5396. * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
  5397. unreferenced macro.
  5398. (hpread_adjust_stack_address): Delete declaration.
  5399. 2004-06-08 Andrew Cagney <cagney@gnu.org>
  5400. * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
  5401. (attach, detach): When neither PT_ATTACH / PT_DETACH nor
  5402. PTRACE_ATTACH / PTRACE_DETACH available call error.
  5403. (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
  5404. * infttrace.c (update_thread_state_after_attach, attach, detach):
  5405. Remove #ifdef wrappers.
  5406. * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
  5407. * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
  5408. * config/nm-bsd.h (ATTACH_DETACH): Delete.
  5409. * config/nm-sysv4.h (ATTACH_DETACH): Delete.
  5410. * config/nm-nbsd.h (ATTACH_DETACH): Delete.
  5411. * config/nm-linux.h (ATTACH_DETACH): Delete.
  5412. * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
  5413. * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
  5414. * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
  5415. * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
  5416. * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
  5417. 2004-06-08 Corinna Vinschen <vinschen@redhat.com>
  5418. * configure.in: Set $configdir to the right OS specific value.
  5419. Use value when setting $tcldir and $tkdir.
  5420. * configure: Regenerate.
  5421. 2004-06-06 Paul Brook <paul@codesourcery.com>
  5422. * dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
  5423. records.
  5424. 2004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
  5425. * ada-lang.c (lookup_symbol_in_language): New function to allow
  5426. re-use of another language's symbol lookup code. (Placed here
  5427. temporarily while Ada support is being integrated into the public
  5428. tree).
  5429. (restore_language): New auxiliary function for
  5430. lookup_symbol_in_language.
  5431. * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
  5432. temporarily while Ada support is being integrated into the public
  5433. tree).
  5434. 2004-06-08 Alexandre Oliva <aoliva@redhat.com>
  5435. * Makefile.in (check//%): New.
  5436. * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
  5437. (mn10300_store_return_value): Rewrite.
  5438. (mn10300_type_align): New.
  5439. (mn10300_use_struct_convention): Rewrite.
  5440. (mn10300_return_value): New, using all of the above.
  5441. (mn10300_pop_frame_regular): Add saved_regs_size.
  5442. (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
  5443. * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
  5444. regs if PC is on movm.
  5445. 2004-06-07 Jim Blandy <jimb@redhat.com>
  5446. Add native Linux support for the PowerPC E500.
  5447. * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
  5448. * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
  5449. all architectures except the E500.
  5450. * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
  5451. #definitions.
  5452. (struct gdb_evrregset_t): New type.
  5453. (have_ptrace_getsetevrregs): New variable.
  5454. (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
  5455. fetch_spe_registers): New functions.
  5456. (fetch_register): Call fetch_spe_register as appropriate.
  5457. Assert that we're only passed raw register numbers.
  5458. (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
  5459. Don't fetch gprs if they're pseudoregisters.
  5460. (set_spe_registers, write_spliced_spe_reg, store_spe_register,
  5461. store_spe_registers): New functions.
  5462. (store_register): Call store_spe_register as appropriate.
  5463. Assert that we're only passed raw register numbers.
  5464. (store_ppc_registers): Call store_spe_registers as appropriate.
  5465. Don't store gprs if they're pseudoregisters.
  5466. 2004-06-07 Jeff Johnston <jjohnstn@redhat.com>
  5467. * thread-db.c (thread_get_info_callback): Fill in the thread_info
  5468. struct if one exists, even if we are dealing with a zombie thread.
  5469. 2004-06-07 Andrew Cagney <cagney@gnu.org>
  5470. * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
  5471. * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
  5472. Rename PC_REQUIRES_RUN_BEFORE_USE.
  5473. * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
  5474. #ifdef.
  5475. 2004-06-07 Randolph Chung <tausq@debian.org>
  5476. * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
  5477. unwinding after sp has been saved to the stack but before the end
  5478. of the prologue, and after the fp has been modified but before it has
  5479. been saved to the stack.
  5480. (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
  5481. Remove superfluous definitions.
  5482. (hppa_gdbarch_init): Remove superfluous frame base sniffer.
  5483. 2004-06-07 Guy Martin <gmsoft@gentoo.org>
  5484. Committed by Randolph Chung.
  5485. * hppa-linux-nat.c: Include the correct version of the header file
  5486. depending on the kernel version.
  5487. 2004-06-06 Randolph Chung <tausq@debian.org>
  5488. * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
  5489. (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
  5490. 2004-06-06 Randolph Chung <tausq@debian.org>
  5491. * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
  5492. (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
  5493. * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
  5494. * hppa-tdep.c (hppa_symbol_address): New function definition.
  5495. * hppa-tdep.h (hppa_symbol_address): New function declaration.
  5496. 2004-06-06 Randolph Chung <tausq@debian.org>
  5497. * hppa-tdep.h (struct value): Forward declaration.
  5498. (gdbarch_tdep): Define tdep find_global_pointer method.
  5499. * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
  5500. associated with the function we are trying to call, and write it
  5501. to the gp register.
  5502. (hppa32_convert_from_funct_ptr_addr): New function.
  5503. (hppa_find_global_pointer): New function.
  5504. (hppa_gdbarch_init): Set default find_global_pointer method; set
  5505. convert_from_func_ptr_addr method.
  5506. * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
  5507. (hppa_linux_init_abi): Set find_global_pointer method.
  5508. * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
  5509. 2004-06-06 Randolph Chung <tausq@debian.org>
  5510. * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
  5511. to struct value *function.
  5512. * gdbarch.c: Regenerate.
  5513. * gdbarch.h: Likewise.
  5514. * infcall.c (call_function_by_hand): Pass entire function value
  5515. to push_dummy_call.
  5516. * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
  5517. (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
  5518. * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
  5519. * amd64-tdep.c (amd64_push_dummy_call): Likewise.
  5520. * arm-tdep.c (arm_push_dummy_call): Likewise.
  5521. * avr-tdep.c (avr_push_dummy_call): Likewise.
  5522. * cris-tdep.c (cris_push_dummy_call): Likewise.
  5523. * d10v-tdep.c (d10v_push_dummy_call): Likewise.
  5524. * frv-tdep.c (frv_push_dummy_call): Likewise.
  5525. * h8300-tdep.c (h8300_push_dummy_call): Likewise.
  5526. * hppa-tdep.c (hppa32_push_dummy_call)
  5527. (hppa64_push_dummy_call): Likewise.
  5528. * i386-tdep.c (i386_push_dummy_call): Likewise.
  5529. * ia64-tdep.c (ia64_push_dummy_call): Likewise.
  5530. * m32r-tdep.c (m32r_push_dummy_call): Likewise.
  5531. * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
  5532. * m68k-tdep.c (m68k_push_dummy_call): Likewise.
  5533. * m88k-tdep.c (m88k_push_dummy_call): Likewise.
  5534. * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
  5535. (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
  5536. * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
  5537. (ppc64_sysv_abi_push_dummy_call): Likewise.
  5538. * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
  5539. (ppc64_sysv_abi_push_dummy_call): Likewise.
  5540. * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
  5541. * s390-tdep.c (s390_push_dummy_call): Likewise.
  5542. * sh-tdep.c (sh_push_dummy_call_fpu)
  5543. (sh_push_dummy_call_nofpu): Likewise.
  5544. * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
  5545. * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
  5546. * vax-tdep.c (vax_push_dummy_call): Likewise.
  5547. 2004-06-04 Jim Blandy <jimb@redhat.com>
  5548. * ppc-linux-nat.c (fetch_register): Don't forget to pass the
  5549. gdbarch argument to register_size.
  5550. * rs6000-tdep.c (rs6000_store_return_value): Use
  5551. regcache_cooked_write_part instead of
  5552. deprecated_write_register_bytes.
  5553. (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
  5554. not gdbarch_deprecated_store_return_value.
  5555. * ppc-linux-nat.c (store_register, fetch_register): Remove
  5556. incorrect assertions. Simplify and generalize handling of
  5557. transfers whose sizes are not multiples of, or less than, sizeof
  5558. (PTRACE_XFER_TYPE).
  5559. 2004-06-04 Jeff Johnston <jjohnstn@redhat.com>
  5560. * infrun.c (handle_inferior_event): Don't treat an invalid ptid
  5561. as a new thread event.
  5562. * thread-db.c (thread_get_info_callback): If the thread is a
  5563. zombie, return TD_THR_ZOMBIE.
  5564. (thread_from_lwp): If thread_get_info_callback returns
  5565. TD_THR_ZOMBIE, check if the thread is still on the thread list
  5566. and return a -1 ptid if not found.
  5567. (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
  5568. change the status to TARGET_WAITKIND_SPURIOUS.
  5569. 2004-06-03 Corinna Vinschen <vinschen@redhat.com>
  5570. * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
  5571. double values in little endian mode.
  5572. 2004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
  5573. Committed by Andrew Cagney.
  5574. * dictionary.c, gdbtypes.h: Remove trailing comma
  5575. after last enum constant to avoid error from IBM C
  5576. compiler.
  5577. 2004-06-02 Jim Blandy <jimb@redhat.com>
  5578. * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
  5579. to 'message', and make it local to the lone block that uses it.
  5580. * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
  5581. 2004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
  5582. * ada-exp.y: Update copyright notice.
  5583. Include block.h.
  5584. Replace REGNAME, LAST, INTERNAL_VARIABLE with
  5585. SPECIAL_VARIABLE and unify the treatment of these cases.
  5586. (write_attribute_call0): Remove.
  5587. (write_attribute_call1): Remove.
  5588. (write_attribute_calln): Remove.
  5589. (save_qualifier): Add missing semicolon.
  5590. (simple_exp,exp): Decomment (i.e., reactivate) code that was
  5591. temporarily disabled to allow compilation with FSF head version.
  5592. (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
  5593. use individual operators (OP_*) for all attributes.
  5594. (exp syntax): Use write_int.
  5595. Handle STRING literals with OP_STRING.
  5596. (variable syntax): Add limit parameter to calls to
  5597. write_object_renaming.
  5598. (temp_parse_space): New definition to hold entities that need
  5599. only live until the next call to ada_parse.
  5600. (string_to_operator): Rename fields of ada_opname_table entries.
  5601. (write_var_from_sym): Record block.
  5602. (write_var_from_name): Minor reformatting.
  5603. Make sure saved name is properly encoded in the case of multiple
  5604. matches, and set its language to Ada.
  5605. Update comment.
  5606. Modify to indicate unresolved name as symbol in the UNRESOLVED
  5607. namespace, allocated in temp_parse_space.
  5608. (write_int): New function.
  5609. (write_object_renaming): Add max_depth parameter to limit
  5610. chains of object renamings.
  5611. Handle case where root of renaming expression is itself a renaming.
  5612. Use temp_parse_space for temporary name buffer.
  5613. Handle renamings to dereferenced pointers (___XEXA suffices).
  5614. (ada_parse, yyerror, string_to_operator,
  5615. write_var_from_sym, write_var_from_name, write_attribute_call0,
  5616. write_attribute_call1, write_attribute_calln,
  5617. write_object_renaming): Protoize.
  5618. (_initialize_ada_exp): New function.
  5619. * ada-lang.c: Update copyright notice.
  5620. General terminology change to conform to GNAT compiler usage:
  5621. mangle => encode, demangle => decode
  5622. Include gdb_obstack.h.
  5623. Include gdb_regex.h
  5624. Include frame.h
  5625. Include hashtab.h
  5626. Include completer.h
  5627. Include gdb_stat.h
  5628. Include block.h
  5629. Include infcall.h
  5630. (ADA_RETAIN_DOTS): Make sure this is defined.
  5631. (TRUNCATION_TOWARDS_ZERO): Define.
  5632. (struct string_vector): Define.
  5633. (unresolved_names): Remove definition.
  5634. (xnew_string_vector): New function.
  5635. (string_vector_append): New function.
  5636. (extract_string): Make static.
  5637. (ada_unqualified_name): New function.
  5638. (add_angle_brackets): New function.
  5639. (function_name_from_pc): New function.
  5640. (place_on_stack): Rename to ensure_lval.
  5641. (ensure_lval): Renamed from place_on_stack.
  5642. Make identity on lvals.
  5643. Update comment.
  5644. (is_nonfunction): New interface.
  5645. Only symbols in LOC_CONST class can be enumerals.
  5646. (fill_in_ada_prototype): Remove; now independent of language.
  5647. (add_defn_to_vec): Add obstack and symtab arguments.
  5648. Use obstack to hold collected definitions.
  5649. (num_defns_collected): New function.
  5650. (defns_collected): New function.
  5651. (ada_resolve_subexp): Rename to resolve_subexp.
  5652. (resolve_subexp): Renamed from ada_resolve_subexp.
  5653. (ada_op_name): Return non-const result.
  5654. (ada_decoded_op_name): Renamed from ada_op_name, now used for
  5655. other purposes.
  5656. (to_fixed_array_type): Add declaration.
  5657. (coerce_unspec_val_to_type): Remove offset parameter.
  5658. (find_sal_from_funcs_and_line): New interface.
  5659. (find_line_in_linetable): Ditto.
  5660. (all_sals_for_line): Rename to ada_sals_for_line and make
  5661. global.
  5662. Add new parameter. When set, do not ask the user to choose the
  5663. instance, but use the first one found instead.
  5664. Use given line number in returned sals.
  5665. Fix comment.
  5666. Skip the prologue if funfirstline is set.
  5667. Correct for memory leak when 0 lines found.
  5668. (value_pos_atr): Use pos_atr.
  5669. (pos_atr): New function.
  5670. (standard_lookup): Add block parameter.
  5671. (makeTimeStart): Remove declaration and uses.
  5672. (makeTimeStop): Remove declaration and uses.
  5673. (ada_completer_word_break_characters): Allow for VMS.
  5674. (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
  5675. (raise_sym_name): New constant.
  5676. (raise_unhandled_sym_name): New constant.
  5677. (raise_assert_sym_name): New constant.
  5678. (process_raise_exception_name): New constant.
  5679. (longest_exception_template): New constant.
  5680. (warning_limit): New variable to limit warnings during expression
  5681. evaluation.
  5682. (warnings_issued): New variable to keep track of warnings issued.
  5683. (known_runtime_file_name_patterns): New constant.
  5684. (known_auxiliary_function_name_patterns): New constant.
  5685. (symbol_list_obstack): New variable.
  5686. (field_name_match,is_suffix,is_suppressed_name,ada_encode,
  5687. ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
  5688. lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
  5689. find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
  5690. ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
  5691. ada_variant_discrim_name, field_alignment, dynamic_template_type,
  5692. ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
  5693. Replace use of deprecated STREQ and STREQN macros by calls to strncmp
  5694. and strcmp.
  5695. (ada_get_field_index): New function.
  5696. (lim_warning): New function.
  5697. (ada_translate_error_message): New function.
  5698. (MAX_OF_SIZE): New function.
  5699. (MIN_OF_SIZE): New function.
  5700. (UMAX_OF_SIZE): New function.
  5701. (UMIN_OF_SIZE): New function.
  5702. (discrete_type_high_bound): New function.
  5703. (discrete_type_low_bound): New function.
  5704. (base_type): New function.
  5705. (do_command): Remove.
  5706. (ada_update_initial_language): Use language_ada, not language_unknown.
  5707. (ada_encode): Renamed from ada_mangle.
  5708. Obey ADA_RETAIN_DOTS.
  5709. (ada_decode): Renamed from ada_demangle.
  5710. Update coding conventions.
  5711. (decoded_names_store): New hash table.
  5712. (ada_decode_symbol): New function.
  5713. (ada_la_decode): New function.
  5714. (modify_general_field): Correct computations of offset and bit
  5715. position.
  5716. (desc_base_type): Handle ref types, too.
  5717. (ada_is_direct_array_type): New function.
  5718. (ada_is_simple_array): Rename to ada_is_simple_array_type.
  5719. (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
  5720. (ada_is_bogus_array_descriptor,ada_type_of_array,
  5721. ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
  5722. ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
  5723. ada_is_array_descriptor_type.
  5724. (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
  5725. (ada_is_packed_array_type): Handle pointers or
  5726. references to packed arrays as well.
  5727. (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
  5728. (decode_packed_array_type): Search for the packed array type
  5729. symbol in the currently selected block and associated
  5730. superblocks too.
  5731. Use lookup_symbol again.
  5732. (decode_packed_array): Handle pointers and references.
  5733. Update call to coerce_unspec_val_to_type.
  5734. (decode_packed_array_type,value_subscript_packed): Limit warnings.
  5735. (ada_value_primitive_packed_val): Improve comment.
  5736. (ada_index_type): Substitute int type for "undefined".
  5737. (ada_index_type,ada_array_bound_from_type,ada_array_bound,
  5738. ada_array_langth, ada_is_string_type): Use renamed
  5739. ada_is_simple_array_type.
  5740. (empty_array): New function.
  5741. (ada_resolve): Rename to resolve.
  5742. (resolve): Make static.
  5743. Call renamed resolve_subexp.
  5744. Update comment.
  5745. (ada_resolve_subexp): Rename to resolve_subexp.
  5746. (resolve_subexp): Update comment.
  5747. Decomment disabled code.
  5748. Add LOC_COMPUTED* cases.
  5749. Modify to use temporary struct symbols (marked as being in
  5750. UNDEF_NAMESPACE) to indicate unresolved names, instead of
  5751. OP_UNRESOLVED_VALUE.
  5752. Remove OP_ATTRIBUTE; use individual opcodes for attributes.
  5753. Add OP_STRING case.
  5754. Remove OP_ARRAY.
  5755. Use SYMBOL_PRINT_NAME instead of ada_demangle.
  5756. Use new ada_lookup_symbol_list interface.
  5757. Use new ada_resolve_function interface.
  5758. Remove OP_TYPE case.
  5759. (ada_args_match): Idiot proof against null actuals.
  5760. Use intermediate variables to clarify.
  5761. (ada_resolve_function): Update comment and interface.
  5762. (mangled_ordered_before): Rename to encoded_ordered_before and
  5763. update comment.
  5764. (sort_choices): Update comment and interface.
  5765. Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
  5766. (user_select_syms): New interface.
  5767. Use new sort_choices interface.
  5768. Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
  5769. (possible_user_operator_p): Idiot-proof against null values.
  5770. (ada_simple_renamed_entity): Don't make cleanup; rely on
  5771. caller to free result string.
  5772. Remove const from return type.
  5773. (make_array_descriptor): Rename uses of place_on_stack to
  5774. ensure_lval.
  5775. Make sure that arrays are on stack.
  5776. (HASH_SIZE): Define.
  5777. (struct cache_entry): Define.
  5778. (cache_space): Define.
  5779. (cache): Define.
  5780. (clear_ada_sym_cache): New function.
  5781. (find_entry): New function.
  5782. (lookup_cached_symbol): New function.
  5783. (defn_vector_size): Define.
  5784. (cache_symbol): New function.
  5785. (defn_symbols): Remove.
  5786. (standard_lookup): Use lookup_symbol_in_language to get effect of
  5787. C lookup.
  5788. Cache results.
  5789. (symbol_completion_match): New function.
  5790. (symbol_completion_add): New function.
  5791. (ada_make_symbol_completion_list): New function.
  5792. (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
  5793. add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
  5794. DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
  5795. (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
  5796. (ada_lookup_simple_minsym): New function.
  5797. (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
  5798. (add_symbols_from_enclosing_procs): New interface.
  5799. Conditionalize more helpfully.
  5800. Don't bother if program isn't running.
  5801. Use new interface to get_frame_block.
  5802. Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
  5803. (remove_extra_symbols): New interface.
  5804. (xget_renaming_scope): New function.
  5805. (is_package_name): New function.
  5806. (renaming_is_visible): New function.
  5807. (remove_out_of_scope_renamings): New function.
  5808. (ada_lookup_symbol_list): New interface.
  5809. Properly reinitialize the symbol list obstack.
  5810. Don't call add_symbols_from_enclosing_procs if we start from a
  5811. static or global block.
  5812. Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
  5813. add_symbols_from_enclosing_procs.
  5814. Add symtab data to cached entries.
  5815. Handle symbols prefixed with
  5816. "standard__" specially; strip prefix and don't look in local symbols.
  5817. Do not include out of scope renaming symbols in list of
  5818. symbols returned.
  5819. Add const to block parameter.
  5820. Move check for non-local, non-global symbols earlier.
  5821. Remove timing stuff.
  5822. (ada_lookup_symbol): New interface.
  5823. Find symtab as well.
  5824. (ada_lookup_symbol_nonlocal): New function.
  5825. (is_name_suffix): Enhance suffix detection to recognize
  5826. an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
  5827. (is_dot_digits_suffix): New function.
  5828. (wild_match): Ignore ".[:digit:]*" suffixes during matches.
  5829. (ada_add_block_symbols): New interface. Use obstack to return results
  5830. in a vector of struct ada_symbol_infos. Add symtab argument.
  5831. Use new interface to add_defn_to_vec.
  5832. Remove calls to fill_in_ada_prototype.
  5833. Use BLOCK_BUCKETS, BLOCK_BUCKET.
  5834. (ada_finish_decode_line_1): Add const qualification to local to fix
  5835. warning.
  5836. Start looking in static block for functions to avoid attempts
  5837. to search frame chain for up-level variables.
  5838. Adapt to new ada_sals_for_line interface.
  5839. Use new interfaces to ada_lookup_symbol_list and user_select_syms.
  5840. Handle quoting of the function name inside the spec string.
  5841. Skip prologue when funfirstline is set and update the
  5842. function documentation to that effect.
  5843. (debug_print_lines, debug_print_block, debug_print_blocks,
  5844. debug_print_symtab): Remove.
  5845. (ada_main_name): New function.
  5846. (ada_exception_breakpoint_type): New function.
  5847. (is_known_support_routine): New function.
  5848. (ada_find_printable_frame): Renamed from find_printable_frame and made
  5849. global.
  5850. Remove level parameter.
  5851. Use new interface to select_frame.
  5852. (begin_command): Remove.
  5853. (ada_adjust_exception_stop): New function.
  5854. (ada_print_exception_stop): New function.
  5855. (exception_name_from_cond): New function.
  5856. (ada_report_exception_break): Replace disabled code with
  5857. conditionalization on GNAT_GDB.
  5858. Get the exception name from the condition string.
  5859. Remove and move functionality into new functions
  5860. ada_print_exception_breakpoint_task and
  5861. ada_print_exception_breakpoint_nontask.
  5862. (error_breakpoint_runtime_sym_not_found): New function.
  5863. (is_runtime_sym_defined): New function.
  5864. (ada_breakpoint_rewrite): Uncomment suppressed code.
  5865. Use symbolic error-message and runtime-symbol names.
  5866. Surround runtime symbol names in quotes.
  5867. Allow non-specific breakpoints on exceptions and assertions before
  5868. program starts.
  5869. (ada_is_tagged_type): Add parameter.
  5870. (ada_is_tag_type): New function.
  5871. (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
  5872. (ada_variant_discrim_type): Ditto.
  5873. (value_tag_from_contents_and_address): New function.
  5874. (type_from_tag): New function.
  5875. (struct tag_args): New structure used to communicate with
  5876. ada_tag_name_1.
  5877. (ada_tag_name_1): New function.
  5878. (ada_tag_name): New function.
  5879. (ada_scan_number): Update comment.
  5880. (find_struct_field): New function.
  5881. (ada_search_struct_field): Make static.
  5882. (ada_value_struct_elt): New version that returns references when
  5883. given pointers or references to structs.
  5884. (ada_lookup_struct_elt_type): Add 'refok' parameter.
  5885. (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
  5886. interface.
  5887. (ada_value_ind): Use new ada_to_fixed_value interface.
  5888. (ada_coerce_ref): Ditto.
  5889. (field_offset): Remove.
  5890. (ada_find_any_symbol): New function, extracted from ada_find_any_type.
  5891. (ada_find_renaming_symbol): New function.
  5892. (ada_prefer_type): Prefer named types over unnamed ones.
  5893. (variant_field_index): New function.
  5894. (contains_variant_part): Removed: subsumed by variant_field_index.
  5895. (ada_template_to_fixed_record_type): New function, mostly from
  5896. template_to_fixed_record_type.
  5897. (template_to_fixed_record_type):
  5898. Do not scan the type fields beyond the last one; prevents a
  5899. potential SEGV.
  5900. Handle case where variant field is listed BEFORE discriminant it
  5901. depends on.
  5902. Fix calculation of record length when bit length is
  5903. not evenly divisible by char length.
  5904. Move code to ada_template_to_fixed_record_type and call it.
  5905. (template_to_static_fixed_type): Revise comment.
  5906. Modify to work on ordinary record types as well as templates,
  5907. so as to handle fields that use ___XVE or ___XVU encodings.
  5908. (to_record_with_fixed_variant_part): Fill out comment.
  5909. Initialize C++ stuff in right type.
  5910. Allow case where DVAL is null.
  5911. Handle case where variant field is not last.
  5912. Fix typo concerning record length.
  5913. (to_fixed_record_type): Decomment disabled code.
  5914. (to_fixed_record_type): Use variant_field_index instead of
  5915. contains_variant_part.
  5916. (to_fixed_variant_branch_type): Ditto.
  5917. (to_fixed_array_type): Decomment disabled code.
  5918. (ada_to_fixed_type): Convert tagged types to the specific type.
  5919. Deactivate the size-check for array types in order to avoid
  5920. some false size alarms.
  5921. (to_static_fixed_type): Decomment disabled code.
  5922. Modify to call template_to_static_fixed_type
  5923. on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
  5924. (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
  5925. Remove valaddr argument, as it is never really used.
  5926. (ada_to_fixed_value): Change interface to act on single struct value*
  5927. operand.
  5928. (adjust_pc_past_prologue): New function.
  5929. (ada_attribute_name): Modify to take enum exp_opcode argument.
  5930. (ada_enum_name): Recognize new homonym-distinguishing convention.
  5931. Adjust local variable's type to remove compiler warning.
  5932. Fix a small problem in the part that unqualifies the enumeration name.
  5933. (ada_value_binop): New function.
  5934. (ada_value_equal): New function.
  5935. (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
  5936. Don't give error message when not doing normal evaluation
  5937. and a tagged type doesn't seem to contain a structure member.
  5938. Give error message for packed arrays.
  5939. For indexing arrays, handle pointers to packed arrays correctly.
  5940. Handle case of 'first and 'last attributes of bare integral type
  5941. without encoded subtype info.
  5942. Remove some unnecessary casts.
  5943. Fix uninitialized value of type in computing 'first, 'last, or 'length
  5944. of array object.
  5945. Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
  5946. Remove binop_user_defined_p tests and value_x_binop and value_x_unop
  5947. calls.
  5948. Attributes are now exp_opcode values.
  5949. Correct treatment of 'modulus.
  5950. Better error message for taking 'length of wrong kind of type;
  5951. improve comment.
  5952. Change EVAL_NORMAL to noside for consistency.
  5953. Use ada_value_binop for DIV, MOD, REM.
  5954. Make special case out of array of length 0, since an argument
  5955. of 0 upsets some platforms' malloc.
  5956. Use OP_STRING instead of OP_ARRAY.
  5957. For slice, add check that we have an array type before extracting
  5958. a slice out of it. Avoids a SEGV.
  5959. When evaluating an array slice, if the array type is a reference to
  5960. an aligner type, then replace the aligner type by the actual type.
  5961. Decomment disabled code.
  5962. Remove some dead code.
  5963. Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
  5964. to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
  5965. Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
  5966. and UNOP_MBR to UNOP_IN_RANGE.
  5967. If an array type has a parallel ___XVE type, then use it.
  5968. Turn arrays into pointers for lvalue arrays.
  5969. Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
  5970. bounds error and handle 0-length slices.
  5971. Use lim_warning.
  5972. When selecting fields, apply ada_to_fixed_value (because the fields
  5973. might have ___XVU or ___XVE encodings even if not dynamic.)
  5974. Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
  5975. (ada_is_system_address_type): New function.
  5976. (get_var_value): Use new interface to ada_lookup_symbol_list.
  5977. (get_int_var_value): New interface.
  5978. (to_fixed_range_type): Allow unknown bound, with warning.
  5979. (ada_is_modular_type): Decomment disabled code.
  5980. (ADA_OPERATORS): New definition.
  5981. (ada_operator_length): New function.
  5982. (ada_expr_op_name): New function.
  5983. (ada_forward_operator_length): New function.
  5984. (ada_dump_subexp_body): New function.
  5985. (ada_print_subexp): New function.
  5986. (ada_exp_descriptor): New constant.
  5987. (ada_op_print_tab): Add 'size. Remove FIXMEs.
  5988. (ada_language_defn): Add ada_exp_descriptor entry.
  5989. Change ada_parse => parse.
  5990. Add post-parser entry.
  5991. Use ada-specific non-local symbol lookup.
  5992. Don't use C-style arrays.
  5993. String lower-bound is 1.
  5994. Decomment disabled code.
  5995. (parse): New function.
  5996. New fields ada_translate_error_message, ada_lookup_symbol,
  5997. ada_lookup_minimal_symbol.
  5998. * ada-lang.h: Update copyright dates.
  5999. Replace the mangle/demangle terminology throughout by the
  6000. more appropriate encode/decode one.
  6001. Include breakpoint.h.
  6002. Forward declare struct partial_symbol, struct block.
  6003. (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
  6004. (EXTRACT_ADDRESS): Remove.
  6005. (EXTRACT_INT): Remove.
  6006. (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
  6007. (MAX_ENCLOSING_FRAME_LEVELS): Define.
  6008. (MAX_RENAMING_CHAIN_LENGTH): Define.
  6009. (struct ada_opname_map): mangled => decoded, demangled=>encoded.
  6010. (enum task_states): Remove.
  6011. ada_task_states: Remove.
  6012. (fat_string): Remove.
  6013. (struct entry_call): Remove.
  6014. (struct task_fields): Remove.
  6015. (struct task_entry): Remove.
  6016. (struct ada_symbol_info): Define.
  6017. (enum ada_attribute): Remove.
  6018. (enum ada_operator): Define.
  6019. (ada_get_field_index): Declare.
  6020. (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
  6021. (ada_is_simple_array): Rename to ada_is_simple_array_type.
  6022. (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
  6023. (ada_lookup_symbol_list): New interface.
  6024. (ada_decode_symbol): Declare.
  6025. (ada_decode): Declare.
  6026. (ada_lookup_symbol): New interface.
  6027. (ada_update_initial_language): Declare.
  6028. (ada_lookup_simple_minsym): Declare.
  6029. (user_select_syms): New interface.
  6030. (ada_sals_for_line): Declare.
  6031. (ada_is_tagged_type): New interface.
  6032. (ada_tag_name): Declare.
  6033. (ada_lookup_struct_elt_type): Remove declaration.
  6034. (ada_search_struct_field): Remove declaration.
  6035. (ada_attribute_name): New interface.
  6036. (ada_is_system_address_type): Declare.
  6037. (ada_to_fixed_value): Remove declaration.
  6038. (ada_template_to_fixed_record_type_1): Declare.
  6039. (get_int_var_value): New interface.
  6040. (ada_find_any_symbol): Declare.
  6041. (ada_find_renaming_symbol): Declare.
  6042. (ada_mangle): Rename to ada_encode.
  6043. (ada_simple_renamed_entity): Remove const.
  6044. (ada_main_name): Declare.
  6045. (get_current_task): Rename to ada_get_current_task.
  6046. (get_entry_number): Remove declaration.
  6047. (ada_report_exception_break): Remove declaration.
  6048. (ada_print_exception_breakpoint_nontask): Declare.
  6049. (ada_print_exception_breakpoint_task): Declare.
  6050. (ada_find_printable_frame): Declare.
  6051. * ada-lex.l: Update copyright notices.
  6052. Use xmalloc and xfree instead of malloc and free.
  6053. Use new interface to name_lookup.
  6054. Use new interface to
  6055. ada_mangle=>ada_encode.
  6056. Redo handling of '$...' variable to parallel current treatment
  6057. in c-exp.y.
  6058. (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
  6059. digit_to_int, strtoulst, processInt, processReal, processId,
  6060. block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
  6061. yywrap): Protoize.
  6062. (processInt): Use cast to remove harmless warning.
  6063. (processReal): Modify to get rid of compiler warning on scan formats.
  6064. (processId): Replace xmalloc with obstack_alloc for name and remove
  6065. call to ada_name_string_cleanup.
  6066. Remove obsolete disabled code.
  6067. (name_lookup): Ditto.
  6068. New interface.
  6069. Use obsavestring on temp_parse_space instead of savestring
  6070. on name, and remove call to ada_name_string_cleanup.
  6071. Free string returned from ada_simple_renamed_entity.
  6072. Use new interface to ada_lookup_symbol_list.
  6073. Decomment disabled code.
  6074. Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
  6075. not types.
  6076. When a type name lookup succeeds as a result of
  6077. lookup_primitive_typename, check for regular type entry that has not
  6078. yet been read in.
  6079. Limit length of chain of renamed symbols we are willing to follow.
  6080. Do not break names beginning with "standard__" into segments.
  6081. (block_lookup): Use new interface to ada_lookup_symbol_list.
  6082. * ada-typeprint.c: Update copyright notice.
  6083. (demangled_type_name): Rename to decoded_type_name.
  6084. (ada_typedef_print): Use SYMBOL_PRINT_NAME.
  6085. (print_range_bound): Correct handling of negative
  6086. bounds that make the index type looked unsigned under STABS.
  6087. (print_dynamic_range_bound): Use new interface to get_int_var_value.
  6088. (print_range_type_named): Use the builtin int type if no type
  6089. corresponding to the given type name could be found.
  6090. (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
  6091. Add some bullet-proofing.
  6092. (print_variant_clauses): Allow for variant branches with ___XVU
  6093. encodings that are not dynamic fields.
  6094. Use new interface to ada_is_tagged_type.
  6095. (print_record_type): Allow for fields with ___XVE encodings that
  6096. are not dynamic fields.
  6097. Use new interface to ada_is_tagged_type.
  6098. (ada_print_type): ada_is_array_descriptor =>
  6099. ada_is_array_descriptor_type.
  6100. * ada-valprint.c: Update copyright notice.
  6101. Include gdb_string.h
  6102. Include infcall.h
  6103. (ui_memcpy): New function.
  6104. (ada_print_floating): New function.
  6105. (ada_print_str): Order arguments correctly.
  6106. Correct handling of empty arrays and arrays of 0-length items.
  6107. ada_is_array_descriptor => ada_is_array_descriptor_type
  6108. Print values of type System.Address in hexadecimal format.
  6109. Use ada_print_floating to print floating-point numbers in Ada format.
  6110. Print class tag values with type names.
  6111. No longer print the address of reference values. Avoids
  6112. a potential confusion.
  6113. (ada_value_print): Stop printing the object type for reference
  6114. values, but preserve that behavior for access types. Avoids
  6115. a potential confusion.
  6116. Simplify one conditional expression, as the first part is now
  6117. necessarily true.
  6118. ada_is_array_descriptor => ada_is_array_descriptor_type
  6119. Add check for arrays for null records, and print them by hand.
  6120. 2004-06-01 Jim Blandy <jimb@redhat.com>
  6121. * ppc-tdep.h: Delete unused 'regoff' member.
  6122. * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
  6123. 2004-06-01 Michael Chastain <mec.gnu@mindspring.com>
  6124. Fix PR symtab/1661.
  6125. * hpread.c (hpread_pxdb_needed): Call memset after alloca.
  6126. (hpread_read_struct_type): Likewise.
  6127. 2004-06-01 Andrew Cagney <cagney@gnu.org>
  6128. * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
  6129. instead of xasprintf.
  6130. * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
  6131. (mi_cmd_thread_select, mi_cmd_thread_list_ids)
  6132. (mi_cmd_data_list_register_names)
  6133. (mi_cmd_data_list_changed_registers)
  6134. (mi_cmd_data_list_register_values)
  6135. (get_register, mi_cmd_data_write_register_values)
  6136. (mi_cmd_data_write_register_values)
  6137. (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
  6138. (mi_cmd_target_download, mi_cmd_target_select)
  6139. (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
  6140. (mi_execute_cli_command, mi_execute_async_cli_command)
  6141. (mi_execute_async_cli_command): Ditto.
  6142. * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
  6143. * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
  6144. * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
  6145. * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
  6146. error_last_message instead of mi_error_last_message.
  6147. * mi/mi-main.c (mi_error_last_message): Delete function.
  6148. * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
  6149. "invalid number of columns" error. Delete redundant "out of
  6150. memory" check.
  6151. 2004-05-31 Mark Kettenis <kettenis@gnu.org>
  6152. * i386bsd-nat.c: Don't include <sys/procfs.h>.
  6153. (gregset_t, fpregset_t): Remove typedefs.
  6154. (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
  6155. (REG_OFFSET): Rename argument.
  6156. (i386bsd_r_reg_offset): Rename from reg_offset.
  6157. (REG_ADDR): Remove macro.
  6158. (cannot_fetch_register, supply_gregset, fill_gregset): Remove
  6159. functions.
  6160. (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
  6161. (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
  6162. instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
  6163. instead of supply_gregset.
  6164. (store_inferior_registers): Use `struct reg' and `struct fpreg'
  6165. instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
  6166. instead of fill_gregset.
  6167. (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
  6168. * i386bsd-nat.c: Don't include "gregset.h".
  6169. (supply_gregset, fill_gregset): Make static.
  6170. (supply_fpregset, fill_fpregset): Remove.
  6171. * Makefile.in (i386bsd-nat.o): Update dependencies.
  6172. 2004-05-30 Mark Kettenis <kettenis@gnu.org>
  6173. * fbsd-proc.c: Include "regcache.h", "regset.h" and
  6174. "gdb_assert.h". Con't include "gregset.h".
  6175. (fbsd_make_corefile_notes): Use regset-based core file support
  6176. instead off fill_gregset and fill_fpregset.
  6177. * Makefile.in (fbsd-proc.o): Update dependencies.
  6178. * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
  6179. instructions.
  6180. (m88k_frame_prev_register): Simplify code a bit.
  6181. * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
  6182. (amd64_collect_fpregset): New function.
  6183. (amd64_regset_from_core_section): Use amd64_collect_fpregset.
  6184. * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
  6185. * i386-tdep.c (i386_supply_gregset): Adjust comment.
  6186. (i386_collect_gregset): New function.
  6187. (i386_supply_fpregset): Adjust comment.
  6188. (i386_collect_fpregset): New function.
  6189. (i386_regset_from_core_section): Use i386_collect_gregset and
  6190. i386_collect_fpregset.
  6191. * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
  6192. handle VALUEP being null.
  6193. * regset.h (collect_regset_ftype): Unconstify fourth argument.
  6194. 2004-05-29 Mark Kettenis <kettenis@gnu.org>
  6195. * MAINTAINERS: Undelete m88k. Add myself as maintainer.
  6196. * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
  6197. assembler in OpenBSD 3.5-current.
  6198. (amd64obsd_sigcontext_addr): Likewise.
  6199. 2004-05-28 Jim Blandy <jimb@redhat.com>
  6200. * rs6000-tdep.c: Use the modern gdbarch methods for handling the
  6201. register set, so our regcache isn't declared "legacy" and our E500
  6202. pseudoregister read and write functions aren't ignored.
  6203. (rs6000_register_byte, rs6000_register_raw_size,
  6204. rs6000_register_virtual_type, rs6000_register_convertible,
  6205. rs6000_register_convert_to_virtual,
  6206. rs6000_register_convert_to_raw): Deleted.
  6207. (rs6000_register_type, rs6000_convert_register_p,
  6208. rs6000_register_to_value, rs6000_value_to_register): New
  6209. functions.
  6210. (rs6000_gdbarch_init): Don't register
  6211. gdbarch_deprecated_register_size,
  6212. gdbarch_deprecated_register_bytes,
  6213. gdbarch_deprecated_register_byte,
  6214. gdbarch_deprecated_register_raw_size,
  6215. gdbarch_deprecated_register_virtual_type,
  6216. gdbarch_deprecated_register_convertible,
  6217. gdbarch_deprecated_register_convert_to_virtual, or
  6218. gdbarch_deprecated_register_convert_to_raw methods. Instead,
  6219. register gdbarch_register_type, gdbarch_convert_register_p,
  6220. gdbarch_register_to_value, and gdbarch_value_to_register methods.
  6221. 2004-05-26 Jim Blandy <jimb@redhat.com>
  6222. * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
  6223. (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
  6224. functions, updated to match the register numberings used in GCC.
  6225. (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
  6226. rs6000_dwarf2_reg_to_regnum as register number conversions
  6227. functions for STABS and Dwarf2.
  6228. 2004-05-26 Randolph Chung <tausq@debian.org>
  6229. * infttrace.h (target_waitkind): Forward declare type instead of pulling
  6230. in header file.
  6231. 2004-05-25 Joel Brobecker <brobecker@gnat.com>
  6232. * NEWS: Document new "start" command.
  6233. 2004-05-25 Randolph Chung <tausq@debian.org>
  6234. * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
  6235. hppa-linux.
  6236. 2004-05-25 Randolph Chung <tausq@debian.org>
  6237. * hppa-hpux-tdep.c (offsetof): Define.
  6238. (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
  6239. (hppa32_hpux_frame_base_before_sigtramp)
  6240. (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
  6241. (hppa64_hpux_frame_saved_pc_in_sigtramp)
  6242. (hppa64_hpux_frame_base_before_sigtramp)
  6243. (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
  6244. functions.
  6245. (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
  6246. (hppa_hpux_sigtramp_frame_unwind_cache)
  6247. (hppa_hpux_sigtramp_frame_this_id)
  6248. (hppa_hpux_sigtramp_frame_prev_register)
  6249. (hppa_hpux_sigtramp_frame_unwind)
  6250. (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
  6251. (hppa_hpux_init_abi): Register sigtramp unwinder.
  6252. * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
  6253. 2004-05-25 Randolph Chung <tausq@debian.org>
  6254. * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
  6255. and multiple stack unwinds.
  6256. (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
  6257. 2004-05-25 Andrew Cagney <cagney@gnu.org>
  6258. * symfile.h (symbol_file_add_from_memory): Delete declaration.
  6259. * symfile-mem.h: Delete file.
  6260. * symfile-mem.c: Do not include "symfile-mem.h".
  6261. (symbol_file_add_from_memory): Make static. Use "struct bfd" and
  6262. "struct bfd_section". When an error do not bother returning NULL.
  6263. (add_symbol_file_from_memory_command): Use "struct bfd" and
  6264. "struct bfd_section".
  6265. * Makefile.in (symfile_mem_h): Delete.
  6266. (symfile-mem.o): Update dependencies.
  6267. 2004-05-25 Nick Roberts <nickrob@gnu.org>
  6268. * gdb-mi.el: New file.
  6269. 2004-05-25 Andrew Cagney <cagney@gnu.org>
  6270. * inftarg.c: Include "observer.h".
  6271. (child_attach, child_create_inferior): Notify inferior_created.
  6272. * corelow.c: Include "observer.h".
  6273. (core_open): Notify inferior_created.
  6274. * Makefile.in (inftarg.o, corelow.o): Update dependencies.
  6275. 2004-05-25 Andrew Cagney <cagney@gnu.org>
  6276. * target.h (struct target_ops): Add from_tty to
  6277. to_create_inferior.
  6278. (target_create_inferior, find_default_create_inferior): Update.
  6279. * infcmd.c (run_command): Update.
  6280. * wince.c (child_create_inferior): Update.
  6281. * win32-nat.c (child_create_inferior): Update.
  6282. * uw-thread.c (uw_thread_create_inferior): Update.
  6283. * thread-db.c (thread_db_create_inferior): Update.
  6284. * target.c (debug_to_create_inferior)
  6285. (find_default_create_inferior): Update.
  6286. (maybe_kill_then_create_inferior): Update.
  6287. * sol-thread.c (sol_thread_create_inferior): Update.
  6288. * remote.c (extended_remote_async_create_inferior)
  6289. (extended_remote_create_inferior): Update.
  6290. * remote-vx.c (vx_create_inferior): Update.
  6291. * remote-st.c (st2000_create_inferior): Update.
  6292. * remote-sim.c (gdbsim_create_inferior): Update.
  6293. * remote-sds.c (sds_create_inferior): Update.
  6294. * remote-rdp.c (remote_rdp_create_inferior): Update.
  6295. * remote-rdi.c (arm_rdi_create_inferior): Update.
  6296. * remote-m32r-sdi.c (m32r_create_inferior): Update.
  6297. * remote-e7000.c (e7000_create_inferior): Update.
  6298. * procfs.c (procfs_create_inferior): Update.
  6299. * ocd.c (ocd_create_inferior): Update.
  6300. * ocd.h (ocd_create_inferior): Update.
  6301. * nto-procfs.c (procfs_create_inferior): Update.
  6302. * monitor.c (monitor_create_inferior): Update.
  6303. * lin-lwp.c (lin_lwp_create_inferior): Update.
  6304. * inftarg.c (child_create_inferior): Update.
  6305. * hpux-thread.c (hpux_thread_create_inferior): Update.
  6306. * gnu-nat.c (gnu_create_inferior): Update.
  6307. 2004-05-25 Andrew Cagney <cagney@gnu.com>
  6308. * MAINTAINERS: Update e-mail address.
  6309. 2004-05-24 Randolph Chung <tausq@debian.org>
  6310. * thread.c (info_threads_command, thread_apply_all_command)
  6311. (thread_apply_command, thread_command, do_captured_thread_select):
  6312. Remove HPUXHPPA-specific code.
  6313. 2004-05-24 Randolph Chung <tausq@debian.org>
  6314. * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
  6315. unused symbols.
  6316. * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
  6317. references.
  6318. 2004-05-24 Joel Brobecker <brobecker@gnat.com>
  6319. * infcmd.c (kill_if_already_running): New function, extracted
  6320. from run_command().
  6321. (run_command): Replace extracted code by call to
  6322. kill_if_already_running().
  6323. (start_command): New function.
  6324. (_initialize_infcmd): Add "start" command.
  6325. 2004-05-24 Mark Kettenis <kettenis@gnu.org>
  6326. Add OpenBSD/m88k support.
  6327. * NEWS (New native configurations): Mention OpenBSD/m88k.
  6328. * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
  6329. config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
  6330. * Makefile.in (m88k_tdep_h): New variable.
  6331. (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
  6332. (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
  6333. * configure.host: Add m88*-*-openbsd*.
  6334. * configure.tgt: Add m88*-*-openbsd*.
  6335. 2004-05-24 Jim Blandy <jimb@redhat.com>
  6336. * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
  6337. to approve changes.
  6338. 2004-05-24 Kevin Buettner <kevinb@redhat.com>
  6339. * symtab.c (fixup_section): Search section table when lookup by
  6340. name fails.
  6341. 2004-05-24 Randolph Chung <tausq@debian.org>
  6342. * hppa-tdep.c: Fix handling of 8-byte structures; they should not
  6343. be "small_struct".
  6344. 2004-05-24 Mark Kettenis <kettenis@gnu.org>
  6345. * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
  6346. register number in regcache_raw_collect call.
  6347. (m68kbsd_collect_fpregset): Likewise.
  6348. * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
  6349. * regset.h (struct regset): Add back `regset' member.
  6350. 2004-05-23 Mark Kettenis <kettenis@gnu.org>
  6351. * configure.in: Check for td_pcb in `struct thread'.
  6352. * configure, config.in: Regenerated.
  6353. * dpx2-nat.c: Remove file.
  6354. * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
  6355. (dpx2-nat.o): Remove dependencies.
  6356. * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
  6357. <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
  6358. (amd64obsd_supply_pcb): New function.
  6359. (_initialize_amd64obsd_nat): Enable libkvm interface.
  6360. * Makefile.in (amd64obsd-nat.o): Update dependencies.
  6361. * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
  6362. (LOADLIBES): New variable.
  6363. * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
  6364. <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
  6365. (sparc32nbsd_supply_pcb): New function.
  6366. (_initialize_sparcnbsd_nat): Enable libkvm interface.
  6367. * Makefile.in (sparcnbsd-nat.o): Update dependencies.
  6368. * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
  6369. (LOADLIBES): New variable.
  6370. 2004-05-22 Mark Kettenis <kettenis@gnu.org>
  6371. * bsd-kvm.c, bsd-kvm.h: New files.
  6372. * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
  6373. "bsd-kvm.h".
  6374. (i386fbsd_supply_pcb): New function.
  6375. * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
  6376. (i386fbsd-nat.o): Update dependencies.
  6377. (bsd_kvm_h): New variable.
  6378. (bsd-kvm.o): New dependency.
  6379. * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
  6380. (LOADLIBES): New variable.
  6381. * regset.c: Tweak comment.
  6382. (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
  6383. macro.
  6384. * regset.h: Update copyright year.
  6385. (struct regset): Remove `descr' member, add `gdbarch' member.
  6386. (regset_alloc): Adjust prototype and comment.
  6387. * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
  6388. (i386_supply_fpregset): Likewise.
  6389. (i386_regset_from_core_section): Update call to regset_alloc.
  6390. * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
  6391. REGSET->arch.
  6392. (i386obsd_aout_regset_from_core_section): Update call to
  6393. regset_alloc.
  6394. * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
  6395. REGSET->arch.
  6396. (i386nbsd_aout_regset_from_core_section): Update call to
  6397. regset_alloc.
  6398. * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
  6399. REGSET->arch.
  6400. (amd64_regset_from_core_section): Update call to regset_alloc.
  6401. * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
  6402. REGSET->arch.
  6403. (amd64obsd_regset_from_core_section): Update call to regset_alloc.
  6404. * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
  6405. &sparc32nbsd_gregset in sparc32_supply_gregset call.
  6406. (sparc32nbsd_init_abi): Update call to regset_alloc.
  6407. * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
  6408. &sparc64obsd_core_gregset in sparc64_supply_gregset call.
  6409. (sparc64obsd_init_abi): Update call to regset_alloc.
  6410. * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
  6411. &sparc64nbsd_gregset in sparc64_supply_gregset call.
  6412. (sparc64nbsd_init_abi): Update call to regset_alloc.
  6413. * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
  6414. &sparc64fbsd_gregset in sparc64_supply_gregset call.
  6415. (sparc64fbsd_init_abi): Update call to regset_alloc.
  6416. 2004-05-22 Jim Blandy <jimb@redhat.com>
  6417. * ppc-tdep.h (spe_register_p): New declaration.
  6418. (struct gdbarch_tdep): New members: ppc_acc_regnum and
  6419. ppc_spefscr_regnum.
  6420. * rs6000-tdep.c (spe_register_p): New function.
  6421. (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
  6422. spefscr.
  6423. (rs6000_gdbarch_init): Initialize the new members of the tdep
  6424. structure.
  6425. 2004-05-21 Jim Blandy <jimb@redhat.com>
  6426. * ppc-linux-nat.c (fetch_register): Move code back to be next
  6427. to the comment that describes it. (Moved code, instead of
  6428. comment, for symmetry with store_register.)
  6429. Allocate regset structures in the gdbarch's obstack, not using
  6430. xmalloc.
  6431. * regset.c (regset_alloc): Renamed from regset_xmalloc.
  6432. Add 'arch' argument. Allocate the regset on arch's obstack, not
  6433. using xmalloc.
  6434. * regset.h (regset_alloc): Update declaration.
  6435. * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
  6436. gdbarch argument.
  6437. * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
  6438. * i386-tdep.c (i386_regset_from_core_section): Same.
  6439. * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
  6440. * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
  6441. * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
  6442. * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
  6443. * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
  6444. * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
  6445. 2004-05-21 Joel Brobecker <brobecker@gnat.com>
  6446. * config/djgpp/fnchange.lst: Undo previous change, was useless.
  6447. 2004-05-21 Jim Blandy <jimb@redhat.com>
  6448. * dwarf2expr.c (execute_stack_op): Add 'break' statements after
  6449. cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
  6450. 2004-05-20 Jim Blandy <jimb@redhat.com>
  6451. * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
  6452. 2004-05-20 Mark Kettenis <kettenis@gnu.org>
  6453. * regset.h: Make prototype const-correct.
  6454. * regset.c (regset_xmalloc): Make const-correct.
  6455. 2004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
  6456. * symtab.h (SYMBOL_SEARCH_NAME): New definition.
  6457. (SYMBOL_MATCHES_SEARCH_NAME): New definition.
  6458. (symbol_search_name): Declare.
  6459. * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
  6460. (iter_name_next_hashed): Ditto.
  6461. (iter_name_next_linear): Ditto.
  6462. (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
  6463. * symtab.c (lookup_partial_symbol): Assume symbols ordered by
  6464. search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
  6465. (symbol_search_name): New function.
  6466. * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
  6467. * minsyms.c (build_minimal_symbol_hash_tables): Change
  6468. test for adding to demangled hash table to check for difference
  6469. between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
  6470. 2004-05-19 Jim Blandy <jimb@redhat.com>
  6471. Use a constructor function to create regset structures.
  6472. * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
  6473. (struct regset): Use supply_regset_ftype. Add new
  6474. 'collect_regset' member.
  6475. (regset_xmalloc): New declaration.
  6476. * regset.c: New file.
  6477. * am64-tdep.c (amd64_regset_from_core_section): Use
  6478. regset_xmalloc to construct regset structures.
  6479. * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
  6480. * i386-tdep.c (i386_regset_from_core_section): Same.
  6481. * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
  6482. * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
  6483. * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
  6484. * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
  6485. * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
  6486. * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
  6487. * Makefile.in (COMMON_OBS): Add regset.o.
  6488. (regset.o): New rule.
  6489. 2004-05-19 Joel Brobecker <brobecker@gnat.com>
  6490. * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
  6491. and pthread_cond_wait.c.
  6492. 2004-05-18 Jim Blandy <jimb@redhat.com>
  6493. * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
  6494. before the mach-specific switch, and then let the individual cases
  6495. override the defaults, rather than leaving them uninitialized
  6496. until the switch and then setting them in each case.
  6497. 2004-05-18 Randolph Chung <tausq@debian.org>
  6498. * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
  6499. millicode functions.
  6500. 2004-05-18 Randolph Chung <tausq@debian.org>
  6501. * somsolib.c (som_solib_remove_inferior_hook): Make all the size
  6502. references to dld_flags_buffer consistent.
  6503. 2004-05-18 Randolph Chung <tausq@debian.org>
  6504. * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
  6505. it for unwinding the stack.
  6506. 2004-05-18 Randolph Chung <tausq@debian.org>
  6507. * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
  6508. Undefine these so we can overide them using gdbarch.
  6509. 2004-05-18 Randolph Chung <tausq@debian.org>
  6510. * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
  6511. handling for 64-bit HPUX (elf).
  6512. 2004-05-18 Daniel Jacobowitz <dan@debian.org>
  6513. * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
  6514. constants.
  6515. * amd64-tdep.c (amd64_skip_prologue): Likewise.
  6516. * ia64-tdep.c (examine_prologue): Likewise.
  6517. * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
  6518. * v850-tdep.c (v850_fix_call_dummy): Likewise.
  6519. 2004-05-18 Mark Kettenis <kettenis@gnu.org>
  6520. * vax-tdep.c (vax_return_value): Implement
  6521. RETURN_VALUE_ABI_RETURNS_ADDRESS.
  6522. 2004-05-17 Mark Kettenis <kettenis@gnu.org>
  6523. * vax-tdep.c (vax_return_value): Fix typo.
  6524. 2004-05-17 Andrew Cagney <cagney@redhat.com>
  6525. * MAINTAINERS: Mark Salter was also responsible for
  6526. testsuite/config/
  6527. * NEWS: Mention signal fixes.
  6528. 2004-05-17 Randolph Chung <tausq@debian.org>
  6529. * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
  6530. check to see if we are unwinding an export stub. Export stubs clobber
  6531. the %rp in the call path and stores the original rp in a stack slot.
  6532. 2004-05-17 Jim Blandy <jimb@redhat.com>
  6533. * MAINTAINERS: Update address for J.T. Conklin.
  6534. 2004-05-17 Randolph Chung <tausq@debian.org>
  6535. * hppa-tdep.c: Remove superfluous #include's.
  6536. * Makefile.in (hppa-tdep.o): Update dependencies.
  6537. 2004-05-17 Randolph Chung <tausq@debian.org>
  6538. * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
  6539. (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
  6540. (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
  6541. (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
  6542. (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
  6543. Remove static function declarations.
  6544. 2004-05-17 Mark Kettenis <kettenis@gnu.org>
  6545. * alphabsd-nat.c: Update copyright year.
  6546. (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
  6547. * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
  6548. and M68K_A2_REGNUM.
  6549. * m68k-tdep.c (m68k_svr4_return_value): Implement
  6550. RETURN_VALUE_ABI_RETURNS_ADDRESS.
  6551. 2004-05-16 Mark Kettenis <kettenis@gnu.org>
  6552. * sol-thread.c Update copyright year. Fix various coding
  6553. standards violations. Tweak a few comments.
  6554. (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
  6555. Delete prototypes.
  6556. 2004-05-15 Randolph Chung <tausq@debian.org>
  6557. * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
  6558. as pointer instead of array reference since HPUX compiler does
  6559. not accept unsized array arguments.
  6560. * somsolib.c (dld_flags_buffer): Use constant array size.
  6561. 2004-05-15 Mark Kettenis <kettenis@gnu.org>
  6562. * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
  6563. offset with decimal offset.
  6564. (amd64obsd_sigcontext_addr): Return correct address for entire
  6565. signal trampoline.
  6566. * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
  6567. instead of get_frame_base.
  6568. * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
  6569. (fill_gregset): Use regcache_raw_collect.
  6570. * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
  6571. ppcobsd-tdep.c.
  6572. * config/sparc/tm-nbsd64.h: Remove file.
  6573. * config/tm-sunos.h: Remove file.
  6574. 2004-05-15 Joel Brobecker <brobecker@gnat.com>
  6575. * rs6000-tdep.c (store_param_on_stack_p): New function,
  6576. an improved version of some code extracted from skip_prologue().
  6577. (skip_prologue): Use store_param_on_stack_p() to detect
  6578. instructions saving a parameter on the stack. Detect when r0
  6579. is used to save a parameter.
  6580. Do not mark "li rx, SIMM" instructions as part of the prologue,
  6581. unless the following instruction is also part of the prologue.
  6582. 2004-05-14 Andrew Cagney <cagney@redhat.com>
  6583. * infrun.c (handle_inferior_event): Simplify
  6584. STEP_OVER_UNDEBUGGABLE.
  6585. * infrun.c (handle_step_into_function): Delete function.
  6586. (handle_inferior_event): Inline calls to
  6587. handle_step_into_function.
  6588. 2004-05-14 Jerome Guitton <guitton@gnat.com>
  6589. * rs6000-nat.c: Fix a comment.
  6590. 2004-05-12 David Anderson <davea@sgi.com>
  6591. Committed by Jim Blandy <jimb@redhat.com>:
  6592. * regcache.c (struct regcache_descr): fix comment spelling.
  6593. 2004-05-13 J. Brobecker <brobecker@gnat.com>
  6594. * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
  6595. Fixes a link link failure.
  6596. 2004-05-13 J. Brobecker <brobecker@gnat.com>
  6597. * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
  6598. error that was causing the build to fail.
  6599. 2004-05-13 J. Brobecker <brobecker@gnat.com>
  6600. * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
  6601. * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
  6602. 2004-05-13 Andrew Cagney <cagney@redhat.com>
  6603. * infrun.c (handle_inferior_event): Check for
  6604. STEP_OVER_UNDEBUGGABLE after signal trampolines and function
  6605. calls. Update comments.
  6606. 2004-05-13 Jim Blandy <jimb@redhat.com>
  6607. * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
  6608. (fetch_regs_user_thread, fetch_regs_kernel_thread)
  6609. (store_regs_user_thread, store_regs_kernel_thread): Use
  6610. ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
  6611. * ppc-linux-nat.c (fill_gregset): Same.
  6612. * ppc-linux-tdep.c (ppc_linux_supply_gregset)
  6613. (ppc_linux_sigtramp_cache): Same.
  6614. * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
  6615. (ppcnbsd_sigtramp_cache_init): Same.
  6616. * rs6000-nat.c (fetch_core_registers): Same.
  6617. * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
  6618. (rs6000_frame_cache): Same.
  6619. * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
  6620. (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
  6621. of assuming that the gprs are numbered starting with zero.
  6622. * ppc-linux-nat.c (fill_gregset): Same.
  6623. * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
  6624. * ppcnbsd-nat.c (getregs_supplies): Same.
  6625. * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
  6626. * rs6000-nat.c (fetch_core_registers): Same.
  6627. * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
  6628. 2004-05-07 Michael Snyder <msnyder@redhat.com>
  6629. * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
  6630. LOC_COMPUTED_ARG, and LOC_INDIRECT.
  6631. 2004-05-13 Andrew Cagney <cagney@redhat.com>
  6632. * infrun.c (handle_inferior_event): Use frame_unwind_id.
  6633. 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
  6634. * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
  6635. base_address for shared libraries.
  6636. 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
  6637. * MAINTAINERS (write after approval): Add myself.
  6638. 2004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
  6639. * breakpoint.c (bpstat_stop_status): Add new argument
  6640. STOPPED_BY_WATCHPOINT. Use it instead of testing
  6641. target_stopped_data_address agaist 0 to check whether
  6642. or not we stopped due to a hardware watchpoint.
  6643. * breakpoint.h (bpstat_stop_status): Adapt prototype.
  6644. * infrun.c (handle_inferior_event): Call bpstat_stop_status
  6645. with new argument.
  6646. 2004-05-12 Jim Blandy <jimb@redhat.com>
  6647. * configure.in: When checking whether we should use the -bbigtoc
  6648. option, don't forget to restore the original value of LDFLAGS.
  6649. * configure: Regenerated.
  6650. 2004-05-12 Andrew Cagney <cagney@redhat.com>
  6651. * thread.c (load_infrun_state): Delete step_sp.
  6652. * infrun.c (context_switch): Ditto.
  6653. * inferior.h (step_sp): Ditto.
  6654. * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
  6655. * gdbthread.h (struct thread_info, save_infrun_state)
  6656. (restore_infrun_state): Ditto.
  6657. 2004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
  6658. * MAINTAINERS (write after approval): Add myself.
  6659. 2004-05-12 Andrew Cagney <cagney@redhat.com>
  6660. * infrun.c (adjust_pc_after_break): Rewrite decr logic,
  6661. eliminate reference to step_sp.
  6662. (struct execution_control_state, init_execution_control_state)
  6663. (handle_inferior_event, keep_going): Delete update_step_sp and
  6664. step_sp.
  6665. * infcmd.c (step_sp): Note that variable is unused.
  6666. 2004-05-11 Andrew Cagney <cagney@redhat.com>
  6667. * infrun.c (step_over_function): Delete function.
  6668. (handle_step_into_function): Use insert_step_resume_breakpoint.
  6669. (insert_step_resume_breakpoint): Fix assertion.
  6670. 2004-05-11 Nick Roberts <nickrob@gnu.org>
  6671. * utils.c (defaulted_query): Just use the normal query input type
  6672. when printing the annotations.
  6673. 2004-05-11 Andrew Cagney <cagney@redhat.com>
  6674. * infrun.c (handle_inferior_event): Simplify code handling
  6675. step-into or return-from a signal trampoline.
  6676. 2004-05-11 Andrew Cagney <cagney@redhat.com>
  6677. * ppcnbsd-tdep.c: Include "gdb_assert.h".
  6678. * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
  6679. 2004-05-10 Jim Blandy <jimb@redhat.com>
  6680. * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
  6681. with a call to internal_error.
  6682. * ppc-tdep.h (struct gdbarch_tdep): Change definition of
  6683. ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
  6684. processor variant lacks those registers.
  6685. (ppc_floating_point_unit_p): Change description to make it clear
  6686. that this returns info about the ISA, not the ABI.
  6687. * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
  6688. return true or false by checking tdep->ppc_fp0_regnum and
  6689. tdep->ppc_fpscr_regnum. The original code replicated the BFD
  6690. arch/mach switching done in rs6000_gdbarch_init; it's better to
  6691. keep that logic there, and just check the results here.
  6692. (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
  6693. tdep->ppc_fpscr_regnum to -1 to indicate that we have no
  6694. floating-point registers.
  6695. (ppc_supply_fpregset, ppc_collect_fpregset)
  6696. (rs6000_push_dummy_call, rs6000_extract_return_value)
  6697. (rs6000_store_return_value): Assert that we have floating-point
  6698. registers.
  6699. (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
  6700. (rs6000_frame_cache): Don't note the locations at which
  6701. floating-point registers were saved if we have no fprs.
  6702. * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
  6703. registers.
  6704. (fetch_regs_user_thread, fetch_regs_kernel_thread)
  6705. (store_regs_user_thread, store_regs_kernel_thread): Only call
  6706. supply_fprs / fill_fprs if we actually have floating-point
  6707. registers.
  6708. (special_register_p): Check ppc_fpscr_regnum before matching
  6709. against it.
  6710. (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
  6711. supply / collect fpscr if we don't have it.
  6712. * ppc-bdm.c: #include "gdb_assert.h".
  6713. (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
  6714. have floating-point registers, since I can't test this code on
  6715. FP-free systems to adapt it.
  6716. * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
  6717. fpscr and floating point register numbers if they don't exist.
  6718. (fetch_register): Assert that we have floating-point registers
  6719. before we reach the code that handles them.
  6720. (store_register): Same. And use tdep instead of calling
  6721. gdbarch_tdep again.
  6722. (fill_fpregset): Don't try to collect FP registers and fpscr if we
  6723. don't have them.
  6724. (ppc_linux_sigtramp_cache): Don't record the saved locations of
  6725. fprs and fpscr if we don't have them.
  6726. (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
  6727. don't have them.
  6728. * ppcnbsd-nat.c: #include "gdb_assert.h".
  6729. (getfpregs_supplies): Assert that we have floating-point registers.
  6730. * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
  6731. * ppcobsd-tdep.c: #include "gdb_assert.h".
  6732. (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
  6733. have floating-point registers.
  6734. * rs6000-nat.c (regmap): Don't match against the fpscr and
  6735. floating point register numbers if they don't exist.
  6736. (fetch_inferior_registers, store_inferior_registers,
  6737. fetch_core_registers): Only fetch / store / supply the
  6738. floating-point registers and the fpscr if we have them.
  6739. * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
  6740. (ppcobsd-tdep.o): Update dependencies.
  6741. 2004-05-10 Andrew Cagney <cagney@redhat.com>
  6742. * infrun.c (through_sigtramp_breakpoint): Delete variable.
  6743. (context_switch): Do not switch through_sigtramp_breakpoint.
  6744. * gdbthread.h (save_infrun_state, load_infrun_state)
  6745. (struct thread_info): Delete through_sigtramp_breakpoint parameter
  6746. and structure member.
  6747. * thread.c (load_infrun_state, save_infrun_state): Update.
  6748. 2004-05-10 Mark Kettenis <kettenis@gnu.org>
  6749. * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
  6750. 2004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
  6751. * acinclude.m4: Quote macro names being defined by AC_DEFUN
  6752. throughout.
  6753. * aclocal.m4: Regenerate.
  6754. 2004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
  6755. * alphanbsd-tdep.c: Fix include of "gdb_string.h".
  6756. 2004-05-10 Andrew Cagney <cagney@redhat.com>
  6757. * infrun.c (check_sigtramp2): Delete function.
  6758. (handle_inferior_event): When single stepping, and taking a
  6759. signal, set a breakpoint at the signal return address. Delete
  6760. redundant calls to check_sigtramp2.
  6761. (insert_step_resume_breakpoint): New function.
  6762. (through_sigtramp_breakpoint, handle_inferior_event)
  6763. (follow_exec, wait_for_inferior, fetch_inferior_event)
  6764. (currently_stepping, keep_going): Delete most uses of
  6765. through_sigtramp_breakpoint, not that it should be deleted.
  6766. (delete_breakpoint_current_contents): Delete function.
  6767. 2004-05-10 Randolph Chung <tausq@debian.org>
  6768. * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
  6769. target.
  6770. * config/pa/tm-linux.h: New file.
  6771. 2004-05-10 Daniel Jacobowitz <drow@mvista.com>
  6772. * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
  6773. of prefixes. Don't print the prefix twice in the CLI.
  6774. 2004-05-10 Jim Blandy <jimb@redhat.com>
  6775. * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
  6776. collect all the gprs.
  6777. * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
  6778. loop collecting gprs.
  6779. 2004-05-09 Andrew Cagney <cagney@redhat.com>
  6780. * remote-vx.c (net_step): Delete step-range code.
  6781. * remote.c (remote_resume, init_all_packet_configs)
  6782. (set_remote_protocol_E_packet_cmd)
  6783. (show_remote_protocol_E_packet_cmd)
  6784. (remote_protocol_E, show_remote_cmd, _initialize_remote)
  6785. (remote_protocol_e, set_remote_protocol_e_packet_cmd)
  6786. (show_remote_protocol_e_packet_cmd): Ditto.
  6787. 2004-05-09 Mark Kettenis <kettenis@gnu.org>
  6788. * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
  6789. * hppa-tdep.h: Update copyright year.
  6790. (struct trad_frame_saved_reg): Add opaque declaration.
  6791. * amd64-tdep.c (amd64_return_value): Implement
  6792. RETURN_VALUE_ABI_RETURNS_ADDRESS.
  6793. * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
  6794. (m68k_value_to_register): New functions.
  6795. (m68k_gdbarch_init): Set convert_register_p, register_to_value and
  6796. value_to_register.
  6797. * defs.h (enum return_value_convention): Add
  6798. RETURN_VALUE_ABI_RETURNS_ADDRESS and
  6799. RETURN_VALUE_ABI_PRESERVES_ADDRESS.
  6800. * infcmd.c (legacy_return_value): New function.
  6801. (print_return_value): Rwerite to implement
  6802. RETURN_VALUE_ABI_RETURNS_ADDRESS.
  6803. * values.c (using_struct_return): Check for inequality to
  6804. RETURN_VALUE_REGISTER_CONVENTION instead of equality to
  6805. RETURN_VALUE_STRUCT_CONVENTION.
  6806. * i386-tdep.c (i386_return_value): Implement
  6807. RETURN_VALUE_ABI_RETURNS_ADDRESS.
  6808. * vax-tdep.c: Tweak comments. Reorder include files. Don't
  6809. include "symtab.h", "opcode/vax.h" and "inferior.h".
  6810. (vax_skip_prologue): Replace calls to read_memory_integer by calls
  6811. to read_memory_unsigned_integer.
  6812. (vax_gdbarch_init): Reorder.
  6813. (_initialize_vax_tdep): Spell out prototype.
  6814. * Makefile.in (vax-tdep.o): Update dependencies.
  6815. 2004-05-08 Andrew Cagney <cagney@redhat.com>
  6816. * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
  6817. * target.c (target_detach, target_disconnect): Ditto.
  6818. * infcall.c (call_function_by_hand): When no
  6819. DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
  6820. * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
  6821. DEPRECATED_SAVE_DUMMY_FRAME_TOS.
  6822. * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
  6823. * mcore-tdep.c (mcore_gdbarch_init): Ditto.
  6824. * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
  6825. * gdbarch.h, gdbarch.c: Re-generate.
  6826. * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
  6827. deprecated_fix_call_dummy.
  6828. * v850-tdep.c (v850_gdbarch_init): Ditto.
  6829. * infcall.c (call_function_by_hand): Do not call
  6830. DEPRECATED_FIX_CALL_DUMMY.
  6831. * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
  6832. (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
  6833. * gdbarch.h, gdbarch.c: Re-generate.
  6834. * arm-linux-tdep.c (arm_linux_call_dummy_words)
  6835. (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
  6836. deprecated_sizeof_call_dummy_words.
  6837. * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
  6838. * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
  6839. * v850-tdep.c (v850_gdbarch_init): Ditto.
  6840. * sh64-tdep.c (sh64_gdbarch_init): Ditto.
  6841. * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
  6842. * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
  6843. * mcore-tdep.c (mcore_gdbarch_init): Ditto.
  6844. * arch-utils.h (legacy_call_dummy_words)
  6845. (legacy_sizeof_call_dummy_words): Delete declarations.
  6846. * arch-utils.c (legacy_call_dummy_words)
  6847. (legacy_sizeof_call_dummy_words): Delete variables.
  6848. * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
  6849. * gdbarch.h, gdbarch.c: Re-generate.
  6850. * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
  6851. * infcall.c (call_function_by_hand): Eliminate call to
  6852. DEPRECATED_PUSH_DUMMY_FRAME.
  6853. * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
  6854. push_dummy_frame.
  6855. (ns32k_push_dummy_frame): Delete function.
  6856. * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
  6857. deprecated_call_dummy_breakpoint_offset or
  6858. deprecated_call_dummy_start_offset.
  6859. * dummy-frame.c, arm-tdep.c: Update comments.
  6860. * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
  6861. (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
  6862. * gdbarch.h, gdbarch.c: Re-generate.
  6863. * infcall.c (legacy_push_dummy_code): Delete function.
  6864. (push_dummy_code): Delete call.
  6865. * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
  6866. * gdbarch.h, gdbarch.c: Re-generate.
  6867. * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
  6868. DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
  6869. * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
  6870. * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
  6871. * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
  6872. (struct frame_info): Delete opaque declaration.
  6873. * breakpoint.c (deprecated_frame_in_dummy): Delete function.
  6874. * frame.c (get_frame_type): Delete call.
  6875. * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
  6876. pc_in_call_dummy.
  6877. * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
  6878. * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
  6879. 2004-05-08 Mark Kettenis <kettenis@gnu.org>
  6880. * alphanbsd-tdep.c: Include "gdb_string.h".
  6881. * armnbsd-tdep.c: Update copyright year.
  6882. Include "gdb_string.h".
  6883. * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
  6884. dependencies.
  6885. * delta68-nat.c: Remove file.
  6886. * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
  6887. (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
  6888. * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
  6889. (delta68-nat.o): Remove dependency.
  6890. * m68k-tdep.c (m68k_frameless_function_invocation): Remove
  6891. function.
  6892. (m68k_gdbarch_init): Don't set
  6893. deprecated_frameless_function_invocation.
  6894. 2004-05-07 Randolph Chung <tausq@debian.org>
  6895. * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
  6896. read_memory_nobpt for code reading when doing frame unwinding.
  6897. * hppa-linux-tdep.c (insns_match_pattern): Likewise.
  6898. 2004-05-07 Randolph Chung <tausq@debian.org>
  6899. * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
  6900. instead of sp, handle sigaltstack case.
  6901. (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
  6902. hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
  6903. signal handler and not that of the caller.
  6904. (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
  6905. hppa_linux_sigtramp_find_sigcontext.
  6906. 2004-05-07 Randolph Chung <tausq@debian.org>
  6907. * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
  6908. hppa-linux-nat.c.
  6909. (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
  6910. * hppa-linux-nat.c (fetch_register, store_register): Define.
  6911. (fetch_inferior_registers, store_inferior_registers): Define.
  6912. (supply_gregset): Add comment and clean up some unneeded code.
  6913. (fill_gregset): Add comment and fix so that it saves registers in
  6914. the right place in the gregset.
  6915. (fill_fpregset): Fix buffer overrun problem.
  6916. * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
  6917. 2004-05-07 Randolph Chung <tausq@debian.org>
  6918. * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
  6919. do common handling of the pcoqt register.
  6920. (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
  6921. to use helper function.
  6922. (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
  6923. (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
  6924. (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
  6925. generic fallback unwinder when all else fails.
  6926. (hppa_gdbarch_init): Add fallback sniffer.
  6927. * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
  6928. * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
  6929. to use helper function.
  6930. 2004-05-08 Joel Brobecker <brobecker@gnat.com>
  6931. * config/djgpp/fnchange.lst: Add translation rules for
  6932. gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
  6933. 2004-05-08 Mark Kettenis <kettenis@gnu.org>
  6934. * frame.c (get_prev_frame_1): Work around GCC bug.
  6935. * frame.h: Add comment about GCC bug.
  6936. 2004-05-07 Andrew Cagney <cagney@redhat.com>
  6937. * observer.c: Include "commands.h" and "gdbcmd.h".
  6938. (observer_debug, _initialize_observer): Add the
  6939. command "set/show debug observer".
  6940. * observer.sh: When observer debugging, log notify calls.
  6941. * Makefile.in (observer.o): Update dependencies.
  6942. 2004-05-07 Jason Molenda (jmolenda@apple.com)
  6943. * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
  6944. 2004-05-07 Jim Blandy <jimb@redhat.com>
  6945. * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
  6946. fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
  6947. to recognize gpr regnums, instead of assuming that
  6948. tdep->ppc_fp0_regnum marks the end of the general-purpose
  6949. registers.
  6950. * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
  6951. the given architecture has floating-point registers.
  6952. 2004-05-07 Andrew Cagney <cagney@redhat.com>
  6953. * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
  6954. macro defined to 1.
  6955. * gdbarch.h, gdbarch.c: Re-generate.
  6956. * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
  6957. deprecated_use_generic_dummy_frames.
  6958. 2004-05-07 Brian Ford <ford@vss.fsi.com>
  6959. * NEWS: Mention Cygwin DWARF 2 support.
  6960. 2004-05-07 Andrew Cagney <cagney@redhat.com>
  6961. * objfiles.h (struct entry_info): Delete unused fields
  6962. deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
  6963. * objfiles.c (init_entry_point_info, objfile_relocate): Update.
  6964. * mipsread.c (mipscoff_symfile_read): Update.
  6965. * mdebugread.c (parse_partial_symbols): Update.
  6966. * dwarfread.c (read_file_scope): Update.
  6967. * dwarf2read.c (read_file_scope): Update.
  6968. * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
  6969. * coffread.c (complete_symtab): Update.
  6970. 2004-05-07 Mark Kettenis <kettenis@gnu.org>
  6971. * infcall.c (_initialize_infcall): Fix typo.
  6972. 2004-05-07 Andrew Cagney <cagney@redhat.com>
  6973. * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
  6974. * command.h (add_setshow_zinteger_cmd): Declare.
  6975. 2004-05-06 Randolph Chung <tausq@debian.org>
  6976. * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
  6977. (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
  6978. (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
  6979. (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
  6980. (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
  6981. (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
  6982. (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
  6983. definitions ...
  6984. * hppa-tdep.h: ... to here, with HPPA_ prefix.
  6985. * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
  6986. * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
  6987. (hppa64_hpux_frame_find_saved_regs_in_sig)
  6988. (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
  6989. * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
  6990. * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
  6991. (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
  6992. (hppa_linux_sigtramp_frame_prev_register): Likewise.
  6993. * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
  6994. (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
  6995. (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
  6996. (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
  6997. (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
  6998. (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
  6999. (hppa32_register_type, hppa_cannot_store_register)
  7000. (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
  7001. * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
  7002. * hpread.c (hpread_process_one_debug_symbol): Likewise.
  7003. * pa64solib.c (pa64_solib_have_load_event)
  7004. (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
  7005. (pa64_solib_unloaded_library_pathname): Likewise.
  7006. * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
  7007. (som_solib_library_pathname): Likewise.
  7008. 2004-05-05 Jim Ingham <jingham@apple.com>
  7009. * breakpoint.c (create_breakpoints): Copy the ignore count and
  7010. thread id over from the pended breakpoint to the actual
  7011. breakpoint.
  7012. 2004-05-05 Andrew Cagney <cagney@redhat.com>
  7013. * gdbarch.sh (PARM_BOUNDARY): Delete.
  7014. gdbarch.h, gdbarch.c: Re-generate.
  7015. * valops.c (PARM_BOUNDARY): Delete macro.
  7016. (value_push): Delete PARM_BOUNDARY code.
  7017. * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
  7018. 2004-05-04 Jim Blandy <jimb@redhat.com>
  7019. * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
  7020. Don't assume that the gprs, fprs, and UISA sprs are
  7021. contiguous, start at register number zero, and end with fpscr.
  7022. Instead, use the numbers from the tdep structure.
  7023. * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
  7024. should no longer be used in code specific to the RS6000 and its
  7025. derivatives.
  7026. * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
  7027. * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
  7028. tdep->ppc_fp0_regnum.
  7029. (ppc_supply_fpregset, ppc_collect_fpregset)
  7030. (rs6000_push_dummy_call, rs6000_extract_return_value)
  7031. (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
  7032. (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
  7033. FP0_REGNUM.
  7034. * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
  7035. (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
  7036. Same.
  7037. * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
  7038. bdm_ppc_store_registers): Same.
  7039. * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
  7040. (store_register, fill_fpregset): Same.
  7041. * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
  7042. (ppc_linux_supply_fpregset): Same.
  7043. * ppcnbsd-nat.c (getfpregs_supplies): Same.
  7044. * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
  7045. Same.
  7046. * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
  7047. do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
  7048. ppc64_sysv_abi_return_value): Same.
  7049. * rs6000-nat.c (regmap, fetch_inferior_registers)
  7050. (store_inferior_registers, fetch_core_registers): Same.
  7051. 2004-05-01 Mark Kettenis <kettenis@gnu.org>
  7052. * m68knbsd-nat.c: Remove file.
  7053. * m68knbsd-tdep.c: Remove file.
  7054. * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
  7055. dependencies.
  7056. * configure.host: Add m68k-*-netbsdelf*.
  7057. * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
  7058. * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
  7059. solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
  7060. (XM_FILE): Remove.
  7061. * config/m68k/nbsdelf.mh: New file.
  7062. * config/m68k/nbsd.mt: New file.
  7063. * config/m68k/nbsdaout.mt: Remove file.
  7064. * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
  7065. <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
  7066. (BPT_VECTOR, STACK_END_ADDR): Remove defines.
  7067. (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
  7068. (use_struct_convention): Remove prototype.
  7069. (USE_STRUCT_CONVENTION): Remove define.
  7070. * config/m68k/xm-nbsd.h: Remove file.
  7071. 2004-05-04 Michael Snyder <msnyder@redhat.com>
  7072. * m68k-tdep.c (m68k_gdbarch_init): Default to using
  7073. reg_struct_return method (as gcc usually does for cross targets).
  7074. 2004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
  7075. Committed by Andrew Cagney.
  7076. * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
  7077. alignment padding when accessing ucontext struct members.
  7078. 2004-05-04 Jim Blandy <jimb@redhat.com>
  7079. * config/ppc-tdep.h (struct gdbarch_tdep): Delete
  7080. 'ppc_gplast_regnum' member.
  7081. (ppc_num_gprs): New enum constant.
  7082. * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
  7083. and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
  7084. * rs6000-nat.c (regmap, fetch_inferior_registers,
  7085. store_inferior_registers): Same.
  7086. * rs6000-tdep.c (e500_pseudo_register_read)
  7087. (e500_pseudo_register_write): Same.
  7088. (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
  7089. * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
  7090. * ppc-tdep.h (ppc_num_fprs): New enum constant.
  7091. * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
  7092. store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
  7093. FPLAST_REGNUM.
  7094. * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
  7095. Same.
  7096. * ppc-linux-nat.c (ppc_register_u_addr): Same.
  7097. * rs6000-nat.c (regmap, fetch_inferior_registers)
  7098. (store_inferior_registers): Same.
  7099. * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
  7100. with FPLAST_REGNUM.
  7101. 2004-05-03 Joel Brobecker <brobecker@gnat.com>
  7102. * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
  7103. failure detected by recent versions of GCC.
  7104. (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
  7105. to be consistent with the usage in dwarf2_create_include_psymtab.
  7106. 2004-05-03 Michael Snyder <msnyder@redhat.com>
  7107. * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
  7108. (heuristic_proc_start): Whitespace cleanup.
  7109. 2004-05-04 Mark Kettenis <kettenis@gnu.org>
  7110. * sun3-nat.c: Remove file.
  7111. * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
  7112. dependencies.
  7113. (ALLDEPFILES): Remove sun3-nat.c.
  7114. (sun3-nat.o): Remove dependencies.
  7115. * i386-interix-nat.c, i386-interix-tdep.c,
  7116. config/i386/nm-interix.h, config/i386/interix.mh,
  7117. config/i386/interix.mt: Remove files.
  7118. * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
  7119. dependencies.
  7120. 2004-05-03 Mark Kettenis <kettenis@gnu.org>
  7121. * m68k-tdep.h (struct gdbarch_tdep): Add member
  7122. struct_value_regnum.
  7123. (m68k_svr4_init_abi): New prototype.
  7124. * m68k-tdep.c: Include "floatformat.h". Add comment about all the
  7125. different calling conventions.
  7126. (m68k_extract_return_value): Remove code dealing with single-field
  7127. structs.
  7128. (m68k_store_return_value): Remove code dealing with single-field
  7129. structs. Correctly store return values of 5, 6, 7 or 8 bytes.
  7130. (m68k_extract_struct_value_address): Remove function.
  7131. (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
  7132. (m68k_reg_struct_return_p, m68k_return_value)
  7133. (m68k_svr4_return_value): New functions.
  7134. (m68k_use_struct_convention): Remove function.
  7135. (m68k_push_dummy_call): Use new struct_value_regnum member of
  7136. `struct gdbarch_tdep' instead of hardcoded register number to
  7137. store STRUCT_ADDR.
  7138. (m68k_svr4_init_abi): New function.
  7139. (m68k_gdbarch_init): Don't set extract_return_value,
  7140. store_return_values, deprecated_extract_struct_value_address and
  7141. use_struct_convention. Set return_value instead. Initialize new
  7142. struct_value_regnum member of `struct gdbarch_tdep'.
  7143. * m68klinux-tdep.c: Update copyright year.
  7144. (m68k_linux_extract_return_value, m68k_linux_store_return_value)
  7145. (m68k_linux_extract_struct_value_address): Remove function.
  7146. (m68k_linux_init_abi): Don't set extract_return_value,
  7147. store_return_values, deprecated_extract_struct_value_address and
  7148. use_struct_convention. Call m68k_svr4_init_abi but override the
  7149. new struct_value_regnum member of `struct gdbarch_tdep'.
  7150. * Makefile.in (m68k-tdep.o): Update dependencies.
  7151. 2004-05-03 J. Brobecker <brobecker@gnat.com>
  7152. * dwarf2read.c (line_header): Add new included_p field in
  7153. field file_names.
  7154. (partial_die_info): New field has_stmt_list. New field line_offset.
  7155. (dwarf2_create_include_psymtab): New function.
  7156. (dwarf2_build_include_psymtabs): New function.
  7157. (add_file_name): Add forward declaration. Initialize new field.
  7158. (dwarf_decode_lines): Add new parameter. Enhance this procedure
  7159. to be able to determine the list of files included by the
  7160. given unit, and build their associated psymtabs.
  7161. (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
  7162. files as well.
  7163. (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
  7164. (read_file_scope): Update call to dwarf_decode_lines.
  7165. (read_partial_die): Handle DW_AT_stmt_list attributes.
  7166. 2004-05-02 Michael Chastain <mec.gnu@mindspring.com>
  7167. Unfix PR gdb/1626.
  7168. * configure.in: Revert special case for osf5.*.
  7169. * configure: Regenerate.
  7170. 2004-05-02 Jim Blandy <jimb@redhat.com>
  7171. Move the symbol-file-from-memory functions into their own file.
  7172. * symfile-mem.c, symfile-mem.h: New files.
  7173. * symfile.c (symbol_file_add_from_bfd): New function.
  7174. (symbol_file_add): Call symbol_file_add_from_bfd.
  7175. (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
  7176. Moved to symfile-mem.c.
  7177. (_initialize_symfile): Move definition of
  7178. add-symbol-file-from-memory command to symfile-mem.c.
  7179. * symfile.h (symbol_file_add_from_bfd): New declaration.
  7180. * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
  7181. * config/powerpc/linux.mt (TDEPFILES): Same.
  7182. * Makefile.in (SFILES): Add symfile-mem.c.
  7183. (symfile_mem_h): New variable.
  7184. (HFILES_NO_SRCDIR): Add symfile-mem.h.
  7185. (symfile-mem.o): New rule.
  7186. 2004-05-01 Andrew Cagney <cagney@redhat.com>
  7187. * breakpoint.c (insert_bp_location): Use get_frame_id, and
  7188. frame_find_by_id instead of frame_relative_level.
  7189. (do_enable_breakpoint): Ditto.
  7190. * thread.c: Update copyright.
  7191. (info_threads_command): Ditto, simplify.
  7192. * frame.c (deprecated_generic_get_saved_register): Delete
  7193. function, moved to "xstormy16-tdep.c".
  7194. * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
  7195. deprecated_generic_get_saved_register from "frame.c".
  7196. (xstormy16_frame_saved_register): Call
  7197. xstormy16_get_saved_register.
  7198. * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
  7199. static.
  7200. * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
  7201. * frame.h (deprecated_generic_get_saved_register): Delete.
  7202. 2004-05-01 Michael Chastain <mec.gnu@mindspring.com>
  7203. * dwarfread.c: Update documentation on the state of dwarf-1.
  7204. 2004-05-01 Andrew Cagney <cagney@redhat.com>
  7205. * stack.c (select_frame_command): Delete call to
  7206. frame_relative_level.
  7207. (print_frame, set_backtrace_limit_command, backtrace_limit_info):
  7208. Delete #if0 code.
  7209. (frame_info): Do not print FRAMELESS.
  7210. (print_block_frame_labels): Replace DEPRECATED_STREQ.
  7211. (catch_info): Delete #if0 code.
  7212. * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
  7213. * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
  7214. of frame_relative_level.
  7215. * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
  7216. to SENTINEL_FRAME.
  7217. * frame.h (enum frame_type): Add SENTINEL_FRAME.
  7218. * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
  7219. frame_relative_level.
  7220. * frame.h (deprecated_set_frame_type): Delete declaration.
  7221. * frame.c (deprecated_set_frame_type): Delete function, update
  7222. comments.
  7223. * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
  7224. * gdbarch.h, gdbarch.c: Re-generate.
  7225. * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
  7226. (shnbsd_pc_in_sigtramp): Delete.
  7227. * i386-interix-tdep.c (i386_interix_init_abi): Do not set
  7228. pc_in_sigtramp.
  7229. * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
  7230. pc_in_sigtramp.
  7231. * frame.h: Update comments.
  7232. * ppc-linux-tdep.c: Update comments.
  7233. * breakpoint.c (bpstat_what): Update comments.
  7234. * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
  7235. m68klinux-tdep.o's dependencies, were previously added to
  7236. m68klinux-nat.o.
  7237. * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
  7238. * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
  7239. * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
  7240. * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
  7241. * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
  7242. * Makefile.in (m68klinux-nat.o): Update dependencies.
  7243. * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
  7244. (m68k_linux_sigtramp_frame_cache)
  7245. (m68k_linux_sigtramp_frame_this_id)
  7246. (m68k_linux_sigtramp_frame_prev_register)
  7247. (m68k_linux_sigtramp_frame_unwind)
  7248. (m68k_linux_sigtramp_frame_sniffer)
  7249. (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
  7250. m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
  7251. names, use trad-frame.h.
  7252. * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
  7253. (struct m68k_sigtramp_info): Delete.
  7254. * m68k-tdep.c (m68k_sigtramp_frame_cache)
  7255. (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
  7256. (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
  7257. (m68k_gdbarch_init): Delete all the sigtramp code, moved to
  7258. "m68klinux-tdep.c".
  7259. * infrun.c (check_sigtramp2): Delete check for
  7260. DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
  7261. 2004-05-01 Mark Kettenis <kettenis@gnu.org>
  7262. * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
  7263. 2004-05-01 Andrew Cagney <cagney@redhat.com>
  7264. * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
  7265. (frv_linux_sigtramp_frame_cache)
  7266. (frv_linux_sigtramp_frame_this_id)
  7267. (frv_linux_sigtramp_frame_prev_register)
  7268. (frv_linux_sigtramp_frame_unwind)
  7269. (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
  7270. include "linux" in function and variable names, directly call
  7271. frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
  7272. the latest trad-frame code.
  7273. (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
  7274. not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
  7275. * Makefile.in (frv-linux-tdep.o): Update dependencies.
  7276. * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
  7277. * frv-tdep.c (frv_sigtramp_frame_cache)
  7278. (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
  7279. (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
  7280. frv-linux-tdep.c.
  7281. (frv_gdbarch_init): Do not append a sigtramp sniffer.
  7282. (struct gdbarch_tdep): Delete sigcontext_reg_addr.
  7283. (frv_set_sigcontext_reg_addr): Delete function.
  7284. * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
  7285. (DEPRECATED_SIGTRAMP_END): Delete.
  7286. * gdbarch.h, gdbarch.c: Re-generate.
  7287. * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
  7288. * config/vax/tm-vaxbsd.h: Update copyright.
  7289. (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
  7290. (DEPRECATED_IN_SIGTRAMP): Define.
  7291. * config/m68k/tm-nbsd.h: Update copyright.
  7292. (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
  7293. (DEPRECATED_IN_SIGTRAMP): Define.
  7294. 2004-05-01 Mark Kettenis <kettenis@gnu.org>
  7295. * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
  7296. encondings. Fixes PR gdb/1628.
  7297. * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
  7298. DW_CFA_restore state without a matching DW_CFA_remember_state
  7299. instead of aborting. Fixes PR backtrace/1589.
  7300. 2004-04-30 Joel Brobecker <brobecker@gnat.com>
  7301. * MAINTAINERS: Add self as AIX maintainer.
  7302. Update my e-mail address in write-after-approval section.
  7303. 2004-04-30 Andrew Cagney <cagney@redhat.com>
  7304. * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
  7305. (legacy_get_prev_frame): Ditto.
  7306. * mips-tdep.c (mips_pc_in_sigtramp): Delete.
  7307. (mips_gdbarch_init): Do not set pc_in_sigtramp.
  7308. * mipsread.c (sigtramp_address): Delete extern variable.
  7309. (mipscoff_new_init): Delete reference.
  7310. * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
  7311. (fixup_sigtramp): Delete function.
  7312. * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
  7313. (fixup_sigtramp): Delete declarations.
  7314. * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
  7315. deprecated_pc_in_sigtramp.
  7316. (ppcnbsd_pc_in_sigtramp): Delete function.
  7317. 2004-05-01 Mark Kettenis <kettenis@gnu.org>
  7318. * config/m68k/nm-nbsd.h: Tweak comments.
  7319. * config/m68k/nm-nbsdaout.h: Likewise.
  7320. 2004-04-30 Andrew Cagney <cagney@redhat.com>
  7321. * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
  7322. legacy_pc_in_sigtramp.
  7323. * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
  7324. 2004-05-01 Mark Kettenis <kettenis@gnu.org>
  7325. Add OpenBSD/m68k support.
  7326. * NEWS (New native configurations): Mention OpenBSD/m68k.
  7327. * m68kbsd-tdep.c: New file.
  7328. * m68kbsd-nat.c: New file.
  7329. * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
  7330. (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
  7331. * configure.host: Add m68k-*-openbsd.
  7332. * configure.tgt: Add m68k-*-openbsd.
  7333. * config/m68k/tm-obsd.h: New file.
  7334. * config/m68k/obsd.mt: New file.
  7335. * config/m68k/obsd.mh: New file.
  7336. * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
  7337. m68kbsd-tdep.c.
  7338. 2004-04-30 Andrew Cagney <cagney@redhat.com>
  7339. * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
  7340. (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
  7341. 2004-04-30 Mark Kettenis <kettenis@gnu.org>
  7342. * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
  7343. * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
  7344. 2004-04-30 Brian Ford <ford@vss.fsi.com>
  7345. Revert 2004-04-16 change.
  7346. * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
  7347. (i386_coff_init_abi): Remove.
  7348. * i386-tdep.h (i386_coff_init_abi): Remove.
  7349. * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
  7350. 2004-04-30 Andrew Cagney <cagney@redhat.com>
  7351. * blockframe.c (find_pc_partial_function): Delete use of
  7352. DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
  7353. DEPRECATED_SIGTRAMP_END.
  7354. * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
  7355. * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
  7356. * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
  7357. * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
  7358. * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
  7359. * defs.h (deprecated_inside_entry_file): Delete declaration.
  7360. * blockframe.c (deprecated_inside_entry_file): Delete function.
  7361. (legacy_frame_chain_valid): Delete call.
  7362. * sh64-tdep.c (sh64_frame_chain): Delete call.
  7363. * objfiles.h: Update comments.
  7364. * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
  7365. call.
  7366. * frame.c (get_prev_frame): Delete call, update comments.
  7367. 2004-04-30 Brian Ford <ford@vss.fsi.com>
  7368. * MAINTAINERS (Write After Approval): Add myself.
  7369. 2004-04-30 Andrew Cagney <cagney@redhat.com>
  7370. * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
  7371. * gdbarch.h, gdbarch.c: Re-generate.
  7372. * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
  7373. code.
  7374. 2004-04-30 Andrew Cagney <cagney@redhat.com>
  7375. * gdb-events.sh (selected_thread_changed)
  7376. (selected_frame_level_changed, target_changed): Delete.
  7377. * gdb-events.h, gdb-events.c: Re-generate.
  7378. * valops.c (value_assign): Update.
  7379. * stack.c (select_frame_command, up_silently_base)
  7380. (down_silently_base): Update.
  7381. 2004-04-29 Andrew Cagney <cagney@redhat.com>
  7382. * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
  7383. registers correctly.
  7384. (print_gp_register_row, mips32_heuristic_proc_desc)
  7385. (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
  7386. (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
  7387. references to mips_isa_regsize.
  7388. 2004-04-29 Andrew Cagney <cagney@redhat.com>
  7389. * mips-tdep.c (struct gdbarch_tdep): Delete
  7390. mips_fp_register_double.
  7391. (FP_REGISTER_DOUBLE): Delete macro, replace with test for
  7392. mips_abi_regsize.
  7393. (mips_gdbarch_init): Do not set mips_fp_register_double.
  7394. (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
  7395. 2004-04-29 Joel Brobecker <brobecker@gnat.com>
  7396. Committed by Andrew Cagney.
  7397. * infrun.c (handle_inferior_event): Rely on frame IDs to detect
  7398. function calls.
  7399. 2004-04-29 Andrew Cagney <cagney@redhat.com>
  7400. * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
  7401. gdbarch, use mips_abi, update callers.
  7402. (mips_stack_argsize): Replace tdep parameter with gdbarch, use
  7403. mips_abi_regsize, update callers.
  7404. (struct gdbarch_tdep): Delete mips_default_stack_argsize and
  7405. mips_default_abi_regsize.
  7406. (mips_gdbarch_init): Do not set mips_default_stack_argsize and
  7407. mips_default_abi_regsize.
  7408. 2004-04-29 Andrew Cagney <cagney@redhat.com>
  7409. * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
  7410. (mips_abi_regsize_string): Rename mips_saved_regsize_string.
  7411. (struct gdbarch_tdep): Rename mips_default_saved_regsize to
  7412. mips_default_abi_regsize.
  7413. (mips_isa_regsize): Rename mips_regisze.
  7414. * mipsnbsd-tdep.c: Update.
  7415. * mips-linux-tdep.c: Update.
  7416. * irix5-nat.c: Update.
  7417. * mips-tdep.h (mips_isa_regsize): Update.
  7418. * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
  7419. Delete all disabled code.
  7420. * gdb-events.h, gdb-events.c: Re-generate.
  7421. 2004-04-19 Jerome Guitton <guitton@gnat.com>
  7422. Mark Kettenis <kettenis@gnu.org>
  7423. * i386-tdep.c (i386_skip_prologue): follow the last jump only if
  7424. the function begins with a branch instruction.
  7425. 2004-04-29 Mark Kettenis <kettenis@gnu.org>
  7426. * i386-tdep.c: Fix spelling mistakes.
  7427. 2004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
  7428. Andrew Cagney <cagney@redhat.com>
  7429. * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
  7430. <sys/proc.h>.
  7431. * acconfig.h: Provide default _KMEMUSER value.
  7432. * config.in, configure: Re-generate.
  7433. * NEWS: Mention fix.
  7434. 2004-04-24 Randolph Chung <tausq@debian.org>
  7435. * configure.host (hppa*-*-linux*): New target.
  7436. * configure.tgt (hppa*-*-linux*): Likewise.
  7437. * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
  7438. gdbarch_init_osabi() call earlier so that osabi-specific frame
  7439. unwinders can be registered first.
  7440. * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
  7441. hppa-linux-nat.c.
  7442. * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
  7443. (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
  7444. * config/pa/linux.mh: New file.
  7445. * config/pa/linux.mt: New file.
  7446. * config/pa/nm-linux.h: New file.
  7447. * config/pa/xm-linux.h: New file.
  7448. * hppa-linux-nat.c: New file.
  7449. * hppa-linux-tdep.c: New file.
  7450. 2004-04-28 Randolph Chung <tausq@debian.org>
  7451. * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
  7452. return values.
  7453. (hppa32_push_dummy_call): Fix small struct and floating point argument
  7454. passing, and make sure the stack frame is properly aligned.
  7455. 2004-04-28 Andrew Cagney <cagney@redhat.com>
  7456. * stack.c (print_stack_frame): Fix description.
  7457. * NEWS: Mention gdb/gdbserver/configure execute permission
  7458. changed. PR server/519.
  7459. 2004-04-28 Andrew Cagney <cagney@redhat.com>
  7460. * stack.c (print_stack_frame_stub): Delete declaration.
  7461. (struct print_stack_frame_args, print_stack_frame)
  7462. (print_frame_info, print_frame): Replace "source" with print what.
  7463. Replace "print" with "print_level". Replace "args" with
  7464. "print_args".
  7465. * frame.h (show_and_print_stack_frame, print_stack_frame)
  7466. (print_frame_info): Update declarations.
  7467. * stack.c (select_and_print_frame, frame_command)
  7468. (current_frame_command, up_command, down_command): Update calls -
  7469. use get_selected_frame, pass "enum print_what" for source, do not
  7470. call frame_relative_level.
  7471. * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
  7472. * remote-rdp.c (remote_rdp_open): Ditto.
  7473. * remote-mips.c (common_open): Ditto.
  7474. * remote-e7000.c (e7000_start_remote): Ditto.
  7475. * ocd.c (ocd_start_remote): Ditto.
  7476. * mi/mi-main.c (mi_cmd_exec_return): Ditto.
  7477. * infrun.c (normal_stop): Ditto.
  7478. * inflow.c (kill_command): Ditto.
  7479. * infcmd.c (finish_command): Ditto.
  7480. * corelow.c (core_open): Ditto.
  7481. * tracepoint.c (finish_tfind_command): Ditto.
  7482. * thread.c (info_threads_command, info_threads_command)
  7483. (restore_current_thread, do_captured_thread_select): Ditto.
  7484. * ada-tasks.c (task_command): Ditto.
  7485. 2004-04-26 Orjan Friberg <orjanf@axis.com>
  7486. * frame.c: Include "observer.h".
  7487. (frame_observer_target_changed): New function.
  7488. (_initialize_frame): Attach target_changed observer.
  7489. * regcache.c: Include "observer.h".
  7490. (regcache_observer_target_changed): New function.
  7491. (_initialize_regcache): Attach target_changed observer.
  7492. * valops.c: Include "observer.h".
  7493. (value_assign): Notify target_changed event when modifying register.
  7494. * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
  7495. 2004-04-26 Orjan Friberg <orjanf@axis.com>
  7496. From Paul Koning <pkoning@equallogic.com>:
  7497. * breakpoint.c (free_valchain): New function.
  7498. (insert_bp_location, delete_breakpoint): Use free_valchain.
  7499. (remove_breakpoint): Do not remove the valchain.
  7500. (bpstat_stop_status): If not stopped by watchpoint, skip
  7501. watchpoints when generating stop status list.
  7502. * infrun.c (handle_inferior_event): Make
  7503. stepped_after_stopped_by_watchpoint a global variable.
  7504. * remote.c (remote_stopped_data_address): Return watch data
  7505. address rather than zero if stepped_after_stopped_by_watchpoint is
  7506. set.
  7507. 2004-04-25 Michael Chastain <mec.gnu@mindspring.com>
  7508. Fix PR gdb/1626.
  7509. * configure.in: Check for curses after termcap.
  7510. On osf5.*, do not check for ncurses.
  7511. * configure: Regenerate.
  7512. 2004-04-25 Mark Kettenis <kettenis@gnu.org>
  7513. * ppcobsd-nat.c: Include "ppc-tdep.h".
  7514. * Makefile.in (ppcobsd-nat.o): Update dependencies.
  7515. * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
  7516. Fixes PR tdep/1623 and PR tdep/1624.
  7517. 2004-04-24 Michael Chastain <mec.gnu@mindspring.com>
  7518. * xmodem.h, xmodem.c: Remove files.
  7519. * Makefile.in: Remove references to xmodem.h, xmodem.c.
  7520. 2004-04-23 Randolph Chung <tausq@debian.org>
  7521. * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
  7522. (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
  7523. (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
  7524. for handling stackless frames.
  7525. (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
  7526. 2004-04-23 Randolph Chung <tausq@debian.org>
  7527. * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
  7528. starts at a pc before the frame is created.
  7529. 2004-04-23 Joel Brobecker <brobecker@gnat.com>
  7530. * ChangeLog-2002: Fix year in one of the ChangeLog entries.
  7531. 2004-04-23 Jerome Guitton <guitton@gnat.com>
  7532. * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
  7533. use convert_typed_floating to get the appropriate format.
  7534. 2004-04-22 Randolph Chung <tausq@debian.org>
  7535. * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
  7536. (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
  7537. (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
  7538. (hppa_sign_extend): Add prototype.
  7539. * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
  7540. (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
  7541. (sign_extend): Rename with hppa_ prefix and make non-static. Other
  7542. hppa targets will also use these functions.
  7543. (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
  7544. (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
  7545. (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
  7546. (hppa_gdbarch_init): Remove gdbarch setting of
  7547. skip_trampoline_code, in_solib_call_trampoline and
  7548. in_solib_return_trampoline.
  7549. * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
  7550. (hppa64_hpux_in_solib_call_trampoline): New functions, split from
  7551. hppa_in_solib_call_trampoline.
  7552. (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
  7553. Moved from hppa-tdep.c.
  7554. (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
  7555. in_solib_call_trampoline and in_solib_return_trampoline.
  7556. 2004-04-22 Randolph Chung <tausq@debian.org>
  7557. * hppa-tdep.c (hppa_debug): New variable.
  7558. (find_unwind_entry, hppa_frame_cache): Add debug output.
  7559. (_initialize_hppa_tdep): Add command to set debug flag.
  7560. 2004-04-22 Andrew Cagney <cagney@redhat.com>
  7561. * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
  7562. "trad-frame.h".
  7563. (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
  7564. signal trampoline unwinder.
  7565. (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
  7566. 2004-04-22 Mark Kettenis <kettenis@gnu.org>
  7567. Add OpenBSD/powerpc support.
  7568. * NEWS (New native configurations): Mention OpenBSD/powerpc.
  7569. * ppc-tdep.h (struct ppc_reg_offsets): New structure.
  7570. (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
  7571. (ppc_collect_fpregset): New prototypes.
  7572. * ppcobsd-nat.c: New file.
  7573. * ppcobsd-tdep.c: New file.
  7574. * ppcobsd-tdep.h: New file.
  7575. * rs6000-tdep.c: Include "regset.h".
  7576. (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
  7577. (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
  7578. New functions.
  7579. * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
  7580. (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
  7581. (rs6000-tdep.o): Update dependencies.
  7582. * configure.host: Add powerpc-*-openbsd.
  7583. * configure.tgt: Add powerpc-*-openbsd.
  7584. * config/powerpc/obsd.mh: New file.
  7585. * config/powerpc/nm-obsd.h: New file.
  7586. * config/powerpc/obsd.mt: New file.
  7587. 2004-04-22 Andrew Cagney <cagney@redhat.com>
  7588. * frame.h (show_frame_info): Delete declaration.
  7589. * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
  7590. * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
  7591. * m32r-tdep.c (m32r_frame_this_id): Ditto.
  7592. * frv-tdep.c (frv_frame_this_id): Ditto.
  7593. * avr-tdep.c (avr_frame_this_id): Ditto.
  7594. 2004-04-22 Elena Zannoni <ezannoni@redhat.com>
  7595. * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
  7596. 2004-04-22 Jim Blandy <jimb@redhat.com>
  7597. * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
  7598. register number zero.
  7599. 2004-04-21 Michael Snyder <msnyder@redhat.com>
  7600. * mips-tdep.c (heuristic_proc_start):
  7601. Warning() already prefixes "Warning: ".
  7602. 2004-04-21 Andrew Cagney <cagney@redhat.com>
  7603. * annotate.h (deprecated_annotate_starting_hook)
  7604. (deprecated_annotate_stopped_hook)
  7605. (deprecated_annotate_exited_hook)
  7606. (deprecated_annotate_signal_hook)
  7607. (deprecated_annotate_signalled_hook): Deprecate.
  7608. * tracepoint.h (deprecated_create_tracepoint_hook)
  7609. (deprecated_delete_tracepoint_hook)
  7610. (deprecated_modify_tracepoint_hook)
  7611. (deprecated_trace_find_hook)
  7612. (deprecated_trace_start_stop_hook): Deprecate.
  7613. * target.h (deprecated_target_new_objfile_hook): Deprecate.
  7614. * remote.h (deprecated_target_resume_hook)
  7615. (deprecated_target_wait_loop_hook): Deprecate.
  7616. * gdbcore.h (deprecated_exec_file_display_hook)
  7617. (deprecated_file_changed_hook): Deprecate.
  7618. * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
  7619. * defs.h (deprecated_modify_breakpoint_hook)
  7620. (deprecated_command_loop_hook, deprecated_show_load_progress)
  7621. (deprecated_print_frame_info_listing_hook)
  7622. (deprecated_query_hook, deprecated_warning_hook)
  7623. (deprecated_flush_hook, deprecated_create_breakpoint_hook)
  7624. (deprecated_delete_breakpoint_hook)
  7625. (deprecated_interactive_hook, deprecated_registers_changed_hook)
  7626. (deprecated_readline_begin_hook, deprecated_readline_hook)
  7627. (deprecated_readline_end_hook, deprecated_register_changed_hook)
  7628. (deprecated_memory_changed_hook, deprecated_init_ui_hook)
  7629. (deprecated_context_hook, deprecated_target_wait_hook)
  7630. (deprecated_attach_hook, deprecated_detach_hook)
  7631. (deprecated_call_command_hook, deprecated_set_hook)
  7632. (deprecated_error_hook, deprecated_error_begin_hook)
  7633. (deprecated_ui_load_progress_hook): Deprecate.
  7634. * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
  7635. * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
  7636. * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
  7637. * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
  7638. * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
  7639. * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
  7640. * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
  7641. * annotate.c, aix-thread.c: Update.
  7642. 2004-04-21 Andrew Cagney <cagney@redhat.com>
  7643. * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
  7644. * vaxnbsd-tdep.c: Include "gdb_string.h".
  7645. * symfile.c (symbol_file_add_from_memory): #if 0 function.
  7646. (add_symbol_file_from_memory_command): #if 0 function body, call
  7647. error instead.
  7648. 2004-04-21 Andrew Cagney <cagney@redhat.com>
  7649. * gdbcore.h: Update copyright.
  7650. (deprecated_add_core_fns): Rename add_core_fns.
  7651. * win32-nat.c (_initialize_core_win32): Update.
  7652. * sun3-nat.c (_initialize_core_sun3): Update.
  7653. * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
  7654. * rs6000-nat.c (_initialize_core_rs6000): Update.
  7655. * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
  7656. * nto-tdep.c (_initialize_nto_tdep): Update.
  7657. * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
  7658. * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
  7659. * mips-nat.c (_initialize_core_mips): Update.
  7660. * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
  7661. * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
  7662. * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
  7663. * lynx-nat.c (_initialize_core_lynx): Update.
  7664. * irix5-nat.c (_initialize_core_irix5): Update.
  7665. * i386-interix-nat.c (_initialize_core_interix): Update.
  7666. * cris-tdep.c (_initialize_cris_tdep): Update.
  7667. * corelow.c (deprecated_add_core_fns): Update.
  7668. * core-regset.c (_initialize_core_regset): Update.
  7669. * core-aout.c (_initialize_core_aout): Update.
  7670. * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
  7671. * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
  7672. * alpha-nat.c (_initialize_core_alpha): Update.
  7673. 2004-04-21 Jim Blandy <jimb@redhat.com>
  7674. * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
  7675. 2004-04-19 Daniel Jacobowitz <drow@mvista.com>
  7676. * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
  7677. Delete.
  7678. (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
  7679. (read_attribute_value): Update calls to dwarf_alloc_block.
  7680. (dwarf2_build_psymtabs_hard): Don't initialize or clean up
  7681. dwarf2_tmp_obstack.
  7682. (psymtab_to_symtab_1): Likewise. Clean up using
  7683. free_stack_comp_unit.
  7684. (add_to_cu_func_list): Use the comp_unit_obstack.
  7685. 2004-04-19 Joel Brobecker <brobecker@gnat.com>
  7686. * dwarf2read.c (dwarf2_flag_true_p): New function.
  7687. (die_is_declaration): Use the function above. Add some comments.
  7688. 2004-04-19 Mark Kettenis <kettenis@gnu.org>
  7689. * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
  7690. architecture when registering sparcnbsd_core_osabi_sniffer.
  7691. Adjust comment.
  7692. 2004-04-18 Mark Kettenis <kettenis@gnu.org>
  7693. * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
  7694. return value.
  7695. Based on a patch from Brian Ford <ford@vss.fsi.com>:
  7696. * i386-tdep.c: Correct register numbering scheme comments
  7697. throughout.
  7698. (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
  7699. (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
  7700. (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
  7701. (i386_gdb_arch_init): Likewise.
  7702. * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
  7703. and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
  7704. ppcnbsd-tdep.o.
  7705. * m68k-tdep.h: Tweak comments.
  7706. * m68k-tdep.c: Tweak comment.
  7707. 2004-04-17 Randolph Chung <tausq@debian.org>
  7708. * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
  7709. * hppa-hpux-tdep.c (hppa-tdep.h): Include.
  7710. (hppa_hpux_som_init_abi): Set is_elf to 0.
  7711. (hppa_hpux_elf_init_abi): Set is_elf to 1.
  7712. * hppa-tdep.c (low_text_segment_address): Remove global.
  7713. (record_text_segment_lowaddr): Pass in low address as parameter. Use
  7714. section offset to calculate segment address.
  7715. (internalize_unwinds): Define low_text_segment_address as local and
  7716. pass to record_text_segment_lowaddr for ELF targets.
  7717. (hppa_gdbarch_init): Zero fill tdep structure.
  7718. (hppa_dump_tdep): Print tdep structure.
  7719. * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
  7720. 2004-04-17 Randolph Chung <tausq@debian.org>
  7721. * hppa-tdep.c (hppa_pseudo_register_read): Define.
  7722. (hppa_gdbarch_init): Set pseudo_register_read.
  7723. * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
  7724. * regcache.c (supply_register): Remove check for
  7725. DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
  7726. 2004-04-17 Randolph Chung <tausq@debian.org>
  7727. * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
  7728. * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
  7729. (hpread_adjust_stack_address): Move to hpread.c.
  7730. * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
  7731. obj_private_struct): Move from tm-hppa.h.
  7732. * hpread.c (hppa-tdep.h): Include.
  7733. (hpread_adjust_stack_address): Move from hppa-tdep.c.
  7734. (hpread_read_function_type, hpread_read_doc_function_type)
  7735. (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
  7736. directly.
  7737. * pa64solib.c (hppa-tdep.h): Include.
  7738. * somsolib.c (hppa-tdep.h): Include.
  7739. * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
  7740. inferior_status): Remove unused forward declarations.
  7741. (INSTRUCTION_SIZE): Move to hppa-tdep.c.
  7742. (unwind_table_entry, unwind_stub_types, obj_unwind_info,
  7743. obj_private_struct): Move to hppa-tdep.h.
  7744. (HPREAD_ADJUST_STACK_ADDRESS): Remove.
  7745. 2004-04-17 Randolph Chung <tausq@debian.org>
  7746. * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
  7747. (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
  7748. (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
  7749. (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
  7750. Remove forward declaration and make static.
  7751. (hppa_reg_struct_has_addr): Remove.
  7752. 2004-04-16 Joel Brobecker <brobecker@gnat.com>
  7753. * observer.sh: Move comments in sed command to first column.
  7754. 2004-04-16 Jason Molenda (jmolenda@apple.com)
  7755. * frame.c: Minor typeo corrections in comments.
  7756. 2004-04-16 Joel Brobecker <brobecker@gnat.com>
  7757. * observer.c (observer_test_first_notification_function): Update
  7758. function profile.
  7759. (observer_test_second_notification_function): Likewise.
  7760. (observer_test_third_notification_function): Likewise.
  7761. 2004-04-16 Mark Kettenis <kettenis@gnu.org>
  7762. From Brian Ford <ford@vss.fsi.com>:
  7763. * i386-tdep.c (i386_coff_init_abi): New function.
  7764. * i386-tdep.h (i386_coff_init_abi): New prototype.
  7765. * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
  7766. register number translation functions for DWARF and DWARF 2.
  7767. 2004-04-16 Joel Brobecker <brobecker@gnat.com>
  7768. * dwarf2read.c: Back out my previous change, it was incorrect.
  7769. 2004-04-16 Daniel Jacobowitz <drow@mvista.com>
  7770. * dwarf2read.c: Include "hashtab.h".
  7771. (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
  7772. has_namespace_info.
  7773. (struct partial_die_info): Add comments. Use bitfields to reduce
  7774. memory footprint. Add scope, scope_set, has_specification,
  7775. spec_offset, die_parent, die_child, and die_sibling.
  7776. (peek_die_abbrev): Add prototype.
  7777. (partial_read_comp_unit_head): New function, broken out from
  7778. dwarf2_build_psymtabs_hard.
  7779. (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
  7780. Use partial_read_comp_unit_head. Initialize the CU and
  7781. comp_unit_obstack. Update calls to read_partial_die and
  7782. scan_partial_symbols. Use free_stack_comp_unit and
  7783. load_partial_dies.
  7784. (scan_partial_symbols): Change PDI to a pointer. Use the child and
  7785. sibling pointers to walk partial DIEs. Call fixup_partial_die.
  7786. Update calls to helper functions. Remove NAMESPACE argument.
  7787. Update comments.
  7788. (partial_die_parent_scope, partial_die_full_name): New functions.
  7789. (add_partial_symbol): Remove namespace argument. Update call to
  7790. pdi_needs_namespace. Use partial_die_full_name. Handle
  7791. DW_TAG_namespace. Check has_namespace_info flag.
  7792. (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
  7793. tag. Handle namespaces.
  7794. (add_partial_namespace, add_partial_enumeration): Simplify.
  7795. (guess_structure_name): New function, derived from
  7796. add_partial_structure.
  7797. (add_partial_structure): Remove.
  7798. (determine_class_name): Update comment.
  7799. (dwarf2_read_abbrevs): Set has_namespace_info flag.
  7800. (is_type_tag_for_partial, load_partial_dies): New functions.
  7801. (read_partial_die): Pass abbrev and abbrev_len as arguments.
  7802. Record specifications instead of following them immediately.
  7803. (find_partial_die_in_comp_unit, find_partial_die)
  7804. (fixup_partial_die, free_stack_comp_unit)
  7805. (hashtab_obstack_allocate, dummy_obstack_deallocate)
  7806. (partial_die_hash, partial_die_eq): New functions.
  7807. * Makefile.in (hashtab_h): Define.
  7808. (dwarf2read.o): Update dependencies.
  7809. (observer_inc, observer_h): Move to the correct section.
  7810. 2004-04-15 Joel Brobecker <brobecker@gnat.com>
  7811. * dwarf2read.c (dwarf2_attribute_true_p): New function.
  7812. (die_is_declaration): Use the function above. Add comment.
  7813. 2004-04-15 Joel Brobecker <brobecker@gnat.com>
  7814. * dwarf2read.c (read_structure_scope): Identify stub types
  7815. using die_is_declaration() only.
  7816. 2004-04-15 Roland McGrath <roland@redhat.com>
  7817. * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
  7818. argument instead of NAME.
  7819. (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
  7820. in call to symbol_file_add_with_addrs_or_offsets.
  7821. (build_addr_info): New function, helper for ...
  7822. (symbol_file_add_from_memory): New function.
  7823. (add_symbol_file_from_memory_command): New function using that.
  7824. (_initialize_symfile): Register it for add-symbol-file-from-memory.
  7825. (pre_add_symbol_hook): Add const to argument type.
  7826. * symfile.h (symbol_file_add_from_memory): Declare it.
  7827. 2004-04-15 Mark Kettenis <kettenis@gnu.org>
  7828. * NEWS (New native configurations): Mention OpenBSD/vax.
  7829. * configure.host: Add vax-*-openbsd*.
  7830. * config/vax/obsd.mh: New file.
  7831. * config/vax/nm-obsd.h: New file.
  7832. * vax-tdep.c: Include "regset.h".
  7833. (vax_supply_gregset): New function.
  7834. (vax_gregset): New variable.
  7835. (vax_regset_from_core_section): New function.
  7836. (vax_gdbarch_init): Set regset_from_core_section.
  7837. * Makefile.in (vax-tdep.o): Update dependencies.
  7838. 2004-04-15 Andrew Cagney <cagney@redhat.com>
  7839. * observer.c (normal_stop_subject, observer_notify_normal_stop)
  7840. (observer_normal_stop_notification_stub)
  7841. (observer_attach_normal_stop, observer_detach_normal_stop):
  7842. Delete, replaced by #include "observer.inc".
  7843. * infrun.c (normal_stop): Pass "stop_bpstat" to
  7844. observer_notify_normal_stop.
  7845. * Makefile.in (observer_inc): Define.
  7846. (observer.o): Update dependencies.
  7847. (observer.h, observer.inc): New rules.
  7848. * observer.h: Delete file.
  7849. * observer.sh: New file.
  7850. 2004-04-15 Mark Kettenis <kettenis@gnu.org>
  7851. * vax-tdep.c (vax_frame_cache): Fix typo.
  7852. 2004-04-14 Mark Kettenis <kettenis@gnu.org>
  7853. * NEWS (New native configurations): Mention NetBSD/vax.
  7854. * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
  7855. * config/vax/nbsdelf.mh: New file.
  7856. * config/vax/nbsdaout.mh: New file.
  7857. * config/vax/nm-nbsd.h: New file.
  7858. * config/vax/nm-nbsdaout.h: New file.
  7859. * vaxnbsd-tdep.c: New file.
  7860. * Makefile.in (vaxnbsd-tdep.o): New dependency.
  7861. * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
  7862. * config/vax/nbsd.mt: New file.
  7863. * config/vax/tm-nbsd.h: New file.
  7864. * Makefile.in (vaxbsd-nat.o): New dependency.
  7865. * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
  7866. * vax-tdep.c (vax_store_arguments): Remove struct_return and
  7867. struct_addr arguments. Don't push return value address.
  7868. (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
  7869. arguments to vax_store_arguments. Store return value address in
  7870. R1.
  7871. (vax_store_struct_return, vax_extract_return_value)
  7872. (vax_store_return_value): Remove functions.
  7873. (vax_return_value): New function.
  7874. (vax_gdbarch_init): Set return value. Don't set
  7875. deprecated_store_struct_return, deprecated_extract_struct_return
  7876. and deprecated_store_return_value.
  7877. 2004-04-14 Andreas Schwab <schwab@suse.de>
  7878. * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
  7879. value buffer.
  7880. * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
  7881. 2004-04-14 Mark Kettenis <kettenis@gnu.org>
  7882. * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
  7883. (vax_unwind_dummy_id): New functions.
  7884. (vax_push_dummy_frame, vax_pop_frame): Remove functions.
  7885. (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
  7886. variables.
  7887. (vax_fix_call_dummy): Remove function.
  7888. (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
  7889. Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
  7890. call_dummy_location, deprecated_call_dummy_words,
  7891. deprecated_sizeof_call_dummy_words,
  7892. deprecated_call_dummy_breakpoint_offset,
  7893. deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
  7894. and deprecated_dummy_write_sp.
  7895. 2004-04-13 David Carlton <carlton@kealia.com>
  7896. * MAINTAINERS: Move myself to "paper trail" section.
  7897. 2004-04-12 Mark Kettenis <kettenis@gnu.org>
  7898. * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
  7899. "trad-frame.h".
  7900. (vax_frame_init_saved_regs): Remove function.
  7901. (vax_sigtramp_saved_pc): Remove function.
  7902. (vax_frame_saved_pc): Remove function.
  7903. (vax_frame_args_address): Remove function.
  7904. (vax_frame_num_args): Rewrite.
  7905. (vax_frame_chain): Remove function.
  7906. (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
  7907. VAX_FP_REGNUM.
  7908. (vax_pop_frame): Likewise.
  7909. (vax_saved_pc_after_call): Remove function.
  7910. (struct vax_frame_cache): New structure.
  7911. (vax_frame_cache): New function.
  7912. (vax_frame_this_id): New function.
  7913. (vax_frame_prev_register): New function.
  7914. (vax_frame_unwind): New variable.
  7915. (vax_frame_sniffer): New function.
  7916. (vax_frame_base_address): New function.
  7917. (vax_frame_args_address): New function.
  7918. (vax_frame_base): New variable.
  7919. (vax_unwind_pc): New function.
  7920. (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
  7921. deprecated_fp_regnum, deprecated_saved_pc_after_call,
  7922. deprecated_frame_chain, deprecated_frame_saved_pc,
  7923. deprecated_frame_args_address and
  7924. deprecated_frame_init_saved_regs.
  7925. * Makefile.in (vax-tdep.o): Update dependencies.
  7926. * vaxbsd-nat.c: New file.
  7927. * vax-tdep.h: Update copyright year. Adjust comments.
  7928. (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
  7929. VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
  7930. (vax_regnum): New enum. Replacing...
  7931. (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
  7932. (VAX_PS_REGNUM): ... these removed macros.
  7933. * vax-tdep.c (vax_register_name): Remove prototype.
  7934. (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
  7935. (vax_register_byte, vax_register_raw_size,
  7936. vax_register_virtual_size, vax_register_virtual_type): Remove
  7937. functions.
  7938. (vax_register_type): New function.
  7939. (vax_breakpoint_from_pc): Reorganize.
  7940. (vax_gdbarch_init): Set register_type. Don't set
  7941. deprecated_register_size, deprecated_register_bytes,
  7942. deprecated_register_byte, deprecated_register_raw_size,
  7943. deprecated_max_register_raw_size,
  7944. deprecated_register_virtual_size,
  7945. deprecated_max_register_virtual_size and
  7946. deprecated_register_virtual_type. Add comment on stack direction.
  7947. 2004-04-11 Mark Kettenis <kettenis@gnu.org>
  7948. * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
  7949. AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
  7950. AMD64_FS_REGNUM and AMD64_GS_REGNUM.
  7951. 2004-04-10 Randolph Chung <tausq@debian.org>
  7952. * MAINTAINERS (write after approval): Add myself.
  7953. 2004-04-07 Randolph Chung <tausq@debian.org>
  7954. * hppa-tdep.c (hppa_inner_than): Remove.
  7955. (is_pa_2): Remove unused static variable.
  7956. (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
  7957. 2004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
  7958. * language.h (language_defn): Add new la_post_parser field.
  7959. * parser-defs.h (null_post_parser): New declaration (default for
  7960. la_post_parser).
  7961. * parse.c (parse_exp_1): Move code to parse_exp_in_context and
  7962. insert call to that function.
  7963. (parse_exp_in_context): New function, including code formerly in
  7964. parse_exp_1. Calls language-dependent post-parser after
  7965. prefixification.
  7966. (parse_expression_in_context): New exported function.
  7967. (null_post_parser): New definition.
  7968. * expression.h (parse_expression_in_context): Add declaration.
  7969. * p-lang.c (pascal_language_defn): Add trivial post-parser.
  7970. * c-lang.c (c_language_defn): Ditto.
  7971. (cplus_language_defn): Ditto.
  7972. (asm_language_defn): Ditto.
  7973. (minimal_language_defn): Ditto.
  7974. * f-lang.c (f_language_defn): Ditto.
  7975. * jv-lang.c (java_language_defn): Ditto.
  7976. * language.c (unknown_language_defn): Ditto.
  7977. (auto_language_defn): Ditto.
  7978. (local_language_defn): Ditto.
  7979. * m2-lang.c (m2_language_defn): Ditto.
  7980. * scm-lang.c (scm_language_defn): Ditto.
  7981. * obj-lang.c (objc_language_defn): Ditto.
  7982. 2004-04-10 Mark Kettenis <kettenis@gnu.org>
  7983. * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
  7984. (amd64nbsd_mcontext_addr): New function.
  7985. (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
  7986. amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
  7987. with amd64nbsd_r_reg_offset, instead of building it on the fly.
  7988. * corelow.c (core_xfer_partial): Fix coding standards violation.
  7989. Add support for TARGET_OBJECT_WCOOKIE.
  7990. * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
  7991. deprecated_pc_in_sigtramp.
  7992. * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
  7993. * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
  7994. * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
  7995. * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
  7996. * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
  7997. * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
  7998. * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
  7999. * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
  8000. i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
  8001. Fix typo.
  8002. * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
  8003. I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
  8004. (amd64_collect_fxsave): Likewise.
  8005. * i386-sol2-tdep.c: Include "gdb_string.h".
  8006. (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
  8007. name.
  8008. * Makefile.in (i386-sol2-tdep.o): Update dependencies.
  8009. 2004-04-10 Mark Kettenis <kettenis@gnu.org>
  8010. * i386-sol2-tdep.c: Include "solib-svr4.h".
  8011. (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
  8012. * Makefile.in (i386-sol2-tdep.o): Update dependencies.
  8013. * config/i386/tm-i386sol2.h: Include :solib.h".
  8014. * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
  8015. solib-svr4.o and solib-legacy.o.
  8016. * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
  8017. solib-svr4.o.
  8018. 2004-04-09 Mark Kettenis <kettenis@gnu.org>
  8019. * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
  8020. whether a register is supplied by PTRACE_GETFPREGS.
  8021. (store_inferior_registers): Likewise.
  8022. * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
  8023. whether a register is supplied by PT_GETFPREGS.
  8024. (store_inferior_registers): Likewise.
  8025. * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
  8026. * config/i386/linux64.mt (TDEPFILES): Likewise.
  8027. * i386-linux-nat.c: Update copyrigth year. Tweak comment.
  8028. * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
  8029. sigtramp_p member of `struct gdbarch_tdep'. Also check whether
  8030. the program counter is in the range specified by `struct
  8031. gdbarch_tdep'.
  8032. * amd64-linux-tdep.c: Include "symtab.h".
  8033. (amd64_linux_pc_in_sigtramp): Remove function.
  8034. (amd64_linux_sigtramp_p): New function.
  8035. (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
  8036. deprecated_pc_in_sigtramp.
  8037. * amd64nbsd-tdep.c: Include "symtab.h".
  8038. (amd64nbsd_sigtramp_p): New function.
  8039. (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
  8040. deprecated_pc_in_sigtramp.
  8041. * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
  8042. few comments.
  8043. (amd64obsd_pc_in_sigtramp): Remove function.
  8044. (amd64obsd_sigtramp_p): New function.
  8045. (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
  8046. deprecated_pc_in_sigtramp.
  8047. * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
  8048. (i386bsd_pc_ins_sigtramp): Remove prototype.
  8049. (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
  8050. * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
  8051. sigtramp_p member of `struct gdbarch_tdep'. Also check whether
  8052. the program counter is in the range specified by `struct
  8053. gdbarch_tdep'.
  8054. (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
  8055. (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
  8056. (i386_go32_pc_in_sigtramp): Remove function.
  8057. (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
  8058. Initialize TDEP->sigtramp_p.
  8059. (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
  8060. (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
  8061. deprecated_pc_in_sigtramp.
  8062. * i386-linux-tdep.c: Adjust comments.
  8063. (i386_linux_pc_in_sigtramp): Remove function.
  8064. (i386_linux_sigtramp_p): New function.
  8065. (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
  8066. deprecated_pc_in_sigtramp.
  8067. * i386-nto-tdep.c: Update copyright year.
  8068. (i386nto_pc_in_sigtramp): Remove function.
  8069. (i386nto_sigtramp_p): New function.
  8070. (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
  8071. SP_REGNUM.
  8072. (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
  8073. deprecated_pc_in_sigtramp.
  8074. * i386-sol2-tdep.c: Update copyright year.
  8075. (i386_sol2_pc_in_sigtramp): Remove function.
  8076. (i386_sol2_sigtramp_p): New function.
  8077. (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
  8078. deprecated_pc_in_sigtramp.
  8079. * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
  8080. (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
  8081. (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
  8082. deprecated_sigtramp_start and deprecated_sigtramp_end.
  8083. * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
  8084. (i386nbsd_pc_in_sigtramp): Remove function.
  8085. (i386nbsd_sigtramp_p): New function.
  8086. (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
  8087. deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
  8088. TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
  8089. * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
  8090. (i386obsd_pc_in_sigtramp): Remove function.
  8091. (i386obsd_sigtramp_p): New function.
  8092. (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
  8093. functions.
  8094. (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
  8095. deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
  8096. TDEP->sigtramp_p.
  8097. * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
  8098. amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
  8099. dependencies.
  8100. * config/i386/i386aout.mt: Remove file.
  8101. * configure.tgt: Remove i[34567]86-*-go32*,
  8102. i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
  8103. and i[34567]86-*-isc*. Set gdb_target to i386 for
  8104. i[34567]86-*-netware* and i[34567]86-*-*.
  8105. * config/i386/i386.mt: New file.
  8106. * config/i386/embed.mt: Remove file.
  8107. * config/i386/go32.mt: Remove file.
  8108. * config/i386/i386nw.mt: Remove file.
  8109. * config/i386/i386v.mt: Remove file.
  8110. * config/i386/tm-go32.h: Remove file.
  8111. * tui/tui-hooks.c: Include "readline/readline.h" after
  8112. "gdb_curses.h" instead of before.
  8113. * tui/tui-io.c: Likewise.
  8114. * tui/tui.c: Fix typo in comment.
  8115. * sparc64-tdep.c (sparc_address_from_register): Remove function.
  8116. 2004-04-08 Andrew Cagney <cagney@redhat.com>
  8117. * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
  8118. (deprecated_exception_support_initialized): Declare.
  8119. * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
  8120. (initialize_hp_cxx_exception_support)
  8121. (child_enable_exception_callback): Update.
  8122. * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
  8123. (deprecated_exception_support_initialized): Rename
  8124. deprecated_exception_catchpoints_are_fragile and
  8125. deprecated_exception_support_initialized.
  8126. (breakpoint_init_inferior, breakpoint_init_inferior): Update.
  8127. * symtab.c (deprecated_hp_som_som_object_present): Rename
  8128. hp_som_som_object_present.
  8129. * symtab.h (deprecated_hp_som_som_object_present): Declare.
  8130. * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
  8131. Update. Delete extern declaration.
  8132. * valops.c (hp_som_som_object_present): Ditto.
  8133. * parse.c (deprecated_hp_som_som_object_present)
  8134. (parse_nested_classes_for_hpacc): Ditto.
  8135. * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
  8136. * hppa-hpux-tdep.c (hp_som_som_object_present)
  8137. (initialize_hp_cxx_exception_support): Ditto.
  8138. * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
  8139. * cp-valprint.c (hp_som_som_object_present)
  8140. (cp_print_class_method): Ditto.
  8141. * c-typeprint.c (hp_som_som_object_present):
  8142. (c_type_print_base): Ditto.
  8143. * c-exp.y (hp_som_som_object_present): Ditto.
  8144. 2004-04-08 Andrew Cagney <cagney@redhat.com>
  8145. * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
  8146. (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
  8147. (frame_unwind_find_by_frame): Re-implement the unwind code so
  8148. that it can both prepend and append sniffers. Replace
  8149. frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
  8150. * tramp-frame.c (tramp_frame_append): Use
  8151. frame_unwind_prepend_unwinder.
  8152. * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
  8153. frame_unwind_register_unwinder.
  8154. * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
  8155. tramp_frame_append.
  8156. * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
  8157. * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
  8158. (mips_linux_init_abi): Update.
  8159. 2004-04-08 Kevin Buettner <kevinb@redhat.com>
  8160. * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
  8161. (ELF_FPREGSET_SIZE): Delete constants formerly used in core
  8162. file support.
  8163. 2004-04-07 Kevin Buettner <kevinb@redhat.com>
  8164. * ia64-tdep.c (elf.h): Don't include.
  8165. (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
  8166. 2004-04-07 Jason Molenda (jmolenda@apple.com)
  8167. * frame.h: Typeo corrections in comments.
  8168. 2004-04-07 Jim Blandy <jimb@redhat.com>
  8169. * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
  8170. %esp and %ebp
  8171. 2004-04-07 Mark Kettenis <kettenis@gnu.org>
  8172. * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
  8173. * config/sparc/linux64.mt (TDEPFILES): Likewise.
  8174. * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
  8175. * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
  8176. and solib-legacy.o.
  8177. * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
  8178. solib-svr4.o.
  8179. * config/sparc/tm-sol2.h: Update copyright year. Include
  8180. "solib.h".
  8181. * sparc-sol2-tdep.c: Update copyright year. Include
  8182. "solib-svr4.h".
  8183. (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
  8184. * sparc64-sol2-tdep.c: Include "solib-svr4.h".
  8185. (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
  8186. * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
  8187. dependencies.
  8188. 2004-04-06 Andrew Cagney <cagney@redhat.com>
  8189. * infttrace.c: Include "infttrace.h".
  8190. * infttrace.h: Include "target.h".
  8191. * Makefile.in (infttrace_h): Update.
  8192. (infttrace.o): Update.
  8193. 2004-04-06 Andrew Cagney <cagney@redhat.com>
  8194. * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
  8195. (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
  8196. move extern declarations from here ...
  8197. * infttrace.h: ... to here.
  8198. * Makefile.in (hppah-nat.o): Update dependencies.
  8199. * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
  8200. (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
  8201. * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
  8202. (hppa_breakpoint_from_pc): Delete.
  8203. * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
  8204. 2004-04-05 Andrew Cagney <cagney@redhat.com>
  8205. * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
  8206. <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
  8207. <sys/file.h>.
  8208. 2004-04-06 Randolph Chung <tausq@debian.org>
  8209. Committed by Andrew Cagney (mechanical change).
  8210. * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
  8211. exception_catchpoints_are_fragile, find_stub_with_shl_get,
  8212. cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
  8213. child_enable_exception_callback, current_ex_event,
  8214. null_symtab_and_line, child_get_current_exception_event,
  8215. HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
  8216. HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
  8217. HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
  8218. hp_cxx_exception_support_initialized, eh_notify_hook_addr,
  8219. eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
  8220. eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
  8221. Move hpux-specific definitions ...
  8222. * hppa-hpux-tdep.c: ... to here.
  8223. 2004-04-05 Andrew Cagney <cagney@redhat.com>
  8224. * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
  8225. skip_prologue_using_sal.
  8226. 2004-04-05 Andrew Cagney <cagney@redhat.com>
  8227. * config/i386/tm-i386.h: Delete file.
  8228. * config/i386/tm-vxworks.h: Update copyright, do not include
  8229. "tm-i386.h".
  8230. * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
  8231. * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
  8232. * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
  8233. * config/i386/ncr3000.mt (TM_FILE): Delete.
  8234. * config/i386/interix.mt (TM_FILE): Delete.
  8235. * config/i386/i386v.mt (TM_FILE): Delete.
  8236. * config/i386/i386nw.mt (TM_FILE): Delete.
  8237. * config/i386/i386gnu.mt (TM_FILE): Delete.
  8238. * config/i386/i386aout.mt (TM_FILE): Delete.
  8239. * config/i386/embed.mt (TM_FILE): Delete.
  8240. 2004-04-05 Kevin Buettner <kevinb@redhat.com>
  8241. * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
  8242. (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
  8243. (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
  8244. (accg7_regnum): New constants.
  8245. (last_spr_regnum, last_pseudo_regnum): Update.
  8246. * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
  8247. accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
  8248. (frv_pseudo_register_read, frv_pseudo_register_write): Add support
  8249. for accg registers.
  8250. (frv_register_sim_regno): Update spr_map[].
  8251. 2004-04-04 Andrew Cagney <cagney@redhat.com>
  8252. * config/mips/xm-riscos.h: Delete.
  8253. * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
  8254. * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
  8255. * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
  8256. * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
  8257. * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
  8258. * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
  8259. * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
  8260. * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
  8261. * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
  8262. * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
  8263. * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
  8264. * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
  8265. * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
  8266. * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
  8267. * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
  8268. * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
  8269. * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
  8270. * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
  8271. * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
  8272. * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
  8273. * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
  8274. * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
  8275. * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
  8276. * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
  8277. * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
  8278. * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
  8279. * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
  8280. m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
  8281. m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
  8282. * configure.host: Remove m680[01]0-sun-sunos3*,
  8283. m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
  8284. m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
  8285. m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
  8286. mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
  8287. mips-*-riscos*.
  8288. * NEWS: Mention removed systems.
  8289. 2004-04-04 Andrew Cagney <cagney@redhat.com>
  8290. GDB 6.1 release created from 6.1 branch.
  8291. 2004-04-04 Andrew Cagney <cagney@redhat.com>
  8292. * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
  8293. * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
  8294. * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
  8295. * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
  8296. * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
  8297. * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
  8298. 2004-04-03 Jim Blandy <jimb@redhat.com>
  8299. * MAINTAINERS: Chris Faylor has changed employers; add him to
  8300. "paper trail" section, and update his E-mail address.
  8301. 2004-04-03 Andrew Cagney <cagney@redhat.com>
  8302. * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
  8303. generic dummy frames.
  8304. * dummy-frame.c: Update copyright.
  8305. (dummy_frame_sniffer): Delete check for generic dummy frames.
  8306. * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
  8307. * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
  8308. (REG_PARM_STACK_SPACE): Delete.
  8309. * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
  8310. Inline reference to REG_PARM_STACK_SPACE.
  8311. * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
  8312. (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
  8313. (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
  8314. (FRAME_BASE_BEFORE_SIGTRAMP)
  8315. (hppa32_hpux_frame_base_before_sigtramp)
  8316. (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
  8317. * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
  8318. (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
  8319. (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
  8320. (FRAME_BASE_BEFORE_SIGTRAMP)
  8321. (hppa64_hpux_frame_base_before_sigtramp)
  8322. (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
  8323. 2004-04-03 Andrew Cagney <cagney@redhat.com>
  8324. * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
  8325. 2004-04-02 Andrew Cagney <cagney@redhat.com>
  8326. * sh64-tdep.c (sh64_init_extra_frame_info): Replace
  8327. DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
  8328. * dummy-frame.h: Delete out-of-date comments.
  8329. * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
  8330. * gdbarch.h, gdbarch.c: Re-generate.
  8331. 2004-04-02 Joel Brobecker <brobecker@gnat.com>
  8332. Committed by Andrew Cagney <cagney@redhat.com>.
  8333. * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
  8334. into account an instruction saving a register if we have already
  8335. seen an earlier instruction saving that same register.
  8336. 2004-04-02 Andrew Cagney <cagney@redhat.com>
  8337. * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
  8338. * gdbarch.h, gdbarch.c: Re-generate.
  8339. * frame.c (legacy_get_prev_frame): Delete references to
  8340. DEPRECATED_INIT_FRAME_PC_FIRST.
  8341. * infrun.c (pc_in_sigtramp): Delete function.
  8342. (check_sigtramp2): Inline call to pc_in_sigtramp, use
  8343. get_frame_type.
  8344. 2004-04-02 Andrew Cagney <cagney@redhat.com>
  8345. * infrun.c (handle_step_into_function): Delete code conditional on
  8346. legacy_frame_p.
  8347. (handle_inferior_event, step_over_function): Ditto.
  8348. 2004-04-02 Andrew Cagney <cagney@redhat.com>
  8349. * frame.c (get_prev_frame_1): Exclude signal trampolines from the
  8350. "previous frame inner to this frame" test.
  8351. 2004-04-02 Andrew Cagney <cagney@redhat.com>
  8352. * frame.c (safe_frame_unwind_memory): New function.
  8353. * frame.h (safe_frame_unwind_memory): Declare. Update description
  8354. of /safe_/ methods.
  8355. * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
  8356. "next_frame". Use safe_frame_unwind_memory.
  8357. (tramp_frame_sniffer): Update call to tramp_frame_start.
  8358. 2004-04-01 Daniel Jacobowitz <drow@mvista.com>
  8359. * dwarf2read.c (dwarf2_objfile_data_key): New.
  8360. (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
  8361. (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
  8362. (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
  8363. (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
  8364. (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
  8365. (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
  8366. (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
  8367. Remove variables.
  8368. (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
  8369. (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
  8370. (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
  8371. (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
  8372. (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
  8373. (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
  8374. Remove macros.
  8375. (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
  8376. data.
  8377. (dwarf2_locate_sections, dwarf2_build_psymtabs)
  8378. (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
  8379. (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
  8380. (read_partial_die, read_full_die, read_indirect_string)
  8381. (dwarf_decode_line_header, dwarf_decode_macros)
  8382. (dwarf2_symbol_mark_computed): Remove use of removed macros.
  8383. Update uses of removed variables.
  8384. (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
  8385. of removed macros.
  8386. (_initialize_dwarf2_read): New function.
  8387. * symfile.h (dwarf2_has_info): Update prototype.
  8388. * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
  8389. * elfread.c (elf_symfile_read): Likewise.
  8390. 2004-04-01 Jim Blandy <jimb@redhat.com>
  8391. * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
  8392. function for register numbers on all the rs6000-derived targets.
  8393. (rs6000_gdbarch_init): Don't register a separate
  8394. gdbarch_dwarf2_reg_to_regnum function for the E500. Use
  8395. rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
  8396. variants.
  8397. * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
  8398. numbering.
  8399. 2004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
  8400. * valarith.c: Update copyright notice.
  8401. (value_add): Handle range types.
  8402. (value_sub): Ditto.
  8403. (value_equal): Ditto.
  8404. (value_less): Ditto.
  8405. (value_neg): Ditto.
  8406. (value_complement): Ditto.
  8407. (value_binop): Simplify slightly by using is_integral_type and
  8408. eliminiating unnecessary COERCE_ENUMs.
  8409. 2004-03-31 Andrew Cagney <cagney@redhat.com>
  8410. * frame.h (frame_unwind_id): Declare.
  8411. * frame.c (frame_unwind_id): New function.
  8412. (get_prev_frame_1): New function.
  8413. (frame_debug_got_null_frame): New function.
  8414. (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
  8415. code proper to prev_frame, update description.
  8416. * infrun.c (step_over_function): Use frame_unwind_id.
  8417. 2004-04-31 J. Brobecker <brobecker@gnat.com>
  8418. * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
  8419. (hppa64_push_dummy_call): Likewise.
  8420. 2004-03-30 Jim Blandy <jimb@redhat.com>
  8421. From Ulrich Weigand:
  8422. * utils.c (query): Do not use a va_list variable multiple times.
  8423. 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
  8424. * Makefile.in (linux_nat_h): Update dependencies.
  8425. * configure.in: Check for <gnu/libc-version.h>.
  8426. * configure: Regenerate.
  8427. * config.in: Regenerate.
  8428. * linux-nat.h: Include "target.h". Add waitstatus field to
  8429. struct lwp_info.
  8430. * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
  8431. (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
  8432. to.
  8433. (lin_lwp_handle_extended): New function. Handle clone events.
  8434. (wait_lwp): Use lin_lwp_handle_extended. Update comment about
  8435. thread exit events.
  8436. (child_wait): Handle clone events.
  8437. (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
  8438. * linux-nat.c (linux_enable_event_reporting): Turn on
  8439. PTRACE_O_TRACECLONE.
  8440. (linux_handle_extended_wait): Handle clone events.
  8441. * thread-db.c: Include <gnu/libc-version.h>.
  8442. (struct private_thread_info): Add dying flag.
  8443. (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
  8444. higher.
  8445. (attach_thread): Update comments. Handle dying threads.
  8446. (detach_thread): Set the dying flag.
  8447. (check_event): Always call attach_thread.
  8448. 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
  8449. * mips-tdep.c (mips_pdr_data): New.
  8450. (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
  8451. (_initialize_mips_tdep): Initialize mips_pdr_data.
  8452. 2004-03-29 Corinna Vinschen <vinschen@redhat.com>
  8453. * minsyms.c (install_minimal_symbols): Move dropping leading
  8454. char from linkage name from here...
  8455. (prim_record_minimal_symbol_and_info): ...to here. Simplify
  8456. test for "__gnu_compiled*" symbols.
  8457. 2004-03-28 Jim Blandy <jimb@redhat.com>
  8458. * rs6000-tdep.c (skip_prologue): Recognize moves from argument
  8459. registers to temp register r0 and byte stores as prologue
  8460. instructions.
  8461. 2004-03-28 Andrew Cagney <cagney@redhat.com>
  8462. * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
  8463. arm*-*-*.
  8464. 2004-03-28 Stephane Carrez <stcarrez@nerim.fr>
  8465. * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
  8466. and switch the layout to force a display of register window.
  8467. 2004-02-26 J. Brobecker <brobecker@gnat.com>
  8468. * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
  8469. of the INTEGER class.
  8470. 2004-03-26 Jim Blandy <jimb@redhat.com>
  8471. * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
  8472. bytes long on PPC GNU/Linux.
  8473. 2004-03-26 David Carlton <carlton@kealia.com>
  8474. * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
  8475. 2004-03-25 Andrew Cagney <cagney@redhat.com>
  8476. * PROBLEMS: Add general section titles, remove references to
  8477. specific releases.
  8478. 2004-03-25 Daniel Jacobowitz <drow@mvista.com>
  8479. * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
  8480. INT_REGISTER_SIZE.
  8481. (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
  8482. FP_REGISTER_VIRTUAL_SIZE.
  8483. * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
  8484. of DEPRECATED_REGISTER_RAW_SIZE.
  8485. (arm_register_type): Add gdbarch argument.
  8486. (arm_register_raw_size, arm_register_virtual_size): Delete.
  8487. (arm_register_byte, arm_extract_return_value)
  8488. (arm_store_return_value, arm_get_longjmp_target): Update references
  8489. to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
  8490. (arm_gdbarch_init): Likewise. Don't set
  8491. deprecated_register_raw_size, deprecated_register_virtual_size,
  8492. deprecated_max_register_raw_size,
  8493. deprecated_max_register_virtual_size, or
  8494. deprecated_max_register_virtual_type. Do set register_type.
  8495. * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
  8496. (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
  8497. (FP_REGISTER_VIRTUAL_SIZE): Delete.
  8498. (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
  8499. (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
  8500. * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
  8501. INT_REGISTER_SIZE.
  8502. * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
  8503. (remote_rdp_store_register): Likewise.
  8504. 2004-03-24 Daniel Jacobowitz <drow@mvista.com>
  8505. * Makefile.in (mips-linux-tdep.o): Update dependencies.
  8506. * mips-tdep.c (mips_gdbarch_init): Move frame predicates
  8507. to after osabi initialization.
  8508. * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
  8509. (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
  8510. functions.
  8511. (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
  8512. (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
  8513. variables.
  8514. (mips_linux_init_abi): Append signal trampoline unwinders.
  8515. 2004-03-24 Andrew Cagney <cagney@redhat.com>
  8516. * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
  8517. * tramp-frame.c: Include "gdb_assert.h".
  8518. (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
  8519. correct sizeof.
  8520. (tramp_frame_append): Validate the tramp frame's instructions.
  8521. * Makefile.in (tramp-frame.o): Update dependencies.
  8522. 2004-03-23 Andrew Cagney <cagney@redhat.com>
  8523. * trad-frame.h (trad_frame_set_reg_addr): Declare.
  8524. 2004-03-23 Andrew Cagney <cagney@redhat.com>
  8525. * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
  8526. Nasser as past testsuite/lib/ (and other) maintainers.
  8527. 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
  8528. * infcmd.c (attach_command): Reread symbols if we already have
  8529. an exec file.
  8530. 2004-03-23 Andrew Cagney <cagney@redhat.com>
  8531. * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
  8532. 2004-03-23 Andrew Cagney <cagney@redhat.com>
  8533. * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
  8534. * gdbarch.h, gdbarch.c: Re-generate.
  8535. * i386obsd-tdep.c (i386obsd_init_abi): Update.
  8536. * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
  8537. * i386bsd-tdep.c (i386bsd_init_abi): Update.
  8538. * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
  8539. (DEPRECATED_SIGTRAMP_START): Update.
  8540. * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
  8541. (DEPRECATED_SIGTRAMP_START): Update.
  8542. * blockframe.c (find_pc_sect_partial_function): Update.
  8543. * arch-utils.c (legacy_pc_in_sigtramp): Update.
  8544. 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
  8545. * remote.c (remote_open_1): Reopen the exec file and reread symbols
  8546. if necessary.
  8547. 2004-03-23 Andrew Cagney <cagney@redhat.com>
  8548. * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
  8549. predicate, deprecate.
  8550. * gdbarch.h, gdbarch.c: Re-generate.
  8551. * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
  8552. * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
  8553. * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
  8554. * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
  8555. * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
  8556. * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
  8557. * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
  8558. * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
  8559. * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
  8560. * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
  8561. * blockframe.c (find_pc_partial_function): Update.
  8562. * breakpoint.c (bpstat_what): Update.
  8563. * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
  8564. * frv-linux-tdep.c (frv_linux_init_abi): Update.
  8565. * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
  8566. * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
  8567. * i386-interix-tdep.c (i386_interix_init_abi): Update.
  8568. * i386-linux-tdep.c (i386_linux_init_abi): Update.
  8569. * i386-nto-tdep.c (i386nto_init_abi): Update.
  8570. * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
  8571. * i386-tdep.c (i386_sigtramp_frame_sniffer)
  8572. (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
  8573. * i386bsd-tdep.c (i386bsd_init_abi): Update.
  8574. * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
  8575. * i386obsd-tdep.c (i386obsd_init_abi): Update.
  8576. * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
  8577. * infrun.c (pc_in_sigtramp): Update.
  8578. * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
  8579. * m68klinux-tdep.c (m68k_linux_init_abi): Update.
  8580. * mips-tdep.c (mips_gdbarch_init): Update.
  8581. * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
  8582. * ppc-linux-tdep.c: Update comment.
  8583. * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
  8584. * shnbsd-tdep.c (shnbsd_init_abi): Update.
  8585. * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
  8586. * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
  8587. * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
  8588. * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
  8589. * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
  8590. * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
  8591. * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
  8592. * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
  8593. 2004-03-23 Andrew Cagney <cagney@redhat.com>
  8594. * tramp-frame.h, tramp-frame.h: New files.
  8595. * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
  8596. Update rules to include "tramp-frame.h" and "tramp-frame.c".
  8597. * Makefile.in: Update all dependencies.
  8598. 2004-03-23 Andrew Cagney <cagney@redhat.com>
  8599. * Makefile.in (trad_frame_h): Add $(frame_h).
  8600. * trad-frame.h: Update copyright. Include "frame.h".
  8601. (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
  8602. (trad_frame_set_id, trad_frame_get_id): Declare.
  8603. (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
  8604. * trad-frame.c: Update copyright.
  8605. (struct trad_frame_cache): Define.
  8606. (trad_frame_cache_zalloc): New function.
  8607. (trad_frame_set_id, trad_frame_get_id): New functions.
  8608. (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
  8609. 2004-03-22 Andrew Cagney <cagney@redhat.com>
  8610. * s390-tdep.c (struct s390_stub_unwind_cache): Rename
  8611. s390_pltstub_unwind_cache.
  8612. (s390_stub_frame_unwind_cache): Rename
  8613. s390_pltstub_frame_unwind_cache.
  8614. (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
  8615. (s390_stub_frame_prev_register): Rename
  8616. s390_pltstub_frame_prev_register.
  8617. (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
  8618. (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
  8619. From Ulrich Weigand:
  8620. * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
  8621. pointer calls like PLT calls.
  8622. 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
  8623. * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
  8624. PC rather than the partial function start address. Use the start
  8625. address to sanity check the found PDR.
  8626. 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
  8627. * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
  8628. linux_handle_extended_wait.
  8629. 2004-03-22 Andrew Cagney <cagney@redhat.com>
  8630. * rs6000-tdep.c (frame_initial_stack_address): Delete unused
  8631. function.
  8632. * frame.h (generic_pop_current_frame): Delete declaration.
  8633. (deprecate_pop_dummy_frame): Deprecate
  8634. generic_pop_dummy_frame.
  8635. * dummy-frame.c (deprecated_pop_dummy_frame): Update.
  8636. (generic_pop_current_frame): Delete function.
  8637. * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
  8638. generic_pop_current_frame.
  8639. * v850-tdep.c (v850_pop_frame): Update.
  8640. * mcore-tdep.c (mcore_pop_frame): Update.
  8641. * sh64-tdep.c (sh64_pop_frame): Update.
  8642. * h8300-tdep.c (h8300_pop_frame): Update.
  8643. 2004-03-22 Andrew Cagney <cagney@redhat.com>
  8644. * frame.h (deprecated_pc_in_call_dummy): Rename
  8645. generic_pc_in_call_dummy.
  8646. * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
  8647. * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
  8648. generic_pc_in_call_dummy.
  8649. (pc_in_dummy_frame): Make static.
  8650. * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
  8651. * gdbarch.h, gdbarch.c: Re-generate.
  8652. * dummy-frame.c (dummy_frame_sniffer): Simplify.
  8653. * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
  8654. (legacy_get_prev_frame): Ditto.
  8655. * inferior.h: Delete reference to generic_pc_in_call_dummy in
  8656. comment.
  8657. 2004-03-21 Andrew Cagney <cagney@redhat.com>
  8658. * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
  8659. declaration and out-of-date comment.
  8660. * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
  8661. Delete function.
  8662. * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
  8663. deprecated_pc_in_call_dummy.
  8664. * infrun.c (handle_inferior_event): For non legacy frames, use the
  8665. frame ID and frame type to identify a signal trampoline. Update
  8666. comments.
  8667. 2004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
  8668. * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
  8669. * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
  8670. 2004-03-21 Andrew Cagney <cagney@redhat.com>
  8671. * frame-unwind.h: Update copyright.
  8672. (struct frame_data): Add opaque declaration.
  8673. (frame_sniffer_ftype): Declare.
  8674. (struct frame_unwind): Add "unwind_data" and "sniffer".
  8675. (frame_unwind_register_unwinder): Declare.
  8676. (frame_unwind_find_by_frame): Add parameter "this_cache".
  8677. * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
  8678. (legacy_get_prev_frame, legacy_get_prev_frame)
  8679. (get_frame_type): Pass the prologue_cache to
  8680. frame_unwind_find_by_frame.
  8681. * frame-unwind.c (struct frame_unwind_table_entry): Add field
  8682. "unwinder".
  8683. (frame_unwind_register_unwinder): New function.
  8684. (frame_unwind_find_by_frame): Handle an unwind sniffer.
  8685. 2004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
  8686. * bcache.c (print_percentage): Use floating point to avoid
  8687. incorrect results when portion*100 overflows.
  8688. 2004-03-19 Kevin Buettner <kevinb@redhat.com>
  8689. * ppc_tdep.h (ppc_linux_frame_saved_pc)
  8690. (ppc_linux_init_extra_frame_info)
  8691. (ppc_linux_frameless_function_invocation)
  8692. (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
  8693. (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
  8694. (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
  8695. (rs6000_frame_chain): Delete declarations.
  8696. * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
  8697. (ppc_linux_init_extra_frame_info)
  8698. (ppc_linux_frameless_function_invocation)
  8699. (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
  8700. (ppc_linux_init_abi): Remove registration of above deleted functions.
  8701. * rs6000-tdep.c (rs6000_init_extra_frame_info)
  8702. (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
  8703. (rs6000_frame_args_address, rs6000_saved_pc_after_call)
  8704. (rs6000_pop_frame, rs6000_frameless_function_invocation)
  8705. (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
  8706. (rs6000_gdbarch_init): Remove registration of above deleted functions.
  8707. Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
  8708. rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
  8709. frame management for all OSABIs.
  8710. 2004-03-19 Andrew Cagney <cagney@redhat.com>
  8711. Committed by Kevin Buettner <kevinb@redhat.com>.
  8712. * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
  8713. Update copyright.
  8714. (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
  8715. (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
  8716. (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
  8717. (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
  8718. unwinders. #ifdef legacy frame code.
  8719. * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
  8720. "frame-base.h".
  8721. (rs6000_unwind_pc, rs6000_unwind_dummy_id)
  8722. (struct rs6000_frame_cache, rs6000_frame_cache)
  8723. (rs6000_frame_this_id, rs6000_frame_prev_register)
  8724. (rs6000_frame_sniffer, rs6000_frame_unwind)
  8725. (rs6000_frame_base_address, rs6000_frame_base_sniffer)
  8726. (rs6000_frame_base): Implement a traditional frame unwinder.
  8727. (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
  8728. frame unwinder.
  8729. 2004-03-19 Kevin Buettner <kevinb@redhat.com>
  8730. * breakpoint.c (adjust_breakpoint_address): Don't adjust
  8731. breakpoint address for watchpoints or the catch eventpoints.
  8732. Add new paramter ``bptype''. Adjust all callers.
  8733. 2004-03-19 Andrew Cagney <cagney@redhat.com>
  8734. * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
  8735. * PROBLEMS: Delete note that ARM does not use frame code, problem
  8736. fixed.
  8737. 2004-03-18 Andrew Cagney <cagney@redhat.com>
  8738. * stack.c (return_command): Delete code wrapped in #ifdef
  8739. DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
  8740. * rs6000-tdep.c (skip_prologue): Record only the first LR save.
  8741. 2004-03-18 Andrew Cagney <cagney@redhat.com>
  8742. * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
  8743. DEPRECATED_IN_SIGTRAMP.
  8744. * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
  8745. * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
  8746. * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
  8747. * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
  8748. * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
  8749. * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
  8750. * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
  8751. * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
  8752. * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
  8753. * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
  8754. 2004-03-18 Andrew Cagney <cagney@redhat.com>
  8755. * frame-base.c: Update copyright. Include "gdb_obstack.h".
  8756. (struct frame_base_table_entry): Define.
  8757. (struct frame_base_table): Re-implement as a linked list.
  8758. (frame_base_init): Re-implement.
  8759. (frame_base_table): Delete function.
  8760. (append_predicate): Delete function.
  8761. (frame_base_append_sniffer): Update.
  8762. (frame_base_set_default): Update.
  8763. (frame_base_find_by_frame): Update.
  8764. (_initialize_frame_base): Use gdbarch_data_register_pre_init.
  8765. * Makefile.in (frame-base.o): Update dependencies.
  8766. 2004-03-17 Andrew Cagney <cagney@redhat.com>
  8767. * frame.c (legacy_get_prev_frame): Pass correct frame to
  8768. frame_unwind_find_by_frame.
  8769. 2004-03-17 David Carlton <carlton@kealia.com>
  8770. * NEWS: Mention C++ nested types and namespaces
  8771. 2004-03-16 Michael Chastain <mec.gnu@mindspring.com>
  8772. * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
  8773. and "Regressions since gdb 5.3.". Add known regressions since
  8774. gdb 6.0.
  8775. 2004-03-16 David Carlton <carlton@kealia.com>
  8776. * dwarf2read.c (process_structure_scope): Process children even
  8777. when we're a declaration.
  8778. 2004-03-16 Andrew Cagney <cagney@redhat.com>
  8779. * symtab.h (find_pc_sect_partial_function): Delete declaration.
  8780. * blockframe.c (find_pc_partial_function)
  8781. (find_pc_sect_partial_function): Merge into a single
  8782. find_pc_partial_function.
  8783. 2004-03-16 Mark Kettenis <kettenis@gnu.org>
  8784. * i386bsd-nat.c: s/regno/regnum/g.
  8785. (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
  8786. FP0_REGNUM.
  8787. (store_inferior_registers): Likewise.
  8788. 2004-03-16 Mark Kettenis <kettenis@gnu.org>
  8789. * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
  8790. of i387_fill_fsave.
  8791. (store_inferior_registers): Call i387_collect_fsave and
  8792. i387_collect_fxsave instead of i387_fill_fsave and
  8793. i387_fill_fxsave.
  8794. 2004-03-15 Andrew Cagney <cagney@redhat.com>
  8795. * Makefile.in (frame-unwind.o): Update dependencies.
  8796. * frame-unwind.c: Include "gdb_obstack.h".
  8797. (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
  8798. parameter.
  8799. (append_predicate): Delete function.
  8800. (struct frame_unwind_table_entry): New structure.
  8801. (struct frame_unwind_table): Replace "sniffer" with "head" and
  8802. "tail".
  8803. (frame_unwind_append_sniffer): Update.
  8804. (frame_unwind_find_by_frame): Update.
  8805. (_initialize_frame_unwind): Registe frame_unwind_init using
  8806. gdbarch_data_register_pre_init.
  8807. 2004-03-15 Mark Kettenis <kettenis@gnu.org>
  8808. * i386bsd-nat.c: Update copyright year.
  8809. (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
  8810. define unconditionally.
  8811. 2004-03-15 Mark Kettenis <kettenis@gnu.org>
  8812. * i387-tdep.h (i387_collect_fsave): New prototype.
  8813. * i387-tdep.c (i387_collect_fsave): New function containing most
  8814. of the code from i387_fill_fsave.
  8815. (i387_fill_fsave): Call i387_collect_fsave.
  8816. 2004-03-15 Mark Kettenis <kettenis@gnu.org>
  8817. * i386-linux-tdep.c: Update copyright year.
  8818. (i386_linux_svr4_fetch_link_map_offsets): Remove function.
  8819. (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
  8820. svr4_ilp32_link_map_offsets instead of
  8821. i386_linux_svr4_fetch_link_map_offsets.
  8822. 2004-03-15 David Carlton <carlton@kealia.com>
  8823. Fix for PR c++/1553:
  8824. * dwarf2read.c (read_structure_type): Determine type name by
  8825. calling determine_class_name.
  8826. (determine_class_name): New.
  8827. (determine_prefix): Look at TYPE_TAG_NAME and call
  8828. determine_class_name when appropriate.
  8829. (determine_prefix_aux, class_name): Delete.
  8830. (read_namespace): Set die->type.
  8831. 2004-03-15 Kevin Buettner <kevinb@redhat.com>
  8832. * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
  8833. unused macro definition. The definition in target.h (or perhaps
  8834. elsewhere) takes precedence.
  8835. 2004-03-15 Andrew Cagney <cagney@redhat.com>
  8836. * ppc-tdep.h: Update copyright.
  8837. (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
  8838. function signatures to match "regsets.h".
  8839. * ppc-linux-tdep.c: Include "regset.h".
  8840. (ELF_GREGSET_SIZE): Delete.
  8841. (right_supply_register): New function.
  8842. (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
  8843. using right_supply_register.
  8844. (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
  8845. functions.
  8846. (ppc64_linux_gregset, ppc32_linux_gregset): Define.
  8847. (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
  8848. (_initialize_ppc_linux_tdep): Do not register
  8849. ppc_linux_regset_core_fns.
  8850. (ppc_linux_regset_from_core_section): Replace
  8851. fetch_core_registers.
  8852. (ppc_linux_regset_core_fns): Delete.
  8853. * ppc-linux-nat.c: (right_fill_reg): New function.
  8854. (supply_gregset): Update call to ppc_linux_supply_gregset.
  8855. (fill_gregset): Clear the register set, use right_fill_reg.
  8856. (supply_fpregset): Update call to ppc_linux_supply_fpregset.
  8857. (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
  8858. * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
  8859. unsigned.
  8860. 2004-03-15 Andrew Cagney <cagney@redhat.com>
  8861. * gdbarch.sh (gdbarch_data_pre_init_fytpe)
  8862. (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
  8863. (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
  8864. and register_gdbarch_data.
  8865. (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
  8866. (struct gdbarch_data): Replace "init" by "pre_init" and
  8867. "post_init".
  8868. * gdbarch.h, gdbarch.c: Re-generate.
  8869. * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
  8870. with"obstack", use OBSTACK_ZALLOC.
  8871. (dwarf2_frame_ops): Delete.
  8872. (dwarf2_frame_set_init_reg): Use gdbarch_data.
  8873. (dwarf2_frame_init_reg): Use gdbarch_data.
  8874. (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
  8875. * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
  8876. (_initialize_svr4_solib): Update.
  8877. * user-regs.c (_initialize_user_regs): Update.
  8878. * reggroups.c (_initialize_reggroup): Update.
  8879. * regcache.c (_initialize_regcache): Update.
  8880. * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
  8881. * libunwind-frame.c (_initialize_libunwind_frame): Update.
  8882. * gnu-v3-abi.c (init_gnuv3_ops): Update.
  8883. * frame-unwind.c (_initialize_frame_unwind): Update.
  8884. * frame-base.c (_initialize_frame_base): Update.
  8885. * user-regs.c (user_reg_add): Update.
  8886. * reggroups.c (reggroup_add): Update.
  8887. * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
  8888. * libunwind-frame.c (libunwind_frame_set_descr): Update.
  8889. * frame-unwind.c (frame_unwind_append_sniffer): Update.
  8890. * frame-base.c (frame_base_table): Update.
  8891. * remote.c (_initialize_remote): Update.
  8892. * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
  8893. 2004-03-15 Andrew Cagney <cagney@redhat.com>
  8894. * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
  8895. 2004-03-15 Kevin Buettner <kevinb@redhat.com>
  8896. * Makefile.in (frv-linux-tdep.o): Add dependencies.
  8897. * frv-linux-tdep.c: New file.
  8898. * frv-tdep.c (struct gdbarch_tdep): Add new field
  8899. ``sigcontext_reg_addr''.
  8900. (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
  8901. (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
  8902. (frv_sigramp_frame_sniffer): New functions.
  8903. (frv_sigtramp_frame_unwind): New static global.
  8904. (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
  8905. sniffers.
  8906. * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
  8907. * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
  8908. 2004-03-15 Kevin Buettner <kevinb@redhat.com>
  8909. * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
  8910. but not via a call to error(), when unable to read memory.
  8911. 2004-03-15 Kevin Buettner <kevinb@redhat.com>
  8912. * frv-tdep.c (frv_call_dummy_words): Delete.
  8913. (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
  8914. 2004-03-15 Andrew Cagney <cagney@redhat.com>
  8915. * infrun.c (handle_step_into_function, step_over_function): Only
  8916. update and use STEP_FRAME_ID when the system is using legacy
  8917. frames. Update comments.
  8918. 2004-03-14 Mark Kettenis <kettenis@gnu.org>
  8919. * amd64-linux-tdep.h: Remove file.
  8920. * amd64-linux-tdep.c: Don't include "inferior.h" and
  8921. "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
  8922. (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
  8923. (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
  8924. (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
  8925. (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
  8926. macros.
  8927. (user_to_gdb_regmap): Remove variable.
  8928. (amd64_linux_gregset_reg_offset): New variable.
  8929. (amd64_core_fns): Remove variable.
  8930. (fetch_core_registers): Remove function.
  8931. (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
  8932. functions.
  8933. (_initialize_amd64_linux_tdep): Don't set add_core_fns.
  8934. * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
  8935. * Makefile.in (amd64_linux_tdep_h): Remove.
  8936. (amd64-linux-nat.o): Update dependencies.
  8937. (amd64-linux-tdep.o): Update dependencies.
  8938. * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
  8939. (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
  8940. functions.
  8941. (fetch_inferior_registers, store_inferior_registers): Rewrite.
  8942. * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
  8943. * amd64-tdep.c (amd64_fill_fxsave): Remove function.
  8944. 2004-03-14 Daniel Jacobowitz <drow@mvista.com>
  8945. * dwarf2read.c (read_structure_type): Rename from
  8946. read_structure_scope. Don't create a symbol or call process_die.
  8947. Return immediately if die->type is set. Call read_type_die before
  8948. dwarf2_add_member_fn.
  8949. (process_structure_scope): New function.
  8950. (read_enumeration_type, process_enumeration_scope): New functions,
  8951. broken out from read_enumeration. Don't create the enumeration
  8952. type if it has already been created.
  8953. (read_enumeration): Removed.
  8954. (process_die): Call read_structure_type, process_structure_scope,
  8955. read_enumeration_type, and process_enumeration_scope. Just call
  8956. new_symbol for base and subrange types. Add a comment about other
  8957. type dies.
  8958. (read_type_die): Call read_enumeration_type.
  8959. (add_partial_structure, new_symbol): Update comments.
  8960. 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
  8961. * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
  8962. 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
  8963. * tui/tui-win.h (tui_get_cmd_list): Declare.
  8964. * tui/tui-win.c (tui_command): New function.
  8965. (tui_get_cmd_list): New function.
  8966. (_initialize_tui_win): Moved initialization of tui command in
  8967. tui_get_cmd_list.
  8968. * tui/tui-data.c (init_content_element): Setup new data members.
  8969. (init_win_info): Likewise.
  8970. (free_content_elements): Free it.
  8971. * tui/tui-data.h (struct tui_data_element): Store the register
  8972. content to print.
  8973. (struct tui_data_info): Keep the current register group.
  8974. * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
  8975. * tui/tui-regs.h (tui_show_registers): Update prototype.
  8976. (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
  8977. (tui_resize_all): No need to calculate anything for register window.
  8978. * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
  8979. (tui_set_register_element, tui_set_general_regs_content): Remove.
  8980. (tui_set_special_regs_content): Remove.
  8981. (tui_set_general_and_special_regs_content): Remove.
  8982. (tui_set_float_regs_content): Remove.
  8983. (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
  8984. (tui_set_regs_content): Remove.
  8985. (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
  8986. (tui_v_show_registers_command_support): Remove.
  8987. (tui_show_registers): Use a reggroup to specify the registers to show.
  8988. (tui_show_register_group): New function.
  8989. (tui_display_registers_from): Compute the layout of register window
  8990. and refresh with new API; be sure to delete old register windows.
  8991. (tui_check_register_values): Update to use tui_get_register and
  8992. tui_display_data.
  8993. (tui_display_register): Just refresh the register window part.
  8994. (tui_register_format): Format registers and save in tui_data_element.
  8995. (tui_get_register): New to combine tui_reg_value_has_changed and
  8996. tui_get_register_raw_value; fix to use the new gdb API.
  8997. (tui_show_float_command): Renamed tui_reg_float_command.
  8998. (tui_show_general_command): Renamed tui_reg_general_command.
  8999. (tui_show_special_command): Renamed tui_reg_system_command.
  9000. (_initialize_tui_regs): Remove unused commands.
  9001. 2004-03-13 Mark Kettenis <kettenis@gnu.org>
  9002. * NEWS (New native configurations): Mention OpenBSD/amd64.
  9003. * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
  9004. (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
  9005. Remove defines.
  9006. * config/i386/nm-fbsd64.h: Likewise.
  9007. * config/i386/nm-obsd.h: Likewise.
  9008. * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
  9009. * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
  9010. 2004-03-12 Kevin Buettner <kevinb@redhat.com>
  9011. * frv-tdep.c (set_variant_scratch_registers): New function.
  9012. * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
  9013. New constants.
  9014. From Richard Sandiford <rsandifo@redhat.com>:
  9015. * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
  9016. 2004-03-12 Kevin Buettner <kevinb@redhat.com>
  9017. * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
  9018. (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
  9019. (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
  9020. (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
  9021. (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
  9022. (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
  9023. (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
  9024. (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
  9025. definitions from frv-tdep.c to frv-tdep.h.
  9026. 2004-03-12 Kevin Buettner <kevinb@redhat.com>
  9027. Add shared library support for FR-V FDPIC ABI:
  9028. * Makefile.in (solib-frv.o): Add dependencies.
  9029. * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
  9030. New functions.
  9031. (frv_push_dummy_call): Add support for FDPIC ABI.
  9032. (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
  9033. for FDPIC ABI.
  9034. * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
  9035. (frv_fdpic_find_canonical_descriptor): Declare.
  9036. * solib-frv.c: New file.
  9037. * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
  9038. * config/frv/tm-frv.h (solib.h): Include.
  9039. 2004-03-12 Kevin Buettner <kevinb@redhat.com>
  9040. * Makefile.in (elf_frv_h, frv_tdep_h): Define.
  9041. (frv-tdep.o): Update dependencies.
  9042. * frv-tdep.h: New file.
  9043. * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
  9044. (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
  9045. constants.
  9046. (struct gdbarch_tdep): Add new member ``frv_abi''.
  9047. (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
  9048. functions.
  9049. (new_variant): Set ``frv_abi'' field.
  9050. (gdb_arch_init): Detect FDPIC executables.
  9051. 2004-03-12 Mark Kettenis <kettenis@gnu.org>
  9052. * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
  9053. wrapper.
  9054. 2004-03-11 Andrew Cagney <cagney@redhat.com>
  9055. * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
  9056. 2004-03-11 Kevin Buettner <kevinb@redhat.com>
  9057. * solist.h (master_so_list): New function.
  9058. * solib.c (master_so_list): Likewise.
  9059. * solib-svr4.c (enable_break): Iterate over so_list entries
  9060. obtained from master list instead of entries obtained directly
  9061. via svr4_current_sos().
  9062. 2004-03-10 Ben Elliston <bje@gnu.org>
  9063. * MAINTAINERS: Update my mail address.
  9064. 2004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
  9065. * remote-m32r-sdi.c: Support hardware watchpoint.
  9066. 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
  9067. * user-regs.c: Update copyright years.
  9068. (struct user_regs): Rename to gdb_user_regs.
  9069. (append_user_reg, builtin_user_regs, user_regs_init)
  9070. (user_reg_add, user_reg_map_name_to_regnum)
  9071. (usernum_to_user_reg): Update.
  9072. 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
  9073. * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
  9074. (skip_children): New functions.
  9075. (locate_pdi_sibling): Call skip_children.
  9076. 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
  9077. * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
  9078. * gdbtypes.c (check_typedef): Update comments.
  9079. 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
  9080. * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
  9081. (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
  9082. pointer. Update comment about comp_unit_head.
  9083. (struct abbrev_info): Shorten two int flags.
  9084. (dwarf_alloc_abbrev): Take a CU argument.
  9085. (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
  9086. each time through the loop. Update cleanup argument.
  9087. (psymtab_to_symtab_1): Update cleanup call.
  9088. (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
  9089. abbrev_obstack.
  9090. (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
  9091. Just call obstack_free and clear the pointer.
  9092. 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
  9093. * infrun.c (handle_inferior_event): Remove short-circuit code for
  9094. events in a different thread.
  9095. 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
  9096. * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
  9097. print the whole transfer.
  9098. (initialize_targets): Update description of "set debug target".
  9099. 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
  9100. * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
  9101. 2004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
  9102. * MAINTAINERS (write after approval): Add myself.
  9103. 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
  9104. * sh-tdep.c (sh_print_registers_info): Use for loop.
  9105. Don't skip multiple registers when a float register is encountered.
  9106. 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
  9107. Fix PR tdep/1291.
  9108. * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
  9109. to official SH documentation.
  9110. 2004-03-07 Andrew Cagney <cagney@redhat.com>
  9111. * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
  9112. unused function.
  9113. 2004-03-07 Daniel Jacobowitz <drow@mvista.com>
  9114. * arm-tdep.c (thumb_get_next_pc): Handle BX.
  9115. (arm_get_next_pc): Handle BX and BLX.
  9116. 2004-03-07 Andrew Cagney <cagney@redhat.com>
  9117. * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
  9118. FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
  9119. HPPA_SP_REGNUM.
  9120. (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
  9121. (hppa_target_read_fp): Delete.
  9122. (hppa_gdbarch_init): Do not set deprecated register_raw_size,
  9123. register_virtual_size, max_register_raw_size,
  9124. max_register_virtual_size, register_byte, register_size,
  9125. target_read_fp, fp_regnum, and register_bytes. Set register_type
  9126. instead of register_virtual_type.
  9127. (hppa32_register_type, hppa64_register_type): Replace
  9128. hppa32_register_virtual_type and hppa64_register_virtual_type.
  9129. * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
  9130. (HPPA_FP_REGNUM): Define.
  9131. * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
  9132. * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
  9133. (pa_do_registers_info): Delete.
  9134. * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
  9135. (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
  9136. (pa_strcat_fp_reg, pa_register_look_aside): Delete.
  9137. * infcall.c (legacy_push_dummy_code): Delete #ifdef
  9138. GDB_TARGET_IS_HPPA code.
  9139. * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
  9140. (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
  9141. (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
  9142. * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
  9143. * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
  9144. (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
  9145. (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
  9146. (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
  9147. (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
  9148. (hppa_frameless_function_invocation, hppa64_store_return_value)
  9149. (hppa_store_struct_return, hppa64_extract_return_value)
  9150. (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
  9151. (hppa32_call_dummy_length, hppa64_call_dummy_length)
  9152. (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
  9153. (find_proc_framesize, deposit_21, restore_pc_queue)
  9154. (find_return_regnum, pc_in_interrupt_handler, deposit_14)
  9155. (rp_saved, pc_in_linker_stub): Delete.
  9156. Unconditionally enable 64-bit frame and ABI code.
  9157. * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
  9158. call_dummy_breakpoint_offset, call_dummy_length, stack_align,
  9159. push_dummy_frame, fix_call_dummy, push_arguments,
  9160. call_dummy_location, extract_return_value, use_struct_convention,
  9161. store_return_value, store_struct_return, saved_pc_after_call,
  9162. init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
  9163. frame_chain, frame_chain_valid, frameless_function_invocation,
  9164. frame_saved_pc, and pop_frame.
  9165. * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
  9166. (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
  9167. (hppa_gdbarch_init): Do not set PC_REGNUM.
  9168. 2004-03-06 Mark Kettenis <kettenis@gnu.org>
  9169. * config/alpha/tm-fbsd.h: Remove file.
  9170. * config/alpha/fbsd.mt: Tweak comment.
  9171. (TM_FILE): Set to tm-alpha.h.
  9172. 2004-03-05 Andrew Cagney <cagney@redhat.com>
  9173. * infrun.c (step_over_function): When non-legacy code, and no
  9174. step_frame_id, use the unwinder to get the caller's frame ID.
  9175. 2004-03-05 Mark Kettenis <kettenis@gnu.org>
  9176. * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
  9177. i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
  9178. bfd_arch_unknown. Adjust comment.
  9179. * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
  9180. * i386obsd-tdep.c: Correct spelling in comment.
  9181. * i386nbsd-tdep.c: Correct spelling in comment.
  9182. * sparc-tdep.c: Correct spelling in comments.
  9183. 2004-03-05 David Carlton <carlton@kealia.com>
  9184. * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
  9185. bug.
  9186. 2004-03-05 Mark Kettenis <kettenis@gnu.org>
  9187. * sparc-tdep.c: Fix typo in comment.
  9188. 2004-03-04 J. Brobecker <brobecker@gnat.com>
  9189. * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
  9190. 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
  9191. * dwarf2read.c: Add comment describing memory lifetimes.
  9192. (struct dwarf2_pinfo): Update comment.
  9193. (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
  9194. (read_enumeration, new_symbol): Don't use obsavestring.
  9195. 2004-03-04 Mark Kettenis <kettenis@gnu.org>
  9196. * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
  9197. instead of amd64_fill_fxsave.
  9198. * amd64bsd-nat.c (store_inferior_registers): Likewise.
  9199. * amd64fbsd-nat.c (fill_fpregset): Likewise.
  9200. * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
  9201. Reorganize code a bit.
  9202. 2004-03-04 Orjan Friberg <orjanf@axis.com>
  9203. * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
  9204. when the frame pointer is pushed. Don't set the frame pointer's
  9205. address on the stack unless it's actually located there.
  9206. Set the SRP's address on the stack correctly when the PC is still in
  9207. the prologue.
  9208. (cris_return_value): New function.
  9209. (cris_gdbarch_init): Clear deprecated store_return_value,
  9210. extract_return_value.
  9211. 2004-03-02 Jim Blandy <jimb@redhat.com>
  9212. * stabsread.c (reg_value_complaint): The maximum register number
  9213. is one less than the number of registers.
  9214. 2004-03-02 Andrew Cagney <cagney@redhat.com>
  9215. * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
  9216. I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
  9217. trailing comma and redundant assignment of I386_ST0_REGNUM.
  9218. * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
  9219. 32-bit segment registers.
  9220. 2004-03-01 Andrew Cagney <cagney@redhat.com>
  9221. * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
  9222. use frame_relative_level and get_next_frame.
  9223. 2004-02-29 Andrew Cagney <cagney@redhat.com>
  9224. * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
  9225. (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
  9226. * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
  9227. Delete macro.
  9228. 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
  9229. * inflow.c (terminal_inferior): Don't give up the terminal if we
  9230. previously couldn't get the inferior's terminal state.
  9231. 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
  9232. * regcache.c (read_pc_pid): Restore inferior_ptid after reading
  9233. PC_REGNUM.
  9234. 2004-02-28 Andrew Cagney <cagney@redhat.com>
  9235. * NEWS: Refer to GDB 6.1.
  9236. * README: Refer to GDB 6.1.
  9237. * PROBLEMS: Refer to GDB 6.1.
  9238. 2004-02-28 Daniel Jacobowitz <drow@mvista.com>
  9239. * thread-db.c (disable_thread_signals): Remove unused function.
  9240. 2004-02-28 Mark Kettenis <kettenis@gnu.org>
  9241. * amd64-nat.c: Include "gdb_string.h".
  9242. (amd64_collect_native_gregset): Zero-extend the 32-bit
  9243. general-purpose registers and %eip.
  9244. * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
  9245. * amd64-tdep.c (amd64_collect_fxsave): New function.
  9246. (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
  9247. * i387-tdep.h: Update copyright year.
  9248. (i387_collect_fxsave): New prototype.
  9249. * i387-tdep.c: Update copyright year.
  9250. (i387_collect_fxsave): New function containing most of the code
  9251. from i387_fill_fxsave.
  9252. (i387_fill_fxsave): Call i387_collect_fxsave.
  9253. 2004-02-28 Andrew Cagney <cagney@redhat.com>
  9254. * amd64-linux-nat.c (ps_get_thread_area): When architecture is
  9255. i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
  9256. 2004-02-28 Mark Kettenis <kettenis@gnu.org>
  9257. * amd64-tdep.c (amd64_frame_cache): Fix comment.
  9258. 2004-02-28 Andrew Cagney <cagney@redhat.com>
  9259. * utils.c: Use "", instead of <>, to include readline.
  9260. tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
  9261. * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
  9262. * source.c, solib.c, exec.c, event-top.c: Ditto.
  9263. * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
  9264. * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
  9265. * Makefile.in: Update all dependencies.
  9266. (readline_tilde_h, readline_history_h): Define.
  9267. (readline_headers): Delete.
  9268. 2004-02-28 Mark Kettenis <kettenis@gnu.org>
  9269. * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
  9270. "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
  9271. "config/i386/tm-lx64.h".
  9272. * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
  9273. "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
  9274. rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
  9275. 2004-02-28 Andrew Cagney <cagney@redhat.com>
  9276. * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
  9277. * breakpoint.c (_initialize_breakpoint): Use
  9278. "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
  9279. Add help to show command.
  9280. 2004-02-28 Mark Kettenis <kettenis@gnu.org>
  9281. * i386-nat.c: Reformat to be closer to coding standards.
  9282. (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
  9283. `retval'. Make variables `align' and `size' local to while-loop.
  9284. (i386_stopped_data_address): Rename local variable `ret' to `addr'.
  9285. (_initialize_i386_nat): New prototype.
  9286. * tui/tui.c: Include <readline/readline.h> instead of
  9287. "readline/readline.h". Include it after <term.h> and
  9288. "gdb_curses.h".
  9289. 2004-02-27 Andrew Cagney <cagney@redhat.com>
  9290. * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
  9291. the new frame unwind code.
  9292. (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
  9293. (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
  9294. PCOQ_HEAD_REGNUM.
  9295. * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
  9296. "return_value" and "push_dummy_call".
  9297. (hppa32_use_struct_convention): Delete unused function.
  9298. (hppa32_store_return_value): Delete unused function.
  9299. (hppa32_extract_return_value): Delete unused function.
  9300. (hppa32_stack_align): Delete function.
  9301. 2004-02-27 Eli Zaretskii <eliz@elta.co.il>
  9302. * coffread.c (enter_linenos): Don't let rawptr reference memory
  9303. outside linetab[]'s limits.
  9304. 2004-02-27 Andrew Cagney <cagney@redhat.com>
  9305. * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
  9306. inferior stack space - the stack needs to grow upwards.
  9307. (hppa32_frame_align): New function.
  9308. (hppa64_frame_align): Replace hppa_frame_align.
  9309. (hppa_gdbarch_init): Update.
  9310. 2004-02-26 Orjan Friberg <orjanf@axis.com>
  9311. * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
  9312. (dwarf2-frame.h): Include.
  9313. (enum cris_regnums): New enum CRIS_FP_REGNUM.
  9314. Remove static variables related to ABI setting.
  9315. (struct gdbarch_tdep): Remove cris_abi member.
  9316. (struct frame_extra_info): Remove.
  9317. (cris_unwind_cache, stack_item): New structs.
  9318. (cris_frame_unwind, cris_frame_base): New variables.
  9319. (push_stack_item, pop_stack_item)
  9320. (cris_frame_unwind_cache, cris_frame_this_id)
  9321. (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
  9322. (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
  9323. (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
  9324. (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
  9325. (cris_reg_struct_has_addr): New functions.
  9326. (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
  9327. (cris_frame_saved_pc, cris_saved_pc_after_call,
  9328. (cris_store_struct_return, cris_frameless_function_invocation)
  9329. (cris_pop_frame, cris_skip_prologue_main)
  9330. (cris_abi_original_store_return_value)
  9331. (cris_abi_v2_store_return_value)
  9332. (cris_abi_original_extract_return_value)
  9333. (cris_abi_v2_extract_return_value)
  9334. (cris_abi_original_reg_struct_has_addr)
  9335. (cris_abi_v2_reg_struct_has_addr)
  9336. (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
  9337. (cris_push_return_address, cris_abi_update): Remove.
  9338. (_initialize_cris_tdep): Remove ABI command.
  9339. (cris_dump_tdep): Ditto.
  9340. (cris_gdbarch_init): Remove ABI command.
  9341. Set store_return_value, extract_return_value, push_dummy_code,
  9342. push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
  9343. frame_unwind_append_sniffer, frame_base_set_default.
  9344. Clear deprecated init_frame_pc, push_arguments, store_return_value,
  9345. extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
  9346. sizeof_call_dummy_words, get_saved_register, push_return_address,
  9347. pop_frame, store_struct_return, frame_init_saved_regs,
  9348. init_extra_frame_info, frameless_function_invocation, frame_chain,
  9349. frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
  9350. dummy_write_sp.
  9351. 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
  9352. * valprint.h (print_hex_chars, print_char_chars): New prototypes.
  9353. * valprint.c (print_hex_chars): Change from static to external.
  9354. (print_char_chars): New function.
  9355. * printcmd.c (print_scalar_formatted): For integer and enum types
  9356. that are longer than LONGEST, perform processing via appropriate
  9357. print_*_chars routines.
  9358. 2004-02-26 Andrew Cagney <cagney@redhat.com>
  9359. * Makefile.in: Update dependencies.
  9360. Changes from Ulrich Weigand,
  9361. * s390-tdep.c: Include "dwarf2-frame.h".
  9362. (s390_dwarf2_frame_init_reg): New function.
  9363. (s390_gdbarch_init): Install dwarf2_frame_sniffer and
  9364. dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
  9365. 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
  9366. * breakpoint.c (pending_break_support): New setting variable.
  9367. (break_command_1): Account for pending_break_support setting
  9368. when creating pending breakpoints.
  9369. (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
  9370. (_initialize_breakpoint): Add "set breakpoint pending" and
  9371. "show breakpoint pending" commands.
  9372. 2004-02-26 Andrew Cagney <cagney@redhat.com>
  9373. Fix PR i18n/1570.
  9374. * charset.c (backslashable, backslashed, represented): Remove 'e'
  9375. from list of escaped characters, not part of ISO-C.
  9376. 2004-02-25 J. Brobecker <brobecker@gnat.com>
  9377. From Peter Schauer <schauer@pdf.de>:
  9378. * tui/tui.c: Move system header includes after local includes.
  9379. Fixes a build failure on solaris systems.
  9380. 2004-02-25 J. Brobecker <brobecker@gnat.com>
  9381. * configure.in: Refine the previous change.
  9382. * configure: Regenerate.
  9383. 2004-02-25 Mark Kettenis <kettenis@gnu.org>
  9384. * amd64-tdep.h: Renamed from x86-64-tdep.h.
  9385. * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
  9386. "amd64-tdep.h" instead of "x86-64-tdep.h".
  9387. * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
  9388. * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
  9389. * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
  9390. "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
  9391. and "x86-64-tdep.c".
  9392. * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
  9393. "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
  9394. and "x86-64-tdep.c".
  9395. * amd64bsd-nat.c: Update copyright year.
  9396. Include "amd64-tdep.h" instead of "x86-64-tdep.h".
  9397. * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
  9398. "x86-64-tdep.h".
  9399. * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
  9400. "x86-64-tdep.h".
  9401. * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
  9402. "x86-64-tdep.h".
  9403. * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
  9404. "x86-64-tdep.h".
  9405. * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
  9406. "x86-64-tdep.h".
  9407. * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
  9408. "x86-64-tdep.h".
  9409. * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
  9410. * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
  9411. * Makefile.in (amd64_linux_tdep_h): Renamed from
  9412. x86_64_linux_tdep_h.
  9413. (amd64_tdep_h): Renamed from x86_64_tdep_h.
  9414. (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
  9415. (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
  9416. (amd64obsd-tdep.o): Update dependencies.
  9417. (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
  9418. dependencies.
  9419. (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
  9420. dependencies.
  9421. (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
  9422. amd64-linux-nat.c amd64-linux-tdep.c.
  9423. * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
  9424. * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
  9425. * config/i386/linux64.mt: Renamed from x86-64linux.mt.
  9426. (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
  9427. amd64-tdep.o and amd64-linux-tdep.o.
  9428. (TM_FILE): Set to tm-linux64.h.
  9429. * config/i386/linux64.mh: Renamed from x86-64linux.mh.
  9430. (NAT_FILE): Set to nm-linux64.h.
  9431. (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
  9432. * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
  9433. amd64-tdep.o.
  9434. * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
  9435. amd64-tdep.o.
  9436. * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
  9437. amd64-tdep.o.
  9438. 2004-02-25 Roland McGrath <roland@redhat.com>
  9439. * remote.c (remote_protocol_qPart_auxv): New variable.
  9440. (init_all_packet_configs): Initialize it.
  9441. (set_remote_protocol_qPart_auxv_packet_cmd): New function.
  9442. (show_remote_protocol_qPart_auxv_packet_cmd): New function.
  9443. (show_remote_cmd): Call it.
  9444. (_initialize_remote): Initialize commands.
  9445. (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
  9446. service TARGET_OBJECT_AUXV requests.
  9447. 2004-02-25 J. Brobecker <brobecker@gnat.com>
  9448. * configure.in: Make sure that the wborder function is available.
  9449. Otherwise, search for it in the cur_colr library.
  9450. * configure: Regenerate.
  9451. 2004-02-25 Andrew Cagney <cagney@redhat.com>
  9452. * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
  9453. 2004-02-25 Mark Kettenis <kettenis@gnu.org>
  9454. * config/i386/tm-x86-64linux.h: Tweak comments.
  9455. 2004-02-25 Richard Sandiford <rsandifo@redhat.com>
  9456. * MAINTAINERS: Add self to write-after-approval list.
  9457. 2004-02-25 Andrew Cagney <cagney@redhat.com>
  9458. PR cli/1566. Problem found, and fix suggested by David Allan.
  9459. * cli/cli-script.c (execute_control_command): Unconditionally
  9460. install a cleanup. Default "ret" to "invalid_control". Use
  9461. "break" instead of "return" to escape from the switch.
  9462. 2004-02-24 J. Brobecker <brobecker@gnat.com>
  9463. * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
  9464. with the lines macro defined in term.h on AiX.
  9465. * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
  9466. a collision with the label_width macro defined in term.h on AiX.
  9467. 2004-02-23 David Mosberger <davidm@hpl.hp.com>
  9468. Committed by Kevin Buettner <kevinb@redhat.com>.
  9469. * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
  9470. * ia64-tdep.c (ia64_write_pc): Make it a global function.
  9471. (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
  9472. instead of ia64_write_pc().
  9473. * ia64-linux-tdep.c (regcache.h): Include.
  9474. (ia64_linux_write_pc): New function.
  9475. 2004-02-23 Roland McGrath <roland@redhat.com>
  9476. * auxv.c (info_auxv_command): Fix typos in error messages.
  9477. 2004-02-23 Mark Kettenis <kettenis@gnu.org>
  9478. * x86-64-tdep.h: Tweak comment.
  9479. (enum amd64_regnum): New.
  9480. (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
  9481. (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
  9482. (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
  9483. (X86_64_XMM1_REGNUM): Removed.
  9484. (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
  9485. (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
  9486. prototypes for renamed functions.
  9487. * x86-64-tdep.c: Fix typo.
  9488. (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
  9489. register numbers.
  9490. (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
  9491. Use constants from `enum amd64_regnum' for register numbers.
  9492. (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
  9493. (amd64_analyze_prologue, amd64_frame_cache,
  9494. amd64_sigtramp_frame_cache): Use constants from `enum
  9495. amd64_regnum' for register numbers.
  9496. (amd64_supply_fpregset): Adjust for renamed functions.
  9497. (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
  9498. `enum amd64_regnum' for register numbers.
  9499. (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
  9500. (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
  9501. (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
  9502. * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
  9503. (amd64_linux_fill_gregset): Adjust for renamed macros.
  9504. (fetch_core_registers): Adjust for renamed functions.
  9505. (amd64_linux_init_abi): Adjust for renamed functions.
  9506. * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
  9507. renamed functions.
  9508. * amd64-nat.c: Adjust for renamed macros.
  9509. * amd64bsd-nat.c (fetch_inferior_registers)
  9510. (store_inferior_registers): Use constants from `enum amd64_regnum'
  9511. for register numbers. Adjust for renamed variables.
  9512. * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
  9513. renamed variables.
  9514. (_initialize_amd64fbsd_nat): Use constants from `enum
  9515. amd64_regnum' for register numbers.
  9516. * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
  9517. `enum amd64_regnum' for register numbers.
  9518. (amd64fbsd_init_abi): Adjust for renamed functions.
  9519. * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
  9520. `enum amd64_regnum' for register numbers.
  9521. (amd64nbsd_init_abi): Adjust for renamed functions.
  9522. (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
  9523. * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
  9524. `enum amd64_regnum' for register numbers.
  9525. (amd64obsd_init_abi): Adjust for renamed functions.
  9526. (_initialize_amd64obsd_ndep): Adjust for renamed macros.
  9527. 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
  9528. * breakpoint.c (print_one_breakpoint): Do not output spaces
  9529. after printing <PENDING> for a pending breakpoint.
  9530. 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
  9531. * printcmd.c (print_scalar_formatted): Initialize val_long
  9532. to remove compiler warning message.
  9533. 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
  9534. * defs.h (nquery, yquery): New prototypes.
  9535. * breakpoint.c (break_command_1): Use new nquery interface.
  9536. * utils.c (defaulted_query, nquery, yquery): New functions.
  9537. 2004-02-23 Andrew Cagney <cagney@redhat.com>
  9538. * hppa-tdep.c (hppa_frame_align): New function.
  9539. (hppa32_push_dummy_call): New function.
  9540. (hppa64_push_dummy_call): New function.
  9541. (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
  9542. disabled.
  9543. * infcall.c (legacy_push_dummy_code): Don't call deprecated
  9544. FIX_CALL_DUMMY when push_dummy_call is available.
  9545. (call_function_by_hand, push_dummy_code): Ditto.
  9546. 2004-02-22 Andrew Cagney <cagney@redhat.com>
  9547. * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
  9548. (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
  9549. (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
  9550. * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
  9551. use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
  9552. call_dummy_location to ON_STACK.
  9553. 2004-02-22 Mark Kettenis <kettenis@gnu.org>
  9554. * x86-64-linux-tdep.c: Tweak comment.
  9555. (amd64_linux_supply_gregset): Renamed from
  9556. x86_64_linux_supply_gresget.
  9557. (amd64_linux_fill_gregset): Renamed from
  9558. x86_64_linux_fill_gregset.
  9559. (fetch_core_registers): Adjust for renamed functions.
  9560. (amd64_core_fns): Renamed from x86_64_core_fns.
  9561. (amd64_linux_sigtramp_start): Renamed from
  9562. x86_64_linux_sigtramp_start.
  9563. (amd64_linux_pc_in_sigtramp): Renamed from
  9564. x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
  9565. (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
  9566. X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
  9567. (amd64_linux_sigcontext_addr): Renamed from
  9568. x86_64_linux_sigcontext_addr.
  9569. (amd64_linux_sc_reg_offset): Renamed from
  9570. x86_64_linux_sc_reg_offset.
  9571. (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
  9572. Adjust for renamed functions and variables.
  9573. (_initialize_amd64_linux_tdep): Renamed from
  9574. _initialize_x86_64_linux_tdep. Adjust for renamed functions and
  9575. variables.
  9576. * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
  9577. Adjust for renamed functions.
  9578. * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
  9579. from x86_64_linux_gregset64_reg_offset.
  9580. (amd64_linux_gregset32_reg_offset): Rename from
  9581. x86_64_linux_gregset64_reg_offset.
  9582. (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
  9583. (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
  9584. (amd64_linux_dr_set_control): Renamed from
  9585. x86_64_linux_dr_set_control. Adjust for renamed functions.
  9586. (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
  9587. Adjust for renamed functions.
  9588. (amd64_linux_dr_reset_addr): Renamed from
  9589. x86_64_linux_dr_reset_addr. Adjust for renamed functions.
  9590. (amd64_linux_dr_get_status): Renamed from
  9591. x86_64_linux_dr_get_status. Adjust for renamed functions.
  9592. (_initialize_amd64_linux_nat): Renamed from
  9593. _initialize_x86_64_linux_nat. Adjust for renamed variables and
  9594. functions.
  9595. * config/i386/nm-x86-64linux.h: Update copyright year.
  9596. Adjust for renamed functions.
  9597. * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
  9598. amd64fbsd_sigtramp_start.
  9599. (amd64fbsd_sigtramp_end_addr): Renamed from
  9600. amd64fbsd_sigtramp_end.
  9601. (amd64fbsd_init_abi): Adjust for renamed variables.
  9602. * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
  9603. variables.
  9604. * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
  9605. amd64fbsd_sigtramp_start.
  9606. (amd64fbsd_sigtramp_end_addr): Renamed from
  9607. amd64fbsd_sigtramp_end.
  9608. 2004-02-22 Andrew Cagney <cagney@redhat.com>
  9609. * hppa-tdep.c (hppa32_return_value): New function.
  9610. (hppa64_return_value): New function.
  9611. (hppa_gdbarch_init): Set return_value; keep disabled.
  9612. * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
  9613. struct-return and inferior function call methods.
  9614. * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
  9615. "frame-base.h".
  9616. (struct hppa_frame_cache): Define.
  9617. (hppa_frame_cache, hppa_frame_this_id): New functions.
  9618. (hppa_frame_prev_register): New function.
  9619. (hppa_frame_unwind, hppa_frame_base): New variables.
  9620. (hppa_frame_unwind_sniffer): New function.
  9621. (hppa_frame_base_address, hppa_unwind_pc): New function.
  9622. (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
  9623. sniffer, and frame base sniffer; keep disabled.
  9624. (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
  9625. * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
  9626. * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
  9627. to predicates for "seriously old code".
  9628. * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
  9629. runtime if(0).
  9630. * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
  9631. unsigned.
  9632. (hppa_frame_find_saved_regs): Fix "std" instruction pattern
  9633. * config/pa/tm-hppa.h: Update copyright.
  9634. (DEPRECATED_INIT_FRAME_PC): Delete macro.
  9635. (deprecated_init_frame_pc_default): Delete declaration.
  9636. (hppa_frame_init_saved_regs): Delete declaration.
  9637. (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
  9638. * hppa-tdep.c: Include "arch-utils.h".
  9639. (hppa_gdbarch_init): Set deprecated init_frame_pc
  9640. and deprecated frame_init_saved_regs.
  9641. (hppa_frame_init_saved_regs): Make static.
  9642. 2004-02-22 Mark Kettenis <kettenis@gnu.org>
  9643. Remove old 386BSD support.
  9644. * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
  9645. * configure.host: Remove i[34567]86-*-bsd*.
  9646. * configure.tgt: Remove i[34567]86-*-bsd*.
  9647. * i386b-nat.c: Removed.
  9648. * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
  9649. (i386b-nat.o): Remove dependencies.
  9650. * config/i386/i386bsd.mh: Removed.
  9651. * config/i386/i386bsd.mt: Removed.
  9652. * config/i386/nm-i386bsd.h: Removed.
  9653. * config/i386/tm-i386bsd.h: Removed.
  9654. * config/i386/xm-i386bsd.h: Removed.
  9655. * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
  9656. * amd64fbsd-tdep.c: Include "solib-svr4.h".
  9657. (amd64fbsd_init_abi): Set link map offsets.
  9658. * amd64nbsd-tdep.c: Include "slib-svr4.h".
  9659. (amd64nbsd_init_abi): Set link map offsets.
  9660. * amd64obsd-tdep.c: Include "solib-svr4.h".
  9661. (amd64obsd_init_abi): Set link map offsets.
  9662. * i386fbsd-tdep.c: Include "solib-svr4.h".
  9663. (i386fbsd_init_abi): Set link map offsets.
  9664. * i386nbsd-tdep.c: Include "solib-svr4.h".
  9665. (i386nbsdelf_init_abi): Set link map offsets.
  9666. * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
  9667. (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
  9668. * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
  9669. solib-legacy.o and core-aout.o. Reformat.
  9670. * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
  9671. solib-svr4.o, solib-legacy.o. Reformat.
  9672. * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
  9673. * config/i386/nbsdelf.mh: Reformat.
  9674. * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
  9675. solib-svr4.o, solib-legacy.o and corelow.o.
  9676. * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
  9677. * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
  9678. solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
  9679. * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
  9680. * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
  9681. (TM_FILE): Set to tm-fbsd.h.
  9682. * config/i386/nbsd.mt (TDEPFILES): Reformat.
  9683. * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
  9684. solib-svr4.o.
  9685. * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
  9686. solib-svr4.o.
  9687. (TM_FILE): Set to nm-nbsd.h.
  9688. * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
  9689. Simplify shared library support. Don't include "elf/common.h".
  9690. (SVR4_SHARED_LIBS): Don't define.
  9691. * config/i386/nm-fbsd64.h: Update copyright year. Don't include
  9692. "solib.h".
  9693. * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
  9694. config/i386/nm-obsd.h: Update copyright year. Tweak comments.
  9695. * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
  9696. Don't include "i386/tm-i386.h". Include "solib.h".
  9697. * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
  9698. Don't include "i386/tm-i386.h".
  9699. * config/i386/xm-i386.h: Update copyright year. Tweak comments.
  9700. * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
  9701. Include "i386/xm-i386.h".
  9702. (HOST_LONG_DOUBLE_FORMAT): Remove.
  9703. Fix OpenBSD/i386 sigtramp recognition.
  9704. * i386-tdep.h: Update copyright year.
  9705. (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
  9706. (i386bsd_sigtramp_end): New prototypes.
  9707. (i386fbsd_sigtramp_start_addr): Renamed from
  9708. i386fbsd_sigtramp_start.
  9709. (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
  9710. (i386obsd_sigtramp_start_addr): Renamed from
  9711. i386obsd_sigtramp_start.
  9712. (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
  9713. * i386bsd-tdep.c: Update copyright year.
  9714. (i386bsd_pc_in_sigtramp): Make public.
  9715. * i386fbsd-nat.c: Update copyright year.
  9716. (_initialize_i386fbsd_nat): Adjust for renamed variables.
  9717. * i386fbsd-tdep.c: Update copyright year.
  9718. (i386fbsd_sigtramp_start_addr): Renamed from
  9719. i386fbsd_sigtramp_start.
  9720. (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
  9721. (i386fbsdaout_init_abi): Adjust for renamed variables.
  9722. * i386obsd-nat.c: Update copyright year.
  9723. (_initialize_i386obsd_nat): Adjust for renamed variables.
  9724. * i386obsd-tdep.c: Include "target.h".
  9725. (i386obsd_page_size): New variable.
  9726. (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
  9727. (i386obsd_sigtramp_end): New functions.
  9728. (i386obsd_sigtramp_start_addr): Renamed from
  9729. i386obsd_sigtramp_start.
  9730. (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
  9731. (i386obsd_init_abi): Adjust for renamed variables. Set
  9732. pc_in_sigtramp, sigtramp_start and sigtramp_end.
  9733. * Makefile.in (i386obsd-tdep.o): Update dependencies.
  9734. * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
  9735. trampoline change in OpenBSD kernel.
  9736. * amd64-nat.c: Update copyright year.
  9737. (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
  9738. architecture from REGCACHE.
  9739. * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
  9740. symbolic constants from <sys/reg.h> instead of hard-coded numbers.
  9741. 2004-02-21 Mark Kettenis <kettenis@gnu.org>
  9742. * configure.host: Add i[34567]86-*-openbsd[0-2].* and
  9743. i[34567]86-*-openbsd3.[0-3].
  9744. * config/i386/obsdaout.mh: New file.
  9745. * config/i386/obsd.mh (MH_FLAGS): Remove.
  9746. Fix PR build/1549.
  9747. * i386obsd-tdep.c: Update copyright years. Include
  9748. "solib-svr4.h".
  9749. (i386obsd_init_abi): Don't set regset_from_core_section here.
  9750. (i386obsd_aout_init_abi): New function. Set
  9751. regset_from_core_section here.
  9752. (i386obsd_elf_init_abi): New function.
  9753. (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
  9754. * Makefile.in (i386obsd-tdep.o): Update dependecies.
  9755. * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
  9756. (TM_FILE): Set to tm-nbsd.h.
  9757. * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
  9758. solib-sunos.o.
  9759. * solib-svr4.h: Update copyright year.
  9760. (svr4_ilp32_fetch_link_map_offsets)
  9761. (svr4_lp64_fetch_link_map_offsets): New prototype.
  9762. * solib-svr4.c: Update copyright year.
  9763. (svr4_ilp32_fetch_link_map_offsets)
  9764. (svr4_lp64_fetch_link_map_offsets): New function.
  9765. 2004-02-20 Daniel Jacobowitz <drow@mvista.com>
  9766. * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
  9767. to the partial symbol table.
  9768. 2004-02-20 J. brobecker <brobecker@gnat.com>
  9769. * PROBLEMS: Add description of problem documented under gdb/1560.
  9770. 2004-02-20 Mark Kettenis <kettenis@gnu.org>
  9771. * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
  9772. comments.
  9773. (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
  9774. functions.
  9775. (amd64obsd_init_abi): Reorder initializations. Use
  9776. amd64obsd_r_reg_offset to initialize the general-purpose register
  9777. set details. Set regset_from_core_section.
  9778. (_initialize_amd64obsd_tdep): Rename from
  9779. _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
  9780. * Makefile.in (amd64obsd-tdep.o): Update dependencies.
  9781. * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
  9782. * NEWS (New native configurations): Mention OpenBSD/alpha.
  9783. * configure.tgt: Add alpha*-*-openbsd*.
  9784. * configure.host: Add alpha*-*-openbsd*.
  9785. * alphanbsd-tdep.c: Update copyright year.
  9786. (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
  9787. 2004-02-20 Andrew Cagney <cagney@redhat.com>
  9788. Fix PR tdep/1372.
  9789. * configure.tgt: Delete target "none-*-*".
  9790. * configure.host: Delete host "none-*-*".
  9791. * config/none/none.mh: Delete file.
  9792. * config/none/none.mt: Delete file.
  9793. * config/none/xm-none.h: Delete file.
  9794. * config/none/tm-none.h: Delete file.
  9795. * config/none/nm-none.h: Delete file.
  9796. 2004-02-19 Fred Fish <fnf@redhat.com>
  9797. * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
  9798. cache->uses_fp prior to setting it.
  9799. 2004-02-19 Fred Fish <fnf@redhat.com>
  9800. Fix for PR breakpoint/1558.
  9801. * sh-tdep.c (IS_JSR): New macro.
  9802. (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
  9803. 2004-02-19 Jim Blandy <jimb@redhat.com>
  9804. * findvar.c (value_from_register): Doc fix.
  9805. 2004-02-19 Jeff Johnston <jjohnstn@redhat.com>
  9806. * printcmd.c (print_scalar_formatted): Do not check for sizeof
  9807. type being greater than sizeof of host's LONGEST. Always use
  9808. unpack_long() unless format 'f' chosen.
  9809. 2004-02-19 Joel Brobecker <brobecker@gnat.com>
  9810. Committed by Elena Zannoni <ezannoni@redhat.com>
  9811. * symtab.c (find_pc_sect_psymtab): Return the psymtab that
  9812. contains a symbol wich is the best, non-exact match for the given
  9813. pc. Update comments.
  9814. 2004-02-19 Elena Zannoni <ezannoni@redhat.com>
  9815. * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
  9816. macro, which was part of the now removed Mach 3 port.
  9817. * utils.c (request_quit): Ditto.
  9818. 2004-02-18 Mark Kettenis <kettenis@gnu.org>
  9819. * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
  9820. "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
  9821. 2004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
  9822. Committed by Mark Kettenis <kettenis@gnu.org>.
  9823. * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
  9824. Define.
  9825. 2004-02-18 Andrew Cagney <cagney@redhat.com>
  9826. * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
  9827. CONFIG_INSTALL and CONFIG_UNINSTALL.
  9828. * configure: Re-generate.
  9829. * interps.h (INTERP_TUI): Define.
  9830. * Makefile.in: Update dependencies.
  9831. (TUI): New macro.
  9832. (tui-main.o): Specify dependencies.
  9833. (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
  9834. * tui/tui-main.c: New file.
  9835. 2004-02-18 Mark Kettenis <kettenis@gnu.org>
  9836. * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
  9837. * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
  9838. dependencies.
  9839. * configure.host: Add x86_64-*-openbsd*.
  9840. * configure.tgt: Add x86_64-*-openbsd*.
  9841. * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
  9842. * tui/tui.c: Don't include <malloc.h>.
  9843. * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
  9844. amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
  9845. amd64nbsd-tdep.c.
  9846. * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
  9847. static. Remove extraneous whitespace.
  9848. * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
  9849. static.
  9850. 2004-02-17 Jim Blandy <jimb@redhat.com>
  9851. * findvar.c (value_from_register): Doc fix.
  9852. 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
  9853. Committed by Jim Blandy <jimb@redhat.com>.
  9854. * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
  9855. CORE_ADDR as type for selectors. Correct types for GNU run time
  9856. message lookup function to use double indirection.
  9857. * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
  9858. * objc-lang.h (lookup_child_selector): Adapt prototype.
  9859. * s390-nat.c (SUBOFF): New macro.
  9860. (supply_gregset, fill_gregset): Use it to handle debugging
  9861. of 32-bit exectuables running under a 64-bit kernel.
  9862. * s390-tdep.c: Include "solib-svr4.h".
  9863. (s390_svr4_fetch_link_map_offset): New function.
  9864. (s390x_svr_fetch_link_map_offset): Likewise.
  9865. (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
  9866. * Makefile.in (s390-tdep.o): Update dependencies.
  9867. * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
  9868. "frame-unwind.h".
  9869. (s390_readinstruction): Reformat. Use read_memory_nobpt.
  9870. (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
  9871. (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
  9872. (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
  9873. S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
  9874. S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
  9875. S390_SIGNAL_FRAMESIZE,
  9876. s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
  9877. (struct frame_extra_info): Remove.
  9878. (s390_memset_extra_info): Remove.
  9879. (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
  9880. (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
  9881. (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
  9882. (is_rse): Renamed to ...
  9883. (is_rsy): ... this. Support long displacements.
  9884. (is_rxe): Renamed to ...
  9885. (is_rxy): ... this. Support long displacements.
  9886. (compute_x_addr): Support long displacements.
  9887. (struct s390_prologue_data): New data type.
  9888. (s390_on_stack): Change API to use struct s390_prologue_data.
  9889. (s390_store): Reimplement.
  9890. (s390_load): New function.
  9891. (s390_get_signal_frame_info): Remove.
  9892. (s390_get_frame_info): Remove, replace by ...
  9893. (s390_analyze_prolog): ... this new function.
  9894. (s390_check_function_end): Remove.
  9895. (s390_function_start): Remove.
  9896. (s390_frameless_function_invokation): Remove.
  9897. (s390_is_sigreturn): Remove.
  9898. (s390_init_frame_pc_first): Remove.
  9899. (s390_init_frame_extra_info): Remove.
  9900. (s390_frame_init_saved_regs): Remove.
  9901. (s390_frame_saved_pc_nofix): Remove.
  9902. (s390_frame_saved_pc): Remove.
  9903. (s390_frame_chain): Remove.
  9904. (s390_fp_regnum, s390_read_fp): Remove.
  9905. (s390_pop_frame_regular, s390_pop_frame): Remove.
  9906. (s390_saved_pc_after_call): Remove.
  9907. (s390_skip_prologue): Reimplement.
  9908. (s390_in_function_epilogue_p): Support long displacements.
  9909. (struct s390_unwind_cache): New data structure.
  9910. (s390_frame_unwind_cache): New function.
  9911. (s390_prologue_frame_unwind_cache): Likewise.
  9912. (s390_backchain_frame_unwind_cache): Likewise.
  9913. (s390_frame_this_id, s390_frame_prev_register): Likewise.
  9914. (s390_frame_unwind): Define.
  9915. (s390_frame_sniffer): New function.
  9916. (struct s390_pltstub_unwind_cache): New data structure.
  9917. (s390_pltstub_frame_unwind_cache): New function.
  9918. (s390_pltstub_frame_this_id): Likewise.
  9919. (s390_pltstub_frame_prev_register): Likewise.
  9920. (s390_pltstub_frame_unwind): Define.
  9921. (s390_pltstub_frame_sniffer): New function.
  9922. (struct s390_sigtramp_unwind_cache): New data structure.
  9923. (s390_sigtramp_frame_unwind_cache): New function.
  9924. (s390_sigtramp_frame_this_id): Likewise.
  9925. (s390_sigtramp_frame_prev_register): Likewise.
  9926. (s390_sigtramp_frame_unwind): Define.
  9927. (s390_sigtramp_frame_sniffer): New function.
  9928. (s390_frame_base_address, s390_local_base_address): New functions.
  9929. (s390_frame_base): Define.
  9930. (s390_unwind_pc, s390_unwind_sp): New function.
  9931. (s390_push_dummy_call): Use new frame base location.
  9932. (s390_unwind_dummy_id): Likewise.
  9933. (s390_gdbarch_init): Remove calls to:
  9934. set_gdbarch_frameless_function_invocation,
  9935. set_gdbarch_deprecated_init_frame_pc,
  9936. set_gdbarch_deprecated_frame_chain,
  9937. set_gdbarch_deprecated_frame_init_saved_regs,
  9938. set_gdbarch_deprecated_pop_frame,
  9939. set_gdbarch_deprecated_init_extra_frame_info,
  9940. set_gdbarch_deprecated_init_frame_pc_first,
  9941. set_gdbarch_deprecated_target_read_fp,
  9942. set_gdbarch_deprecated_frame_saved_pc,
  9943. set_gdbarch_deprecated_saved_pc_after_call,
  9944. set_gdbarch_deprecated_fp_regnum.
  9945. Add calls to:
  9946. set_gdbarch_in_solib_call_trampoline,
  9947. frame_unwind_append_sniffer,
  9948. frame_base_set_default,
  9949. set_gdbarch_unwind_pc,
  9950. set_gdbarch_unwind_sp.
  9951. * Makefile.in (s390-tdep.o): Update dependencies.
  9952. * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
  9953. (S390_STACK_FRAME_OVERHEAD): Remove.
  9954. (S390_STACK_PARAMETER_ALIGNMENT): Remove.
  9955. (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
  9956. (s390_promote_integer_argument): Remove.
  9957. (s390_cannot_extract_struct_value_address): Remove.
  9958. (s390_use_struct_convention, s390_store_struct_return): Remove.
  9959. (s390_extract_return_value, s390_store_return_value): Remove.
  9960. (s390_return_value_convention, s390_return_value): New functions.
  9961. (is_float_singleton): Handle typedefs.
  9962. (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
  9963. Remove, replace by ...
  9964. (s390_function_arg_pass_by_reference, s390_function_arg_float,
  9965. s390_function_arg_integer): ... these new functions.
  9966. (s390_push_arguments, s390_push_return_address): Remove, replace by ...
  9967. (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
  9968. (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
  9969. Fill in tdep->abi.
  9970. Remove calls to:
  9971. set_gdbarch_deprecated_store_struct_return,
  9972. set_gdbarch_deprecated_extract_return_value,
  9973. set_gdbarch_deprecated_store_return_value,
  9974. set_gdbarch_use_struct_convention,
  9975. set_gdbarch_extract_struct_value_address,
  9976. set_gdbarch_deprecated_pc_in_call_dummy,
  9977. set_gdbarch_deprecated_push_arguments,
  9978. set_gdbarch_deprecated_save_dummy_frame_tos,
  9979. set_gdbarch_deprecated_push_return_address,
  9980. set_gdbarch_deprecated_sizeof_call_dummy_words,
  9981. set_gdbarch_deprecated_call_dummy_words,
  9982. set_gdbarch_deprecated_dummy_write_sp.
  9983. Add calls to:
  9984. set_gdbarch_push_dummy_call,
  9985. set_gdbarch_unwind_dummy_id,
  9986. set_gdbarch_return_value.
  9987. * config/s390/nm-linux.h: Update comments.
  9988. (target_insert_watchpoint, target_remove_watchpoint): Redefine.
  9989. (STOPPED_BY_WATCHPOINT): Redefine.
  9990. (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
  9991. (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
  9992. (s390_stopped_by_watchpoint): Likewise.
  9993. (watch_area_cnt): Remove.
  9994. * s390-nat.c: Update comments.
  9995. (watch_area): Remove typedef.
  9996. Global replace watch_area by struct watch_area.
  9997. (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
  9998. (s390_stopped_by_watchpoint): Remove pid argument,
  9999. use s390_inferior_tid. Add short-cut for the no watchpoint case.
  10000. (s390_fix_watch_points): Remove pid argument,
  10001. use s390_inferior_tid. Recompute area spanned by watchpoints.
  10002. (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
  10003. argument. Reimplement.
  10004. * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
  10005. (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
  10006. (FETCH_INFERIOR_REGISTERS): Define.
  10007. * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
  10008. core-regset.o.
  10009. * config/s390/s390x.mt: Remove.
  10010. * config/s390/tm-s390.h: Remove.
  10011. * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
  10012. (TARGET_ELF64): Remove.
  10013. (SKIP_TRAMPOLINE_CODE): Do not undefine.
  10014. * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
  10015. s390*-*-* case; always set gdb_target to s390.
  10016. * regformats/reg-s390.dat: Remove control registers.
  10017. * regformats/reg-s390x.dat: Likewise.
  10018. * s390-tdep.h: New file.
  10019. * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
  10020. Include "inferior.h" and "s390-tdep.h".
  10021. Remove private definition of offsetof.
  10022. (s390_register_u_addr): Remove.
  10023. (regmap_gregset, regmap_fpregset): Define.
  10024. (supply_gregset, fill_gregset): Reimplement.
  10025. (supply_fpregset, fill_fpregset): Likewise.
  10026. (s390_inferior_tid): New function.
  10027. (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
  10028. (fetch_inferior_registers, store_inferior_registers): Likewise.
  10029. * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
  10030. of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
  10031. Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
  10032. Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
  10033. (struct gdbarch_tdep): Define.
  10034. (struct s390_register_info): Define.
  10035. (s390_register_info): New variable.
  10036. (s390_register_name): Reimplement.
  10037. (s390_register_type): New function.
  10038. (s390_register_raw_size, s390x_register_raw_size): Remove.
  10039. (s390_cannot_fetch_register): Remove.
  10040. (s390_register_byte): Remove.
  10041. (s390_register_virtual_type, s390x_register_virtual_type): Remove.
  10042. (s390_dwarf_regmap): New variable.
  10043. (s390_dwarf_reg_to_regnum): New function.
  10044. (s390_stab_reg_to_regnum): Remove.
  10045. (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
  10046. (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
  10047. (s390_convert_register_p): Likewise.
  10048. (s390_register_to_value, s390_value_to_register): Likewise.
  10049. (s390_register_reggroup_p): Likewise.
  10050. (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
  10051. s390_gregset, s390x_gregset, s390_fpregset): New variables.
  10052. (s390_supply_regset, s390_regset_from_core_section): New functions.
  10053. (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
  10054. (S390_FPR_SIZE): Likewise.
  10055. (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
  10056. Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
  10057. (S390_NUM_GPRS): Move here from tm-s390.h.
  10058. (S390_NUM_FPRS): Likewise.
  10059. (s390_in_function_epilogue_p): New function.
  10060. (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
  10061. Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
  10062. (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
  10063. Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
  10064. Replace S390_FP_REGNUM by S390_SP_REGNUM.
  10065. Remove calls to:
  10066. set_gdbarch_deprecated_max_register_raw_size,
  10067. set_gdbarch_deprecated_max_register_virtual_size,
  10068. set_gdbarch_deprecated_register_byte,
  10069. set_gdbarch_cannot_fetch_register,
  10070. set_gdbarch_cannot_store_register,
  10071. set_gdbarch_deprecated_register_size,
  10072. set_gdbarch_deprecated_register_raw_size,
  10073. set_gdbarch_deprecated_register_virtual_size,
  10074. set_gdbarch_deprecated_register_virtual_type,
  10075. set_gdbarch_deprecated_register_bytes.
  10076. Add calls to:
  10077. set_gdbarch_num_pseudo_regs,
  10078. set_gdbarch_register_type,
  10079. set_gdbarch_convert_register_p,
  10080. set_gdbarch_register_to_value,
  10081. set_gdbarch_value_to_register,
  10082. set_gdbarch_register_reggroup_p,
  10083. set_gdbarch_regset_from_core_section,
  10084. set_gdbarch_pseudo_register_read,
  10085. set_gdbarch_pseudo_register_write,
  10086. set_gdbarch_in_function_epilogue_p.
  10087. * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
  10088. (s390_tdep_h): New variable.
  10089. 2004-02-17 Jim Blandy <jimb@redhat.com>
  10090. * findvar.c (value_from_register): If the type has no length, just
  10091. return an acceptable value --- don't report an internal error.
  10092. * stabsread.c (read_type): If we find any type numbers that are
  10093. forward references, complain if the references aren't resolved by
  10094. the time we're finished reading.
  10095. (cleanup_undefined_types): Make error message more appropriate for
  10096. a complaint.
  10097. 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
  10098. * Makefile.in (defs_h): Remove dependency on progress_h.
  10099. * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
  10100. progress.h.
  10101. * main.c (captured_main): Delete use of START_PROGRESS and
  10102. END_PROGRESS.
  10103. 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
  10104. * objfiles.c (terminate_minimal_symbol_table): Add back
  10105. initialization of MSYMBOL_TYPE.
  10106. 2004-02-17 David Mosberger <davidm@hpl.hp.com>
  10107. Committed by Andrew Cagney.
  10108. * Makefile.in (ia64_tdep_h): New macro.
  10109. (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
  10110. (ia64-tdep.o): Likewise.
  10111. * ia64-tdep.h: New file.
  10112. * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
  10113. (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
  10114. (ia64_aix_sigcontext_register_address): Likewise.
  10115. (ia64_linux_getunwind_table): Delete declaration.
  10116. * ia64-linux-tdep.c: Likewise.
  10117. 2004-02-17 Corinna Vinschen <vinschen@redhat.com>
  10118. * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
  10119. * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
  10120. DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
  10121. 2004-02-17 Andrew Cagney <cagney@redhat.com>
  10122. * symtab.c (skip_prologue_using_sal): New function.
  10123. * symtab.h (skip_prologue_using_sal): Declare.
  10124. * frv-tdep.c: Include "symtab.h".
  10125. (skip_prologue_using_sal): Delete function.
  10126. * mips-tdep.c (skip_prologue_using_sal): Delete function.
  10127. * rs6000-tdep.c (refine_prologue_limit): Mention
  10128. skip_prologue_using_sal.
  10129. * ia64-tdep.c (refine_prologue_limit): Ditto.
  10130. * Makefile.in: Update dependencies.
  10131. 2004-02-16 Andrew Cagney <cagney@redhat.com>
  10132. * config/alpha/tm-nbsd.h: Update copyright, delete #undef
  10133. START_INFERIOR_TRAPS_EXPECTED.
  10134. * config/alpha/tm-fbsd.h: Update copyright, delete #undef
  10135. START_INFERIOR_TRAPS_EXPECTED.
  10136. * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
  10137. Delete macro.
  10138. * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
  10139. macro, moved to "nm-osf.h". Update copyright.
  10140. * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
  10141. update copyright.
  10142. * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
  10143. and function replacing FRAMELESS_FUNCTION_INVOCATION.
  10144. * blockframe.c (legacy_frameless_look_for_prologue): Rename
  10145. frameless_look_for_prologue.
  10146. * frame.h (legacy_frameless_look_for_prologue): Rename
  10147. frameless_look_for_prologue.
  10148. * gdbarch.h, gdbarch.c: Re-generate.
  10149. * sh64-tdep.c (sh64_gdbarch_init): Update.
  10150. * sh-tdep.c (sh_gdbarch_init): Update.
  10151. * s390-tdep.c (s390_gdbarch_init): Update.
  10152. * rs6000-tdep.c (rs6000_gdbarch_init): Update.
  10153. * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
  10154. * m68k-tdep.c (m68k_gdbarch_init): Update.
  10155. (delta68_frame_args_address): Update.
  10156. * m32r-tdep.c (m32r_gdbarch_init): Update.
  10157. * hppa-tdep.c (hppa_gdbarch_init): Update.
  10158. * h8300-tdep.c (h8300_gdbarch_init): Update.
  10159. * frv-tdep.c (frv_gdbarch_init): Update.
  10160. (frv_frameless_function_invocation): Update.
  10161. * cris-tdep.c (cris_gdbarch_init): Update.
  10162. (cris_frameless_function_invocation): Update.
  10163. * avr-tdep.c (avr_gdbarch_init): Update.
  10164. * arm-tdep.c (arm_gdbarch_init): Update.
  10165. * stack.c (frame_info): Update, call predicate.
  10166. * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
  10167. * frame.c (legacy_get_prev_frame): Update, call predicate..
  10168. * arch-utils.c (generic_frameless_function_invocation_not): Delete.
  10169. * arch-utils.h (generic_frameless_function_invocation_not): Delete.
  10170. * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
  10171. invocation.
  10172. * d10v-tdep.c (d10v_gdbarch_init): Ditto.
  10173. * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
  10174. * vax-tdep.c (vax_gdbarch_init): Ditto.
  10175. * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
  10176. function.
  10177. 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
  10178. * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
  10179. initializations.
  10180. 2004-02-16 Andrew Cagney <cagney@redhat.com>
  10181. * tui/tui-windata.c: Include "gdb_string.h".
  10182. * tui/tui-source.c, tui/tui-winsource.c: Ditto.
  10183. * tui/tui-layout.c, tui/tui-command.c: Ditto.
  10184. * Makefile.in: Update dependencies.
  10185. 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
  10186. * Makefile.in (infrun.o): Add $(gdb_assert_h).
  10187. * infrun.c: Include "gdb_assert.h".
  10188. (singlestep_ptid, saved_singlestep_ptid)
  10189. (stepping_past_singlestep_breakpoint): New variables.
  10190. (resume): Set singlestep_ptid. Check for singlestep thread
  10191. hop.
  10192. (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
  10193. (handle_inferior_event): Handle singlestep thread hop.
  10194. 2004-02-16 Andrew Cagney <cagney@redhat.com>
  10195. * dwarf2-frame.c (dwarf2_frame_ops): New function.
  10196. (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
  10197. (dwarf2_frame_init_reg): Ditto.
  10198. * printcmd.c (display_command): Check that EXP isn't NULL. Fix
  10199. suggested by Joshua Neuheisel
  10200. * configure.in: Always check for curses, including pdcurses.
  10201. Warn, instead of error, when no curses are found. Enable TUI when
  10202. curses is available.
  10203. * configure: Re-generate.
  10204. 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
  10205. * sh-tdep.c (sh_register_convert_to_virtual): Rename from
  10206. sh_sh4_register_convert_to_virtual.
  10207. (sh_register_convert_to_raw): Rename from
  10208. sh_sh4_register_convert_to_raw.
  10209. (sh_pseudo_register_read): Accomodate above name change.
  10210. (sh_pseudo_register_write): Ditto.
  10211. 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
  10212. * sh-tdep.c (sh_generic_register_name): Remove.
  10213. (sh_gdbarch_init): Use sh_sh_register_name in default case.
  10214. 2004-02-15 Andrew Cagney <cagney@redhat.com>
  10215. * configure.in (build_warnings): Add -Wunused-function.
  10216. * configure: Re-generate.
  10217. * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
  10218. * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
  10219. * procfs.c (procfs_init_inferior): Assume that
  10220. START_INFERIOR_TRAPS_EXPECTED is defined.
  10221. * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
  10222. * config/ns32k/tm-nbsd.h: Delete file,
  10223. START_INFERIOR_TRAPS_EXPECTED already defined as 2.
  10224. * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
  10225. * config/vax/tm-vax.h: Delete file.
  10226. * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
  10227. * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
  10228. * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
  10229. * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
  10230. * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
  10231. * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
  10232. * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
  10233. 2004-02-15 Mark Kettenis <kettenis@gnu.org>
  10234. * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
  10235. * dwarf2-frame.c (dwarf2_frame_data): New variable.
  10236. (struct dwarf2_frame_ops): New.
  10237. (dwarf2_frame_default_init_reg): New function, based on
  10238. dwarf2_frame_init_reg.
  10239. (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
  10240. (dwarf2_frame_init_reg): Call architecture-specific function.
  10241. (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
  10242. (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
  10243. instead of dwarf2_frame_data.
  10244. (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
  10245. Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
  10246. 2004-02-15 Andrew Cagney <cagney@redhat.com>
  10247. * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
  10248. register_gdbarch_swap.
  10249. (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
  10250. * f-lang.c (_initialize_f_language): Update, use
  10251. DEPRECATED_REGISTER_GDBARCH_SWAP.
  10252. * remote.c (_initialize_remote): Ditto.
  10253. * regcache.c (_initialize_regcache): Ditto.
  10254. * parse.c (_initialize_parse): Ditto.
  10255. * infrun.c (_initialize_infrun): Ditto.
  10256. * mi/mi-main.c (_initialize_mi_main): Ditto.
  10257. * gdbtypes.c (_initialize_gdbtypes): Ditto.
  10258. * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
  10259. poking .cacheable directly.
  10260. * symfile.c (symfile_bfd_open): Ditto.
  10261. * Makefile.in: Update all dependencies.
  10262. * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
  10263. (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
  10264. .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
  10265. (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
  10266. (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
  10267. 2004-02-14 Andrew Cagney <cagney@redhat.com>
  10268. * arch-utils.c (legacy_convert_register_p): Check
  10269. DEPRECATED_REGISTER_CONVERTIBLE_P.
  10270. * findvar.c (value_of_register): Ditto.
  10271. * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
  10272. * gdbarch.h, gdbarch.c: Re-generate.
  10273. * arch-utils.c (deprecated_register_convertible_not): Delete.
  10274. * arch-utils.h (deprecated_register_convertible_not): Delete.
  10275. * mi/mi-main.c (get_register): Update. Update copyright.
  10276. * infcmd.c (default_print_registers_info): Update.
  10277. * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
  10278. (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
  10279. (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
  10280. * gdbarch.h, gdbarch.c: Re-generate.
  10281. * frame.c (deprecated_get_next_frame_hack): Delete function.
  10282. * frame.h (deprecated_get_next_frame_hack): Delete declaration.
  10283. * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
  10284. Update.
  10285. * infcall.c (call_function_by_hand): Update.
  10286. 2004-02-14 Elena Zannoni <ezannoni@redhat.com>
  10287. * symfile.c (init_entry_point_info, entry_point_address): Move
  10288. from here...
  10289. * objfiles.c (init_entry_point_info, entry_point_address):..to
  10290. here.
  10291. * symfile.h (init_entry_point_info, entry_point_address): Remove
  10292. prototypes.
  10293. * objfiles.h (init_entry_point_info, entry_point_address):Add
  10294. prototypes.
  10295. * cris-tdep.c: Remove include of symfile.h. Add include of
  10296. objfiles.h.
  10297. * infcall.c: Ditto.
  10298. * mcore-tdep.c: Ditto.
  10299. * mn10300-tdep.c: Ditto.
  10300. * sh64-tdep.c: Ditto.
  10301. * v850-tdep.c: Ditto.
  10302. * arm-tdep.c: Remove include of symfile.h.
  10303. * blockframe.c: Ditto.
  10304. * coffread.c: Ditto.
  10305. * dbxread.c: Ditto.
  10306. * dwarf2read.c: Ditto.
  10307. * dwarfread.c: Ditto.
  10308. * frv-tdep.c: Ditto.
  10309. * ia64-tdep.c: Ditto.
  10310. * mdebugread.c: Ditto.
  10311. * mipsread.c: Ditto.
  10312. * rs6000-tdep.c: Ditto.
  10313. * s390-tdep.c: Ditto.
  10314. * sh-tdep.c: Ditto.
  10315. * xstormy16-tdep.c: Ditto.
  10316. * gdbarch.sh: Remove include of symfile.h.
  10317. * gdbarch.c: Regenerate.
  10318. * solib-irix.c (enable_break): Use entry_point_address().
  10319. Add comment about include file.
  10320. * xcoffread.c: Add comment about include file.
  10321. * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
  10322. (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
  10323. (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
  10324. (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
  10325. (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
  10326. 2004-02-13 Andrew Cagney <cagney@redhat.com>
  10327. * corelow.c (core_xfer_partial): Use "struct bfd_section".
  10328. * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
  10329. copyright.
  10330. * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
  10331. 2004-02-12 Fred Fish <fnf@redhat.com>
  10332. * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
  10333. set_gdbarch_store_return_value.
  10334. 2004-02-12 Andrew Cagney <cagney@redhat.com>
  10335. * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
  10336. (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
  10337. (interrupt_query): Ditto.
  10338. (ofunc): Delete unused variable.
  10339. * cris-tdep.c (cris_abi): Delete unused function.
  10340. (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
  10341. (cris_get_wide_opcode, cris_get_short_size): Ditto.
  10342. (cris_get_asr_quick_shift_steps): Ditto.
  10343. (cris_skip_prologue_frameless_p): Ditto.
  10344. * arm-tdep.c (arm_push_return_address): Delete unused function.
  10345. (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
  10346. * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
  10347. * s390-tdep.c (s390_function_start): Delete unused function.
  10348. 2004-02-12 Andrew Cagney <cagney@redhat.com>
  10349. * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
  10350. gdbarch.h, gdbarch.c: Re-generate.
  10351. * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
  10352. to generic_prologue_frameless_p.
  10353. * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
  10354. * arch-utils.c (generic_prologue_frameless_p): Delete function.
  10355. 2004-02-11 Daniel Jacobowitz <drow@mvista.com>
  10356. * mips-linux-tdep.c: Include "frame.h".
  10357. (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
  10358. (mips_linux_skip_resolver): New functions.
  10359. (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
  10360. and set_gdbarch_in_solib_call_trampoline.
  10361. * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
  10362. to after set_gdbarch_in_solib_return_trampoline. Only set the
  10363. solib hooks to mips16 functions if the OS ABI is unknown.
  10364. * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
  10365. including "config/tm-linux.h".
  10366. (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
  10367. * Makefile.in (mips-linux-tdep.o): Update.
  10368. 2004-02-11 David Carlton <carlton@kealia.com>
  10369. * linespec.c (decode_compound): Only look for a class symbol when
  10370. considering all but the rightmost component.
  10371. 2004-02-11 Andrew Cagney <cagney@redhat.com>
  10372. * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
  10373. abi code are are separatly grouped.
  10374. 2004-02-11 Andrew Cagney <cagney@redhat.com>
  10375. * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
  10376. * gdbarch.h, gdbarch.c: Re-generate.
  10377. * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
  10378. * v850-tdep.c (v850_gdbarch_init): Update.
  10379. * sh64-tdep.c (sh64_gdbarch_init): Update.
  10380. * sh-tdep.c (sh_gdbarch_init): Update.
  10381. * s390-tdep.c (s390_gdbarch_init): Update.
  10382. * mn10300-tdep.c (mn10300_gdbarch_init): Update.
  10383. * mips-tdep.c (mips_gdbarch_init): Update.
  10384. * mcore-tdep.c (mcore_gdbarch_init): Update.
  10385. * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
  10386. * m32r-tdep.c (m32r_gdbarch_init): Update.
  10387. * ia64-tdep.c (ia64_gdbarch_init): Update.
  10388. * hppa-tdep.c (hppa_gdbarch_init): Update.
  10389. * h8300-tdep.c (h8300_gdbarch_init): Update.
  10390. * frv-tdep.c (frv_gdbarch_init): Update.
  10391. * d10v-tdep.c (d10v_gdbarch_init): Update.
  10392. * cris-tdep.c (cris_gdbarch_init): Update.
  10393. * avr-tdep.c (avr_gdbarch_init): Update.
  10394. * arm-tdep.c (arm_gdbarch_init): Update.
  10395. * alpha-tdep.c (alpha_gdbarch_init): Update.
  10396. 2004-02-11 Corinna Vinschen <vinschen@redhat.com>
  10397. * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
  10398. comma.
  10399. (sh_sh4al_dsp_register_name): Ditto.
  10400. 2004-02-10 Andrew Cagney <cagney@redhat.com>
  10401. * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
  10402. (mips_init_frame_pc_first): Delete function.
  10403. (mips_frame_saved_pc): Delete function.
  10404. (mips_frame_chain): Delete function.
  10405. (mips_init_extra_frame_info): Delete function.
  10406. (mips_xfer_register): Delete unused variable "reg".
  10407. (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
  10408. (mips_n32n64_return_value): Delete unused variable "reg".
  10409. (mips_n32n64_return_value): Delete unused variable "pos".
  10410. (mips_o32_push_dummy_call): Delete unused variable "valbuf".
  10411. (mips_o32_return_value): Delete unused variable "pos".
  10412. (mips_o64_push_dummy_call): Delete unused variable "valbuf".
  10413. (mips_print_fp_register): Delete unused variable "namelen"
  10414. (mips_print_fp_register): Delete unused variable "flt2"
  10415. (get_frame_pointer): Delete function.
  10416. (cached_proc_desc): Delete static variable.
  10417. (mips_pop_frame): Delete function.
  10418. (mips_find_saved_regs): Delete function.
  10419. (mips_get_saved_register): Delete function.
  10420. (mips_saved_pc_after_call): Delete function.
  10421. (SIGFRAME_BASE): Delete macro.
  10422. (SIGFRAME_FPREGSAVE_OFF): Delete macro.
  10423. (SIGFRAME_PC_OFF): Delete macro.
  10424. (SIGFRAME_REGSAVE_OFF): Delete macro.
  10425. (mips_dump_tdep): Do not print deleted macro definitions.
  10426. 2004-02-10 Andrew Cagney <cagney@redhat.com>
  10427. * Makefile.in (SFILES): Remove explictly listed tui files.
  10428. (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
  10429. 2004-02-10 Jeff Johnston <jjohnstn@redhat.com>
  10430. * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
  10431. to use paddr functions to format ia64 addresses and long values.
  10432. (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
  10433. (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
  10434. (get_kernel_table, ia64_find_proc_info_x): Ditto.
  10435. (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
  10436. (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
  10437. 2004-02-10 Andrew Cagney <cagney@redhat.com>
  10438. * defs.h: Do not include "tui.h".
  10439. * gdb_curses.h: New file.
  10440. * tui/tui-hooks.h: New file.
  10441. * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
  10442. (tui_install_hooks, tui_remove_hooks): Delete declarations.
  10443. (tui_initialize_io): Delete declaration.
  10444. (tui_initialize_readline: Delete redundant declaration.
  10445. (struct tui_point): Delete definition.
  10446. * tui/tui-data.h (struct tui_point): Define.
  10447. * cli/cli-decode.c [TUI]: Include "tui/tui.h".
  10448. * utils.c: Include "tui/tui.h".
  10449. * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
  10450. * printcmd.c [TUI]: Include "tui/tui.h".
  10451. * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
  10452. * tui/tui-command.c: Include "gdb_curses.h".
  10453. * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
  10454. * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
  10455. * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
  10456. * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
  10457. * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
  10458. * Makefile.in: Update all dependencies.
  10459. (tui_hooks_h, gdb_curses_h): Define.
  10460. (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
  10461. 2004-02-10 Elena Zannoni <ezannoni@redhat.com>
  10462. * objfiles.h (struct objfile): Remove unused fields auxf1 and
  10463. auxf2. Add comments about some other rarely used fields.
  10464. 2004-02-10 Andrew Cagney <cagney@redhat.com>
  10465. * Makefile.in (init.c): Fix script removing duplicates. Problem
  10466. reported by Peter Schauer.
  10467. 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
  10468. * bcache.c (bcache_xmalloc): Use obstack_init instead of
  10469. obstack_specify_allocation.
  10470. * objfiles.c (allocate_objfile): Ditto.
  10471. * solib-sunos.c (solib_add_common_symbols)
  10472. (allocate_rt_common_objfile): Ditto.
  10473. * symfile.c (reread_symbols): Ditto.
  10474. * gdb_obstack.h: Add comment.
  10475. 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
  10476. * linespec.c (decode_line_1, locate_first_half)
  10477. (decode_compound, lookup_prefix_sym): Update comments. Delete old
  10478. commented out code.
  10479. 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
  10480. * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
  10481. obstack_free.
  10482. 2004-02-09 Andrew Cagney <cagney@redhat.com>
  10483. * blockframe.c (find_pc_partial_function): If find_pc_overlay
  10484. fails, try find_pc_section. Fix PR c++/1267.
  10485. * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
  10486. instead of find_pc_mapped_section.
  10487. (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
  10488. not default to the section containing PC. Fix PR symtab/1519.
  10489. 2004-02-09 Andrew Cagney <cagney@redhat.com>
  10490. * Makefile.in (mips-tdep.o): Update dependencies.
  10491. * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
  10492. "trad-frame.h".
  10493. (mips_unwind_pc): Return the pseudo PC register.
  10494. (mips_unwind_dummy_id): New function.
  10495. (mips16_fetch_instruction): New function.
  10496. (mips32_fetch_instruction): New function.
  10497. (struct mips_frame_cache): Define.
  10498. (mips_mdebug_frame_cache): New function.
  10499. (mips_mdebug_frame_this_id): New function.
  10500. (mips_mdebug_frame_prev_register): New function.
  10501. (mips_mdebug_frame_unwind): Define.
  10502. (mips_mdebug_frame_sniffer): New function.
  10503. (mips_mdebug_frame_base_address): New function.
  10504. (mips_mdebug_frame_base): Define.
  10505. (mips_mdebug_frame_base_sniffer): New function.
  10506. (mips_gdbarch_init): Append unwind and base sniffers. Set
  10507. unwind_dummy_id.
  10508. 2004-02-08 Andrew Cagney <cagney@redhat.com>
  10509. * frame.c: Print both the register number and name.
  10510. * Makefile.in (init.c): Eliminate duplicates. Combine two greps
  10511. and a sed into a single sed. Make .c and .o patterns more robust.
  10512. (OBS): Delete.
  10513. (INIT_FILES): Replace OBS with COMMON_OBS.
  10514. (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
  10515. 2004-02-08 Mark Kettenis <kettenis@gnu.org>
  10516. * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
  10517. the PT_WCOOKIE request.
  10518. 2004-02-08 Andrew Cagney <cagney@redhat.com>
  10519. * mips-tdep.c (mips_unwind_pc): New function.
  10520. (mips_gdbarch_init): Set mips_unwind_pc.
  10521. * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
  10522. (get_frame_id): Allow the UNKNOWN_FRAME.
  10523. (frame_register_unwind, get_frame_type): Ditto.
  10524. * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
  10525. and DEPRECATED_FP_REGNUM. Don't assume that the lack of
  10526. unwind_dummy_id indicates a legacy frame.
  10527. * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
  10528. * configure: Re-generate.
  10529. * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
  10530. methods.
  10531. 2004-02-08 Andrew Cagney <cagney@redhat.com>
  10532. * configure.in (CONFIG_ALL): Set to Makefile target, and not
  10533. makefile macro.
  10534. * configure: Re-generate.
  10535. (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
  10536. * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
  10537. (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
  10538. (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
  10539. (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
  10540. (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
  10541. (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
  10542. (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
  10543. (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
  10544. (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
  10545. 2004-02-07 Andrew Cagney <cagney@redhat.com>
  10546. * Makefile.in: Update all dependencies.
  10547. * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
  10548. * configure: Re-generate.
  10549. * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
  10550. (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
  10551. (COMMON_OBS): Add "main.o" and "annotate.o".
  10552. (ANNOTATE_OBS): Delete.
  10553. (OBS): Remove ANNOTATE_OBS.
  10554. (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
  10555. CONFIG_INITS.
  10556. (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
  10557. against CONFIG_OBS and "main.o".
  10558. (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
  10559. (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
  10560. * tui/tui-command.c: Include "gdb_string.h", delete register
  10561. attribute, use ISO-C function signatures.
  10562. * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
  10563. * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
  10564. * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
  10565. * tui/tui.c: Ditto.
  10566. * tui/tui-command.c: Change variable and function names to lower
  10567. case.
  10568. * tui/tui-data.c, tui/tui-disasm.c: Ditto.
  10569. * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
  10570. * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
  10571. * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
  10572. * tui/tui-winsource.c, tui/tui.c: Ditto.
  10573. 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
  10574. * buildsym.c (free_pending_blocks, finish_block)
  10575. (record_pending_block, make_blockvector, end_symtab): Replace
  10576. symbol_obstack with objfile_obstack.
  10577. * coffread.c (process_coff_symbol, coff_read_struct_type)
  10578. (coff_read_enum_type): Ditto.
  10579. * cp-namespace.c (initialize_namespace_symtab)
  10580. (check_one_possible_namespace_symbol): Ditto.
  10581. * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
  10582. (dwarf2_symbol_mark_computed): Ditto.
  10583. * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
  10584. * elfread.c (elf_symtab_read): Ditto.
  10585. * hpread.c (hpread_symfile_init, hpread_symfile_init)
  10586. (hpread_read_enum_type, hpread_read_function_type)
  10587. (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
  10588. Ditto.
  10589. * jv-lang.c (get_java_class_symtab, add_class_symbol)
  10590. (java_link_class_type): Ditto.
  10591. * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
  10592. (new_symbol): Ditto.
  10593. * minsyms.c (install_minimal_symbols): Ditto.
  10594. * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
  10595. (terminate_minimal_symbol_table): Replace symbol_obstack with
  10596. objfile_obstack.
  10597. (free_objfile): Remove freeing of symbol_obstack.
  10598. * objfiles.h: Remove symbol_obstack field.
  10599. * pa64solib.c (add_to_solist): Replace symbol_obstack with
  10600. objfile_obstack.
  10601. * solib-sunos.c (allocate_rt_common_objfile): Remove init of
  10602. symbol_obstack.
  10603. (solib_add_common_symbols): Replace symbol_obstack with
  10604. objfile_obstack.
  10605. * somsolib.c (som_solib_add): Ditto.
  10606. * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
  10607. (common_block_start, common_block_end): Ditto.
  10608. * symfile.c (reread_symbols): Remove freeing and init of
  10609. symbol_obstack.
  10610. (allocate_symtab): Rename symbol_obstack to objfile_obstack.
  10611. * symfile.h: Update comment.
  10612. * symmisc.c (print_objfile_statistics): Remove symbol_obstack
  10613. stats printing.
  10614. * symtab.c (symbol_set_names): Replace symbol_obstack with
  10615. objfile_obstack.
  10616. * symtab.h (struct general_symbol_info, struct minimal_symbol):
  10617. Update comments.
  10618. * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
  10619. (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
  10620. objfile_obstack.
  10621. 2004-02-07 Andrew Cagney <cagney@redhat.com>
  10622. * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
  10623. "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
  10624. fields and variables.
  10625. * tui/tui-wingeneral.h (m_beVisible): Delete macro.
  10626. (m_beInvisible): Delete macro.
  10627. * tui/tui-data.h: Fix case case fields and variables.
  10628. (m_genWinPtrIsNull): Delete macro.
  10629. (tui_win_list): Rename winList.
  10630. (TUI_SRC_WIN): Rename srcWin.
  10631. (TUI_DISASM_WIN): Rename disassemWin.
  10632. (TUI_DATA_WIN): Rename dataWin.
  10633. (TUI_CMD_WIN): Rename cmdWin.
  10634. (m_genWinPtrNotNull): Delete macro.
  10635. (m_winPtrIsNull): Delete macro.
  10636. (m_winPtrNotNull): Delete macro.
  10637. (tui_win_is_source_type): Replace m_winIsSourceType
  10638. (tui_win_is_auxillary): Replace m_winIsAuzillary.
  10639. (tui_win_has_locator): Replace m_hasLocator.
  10640. (tui_set_win_highlight): Replace m_setWinHighlightOn and
  10641. m_setWinHighlightOff.
  10642. * tui/tui-data.c: Update references.
  10643. (tui_win_is_source_type, tui_set_win_highlight): New functions.
  10644. (tui_win_has_locator, tui_win_is_auxillary): New functions.
  10645. * tui/tui-command.c, tui/tui-disasm.c: Update references.
  10646. * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
  10647. * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
  10648. * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
  10649. * tui/tui-winsource.c, tui/tui.c: Ditto.
  10650. 2004-02-07 Mark Kettenis <kettenis@gnu.org>
  10651. * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
  10652. * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
  10653. StackGhost.
  10654. * sparc-tdep.c (sparc32_frame_prev_register): Rename local
  10655. variable `i6' to `i7'.
  10656. (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
  10657. 2004-02-07 Andrew Cagney <cagney@redhat.com>
  10658. * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
  10659. (TuiPoint, TuiPointPtr): Ditto.
  10660. (TuiStatus, TuiStatusPtr): Ditto.
  10661. (TuiWinType, TuiWinTypePtr): Ditto.
  10662. (struct tui_point): Rename _TuiPoint.
  10663. (tui_get_low_disassembly_address): Rename
  10664. tuiGetLowDisassemblyAddress.
  10665. (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
  10666. (tuiFree): Delete declaration.
  10667. (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
  10668. (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
  10669. * tui/tui.c (tuiFree): Delete function.
  10670. * cli/cli-cmds.c (disassemble_command): Update references.
  10671. * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
  10672. * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
  10673. * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
  10674. * tui/tui-winsource.c: Ditto.
  10675. 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
  10676. * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
  10677. coffstab_build_psymtabs, elfstab_build_psymtabs)
  10678. (stabsect_build_psymtabs): Replace psymbol_obstack with
  10679. objfile_obstack.
  10680. * dwarf2-frame.c (decode_frame_entry_1): Ditto.
  10681. * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
  10682. Ditto.
  10683. * dwarfread.c (scan_compilation_units): Ditto.
  10684. * elfread.c (elfstab_offset_sections): Ditto.
  10685. * hppa-tdep.c (read_unwind_info): Ditto.
  10686. * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
  10687. (hpread_end_psymtab): Ditto.
  10688. * mdebugread.c (mdebug_build_psymtabs, add_pending)
  10689. (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
  10690. Ditto.
  10691. * mips-tdep.c (non_heuristic_proc_desc): Ditto.
  10692. * objfiles.c (add_to_objfile_sections)
  10693. (build_objfile_section_table): Ditto.
  10694. (allocate_objfile): Remove init of psymbol_obstack.
  10695. (free_objfile): Remove freeing of psymbol_obstack.
  10696. * objfiles.h (struct objfile): Remove field
  10697. psymbol_obstack. Update comments.
  10698. * pa64solib.c (pa64_solib_add_solib_objfile): Replace
  10699. psymbol_obstack with objfile_obstack.
  10700. * solib-sunos.c (allocate_rt_common_objfile): Remove init of
  10701. psymbol_obstack.
  10702. * somread.c (som_symfile_offsets, init_import_symbols)
  10703. (init_export_symbols): Replace psymbol_obstack with
  10704. objfile_obstack.
  10705. * somsolib.c (som_solib_add_solib_objfile): Ditto.
  10706. * symfile.c (default_symfile_offsets, syms_from_objfile)
  10707. (reread_symbols): Remove freeing and init of psymbol_obstack.
  10708. (cashier_psymtab): Update comment.
  10709. * symmisc.c (print_objfile_statistics): Don't report stats for
  10710. psymbol obstack.
  10711. * symtab.h (struct general_symbol_info, struct partial_symtab):
  10712. Update comments.
  10713. * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
  10714. (xcoff_symfile_offsets): Replace psymbol_obstack with
  10715. objfile_obstack.
  10716. 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
  10717. * objfiles.h (struct objfile): Add objfile_obstack field.
  10718. Remove type_obstack field.
  10719. * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
  10720. read_structure_scope read_enumeration, new_symbol): Replace
  10721. type_obstack with objfile_obstack.
  10722. * dwarfread.c (struct_type, enum_type): Ditto.
  10723. * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
  10724. (lookup_fundamental_type): Ditto.
  10725. * gdbtypes.h (TYPE_ALLOC): Ditto.
  10726. * hpread.c (hpread_read_enum_type, hpread_read_function_type)
  10727. (hpread_read_doc_function_type, hpread_read_struct_type)
  10728. (fix_static_member_physnames, hpread_read_array_type)
  10729. (hpread_read_subrange_type, hpread_type_lookup): Ditto.
  10730. * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
  10731. (java_link_class_type): Ditto.
  10732. * mdebugread.c (parse_type): Ditto.
  10733. * objfiles.c (allocate_objfile, free_objfile): Ditto.
  10734. * solib-sunos.c (solib_add_common_symbols): Ditto.
  10735. * stabsread.c (define_symbol, read_type, read_member_functions,
  10736. read_cpp_abbrev, read_one_struct_field): Ditto.
  10737. * symfile.c (reread_symbols): Ditto.
  10738. * symmisc.c (print_objfile_statistics): Ditto.
  10739. 2004-02-07 Andrew Cagney <cagney@redhat.com>
  10740. * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
  10741. (tui_exec_info_content): Rename TuiExecInfoContent.
  10742. (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
  10743. (TuiWinInfo, TuiWinInfoPtr): Ditto.
  10744. (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
  10745. (TuiList, TuiListPtr): Ditto.
  10746. (TuiLayoutType, TuiLayoutTypePtr): Ditto.
  10747. (TuiDataType, TuiDataTypePtr): Ditto.
  10748. (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
  10749. (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
  10750. (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
  10751. (TuiSourceElement, TuiSourceElementPtr): Ditto.
  10752. (TuiDataElement, TuiDataElementPtr): Ditto.
  10753. (TuiWinElement, TuiWinElementPtr): Ditto.
  10754. (TuiDataInfo, TuiDataInfoPtr): Ditto.
  10755. (TuiCommandElement, TuiCommandElementPtr): Ditto.
  10756. (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
  10757. (TuiWhichElement, TuiWhichElementPtr): Ditto.
  10758. (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
  10759. (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
  10760. * tui/tui-command.c, tui/tui-data.c: Update references.
  10761. * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
  10762. * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
  10763. * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
  10764. * tui/tui-winsource.c, tui/tui.c: Ditto.
  10765. 2004-02-07 Mark Kettenis <kettenis@gnu.org>
  10766. * dwarf2-frame.h: Update copyright.
  10767. (enum dwarf2_frame_reg_rule): New.
  10768. (struct dwarf2_frame_state_reg): New.
  10769. (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
  10770. * dwarf2-frame.c: Update copyright.
  10771. (enum dwarf2_reg_rule): Remove.
  10772. (struct dwarf2_frame_state): Remove defenition of `struct
  10773. dwarf2_frame_state_reg'.
  10774. (read_reg): Call get_frame_arch to get the architecture instead of
  10775. using CURRENT_GDBARCH.
  10776. (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
  10777. DWARF2_FRAME_.
  10778. (dwarf2_frame_init_reg): New function.
  10779. (dwarf2_frame_cache): Call get_frame_arch to get the architecture
  10780. instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
  10781. initialize the register state. Prefix old `enum dwarf2_reg_rule'
  10782. tags with DWARF2_FRAME_.
  10783. (dwarf2_frame_prev_register): Call get_frame_arch to get the
  10784. architecture instead of using CURRENT_GDBARCH. Prefix old `enum
  10785. dwarf2_reg_rule' tags with DWARF2_FRAME_.
  10786. 2004-02-06 Andrew Cagney <cagney@redhat.com>
  10787. * tui/tui-data.h (struct tui_list): Rename _TuiList.
  10788. (enum tui_data_type): Rename _TuiDataType.
  10789. (struct tui_layout_def): Rename _TuiLayoutDef.
  10790. (struct tui_source_element): Rename _TuiSourceElement.
  10791. (struct tui_data_element): Rename _TuiDataElement.
  10792. (struct tui_command_element): Rename _TuiCommandElement.
  10793. (struct tui_locator_element): Rename _TuiLocatorElement.
  10794. (union tui_which_element): Define.
  10795. (struct tui_win_element): Rename _TuiWinElement.
  10796. (struct tui_data_info): Rename _TuiDataInfo.
  10797. (struct tui_source_info): Rename _TuiSourceInfo.
  10798. (struct tui_command_info): Rename _TuiCommandInfo.
  10799. (tui_initialize_static_data): Rename initializeStaticData.
  10800. (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
  10801. (tui_alloc_win_info): Rename allocWinInfo.
  10802. (tui_init_generic_part): Rename initGenericPart.
  10803. (tui_init_win_info): Rename initWinInfo.
  10804. (tui_alloc_content): Rename allocContent.
  10805. (tui_add_content_elements): Rename addContentElements.
  10806. (tui_init_content_element): Rename initContentElement.
  10807. (tui_free_window): Rename freeWindow.
  10808. (tui_free_win_content): Rename freeWinContent.
  10809. (tui_free_data_content): Rename freeDataContent.
  10810. (tui_free_all_source_wins_content): Rename
  10811. freeAllSourceWinsContent.
  10812. (tui_del_window): Rename tuiDelWindow.
  10813. (tui_del_data_windows): Rename tuiDelDataWindows.
  10814. (tui_partial_win_by_name): Rename partialWinByName.
  10815. (tui_win_name): Rename winName.
  10816. (tui_current_layout): Rename currentLayout.
  10817. (tui_set_current_layout_to): Rename setCurrentLayoutTo.
  10818. (tui_term_height): Rename termHeight.
  10819. (tui_set_term_height_to): Rename setTermHeightTo.
  10820. (tui_term_width): Rename termWidth.
  10821. (tui_set_term_width_to): Rename setTermWidthTo.
  10822. (tui_set_gen_win_origin): Rename setGenWinOrigin.
  10823. (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
  10824. (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
  10825. (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
  10826. (tui_source_windows): Rename sourceWindows.
  10827. (tui_clear_source_windows): Rename clearSourceWindows.
  10828. (tui_clear_source_windows_detail): Rename
  10829. clearSourceWindowsDetail.
  10830. (tui_clear_win_detail): Rename clearWinDetail.
  10831. (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
  10832. (tui_default_tab_len): Rename tuiDefaultTabLen.
  10833. (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
  10834. (tui_win_with_focus): Rename tuiWinWithFocus.
  10835. (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
  10836. (tui_layout_def): Rename tuiLayoutDef.
  10837. (tui_win_resized): Rename tuiWinResized.
  10838. (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
  10839. (tui_next_win): Rename tuiNextWin.
  10840. (tui_prev_win): Rename tuiPrevWin.
  10841. (tui_add_to_source_windows): Rename addToSourceWindows.
  10842. * tui/tui-winsource.c, tui/tui-win.c: Update references.
  10843. * tui/tui-layout.c, tui/tui-source.c: Ditto.
  10844. * tui/tui-stack.c, tui/tui-io.c: Ditto.
  10845. * tui/tui.c, tui/tui-data.c: Ditto.
  10846. * tui/tui-interp.c, tui/tui-data.c: Ditto.
  10847. * tui/tui-disasm.c, tui/tui-command.c: Ditto.
  10848. * tui/tui-source.h: Update copyright. Include "tui-data.h".
  10849. (struct symtab): Declare.
  10850. (tui_set_source_content): Rename tuiSetSourceContent.
  10851. (tui_show_symtab_source): Rename tuiShowSource.
  10852. (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
  10853. (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
  10854. * tui/tui-source.c: Update copyright. Update references.
  10855. * tui/tui-win.c, tui/tui-winsource.c: Update references.
  10856. * tui/tui-stack.c: Update references.
  10857. * tui/tui-win.h: Update copyright. Include "tui-data.h".
  10858. (struct tui_win_info): Declare.
  10859. (tui_scroll_forward): Rename tuiScrollForward.
  10860. (tui_scroll_backward): Rename tuiScrollBackward.
  10861. (tui_scroll_left): Rename tuiScrollLeft.
  10862. (tui_scroll_right): Rename tuiScrollRight.
  10863. (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
  10864. (tui_resize_all): Rename tuiResizeAll.
  10865. (tui_refresh_all_win): Rename tuiRefreshAll.
  10866. (tui_sigwinch_handler): Rename tuiSigwinchHandler.
  10867. * tui/tui-layout.c, * tui/tui-io.c: Update references.
  10868. * tui/tui-wingeneral.h, * tui/tui.c: Update references.
  10869. * tui/tui-disasm.c, * tui/tui-command.c: Update references.
  10870. * tui/tui-windata.h: Update copyright. Include "tui-data.h".
  10871. (tui_erase_data_content): Rename tuiEraseDataContent.
  10872. (tui_display_all_data): Rename tuiDisplayAllData.
  10873. (tui_check_data_values): Rename tuiCheckDataValues.
  10874. (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
  10875. (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
  10876. (tui_first_data_element_no_in_line): Rename
  10877. tuiFirstDataElementNoInLine.
  10878. (tui_delete_data_content_windows): Rename
  10879. tuiDeleteDataContentWindows.
  10880. (tui_refresh_data_win): Rename tuiRefreshDataWin.
  10881. (tui_display_data_from): Rename tuiDisplayDataFrom.
  10882. (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
  10883. * tui/tui-windata.c, tui/tui-hooks.c: Update references.
  10884. * tui/tui-win.c, tui/tui-regs.c: Update references.
  10885. * tui/tui-layout.c, tui/tui.c: Update references.
  10886. * tui/tui-wingeneral.h: Update copyright.
  10887. (m_allBeVisible): Delete macro.
  10888. (m_allBeInvisible): Delete macro.
  10889. (struct tui_gen_win_info): Declare.
  10890. (struct tui_win_info): Declare.
  10891. (tui_unhighlight_win): Rename unhighlightWin.
  10892. (tui_make_visible, tui_make_invisible): Replace makeVisible.
  10893. (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
  10894. (tui_make_window): Rename makeWindow.
  10895. (tui_copy_win): Rename copyWin.
  10896. (tui_box_win): Rename boxWin.
  10897. (tui_highlight_win): Rename highlightWin.
  10898. (tui_check_and_display_highlight_if_needed): Rename
  10899. checkAndDisplayHighlightIfNeeded.
  10900. (tui_refresh_all): Rename refreshAll.
  10901. (tui_delete_win): Rename tuiDelwin.
  10902. (tui_refresh_win): Rename tuiRefreshWin.
  10903. * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
  10904. (tui_make_visible, tui_make_invisible): New functions.
  10905. (tui_make_all_visible, tui_make_all_invisible): New functions.
  10906. (make_all_visible): Rename makeAllVisible.
  10907. * tui/tui-winsource.c, tui/tui-windata.c: Update references.
  10908. * tui/tui-data.c, tui/tui-winsource.c: Update references.
  10909. * tui/tui-windata.c, tui/tui-win.c: Update references.
  10910. * tui/tui-regs.c, tui/tui-layout.c: Update references.
  10911. * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
  10912. 2004-02-06 Mark Kettenis <kettenis@gnu.org>
  10913. * proc-api.c (write_with_trace): Initialize local variable to
  10914. silence compiler warning.
  10915. 2004-02-06 Andrew Cagney <cagney@redhat.com>
  10916. * tui/tui-source.h: Do not include "defs.h".
  10917. (struct tui_win_info): Declare.
  10918. (tui_set_source_content_nil): Declare.
  10919. * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
  10920. (union tui_line_or_address): Rename _TuiLineOrAddress.
  10921. * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
  10922. (tui_update_source_window): Rename tuiUpdateSourceWindow.
  10923. (tui_update_source_window_as_is): Rename
  10924. tuiUpdateSourceWindowAsIs.
  10925. (tui_update_source_windows_with_addr): Rename
  10926. tuiUpdateSourceWindowsWithAddr.
  10927. (tui_update_source_windows_with_line): Rename
  10928. tuiUpdateSourceWindowsWithLine.
  10929. (tui_clear_source_content): Rename tuiClearSourceContent.
  10930. (tui_erase_source_content): Rename tuiEraseSourceContent.
  10931. (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
  10932. (tui_show_source_content): Rename tuiShowSourceContent.
  10933. (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
  10934. (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
  10935. (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
  10936. (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
  10937. (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
  10938. (tui_update_exec_info): Rename tuiUpdateExecInfo.
  10939. (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
  10940. (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
  10941. (tui_line_is_displayed): Rename tuiLineIsDisplayed.
  10942. (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
  10943. (struct tui_win_info): Declare.
  10944. * tui/tui-stack.c: Update references.
  10945. * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
  10946. * tui/tui-win.c, tui/tui-source.c: Ditto.
  10947. * tui/tui.c, tui/tui-disasm.c: Ditto.
  10948. 2004-02-06 Mark Kettenis <kettenis@gnu.org>
  10949. * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
  10950. of UCONTEXT_ADDR. Fixes PR backtrace/1545.
  10951. 2004-02-05 Mark Kettenis <kettenis@gnu.org>
  10952. * infrun.c (handle_inferior_event): Allow for breakpoint
  10953. instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
  10954. and SIGEMT. Update comments.
  10955. * NEWS (Revised SPARC target): Mention support for non-executable
  10956. stack.
  10957. 2004-02-04 Mark Kettenis <kettenis@gnu.org>
  10958. * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
  10959. * inftarg.c: Update copyright year.
  10960. (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
  10961. * sparc-nat.c: Include "target.h" and "gdb_assert.h".
  10962. (sparc_xfer_wcookie): New function.
  10963. * sparc-tdep.c (sparc_fetch_wcookie): New function.
  10964. * Makefile.in (sparc-nat.o): Update dependencies.
  10965. * config/sparc/nm-nbsd.h: Include "target.h".
  10966. (NATIVE_XFER_WCOOKIE): New define.
  10967. (sparc_xfer_wcookie): New prototype.
  10968. 2004-02-04 Andrew Cagney <cagney@redhat.com>
  10969. * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
  10970. SYSCALL_TRAP function.
  10971. (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
  10972. 2004-02-04 Andrew Cagney <cagney@redhat.com>
  10973. Daniel Jacobowitz <drow@mvista.com>
  10974. * objfiles.h: Delete comments refering to inside_entry_func and
  10975. DEPRECATED_FRAME_CHAIN_VALID.
  10976. * defs.h (inside_entry_func): Update prototype..
  10977. * blockframe.c (inside_entry_func): Rename to
  10978. legacy_inside_entry_func. Add new inside_entry_func taking a frame.
  10979. * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
  10980. 2004-02-03 Jeff Johnston <jjohnstn@redhat.com>
  10981. * breakpoint.c (struct captured_parse_breakpoint_args): Move
  10982. outside of #ifdef SOLIB_ADD region.
  10983. (do_restore_lang_radix_cleanup): Ditto.
  10984. (resolve_pending_breakpoint): Ditto.
  10985. 2004-02-03 Andrew Cagney <cagney@redhat.com>
  10986. * ia64-tdep.c (read_sigcontext_register): Delete unused function.
  10987. (process_note_abi_tag_sections): Delete unused function.
  10988. (ia64_read_fp): Delete unused function.
  10989. (gdbarch_extract_struct_value_address): Delete declaration.
  10990. 2004-02-02 Andrew Cagney <cagney@redhat.com>
  10991. * vax-tdep.c (vax_frame_chain): Delete call to
  10992. deprecated_inside_entry_file.
  10993. * ns32k-tdep.c (ns32k_frame_chain): Ditto.
  10994. 2004-02-02 Mark Kettenis <kettenis@gnu.org>
  10995. * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
  10996. column that's "empty" or "same value" when eliminating REG_RA
  10997. rules.
  10998. 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
  10999. * NEWS: Add information about new pending breakpoint support.
  11000. 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
  11001. * breakpoint.h (struct breakpoint): Add new flag, from_tty,
  11002. and pending fields for pending breakpoint support.
  11003. * breakpoint.c (breakpoint_enabled): Add check for not pending.
  11004. (condition_command): Only parse condition if not a pending
  11005. breakpoint.
  11006. (print_one_breakpoint): Add support for pending breakpoints.
  11007. (describe_other_breakpoints): Add checks to verify we are not
  11008. dealing with pending breakpoints.
  11009. (check_duplicates): Don't check pending breakpoints.
  11010. (set_raw_breakpoint): Initialize pending flag.
  11011. (do_restore_lang_radix_cleanup): New cleanup routine.
  11012. (resolve_pending_breakpoint): New function.
  11013. (re_enable_breakpoints_in_shlibs): Try and resolve any
  11014. pending breakpoints via resolve_pending_breakpoint.
  11015. (mention): Add pending breakpoint support.
  11016. (parse_breakpoint_sals): Add new parameter to pass to
  11017. decode_line_1 to indicate silent errors when files or functions
  11018. are not found. Change all callers.
  11019. (do_captured_parse_breakpoint): New function.
  11020. (break_command_1): Change prototype to return an rc value and to
  11021. take an optional pending breakpoint pointer. Support creating
  11022. a pending breakpoint if a "not found" form of error occurs when
  11023. parsing the breakpoint. Also support resolving an existing pending
  11024. breakpoint and be silent if the resolution fails.
  11025. (create_breakpoints): Change prototype to take pending breakpoint
  11026. pointer. When resolving a pending breakpoint, use the new pointer
  11027. to provide a conditional or commands added by the end-user.
  11028. (delete_breakpoint): Add appropriate check for pending.
  11029. (breakpoint_re_set_one): Ditto.
  11030. (do_enable_breakpoint): Ditto.
  11031. 2004-02-02 David Carlton <carlton@kealia.com>
  11032. * valops.c (enum oload_classification): New.
  11033. (find_overload_match): Break implementation into separate
  11034. functions; delete #if 0'd code; look for symbols within
  11035. namespaces.
  11036. (find_oload_champ_namespace,find_oload_champ_namespace_loop)
  11037. (find_oload_champ,oload_method_static,classify_oload_match): New.
  11038. * cp-support.h: Add declaration for cp_func_name; update
  11039. declaration for make_symbol_overload_list.
  11040. * cp-support.c (cp_func_name): New.
  11041. (overload_list_add_symbol): Fix comment, use
  11042. SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
  11043. (make_symbol_overload_list): Take a function name and a namespace
  11044. instead of a symbol; change implementation.
  11045. (make_symbol_overload_list_using): New.
  11046. (make_symbol_overload_list_qualified, read_in_psymtabs): New.
  11047. 2004-02-02 Fred Fish <fnf@redhat.com>
  11048. * main.c (gdb_stdtarg): Move definition to group with other
  11049. gdb_stdtarg definitions and update copyright years.
  11050. * remote-sim.c (gdb_os_write_stderr): Write output to
  11051. gdb_stdtargerr stream instead of gdb_stdtarg stream.
  11052. (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
  11053. gdb_stderr stream and update copyright years.
  11054. 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
  11055. * Makefile.in (mips-linux-nat.o): Update dependencies.
  11056. * mips-linux-nat.c: Include mips-tdep.h.
  11057. 2004-02-01 Roland McGrath <roland@redhat.com>
  11058. * sol-thread.c (sol_thread_xfer_partial): New function.
  11059. (init_sol_thread_ops): Use that for to_xfer_partial hook.
  11060. (init_sol_core_ops): Likewise.
  11061. * procfs.c (procfs_xfer_partial): New function.
  11062. (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
  11063. * Makefile.in (procfs.o): Add $(auxv_h) dep.
  11064. * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
  11065. procfs_xfer_auxv function.
  11066. * procfs.c (procfs_make_note_section): If we can read
  11067. TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
  11068. * linux-proc.c (linux_make_note_section): Likewise.
  11069. * auxv.h: New file.
  11070. * auxv.c: New file.
  11071. * Makefile.in (auxv_h): New variable.
  11072. (COMMON_OBS): Add auxv.o here.
  11073. (auxv.o): New target.
  11074. * corelow.c (core_xfer_partial): New function.
  11075. (init_core_ops): Use it for core_ops.to_xfer_partial.
  11076. * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
  11077. * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
  11078. macro if that is defined.
  11079. 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
  11080. * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
  11081. and check the specified thread for each breakpoint.
  11082. * breakpoint.h (bpstat_stop_status): Update prototype.
  11083. * infrun.c (handle_inferior_event): Update calls to
  11084. bpstat_stop_status.
  11085. 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
  11086. * Makefile.in (cli-cmds.o): Add $(readline_h).
  11087. 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
  11088. * cli/cli-cmds.c: Include readline.h.
  11089. (complete_command): Pass the start of the last word to
  11090. complete_line.
  11091. 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
  11092. * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
  11093. argument, and change first argument to a CORE_ADDR.
  11094. * breakpoint.h (bpstat_stop_status): Update prototype.
  11095. * infrun.c (adjust_pc_after_break): Add a new comment.
  11096. (handle_inferior_event): Update calls to bpstat_stop_status.
  11097. 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
  11098. * breakpoint.h: Update copyright years.
  11099. 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
  11100. * breakpoint.c (software_breakpoint_inserted_here_p): New function.
  11101. (bpstat_stop_status): Don't decrement PC.
  11102. * breakpoint.h (software_breakpoint_inserted_here_p): Add
  11103. prototype.
  11104. * infrun.c (adjust_pc_after_break): New function.
  11105. (handle_inferior_event): Call it, early. Remove later references
  11106. to DECR_PC_AFTER_BREAK.
  11107. (normal_stop): Add commentary.
  11108. 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
  11109. * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
  11110. 2004-01-27 double-free fix.
  11111. 2004-01-31 Mark Kettenis <kettenis@gnu.org>
  11112. * sparc-tdep.c (sparc_fetch_wcookie): New function.
  11113. (sparc32_frame_prev_register): Handle StackGhost.
  11114. (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
  11115. 2004-01-29 Roland McGrath <roland@redhat.com>
  11116. * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
  11117. * configure: Regenerated.
  11118. * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
  11119. * Makefile.in (procfs.o): Add dep.
  11120. 2004-01-28 Andrew Cagney <cagney@redhat.com>
  11121. * tui/tui-stack.h: Update copyright.
  11122. (struct frame_info): Add opaque declaration.
  11123. (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
  11124. (tui_show_locator_content): Rename tuiShowLocatorContent.
  11125. (tui_show_frame_info): Rename tuiShowFrameInfo.
  11126. * tui/tui-stack.c: Update copyright. Update references.
  11127. * tui/tui-winsource.c: Update references.
  11128. * tui/tui-win.c: Update references.
  11129. * tui/tui-layout.c: Update references.
  11130. * tui/tui-hooks.c: Update copyright, update references.
  11131. * tui/tui.c: Update copyright, update references.
  11132. * tui/tui-disasm.c: Update references.
  11133. 2004-01-28 David Carlton <carlton@kealia.com>
  11134. * dwarf2read.c (add_partial_structure): Use demangled name if
  11135. namespace equals "".
  11136. 2004-01-27 Jim Blandy <jimb@redhat.com>
  11137. Clean up misapplied patch:
  11138. * dwarf2read.c (determine_prefix): Change one of the two forward
  11139. declarations for 'determine_prefix_aux' to a declaration for this.
  11140. (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
  11141. argument to 'die_specification'.
  11142. * dwarf2read.c (read_func_scope): Re-indent comment.
  11143. 2004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
  11144. * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
  11145. b->exp to NULL after freeing so that error during re-parsing or
  11146. evaluation of expressions associated with breakpoint don't
  11147. eventually lead to re-freeing of storage.
  11148. Committed by Andrew Cagney.
  11149. 2004-01-27 Andrew Cagney <cagney@redhat.com>
  11150. * source.c (ambiguous_line_spec): Delete undefined declaration.
  11151. * m32r-rom.c (m32r_set_board_address): Delete unused function.
  11152. (m32r_set_server_address, m32r_set_download_path): Ditto.
  11153. * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
  11154. 2004-01-27 Daniel Jacobowitz <drow@mvista.com>
  11155. * dwarf2read.c: Update calls to changed and renamed functions, and
  11156. references to moved variables.
  11157. (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
  11158. language, language_defn, list_in_scope, and ftypes members.
  11159. (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
  11160. (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
  11161. (baseaddr): Remove globals.
  11162. (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
  11163. (set_cu_language, die_is_declaration, die_specification)
  11164. (determine_prefix, determin_prefix_aux, class_name, namespace_name)
  11165. (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
  11166. (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
  11167. (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
  11168. (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
  11169. cu.list_in_scope. Don't initialize cu_header_offset.
  11170. (add_partial_symbol): Add local baseaddr.
  11171. (psymtab_to_symtab_1): Add local baseaddr. Use
  11172. objfile->section_offsets for consistency. Don't initialize
  11173. cu_header_offset; do initialize cu.header.offset and
  11174. cu.list_in_scope.
  11175. (read_file_scope, read_func_scope, read_lexical_block_scope)
  11176. (dwarf_decode_lines, new_symbol): Add local baseaddr.
  11177. 2004-01-27 Michael Chastain <mec.gnu@mindspring.com>
  11178. * PROBLEMS: Add gdb/1516.
  11179. 2003-12-29 Robert Millan <robertmh@gnu.org>
  11180. Patch committed by Andrw Cagney.
  11181. * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
  11182. * configure.tgt: Match knetbsd*-gnu.
  11183. 2004-01-26 Andrew Cagney <cagney@redhat.com>
  11184. * breakpoint.c (catch_command_1): Delete #ifdef code.
  11185. (catch_fork_command_1): Delete #ifdef wrapper.
  11186. (catch_exec_command_1): Ditto.
  11187. (catch_load_command_1): Ditto.
  11188. (catch_unload_command_1): Ditto.
  11189. * breakpoint.c (watchpoint_check): Delete #if0ed variable.
  11190. (catch_breakpoint): Delete #if0ed function.
  11191. (disable_catch_breakpoint): Ditto.
  11192. (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
  11193. (disable_catch, enable_catch, delete_catch): Ditto.
  11194. 2004-01-26 Andrew Cagney <cagney@redhat.com>
  11195. * remote.c (echo_check, quit_flag): Delete variables.
  11196. (cisco_kernel_mode): Delete variable.
  11197. (minitelnet_return, tty_input, escape_count): Delete variables.
  11198. (remote_cisco_mode): Delete variable.
  11199. (remote_cisco_open, remote_cisco_close): Delete function.
  11200. (remote_cisco_mourn, remote_cisco_wait): Delete function.
  11201. (init_remote_cisco_ops): Delete function.
  11202. (_initialize_remote): Do not install "remote cisco" code.
  11203. (read_frame): Delete cisco specific code.
  11204. (remote_info_process): Delete function.
  11205. (remote_wait): Delete cisco specific code.
  11206. (remote_cisco_section_offsets): Delete function.
  11207. (remote_cisco_objfile_relocate): Delete function.
  11208. (remote_async_wait): Delete cisco specific code.
  11209. (minitelnet, readtty, readsocket): Delete function.
  11210. 2004-01-26 Andrew Cagney <cagney@redhat.com>
  11211. * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
  11212. comments mentioning extract_returned_value_address.
  11213. * infcmd.c (print_return_value): Update. Add comments on
  11214. extract_returned_value_address.
  11215. * stack.c (return_command): Add comments on
  11216. extract_returned_value_address.
  11217. * values.c: Update comment.
  11218. * m32r-tdep.c: Update comment.
  11219. * sparc-tdep.c: Update comment.
  11220. * ia64-tdep.c (ia64_use_struct_convention): Update comment.
  11221. * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
  11222. * sh64-tdep.c (sh64_gdbarch_init): Update.
  11223. * sh-tdep.c (sh_gdbarch_init): Update.
  11224. * s390-tdep.c (s390_gdbarch_init): Update.
  11225. * rs6000-tdep.c (rs6000_gdbarch_init): Update.
  11226. * m68klinux-tdep.c (m68k_linux_init_abi): Update.
  11227. * m68k-tdep.c (m68k_gdbarch_init): Update.
  11228. * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
  11229. * m32r-tdep.c (m32r_gdbarch_init): Update.
  11230. * ia64-tdep.c (ia64_gdbarch_init): Update.
  11231. * h8300-tdep.c (h8300_gdbarch_init): Update.
  11232. * frv-tdep.c (frv_gdbarch_init): Update.
  11233. * arm-tdep.c (arm_gdbarch_init): Update.
  11234. * alpha-tdep.c (alpha_gdbarch_init): Update.
  11235. 2004-01-26 Andrew Cagney <cagney@redhat.com>
  11236. * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
  11237. SYMBOL_LOCATION_FUNCS
  11238. (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
  11239. "struct symbol_ops".
  11240. * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
  11241. type to "struct symbol_ops".
  11242. * symtab.h (struct symbol_ops): Rename "struct location_funcs".
  11243. (struct symbol): Replace ".aux_value.loc.funcs" and
  11244. ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
  11245. (SYMBOL_OBJFILE): Delete macro.
  11246. (SYMBOL_LOCATION_FUNCS): Delete macro.
  11247. (SYMBOL_LOCATION_BATON): Update.
  11248. * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
  11249. intead of SYMBOL_LOCATION_FUNCS.
  11250. * ax-gdb.c (gen_var_ref): Ditto.
  11251. * printcmd.c (address_info): Ditto.
  11252. * findvar.c (read_var_value): Ditto.
  11253. (symbol_read_needs_frame): Ditto.
  11254. 2004-01-26 Andrew Cagney <cagney@redhat.com>
  11255. * dwarf2read.c (read_func_scope): Document frame-base hack.
  11256. 2004-01-25 Mark Kettenis <kettenis@gnu.org>
  11257. * infcmd.c (print_return_value): Plug memory leak; delete
  11258. ui_stream object. Rename argument `structure_return' to
  11259. `struct_return'.
  11260. 2004-01-25 Mark Kettenis <kettenis@gnu.org>
  11261. * infcmd.c (print_return_value): Wrap long lines.
  11262. (finish_command_continuation, finish_command): Remove unused
  11263. variable `funcaddr'. Fix some coding-standards problems.
  11264. * sparc-tdep.c (sparc_regset_from_core_section): Check whether
  11265. SECT_SIZE is large enough, not whether it's exactly the right size.
  11266. (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
  11267. TDEP->fpregset to zero.
  11268. * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
  11269. floating-point registers for traditional NetBSD core files.
  11270. (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
  11271. TDEP->sizeof_fpregset here.
  11272. 2004-01-25 Mark Kettenis <kettenis@gnu.org>
  11273. * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
  11274. * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
  11275. function with code split out from
  11276. sparc32nbsd_sigcontext_frame_cache.
  11277. (sparc32nbsd_sigcontext_frame_cache): Use
  11278. sparc32nbsd_sigcontext_saved_regs.
  11279. (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
  11280. OpenBSD.
  11281. * sparcobsd-tdep.c: New file.
  11282. * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
  11283. (sparcobsd-tdep.o): New dependency.
  11284. * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
  11285. * config/sparc/obsd.mt: New file.
  11286. * sparc-tdep.c (sparc32_gdbarch_init): Don't require
  11287. TDEP->fpregset to be initialized to enable core file register
  11288. sets.
  11289. 2004-01-24 Mark Kettenis <kettenis@gnu.org>
  11290. * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
  11291. Add opaque declarations.
  11292. (sparc64nbsd_sigcontext_saved_regs): New prototype.
  11293. * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
  11294. function with code split out from
  11295. sparc64nbsd_sigcontext_frame_cache.
  11296. (sparc64nbsd_sigcontext_frame_cache): Use
  11297. sparc64nbsd_sigcontext_saved_regs.
  11298. (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
  11299. OpenBSD.
  11300. * sparc64obsd-tdep.c: New file.
  11301. * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
  11302. (sparc64obsd-tdep.o): New dependency.
  11303. * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
  11304. gdb_osabi to GDB_OSABI_OPENBSD_ELF.
  11305. * config/sparc/obsd64.mt: New file.
  11306. * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
  11307. read the instruction at PC.
  11308. * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
  11309. value of GDB_OSABI_DEFAULT.
  11310. (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
  11311. instead of GDB_OSABI_NETBSD_AOUT.
  11312. 2004-01-24 Nick Roberts <nick@nick.uklinux.net>
  11313. * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
  11314. copyright.
  11315. 2004-01-23 Andrew Cagney <cagney@redhat.com>
  11316. * printcmd.c (display_command): Replace tui_set_display call with
  11317. tui_set_layout_for_display_command.
  11318. * tui/tui.h (enum tui_win_type): Define.
  11319. (tui_set_layout): Delete declaration.
  11320. (tui_set_layout_for_display_command): Rename set_tui_layout.
  11321. * tui/tui-data.h (enum tui_layout_type): Define.
  11322. * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
  11323. "tui.h".
  11324. (tui_add_win_to_layout): Rename tuiAddWinToLayout.
  11325. (tui_default_win_height): Rename tuiDefaultWinHeight.
  11326. (tui_default_win_viewport_height): Rename
  11327. tuiDefaultWinViewportHeight.
  11328. (tui_set_layout): RenametuiSetLayout.
  11329. * tui/tui-layout.c: Update references.
  11330. * tui/tui.c: Update references.
  11331. * tui/tui-disasm.c: Update references.
  11332. 2004-01-23 David Carlton <carlton@kealia.com>
  11333. Partial workaround for PR c++/1511:
  11334. * cp-namespace.c: Include frame.h.
  11335. (cp_lookup_transparent_type): New
  11336. (cp_lookup_transparent_type_loop): New.
  11337. * cp-support.h: Declare cp_lookup_transparent_type.
  11338. * symtab.c (basic_lookup_transparent_type): Renamed from
  11339. lookup_transparent_type.
  11340. (lookup_transparent_type): Replace old body by a call to
  11341. current_language->la_lookup_transparent_type.
  11342. * symtab.h: Update copyright. Declare
  11343. basic_lookup_transparent_type.
  11344. * language.h: Update copyright.
  11345. (struct language_defn): Add la_lookup_transparent_type.
  11346. * language.c: Update copyright.
  11347. (unknown_language_defn): Add basic_lookup_transparent_type.
  11348. (auto_language_defn): Add basic_lookup_transparent_type.
  11349. (local_language_defn): Add basic_lookup_transparent_type.
  11350. * ada-lang.c: Update copyright.
  11351. (ada_language_defn): Add basic_lookup_transparent_type.
  11352. * c-lang.c: Update copyright.
  11353. (c_language_defn): Add basic_lookup_transparent_type.
  11354. (cplus_language_defn): Add basic_lookup_transparent_type.
  11355. (asm_language_defn): Add basic_lookup_transparent_type.
  11356. (minimal_language_defn): Add basic_lookup_transparent_type.
  11357. * f-lang.c: Update copyright.
  11358. (f_language_defn): Add basic_lookup_transparent_type.
  11359. * jv-lang.c: Update copyright.
  11360. (java_language_defn): Add basic_lookup_transparent_type.
  11361. * m2-lang.c: Update copyright.
  11362. (m2_language_defn): Add basic_lookup_transparent_type.
  11363. * objc-lang.c: Update copyright.
  11364. (objc_language_defn): Add basic_lookup_transparent_type.
  11365. * p-lang.c: Update copyright.
  11366. (p_language_defn): Add basic_lookup_transparent_type.
  11367. * scm-lang.c: Update copyright.
  11368. (scm_language_defn): Add basic_lookup_transparent_type.
  11369. * Makefile.in (cp-namespace.o): Depend on frame.h.
  11370. 2004-01-23 David Carlton <carlton@kealia.com>
  11371. Patch for PR c++/1520:
  11372. * dwarf2read.c (read_func_scope): Set processing_current_prefix
  11373. properly if we have a specification die.
  11374. (determine_prefix_aux): Rename from determine_prefix.
  11375. (determine_prefix): Like the old determine_prefix, but never
  11376. returns NULL.
  11377. 2004-01-23 Theodore A. Roth <troth@openavr.org>
  11378. * avr-tdep.c: Update copyright.
  11379. (avr_iaddr_p): Delete unused function.
  11380. (avr_saddr_p): Delete unused function.
  11381. 2004-01-23 David Carlton <carlton@kealia.com>
  11382. * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
  11383. Fix for PR symtab/1534.
  11384. 2004-01-23 Mark Kettenis <kettenis@gnu.org>
  11385. * NEWS (New native configurations): Mention OpenBSD/sparc and
  11386. OpenBSD/sparc64.
  11387. * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
  11388. * configure.host: Likewise.
  11389. * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
  11390. handler for OpenBSD.
  11391. * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
  11392. 2004-01-22 Mark Kettenis <kettenis@gnu.org>
  11393. * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
  11394. (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
  11395. * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
  11396. * cli/cli-cmds.c (shell_escape): Likewise.
  11397. * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
  11398. OpenBSD .note.openbsd.ident sections.
  11399. 2004-01-22 David Carlton <carlton@kealia.com>
  11400. * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
  11401. get_scope_pc_bounds.
  11402. (read_file_scope): Ditto.
  11403. (get_scope_pc_bounds): New function, produced by extracting code
  11404. from the above two functions, consolidating it, and adding support
  11405. for DW_TAG_namespace.
  11406. 2004-01-22 Mark Kettenis <kettenis@gnu.org>
  11407. * osabi.c (MAX_NOTESZ): New define.
  11408. (check_note): New function.
  11409. (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
  11410. check_note.
  11411. 2004-01-21 Roland McGrath <roland@redhat.com>
  11412. * MAINTAINERS (write after approval): Add myself.
  11413. 2004-01-21 Eli Zaretskii <eliz@gnu.org>
  11414. * utils.c (init_page_info): Move declarations of `rows' and
  11415. `cols' before the __GO32__-specific code. Move the closing brace
  11416. outside the #ifdef __GO32__..#endif block.
  11417. [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
  11418. 2004-01-21 Paul Brook <paul@codesourcery.com>
  11419. * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
  11420. BPSTAT_WHAT_CHECK_SHLIBS.
  11421. 2004-01-21 Paul Brook <paul@codesourcery.com>
  11422. * MAINTAINERS: Add myself to write-after-approval.
  11423. 2004-01-20 Andrew Cagney <cagney@redhat.com>
  11424. * ax-gdb.c (print_axs_value): Delete unused function.
  11425. * jv-lang.c (java_lookup_type): Delete unused function.
  11426. * cli/cli-dump.c (dump_filetype): Delete unused function.
  11427. * remote-mips.c (remote_mips_insert_hw_breakpoint)
  11428. (remote_mips_remove_hw_breakpoint): Delete unused functions.
  11429. (mips_getstring): Delete unused function.
  11430. (pmon_insert_breakpoint): Delete #if0ed function.
  11431. (PMON_MAX_BP): Delete #if0ed MACRO.
  11432. (mips_pmon_bp_info): Delete #if0ed variable.
  11433. (pmon_remove_breakpoint): Delete #if0ed function.
  11434. * monitor.c (monitor_write_even_block): Delete unused function.
  11435. (monitor_write_memory_block): Delete #if0ed code.
  11436. * dink32-rom.c (dink32_load): Delete unused function.
  11437. (_initialize_dink32_rom): Delete #if0ed code.
  11438. * d10v-tdep.c (d10v_daddr_p): Delete unused function.
  11439. * tui/tui-command.c: Update references.
  11440. * tui/tui-io.c: Update references.
  11441. * tui/tui-command.h: Update copyright.
  11442. (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
  11443. * source.c (ambiguous_line_spec): Delete never-defined function.
  11444. * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
  11445. * gdbtypes.c (add_name, add_mangled_type): Ditto.
  11446. * cli/cli-cmds.c (validate_comname): Ditto.
  11447. * tui/tui-disasm.h: Update copyright. Include "tui.h" and
  11448. "tui-data.h".
  11449. (tui_set_disassem_content): Rename tuiSetDisassemContent.
  11450. (tui_show_disassem): Rename tuiShowDisassem.
  11451. (tui_show_disassem_and_update_source): Rename
  11452. tuiVerticalDisassemScroll.
  11453. (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
  11454. (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
  11455. * tui/tui.h: Update copyright.
  11456. (enum tui_status): Define.
  11457. * tui/tui-data.h (enum tui_scroll_direction): Define.
  11458. * tui/tui-disasm.c: Update copyright. Update references.
  11459. * tui/tui-winsource.c: Update copyright. Update references.
  11460. * tui/tui-win.c: Update references.
  11461. * tui/tui-layout.c: Update references.
  11462. 2004-01-20 Andrew Cagney <cagney@redhat.com>
  11463. * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
  11464. sym2 to start of block.
  11465. 2004-01-19 Michael Chastain <mec.gnu@mindspring.com>
  11466. * MAINTAINERS: Delete mmalloc.
  11467. * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
  11468. * NEWS: Mention removal of --with-malloc.
  11469. * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
  11470. * config.in: Regenerate.
  11471. * configure: Regenerate.
  11472. * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
  11473. USE_MMALLOC, MMCHECK_FORCE.
  11474. * gdbinit.in: Remove mmalloc.
  11475. * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
  11476. * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
  11477. * config/i386/go32.mh: Likewise.
  11478. * config/i386/interix.mh: Likewise.
  11479. * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
  11480. 2004-01-19 Jeff Johnston <jjohnstn@redhat.com>
  11481. * linespec.c (decode_variable, symtab_from_filename): Call
  11482. error_silent with error message instead of throwing an exception
  11483. directly.
  11484. * defs.h (error_silent, error_output_message): Add prototypes.
  11485. (catch_exceptions_with_msg): Ditto.
  11486. * utils.c (error_silent, error_output_message): New functions.
  11487. * top.c (catch_exceptions_with_msg): New function.
  11488. 2004-01-20 Nick Roberts <nick@nick.uklinux.net>
  11489. * mi/mi-cmds.h (enum print_values): Add definition.
  11490. * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
  11491. type and value for simple data types and just the name and type
  11492. for complex ones, if required.
  11493. PR mi/1438
  11494. * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
  11495. children, if required.
  11496. 2004-01-19 Kevin Buettner <kevinb@redhat.com>
  11497. * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
  11498. unused declarations.
  11499. 2004-01-19 Andrew Cagney <cagney@redhat.com>
  11500. * top.h (mapped_symbol_files): Delete declaration.
  11501. * main.c (captured_main): Delete option "m" and "mapped".
  11502. * objfiles.c (mapped_symbol_files): Delete variable.
  11503. * symfile.c (symbol_file_command): Delete mmap code.
  11504. (symbol_file_add_with_addrs_or_offsets): Ditto.
  11505. (add_symbol_file_command, reread_separate_symbols): Ditto.
  11506. * objfiles.h (OBJF_MAPPED): Delete.
  11507. * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
  11508. (free_objfile) [USE_MMALLOC]: Ditto.
  11509. (open_existing_mapped_file): Delete function.
  11510. (open_mapped_file): Delete function.
  11511. (map_to_file): Delete function.
  11512. 2004-01-19 Kevin Buettner <kevinb@redhat.com>
  11513. * infrun.c (step_into_function): Account for possible breakpoint
  11514. adjustment when computing ``stop_func_start''.
  11515. 2004-01-19 Kevin Buettner <kevinb@redhat.com>
  11516. * target.c (default_region_size_ok_for_hw_watchpoint): Compare
  11517. the region size against the size of a pointer, not the size of
  11518. a register as given by DEPRECATED_REGISTER_SIZE.
  11519. 2004-01-19 Andrew Cagney <cagney@redhat.com>
  11520. * tui/tui-regs.h: Include "tui-data.h".
  11521. (tuiFirstRegElementNoInLine): Delete declaration.
  11522. (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
  11523. (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
  11524. (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
  11525. (tui_calculate_regs_column_count): Rename
  11526. tuiCalculateRegsColumnCount.
  11527. (tui_check_register_values): Rename tuiCheckRegisterValues.
  11528. (tui_show_registers): Rename tuiShowRegisters.
  11529. (tui_display_registers_from_line): Rename
  11530. tuiDisplayRegistersFromLine.
  11531. (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
  11532. (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
  11533. (tui_first_reg_element_no_inline): Rename
  11534. tuiFirstRegElementNoInLine.
  11535. * tui/tui-data.h: Update copyright.
  11536. (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
  11537. * tui/tui-windata.c: Update copyright, update references.
  11538. * tui/tui-regs.c: Update copyright, update references.
  11539. * tui/tui-win.c: Update copyright, update references.
  11540. * tui/tui-layout.c: Update copyright, update references.
  11541. 2004-01-18 Andrew Cagney <cagney@redhat.com>
  11542. * tui/tui-io.c: Update copyright.
  11543. (key_is_end_sequence, key_is_backspace): New functions.
  11544. (key_is_command_char, key_is_start_sequence): New function.
  11545. (tui_getc): Update references.
  11546. * tui/tui-io.h: Update copyright.
  11547. (m_tuiStartNewLine): Delete macro.
  11548. (m_isBackspace, m_isDeleteChar): Delete macros.
  11549. (m_isDeleteLine, m_isDeleteToEol): Delete macros.
  11550. (m_isNextPage, m_isPrevPage): Delete macros.
  11551. (m_isLeftArrow, m_isRightArrow): Delete macros.
  11552. (m_isXdbStyleCommandChar): Delete macro.
  11553. (key_is_start_sequence): Declare, replace m_isStartSequence.
  11554. (key_is_end_sequence): Declare, replace m_isEndSequence.
  11555. (key_is_backspace): Declare ,replace m_isBackspace.
  11556. (key_is_command_char): Declare, replace m_isCommandChar.
  11557. * tui/tui-command.c: Update copyright.
  11558. (tuiDispatchCtrlChar): Update references.
  11559. * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
  11560. tuiSourceWin.h.
  11561. * tui/tui-command.c: Rename tui/tuiCommand.c.
  11562. * tui/tui-command.h: Rename tui/tuiCommand.h.
  11563. * tui/tui-data.c: Rename tui/tuiData.c.
  11564. * tui/tui-data.h: Rename tui/tuiData.h.
  11565. * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
  11566. * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
  11567. * tui/tui-io.c: Rename tui/tuiIO.c.
  11568. * tui/tui-io.h: Rename tui/tuiIO.h.
  11569. * tui/tui-layout.c: Rename tui/tuiLayout.c.
  11570. * tui/tui-layout.h: Rename tui/tuiLayout.h.
  11571. * tui/tui-regs.c: Rename tui/tuiRegs.c.
  11572. * tui/tui-regs.h: Rename tui/tuiRegs.h.
  11573. * tui/tui-source.c: Rename tui/tuiSource.c.
  11574. * tui/tui-source.h: Rename tui/tuiSource.h.
  11575. * tui/tui-stack.c: Rename tui/tuiStack.c.
  11576. * tui/tui-stack.h: Rename tui/tuiStack.h.
  11577. * tui/tui-win.c: Rename tui/tuiWin.c.
  11578. * tui/tui-win.h: Rename tui/tuiWin.h.
  11579. * tui/tui-windata.c: Rename tui/tuiDataWin.c.
  11580. * tui/tui-windata.h: Rename tui/tuiDataWin.h.
  11581. * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
  11582. * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
  11583. * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
  11584. * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
  11585. * tui/tui-file.c: Update includes.
  11586. * tui/tui-hooks.c: Update includes.
  11587. * tui/tui-interp.c: Update includes.
  11588. * tui/tui.c: Update includes.
  11589. * Makefile.in: Update all tui/ dependencies.
  11590. (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
  11591. * Makefile.in: Update copyright. Update dependencies.
  11592. * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
  11593. problem.
  11594. 2004-01-18 Andrew Cagney <cagney@redhat.com>
  11595. * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
  11596. instead of register_gdbarch_init.
  11597. * remote-sds.c (tohex): Delete unused function. Update copyright.
  11598. * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
  11599. * v850-tdep.c (v850_register_virtual_size): Ditto.
  11600. * target.c (normal_target_post_startup_inferior): Ditto.
  11601. * source.c (ambiguous_line_spec): Ditto.
  11602. * remote.c (adapt_remote_get_threadinfo): Ditto.
  11603. * mi/mi-out.c (out_field_fmt): Ditto.
  11604. * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
  11605. (output_control_change_notification): Ditto.
  11606. * m68k-tdep.c (m68k_register_byte): Ditto.
  11607. (m68k_remote_breakpoint_from_pc): Ditto.
  11608. * ui-out.c (init_ui_out_state): Delete unused declaration.
  11609. * stabsread.c (search_value): Ditto.
  11610. * mi/mi-cmd-env.c (env_cli_command): Ditto.
  11611. * maint.c (print_section_table): Ditto.
  11612. * infrun.c (set_follow_fork_mode_command): Ditto.
  11613. 2004-01-18 Mark Kettenis <kettenis@gnu.org>
  11614. * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
  11615. DW_CFA_def_cfa_exporession. Add support for
  11616. DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
  11617. DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
  11618. 2004-01-18 Andrew Cagney <cagney@redhat.com>
  11619. * ocd.c: Update copyright.
  11620. (bdm_read_register_command): Delete unused function.
  11621. (_initialize_remote_ocd): Delete commented out reference.
  11622. (get_quoted_char, reset_packet): Delete #if0ed function.
  11623. (output_packet, put_quoted_char): Delete #if0ed function.
  11624. (stu_put_packet, stu_get_packet): Delete #if0ed function.
  11625. (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
  11626. (BDM_BREAKPOINT): Delete #if0ed macro.
  11627. (remote_timeout): Delete #if0ed variable.
  11628. 2004-01-18 Mark Kettenis <kettenis@gnu.org>
  11629. * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
  11630. (core-sol2.o): Remove dependency.
  11631. * core-sol2.c: Remove file.
  11632. 2004-01-17 Andrew Cagney <cagney@redhat.com>
  11633. * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
  11634. * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
  11635. enums.
  11636. 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
  11637. * remote.c: Update copyright years.
  11638. 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
  11639. * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
  11640. 2004-01-17 Andrew Cagney <cagney@redhat.com>
  11641. * mdebugread.c: Update copyright.
  11642. (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
  11643. (parse_type, parse_procedure): Ditto.
  11644. (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
  11645. * cris-tdep.c (cris_store_struct_return): Put back accidently
  11646. deleted function.
  11647. * gdbarch.sh: Update copyright year.
  11648. * gdbarch.h, gdbarch.c: Re-generate.
  11649. 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
  11650. Suggested by George Anzinger.
  11651. * dwarf2expr.c (execute_stack_op): Fetch the second item from the
  11652. correct stack offset. Include unknown opcode numbers in the error
  11653. message.
  11654. 2004-01-17 Andrew Cagney <cagney@redhat.com>
  11655. * x86-64-tdep.c (x86_64_init_abi): No need to clear
  11656. extract_struct_value_address, i386 does not set it.
  11657. * sparc64-tdep.c (sparc64_init_abi): Do not set
  11658. extract_struct_value_address, never called.
  11659. (sparc64_extract_struct_value_address): Delete function.
  11660. * m68hc11-tdep.c: Update copyright.
  11661. (m68hc11_gdbarch_init): Delete redundant assignment of
  11662. extract_struct_value_address.
  11663. * i386-tdep.c: Update copyright.
  11664. (i386_gdbarch_init): Do not set extract_struct_value_address,
  11665. never called.
  11666. (i386_extract_struct_value_address): Delete function.
  11667. * sparc-tdep.c (sparc32_gdbarch_init): Do not set
  11668. extract_struct_value_address, never called.
  11669. (sparc32_extract_struct_value_address): #if 0 function. Add
  11670. comments explaining its future.
  11671. 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
  11672. * arm-tdep.c (arm_write_pc): New function.
  11673. (arm_gdbarch_init): Call set_gdbarch_write_pc.
  11674. 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
  11675. * breakpoint.c (must_shift_inst_regs): Delete.
  11676. (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
  11677. and SHIFT_INST_REGS.
  11678. * infcmd.c (step_1, step_1_continuation): Delete references to
  11679. SHIFT_INST_REGS.
  11680. * infrun.c (keep_going): Likewise.
  11681. * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
  11682. * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
  11683. 2004-01-17 Andrew Cagney <cagney@redhat.com>
  11684. * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
  11685. * gdbarch.h, gdbarch.c: Re-generate.
  11686. * infcmd.c (print_return_value): Delete reference to
  11687. DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
  11688. * cris-tdep.c (cris_gdbarch_init): Do not set
  11689. deprecated_extract_struct_value_address.
  11690. * xstormy16-tdep.c: Update copyright.
  11691. (xstormy16_extract_struct_value_address): Update to current
  11692. extract struct value address interface.
  11693. (xstormy16_gdbarch_init): Set extract_struct_value_address.
  11694. * sh64-tdep.c (sh64_extract_struct_value_address): Update to
  11695. current extract struct value address interface.
  11696. (sh64_gdbarch_init): Set extract_struct_value_address.
  11697. * cris-tdep.c: Update copyright.
  11698. (cris_extract_struct_value_address): Delete function.
  11699. (struct_return_address): Delete variable.
  11700. (cris_store_struct_return): Do not set struct_return_address.
  11701. * mcore-tdep.c: Update copyright.
  11702. (mcore_extract_struct_value_address): Delete function. Update
  11703. comments.
  11704. (mcore_gdbarch_init): Update.
  11705. * mn10300-tdep.c: Update copyright.
  11706. (mn10300_extract_struct_value_address): Delete function.
  11707. (mn10300_gdbarch_init): Update.
  11708. * v850-tdep.c: Update copyright.
  11709. (v850_extract_struct_value_address): Delete.
  11710. (v850_gdbarch_init): Update.
  11711. * ns32k-tdep.c: Update copyright.
  11712. (ns32k_extract_struct_value_address): Delete.
  11713. (ns32k_gdbarch_init): Update.
  11714. * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
  11715. (hppa_gdbarch_init): Update.
  11716. * vax-tdep.c: Update copyright.
  11717. (vax_extract_struct_value_address): Delete.
  11718. (vax_gdbarch_init): Update.
  11719. * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
  11720. * gdbarch.h, gdbarch.c: Re-generate.
  11721. * procfs.c (procfs_fetch_registers): Delete reference to
  11722. DEPRECATED_NPC_REGNUM.
  11723. (procfs_store_registers): Ditto.
  11724. * regcache.c (generic_target_write_pc): Simplify.
  11725. * lynx-nat.c: Delete #ifdef SPARC code. Not used.
  11726. * core-sol2.c (fetch_core_registers): Replace
  11727. DEPRECATED_NPC_REGNUM with equivalent tdep value.
  11728. * hppa-tdep.c: Update copyright year.
  11729. (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
  11730. NPC_REGNUM.
  11731. (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
  11732. * mips-tdep.c (mips_write_pc): New function.
  11733. (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
  11734. (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
  11735. (mips_find_saved_regs, mips_software_single_step: Ditto.
  11736. (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
  11737. mips_init_extra_frame_info, mips_pop_frame): Ditto.
  11738. 2004-01-17 Andrew Cagney <cagney@redhat.com>
  11739. * mips-tdep.c: Re-indent. Group functions by ABI.
  11740. 2004-01-17 Andrew Cagney <cagney@redhat.com>
  11741. * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
  11742. * gdbarch.c: Re-generate.
  11743. * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
  11744. DECR_PC_AFTER_BREAK to zero.
  11745. * vax-tdep.c (vax_gdbarch_init): Ditto.
  11746. * v850-tdep.c (v850_gdbarch_init): Ditto.
  11747. * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
  11748. * sh64-tdep.c (sh64_gdbarch_init): Ditto.
  11749. * sh-tdep.c (sh_gdbarch_init): Ditto.
  11750. * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
  11751. * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
  11752. * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
  11753. * mips-tdep.c (mips_gdbarch_init): Ditto.
  11754. * mcore-tdep.c (mcore_gdbarch_init): Ditto.
  11755. * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
  11756. * m32r-tdep.c (m32r_gdbarch_init): Ditto.
  11757. * ia64-tdep.c (ia64_gdbarch_init): Ditto.
  11758. * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
  11759. * hppa-tdep.c (hppa_gdbarch_init): Ditto.
  11760. * h8300-tdep.c (h8300_gdbarch_init): Ditto.
  11761. * frv-tdep.c (frv_gdbarch_init): Ditto.
  11762. * cris-tdep.c (cris_gdbarch_init): Ditto.
  11763. * avr-tdep.c (avr_gdbarch_init): Ditto.
  11764. * arm-tdep.c (arm_gdbarch_init): Ditto.
  11765. * i386-nto-tdep.c (i386nto_init_abi): Add comment.
  11766. 2004-01-17 J. Brobecker <brobecker@gnat.com>
  11767. * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
  11768. Delete, no longer used.
  11769. (read_subrange_type): New function, mostly extracted from
  11770. read_array_type().
  11771. (read_array_type): Replace extracted code by call to
  11772. read_subrange_type().
  11773. (dwarf2_get_attr_constant_value): New function.
  11774. (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
  11775. (add_partial_symbol): Likewise.
  11776. (process_die): Likewise.
  11777. (new_symbol): Likewise.
  11778. (read_type_die): Likewise.
  11779. 2004-01-16 Andrew Cagney <cagney@redhat.com>
  11780. * symfile.c: Update copyright year.
  11781. (compare_symbols): Delete unused function.
  11782. * stabsread.c: Update copyright year.
  11783. (lrs_general_complaint): Delete unused function.
  11784. (ref_search_value): Ditto.
  11785. (get_substring): Delete declaration.
  11786. * sh64-tdep.c: Update copyright year.
  11787. (sh64_get_gdb_regnum): Delete unused function.
  11788. * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
  11789. Delete unused function.
  11790. 2004-01-17 Mark Kettenis <kettenis@gnu.org>
  11791. * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
  11792. * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
  11793. 2004-01-16 Andrew Cagney <cagney@redhat.com>
  11794. Changes from Peter Schauer.
  11795. * rs6000-tdep.c: Update copyright year.
  11796. (rs6000_push_dummy_call): Update the stack pointer before
  11797. accessing the corresponding stack region.
  11798. * rs6000-nat.c: Update copyright year.
  11799. (set_host_arch): Set "info.abfd" to "exec_bfd".
  11800. 2004-01-15 Mark Kettenis <kettenis@gnu.org>
  11801. * blockframe.c: Update copyright year.
  11802. (inside_entry_func): Don't treat a zero PC specially.
  11803. 2004-01-14 Elena Zannoni <ezannoni@redhat.com>
  11804. * gcore.c (gcore_copy_callback): Use paddr_d to print size
  11805. variable.
  11806. (gcore_create_callback): Ditto. Skip any memory segment that has
  11807. no permissions set.
  11808. 2004-01-14 David Carlton <carlton@kealia.com>
  11809. Change symbols for C++ nested types to contain the fully qualified
  11810. name, if possible. (At least in the DWARF-2 case.) Partial fix
  11811. for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
  11812. c++/895.
  11813. * c-exp.y (qualified_type): Handle types nested within classes.
  11814. * cp-namespace.c: Update comments.
  11815. (cp_set_block_scope): Delete #if 0.
  11816. (cp_lookup_nested_type): Handle types nested within classes.
  11817. * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
  11818. when appropriate.
  11819. (add_partial_symbol): Add the name of the enclosing namespace to
  11820. types.
  11821. (pdi_needs_namespace): New.
  11822. (add_partial_namespace): Tweak comment.
  11823. (add_partial_structure): New.
  11824. (psymtab_to_symtab_1): Initialize processing_current_prefix
  11825. here...
  11826. (process_die): instead of here.
  11827. (read_structure_scope): Try to figure out the name of the class or
  11828. namespace that the structure might be defined within.
  11829. (read_enumeration): Generate fully-qualified names, if possible.
  11830. (read_namespace): Don't set name to NULL.
  11831. (die_specification): New.
  11832. (new_symbol): Generate fully-qualified names for types.
  11833. (read_type_die): Determine appropriate prefix.
  11834. (determine_prefix): New.
  11835. (typename_concat): New.
  11836. (class_name): New.
  11837. * valops.c (value_aggregate_elt): Pass NOSIDE to
  11838. value_struct_elt_for_reference.
  11839. (value_struct_elt_for_reference): Make static, add NOSIDE
  11840. parameter, call value_maybe_namespace_elt as a last resort.
  11841. (value_namespace_elt): Break out code into
  11842. value_maybe_namespace_elt.
  11843. (value_maybe_namespace_elt): New.
  11844. 2004-01-12 Andrew Cagney <cagney@redhat.com>
  11845. * mips-tdep.c (mips_convert_register_p): Handle both raw and
  11846. cooked floating-point registers.
  11847. (mips_gdbarch_init): Set convert_register_p, register_to_value,
  11848. and value_to_register.
  11849. 2004-01-13 Andrew Cagney <cagney@redhat.com>
  11850. * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
  11851. * gdbarch.c: Re-generate.
  11852. * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
  11853. FUNCTION_START_OFFSET.
  11854. * v850-tdep.c (v850_gdbarch_init): Ditto.
  11855. * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
  11856. * sh64-tdep.c (sh64_gdbarch_init): Ditto.
  11857. * sh-tdep.c (sh_gdbarch_init): Ditto.
  11858. * s390-tdep.c (s390_gdbarch_init): Ditto.
  11859. * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
  11860. * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
  11861. * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
  11862. * mips-tdep.c (mips_gdbarch_init): Ditto.
  11863. * mcore-tdep.c (mcore_gdbarch_init): Ditto.
  11864. * m68k-tdep.c (m68k_gdbarch_init): Ditto.
  11865. * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
  11866. * m32r-tdep.c (m32r_gdbarch_init): Ditto.
  11867. * ia64-tdep.c (ia64_gdbarch_init): Ditto.
  11868. * i386-tdep.c (i386_gdbarch_init): Ditto.
  11869. * hppa-tdep.c (hppa_gdbarch_init): Ditto.
  11870. * h8300-tdep.c (h8300_gdbarch_init): Ditto.
  11871. * frv-tdep.c (frv_gdbarch_init): Ditto.
  11872. * d10v-tdep.c (d10v_gdbarch_init): Ditto.
  11873. * cris-tdep.c (cris_gdbarch_init): Ditto.
  11874. * avr-tdep.c (avr_gdbarch_init): Ditto.
  11875. * arm-tdep.c (arm_gdbarch_init): Ditto.
  11876. * alpha-tdep.c (alpha_gdbarch_init): Ditto.
  11877. 2004-01-13 Daniel Jacobowitz <drow@mvista.com>
  11878. * infrun.c (follow_fork_mode_ask): Remove.
  11879. (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
  11880. (follow_fork): Simplify and remove internal error for
  11881. follow_fork_mode_ask.
  11882. (_initialize_infrun): Update "set follow-fork-mode" help text.
  11883. 2004-01-13 Andrew Cagney <cagney@redhat.com>
  11884. * configure.in: Update copyright year.
  11885. (build_warnings): Add -Wunused-label.
  11886. * configure: Re-generate.
  11887. 2004-01-12 Andrew Cagney <cagney@redhat.com>
  11888. * exec.h (exec_ops): Make "extern".
  11889. * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
  11890. the function is void.
  11891. (mips_pseudo_register_write): Ditto.
  11892. 2004-01-12 Andrew Cagney <cagney@redhat.com>
  11893. * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
  11894. call. Never defined.
  11895. * sparc-tdep.h (struct frame_info): Add opaque declaration.
  11896. * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
  11897. (struct sparc_gregset, struct regcache): Ditto.
  11898. * sparc-nat.c: Update copyright. Specify "GNU/Linux".
  11899. 2004-01-12 Andrew Cagney <cagney@redhat.com>
  11900. * mi/ChangeLog: Delete file. Renamed to ...
  11901. * mi/ChangeLog-1999-2003: New file.
  11902. * tui/ChangeLog: Delete file. Renamed to ...
  11903. * tui/ChangeLog-1998-2003: New file.
  11904. 2004-01-11 Mark Kettenis <kettenis@gnu.org>
  11905. * sparc64nbsd-tdep.c: Include "regset.h".
  11906. (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
  11907. Remove variables.
  11908. (fetch_core_registers): Remove function.
  11909. (sparc64nbsd_core_fns): Remove variable.
  11910. (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
  11911. functions.
  11912. (sparc64nbsd_init_abi): Initialize TDEP->gregset,
  11913. TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
  11914. (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
  11915. * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
  11916. sparc_extract_struct_value_address.
  11917. (sparc32_gdbarch_init): Set extract_struct_value_address.
  11918. * sparc64-tdep.c (sparc64_extract_struct_value_address): New
  11919. function.
  11920. (sparc64_init_abi): Set extract_struct_value_address. Don't set
  11921. return_value_on_stack.
  11922. * NEWS: Mention that %cs and %ss have been added to the AMD64
  11923. configurations
  11924. * frame.c: Update copyright year.
  11925. (get_prev_frame): Improve comment.
  11926. * sparc64fbsd-tdep.c: Include "regset.h".
  11927. (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
  11928. Remove variables.
  11929. (fetch_core_registers): Remove function.
  11930. (sparc64fbsd_core_fns): Remove variable.
  11931. (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
  11932. functions.
  11933. (sparc64fbsd_init_abi): Initialize TDEP->gregset,
  11934. TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
  11935. (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
  11936. * sparcnbsd-tdep.c: Include "regset.h".
  11937. (fetch_core_registers): Remove function.
  11938. (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
  11939. (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
  11940. functions.
  11941. (sparc32nbsd_init_abi): Initialize TDEP->gregset and
  11942. TDEP->fpregset.
  11943. (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
  11944. * sparc-tdep.h (struct regset): Provide opaque declaration.
  11945. (struct gdbarch_tdep): Add gregset, sizeof_gregset,
  11946. fpregset and sizeof_fpregset members.
  11947. * sparc-tdep.c (struct regset): Provide opaque declaration.
  11948. (sparc_regset_from_core_section): New function.
  11949. (sparc32_gdbarch_init): Initialize TDEP->gregset,
  11950. TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
  11951. Set regset_from_core_section when appropriate.
  11952. 2004-01-10 Mark Kettenis <kettenis@gnu.org>
  11953. * x86-64-tdep.c (amd64_non_pod_p): New function.
  11954. (amd64_classify_aggregate): Return class memory for non-POD
  11955. C++ structure types.
  11956. * x86-64-tdep.c (amd64_push_arguments): Add struct_return
  11957. argument. Use it to reserve a register if necessary.
  11958. (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
  11959. amd64_push_arguments.
  11960. * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
  11961. * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
  11962. register numbers in comments.
  11963. * x86-64-tdep.h: Update copyright year.
  11964. (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
  11965. Adjust for addition of %cs and %ss.
  11966. * amd64fbsd-nat.c: Update copyright year.
  11967. (reg_offset): Add register offsets for %cs and %ss.
  11968. * amd64fbsd-tdep.c: Update copyright year.
  11969. (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
  11970. (amd64fbsd_sc_reg_offset): Likewise.
  11971. * x86-64-linux-nat.c: Update copyright year.
  11972. (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
  11973. and %ss.
  11974. * amd64nbsd-nat.c: Update copyright year.
  11975. (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
  11976. * amd64nbsd-tdep.c: Update copyright year.
  11977. (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
  11978. * x86-64-linux-tdep.c: Update copyright year.
  11979. (user_to_gdb_regmap): Add mapping for %cs and %ss.
  11980. (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
  11981. * regformats/reg-x86-64.dat: Add %cs and %ss.
  11982. * blockframe.c (inside_entry_func): Reformat. Introduce new local
  11983. variables to prevent long lines. Update comments to reflect
  11984. reality.
  11985. 2004-01-09 David Carlton <carlton@kealia.com>
  11986. Checked in by Elena Zannoni <ezannoni@redhat.com>.
  11987. * dwarf2read.c (read_namespace): Pull out name-generating code
  11988. into namespace_name. Rename previous_namespace to previous_prefix
  11989. and processing_current_namespace to processing_current_prefix..
  11990. (namespace_name): New function.
  11991. (add_partial_symbol): Substitute uses of pdi->name with
  11992. actual_name.
  11993. * cp-support.h: Rename processing_current_namespace to
  11994. processing_current_prefix.
  11995. Update copyright year.
  11996. * cp-namespace.c: Rename processing_current_namespace to
  11997. processing_current_prefix.
  11998. Update copyright year.
  11999. 2004-01-09 Andrew Cagney <cagney@redhat.com>
  12000. * jv-valprint.c, ser-unix.c: Add missing copyright years.
  12001. 2004-01-09 Mark Kettenis <kettenis@gnu.org>
  12002. * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
  12003. complaining.
  12004. (process_one_symbol): Deal with N_PATCH stabs.
  12005. 2004-01-09 Elena Zannoni <ezannoni@redhat.com>
  12006. * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
  12007. ifdeffed code.
  12008. Update copyright year.
  12009. 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
  12010. * config/pa/tm-hppa.h: Update extern declarations for
  12011. hppa32_hpux_frame_saved_pc_in_sigtramp,
  12012. hppa32_hpux_frame_base_before_sigtramp, and
  12013. hppa32_hpux_frame_find_saved_regs_in_sigtramp.
  12014. 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
  12015. * config/pa/tm-hppah.h: Update copyright years.
  12016. 2004-01-08 Andrew Cagney <cagney@redhat.com>
  12017. * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
  12018. (mips_o32_reg_struct_has_addr): Delete function.
  12019. (mips_gdbarch_init): Update.
  12020. (mips_extract_struct_value_address): Delete function.
  12021. 2004-01-08 David Mosberger <davidm@hpl.hp.com>
  12022. * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
  12023. reality.
  12024. 2004-01-07 Andrew Cagney <cagney@redhat.com>
  12025. * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
  12026. architecture's elf flags (when available).
  12027. * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
  12028. FPU to the start, check the MIPS FPU when looking for an old
  12029. architecture.
  12030. (set_mipsfpu_single_command): Update the architecture.
  12031. (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
  12032. * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
  12033. (mips_mask_address_p): Add "tdep" parameter.
  12034. (show_mask_address, mips_addr_bits_remove): Update.
  12035. (mips_dump_tdep): Update.
  12036. (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
  12037. (MIPS_STACK_ARGSIZE): Delete macro.
  12038. (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
  12039. (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
  12040. (mips_o64_push_dummy_call, mips_o32_return_value): Update.
  12041. (mips_dump_tdep): Update.
  12042. (MIPS_SAVED_REGSIZE): Delete macro.
  12043. (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
  12044. (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
  12045. (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
  12046. (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
  12047. (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
  12048. (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
  12049. (mips_pop_frame, return_value_location): Update.
  12050. (mips_n32n64_return_value, mips_dump_tdep): Update.
  12051. * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
  12052. MIPS ABI.
  12053. * mips-tdep.c: Update copyright.
  12054. (mips_gdbarch_init): Merge two code blocks handling the register
  12055. name and number layout.
  12056. 2004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
  12057. * tracepoint.c (validate_actionline): Fix segv at EOF
  12058. 2004-01-07 Michael Chastain <mec.gnu@mindspring.com>
  12059. * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
  12060. properly for static fields.
  12061. 2004-01-06 Jeff Johnston <jjohnstn@redhat.com>
  12062. Jason Molenda <jmolenda@apple.com>
  12063. * disasm.c: Update copyright to include 2004.
  12064. (do_mixed_source_and_assembly): For uiout asm list
  12065. and tuple cleanups, initialize to null_cleanup instead of
  12066. NULL and do so prior to loop. Only reset when we close off
  12067. the tuple/list. Move check for whether to close off the
  12068. asm tuple/list to after dump_insns call where it will be run
  12069. on each loop iteration.
  12070. 2004-01-05 Andrew Cagney <cagney@redhat.com>
  12071. * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
  12072. should be a switch case and not a label.
  12073. * mips-tdep.c (mips32_next_pc): Delete unused labels
  12074. "greater_equal_branch" and "less_zero_branch".
  12075. * jv-valprint.c (java_print_value_fields): Delete unused label
  12076. "flush_it".
  12077. * target.c (unpush_target): Only close a target that is in the
  12078. target stack.
  12079. 2004-01-05 Mark Kettenis <kettenis@gnu.org>
  12080. * sparc-tdep.c (sparc_extract_struct_value_address): Get the
  12081. address from [sp + 64] instead of %o2.
  12082. * frame.c (get_prev_frame): Don't try to unwind the PC. This
  12083. fixes PR backtrace/1476.
  12084. 2004-01-05 Andrew Cagney <cagney@redhat.com>
  12085. * libunwind-frame.h (struct frame_id): Add opaque declaration,
  12086. move to start of file.
  12087. * i386-tdep.h (struct regcache): Add opaque declaration.
  12088. * config/ia64/nm-linux.h (struct target_ops): Add opaque
  12089. declaration.
  12090. * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
  12091. (ia64_gdbarch_init): Use "GNU/Linux" in comment.
  12092. * win32-nat.c (fake_create_process): Use ISO C style definition.
  12093. * stabsread.c (define_symbol): Delete #ifndef
  12094. DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
  12095. stabs_argument_has_addr call, macro never defined.
  12096. 2004-01-04 Michael Chastain <mec.gnu@mindspring.com>
  12097. * op50-rom.c: Delete.
  12098. * w89k-rom.c: Delete.
  12099. * Makefile.in: Remove references.
  12100. 2004-01-04 Mark Kettenis <kettenis@gnu.org>
  12101. * x86-64-tdep.c: Update copyright year.
  12102. (struct amd64_register_info): Rename from x86_64_register_info.
  12103. (amd64_register_info): Rename from x86_64_register_info.
  12104. (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
  12105. (amd64_register_name): Rename from x86_64_register_name.
  12106. (amd64_register_type): Rename from x86_64_register_type.
  12107. (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
  12108. (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
  12109. (amd64_dwarf_reg_to_regnum): Rename from
  12110. x86_64_dwarf_reg_to_regnum.
  12111. (amd64_convert_register_p): Rename from x86_64_convert_register_p.
  12112. (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
  12113. (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
  12114. (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
  12115. (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
  12116. (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
  12117. (amd64_skip_prologue): Rename from x86_64_skip_prologue.
  12118. (amd64_frame_cache): Rename from x86_64_frame_cache.
  12119. (amd64_frame_this_id): Rename from x86_64_frame_this_id.
  12120. (amd64_frame_prev_register): Rename from
  12121. x86_64_frame_prev_register.
  12122. (amd64_frame_unwind): Rename from x86_64_frame_unwind.
  12123. (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
  12124. (amd64_sigtramp_frame_cache): Rename from
  12125. x86_64_sigtramp_frame_cache.
  12126. (amd64_sigtramp_frame_prev_register): Rename from
  12127. x86_64_sigtramp_frame_prev_register.
  12128. (amd64_sigtramp_frame_unwind): Rename from
  12129. x86_64_sigtramp_frame_unwind.
  12130. (amd64_sigtramp_frame_sniffer): Rename from
  12131. x86_64_sigtramp_frame_sniffer.
  12132. (amd64_frame_base_address): Rename from x86_64_frame_base_address.
  12133. (amd64_frame_base): Rename from x86_64_frame_base.
  12134. (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
  12135. (amd64_frame_align): Rename from x86_64_frame_align.
  12136. (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
  12137. (amd64_regset_from_core_section): Rename from
  12138. x86_64_regset_from_core_section.
  12139. (x86_64_init_abi): Update comments.
  12140. 2004-01-04 Nick Roberts <nick@nick.uklinux.net>
  12141. * MAINTAINERS (write after approval): Add myself.
  12142. 2004-01-04 Mark Kettenis <kettenis@gnu.org>
  12143. * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
  12144. `float' arguments.
  12145. 2004-01-04 Mark Kettenis <kettenis@gnu.org>
  12146. * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
  12147. such that it mentions a specific version of GCC that exhibits this
  12148. bug.
  12149. 2004-01-03 Mark Kettenis <kettenis@gnu.org>
  12150. * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
  12151. structure that has a single `float' member, store it in %f1 in
  12152. addition to %f0.
  12153. * sparc-sol2-nat.c: Add missing '\'.
  12154. * sparc-tdep.c (sparc32_return_value): New function.
  12155. (sparc32_use_struct_convention, sparc32_return_value_on_stack):
  12156. Remove functions.
  12157. (sparc32_gdbarch_init): Set return_value, don't set
  12158. extract_return_value, store_return_value, use_struct_convention
  12159. and return_value_on_stack.
  12160. * sparc-sol2-nat.c: Add missing ')'.
  12161. 2004-01-03 J. Brobecker <brobecker@gnat.com>
  12162. * infrun.c (handle_step_into_function): New function.
  12163. (handle_inferior_event): Extract out some code into the new
  12164. function above.
  12165. 2004-01-03 J. Brobecker <brobecker@gnat.com>
  12166. * infrun.c (handle_inferior_event): Move the declaration of
  12167. real_stop_pc inside the if blocks where it is used.
  12168. 2004-01-03 Mark Kettenis <kettenis@gnu.org>
  12169. * sparc64-tdep.c (sparc64_16_byte_align_p)
  12170. (sparc64_store_floating_fields, sparc64_store_floating_fields):
  12171. Use check_typedef to get subtypes of structures and unions.
  12172. (sparc64_store_return_value): Fix calculation of the appropriate
  12173. offset into VALBUF when storing a structure or union.
  12174. (sparc64_return_value): New function.
  12175. (sparc64_use_struct_convention): Remove function.
  12176. (sparc64_init_abi): Set return_value, don't set
  12177. extract_return_value, store_return_value and
  12178. use_struct_convention.
  12179. 2004-01-03 Eli Zaretskii <eliz@elta.co.il>
  12180. * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
  12181. bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
  12182. gdb/config/alpha/xm-alphaosf.h,
  12183. gdb/config/powerpc/tm-ppcle-eabi.h,
  12184. gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
  12185. gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
  12186. gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
  12187. gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
  12188. gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
  12189. gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
  12190. gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
  12191. gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
  12192. gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
  12193. gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
  12194. gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
  12195. nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
  12196. include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
  12197. opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
  12198. opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
  12199. sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
  12200. sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
  12201. sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
  12202. sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
  12203. sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
  12204. sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
  12205. Remove lines for .cvsignore files.
  12206. 2004-01-03 J. Brobecker <brobecker@gnat.com>
  12207. * infrun.c: Back out the previous change.
  12208. 2004-01-03 Mark Kettenis <kettenis@gnu.org>
  12209. * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
  12210. sparc-*-sunos4* to the list of REMOVED configurations.
  12211. * configure.tgt: Add back sparc-*-vxworks*.
  12212. * remote-vxsparc.c: Remove all includes except for "defs.h",
  12213. "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
  12214. Include "sparc-tdep.h".
  12215. (SPARC_R_G1): New define.
  12216. (vxsparc_gregset): New variable.
  12217. (ext_format_sparc): Remove extern declaration.
  12218. (vx_read_register): Rewrite to use sparc32_supply_gregset and
  12219. sparc32_supply_fpregset.
  12220. (vx_write_register): Rewrite to use sparc32_collect_gregset,
  12221. sparc_collect_rwindow and sparc32_collect_fpregset.
  12222. * config/sparc/tm-vxworks.h: New file, based on recently removed
  12223. tm-vxsparc.h.
  12224. * config/sparc/vxworks.mt: New file, based on recently removed
  12225. vxworks.mt.
  12226. 2004-01-03 J. Brobecker <brobecker@gnat.com>
  12227. * infrun.c (handle_step_into_function): New function.
  12228. (handle_inferior_event): Extract out some code into the new
  12229. function above.
  12230. 2004-01-02 Mark Kettenis <kettenis@gnu.org>
  12231. * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
  12232. sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
  12233. sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
  12234. sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
  12235. sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
  12236. sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
  12237. (sparc_nat_h): New variable.
  12238. (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
  12239. (tm-sun4os4.h): Remove dependency.
  12240. (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
  12241. (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
  12242. sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
  12243. sparc-tdep.o): Update dependencies.
  12244. (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
  12245. sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
  12246. sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
  12247. dependencies.
  12248. * configure.host: Remove existing sparc-*-lynxos*,
  12249. sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
  12250. ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
  12251. sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
  12252. sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
  12253. triplets.
  12254. * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
  12255. sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
  12256. sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
  12257. sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
  12258. new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
  12259. sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
  12260. sparc64-*-solaris2* and sparc64-*-* triplets.
  12261. * sparc64-tdep.c: Update copyright year. Include "inferior.h",
  12262. "symtab.h" and "objfiles.h".
  12263. (BIAS): Remove define.
  12264. (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
  12265. (X_DISP19): Remove macros.
  12266. (sparc_fetch_instruction): Remove function.
  12267. (struct gdbarch_tdep): Remove definition.
  12268. (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
  12269. (sparc_breakpoint_from_pc): Remove function.
  12270. (struct sparc64_frame_cache): Remove definition.
  12271. (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
  12272. sparc64_unwind_pc): Remove functions.
  12273. (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
  12274. `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
  12275. of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
  12276. (sparc64_frame_cache): Change return type to `struct
  12277. sparc_frame_cache *'. Simply call sparc_frame_cache.
  12278. (sparc64_frame_this_id, sparc64_frame_prev_register,
  12279. sparc64_frame_base_address): Use `struct sparc_frame_cache'
  12280. instead of `struct sparc64_frame_cache.
  12281. (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
  12282. sparc_analyze_control_transfer, sparc_software_single_step,
  12283. sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
  12284. _initialize_sparc64_tdep): Remove functions.
  12285. (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
  12286. (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
  12287. macros.
  12288. (sparc64_supply_gregset, sparc64_collect_gregset,
  12289. sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
  12290. (sparc64_init_abi): New function.
  12291. * sparc64-tdep.h: Update copyright year. Fix typo in multiple
  12292. inclusion guard. Include "sparc-tdep.h".
  12293. (BIAS): Define.
  12294. (r_tstate_offset, r_fprs_offset): New defines.
  12295. (enum sparc_regnum): Remove defenition.
  12296. (enum sparc64_regnum): Reformat.
  12297. (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
  12298. (sparc64_init_abi, sparc64_supply_gregset,
  12299. sparc64_collect_gregset, sparc64_supply_fpregset,
  12300. sparc64_collect_fpregset): New prototypes.
  12301. (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
  12302. Add extern declarations.
  12303. (sparc64_sol2_init_abi): New prototype.
  12304. (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
  12305. (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
  12306. prototypes.
  12307. * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
  12308. "sparnbsd-nat.h".
  12309. (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
  12310. functions.
  12311. (_initialize_sparc64fbsd_nat): Remove initialization of
  12312. sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
  12313. sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
  12314. sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
  12315. * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
  12316. "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
  12317. (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
  12318. (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
  12319. (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
  12320. (sparc64fbsd_r_y_offset): Remove variables.
  12321. (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
  12322. Make static and const.
  12323. (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
  12324. (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
  12325. functions.
  12326. (sparc64fbsd_gregset): New variable.
  12327. (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
  12328. and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
  12329. and sparc64_supply_fpregset.
  12330. (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
  12331. (sparc64fbsd_sigtramp_frame_this_id)
  12332. (sparc64fbsd_sigtramp_frame_prev_register): New functions.
  12333. (sparc64fbsd_sigtramp_frame_unwind): New variable.
  12334. (sparc64fbsd_sigtramp_frame_sniffer): New function.
  12335. (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
  12336. sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
  12337. * sparcnbsd-tdep.c: Update copyright year. Include
  12338. "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
  12339. "trad-frame.h" and "gdb_assert.h", don't include "target.h",
  12340. "value.h" and "sparcnbsd-tdep.h".
  12341. (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
  12342. (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
  12343. (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
  12344. (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
  12345. defines.
  12346. (sparcnbsd_gregset): New variable.
  12347. (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
  12348. (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
  12349. (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
  12350. (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
  12351. (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
  12352. variables.
  12353. (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
  12354. (sparc32nbsd_sigcontext_frame_this_id)
  12355. (sparc32nbsd_sigcontext_frame_prev_register): New functions.
  12356. (sparc32nbsd_sigcontext_frame_unwind): New variable.
  12357. (sparc32nbsd_sigtramp_frame_sniffer): New function.
  12358. (sparcnbsd_get_longjmp_target_32,
  12359. sparcnbsd_get_longjmp_target_64): Remove functions.
  12360. (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
  12361. (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
  12362. sparcnbsd_init_elf): Remove.
  12363. (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
  12364. (sparcnbsd_elf_init_abi): New functions.
  12365. (_initialize_sparcnbsd_tdep): New prototype.
  12366. (_initialize_sparnbsd_tdep): Update.
  12367. * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
  12368. corelow.o. Add sparc64-nat.o and sparc-nat.o.
  12369. * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
  12370. * config/sparc/linux.mh: Update comment.
  12371. (XM_FILE, HOST_IPC): Remove variables.
  12372. (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
  12373. sparc-linux-nat.o.
  12374. * config/sparc/linux.mt: Update comment.
  12375. (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
  12376. * config/sparc/nbsd.mt: Reformat.
  12377. * config/sparc/nbsd64.mh: Update comment.
  12378. (NATDEPFILES): Add sparc-nat.o.
  12379. * config/sparc/nbsd64.mt: Update comment.
  12380. (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
  12381. (TM_FILE): Set to tm-nbsd.h.
  12382. * config/sparc/nbsdelf.mh: Update comment.
  12383. (NATDEPFILES): Add sparc-nat.o.
  12384. (XM_FILE): Delete.
  12385. * config/sparc/nbsdaout.mh: Update comment.
  12386. (NATDEPFILES): Add sparc-nat.o
  12387. (XM_FILE): Delete.
  12388. * config/sparc/nm-linux.h: Update copyright year. Don't include
  12389. "config/nm-svr4.h" and "solib.h". Add protection against multiple
  12390. inclusion.
  12391. (KERNEL_U_SIZE): Remove define.
  12392. (kernel_u_size): Remove prototype.
  12393. (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
  12394. * config/sparc/nm-nbsd.h: Update copyright. Don't include
  12395. "regcache.h".
  12396. (CHILD_PREPARE_TO_STORE): Remove define.
  12397. * config/sparc/nm-nbsdaout.h: Tweak some comments.
  12398. * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
  12399. sparcnbsd-nat.c: Rewrite files.
  12400. * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
  12401. * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
  12402. sparcnbsd-tdep.h: Remove files.
  12403. * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
  12404. config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
  12405. config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
  12406. config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
  12407. config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
  12408. config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
  12409. config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
  12410. config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
  12411. config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
  12412. config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
  12413. config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
  12414. config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
  12415. * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
  12416. sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
  12417. sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
  12418. * config/sparc/linux64.mh, config/sparc/linux64.mt,
  12419. config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
  12420. config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
  12421. config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
  12422. 2004-01-02 Andrew Cagney <cagney@redhat.com>
  12423. From 2003-12-18 Kazuhiro Inaoka:
  12424. * configure.host: Add m32r-linux target.
  12425. 2004-01-02 Michael Chastain <mec.gnu@mindspring.com>
  12426. * top.c (print_gdb_version): Update year to 2004.
  12427. 2004-01-02 Mark Mitchell <mark@codesourcery.com>
  12428. * MAINTAINERS: Add myself to the write-after-approval category.
  12429. 2004-01-02 Daniel Jacobowitz <drow@mvista.com>
  12430. From Bernardo Innocenti <bernie@develer.com>:
  12431. * configure.tgt: Add uClinux target.
  12432. 2004-01-02 Andrew Cagney <cagney@redhat.com>
  12433. * utils.c (do_my_cleanups): Make static, add forward declaration.
  12434. * defs.h (do_my_cleanups): Delete declaration.
  12435. 2004-01-02 Eli Zaretskii <eliz@elta.co.il>
  12436. * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
  12437. bfd/ChangeLog-0203.
  12438. 2004-01-02 Mark Kettenis <kettenis@gnu.org>
  12439. * configure.in: Check for <machine/reg.h>. Check for `struct reg'
  12440. in <machine/reg.h>.
  12441. * configure, config.in: Regenerate.
  12442. For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
  12443. tui/ChangeLog-1998-2003.
  12444. Local Variables:
  12445. mode: change-log
  12446. left-margin: 8
  12447. fill-column: 74
  12448. version-control: never
  12449. End: