ChangeLog-1998 288 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220
  1. Thu Dec 31 15:26:13 1998 Stan Shebs <shebs@andros.cygnus.com>
  2. * corelow.c (core_ops): Don't initialize statically.
  3. (init_core_ops): New function, fills in core_ops.
  4. (_initialize_corelow): Use it.
  5. Thu Dec 31 16:54:30 1998 David Taylor <taylor@texas.cygnus.com>
  6. The following changes were made by
  7. Elena Zannoni <ezannoni@kwikemart.cygnus.com>
  8. Edith Epstein <eepstein@sophia.cygnus.com>
  9. David Taylor <taylor@texas.cygnus.com>
  10. * config/pa/tm-hppa.h (INSTRUCTION_NULLIFIED): Change to read
  11. nullify instruction bit from IPSW only when we are not in a system
  12. call.
  13. (STRCAT_REGISTER, pa_do_strcat_registers_info): Additional
  14. parameter -- precision.
  15. * Makefile.in (BUILD_TUI): To build the tui, only when configured
  16. with --enable-tui.
  17. (YLWRAP): Use ylwrap to avoid problems on systems w/o bison.
  18. (gdb$(EXEEXT)): Make it dependent on BUILD_TUI.
  19. (all-tui): Remove dependency from phony target.
  20. (c-exp.tab.c): Use ylwrap instead of bison.
  21. (jv-exp.tab.c): Ditto.
  22. (f-exp.tab.c): Ditto.
  23. (m2-exp.tab.c): Ditto.
  24. * configure.in (ENABLE_CFLAGS): Define and export BUILD_TUI.
  25. * configure: Regenerated.
  26. * c-typeprint.c (c_type_print_base): Get to the method name by
  27. skipping over all the namespaces, classes and '::'.
  28. * infcmd.c (run_command): Only call SOLIB_RESTART if it's
  29. defined.
  30. (detach_command): Ditto.
  31. * infptrace.c (call_ptrace): Add some debugging code.
  32. * infrun.c (follow_inferior_fork): Only define on HP.
  33. (wait_for_inferior): Only call SOLIB_IN_DYNAMIC_LINKER if we have
  34. shared libraries; restore test of IN_SOLIB_DYNSYM_RESOLVE_CODE
  35. removed by HP.
  36. * Makefile.in (ALLDEPFILES): Add somread.c, hp-psymtab-read.c,
  37. hp-symtab-read.c.
  38. (SFILES): Remove the above files
  39. (COMMON_OBS): Remove somread.o
  40. (SFILES): Add the tui files to this, so they get
  41. included in etags tables.
  42. (all-tui): New rule, which does a recursive make in the tui
  43. subdir.
  44. (gdb$(EXEEXT)): Add tui-all to the list of
  45. dependencies, and add tui/libtui.a to the link list.
  46. (tui/libtui.a): When recursing, pass down
  47. ${FLAGS_TO_PASS}. And don't echo the make command. This is
  48. closer to what the other recursions do.
  49. (HFILES_NO_SRCDIR) add hpread.h.
  50. (COMMON_OBS): Add hp-psymtab-read.o, hp-symtab-read.o
  51. Allow the TUI code to be conditionally enabled.
  52. (TUI_TARGET, TUI_LIBRARY): New variables, whose values are set by
  53. the configuration script. They're set to the empty string when
  54. the TUI isn't enabled.
  55. (gdb$(GDBEXT)): Use those, instead of referring to tui-all and
  56. tui/libtui.a directly.
  57. * Makefile.in: Avoid spurious relinking.
  58. (gdb$(EXEEXT)): Depend on the actual tui library, not on a
  59. fictitious target. Since the fictitious target never existed, make
  60. would always relink.
  61. (tui/libtui.a): Renamed from all-tui. Always recurse to make sure
  62. the library is up to date.
  63. (TUI_TARGET): Variable removed; there's no need for it any more.
  64. * Makefile.in: Look for tui include files in the tui source dir.
  65. * Use automake's `aclocal' program to generate aclocal.m4, to allow
  66. us to use automake macros in configure.in with impunity.
  67. * acconfig.h: Add an entry for the `TUI' symbol.
  68. * acinclude.m4: New file, containing the code from the old
  69. aclocal.m4. Incorporate (by reference) ../bfd/acinclude.m4, not
  70. ../bfd/aclocal.m4, since we only want bfd's local macros.
  71. * aclocal.m4: Now automagically generated. Just run aclocal!
  72. * annotate.c (annotate_catchpoint): New function.
  73. * annotate.h: Taking the new includes (symtab.h and gdbtypes.h).
  74. not taking the ansic C build fix.
  75. (annotate_catchpoint): Declare.
  76. * blockframe.c (blockvector_for_pc_sect): Check that the end of
  77. the block is >= to the pc, not just >.
  78. * breakpoint.c (create_temp_exception_breakpoint): #If it out --
  79. nothing calls it.
  80. (bpstat_stop_status): Don't call SOLIB_HAVE_LOAD_EVENT if it's not
  81. defined; don't call SOLIB_HAVE_UNLOAD_EVENT if it's not defined.
  82. (bpstat_get_triggered_catchpoints): If we don't have shared
  83. library support, then don't call SOLIB_LOADED_LIBRARY_PATHNAME nor
  84. SOLIB_UNLOADED_LIBRARY_PATHNAME.
  85. (watch_command_1): Don't require a run before a watch command
  86. unless we're on HP [it's an HP OS bug, not a generic limitation]
  87. (catch_load_command_1): Don't define if no shared libraries.
  88. (catch_command_1): Don't claim to support fork catchpoints unless
  89. CHILD_INSERT_FORK_CATCHPOINT is defined, don't claim to support
  90. vfork catchpoints unless CHILD_INSERT_VFORK_CATCHPOINT is defined,
  91. don't clain to support shared library load catchpoints if shared
  92. libraries aren't supported, and don't claim to support exec
  93. catchpoints unless CHILD_INSERT_EXEC_CATCHPOINT is defined
  94. (bpstat_do_actions): If we just set cmd to NULL, don't then try to
  95. set it to cmd->next as we'll SEGV.
  96. (bpstat_do_actions): Simplify significantly. It's
  97. now almost as simple as before the merge and it no longer has the
  98. HP bug that breakpoint commands are executed repeatedly.
  99. (break_at_finish_command_1): Rewrite and make sure
  100. selected_frame points to a frame before using it. Fix string
  101. termination error.
  102. (break_at_finish_at_depth_command_1): Ditto.
  103. (can_use_hw_watchpoints): New static variable.
  104. (read_memory_nobpt): Test for breakpoint type bp_none.
  105. (insert_breakpoints): Test for breakpoint type bp_catch_exec;
  106. insure have a current frame before getting the frame address.
  107. (remove_breakpoints): Check for breakpoints of types bp_none,
  108. bp_catch_fork, bp_catch_vfork, and bp_catch_exec.
  109. (bpstat_stop_status): Fix updates of b->hit_count.
  110. (bpstat_have_active_hw_watchpoints): New function.
  111. (create_exec_event_watchpoint): New function.
  112. (watch_command_1): Use can_use_hw_watchpoints.
  113. (catch_fork_command_1): Change name of function to call from
  114. target_create_catch_(v)fork_hook to create_(v)fork_even_catchpoint.
  115. (delete_breakpoint): Test for already deleted breakpoints; add
  116. support for bp_catch_fork, bp_catch_vfork, and bp_catch_exec
  117. breakpoints.
  118. (_initialize_breakpoint): Add can-use-hw-watchpoints to list of
  119. user settable debugger variables.
  120. (clear_command): When there is no argument
  121. to the clear command, delete all breakpoints that are hit at
  122. default line. This will include a breakpoint whose line number
  123. does not correspond to the default line, but has been set at
  124. the default address.
  125. (delete_breakpoint): Don't call bpstat_clear_actions, instead
  126. clear things explicitly; if clearing breakpoint_at, then also
  127. clear any associated actions so that bpstat_do_actions won't try
  128. to execute them.
  129. (_initialize_breakpoint): Fix function name for bx command.
  130. (tbreak_command): Remove static from declaration.
  131. (maintenance_info_breakpoints): Ditto.
  132. (reattach_breakpoints): New funct definition, used with with
  133. hardware watchpoints
  134. (breakpoint_1): Change format and add entries to bptypes[]
  135. (maintenance_info_breakpoints): Function is no longer static
  136. (_initialize_breakpoint): Removed a comment.
  137. (exception_catchpoints_are_fragile,
  138. exception_support_initialized): Define.
  139. (breakpoint_here_p): Fixed syntax error in conditional
  140. (disable_watchpoints_before_interactive_call_start): Fixed call to
  141. check_duplicates. Need a section parameter.
  142. (enable_watchpoints_after_interactive_call_stop): Fixed call to
  143. check_duplicates. Need a section parameter.
  144. (breakpoint_re_set_one): Fixed call to check_duplicates. Need a
  145. section parameter.
  146. (delete_command): Fixed syntax error in conditional
  147. (breakpoint_re_set): Fixed some typos.
  148. (args_for_catchpoint_enable): New type for handling exceptions.
  149. (current_exception_event): New variable for handling exceptions.
  150. (insert_breakpoints): Check for additional breakpoint types --
  151. bp_catch_throw, bp_catch_catch, call_disabled. Also, do some
  152. additional work to handle an exception catchpoint.
  153. (remove_breakpoint): There are additional breakpoint types to
  154. check for: Bp_catch_throw, bp_catch_catch, call_disabled. Also do
  155. some additional work to remove the exception catchpoints
  156. (breakpoint_init_inferior): New input parameter. If there are
  157. exception catchpoints delete them.
  158. (breakpoint_here_p): There are additional breakpoint enable
  159. settings to check for: Shlib_disabled, call_disabled
  160. (breakpoint_thread_match): There are additional breakpoint enable
  161. settings to check for: Call_disabled
  162. (ep_is_catchpoint): There are additional breakpoint types to check
  163. for: Bp_catch_throw, bp_catch_catch
  164. (ep_is_exception_catchpoint): New function
  165. (bpstat_find_step_resume_breakpoint): New function
  166. (bpstat_do_actions): Introduce a local copy of the bpstat
  167. structure.
  168. (print_it_normal): There are additional breakpoint types to check
  169. for: Bp_catch_throw, bp_catch_catch Changeing the control
  170. structure a bit (adding else ifs) Add code to print out info about
  171. exceptions.
  172. (bpstat_stop_status): There are additional breakpoint enable
  173. settings to check for: Call_disabled. there are additional
  174. breakpoint types to chack for: Bp_catch_catch and bp_catch_throw.
  175. Check to see if stopped due to an exception. Minor fixes to the
  176. catch_errors calls. Make sure to count all encountered
  177. breakpoints. There was something funky going on previously with
  178. the counting.
  179. (bpstat_what): Add cases for new breakpoint types:
  180. bp_catch_catch, bp_catch_throw.
  181. (bpstat_get_triggered_catchpoints): Check for new breakpoint types
  182. : Bp_catch_catch, bp _catch_throw.
  183. (breakpoint_1): Account for new breakpoint types.
  184. (describe_other_breakpoints): Account for new breakpoint enable
  185. setting (call_disabled)
  186. (check_duplicates): Account for new breakpoint enable setting
  187. (call_disabled)
  188. (disable_breakpoints_in_shlibs): New function
  189. (disable_watchpoints_before_interactive_call_start): New function
  190. (mention): Account for new breakpoint types.
  191. (break_command_1): Some additional checking for a valid PC.
  192. (watch_command_1): Some dditional checking to prevent a watch
  193. before a run command.
  194. (ep_parse_optional_filename): Simplified for loop.
  195. (create_exception_catchpoint): New function
  196. (cover_target_enable_exception_callback): New function
  197. (handle_gnu_4_16_catch_command): This used to be thcatch_command_1
  198. function.e
  199. (create_temp_exception_breakpoint): New function
  200. (catch_command_1): Differs from gdb 4.16 and gdb 4.17. Is now
  201. calling catch_exception_command_1 using the EX_EVENT_CATCH and
  202. EX_EVENT_THROW values as parameters.
  203. (clear_command): Additional comments
  204. (delete_breakpoint): Handle exceptions. Check for additional
  205. breakpoint enable settings: Shlib_disabled, call_disabled.
  206. (delete_command): Hp folks are claiming that we should not delete
  207. shlib_event breakpoints
  208. (breakpoint_re_set_one): Moved call to check_duplicates. Add new
  209. breakpoint types to switch statement.
  210. (breakpoint_re_set_thread): New function
  211. (enable_command): Account for new breakpoint types.
  212. (insertion_state_t): New enumerated type.
  213. (remove_breakpoint): New param in funct prototype.
  214. (insert_breakpoints): Check for bp_catch_fork and bp_catch_vfork.
  215. (remove_breakpoints): Changed call to remove_breakpoint.
  216. (detach_breakpoints): New function.
  217. (remove_breakpoint): New parameter, is. Also changed the
  218. way b->inserted is set.
  219. (ep_is_catchpoint): New function.
  220. (ep_is_shlib_catchpoint): New function.
  221. (print_it_normal): Check for bp_catch_load, bp_catch_unload,
  222. bp_catch_fork, bp_catch_vfork, bp_catch_exec. Also new code
  223. to print out catchpoints properly.
  224. (bpstat_stop_status): Check for bp_catch_fork, bp_catch_vfork,
  225. and bp_catch_exec. Also, some code to check for catching a
  226. shared library load/unload.
  227. (bpstat_what): Added catch_shlib_event to class enumeration.
  228. Defined new macro, shlr. Expanded the bpstat_what_main_action
  229. table. Add cases for bp_catch_load, bp_catch_unload,
  230. bp_catch_fork, bp_catch_vfork, and bp_catch_exec.
  231. (bpstat_get_triggered_catchpoints): New function.
  232. (breakpoint_1): Changes to bptypes definition. Also check for
  233. bp_catch_load, bp_catch_unload, bp_catch_fork, bp_catch_vfork,
  234. bp_catch_exec. Similar changes to the switch statement.
  235. (set_raw_breakpoint): Initialize new breakpoint structure fields.
  236. dll_pathname, triggered_dll_pathname, forked_inferior_pid,
  237. exec_pathname.
  238. (create_solib_load_unload_event_breakpoint): New function.
  239. (create_solib_load_event_breakpoint): New function.
  240. (create_solib_unload_event_breakpoint): New function.
  241. (create_fork_vfork_event_catchpoint): New function.
  242. (create_fork_event_catchpoint): New function.
  243. (create_vfork_event_catchpoint): New function.
  244. (mention): New cases for bp_catch_load, bp_catch_unload,
  245. bp_catch_fork, bp_catch_vfork, bp_catch_exec.
  246. (ep_skip_leading_whitespace): New function.
  247. (ep_find_event_name_end): New function.
  248. (ep_parse_optional_if_clause): New function.
  249. (ep_parse_optional_filename): New function.
  250. (catch_fork_kind): New enumerated type.
  251. (catch_fork_command_1): New function.
  252. (catch_exec_command_1): New function.
  253. (catch_load_command_1): New function.
  254. (catch_unload_command_1): New function.
  255. (catch_throw_command_1): New function.
  256. (catch_command_1): Now calls catch_throw_command_1.
  257. (tcatch_command): New function.
  258. (delete_breakpoint): Changed call to remove_breakpoint.
  259. Also free the new fields in the breakpoint structure.
  260. (breakpoint_re_set_one): Handle bp_catch_load, bp_catch_unload,
  261. bp_catch_fork, bp_catch_vfork, bp_catch_exec.
  262. (disable_command): Handle bp_catch_load, bp_catch_unload,
  263. bp_catch_fork, bp_catch_vfork, bp_catch_exec.
  264. (enable_command): Handle bp_catch_load, bp_catch_unload,
  265. bp_catch_fork, bp_catch_vfork, bp_catch_exec.
  266. (_initialize_breakpoint): Alter add_com call for catchpoints,
  267. add add_com call for watchpoints.
  268. * breakpoint.h (enum bptype): New entries bp_catch_catch,
  269. bp_catch_throw, and bp_none, bp_catch_load, bp_catch_unload,
  270. bp_catch_fork, bp_catch_vfork,bp_catch_exec. Add declarations for
  271. new functions bpstat_have_active_hw_watchpoints and
  272. create_exec_event_catchpoint.
  273. (tbreak_command): Add prototype.
  274. (update_breakpoints_after_exec): Add prototype; update comments.
  275. (reattach_breakpoints): New funct prototype declaration.
  276. (enable): New enumerated value call_disabled.
  277. (bpstat_find_step_resume_breakpoint): New funct decl.
  278. (inf_context): New enumerated type.
  279. (breakpoint_re_set_thread): New funct decl.
  280. (breakpoint_init_inferior): New parameter.
  281. (disable_watchpoints_before_interactive_call_start): New funct decl.
  282. (enable_watchpoints_after_interactive_call_stop): New funct decl.
  283. (disable_breakpoints_in_shlibs): New funct decl.
  284. (struct breakpoint): New fields, dll_pathname,triggered_dll_pathname,
  285. forked_inferior_pid,exec_pathname BPSTAT_WHAT_CHECK_SHLIBS_RESUME_FROM_HOOK.
  286. (bpstat_get_triggered_catchpoints): New function.
  287. (detach_breakpoints): New function.
  288. (create_solib_load_event_breakpoint): New function.
  289. (create_solib_unload_event_breakpoint) New function.
  290. (create_fork_event_catchpoint): New function.
  291. (create_vfork_event_catchpoint): New function.
  292. (ep_is_catchpoint): New function.
  293. (ep_is_shlib_catchpoint) New function.
  294. (enum bpstat_what_main_action): New entry.
  295. * buildsym.c (finish_block): Get rid of processing_hp_compilation;
  296. handle LOC_INDIRECT case. Set the BLOCK_GCC_COMPILED to the right
  297. compiler.
  298. (push_context): Add symbols for parameters to the context_stack.
  299. (merge_symbol_lists): New function. Merges two symbol lists.
  300. (struct context_stack): Add new field param.
  301. (processing_hp_compilation): New external var.
  302. * c-exp.y: Use external flag hp_som_som_object_present to decide
  303. whether code was compiled by HP's compilers. Add two new C++
  304. tokens for true and false.
  305. (yylex): Check for template name is done differently for the
  306. HP/aCC compiler case; change some of the template processing code
  307. for handling HP aCC templates.
  308. * c-lang.c (c_create_fundamental_type): Added case to handle
  309. template args. Handle FT_BOOLEAN type. Set no sign flag for
  310. FT_CHAR.
  311. (cplus_builtin_types): New structure for c++ builtin types.
  312. (cplus_language_defn): Use cplus_builtin_types instead of
  313. c_builtin_types.
  314. * c-typeprint.c (c_type_print_base): Don't print 'privete' label
  315. for a class if all members are private, similarly don't print
  316. 'public' for a struct. Add support for sized enums (HP/aCC). get
  317. rid of the 'static' keyword printed by the demangler for member
  318. function, when printing the type of a class. 'static' will be
  319. added by this function. If the demangled name is null, and the
  320. method is not stubbed, get the signature by looking at the
  321. information stored in the symbol structure. Remove printing of
  322. 'const' and 'volatile' keywords for methods. This is now taken
  323. care as part of the demangled member names.
  324. (cp_type_print_method_args): New function. To print a C++ method
  325. arguments and name to the output stream.
  326. (c_type_print_cv_qualifier): New function. Print out "const" and
  327. "volatile" attributes.
  328. (c_type_print_varspec_prefix): Print const or volatile qualifiers.
  329. (c_type_print_args): Print 'void' for c++.
  330. (c_type_print_varspec_suffix): Print 'void' for a no argument
  331. function.
  332. (c_type_print_base): Print const or volatile qualifiers. Do not
  333. print 'unnamed union' if HP aCC compiler used. Distinguish
  334. between struct and class based on the DECLARED_TYPE. Handle
  335. HP/aCC compiler case for not printing vtable. Add Template
  336. support.
  337. (cp_type_print_derivation_info): Print out 'protected' when
  338. appropriate. This applies only to HP's compilers, not gcc.
  339. (c_val_print): Added parameter embedded_offset. Add
  340. embedded_offset to valaddr in function calls; fix calls to
  341. val_print and cp_print_value_fields. process TYPE_CODE_METHOD as
  342. well. moved call to check_typedef out of conditional. added
  343. embedded offset param to val_print call.
  344. (c_value_print): Add new parameter to call to val_print.
  345. handle pointer to class case. Attempt to
  346. determine the real type of the object to be printed.
  347. ensure that const char *, const unsigned char *
  348. come out without the type but the volatile variants
  349. and the signed variants don't.
  350. * coff-solib.c (coff_solib_add): Add parameters to call
  351. to symbol_file_add.
  352. * coff-solib.h: (Solib_REMOVE_INFERIOR_HOOK): New macro. defined
  353. to 0. functionality not implemented for coff.
  354. (SOLIB_CREATE_CATCH_LOAD_HOOK): New macro, generate error message
  355. for coff.
  356. (SOLIB_CREATE_CATCH_UNLOAD_HOOK): Ditto.
  357. (SOLIB_HAVE_LOAD_EVENT): Ditto.
  358. (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
  359. (SOLIB_HAVE_UNLOAD_EVENT): Ditto.
  360. (SOLIB_UNLOADED_LIBRARY_PATHNAME): Ditto.
  361. (SOLIB_IN_DYNAMIC_LINKER): Ditto.
  362. (SOLIB_RESTART): Ditto.
  363. * command.c (find_cmd): New function. (lookup_cmd_1): Call it,
  364. change parsing if tui_version or xdb_commands is set.
  365. (_initialize_command): Install new alias if xdb_commands is set.
  366. * complaints.h: Add ifdef...endif pair at beginning and end of file.
  367. * config.in, configure: Regenerated.
  368. * config/pa/hppabsd.mh (NATDEPFILES): Added new files
  369. hp-psymtab-read.o and hp-symtab-read.o.
  370. * config/pa/hppahpux.mh (NATDEPFILES): Ditto.
  371. * config/pa/hppahpux.mh (TERMCAP): Use -lHcurses.
  372. * config/pa/hppaosf.mh (NATDEPFILES): Ditto.
  373. * config/pa/hpux1020.mh (TERMCAP): Use -lHcurses.
  374. (MH_CFLAGS): New flag, -D__HP_CURSES, this define
  375. is used by HP's linker to find the correct curses library.
  376. * config/pa/hpux1020.mh: New file.
  377. * config/pa/hpux1020.mt: New file.
  378. * config/pa/hpux1100.mh (TERMCAP): Link against -lcurses, not
  379. -lHcurses. The latter does not contain mvwaddstr, wscrl, or
  380. wstbwlmkfzz.
  381. * config/pa/hpux1100.mh (TERMCAP): Use -lHcurses.
  382. (MH_CFLAGS): New flag, -D__HP_CURSES, this define
  383. is used by HP's linker to find the correct curses library.
  384. * config/pa/hpux1100.mh (TERMCAP): When hosting on hpux 11.00, use
  385. -lHcurses rather than -lcurses.
  386. * config/pa/hpux1100.mh: New file.
  387. * config/pa/hpux1100.mt: New file.
  388. * config/pa/nm-hppah.h (CHILD_HAS_SYSCALL_EVENT): New macro
  389. (CHILD_THREAD_ALIVE): New macro
  390. (STOPPED_BY_WATCHPOINT): Add a condition to the macro,
  391. ! stepped_after_stopped_by_watchpoint
  392. (TARGET_ENABLE_HW_WATCHPOINTS): New macro
  393. (hppa_enable_hw_watchpoints): New funct decl
  394. (TARGET_DISABLE_HW_WATCHPOINTS): New macro
  395. ( hppa_disable_hw_watchpoints): New funct decl
  396. these are for HP's implementation of fast
  397. watchpoints (via page protection).
  398. (target_pid_to_str): New macro, calls hppa_pid_to_str
  399. (target_tid_to_str): New macro, calls hppa_tid_to_str
  400. * config/pa/nm-hppah.h (CHILD_POST_WAIT): Delete;
  401. (CHILD_CREATE_CATCH_FORK_HOOK): Replace with
  402. CHILD_INSERT_FORK_CATCHPOINT and CHILD_REMOVE_FORK_CATCHPOINT.
  403. (CHILD_CREATE_CATCH_VFORK_HOOK): Replace with
  404. CHILD_INSERT_VFORK_CATCHPOINT and CHILD_REMOVE_VFORK_CATCHPOINT.
  405. (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC,
  406. CHILD_INSERT_EXEC_CATCHPOINT, CHILD_REMOVE_EXEC_CATCHPOINT,
  407. CHILD_HAS_EXECD, CHILD_REPORTED_EXEC_EVENTS_PER_EXEC_CALL,
  408. CHILD_POST_ATTACH, TARGET_HAS_HARDWARE_WATCHPOINTS,
  409. TARGET_CAN_USE_HARDWARE_WATCHPOINT,
  410. TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT,
  411. TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT, STOPPED_BY_WATCHPOINT,
  412. HAVE_NONSTEPPABLE_WATCHPOINT, target_insert_watchpoint,
  413. target_remote_watchpoint): New macros.
  414. * config/pa/nm-hppah.h (CHILD_XFER_MEMORY): Reinsert accidentally
  415. deleted define.
  416. * config/pa/nm-hppah.h:
  417. (PREPARE_TO_PROCEED): Defined macro to use
  418. hppa_prepare_to_proceed.
  419. (hppa_pid_to_str): Extern decl.
  420. (hppa_tid_to_str): Extern decl.
  421. (target_pid_or_tid_to_str): New macro definition.
  422. (hppa_pid_or_tid_to_str): Extern decl.
  423. (ENSURE_VFORKING_PARENT_REMAINS_STOPPED): New macro - for
  424. handling events caused by a call to vfork.
  425. (hppa_ensure_vforking_parent_remains_stopped): Extern decl.
  426. (RESUME_EXECD_VFORKING_CHILD_TO_GET_PARENT_VFORK): New macro -
  427. for handling events caused by a call to vfork.
  428. (hppa_resume_execd_vforking_child_to_get_parent_vfork): Extern decl.
  429. * config/pa/nm-hppah.h: Fix PREPARE_TO_PROCEED macro.
  430. * config/pa/nm-hppah.h: Fix for gcc compile on HPUX, change
  431. PT_RDUAREA to PT_RUAREA.
  432. * config/pa/nm-hppah.h: Introduced an HPUXHPPA define.
  433. A bit of a hack so that I can ifdef some code that
  434. only works for the HP wildebeest debugger.
  435. * config/pa/nm-hppah.h: Lots of new CHILD_ defines;
  436. process_event_kind enum.
  437. * config/pa/tm-hppa.h (BREAKPOINT32): New define.
  438. (CALL_DUMMY_HAS_COMPLETED): New define.
  439. * config/pa/tm-hppa.h (STACK_ALIGN): New macro.
  440. (NO_EXTRA_ALIGNMENT_NEEDED): New macro.
  441. (PC_REQUIRES_RUN_BEFORE_USE): New macro.
  442. (REGISTER_NAMES): Formatting in file changed.
  443. (CR27_REGNUM): Base register for thread local storage.
  444. (USE_STRUCT_CONVENTION): New macro used to decide whether
  445. a function returning a value of type type will
  446. put it on the stack or into registers (based on the
  447. PA risc calling conventions).
  448. (EXTRACT_RETURN_VALUE): Fixed calculation for extracting return value.
  449. (VALUE_RETURNED_FROM_STACK): New macro.
  450. (TARGET_READ_PC): Declared the function used in the definition.
  451. (SKIP_TRAMPOLINE_CODE): Declared the function used in the definition.
  452. (TARGET_WRITE_PC): Declared the function used in the definition.
  453. (TARGET_READ_FP): Declared the function used in the definition.
  454. * config/pa/tm-hppa.h (STRCAT_REGISTER): Define macro for
  455. future use.
  456. (pa_do_strcat_registers_info): Moved function decl from
  457. defs.h to this HPUX specific .h file.
  458. * config/pa/tm-hppa.h (USE_STRUCT_CONVENTION): Type_LENGTH returns
  459. bytes, not bits; fix off by 8 error.
  460. * config/pa/tm-hppa.h:
  461. New comment for obj_unwind_info definition
  462. New typedef, obj_private_struct
  463. * config/pa/tm-hppa.h: Delete most target_ macros -- use default
  464. versions instead; remove extraneous comma from proc_wait macro.
  465. * config/pa/tm-hppa.h: Get rid of macro HP_COMPILED_TARGET.
  466. * config/pa/tm-hppa.h: Removed redefinitions of
  467. USE_STRUCT_CONVENTION and STACK_ALIGN macros.
  468. * config/pa/tm-hppa.h: Some new definitions
  469. New macros: Arg0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM.
  470. target_pid_to_exec_file, target_acknowledge_forked_child,
  471. target_create_catch_fork_hook, target_create_catch_vfork_hook,
  472. target_has_forked, target_has_vforked, require_attach,
  473. require_detach, proc_wait
  474. New funct decls: Hppa_pid_to_exec_file,
  475. hppa_acknowledge_forked_child, hppa_create_catch_fork_hook,
  476. hppa_create_catch_vfork_hook, hppa_target_has_forked,
  477. hppa_target_has_vforked, hppa_require_attach,
  478. hppa_require_detach, process_wait
  479. (unwind_table_entry): Added comments to describe struct fields.
  480. * config/pa/tm-hppah.h (somsolib.h): Include it.
  481. * config/pa/tm-hppah.h:
  482. (CHILD_ENABLE_EXCEPTION_CALLBACK): New define
  483. (CHILD_GET_CURRENT_EXCEPTION_EVENT): New define
  484. * configure.host (hppa-*-hpux10.20, hppa-*-hpux11.0*): New configs.
  485. * configure.in (AC_CHECK_HEADERS): Add check for term.h.
  486. * configure.in: Add an --enable-tui argument.
  487. * configure.in: Construct tui/Makefile from tui/Makefile.in.
  488. * configure.in: Use AM_PROG_CC_STDC. If we have the GUI, then we
  489. need this to process libgui.h.
  490. * convex-tdep.c (decout): Change FILE to GDB_FILE.
  491. * corefile.c: Include objfiles.h, symfile.h.
  492. (core_file_command): Attempt to determine the name of the symbol
  493. file from the core file.
  494. (read_memory_string): New function.
  495. * corefile.c (core_file_command): Temporary hack to make non-hpux
  496. work. For, non-hpux, t->to_core_file_to_sym_file does not have a
  497. reasonable value. No target_ops vector on the stack gives it a
  498. non-zero value. fix later.
  499. * corelow.c (core_file_to_sym_file): Added new local variable,
  500. failing command, and do some explicit type castings.
  501. (core_ops): Add three new fields: to_has_syscall_event,
  502. to_enable_exception_callback, to_get_current_exception_event.
  503. Necessary since we still have oldstyle initialization in
  504. this file
  505. * corelow.c: Include unistd.h
  506. (core_file_to_sym_file): New function
  507. (core_file_thread_alive): New function
  508. (core_ops): Added new target ops vector fields. see below. And
  509. yes we definitiely need to initialize them here, as long as
  510. we're using static initialization.
  511. * cxux-nat.c (add_shared_symbol_files): Additonal params for calls
  512. to symbol_file_add.
  513. * defs.h (gdb_file_isatty): New function decl.
  514. * defs.h (GDB_FILE): If TUI is defined, define a structure rather
  515. than making this an alias for FILE.
  516. (gdb_stdout, gdb_stderr): If TUI is defined, then define these
  517. as pointers to variables of type GDB_FILE rather than making them
  518. be aliases for stdout and stderr.
  519. * defs.h (TUIDO): Add definition conditionalized on definition
  520. (or lack thereof) of TUI.
  521. * defs.h (command_class): Add two additional values.
  522. (precision_type): New enum.
  523. * defs.h (gdb_fclose): Add declaration.
  524. * defs.h (store_address): Change prototype to match function.
  525. * defs.h (tui_version, xdb_commands, dbx_commands): Add decl's.
  526. * defs.h (gdb_file_deallocate): New function declaration
  527. * defs.h:
  528. (streamtype): New enumerated type to distinguish between
  529. output to a FILE and output to a buffer.
  530. (tui_stream): New struct type, named GDB_FILE. Contains,
  531. streamtype, FILE, buffer, and bufferlength fields.
  532. (gdb_stdout): Of type GDB_FILE, will pass this around gdb
  533. rather than stdout.
  534. (gdb_stderr): Of type GDB_FILE, will pass this around gdb
  535. rather than stderr.
  536. (fputs_unfiltered_hook): Change stream parameter from FILE to
  537. GDB_FILE
  538. (flush_hook): Change stream parameter from FILE to GDB_FILE
  539. (gdb_fclose): Fix declaration for gdb_fclose; parameter is now of
  540. type GDB_FILE **
  541. (gdb_file_adjust_strbuf): New function declaration. function lives in
  542. utils.c.
  543. (gdb_file_init_astring): New function declaration. function lives
  544. in utils.c
  545. (gdb_file_get_strbuf): New function declaration. function lives
  546. in utils.c
  547. * defs.h: Additional include files included when TUI is defined.
  548. * defs.h: Funct decl source_full_path_of.
  549. * demangle.c: Add HP_DEMANGLING_STYLE_STRING.
  550. * demangle.c: Added new demangling style, EDG_DEMANGLING_STYLE_STRING,
  551. to the demanglers structure. This is for support of
  552. Kuck & Assoc.'s changes for demangling.
  553. * eval.c (evaluate_subexp_standard): C++ member function changes.
  554. * eval.c (evaluate_subexp_standard): Verify TYPE_TARGET_TYPE is
  555. non NULL before dereferencing it.
  556. * eval.c (evaluate_subexp_standard): With HP/aCC compiler it is not possible
  557. to perform inferior calls via function pointers.
  558. Resolve calls to overloaded functions using find_overload_match.
  559. We cannot handle HP/aCC pointers to member functions.
  560. Deal with HP/aCC pointers to members in various kind of expressions.
  561. * f-lang.c (f_printchar): Change FILE to GDB_FILE.
  562. (f_printstr): Ditto.
  563. (emit_char): Ditto.
  564. * f-lang.c (f_printstr): Change stdout to gdb_stdout.
  565. * f-typeprint.c (f_print_type): Change FILE to GDB_FILE.
  566. (f_type_print_varspec_prefix): Ditto.
  567. (f_type_print_args): Ditto.
  568. (f_type_print_varspec_suffix): Ditto.
  569. (print_equivalent_f77_float_type): Ditto.
  570. (f_type_print_base): Ditto.
  571. * findvar.c (): Hp snapshot 3 changes. (extract_address): Coerce
  572. return value from extract_unsigned_integer to CORE_ADDR.
  573. (store_address): Change val from CORE_ADDR to LONGEST; changes to
  574. support machines where CORE_ADDR and LONGEST are different sizes.
  575. (get_saved_register): Coerce arg to store_address to LONGEST.
  576. (read_relative_register_raw_bytes): Cast last arg to
  577. store_address to LONGEST. (read_register): Cast return from
  578. extract_address to a CORE_ADDR. (write_register_pid): Change val
  579. from LONGEST to CORE_ADDR. (read_pc_pid): Save and restore
  580. inferior_pid if necessary. (write_pc_pid): Ditto.
  581. (read_var_value): Cast arg to store_address.
  582. * findvar.c (read_relative_register_raw_bytes_for_frame): New
  583. function.
  584. (read_relative_register_raw_bytes): Call it.
  585. * findvar.c (symbol_read_needs_frame): Handle LOC_THREAD_LOCAL_STATIC and
  586. LOC_INDIRECT.
  587. * fork-child.c (fork_inferior): Chenge fifth parameter to be a
  588. function returning void.
  589. * fork-child.c (fork_inferior): Delete unused variable f.
  590. * fork-child.c:
  591. (Startup_WITH_SHELL): New macro -- interim fix for a bug
  592. (breakup_args): New function -- breaks up an argument string into
  593. an argument suitable for passing into execvp().
  594. (fork_inferior): Handling problems with starting up gdb with a shell.
  595. -- again, this appears to be an interim fix.
  596. * fork-child.c:
  597. (fork_inferior): Added a comment
  598. (clone_and_follow_inferior): New function.
  599. (startup_inferior): Minor formatting changes.
  600. * fork-child.c:
  601. (fork_inferior): Hp change is problematic. The -f option has
  602. different meanings for different shells. It is particularly
  603. inappropriate for bourne shells.
  604. * fork-child.c:
  605. (fork_inferior): Added new parameter, pre_trace_fun.
  606. pre_trace_fun is a function pointer. For some targets,
  607. like HPUX, this function gets called to prepare for forking
  608. a child.
  609. * fork-child.c:
  610. (fork_inferior): Fixed call to init_trace_fun
  611. * fork-child.c:
  612. Moved definition of STARTUP_WITH_SHELL to inferior.h
  613. Added a DEBUGGING macro. Currently set to 0. May remove
  614. later.
  615. breakup_args: Add DEBUGGING ifdefs. more sophisticated
  616. parsing to break up args.
  617. (fork_inferior): Rename kshell variable to shell. new local
  618. variable, tryname. Make use of STARTUP_WITH_SHELL macro.
  619. More error processing if starting up with a shell.
  620. (startup_inferior): Distinguish between starting up with a shell
  621. and not doing so.
  622. * gdbthread.h:
  623. Declarations for load_infrun_state and save_infrun_state take
  624. an additional parameter.
  625. * gdbthread.h: Note that sometime between gdb 4.16 and 4.17,
  626. thread.h was renamed gdbthread.h
  627. (load_infrun_state): Additional parameters
  628. (store_infrun_state): Additional parameters
  629. * gdbthread.h: Include breakpoint.h
  630. * hp-psymtab-read.c (QUICK_LOOK_UP): Redefine to be 0.
  631. (hpread_build_psymtabs): Deal with enums.
  632. (hpread_start_psymtab): Include section offset.
  633. (hpread_end_psymtab): Take care of offset.
  634. * hp-psymtab-read.c (TRUE): Define.
  635. (FALSE): Define.
  636. (file_exists): New function. Checks for existance of file.
  637. (hpread_pxdb_needed): Rewrite.
  638. (hpread_quick_traverse): Use correct demangling style.
  639. Handle F77 case.
  640. (hpread_get_header): Rewrite.
  641. (hpread_get_textlow): Add support for DOC_FUNCTION.
  642. (hpread_build_psymtabs): Make sure we do the right thing
  643. for pxdb and F77.
  644. * hp-psymtab-read.c (hpread_pxdb_check): Change parenthesis positions.
  645. * hp-psymtab-read.c (hpread_quick_traverse): Compare CORE_ADDR
  646. variable end_addr to 0 instaed of NULL to get rif of gcc warning.
  647. * hp-psymtab-read.c:
  648. (Hpread_get_textlow): Added param to function
  649. Defined convennience macros and some datatypes and variables for
  650. processing the quick lookup-tables. Looks like the code existed
  651. before, but has been munged.
  652. (hpread_pxdb_needed): Major rearrangements of code. Additional local
  653. variables. Also, more extensive checking for various scenarios:
  654. debug info for optimized code vs. unoptimized code, pxdb has been
  655. run vs. pxdb has not been run.
  656. (VALID_FILE): New macro
  657. (VALID_MODULE): New macro
  658. (VALID_PROC): New macro
  659. (VALID_CLASS): New macro
  660. (FILE_START): New macro
  661. (MODULE_START): New macro
  662. (PROC_START): New macro
  663. (FILE_END): New macro
  664. (MODULE_END): New macro
  665. (PROC_END): New macro
  666. (FILE_ISYM): New macro
  667. (MODULE_ISYM): New macro
  668. (PROC_ISYM): New macro
  669. (VALID_CURR_FILE): New macro
  670. (VALID_CURR_MODULE): New macro
  671. (VALID_CURR_PROC): New macro
  672. (VALID_CURR_CLASS): New macro
  673. (CURR_FILE_START): New macro
  674. (CURR_MODULE_START): New macro
  675. (CURR_PROC_END): New macro
  676. (CURR_FILE_ISYM): New macro
  677. (CURR_MODULE_ISYM): New macro
  678. (CURR_PROC_ISYM): New macro
  679. (TELL_OBJFILE): New macro
  680. (pst_syms_struct): New typedef to keep track of the start/end symbol
  681. table (LNTT) indices of psymtabs created so far.
  682. (pst_syms_count): New variable
  683. (pst_syms_size): New variable
  684. (told_objfile): New variable
  685. (init_pst_syms): New function. sets up psymtab symbol index stuff.
  686. (clear_pst_syms): New function. clean up psymtab symbol index stuff.
  687. (record_pst_syms): New function. add info about newest psymtab to symbol
  688. index table.
  689. (find_next_pst_start): New function. Find a suitable symbol table index.
  690. (find_next_file_isym): New function
  691. (find_next_proc_isym): New function
  692. (find_next_module_isym): New function
  693. (scan_procs): New function. Scan and record partial symbols for all
  694. functions starting from specified index and in a specified code range.
  695. (hpread_quick_traverse: Major rearrangement of code. The function
  696. now uses all the nifty macros. There are some new local variables.
  697. Check for EDG_DEMANGLING style. ifdef out some code for handling F77.
  698. Previously, the function looped over all the modules in the table.
  699. Now, the function loops over all the files, modules, and procedures.
  700. With HP aCC and CTTI, it is possible for a compiled object to have a
  701. file and no module.
  702. (hpread_build_psymtabs): Added a section of code ifdefed by
  703. QUICK_LOOK_UP. It check to see whether or not there are any globals
  704. in the executable. Fix number of params to hpread_start_psymtab call.
  705. Some changes to the way DNTT_TYPE_MODULE is handled.
  706. (hpread_get_textlow): Change in signature, minor code changes. The
  707. function finds the low address associated with a specified symbol.
  708. In looking for the address for the symbol avoid going of the end of
  709. the LNTT file.
  710. * hp-psymtab-read.c: Change TRUE to 1 and FALSE to 0. Do some
  711. reformatting.
  712. * hp-psymtab-read.c: Include demangle.h
  713. (trans_lang): New function to let gdb know the correct language.
  714. (hpread_quick_traverse): Use ARM style demangling.
  715. Demangle procedures names.
  716. Use gdb language names instead of hp language names.
  717. Add symbol to list using its demangled name.
  718. * hp-psymtab-read.c: New file.
  719. (hpread_call_pxdb): New function. Call PXDB to process our file.
  720. (hpread_pxdb_check): New function. Return TRUE if the file needs
  721. pre-processing by PXDB and we have thus called PXDB to do this
  722. processing and the file needs to be re-loaded.
  723. (hpread_quick_traverse): New function. Traverse the quick look-up
  724. tables, building a set of psymtabs.
  725. (hpread_get_header): New function. Get appropriate header from obj
  726. file, based on pxdb type
  727. (hpread_symfile_init): No change from hpread.c
  728. (hpread_build_psymtabs): If there are quick lookup tables, read those,
  729. then scan the global section LNTT. Otherwise, just scan the whole LNTT.
  730. Changed: Add a global function entry to the global partial symbol list.
  731. Handle end of symbols, for QLT case.
  732. In case of TAGDEF, if it is a class or a template, add the name to the
  733. var_namespace, so that it is known as a type by gdb.
  734. In case of CONSTANT, and it is global, add it to the globals.
  735. (hpread_symfile_finish): No change from hpread.c
  736. (hpread_get_lntt): Make it not static
  737. (hpread_get_gntt): No change from hpread.c
  738. (hpread_get_slt): Make it not static
  739. (hpread_get_textlow): No change from hpread.c
  740. (hpread_start_psymtab): No change from hpread.c
  741. (hpread_end_psymtab): No change from hpread.c
  742. * hp-symtab-read.c (hpread_get_scope_start): Renamed. It was
  743. hpread_get_depth.
  744. (hpread_type_translate): Distinguish between signed and unsigned char
  745. types.
  746. (hpread_psymtab_to_symtab): Set flag for hp compilation.
  747. (hpread_read_function_type): Append symbols for parameters to local
  748. list as well as to the global list. Get the parameters types from the
  749. local list instead of the global list.
  750. (hpread_read_struct_type): Add new field num_fn_fields to next_fn_field
  751. structure. Rewrite handling of templates
  752. (hpread_type_lookup): Change handling of dntt_type_modifier.
  753. (hpread_process_one_debug_symbol): Call hpread_get_scope_start instea
  754. of hpread_get_depth. Handle enum as well.
  755. (hpread_get_scope_depth): New function. Get nesting depth for a
  756. DNTT entry.
  757. * hp-symtab-read.c (hpread_psymtab_to_symtab): Set
  758. processing_gcc_compilation to 0.
  759. * hp-symtab-read.c (hpread_psymtab_to_symtab_1): Change stdout to
  760. gdb_stdout; change fflush to gdb_flush.
  761. (hpread_psymtab_to_symtab): Change fflush to gdb_flush.
  762. * hp-symtab-read.c (hpread_read_enum_type): Declare variable.
  763. (hpread_read_struct_type): Eliminate references
  764. to 'args' member of fn_field.
  765. * hp-symtab-read.c (hpread_read_struct_type): A static member
  766. is now indicated by the bitsize field, not the bitpos.
  767. Initialize physname to empty.
  768. (fix_static_member_physnames): Use new macros to deal with
  769. physnames.
  770. * hp-symtab-read.c (hpread_read_struct_type): Change references
  771. to bitpos member of struct field to use the FIELD_BITPOS macro.
  772. * hp-symtab-read.c (hpread_read_struct_type): Comment out reference to
  773. obsolete field fn_field.args.
  774. Add struct complaint definitions for complaints.
  775. (hpread_read_struct_type): Change call to complain.
  776. (hpread_read_array_type): Change call to complain.
  777. (hpread_type_lookup): Change call to complain.
  778. (hpread_process_one_debug_symbol): Change calls to complain.
  779. (hpread_type_translate): Change calls to complain.
  780. * hp-symtab-read.c (hpread_read_struct_type): Make sure bitvector
  781. has been allocated before calling has_vtable.
  782. * hp-symtab-read.c (hpread_read_struct_type): Revert change,
  783. just check for vtable without checking for bitvectors too.
  784. * hp-symtab-read.c:
  785. (Hpread_expand_symtab): Change name of local variable from
  786. at_end_of_module to at_module_boundary.
  787. Also, if demangling style is already EDG, do not reset it
  788. to the HP demangling style.
  789. Change at_end_of_module param to hpread_process_one_debug_symbol
  790. call to at_module_boundary.
  791. No longer break out of loop when reach end of module. With CTTI,
  792. the compiler can generate function symbols which are not in
  793. any module. Typically they show up after the end of one
  794. module and before the start of the next module.
  795. (hpread_read_struct_type): Check that the debug info for
  796. a TEMPLATE_ARG is correct.
  797. (hpread_process_one_debug_symbol): Change name of at_end_of_module_p
  798. param to at_module_boundary_p.
  799. Also set *at_module_boundary_p = -1 if missing a module end and set
  800. it to 1 when finished expanding the debug info.
  801. Handle TLS variable.
  802. * hp-symtab-read.c: Include defs.h, symtab.h, gdbtypes.h, complaints.h.
  803. (fixup_class): New static variable.
  804. (fixup_method): New static variable.
  805. (hpread_get_location): Rewrite.
  806. (hpread_has_name): Add cases for DNTT_TYPE_DOC_FUNCTION and
  807. DNTT_TYPE_DOC_MEMFUNC
  808. (hpread_expand_symtab): Use HP demangling style.
  809. Set hp_som_som_object_present to 1.
  810. (hpread_type_translate): Error out if not immediate. Issue warning
  811. if there is an unhandled type code.
  812. (error_in_hpread_type_translate_complaint): Remove this structure.
  813. (hpread_read_enum_type): Don't assume size of enum is always 4 bytes.
  814. (hpread_read_function_type): Add new parameter to indicate a new block.
  815. Do not add the parameters to the symbol list.
  816. If the type was read in earlier, do not modify the type structure.
  817. If we are creating a new block, set the local symbol list to be the
  818. param list.
  819. Need to mark this type as preprocessed.
  820. (hpread_read_doc_function_type): New function. Read and internalize
  821. a native DOC function debug symbol.
  822. (hpread_read_struct_type): A method can be of type doc_function and
  823. doc_memfunc too.
  824. Handle case in which a method is read before its class. Deal with
  825. incomplete method types.
  826. Handle cases in which HP/aCC compiler creates operator names w/o
  827. the 'operator' keyword. Rewrite the loop over the fileds.
  828. (fix_static_member_physnames): New function. Adjust the physnames for
  829. each static member.
  830. (fixup_class_method_type): New function. Fix-up the type structure for a
  831. class.
  832. (hpread_read_array_type): Change complaint to warning.
  833. (hpread_type_lookup): Add case for DNTT_TYPE_DOC_FUNCTION.
  834. For structures/classes set static member to point to strings with full
  835. names.
  836. Change calls to hpread_read_function_type to pass extra parameter.
  837. (hpread_record_lines): Handle case for SLT_NORMAL_OFFSET.
  838. (class_of): New function. Given a function "f" which is a member of a class,
  839. find the classname that it is a member of.
  840. (hpread_process_one_debug_symbol): Deal with possible alias field from the
  841. som record for the Function or Entry type.
  842. Do the demangling ourselves if the gdb demangler failed.
  843. Add support for DOC functions.
  844. For function types, add parameters to local list.
  845. (hpread_get_scope_depth): Make this function a no-op.
  846. (hpread_adjust_bitoffsets): New function. Adjust the bitoffsets for all
  847. fields of an anonymous union.
  848. (hpread_get_next_skip_over_anon_unions): New function. Skip over anonymous
  849. unions.
  850. * hp-symtab-read.c: Include demangle.h
  851. (hpread_expand_symtab): Ensure we are using ARM-style demangling.
  852. (hpread_process_one_debug_symbol): Set the mangled and demangled
  853. names for functions.
  854. Record the class name to generate the demangled names of member
  855. functions.
  856. * hp-symtab-read.c: New file.
  857. (hpread_get_depth): No change from hpread.c
  858. (hpread_get_line): No change from hpread.c
  859. (hpread_get_location): No change from hpread.c
  860. (hpread_has_name): Make it not static. Return 1 for DNTT_TYPE_BLOCKDATA
  861. and DNTT_TYPE_MEMFUNC. Return 0 for CLASS_SCOPE, REFERENCE,PTRMEM,
  862. PTRMEMFUNC, CLASS, GENFIELD, VFUNC, MEMACCESS, INHERITANCE,
  863. FRIEND_CLASS, FRIEND_FUNC, MODIFIER, OBJECT_ID, TEMPLATE, TEMPLATE_ARG,
  864. FUNC_TEMPLATE, LINK.
  865. (hpread_psymtab_to_symtab_1): No changes from hpread.c
  866. (hpread_psymtab_to_symtab): Make it a static function
  867. (hpread_expand_symtab): Modified
  868. (hpread_type_translate): If not typep.dntti.immediate do not abort,
  869. but complain and return. Same for default action. Handle more HP_TYPEs.
  870. (hpread_lookup_type): Initially allocate a correct-size type-vector.
  871. (hpread_alloc_type): Reset type_addr only if a type was allocated.
  872. (hpread_read_enum_type): If this has already a type associated, return.
  873. (hpread_read_function_type): Do different things depending on whether
  874. function is a MEMFUNC, a TEMPLATE, a FUNCTION som record.
  875. Do not use the LOC_REGPARM_ADDR symbol class.
  876. (hpread_read_struct_type): Handle classes and templates too. Major
  877. rewrite.
  878. (hpread_get_nth_template_arg): New function.
  879. (hpread_read_templ_arg_type): New function.
  880. (hpread_read_set_type): No change from hpread.c
  881. (hpread_read_array_type): Modified
  882. (hpread_read_subrange_type): Add handling of more DNTT entries.
  883. added support for templates, classes, references, virtual functions.
  884. (hpread_type_lookup): Handle DNNT_TYPE_MODULE.
  885. (hpread_record_lines): No changes from hpread.c
  886. (hpread_process_one_debug_symbol): Handle WITH, COMMON,
  887. CLASS_SCOPE. Expand TAGDEF case to handle classes and templates.
  888. * hppa-tdep.c (pa_do_strcat_registers_info): Has a new parameter,
  889. precision, which is passed into the call to pa_strcat_fp_reg to
  890. indicate whether to display the floating point registers using
  891. single or double preceision.
  892. (pa_strcat_registers): Introduce local variable, precision, and
  893. pass it into call to pa_strcat_fp_reg.
  894. (pa_strcat_fp_reg): Modified function. New parameter, precision,
  895. used by function to decide whether to use single or double
  896. precision. Also added the code to put a double precision value
  897. into a buffer.
  898. * hppa-tdep.c: Add'l includes <machine/save_state.h>,
  899. <unistd.h>, declare pa_register_look_aside, define is_pa_2.
  900. (rp_saved): Check for where to read the return pointer from.
  901. (pa_do_registers_info): Handle is_pa_2. (pa_register_look_aside):
  902. new function. (pa_print_registers): Handle is_pa_2.
  903. (in_solib_call_trampoline): Handle a compiler/linker error.
  904. (skip_trampoline_code): Changes to some masks used in examining
  905. instructions. (inst_saves_fr): Test for FSTWS instruction.
  906. (skip_prologue): Renamed to skip_prologue_hard_way.
  907. (after_prologue): New function. (skip_prologue): New function.
  908. * hppa-tdep.c (after_prologue): If f is NULL, don't dereference
  909. it.
  910. * hppa-tdep.c (after_prologue): If no debug info, return zero
  911. telling caller that we need to find the end of the prologue via
  912. the hard way (instruction examination).
  913. * hppa-tdep.c (find_unwind_entry): Avoid dereferencing a null
  914. pointer.
  915. * hppa-tdep.c (hppa_pid_to_exec_file): Deleted -- no longer used.
  916. * hppa-tdep.c (hppa_prepare_to_proceeed): Add prototype.
  917. (read_unwind_info): Purecov comments, bug fixes.
  918. (find_unwind_entry): Purecov comments, bug fixes.
  919. (find_stub_with_shl_get): Purecov comments.
  920. (frame_chain): Additional parens.
  921. (hppa_push_arguments): Changes to commented out version of routine.
  922. (hppa_fix_call_dummy): Purecov comments, fix location of end.o.
  923. (in_solib_call_trampoline): Purecov comments.
  924. (in_solib_return_trampoline): Purecov comments.
  925. (setup_d_pid_in_inferior): Fix location of end.o.
  926. (initialize_hp_cxx_exception_support): Fix location of end.o.
  927. (child_enable_exception_callback): Purecov comments.
  928. * hppa-tdep.c:
  929. (Pa_do_strcat_registers_info): New routine. called by
  930. tui/tuiRegs.c:_tuiRegisterFormat to place a register name
  931. and value into a string buffer. Interface may change in
  932. future. Checking this in so that we have something
  933. functional for HP.
  934. (pa_strcat_registers): New routine, called by
  935. pa_do_strcat_registers_info. Does same thing as
  936. pa_print_registers except it takes a stream parameter.
  937. This routine should disappear in future. Checking in
  938. so that we have something functional to give HP
  939. (pa_strcat_fp_reg): New routine, called by
  940. pa_do_strcat_registers_info and pa_strvat_registers
  941. to place a floating point register name and value into
  942. a buffer. This interface may change in future.
  943. Checking in so that we have something functional to give HP.
  944. * hppa-tdep.c: (Pa_print_fp_reg): Change prototype to match def'n.
  945. (pa_register_look_aside): Fix comment immediately before function.
  946. * hppa-tdep.c: Changes to better support stack unwinding,
  947. reading and writing registers for HPUX. The HP folks had
  948. an advantage ... access to a runtime architecture spec ;-}.
  949. New includes: Ptrace.h
  950. (internalize_unwinds): Initialize new fields in table.
  951. (read_unwind_info): Entries in the table are now more complex
  952. structures. References of the form ...->table[index].stub_type
  953. are now ...->table[index].stub_unwind.stub_type.
  954. (find_proc_framesize): Added a check for pc == 0.
  955. (rp_saved): Entries in the table are now more complex
  956. structures. References of the form ...->table[index].stub_type
  957. are now ...->table[index].stub_unwind.stub_type.
  958. (frameless_function_invocation): Stub_type becomes
  959. stub_unwind.stub_type
  960. (saved_pc_after_call): Stub_type becomes stub_unwind.stub_type
  961. (hppa_frame_saved_pc): Stub_type becomes stub_unwind.stub_type
  962. (frame_chain_valid): Stub_type becomes stub_unwind.stub_type
  963. (hppa_call_dummy): Stub_type becomes stub_unwind.stub_type
  964. (pa_print_fp_reg): Additional params to call val_print
  965. (in_solib_call_trampoline): Stub_type becomes stub_unwind.stub_type
  966. (in_solib_return_trampoline): Stub_type becomes stub_unwind.stub_typ
  967. (skip_trampoline_code): Additional code to handle external
  968. dyncalls. Also stub_type becomes stub_unwind.stub_type
  969. (hppa_pid_to_exec_file): New funct. FOr HPUX 10.0 and beyond there
  970. is an explicit ptrace request for getting the pathname associated
  971. with a process id (pid).
  972. * hppa-tdep.c: Fix for gcc compile on HPUX
  973. (hppa_pid_to_exec_file): Remove unwanted param from
  974. call to call_ptrace. Note, hppa_pid_to_exec_file goes
  975. away in subsequent hp snapshots.
  976. * hppa-tdep.c: Include bfd.h.
  977. include dl.h
  978. (args_for_find_stub): New structure.
  979. (find_unwind_entry): Deal with null input pc value.
  980. (rp_saved): Ditto.
  981. For the import stub, return -24 always.
  982. (hppa_frame_saved_pc): Save old pc value, to detect we are in a loop.
  983. (init_extra_frame_info): Use TARGET_READ_FP.
  984. (frame_chain): Include thread support.
  985. If the caller's pc is zero, we loose and return, just like stack bottom.
  986. Disable warning about being unable to find unwind info.
  987. (hppa_push_arguments): Rewrite.
  988. (hppa_value_returned_from_stack): New function. Handles returning a value
  989. larger that 64 bits, stored on the stack.
  990. (find_stub_with_shl_get): New function. To look up symbols in shlibs.
  991. (cover_find_stub_with_shl_get): New function. Cover routine for
  992. find_stub_with_shl_get to pass to catch_errors.
  993. (hppa_fix_call_dummy): Comment out old stub mechanism. Rewrite using dyncall.
  994. (target_read_fp): New function.
  995. (pa_do_registers_info): Floating point registers start at FP4.
  996. (pa_print_registers): Use FP4_REGNUM instead of 72.
  997. (skip_trampoline_code): Do machine instruction matching for PA2.0.
  998. (setup_d_pid_in_inferior): New function. Exception handling support.
  999. (initialize_hp_cxx_exception_support): Ditto.
  1000. (child_enable_exception_callback): Ditto.
  1001. (child_get_current_exception_event): Ditto.
  1002. * hppah-nat.c (child_post_wait, child_post_follow_vfork,
  1003. child_post_follow_inferior_by_clone): New functions.
  1004. * hppah-nat.c (child_xfer_memory): Make sure the call to ptrace really
  1005. fails before we give up.
  1006. (hppa_pid_to_str): New function. Format a process id.
  1007. (hppa_tid_to_str): New function. Format a thread id.
  1008. * hppah-nat.c (child_xfer_memory): Use xmalloc, not alloca.
  1009. (child_post_wait): Delete.
  1010. (child_post_follow_vfork): Delete decl of child_ops; delete
  1011. large chunks of function -- let it be handled by the normal
  1012. mechanism that notices and handles exec events, in resume().
  1013. * hppah-nat.c (require_notification_of_exec_events): New function;
  1014. just notify of exec events, not all events, and just the specified
  1015. pid, don't include it's children (10.20 version).
  1016. (child_acknowledge_created_inferior): Call new function
  1017. require_notification_of_exec_events instead of
  1018. require_notification_of_events.
  1019. * hppah-nat.c [!GDB_NATIVE_HPUX_11]: Move HPUX 10.x-specific
  1020. support code here from infptrace.c.
  1021. * hppah-nat.c: Removed #define ptrace call_ptrace
  1022. replaced all calls to ptrace with calls to call_ptrace
  1023. (parent_attach_all): Removed call to ptrace
  1024. * hpread.c (hpread_psymtab_to_symtab_1): Change fflush to
  1025. gdb_flush; change stdout to gdb_stdout.
  1026. (hpread_psymtab_to_symtab): Change fflush to gdb_flush.
  1027. * hpread.h: New file. Includes all includes, struct defs, defines
  1028. from hpread.c.
  1029. * infcmd.c
  1030. (attach_command): New local variable, exec_file, added code to
  1031. determine exec_file from pid if exec_file is not already known,
  1032. call new target operation, target_post_attach -- a no-op unless
  1033. on HPUXHPPA
  1034. (detach_command): After detaching, do a SOLIB_RESTART
  1035. * infcmd.c (objfiles.h): Fix typo on include line.
  1036. * infcmd.c (run_command): Only call SOLIB_RESTART if it's
  1037. defined.
  1038. (detach_command): Ditto.
  1039. * infcmd.c:
  1040. (run_stack_dummy): Add calls to
  1041. disable_watchpoints_before_interactive_call_start and
  1042. enable_watchpoints_after_interactive_call_stops
  1043. (finish_command): Alter code handling the evaluation and printing
  1044. of the target function's return value.
  1045. (attach_command): When given a pid, but no exec file, try to determine
  1046. the exec file from the process. If the process does not record a
  1047. full path name, try to qualify the filename against the source path.
  1048. (_initialize_infcmd): Add some verbiage about how to use the attach command
  1049. * infcmd.c:
  1050. Include objfiles.h
  1051. (run_command): If program has already been started, and decide
  1052. to restart it, then kill the target, flush the caches,
  1053. call init_wait_for_inferior. Also purge old solib objfiles.
  1054. * infcmd.c: Changed calls to val_print, using a new macro,
  1055. SOLIB_RESTART
  1056. (run_command): Calls SOLIB_RESTART
  1057. (do_registers_info): Changed calls to val_print
  1058. * infcmd.c: Made the symfile.h include preceed the
  1059. objfiles.h include. The other ordering caused a
  1060. compile problem (incompletely defined types).
  1061. * inferior.h (REQUIRE_DETACH): Fix default definition.
  1062. * inftarg.c (child_post_attach): Fix declaration, make static.
  1063. (proc_wait): Make globally visible.
  1064. (child_insert_fork_catchpoint, etc): Fix return type.
  1065. * inferior.h (STARTUP_WITH_SHELL): New define.
  1066. (START_INFERIOR_TRAPS_EXPECTED): New define
  1067. * inferior.h (fork_inferior): Change fifth parameter to be a function
  1068. returning void.
  1069. * inferior.h (proc_wait): Declare.
  1070. * inferior.h:
  1071. (Require_ATTACH): New macro
  1072. (REQUIRE_DETACH): New macro
  1073. (detach): Definition is now an extern
  1074. (clone_and_follow_inferior): New definition, it's also an extern
  1075. * inferior.h:
  1076. (Require_attach): Default definition for require_attach funct
  1077. (require_detach): Default definition for require_detach funct
  1078. (pre_fork_inferior): New funct decl for function defined in
  1079. infptrace.c
  1080. (fork_inferior): New parameter in funct decl.
  1081. * inferior.h:
  1082. New variable decls: Inferior_ignoring_startup_exec_events,
  1083. inferior_ignoring_leading_exec_events -- these variables
  1084. are used when processing an exec call.
  1085. (CALL_DUMMY_HAS_COMPLETED): New default macro -- for targets
  1086. where PC in call dummy implies that call dummy has
  1087. completed. Note, that on HPUX this inference does not hold.
  1088. * infptrace.c
  1089. (require_notification_of_events): New function
  1090. (child_acknowledge_created_inferior): Previously named
  1091. hppa_acknowledge_forked_child. Also calling
  1092. require_notification_of_events and clearing some semaphore
  1093. variables
  1094. (child_post_startup_inferior): New function
  1095. (child_create_catch_fork_hook): Previously named
  1096. hppa_create_catch_fork_hook
  1097. (child_create_catch_vfork_hook): Previously named
  1098. hppa_create_catch_vfork_hook
  1099. (child_has_forked): Previously named hppa_target_has_forked
  1100. (child_has_vforked): Previously named hppa_target_has_vforked
  1101. (process_wait): Changed to call target_post_wait
  1102. (attach): Add call to require_notification_of_events
  1103. (child_pid_to_exec_file): New function
  1104. (hppa_require_attach): New local variable, pt_status
  1105. (hppa_get_process_events): New function
  1106. * infptrace.c (call_ptrace): Simplify control flow.
  1107. (proc_wait): Move here from inftarg.c, add target_post_wait call.
  1108. * infptrace.c (call_ptrace): Add some debugging code.
  1109. * infptrace.c (child_pid_to_exec_file): Declare variable.
  1110. * infptrace.c (kill_inferior): Clean up call to proc_wait.
  1111. * infptrace.c:
  1112. (Call_ptrace): When the ptrace request is PT_SETTRC,
  1113. call ptrace and then call parent_attach_all.
  1114. * infptrace.c:
  1115. (Child_has_syscall_event): New function. only applicable
  1116. (for now) on HPUX 10.30 and beyond via the ttrace call.
  1117. In infptrace.c there is a default operation.
  1118. With ttrace, it is possible to tell the kernel to
  1119. notify the debugger that the target program is about to make
  1120. or return from a syscall.
  1121. (child_thread_alive): New function. a default function.
  1122. ptrace doesn't support kernel threads.
  1123. (hppa_enable_page_protection_events): Defualt function
  1124. (hppa_disable_page_protection_events): Default function
  1125. * infptrace.c (child_pid_to_exec_file): Fix number of params to
  1126. cal_ptrace call.
  1127. * infptrace.c (hppa_pid_or_tid_to_str): New function.
  1128. (hppa_switched_threads): New function.
  1129. (hppa_ensure_vforking_parent_remains_stopped): New function.
  1130. (hppa_resume_execd_vforking_child_to_get_parent_vfork): New function.
  1131. * infptrace.c: Most of the changes found in infptrace.c should
  1132. be moved to hppah-nat.c
  1133. (PT_VERSION): A new define
  1134. (startup_semaphore_t): A new struct type. it is used to
  1135. coordinate the parent and child processes after a fork and
  1136. before an exec on HPUX.
  1137. (call_ptrace): Changes to determine whether the ptrace
  1138. request is for starting the tracing of the target process.
  1139. (parent_attach_all): New funct. used on HPUX for coordinating
  1140. the parent and child processes after a fork and before and exec.
  1141. (hppa_acknowledge_forked_child): New funct. prabably belongs
  1142. in hppah-nat.c
  1143. (hppa_enable_catch_fork): New funct. probably belongs in
  1144. hppah-nat.c
  1145. (hppa_disable_catch_fork): New funct. probably belongs in
  1146. hppah-nat.c
  1147. (hppa_create_catch_fork_hook): New funct. probably belongs in
  1148. hppah-nat.c
  1149. (hppa_enable_catch_vfork): New funct. probably belongs in
  1150. hppah-nat.c
  1151. (hppa_disable_catch_vfork): New funct. probably belongs in
  1152. hppah-nat.c
  1153. (hppa_create_catch_vfork_hook): New funct. probably belongs to
  1154. hppah-nat.c
  1155. (hppa_target_has_forked): New funct. probably belongs in
  1156. hppah-nat.c
  1157. (hppa_target_has_vforked): New funct. probably belongs in
  1158. hppah-nat.c
  1159. (process_wait): New funct. also ifdefed for proc_wait.
  1160. (kill_inferior): Call proc_wait rather than wait. this is
  1161. pretty hacky.
  1162. (pre_fork_inferior): New function. used only by HPUX.
  1163. probably should be defined elsewhere.
  1164. * infrun.c (follow_inferior_fork): Only define on HP.
  1165. (wait_for_inferior): Only call SOLIB_IN_DYNAMIC_LINKER if we have
  1166. shared libraries; restore test of IN_SOLIB_DYNSYM_RESOLVE_CODE
  1167. removed by HP.
  1168. * infrun.c (normal_stop): Add a call to the TUIDO
  1169. macro just before the annotate_stopped label. This
  1170. updates the windows after each program stop.
  1171. * infrun.c (normal_stop): Verify stop_command is non-zero before
  1172. dereferencing it (it won't be set if dbx_commands is set).
  1173. * infrun.c (resume): Add #ifdef HPPAHPUX around HPUX-specific
  1174. code.
  1175. * infrun.c (resume): Add missing semicolon.
  1176. * infrun.c (wait_for_inferior): Fix syntax error.
  1177. * infrun.c (follow_fork_mode_kind_names): Removed "both" option.
  1178. (follow_fork): Added parameters. additional code for handling
  1179. following of parent, following of child
  1180. (resume): Added code for deciding how to resume in presence of
  1181. fork. Additional params to follow_fork call.
  1182. * infrun.c (follow_exec): Ifdef for HPUXHPPA for the moment, the
  1183. code in here assumes the existance of the child_ops target
  1184. vector. This is incorrect for Solaris.
  1185. * infrun.c (resume): Fixed ifdefs, HPPAHPUX -> HPUXHPPA.
  1186. * infrun.c (wait_for_inferior): Fixed a matching parens problem --
  1187. matching curly brace inside ifdefed code which is not being
  1188. compiled. Change local validFlag to be an 'int' rather than a
  1189. 'bool' and fixed the corresponding assignment statements.
  1190. * infrun.c:
  1191. Two new global variables: Inferior_ignoring_startup_exec_events and
  1192. inferior_ignoring_leading_exec_events.
  1193. New static variables: Parent_of_vfork_trap_expected_and_ignorable,
  1194. step_resume_breakpoint, through_sigtramp_breakpoint, pending_follow,
  1195. follow_vfork_when_exec
  1196. (follow_inferior_fork): Does what follow_fork did!
  1197. (follow_fork): Is now a wrapper function for follow_inferior_fork
  1198. (follow_vfork): Is now a wrapper function for follow_inferior_fork
  1199. (follow_exec): New function, handles an exec event.
  1200. (resume): Remove 3 local variables: Child_pid, has_forked, has_vforked.
  1201. move and expand code that tries to follow a fork (i.e. also check
  1202. for vfork and exec
  1203. (init_wait_for_inferior): Initialize the new structure, pending_follow
  1204. (delete_breakpoint_current_contents): When deleting all the breakpoints also
  1205. set the breakpoint struct pointer to NULL.
  1206. (wait_for_inferior): A number of changes.
  1207. The step_resume_breakpoint and through_sigtramp_breakpoint local
  1208. variables are now visible in entire module.
  1209. Changed name of variable from child_inferior_pid to saved_inferior_pid.
  1210. Added several cases to the event processing switch statement:
  1211. Target_WAITKIND_FORKED, TARGET_WAITKIND_VFORKED, TARGET_WAITKIND_EXECD.
  1212. Also, for TARGET_WAITKIND_STOPPED, check to see if expecting a trap
  1213. from the parent of a vfork (ignorable) otherwise break as usual.
  1214. When determining the value of 'random_signal' (0 or 1), no longer check for
  1215. catchpoints.
  1216. When determining how to handle unexpected signals, must now take into
  1217. account fork, vfork, and exec.
  1218. Change call to PC_IN_CALL_DUMMY to a call to CALL_DUMMY_HAS_COMPLETED
  1219. At stop_stepping label, check to see if stopped for fork or
  1220. vfork event.
  1221. * infrun.c: New code is related to threads and fork/vfork/exec.
  1222. New static variable: Thread_step_needed
  1223. Deleted static variable: Parent_of_vfork_trap_expected_and_ignorable
  1224. Altered the pending_follow and fork_event structs
  1225. (follow_inferior_fork): Before detaching from child and removing
  1226. all breakpoints form it -- but only if forking or following
  1227. vforks as soon as they happen. Also reset the solib inferior hook.
  1228. The same kind of logic applies to hitting step_resume_breakpoints
  1229. (calling breakpoint_re_set_thread) and to resetting and inserting
  1230. breakpoints.
  1231. (follow_exec): Forward decl
  1232. (follow_vfork): Check to see if gdb followed the child. If
  1233. the child exec'd before gdb saw the parent's vfork event
  1234. then call follow_exec.
  1235. (follow_exec): If the exec occured after a vfork, then follow
  1236. the vfork as well. Do it before following the exec.
  1237. Make sure to update breakpoints after and exec
  1238. (resume): New local variable, should_resume.
  1239. Change parameters in calls to follow_fork, follow_vfork, and
  1240. follow_exec. Some changes to the way various pending_follow.kind
  1241. situations are handled (there's TARGET_WAITKIND_FORKED,
  1242. TARGET_WAITKIND_VFORKED, ARGET_WAITKIND_EXECD. Some additional
  1243. conditions to check before deciding to resume the target (i.e.
  1244. should_resume=1, stepping?, thread_step_needed?i, regular
  1245. resume?)
  1246. (proceed): When proceeded at location that does not have a breakpoint
  1247. set thread_step_needed=0 to indicate that it is not necessary to
  1248. single step thread over breakpoint. SOme additional checks to see
  1249. if it is necessary to step thread over breakpoint.
  1250. (start_remote): Remove call to clear_proceed_status.
  1251. (init_wait_for_inferior): Initialize new fields in fork_event
  1252. structure and add a call to clear_proceed_status.
  1253. (wait_for_inferior): New local variable: New_thread_event.
  1254. Initialize thread_step_needed = 0.
  1255. Minor massaging of conditions for adding a new thread to the thread list.
  1256. No longer resuming execution after adding a new thread. Let user play with thread first.
  1257. Some changes in the way TARGET_WAITKIND_FORKED, ARGET_WAITKIND_VFORKED,
  1258. TARGET_WAITKIND_EXECD are handled -- this is all HPUX related.
  1259. Simplified TARGET_WAITKIND_STOPPED -- HP previously had some
  1260. more complicated code in here.
  1261. Moved the code to resume threads to after the large case statement that processes the events.
  1262. Additional processing for stop_signal=TARGET_SIGNAL_TRAP.
  1263. Cleanup code at process_event_stop_test label.
  1264. Set thread_step_needed when processing a BPSTAT_WHAT_SINGLE.
  1265. Minor massaging of fork/vfork/exec part of stop_stepping code.
  1266. (normal_stop): Minor changes. calling show_and_print_stack_frame.
  1267. (xdb_handle_command): New function
  1268. (_initialize_infrun): Handle xdb_commands. also handle dbx commands
  1269. * infrun.c: Changes to support following forks, and handling
  1270. catchpoints.
  1271. (follow_fork_mode_kind_names): New array
  1272. (follow_fork): New function. implements the follow parent,
  1273. or child functionality.
  1274. (resume): Additions to check whether the target process
  1275. just forked and decide which process to follow.
  1276. (wait_for_inferior): Additional variables (child_inferior_pid,
  1277. stepping_through_solib_after_catch,
  1278. - stepping_through_solib_catchpoints.
  1279. - Altered CURRENTLY_STEPPING macro to check for stepping through
  1280. a shared library after hitting a catchpoint.
  1281. - Add parameters to save_infrun_state call
  1282. - Check for fork and vfork when deciding if event is a random
  1283. signal
  1284. - When considering stops due to breakpoints, check for
  1285. BPSTAT_WHAT_CHECK_SHLIBS_RESUME_FROM_HOOK
  1286. - Check for stop due to an explicit catchpoint
  1287. - When checking for single stepping event, also check for
  1288. stepping to get out of dynamic linker's hook after catching
  1289. a shlib event
  1290. (is_internal_shlib_eventpoint): New funct. check to see if
  1291. event type is bp_shlib_event.
  1292. (stopped_for_internal_shlib_event): New funct. check for shlib
  1293. events
  1294. (stopped_for_shlib_catchpoint): New funct. check for catchpoints.
  1295. (normal_stop): Additions to check for shlib event
  1296. (set_follow_fork_mode_command): New funct. handles the new follow
  1297. fork command.
  1298. (_initialize_infrun): Additions for follow-fork-mode command.
  1299. * infrun.c: Ifdefing references to
  1300. switched_from_inferior_pid for HPUXHPPA. They don't seem
  1301. useful for Solaris (i.e. non-HPUX)
  1302. * infrun.c: Included tuiData.h and tuiDataWin.h, ifdefed for TUI.
  1303. Included top.h. New static variables: Switched_from_inferior_pid,
  1304. number_of_threads_in_syscalls.
  1305. (follow_inferior_fork): If there is a step_resume breakpoint
  1306. explicitly reset the thread number.
  1307. (resume): For TARGET_WAITKIND_VFORKED, removed a check for getting
  1308. the vfork event to soon.
  1309. (init_wait_for_inferior): Added parameter to call to
  1310. breakpoint_init_inferior. Initialize number_of_threads_in_syscalls.
  1311. (wait_for_inferior): New local variables: Prev_sal,
  1312. enable_hw_watchpoints_after_wait, stepping_through_sigtramp,
  1313. stepped_after_stopped_by_watchpoint. Enable watchpoints after a wait.
  1314. Added cases for TARGET_WAITKIND_SYSCALL_ENTRY and
  1315. TARGET_WAITKIND_SYSCALL_RETURN.
  1316. Do additional processing if stop due to breakpoint, but breakpoint is
  1317. only valid for a thread other than the one currently running. Additional
  1318. parameters to save_infrun_state and load_infrun_state. Some additional
  1319. processing for BPSTAT_WHAT_STEP_RESUME. Some additional processing to
  1320. handle stepping over a function.
  1321. (normal_stop): Added notification of switching threads. ifdefing some
  1322. TUI changes and leaving out non-essential TUI changes.
  1323. (restore_selected_frame): Ifdefing some TUI changes
  1324. (restore_inferior_status): Ifdefing some TUI changes
  1325. * infrun.c: Removed the TUI ifdefs and TUI code. Also removed
  1326. include for top.h. HP introduced this. I'm taking it out.
  1327. * inftarg.c (child_detach_from_process): Declare.
  1328. (child_attach_to_process): Declare.
  1329. (child_stop): Make static to match declaration.
  1330. * inftarg.c (ptrace_him): Change prototype back to return int.
  1331. * inftarg.c (ptrace_me): Remove debug output, pass NULL to
  1332. fork_inferior if not HPUX.
  1333. * inftarg.c:
  1334. (child_require_attach): New funct prototype and definition
  1335. (child_require_detach): New funct prototype and definition
  1336. (proc_wait): Funct prototype and definition are enclosed by
  1337. proc_wait ifndef
  1338. (child_attach_to_process): New function, does most of the
  1339. work that child_attach used to do and some additional
  1340. work to determine whether gdb is already attached to the
  1341. target how to react.
  1342. (child_attach): Altered. It's now a wrapper for
  1343. child_attach_to_process.
  1344. (child_require_attach): New function, called if should attach
  1345. even when gdb is already attached to target.
  1346. (child_detach_from_process): New function, does most of the
  1347. work that child_detach used to do and some additional work
  1348. to determine whether gdb is currently attached to the target.
  1349. (child_detach): Altered. It's now a wrapper for
  1350. child_detach_from_process.
  1351. (child_require_detach): New function, called if should try to
  1352. detach even when gdb is not attached to target.
  1353. (ptrace_him): Calls a new function, target_acknowledge_forked_child.
  1354. Currently, target_acknowledge_forked_child, is only defined to
  1355. do something for HPUX.
  1356. (child_create_inferior): Changed call to fork_inferior.
  1357. (child_ops): Added to_require_attach and to_require_detach fields
  1358. to the child_ops target ops vector.
  1359. * inftarg.c:
  1360. Some hacks for ttrace work
  1361. (child_wait): Additional local variables, additional code in
  1362. while loop to check for: Process exited, process forked,
  1363. process vforked, process execd
  1364. (child_thread_alive): John B. seems to think that the kill
  1365. call is inapproapriate for HPUX.
  1366. (child_attach_to_process): Using strtol rather than atoi.
  1367. no longer check for case where there is no known exec file.
  1368. (child_post_attach): New function, a default, a no-op
  1369. (child_insert_fork_catchpoint): New function, a default, a no-op
  1370. (child_remove_fork_catchpoint): New function, a default, a no-op
  1371. (child_create_catch_fork_hook): Deleted
  1372. (child_create_catch_vfork_hook): Deleted
  1373. (child_insert_vfork_catchpoint): New function, a default, a no-op
  1374. (child_remove_vfork_catchpoint): New function, a default, a no-op
  1375. (child_can_follow_vfork_prior_to_exec ):new function, a default,
  1376. a no-op
  1377. (child_insert_exec_catchpoint): New function, a default, a no-op
  1378. (child_remove_exec_catchpoint): New function, a default, a no-op
  1379. (child_has_execd): New function, a default, returns 0
  1380. (child_reported_exec_events_per_exec_call): New function, a
  1381. default, returns 1
  1382. (child_has_exited): New function, a default.
  1383. (child_core_file_to_sym_file): New function, a default, returns NULL.
  1384. (child_ops): Initialize new target_ops vector fields to the
  1385. child* functions.
  1386. * infptrace.c:
  1387. (Call_ptrace): For HPUX, handle additional requests: Pt_CONTIN1,
  1388. PT_STEP1.
  1389. (require_notification_of_events): Add several signals to the
  1390. set of events requiring notification: Ptrace_SIGNAL,
  1391. PTRACE_EXEC, PTRACE_FORK, PTRACE_VFORK
  1392. (child_acknowledge_created_inferior): This function is only
  1393. defined if CHILD_ACKNOWLEDGE_CREATED_INFERIOR is defined.
  1394. (child_post_startup_inferior): Function is only defined if
  1395. CHILD_POST_STARTUP_INFERIOR is defiend. Also, now call
  1396. require_notification_of_events.
  1397. (child_create_catch_fork_hook): Deleted
  1398. (child_create_catch_vfork_hook): Deleted
  1399. (child_insert_fork_catchpoint): New function
  1400. (child_remove_fork_catchpoint): New function
  1401. (child_insert_vfork_catchpoint): New function
  1402. (child_remove_vfork_catchpoint): New function
  1403. (child_has_forked): Now enclosed by a CHILD_HAS_FORKED ifdef
  1404. (child_has_vforked): Now enclosed by CHILD_HAS_VFORKED ifdef
  1405. (child_can_follow_vfork_prior_to_exec): New function
  1406. (child_insert_exec_catchpoint): New function
  1407. (attach): Removed call to require_notification_of_events
  1408. (child_post_attach): New function, call to
  1409. require_notification_of_events moved here.
  1410. (child_pid_to_exec_file): New enclosed by CHILD_PID_TO_EXEC_FILE ifdef
  1411. introduced the concept of a saved_inferior_pid
  1412. (hppa_require_attach): Add some code to decide if gdb is already
  1413. attached to process. Can not figure this out via a ptrace call.
  1414. (hppa_insert_hw_watchpoint): New function
  1415. (hppa_remove_hw_watchpoint): New function
  1416. * inftarg.c:
  1417. (child_attach_to_process): Change position in file
  1418. (child_detach_from_process): Change position in file
  1419. * inftarg.c:
  1420. (child_attach_to_process): Changed parameter to child_wait call
  1421. * inftarg.c:
  1422. (child_post_wait): New function declaration and definition
  1423. (ptrace_him):
  1424. - change return value to a void.
  1425. - change target_acknowledge_forked_child call to
  1426. target_acknowledge_created_inferior
  1427. - call target_post_startup_inferior rather than returning pid.
  1428. (child_attach_to_process): Change param name, fail_if_already_attached
  1429. -> after_fork.
  1430. Invert a couple of if-then-else statments.
  1431. Use REQUIRE_ATTACH macro
  1432. (child_attach): Change params in child_attach_to_process call
  1433. (child_require_attach): Change params in child_attach_to_process call
  1434. (child_detach_to_process): Change param name,
  1435. fail_if_already_attached -> after_fork.
  1436. Invert a couple of if-then-else statments.
  1437. Use REQUIRE_DETACH macro
  1438. (child_detach): Change params in child_detach_from_process call
  1439. (child_require_detach): Change params in child_detach_from_process
  1440. call
  1441. (child_post_startup_inferior): New function
  1442. (child_acknowledge_created_inferior): New function
  1443. (child_clone_and_follow_inferior): New function
  1444. (child_post_follow_inferior_by_clone): New function
  1445. (child_create_catch_fork_hook): New function
  1446. (child_create_catch_vfork_hook): New function
  1447. (child_has_forked): New function
  1448. (child_has_vforked): New function
  1449. (child_post_follow_vfork): New function
  1450. (child_stop): No longer a static function
  1451. (child_pid_to_exec_file): New function
  1452. * inftarg.c:
  1453. (child_wait): Child_pid becomes related pid. return pid
  1454. rather than inferior_pid. Changes are in code handling fork
  1455. and vfork
  1456. * inftarg.c:
  1457. Include gdb_stat.h and sys/unistd.h
  1458. (child_wait): New local variables. Check for live threads.
  1459. Check for syscall events
  1460. (child_thread_alive): No longer a static funct.
  1461. (ptrace_him): Remove some code inserted in snap3
  1462. (child_create_inferior): Added a bunch of code to handle a
  1463. bad interaction between start-up-with-shell and the HP
  1464. catch-fork/catch-exec logic. I am ifdefing this for
  1465. HPUXHPPA for now.
  1466. (child_has_syscall_event): New default target_ops function
  1467. (child_enable_exception_callback): New default target_ops function
  1468. (child_get_current_exception_event): New default target_ops function
  1469. (child_ops): 3 new fields
  1470. * inftarg.c: Remove HPUX_SNAP1 and HPUX_SNAP2 ifdefs
  1471. * inftarg.c: Reverted previous change.
  1472. * infttrace.c (hppa_remove_hw_watchpoint): Fix check for write
  1473. access hardware watchpoint.
  1474. * infttrace.c (proc_wait): Rename from proc_wait.
  1475. * infttrace.c (require_notification_of_exec_events): New function;
  1476. just notify of exec events, not all events, and just the specified
  1477. pid, don't include it's children.
  1478. (child_acknowledge_created_inferior): Call new function
  1479. require_notification_of_exec_events instead of
  1480. require_notification_of_events.
  1481. (child_post_startup_inferior): Call require_notification_of_events
  1482. * infttrace.c: Changed all references to boolean to int.
  1483. Changed all references to TRUE and FALSE to 1 and 0.
  1484. * irix5-nat.c (symbol_add_stub): Add params to call to
  1485. symbol_file_add.
  1486. * jv-lang.c (get_dynamics_objfile): Add 2 more parameters to call
  1487. to allocate_objfile.
  1488. * main.c (fputs_unfiltered): Changes to prevent cursor form
  1489. jumping around in the TUI. Altered where tuiTermUnsetup and
  1490. tuiTermSetup are called
  1491. * main.c (fputs_unfiltered): Changed function so that it
  1492. checks to see if output is to a string buffer or to a
  1493. FILE stream and does the correct action (i.e. strcat or
  1494. fputs). Fixed params for fputs call.
  1495. * main.c (fputs_unfiltered): Don't try to call the TUI's
  1496. CommandCharCount functions when the TUI isn't enabled.
  1497. * main.c (fputs_unfiltered): Change FILE to GDB_FILE.
  1498. * main.c (main): If the user gives the --version or --help flags,
  1499. disable the TUI.
  1500. * main.c (tui_version, xdb_commands, dbx_commands): New variables.
  1501. (main): New command line arguments --tui, --xdb, --dbx; add call
  1502. to tyiCleanUp via tuiDo to main loop.
  1503. (fputs_unfiltered): Tui related changes.
  1504. * main.c: Define 2 new global variables, gdb_stdout and gdb_stderr
  1505. of type GDB_FILE.
  1506. (main): Allocate space for and initialize gdb_stdout and gdb_stdin.
  1507. * objfiles.c (find_pc_sect_section): Make end condition be less
  1508. than s->endaddr, not less than or equal to s->endaddr.
  1509. * objfiles.c:
  1510. (allocate_objfile): 2 new parameters: User_loaded and is_solib.
  1511. When appropriate, record in the object file that it is user loaded.
  1512. The run command can use this information to purge object file
  1513. entries associated with the old inferior and keep user loaded
  1514. object files loaded via the add-symbol-file command.
  1515. (objfile_purge_solibs): New function. deletes all objectfile entries
  1516. that are not explicitly loaded by the user.
  1517. * objfiles.c:
  1518. (objfile_relocate): Check for LOC_INDIRECT
  1519. (find_pc_sect_section): Change condition from
  1520. pc < s->endaddr to pc <= s->endaddr
  1521. * objfiles.h:
  1522. New variables: User_loaded and is_solib
  1523. (OBJF_SHARED): New macro. used to distinguish objfile for
  1524. shared library from "vanilla" objfile.
  1525. (allocate_objfile): Add new parameters to function decl.
  1526. (objfile_purge_solibs): New function decl.
  1527. * objfiles.h: Add some typedefs: Importentry, ExportEntry.
  1528. Add some new variables: Import_list, import_list_size,
  1529. export_list, export_list_size
  1530. * osfsolib.c:
  1531. (symbol_add_stub): Added params to call to symbol_file_add
  1532. * pa/hpux1020.mh (NATDEPFILES): Add corelow.o, symbol table and
  1533. solib files.
  1534. * pa/hpux1100.mh (NAT_FILE): Use nm-hppah11.h.
  1535. (NATDEPFILES): Add symbol table and solib files.
  1536. * pa/nm-hppah11.h: New file, HPUX11-only definitions.
  1537. * pa/tm-hppa.h (proc_wait): Remove decl and macro.
  1538. * parse.c (write_dollar_variable): Handle cases in which variables
  1539. besides the debugger ones start with $ and $$.
  1540. (parse_nested_classes_for_hpacc): New function. Parse a string that
  1541. is possibly a namespace / nested class specification.
  1542. (find_template_name_end): New function.
  1543. * procfs.c:
  1544. (procfs_init_inferior): Return value is now a void.
  1545. * procfs.c (procfs_ops): Initializing new target ops vector fields. see list below.
  1546. * procfs.c:
  1547. (procfs_ops): Adding new target_ops vector fields and
  1548. removing a few. see list below
  1549. * procfs.c: Added new fields to procfs_ops.
  1550. Necessary since we still have oldstyle initialization in
  1551. this file
  1552. * pyr-tdep.c (pyr_do_registers_info): Change stdout to gdb_stdout.
  1553. (frame_locals_address): Change stderr to gdb_stderr.
  1554. (frame_args_addr): Ditto.
  1555. * pyr-xdep.c (fetch_inferior_registers): Change stderr to
  1556. gdb_stderr.
  1557. * serial.c (serial_close): Call gdb_fclose, not fclose on a
  1558. GDB_FILE.
  1559. * serial.c (serial_logchar): Change chtype to ch_type. sigh.
  1560. * solib.c (look_for_base): The parameter to file must be
  1561. of type FILE *. So cast exec_bfd -> iostream in the call
  1562. to fileno as a FILE *, not a GDB_FILE *. This will work because
  1563. exec_bfd -> iostream is declared and given a value in bdf and
  1564. bfd will continue to use FILE rather than GDB_FILE.
  1565. * solib.c:
  1566. (solib_add): Remove references to exec_ops.
  1567. * solib.c:
  1568. (solib_add): Update exec_ops.to_sections
  1569. * solib.c:
  1570. (symbol_add_stub): Added params to call to symbol_file_add
  1571. * solib.h:
  1572. (SOLIB_REMOVE_INFERIOR_HOOK): New macro. defined to 0.
  1573. functionality not implemented for this target.
  1574. * solib.h: Added macro definitions. These macros generate
  1575. error messages for solaris??
  1576. (SOLIB_CREATE_CATCH_LOAD_HOOK)
  1577. (SOLIB_CREATE_CATCH_UNLOAD_HOOK)
  1578. (SOLIB_HAVE_LOAD_EVENT)
  1579. (SOLIB_LOADED_LIBRARY_PATHNAME)
  1580. (SOLIB_HAVE_UNLOAD_EVENT)
  1581. (SOLIB_UNLOADED_LIBRARY_PATHNAME)
  1582. (SOLIB_IN_DYNAMIC_LINKER)
  1583. (SOLIB_RESTART)
  1584. * somread.c (is_in_import_list): Ditto.
  1585. * somread.c (som_symfile_read): Added some comments
  1586. * somread.c (som_symfile_read): Read in import and export lists.
  1587. (som_symtab_read): Change test for dynamic executable.
  1588. (is_in_import_list): New function. Check if a given symbol name
  1589. is in the import list.
  1590. (init_import_symbols): New function. Read in and initialize the
  1591. som import list.
  1592. (init_export_symbols): New function. Read in and initialize the
  1593. som export list.
  1594. * somread.c:
  1595. (som_symfile_read): Fix missing comment delimiters
  1596. * somsolib.c (DLD_FLAGS_MAPPRIVATE): New macro.
  1597. Define bit of __dld_flags in HP-UX a.out files.
  1598. (DLD_FLAGS_HOOKVALID): Ditto.
  1599. (DLD_FLAGS_LISTVALID): Ditto.
  1600. (DLD_FLAGS_BOR_ENABLE): Ditto.
  1601. (som_solib_total_st_size): Cumulative size in bytes of the
  1602. symbol tables of all shared objects on the so_list_head list.
  1603. (som_solib_st_size_threshhold_exceeded): Threshold for adding symbols
  1604. for shlibs.
  1605. (som_solib_sizeof_symbol_table): New function. Computes size of
  1606. symbol table for a shlib.
  1607. (som_solib_load_symbols): New function. Load symbols from shlib.
  1608. (som_solib_add): Detect if __dld_list is not valid.
  1609. Record main program's symbol table size.
  1610. Load symbols if called from command line.
  1611. Keep threshold into account when loading shlib symbols.
  1612. (som_solib_create_inferior_hook): Use dld_flags macros.
  1613. (som_sharedlibrary_info_command): Let user know if symbols were
  1614. not loaded.
  1615. (som_solib_restart): Discard all the shlibs descriptors.
  1616. (_initialize_som_solib): Chenge help message for auto-solib-add
  1617. command.
  1618. Set threshold for symbol table to 50 megabytes.
  1619. * somsolib.c (_initialize_som_solib): Added call to som_solib_restart.
  1620. (som_solib_restart): New function
  1621. (som_solib_in_dynamic_linker): New function
  1622. (som_solib_desire_dynamic_linker_symbols): New function
  1623. (som_solib_unloaded_library_pathname): New function
  1624. (som_solib_loaded_library_pathname): New function
  1625. (som_solib_library_pathname): New function
  1626. (som_solib_have_unload_event): New function
  1627. (som_solib_have_load_event): New function
  1628. (som_solib_create_catch_unload_hook): New function
  1629. (som_solib_create_catch_load_hook): New function
  1630. (som_solib_create_inferior_hook): Rewritten
  1631. dld_cache: New struct
  1632. addr_and_unwind_t: New struct
  1633. (find_unwind_entry) added prototype
  1634. * somsolib.c (som_solib_create_inferior_hook): Introduce new local
  1635. msymbol2 and change some msymbol's to msymbol2's -- was clobbering
  1636. msymbol, passing a NULL to lookup_minimal_symbol_solib_trampoline,
  1637. and ultimately core dumping with a SEGV.
  1638. * somsolib.c:
  1639. Include assert.h
  1640. (som_solib_mapped_entry): Additional comments for text_addr,
  1641. text_link_addr, text_end, and tsd_start_addr fields. Commenting
  1642. out 2 tsd fields, __data_start and __data_end.
  1643. (som_solib_add_solib_objfile): Add params to calls to symbol_file_add.
  1644. Add some code for distinguishing between a shared library and other
  1645. objfiles. This appears to be a prelude to thread local storage.
  1646. (som_solib_load_symbols): Changes to printf statement
  1647. enclosed by SOLIB_DEBUG ifdef.
  1648. (som_solib_add): Change comment to correctly specify path
  1649. to end.o -- /opt/langtools/lib/end.o. changes to printf statement
  1650. enclosed by SOLIB_DEBUG ifdef.
  1651. Removed several SOLIB_DEBUG ifdefs and the associated printfs.
  1652. Add code to find the start address for the object file's thread
  1653. local storage
  1654. (som_solib_create_inferior_hook): Fix warning messages use correct
  1655. path to end.o -- /opt/langtools/lib/end.o. Change control flow.
  1656. No longer user early returns from function is cases of error.
  1657. (reset_inferior_pid): New function
  1658. (som_solib_remove_inferior_hook): New function
  1659. (so_lib_thread_start_addr): New function. used for tsd.
  1660. * somsolib.c: Removed references to ASSERT macro.
  1661. * somsolib.c: Add debugging macro.
  1662. (struct som_solib_mapped_entry): Add new field tsd_start_addr.
  1663. (struct so_list): Added new field solib_addr.
  1664. (som_solib_add_solib_objfile): New function.
  1665. (som_solib_load_symbols): Rewritten.
  1666. (som_solib_add): Make sure we don't load the symbols in if the
  1667. threshold was exceeded.
  1668. (som_solib_get_solib_by_pc): New function. Return the address of
  1669. handle of the shared library.
  1670. (som_solib_restart): Disable breakpoints at restart.
  1671. (_initialize_som_solib): Set threshold to 100 megabytes.
  1672. * somsolib.c: Add include of fcntl.h so that O_RDONLY is defined.
  1673. * somsolib.h (DISABLE_UNSETTABLE_BREAK): New macro.
  1674. (PC_SOLIB): New macro.
  1675. * somsolib.h:
  1676. (SOLIB_CREATE_CATCH_LOAD_HOOK): Define
  1677. (SOLIB_CREATE_CATCH_UNLOAD_HOOK): Define
  1678. (SOLIB_HAVE_LOAD_EVENT): Define
  1679. (SOLIB_LOADED_LIBRARY_PATHNAME): Define
  1680. (SOLIB_HAVE_UNLOAD_EVENT): Define
  1681. (SOLIB_UNLOADED_LIBRARY_PATHNAME): Define
  1682. (SOLIB_IN_DYNAMIC_LINKER): Define
  1683. (SOLIB_RESTART): Define
  1684. * somsolib.h:
  1685. (SOLIB_REMOVE_INFERIOR_HOOK): New macro. defined to use
  1686. som_solib_remove_inferior_hook.
  1687. * somsolib.h:
  1688. (som_solib_create_catch_load_hook)
  1689. (som_solib_create_catch_unload_hook)
  1690. (som_solib_have_load_event)
  1691. (som_solib_loaded_library_pathname)
  1692. (som_solib_have_unload_event)
  1693. (som_solib_unloaded_library_pathname)
  1694. (som_solib_in_dynamic_linker)
  1695. Fix prototypes to use type names, not parameter names.
  1696. * source.c (find_source_lines): Make non static.
  1697. (open_source_file): Ditto.
  1698. (source_full_path_of): New function.
  1699. (print_source_lines): Rename to print_source_lines_base and make
  1700. static; formatting.
  1701. (print_source_lines): New function.
  1702. (forward_search_command): Tui changes.
  1703. (reverse_search_command): Tui changes.
  1704. (_initialize_source): Add xdb and dbx compatibility commands.
  1705. * source.c (list_command): Handle case of odd number of source
  1706. lines to display.
  1707. * source.c:
  1708. (source_full_path_of): New function. file was overlooked
  1709. in merge ;-/.
  1710. * stack.c (func_command): Make high bound be <, not <=.
  1711. * stack.c (_initialize_stack): For the backtrace command, delete
  1712. the help line about usage, since this has to be a valid help
  1713. message for the 'where' command too.
  1714. * stack.c (current_frame_command): Add a check for the
  1715. existance of a stack. If there is no stack produce an
  1716. error message and exit.
  1717. * stack.c (down_silently_base, up_silently_base,
  1718. args_plus_locals_info, print_frame_info_base,
  1719. print_stack_frame_base, print_stack_frame_base_stub): Declare.
  1720. (print_frame_local_vars): Add'l parameter.
  1721. (print_stack_frame_stub): New version created, old version renamed
  1722. to show_and_print_stack_frame_base_stub.
  1723. (print_stack_frame_base_stub, print_only_stack_frame_stub,
  1724. show_and_print_stack_frame, print_only_stack_frame,
  1725. stack_publish_stopped_with_no_frame, print_frame_info,
  1726. show_stack_frame, backtrace_full_command, args_plus_locals_info,
  1727. select_and_print_frame, select_and_maybe_print_frame,
  1728. current_frame_command, func_command): New functions.
  1729. (backtrace_command): New function, old renamed to
  1730. backtrace_command_1.
  1731. (print_block_frame_locals, print_frame_local_vars): Additional
  1732. parameter, number of tabs.
  1733. (up_silently_command): New function, old renamed to
  1734. up_silently_command_base.
  1735. (down_silently_command): New function, old renamed to
  1736. down_silently_base.
  1737. (_initialize_stack): Register new commands based on values of
  1738. xdb_commands and dbx_commands variables.
  1739. * stack.c (func_command): Make high bound be <, not <=.
  1740. * stack.c (parse_frame_specification): Fix prototype to match
  1741. function definition.
  1742. (show_and_print_stack_frame_stub): Fix name.
  1743. (select_and_print_frame): Change uncaught tuiDO call.
  1744. * stack.c (up_silent_base): Rename from up_silently_command_base.
  1745. * symfile.c (symbol_file_command): Only call SOLIB_RESTART if it's
  1746. defined.
  1747. * symfile.c (add_psymbol_with_dem_name_to_list): New function.
  1748. Adds a symbol with a long value to a psymtab. Differs from
  1749. add_psymbol_to_list in taking both a mangled and a demangled name.
  1750. * symfile.c (compare_psymbols): Call strcmp directly, instead of
  1751. using macro.
  1752. * symfile.c (symbol_file_add): Reindent portions.
  1753. (symbol_file_command): Add call to tuiDo.
  1754. * symfile.c (symbol_file_command): Only call SOLIB_RESTART if it's
  1755. defined.
  1756. * symfile.c (symfile_bfd_open): Add code to call PXDB on hpux, if
  1757. the file has not already been processed by pxdb.
  1758. Added define USE_PXDB.
  1759. * symfile.c (symfile_bfd_open): Change parenthesis positioning
  1760. around call to hpread_pxdb_check.
  1761. * symfile.c (symfile_bfd_open): Make not static.
  1762. (RESET_HP_UX_GLOBALS): New macro. Resets globals when new symbol
  1763. file loaded.
  1764. (USE_PXDB): Not needed. Removed.
  1765. (symbol_file_add): Add HP specific code to deal with pxdb.
  1766. (symbol_file_command): Reset HP specific globals if new symbol file
  1767. loaded.
  1768. (symfile_bfd_open): Comment out checking for pxdb.
  1769. (reread_symbols): Reset HP specific globals.
  1770. * symfile.c (symfile_bfd_open): Uncomment hpus specific code.
  1771. * symfile.c:
  1772. (symbol_file_add): Add user_loaded and is_solib parameters.
  1773. fixed number of parameters in call to allocate_objfile
  1774. (symbol_file_command): Added call to SOLIB_RESTART macro.
  1775. fixed number of parameters in calls to symbol_file_add.
  1776. (add_symbol_file_command): Fixed number of parameters in calls to
  1777. symbol_file_add.
  1778. * symfile.c: Added prototype for hpread_pxdb_check.
  1779. * symfile.c: Changed HPUX_SNAP1 ifdef to HPUXHPPA. enclosed calls to
  1780. RESET_HP_UX_GLOBALS with an HPUXHPPA ifdef
  1781. * symfile.h (symfile_bfd_open): Add protptype.
  1782. * symfile.h: Add prototype for add_psymbol_with_dem_name_to_list.
  1783. * symfile.h: Clarify purpose of auto_solib_add.
  1784. * symmisc.c (maintenance_print_symbols): Call gdb_fclose, not
  1785. fclose on a GDB_FILE* during cleanup.
  1786. (maintenance_print_psymbols): Call gdb_fclose, not fclose on a
  1787. GDB_FILE* during cleanup.
  1788. (maintenance_print_msymbols): Call gdb_fclose, not fclose on a
  1789. GDB_FILE* during cleanup.
  1790. * symmisc.c (maintenance_print_symbols): Gdb_fclose now takes a
  1791. GDB_FILE ** parameter. Fix the local GDB_FILE variables and the
  1792. call to make_cleanup.
  1793. (maintenance_print_psymbols): Ditto
  1794. (maintenance_print_msymbols): Ditto
  1795. * symmisc.c (print_objfile_statistics): Close quotes in
  1796. output strings.
  1797. * symmisc.c:
  1798. (Print_symbol): Add LOC_INDIRECT to switch statement
  1799. (print_partial_symbols): Add LOC_INDIRECT to switch statement
  1800. * symtab.c (find_pc_sect_psymtab): High bounds should be <, not <=.
  1801. (find_pc_sect_symtab): Ditto.
  1802. * symtab.c (hp_som_som_object_present): New flag to indicate HP
  1803. compiled code.
  1804. (find_pc_sect_psymtab): Change tests to make sure we are checking
  1805. the texthigh adress as well.
  1806. (lookup_transparent_type): New function. Look up a type name
  1807. in the struct_namespace. The type returned must not be opaque.
  1808. (find_pc_sect_symtab): Make sure we check the address 'pc' itself,
  1809. too.
  1810. (find_addr_symbol): Prepare to handle LOC_INDIRECT address class, but
  1811. leave it commented out.
  1812. (find_pc_sect_line): Return correct information if pc is in import
  1813. or export stub (trampoline).
  1814. (decode_line_1): Skip two chars, if they are '$$'. Like for HP's
  1815. $$dyncall. Handle cases in which varaible and function names can start
  1816. with $.
  1817. (overload_list_add_symbol): If cannot demangle name, use it as is.
  1818. Free string after use.
  1819. (make_symbol_overload_list): Initialize oload_name to NULL and
  1820. oload_name_len to 0. If demangle not successful, use name as it is.
  1821. Free string after use.
  1822. * symtab.c (lookup_symbol): Changed call to find_pc_sect_symtab,
  1823. to the original find_pc_symtab, in HP added fragment.
  1824. * symtab.c (lookup_symbol): Change HPUX_SNAP1 ifdef to a HPUXHPPA ifdef
  1825. * symtab.c (lookup_symbol): Ifdef the searching of symbol in the
  1826. minimal symbol tables, for hpux we move this check at the end
  1827. of the function.
  1828. Before we error out if symbol is not found in the symtab, look
  1829. in the statics.
  1830. Before erroring out if static symbol not found look in the globals.
  1831. * symtab.c (lookup_symbol): Return symbol as soon as found.
  1832. (decode_line_1): Check whether we have a conditional break. Temporarily
  1833. remove it from the line, to not confure perenthesis checking.
  1834. Handle namespaces.
  1835. (overload_list_add_symbol): New function. Overload
  1836. resolution support.
  1837. (make_symbol_overload_list): Ditto.
  1838. * symtab.c:
  1839. (find_template_name_end): New prototype decl.
  1840. (lookup_symbol): When a global or static symbol shows up in the
  1841. psymtab table, but not the symtab table, tell the user that
  1842. the symbol may be an inlined function or a template function and
  1843. provide some guidance to the user about how to more fully
  1844. specify the symbol.
  1845. (lookup_transparent_type): When a global or static symbol shows up
  1846. in the psymtab table, but not the symtab table, tell the user that
  1847. the symbol may be an inlined function or a template function and
  1848. provide some guidance to the user about how to more fully
  1849. specify the symbol.
  1850. (decode_line_1): Handle template function specification when decoding a
  1851. line. May need to be ifdefed for HP's aCC?
  1852. (_initialize_symtab): Handle dbx commands.
  1853. * symtab.h (address_class): Add new address calss for
  1854. LOC_THREAD_LOCAL_STATIC and LOC_INDIRECT.
  1855. (lookup_transparent_type): Add prototype.
  1856. (exception_event_kind): New enum for exception catchpoints.
  1857. (exception_event_record): New structure for exception catchpoints.
  1858. (CURRENT_EXCEPTION_KIND): New macro.
  1859. (CURRENT_EXCEPTION_CATCH_SAL): New macro.
  1860. (CURRENT_EXCEPTION_CATCH_LINE): New macro.
  1861. (CURRENT_EXCEPTION_CATCH_FILE): New macro.
  1862. (CURRENT_EXCEPTION_CATCH_PC): New macro.
  1863. (CURRENT_EXCEPTION_THROW_SAL): New macro.
  1864. (CURRENT_EXCEPTION_THROW_LINE): New macro.
  1865. (CURRENT_EXCEPTION_THROW_FILE) new macro.:
  1866. (Current_EXCEPTION_THROW_PC): New macro.
  1867. * symtab.h(make_symbol_overload_list): Add prototype.
  1868. * symtab.h:
  1869. (symbol_file_add): Add new params to function decl.
  1870. * target.c (cleanup_target): Changed casting of default functions for
  1871. to_has_forked, to_has_vforked, to_pid_to_exec_file to get rid of
  1872. warnings.
  1873. * target.c (cleanup_target): Changed the default functions for
  1874. to_pid_to_exec_file and to_core_file_to_sym_file
  1875. * target.c (cleanup_target): Fixed PARAMS for to_has_syscall_event
  1876. * target.c (cleanup_target): Syntax error, mismatched paranthesis.
  1877. * target.c:
  1878. (Default_clone_and_follow_inferior): New funct prototype declaration
  1879. and function definition
  1880. (dummy_target): More target_ops vector changes for HPUX
  1881. new fields. ifdefed for HPUX_SNAP2. New fields are
  1882. to_post_wait, to_post_startup_inferior
  1883. to_acknowledge_created_inferior, to_clone_and_follow_inferior,
  1884. to_post_follow_inferior_by_clone, to_create_catch_fork_hook,
  1885. to_create_catch_vfork_hook, to_has_forked, to_has_vforked,
  1886. to_post_follow_vfork, to_pid_to_exec_file
  1887. (de_fault): Add new HPUX specific target_ops operations to
  1888. the de_fault macro
  1889. (INHERIT): Add new HPUX specific target_ops operations to the
  1890. INHERIT macro
  1891. (find_default_clone_and_follow_inferior): New funct definition
  1892. (debug_to_post_wait): New funct
  1893. (debug_to_post_startup_inferior): New funct
  1894. (debug_to_acknowledge_created_inferior): New funct
  1895. (debug_to_clone_and_follow_inferior): New funct
  1896. (debug_to_post_follow_inferior_by_clone): New funct
  1897. (debug_to_create_catch_fork_hook): New funct
  1898. (debug_to_create_catch_vfork_hook): New funct
  1899. (debug_to_has_forked): New funct
  1900. (debug_to_has_vforked): New funct
  1901. (debug_to_post_follow_vfork): New funct
  1902. (setup_target_debug): Initialize new target_ops vector fields.
  1903. * target.c:
  1904. (Cleanup_target): Fixed the return type on a few of the
  1905. default function values.
  1906. * target.c:
  1907. (Dummy_target): Add 3 new fields
  1908. (nosupport_runtime): New function, used in cleanup_target
  1909. (cleanup_target): Changes in the de_fault macro, both to
  1910. accomodate the new target_ops vector fields and to use
  1911. more accurate default functions.
  1912. (update_current_target): Add new target_ops vector fields to the
  1913. INHERIT macro
  1914. (generic_mourn_inferior): The call to breakpoint_init_inferior now takes a
  1915. parameter
  1916. (normal_pid_to_str): Adding a \0 to the end of buf.
  1917. (debug_to_has_syscall_event): New func
  1918. (debug_to_enable_exception_callback): New func
  1919. (debug_to_get_current_exception_event): New func
  1920. (setup_target_debug): Initialize the 3 new target_ops vector fields
  1921. * target.c:
  1922. (Struct signals): Fix message associated with SIGRETRACT.
  1923. * target.c:
  1924. (Dummy_target): Fix syntax error
  1925. (cleanup_target): Changed the default values for the new
  1926. target_ops vector fields. HP folks inappropriately set
  1927. most of them to noprocess(). They should be a mixture
  1928. of ignore() and return_zero().
  1929. * target.c:
  1930. (Dummy_target): Add new target_ops vector fields and their initializations
  1931. (cleanup_target): Added new new target_ops vector fields to the de_fault
  1932. macro definition.
  1933. (update_current_target): Added new new target_ops vector fields to the INHERIT
  1934. macro definition
  1935. (return_one): New function, used by the de_fault macro
  1936. (debug_to_post_attach): New function
  1937. (debug_to_wait): Added new cases: Target_WAITKIND_FORKED, TARGET_WAITKIND_VFORKED,
  1938. TARGET_WAITKIND_EXECD
  1939. (debug_to_insert_fork_catchpoint): New function
  1940. (debug_to_remove_fork_catchpoint): New function
  1941. (debug_to_insert_vfork_catchpoint): New function
  1942. (debug_to_remove_vfork_catchpoint): New function
  1943. (debug_to_can_follow_vfork_prior_to_exec): New function
  1944. (debug_to_insert_exec_catchpoint): New function
  1945. (debug_to_remove_exec_catchpoint): New function
  1946. (debug_to_core_file_to_sym_file): New function
  1947. (setup_target_debug): Give new fields in current_target target_ops vector values.
  1948. * target.c: Hp merge, 4/15/98 snapshot
  1949. There are new target_ops fields that pertain only
  1950. to HPUX. All the changes relate to this. First,
  1951. new fields are added to the dummy_target target_ops
  1952. vector: To_require_attach, to_require_detach.
  1953. * target.c: Remove HPUX_SNAP1 and HPUX_SNAP2 ifdefs
  1954. * thread.c (info_threads_command): Call print_only_stack_frame
  1955. instead of print_stack_frame.
  1956. (_initialize_thread): Make t an alias for thread only if
  1957. xdb_commands is not set.
  1958. * thread.c (thread_command): If no arguments, don't generate an
  1959. error, instead tell the user which thread is current.
  1960. (info_threads_commands): Don't lose the users position within the
  1961. current thread -- remember it and then restore it.
  1962. * thread.c:
  1963. (struct thread_info): Add stepping_through_sigtramp field
  1964. (add_thread): Initialize stepping_through_sigtramp field
  1965. (load_infrun_state): Add stepping_through_sigtramp param and
  1966. make sure it gets assigned a value.
  1967. (save_infrun_state): Add stepping_through_sigtramp param and
  1968. make sure that the value gets saved.
  1969. (info_threads_command): Ifdefing some local variables and
  1970. code for HPUXHPPA. HP folks want print the tid rather than pid?
  1971. Also, looks like the HP folks solved the same thread switching
  1972. problem that 4.17 solves. Taking 4.17.
  1973. (restore_current_thread): Print out the current frame after
  1974. switching threads.
  1975. (thread_apply_all_command): Ifdefing a print statement for
  1976. HPUXHPPA. The HP folks want to print out a tid rather than pid?
  1977. (thread_apply_command): Ifdefing a print statement for
  1978. HPUXHPPA. The HP folks want to print out a tid rather than pid?
  1979. (thread_command): Decided not to take HP change.
  1980. * thread.c: Fixing gdb core dump problem causing many testsuite
  1981. failures.
  1982. (add_thread): Remove call to bpstat_clear, initialize
  1983. tp->stepping_through_solib_catchpoints = NULL;
  1984. * thread.c: Changes for catchpoints, shared libaries,
  1985. (thread_info): Additional fields in the thread_info struct
  1986. for stepping_through_solib_after_catch and
  1987. stepping_through_solib_catchpoints.
  1988. (add_thread): Initialize the new thread_info fields.
  1989. (load_infrun_state): Additional parameters for handling
  1990. catchpoints and shared libraries.
  1991. (save_infrun_state): Additional parameters for handling
  1992. catchpoints and shared libraries.
  1993. * top.c (command_loop): Initialize space_at_cmd_start to 0.
  1994. (set_prompt): New function.
  1995. (togglelist, stoplist): New command lists.
  1996. (command_loop): Tui changes -- paranoia to make sure
  1997. insert mode is off when not editing.
  1998. (quit_force): Clean up tui on exit.
  1999. (init_main): Make definition of info status command dependent upon
  2000. dbx mode not being set.
  2001. (fputs_unfiltered_hook): Changed stream parameter from FILE
  2002. to GDB_FILE
  2003. (flush_hook): Changed stream parameter from FILE to GDB_FILE
  2004. * top.h (set_prompt): Declare.
  2005. * typeprint.c (whatis_exp): Decide real runtime type. For the vtable
  2006. case.
  2007. * utils.c (query): Changes to prevent cursor from jumping around in the
  2008. TUI. Call tuiBufferGetc explicitly, rather than passing it
  2009. into tuiDo. The tuiDo function does some additional work
  2010. that is inappropriate when handling queries.
  2011. (GDB_FILE_ISATTY): New macro that takes a GDB_FILE param and
  2012. determines whether or not it's using a tty.
  2013. (gdb_file_isatty); called by the GDB_FILE_ISATTY macro. Does
  2014. the actual work
  2015. (init_page_info): Call GDB_FILE_ISATTY rather than ISATTY
  2016. (print_spaces): Fix parameter to fputc. fix call to
  2017. gdb_file_adjust_strbuf.
  2018. (gdb_file_init_astring): Fix parameter to xmalloc
  2019. (gdb_file_deallocate): New function to deallocate
  2020. a GDB_FILE object and possibly a string buffer
  2021. (gdb_file_init_astring): Initialize buffer as the empty
  2022. string. Indent GNU style.
  2023. (gdb_fopen): Gdb_fopen is called if the GDB_FILE object is
  2024. actually afile rather than astring. The routine now allocates space
  2025. for a GDB_FILE object and initializes its fields in addition to
  2026. performing an fopen.
  2027. (gdb_flush): Fix the parameter passed into fflush. It's now
  2028. stream->ts_filestream.
  2029. (gdb_fclose): Pass in an object of type GDB_FILE **. Fix parameter
  2030. to fclose. It's now tmpstream->ts_filestream. Make sure to free
  2031. the GDB_FILE object and set the GDB_FILE * object to NULL.
  2032. (gdb_adjust_strbuf): New function. Determine if the current
  2033. ts_strbuf field contains sufficient space to concatenate a string
  2034. of length n on the end. If not, then reallocate the ts_strbuf.
  2035. (print_spaces): Check to see if the GDB_FILE is afile or
  2036. astring. If it is astring, then adjust the size of the ts_strbuf
  2037. field and concatenate the correct number of spaces onto the end of
  2038. the buffer. Otherwise continue to use fputc.
  2039. (gdb_file_get_strbuf): New function. return a ptr to the ts_strbuf
  2040. field in a GDB_FILE object.
  2041. (gdb_file_init_astring): New function to allocate space for and
  2042. initialize a GDB_FILE object when it is an astring.
  2043. (set_width): Declare it.
  2044. (pagination_enabled): Define it.
  2045. (query): Tui changes.
  2046. (init_page_info, set_width): New functions.
  2047. (set_width_command): Call set_width.
  2048. (_initialize_utils): Replace termcap stuff with call to
  2049. init_page_info; if xdb_commands set, define am and sm commands;
  2050. define pagination as a set/show command.
  2051. (vfprintf_maybe_filtered): Change FILE to GDB_FILE.
  2052. (fputs_maybe_filtered): Ditto.
  2053. (print_spaces): Ditto.
  2054. (gdb_printchar): Ditto.
  2055. (gdb_flush): Ditto.
  2056. (fputs_filtered): Ditto.
  2057. (vfprintf_filtered): Ditto.
  2058. (vfprintf_unfiltered): Ditto.
  2059. (fprintf_filtered): Ditto.
  2060. (fprintf_unfiltered): Ditto.
  2061. (fprintfi_filtered): Ditto.
  2062. (print_spaces_filtered): Ditto.
  2063. (fprintf_symbol_filtered): Ditto.
  2064. (gdb_fclose): New function.
  2065. * valops.c (call_function_by_hand): Assign to param_type only
  2066. if function has parameters.
  2067. * valops.c (call_function_by_hand): Ifdef the
  2068. HP_COMPILED_TARGET stuff.
  2069. (value_arg_coerce): Ditto.
  2070. * valops.c (call_function_by_hand): Make sure param_type is
  2071. initialized to NULL.
  2072. * valops.c (find_rt_vbase_offset): Add parameter to value_at.
  2073. (value_rtti_type): Ditto.
  2074. (value_full_object): Ditto.
  2075. * valops.c (search_struct_field_aux): Fixed mismatching parenths
  2076. * valops.c (search_struct_field_aux): Make sure TYPE_TAG_NAME
  2077. is not null before copying it.
  2078. * valops.c (search_struct_field_aux): Set found_class_name to null
  2079. if class has no name (anon unions case). Adjust base_addr
  2080. computation.
  2081. * valops.c (value_arg_coerce): Change final arg to int.
  2082. * valops.c (value_arg_coerce): Remove the conditional on HP
  2083. compiled target, for doing coercion of float to double. Removed
  2084. third parameter, using_gcc.
  2085. (call_function_by_hand): Do not use HP_COMPILED_TARGET, just
  2086. use the gcc_compiled variable.
  2087. * valops.c (value_cast): Take case of the enclosing_type and
  2088. pointer_to_offset fields.
  2089. (value_at): Use VALUE_CONTENTS_ALL_RAW
  2090. (value_fetch_lazy): Ditto
  2091. (value_assign): Handle enclosing_type, embedded_offset and
  2092. pointed_to_offset fields.
  2093. (value_repeat): Use VALUE_CONTENTS_ALL_RAW and VALUE_ENCLOSING_TYPE.
  2094. (value_ind): Set enclosing_type and embedded_offset correctly,
  2095. for a pointer value being dereferenced. Target memory bytes
  2096. corresponding to the size of the enclosing type are retreived.
  2097. (value_addr): Handle enclosing_type and pointed_to_offset.
  2098. (value_push): Use VALUE_CONTENTS_ALL and VALUE_ENCLOSING_TYPE.
  2099. (value_arg_coerce): Coerce floats to doubles only if gcc was not
  2100. used to compile the target.
  2101. (call_function_by_hand): Handle pointers to functions as paramters.
  2102. (value_array): Use VALUE_CONTENTS_ALL and VALUE_ENCLOSING_TYPE.
  2103. (search_struct_method): Produce more informative error message.
  2104. (find_rt_vbase_offset): Deal with negative offsets.
  2105. (value_find_oload_method_list): New function. Return the list of
  2106. overloaded methods of a specified name.
  2107. (find_method_list): New function. Search through the methods of an
  2108. object (and its bases) to find a specified method.
  2109. (value_full_object): New function. Given a value, check its real
  2110. run-time type.
  2111. (value_rtti_target_type): New function. Given a pointer value V, find
  2112. the real (RTTI) type of the object it points to.
  2113. (value_rtti_type): New function. Find the real run-time type of a
  2114. value using RTTI.
  2115. * valops.c: Include gdbcmd.h
  2116. Set global overload_resolution to 0.
  2117. (find_function_in_inferior): Modify error message.
  2118. (value_allocate_space_in_inferior): Modify error message.
  2119. (value_cast): Deal with HP/aCC peculiarities.
  2120. (value_of_variable): Use SYMBOL_SOURCE_NAME instead of SYMBOL_NAME.
  2121. (value_addr): Modify address value by adding the embedded offset.
  2122. (value_ind): Modify the address of the object by the pointed_to_offset.
  2123. (call_function_by_hand): Do not do any extra alignment if not needed.
  2124. Fetch the return value from the stack rather then from the register,
  2125. for the hppa architecture.
  2126. (search_struct_field): Rewritten. Now this function uses
  2127. search_struct_field_aux to do all the work.
  2128. (search_struct_field_aux): New function. This is the old
  2129. search_struct_field rewritten.
  2130. (find_rt_vbase_offset): Give error if virtual table pointer is not good.
  2131. (find_overload_match): New function. Find the best function that
  2132. matches on the argument types according to the overload resolution
  2133. rules.
  2134. (_initialize_valops): Add new set/show command for overload-resolution.
  2135. * value.h (VALUE_POINTED_TO_OFFSET): New macro.
  2136. Add field pointed_to_offset to value structure.
  2137. Add prototypes for new functions in valops.c.
  2138. * value.h (write_register_pid): Change prototype to match
  2139. function.
  2140. * value.h: Hp merge, 4/15/98 snapshot
  2141. Added parameter to val_print func decl.
  2142. Added new macro, VALUE_EMBEDDED_OFFSET, and
  2143. new func decl, find_rt_vbase_offset, for C++
  2144. support.
  2145. * values.c (allocate_value): Allocate also for value_embedded_offset
  2146. and value_enclosing_type.
  2147. (value_copy): Copy value_embedded_offset and value_enclosing_type too.
  2148. Use all_raw in copying the value itself.
  2149. (value_primitive_field): Add handling of base subobjects.
  2150. * values.c (value_copy): Copy the pointed_to_offset as well.
  2151. (allocate_value): Allocate the pointed_to_offset as well.
  2152. (value_virtual_fn_field): Rewrite.
  2153. * values.c (value_primitive_field): Adjust embedded offset and
  2154. offset calculation.
  2155. * values.c (value_static_field): Take into consideration that static
  2156. data members can be minimal symbols too.
  2157. * values.c (value_virtual_fn_field): Fix call to value_at.
  2158. * win32-nat.c (handle_load_dll): Added params to call to symbol_file_add.
  2159. Other changes have to do with XDB compatability. Leave oout
  2160. for now.
  2161. defs.h (vfprintf_filtered): Change FILE to GDB_FILE in decl.
  2162. (fprintf_filtered): Ditto.
  2163. (fprintfi_filtered): Ditto.
  2164. (vfprintf_unfiltered): Ditto.
  2165. (fprintf_unfiltered): Ditto.
  2166. infcmd.c (_initialize_infcmd): If xdb_commands is set, make S an
  2167. alias for next and define R, lr, g. Define go.
  2168. pyr-tdep.c (pyr_print_insn): Change FILE to GDB_FILE.
  2169. * breakpoint.c (create_temp_exception_breakpoint): #If it out --
  2170. nothing calls it.
  2171. (bpstat_stop_status): Don't call SOLIB_HAVE_LOAD_EVENT if it's not
  2172. defined; don't call SOLIB_HAVE_UNLOAD_EVENT if it's not defined.
  2173. (bpstat_get_triggered_catchpoints): If we don't have shared
  2174. library support, then don't call SOLIB_LOADED_LIBRARY_PATHNAME nor
  2175. SOLIB_UNLOADED_LIBRARY_PATHNAME.
  2176. (watch_command_1): Don't require a run before a watch command
  2177. unless we're on HP [it's an HP OS bug, not a generic limitation]
  2178. (catch_load_command_1): Don't define if no shared libraries.
  2179. (catch_command_1): Don't claim to support fork catchpoints unless
  2180. CHILD_INSERT_FORK_CATCHPOINT is defined, don't claim to support
  2181. vfork catchpoints unless CHILD_INSERT_VFORK_CATCHPOINT is defined,
  2182. don't clain to support shared library load catchpoints if shared
  2183. libraries aren't supported, and don't claim to support exec
  2184. catchpoints unless CHILD_INSERT_EXEC_CATCHPOINT is defined
  2185. There are new target_ops vector fields that pertain
  2186. only to HPUX. Added the to_require_attach and
  2187. to_require_detach fields to exec_ops. These new
  2188. fields are ifdef'ed for HPUX_SNAP1.
  2189. * breakpoint.h:
  2190. Fix compile error in enum bptype.
  2191. * coff-solib.h:
  2192. Fixed a number of macro definitions. SOLIB_LOADED_LIBRARY_PATHNAME,
  2193. SOLIB_HAVE_LOAD_EVENT, SOLIB_HAVE_UNLOAD_EVENT,
  2194. SOLIB_UNLOADED_LIBRARY_PATHNAME, SOLIB_IN_DYNAMIC_LINKER. These
  2195. macros are only meaningful (for now) for SOM. So, all
  2196. the macros were defined as error(...), but were used in
  2197. conditions. This caused the compile to crap out. I redefined
  2198. these (for now) to be 0.
  2199. * procfs.c:
  2200. (procfs_create_inferior): Fix call to fork_inferior -- need another
  2201. parameter.
  2202. * solib.h:
  2203. Fixed a number of macro definitions. SOLIB_LOADED_LIBRARY_PATHNAME,
  2204. SOLIB_HAVE_LOAD_EVENT, SOLIB_HAVE_UNLOAD_EVENT,
  2205. SOLIB_UNLOADED_LIBRARY_PATHNAME, SOLIB_IN_DYNAMIC_LINKER. These
  2206. macros are only meaningful (for now) for SOM. So, all
  2207. the macros were defined as error(...), but were used in
  2208. conditions. This caused the compile to crap out. I redefined
  2209. these (for now) to be 0.
  2210. * valops.c:
  2211. (search_struct_field): Undeclared local variable, "assigned".
  2212. (find_rt_vbase_offset): Fixed call to value_at
  2213. * value.h: Fix signature for find_rt_vbase_offset funct decl
  2214. (missing a param)
  2215. Wed Dec 30 17:48:12 1998 Stan Shebs <shebs@andros.cygnus.com>
  2216. From J.T. Conklin <jtc@redbacknetworks.com>:
  2217. * i386-stub.c: Fix error string in last change.
  2218. 1998-12-30 Jason Molenda (jsm@bugshack.cygnus.com)
  2219. * utils.c: <Readline/readline.h> instead of "readline/readline.h".
  2220. * configure.in (TERM_LIB): Search for the appropriate term library
  2221. on the host system.
  2222. * configure: Regenerated.
  2223. * Makefile.in (TERMCAP): Set based on autoconf check.
  2224. * config/*/*.mh: Don't override TERMCAP setting.
  2225. Wed Dec 30 17:23:14 1998 Mark Alexander <marka@cygnus.com>
  2226. * value.c (value_virtual_fn_field): Handle the situation where
  2227. vtbl is a pointer to a structure instead of a pointer to an array.
  2228. Mon Dec 28 17:43:36 1998 David Taylor <taylor@texas.cygnus.com>
  2229. The following changes were made by Jim Blandy <jimb@cygnus.com>,
  2230. Edith Epstein <eepstein@cygnus.com>, Elena Zannoni
  2231. <ezannoni@cygnus.com> Stan Shebs <shebs@cygnus.com>, and David
  2232. Taylor <taylor@cygnus.com>, as part of the project to merge in
  2233. changes originally made by HP; HP did not create ChangeLog
  2234. entries.
  2235. * c-lang.h (cp_print_value_fields): Update prototype; fixed
  2236. prototype decl for c_val_print function -- it needed an
  2237. embedded_offset param; fixed prototype of cp_print_value_fields.
  2238. Include value.h.
  2239. (C_LANG_H): Define.
  2240. * c-valprint.c (c_val_print): Add new parameter embedded_offset.
  2241. Add embedded_offset to valaddr in function calls. fix calls to
  2242. val_print, and cp_print_value_fields. Attempt to determine the
  2243. real type of the object to be printed. fixed call to
  2244. cp_print_value_fields. process TYPE_CODE_METHOD as well. moved
  2245. call to check_typedef out of conditional. add embedded offset
  2246. param to val_print call.
  2247. (c_value_print): Add new parameter to call to val_print. Handle
  2248. pointer to class case. Ensure that const char *, const unsigned
  2249. char * come out without the type but the volatile variants and the
  2250. signed variants don't.
  2251. * ch-lang.h (chill_val_print): Add parameter to decl.
  2252. * ch-valprint.c: The various print routines have an additional
  2253. parameter. Currently, the new parameter is only used when printing
  2254. C++ expressions. So, in ch-valprint.c, the new parameter is always
  2255. 0. Changes in calls to val_print, chill_val_print, c_val_print
  2256. Affected functions are chill_val_print_array_elements,
  2257. chill_val_print, chill_print_value_fields, chill_value_print.
  2258. * cp-valprint.c add vtable pointers names for aCC (HP) compiler.
  2259. (cp_print_class_method): Print message for HP/aCC case.
  2260. (cp_print_class_member): Add comments.
  2261. (cp_print_value): Adjust address computations for virtual base
  2262. classes. add new parameter 'offset'. Find correct offset for
  2263. base class in HP/aCC case. Change call to cp_print_value_fields
  2264. to have extra par.
  2265. (cp_print_value_fields): Do not print also if the only field is
  2266. the vtable pointer. Print out vtable ptr, for HP/aCC compiled
  2267. case. do not print leading '=' in case of anonymous union, or
  2268. struct. add new parameter 'offset'. Do not print the vtable
  2269. pointer as a member, in the HP aCC case. Changed calls to
  2270. val_print to have extra parameter.
  2271. (cp_print_hpacc_virtual_table_entries): New function. Print vtable
  2272. entries, in HP/aCC compiled case.
  2273. (cp_print_static_field): Change call to cp_print_value_fields, and
  2274. val_print.
  2275. * d30v-tdep.c (d30v_print_register): Add embedded_offset param
  2276. to val_print call.
  2277. * defs.h: Additional include files included when TUI is defined.
  2278. (gdb_file_isatty): New function decl.
  2279. (GDB_FILE): If TUI is defined, define a structure rather
  2280. than making this an alias for FILE.
  2281. (gdb_stdout, gdb_stderr): If TUI is defined, then define these
  2282. as pointers to variables of type GDB_FILE rather than making them
  2283. be aliases for stdout and stderr.
  2284. (TUIDO): Add definition conditionalized on definition
  2285. (or lack thereof) of TUI.
  2286. (command_class): Add two additional values.
  2287. (precision_type): New enum.
  2288. (gdb_fclose): Add decl.
  2289. (store_address): Change prototype to match function.
  2290. (tui_version, xdb_commands, dbx_commands): Add decls.
  2291. (gdb_file_deallocate): New function decl
  2292. (pa_do_strcat_registers_info): New function decl.
  2293. (streamtype): New enumerated type to distinguish between output to
  2294. a FILE and output to a buffer.
  2295. (tui_stream): New struct type, named GDB_FILE.
  2296. (gdb_stdout): Of type GDB_FILE, will pass this around gdb rather
  2297. than stdout.
  2298. (gdb_stderr): Of type GDB_FILE, will pass this around gdb rather
  2299. than stderr.
  2300. (fputs_unfiltered_hook): Change stream parameter from FILE to
  2301. GDB_FILE.
  2302. (flush_hook): Change stream parameter from FILE to GDB_FILE.
  2303. (gdb_fclose): Fix decl for gdb_fclose; parameter is now of
  2304. type GDB_FILE **.
  2305. (gdb_file_adjust_strbuf): New function decl. function lives
  2306. in utils.c.
  2307. (gdb_file_init_astring): New function decl. function lives
  2308. in utils.c.
  2309. (gdb_file_get_strbuf): New function decl. function lives in
  2310. utils.c.
  2311. (source_full_path_of): Declare.
  2312. * exec.c (_initialize_exec): Make definition of file command be
  2313. dependent upon dbx_commands not being set.
  2314. (exec_file_attach): New function.
  2315. (exec_file_command): Call it.
  2316. (exec_ops): Add new target vector fields.
  2317. * f-lang.h (f_print_type): Change FILE to GDB_FILE in decl.
  2318. (f_val_print): Ditto.
  2319. (f_val_print): Add parameter to the function decl.
  2320. * f-valprint.c (_initialize_f_valprint): If xdb_commands is set,
  2321. define lc command.
  2322. (f77_create_arrayprint_offset_tbl): Change FILE to GDB_FILE.
  2323. (f77_print_array): Ditto.
  2324. (f77_print_array_1): Ditto.
  2325. (f_val_print): Ditto.
  2326. (f_val_print): Add a parameter; this new parameter is currently
  2327. only non-zero when handling C++ expressions. In this file its
  2328. value is always 0. changed fflush to gdb_flush.
  2329. * gnu-nat.c: (init_gnu_ops): Add new target vector fields.
  2330. (gnu_create_inferior): Add param to fork_inferior call.
  2331. * hppa-tdep.c (after_prologue): If f is NULL, don't dereference
  2332. it. if no debug info, return zero telling caller that we need to
  2333. find the end of the prologue via the hard way (instruction
  2334. examination).
  2335. (find_unwind_entry): Avoid dereferencing a null
  2336. pointer.
  2337. (hppa_pid_to_exec_file): Deleted -- no longer used.
  2338. (hppa_prepare_to_proceeed): Add prototype.
  2339. (read_unwind_info): Purecov comments, bug fixes.
  2340. (find_unwind_entry): Purecov comments, bug fixes.
  2341. (find_stub_with_shl_get): Purecov comments.
  2342. (frame_chain): Additional parens.
  2343. (hppa_push_arguments): Changes to commented out version of routine.
  2344. (hppa_fix_call_dummy): Purecov comments, fix location of end.o.
  2345. (in_solib_call_trampoline): Purecov comments.
  2346. (in_solib_return_trampoline): Purecov comments.
  2347. (setup_d_pid_in_inferior): Fix location of end.o.
  2348. (initialize_hp_cxx_exception_support): Fix location of end.o.
  2349. (child_enable_exception_callback): Purecov comments.
  2350. (pa_do_strcat_registers_info): Has a new parameter, precision,
  2351. which is passed into the call to pa_strcat_fp_reg to indicate
  2352. whether to display the floating point registers using
  2353. single or double preceision.
  2354. (pa_strcat_registers): Introduce local variable, precision, and
  2355. pass it into call to pa_strcat_fp_reg.
  2356. (pa_strcat_fp_reg): Modified function. New parameter, precision,
  2357. used by function to decide whether to use single or double
  2358. precision. Also add the code to put a double precision value
  2359. into a buffer.
  2360. (pa_do_strcat_registers_info): New routine. called by
  2361. tui/tuiRegs.c:_tuiRegisterFormat to place a register name
  2362. and value into a string buffer. Interface may change in
  2363. future. Checking this in so that we have something
  2364. functional for HP.
  2365. (pa_strcat_registers): New routine, called by
  2366. pa_do_strcat_registers_info. Does same thing as
  2367. pa_print_registers except it takes a stream parameter.
  2368. This routine should disappear in future. Checking in
  2369. so that we have something functional to give HP
  2370. (pa_strcat_fp_reg): New routine, called by
  2371. pa_do_strcat_registers_info and pa_strvat_registers
  2372. to place a floating point register name and value into
  2373. a buffer. This interface may change in future.
  2374. Checking in so that we have something functional to give HP.
  2375. (pa_print_fp_reg): Change prototype to match def'n.
  2376. (pa_register_look_aside): Fix comment immediately before function.
  2377. Changes to better support stack unwinding, reading and writing
  2378. registers for HPUX. New includes ptrace.h, bfd.h, dl.h.
  2379. (internalize_unwinds): Initialize new fields in table.
  2380. (read_unwind_info): Entries in the table are now more complex
  2381. structures. References of the form ...->table[index].stub_type are
  2382. now ...->table[index].stub_unwind.stub_type.
  2383. (find_proc_framesize): Add a check for pc == 0.
  2384. (rp_saved): Entries in the table are now more complex
  2385. structures. References of the form ...->table[index].stub_type are
  2386. now ...->table[index].stub_unwind.stub_type.
  2387. (frameless_function_invocation): Stub_type becomes
  2388. stub_unwind.stub_type
  2389. (saved_pc_after_call): Stub_type becomes stub_unwind.stub_type
  2390. (hppa_frame_saved_pc): Stub_type becomes stub_unwind.stub_type
  2391. (frame_chain_valid): Stub_type becomes stub_unwind.stub_type
  2392. (hppa_call_dummy): Stub_type becomes stub_unwind.stub_type
  2393. (pa_print_fp_reg): Additional params to call val_print
  2394. (in_solib_call_trampoline): Stub_type becomes
  2395. stub_unwind.stub_type
  2396. (in_solib_return_trampoline): Stub_type becomes
  2397. stub_unwind.stub_typ
  2398. (skip_trampoline_code): Additional code to handle external
  2399. dyncalls. Also stub_type becomes stub_unwind.stub_type
  2400. (hppa_pid_to_exec_file): New funct. FOr HPUX 10.0 and beyond there
  2401. is an explicit ptrace request for getting the pathname associated
  2402. with a process id (pid).
  2403. (hppa_pid_to_exec_file): Remove unwanted param from call to
  2404. call_ptrace.
  2405. (args_for_find_stub): New structure.
  2406. (find_unwind_entry): Deal with null input pc value.
  2407. (rp_saved): Ditto.
  2408. For the import stub, return -24 always.
  2409. (hppa_frame_saved_pc): Save old pc value, to detect we are in a loop.
  2410. (init_extra_frame_info): Use TARGET_READ_FP.
  2411. (frame_chain): Include thread support.
  2412. If the caller's pc is zero, we lose and return, just like stack
  2413. bottom.
  2414. Disable warning about being unable to find unwind info.
  2415. (hppa_push_arguments): Rewrite.
  2416. (hppa_value_returned_from_stack): New function. Handles returning
  2417. a value larger than 64 bits, stored on the stack.
  2418. (find_stub_with_shl_get): New function. To look up symbols in shlibs.
  2419. (cover_find_stub_with_shl_get): New function. Cover routine for
  2420. find_stub_with_shl_get to pass to catch_errors.
  2421. (hppa_fix_call_dummy): Comment out old stub mechanism.
  2422. Rewrite using dyncall.
  2423. (target_read_fp): New function.
  2424. (pa_do_registers_info): Floating point registers start at FP4.
  2425. (pa_print_registers): Use FP4_REGNUM instead of 72.
  2426. (skip_trampoline_code): Do machine instruction matching for PA2.0.
  2427. (setup_d_pid_in_inferior): New function. Exception handling support.
  2428. (initialize_hp_cxx_exception_support): Ditto.
  2429. (child_enable_exception_callback): Ditto.
  2430. (child_get_current_exception_event): Ditto.
  2431. * hpux-thread.c (hpux_thread_ops): Add new target vector fields.
  2432. * infcmd.c: Include objfiles.h.
  2433. (attach_command): New local variable, exec_file, add code to
  2434. determine exec_file from pid if exec_file is not already known,
  2435. call new target operation, target_post_attach -- a no-op unless
  2436. on HPUXHPPA.
  2437. (detach_command): After detaching, do a SOLIB_RESTART.
  2438. (objfiles.h): Fix typo on include line.
  2439. (run_command): Only call SOLIB_RESTART if it's defined.
  2440. (detach_command): Ditto.
  2441. (run_command): If program has already been started, and decide
  2442. to restart it, the kill the target, flush the caches,
  2443. call init_wait_for_inferior. Also purge old solib objfiles.
  2444. (run_stack_dummy): Add calls to
  2445. disable_watchpoints_before_interactive_call_start and
  2446. enable_watchpoints_after_interactive_call_stops.
  2447. (finish_command): Alter code handling the evaluation and printing
  2448. of the target function's return value.
  2449. (attach_command): When given a pid, but no exec file, try to
  2450. determine the exec file from the process. If the process does not
  2451. record a full path name, try to qualify the filename against the
  2452. source path.
  2453. (_initialize_infcmd): Add some verbiage about how to use the
  2454. attach command.
  2455. (do_registers_info): Changed calls to val_print
  2456. made the symfile.h include preceed the
  2457. objfiles.h include. The other ordering caused a
  2458. compile problem (incompletely defined types).
  2459. * inftarg.c (child_post_attach): Fix decl, make static.
  2460. (proc_wait): Make globally visible.
  2461. (child_insert_fork_catchpoint, etc): Fix return type.
  2462. (child_detach_from_process): Declare.
  2463. (child_attach_to_process): Declare.
  2464. (child_stop): Make static to match decl.
  2465. (ptrace_him): Change prototype back to return int.
  2466. (ptrace_me): Remove debug output, pass NULL to fork_inferior if
  2467. not HPUX.
  2468. (proc_wait): function prototype and definition are enclosed by
  2469. proc_wait ifndef
  2470. (child_attach_to_process): New function, does most of the work
  2471. that child_attach used to do and some additional work to determine
  2472. whether gdb is already attached to the target how to react.
  2473. (child_attach): Altered. It's now a wrapper for
  2474. child_attach_to_process.
  2475. (child_require_attach): New function, called if should attach even
  2476. when gdb is already attached to target.
  2477. (child_detach_from_process): New function, does most of the work
  2478. that child_detach used to do and some additional work to determine
  2479. whether gdb is currently attached to the target.
  2480. (child_detach): Altered. It's now a wrapper for
  2481. child_detach_from_process.
  2482. (child_require_detach): New function, called if should try to
  2483. detach even when gdb is not attached to target.
  2484. (ptrace_him): Calls a new function,
  2485. target_acknowledge_forked_child. Currently,
  2486. target_acknowledge_forked_child, is only defined to do something
  2487. for HPUX.
  2488. (child_create_inferior): Changed call to fork_inferior.
  2489. (child_ops): Add to_require_attach and to_require_detach fields
  2490. to the child_ops target ops vector.
  2491. Some hacks for ttrace work:
  2492. (child_wait): Additional local variables, additional code in
  2493. while loop to check for process exited, process forked,
  2494. process vforked, process execd.
  2495. (child_thread_alive): John B. seems to think that the kill
  2496. call is inapproapriate for HPUX.
  2497. (child_attach_to_process): Using strtol rather than atoi.
  2498. no longer check for case where there is no known exec file.
  2499. (child_post_attach): New function, a default, a no-op.
  2500. (child_insert_fork_catchpoint): New function, a default, a no-op.
  2501. (child_remove_fork_catchpoint): New function, a default, a no-op.
  2502. (child_insert_vfork_catchpoint): New function, a default, a no-op.
  2503. (child_remove_vfork_catchpoint): New function, a default, a no-op.
  2504. (child_can_follow_vfork_prior_to_exec ):new function, a default,
  2505. a no-op.
  2506. (child_insert_exec_catchpoint): New function, a default, a no-op.
  2507. (child_remove_exec_catchpoint): New function, a default, a no-op.
  2508. (child_has_execd): New function, a default, returns 0.
  2509. (child_reported_exec_events_per_exec_call): New function, a
  2510. default, returns 1.
  2511. (child_has_exited): New function, a default.
  2512. (child_core_file_to_sym_file): New function, a default, returns NULL.
  2513. (child_ops): Initialize new target vector fields.
  2514. * jv-lang.h: (Java_val_print): Add embedded_offset param to func
  2515. decl.
  2516. * jv-valprint.c: Changing calls to val_print to accomodate new param.
  2517. (java_value_print): Add embedded_offset param to val_print call
  2518. (java_print_value_fields): Add embedded_offset param to val_print
  2519. call.
  2520. (java_val_print): Add embedded_offset param. alter call to
  2521. c_val_print to accomodate embedded_offset param.
  2522. * language.c (lang_bool_type): Return builtin_type_bool in c++
  2523. case.
  2524. (unk_lang_val_print): Add embedded_offset param to
  2525. prototype decl and definition.
  2526. * language.h (LA_VAL_PRINT macro, la_val_print function decl):
  2527. altered to accomodate the new parameter to the various print
  2528. functions.
  2529. * m2-lang.h (m2_val_print): Add a parameter to the function decl.
  2530. * m2-valprint.c (m2_val_print): Add a parameter.
  2531. This parameter is currently only used when evaluating C++
  2532. expressions. So, it is always 0 in this file.
  2533. * m3-nat.c (m3_create_inferior): Add param to fork_inferior call
  2534. (m3_pid_to_exec_file): New function
  2535. (m3_ops): Add new target vector fields.
  2536. * mac-nat.c (init_child_ops): Add new target vector fields.
  2537. * mips-tdep.c: Chnages to accomodate additional parameter
  2538. to val_print.
  2539. (mips_print_register): Alter calls to val_print
  2540. * monitor.c (monitor_write): Change stderr to gdb_stderr.
  2541. (monitor_remove_breakpoint): Ditto.
  2542. (init_base_monitor_ops): Add new target vector fields.
  2543. * ppc-bdm.c (init_bdm_ppc_ops): Add new target vector fields.
  2544. * printcmd.c (do_examine): When saving a value_ptr, remove it from
  2545. the list of value_ptr's to be freed automatically; when discarding
  2546. a previously saved value_ptr, free it.
  2547. (print_formatted): Update comments; add new comments.
  2548. (printf_command, print_insn): Purecov comments.
  2549. (_initialize_printcmd): Add assign as a command if dbx_commands is
  2550. set; create va as an alias for disassemble if xdb_commands is set.
  2551. (address_info): New cases LOC_INDIRECT and
  2552. LOC_THREAD_LOCAL_STATIC.
  2553. (display_command): If tui_version and exp starts with a '$', then
  2554. don't display it unless tui_vSetLayoutTo fails.
  2555. (disassemble_command): Add tuiDo calls.
  2556. (print_scalar_formatted): For integers that are long long, check
  2557. the print format and print out in binary octal, decimal, or
  2558. hex. Call the new print_*_chars functions in valprint.c
  2559. (print_frame_args): Altered calls to val_print, to reflect
  2560. additional parameter to val_print (case LOC_BASEREG_ARG).
  2561. * procfs.c: (Procfs_init_inferior): Return value is now a void.
  2562. (procfs_ops): Add new target vector fields.
  2563. (procfs_create_inferior): Fix call to fork_inferior -- need another
  2564. parameter.
  2565. * remote-adapt.c (adapt_open): Change stderr to gdb_stderr.
  2566. (adpat_insert_breakpoint): Ditto.
  2567. (init_adapt_ops): Add new target vector fields.
  2568. * remote-array.c (array_wait): Change fflush to gdb_flush and
  2569. stdout to gdb_stdout.
  2570. (init_array_ops): Add new target vector fields.
  2571. * remote-bug.c (bug_load): Change fflush to gdb_flush; stdout to
  2572. gdb_stdout.
  2573. (bug_wait): Change stderr to gdb_stderr.
  2574. (bug_insert_breakpoint): Ditto.
  2575. (init_bug_ops): Add new target vector fields.
  2576. * remote-e7000.c
  2577. (init_e7000_ops): Add new target vector fields.
  2578. * remote-eb.c (init_eb_ops): Ditto.
  2579. * remote-es.c (init_es1800_ops): Ditto.
  2580. (init_es1800_child_ops): Ditto.
  2581. * remote-es.c (init_es1800_ops): Ditto.
  2582. (init_es1800_child_ops): Ditto.
  2583. * remote-hms.c (init_hms_ops): Ditto.
  2584. * remote-hms.c (init_hms_ops): Ditto.
  2585. * remote-nindy.c (init_nindy_ops): Ditto.
  2586. * remote-nrom.c (init_nrom_ops): Ditto.
  2587. * remote-os9k.c (init_rombug_ops): Ditto.
  2588. * remote-rdp.c (init_remote_rdp_ops): Ditto.
  2589. * remote-sds.c (init_sds_ops): Ditto.
  2590. * remote-sim.c (init_gdbsim_ops): Ditto.
  2591. * remote-st.c (init_st2000_ops): Ditto.
  2592. * remote-udi.c (init_udi_ops): Ditto.
  2593. * remote-vx.c (init_vx_ops): Ditto.
  2594. (init_vx_run_ops): Ditto.
  2595. * remote-vx.c: (Init_vx_ops): Ditto.
  2596. (init_vx_run_ops): Ditto.
  2597. * remote-mips.c (mips_getstring): Change stderr to gdb_stderr.
  2598. (pmon_insert_breakpoint): Ditto.
  2599. (pmon_remove_breakpoint): Ditto.
  2600. (check_lsi_error): Ditto.
  2601. (common_breakpoint): Ditto.
  2602. (pmon_makeb64): Ditto.
  2603. * remote-mips.c (mips_xfer_memory): Change fflush to gdb_flush;
  2604. change stdout to gdb_stdout.
  2605. * remote-mm.c (mm_open): Change stderr to gdb_stderr.
  2606. (init_mm_ops): Add new target vector fields.
  2607. (mm_load): Fixed params in commented out call to symbol_file_add.
  2608. * remote-nindy.c (instream): Change decl to FILE.
  2609. * remote-udi.c (udi_load): Fixed params in call to symbol_file_add.
  2610. * remote-vx.c (vx_add_symbols): Fixed params in call to
  2611. symbol_file_add.
  2612. * remote.c (init_remote_ops): Cosmetic change to match expected
  2613. test output.
  2614. * rs6000-nat.c (add_vmap): Add params to call to allocate_objfile.
  2615. * scm-lang.h: Add parameter to scm_val_print function decl.
  2616. * scm-valprint.c (scm_scmval_print): Cast svalue to (int); new
  2617. parameter. This parameter is currently only used when evaluating
  2618. C++ expressions. So, it is always 0 in this file.
  2619. (c_val_print): Fixed prototype decl; it needed an embedded_offset
  2620. param.
  2621. * sol-thread.c (sol_core_ops): Add new target vector fields.
  2622. (sol_thread_ops): Ditto.
  2623. * somsolib.c (DLD_FLAGS_MAPPRIVATE): New macro.
  2624. Define bit of __dld_flags in HP-UX a.out files.
  2625. (DLD_FLAGS_HOOKVALID): Ditto.
  2626. (DLD_FLAGS_LISTVALID): Ditto.
  2627. (DLD_FLAGS_BOR_ENABLE): Ditto.
  2628. (som_solib_total_st_size): Cumulative size in bytes of the
  2629. symbol tables of all shared objects on the so_list_head list.
  2630. (som_solib_st_size_threshhold_exceeded): Threshold for adding symbols
  2631. for shlibs.
  2632. (som_solib_sizeof_symbol_table): New function. Computes size of
  2633. symbol table for a shlib.
  2634. (som_solib_load_symbols): New function. Load symbols from shlib.
  2635. (som_solib_add): Detect if __dld_list is not valid.
  2636. Record main program's symbol table size.
  2637. Load symbols if called from command line.
  2638. Keep threshold into account when loading shlib symbols.
  2639. (som_solib_create_inferior_hook): Use dld_flags macros.
  2640. (som_sharedlibrary_info_command): Let user know if symbols were
  2641. not loaded.
  2642. (som_solib_restart): Discard all the shlibs descriptors.
  2643. (_initialize_som_solib): Chenge help message for auto-solib-add
  2644. command.
  2645. Set threshold for symbol table to 50 megabytes.
  2646. (_initialize_som_solib): Add call to som_solib_restart.
  2647. (som_solib_restart): New function
  2648. (som_solib_in_dynamic_linker): New function
  2649. (som_solib_desire_dynamic_linker_symbols): New function
  2650. (som_solib_unloaded_library_pathname): New function
  2651. (som_solib_loaded_library_pathname): New function
  2652. (som_solib_library_pathname): New function
  2653. (som_solib_have_unload_event): New function
  2654. (som_solib_have_load_event): New function
  2655. (som_solib_create_catch_unload_hook): New function
  2656. (som_solib_create_catch_load_hook): New function
  2657. (som_solib_create_inferior_hook): Rewritten
  2658. dld_cache: New struct
  2659. addr_and_unwind_t: New struct
  2660. (find_unwind_entry) add prototype
  2661. Include assert.h, remove references to ASSERT macro,
  2662. add include of fcntl.h so that O_RDONLY is defined.
  2663. (som_solib_create_inferior_hook): Introduce new local
  2664. msymbol2 and change some msymbol's to msymbol2's -- was clobbering
  2665. msymbol, passing a NULL to lookup_minimal_symbol_solib_trampoline,
  2666. and ultimately core dumping with a SEGV.
  2667. (som_solib_mapped_entry): Additional comments for text_addr,
  2668. text_link_addr, text_end, and tsd_start_addr fields. Commenting
  2669. out 2 tsd fields, __data_start and __data_end.
  2670. (som_solib_add_solib_objfile): Add params to calls to symbol_file_add.
  2671. Add some code for distinguishing between a shared library and other
  2672. objfiles. This appears to be a prelude to thread local storage.
  2673. (som_solib_load_symbols): Changes to printf statement
  2674. enclosed by SOLIB_DEBUG ifdef.
  2675. (som_solib_add): Change comment to correctly specify path
  2676. to end.o -- /opt/langtools/lib/end.o. changes to printf statement
  2677. enclosed by SOLIB_DEBUG ifdef.
  2678. Removed several SOLIB_DEBUG ifdefs and the associated printfs.
  2679. Add code to find the start address for the object file's thread
  2680. local storage
  2681. (som_solib_create_inferior_hook): Fix warning messages use correct
  2682. path to end.o -- /opt/langtools/lib/end.o. Change control flow.
  2683. No longer user early returns from function is cases of error.
  2684. (reset_inferior_pid): New function
  2685. (som_solib_remove_inferior_hook): New function
  2686. (so_lib_thread_start_addr): New function. used for tsd.
  2687. (struct som_solib_mapped_entry): Add new field tsd_start_addr.
  2688. (struct so_list): Add new field solib_addr.
  2689. (som_solib_add_solib_objfile): New function.
  2690. (som_solib_load_symbols): Rewritten.
  2691. (som_solib_add): Make sure we don't load the symbols in if the
  2692. threshold was exceeded.
  2693. (som_solib_get_solib_by_pc): New function. Return the address of
  2694. handle of the shared library.
  2695. (som_solib_restart): Disable breakpoints at restart.
  2696. * sparcl-tdep.c (init_sparclite_ops): Add new target vector fields.
  2697. * target.c (cleanup_target): Changed casting of default functions
  2698. for to_has_forked, to_has_vforked, to_pid_to_exec_file to get rid
  2699. of warnings. Fixed PARAMS for to_has_syscall_event. Fixed the
  2700. return type on a few of the default function values.
  2701. (cleanup_target): Changes in the de_fault macro, both to
  2702. accomodate the new target_ops vector fields and to use
  2703. more accurate default functions.
  2704. (debug_to_open): Change stderr to gdb_stderr.
  2705. (debug_to_close): Ditto.
  2706. (debug_to_attach): Ditto.
  2707. (debug_to_post_attach): Ditto.
  2708. (debug_to_require_attach): Ditto.
  2709. (debug_to_detach): Ditto.
  2710. (debug_to_require_detach): Ditto.
  2711. (debug_to_resume): Ditto.
  2712. (debug_to_wait): Ditto.
  2713. (debug_to_post_wait): Ditto.
  2714. (debug_to_fetch_registers): Ditto.
  2715. (debug_to_store_registers): Ditto.
  2716. (debug_to_prepare_to_store): Ditto.
  2717. (debug_to_xfer_memory): Ditto.
  2718. (debug_to_files_info): Ditto.
  2719. (debug_to_insert_breakpoint): Ditto.
  2720. (debug_to_remove_breakpoint): Ditto.
  2721. (debug_to_terminal_init): Ditto.
  2722. (debug_to_terminal_inferior): Ditto.
  2723. (debug_to_terminal_ours_for_output): Ditto.
  2724. (debug_to_terminal_ours): Ditto.
  2725. (debug_to_terminal_info): Ditto.
  2726. (debug_to_kill): Ditto.
  2727. (debug_to_load): Ditto.
  2728. (debug_to_lookup_symbol): Ditto.
  2729. (debug_to_create_inferior): Ditto.
  2730. (debug_to_post_startup_inferior): Ditto.
  2731. (debug_to_acknowledge_created_inferior): Ditto.
  2732. (debug_to_clone_and_follow_inferior): Ditto.
  2733. (debug_to_post_follow_inferior_by_clone): Ditto.
  2734. (debug_to_insert_fork_catchpoint): Ditto.
  2735. (debug_to_remove_fork_catchpoint): Ditto.
  2736. (debug_to_insert_vfork_catchpoint): Ditto.
  2737. (debug_to_remove_vfork_catchpoint): Ditto.
  2738. (debug_to_has_forked): Ditto.
  2739. (debug_to_has_vforked): Ditto.
  2740. (debug_to_can_follow_vfork_prior_to_exec): Ditto.
  2741. (debug_to_post_follow_vfork): Ditto.
  2742. (debug_to_insert_exec_catchpoint): Ditto.
  2743. (debug_to_remove_exec_catchpoint): Ditto.
  2744. (debug_to_has_execd): Ditto.
  2745. (debug_to_reported_exec_events_per_exec_call): Ditto.
  2746. (debug_to_has_syscall_event): Ditto.
  2747. (debug_to_has_exited): Ditto.
  2748. (debug_to_mourn_inferior): Ditto.
  2749. (debug_to_can_run): Ditto.
  2750. (debug_to_notice_signals): Ditto.
  2751. (debug_to_thread_alive): Ditto.
  2752. (debug_to_stop): Ditto.
  2753. (debug_to_enable_exception_callback): Ditto.
  2754. (debug_to_get_current_exception_event): Ditto.
  2755. (debug_to_pid_to_exec_file): Ditto.
  2756. (debug_to_core_file_to_sym_file): Ditto.
  2757. (default_clone_and_follow_inferior): New function prototype
  2758. decl and function definition.
  2759. (dummy_target): Add new target_ops vector fields and their
  2760. initializations. More target_ops vector changes for HPUX new
  2761. fields.
  2762. (de_fault): Add new HPUX specific target_ops operations to the
  2763. de_fault macro
  2764. (INHERIT): Add new HPUX specific target_ops operations.
  2765. (debug_to_post_wait): New function.
  2766. (debug_to_post_startup_inferior): Ditto.
  2767. (debug_to_acknowledge_created_inferior): Ditto.
  2768. (debug_to_clone_and_follow_inferior): Ditto.
  2769. (debug_to_post_follow_inferior_by_clone): Ditto.
  2770. (debug_to_create_catch_fork_hook): Ditto.
  2771. (debug_to_create_catch_vfork_hook): Ditto.
  2772. (debug_to_has_forked): Ditto.
  2773. (debug_to_has_vforked): Ditto.
  2774. (debug_to_post_follow_vfork): Ditto.
  2775. (setup_target_debug): Initialize new target_ops vector fields.
  2776. (nosupport_runtime): New function, used in cleanup_target
  2777. (update_current_target): Add new new target_ops vector fields to
  2778. the INHERIT macro definition.
  2779. (generic_mourn_inferior): The call to breakpoint_init_inferior now
  2780. takes a parameter.
  2781. (normal_pid_to_str): Add a \0 to the end of buf.
  2782. (debug_to_has_syscall_event): New function.
  2783. (debug_to_enable_exception_callback): New function.
  2784. (debug_to_get_current_exception_event): New function.
  2785. (setup_target_debug): Initialize the 3 new target_ops vector fields
  2786. (struct signals): Fix message associated with SIGRETRACT.
  2787. (return_one): New function, used by the de_fault macro
  2788. (debug_to_post_attach): New function.
  2789. (debug_to_wait): Add new cases TARGET_WAITKIND_FORKED,
  2790. TARGET_WAITKIND_VFORKED, TARGET_WAITKIND_EXECD.
  2791. (debug_to_insert_fork_catchpoint): New function.
  2792. (debug_to_remove_fork_catchpoint): Ditto.
  2793. (debug_to_insert_vfork_catchpoint): Ditto.
  2794. (debug_to_remove_vfork_catchpoint): Ditto.
  2795. (debug_to_can_follow_vfork_prior_to_exec): Ditto.
  2796. (debug_to_insert_exec_catchpoint): Ditto.
  2797. (debug_to_remove_exec_catchpoint): Ditto.
  2798. (debug_to_core_file_to_sym_file): Ditto.
  2799. (setup_target_debug): Give new fields in current_target target_ops
  2800. vector values.
  2801. * target.h: Include symtab.h.
  2802. (target_waitkind): New enumerated values
  2803. TARGET_WAITKIND_SYSCALL_ENTRY, TARGET_WAITKIND_SYSCALL_RETURN,
  2804. TARGET_WAITKIND_FORKED, TARGET_WAITKIND_VFORKED,
  2805. TARGET_WAITKIND_EXECD.
  2806. (target_waitstatus): Add a syscall_id field to structure.
  2807. (child_has_syscall_event): New decl.
  2808. (child_thread_alive): New decl.
  2809. (target_ops): Add 3 new fields: To_has_syscall_event,
  2810. to_enable_exception_callback, to_get_current_exception_event
  2811. (target_enable_exception_callback): New macro.
  2812. (target_has_syscall_event): New macro.
  2813. (target_get_current_exception_event): New macro.
  2814. (TARGET_DISABLE_HW_WATCHPOINTS): New macro.
  2815. (TARGET_ENABLE_HW_WATCHPOINTS): New macro.
  2816. (PC_REQUIRES_RUN_BEFORE_USE): New macro.
  2817. (target_tid_to_str): New macro.
  2818. (target_waitstatus): Additional fields in struct to keep track
  2819. of child pid and pathname to execd file.
  2820. (target_ops): Add in the new target_ops function pointer fields.
  2821. New macros to go along with new target_ops fields.
  2822. In target_waitstatus.value, change name of child_pid field to
  2823. related_pid.
  2824. (target_pid_or_tid_to_str): Define default macro.
  2825. Add missing #endif after PC_REQUIRES_RUN_BEFORE_USE definition
  2826. (ENSURE_VFORKING_PARENT_REMAINS_STOPPED): Define default macro.
  2827. (RESUME_EXECD_VFORKING_CHILD_TO_GET_PARENT_VFORK): Define default
  2828. macro.
  2829. There are new function decls for to_require_attach
  2830. and to_require_detach. There are also new macros,
  2831. target_require_attach and target_require_detach. There are
  2832. also new function decls for find_default_require_detach
  2833. and find_default_require_attach.
  2834. (target_ops): New fields to_post_wait, to_post_startup_inferior
  2835. to_acknowledge_created_inferior, to_clone_and_follow_inferior,
  2836. to_post_follow_inferior_by_clone, to_create_catch_fork_hook,
  2837. to_create_catch_vfork_hook, to_has_forked, to_has_vforked,
  2838. to_post_follow_vfork, to_pid_to_exec_file.
  2839. New function definitions child_pid_to_exec_file, child_post_wait,
  2840. child_post_startup_inferior, child_acknowledge_created_inferior,
  2841. child_clone_and_follow_inferior,
  2842. child_post_follow_inferior_by_clone, child_create_catch_fork_hook,
  2843. child_create_catch_vfork_hook, child_has_forked,
  2844. child_has_vforked, child_acknowledge_created_inferior,
  2845. child_post_follow_vfork.
  2846. New macros target_post_startup_inferior,
  2847. target_acknowledge_created_inferior,
  2848. target_clone_and_follow_inferior,
  2849. target_post_follow_inferior_by_clone,
  2850. target_create_catch_fork_hook, target_create_catch_vfork_hook,
  2851. target_pid_to_exec_file.
  2852. (find_default_clone_and_follow_inferior): New function prototype.
  2853. * v850ice.c (init_850ice_ops): Init new target vector fields.
  2854. * valprint.c (print_binary_chars): Print out long long as
  2855. a binary number.
  2856. (print_octal_chars): Print out long long as an octal number
  2857. (print_decimal_chars): Print out long long as a decimal number
  2858. (strcat_longest): Define it.
  2859. * valprint.c: Hp merge, 4/15/98 snapshot
  2860. Add parameter to val_print. This is used for
  2861. evaluating C++ expressions.
  2862. * value.h (VALUE_POINTED_TO_OFFSET): New macro.
  2863. Add field pointed_to_offset to value structure.
  2864. Add prototypes for new functions in valops.c.
  2865. (write_register_pid): Change prototype to match
  2866. function.
  2867. (val_print function decl): Additional parameter.
  2868. (VALUE_EMBEDDED_OFFSET): New macro.
  2869. (find_rt_vbase_offset): New function decl -- for C++ support.
  2870. Wed Dec 23 15:03:42 1998 Per Bothner <bothner@cygnus.com>
  2871. * Makefile.in (READLINE_CFLAGS): Search $(READLINE_SRC)/.. rather
  2872. than $(READLINE_SRC) so #include <readline/readline.h> will work.
  2873. * top.c: #include <readline/history.h> instead of "history.h".
  2874. * tracepoint.c: Likewise.
  2875. * mac-xdep.c: Likewise.
  2876. Wed Dec 23 12:32:00 1998 Andrew Cagney <cagney@chook.cygnus.com>
  2877. * defs.h (TARGET_FLOAT_FORMAT, TARGET_DOUBLE_FORMAT): Define using
  2878. TARGET_BYTE_ORDER and not target_byte_order.
  2879. Tue Dec 22 10:51:33 1998 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
  2880. * config/i386/cygwin.mh (TERMCAP): define.
  2881. (from Chris Faylor, cgf@cygnus.com)
  2882. * top.c: specify directory name for including readline.h
  2883. * tracepoint.c: ditto.
  2884. * utils.c: ditto.
  2885. Mon Dec 21 13:30:34 1998 Mark Alexander <marka@cygnus.com>
  2886. * value.c (value_virtual_fn_field): Handle the situation where
  2887. vtbl is a pointer to a structure instead of a pointer to an array.
  2888. Mon Dec 21 10:38:11 1998 Andrew Cagney <cagney@chook>
  2889. * mips-tdep.c: (MIPS_DEFAULT_FPU_TYPE): Default to
  2890. MIPS_FPU_DOUBLE.
  2891. 1998-12-17 J.T. Conklin <jtc@redbacknetworks.com>
  2892. * blockframe.c (get_frame_saved_regs): If the saved_regs_addr ptr
  2893. is null, ensure that saved registers are copied from the local
  2894. variable that was used to obtain them.
  2895. Sat Dec 19 09:55:09 1998 Stu Grossman <grossman@babylon-5.cygnus.com>
  2896. * mips-tdep.c (mips32_heuristic_proc_desc): Clear temp_saved_regs
  2897. on restart. Fixes problem with backtracing through functions that
  2898. use virtual frame pointers.
  2899. Fri Dec 18 14:23:34 1998 Andrew Cagney <cagney@chook>
  2900. * mips-tdep.c (mips_push_arguments): Don't left-shift small
  2901. structs being passed in a register when an O64 target.
  2902. * config/mips/tm-mips.h (enum mips_fpu_type, mips_fpu): Move to
  2903. mips-tdep.c.
  2904. * mips-tdep.c (mips_fpu_string): Delete variable.
  2905. (mips_fpu_type_auto): New variable.
  2906. (mips_fpu_type): Rename mips_fpu.
  2907. (_initialize_mips_tdep): Delete initialization of mips_fpu et.al.
  2908. Rewrite ``set mipsfpu'' command set.
  2909. (set_mipsfpu_command, show_mipsfpu_command,
  2910. set_mipsfpu_single_command, set_mipsfpu_double_command,
  2911. set_mipsfpu_none_command, set_mipsfpu_auto_command): New
  2912. functions, handle commands.
  2913. (mips_push_arguments, mips_push_dummy_frame, mips_pop_frame,
  2914. mips_extract_return_value): Update.
  2915. (_initialize_mips_tdep): Set mips_fpu_type according to current
  2916. processor.
  2917. (_initialize_mips_tdep): Only define ``set processor'' command
  2918. when not multi-sim.
  2919. Fri Dec 18 12:56:56 1998 Andrew Cagney <cagney@chook>
  2920. * gdbarch.h (gdbarch_init_ftype): Pass struct gdbarch_info
  2921. by-value.
  2922. (struct gdbarch_info): Add struct gdbarch_tdep_info *tdep_info.
  2923. * gdbarch.c (gdbarch_update): Update.
  2924. * mips-tdep.c: (mips_gdbarch_init): Update
  2925. * gdbarch.c (gdbarch_update): Add more tracing.
  2926. Thu Dec 17 02:15:40 1998 Andrew Cagney <cagney@chook.cygnus.com>
  2927. * configure.tgt (gdb_target): Identify mips64*vr4100*-*-elf* as
  2928. vr4100.
  2929. * config/mips/vr4100.mt, config/mips/tm-vr4100.h: Replace
  2930. vr4xxx.mt and tm-vr4xxx.h.
  2931. Thu Dec 17 02:06:17 1998 Andrew Cagney <cagney@chook.cygnus.com>
  2932. * mips-tdep.c (mips_gdbarch_init): New function. Initialize a MIPS
  2933. architecture vector.
  2934. (_initialize_mips_tdep): Register MIPS with GDBARCH.
  2935. (struct gdbarch_tdep): Define.
  2936. (MIPS_EABI, MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM): When
  2937. multi-arch, get value from gdbarch->tdep.
  2938. Thu Dec 17 02:01:58 1998 Andrew Cagney <cagney@chook>
  2939. * gdbtypes.c (_initialize_gdbtypes): Register all builtin types
  2940. with gdbarch so that they are updated whenever the architecture is
  2941. changed.
  2942. Thu Dec 17 01:58:16 1998 Andrew Cagney <cagney@chook>
  2943. * gdbarch.h (GDB_MULTI_ARCH): New macro, default to zero.
  2944. (current_gdbarch): Current architecture pointer.
  2945. * gdbarch.c (struct gdbarch): Define.
  2946. * gdbarch.h (TARGET_ARCHITECTURE, TARGET_BYTE_ORDER,
  2947. TARGET_LONG_BIT, TARGET_LONG_LONG_BIT, TARGET_PTR_BIT): When
  2948. multi-arch force definition.
  2949. * gdbarch.h, gdbarch.c (gdbarch_tdep, gdbarch_bfd_arch_info,
  2950. gdbarch_byte_order, {set,}gdbarch_long_bit,
  2951. {set,}gdbarch_long_long_bit, {set,}gdbarch_ptr_bit): Corresponding
  2952. functions.
  2953. * gdbarch.h (struct gdbarch_list, struct gdbarch_info,
  2954. gdbarch_init_ftype), gdbarch.c (register_gdbarch_init): Mechanism
  2955. for registering an architecture with GDB.
  2956. (gdbarch_list_lookup_by_info, gdbarch_alloc, gdbarch_update,
  2957. verify_gdbarch): Support functions.
  2958. * gdbarch.h (gdbarch_data_ftype), gdbarch.c
  2959. (register_gdbarch_data, gdbarch_data): Mechanism for maintaining
  2960. per-architecture pointers.
  2961. (init_gdbarch_data): Support functions.
  2962. * gdbarch.h (gdbarch_swap_ftype), gdbarch.c
  2963. (register_gdbarch_swap): Ditto for swapped memory regions.
  2964. (init_gdbarch_swap, swapout_gdbarch_swap, swapin_gdbarch_swap):
  2965. Support functions.
  2966. * gdbarch.c (set_endian_big, set_endian_little, set_architecture,
  2967. info_architecture, set_gdbarch_from_file): Hook in multi-arch
  2968. code by calling gdbarch_update.
  2969. (default_gdbarch): Default multi-arch vector. Use host's type
  2970. system for values.
  2971. Thu Dec 17 01:34:36 1998 Andrew Cagney <cagney@chook>
  2972. * gdbtypes.c (build_gdbtypes): New function.
  2973. (_initialize_gdbtypes): Call.
  2974. Wed Dec 16 11:47:00 1998 Andrew Cagney <cagney@chook>
  2975. * gdbarch.c (show_architecture): Use TARGET_ARCHITECTURE.
  2976. * gdbarch.h, gdbarch.c: Fix typo's. Use struct's in preference to
  2977. types.
  2978. * gdbarch.h, gdbarch.c (gdbarch_debug): Add ``set archdebug'' to
  2979. command set.
  2980. Tue Dec 15 23:46:40 1998 Andrew Cagney <cagney@chook>
  2981. * config/mips/tm-*.h: (TARGET_BYTE_ORDER_DEFAULT,
  2982. TARGET_BYTE_ORDER_SELECTABLE_P): Replace TARGET_BYTE_ORDER and
  2983. TARGET_BYTE_ORDER_SELECTABLE.
  2984. 1998-12-14 Anthony Thompson (athompso@cambridge.arm.com)
  2985. * remote-rdp.c (rdp_init): Don't discard first character on reset.
  2986. (translate_open_mode): Define table.
  2987. (exec_swi): Handle SWI_Clock. SWI_Open now handles stdin/stdout.
  2988. SWI_Write returns number of bytes not written. SWI_Read does the
  2989. same. SWI_Seek should return success/failure flag. Fix SWI_Flen.
  2990. 1998-12-14 J.T. Conklin <jtc@redbacknetworks.com>
  2991. * config/i386/nbsd.mh, config/m68k/nbsd.mh, config/ns32k/nbsd.mh
  2992. (XDEPFILES): Add ser-tcp.o.
  2993. Mon Dec 14 14:46:13 1998 Andrew Cagney <cagney@b1.cygnus.com>
  2994. * monitor.c (monitor_expect, monitor_printf_noecho,
  2995. monitor_printf): Always compile EXTRA_RDEBUG code.
  2996. (RDEBUG): Ditto.
  2997. From Michael Meissner <meissner@cygnus.com>:
  2998. * ppcbug-rom.c (init_ppc_cmds): Cleanup formatting.
  2999. 1998-12-08 Michael Meissner <meissner@cygnus.com>
  3000. * monitor.c (monitor_printable_string): New function to convert a
  3001. string into a printable representation.
  3002. (monitor_error): Call error after converting string into printable
  3003. format.
  3004. (monitor_printf{,_noecho}): If EXTRA_RDEBUG is defined, convert
  3005. string into printable form before printing.
  3006. (monitor_expect): Ditto.
  3007. (monitor_read_memory{,_single}): Call monitor_error, not error.
  3008. (monitor_read_memory): Return immediately if length is 0.
  3009. * ppcbug-rom.c (init_ppc_cmds): Fill in dump_registers field,
  3010. which is now required.
  3011. Mon Dec 14 11:01:39 1998 Andrew Cagney <cagney@b1.cygnus.com>
  3012. * gdbarch.h, gdbarch.c: Consolidate the semi-dynamic target system
  3013. dependant GDB parameters.
  3014. (set_gdbarch_from_file): Combine set_architecture_from_file and
  3015. set_byte_order_from_file.
  3016. * top.c, defs.h, printcmd.c: Delete them from here.
  3017. * Makefile.in: Add gdbarch.[ch].
  3018. * exec.c (exec_file_command): Call set_gdbarch_from_file.
  3019. Sun Dec 13 09:52:51 1998 Andrew Cagney <cagney@b1.cygnus.com>
  3020. * defs.h (TARGET_PRINT_INSN_INFO, TARGET_PRINT_INSN): Define.
  3021. (TARGET_ARCHITECTURE, TARGET_ARCHITECTURE_AUTO): Define.
  3022. (TARGET_BYTE_ORDER_AUTO): Define.
  3023. (TARGET_BYTE_ORDER_SELECTABLE_P): Provide default. Replaces
  3024. TARGET_BYTE_ORDER_SELECTABLE. Handle compat issues.
  3025. (BITS_BIG_ENDIAN): Simplify.
  3026. (TARGET_FLOAT_FORMAT): Ditto.
  3027. (TARGET_DOUBLE_FORMAT):
  3028. * remote-e7000.c, sh-tdep.c, printcmd.c, remote-sim.c,
  3029. remote-rdi.c, sparc-tdep.c: Update.
  3030. * config/powerpc/tm-ppcle-eabi.h, config/rs6000/tm-rs6000.h,
  3031. config/powerpc/tm-ppc-eabi.h, config/mn10300/tm-mn10300.h:
  3032. Convert.
  3033. Sat Dec 12 09:28:13 1998 Andrew Cagney <cagney@b1.cygnus.com>
  3034. * frame.h (struct frame_info): Add CORE_ADDR *saved_regs and
  3035. struct frame_extra_info *extra_info.
  3036. (frame_obstack_alloc, frame_saved_regs_zalloc): Prototype.
  3037. (SIZEOF_FRAME_SAVED_REGS): Provide default.
  3038. (FRAME_INIT_SAVED_REGS): Provide default.
  3039. (struct frame_saved_regs): Deprecate.
  3040. (EXTRA_FRAME_INFO): Deprecate.
  3041. * blockframe.c (frame_obstack_alloc, frame_saved_regs_zalloc): New
  3042. function.
  3043. (generic_get_saved_register): Use FRAME_INIT_SAVED_REGS and
  3044. frame->saved_regs.
  3045. (frame_cache_obstack): Make static.
  3046. (get_frame_saved_regs): Deprecate. Copy the saved regs into the
  3047. frame buffer.
  3048. * stack.c (frame_info): Rewrite using frame->saved_regs and
  3049. FRAME_INIT_SAVED_REGS.
  3050. * findvar.c (find_saved_register): Ditto.
  3051. * config/mn10300/tm-mn10300.h (EXTRA_FRAME_INFO): Delete.
  3052. (FRAME_FIND_SAVED_REGS): Replace with FRAME_INIT_SAVED_REGS. No-op.
  3053. * mn10300-tdep.c: Update.
  3054. (analyze_dummy_frame): New function.
  3055. (struct frame_extra_info): Define.
  3056. (mn10300_init_extra_frame_info): Update.
  3057. * config/rs6000/tm-rs6000.h: (EXTRA_FRAME_INFO): Delete.
  3058. (FRAME_FIND_SAVED_REGS): Replace with FRAME_INIT_SAVED_REGS.
  3059. (FRAME_ARGS_ADDRESS): Replace with function.
  3060. * rs6000-tdep.c (frame_get_saved_regs): Rename from
  3061. frame_get_cache_fsr.
  3062. (rs6000_init_extra_frame_info): New function.
  3063. (rs6000_frame_init_saved_regs): Call frame_get_saved_regs.
  3064. (FUNCTION_START_OFFSET): Delete references, was ZERO.
  3065. (rs6000_frame_args_address): New function.
  3066. (frame_initial_stack_address): Update
  3067. * config/mips/tm-mips.h (EXTRA_FRAME_INFO): Remove saved_regs.
  3068. (FRAME_INIT_SAVED_REGS): Rename FRAME_FIND_SAVED_REGS, update.
  3069. * mips-tdep.c (mips_find_saved_regs, read_next_frame_reg,
  3070. init_extra_frame_info, mips_pop_frame): Update.
  3071. * config/alpha/tm-alpha.h (FRAME_INIT_SAVED_REGS,
  3072. EXTRA_FRAME_INFO), alpha-tdep.c (alpha_find_saved_regs,
  3073. alpha_pop_frame, init_extra_frame_info): Ditto.
  3074. * i960-tdep.c, m88k-tdep.c, h8300-tdep.c: Update.
  3075. * config/sparc/tm-sparc.h, config/a29k/tm-a29k.h: Define
  3076. FRAME_INIT_SAVED_REGS as no-op.
  3077. * z8k-tdep.c (z8k_init_frame_saved_regs): Rename
  3078. get_frame_saved_regs.
  3079. (examine_frame, z8k_skip_prologue): Update.
  3080. * config/z8k/tm-z8k.h (FRAME_INIT_SAVED_REGS): Define.
  3081. 1998-12-11 Fernando Nasser <fnasser@totem.to.cygnus.com>
  3082. From J.T. Conklin <jtc@redbacknetworks.com>:
  3083. * i386-stub.c (handle_exception): Add support for 'P' command.
  3084. (NUMREGS): New macro.
  3085. Fri Dec 11 09:07:05 1998 Andrew Cagney <cagney@b1.cygnus.com>
  3086. * i386b-nat.c: Include "expression.h".
  3087. * symtab.h: Don't include "gnu-regex.h".
  3088. * solib.c (solib_add_common_symbols): Cast parameters passed to
  3089. make_cleanup to use the new make_cleanup_func typedef.
  3090. * inftarg.c: Include "wait.h" after, rather than before, <wait.h>.
  3091. "wait.h" was defining all WIF* macro's instead of filling in those
  3092. that <wait.h> missed.
  3093. Fri Dec 11 09:52:04 1998 Andrew Cagney <cagney@chook>
  3094. * mipsm3-nat.c, hppah-nat.c, infptrace.c, i386gnu-nat.c,
  3095. hppab-nat.c, core-aout.c, arm-xdep.c, alpha-nat.c, altos-xdep.c,
  3096. pyr-xdep.c, remote-st.c, remote-os9k.c, tahoe-tdep.c, pyr-tdep.c,
  3097. vax-tdep.c: Replace reg_name with REGISTER_NAME.
  3098. Thu Dec 10 15:19:40 1998 David Taylor <taylor@texas.cygnus.com>
  3099. The following changes were made by Jim Blandy <jimb@cygnus.com>,
  3100. Edith Epstein <eepstein@cygnus.com>, Elena Zannoni
  3101. <ezannoni@cygnus.com> Stan Shebs <shebs@cygnus.com>, and David
  3102. Taylor <taylor@cygnus.com>, as part of the project to merge in
  3103. changes originally made by HP; HP did not create ChangeLog
  3104. entries.
  3105. * annotate.c (annotate_catchpoint): New function.
  3106. * annotate.h (annotate_catchpoint): declare it; add new includes
  3107. (symtab.h and gdbtypes.h).
  3108. * buildsym.h: add external var processing_hp_compilation.
  3109. * coff-solib.h:
  3110. (SOLIB_REMOVE_INFERIOR_HOOK): new macro. defined to 0.
  3111. functionality not implemented for coff.
  3112. (SOLIB_CREATE_CATCH_LOAD_HOOK): New macro; generate error msg for coff.
  3113. (SOLIB_CREATE_CATCH_UNLOAD_HOOK): ditto.
  3114. (SOLIB_HAVE_LOAD_EVENT): ditto.
  3115. (SOLIB_LOADED_LIBRARY_PATHNAME): ditto.
  3116. (SOLIB_HAVE_UNLOAD_EVENT): ditto.
  3117. (SOLIB_UNLOADED_LIBRARY_PATHNAME): ditto.
  3118. (SOLIB_IN_DYNAMIC_LINKER): ditto.
  3119. (SOLIB_RESTART): ditto.
  3120. * complaints.h: add ifdef...endif pair at beginning and end of file.
  3121. * dstread.c (dst_symfile_read): the parameter to fileno
  3122. must be of type FILE *. So cast abfd->iostream in the
  3123. call to fileno must be cast as a FILE *, not a GDB_FILE *.
  3124. This will work because abfd->iostream is declared and
  3125. given a value in bdf and bfd will continue to use FILE
  3126. rather than GDB_FILE.
  3127. * dwarf2read.c (dwarf_bool_name): change parameter from bool
  3128. to mybool. sigh.
  3129. * expression.h: include symtab.h
  3130. * frame.h (print_only_stack_frame, show_stack_frame,
  3131. show_frame_info): add prototypes.
  3132. * gdbcmd.h (togglelist, stoplist): declare.
  3133. * gdbcore.h (read_memory_string): declare it.
  3134. (exec_file_attach): add prototype.
  3135. * inflow.c (terminal_is_ours): make non static.
  3136. * minsyms.c: minor spacing change.
  3137. * parser-defs.h (parse_nested_classes_for_hpacc): add prototype.
  3138. (find_template_name_end): add prototype.
  3139. * scm-lang.c (scm_unpack): cast svalue to (int).
  3140. * top.h: declare it.
  3141. * valprint.h (print_binary_chars): new prototype definition.
  3142. (print_octal_chars): new prototype definition.
  3143. (print_decimal_chars): new prototype definition.
  3144. Thu Dec 10 07:14:56 1998 Andrew Cagney <cagney@chook>
  3145. * config/arm/tm-arm.h, arm-tdep.c: Replace REGISTER_NAMES with
  3146. REGISTER_NAME.
  3147. * mn10300-tdep.c, config/mn10300/tm-mn10300.h: Ditto.
  3148. * sh-tdep.c, config/sh/tm-sh.h: Ditto.
  3149. * defs.h (REGISTER_NAME): Provide default for old targets.
  3150. * defs.h, infcmd.c: Rename reg_names to gdb_register_names.
  3151. * tracepoint.c, target.c, parse.c, infcmd.c, remote-udi.c,
  3152. expprint.c, infcmd.c, printcmd.c, eval.c, stack.c, findvar.c,
  3153. remote-udi.c, config/alpha/tm-alpha.h, remote-sim.c, d30v-tdep.c,
  3154. config/mips/tm-mips.h, hppa-tdep.c: Use REGISTER_NAME.
  3155. 1998-12-08 James E Wilson <wilson@wilson-pc.cygnus.com>
  3156. * config/i960/mon960.mt (SIM_OBJS, SIM): Define.
  3157. Tue Dec 8 16:49:24 1998 Stan Shebs <shebs@andros.cygnus.com>
  3158. * NEWS: Add mentions of newly-added configurations.
  3159. 1998-12-08 Philippe De Muyter <phdm@macqel.be>
  3160. * config/xm-aix4.h (SIGWINCH_HANDLER): Function `aix_resize_window'
  3161. must accept a signal number as parameter.
  3162. * config/rs6000/xm-rs6000.h (SIGWINCH_HANDLER): Ditto.
  3163. * utils.c (initialize_utils): Give a parameter to `SIGWINCH_HANDLER'.
  3164. * inferior.h (register_valid): Variable's type is `SIGNED char', not
  3165. `char'.
  3166. * findvar.c (register_valid): Ditto.
  3167. * defs.h (make_cleanup_func): Protect parameter list by `PARAMS'.
  3168. * gdbthread.h (unbind_target_thread_vector): Likewise.
  3169. Tue Dec 8 15:09:44 1998 Edith Epstein <eepstein@sophia.cygnus.com>
  3170. Merged in m68k-linux patch from Andreas Schwab
  3171. 1998-12-01 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
  3172. * Makefile.in, configure.host, configure.tgt: Add support for
  3173. m68k-linux.
  3174. * config/m68k/linux.mh: New file.
  3175. * config/m68k/linux.mt: New file.
  3176. * config/m68k/nm-linux.h: New file.
  3177. * config/m68k/tm-linux.h: New file.
  3178. * config/m68k/xm-linux.h: New file.
  3179. * m68klinux-nat.c: New file.
  3180. * gdbserver/low-linux.c: Add support for m68k-linux.
  3181. * config/m68k/tm-m68k.h (NUM_FREGS): New macro.
  3182. 1998-12-07 Jason Molenda (jsm@bugshack.cygnus.com)
  3183. * config/i386/xm-cygwin.h: Remove REQUEST_QUIT definition.
  3184. * config/powerpc/xm-cygwin.h: Ditto.
  3185. 1998-12-07 Jim Blandy <jimb@zwingli.cygnus.com>
  3186. * rs6000-tdep.c (pop_frame): Correctly find the registers saved in
  3187. the stack frame. Their offset from the previous stack frame is in
  3188. fdata.gpr_offset and fdata.fpr_offset, not fdata.offset.
  3189. (gdb.base/return.exp)
  3190. * config/rs6000/tm-rs6000.h: Doc fixes.
  3191. 1998-12-03 Jason Molenda (jsm@bugshack.cygnus.com)
  3192. * monitor.c (monitor_read_memory): Zero out pattern buffers
  3193. before calling re_search.
  3194. (parse_register_dump): Ditto.
  3195. Thu Dec 3 10:37:22 EST 1998 Zdenek Radouch (radouch@cygnus.com)
  3196. FR30 updates - still very preliminary.
  3197. * configure.tgt
  3198. * fr30-tdep.c
  3199. * config/fr30/tm-fr30.h
  3200. Thu Dec 3 16:30:35 1998 Andrew Cagney <cagney@b1.cygnus.com>
  3201. * ax-gdb.c: Include target.h.
  3202. Tue Dec 3 10:59:00 1998 Andrew Cagney <cagney@b1.cygnus.com>
  3203. * ax-gdb.c (_initialize_ax_gdb), i960-tdep.c (pop_frame),
  3204. monitor.c (flush_monitor_dcache, longlongendswap), remote-array.c
  3205. (hexword2ascii), w89k-rom.c (init_w89k_cmds), z8k-tdep.c
  3206. (init_frame_pc, extract_return_value): Make return type void.
  3207. * monitor.c (monitor_write_even_block): Make return type explicit.
  3208. (monotor_read_memory_block): Delete function.
  3209. * monitor.h: Update.
  3210. * remote.c (remote_get_threadlist, remote_update_threads),
  3211. remote-array.c (array_get_packet), remote-rdi.c (Fail): Always
  3212. return a value.
  3213. * m32r-tdep.c (m32r_fix_call_dummy): From Michael Snyder, void
  3214. function.
  3215. * jv-valprint.c (java_val_print): From Stu Grossman. Return 0 by
  3216. default.
  3217. Wed Dec 2 15:11:38 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
  3218. * tracepoint.c: Move default definition of
  3219. TARGET_VIRTUAL_FRAME_POINTER from here to target.h.
  3220. * target.h: Add default definition of TARGET_VIRTUAL_FRAME_POINTER.
  3221. * ax-gdb.c (gen_frame_args_address, gen_frame_locals_address):
  3222. use TARGET_VIRTUAL_FRAME_POINTER to determine frame pointer.
  3223. (gen_trace_for_expr): new argument, address of tracepoint,
  3224. gets passed to new_agent_expr and added to struct agent_expr.
  3225. (is_nontrivial_conversion): call to new_agent_expr now requires
  3226. a dummy argument. (agent_command): use get_current_frame() to
  3227. get current PC scope; pass it to gen_trace_for_expr.
  3228. * ax-general.c (new_agent_expr): new argument, address of
  3229. tracepoint; store it in new field of struct agent_expr.
  3230. * ax.h (struct agent_expr): add new field for tracepoint address.
  3231. * ax-gdb.h: change prototypes to match above changes.
  3232. * m32r-tdep.c (decode_prologue): If no branch or push fp is found,
  3233. but there's a stack adjust, then use that as the end of prologue.
  3234. (m32r_skip_prologue): don't skip past the first line if there is
  3235. line info. (m32r_virtual_frame_pointer): new function.
  3236. (m32r_fix_call_dummy): no return value needed.
  3237. Tue Dec 1 10:59:00 1998 Andrew Cagney <cagney@b1.cygnus.com>
  3238. * ocd.c (remote_timeout), (BDM_BREAKPOINT), monitor.c (readchar),
  3239. remote.c: Cleanup closing of open comments.
  3240. Mon Nov 30 16:04:03 1998 Doug Evans <devans@canuck.cygnus.com>
  3241. * config/fr30/tm-fr30.h (INNER_THAN): Add parameters.
  3242. Mon Nov 30 11:18:48 1998 Andrew Cagney <cagney@chook>
  3243. * frame.h (FRAME_CHAIN_VALID): Default to
  3244. default_frame_chain_valid.
  3245. * blockframe.c (default_frame_chain_valid): New function.
  3246. * frame.h (FRAME_CHAIN_VALID_ALTERNATIVE): Delete references
  3247. * blockframe.c (alternate_frame_chain_valid): New function.
  3248. * config/mips/tm-mipsv4.h, config/m88k/tm-delta88v4.h,
  3249. config/m68k/tm-monitor.h, config/m68k/tm-m68kv4.h,
  3250. config/i386/tm-i386v4.h, config/i386/tm-i386nw.h,
  3251. config/h8300/tm-h8300.h: Update.
  3252. * blockframe.c (nonnull_frame_chain_valid): New function.
  3253. * config/m68k/tm-os68k.h, config/m68k/tm-vx68.h,
  3254. config/m68k/tm-apollo68b.h, config/i960/tm-vx960.h,
  3255. config/arc/tm-arc.h: Update FRAME_CHAIN_VALID.
  3256. * hppa-tdep.c (frame_chain_valid, hppa_frame_chain_valid),
  3257. remote-vx29k.c (get_fp_contents, vx29k_frame_chain_valid),
  3258. arm-tdep.c (frame_chain_valid, arm_frame_chain_valid): Rename
  3259. functions so that they are name space clean.
  3260. * config/pa/tm-hppa.h, config/a29k/tm-vx29k.h,
  3261. config/arm/tm-arm.h: Update FRAME_CHAIN_VALID.
  3262. * gould-tdep.c (gould_frame_chain_valid), d30v-tdep.c
  3263. (d30v_frame_chain_valid), d10v-tdep.c (d10v_frame_chain_valid):
  3264. New functions.
  3265. * config/gould/tm-np1.h, config/gould/tm-pn.h,
  3266. config/d30v/tm-d30v.h, config/d10v/tm-d10v.h: Update
  3267. FRAME_CHAIN_VALID.
  3268. Sun Nov 29 11:18:37 1998 Andrew Cagney <cagney@b1.cygnus.com>
  3269. * z8k-tdep.c (z8k_addr_bits_remove), w65-tdep.c
  3270. (w65_addr_bits_remove), h8500-tdep.c (h8500_addr_bits_remove),
  3271. m88k-tdep.c (m88k_addr_bits_remove): Function to clean up an
  3272. address.
  3273. * config/z8k/tm-z8k.h, config/w65/tm-w65.h, config/m88k/tm-m88k.h,
  3274. config/h8500/tm-h8500.h: Define ADDR_BITS_REMOVE to call targets
  3275. corresponding function.
  3276. * z8k-tdep.c (saved_pc_after_call): Update.
  3277. Sat Nov 28 12:24:31 1998 Andrew Cagney <cagney@b1.cygnus.com>
  3278. * config/z8k/tm-z8k.h, config/w65/tm-w65.h, config/vax/tm-vax.h,
  3279. config/v850/tm-v850.h, config/tahoe/tm-tahoe.h,
  3280. config/sparc/tm-sparc.h, config/sh/tm-sh.h,
  3281. config/rs6000/tm-rs6000.h, config/pyr/tm-pyr.h,
  3282. config/pa/tm-hppa.h, config/ns32k/tm-umax.h,
  3283. config/ns32k/tm-merlin.h, config/none/tm-none.h,
  3284. config/mn10300/tm-mn10300.h, config/mn10200/tm-mn10200.h,
  3285. config/mips/tm-mips.h, config/m88k/tm-m88k.h,
  3286. config/m68k/tm-m68k.h, config/m32r/tm-m32r.h,
  3287. config/i960/tm-i960.h, config/i386/tm-i386.h,
  3288. config/h8500/tm-h8500.h, config/h8300/tm-h8300.h,
  3289. config/gould/tm-pn.h, config/gould/tm-np1.h, config/arm/tm-arm.h,
  3290. config/convex/tm-convex.h, config/d10v/tm-d10v.h,
  3291. config/alpha/tm-alpha.h, config/a29k/tm-a29k.h: Add parameters to
  3292. macro INNER_THAN.
  3293. * valops.c (push_word, value_push, call_function_by_hand),
  3294. breakpoint.c (bpstat_stop_status), blockframe.c
  3295. (generic_push_dummy_frame, generic_frame_chain_valid), inferior.h
  3296. (PC_IN_CALL_DUMMY), infrun.c (wait_for_inferior): Update use of
  3297. INNER_THAN.
  3298. Fri Nov 27 11:00:25 1998 Andrew Cagney <cagney@chook>
  3299. * target.h (one_stepped): Move global from here.
  3300. * infrun.c (singlestep_breakpoints_inserted_p): To here. Rename.
  3301. Make static.
  3302. (wait_for_inferior): Update.
  3303. (resume): Update. Set variable after call to SOFTWARE_SINGLE_STEP.
  3304. * target.h (NO_SINGLE_STEP): Replace with SOFTWARE_SINGLE_STEP_P
  3305. and SOFTWARE_SINGLE_STEP.
  3306. * config/sparc/tm-sparc.h, config/rs6000/tm-rs6000.h,
  3307. config/arc/tm-arc.h: Update.
  3308. * rs6000-tdep.c (rs6000_software_single_step), sparc-tdep.c
  3309. (sparc_software_single_step), arc-tdep.c (arc_single_step): New
  3310. functions. Replace function single_step.
  3311. * config/mips/tm-mips.h (STEP_SKIPS_DELAY_P): Define.
  3312. * infrun.c (proceed): Cleanup.
  3313. Thu Nov 26 11:19:15 1998 Andrew Cagney <cagney@amy.cygnus.com>
  3314. * config/alpha/tm-alpha.h (ABOUT_TO_RETURN): Replace macro.
  3315. * alpha-tdep.c (alpha_about_to_return): With new function.
  3316. (heuristic_proc_start): Update.
  3317. * config/mips/tm-mips.h (ABOUT_TO_RETURN), mips-tdep.c
  3318. (heuristic_proc_start, mips_about_to_return): Ditto.
  3319. * config/ns32k/tm-merlin.h (ABOUT_TO_RETURN),
  3320. config/ns32k/tm-umax.h (ABOUT_TO_RETURN), ns32k-tdep.c
  3321. (ns32k_about_to_return, ns32k_get_enter_addr): Ditto.
  3322. * config/z8k/tm-z8k.h, config/w65/tm-w65.h, config/vax/tm-vax.h,
  3323. config/tahoe/tm-tahoe.h, config/sparc/tm-sparc.h,
  3324. config/sh/tm-sh.h, config/rs6000/tm-rs6000.h, config/pyr/tm-pyr.h,
  3325. config/pa/tm-hppa.h, config/m88k/tm-m88k.h, config/m68k/tm-m68k.h,
  3326. config/i960/tm-i960.h, config/i386/tm-i386.h,
  3327. config/h8500/tm-h8500.h, config/h8300/tm-h8300.h,
  3328. config/gould/tm-pn.h, config/gould/tm-np1.h,
  3329. config/convex/tm-convex.h, config/arm/tm-arm.h,
  3330. config/arc/tm-arc.h, config/a29k/tm-a29k.h: Delete macro
  3331. ABOUT_TO_RETURN.
  3332. * config/w65/tm-w65.h (RTL, RTS): Delete macros.
  3333. * h8500-tdep.c (about_to_return): Delete function.
  3334. Thu Nov 26 11:19:15 1998 Andrew Cagney <cagney@chook.cygnus.com>
  3335. * rs6000-tdep.c (rs6000_breakpoint_from_pc): Change big_breakpoint
  3336. and little_breakpoint to char[] from char*.
  3337. * remote-array.c (array_insert_breakpoint): Change bp_addr to
  3338. CORE_ADDR type.
  3339. Wed Nov 25 00:13:06 1998 Andrew Cagney <cagney@b1.cygnus.com>
  3340. * vx-share/xdr_ld.c (xdr_ldtabl): Cast second arg to char**
  3341. instead of char*.
  3342. * configure.tgt (v850): Only build v850ice when cygwin and gui.
  3343. * configure.in: Add parameter to --enable-build-warnings.
  3344. * configure: Re-build.
  3345. * c-exp.y (parse_number): Rewrite shift to pacify GCC.
  3346. * config/i960/tm-i960.h (BREAKPOINT): Delete definition - simply
  3347. wrong.
  3348. * monitor.c (compile_pattern): Make val const char*.
  3349. (monitor_wait_cleanup): Make old_timeout void*, pointing at
  3350. old_timeout.
  3351. (monitor_wait): Update.
  3352. * remote-udi.c, remote-sim.c, remote-e7000.c, hppa-tdep.c,
  3353. remote-mips.c, sparcl-tdep.c, xcoffread.c: Cast parameters passed
  3354. to make_cleanup to use the new make_cleanup_func typedef.
  3355. * alpha-tdep.c (MASK): Use LONGEST to avoid arithmetic overflow.
  3356. * config/a29k/tm-a29k.h (TRANSPARENT): Rename macro to
  3357. TRANSPARENT_FRAME. Avoid name-space clash.
  3358. * a29k-tdep.c (init_frame_info): Update.
  3359. Wed Nov 25 20:37:00 1998 Andrew Cagney <cagney@b1.cygnus.com>
  3360. * rs6000-tdep.c (rs6000_breakpoint_from_pc): Change big_breakpoint
  3361. and little_breakpoint to char[] from char*.
  3362. * mem-break.c (memory_insert_breakpoint,
  3363. memory_remove_breakpoint): Pass address of bplen.
  3364. * remote-array.c (array_insert_breakpoint): Change bp_addr to
  3365. CORE_ADDR type.
  3366. Tue Nov 24 15:46:33 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
  3367. * config/mn10300/tm-mn10300.h (TARGET_VIRTUAL_FRAME_POINTER):
  3368. new target macro.
  3369. * mn10300-tdep.c (mn10300_virtual_frame_pointer): new function.
  3370. * tracepoint.c (encode_actions): Use the new target macro to
  3371. determine the virtual frame pointer, for collecting locals/args.
  3372. (add_local_symbols, collect_symbol): add a register/offset pair of
  3373. arguments so that the virtual frame pointer can be passed in.
  3374. 1998-11-24 Felix Lee <flee@cygnus.com>
  3375. * procfs.c (procfs_wait): handle syscall events first.
  3376. * procfs.c (GDB_GREGSET_TYPE, GDB_FPREGSET_TYPE): new macros.
  3377. * config/sparc/xm-sun4sol2.h: use them.
  3378. * core-sol2.c: don't #undef gregset_t and fpregset_t.
  3379. * sol-thread.c: ditto.
  3380. * sparc-tdep.c: ditto.
  3381. Tue Nov 24 14:13:10 1998 Andrew Cagney <cagney@chook>
  3382. * breakpoint.c (memory_breakpoint_size): Delete global.
  3383. (read_memory_nobpt): Determine real breakpoint address and size
  3384. using BREAKPOINT_FROM_PC.
  3385. * defs.h (breakpoint_from_pc_fn): BREAKPOINT_FROM_PC function
  3386. template.
  3387. * target.h, mem-break.c (memory_breakpoint_from_pc):
  3388. Rewrite. Always define. Return NULL when memory breakpoints are
  3389. not supported.
  3390. (memory_insert_breakpoint, memory_remove_breakpoint): Call
  3391. BREAKPOINT_FROM_PC.
  3392. * target.h (BREAKPOINT_FROM_PC): Provide default.
  3393. * gdbint.texinfo (BREAKPOINT_FROM_PC): Document.
  3394. * config/rs6000/tm-rs6000.h (BREAKPOINT): Delete macro.
  3395. (BREAKPOINT_FROM_PC): Define.
  3396. ({BIG,LITTLE}_BREAKPOINT): Move macros from here.
  3397. * rs6000-tdep.c: To here.
  3398. (rs6000_breakpoint_from_pc): New function.
  3399. * config/mn10300/tm-mn10300.h (BREAKPOINT): Delete macro.
  3400. (BREAKPOINT_FROM_PC): Define, call.
  3401. * mn10300-tdep.c (mn10300_breakpoint_from_pc): New function.
  3402. * config/mips/tm-mips.h ({BIG,LITTLE}_BREAKPOINT,
  3403. IDT_{BIG,LITTLE}_BREAKPOINT, PMON_{BIG,LITTLE}_BREAKPOINT,
  3404. MIPS16_{BIG,LITTLE}_BREAKPOINT): Move macros from here.
  3405. * mips-tdep.c: To here.
  3406. * config/arm/tm-arm.h ({BIG,LITTLE}_BREAKPOINT): Delete macros.
  3407. ({ARM,THUMB}_{BE,LE}_BREAKPOINT): Move macros from here.
  3408. * arm-tdep.c: To here.
  3409. * remote-array.c (memory_breakpoint_size): Delete variable.
  3410. (array_insert_breakpoint): Obtain breakpoint size using
  3411. BREAKPOINT_FROM_PC.
  3412. * remote-st.c (memory_breakpoint_size, st2000_insert_breakpoint):
  3413. Ditto.
  3414. * remote-os9k.c (memory_breakpoint_size,
  3415. rombug_insert_breakpoint): Ditto.
  3416. * remote-e7000.c (memory_breakpoint_size): Ditto.
  3417. Mon Nov 23 11:38:40 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
  3418. * symfile.c (deduce_language_from_filename): rewrite so as to
  3419. work from a table of filename extensions, modifiable by the user.
  3420. (filename_language_table): new data structure.
  3421. (set_ext_lang_command): new function for new command, "set
  3422. extension-language". (info_extension_language_command): new
  3423. function for new command "info extension-languages".
  3424. (add_filename_language, init_filename_language_table): new
  3425. support functions for the above.
  3426. * language.c (language_enum): new function. Support for above.
  3427. Mon Nov 23 10:47:54 1998 Andrew Cagney <cagney@chook.cygnus.com>
  3428. * config/sh/tm-sh.h, config/mn10200/tm-mn10200.h,
  3429. config/m32r/tm-m32r.h, config/arm/tm-arm.h, config/i960/tm-i960.h,
  3430. config/gould/tm-np1.h, config/d10v/tm-d10v.h,
  3431. config/v850/tm-v850.h, config/pa/tm-hppa.h, config/a29k/tm-a29k.h,
  3432. config/mn10300/tm-mn10300.h, config/mips/tm-mips.h
  3433. (USE_STRUCT_CONVENTION): Cleanup, define macro as function.
  3434. * sh-tdep.c (sh_use_struct_convention), mn10200-tdep.c
  3435. (mn10200_use_struct_convention), i960-tdep.c
  3436. (i960_use_struct_convention), gould-tdep.c
  3437. (gould_use_struct_convention), d10v-tdep.c
  3438. (d10v_use_struct_convention), v850-tdep.c
  3439. (v850_use_struct_convention), hppa-tdep.c
  3440. (hpha_use_struct_convention), m32r-tdep.c
  3441. (m32r_use_struct_convention), arm-tdep.c
  3442. (arm_use_struct_convention), mn10300-tdep.c
  3443. (mn10300_use_struct_convention), a29k-tdep.c
  3444. (a29k_use_struct_convention), mips-tdep.c
  3445. (mips_use_struct_convention): New functions
  3446. * value.h, values.c (generic_use_struct_convention): New function,
  3447. replace macro.
  3448. * values.c (USE_STRUCT_CONVENTION): Macro defaults to function
  3449. generic_use_struct_convention.
  3450. Sat Nov 21 17:15:40 1998 Philippe De Muyter <phdm@macqel.be>
  3451. * breakpoint.c (bpstat_stop_status): Do not increment hit_count
  3452. of breakpoint if condition is not true.
  3453. * coffread.c (coff_symtab_read): Discard C_LABEL's that are not
  3454. function entry points, to avoid getting them in the stack dump
  3455. instead of the actual function.
  3456. * config/m68k/delta68.mh (NAT_FILE): Undo 1998-08-18 change;
  3457. without NAT_FILE definition, configure will assume that GDB cannot
  3458. run native.
  3459. * config/m68k/nm-delta68.h (KERNEL_U_SIZE): New macro.
  3460. * delta68-nat.c (kernel_u_size): New function.
  3461. Fri Nov 20 10:13:03 1998 Andrew Cagney <cagney@b1.cygnus.com>
  3462. * buildsym.c (end_symtab): Cleanup PROCESS_LINENUMBER_HOOK.
  3463. Thu Nov 19 15:21:04 1998 Geoffrey Noer <noer@cygnus.com>
  3464. * rdi-share/host.h: if compiling under Cygwin, make sure new
  3465. preprocessor define is defined. Define it if not.
  3466. * rdi-share/hostchan.h: ditto
  3467. * rdi-share/aclocal.m4: regenerate
  3468. * rdi-share/configure: regenerate
  3469. Thu Nov 19 14:43:44 1998 Geoffrey Noer <noer@cygnus.com>
  3470. * configure.in: switch back to checking __CYGWIN32__
  3471. * configure: regenerate
  3472. Thu Nov 19 09:53:00 1998 Andrew Cagney <cagney@b1.cygnus.com>
  3473. * exec.c (exec_file_command): Cleanup. Replace #if
  3474. NEED_TEXT_START_END with if().
  3475. * config/pa/nm-hppah.h (NEED_TEXT_START_END): Redefine to be 1.
  3476. * config/convex/tm-convex.h (NEED_TEXT_START_END): Ditto.
  3477. * config/gould/tm-np1.h (NEED_TEXT_START_END): Ditto.
  3478. * config/a29k/tm-a29k.h (NEED_TEXT_START_END): Ditto.
  3479. Thu Nov 19 13:06:22 1998 Geoffrey Noer <noer@cygnus.com>
  3480. * main.c: Wait until more time has passed before calling
  3481. new cygwin_ funcs, revert back to the cygwin32_ ones for now.
  3482. * win32-nat.c: Ditto.
  3483. Wed Nov 18 15:03:17 1998 Andrew Cagney <cagney@chook.cygnus.com>
  3484. * 29k-share/udi/udip2soc.c (UDIConnect): Replace sys_errlist with
  3485. strerror.
  3486. Mon Nov 16 14:17:05 1998 Geoffrey Noer <noer@cygnus.com>
  3487. * defs.h: if compiling under Cygwin, define __CYGWIN__ if
  3488. __CYGWIN32__ is defined and __CYGWIN__ isn't for backwards
  3489. compatibility.
  3490. Fri Nov 13 00:15:08 1998 Geoffrey Noer <noer@cygnus.com>
  3491. Changes to account for name change from cygwin32 to cygwin and
  3492. clean up Win32-related ifdefs.
  3493. * configure.tgt: check for cygwin* instead of cygwin32.
  3494. New cygwin gdb_target variable loses the "32".
  3495. * configure.host: check for cygwin* instead of cygwin32.
  3496. New cygwin gdb_host variable loses the "32".
  3497. * configure.in: test __CYGWIN__ instead of __CYGWIN32__,
  3498. rename gdb_cv_os_cygwin32 variable to drop the "32". Call
  3499. AM_EXEEXT instead of AC_EXEEXT since that isn't in a released
  3500. autoconf yet.
  3501. * configure: regenerate.
  3502. * main.c: drop "32" from cygwin_ funcs, include sys/cygwin.h where
  3503. cygwin path conv protos live, instead of adding a proto here for
  3504. them here.
  3505. * {main.c, ser-tcp.c, ser-unix.c, top.c}: check __CYGWIN__
  3506. instead of __CYGWIN32__.
  3507. * source.c: thoughout, check _WIN32 instead of WIN32.
  3508. * config/i386/cygwin32.mh: delete.
  3509. * config/i386/cygwin.mh: new file, was cygwin32.mh.
  3510. * config/i386/cygwin32.mt: delete.
  3511. * config/i386/cygwin.mt: new file, was cygwin32.mt.
  3512. * config/i386/tm-cygwin32.h: delete.
  3513. * config/i386/tm-cygwin.h: new file, was tm-cygwin32.h.
  3514. * config/i386/xm-cygwin32.h: delete.
  3515. * config/i386/xm-cygwin.h: new file, was xm-cygwin32.h.
  3516. * config/i386/xm-windows.h: #include xm-cygwin.h now.
  3517. * config/powerpc/cygwin32.mh: delete.
  3518. * config/powerpc/cygwin.mh: new file, was cygwin32.mh.
  3519. * config/powerpc/cygwin32.mt: delete.
  3520. * config/powerpc/cygwin.mt: new file, was cygwin32.mt.
  3521. * config/powerpc/tm-cygwin32.h: delete.
  3522. * config/powerpc/tm-cygwin.h: new file, was tm-cygwin32.h.
  3523. * config/powerpc/xm-cygwin32.h: delete.
  3524. * config/powerpc/xm-cygwin.h: new file, was xm-cygwin32.h.
  3525. * rdi-share/aclocal.m4: regenerate with aclocal.
  3526. * rdi-share/configure: regenerate with autoconf.
  3527. * rdi-share/{host.h, hostchan.c, hostchan.h, serdrv.c, serpardr.c,
  3528. unixcomm.c}: check __CYGWIN__ instead of __CYGWIN32__.
  3529. Thu Nov 12 17:19:43 1998 John Metzler <jmetzler@cygnus.com>
  3530. * remote.c (remote_get_threadinfo): Support for remote
  3531. multithread debugging.
  3532. (remote_get_threadlist): get a partial list of threads
  3533. (remote_threadlist_iterator): Step through all the threads
  3534. (init_remote_threadtests): Optional builtin unit test commands.
  3535. * thread.c (bind_target_thread_vector): Implementa a more dynamic
  3536. way of accessing target specific thread info functions than
  3537. FIND_NEW_THREADS.
  3538. (target_thread_info): Function to get extended thread information.
  3539. * gdbthread.h: Export internal data structures corresponding to
  3540. external detailed thread info response. This is more like a 'ps'
  3541. command than what might be expected of host based threads. This
  3542. is for embedded systems.
  3543. Wed Nov 11 15:47:00 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
  3544. * procfs.c (proc_set_exec_trap): don't set PR_ASYNC or PR_FORK
  3545. in the child process for UnixWare (causes processes forked by
  3546. the debuggee to hang).
  3547. Mon Nov 9 12:00:36 1998 Dave Brolley <brolley@cygnus.com>
  3548. * config/fr30/fr30.mt: New file.
  3549. * config/fr30/tm-fr30.h: New file.
  3550. 1998-11-05 Jim Wilson <wilson@cygnus.com>
  3551. * remote-vx.c (net_read_registers, net_write_registers,
  3552. vx_xver_memory, vx_resume, vx_attach, vx_detach, vx_kill):
  3553. Change errno to errno_num.
  3554. * vx-share/xdr_ptrace.c (xdr_ptrace_return): Likewise.
  3555. * vx-share/xdr_ptrace.h (struct ptrace_return): Likewise.
  3556. Thu Nov 5 08:41:33 1998 Christopher Faylor <cgf@cygnus.com>
  3557. * top.c (gdb_readline): Allow CRLF line termination on systems
  3558. which define CRLF_SOURCE_FILES.
  3559. * win32-nat.c: 1) Add thread support, 2) fix ability to attach to
  3560. a running process, and 3) implement limited support for cygwin
  3561. signals.
  3562. (thread_rec): New function.
  3563. (child_add_thread): Ditto.
  3564. (child_init_thread_list): Ditto.
  3565. (child_delete_thread): Ditto.
  3566. (do_child_fetch_inferior_registers): Ditto.
  3567. (do_child_store_inferior_registers): Ditto.
  3568. (handle_output_debug_string): Ditto.
  3569. (child_fetch_inferior_registers): Use do_* function to perform
  3570. operation.
  3571. (child_store_inferior_registers): Ditto.
  3572. (child_continue): Ditto.
  3573. (child_thread_alive): Ditto.
  3574. (cygwin_pid_to_str): Ditto.
  3575. (handle_load_dll): Reorganize, add first attempt at reading
  3576. dll names from attached processes. Change info messages to provide
  3577. more information when dll is already loaded.
  3578. (handle_exception): Changes mandated by new thread-aware structures.
  3579. (child_wait): Track thread creation/destruction. Handle cygwin
  3580. signals.
  3581. (child_create_inferior): Ditto.
  3582. (child_resume): Ditto.
  3583. (child_kill_inferior): Ditto. Close child process handle to avoid a
  3584. handle leak.
  3585. (child_ops): Fill out child_ops fields that deal with threads.
  3586. * config/i386/tm-cygwin32.h: Declare function and macro needed
  3587. for converting a cygwin "pid" to a string.
  3588. * config/i386/xm-cygwin32.h: define HAVE_SIGSETMASK as 0 since
  3589. sigsetmask is not defined in cygwin.
  3590. Thu Nov 5 08:38:18 1998 Christopher Faylor <cgf@cygnus.com>
  3591. * win32-nat.c: Remove obsolete PPC conditionals.
  3592. Wed Nov 4 18:44:31 1998 Dave Brolley <brolley@cygnus.com>
  3593. * configure.tgt: Add fr30-*-elf*.
  3594. 1998-11-03 Jim Wilson <wilson@cygnus.com>
  3595. * c-exp.y (parse_number): Check TARGET_LONG_LONG_BIT when setting
  3596. high_bit to avoid undefined negative shift.
  3597. Mon Nov 2 15:26:33 1998 Geoffrey Noer <noer@cygnus.com>
  3598. * configure.in: Check cygwin* instead of cygwin32*.
  3599. * configure: regenerate
  3600. Thu Oct 29 10:04:20 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
  3601. [Support for trace debugging: registers that were not collected.]
  3602. * remote.c (remote_fetch_registers): accept 'xxxx' in the register
  3603. packet, with the meaning "register value is not available".
  3604. Set register_valid to -1, which will connote "no value available".
  3605. * findvar.c (read_relative_register_raw_bytes): return failure if
  3606. register_valid == -1. (value_of_register): return failure if
  3607. register_valid == -1. (read_var_value): return error if
  3608. value_of_register fails for a register variable.
  3609. (value_from_register): return failure if register_valid == -1.
  3610. * eval.c (evaluate_subexp_standard): return error if
  3611. value_of_register fails for a register used in an expression.
  3612. * infcmd.c (do_registers_info): display "value not available"
  3613. for registers for which register_valid == -1.
  3614. * tracepoint.c (set_raw_tracepoint): just save the filename as is
  3615. from the symbol table, rather than trying to prepend the dir name.
  3616. Also save the bfd section. (tracepoints_info): use the section
  3617. when looking up the function name.
  3618. * tracepoint.h: add section field to tracepoint struct.
  3619. Wed Oct 28 08:01:38 1998 Mark Alexander <marka@cygnus.com>
  3620. * sparcl-tdep.c (send_resp, sparclite_serial_start,
  3621. sparclite_serial_write): Use remote_timeout instead of hardcoded
  3622. two second timeout.
  3623. (download): Fix adjustment of a.out load addresses.
  3624. Wed Oct 28 12:32:58 1998 Andrew Cagney <cagney@b1.cygnus.com>
  3625. * configure.in (--enable-build-warnings): Finish rename from
  3626. --enable-warnings.
  3627. (enable-build-warnings): Add -Wpointer-arth, allow =* for
  3628. sim/common compatibility.
  3629. * configure: Re-generate.
  3630. Wed Oct 21 08:44:30 1998 Andrew Cagney <cagney@b1.cygnus.com>
  3631. * 29k-share/udi/udip2soc.c: Replace sys_errlist with strerror().
  3632. Thu Oct 22 09:56:55 1998 Andrew Cagney <cagney@b1.cygnus.com>
  3633. * config/rs6000/aix4.mh (NATDEPFILES): Move xcoffread.o from here.
  3634. * config/rs6000/aix4.mt (TDEPFILES): To here.
  3635. Wed Oct 21 10:02:31 1998 Andrew Cagney <cagney@b1.cygnus.com>
  3636. * rdi-share/unixcomm.c: Provide definitions of SERPORT and PARPORT
  3637. on BSD hosts.
  3638. 1998-10-19 Jason Molenda (jsm@bugshack.cygnus.com)
  3639. * configure.in (AM_EXEEXT): Use AC_EXEEXT instead.
  3640. * configure: Regenerated.
  3641. Sat Oct 17 17:39:23 1998 Felix Lee <flee@cygnus.com>
  3642. * core-sol2.c: #include <sys/types.h>, for sol2.7 weirdness.
  3643. Fri Oct 16 15:31:38 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
  3644. * m32r-tdep.c (decode_prologue): Return failure if we reach
  3645. the end of the function without finding the end of the prologue.
  3646. 1998-10-16 Jason Molenda (jsm@bugshack.cygnus.com)
  3647. * command.c copying.c copying.awk core-aout.c core-regset.c
  3648. corelow.c dcache.c i386-tdep.c i386v4-nat.c i387-tdep.c
  3649. infcmd.c infptrace.c infrun.c remote.c solib.c symfile.c
  3650. symmisc.c valarith.c: Add prototypes.
  3651. * defs.h: Add prototype for utils.c::do_run_cleanups.
  3652. * gdbtypes.c: Add prototypes.
  3653. (make_pointer_type): Add braces to remove nested if-else ambiguity.
  3654. (make_reference_type): Ditto.
  3655. * printcmd.c (printf_command): Initialize 'f' and 'string' at
  3656. function startup to suppress possibly-used-before-initialized warning.
  3657. * remote-utils.c: Add prototypes.
  3658. (sr_pollchar): Add braces to remove nested if-else ambiguity.
  3659. * ser-tcp.c: Add prototypes.
  3660. (wait_for): Add braces to remove nested if-else ambiguity.
  3661. (tcp_readchar): Ditto.
  3662. * ser-unix.c: Add prototypes.
  3663. (get_tty_state): Don't define errno here.
  3664. (hardwire_readchar): Only define 't' if we are compiling in a Cygwin
  3665. environment.
  3666. * symtab.c: Add prototypes.
  3667. (find_methods): Add braces to remove nested if-else ambiguity.
  3668. (search_symbols): Set 'i' to an initial value to suppress a
  3669. possibly-used-before-initialized warning.
  3670. * valops.c: Add prototypes.
  3671. (value_cast): Set 'eltype2' to an initial value to suppress a
  3672. possibly-used-before-initialized warning.
  3673. (value_of_variable): Add braces to remove nested if-else ambiguity.
  3674. (value_of_this): Ditto.
  3675. * valprint.c: Add prototypes.
  3676. (print_floating): Add braces to remove nested if-else ambiguity.
  3677. Thu Oct 15 19:50:48 1998 Stan Shebs <shebs@andros.cygnus.com>
  3678. * tm-sp64.h (SETUP_ARBITRARY_FRAME, FRAME_SPECIFICATION_DYADIC):
  3679. Remove, nevermore used.
  3680. Thu Oct 15 16:55:00 1998 Andrew Cagney <cagney@b1.cygnus.com>
  3681. * command.c: Include "wait.h" after, rather than before, <wait.h>.
  3682. "wait.h" was defining all WIF* macro's instead of filling in those
  3683. that <wait.h> missed.
  3684. 1998-10-14 Jason Molenda (jsm@bugshack.cygnus.com)
  3685. * defs.h: Move _initialize_printcmd, _initialize_stack,
  3686. _initialize_blockframe out of here and in to their respective .c
  3687. files.
  3688. * blockframe.c: Move _initialize_blockframe prototype to here.
  3689. * printcmd.c: Move _initialize_printcmd prototype to here.
  3690. * stack.c: Move _initialize_stack prototype to here.
  3691. * source.c, symtab.h: Move _initialize_source prototype to the .c
  3692. file.
  3693. * values.c, value.h: Move _initialize_values prototype to the .c file.
  3694. * gdbthread.h, thread.c: Move _initialize_thread prototype to the .c
  3695. file.
  3696. * breakpoint.c, breakpoint.h: Move _initialize_breakpoint prototype
  3697. to the .c file.
  3698. * abug-rom.c alpha-nat.c alpha-tdep.c annotate.c ax-gdb.c bcache.c:
  3699. Standardize comments for the prototype section of these files.
  3700. * configure.in: Look in libc for wctype before looking for it in libc.
  3701. Tue Oct 13 18:56:51 1998 Felix Lee <flee@cygnus.com>
  3702. * sol-thread.c (ps_pstop, etc): simple test for proc_service.h
  3703. version didn't work for sol2.6; pushed it to autoconf.
  3704. * configure.in (gdb_cv_proc_service_is_old): new test.
  3705. * acconfig.h (PROC_SERVICE_IS_OLD): new define.
  3706. * configure, config.in: regenerate.
  3707. 1998-10-13 Jason Molenda (jsm@bugshack.cygnus.com)
  3708. * blockframe.c (find_pc_sect_partial_function): Add braces to avoid
  3709. possible nested-if confusion.
  3710. * breakpoint.c (breakpoint_here_p): Ditto.
  3711. (breakpoint_inserted_here_p): Ditto.
  3712. (breakpoint_thread_match): Ditto.
  3713. * gnu-regex.c: Define _REGEX_RE_COMP only if it isn't already defined.
  3714. * gnu-regex.h: Define _REGEX_RE_COMP to pick up old compatability
  3715. prototypes.
  3716. * symtab.h: Add prototype for _initialize_source.
  3717. * value.h: Add prototype for _initialize_value.
  3718. * defs.h: Include sys/types.h or stddef.h to get size_t.
  3719. (make_cleanup): Add make_cleanup_func typedef and switch to using
  3720. a prototype for this function.
  3721. (mfree): Add prototypes for mmalloc, mrealloc, mfree if we aren't
  3722. using mmalloc.
  3723. * ax-gdb.c breakpoint.c coffread.c corelow.c dbxread.c
  3724. dwarf2read.c dwarfread.c elfread.c eval.c exec.c infcmd.c infrun.c
  3725. mipsread.c nlmread.c os9kread.c parse.c printcmd.c symfile.c
  3726. symmisc.c symtab.c thread.c top.c tracepoint.c typeprint.c
  3727. valops.c: Cast parameters passed to make_cleanup to use the new
  3728. make_cleanup_func typedef.
  3729. Tue Oct 13 00:51:48 1998 Felix Lee <flee@cygnus.com>
  3730. * sol-thread.c (ps_pstop, etc): different solaris versions have
  3731. slightly different prototypes in proc_service.h; compensate.
  3732. 1998-10-12 Jason Molenda (jsm@bugshack.cygnus.com)
  3733. * Makefile.in (AWK): Unused; remove.
  3734. * configure.in: Remove unused autoconf checks for MINIX, memcpy,
  3735. poll, select, strings.h.
  3736. * config.in: Regenerated.
  3737. * configure: Regenerated.
  3738. 1998-10-12 Jason Molenda (jsm@bugshack.cygnus.com)
  3739. * configure.in: Check for sys/debugreg.h, asm/debugreg.h.
  3740. * i386v-nat.c: Include asm/debugreg.h, sys/debugreg.h if it is not
  3741. present.
  3742. Sun Oct 11 12:08:07 1998 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
  3743. * dwarf2read.c (dwarf2_build_psymtabs_hard): Do not adjust the
  3744. address range of a compilation unit without children.
  3745. * mdebugread.c (parse_partial_symbols): Fix handling of stabs
  3746. continuations, use xmalloc and xrealloc.
  3747. Fri Oct 9 18:14:43 1998 Mark Alexander <marka@cygnus.com>
  3748. * rs6000-tdep.c: Don't include tm.h twice.
  3749. 1998-10-08 Keith Seitz <keiths@cygnus.com>
  3750. * main.c (main): Remove calls to {pre,post}_add_symbol_hooks.
  3751. There should be sufficient information/hooks now to eliminate
  3752. this hack.
  3753. * exec.c (file_command): Add a new hook here to inform ui's
  3754. when the exec file has changed. Adding it here allows the
  3755. ui to be informed after symbol reading.
  3756. * gdbcore.h: Add declaration of file_changed_hook.
  3757. Thu Oct 8 08:40:42 1998 Mark Alexander <marka@cygnus.com>
  3758. * rs6000-tdep.c (get_saved_register): Define only if
  3759. USE_GENERIC_DUMMY_FRAMES is defined.
  3760. Tue Oct 6 21:35:10 1998 Andrew Cagney <cagney@b1.cygnus.com>
  3761. * Makefile.in (DEPFILES): Add TARGET_OBS.
  3762. (TARGET_OBS): Defined by configure.
  3763. 1998-10-06 Jason Molenda (jsm@bugshack.cygnus.com)
  3764. Eliminate a few warnings from the compiler.
  3765. * breakpoint.h: Add prototype.
  3766. * breakpoint.c (do_enable_breakpoint): cast mem_cnt, i to (void).
  3767. * configure.in: Check if strdup declaration is necessary.
  3768. * configure: Regenerated.
  3769. * defs.h: Add prototypes.
  3770. * gdb_string.h: Only define strdup if necessary.
  3771. * gdbthread.h: Add prototypes.
  3772. * printcmd.c: Add prototyptes.
  3773. (disassemble_command): Remove unused variable 'section'.
  3774. * symtab.c: Add prototypes.
  3775. * symtab.h: Include gnu-regex.h, add prototype.
  3776. * thread.c: Add prototype.
  3777. Mon Oct 5 19:44:39 1998 Stan Shebs <shebs@andros.cygnus.com>
  3778. From David Purves <purves@apogee.com>:
  3779. * stabsread.c (rs6000_builtin_type): Create a complex float instead
  3780. of an error.
  3781. (read_sun_floating_type): Similarly.
  3782. (read_range_type): Create a complex float if self_subrange is
  3783. true.
  3784. Fri Oct 2 19:42:31 1998 Stu Grossman <grossman@babylon-5.cygnus.com>
  3785. * c-lang.c (emit_char c_printchar c_printstr), c-lang.h (c_printstr)
  3786. ch-lang.c (chill_printstr chill_printchar) c-valprint.c (c_val_print)
  3787. ch-valprint.c (chill_val_print) expprint.c (print_subexp) f-lang.c
  3788. (f_printstr f_printchar emit_char) f-valprint.c (f_val_print)
  3789. jv-lang.c (java_printchar java_emit_char) jv-valprint.c
  3790. (java_value_print java_val_print) language.c (unk_lang_printchar
  3791. unk_lang_printstr unk_lang_emit_char) language.h (struct
  3792. language_defn LA_PRINT_STRING LA_EMIT_CHAR) m2-lang.c (m2_printstr
  3793. m2_printchar emit_char) printcmd.c (print_formatted) scm-lang.c
  3794. (scm_printstr) valprint.c (val_print_string) value.h
  3795. (val_print_string): Add emit_char routines to language_desc struct
  3796. to allow finer control over language specific character output issues.
  3797. Add character width arg to printstr routines to allow handling of
  3798. wchar_t/Unicode strings. Fix c_printstr to handle wide characters.
  3799. Supply width argument to LA_PRINT_STRING and val_print_string.
  3800. * jv-lang.c (java_object_type dynamics_objfile java_link_class_type
  3801. get_dynamics_objfile get_java_object_type) jv-lang.h
  3802. (get_java_object_type): Make lots of things static.
  3803. * expprint.c (dump_prefix_expression dump_subexp): Move opcode name
  3804. printing to common routine (op_name).
  3805. * (dump_subexp): Add support for OP_SCOPE.
  3806. Fri Oct 2 16:25:54 1998 Stan Shebs <shebs@andros.cygnus.com>
  3807. * configure.host (i[3456]86-*-windows): Remove, no longer used.
  3808. * mswin: Remove directory, no longer used.
  3809. Fri Oct 2 18:52:20 1998 Fernando Nasser <fnasser@cygnus.com>
  3810. * sol-thread.c: Fixed prototypes and calls to supply_fpregset and
  3811. fill_fpregset
  3812. 1998-10-02 Keith Seitz <keiths@cygnus.com>
  3813. * remote.c (remote_interrupt): Rewrite to use remote_stop.
  3814. (remote_interrupt_twice): Remove. remote_stop now handles it.
  3815. (remote_stop): New function which handles interrupting the
  3816. remote target so that CLUI and GUI use the same core functions
  3817. to achieve the same goal.
  3818. (remote_wait): Change to handle remote_stop properly.
  3819. [interrupted_already]: New static global to help remote_stop.
  3820. [remote_ops, extended_remote_ops]: Add remote_stop for to_stop member.
  3821. * target.c: Rename static function "ignore" to "target_ignore" and
  3822. export it so that gdb can determin if some target vector member is
  3823. actually not defined. Replace all occurances of ignore.
  3824. * target.h: Export target_ignore.
  3825. Fri Oct 2 03:51:48 1998 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
  3826. * target.c (target_xfer_memory): Handle requests with zero
  3827. transfer length right away.
  3828. * values.c (unpack_double): Set up code, length and signedness of
  3829. type _after_ checking for typedef.
  3830. Thu Oct 1 15:39:27 EDT 1998 Frank Ch. Eigler <fche@cygnus.com>
  3831. * breakpoint.c (bpstat_stop_status): Do not consider an
  3832. untripped watchpoint as a "hit".
  3833. Thu Oct 1 20:52:39 1998 Andrew Cagney <cagney@b1.cygnus.com>
  3834. * exec.c (exec_file_command), convex-tdep.c (exec_file_command),
  3835. arm-xdep.c (exec_file_command), remote-rdp.c
  3836. (remote_rdp_create_inferior), remote-os9k.c
  3837. (rombug_create_inferior), remote-mm.c (mm_create_inferior),
  3838. remote-eb.c (eb_create_inferior), remote-es.c
  3839. (es1800_create_inferior), remote-rdi.c (arm_rdi_create_inferior),
  3840. remote-sim.c (gdbsim_create_inferior), remote-utils.c
  3841. (gr_create_inferior), remote-st.c (st2000_create_inferior),
  3842. remote-nindy.c (nindy_create_inferior), remote-hms.c
  3843. (hms_create_inferior), remote-e7000.c (e7000_create_inferior),
  3844. remote-array.c (array_create_inferior), remote-adapt.c
  3845. (adapt_create_inferior): Replace "exec" with "executable" in
  3846. messages.
  3847. 1998-09-25 Keith Seitz <keiths@cygnus.com>
  3848. * rdi-share/unixcomm.c: If using cygwin32, also use the SERPORT and
  3849. PARPORT defines for win32.
  3850. (Unix_MatchValidSerialDevice): For cygwin32, valid serial port names
  3851. start with "com", not "/dev/tty".
  3852. (Unix_OpenSerial): Do not use O_NONBLOCK on cygwin32.
  3853. * rdi-share/devsw.c (DevSW_Close): Free the device's state
  3854. (SwitcherState) so that the device may be reopened.
  3855. * remote-rdi.c (mywritec): Send all output through gdb's *_unfiltered
  3856. functions, ignoring non-ASCII chars, so that non-tty UI's can snarf
  3857. the output from fputs_hook.
  3858. (mywrite): Ditto.
  3859. (arm_rdi_open): Set inferior_pid.
  3860. (arm_rdi_detach): Pop the target off the target stack so that
  3861. users can attach and detach multiple times.
  3862. (arm_rdi_close): Close the opened device and reset inferior_pid, too.
  3863. 1998-09-24 Jason Molenda (jsm@bugshack.cygnus.com)
  3864. * configure.in: Change --enable-warnings to --enable-build-warnings.
  3865. * configure: Updated.
  3866. 1998-09-24 Jason Molenda (jsm@bugshack.cygnus.com)
  3867. * configure.in (WARN_CFLAGS): Add -Wmissing-prototypes.
  3868. * configure: Regenerated.
  3869. 1998-09-24 Jason Molenda (jsm@bugshack.cygnus.com)
  3870. * configure.in: Add --enable-warnings.
  3871. Adjust whitespace of other --with and --enable options so that
  3872. configure --help lines up correctly.
  3873. * aclocal.m4: Ditto.
  3874. * Makefile.in (WARN_CFLAGS): Add. Set by configure.
  3875. * configure: Regenerated.
  3876. Thu Sep 24 15:44:34 1998 Stan Shebs <shebs@andros.cygnus.com>
  3877. * remote-rdi.c: Fix formatting, remove some commented-out code.
  3878. (init_rdi_ops): Omit needless initializations.
  3879. Wed Sep 23 18:21:03 1998 Andrew Cagney <cagney@b1.cygnus.com>
  3880. * remote.c (remote_address_masked): New function - mask address
  3881. according to REMOTE_ADDRESS_SIZE.
  3882. (remote_address_size): New global.
  3883. (hexnumstr): New function - convert arbitrary unsigned to hex.
  3884. (remote_write_bytes, remote_read_bytes): Use hexnumstr to
  3885. construct packet address. Mask address when necessary.
  3886. (_initialize_remote): Add "set remoteaddresssize" command, set
  3887. REMOTE_ADDRESS_SIZE variable.
  3888. * NEWS: Update.
  3889. Wed Sep 23 18:08:52 1998 Andrew Cagney <cagney@b1.cygnus.com>
  3890. * remote.c (_initialize_remote, packet_command, print_packet):
  3891. Pretty print code.
  3892. Wed Sep 23 12:32:54 1998 <cagney@amy.cygnus.com>
  3893. * remote.c (packet_command): Test REMOTE_DESC to determine if
  3894. remote connection is open.
  3895. Tue Sep 22 22:27:24 1998 Mark Alexander <marka@cygnus.com>
  3896. Patch from Dawn Perchik <dawn@cygnus.com>:
  3897. * rs6000-tdep.c (pop_frame): Handle generic dummy frames.
  3898. (push_arguments): Likewise.
  3899. (frame_saved_pc): Likewise.
  3900. (rs6000_frame_chain): Likewise.
  3901. (ppc_push_return_address): New function.
  3902. (get_saved_register): New function.
  3903. * config/powerpc/tm-ppc-eabi.h: Add generic dummy frame macros.
  3904. Mon Sep 21 19:29:32 1998 Stu Grossman <grossman@babylon-5.cygnus.com>
  3905. * defs.h utils.c (fputc_filtered): New function. Does the obvious...
  3906. * jv-lang.c (java_printchar): Fix output of chars > 0xff. Fold
  3907. java_emit_char into java_printchar.
  3908. * language.h (PRINT_LITERAL_FORM): Reformat for readability.
  3909. Mon Sep 21 14:38:03 1998 Catherine Moore <clm@cygnus.com>
  3910. * config/arm/tm-arm.h (*_BREAKPOINT): Define both little endian
  3911. and big endian breakpoint patterns.
  3912. * arm-tdep.c (arm_break_point_from_pc): Insert either big endian
  3913. or little endian breakpoints depending upon target byte order.
  3914. Fri Sep 18 07:53:08 1998 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
  3915. * sol-thread.c (sol_thread_notice_signals): Use PIDGET when
  3916. passing pid down to procfs_notice_signals.
  3917. Wed Sep 16 14:57:14 1998 Stu Grossman <grossman@babylon-5.cygnus.com>
  3918. * stabsread.c (resolve_symbol_reference): Return 1 on success, 0 on
  3919. failure.
  3920. * (define_symbol): Check return value from resolve_symbol_reference,
  3921. and drop symbol if it fails.
  3922. Tue Sep 15 15:24:16 1998 Stu Grossman <grossman@fencer.cygnus.com>
  3923. * stabsread.c: Make all complaints static.
  3924. * Fix formatting of live range splitting code.
  3925. * (resolve_symbol_reference define_symbol resolve_live_range): Change
  3926. errors to complaints so that bad live range symbols won't abort the
  3927. entire symbol table. Handle errors by aborting just the current
  3928. symbol.
  3929. * (ref_init): Goes away. Folded into ref_add().
  3930. * (REF_MAP_SIZE): Put parens around parameter so that args like
  3931. `1 + 2' get handled correctly (yes, this was a real bug).
  3932. * (ref_add): Remove check for allocation failures. Not necessary
  3933. when using xrealloc(). Fix pointer arithmetic problem when clearing
  3934. memory. This and the previous patch prevent random SEGV's when there
  3935. are lots of live range symbols.
  3936. Tue Sep 15 14:02:01 1998 Nick Clifton <nickc@cygnus.com>
  3937. * remote-rdi.c: Prevent multiple attempts to close the remote
  3938. connection.
  3939. Tue Sep 15 10:24:17 1998 Andrew Cagney <cagney@b1.cygnus.com>
  3940. * printcmd.c (examine_i_type): New static - type for instructions.
  3941. (do_examine): For "i" format, specify examine_i_type.
  3942. (do_examine): Call value_at_lazy instead of value_at so that
  3943. examine data is only fetched if it is used.
  3944. (x_command): If examine data was not fetched, set convenience
  3945. variable "__" to void.
  3946. (_initialize_printcmd): Initialize examine_i_type.
  3947. Sun Sep 13 01:34:59 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
  3948. * blockframe.c (find_pc_sect_partial_function): use bfd section
  3949. of msymbol for end of section comparison.
  3950. Fri Sep 11 14:02:49 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
  3951. * tracepoint.c: clean up several unused variables and such.
  3952. Fri Sep 11 12:38:34 EDT 1998 Zdenek Radouch (radouch@cygnus.com)
  3953. * arm-tdep.c (arm_push_arguments): fixed frame construction
  3954. Thu Sep 10 20:51:23 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
  3955. * mn10300-tdep.c (mn10300_analyze_prologue): guard against NULL.
  3956. Wed Sep 9 19:37:36 1998 Stan Shebs <shebs@andros.cygnus.com>
  3957. * dbxread.c (IGNORE_SYMBOL): Remove definition, is never used.
  3958. * os9kread.c: Remove comment mentioning IGNORE_SYMBOL.
  3959. Wed Sep 9 11:39:05 1998 Ron Unrau <runrau@cygnus.com>
  3960. * blockframe.c(find_pc_sect_partial_function): look for min syms in
  3961. the same section when trying to guess the end of a function.
  3962. * symfile.c(list_overlays_command): use print_address_numeric
  3963. * remote-sim.c: export simulator_command
  3964. 1998-09-08 Jason Molenda (jsm@bugshack.cygnus.com)
  3965. * breakpoint.c (bpstat_stop_status): Declare a bp match if the
  3966. current fp matches the bp->fp OR if the current fp is less than
  3967. the bp->fp if we're looking at a bp_step_resume breakpoint.
  3968. Tue Sep 8 19:42:58 1998 Stan Shebs <shebs@andros.cygnus.com>
  3969. * symtab.h (struct symtab): Remove EXTRA_SYMTAB_INFO hook,
  3970. not currently used.
  3971. * symfile.c (allocate_symtab): Deprecate use of
  3972. INIT_EXTRA_SYMTAB_INFO here.
  3973. Fri Sep 4 15:33:25 1998 Stan Shebs <shebs@andros.cygnus.com>
  3974. * README: Update remote debugging and testsuite info.
  3975. Thu Sep 3 13:50:20 1998 Mark Alexander <marka@cygnus.com>
  3976. * config/mn10300/tm-mn10300.h (FP_REGNUM): Redefine to be a
  3977. pseudo-register, not the same as a3.
  3978. (D2_REGNUM, D3_REGNUM, A2_REGNUM, A3_REGNUM): Define.
  3979. * mn10300-tdep.c (fix_frame_pointer): New function.
  3980. (set_movm_offsets): Use register number macros instead of
  3981. hard-coded constants.
  3982. (mn10300_analyze_prologue): Fix to handle redefinition of FP_REGNUM.
  3983. (mn10300_frame_chain): Fix to handle redefinition of FP_REGNUM;
  3984. use register number macros instead of hard-coded constants;
  3985. add missing parameter to call of mn10300_analyze_prologue.
  3986. (mn10300_frame_saved_pc): Use register number macros instead of
  3987. hard-coded constants.
  3988. Tue Sep 1 12:04:57 EDT 1998 Zdenek Radouch (radouch@cygnus.com)
  3989. Changes to support/fix ARM/ELF port. Use MAKE_MSYMBOL_SPECIAL for
  3990. both ELF and COFF;
  3991. * elfread.c (elf_symtab_read): use ELF specific macro
  3992. * coffread.c (coff_symtab_read): use COFF_MAKE_MSYMBOL_SPECIAL()
  3993. * arm-tdep.c: separate COFF and ELF thumb processing
  3994. disable --mapcs-float processing
  3995. * dwarf2read.c: Disabled building of minimal symbols
  3996. * config/arm/tm-arm.h: new macros for distinguishing arm/thumb
  3997. * config/mips/tm-mips.h: use ELF specific macro
  3998. Mon Aug 31 15:42:10 1998 Tom Tromey <tromey@cygnus.com>
  3999. * top.c (context_hook): Define.
  4000. Tue Aug 25 13:21:58 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
  4001. * ax-gdb.c (gen_var_ref): Allow for typedef types.
  4002. (gen_cast, gen_bitfield_ref, gen_expr, gen_deref): ditto.
  4003. Mon Aug 24 18:29:03 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
  4004. * tracepoint.c (collect_symbol): Handle register doubles that
  4005. are stored in two registers.
  4006. Mon Aug 24 14:39:08 1998 Mark Alexander <marka@cygnus.com>
  4007. * sh-stub.c (undoSStep): Improve comment.
  4008. * sparc-tdep.c (sparc_extract_struct_value_address): Simplify to use
  4009. same method on both 32-bit and 64-bit machines.
  4010. * sparcl-tdep.c (sparclite_check_watch_resources): Simulator doesn't
  4011. support hardware breakpoints.
  4012. * config/sparc/tm-sparc.h (CALL_DUMMY): Improve comments.
  4013. 1998-08-20 Jason Molenda (jsm@bugshack.cygnus.com)
  4014. * rdi-share/Makefile.am (INCLUDES): Fix typeo.
  4015. * rdi-share/Makefile.in: Regenerated.
  4016. 1998-08-19 Jason Molenda (jsm@bugshack.cygnus.com)
  4017. * rdi-share/Makefile.am: Use just `INCLUDES' not `libname_INCLUDES'.
  4018. * rdi-share/Makefile.in: Regenerated.
  4019. 1998-08-19 Keith Seitz <keiths@cygnus.com>
  4020. * v850ice.c (v850ice_stop): New function to stop the ICE.
  4021. (v850ice_load) Pass filename to ICE DLL.
  4022. (ice_stepi, ice_nexti, ice_cont): Do not directly call the gdb
  4023. commands -- let the GUI do it so that it can retain control
  4024. of the display.
  4025. Wed Aug 19 15:53:52 1998 Anthony Green <green@hoser.cygnus.com>
  4026. * i386v4-nat.c: Include sys/reg.h if present.
  4027. Wed Aug 19 03:07:53 1998 Richard Henderson <rth@cygnus.com>
  4028. * config/alpha/alpha-linux (XDEPFILES): Build ser-tcp.
  4029. 1998-08-18 Fernando Nasser <fnasser@totem.to.cygnus.com>
  4030. * symtab.c (decode_line_1): For minimal symbol, SKIP_PROLOG to
  4031. make sure we stop after the frame pointer is locaded and backtrace
  4032. prints an accurate stack. Complements changes made on Mon Jul 27
  4033. 10:45:56 1998
  4034. (decode_line_2): Replaced the whitespace after ">" in a prompt
  4035. which has been taken away by changes made on Sun Jul 19 02:11:45
  4036. 1998
  4037. 1998-08-18 Keith Seitz <keiths@cygnus.com>
  4038. * stack.c: Define new hook, selected_frame_level_changed_hook, which
  4039. will be called whenever the selected stack level changes.
  4040. (select_frame): Call the selected_frame_level_changed_hook.
  4041. Tue Aug 18 18:03:42 1998 Stan Shebs <shebs@andros.cygnus.com>
  4042. * remote-rdi.c (arm_rdi_open): Pass serial device name to
  4043. Adp_OpenDevice, and include it in error reports.
  4044. 1998-08-18 Jason Molenda (jsm@bugshack.cygnus.com)
  4045. * configure.in: Add more header files to AC_CHECK_HEADERS.
  4046. * configure: Regenerated.
  4047. * command.c: Include wait.h or sys/wait.h if present.
  4048. * inftarg.c: Ditto.
  4049. * core-aout.c: Include ptrace.h or sys/ptrace.h if present, based
  4050. on autoconf test.
  4051. * infptrace.c: Ditto.
  4052. * expprint.c: Include ctype.h for isprint prototype.
  4053. * i386aix-nat.c: Include sys/reg.h if autoconf says it is present.
  4054. * i386v-nat.c: Include ptrace.h, sys/ptrace.h, and sys/reg.h if
  4055. present, based on autoconf test.
  4056. * utils.c: Include curses.h and term.h if present.
  4057. (puts_debug): Change 'carriage_return' local variable to return_p
  4058. to avoid name clash.
  4059. * config/m68k/nm-apollo68b.h: Don't define PTRACE_IN_WRONG_PLACE,
  4060. determine it with autoconf.
  4061. * config/i386/nm-linux.h: Don't define NO_SYS_REG_H, determine it
  4062. with autoconf.
  4063. * config/i386/nm-i386sco.h: Don't define NO_PTRACE_H, determine it
  4064. with autoconf.
  4065. * config/i386/nm-i386v.h: Ditto.
  4066. * config/i386/nm-symmetry.h: Ditto.
  4067. * config/m88k/xm-cxux.h: Ditto.
  4068. * config/m88k/xm-dgux.h: Ditto.
  4069. * config/m68k/delta68.mh (NAT_FILE): nm-delta68.h no longer necessary.
  4070. * config/m68k/nm-delta68.h: Removed.
  4071. Fri Aug 14 11:14:03 1998 Jeffrey A Law (law@cygnus.com)
  4072. * mn10300-tdep.c (set_movm_offsets): Change second argument to
  4073. be the actual args to movm itself. All callers changed. Only set
  4074. fi->fsr.regs[x] if reg X is saved by the movm instruction.
  4075. Fri Aug 14 04:18:23 1998 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
  4076. * sol-thread.c (lwp_to_thread): Fix error message for failing
  4077. td_ta_map_lwp2thr call.
  4078. (ps_lgetLDT): Mask off upper bits in GS register when comparing
  4079. with selector.
  4080. Wed Aug 12 16:30:01 1998 Frank Ch. Eigler <fche@cygnus.com>
  4081. * remote-sim.c (simulator_command): Reset register cache after
  4082. simulator command.
  4083. Wed Aug 12 09:00:26 1998 Stu Grossman <grossman@babylon-5.cygnus.com>
  4084. * expprint.c (dump_prefix/postfix_expression): Don't try to print
  4085. type expressions.
  4086. Tue Aug 11 11:33:25 1998 Stu Grossman <grossman@babylon-5.cygnus.com>
  4087. * c-typeprint.c (c_print_type): Don't crash if varstring is null.
  4088. * expprint.c expression.h (dump_expression): Rename to
  4089. dump_prefix_expression.
  4090. * Print out the expression in normal form. Call print_longest
  4091. instead of trying to do it ourselves.
  4092. * (dump_postfix_expression): New function, prints out the expression
  4093. with indentation and better formatting and interpretation.
  4094. * parse.c (parse_exp_1): Put calls to dump expressions under ifdef
  4095. MAINTENANCE_CMDS and expressiondebug variable.
  4096. Thu Aug 6 13:20:02 1998 Ron Unrau <runrau@cygnus.com>
  4097. * infrun.c (wait_for_inferior): use stop_func_name instead of
  4098. stop_func_start to decide that no debug info exists.
  4099. Thu Jul 30 13:53:50 1998 Mark Alexander <marka@cygnus.com>
  4100. * mips-tdep.c (mask_address_p): New variable.
  4101. (mips_addr_bits_remove): Test mask_address_p to decide whether
  4102. to mask off the upper 32 bits of addresses.
  4103. (_initialize_mips_tdep): Add command to set mask_address_p.
  4104. (mips_call_dummy_address): New function.
  4105. * config/mips/tm-mips.h (CALL_DUMMY_ADDRESS): Redefine to
  4106. call mips_call_dummy_address.
  4107. 1998-07-29 Fernando Nasser <fnasser@totem.to.cygnus.com>
  4108. * symfile.c (add_symbol_file_command): Test for the from_tty
  4109. parameter and avoid query when not interactive.
  4110. Wed Jul 29 10:39:29 1998 Jeffrey A Law (law@cygnus.com)
  4111. * mn10300-tdep.c (set_movm_offsets): Do nothing for the am33
  4112. registers if we are not in am33 mode.
  4113. (mn10300_frame_chain, mn10300_frame_saved_pc): Similarly.
  4114. (set_machine_hook): Keep track of whether or not we're in am33 mode.
  4115. Mon Jul 27 16:11:42 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
  4116. * tracepoint.c (remote_set_transparent_ranges): new function.
  4117. Send the start and end addresses of all loadable read-only
  4118. sections down to the trace target, so that it can treat them
  4119. as "transparent" (ie. don't care if they were collected or not).
  4120. Mon Jul 27 15:38:07 1998 Mark Alexander <marka@cygnus.com>
  4121. * mn10300-tdep.c (mn10300_analyze_prologue): Undo previous fix
  4122. for setting frame address in optimized code; made unnecessary
  4123. by compiler fixes.
  4124. Mon Jul 27 10:45:56 1998 Martin M. Hunt <hunt@cygnus.com>
  4125. * symtab.c (decode_line_1): For minimal symbol, call
  4126. find_pc_sect_line() to make sure the line number gets set
  4127. properly.
  4128. (print_symbol_info): Redeclare function void.
  4129. 1998-07-27 Jason Molenda (jsm@bugshack.cygnus.com)
  4130. * config/d10v/tm-d10v.h (REGISTER_NAMES): sp -> r15. The
  4131. stack pointer et al are synthesized from the SP_REGNUM (etc)
  4132. defines and should not be mentioned in REGISTER_NAMES.
  4133. Mon Jul 27 08:54:41 1998 Jeffrey A Law (law@cygnus.com)
  4134. * mn10300-tdep.c (mn10300_frame_chain): Account for space saved
  4135. by am33 register saves.
  4136. (mn10300_frame_saved_pc): Similarly.
  4137. Fri Jul 24 14:41:19 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
  4138. * tracepoint.c (encode_actions): Treat register names and simple
  4139. variable names as special cases and don't convert them to byte-
  4140. codes: these things can be collected far more efficiently
  4141. without invoking the bytecode interpreter.
  4142. Fri Jul 24 13:32:46 1998 Mark Alexander <marka@cygnus.com>
  4143. * config/i386/tm-i386.h (STORE_STRUCT_RETURN): Make it
  4144. work on hosts of any endianness.
  4145. * config/i386/tm-i386v.h: Ditto.
  4146. Fri Jul 24 07:41:12 1998 Mark Alexander <marka@cygnus.com>
  4147. * mn10300-tdep.c (set_movm_offsets): New helper function
  4148. for mn10300_analyze_prologue.
  4149. (mn10300_analyze_prologue): Simplify by factoring out common code.
  4150. Fix bugs in setting frame address for optimized code.
  4151. Use read_memory_nobpt instead of target_read_memory.
  4152. Thu Jul 23 17:01:17 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
  4153. * tracepoint.c (collect_symbol): handle LOC_ARG case.
  4154. Thu Jul 23 15:07:40 1998 Dawn Perchik <dawn@cygnus.com>
  4155. * sparc-tdep.c (sparc_init_extra_frame_info): Recognize when we're
  4156. in a function prologue before the SAVE instruction.
  4157. (sparc_frame_saved_pc): Ditto.
  4158. * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Add in_prologue flag.
  4159. Thu Jul 23 14:58:09 1998 Dawn Perchik <dawn@cygnus.com>
  4160. * i386-tdep.c (i386_get_frame_setup): Recognize function
  4161. prologues in code compiled with -fcheck-stack.
  4162. Thu Jul 23 14:49:27 1998 Dawn Perchik <dawn@cygnus.com>
  4163. * remote-mips.c (remote_mips_insert_hw_breakpoint,
  4164. remote_mips_remove_hw_breakpoint): New functions for hardware
  4165. breakpoints on LSI targets.
  4166. * config/mips/tm-embed.h (target_remove_hw_breakpoint,
  4167. target_insert_hw_breakpoint): Define to call
  4168. remote_mips_insert_hw_breakpoint and remote_mips_remove_hw_breakpoint,
  4169. respectively.
  4170. 1998-07-21 Fernando Nasser <fnasser@totem.to.cygnus.com>
  4171. * source.c (print_source_lines): Print "No such file or directory"
  4172. just once.
  4173. (directory_command): same as above; resets if user issues dir.
  4174. Sun Jul 19 02:11:45 1998 Martin M. Hunt <hunt@cygnus.com>
  4175. * symtab.c (decode_line_2): Instead of printing a prompt
  4176. and calling command_line_input() without a prompt, just
  4177. call it with the proper args. This makes the GUI work too.
  4178. Fri Jul 17 9:26:50 1998 Ron Unrau <runrau@cygnus.com>
  4179. * blockframe.c (find_pc_sect_partial_function): allow for the possi-
  4180. bility of multiple symbols at the same address when finding high.
  4181. * breakpoint.c (resolve_sal_pc): if the function based section lookup
  4182. fails, try getting the section from the minimal symbol table.
  4183. * parse.c (write_exp_msymbol): use symbol_overlayed_address to get
  4184. the LMA of a minimal symbol if unmapped.
  4185. * symtab.c (find_line_symtab): change interface to return symtab
  4186. containing the best linetable found.
  4187. (decode_line_1): use find_line_symtab to set val.symtab. This should
  4188. improve support for source files with multiple symtabs.
  4189. Wed Jul 15 11:51:33 1998 Keith Seitz <keiths@cygnus.com>
  4190. * main.c (main): Fix violations of GNU coding standard.
  4191. * breakpoint.c: Export delete_command.
  4192. * infcmd.c: Export continue_command, stepi_command, and nexti_command.
  4193. * Makefile.in: Add target for v850ice.o.
  4194. * configure.tgt: Add cygwin32 dependencies for v850 ice.
  4195. Wed Jul 15 10:58:29 1998 Nick Clifton <nickc@cygnus.com>
  4196. * tracepoint.c (set_raw_tracepoint): Cope with symbols that do not
  4197. have an associated directory.
  4198. Mon Jul 13 15:21:04 1998 Mark Alexander <marka@cygnus.com>
  4199. * utils.c (puts_debug): Display non-printable characters in hex
  4200. instead of octal.
  4201. Thu Jul 9 16:16:47 1998 Jeffrey A Law (law@cygnus.com)
  4202. * mn10300-tdep.c (mn10300_generic_register_names): New variable.
  4203. (set_machine_hook): New function. Copy the appropriate register
  4204. names into reg_names.
  4205. (_initialize_mn10300_tdep): Set up to call set_machine_hook.
  4206. * tm-mn10300 (NUM_REGS): Bump to 32.
  4207. (REGISTER_NAMES): Updated accordingly.
  4208. * mn10300-tdep.c (am33_register_names): New variable.
  4209. (mn10300_analyze_prologue): Handle regs saved by am33 prologues.
  4210. * tm-mn10300.h (E0_REGNUM): Define.
  4211. Tue Jul 7 7:40:13 1998 Ron Unrau <runrau@cygnus.com>
  4212. * symtab.c (find_pc_sect_psymbol): allow case where textlow is 0
  4213. Thu Jul 2 15:57:58 1998 Frank Ch. Eigler <fche@cygnus.com>
  4214. * breakpoint.c (resolve_sal_pc): Accept absence of innermost
  4215. Lexical block for breakpoint resolution.
  4216. Thu Jul 2 10:22:00 1998 Dawn Perchik <dawn@cygnus.com>
  4217. * mdebugread.c (parse_partial_symbols): Go ahead and read the .mdebug
  4218. section, but just don't add a 2nd minimal symbol if this is an .mdebug
  4219. section in an ELF file.
  4220. 1998-07-01 Jim Blandy <jimb@zwingli.cygnus.com>
  4221. * Makefile.in (ax-general.o): Depend on $(defs_h) too.
  4222. (ax_h): Bother to define this.
  4223. Mon Jun 29 19:01:18 1998 Jim Wilson <wilson@cygnus.com>
  4224. * gnu-regex.c (re_comp): Add cast to char * before gettext calls.
  4225. Sun Jun 28 11:35:48 1998 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
  4226. Improve support for SunPro F77.
  4227. * dbxread.c (end_psymtab, process_one_symbol): Handle minimal
  4228. symbols with trailing underscore names.
  4229. * minsyms.c (find_stab_function_addr): Ditto.
  4230. * dbxread.c (process_one_symbol): Ignore N_ALIAS for now.
  4231. * partial-stab.h (case N_ALIAS): Ditto.
  4232. * stabsread.c (read_sun_builtin_type): Handle boolean types.
  4233. Fri Jun 26 14:03:01 1998 Keith Seitz <keiths@cygnus.com>
  4234. * symtab.h (enum namespace): Add new namespaces FUNCTIONS_NAMESPACE,
  4235. TYPES_NAMESPACE, METHODS_NAMESPACE, and VARIABLES_NAMESPACE used by
  4236. new search_symbols.
  4237. Add prototype for search_symbols and free_search_symbols.
  4238. * symtab.c (list_symbols): Rewrite to use new search_symbols.
  4239. (file_matches): New helper function for search_symbols.
  4240. (free_search_symbols): New function which frees data returned from
  4241. search_symbols.
  4242. (print_symbol_info): New helper function which prints info about a
  4243. matched symbol to stdout. Extracted from old list_symbols.
  4244. (print_msymbol_info): New helper function which prints info about
  4245. a matched msymbol to stdout. Extracted from old list_symbols.
  4246. (symtab_symbol_info): Extracted from old list_symbols.
  4247. (variables_info): Use symtab_symbol_info.
  4248. (functions_info): Use symtab_symbol_info.
  4249. (types_info): Use symtab_symbol_info.
  4250. (rbreak_command): Rewrite to use new search_symbols.
  4251. Thu Jun 25 22:38:32 1998 Frank Ch. Eigler <fche@cygnus.com>
  4252. * mips-tdep.c (mips_push_arguments): Use 128-bit stack frame
  4253. alignment for inferior calls.
  4254. Wed Jun 24 23:17:12 1998 Mark Alexander <marka@cygnus.com>
  4255. * mn10200-tdep.c (mn10200_analyze_prologue): Fix calculation
  4256. of jsr target address.
  4257. Tue Jun 23 19:37:46 1998 Mark Alexander <marka@cygnus.com>
  4258. * config/mn10200/tm-mn10200.h (SAVED_PC_AFTER_CALL): Don't
  4259. zero upper byte of address.
  4260. Tue Jun 23 17:32:26 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
  4261. * rs6000-tdep.c (pop_dummy_frame): use memcpy.
  4262. (push_arguments): use memset.
  4263. (various other places): fix up indentation and long lines.
  4264. Tue Jun 23 11:58:35 1998 Jason Molenda (crash@bugshack.cygnus.com)
  4265. * configure.in: s/lXext/-lXext/ for Jillian's change.
  4266. Tue Jun 23 11:14:04 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
  4267. * source.c (find_source_lines): fix indentation.
  4268. * config/mips/tm-irix5.h: Modify to work better on irix 6, by
  4269. making FP registers 8 bytes instead of 4.
  4270. REGISTER_BYTES: redefine. REGISTER_BYTE(): redefine.
  4271. REGISTER_VIRTUAL_TYPE: redefine. MIPS_LAST_ARG_REGNUM: redefine.
  4272. * irix5-nat.c (fetch_core_registers): read 8 bytes per FP register.
  4273. * mips-tdep.c (FP_REGISTER_DOUBLE): new macro to distinguish
  4274. targets with 8-byte FP registers (don't use TARGET_MIPS64).
  4275. (STACK_ARGSIZE): new macro, how much space is taken up on the
  4276. stack for each function argument (don't use TARGET_MIPS64).
  4277. (mips_push_arguments): modify logic to work better on Irix 6
  4278. (n32 ABI).
  4279. Tue Jun 23 12:29:53 1998 Jillian Ye <jillian@cygnus.com>
  4280. * configure.in: Add -lXext to mips_extra_libs
  4281. * configure: Regenerated.
  4282. Sun Jun 21 09:31:12 1998 Ron Unrau (runrau@cygnus.com)
  4283. * symtab.c (find_line_pc): assumed that a PC of 0 is illegal.
  4284. Changed to pass PC as arg and return 1 if valid (0 otherwise).
  4285. * symtab.h: Change prototype to match.
  4286. * symtab.c (find_line_pc_range): Use new interface.
  4287. * breakpoint.c (resolve_sal_pc): Ditto.
  4288. Wed Jun 17 15:50:00 1998 Ron Unrau (runrau@cygnus.com)
  4289. * parse.c (target_map_name_to_register): Check target specific
  4290. aliases *first* so that it can over-ride architectural names
  4291. Wed Jun 17 17:13:38 1998 Said Ziouani (saidz@park-street.cygnus.com)
  4292. * remote-sds.c (sds_start_remote): Fix printf call.
  4293. Tue Jun 16 16:32:08 1998 Mark Alexander <marka@cygnus.com>
  4294. * mn10200-tdep.c (mn10200_analyze_prologue): Fix null pointer
  4295. crash when in "start".
  4296. Tue Jun 16 14:38:40 1998 Ron Unrau (runrau@cygnus.com)
  4297. * dbxread.c: reset function_start_offset after a finishing N_FUN
  4298. is seen.
  4299. * remote-sim.c: allow TARGET_REDEFINE_DEFAULT_OPS to override
  4300. target vectors as needed.
  4301. Sun Jun 14 08:46:25 1998 Ron Unrau (runrau@cygnus.com)
  4302. * partial-stab.h: 'F' and 'f' type N_FUN psymbols should pass
  4303. CUR_SYMBOL_VALUE as CORE_ADDR instead of long
  4304. * buildsym.[ch]: export pending_blocks list
  4305. Sat Jun 13 13:02:32 1998 Dawn Perchik (dawn@cygnus.com)
  4306. * remote.c: Fix remote help string to match that of help.exp.
  4307. Fri Jun 12 14:22:55 1998 Jason Molenda (crash@bugshack.cygnus.com)
  4308. * configure.in (LIBS): Add -lw to the list of libraries if needed.
  4309. Thu Jun 11 15:05:10 1998 Jason Molenda (crash@bugshack.cygnus.com)
  4310. * btowc.c: Removed.
  4311. * configure.in: Don't see if we need to replace btowc().
  4312. * Makefile.in: Don't include LIBOBJS.
  4313. * configure: Regenerated.
  4314. * gnu-regex.c (regex_compile): Only support i18n [:foo:] if
  4315. we have btowc().
  4316. Wed Jun 10 15:39:14 1998 Stu Grossman <grossman@babylon-5.cygnus.com>
  4317. * c-exp.y: Fix problems with parsing "'foo.bar'::func".
  4318. Some languages allow symbols with dots.
  4319. * gdbtypes.c (check_stub_method): Cosmetic. Use more descriptive
  4320. names for parameters.
  4321. * jv-exp.y: Parser now accepts primitive types.
  4322. * (parse_number): Use correct ifdef for scanf long double support.
  4323. * jv-lang.c (java_array_type): Initial cut at array support.
  4324. * language.c language.h (set_language): Now returns previous language.
  4325. * symtab.c (find_methods): Make static. Cosmetic changes, including
  4326. indentation, and adding descriptive comments. Move local variable
  4327. defs into the block they are used in.
  4328. * Don't call check_stub_method any more. Use gdb_mangle_name to
  4329. generate the full method name. find_method doesn't need all the other
  4330. goobldegook that check_stub_method does.
  4331. * (gdb_mangle_name): Use more descriptive names for parameters. Fix
  4332. comment.
  4333. * (lookup_partial_symbol lookup_block_symbol): Check for java to
  4334. ensure we can find mangled names.
  4335. * (decode_line_1): Move local variable defs into the block they are
  4336. used in. (Improves code readability.)
  4337. Wed Jun 10 18:04:35 1998 Frank Ch. Eigler <fche@cygnus.com>
  4338. * gdbtypes.c (get_discrete_bounds): Assign unsigned type flag for
  4339. all-positive enum.
  4340. (create_set_type): Ditto for all-positive set values.
  4341. * values.c (unpack_field_as_long): Check for typedef in struct
  4342. field unpacking.
  4343. Wed Jun 10 14:06:05 1998 Jason Molenda (crash@bugshack.cygnus.com)
  4344. * configure.in: Add some tests for gnu-regex.c's benefit.
  4345. See if btowc() function is provided in C library.
  4346. * configure, config.in: Regenerated.
  4347. * Makefile.in (CLIBS, CDEPS): Add @LIBOBJS@ to build btowc.c
  4348. if necessary.
  4349. * btowc.c: New file.
  4350. * gnu-regex.c: Reorder wchar.h and wctype.h includes for Solaris'
  4351. benefit.
  4352. Drop namespace preserving defines for now.
  4353. Wed Jun 10 11:53:42 1998 Jason Molenda (crash@bugshack.cygnus.com)
  4354. * gnu-regex.c: Include "gnu-regex.h", not "regex.h".
  4355. Wed Jun 10 11:34:07 1998 Jason Molenda (crash@bugshack.cygnus.com)
  4356. * gnu-regex.c, gnu-regex.h: Change LGPL license to GPL license
  4357. to stay consistent with the rest of GDB.
  4358. Wed Jun 10 11:27:39 1998 Jason Molenda (crash@bugshack.cygnus.com)
  4359. * gnu-regex.c, gnu-regex.h: Update to current FSF (glibc) versions.
  4360. Wed Jun 10 10:58:18 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
  4361. * printcmd.c (disassemble_command): move overlay mapping code
  4362. "up" into find_pc_partial_function.
  4363. * blockframe.c (find_pc_partial_function): adjust start address
  4364. and end address for overlays (mapped vs. unmapped addresses),
  4365. so that all callers of this function may benefit.
  4366. * m32r-tdep.c (m32r_skip_prologue): adjust indentation.
  4367. Mon Jun 8 16:08:10 1998 Ron Unrau <runrau@cygnus.com>
  4368. * objfiles.c (add_to_objfile_sections): All targets to define
  4369. TARGET_KEEP_SECTION to permit them to retain bfd sections that
  4370. GDB would otherwise have discarded.
  4371. Fri Jun 5 13:56:19 1998 Doug Evans <devans@canuck.cygnus.com>
  4372. * dbxread.c (read_dbx_symtab): Don't lower texthigh for last psymtab.
  4373. Thu Jun 4 18:35:04 1998 Stan Shebs <shebs@andros.cygnus.com>
  4374. * remote.c (init_extended_remote_ops): Make extended_remote_ops
  4375. by copying from remote_ops, move it and init_remote_ops to
  4376. usual place at end of file, remove "void" from arg lists.
  4377. Thu Jun 4 17:51:06 1998 Mark Alexander <marka@cygnus.com>
  4378. * sparc-tdep.c (sparc_fix_call_dummy): Byte-swap the call dummy
  4379. on bi-endian machines.
  4380. (sparc_extract_return_value): Handle values smaller than int on
  4381. machines with little-endian data.
  4382. (sparc_target_architecture_hook): Set bi_endian flag.
  4383. Thu Jun 4 12:14:48 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
  4384. * printcmd.c (disassemble_command): Fix off-by-one error for
  4385. disassembling functions in unmapped overlay sections.
  4386. Thu Jun 4 10:15:03 1998 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
  4387. * remote.c: merged.
  4388. - Jim Blandy <jimb@zwingli.cygnus.com>
  4389. (print_packet, remote_packet_command): New functions.
  4390. (_initialize_remote): Register the remote-packet command.
  4391. - David Taylor <taylor@texas.cygnus.com>
  4392. (_initialize_remote): remote-compare is now
  4393. compare-sections.
  4394. - Elena Zannoni <ezannoni@kwikemart.cygnus.com>
  4395. (remote_compare_command): added warning, issued in case
  4396. of mismatch only.
  4397. Thu Jun 4 08:25:38 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
  4398. * remote.c (remote_compare_command): New function, new command.
  4399. Compare object file binary image with corresponding memory on
  4400. remote target. Report differences.
  4401. Tue Jun 2 19:05:04 1998 Mark Alexander <marka@cygnus.com>
  4402. * sparc-tdep.c (sparc_target_architecture_hook): Set target
  4403. byte order only when it's selectable.
  4404. Tue Jun 2 02:01:56 1998 Mark Alexander <marka@cygnus.com>
  4405. * sparc-tdep.c (sparc_target_architecture_hook): New function to
  4406. set endianness based on machine type.
  4407. (_initialize_sparc_tdep): Initialize target_architecture_hook.
  4408. (sparc_print_register_hook): Print PSR and FPSR in fancy format
  4409. on 32-bit machines.
  4410. * config/sparc/tm-sparc.h (PRINT_REGISTER_HOOK): Redefine to
  4411. call sparc_print_register_hook instead of using inline code.
  4412. * config/sparc/tm-sp64.h (PRINT_REGISTER_HOOK): Remove.
  4413. Thu May 28 17:19:14 1998 Keith Seitz <keiths@cygnus.com>
  4414. * main.c (main): Check for NULL from getenv on CYGWIN32.
  4415. Thu May 28 09:41:44 1998 Nick Clifton <nickc@cygnus.com>
  4416. * monitor.c (monitor_vsprintf): Handle %%. Patch courtesy of
  4417. Felix Lee (flee@cygnus.com)
  4418. Thu May 28 00:27:35 1998 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
  4419. * mips-tdep.c (mips_push_dummy_frame): Fix calculation of
  4420. PROC_REG_OFFSET and PROC_FREG_OFFSET.
  4421. Mon Apr 27 14:37:49 1998 Andrew Cagney <cagney@b1.cygnus.com>
  4422. * config/v850/tm-v850.h (REGISTER_BYTE): FP_REGNUM and
  4423. FP_RAW_REGNUM use the same register location.
  4424. * v850-tdep.c (v850_scan_prologue): Use FP_RAW_REGNUM instead of
  4425. FP_REGNUM.
  4426. (v850_frame_chain): Ditto.
  4427. * config/v850/tm-v850.h (REGISTER_NAMES): Add "fp".
  4428. (NUM_REGS): Update.
  4429. (FP_REGNUM): Update.
  4430. (FP_RAW_REGNUM): Define.
  4431. Wed May 27 14:22:31 1998 Keith Seitz <keiths@cygnus.com>
  4432. * main.c (main): Convert the path returned from getenv to a posix
  4433. path on cygwin32 hosts.
  4434. Mon May 25 13:31:27 1998 Keith Seitz <keiths@cygnus.com>
  4435. * remote.c (remote_open_1): If an error occurs starting the remote,
  4436. pop the target AND return.
  4437. Sat May 23 02:23:09 1998 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
  4438. * dwarf2read.c (read_subroutine_type): Set TYPE_FLAG_PROTOTYPED
  4439. on C++ functions.
  4440. * valops.c (value_arg_coerce): Add new argument to indicate whether
  4441. the function has a prototype, handle integer and float promotions
  4442. accordingly.
  4443. (call_function_by_hand): Always call value_arg_coerce, pass down
  4444. prototype information.
  4445. Fri May 22 10:56:36 1998 John Metzler <jmetzler@cygnus.com>
  4446. * remote.c (_initialize_remote): Typo extended__remote
  4447. Thu May 21 13:14:25 1998 John Metzler <jmetzler@cygnus.com>
  4448. * gnu-nat.c (init_gnu_ops): Initialization of target ops by assignment.
  4449. (_initialize_gnu_nat): Call new init
  4450. * mac-nat.c (init_child_ops): Ditto.
  4451. (_initialize_mac_nat): Ditto.
  4452. * monitor.c (init_base_monitor_ops): Ditto.
  4453. (_initialize_remote_monitors): Ditto.
  4454. * ppc-bdm.c (init_bdm_ppc_ops): Ditto.
  4455. (_initialize_bdm_ppc): Ditto.
  4456. * remote-adapt.c (init_adapt_ops): Ditto.
  4457. (_initialize_remote_adapt): Ditto.
  4458. * remote-array.c (init_array_ops): Ditto.
  4459. (_initialize_array): Ditto.
  4460. * remote-bug (init_bug_ops): Ditto.
  4461. (_initialize_remote_bug): Ditto.
  4462. * remote-e7000.c (init_e7000_ops): Ditto.
  4463. (_initialize_remote_e7000): Ditto.
  4464. * remote-eb.c (init_eb_ops): Ditto.
  4465. (_initialize_remote_eb): Ditto.
  4466. * remote-es.c (init_es1800_ops): Ditto.
  4467. (init_es1800_child_ops): Ditto.
  4468. (_initialize_es1800): Ditto.
  4469. * remote-hms.c (init_hms_ops): Ditto.
  4470. (_initialize_remote_hms): Ditto.
  4471. * remote-mm.c (init_mm_ops): Ditto.
  4472. (_initialize_remote_mm): Ditto.
  4473. * remote-nindy.c (init_nindy_ops): Ditto.
  4474. (_initialize_nindy): Ditto.
  4475. * remote_nrom.c (init_nrom_ops): Ditto.
  4476. (_initialize_remote_nrom): Ditto.
  4477. * remote-os9k (init_rombug_ops): Ditto.
  4478. (_initialize_remote_os9k): Ditto.
  4479. * remote-rdi.c (init_rdi_ops): Ditto.
  4480. (_initialize_remote_rdi): Ditto.
  4481. * remote-rdp.c (init_remote_rdp_ops): Ditto.
  4482. (_initialize_remote_rdp): Ditto.
  4483. * remote-sds.c (init_sds_ops): Ditto.
  4484. (_initialize_remote_sds): Ditto.
  4485. * remote-sim.c (init_gdbsim_ops): Ditto.
  4486. (_initialize_remote_sim): Ditto.
  4487. * remote-st.c (init_st2000_ops): Ditto.
  4488. (_initialize_remote_st2000): Ditto.
  4489. * remote-udi.c (init_udi_ops): Ditto.
  4490. (_initialize_remote_udi): Ditto.
  4491. * remote-vx.c (init_vx_ops): Ditto.
  4492. (init_vx_run_ops): Ditto.
  4493. (_initialize_vx): Ditto.
  4494. * remote.c (init_remote_ops): Ditto.
  4495. (init_extended_remote_ops): Ditto.
  4496. (_initialize_remote): Ditto.
  4497. * sparcl-tdep.c (init_sparclite_ops): Ditto.
  4498. (_initialize_sparcl_tdep): Ditto.
  4499. * v850ice.c (init_850ice_ops): Ditto.
  4500. (_initialize_v850ice): Ditto.
  4501. * win32-nat.c (init_child_ops): Ditto.
  4502. (_initialize_inftarg): Ditto.
  4503. 1998-05-21 Jim Blandy <jimb@zwingli.cygnus.com>
  4504. * ax-gdb.c (const_var_ref): Don't handle function names. I don't
  4505. want to implement all the "usual unary conversion" rules for
  4506. constants.
  4507. (gen_usual_unary): Turn "function" values into "pointer to
  4508. function" values, in accordance with ANSI.
  4509. (gen_deref): Don't do the usual unary conversions here. Let the
  4510. caller do it. Note that dereferencing a function pointer yields
  4511. a function designator, which we call an rvalue, not an lvalue.
  4512. (gen_address_of): Handle functions specially.
  4513. (gen_struct_ref): Perform the usual unary conversions before
  4514. calling gen_deref.
  4515. (gen_expr): In case for the prefix '*' operator, call
  4516. gen_usual_unary manually.
  4517. Wed May 20 15:29:41 1998 Gavin Koch <gavin@cygnus.com>
  4518. * mips/tm-tx39.h (MIPS_DEFAULT_FPU_TYPE): Defined as MIPS_FPU_NONE.
  4519. * mips/tm-tx39l.h: Same.
  4520. Wed May 20 10:12:11 1998 John Metzler <jmetzler@cygnus.com>
  4521. * m32r-tdep.c (decode_prologue): Handle frames compiled with -Os.
  4522. Split out as separate function called by skip prologue and scan
  4523. prologue. new formula handles optimization in which the prologue
  4524. is interleaved with the body of the function. Also recognizes new
  4525. variations of prologue encoding. Use of frame pointer is
  4526. essential to debugging, -fno-omit-frame-pointer
  4527. (m32r_skip_prologue): Call decode prologue, ignore line info
  4528. (m32r_scan_prologue): Call decode prologue, ignore line info.
  4529. Tue May 19 17:23:54 1998 John Metzler <jmetzler@cygnus.com>
  4530. * w89k-rom.c (_initialize_w89k): Call new init function
  4531. (init_w89k_cmds): Convert to dynamic initialization of monitor_ops
  4532. data structure for forward compatability with additions to the
  4533. data structure.
  4534. * dbug-rom.c (_initialize_dbug_rom): ditto
  4535. (init_dbug_cmds): ditto
  4536. * m32r-rom.c (_initialize_m32r_rom): ditto
  4537. (init_m32r_cmds): ditto
  4538. Tue May 19 14:54:11 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
  4539. * tracepoint.c (memrange_cmp): use const void * args to avoid
  4540. ANSI compiler warnings.
  4541. 1998-05-19 Jim Blandy <jimb@zwingli.cygnus.com>
  4542. * ax-gdb.c (gen_fetch, gen_var_ref, gen_deref, find_field,
  4543. gen_bitfield_ref, gen_expr): Call error, not abort.
  4544. * ax-general.c (read_const, generic_ext, ax_trace_quick,
  4545. ax_label, ax_const_d, ax_reg, ax_print): Same.
  4546. * tracepoint.c: Remove the $(...) syntax for memranges.
  4547. (validate_actionline, encode_actions, trace_dump_command): Remove
  4548. clauses for the $(...) syntax.
  4549. (parse_and_eval_memrange): Function deleted.
  4550. (_initialize_tracepoint): Update function description.
  4551. * ax-gdb.c (_initialize_ax_gdb): Make the "agent" command a
  4552. subcommand of "maintenance", as it should have been from the
  4553. beginning. #include "gdbcmd.h", to get the declaration for
  4554. maintenancelist.
  4555. * Makefile.in: Document that dependency.
  4556. Tue May 19 12:00:58 1998 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
  4557. * tracepoint.c (get_tracepoint_by_number): new function, to access
  4558. traceframe_number for use of the GUI.
  4559. * tracepoint.h: added prototype for get_traceframe_number.
  4560. Mon May 18 13:34:27 1998 Keith Seitz <keiths@cygnus.com>
  4561. * dbxread.c (process_one_symbol): If block addresses are relative to
  4562. function start addresses, reset function_start_address whenever a new
  4563. source file is seen.
  4564. Mon May 18 13:04:27 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
  4565. * tracepoint.c (get_tracepoint_by_number): make sure to advance
  4566. arg pointer even if we fail to parse a useful number. Otherwise,
  4567. since this function is called in a loop, it may loop forever!
  4568. Also change strtol call to allow arbitrary radix.
  4569. (map_args_over_tracepoints (and other places)): add QUIT; call
  4570. to loop, to allow breakout using control-C. Not all loops were
  4571. analyzed to make sure they could terminate cleanly, but even
  4572. terminating with a messed-up tracepoint list would be better
  4573. than not terminating at all!
  4574. (tdump_command): check to see if we're connected to a trace-
  4575. capable target (currently only "remote") before doing anything
  4576. else.
  4577. Sat May 16 22:21:48 1998 Frank Ch. Eigler <fche@cygnus.com>
  4578. * config/d30v/tm-d30v.h (INIT_FRAME_PC_FIRST): Fill in PC into
  4579. frame struct before extracting saved register offsets.
  4580. Fri May 15 22:47:45 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
  4581. * tracepoint.c (encode_actions): fix typo in printf format string.
  4582. 1998-05-15 Jim Blandy <jimb@zwingli.cygnus.com>
  4583. Implement a few more tracing operators: ^ | & ~ !
  4584. * ax-gdb.c (gen_integral_promotions, gen_logical_not,
  4585. gen_complement): New functions.
  4586. (gen_binop): New argument MAY_CARRY, indicating whether we need to
  4587. correct the upper bits of the value after performing the
  4588. operation. Callers changed.
  4589. (gen_expr): Handle BINOP_BITWISE_AND, BINOP_BITWISE_IOR, and
  4590. BINOP_BITWISE_XOR here as well, by calling gen_binop. Handle
  4591. UNOP_LOGICAL_NOT, UNOP_COMPLEMENT.
  4592. * ax-gdb.c (gen_conversion): Reworked to avoid some unnecessary
  4593. sign extension.
  4594. * ax-gdb.c (gen_usual_arithmetic): Renamed from gen_usual_binary,
  4595. to match the ANSI C standard better. Callers changed.
  4596. * ax-gdb.c (gen_traced_pop): Add prototyped declaration.
  4597. Fri May 15 18:18:38 1998 David Taylor <taylor@texas.cygnus.com>
  4598. * tracepoint.c (stringify_collections_list): return a collection
  4599. of strings rather than a single string.
  4600. (free_actions_list): new function.
  4601. (encode_actions): process collection of strings returned by
  4602. stringify_collections_list.
  4603. 1998-05-15 Jim Blandy <jimb@zwingli.cygnus.com>
  4604. * ax-gdb.c (gen_traced_pop): New function.
  4605. (gen_expr): Call it for comma operator.
  4606. (gen_trace_for_expr): Call it, instead of writing it out.
  4607. Add facilities for sending arbitrary packets to the remote agent.
  4608. There are a bunch of improvements to make (make it generic; handle
  4609. 'O' replies properly), but I just want to get this onto the branch.
  4610. * remote.c (print_packet, remote_packet_command): New functions.
  4611. (_initialize_remote): Register the remote-packet command.
  4612. Thu May 14 17:52:31 1998 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
  4613. * tracepoint.c: move actionline_type definition to tracepoint.h.
  4614. (validate_actionline): make non static.
  4615. * tracepoint.h: move actioline_type definition from tracepoint.c.
  4616. (validate_actionline) moved prototype from tracepoint.c.
  4617. Thu May 14 11:49:18 1998 David Taylor <taylor@texas.cygnus.com>
  4618. * tracepoint.c (validate_actionline): add additional error
  4619. checking, remove some dead code.
  4620. (encode_actions): additional cleanups.
  4621. (trace_find_command): remove some dead code.
  4622. (trace_find_pc_command): ditto.
  4623. (trace_find_tracepoint_command): ditto.
  4624. (trace_find_line_command): ditto.
  4625. (trace_find_range_command): ditto.
  4626. (trace_find_outside_command): ditto.
  4627. Thu May 14 5:51:00 1998 Ron Unrau <runrau@cygnus.com>
  4628. * symtab.c (decode_line_1): set section for "break *<addr>"
  4629. Wed May 13 20:58:02 1998 Mark Alexander <marka@cygnus.com>
  4630. * corefile.c (reopen_exec_file): Reopen the exec file if
  4631. it has changed.
  4632. Wed May 13 15:22:02 1998 Mark Alexander <marka@cygnus.com>
  4633. * sparc-tdep.c (fetch_instruction): New function.
  4634. (single_step, sparc_init_extra_frame_info, examine_prologue):
  4635. Use fetch_instruction instead of read_memory_integer
  4636. to ensure that instructions are always read as big-endian.
  4637. Wed May 13 14:42:21 1998 Ian Lance Taylor <ian@cygnus.com>
  4638. * configure.in: Add AC_FUNC_ALLOCA.
  4639. * defs.h: Check HAVE_ALLOCA_H rather than sparc. Add _AIX pragma
  4640. alloca.
  4641. * configure: Rebuild.
  4642. * Makefile.in (jv-lang.o, jv-typeprint.o, jv-valprint.o): New
  4643. targets.
  4644. Wed May 13 11:19:08 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
  4645. * tracepoint.c (trace_command): Remove old diagnostic code that was
  4646. preventing tracepoints from being defined with a full-path filename.
  4647. Tue May 12 13:17:35 1998 Frank Ch. Eigler <fche@cygnus.com>
  4648. * stabsread.c (read_one_struct_field): Check for typedef in type
  4649. tree before clearing bitfield information.
  4650. 1998-05-11 Jim Blandy <jimb@zwingli.cygnus.com>
  4651. * ax-gdb.c (gen_binop): New function, based on gen_mul, to replace
  4652. gen_mul and gen_div, and handle `%' op as well. Correctly tests
  4653. type of arguments.
  4654. (gen_expr): Factor out common code in binary arithmetic operators.
  4655. Add support for `%'.
  4656. (gen_mul, gen_div): Removed.
  4657. Thu May 7 14:49:38 1998 Bob Manson <manson@charmed.cygnus.com>
  4658. * config/sparc/tm-sp64.h (CALL_DUMMY): Store and retrieve
  4659. %o0-%o5 as 64-bit values; compensate for stack bias.
  4660. (USE_STRUCT_CONVENTION): We only pass pointers to structs
  4661. if they're larger than 32 bytes.
  4662. (REG_STRUCT_HAS_ADDR): Ditto.
  4663. * sparc-tdep.c (sparc_init_extra_frame_info): Use read_sp()
  4664. instead of read_register. If the target is a sparc64 and the frame
  4665. pointer is odd, compensate for the stack bias.
  4666. (get_saved_register): Use read_sp().
  4667. (DUMMY_STACK_REG_BUF_SIZE): Use FP_REGISTER_BYTES.
  4668. (sparc_push_dummy_frame): Use read_sp()/write_sp(). On sparc64,
  4669. save the PC, NPC, CCR, FSR, FPRS, Y and ASI registers.
  4670. (sparc_frame_find_saved_regs): Use read_sp(). Read the PC, NPC,
  4671. CCR, FSR, FPRS, Y and ASI registers from the frame, if it's a
  4672. dummy frame.
  4673. (sparc_pop_frame): Use write_sp(). If the target is a sparc64 and
  4674. the FP is odd, compensate for stack bias.
  4675. (sparc_store_return_value): Right-justify the return value before
  4676. writing it to %o0.
  4677. (sparc_fix_call_dummy): Don't NOP out part of the call dummy on
  4678. sparc64.
  4679. (sparc64_read_sp, sparc64_read_fp, sparc64_write_sp,
  4680. sparc64_write_fp, sp64_push_arguments,
  4681. sparc64_extract_return_value): New functions to support the
  4682. sparc64 ABI.
  4683. * dwarfread.c (handle_producer): Set processing_gcc_compilation to
  4684. the right version number.
  4685. * dwarf2read.c (read_file_scope): Assume we're processing
  4686. GCC2 output.
  4687. Wed May 6 16:34:03 1998 Jeffrey A Law (law@cygnus.com)
  4688. * somsolib.c: Include gdb_stat.h.
  4689. Mon May 4 18:34:01 1998 David Taylor <taylor@texas.cygnus.com>
  4690. * ax-gdb.c (gen_mul): new function; (gen_div): new function;
  4691. (gen_expr): add support for * and / operators, call gen_mul and
  4692. gen_div as appropriate.
  4693. Mon May 4 16:24:22 1998 Mark Alexander <marka@cygnus.com>
  4694. * defs.h (make_run_cleanup): Declare.
  4695. * solib.c (find_solib): Pass correct number of arguments to
  4696. make_run_cleanup.
  4697. Mon May 4 07:08:25 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
  4698. * tracepoint.c (trace_actions_command): actions command must set
  4699. step_count to zero (in case previous actions have set it but the
  4700. new set does not).
  4701. Sat May 2 09:35:07 1998 Stu Grossman <grossman@babylon-5.cygnus.com>
  4702. * ocd.h: Add new flags, function codes, and processor types to
  4703. support new Wiggler capabilities.
  4704. * (ocd_write_bytes_size): New function to allow atomic writes of
  4705. memory in sizes larger than a byte.
  4706. * ser-unix.c (baudtab): Add 57600, 115200, 230400, and 460800 baud.
  4707. Fri May 1 19:51:32 1998 Frank Ch. Eigler <fche@cygnus.com>
  4708. * stabsread.c (read_one_struct_field): Do not override supplied
  4709. bitfield size for a range type value.
  4710. * gdbtypes.c (create_range_type): For a range with positive
  4711. lower limit, declare range type as unsigned.
  4712. Fri May 1 10:58:34 1998 John Metzler <jmetzler@cygnus.com>
  4713. * monitor.c: Turn off debug
  4714. Fri May 1 09:29:56 1998 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
  4715. * breakpoint.c (delete_command): Skip internal breakpoints when
  4716. all breakpoints are requested.
  4717. * stabsread.c (define_symbol): Record parameter types from Sunpro
  4718. function stabs in the TYPE_FIELDS of the function type.
  4719. Thu Apr 30 15:59:54 1998 Jason Molenda (crash@bugshack.cygnus.com)
  4720. * Makefile.in (config-check-targets, config-check-hosts): Removed.
  4721. 1998-04-30 Paul Eggert <eggert@twinsun.com>
  4722. * Makefile.in (maintainer-clean):
  4723. Don't get ahead of yourself and delete Makefile
  4724. before running `make'.
  4725. (local-maintainer-clean, do-maintainer-clean): New rules.
  4726. Wed Apr 29 14:02:59 1998 David Taylor <taylor@texas.cygnus.com>
  4727. * ax-gdb.c (gen_add): when adding a pointer and an int, use
  4728. the size of the pointer, not the int (typo) to decide how
  4729. to extend the result.
  4730. Wed Apr 29 10:20:40 1998 John Metzler <jmetzler@cygnus.com>
  4731. * nec4102rom.c: New file implements ROM monitor adapter for
  4732. nec-vr4102 board. This board hosts the vr4111 chip. This file
  4733. required extensions to the monitor_ops structure, hooks for wait
  4734. filter, new flags. This version does not support more than one
  4735. breakpoint and resuming after a breakpoint in 16 bit mode is
  4736. completely disfunctional.
  4737. * monitor.h: Defined additional hooks for dmpregs, configure_hooks
  4738. and wait_filter. These additions require that all ROM monitor
  4739. interfaces be recoded to initialize monitor ops using assignments
  4740. rather than static structure initialization. Added new bits to
  4741. flags MO_EXACT_DUMPADDR, MO_HAS_BLOCKWRITES.
  4742. * monitor.c (RDEBUG): Conditional tracing throughout the file.
  4743. (fromhex): Now recognized upper cse hex digits
  4744. (monitor_printf_noecho):
  4745. (monitor_readchar): Tracing interferes with input timing.
  4746. (monitor_open): Register different memory write functions with
  4747. dcache_init if MO_HAS_BLOCKWRITES.
  4748. (flush_monior_dcache): Added as an additional utilty.
  4749. (monitor-resume): Call continue hook if one has been supplied.
  4750. (monitor_wait_filter): New function Factored out of monitor wait
  4751. and used if alternate wait-filter has not been provided.
  4752. (monitor_wait): call alternate wait filter if provided. Call
  4753. monitor_dump_regs, a new function factored out from inline code.
  4754. (monitor_dump_block): A new function used as a utility when
  4755. monitors must dump several blocks of registers using different
  4756. commands.
  4757. (monitor_dump_regs): Call alternate function if provided. Uses new
  4758. hook in monitor.h.
  4759. (monitor_write_memory): Engage previouly added hook
  4760. MO_FILL_USES_ADDR.
  4761. (monitor_write_even_block): new function supports writing long
  4762. blocks of 4byte words.
  4763. (longlongendswap): new internal function
  4764. (monitor_write_memory_longlongs): new function writes large blocks
  4765. using command to enter a long long.
  4766. (monitor_write-memory_block): new Function figures out which block
  4767. mod to use.
  4768. (monitor_read_memory): Can now handle dump formats in which the bytes
  4769. preceeding the requested data is not printed.
  4770. Tue Apr 28 19:41:33 1998 Tom Tromey <tromey@cygnus.com>
  4771. * tracepoint.c (memrange_cmp): Another typo fix; `memrbnge' ->
  4772. `memrange'.
  4773. * tracepoint.c (memrange_cmp): Fixed typo in function intro.
  4774. Tue Apr 28 17:41:20 1998 Philippe De Muyter <phdm@macqel.be>
  4775. * symfile.c (overlay_auto_command): Add forgotten parameter
  4776. definitions.
  4777. (overlay_manual_command, overlay_off_command): Likewise.
  4778. (overlay_load_command): Likewise.
  4779. * tracepoint.c (memrange_cmp): Parameters have type void *, not
  4780. struct memrange *.
  4781. Tue Apr 28 11:08:25 1998 John Metzler <jmetzler@cygnus.com>
  4782. * rom68k-rom.c (_initialize_rom68k): Fix unresolved init_rom_68kcmds.
  4783. Mon Apr 27 14:32:21 1998 Mark Alexander <marka@cygnus.com>
  4784. * config/sparc/tm-sparc.h (CALL_DUMMY): Shorten it drastically,
  4785. make it work on the simulator.
  4786. (FIX_CALL_DUMMY): Convert to function call instead of inline code.
  4787. (sparc_fix_call_dummy): Declare.
  4788. * sparc-tdep.c (sparc_fix_call_dummy): New function, taken from
  4789. old FIX_CALL_DUMMY macro, with additional fixes for simulator.
  4790. (sparc_push_dummy_frame): Set registers differently on simulator
  4791. to prevent corrupted register window save areas.
  4792. Mon Apr 27 13:46:40 1998 John Metzler <jmetzler@cygnus.com>
  4793. * rom68k-rom.c (_initialize_rom68k, init_rom68k_cmds):
  4794. Convert all static initializations of monitor ops structures to
  4795. executable initializations in order that additions to the data
  4796. structure definition can me made without repeating this editing
  4797. exercise.
  4798. * abug-rom.c (_initialize_abug_rom, init_abug-cmds): Ditto.
  4799. * cpu32bug-rom.c (_initialize_cpu32bug_rom, init_cpu32bug_cmds): Ditto.
  4800. * mon960-rom.c (initialize_mon960, init_mon960_cmds): Ditto.
  4801. * op50-rom.c (initialize_op50n, init_op50n_cmds): Ditto.
  4802. * ppcbug-rom.c (_initialize_ppcbug_rom, init_ppc_cmds): Ditto.
  4803. * sh3-rom.c (_initialize_sh3_rom, init_sh3_cmds): Ditto.
  4804. * sparclet-rom.c (_initialize_sparclet, init_sparclet_cmds): Ditto.
  4805. * remote-est.c (_initialize_est, init_est_cmds): Ditto.
  4806. * remote-hms.c ( _initialize_remote_hms, init_hms_cmds): Ditto.
  4807. Mon Apr 27 10:43:04 1998 Jason Molenda (crash@bugshack.cygnus.com)
  4808. * gdb_string.h (strdup): Don't specify arguments in prototype.
  4809. Sun Apr 26 07:57:21 1998 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
  4810. * rs6000-nat.c (vmap_ldinfo): Issue warning instead of error if
  4811. fstat on ldinfo_fd fails. Use objfile->obfd instead of vp->bfd
  4812. to check for reference to the same file.
  4813. * target.c (target_read_string): Handle string transfers at the
  4814. end of a memory section gracefully.
  4815. Fri Apr 24 17:18:56 1998 Geoffrey Noer <noer@cygnus.com>
  4816. * Makefile.in: enable EXEEXT setting
  4817. Fri Apr 24 11:53:49 1998 David Taylor <taylor@texas.cygnus.com>
  4818. * tracepoint.c (add_local_symbols): change type of type from
  4819. char to int so that type shows up as 'A' or 'L' not 0.
  4820. Thu Apr 23 16:37:20 1998 Jason Molenda (crash@bugshack.cygnus.com)
  4821. * README: Minor changes for 4.17 release.
  4822. Thu Apr 23 15:44:39 1998 Per Bothner <bothner@cygnus.com>
  4823. * symfile.c (deduce_language_from_filename): .class implies java.
  4824. Thu Apr 23 12:52:21 1998 Philippe De Muyter <phdm@macqel.be>
  4825. * configure.in (strerror): Check if function must be declared.
  4826. * acconfig.h (NEED_DECLARATION_STRERROR): New define slot.
  4827. * gdb_string.h (strerror): Function declaration issued if
  4828. NEED_DECLARATION_STRERROR.
  4829. * configure, config.in: Files regenerated.
  4830. Thu Apr 23 12:27:43 1998 Philippe De Muyter <phdm@macqel.be>
  4831. * symfile.c (simple_overlay_update_1): Do not prefix array address
  4832. by `&'.
  4833. * bcache.h (BCACHE_DATA_ALIGNMENT): Ditto.
  4834. * tracepoint.c (encode_actions): Ditto.
  4835. * language.c, complaints.c, utils.c (varargs.h): Do not include that
  4836. file here, it is already included indirectly by defs.h.
  4837. * dbxread.c (dbx_symfile_init, process_one_symbol): Cast xmalloc return
  4838. value to the appropriate pointer type.
  4839. * utils.c (floatformat_from_doublest): Ditto.
  4840. * tracepoint.c (read_actions, _initialize_tracepoint): Ditto.
  4841. (add_memrange): Likewise with xrealloc return value.
  4842. * stabsread.c (ref_add): Ditto.
  4843. * coffread.c (coff_symfile_init): Likewise for xmmalloc return value.
  4844. * elfread.c (elf_symfile_read): Ditto.
  4845. * os9kread.c (os9k_symfile_init): Ditto.
  4846. Thu Apr 23 00:32:08 1998 Tom Tromey <tromey@cygnus.com>
  4847. * config.in: Rebuilt.
  4848. * acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_STPCPY, HAVE_GETTEXT,
  4849. HAVE_LC_MESSAGES): Define.
  4850. Wed Apr 22 15:38:56 1998 Tom Tromey <tromey@cygnus.com>
  4851. * configure: Rebuilt.
  4852. * configure.in: Call CY_GNU_GETTEXT.
  4853. * Makefile.in (top_builddir): New macro.
  4854. (INTL): Define to @INTLLIBS@.
  4855. (INTL_DEPS): New macro.
  4856. (CDEPS): Reference INTL_DEPS, not INTL.
  4857. Wed Apr 22 12:58:23 1998 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
  4858. Handle missing shared libraries during the examination of a core
  4859. dump gracefully.
  4860. * solib.c (find_solib): Use catch_errors around call to
  4861. solib_map_sections. Use warning instead of error if reading of
  4862. the shared library name fails.
  4863. (solib_map_sections): Change return and argument types to make
  4864. it callable from catch_errors.
  4865. (symbol_add_stub): Avoid GDB core dump if solib->abfd is NULL.
  4866. * irix5-nat.c, osfsolib.c (xfer_link_map_member, solib_map_sections,
  4867. symbol_add_stub): Ditto.
  4868. Wed Apr 22 14:34:49 1998 Michael Meissner <meissner@cygnus.com>
  4869. * Makefile.in (INTL*): Add support to link in the intl library,
  4870. and to add -I options to its source and object directories.
  4871. (INTERNAL_CFLAGS): Ditto.
  4872. (C{LIBS,DEPS}): Ditto.
  4873. Tue Apr 21 11:20:54 1998 Frank Ch. Eigler <fche@cygnus.com>
  4874. * mips-tdep.c (gdb_print_insn_mips): Disassemble MIPS instructions
  4875. with subtarget-specific `mach', rather than fixed default.
  4876. * config/mips/tm-mips.h (TM_PRINT_INSN_MACH): New macro, default
  4877. disassembly `mach'.
  4878. Mon Apr 20 15:35:03 1998 Philippe De Muyter <phdm@macqel.be>
  4879. * coffread.c (decode_base_type): Treat a long field with size greater
  4880. than TARGET_LONG_BIT as long long.
  4881. * values.c (value_from_longest): Print code value in error message.
  4882. Mon Apr 20 15:32:21 1998 Mark Kettenis <kettenis@phys.uva.nl>
  4883. * gdb_string.h (strdup): Declare only if not defined as a
  4884. macro.
  4885. Mon Apr 20 14:18:45 1998 J. Kean Johnston <jkj@sco.com>
  4886. * procfs.c: Added replacement macros for LWP stuff. Fixed support
  4887. for UnixWare / SVR4.2MP targets and any targets which use
  4888. multi-file /proc entries. Fixed support for hardware watchpoints.
  4889. * solib.c: SCO needs some of the same code as SunOS. Change
  4890. preprocessor conditionals.
  4891. * config/i386/i386sco5.mt: New file.
  4892. * config/i386/tm-i386sco5.h: New file.
  4893. * config/i386/i386sco5.mh (NATDEPFILES): add i386v-nat.o.
  4894. * config/i386/nm-i386v42mp.h
  4895. (TARGET_HAS_HARDWARE_WATCHPOINTS): define.
  4896. Add other macros for hardware assisted watchpoints.
  4897. * config/i386/nm-i386sco5.h: Correct attributions.
  4898. (TARGET_HAS_HARDWARE_WATCHPOINTS): define.
  4899. * config/i386/nm-linux.h (target_remote_watchpoint): Pass
  4900. 'type' through to i386_insert_watchpoint.
  4901. Mon Apr 20 14:12:30 1998 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
  4902. * infrun.c (wait_for_inferior): Don't add signalled processes
  4903. as new threads.
  4904. * procfs.c (wait_fd): Note if LWP has exited.
  4905. (procfs_wait): use GETPID to get process ID.
  4906. Sat Apr 18 15:21:04 1998 Stan Cox <scox@cygnus.com>
  4907. * configure.tgt: Added sparc86x support.
  4908. Thu Apr 16 13:13:24 1998 Jason Molenda (crash@bugshack.cygnus.com)
  4909. * rdi-share/etherdrv.c (EthernetWrite): Use strerror to get
  4910. error string if in an ANSI C-ish environment.
  4911. Wed Apr 15 18:59:48 1998 Mark Alexander <marka@cygnus.com>
  4912. * sparc-tdep.c (SPARC_HAS_FPU): Define.
  4913. (sparc_extract_return_value): New function, required to handle
  4914. machines without floating point.
  4915. (sparc_store_return_value): Ditto.
  4916. * config/sparc/tm-sparc.h (EXTRACT_RETURN_VALUE): Call
  4917. sparc_extract_return_value instead of using inline code.
  4918. (sparc_extract_return_value): Declare.
  4919. (STORE_RETURN_VALUE): Call sparc_store_return_value instead
  4920. of using inline code.
  4921. (sparc_store_return_value): Declare.
  4922. Wed Apr 15 12:19:42 1998 Martin M. Hunt <hunt@cygnus.com>
  4923. * solib.c (enable_break): Only call warning once
  4924. instead of three times.
  4925. Tue Apr 14 16:52:59 1998 Mark Alexander <marka@cygnus.com>
  4926. * sparc-tdep.c (sparc_extract_struct_value_address): Make it
  4927. work correctly on little-endian hosts.
  4928. (sparc_push_arguments): New function.
  4929. (gdb_print_insn_sparc): New function.
  4930. (_initialize_sparc_tdep): Make gdb_print_insn_sparc the default
  4931. disassembler, so that SPARClite-specific instructions will
  4932. be recognized.
  4933. * sparcl-tdep.c (readchar): Print debugging information.
  4934. (debug_serial_write): New function, a replacement for SERIAL_WRITE
  4935. that prints debugging information.
  4936. * config/sparc/tm-sparc.h (PUSH_ARGUMENTS): Define.
  4937. (sparc_push_arguments): Declare.
  4938. Tue Apr 14 15:43:49 1998 John Metzler <jmetzler@cygnus.com>
  4939. * gdbcfgxref (xref_menu): Call new regex and wild card searches
  4940. Now you can type in a specific triple like mips64-vr4300-elf or
  4941. somthing like mips*.h
  4942. (triple_search, wildcardsearch): The new functions
  4943. Mon Apr 13 16:28:07 1998 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
  4944. * utils.c (warning): added call to warning_hook
  4945. * source.c (find_source_lines): modified to call warning in case
  4946. of source vs. executable time stamp mismatch. Simplified object
  4947. file check. Initialized mtime to 0.
  4948. * defs.h: added warning_hook prototype
  4949. * top.c: added warning_hook prototype.
  4950. Mon Apr 13 09:54:08 1998 Keith Seitz <keiths@andros.cygnus.com>
  4951. * config/sparc/tm-sun4os4.h (IS_STATIC_TRANSFORM_NAME): Add missing
  4952. definition.
  4953. Fri Apr 10 22:36:28 1998 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
  4954. Update support for x86 Solaris 2.
  4955. * config/i386/tm-i386sol2.h, nm-i386sol2.h: New configuration
  4956. files for x86 Solaris 2.
  4957. * config/i386/i386sol2.mt, i386sol2.mh: Use them.
  4958. * config/sparc/tm-sun4sol2.h (PROCFS_GET_CARRY): New macro, extract
  4959. carry flag from a given regset.
  4960. (IS_STATIC_TRANSFORM_NAME): New macro, check if a symbol name
  4961. is a SunPro transformed name.
  4962. * i386-tdep.c (sunpro_static_transform_name): New function to
  4963. extract the source name from a SunPro transformed name.
  4964. * inferior.h (procfs_first_available, procfs_get_pid_fd):
  4965. Add prototypes.
  4966. * infrun.c (wait_for_inferior): Handle breakpoint hit in
  4967. signal handler without intervening stop in sigtramp.
  4968. * procfs.c (procfs_lwp_creation_handler): Use PROCFS_GET_CARRY
  4969. instead of direct access to the status register.
  4970. (procfs_get_pid_fd): New function, returns procfs fd for a given pid.
  4971. * sol-thread.c (ps_lgetLDT): New function, returns LDT for a given
  4972. lwpid.
  4973. (sol_find_new_threads): Handle failed libthread_db initialization
  4974. gracefully.
  4975. * stabsread.c (define_symbol): Use IS_STATIC_TRANSFORM_NAME
  4976. to check for a SunPro transformed symbol name.
  4977. Fri Apr 10 10:35:35 1998 John Metzler <jmetzler@cygnus.com>
  4978. * utils.c (fmthex): A formatting function for hexdumps
  4979. * mips-tdep.c (unpack_mips16): Fixed instruction decoding, lots of
  4980. bit pattern interpretations. mips_fetch_instruction does not work
  4981. for 16 bit instructions. Some confusion remains about sign
  4982. extension in backward branches.
  4983. (mips32_relative_offset): Sign extension
  4984. (mips32_next_pc): Major debugging, bit pattern interpretation
  4985. (print_unpack): debugging printf
  4986. (fetch_mips_16): new funtion, key on PC low bit, not symbol table
  4987. (mips16_next_16): Initial major debugging of this function. Lots
  4988. of bit pattern mistakes.
  4989. (mips_next_pc): key on low bit of PC, not symbol table.
  4990. * symfile.c (generic_load): Added a download verification which
  4991. reads back the loaded code. Download chunk size is now a defined
  4992. macro. Fixed a bug in which downloading slips into loading one
  4993. byte at a time. Lower level functions in monitor.c can load long
  4994. sequences of bytes and make use of these fixups. Referencing
  4995. bfd-start_address directly was incorrectly getting zero for start.
  4996. Thu Apr 9 19:20:32 1998 Ian Lance Taylor <ian@cygnus.com>
  4997. * mips-tdep.c (do_fp_register_row): Use alloca rather than arrays
  4998. with dynamic size.
  4999. Wed Apr 8 19:21:42 1998 Jason Molenda (crash@bugshack.cygnus.com)
  5000. * top.c (print_gdb_version): Print 1998 now.
  5001. Wed Apr 8 16:57:22 1998 Philippe De Muyter <phdm@macqel.be>
  5002. * source.c: Remove obsolete decl of strstr().
  5003. Wed Apr 8 16:47:33 1998 Jason Molenda (crash@bugshack.cygnus.com)
  5004. * solib.c (solib_create_inferior_hook): Remove Ulrich Drepper's
  5005. patch of March 23 1998.
  5006. * breakpoint.c (breakpoint_re_set_one): Remove Ulrich Drepper's
  5007. patch of March 23 1998.
  5008. Sat Apr 4 10:05:00 1998 Dawn Perchik <dawn@cygnus.com>
  5009. * mdebugread.c (parse_partial_symbols): If this is an .mdebug
  5010. section in an ELF file, override a symbol's ECOFF section with its
  5011. ELF section. Also, fix stabs continuation where a stabs string
  5012. continues for more than one continuation.
  5013. Mon Apr 6 09:17:48 1998 Andrew Cagney <cagney@b1.cygnus.com>
  5014. * mips-tdep.c (mips_push_arguments): Specify dimention of valbuf
  5015. using MAX_REGISTER_RAW_SIZE.
  5016. Sat Apr 4 10:05:00 1998 Dawn Perchik <dawn@cygnus.com>
  5017. * infrun.c: Fix prototype of signals_info to match static funtion.
  5018. Thu Apr 2 12:47:41 1998 Frank Ch. Eigler <fche@cygnus.com>
  5019. * sol-thread.c (sol_thread_store_registers): Save & restore new
  5020. value of single updated register to prevent accidental clobbering.
  5021. Wed Apr 1 22:01:09 1998 Mark Alexander <marka@cygnus.com>
  5022. * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE): Define.
  5023. * config/sparc/sparclite.mt: Link in the erc32 simulator.
  5024. Wed Apr 1 16:30:49 1998 Ian Dall <Ian.Dall@dsto.defence.gov.au>
  5025. * ns32k-tdep.c (flip_bytes, ns32k_localcount,
  5026. ns32k_get_enter_addr, sign_extend): Restore functions mysteriously
  5027. deleted.
  5028. * ns32knbsd-nat.c: New (?) file to support fetching and storing
  5029. registers on NetBSD hosts.
  5030. * nbsd.mh (NATDEPFILES): put ns32knbsd-nat.o instead of
  5031. ns32k-nat.o
  5032. * ns32km3-nat.c (reg_offset): Get order of floating point
  5033. registers correct. Add extra 32382 register offsets.
  5034. (REG_ADDRESS): define to point at correct part of thread
  5035. state. Use calls to "warning" instead of "message".
  5036. * tm-nbsd.h, tm-ns32km3.h (REGISTER_NAMES, NUM_REGS,
  5037. REGISTER_BYTES, REGISTER_BYTE): redefine allowing for 32382
  5038. fpu registers.
  5039. Wed Apr 1 13:43:07 1998 Philippe De Muyter <phdm@macqel.be>
  5040. * NEWS: m68k-motorola-sysv host support added.
  5041. * coffread.c (coff_start_symtab): Accept the filename as an argument,
  5042. set it here. Callers updated.
  5043. Wed Apr 1 23:13:23 1998 Andrew Cagney <cagney@b1.cygnus.com>
  5044. * config/mips/tm-mips.h (REGISTER_VIRTUAL_TYPE): Handle 32 bit SR,
  5045. FSR and FIR registers.
  5046. (REGISTER_VIRTUAL_SIZE): Compute using REGISTER_VIRTUAL_TYPE.
  5047. (REGISTER_RAW_SIZE): Define using REGISTER_VIRTUAL_SIZE.
  5048. * config/mips/tm-mips64.h: Ditto.
  5049. Tue Mar 31 21:30:39 1998 Nick Clifton <nickc@cygnus.com>
  5050. * arm-tdep.c (gdb_print_insn_arm): Attach a fake Thumb symbol
  5051. vector to the info structure when disassembling thumb
  5052. instructions.
  5053. * coffread.c (coff_symtab_read, read_one_sym,
  5054. process_coff_symbol): Support Thumb symbol types.
  5055. * dbxread.c (process_one_symbol): Call SMASH_TEXT_ADDRESS (if it
  5056. is defined) for function symbols.
  5057. Tue Mar 31 16:39:28 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
  5058. * tracepoint.c (get_tracepoint_by_number): change warning to note.
  5059. (delete_trace_command): suppress y/n query if no tracepoints, or
  5060. if not from_tty. (trace_pass_command): reject junk at end of args.
  5061. (read_actions): an action list consisting only of "end" is discarded.
  5062. (validate_actionline (for collect command)): an argument beginning
  5063. with a dollar_sign but not recognized as a special argument is
  5064. parsed like any other expression -- if it isn't a register name,
  5065. it's rejected. Also reject an empty argument to while-stepping.
  5066. (trace_find_command): reject a negative frame number argument.
  5067. (_initialize_tracepoint): set $traceframe initially to -1.
  5068. Mon Mar 30 16:42:12 1998 Jason Molenda (crash@bugshack.cygnus.com)
  5069. * rdi-share/Makefile.am, rdi-share/aclocal.m4,
  5070. rdi-share/configure: New files.
  5071. * rdi-share/configure.in: Rewritten to be an autoconf input file.
  5072. * rdi-share/Makefile.in, rdi-share/configure: Generated by
  5073. automake/autoconf.
  5074. * rdi-share/dbg_hif.h, etherdrv.c, hostchan.c: Use autoconf tests
  5075. to check environment.
  5076. Sun Mar 29 15:17:16 1998 Keith Seitz <keiths@onions.cygnus.com>
  5077. * tracepoint.c (trace_start_command): Set trace_running_p.
  5078. (trace_stop_command): Clear trace_running_p.
  5079. Sat Mar 28 15:19:48 1998 Stan Shebs <shebs@andros.cygnus.com>
  5080. * NEWS: Update for 4.17 release.
  5081. Fri Mar 27 10:15:50 1998 David Taylor <taylor@tito.cygnus.com>
  5082. * tracepoint.c (parse_and_eval_memrange): Fix memory leaks.
  5083. (encode_actions): Use the new gen_trace_for_expr function
  5084. instead of expr_to_address_and_size; collect registers when
  5085. using expressions. (clear_collection_list): Fix memory leak.
  5086. 1998-03-26 Jim Blandy <jimb@zwingli.cygnus.com>
  5087. * ax-gdb.h (gen_trace_for_expr): Add prototype.
  5088. Thu Mar 26 17:24:23 1998 David Taylor <taylor@texas.cygnus.com>
  5089. * tracepoint.c (validate_actionline): Fix memory leak.
  5090. (encode_actions): Fix memory leak.
  5091. Thu Mar 26 16:16:55 1998 David Taylor <taylor@tito.cygnus.com>
  5092. * tracepoint.c (trace_mention): New function.
  5093. (trace_command): Call it.
  5094. 1998-03-26 Jim Blandy <jimb@zwingli.cygnus.com>
  5095. * ax-general.c (ax_reqs): New function.
  5096. * ax.h (enum agent_flaws, struct agent_reqs): New types.
  5097. (agent_reqs): New extern prototype. Well, actually, this was
  5098. there before, due to a premature checkin.
  5099. (struct aop_map): Add new `data_size' member.
  5100. * ax-general.c (aop_map): Supply its value.
  5101. * ax-gdb.c (agent_command): Call ax_reqs, for testing.
  5102. * ax-general.c (ax_print): If we encounter an invalid or
  5103. incomplete opcode, don't abort; just print an error message.
  5104. * ax-gdb.c: Generate trace bytecodes, as appropriate.
  5105. (trace_kludge): New variable.
  5106. (gen_fetch, gen_bitfield_ref): Emit trace bytecodes, if asked
  5107. nicely.
  5108. (expr_to_agent): Ask for no trace bytecodes.
  5109. (gen_trace_for_expr): New function.
  5110. (agent_command): Call it, and display the result appropriately ---
  5111. no struct axs_value, so no type or kind information.
  5112. * ax-gdb.c: Use TARGET_CHAR_BIT throughout, not HOST_CHAR_BIT.
  5113. Thu Mar 26 22:29:28 1998 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
  5114. * tracepoint.c (trace_status_command): Recognize a boolean return
  5115. value from the stub to indicate whether trace experiment is
  5116. running. Export this value as a global state variable.
  5117. (trace_running_p) for use by the GUI. (from Michael Snyder)
  5118. (trace_pass_command) added call to modify_tracepoint_hook.
  5119. * tracepoint.h export trace_running_p.
  5120. Thu Mar 26 13:08:01 1998 David Taylor <taylor@texas.cygnus.com>
  5121. * tracepoint.c (validate_actionline): do not error out if
  5122. exp->elts[0].opcode is not on short line -- let
  5123. expr_to_address_and_size handle it.
  5124. 1998-03-26 Jim Blandy <jimb@zwingli.cygnus.com>
  5125. * tracepoint.c: Include "ax.h", not "agentexpr.h".
  5126. * tracepoint.c (encode_actions): Call expr_to_address_and_size,
  5127. not simply expr_to_agent.
  5128. * ax-general.c: Comment out code in progress, so everyone else can
  5129. at least compile.
  5130. * gdbtypes.c: Doc fix.
  5131. * ax.h, ax-gdb.h, ax-general.c, ax-gdb.c: New files.
  5132. * Makefile.in (REMOTE_OBJS): Add ax-general.o and ax-gdb.o.
  5133. (SFILES): Add ax-general.c, ax-gdb.c.
  5134. (ax_h): New variable.
  5135. (ax-general.o, ax-gdb.o): New rules.
  5136. Tue Mar 24 16:22:40 1998 Stu Grossman <grossman@bhuna.cygnus.co.uk>
  5137. * Makefile.in: Derive SHELL from configure.
  5138. * config/d10v/d10v.mt config/m32r/m32r.mt
  5139. config/mn10200/mn10200.mt config/mn10300/mn10300.mt
  5140. config/d30v/d30v.mt: Remove -lm from SIM. This prevents
  5141. dependency checking of -lm (under NT native builds). (It is
  5142. automatically added by configure if it exists.)
  5143. * doc/configure mswin/configure nlm/configure
  5144. testsuite/gdb.base/configure testsuite/gdb.c++/configure
  5145. testsuite/gdb.chill/configure testsuite/gdb.disasm/configure
  5146. testsuite/gdb.stabs/configure testsuite/gdb.threads/configure:
  5147. Regenerate with autoconf 2.12.1 to fix shell issues for NT native
  5148. builds.
  5149. Mon Mar 23 18:10:57 1998 Ulrich Drepper (drepper@cygnus.com)
  5150. * solib.c (solib_create_inferior_hook): Rewrite previous
  5151. change to check the type of file via BFD.
  5152. Mon Mar 23 13:52:28 1998 Ulrich Drepper (drepper@cygnus.com)
  5153. * breakpoint.c (breakpoint_re_set_one): Treat bp_shlib_events
  5154. like bp_breakpoints.
  5155. * solib.c (solib_create_inferior_hook): Relocate section addresses
  5156. if the alleged start address doesn't agree with the PC.
  5157. Sat Mar 21 19:34:49 1998 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
  5158. merged changes from Foundry (list follows by file/author):
  5159. - Tom Tromey <tromey@cygnus.com>
  5160. * Makefile.in (gdbres.o): New target.
  5161. (WINDRES): New define.
  5162. * configure: Rebuilt.
  5163. * configure.in (WINDRES): Define.
  5164. (CONFIG_OBS): Include gdbres.o on Windows.
  5165. * gdbtool.ico: New file.
  5166. * gdb.rc: New file.
  5167. * ser-unix.c
  5168. - Keith Seitz <keiths@onions.cygnus.com>
  5169. (wait_for): Don't reset the timeout_remaining for CYGWIN32,
  5170. since we now effectively poll the serial port.
  5171. Don't reset the current_timeout, either, since this member is used
  5172. by hardwire_readchar to track the timeout and call the ui_loop_hook.
  5173. (hardwire_readchar): Poll the serial port for Cygwin32. We timeout
  5174. every second, update the UI, and loop around doing this until we
  5175. have hit the real timeout or we get data or an error. This will
  5176. allow the UI to stay active while gdb is "blocked" talking to the
  5177. target.
  5178. - Martin M. Hunt <hunt@cygnus.com>
  5179. (wait_for): Do reset current_timeout because it is only used to
  5180. keep track of what the current timeout for the scb is.
  5181. * top.c
  5182. - Martin M. Hunt <hunt@cygnus.com>
  5183. (quit_confirm): Change exit message again
  5184. for GUI.
  5185. (pc_changed_hook): Add prototype.
  5186. - Tom Tromey <tromey@cygnus.com>
  5187. (quit_confirm): Added missing `else'.
  5188. (quit_confirm): Special-case message if init_ui_hook is
  5189. set.
  5190. * symtab.c
  5191. - Martin M. Hunt <hunt@cygnus.com>
  5192. (find_pc_sect_line): If no symbol information
  5193. is found, return correct pc anyway.
  5194. (find_methods): Comment out an apparently
  5195. bogus error message because it messes up Foundry.
  5196. * serial.c
  5197. - Martin M. Hunt <hunt@cygnus.com>
  5198. (_initialize_serial): Add a description of
  5199. "set remotelogbase".
  5200. * findvar.c
  5201. - Martin M. Hunt <hunt@cygnus.com>
  5202. (write_register_gen): Add call to
  5203. pc_changed_hook if the PC is being changed.
  5204. * defs.h
  5205. - Martin M. Hunt <hunt@cygnus.com>
  5206. (pc_changed_hook): Define.
  5207. * command.c
  5208. - Martin M. Hunt <hunt@cygnus.com>
  5209. (do_setshow_command): If no arguments are supplied,
  5210. don't dump core, instead print out an error message.
  5211. * breakpoint.c
  5212. - Martin M. Hunt <hunt@cygnus.com>
  5213. Make set_raw_breakpoint, set_breakpoint_count,
  5214. and breakpoint_count non-static so they are accessible from
  5215. elsewhere.
  5216. (enable_breakpoint): Enable breakpoint
  5217. with same disposition instead of changing all breakpoints
  5218. to donttouch.
  5219. * annotate.h
  5220. - Keith Seitz <keiths@onions.cygnus.com>
  5221. Add declarations for annotation hooks.
  5222. * annotate.c
  5223. - Keith Seitz <keiths@onions.cygnus.com>
  5224. Add hooks: annotate_starting_hook, annotate_stopped_hook,
  5225. annotate_signalled_hook, annotate_exited_hook.
  5226. (annotate_starting): If hook exists, call it instead.
  5227. (annotate_stopped): If hook exists, call it instead.
  5228. (annotate_exited): If hook exists, call it instead.
  5229. (annotate_signalled): If hook exists, call it instead.
  5230. Fri Mar 20 14:45:36 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
  5231. * gdbserver/Makefile.in: add dependency on XM_CLIBS.
  5232. * gdbserver/low-sim.c (registers) force into alignment.
  5233. (create_inferior): Fix typo on new_argv; add abfd arg to
  5234. sim_open, sim_create_inferior. Add reg_size arg to
  5235. sim_fetch_register, sim_store_register. Make simulator
  5236. take a single-step to get into a known running state.
  5237. * gdbserver/gdbreplay.c: include fcntl.h for def'n of F_SETFL.
  5238. * gdbserver/server.c: Add remote_debug variable to control
  5239. debug output.
  5240. * gdbserver/server.h: Add prototypes for enable/disable_async_io.
  5241. * gdbserver/remote-utils.c: add verbose debugging output controlled
  5242. by "remote_debug" variable. Add call to "disable_async_io()"
  5243. to avoid being killed by async SIGIO signals.
  5244. * config/m32r/m32r.mt: define GDBSERVER_(LIBS and DEPFILES),
  5245. so that gdbserver can be built with the m32r simulator.
  5246. Fri Mar 20 09:04:06 1998 Andrew Cagney <cagney@b1.cygnus.com>
  5247. * gdbtypes.h (builtin_type_{,u}int{8,16,32,64}): New gdb builtin
  5248. types.
  5249. * gdbtypes.c (_initialize_gdbtypes): Initialize new types.
  5250. * mips-tdep.c (do_gp_register_row): Pad register value when GP
  5251. register is smaller than MIPS_REGSIZE.
  5252. * findvar.c (value_of_register): When raw and virtual register
  5253. values identical, check that sizes are consistent.
  5254. Thu Mar 19 11:32:15 1998 Michael Snyder (msnyder@cleaver.cygnus.com)
  5255. * minsyms.c (compare_minimal_symbols): If addresses are identical,
  5256. then compare on names. Sorted list should have symbols with
  5257. identical addresses AND names adjacent, so dups can be discarded.
  5258. Wed Mar 18 12:50:17 1998 Jeff Law (law@cygnus.com)
  5259. * stabsread.c (define_symbol): Don't look for ',' as a LRS
  5260. indicator.
  5261. Wed Mar 18 10:34:51 1998 Nick Clifton <nickc@cygnus.com>
  5262. * rdi-share/etherdrv.c: Set sys_errlist[] as char * not const char *.
  5263. Fri Mar 13 15:43:53 1998 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
  5264. * config/mips/xm-mips.h (CC_HAS_LONG_LONG): Undefine for Ultrix
  5265. when compiling with native cc, the compiler has broken long long
  5266. support.
  5267. Fri Mar 13 15:37:02 1998 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
  5268. * config/m68k/xm-sun3os4.h: Remove malloc declarations, they
  5269. are handled via autoconf now.
  5270. * remote.c (remote_ops, extended_remote_ops): Replace static
  5271. forward declaration by moving the static definition to the top of
  5272. the file, for old K&R compilers.
  5273. * tracepoint.c (collect_symbol, trace_start_command):
  5274. Replace ANSI string concatenation with K&R compatible simple string.
  5275. 1998-03-11 Fred Fish <fnf@ninemoons.com>
  5276. * source.c (select_source_symtab): Don't reach error if we have
  5277. a current_source_symtab from reading in partial symbol table.
  5278. Fri Mar 6 13:10:27 1998 Fred Fish <fnf@cygnus.com>
  5279. * utils.c (quit): Call SERIAL_DRAIN_OUTPUT rather than
  5280. SERIAL_FLUSH_OUTPUT.
  5281. * serial.h (struct serial_ops): Add drain_output, pointer to
  5282. function that waits for output to drain.
  5283. (SERIAL_DRAIN_OUTPUT): Macro to wait for output to drain.
  5284. * ser-unix.c (hardwire_drain_output): New function and prototype.
  5285. * ser-unix.c (hardwire_ops): Add entry for drain_output function.
  5286. * ser-tcp.c (tcp_ops): Ditto.
  5287. * ser-ocd.c (ocd_ops): Ditto.
  5288. * ser-mac.c (mac_ops): Ditto.
  5289. * ser-go32.c (dos_ops): Ditto.
  5290. * ser-e7kpc.c (e7000pc_ops): Ditto.
  5291. Thu Mar 5 16:07:41 1998 Michael Snyder (msnyder@cleaver.cygnus.com)
  5292. * sparcl-tdep.c: fix #endif comments
  5293. Thu Mar 5 15:10:35 1998 Jason Molenda (crash@bugshack.cygnus.com)
  5294. * Makefile.in (BISON): Configure substitutes in @YACC@, not @BISON@.
  5295. Thu Mar 5 14:42:41 1998 Keith Seitz <keiths@onions.cygnus.com>
  5296. * ocd.c (ocd_open): If we fail ocd_start_remote, make sure we
  5297. error () so that we abort out of bdm_ppc_open.
  5298. Wed Mar 4 16:53:52 1998 Martin M. Hunt <hunt@cygnus.com>
  5299. * serial.c (_initialize_serial): Add a description of
  5300. "set remotelogbase".
  5301. * command.c (do_setshow_command): If no arguments are supplied,
  5302. don't dump core, instead print out an error message.
  5303. Wed Mar 4 01:39:08 1998 Ron Unrau <runrau@cygnus.com>
  5304. * elfread.c (elf_symtab_read): merge SYMBOL_IS_SPECIAL into
  5305. MAKE_MSYMBOL_SPECIAL
  5306. * config/mips/tm-mips.h: ditto
  5307. Tue Mar 3 17:19:08 1998 John Metzler <jmetzler@cygnus.com>
  5308. * config/mips/tm-vr4xxx.h: implements vr4111 as separate from 4300
  5309. * config/mips/vr4xxx.tm: implements vr4111 as separate from 4300
  5310. * configure.tgt: Recognise mips64vr4111-*-elf as vr4xxx
  5311. * dwarfread.c (read_tag_pointer_type): Pointer sizes now come from
  5312. TARGET_PTR_BIT rather from sizeof(char *) on host.
  5313. Tue Mar 3 14:37:02 1998 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
  5314. * alpha-nat.c (fetch_osf_core_registers): Renamed from
  5315. fetch_aout_core_registers.
  5316. (alpha_osf_core_fns): Renamed from alpha_aout_core_fns, change
  5317. flavour to bfd_target_unknown_flavour for OSF core files.
  5318. Mon Mar 2 17:44:13 1998 Michael Snyder (msnyder@cleaver.cygnus.com)
  5319. * breakpoint.c (_initialize_breakpoint): Make "en" an alias
  5320. for "enable" (so that it doesn't conflict with "end").
  5321. Mon Mar 2 17:04:25 1998 Jason Molenda (crash@bugshack.cygnus.com)
  5322. * Makefile (VERSION): Bump to 4.17.1.
  5323. Mon Mar 2 16:59:15 1998 Jason Molenda (crash@bugshack.cygnus.com)
  5324. * rdi-share/etherdrv.c (sys_errlist): Add correct decl for Linux.
  5325. Mon Mar 2 16:51:44 1998 Jason Molenda (crash@bugshack.cygnus.com)
  5326. * Makefile.in (YYFILES): Remove in maintainer-clean, not distclean.
  5327. Mon Mar 2 16:47:11 1998 Philippe De Muyter <phdm@macqel.be>
  5328. * Makefile.in (distclean): Add `rm $(YYFILES)'.
  5329. Mon Mar 2 16:45:48 1998 Philippe De Muyter <phdm@macqel.be>
  5330. * coffread.c (coff_read_enum_type): Set TYPE_FLAG_UNSIGNED if enum
  5331. is unsigned.
  5332. Sun Mar 2 15:16:13 1998 Richard Henderson <rth@cygnus.com>
  5333. * configure.host, configure.tgt: Add sparc-linux.
  5334. * sparc-nat.c: Include <asm/reg.h> not <machine/reg.h> for Linux.
  5335. * config/sparc/*linux*: New files.
  5336. Mon Mar 2 12:12:41 1998 Anthony Thompson (athompso@cambridge.arm.com)
  5337. * arm-tdep.c (gdb_print_insn_arm): Call print_insn_big_arm
  5338. if we're big endian; else call print_insn_little_arm.
  5339. Mon Feb 24 11:24:57 1998 Richard Henderson <rth@cygnus.com>
  5340. * Makefile.in (BISON): Don't even pretend to use yacc.
  5341. (c-exp.tab.o): Use bison -o to use a unique intermediate file.
  5342. (f-exp.tab.o, m2-exp.tab.o): Likewise.
  5343. (jv-exp.tab.o): Likewise.
  5344. Tue Feb 24 03:32:59 1998 Andrew Cagney <cagney@b1.cygnus.com>
  5345. * remote-sim.c (gdbsim_fetch_register): Don't abort when the
  5346. register size is wrong.
  5347. Thu Feb 19 16:49:48 1998 John Metzler <jmetzler@cygnus.com>
  5348. * target.c (debug_to_fetch_registers,debug_to_store_registers,
  5349. debug-to_insert_breakpoint,debug_to_remove_breakpoint): tracing
  5350. 64 bit targets crashed long long printfs.
  5351. Tue Feb 17 16:36:22 1998 Michael Snyder (msnyder@cleaver.cygnus.com)
  5352. * symfile.c (read_target_int_array): rename read_target_long_array
  5353. and force the sizeof an ovly_table element to sizeof(long),
  5354. instead of sizeof(int).
  5355. Tue Feb 17 18:05:05 1998 Frank Ch. Eigler <fche@cygnus.com>
  5356. * remote-mips.c (mips_request): Use unsigned long during parsing
  5357. returned value from monitor, to prevent accidental sign extension.
  5358. Tue Feb 17 14:28:33 1998 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
  5359. * acconfig.h: FORCE_MMCHECK changed to MMCHECK_FORCE.
  5360. * configure.in: Ditto.
  5361. * configure: Regenerated.
  5362. Tue Feb 17 14:07:34 1998 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
  5363. * gdbtypes.c (check_typedef): Do not try to resolve the length of
  5364. a type which has TYPE_FLAG_TARGET_STUB set, if the target type has
  5365. set TYPE_FLAG_TARGET_STUB as well.
  5366. Tue Feb 17 14:32:18 1998 Andrew Cagney <cagney@b1.cygnus.com>
  5367. * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register):
  5368. Pass register size to sim_{fetch,store}_register. Check nr of
  5369. register bytes transfered is correct.
  5370. Mon Feb 16 14:05:54 1998 Andrew Cagney <cagney@b1.cygnus.com>
  5371. * remote-d10v.c (remote_d10v_open): Call push_remote_target
  5372. instead of open_remote_target.
  5373. * remote.c (remote_xfer_memory): Use REMOTE_TRANSLATE_XFER_ADDRESS
  5374. to translate addr/size when defined.
  5375. (open_remote_target): Delete.
  5376. * target.h (open_remote_target): Delete.
  5377. * config/d10v/tm-d10v.h (REMOTE_TRANSLATE_XFER_ADDRESS): Define.
  5378. Mon Feb 16 14:05:54 1998 Andrew Cagney <cagney@b1.cygnus.com>
  5379. * d10v-tdep.c (d10v_extract_return_value): Wierd. GCC wants to
  5380. return odd sized register quantities with only half of the first
  5381. register used!
  5382. * config/d10v/tm-d10v.h (USE_STRUCT_CONVENTION): Use stack when
  5383. size > 8.
  5384. Mon Feb 16 14:05:54 1998 Andrew Cagney <cagney@b1.cygnus.com>
  5385. * config/d10v/tm-d10v.h (USE_STRUCT_CONVENTION): Define. True when
  5386. sizeof type > 1.
  5387. Sun Feb 15 16:10:50 1998 Ron Unrau <runrau@cygnus.com>
  5388. * parse.c (write_dollar_variable): call new function
  5389. target_map_name_to_register to allow targets to define their own
  5390. register name aliases.
  5391. * infcmd.c (registers_info): use target_map_name_to_register so that
  5392. "print $reg" and "info reg $reg" use the same register name aliases.
  5393. Fri Feb 13 16:40:30 1998 Stan Shebs <shebs@andros.cygnus.com>
  5394. * config/i386/i386mk.mt (OBJFORMATS): Delete, no longer used.
  5395. * config/i386/xm-i386mk.h: Fix an include.
  5396. * config/pyr/tm-pyr.h (PC_INNER_THAN): Remove, never used.
  5397. Thu Feb 12 16:12:07 1998 Frank Ch. Eigler <fche@cygnus.com>
  5398. * remote-mips.c (mips_enter_debug): Sleep before sending CR to
  5399. monitor.
  5400. (mips_exit_debug): Accept any whitespace / verbiage before monitor
  5401. prompt reappears.
  5402. Thu Feb 12 18:25:42 1998 Andrew Cagney <cagney@b1.cygnus.com>
  5403. * d10v-tdep.c (show_regs): Avoid use of %llx when printing 8 byte
  5404. accumulators.
  5405. Thu Feb 12 17:10:22 1998 Andrew Cagney <cagney@b1.cygnus.com>
  5406. * valops.c (value_at): For d10v, make read pointers with
  5407. read_target_unsigned_integer, keep addresses unsigned.
  5408. (value_fetch_lazy): Ditto.
  5409. Thu Feb 12 12:14:02 1998 Andrew Cagney <cagney@b1.cygnus.com>
  5410. * remote-d10v.c: New file. Layer the d10v GDB->remote memory map
  5411. on top of the remote serial memory transfer functions.
  5412. * config/d10v/d10v.mt (TDEPFILES): Add remote-d10v.o
  5413. * Makefile.in (remote-d10v.o): Add dependencies.
  5414. * remote.c (remote_open_1): Add arg extended_p, engage extended
  5415. protocol when extended_p.
  5416. (remote_open, extended_remote_open): Pass !extended_p /
  5417. extended_p to remote_open_1.
  5418. * remote.c (open_remote_target), target.h: New function.
  5419. Wed Feb 11 08:41:15 1998 Andrew Cagney <cagney@b1.cygnus.com>
  5420. * config/i386/fbsd.mh (XDEPFILES): Add ser-tcp.o.
  5421. Tue Feb 10 17:50:37 1998 Keith Seitz <keiths@onions.cygnus.com>
  5422. * tracepoint.c (tracepoint_operation): Call the modify_tracepoint_hook
  5423. if it exists.
  5424. Remove static declaration of free_actions.
  5425. * tracepoint.h: Add declaration of free_actions.
  5426. Tue Feb 10 12:17:13 1998 Fred Fish <fnf@cygnus.com>
  5427. * symtab.c (decode_line_1): Revert change that mistakenly
  5428. removed assignment of sals[0].pc field.
  5429. Mon Feb 10 12:37:47 1998 Philippe De Muyter <phdm@macqel.be>
  5430. * m68k/tm-delta68.h (EXTRACT_RETURN_VALUE): Type argument for
  5431. `REGISTER_CONVERT_TO_VIRTUAL is `TYPE', not
  5432. `REGISTER_VIRTUAL_TYPE (FP0_REGNUM)';
  5433. (STORE_RETURN_VALUE): Ditto, and offset for `write_register_bytes'
  5434. is `REGISTER_BYTE (FP0_REGNUM)', not `FP0_REGNUM'.
  5435. (FRAME_NUM_ARGS): New macro.
  5436. * m68k/tm-news.h (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE): Ditto.
  5437. * delta68-nat.c (clear_insn_cache): New function, forgotten in previous
  5438. patch.
  5439. Mon Feb 9 11:10:06 1998 Andrew Cagney <cagney@b1.cygnus.com>
  5440. * d10v-tdep.c: Replace references to IMEM_ADDR and DMEM_ADDR with
  5441. D10V_MAKE_[DI]ADDR and D10V_CONVERT_[ID]ADDR_TO_RAW macros.
  5442. * config/d10v/tm-d10v.h (IMEM_START): Move to 0x01......
  5443. (DMEM_START): Move to 0x00......
  5444. (STACK_START): Move to 0x00..7ffe.
  5445. (D10V_MAKE_IADDR, D10V_MAKE_DADDR): Translate unconditionally.
  5446. * d10v-tdep.c (d10v_xlate_addr): Delete function.
  5447. Mon Feb 9 15:10:21 1998 Fred Fish <fnf@cygnus.com>
  5448. * symtab.c (fixup_psymbol_section): Move forward declaration to
  5449. top of file with other such decls. Make it a static function.
  5450. * symtab.h: Minor formatting tweaks.
  5451. Mon Feb 9 13:14:12 1998 Stan Shebs <shebs@andros.cygnus.com>
  5452. * config/a29k-udi.mt, config/i960/vxworks960.mt (REMOTE_OBS):
  5453. Remove redefinition.
  5454. * config/i960/tm-i960.h (BREAKPOINT): Define.
  5455. Mon Feb 9 15:35:38 1998 Ian Lance Taylor <ian@cygnus.com>
  5456. * Makefile.in (init.c): Ignore errors when making init.c. Seems
  5457. necessary to work around bug in Solaris make.
  5458. Sun Feb 6 02:44:28 1998 Philippe De Muyter <phdm@macqel.be>
  5459. * m68k/tm-delta68.h (CPLUS_MARKER): Macro deleted.
  5460. (EXTRACT_STRUCT_VALUE_ADDRESS): Macro defined.
  5461. (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE): Macros modified
  5462. because floating-point values return via %fp0.
  5463. (CLEAR_INSN_CACHE): New macro.
  5464. * m68k/tm-m68k.h (REGISTER_CONVERT_TO_VIRTUAL): Macro fixed
  5465. to use DOUBLEST.
  5466. (REGISTER_CONVERT_TO_RAW): Ditto.
  5467. * infptrace.c (child_xfer_memory): If CLEAR_INSN_CACHE is defined,
  5468. call it after having written in child process's memory.
  5469. * inflow.c (PROCESS_GROUP_TYPE): Macro defined if HAVE_TERMIO.
  5470. (gdb_has_a_terminal, terminal_ours_1): Functions fixed for HAVE_TERMIO.
  5471. Fri Feb 6 16:17:30 1998 Jeffrey A Law (law@cygnus.com)
  5472. * config/mips/tm-mips64.h (TARGET_LONG_BIT): Allow final target to
  5473. override.
  5474. (TARGET_LONG_LONG_BIT): Likewise.
  5475. (TARGET_PTR_BIT): Likewise.
  5476. Fri Feb 6 17:42:22 1998 Andrew Cagney <cagney@b1.cygnus.com>
  5477. * config/d10v/tm-d10v.h (D10V_CONVERT_IADDR_TO_RAW,
  5478. D10V_CONVERT_DADDR_TO_RAW): Define.
  5479. * d10v-tdep.c (d10v_push_arguments): Re-write. Pass arguments in
  5480. registers, regardless of their size, when they fit.
  5481. Thu Feb 5 13:16:36 1998 Andrew Cagney <cagney@b1.cygnus.com>
  5482. * d10v-tdep.c (d10v_extract_return_value): For function pointers
  5483. translate address to IMAP area.
  5484. * config/d10v/tm-d10v.h (EXTRA_FRAME_INFO): Delete dummy from
  5485. struct.
  5486. (POP_FRAME): Point at generic_pop_current_frame.
  5487. * d10v-tdep.c (d10v_pop_frame): Delete code handling dummy frames,
  5488. handled earlier.
  5489. (d10v_push_return_address): New function.
  5490. (d10v_pop_dummy_frame): Delete.
  5491. (d10v_fix_call_dummy): Delete.
  5492. (d10v_call_dummy_address): Delete.
  5493. * d10v-tdep.c (d10v_init_extra_frame_info): Clear dummy and
  5494. frameless.
  5495. * d10v-tdep.c (d10v_push_arguments): Keep stack word aligned.
  5496. * config/d10v/tm-d10v.h (EXTRACT_STRUCT_VALUE_ADDRESS): Extract
  5497. address of structure from first ARG1_REGNUM.
  5498. * d10v-tdep.c (d10v_push_arguments): Force 4 byte args into
  5499. even-odd register pair. Store 1 and 2 byte args in registers.
  5500. * valops.c (value_fetch_lazy): Ensure that a D10V function pointer
  5501. is fetched in the correct byte order.
  5502. (value_at): Ditto. Also ensure data pointers are mapped to data
  5503. segment.
  5504. * config/d10v/tm-d10v.h (D10V_DADDR_P, D10V_IADDR_P):
  5505. * d10v-tdep.c: Replace 2 with REGISTER_RAW_SIZE.
  5506. (d10v_pop_frame): Replace R13 with LR_REGNUM.
  5507. (d10v_push_arguments): Replace R2 with ARG1_REGNUM.
  5508. (d10v_push_arguments): Replace 6 with ARGN_REGNUM.
  5509. (d10v_extract_return_value): Access return value with RET1_REGNUM.
  5510. * config/d10v/tm-d10v.h (ARG1_REGNUM, ARGN_REGNUM, RET1_REGNUM):
  5511. Define.
  5512. (STORE_RETURN_VALUE): Specify return register using RET1_REGNUM.
  5513. (STORE_STRUCT_RETURN): Specify ARG1_REGNUM as the struct ptr
  5514. location.
  5515. Thu Feb 5 13:16:36 1998 Andrew Cagney <cagney@b1.cygnus.com>
  5516. * blockframe.c (generic_pop_dummy_frame): Flush the frame, no
  5517. longer valid.
  5518. * blockframe.c (generic_pop_current_frame), frames.h: New
  5519. function.
  5520. Thu Feb 5 17:18:16 1998 Andrew Cagney <cagney@b1.cygnus.com>
  5521. * remote-sim.c (gdbsim_create_inferior): clear_proceed_status
  5522. before /re/starting the simulator.
  5523. Thu Feb 5 15:55:31 1998 C. M. Heard (heard@vvnet.com)
  5524. * top.c (do_nothing): Remove signal handler after signal is caught.
  5525. Thu Feb 5 11:57:06 1998 Michael Snyder (msnyder@cleaver.cygnus.com)
  5526. * tracepoint.c (tracepoint_operation): call free_actions instead
  5527. of free. (free_actions): eliminate some memory leaks for actions.
  5528. (validate_actionline): pass string arg by reference, so we can
  5529. change the pointer. Change all memrange collection arguments to
  5530. canonical form (literal address and size), to enforce early
  5531. evaluation. Accept UNOP_MEMVAL (assembly variables) for
  5532. trace collection. (parse_and_eval_memrange): accept expressions
  5533. for the address and size fields of a memrange (and evaluate
  5534. them immediately). (several places): use -1 instead of zero
  5535. to distinguish an absolute memrange from a register-relative one.
  5536. (encode_actions): add handling for UNOP_MEMVAL (assembly variable).
  5537. Wed Feb 4 17:40:21 1998 Jason Molenda (crash@bugshack.cygnus.com)
  5538. * Makefile.in (SFILES): add tracepoint.c.
  5539. (LINTFILES): add @CONFIG_SRCS@.
  5540. (SOURCES): Ditto.
  5541. * configure.in (CONFIG_SRCS): Mirror use of CONFIG_OBS.
  5542. * configure: Regenerated.
  5543. Tue Feb 3 16:12:32 1998 Gordon W. Ross (gwr@mc.com)
  5544. * infptrace.c (child_resume): Don't try to step if
  5545. NO_SINGLE_STEP is defined.
  5546. Mon Feb 2 19:06:13 1998 Jason Molenda (crash@bugshack.cygnus.com)
  5547. * Makefile.in (VERSION): Bump to 4.16.2.
  5548. Mon Feb 2 17:18:25 1998 Richard Henderson <rth@cygnus.com>
  5549. * alpha-nat.c (fetch_aout_core_registers): Rename from
  5550. fetch_core_registers.
  5551. (fetch_elf_core_registers): New function.
  5552. (supply_gregset): Use ALPHA_REGSET_BASE.
  5553. (supply_fpregset): Likewise.
  5554. (fill_fpregset): Likewise.
  5555. (alpha_aout_core_fns): Rename from alpha_core_fns.
  5556. (alpha_elf_core_fns): New.
  5557. * config/alpha/alpha-linux.mh (NATDEPFILES): solib.o not osfsolib.o.
  5558. Disable MMALLOC.
  5559. * config/alpha/nm-linux.h (SVR4_SHARED_LIBS): Define if ELF.
  5560. (TARGET_ELF64): Likewise.
  5561. (ALPHA_REGSET_BASE): New.
  5562. * config/alpha/nm-osf.h (ALPHA_REGSET_BASE): New.
  5563. * config/alpha/tm-alphalinux.h: Include tm-sysv4.h.
  5564. * solib.c (elf_locate_base): Add TARGET_ELF64 support.
  5565. (info_sharedlibary_command): Likewise.
  5566. * configure.host: Match alpha*.
  5567. * configure.tgt: Likewise.
  5568. Fri Jan 30 15:11:38 1998 David Taylor <taylor@texas.cygnus.com>
  5569. Changes by <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
  5570. * infrun.c (IN_SOLIB_DYNSYM_RESOLVE_CODE): new macro for detecting
  5571. whether we are in the dynamic symbol resolution code
  5572. (wait_for_inferior): invoke it.
  5573. * solib.c (in_svr4_dynsym_resolve_code): new function
  5574. (enable_break): record start and end of the dynamic linker
  5575. text and plt sections for use in in_svr4_dynsym_resolve_code.
  5576. * solib.h (IN_SOLIB_DYNSYM_RESOLVE_CODE): add svr4 definition;
  5577. (in_svr4_dynsym_resolve_code): declare it.
  5578. * config/nm-gnu.h (solib.h): move inclusion to after definition
  5579. of SVR4_SHARED_LIBS.
  5580. * config/nm-sysv4.h (solib.h): ditto.
  5581. * config/i386/nm-i386sco5.h (solib.h): ditto.
  5582. * config/i386/nm-linux.h (solib.h): ditto.
  5583. * config/mips/nm-irix5.h (IN_SOLIB_DYNSYM_RESOLVE_CODE): undefine.
  5584. Thu Jan 29 19:39:31 1998 Stan Shebs <shebs@andros.cygnus.com>
  5585. * coffread.c (coff_symtab_read) [SEM]: Remove code, macro can
  5586. never be defined.
  5587. * dbxread.c (process_one_symbol) [BLOCK_ADDRESS_ABSOLUTE]:
  5588. Remove, no longer needed.
  5589. * hppa-tdep.c (N_SET_MAGIC): Remove, no longer used.
  5590. * config/pa/xm-hppab.h (SEEK_SET, SEEK_CUR, SEEK_END): Ditto.
  5591. * config/mips/tm-mipsm3.h (NUMERIC_REG_NAMES): Ditto.
  5592. * config/mips/mipsm3.mt (TDEPFILES): Remove mipsread.o.
  5593. Wed Jan 28 14:46:52 1998 Stan Shebs <shebs@andros.cygnus.com>
  5594. Suggested by Chris Walter <walter@budoe.bu.edu>:
  5595. * dwarfread.c (set_cu_language): Recognize Fortran.
  5596. * dwarf2read.c (set_cu_language): Ditto.
  5597. (read_array_type): Fix language test.
  5598. Wed Jan 28 12:51:08 1998 Michael Snyder (msnyder@cleaver.cygnus.com)
  5599. * blockframe.c (generic_frame_chain_valid): A frame pointer may
  5600. be valid if it is equal to the frame pointer of its caller (ie.
  5601. not necessarily strictly INNER_THAN). Allows frameless functions.
  5602. Wed Jan 28 11:23:25 1998 Mark Alexander <marka@cygnus.com>
  5603. * monitor.c (monitor_vsprintf): New function to handle
  5604. printing of large addresses using %A format specifier.
  5605. (monitor_printf_noecho, monitor_printf): Use monitor_vsprintf
  5606. instead of vsprintf.
  5607. * dve3900-rom.c (_initialize_r3900_rom): Use %A instead of %Lx
  5608. to print addresses.
  5609. Tue Jan 27 16:14:23 1998 Jason Molenda (crash@bugshack.cygnus.com)
  5610. * configure.in (CONFIG_LDFLAGS): Only add -export-dynamic
  5611. when using GNU ld.
  5612. Mon Jan 26 19:07:46 1998 Jason Molenda (crash@bugshack.cygnus.com)
  5613. * config/alpha/tm-alphalinux.h (alpha_linux_sigtramp_offset):
  5614. Add closing parenthesis. From HJ Lu.
  5615. Mon Jan 26 17:54:45 1998 Mark Alexander <marka@cygnus.com>
  5616. * dve3900-rom.c: Improve performance by using memory commands
  5617. that print less fluff. Minor cosmetic changes.
  5618. Eliminate compiler warnings.
  5619. Sat Jan 24 23:44:43 1998 Martin M. Hunt <hunt@cygnus.com>
  5620. * breakpoint.c (enable_breakpoint): Preserve breakpoint
  5621. disposition when enabling a breakpoint.
  5622. * symtab.c (find_pc_sect_line): If no symbol information
  5623. is found, return correct pc anyway.
  5624. Fri Jan 23 17:26:22 1998 Stan Shebs <shebs@andros.cygnus.com>
  5625. * configure.host (i[3456]86-*-osf1mk*, mips-*-mach3*,
  5626. ns32k-*-mach3*): Fix file names.
  5627. (i[3456]86-*-os9k, m88*-*-mach3*, w65-*-*): Remove config
  5628. recognition, no source files for these.
  5629. * configure.tgt (powerpc-*-aix4*): Remove config, now identical
  5630. to powerpc-*-aix*.
  5631. * config/powerpc/{aix4.mh,aix4.mt,tm-ppc-aix4.h}: Remove files,
  5632. no longer needed.
  5633. Fri Jan 23 16:49:41 1998 Mark Alexander <marka@cygnus.com>
  5634. * monitor.c (monitor_write, monitor_readchar): New functions.
  5635. * monitor.h (monitor_write, monitor_readchar): Declare.
  5636. * dve3900-rom.c: Add support for fast loading on ethernet connections.
  5637. Fri Jan 23 07:47:06 1998 Fred Fish <fnf@cygnus.com>
  5638. * config/d10v/tm-d10v.h (CALL_DUMMY): Define as "{ 0 }".
  5639. (TARGET_READ_FP): Define to d10v_read_fp rather than d10v_read_sp.
  5640. (TARGET_WRITE_FP): Define to d10v_write_fp rather than d10v_write_sp.
  5641. (d10v_write_fp, d10v_read_fp): Add prototypes.
  5642. * symtab.c (decode_line_1): Remove assignment of sals[0].pc field.
  5643. * symfile.c (simple_overlay_update, simple_overlay_update_1):
  5644. Ignore the size of overlay sections. This check is redundant anyway.
  5645. * printcmd.c (print_frame_args): Ditto.
  5646. * valops.c (value_fetch_lazy): Ditto.
  5647. * values.c (unpack_long): Ditto.
  5648. * d10v-tdep.c (d10v_frame_chain, d10v_frame_find_saved_regs,
  5649. d10v_init_extra_frame_info): Fix some minor bugs so the finish command
  5650. works properly.
  5651. (show_regs): Change num1 and num2 types from "long long" to "LONGEST".
  5652. (d10v_read_fp, d10v_write_fp): New functions.
  5653. (d10v_push_arguments): Remove unneeded assigns to "val" and "contents".
  5654. (d10v_push_arguments): Fix for pointers and structs.
  5655. (d10v_extract_return_value): Fix for pointers and chars.
  5656. Tue Jan 20 18:53:18 1998 Stan Shebs <shebs@andros.cygnus.com>
  5657. * configure.tgt (i386-*-mach*, m88*-*-mach3*): Remove config
  5658. recognition, no source files for these (note that the i386 Mach
  5659. config is for pre-Mach 3).
  5660. (mips*-*-mach3*, ns32k-*-mach3*): Fix file names.
  5661. * config/mips/mipsel64.mt: Remove, never referenced.
  5662. Mon Jan 19 14:01:28 1998 Stan Shebs <shebs@andros.cygnus.com>
  5663. * top.c (print_gdb_version): Restore to original message.
  5664. Mon Jan 19 13:34:40 1998 Ian Lance Taylor <ian@cygnus.com>
  5665. From cgf@bbc.com (Chris Faylor):
  5666. * win32-nat.c (child_mourn_inferior): Call ContinueDebugEvent to
  5667. let the child exit.
  5668. (child_kill_inferior): Respond to all debug events as the child is
  5669. terminating.
  5670. * Makefile.in (all): Change gdb dependency to gdb$(EXEEXT).
  5671. (uninstall): Add $(EXEEXT) to file name to remove.
  5672. (gdb$(EXEEXT)): Rename target from plain gdb.
  5673. (gdb1$(EXEEXT)): Rename target from plain gdb1.
  5674. (clean, mostlyclean): Add $(EXEEXT) to binary names to remove.
  5675. 1998-01-16 Felix Lee <flee@cygnus.com>
  5676. * top.c (print_gdb_version): delete stutter.
  5677. Thu Jan 15 12:29:13 1998 Nick Clifton <nickc@cygnus.com>
  5678. * remote-rdi.c (arm_rdi_open): Patch from Tony.Thompson@arm.com
  5679. to prevent spurous error messages on non-ICE targets.
  5680. Wed Jan 14 19:27:02 1998 Stan Shebs <shebs@andros.cygnus.com>
  5681. * config/mips/{r3900.mt,r3900l.mt,tm-r3900.h,tm-r3900l.h}:
  5682. Remove, no longer used.
  5683. Wed Jan 14 18:11:26 1998 Michael Meissner <meissner@cygnus.com>
  5684. Patch from Jim Wilson.
  5685. * d30v-tdep.c (d30v_frame_find_saved_regs_offsets): Properly
  5686. declare void function before use.
  5687. * config/d30v/tm-d30v.h (CALL_DUMMY): Initialize as { 0 }, not {}.
  5688. Tue Jan 13 16:38:48 1998 Fred Fish <fnf@cygnus.com>
  5689. * configure.in (--with-mmalloc): Add new configure arg to use the
  5690. mmalloc package. Default is to not use it.
  5691. (START_INFERIOR_TRAPS_EXPECTED): Define to the integer 2, not
  5692. the string "2".
  5693. * acconfig.h (USE_MMALLOC, FORCE_MMCHECK): Add #undef.
  5694. * configure: Regenerated.
  5695. * config.in: Regenerated.
  5696. * Makefile.in (MMALLOC_DIR, MMALLOC_SRC): Remove.
  5697. (MMALLOC): Set using configure.
  5698. (MMALLOC_CFLAGS): Set using configure.
  5699. * config/i386/tm-linux.h (sys_quotactl): Define to 1 rather
  5700. than just defining it.
  5701. * mpw-make.sed: Undefine USE_MMALLOC rather than defining NO_MMALLOC.
  5702. * utils.c (NO_MMALLOC): Use USE_MMALLOC instead.
  5703. * objfiles.c: ditto.
  5704. * defs.h: ditto.
  5705. * config/sparc/sun4os4.mh (MMALLOC_CFLAGS): Remove.
  5706. * config/m68k/sun3os4.mh (MMALLOC_CFLAGS): Remove.
  5707. * config/i386/cygwin32.mh (MMALLOC_CFLAGS): Remove.
  5708. * config/alpha/alpha-osf3.mh (MMALLOC_CFLAGS): Remove.
  5709. * config/alpha/alpha-osf2.mh (MMALLOC_CFLAGS): Remove.
  5710. * gdbserver/Makefile.in (MMALLOC_*): Remove.
  5711. * config/rs6000/rs6000.mh (MMALLOC, MMALLOC_CFLAGS): Remove.
  5712. * config/rs6000/aix4.mh (MMALLOC, MMALLOC_CFLAGS): Remove.
  5713. * config/powerpc/aix4.mh (MMALLOC, MMALLOC_CFLAGS): Remove.
  5714. * config/powerpc/aix.mh (MMALLOC, MMALLOC_CFLAGS): Remove.
  5715. * config/ns32k/ns32km3.mh (MMALLOC, MMALLOC_CFLAGS): Remove.
  5716. * config/mips/mipsm3.mh (MMALLOC, MMALLOC_CFLAGS): Remove.
  5717. * config/mips/decstation.mh (MMALLOC, MMALLOC_CFLAGS): Remove.
  5718. * config/m88k/cxux.mh (MMALLOC, MMALLOC_CFLAGS): Remove.
  5719. * config/i386/xm-windows.h (NO_MMALLOC, NO_MMCHECK): Remove.
  5720. * config/i386/i386mk.mh (MMALLOC, MMALLOC_CFLAGS): Remove.
  5721. * config/i386/i386m3.mh (MMALLOC, MMALLOC_CFLAGS): Remove.
  5722. * config/i386/i386gnu.mh (MMALLOC, MMALLOC_CFLAGS): Remove.
  5723. * config/alpha/alpha-osf1.mh (MMALLOC, MMALLOC_CFLAGS): Remove.
  5724. * config/alpha/alpha-linux.mh (MMALLOC, MMALLOC_CFLAGS): Remove.
  5725. Mon Jan 12 11:46:51 1998 Michael Snyder (msnyder@cleaver.cygnus.com)
  5726. * config/m68k/tm-m68k.h (REGISTER_VIRTUAL_TYPE): make A0 thru A7
  5727. default to void pointer type (so that their default radix is hex).
  5728. * symtab.c: move rbreak_command from no_class to class_breakpoint
  5729. so it will be listed under "help breakpoints".
  5730. Sat Jan 10 14:58:04 1998 Stan Shebs <shebs@andros.cygnus.com>
  5731. * rdi-share/hostchan.c: Remove gettimeofday declaration.
  5732. Thu Jan 8 11:03:59 1998 Nick Clifton <nickc@cygnus.com>
  5733. * remote-rdp.c: Applied patches submitted by Tony.Thompson@arm.com
  5734. to implement the Angel remote debugging interface.
  5735. * Makefile.in: Add build rules for remote-rdi.c and
  5736. rdi-share/libangsd.a.
  5737. * configure.tgt: Updated from source on branch.
  5738. * config/arm/tm-arm.h: Updated from source on branch.
  5739. * arm-tdep.c: Updated from source on branch.
  5740. * rdi-share: New directory, RDI library contributed by ARM.
  5741. Mon Jan 5 20:21:59 1998 Mark Alexander <marka@cygnus.com>
  5742. * monitor.h (MO_PRINT_PROGRAM_OUTPUT): Define.
  5743. * monitor.c (monitor_wait): Echo program output.
  5744. * dve3900-rom.c (_initialize_r3900_rom): Remove MO_HANDLE_NL flag,
  5745. add MO_PRINT_PROGRAM_OUTPUT flag.
  5746. Mon Jan 5 18:21:11 1998 David Taylor <taylor@texas.cygnus.com>
  5747. * top.h (HAVE_SIGSETJMP): define SIGJMP_BUF, SIGSETJMP, and
  5748. SIGLONGJMP appropriately based on whether HAVE_SIGSETJMP is
  5749. defined.
  5750. * top.c (return_to_top_level, catch_errors): use the new macros
  5751. * main.c (SET_TOP_LEVEL): ditto.
  5752. * config/xm-sysv4.h (HAVE_SIGSETJMP): Define.
  5753. Fri Jan 2 18:48:58 1998 Mark Alexander <marka@cygnus.com>
  5754. * configure.in: Double up brackets in shell case pattern.
  5755. Fri Jan 2 17:06:05 1998 Michael Snyder (msnyder@cleaver.cygnus.com)
  5756. * tracepoint.c (finish_tfind_command): improved algorithm for
  5757. deciding when we've "stepped" into a new stack frame.
  5758. (map_args_over_tracepoints): loop over tracepoint list "safely",
  5759. since list elements may be deleted during loop.
  5760. (read_actions): add actions to history list.
  5761. For older changes see ChangeLog-1997
  5762. Local Variables:
  5763. mode: change-log
  5764. left-margin: 8
  5765. fill-column: 74
  5766. version-control: never
  5767. End: