ChangeLog-2002-2021 827 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864
  1. 2021-06-19 Mike Frysinger <vapier@gentoo.org>
  2. * acinclude.m4: Delete most m4_include's of ../config files.
  3. * configure.ac: Delete m4_include call and call AC_CONFIG_MACRO_DIR.
  4. * aclocal.m4: Regenerate.
  5. * configure: Regenerate.
  6. 2021-06-14 Mike Frysinger <vapier@gentoo.org>
  7. * Makefile.in (GNULIB_BUILDDIR): Rename to ...
  8. (GNULIB_PARENT_DIR): ... this. Remove "gnulib" from value.
  9. 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
  10. * Fix some indentation mistakes throughout.
  11. 2021-05-17 Andrew Burgess <andrew.burgess@embecosm.com>
  12. * .dir-locals.el: Set sentence-end-double-space for all modes, and
  13. set brace-list-open to 0 for C and C++ modes.
  14. 2021-05-08 Simon Marchi <simon.marchi@polymtl.ca>
  15. * linux-low.cc (linux_process_target::wait_for_event_filtered):
  16. Adjust to status_to_str returning std::string.
  17. 2021-05-08 Pedro Alves <pedro@palves.net>
  18. * linux-low.cc:
  19. (linux_process_target::supports_disable_randomization): Remove
  20. reference to HAVE_PERSONALITY.
  21. * config.in, configure: Regenerate.
  22. 2021-05-08 Pedro Alves <pedro@palves.net>
  23. * linux-low.cc: Don't include sys/personality.h or define
  24. ADDR_NO_RANDOMIZE.
  25. 2021-05-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  26. * server.cc (handle_v_attach)
  27. (handle_v_run)
  28. (handle_v_kill): Make void.
  29. 2021-05-03 Tom Tromey <tromey@adacore.com>
  30. PR build/27807:
  31. * win32-i386-low.cc (i386_get_thread_context): Call
  32. Wow64GetThreadContext, not win32_Wow64GetThreadContext.
  33. 2021-04-30 Tom Tromey <tromey@adacore.com>
  34. * win32-low.cc (do_initial_child_stuff): Update.
  35. (windows_nat::handle_load_dll): Rename from win32_add_one_solib.
  36. Change parameter type.
  37. (win32_add_dll, win32_add_all_dlls)
  38. (windows_nat::handle_load_dll): Remove.
  39. (get_child_debug_event): Call dll_loaded_event.
  40. 2021-04-30 Tom Tromey <tromey@adacore.com>
  41. * win32-low.cc (GETPROCADDRESS): Remove.
  42. (winapi_DebugActiveProcessStop, winapi_DebugSetProcessKillOnExit)
  43. (winapi_DebugBreakProcess, winapi_GenerateConsoleCtrlEvent)
  44. (winapi_Wow64SetThreadContext, win32_Wow64GetThreadContext)
  45. (win32_Wow64SetThreadContext): Remove.
  46. (win32_set_thread_context, do_initial_child_stuff)
  47. (win32_process_target::attach, win32_process_target::detach):
  48. Update.
  49. (winapi_EnumProcessModules, winapi_EnumProcessModulesEx)
  50. (winapi_GetModuleInformation, winapi_GetModuleInformationA):
  51. Remove.
  52. (win32_EnumProcessModules, win32_EnumProcessModulesEx)
  53. (win32_GetModuleInformation, win32_GetModuleInformationA):
  54. Remove.
  55. (load_psapi): Remove.
  56. (win32_add_dll, win32_process_target::request_interrupt): Update.
  57. (initialize_low): Call initialize_loadable.
  58. 2021-04-14 Tom Tromey <tromey@adacore.com>
  59. * win32-low.cc (windows_nat::handle_load_dll): Don't check
  60. _WIN32_WCE.
  61. 2021-04-13 Pedro Alves <pedro@palves.net>
  62. * gdbreplay.c [__MINGW32CE__] (COUNTOF, errno, strerror): Remove.
  63. 2021-04-13 Tom Tromey <tromey@adacore.com>
  64. * win32-low.cc (winapi_CreateToolhelp32Snapshot)
  65. (winapi_Module32First, winapi_Module32Next): Remove typedefs.
  66. 2021-04-13 Pedro Alves <pedro@palves.net>
  67. * Makefile.in (SFILES): Remove hostio-errno.cc.
  68. * configure: Regenerate.
  69. * configure.ac (GDBSERVER_DEPFILES): No longer add
  70. $srv_hostio_err_objs.
  71. * configure.srv (srv_hostio_err_objs): Delete.
  72. * hostio-errno.cc: Delete.
  73. * hostio.cc (hostio_error): Inline hostio_last_error_from_errno
  74. here.
  75. * hostio.h (hostio_last_error_from_errno): Delete.
  76. * target.cc (process_stratum_target::hostio_last_error): Delete.
  77. * target.h (class process_stratum_target) <hostio_last_error>:
  78. Delete.
  79. 2021-04-12 Simon Marchi <simon.marchi@polymtl.ca>
  80. * win32-low.cc: Remove all code guarded by _WIN32_WCE.
  81. * win32-low.h: Likewise.
  82. 2021-04-12 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  83. * target.h (class process_stratum_target) <pid_to_exec_file>:
  84. Constify the return type. Update the definition/references below.
  85. * target.cc (process_stratum_target::pid_to_exec_file)
  86. * linux-low.h (class linux_process_target) <pid_to_exec_file>
  87. * linux-low.cc (linux_process_target::pid_to_exec_file)
  88. * netbsd-low.h (class netbsd_process_target) <pid_to_exec_file>
  89. * netbsd-low.cc (netbsd_process_target::pid_to_exec_file)
  90. * server.cc (handle_qxfer_exec_file)
  91. 2021-04-11 Eli Zaretskii <eliz@gnu.org>
  92. * win32-low.cc (win32_add_dll): New function, with body almost
  93. identical to what win32_add_all_dlls did. Accepts one argument;
  94. if that is non-NULL, returns the file name of the DLL that is
  95. loaded at the base address equal to that argument, or NULL if not
  96. found. If the argument is NULL, add all the DLLs loaded by the
  97. inferior to the list of solibs and return NULL.
  98. (win32_add_all_dlls): Now a thin wrapper around win32_add_dll.
  99. (windows_nat::handle_load_dll) [!_WIN32_WCE]: If get_image_name
  100. failed to glean the file name of the DLL, call win32_add_dll to
  101. try harder using the lpBaseOfDll member of the load-DLL event.
  102. 2021-03-30 Luis Machado <luis.machado@linaro.org>
  103. * server.cc (handle_general_set, handle_query): Update variable
  104. to bool and fix verification logic.
  105. 2021-03-24 Luis Machado <luis.machado@linaro.org>
  106. * Makefile.in (SFILES): Add /../gdb/nat/aarch64-mte-linux-ptrace.c.
  107. * configure.srv (aarch64*-*-linux*): Add arch/aarch64-mte-linux.o and
  108. nat/aarch64-mte-linux-ptrace.o.
  109. * linux-aarch64-low.cc: Include nat/aarch64-mte-linux-ptrace.h.
  110. (class aarch64_target) <supports_memory_tagging>
  111. <fetch_memtags, store_memtags>: New method overrides.
  112. (aarch64_target::supports_memory_tagging)
  113. (aarch64_target::fetch_memtags)
  114. (aarch64_target::store_memtags): New methods.
  115. 2021-03-24 Luis Machado <luis.machado@linaro.org>
  116. * linux-aarch64-low.cc (aarch64_fill_mteregset): New function.
  117. (aarch64_store_mteregset): New function.
  118. (aarch64_regsets): Add MTE register set entry.
  119. (aarch64_sve_regsets): Add MTE register set entry.
  120. 2021-03-24 Luis Machado <luis.machado@linaro.org>
  121. * linux-aarch64-ipa.cc (get_ipa_tdesc): Update call to
  122. aarch64_linux_read_description.
  123. (initialize_low_tracepoint): Likewise.
  124. * linux-aarch64-low.cc (aarch64_target::low_arch_setup): Take MTE flag
  125. into account.
  126. * linux-aarch64-tdesc.cc (tdesc_aarch64_list): Add one more dimension
  127. for MTE.
  128. (aarch64_linux_read_description): Add mte_p parameter and update to
  129. use it.
  130. * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add mte_p
  131. parameter.
  132. 2021-03-24 Luis Machado <luis.machado@linaro.org>
  133. * linux-aarch64-low.cc: Include arch/aarch64-mte-linux.h.
  134. 2021-03-24 Luis Machado <luis.machado@linaro.org>
  135. * server.cc (test_memory_tagging_functions): New function.
  136. (captured_main): Register test_memory_tagging_functions.
  137. 2021-03-24 Luis Machado <luis.machado@linaro.org>
  138. * remote-utils.cc (decode_m_packet_params): Renamed from ...
  139. (decode_m_packet): ... this, which now calls decode_m_packet_params.
  140. Make char * param/return const char *.
  141. (decode_M_packet): Use decode_m_packet_params and make char * param
  142. const char *.
  143. * remote-utils.h (decode_m_packet_params): New prototype.
  144. (decode_m_packet): Constify char pointers.
  145. (decode_M_packet): Likewise.
  146. * server.cc (create_fetch_memtags_reply)
  147. (parse_store_memtags_request): New
  148. functions.
  149. (handle_general_set): Handle the QMemTags packet.
  150. (parse_fetch_memtags_request): New function.
  151. (handle_query): Handle the qMemTags packet and advertise memory
  152. tagging support.
  153. (captured_main): Initialize memory tagging flag.
  154. * server.h (struct client_state): Initialize memory tagging flag.
  155. * target.cc (process_stratum_target::supports_memory_tagging)
  156. (process_stratum_target::fetch_memtags)
  157. (process_stratum_target::store_memtags): New methods.
  158. * target.h: Include gdbsupport/byte-vector.h.
  159. (class process_stratum_target) <supports_memory_tagging>
  160. <fetch_memtags, store_memtags>: New class virtual methods.
  161. (target_supports_memory_tagging): Define.
  162. 2021-03-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  163. * inferiors.h (struct process_info) <all_dlls, dlls_changed>: New
  164. fields.
  165. * dll.h (loaded_dll)
  166. (unloaded_dll): Declare an overloaded version that takes a proc
  167. parameter.
  168. * dll.cc (loaded_dll)
  169. (unloaded_dll): Implement the overloaded versions.
  170. (clear_dlls): Clear all process' dll lists.
  171. (all_dlls, dlls_changed): Remove the global variables.
  172. * remote-utils.cc (prepare_resume_reply): Update to consider a dll
  173. list per proc.
  174. * server.cc (handle_qxfer_libraries): Ditto.
  175. (handle_v_attach): Ditto.
  176. (captured_main): Ditto.
  177. 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
  178. * linux-low.cc (linux_process_target::filter_event): Return
  179. void.
  180. * linux-low.h (class linux_process_target) <filter_event>:
  181. Return void.
  182. 2021-02-12 Tom Tromey <tromey@adacore.com>
  183. * gdbreplay.cc (remote_desc): Remove.
  184. (remote_desc_in, remote_desc_out): New globals.
  185. (remote_close): Update.
  186. (remote_open): Handle "-".
  187. (remote_open): Update.
  188. (logchar): Log to stderr.
  189. (expect, play): Update.
  190. 2021-02-12 Tom Tromey <tromey@adacore.com>
  191. * gdbreplay.cc (remote_open): Constify.
  192. 2021-02-05 Paul E. Murphy <murphyp@linux.ibm.com>
  193. * Makefile.in (UNDO_GNULIB_CFLAGS): Disable
  194. gnulib free replacement too.
  195. * common-defs.h [USE_WIN32API](read, write): Undefine
  196. gnulib versions before defining these macros.
  197. 2021-02-03 Pedro Alves <pedro@palves.net>
  198. * linux-low.cc (linux_process_target::complete_ongoing_step_over):
  199. Discard step SIGTRAP, unless GDB wanted the thread to step.
  200. 2021-02-03 Pedro Alves <pedro@palves.net>
  201. * server.cc (discard_queued_stop_replies): Don't ever discard the
  202. notification at the head of the list.
  203. 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
  204. * ax.cc (bytecode_address_table): Make static.
  205. * debug.cc (debug_file): Make static.
  206. * linux-low.cc (stopping_threads): Make static.
  207. (step_over_bkpt): Make static.
  208. * linux-x86-low.cc (amd64_emit_ops, i386_emit_ops): Make static.
  209. * tracepoint.cc (stop_tracing_bkpt, flush_trace_buffer_bkpt,
  210. alloced_trace_state_variables, trace_buffer_ctrl,
  211. tracing_start_time, tracing_stop_time, tracing_user_name,
  212. tracing_notes, tracing_stop_note): Make static.
  213. 2021-01-20 Tom de Vries <tdevries@suse.de>
  214. * linux-x86-low.cc (collect_register_i386): New function.
  215. (x86_fill_gregset): Remove memset. Use collect_register_i386.
  216. 2021-01-07 Tom de Vries <tdevries@suse.de>
  217. * Makefile.in (LIBIBERTY_NORMAL, LIBIBERTY_NOASAN, LIBIBERTY_PIC):
  218. (LIBIBERTY_FOR_SHLIB): New var.
  219. (LIBIBERTY): Set using $(LIBIBERTY_NORMAL).
  220. (IPA_LIB): Use LIBIBERTY_FOR_SHLIB instead of LIBIBERTY in target rule.
  221. 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
  222. * debug.cc (debug_print_depth): New.
  223. 2021-01-01 Joel Brobecker <brobecker@adacore.com>
  224. * server.cc (gdbserver_version): Update copyright year.
  225. * gdbreplay.cc (gdbreplay_version): Likewise.
  226. 2020-12-16 Luis Machado <luis.machado@linaro.org>
  227. * linux-aarch64-low.cc (address_significant): New function.
  228. (aarch64_target::low_stopped_data_address): Handle the TBI.
  229. 2020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
  230. * Makefile.in (IPA_LIB): Include libiberty library.
  231. 2020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
  232. * server.cc (gdbserver_usage): Add missing option to usage text.
  233. (gdbserver_show_disableable): Likewise.
  234. 2020-11-02 Simon Marchi <simon.marchi@efficios.com>
  235. * ax.cc: Fix indentation.
  236. * dll.cc: Fix indentation.
  237. * inferiors.h: Fix indentation.
  238. * linux-low.cc: Fix indentation.
  239. * linux-nios2-low.cc: Fix indentation.
  240. * linux-ppc-ipa.cc: Fix indentation.
  241. * linux-ppc-low.cc: Fix indentation.
  242. * linux-x86-low.cc: Fix indentation.
  243. * linux-xtensa-low.cc: Fix indentation.
  244. * regcache.cc: Fix indentation.
  245. * server.cc: Fix indentation.
  246. * tracepoint.cc: Fix indentation.
  247. 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
  248. * acinclude.m4: Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE +
  249. AC_LANG_PROGRAM.
  250. * configure: Re-generate.
  251. 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
  252. * configure: Re-generate.
  253. 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
  254. * configure: Re-generate.
  255. 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
  256. * configure: Re-generate.
  257. 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
  258. * configure: Re-generate.
  259. 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
  260. * configure.ac: Modernize.
  261. * configure: Re-generate.
  262. 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
  263. * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
  264. AC_CANONICAL_SYSTEM.
  265. * configure: Re-generate.
  266. 2020-10-26 Pedro Alves <pedro@palves.net>
  267. * netbsd-low.cc (netbsd_waitpid, netbsd_process_target::kill)
  268. (netbsd_qxfer_libraries_svr4): Use gdb::handle_eintr without
  269. explicit type.
  270. 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
  271. * acinclude.m4: Update ptrace.m4 path.
  272. 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
  273. * config.in: Re-generate.
  274. * configure: Re-generate.
  275. 2020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
  276. * server.cc (handle_general_set): Don't use sprintf with
  277. argument overlapping buffer.
  278. 2020-10-20 Tom Tromey <tromey@adacore.com>
  279. PR gdb/26742:
  280. * inferiors.cc (remove_thread): Clear current_thread before
  281. freeing the thread.
  282. 2020-10-13 Kamil Rytarowski <n54@gmx.com>x
  283. * netbsd-low.cc (netbsd_tdesc): Remove.
  284. (netbsd_add_process): Likewise.
  285. (netbsd_process_target::create_inferior): Update.
  286. 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
  287. * linux-arc-low.cc (arc_linux_read_description): Release the
  288. unique_ptr returned from arc_create_target_description.
  289. 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
  290. * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
  291. or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
  292. 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
  293. * linux-low.cc (linux_process_target::handle_extended_wait):
  294. Release the unique_ptr returned from allocate_target_description.
  295. * linux-riscv-low.cc (riscv_target::low_arch_setup): Likewise.
  296. * linux-x86-low.cc (tdesc_amd64_linux_no_xml): Change type.
  297. (tdesc_i386_linux_no_xml): Change type.
  298. (x86_linux_read_description): Borrow pointer from unique_ptr
  299. object.
  300. (x86_target::get_ipa_tdesc_idx): Likewise.
  301. (initialize_low_arch): Likewise.
  302. * tdesc.cc (allocate_target_description): Update return type.
  303. 2020-10-07 Tom Tromey <tromey@adacore.com>
  304. * server.cc (handle_search_memory): Remove dead code.
  305. 2020-10-07 Tom Tromey <tromey@adacore.com>
  306. * server.cc (handle_search_memory_1): Remove.
  307. (handle_search_memory): Use simple_search_memory.
  308. 2020-10-07 Simon Marchi <simon.marchi@efficios.com>
  309. * Makefile.in (COMPILE): Add CXXFLAGS.
  310. (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
  311. (gdbserver$(EXEEXT)): Add CXXFLAGS.
  312. (gdbreplay$(EXEEXT)): Add CXXFLAGS.
  313. ($(IPA_LIB)): Add CXXFLAGS.
  314. (IPAGENT_COMPILE): Add CXXFLAGS.
  315. 2020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
  316. * configure.srv: Support ARC architecture.
  317. * Makefile.in: Add linux-arc-low.cc and arch/arc.o.
  318. * linux-arc-low.cc: New file.
  319. 2020-10-07 Kamil Rytarowski <n54@gmx.com>
  320. * netbsd-low.cc (get_dynamic, get_r_debug, read_one_ptr)
  321. (netbsd_qxfer_libraries_svr4): Remove "target" argument and update.
  322. (netbsd_process_target::qxfer_libraries_svr4): Update.
  323. 2020-10-07 Kamil Rytarowski <n54@gmx.com>
  324. * netbsd-low.cc: Fix whitespace formatting.
  325. * netbsd-amd64-low.cc: Likewise.
  326. 2020-10-07 Kamil Rytarowski <n54@gmx.com>
  327. * netbsd-low.cc (netbsd_process_target::read_memory)
  328. (netbsd_process_target::write_memory): Update.
  329. 2020-10-07 Kamil Rytarowski <n54@gmx.com>
  330. * netbsd-aarch64-low.cc: Add.
  331. * Makefile.in (SFILES): Register "netbsd-aarch64-low.c".
  332. * configure.srv: Add aarch64*-*-netbsd*.
  333. 2020-10-06 Shahab Vahedi <shahab@synopsys.com>
  334. * regcache.cc (register_data): Remove unused "fetch" argument.
  335. 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
  336. * server.cc (handle_monitor_command): Handle "set
  337. debug-event-loop".
  338. (captured_main): Handle "--debug-event-loop".
  339. (monitor_show_help): Mention new setting.
  340. (gdbserver_usage): Mention new flag.
  341. 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
  342. * linux-low.cc (linux_process_target::async): Pass name to
  343. add_file_handler.
  344. * remote-utils.cc (handle_accept_event): Likewise.
  345. (remote_open): Likewise.
  346. 2020-10-01 Kamil Rytarowski <n54@gmx.com>
  347. * netbsd-i386-low.cc: Add.
  348. * Makefile.in (SFILES): Register "netbsd-i386-low.c".
  349. * configure.srv: Add i[34567]86-*-netbsd*.
  350. 2020-10-01 Kamil Rytarowski <n54@gmx.com>
  351. * netbsd-amd64-low.cc (netbsd_x86_64_arch_setup): Remove.
  352. (netbsd_target_regsets): Now const.
  353. (the_low_target): Remove.
  354. (class netbsd_amd64_target, the_netbsd_amd64_target)
  355. (the_netbsd_target): Add.
  356. * netbsd-low.cc (netbsd_process_target::post_create_inferior): Call
  357. low_arch_setup ().
  358. (netbsd_process_target::fetch_registers)
  359. (netbsd_process_target::store_registers, initialize_low): Update.
  360. (the_netbsd_target): Remove.
  361. * netbsd-low.h (netbsd_target_regsets, netbsd_target_ops)
  362. (the_low_target, netbsd_tdesc): Remove.
  363. (netbsd_process_target::get_regs_info)
  364. (netbsd_process_target::low_arch_setup): Add.
  365. 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
  366. * win32-low.cc: Remove local wow64_process variable.
  367. * win32-low.h: Remove local wow64_process variable.
  368. 2020-09-18 Tom Tromey <tromey@adacore.com>
  369. * netbsd-low.h (class netbsd_process_target) <wait>: Update.
  370. * netbsd-low.cc (netbsd_waitpid, netbsd_wait)
  371. (netbsd_process_target::wait): Change type of target_options.
  372. * win32-low.h (class win32_process_target) <wait>: Update.
  373. * win32-low.cc (win32_process_target::wait): Update.
  374. * target.h (class process_stratum_target) <wait>: Update.
  375. (mywait): Update.
  376. * target.cc (mywait, target_wait): Change type of "options".
  377. * linux-low.h (class linux_process_target) <wait, wait_1>:
  378. Update.
  379. * linux-low.cc (linux_process_target::wait)
  380. (linux_process_target::wait_1): Update.
  381. 2020-09-15 Tom Tromey <tromey@adacore.com>
  382. * linux-x86-low.cc (xmltarget_i386_linux_no_xml)
  383. (xmltarget_amd64_linux_no_xml): Now arrays.
  384. 2020-09-14 Tom Tromey <tromey@adacore.com>
  385. * tracepoint.cc (eval_result_names): Now const.
  386. * ax.cc (gdb_agent_op_names): Now const.
  387. 2020-09-10 Kamil Rytarowski <n54@gmx.com>
  388. * netbsd-low.cc: Add.
  389. * netbsd-low.h: Likewise.
  390. * netbsd-amd64-low.cc: Likewise.
  391. * Makefile.in (SFILES): Register "netbsd-low.cc", "netbsd-low.h",
  392. "netbsd-amd64-low.cc".
  393. * configure.srv: Add x86_64-*-netbsd*.
  394. 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
  395. * server.cc (captured_main): Accept multiple `--selftest=`
  396. options. Pass all `--selftest=` arguments to run_tests.
  397. 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
  398. * configure, config.in: Regenerate.
  399. 2020-07-26 Eli Zaretskii <eliz@gnu.org>
  400. * configure.ac (AC_CHECK_HEADERS): Add ws2tcpip.h.
  401. When checking whether socklen_t type is defined, use ws2tcpip.h if
  402. it is available and sys/socket.h isn't.
  403. * configure: Regenerate.
  404. * config.in: Regenerate.
  405. 2020-07-22 Pedro Alves <pedro@palves.net>
  406. * inferiors.cc (switch_to_process): New, moved here from
  407. thread-db.cc, and made extern.
  408. * inferiors.h (switch_to_process): Declare.
  409. * server.cc: Include "gdbsupport/scoped_restore.h".
  410. (handle_qxfer_threads_proper): Now returns bool. Prepare to
  411. access memory around target calls.
  412. (handle_qxfer_threads): Handle errors.
  413. * thread-db.cc (switch_to_process): Moved to inferiors.cc.
  414. 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
  415. * linux-low.cc (stopped_pids): Make static.
  416. 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
  417. * tdesc.cc (allocate_target_description): Add header comment.
  418. (target_desc_deleter::operator()): New function.
  419. * tdesc.h (struct target_desc): Declare as final.
  420. 2020-07-13 Simon Marchi <simon.marchi@polymtl.ca>
  421. * server.cc (handle_query): Use std::vector of
  422. std::string for `qsupported` vector. Use separate
  423. vector for unknowns.
  424. * target.h (class process_stratum_target) <process_qsupported>:
  425. Change parameters to array_view of const char *.
  426. (target_process_qsupported): Remove `count` parameter.
  427. * target.cc (process_stratum_target::process_qsupported): Change
  428. parameters to array_view of const char *.
  429. * linux-x86-low.cc (class x86_target) <process_qsupported>:
  430. Likewise.
  431. 2020-06-29 Tom de Vries <tdevries@suse.de>
  432. * ax.h: Include gdbsupport/debug_agent.h.
  433. 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
  434. * tdesc.cc (struct tdesc_compatible_info): New struct.
  435. (tdesc_compatible_info_list): New function.
  436. (tdesc_compatible_info_arch_name): New function.
  437. 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  438. Use std::list to stop pending signal instead of manually-created
  439. linked list.
  440. * linux-low.h: Include <list>.
  441. (struct pending_signal): Move here from linux-low.cc.
  442. (struct lwp_info) <pending_signals>
  443. <pending_signals_to_report>: Update the type.
  444. * linux-low.cc (struct pending_signals): Remove.
  445. (linux_process_target::delete_lwp)
  446. (linux_process_target::add_lwp)
  447. (enqueue_one_deferred_signal)
  448. (dequeue_one_deferred_signal)
  449. (enqueue_pending_signal)
  450. (linux_process_target::resume_one_lwp_throw)
  451. (linux_process_target::thread_needs_step_over)
  452. (linux_process_target::resume_one_thread)
  453. (linux_process_target::proceed_one_lwp): Update the use of pending
  454. signal list.
  455. 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
  456. * Makefile.in (%-generated.cc: ../gdb/regformats/arm/%.dat):
  457. Remove.
  458. 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
  459. * Makefile.in (SFILES): Remove win32-arm-low.cc, wincecompat.cc.
  460. * configure.srv: Remove mingw32ce cases.
  461. * server.h, win32-low.cc: Remove __MINGW32CE__-guarded code.
  462. * win32-low.h (to_back_slashes): Remove.
  463. * win32-arm-low.cc, wincecompat.cc, wincecompat.h: Remove.
  464. 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
  465. * Makefile.in (SFILES): linux-tile-low.cc.
  466. * configure.srv: Remove tilegx case.
  467. * linux-tile-low.cc: Remove.
  468. 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
  469. * Makefile.in (SFILES): Remove linux-m32r-low.cc.
  470. * configure.srv: Remove m32r case.
  471. * linux-m32r-low.cc: Remove.
  472. 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
  473. * Makefile.in (SFILES): Remove linux-cris-low.c.
  474. * configure.srv: Remove cris cases.
  475. * linux-cris-low.cc, linux-crisv32-low.cc: Remove.
  476. 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
  477. * Makefile.in (SFILES): Remove linux-bfin-low.c.
  478. * configure.srv: Remove bfin case.
  479. * linux-bfin-low.cc: Remove.
  480. * linux-low.cc: Remove BFIN-conditional code.
  481. 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
  482. * configure: Re-generate.
  483. * configure.ac: Remove srv_qnx test.
  484. * configure.srv: Remove nto case.
  485. * nto-low.cc, nto-low.h, nto-x86-low.cc: Remove.
  486. * remote-utils.c: Remove __QNX__-guarded code.
  487. 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
  488. * configure: Re-generate.
  489. * configure.ac: Remove srv_lynxos test.
  490. * configure.srv: Remove lynxos cases.
  491. * lynx-i386-low.cc, lynx-low.cc, lynx-low.h, lynx-ppc-low.c:
  492. Remove.
  493. 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
  494. * README: Fix a few outdated or incoherent things.
  495. 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
  496. * win32-low.cc (do_initial_child_stuff): Set open_process_used.
  497. (win32_clear_inferiors): Use open_process_used.
  498. (get_child_debug_event): Likewise.
  499. 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
  500. PR gdbserver/25893
  501. * linux-low.cc (linux_process_target::create_inferior),
  502. lynx-low.cc (lynx_process_target::create_inferior),
  503. win32-low.cc (win32_process_target::create_inferior): Use
  504. construct_inferior_arguments instead of stringify_argv
  505. to get string representation which properly escapes
  506. special characters.
  507. * server.cc (handle_v_run): Just pass empty program arg
  508. as such, since any further processing is now handled via
  509. construct_inferior_arguments.
  510. 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
  511. * nto-low.cc (nto_process_target::create_inferior): Pass
  512. argv to spawnp function as char **.
  513. 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
  514. * server.cc (captured_main), (handle_v_run): No longer
  515. insert extra NULL element to args vector.
  516. 2020-05-23 Pedro Alves <palves@redhat.com>
  517. * gdb-safe-ctype.h: New.
  518. 2020-05-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  519. * linux-ia64-low.cc (ia64_target::sw_breakpoint_from_kind):
  520. Fix incorrect 'gdb_assert_no_reached' to 'gdb_assert_not_reached'.
  521. (ia64_target::low_breakpoint_at): Ditto.
  522. 2020-05-15 Hannes Domani <ssbssa@yahoo.de>
  523. * win32-i386-low.cc (i386_supports_z_point_type): Handle
  524. Z_PACKET_HW_BP z_type.
  525. (i386_insert_point): Handle raw_bkpt_type type.
  526. (i386_remove_point): Likewise.
  527. 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
  528. * configure.srv <x86_64-*-mingw*, x86_64-*-cygwin*> (srv_tgtobj):
  529. Add arch/i386.o.
  530. * win32-arm-low.cc (arm_num_regs): New function.
  531. (struct win32_target_ops): Use arm_num_regs.
  532. * win32-i386-low.cc (win32_get_current_dr): Adapt for WOW64
  533. processes.
  534. (i386_get_thread_context): Likewise.
  535. (i386_prepare_to_resume): Likewise.
  536. (i386_thread_added): Likewise.
  537. (i386_single_step): Likewise.
  538. (i386_fetch_inferior_register): Likewise.
  539. (i386_store_inferior_register): Likewise.
  540. (i386_arch_setup): Likewise.
  541. (i386_win32_num_regs): New function.
  542. (struct win32_target_ops): Use i386_win32_num_regs.
  543. * win32-low.cc (win32_get_thread_context): Adapt for WOW64
  544. processes.
  545. (win32_require_context): Likewise.
  546. (child_add_thread): Likewise.
  547. (do_initial_child_stuff): Likewise.
  548. (continue_one_thread): Likewise.
  549. (win32_process_target::resume): Likewise.
  550. (load_psapi): Likewise.
  551. (win32_add_all_dlls): Likewise.
  552. (maybe_adjust_pc): Likewise.
  553. (win32_process_target::qxfer_siginfo): Likewise.
  554. (initialize_low): Likewise.
  555. * win32-low.h (struct win32_target_ops): Change num_regs to
  556. callback function.
  557. 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
  558. * configure.ac: Remove check for fs_base/gs_base in
  559. user_regs_struct.
  560. * configure: Re-generate.
  561. * config.in: Re-generate.
  562. * linux-x86-low.cc (x86_64_regmap, x86_fill_gregset,
  563. x86_store_gregset): Adjust.
  564. 2020-04-22 Hannes Domani <ssbssa@yahoo.de>
  565. * server.cc (handle_search_memory_1): Fix gdb_read_memory return value
  566. comparison.
  567. 2020-04-16 Tom Tromey <tromey@adacore.com>
  568. * win32-low.cc (windows_nat::handle_access_violation): New
  569. function.
  570. 2020-04-15 Simon Marchi <simon.marchi@polymtl.ca>
  571. * win32-low.cc (get_child_debug_event): Fix format string warning.
  572. 2020-04-13 Tom Tromey <tom@tromey.com>
  573. * server.h (gdb_fildes_t): Remove typedef.
  574. * remote-utils.c (remote_desc, list_desc): Now int.
  575. (INVALID_DESCRIPTOR): Remove.
  576. (gdb_connected, remote_close)
  577. (check_remote_input_interrupt_request): Update.
  578. * utils.h (pfildes): Don't declare.
  579. * utils.c (pfildes): Remove.
  580. 2020-04-13 Tom Tromey <tom@tromey.com>
  581. * server.h (handle_serial_event, handle_target_event): Update.
  582. * server.c: Don't call initialize_event_loop.
  583. (keep_processing_events): New global.
  584. (handle_serial_event): Return void. Set keep_processing_events.
  585. (handle_target_event): Return void.
  586. (start_event_loop): Move from event-loop.c. Rewrite.
  587. * remote-utils.c (handle_accept_event): Return void.
  588. (reset_readchar): Use delete_timer.
  589. (process_remaining): Return void.
  590. (reschedule): Use create_timer.
  591. * event-loop.h: Remove.
  592. * event-loop.cc: Remove.
  593. * Makefile.in (OBS): Use gdbsupport/event-loop.o, not event-loop.o.
  594. 2020-04-13 Tom Tromey <tom@tromey.com>
  595. * server.c (invoke_async_signal_handlers)
  596. (check_async_event_handlers, flush_streams, gdb_select): New
  597. functions.
  598. 2020-04-13 Tom Tromey <tom@tromey.com>
  599. * configure: Rebuild.
  600. * config.in: Rebuild.
  601. 2020-04-08 Tom Tromey <tromey@adacore.com>
  602. PR gdb/22992
  603. * win32-low.c (child_continue): Call matching_pending_stop.
  604. (get_child_debug_event): Call fetch_pending_stop. Push pending
  605. stop when needed.
  606. 2020-04-08 Tom Tromey <tromey@adacore.com>
  607. * win32-low.h (win32_process_target::stopped_by_sw_breakpoint)
  608. (win32_process_target::supports_stopped_by_sw_breakpoint):
  609. Declare.
  610. * win32-low.c (win32_supports_z_point_type): Always handle
  611. Z_PACKET_SW_BP.
  612. (win32_insert_point): Call insert_memory_breakpoint when needed.
  613. (win32_remove_point): Call remove_memory_breakpoint when needed.
  614. (win32_process_target::stopped_by_sw_breakpoint)
  615. (win32_process_target::supports_stopped_by_sw_breakpoint): New
  616. methods.
  617. (win32_target_ops): Update.
  618. (maybe_adjust_pc): New function.
  619. (win32_wait): Call maybe_adjust_pc.
  620. 2020-04-08 Tom Tromey <tromey@adacore.com>
  621. * win32-low.h (struct win32_target_ops) <decr_pc_after_break>: New
  622. field.
  623. * win32-i386-low.c (the_low_target): Update.
  624. * win32-arm-low.c (the_low_target): Update.
  625. 2020-04-08 Tom Tromey <tromey@adacore.com>
  626. * win32-low.h (win32_process_target::read_pc)
  627. (win32_process_target::write_pc): Declare.
  628. * win32-low.c (win32_process_target::read_pc)
  629. (win32_process_target::write_pc): New methods.
  630. * win32-i386-low.c (i386_win32_get_pc, i386_win32_set_pc): New
  631. functions.
  632. (the_low_target): Update.
  633. * win32-arm-low.c (arm_win32_get_pc, arm_win32_set_pc): New
  634. functions.
  635. (the_low_target): Update.
  636. 2020-04-08 Tom Tromey <tromey@adacore.com>
  637. * win32-low.c (win32_kill, get_child_debug_event): Use
  638. wait_for_debug_event.
  639. 2020-04-08 Tom Tromey <tromey@adacore.com>
  640. * win32-low.c (child_continue): Call continue_last_debug_event.
  641. 2020-04-08 Tom Tromey <tromey@adacore.com>
  642. * win32-low.c (handle_exception): Remove.
  643. (windows_nat::handle_ms_vc_exception): New function.
  644. (get_child_debug_event): Add "continue_status" parameter.
  645. Update.
  646. (win32_wait): Update.
  647. 2020-04-08 Tom Tromey <tromey@adacore.com>
  648. * win32-low.c (windows_nat::handle_load_dll): Rename from
  649. handle_load_dll. No longer static.
  650. (windows_nat::handle_unload_dll): Rename from handle_unload_dll.
  651. No longer static.
  652. 2020-04-08 Tom Tromey <tromey@adacore.com>
  653. * win32-low.c (handle_output_debug_string): Add parameter. Change
  654. return type.
  655. (win32_kill, get_child_debug_event): Update.
  656. 2020-04-08 Tom Tromey <tromey@adacore.com>
  657. * win32-low.c (current_process_handle, current_process_id)
  658. (main_thread_id, last_sig, current_event, siginfo_er): Move to
  659. nat/windows-nat.c.
  660. 2020-04-08 Tom Tromey <tromey@adacore.com>
  661. * win32-low.c (get_image_name): Remove.
  662. (handle_load_dll): Update.
  663. 2020-04-08 Tom Tromey <tromey@adacore.com>
  664. * win32-low.c (windows_nat::thread_rec): Rename from thread_rec.
  665. No longer static. Change parameters.
  666. (child_add_thread, child_fetch_inferior_registers)
  667. (child_store_inferior_registers, win32_resume)
  668. (win32_get_tib_address): Update.
  669. 2020-04-08 Tom Tromey <tromey@adacore.com>
  670. * win32-low.h (struct win32_target_ops): Use qualified names where
  671. needed.
  672. * win32-i386-low.c: Add "using namespace".
  673. * win32-low.c: Add "using namespace".
  674. * win32-arm-low.c: Add "using namespace".
  675. 2020-04-08 Tom Tromey <tromey@adacore.com>
  676. * win32-low.c (delete_thread_info): Don't call CloseHandle.
  677. 2020-04-08 Tom Tromey <tromey@adacore.com>
  678. * win32-low.c (win32_require_context, suspend_one_thread): Use
  679. windows_thread_info::suspend.
  680. (continue_one_thread): Use windows_thread_info::resume.
  681. * configure.srv (srv_tgtobj): Add windows-nat.o when needed.
  682. 2020-04-08 Tom Tromey <tromey@adacore.com>
  683. * win32-i386-low.c (update_debug_registers)
  684. (i386_prepare_to_resume, i386_thread_added): Update.
  685. 2020-04-08 Tom Tromey <tromey@adacore.com>
  686. * win32-low.c (child_add_thread): Use new.
  687. (delete_thread_info): Use delete.
  688. 2020-04-08 Tom Tromey <tromey@adacore.com>
  689. * win32-low.h (struct windows_thread_info): Remove.
  690. 2020-04-08 Tom Tromey <tromey@adacore.com>
  691. * win32-low.h (struct windows_thread_info): Rename from
  692. win32_thread_info. Remove typedef.
  693. (struct win32_target_ops, win32_require_context): Update.
  694. * win32-low.c (win32_get_thread_context)
  695. (win32_set_thread_context, win32_prepare_to_resume)
  696. (win32_require_context, thread_rec, child_add_thread)
  697. (delete_thread_info, continue_one_thread)
  698. (child_fetch_inferior_registers, child_store_inferior_registers)
  699. (win32_resume, suspend_one_thread, win32_get_tib_address):
  700. Update.
  701. * win32-i386-low.c (update_debug_registers)
  702. (win32_get_current_dr, i386_get_thread_context)
  703. (i386_prepare_to_resume, i386_thread_added, i386_single_step)
  704. (i386_fetch_inferior_register, i386_store_inferior_register):
  705. Update.
  706. * win32-arm-low.c (arm_get_thread_context)
  707. (arm_fetch_inferior_register, arm_store_inferior_register):
  708. Update.
  709. 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  710. * linux-low.h (struct linux_target_ops): Remove.
  711. (the_low_target): Remove.
  712. * linux-x86-low.cc (the_low_target): Remove.
  713. * linux-aarch64-low.cc (the_low_target): Ditto.
  714. * linux-arm-low.cc (the_low_target): Ditto.
  715. * linux-bfin-low.cc (the_low_target): Ditto.
  716. * linux-cris-low.cc (the_low_target): Ditto.
  717. * linux-crisv32-low.cc (the_low_target): Ditto.
  718. * linux-ia64-low.cc (the_low_target): Ditto.
  719. * linux-m32r-low.cc (the_low_target): Ditto.
  720. * linux-m68k-low.cc (the_low_target): Ditto.
  721. * linux-mips-low.cc (the_low_target): Ditto.
  722. * linux-nios2-low.cc (the_low_target): Ditto.
  723. * linux-ppc-low.cc (the_low_target): Ditto.
  724. * linux-riscv-low.cc (the_low_target): Ditto.
  725. * linux-s390-low.cc (the_low_target): Ditto.
  726. * linux-sh-low.cc (the_low_target): Ditto.
  727. * linux-sparc-low.cc (the_low_target): Ditto.
  728. * linux-tic6x-low.cc (the_low_target): Ditto.
  729. * linux-tile-low.cc (the_low_target): Ditto.
  730. * linux-xtensa-low.cc (the_low_target): Ditto.
  731. 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  732. Remove the 'get_ipa_tdesc_idx' linux target op and let a concrete
  733. linux target define the op by overriding the declaration in
  734. process_stratum_target.
  735. * linux-low.h (struct linux_target_ops): Remove the op.
  736. (class linux_process_target) <get_ipa_tdesc_idx>: Remove.
  737. * linux-low.cc (linux_process_target::get_ipa_tdesc_idx): Remove.
  738. * linux-x86-low.cc (class x86_target) <get_ipa_tdesc_idx>: Declare.
  739. (x86_get_ipa_tdesc_idx): Turn into...
  740. (x86_target::get_ipa_tdesc_idx): ...this.
  741. (the_low_target): Remove the op field.
  742. * linux-ppc-low.cc (class ppc_target) <get_ipa_tdesc_idx>: Declare.
  743. (ppc_get_ipa_tdesc_idx): Turn into...
  744. (ppc_target::get_ipa_tdesc_idx): ...this.
  745. (the_low_target): Remove the op field.
  746. * linux-s390-low.cc (class s390_target) <get_ipa_tdesc_idx>: Declare.
  747. (s390_get_ipa_tdesc_idx): Turn into...
  748. (s390_target::get_ipa_tdesc_idx): ...this.
  749. (the_low_target): Remove the op field.
  750. 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  751. Turn the 'get_syscall_trapinfo' linux target op into a method
  752. of process_stratum_target.
  753. * linux-low.h (struct linux_target_ops): Remove the op.
  754. (class linux_process_target) <get_syscall_trapinfo>
  755. <gdb_catch_this_syscall>
  756. <low_supports_catch_syscall>
  757. <low_get_syscall_trapinfo>: Declare.
  758. * linux-low.cc (get_syscall_trapinfo): Turn into...
  759. (linux_process_target::get_syscall_trapinfo): ...this.
  760. (linux_process_target::low_get_syscall_trapinfo): Define.
  761. (gdb_catch_this_syscall_p): Turn into...
  762. (linux_process_target::gdb_catch_this_syscall): ...this.
  763. (linux_process_target::low_supports_catch_syscall): Define.
  764. Update the callers below.
  765. (linux_process_target::wait_1)
  766. (linux_process_target::supports_catch_syscall)
  767. * linux-x86-low.cc (class x86_target) <low_supports_catch_syscall>
  768. <low_get_syscall_trapinfo>: Declare.
  769. (x86_target::low_supports_catch_syscall): Define.
  770. (x86_get_syscall_trapinfo): Turn into...
  771. (x86_target::low_get_syscall_trapinfo): ...this.
  772. (the_low_target): Remove the op field.
  773. * linux-aarch64-low.cc (class aarch64_target)
  774. <low_supports_catch_syscall>
  775. <low_get_syscall_trapinfo>: Declare.
  776. (aarch64_target::low_supports_catch_syscall): Define.
  777. (aarch64_get_syscall_trapinfo): Turn into...
  778. (aarch64_target::low_get_syscall_trapinfo): ...this.
  779. (the_low_target): Remove the op field.
  780. * linux-arm-low.cc (class arm_target) <low_supports_catch_syscall>
  781. <low_get_syscall_trapinfo>: Declare.
  782. (arm_target::low_supports_catch_syscall): Define.
  783. (arm_get_syscall_trapinfo): Turn into...
  784. (arm_target::low_get_syscall_trapinfo): ...this.
  785. (the_low_target): Remove the op field.
  786. * linux-ppc-low.cc (the_low_target): Remove the op field.
  787. * linux-s390-low.cc (the_low_target): Remove the op field.
  788. 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  789. Remove the 'supports_hardware_single_step' linux target op and
  790. override the process_stratum_target's op definition in
  791. linux_process_target to return true.
  792. * linux-low.h (struct linux_target_ops): Remove the op.
  793. (class linux_process_target) <finish_step_over>
  794. <maybe_hw_step>: Declare.
  795. * linux-low.cc (can_hardware_single_step): Remove.
  796. (maybe_hw_step): Turn into...
  797. (linux_process_target::maybe_hw_step): ...this.
  798. (finish_step_over): Turn into...
  799. (linux_process_target::finish_step_over): ...this.
  800. (linux_process_target::supports_hardware_single_step): Update
  801. to return true.
  802. Update the callers below.
  803. (linux_process_target::single_step)
  804. (linux_process_target::resume_one_lwp_throw)
  805. * linux-arm-low.cc (class arm_target)
  806. <supports_hardware_single_step>: Declare.
  807. (arm_supports_hardware_single_step): Turn into...
  808. (arm_target::supports_hardware_single_step): ...this.
  809. (the_low_target): Remove the op field.
  810. * linux-x86-low.cc (x86_supports_hardware_single_step): Remove.
  811. (the_low_target): Remove the op field.
  812. * linux-aarch64-low.cc (aarch64_supports_hardware_single_step):
  813. Remove.
  814. (the_low_target): Remove the op field.
  815. * linux-bfin-low.cc (bfin_supports_hardware_single_step): Remove.
  816. (the_low_target): Remove the op field.
  817. * linux-crisv32-low.cc (cris_supports_hardware_single_step): Remove.
  818. (the_low_target): Remove the op field.
  819. * linux-m32r-low.cc (m32r_supports_hardware_single_step): Remove.
  820. (the_low_target): Remove the op field.
  821. * linux-m68k-low.cc (m68k_supports_hardware_single_step): Remove.
  822. (the_low_target): Remove the op field.
  823. * linux-ppc-low.cc (ppc_supports_hardware_single_step): Remove.
  824. (the_low_target): Remove the op field.
  825. * linux-s390-low.cc (s390_supports_hardware_single_step): Remove.
  826. (the_low_target): Remove the op field.
  827. * linux-sh-low.cc (sh_supports_hardware_single_step): Remove.
  828. (the_low_target): Remove the op field.
  829. * linux-tic6x-low.cc (tic6x_supports_hardware_single_step): Remove.
  830. (the_low_target): Remove the op field.
  831. * linux-tile-low.cc (tile_supports_hardware_single_step): Remove.
  832. (the_low_target): Remove the op field.
  833. * linux-xtensa-low.cc (xtensa_supports_hardware_single_step):
  834. Remove.
  835. (the_low_target): Remove the op field.
  836. 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  837. Turn the 'supports_range_stepping' linux target op into a method
  838. of linux_process_target.
  839. * linux-low.h (struct linux_target_ops): Remove the op.
  840. (class linux_process_target) <low_supports_range_stepping>: Declare.
  841. * linux-low.cc (linux_process_target::low_supports_range_stepping):
  842. Define.
  843. (linux_process_target::supports_range_stepping): Update the call
  844. site.
  845. * linux-x86-low.cc (class x86_target)
  846. <low_supports_range_stepping>: Declare.
  847. (x86_supports_range_stepping): Turn into...
  848. (x86_target::low_supports_range_stepping): ...this.
  849. (the_low_target): Remove the op field.
  850. * linux-aarch64-low.cc (class aarch64_target)
  851. <low_supports_range_stepping>: Declare.
  852. (aarch64_supports_range_stepping): Turn into...
  853. (aarch64_target::low_supports_range_stepping): ...this.
  854. (the_low_target): Remove the op field.
  855. * linux-arm-low.cc (the_low_target): Remove the op field.
  856. * linux-bfin-low.cc (the_low_target): Ditto.
  857. * linux-crisv32-low.cc (the_low_target): Ditto.
  858. * linux-m32r-low.cc (the_low_target): Ditto.
  859. * linux-m68k-low.cc (the_low_target): Ditto.
  860. * linux-ppc-low.cc (the_low_target): Ditto.
  861. * linux-s390-low.cc (the_low_target): Ditto.
  862. * linux-sh-low.cc (the_low_target): Ditto.
  863. * linux-tic6x-low.cc (the_low_target): Ditto.
  864. * linux-tile-low.cc (the_low_target): Ditto.
  865. * linux-xtensa-low.cc (the_low_target): Ditto.
  866. 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  867. Remove the 'emit_ops' linux target ops and let the concrete
  868. linux target define the op by overriding the declaration of
  869. process_stratum_target.
  870. * linux-low.h (struct linux_target_ops): Remove the op.
  871. (class linux_process_target) <emit_ops>: Remove.
  872. * linux-low.cc (linux_process_target::emit_ops): Remove.
  873. * linux-x86-low.cc (class x86_target) <emit_ops>: Declare.
  874. (x86_emit_ops): Turn into...
  875. (x86_target::emit_ops): ...this.
  876. (the_low_target): Remove the op field.
  877. * linux-aarch64-low.cc (class aarch64_target) <emit_ops>: Declare.
  878. (aarch64_emit_ops): Turn into...
  879. (aarch64_target::emit_ops): ...this.
  880. (the_low_target): Remove the op field.
  881. * linux-ppc-low.cc (class ppc_target) <emit_ops>: Declare.
  882. (ppc_emit_ops): Turn into...
  883. (ppc_target::emit_ops): ...this.
  884. (the_low_target): Remove the op field.
  885. * linux-s390-low.cc (class s390_target) <emit_ops>: Declare.
  886. (s390_emit_ops): Turn into...
  887. (s390_target::emit_ops): ...this.
  888. (the_low_target): Remove the op field.
  889. * linux-arm-low.cc (the_low_target): Remove the op field.
  890. * linux-bfin-low.cc (the_low_target): Ditto.
  891. * linux-crisv32-low.cc (the_low_target): Ditto.
  892. * linux-m32r-low.cc (the_low_target): Ditto.
  893. * linux-m68k-low.cc (the_low_target): Ditto.
  894. * linux-sh-low.cc (the_low_target): Ditto.
  895. * linux-tic6x-low.cc (the_low_target): Ditto.
  896. * linux-tile-low.cc (the_low_target): Ditto.
  897. * linux-xtensa-low.cc (the_low_target): Ditto.
  898. 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  899. Remove the 'install_fast_tracepoint_jump_pad' and
  900. 'get_min_fast_tracepoint_insn_len' linux target ops to let the
  901. concrete linux target define the ops by overriding the declarations
  902. of process_stratum_target.
  903. * linux-low.h (struct linux_target_ops): Remove the ops.
  904. (class linux_process_target) <supports_fast_tracepoints>
  905. <install_fast_tracepoint_jump_pad>
  906. <get_min_fast_tracepoint_insn_len>: Remove.
  907. * linux-low.cc (linux_process_target::supports_fast_tracepoints)
  908. (linux_process_target::install_fast_tracepoint_jump_pad)
  909. (linux_process_target::get_min_fast_tracepoint_insn_len): Remove.
  910. * linux-x86-low.cc (class x86_target) <supports_fast_tracepoints>
  911. <install_fast_tracepoint_jump_pad>
  912. <get_min_fast_tracepoint_insn_len>: Declare.
  913. (x86_target::supports_fast_tracepoints): Define.
  914. (x86_install_fast_tracepoint_jump_pad): Turn into...
  915. (x86_target::install_fast_tracepoint_jump_pad): ...this.
  916. (x86_get_min_fast_tracepoint_insn_len): Turn into...
  917. (x86_target::get_min_fast_tracepoint_insn_len): ...this.
  918. (the_low_target): Remove the op fields.
  919. * linux-aarch64-low.cc (class aarch64_target)
  920. <supports_fast_tracepoints>
  921. <install_fast_tracepoint_jump_pad>
  922. <get_min_fast_tracepoint_insn_len>: Declare.
  923. (aarch64_target::supports_fast_tracepoints): Define.
  924. (aarch64_install_fast_tracepoint_jump_pad): Turn into...
  925. (aarch64_target::install_fast_tracepoint_jump_pad): ...this.
  926. (aarch64_get_min_fast_tracepoint_insn_len): Turn into...
  927. (aarch64_target::get_min_fast_tracepoint_insn_len): ...this.
  928. (the_low_target): Remove the op fields.
  929. * linux-ppc-low.cc (class ppc_target) <supports_fast_tracepoints>
  930. <install_fast_tracepoint_jump_pad>
  931. <get_min_fast_tracepoint_insn_len>: Declare.
  932. (ppc_target::supports_fast_tracepoints): Define.
  933. (ppc_install_fast_tracepoint_jump_pad): Turn into...
  934. (ppc_target::install_fast_tracepoint_jump_pad): ...this.
  935. (ppc_get_min_fast_tracepoint_insn_len): Turn into...
  936. (ppc_target::get_min_fast_tracepoint_insn_len): ...this.
  937. (the_low_target): Remove the op fields.
  938. * linux-s390-low.cc (class s390_target) <supports_fast_tracepoints>
  939. <install_fast_tracepoint_jump_pad>
  940. <get_min_fast_tracepoint_insn_len>: Declare.
  941. (s390_target::supports_fast_tracepoints): Define.
  942. (s390_install_fast_tracepoint_jump_pad): Turn into...
  943. (s390_target::install_fast_tracepoint_jump_pad): ...this.
  944. (s390_get_min_fast_tracepoint_insn_len): Turn into...
  945. (s390_target::get_min_fast_tracepoint_insn_len): ...this.
  946. (the_low_target): Remove the op fields.
  947. * linux-arm-low.cc (the_low_target): Remove the op fields.
  948. * linux-bfin-low.cc (the_low_target): Ditto.
  949. * linux-crisv32-low.cc (the_low_target): Ditto.
  950. * linux-m32r-low.cc (the_low_target): Ditto.
  951. * linux-m68k-low.cc (the_low_target): Ditto.
  952. * linux-sh-low.cc (the_low_target): Ditto.
  953. * linux-tic6x-low.cc (the_low_target): Ditto.
  954. * linux-tile-low.cc (the_low_target): Ditto.
  955. * linux-xtensa-low.cc (the_low_target): Ditto.
  956. 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  957. Turn the 'get_thread_area' linux target op into a method of
  958. process_stratum_target.
  959. * linux-low.h (struct linux_target_ops): Remove the op.
  960. (class linux_process_target) <stuck_in_jump_pad>
  961. <linux_fast_tracepoint_collecting>
  962. <low_get_thread_area>: Declare.
  963. * linux-low.cc (supports_fast_tracepoints): Remove.
  964. (linux_fast_tracepoint_collecting): Turn into...
  965. (linux_process_target::linux_fast_tracepoint_collecting): ...this.
  966. (linux_process_target::low_get_thread_area): Define.
  967. (stuck_in_jump_pad_callback): Turn into...
  968. (linux_process_target::stuck_in_jump_pad): ...this.
  969. Update the caller below.
  970. (linux_process_target::stabilize_threads)
  971. * linux-x86-low.cc (class x86_target) <low_get_thread_area>:
  972. Declare.
  973. (x86_get_thread_area): Turn into...
  974. (x86_target::low_get_thread_area): ...this.
  975. (the_low_target): Remove the op field.
  976. * linux-aarch64-low.cc (class aarch64_target) <low_get_thread_area>:
  977. Declare.
  978. (aarch64_get_thread_area): Turn into...
  979. (aarch64_target::low_get_thread_area): ...this.
  980. (the_low_target): Remove the op field.
  981. * linux-ppc-low.cc (class ppc_target) <low_get_thread_area>:
  982. Declare.
  983. (ppc_get_thread_area): Turn into...
  984. (ppc_target::low_get_thread_area): ...this.
  985. (the_low_target): Remove the op field.
  986. * linux-s390-low.cc (class s390_target) <low_get_thread_area>:
  987. Declare.
  988. (s390_get_thread_area): Turn into...
  989. (s390_target::low_get_thread_area): ...this.
  990. (the_low_target): Remove the op field.
  991. * linux-arm-low.cc (the_low_target): Remove the op field.
  992. * linux-bfin-low.cc (the_low_target): Ditto.
  993. * linux-crisv32-low.cc (the_low_target): Ditto.
  994. * linux-m32r-low.cc (the_low_target): Ditto.
  995. * linux-m68k-low.cc (the_low_target): Ditto.
  996. * linux-sh-low.cc (the_low_target): Ditto.
  997. * linux-tic6x-low.cc (the_low_target): Ditto.
  998. * linux-tile-low.cc (the_low_target): Ditto.
  999. * linux-xtensa-low.cc (the_low_target): Ditto.
  1000. 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  1001. Remote the 'supports_tracepoints' linux target op and let the
  1002. concrete linux target define it by overriding the op declared in
  1003. process_stratum_target.
  1004. * linux-low.h (struct linux_target_ops): Remove the op.
  1005. (class linux_process_target) <supports_tracepoints>: Remove.
  1006. * linux-low.cc (linux_process_target::supports_tracepoints): Remove.
  1007. * linux-x86-low.cc (class x86_target) <supports_tracepoints>:
  1008. Declare.
  1009. (x86_supports_tracepoints): Turn into...
  1010. (x86_target::supports_tracepoints): ...this.
  1011. (the_low_target): Remove the op field.
  1012. * linux-aarch64-low.cc (class aarch64_target)
  1013. <supports_tracepoints>: Declare.
  1014. (aarch64_supports_tracepoints): Turn into...
  1015. (aarch64_target::supports_tracepoints): ...this.
  1016. (the_low_target): Remove the op field.
  1017. * linux-ppc-low.cc (class ppc_target) <supports_tracepoints>:
  1018. Declare.
  1019. (ppc_supports_tracepoints): Turn into...
  1020. (ppc_target::supports_tracepoints): ...this.
  1021. (the_low_target): Remove the op field.
  1022. * linux-s390-low.cc (class s390_target) <supports_tracepoints>:
  1023. Declare.
  1024. (s390_supports_tracepoints): Turn into...
  1025. (s390_target::supports_tracepoints): ...this.
  1026. (the_low_target): Remove the op field.
  1027. * linux-arm-low.cc (the_low_target): Remove the op field.
  1028. * linux-bfin-low.cc (the_low_target): Ditto.
  1029. * linux-crisv32-low.cc (the_low_target): Ditto.
  1030. * linux-m32r-low.cc (the_low_target): Ditto.
  1031. * linux-m68k-low.cc (the_low_target): Ditto.
  1032. * linux-sh-low.cc (the_low_target): Ditto.
  1033. * linux-tic6x-low.cc (the_low_target): Ditto.
  1034. * linux-tile-low.cc (the_low_target): Ditto.
  1035. * linux-xtensa-low.cc (the_low_target): Ditto.
  1036. 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  1037. Remove the 'process_qsupported' linux target op and let a concrete
  1038. linux target define the op by overriding the op declaration in
  1039. process_stratum_target.
  1040. * linux-low.h (struct linux_target_ops): Remove the op.
  1041. (class linux_process_target) <process_qsupported>: Remove.
  1042. * linux-low.cc (linux_process_target::process_qsupported): Remove.
  1043. * linux-x86-low.cc (class x86_target) <process_qsupported>: Declare.
  1044. (x86_linux_process_qsupported): Turn into...
  1045. (x86_target::process_qsupported): ...this.
  1046. (the_low_target): Remove the op field.
  1047. * linux-aarch64-low.cc (the_low_target): Remove the op
  1048. field.
  1049. * linux-arm-low.cc (the_low_target): Ditto.
  1050. * linux-bfin-low.cc (the_low_target): Ditto.
  1051. * linux-crisv32-low.cc (the_low_target): Ditto.
  1052. * linux-m32r-low.cc (the_low_target): Ditto.
  1053. * linux-m68k-low.cc (the_low_target): Ditto.
  1054. * linux-ppc-low.cc (the_low_target): Ditto.
  1055. * linux-s390-low.cc (the_low_target): Ditto.
  1056. * linux-sh-low.cc (the_low_target): Ditto.
  1057. * linux-tic6x-low.cc (the_low_target): Ditto.
  1058. * linux-tile-low.cc (the_low_target): Ditto.
  1059. * linux-xtensa-low.cc (the_low_target): Ditto.
  1060. 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  1061. Turn the 'prepare_to_resume' linux target op into a method of
  1062. linux_process_target.
  1063. * linux-low.h (struct linux_target_ops): Remove the op.
  1064. (class linux_process_target) <low_prepare_to_resume>: Declare.
  1065. * linux-low.cc (linux_process_target::low_prepare_to_resume):
  1066. Define.
  1067. Update the callers below:
  1068. (linux_process_target::resume_one_lwp_throw)
  1069. (linux_process_target::low_prepare_to_resume)
  1070. * linux-x86-low.cc (class x86_target) <low_prepare_to_resume>:
  1071. Declare.
  1072. (x86_target::low_prepare_to_resume): Define.
  1073. (the_low_target): Remove the op field.
  1074. * linux-aarch64-low.cc (class aarch64_target)
  1075. <low_prepare_to_resume>: Declare.
  1076. (aarch64_target::low_prepare_to_resume): Define.
  1077. (the_low_target): Remove the op field.
  1078. * linux-arm-low.cc (class arm_target) <low_prepare_to_resume>:
  1079. Declare.
  1080. (arm_prepare_to_resume): Turn into...
  1081. (arm_target::low_prepare_to_resume): ...this.
  1082. (the_low_target): Remove the op field.
  1083. * linux-mips-low.cc (class mips_target) <low_prepare_to_resume>:
  1084. Declare.
  1085. (mips_linux_prepare_to_resume): Turn into...
  1086. (mips_target::low_prepare_to_resume): ...this.
  1087. (the_low_target): Remove the op field.
  1088. * linux-bfin-low.cc (the_low_target): Remove the op field.
  1089. * linux-crisv32-low.cc (the_low_target): Ditto.
  1090. * linux-m32r-low.cc (the_low_target): Ditto.
  1091. * linux-m68k-low.cc (the_low_target): Ditto.
  1092. * linux-ppc-low.cc (the_low_target): Ditto.
  1093. * linux-s390-low.cc (the_low_target): Ditto.
  1094. * linux-sh-low.cc (the_low_target): Ditto.
  1095. * linux-tic6x-low.cc (the_low_target): Ditto.
  1096. * linux-tile-low.cc (the_low_target): Ditto.
  1097. * linux-xtensa-low.cc (the_low_target): Ditto.
  1098. 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  1099. Turn the 'new_process', 'delete_process', 'new_thread',
  1100. 'delete_thread', and 'new_fork' linux target ops into methods
  1101. of linux_process_target.
  1102. * linux-low.h (struct linux_target_ops): Remove the ops.
  1103. (class linux_process_target) <add_linux_process>
  1104. <add_lwp>
  1105. <delete_lwp>
  1106. <attach_lwp>
  1107. <detach_one_lwp>
  1108. <check_zombie_leaders>
  1109. <filter_exit_event>
  1110. <low_new_process>
  1111. <low_delete_process>
  1112. <low_new_thread>
  1113. <low_delete_thread>
  1114. <low_new_fork>: Declare.
  1115. * linux-low.cc (delete_lwp): Turn into...
  1116. (linux_process_target::delete_lwp): ...this.
  1117. (linux_process_target::low_delete_thread): Define.
  1118. (linux_add_process): Turn into...
  1119. (linux_process_target::add_linux_process): ...this.
  1120. (linux_process_target::low_new_process): Define.
  1121. (linux_process_target::low_delete_process): Define.
  1122. (linux_process_target::low_new_fork): Define.
  1123. (add_lwp): Turn into...
  1124. (linux_process_target::add_lwp): ...this.
  1125. (linux_process_target::low_new_thread): Define.
  1126. (linux_attach_lwp): Turn into...
  1127. (linux_process_target::attach_lwp): ...this.
  1128. (linux_detach_one_lwp): Turn into...
  1129. (linux_process_target::detach_one_lwp): ...this.
  1130. (linux_detach_lwp_callback): Remove and inline...
  1131. (linux_process_target::detach): ...here.
  1132. (check_zombie_leaders): Turn into...
  1133. (linux_process_target::check_zombie_leaders): ...this.
  1134. (filter_exit_event): Turn into...
  1135. (linux_process_target::filter_exit_event): ...this.
  1136. Update the callers below.
  1137. (linux_process_target::handle_extended_wait)
  1138. (linux_process_target::create_inferior)
  1139. (attach_proc_task_lwp_callback)
  1140. (linux_process_target::attach)
  1141. (linux_process_target::detach)
  1142. (linux_process_target::mourn)
  1143. * thread-db.cc (attach_thread)
  1144. * linux-x86-low.cc (class x86_target) <low_new_process>
  1145. <low_delete_process>
  1146. <low_new_thread>
  1147. <low_delete_thread>
  1148. <low_new_fork>: Declare.
  1149. (x86_linux_new_process): Turn into...
  1150. (x86_target::low_new_process): ...this.
  1151. (x86_linux_delete_process): Turn into...
  1152. (x86_target::low_delete_process): ...this.
  1153. (x86_target::low_new_thread): Define.
  1154. (x86_target::low_delete_thread): Define.
  1155. (x86_linux_new_fork): Turn into...
  1156. (x86_target::low_new_fork): ...this.
  1157. (the_low_target): Remove the op fields.
  1158. * linux-aarch64-low.cc (class aarch64_target) <low_new_process>
  1159. <low_delete_process>
  1160. <low_new_thread>
  1161. <low_delete_thread>
  1162. <low_new_fork>: Declare.
  1163. (aarch64_linux_new_process): Turn into...
  1164. (aarch64_target::low_new_process): ...this.
  1165. (aarch64_linux_delete_process): Turn into...
  1166. (aarch64_target::low_delete_process): ...this.
  1167. (aarch64_target::low_new_thread): Define.
  1168. (aarch64_target::low_delete_thread): Define.
  1169. (aarch64_linux_new_fork): Turn into...
  1170. (aarch64_target::low_new_fork): ...this.
  1171. (the_low_target): Remove the op fields.
  1172. * linux-arm-low.cc (class arm_target) <low_new_process>
  1173. <low_delete_process>
  1174. <low_new_thread>
  1175. <low_delete_thread>
  1176. <low_new_fork>: Declare.
  1177. (arm_new_process): Turn into...
  1178. (arm_target::low_new_process): ...this.
  1179. (arm_delete_process): Turn into...
  1180. (arm_target::low_delete_process): ...this.
  1181. (arm_new_thread): Turn into...
  1182. (arm_target::low_new_thread): ...this.
  1183. (arm_delete_thread): Turn into...
  1184. (arm_target::low_delete_thread): ...this.
  1185. (arm_new_fork): Turn into...
  1186. (arm_target::low_new_fork): ...this.
  1187. (the_low_target): Remove the op fields.
  1188. * linux-mips-low.cc (class mips_target) <low_new_process>
  1189. <low_delete_process>
  1190. <low_new_thread>
  1191. <low_delete_thread>
  1192. <low_new_fork>: Declare.
  1193. (mips_linux_new_process): Turn into...
  1194. (mips_target::low_new_process): ...this.
  1195. (mips_linux_delete_process): Turn into...
  1196. (mips_target::low_delete_process): ...this.
  1197. (mips_linux_new_thread): Turn into...
  1198. (mips_target::low_new_thread): ...this.
  1199. (mips_linux_delete_thread): Turn into...
  1200. (mips_target::low_delete_thread): ...this.
  1201. (mips_linux_new_fork): Turn into...
  1202. (mips_target::low_new_fork): ...this.
  1203. (the_low_target): Remove the op fields.
  1204. * linux-bfin-low.cc (the_low_target): Remove the op fields.
  1205. * linux-crisv32-low.cc (the_low_target): Ditto.
  1206. * linux-m32r-low.cc (the_low_target): Ditto.
  1207. * linux-m68k-low.cc (the_low_target): Ditto.
  1208. * linux-ppc-low.cc (the_low_target): Ditto.
  1209. * linux-s390-low.cc (the_low_target): Ditto.
  1210. * linux-sh-low.cc (the_low_target): Ditto.
  1211. * linux-tic6x-low.cc (the_low_target): Ditto.
  1212. * linux-tile-low.cc (the_low_target): Ditto.
  1213. * linux-xtensa-low.cc (the_low_target): Ditto.
  1214. 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  1215. Turn the 'siginfo_fixup' linux target op into a method of
  1216. linux_process_target.
  1217. * linux-low.h (struct linux_target_ops): Remove the op.
  1218. (class linux_process_target) <siginfo_fixup>
  1219. <low_siginfo_fixup>: Declare.
  1220. * linux-low.cc (siginfo_fixup): Turn into...
  1221. (linux_process_target::siginfo_fixup): ...this.
  1222. (linux_process_target::low_siginfo_fixup): Define.
  1223. * linux-x86-low.cc (class x86_target) <low_siginfo_fixup>: Declare.
  1224. (x86_siginfo_fixup): Turn into...
  1225. (x86_target::low_siginfo_fixup): ...this.
  1226. (the_low_target): Remove the op field.
  1227. * linux-aarch64-low.cc (class aarch64_target):
  1228. <low_siginfo_fixup>: Declare.
  1229. (aarch64_linux_siginfo_fixup): Turn into...
  1230. (aarch64_target::low_siginfo_fixup): ...this.
  1231. (the_low_target): Remove the op field.
  1232. * linux-arm-low.cc (the_low_target): Remove the op field.
  1233. * linux-bfin-low.cc (the_low_target): Ditto.
  1234. * linux-crisv32-low.cc (the_low_target): Ditto.
  1235. * linux-m32r-low.cc (the_low_target): Ditto.
  1236. * linux-m68k-low.cc (the_low_target): Ditto.
  1237. * linux-mips-low.cc (the_low_target): Ditto.
  1238. * linux-ppc-low.cc (the_low_target): Ditto.
  1239. * linux-s390-low.cc (the_low_target): Ditto.
  1240. * linux-sh-low.cc (the_low_target): Ditto.
  1241. * linux-tic6x-low.cc (the_low_target): Ditto.
  1242. * linux-tile-low.cc (the_low_target): Ditto.
  1243. * linux-xtensa-low.cc (the_low_target): Ditto.
  1244. 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  1245. Turn the 'collect_ptrace_register' and 'supply_ptrace_register'
  1246. linux target ops into methods of linux_process_target.
  1247. * linux-low.h (struct linux_target_ops): Remove the ops.
  1248. (class linux_process_target) <low_collect_ptrace_register>
  1249. <low_store_ptrace_register>: Declare.
  1250. * linux-low.cc (linux_process_target::low_collect_ptrace_register)
  1251. (linux_process_target::low_supply_ptrace_register): Define.
  1252. Update the callers below.
  1253. (linux_process_target::fetch_register)
  1254. (linux_process_target::store_register)
  1255. * linux-x86-low.cc (the_low_target): Remove the op fields.
  1256. * linux-aarch64-low.cc (the_low_target): Ditto.
  1257. * linux-arm-low.cc (the_low_target): Ditto.
  1258. * linux-bfin-low.cc (the_low_target): Ditto.
  1259. * linux-crisv32-low.cc (the_low_target): Ditto.
  1260. * linux-m32r-low.cc (the_low_target): Ditto.
  1261. * linux-m68k-low.cc (the_low_target): Ditto.
  1262. * linux-sh-low.cc (the_low_target): Ditto.
  1263. * linux-sparc-low.cc (the_low_target): Ditto.
  1264. * linux-tic6x-low.cc (the_low_target): Ditto.
  1265. * linux-tile-low.cc (the_low_target): Ditto.
  1266. * linux-xtensa-low.cc (the_low_target): Ditto.
  1267. * linux-mips-low.cc (class mips_target)
  1268. <low_collect_ptrace_register>
  1269. <low_supply_ptrace_register>: Declare.
  1270. (mips_collect_ptrace_register): Turn into ...
  1271. (mips_target::low_collect_ptrace_register): ...this.
  1272. (mips_supply_ptrace_register): Turn into...
  1273. (mips_target::low_supply_ptrace_register): ...this.
  1274. (the_low_target): Remove the op fields.
  1275. * linux-ppc-low.cc (class ppc_target)
  1276. <low_collect_ptrace_register>
  1277. <low_supply_ptrace_register>: Declare.
  1278. (ppc_collect_ptrace_register): Turn into ...
  1279. (ppc_target::low_collect_ptrace_register): ...this.
  1280. (ppc_supply_ptrace_register): Turn into ...
  1281. (ppc_target::low_supply_ptrace_register): ...this.
  1282. (ppc_fill_gregset): Update for the calls to
  1283. low_collect_ptrace_register.
  1284. (the_low_target): Remove the op fields.
  1285. * linux-s390-low.cc (class s390_target)
  1286. <low_collect_ptrace_register>
  1287. <low_supply_ptrace_register>: Declare.
  1288. (s390_collect_ptrace_register): Turn into ...
  1289. (s390_target::low_collect_ptrace_register): ...this.
  1290. (s390_supply_ptrace_register): Turn into ...
  1291. (s390_target::low_supply_ptrace_register): ...this.
  1292. (s390_fill_gregset): Update for the calls to
  1293. low_collect_ptrace_register.
  1294. (the_low_target): Remove the op fields.
  1295. 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  1296. Turn the 'stopped_by_watchpoint' and 'stopped_data_address' linux
  1297. target ops into methods of linux_process_target.
  1298. * linux-low.h (struct linux_target_ops): Remove the ops.
  1299. (class linux_process_target) <check_stopped_by_watchpoint>
  1300. <low_stopped_by_watchpoint>
  1301. <low_stopped_data_address>: Declare.
  1302. * linux-low.cc (check_stopped_by_watchpoint): Turn into...
  1303. (linux_process_target::check_stopped_by_watchpoint): ...this.
  1304. (linux_process_target::low_stopped_by_watchpoint): Define.
  1305. (linux_process_target::low_stopped_data_address): Define.
  1306. * linux-x86-low.cc (class x86_target) <low_stopped_by_watchpoint>
  1307. <low_stopped_data_address>: Declare.
  1308. (x86_stopped_by_watchpoint): Turn into...
  1309. (x86_target::low_stopped_by_watchpoint): ...this.
  1310. (x86_stopped_data_address): Turn into...
  1311. (x86_target::low_stopped_data_address): ...this.
  1312. (the_low_target): Remove the op fields.
  1313. * linux-aarch64-low.cc (class aarch64_target)
  1314. <low_stopped_by_watchpoint>
  1315. <low_stopped_data_address>: Declare.
  1316. (aarch64_stopped_by_watchpoint): Turn into...
  1317. (aarch64_target::low_stopped_by_watchpoint): ...this.
  1318. (aarch64_stopped_data_address): Turn into...
  1319. (aarch64_target::low_stopped_data_address): ...this.
  1320. (the_low_target): Remove the op fields.
  1321. * linux-arm-low.cc (class arm_target) <low_stopped_by_watchpoint>
  1322. <low_stopped_data_address>: Declare.
  1323. (arm_stopped_by_watchpoint): Turn into...
  1324. (arm_target::low_stopped_by_watchpoint): ...this.
  1325. (arm_stopped_data_address): Turn into...
  1326. (arm_target::low_stopped_data_address): ...this.
  1327. (the_low_target): Remove the op fields.
  1328. * linux-crisv32-low.cc (class crisv32_target)
  1329. <low_stopped_by_watchpoint>
  1330. <low_stopped_data_address>: Declare.
  1331. (cris_stopped_by_watchpoint): Turn into...
  1332. (crisv32_target::low_stopped_by_watchpoint): ...this.
  1333. (cris_stopped_data_address): Turn into...
  1334. (crisv32_target::low_stopped_data_address): ...this.
  1335. (the_low_target): Remove the op fields.
  1336. * linux-mips-low.cc (class mips_target) <low_stopped_by_watchpoint>
  1337. <low_stopped_data_address>: Declare.
  1338. (mips_stopped_by_watchpoint): Turn into...
  1339. (mips_target::low_stopped_by_watchpoint): ...this.
  1340. (mips_stopped_data_address): Turn into...
  1341. (mips_target::low_stopped_data_address): ...this.
  1342. (the_low_target): Remove the op fields.
  1343. * linux-bfin-low.cc (the_low_target): Remove the op fields.
  1344. * linux-m32r-low.cc (the_low_target): Ditto.
  1345. * linux-m68k-low.cc (the_low_target): Ditto.
  1346. * linux-ppc-low.cc (the_low_target): Ditto.
  1347. * linux-s390-low.cc (the_low_target): Ditto.
  1348. * linux-sh-low.cc (the_low_target): Ditto.
  1349. * linux-sparc-low.cc (the_low_target): Ditto.
  1350. * linux-tic6x-low.cc (the_low_target): Ditto.
  1351. * linux-tile-low.cc (the_low_target): Ditto.
  1352. * linux-xtensa-low.cc (the_low_target): Ditto.
  1353. 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  1354. Turn the 'insert_point' and 'remove_point' linux target ops into
  1355. methods of linux_process_target.
  1356. * linux-low.h (struct linux_target_ops): Remove the ops.
  1357. (class linux_process_target) <low_insert_point>
  1358. <low_remove_point>: Declare.
  1359. * linux-low.cc (linux_process_target::low_insert_point)
  1360. (linux_process_target::low_remove_point): Define.
  1361. (linux_process_target::insert_point)
  1362. (linux_process_target::remove_point): Update for calls to
  1363. low_insert_point and low_remove_point.
  1364. * linux-x86-low.cc (class x86_target) <low_insert_point>
  1365. <low_remove_point>: Declare.
  1366. (x86_insert_point): Turn into...
  1367. (x86_target::low_insert_point): ...this.
  1368. (x86_remove_point): Turn into...
  1369. (x86_target::low_remove_point): ...this.
  1370. (the_low_target): Remove the op fields.
  1371. * linux-aarch64-low.cc (class aarch64_target) <low_insert_point>
  1372. <low_remove_point>: Declare.
  1373. (aarch64_insert_point): Turn into...
  1374. (aarch64_target::low_insert_point): ...this.
  1375. (aarch64_remove_point): Turn into...
  1376. (aarch64_target::low_remove_point): ...this.
  1377. (the_low_target): Remove the op fields.
  1378. * linux-arm-low.cc (class arm_target) <low_insert_point>
  1379. <low_remove_point>: Declare.
  1380. (arm_insert_point): Turn into...
  1381. (arm_target::low_insert_point): ...this.
  1382. (arm_remove_point): Turn into...
  1383. (arm_target::low_remove_point): ...this.
  1384. (the_low_target): Remove the op fields.
  1385. * linux-crisv32-low.cc (class crisv32_target) <low_insert_point>
  1386. <low_remove_point>: Declare.
  1387. (crisv32_insert_point): Turn into...
  1388. (crisv32_target::low_insert_point): ...this.
  1389. (crisv32_remove_point): Turn into...
  1390. (crisv32_target::low_remove_point): ...this.
  1391. (the_low_target): Remove the op fields.
  1392. * linux-mips-low.cc (class mips_target) <low_insert_point>
  1393. <low_remove_point>: Declare.
  1394. (mips_insert_point): Turn into...
  1395. (mips_target::low_insert_point): ...this.
  1396. (mips_remove_point): Turn into...
  1397. (mips_target::low_remove_point): ...this.
  1398. (the_low_target): Remove the op fields.
  1399. * linux-ppc-low.cc (class ppc_target) <low_insert_point>
  1400. <low_remove_point>: Declare.
  1401. (ppc_insert_point): Turn into...
  1402. (ppc_target::low_insert_point): ...this.
  1403. (ppc_remove_point): Turn into...
  1404. (ppc_target::low_remove_point): ...this.
  1405. (the_low_target): Remove the op fields.
  1406. * linux-bfin-low.cc (the_low_target): Remove the op fields.
  1407. * linux-m32r-low.cc (the_low_target): Ditto.
  1408. * linux-m68k-low.cc (the_low_target): Ditto.
  1409. * linux-s390-low.cc (the_low_target): Ditto.
  1410. * linux-sh-low.cc (the_low_target): Ditto.
  1411. * linux-sparc-low.cc (the_low_target): Ditto.
  1412. * linux-tic6x-low.cc (the_low_target): Ditto.
  1413. * linux-tile-low.cc (the_low_target): Ditto.
  1414. * linux-xtensa-low.cc (the_low_target): Ditto.
  1415. 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  1416. Remove the 'supports_z_point_type' linux target op and let the
  1417. concrete linux target define it by overriding the op declared in
  1418. process_stratum_target.
  1419. * linux-low.cc (linux_process_target::supports_z_point_type):
  1420. Remove.
  1421. * linux-low.h (struct linux_target_ops): Remove the op.
  1422. (class linux_process_target) <supports_z_point_type>: Remove.
  1423. * linux-x86-low.cc (class x86_target) <supports_z_point_type>:
  1424. Declare.
  1425. (x86_supports_z_point_type): Turn into...
  1426. (x86_target::supports_z_point_type): ...this.
  1427. (the_low_target): Remove the op field.
  1428. * linux-aarch64-low.cc (class aarch64_target)
  1429. <supports_z_point_type>: Declare.
  1430. (aarch64_supports_z_point_type): Turn into...
  1431. (aarch64_target::supports_z_point_type): ...this.
  1432. (the_low_target): Remove the op field.
  1433. * linux-arm-low.cc (class arm_target) <supports_z_point_type>:
  1434. Declare.
  1435. (arm_supports_z_point_type): Turn into...
  1436. (arm_target::supports_z_point_type): ...this.
  1437. (the_low_target): Remove the op field.
  1438. * linux-crisv32-low.cc (class crisv32_target)
  1439. <supports_z_point_type>: Declare.
  1440. (cris_supports_z_point_type): Turn into...
  1441. (crisv32_target::supports_z_point_type): ...this.
  1442. (the_low_target): Remove the op field.
  1443. * linux-mips-low.cc (class mips_target) <supports_z_point_type>:
  1444. Declare.
  1445. (mips_supports_z_point_type): Turn into...
  1446. (mips_target::supports_z_point_type): ...this.
  1447. (the_low_target): Remove the op field.
  1448. * linux-ppc-low.cc (class ppc_target) <supports_z_point_type>:
  1449. Declare.
  1450. (ppc_supports_z_point_type): Turn into...
  1451. (ppc_target::supports_z_point_type): ...this.
  1452. (the_low_target): Remove the op field.
  1453. * linux-s390-low.cc (class s390_target) <supports_z_point_type>:
  1454. Declare.
  1455. (s390_supports_z_point_type): Turn into...
  1456. (s390_target::supports_z_point_type): ...this.
  1457. (the_low_target): Remove the op field.
  1458. * linux-bfin-low.cc (the_low_target): Remove the op field.
  1459. * linux-m32r-low.cc (the_low_target): Ditto.
  1460. * linux-m68k-low.cc (the_low_target): Ditto.
  1461. * linux-sh-low.cc (the_low_target): Ditto.
  1462. * linux-sparc-low.cc (the_low_target): Ditto.
  1463. * linux-tic6x-low.cc (the_low_target): Ditto.
  1464. * linux-tile-low.cc (the_low_target): Ditto.
  1465. * linux-xtensa-low.cc (the_low_target): Ditto.
  1466. 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  1467. Turn the 'breakpoint_at' linux target op into a method of
  1468. linux_process_target.
  1469. * linux-low.h (struct linux_target_ops): Remove the op.
  1470. (class linux_process_target) <low_breakpoint_at>: Declare.
  1471. Update the callers below:
  1472. * linux-low.cc (linux_process_target::save_stop_reason)
  1473. (linux_process_target::thread_still_has_status_pending)
  1474. (linux_process_target::wait_1)
  1475. * linux-x86-low.cc (class x86_target)
  1476. <low_breakpoint_at>: Declare.
  1477. (x86_breakpoint_at): Turn into...
  1478. (x86_target::low_breakpoint_at): ...this.
  1479. (the_low_target): Remove the op field.
  1480. * linux-aarch64-low.cc (class aarch64_target)
  1481. <low_breakpoint_at>: Declare.
  1482. (aarch64_breakpoint_at): Turn into...
  1483. (aarch64_target::low_breakpoint_at): ...this.
  1484. (the_low_target): Remove the op field.
  1485. * linux-arm-low.cc (class arm_target)
  1486. <low_breakpoint_at>: Declare.
  1487. (arm_target::low_breakpoint_at): Define.
  1488. (the_low_target): Remove the op field.
  1489. * linux-bfin-low.cc (class bfin_target)
  1490. <low_breakpoint_at>: Declare.
  1491. (bfin_breakpoint_at): Turn into...
  1492. (bfin_target::low_breakpoint_at): ...this.
  1493. (the_low_target): Remove the op field.
  1494. * linux-cris-low.cc (class cris_target)
  1495. <low_breakpoint_at>: Declare.
  1496. (cris_breakpoint_at): Turn into...
  1497. (cris_target::low_breakpoint_at): ...this.
  1498. (the_low_target): Remove the op field.
  1499. * linux-crisv32-low.cc (class crisv32_target)
  1500. <low_breakpoint_at>: Declare.
  1501. (crisv32_breakpoint_at): Turn into...
  1502. (crisv32_target::low_breakpoint_at): ...this.
  1503. (the_low_target): Remove the op field.
  1504. * linux-ia64-low.cc (class ia64_target)
  1505. <low_breakpoint_at>: Declare.
  1506. (ia64_target::low_breakpoint_at): Define.
  1507. * linux-m32r-low.cc (class m32r_target)
  1508. <low_breakpoint_at>: Declare.
  1509. (m32r_breakpoint_at): Turn into...
  1510. (m32r_target::low_breakpoint_at): ...this.
  1511. (the_low_target): Remove the op field.
  1512. * linux-m68k-low.cc (class m68k_target)
  1513. <low_breakpoint_at>: Declare.
  1514. (m68k_breakpoint_at): Turn into...
  1515. (m68k_target::low_breakpoint_at): ...this.
  1516. (the_low_target): Remove the op field.
  1517. * linux-mips-low.cc (class mips_target)
  1518. <low_breakpoint_at>: Declare.
  1519. (mips_breakpoint_at): Turn into...
  1520. (mips_target::low_breakpoint_at): ...this.
  1521. (the_low_target): Remove the op field.
  1522. * linux-nios2-low.cc (class nios2_target)
  1523. <low_breakpoint_at>: Declare.
  1524. (nios2_breakpoint_at): Turn into...
  1525. (nios2_target::low_breakpoint_at): ...this.
  1526. (the_low_target): Remove the op field.
  1527. * linux-ppc-low.cc (class ppc_target)
  1528. <low_breakpoint_at>: Declare.
  1529. (ppc_breakpoint_at): Turn into...
  1530. (ppc_target::low_breakpoint_at): ...this.
  1531. (the_low_target): Remove the op field.
  1532. * linux-riscv-low.cc (class riscv_target)
  1533. <low_breakpoint_at>: Declare.
  1534. (riscv_breakpoint_at): Turn into...
  1535. (riscv_target::low_breakpoint_at): ...this.
  1536. (the_low_target): Remove the op field.
  1537. * linux-s390-low.cc (class s390_target)
  1538. <low_breakpoint_at>: Declare.
  1539. (s390_breakpoint_at): Turn into...
  1540. (s390_target::low_breakpoint_at): ...this.
  1541. (the_low_target): Remove the op field.
  1542. * linux-sh-low.cc (class sh_target)
  1543. <low_breakpoint_at>: Declare.
  1544. (sh_breakpoint_at): Turn into...
  1545. (sh_target::low_breakpoint_at): ...this.
  1546. (the_low_target): Remove the op field.
  1547. * linux-sparc-low.cc (class sparc_target)
  1548. <low_breakpoint_at>: Declare.
  1549. (sparc_breakpoint_at): Turn into...
  1550. (sparc_target::low_breakpoint_at): ...this.
  1551. (the_low_target): Remove the op field.
  1552. * linux-tic6x-low.cc (class tic6x_target)
  1553. <low_breakpoint_at>: Declare.
  1554. (tic6x_breakpoint_at): Turn into...
  1555. (tic6x_target::low_breakpoint_at): ...this.
  1556. (the_low_target): Remove the op field.
  1557. * linux-tile-low.cc (class tile_target)
  1558. <low_breakpoint_at>: Declare.
  1559. (tile_breakpoint_at): Turn into...
  1560. (tile_target::low_breakpoint_at): ...this.
  1561. (the_low_target): Remove the op field.
  1562. * linux-xtensa-low.cc (class xtensa_target)
  1563. <low_breakpoint_at>: Declare.
  1564. (xtensa_breakpoint_at): Turn into...
  1565. (xtensa_target::low_breakpoint_at): ...this.
  1566. (the_low_target): Remove the op field.
  1567. 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  1568. Turn the 'decr_pc_after_break' linux_target_ops field into
  1569. a method of linux_process_target.
  1570. * linux-low.h (struct linux_target_ops)
  1571. <decr_pc_after_break>: Remove.
  1572. (class linux_process_target) <low_decr_pc_after_break>: New method
  1573. declaration.
  1574. * linux-low.cc (linux_process_target::low_decr_pc_after_break):
  1575. New method implementation.
  1576. Update the users below.
  1577. (linux_process_target::save_stop_reason)
  1578. (linux_process_target::wait_1)
  1579. * linux-x86-low.cc (class x86_target) <low_decr_pc_after_break>:
  1580. New declaration.
  1581. (x86_target::low_decr_pc_after_break): New method implementation.
  1582. (the_low_target): Remove the field.
  1583. * linux-bfin-low.cc (class bfin_target) <low_decr_pc_after_break>:
  1584. New declaration.
  1585. (bfin_target::low_decr_pc_after_break): New method implementation.
  1586. (the_low_target): Remove the field.
  1587. * linux-m68k-low.cc (class m68k_target) <low_decr_pc_after_break>:
  1588. New declaration.
  1589. (m68k_target::low_decr_pc_after_break): New method implementation.
  1590. (the_low_target): Remove the field.
  1591. * linux-s390-low.cc (class s390_target) <low_decr_pc_after_break>:
  1592. New declaration.
  1593. (s390_target::low_decr_pc_after_break): New method implementation.
  1594. (the_low_target): Remove the field.
  1595. * linux-aarch64-low.cc (the_low_target): Remove the field.
  1596. * linux-arm-low.cc (the_low_target): Remove the field.
  1597. * linux-cris-low.cc (the_low_target): Remove the field.
  1598. * linux-crisv32-low.cc (the_low_target): Remove the field.
  1599. * linux-m32r-low.cc (the_low_target): Remove the field.
  1600. * linux-mips-low.cc (the_low_target): Remove the field.
  1601. * linux-nios2-low.cc (the_low_target): Remove the field.
  1602. * linux-ppc-low.cc (the_low_target): Remove the field.
  1603. * linux-riscv-low.cc (the_low_target): Remove the field.
  1604. * linux-sh-low.cc (the_low_target): Remove the field.
  1605. * linux-sparc-low.cc (the_low_target): Remove the field.
  1606. * linux-tic6x-low.cc (the_low_target): Remove the field.
  1607. * linux-tile-low.cc (the_low_target): Remove the field.
  1608. * linux-xtensa-low.cc (the_low_target): Remove the field.
  1609. 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  1610. Remove the 'supports_software_single_step' linux target op and let
  1611. the concrete linux target define it by overriding the op in
  1612. process_stratum_target.
  1613. Turn the 'get_next_pcs' linux target op into a method of
  1614. linux_process_target.
  1615. * linux-low.h (struct linux_target_ops): Remove the ops.
  1616. (class linux_process_target) <supports_software_single_step>:
  1617. Remove.
  1618. <low_get_next_pcs>: Declare.
  1619. * linux-low.cc (can_software_single_step): Remove.
  1620. (linux_process_target::low_get_next_pcs): Define.
  1621. (linux_process_target::supports_software_single_step): Remove.
  1622. Update the callers below.
  1623. (linux_process_target::handle_extended_wait)
  1624. (linux_process_target::wait_1)
  1625. (linux_process_target::install_software_single_step_breakpoints)
  1626. (linux_process_target::single_step)
  1627. (linux_process_target::thread_needs_step_over)
  1628. (linux_process_target::proceed_one_lwp)
  1629. (linux_process_target::supports_range_stepping)
  1630. * linux-x86-low.cc (the_low_target): Remove the op field.
  1631. * linux-aarch64-low.cc (the_low_target): Ditto.
  1632. * linux-bfin-low.cc (the_low_target): Ditto.
  1633. * linux-cris-low.cc (the_low_target): Ditto.
  1634. * linux-crisv32-low.cc (the_low_target): Ditto.
  1635. * linux-m32r-low.cc (the_low_target): Ditto.
  1636. * linux-m68k-low.cc (the_low_target): Ditto.
  1637. * linux-mips-low.cc (the_low_target): Ditto.
  1638. * linux-nios2-low.cc (the_low_target): Ditto.
  1639. * linux-ppc-low.cc (the_low_target): Ditto.
  1640. * linux-riscv-low.cc (the_low_target): Ditto.
  1641. * linux-s390-low.cc (the_low_target): Ditto.
  1642. * linux-sh-low.cc (the_low_target): Ditto.
  1643. * linux-sparc-low.cc (the_low_target): Ditto.
  1644. * linux-tic6x-low.cc (the_low_target): Ditto.
  1645. * linux-tile-low.cc (the_low_target): Ditto.
  1646. * linux-xtensa-low.cc (the_low_target): Ditto.
  1647. * linux-arm-low.cc (class arm_target) <low_get_next_pcs>
  1648. <supports_software_single_step>: Declare.
  1649. (arm_target::supports_software_single_step): Define.
  1650. (arm_gdbserver_get_next_pcs): Turn into...
  1651. (arm_target::low_get_next_pcs): ...this.
  1652. (the_low_target): Remove the op field.
  1653. 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  1654. Remove the 'sw_breakpoint_from_kind' linux target op, and let
  1655. the concrete linux target define it by overriding the op
  1656. in process_stratum_target.
  1657. * linux-low.cc (linux_process_target::sw_breakpoint_from_kind):
  1658. Remove.
  1659. * linux-low.h (struct linux_target_ops): Remove the op.
  1660. (class linux_process_target) <sw_breakpoint_from_kind>: Remove.
  1661. * linux-x86-low.cc (class x86_target) <sw_breakpoint_from_kind>:
  1662. Declare.
  1663. (x86_sw_breakpoint_from_kind): Turn into...
  1664. (x86_target::sw_breakpoint_from_kind): ...this.
  1665. (the_low_target): Remove the op field.
  1666. * linux-aarch64-low.cc (class aarch64_target)
  1667. <sw_breakpoint_from_kind>: Declare.
  1668. (aarch64_sw_breakpoint_from_kind): Turn into...
  1669. (aarch64_target::sw_breakpoint_from_kind): ...this.
  1670. (the_low_target): Remove the op field.
  1671. * linux-arm-low.cc (class arm_target) <sw_breakpoint_from_kind>:
  1672. Declare.
  1673. (arm_target::sw_breakpoint_from_kind): Define.
  1674. (the_low_target): Remove the op field.
  1675. * linux-bfin-low.cc (class bfin_target) <sw_breakpoint_from_kind>:
  1676. Declare.
  1677. (bfin_sw_breakpoint_from_kind): Turn into...
  1678. (bfin_target::sw_breakpoint_from_kind): ...this.
  1679. (the_low_target): Remove the op field.
  1680. * linux-cris-low.cc (class cris_target) <sw_breakpoint_from_kind>:
  1681. Declare.
  1682. (cris_sw_breakpoint_from_kind): Turn into...
  1683. (cris_target::sw_breakpoint_from_kind): ...this.
  1684. (the_low_target): Remove the op field.
  1685. * linux-crisv32-low.cc (class crisv32_target)
  1686. <sw_breakpoint_from_kind>: Declare.
  1687. (cris_sw_breakpoint_from_kind): Turn into...
  1688. (crisv32_target::sw_breakpoint_from_kind): ...this.
  1689. (the_low_target): Remove the op field.
  1690. * linux-ia64-low.cc (class ia64_target) <sw_breakpoint_from_kind>:
  1691. Declare.
  1692. (ia64_target::sw_breakpoint_from_kind): Define.
  1693. * linux-m32r-low.cc (class m32r_target) <sw_breakpoint_from_kind>:
  1694. Declare.
  1695. (m32r_sw_breakpoint_from_kind): Turn into...
  1696. (m32r_target::sw_breakpoint_from_kind): ...this.
  1697. (the_low_target): Remove the op field.
  1698. * linux-m68k-low.cc (class m68k_target) <sw_breakpoint_from_kind>:
  1699. Declare.
  1700. (m68k_sw_breakpoint_from_kind): Turn into...
  1701. (m68k_target::sw_breakpoint_from_kind): ...this.
  1702. (the_low_target): Remove the op field.
  1703. * linux-mips-low.cc (class mips_target) <sw_breakpoint_from_kind>:
  1704. Declare.
  1705. (mips_sw_breakpoint_from_kind): Turn into...
  1706. (mips_target::sw_breakpoint_from_kind): ...this.
  1707. (the_low_target): Remove the op field.
  1708. * linux-nios2-low.cc (class nios2_target) <sw_breakpoint_from_kind>:
  1709. Declare.
  1710. (nios2_sw_breakpoint_from_kind): Turn into...
  1711. (nios2_target::sw_breakpoint_from_kind): ...this.
  1712. (the_low_target): Remove the op field.
  1713. * linux-ppc-low.cc (class ppc_target) <sw_breakpoint_from_kind>:
  1714. Declare.
  1715. (ppc_sw_breakpoint_from_kind): Turn into...
  1716. (ppc_target::sw_breakpoint_from_kind): ...this.
  1717. (the_low_target): Remove the op field.
  1718. * linux-riscv-low.cc (class riscv_target) <sw_breakpoint_from_kind>:
  1719. Declare.
  1720. (riscv_sw_breakpoint_from_kind): Turn into...
  1721. (riscv_target::sw_breakpoint_from_kind): ...this.
  1722. (the_low_target): Remove the op field.
  1723. * linux-s390-low.cc (class s390_target) <sw_breakpoint_from_kind>:
  1724. Declare.
  1725. (s390_sw_breakpoint_from_kind): Turn into...
  1726. (s390_target::sw_breakpoint_from_kind): ...this.
  1727. (the_low_target): Remove the op field.
  1728. * linux-sh-low.cc (class sh_target) <sw_breakpoint_from_kind>:
  1729. Declare.
  1730. (sh_sw_breakpoint_from_kind): Turn into...
  1731. (sh_target::sw_breakpoint_from_kind): ...this.
  1732. (the_low_target): Remove the op field.
  1733. * linux-sparc-low.cc (class sparc_target) <sw_breakpoint_from_kind>:
  1734. Declare.
  1735. (sparc_sw_breakpoint_from_kind): Turn into...
  1736. (sparc_target::sw_breakpoint_from_kind): ...this.
  1737. (the_low_target): Remove the op field.
  1738. * linux-tic6x-low.cc (class tic6x_target) <sw_breakpoint_from_kind>:
  1739. Declare.
  1740. (tic6x_sw_breakpoint_from_kind): Turn into...
  1741. (tic6x_target::sw_breakpoint_from_kind): ...this.
  1742. (the_low_target): Remove the op field.
  1743. * linux-tile-low.cc (class tile_target) <sw_breakpoint_from_kind>:
  1744. Declare.
  1745. (tile_sw_breakpoint_from_kind): Turn into...
  1746. (tile_target::sw_breakpoint_from_kind): ...this.
  1747. (the_low_target): Remove the op field.
  1748. * linux-xtensa-low.cc (class xtensa_target)
  1749. <sw_breakpoint_from_kind>: Declare.
  1750. (xtensa_sw_breakpoint_from_kind): Turn into...
  1751. (xtensa_target::sw_breakpoint_from_kind): ...this.
  1752. (the_low_target): Remove the op field.
  1753. 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  1754. Remove the 'breakpoint_kind_from_pc' and
  1755. 'breakpoint_kind_from_current_state' linux target ops, and let the
  1756. concrete linux target define them by overriding the ops of
  1757. process_stratum_target.
  1758. * linux-low.cc (linux_process_target::breakpoint_kind_from_pc):
  1759. Remove.
  1760. (linux_process_target::breakpoint_kind_from_current_state): Remove.
  1761. * linux-low.h (struct linux_target_ops): Remove ops.
  1762. (class linux_process_target) <breakpoint_kind_from_pc>: Remove.
  1763. <breakpoint_kind_from_current_state>: Remove.
  1764. * linux-x86-low.cc (the_low_target): Remove the op fields.
  1765. * linux-bfin-low.cc (the_low_target): Ditto.
  1766. * linux-cris-low.cc (the_low_target): Ditto.
  1767. * linux-crisv32-low.cc (the_low_target): Ditto.
  1768. * linux-m32r-low.cc (the_low_target): Ditto.
  1769. * linux-m68k-low.cc (the_low_target): Ditto.
  1770. * linux-mips-low.cc (the_low_target): Ditto.
  1771. * linux-nios2-low.cc (the_low_target): Ditto.
  1772. * linux-ppc-low.cc (the_low_target): Ditto.
  1773. * linux-s390-low.cc (the_low_target): Ditto.
  1774. * linux-sh-low.cc (the_low_target): Ditto.
  1775. * linux-sparc-low.cc (the_low_target): Ditto.
  1776. * linux-tic6x-low.cc (the_low_target): Ditto.
  1777. * linux-tile-low.cc (the_low_target): Ditto.
  1778. * linux-xtensa-low.cc (the_low_target): Ditto.
  1779. * linux-aarch64-low.cc (class aarch64_target)
  1780. <breakpoint_kind_from_pc>
  1781. <breakpoint_kind_from_current_state>: Declare.
  1782. (aarch64_breakpoint_kind_from_pc): Turn into...
  1783. (aarch64_target::breakpoint_kind_from_pc): ...this.
  1784. (aarch64_breakpoint_kind_from_current_state): Turn into...
  1785. (aarch64_target::breakpoint_kind_from_current_state): ...this.
  1786. (the_low_target): Remove the op fields.
  1787. * linux-arm-low.cc (class arm_target):
  1788. <breakpoint_kind_from_pc>
  1789. <breakpoint_kind_from_current_state>: Declare.
  1790. (arm_target::breakpoint_kind_from_pc): Define.
  1791. (arm_target::breakpoint_kind_from_current_state): Define.
  1792. (the_low_target): Remove the op fields.
  1793. * linux-riscv-low.cc (class riscv_target):
  1794. <breakpoint_kind_from_pc>: Declare.
  1795. (riscv_breakpoint_kind_from_pc): Turn into...
  1796. (riscv_target::breakpoint_kind_from_pc): ...this.
  1797. (the_low_target): Remove the op fields.
  1798. 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  1799. Turn the 'get_pc' and 'set_pc' linux target ops into methods
  1800. of linux_process_target.
  1801. * linux-low.h (struct linux_target_ops): Remove the ops.
  1802. (class linux_process_target) <low_supports_breakpoints>
  1803. <low_get_pc>
  1804. <low_set_pc>: Declare.
  1805. * linux-low.cc (supports_breakpoints): Turn into...
  1806. (linux_process_target::low_supports_breakpoints): ...this.
  1807. (linux_process_target::low_get_pc): Define.
  1808. (linux_process_target::low_set_pc): Define.
  1809. Update the callers below.
  1810. (linux_process_target::get_pc)
  1811. (linux_process_target::save_stop_reason)
  1812. (linux_process_target::maybe_move_out_of_jump_pad)
  1813. (linux_process_target::wait_1)
  1814. (linux_process_target::resume_one_lwp_throw)
  1815. (linux_process_target::resume)
  1816. (linux_process_target::proceed_all_lwps)
  1817. (linux_process_target::read_pc)
  1818. (linux_process_target::write_pc)
  1819. * linux-x86-low.cc (class linux_process_target)
  1820. <low_supports_breakpoints>
  1821. <low_get_pc>
  1822. <low_set_pc>: Declare.
  1823. (x86_target::low_supports_breakpoints): Define.
  1824. (x86_get_pc): Turn into...
  1825. (x86_target::low_get_pc): ...this.
  1826. (x86_set_pc): Turn into...
  1827. (x86_target::low_set_pc): ...this.
  1828. (the_low_target): Remove the op fields.
  1829. * linux-arm-low.cc (class arm_target)
  1830. <low_supports_breakpoints>
  1831. <low_get_pc>
  1832. <low_set_pc>: Declare.
  1833. (arm_target::low_supports_breakpoints)
  1834. (arm_target::low_get_pc)
  1835. (arm_target::low_set_pc): Define.
  1836. (the_low_target): Remove the op fields.
  1837. * linux-bfin-low.cc (class bfin_target)
  1838. <low_supports_breakpoints>
  1839. <low_get_pc>
  1840. <low_set_pc>: Declare.
  1841. (bfin_target::low_supports_breakpoints)
  1842. (bfin_target::low_get_pc)
  1843. (bfin_target::low_set_pc): Define.
  1844. (the_low_target): Remove the op fields.
  1845. * linux-cris-low.cc (class cris_target)
  1846. <low_supports_breakpoints>
  1847. <low_get_pc>
  1848. <low_set_pc>: Declare.
  1849. (cris_target::low_supports_breakpoints)
  1850. (cris_target::low_get_pc)
  1851. (cris_target::low_set_pc): Define.
  1852. (the_low_target): Remove the op fields.
  1853. * linux-crisv32-low.cc (class crisv32_target)
  1854. <low_supports_breakpoints>
  1855. <low_get_pc>
  1856. <low_set_pc>: Declare.
  1857. (crisv32_target::low_supports_breakpoints)
  1858. (crisv32_target::low_get_pc)
  1859. (crisv32_target::low_set_pc): Define.
  1860. (the_low_target): Remove the op fields.
  1861. * linux-m32r-low.cc (class m32r_target)
  1862. <low_supports_breakpoints>
  1863. <low_get_pc>
  1864. <low_set_pc>: Declare.
  1865. (m32r_target::low_supports_breakpoints)
  1866. (m32r_target::low_get_pc)
  1867. (m32r_target::low_set_pc): Define.
  1868. (the_low_target): Remove the op fields.
  1869. * linux-m68k-low.cc (class m68k_target)
  1870. <low_supports_breakpoints>
  1871. <low_get_pc>
  1872. <low_set_pc>: Declare.
  1873. (m68k_target::low_supports_breakpoints)
  1874. (m68k_target::low_get_pc)
  1875. (m68k_target::low_set_pc): Define.
  1876. (the_low_target): Remove the op fields.
  1877. * linux-nios2-low.cc (class nios2_target)
  1878. <low_supports_breakpoints>
  1879. <low_get_pc>
  1880. <low_set_pc>: Declare.
  1881. (nios2_target::low_supports_breakpoints)
  1882. (nios2_target::low_get_pc)
  1883. (nios2_target::low_set_pc): Define.
  1884. (the_low_target): Remove the op fields.
  1885. * linux-sh-low.cc (class sh_target)
  1886. <low_supports_breakpoints>
  1887. <low_get_pc>
  1888. <low_set_pc>: Declare.
  1889. (sh_target::low_supports_breakpoints)
  1890. (sh_target::low_get_pc)
  1891. (sh_target::low_set_pc): Define.
  1892. (the_low_target): Remove the op fields.
  1893. * linux-xtensa-low.cc (class xtensa_target)
  1894. <low_supports_breakpoints>
  1895. <low_get_pc>
  1896. <low_set_pc>: Declare.
  1897. (xtensa_target::low_supports_breakpoints)
  1898. (xtensa_target::low_get_pc)
  1899. (xtensa_target::low_set_pc): Define.
  1900. (the_low_target): Remove the op fields.
  1901. * linux-sparc-low.cc (class sparc_target)
  1902. <low_supports_breakpoints>
  1903. <low_get_pc>: Declare.
  1904. (sparc_target::low_supports_breakpoints)
  1905. (sparc_target::low_get_pc): Define.
  1906. (the_low_target): Remove the op fields.
  1907. * linux-tile-low.cc (class tile_target)
  1908. <low_supports_breakpoints>
  1909. <low_get_pc>
  1910. <low_set_pc>: Declare.
  1911. (tile_target::low_supports_breakpoints)
  1912. (tile_target::low_get_pc)
  1913. (tile_target::low_set_pc): Define.
  1914. (the_low_target): Remove the op fields.
  1915. * linux-aarch64-low.cc (class aarch64_target)
  1916. <low_supports_breakpoints>
  1917. <low_get_pc>
  1918. <low_set_pc>: Declare.
  1919. (aarch64_target::low_supports_breakpoints): Define.
  1920. (aarch64_get_pc): Turn into...
  1921. (aarch64_target::low_get_pc): ...this.
  1922. (aarch64_set_pc): Turn into...
  1923. (aarch64_target::low_set_pc): ...this.
  1924. (the_low_target): Remove the op fields.
  1925. * linux-mips-low.cc (class mips_target)
  1926. <low_supports_breakpoints>
  1927. <low_get_pc>
  1928. <low_set_pc>: Declare.
  1929. (mips_target::low_supports_breakpoints): Define.
  1930. (mips_get_pc): Turn into...
  1931. (mips_target::low_get_pc): ...this.
  1932. (mips_set_pc): Turn into...
  1933. (mips_target::low_set_pc): ...this.
  1934. (the_low_target): Remove the op fields.
  1935. * linux-ppc-low.cc (class ppc_target)
  1936. <low_supports_breakpoints>
  1937. <low_get_pc>
  1938. <low_set_pc>: Declare.
  1939. (ppc_target::low_supports_breakpoints): Define.
  1940. (ppc_get_pc): Turn into...
  1941. (ppc_target::low_get_pc): ...this.
  1942. (ppc_set_pc): Turn into...
  1943. (ppc_target::low_set_pc): ...this.
  1944. (the_low_target): Remove the op fields.
  1945. * linux-riscv-low.cc (class riscv_target)
  1946. <low_supports_breakpoints>
  1947. <low_get_pc>
  1948. <low_set_pc>: Declare.
  1949. (riscv_target::low_supports_breakpoints): Define.
  1950. (riscv_get_pc): Turn into...
  1951. (riscv_target::low_get_pc): ...this.
  1952. (riscv_set_pc): Turn into...
  1953. (riscv_target::low_set_pc): ...this.
  1954. (the_low_target): Remove the op fields.
  1955. * linux-s390-low.cc (class s390_target)
  1956. <low_supports_breakpoints>
  1957. <low_get_pc>
  1958. <low_set_pc>: Declare.
  1959. (s390_target::low_supports_breakpoints): Define.
  1960. (s390_get_pc): Turn into...
  1961. (s390_target::low_get_pc): ...this.
  1962. (s390_set_pc): Turn into...
  1963. (s390_target::low_set_pc): ...this.
  1964. (the_low_target): Remove the op fields.
  1965. * linux-tic6x-low.cc (class tic6x_target)
  1966. <low_supports_breakpoints>
  1967. <low_get_pc>
  1968. <low_set_pc>: Declare.
  1969. (tic6x_target::low_supports_breakpoints): Define.
  1970. (tic6x_get_pc): Turn into...
  1971. (tic6x_target::low_get_pc): ...this.
  1972. (tic6x_set_pc): Turn into...
  1973. (tic6x_target::low_set_pc): ...this.
  1974. (the_low_target): Remove the op fields.
  1975. 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  1976. Turn some more static methods in linux-low into private methods
  1977. of linux_process_target.
  1978. * linux-low.cc (get_pc): Turn into...
  1979. (linux_process_target::get_pc): ...this.
  1980. (save_stop_reason): Turn into...
  1981. (linux_process_target::save_stop_reason): ...this.
  1982. (thread_still_has_status_pending_p): Turn into...
  1983. (linux_process_target::thread_still_has_status_pending): ...this.
  1984. (status_pending_p_callback): Turn into...
  1985. (linux_process_target::status_pending_p_callback): ...this.
  1986. (resume_stopped_resumed_lwps): Turn into...
  1987. (linux_process_target::resume_stopped_resumed_lwps): ...this.
  1988. (install_software_single_step_breakpoints): Turn into...
  1989. (linux_process_target::install_software_single_step_breakpoints):
  1990. ...this.
  1991. (single_step): Turn into...
  1992. (linux_process_target::single_step): ...this.
  1993. (linux_resume_one_lwp_throw): Turn into...
  1994. (linux_process_target::resume_one_lwp_throw): ...this.
  1995. (linux_resume_one_lwp): Turn into...
  1996. (linux_process_target::resume_one_lwp): ...this.
  1997. (resume_status_pending_p): Turn into...
  1998. (linux_process_target::resume_status_pending): ...this.
  1999. (need_step_over_p): Turn into...
  2000. (linux_process_target::thread_needs_step_over): ...this.
  2001. (linux_resume_one_thread): Turn into...
  2002. (linux_process_target::resume_one_thread): ...this.
  2003. (proceed_one_lwp): Turn into...
  2004. (linux_process_target::proceed_one_lwp): ...this.
  2005. (unsuspend_and_proceed_one_lwp): Turn into...
  2006. (linux_process_target::unsuspend_and_proceed_one_lwp): ...this.
  2007. Update the calls/references to the above functions below.
  2008. (linux_process_target::handle_extended_wait)
  2009. (linux_process_target::filter_event)
  2010. (linux_process_target::wait_for_event_filtered)
  2011. (linux_process_target::wait_1)
  2012. (linux_process_target::move_out_of_jump_pad)
  2013. (linux_process_target::start_step_over)
  2014. (linux_process_target::resume)
  2015. (linux_process_target::proceed_all_lwps)
  2016. (regsets_store_inferior_registers)
  2017. (linux_process_target::store_register)
  2018. * linux-low.h (class linux_process_target)
  2019. <get_pc>
  2020. <save_stop_reason>
  2021. <thread_still_has_status_pending>
  2022. <status_pending_p_callback>
  2023. <resume_stopped_resumed_lwps>
  2024. <install_software_single_step_breakpoints>
  2025. <single_step>
  2026. <resume_one_lwp_throw>
  2027. <resume_one_lwp>
  2028. <resume_status_pending>
  2029. <thread_needs_step_over>
  2030. <resume_one_thread>
  2031. <proceed_one_lwp>
  2032. <unsuspend_and_proceed_one_lwp>: Declare.
  2033. 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  2034. Turn the 'fetch_register' linux target op into a method of
  2035. linux_process_target.
  2036. * linux-low.h (struct linux_target_ops) <fetch_register>: Remove.
  2037. (class linux_process_target) <low_fetch_register>: Declare.
  2038. * linux-x86-low.cc (the_low_target)
  2039. * linux-aarch64-low.cc (the_low_target)
  2040. * linux-arm-low.cc (the_low_target)
  2041. * linux-bfin-low.cc (the_low_target)
  2042. * linux-cris-low.cc (the_low_target)
  2043. * linux-crisv32-low.cc (the_low_target)
  2044. * linux-m32r-low.cc (the_low_target)
  2045. * linux-m68k-low.cc (the_low_target)
  2046. * linux-nios2-low.cc (the_low_target)
  2047. * linux-ppc-low.cc (the_low_target)
  2048. * linux-s390-low.cc (the_low_target)
  2049. * linux-sh-low.cc (the_low_target)
  2050. * linux-sparc-low.cc (the_low_target)
  2051. * linux-tic6x-low.cc (the_low_target)
  2052. * linux-tile-low.cc (the_low_target)
  2053. * linux-xtensa-low.cc (the_low_target): Remove the op field.
  2054. * linux-ia64-low.cc (class ia64_target) <low_fetch_register>:
  2055. Declare.
  2056. (ia64_fetch_register): Turn into...
  2057. (ia64_target::low_fetch_register): ...this.
  2058. (the_low_target): Remove the op field.
  2059. * linux-mips-low.cc (class mips_target) <low_fetch_register>:
  2060. Declare.
  2061. (mips_fetch_register): Turn into...
  2062. (mips_target::low_fetch_register): ...this.
  2063. (the_low_target): Remove the op field.
  2064. * linux-riscv-low.cc (class riscv_target) <low_fetch_register>:
  2065. Declare.
  2066. (riscv_fetch_register): Turn into...
  2067. (riscv_target::low_fetch_register): ...this.
  2068. (the_low_target): Remove the op field.
  2069. Update the callers below.
  2070. * linux-low.cc (linux_process_target::fetch_registers)
  2071. (linux_process_target::low_fetch_register)
  2072. 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  2073. Turn the 'cannot_fetch_register' and 'cannot_store_register'
  2074. linux target ops into methods of linux_process_target.
  2075. * linux-low.h (struct linux_target_ops): Remove the low target ops.
  2076. (class linux_process_target) <fetch_register>
  2077. <store_register>
  2078. <usr_fetch_inferior_registers>
  2079. <usr_store_inferior_registers>
  2080. <low_cannot_fetch_register>
  2081. <low_cannot_fetch_register> Declare.
  2082. * linux-low.cc (fetch_register): Turn into...
  2083. (linux_process_target::fetch_register): ...this.
  2084. (store_register): Turn into ...
  2085. (linux_process_target::store_register): ...this.
  2086. (usr_fetch_inferior_registers): Turn into...
  2087. (linux_process_target::usr_fetch_inferior_registers): ...this.
  2088. (usr_store_inferior_registers): Turn into...
  2089. (linux_process_target::usr_store_inferior_registers): ...this.
  2090. * linux-x86-low.cc (class x86_target)
  2091. <low_cannot_fetch_register>
  2092. <low_cannot_store_register>: Declare.
  2093. (x86_cannot_store_register): Turn into...
  2094. (x86_target::low_cannot_store_register): ...this.
  2095. (x86_cannot_fetch_register): Turn into...
  2096. (x86_target::low_cannot_fetch_register): ...this.
  2097. (the_low_target): Remove the target op fields.
  2098. * linux-aarch64-low.cc (class aarch64_target)
  2099. <low_cannot_fetch_register>
  2100. <low_cannot_store_register>: Declare.
  2101. (aarch64_target::low_cannot_fetch_register)
  2102. (aarch64_target::low_cannot_store_register): Define.
  2103. (the_low_target): Remove the op fields.
  2104. * linux-arm-low.cc (class arm_target)
  2105. <low_cannot_fetch_register>
  2106. <low_cannot_store_register>: Declare.
  2107. (arm_cannot_fetch_register): Turn into...
  2108. (arm_target::low_cannot_fetch_register): ...this.
  2109. (arm_cannot_store_register): Turn into...
  2110. (arm_target::low_cannot_store_register): ...this.
  2111. (the_low_target): Remove the op fields.
  2112. * linux-bfin-low.cc (class bfin_target)
  2113. <low_cannot_fetch_register>
  2114. <low_cannot_store_register>: Declare.
  2115. (bfin_cannot_fetch_register): Turn into...
  2116. (bfin_target::low_cannot_fetch_register): ...this.
  2117. (bfin_cannot_store_register): Turn into...
  2118. (bfin_target::low_cannot_store_register): ...this.
  2119. (the_low_target): Remove the op fields.
  2120. * linux-cris-low.cc (class cris_target)
  2121. <low_cannot_fetch_register>
  2122. <low_cannot_store_register>: Declare.
  2123. (cris_cannot_fetch_register): Turn into...
  2124. (cris_target::low_cannot_fetch_register): ...this.
  2125. (cris_cannot_store_register): Turn into...
  2126. (cris_target::low_cannot_store_register): ...this.
  2127. (the_low_target): Remove the op fields.
  2128. * linux-crisv32-low.cc (class crisv32_target)
  2129. <low_cannot_fetch_register>
  2130. <low_cannot_store_register>: Declare.
  2131. (crisv32_target::low_cannot_fetch_register)
  2132. (crisv32_target::low_cannot_store_register): Define.
  2133. (the_low_target): Remove the op fields.
  2134. * linux-ia64-low.cc (class ia64_target)
  2135. <low_cannot_fetch_register>
  2136. <low_cannot_store_register>: Declare.
  2137. (ia64_cannot_fetch_register): Turn into...
  2138. (ia64_target::low_cannot_fetch_register): ...this.
  2139. (ia64_cannot_store_register): Turn into...
  2140. (ia64_target::low_cannot_store_register): ...this.
  2141. (the_low_target): Remove the op fields.
  2142. * linux-m32r-low.cc (class m32r_target)
  2143. <low_cannot_fetch_register>
  2144. <low_cannot_store_register>: Declare.
  2145. (m32r_cannot_fetch_register): Turn into...
  2146. (m32r_target::low_cannot_fetch_register): ...this.
  2147. (m32r_cannot_store_register): Turn into...
  2148. (m32r_target::low_cannot_store_register): ...this.
  2149. (the_low_target): Remove the op fields.
  2150. * linux-m68k-low.cc (class m68k_target)
  2151. <low_cannot_fetch_register>
  2152. <low_cannot_store_register>: Declare.
  2153. (m68k_cannot_fetch_register): Turn into...
  2154. (m68k_target::low_cannot_fetch_register): ...this.
  2155. (m68k_cannot_store_register): Turn into...
  2156. (m68k_target::low_cannot_store_register): ...this.
  2157. (the_low_target): Remove the op fields.
  2158. * linux-mips-low.cc (class mips_target)
  2159. <low_cannot_fetch_register>
  2160. <low_cannot_store_register>: Declare.
  2161. (mips_cannot_fetch_register): Turn into...
  2162. (mips_target::low_cannot_fetch_register): ...this.
  2163. (mips_cannot_store_register): Turn into...
  2164. (mips_target::low_cannot_store_register): ...this.
  2165. (get_usrregs_info): Inline at the call sites in
  2166. low_cannot_fetch_register and low_cannot_store_register,
  2167. and remove.
  2168. (the_low_target): Remove the op fields.
  2169. * linux-nios2-low.cc (class nios2_target)
  2170. <low_cannot_fetch_register>
  2171. <low_cannot_store_register>: Declare.
  2172. (nios2_cannot_fetch_register): Turn into...
  2173. (nios2_target::low_cannot_fetch_register): ...this.
  2174. (nios2_cannot_store_register): Turn into...
  2175. (nios2_target::low_cannot_store_register): ...this.
  2176. (the_low_target): Remove the op fields.
  2177. * linux-ppc-low.cc (class ppc_target)
  2178. <low_cannot_fetch_register>
  2179. <low_cannot_store_register>: Declare.
  2180. (ppc_cannot_fetch_register): Turn into...
  2181. (ppc_target::low_cannot_fetch_register): ...this.
  2182. (ppc_cannot_store_register): Turn into...
  2183. (ppc_target::low_cannot_store_register): ...this.
  2184. (the_low_target): Remove the op fields.
  2185. * linux-riscv-low.cc (class riscv_target)
  2186. <low_cannot_fetch_register>
  2187. <low_cannot_store_register>: Declare.
  2188. (riscv_target::low_cannot_fetch_register)
  2189. (riscv_target::low_cannot_store_register): Define.
  2190. (the_low_target): Remove the op fields.
  2191. * linux-s390-low.cc (class s390_target)
  2192. <low_cannot_fetch_register>
  2193. <low_cannot_store_register>: Declare.
  2194. (s390_cannot_fetch_register): Turn into...
  2195. (s390_target::low_cannot_fetch_register): ...this.
  2196. (s390_cannot_store_register): Turn into...
  2197. (s390_target::low_cannot_store_register): ...this.
  2198. (the_low_target): Remove the op fields.
  2199. * linux-sh-low.cc (class sh_target)
  2200. <low_cannot_fetch_register>
  2201. <low_cannot_store_register>: Declare.
  2202. (sh_cannot_fetch_register): Turn into...
  2203. (sh_target::low_cannot_fetch_register): ...this.
  2204. (sh_cannot_store_register): Turn into...
  2205. (sh_target::low_cannot_store_register): ...this.
  2206. (the_low_target): Remove the op fields.
  2207. * linux-sparc-low.cc (class sparc_target)
  2208. <low_cannot_fetch_register>
  2209. <low_cannot_store_register>: Declare.
  2210. (sparc_cannot_fetch_register): Turn into...
  2211. (sparc_target::low_cannot_fetch_register): ...this.
  2212. (sparc_cannot_store_register): Turn into...
  2213. (sparc_target::low_cannot_store_register): ...this.
  2214. (the_low_target): Remove the op fields.
  2215. * linux-tic6x-low.cc (class tic6x_target)
  2216. <low_cannot_fetch_register>
  2217. <low_cannot_store_register>: Declare.
  2218. (tic6x_cannot_fetch_register): Turn into...
  2219. (tic6x_target::low_cannot_fetch_register): ...this.
  2220. (tic6x_cannot_store_register): Turn into...
  2221. (tic6x_target::low_cannot_store_register): ...this.
  2222. (the_low_target): Remove the op fields.
  2223. * linux-tile-low.cc (class tile_target)
  2224. <low_cannot_fetch_register>
  2225. <low_cannot_store_register>: Declare.
  2226. (tile_cannot_fetch_register): Turn into...
  2227. (tile_target::low_cannot_fetch_register): ...this.
  2228. (tile_cannot_store_register): Turn into...
  2229. (tile_target::low_cannot_store_register): ...this.
  2230. (the_low_target): Remove the op fields.
  2231. * linux-xtensa-low.cc (class xtensa_target)
  2232. <low_cannot_fetch_register>
  2233. <low_cannot_store_register>: Declare.
  2234. (xtensa_target::low_cannot_fetch_register)
  2235. (xtensa_target::low_cannot_store_register): Define.
  2236. (the_low_target): Remove the op fields.
  2237. 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  2238. Turn the 'regs_info' linux target op into a method of
  2239. linux_process_target.
  2240. * linux-low.h (struct linux_target_ops) <regs_info>: Remove.
  2241. (class linux_process_target) <get_regs_info>: Define.
  2242. Update the callers below.
  2243. * linux-low.cc (linux_process_target::fetch_registers)
  2244. (linux_process_target::store_registers)
  2245. * proc-service.cc (gregset_info)
  2246. * linux-x86-low.cc (class x86_target) <get_regs_info>: Declare.
  2247. (x86_linux_regs_info): Turn into ...
  2248. (x86_target::get_regs_info): ...this.
  2249. (the_low_target): Remove the op field.
  2250. * linux-aarch64-low.cc (class aarch64_target) <get_regs_info>:
  2251. Declare.
  2252. (aarch64_regs_info): Turn into ...
  2253. (aarch64_target::get_regs_info): ...this.
  2254. (the_low_target): Remove the op field.
  2255. * linux-arm-low.cc (class arm_target) <get_regs_info>: Declare.
  2256. (arm_regs_info): Turn into ...
  2257. (arm_target::get_regs_info): ...this.
  2258. (the_low_target): Remove the op field.
  2259. * linux-bfin-low.cc (class bfin_target) <get_regs_info>: Declare.
  2260. (bfin_regs_info): Turn into ...
  2261. (bfin_target::get_regs_info): ...this.
  2262. (the_low_target): Remove the op field.
  2263. * linux-cris-low.cc (class cris_target) <get_regs_info>: Declare.
  2264. (cris_regs_info): Turn into ...
  2265. (cris_target::get_regs_info): ...this.
  2266. (the_low_target): Remove the op field.
  2267. * linux-crisv32-low.cc (class crisv32_target) <get_regs_info>:
  2268. Declare.
  2269. (crisv32_regs_info): Turn into ...
  2270. (crisv32_target::get_regs_info): ...this.
  2271. (the_low_target): Remove the op field.
  2272. * linux-ia64-low.cc (class ia64_target) <get_regs_info>: Declare.
  2273. (ia64_regs_info): Turn into ...
  2274. (ia64_target::get_regs_info): ...this.
  2275. (the_low_target): Remove the op field.
  2276. * linux-m32r-low.cc (class m32r_target) <get_regs_info>: Declare.
  2277. (m32r_regs_info): Turn into ...
  2278. (m32r_target::get_regs_info): ...this.
  2279. (the_low_target): Remove the op field.
  2280. * linux-m68k-low.cc (class m68k_target) <get_regs_info>: Declare.
  2281. (m68k_regs_info): Turn into ...
  2282. (m68k_target::get_regs_info): ...this.
  2283. (the_low_target): Remove the op field.
  2284. * linux-mips-low.cc (class mips_target) <get_regs_info>: Declare.
  2285. (mips_regs_info): Turn into ...
  2286. (mips_target::get_regs_info): ...this.
  2287. (the_low_target): Remove the op field.
  2288. (get_usrregs_info): Update the call to the op.
  2289. * linux-nios2-low.cc (class nios2_target) <get_regs_info>: Declare.
  2290. (nios2_regs_info): Turn into ...
  2291. (nios2_target::get_regs_info): ...this.
  2292. (the_low_target): Remove the op field.
  2293. * linux-ppc-low.cc (class ppc_target) <get_regs_info>: Declare.
  2294. (ppc_regs_info): Turn into ...
  2295. (ppc_target::get_regs_info): ...this.
  2296. (the_low_target): Remove the op field.
  2297. * linux-riscv-low.cc (class riscv_target) <get_regs_info>: Declare.
  2298. (riscv_regs_info): Turn into ...
  2299. (riscv_target::get_regs_info): ...this.
  2300. (the_low_target): Remove the op field.
  2301. * linux-s390-low.cc (class s390_target) <get_regs_info>: Declare.
  2302. (s390_regs_info): Turn into ...
  2303. (s390_target::get_regs_info): ...this.
  2304. (the_low_target): Remove the op field.
  2305. (s390_collect_ptrace_register)
  2306. (s390_supply_ptrace_register)
  2307. (s390_fill_gregset): Update the call to the op.
  2308. * linux-sh-low.cc (class sh_target) <get_regs_info>: Declare.
  2309. (sh_regs_info): Turn into ...
  2310. (sh_target::get_regs_info): ...this.
  2311. (the_low_target): Remove the op field.
  2312. * linux-sparc-low.cc (class sparc_target) <get_regs_info>: Declare.
  2313. (sparc_regs_info): Turn into ...
  2314. (sparc_target::get_regs_info): ...this.
  2315. (the_low_target): Remove the op field.
  2316. * linux-tic6x-low.cc (class tic6x_target) <get_regs_info>: Declare.
  2317. (tic6x_regs_info): Turn into ...
  2318. (tic6x_target::get_regs_info): ...this.
  2319. (the_low_target): Remove the op field.
  2320. * linux-tile-low.cc (class tile_target) <get_regs_info>: Declare.
  2321. (tile_regs_info): Turn into ...
  2322. (tile_target::get_regs_info): ...this.
  2323. (the_low_target): Remove the op field.
  2324. * linux-xtensa-low.cc (class xtensa_target) <get_regs_info>:
  2325. Declare.
  2326. (xtensa_regs_info): Turn into ...
  2327. (xtensa_target::get_regs_info): ...this.
  2328. (the_low_target): Remove the op field.
  2329. 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  2330. Turn the 'arch_setup' linux target op into a method of
  2331. linux_process_target.
  2332. * linux-low.h (struct linux_target_ops) <arch_setup>: Delete.
  2333. (class linux_process_target) <arch_setup_thread>
  2334. <low_arch_setup>: New declarations.
  2335. * linux-low.cc (linux_arch_setup): Delete.
  2336. (linux_arch_setup_thread): Turn into...
  2337. (linux_process_target::arch_setup_thread): ... this.
  2338. Update the callers below.
  2339. (linux_process_target::handle_extended_wait)
  2340. (linux_process_target::post_create_inferior)
  2341. (linux_process_target::filter_event)
  2342. * linux-x86-low.cc (class x86_target) <low_arch_setup>: New
  2343. declaration.
  2344. (x86_linux_update_xmltarget): Turn into...
  2345. (x86_target::update_xmltarget): ...this.
  2346. (x86_linux_process_qsupported): Update the call to
  2347. x86_linux_update_xmltarget.
  2348. (x86_arch_setup): Turn into ...
  2349. (x86_target::low_arch_setup): ...this.
  2350. (the_low_target): Remove the op field.
  2351. * linux-aarch64-low.cc (class aarch64_target) <low_arch_setup>: New
  2352. declaration.
  2353. (aarch64_arch_setup): Turn into ...
  2354. (aarch64_target::low_arch_setup): ...this.
  2355. (the_low_target): Remove the op field.
  2356. * linux-arm-low.cc (class arm_target) <low_arch_setup>: New
  2357. declaration.
  2358. (arm_arch_setup): Turn into ...
  2359. (arm_target::low_arch_setup): ...this.
  2360. (the_low_target): Remove the op field.
  2361. * linux-bfin-low.cc (class bfin_target) <low_arch_setup>: New
  2362. declaration.
  2363. (bfin_arch_setup): Turn into ...
  2364. (bfin_target::low_arch_setup): ...this.
  2365. (the_low_target): Remove the op field.
  2366. * linux-cris-low.cc (class cris_target) <low_arch_setup>: New
  2367. declaration.
  2368. (cris_arch_setup): Turn into ...
  2369. (cris_target::low_arch_setup): ...this.
  2370. (the_low_target): Remove the op field.
  2371. * linux-crisv32-low.cc (class crisv32_target) <low_arch_setup>: New
  2372. declaration.
  2373. (crisv32_arch_setup): Turn into ...
  2374. (crisv32_target::low_arch_setup): ...this.
  2375. (the_low_target): Remove the op field.
  2376. * linux-ia64-low.cc (class ia64_target) <low_arch_setup>: New
  2377. declaration.
  2378. (ia64_arch_setup): Turn into ...
  2379. (ia64_target::low_arch_setup): ...this.
  2380. (the_low_target): Remove the op field.
  2381. * linux-m32r-low.cc (class m32r_target) <low_arch_setup>: New
  2382. declaration.
  2383. (m32r_arch_setup): Turn into ...
  2384. (m32r_target::low_arch_setup): ...this.
  2385. (the_low_target): Remove the op field.
  2386. * linux-m68k-low.cc (class m68k_target) <low_arch_setup>: New
  2387. declaration.
  2388. (m68k_arch_setup): Turn into ...
  2389. (m68k_target::low_arch_setup): ...this.
  2390. (the_low_target): Remove the op field.
  2391. * linux-mips-low.cc (class mips_target) <low_arch_setup>: New
  2392. declaration.
  2393. (mips_arch_setup): Turn into ...
  2394. (mips_target::low_arch_setup): ...this.
  2395. (the_low_target): Remove the op field.
  2396. * linux-nios2-low.cc (class nios2_target) <low_arch_setup>: New
  2397. declaration.
  2398. (nios2_arch_setup): Turn into ...
  2399. (nios2_target::low_arch_setup): ...this.
  2400. (the_low_target): Remove the op field.
  2401. * linux-ppc-low.cc (class ppc_target) <low_arch_setup>: New
  2402. declaration.
  2403. (ppc_arch_setup): Turn into ...
  2404. (ppc_target::low_arch_setup): ...this.
  2405. (the_low_target): Remove the op field.
  2406. * linux-riscv-low.cc (class riscv_target) <low_arch_setup>: New
  2407. declaration.
  2408. (riscv_arch_setup): Turn into ...
  2409. (riscv_target::low_arch_setup): ...this.
  2410. (the_low_target): Remove the op field.
  2411. * linux-s390-low.cc (class s390_target) <low_arch_setup>: New
  2412. declaration.
  2413. (s390_arch_setup): Turn into ...
  2414. (s390_target::low_arch_setup): ...this.
  2415. (the_low_target): Remove the op field.
  2416. * linux-sh-low.cc (class sh_target) <low_arch_setup>: New
  2417. declaration.
  2418. (sh_arch_setup): Turn into ...
  2419. (sh_target::low_arch_setup): ...this.
  2420. (the_low_target): Remove the op field.
  2421. * linux-sparc-low.cc (class sparc_target) <low_arch_setup>: New
  2422. declaration.
  2423. (sparc_arch_setup): Turn into ...
  2424. (sparc_target::low_arch_setup): ...this.
  2425. (the_low_target): Remove the op field.
  2426. * linux-tic6x-low.cc (class tic6x_target) <low_arch_setup>: New
  2427. declaration.
  2428. (tic6x_arch_setup): Turn into ...
  2429. (tic6x_target::low_arch_setup): ...this.
  2430. (the_low_target): Remove the op field.
  2431. * linux-tile-low.cc (class tile_target) <low_arch_setup>: New
  2432. declaration.
  2433. (tile_arch_setup): Turn into ...
  2434. (tile_target::low_arch_setup): ...this.
  2435. (the_low_target): Remove the op field.
  2436. * linux-xtensa-low.cc (class xtensa_target) <low_arch_setup>: New
  2437. declaration.
  2438. (xtensa_arch_setup): Turn into ...
  2439. (xtensa_target::low_arch_setup): ...this.
  2440. (the_low_target): Remove the op field.
  2441. 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  2442. * linux-low.h (the_linux_target): New extern declaration.
  2443. * linux-low.cc (initialize_low): Use 'the_linux_target' to set
  2444. 'the_target'.
  2445. (the_linux_target): Remove.
  2446. * linux-x86-low.cc (class x86_target): New class.
  2447. (the_x86_target): New static object.
  2448. (the_linux_target): Define as pointer to the_x86_target.
  2449. * linux-aarch64-low.cc (class aarch64_target): New class.
  2450. (the_aarch64_target): New static object.
  2451. (the_linux_target): Define as pointer to the_aarch64_target.
  2452. * linux-arm-low.cc (class arm_target): New class.
  2453. (the_arm_target): New static object.
  2454. (the_linux_target): Define as pointer to the_arm_target.
  2455. * linux-bfin-low.cc (class bfin_target): New class.
  2456. (the_bfin_target): New static object.
  2457. (the_linux_target): Define as pointer to the_bfin_target.
  2458. * linux-cris-low.cc (class cris_target): New class.
  2459. (the_cris_target): New static object.
  2460. (the_linux_target): Define as pointer to the_cris_target.
  2461. * linux-crisv32-low.cc (class crisv32_target): New class.
  2462. (the_crisv32_target): New static object.
  2463. (the_linux_target): Define as pointer to the_crisv32_target.
  2464. * linux-ia64-low.cc (class ia64_target): New class.
  2465. (the_ia64_target): New static object.
  2466. (the_linux_target): Define as pointer to the_ia64_target.
  2467. * linux-m32r-low.cc (class m32r_target): New class.
  2468. (the_m32r_target): New static object.
  2469. (the_linux_target): Define as pointer to the_m32r_target.
  2470. * linux-m68k-low.cc (class m68k_target): New class.
  2471. (the_m68k_target): New static object.
  2472. (the_linux_target): Define as pointer to the_m68k_target.
  2473. * linux-mips-low.cc (class mips_target): New class.
  2474. (the_mips_target): New static object.
  2475. (the_linux_target): Define as pointer to the_mips_target.
  2476. * linux-nios2-low.cc (class nios2_target): New class.
  2477. (the_nios2_target): New static object.
  2478. (the_linux_target): Define as pointer to the_nios2_target.
  2479. * linux-ppc-low.cc (class ppc_target): New class.
  2480. (the_ppc_target): New static object.
  2481. (the_linux_target): Define as pointer to the_ppc_target.
  2482. * linux-riscv-low.cc (class riscv_target): New class.
  2483. (the_riscv_target): New static object.
  2484. (the_linux_target): Define as pointer to the_riscv_target.
  2485. * linux-s390-low.cc (class s390_target): New class.
  2486. (the_s390_target): New static object.
  2487. (the_linux_target): Define as pointer to the_s390_target.
  2488. * linux-sh-low.cc (class sh_target): New class.
  2489. (the_sh_target): New static object.
  2490. (the_linux_target): Define as pointer to the_sh_target.
  2491. * linux-sparc-low.cc (class sparc_target): New class.
  2492. (the_sparc_target): New static object.
  2493. (the_linux_target): Define as pointer to the_sparc_target.
  2494. * linux-tic6x-low.cc (class tic6x_target): New class.
  2495. (the_tic6x_target): New static object.
  2496. (the_linux_target): Define as pointer to the_tic6x_target.
  2497. * linux-tile-low.cc (class tile_target): New class.
  2498. (the_tile_target): New static object.
  2499. (the_linux_target): Define as pointer to the_tile_target.
  2500. * linux-xtensa-low.cc (class xtensa_target): New class.
  2501. (the_xtensa_target): New static object.
  2502. (the_linux_target): Define as pointer to the_xtensa_target.
  2503. 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  2504. Turn some static functions in linux-low.cc into private methods of
  2505. linux_process_target.
  2506. * linux-low.cc (handle_extended_wait): Turn into ...
  2507. (linux_process_target::handle_extended_wait): ...this. Call
  2508. 'mourn' on 'this' object instead of 'the_target'.
  2509. (maybe_move_out_of_jump_pad): Turn into...
  2510. (linux_process_target::maybe_move_out_of_jump_pad): ...this.
  2511. (linux_low_filter_event): Turn into...
  2512. (linux_process_target::filter_event): ...this.
  2513. (linux_wait_for_event_filtered): Turn into...
  2514. (linux_process_target::wait_for_event_filtered): ...this.
  2515. (linux_wait_for_event): Turn into...
  2516. (linux_process_target::wait_for_event): ...this.
  2517. (linux_wait_1): Turn into...
  2518. (linux_process_target::wait_1): ...this.
  2519. (wait_for_sigstop): Turn into...
  2520. (linux_process_target::wait_for_sigstop): ...this.
  2521. (move_out_of_jump_pad_callback): Turn into...
  2522. (linux_process_target::move_out_of_jump_pad): ...this.
  2523. (stop_all_lwps): Turn into...
  2524. (linux_process_target::stop_all_lwps): ...this.
  2525. (start_step_over): Turn into...
  2526. (linux_process_target::start_step_over): ...this.
  2527. (complete_ongoing_step_over): Turn into...
  2528. (linux_process_target::complete_ongoing_step_over): ...this.
  2529. (proceed_all_lwps): Turn into...
  2530. (linux_process_target::proceed_all_lwps): ...this.
  2531. (unstop_all_lwps): Turn into...
  2532. (linux_process_target::unstop_all_lwps): ...this.
  2533. * linux-low.h (class linux_process_target)
  2534. <handle_extended_wait>
  2535. <maybe_move_out_of_jump_pad>
  2536. filter_event>
  2537. <wait_for_event_filtered>
  2538. <wait_for_event>
  2539. <wait_1>
  2540. <wait_for_sigstop>
  2541. <move_out_of_jump_pad>
  2542. <stop_all_lwps>
  2543. <start_step_over>
  2544. <complete_ongoing_step_over>
  2545. <proceed_all_lwps>
  2546. <unstop_all_lwps>: Declare.
  2547. Update the callers below.
  2548. * linux-low.cc (linux_process_target::attach): Update.
  2549. (linux_process_target::stabilize_threads): Ditto.
  2550. (linux_process_target::wait): Ditto.
  2551. 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  2552. * linux-low.h (struct linux_target_ops): Update the comment for
  2553. 'cannot_store_register' to return 0 or 1.
  2554. * linux-ppc-low.cc (ppc_cannot_store_register): Return 1 instead
  2555. of 2.
  2556. 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
  2557. * config.in: Re-generate.
  2558. * configure: Re-generate.
  2559. 2020-03-17 Kamil Rytarowski <n54@gmx.com>
  2560. * regcache.cc (find_register_by_number): Update.
  2561. * tdesc.cc (init_target_desc): Likewise.
  2562. * tdesc.h (target_desc::reg_defs): Likewise.
  2563. 2020-03-12 Tom Tromey <tom@tromey.com>
  2564. * configure: Rebuild.
  2565. * configure.ac (GDBSERVER_DEPFILES): Remove srv_selftest_objs.
  2566. (WIN32APILIBS): New subst.
  2567. * Makefile.in (SFILES, OBS, TAGS, GDBREPLAY_OBS): Remove
  2568. gdbsupport files.
  2569. (gdbsupport/%.o): Remove target.
  2570. (GDBSUPPORT_BUILDDIR, GDBSUPPORT): New variables.
  2571. (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Add GDBSUPPORT.
  2572. (WIN32APILIBS): New variable.
  2573. (gdbserver$(EXEEXT)): Add WIN32APILIBS.
  2574. (gdbreplay$(EXEEXT)): Likewise.
  2575. 2020-03-12 Tom Tromey <tom@tromey.com>
  2576. * config.in, configure: Rebuild.
  2577. * configure.ac: Call ZW_GNU_GETTEXT_SISTER_DIR.
  2578. * acinclude.m4: Include gettext-sister.m4.
  2579. * Makefile.in (top_builddir, INTL, INTL_DEPS, INTL_CFLAGS): New
  2580. variables.
  2581. (INCLUDE_CFLAGS): Add INTL_CFLAGS.
  2582. (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Use INTL_DEPS, INTL.
  2583. 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
  2584. * acinclude.m4: Update path to selftest.m4.
  2585. 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
  2586. * configure.ac: Don't source bfd/development.sh, move
  2587. GDB_AC_COMMON higher.
  2588. * configure: Re-generate.
  2589. 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
  2590. * configure: Re-generate.
  2591. 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
  2592. * configure: Re-generate.
  2593. 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
  2594. * .dir-locals.el: New file.
  2595. 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  2596. * .gitattributes: New file.
  2597. 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
  2598. * remote-utils.cc (prepare_resume_reply): Add ability to convert T
  2599. reply into an S reply.
  2600. * server.cc (disable_packet_T): New global.
  2601. (captured_main): Set new global when appropriate.
  2602. * server.h (disable_packet_T): Declare.
  2603. 2020-02-21 Tom Tromey <tom@tromey.com>
  2604. * Makefile.in (mostlyclean): New target.
  2605. 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  2606. * target.h (struct process_stratum_target): Remove.
  2607. (class process_target): Rename to ...
  2608. (class process_stratum_target): ... this.
  2609. * linux-low.h (class linux_process_target): Derive from
  2610. 'process_stratum_target'.
  2611. * linux-low.cc (linux_target_ops): Remove.
  2612. (initialize_low): Set the_target to the singleton instance of
  2613. linux_process_target.
  2614. * lynx-low.h (class lynx_process_target): Derive from
  2615. 'process_stratum_target'.
  2616. * lynx-low.cc (lynx_target_ops): Remove.
  2617. (initialize_low): Set the_target to the singleton instance of
  2618. lynx_process_target.
  2619. * nto-low.h (class nto_process_target): Derive from
  2620. 'process_stratum_target'.
  2621. * nto-low.cc (nto_target_ops): Remove.
  2622. (initialize_low): Set the_target to the singleton instance of
  2623. nto_process_target.
  2624. * win32-low.h (class win32_process_target): Derive from
  2625. 'process_stratum_target'.
  2626. * win32-low.cc (win32_target_ops): Remove.
  2627. (initialize_low): Set the_target to the singleton instance of
  2628. win32_process_target.
  2629. Replace 'the_target->pt' with 'the_target' in the uses below.
  2630. * hostio.cc (hostio_error)
  2631. (handle_setfs)
  2632. (handle_open)
  2633. (handle_unlink)
  2634. (handle_readlink)
  2635. * linux-aarch32-low.cc (arm_breakpoint_at)
  2636. * linux-aarch64-low.cc (aarch64_breakpoint_at)
  2637. * linux-arm-low.cc (arm_sigreturn_next_pc)
  2638. (arm_get_hwcap)
  2639. (arm_get_syscall_trapinfo)
  2640. * linux-cris-low.cc (cris_breakpoint_at)
  2641. * linux-crisv32-low.cc (cris_breakpoint_at)
  2642. * linux-low.cc (handle_extended_wait)
  2643. (linux_wait_1)
  2644. (linux_read_memory)
  2645. (linux_process_target::breakpoint_kind_from_pc)
  2646. (linux_get_auxv)
  2647. * linux-m32r-low.cc (m32r_breakpoint_at)
  2648. * linux-mips-low.cc (mips_breakpoint_at)
  2649. * linux-nios2-low.cc (nios2_breakpoint_at)
  2650. * linux-ppc-low.cc (ppc_breakpoint_at)
  2651. * linux-s390-low.cc (s390_get_hwcap)
  2652. * linux-sh-low.cc (sh_breakpoint_at)
  2653. * linux-sparc-low.cc (sparc_fill_gregset_to_stack)
  2654. (sparc_store_gregset_from_stack)
  2655. (sparc_breakpoint_at)
  2656. * linux-tic6x-low.cc (tic6x_breakpoint_at)
  2657. * linux-tile-low.cc (tile_breakpoint_at)
  2658. * linux-x86-low.cc (x86_breakpoint_at)
  2659. * linux-xtensa-low.cc (xtensa_breakpoint_at)
  2660. * mem-break.cc (bp_size)
  2661. (bp_opcode)
  2662. (insert_memory_breakpoint)
  2663. (set_raw_breakpoint_at)
  2664. (delete_raw_breakpoint)
  2665. (z_type_supported)
  2666. (uninsert_raw_breakpoint)
  2667. (reinsert_raw_breakpoint)
  2668. (validate_inserted_breakpoint)
  2669. * regcache.cc (regcache_read_pc)
  2670. (regcache_write_pc)
  2671. * remote-utils.cc (putpkt_binary_1)
  2672. (input_interrupt)
  2673. (getpkt)
  2674. (prepare_resume_reply)
  2675. * server.cc (handle_general_set)
  2676. (handle_detach)
  2677. (handle_qxfer_auxv)
  2678. (handle_qxfer_exec_file)
  2679. (handle_qxfer_libraries_svr4)
  2680. (handle_qxfer_osdata)
  2681. (handle_qxfer_siginfo)
  2682. (handle_qxfer_fdpic)
  2683. (handle_query)
  2684. (resume)
  2685. (handle_v_requests)
  2686. (queue_stop_reply_callback)
  2687. (captured_main)
  2688. * target.cc (prepare_to_access_memory)
  2689. (done_accessing_memory)
  2690. (read_inferior_memory)
  2691. (target_write_memory)
  2692. (target_stop_and_wait)
  2693. (target_wait)
  2694. (target_mourn_inferior)
  2695. (target_continue_no_signal)
  2696. (target_continue)
  2697. (target_supports_multi_process)
  2698. (kill_inferior)
  2699. * target.h
  2700. (target_create_inferior)
  2701. (target_post_create_inferior)
  2702. (myattach)
  2703. (target_supports_fork_events)
  2704. (target_supports_vfork_events)
  2705. (target_supports_exec_events)
  2706. (target_handle_new_gdb_connection)
  2707. (detach_inferior)
  2708. (mythread_alive)
  2709. (fetch_inferior_registers)
  2710. (store_inferior_registers)
  2711. (join_inferior)
  2712. (target_supports_non_stop)
  2713. (target_async)
  2714. (target_process_qsupported)
  2715. (target_supports_catch_syscall)
  2716. (target_get_ipa_tdesc_idx)
  2717. (target_supports_tracepoints)
  2718. (target_supports_fast_tracepoints)
  2719. (target_get_min_fast_tracepoint_insn_len)
  2720. (target_thread_stopped)
  2721. (target_pause_all)
  2722. (target_unpause_all)
  2723. (target_stabilize_threads)
  2724. (target_install_fast_tracepoint_jump_pad)
  2725. (target_emit_ops)
  2726. (target_supports_disable_randomization)
  2727. (target_supports_agent)
  2728. (target_enable_btrace)
  2729. (target_disable_btrace)
  2730. (target_read_btrace)
  2731. (target_read_btrace_conf)
  2732. (target_supports_range_stepping)
  2733. (target_supports_stopped_by_sw_breakpoint)
  2734. (target_stopped_by_sw_breakpoint)
  2735. (target_supports_stopped_by_hw_breakpoint)
  2736. (target_supports_hardware_single_step)
  2737. (target_stopped_by_hw_breakpoint)
  2738. (target_breakpoint_kind_from_pc)
  2739. (target_breakpoint_kind_from_current_state)
  2740. (target_supports_software_single_step)
  2741. (target_core_of_thread)
  2742. (target_thread_name)
  2743. (target_thread_handle)
  2744. * win32-low.cc (do_initial_child_stuff)
  2745. Rename target op default definitions listed below.
  2746. * target.cc (process_target::post_create_inferior): Rename as ...
  2747. (process_stratum_target::post_create_inferior): ... this.
  2748. (process_target::prepare_to_access_memory): Rename as ...
  2749. (process_stratum_target::prepare_to_access_memory): ... this.
  2750. (process_target::done_accessing_memory): Rename as ...
  2751. (process_stratum_target::done_accessing_memory): ... this.
  2752. (process_target::look_up_symbols): Rename as ...
  2753. (process_stratum_target::look_up_symbols): ... this.
  2754. (process_target::supports_read_auxv): Rename as ...
  2755. (process_stratum_target::supports_read_auxv): ... this.
  2756. (process_target::read_auxv): Rename as ...
  2757. (process_stratum_target::read_auxv): ... this.
  2758. (process_target::supports_z_point_type): Rename as ...
  2759. (process_stratum_target::supports_z_point_type): ... this.
  2760. (process_target::insert_point): Rename as ...
  2761. (process_stratum_target::insert_point): ... this.
  2762. (process_target::remove_point): Rename as ...
  2763. (process_stratum_target::remove_point): ... this.
  2764. (process_target::stopped_by_sw_breakpoint): Rename as ...
  2765. (process_stratum_target::stopped_by_sw_breakpoint): ... this.
  2766. (process_target::supports_stopped_by_sw_breakpoint): Rename as ...
  2767. (process_stratum_target::supports_stopped_by_sw_breakpoint): ... this.
  2768. (process_target::stopped_by_hw_breakpoint): Rename as ...
  2769. (process_stratum_target::stopped_by_hw_breakpoint): ... this.
  2770. (process_target::supports_stopped_by_hw_breakpoint): Rename as ...
  2771. (process_stratum_target::supports_stopped_by_hw_breakpoint): ... this.
  2772. (process_target::supports_hardware_single_step): Rename as ...
  2773. (process_stratum_target::supports_hardware_single_step): ... this.
  2774. (process_target::stopped_by_watchpoint): Rename as ...
  2775. (process_stratum_target::stopped_by_watchpoint): ... this.
  2776. (process_target::stopped_data_address): Rename as ...
  2777. (process_stratum_target::stopped_data_address): ... this.
  2778. (process_target::supports_read_offsets): Rename as ...
  2779. (process_stratum_target::supports_read_offsets): ... this.
  2780. (process_target::read_offsets): Rename as ...
  2781. (process_stratum_target::read_offsets): ... this.
  2782. (process_target::supports_get_tls_address): Rename as ...
  2783. (process_stratum_target::supports_get_tls_address): ... this.
  2784. (process_target::get_tls_address): Rename as ...
  2785. (process_stratum_target::get_tls_address): ... this.
  2786. (process_target::hostio_last_error): Rename as ...
  2787. (process_stratum_target::hostio_last_error): ... this.
  2788. (process_target::supports_qxfer_osdata): Rename as ...
  2789. (process_stratum_target::supports_qxfer_osdata): ... this.
  2790. (process_target::qxfer_osdata): Rename as ...
  2791. (process_stratum_target::qxfer_osdata): ... this.
  2792. (process_target::supports_qxfer_siginfo): Rename as ...
  2793. (process_stratum_target::supports_qxfer_siginfo): ... this.
  2794. (process_target::qxfer_siginfo): Rename as ...
  2795. (process_stratum_target::qxfer_siginfo): ... this.
  2796. (process_target::supports_non_stop): Rename as ...
  2797. (process_stratum_target::supports_non_stop): ... this.
  2798. (process_target::async): Rename as ...
  2799. (process_stratum_target::async): ... this.
  2800. (process_target::start_non_stop): Rename as ...
  2801. (process_stratum_target::start_non_stop): ... this.
  2802. (process_target::supports_multi_process): Rename as ...
  2803. (process_stratum_target::supports_multi_process): ... this.
  2804. (process_target::supports_fork_events): Rename as ...
  2805. (process_stratum_target::supports_fork_events): ... this.
  2806. (process_target::supports_vfork_events): Rename as ...
  2807. (process_stratum_target::supports_vfork_events): ... this.
  2808. (process_target::supports_exec_events): Rename as ...
  2809. (process_stratum_target::supports_exec_events): ... this.
  2810. (process_target::handle_new_gdb_connection): Rename as ...
  2811. (process_stratum_target::handle_new_gdb_connection): ... this.
  2812. (process_target::handle_monitor_command): Rename as ...
  2813. (process_stratum_target::handle_monitor_command): ... this.
  2814. (process_target::core_of_thread): Rename as ...
  2815. (process_stratum_target::core_of_thread): ... this.
  2816. (process_target::supports_read_loadmap): Rename as ...
  2817. (process_stratum_target::supports_read_loadmap): ... this.
  2818. (process_target::read_loadmap): Rename as ...
  2819. (process_stratum_target::read_loadmap): ... this.
  2820. (process_target::process_qsupported): Rename as ...
  2821. (process_stratum_target::process_qsupported): ... this.
  2822. (process_target::supports_tracepoints): Rename as ...
  2823. (process_stratum_target::supports_tracepoints): ... this.
  2824. (process_target::read_pc): Rename as ...
  2825. (process_stratum_target::read_pc): ... this.
  2826. (process_target::write_pc): Rename as ...
  2827. (process_stratum_target::write_pc): ... this.
  2828. (process_target::supports_thread_stopped): Rename as ...
  2829. (process_stratum_target::supports_thread_stopped): ... this.
  2830. (process_target::thread_stopped): Rename as ...
  2831. (process_stratum_target::thread_stopped): ... this.
  2832. (process_target::supports_get_tib_address): Rename as ...
  2833. (process_stratum_target::supports_get_tib_address): ... this.
  2834. (process_target::get_tib_address): Rename as ...
  2835. (process_stratum_target::get_tib_address): ... this.
  2836. (process_target::pause_all): Rename as ...
  2837. (process_stratum_target::pause_all): ... this.
  2838. (process_target::unpause_all): Rename as ...
  2839. (process_stratum_target::unpause_all): ... this.
  2840. (process_target::stabilize_threads): Rename as ...
  2841. (process_stratum_target::stabilize_threads): ... this.
  2842. (process_target::supports_fast_tracepoints): Rename as ...
  2843. (process_stratum_target::supports_fast_tracepoints): ... this.
  2844. (process_target::get_min_fast_tracepoint_insn_len): Rename as ...
  2845. (process_stratum_target::get_min_fast_tracepoint_insn_len): ... this.
  2846. (process_target::emit_ops): Rename as ...
  2847. (process_stratum_target::emit_ops): ... this.
  2848. (process_target::supports_disable_randomization): Rename as ...
  2849. (process_stratum_target::supports_disable_randomization): ... this.
  2850. (process_target::supports_qxfer_libraries_svr4): Rename as ...
  2851. (process_stratum_target::supports_qxfer_libraries_svr4): ... this.
  2852. (process_target::qxfer_libraries_svr4): Rename as ...
  2853. (process_stratum_target::qxfer_libraries_svr4): ... this.
  2854. (process_target::supports_agent): Rename as ...
  2855. (process_stratum_target::supports_agent): ... this.
  2856. (process_target::enable_btrace): Rename as ...
  2857. (process_stratum_target::enable_btrace): ... this.
  2858. (process_target::disable_btrace): Rename as ...
  2859. (process_stratum_target::disable_btrace): ... this.
  2860. (process_target::read_btrace): Rename as ...
  2861. (process_stratum_target::read_btrace): ... this.
  2862. (process_target::read_btrace_conf): Rename as ...
  2863. (process_stratum_target::read_btrace_conf): ... this.
  2864. (process_target::supports_range_stepping): Rename as ...
  2865. (process_stratum_target::supports_range_stepping): ... this.
  2866. (process_target::supports_pid_to_exec_file): Rename as ...
  2867. (process_stratum_target::supports_pid_to_exec_file): ... this.
  2868. (process_target::pid_to_exec_file): Rename as ...
  2869. (process_stratum_target::pid_to_exec_file): ... this.
  2870. (process_target::supports_multifs): Rename as ...
  2871. (process_stratum_target::supports_multifs): ... this.
  2872. (process_target::multifs_open): Rename as ...
  2873. (process_stratum_target::multifs_open): ... this.
  2874. (process_target::multifs_unlink): Rename as ...
  2875. (process_stratum_target::multifs_unlink): ... this.
  2876. (process_target::multifs_readlink): Rename as ...
  2877. (process_stratum_target::multifs_readlink): ... this.
  2878. (process_target::breakpoint_kind_from_pc): Rename as ...
  2879. (process_stratum_target::breakpoint_kind_from_pc): ... this.
  2880. (process_target::breakpoint_kind_from_current_state): Rename as ...
  2881. (process_stratum_target::breakpoint_kind_from_current_state): ... this.
  2882. (process_target::thread_name): Rename as ...
  2883. (process_stratum_target::thread_name): ... this.
  2884. (process_target::thread_handle): Rename as ...
  2885. (process_stratum_target::thread_handle): ... this.
  2886. (process_target::supports_software_single_step): Rename as ...
  2887. (process_stratum_target::supports_software_single_step): ... this.
  2888. (process_target::supports_catch_syscall): Rename as ...
  2889. (process_stratum_target::supports_catch_syscall): ... this.
  2890. (process_target::get_ipa_tdesc_idx): Rename as ...
  2891. (process_stratum_target::get_ipa_tdesc_idx): ... this.
  2892. 2020-02-20 Pedro Alves <palves@redhat.com>
  2893. * target.cc (set_target_ops): Simply copy the given target pointer
  2894. instead of creating a copy of the pointed object.
  2895. 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  2896. Turn process_stratum_target's get_ipa_tdesc_idx op into a method
  2897. of process_target.
  2898. * target.h (struct process_stratum_target): Remove the target op.
  2899. (class process_target): Add the target op.
  2900. (target_get_ipa_tdesc_idx): Update the macro.
  2901. * target.cc (process_target::get_ipa_tdesc_idx): Define.
  2902. Update the derived classes and callers below.
  2903. * linux-low.cc (linux_target_ops): Update.
  2904. (linux_get_ipa_tdesc_idx): Turn into ...
  2905. (linux_process_target::get_ipa_tdesc_idx): ... this.
  2906. * linux-low.h (class linux_process_target): Update.
  2907. * lynx-low.cc (lynx_target_ops): Update.
  2908. * nto-low.cc (nto_target_ops): Update.
  2909. * win32-low.cc (win32_target_ops): Update.
  2910. 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  2911. Turn process_stratum_target's supports_catch_syscall op into a
  2912. method of process_target.
  2913. * target.h (struct process_stratum_target): Remove the target op.
  2914. (class process_target): Add the target op.
  2915. (target_supports_catch_syscall): Update the macro.
  2916. * target.cc (process_target::supports_catch_syscall): Define.
  2917. Update the derived classes and callers below.
  2918. * linux-low.cc (linux_target_ops): Update.
  2919. (linux_supports_catch_syscall): Turn into ...
  2920. (linux_process_target::supports_catch_syscall): ... this.
  2921. * linux-low.h (class linux_process_target): Update.
  2922. * lynx-low.cc (lynx_target_ops): Update.
  2923. * nto-low.cc (nto_target_ops): Update.
  2924. * win32-low.cc (win32_target_ops): Update.
  2925. 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  2926. Turn process_stratum_target's supports_software_single_step op
  2927. into a method of process_target.
  2928. * target.h (struct process_stratum_target): Remove the target op.
  2929. (class process_target): Add the target op.
  2930. (target_supports_software_single_step): Update the macro.
  2931. * target.cc (process_target::supports_software_single_step): Define.
  2932. Update the derived classes and callers below.
  2933. * linux-low.cc (linux_target_ops): Update.
  2934. (linux_supports_software_single_step): Turn into ...
  2935. (linux_process_target::supports_software_single_step): ... this.
  2936. * linux-low.h (class linux_process_target): Update.
  2937. * lynx-low.cc (lynx_target_ops): Update.
  2938. * nto-low.cc (nto_target_ops): Update.
  2939. * win32-low.cc (win32_target_ops): Update.
  2940. 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  2941. Turn process_stratum_target's thread_name and thread_handle ops
  2942. into methods of process_target.
  2943. * target.h (struct process_stratum_target): Remove the target ops.
  2944. (class process_target): Add the target ops.
  2945. (target_thread_name): Update the macro.
  2946. (target_thread_handle): Update the macro.
  2947. * target.cc (process_target::thread_name): Define.
  2948. (process_target::thread_handle): Define.
  2949. Update the derived classes and callers below.
  2950. * linux-low.cc (linux_target_ops): Update.
  2951. (linux_process_target::thread_name): Define.
  2952. (linux_process_target::thread_handle): Define.
  2953. * linux-low.h (class linux_process_target): Update.
  2954. * lynx-low.cc (lynx_target_ops): Update.
  2955. * nto-low.cc (nto_target_ops): Update.
  2956. * win32-low.cc (win32_target_ops): Update.
  2957. 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  2958. Turn process_stratum_target's breakpoint_kind_from_pc,
  2959. sw_breakpoint_from_kind, and breakpoint_kind_from_current_state
  2960. ops into methods of process_target.
  2961. * target.h (struct process_stratum_target): Remove the target op.
  2962. (class process_target): Add the target op.
  2963. (target_breakpoint_kind_from_pc): Update the macro.
  2964. (target_breakpoint_kind_from_current_state): Update the macro.
  2965. (default_breakpoint_kind_from_pc): Remove declaration.
  2966. * target.cc (default_breakpoint_kind_from_pc): Turn into ...
  2967. (process_target::breakpoint_kind_from_pc): ... this.
  2968. (process_target::breakpoint_kind_from_current_state): Define.
  2969. Update the derived classes and callers below.
  2970. * mem-break.cc (bp_size): Update.
  2971. (bp_opcode): Update.
  2972. * linux-low.cc (linux_target_ops): Update.
  2973. (linux_wait_1): Update.
  2974. (linux_breakpoint_kind_from_pc): Turn into ...
  2975. (linux_process_target::breakpoint_kind_from_pc): ... this.
  2976. (linux_sw_breakpoint_from_kind): Turn into ...
  2977. (linux_process_target::sw_breakpoint_from_kind): ... this.
  2978. (linux_breakpoint_kind_from_current_state): Turn into ...
  2979. (linux_process_target::breakpoint_kind_from_current_state): ... this.
  2980. * linux-low.h (class linux_process_target): Update.
  2981. * lynx-low.cc (lynx_target_ops): Update.
  2982. (lynx_process_target::sw_breakpoint_from_kind): Define.
  2983. * lynx-low.h (class lynx_process_target): Update.
  2984. * nto-low.cc (nto_target_ops): Update.
  2985. (nto_sw_breakpoint_from_kind): Turn into ...
  2986. (nto_process_target::sw_breakpoint_from_kind): ... this.
  2987. * nto-low.h (class nto_process_target): Update.
  2988. * win32-low.cc (win32_target_ops): Update.
  2989. (win32_sw_breakpoint_from_kind): Turn into ...
  2990. (win32_process_target::sw_breakpoint_from_kind): ... this.
  2991. * win32-low.h (class win32_process_target): Update.
  2992. 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  2993. Turn process_stratum_target's multifs_open, multifs_readlink,
  2994. multifs_unlink ops into methods of process_target.
  2995. * target.h (struct process_stratum_target): Remove the target ops.
  2996. (class process_target): Add the target ops. Also add
  2997. 'supports_multifs'.
  2998. * target.cc: Include "fcntl.h", "unistd.h", "sys/types.h", and
  2999. "sys/stat.h".
  3000. (process_target::supports_multifs): Define.
  3001. (process_target::multifs_open): Define.
  3002. (process_target::multifs_readlink): Define.
  3003. (process_target::multifs_unlink): Define.
  3004. Update the derived classes and callers below.
  3005. * hostio.cc (handle_setfs): Update.
  3006. (handle_open): Update.
  3007. (handle_unlink): Update.
  3008. (handle_readlink): Update.
  3009. * linux-low.cc (linux_target_ops): Update.
  3010. (linux_process_target::supports_multifs): Define.
  3011. (linux_process_target::multifs_open): Define.
  3012. (linux_process_target::multifs_readlink): Define.
  3013. (linux_process_target::multifs_unlink): Define.
  3014. * linux-low.h (class linux_process_target): Update.
  3015. * lynx-low.cc (lynx_target_ops): Update.
  3016. * nto-low.cc (nto_target_ops): Update.
  3017. * win32-low.cc (win32_target_ops): Update.
  3018. 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  3019. Turn process_stratum_target's pid_to_exec_file op into a method
  3020. of process_target.
  3021. * target.h (struct process_stratum_target): Remove the target op.
  3022. (class process_target): Add the target op. Also add
  3023. 'supports_pid_to_exec_file'.
  3024. * target.cc (process_target::pid_to_exec_file): Define.
  3025. (process_target::supports_pid_to_exec_file): Define.
  3026. Update the derived classes and callers below.
  3027. * server.cc (handle_qxfer_exec_file): Update.
  3028. (handle_query): Update.
  3029. * linux-low.cc (linux_target_ops): Update.
  3030. (linux_process_target::supports_pid_to_exec_file): Define.
  3031. (linux_process_target::pid_to_exec_file): Define.
  3032. * linux-low.h (class linux_process_target): Update.
  3033. * lynx-low.cc (lynx_target_ops): Update.
  3034. * nto-low.cc (nto_target_ops): Update.
  3035. * win32-low.cc (win32_target_ops): Update.
  3036. 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  3037. Turn process_stratum_target's supports_range_stepping op into a
  3038. method of process_target.
  3039. * target.h (struct process_stratum_target): Remove the target op.
  3040. (class process_target): Add the target op.
  3041. (target_supports_range_stepping): Update the macro.
  3042. * target.cc (process_target::supports_range_stepping): Define.
  3043. Update the derived classes and callers below.
  3044. * linux-low.cc (linux_target_ops): Update.
  3045. (linux_supports_range_stepping): Turn into ...
  3046. (linux_process_target::supports_range_stepping): ... this.
  3047. * linux-low.h (class linux_process_target): Update.
  3048. * lynx-low.cc (lynx_target_ops): Update.
  3049. * nto-low.cc (nto_target_ops): Update.
  3050. * win32-low.cc (win32_target_ops): Update.
  3051. 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  3052. Turn process_stratum_target's btrace-related ops (enable_btrace,
  3053. disable_btrace, read_btrace, read_btrace_conf) into methods of
  3054. process_target.
  3055. * target.h (struct process_stratum_target): Remove the target ops.
  3056. (class process_target): Add the target ops.
  3057. (target_enable_btrace): Update.
  3058. (target_disable_btrace): Update.
  3059. (target_read_btrace): Update.
  3060. (target_read_btrace_conf): Update.
  3061. * target.cc (process_target::enable_btrace): Define.
  3062. (process_target::disable_btrace): Define.
  3063. (process_target::read_btrace): Define.
  3064. (process_target::read_btrace_conf): Define.
  3065. Update the derived classes and callers below.
  3066. * linux-low.cc (linux_target_ops): Update.
  3067. (linux_process_target:enable_btrace): Define as a wrapper around
  3068. linux_enable_btrace.
  3069. (linux_low_disable_btrace): Turn into ...
  3070. (linux_process_target::disable_btrace): ... this.
  3071. (linux_low_read_btrace): Turn into ...
  3072. (linux_process_target::read_btrace): ... this.
  3073. (linux_low_btrace_conf): Turn into ...
  3074. (linux_process_target::read_btrace_conf): ... this.
  3075. * linux-low.h (class linux_process_target): Update.
  3076. * lynx-low.cc (lynx_target_ops): Update.
  3077. * nto-low.cc (nto_target_ops): Update.
  3078. * win32-low.cc (win32_target_ops): Update.
  3079. 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  3080. Turn process_stratum_target's supports_agent op into a method of
  3081. process_target.
  3082. * target.h (struct process_stratum_target): Remove the target op.
  3083. (class process_target): Add the target op.
  3084. (target_supports_agent): Update the macro.
  3085. * target.cc (process_target::supports_agent): Define.
  3086. Update the derived classes and callers below.
  3087. * linux-low.cc (linux_target_ops): Update.
  3088. (linux_supports_agent): Turn into ...
  3089. (linux_process_target::supports_agent): ... this.
  3090. * linux-low.h (class linux_process_target): Update.
  3091. * lynx-low.cc (lynx_target_ops): Update.
  3092. * nto-low.cc (nto_target_ops): Update.
  3093. * win32-low.cc (win32_target_ops): Update.
  3094. 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  3095. Turn process_stratum_target's qxfer_libraries_svr4 op into a
  3096. method of process_target.
  3097. * target.h (struct process_stratum_target): Remove the target op.
  3098. (class process_target): Add the target op. Also add
  3099. 'supports_qxfer_libraries_svr4'.
  3100. * target.cc (process_target::qxfer_libraries_svr4): Define.
  3101. (process_target::supports_qxfer_libraries_svr4): Define.
  3102. Update the derived classes and callers below.
  3103. * server.cc (handle_qxfer_libraries_svr4): Update.
  3104. (handle_query): Update.
  3105. * linux-low.cc (linux_target_ops): Update.
  3106. (linux_process_target::supports_qxfer_libraries_svr4): Define.
  3107. (linux_qxfer_libraries_svr4): Turn into ...
  3108. (linux_process_target::qxfer_libraries_svr4): ... this.
  3109. * linux-low.h (class linux_process_target): Update.
  3110. * lynx-low.cc (lynx_target_ops): Update.
  3111. * nto-low.cc (nto_target_ops): Update.
  3112. * win32-low.cc (win32_target_ops): Update.
  3113. 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  3114. Turn process_stratum_target's supports_disable_randomization op
  3115. into a method of process_target.
  3116. * target.h (struct process_stratum_target): Remove the target op.
  3117. (class process_target): Add the target op.
  3118. (target_supports_disable_randomization): Update the macro.
  3119. * target.cc (process_target::supports_disable_randomization): Define.
  3120. Update the derived classes and callers below.
  3121. * linux-low.cc (linux_target_ops): Update.
  3122. (linux_supports_disable_randomization): Turn into ...
  3123. (linux_process_target::supports_disable_randomization): ... this.
  3124. * linux-low.h (class linux_process_target): Update.
  3125. * lynx-low.cc (lynx_target_ops): Update.
  3126. * nto-low.cc (nto_target_ops): Update.
  3127. * win32-low.cc (win32_target_ops): Update.
  3128. 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  3129. Turn process_stratum_target's emit_ops op into a method of
  3130. process_target.
  3131. * target.h (struct process_stratum_target): Remove the target op.
  3132. (class process_target): Add the target op.
  3133. (target_emit_ops): Update the macro.
  3134. * target.cc (process_target::emit_ops): Define.
  3135. Update the derived classes and callers below.
  3136. * linux-low.cc (linux_target_ops): Update.
  3137. (linux_emit_ops): Turn into ...
  3138. (linux_process_target::emit_ops): ... this.
  3139. * linux-low.h (class linux_process_target): Update.
  3140. * lynx-low.cc (lynx_target_ops): Update.
  3141. * nto-low.cc (nto_target_ops): Update.
  3142. * win32-low.cc (win32_target_ops): Update.
  3143. 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  3144. Turn process_stratum_target's install_fast_tracepoint_jump_pad
  3145. and get_min_fast_tracepoint_insn_len ops into methods of
  3146. process_target.
  3147. * target.h (struct process_stratum_target): Remove the target ops.
  3148. (class process_target): Add the target ops. Also add
  3149. 'supports_fast_tracepoints'.
  3150. (target_supports_fast_tracepoints): Update the macro.
  3151. (target_get_min_fast_tracepoint_insn_len): Update the macro.
  3152. (install_fast_tracepoint_jump_pad): Update and rename the macro
  3153. to ...
  3154. (target_install_fast_tracepoint_jump_pad): ... this.
  3155. * target.cc (process_target::supports_fast_tracepoints): Define.
  3156. (process_target::install_fast_tracepoint_jump_pad): Define.
  3157. (process_target::get_min_fast_tracepoint_insn_len): Define.
  3158. Update the derived classes and callers below.
  3159. * tracepoint.cc (install_fast_tracepoint): Update.
  3160. * linux-low.cc (linux_target_ops): Update.
  3161. (linux_process_target::supports_fast_tracepoints): Define.
  3162. (linux_install_fast_tracepoint_jump_pad): Turn into ...
  3163. (linux_process_target::install_fast_tracepoint_jump_pad): ... this.
  3164. (linux_get_min_fast_tracepoint_insn_len): Turn into ...
  3165. (linux_process_target::get_min_fast_tracepoint_insn_len): ... this.
  3166. * linux-low.h (class linux_process_target): Update.
  3167. * lynx-low.cc (lynx_target_ops): Update.
  3168. * nto-low.cc (nto_target_ops): Update.
  3169. * win32-low.cc (win32_target_ops): Update.
  3170. 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  3171. Turn process_stratum_target's stabilize_threads op into a
  3172. method of process_target.
  3173. * target.h (struct process_stratum_target): Remove the target op.
  3174. (class process_target): Add the target op.
  3175. (target_stabilize_threads): Update the macro.
  3176. * target.cc (process_target::stabilize_threads): Define.
  3177. Update the derived classes and callers below.
  3178. * server.cc (handle_status): Update.
  3179. * tracepoint.cc (cmd_qtdp): Update.
  3180. (cmd_qtstart): Update.
  3181. * linux-low.cc (linux_target_ops): Update.
  3182. (linux_stabilize_threads): Turn into ...
  3183. (linux_process_target::stabilize_threads): ... this.
  3184. (linux_wait_1): Update.
  3185. * linux-low.h (class linux_process_target): Update.
  3186. * lynx-low.cc (lynx_target_ops): Update.
  3187. * nto-low.cc (nto_target_ops): Update.
  3188. * win32-low.cc (win32_target_ops): Update.
  3189. 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  3190. Turn process_stratum_target's pause_all and unpause_all ops
  3191. into methods of process_target.
  3192. * target.h (struct process_stratum_target): Remove the target ops.
  3193. (class process_target): Add the target ops.
  3194. (pause_all): Update the macro and rename to...
  3195. (target_pause_all): ... this.
  3196. (unpause_all): Update the macro and rename to...
  3197. (target_unpause_all): ... this.
  3198. * target.cc (process_target::pause_all): Define.
  3199. (process_target::unpause_all): Define.
  3200. Update the derived classes and callers below.
  3201. * server.cc (handle_status): Update.
  3202. * tracepoint.cc (clear_installed_tracepoints): Update.
  3203. (cmd_qtdp): Update.
  3204. (cmd_qtstart): Update.
  3205. (stop_tracing): Update.
  3206. (cmd_qtstatus): Update.
  3207. (upload_fast_traceframes): Update.
  3208. (run_inferior_command): Update.
  3209. * linux-low.cc (linux_target_ops): Update.
  3210. (linux_pause_all): Turn into ...
  3211. (linux_process_target::pause_all): ... this.
  3212. (linux_unpause_all): Turn into ...
  3213. (linux_process_target::unpause_all): ... this.
  3214. (linux_process_target::prepare_to_access_memory): Update.
  3215. (linux_process_target::done_accessing_memory): Update.
  3216. * linux-low.h (class linux_process_target): Update.
  3217. * lynx-low.cc (lynx_target_ops): Update.
  3218. * nto-low.cc (nto_target_ops): Update.
  3219. * win32-low.cc (win32_target_ops): Update.
  3220. 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  3221. Turn process_stratum_target's get_tib_address op into a method of
  3222. process_target.
  3223. * target.h (struct process_stratum_target): Remove the target op.
  3224. (class process_target): Add the target op. Also add
  3225. 'supports_get_tib_address'.
  3226. * target.cc (process_target::get_tib_address): Define.
  3227. (process_target::supports_get_tib_address): Define.
  3228. Update the derived classes and callers below.
  3229. * server.cc (handle_query): Update.
  3230. * linux-low.cc (win32_target_ops): Update.
  3231. * lynx-low.cc (lynx_target_ops): Update.
  3232. * nto-low.cc (nto_target_ops): Update.
  3233. * win32-low.cc (win32_target_ops): Update.
  3234. (win32_process_target::supports_get_tib_address): Define.
  3235. (win32_get_tib_address): Turn into ...
  3236. (win32_process_target::get_tib_address): ... this.
  3237. * win32-low.h (class win32_process_target): Update.
  3238. 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  3239. Turn process_stratum_target's thread_stopped op into a method of
  3240. process_target.
  3241. * target.h (struct process_stratum_target): Remove the target op.
  3242. (class process_target): Add the target op. Also add
  3243. 'supports_thread_stopped'.
  3244. (target_thread_stopped): Update the macro.
  3245. * target.cc (process_target::thread_stopped): Define.
  3246. (process_target::supports_thread_stopped): Define.
  3247. (prepare_to_access_memory): Update.
  3248. Update the derived classes and callers below.
  3249. * server.cc (queue_stop_reply_callback): Update.
  3250. * linux-low.cc (linux_target_ops): Update.
  3251. (linux_process_target::supports_thread_stopped): Define.
  3252. (linux_thread_stopped): Turn into ...
  3253. (linux_process_target::thread_stopped): ... this.
  3254. * linux-low.h (class linux_process_target): Update.
  3255. * lynx-low.cc (lynx_target_ops): Update.
  3256. * nto-low.cc (nto_target_ops): Update.
  3257. * win32-low.cc (win32_target_ops): Update.
  3258. 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  3259. Turn process_stratum_target's read_pc and write_pc ops into
  3260. methods of process_target.
  3261. * target.h (struct process_stratum_target): Remove the target ops.
  3262. (class process_target): Add the target ops.
  3263. * target.cc (process_target::read_pc): Define.
  3264. (process_target::write_pc): Define.
  3265. Update the derived classes and callers below.
  3266. * regcache.cc (regcache_read_pc): Update.
  3267. (regcache_write_pc): Update.
  3268. * linux-low.cc (linux_target_ops): Update.
  3269. (linux_read_pc): Turn into ...
  3270. (linux_process_target::read_pc): ... this.
  3271. (linux_write_pc): Turn into ...
  3272. (linux_process_target::write_pc): ... this.
  3273. * linux-low.h (class linux_process_target): Update.
  3274. * lynx-low.cc (lynx_target_ops): Update.
  3275. * nto-low.cc (nto_target_ops): Update.
  3276. * win32-low.cc (win32_target_ops): Update.
  3277. 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  3278. Turn process_stratum_target's supports_tracepoints op into a
  3279. method of process_target.
  3280. * target.h (struct process_stratum_target): Remove the target op.
  3281. (class process_target): Add the target op.
  3282. (target_supports_tracepoints): Update the macro.
  3283. * target.cc (process_target::supports_tracepoints): Define.
  3284. Update the derived classes and callers below.
  3285. * linux-low.cc (linux_target_ops): Update.
  3286. (linux_supports_tracepoints): Turn into ...
  3287. (linux_process_target::supports_tracepoints): ... this.
  3288. * linux-low.h (class linux_process_target): Update.
  3289. * lynx-low.cc (lynx_target_ops): Update.
  3290. * nto-low.cc (nto_target_ops): Update.
  3291. * win32-low.cc (win32_target_ops): Update.
  3292. 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  3293. Turn process_stratum_target's process_qsupported op into a method
  3294. of process_target.
  3295. * target.h (struct process_stratum_target): Remove the target op.
  3296. (class process_target): Add the target op.
  3297. (target_process_qsupported): Update the macro.
  3298. * target.cc (process_target::process_qsupported): Define.
  3299. Update the derived classes and callers below.
  3300. * linux-low.cc (linux_target_ops): Update.
  3301. (linux_process_qsupported): Turn into ...
  3302. (linux_process_target::process_qsupported): ... this.
  3303. * linux-low.h (class linux_process_target): Update.
  3304. * lynx-low.cc (lynx_target_ops): Update.
  3305. * nto-low.cc (nto_target_ops): Update.
  3306. * win32-low.cc (win32_target_ops): Update.
  3307. 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  3308. Turn process_stratum_target's read_loadmap op into a method of
  3309. process_target.
  3310. * target.h (struct process_stratum_target): Remove the target op.
  3311. (class process_target): Add the target op. Also add
  3312. 'supports_read_loadmap'.
  3313. * target.cc (process_target::read_loadmap): Define.
  3314. (process_target::supports_read_loadmap): Define.
  3315. Update the derived classes and callers below.
  3316. * server.cc (handle_qxfer_fdpic): Update.
  3317. (handle_query): Update.
  3318. * linux-low.cc (linux_target_ops): Update.
  3319. (linux_process_target::supports_read_loadmap): Define.
  3320. (linux_read_loadmap): Turn into ...
  3321. (linux_process_target::read_loadmap): ... this.
  3322. * linux-low.h (class linux_process_target): Update.
  3323. * lynx-low.cc (lynx_target_ops): Update.
  3324. * nto-low.cc (nto_target_ops): Update.
  3325. * win32-low.cc (win32_target_ops): Update.
  3326. 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  3327. Turn process_stratum_target's core_of_thread op into a method of
  3328. process_target.
  3329. * target.h (struct process_stratum_target): Remove the target op.
  3330. (class process_target): Add the target op.
  3331. (target_core_of_thread): Update the macro.
  3332. * target.cc (process_target::core_of_thread): Define.
  3333. Update the derived classes and callers below.
  3334. * linux-low.cc (linux_target_ops): Update.
  3335. (linux_process_target::core_of_thread): Define.
  3336. * linux-low.h (class linux_process_target): Update.
  3337. * lynx-low.cc (lynx_target_ops): Update.
  3338. * nto-low.cc (nto_target_ops): Update.
  3339. * win32-low.cc (win32_target_ops): Update.
  3340. 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  3341. Turn process_stratum_target's handle_monitor_command op into a
  3342. method of process_target.
  3343. * target.h (struct process_stratum_target): Remove the target op.
  3344. (class process_target): Add the target op.
  3345. (target_handle_monitor_command): Update the macro.
  3346. * target.cc (process_target::handle_monitor_command): Define.
  3347. Update the derived classes and callers below.
  3348. * server.cc (handle_query): Update.
  3349. * linux-low.cc (linux_target_ops): Update.
  3350. (linux_process_target::handle_monitor_command): Define.
  3351. * linux-low.h (class linux_process_target): Update.
  3352. * lynx-low.cc (lynx_target_ops): Update.
  3353. * nto-low.cc (nto_target_ops): Update.
  3354. * win32-low.cc (win32_target_ops): Update.
  3355. 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  3356. Turn process_stratum_target's handle_new_gdb_connection op into a
  3357. method of process_target.
  3358. * target.h (struct process_stratum_target): Remove the target op.
  3359. (class process_target): Add the target op.
  3360. (target_handle_new_gdb_connection): Update the macro.
  3361. * target.cc (process_target::handle_new_gdb_connection): Define.
  3362. Update the derived classes and callers below.
  3363. * linux-low.cc (linux_target_ops): Update.
  3364. (linux_handle_new_gdb_connection): Turn into ...
  3365. (linux_process_target::handle_new_gdb_connection): ... this.
  3366. * linux-low.h (class linux_process_target): Update.
  3367. * lynx-low.cc (lynx_target_ops): Update.
  3368. * nto-low.cc (nto_target_ops): Update.
  3369. * win32-low.cc (win32_target_ops): Update.
  3370. 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  3371. Turn process_stratum_target's supports_fork_events,
  3372. supports_vfork_events, and supports_exec_events ops into methods
  3373. of process_target.
  3374. * target.h (struct process_stratum_target): Remove the target ops.
  3375. (class process_target): Add the target ops.
  3376. (target_supports_fork_events): Update the macro.
  3377. (target_supports_vfork_events): Update the macro.
  3378. (target_supports_exec_events): Update the macro.
  3379. * target.cc (process_target::supports_fork_events): Define.
  3380. (process_target::supports_vfork_events): Define.
  3381. (process_target::supports_exec_events): Define.
  3382. Update the derived classes and callers below.
  3383. * linux-low.cc (linux_target_ops): Update.
  3384. (linux_supports_fork_events): Turn into ...
  3385. (linux_process_target::supports_fork_events): ... this.
  3386. (linux_supports_vfork_events): Turn into ...
  3387. (linux_process_target::supports_vfork_events): ... this.
  3388. (linux_supports_exec_events): Turn into ...
  3389. (linux_process_target::supports_exec_events): ... this.
  3390. * linux-low.h (class linux_process_target): Update.
  3391. * lynx-low.cc (lynx_target_ops): Update.
  3392. * nto-low.cc (nto_target_ops): Update.
  3393. * win32-low.cc (win32_target_ops): Update.
  3394. 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  3395. Turn process_stratum_target's supports_multi_process op into a
  3396. method of process_target.
  3397. * target.h (struct process_stratum_target): Remove the target op.
  3398. (class process_target): Add the target op.
  3399. * target.cc (process_target::supports_multi_process): Define.
  3400. (target_supports_multi_process): Update.
  3401. Update the derived classes and callers below.
  3402. * linux-low.cc (linux_target_ops): Update.
  3403. (linux_supports_multi_process): Turn into ...
  3404. (linux_process_target::supports_multi_process): ... this.
  3405. * linux-low.h (class linux_process_target): Update.
  3406. * lynx-low.cc (lynx_target_ops): Update.
  3407. * nto-low.cc (nto_target_ops): Update.
  3408. * win32-low.cc (win32_target_ops): Update.
  3409. 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  3410. Turn process_stratum_target's supports_non_stop, async, and
  3411. start_non_stop ops into methods of process_target.
  3412. * target.h (struct process_stratum_target): Remove the target ops.
  3413. (class process_target): Add the target ops.
  3414. (target_supports_non_stop): Update the macro.
  3415. (target_async): Update the macro.
  3416. (start_non_stop): Remove declaration.
  3417. * target.cc (process_target::supports_non_stop): Define.
  3418. (process_target::async): Define.
  3419. (process_target::start_non_stop): Define.
  3420. (start_non_stop): Remove.
  3421. Update the derived classes and callers below.
  3422. * server.cc (handle_qxfer_siginfo): Update.
  3423. (handle_query): Update.
  3424. * linux-low.cc (linux_target_ops): Update.
  3425. (linux_supports_non_stop): Turn into ...
  3426. (linux_process_target::supports_non_stop): ... this.
  3427. (linux_async): Turn into ...
  3428. (linux_process_target::async): ... this.
  3429. (linux_start_non_stop): Turn into ...
  3430. (linux_process_target::start_non_stop): ... this.
  3431. * linux-low.h (class linux_process_target): Update.
  3432. * lynx-low.cc (lynx_target_ops): Update.
  3433. * nto-low.cc (nto_target_ops): Update.
  3434. (nto_supports_non_stop): Remove; rely on the default behavior
  3435. instead.
  3436. * win32-low.cc (win32_target_ops): Update.
  3437. 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  3438. Turn process_stratum_target's qxfer_siginfo op into a method of
  3439. process_target.
  3440. * target.h (struct process_stratum_target): Remove the target op.
  3441. (class process_target): Add the target op. Also add
  3442. 'supports_qxfer_siginfo'.
  3443. * target.cc (process_target::qxfer_siginfo): Define.
  3444. (process_target::supports_qxfer_siginfo): Define.
  3445. Update the derived classes and callers below.
  3446. * server.cc (handle_qxfer_siginfo): Update.
  3447. (handle_query): Update.
  3448. * linux-low.cc (linux_target_ops): Update.
  3449. (linux_process_target::supports_qxfer_siginfo): Define.
  3450. (linux_xfer_siginfo): Turn into ...
  3451. (linux_process_target::qxfer_siginfo): ... this.
  3452. * linux-low.h (class linux_process_target): Update.
  3453. * lynx-low.cc (lynx_target_ops): Update.
  3454. * nto-low.cc (nto_target_ops): Update.
  3455. * win32-low.cc (win32_target_ops): Update.
  3456. 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  3457. Turn process_stratum_target's qxfer_osdata op into a method of
  3458. process_target.
  3459. * target.h (struct process_stratum_target): Remove the target op.
  3460. (class process_target): Add the target op. Also add
  3461. 'supports_qxfer_osdata'.
  3462. * target.cc (process_target::qxfer_osdata): Define.
  3463. (process_target::supports_qxfer_osdata): Define.
  3464. Update the derived classes and callers below.
  3465. * server.cc (handle_qxfer_osdata): Update.
  3466. (handle_query): Update.
  3467. * linux-low.cc (linux_target_ops): Update.
  3468. (linux_process_target::supports_qxfer_osdata): Define.
  3469. (linux_qxfer_osdata): Turn into ...
  3470. (linux_process_target::qxfer_osdata): ... this.
  3471. * linux-low.h (class linux_process_target): Update.
  3472. * lynx-low.cc (lynx_target_ops): Update.
  3473. * nto-low.cc (nto_target_ops): Update.
  3474. * win32-low.cc (win32_target_ops): Update.
  3475. 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  3476. Turn process_stratum_target's hostio_last_error op into a
  3477. method of process_target.
  3478. * target.h (struct process_stratum_target): Remove the target op.
  3479. (class process_target): Add the target op.
  3480. * target.cc: Add "hostio.h" to includes.
  3481. (process_target::hostio_last_error): Define.
  3482. Update the derived classes and callers below.
  3483. * hostio.cc (hostio_error): Update.
  3484. * linux-low.cc: Remove "hostio.h" from includes.
  3485. (linux_target_ops): Update.
  3486. * lynx-low.cc (lynx_target_ops): Update.
  3487. * nto-low.cc (nto_target_ops): Update.
  3488. * win32-low.h (class win32_process_target): Update.
  3489. * win32-low.cc (win32_target_ops): Update.
  3490. (wince_hostio_last_error): Turn into ...
  3491. (win32_process_target::hostio_last_error): ... this.
  3492. 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  3493. Turn process_stratum_target's get_tls_address op into a method of
  3494. process_target.
  3495. * target.h (struct process_stratum_target): Remove the target op.
  3496. (class process_target): Add the target op. Also add
  3497. 'supports_get_tls_address'.
  3498. * target.cc (process_target::get_tls_address): Define.
  3499. (process_target::supports_get_tls_address): Define.
  3500. Update the derived classes and callers below.
  3501. * server.cc (handle_query): Update.
  3502. * linux-low.cc (linux_target_ops): Update.
  3503. (linux_process_target::supports_get_tls_address): Define.
  3504. (linux_process_target::get_tls_address): Define.
  3505. * linux-low.h (class linux_process_target): Update.
  3506. * lynx-low.cc (lynx_target_ops): Update.
  3507. * nto-low.cc (nto_target_ops): Update.
  3508. * win32-low.cc (win32_target_ops): Update.
  3509. 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  3510. Turn process_stratum_target's read_offsets op into a method of
  3511. process_target.
  3512. * target.h (struct process_stratum_target): Remove the target op.
  3513. (class process_target): Add the target op. Also add
  3514. 'supports_read_offsets'.
  3515. * target.cc (process_target::read_offsets): Define.
  3516. (process_target::supports_read_offsets): Define.
  3517. Update the derived classes and callers below.
  3518. * server.cc (handle_query): Update.
  3519. * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
  3520. (linux_target_ops): Update.
  3521. (linux_process_target::supports_read_offsets): Define.
  3522. (linux_read_offsets): Turn into ...
  3523. (linux_process_target::read_offsets): ... this.
  3524. * linux-low.h (class linux_process_target): Update.
  3525. * lynx-low.cc (lynx_target_ops): Update.
  3526. * nto-low.cc (nto_target_ops): Update.
  3527. * win32-low.cc (win32_target_ops): Update.
  3528. 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  3529. Turn process_stratum_target's stopped_by_watchpoint and
  3530. stopped_data_address ops into methods of process_target.
  3531. * target.h (struct process_stratum_target): Remove the target ops.
  3532. (class process_target): Add the target ops.
  3533. * target.cc (process_target::stopped_by_watchpoint): Define.
  3534. (process_target::stopped_data_address): Define.
  3535. Update the derived classes and callers below.
  3536. * remote-utils.cc (prepare_resume_reply): Update.
  3537. * linux-low.cc (linux_target_ops): Update.
  3538. (linux_stopped_by_watchpoint): Turn into ...
  3539. (linux_process_target::stopped_by_watchpoint): ... this.
  3540. (linux_stopped_data_address): Turn into ...
  3541. (linux_process_target::stopped_data_address): ... this.
  3542. * linux-low.h (class linux_process_target): Update.
  3543. * lynx-low.cc (lynx_target_ops): Update.
  3544. * nto-low.cc (nto_target_ops): Update.
  3545. (nto_stopped_by_watchpoint): Turn into ...
  3546. (nto_process_target::stopped_by_watchpoint): ... this.
  3547. (nto_stopped_data_address): Turn into ...
  3548. (nto_process_target::stopped_data_address): ... this.
  3549. * nto-low.h (class nto_process_target): Update.
  3550. * win32-low.cc (win32_target_ops): Update.
  3551. (win32_stopped_by_watchpoint): Turn into ...
  3552. (win32_process_target::stopped_by_watchpoint): ... this.
  3553. (win32_stopped_data_address): Turn into ...
  3554. (win32_process_target::stopped_data_address): ... this.
  3555. * win32-low.h (class win32_process_target): Update.
  3556. 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  3557. Turn process_stratum_target's supports_hardware_single_step op into
  3558. a method of process_target.
  3559. * target.h (struct process_stratum_target): Remove the target op.
  3560. (class process_target): Add the target op.
  3561. (target_supports_hardware_single_step): Update the macro.
  3562. (target_can_do_hardware_single_step): Remove declaration.
  3563. * target.cc (process_target::supports_hardware_single_step): Define.
  3564. (target_can_do_hardware_single_step): Remove.
  3565. Update the derived classes and callers below.
  3566. * linux-low.h (class linux_process_target): Update.
  3567. * linux-low.cc (linux_target_ops): Update.
  3568. (linux_supports_hardware_single_step): Turn into ...
  3569. (linux_process_target::supports_hardware_single_step): ... this.
  3570. * lynx-low.h (class lynx_process_target): Update.
  3571. * lynx-low.cc (lynx_target_ops): Update.
  3572. (lynx_process_target::supports_hardware_single_step): Define.
  3573. * nto-low.h (class nto_process_target): Update.
  3574. * nto-low.cc (nto_target_ops): Update.
  3575. (nto_process_target::supports_hardware_single_step): Define.
  3576. * win32-low.h (class win32_process_target): Update.
  3577. * win32-low.cc (win32_target_ops): Update.
  3578. (win32_process_target::supports_hardware_single_step): Define.
  3579. 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  3580. Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
  3581. ops into methods of process_target.
  3582. * target.h (struct process_stratum_target): Remove the target ops.
  3583. (class process_target): Add the target ops.
  3584. (target_stopped_by_hw_breakpoint): Update the macro.
  3585. (target_supports_stopped_by_hw_breakpoint): Update the macro.
  3586. * target.cc (process_target::stopped_by_hw_breakpoint): Define.
  3587. (process_target::supports_stopped_by_hw_breakpoint): Define.
  3588. Update the derived classes and callers below.
  3589. * linux-low.cc (linux_target_ops): Update.
  3590. (linux_stopped_by_hw_breakpoint): Turn into ...
  3591. (linux_process_target::stopped_by_hw_breakpoint): ... this.
  3592. (linux_supports_stopped_by_hw_breakpoint): Turn into ...
  3593. (linux_process_target::supports_stopped_by_hw_breakpoint): ... this.
  3594. * linux-low.h (class linux_process_target): Update.
  3595. * lynx-low.cc (lynx_target_ops): Update.
  3596. * nto-low.cc (nto_target_ops): Update.
  3597. * win32-low.cc (win32_target_ops): Update.
  3598. 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  3599. Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
  3600. ops into methods of process_target.
  3601. * target.h (struct process_stratum_target): Remove the target ops.
  3602. (class process_target): Add the target ops.
  3603. (target_stopped_by_sw_breakpoint): Update the macro.
  3604. (target_supports_stopped_by_sw_breakpoint): Update the macro.
  3605. * target.cc (process_target::stopped_by_sw_breakpoint): Define.
  3606. (process_target::supports_stopped_by_sw_breakpoint): Define.
  3607. Update the derived classes and callers below.
  3608. * linux-low.cc (linux_target_ops): Update.
  3609. (linux_stopped_by_sw_breakpoint): Turn into ...
  3610. (linux_process_target::stopped_by_sw_breakpoint): ... this.
  3611. (linux_supports_stopped_by_sw_breakpoint): Turn into ...
  3612. (linux_process_target::supports_stopped_by_sw_breakpoint): ... this.
  3613. * linux-low.h (class linux_process_target): Update.
  3614. * lynx-low.cc (lynx_target_ops): Update.
  3615. * nto-low.cc (nto_target_ops): Update.
  3616. * win32-low.cc (win32_target_ops): Update.
  3617. 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  3618. Turn process_stratum_target's insert_point and remove_point ops
  3619. into methods of process_target.
  3620. * target.h (struct process_stratum_target): Remove the target ops.
  3621. (class process_target): Add the target ops.
  3622. * target.cc (process_target::insert_point): Define.
  3623. (process_target::remove_point): Define.
  3624. Update the derived classes and callers below.
  3625. * mem-break.cc (set_raw_breakpoint_at): Update.
  3626. (delete_raw_breakpoint): Update.
  3627. (uninsert_raw_breakpoint): Update.
  3628. (reinsert_raw_breakpoint): Update.
  3629. * linux-low.cc (linux_target_ops): Update.
  3630. (linux_insert_point): Turn into ...
  3631. (linux_process_target::insert_point): ... this.
  3632. (linux_remove_point): Turn into ...
  3633. (linux_process_target::remove_point): ... this.
  3634. * linux-low.h (class linux_process_target): Update.
  3635. * lynx-low.cc (lynx_target_ops): Update.
  3636. * nto-low.cc (nto_target_ops): Update.
  3637. (nto_insert_point): Turn into ...
  3638. (nto_process_target::insert_point): ... this.
  3639. (nto_remove_point): Turn into ...
  3640. (nto_process_target::remove_point): ... this.
  3641. * nto-low.h (class nto_process_target): Update.
  3642. * win32-low.cc (win32_target_ops): Update.
  3643. (win32_insert_point): Turn into ...
  3644. (win32_process_target::insert_point): ... this.
  3645. (win32_remove_point): Turn into ...
  3646. (win32_process_target::remove_point): ... this.
  3647. * win32-low.h (class win32_process_target): Update.
  3648. 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  3649. Turn process_stratum_target's supports_z_point_type op into a
  3650. method of process_target.
  3651. * target.h (struct process_stratum_target): Remove the target op.
  3652. (class process_target): Add the target op.
  3653. * target.cc (process_target::supports_z_point_type): Define.
  3654. Update the derived classes and callers below.
  3655. * mem-break.cc (z_type_supported): Update.
  3656. * linux-low.cc (linux_target_ops): Update.
  3657. (linux_supports_z_point_type): Turn into ...
  3658. (linux_process_target::supports_z_point_type): ... this.
  3659. * linux-low.h (class linux_process_target): Update.
  3660. * lynx-low.cc (lynx_target_ops): Update.
  3661. * nto-low.cc (nto_target_ops): Update.
  3662. (nto_supports_z_point_type): Turn into ...
  3663. (nto_process_target::supports_z_point_type): ... this.
  3664. * nto-low.h (class nto_process_target): Update.
  3665. * win32-low.cc (win32_target_ops): Update.
  3666. (win32_supports_z_point_type): Turn into ...
  3667. (win32_process_target::supports_z_point_type): ... this.
  3668. * win32-low.h (class win32_process_target): Update.
  3669. 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  3670. Turn process_stratum_target's read_auxv op into a method of
  3671. process_target.
  3672. * target.h (class process_stratum_target): Remove the target op.
  3673. (struct process_target): Add the target op. Also add
  3674. 'supports_read_auxv'.
  3675. * target.cc (process_target::read_auxv): Define.
  3676. (process_target::supports_read_auxv): Define.
  3677. Update the derived classes and callers below.
  3678. * server.cc (handle_qxfer_auxv): Update.
  3679. (handle_query): Update.
  3680. * linux-low.cc (linux_target_ops): Update.
  3681. (linux_process_target::supports_read_auxv): Define.
  3682. (linux_read_auxv): Turn into ...
  3683. (linux_process_target::read_auxv): ... this.
  3684. * linux-low.h (class linux_process_target): Update.
  3685. * lynx-low.cc (lynx_target_ops): Update.
  3686. * nto-low.cc (nto_target_ops): Update.
  3687. (nto_process_target::supports_read_auxv): Define.
  3688. (nto_read_auxv): Turn into ...
  3689. (nto_process_target::read_auxv): ... this.
  3690. * nto-low.h (class nto_process_target): Update.
  3691. * win32-low.cc (win32_target_ops): Update.
  3692. 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  3693. Turn process_stratum_target's request_interrupt op into a method of
  3694. process_target.
  3695. * target.h (struct process_stratum_target): Remove the target op.
  3696. (class process_target): Add the target op.
  3697. Update the derived classes and callers below.
  3698. * remote-utils.cc (putpkt_binary_1): Update.
  3699. (input_interrupt): Update.
  3700. (getpkt): Update.
  3701. * server.cc (handle_v_requests): Update.
  3702. * linux-low.cc (linux_target_ops): Update.
  3703. (linux_request_interrupt): Turn into ...
  3704. (linux_process_target::request_interrupt): ... this.
  3705. * linux-low.h (class linux_process_target): Update.
  3706. * lynx-low.cc (lynx_target_ops): Update.
  3707. (lynx_request_interrupt): Turn into ...
  3708. (lynx_process_target::request_interrupt): ... this.
  3709. * lynx-low.h (class lynx_process_target): Update.
  3710. * nto-low.cc (nto_target_ops): Update.
  3711. (nto_request_interrupt): Turn into ...
  3712. (nto_process_target::request_interrupt): ... this.
  3713. * nto-low.h (class nto_process_target): Update.
  3714. * win32-low.cc (win32_target_ops): Update.
  3715. (win32_request_interrupt): Turn into ...
  3716. (win32_process_target::request_interrupt): ... this.
  3717. * win32-low.h (class win32_process_target): Update.
  3718. 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  3719. Turn process_stratum_target's look_up_symbols op into a method of
  3720. process_target.
  3721. * target.h (struct process_stratum_target): Remove the target op.
  3722. (class process_target): Add the target op.
  3723. * target.cc (process_target::look_up_symbols): Define.
  3724. Update the derived classes and callers below.
  3725. * server.cc (handle_query): Update.
  3726. * linux-low.cc (linux_target_ops): Update.
  3727. (linux_look_up_symbols): Turn into ...
  3728. (linux_process_target::look_up_symbols): ... this.
  3729. * linux-low.h (class linux_process_target): Update.
  3730. * lynx-low.cc (lynx_target_ops): Update.
  3731. * nto-low.cc (nto_target_ops): Update.
  3732. * win32-low.cc (win32_target_ops): Update.
  3733. 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  3734. Turn process_stratum_target's read_memory and write_memory
  3735. ops into methods of process_target.
  3736. * target.h (struct process_stratum_target): Remove the target ops.
  3737. (class process_target): Add the target ops.
  3738. Update the derived classes and callers below.
  3739. * linux-aarch32-low.cc (arm_breakpoint_at): Update.
  3740. * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
  3741. * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
  3742. (arm_get_syscall_trapinfo): Update.
  3743. * linux-cris-low.cc (cris_breakpoint_at): Update.
  3744. * linux-crisv32-low.cc (cris_breakpoint_at): Update.
  3745. * linux-m32r-low.cc (m32r_breakpoint_at): Update.
  3746. * linux-mips-low.cc (mips_breakpoint_at): Update.
  3747. * linux-nios2-low.cc (nios2_breakpoint_at): Update.
  3748. * linux-ppc-low.cc (ppc_breakpoint_at): Update.
  3749. * linux-sh-low.cc (sh_breakpoint_at): Update.
  3750. * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
  3751. (sparc_store_gregset_from_stack): Update.
  3752. (sparc_breakpoint_at): Update.
  3753. * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
  3754. * linux-tile-low.cc (tile_breakpoint_at): Update.
  3755. * linux-x86-low.cc (x86_breakpoint_at): Update.
  3756. * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
  3757. * mem-brea.cc (insert_memory_breakpoint): Update.
  3758. (validate_inserted_breakpoint): Update.
  3759. * target.cc (read_inferior_memory): Update.
  3760. (target_write_memory): Update.
  3761. * linux-low.cc (linux_target_ops): Update.
  3762. (linux_read_memory): Make a wrapper around the read_memory target
  3763. op call.
  3764. (linux_process_target::read_memory): Rename from linux_read_memory.
  3765. (linux_write_memory): Turn into ...
  3766. (linux_process_target::write_memory): ... this.
  3767. * linux-low.h (class linux_process_target): Update.
  3768. * lynx-low.cc (lynx_target_ops): Update.
  3769. (lynx_read_memory): Turn into ...
  3770. (lynx_process_target::read_memory): ... this.
  3771. (lynx_write_memory): Turn into ...
  3772. (lynx_process_target::write_memory): ... this.
  3773. * lynx-low.h (class lynx_process_target): Update.
  3774. * nto-low.cc (nto_target_ops): Update.
  3775. (nto_read_memory): Turn into ...
  3776. (nto_process_target::read_memory): ... this.
  3777. (nto_write_memory): Turn into ...
  3778. (nto_process_target::write_memory): ... this.
  3779. * nto-low.h (class nto_process_target): Update.
  3780. * win32-low.cc (win32_target_ops): Update.
  3781. (win32_read_inferior_memory): Turn into ...
  3782. (win32_process_target::read_memory): ... this.
  3783. (win32_write_inferior_memory): Turn into ...
  3784. (win32_process_target::write_memory): ... this.
  3785. * win32-low.h (class win32_process_target): Update.
  3786. 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  3787. Turn process_stratum_target's prepare_to_access_memory and
  3788. done_accessing_memory ops into methods of process_target.
  3789. * target.h (struct process_stratum_target): Remove the target ops.
  3790. (class process_target): Add the target ops.
  3791. * target.cc (process_target::prepare_to_access_memory): Define.
  3792. (process_target::done_accessing_memory): Define.
  3793. (prepare_to_access_memory): Update.
  3794. (done_accessing_memory): Update.
  3795. Update the derived classes and callers below.
  3796. * linux-low.cc (linux_target_ops): Update.
  3797. (linux_prepare_to_access_memory): Turn into ...
  3798. (linux_process_target::prepare_to_access_memory): ... this.
  3799. (linux_done_accessing_memory): Turn into ...
  3800. (linux_process_target::done_accessing_memory): ... this.
  3801. * linux-low.h (class linux_process_target): Update.
  3802. * lynx-low.cc (lynx_target_ops): Update.
  3803. * nto-low.cc (nto_target_ops): Update.
  3804. * win32-low.cc (win32_target_ops): Update.
  3805. 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  3806. Turn process_stratum_target's fetch_registers and store_registers
  3807. ops into methods of process_target.
  3808. * target.h (struct process_stratum_target): Remove the target ops.
  3809. (class process_target): Add the target ops.
  3810. (fetch_inferior_registers): Update the macro.
  3811. (store_inferior_registers): Update the macro.
  3812. Update the derived classes and callers below.
  3813. * linux-low.cc (linux_target_ops): Update.
  3814. (linux_fetch_registers): Turn into ...
  3815. (linux_process_target::fetch_registers): ... this.
  3816. (linux_store_registers): Turn into ...
  3817. (linux_process_target::store_registers): ... this.
  3818. * linux-low.h (class linux_process_target): Update.
  3819. * lynx-low.cc (lynx_target_ops): Update.
  3820. (lynx_fetch_registers): Turn into ...
  3821. (lynx_process_target::fetch_registers): ... this.
  3822. (lynx_store_registers): Turn into ...
  3823. (lynx_process_target::store_registers): ... this.
  3824. * lynx-low.h (class lynx_process_target): Update.
  3825. * nto-low.cc (nto_target_ops): Update.
  3826. (nto_fetch_registers): Turn into ...
  3827. (nto_process_target::fetch_registers): ... this.
  3828. (nto_store_registers): Turn into ...
  3829. (nto_process_target::store_registers): ... this.
  3830. * nto-low.h (class nto_process_target): Update.
  3831. * win32-low.cc (win32_target_ops): Update.
  3832. (win32_fetch_inferior_registers): Turn into ...
  3833. (win32_process_target::fetch_registers): ... this.
  3834. (win32_store_inferior_registers): Turn into ...
  3835. (win32_process_target::store_registers): ... this.
  3836. * win32-low.h (class win32_process_target): Update.
  3837. 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  3838. Turn process_stratum_target's wait op into a method of
  3839. process_target.
  3840. * target.h (struct process_stratum_target): Remove the target op.
  3841. (class process_target): Add the target op.
  3842. Update the derived classes and callers below.
  3843. * target.cc (target_wait): Update.
  3844. * linux-low.cc (linux_target_ops): Update.
  3845. (linux_wait): Turn into ...
  3846. (linux_process_target::wait): ... this.
  3847. * linux-low.h (class linux_process_target): Update.
  3848. * lynx-low.cc (lynx_target_ops): Update.
  3849. (lynx_wait): Turn into ...
  3850. (lynx_process_target::wait): ... this.
  3851. * lynx-low.h (class lynx_process_target): Update.
  3852. * nto-low.cc (nto_target_ops): Update.
  3853. (nto_wait): Turn into ...
  3854. (nto_process_target::wait): ... this.
  3855. * nto-low.h (class nto_process_target): Update.
  3856. * win32-low.cc (win32_target_ops): Update.
  3857. (win32_wait): Turn into ...
  3858. (win32_process_target::wait): ... this.
  3859. (do_initial_child_stuff): Update.
  3860. * win32-low.h (class win32_process_target): Update.
  3861. 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  3862. Turn process_stratum_target's resume op into a method of
  3863. process_target.
  3864. * target.h (struct process_stratum_target): Remove the target op.
  3865. (class process_target): Add the target op.
  3866. Update the derived classes and callers below.
  3867. * server.cc (resume): Update.
  3868. * target.cc (target_stop_and_wait): Update.
  3869. (target_continue_no_signal): Update.
  3870. (target_continue): Update.
  3871. * linux-low.cc (linux_target_ops): Update.
  3872. (linux_resume): Turn into ...
  3873. (linux_process_target::resume): ... this.
  3874. * linux-low.h (class linux_process_target): Update.
  3875. * lynx-low.cc (lynx_target_ops): Update.
  3876. (lynx_resume): Turn into ...
  3877. (lynx_process_target::resume): ... this.
  3878. * lynx-low.h (class lynx_process_target): Update.
  3879. * nto-low.cc (nto_target_ops): Update.
  3880. (nto_resume): Turn into ...
  3881. (nto_process_target::resume): ... this.
  3882. * nto-low.h (class nto_process_target): Update.
  3883. * win32-low.cc (win32_target_ops): Update.
  3884. (win32_resume): Turn into ...
  3885. (win32_process_target::resume): ... this.
  3886. (win32_process_target::detach): Update.
  3887. (do_initial_child_stuff): Update.
  3888. * win32-low.h (class win32_process_target): Update.
  3889. 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  3890. Turn process_stratum_target's thread_alive op into a method of
  3891. process_target.
  3892. * target.h (struct process_stratum_target): Remove the target op.
  3893. (class process_target): Add the target op.
  3894. (mythread_alive): Update the macro.
  3895. Update the derived classes and callers below.
  3896. * linux-low.cc (linux_target_ops): Update.
  3897. (linux_thread_alive): Turn into ...
  3898. (linux_process_target::thread_alive): ... this.
  3899. (wait_for_sigstop): Update.
  3900. * linux-low.h (class linux_process_target): Update.
  3901. * lynx-low.cc (lynx_target_ops): Update.
  3902. (lynx_thread_alive): Turn into ...
  3903. (lynx_process_target::thread_alive): ... this.
  3904. * lynx-low.h (class lynx_process_target): Update.
  3905. * nto-low.cc (nto_target_ops): Update.
  3906. (nto_thread_alive): Turn into ...
  3907. (nto_process_target::thread_alive): ... this.
  3908. * nto-low.h (class nto_process_target): Update.
  3909. * win32-low.cc (win32_target_ops): Update.
  3910. (win32_thread_alive): Turn into ...
  3911. (win32_process_target::thread_alive): ... this.
  3912. * win32-low.h (class win32_process_target): Update.
  3913. 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  3914. Turn process_stratum_target's join op into a method of
  3915. process_target.
  3916. * target.h (struct process_stratum_target): Remove the target op.
  3917. (class process_target): Add the target op.
  3918. (join_inferior): Update the macro.
  3919. Update the derived classes and callers below.
  3920. * linux-low.cc (linux_target_ops): Update.
  3921. (linux_join): Turn into ...
  3922. (linux_process_target::join): ... this.
  3923. * linux-low.h (class linux_process_target): Update.
  3924. * lynx-low.cc (lynx_target_ops): Update.
  3925. (lynx_join): Turn into ...
  3926. (lynx_process_target::join): ... this.
  3927. * lynx-low.h (class lynx_process_target): Update.
  3928. * nto-low.cc (nto_target_ops): Update.
  3929. (nto_process_target::join): Define.
  3930. * nto-low.h (class nto_process_target): Update.
  3931. * win32-low.cc (win32_target_ops): Update.
  3932. (win32_join): Turn into ...
  3933. (win32_process_target::join): ... this.
  3934. * win32-low.h (class win32_process_target): Update.
  3935. 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  3936. Turn process_stratum_target's mourn op into a method of
  3937. process_target.
  3938. * target.h (struct process_stratum_target): Remove the target op.
  3939. (class process_target): Add the target op.
  3940. Update the derived classes and callers below.
  3941. * target.cc (target_mourn_inferior): Update.
  3942. * linux-low.cc (linux_target_ops): Update.
  3943. (linux_mourn): Turn into ...
  3944. (linux_process_target::mourn): ... this.
  3945. (handle_extended_wait): Update.
  3946. (linux_process_target::kill): Update.
  3947. (linux_process_target::detach): Update.
  3948. * linux-low.h (class linux_process_target): Update.
  3949. * lynx-low.cc (lynx_target_ops): Update.
  3950. (lynx_mourn): Turn into ...
  3951. (lynx_process_target::mourn): ... this.
  3952. * lynx-low.h (class lynx_process_target): Update.
  3953. * nto-low.cc (nto_target_ops): Update.
  3954. (nto_mourn): Turn into ...
  3955. (nto_process_target::mourn): ... this.
  3956. * nto-low.h (class nto_process_target): Update.
  3957. * win32-low.cc (win32_target_ops): Update.
  3958. (win32_mourn): Turn into ...
  3959. (win32_process_target::mourn): ... this.
  3960. * win32-low.h (class win32_process_target): Update.
  3961. 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  3962. Turn process_stratum_target's detach op into a method of
  3963. process_target.
  3964. * target.h (struct process_stratum_target): Remove the target op.
  3965. (class process_target): Add the target op.
  3966. (detach_inferior): Update the macro.
  3967. Update the derived classes and callers below.
  3968. * linux-low.cc (linux_target_ops): Update.
  3969. (linux_detach): Turn into ...
  3970. (linux_process_target::detach): ... this.
  3971. * linux-low.h (class linux_process_target): Update.
  3972. * lynx-low.cc (lynx_target_ops): Update.
  3973. (lynx_detach): Turn into ...
  3974. (lynx_process_target::detach): ... this.
  3975. * lynx-low.h (class lynx_process_target): Update.
  3976. * nto-low.cc (nto_target_ops): Update.
  3977. (nto_detach): Turn into ...
  3978. (nto_process_target::detach): ... this.
  3979. * nto-low.h (class nto_process_target): Update.
  3980. * win32-low.cc (win32_target_ops): Update.
  3981. (win32_detach): Turn into ...
  3982. (win32_process_target::detach): ... this.
  3983. * win32-low.h (class win32_process_target): Update.
  3984. 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  3985. Turn process_stratum_target's kill op into a method of
  3986. process_target.
  3987. * target.h (struct process_stratum_target): Remove the target op.
  3988. (class process_target): Add the target op.
  3989. Update the derived classes and callers below.
  3990. * target.cc (kill_inferior): Update.
  3991. * linux-low.cc (linux_target_ops): Update.
  3992. (linux_kill): Turn into ...
  3993. (linux_process_target::kill): ... this.
  3994. * linux-low.h (class linux_process_target): Update.
  3995. * lynx-low.cc (lynx_target_ops): Update.
  3996. (lynx_kill): Turn into ...
  3997. (lynx_process_target::kill): ... this.
  3998. * lynx-low.h (class lynx_process_target): Update.
  3999. * nto-low.cc (nto_target_ops): Update.
  4000. (nto_kill): Turn into ...
  4001. (nto_process_target::kill): ... this.
  4002. * nto-low.h (class nto_process_target): Update.
  4003. * win32-low.cc (win32_target_ops): Update.
  4004. (win32_kill): Turn into ...
  4005. (win32_process_target::kill): ... this.
  4006. * win32-low.h (class win32_process_target): Update.
  4007. 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  4008. Turn process_stratum_target's attach op into a method of
  4009. process_target.
  4010. * target.h (struct process_stratum_target): Remove the target op.
  4011. (class process_target): Add the target op.
  4012. (myattach): Update the macro.
  4013. Update the derived classes and callers below.
  4014. * linux-low.cc (linux_target_ops): Update.
  4015. (linux_attach): Turn into ...
  4016. (linux_process_target::attach): ... this.
  4017. * linux-low.h (class linux_process_target): Update.
  4018. * lynx-low.cc (lynx_target_ops): Update.
  4019. (lynx_attach): Turn into ...
  4020. (lynx_process_target::attach): ... this.
  4021. * lynx-low.h (class lynx_process_target): Update.
  4022. * nto-low.cc (nto_target_ops): Update.
  4023. (nto_attach): Turn into ...
  4024. (nto_process_target::attach): ... this.
  4025. * nto-low.h (class nto_process_target): Update.
  4026. * win32-low.cc (win32_target_ops): Update.
  4027. (win32_attach): Turn into ...
  4028. (win32_process_target::attach): ... this.
  4029. * win32-low.h (class win32_process_target): Update.
  4030. 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  4031. Turn process_stratum_target's post_create_inferior op into a method
  4032. of process_target.
  4033. * target.h (struct process_stratum_target): Remove the target op.
  4034. (class process_target): Add the target op.
  4035. (target_post_create_inferior): Update the macro.
  4036. * target.cc (process_target::post_create_inferior): Define.
  4037. Update the derived classes and callers below.
  4038. * linux-low.cc (linux_target_ops): Update.
  4039. (linux_post_create_inferior): Turn into ...
  4040. (linux_process_target::post_create_inferior): ... this.
  4041. * linux-low.h (class linux_process_target): Update.
  4042. * lynx-low.cc (lynx_target_ops): Update.
  4043. * nto-low.cc (nto_target_ops): Update.
  4044. * win32-low.cc (win32_target_ops): Update.
  4045. 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  4046. Turn process_stratum_target's create_inferior op into a method of
  4047. process_target.
  4048. * target.h (struct process_stratum_target): Remove the target op.
  4049. (class process_target): Add the target op.
  4050. (create_inferior): Rename the macro to ...
  4051. (target_create_inferior): ... this.
  4052. Update the derived classes and callers below.
  4053. * server.cc (handle_v_run): Update.
  4054. (captured_main): Update.
  4055. (process_serial_event): Update.
  4056. * linux-low.cc (linux_target_ops): Update.
  4057. (linux_create_inferior): Turn into ...
  4058. (linux_process_target::create_inferior): ... this.
  4059. * linux-low.h (class linux_process_target): Update.
  4060. * lynx-low.cc (lynx_target_ops): Update.
  4061. (lynx_create_inferior): Turn into ...
  4062. (lynx_process_target::create_inferior): ... this.
  4063. * lynx-low.h (class lynx_process_target): Update.
  4064. * nto-low.cc (nto_target_ops): Update.
  4065. (nto_create_inferior): Turn into ...
  4066. (nto_process_target::create_inferior): ... this.
  4067. * nto-low.h (class nto_process_target): Update.
  4068. * win32-low.cc (win32_target_ops): Update.
  4069. (win32_create_inferior): Turn into ...
  4070. (win32_process_target::create_inferior): ... this.
  4071. * win32-low.h (class win32_process_target): Update.
  4072. 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  4073. * target.h (class process_target): New class definition.
  4074. (struct process_stratum_target) <pt>: New field with type
  4075. 'process_target*'.
  4076. * linux-low.h (class linux_process_target): Define as a derived
  4077. class of 'process_target'.
  4078. * linux-low.cc (linux_target_ops): Add a linux_process_target*
  4079. as the 'pt' field.
  4080. * lynx-low.h (class lynx_process_target): Define as a derived
  4081. class of 'process_target'.
  4082. * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
  4083. as the 'pt' field.
  4084. * nto-low.h (class nto_process_target): Define as a derived
  4085. class of 'process_target'.
  4086. * nto-low.cc (nto_target_ops): Add an nto_process_target*
  4087. as the 'pt' field.
  4088. * win32-low.h (class win32_process_target): Define as a derived
  4089. class of 'process_target'.
  4090. * win32-low.cc (win32_target_ops): Add a win32_process_target*
  4091. as the 'pt' field.
  4092. 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
  4093. * configure: Regenerate.
  4094. 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
  4095. Andrew Burgess <andrew.burgess@embecosm.com>
  4096. * linux-riscv-low.cc: New file.
  4097. * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
  4098. and nat/riscv-linux-tdesc.c.
  4099. * configure.srv <riscv*-*-linux*> (srv_tgtobj)
  4100. (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
  4101. Define.
  4102. 2020-02-14 Tom Tromey <tom@tromey.com>
  4103. * acinclude.m4: Don't include acx_configure_dir.m4.
  4104. * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
  4105. (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
  4106. (all, install-only, uninstall, clean-info, clean)
  4107. (maintainer-clean): Don't recurse.
  4108. (subdir_do, all-lib): Remove.
  4109. ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
  4110. (GNULIB_H): Remove.
  4111. (generated_files): Update.
  4112. ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
  4113. * configure: Rebuild.
  4114. * configure.ac: Don't configure gnulib or libiberty.
  4115. (GNULIB): Update.
  4116. 2020-02-14 Eli Zaretskii <eliz@gnu.org>
  4117. * win32-low.c (create_process): Prepend PROGRAM to ARGS when
  4118. preparing the command line for CreateProcess.
  4119. (win32_create_inferior): Reflect the program name in debugging
  4120. output that shows the process and its command line.
  4121. 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
  4122. * Makefile.in: Rename source files from .c to .cc.
  4123. * %.c: Rename to %.cc.
  4124. * configure.ac: Rename server.c to server.cc.
  4125. * configure: Re-generate.
  4126. 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
  4127. * Makefile.in: Rename gdbsupport source files from .c to .cc.
  4128. 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
  4129. * win32-low.c (win32_create_inferior): Set signal_pid.
  4130. 2020-02-12 Maciej W. Rozycki <macro@wdc.com>
  4131. Pedro Alves <palves@redhat.com>
  4132. Skip building gdbserver in a cross-configuration.
  4133. * configure.srv: Set $gdbserver_host depending on whether $target
  4134. is $host. Use $gdbserver_host instead of $host.
  4135. 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
  4136. * configure: Re-generate.
  4137. 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
  4138. * configure: Re-generate.
  4139. 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
  4140. * acinclude.m4: Update warning.m4 path.
  4141. 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
  4142. * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
  4143. (handle_exception): Set siginfo_er.
  4144. (win32_xfer_siginfo): New function.
  4145. 2020-02-07 Tom Tromey <tom@tromey.com>
  4146. Pedro Alves <palves@redhat.com>
  4147. * README: Update build documentation.
  4148. * configure.srv: Set UNSUPPORTED if host is unsupported. Check
  4149. host, not target.
  4150. * configure.ac: Update paths.
  4151. * configure: Rebuild.
  4152. * acinclude.m4: Update paths.
  4153. * Makefile.in: Update include paths.
  4154. (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
  4155. (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
  4156. (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
  4157. (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
  4158. (%-generated.c): Update paths.
  4159. * Move entire directory from ../gdb/gdbserver.
  4160. 2020-01-29 Maciej W. Rozycki <macro@wdc.com>
  4161. * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
  4162. 2020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
  4163. * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
  4164. assignment instead of srv_linux_obj.
  4165. 2020-01-28 Hannes Domani <ssbssa@yahoo.de>
  4166. * server.c (handle_qxfer_libraries): Write segment-address with
  4167. paddress.
  4168. 2020-01-24 Hannes Domani <ssbssa@yahoo.de>
  4169. * Makefile.in (install-strip): New target.
  4170. (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
  4171. * aclocal.m4: Regenerate.
  4172. * configure: Regenerate.
  4173. * configure.ac: Add AM_PROG_INSTALL_STRIP.
  4174. 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
  4175. * Makefile.in (SFILES): Adjust paths to point to real files.
  4176. (OBS): Move waitstatus.o to target/waitstatus.o.
  4177. (TAGS): Transform paths appropriately.
  4178. (%.o): Rename to...
  4179. (nat/%.o): ... this pattern rule.
  4180. (%.o): Rename to...
  4181. (target/%.o): ... this pattern rule.
  4182. * configure.srv: Adjust paths throughout to include nat/ prefix
  4183. with the revant files.
  4184. * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
  4185. * configure: Regenerate.
  4186. 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
  4187. * Makefile.in (TAGS): Remove config files from the recipe.
  4188. 2020-01-14 Tom Tromey <tom@tromey.com>
  4189. * configure: Rebuild.
  4190. * configure.ac: Remove any checks that were added to common.m4.
  4191. * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
  4192. lib-link.m4.
  4193. 2020-01-14 Tom Tromey <tom@tromey.com>
  4194. * server.h: Include config.h.
  4195. * gdbreplay.c: Include config.h.
  4196. * configure: Rebuild.
  4197. * configure.ac: Don't source common.host.
  4198. * acinclude.m4: Update path.
  4199. * Makefile.in (INCSUPPORT): New variable.
  4200. (INCLUDE_CFLAGS): Add INCSUPPORT.
  4201. (SFILES): Update paths.
  4202. (version-generated.c): Update path to create-version.sh.
  4203. (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
  4204. 2020-01-14 Tom Tromey <tom@tromey.com>
  4205. * configure.ac (LIBS): Use WIN32APILIBS.
  4206. (USE_WIN32API): Don't define.
  4207. * configure: Rebuild.
  4208. 2020-01-14 Tom Tromey <tom@tromey.com>
  4209. * configure: Rebuild.
  4210. 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
  4211. * Makefile.in (%-generated.c): Remove rule for files from
  4212. regformats/i386.
  4213. 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
  4214. * configure: Re-generate.
  4215. 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
  4216. * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
  4217. Define to static.
  4218. * tracepoint.c (stop_tracing, flush_trace_buffer,
  4219. about_to_request_buffer_space, get_trace_state_variable_value,
  4220. set_trace_state_variable_value, gdb_collect): Add declaration.
  4221. 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
  4222. * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
  4223. amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
  4224. amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
  4225. i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
  4226. i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
  4227. static.
  4228. 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
  4229. * inferiors.c: Include gdbsupport/common-inferior.h.
  4230. 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
  4231. * hostio-errno.c: Include hostio.h.
  4232. 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
  4233. * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
  4234. prerequisite.
  4235. 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
  4236. * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
  4237. * linux-arm-tdesc.h: Include arch/arm.h.
  4238. 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
  4239. * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
  4240. 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
  4241. * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
  4242. * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
  4243. 2020-01-10 Pedro Alves <palves@redhat.com>
  4244. * fork-child.c (post_fork_inferior): Pass target down to
  4245. startup_inferior.
  4246. * inferiors.c (switch_to_thread): Add process_stratum_target
  4247. parameter.
  4248. * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
  4249. * nto-low.c (nto_target_ops): Now a process_stratum_target.
  4250. * linux-low.c (linux_target_ops): Now a process_stratum_target.
  4251. * remote-utils.c (prepare_resume_reply): Pass the target to
  4252. switch_to_thread.
  4253. * target.c (the_target): Now a process_stratum_target.
  4254. (done_accessing_memory): Pass the target to switch_to_thread.
  4255. (set_target_ops): Ajust to use process_stratum_target.
  4256. * target.h (struct target_ops): Rename to ...
  4257. (struct process_stratum_target): ... this.
  4258. (the_target, set_target_ops): Adjust.
  4259. (prepare_to_access_memory): Adjust comment.
  4260. * win32-low.c (child_xfer_memory): Adjust to use
  4261. process_stratum_target.
  4262. (win32_target_ops): Now a process_stratum_target.
  4263. 2020-01-06 Eli Zaretskii <eliz@gnu.org>
  4264. Pedro Alves <palves@redhat.com>
  4265. * win32-low.c (get_child_debug_event): Extract the fatal exception
  4266. from the exit status and convert to the equivalent Posix signal
  4267. number.
  4268. (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
  4269. * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
  4270. 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
  4271. * Makefile.in: Use INSTALL_PROGRAM_ENV.
  4272. 2020-01-01 Joel Brobecker <brobecker@adacore.com>
  4273. * server.c (gdbserver_version): Change copyright year to 2020.
  4274. * gdbreplay.c (gdbreplay_version): Likewise.
  4275. 2019-12-19 Christian Biesinger <cbiesinger@google.com>
  4276. * configure: Regenerate.
  4277. * configure.ac: Quote variable arguments of test.
  4278. 2019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
  4279. * Makefile.in: Fix build with GNU Make 3.81
  4280. 2019-12-16 Tom Tromey <tromey@adacore.com>
  4281. * server.c (get_exec_file): Constify result.
  4282. 2019-12-10 Christian Biesinger <cbiesinger@google.com>
  4283. * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
  4284. UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
  4285. * config.in: Regenerate.
  4286. * configure: Regenerate.
  4287. * configure.ac: Don't check for strerror.
  4288. * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
  4289. Call safe_strerror instead of strerror.
  4290. * server.h (strerror): Remove this now-unnecessary declaration.
  4291. * tracepoint.c (init_named_socket): Call safe_strerror instead of
  4292. strerror.
  4293. (gdb_agent_helper_thread): Likewise.
  4294. * utils.c (perror_with_name): Likewise.
  4295. 2019-11-26 Tom Tromey <tom@tromey.com>
  4296. * configure, config.in: Rebuild.
  4297. 2019-11-26 Tom Tromey <tom@tromey.com>
  4298. * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
  4299. * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
  4300. gdb_sigmask.
  4301. * configure, config.in: Rebuild.
  4302. 2019-11-26 Tom Tromey <tom@tromey.com>
  4303. * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
  4304. (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
  4305. (GDBSERVER_LIBS): Use PTHREAD_LIBS.
  4306. * acinclude.m4: Include ax_pthread.m4.
  4307. * config.in, configure: Rebuild.
  4308. 2019-11-26 Christian Biesinger <cbiesinger@google.com>
  4309. * debug.c (debug_set_output): Call safe_strerror instead of
  4310. strerror.
  4311. * linux-low.c (attach_proc_task_lwp_callback): Likewise.
  4312. (linux_kill_one_lwp): Likewise.
  4313. (linux_detach_one_lwp): Likewise.
  4314. (linux_wait_for_event_filtered): Likewise.
  4315. (store_register): Likewise.
  4316. * lynx-low.c (lynx_attach): Likewise.
  4317. * mem-break.c (insert_memory_breakpoint): Likewise.
  4318. (remove_memory_breakpoint): Likewise.
  4319. (delete_fast_tracepoint_jump): Likewise.
  4320. (set_fast_tracepoint_jump): Likewise.
  4321. (uninsert_fast_tracepoint_jumps_at): Likewise.
  4322. (reinsert_fast_tracepoint_jumps_at): Likewise.
  4323. * nto-low.c (nto_xfer_memory): Likewise.
  4324. (nto_resume): Likewise.
  4325. 2019-11-20 Luis Machado <luis.machado@linaro.org>
  4326. * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
  4327. instead of register count.
  4328. * tdesc.c (tdesc_contains_feature): New function.
  4329. * tdesc.h (tdesc_contains_feature): New prototype.
  4330. 2019-11-15 Christian Biesinger <cbiesinger@google.com>
  4331. * Makefile.in: Add safe-strerror.c.
  4332. * configure: Regenerate.
  4333. * configure.ac: Don't source common.host.
  4334. 2019-11-15 Christian Biesinger <cbiesinger@google.com>
  4335. * config.in: Regenerate.
  4336. * configure: Regenerate.
  4337. 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
  4338. * ax.c (ax_printf): Handle size_t_arg.
  4339. 2019-11-06 Christian Biesinger <cbiesinger@google.com>
  4340. * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
  4341. * mi/mi-main.c (output_cores): Likewise.
  4342. * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
  4343. (linux_xfer_osdata_modules): Likewise.
  4344. * remote.c (register_remote_support_xml): Likewise.
  4345. * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
  4346. * xml-syscall.c (syscall_create_syscall_desc): Likewise.
  4347. 2019-11-01 Christian Biesinger <cbiesinger@google.com>
  4348. * configure: Regenerate.
  4349. * configure.ac: Remove check for strerror_r.
  4350. 2019-10-31 Christian Biesinger <cbiesinger@google.com>
  4351. * config.in: Regenerate.
  4352. * configure: Regenerate.
  4353. * configure.ac: Also check for strerror_r.
  4354. 2019-10-31 Christian Biesinger <cbiesinger@google.com>
  4355. * ax.h (debug_agent): Remove duplicate declaration.
  4356. 2019-10-26 Tom de Vries <tdevries@suse.de>
  4357. * linux-aarch64-low.c: Fix typos in comments.
  4358. * linux-arm-low.c: Same.
  4359. * linux-low.c: Same.
  4360. * linux-ppc-low.c: Same.
  4361. * proc-service.c: Same.
  4362. * regcache.h: Same.
  4363. * server.c: Same.
  4364. * tracepoint.c: Same.
  4365. * win32-low.c: Same.
  4366. 2019-10-25 Tom Tromey <tromey@adacore.com>
  4367. * utils.c (xstrdup): Remove.
  4368. 2019-10-23 Tom Tromey <tom@tromey.com>
  4369. * configure, config.in: Rebuild.
  4370. 2019-10-23 Tom Tromey <tom@tromey.com>
  4371. * configure: Rebuild.
  4372. * acinclude.m4: Use m4_include, not sinclude.
  4373. 2019-10-17 Tom Tromey <tromey@adacore.com>
  4374. * configure: Rebuild.
  4375. * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
  4376. in AC_CONFIG_FILES invocation.
  4377. * Makefile.in (stamp-h, Makefile): Use new-style config.status
  4378. invocation.
  4379. 2019-10-16 Christian Biesinger <cbiesinger@google.com>
  4380. * server.c: Include xml-builtin.h.
  4381. (get_xml_features): Don't declare xml_builtins here.
  4382. 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
  4383. * Makefile.in: Remove references to vec-ipa.o.
  4384. 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
  4385. * Makefile.in: Remove references to vec.c.
  4386. 2019-10-02 Christian Biesinger <cbiesinger@google.com>
  4387. * server.c (server_waiting): Change to bool.
  4388. (extended_protocol): Likewise.
  4389. (response_needed): Likewise.
  4390. (exit_requested): Likewise.
  4391. (run_once): Likewise.
  4392. (report_no_resumed): Likewise.
  4393. (non_stop): Likewise.
  4394. (disable_packet_vCont): Likewise.
  4395. (disable_packet_Tthread): Likewise.
  4396. (disable_packet_qC): Likewise.
  4397. (disable_packet_qfThreadInfo): Likewise.
  4398. (handle_general_set): Update.
  4399. (handle_detach): Update.
  4400. (handle_monitor_command): Update.
  4401. (handle_query): Update.
  4402. (captured_main): Update.
  4403. (process_serial_event): Update.
  4404. * server.h (server_waiting): Change to bool.
  4405. (disable_packet_vCont): Likewise.
  4406. (disable_packet_Tthread): Likewise.
  4407. (disable_packet_qC): Likewise.
  4408. (disable_packet_qfThreadInfo): Likewise.
  4409. (run_once): Likewise.
  4410. (non_stop): Likewise.
  4411. * target.c (target_stop_and_wait): Update.
  4412. 2019-10-02 Tom Tromey <tromey@adacore.com>
  4413. * Makefile.in (SFILES): Add common-inferior.c.
  4414. (OBS): Add common-inferior.o.
  4415. * server.c (startup_with_shell): Don't define.
  4416. 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
  4417. * linux-low.c (linux_low_read_btrace): Update for change to
  4418. std::vector.
  4419. 2019-09-20 Christian Biesinger <cbiesinger@google.com>
  4420. * debug.c (debug_threads): Remove comment in favor of the header.
  4421. * debug.h (using_threads): Add declaration.
  4422. (debug_threads): Add comment.
  4423. * linux-aarch64-low.c: Include debug.h and remove declaration of
  4424. debug_threads.
  4425. * nto-low.c: Likewise.
  4426. * remote-utils.c: Likewise.
  4427. * thread-db.c: Likewise.
  4428. 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
  4429. * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
  4430. and powerpc-cell64l-ipa.o.
  4431. (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
  4432. from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
  4433. rs6000/powerpc-cell64l.xml from srv_xmlfiles.
  4434. (spu*-*-*): Remove.
  4435. * spu-low.c: Remove file.
  4436. * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
  4437. (parse_spufs_run): Remove.
  4438. (ppc_get_pc): Remove Cell/B.E. support.
  4439. (ppc_set_pc): Likewise.
  4440. (ppc_breakpoint_at): Likewise.
  4441. (ppc_arch_setup): Likewise.
  4442. (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
  4443. tdesc_powerpc_cell32l.
  4444. (initialize_low_arch): Do not call init_registers_powerpc_cell64l
  4445. or init_registers_powerpc_cell32l.
  4446. * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
  4447. (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
  4448. or init_registers_powerpc_cell32l.
  4449. * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
  4450. (init_registers_powerpc_cell32l): Remove prototype.
  4451. (init_registers_powerpc_cell64l): Likewise.
  4452. * target.h (struct target_ops): Remove qxfer_spu member.
  4453. * server.c (handle_qxfer_spu): Remove.
  4454. (qxfer_packets): Remove entry for "spu".
  4455. (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
  4456. * linux-low.c (SPUFS_MAGIC): Remove.
  4457. (spu_enumerate_spu_ids): Remove.
  4458. (linux_qxfer_spu): Remove.
  4459. (linux_target_ops): Remove qxfer_spu member.
  4460. * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
  4461. * nto-low.c (nto_target_ops): Remove qxfer_spu member.
  4462. * win32-low.c (win32_target_ops): Remove qxfer_spu member.
  4463. 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
  4464. * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
  4465. (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
  4466. * config.in: Regenerate.
  4467. * configure: Regenerate.
  4468. 2019-08-15 Tom Tromey <tromey@adacore.com>
  4469. * target.c (target_write_memory): Use gdb::byte_vector.
  4470. 2019-08-15 Tom Tromey <tromey@adacore.com>
  4471. * tracepoint.c (write_inferior_data_pointer)
  4472. (write_inferior_integer, write_inferior_int8)
  4473. (write_inferior_uinteger, m_tracepoint_action_download)
  4474. (r_tracepoint_action_download, x_tracepoint_action_download)
  4475. (l_tracepoint_action_download, clear_inferior_trace_buffer)
  4476. (download_agent_expr, download_tracepoint_1)
  4477. (download_trace_state_variables, upload_fast_traceframes): Update.
  4478. * server.c (gdb_write_memory): Update.
  4479. * remote-utils.c (relocate_instruction): Update.
  4480. * proc-service.c (ps_pdwrite): Update.
  4481. * mem-break.c (remove_memory_breakpoint)
  4482. (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
  4483. (uninsert_fast_tracepoint_jumps_at)
  4484. (reinsert_fast_tracepoint_jumps_at): Update.
  4485. * linux-x86-low.c (append_insns)
  4486. (i386_install_fast_tracepoint_jump_pad)
  4487. (amd64_write_goto_address, i386_write_goto_address): Update.
  4488. * linux-s390-low.c (append_insns, s390_write_goto_address):
  4489. Update.
  4490. * linux-ppc-low.c (ppc_relocate_instruction)
  4491. (ppc_install_fast_tracepoint_jump_pad, emit_insns)
  4492. (ppc_write_goto_address): Update.
  4493. * linux-aarch64-low.c (append_insns): Update.
  4494. * target.h (struct target_ops): Update.
  4495. (write_inferior_memory): Don't declare.
  4496. * target.c (target_write_memory): Rename from
  4497. write_inferior_memory. Remove old target_write_memory.
  4498. 2019-08-15 Tom Tromey <tromey@adacore.com>
  4499. * target.c (write_inferior_memory): Use std::vector.
  4500. 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
  4501. PR build/24886
  4502. * configure.ac: Drop enable-libmcheck support.
  4503. * configure, config.in: Rebuild.
  4504. * acinclude.m4: Don't include it.
  4505. 2019-07-19 Alan Hayward <alan.hayward@arm.com>
  4506. * configure.srv: Remove Arm xml files.
  4507. 2019-07-19 Alan Hayward <alan.hayward@arm.com>
  4508. * configure.srv: Add new files. Remove xml generated files.
  4509. * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
  4510. registers.
  4511. * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
  4512. * linux-aarch32-tdesc.c: New file.
  4513. * linux-aarch32-tdesc.h: New file.
  4514. * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
  4515. * linux-arm-low.c (init_registers_arm, tdesc_arm)
  4516. (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
  4517. (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
  4518. (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
  4519. (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
  4520. (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
  4521. (arm_read_description): Call arm_linux_read_description.
  4522. (initialize_low_arch): Don't init registers.
  4523. * linux-arm-tdesc.c: New file.
  4524. * linux-arm-tdesc.h: New file.
  4525. 2019-07-10 Alan Hayward <alan.hayward@arm.com>
  4526. * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
  4527. Move counter inside for.
  4528. (arm_read_description): Check ptrace earlier.
  4529. (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
  4530. 2019-07-09 Tom Tromey <tom@tromey.com>
  4531. * configure: Rebuild.
  4532. * configure.ac: Change common to gdbsupport.
  4533. * acinclude.m4: Change common to gdbsupport.
  4534. * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
  4535. (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
  4536. common to gdbsupport.
  4537. * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
  4538. gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
  4539. inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
  4540. linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
  4541. linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
  4542. linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
  4543. nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
  4544. server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
  4545. thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
  4546. common to gdbsupport.
  4547. 2019-07-04 Alan Hayward <alan.hayward@arm.com>
  4548. * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
  4549. defines.
  4550. * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
  4551. 2019-07-04 Alan Hayward <alan.hayward@arm.com>
  4552. * configure.srv: Remove legacy xml.
  4553. * linux-aarch64-low.c (initialize_low_arch): Remove
  4554. initialize_low_tdesc call.
  4555. * linux-aarch64-tdesc-selftest.c: Remove file.
  4556. * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
  4557. * linux-x86-low.c (initialize_low_arch): Remove
  4558. initialize_low_tdesc call.
  4559. * linux-x86-tdesc-selftest.c: Remove file.
  4560. * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
  4561. 2019-06-20 Tom de Vries <tdevries@suse.de>
  4562. * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
  4563. s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
  4564. 2019-06-19 Tom de Vries <tdevries@suse.de>
  4565. * debug.h (debug_write): Change return type to ssize_t.
  4566. * debug.c (debug_write): Same.
  4567. 2019-06-14 Tom Tromey <tom@tromey.com>
  4568. * configure.ac: Use new path to gnulib.
  4569. * configure: Rebuild.
  4570. * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
  4571. to gnulib.
  4572. 2019-06-11 Tom Tromey <tom@tromey.com>
  4573. * Makefile.in (SFILES): Add alloc.c.
  4574. (OBS): Add alloc.o.
  4575. (IPA_OBJS): Add alloc-ipa.o.
  4576. (alloc-ipa.o): New target.
  4577. (%.o: ../%.c): New pattern rule.
  4578. 2019-06-10 Tom Tromey <tromey@adacore.com>
  4579. * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
  4580. end warning with a newline.
  4581. * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
  4582. newline.
  4583. * thread-db.c (attach_thread): Don't end warning with a newline.
  4584. (thread_db_notice_clone): Likewise.
  4585. * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
  4586. newline.
  4587. * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
  4588. end warning with a newline.
  4589. 2019-06-04 Pedro Alves <palves@redhat.com>
  4590. * server.c (captured_main): Use make_unique_xstrdup.
  4591. 2019-06-02 Tom Tromey <tom@tromey.com>
  4592. * gdbreplay.c (fromhex): Remove.
  4593. * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
  4594. 2019-05-29 Tom Tromey <tromey@adacore.com>
  4595. * configure: Rebuild.
  4596. 2019-05-06 Kevin Buettner <kevinb@redhat.com>
  4597. * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
  4598. sign extension code on 32-bit builds.
  4599. 2019-05-03 Eli Zaretskii <eliz@gnu.org>
  4600. * remote-utils.c:
  4601. * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
  4602. 2019-04-19 Tom Tromey <tom@tromey.com>
  4603. * server.c (struct vstop_notif): Derive from notif_event.
  4604. <base>: Remove.
  4605. (queue_stop_reply): Update.
  4606. (remove_all_on_match_ptid): Change type. Rewrite.
  4607. (discard_queued_stop_replies): Rewrite.
  4608. (in_queued_stop_replies_ptid): Change type.
  4609. (in_queued_stop_replies): Rewrite.
  4610. (notif_stop): Update.
  4611. (queue_stop_reply_callback): Update.
  4612. (captured_main): Don't call initialize_notif.
  4613. (push_stop_notification): Update.
  4614. * notif.c (notif_write_event, handle_notif_ack)
  4615. (notif_event_enque, notif_push): Update.
  4616. (notif_event_xfree, initialize_notif): Remove.
  4617. * notif.h (struct notif_event): Include <list>, not
  4618. "common/queue.h".
  4619. (struct notif_server) <queue>: Now a std::list.
  4620. (notif_event_p): Remove typedef.
  4621. (initialize_notif): Don't declare.
  4622. (struct notif_event): Add virtual destructor.
  4623. 2019-04-17 Alan Hayward <alan.hayward@arm.com>
  4624. * ax.c (ax_vdebug): Call debug_printf.
  4625. * debug.c (debug_write): New function.
  4626. * debug.h (debug_write): New declaration.
  4627. * linux-low.c (sigchld_handler): Call debug_write.
  4628. 2019-04-17 Alan Hayward <alan.hayward@arm.com>
  4629. * debug.c (debug_set_output): New function.
  4630. (debug_vprintf): Send output to debug_file.
  4631. (debug_flush): Likewise.
  4632. * debug.h (debug_set_output): New declaration.
  4633. * server.c (handle_monitor_command): Add debug-file option.
  4634. (captured_main): Likewise.
  4635. 2019-04-17 Alan Hayward <alan.hayward@arm.com>
  4636. * debug.c (remote_debug): Add definition.
  4637. * debug.h (remote_debug): Add declaration.
  4638. * hostio.c (remote_debug): Remove declaration.
  4639. * remote-utils.c (struct ui_file): Likewise.
  4640. (remote_debug): Likewise.
  4641. * remote-utils.h (remote_debug): Likewise,
  4642. * server.c (remote_debug): Remove definition.
  4643. 2019-04-10 Kevin Buettner <kevinb@redhat.com>
  4644. * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
  4645. when using a 64-bit gdbserver.
  4646. 2019-04-09 Tom Tromey <tromey@adacore.com>
  4647. * linux-low.c (select_event_lwp): Use find_thread_in_random.
  4648. 2019-04-08 Tom Tromey <tom@tromey.com>
  4649. * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
  4650. throw.
  4651. (linux_resume_one_lwp): Likewise.
  4652. 2019-04-08 Tom Tromey <tom@tromey.com>
  4653. * gdbreplay.c: Update.
  4654. * linux-low.c: Update.
  4655. * server.c: Update.
  4656. 2019-04-08 Tom Tromey <tom@tromey.com>
  4657. * server.c: Use C++ exception handling.
  4658. * linux-low.c: Use C++ exception handling.
  4659. * gdbreplay.c: Use C++ exception handling.
  4660. 2019-04-08 Tom Tromey <tom@tromey.com>
  4661. * server.c (handle_btrace_general_set, handle_qxfer_btrace)
  4662. (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
  4663. (captured_main, main): Update.
  4664. * gdbreplay.c (main): Update.
  4665. 2019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
  4666. * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
  4667. value in argument pointer, return 1 if the entry is found and 0
  4668. otherwise. Move comment.
  4669. (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
  4670. * linux-low.h (linux_get_auxv): Declare.
  4671. * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
  4672. 2019-04-05 Tom Tromey <tromey@adacore.com>
  4673. * server.c (gdbserver_usage): Use upper-case for metasyntactic
  4674. variables.
  4675. 2019-03-28 Alan Hayward <alan.hayward@arm.com>
  4676. * linux-low.c (AT_HWCAP2): Add define if not already included.
  4677. 2019-03-26 Alan Hayward <alan.hayward@arm.com>
  4678. * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
  4679. (aarch64_arch_setup): Call linux_get_hwcap.
  4680. * linux-arm-low.c (arm_get_hwcap): Remove function.
  4681. (arm_read_description): Call linux_get_hwcap.
  4682. * linux-low.c (linux_get_auxv): New function.
  4683. (linux_get_hwcap): Likewise.
  4684. (linux_get_hwcap2): Likewise.
  4685. * linux-low.h (linux_get_hwcap): New declaration.
  4686. (linux_get_hwcap2): Likewise.
  4687. * linux-ppc-low.c (ppc_get_auxv): Remove function.
  4688. (ppc_arch_setup): Call linux_get_hwcap.
  4689. * linux-s390-low.c (s390_get_hwcap): Remove function.
  4690. (s390_arch_setup): Call linux_get_hwcap.
  4691. 2019-03-22 Alan Hayward <alan.hayward@arm.com>
  4692. Jiong Wang <jiong.wang@arm.com>
  4693. * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
  4694. * linux-low.c (regsets_store_inferior_registers): Allow optional reads
  4695. to fail.
  4696. * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
  4697. 2019-03-22 Alan Hayward <alan.hayward@arm.com>
  4698. Jiong Wang <jiong.wang@arm.com>
  4699. * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
  4700. (aarch64_get_hwcap): New function.
  4701. (aarch64_arch_setup): Read APIA hwcap.
  4702. 2019-03-22 Alan Hayward <alan.hayward@arm.com>
  4703. Jiong Wang <jiong.wang@arm.com>
  4704. * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
  4705. (initialize_low_tracepoint): Likewise.
  4706. * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
  4707. * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
  4708. * linux-aarch64-tdesc.c (struct target_desc): Likewise.
  4709. (aarch64_linux_read_description): Likewise.
  4710. * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
  4711. 2019-03-12 John Baldwin <jhb@FreeBSD.org>
  4712. * linux-x86-tdesc.c (i386_linux_read_description): Update call to
  4713. i386_create_target_description for 'segments' parameter.
  4714. * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
  4715. * nto-x86-low.c (nto_x86_arch_setup): Likewise.
  4716. * win32-i386-low.c (i386_arch_setup): Likewise.
  4717. 2019-03-12 Tom Tromey <tromey@adacore.com>
  4718. * linux-low.c (iterate_over_lwps): Update.
  4719. 2019-03-06 Tom Tromey <tom@tromey.com>
  4720. * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
  4721. (captured_main): Use SCOPE_EXIT.
  4722. 2019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
  4723. * configure.srv: Use '$enable_unittest' instead of '$development'
  4724. when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
  4725. case.
  4726. 2019-02-27 Tom Tromey <tromey@adacore.com>
  4727. * gdbreplay.c (logchar): Handle \r\n.
  4728. 2019-02-07 Alan Hayward <alan.hayward@arm.com>
  4729. * linux-low.c (linux_attach): Add process before lwp.
  4730. * server.c (attach_inferior): Check if already attached.
  4731. 2019-02-07 Tom Tromey <tom@tromey.com>
  4732. * x86-tdesc.h: Rename include guard.
  4733. * x86-low.h: Add include guard.
  4734. * wincecompat.h: Rename include guard.
  4735. * win32-low.h: Add include guard.
  4736. * utils.h: Rename include guard.
  4737. * tracepoint.h: Rename include guard.
  4738. * tdesc.h: Rename include guard.
  4739. * target.h: Rename include guard.
  4740. * server.h: Rename include guard.
  4741. * remote-utils.h: Rename include guard.
  4742. * regcache.h: Rename include guard.
  4743. * nto-low.h: Rename include guard.
  4744. * notif.h: Add include guard.
  4745. * mem-break.h: Rename include guard.
  4746. * lynx-low.h: Add include guard.
  4747. * linux-x86-tdesc.h: Add include guard.
  4748. * linux-s390-tdesc.h: Add include guard.
  4749. * linux-ppc-tdesc-init.h: Add include guard.
  4750. * linux-low.h: Add include guard.
  4751. * linux-aarch64-tdesc.h: Add include guard.
  4752. * linux-aarch32-low.h: Add include guard.
  4753. * inferiors.h: Rename include guard.
  4754. * i387-fp.h: Rename include guard.
  4755. * hostio.h: Rename include guard.
  4756. * gdbthread.h: Rename include guard.
  4757. * gdb_proc_service.h: Rename include guard.
  4758. * event-loop.h: Rename include guard.
  4759. * dll.h: Rename include guard.
  4760. * debug.h: Rename include guard.
  4761. * ax.h: Rename include guard.
  4762. 2018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
  4763. PR gdb/23985
  4764. * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
  4765. (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
  4766. 2019-01-25 Tom Tromey <tom@tromey.com>
  4767. * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
  4768. 2019-01-25 Tom Tromey <tom@tromey.com>
  4769. * win32-low.c: Fix common/ includes.
  4770. * win32-i386-low.c: Fix common/ includes.
  4771. * tracepoint.c: Fix common/ includes.
  4772. * thread-db.c: Fix common/ includes.
  4773. * target.h: Fix common/ includes.
  4774. * symbol.c: Fix common/ includes.
  4775. * spu-low.c: Fix common/ includes.
  4776. * server.h: Fix common/ includes.
  4777. * server.c: Fix common/ includes.
  4778. * remote-utils.c: Fix common/ includes.
  4779. * regcache.h: Fix common/ includes.
  4780. * regcache.c: Fix common/ includes.
  4781. * nto-x86-low.c: Fix common/ includes.
  4782. * notif.h: Fix common/ includes.
  4783. * mem-break.h: Fix common/ includes.
  4784. * lynx-low.c: Fix common/ includes.
  4785. * lynx-i386-low.c: Fix common/ includes.
  4786. * linux-x86-tdesc-selftest.c: Fix common/ includes.
  4787. * linux-x86-low.c: Fix common/ includes.
  4788. * linux-low.c: Fix common/ includes.
  4789. * inferiors.h: Fix common/ includes.
  4790. * i387-fp.c: Fix common/ includes.
  4791. * hostio.c: Fix common/ includes.
  4792. * hostio-errno.c: Fix common/ includes.
  4793. * gdbthread.h: Fix common/ includes.
  4794. * gdbreplay.c: Fix common/ includes.
  4795. * fork-child.c: Fix common/ includes.
  4796. * event-loop.c: Fix common/ includes.
  4797. * ax.c (enum gdb_agent_op): Fix common/ includes.
  4798. 2019-01-21 Tom Tromey <tom@tromey.com>
  4799. * tracepoint.c: Fix includes.
  4800. * remote-utils.c: Fix includes.
  4801. * linux-x86-low.c: Fix includes.
  4802. 2019-01-01 Joel Brobecker <brobecker@adacore.com>
  4803. * gdbreplay.c (gdbreplay_version): Update copyright year in
  4804. version message.
  4805. * server.c (gdbserver_version): Likewise.
  4806. 2018-12-05 Alan Hayward <alan.hayward@arm.com>
  4807. * linux-low.c (add_lwp): Switch ordering.
  4808. 2018-11-29 Tom Tromey <tom@tromey.com>
  4809. * win32-low.c (win32_join): Take pid, not process.
  4810. * target.h (struct target_ops) <join>: Change argument type.
  4811. (join_inferior): Change argument name.
  4812. * spu-low.c (spu_join): Take pid, not process.
  4813. * server.c (handle_detach): Preserve pid before destroying
  4814. process.
  4815. * lynx-low.c (lynx_join): Take pid, not process.
  4816. * linux-low.c (linux_join): Take pid, not process.
  4817. 2018-11-23 Alan Hayward <alan.hayward@arm.com>
  4818. * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
  4819. (aarch64_cannot_fetch_register): Likewise.
  4820. (struct linux_target_ops): Update references.
  4821. 2018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
  4822. * linux-ppc-low.c: Include nat/linux-ptrace.h.
  4823. 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
  4824. * configure.srv (ipa_ppc_linux_regobj): Add
  4825. powerpc-isa207-htm-vsx32l-ipa.o and
  4826. powerpc-isa207-htm-vsx64l-ipa.o.
  4827. (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
  4828. powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
  4829. rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
  4830. rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
  4831. rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
  4832. rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
  4833. rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
  4834. and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
  4835. * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
  4836. <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
  4837. (init_registers_powerpc_isa207_htm_vsx32l)
  4838. (init_registers_powerpc_isa207_htm_vsx64l): Declare.
  4839. * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
  4840. (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
  4841. (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
  4842. (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
  4843. (ppc_store_tm_ctarregset): New functions.
  4844. (ppc_regsets): Add entries for HTM regsets.
  4845. (ppc_arch_setup): Set htm in features struct when needed. Set
  4846. sizes for the HTM regsets.
  4847. (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
  4848. (initialize_low_arch): Call
  4849. init_registers_powerpc_isa207_htm_vsx32l and
  4850. init_registers_powerpc_isa207_htm_vsx64l.
  4851. * linux-ppc-ipa.c (get_ipa_tdesc): Handle
  4852. PPC_TDESC_ISA207_HTM_VSX.
  4853. (initialize_low_tracepoint): Call
  4854. init_registers_powerpc_isa207_htm_vsx32l and
  4855. init_registers_powerpc_isa207_htm_vsx64l.
  4856. 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
  4857. * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
  4858. rs6000/power-linux-pmu.xml to srv_xmlfiles.
  4859. * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
  4860. (ppc_store_pmuregset): New functions.
  4861. (ppc_regsets): Add entries for ebb and pmu regsets.
  4862. (ppc_arch_setup): Set isa207 in features struct if the ebb and
  4863. pmu regsets are available. Set sizes for these regsets.
  4864. 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
  4865. * configure.srv (ipa_ppc_linux_regobj): Add
  4866. powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
  4867. (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
  4868. powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
  4869. rs6000/powerpc-isa207-vsx32l.xml, and
  4870. rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
  4871. * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
  4872. <PPC_TDESC_ISA207_VSX>: New enum value.
  4873. (init_registers_powerpc_isa207_vsx32l): Declare.
  4874. (init_registers_powerpc_isa207_vsx64l): Declare.
  4875. * linux-ppc-low.c (ppc_fill_tarregset): New function.
  4876. (ppc_store_tarregset): New function.
  4877. (ppc_regsets): Add entry for the TAR regset.
  4878. (ppc_arch_setup): Set isa207 in features struct when needed. Set
  4879. size for the TAR regsets.
  4880. (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
  4881. (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
  4882. and init_registers_powerpc_isa207_vsx64l.
  4883. * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
  4884. (initialize_low_tracepoint): Call
  4885. init_registers_powerpc_isa207_vsx32l and
  4886. init_registers_powerpc_isa207_vsx64l.
  4887. 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
  4888. Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
  4889. * configure.srv (ipa_ppc_linux_regobj): Add
  4890. powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
  4891. powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
  4892. (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
  4893. powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
  4894. rs6000/power-dscr.xml, rs6000/power-ppr.xml,
  4895. rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
  4896. rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
  4897. * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
  4898. <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
  4899. (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
  4900. (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
  4901. * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
  4902. (ppc_hwcap): Add comment.
  4903. (ppc_hwcap2): New global.
  4904. (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
  4905. (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
  4906. (ppc_regsets): Add entries for the DSCR and PPR regsets.
  4907. (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
  4908. when needed. Set sizes for the the DSCR and PPR regsets.
  4909. (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
  4910. (initialize_low_arch): Call
  4911. init_registers_powerpc_isa205_ppr_dscr_vsx32l and
  4912. init_registers_powerpc_isa205_ppr_dscr_vsx64l.
  4913. * linux-ppc-ipa.c (get_ipa_tdesc): Handle
  4914. PPC_TDESC_ISA205_PPR_DSCR_VSX.
  4915. (initialize_low_tracepoint): Call
  4916. init_registers_powerpc_isa205_ppr_dscr_vsx32l and
  4917. init_registers_powerpc_isa205_ppr_dscr_vsx64l.
  4918. 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
  4919. * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
  4920. 2018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
  4921. Simon Marchi <simark@simark.ca>
  4922. * acinclude.m4: Include "../selftest.m4".
  4923. * configure: Regenerate.
  4924. * configure.ac: Use "GDB_AC_SELFTEST".
  4925. * configure.srv: Use "$enable_unittests" instead of
  4926. "$development" when checking whether unit tests have been
  4927. enabled.
  4928. * server.c (captured_main): Update message informing that
  4929. selftests have been disabled.
  4930. 2018-10-04 Tom Tromey <tom@tromey.com>
  4931. * configure: Rebuild.
  4932. 2018-10-04 Tom Tromey <tom@tromey.com>
  4933. * server.c (handle_status): Rename inner "thread".
  4934. (process_serial_event): Declare "res" in 'm' case.
  4935. * linux-low.c (last_thread_of_process_p, find_lwp_pid)
  4936. (iterate_over_lwps): Rename inner "thread".
  4937. (linux_qxfer_libraries_svr4): Rename inner "len".
  4938. * gdbthread.h (find_thread_in_random): Rename inner "thread".
  4939. 2018-10-01 Gary Benson <gbenson@redhat.com>
  4940. * gdb_proc_service.h: Moved common code to
  4941. common/gdb_proc_service.h.
  4942. 2018-10-01 Gary Benson <gbenson@redhat.com>
  4943. * gdb_proc_service.h: Synchronize comments and whitespace with
  4944. GDB's version of this file.
  4945. 2018-09-25 Tom Tromey <tom@tromey.com>
  4946. * configure: Rebuild.
  4947. * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
  4948. 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
  4949. * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
  4950. (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
  4951. ($(IPA_LIB)): Sort IPA_OBJS.
  4952. 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
  4953. * Makefile.in: Remove references to $(ADD_DEPS).
  4954. 2018-09-16 Tom Tromey <tom@tromey.com>
  4955. * remote-utils.c (remote_open): Use GNU style for metasyntactic
  4956. variables.
  4957. * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
  4958. variables.
  4959. 2018-09-05 Tom Tromey <tom@tromey.com>
  4960. * configure: Rebuild.
  4961. 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
  4962. PR build/23399
  4963. * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
  4964. 2018-08-27 Tom Tromey <tom@tromey.com>
  4965. PR build/23087:
  4966. * configure: Rebuild.
  4967. 2018-08-27 Tom Tromey <tom@tromey.com>
  4968. * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
  4969. (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
  4970. (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
  4971. (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
  4972. (s390x_emit_stack_adjust): Add casts to unsigned char.
  4973. 2018-08-22 Simon Marchi <simon.marchi@ericsson.com>
  4974. PR gdb/23374
  4975. PR gdb/23375
  4976. * server.h (struct client_state) <disable_randomization>:
  4977. Initialize to 1.
  4978. 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
  4979. * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
  4980. variable.
  4981. (mips_supply_ptrace_register): Likewise.
  4982. 2018-07-22 Tom Tromey <tom@tromey.com>
  4983. * configure: Rebuild.
  4984. 2018-07-22 Tom Tromey <tom@tromey.com>
  4985. * win32-low.c (win32_create_inferior): Remove unused variables.
  4986. * gdbreplay.c (remote_open): Remove unused variable.
  4987. * remote-utils.c (remote_prepare): Remove unused variable.
  4988. * x86-tdesc.h (X86_TDESC_H): Define.
  4989. (amd64_expedite_regs): Define conditionally.
  4990. (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
  4991. * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
  4992. * remote-utils.c (readchar): Remove unused variable.
  4993. 2018-07-13 Pedro Alves <palves@redhat.com>
  4994. * linux-low.c (linux_kill): Change parameter to process_info
  4995. pointer instead of pid. Adjust.
  4996. * lynx-low.c (lynx_kill): Likewise.
  4997. * nto-low.c (nto_kill): Likewise.
  4998. * spu-low.c (spu_kill): Likewise.
  4999. * win32-low.c (win32_kill): Likewise.
  5000. * server.c (handle_v_kill, kill_inferior_callback)
  5001. (detach_or_kill_for_exit): Adjust.
  5002. * target.c (kill_inferior): Change parameter to process_info
  5003. pointer instead of pid. Adjust.
  5004. * target.h (struct target_ops) <kill>: Change parameter to
  5005. process_info pointer instead of pid. Adjust all implementations
  5006. and callers.
  5007. (kill_inferior): Likewise.
  5008. 2018-07-13 Pedro Alves <palves@redhat.com>
  5009. * linux-low.c (linux_detach, linux_join): Change parameter to
  5010. process_info pointer instead of pid. Adjust.
  5011. * lynx-low.c (lynx_detach, lynx_join): Likewise.
  5012. * nto-low.c (nto_detach): Likewise.
  5013. * spu-low.c (spu_detach, spu_join): Likewise.
  5014. * win32-low.c (win32_detach, win32_join): Likewise.
  5015. * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
  5016. * target.h (struct target_ops) <detach, join>: Change parameter to
  5017. process_info pointer instead of pid. Adjust all implementations
  5018. and callers.
  5019. (detach_inferior, join_inferior): Rename 'pid' parameter to
  5020. 'proc'.
  5021. 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
  5022. Jan Kratochvil <jan.kratochvil@redhat.com>
  5023. Paul Fertser <fercerpav@gmail.com>
  5024. Tsutomu Seki <sekiriki@gmail.com>
  5025. * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
  5026. (OBS): Add 'common/netstuff.o'.
  5027. (GDBREPLAY_OBS): Likewise.
  5028. * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
  5029. (remote_open): Implement support for IPv6
  5030. connections.
  5031. * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
  5032. and 'wspiapi.h'.
  5033. (handle_accept_event): Accept connections from IPv6 sources.
  5034. (remote_prepare): Handle IPv6-style hostnames; implement
  5035. support for IPv6 connections.
  5036. (remote_open): Implement support for printing connections from
  5037. IPv6 sources.
  5038. 2018-07-11 Pedro Alves <palves@redhat.com>
  5039. PR gdb/23377
  5040. * mem-break.c (any_persistent_commands): Add process_info
  5041. parameter and use it instead of relying on the current process.
  5042. Change return type to bool.
  5043. * mem-break.h (any_persistent_commands): Add process_info
  5044. parameter and change return type to bool.
  5045. * server.c (handle_detach): Remove require_running_or_return call.
  5046. Look up the process_info for the process we're about to detach.
  5047. If not found, return back error to GDB. Adjust
  5048. any_persistent_commands call to pass down a process pointer.
  5049. 2018-07-11 Pedro Alves <palves@redhat.com>
  5050. * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
  5051. (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
  5052. instead of collect_register_by_name.
  5053. * regcache.c (regcache_raw_get_unsigned_by_name): New.
  5054. * regcache.h (regcache_raw_get_unsigned_by_name): New.
  5055. 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
  5056. Pedro Alves <palves@redhat.com>
  5057. * linux-low.c (initialize_low): Call linux_proc_init_warnings.
  5058. 2018-07-03 Tom Tromey <tom@tromey.com>
  5059. * linux-low.c: Update.
  5060. * lynx-low.c: Update.
  5061. * mem-break.c: Update.
  5062. * nto-low.c: Update.
  5063. * remote-utils.c: Update.
  5064. * server.c: Update.
  5065. * spu-low.c: Update.
  5066. * target.c: Update.
  5067. * win32-low.c: Update.
  5068. 2018-07-03 Tom Tromey <tom@tromey.com>
  5069. * server.c: Update.
  5070. 2018-07-03 Tom Tromey <tom@tromey.com>
  5071. * linux-low.c: Update.
  5072. 2018-07-03 Tom Tromey <tom@tromey.com>
  5073. * target.c: Update.
  5074. 2018-07-03 Tom Tromey <tom@tromey.com>
  5075. * linux-low.c: Update.
  5076. * linux-mips-low.c: Update.
  5077. * lynx-low.c: Update.
  5078. * nto-low.c: Update.
  5079. * remote-utils.c: Update.
  5080. * server.c: Update.
  5081. * spu-low.c: Update.
  5082. * target.c: Update.
  5083. * thread-db.c: Update.
  5084. 2018-07-03 Tom Tromey <tom@tromey.com>
  5085. * linux-low.c: Update.
  5086. * linux-mips-low.c: Update.
  5087. * lynx-low.c: Update.
  5088. * mem-break.c: Update.
  5089. * nto-low.c: Update.
  5090. * remote-utils.c: Update.
  5091. * server.c: Update.
  5092. * spu-low.c: Update.
  5093. * target.c: Update.
  5094. * tracepoint.c: Update.
  5095. 2018-07-03 Tom Tromey <tom@tromey.com>
  5096. * linux-low.c: Update.
  5097. * linux-ppc-low.c: Update.
  5098. * linux-x86-low.c: Update.
  5099. * proc-service.c: Update.
  5100. * server.c: Update.
  5101. * spu-low.c: Update.
  5102. * thread-db.c: Update.
  5103. * win32-low.c: Update.
  5104. 2018-07-03 Tom Tromey <tom@tromey.com>
  5105. * linux-low.c: Update.
  5106. * lynx-low.c: Update.
  5107. * nto-low.c: Update.
  5108. * remote-utils.c: Update.
  5109. * spu-low.c: Update.
  5110. * thread-db.c: Update.
  5111. * win32-low.c: Update.
  5112. 2018-06-29 Joel Brobecker <brobecker@adacore.com>
  5113. * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
  5114. parameter in call to 'amd64_create_target_description'.
  5115. 2018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
  5116. * x86-tdesc.h: Remove executable permission flag.
  5117. 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
  5118. * configure.ac: Remove AC_PREREQ, add missing quoting.
  5119. * configure: Re-generate.
  5120. * config.in: Re-generate.
  5121. * aclocal.m4: Re-generate.
  5122. 2018-06-18 Simon Marchi <simon.marchi@ericsson.com>
  5123. * tracepoint.h (current_traceframe): Remove declaration.
  5124. 2018-06-18 Alan Hayward <alan.hayward@arm.com>
  5125. * linux-aarch64-low.c (is_sve_tdesc): New function.
  5126. (aarch64_sve_regs_copy_to_regcache): Likewise.
  5127. (aarch64_sve_regs_copy_from_regcache): Likewise.
  5128. (aarch64_regs_info): Add SVE checks.
  5129. (initialize_low_arch): Initialize SVE.
  5130. 2018-06-18 Alan Hayward <alan.hayward@arm.com>
  5131. * Makefile.in: Add aarch64-sve-linux-ptrace.c.
  5132. 2018-06-11 Alan Hayward <alan.hayward@arm.com>
  5133. * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
  5134. (initialize_low_tracepoint): Likewise
  5135. * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
  5136. * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
  5137. param.
  5138. * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
  5139. checks.
  5140. * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
  5141. 2018-06-11 Alan Hayward <alan.hayward@arm.com>
  5142. * server.h (PBUFSIZ): Increase size
  5143. 2018-06-11 Alan Hayward <alan.hayward@arm.com>
  5144. * regcache.c (regcache::raw_compare): New function.
  5145. * regcache.h (regcache::raw_compare): New declaration.
  5146. 2018-06-11 Alan Hayward <alan.hayward@arm.com>
  5147. * regcache.c (new_register_cache): Use new.
  5148. (free_register_cache): Use delete.
  5149. (register_data): Use const.
  5150. (supply_register): Move body inside regcache.
  5151. (regcache::raw_supply): New override function.
  5152. (collect_register): Move body inside regcache.
  5153. (regcache::raw_collect): New override function.
  5154. (regcache::get_register_status): New override function.
  5155. * regcache.h (struct regcache): Inherit from reg_buffer_common.
  5156. 2018-06-09 Tom Tromey <tom@tromey.com>
  5157. * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
  5158. declare queue.
  5159. (event_queue): Use std::queue.
  5160. (gdb_event_xfree): Remove.
  5161. (initialize_event_loop, process_event, wait_for_event): Update.
  5162. 2018-06-08 Stan Cox <scox@redhat.com>
  5163. * win32-low.c (win32_create_inferior): last_ptid and last_status
  5164. moved to client_state.
  5165. 2018-06-08 Pedro Alves <palves@redhat.com>
  5166. * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
  5167. common/common-exceptions.o, common/common-utils.o,
  5168. common/errors.o, common/print-utils.o and utils.o.
  5169. * gdbreplay.c: Include "common-defs.h" instead of the two
  5170. 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
  5171. string.h or alloca.h.
  5172. (perror_with_name): Delete.
  5173. (remote_open): Use xstrdup instead of strdup.
  5174. (main): Rename to ...
  5175. (captured_main): ... this.
  5176. (main): New.
  5177. 2018-06-08 Tom Tromey <tom@tromey.com>
  5178. * linux-low.c (linux_low_read_btrace): Update.
  5179. 2018-06-04 Stan Cox <scox@redhat.com>
  5180. * server.h (struct client_state): New.
  5181. * server.c (cont_thread, general_thread, multi_process)
  5182. (report_fork_events, report_vfork_events, report_exec_events)
  5183. (report_thread_events, swbreak_feature, hwbreak_feature)
  5184. (vCont_supported, disable_randomization, pass_signals)
  5185. (program_signals, program_signals_p, last_status, last_ptid, own_buf):
  5186. Moved to client_state.
  5187. * remote-utils.c (remote_debug, noack_mode)
  5188. (transport_is_reliable): Moved to client_state.
  5189. * tracepoint.c (current_traceframe): Moved to client_state.
  5190. Update all callers.
  5191. * server.c, remote-utils.c, tracepoint.c, fork-child.c,
  5192. linux-low.c, remote-utils.h, target.c: Use client_state.
  5193. 2018-05-31 Alan Hayward <alan.hayward@arm.com>
  5194. * configure.srv: Add new c/h file.
  5195. 2018-05-31 Alan Hayward <alan.hayward@arm.com>
  5196. * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
  5197. null VQ.
  5198. 2018-05-25 Maciej W. Rozycki <macro@mips.com>
  5199. * gdb.arch/mips-fpregset-core.exp: New test.
  5200. * gdb.arch/mips-fpregset-core.c: New test source.
  5201. 2018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
  5202. PR server/23198
  5203. * hostio.c (require_int): Do not report overflow for integers
  5204. between 0xfffffff and 0x7fffffff.
  5205. 2018-05-22 Maciej W. Rozycki <macro@mips.com>
  5206. * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
  5207. (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
  5208. (mips_collect_ptrace_register, mips_supply_ptrace_register): New
  5209. functions.
  5210. (the_low_target): Wire them.
  5211. 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
  5212. * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
  5213. Set vscr_offset to 0 in little-endian mode and 12 in big-endian
  5214. mode. Call collect_register_by_name with vscr using
  5215. vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
  5216. (ppc_store_vrregset): Add and set vscr_offset variable as in
  5217. ppc_fill_vrregset. Call supply_register_by_name with vscr using
  5218. vscr_offset.
  5219. 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
  5220. * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
  5221. (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
  5222. PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
  5223. 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
  5224. * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
  5225. (ppc_store_vsxregset): Likewise.
  5226. (ppc_fill_vrregset): Likewise.
  5227. (ppc_store_vrregset): Likewise.
  5228. (ppc_fill_evrregset): Likewise.
  5229. (ppc_store_evrregset): Likewise.
  5230. (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
  5231. (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
  5232. needed.
  5233. 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
  5234. * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
  5235. wordsize of the inferior. Call ppc_linux_target_wordsize.
  5236. 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
  5237. * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
  5238. * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
  5239. * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
  5240. * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
  5241. (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
  5242. (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
  5243. (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
  5244. (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
  5245. (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
  5246. (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
  5247. (tdesc_powerpc_e500l): Remove.
  5248. * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
  5249. linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
  5250. * linux-ppc-low.c: Include arch/ppc-linux-common.h,
  5251. arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
  5252. linux-ppc-tdesc.h.
  5253. (ppc_arch_setup): Remove target description matching code. Fill a
  5254. ppc_linux_features struct and call ppc_linux_match_description
  5255. with it.
  5256. 2018-05-22 Maciej W. Rozycki <macro@mips.com>
  5257. * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
  5258. width of the requested register exceeds the width of the
  5259. `ptrace' data type.
  5260. (mips_cannot_store_register): Likewise.
  5261. 2018-05-21 Maciej W. Rozycki <macro@mips.com>
  5262. * linux-mips-low.c (mips_fetch_register): New function. Update
  5263. preceding comment.
  5264. (mips_store_gregset): Supply 0 rather than $restart for $zero.
  5265. (the_low_target): Wire `mips_fetch_register'.
  5266. 2018-05-10 Joel Brobecker <brobecker@adacore.com>
  5267. * lynx-i386-low.c (LYNXOS_178): New macro.
  5268. [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
  5269. the layout on LynxOS-178.
  5270. (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
  5271. handle floating point registers that are not supported by
  5272. LynxOS-178.
  5273. 2018-05-10 Tom Tromey <tom@tromey.com>
  5274. * configure: Rebuild.
  5275. 2018-05-10 Joel Brobecker <brobecker@adacore.com>
  5276. PR server/23158:
  5277. * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
  5278. * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
  5279. Use it to set the expedite_regs field in the given tdesc.
  5280. * x86-tdesc.h: New file.
  5281. * linux-aarch64-tdesc.c (aarch64_linux_read_description):
  5282. Adjust following the addition of the new expedite_regs parameter
  5283. to init_target_desc.
  5284. * linux-tic6x-low.c (tic6x_read_description): Likewise.
  5285. * linux-x86-tdesc.c: #include "x86-tdesc.h".
  5286. (i386_linux_read_description, amd64_linux_read_description):
  5287. Adjust following the addition of the new expedite_regs parameter
  5288. to init_target_desc.
  5289. * lynx-i386-low.c: #include "x86-tdesc.h".
  5290. (lynx_i386_arch_setup): Adjust following the addition of the new
  5291. expedite_regs parameter to init_target_desc.
  5292. * nto-x86-low.c: #include "x86-tdesc.h".
  5293. (nto_x86_arch_setup): Adjust following the addition of the new
  5294. expedite_regs parameter to init_target_desc.
  5295. * win32-i386-low.c: #include "x86-tdesc.h".
  5296. (i386_arch_setup): Adjust following the addition of the new
  5297. expedite_regs parameter to init_target_desc.
  5298. 2018-05-10 Joel Brobecker <brobecker@adacore.com>
  5299. PR server/23158:
  5300. * win32-low.c (win32_create_inferior): Add call to my_wait
  5301. setting last_status global.
  5302. 2018-05-10 Joel Brobecker <brobecker@adacore.com>
  5303. PR server/23158:
  5304. * win32-low.c (create_process): Only call gdb_tilde_expand if
  5305. inferior_cwd is not NULL.
  5306. 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
  5307. * i387-fp.c (i387_cache_to_xsave): Only write x87 control
  5308. registers to the cache if their values have changed.
  5309. (i387_xsave_to_cache): Provide default values for x87 control
  5310. registers when these features are available, but disabled.
  5311. * regcache.c (supply_register_by_name_zeroed): New function.
  5312. * regcache.h (supply_register_by_name_zeroed): Declare new
  5313. function.
  5314. 2018-05-07 Tom Tromey <tom@tromey.com>
  5315. * configure: Rebuild.
  5316. 2018-05-04 Tom Tromey <tom@tromey.com>
  5317. * configure: Rebuild.
  5318. 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
  5319. Pedro Alves <palves@redhat.com>
  5320. * linux-aarch64-low.c (aarch64_stopped_data_address):
  5321. Likewise.
  5322. 2018-04-27 Tom Tromey <tom@tromey.com>
  5323. * configure: Rebuild.
  5324. 2018-04-23 Tom Tromey <tom@tromey.com>
  5325. * configure: Rebuild.
  5326. 2018-04-19 Simon Marchi <simon.marchi@ericsson.com>
  5327. * Makefile.in (depcomp): Add "..".
  5328. (all_deps_files): New and use it.
  5329. 2018-04-18 Alan Hayward <alan.hayward@arm.com>
  5330. * configure.srv (aarch64*-*-linux*): Don't include xml.
  5331. (i[34567]86-*-cygwin*): Likewise.
  5332. (i[34567]86-*-linux*): Likewise.
  5333. (i[34567]86-*-lynxos*): Likewise.
  5334. (i[34567]86-*-mingw32ce*): Likewise.
  5335. (i[34567]86-*-mingw*): Likewise.
  5336. (i[34567]86-*-nto*): Likewise.
  5337. (tic6x-*-uclinux): Likewise.
  5338. (x86_64-*-linux*): Likewise.
  5339. (x86_64-*-mingw*): Likewise.
  5340. (x86_64-*-cygwin*): Likewise.
  5341. 2018-04-18 Alan Hayward <alan.hayward@arm.com>
  5342. * tdesc.c: Remove xml parameter.
  5343. 2018-04-18 Alan Hayward <alan.hayward@arm.com>
  5344. * server.c (get_features_xml): Remove cast.
  5345. * tdesc.c (void target_desc::accept): Fill in function.
  5346. (tdesc_get_features_xml): Remove old xml creation.
  5347. (print_xml_feature::visit_pre): Add xml vistor.
  5348. * tdesc.h (struct target_desc): Make xmltarget mutable.
  5349. (tdesc_get_features_xml): Remove declaration.
  5350. 2018-04-18 Alan Hayward <alan.hayward@arm.com>
  5351. * tdesc.c (tdesc_architecture_name): Add new function.
  5352. (tdesc_osabi_name): Likewise.
  5353. (tdesc_get_features_xml): Use new functions.
  5354. 2018-04-18 Alan Hayward <alan.hayward@arm.com>
  5355. * tdesc.c (tdesc_create_flags): Remove.
  5356. (tdesc_add_flag): Likewise.
  5357. (tdesc_named_type): Likewise.
  5358. (tdesc_create_union): Likewise.
  5359. (tdesc_create_struct): Likewise.
  5360. (tdesc_create_vector): Likewise.
  5361. (tdesc_add_bitfield): Likewise.
  5362. (tdesc_add_field): Likewise.
  5363. (tdesc_set_struct_size): Likewise.
  5364. 2018-04-18 Alan Hayward <alan.hayward@arm.com>
  5365. * tdesc.c (~target_desc): Remove implictly deleted items.
  5366. (init_target_desc): Iterate all features.
  5367. (tdesc_get_features_xml): Use vector.
  5368. (tdesc_create_feature): Create feature.
  5369. * tdesc.h (tdesc_feature) Remove
  5370. (target_desc): Add features.
  5371. 2018-04-18 Alan Hayward <alan.hayward@arm.com>
  5372. * Makefile.in: Add common/tdesc.c
  5373. * tdesc.c (init_target_desc): init all reg_defs from register
  5374. vector.
  5375. (tdesc_create_reg): Create tdesc_reg.
  5376. * tdesc.h (tdesc_feature): Add register vector.
  5377. 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
  5378. * tdesc.h (struct target_desc) <features>: Change type to
  5379. std::vector<std::string>.
  5380. * tdesc.c (target_desc::~target_desc): Adjust to std::vector
  5381. changes.
  5382. (tdesc_get_features_xml): Likewise.
  5383. (tdesc_create_feature): Likewise.
  5384. 2018-03-26 Alan Hayward <alan.hayward@arm.com>
  5385. * regcache.c (find_register_by_number): Return a ref.
  5386. (find_regno): Use references.
  5387. (register_size): Likewise.
  5388. (register_data): Likewise.
  5389. * tdesc.c (target_desc::~target_desc): Remove free calls.
  5390. (target_desc::operator==): Use std::vector compare.
  5391. (init_target_desc): Use reference.
  5392. (tdesc_create_reg): Use reg constructors.
  5393. * tdesc.h (struct target_desc): Replace pointer with object.
  5394. 2018-03-23 Alan Hayward <alan.hayward@arm.com>
  5395. * regcache.c (find_register_by_number): Make static.
  5396. (find_regno): Use find_register_by_number
  5397. * regcache.h (struct reg): Remove declaration.
  5398. 2018-03-23 Alan Hayward <alan.hayward@arm.com>
  5399. * tdesc.c (target_desc::~target_desc): Move to here.
  5400. (target_desc::operator==): Likewise.
  5401. * tdesc.h (target_desc::~target_desc): Move from here.
  5402. (target_desc::operator==): Likewise.
  5403. 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
  5404. * linux-s390-low.c (s390_get_wordsize): Correct brace style.
  5405. 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
  5406. * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
  5407. S390_TDESC_GS.
  5408. * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
  5409. (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
  5410. and init_registers_s390_gs_linux64.
  5411. 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
  5412. * linux-s390-low.c (s390_fill_gs): Remove function.
  5413. (s390_fill_gsbc): Remove function.
  5414. (s390_regsets): Set fill functions for the guarded storage regsets
  5415. to NULL.
  5416. 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
  5417. * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
  5418. the word size. Add comment.
  5419. (s390_get_wordsize): New function.
  5420. (s390_arch_setup): No longer select a temporary tdesc to fetch the
  5421. pswm with it. Instead, use s390_get_wordsize to determine the
  5422. word size first and derive the correct tdesc from that directly.
  5423. 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
  5424. * Makefile.in: Include silent-rules.mk.
  5425. (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
  5426. (COMPILE): Add ECHO_CXX.
  5427. (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
  5428. (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
  5429. ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
  5430. (version-generated.c): Add ECHO_GEN.
  5431. (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
  5432. (IPAGENT_COMPILE): Add ECHO_CXX.
  5433. (%-generated.c): Add ECHO_REGDAT.
  5434. 2018-03-14 Tom Tromey <tom@tromey.com>
  5435. PR cli/14977:
  5436. * ax.c (ax_printf): Special case for NULL.
  5437. 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
  5438. * linux-low.c (linux_qxfer_libraries_svr4): Use
  5439. xml_escape_text_append.
  5440. 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
  5441. * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
  5442. 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
  5443. * server.c (handle_general_set): Remove unnecessary xstrdup.
  5444. 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
  5445. * server.c (parse_debug_format_options): Adjust to
  5446. delim_string_to_char_ptr_vec changes.
  5447. * thread-db.c (thread_db_load_search): Adjust to
  5448. dirnames_to_char_ptr_vec changes.
  5449. 2018-03-01 Markus Metzger <markus.t.metzger@intel.com>
  5450. * target.h (target_enable_btrace, target_disable_btrace)
  5451. (target_read_btrace, target_read_btrace_conf): Turn macro into
  5452. inline function. Throw error if target method is not defined.
  5453. * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
  5454. check for btrace target method. Be prepared to handle exceptions
  5455. from btrace target methods.
  5456. 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
  5457. * server.c (captured_main): Change order of error message printed
  5458. when the current working directory cannot be found.
  5459. 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
  5460. * server.c: Include "filenames.h" and "pathstuff.h".
  5461. (program_name): Delete variable.
  5462. (program_path): New anonymous class.
  5463. (get_exec_wrapper): Use "program_path" instead of
  5464. "program_name".
  5465. (handle_v_run): Likewise.
  5466. (captured_main): Likewise.
  5467. (process_serial_event): Likewise.
  5468. 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
  5469. * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
  5470. (OBJS): Add "pathstuff.o".
  5471. * server.c (current_directory): New global variable.
  5472. (captured_main): Initialize "current_directory".
  5473. 2018-02-26 Alan Hayward <alan.hayward@arm.com>
  5474. * tdesc.c: Use common/tdesc.h.
  5475. * tdesc.h: Likewise.
  5476. 2018-02-20 Alan Hayward <alan.hayward@arm.com>
  5477. Simon Marchi <simon.marchi@ericsson.com>
  5478. * Makefile.in: Switch order of make rules.
  5479. 2018-02-19 Alan Hayward <alan.hayward@arm.com>
  5480. * Makefile.in: Add common directory in build.
  5481. * configure.ac: Add common reference.
  5482. * configure: Regenerate.
  5483. 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
  5484. * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
  5485. * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
  5486. * spu-low.c (spu_target_ops): Likewise.
  5487. * win32-low.c (win32_target_ops): Likewise.
  5488. * server.c (supported_btrace_packets): Report packets unconditionally.
  5489. * target.h (target_ops) <supports_btrace>: Remove.
  5490. (target_supports_btrace): Remove.
  5491. 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
  5492. * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
  5493. (handle_btrace_disable): Change return type to void. Use exceptions
  5494. to report errors.
  5495. (handle_btrace_general_set): Catch exception and copy message to
  5496. return message.
  5497. 2018-02-08 Tom Tromey <tom@tromey.com>
  5498. * linux-low.c (install_software_single_step_breakpoints): Use
  5499. make_scoped_restore.
  5500. * inferiors.c (make_cleanup_restore_current_thread): Remove.
  5501. (do_restore_current_thread_cleanup): Remove.
  5502. * gdbthread.h (make_cleanup_restore_current_thread): Don't
  5503. declare.
  5504. 2018-02-08 Tom Tromey <tom@tromey.com>
  5505. * mem-break.c (set_raw_breakpoint_at): Use
  5506. gdb::unique_xmalloc_ptr.
  5507. 2018-01-30 Pedro Alves <palves@redhat.com>
  5508. PR gdb/13211
  5509. * target.c (target_terminal::terminal_state): Rename to ...
  5510. (target_terminal::m_terminal_state): ... this.
  5511. 2018-01-19 James Clarke <jrtc27@jrtc27.com>
  5512. * linux-low.c (handle_extended_wait): Surround call to
  5513. thread_db_notice_clone with #ifdef USE_THREAD_DB.
  5514. 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
  5515. * linux-low.c (attach_proc_task_lwp_callback): Adjust to
  5516. linux_ptrace_attach_fail_reason_string now returning an
  5517. std::string.
  5518. (linux_attach): Likewise.
  5519. * thread-db.c (attach_thread): Likewise.
  5520. 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
  5521. PR gdb/21559
  5522. * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
  5523. checking for fs_base/gs_base fields in struct user_regs_struct.
  5524. * configure: Regenerate.
  5525. 2018-01-16 Yao Qi <yao.qi@linaro.org>
  5526. PR gdb/18749
  5527. * linux-low.c (fetch_register): Call supply_register instead of
  5528. error.
  5529. 2018-01-08 Yao Qi <yao.qi@linaro.org>
  5530. Simon Marchi <simon.marchi@ericsson.com>
  5531. * Makefile.in (OBS): Remove selftest.o.
  5532. * configure.ac: Set srv_selftest_objs if $development is true.
  5533. (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
  5534. * configure: Re-generated.
  5535. * server.c (captured_main): Wrap variable selftest_filter with
  5536. GDB_SELF_TEST.
  5537. 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
  5538. * server.c (parse_debug_format_options): Return std::string.
  5539. (handle_monitor_command, captured_main): Adjust.
  5540. 2018-01-05 Pedro Alves <palves@redhat.com>
  5541. PR gdb/18653
  5542. * server.c (captured_main): Pass quiet=false to
  5543. save_original_signals_state.
  5544. 2018-01-01 Joel Brobecker <brobecker@adacore.com>
  5545. * gdbreplay.c (gdbreplay_version): Update copyright year in
  5546. version message.
  5547. * server.c (gdbserver_version): Likewise.
  5548. 2017-12-08 Tom Tromey <tom@tromey.com>
  5549. * ax.c (ax_printf): Update.
  5550. 2017-12-07 Yao Qi <yao.qi@linaro.org>
  5551. * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
  5552. aarch64_linux_read_description.
  5553. * linux-amd64-ipa.c (idx2mask): New array.
  5554. (get_ipa_tdesc): Move idx2mask out.
  5555. (initialize_low_tracepoint): Initialize target descriptions.
  5556. * linux-i386-ipa.c (idx2mask): New array.
  5557. (get_ipa_tdesc): Move idx2mask out.
  5558. (initialize_low_tracepoint): Initialize target descriptions.
  5559. 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
  5560. * tdesc.c (struct tdesc_type): Change return type.
  5561. (tdesc_add_flag): Change parameter type.
  5562. (tdesc_add_bitfield): Likewise.
  5563. (tdesc_add_field): Likewise.
  5564. (tdesc_set_struct_size): Likewise.
  5565. 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
  5566. * regcache.c (registers_to_string): Remove unused variable.
  5567. 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
  5568. * inferiors.c (for_each_inferior_with_data): Remove.
  5569. * inferiors.h (for_each_inferior_with_data): Remove.
  5570. * server.c (handle_qxfer_threads_worker): Change parameter type.
  5571. (handle_qxfer_threads_proper): Use for_each_thread.
  5572. 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
  5573. * inferiors.c (for_each_inferior): Remove.
  5574. (clear_inferiors): Use for_each_thread.
  5575. * inferiors.h (for_each_inferior): Remove.
  5576. * linux-low.c (linux_wait_for_event_filtered): Use
  5577. for_each_thread.
  5578. (linux_stabilize_threads): Likewise.
  5579. * regcache.c (regcache_release): Likewise.
  5580. * server.c (gdb_wants_all_threads_stopped): Likewise.
  5581. (clear_pending_status_callback): Remove.
  5582. (handle_status): Use for_each_thread.
  5583. (captured_main): Likewise.
  5584. * win32-low.c (child_init_thread_list): Likewise.
  5585. (win32_clear_inferiors): Likewise.
  5586. (fake_breakpoint_event): Likewise.
  5587. 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
  5588. * inferiors.h (find_inferior): Remove.
  5589. * inferiors.c (find_inferior): Remove.
  5590. 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
  5591. * linux-low.c (resume_status_pending_p): Update comment.
  5592. (need_step_over_p): Update comment.
  5593. 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
  5594. * linux-low.c (proceed_one_lwp): Return void, change parameter
  5595. type.
  5596. (unsuspend_and_proceed_one_lwp): Likewise.
  5597. (proceed_all_lwps): Use for_each_thread.
  5598. (unstop_all_lwps): Likewise.
  5599. 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
  5600. * linux-low.c (linux_resume_one_thread): Return void, take
  5601. parameter directly.
  5602. (linux_resume): Use for_each_thread.
  5603. 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
  5604. * linux-low.c (send_sigstop_callback): Return void, change
  5605. parameter type. Rename to...
  5606. (send_sigstop): ... this.
  5607. (suspend_and_send_sigstop_callback): Return void, change parameter
  5608. type. Rename to...
  5609. (suspend_and_send_sigstop): ... this.
  5610. (stop_all_lwps): Use for_each_thread.
  5611. 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
  5612. * linux-low.c (lwp_running): Return bool, remove unused
  5613. argument.
  5614. (linux_stabilize_threads): Use find_thread.
  5615. 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
  5616. * linux-low.c (select_singlestep_lwp_callback): Remove.
  5617. (count_events_callback): Remove.
  5618. (select_event_lwp_callback): Remove.
  5619. (select_event_lwp): Use find_thread/for_each_thread.
  5620. 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
  5621. * linux-low.c (not_stopped_callback): Return bool, take filter
  5622. argument directly.
  5623. (linux_wait_for_event_filtered): Use find_thread.
  5624. (linux_wait_1): Likewise.
  5625. 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
  5626. * linux-low.c (same_lwp): Remove.
  5627. (find_lwp_pid): Use find_thread.
  5628. 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
  5629. * linux-low.c (delete_lwp_callback): Remove.
  5630. (linux_mourn): Use for_each_thread.
  5631. 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
  5632. * linux-low.c (linux_detach_lwp_callback): Return void, remove
  5633. args parameter, don't check for pid.
  5634. (linux_detach): Use for_each_thread.
  5635. 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
  5636. * linux-low.c (struct counter): Remove.
  5637. (second_thread_of_pid_p): Remove.
  5638. (last_thread_of_process_p): Use find_thread.
  5639. 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
  5640. * inferiors.c (find_inferior_in_random): Remove.
  5641. * inferiors.h (find_inferior_in_random): Remove.
  5642. * linux-low.c (status_pending_p_callback): Return bool, accept
  5643. parameter ptid directly.
  5644. (linux_wait_for_event_filtered): Use find_thread_in_random.
  5645. (linux_wait_1): Likewise.
  5646. 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
  5647. * inferiors.c (find_inferior_id): Remove.
  5648. (find_thread_ptid): Move implemention from find_inferior_id to
  5649. here.
  5650. * inferiors.h (find_inferior_id): Remove.
  5651. * server.c (handle_status): Use find_thread_ptid.
  5652. (process_serial_event): Likewise.
  5653. * thread-db.c (find_one_thread): Likewise.
  5654. (thread_db_thread_handle): Likewise.
  5655. * win32-low.c (thread_rec): Likewise.
  5656. (child_delete_thread): Likewise.
  5657. (win32_thread_alive): Likewise.
  5658. (get_child_debug_event): Likewise.
  5659. 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
  5660. * linux-mips-low.c (update_watch_registers_callback): Return
  5661. void, remove pid_p parameter, don't check for pid.
  5662. (mips_insert_point, mips_remove_point): Use for_each_thread.
  5663. 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
  5664. * lynx.low (lynx_delete_thread_callback): Remove.
  5665. (lynx_mourn): Use for_each_thread.
  5666. 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
  5667. * regcache.c (regcache_invalidate_one): Remove.
  5668. (regcache_invalidate_pid): use for_each_thread.
  5669. 2017-11-26 Tom Tromey <tom@tromey.com>
  5670. * linux-low.c (linux_create_inferior): Update.
  5671. 2017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
  5672. * spu-low.c (spu_create_inferior): Fix typo in argument name.
  5673. 2017-11-24 Alan Hayward <alan.hayward@arm.com>
  5674. * configure.srv: Add linux-aarch64-tdesc-selftest.o.
  5675. * linux-aarch64-low.c (initialize_low_arch): Call init func.
  5676. * linux-aarch64-tdesc-selftest.c: New file.
  5677. * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
  5678. 2017-11-24 Alan Hayward <alan.hayward@arm.com>
  5679. * configure.srv: Add new file.
  5680. * linux-aarch64-low.c (initialize_low_arch): Call init func.
  5681. * linux-aarch64-tdesc-selftest.c: New file.
  5682. * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
  5683. 2017-11-24 Alan Hayward <alan.hayward@arm.com>
  5684. * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
  5685. * linux-aarch64-low.c (initialize_low_arch): Remove init.
  5686. * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
  5687. 2017-11-24 Alan Hayward <alan.hayward@arm.com>
  5688. * configure.srv: Add new files.
  5689. * linux-aarch64-ipa.c (get_ipa_tdesc): Call
  5690. aarch64_linux_read_description.
  5691. * linux-aarch64-low.c (aarch64_linux_read_description):
  5692. Merge with aarch64_arch_setup.
  5693. (aarch64_arch_setup): Call aarch64_linux_read_description.
  5694. * linux-aarch64-tdesc.c: New file.
  5695. * linux-aarch64-tdesc.h: New file.
  5696. 2017-11-24 Yao Qi <yao.qi@linaro.org>
  5697. * configure.srv: Set $srv_regobj for tic6x-linux.
  5698. * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
  5699. (tic6x_read_description): Move some code to tic6x_arch_setup.
  5700. (tic6x_tdesc_test): New function.
  5701. (initialize_low_arch): Call selftests::register_test.
  5702. 2017-11-22 Yao Qi <yao.qi@linaro.org>
  5703. * remote-utils.c (prepare_resume_reply): Use memcpy.
  5704. 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
  5705. * linux-low.c (kill_one_lwp_callback): Return void, take
  5706. argument directly, don't filter on pid.
  5707. (linux_kill): Use for_each_thread.
  5708. 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
  5709. * linux-low.c (need_step_over_p): Return bool, remove dummy
  5710. argument.
  5711. (linux_resume, proceed_all_lwps): Use find_thread.
  5712. 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
  5713. * linux-low.c (resume_status_pending_p): Return bool, remove
  5714. flag_p argument.
  5715. (linux_resume): Use find_thread.
  5716. 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
  5717. * linux-low.c (struct thread_resume_array): Remove.
  5718. (linux_set_resume_request): Return void, take arguments
  5719. directly.
  5720. (linux_resume): Use for_each_thread.
  5721. 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
  5722. * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
  5723. return bool, remove data argument.
  5724. (linux_stabilize_threads): Use find_thread.
  5725. 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
  5726. * linux-low.c (unsuspend_one_lwp): Remove.
  5727. (unsuspend_all_lwps): Use for_each_thread, inline code from
  5728. unsuspend_one_lwp.
  5729. 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
  5730. * gdbthread.h (find_thread): Add overload with ptid_t filter.
  5731. * linux-low.c (struct iterate_over_lwps_args): Remove.
  5732. (iterate_over_lwps_filter): Remove.
  5733. (iterate_over_lwps): Use find_thread.
  5734. 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
  5735. * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
  5736. (linux_handle_new_gdb_connection): Use for_each_thread, inline
  5737. code from reset_lwp_ptrace_options_callback.
  5738. 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
  5739. * linux-arm-low.c (struct update_registers_data): Remove.
  5740. (update_registers_callback): Return void, take arguments
  5741. directly, don't check thread's pid.
  5742. (arm_insert_point, arm_remove_point): Use for_each_thread.
  5743. 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
  5744. * win32-low.c (continue_one_thread): Return void, take argument
  5745. directly.
  5746. (child_continue): Use for_each_thread.
  5747. 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
  5748. * win32-i386-low.c (update_debug_registers_callback): Rename
  5749. to ...
  5750. (update_debug_registers): ... this, return void, remove pid_p arg.
  5751. (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
  5752. 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
  5753. * inferiors.h (struct process_info): Add constructor, initialize
  5754. fields..
  5755. <syscalls_to_catch>: Change type to std::vector<int>.
  5756. * inferiors.c (add_process): Allocate process_info with new.
  5757. (remove_process): Free process_info with delete.
  5758. * linux-low.c (handle_extended_wait): Adjust.
  5759. (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
  5760. * server.c (handle_general_set): Adjust.
  5761. 2017-11-16 Pedro Alves <palves@redhat.com>
  5762. * remote-utils.c (remote_close): Block SIGIO signals instead of
  5763. uninstalling the SIGIO handler.
  5764. 2017-11-16 Alan Hayward <alan.hayward@arm.com>
  5765. * tdesc.c (tdesc_get_features_xml): Allow null osabi.
  5766. 2017-11-16 Yao Qi <yao.qi@linaro.org>
  5767. * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
  5768. (tic6x_store_gregset): Likewise.
  5769. (tic6x_usrregs_info): Move it up.
  5770. 2017-11-15 Alan Hayward <alan.hayward@arm.com>
  5771. * Makefile.in: Update arch rules.
  5772. * configure.srv: Explicitly mark arch/ files.
  5773. 2017-11-13 Andreas Schwab <schwab@suse.de>
  5774. * linux-m68k-low.c (m68k_supports_hardware_single_step): New
  5775. function.
  5776. (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
  5777. 2017-11-06 Pedro Alves <palves@redhat.com>
  5778. * config.in, configure: Regenerate.
  5779. 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
  5780. * target.c (struct thread_search): Remove.
  5781. (thread_search_callback): Remove.
  5782. (prepare_to_access_memory): Use for_each_thread instead of
  5783. find_inferior. Inline code from thread_search_callback.
  5784. 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
  5785. * server.c (struct visit_actioned_threads_data): Remove.
  5786. (visit_actioned_threads): Change prototype to take arguments
  5787. directly.
  5788. (resume): Use find_thread instead of find_inferior.
  5789. 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
  5790. * server.c (queue_stop_reply_callback): Change prototype, return
  5791. void.
  5792. (find_status_pending_thread_callback): Remove.
  5793. (handle_status): Replace find_inferior with find_thread and
  5794. for_each_thread.
  5795. 2017-10-25 Alan Hayward <alan.hayward@arm.com>
  5796. * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
  5797. with REGNO.
  5798. (aarch64_store_gregset): Likewise.
  5799. (aarch64_fill_fpregset): Likewise.
  5800. (aarch64_store_fpregset): Likewise.
  5801. 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
  5802. * gdbthread.h (find_thread, for_each_thread): New functions.
  5803. * inferiors.c (thread_of_pid): Remove.
  5804. (find_any_thread_of_pid): Use find_thread.
  5805. * linux-low.c (num_lwps): Use for_each_thread.
  5806. 2017-10-17 Yao Qi <yao.qi@linaro.org>
  5807. * Makefile.in: Remove one rule.
  5808. * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
  5809. 2017-10-17 Yao Qi <yao.qi@linaro.org>
  5810. * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
  5811. Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
  5812. 2017-10-17 Yao Qi <yao.qi@linaro.org>
  5813. * configure.srv: Rename arm.o with arch/arm.o.
  5814. 2017-10-17 Yao Qi <yao.qi@linaro.org>
  5815. * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
  5816. (clean): Remove .o files in CONFIG_SRC_SUBDIR.
  5817. (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
  5818. (arch-i386.o, arch-amd64.o): Remove rules.
  5819. (arch/%.o): New rule.
  5820. Update POSTCOMPILE and COMPILE.pre.
  5821. * configure.ac: Invoke AC_CONFIG_COMMANDS.
  5822. * configure: Re-generated.
  5823. * configure.srv: Replace arch-i386.o with arch/i386.o.
  5824. Replace arch-amd64.o with arch/amd64.o.
  5825. 2017-10-16 Yao Qi <yao.qi@linaro.org>
  5826. * configure: Regenerated.
  5827. 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
  5828. * inferiors.h: (struct inferior_list): Remove.
  5829. (struct inferior_list_entry); Remove.
  5830. (add_inferior_to_list, clear_inferior_list, one_inferior_p,
  5831. A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
  5832. get_first_inferior): Remove.
  5833. (for_each_inferior, for_each_inferior_with_data, find_inferior,
  5834. find_inferior_id, find_inferior_in_random): Change signature.
  5835. * inferiors.c (all_threads): Change type to
  5836. std::list<thread_info *>.
  5837. (get_thread): Remove macro.
  5838. (find_inferior, find_inferior_id): Change signature, implement
  5839. using find_thread.
  5840. (find_inferior_in_random): Change signature, implement using
  5841. find_thread_in_random.
  5842. (for_each_inferior, for_each_inferior_with_data): Change
  5843. signature, implement using for_each_thread.
  5844. (add_inferior_to_list, remove_inferior): Remove.
  5845. (add_thread, get_first_thread, thread_of_pid,
  5846. find_any_thread_of_pid, free_one_thread, remove_thread): Update.
  5847. (get_first_inferior, one_inferior_p, clear_inferior_list):
  5848. Remove.
  5849. (clear_inferiors, get_thread_process): Update.
  5850. * gdbthread.h: Include <list>.
  5851. (struct thread_info) <entry>: Remove field.
  5852. <id>: New field.
  5853. (all_threads): Change type to std::list<thread_info *>.
  5854. (get_first_inferior): Add doc.
  5855. (find_thread, for_each_thread, find_thread_in_random): New
  5856. functions.
  5857. (current_ptid, pid_of, ptid_of, lwpid_of): Update.
  5858. * linux-arm-low.c (update_registers_callback): Update.
  5859. * linux-low.c (second_thread_of_pid_p): Update.
  5860. (kill_one_lwp_callback, linux_detach_lwp_callback,
  5861. delete_lwp_callback, status_pending_p_callback, same_lwp,
  5862. find_lwp_pid, num_lwps, iterate_over_lwps_filter,
  5863. iterate_over_lwps, not_stopped_callback,
  5864. resume_stopped_resumed_lwps, count_events_callback,
  5865. select_singlestep_lwp_callback, select_event_lwp_callback,
  5866. unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
  5867. suspend_and_send_sigstop_callback, wait_for_sigstop,
  5868. stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
  5869. lwp_running, linux_set_resume_request, resume_status_pending_p,
  5870. need_step_over_p, start_step_over, linux_resume_one_thread,
  5871. proceed_one_lwp, unsuspend_and_proceed_one_lwp,
  5872. reset_lwp_ptrace_options_callback): Update.
  5873. * linux-mips-low.c (update_watch_registers_callback): Update.
  5874. * regcache.c (regcache_invalidate_one, regcache_invalidate):
  5875. Update.
  5876. (free_register_cache_thread_one): Remove.
  5877. (regcache_release): Update.
  5878. * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
  5879. handle_qxfer_threads_worker): Update.
  5880. (handle_query): Update, use list iterator.
  5881. (visit_actioned_threads, handle_pending_status,
  5882. queue_stop_reply_callback, gdb_wants_all_threads_stopped,
  5883. clear_pending_status_callback, set_pending_status_callback,
  5884. find_status_pending_thread_callback, handle_status,
  5885. process_serial_event): Update.
  5886. * target.c (thread_search_callback): Update.
  5887. * thread-db.c (thread_db_get_tls_address): Update.
  5888. * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
  5889. Update.
  5890. * win32-i386-low.c (update_debug_registers_callback): Update.
  5891. * win32-low.c (delete_thread_info, child_delete_thread,
  5892. continue_one_thread, suspend_one_thread,
  5893. get_child_debug_event): Adjust.
  5894. 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
  5895. * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
  5896. * inferiors.h: Include <list>.
  5897. (struct process_info) <entry>: Remove field.
  5898. <pid>: New field.
  5899. (pid_of): Change macro to function.
  5900. (ptid_of, lwpid_of): Remove macro.
  5901. (all_processes): Change type to std::list<process_info *>.
  5902. (ALL_PROCESSES): Remove macro.
  5903. (for_each_process, find_process): New function.
  5904. * inferiors.c (all_processes): Change type to
  5905. std::list<process_info *>.
  5906. (find_thread_process): Adjust.
  5907. (add_process): Likewise.
  5908. (remove_process): Likewise.
  5909. (find_process_pid): Likewise.
  5910. (get_first_process): Likewise.
  5911. (started_inferior_callback): Remove.
  5912. (have_started_inferiors_p): Adjust.
  5913. (attached_inferior_callback): Remove.
  5914. (have_attached_inferiors_p): Adjust.
  5915. * linux-low.c (check_zombie_leaders): Likewise.
  5916. * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
  5917. (x86_linux_update_xmltarget): Adjust.
  5918. * server.c (handle_query): Likewise.
  5919. (gdb_reattached_process): Remove.
  5920. (handle_status): Adjust.
  5921. (kill_inferior_callback): Likewise.
  5922. (detach_or_kill_inferior): Remove.
  5923. (print_started_pid): Likewise.
  5924. (print_attached_pid): Likewise.
  5925. (detach_or_kill_for_exit): Update.
  5926. (process_serial_event): Likewise.
  5927. * linux-arm-low.c (arm_new_fork): Likewise.
  5928. 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
  5929. * dll.h: Include <list>.
  5930. (struct dll_info): Add constructor.
  5931. <entry>: Remove field.
  5932. (all_dlls): Change type to std::list<dll_info>.
  5933. * dll.c: Include <algorithm>.
  5934. (get_dll): Remove macro.
  5935. (all_dlls): Change type to std::list<dll_info *>.
  5936. (free_one_dll): Remove.
  5937. (match_dll): Likewise.
  5938. (loaded_dll): Adjust.
  5939. (unloaded_dll): Adjust to all_dlls type change, use
  5940. std::find_if. Inline code from match_dll.
  5941. (clear_dlls): Adjust to all_dlls type change.
  5942. * server.c (emit_dll_description): Remove.
  5943. (handle_qxfer_libraries): Adjust to all_dlls type change,
  5944. integrate emit_dll_description's functionality.
  5945. 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
  5946. * linux-low.h (struct linux_target_ops) <delete_process>: New
  5947. field.
  5948. * linux-low.c (linux_mourn): Call the_low_target.delete_process.
  5949. * linux-aarch64-low.c (aarch64_linux_delete_process): New.
  5950. (struct linux_target_ops): Add delete_process callback.
  5951. * linux-arm-low.c (arm_delete_process): New.
  5952. (struct linux_target_ops): Add delete_process callback.
  5953. * linux-bfin-low.c (struct linux_target_ops): Likewise.
  5954. * linux-crisv32-low.c (struct linux_target_ops): Likewise.
  5955. * linux-m32r-low.c (struct linux_target_ops): Likewise.
  5956. * linux-mips-low.c (mips_linux_delete_process): New.
  5957. (struct linux_target_ops): Add delete_process callback.
  5958. * linux-ppc-low.c (struct linux_target_ops): Likewise.
  5959. * linux-s390-low.c (struct linux_target_ops): Likewise.
  5960. * linux-sh-low.c (struct linux_target_ops): Likewise.
  5961. * linux-tic6x-low.c (struct linux_target_ops): Likewise.
  5962. * linux-tile-low.c (struct linux_target_ops): Likewise.
  5963. * linux-x86-low.c (x86_linux_delete_process): New.
  5964. (struct linux_target_ops): Add delete_process callback.
  5965. * linux-xtensa-low.c (struct linux_target_ops): Likewise.
  5966. 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
  5967. * linux-aarch64-low.c (the_low_target): Add thread delete
  5968. callback.
  5969. * linux-arm-low.c (arm_delete_thread): New function.
  5970. (the_low_target): Add thread delete callback.
  5971. * linux-bfin-low.c (the_low_target): Likewise.
  5972. * linux-crisv32-low.c (the_low_target): Likewise.
  5973. * linux-low.c (delete_lwp): Invoke delete_thread callback if
  5974. set.
  5975. * linux-low.h (struct linux_target_ops) <delete_thread>: New
  5976. field.
  5977. * linux-m32r-low.c (the_low_target): Add thread delete callback.
  5978. * linux-mips-low.c (mips_linux_delete_thread): New function.
  5979. (the_low_target): Add thread delete callback.
  5980. * linux-ppc-low.c (the_low_target): Likewise.
  5981. * linux-s390-low.c (the_low_target): Likewise.
  5982. * linux-sh-low.c (the_low_target): Likewise.
  5983. * linux-tic6x-low.c (the_low_target): Likewise.
  5984. * linux-tile-low.c (the_low_target): Likewise.
  5985. * linux-x86-low.c (the_low_target): Likewise.
  5986. * linux-xtensa-low.c (the_low_target): Likewise.
  5987. 2017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
  5988. * win32-low.c: Include "common-inferior.h".
  5989. 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
  5990. * inferiors.c (set_inferior_cwd): New function.
  5991. * server.c (handle_general_set): Handle QSetWorkingDir packet.
  5992. (handle_query): Inform that QSetWorkingDir is supported.
  5993. * win32-low.c (create_process): Pass the inferior's cwd to
  5994. CreateProcess.
  5995. 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
  5996. * inferiors.c (current_inferior_cwd): New global variable.
  5997. (get_inferior_cwd): New function.
  5998. * inferiors.h (struct process_info) <cwd>: New field.
  5999. 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
  6000. * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
  6001. (OBS): Add gdb_tilde_expand.o.
  6002. 2017-10-02 Simon Marchi <simon.marchi@ericsson.com>
  6003. * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
  6004. * nto-x86-low.c (nto_x86_arch_setup): Likewise.
  6005. 2017-09-29 Pedro Alves <palves@redhat.com>
  6006. * ax.c (gdb_parse_agent_expr): Constify.
  6007. * ax.h (gdb_parse_agent_expr): Constify.
  6008. * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
  6009. Constify.
  6010. * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
  6011. * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
  6012. * remote-utils.h (read_ptid): Constify.
  6013. * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
  6014. (process_point_options, process_serial_event): Constify.
  6015. * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
  6016. (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
  6017. (cmd_qtbuffer): Constify.
  6018. 2017-09-29 Pedro Alves <palves@redhat.com>
  6019. * proc-service.c (ps_pdread): Return PS_ERR if reading memory
  6020. fails.
  6021. 2017-09-29 Pedro Alves <palves@redhat.com>
  6022. * linux-low.c (handle_extended_wait): Pass parent thread instead
  6023. of process to thread_db_notice_clone.
  6024. * linux-low.h (thread_db_notice_clone): Replace parent process
  6025. parameter with parent thread parameter.
  6026. * thread-db.c (find_one_thread): Add comment.
  6027. (thread_db_notice_clone): Replace parent process parameter with
  6028. parent thread parameter. Temporarily switch to the parent thread.
  6029. 2017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
  6030. * gdbthread.h: Include "common-gdbthread.h".
  6031. * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
  6032. "if" when validating the ptid.
  6033. * remote-utils.c: Include "gdbthread.h".
  6034. (prepare_resume_reply): Use "switch_to_thread".
  6035. * target.c (done_accessing_memory): Likewise.
  6036. 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
  6037. * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
  6038. s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
  6039. s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
  6040. srv_xmlfiles. Add s390-gs-linux64-ipa.o and
  6041. s390x-gs-linux64-ipa.o to ipa_obj.
  6042. * linux-s390-low.c (HWCAP_S390_GS): New define.
  6043. (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
  6044. New functions.
  6045. (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
  6046. (s390_arch_setup): Check for guarded-storage support and choose
  6047. appropriate tdesc.
  6048. (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
  6049. init_registers_s390x_gs_linux64.
  6050. * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
  6051. enum value.
  6052. (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
  6053. (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
  6054. 2017-09-22 Simon Marchi <simon.marchi@ericsson.com>
  6055. * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
  6056. 2017-09-21 Kevin Buettner <kevinb@redhat.com>
  6057. * linux-low.h (struct lwp_info): Add new field, thread_handle.
  6058. (thread_db_thread_handle): Declare.
  6059. * linux-low.c (linux_target_ops): Initialize thread_handle.
  6060. * server.c (handle_qxfer_threads_worker): Add support for
  6061. "handle" attribute.
  6062. * target.h (struct target_ops): Add new function pointer,
  6063. thread_handle.
  6064. (target_thread_handle): Define.
  6065. * thread-db.c (find_one_thread, attach_thread): Set thread_handle
  6066. field in lwp.
  6067. (thread_db_thread_handle): New function.
  6068. 2017-09-21 Kevin Buettner <kevinb@redhat.com>
  6069. * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
  6070. * linux-low.h (thread_db_notice_clone): Declare.
  6071. * thread-db.c (thread_db_notice_clone): New function.
  6072. 2017-09-21 Pedro Alves <palves@redhat.com>
  6073. * server.c (gdb_read_memory, handle_status, process_serial_event)
  6074. (handle_serial_event, handle_target_event): Adjust to
  6075. set_desired_thread prototype change.
  6076. * target.c (set_desired_thread): Remove 'use_general' parameter
  6077. and adjust.
  6078. * target.h (set_desired_thread): Remove 'use_general' parameter.
  6079. 2017-09-20 Tom Tromey <tom@tromey.com>
  6080. * target.c (target_terminal::terminal_state): Define.
  6081. (target_terminal::init): Rename from target_terminal_init.
  6082. (target_terminal::inferior): Rename from
  6083. target_terminal_inferior.
  6084. (target_terminal::ours): Rename from target_terminal_ours.
  6085. (target_terminal::ours_for_output, target_terminal::info): New.
  6086. 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
  6087. * server.c (accumulate_file_name_length): Remove.
  6088. (emit_dll_description): Adjust to std::string change.
  6089. (handle_qxfer_libraries): Use std::string to hold document.
  6090. 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
  6091. * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
  6092. return type of xml_escape_text.
  6093. * server.c (emit_dll_description): Likewise.
  6094. 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
  6095. * server.c (captured_main): Accept argument for --selftest.
  6096. Update run_tests call.
  6097. * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
  6098. when registering selftests.
  6099. 2017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
  6100. * regcache.c (get_thread_regcache): Update code to use "std::vector"
  6101. instead of "VEC" for "target_desc.reg_defs".
  6102. (regcache_cpy): Likewise.
  6103. (registers_to_string): Likewise.
  6104. (registers_from_string): Likewise.
  6105. (find_regno): Likewise.
  6106. (supply_regblock): Likewise.
  6107. (regcache_raw_read_unsigned): Likewise.
  6108. * tdesc.c (init_target_desc): Likewise.
  6109. (tdesc_create_reg): Likewise.
  6110. * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
  6111. (struct target_desc) <reg_defs>: Convert to "std::vector".
  6112. (target_desc): Do not initialize "reg_defs".
  6113. (~target_desc): Update code to use "std::vector" instead of "VEC"
  6114. for "target_desc.reg_defs".
  6115. (operator==): Likewise.
  6116. 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
  6117. * inferiors.h (thread_to_gdb_id): Remove.
  6118. * inferiors.c (thread_to_gdb_id): Remove.
  6119. * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
  6120. * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
  6121. lynx_store_registers, lynx_read_memory, lynx_write_memory):
  6122. Likewise.
  6123. * nto-low.c (nto_fetch_registers, nto_store_registers,
  6124. nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
  6125. 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
  6126. * inferiors.h (gdb_id_to_thread_id): Remove.
  6127. * inferiors.c (gdb_id_to_thread_id): Remove.
  6128. * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
  6129. removal. Move pid declaration closer to where it's used.
  6130. 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
  6131. * server.c (handle_detach): New function.
  6132. (process_serial_event): Move code out, call handle_detach.
  6133. 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
  6134. * server.c (require_running): Rename to ...
  6135. (require_running_or_return): ... this ...
  6136. (require_running_or_break): ... and this.
  6137. (handle_query, process_serial_event): Adjust.
  6138. 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
  6139. * linux-low.c (linux_set_resume_request): Remove unused
  6140. variables.
  6141. 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
  6142. * server.c (first_thread_of): Remove.
  6143. (process_serial_event): Replace usage of first_thread_of with
  6144. find_any_thread_of_pid.
  6145. * tracepoint.c (same_process_p): Remove.
  6146. (gdb_agent_about_to_close): Replace usage of same_process_p with
  6147. find_any_thread_of_pid.
  6148. * linux-x86-low.c (same_process_callback): Remove.
  6149. (x86_arch_setup_process_callback): Replace usage of
  6150. same_process_callback with find_any_thread_of_pid.
  6151. * thread-db.c (any_thread_of): Remove.
  6152. (switch_to_process): Replace usage of any_thread_of with
  6153. find_any_thread_of_pid.
  6154. * inferiors.c (thread_pid_matches_callback): Remove.
  6155. (find_thread_process): Adjust to use find_any_thread_of_pid.
  6156. 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
  6157. * regcache.c (get_thread_regcache): Guard calls to "memset"
  6158. with "!VEC_empty".
  6159. 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
  6160. * linux-low.c (handle_extended_wait): Use
  6161. "allocate_target_description" instead of "XNEW".
  6162. * linux-x86-low.c (initialize_low_arch): Likewise.
  6163. 2017-09-05 Yao Qi <yao.qi@linaro.org>
  6164. * configure.srv (srv_i386_regobj): Remove.
  6165. (srv_amd64_regobj): Remove.
  6166. (srv_regobj): Set it to "" for x86 non-linux targets.
  6167. * linux-x86-tdesc.c (i386_linux_read_description):
  6168. * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
  6169. (init_registers_i386): Remove the declaration.
  6170. (tdesc_i386): Remove the declaration.
  6171. (lynx_i386_arch_setup): Call i386_create_target_description.
  6172. * nto-x86-low.c: Likewise.
  6173. * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
  6174. [!__x86_64__]: include arch/i386.h.
  6175. (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
  6176. 2017-09-05 Yao Qi <yao.qi@linaro.org>
  6177. * configure.srv (srv_amd64_linux_xmlfiles): Remove
  6178. i386/amd64-XXX-linux from it.
  6179. 2017-09-05 Yao Qi <yao.qi@linaro.org>
  6180. * configure.srv: Empty srv_amd64_linux_regobj if $development is
  6181. false.
  6182. (ipa_amd64_linux_regobj): Remove.
  6183. (ipa_x32_linux_regobj): Remove.
  6184. 2017-09-05 Yao Qi <yao.qi@linaro.org>
  6185. * Makefile.in (arch-amd64.o): New rule.
  6186. * configure.srv: Append arch-amd64.o.
  6187. * linux-amd64-ipa.c: Include common/x86-xstate.h.
  6188. (get_ipa_tdesc): Call amd64_linux_read_description.
  6189. (initialize_low_tracepoint): Don't call init_registers_x32_XXX
  6190. and init_registers_amd64_XXX.
  6191. * linux-x86-low.c (x86_linux_read_description): Call
  6192. amd64_linux_read_description.
  6193. (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
  6194. (initialize_low_arch): Don't call init_registers_x32_XXX and
  6195. init_registers_amd64_XXX.
  6196. * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
  6197. and tdesc_amd64_XXX.
  6198. [__x86_64__] (amd64_tdesc_test): New function.
  6199. (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
  6200. and init_registers_amd64_XXX.
  6201. * linux-x86-tdesc.c: Include arch/amd64.h.
  6202. (xcr0_to_tdesc_idx): New function.
  6203. (i386_linux_read_description): New function.
  6204. (amd64_get_ipa_tdesc_idx): New function.
  6205. * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
  6206. (amd64_get_ipa_tdesc): Declare.
  6207. 2017-09-05 Yao Qi <yao.qi@linaro.org>
  6208. * configure.srv (srv_i386_linux_xmlfiles): Remove
  6209. i386/i386-XXX-linux.xml from it.
  6210. 2017-09-05 Yao Qi <yao.qi@linaro.org>
  6211. * configure.srv: Set srv_i386_linux_regobj empty if $development
  6212. is false.
  6213. * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
  6214. initialize_low_tdesc.
  6215. * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
  6216. with #if initialize_low_tdesc.
  6217. * linux-x86-tdesc-selftest.c: New file.
  6218. * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
  6219. 2017-09-05 Yao Qi <yao.qi@linaro.org>
  6220. * Makefile.in (arch-i386.o): New rule.
  6221. * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
  6222. (x86_64-*-linux*): Likewise.
  6223. * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
  6224. include arch/i386.h.
  6225. (i386_linux_read_description): Remove code and call
  6226. i386_create_target_description.
  6227. * tdesc.c (allocate_target_description): New function.
  6228. * tdesc.h (set_tdesc_architecture): Remove declaration.
  6229. (set_tdesc_osabi): Likewise.
  6230. 2017-09-05 Yao Qi <yao.qi@linaro.org>
  6231. * linux-x86-tdesc.c: Don't include <inttypes.h>.
  6232. (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
  6233. set_tdesc_architecture and set_tdesc_osabi. Remove code setting
  6234. .xmltarget.
  6235. * server.c (get_features_xml): Call tdesc_get_features_xml.
  6236. * tdesc.c (set_tdesc_architecture): New function.
  6237. (set_tdesc_osabi): New function.
  6238. (tdesc_get_features_xml): New function.
  6239. (tdesc_create_feature): Add an argument.
  6240. * tdesc.h (struct target_desc) <features>: New field.
  6241. <arch, osabi>: New field.
  6242. (~target_desc): xfree features, arch, and osabi.
  6243. (target_desc::oerator==): Don't compare .xmltarget.
  6244. [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
  6245. (set_tdesc_osabi): Likewise.
  6246. (tdesc_get_features_xml): Likewise.
  6247. 2017-09-05 Yao Qi <yao.qi@linaro.org>
  6248. * linux-x86-tdesc.c: Include selftest.h.
  6249. (i386_tdesc_test): New function.
  6250. (initialize_low_tdesc): Call selftests::register_test.
  6251. * tdesc.h: Include regdef.h.
  6252. (target_desc): Override operator == and !=.
  6253. 2017-09-05 Yao Qi <yao.qi@linaro.org>
  6254. * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
  6255. (ipa_obj): Likewise.
  6256. * linux-i386-ipa.c: Include common/x86-xstate.h
  6257. (get_ipa_tdesc): Call i386_linux_read_description.
  6258. (initialize_low_tracepoint): Don't call init_registers_XXX
  6259. functions, call initialize_low_tdesc instead.
  6260. * linux-x86-low.c (x86_linux_read_description): Call
  6261. i386_linux_read_description.
  6262. (initialize_low_arch): Don't call init_registers_i386_XXX
  6263. functions, call initialize_low_tdesc.
  6264. * linux-x86-tdesc.c: New file.
  6265. * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
  6266. (i386_get_ipa_tdesc_idx): Declare.
  6267. (i386_get_ipa_tdesc): Declare.
  6268. (initialize_low_tdesc): Declare.
  6269. 2017-09-05 Yao Qi <yao.qi@linaro.org>
  6270. * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
  6271. instead of 0.
  6272. 2017-09-05 Yao Qi <yao.qi@linaro.org>
  6273. * Makefile.in (IPA_OBJS): Add vec-ipa.o
  6274. * regcache.c (get_thread_regcache): Use VEC_length.
  6275. (init_register_cache): Likewise.
  6276. (regcache_cpy): Likewise.
  6277. (registers_to_string): Iterate reg_defs via VEC_iterate.
  6278. (find_regno): Likewise.
  6279. (find_register_by_number): Use VEC_index.
  6280. (register_size): Call find_register_by_number.
  6281. (register_data): Call find_register_by_number.
  6282. (supply_regblock): Use VEC_length.
  6283. (regcache_raw_read_unsigned): Likewise.
  6284. * tdesc.c (init_target_desc): Iterate reg_defs via
  6285. VEC_iterate.
  6286. (default_description): Update initializer.
  6287. (copy_target_description): Don't update field num_registers.
  6288. * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
  6289. <num_registers>: Remove.
  6290. 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
  6291. * Makefile.in (.SECONDARY): Define target.
  6292. 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
  6293. * linux-low.c (linux_wait_1): Adjust.
  6294. * server.c (queue_stop_reply_callback): Adjust.
  6295. 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
  6296. * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
  6297. QEnvironmentUnset and QEnvironmentReset packets.
  6298. (handle_query): Inform remote that QEnvironmentHexEncoded,
  6299. QEnvironmentUnset and QEnvironmentReset are supported.
  6300. 2017-08-25 Simon Marchi <simon.marchi@ericsson.com>
  6301. * inferiors.h (inferior_target_data): Rename to ...
  6302. (thread_target_data): ... this.
  6303. (inferior_regcache_data): Rename to ...
  6304. (thread_regcache_data): ... this.
  6305. (set_inferior_regcache_data): Rename to ...
  6306. (set_thread_regcache_data): ... this.
  6307. * inferiors.c (inferior_target_data): Rename to ...
  6308. (thread_target_data): ... this.
  6309. (inferior_regcache_data): Rename to ...
  6310. (thread_regcache_data): ... this.
  6311. (set_inferior_regcache_data): Rename to ...
  6312. (set_thread_regcache_data): ... this.
  6313. (free_one_thread): Update.
  6314. * linux-low.h (get_thread_lwp): Update.
  6315. * regcache.c (get_thread_regcache): Update.
  6316. (regcache_invalidate_thread): Update.
  6317. (free_register_cache_thread): Update.
  6318. * win32-i386-low.c (update_debug_registers_callback): Update.
  6319. (win32_get_current_dr): Update.
  6320. * win32-low.c (thread_rec): Update.
  6321. (delete_thread_info): Update.
  6322. (continue_one_thread): Update.
  6323. (suspend_one_thread): Update.
  6324. 2017-08-24 Simon Marchi <simon.marchi@ericsson.com>
  6325. * inferiors.c (set_inferior_target_data): Remove.
  6326. * inferiors.h (set_inferior_target_data): Remove.
  6327. 2017-08-18 Yao Qi <yao.qi@linaro.org>
  6328. * Makefile.in (OBS): Add selftest.o.
  6329. * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
  6330. * configure, config.in: Re-generated.
  6331. * server.c: Include common/sefltest.h.
  6332. (captured_main): Handle option --selftest.
  6333. 2017-08-09 Yao Qi <yao.qi@linaro.org>
  6334. * configure.srv (srv_i386_regobj): Remove i386-avx.o,
  6335. i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
  6336. i386-avx-mpx.o and i386-mmx.o.
  6337. (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
  6338. amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
  6339. (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
  6340. i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
  6341. i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
  6342. (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
  6343. i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
  6344. i386/amd64-avx-mpx.xml.
  6345. 2017-08-09 Yao Qi <yao.qi@linaro.org>
  6346. * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
  6347. and x32-avx-avx512.o.
  6348. (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
  6349. i386/x32-avx-avx512.xml.
  6350. 2017-07-26 Simon Marchi <simon.marchi@ericsson.com>
  6351. * tracepoint.h (enum class fast_tpoint_collect_result): New
  6352. enumeration.
  6353. (fast_tracepoint_collecting): Change return type to
  6354. fast_tpoint_collect_result.
  6355. * tracepoint.c (fast_tracepoint_collecting): Likewise.
  6356. * linux-low.h: Include tracepoint.h.
  6357. (struct lwp_info) <collecting_fast_tracepoint>: Change type to
  6358. fast_tpoint_collect_result.
  6359. * linux-low.c (handle_tracepoints): Adjust.
  6360. (linux_fast_tracepoint_collecting): Change return type to
  6361. fast_tpoint_collect_result.
  6362. (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
  6363. linux_wait_1, stuck_in_jump_pad_callback,
  6364. lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
  6365. proceed_one_lwp): Adjust to type change.
  6366. 2017-07-10 Yao Qi <yao.qi@linaro.org>
  6367. * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
  6368. 2017-06-29 Yao Qi <yao.qi@linaro.org>
  6369. * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
  6370. Remove.
  6371. [IN_PROCESS_AGENT] <xmltarget>: Likewise.
  6372. 2017-06-20 Simon Marchi <simon.marchi@ericsson.com>
  6373. * Makefile.in (IPA_OBJS): Sort and format one item per line.
  6374. 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
  6375. * linux-low.c (linux_create_inferior): Adjust code to access the
  6376. environment information via 'gdb_environ' class.
  6377. * lynx-low.c (lynx_create_inferior): Likewise.
  6378. * server.c (our_environ): Make it an instance of 'gdb_environ'.
  6379. (get_environ): Return a pointer to 'our_environ'.
  6380. (captured_main): Initialize 'our_environ'.
  6381. * server.h (get_environ): Adjust prototype.
  6382. * spu-low.c (spu_create_inferior): Adjust code to access the
  6383. environment information via 'gdb_environ' class.
  6384. 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
  6385. * linux-low.c (linux_read_memory, linux_write_memory): Remove
  6386. usage of "register" keyword.
  6387. 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
  6388. * configure: Re-generate.
  6389. 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
  6390. * configure: Re-generate.
  6391. 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
  6392. * Makefile.in (COMPILE.pre): Add "-x c++".
  6393. 2017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
  6394. * fork-child.c: Conditionally include <signal.h>.
  6395. 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
  6396. * server.c (handle_general_set): Handle new packet
  6397. "QStartupWithShell".
  6398. (handle_query): Add "QStartupWithShell" to the list of supported
  6399. packets.
  6400. (gdbserver_usage): Add help text explaining the
  6401. new "--startup-with-shell" and "--no-startup-with-shell" CLI
  6402. options.
  6403. (captured_main): Recognize and act upon the presence of the new
  6404. CLI options.
  6405. 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
  6406. Pedro Alves <palves@redhat.com>
  6407. * Makefile.in (SFILES): Add "nat/fork-inferior.o".
  6408. * configure: Regenerate.
  6409. * configure.srv (srv_linux_obj): Add "fork-child.o" and
  6410. "fork-inferior.o".
  6411. (i[34567]86-*-lynxos*): Likewise.
  6412. (spu*-*-*): Likewise.
  6413. * fork-child.c: New file.
  6414. * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
  6415. and "environ.h".
  6416. (linux_ptrace_fun): New function.
  6417. (linux_create_inferior): Adjust function prototype to reflect
  6418. change on "target.h". Adjust function code to use
  6419. "fork_inferior".
  6420. (linux_request_interrupt): Delete "signal_pid".
  6421. * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
  6422. (lynx_ptrace_fun): New function.
  6423. (lynx_create_inferior): Adjust function prototype to reflect
  6424. change on "target.h". Adjust function code to use
  6425. "fork_inferior".
  6426. * nto-low.c (nto_create_inferior): Adjust function prototype and
  6427. code to reflect change on "target.h". Update comments.
  6428. * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
  6429. "common-terminal.h" and "environ.h".
  6430. (terminal_fd): Moved to fork-child.c.
  6431. (old_foreground_pgrp): Likewise.
  6432. (restore_old_foreground_pgrp): Likewise.
  6433. (last_status): Make it global.
  6434. (last_ptid): Likewise.
  6435. (our_environ): New variable.
  6436. (startup_with_shell): Likewise.
  6437. (program_name): Likewise.
  6438. (program_argv): Rename to...
  6439. (program_args): ...this.
  6440. (wrapper_argv): New variable.
  6441. (start_inferior): Delete function.
  6442. (get_exec_wrapper): New function.
  6443. (get_exec_file): Likewise.
  6444. (get_environ): Likewise.
  6445. (prefork_hook): Likewise.
  6446. (post_fork_inferior): Likewise.
  6447. (postfork_hook): Likewise.
  6448. (postfork_child_hook): Likewise.
  6449. (handle_v_run): Update code to deal with arguments coming from the
  6450. remote host. Update calls from "start_inferior" to
  6451. "create_inferior".
  6452. (captured_main): Likewise. Initialize environment variable. Call
  6453. "have_job_control".
  6454. * server.h (post_fork_inferior): New prototype.
  6455. (get_environ): Likewise.
  6456. (last_status): Declare.
  6457. (last_ptid): Likewise.
  6458. (signal_pid): Likewise.
  6459. * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
  6460. (spu_ptrace_fun): New function.
  6461. (spu_create_inferior): Adjust function prototype to reflect change
  6462. on "target.h". Adjust function code to use "fork_inferior".
  6463. * target.c (target_terminal_init): New function.
  6464. (target_terminal_inferior): Likewise.
  6465. (target_terminal_ours): Likewise.
  6466. * target.h: Include <vector>.
  6467. (struct target_ops) <create_inferior>: Update prototype.
  6468. (create_inferior): Update macro.
  6469. * utils.c (gdb_flush_out_err): New function.
  6470. * win32-low.c (win32_create_inferior): Adjust function prototype
  6471. and code to reflect change on "target.h".
  6472. 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
  6473. * inferiors.c (switch_to_thread): New function.
  6474. 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
  6475. * Makefile.in (SFILE): Add "common/job-control.c".
  6476. (OBS): Add "job-control.o".
  6477. 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
  6478. * Makefile: Remove "@host_makefile_frag@".
  6479. 2017-05-05 Pedro Alves <palves@redhat.com>
  6480. * configure: Regenerate.
  6481. 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
  6482. * configure: Regenerate.
  6483. 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
  6484. * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
  6485. software_single_step change of return type to
  6486. std::vector<CORE_ADDR>.
  6487. * linux-low.c (install_software_single_step_breakpoints):
  6488. Likewise.
  6489. * linux-low.h (install_software_single_step_breakpoints):
  6490. Likewise.
  6491. 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
  6492. * remote-utils.c: Include "gdb_termios.h" instead of
  6493. "terminal.h".
  6494. * terminal.h: Delete file.
  6495. 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
  6496. * server.c: Include <vector>.
  6497. <program_argv, wrapper_argv>: Convert to std::vector.
  6498. (start_inferior): Rewrite function to use C++.
  6499. (handle_v_run): Likewise. Update code that calculates the argv
  6500. based on the vRun packet; use C++.
  6501. (captured_main): Likewise.
  6502. 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
  6503. * server.c (handle_v_cont): Initialize thread_resume::thread
  6504. with null_ptid.
  6505. 2017-04-05 Pedro Alves <palves@redhat.com>
  6506. * configure: Regenerate.
  6507. 2017-04-05 Pedro Alves <palves@redhat.com>
  6508. * gdbreplay.c (sync_error): Constify.
  6509. * linux-x86-low.c (push_opcode): Constify.
  6510. 2017-04-05 Pedro Alves <palves@redhat.com>
  6511. * win32-low.c (get_child_debug_event)
  6512. <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
  6513. Report TARGET_WAITKIND_SPURIOUS instead.
  6514. 2017-04-05 Pedro Alves <palves@redhat.com>
  6515. * remote-utils.c (remote_prepare, remote_open): Constify.
  6516. * remote-utils.h (remote_prepare, remote_open): Constify.
  6517. * server.c (captured_main): Constify 'port' handling.
  6518. 2017-04-04 Simon Marchi <simon.marchi@ericsson.com>
  6519. * Makefile.in (clean): Clear .deps.
  6520. 2017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
  6521. * .gitignore: Remove generated files, replace with wildcard.
  6522. * (clean): Replace removal of generated files with wildcard.
  6523. (version.c): Replace with...
  6524. (version-generated.c): ...this.
  6525. (xml-builtin.c): Replace with...
  6526. (xml-builtin-generated.c): ...this.
  6527. (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
  6528. (%.c: *regformats*): Replace with...
  6529. (%-generated.c: *regformats*): ...this.
  6530. 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
  6531. * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
  6532. (xtensa_fill_gregset): Call collect_register_by_name for
  6533. threadptr register.
  6534. (xtensa_store_gregset): Call supply_register_by_name for
  6535. threadptr register.
  6536. 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
  6537. * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
  6538. for all registers in a0_regnum..a0_regnum + C0_NREGS range.
  6539. (xtensa_store_gregset): Call supply_register for all registers in
  6540. a0_regnum..a0_regnum + C0_NREGS range.
  6541. 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
  6542. * Makefile.in (%-ipa.o: %-ipa.c): New rule.
  6543. (ax-ipa.o: ax.c): Remove.
  6544. (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
  6545. (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
  6546. (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
  6547. (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
  6548. (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
  6549. 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
  6550. * Makefile.in (%-ipa.o: ../common/%.c): New rule.
  6551. (print-utils-ipa.o: ../common/print-utils.c): Remove.
  6552. (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
  6553. (errors-ipa.o: ../common/errors.c): Remove.
  6554. (format-ipa.o: ../common/format.c): Remove.
  6555. (common-utils-ipa.o: ../common/common-utils.c): Remove.
  6556. 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
  6557. * Makefile.in (%-ipa.o: %.c): New rule.
  6558. (tracepoint-ipa.o: tracepoint.c): Remove.
  6559. (utils-ipa.o: utils.c): Remove.
  6560. (remote-utils-ipa.o: remote-utils.c): Remove.
  6561. (regcache-ipa.o: regcache.c): Remove.
  6562. (i386-linux-ipa.o: i386-linux.c): Remove.
  6563. (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
  6564. (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
  6565. (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
  6566. (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
  6567. (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
  6568. (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
  6569. (amd64-linux-ipa.o: amd64-linux.c): Remove.
  6570. (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
  6571. (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
  6572. (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
  6573. (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
  6574. (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
  6575. (aarch64-ipa.o: aarch64.c): Remove.
  6576. (s390-linux32-ipa.o: s390-linux32.c): Remove.
  6577. (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
  6578. (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
  6579. (s390-linux64-ipa.o: s390-linux64.c): Remove.
  6580. (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
  6581. (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
  6582. (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
  6583. (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
  6584. (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
  6585. (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
  6586. (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
  6587. (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
  6588. (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
  6589. (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
  6590. (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
  6591. (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
  6592. (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
  6593. (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
  6594. (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
  6595. (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
  6596. (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
  6597. (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
  6598. (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
  6599. (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
  6600. (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
  6601. (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
  6602. (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
  6603. (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
  6604. (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
  6605. (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
  6606. (tdesc-ipa.o: tdesc.c): Remove.
  6607. (x32-linux-ipa.o: x32-linux.c): Remove.
  6608. (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
  6609. (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
  6610. 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
  6611. * Makefile.in (%.o: ../arch/%.c): New rule.
  6612. (arm.o: ../arch/arm.c): Remove.
  6613. (arm-linux.o: ../arch/arm-linux.c): Remove.
  6614. (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
  6615. (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
  6616. 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
  6617. * Makefile.in (%.o: ../nat/%.c): New rule.
  6618. (x86-dregs.o: ../nat/x86-dregs.c): Remove.
  6619. (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
  6620. (linux-btrace.o: ../nat/linux-btrace.c): Remove.
  6621. (linux-osdata.o: ../nat/linux-osdata.c): Remove.
  6622. (linux-procfs.o: ../nat/linux-procfs.c): Remove.
  6623. (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
  6624. (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
  6625. (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
  6626. (ppc-linux.o: ../nat/ppc-linux.c): Remove.
  6627. (linux-personality.o: ../nat/linux-personality.c): Remove.
  6628. (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
  6629. (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
  6630. (x86-linux.o: ../nat/x86-linux.c): Remove.
  6631. (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
  6632. (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
  6633. 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
  6634. * Makefile.in (%.o: ../common/%.c): New rule.
  6635. (signals.o: ../common/signals.c): Remove.
  6636. (print-utils.o: ../common/print-utils.c): Remove.
  6637. (rsp-low.o: ../common/rsp-low.c): Remove.
  6638. (common-utils.o: ../common/common-utils.c): Remove.
  6639. (posix-strerror.o: ../common/posix-strerror.c): Remove.
  6640. (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
  6641. (vec.o: ../common/vec.c): Remove.
  6642. (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
  6643. (xml-utils.o: ../common/xml-utils.c): Remove.
  6644. (ptid.o: ../common/ptid.c): Remove.
  6645. (buffer.o: ../common/buffer.c): Remove.
  6646. (format.o: ../common/format.c): Remove.
  6647. (filestuff.o: ../common/filestuff.c): Remove.
  6648. (agent.o: ../common/agent.c): Remove.
  6649. (errors.o: ../common/errors.c): Remove.
  6650. (environ.o: ../common/environ.c): Remove.
  6651. (common-debug.o: ../common/common-debug.c): Remove.
  6652. (cleanups.o: ../common/cleanups.c): Remove.
  6653. (common-exceptions.o: ../common/common-exceptions.c): Remove.
  6654. (fileio.o: ../common/fileio.c): Remove.
  6655. (common-regcache.o: ../common/common-regcache.c): Remove.
  6656. (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
  6657. (new-op.o: ../common/new-op.c): Remove.
  6658. (btrace-common.o: ../common/btrace-common.c): Remove.
  6659. 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
  6660. * Makefile.in (%.o: ../target/%.c): New rule.
  6661. (waitstatus.o: ../target/waitstatus.c): Remove.
  6662. 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
  6663. * Makefile.in
  6664. (%.c: ../regformats/%.dat,
  6665. (%.c: ../regformats/arm/%.dat,
  6666. (%.c: ../regformats/i386/%.dat,
  6667. (%.c: ../regformats/rs6000/%.dat): New rules.
  6668. (aarch64.c): Remove.
  6669. (reg-arm.c): Remove.
  6670. (arm-with-iwmmxt.c): Remove.
  6671. (arm-with-vfpv2.c): Remove.
  6672. (arm-with-vfpv3.c): Remove.
  6673. (arm-with-neon.c): Remove.
  6674. (reg-bfin.c): Remove.
  6675. (reg-cris.c): Remove.
  6676. (reg-crisv32.c): Remove.
  6677. (i386.c): Remove.
  6678. (i386-linux.c): Remove.
  6679. (i386-avx.c): Remove.
  6680. (i386-avx-linux.c): Remove.
  6681. (i386-avx-avx512.c): Remove.
  6682. (i386-avx-avx512-linux.c): Remove.
  6683. (i386-mpx.c): Remove.
  6684. (i386-mpx-linux.c): Remove.
  6685. (i386-avx-mpx-avx512-pku.c): Remove.
  6686. (i386-avx-mpx-avx512-pku-linux.c): Remove.
  6687. (i386-avx-mpx.c): Remove.
  6688. (i386-avx-mpx-linux.c): Remove.
  6689. (i386-mmx.c): Remove.
  6690. (i386-mmx-linux.c): Remove.
  6691. (reg-ia64.c): Remove.
  6692. (reg-m32r.c): Remove.
  6693. (reg-m68k.c): Remove.
  6694. (reg-cf.c): Remove.
  6695. (mips-linux.c): Remove.
  6696. (mips-dsp-linux.c): Remove.
  6697. (mips64-linux.c): Remove.
  6698. (mips64-dsp-linux.c): Remove.
  6699. (nios2-linux.c): Remove.
  6700. (powerpc-32.c): Remove.
  6701. (powerpc-32l.c): Remove.
  6702. (powerpc-altivec32l.c): Remove.
  6703. (powerpc-cell32l.c): Remove.
  6704. (powerpc-vsx32l.c): Remove.
  6705. (powerpc-isa205-32l.c): Remove.
  6706. (powerpc-isa205-altivec32l.c): Remove.
  6707. (powerpc-isa205-vsx32l.c): Remove.
  6708. (powerpc-e500l.c): Remove.
  6709. (powerpc-64l.c): Remove.
  6710. (powerpc-altivec64l.c): Remove.
  6711. (powerpc-cell64l.c): Remove.
  6712. (powerpc-vsx64l.c): Remove.
  6713. (powerpc-isa205-64l.c): Remove.
  6714. (powerpc-isa205-altivec64l.c): Remove.
  6715. (powerpc-isa205-vsx64l.c): Remove.
  6716. (s390-linux32.c): Remove.
  6717. (s390-linux32v1.c): Remove.
  6718. (s390-linux32v2.c): Remove.
  6719. (s390-linux64.c): Remove.
  6720. (s390-linux64v1.c): Remove.
  6721. (s390-linux64v2.c): Remove.
  6722. (s390-te-linux64.c): Remove.
  6723. (s390-vx-linux64.c): Remove.
  6724. (s390-tevx-linux64.c): Remove.
  6725. (s390x-linux64.c): Remove.
  6726. (s390x-linux64v1.c): Remove.
  6727. (s390x-linux64v2.c): Remove.
  6728. (s390x-te-linux64.c): Remove.
  6729. (s390x-vx-linux64.c): Remove.
  6730. (s390x-tevx-linux64.c): Remove.
  6731. (tic6x-c64xp-linux.c): Remove.
  6732. (tic6x-c64x-linux.c): Remove.
  6733. (tic6x-c62x-linux.c): Remove.
  6734. (reg-sh.c): Remove.
  6735. (reg-sparc64.c): Remove.
  6736. (reg-spu.c): Remove.
  6737. (amd64.c): Remove.
  6738. (amd64-linux.c): Remove.
  6739. (amd64-avx.c): Remove.
  6740. (amd64-avx-linux.c): Remove.
  6741. (amd64-avx-avx512.c): Remove.
  6742. (amd64-avx-avx512-linux.c): Remove.
  6743. (amd64-mpx.c): Remove.
  6744. (amd64-mpx-linux.c): Remove.
  6745. (amd64-avx-mpx-avx512-pku.c): Remove.
  6746. (amd64-avx-mpx-avx512-pku-linux.c): Remove.
  6747. (amd64-avx-mpx.c): Remove.
  6748. (amd64-avx-mpx-linux.c): Remove.
  6749. (x32.c): Remove.
  6750. (x32-linux.c): Remove.
  6751. (x32-avx.c): Remove.
  6752. (x32-avx-linux.c): Remove.
  6753. (x32-avx-avx512.c): Remove.
  6754. (x32-avx-avx512-linux.c): Remove.
  6755. (reg-xtensa.c): Remove.
  6756. (reg-tilegx.c): Remove.
  6757. (reg-tilegx32.c): Remove.
  6758. 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
  6759. * Makefile.in (SFILES): Add "common/environ.c".
  6760. (OBJS): Add "common/environ.h".
  6761. 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
  6762. * configure.ac: Check if the fs_base and gs_base members of
  6763. `struct user_regs_struct' exist.
  6764. * config.in: Regenerated.
  6765. * configure: Likewise.
  6766. 2017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
  6767. * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
  6768. target_read_memory.
  6769. * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
  6770. (get_next_pcs_syscall_next_pc): Likewise.
  6771. 2016-12-23 Luis Machado <lgustavo@codesourcery.com>
  6772. * win32-i386-low.c: Fix incorrect reference to a couple source files.
  6773. * nto-x86-low.c: Likewise.
  6774. 2016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
  6775. * Makefile.in: Include disable-implicit-rules.mk.
  6776. 2016-11-23 Pedro Alves <palves@redhat.com>
  6777. * debug.c: Include <chrono> instead of "gdb_sys_time.h".
  6778. (debug_vprintf): Use std::chrono::steady_clock instead of
  6779. gettimeofday. Use '.' instead of ':'.
  6780. * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
  6781. (get_timestamp): Use std::chrono::steady_clock instead of
  6782. gettimeofday.
  6783. 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
  6784. * Makefile.in: Fix whitespace formatting.
  6785. 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
  6786. * Makefile.in (SFILES, OBS): Flatten list and order
  6787. alphabetically.
  6788. 2016-11-23 Pedro Alves <palves@redhat.com>
  6789. * event-loop.c (handle_file_event): Use warning.
  6790. * linux-low.c (linux_resume_one_lwp_throw): Use warning.
  6791. * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
  6792. Use warning.
  6793. 2016-11-23 Pedro Alves <palves@redhat.com>
  6794. * linux-low.c (check_zombie_leaders): Use debug_printf for debug
  6795. output.
  6796. * notif.c (handle_notif_ack, notif_event_enque): Likewise.
  6797. * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
  6798. debug_printf and debug_flush for debug output.
  6799. * server.c (handle_general_set): Likewise.
  6800. * thread-db.c (try_thread_db_load): Use debug_printf for debug
  6801. output.
  6802. 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
  6803. * Makefile.in (.c.o): Replace rule with ...
  6804. (%.o: %.c): ... this one.
  6805. 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
  6806. * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
  6807. prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
  6808. make.
  6809. * configure.ac: Remove checks for the make program.
  6810. * configure: Re-generate.
  6811. 2016-10-28 Pedro Alves <palves@redhat.com>
  6812. * Makefile.in (CXX_DIALECT): Get from configure.
  6813. (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
  6814. * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
  6815. * configure.ac: Call AX_CXX_COMPILE_STDCXX.
  6816. * config.in: Regenerate.
  6817. * configure: Regenerate.
  6818. 2016-10-27 Yao Qi <yao.qi@linaro.org>
  6819. * linux-low.c (linux_supports_range_stepping): Return true if
  6820. can_software_single_step return true.
  6821. 2016-10-27 Yao Qi <yao.qi@linaro.org>
  6822. * inferiors.c (find_inferior_in_random): New function.
  6823. * inferiors.h (find_inferior_in_random): Declare.
  6824. * linux-low.c (linux_wait_for_event_filtered): Call
  6825. find_inferior_in_random instead of find_inferior.
  6826. 2016-10-27 Yao Qi <yao.qi@linaro.org>
  6827. * linux-low.c (linux_wait_1): If single-step breakpoints are
  6828. inserted, remove them.
  6829. 2016-10-26 Pedro Alves <palves@redhat.com>
  6830. * linux-low.c (handle_extended_wait): Link parent/child fork
  6831. threads.
  6832. (linux_wait_1): Unlink them.
  6833. (linux_set_resume_request): Ignore resume requests for
  6834. already-resumed and unhandled fork child threads.
  6835. * linux-low.h (struct lwp_info) <fork_relative>: New field.
  6836. * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
  6837. New functions.
  6838. (handle_v_requests) <vCont>: Don't call require_running.
  6839. * server.h (in_queued_stop_replies): New declaration.
  6840. 2016-10-24 Yao Qi <yao.qi@linaro.org>
  6841. PR server/20733
  6842. * linux-aarch64-low.c (append_insns): Cast the return value to
  6843. 'uint32_t *'.
  6844. 2016-10-10 Yao Qi <yao.qi@linaro.org>
  6845. * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
  6846. 2016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
  6847. * target.c (target_supports_multi_process): New function, moved
  6848. from...
  6849. * target.h (target_supports_multi_process): ... here. Remove
  6850. macro.
  6851. 2016-10-05 Tom Tromey <tom@tromey.com>
  6852. PR remote/20655:
  6853. * tracepoint.c (handle_tracepoint_bkpts): Check
  6854. ipa_error_tracepoint, not ipa_stopping_tracepoint.
  6855. 2016-10-05 Yao Qi <yao.qi@linaro.org>
  6856. * configure.srv: Update the path of arm-*.xml files.
  6857. 2016-10-05 Terry Guo <terry.guo@arm.com>
  6858. Yao Qi <yao.qi@linaro.org>
  6859. * Makefile.in: Adjust the path of rules.
  6860. * configure.srv: Update the path of xml files.
  6861. * regformats/arm-with-iwmmxt.dat: Regenerated.
  6862. * regformats/arm-with-neon.dat: Likewise.
  6863. * regformats/arm-with-vfpv2.dat: Likewise.
  6864. * regformats/arm-with-vfpv3.dat Likewise.
  6865. 2016-09-30 Yao Qi <yao.qi@linaro.org>
  6866. PR gdbserver/20627
  6867. * target.c (target_stop_and_wait): Don't call
  6868. target_continue_no_signal, use resume_stop instead.
  6869. 2016-09-26 Yao Qi <yao.qi@linaro.org>
  6870. * linux-low.c (linux_wait_1): Call debug_exit.
  6871. 2016-09-23 Pedro Alves <palves@redhat.com>
  6872. * Makefile.in (SFILES): Add common/new-op.c.
  6873. (OBS): Add common/new-op.o.
  6874. (new-op.o): New rule.
  6875. 2016-09-21 Simon Marchi <simon.marchi@ericsson.com>
  6876. * .gitinore: Ignore more files.
  6877. 2016-09-21 Yao Qi <yao.qi@linaro.org>
  6878. * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
  6879. 23.
  6880. 2016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
  6881. * server.c (start_inferior): Call target_mourn_inferior instead of
  6882. mourn_inferior; pass ptid_t argument to it.
  6883. (resume): Likewise.
  6884. (handle_target_event): Likewise.
  6885. * target.c (target_mourn_inferior): New function.
  6886. * target.h (mourn_inferior): Delete macro.
  6887. 2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
  6888. * linux-low.c (lwp_is_stepping): New function.
  6889. 2016-09-06 Carl Love <cel@us.ibm.com>
  6890. * server.c (start_inferior): Fixed comment, requested comment change
  6891. didn't get updated correctly. Removed reference to ptrace () call as
  6892. it is only true on Linux systems.
  6893. 2016-09-06 Carl Love <cel@us.ibm.com>
  6894. * server.c (start_inferior): Do not call
  6895. function target_post_create_inferior () if the
  6896. inferior process has already exited.
  6897. 2016-09-05 Pedro Alves <palves@redhat.com>
  6898. * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
  6899. (COMPILE.pre, CC_LD): Use CXX directly.
  6900. (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
  6901. * acinclude.m4: Don't include build-with-cxx.m4.
  6902. * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
  6903. * configure: Regenerate.
  6904. 2016-09-02 Akash Trehan <akash.trehan123@gmail.com>
  6905. PR gdb/19495
  6906. * remote-utils.c (relocate_instruction): Remove redundant strcpy()
  6907. call writing data to own_buf.
  6908. 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
  6909. * target.c (mywait): Call target_wait instead of
  6910. the_target->wait.
  6911. (target_wait): New function.
  6912. 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
  6913. * server.c (start_inferior): New variable 'ptid'. Replace calls
  6914. to the_target->resume by target_continue{,_no_signal}, depending
  6915. on the case.
  6916. * target.c (target_stop_and_wait): Call target_continue_no_signal
  6917. instead of the_target->resume.
  6918. (target_continue): New function.
  6919. 2016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
  6920. * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
  6921. 2016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
  6922. PR server/20491
  6923. * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
  6924. ps_prochandle.
  6925. * linux-aarch64-low.c (ps_get_thread_area): Likewise.
  6926. * linux-arm-low.c (ps_get_thread_area): Likewise.
  6927. * linux-crisv32-low.c (ps_get_thread_area): Likewise.
  6928. * linux-m68k-low.c (ps_get_thread_area): Likewise.
  6929. * linux-mips-low.c (ps_get_thread_area): Likewise.
  6930. * linux-nios2-low.c (ps_get_thread_area): Likewise.
  6931. * linux-tic6x-low.c (ps_get_thread_area): Likewise.
  6932. * linux-x86-low.c (ps_get_thread_area): Likewise.
  6933. * linux-xtensa-low.c (ps_get_thread_area): Likewise.
  6934. 2016-08-19 Pedro Alves <palves@redhat.com>
  6935. * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
  6936. 2016-08-19 Pedro Alves <palves@redhat.com>
  6937. * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
  6938. comment. Use memcpy instead of casting through unsigned long.
  6939. 2016-08-19 Pedro Alves <palves@redhat.com>
  6940. * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
  6941. allocating around 0x80000000.
  6942. 2016-08-19 Pedro Alves <palves@redhat.com>
  6943. PR gdb/20415
  6944. * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
  6945. (x32-avx512-linux-ipa.o): New rules.
  6946. * configure.ac (x86_64-*-linux*): New x32 check.
  6947. * configure.srv (ipa_x32_linux_regobj): New.
  6948. (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
  6949. * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
  6950. descriptions.
  6951. (initialize_low_tracepoint) [__ILP32__]: Initialize x32
  6952. descriptions.
  6953. * configure: Regenerate.
  6954. 2016-08-09 Pedro Alves <palves@redhat.com>
  6955. PR gdb/18653
  6956. * Makefile.in (OBS): Add signals-state-save-restore.o.
  6957. (signals-state-save-restore.o): New rule.
  6958. * config.in: Regenerate.
  6959. * configure: Regenerate.
  6960. * linux-low.c: Include "signals-state-save-restore.h".
  6961. (linux_create_inferior): Call
  6962. restore_original_signals_state.
  6963. * server.c: Include "dispositions-save-restore.h".
  6964. (captured_main): Call save_original_signals_state.
  6965. 2016-08-05 Pedro Alves <palves@redhat.com>
  6966. * configure: Regenerate.
  6967. 2016-08-04 Yao Qi <yao.qi@linaro.org>
  6968. * linux-low.c (regsets_fetch_inferior_registers): Check
  6969. errno is ESRCH or not.
  6970. 2016-08-02 Yao Qi <yao.qi@linaro.org>
  6971. * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
  6972. <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
  6973. (thread_db_load_search): Update.
  6974. (try_thread_db_load_1): Don't look for td_ta_event_addr,
  6975. td_ta_set_event and td_ta_event_getmsg.
  6976. 2016-07-26 Pedro Alves <palves@redhat.com>
  6977. PR server/20414
  6978. * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
  6979. of unsigned long for 64-bit registers and use uint32_t instead of
  6980. unsigned int for 32-bit registers.
  6981. 2016-07-26 Pedro Alves <palves@redhat.com>
  6982. * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
  6983. to 'ptrace'.
  6984. 2016-07-21 Tom Tromey <tom@tromey.com>
  6985. * configure: Rebuild.
  6986. 2016-07-21 Yao Qi <yao.qi@linaro.org>
  6987. * mem-break.c (find_gdb_breakpoint): Cast bp to
  6988. 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
  6989. 2016-07-21 Yao Qi <yao.qi@linaro.org>
  6990. * server.c (handle_v_requests): Support s and S actions
  6991. if target_supports_software_single_step return true.
  6992. 2016-07-21 Yao Qi <yao.qi@linaro.org>
  6993. * linux-low.c (resume_stopped_resumed_lwps): If resume request
  6994. is resume_step, call maybe_hw_step.
  6995. (linux_wait_1): Stop all threads, remove reinsert breakpoints,
  6996. and unstop them.
  6997. (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
  6998. breakpoints or not.
  6999. (proceed_one_lwp): If resume request is resume_step, install
  7000. reinsert breakpoints and call maybe_hw_step.
  7001. 2016-07-21 Yao Qi <yao.qi@linaro.org>
  7002. * linux-low.c (proceed_one_lwp): Declare.
  7003. (linux_resume_one_thread): Remove local variable 'step'.
  7004. Lift code enqueue signal. Call proceed_one_lwp instead of
  7005. linux_resume_one_lwp.
  7006. 2016-07-21 Yao Qi <yao.qi@linaro.org>
  7007. * linux-low.c (linux_resume_one_thread): Call
  7008. enqueue_pending_signal.
  7009. 2016-07-21 Yao Qi <yao.qi@linaro.org>
  7010. * gdbthread.h (make_cleanup_restore_current_thread): Declare.
  7011. * inferiors.c (do_restore_current_thread_cleanup): New function.
  7012. (make_cleanup_restore_current_thread): Likewise.
  7013. * linux-low.c (install_software_single_step_breakpoints): Call
  7014. make_cleanup_restore_current_thread. Switch current_thread to
  7015. thread.
  7016. 2016-07-21 Yao Qi <yao.qi@linaro.org>
  7017. * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
  7018. (set_reinsert_breakpoint): New parameter ptid. Callers updated.
  7019. (clone_one_breakpoint): Likewise.
  7020. (delete_reinsert_breakpoints): Change parameter to thread.
  7021. Callers updated.
  7022. (has_reinsert_breakpoints): Likewise.
  7023. (uninsert_reinsert_breakpoints): Likewise.
  7024. (reinsert_reinsert_breakpoints): Likewise.
  7025. * mem-break.h (set_reinsert_breakpoint): Update declaration.
  7026. (delete_reinsert_breakpoints): Likewise.
  7027. (reinsert_reinsert_breakpoints): Likewise.
  7028. (uninsert_reinsert_breakpoints): Likewise.
  7029. (has_reinsert_breakpoints): Likewise.
  7030. 2016-07-21 Yao Qi <yao.qi@linaro.org>
  7031. * inferiors.c (get_thread_process): Make parameter const.
  7032. * inferiors.h (get_thread_process): Update declaration.
  7033. * mem-break.c (clone_all_breakpoints): Remove all parameters.
  7034. Add new parameters child_thread and parent_thread. Callers
  7035. updated.
  7036. * mem-break.h (clone_all_breakpoints): Update declaration.
  7037. 2016-07-21 Yao Qi <yao.qi@linaro.org>
  7038. * mem-break.c (struct breakpoint) <cond_list>: Remove.
  7039. <command_list, handler>: Remove.
  7040. (struct gdb_breakpoint): New.
  7041. (struct other_breakpoint): New.
  7042. (struct reinsert_breakpoint): New.
  7043. (is_gdb_breakpoint): New function.
  7044. (any_persistent_commands): Update command_list if
  7045. is_gdb_breakpoint returns true.
  7046. (set_breakpoint): Create breakpoints according to their types.
  7047. (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
  7048. (set_gdb_breakpoint_1): Likewise.
  7049. (set_gdb_breakpoint): Likewise.
  7050. (clear_breakpoint_conditions): Change parameter type to
  7051. 'struct gdb_breakpoint *'.
  7052. (clear_breakpoint_commands): Likewise.
  7053. (clear_breakpoint_conditions_and_commands): Likewise.
  7054. (add_condition_to_breakpoint): Likewise.
  7055. (add_breakpoint_condition): Likewise.
  7056. (add_commands_to_breakpoint): Likewise.
  7057. (check_breakpoints): Check other_breakpoint.
  7058. (clone_one_breakpoint): Clone breakpopint according to its type.
  7059. * mem-break.h (struct gdb_breakpoint): Declare.
  7060. (set_gdb_breakpoint): Update declaration.
  7061. (clear_breakpoint_conditions_and_commands): Likewise.
  7062. (add_breakpoint_condition): Likewise.
  7063. (add_breakpoint_commands): Likewise.
  7064. * server.c (process_point_options): Change parameter type to
  7065. 'struct gdb_breakpoint *'.
  7066. 2016-07-21 Yao Qi <yao.qi@linaro.org>
  7067. * mem-break.c (set_breakpoint_at): Rename it to ...
  7068. (set_breakpoint_type_at): ... it.
  7069. (set_breakpoint_at): Call set_breakpoint_type_at.
  7070. (set_reinsert_breakpoint): Call set_breakpoint_type_at.
  7071. * mem-break.h (set_breakpoint_at): Update comments.
  7072. 2016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
  7073. * linux-nios2-low.c (nios2_fill_gregset): Add type cast
  7074. to buf parameter.
  7075. (nios2_store_gregset): Likewise.
  7076. 2016-07-01 Pedro Alves <palves@redhat.com>
  7077. Antoine Tremblay <antoine.tremblay@ericsson.com>
  7078. * linux-low.c: Change interface to take the target lwp_info
  7079. pointer directly and return void. Handle detaching from a zombie
  7080. thread.
  7081. (linux_detach_lwp_callback): New function.
  7082. (linux_detach): Detach from the leader thread after detaching from
  7083. the clone threads.
  7084. 2016-06-28 Yao Qi <yao.qi@linaro.org>
  7085. * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
  7086. for variable new_offset.
  7087. (aarch64_ftrace_insn_reloc_b_cond): Likewise.
  7088. (aarch64_ftrace_insn_reloc_cb): Likewise.
  7089. (aarch64_ftrace_insn_reloc_tb): Likewise.
  7090. (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
  7091. PRIx64 instead of PRIx32.
  7092. 2016-06-28 Yao Qi <yao.qi@linaro.org>
  7093. * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
  7094. (the_low_target): Install arm_get_syscall_trapinfo.
  7095. 2016-06-28 Yao Qi <yao.qi@linaro.org>
  7096. * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
  7097. function.
  7098. (the_low_target): Install aarch64_get_syscall_trapinfo.
  7099. 2016-06-28 Yao Qi <yao.qi@linaro.org>
  7100. * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
  7101. Callers updated.
  7102. * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
  7103. Remove parameter sysno.
  7104. * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
  7105. sysret.
  7106. 2016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
  7107. * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
  7108. (s390_emit_ne_goto): Likewise.
  7109. (s390_emit_lt_goto): Likewise.
  7110. (s390_emit_le_goto): Likewise.
  7111. (s390_emit_gt_goto): Likewise.
  7112. (s390_emit_ge_goto): Likewise.
  7113. (s390x_emit_eq_goto): Likewise.
  7114. (s390x_emit_ne_goto): Likewise.
  7115. (s390x_emit_lt_goto): Likewise.
  7116. (s390x_emit_le_goto): Likewise.
  7117. (s390x_emit_gt_goto): Likewise.
  7118. (s390x_emit_ge_goto): Likewise.
  7119. (s390_emit_ops_impl): Mark variable static.
  7120. (s390x_emit_ops): Likewise.
  7121. 2016-06-17 Yao Qi <yao.qi@linaro.org>
  7122. * linux-low.c (handle_extended_wait): Call
  7123. uninsert_reinsert_breakpoints for the parent process. Remove
  7124. reinsert breakpoints from the child process. Reinsert them to
  7125. the parent process when vfork is done.
  7126. * mem-break.c (uninsert_reinsert_breakpoints): New function.
  7127. (reinsert_reinsert_breakpoints): New function.
  7128. * mem-break.h (uninsert_reinsert_breakpoints): Declare
  7129. (reinsert_reinsert_breakpoints): Declare.
  7130. 2016-06-17 Yao Qi <yao.qi@linaro.org>
  7131. * linux-low.c (handle_extended_wait): If the parent is doing
  7132. step-over, remove the reinsert breakpoints from the forked child.
  7133. 2016-06-17 Yao Qi <yao.qi@linaro.org>
  7134. * linux-low.c (unsuspend_all_lwps): Declare.
  7135. (linux_low_filter_event): If thread exited, call finish_step_over.
  7136. If step-over is finished, unsuspend other threads.
  7137. 2016-06-17 Yao Qi <yao.qi@linaro.org>
  7138. * linux-low.c (linux_resume_one_lwp_throw): Assert
  7139. has_reinsert_breakpoints returns false.
  7140. * mem-break.c (delete_disabled_breakpoints): Assert
  7141. bp type isn't reinsert_breakpoint.
  7142. 2016-06-17 Yao Qi <yao.qi@linaro.org>
  7143. * linux-low.c (maybe_hw_step): New function.
  7144. (linux_resume_one_lwp_throw): Call maybe_hw_step.
  7145. (finish_step_over): Switch current_thread to lwp temporarily,
  7146. and assert has_reinsert_breakpoints returns true.
  7147. (proceed_one_lwp): Call maybe_hw_step.
  7148. * mem-break.c (has_reinsert_breakpoints): New function.
  7149. * mem-break.h (has_reinsert_breakpoints): Declare.
  7150. 2016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
  7151. * win32-low.c (win32_create_inferior): Add pointer casts for C++.
  7152. 2016-05-17 Yao Qi <yao.qi@linaro.org>
  7153. * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
  7154. instead of find_inferior.
  7155. 2016-05-05 Yao Qi <yao.qi@linaro.org>
  7156. * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
  7157. Initialize res to zero.
  7158. 2016-05-05 Yao Qi <yao.qi@linaro.org>
  7159. * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
  7160. to uint32_t.
  7161. 2016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
  7162. * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
  7163. used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
  7164. (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
  7165. 2016-04-28 Par Olsson <par.olsson@windriver.com>
  7166. Simon Marchi <simon.marchi@ericsson.com>
  7167. * tracepoint.c (write_inferior_int8): New function.
  7168. (cmd_qtenable_disable): Write enable flag using
  7169. write_inferior_int8.
  7170. 2016-04-25 Yao Qi <yao.qi@linaro.org>
  7171. * linux-low.c (lwp_signal_can_be_delivered): Adjust.
  7172. (need_step_over_p): Return zero if the LWP has pending signals
  7173. can be delivered on software single step target.
  7174. 2016-04-25 Yao Qi <yao.qi@linaro.org>
  7175. * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
  7176. return instead of error.
  7177. 2016-04-22 Yao Qi <yao.qi@linaro.org>
  7178. * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
  7179. to 23.
  7180. 2016-04-22 Yao Qi <yao.qi@linaro.org>
  7181. * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
  7182. signal when stepping over breakpoint with software single
  7183. step.
  7184. 2016-04-21 Pedro Alves <palves@redhat.com>
  7185. * linux-s390-low.c (s390_collect_ptrace_register)
  7186. (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
  7187. add casts.
  7188. (s390_check_regset): Use void * instead of gdb_byte *.
  7189. 2016-04-20 Pedro Alves <palves@redhat.com>
  7190. * configure: Renegerate.
  7191. 2016-04-20 Yao Qi <yao.qi@linaro.org>
  7192. * linux-aarch32-low.c: Include "arch/arm-linux.h".
  7193. (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
  7194. number 16.
  7195. (arm_store_gregset): Likewise.
  7196. 2016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
  7197. * Makefile.in (clean): Add removal for i386-avx-mpx.c,
  7198. i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
  7199. (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
  7200. (amd64-avx-mpx-linux.c): New rules.
  7201. (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
  7202. * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
  7203. (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
  7204. (srv_amd64_regobj): Add amd64-avx-mpx.o.
  7205. (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
  7206. (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
  7207. (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
  7208. (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
  7209. (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
  7210. (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
  7211. (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
  7212. * linux-x86-low.c (x86_linux_read_description): Add case for
  7213. X86_XSTATE_AVX_MPX_MASK.
  7214. (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
  7215. (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
  7216. init_registers_i386_avx_mpx_linux.
  7217. * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
  7218. (initialize_low_tracepoint): Call
  7219. init_registers_i386_avx_mpx_linux.
  7220. * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
  7221. (initialize_low_tracepoint): Call
  7222. init_registers_amd64_avx_mpx_linux.
  7223. * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
  7224. (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
  7225. (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
  7226. declarations.
  7227. 2016-04-18 Pedro Alves <palves@redhat.com>
  7228. * configure: Regenerate.
  7229. 2016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
  7230. * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
  7231. (aarch64_emit_sub): Likewise.
  7232. 2016-04-12 Pedro Alves <palves@redhat.com>
  7233. * utils.c (prepare_to_throw_exception): Delete.
  7234. 2016-04-05 Simon Marchi <simon.marchi@ericsson.com>
  7235. * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
  7236. 2016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
  7237. * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
  7238. 2016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
  7239. * linux-aarch64-ipa.c: Add <elf.h> include.
  7240. * linux-ppc-ipa.c: Add <elf.h> include.
  7241. * linux-s390-ipa.c: Add <elf.h> include.
  7242. 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
  7243. * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
  7244. (get_raw_reg_ptr): Likewise.
  7245. (get_trace_state_variable_value_ptr): Likewise.
  7246. (set_trace_state_variable_value_ptr): Likewise.
  7247. (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
  7248. char *.
  7249. 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
  7250. Marcin Kościelnicki <koriakin@0x04.net>
  7251. PR/17221
  7252. * linux-ppc-low.c (emit_insns): New function.
  7253. (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
  7254. (ppc_emit_prologue): New function.
  7255. (ppc_emit_epilogue): New function.
  7256. (ppc_emit_add): New function.
  7257. (ppc_emit_sub): New function.
  7258. (ppc_emit_mul): New function.
  7259. (ppc_emit_lsh): New function.
  7260. (ppc_emit_rsh_signed): New function.
  7261. (ppc_emit_rsh_unsigned): New function.
  7262. (ppc_emit_ext): New function.
  7263. (ppc_emit_zero_ext): New function.
  7264. (ppc_emit_log_not): New function.
  7265. (ppc_emit_bit_and): New function.
  7266. (ppc_emit_bit_or): New function.
  7267. (ppc_emit_bit_xor): New function.
  7268. (ppc_emit_bit_not): New function.
  7269. (ppc_emit_equal): New function.
  7270. (ppc_emit_less_signed): New function.
  7271. (ppc_emit_less_unsigned): New function.
  7272. (ppc_emit_ref): New function.
  7273. (ppc_emit_const): New function.
  7274. (ppc_emit_reg): New function.
  7275. (ppc_emit_pop): New function.
  7276. (ppc_emit_stack_flush): New function.
  7277. (ppc_emit_swap): New function.
  7278. (ppc_emit_stack_adjust): New function.
  7279. (ppc_emit_call): New function.
  7280. (ppc_emit_int_call_1): New function.
  7281. (ppc_emit_void_call_2): New function.
  7282. (ppc_emit_if_goto): New function.
  7283. (ppc_emit_goto): New function.
  7284. (ppc_emit_eq_goto): New function.
  7285. (ppc_emit_ne_goto): New function.
  7286. (ppc_emit_lt_goto): New function.
  7287. (ppc_emit_le_goto): New function.
  7288. (ppc_emit_gt_goto): New function.
  7289. (ppc_emit_ge_goto): New function.
  7290. (ppc_write_goto_address): New function.
  7291. (ppc_emit_ops_impl): New static variable.
  7292. (ppc64v1_emit_prologue): New function.
  7293. (ppc64v2_emit_prologue): New function.
  7294. (ppc64_emit_epilogue): New function.
  7295. (ppc64_emit_add): New function.
  7296. (ppc64_emit_sub): New function.
  7297. (ppc64_emit_mul): New function.
  7298. (ppc64_emit_lsh): New function.
  7299. (ppc64_emit_rsh_signed): New function.
  7300. (ppc64_emit_rsh_unsigned): New function.
  7301. (ppc64_emit_ext): New function.
  7302. (ppc64_emit_zero_ext): New function.
  7303. (ppc64_emit_log_not): New function.
  7304. (ppc64_emit_bit_and): New function.
  7305. (ppc64_emit_bit_or): New function.
  7306. (ppc64_emit_bit_xor): New function.
  7307. (ppc64_emit_bit_not): New function.
  7308. (ppc64_emit_equal): New function.
  7309. (ppc64_emit_less_signed): New function.
  7310. (ppc64_emit_less_unsigned): New function.
  7311. (ppc64_emit_ref): New function.
  7312. (ppc64_emit_const): New function.
  7313. (ppc64v1_emit_reg): New function.
  7314. (ppc64v2_emit_reg): New function.
  7315. (ppc64_emit_pop): New function.
  7316. (ppc64_emit_stack_flush): New function.
  7317. (ppc64_emit_swap): New function.
  7318. (ppc64v1_emit_call): New function.
  7319. (ppc64v2_emit_call): New function.
  7320. (ppc64v1_emit_int_call_1): New function.
  7321. (ppc64v2_emit_int_call_1): New function.
  7322. (ppc64v1_emit_void_call_2): New function.
  7323. (ppc64v2_emit_void_call_2): New function.
  7324. (ppc64_emit_if_goto): New function.
  7325. (ppc64_emit_eq_goto): New function.
  7326. (ppc64_emit_ne_goto): New function.
  7327. (ppc64_emit_lt_goto): New function.
  7328. (ppc64_emit_le_goto): New function.
  7329. (ppc64_emit_gt_goto): New function.
  7330. (ppc64_emit_ge_goto): New function.
  7331. (ppc64v1_emit_ops_impl): New static variable.
  7332. (ppc64v2_emit_ops_impl): New static variable.
  7333. (ppc_emit_ops): New function.
  7334. (linux_low_target): Wire in ppc_emit_ops.
  7335. 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
  7336. Marcin Kościelnicki <koriakin@0x04.net>
  7337. PR/17221
  7338. * Makefile.in: Add powerpc-*-ipa.o
  7339. * configure.srv: Add ipa_obj for powerpc*-linux.
  7340. * linux-ppc-ipa.c: New file.
  7341. * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
  7342. includes.
  7343. (PPC_FIELD): New macro.
  7344. (PPC_SEXT): New macro.
  7345. (PPC_OP6): New macro.
  7346. (PPC_BO): New macro.
  7347. (PPC_LI): New macro.
  7348. (PPC_BD): New macro.
  7349. (init_registers_*): Move prototype to linux-ppc-tdesc.h.
  7350. (tdesc_*): Move declaration to linux-ppc-tdesc.h.
  7351. (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
  7352. (ppc_get_thread_area): New function.
  7353. (is_elfv2_inferior): New function.
  7354. (gen_ds_form): New function.
  7355. (GEN_STD): New macro.
  7356. (GEN_STDU): New macro.
  7357. (GEN_LD): New macro.
  7358. (GEN_LDU): New macro.
  7359. (gen_d_form): New function.
  7360. (GEN_ADDI): New macro.
  7361. (GEN_ADDIS): New macro.
  7362. (GEN_LI): New macro.
  7363. (GEN_LIS): New macro.
  7364. (GEN_ORI): New macro.
  7365. (GEN_ORIS): New macro.
  7366. (GEN_LWZ): New macro.
  7367. (GEN_STW): New macro.
  7368. (GEN_STWU): New macro.
  7369. (gen_xfx_form): New function.
  7370. (GEN_MFSPR): New macro.
  7371. (GEN_MTSPR): New macro.
  7372. (GEN_MFCR): New macro.
  7373. (GEN_MTCR): New macro.
  7374. (GEN_SYNC): New macro.
  7375. (GEN_LWSYNC): New macro.
  7376. (gen_x_form): New function.
  7377. (GEN_OR): New macro.
  7378. (GEN_MR): New macro.
  7379. (GEN_LWARX): New macro.
  7380. (GEN_STWCX): New macro.
  7381. (GEN_CMPW): New macro.
  7382. (gen_md_form): New function.
  7383. (GEN_RLDICL): New macro.
  7384. (GEN_RLDICR): New macro.
  7385. (gen_i_form): New function.
  7386. (GEN_B): New macro.
  7387. (GEN_BL): New macro.
  7388. (gen_b_form): New function.
  7389. (GEN_BNE): New macro.
  7390. (GEN_LOAD): New macro.
  7391. (GEN_STORE): New macro.
  7392. (gen_limm): New function.
  7393. (gen_atomic_xchg): New function.
  7394. (gen_call): New function.
  7395. (ppc_relocate_instruction): New function.
  7396. (ppc_install_fast_tracepoint_jump_pad): New function.
  7397. (ppc_get_min_fast_tracepoint_insn_len): New function.
  7398. (ppc_get_ipa_tdesc_idx): New function.
  7399. (the_low_target): Wire in the new functions.
  7400. (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
  7401. tdescs.
  7402. * linux-ppc-tdesc.h: New file.
  7403. 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
  7404. * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
  7405. (alloc_jump_pad_buffer): New function.
  7406. * linux-amd64-ipa.c: Add <sys/mman.h> include.
  7407. (alloc_jump_pad_buffer): New function.
  7408. * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
  7409. * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
  7410. (alloc_jump_pad_buffer): New function.
  7411. * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
  7412. (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
  7413. * tracepoint.h (alloc_jump_pad_buffer): New prototype.
  7414. (getauxval) [!HAVE_GETAUXVAL]: New prototype.
  7415. 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
  7416. * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
  7417. * linux-amd64-ipa.c: Likewise.
  7418. * linux-i386-ipa.c: Likewise.
  7419. * linux-s390-ipa.c: Likewise.
  7420. * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
  7421. ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
  7422. set_trace_state_variable_value_ptr.
  7423. (struct ipa_sym_addresses): Likewise.
  7424. (symbol_list): Likewise.
  7425. (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
  7426. accessing gdb_collect directly.
  7427. (gdb_collect_ptr_type): New typedef.
  7428. (get_raw_reg_ptr_type): New typedef.
  7429. (get_trace_state_variable_value_ptr_type): New typedef.
  7430. (set_trace_state_variable_value_ptr_type): New typedef.
  7431. (gdb_collect_ptr): New global.
  7432. (get_raw_reg_ptr): New global.
  7433. (get_trace_state_variable_value_ptr): New global.
  7434. (set_trace_state_variable_value_ptr): New global.
  7435. (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
  7436. accessing get_raw_reg directly.
  7437. (get_get_tsv_func_addr): Likewise for
  7438. get_trace_state_variable_value_ptr.
  7439. (get_set_tsv_func_addr): Likewise for
  7440. set_trace_state_variable_value_ptr.
  7441. * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
  7442. 2016-03-30 Simon Marchi <simon.marchi@ericsson.com>
  7443. * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
  7444. 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
  7445. * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
  7446. packets.
  7447. (relocate_instruction): Remove own_buf.
  7448. * server.c (own_buf): Make global.
  7449. (handle_v_requests): Make global.
  7450. * server.h (own_buf): New declaration.
  7451. (handle_v_requests): New prototype.
  7452. 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
  7453. PR 18377
  7454. * linux-s390-low.c (add_insns): New function.
  7455. (s390_emit_prologue): New function.
  7456. (s390_emit_epilogue): New function.
  7457. (s390_emit_add): New function.
  7458. (s390_emit_sub): New function.
  7459. (s390_emit_mul): New function.
  7460. (s390_emit_lsh): New function.
  7461. (s390_emit_rsh_signed): New function.
  7462. (s390_emit_rsh_unsigned): New function.
  7463. (s390_emit_ext): New function.
  7464. (s390_emit_log_not): New function.
  7465. (s390_emit_bit_and): New function.
  7466. (s390_emit_bit_or): New function.
  7467. (s390_emit_bit_xor): New function.
  7468. (s390_emit_bit_not): New function.
  7469. (s390_emit_equal): New function.
  7470. (s390_emit_less_signed): New function.
  7471. (s390_emit_less_unsigned): New function.
  7472. (s390_emit_ref): New function.
  7473. (s390_emit_if_goto): New function.
  7474. (s390_emit_goto): New function.
  7475. (s390_write_goto_address): New function.
  7476. (s390_emit_litpool): New function.
  7477. (s390_emit_const): New function.
  7478. (s390_emit_call): New function.
  7479. (s390_emit_reg): New function.
  7480. (s390_emit_pop): New function.
  7481. (s390_emit_stack_flush): New function.
  7482. (s390_emit_zero_ext): New function.
  7483. (s390_emit_swap): New function.
  7484. (s390_emit_stack_adjust): New function.
  7485. (s390_emit_set_r2): New function.
  7486. (s390_emit_int_call_1): New function.
  7487. (s390_emit_void_call_2): New function.
  7488. (s390_emit_eq_goto): New function.
  7489. (s390_emit_ne_goto): New function.
  7490. (s390_emit_lt_goto): New function.
  7491. (s390_emit_le_goto): New function.
  7492. (s390_emit_gt_goto): New function.
  7493. (s390_emit_ge_goto): New function.
  7494. (s390x_emit_prologue): New function.
  7495. (s390x_emit_epilogue): New function.
  7496. (s390x_emit_add): New function.
  7497. (s390x_emit_sub): New function.
  7498. (s390x_emit_mul): New function.
  7499. (s390x_emit_lsh): New function.
  7500. (s390x_emit_rsh_signed): New function.
  7501. (s390x_emit_rsh_unsigned): New function.
  7502. (s390x_emit_ext): New function.
  7503. (s390x_emit_log_not): New function.
  7504. (s390x_emit_bit_and): New function.
  7505. (s390x_emit_bit_or): New function.
  7506. (s390x_emit_bit_xor): New function.
  7507. (s390x_emit_bit_not): New function.
  7508. (s390x_emit_equal): New function.
  7509. (s390x_emit_less_signed): New function.
  7510. (s390x_emit_less_unsigned): New function.
  7511. (s390x_emit_ref): New function.
  7512. (s390x_emit_if_goto): New function.
  7513. (s390x_emit_const): New function.
  7514. (s390x_emit_call): New function.
  7515. (s390x_emit_reg): New function.
  7516. (s390x_emit_pop): New function.
  7517. (s390x_emit_stack_flush): New function.
  7518. (s390x_emit_zero_ext): New function.
  7519. (s390x_emit_swap): New function.
  7520. (s390x_emit_stack_adjust): New function.
  7521. (s390x_emit_int_call_1): New function.
  7522. (s390x_emit_void_call_2): New function.
  7523. (s390x_emit_eq_goto): New function.
  7524. (s390x_emit_ne_goto): New function.
  7525. (s390x_emit_lt_goto): New function.
  7526. (s390x_emit_le_goto): New function.
  7527. (s390x_emit_gt_goto): New function.
  7528. (s390x_emit_ge_goto): New function.
  7529. (s390_emit_ops): New function.
  7530. (struct linux_target_ops): Fill in emit_ops hook.
  7531. 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
  7532. PR 18377
  7533. * Makefile.in: Add s390 IPA files.
  7534. * configure.srv: Build IPA for s390.
  7535. * linux-s390-ipa.c: New file.
  7536. * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
  7537. (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
  7538. (tdesc_s390_linux32): Likewise.
  7539. (init_registers_s390_linux32v1): Likewise.
  7540. (tdesc_s390_linux32v1): Likewise.
  7541. (init_registers_s390_linux32v2): Likewise.
  7542. (tdesc_s390_linux32v2): Likewise.
  7543. (init_registers_s390_linux64): Likewise.
  7544. (tdesc_s390_linux64): Likewise.
  7545. (init_registers_s390_linux64v1): Likewise.
  7546. (tdesc_s390_linux64v1): Likewise.
  7547. (init_registers_s390_linux64v2): Likewise.
  7548. (tdesc_s390_linux64v2): Likewise.
  7549. (init_registers_s390_te_linux64): Likewise.
  7550. (tdesc_s390_te_linux64): Likewise.
  7551. (init_registers_s390_vx_linux64): Likewise.
  7552. (tdesc_s390_vx_linux64): Likewise.
  7553. (init_registers_s390_tevx_linux64): Likewise.
  7554. (tdesc_s390_tevx_linux64): Likewise.
  7555. (init_registers_s390x_linux64): Likewise.
  7556. (tdesc_s390x_linux64): Likewise.
  7557. (init_registers_s390x_linux64v1): Likewise.
  7558. (tdesc_s390x_linux64v1): Likewise.
  7559. (init_registers_s390x_linux64v2): Likewise.
  7560. (tdesc_s390x_linux64v2): Likewise.
  7561. (init_registers_s390x_te_linux64): Likewise.
  7562. (tdesc_s390x_te_linux64): Likewise.
  7563. (init_registers_s390x_vx_linux64): Likewise.
  7564. (tdesc_s390x_vx_linux64): Likewise.
  7565. (init_registers_s390x_tevx_linux64): Likewise.
  7566. (tdesc_s390x_tevx_linux64): Likewise.
  7567. (have_hwcap_s390_vx): New static variable.
  7568. (s390_arch_setup): Fill have_hwcap_s390_vx.
  7569. (s390_get_thread_area): New function.
  7570. (s390_ft_entry_gpr_esa): New const.
  7571. (s390_ft_entry_gpr_zarch): New const.
  7572. (s390_ft_entry_misc): New const.
  7573. (s390_ft_entry_fr): New const.
  7574. (s390_ft_entry_vr): New const.
  7575. (s390_ft_main_31): New const.
  7576. (s390_ft_main_64): New const.
  7577. (s390_ft_exit_fr): New const.
  7578. (s390_ft_exit_vr): New const.
  7579. (s390_ft_exit_misc): New const.
  7580. (s390_ft_exit_gpr_esa): New const.
  7581. (s390_ft_exit_gpr_zarch): New const.
  7582. (append_insns): New function.
  7583. (s390_relocate_instruction): New function.
  7584. (s390_install_fast_tracepoint_jump_pad): New function.
  7585. (s390_get_min_fast_tracepoint_insn_len): New function.
  7586. (s390_get_ipa_tdesc_idx): New function.
  7587. (struct linux_target_ops): Wire in the above functions.
  7588. (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
  7589. * linux-s390-tdesc.h: New file.
  7590. 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
  7591. * linux-s390-low.c (s390_supports_tracepoints): New function.
  7592. (struct linux_target_ops): Fill supports_tracepoints hook.
  7593. 2016-03-18 Yao Qi <yao.qi@linaro.org>
  7594. * linux-low.c (lwp_signal_can_be_delivered): New function.
  7595. (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
  7596. 2016-03-18 Yao Qi <yao.qi@linaro.org>
  7597. * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
  7598. 0 if signal is enqueued. Remove 'signal' from one debugging
  7599. message. Move one debugging message to some lines below.
  7600. Remove code setting 'signal' to 0.
  7601. 2016-03-18 Yao Qi <yao.qi@linaro.org>
  7602. * linux-low.c (linux_low_filter_event): Remove redundant
  7603. WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
  7604. 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
  7605. * linux-ppc-low.c (ppc_supports_tracepoints): New function.
  7606. (struct linux_target_ops): Wire in the above.
  7607. 2016-03-03 Yao Qi <yao.qi@linaro.org>
  7608. * linux-low.c: Update comments to start_step_over.
  7609. 2016-03-03 Yao Qi <yao.qi@linaro.org>
  7610. PR server/19736
  7611. * linux-low.c (handle_extended_wait): Set child suspended
  7612. if event_lwp->bp_reinsert isn't zero.
  7613. 2016-03-02 Yao Qi <yao.qi@linaro.org>
  7614. * linux-low.c (linux_resume_one_lwp_throw): Replace code with
  7615. enqueue_pending_signal.
  7616. 2016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
  7617. * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
  7618. is actually loaded.
  7619. 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
  7620. * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
  7621. (s390_regmap_3264) [!__s390x__]: New global.
  7622. (s390_collect_ptrace_register): Skip map entries containing -1.
  7623. (s390_supply_ptrace_register): Ditto.
  7624. (s390_fill_gprs_high): New function.
  7625. (s390_store_gprs_high): New function.
  7626. (s390_regsets): Add NT_S390_HIGH_GPRS.
  7627. (s390_get_hwcap): Enable on 31-bit.
  7628. (have_hwcap_s390_high_gprs): Enable on 31-bit.
  7629. (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
  7630. Detect NT_S390_HIGH_GPRS.
  7631. (s390_usrregs_info_3264): Enable on 31-bit.
  7632. (s390_regs_info): Enable regs_info_3264 on 31-bit.
  7633. (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
  7634. 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
  7635. PR gdb/13808
  7636. * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
  7637. * configure.srv: Ditto.
  7638. * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
  7639. (initialize_low_tracepoint): Remove ipa_tdesc assignment.
  7640. * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
  7641. (init_registers_amd64_linux): Remove prototype.
  7642. (tdesc_amd64_linux): Remove declaration.
  7643. (get_ipa_tdesc): New function.
  7644. (initialize_low_tracepoint): Remove ipa_tdesc assignment,
  7645. initialize remaining tdescs.
  7646. * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
  7647. (init_registers_i386_linux): Remove prototype.
  7648. (tdesc_i386_linux): Remove declaration.
  7649. (get_ipa_tdesc): New function.
  7650. (initialize_low_tracepoint): Remove ipa_tdesc assignment,
  7651. initialize remaining tdescs.
  7652. * linux-low.c (linux_get_ipa_tdesc_idx): New function.
  7653. (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
  7654. * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
  7655. * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
  7656. (x86_get_ipa_tdesc_idx): New function.
  7657. (the_low_target): Wire in x86_get_ipa_tdesc_idx.
  7658. * linux-x86-tdesc.h: New file.
  7659. * target.h (struct target_ops): Add get_ipa_tdesc_idx.
  7660. (target_get_ipa_tdesc_idx): New macro.
  7661. * tracepoint.c (ipa_tdesc_idx): New macro.
  7662. (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
  7663. (symbol_list): Add ipa_tdesc_idx.
  7664. (cmd_qtstart): Write ipa_tdesc_idx in the target.
  7665. (ipa_tdesc): Remove.
  7666. (ipa_tdesc_idx): New variable.
  7667. (get_context_regcache): Use get_ipa_tdesc.
  7668. (gdb_collect): Ditto.
  7669. (gdb_probe): Ditto.
  7670. * tracepoint.h (get_ipa_tdesc): New prototype.
  7671. (ipa_tdesc): Remove.
  7672. 2016-02-24 Pedro Alves <palves@redhat.com>
  7673. * linux-low.c (check_stopped_by_breakpoint): Rename to ...
  7674. (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
  7675. handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
  7676. Factor out common code between the USE_SIGTRAP_SIGINFO and
  7677. !USE_SIGTRAP_SIGINFO blocks.
  7678. (linux_low_filter_event): Call save_stop_reason instead of
  7679. check_stopped_by_breakpoint and check_stopped_by_watchpoint.
  7680. Update comments.
  7681. (linux_wait_1): Update comments.
  7682. 2016-02-24 Wei-cheng Wang <cole945@gmail.com>
  7683. * linux-ppc-low.c (ppc_supports_z_point_type): New function:
  7684. (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
  7685. (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
  7686. ppc_insert_point, ppc_remove_point.
  7687. 2016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
  7688. * linux-s390-low.c (s390_supports_z_point_type): New function.
  7689. (struct linux_target_ops): Wire s390_supports_z_point_type in.
  7690. 2016-02-16 Yao Qi <yao.qi@linaro.org>
  7691. * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
  7692. PC. Get pc from regcache_read_pc.
  7693. 2016-02-12 Yao Qi <yao.qi@linaro.org>
  7694. * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
  7695. or linux_get_pc_32bit.
  7696. (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
  7697. 2016-02-12 Yao Qi <yao.qi@linaro.org>
  7698. * linux-arm-low.c (get_next_pcs_ops): Initialize it with
  7699. arm_linux_get_next_pcs_fixup.
  7700. 2016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
  7701. * tracepoint.c (x_tracepoint_action_download): Change
  7702. write_inferior_data_ptr to write_inferior_data_pointer.
  7703. (cmd_qtstart): Likewise.
  7704. (write_inferior_data_ptr): Remove.
  7705. (download_agent_expr): Change write_inferior_data_ptr to
  7706. write_inferior_data_pointer.
  7707. (download_tracepoint_1): Likewise.
  7708. (download_tracepoint): Likewise.
  7709. (download_trace_state_variables): Likewise.
  7710. 2016-02-11 Wei-cheng Wang <cole945@gmail.com>
  7711. Marcin Kościelnicki <koriakin@0x04.net>
  7712. * tracepoint.c (struct tracepoint_action_ops): Remove.
  7713. (struct tracepoint_action): Remove ops.
  7714. (m_tracepoint_action_download, r_tracepoint_action_download)
  7715. (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
  7716. size and offset accordingly.
  7717. (m_tracepoint_action_ops, r_tracepoint_action_ops)
  7718. (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
  7719. (tracepoint_action_send, tracepoint_action_download): New functions.
  7720. Helpers for trace action handlers.
  7721. (add_tracepoint_action): Remove setup actions ops.
  7722. (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
  7723. 2016-02-10 Yao Qi <yao.qi@linaro.org>
  7724. * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
  7725. 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
  7726. * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
  7727. to AC_OUTPUT.
  7728. * configure: Regenerate.
  7729. 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
  7730. * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
  7731. void * to gdb_byte *.
  7732. * linux-low.c (siginfo_fixup): Likewise.
  7733. (linux_xfer_siginfo): Likewise.
  7734. * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
  7735. Likewise.
  7736. * linux-x86-low.c (x86_siginfo_fixup): Likewise.
  7737. 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
  7738. * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
  7739. to srv_tgtobj.
  7740. (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
  7741. to srv_tgtobj.
  7742. * linux-x86-low.c [__x86_64__]: Include
  7743. "nat/amd64-linux-siginfo.h".
  7744. (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
  7745. (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
  7746. (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
  7747. (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
  7748. (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
  7749. (cpt_si_fd, si_timerid, si_overrun): Move from
  7750. nat/amd64-linux-siginfo.c.
  7751. * Makefile.in (amd64-linux-siginfo.o:): New rule.
  7752. 2016-01-28 Simon Marchi <simon.marchi@ericsson.com>
  7753. * server.c (skip_to_semicolon): Remove.
  7754. (process_point_options): Use strchrnul instead of
  7755. skip_to_semicolon.
  7756. 2016-01-26 Yao Qi <yao.qi@linaro.org>
  7757. * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
  7758. * linux-low.c (install_software_single_step_breakpoints): Don't
  7759. call regcache_read_pc.
  7760. * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
  7761. argument pc.
  7762. 2016-01-26 Yao Qi <yao.qi@linaro.org>
  7763. * linux-low.c (install_software_single_step_breakpoints): Call
  7764. regcache_read_pc instead of get_pc.
  7765. 2016-01-26 Yao Qi <yao.qi@linaro.org>
  7766. * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
  7767. (unblock_async_io): Rename to ...
  7768. (block_unblock_async_io): ... it. New function.
  7769. (enable_async_io): Don't install SIGIO handler. Unblock it
  7770. instead.
  7771. (disable_async_io): Don't ignore SIGIO. Block it instead.
  7772. (initialize_async_io): Install SIGIO handler. Don't call
  7773. unblock_async_io.
  7774. 2016-01-26 Yao Qi <yao.qi@linaro.org>
  7775. * remote-utils.c (getpkt): If the buffer isn't empty, and the
  7776. first character is '\003', call *the_target->request_interrupt.
  7777. 2016-01-25 Yao Qi <yao.qi@linaro.org>
  7778. * remote-utils.c (new_thread_notify): Remove.
  7779. (dead_thread_notify): Likewise.
  7780. * remote-utils.h (new_thread_notify): Remove declaration.
  7781. (dead_thread_notify): Likewise.
  7782. 2016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
  7783. * gdb.trace/pending.exp: Fix expected message on continue.
  7784. 2016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
  7785. * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
  7786. it works properly on big-endian machines where sizeof (CORE_ADDR)
  7787. != sizeof (void *).
  7788. 2016-01-21 Pedro Alves <palves@redhat.com>
  7789. * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
  7790. (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
  7791. * configure: Regenerate.
  7792. 2016-01-21 Yao Qi <yao.qi@linaro.org>
  7793. * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
  7794. is_thumb and set it according to CPSR saved on the stack.
  7795. (get_next_pcs_syscall_next_pc): Pass is_thumb to
  7796. arm_sigreturn_next_pc.
  7797. 2016-01-18 Yao Qi <yao.qi@linaro.org>
  7798. * linux-low.c (linux_set_pc_64bit): New function.
  7799. (linux_get_pc_64bit): New function.
  7800. * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
  7801. Declare.
  7802. * linux-sparc-low.c (debug_threads): Remove declaration.
  7803. (sparc_get_pc): Remove.
  7804. (the_low_target): Use linux_get_pc_64bit instead of
  7805. sparc_get_pc.
  7806. * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
  7807. (the_low_target): Use linux_get_pc_64bit and
  7808. linux_set_pc_64bit.
  7809. 2016-01-18 Yao Qi <yao.qi@linaro.org>
  7810. * linux-arm-low.c (debug_threads): Remove declaration.
  7811. (arm_get_pc, arm_set_pc): Remove.
  7812. (the_low_target): Use linux_get_pc_32bit and
  7813. linux_set_pc_32bit.
  7814. * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
  7815. (the_low_target): Use linux_get_pc_32bit and
  7816. linux_set_pc_32bit.
  7817. * linux-cris-low.c (debug_threads): Remove declaration.
  7818. (cris_get_pc, cris_set_pc,): Remove.
  7819. (the_low_target): Use linux_get_pc_32bit and
  7820. linux_set_pc_32bit.
  7821. * linux-crisv32-low.c (debug_threads): Remove declaration.
  7822. (cris_get_pc, cris_set_pc): Remove.
  7823. (the_low_target): Use linux_get_pc_32bit and
  7824. linux_set_pc_32bit.
  7825. * linux-low.c: Include inttypes.h.
  7826. (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
  7827. * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
  7828. * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
  7829. (the_low_target): Use linux_get_pc_32bit and
  7830. linux_set_pc_32bit.
  7831. * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
  7832. (the_low_target): Use linux_get_pc_32bit and
  7833. linux_set_pc_32bit.
  7834. * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
  7835. (the_low_target): Use linux_get_pc_32bit and
  7836. linux_set_pc_32bit.
  7837. * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
  7838. (the_low_target): Use linux_get_pc_32bit and
  7839. linux_set_pc_32bit.
  7840. * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
  7841. (the_low_target): Use linux_get_pc_32bit and
  7842. linux_set_pc_32bit.
  7843. 2016-01-18 Gary Benson <gbenson@redhat.com>
  7844. * configure.ac (AC_FUNC_FORK): New check.
  7845. * config.in: Regenerate.
  7846. * configure: Likewise.
  7847. 2016-01-14 Yao Qi <yao.qi@linaro.org>
  7848. * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
  7849. * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
  7850. * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
  7851. arm_get_next_pcs_ctor.
  7852. 2016-01-12 Josh Stone <jistone@redhat.com>
  7853. Philippe Waroquiers <philippe.waroquiers@skynet.be>
  7854. * inferiors.h: Include "gdb_vecs.h".
  7855. (struct process_info): Add syscalls_to_catch.
  7856. * inferiors.c (remove_process): Free syscalls_to_catch.
  7857. * remote-utils.c (prepare_resume_reply): Report syscall_entry and
  7858. syscall_return stops.
  7859. * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
  7860. * server.c (handle_general_set): Handle QCatchSyscalls.
  7861. (handle_query): Report support for QCatchSyscalls.
  7862. * target.h (struct target_ops): Add supports_catch_syscall.
  7863. (target_supports_catch_syscall): New macro.
  7864. * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
  7865. (struct lwp_info): Add syscall_state.
  7866. * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
  7867. Maintain syscall_state and syscalls_to_catch across exec.
  7868. (get_syscall_trapinfo): New function, proxy to the_low_target.
  7869. (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
  7870. (linux_low_filter_event): Toggle syscall_state entry/return for
  7871. syscall traps, and set it ignored for all others.
  7872. (gdb_catching_syscalls_p): New function.
  7873. (gdb_catch_this_syscall_p): New function.
  7874. (linux_wait_1): Handle SYSCALL_SIGTRAP.
  7875. (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
  7876. (linux_supports_catch_syscall): New function.
  7877. (linux_target_ops): Install it.
  7878. * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
  7879. (the_low_target): Install it.
  7880. 2016-01-12 Mike Frysinger <vapier@gentoo.org>
  7881. * acinclude.m4: Include new ../warning.m4 file.
  7882. * configure: Regenerated.
  7883. * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
  7884. 2016-01-12 Mike Frysinger <vapier@gentoo.org>
  7885. * ax.c (is_goto_target): Mark static.
  7886. * linux-low.c (register_addr): Likewise.
  7887. (linux_fetch_registers, linux_store_registers): Likewise.
  7888. * mem-break.c (any_persistent_commands): Fix old prototype.
  7889. (add_commands_to_breakpoint): Mark static.
  7890. * regcache.c (find_register_by_name): Delete unused func.
  7891. * remote-utils.c (hex_or_minus_one): Mark static.
  7892. * server.c (monitor_show_help): Mark static.
  7893. (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
  7894. handle_v_requests): Likewise.
  7895. 2016-01-12 Pedro Alves <palves@redhat.com>
  7896. Remove use of the registered trademark symbol throughout.
  7897. 2016-01-08 Yao Qi <yao.qi@linaro.org>
  7898. * remote-utils.c (getpkt): If c is '\003', call target hook
  7899. request_interrupt.
  7900. 2016-01-06 Yao Qi <yao.qi@linaro.org>
  7901. * linux-aarch32-low.h (arm_abi_breakpoint): Move to
  7902. linux-aarch32-low.c.
  7903. (arm_eabi_breakpoint, arm_breakpoint): Likewise.
  7904. (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
  7905. (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
  7906. (thumb2_breakpoint): Declare.
  7907. * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
  7908. linux-aarch32-low.h.
  7909. (arm_eabi_breakpoint, arm_breakpoint): Likewise.
  7910. (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
  7911. (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
  7912. 2016-01-01 Joel Brobecker <brobecker@adacore.com>
  7913. * gdbreplay.c (gdbreplay_version): Change copyright year in
  7914. version message.
  7915. * server.c (gdbserver_version): Likewise.
  7916. 2015-12-28 Patrick Palka <patrick@parcs.ath.cx>
  7917. * server.c (crc32_table): Delete.
  7918. (crc32): Use libiberty's xcrc32 function.
  7919. 2015-12-22 Joel Brobecker <brobecker@adacore.com>
  7920. * lynx-low.c (lynx_delete_thread_callback): New function.
  7921. (lynx_mourn): Properly delete our process and all of its
  7922. threads. Remove call to clear_inferiors.
  7923. 2015-12-22 Joel Brobecker <brobecker@adacore.com>
  7924. * target.c (thread_search_callback): Add check that
  7925. the thread_stopped target callback is not NULL before
  7926. calling it.
  7927. 2015-12-21 Yao Qi <yao.qi@linaro.org>
  7928. * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
  7929. arm breakpoint.
  7930. 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
  7931. * server.c (handle_query): Call target_supports_software_single_step.
  7932. 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
  7933. * linux-low.c (single_step): New function.
  7934. (linux_resume_one_lwp_throw): Call single_step.
  7935. (start_step_over): Likewise.
  7936. 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
  7937. * Makefile.in (SFILES): Append arch/arm-linux.c,
  7938. arch/arm-get-next-pcs.c.
  7939. (arm-linux.o): New rule.
  7940. (arm-get-next-pcs.o): New rule.
  7941. * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
  7942. arm-linux.o.
  7943. * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
  7944. to linux-aarch32-low.c.
  7945. (arm_eabi_breakpoint, arm_breakpoint): Likewise.
  7946. (arm_breakpoint_len, thumb_breakpoint): Likewise.
  7947. (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
  7948. (thumb2_breakpoint_len): Likewise.
  7949. (arm_is_thumb_mode): Make non-static.
  7950. * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
  7951. from linux-aarch32-low.c.
  7952. (arm_eabi_breakpoint, arm_breakpoint): Likewise.
  7953. (arm_breakpoint_len, thumb_breakpoint): Likewise.
  7954. (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
  7955. (thumb2_breakpoint_len): Likewise.
  7956. (arm_is_thumb_mode): New declaration.
  7957. * linux-arm-low.c: Include arch/arm-linux.h
  7958. aarch/arm-get-next-pcs.h, sys/syscall.h.
  7959. (get_next_pcs_ops): New struct.
  7960. (get_next_pcs_addr_bits_remove): New function.
  7961. (get_next_pcs_is_thumb): New function.
  7962. (get_next_pcs_read_memory_unsigned_integer): Likewise.
  7963. (arm_sigreturn_next_pc): Likewise.
  7964. (get_next_pcs_syscall_next_pc): Likewise.
  7965. (arm_gdbserver_get_next_pcs): Likewise.
  7966. (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
  7967. Initialize.
  7968. * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
  7969. * server.h: Include gdb_vecs.h.
  7970. 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
  7971. * Makefile.in (SFILES): Append common/common-regcache.c.
  7972. (OBS): Append common-regcache.o.
  7973. (common-regcache.o): New rule.
  7974. * regcache.c (init_register_cache): Initialize cache to
  7975. REG_UNAVAILABLE.
  7976. (regcache_raw_read_unsigned): New function.
  7977. * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
  7978. register_status enum.
  7979. 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
  7980. * linux-aarch64-low.c (the_low_targets): Rename
  7981. breakpoint_reinsert_addr to get_next_pcs.
  7982. * linux-arm-low.c (the_low_targets): Likewise.
  7983. * linux-bfin-low.c (the_low_targets): Likewise.
  7984. * linux-cris-low.c (the_low_targets): Likewise.
  7985. * linux-crisv32-low.c (the_low_targets): Likewise.
  7986. * linux-low.c (can_software_single_step): Likewise.
  7987. (install_software_single_step_breakpoints): New function.
  7988. (start_step_over): Use install_software_single_step_breakpoints.
  7989. * linux-low.h: New CORE_ADDR vector.
  7990. (struct linux_target_ops) Rename breakpoint_reinsert_addr to
  7991. get_next_pcs.
  7992. * linux-mips-low.c (the_low_targets): Likewise.
  7993. * linux-nios2-low.c (the_low_targets): Likewise.
  7994. * linux-sparc-low.c (the_low_targets): Likewise.
  7995. 2015-12-17 Pedro Alves <palves@redhat.com>
  7996. * linux-low.c (linux_kill_one_lwp): Remove references to
  7997. LinuxThreads.
  7998. (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
  7999. to 'kill'.
  8000. (linux_init_signals): Delete.
  8001. (initialize_low): Adjust.
  8002. * thread-db.c (thread_db_init): Remove LinuxThreads reference.
  8003. 2015-12-16 Pedro Alves <palves@redhat.com>
  8004. * configure.ac (compiler warning flags): When testing a
  8005. -Wno-foo option, check whether -Wfoo works instead.
  8006. * configure: Regenerate.
  8007. 2015-12-11 Don Breazeal <donb@codesourcery.com>
  8008. * server.c (process_serial_event): Don't exit from gdbserver
  8009. in remote mode if there are still active inferiors.
  8010. 2015-12-11 Yao Qi <yao.qi@linaro.org>
  8011. * linux-aarch64-low.c (aarch64_breakpoint_at): Call
  8012. arm_breakpoint_at if the process is 32-bit.
  8013. 2015-12-11 Yao Qi <yao.qi@linaro.org>
  8014. * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
  8015. arm breakpoint.
  8016. 2015-12-07 Yao Qi <yao.qi@linaro.org>
  8017. * configure.srv: Append arm.o to srv_tgtobj for
  8018. aarch64*-*-linux* target.
  8019. * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
  8020. from linux-arm-low.c.
  8021. (arm_eabi_breakpoint, arm_breakpoint): Likewise.
  8022. (arm_breakpoint_len, thumb_breakpoint): Likewise.
  8023. (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
  8024. (thumb2_breakpoint_len): Likewise.
  8025. (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
  8026. (arm_breakpoint_kinds): Likewise.
  8027. (arm_breakpoint_kind_from_pc): Likewise.
  8028. (arm_sw_breakpoint_from_kind): Likewise.
  8029. (arm_breakpoint_kind_from_current_state): Likewise.
  8030. * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
  8031. (arm_sw_breakpoint_from_kind): Declare.
  8032. (arm_breakpoint_kind_from_current_state): Declare.
  8033. (arm_breakpoint_at): Declare.
  8034. * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
  8035. arm_sw_breakpoint_from_kind if process is 32-bit.
  8036. (aarch64_breakpoint_kind_from_pc): New function.
  8037. (aarch64_breakpoint_kind_from_current_state): New function.
  8038. (the_low_target): Initialize fields breakpoint_kind_from_pc
  8039. and breakpoint_kind_from_current_state.
  8040. * linux-arm-low.c (arm_breakpoint_kinds): Move to
  8041. linux-aarch32-low.c.
  8042. (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
  8043. (arm_breakpoint, arm_breakpoint_len): Likewise.
  8044. (thumb_breakpoint, thumb_breakpoint_len): Likewise.
  8045. (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
  8046. (arm_is_thumb_mode): Likewise.
  8047. (arm_breakpoint_at): Likewise.
  8048. (arm_breakpoint_kind_from_pc): Likewise.
  8049. (arm_sw_breakpoint_from_kind): Likewise.
  8050. (arm_breakpoint_kind_from_current_state): Likewise.
  8051. Revert:
  8052. 2015-08-04 Yao Qi <yao.qi@linaro.org>
  8053. * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
  8054. 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
  8055. * server.c (extended_protocol): Remove "static".
  8056. * server.h (extended_protocol): Declare it.
  8057. 2015-12-04 Josh Stone <jistone@redhat.com>
  8058. * target.h (struct target_ops) <arch_setup>: Rename to ...
  8059. (struct target_ops) <post_create_inferior>: ... this.
  8060. (target_arch_setup): Rename to ...
  8061. (target_post_create_inferior): ... this, calling post_create_inferior.
  8062. * server.c (start_inferior): Update target_arch_setup calls to
  8063. target_post_create_inferior.
  8064. * linux-low.c (linux_low_ptrace_options): Forward declare.
  8065. (linux_arch_setup): Update its comment for general use.
  8066. (linux_post_create_inferior): New, run arch_setup and setup ptrace.
  8067. (struct linux_target_ops): Use linux_post_create_inferior.
  8068. * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
  8069. to post_create_inferior.
  8070. * nto-low.c (struct nto_target_ops): Likewise.
  8071. * spu-low.c (struct spu_target_ops): Likewise.
  8072. * win32-low.c (struct win32_target_ops): Likewise.
  8073. 2015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
  8074. * linux-arm-low.c: Remove duplicate arch/arm.h include.
  8075. 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
  8076. * linux-arm-low.c (arm_reinsert_addr): Remove function.
  8077. (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
  8078. * linux-cris-low.c (cris_reinsert_addr> Remove function.
  8079. (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
  8080. * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
  8081. (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
  8082. * linux-mips-low.c (mips_reinsert_addr): Remove function.
  8083. (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
  8084. * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
  8085. (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
  8086. * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
  8087. (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
  8088. 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
  8089. * linux-low.c (linux_look_up_symbols): Don't call
  8090. linux_supports_traceclone.
  8091. * linux-low.h (thread_db_init): Remove use_events argument.
  8092. * thread-db.c (thread_db_use_event): Remove global variable.
  8093. (struct thread_db) <td_thr_event_enable_p>: Remove field.
  8094. (struct thread_db) <td_create_bp>: Remove field.
  8095. (thread_db_create_event): Remove function.
  8096. (thread_db_enable_reporting): Likewise.
  8097. (find_one_thread): Don't check for thread_db_use_events.
  8098. (attach_thread): Likewise.
  8099. (thread_db_load_search): Remove td_thr_event_enable_p initialization.
  8100. (try_thread_db_load_1): Don't check for thread_db_use_events.
  8101. (thread_db_init): Remove use_events argument and thread events
  8102. handling.
  8103. (remove_thread_event_breakpoints): Remove function.
  8104. (thread_db_detach): Remove call to remove_thred_event_breakpoints.
  8105. 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
  8106. * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
  8107. New function.
  8108. (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
  8109. * linux-arm-low.c (arm_supports_hardware_single_step): New function.
  8110. (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
  8111. * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
  8112. (struct linux_target_ops) <bfin_supports_hardware_single_step>:
  8113. Initialize.
  8114. * linux-crisv32-low.c (cris_supports_hardware_single_step):
  8115. New function.
  8116. (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
  8117. * linux-low.c (can_hardware_single_step): Use
  8118. supports_hardware_single_step.
  8119. (can_software_single_step): New function.
  8120. (start_step_over): Call can_software_single_step.
  8121. (linux_supports_hardware_single_step): New function.
  8122. (struct target_ops) <supports_software_single_step>: Initialize.
  8123. * linux-low.h (struct linux_target_ops)
  8124. <supports_hardware_single_step>: Initialize.
  8125. * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
  8126. (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
  8127. * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
  8128. (struct linux_target_ops) <supports_hardware_single_step> Initialize.
  8129. * linux-s390-low.c (s390_supports_hardware_single_step): New function.
  8130. (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
  8131. * linux-sh-low.c (sh_supports_hardware_single_step): New function.
  8132. (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
  8133. * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
  8134. (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
  8135. Initialize.
  8136. * linux-tile-low.c (tile_supports_hardware_single_step): New function.
  8137. (struct linux_target_ops) <tile_supports_hardware_single_step>:
  8138. Initialize.
  8139. * linux-x86-low.c (x86_supports_hardware_single_step) New function.
  8140. (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
  8141. * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
  8142. New function.
  8143. (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
  8144. * target.h (struct target_ops): <supports_software_single_step>:
  8145. New field.
  8146. (target_supports_software_single_step): New macro.
  8147. 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
  8148. * linux-low.c (linux_wait_1): Fix pc advance condition.
  8149. * mem-break.c (reinsert_breakpoint_inserted_here): New function.
  8150. * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
  8151. 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
  8152. * linux-arm-low.c (arm_is_thumb_mode): New function.
  8153. (arm_breakpoint_at): Use arm_is_thumb_mode.
  8154. (arm_breakpoint_kind_from_current_state): New function.
  8155. (struct linux_target_ops) <breakpoint_kind_from_current_state>:
  8156. Initialize.
  8157. * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
  8158. (linux_breakpoint_kind_from_current_state): New function.
  8159. (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
  8160. * linux-low.h (struct linux_target_ops)
  8161. <breakpoint_kind_from_current_state>: New field.
  8162. * target.h (struct target_ops): Likewise.
  8163. (target_breakpoint_kind_from_current_state): New macro.
  8164. 2015-11-30 Pedro Alves <palves@redhat.com>
  8165. * linux-low.c (linux_resume): Wake up the event loop before
  8166. returning.
  8167. 2015-11-30 Pedro Alves <palves@redhat.com>
  8168. * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
  8169. check.
  8170. (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
  8171. to -1.
  8172. * target.c (struct thread_search): New structure.
  8173. (thread_search_callback): New function.
  8174. (prev_general_thread): New global.
  8175. (prepare_to_access_memory, done_accessing_memory): New functions.
  8176. * target.h (prepare_to_access_memory, done_accessing_memory):
  8177. Replace macros with function declarations.
  8178. 2015-11-30 Pedro Alves <palves@redhat.com>
  8179. PR 14618
  8180. * linux-low.c (linux_wait_1): If the last resumed thread is gone,
  8181. report TARGET_WAITKIND_NO_RESUMED.
  8182. * remote-utils.c (prepare_resume_reply): Handle
  8183. TARGET_WAITKIND_NO_RESUMED.
  8184. * server.c (report_no_resumed): New global.
  8185. (handle_query) <qSupported>: Handle "no-resumed+". Report
  8186. "no-resumed+" support.
  8187. (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
  8188. return error if the client doesn't support no-resumed events.
  8189. (push_stop_notification): New function.
  8190. (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
  8191. events if the client supports them.
  8192. 2015-11-30 Pedro Alves <palves@redhat.com>
  8193. * linux-low.c (thread_still_has_status_pending_p): Don't check
  8194. vCont;t here.
  8195. (lwp_resumed): New function.
  8196. (status_pending_p_callback): Return early if the LWP is not
  8197. supposed to be resumed.
  8198. 2015-11-30 Pedro Alves <palves@redhat.com>
  8199. * linux-low.c (handle_extended_wait): Assert that the LWP's
  8200. waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
  8201. thread create events, leave the new child's status pending.
  8202. (linux_low_filter_event): If GDB wants to hear about thread exit
  8203. events, leave the LWP marked dead and don't delete it.
  8204. (linux_wait_for_event_filtered): Don't check for thread exit.
  8205. (filter_exit_event): New function.
  8206. (linux_wait_1): Use it, when returning an exit event.
  8207. (linux_resume_one_lwp_throw): Assert that the LWP's
  8208. waitstatus is TARGET_WAITKIND_IGNORE.
  8209. * remote-utils.c (prepare_resume_reply): Handle
  8210. TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
  8211. * server.c (report_thread_events): New global.
  8212. (handle_general_set): Handle QThreadEvents.
  8213. (handle_query) <qSupported>: Handle and report QThreadEvents+;
  8214. (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
  8215. TARGET_WAITKIND_THREAD_EXITED.
  8216. * server.h (report_thread_events): Declare.
  8217. 2015-11-30 Pedro Alves <palves@redhat.com>
  8218. * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
  8219. the thread's last_resume_kind was resume_stop.
  8220. 2015-11-30 Pedro Alves <palves@redhat.com>
  8221. * linux-low.c (linux_attach): In non-stop mode, wait for one stop
  8222. before returning.
  8223. 2015-11-30 Pedro Alves <palves@redhat.com>
  8224. * server.c (handle_v_requests): Handle vCtrlC.
  8225. 2015-11-30 Pedro Alves <palves@redhat.com>
  8226. * gdbthread.h (find_any_thread_of_pid): Declare.
  8227. * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
  8228. functions.
  8229. * server.c (handle_query): If current_thread is NULL, look for
  8230. another thread of the selected process.
  8231. 2015-11-26 Daniel Colascione <dancol@dancol.org>
  8232. Simon Marchi <simon.marchi@ericsson.com>
  8233. * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
  8234. * server.c (handle_qxfer_threads_worker): Refactor to include thread
  8235. name in reply.
  8236. * target.h (struct target_ops) <thread_name>: New field.
  8237. (target_thread_name): New macro.
  8238. 2015-11-23 Joel Brobecker <brobecker@adacore.com>
  8239. * regcache.h (regcache_invalidate_pid): Add declaration.
  8240. * regcache.c (regcache_invalidate_pid): New function, extracted
  8241. from regcache_invalidate.
  8242. (regcache_invalidate): Reimplement using regcache_invalidate_pid.
  8243. Add trivial documentation comment.
  8244. * lynx-low.c: Use regcache_invalidate_pid instead of
  8245. regcache_invalidate.
  8246. 2015-11-23 Joel Brobecker <brobecker@adacore.com>
  8247. * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
  8248. and Elf64_auxv_t if the target is Android.
  8249. 2015-11-22 Doug Evans <xdje42@gmail.com>
  8250. * target.h: #include <sys/types.h>.
  8251. 2015-11-19 Pedro Alves <palves@redhat.com>
  8252. * linux-low.c (linux_process_qsupported): Change prototype.
  8253. Adjust.
  8254. * linux-low.h (struct linux_target_ops) <process_qsupported>:
  8255. Change prototype.
  8256. * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
  8257. and adjust to loop over all features.
  8258. * server.c (handle_query) <qSupported>: Adjust to call
  8259. target_process_qsupported once, passing it a vector of unprocessed
  8260. features.
  8261. * target.h (struct target_ops) <process_qsupported>: Change
  8262. prototype.
  8263. (target_process_qsupported): Adjust.
  8264. 2015-11-19 Pedro Alves <palves@redhat.com>
  8265. * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
  8266. mode.
  8267. * configure: Regenerate.
  8268. 2015-11-19 Pedro Alves <palves@redhat.com>
  8269. * configure: Regenerate.
  8270. 2015-11-19 Yao Qi <yao.qi@linaro.org>
  8271. * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
  8272. type to uint32_t.
  8273. 2015-11-19 Yao Qi <yao.qi@linaro.org>
  8274. * linux-aarch64-low.c (enum aarch64_operand_type): New.
  8275. (struct aarch64_operand): Move enum out.
  8276. 2015-11-19 Yao Qi <yao.qi@linaro.org>
  8277. * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
  8278. struct user_fpsimd_state *.
  8279. (aarch64_store_fpregset): Likewise.
  8280. 2015-11-19 Yao Qi <yao.qi@linaro.org>
  8281. * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
  8282. struct user_pt_regs *.
  8283. (aarch64_store_gregset): Likewise.
  8284. 2015-11-18 Pedro Alves <palves@redhat.com>
  8285. * Makefile.in (all_object_files): Add $IPA_OBJS.
  8286. 2015-11-17 Pedro Alves <palves@redhat.com>
  8287. * win32-low.c (win32_resume): Use gdb_signal_from_host,
  8288. GDB_SIGNAL_0 and gdb_signal_to_string.
  8289. 2015-11-17 Pedro Alves <palves@redhat.com>
  8290. * win32-low.c (handle_output_debug_string): Remove parameter.
  8291. (win32_kill): Remove our_status local and adjust call to
  8292. handle_output_debug_string.
  8293. (get_child_debug_event): Adjust call to
  8294. handle_output_debug_string.
  8295. 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
  8296. * linux-mips-low.c (mips_fill_gregset): Add cast.
  8297. (mips_store_gregset): Likewise.
  8298. (mips_fill_fpregset): Likewise.
  8299. (mips_store_fpregset): Likewise.
  8300. 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
  8301. * linux-mips-low.c (mips_add_watchpoint): Rename private to
  8302. priv.
  8303. 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
  8304. * linux-mips-low.c (mips_linux_new_thread): Change type of
  8305. watch_type to enum target_hw_bp_type.
  8306. 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
  8307. * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
  8308. Change return type to arm_hwbp_type.
  8309. 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
  8310. * linux-aarch32-low.c (arm_fill_gregset): Add cast.
  8311. (arm_store_gregset): Likewise.
  8312. * linux-arm-low.c (arm_get_hwcap): Likewise.
  8313. (arm_read_description): Likewise.
  8314. 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
  8315. * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
  8316. 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
  8317. * linux-ppc-low.c (ppc_get_hwcap): Add cast.
  8318. (ppc_fill_vsxregset): Likewise.
  8319. (ppc_store_vsxregset): Likewise.
  8320. (ppc_fill_vrregset): Likewise.
  8321. (ppc_store_vrregset): Likewise.
  8322. (ppc_fill_evrregset): Likewise.
  8323. (ppc_store_evrregset): Likewise.
  8324. 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
  8325. * linux-ppc-low.c (ppc_usrregs_info): Remove
  8326. forward-declaration.
  8327. (ppc_arch_setup): Move lower in file.
  8328. 2015-10-30 Simon Marchi <simon.marchi@ericsson.com>
  8329. * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
  8330. (ps_pdwrite): Likewise.
  8331. 2015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
  8332. * linux-arm-low.c (arm_new_thread): Move pointer dereference
  8333. to after assert checks.
  8334. 2015-10-29 Simon Marchi <simon.marchi@ericsson.com>
  8335. * proc-service.c (ps_pdread): Add/adjust casts.
  8336. (ps_pdwrite): Add/adjust casts.
  8337. 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
  8338. * server.c (handle_search_memory_1): Cast return value of
  8339. memmem.
  8340. 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
  8341. * server.c (write_qxfer_response): Change type of data to
  8342. gdb_byte *.
  8343. 2015-10-29 Pedro Alves <palves@redhat.com>
  8344. * mem-break.c (Z_packet_to_bkpt_type): Add cast.
  8345. 2015-10-29 Pedro Alves <palves@redhat.com>
  8346. * tracepoint.c (clear_installed_tracepoints): Add casts.
  8347. 2015-10-29 Pedro Alves <palves@redhat.com>
  8348. * server.c (handle_v_cont, process_serial_event): Add enum
  8349. gdb_signal casts to signal parsing code.
  8350. 2015-10-29 Pedro Alves <palves@redhat.com>
  8351. * linux-low.h (NULL_REGSET): Define.
  8352. * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
  8353. * linux-arm-low.c (arm_regsets): Likewise.
  8354. * linux-crisv32-low.c (cris_regsets): Likewise.
  8355. * linux-m68k-low.c (m68k_regsets): Likewise.
  8356. * linux-mips-low.c (mips_regsets): Likewise.
  8357. * linux-nios2-low.c (nios2_regsets): Likewise.
  8358. * linux-ppc-low.c (ppc_regsets): Likewise.
  8359. * linux-s390-low.c (s390_regsets): Likewise.
  8360. * linux-sh-low.c (sh_regsets): Likewise.
  8361. * linux-sparc-low.c (sparc_regsets): Likewise.
  8362. * linux-tic6x-low.c (tic6x_regsets): Likewise.
  8363. * linux-tile-low.c (tile_regsets): Likewise.
  8364. * linux-x86-low.c (x86_regsets): Likewise.
  8365. * linux-xtensa-low.c (xtensa_regsets): Likewise.
  8366. 2015-10-29 Pedro Alves <palves@redhat.com>
  8367. * linux-low.h (NULL_REGSET): Define.
  8368. * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
  8369. * linux-arm-low.c (arm_regsets): Likewise.
  8370. * linux-crisv32-low.c (cris_regsets): Likewise.
  8371. * linux-m68k-low.c (m68k_regsets): Likewise.
  8372. * linux-mips-low.c (mips_regsets): Likewise.
  8373. * linux-nios2-low.c (nios2_regsets): Likewise.
  8374. * linux-ppc-low.c (ppc_regsets): Likewise.
  8375. * linux-s390-low.c (s390_regsets): Likewise.
  8376. * linux-sh-low.c (sh_regsets): Likewise.
  8377. * linux-sparc-low.c (sparc_regsets): Likewise.
  8378. * linux-tic6x-low.c (tic6x_regsets): Likewise.
  8379. * linux-tile-low.c (tile_regsets): Likewise.
  8380. * linux-x86-low.c (x86_regsets): Likewise.
  8381. * linux-xtensa-low.c (xtensa_regsets): Likewise.
  8382. 2015-10-26 Doug Evans <dje@google.com>
  8383. * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
  8384. 2015-10-26 Doug Evans <dje@google.com>
  8385. * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
  8386. 2015-10-26 Doug Evans <dje@google.com>
  8387. * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
  8388. for debug_printf.
  8389. (attach_thread, find_new_threads_callback): Ditto.
  8390. 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
  8391. * mem-break.h (set_breakpoint_data): Remove.
  8392. 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
  8393. * nto-low.c (nto_sw_breakpoint_from_kind): New function.
  8394. (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
  8395. (initialize_low): Remove set_breakpoint_data call.
  8396. * spu-low.c (spu_sw_breakpoint_from_kind): New function.
  8397. (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
  8398. (initialize_low): Remove set_breakpoint_data call.
  8399. * win32-low.c (win32_sw_breakpoint_from_kind): New function.
  8400. (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
  8401. (initialize_low): Remove set_breakpoint_data call.
  8402. 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
  8403. * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
  8404. * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
  8405. * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
  8406. * target.h (target_breakpoint_kind_from_pc): New macro.
  8407. 2015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
  8408. * linux-low.c (default_breakpoint_kind_from_pc): New function.
  8409. (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
  8410. the default breakpoint kind.
  8411. 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
  8412. * linux-arm-low.c (arm_supports_z_point_type): Add software
  8413. breakpoint support.
  8414. 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
  8415. * linux-arm-low.c: Refactor breakpoint definitions.
  8416. (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
  8417. (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
  8418. 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
  8419. * Makefile.in: Add arm.c/o.
  8420. * configure.srv: Likewise.
  8421. * linux-arm-low.c (arm_breakpoint_kinds): New enum.
  8422. (arm_breakpoint_kind_from_pc): New function.
  8423. (arm_sw_breakpoint_from_kind): Return proper kind.
  8424. (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
  8425. 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
  8426. * linux-low.c (initialize_low): Ajdust for breakpoint global variables
  8427. removal.
  8428. * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
  8429. (struct raw_breakpoint) <size>: Remove.
  8430. (struct raw_breakpoint) <kind>: Add.
  8431. (bp_size): New function.
  8432. (bp_opcode): Likewise.
  8433. (find_raw_breakpoint_at): Adjust for kind.
  8434. (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
  8435. (remove_memory_breakpoint): Adjust for kind call bp_size.
  8436. (set_raw_breakpoint_at): Adjust for kind.
  8437. (set_breakpoint): Likewise.
  8438. (set_breakpoint_at): Call breakpoint_kind_from_pc.
  8439. (delete_raw_breakpoint): Adjust for kind.
  8440. (delete_breakpoint): Likewise.
  8441. (find_gdb_breakpoint): Likewise.
  8442. (set_gdb_breakpoint_1): Likewise.
  8443. (set_gdb_breakpoint): Likewise.
  8444. (delete_gdb_breakpoint_1): Likewise.
  8445. (delete_gdb_breakpoint): Likewise.
  8446. (uninsert_raw_breakpoint): Likewise.
  8447. (reinsert_raw_breakpoint): Likewise.
  8448. (set_breakpoint_data): Remove.
  8449. (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
  8450. (check_mem_read): Adjust for kind call bp_size.
  8451. (check_mem_write): Adjust for kind call bp_size,bp_opcode.
  8452. (clone_one_breakpoint): Adjust for kind.
  8453. * mem-break.h (set_gdb_breakpoint): Likewise.
  8454. (delete_gdb_breakpoint): Likewise.
  8455. * server.c (process_serial_event): Likewise.
  8456. 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
  8457. * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
  8458. (struct linux_target_ops) <breakpoint>: Remove.
  8459. (struct linux_target_ops) <breakpoint_len>: Remove.
  8460. (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
  8461. (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
  8462. * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
  8463. (arm_sw_breakpoint_from_kind): New function.
  8464. * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
  8465. (struct linux_target_ops) <breakpoint>: Remove.
  8466. (struct linux_target_ops) <breakpoint_len>: Remove.
  8467. (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
  8468. (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
  8469. * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
  8470. (struct linux_target_ops) <breakpoint>: Remove.
  8471. (struct linux_target_ops) <breakpoint_len>: Remove.
  8472. (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
  8473. (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
  8474. * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
  8475. (struct linux_target_ops) <breakpoint>: Remove.
  8476. (struct linux_target_ops) <breakpoint_len>: Remove.
  8477. (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
  8478. (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
  8479. * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
  8480. and sw_breakpoint_from_kind to increment the pc.
  8481. (linux_breakpoint_kind_from_pc): New function.
  8482. (linux_sw_breakpoint_from_kind): New function.
  8483. (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
  8484. (initialize_low): Call breakpoint_kind_from_pc and
  8485. sw_breakpoint_from_kind to replace breakpoint_data/len.
  8486. * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
  8487. New field.
  8488. (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
  8489. * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
  8490. (struct linux_target_ops) <breakpoint>: Remove.
  8491. (struct linux_target_ops) <breakpoint_len>: Remove.
  8492. (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
  8493. (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
  8494. * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
  8495. (struct linux_target_ops) <breakpoint>: Remove.
  8496. (struct linux_target_ops) <breakpoint_len>: Remove.
  8497. (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
  8498. (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
  8499. * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
  8500. (struct linux_target_ops) <breakpoint>: Remove.
  8501. (struct linux_target_ops) <breakpoint_len>: Remove.
  8502. (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
  8503. (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
  8504. * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
  8505. (struct linux_target_ops) <breakpoint>: Remove.
  8506. (struct linux_target_ops) <breakpoint_len>: Remove.
  8507. (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
  8508. (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
  8509. * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
  8510. (struct linux_target_ops) <breakpoint>: Remove.
  8511. (struct linux_target_ops) <breakpoint_len>: Remove.
  8512. (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
  8513. (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
  8514. * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
  8515. (struct linux_target_ops) <breakpoint>: Remove.
  8516. (struct linux_target_ops) <breakpoint_len>: Remove.
  8517. (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
  8518. (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
  8519. * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
  8520. (struct linux_target_ops) <breakpoint>: Remove.
  8521. (struct linux_target_ops) <breakpoint_len>: Remove.
  8522. (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
  8523. (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
  8524. * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
  8525. (struct linux_target_ops) <breakpoint>: Remove.
  8526. (struct linux_target_ops) <breakpoint_len>: Remove.
  8527. (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
  8528. (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
  8529. * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
  8530. (struct linux_target_ops) <breakpoint>: Remove.
  8531. (struct linux_target_ops) <breakpoint_len>: Remove.
  8532. (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
  8533. (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
  8534. * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
  8535. * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
  8536. (struct linux_target_ops) <breakpoint>: Remove.
  8537. (struct linux_target_ops) <breakpoint_len>: Remove.
  8538. (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
  8539. (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
  8540. * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
  8541. (struct linux_target_ops) <breakpoint>: Remove.
  8542. (struct linux_target_ops) <breakpoint_len>: Remove.
  8543. (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
  8544. (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
  8545. 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
  8546. * linux-cris-low.c (cris_get_pc): Remove void arg.
  8547. 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
  8548. * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
  8549. variable name.
  8550. 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
  8551. * inferiors.c (thread_pid_matches_callback): New function.
  8552. (find_thread_process): New function.
  8553. (remove_thread): Reset current_thread.
  8554. (remove_process): Assert threads have been removed first.
  8555. 2015-10-15 Yao Qi <yao.qi@linaro.org>
  8556. * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
  8557. if it is 3.
  8558. (aarch64_remove_point): Likewise.
  8559. * regcache.c (regcache_register_size): New function.
  8560. 2015-10-12 Yao Qi <yao.qi@linaro.org>
  8561. * linux-aarch64-low.c: Update all callers as emit_load_store
  8562. is renamed to aarch64_emit_load_store.
  8563. 2015-10-12 Yao Qi <yao.qi@linaro.org>
  8564. * linux-aarch64-low.c: Update all callers of function renaming
  8565. from emit_insn to aarch64_emit_insn.
  8566. 2015-10-12 Yao Qi <yao.qi@linaro.org>
  8567. * linux-aarch64-low.c (enum aarch64_opcodes): Move to
  8568. arch/aarch64-insn.h.
  8569. (struct aarch64_memory_operand): Likewise.
  8570. (ENCODE): Likewise.
  8571. (emit_insn): Move to arch/aarch64-insn.c.
  8572. (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
  8573. (emit_load_store): Move to arch/aarch64-insn.c.
  8574. (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
  8575. (can_encode_int32): Remove.
  8576. 2015-10-12 Yao Qi <yao.qi@linaro.org>
  8577. * linux-aarch64-low.c (extract_signed_bitfield): Remove.
  8578. (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
  8579. (aarch64_relocate_instruction): Likewise.
  8580. (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
  8581. (struct aarch64_insn_visitor): Likewise.
  8582. 2015-10-12 Yao Qi <yao.qi@linaro.org>
  8583. * linux-aarch64-low.c (struct aarch64_insn_data): New.
  8584. (struct aarch64_insn_visitor): New.
  8585. (struct aarch64_insn_relocation_data): New.
  8586. (aarch64_ftrace_insn_reloc_b): New function.
  8587. (aarch64_ftrace_insn_reloc_b_cond): Likewise.
  8588. (aarch64_ftrace_insn_reloc_cb): Likewise.
  8589. (aarch64_ftrace_insn_reloc_tb): Likewise.
  8590. (aarch64_ftrace_insn_reloc_adr): Likewise.
  8591. (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
  8592. (aarch64_ftrace_insn_reloc_others): Likewise.
  8593. (visitor): New.
  8594. (aarch64_relocate_instruction): Use visitor.
  8595. 2015-10-12 Yao Qi <yao.qi@linaro.org>
  8596. * linux-aarch64-low.c (aarch64_relocate_instruction): Return
  8597. int. Add argument buf.
  8598. (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
  8599. aarch64_relocate_instruction.
  8600. 2015-10-12 Yao Qi <yao.qi@linaro.org>
  8601. * linux-aarch64-low.c (aarch64_relocate_instruction): Add
  8602. argument insn. Remove local variable insn. Don't call
  8603. target_read_uint32.
  8604. (aarch64_install_fast_tracepoint_jump_pad): Call
  8605. target_read_uint32.
  8606. 2015-09-30 Yao Qi <yao.qi@linaro.org>
  8607. * linux-aarch64-low.c (emit_movk): Shorten a long line.
  8608. (emit_load_store_pair): Likewise.
  8609. 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
  8610. * dll.c (match_dll): Add cast(s).
  8611. (unloaded_dll): Likewise.
  8612. * linux-low.c (second_thread_of_pid_p): Likewise.
  8613. (delete_lwp_callback): Likewise.
  8614. (count_events_callback): Likewise.
  8615. (select_event_lwp_callback): Likewise.
  8616. (linux_set_resume_request): Likewise.
  8617. * server.c (accumulate_file_name_length): Likewise.
  8618. (emit_dll_description): Likewise.
  8619. (handle_qxfer_threads_worker): Likewise.
  8620. (visit_actioned_threads): Likewise.
  8621. * thread-db.c (any_thread_of): Likewise.
  8622. * tracepoint.c (same_process_p): Likewise.
  8623. (match_blocktype): Likewise.
  8624. (build_traceframe_info_xml): Likewise.
  8625. 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
  8626. * ax.c (gdb_parse_agent_expr): Add cast to allocation result
  8627. assignment.
  8628. (gdb_unparse_agent_expr): Likewise.
  8629. * hostio.c (require_data): Likewise.
  8630. (handle_pread): Likewise.
  8631. * linux-low.c (disable_regset): Likewise.
  8632. (fetch_register): Likewise.
  8633. (store_register): Likewise.
  8634. (get_dynamic): Likewise.
  8635. (linux_qxfer_libraries_svr4): Likewise.
  8636. * mem-break.c (delete_fast_tracepoint_jump): Likewise.
  8637. (set_fast_tracepoint_jump): Likewise.
  8638. (uninsert_fast_tracepoint_jumps_at): Likewise.
  8639. (reinsert_fast_tracepoint_jumps_at): Likewise.
  8640. (validate_inserted_breakpoint): Likewise.
  8641. (clone_agent_expr): Likewise.
  8642. * regcache.c (init_register_cache): Likewise.
  8643. * remote-utils.c (putpkt_binary_1): Likewise.
  8644. (decode_M_packet): Likewise.
  8645. (decode_X_packet): Likewise.
  8646. (look_up_one_symbol): Likewise.
  8647. (relocate_instruction): Likewise.
  8648. (monitor_output): Likewise.
  8649. * server.c (handle_search_memory): Likewise.
  8650. (handle_qxfer_exec_file): Likewise.
  8651. (handle_qxfer_libraries): Likewise.
  8652. (handle_qxfer): Likewise.
  8653. (handle_query): Likewise.
  8654. (handle_v_cont): Likewise.
  8655. (handle_v_run): Likewise.
  8656. (captured_main): Likewise.
  8657. * target.c (write_inferior_memory): Likewise.
  8658. * thread-db.c (try_thread_db_load_from_dir): Likewise.
  8659. * tracepoint.c (init_trace_buffer): Likewise.
  8660. (add_tracepoint_action): Likewise.
  8661. (add_traceframe): Likewise.
  8662. (add_traceframe_block): Likewise.
  8663. (cmd_qtdpsrc): Likewise.
  8664. (cmd_qtdv): Likewise.
  8665. (cmd_qtstatus): Likewise.
  8666. (response_source): Likewise.
  8667. (response_tsv): Likewise.
  8668. (cmd_qtnotes): Likewise.
  8669. (gdb_collect): Likewise.
  8670. (initialize_tracepoint): Likewise.
  8671. 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
  8672. * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
  8673. (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
  8674. <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
  8675. <NOP>: New.
  8676. (enum aarch64_condition_codes): New enum.
  8677. (w0): New static global.
  8678. (fp): Likewise.
  8679. (lr): Likewise.
  8680. (struct aarch64_memory_operand) <type>: New
  8681. MEMORY_OPERAND_POSTINDEX type.
  8682. (postindex_memory_operand): New helper function.
  8683. (emit_ret): New function.
  8684. (emit_load_store_pair): New function, factored out of emit_stp
  8685. with support for MEMORY_OPERAND_POSTINDEX.
  8686. (emit_stp): Rewrite using emit_load_store_pair.
  8687. (emit_ldp): New function.
  8688. (emit_load_store): Likewise.
  8689. (emit_ldr): Mention post-index instruction in comment.
  8690. (emit_ldrh): New function.
  8691. (emit_ldrb): New function.
  8692. (emit_ldrsw): Mention post-index instruction in comment.
  8693. (emit_str): Likewise.
  8694. (emit_subs): New function.
  8695. (emit_cmp): Likewise.
  8696. (emit_and): Likewise.
  8697. (emit_orr): Likewise.
  8698. (emit_orn): Likewise.
  8699. (emit_eor): Likewise.
  8700. (emit_mvn): Likewise.
  8701. (emit_lslv): Likewise.
  8702. (emit_lsrv): Likewise.
  8703. (emit_asrv): Likewise.
  8704. (emit_mul): Likewise.
  8705. (emit_sbfm): Likewise.
  8706. (emit_sbfx): Likewise.
  8707. (emit_ubfm): Likewise.
  8708. (emit_ubfx): Likewise.
  8709. (emit_csinc): Likewise.
  8710. (emit_cset): Likewise.
  8711. (emit_nop): Likewise.
  8712. (emit_ops_insns): New helper function.
  8713. (emit_pop): Likewise.
  8714. (emit_push): Likewise.
  8715. (aarch64_emit_prologue): New function.
  8716. (aarch64_emit_epilogue): Likewise.
  8717. (aarch64_emit_add): Likewise.
  8718. (aarch64_emit_sub): Likewise.
  8719. (aarch64_emit_mul): Likewise.
  8720. (aarch64_emit_lsh): Likewise.
  8721. (aarch64_emit_rsh_signed): Likewise.
  8722. (aarch64_emit_rsh_unsigned): Likewise.
  8723. (aarch64_emit_ext): Likewise.
  8724. (aarch64_emit_log_not): Likewise.
  8725. (aarch64_emit_bit_and): Likewise.
  8726. (aarch64_emit_bit_or): Likewise.
  8727. (aarch64_emit_bit_xor): Likewise.
  8728. (aarch64_emit_bit_not): Likewise.
  8729. (aarch64_emit_equal): Likewise.
  8730. (aarch64_emit_less_signed): Likewise.
  8731. (aarch64_emit_less_unsigned): Likewise.
  8732. (aarch64_emit_ref): Likewise.
  8733. (aarch64_emit_if_goto): Likewise.
  8734. (aarch64_emit_goto): Likewise.
  8735. (aarch64_write_goto_address): Likewise.
  8736. (aarch64_emit_const): Likewise.
  8737. (aarch64_emit_call): Likewise.
  8738. (aarch64_emit_reg): Likewise.
  8739. (aarch64_emit_pop): Likewise.
  8740. (aarch64_emit_stack_flush): Likewise.
  8741. (aarch64_emit_zero_ext): Likewise.
  8742. (aarch64_emit_swap): Likewise.
  8743. (aarch64_emit_stack_adjust): Likewise.
  8744. (aarch64_emit_int_call_1): Likewise.
  8745. (aarch64_emit_void_call_2): Likewise.
  8746. (aarch64_emit_eq_goto): Likewise.
  8747. (aarch64_emit_ne_goto): Likewise.
  8748. (aarch64_emit_lt_goto): Likewise.
  8749. (aarch64_emit_le_goto): Likewise.
  8750. (aarch64_emit_gt_goto): Likewise.
  8751. (aarch64_emit_ge_got): Likewise.
  8752. (aarch64_emit_ops_impl): New static global variable.
  8753. (aarch64_emit_ops): New target function, return
  8754. &aarch64_emit_ops_impl.
  8755. (struct linux_target_ops): Install it.
  8756. 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
  8757. * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
  8758. * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
  8759. aarch64-ipa.o.
  8760. * linux-aarch64-ipa.c: New file.
  8761. * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
  8762. and endian.h.
  8763. (aarch64_get_thread_area): New target method.
  8764. (extract_signed_bitfield): New helper function.
  8765. (aarch64_decode_ldr_literal): New function.
  8766. (enum aarch64_opcodes): New enum.
  8767. (struct aarch64_register): New struct.
  8768. (struct aarch64_operand): New struct.
  8769. (x0): New static global.
  8770. (x1): Likewise.
  8771. (x2): Likewise.
  8772. (x3): Likewise.
  8773. (x4): Likewise.
  8774. (w2): Likewise.
  8775. (ip0): Likewise.
  8776. (sp): Likewise.
  8777. (xzr): Likewise.
  8778. (aarch64_register): New helper function.
  8779. (register_operand): Likewise.
  8780. (immediate_operand): Likewise.
  8781. (struct aarch64_memory_operand): New struct.
  8782. (offset_memory_operand): New helper function.
  8783. (preindex_memory_operand): Likewise.
  8784. (enum aarch64_system_control_registers): New enum.
  8785. (ENCODE): New macro.
  8786. (emit_insn): New helper function.
  8787. (emit_b): New function.
  8788. (emit_bcond): Likewise.
  8789. (emit_cb): Likewise.
  8790. (emit_tb): Likewise.
  8791. (emit_blr): Likewise.
  8792. (emit_stp): Likewise.
  8793. (emit_ldp_q_offset): Likewise.
  8794. (emit_stp_q_offset): Likewise.
  8795. (emit_load_store): Likewise.
  8796. (emit_ldr): Likewise.
  8797. (emit_ldrsw): Likewise.
  8798. (emit_str): Likewise.
  8799. (emit_ldaxr): Likewise.
  8800. (emit_stxr): Likewise.
  8801. (emit_stlr): Likewise.
  8802. (emit_data_processing_reg): Likewise.
  8803. (emit_data_processing): Likewise.
  8804. (emit_add): Likewise.
  8805. (emit_sub): Likewise.
  8806. (emit_mov): Likewise.
  8807. (emit_movk): Likewise.
  8808. (emit_mov_addr): Likewise.
  8809. (emit_mrs): Likewise.
  8810. (emit_msr): Likewise.
  8811. (emit_sevl): Likewise.
  8812. (emit_wfe): Likewise.
  8813. (append_insns): Likewise.
  8814. (can_encode_int32_in): New helper function.
  8815. (aarch64_relocate_instruction): New function.
  8816. (aarch64_install_fast_tracepoint_jump_pad): Likewise.
  8817. (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
  8818. (struct linux_target_ops): Install aarch64_get_thread_area,
  8819. aarch64_install_fast_tracepoint_jump_pad and
  8820. aarch64_get_min_fast_tracepoint_insn_len.
  8821. 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
  8822. * Makefile.in (aarch64-insn.o): New rule.
  8823. * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
  8824. 2015-09-21 Yao Qi <yao.qi@linaro.org>
  8825. * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
  8826. 2015-09-21 Yao Qi <yao.qi@linaro.org>
  8827. * tracepoint.c (max_jump_pad_size): Remove.
  8828. 2015-09-18 Yao Qi <yao.qi@linaro.org>
  8829. * linux-aarch64-low.c: Don't include sys/uio.h.
  8830. (ps_get_thread_area): Call aarch64_ps_get_thread_area.
  8831. 2015-09-16 Wei-cheng Wang <cole945@gmail.com>
  8832. * tracepoint.c (eval_result_type): Change prototype.
  8833. (condition_true_at_tracepoint): Fix argument to compiled_cond.
  8834. 2015-09-15 Pedro Alves <palves@redhat.com>
  8835. * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
  8836. Check whether to report exec events instead of checking whether
  8837. multiprocess is enabled.
  8838. 2015-09-15 Pedro Alves <palves@redhat.com>
  8839. PR remote/18965
  8840. * remote-utils.c (prepare_resume_reply): Merge
  8841. TARGET_WAITKIND_VFORK_DONE switch case with the
  8842. TARGET_WAITKIND_FORKED case.
  8843. 2015-09-15 Yao Qi <yao.qi@linaro.org>
  8844. * server.c (handle_query): Check string comparison using
  8845. "else if" instead of "if".
  8846. 2015-09-15 Yao Qi <yao.qi@linaro.org>
  8847. * server.c (vCont_supported): New global variable.
  8848. (handle_query): Set vCont_supported to 1 if "vContSupported+"
  8849. matches. Append ";vContSupported+" to own_buf.
  8850. (handle_v_requests): Append ";s;S" to own_buf if target supports
  8851. hardware single step or vCont_supported is false.
  8852. (capture_main): Set vCont_supported to zero.
  8853. 2015-09-15 Yao Qi <yao.qi@linaro.org>
  8854. * linux-low.c (linux_supports_conditional_breakpoints): Rename
  8855. it to ...
  8856. (linux_supports_hardware_single_step): ... New function.
  8857. (linux_target_ops): Update.
  8858. * lynx-low.c (lynx_target_ops): Set field
  8859. supports_hardware_single_step to target_can_do_hardware_single_step.
  8860. * nto-low.c (nto_target_ops): Likewise.
  8861. * spu-low.c (spu_target_ops): Likewise.
  8862. * win32-low.c (win32_target_ops): Likewise.
  8863. * target.c (target_can_do_hardware_single_step): New function.
  8864. * target.h (struct target_ops) <supports_conditional_breakpoints>:
  8865. Remove. <supports_hardware_single_step>: New field.
  8866. (target_supports_conditional_breakpoints): Remove.
  8867. (target_supports_hardware_single_step): New macro.
  8868. (target_can_do_hardware_single_step): Declare.
  8869. * server.c (handle_query): Use target_supports_hardware_single_step
  8870. instead of target_supports_conditional_breakpoints.
  8871. 2015-09-15 Yao Qi <yao.qi@linaro.org>
  8872. * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
  8873. function.
  8874. (struct linux_target_ops the_low_target): Install
  8875. aarch64_linux_siginfo_fixup.
  8876. 2015-09-11 Don Breazeal <donb@codesourcery.com>
  8877. Luis Machado <lgustavo@codesourcery.com>
  8878. * linux-low.c (linux_mourn): Static declaration.
  8879. (linux_arch_setup): Move in front of
  8880. handle_extended_wait.
  8881. (linux_arch_setup_thread): New function.
  8882. (handle_extended_wait): Handle exec events. Call
  8883. linux_arch_setup_thread. Make event_lwp argument a
  8884. pointer-to-a-pointer.
  8885. (check_zombie_leaders): Do not check stopped threads.
  8886. (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
  8887. (linux_low_filter_event): Add lwp and thread for exec'ing
  8888. non-leader thread if leader thread has been deleted.
  8889. Refactor code into linux_arch_setup_thread and call it.
  8890. Pass child lwp pointer by reference to handle_extended_wait.
  8891. (linux_wait_for_event_filtered): Update comment.
  8892. (linux_wait_1): Prevent clobbering exec event status.
  8893. (linux_supports_exec_events): New function.
  8894. (linux_target_ops) <supports_exec_events>: Initialize new member.
  8895. * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
  8896. new member.
  8897. * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
  8898. * server.c (report_exec_events): New global variable.
  8899. (handle_query): Handle qSupported query for exec-events feature.
  8900. (captured_main): Initialize report_exec_events.
  8901. * server.h (report_exec_events): Declare new global variable.
  8902. * target.h (struct target_ops) <supports_exec_events>: New
  8903. member.
  8904. (target_supports_exec_events): New macro.
  8905. * win32-low.c (win32_target_ops) <supports_exec_events>:
  8906. Initialize new member.
  8907. 2015-09-09 Markus Metzger <markus.t.metzger@intel.com>
  8908. * linux-low.c (linux_low_enable_btrace): Remove.
  8909. (linux_target_ops): Replace linux_low_enable_btrace with
  8910. linux_enable_btrace.
  8911. 2015-09-03 Yao Qi <yao.qi@linaro.org>
  8912. * linux-aarch64-low.c (aarch64_insert_point): Call
  8913. aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
  8914. returns true.
  8915. 2015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
  8916. * linux-low.c (check_stopped_by_breakpoint): Use
  8917. GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
  8918. 2015-08-27 Pedro Alves <palves@redhat.com>
  8919. * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
  8920. 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
  8921. * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
  8922. the XNEW-family equivalent.
  8923. (compile_bytecodes): Likewise.
  8924. * dll.c (loaded_dll): Likewise.
  8925. * event-loop.c (append_callback_event): Likewise.
  8926. (create_file_handler): Likewise.
  8927. (create_file_event): Likewise.
  8928. * hostio.c (handle_open): Likewise.
  8929. * inferiors.c (add_thread): Likewise.
  8930. (add_process): Likewise.
  8931. * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
  8932. * linux-arm-low.c (arm_new_process): Likewise.
  8933. (arm_new_thread): Likewise.
  8934. * linux-low.c (add_to_pid_list): Likewise.
  8935. (linux_add_process): Likewise.
  8936. (handle_extended_wait): Likewise.
  8937. (add_lwp): Likewise.
  8938. (enqueue_one_deferred_signal): Likewise.
  8939. (enqueue_pending_signal): Likewise.
  8940. (linux_resume_one_lwp_throw): Likewise.
  8941. (linux_resume_one_thread): Likewise.
  8942. (linux_read_memory): Likewise.
  8943. (linux_write_memory): Likewise.
  8944. * linux-mips-low.c (mips_linux_new_process): Likewise.
  8945. (mips_linux_new_thread): Likewise.
  8946. (mips_add_watchpoint): Likewise.
  8947. * linux-x86-low.c (initialize_low_arch): Likewise.
  8948. * lynx-low.c (lynx_add_process): Likewise.
  8949. * mem-break.c (set_raw_breakpoint_at): Likewise.
  8950. (set_breakpoint): Likewise.
  8951. (add_condition_to_breakpoint): Likewise.
  8952. (add_commands_to_breakpoint): Likewise.
  8953. (clone_agent_expr): Likewise.
  8954. (clone_one_breakpoint): Likewise.
  8955. * regcache.c (new_register_cache): Likewise.
  8956. * remote-utils.c (look_up_one_symbol): Likewise.
  8957. * server.c (queue_stop_reply): Likewise.
  8958. (start_inferior): Likewise.
  8959. (queue_stop_reply_callback): Likewise.
  8960. (handle_target_event): Likewise.
  8961. * spu-low.c (fetch_ppc_memory): Likewise.
  8962. (store_ppc_memory): Likewise.
  8963. * target.c (set_target_ops): Likewise.
  8964. * thread-db.c (thread_db_load_search): Likewise.
  8965. (try_thread_db_load_1): Likewise.
  8966. * tracepoint.c (add_tracepoint): Likewise.
  8967. (add_tracepoint_action): Likewise.
  8968. (create_trace_state_variable): Likewise.
  8969. (cmd_qtdpsrc): Likewise.
  8970. (cmd_qtro): Likewise.
  8971. (add_while_stepping_state): Likewise.
  8972. * win32-low.c (child_add_thread): Likewise.
  8973. (get_image_name): Likewise.
  8974. 2015-08-25 Yao Qi <yao.qi@linaro.org>
  8975. * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
  8976. 2015-08-25 Yao Qi <yao.qi@linaro.org>
  8977. * Makefile.in (aarch64-linux.o): New rule.
  8978. * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
  8979. srv_tgtobj.
  8980. * linux-aarch64-low.c: Include nat/aarch64-linux.h.
  8981. (aarch64_init_debug_reg_state): Make it extern.
  8982. (aarch64_linux_prepare_to_resume): Remove.
  8983. 2015-08-25 Yao Qi <yao.qi@linaro.org>
  8984. * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
  8985. lwp_arch_private_info and ptid_of_lwp.
  8986. 2015-08-25 Yao Qi <yao.qi@linaro.org>
  8987. * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
  8988. Find proc_info by find_process_pid. All callers updated.
  8989. 2015-08-25 Yao Qi <yao.qi@linaro.org>
  8990. * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
  8991. Remove.
  8992. (debug_reg_change_callback): Remove.
  8993. (aarch64_notify_debug_reg_change): Remove.
  8994. 2015-08-25 Yao Qi <yao.qi@linaro.org>
  8995. * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
  8996. Call current_lwp_ptid.
  8997. 2015-08-25 Yao Qi <yao.qi@linaro.org>
  8998. * linux-aarch64-low.c (debug_reg_change_callback): Use
  8999. debug_printf.
  9000. 2015-08-25 Yao Qi <yao.qi@linaro.org>
  9001. * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
  9002. 2015-08-25 Yao Qi <yao.qi@linaro.org>
  9003. * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
  9004. 2015-08-25 Yao Qi <yao.qi@linaro.org>
  9005. * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
  9006. the code.
  9007. 2015-08-25 Yao Qi <yao.qi@linaro.org>
  9008. * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
  9009. Remove.
  9010. (debug_reg_change_callback): Remove argument entry and add argument
  9011. lwp. Remove local variable thread. Don't print thread id in the
  9012. debugging output. Don't check whether pid of thread equals to pid.
  9013. (aarch64_notify_debug_reg_change): Don't set param.pid. Call
  9014. iterate_over_lwps instead find_inferior.
  9015. 2015-08-24 Pedro Alves <palves@redhat.com>
  9016. * inferiors.c (get_first_process): New function.
  9017. * inferiors.h (get_first_process): New declaration.
  9018. * remote-utils.c (read_ptid): Default to the first process in the
  9019. list, instead of to the current thread's process.
  9020. 2015-08-24 Pedro Alves <palves@redhat.com>
  9021. * debug.c: Include gdb_sys_time.h instead of sys/time.h.
  9022. * event-loop.c: Likewise.
  9023. * remote-utils.c: Likewise.
  9024. * tracepoint.c: Likewise.
  9025. 2015-08-24 Pedro Alves <palves@redhat.com>
  9026. * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
  9027. ptid_get_lwp.
  9028. 2015-08-21 Pedro Alves <palves@redhat.com>
  9029. * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
  9030. instead of literal 1.
  9031. 2015-08-21 Pedro Alves <palves@redhat.com>
  9032. * tdesc.c (default_description): Explicitly zero-initialize.
  9033. 2015-08-21 Pedro Alves <palves@redhat.com>
  9034. PR gdb/18749
  9035. * inferiors.c (remove_thread): Discard any pending stop reply for
  9036. this thread.
  9037. * server.c (remove_all_on_match_pid): Rename to ...
  9038. (remove_all_on_match_ptid): ... this. Work with a filter ptid
  9039. instead of a pid.
  9040. (discard_queued_stop_replies): Change parameter to a ptid. Now
  9041. extern.
  9042. (handle_v_kill, kill_inferior_callback, captured_main)
  9043. (process_serial_event): Adjust.
  9044. * server.h (discard_queued_stop_replies): Declare.
  9045. 2015-08-21 Pedro Alves <palves@redhat.com>
  9046. * linux-low.c (wait_for_sigstop): Always switch to no thread
  9047. selected if the previously current thread dies.
  9048. * lynx-low.c (lynx_request_interrupt): Use the first thread's
  9049. process instead of the current thread's.
  9050. * remote-utils.c (input_interrupt): Don't check if there's no
  9051. current thread.
  9052. * server.c (gdb_read_memory, gdb_write_memory): If setting the
  9053. current thread to the general thread fails, error out.
  9054. (handle_qxfer_auxv, handle_qxfer_libraries)
  9055. (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
  9056. (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
  9057. (handle_query): Check if there's a thread selected instead of
  9058. checking whether there's any thread in the thread list.
  9059. (handle_qxfer_threads, handle_qxfer_btrace)
  9060. (handle_qxfer_btrace_conf): Don't error out early if there's no
  9061. thread in the thread list.
  9062. (handle_v_cont, myresume): Don't set the current thread to the
  9063. continue thread.
  9064. (process_serial_event) <Hg handling>: Also set thread_id if the
  9065. previous general thread is still alive.
  9066. (process_serial_event) <g/G handling>: If setting the current
  9067. thread to the general thread fails, error out.
  9068. * spu-low.c (spu_resume, spu_request_interrupt): Use the first
  9069. thread's lwp instead of the current thread's.
  9070. * target.c (set_desired_thread): If the desired thread was not
  9071. found, leave the current thread pointing to NULL. Return an int
  9072. (boolean) indicating success.
  9073. * target.h (set_desired_thread): Change return type to int.
  9074. 2015-08-20 Max Filippov <jcmvbkbc@gmail.com>
  9075. * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
  9076. * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
  9077. #includes.
  9078. (ps_get_thread_area): New function.
  9079. 2015-08-19 Gary Benson <gbenson@redhat.com>
  9080. * hostio.c (handle_pread): Do not attempt to read more data
  9081. than hostio_reply_with_data can fit in a packet.
  9082. 2015-08-18 Joel Brobecker <brobecker@adacore.com>
  9083. * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
  9084. 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
  9085. * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
  9086. 2015-08-06 Pedro Alves <palves@redhat.com>
  9087. * tracepoint.c (expr_eval_result): Now an int.
  9088. 2015-08-06 Pedro Alves <palves@redhat.com>
  9089. * gdbthread.h (struct regcache): Forward declare.
  9090. (struct thread_info) <regcache_data>: Now a struct regcache
  9091. pointer.
  9092. * inferiors.c (inferior_regcache_data)
  9093. (set_inferior_regcache_data): Now work with struct regcache
  9094. pointers.
  9095. * inferiors.h (struct regcache): Forward declare.
  9096. (inferior_regcache_data, set_inferior_regcache_data): Now work
  9097. with struct regcache pointers.
  9098. * regcache.c (get_thread_regcache, regcache_invalidate_thread)
  9099. (free_register_cache_thread): Remove struct regcache pointer
  9100. casts.
  9101. 2015-08-06 Pedro Alves <palves@redhat.com>
  9102. * server.c (captured_main): On error, print the exception message
  9103. to stderr, and if run_once is set, throw a quit.
  9104. 2015-08-06 Pedro Alves <palves@redhat.com>
  9105. * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
  9106. the current thread.
  9107. 2015-08-06 Pedro Alves <palves@redhat.com>
  9108. * linux-low.c (linux_write_memory): Rewrite debug output to avoid
  9109. reading beyond the passed in buffer length.
  9110. 2015-08-06 Pierre Langlois <pierre.langlois@arm.com>
  9111. * tracepoint.c (symbol_list) <required>: Remove.
  9112. 2015-08-06 Pedro Alves <palves@redhat.com>
  9113. * linux-low.c (handle_extended_wait): Set the fork child's suspend
  9114. count if stopping and suspending threads.
  9115. (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
  9116. stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
  9117. (linux_detach): Complete an ongoing step-over.
  9118. (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
  9119. throughout.
  9120. (resume_stopped_resumed_lwps): Don't resume a suspended thread.
  9121. (linux_wait_1): If passing a signal to the inferior after
  9122. finishing a step-over, unsuspend and re-resume all lwps. If we
  9123. see a single-step event but the thread should be continuing, don't
  9124. pass the trap to gdb.
  9125. (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
  9126. internal_error instead of gdb_assert.
  9127. (enqueue_pending_signal): New function.
  9128. (check_ptrace_stopped_lwp_gone): Add debug output.
  9129. (start_step_over): Use internal_error instead of gdb_assert.
  9130. (complete_ongoing_step_over): New function.
  9131. (linux_resume_one_thread): Don't resume a suspended thread.
  9132. (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
  9133. it stepping.
  9134. 2015-08-06 Pedro Alves <palves@redhat.com>
  9135. * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
  9136. (linux_thread_alive): Use lwp_is_marked_dead.
  9137. (extended_event_reported): Delete.
  9138. (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
  9139. instead of extended_event_reported.
  9140. (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
  9141. as well.
  9142. (lwp_is_marked_dead): New function.
  9143. (lwp_running): Use lwp_is_marked_dead.
  9144. * linux-low.h: Delete 'dead' field, and update 'waitstatus's
  9145. comment.
  9146. 2015-08-06 Pedro Alves <palves@redhat.com>
  9147. * linux-low.c (linux_wait_1): Move fork event output out of the
  9148. !report_to_gdb check. Pass event_child->waitstatus to
  9149. target_waitstatus_to_string instead of ourstatus.
  9150. 2015-08-04 Yao Qi <yao.qi@linaro.org>
  9151. * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
  9152. if current_thread is 32 bit.
  9153. 2015-08-04 Yao Qi <yao.qi@linaro.org>
  9154. * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
  9155. 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
  9156. * server.c (extended_protocol): Remove "static".
  9157. * server.h (extended_protocol): Declare it.
  9158. 2015-08-04 Yao Qi <yao.qi@linaro.org>
  9159. * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
  9160. both aarch64 and aarch32.
  9161. (aarch64_set_pc): Likewise.
  9162. 2015-08-04 Yao Qi <yao.qi@linaro.org>
  9163. * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
  9164. to srv_regobj and append arm-core.xml arm-vfpv3.xml and
  9165. arm-with-neon.xml to srv_xmlfiles.
  9166. * linux-aarch64-low.c: Include linux-aarch32-low.h.
  9167. (is_64bit_tdesc): New function.
  9168. (aarch64_linux_read_description): New function.
  9169. (aarch64_arch_setup): Call aarch64_linux_read_description.
  9170. (regs_info): Rename to regs_info_aarch64.
  9171. (aarch64_regs_info): Return right regs_info.
  9172. (initialize_low_arch): Call initialize_low_arch_aarch32.
  9173. 2015-08-04 Yao Qi <yao.qi@linaro.org>
  9174. * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
  9175. * linux-aarch32-low.c: New file.
  9176. * linux-aarch32-low.h: New file.
  9177. * linux-arm-low.c (arm_fill_gregset): Move it to
  9178. linux-aarch32-low.c.
  9179. (arm_store_gregset): Likewise.
  9180. (arm_fill_vfpregset): Call arm_fill_vfpregset_num
  9181. (arm_store_vfpregset): Call arm_store_vfpregset_num.
  9182. (arm_arch_setup): Check if PTRACE_GETREGSET works.
  9183. (regs_info): Rename to regs_info_arm.
  9184. (arm_regs_info): Return regs_info_aarch32 if
  9185. have_ptrace_getregset is 1 and target description is
  9186. arm_with_neon or arm_with_vfpv3.
  9187. (initialize_low_arch): Don't call init_registers_arm_with_neon.
  9188. Call initialize_low_arch_aarch32 instead.
  9189. 2015-08-04 Yao Qi <yao.qi@linaro.org>
  9190. * linux-x86-low.c (have_ptrace_getregset): Move it to ...
  9191. * linux-low.c: ... here.
  9192. * linux-low.h (have_ptrace_getregset): Declare it.
  9193. 2015-08-04 Pedro Alves <palves@redhat.com>
  9194. * thread-db.c (struct thread_db): Use new typedefs.
  9195. (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
  9196. CHK calls.
  9197. (disable_thread_event_reporting): Cast result of dlsym to
  9198. destination function pointer type.
  9199. (thread_db_mourn): Use td_ta_delete_ftype.
  9200. 2015-08-03 Sandra Loosemore <sandra@codesourcery.com>
  9201. * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
  9202. arch variant.
  9203. (CDX_BREAKPOINT): Define for R2.
  9204. (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
  9205. (the_low_target): Add comments.
  9206. 2015-07-30 Yao Qi <yao.qi@linaro.org>
  9207. * linux-arm-low.c (arm_hwcap): Remove it.
  9208. (arm_read_description): New local variable arm_hwcap. Don't
  9209. set arm_hwcap to zero.
  9210. 2015-07-30 Yao Qi <yao.qi@linaro.org>
  9211. * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
  9212. Use regcache->tdesc instead.
  9213. (arm_store_wmmxregset): Likewise.
  9214. (arm_fill_vfpregset): Likewise.
  9215. (arm_store_vfpregset): Likewise.
  9216. 2015-07-30 Yao Qi <yao.qi@linaro.org>
  9217. * linux-arm-low.c: Include arch/arm.h.
  9218. (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
  9219. (arm_store_gregset): Likewise.
  9220. 2015-07-29 Simon Marchi <simon.marchi@ericsson.com>
  9221. * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
  9222. ptrace's 4th parameter.
  9223. 2015-07-27 Yao Qi <yao.qi@linaro.org>
  9224. * configure.srv (case aarch64*-*-linux*): Don't set
  9225. srv_linux_usrregs.
  9226. 2015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
  9227. * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
  9228. sys/ptrace.h.
  9229. * linux-arm-low.c: Likewise.
  9230. * linux-cris-low.c: Likewise.
  9231. * linux-crisv32-low.c: Likewise.
  9232. * linux-low.c: Likewise.
  9233. * linux-m68k-low.c: Likewise.
  9234. * linux-mips-low.c: Likewise.
  9235. * linux-nios2-low.c: Likewise.
  9236. * linux-s390-low.c: Likewise.
  9237. * linux-sparc-low.c: Likewise.
  9238. * linux-tic6x-low.c: Likewise.
  9239. * linux-tile-low.c: Likewise.
  9240. * linux-x86-low.c: Likewise.
  9241. 2015-07-24 Pedro Alves <palves@redhat.com>
  9242. * config.in: Regenerate.
  9243. * configure: Regenerate.
  9244. 2015-07-24 Pedro Alves <palves@redhat.com>
  9245. * acinclude.m4: Include ../ptrace.m4.
  9246. * configure.ac: Call GDB_AC_PTRACE.
  9247. * config.in, configure: Regenerate.
  9248. 2015-07-24 Yao Qi <yao.qi@linaro.org>
  9249. * linux-low.c (linux_create_inferior): Remove setting to
  9250. proc->priv->new_inferior.
  9251. (linux_attach): Likewise.
  9252. (linux_low_filter_event): Likewise.
  9253. * linux-low.h (struct process_info_private) <new_inferior>: Remove.
  9254. 2015-07-24 Yao Qi <yao.qi@linaro.org>
  9255. * linux-low.c (linux_arch_setup): New function.
  9256. (linux_low_filter_event): If proc->tdesc is NULL and
  9257. proc->attached is true, call the_low_target.arch_setup.
  9258. Otherwise, keep status pending, and return.
  9259. (linux_resume_one_lwp_throw): Don't call get_pc if
  9260. thread->while_stepping isn't NULL. Don't call
  9261. get_thread_regcache if proc->tdesc is NULL.
  9262. (need_step_over_p): Return 0 if proc->tdesc is NULL.
  9263. (linux_target_ops): Install arch_setup.
  9264. * server.c (start_inferior): Call the_target->arch_setup.
  9265. * target.h (struct target_ops) <arch_setup>: New field.
  9266. (target_arch_setup): New marco.
  9267. * lynx-low.c (lynx_target_ops): Update.
  9268. * nto-low.c (nto_target_ops): Update.
  9269. * spu-low.c (spu_target_ops): Update.
  9270. * win32-low.c (win32_target_ops): Update.
  9271. 2015-07-24 Yao Qi <yao.qi@linaro.org>
  9272. * linux-low.c (linux_add_process): Don't set
  9273. proc->priv->new_inferior.
  9274. (linux_create_inferior): Set proc->priv->new_inferior to 1.
  9275. (linux_attach): Likewise.
  9276. 2015-07-24 Yao Qi <yao.qi@linaro.org>
  9277. * server.c (start_inferior): Code refactor.
  9278. 2015-07-24 Yao Qi <yao.qi@linaro.org>
  9279. * server.c (process_serial_event): Set general_thread.
  9280. 2015-07-21 Yao Qi <yao.qi@linaro.org>
  9281. * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
  9282. aarch64_linux_get_debug_reg_capacity.
  9283. 2015-07-17 Yao Qi <yao.qi@linaro.org>
  9284. * Makefile.in (aarch64-linux-hw-point.o): New rule.
  9285. * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
  9286. * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
  9287. (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
  9288. (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
  9289. (AARCH64_HWP_ALIGNMENT): Likewise.
  9290. (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
  9291. (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
  9292. (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
  9293. (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
  9294. (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
  9295. (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
  9296. (struct aarch64_debug_reg_state): Likewise.
  9297. (struct arch_lwp_info): Likewise.
  9298. (aarch64_align_watchpoint): Likewise.
  9299. (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
  9300. (aarch64_watchpoint_length): Likewise.
  9301. (aarch64_point_encode_ctrl_reg): Likewise
  9302. (aarch64_point_is_aligned): Likewise.
  9303. (aarch64_align_watchpoint): Likewise.
  9304. (aarch64_linux_set_debug_regs):
  9305. (aarch64_dr_state_insert_one_point): Likewise.
  9306. (aarch64_dr_state_remove_one_point): Likewise.
  9307. (aarch64_handle_breakpoint): Likewise.
  9308. (aarch64_handle_aligned_watchpoint): Likewise.
  9309. (aarch64_handle_unaligned_watchpoint): Likewise.
  9310. (aarch64_handle_watchpoint): Likewise.
  9311. 2015-07-17 Yao Qi <yao.qi@linaro.org>
  9312. * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
  9313. and don't aarch64_get_debug_reg_state. All callers update.
  9314. (aarch64_handle_aligned_watchpoint): Likewise.
  9315. (aarch64_handle_unaligned_watchpoint): Likewise.
  9316. (aarch64_handle_watchpoint): Likewise.
  9317. (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
  9318. (aarch64_remove_point): Likewise.
  9319. 2015-07-17 Yao Qi <yao.qi@linaro.org>
  9320. * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
  9321. debug_printf.
  9322. (aarch64_handle_unaligned_watchpoint): Likewise.
  9323. 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
  9324. Revert the previous 3 commits:
  9325. Move gdb_regex* to common/
  9326. Move linux_find_memory_regions_full & co.
  9327. gdbserver build-id attribute generator
  9328. 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
  9329. Jan Kratochvil <jan.kratochvil@redhat.com>
  9330. gdbserver build-id attribute generator.
  9331. * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
  9332. (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
  9333. (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
  9334. (find_phdr): New.
  9335. (get_dynamic): Use find_pdhr to traverse program headers.
  9336. (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
  9337. (compare_mapping_entry_range, struct find_memory_region_callback_data)
  9338. (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
  9339. (get_hex_build_id): New.
  9340. (linux_qxfer_libraries_svr4): Add optional build-id attribute
  9341. to reply XML document.
  9342. 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
  9343. Jan Kratochvil <jan.kratochvil@redhat.com>
  9344. * target.c: Include target/target-utils.h and fcntl.h.
  9345. (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
  9346. (target_fileio_read_stralloc): New functions.
  9347. 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
  9348. * Makefile.in (OBS): Add gdb_regex.o.
  9349. (gdb_regex.o): New.
  9350. * config.in: Rebuilt.
  9351. * configure: Rebuilt.
  9352. 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
  9353. Jan Kratochvil <jan.kratochvil@redhat.com>
  9354. Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
  9355. * Makefile.in (OBS): Add target-utils.o.
  9356. (linux-maps.o, target-utils.o): New.
  9357. * configure.srv (srv_linux_obj): Add linux-maps.o.
  9358. 2015-07-15 Pierre Langlois <pierre.langlois@arm.com>
  9359. * linux-aarch64-low.c (aarch64_supports_range_stepping): New
  9360. function, return 1.
  9361. (the_low_target): Install it.
  9362. 2015-07-14 Pedro Alves <palves@redhat.com>
  9363. * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
  9364. Instead, ignore ECHILD, and throw an error for other errnos.
  9365. 2015-07-10 Pedro Alves <palves@redhat.com>
  9366. * event-loop.c (struct callback_event) <data>: Change type to
  9367. gdb_client_data instance instead of gdb_client_data pointer.
  9368. (append_callback_event): Adjust.
  9369. 2015-07-10 Pierre Langlois <pierre.langlois@arm.com>
  9370. * linux-aarch64-low.c: Add comments for each linux_target_ops
  9371. method. Remove comments already covered in target_ops and
  9372. linux_target_ops definitions.
  9373. (the_low_target): Add comments for each unimplemented method.
  9374. 2015-07-09 Yao Qi <yao.qi@linaro.org>
  9375. * linux-aarch64-low.c (aarch64_regmap): Remove.
  9376. (aarch64_usrregs_info): Remove.
  9377. (regs_info): Set field usrregs to NULL.
  9378. 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
  9379. * linux-low.c: Include "rsp-low.h"
  9380. (linux_low_encode_pt_config, linux_low_encode_raw): New.
  9381. (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
  9382. (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
  9383. (handle_btrace_enable_pt): New.
  9384. (handle_btrace_general_set): Support "pt".
  9385. (handle_btrace_conf_general_set): Support "pt:size".
  9386. 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
  9387. * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
  9388. Z_PACKET_SW_BP.
  9389. 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
  9390. * linux-aarch64-low.c: Remove comment about endianness.
  9391. (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
  9392. (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
  9393. memcmp.
  9394. 2015-06-24 Gary Benson <gbenson@redhat.com>
  9395. * linux-i386-ipa.c (stdint.h): Do not include.
  9396. * lynx-i386-low.c (stdint.h): Likewise.
  9397. * lynx-ppc-low.c (stdint.h): Likewise.
  9398. * mem-break.c (stdint.h): Likewise.
  9399. * thread-db.c (stdint.h): Likewise.
  9400. * tracepoint.c (stdint.h): Likewise.
  9401. * win32-low.c (stdint.h): Likewise.
  9402. 2015-06-18 Simon Marchi <simon.marchi@ericsson.com>
  9403. * server.c (write_qxfer_response): Update call to
  9404. remote_escape_output.
  9405. 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
  9406. Jan Kratochvil <jan.kratochvil@redhat.com>
  9407. Merge multiple hex conversions.
  9408. * gdbreplay.c (tohex): Rename to 'fromhex'.
  9409. (logchar): Use fromhex.
  9410. 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
  9411. * server.c (handle_qxfer_libraries): Set `version' attribute for
  9412. <library-list>.
  9413. 2015-06-10 Gary Benson <gbenson@redhat.com>
  9414. * target.h (struct target_ops) <multifs_open>: New field.
  9415. <multifs_unlink>: Likewise.
  9416. <multifs_readlink>: Likewise.
  9417. * linux-low.c (nat/linux-namespaces.h): New include.
  9418. (linux_target_ops): Initialize the_target->multifs_open,
  9419. the_target->multifs_unlink and the_target->multifs_readlink.
  9420. * hostio.h (hostio_handle_new_gdb_connection): New declaration.
  9421. * hostio.c (hostio_fs_pid): New static variable.
  9422. (hostio_handle_new_gdb_connection): New function.
  9423. (handle_setfs): Likewise.
  9424. (handle_open): Use the_target->multifs_open as appropriate.
  9425. (handle_unlink): Use the_target->multifs_unlink as appropriate.
  9426. (handle_readlink): Use the_target->multifs_readlink as
  9427. appropriate.
  9428. (handle_vFile): Handle vFile:setfs packets.
  9429. * server.c (handle_query): Call hostio_handle_new_gdb_connection
  9430. after target_handle_new_gdb_connection.
  9431. 2015-06-10 Gary Benson <gbenson@redhat.com>
  9432. * configure.ac (AC_CHECK_FUNCS): Add setns.
  9433. * config.in: Regenerate.
  9434. * configure: Likewise.
  9435. * Makefile.in (SFILES): Add nat/linux-namespaces.c.
  9436. (linux-namespaces.o): New rule.
  9437. * configure.srv (srv_linux_obj): Add linux-namespaces.o.
  9438. 2015-06-09 Gary Benson <gbenson@redhat.com>
  9439. * hostio.c (handle_open): Process mode argument with
  9440. fileio_to_host_mode.
  9441. 2015-06-01 Yao Qi <yao.qi@linaro.org>
  9442. * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
  9443. * linux-x86-low.c: Likewise.
  9444. 2015-05-28 Don Breazeal <donb@codesourcery.com>
  9445. * linux-low.c (handle_extended_wait): Initialize
  9446. thread_info.last_resume_kind for new fork children.
  9447. 2015-05-15 Pedro Alves <palves@redhat.com>
  9448. * target.h (target_handle_new_gdb_connection): Rewrite using if
  9449. wrapped in do/while.
  9450. 2015-05-14 Joel Brobecker <brobecker@adacore.com>
  9451. * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
  9452. * configure, config.in: Regenerate.
  9453. * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
  9454. Declare typedef.
  9455. 2015-05-12 Don Breazeal <donb@codesourcery.com>
  9456. * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
  9457. PTRACE_EVENT_VFORK_DONE.
  9458. (linux_low_ptrace_options, extended_event_reported): Add vfork
  9459. events.
  9460. * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
  9461. and "vforkdone" for RSP 'T' Stop Reply Packet.
  9462. * server.h (report_vfork_events): Declare
  9463. global variable.
  9464. 2015-05-12 Don Breazeal <donb@codesourcery.com>
  9465. * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
  9466. (the_low_target) <new_fork>: Initialize new member.
  9467. * linux-arm-low.c (arm_new_fork): New function.
  9468. (the_low_target) <new_fork>: Initialize new member.
  9469. * linux-low.c (handle_extended_wait): Call new target function
  9470. new_fork.
  9471. * linux-low.h (struct linux_target_ops) <new_fork>: New member.
  9472. * linux-mips-low.c (mips_add_watchpoint): New function
  9473. extracted from mips_insert_point.
  9474. (the_low_target) <new_fork>: Initialize new member.
  9475. (mips_linux_new_fork): New function.
  9476. (mips_insert_point): Call mips_add_watchpoint.
  9477. * linux-x86-low.c (x86_linux_new_fork): New function.
  9478. (the_low_target) <new_fork>: Initialize new member.
  9479. 2015-05-12 Don Breazeal <donb@codesourcery.com>
  9480. * linux-low.c (handle_extended_wait): Implement return value,
  9481. rename argument 'event_child' to 'event_lwp', handle
  9482. PTRACE_EVENT_FORK, call internal_error for unrecognized event.
  9483. (linux_low_ptrace_options): New function.
  9484. (linux_low_filter_event): Call linux_low_ptrace_options,
  9485. use different argument fo linux_enable_event_reporting,
  9486. use return value from handle_extended_wait.
  9487. (extended_event_reported): New function.
  9488. (linux_wait_1): Call extended_event_reported and set
  9489. status to report fork events.
  9490. (linux_write_memory): Add pid to debug message.
  9491. (reset_lwp_ptrace_options_callback): New function.
  9492. (linux_handle_new_gdb_connection): New function.
  9493. (linux_target_ops): Initialize new structure member.
  9494. * linux-low.h (struct lwp_info) <waitstatus>: New member.
  9495. * lynx-low.c: Initialize new structure member.
  9496. * remote-utils.c (prepare_resume_reply): Implement stop reason
  9497. "fork" for "T" stop message.
  9498. * server.c (handle_query): Call handle_new_gdb_connection.
  9499. * server.h (report_fork_events): Declare global flag.
  9500. * target.h (struct target_ops) <handle_new_gdb_connection>:
  9501. New member.
  9502. (target_handle_new_gdb_connection): New macro.
  9503. * win32-low.c: Initialize new structure member.
  9504. 2015-05-12 Don Breazeal <donb@codesourcery.com>
  9505. * mem-break.c (APPEND_TO_LIST): Define macro.
  9506. (clone_agent_expr): New function.
  9507. (clone_one_breakpoint): New function.
  9508. (clone_all_breakpoints): New function.
  9509. * mem-break.h: Declare new functions.
  9510. 2015-05-12 Don Breazeal <donb@codesourcery.com>
  9511. * linux-low.c (linux_supports_fork_events): New function.
  9512. (linux_supports_vfork_events): New function.
  9513. (linux_target_ops): Initialize new structure members.
  9514. (initialize_low): Call linux_check_ptrace_features.
  9515. * lynx-low.c (lynx_target_ops): Initialize new structure
  9516. members.
  9517. * server.c (report_fork_events, report_vfork_events):
  9518. New global flags.
  9519. (handle_query): Add new features to qSupported packet and
  9520. response.
  9521. (captured_main): Initialize new global variables.
  9522. * target.h (struct target_ops) <supports_fork_events>:
  9523. New member.
  9524. <supports_vfork_events>: New member.
  9525. (target_supports_fork_events): New macro.
  9526. (target_supports_vfork_events): New macro.
  9527. * win32-low.c (win32_target_ops): Initialize new structure
  9528. members.
  9529. 2015-05-12 Gary Benson <gbenson@redhat.com>
  9530. * server.c (handle_qxfer_exec_file): Use current process
  9531. if annex is empty.
  9532. 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
  9533. * linux-nios2-low.c: Include elf/common.h. Adjust comments.
  9534. Remove HAVE_PTRACE_GETREGS conditionals.
  9535. (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
  9536. instead of PTRACE_GETREGS and PTRACE_SETREGS.
  9537. 2015-05-08 Yao Qi <yao.qi@linaro.org>
  9538. * linux-low.c (linux_supports_conditional_breakpoints): New
  9539. function.
  9540. (linux_target_ops): Install new target method.
  9541. * lynx-low.c (lynx_target_ops): Install NULL hook for
  9542. supports_conditional_breakpoints.
  9543. * nto-low.c (nto_target_ops): Likewise.
  9544. * spu-low.c (spu_target_ops): Likewise.
  9545. * win32-low.c (win32_target_ops): Likewise.
  9546. * server.c (handle_query): Check
  9547. target_supports_conditional_breakpoints.
  9548. * target.h (struct target_ops) <supports_conditional_breakpoints>:
  9549. New field.
  9550. (target_supports_conditional_breakpoints): New macro.
  9551. 2015-05-06 Pedro Alves <palves@redhat.com>
  9552. PR server/18081
  9553. * server.c (start_inferior): If the process exits, mourn it.
  9554. 2015-04-21 Gary Benson <gbenson@redhat.com>
  9555. * hostio.c (fileio_open_flags_to_host): Factored out to
  9556. fileio_to_host_openflags in common/fileio.c. Single use
  9557. updated.
  9558. 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
  9559. * linux-xtensa-low.c (xtensa_fill_gregset)
  9560. (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
  9561. XCHAL_HAVE_LOOP.
  9562. 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
  9563. * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
  9564. (regs_info): Replace usrregs pointer with NULL.
  9565. 2015-04-17 Gary Benson <gbenson@redhat.com>
  9566. * target.h (struct target_ops) <pid_to_exec_file>: New field.
  9567. * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
  9568. * server.c (handle_qxfer_exec_file): New function.
  9569. (qxfer_packets): Add exec-file entry.
  9570. (handle_query): Report qXfer:exec-file:read as supported packet.
  9571. 2015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
  9572. * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
  9573. 2015-04-09 Gary Benson <gbenson@redhat.com>
  9574. * hostio-errno.c (errno_to_fileio_error): Remove function.
  9575. Update caller to use remote_fileio_to_fio_error.
  9576. 2015-04-09 Yao Qi <yao.qi@linaro.org>
  9577. * linux-low.c (linux_insert_point): Call
  9578. insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
  9579. (linux_remove_point): Call remove_memory_breakpoint if type is
  9580. raw_bkpt_type_sw.
  9581. * linux-x86-low.c (x86_insert_point): Don't call
  9582. insert_memory_breakpoint.
  9583. (x86_remove_point): Don't call remove_memory_breakpoint.
  9584. 2015-04-01 Pedro Alves <palves@redhat.com>
  9585. Cleber Rosa <crosa@redhat.com>
  9586. * server.c (gdbserver_usage): Reorganize and extend the usage
  9587. message.
  9588. 2015-03-24 Pedro Alves <palves@redhat.com>
  9589. * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
  9590. output. Also dump TRAP_TRACE.
  9591. (linux_low_filter_event): In debug output, distinguish a
  9592. resume_stop SIGSTOP from a delayed SIGSTOP.
  9593. 2015-03-24 Gary Benson <gbenson@redhat.com>
  9594. * linux-x86-low.c (x86_linux_new_thread): Moved to
  9595. nat/x86-linux.c.
  9596. (x86_linux_prepare_to_resume): Likewise.
  9597. 2015-03-24 Gary Benson <gbenson@redhat.com>
  9598. * Makefile.in (x86-linux-dregs.o): New rule.
  9599. * configure.srv: Add x86-linux-dregs.o to relevant targets.
  9600. * linux-x86-low.c: Include nat/x86-linux-dregs.h.
  9601. (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
  9602. (x86_linux_dr_get): Likewise.
  9603. (x86_linux_dr_set): Likewise.
  9604. (update_debug_registers_callback): Likewise.
  9605. (x86_linux_dr_set_addr): Likewise.
  9606. (x86_linux_dr_get_addr): Likewise.
  9607. (x86_linux_dr_set_control): Likewise.
  9608. (x86_linux_dr_get_control): Likewise.
  9609. (x86_linux_dr_get_status): Likewise.
  9610. (x86_linux_update_debug_registers): Likewise.
  9611. 2015-03-24 Gary Benson <gbenson@redhat.com>
  9612. * linux-x86-low.c (x86_linux_update_debug_registers):
  9613. New function, factored out from...
  9614. (x86_linux_prepare_to_resume): ...this.
  9615. 2015-03-24 Gary Benson <gbenson@redhat.com>
  9616. * linux-x86-low.c (x86_linux_dr_get): Update comments.
  9617. (x86_linux_dr_set): Likewise.
  9618. (update_debug_registers_callback): Likewise.
  9619. (x86_linux_dr_set_addr): Likewise.
  9620. (x86_linux_dr_get_addr): Likewise.
  9621. (x86_linux_dr_set_control): Likewise.
  9622. (x86_linux_dr_get_control): Likewise.
  9623. (x86_linux_dr_get_status): Likewise.
  9624. (x86_linux_prepare_to_resume): Likewise.
  9625. 2015-03-24 Gary Benson <gbenson@redhat.com>
  9626. * linux-x86-low.c (x86_linux_dr_get): Add assertion.
  9627. Use perror_with_name. Pass string through gettext.
  9628. (x86_linux_dr_set): Likewise.
  9629. 2015-03-24 Gary Benson <gbenson@redhat.com>
  9630. * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
  9631. (x86_linux_dr_set_addr): ...this.
  9632. (x86_dr_low_get_addr): Rename to...
  9633. (x86_linux_dr_get_addr): ...this.
  9634. (x86_dr_low_set_control): Rename to...
  9635. (x86_linux_dr_set_control): ...this.
  9636. (x86_dr_low_get_control): Rename to...
  9637. (x86_linux_dr_get_control): ...this.
  9638. (x86_dr_low_get_status): Rename to...
  9639. (x86_linux_dr_get_status): ...this.
  9640. (x86_dr_low): Update with new function names.
  9641. 2015-03-24 Gary Benson <gbenson@redhat.com>
  9642. * Makefile.in (x86-linux.o): New rule.
  9643. * configure.srv: Add x86-linux.o to relevant targets.
  9644. * linux-low.c (lwp_set_arch_private_info): New function.
  9645. (lwp_arch_private_info): Likewise.
  9646. * linux-x86-low.c: Include nat/x86-linux.h.
  9647. (arch_lwp_info): Removed structure.
  9648. (update_debug_registers_callback):
  9649. Use lwp_set_debug_registers_changed.
  9650. (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
  9651. and lwp_set_debug_registers_changed.
  9652. (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
  9653. 2015-03-24 Gary Benson <gbenson@redhat.com>
  9654. * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
  9655. * linux-arm-low.c (arm_new_thread): Likewise.
  9656. * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
  9657. * linux-mips-low.c (mips_linux_new_thread): Likewise.
  9658. * linux-x86-low.c (x86_linux_new_thread): Likewise.
  9659. * linux-low.c (add_lwp): Update the_low_target.new_thread call.
  9660. 2015-03-24 Gary Benson <gbenson@redhat.com>
  9661. * linux-low.c (ptid_of_lwp): New function.
  9662. (lwp_is_stopped): Likewise.
  9663. (lwp_stop_reason): Likewise.
  9664. * linux-x86-low.c (update_debug_registers_callback):
  9665. Use lwp_is_stopped.
  9666. (x86_linux_prepare_to_resume): Use ptid_of_lwp and
  9667. lwp_stop_reason.
  9668. 2015-03-24 Gary Benson <gbenson@redhat.com>
  9669. * linux-low.h (linux_stop_lwp): Remove declaration.
  9670. 2015-03-24 Gary Benson <gbenson@redhat.com>
  9671. * linux-low.h: Include nat/linux-nat.h.
  9672. * linux-low.c (iterate_over_lwps_args): New structure.
  9673. (iterate_over_lwps_filter): New function.
  9674. (iterate_over_lwps): Likewise.
  9675. * linux-x86-low.c (update_debug_registers_callback):
  9676. Update signature to what iterate_over_lwps expects.
  9677. Remove PID check that iterate_over_lwps now performs.
  9678. (x86_dr_low_set_addr): Use iterate_over_lwps.
  9679. (x86_dr_low_set_control): Likewise.
  9680. 2015-03-24 Gary Benson <gbenson@redhat.com>
  9681. * linux-x86-low.c (x86_debug_reg_state): New function.
  9682. (x86_linux_prepare_to_resume): Use the above.
  9683. 2015-03-24 Gary Benson <gbenson@redhat.com>
  9684. * linux-low.c (current_lwp_ptid): New function.
  9685. * linux-x86-low.c: Include nat/linux-nat.h.
  9686. (x86_dr_low_get_addr): Use current_lwp_ptid.
  9687. (x86_dr_low_get_control): Likewise.
  9688. (x86_dr_low_get_status): Likewise.
  9689. 2015-03-20 Pedro Alves <palves@redhat.com>
  9690. * tracepoint.c (cmd_qtstatus): Make "str" const.
  9691. 2015-03-20 Pedro Alves <palves@redhat.com>
  9692. * server.c (handle_general_set): Make "req_str" const.
  9693. 2015-03-19 Pedro Alves <palves@redhat.com>
  9694. * linux-low.c (linux_resume_one_lwp): Rename to ...
  9695. (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
  9696. instead call perror_with_name.
  9697. (check_ptrace_stopped_lwp_gone): New function.
  9698. (linux_resume_one_lwp): Reimplement as wrapper around
  9699. linux_resume_one_lwp_throw that swallows errors if the LWP is
  9700. gone.
  9701. 2015-03-19 Pedro Alves <palves@redhat.com>
  9702. * linux-low.c (count_events_callback, select_event_lwp_callback):
  9703. No longer check whether the thread has resume_stop as last resume
  9704. kind.
  9705. 2015-03-19 Pedro Alves <palves@redhat.com>
  9706. * linux-low.c (count_events_callback, select_event_lwp_callback):
  9707. Use the lwp's status_pending_p field, not the thread's.
  9708. 2015-03-19 Pedro Alves <palves@redhat.com>
  9709. * linux-low.c (select_event_lwp_callback): Update comments to
  9710. no longer mention SIGTRAP.
  9711. 2015-03-18 Gary Benson <gbenson@redhat.com>
  9712. * server.c (handle_query): Do not report vFile:fstat as supported.
  9713. 2015-03-11 Gary Benson <gbenson@redhat.com>
  9714. * hostio.c (sys/types.h): New include.
  9715. (sys/stat.h): Likewise.
  9716. (common-remote-fileio.h): Likewise.
  9717. (handle_fstat): New function.
  9718. (handle_vFile): Handle vFile:fstat packets.
  9719. 2015-03-11 Gary Benson <gbenson@redhat.com>
  9720. * configure.ac (AC_CHECK_MEMBERS): Add checks for
  9721. struct stat.st_blocks and struct stat.st_blksize.
  9722. * configure: Regenerate.
  9723. * config.in: Likewise.
  9724. * Makefile.in (SFILES): Add common/common-remote-fileio.c.
  9725. (OBS): Add common-remote-fileio.o.
  9726. (common-remote-fileio.o): New rule.
  9727. 2015-03-09 Pedro Alves <palves@redhat.com>
  9728. * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
  9729. 'struct sockaddr' pointer in 'accept' call.
  9730. 2015-03-09 Pedro Alves <palves@redhat.com>
  9731. Revert:
  9732. 2015-03-07 Pedro Alves <palves@redhat.com>
  9733. * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
  9734. or <winsock2.h> here. Instead include "gdb_socket.h".
  9735. (remote_open): Use union gdb_sockaddr_u.
  9736. * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
  9737. or <winsock2.h> here. Instead include "gdb_socket.h".
  9738. (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
  9739. * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
  9740. or <sys/un.h>.
  9741. (init_named_socket, gdb_agent_helper_thread): Use union
  9742. gdb_sockaddr_u.
  9743. 2015-03-07 Pedro Alves <palves@redhat.com>
  9744. * configure.ac (build_warnings): Move
  9745. -Wdeclaration-after-statement to the C-specific set.
  9746. * configure: Regenerate.
  9747. 2015-03-07 Pedro Alves <palves@redhat.com>
  9748. * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
  9749. or <winsock2.h> here. Instead include "gdb_socket.h".
  9750. (remote_open): Use union gdb_sockaddr_u.
  9751. * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
  9752. or <winsock2.h> here. Instead include "gdb_socket.h".
  9753. (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
  9754. * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
  9755. or <sys/un.h>.
  9756. (init_named_socket, gdb_agent_helper_thread): Use union
  9757. gdb_sockaddr_u.
  9758. 2015-03-07 Pedro Alves <palves@redhat.com>
  9759. Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
  9760. instead.
  9761. 2015-03-06 Yao Qi <yao.qi@linaro.org>
  9762. * linux-aarch64-low.c (aarch64_insert_point): Use
  9763. show_debug_regs as a boolean.
  9764. (aarch64_remove_point): Likewise.
  9765. 2015-03-05 Pedro Alves <palves@redhat.com>
  9766. * lynx-low.c (lynx_target_ops): Install NULL hooks for
  9767. stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
  9768. stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
  9769. * nto-low.c (nto_target_ops): Likewise.
  9770. * spu-low.c (spu_target_ops): Likewise.
  9771. * win32-low.c (win32_target_ops): Likewise.
  9772. 2015-03-04 Pedro Alves <palves@redhat.com>
  9773. * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
  9774. Decide whether a breakpoint triggered based on the SIGTRAP's
  9775. siginfo.si_code.
  9776. (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
  9777. breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
  9778. (linux_low_filter_event): Check for breakpoints before checking
  9779. watchpoints.
  9780. (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
  9781. siginfo.si_code.
  9782. (linux_stopped_by_sw_breakpoint)
  9783. (linux_supports_stopped_by_sw_breakpoint)
  9784. (linux_stopped_by_hw_breakpoint)
  9785. (linux_supports_stopped_by_hw_breakpoint): New functions.
  9786. (linux_target_ops): Install new target methods.
  9787. 2015-03-04 Pedro Alves <palves@redhat.com>
  9788. * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
  9789. * server.c (swbreak_feature, hwbreak_feature): New globals.
  9790. (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
  9791. (captured_main): Clear swbreak_feature and hwbreak_feature.
  9792. * server.h (swbreak_feature, hwbreak_feature): Declare.
  9793. * target.h (struct target_ops) <stopped_by_sw_breakpoint,
  9794. supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
  9795. supports_stopped_by_hw_breakpoint>: New fields.
  9796. (target_supports_stopped_by_sw_breakpoint)
  9797. (target_stopped_by_sw_breakpoint)
  9798. (target_supports_stopped_by_hw_breakpoint)
  9799. (target_stopped_by_hw_breakpoint): Declare.
  9800. 2015-03-04 Pedro Alves <palves@redhat.com>
  9801. enum lwp_stop_reason -> enum target_stop_reason
  9802. * linux-low.c (check_stopped_by_breakpoint): Adjust.
  9803. (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
  9804. (linux_wait_1, stuck_in_jump_pad_callback)
  9805. (move_out_of_jump_pad_callback, linux_resume_one_lwp)
  9806. (linux_stopped_by_watchpoint):
  9807. * linux-low.h (enum lwp_stop_reason): Delete.
  9808. (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
  9809. * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
  9810. 2015-03-04 Yao Qi <yao.qi@linaro.org>
  9811. * Makefile.in (SFILES): Add linux-aarch64-low.c.
  9812. 2015-03-03 Gary Benson <gbenson@redhat.com>
  9813. * hostio.c (handle_vFile): Fix prefix lengths.
  9814. 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
  9815. * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
  9816. ptr_bits.
  9817. 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
  9818. * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
  9819. (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
  9820. (clean): Add "rm -f" for above C files.
  9821. * configure.srv (srv_regobj): Add s390-vx-linux64.o,
  9822. s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
  9823. (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
  9824. s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
  9825. * linux-s390-low.c (HWCAP_S390_VX): New macro.
  9826. (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
  9827. (init_registers_s390x_vx_linux64)
  9828. (init_registers_s390x_tevx_linux64)
  9829. (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
  9830. (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
  9831. declarations.
  9832. (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
  9833. (s390_store_vxrs_high): New functions.
  9834. (s390_regsets): Add entries for NT_S390_VXRS_LOW and
  9835. NT_S390_VXRS_HIGH.
  9836. (s390_arch_setup): Add logic for selecting one of the new target
  9837. descriptions. Activate the new vector regsets if applicable.
  9838. (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
  9839. init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
  9840. and init_registers_s390x_tevx_linux64.
  9841. 2015-03-01 Pedro Alves <palves@redhat.com>
  9842. * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
  9843. parameter.
  9844. 2015-02-27 Pedro Alves <palves@redhat.com>
  9845. * linux-x86-low.c (u_debugreg_offset): New function.
  9846. (x86_linux_dr_get, x86_linux_dr_set): Use it.
  9847. 2015-02-27 Pedro Alves <palves@redhat.com>
  9848. * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
  9849. [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
  9850. [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
  9851. ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
  9852. (ps_lsetfpregs, ps_getpid)
  9853. (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
  9854. (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
  9855. (ps_lsetxregs, ps_plog): Declare.
  9856. 2015-02-27 Pedro Alves <palves@redhat.com>
  9857. * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
  9858. IP_AGENT_EXPORT_FUNC.
  9859. * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
  9860. IP_AGENT_EXPORT_FUNC.
  9861. * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
  9862. (IP_AGENT_EXPORT): Delete.
  9863. (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
  9864. (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
  9865. (gdb_trampoline_buffer_error, collecting, gdb_collect)
  9866. (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
  9867. (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
  9868. (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
  9869. (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
  9870. (traceframe_read_count, traceframe_write_count)
  9871. (traceframes_created, trace_state_variables, get_raw_reg)
  9872. (get_trace_state_variable_value, set_trace_state_variable_value)
  9873. (ust_loaded, helper_thread_id, cmd_buf): Use
  9874. IPA_SYM_EXPORTED_NAME.
  9875. (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
  9876. (tracepoints) Use IP_AGENT_EXPORT_VAR.
  9877. (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
  9878. IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
  9879. (last_tracepoint): Move into !IN_PROCESS_AGENT block.
  9880. (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
  9881. EXTERN_C_PUSH/EXTERN_C_POP.
  9882. (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
  9883. (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
  9884. wrap in EXTERN_C_PUSH/EXTERN_C_POP.
  9885. (trace_buffer_ctrl, trace_buffer_ctrl_curr)
  9886. (traceframe_write_count, traceframe_read_count)
  9887. (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
  9888. (about_to_request_buffer_space, get_trace_state_variable_value)
  9889. (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
  9890. (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
  9891. EXTERN_C_PUSH/EXTERN_C_POP.
  9892. (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
  9893. (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
  9894. (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
  9895. and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
  9896. (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
  9897. (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
  9898. (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
  9899. * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
  9900. Define.
  9901. (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
  9902. (IP_AGENT_EXPORT_VAR_DECL): Define.
  9903. (tracing): Declare.
  9904. (gdb_agent_get_raw_reg): Declare.
  9905. 2015-02-27 Tom Tromey <tromey@redhat.com>
  9906. Pedro Alves <palves@redhat.com>
  9907. Rename symbols whose names are reserved C++ keywords throughout.
  9908. 2015-02-27 Pedro Alves <palves@redhat.com>
  9909. * Makefile.in (COMPILER): New, get it from autoconf.
  9910. (CXX): Get from autoconf instead.
  9911. (COMPILE.pre): Use COMPILER.
  9912. (CC-LD): Rename to ...
  9913. (CC_LD): ... this. Use COMPILER.
  9914. (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
  9915. (CXX_FOR_TARGET): Default to g++ instead of gcc.
  9916. * acinclude.m4: Include build-with-cxx.m4.
  9917. * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
  9918. Disable -Werror by default if building in C++ mode.
  9919. (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
  9920. -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
  9921. the C++ compiler. Save/restore CXXFLAGS too.
  9922. * configure: Regenerate.
  9923. 2015-02-27 Pedro Alves <palves@redhat.com>
  9924. * acinclude.m4: Include libiberty.m4.
  9925. * configure.ac: Call libiberty_INIT.
  9926. * config.in, configure: Regenerate.
  9927. 2015-02-26 Pedro Alves <palves@redhat.com>
  9928. * linux-low.c (linux_wait_1): When incrementing the PC past a
  9929. program breakpoint always use the_low_target.breakpoint_len as
  9930. increment, rather than the maximum between that and
  9931. the_low_target.decr_pc_after_break.
  9932. 2015-02-23 Pedro Alves <palves@redhat.com>
  9933. * linux-low.c (check_stopped_by_breakpoint): Don't check if the
  9934. thread was doing a step-over; always adjust the PC if
  9935. we stepped over a permanent breakpoint.
  9936. (linux_wait_1): If we stepped over breakpoint that was on top of a
  9937. permanent breakpoint, manually advance the PC past it.
  9938. 2015-02-23 Pedro Alves <palves@redhat.com>
  9939. * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
  9940. modes.
  9941. (x86_fill_gregset, x86_store_gregset): Use it when handling
  9942. $orig_eax.
  9943. 2015-02-20 Pedro Alves <palves@redhat.com>
  9944. * thread-db.c: Include "nat/linux-procfs.h".
  9945. (thread_db_init): Skip listing new threads if the kernel supports
  9946. PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
  9947. 2015-02-20 Pedro Alves <palves@redhat.com>
  9948. * linux-low.c (status_pending_p_callback): Use ptid_match.
  9949. 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
  9950. PR breakpoints/16812
  9951. * linux-low.c (wstatus_maybe_breakpoint): Remove.
  9952. (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
  9953. (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
  9954. 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
  9955. PR breakpoints/15956
  9956. * tracepoint.c (cmd_qtinit): Add check for current_thread.
  9957. 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
  9958. * linux-low.c (linux_low_btrace_conf): Print size.
  9959. * server.c (handle_btrace_conf_general_set): New.
  9960. (hanle_general_set): Call handle_btrace_conf_general_set.
  9961. (handle_query): Report Qbtrace-conf:bts:size as supported.
  9962. 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
  9963. * linux-low.c (linux_low_enable_btrace): Update parameters.
  9964. (linux_low_btrace_conf): New.
  9965. (linux_target_ops)<to_btrace_conf>: Initialize.
  9966. * server.c (current_btrace_conf): New.
  9967. (handle_btrace_enable): Rename to ...
  9968. (handle_btrace_enable_bts): ... this. Pass &current_btrace_conf
  9969. to target_enable_btrace. Update comment. Update users.
  9970. (handle_qxfer_btrace_conf): New.
  9971. (qxfer_packets): Add btrace-conf entry.
  9972. (handle_query): Report qXfer:btrace-conf:read as supported packet.
  9973. * target.h (target_ops)<enable_btrace>: Update parameters and comment.
  9974. (target_ops)<read_btrace_conf>: New.
  9975. (target_enable_btrace): Update parameters.
  9976. (target_read_btrace_conf): New.
  9977. 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
  9978. * server.c (handle_btrace_general_set): Remove call to
  9979. target_supports_btrace.
  9980. (supported_btrace_packets): New.
  9981. (handle_query): Call supported_btrace_packets.
  9982. * target.h: include btrace-common.h.
  9983. (btrace_target_info): Removed.
  9984. (supports_btrace, target_supports_btrace): Update parameters.
  9985. 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
  9986. * Makefile.in (SFILES): Add common/btrace-common.c.
  9987. (OBS): Add common/btrace-common.o.
  9988. (btrace-common.o): Add build rules.
  9989. * linux-low: Include btrace-common.h.
  9990. (linux_low_read_btrace): Use struct btrace_data. Call
  9991. btrace_data_init and btrace_data_fini.
  9992. 2015-02-06 Pedro Alves <palves@redhat.com>
  9993. * thread-db.c (find_new_threads_callback): Add debug output.
  9994. 2015-02-04 Pedro Alves <palves@redhat.com>
  9995. * linux-low.c (handle_extended_wait): Don't resume LWPs here.
  9996. (resume_stopped_resumed_lwps): New function.
  9997. (linux_wait_for_event_filtered): Use it.
  9998. 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
  9999. * Makefile.in (SFILES): Add linux-personality.c.
  10000. (linux-personality.o): New rule.
  10001. * configure.srv (srv_linux_obj): Add linux-personality.o to the
  10002. list of objects to be built.
  10003. * linux-low.c: Include nat/linux-personality.h.
  10004. (linux_create_inferior): Remove code to disable address space
  10005. randomization (moved to ../nat/linux-personality.c). Create
  10006. cleanup to disable address space randomization.
  10007. 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
  10008. * Makefile.in (posix-strerror.o): New rule.
  10009. (mingw-strerror.o): Likewise.
  10010. * configure: Regenerated.
  10011. * configure.ac: Source file ../common/common.host. Initialize new
  10012. variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
  10013. 2015-01-14 Yao Qi <yao@codesourcery.com>
  10014. * Makefile.in (SFILES): Add nat/ppc-linux.c.
  10015. (ppc-linux.o): New rule.
  10016. * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
  10017. * configure.ac: AC_CHECK_FUNCS(getauxval).
  10018. * config.in: Re-generated.
  10019. * configure: Re-generated.
  10020. * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
  10021. ppc64_64bit_inferior_p
  10022. 2015-01-14 Yao Qi <yao@codesourcery.com>
  10023. * linux-ppc-low.c: Include "nat/ppc-linux.h".
  10024. (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
  10025. (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
  10026. (PT_ORIG_R3, PT_TRAP): Likewise.
  10027. (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
  10028. (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
  10029. (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
  10030. 2015-01-10 Joel Brobecker <brobecker@adacore.com>
  10031. * i387-fp.c (i387_cache_to_xsave): In look over
  10032. num_avx512_zmmh_high_registers, replace use of struct i387_xsave
  10033. zmmh_low_space field by use of zmmh_high_space.
  10034. 2015-01-09 Pedro Alves <palves@redhat.com>
  10035. * linux-low.c (step_over_bkpt): Move higher up in the file.
  10036. (handle_extended_wait): Don't store the stop_pc here.
  10037. (get_stop_pc): Adjust comments and rename to ...
  10038. (check_stopped_by_breakpoint): ... this. Record whether the LWP
  10039. stopped for a software breakpoint or hardware breakpoint.
  10040. (thread_still_has_status_pending_p): New function.
  10041. (status_pending_p_callback): Use
  10042. thread_still_has_status_pending_p. If the event is no longer
  10043. interesting, resume the LWP.
  10044. (handle_tracepoints): Add assert.
  10045. (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
  10046. (wstatus_maybe_breakpoint): New function.
  10047. (cancel_breakpoint): Delete function.
  10048. (check_stopped_by_watchpoint): New function, factored out from
  10049. linux_low_filter_event.
  10050. (lp_status_maybe_breakpoint): Delete function.
  10051. (linux_low_filter_event): Remove filter_ptid argument.
  10052. Leave thread group exits pending here. Store the LWP's stop PC.
  10053. Always leave events pending.
  10054. (linux_wait_for_event_filtered): Pull all events out of the
  10055. kernel, and leave them all pending.
  10056. (count_events_callback, select_event_lwp_callback): Consider all
  10057. events.
  10058. (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
  10059. (select_event_lwp): Only give preference to the stepping LWP in
  10060. all-stop mode. Adjust comments.
  10061. (ignore_event): New function.
  10062. (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
  10063. references to cancel_breakpoints. Adjust to renames. Also give
  10064. equal priority to all LWPs that have had events in non-stop mode.
  10065. If reporting a software breakpoint event, unadjust the LWP's PC.
  10066. (linux_wait): If linux_wait_1 returned an ignored event, retry.
  10067. (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
  10068. Adjust.
  10069. (linux_resume_one_lwp): Store the LWP's PC. Adjust.
  10070. (resume_status_pending_p): Use thread_still_has_status_pending_p.
  10071. (linux_stopped_by_watchpoint): Adjust.
  10072. (linux_target_ops): Remove reference to linux_cancel_breakpoints.
  10073. * linux-low.h (enum lwp_stop_reason): New.
  10074. (struct lwp_info) <stop_pc>: Adjust comment.
  10075. <stopped_by_watchpoint>: Delete field.
  10076. <stop_reason>: New field.
  10077. * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
  10078. * mem-break.c (software_breakpoint_inserted_here)
  10079. (hardware_breakpoint_inserted_here): New function.
  10080. * mem-break.h (software_breakpoint_inserted_here)
  10081. (hardware_breakpoint_inserted_here): Declare.
  10082. * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
  10083. (cancel_breakpoints): Delete.
  10084. * tracepoint.c (clear_installed_tracepoints, stop_tracing)
  10085. (upload_fast_traceframes): Remove references to
  10086. cancel_breakpoints.
  10087. 2015-01-09 Pedro Alves <palves@redhat.com>
  10088. * thread-db.c (find_new_threads_callback): Ignore thread if the
  10089. kernel thread ID is -1.
  10090. 2015-01-09 Pedro Alves <palves@redhat.com>
  10091. * linux-low.c (linux_attach_fail_reason_string): Move to
  10092. nat/linux-ptrace.c, and rename.
  10093. (linux_attach_lwp): Update comment.
  10094. (attach_proc_task_lwp_callback): New function.
  10095. (linux_attach): Adjust to rename and use
  10096. linux_proc_attach_tgid_threads.
  10097. (linux_attach_fail_reason_string): Delete declaration.
  10098. 2015-01-01 Joel Brobecker <brobecker@adacore.com>
  10099. * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
  10100. * server.c (gdbserver_version): Likewise.
  10101. 2014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
  10102. * remote-utils.c: Include ctype.h.
  10103. (input_interrupt): Explicitly handle the case when the char
  10104. received is the NUL byte. Improve the printing of non-ASCII
  10105. characters.
  10106. 2014-12-16 Joel Brobecker <brobecker@adacore.com>
  10107. * linux-low.c (linux_low_filter_event): Update call to
  10108. linux_enable_event_reporting following the addition of
  10109. a new parameter to that function.
  10110. 2014-12-16 Catalin Udma <catalin.udma@freescale.com>
  10111. PR server/17457
  10112. * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
  10113. (AARCH64_FPCR_REGNO): Likewise.
  10114. (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
  10115. (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
  10116. (aarch64_store_fpregset): Likewise.
  10117. 2014-12-15 Joel Brobecker <brobecker@adacore.com>
  10118. * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
  10119. Remove FIXME comment about assumption about N.
  10120. 2014-12-13 Joel Brobecker <brobecker@adacore.com>
  10121. * configure.ac: If large-file support is disabled in GDBserver,
  10122. pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
  10123. * configure: Regenerate.
  10124. 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
  10125. * linux-low.c (regsets_fetch_inferior_registers): Suppress the
  10126. warning upon ENODATA from ptrace.
  10127. * linux-s390-low.c (s390_store_tdb): New.
  10128. (s390_regsets): Add regset for NT_S390_TDB.
  10129. 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
  10130. * linux-low.c (regsets_store_inferior_registers): Skip regsets
  10131. without a fill_function.
  10132. * linux-s390-low.c (s390_fill_last_break): Remove.
  10133. (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
  10134. (s390_arch_setup): Use regset's size instead of fill_function for
  10135. loop end condition.
  10136. 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
  10137. * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
  10138. the regset's store function when ptrace returned an error.
  10139. * regcache.c (get_thread_regcache): Invalidate register cache
  10140. before fetching inferior's registers.
  10141. 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
  10142. * linux-low.c (regsets_fetch_inferior_registers): Rephrase
  10143. while-loop as for-loop.
  10144. (regsets_store_inferior_registers): Likewise.
  10145. 2014-11-28 Yao Qi <yao@codesourcery.com>
  10146. * configure.ac(AC_CHECK_FUNCS): Remove readlink.
  10147. * config.in, configure: Re-generate.
  10148. * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
  10149. is defined.
  10150. 2014-11-21 Yao Qi <yao@codesourcery.com>
  10151. * configure.ac: Don't invoke AC_FUNC_ALLOCA.
  10152. (AC_CHECK_HEADERS): Remove malloc.h.
  10153. * configure: Re-generated.
  10154. * config.in: Re-generated.
  10155. * server.h: Don't include alloca.h and malloc.h.
  10156. * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
  10157. Don't include malloc.h.
  10158. 2014-11-17 Joel Brobecker <brobecker@adacore.com>
  10159. * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
  10160. corresponding ERRNO check in same block.
  10161. 2014-11-12 Pedro Alves <palves@redhat.com>
  10162. * server.c (cont_thread): Update comment.
  10163. (start_inferior, attach_inferior): No longer clear cont_thread.
  10164. (handle_v_cont): No longer set cont_thread.
  10165. (captured_main): Clear cont_thread each time a GDB connects.
  10166. 2014-11-12 Pedro Alves <palves@redhat.com>
  10167. * linux-low.c (linux_wait_1): Don't force a wait for the Hc
  10168. thread, and don't resume all threads if the Hc thread has exited.
  10169. 2014-11-12 Pedro Alves <palves@redhat.com>
  10170. * linux-low.c (linux_request_interrupt): Always send a SIGINT to
  10171. the process group instead of to a specific LWP.
  10172. 2014-10-15 Pedro Alves <palves@redhat.com>
  10173. PR server/17487
  10174. * win32-arm-low.c (arm_set_thread_context): Remove current_event
  10175. parameter.
  10176. (arm_set_thread_context): Delete.
  10177. (the_low_target): Adjust.
  10178. * win32-i386-low.c (debug_registers_changed)
  10179. (debug_registers_used): Delete.
  10180. (update_debug_registers_callback): New function.
  10181. (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
  10182. needing to update their debug registers.
  10183. (win32_get_current_dr): New function.
  10184. (x86_dr_low_get_addr, x86_dr_low_get_control)
  10185. (x86_dr_low_get_status): Fetch the debug register from the thread
  10186. record's context.
  10187. (i386_initial_stuff): Adjust.
  10188. (i386_get_thread_context): Remove current_event parameter. Don't
  10189. clear debug_registers_changed nor copy DR values to
  10190. debug_reg_state.
  10191. (i386_set_thread_context): Delete.
  10192. (i386_prepare_to_resume): New function.
  10193. (i386_thread_added): Mark the thread as needing to update irs
  10194. debug registers.
  10195. (the_low_target): Remove i386_set_thread_context and install
  10196. i386_prepare_to_resume.
  10197. * win32-low.c (win32_get_thread_context): Adjust.
  10198. (win32_set_thread_context): Use SetThreadContext
  10199. directly.
  10200. (win32_prepare_to_resume): New function.
  10201. (win32_require_context): New function, factored out from ...
  10202. (thread_rec): ... this.
  10203. (continue_one_thread): Call win32_prepare_to_resume on each thread
  10204. we're about to continue.
  10205. (win32_resume): Call win32_prepare_to_resume on the event thread.
  10206. * win32-low.h (struct win32_thread_info)
  10207. <debug_registers_changed>: New field.
  10208. (struct win32_target_ops): Change prototype of set_thread_context,
  10209. delete set_thread_context and add prepare_to_resume.
  10210. (win32_require_context): New declaration.
  10211. 2014-10-08 Gary Benson <gbenson@redhat.com>
  10212. * server.h: Do not include common-exceptions.h.
  10213. 2014-10-08 Gary Benson <gbenson@redhat.com>
  10214. * server.h: Do not include cleanups.h.
  10215. 2014-09-30 James Hogan <james.hogan@imgtec.com>
  10216. * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
  10217. mips64-dsp-linux.c.
  10218. 2014-09-23 Yao Qi <yao@codesourcery.com>
  10219. * linux-low.c (lp_status_maybe_breakpoint): New function.
  10220. (linux_low_filter_event): Call lp_status_maybe_breakpoint.
  10221. (count_events_callback): Likewise.
  10222. (select_event_lwp_callback): Likewise.
  10223. (cancel_breakpoints_callback): Likewise.
  10224. 2014-09-19 Don Breazeal <donb@codesourcery.com>
  10225. * linux-low.c (handle_extended_wait): Call
  10226. linux_ptrace_get_extended_event.
  10227. (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
  10228. linux_is_extended_waitstatus.
  10229. 2014-09-16 Joel Brobecker <brobecker@adacore.com>
  10230. * Makefile.in (CPPFLAGS): Define.
  10231. (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
  10232. (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
  10233. 2014-09-16 Gary Benson <gbenson@redhat.com>
  10234. * inferiors.h (current_inferior): Renamed as...
  10235. (current_thread): New variable. All uses updated.
  10236. * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
  10237. (maybe_move_out_of_jump_pad): Likewise.
  10238. (cancel_breakpoint): Likewise.
  10239. (linux_low_filter_event): Likewise.
  10240. (wait_for_sigstop): Likewise.
  10241. (linux_resume_one_lwp): Likewise.
  10242. (need_step_over_p): Likewise.
  10243. (start_step_over): Likewise.
  10244. (linux_stabilize_threads): Renamed save_inferior as saved_thread.
  10245. * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
  10246. * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
  10247. and save_inferior as saved_thread.
  10248. * regcache.c (get_thread_regcache): Renamed saved_inferior as
  10249. saved_thread.
  10250. (regcache_invalidate_thread): Likewise.
  10251. * remote-utils.c (prepare_resume_reply): Likewise.
  10252. * thread-db.c (thread_db_get_tls_address): Likewise.
  10253. (disable_thread_event_reporting): Likewise.
  10254. (remove_thread_event_breakpoints): Likewise.
  10255. * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
  10256. as saved_thread.
  10257. * target.h (set_desired_inferior): Renamed as...
  10258. (set_desired_thread): New declaration. All uses updated.
  10259. * server.c (myresume): Updated comment to reference thread instead
  10260. of inferior.
  10261. (handle_serial_event): Likewise.
  10262. (handle_target_event): Likewise.
  10263. 2014-09-12 Tom Tromey <tromey@redhat.com>
  10264. Gary Benson <gbenson@redhat.com>
  10265. * regcache.h: Include common-regcache.h.
  10266. (regcache_read_pc): Don't declare.
  10267. * regcache.c (get_thread_regcache_for_ptid): New function.
  10268. 2014-09-11 Tom Tromey <tromey@redhat.com>
  10269. Gary Benson <gbenson@redhat.com>
  10270. * symbol.c: New file.
  10271. * Makefile.in (SFILES): Add symbol.c.
  10272. (OBS): Add symbol.o.
  10273. 2014-09-11 Gary Benson <gbenson@redhat.com>
  10274. * target.c (target_stop_ptid, target_continue_ptid): New
  10275. functions.
  10276. 2014-09-11 Tom Tromey <tromey@redhat.com>
  10277. Gary Benson <gbenson@redhat.com>
  10278. * target.h: Include target/target.h.
  10279. * target.c (target_read_memory, target_read_uint32)
  10280. (target_write_memory): New functions.
  10281. 2014-09-11 Gary Benson <gbenson@redhat.com>
  10282. * server.h (debug_hw_points): Don't declare.
  10283. * server.c (debug_hw_points): Don't define. Replace all uses
  10284. with show_debug_regs.
  10285. * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
  10286. all uses with show_debug_regs.
  10287. 2014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
  10288. * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
  10289. endianness into account.
  10290. (ppc_supply_ptrace_register): Likewise.
  10291. 2014-09-03 James Hogan <james.hogan@imgtec.com>
  10292. * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
  10293. to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
  10294. 2014-09-03 Gary Benson <gbenson@redhat.com>
  10295. * linux-x86-low.c (x86_linux_prepare_to_resume): Use
  10296. ALL_DEBUG_ADDRESS_REGISTERS.
  10297. 2014-09-02 Gary Benson <gbenson@redhat.com>
  10298. * i386-low.h: Renamed as...
  10299. * x86-low.h: New file. All type, function and variable name
  10300. prefixes changed from "i386_" to "x86_". All references updated.
  10301. * i386-low.c: Renamed as...
  10302. * x86-low.c: New file. All type, function and variable name
  10303. prefixes changed from "i386_" to "x86_". All references updated.
  10304. 2014-09-02 Gary Benson <gbenson@redhat.com>
  10305. * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
  10306. (x86_linux_new_thread): Likewise.
  10307. 2014-08-29 Gary Benson <gbenson@redhat.com>
  10308. * server.h (setjmp.h): Do not include.
  10309. (toplevel): Do not declare.
  10310. (common-exceptions.h): Include.
  10311. (cleanups.h): Likewise.
  10312. * server.c (toplevel): Do not define.
  10313. (exit_code): New static global.
  10314. (detach_or_kill_for_exit_cleanup): New function.
  10315. (main): New function. Original main renamed to...
  10316. (captured_main): New function.
  10317. * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
  10318. 2014-08-29 Gary Benson <gbenson@redhat.com>
  10319. * Makefile.in (SFILES): Add common/common-exceptions.c.
  10320. (OBS): Add common-exceptions.o.
  10321. (common-exceptions.o): New rule.
  10322. * utils.c (prepare_to_throw_exception): New function.
  10323. 2014-08-29 Gary Benson <gbenson@redhat.com>
  10324. * config.in: Regenerate.
  10325. * configure: Likewise.
  10326. 2014-08-29 Gary Benson <gbenson@redhat.com>
  10327. * Makefile.in (SFILES): Add common/cleanups.c.
  10328. (OBS): cleanups.o.
  10329. (cleanups.o): New rule.
  10330. 2014-08-29 Gary Benson <gbenson@redhat.com>
  10331. * utils.c (internal_vwarning): New function.
  10332. 2014-08-28 Gary Benson <gbenson@redhat.com>
  10333. * utils.h (fatal): Remove declaration.
  10334. * utils.c (fatal): Remove function.
  10335. 2014-08-28 Gary Benson <gbenson@redhat.com>
  10336. * tracepoint.c (gdb_agent_init): Replace fatal with
  10337. perror_with_name.
  10338. (initialize_tracepoint): Likewise.
  10339. 2014-08-28 Gary Benson <gbenson@redhat.com>
  10340. * remote-utils.c (remote_prepare): Replace fatal with error.
  10341. 2014-08-28 Gary Benson <gbenson@redhat.com>
  10342. * linux-low.c (linux_async): Replace fatal with warning.
  10343. Tidy up and return.
  10344. (linux_start_non_stop): Return -1 if linux_async failed.
  10345. 2014-08-28 Gary Benson <gbenson@redhat.com>
  10346. * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
  10347. gdb_assert.
  10348. (i386_dr_low_get_addr): Remove vague comment.
  10349. * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
  10350. gdb_assert.
  10351. 2014-08-28 Gary Benson <gbenson@redhat.com>
  10352. * inferiors.c (get_thread_process): Replace check with gdb_assert.
  10353. * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
  10354. internal_error.
  10355. (linux_resume_one_lwp): Likewise.
  10356. * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
  10357. gdb_assert.
  10358. * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
  10359. with internal_error.
  10360. * regcache.c (get_thread_regcache): Replace check with gdb_assert.
  10361. (init_register_cache): Replace fatal with gdb_assert_not_reached.
  10362. (find_register_by_name): Replace fatal with internal_error.
  10363. (find_regno): Likewise.
  10364. * tdesc.c (init_target_desc): Replace check with gdb_assert.
  10365. * thread-db.c (thread_db_create_event): Likewise.
  10366. (thread_db_load_search): Likewise.
  10367. (try_thread_db_load_1): Likewise.
  10368. * tracepoint.c (get_jump_space_head): Replace fatal with
  10369. internal_error.
  10370. (claim_trampoline_space): Likewise.
  10371. (have_fast_tracepoint_trampoline_buffer): Likewise.
  10372. (cmd_qtstart): Likewise.
  10373. (stop_tracing): Likewise.
  10374. (fast_tracepoint_collecting): Likewise.
  10375. (target_malloc): Likewise.
  10376. (download_tracepoint): Likewise.
  10377. (download_trace_state_variables): Replace check with gdb_assert.
  10378. (upload_fast_traceframes): Replace fatal with internal_error.
  10379. 2014-08-19 Tom Tromey <tromey@redhat.com>
  10380. Gary Benson <gbenson@redhat.com>
  10381. * Makefile.in (SFILES): Add common/common-debug.c.
  10382. (OBS): Add common-debug.o.
  10383. (common-debug.o): New rule.
  10384. * debug.h (debug_printf): Don't declare.
  10385. * debug.c (debug_printf): Renamed and rewritten as...
  10386. (debug_vprintf): New function.
  10387. 2014-08-19 Gary Benson <gbenson@redhat.com>
  10388. * utils.h: Do not include print-utils.h.
  10389. 2014-08-19 Tom Tromey <tromey@redhat.com>
  10390. Gary Benson <gbenson@redhat.com>
  10391. * server.h: Add static assertion.
  10392. (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
  10393. 2014-08-19 Tom Tromey <tromey@redhat.com>
  10394. Gary Benson <gbenson@redhat.com>
  10395. * Makefile.in (SFILES): Add common/errors.c.
  10396. (OBS): Add errors.o.
  10397. (IPA_OBS): Add errors-ipa.o.
  10398. (errors.o): New rule.
  10399. (errors-ipa.o): Likewise.
  10400. * utils.h (perror_with_name, error, warning): Don't declare.
  10401. * utils.c (warning): Renamed and rewritten as...
  10402. (vwarning): New function.
  10403. (error): Renamed and rewritten as...
  10404. (verror): New function.
  10405. (internal_error): Renamed and rewritten as...
  10406. (internal_verror): New function.
  10407. 2014-08-07 Gary Benson <gbenson@redhat.com>
  10408. * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
  10409. * configure: Regenerate.
  10410. * config.in: Likewise.
  10411. * server.h: Do not include errno.h.
  10412. * event-loop.c: Likewise.
  10413. * hostio-errno.c: Likewise.
  10414. * linux-low.c: Likewise.
  10415. * remote-utils.c: Likewise.
  10416. * spu-low.c: Likewise.
  10417. * utils.c: Likewise.
  10418. * gdbreplay.c: Unconditionally include errno.h.
  10419. 2014-08-07 Gary Benson <gbenson@redhat.com>
  10420. * server.h: Do not include string.h.
  10421. * event-loop.c: Likewise.
  10422. * linux-low.c: Likewise.
  10423. * regcache.c: Likewise.
  10424. * remote-utils.c: Likewise.
  10425. * spu-low.c: Likewise.
  10426. * utils.c: Likewise.
  10427. 2014-08-07 Gary Benson <gbenson@redhat.com>
  10428. * server.h: Do not include gdb_assert.h.
  10429. 2014-08-07 Gary Benson <gbenson@redhat.com>
  10430. * server.h: Do not include common-utils.h.
  10431. 2014-08-07 Gary Benson <gbenson@redhat.com>
  10432. * server.h: Do not include ptid.h.
  10433. * notif.h: Likewise.
  10434. 2014-08-07 Gary Benson <gbenson@redhat.com>
  10435. * server.h: Do not include gdb_locale.h.
  10436. 2014-08-07 Gary Benson <gbenson@redhat.com>
  10437. * server.h: Do not include gdb/signals.h.
  10438. * win32-low.c: Likewise.
  10439. 2014-08-07 Gary Benson <gbenson@redhat.com>
  10440. * server.h: Do not include pathmax.h.
  10441. 2014-08-07 Gary Benson <gbenson@redhat.com>
  10442. * server.h: Do not include libiberty.h.
  10443. * linux-bfin-low.c: Likewise.
  10444. 2014-08-07 Gary Benson <gbenson@redhat.com>
  10445. * server.h: Do not include ansidecl.h.
  10446. 2014-08-07 Gary Benson <gbenson@redhat.com>
  10447. * linux-x86-low.c: Do not include stddef.h.
  10448. * lynx-ppc-low.c: Likewise.
  10449. * tracepoint.c: Likewise.
  10450. 2014-08-07 Gary Benson <gbenson@redhat.com>
  10451. * server.h: Do not include stdarg.h.
  10452. * nto-low.c: Likewise.
  10453. 2014-08-07 Gary Benson <gbenson@redhat.com>
  10454. * server.h: Do not include stdlib.h.
  10455. * inferiors.c: Likewise.
  10456. * linux-low.c: Likewise.
  10457. * regcache.c: Likewise.
  10458. * spu-low.c: Likewise.
  10459. * tracepoint.c: Likewise.
  10460. * utils.c: Likewise.
  10461. 2014-08-07 Gary Benson <gbenson@redhat.com>
  10462. * server.h: Do not include stdio.h.
  10463. * linux-low.c: Likewise.
  10464. * remote-utils.c: Likewise.
  10465. * spu-low.c: Likewise.
  10466. * utils.c: Likewise.
  10467. * wincecompat.c: Likewise.
  10468. 2014-08-06 Gary Benson <gbenson@redhat.com>
  10469. * regcache.c (init_register_cache): Move conditionals inside if.
  10470. 2014-08-06 Gary Benson <gbenson@redhat.com>
  10471. * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
  10472. 2014-07-31 Gary Benson <gbenson@redhat.com>
  10473. * ax.h: Do not include server.h.
  10474. * gdbthread.h: Likewise.
  10475. * lynx-low.h: Likewise.
  10476. * notif.h: Likewise.
  10477. 2014-07-30 Gary Benson <gbenson@redhat.com>
  10478. * server.h: Include common-defs.h.
  10479. Do not include config.h or build-gnulib-gdbserver/config.h.
  10480. 2014-07-30 Gary Benson <gbenson@redhat.com>
  10481. * hostio-errno.c: Move server.h to top of includes list.
  10482. * inferiors.c: Likewise.
  10483. * linux-x86-low.c: Likewise.
  10484. * notif.c: Include server.h.
  10485. 2014-07-24 Tom Tromey <tromey@redhat.com>
  10486. Gary Benson <gbenson@redhat.com>
  10487. * server.h (CORE_ADDR): Now unsigned.
  10488. 2014-07-16 Pedro Alves <palves@redhat.com>
  10489. * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
  10490. 2014-07-15 Pedro Alves <palves@redhat.com>
  10491. * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
  10492. copy.
  10493. 2014-07-11 Pedro Alves <palves@redhat.com>
  10494. * linux-low.c (kill_wait_lwp): New function, based on
  10495. kill_one_lwp_callback, but use my_waitpid directly.
  10496. (kill_one_lwp_callback, linux_kill): Use it.
  10497. 2014-06-23 Pedro Alves <palves@redhat.com>
  10498. * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
  10499. before setting DR0..DR3.
  10500. 2014-06-20 Gary Benson <gbenson@redhat.com>
  10501. * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
  10502. * configure: Regenerated.
  10503. * config.in: Likewise.
  10504. 2014-06-20 Gary Benson <gbenson@redhat.com>
  10505. * Makefile.in (SFILES): Update locations for files moved
  10506. from common to nat.
  10507. (object file files): Reordered.
  10508. 2014-06-20 Gary Benson <gbenson@redhat.com>
  10509. * i386-low.h (i386_dr_low_can_set_addr): Removed.
  10510. (i386_dr_low_set_addr): Likewise.
  10511. (i386_dr_low_get_addr): Likewise.
  10512. (i386_dr_low_can_set_control): Likewise.
  10513. (i386_dr_low_set_control): Likewise.
  10514. (i386_dr_low_get_control): Likewise.
  10515. (i386_dr_low_get_status): Likewise.
  10516. (i386_get_debug_register_length): Likewise.
  10517. * linux-x86-low.c (i386_dr_low_set_addr):
  10518. Changed signature. Made static.
  10519. (i386_dr_low_get_addr): Likewise.
  10520. (i386_dr_low_set_control): Likewise.
  10521. (i386_dr_low_get_control): Likewise.
  10522. (i386_dr_low_get_status): Likewise.
  10523. (i386_dr_low): New global variable.
  10524. * win32-i386-low.c (i386_dr_low_set_addr):
  10525. Changed signature. Made static.
  10526. (i386_dr_low_get_addr): Likewise.
  10527. (i386_dr_low_set_control): Likewise.
  10528. (i386_dr_low_get_control): Likewise.
  10529. (i386_dr_low_get_status): Likewise.
  10530. (i386_dr_low): New global variable.
  10531. 2014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
  10532. * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
  10533. * Makefile.in (AR, AR_FLAGS): Define.
  10534. * configure: Regenerate.
  10535. 2014-06-19 Gary Benson <gbenson@redhat.com>
  10536. * Makefile.in (i386-dregs.o): New rule.
  10537. * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
  10538. * i386-low.c (target.h): Remove include.
  10539. (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
  10540. (DR_CONTROL_SHIFT): Likewise.
  10541. (DR_CONTROL_SIZE): Likewise.
  10542. (DR_RW_EXECUTE): Likewise.
  10543. (DR_RW_WRITE): Likewise.
  10544. (DR_RW_READ): Likewise.
  10545. (DR_RW_IORW): Likewise.
  10546. (DR_LEN_1): Likewise.
  10547. (DR_LEN_2): Likewise.
  10548. (DR_LEN_4): Likewise.
  10549. (DR_LEN_8): Likewise.
  10550. (DR_LOCAL_ENABLE_SHIFT): Likewise.
  10551. (DR_GLOBAL_ENABLE_SHIFT): Likewise.
  10552. (DR_ENABLE_SIZE): Likewise.
  10553. (DR_LOCAL_SLOWDOWN): Likewise.
  10554. (DR_GLOBAL_SLOWDOWN): Likewise.
  10555. (DR_CONTROL_RESERVED): Likewise.
  10556. (I386_DR_CONTROL_MASK): Likewise.
  10557. (I386_DR_VACANT): Likewise.
  10558. (I386_DR_LOCAL_ENABLE): Likewise.
  10559. (I386_DR_GLOBAL_ENABLE): Likewise.
  10560. (I386_DR_DISABLE): Likewise.
  10561. (I386_DR_SET_RW_LEN): Likewise.
  10562. (I386_DR_GET_RW_LEN): Likewise.
  10563. (I386_DR_WATCH_HIT): Likewise.
  10564. (i386_wp_op_t): Likewise.
  10565. (i386_show_dr): Likewise.
  10566. (i386_length_and_rw_bits): Likewise.
  10567. (i386_insert_aligned_watchpoint): Likewise.
  10568. (i386_remove_aligned_watchpoint): Likewise.
  10569. (i386_handle_nonaligned_watchpoint): Likewise.
  10570. i386_update_inferior_debug_regs(): Likewise.
  10571. (i386_dr_insert_watchpoint): Likewise.
  10572. (i386_dr_remove_watchpoint): Likewise.
  10573. (i386_dr_region_ok_for_watchpoint): Likewise.
  10574. (i386_dr_stopped_data_address): Likewise.
  10575. (i386_dr_stopped_by_watchpoint): Likewise.
  10576. 2014-06-19 Gary Benson <gbenson@redhat.com>
  10577. * i386-low.c (i386_dr_show): Renamed to
  10578. i386_show_dr and made static. All uses updated.
  10579. (i386_dr_length_and_rw_bits): Renamed to
  10580. i386_length_and_rw_bits and made static.
  10581. All uses updated.
  10582. (i386_dr_insert_aligned_watchpoint): Renamed to
  10583. i386_insert_aligned_watchpoint and made static.
  10584. All uses updated.
  10585. (i386_dr_remove_aligned_watchpoint): Renamed to
  10586. i386_remove_aligned_watchpoint and made static.
  10587. All uses updated.
  10588. (i386_dr_update_inferior_debug_regs): Renamed to
  10589. i386_update_inferior_debug_regs and made static.
  10590. All uses updated.
  10591. 2014-06-18 Gary Benson <gbenson@redhat.com>
  10592. * i386-low.h (i386_dr_low_can_set_addr): New macro.
  10593. (i386_dr_low_can_set_control): Likewise.
  10594. (i386_get_debug_register_length): Likewise.
  10595. * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
  10596. (i386_dr_low_can_set_control): Likewise.
  10597. (i386_get_debug_register_length): Likewise.
  10598. 2014-06-17 Gary Benson <gbenson@redhat.com>
  10599. * i386-low.h (i386-dregs.h): New include.
  10600. (DR_FIRSTADDR): Now in i386-dregs.h.
  10601. (DR_LASTADDR): Likewise.
  10602. (DR_NADDR): Likewise.
  10603. (DR_STATUS): Likewise.
  10604. (DR_CONTROL): Likewise.
  10605. (i386_debug_reg_state): Likewise.
  10606. (i386_dr_insert_watchpoint): Likewise.
  10607. (i386_dr_remove_watchpoint): Likewise.
  10608. (i386_dr_region_ok_for_watchpoint): Likewise.
  10609. (i386_dr_stopped_data_address): Likewise.
  10610. (i386_dr_stopped_by_watchpoint): Likewise.
  10611. * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
  10612. 2014-06-18 Gary Benson <gbenson@redhat.com>
  10613. * i386-low.h (i386_low_insert_watchpoint): Renamed to
  10614. i386_dr_insert_watchpoint.
  10615. (i386_low_remove_watchpoint): Renamed to
  10616. i386_dr_remove_watchpoint.
  10617. (i386_low_region_ok_for_watchpoint): Renamed to
  10618. i386_dr_region_ok_for_watchpoint.
  10619. (i386_low_stopped_data_address): Renamed to
  10620. i386_dr_stopped_data_address.
  10621. (i386_low_stopped_by_watchpoint): Renamed to
  10622. i386_dr_stopped_by_watchpoint.
  10623. * i386-low.c (i386_show_dr): Renamed to
  10624. i386_dr_show and made nonstatic. All uses updated.
  10625. (i386_length_and_rw_bits): Renamed to
  10626. i386_dr_length_and_rw_bits and made nonstatic.
  10627. All uses updated.
  10628. (i386_insert_aligned_watchpoint): Renamed to
  10629. i386_dr_insert_aligned_watchpoint and made nonstatic.
  10630. All uses updated.
  10631. (i386_remove_aligned_watchpoint): Renamed to
  10632. i386_dr_remove_aligned_watchpoint and made nonstatic.
  10633. All uses updated.
  10634. (i386_update_inferior_debug_regs): Renamed to
  10635. i386_dr_update_inferior_debug_regs and made nonstatic.
  10636. All uses updated.
  10637. (i386_low_insert_watchpoint): Renamed to
  10638. i386_dr_insert_watchpoint. All uses updated.
  10639. (i386_low_remove_watchpoint): Renamed to
  10640. i386_dr_remove_watchpoint. All uses updated.
  10641. (i386_low_region_ok_for_watchpoint): Renamed to
  10642. i386_dr_region_ok_for_watchpoint. All uses updated.
  10643. (i386_low_stopped_data_address): Renamed to
  10644. i386_dr_stopped_data_address. All uses updated.
  10645. (i386_low_stopped_by_watchpoint): Renamed to
  10646. i386_dr_stopped_by_watchpoint. All uses updated.
  10647. 2014-06-18 Gary Benson <gbenson@redhat.com>
  10648. * i386-low.c (i386_dr_low_can_set_addr): New macro.
  10649. (i386_dr_low_can_set_control): Likewise.
  10650. (i386_insert_aligned_watchpoint): New check.
  10651. 2014-06-18 Gary Benson <gbenson@redhat.com>
  10652. * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
  10653. Renamed to state.
  10654. 2014-06-18 Gary Benson <gbenson@redhat.com>
  10655. * i386-low.c (i386_length_and_rw_bits): Use internal_error
  10656. instead of fatal and error.
  10657. (i386_handle_nonaligned_watchpoint): Likewise.
  10658. 2014-06-18 Gary Benson <gbenson@redhat.com>
  10659. * i386-low.c (i386_get_debug_register_length): New macro.
  10660. (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
  10661. (i386_show_dr): Use debug_printf instead of fprintf. Use
  10662. phex to format values.
  10663. 2014-06-18 Gary Benson <gbenson@redhat.com>
  10664. * i386-low.h: Comment changes.
  10665. * i386-low.c: Likewise.
  10666. 2014-06-18 Gary Benson <gbenson@redhat.com>
  10667. * i386-low.c: Whitespace changes.
  10668. 2014-06-12 Tom Tromey <tromey@redhat.com>
  10669. * utils.c (freeargv): Remove.
  10670. 2014-06-12 Tom Tromey <tromey@redhat.com>
  10671. * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
  10672. * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
  10673. (parse_debug_format_options): Likewise.
  10674. (gdbserver_usage): Likewise.
  10675. * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
  10676. (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
  10677. (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
  10678. against libiberty.
  10679. ($(LIBGNU)): Depend on libiberty.
  10680. (all-lib): Recurse into all subdirs.
  10681. (install-only): Invoke "install" target in subdirs.
  10682. (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
  10683. targets.
  10684. * configure: Rebuild.
  10685. * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
  10686. for vasprintf, vsnprintf, or gettimeofday.
  10687. * configure.srv: Don't add safe-ctype.o or lbasename.o to
  10688. srv_tgtobj.
  10689. 2014-06-05 Joel Brobecker <brobecker@adacore.com>
  10690. * development.sh: Delete.
  10691. * Makefile.in (config.status): Adjust dependency on development.sh.
  10692. * configure.ac: Adjust development.sh source call.
  10693. * configure: Regenerate.
  10694. 2014-06-02 Pedro Alves <palves@redhat.com>
  10695. * ax.c (gdb_free_agent_expr): New function.
  10696. * ax.h (gdb_free_agent_expr): New declaration.
  10697. * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
  10698. list.
  10699. (clear_breakpoint_conditions, clear_breakpoint_commands): Make
  10700. static.
  10701. (clear_breakpoint_conditions_and_commands): New function.
  10702. * mem-break.h (clear_breakpoint_conditions): Delete declaration.
  10703. (clear_breakpoint_conditions_and_commands): New declaration.
  10704. 2014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
  10705. * linux-aarch64-low.c (asm/ptrace.h): Include.
  10706. 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
  10707. Fix TLS access for -static -pthread.
  10708. * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
  10709. (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
  10710. (thread_db_load_search, try_thread_db_load_1): Initialize it.
  10711. 2014-05-20 Pedro Alves <palves@redhat.com>
  10712. * linux-aarch64-low.c (aarch64_insert_point)
  10713. (aarch64_remove_point): No longer check whether the type is
  10714. supported here. Adjust to new interface.
  10715. (the_low_target): Install aarch64_supports_z_point_type as
  10716. supports_z_point_type method.
  10717. * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
  10718. (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
  10719. instead of a Z packet char. Adjust.
  10720. (arm_supports_z_point_type): New function.
  10721. (arm_insert_point, arm_remove_point): Adjust to new interface.
  10722. (the_low_target): Install arm_supports_z_point_type.
  10723. * linux-crisv32-low.c (cris_supports_z_point_type): New function.
  10724. (cris_insert_point, cris_remove_point): Adjust to new interface.
  10725. Don't check whether the type is supported here.
  10726. (the_low_target): Install cris_supports_z_point_type.
  10727. * linux-low.c (linux_supports_z_point_type): New function.
  10728. (linux_insert_point, linux_remove_point): Adjust to new interface.
  10729. * linux-low.h (struct linux_target_ops) <insert_point,
  10730. remove_point>: Take an enum raw_bkpt_type instead of a char. Add
  10731. raw_breakpoint pointer parameter.
  10732. <supports_z_point_type>: New method.
  10733. * linux-mips-low.c (mips_supports_z_point_type): New function.
  10734. (mips_insert_point, mips_remove_point): Adjust to new interface.
  10735. Use mips_supports_z_point_type.
  10736. (the_low_target): Install mips_supports_z_point_type.
  10737. * linux-ppc-low.c (the_low_target): Install NULL as
  10738. supports_z_point_type method.
  10739. * linux-s390-low.c (the_low_target): Install NULL as
  10740. supports_z_point_type method.
  10741. * linux-sparc-low.c (the_low_target): Install NULL as
  10742. supports_z_point_type method.
  10743. * linux-x86-low.c (x86_supports_z_point_type): New function.
  10744. (x86_insert_point): Adjust to new insert_point interface. Use
  10745. insert_memory_breakpoint. Adjust to new
  10746. i386_low_insert_watchpoint interface.
  10747. (x86_remove_point): Adjust to remove_point interface. Use
  10748. remove_memory_breakpoint. Adjust to new
  10749. i386_low_remove_watchpoint interface.
  10750. (the_low_target): Install x86_supports_z_point_type.
  10751. * lynx-low.c (lynx_target_ops): Install NULL as
  10752. supports_z_point_type callback.
  10753. * nto-low.c (nto_supports_z_point_type): New.
  10754. (nto_insert_point, nto_remove_point): Adjust to new interface.
  10755. (nto_target_ops): Install nto_supports_z_point_type.
  10756. * mem-break.c: Adjust intro comment.
  10757. (struct raw_breakpoint) <raw_type, size>: New fields.
  10758. <inserted>: Update comment.
  10759. <shlib_disabled>: Delete field.
  10760. (enum bkpt_type) <gdb_breakpoint>: Delete value.
  10761. <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
  10762. gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
  10763. (raw_bkpt_type_to_target_hw_bp_type): New function.
  10764. (find_enabled_raw_code_breakpoint_at): New function.
  10765. (find_raw_breakpoint_at): New type and size parameters. Use them.
  10766. (insert_memory_breakpoint): New function, based off
  10767. set_raw_breakpoint_at.
  10768. (remove_memory_breakpoint): New function.
  10769. (set_raw_breakpoint_at): Reimplement.
  10770. (set_breakpoint): New, based on set_breakpoint_at.
  10771. (set_breakpoint_at): Reimplement.
  10772. (delete_raw_breakpoint): Go through the_target->remove_point
  10773. instead of assuming memory breakpoints.
  10774. (find_gdb_breakpoint_at): Delete.
  10775. (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
  10776. (find_gdb_breakpoint): New function.
  10777. (set_gdb_breakpoint_at): Delete.
  10778. (z_type_supported): New function.
  10779. (set_gdb_breakpoint_1): New function, loosely based off
  10780. set_gdb_breakpoint_at.
  10781. (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
  10782. (delete_gdb_breakpoint_at): Delete.
  10783. (delete_gdb_breakpoint_1): New function, loosely based off
  10784. delete_gdb_breakpoint_at.
  10785. (delete_gdb_breakpoint): New function.
  10786. (clear_gdb_breakpoint_conditions): Rename to ...
  10787. (clear_breakpoint_conditions): ... this. Don't handle a NULL
  10788. breakpoint.
  10789. (add_condition_to_breakpoint): Make static.
  10790. (add_breakpoint_condition): Take a struct breakpoint pointer
  10791. instead of an address. Adjust.
  10792. (gdb_condition_true_at_breakpoint): Rename to ...
  10793. (gdb_condition_true_at_breakpoint_z_type): ... this, and add
  10794. z_type parameter.
  10795. (gdb_condition_true_at_breakpoint): Reimplement.
  10796. (add_breakpoint_commands): Take a struct breakpoint pointer
  10797. instead of an address. Adjust.
  10798. (gdb_no_commands_at_breakpoint): Rename to ...
  10799. (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
  10800. parameter. Return true if no breakpoint was found. Change debug
  10801. output.
  10802. (gdb_no_commands_at_breakpoint): Reimplement.
  10803. (run_breakpoint_commands): Rename to ...
  10804. (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
  10805. and change return type to boolean.
  10806. (run_breakpoint_commands): New function.
  10807. (gdb_breakpoint_here): Also check for Z1 breakpoints.
  10808. (uninsert_raw_breakpoint): Don't try to reinsert a disabled
  10809. breakpoint. Go through the_target->remove_point instead of
  10810. assuming memory breakpoint.
  10811. (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
  10812. software and hardware breakpoints.
  10813. (reinsert_raw_breakpoint): Go through the_target->insert_point
  10814. instead of assuming memory breakpoint.
  10815. (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
  10816. software and hardware breakpoints.
  10817. (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
  10818. Check both software and hardware breakpoints.
  10819. (validate_inserted_breakpoint): Assert the breakpoint is a
  10820. software breakpoint. Set the inserted flag to -1 instead of
  10821. setting shlib_disabled.
  10822. (delete_disabled_breakpoints): Adjust.
  10823. (validate_breakpoints): Only validate software breakpoints.
  10824. Adjust to inserted flag change.
  10825. (check_mem_read, check_mem_write): Skip breakpoint types other
  10826. than software breakpoints. Adjust to inserted flag change.
  10827. * mem-break.h (enum raw_bkpt_type): New enum.
  10828. (raw_breakpoint, struct process_info): Forward declare.
  10829. (Z_packet_to_target_hw_bp_type): Delete declaration.
  10830. (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
  10831. (set_gdb_breakpoint, delete_gdb_breakpoint)
  10832. (clear_breakpoint_conditions): New declarations.
  10833. (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
  10834. (breakpoint_inserted_here): Update comment.
  10835. (add_breakpoint_condition, add_breakpoint_commands): Replace
  10836. address parameter with a breakpoint pointer parameter.
  10837. (gdb_breakpoint_here): Update comment.
  10838. (delete_gdb_breakpoint_at): Delete.
  10839. (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
  10840. * server.c (process_point_options): Take a struct breakpoint
  10841. pointer instead of an address. Adjust.
  10842. (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
  10843. delete_gdb_breakpoint.
  10844. * spu-low.c (spu_target_ops): Install NULL as
  10845. supports_z_point_type method.
  10846. * target.h: Include mem-break.h.
  10847. (struct target_ops) <prepare_to_access_memory>: Update comment.
  10848. <supports_z_point_type>: New field.
  10849. <insert_point, remove_point>: Take an enum raw_bkpt_type argument
  10850. instead of a char. Also take a raw breakpoint pointer.
  10851. * win32-arm-low.c (the_low_target): Install NULL as
  10852. supports_z_point_type.
  10853. * win32-i386-low.c (i386_supports_z_point_type): New function.
  10854. (i386_insert_point, i386_remove_point): Adjust to new interface.
  10855. (the_low_target): Install i386_supports_z_point_type.
  10856. * win32-low.c (win32_supports_z_point_type): New function.
  10857. (win32_insert_point, win32_remove_point): Adjust to new interface.
  10858. (win32_target_ops): Install win32_supports_z_point_type.
  10859. * win32-low.h (struct win32_target_ops):
  10860. <supports_z_point_type>: New method.
  10861. <insert_point, remove_point>: Take an enum raw_bkpt_type argument
  10862. instead of a char. Also take a raw breakpoint pointer.
  10863. 2014-05-20 Pedro Alves <palves@redhat.com>
  10864. * mem-break.h: Include break-common.h.
  10865. (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
  10866. (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
  10867. (Z_packet_to_target_hw_bp_type): New declaration.
  10868. * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
  10869. * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
  10870. (Z_PACKET_ACCESS_WP): Delete macros.
  10871. (Z_packet_to_hw_type): Delete function.
  10872. * i386-low.h: Don't include break-common.h here.
  10873. (Z_packet_to_hw_type): Delete declaration.
  10874. * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
  10875. Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
  10876. * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
  10877. Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
  10878. * linux-aarch64-low.c: Don't include break-common.h here.
  10879. (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
  10880. (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
  10881. (Z_packet_to_target_hw_bp_type): Delete function.
  10882. * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
  10883. function.
  10884. (mips_insert_point, mips_remove_point): Use
  10885. Z_packet_to_target_hw_bp_type.
  10886. 2014-05-20 Pedro Alves <palves@redhat.com>
  10887. * linux-aarch64-low.c: Include break-common.h.
  10888. (enum target_point_type): Delete.
  10889. (Z_packet_to_point_type): Rename to ...
  10890. (Z_packet_to_target_hw_bp_type): ... this, and return a
  10891. target_hw_bp_type instead.
  10892. (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
  10893. instead of an enum target_point_type.
  10894. (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
  10895. breakpoint type.
  10896. (aarch64_dr_state_insert_one_point)
  10897. (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
  10898. (aarch64_handle_aligned_watchpoint)
  10899. (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
  10900. Take an enum target_hw_bp_type instead of an enum
  10901. target_point_type.
  10902. (aarch64_supports_z_point_type): New function.
  10903. (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
  10904. use Z_packet_to_target_hw_bp_type.
  10905. 2014-05-20 Joel Brobecker <brobecker@adacore.com>
  10906. * configure.ac: Only use -Werror by default when DEVELOPMENT
  10907. is true.
  10908. * configure: Regenerate.
  10909. 2014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
  10910. Fix gdbserver qGetTLSAddr for x86_64 -m32.
  10911. * linux-x86-low.c (X86_64_USER_REGS): New.
  10912. (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
  10913. 2014-04-28 Yao Qi <yao@codesourcery.com>
  10914. * Makefile.in (i386-avx512.c): Fix the typo of generated file
  10915. name.
  10916. 2014-04-25 Pedro Alves <palves@redhat.com>
  10917. PR server/16255
  10918. * linux-low.c (linux_attach_fail_reason_string): New function.
  10919. (linux_attach_lwp): Delete.
  10920. (linux_attach_lwp_1): Rename to ...
  10921. (linux_attach_lwp): ... this. Take a ptid instead of a pid as
  10922. argument. Remove "initial" parameter. Return int instead of
  10923. void. Don't error or warn here.
  10924. (linux_attach): Adjust to call linux_attach_lwp. Call error on
  10925. failure to attach to the tgid. Call warning when failing to
  10926. attach to an lwp.
  10927. * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
  10928. argument. Remove "initial" parameter. Return int instead of
  10929. void. Don't error or warn here.
  10930. (linux_attach_fail_reason_string): New declaration.
  10931. * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
  10932. interface change. Use linux_attach_fail_reason_string.
  10933. 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
  10934. Walfred Tedeschi <walfred.tedeschi@intel.com>
  10935. * Makefile.in: Added rules to handle new files
  10936. i386-avx512.c i386-avx512-linux.c amd64-avx512.c
  10937. amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
  10938. * configure.srv (srv_i386_regobj): Add i386-avx512.o.
  10939. (srv_i386_linux_regobj): Add i386-avx512-linux.o.
  10940. (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
  10941. (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
  10942. x32-avx512-linux.o.
  10943. (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
  10944. (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
  10945. (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
  10946. i386/x32-avx512.xml.
  10947. (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
  10948. (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
  10949. i386/x32-avx512-linux.xml.
  10950. * i387-fp.c (num_avx512_k_registers): New constant for number
  10951. of K registers.
  10952. (num_avx512_zmmh_low_registers): New constant for number of
  10953. lower ZMM registers (0-15).
  10954. (num_avx512_zmmh_high_registers): New constant for number of
  10955. higher ZMM registers (16-31).
  10956. (num_avx512_ymmh_registers): New contant for number of higher
  10957. YMM registers (ymm16-31 added by avx521 on x86_64).
  10958. (num_avx512_xmm_registers): New constant for number of higher
  10959. XMM registers (xmm16-31 added by AVX512 on x86_64).
  10960. (struct i387_xsave): Add space for AVX512 registers.
  10961. (i387_cache_to_xsave): Change raw buffer size to 64 characters.
  10962. Add code to handle AVX512 registers.
  10963. (i387_xsave_to_cache): Add code to handle AVX512 registers.
  10964. * linux-x86-low.c (init_registers_amd64_avx512_linux): New
  10965. prototypei from generated file.
  10966. (tdesc_amd64_avx512_linux): Likewise.
  10967. (init_registers_x32_avx512_linux): Likewise.
  10968. (tdesc_x32_avx512_linux): Likewise.
  10969. (init_registers_i386_avx512_linux): Likewise.
  10970. (tdesc_i386_avx512_linux): Likewise.
  10971. (x86_64_regmap): Add AVX512 registers.
  10972. (x86_linux_read_description): Add code to handle AVX512 XSTATE
  10973. mask.
  10974. (initialize_low_arch): Add code to initialize AVX512 registers.
  10975. 2014-04-23 Pedro Alves <palves@redhat.com>
  10976. * mem-break.c (find_gdb_breakpoint_at): Make static.
  10977. * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
  10978. 2014-04-23 Pedro Alves <palves@redhat.com>
  10979. * i386-low.c: Don't include break-common.h here.
  10980. (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
  10981. prototype to take target_hw_bp_type as argument instead of a Z
  10982. packet char.
  10983. * i386-low.h: Include break-common.h here.
  10984. (Z_packet_to_hw_type): Declare.
  10985. (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
  10986. prototypes.
  10987. * linux-x86-low.c (x86_insert_point): Convert the packet number to
  10988. a target_hw_bp_type before calling i386_low_insert_watchpoint.
  10989. (x86_remove_point): Convert the packet number to a
  10990. target_hw_bp_type before calling i386_low_remove_watchpoint.
  10991. * win32-i386-low.c (i386_insert_point): Convert the packet number
  10992. to a target_hw_bp_type before calling i386_low_insert_watchpoint.
  10993. (i386_remove_point): Convert the packet number to a
  10994. target_hw_bp_type before calling i386_low_remove_watchpoint.
  10995. 2014-04-23 Pedro Alves <palves@redhat.com>
  10996. * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
  10997. 2014-04-10 Pedro Alves <palves@redhat.com>
  10998. * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
  10999. Check if the condition or command is NULL before checking if the
  11000. breakpoint is known. On success, return true.
  11001. * mem-break.h (add_breakpoint_condition): Document return.
  11002. (add_breakpoint_commands): Add describing comment.
  11003. * server.c (skip_to_semicolon): New function.
  11004. (process_point_options): Use it.
  11005. 2014-04-09 Pedro Alves <palves@redhat.com>
  11006. * linux-low.c (linux_read_loadmap): Pass current_inferior directly
  11007. to lwpid_of.
  11008. 2014-02-27 Pedro Alves <palves@redhat.com>
  11009. PR 12702
  11010. * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
  11011. macros.
  11012. * linux-low.c (delete_lwp, handle_extended_wait): Add debug
  11013. output.
  11014. (last_thread_of_process_p): Take a PID argument instead of a
  11015. thread pointer.
  11016. (linux_wait_for_lwp): Delete.
  11017. (num_lwps, check_zombie_leaders, not_stopped_callback): New
  11018. functions.
  11019. (linux_low_filter_event): New function, party factored out from
  11020. linux_wait_for_event.
  11021. (linux_wait_for_event): Rename to ...
  11022. (linux_wait_for_event_filtered): ... this. Add new filter ptid
  11023. argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
  11024. sigsuspend. Check for zombie leaders.
  11025. (linux_wait_for_event): Reimplement as wrapper around
  11026. linux_wait_for_event_filtered.
  11027. (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
  11028. a normal or signal exit is seen, it's the whole process exiting.
  11029. (wait_for_sigstop): No longer a for_each_inferior callback.
  11030. Rewrite on top of linux_wait_for_event_filtered.
  11031. (stop_all_lwps): Call wait_for_sigstop directly.
  11032. * server.c (resume, handle_target_event): Handle
  11033. TARGET_WAITKIND_NO_RESUMED.
  11034. 2014-02-26 Joel Brobecker <brobecker@adacore.com>
  11035. * win32-low.c (psapi_get_dll_name,
  11036. * win32_CreateToolhelp32Snapshot): Delete.
  11037. (win32_CreateToolhelp32Snapshot, win32_Module32First)
  11038. (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
  11039. Delete.
  11040. (handle_load_dll): Add function description.
  11041. Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
  11042. 2014-02-26 Joel Brobecker <brobecker@adacore.com>
  11043. * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
  11044. Add comment.
  11045. (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
  11046. base address when calling win32_add_one_solib.
  11047. (handle_load_dll): Delete local variable load_addr.
  11048. Remove 0x1000 offset applied to DLL base address when calling
  11049. win32_add_one_solib.
  11050. (handle_unload_dll): Add comment.
  11051. 2014-02-26 Joel Brobecker <brobecker@adacore.com>
  11052. * win32-low.c (win32_add_all_dlls): Renames
  11053. win32_ensure_ntdll_loaded. Rewrite function documentation.
  11054. Adjust implementation to always load all DLLs.
  11055. Add 0x1000 offset to DLL base address when calling
  11056. win32_add_one_solib.
  11057. (child_initialization_done): New static global.
  11058. (do_initial_child_stuff): Set child_initialization_done to
  11059. zero during child initialization, and 1 after. Replace call
  11060. to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
  11061. Add comment.
  11062. (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
  11063. (handle_unload_dll): Add function documentation.
  11064. (get_child_debug_event): Ignore load and unload DLL events
  11065. during child initialization.
  11066. 2014-02-20 Doug Evans <dje@google.com>
  11067. Remove global all_lwps.
  11068. * inferiors.h (ptid_of): Move here from linux-low.h.
  11069. (pid_of, lwpid_of): Ditto.
  11070. * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
  11071. parameter is a struct thread_info * now.
  11072. (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
  11073. directly. Pass &all_threads to find_inferior instead of &all_lwps.
  11074. (aarch64_stopped_data_address): Fetch lwpid from current_inferior
  11075. directly.
  11076. (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
  11077. (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
  11078. * linux-arm-low.c (update_registers_callback): Update, "entry"
  11079. parameter is a struct thread_info * now.
  11080. Fetch lwpid from current_inferior directly.
  11081. (arm_insert_point): Pass &all_threads to find_inferior instead of
  11082. &all_lwps.
  11083. (arm_remove_point): Ditto.
  11084. (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
  11085. (arm_prepare_to_resume): Fetch pid from thread.
  11086. (arm_read_description): Fetch lwpid from current_inferior directly.
  11087. * linux-low.c (all_lwps): Delete.
  11088. (delete_lwp): Delete call to remove_inferior.
  11089. (handle_extended_wait): Fetch lwpid from thread.
  11090. (add_lwp): Don't set lwp->entry.id. Remove call to
  11091. add_inferior_to_list.
  11092. (linux_attach_lwp_1): Fetch pid from current_inferior directly.
  11093. (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
  11094. (kill_one_lwp_callback): Ditto.
  11095. (linux_kill): Don't dereference NULL pointer.
  11096. Fetch ptid,lwpid from thread.
  11097. (get_detach_signal): Fetch ptid from thread.
  11098. (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
  11099. Simplify call to regcache_invalidate_thread.
  11100. (delete_lwp_callback): Update, "entry" parameter is a
  11101. struct thread_info * now. Fetch pid from thread.
  11102. (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
  11103. (status_pending_p_callback): Update, "entry" parameter is a
  11104. struct thread_info * now. Fetch ptid from thread.
  11105. (find_lwp_pid): Update, "entry" parameter is a
  11106. struct thread_info * now.
  11107. (linux_wait_for_lwp): Fetch pid from thread.
  11108. (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
  11109. (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
  11110. (enqueue_one_deferred_signal): Fetch lwpid from thread.
  11111. (dequeue_one_deferred_signal): Ditto.
  11112. (cancel_breakpoint): Fetch ptid from current_inferior.
  11113. (linux_wait_for_event): Pass &all_threads to find_inferior,
  11114. not &all_lwps. Fetch ptid, lwpid from thread.
  11115. (count_events_callback): Update, "entry" parameter is a
  11116. struct thread_info * now.
  11117. (select_singlestep_lwp_callback): Ditto.
  11118. (select_event_lwp_callback): Ditto.
  11119. (cancel_breakpoints_callback): Ditto.
  11120. (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
  11121. not &all_lwps.
  11122. (select_event_lwp): Ditto. Fetch ptid from event_thread.
  11123. (unsuspend_one_lwp): Update, "entry" parameter is a
  11124. struct thread_info * now.
  11125. (unsuspend_all_lwps): Pass &all_threads to find_inferior,
  11126. not &all_lwps.
  11127. (linux_stabilize_threads): Ditto. And for for_each_inferior.
  11128. Fetch lwpid from thread, not lwp.
  11129. (linux_wait_1): Fetch ptid, lwpid from current_inferior.
  11130. Pass &all_threads to find_inferior, not &all_lwps.
  11131. (send_sigstop): Fetch lwpid from thread, not lwp.
  11132. (send_sigstop_callback): Update, "entry" parameter is a
  11133. struct thread_info * now.
  11134. (suspend_and_send_sigstop_callback): Ditto.
  11135. (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
  11136. (stuck_in_jump_pad_callback): Update, "entry" parameter is a
  11137. struct thread_info * now.
  11138. (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
  11139. from thread, lwp.
  11140. (lwp_running): Update, "entry" parameter is a
  11141. struct thread_info * now.
  11142. (stop_all_lwps): Fetch ptid from thread.
  11143. Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
  11144. (linux_resume_one_lwp): Fetch lwpid from thread.
  11145. (linux_set_resume_request): Update, "entry" parameter is a
  11146. struct thread_info * now. Fetch pid, lwpid from thread.
  11147. (resume_status_pending_p): Update, "entry" parameter is a
  11148. struct thread_info * now.
  11149. (need_step_over_p): Ditto. Fetch lwpid from thread.
  11150. (start_step_over): Fetch lwpid from thread.
  11151. (linux_resume_one_thread): Update, "entry" parameter is a
  11152. struct thread_info * now. Fetch lwpid from thread.
  11153. (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
  11154. (proceed_one_lwp): Update, "entry" parameter is a
  11155. struct thread_info * now. Fetch lwpid from thread.
  11156. (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
  11157. struct thread_info * now.
  11158. (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
  11159. (unstop_all_lwps): Ditto. Fetch lwpid from thread.
  11160. (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
  11161. directly.
  11162. (regsets_store_inferior_registers): Ditto.
  11163. (fetch_register, store_register): Ditto.
  11164. (linux_read_memory, linux_write_memory): Ditto.
  11165. (linux_request_interrupt): Ditto.
  11166. (linux_read_auxv): Ditto.
  11167. (linux_xfer_siginfo): Ditto.
  11168. (linux_qxfer_spu): Ditto.
  11169. (linux_qxfer_libraries_svr4): Ditto.
  11170. * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
  11171. moved to inferiors.h.
  11172. (get_lwp): Delete.
  11173. (get_thread_lwp): Update.
  11174. (struct lwp_info): Delete member "entry". Simplify comment for
  11175. member "thread".
  11176. (all_lwps): Delete.
  11177. * linux-mips-low.c (mips_read_description): Fetch lwpid from
  11178. current_inferior directly.
  11179. (update_watch_registers_callback): Update, "entry" parameter is a
  11180. struct thread_info * now. Fetch pid from thread.
  11181. (mips_linux_prepare_to_resume): Fetch ptid from thread.
  11182. (mips_insert_point): Fetch lwpid from current_inferior.
  11183. Pass &all_threads to find_inferior, not &all_lwps.
  11184. (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
  11185. (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
  11186. directly.
  11187. (mips_stopped_data_address): Ditto.
  11188. * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
  11189. directly.
  11190. * linux-tile-low.c (tile_arch_setup): Ditto.
  11191. * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
  11192. (update_debug_registers_callback): Update, "entry" parameter is a
  11193. struct thread_info * now. Fetch pid from thread.
  11194. (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
  11195. Pass &all_threads to find_inferior, not &all_lwps.
  11196. (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
  11197. (i386_dr_low_set_control): Fetch pid from current_inferior directly.
  11198. Pass &all_threads to find_inferior, not &all_lwps.
  11199. (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
  11200. (i386_dr_low_get_status): Ditto.
  11201. (x86_linux_prepare_to_resume): Fetch ptid from thread.
  11202. (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
  11203. (x86_linux_read_description): Ditto.
  11204. * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
  11205. 2014-02-20 Doug Evans <dje@google.com>
  11206. * inferiors.c (get_first_inferior): Fix buglet.
  11207. 2014-02-19 Doug Evans <dje@google.com>
  11208. * gdbthread.h (add_thread): Change result type to struct thread_info *.
  11209. * inferiors.c (add_thread): Change result type to struct thread_info *.
  11210. All callers updated.
  11211. (add_lwp): Call add_thread here instead of in callers.
  11212. All callers updated.
  11213. * linux-low.h (get_lwp_thread): Rewrite.
  11214. (struct lwp_info): New member "thread".
  11215. 2014-02-19 Doug Evans <dje@google.com>
  11216. * linux-low.c (add_lwp): Change result to struct lwp_info *.
  11217. All callers updated.
  11218. 2014-02-19 Doug Evans <dje@google.com>
  11219. * inferiors.c (add_thread): Fix whitespace.
  11220. 2014-02-19 Doug Evans <dje@google.com>
  11221. * dll.c (clear_dlls): Replace accessing list implemention details
  11222. with API function.
  11223. * gdbthread.h (get_first_thread): Declare.
  11224. * inferiors.c (for_each_inferior_with_data): New function.
  11225. (get_first_thread): New function.
  11226. (find_thread_ptid): Simplify.
  11227. (get_first_inferior): New function.
  11228. (clear_list): Delete.
  11229. (one_inferior_p): New function.
  11230. (clear_inferior_list): New function.
  11231. (clear_inferiors): Update.
  11232. * inferiors.h (for_each_inferior_with_data): Declare.
  11233. (clear_inferior_list): Declare.
  11234. (one_inferior_p): Declare.
  11235. (get_first_inferior): Declare.
  11236. * linux-low.c (linux_wait_for_event): Replace accessing list
  11237. implemention details with API function.
  11238. * server.c (target_running): Ditto.
  11239. (accumulate_file_name_length): New function.
  11240. (emit_dll_description): New function.
  11241. (handle_qxfer_libraries): Replace accessing list implemention
  11242. details with API function.
  11243. (handle_qxfer_threads_worker): New function.
  11244. (handle_qxfer_threads_proper): Replace accessing list implemention
  11245. details with API function.
  11246. (handle_query): Ditto.
  11247. (visit_actioned_threads_callback_ftype): New typedef.
  11248. (visit_actioned_threads_data): New struct.
  11249. (visit_actioned_threads): Rewrite to be find_inferior callback.
  11250. (resume): Call find_inferior.
  11251. (handle_status): Replace accessing list implemention
  11252. details with API function.
  11253. (process_serial_event): Replace accessing list implemention details
  11254. with API function.
  11255. * target.c (set_desired_inferior): Replace accessing list implemention
  11256. details with API function.
  11257. * tracepoint.c (same_process_p): New function.
  11258. (gdb_agent_about_to_close): Replace accessing list implemention
  11259. details with API function.
  11260. * win32-low.c (child_delete_thread): Replace accessing list
  11261. implemention details with API function.
  11262. (match_dll_by_basename): New function.
  11263. (dll_is_loaded_by_basename): New function.
  11264. (win32_ensure_ntdll_loaded): Replace accessing list implemention
  11265. details call to dll_is_loaded_by_basename.
  11266. 2014-02-19 Doug Evans <dje@google.com>
  11267. * dll.h (struct dll_info): Add comment.
  11268. * gdbthread.h (struct thread_info): Add comment.
  11269. (current_ptid): Simplify.
  11270. * inferiors.c (add_process): Update.
  11271. (remove_process): Update.
  11272. * inferiors.h (struct process_info): Rename member "head" to "entry".
  11273. * linux-low.c (delete_lwp): Update.
  11274. (add_lwp): Update.
  11275. (last_thread_of_process_p): Update.
  11276. (kill_one_lwp_callback, linux_kill): Update.
  11277. (status_pending_p_callback): Update.
  11278. (wait_for_sigstop): Update. Simplify read of ptid.
  11279. (start_step_over): Update.
  11280. * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
  11281. (get_lwp_thread): Update.
  11282. (struct lwp_info): Rename member "head" to "entry".
  11283. * regcache.h (inferior_list_entry): Delete.
  11284. * server.c (kill_inferior_callback): Update.
  11285. (detach_or_kill_inferior_callback): Update.
  11286. (print_started_pid): Update.
  11287. (print_attached_pid): Update.
  11288. (process_serial_event): Simplify read of ptid.
  11289. * thread-db.c (thread_db_create_event): Update.
  11290. (thread_db_get_tls_address): Update.
  11291. * win32-low.c (current_inferior_ptid): Simplify.
  11292. 2014-02-19 Tom Tromey <tromey@redhat.com>
  11293. * target.h (struct target_ops) <supports_btrace>: Add target_ops
  11294. argument.
  11295. (target_supports_btrace): Update.
  11296. 2014-02-14 Yao Qi <yao@codesourcery.com>
  11297. * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
  11298. (rsp-low-ipa.o): New target.
  11299. 2014-02-12 Tom Tromey <tromey@redhat.com>
  11300. * ax.c (gdb_parse_agent_expr): Use hex2bin, not
  11301. convert_ascii_to_int.
  11302. * regcache.c (registers_to_string): Likewise.
  11303. * remote-utils.c (decode_M_packet): Likewise.
  11304. * server.c (process_serial_event): Likewise.
  11305. 2014-02-12 Tom Tromey <tromey@redhat.com>
  11306. * server.c (handle_query, handle_v_run): Use hex2bin, not
  11307. unhexify.
  11308. * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
  11309. 2014-02-12 Tom Tromey <tromey@redhat.com>
  11310. * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
  11311. convert_int_to_ascii.
  11312. * regcache.c (registers_to_string, collect_register_as_string):
  11313. Likewise.
  11314. * remote-utils.c (look_up_one_symbol, relocate_instruction):
  11315. Likewise.
  11316. * server.c (process_serial_event): Likewise.
  11317. * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
  11318. (cmd_qtbuffer, cstr_to_hexstr): Likewise.
  11319. 2014-02-12 Tom Tromey <tromey@redhat.com>
  11320. * remote-utils.c (look_up_one_symbol, monitor_output): Use
  11321. bin2hex, not hexify.
  11322. * tracepoint.c (cmd_qtstatus): Likewise.
  11323. 2014-02-12 Tom Tromey <tromey@redhat.com>
  11324. * remote-utils.c (monitor_output): Pass explicit length to
  11325. hexify.
  11326. 2014-02-12 Tom Tromey <tromey@redhat.com>
  11327. * tracepoint.c: Include rsp-low.h.
  11328. * server.c: Include rsp-low.h.
  11329. * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
  11330. (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
  11331. declare.
  11332. * remote-utils.c: Include rsp-low.h.
  11333. (fromhex, hexchars, ishex, unhexify, tohex, hexify)
  11334. (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
  11335. (convert_int_to_ascii, convert_ascii_to_int): Move to
  11336. common/rsp-low.c.
  11337. * regcache.c: Include rsp-low.h.
  11338. * ax.c: Include rsp-low.h.
  11339. * Makefile.in (SFILES): Add common/rsp-low.c.
  11340. (OBS): Add rsp-low.o.
  11341. (rsp-low.o): New target.
  11342. 2014-02-12 Tom Tromey <tromey@redhat.com>
  11343. * utils.h (pulongest, plongest, phex_nz): Don't declare.
  11344. Include print-utils.h.
  11345. * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
  11346. (plongest, thirty_two, phex_nz): Remove.
  11347. * Makefile.in (SFILES): Add common/print-utils.c.
  11348. (OBS): Add print-utils.o.
  11349. (print-utils-ipa.o): New target.
  11350. (print-utils.o): New target.
  11351. (IPA_OBJS): Add print-utils-ipa.o.
  11352. 2014-02-06 Tom Tromey <tromey@redhat.com>
  11353. * Makefile.in (SFILES): Fix indentation.
  11354. 2014-02-05 Doug Evans <dje@google.com>
  11355. * linux-low.c (linux_wait_for_event): Improve comment.
  11356. (linux_wait_1): Keep current_inferior in sync with event_child.
  11357. 2014-01-22 Doug Evans <dje@google.com>
  11358. * gdbthread.h (gdb_id_to_thread): Delete, unused.
  11359. 2014-01-22 Doug Evans <dje@google.com>
  11360. * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
  11361. * configure: Regenerate.
  11362. * config.in: Regenerate.
  11363. * Makefile.in (SFILES): Add debug.c.
  11364. (OBS): Add debug.o.
  11365. * debug.c: New file.
  11366. * debug.h: New file.
  11367. * linux-aarch64-low.c (*): Update all debugging printfs to use
  11368. debug_printf instead of fprintf.
  11369. * linux-arm-low.c (*): Ditto.
  11370. * linux-cris-low.c (*): Ditto.
  11371. * linux-crisv32-low.c (*): Ditto.
  11372. * linux-m32r-low.c (*): Ditto.
  11373. * linux-sparc-low.c (*): Ditto.
  11374. * linux-x86.c (*): Ditto.
  11375. * linux-low.c (*): Ditto.
  11376. (linux_wait_1): Add calls to debug_enter, debug_exit.
  11377. (linux_wait): Remove redundant debugging printf.
  11378. (stop_all_lwps): Add calls to debug_enter, debug_exit.
  11379. (linux_resume, unstop_all_lwps): Ditto.
  11380. * mem-break.c (*): Update all debugging printfs to use
  11381. debug_printf instead of fprintf.
  11382. * remote-utils.c (*): Ditto.
  11383. * thread-db.c (*): Ditto.
  11384. * server.c #include <ctype.h>, "gdb_vecs.h".
  11385. (debug_threads): Moved to debug.c.
  11386. (*): Update all debugging printfs to use debug_printf instead of
  11387. fprintf.
  11388. (start_inferior): Replace call to fflush with call to debug_flush.
  11389. (monitor_show_help): Mention set debug-format.
  11390. (parse_debug_format_options): New function.
  11391. (handle_monitor_command): Handle "monitor set debug-format".
  11392. (gdbserver_usage): Mention --debug-format.
  11393. (main): Parse --debug-format.
  11394. * server.h (debug_threads): Declaration moved to debug.h.
  11395. #include "debug.h".
  11396. * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
  11397. trace_debug_1 that uses debug_printf.
  11398. (tracepoint_look_up_symbols): Update all debugging printfs to use
  11399. debug_printf instead of fprintf.
  11400. 2014-01-20 Baruch Siach <baruch@tkos.co.il>
  11401. * linux-xtensa-low.c: Include asm/ptrace.h instead of
  11402. sys/ptrace.h.
  11403. 2014-01-17 Pedro Alves <palves@redhat.com>
  11404. PR build/16445
  11405. * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
  11406. defined after including gdb_proc_service.h.
  11407. 2014-01-16 Doug Evans <dje@google.com>
  11408. * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
  11409. (match_dll): Use it.
  11410. 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
  11411. * target.h (target_ops) <read_btrace>: Change parameters and
  11412. return type to allow error reporting.
  11413. * server.c (handle_qxfer_btrace): Support delta reads. Pass
  11414. trace reading errors on.
  11415. * linux-low.c (linux_low_read_btrace): Pass trace reading
  11416. errors on.
  11417. (linux_low_disable_btrace): New.
  11418. 2014-01-15 Doug Evans <dje@google.com>
  11419. * inferiors.c (thread_id_to_gdb_id): Delete.
  11420. * inferiors.h (thread_id_to_gdb_id): Delete.
  11421. 2014-01-13 Eli Zaretskii <eliz@gnu.org>
  11422. * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
  11423. "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
  11424. versions.
  11425. 2014-01-08 Pedro Alves <palves@redhat.com>
  11426. * server.c (handle_status): Don't discard previous queued stop
  11427. replies or thread's pending status here.
  11428. (main) <disconnection>: Do it here instead.
  11429. 2014-01-08 Pedro Alves <palves@redhat.com>
  11430. * gdbthread.h (struct thread_info) <status_pending_p>: New field.
  11431. * server.c (visit_actioned_threads, handle_pending_status): New
  11432. function.
  11433. (handle_v_cont): Factor out parts to ...
  11434. (resume): ... this new function. If in all-stop, and a thread
  11435. being resumed has a pending status, report it without actually
  11436. resuming.
  11437. (myresume): Adjust to use the new 'resume' function.
  11438. (clear_pending_status_callback, set_pending_status_callback)
  11439. (find_status_pending_thread_callback): New functions.
  11440. (handle_status): Handle the case of multiple threads having
  11441. interesting statuses to report. Report threads' real last signal
  11442. instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
  11443. with an interesting thread to report the status for, instead of
  11444. always reporting the status of the first thread.
  11445. 2014-01-01 Joel Brobecker <brobecker@adacore.com>
  11446. * gdbserver.c (gdbserver_version): Set copyright year to 2014.
  11447. * gdbreplay.c (gdbreplay_version): Likewise.
  11448. 2013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
  11449. * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
  11450. iov.iov_len with the real length in use.
  11451. 2013-12-13 Joel Brobecker <brobecker@adacore.com>
  11452. * Makefile.in (safe-ctype.o, lbasename.o): New rules.
  11453. * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
  11454. for all targets that use win32-low.c.
  11455. * win32-low.c (win32_ensure_ntdll_loaded): New function.
  11456. (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
  11457. 2013-12-13 Pedro Alves <palves@redhat.com>
  11458. * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
  11459. if equal to TARGET_WAITKIND_LOADED.
  11460. * win32-low.c (cached_status): New static global.
  11461. (win32_wait): Add declaration.
  11462. (do_initial_child_stuff): Flush all initial pending debug events
  11463. up to the initial breakpoint.
  11464. (win32_wait): If CACHED_STATUS was set, return that instead
  11465. of doing a real wait. Remove the code resuming the execution
  11466. of the inferior after receiving a TARGET_WAITKIND_LOADED event
  11467. during the initial phase. Also remove the code changing
  11468. OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
  11469. TARGET_WAITKIND_STOPPED.
  11470. 2013-12-11 Yao Qi <yao@codesourcery.com>
  11471. * notif.c (handle_notif_ack): Return 0 if no notification
  11472. matches.
  11473. 2013-11-20 Doug Evans <dje@google.com>
  11474. * linux-low.c (linux_set_resume_request): Fix comment.
  11475. 2013-11-20 Doug Evans <dje@google.com>
  11476. * linux-low.c (resume_status_pending_p): Tweak comment.
  11477. 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
  11478. * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
  11479. amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
  11480. * configure.srv (srv_i386_regobj): Add i386-mpx.o.
  11481. (srv_i386_linux_regobj): Add i386-mpx-linux.o.
  11482. (srv_amd64_regobj): Add amd64-mpx.o.
  11483. (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
  11484. (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
  11485. (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
  11486. * i387-fp.c (num_pl_bnd_register) Added constant.
  11487. (num_pl_bnd_cfg_registers) Added constant.
  11488. (struct i387_xsave) Added reserved area and MPX fields.
  11489. (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
  11490. * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
  11491. function.
  11492. (tdesc_i386_mpx_linux): Add MPX amd64 target.
  11493. (init_registers_amd64_mpx_linux): Declare new function.
  11494. (tdesc_amd64_mpx_linux): Add MPX amd64 target.
  11495. (x86_64_regmap): Add MPX registers.
  11496. (x86_linux_read_description): Add MPX case.
  11497. (initialize_low_arch): Initialize MPX targets.
  11498. 2013-11-18 Tom Tromey <tromey@redhat.com>
  11499. * configure: Rebuild.
  11500. * configure.ac: Don't check for stdlib.h.
  11501. * gdbreplay.c: Unconditionally include stdlib.h.
  11502. 2013-11-18 Tom Tromey <tromey@redhat.com>
  11503. * config.in: Rebuild.
  11504. * configure: Rebuild.
  11505. * configure.ac: Don't use AC_HEADER_DIRENT.
  11506. 2013-11-18 Tom Tromey <tromey@redhat.com>
  11507. * server.h: Don't check HAVE_STRING_H.
  11508. * gdbreplay.c: Don't check HAVE_STRING_H.
  11509. * configure: Rebuild.
  11510. 2013-11-18 Tom Tromey <tromey@redhat.com>
  11511. * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
  11512. LIBGNU.
  11513. 2013-11-08 Tom Tromey <tromey@redhat.com>
  11514. * configure, config.in: Rebuild.
  11515. * configure.ac: Remove unused configury.
  11516. 2013-11-08 Tom Tromey <tromey@redhat.com>
  11517. * acinclude.m4: Include common.m4, codeset.m4.
  11518. * configure, config.in: Rebuild.
  11519. * configure.ac: Use GDB_AC_COMMON.
  11520. 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
  11521. * linux-s390-low.c (HWCAP_S390_TE): New define.
  11522. (s390_arch_setup): Consider the TE field in the HWCAP for
  11523. determining 'have_regset_tdb'.
  11524. 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
  11525. PR gdb/16014
  11526. * tracepoint.c (download_tracepoint_1): Remove unnecessary double
  11527. call to sizeof.
  11528. 2013-10-02 Pedro Alves <palves@redhat.com>
  11529. * server.c (process_serial_event): Don't output "GDBserver
  11530. exiting" if GDB is connected through stdio.
  11531. * target.c (mywait): Likewise, be silent if GDB is connected
  11532. through stdio.
  11533. 2013-10-01 Joel Brobecker <brobecker@adacore.com>
  11534. * lynx-low.c (lynx_add_threads_after_attach): New function.
  11535. (lynx_attach): Remove call to add_thread. Add call to
  11536. lynx_add_threads_after_attach instead.
  11537. 2013-09-28 Mike Frysinger <vapier@gentoo.org>
  11538. * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
  11539. * config.in, configure: Regenerated.
  11540. 2013-09-18 Yao Qi <yao@codesourcery.com>
  11541. PR server/15959
  11542. * server.c (start_inferior): Clear 'resume_info'.
  11543. 2013-09-16 Jiong Wang <jiwang@tilera.com>
  11544. * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
  11545. for each register.
  11546. 2013-09-16 Jiong Wang <jiwang@tilera.com>
  11547. * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
  11548. linux-tile-low.o to srv_tgtobj.
  11549. 2013-09-16 Will Newton <will.newton@linaro.org>
  11550. * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
  11551. out regs.
  11552. 2013-09-06 Pedro Alves <palves@redhat.com>
  11553. * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
  11554. (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
  11555. (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
  11556. (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
  11557. (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
  11558. (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
  11559. 2013-09-06 Pedro Alves <palves@redhat.com>
  11560. * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
  11561. explicit header dependencies and use $COMPILE/$POSTCOMPILE.
  11562. 2013-09-06 Pedro Alves <palves@redhat.com>
  11563. * linux-amd64-ipa.c: Include tracepoint.h.
  11564. * linux-i386-ipa.c: Include tracepoint.h.
  11565. 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
  11566. * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
  11567. (ps_get_thread_area): New function.
  11568. 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
  11569. * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
  11570. (initialize_low_arch): Call init_registers_crisv32 rather than
  11571. init_register_crisv32.
  11572. 2013-09-05 Pedro Alves <palves@redhat.com>
  11573. * server.h (handle_vFile, hostio_last_error_from_errno): Move
  11574. to ...
  11575. * hostio.h: ... this new file.
  11576. * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
  11577. win32-low.c: Include hostio.h.
  11578. 2013-09-05 Pedro Alves <palves@redhat.com>
  11579. * server.h (gdb_client_data, handler_func, callback_handler_func)
  11580. (delete_file_handler, add_file_handler, append_callback_event)
  11581. (delete_callback_event, start_event_loop, initialize_event_loop):
  11582. Move to event-loop.h and include it.
  11583. * event-loop.h: New file.
  11584. 2013-09-05 Pedro Alves <palves@redhat.com>
  11585. * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
  11586. * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
  11587. (loaded_dll, unloaded_dll): Move to ...
  11588. * dll.h: ... this new file.
  11589. * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
  11590. 2013-09-05 Pedro Alves <palves@redhat.com>
  11591. * server.h (current_process, get_thread_process, all_processes)
  11592. (add_inferior_to_list, for_each_inferior, current_inferior)
  11593. (remove_inferior, add_process, remove_process, find_process_pid)
  11594. (have_started_inferiors_p, have_attached_inferiors_p)
  11595. (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
  11596. (clear_inferiors, find_inferior, find_inferior_id)
  11597. (inferior_target_data, set_inferior_target_data)
  11598. (inferior_regcache_data, set_inferior_regcache_data): Move to
  11599. inferiors.h, and include it.
  11600. * inferiors.h: New file.
  11601. 2013-09-05 Pedro Alves <palves@redhat.com>
  11602. * server.h (struct emit_ops, current_insn_ptr, emit_error):
  11603. Move ...
  11604. * ax.h: ... here.
  11605. 2013-09-05 Pedro Alves <palves@redhat.com>
  11606. * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
  11607. tracepoint.h.
  11608. * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
  11609. (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
  11610. (handle_tracepoint_general_set, handle_tracepoint_query)
  11611. (tracepoint_finished_step, tracepoint_was_hit)
  11612. (release_while_stepping_state_list, current_traceframe)
  11613. (in_readonly_region, traceframe_read_mem)
  11614. (fetch_traceframe_registers, traceframe_read_sdata)
  11615. (traceframe_read_info, struct fast_tpoint_collect_status)
  11616. (fast_tracepoint_collecting, force_unlock_trace_buffer)
  11617. (handle_tracepoit_bkpts, initialize_low_tracepoint)
  11618. (supply_fast_tracepoint_registers)
  11619. (supply_static_tracepoint_registers, set_trampoline_buffer_space)
  11620. (ipa_tdesc, claim_trampoline_space)
  11621. (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
  11622. (agent_mem_read, agent_get_trace_state_variable_value)
  11623. (agent_set_trace_state_variable_value, agent_tsv_read)
  11624. (agent_mem_read_string, get_raw_reg_func_addr)
  11625. (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
  11626. * tracepoint.h: ... this new file.
  11627. 2013-09-05 Pedro Alves <palves@redhat.com>
  11628. * server.h (perror_with_name, error, fatal, warning, paddress)
  11629. (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
  11630. include it.
  11631. * utils.h: New file.
  11632. 2013-09-05 Pedro Alves <palves@redhat.com>
  11633. * server.h (remote_debug, noack_mode, transport_is_reliable)
  11634. (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
  11635. (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
  11636. (getpkt, remote_prepare, remote_open, remote_close, write_ok)
  11637. (write_enn, initialize_async_io, enable_async_io)
  11638. (disable_async_io, check_remote_input_interrupt_request)
  11639. (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
  11640. (dead_thread_notify, prepare_resume_reply)
  11641. (decode_address_to_semicolon, decode_address, decode_m_packet)
  11642. (decode_M_packet, decode_X_packet, decode_xfer_write)
  11643. (decode_search_memory_packet, unhexify, hexify)
  11644. (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
  11645. (look_up_one_symbol, relocate_instruction)
  11646. (monitor_output): Move to remote-utils.h, and include it.
  11647. * remote-utils.h: New file.
  11648. 2013-09-05 Pedro Alves <palves@redhat.com>
  11649. * server.h (_): Delete.
  11650. 2013-09-02 Pedro Alves <palves@redhat.com>
  11651. * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
  11652. (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
  11653. allocated.
  11654. (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
  11655. 2013-09-02 Pierre Muller <muller@sourceware.org>
  11656. * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
  11657. or WriteProcessMemory complete successfully and handle
  11658. ERROR_PARTIAL_COPY error.
  11659. 2013-09-02 Pedro Alves <palves@redhat.com>
  11660. * server.c (gdb_read_memory): Return -1 on traceframe memory read
  11661. error instead of EIO.
  11662. 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
  11663. PR server/15604
  11664. * linux-low.c: Include filestuff.h.
  11665. (linux_create_inferior) <pid == 0>: Call close_most_fds.
  11666. * lynx-low.c: Include filestuff.h.
  11667. (lynx_create_inferior) <pid == 0>: Call close_most_fds.
  11668. * server.c: Include filestuff.h.
  11669. (main): Call notice_open_fds.
  11670. * spu-low.c: Include filestuff.h.
  11671. (spu_create_inferior) <pid == 0>: Call close_most_fds.
  11672. 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
  11673. * Makefile.in: Explain why ../target and ../nat are not
  11674. listed as include file search paths.
  11675. (linux-waitpid.o): New object file rule.
  11676. * configure.srv (srv_native_linux_obj): New variable.
  11677. Replace all occurrences of linux native object files with
  11678. $srv_native_linux_obj.
  11679. * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
  11680. (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
  11681. (linux_enable_event_reporting): Remove declaration.
  11682. (my_waitpid): Moved to common/linux-waitpid.c.
  11683. (linux_wait_for_event): Pass ptid when calling
  11684. linux_enable_event_reporting.
  11685. (linux_supports_tracefork_flag): Remove.
  11686. (linux_enable_event_reporting): Likewise.
  11687. (linux_tracefork_grandchild): Remove.
  11688. (STACK_SIZE): Moved to common/linux-ptrace.c.
  11689. (linux_tracefork_child): Remove.
  11690. (linux_test_for_tracefork): Remove.
  11691. (linux_look_up_symbols): Call linux_supports_traceclone.
  11692. (initialize_low): Remove call to linux_test_for_tracefork.
  11693. * linux-low.h (PTRACE_TYPE_ARG3): Move to
  11694. common/linux-ptrace.h.
  11695. (PTRACE_TYPE_ARG4): Likewise.
  11696. Include linux-ptrace.h.
  11697. 2013-08-21 Pedro Alves <palves@redhat.com>
  11698. * config.in: Renegerate.
  11699. 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
  11700. * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
  11701. (SFILES): Remove $(srcdir)/common/target-common.c and
  11702. add $(srcdir)/target/waitstatus.c.
  11703. (OBS): Remove target-common.o and add waitstatus.o.
  11704. (server_h): Remove $(srcdir)/../common/target-common.h and
  11705. add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
  11706. and $(srcdir)/../target/waitstatus.h.
  11707. (target-common.o): Remove.
  11708. (waitstatus.o): New target object file.
  11709. * target.h: Do not include target-common.h and
  11710. include target/resume.h, target/wait.h and
  11711. target/waitstatus.h.
  11712. 2013-08-13 Luis Machado <lgustavo@codesourcery.com>
  11713. * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
  11714. to PTRACE_TYPE_ARG3.
  11715. * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
  11716. to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
  11717. PTRACE_TYPE_ARG4.
  11718. * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
  11719. (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
  11720. 2013-07-27 Jie Zhang <jie@codesourcery.com>
  11721. Daniel Jacobowitz <dan@codesourcery.com>
  11722. Yao Qi <yao@codesourcery.com>
  11723. * Makefile.in (SFILES): Add common/mips-linux-watch.c.
  11724. (mips-linux-watch.o): New rule.
  11725. (mips_linux_watch_h): New variable.
  11726. * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
  11727. srv_tgtobj.
  11728. * linux-mips-low.c: Include mips-linux-watch.h.
  11729. (struct arch_process_info, struct arch_lwp_info): New.
  11730. (update_watch_registers_callback): New function.
  11731. (mips_linux_new_process, mips_linux_new_thread) New functions.
  11732. (mips_linux_prepare_to_resume, mips_insert_point): New
  11733. functions.
  11734. (mips_remove_point, mips_stopped_by_watchpoint): New
  11735. functions.
  11736. (rsp_bp_type_to_target_hw_bp_type): New function.
  11737. (mips_stopped_data_address): New function.
  11738. (the_low_target): Add watchpoint support functions.
  11739. 2013-07-27 Yao Qi <yao@codesourcery.com>
  11740. * i386-low.c: Include break-common.h.
  11741. (enum target_hw_bp_type): Remove.
  11742. 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
  11743. * Makefile.in (SFILES): /common/target-common.c.
  11744. (OBS): Add target-common.o.
  11745. (server_h): Add $(srcdir)/../common/target-common.h.
  11746. (target-common.o): New target.
  11747. * server.c (queue_stop_reply_callback): Free
  11748. status string after use.
  11749. * target.c (target_waitstatus_to_string): Remove.
  11750. * target.h: Include target-common.h.
  11751. (resume_kind): Likewise.
  11752. (target_waitkind): Likewise.
  11753. (target_waitstatus): Likewise.
  11754. (TARGET_WNOHANG): Likewise.
  11755. 2013-07-04 Yao Qi <yao@codesourcery.com>
  11756. * Makefile.in (host_alias): Use @host_noncanonical@.
  11757. (target_alias): Use @target_noncanonical@.
  11758. * configure.ac: Use ACX_NONCANONICAL_TARGET and
  11759. ACX_NONCANONICAL_HOST.
  11760. * configure: Regenerated.
  11761. Revert:
  11762. 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
  11763. * configure.ac (version_host, version_target): Set and AC_SUBST them.
  11764. * configure: Rebuild.
  11765. * Makefile.in (version_host, version_target): Get from configure.
  11766. (version.c): Use $(version_host) and $(version_target).
  11767. 2013-07-03 Pedro Alves <palves@redhat.com>
  11768. * Makefile.in (config.status): Depend on development.sh.
  11769. * acinclude.m4: Include libmcheck.m4.
  11770. * configure: Regenerate.
  11771. 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
  11772. * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
  11773. attribute inside the parentheses.
  11774. (winapi_DebugSetProcessKillOnExit): Ditto.
  11775. (winapi_DebugBreakProcess): Ditto.
  11776. (winapi_GenerateConsoleCtrlEvent): Ditto.
  11777. 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
  11778. * notif.h (notif_event): Add a dummy member to avoid compiler
  11779. errors.
  11780. 2013-07-01 Pedro Alves <palves@redhat.com>
  11781. * hostio.c (HOSTIO_PATH_MAX): Define.
  11782. (require_filename, handle_open, handle_unlink, handle_readlink):
  11783. Use it.
  11784. 2013-07-01 Pedro Alves <palves@redhat.com>
  11785. * server.h: Include "pathmax.h".
  11786. * linux-low.c: Don't include sys/param.h.
  11787. (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
  11788. MAXPATHLEN.
  11789. * win32-low.c: Don't include sys/param.h.
  11790. (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
  11791. 2013-07-01 Pedro Alves <palves@redhat.com>
  11792. * event-loop.c: Don't check HAVE_UNISTD_H before including
  11793. <unistd.h>.
  11794. * gdbreplay.c: Likewise.
  11795. * remote-utils.c: Likewise.
  11796. * server.c: Likewise.
  11797. * configure.ac: Don't check for unistd.h.
  11798. * configure: Regenerate.
  11799. 2013-06-28 Tom Tromey <tromey@redhat.com>
  11800. * Makefile.in (version.c): Use version.in, not
  11801. common/version.in.
  11802. 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
  11803. * configure.ac (version_host, version_target): Set and AC_SUBST them.
  11804. * configure: Rebuild.
  11805. * Makefile.in (version_host, version_target): Get from configure.
  11806. (version.c): Use $(version_host) and $(version_target).
  11807. 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
  11808. Fix trace-status to output user name without trailing colon.
  11809. * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
  11810. 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
  11811. Fix trace-status to output proper start-time and stop-time.
  11812. * tracepoint.c (cmd_qtstatus): Modify trace-status output to
  11813. output start time and stop time in hex as gdb expects.
  11814. 2013-06-26 Pedro Alves <pedro@codesourcery.com>
  11815. * tracepoint.c (build_traceframe_info_xml): Output trace state
  11816. variables present in the trace buffer.
  11817. 2013-06-24 Tom Tromey <tromey@redhat.com>
  11818. * Makefile.in (version.c): Use bfd/version.h, common/version.in,
  11819. create-version.sh.
  11820. (version.o): Remove.
  11821. * gdbreplay.c: Include version.h.
  11822. (version, host_name): Don't declare.
  11823. * server.h: Include version.h.
  11824. (version, host_name): Don't declare.
  11825. 2013-06-12 Pedro Alves <palves@redhat.com>
  11826. * linux-x86-low.c (linux_is_elf64): Delete global.
  11827. (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
  11828. with local linux_pid_exe_is_elf_64_file use.
  11829. 2013-06-11 Pedro Alves <palves@redhat.com>
  11830. * linux-low.c (regset_disabled, disable_regset): New functions.
  11831. (regsets_fetch_inferior_registers)
  11832. (regsets_store_inferior_registers): Use them.
  11833. (initialize_regsets_info); Don't allocate the disabled_regsets
  11834. array here.
  11835. * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
  11836. comment.
  11837. 2013-06-11 Pedro Alves <palves@redhat.com>
  11838. * linux-low.c (initialize_regsets_info): Use xcalloc instead of
  11839. xmalloc.
  11840. 2013-06-11 Pedro Alves <palves@redhat.com>
  11841. * linux-x86-low.c (initialize_low_arch): Call
  11842. init_registers_x32_avx_linux.
  11843. 2013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
  11844. Fix compatibility with Android Bionic.
  11845. * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
  11846. it is not empty.
  11847. 2013-06-07 Pedro Alves <palves@redhat.com>
  11848. PR server/14823
  11849. * Makefile.in (OBS): Add tdesc.o.
  11850. (IPA_OBJS): Add tdesc-ipa.o.
  11851. (tdesc-ipa.o): New rule.
  11852. * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
  11853. interface.
  11854. * linux-low.c (new_inferior): Delete.
  11855. (disabled_regsets, num_regsets): Delete.
  11856. (linux_add_process): Adjust to set the new per-process
  11857. new_inferior flag.
  11858. (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
  11859. (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
  11860. was a stop. When calling arch_setup, switch the current inferior
  11861. to the thread that got an event.
  11862. (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
  11863. (regsets_fetch_inferior_registers)
  11864. (regsets_store_inferior_registers): New regsets_info parameter.
  11865. Adjust to use it.
  11866. (linux_register_in_regsets): New regs_info parameter. Adjust to
  11867. use it.
  11868. (register_addr, fetch_register, store_register): New usrregs_info
  11869. parameter. Adjust to use it.
  11870. (usr_fetch_inferior_registers, usr_store_inferior_registers): New
  11871. parameter regs_info. Adjust to use it.
  11872. (linux_fetch_registers): Get the current inferior's regs_info, and
  11873. adjust to use it.
  11874. (linux_store_registers): Ditto.
  11875. [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
  11876. (initialize_low): Don't initialize the target_regsets here. Call
  11877. initialize_low_arch.
  11878. * linux-low.h (target_regsets): Delete declaration.
  11879. (struct regsets_info): New.
  11880. (struct usrregs_info): New.
  11881. (struct regs_info): New.
  11882. (struct process_info_private) <new_inferior>: New field.
  11883. (struct linux_target_ops): Delete the num_regs, regmap, and
  11884. regset_bitmap fields. New field regs_info.
  11885. [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
  11886. * i387-fp.c (num_xmm_registers): Delete.
  11887. (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
  11888. calls to new interface.
  11889. (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
  11890. (i387_xsave_to_cache): Adjust find_regno calls to new interface.
  11891. Infer the number of xmm registers from the regcache's target
  11892. description.
  11893. * i387-fp.h (num_xmm_registers): Delete.
  11894. * inferiors.c (add_thread): Don't install the thread's regcache
  11895. here.
  11896. * proc-service.c (gregset_info): Fetch the current inferior's
  11897. regs_info. Adjust to use it.
  11898. * regcache.c: Include tdesc.h.
  11899. (register_bytes, reg_defs, num_registers)
  11900. (gdbserver_expedite_regs): Delete.
  11901. (get_thread_regcache): If the thread doesn't have a regcache yet,
  11902. create one, instead of aborting gdbserver.
  11903. (regcache_invalidate_one): Rename to ...
  11904. (regcache_invalidate_thread): ... this.
  11905. (regcache_invalidate_one): New.
  11906. (regcache_invalidate): Only invalidate registers of the current
  11907. process.
  11908. (init_register_cache): Add target_desc parameter, and use it.
  11909. (new_register_cache): Ditto. Assert the target description has a
  11910. non zero registers_size.
  11911. (regcache_cpy): Add assertions. Adjust.
  11912. (realloc_register_cache, set_register_cache): Delete.
  11913. (registers_to_string, registers_from_string): Adjust.
  11914. (find_register_by_name, find_regno, find_register_by_number)
  11915. (register_cache_size): Add target_desc parameter, and use it.
  11916. (free_register_cache_thread, free_register_cache_thread_one)
  11917. (regcache_release, register_cache_size): New.
  11918. (register_size): Add target_desc parameter, and use it.
  11919. (register_data, supply_register, supply_register_zeroed)
  11920. (supply_regblock, supply_register_by_name, collect_register)
  11921. (collect_register_as_string, collect_register_by_name): Adjust.
  11922. * regcache.h (struct target_desc): Forward declare.
  11923. (struct regcache) <tdesc>: New field.
  11924. (init_register_cache, new_register_cache): Add target_desc
  11925. parameter.
  11926. (regcache_invalidate_thread): Declare.
  11927. (regcache_invalidate_one): Delete declaration.
  11928. (regcache_release): Declare.
  11929. (find_register_by_number, register_cache_size, register_size)
  11930. (find_regno): Add target_desc parameter.
  11931. (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
  11932. declarations.
  11933. * remote-utils.c: Include tdesc.h.
  11934. (outreg, prepare_resume_reply): Adjust.
  11935. * server.c: Include tdesc.h.
  11936. (gdbserver_xmltarget): Delete declaration.
  11937. (get_features_xml, process_serial_event): Adjust.
  11938. * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
  11939. declare.
  11940. (struct process_info) <tdesc>: New field.
  11941. (ipa_tdesc): Declare.
  11942. * tdesc.c: New file.
  11943. * tdesc.h: New file.
  11944. * tracepoint.c: Include tdesc.h.
  11945. [IN_PROCESS_AGENT] (ipa_tdesc): Define.
  11946. (get_context_regcache): Adjust to pass ipa_tdesc down.
  11947. (do_action_at_tracepoint): Adjust to get the register cache size
  11948. from the context regcache's description.
  11949. (traceframe_walk_blocks): Adjust to get the register cache size
  11950. from the current trace frame's description.
  11951. (traceframe_get_pc): Adjust to get current trace frame's
  11952. description and pass it down.
  11953. (gdb_collect): Adjust to get the register cache size from the
  11954. IPA's description.
  11955. * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
  11956. (gdbserver_xmltarget): Delete.
  11957. (initialize_low_tracepoint): Set the ipa's target description.
  11958. * linux-i386-ipa.c (tdesc_i386_linux): Declare.
  11959. (initialize_low_tracepoint): Set the ipa's target description.
  11960. * linux-x86-low.c: Include tdesc.h.
  11961. [__x86_64__] (is_64bit_tdesc): New.
  11962. (ps_get_thread_area, x86_get_thread_area): Use it.
  11963. (i386_cannot_store_register): Rename to ...
  11964. (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
  11965. (i386_cannot_fetch_register): Rename to ...
  11966. (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
  11967. (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
  11968. to new interface.
  11969. (target_regsets): Rename to ...
  11970. (x86_regsets): ... this.
  11971. (x86_get_pc, x86_set_pc): Adjust register_size calls to new
  11972. interface.
  11973. (x86_siginfo_fixup): Use is_64bit_tdesc.
  11974. [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
  11975. (tdesc_x32_avx_linux, tdesc_x32_linux)
  11976. (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
  11977. Declare.
  11978. (x86_linux_update_xmltarget): Delete.
  11979. (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
  11980. (have_ptrace_getfpxregs, have_ptrace_getregset): New.
  11981. (AMD64_LINUX_USER64_CS): New.
  11982. (x86_linux_read_description): New, based on
  11983. x86_linux_update_xmltarget.
  11984. (same_process_callback): New.
  11985. (x86_arch_setup_process_callback): New.
  11986. (x86_linux_update_xmltarget): New.
  11987. (x86_regsets_info): New.
  11988. (amd64_linux_regs_info): New.
  11989. (i386_linux_usrregs_info): New.
  11990. (i386_linux_regs_info): New.
  11991. (x86_linux_regs_info): New.
  11992. (x86_arch_setup): Reimplement.
  11993. (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
  11994. (x86_emit_ops): Ditto.
  11995. (the_low_target): Adjust. Install x86_linux_regs_info,
  11996. x86_cannot_fetch_register, and x86_cannot_store_register.
  11997. (initialize_low_arch): New.
  11998. * linux-ia64-low.c (tdesc_ia64): Declare.
  11999. (ia64_fetch_register): Adjust.
  12000. (ia64_usrregs_info, regs_info): New globals.
  12001. (ia64_regs_info): New function.
  12002. (the_low_target): Adjust.
  12003. (initialize_low_arch): New function.
  12004. * linux-sparc-low.c (tdesc_sparc64): Declare.
  12005. (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
  12006. Adjust.
  12007. (sparc_arch_setup): New function.
  12008. (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
  12009. (the_low_target): Adjust.
  12010. (initialize_low_arch): New function.
  12011. * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
  12012. (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
  12013. (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
  12014. (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
  12015. (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
  12016. (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
  12017. (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
  12018. (tdesc_powerpc_isa205_vsx64l): Declare.
  12019. (ppc_cannot_store_register, ppc_collect_ptrace_register)
  12020. (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
  12021. (ppc_set_pc, ppc_get_hwcap): Adjust.
  12022. (ppc_usrregs_info): Forward declare.
  12023. (!__powerpc64__) ppc_regmap_adjusted: New global.
  12024. (ppc_arch_setup): Adjust to the current process'es target
  12025. description.
  12026. (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
  12027. (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
  12028. (ppc_store_evrregset): Adjust.
  12029. (target_regsets): Rename to ...
  12030. (ppc_regsets): ... this, and make static.
  12031. (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
  12032. (ppc_regs_info): New function.
  12033. (the_low_target): Adjust.
  12034. (initialize_low_arch): New function.
  12035. * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
  12036. (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
  12037. (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
  12038. (tdesc_s390x_linux64v2): Declare.
  12039. (s390_collect_ptrace_register, s390_supply_ptrace_register)
  12040. (s390_fill_gregset, s390_store_last_break): Adjust.
  12041. (target_regsets): Rename to ...
  12042. (s390_regsets): ... this, and make static.
  12043. (s390_get_pc, s390_set_pc): Adjust.
  12044. (s390_get_hwcap): New target_desc parameter, and use it.
  12045. [__s390x__] (have_hwcap_s390_high_gprs): New global.
  12046. (s390_arch_setup): Adjust to set the current process'es target
  12047. description. Don't adjust the regmap.
  12048. (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
  12049. [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
  12050. (regs_info_3264): New globals.
  12051. (s390_regs_info): New function.
  12052. (the_low_target): Adjust.
  12053. (initialize_low_arch): New function.
  12054. * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
  12055. (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
  12056. [__mips64] (init_registers_mips_linux)
  12057. (init_registers_mips_dsp_linux): Delete defines.
  12058. [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
  12059. (have_dsp): New global.
  12060. (mips_read_description): New, based on mips_arch_setup.
  12061. (mips_arch_setup): Reimplement.
  12062. (get_usrregs_info): New function.
  12063. (mips_cannot_fetch_register, mips_cannot_store_register)
  12064. (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
  12065. (mips_fill_fpregset, mips_store_fpregset): Adjust.
  12066. (target_regsets): Rename to ...
  12067. (mips_regsets): ... this, and make static.
  12068. (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
  12069. (dsp_regs_info, regs_info): New globals.
  12070. (mips_regs_info): New function.
  12071. (the_low_target): Adjust.
  12072. (initialize_low_arch): New function.
  12073. * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
  12074. (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
  12075. Declare.
  12076. (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
  12077. (arm_read_description): New, with bits factored from
  12078. arm_arch_setup.
  12079. (arm_arch_setup): Reimplement.
  12080. (target_regsets): Rename to ...
  12081. (arm_regsets): ... this, and make static.
  12082. (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
  12083. (arm_regs_info): New function.
  12084. (the_low_target): Adjust.
  12085. (initialize_low_arch): New function.
  12086. * linux-m68k-low.c (tdesc_m68k): Declare.
  12087. (target_regsets): Rename to ...
  12088. (m68k_regsets): ... this, and make static.
  12089. (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
  12090. (m68k_regs_info): New function.
  12091. (m68k_arch_setup): New function.
  12092. (the_low_target): Adjust.
  12093. (initialize_low_arch): New function.
  12094. * linux-sh-low.c (tdesc_sharch): Declare.
  12095. (target_regsets): Rename to ...
  12096. (sh_regsets): ... this, and make static.
  12097. (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
  12098. (sh_regs_info, sh_arch_setup): New functions.
  12099. (the_low_target): Adjust.
  12100. (initialize_low_arch): New function.
  12101. * linux-bfin-low.c (tdesc_bfin): Declare.
  12102. (bfin_arch_setup): New function.
  12103. (bfin_usrregs_info, regs_info): New globals.
  12104. (bfin_regs_info): New function.
  12105. (the_low_target): Adjust.
  12106. (initialize_low_arch): New function.
  12107. * linux-cris-low.c (tdesc_cris): Declare.
  12108. (cris_arch_setup): New function.
  12109. (cris_usrregs_info, regs_info): New globals.
  12110. (cris_regs_info): New function.
  12111. (the_low_target): Adjust.
  12112. (initialize_low_arch): New function.
  12113. * linux-cris-low.c (tdesc_crisv32): Declare.
  12114. (cris_arch_setup): New function.
  12115. (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
  12116. (cris_regs_info): New function.
  12117. (the_low_target): Adjust.
  12118. (initialize_low_arch): New function.
  12119. * linux-m32r-low.c (tdesc_m32r): Declare.
  12120. (m32r_arch_setup): New function.
  12121. (m32r_usrregs_info, regs_info): New globals.
  12122. (m32r_regs_info): Adjust.
  12123. (initialize_low_arch): New function.
  12124. * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
  12125. (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
  12126. (tic6x_usrregs_info): Forward declare.
  12127. (tic6x_read_description): New function, based on ...
  12128. (tic6x_arch_setup): ... this. Reimplement.
  12129. (target_regsets): Rename to ...
  12130. (tic6x_regsets): ... this, and make static.
  12131. (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
  12132. (tic6x_regs_info): New function.
  12133. (the_low_target): Adjust.
  12134. (initialize_low_arch): New function.
  12135. * linux-xtensa-low.c (tdesc_xtensa): Declare.
  12136. (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
  12137. (target_regsets): Rename to ...
  12138. (xtensa_regsets): ... this, and make static.
  12139. (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
  12140. globals.
  12141. (xtensa_arch_setup, xtensa_regs_info): New functions.
  12142. (the_low_target): Adjust.
  12143. (initialize_low_arch): New function.
  12144. * linux-nios2-low.c (tdesc_nios2_linux): Declare.
  12145. (nios2_arch_setup): Set the current process'es tdesc.
  12146. (target_regsets): Rename to ...
  12147. (nios2_regsets): ... this.
  12148. (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
  12149. (nios2_regs_info): New function.
  12150. (the_low_target): Adjust.
  12151. (initialize_low_arch): New function.
  12152. * linux-aarch64-low.c (tdesc_aarch64): Declare.
  12153. (aarch64_arch_setup): Set the current process'es tdesc.
  12154. (target_regsets): Rename to ...
  12155. (aarch64_regsets): ... this.
  12156. (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
  12157. (aarch64_regs_info): New function.
  12158. (the_low_target): Adjust.
  12159. (initialize_low_arch): New function.
  12160. * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
  12161. globals.
  12162. (target_regsets): Rename to ...
  12163. (tile_regsets): ... this.
  12164. (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
  12165. (tile_regs_info): New function.
  12166. (tile_arch_setup): Set the current process'es tdesc.
  12167. (the_low_target): Adjust.
  12168. (initialize_low_arch): New function.
  12169. * spu-low.c (tdesc_spu): Declare.
  12170. (spu_create_inferior, spu_attach): Set the new process'es tdesc.
  12171. * win32-arm-low.c (tdesc_arm): Declare.
  12172. (arm_arch_setup): New function.
  12173. (the_low_target): Install arm_arch_setup instead of
  12174. init_registers_arm.
  12175. * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
  12176. (init_windows_x86): Rename to ...
  12177. (i386_arch_setup): ... this. Set `win32_tdesc'.
  12178. (the_low_target): Adjust.
  12179. * win32-low.c (win32_tdesc): New global.
  12180. (child_add_thread): Don't create the thread cache here.
  12181. (do_initial_child_stuff): Set the new process'es tdesc.
  12182. * win32-low.h (struct target_desc): Forward declare.
  12183. (win32_tdesc): Declare.
  12184. * lynx-i386-low.c (tdesc_i386): Declare global.
  12185. (lynx_i386_arch_setup): Set `lynx_tdesc'.
  12186. * lynx-low.c (lynx_tdesc): New global.
  12187. (lynx_add_process): Set the new process'es tdesc.
  12188. * lynx-low.h (struct target_desc): Forward declare.
  12189. (lynx_tdesc): Declare global.
  12190. * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
  12191. (lynx_ppc_arch_setup): Set `lynx_tdesc'.
  12192. * nto-low.c (nto_tdesc): New global.
  12193. (do_attach): Set the new process'es tdesc.
  12194. * nto-low.h (struct target_desc): Forward declare.
  12195. (nto_tdesc): Declare.
  12196. * nto-x86-low.c (tdesc_i386): Declare.
  12197. (nto_x86_arch_setup): Set `nto_tdesc'.
  12198. 2013-06-04 Gary Benson <gbenson@redhat.com>
  12199. * server.c (handle_query): Add "augmented-libraries-svr4-read+"
  12200. to qSupported response when appropriate.
  12201. (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
  12202. with nonzero-length annex.
  12203. * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
  12204. arguments supplied in annex.
  12205. 2013-05-31 Doug Evans <dje@google.com>
  12206. PR server/15594
  12207. * linux-x86-low.c (ps_get_thread_area): Properly extend address to
  12208. 64 bits in 64-cross-32 environment.
  12209. 2013-05-28 Pedro Alves <palves@redhat.com>
  12210. * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
  12211. (aarch64-without-fpu.c): Delete rule.
  12212. * configure.srv (aarch64*-*-linux*): Remove references to
  12213. aarch64-without-fpu.o and aarch64-without-fpu.xml.
  12214. * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
  12215. declaration.
  12216. 2013-05-24 Pedro Alves <palves@redhat.com>
  12217. * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
  12218. instead of strchr/decode_address. Error if the range isn't split
  12219. with a ','. Don't assume there's be a ':' in the action.
  12220. 2013-05-23 Yao Qi <yao@codesourcery.com>
  12221. Pedro Alves <palves@redhat.com>
  12222. * linux-low.c (lwp_in_step_range): New function.
  12223. (linux_wait_1): If the thread was range stepping and stopped
  12224. outside the stepping range, report the stop to GDB. Otherwise,
  12225. continue stepping. Add range stepping debug output.
  12226. (linux_set_resume_request): Copy the step range from the resume
  12227. request to the lwp.
  12228. (linux_supports_range_stepping): New.
  12229. (linux_target_ops) <supports_range_stepping>: Set to
  12230. linux_supports_range_stepping.
  12231. * linux-low.h (struct linux_target_ops)
  12232. <supports_range_stepping>: New field.
  12233. (struct lwp_info) <step_range_start, step_range_end>: New fields.
  12234. * linux-x86-low.c (x86_supports_range_stepping): New.
  12235. (the_low_target) <supports_range_stepping>: Set to
  12236. x86_supports_range_stepping.
  12237. * server.c (handle_v_cont): Handle 'r' action.
  12238. (handle_v_requests): Append ";r" if the target supports range
  12239. stepping.
  12240. * target.h (struct thread_resume) <step_range_start,
  12241. step_range_end>: New fields.
  12242. (struct target_ops) <supports_range_stepping>:
  12243. New field.
  12244. (target_supports_range_stepping): New macro.
  12245. 2013-05-17 Joel Brobecker <brobecker@adacore.com>
  12246. * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
  12247. confusion in comment.
  12248. 2013-05-17 Joel Brobecker <brobecker@adacore.com>
  12249. * lynx-low.c (struct process_info_private): New type.
  12250. (lynx_add_process): New function.
  12251. (lynx_create_inferior, lynx_attach): Replace calls to
  12252. add_process by calls to lynx_add_process.
  12253. (lynx_resume): If PTID is null, then try using
  12254. current_process()->private->last_wait_event_ptid.
  12255. Add comments.
  12256. (lynx_clear_inferiors): Delete. The contents of that function
  12257. has been inlined in lynx_mourn;
  12258. (lynx_wait_1): Save the ptid in the process's private data.
  12259. (lynx_mourn): Free the process' private data. Replace call
  12260. to lynx_clear_inferiors by call to clear_inferiors.
  12261. 2013-05-17 Yao Qi <yao@codesourcery.com>
  12262. * i386-low.c (i386_length_and_rw_bits): Move the comment to
  12263. the right place.
  12264. 2013-05-16 Luis Machado <lgustavo@codesourcery.com>
  12265. * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
  12266. PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
  12267. (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
  12268. PT_TEXT_END_ADDR guards. Update comments.
  12269. (linux_target_op) <read_offsets>: Conditionally define to
  12270. linux_read_offsets if the target is UCLIBC and if it defines
  12271. PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
  12272. 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
  12273. Andrew Jenner <andrew@codesourcery.com>
  12274. * Makefile.in (SFILES): Add linux-nios2-low.c.
  12275. (clean): Add action to delete nios2-linux.c.
  12276. (nios2-linux.c): New rule.
  12277. * configure.srv: Add nios2*-*-linux*.
  12278. * linux-nios2-low.c: New.
  12279. 2013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
  12280. * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
  12281. 2013-04-25 Hui Zhu <hui@codesourcery.com>
  12282. PR gdb/15186
  12283. * ax.c (ax_printf): Add fflush.
  12284. 2013-04-22 Tom Tromey <tromey@redhat.com>
  12285. * Makefile.in (SFILES): Add filestuff.c.
  12286. (OBS): Add filestuff.o.
  12287. (filestuff.o): New target.
  12288. * config.in, configure: Rebuild.
  12289. * configure.ac: Check for fdwalk, pipe2.
  12290. 2013-04-17 Pedro Alves <palves@redhat.com>
  12291. * configure.ac (USE_THREAD_DB): Delete variable.
  12292. (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
  12293. Don't AC_SUBST USE_THREAD_DB.
  12294. * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
  12295. * config.in, configure: Regenerate.
  12296. 2013-04-16 Pedro Alves <palves@redhat.com>
  12297. * linux-low.h (struct lwp_info) <thread_known>: Move under
  12298. the USE_THREAD_DB #ifdef.
  12299. 2013-04-16 Pedro Alves <palves@redhat.com>
  12300. * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
  12301. (linux-low.o): Delete rule.
  12302. * linux-low.h: Always include "gdb_thread_db.h" instead of
  12303. conditionally including thread_db.h.
  12304. (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
  12305. HAVE_THREAD_DB_H.
  12306. 2013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
  12307. * Makefile.in (install-only): Fix make install regression.
  12308. 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
  12309. Convert man pages to texinfo, new gdbinit.5 texinfo page.
  12310. * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
  12311. installation.
  12312. * gdbserver.1: Remove.
  12313. 2013-03-22 Pedro Alves <palves@redhat.com>
  12314. * linux-low.c (handle_extended_wait): Don't call
  12315. linux_enable_event_reporting.
  12316. 2013-03-15 Tony Theodore <tonyt@logyst.com>
  12317. PR build/9098:
  12318. * Makefile.in (SHELL): Use @SHELL@.
  12319. 2013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
  12320. * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
  12321. compiler warning.
  12322. 2013-03-13 Joel Brobecker <brobecker@adacore.com>
  12323. * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
  12324. Remove extraneous NULL element.
  12325. 2013-03-13 Yao Qi <yao@codesourcery.com>
  12326. * tracepoint.c (traceframe_read_tsv): Look for the last matched
  12327. 'V' block in trace frame.
  12328. 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
  12329. * target.h (struct target_ops): Add btrace ops.
  12330. (target_supports_btrace): New macro.
  12331. (target_enable_btrace): New macro.
  12332. (target_disable_btrace): New macro.
  12333. (target_read_btrace): New macro.
  12334. * gdbthread.h (struct thread_info): Add btrace field.
  12335. * server.c: Include btrace-common.h.
  12336. (handle_btrace_general_set): New function.
  12337. (handle_btrace_enable): New function.
  12338. (handle_btrace_disable): New function.
  12339. (handle_general_set): Call handle_btrace_general_set.
  12340. (handle_qxfer_btrace): New function.
  12341. (struct qxfer qxfer_packets[]): Add btrace entry.
  12342. * inferiors.c (remove_thread): Disable btrace.
  12343. * linux-low: Include linux-btrace.h.
  12344. (linux_low_enable_btrace): New function.
  12345. (linux_low_read_btrace): New function.
  12346. (linux_target_ops): Add btrace ops.
  12347. * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
  12348. Add srv_linux_btrace=yes.
  12349. (x86_64-*-linux*): Add linux-btrace.o.
  12350. Add srv_linux_btrace=yes.
  12351. * configure.ac: Define HAVE_LINUX_BTRACE.
  12352. * config.in: Regenerated.
  12353. * configure: Regenerated.
  12354. 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
  12355. * server.c (handle_qxfer): Preserve error message if -3 is
  12356. returned.
  12357. (qxfer): Document the -3 return value.
  12358. 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
  12359. * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
  12360. (linux_btrace_h): New variable.
  12361. (linux-btrace.o): New rule.
  12362. 2013-03-08 Stan Shebs <stan@codesourcery.com>
  12363. Hafiz Abid Qadeer <abidh@codesourcery.com>
  12364. * tracepoint.c (trace_buffer_size): New global.
  12365. (DEFAULT_TRACE_BUFFER_SIZE): New define.
  12366. (init_trace_buffer): Change to one-argument function. Allocate
  12367. trace buffer memory.
  12368. (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
  12369. handle QTBuffer:size packet.
  12370. (cmd_bigqtbuffer_size): New function.
  12371. (initialize_tracepoint): Call init_trace_buffer with
  12372. DEFAULT_TRACE_BUFFER_SIZE.
  12373. * server.c (handle_query): Add QTBuffer:size in the
  12374. supported packets.
  12375. 2013-03-07 Yao Qi <yao@codesourcery.com>
  12376. * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
  12377. (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
  12378. of -1.
  12379. (cmd_qtsp): Adjust condition. Do post increment.
  12380. Set cur_action and cur_step_action back to 0.
  12381. 2013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
  12382. PR server/15236
  12383. * linux-low.c (linux_write_memory): Return early success if LEN is
  12384. zero.
  12385. 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
  12386. * configure.srv: Add x86_64-*-cygwin* as target.
  12387. 2013-02-28 Tom Tromey <tromey@redhat.com>
  12388. * configure.ac: Invoke AC_SYS_LARGEFILE.
  12389. * configure, config.in: Rebuild.
  12390. 2013-02-28 Corinna Vinschen <vinschen@redhat.com>
  12391. * win32-low.c: Throughout, fix format strings and casts of
  12392. printf-like functions to avoid type related warnings on all
  12393. platforms.
  12394. (get_child_debug_event): Print dwDebugEventCode as hex since
  12395. that's how it's usually documented.
  12396. 2013-02-28 Yao Qi <yao@codesourcery.com>
  12397. * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
  12398. pulongest.
  12399. 2013-02-27 Jiong Wang <jiwang@tilera.com>
  12400. * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
  12401. (reg-tilegx32.c): New rule.
  12402. * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
  12403. * linux-tile-low.c (tile_arch_setup): New function. Invoke
  12404. different register info initializer according to elf class.
  12405. (init_registers_tilgx32): New function. The tilegx32 register info
  12406. initializer.
  12407. (tile_fill_gregset): Use "uint_reg_t" to represent register size.
  12408. (tile_store_gregset): Likewise.
  12409. 2013-02-27 Yao Qi <yao@codesourcery.com>
  12410. * server.c (process_point_options): Print debug message when
  12411. debug_threads is true.
  12412. 2013-02-26 Yao Qi <yao@codesourcery.com>
  12413. * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
  12414. 2013-02-19 Pedro Alves <palves@redhat.com>
  12415. Kai Tietz <ktietz@redhat.com>
  12416. PR gdb/15161
  12417. * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
  12418. instead of strtoul to extract address from packet.
  12419. (process_serial_event) <'z'>: Likewise.
  12420. 2013-02-18 Yao Qi <yao@codesourcery.com>
  12421. * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
  12422. 2013-02-14 Pedro Alves <palves@redhat.com>
  12423. Plug memory leak.
  12424. * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
  12425. TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
  12426. 2013-02-14 Pedro Alves <palves@redhat.com>
  12427. * tracepoint.c (cmd_qtdpsrc): Use savestring.
  12428. 2013-02-14 Pedro Alves <palves@redhat.com>
  12429. * tracepoint.c (save_string): Delete.
  12430. (add_tracepoint_action): Use savestring instead of save_string.
  12431. 2013-02-12 Pedro Alves <palves@redhat.com>
  12432. * linux-xtensa-low.c: Ditto.
  12433. * xtensa-xtregs.c: Ditto.
  12434. 2013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
  12435. * thread-db.c (thread_db_get_tls_address): NULL pointer check
  12436. thread_db.
  12437. 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
  12438. * linux-aarch64-low.c (aarch64_arch_setup): Clamp
  12439. aarch64_num_wp_regs and aarch64_num_bp_regs to
  12440. AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
  12441. 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
  12442. * linux-aarch64-low.c (ps_get_thread_area): Replace
  12443. PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
  12444. 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
  12445. Marcus Shawcroft <marcus.shawcroft@arm.com>
  12446. Nigel Stephens <nigel.stephens@arm.com>
  12447. Yufeng Zhang <yufeng.zhang@arm.com>
  12448. * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
  12449. (aarch64.c, aarch64-without-fpu.c): New targets.
  12450. * configure.srv (aarch64*-*-linux*): New.
  12451. * linux-aarch64-low.c: New file.
  12452. 2013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
  12453. * linux-low.c (handle_extended_wait, linux_create_inferior)
  12454. (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
  12455. (dequeue_one_deferred_signal, linux_resume_one_thread)
  12456. (fetch_register, linux_write_memory, linux_enable_event_reporting)
  12457. (linux_tracefork_grandchild, linux_test_for_tracefork)
  12458. (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
  12459. PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
  12460. where the argument is 0.
  12461. 2013-01-25 Yao Qi <yao@codesourcery.com>
  12462. * event-loop.c: Include "queue.h".
  12463. (gdb_event_p): New typedef.
  12464. (struct gdb_event) <next_event>: Remove.
  12465. (event_queue): Change to QUEUE(gdb_event_p).
  12466. (async_queue_event): Remove.
  12467. (gdb_event_xfree): New.
  12468. (initialize_event_loop): New.
  12469. (process_event): Use API from QUEUE.
  12470. (wait_for_event): Likewise.
  12471. * server.c (main): Call initialize_event_loop.
  12472. * server.h (initialize_event_loop): Declare.
  12473. 2013-01-18 Yao Qi <yao@codesourcery.com>
  12474. * ax.h (struct eval_agent_expr_context): New.
  12475. (gdb_eval_agent_expr): Update declaration.
  12476. * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
  12477. TFRAME. Add new argument CTX.
  12478. * server.h (struct eval_agent_expr_context): Declare.
  12479. (agent_mem_read, agent_tsv_read): Update declaration.
  12480. (agent_mem_read_string): Likewise.
  12481. * tracepoint.c (eval_tracepoint_agent_expr): Remove.
  12482. (add_traceframe_block): Add new argument TPOINT.
  12483. Increase TPOINT->traceframe_usage.
  12484. (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
  12485. eval_tracepoint_agent_expr.
  12486. (condition_true_at_tracepoint): Likewise.
  12487. (agent_mem_read): Remove argument TFRAME. Add argument CTX.
  12488. (agent_mem_read_string, agent_tsv_read): Likewise.
  12489. 2013-01-16 Yao Qi <yao@codesourcery.com>
  12490. * linux-low.c (linux_resume_one_lwp): Don't check
  12491. 'lwp->bp_reinsert != 0'.
  12492. 2013-01-07 Joel Brobecker <brobecker@adacore.com>
  12493. Pedro Alves <palves@redhat.com>
  12494. * lynx-low.c (ptrace_request_to_str): Define a temporary
  12495. macro and use it to simplify this function's implementation.
  12496. 2013-01-07 Joel Brobecker <brobecker@adacore.com>
  12497. * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
  12498. sets errno.
  12499. 2013-01-07 Joel Brobecker <brobecker@adacore.com>
  12500. * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
  12501. 2013-01-07 Joel Brobecker <brobecker@adacore.com>
  12502. * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
  12503. 2013-01-07 Joel Brobecker <brobecker@adacore.com>
  12504. * lynx-low.c (lynx_resume): Use the resume_info parameter
  12505. to determine the ptid for the lynx_ptrace call, unless
  12506. it is equal to minus_one_ptid, in which case we use the
  12507. ptid of the current_inferior.
  12508. (lynx_wait_1): After having received a thread create/exit
  12509. event, resume the inferior's execution using the signaling
  12510. thread's ptid, rather than the old ptid.
  12511. 2013-01-07 Joel Brobecker <brobecker@adacore.com>
  12512. * lynx-low.c (lynx_resume): Delete variable ret.
  12513. 2013-01-01 Joel Brobecker <brobecker@adacore.com>
  12514. * gdbreplay.c (gdbreplay_version): Update copyright year.
  12515. * server.c (gdbserver_version): Likewise.
  12516. 2012-12-17 Joel Brobecker <brobecker@adacore.com>
  12517. * lynx-low.c (lynx_wait_1): Add debug trace before adding
  12518. new thread.
  12519. 2012-12-17 Joel Brobecker <brobecker@adacore.com>
  12520. * lynx-low.c (ptrace_request_to_str): Add handling for
  12521. PTRACE_GETTRACESIG.
  12522. 2012-12-17 Joel Brobecker <brobecker@adacore.com>
  12523. * lynx-low.c (lynx_attach): Delete variable new_process.
  12524. 2012-12-17 Joel Brobecker <brobecker@adacore.com>
  12525. * lynx-low.c (lynx_create_inferior): Delete variable
  12526. new_process.
  12527. 2012-12-17 Joel Brobecker <brobecker@adacore.com>
  12528. * lynx-low.c (ptrace_request_to_str): Do not handle
  12529. PTRACE_GETTHREADLIST if this macro does not exist.
  12530. 2012-12-15 Yao Qi <yao@codesourcery.com>
  12531. * Makefile.in (OBS): Add notif.o.
  12532. * notif.c, notif.h: New.
  12533. * server.c: Include "notif.h".
  12534. (struct vstop_notif) <next>: Remove.
  12535. <base>: New field.
  12536. (queue_stop_reply): Update.
  12537. (push_event, send_next_stop_reply): Remove.
  12538. (discard_queued_stop_replies): Update.
  12539. (notif_stop): New variable.
  12540. (handle_v_stopped): Remove.
  12541. (handle_v_requests): Don't call handle_v_stopped. Call
  12542. handle_ack_notif instead.
  12543. (queue_stop_reply_callback): Call notif_event_enque instead
  12544. of queue_stop_reply.
  12545. (handle_status): Don't call send_next_stop_reply, call
  12546. notif_write_event instead.
  12547. (kill_inferior_callback): Likewise.
  12548. (detach_or_kill_inferior_callback): Likewise.
  12549. (main): Call initialize_notif.
  12550. (process_serial_event): Call QUEUE_is_empty.
  12551. (handle_target_event): Call notif_push instead of push event.
  12552. * server.h (push_event): Remove declaration.
  12553. 2012-12-10 Tom Tromey <tromey@redhat.com>
  12554. * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
  12555. (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
  12556. macros.
  12557. (.c.o): Rewrite.
  12558. (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
  12559. (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
  12560. (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
  12561. (amd64-linux-ipa.o, ax.o): Rewrite.
  12562. (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
  12563. (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
  12564. (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
  12565. (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
  12566. (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
  12567. (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
  12568. (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
  12569. (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
  12570. (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
  12571. (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
  12572. (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
  12573. (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
  12574. (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
  12575. (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
  12576. (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
  12577. (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
  12578. (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
  12579. (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
  12580. (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
  12581. (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
  12582. (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
  12583. (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
  12584. (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
  12585. (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
  12586. (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
  12587. (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
  12588. (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
  12589. (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
  12590. (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
  12591. (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
  12592. (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
  12593. (reg-tilegx.o): Remove.
  12594. (all_object_files): New macro.
  12595. Include .deps files.
  12596. * aclocal.m4, configure: Rebuild.
  12597. * acinclude.m4: Include depstand.m4, lead-dot.m4.
  12598. * configure.ac: Invoke ZW_CREATE_DEPDIR,
  12599. ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
  12600. 2012-12-05 Tom Tromey <tromey@redhat.com>
  12601. PR gdb/14917:
  12602. * server.h (current_insn_ptr, emit_error): Declare 'extern'.
  12603. 2012-11-28 Markus Metzger <markus.t.metzger@intel.com>
  12604. * configure.ac: Check for linux/perf_event.h.
  12605. * config.in: Regenerated.
  12606. * configure: Regenerated.
  12607. 2012-11-26 Maxime Villard <rustyBSD@gmx.fr>
  12608. * hostio.c (handle_readlink): Decrease buffer size
  12609. parameter passed to readlink by one byte.
  12610. 2012-11-26 Yao Qi <yao@codesourcery.com>
  12611. * configure.ac (build_warnings): Append '-Wempty-body'.
  12612. * configure: Regenerated.
  12613. * linux-low.c (linux_create_inferior): Use braces for empty 'if'
  12614. body.
  12615. 2012-11-15 Pierre Muller <muller@sourceware.org>
  12616. * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
  12617. * config.in: Regenerate.
  12618. * configure: Regenerate.
  12619. * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
  12620. Use "gdb_wait.h" header instead of <sys/wait.h> header.
  12621. * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
  12622. * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
  12623. header.
  12624. * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
  12625. instead of <sys/wait.h> header.
  12626. * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
  12627. 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
  12628. * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
  12629. (various make rules): Remove -DGDBSERVER
  12630. 2012-11-09 Yao Qi <yao@codesourcery.com>
  12631. * spu-low.c (current_ptid): Move it to ..
  12632. * gdbthread.h: ... here. New.
  12633. * remote-utils.c (read_ptid): Use macro 'current_ptid'.
  12634. * server.c (myresume, process_serial_event): Likewise.
  12635. * thread-db.c (thread_db_find_new_threads): Likewise.
  12636. * tracepoint.c (run_inferior_command): Likewise.
  12637. 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
  12638. * server.c (handle_search_memory_1): Include access length in
  12639. warning message.
  12640. 2012-09-05 Michael Brandt <michael.brandt@axis.com>
  12641. * linux-crisv32-low.c: Fix compile errors.
  12642. 2012-09-04 Yao Qi <yao@codesourcery.com>
  12643. * tracepoint.c (cmd_qtsv): Adjust debug message.
  12644. Don't check CUR_TPOINT.
  12645. 2012-08-28 Yao Qi <yao@codesourcery.com>
  12646. * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
  12647. * server.h: Include 'libiberty.h' and 'ansidecl.h'.
  12648. (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
  12649. Remove declarations of xmalloc, xreallloc, xstrdup and
  12650. freeargv.
  12651. * Makefile.in (libiberty_h): New.
  12652. (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
  12653. (linux-bfin-low.o): Append dependency 'libiberty.h'.
  12654. 2012-08-23 Yao Qi <yao@codesourcery.com>
  12655. * server.h: Remove declaration of 'xsnprintf'.
  12656. 2012-08-22 Keith Seitz <keiths@redhat.com>
  12657. * server.h: Include build-gnulib-gbserver/config.h.
  12658. * gdbreplay.c: Likewise.
  12659. 2012-08-08 Doug Evans <dje@google.com>
  12660. * Makefile.in (SFILES): Add gdb_vecs.c.
  12661. (OBS): Add gdb_vecs.o.
  12662. (gdb_vecs_h, host_defs_h): New variables.
  12663. (thread-db.o): Add $(gdb_vecs_h) dependency.
  12664. (gdb_vecs.o): New rule.
  12665. * thread-db.c: #include "gdb_vecs.h".
  12666. (thread_db_load_search): Use a vector to iterate over path elements.
  12667. Handle text appearing after "$pdir".
  12668. * configure.ac: Add check for strstr.
  12669. * config.in: Regenerate.
  12670. * configure: Regenerate.
  12671. 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
  12672. * hostio.c (handle_pread): If pread fails, fall back to attempting
  12673. lseek/read.
  12674. (handle_pwrite): Likewise for pwrite.
  12675. 2012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
  12676. * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
  12677. between unsupported TYPE and unimplementable ADDR/LEN combination.
  12678. (arm_insert_point): Act on new return value.
  12679. 2012-07-31 Pedro Alves <palves@redhat.com>
  12680. * server.c (process_point_options): Only skip tokens if we find
  12681. one that is unrecognized. Don't treat 'X' specially while
  12682. skipping unrecognized tokens.
  12683. 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
  12684. * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
  12685. to 4-byte-align HW breakpoint addresses for Thumb.
  12686. 2012-07-27 Yao Qi <yao@codesourcery.com>
  12687. PR remote/14161.
  12688. * server.h: Declare gdb_agent_about_to_close.
  12689. * target.c (kill_inferior): Include "agent.h".
  12690. New. Send command 'kill'.
  12691. * target.h (kill_inferior): Removed macro.
  12692. * tracepoint.c (gdb_agent_about_to_close): New.
  12693. (gdb_agent_helper_thread): Handle command 'close'.
  12694. Wait endlessly until the inferior stops.
  12695. Install gdb_agent_remove_socket to atexit hook.
  12696. (agent_socket_name): New static variable.
  12697. (gdb_agent_socket_init): Replace local variable 'name' with
  12698. 'agent_socket_name'.
  12699. (gdb_agent_remove_socket): New.
  12700. 2012-07-27 Yao Qi <yao@codesourcery.com>
  12701. * server.c (process_point_options): Stop at 'X' when parsing.
  12702. 2012-07-19 Michael Eager <eager@eagercon.com>
  12703. * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
  12704. to hw_execute.
  12705. * linux-x86-low.c (x86_insert_point, x86_remove_point):
  12706. Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
  12707. hardware breakpoint.
  12708. 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
  12709. * gdbserver/linux-low.c (initialize_low): Call
  12710. linux_ptrace_init_warnings.
  12711. 2012-07-02 Doug Evans <dje@google.com>
  12712. * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
  12713. pointer to int.
  12714. 2012-07-02 Stan Shebs <stan@codesourcery.com>
  12715. * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
  12716. (ax.o): Add it to build rule.
  12717. (ax-ipa.o): Ditto.
  12718. (OBS): Add format.o.
  12719. (IPA_OBS): Add format.o.
  12720. * server.c (handle_query): Claim support for breakpoint commands.
  12721. (process_point_options): Add command case.
  12722. (process_serial_event): Leave running if there are printfs in
  12723. effect.
  12724. * mem-break.h (any_persistent_commands): Declare.
  12725. (add_breakpoint_commands): Declare.
  12726. (gdb_no_commands_at_breakpoint): Declare.
  12727. (run_breakpoint_commands): Declare.
  12728. * mem-break.c (struct point_command_list): New struct.
  12729. (struct breakpoint): New field command_list.
  12730. (any_persistent_commands): New function.
  12731. (add_commands_to_breakpoint): New function.
  12732. (add_breakpoint_commands): New function.
  12733. (gdb_no_commands_at_breakpoint): New function.
  12734. (run_breakpoint_commands): New function.
  12735. * linux-low.c (linux_wait_1): Test for and run breakpoint commands
  12736. locally.
  12737. * ax.c: Include format.h.
  12738. (ax_printf): New function.
  12739. (gdb_eval_agent_expr): Add printf opcode.
  12740. 2012-06-13 Yao Qi <yao@codesourcery.com>
  12741. * server.c (start_inferior): Remove duplicated writes to fields
  12742. 'last_resume_kind' and 'last_status' of 'current_inferior'.
  12743. 2012-06-12 Yao Qi <yao@codesourcery.com>
  12744. Pedro Alves <palves@redhat.com>
  12745. * linux-low.c (linux_set_resume_request): Simplify predicate. Add
  12746. comment.
  12747. * server.c (handle_v_cont): Extend comment.
  12748. 2012-06-11 Yao Qi <yao@codesourcery.com>
  12749. * linux-low.c (linux_attach): Add 'static'.
  12750. 2012-06-06 Yao Qi <yao@codesourcery.com>
  12751. * ax.c (gdb_eval_agent_expr): Print `top' in hex.
  12752. 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
  12753. Fix gcc -flto compilation warning.
  12754. * server.c (main): Make variable multi_mode and attach volatile.
  12755. 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
  12756. * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
  12757. if the platform doesn't know about it.
  12758. 2012-05-30 Jeff Kenton <jkenton@tilera.com>
  12759. * Makefile.in (SFILES): Add linux-tile-low.c.
  12760. (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
  12761. * configure.srv: Handle tilegx-*-linux*.
  12762. * linux-tile-low.c: New file.
  12763. 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
  12764. * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
  12765. 2012-05-24 Pedro Alves <palves@redhat.com>
  12766. PR gdb/7205
  12767. Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
  12768. 2012-05-24 Pedro Alves <palves@redhat.com>
  12769. PR gdb/7205
  12770. Replace target_signal with gdb_signal throughout.
  12771. 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
  12772. * linux-low.c (linux_store_registers): Avoid the copying sequence
  12773. when no data has been retrieved by ptrace.
  12774. 2012-05-22 Will Deacon <will.deacon@arm.com>
  12775. * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
  12776. Include asm/ptrace.h.
  12777. (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
  12778. already defined.
  12779. 2012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
  12780. * linux-low.c (linux_store_registers): Don't re-retrieve data
  12781. with ptrace that has already been obtained from /proc. Always
  12782. copy any data retrieved with ptrace to the buffer supplied.
  12783. 2012-05-11 Yao Qi <yao@codesourcery.com>
  12784. Pedro Alves <palves@redhat.com>
  12785. * linux-low.c (enum stopping_threads_kind): New.
  12786. (stopping_threads): Change type to `enum stopping_threads_kind'.
  12787. (handle_extended_wait): If stopping and suspending threads, leave
  12788. the new_lwp suspended too.
  12789. (linux_wait_for_event): Adjust.
  12790. (stop_all_lwps): Set `stopping_threads' to
  12791. STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
  12792. whether we're suspending threads or just stopping them. Assert no
  12793. recursion happens.
  12794. 2012-04-29 Yao Qi <yao@codesourcery.com>
  12795. * server.h: Move some code to ...
  12796. * gdbthread.h: ... here. New.
  12797. * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
  12798. (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
  12799. (nto-low.o, win32-low.o): Likewise.
  12800. * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
  12801. * regcache.c, remote-utils.c, server.c: Likewise.
  12802. * target.c, tracepoint.c, win32-low.c: Likewise.
  12803. 2012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
  12804. * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
  12805. (PTRACE_ARG4_TYPE): Likewise.
  12806. (PTRACE_XFER_TYPE): Likewise.
  12807. * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
  12808. ptrace to PTRACE_ARG3_TYPE.
  12809. * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
  12810. (PTRACE_ARG4_TYPE): Likewise.
  12811. (PTRACE_XFER_TYPE): Likewise.
  12812. (linux_detach_one_lwp): Cast fourth argument of
  12813. ptrace to long then PTRACE_ARG4_TYPE.
  12814. (regsets_fetch_inferior_registers): Cast third argument of
  12815. ptrace to long then PTRACE_ARG3_TYPE.
  12816. (regsets_store_inferior_registers): Likewise.
  12817. 2012-04-20 Pedro Alves <palves@redhat.com>
  12818. * configure: Regenerate.
  12819. 2012-04-19 Pedro Alves <palves@redhat.com>
  12820. * Makefile.in (GNULIB_BUILDDIR): New.
  12821. (LIBGNU, INCGNU, GNULIB_H): Adjust.
  12822. (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
  12823. (all, install-only, uninstall, clean-info, all-lib, clean): No
  12824. longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
  12825. (maintainer-clean realclean distclean): Use subdir_do.
  12826. (subdir_do): New.
  12827. (gnulib/import/Makefile): Adjust. Replace gnulib/import with
  12828. $(GNULIB_BUILDDIR). Don't pass argument to config.status.
  12829. * acinclude.m4: Include acx_configure_dir.m4.
  12830. * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
  12831. calls. Call AC_PROG_RANLIB. Configure gnulib using
  12832. ACX_CONFIGURE_DIR.
  12833. (GNULIB): New.
  12834. (GNULIB_STDINT_H): Adjust.
  12835. (AC_OUTPUT): Don't output gnulib/Makefile anymore.
  12836. * gdbreplay.c: Include build-gnulib/config.h.
  12837. * server.h: Likewise.
  12838. * aclocal.m4: Regenerate.
  12839. * config.in: Regenerate.
  12840. * configure: Regenerate.
  12841. 2012-04-19 Pedro Alves <palves@redhat.com>
  12842. * Makefile.in (LIBGNU, INCGNU): Adjust.
  12843. (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
  12844. (all, install-only, uninstall, clean-info, all-lib, clean)
  12845. (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
  12846. * configure.ac: Adjust AC_OUTPUT output.
  12847. * aclocal.m4: Regenerate.
  12848. * configure: Regenerate.
  12849. 2012-04-19 Pedro Alves <palves@redhat.com>
  12850. * Makefile.in (generated_files): New.
  12851. (server_h): Remove the explicit dependency on config.h, and depend
  12852. on $generated_files.
  12853. 2012-04-19 Pedro Alves <palves@redhat.com>
  12854. * Makefile.in (INCGNU): Add -Ignulib.
  12855. 2012-04-19 Pedro Alves <palves@redhat.com>
  12856. * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
  12857. (INCGNU): ... this, and spell out -I here.
  12858. (GNULIB_LIB): Rename to ...
  12859. (LIBGNU): ... this.
  12860. (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
  12861. 2012-04-19 Pedro Alves <palves@redhat.com>
  12862. * config.in: Regenerate.
  12863. 2012-04-19 Pedro Alves <palves@redhat.com>
  12864. * configure.ac: Remove AC_CHECK_DECLS check for memmem.
  12865. * server.h (memmem): Remove declaration.
  12866. * config.in: Regenerate.
  12867. * configure: Regenerate.
  12868. 2012-04-19 Yao Qi <yao@codesourcery.com>
  12869. * Makefile.in (SFILES): Add common/vec.c.
  12870. (OBS): Add vec.o.
  12871. (vec.o): New rule.
  12872. 2012-04-19 Yao Qi <yao@codesourcery.com>
  12873. * remote-utils.c (prepare_resume_reply): Replace with macro
  12874. target_core_of_thread.
  12875. * server.c (handle_qxfer_threads_proper): Likewise.
  12876. * target.h (traget_core_of_thread): New macro.
  12877. 2012-04-18 Pedro Alves <palves@redhat.com>
  12878. * aclocal.m4: Regenerate.
  12879. * configure: Regenerate.
  12880. 2012-04-16 Yao Qi <yao@codesourcery.com>
  12881. * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
  12882. duplicated on address.
  12883. 2012-04-16 Yao Qi <yao@codesourcery.com>
  12884. * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
  12885. (struct tracepoint_action_ops) <send>: New field.
  12886. (m_tracepoint_action_send, r_tracepoint_action_send): New.
  12887. (agent_expr_send, x_tracepoint_action_send): New.
  12888. (l_tracepoint_action_send): New.
  12889. (cmd_qtdp): Download and install tracepoint
  12890. according to `use_agent'.
  12891. (run_inferior_command): Add one more parameter `len'.
  12892. Update callers.
  12893. (tracepoint_send_agent): New.
  12894. (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
  12895. 2012-04-16 Yao Qi <yao@codesourcery.com>
  12896. * tracepoint.c (download_tracepoints): Moved to ...
  12897. (cmd_qtstart): ... here.
  12898. 2012-04-14 Yao Qi <yao@codesourcery.com>
  12899. * tracepoint.c: Include inttypes.h.
  12900. (struct collect_memory_action): Use sized types.
  12901. (struct tracepoint): Likewise.
  12902. (cmd_qtdp, stop_tracing): Update print specifiers.
  12903. (cmd_qtp, response_tracepoint): Likewise.
  12904. (collect_data_at_tracepoint): Likewise.
  12905. (collect_data_at_step): Likewise.
  12906. 2012-04-14 Yao Qi <yao@codesourcery.com>
  12907. Import gnulib module inttypes.
  12908. * aclocal.m4, config.in, configure: Regenerated.
  12909. 2012-04-14 Yao Qi <yao@codesourcery.com>
  12910. * Makefile.in (maintainer-clean, realclean, distclean): Remove
  12911. Makefile and config.status at last.
  12912. 2012-04-13 Yao Qi <yao@codesourcery.com>
  12913. * tracepoint.c: Include stdint.h unconditionally.
  12914. 2012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
  12915. * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
  12916. on BFD_HAVE_SYS_PROCFS_TYPE.
  12917. * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
  12918. * configure: Regenerate.
  12919. * config.in: Likewise.
  12920. 2012-04-13 H.J. Lu <hongjiu.lu@intel.com>
  12921. * Makefile.in (clean): Also remove x32.c x32-linux.c
  12922. x32-avx.c x32-avx-linux.c.
  12923. (x32.o): New target.
  12924. (x32.c): Likewise.
  12925. (x32-linux.o): Likewise.
  12926. (x32-linux.c): Likewise.
  12927. (x32-avx.o): Likewise.
  12928. (x32-avx.c): Likewise.
  12929. (x32-avx-linux.o): Likewise.
  12930. (x32-avx-linux.c): Likewise.
  12931. * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
  12932. (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
  12933. (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
  12934. (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
  12935. (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
  12936. i386/x32-avx-linux.xml.
  12937. * linux-x86-low.c (init_registers_x32_linux): New prototype.
  12938. (init_registers_x32_avx_linux): Likwise.
  12939. (x86_linux_update_xmltarget): Call init_registers_x32_linux
  12940. or init_registers_x32_avx_linux if linux_is_elf64 is false.
  12941. 2012-04-13 Pedro Alves <palves@redhat.com>
  12942. * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
  12943. (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
  12944. (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
  12945. (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
  12946. the sub-make.
  12947. 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
  12948. * linux-x86-low.c (compat_x32_clock_t): New.
  12949. (compat_x32_siginfo_t): Likewise.
  12950. (compat_x32_siginfo_from_siginfo): Likewise.
  12951. (siginfo_from_compat_x32_siginfo): Likewise.
  12952. (linux_is_elf64): Likewise.
  12953. (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
  12954. and siginfo_from_compat_x32_siginfo for x32.
  12955. (x86_arch_setup): Set linux_is_elf64.
  12956. 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
  12957. PR gdb/13969
  12958. * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
  12959. e_machine field.
  12960. (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
  12961. * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
  12962. * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
  12963. compatible with process.
  12964. 2012-04-12 Yao Qi <yao@codesourcery.com>
  12965. * Makefile.in: Define abs_top_srcdir and abs_srcdir.
  12966. (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
  12967. (install-only, install-info, clean): Handle sub dir gnulib.
  12968. (all-lib, am--refresh): New targets.
  12969. (memmem.o): Remove target.
  12970. * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
  12971. Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
  12972. (AC_REPLACE_FUNCS): Remove memmem.
  12973. Invoke gl_INIT and AM_INIT_AUTOMAKE.
  12974. (AC_OUTPUT): Generate Makefile in gnulib/.
  12975. * aclocal.m4, config.in, configure: Regenerated.
  12976. 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
  12977. * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
  12978. 2012-04-05 Pedro Alves <palves@redhat.com>
  12979. -Werror=strict-aliasing
  12980. * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
  12981. pointer.
  12982. 2012-04-04 Pedro Alves <palves@redhat.com>
  12983. * linux-sparc-low.c (sparc_fill_gregset_to_stack)
  12984. (sparc_store_gregset_from_stack, sparc_store_gregset)
  12985. (sparc_breakpoint_at): Fix formatting.
  12986. 2012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
  12987. * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
  12988. are available.
  12989. * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
  12990. [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
  12991. * config.in: Regenerate.
  12992. * configure: Likewise.
  12993. 2012-03-29 Pedro Alves <palves@redhat.com>
  12994. * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
  12995. Correct ptrace arguments.
  12996. 2012-03-28 Pedro Alves <palves@redhat.com>
  12997. * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
  12998. (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
  12999. (IA64_FR1_REGNUM): New defines.
  13000. (ia64_fetch_register): New.
  13001. (the_low_target): Install it.
  13002. * linux-low.h (struct linux_target_ops) <fetch_register>: New
  13003. field.
  13004. * linux-low.c (linux_fetch_registers): Try the
  13005. the_low_target.fetch_register hook first.
  13006. * linux-arm-low.c (the_low_target): Adjust.
  13007. * linux-bfin-low.c (the_low_target): Adjust.
  13008. * linux-cris-low.c (the_low_target): Adjust.
  13009. * linux-crisv32-low.c (the_low_target): Adjust.
  13010. * linux-m32r-low.c (the_low_target): Adjust.
  13011. * linux-m68k-low.c (the_low_target): Adjust.
  13012. * linux-mips-low.c (the_low_target): Adjust.
  13013. * linux-ppc-low.c (the_low_target): Adjust.
  13014. * linux-s390-low.c (the_low_target): Adjust.
  13015. * linux-sh-low.c (the_low_target): Adjust.
  13016. * linux-sparc-low.c (the_low_target): Adjust.
  13017. * linux-tic6x-low.c (the_low_target): Adjust.
  13018. * linux-x86-low.c (the_low_target): Adjust.
  13019. * linux-xtensa-low.c (the_low_target): Adjust.
  13020. 2012-03-26 Pedro Alves <palves@redhat.com>
  13021. * server.c (handle_qxfer_libraries): Don't bail early if
  13022. the_target->qxfer_libraries_svr4 is not NULL.
  13023. 2012-03-26 Pedro Alves <palves@redhat.com>
  13024. * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
  13025. 2012-03-23 Pedro Alves <palves@redhat.com>
  13026. * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
  13027. "library-list-svr4" element's start tag when the the DSO list is
  13028. empty.
  13029. 2012-03-23 Pedro Alves <palves@redhat.com>
  13030. * linux-low.c (read_one_ptr): Read the inferior's pointer through
  13031. a variable whose type size is the same as the inferior's pointer
  13032. size.
  13033. 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
  13034. * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
  13035. struct siginfo.
  13036. * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
  13037. * linux-x86-low.c (x86_siginfo_fixup): Likewise.
  13038. * linux-low.h: Include <signal.h>.
  13039. (struct siginfo): Remove forward declaration.
  13040. (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
  13041. struct siginfo.
  13042. 2012-03-21 Mike Frysinger <vapier@gentoo.org>
  13043. * .gitignore: Ignore more files.
  13044. 2012-03-19 Pedro Alves <palves@redhat.com>
  13045. Jan Kratochvil <jan.kratochvil@redhat.com>
  13046. * server.c (cont_thread, general_thread): Add describing comments.
  13047. (start_inferior): Clear `cont_thread'.
  13048. (handle_v_cont): Don't set `cont_thread' if resuming all threads
  13049. of a process.
  13050. 2012-03-15 Yao Qi <yao@codesourcery.com>
  13051. * tracepoint.c (install_tracepoint): Move duplicated tracepoint
  13052. handling to ...
  13053. (cmd_qtdp): ... here.
  13054. 2012-03-15 Yao Qi <yao@codesourcery.com>
  13055. * tracepoint.c (struct tracepoint_action_ops): New.
  13056. (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
  13057. (m_tracepoint_action_download): New.
  13058. (r_tracepoint_action_download): New.
  13059. (x_tracepoint_action_download): New.
  13060. (l_tracepoint_action_download): New.
  13061. (add_tracepoint_action): Install `action->ops' according type.
  13062. (download_tracepoint_1): Move code `download' function pointer
  13063. of various tracepoint_action_ops.
  13064. 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
  13065. * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
  13066. linux_ptrace_attach_warnings.
  13067. 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
  13068. * Makefile.in (linux-ptrace.o): New.
  13069. * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
  13070. (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
  13071. (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
  13072. (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
  13073. (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
  13074. of these targets.
  13075. * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
  13076. 2012-03-08 Yao Qi <yao@codesourcery.com>
  13077. Pedro Alves <palves@redhat.com>
  13078. Fix PR server/13392.
  13079. * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
  13080. offset of JMP insn.
  13081. * tracepoint.c (remove_tracepoint): New.
  13082. (cmd_qtdp): Call remove_tracepoint when failed to install.
  13083. 2012-03-07 Pedro Alves <palves@redhat.com>
  13084. * linux-low.c (get_detach_signal): New.
  13085. (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
  13086. Pass on pending signals to PTRACE_DETACH. Check the result of the
  13087. ptrace call.
  13088. * server.c (program_signals, program_signals_p): New.
  13089. (handle_general_set): Handle QProgramSignals.
  13090. * server.h (program_signals, program_signals_p): Declare.
  13091. 2012-03-05 Pedro Alves <palves@redhat.com>
  13092. Jan Kratochvil <jan.kratochvil@redhat.com>
  13093. * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
  13094. New comment why.
  13095. 2012-03-03 Yao Qi <yao@codesourcery.com>
  13096. * tracepoint.c (tracepoint_look_up_symbols): Update call to
  13097. agent_look_up_symbols.
  13098. 2012-03-03 Yao Qi <yao@codesourcery.com>
  13099. * Makefile.in (linux-low.o): Keep dependence on agent.h.
  13100. (linux-x86-low.o): Likewise.
  13101. * server.h: Remove in_process_agent_loaded.
  13102. * tracepoint.c (in_process_agent_loaded): Removed. Moved it
  13103. common/agent.c.
  13104. Update callers.
  13105. 2012-03-03 Yao Qi <yao@codesourcery.com>
  13106. * tracepoint.c (gdb_agent_capability): New global.
  13107. (in_process_agent_loaded_ust): Renamed to
  13108. `in_process_agent_supports_ust'.
  13109. Update callers.
  13110. (in_process_agent_supports_ust): Call agent_capability_check.
  13111. (clear_installed_tracepoints): Assert that agent supports
  13112. agent.
  13113. 2012-03-03 Yao Qi <yao@codesourcery.com>
  13114. * linux-low.c (linux_supports_agent): New.
  13115. (linux_target_ops): Initialize field `supports_agent' with
  13116. linux_supports_agent.
  13117. * target.h (struct target_ops) <supports_agent>: New.
  13118. (target_supports_agent): New macro.
  13119. * server.c (handle_general_set): Handle packet 'QAgent'.
  13120. (handle_query): Send `QAgent+'.
  13121. * Makefile.in (server.o): Depends on agent.h.
  13122. 2012-03-03 Yao Qi <yao@codesourcery.com>
  13123. * Makefile.in (OBS): Add agent.o.
  13124. Add new rule for agent.o.
  13125. Track dependence of tracepoint.c on agent.h.
  13126. * tracepoint.c (run_inferior_command_1):
  13127. (run_inferior_command): Call agent_run_command.
  13128. (gdb_ust_connect_sync_socket): Deleted. Move it to
  13129. common/agent.c.
  13130. (resume_thread, stop_thread): Likewise.
  13131. (gdb_ust_socket_init): Renamed to ...
  13132. (gdb_agent_socket_init): ... New.
  13133. (gdb_ust_thread): Renamed to ...
  13134. (gdb_agent_helper_thread): ... New.
  13135. (gdb_ust_init): Move some code to ...
  13136. (gdb_agent_init): ... here. New.
  13137. [HAVE_UST]: Call gdb_ust_init.
  13138. (initialize_tracepoint_ftlib): Call gdb_agent_init.
  13139. * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
  13140. * config.in, configure: Regenerated.
  13141. 2012-03-02 Pedro Alves <palves@redhat.com>
  13142. * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
  13143. * linux-low.c (struct simple_pid_list): New.
  13144. (stopped_pids): New a struct simple_pid_list pointer.
  13145. (add_to_pid_list, pull_pid_from_list): New.
  13146. (handle_extended_wait): Don't assume the first signal new children
  13147. report is SIGSTOP. Adjust call to pull_pid_from_list.
  13148. (linux_wait_for_lwp): Adjust.
  13149. 2012-03-02 Yao Qi <yao@codesourcery.com>
  13150. * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
  13151. debug log.
  13152. 2012-03-02 Yao Qi <yao@codesourcery.com>
  13153. * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
  13154. `stop_pc' and `tpoint'. Update caller.
  13155. 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
  13156. * linux-low.h (linux_target_ops): Add regset_bitmap member.
  13157. * linux-low.c (use_linux_regsets): New macro.
  13158. [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
  13159. [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
  13160. (linux_register_in_regsets): New function.
  13161. (usr_fetch_inferior_registers): Skip registers covered by
  13162. regsets.
  13163. (usr_store_inferior_registers): Likewise.
  13164. (usr_fetch_inferior_registers): New macro.
  13165. (usr_store_inferior_registers): Likewise.
  13166. (linux_fetch_registers): Handle mixed regset/non-regset targets.
  13167. (linux_store_registers): Likewise.
  13168. * linux-mips-low.c (init_registers_mips_dsp_linux): New
  13169. prototype.
  13170. (init_registers_mips64_dsp_linux): Likewise.
  13171. (init_registers_mips_linux): New macro.
  13172. (init_registers_mips_dsp_linux): Likewise.
  13173. (mips_dsp_num_regs): Likewise.
  13174. (DSP_BASE, DSP_CONTROL): New fallback macros.
  13175. (mips_base_regs): New macro.
  13176. (mips_regmap): Use it. Fix the size.
  13177. (mips_dsp_regmap): New variable.
  13178. (mips_dsp_regset_bitmap): Likewise.
  13179. (mips_arch_setup): New function.
  13180. (mips_cannot_fetch_register): Use the_low_target.regmap rather
  13181. than mips_regmap.
  13182. (mips_cannot_store_register): Likewise.
  13183. (the_low_target): Update .arch_setup, .num_regs and .regmap
  13184. initializers. Add .regset_bitmap initializer.
  13185. * linux-arm-low.c (the_low_target): Add .regset_bitmap
  13186. initializer.
  13187. * linux-bfin-low.c (the_low_target): Likewise.
  13188. * linux-cris-low.c (the_low_target): Likewise.
  13189. * linux-crisv32-low.c (the_low_target): Likewise.
  13190. * linux-ia64-low.c (the_low_target): Likewise.
  13191. * linux-m32r-low.c (the_low_target): Likewise.
  13192. * linux-m68k-low.c (the_low_target): Likewise.
  13193. * linux-ppc-low.c (the_low_target): Likewise.
  13194. * linux-s390-low.c (the_low_target): Likewise.
  13195. * linux-sh-low.c (the_low_target): Likewise.
  13196. * linux-sparc-low.c (the_low_target): Likewise.
  13197. * linux-tic6x-low.c (the_low_target): Likewise.
  13198. * linux-x86-low.c (the_low_target): Likewise.
  13199. * linux-xtensa-low.c (the_low_target): Likewise.
  13200. * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
  13201. mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
  13202. mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
  13203. srv_xmlfiles.
  13204. * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
  13205. (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
  13206. 2012-02-29 Yao Qi <yao@codesourcery.com>
  13207. Pedro Alves <palves@redhat.com>
  13208. * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
  13209. `step_over_finished' is true.
  13210. 2012-02-27 Pedro Alves <palves@redhat.com>
  13211. * linux-low.c (pid_is_stopped): Delete, moved to common/.
  13212. (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
  13213. 2012-02-27 Pedro Alves <palves@redhat.com>
  13214. PR server/9684
  13215. * linux-low.c (pid_is_stopped): New.
  13216. (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
  13217. 2012-02-25 Luis Machado <lgustavo@codesourcery.com>
  13218. * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
  13219. of conditions.
  13220. 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
  13221. * linux-mips-low.c (mips_regmap): Correct the index of $f9.
  13222. 2012-02-24 Luis Machado <lgustavo@codesourcery>
  13223. * server.c (handle_query): Advertise support for target-side
  13224. breakpoint condition evaluation.
  13225. (process_point_options): New function.
  13226. (process_serial_event): When inserting a breakpoint, check for
  13227. a target-side condition that should be evaluated.
  13228. * mem-break.c: Include regcache.h and ax.h.
  13229. (point_cond_list_t): New data structure.
  13230. (breakpoint) <cond_list>: New field.
  13231. (find_gdb_breakpoint_at): Make non-static.
  13232. (delete_gdb_breakpoint_at): Clear any target-side
  13233. conditions.
  13234. (clear_gdb_breakpoint_conditions): New function.
  13235. (add_condition_to_breakpoint): Likewise.
  13236. (add_breakpoint_condition): Likewise.
  13237. (gdb_condition_true_at_breakpoint): Likewise.
  13238. (gdb_breakpoint_here): Return result directly instead
  13239. of going through a local variable.
  13240. * mem-break.h (find_gdb_breakpoint_at): New prototype.
  13241. (clear_gdb_breakpoint_conditions): Likewise.
  13242. (add_breakpoint_condition): Likewise.
  13243. (gdb_condition_true_at_breakpoint): Likewise.
  13244. * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
  13245. (need_step_over_p): Take target-side breakpoint condition into
  13246. consideration.
  13247. 2012-02-24 Luis Machado <lgustavo@codesourcery>
  13248. * server.h: Include tracepoint.h.
  13249. (agent_mem_read, agent_get_trace_state_variable_value,
  13250. agent_set_trace_state_variable_value,
  13251. agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
  13252. get_set_tsv_func_addr): New prototypes.
  13253. * ax.h: New include file.
  13254. * ax.c: New source file.
  13255. * tracepoint.c: Include ax.h.
  13256. (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
  13257. agent_expr, eval_result_type): Move to ax.h.
  13258. (parse_agent_expr): Rename to ...
  13259. (gdb_parse_agent_expr): ... this, make it non-static and move
  13260. to ax.h.
  13261. (unparse_agent_expr) Rename to ...
  13262. (gdb_unparse_agent_expr): ... this, make it non-static and move
  13263. to ax.h.
  13264. (eval_agent_expr): Rename to ...
  13265. (eval_tracepoint_agent_expr): ... this.
  13266. (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
  13267. forward declarations.
  13268. (add_tracepoint_action): Call gdb_parse_agent_expr (...).
  13269. (agent_get_trace_state_variable_value): New function.
  13270. (agent_set_trace_state_variable_value): New function.
  13271. (cmd_qtdp): Call gdb_parse_agent_expr (...).
  13272. (response_tracepoint): Call gdb_unparse_agent_expr (...).
  13273. (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
  13274. (condition_true_at_tracepoint): Likewise.
  13275. (parse_agent_expr): Rename to ...
  13276. (gdb_parse_agent_expr): ... this and move to ax.c.
  13277. (unparse_agent_expr): Rename to ...
  13278. (gdb_unparse_agent_expr): ... this and move to ax.c.
  13279. (gdb_agent_op_name): Move to ax.c.
  13280. (eval_agent_expr): Rename to ...
  13281. (gdb_eval_agent_expr): ... this, use regcache passed as parameter
  13282. and move to ax.c.
  13283. (eval_tracepoint_agent_expr): New function.
  13284. (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
  13285. non-static.
  13286. (current_insn_ptr, emit_error, struct bytecode_address): Move to
  13287. ax.c.
  13288. (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
  13289. emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
  13290. emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
  13291. emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
  13292. emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
  13293. emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
  13294. emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
  13295. emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
  13296. (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
  13297. (compile_bytecodes): Remove forward declaration.
  13298. (is_goto_target): Move to ax.c.
  13299. (compile_bytecodes): Move to ax.c and call
  13300. agent_get_trace_state_variable_value (...) and
  13301. agent_set_trace_state_variable_value (...).
  13302. * Makefile.in: Update ax.c and IPA dependencies.
  13303. 2012-02-24 Pedro Alves <palves@redhat.com>
  13304. * tracepoint.c (cmd_bigqtbuffer): Rename as ...
  13305. (cmd_bigqtbuffer_circular): ... this. Only handle
  13306. 'QTBuffer:circular:'.
  13307. (handle_tracepoint_general_set): Adjust.
  13308. 2012-02-16 Yao Qi <yao@codesourcery.com>
  13309. * inferiors.c: Move code to ...
  13310. * dll.c: .... here. New.
  13311. * server.h: Declare clear_dlls.
  13312. * Makefile.in (SFILES): Add dll.c.
  13313. (OBS): Add dll.o
  13314. (dll.o): New rule.
  13315. 2012-02-11 Yao Qi <yao@codesourcery.com>
  13316. * server.c: (handle_monitor_command): Add a new parameter
  13317. `own_buf'.
  13318. (handle_query): Update caller.
  13319. 2012-02-09 Joel Brobecker <brobecker@adacore.com>
  13320. * configure.ac: Add readlink to AC_CHECK_FUNCS list.
  13321. * configure, config.in: Regenerate.
  13322. * hostio.c: Provide an alternate implementation if HAVE_READLINK
  13323. is not defined.
  13324. 2012-02-02 Pedro Alves <palves@redhat.com>
  13325. Try SIGKILL first, then PTRACE_KILL.
  13326. * linux-low.c (linux_kill_one_lwp): New.
  13327. (linux_kill_one_lwp): Rename to ...
  13328. (kill_one_lwp_callback): ... this. Use the new
  13329. linux_kill_one_lwp.
  13330. 2012-02-02 Pedro Alves <palves@redhat.com>
  13331. * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
  13332. inferior.
  13333. 2012-01-27 Pedro Alves <palves@redhat.com>
  13334. * linux-low.c (linux_child_pid_to_exec_file): Delete.
  13335. (elf_64_file_p): Make static.
  13336. (linux_pid_exe_is_elf_64_file): New.
  13337. * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
  13338. Delete declarations.
  13339. (linux_pid_exe_is_elf_64_file): Declare.
  13340. * linux-x86-low.c (x86_arch_setup): Use
  13341. linux_pid_exe_is_elf_64_file.
  13342. 2012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
  13343. * linux-low.c (linux_wait_for_event_1): Rename to ...
  13344. (linux_wait_for_event): ... here and merge it with former
  13345. linux_wait_for_event - new variable wait_ptid, use it.
  13346. (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
  13347. 2012-01-23 Pedro Alves <palves@redhat.com>
  13348. * server.c (main): Avoid yet another case of infinite loop while
  13349. detaching/killing after a longjmp.
  13350. 2012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
  13351. Code cleanup.
  13352. * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
  13353. 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
  13354. * hostio.c (handle_readlink): New function.
  13355. (handle_vFile): Call it to handle "vFile:readlink" packets.
  13356. 2012-01-20 Pedro Alves <palves@redhat.com>
  13357. Ulrich Weigand <ulrich.weigand@linaro.org>
  13358. * server.c (handle_v_requests): Only support vAttach and vRun to
  13359. start multiple processes when in extended protocol mode.
  13360. 2012-01-17 Pedro Alves <palves@redhat.com>
  13361. * tracepoint.c (initialize_tracepoint): Use mmap instead of
  13362. memalign plus mprotect to allocate the scratch buffer.
  13363. 2012-01-13 Pedro Alves <palves@redhat.com>
  13364. * server.c (attach_inferior): Clear `cont_thread'.
  13365. 2012-01-13 Pedro Alves <palves@redhat.com>
  13366. * server.c (main): Avoid infinite loop while detaching/killing
  13367. after a longjmp.
  13368. 2012-01-09 Doug Evans <dje@google.com>
  13369. * server.c (start_inferior): Set last_ptid in --wrapper case.
  13370. 2012-01-06 Yao Qi <yao@codesourcery.com>
  13371. * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
  13372. defined.
  13373. [IN_PROCESS_AGENT] (debug_agent): New global variable.
  13374. 2012-01-04 Yao Qi <yao@codesourcery.com>
  13375. * tracepoint.c (cmd_qtdp): Print debug message
  13376. for static tracepoint.
  13377. 2012-01-04 Yao Qi <yao@codesourcery.com>
  13378. * tracepoint.c (trace_vdebug): Differentiate debug message
  13379. between gdbserver and IPA.
  13380. 2012-01-03 Yao Qi <yao@codesourcery.com>
  13381. * tracepoint.c (tracepoint_was_hit): Don't collect for
  13382. static tracepoint.
  13383. 2012-01-02 Joel Brobecker <brobecker@adacore.com>
  13384. * terminal.h: Reformat copyright header.
  13385. 2012-01-02 Joel Brobecker <brobecker@adacore.com>
  13386. * server.c (gdbserver_version): Update copyright year.
  13387. * gdbreplay.c (gdbreplay_version): Likewise.
  13388. 2011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
  13389. * linux-low.c (linux_create_inferior): Put empty if clause for write.
  13390. Revert:
  13391. 2011-12-18 Hui Zhu <teawater@gmail.com>
  13392. * linux-low.c (linux_create_inferior): Save return value to ret.
  13393. 2011-12-18 Hui Zhu <teawater@gmail.com>
  13394. * linux-low.c (linux_create_inferior): Save return value to ret.
  13395. 2011-12-16 Doug Evans <dje@google.com>
  13396. * linux-low.c (linux_create_inferior): If stdio connection,
  13397. redirect stdin from /dev/null, stdout to stderr.
  13398. * remote-utils.c (remote_is_stdio): New static global.
  13399. (remote_connection_is_stdio): New function.
  13400. (remote_prepare): Handle stdio connection.
  13401. (remote_open): Ditto.
  13402. (remote_close): Don't close stdin for stdio connections.
  13403. (read_prim,write_prim): New functions. Replace all calls to
  13404. read/write to these.
  13405. * server.c (main): Watch for "-" argument. Move call to
  13406. remote_prepare before start_inferior.
  13407. * server.h (STDIO_CONNECTION_NAME): New macro.
  13408. (remote_connection_is_stdio): Declare.
  13409. * remote-utils.c (prepare_resume_reply): Remove extraneous \n
  13410. in debugging output.
  13411. 2011-12-15 Yao Qi <yao@codesourcery.com>
  13412. * tracepoint.c: Include sys/syscall.h.
  13413. (gdb_ust_thread): Remove preprocessor conditional.
  13414. 2011-12-14 Pedro Alves <pedro@codesourcery.com>
  13415. * linux-low.c (linux_detach_one_lwp): Call
  13416. the_low_target.prepare_to_resume before detaching.
  13417. 2011-12-14 Yao Qi <yao@codesourcery.com>
  13418. * tracepoint.c (gdb_ust_thread): Don't ignore return value
  13419. of write.
  13420. 2011-12-14 Yao Qi <yao@codesourcery.com>
  13421. * i386-low.c (i386_low_stopped_data_address): Initialize local
  13422. variable `control'.
  13423. 2011-12-13 Pedro Alves <pedro@codesourcery.com>
  13424. PR remote/13492
  13425. * i386-low.c (i386_low_stopped_data_address): Avoid fetching
  13426. DR_CONTROL unless necessary. Extend comments.
  13427. * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
  13428. DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
  13429. 2011-12-13 Yao Qi <yao@codesourcery.com>
  13430. * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
  13431. macros.
  13432. (upload_fast_traceframes, upload_fast_traceframes): Likewise.
  13433. 2011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
  13434. * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
  13435. Print new debug message for such case.
  13436. 2011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
  13437. Fix overlapping memcpy.
  13438. * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
  13439. the read_inferior_memory transfer.
  13440. (delete_fast_tracepoint_jump): New variable buf. Use it for the
  13441. write_inferior_memory transfer.
  13442. (set_fast_tracepoint_jump): New variable buf. Use it for the
  13443. read_inferior_memory and write_inferior_memory transfers.
  13444. (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
  13445. (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
  13446. Use it for the write_inferior_memory transfer.
  13447. (check_mem_read, check_mem_write): New gdb_asserts for overlapping
  13448. buffers.
  13449. 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
  13450. * linux-low.c (fetch_register, store_register): Make code
  13451. consistent, fix formatting.
  13452. 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
  13453. * linux-low.c (usr_store_inferior_registers): Factor out code
  13454. to handle individual registers into...
  13455. (store_register): ... this new function.
  13456. 2011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
  13457. * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
  13458. (s390-linux32v2.o, s390-linux32v2.c): Likewise.
  13459. (s390-linux64v1.o, s390-linux64v1.c): Likewise.
  13460. (s390-linux64v2.o, s390-linux64v2.c): Likewise.
  13461. (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
  13462. (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
  13463. * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
  13464. (srv_xmlfiles): Add new XML files.
  13465. * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
  13466. and <sys/uio.h>.
  13467. (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
  13468. (init_registers_s390_linux32v1): Add prototype.
  13469. (init_registers_s390_linux32v2): Likewise.
  13470. (init_registers_s390_linux64v1): Likewise.
  13471. (init_registers_s390_linux64v2): Likewise.
  13472. (init_registers_s390x_linux64v1): Likewise.
  13473. (init_registers_s390x_linux64v2): Likewise.
  13474. (s390_num_regs): Increment to 52.
  13475. (s390_regmap): Add orig_r2 register.
  13476. (s390_num_regs_3264): Increment to 68.
  13477. (s390_regmap_3264): Add orig_r2 register.
  13478. (s390_collect_ptrace_register): Handle orig_r2 register.
  13479. (s390_supply_ptrace_register): Likewise.
  13480. (s390_fill_last_break): New function.
  13481. (s390_store_last_break): Likewise.
  13482. (s390_fill_system_call): New function.
  13483. (s390_store_system_call): Likewise.
  13484. (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
  13485. register sets.
  13486. (s390_check_regset): New function.
  13487. (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
  13488. NT_S390_SYSTEM_CALL regsets and use appropriate description.
  13489. Update target_regsets for available register sets.
  13490. 2011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
  13491. Jan Kratochvil <jan.kratochvil@redhat.com>
  13492. * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
  13493. (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
  13494. New.
  13495. (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
  13496. * linux-low.h (struct process_info_private): New member r_debug.
  13497. * server.c (handle_qxfer_libraries): Call
  13498. the_target->qxfer_libraries_svr4.
  13499. (handle_qxfer_libraries_svr4): New function.
  13500. (qxfer_packets): New entry "libraries-svr4".
  13501. (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
  13502. * target.h (struct target_ops): New member qxfer_libraries_svr4.
  13503. * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
  13504. PACKET_qXfer_libraries_svr4.
  13505. 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
  13506. * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
  13507. PSW address/mask between 8-byte and 16-byte formats.
  13508. (s390_supply_ptrace_register): Likewise.
  13509. (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
  13510. basic addressing mode bit.
  13511. 2011-11-24 Stan Shebs <stan@codesourcery.com>
  13512. * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
  13513. 2011-11-17 Stan Shebs <stan@codesourcery.com>
  13514. * tracepoint.c (struct tracepoint): New field traceframe_usage.
  13515. (tracing_start_time): New global.
  13516. (tracing_stop_time): New global.
  13517. (tracing_user_name): New global.
  13518. (tracing_notes): New global.
  13519. (tracing_stop_note): New global.
  13520. (cmd_qtstart): Set traceframe_usage, start_time.
  13521. (stop_tracing): Set stop_time.
  13522. (cmd_qtstatus): Report additional status.
  13523. (cmd_qtp): New function.
  13524. (handle_tracepoint_query): Call it.
  13525. (cmd_qtnotes): New function.
  13526. (handle_tracepoint_general_set): Call it.
  13527. (get_timestamp): Rename from tsv_get_timestamp.
  13528. 2011-11-14 Stan Shebs <stan@codesourcery.com>
  13529. Kwok Cheung Yeung <kcy@codesourcery.com>
  13530. * linux-x86-low.c (small_jump_insn): New.
  13531. (i386_install_fast_tracepoint_jump_pad): Add arguments for
  13532. trampoline and error message, build a trampoline and issue a small
  13533. jump instruction to it.
  13534. (x86_install_fast_tracepoint_jump_pad): Add arguments for
  13535. trampoline and error message.
  13536. (x86_get_min_fast_tracepoint_insn_len): New.
  13537. (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
  13538. * linux-low.h (struct linux_target_ops): Add arguments to
  13539. install_fast_tracepoint_jump_pad operation, add new operation.
  13540. * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
  13541. arguments.
  13542. (linux_get_min_fast_tracepoint_insn_len): New function.
  13543. (linux_target_op): Add new operation.
  13544. * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
  13545. (gdb_trampoline_buffer_end): Ditto.
  13546. (gdb_trampoline_buffer_error): Ditto.
  13547. (struct ipa_sym_addresses): Add fields for new IPA variables.
  13548. (symbol_list): Add entries for new IPA variables.
  13549. (struct tracepoint): Add fields to hold the address range of the
  13550. trampoline used by the tracepoint.
  13551. (trampoline_buffer_head): New static variable.
  13552. (trampoline_buffer_tail): Ditto.
  13553. (claim_trampoline_space): New function.
  13554. (have_fast_tracepoint_trampoline_buffer): New function.
  13555. (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
  13556. structure.
  13557. (install_fast_tracepoint): Ditto, also add error buffer argument.
  13558. (cmd_qtminftpilen): New function.
  13559. (handle_tracepoint_query): Add response to qTMinFTPILen packet.
  13560. (fast_tracepoint_from_trampoline_address): New function.
  13561. (fast_tracepoint_collecting): Handle trampoline as part of jump
  13562. pad space.
  13563. (set_trampoline_buffer_space): New function.
  13564. (initialize_tracepoint): Initialize new IPA variables.
  13565. * target.h (struct target_ops): Add arguments to
  13566. install_fast_tracepoint_jump_pad operation, add new
  13567. get_min_fast_tracepoint_insn_len operation.
  13568. (target_get_min_fast_tracepoint_insn_len): New.
  13569. (install_fast_tracepoint_jump_pad): Add arguments.
  13570. * server.h (IPA_BUFSIZ): Define.
  13571. * linux-i386-ipa.c: Include extra header files.
  13572. (initialize_fast_tracepoint_trampoline_buffer): New function.
  13573. (initialize_low_tracepoint): Call it.
  13574. * server.h (set_trampoline_buffer_space): Declare.
  13575. (claim_trampoline_space): Ditto.
  13576. (have_fast_tracepoint_trampoline_buffer): Ditto.
  13577. 2011-11-14 Yao Qi <yao@codesourcery.com>
  13578. * server.c (handle_query): Handle InstallInTrace for qSupported.
  13579. * tracepoint.c (add_tracepoint): Sort list.
  13580. (install_tracepoint, download_tracepoint): New.
  13581. (cmd_qtdp): Call them to install and download tracepoints.
  13582. (sort_tracepoints): Removed.
  13583. (cmd_qtstart): Update.
  13584. 2011-11-14 Yao Qi <yao@codesourcery.com>
  13585. * mem-break.c (inc_ref_fast_tracepoint_jump): New.
  13586. * mem-break.h: Declare.
  13587. * tracepoint.c (cmd_qtstart): Move some code to ...
  13588. (clone_fast_tracepoint, install_fast_tracepoint): ... here.
  13589. New.
  13590. (download_tracepoints): Move some code to ...
  13591. (download_tracepoint_1): ... here. New.
  13592. 2011-11-08 Yao Qi <yao@codesourcery.com>
  13593. * remote-utils.c (relocate_instruction): A comment fix.
  13594. 2011-11-07 Joel Brobecker <brobecker@adacore.com>
  13595. * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
  13596. (i386_dr_low_get_control, i386_dr_low_get_status): Use
  13597. dr_status_mirror and dr_control_mirror from debug_reg_state.
  13598. (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
  13599. (i386_initial_stuff): Remove use of deleted globals.
  13600. (i386_get_thread_context, i386_set_thread_context,
  13601. i386_thread_added): Use dr_status_mirror and dr_control_mirror
  13602. from debug_reg_state.
  13603. 2011-11-05 Yao Qi <yao@codesourcery.com>
  13604. * tracepoint.c (gdb_collect): Loop over tracepoints of same
  13605. address as TPOINT's.
  13606. 2011-11-02 Stan Shebs <stan@codesourcery.com>
  13607. * tracepoint.c (agent_mem_read_string): New function.
  13608. (eval_agent_expr): Call it for tracenz.
  13609. * server.c (handle_query): Report support for tracenz.
  13610. 2011-11-02 Yao Qi <yao@codesourcery.com>
  13611. * tracepoint.c (cmd_qtstart): Remove unused local variables.
  13612. 2011-11-02 Yao Qi <yao@codesourcery.com>
  13613. * target.h: Fix a typo in comment.
  13614. 2011-10-31 Pedro Alves <pedro@codesourcery.com>
  13615. * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
  13616. clobber the breakpoints' shadows with fast tracepoint jumps.
  13617. * mem-break.h (check_mem_write): Add `myaddr' parameter.
  13618. * target.c (write_inferior_memory): Also pass MYADDR down to
  13619. check_mem_write.
  13620. 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
  13621. * configure.ac: Check support for personality routine.
  13622. * configure: Regenerate.
  13623. * config.in: Likewise.
  13624. * linux-low.c: Include <sys/personality.h>.
  13625. Define ADDR_NO_RANDOMIZE if necessary.
  13626. (linux_create_inferior): Disable address space randomization when
  13627. forking inferior, if requested.
  13628. (linux_supports_disable_randomization): New function.
  13629. (linux_target_ops): Install it.
  13630. * server.h (disable_randomization): Declare.
  13631. * server.c (disable_randomization): New global variable.
  13632. (handle_general_set): Handle QDisableRandomization.
  13633. (handle_query): Likewise for qSupported.
  13634. (main): Support --disable-randomization and --no-disable-randomization
  13635. command line arguments.
  13636. * target.h (struct target_ops): Add supports_disable_randomization.
  13637. (target_supports_disable_randomization): New macro.
  13638. 2011-09-29 Mike Frysinger <vapier@gentoo.org>
  13639. * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
  13640. ifdef check.
  13641. [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
  13642. [!PT_GETDSBT] (target_loadmap): New definition.
  13643. (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
  13644. (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
  13645. LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
  13646. and PT_GETDSBT to LINUX_LOADMAP.
  13647. [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
  13648. (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
  13649. 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
  13650. * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
  13651. (arm_linux_hwbp_cap): New static variable.
  13652. (arm_linux_get_hwbp_cap): Replace by ...
  13653. (arm_linux_init_hwbp_cap): ... this new function.
  13654. (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
  13655. (arm_linux_get_hw_watchpoint_count): Likewise.
  13656. (arm_linux_get_hw_watchpoint_max_length): Likewise.
  13657. (arm_arch_setup): Call arm_linux_init_hwbp_cap.
  13658. (arm_prepare_to_resume): Use perror_with_name instead of error.
  13659. 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
  13660. * linux-arm-low.c: Include <signal.h>.
  13661. (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
  13662. (struct arm_linux_hwbp_cap): New data type.
  13663. (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
  13664. (struct arm_linux_hw_breakpoint): New data type.
  13665. (MAX_BPTS, MAX_WPTS): Define.
  13666. (struct arch_process_info, struct arch_lwp_info): New data types.
  13667. (arm_linux_get_hwbp_cap): New function.
  13668. (arm_linux_get_hw_breakpoint_count): Likewise.
  13669. (arm_linux_get_hw_watchpoint_count): Likewise.
  13670. (arm_linux_get_hw_watchpoint_max_length): Likewise.
  13671. (arm_hwbp_control_initialize): Likewise.
  13672. (arm_hwbp_control_is_enabled): Likewise.
  13673. (arm_hwbp_control_is_initialized): Likewise.
  13674. (arm_hwbp_control_disable): Likewise.
  13675. (arm_linux_hw_breakpoint_equal): Likewise.
  13676. (arm_linux_hw_point_initialize): Likewise.
  13677. (struct update_registers_data): New data structure.
  13678. (update_registers_callback: New function.
  13679. (arm_insert_point): Likewise.
  13680. (arm_remove_point): Likewise.
  13681. (arm_stopped_by_watchpoint): Likewise.
  13682. (arm_stopped_data_address): Likewise.
  13683. (arm_new_process): Likewise.
  13684. (arm_new_thread): Likewise.
  13685. (arm_prepare_to_resume): Likewise.
  13686. (the_low_target): Register arm_insert_point, arm_remove_point,
  13687. arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
  13688. arm_new_thread, and arm_prepare_to_resume.
  13689. 2011-09-15 Stan Shebs <stan@codesourcery.com>
  13690. * server.h (struct emit_ops): Add compare-goto fields.
  13691. * tracepoint.c (gdb_agent_op_sizes): New table.
  13692. (emit_eq_goto): New function.
  13693. (emit_ne_goto): New function.
  13694. (emit_lt_goto): New function.
  13695. (emit_le_goto): New function.
  13696. (emit_gt_goto): New function.
  13697. (emit_ge_goto): New function.
  13698. (is_goto_target): New function.
  13699. (compile_bytecodes): Recognize special cases of compare-goto
  13700. combinations and call specialized emitters for them.
  13701. * linux-x86-low.c (amd64_emit_eq_goto): New function.
  13702. (amd64_emit_ne_goto): New function.
  13703. (amd64_emit_lt_goto): New function.
  13704. (amd64_emit_le_goto): New function.
  13705. (amd64_emit_gt_goto): New function.
  13706. (amd64_emit_ge_goto): New function.
  13707. (amd64_emit_ops): Add the new functions.
  13708. (i386_emit_eq_goto): New function.
  13709. (i386_emit_ne_goto): New function.
  13710. (i386_emit_lt_goto): New function.
  13711. (i386_emit_le_goto): New function.
  13712. (i386_emit_gt_goto): New function.
  13713. (i386_emit_ge_goto): New function.
  13714. (i386_emit_ops): Add the new functions.
  13715. 2011-09-08 Stan Shebs <stan@codesourcery.com>
  13716. * linux-x86-low.c (i386_emit_prologue): Save %ebx.
  13717. (i386_emit_epilogue): Restore %ebx.
  13718. 2011-08-31 Jie Zhang <jzhang918@gmail.com>
  13719. * server.c (step_thread): Remove definition.
  13720. (process_serial_event): Don't handle Hs.
  13721. * server.h (step_thread): Remove declaration.
  13722. * target.c (set_desired_inferior): Remove use of step_thread.
  13723. 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
  13724. * linux-low.c: Include linux-procfs.h.
  13725. (linux_attach_lwp_1): Update comments.
  13726. (linux_attach): Scan for existing threads when attaching to a
  13727. process that is the tgid.
  13728. * Makefile.in: Update dependencies.
  13729. 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
  13730. * configure.srv: Add linux-procfs.o dependencies.
  13731. 2011-08-14 Yao Qi <yao@codesourcery.com>
  13732. * target.h (struct target_ops): Fix indent.
  13733. * win32-low.c (win32_target_ops): Fix comment.
  13734. 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
  13735. Yao Qi <yao@codesourcery.com>
  13736. * Makefile.in (clean): Remove tic6x-*.c files.
  13737. (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
  13738. (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
  13739. (tic6x-c64xp-linux.c): Likewise.
  13740. * configure.srv: Add support for tic6x-*-uclinux.
  13741. * linux-tic6x-low.c: New.
  13742. * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
  13743. 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
  13744. Yao Qi <yao@codesourcery.com>
  13745. * target.h (struct target_ops): Add read_loadmap.
  13746. * linux-low.c (struct target_loadseg): New type.
  13747. (struct target_loadmap): New type.
  13748. (linux_read_loadmap): New function.
  13749. (linux_target_ops): Add linux_read_loadmap.
  13750. * server.c (handle_query): Support qXfer:fdpic:read packet.
  13751. * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
  13752. to NULL.
  13753. 2011-08-05 Eli Zaretskii <eliz@gnu.org>
  13754. * win32-low.c: Include <stdint.h>.
  13755. 2011-07-22 Pedro Alves <pedro@codesourcery.com>
  13756. * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
  13757. to the inferior here.
  13758. (i386_remove_aligned_watchpoint): Ditto.
  13759. (i386_handle_nonaligned_watchpoint): Return immediate on fail to
  13760. fit part of the watchpoint in the debug registers.
  13761. (i386_update_inferior_debug_regs): New.
  13762. (i386_low_insert_watchpoint): Work on a local mirror of the debug
  13763. registers, and only update the inferior on success.
  13764. (i386_low_remove_watchpoint): Ditto.
  13765. 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
  13766. * linux-low.c (compare_ints, unique, list_threads, show_process,
  13767. linux_core_of_thread): Delete.
  13768. (linux_target_ops): Change linux_core_of_thread to
  13769. linux_common_core_of_thread.
  13770. (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
  13771. * utils.c (malloc_failure): Change type of argument.
  13772. (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
  13773. * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
  13774. common/linux-osdata.c, common/ptid.c and common/buffer.c.
  13775. (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
  13776. (IPA_OBJS): Add common-utils-ipa.o.
  13777. (ptid_h, linux_osdata_h): New macros.
  13778. (server_h): Add common/common-utils.h, common/xml-utils.h,
  13779. common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
  13780. common/ptid.h.
  13781. (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
  13782. ptid.o, buffer.o): New rules.
  13783. (linux-low.o): Add common/linux-osdata.h as a dependency.
  13784. * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
  13785. * configure.ac: Add AC_HEADER_DIRENT check.
  13786. * config.in: Regenerate.
  13787. * configure: Regenerate.
  13788. * remote-utils.c (xml_escape_text): Delete.
  13789. (buffer_grow, buffer_free, buffer_init, buffer_finish,
  13790. buffer_xml_printf): Move to common/buffer.c.
  13791. * server.c (main): Remove call to initialize_inferiors.
  13792. * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
  13793. ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
  13794. ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
  13795. internal_error, gdb_assert, gdb_assert_fail): Delete.
  13796. (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
  13797. buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
  13798. common/buffer.h.
  13799. * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
  13800. ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
  13801. initialize_inferiors): Delete.
  13802. 2011-07-20 Pedro Alves <pedro@codesourcery.com>
  13803. * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
  13804. symbol error.
  13805. 2011-05-31 Pedro Alves <pedro@codesourcery.com>
  13806. * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
  13807. assertion.
  13808. * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
  13809. 2011-05-26 Yao Qi <yao@codesourcery.com>
  13810. * Makefile.in (thread-db.o): Track dependence to
  13811. common/gdb_thread_db.h.
  13812. * thread-db.c: include gdb_thread_db.h from right place.
  13813. 2011-05-16 Adrian Cornish <gnu@bluedreamer.com>
  13814. * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
  13815. __FILE__ and __LINE__ to internal_error.
  13816. 2011-05-13 Doug Evans <dje@google.com>
  13817. * thread-db.c (try_thread_db_load_from_sdir): New function.
  13818. (try_thread_db_load_from_dir): New function.
  13819. (thread_db_load_search): Handle $sdir, ignore $pdir.
  13820. Remove trying of system directories if search of
  13821. libthread-db-search-path fails, that is now done via $sdir.
  13822. 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
  13823. * server.c (handle_query): Add EnableDisableTracepoints to the list
  13824. of supported features.
  13825. * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
  13826. tracepoints.
  13827. (cmd_qtenable_disable): New.
  13828. (cmd_qtstart): Install tracepoints even if disabled.
  13829. (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
  13830. receiving a QTEnable or QTDisable packet.
  13831. (gdb_collect): Skip data collection if fast tracepoint is disabled.
  13832. (ust_marker_to_static_tracepoint): Do not ignore disabled static
  13833. tracepoints.
  13834. (gdb_probe): Skip data collection if static tracepoint is disabled.
  13835. 2011-05-10 Doug Evans <dje@google.com>
  13836. * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
  13837. 2011-05-04 Doug Evans <dje@google.com>
  13838. * linux-low.c (linux_join): Skip process lookup.
  13839. * spu-low.c (spu_join): Ditto.
  13840. * server.c (join_inferiors_callback): Delete.
  13841. (process_serial_event): For 'D' packet (detach) call join_inferior
  13842. directly.
  13843. 2011-05-04 Joseph Myers <joseph@codesourcery.com>
  13844. * README: Don't mention xscale*-*-linux*.
  13845. * configure.srv (xscale*-*-linux*): Don't handle target.
  13846. 2011-04-27 Nathan Froyd <froydnj@codesourcery.com>
  13847. * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
  13848. casting pointers.
  13849. (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
  13850. (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
  13851. (i386_emit_void_call_2): Likewise.
  13852. 2011-04-26 Yao Qi <yao@codesourcery.com>
  13853. * linux-low.c: Move common macros to linux-ptrace.h.
  13854. Include linux-ptrace.h.
  13855. * Makefile.in (linux_ptrace_h): New.
  13856. (linux-low.o): Depends on linux-ptrace.h.
  13857. 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
  13858. * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
  13859. RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
  13860. (remote_prepare): New function with most of the TCP code from ...
  13861. (remote_open): ... here. Detect PORT here unconditionally. Move also
  13862. setting transport_is_reliable.
  13863. * server.c (run_once): New variable.
  13864. (gdbserver_usage): Document it.
  13865. (main): Set run_once for `--once'. Call remote_prepare. Exit after
  13866. the first run if RUN_ONCE.
  13867. * server.h (run_once, remote_prepare): New declarations.
  13868. 2011-04-19 Tom Tromey <tromey@redhat.com>
  13869. * win32-low.c (handle_load_dll): Remove duplicate "the".
  13870. 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
  13871. Remove support for old Cygwin 1.5 versions.
  13872. * win32-low.c (win32_create_inferior): Use new cygwin_path_list
  13873. function to avoid warning.
  13874. (win32_add_one_solib): Use cygwin_conv_path function to avoid
  13875. warning.
  13876. 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
  13877. * gdbserver/server.h (Macro _): Define it if not available.
  13878. 2011-03-14 Michael Snyder <msnyder@vmware.com>
  13879. * hostio.c (handle_close): Remove unnecessary null test.
  13880. 2011-03-10 Joel Brobecker <brobecker@adacore.com>
  13881. * Makefile.in (maintainer-clean realclean distclean): Remove
  13882. "make ... subdir_do" command.
  13883. 2011-03-10 Michael Snyder <msnyder@vmware.com>
  13884. * tracepoint.c (tracepoint_finish_step): Fix loop variable.
  13885. * server.c (handle_v_run): Free alloced buffer on early return.
  13886. 2011-03-09 Yao Qi <yao@codesourcery.com>
  13887. Revert:
  13888. 2011-03-04 Yao Qi <yao@codesourcery.com>
  13889. * Makefile.in: Remove GNU make feature --directory.
  13890. 2011-03-05 Yao Qi <yao@codesourcery.com>
  13891. * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
  13892. (subdir_do): New make target. Copied from gdb/Makefile.
  13893. (maintainer-clean, realclean, distclean, clean): Call corresponding
  13894. make targets in common/Makefile.
  13895. 2011-02-11 Yao Qi <yao@codesourcery.com>
  13896. * configure.ac: Call AC_PROG_RANLIB.
  13897. * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
  13898. * configure: Regenerate.
  13899. 2011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
  13900. * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
  13901. 2011-03-06 Yao Qi <yao@codesourcery.com>
  13902. * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
  13903. 2011-03-05 Yao Qi <yao@codesourcery.com>
  13904. * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
  13905. (subdir_do): New make target. Copied from gdb/Makefile.
  13906. (maintainer-clean, realclean, distclean, clean): Call corresponding
  13907. make targets in common/Makefile.
  13908. 2011-03-04 Yao Qi <yao@codesourcery.com>
  13909. * Makefile.in: Remove GNU make feature --directory.
  13910. 2011-03-04 Michael Snyder <msnyder@vmware.com>
  13911. * server.c (queue_stop_reply): Call xmalloc not malloc.
  13912. 2011-03-02 Michael Snyder <msnyder@vmware.com>
  13913. * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
  13914. 2011-02-28 Michael Snyder <msnyder@vmware.com>
  13915. * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
  13916. (cmd_qtframe): Ditto.
  13917. (cmd_qtbuffer): Ditto.
  13918. (cmd_bigqtbuffer): Ditto.
  13919. * utils.c (decimal2str): Initialize 'width' to nine, then
  13920. don't mess with it.
  13921. 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
  13922. * hostio.c (require_data): Free *data, not data.
  13923. 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
  13924. * hostio.c (require_data): Use free, not xfree.
  13925. 2011-02-27 Michael Snyder <msnyder@vmware.com>
  13926. * server.c (handle_query): Discard unused value.
  13927. * hostio.c (require_data): Free malloc memory before returning
  13928. error.
  13929. 2011-02-26 Michael Snyder <msnyder@vmware.com>
  13930. * linux-low.c (list_threads): Call closedir for dirent.
  13931. 2011-02-27 Michael Snyder <msnyder@vmware.com>
  13932. * i386-low.c (i386-length_and_rw_bits): Comment the fact that
  13933. a case statement falls through.
  13934. * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
  13935. * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
  13936. in comparison.
  13937. 2011-02-26 Michael Snyder <msnyder@vmware.com>
  13938. * utils.c (decimal2str): Eliminate dead code and dead param.
  13939. (pulongest): Drop dead param from call to decimal2str.
  13940. (plongest): Ditto.
  13941. 2011-02-24 Joel Brobecker <brobecker@adacore.com>
  13942. Revert the following patch (not approved yet):
  13943. 2011-02-21 Hui Zhu <teawater@gmail.com>
  13944. * tracepoint.c (tp_printf): New function.
  13945. (eval_agent_expr): Handle gdb_agent_op_printf.
  13946. 2011-02-21 Hui Zhu <teawater@gmail.com>
  13947. * tracepoint.c (tp_printf): New function.
  13948. (eval_agent_expr): Handle gdb_agent_op_printf.
  13949. 2011-02-18 Tom Tromey <tromey@redhat.com>
  13950. * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
  13951. (tracepoint.o): Likewise.
  13952. * tracepoint.c (enum gdb_agent_op): Use ax.def.
  13953. (gdb_agent_op_names): Likewise.
  13954. 2011-02-18 Tom Tromey <tromey@redhat.com>
  13955. * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
  13956. gdb_agent_op_rot>: New constants.
  13957. (gdb_agent_op_names): Add pick and roll.
  13958. (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
  13959. cases.
  13960. 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
  13961. * aclocal.m4: Regenerated with aclocal-1.11.1.
  13962. 2011-02-14 Pedro Alves <pedro@codesourcery.com>
  13963. * server.c (handle_qxfer_traceframe_info): New.
  13964. (qxfer_packets): Register "traceframe-info".
  13965. (handle_query): Report support for qXfer:traceframe-info:read+.
  13966. * tracepoint.c (match_blocktype): New.
  13967. (traceframe_find_block_type): Rename to ...
  13968. (traceframe_walk_blocks): ... this. Add callback filter argument,
  13969. and use it.
  13970. (traceframe_find_block_type): New, reimplemented on top of
  13971. traceframe_walk_blocks.
  13972. (build_traceframe_info_xml): New.
  13973. (traceframe_read_info): New.
  13974. * server.h (traceframe_read_info): Declare.
  13975. 2011-02-11 Yao Qi <yao@codesourcery.com>
  13976. * configure.ac: Call AC_PROG_RANLIB.
  13977. * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
  13978. * configure: Regenerate.
  13979. 2011-02-07 Pedro Alves <pedro@codesourcery.com>
  13980. * server.c (gdb_read_memory): Change return semantics to allow
  13981. partial transfers.
  13982. (handle_search_memory_1): Adjust.
  13983. (process_serial_event) <'m' packet>: Handle partial transfers.
  13984. * tracepoint.c (traceframe_read_mem): Handle partial transfers.
  13985. 2011-01-28 Pedro Alves <pedro@codesourcery.com>
  13986. * regcache.c (init_register_cache): Initialize
  13987. regcache->register_status.
  13988. (free_register_cache): Release regcache->register_status.
  13989. (regcache_cpy): Copy register_status.
  13990. (registers_to_string): Print 'x's for unavailable registers.
  13991. (supply_register): Mark the register's status valid or
  13992. unavailable, depending on whether a buffer was passed in or not.
  13993. (supply_register_zeroed): New.
  13994. (supply_regblock): Mark the registers' status valid or
  13995. unavailable, depending on whether a buffer was passed in or not.
  13996. * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
  13997. (struct regcache): New `register_status' field.
  13998. (supply_register_zeroed): Declare.
  13999. * i387-fp.c (i387_xsave_to_cache): Zero out registers using
  14000. supply_register_zeroed, rather than passing a NULL buffer to
  14001. supply_register.
  14002. * tracepoint.c (fetch_traceframe_registers): Update comment.
  14003. 2011-01-28 Pedro Alves <pedro@codesourcery.com>
  14004. * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
  14005. buffer explicit.
  14006. 2011-01-25 Pedro Alves <pedro@codesourcery.com>
  14007. * server.h (decode_xfer_write): Change prototype.
  14008. * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
  14009. and don't extract the annex here.
  14010. * server.c (decode_xfer_read): Remove `annex' parameter,
  14011. and don't extract the annex here.
  14012. (decode_xfer): New.
  14013. (struct qxfer): New.
  14014. (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
  14015. (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
  14016. (handle_qxfer_statictrace): New functions, abstracted out from
  14017. handle_query, and made to use the struct qxfer interface.
  14018. (handle_threads_qxfer_proper): Rename to ...
  14019. (handle_qxfer_threads_proper): ... this.
  14020. (handle_threads_qxfer): Rename to ...
  14021. (handle_qxfer_threads): ... this. Adjust.
  14022. (qxfer_packets): New array.
  14023. (handle_qxfer): New function.
  14024. (handle_query): Use handle_qxfer.
  14025. 2011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
  14026. * gdbreplay.c: Shorten lines of >= 80 columns.
  14027. * linux-low.c: Ditto.
  14028. * linux-ppc-low.c: Ditto.
  14029. * linux-s390-low.c: Ditto.
  14030. * linux-sparc-low.c: Ditto.
  14031. * linux-x86-low.c: Ditto.
  14032. * linux-xtensa-low.c: Ditto.
  14033. * mem-break.c: Ditto.
  14034. * nto-low.c: Ditto.
  14035. * regcache.h: Ditto.
  14036. * remote-utils.c: Ditto.
  14037. * server.c: Ditto.
  14038. * server.h: Ditto.
  14039. * thread-db.c: Ditto.
  14040. * tracepoint.c: Ditto.
  14041. * utils.c: Ditto.
  14042. * win32-low.h: Ditto.
  14043. 2011-01-05 Joel Brobecker <brobecker@adacore.com>
  14044. * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
  14045. update.
  14046. 2011-01-01 Joel Brobecker <brobecker@adacore.com>
  14047. * server.c (gdbserver_version): Update copyright year in version
  14048. output.
  14049. * gdbreplay.c (gdbreplay_version): Ditto.
  14050. 2010-12-29 Jie Zhang <jie.zhang@analog.com>
  14051. * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
  14052. * linux-bfin-low.c: New file.
  14053. * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
  14054. PT_DATA_ADDR for BFIN targets.
  14055. * Makefile.in (SFILES): Add linux-bfin-low.c.
  14056. (clean): Remove reg-bfin.c.
  14057. (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
  14058. * README: Mention supported Blackfin targets.
  14059. 2010-12-23 Mike Frysinger <vapier@gentoo.org>
  14060. * .gitignore: New file.
  14061. 2010-11-16 Mike Frysinger <vapier@gentoo.org>
  14062. * linux-low.c (linux_tracefork_child): Add char* cast to arg.
  14063. 2010-10-22 Jie Zhang <jie@codesourcery.com>
  14064. * Makefile.in: Add FLAGS_TO_PASS variable.
  14065. (install): Remove dependency of install-only and recursively
  14066. invoke make for install-only.
  14067. 2010-10-04 Doug Evans <dje@google.com>
  14068. * Makefile.in (uninstall): Use $(DESTDIR).
  14069. 2010-09-24 Pedro Alves <pedro@codesourcery.com>
  14070. PR gdb/11842
  14071. * linux-x86-low.c (compat_siginfo_from_siginfo)
  14072. (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
  14073. si_code is < 0. Check for si_code == SI_TIMER before checking for
  14074. si_code < 0.
  14075. 2010-09-13 Joel Brobecker <brobecker@adacore.com>
  14076. * lynx-i386-low.c: New file.
  14077. * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
  14078. 2010-09-13 Joel Brobecker <brobecker@adacore.com>
  14079. * lynx-low.c (ptrace_request_to_str): Remove handling for
  14080. request values that have been removed in LynxOS 5.x.
  14081. 2010-09-13 Joel Brobecker <brobecker@adacore.com>
  14082. * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
  14083. <ptrace.h>
  14084. 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
  14085. * configure.ac: Add --enable-inprocess-agent option.
  14086. * configure: Rebuilt.
  14087. 2010-09-06 Yao Qi <yao@codesourcery.com>
  14088. * linux-low.c (linux_kill): Remove unused variable.
  14089. (linux_stabilize_threads): Likewise.
  14090. * server.c (start_inferior): Likewise.
  14091. (queue_stop_reply_callback): Likewise.
  14092. * tracepoint.c (do_action_at_tracepoint): Likewise.
  14093. 2010-09-06 Yao Qi <yao@codesourcery.com>
  14094. * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
  14095. on return.
  14096. 2010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
  14097. * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
  14098. 2010-09-06 Pedro Alves <pedro@codesourcery.com>
  14099. * Makefile.in (install-only): Replace $IPA_DEPFILES with
  14100. "$(IPA_DEPFILES)".
  14101. 2010-09-01 Joel Brobecker <brobecker@adacore.com>
  14102. * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
  14103. gdbserver/lynx-ppc-low.c: New files.
  14104. * Makefile.in (lynx_low_h): New variable.
  14105. (lynx-low.o, lynx-ppc-low.o): New rules.
  14106. * configure.ac: On LynxOS, link with -lnetinet.
  14107. * configure.srv: Add handling of powerpc-*-lynxos* targets.
  14108. * configure: regenerate.
  14109. 2010-09-01 Joel Brobecker <brobecker@adacore.com>
  14110. * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
  14111. * configure.ac: Add check for vasprintf and vsnprintf.
  14112. * configure, config.in: Regenerate.
  14113. * server.h (vasprintf, vsnprintf): Add conditional declarations.
  14114. 2010-09-01 Joel Brobecker <brobecker@adacore.com>
  14115. * gdbreplay.c: Move include of alloca.h up, next to include of
  14116. malloc.h.
  14117. * server.h: Add include of malloc.h.
  14118. * mem-break.c: Remove include of malloc.h.
  14119. * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
  14120. 2010-09-01 Joel Brobecker <brobecker@adacore.com>
  14121. * Makefile.in (memmem.o): Build with -Wno-error.
  14122. 2010-09-01 Joel Brobecker <brobecker@adacore.com>
  14123. * utils.c (xsnprintf): Make non-static.
  14124. * server.h: Add xsnprintf declaration.
  14125. * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
  14126. replace calls to snprintf by calls to xsnprintf throughout.
  14127. 2010-09-01 Joel Brobecker <brobecker@adacore.com>
  14128. * configure.ac: Add configure check for alloca.
  14129. * configure, config.in: Regenerate.
  14130. * server.h: Include alloca.h if it exists.
  14131. * gdbreplay.c: Include alloca.h if it exists.
  14132. 2010-08-28 Pedro Alves <pedro@codesourcery.com>
  14133. * linux-low.c (__SIGRTMIN): Define if not already defined.
  14134. (linux_create_inferior): Check for __ANDROID__ rather than
  14135. __SIGRTMIN.
  14136. (enqueue_one_deferred_signal): Don't requeue non-RT signals that
  14137. are already deferred.
  14138. (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
  14139. (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
  14140. stopped and already has a pending signal to report.
  14141. (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
  14142. a pending signal to report or is moving out of a jump pad.
  14143. (linux_init_signals): Check for __ANDROID__ rather than
  14144. __SIGRTMIN.
  14145. 2010-08-28 Pedro Alves <pedro@codesourcery.com>
  14146. * linux-low.c (linux_stabilize_threads): Wrap debug output in a
  14147. debug_threads check. Avoid a linear search when not doing debug
  14148. output.
  14149. 2010-08-27 Pedro Alves <pedro@codesourcery.com>
  14150. * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
  14151. (struct gdb_event) <fd>: Change type to gdb_fildes_t.
  14152. (struct file_handler) <fd>: Change type to gdb_fildes_t.
  14153. (process_event): Change local fd's type to gdb_fildes_t.
  14154. (create_file_handler): Adjust prototype.
  14155. (delete_file_handler): Adjust prototype.
  14156. (handle_file_event): Adjust prototype. Use pfildes.
  14157. (create_file_event): Adjsut prototype.
  14158. * remote-utils.c (remote_desc, listen_desc): Change type to
  14159. gdb_fildes_t.
  14160. * server.h: New gdb_fildes_t typedef.
  14161. [USE_WIN32API]: Include winsock2.h.
  14162. (delete_file_handler, add_file_handler): Adjust prototypes.
  14163. (pfildes): Declare.
  14164. * utils.c (pfildes): New.
  14165. 2010-08-27 Pedro Alves <pedro@codesourcery.com>
  14166. * configure.ac (build_warnings): Add -Wno-char-subscripts.
  14167. * configure: Regenerate.
  14168. 2010-08-27 Pedro Alves <pedro@codesourcery.com>
  14169. * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
  14170. (linux_done_accessing_memory): ... this.
  14171. (linux_target_ops): Adjust.
  14172. * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
  14173. * nto-low.c (nto_target_ops): Adjust comment.
  14174. * server.c (gdb_read_memory, gdb_write_memory): Adjust.
  14175. * spu-low.c (spu_target_ops): Adjust comment.
  14176. * target.h (target_ops): Rename unprepare_to_access_memory field
  14177. to done_accessing_memory.
  14178. (unprepare_to_access_memory): Rename to ...
  14179. (done_accessing_memory): ... this.
  14180. 2010-08-26 Pedro Alves <pedro@codesourcery.com>
  14181. * linux-low.c (linux_prepare_to_access_memory): New.
  14182. (linux_unprepare_to_access_memory): New.
  14183. (linux_target_ops): Install them.
  14184. * server.c (read_memory): Rename to ...
  14185. (gdb_read_memory): ... this. Use
  14186. prepare_to_access_memory/prepare_to_access_memory.
  14187. (write_memory): Rename to ...
  14188. (gdb_write_memory): ... this. Use
  14189. prepare_to_access_memory/prepare_to_access_memory.
  14190. (handle_search_memory_1): Adjust.
  14191. (process_serial_event): Adjust.
  14192. * target.h (struct target_ops): New fields
  14193. prepare_to_access_memory and unprepare_to_access_memory.
  14194. (prepare_to_access_memory, unprepare_to_access_memory): New.
  14195. * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
  14196. prepare_to_access_memory/prepare_to_access_memory.
  14197. * nto-low.c (nto_target_ops): Adjust.
  14198. * spu-low.c (spu_target_ops): Adjust.
  14199. * win32-low.c (win32_target_ops): Adjust.
  14200. 2010-08-26 Pedro Alves <pedro@codesourcery.com>
  14201. * Makefile.in (WARN_CFLAGS): Get it from configure.
  14202. (WERROR_CFLAGS): New.
  14203. (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
  14204. * configure.ac: Introduce --enable-werror, which adds -Werror to
  14205. the compiler command line. Enabled by default. Disable with
  14206. --disable-werror. Add -Wdeclaration-after-statement
  14207. Wpointer-arith and -Wformat-nonliteral to warning flags.
  14208. * configure: Regenerate.
  14209. 2010-08-26 Pedro Alves <pedro@codesourcery.com>
  14210. * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
  14211. 2010-08-26 Pedro Alves <pedro@codesourcery.com>
  14212. * gdbreplay.c (remote_error): New.
  14213. (gdbchar): New.
  14214. (expect): Use gdbchar. Check for error reading from GDB.
  14215. Clarify sync error output.
  14216. (play): Check for errors writing to GDB.
  14217. * linux-low.c (sigchld_handler): Really ignore `write' errors.
  14218. * remote-utils.c (getpkt): Check for errors writing to the remote
  14219. descriptor.
  14220. 2010-08-25 Pedro Alves <pedro@codesourcery.com>
  14221. * linux-low.c (linux_wait_1): Move non-debugging code out of
  14222. `debug_threads' control.
  14223. 2010-08-25 Pedro Alves <pedro@codesourcery.com>
  14224. * linux-low.c (linux_wait_1): Don't set last_status here.
  14225. * server.c (push_event, queue_stop_reply_callback): Assert we're
  14226. not pushing a TARGET_WAITKIND_IGNORE event.
  14227. (start_inferior, start_inferior, attach_inferior, handle_v_cont)
  14228. (myresume, handle_target_event): Set the thread's last_resume_kind
  14229. and last_status from the target returned status.
  14230. 2010-08-25 Pedro Alves <pedro@codesourcery.com>
  14231. PR threads/10729
  14232. * linux-x86-low.c (update_debug_registers_callback): New.
  14233. (i386_dr_low_set_addr): Use it.
  14234. (i386_dr_low_get_addr): New.
  14235. (i386_dr_low_set_control): Use update_debug_registers_callback.
  14236. (i386_dr_low_get_control): New.
  14237. (i386_dr_low_get_status): Adjust.
  14238. * linux-low.c (linux_stop_lwp): New.
  14239. * linux-low.h (linux_stop_lwp): Declare.
  14240. * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
  14241. argument instead of a i386_debug_reg_state.
  14242. (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
  14243. a i386_debug_reg_state.
  14244. (i386_insert_aligned_watchpoint): Adjust.
  14245. (i386_remove_aligned_watchpoint): Adjust.
  14246. (i386_low_stopped_data_address): Read the debug registers from the
  14247. inferior instead of from the mirrors.
  14248. * i386-low.h (struct i386_debug_reg_state): Extend comment.
  14249. (i386_dr_low_get_addr): Declare.
  14250. (i386_dr_low_get_control): Declare.
  14251. (i386_dr_low_get_status): Change prototype.
  14252. * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
  14253. (i386_dr_low_get_addr): New.
  14254. (i386_dr_low_get_control): New.
  14255. (i386_dr_low_get_status): Adjust prototype. Return
  14256. dr_status_mirror.
  14257. (i386_initial_stuff): Clear dr_status_mirror and
  14258. dr_control_mirror.
  14259. (i386_get_thread_context): Adjust.
  14260. (i386_set_thread_context): Adjust.
  14261. (i386_thread_added): Adjust.
  14262. 2010-08-24 Pedro Alves <pedro@codesourcery.com>
  14263. * linux-low.h (linux_thread_area): Delete declaration.
  14264. 2010-08-11 Thomas Schwinge <thomas@codesourcery.com>
  14265. * linux-low.c (linux_wait_1): Correctly return the ptid of the child
  14266. after its termination.
  14267. 2010-08-09 Pedro Alves <pedro@codesourcery.com>
  14268. * linux-low.c (gdb_wants_lwp_stopped): Delete.
  14269. (gdb_wants_all_stopped): Delete.
  14270. (linux_wait_1): Don't call them.
  14271. * server.c (handle_v_cont): Tag all threads as want-stopped.
  14272. (gdb_wants_thread_stopped): Fix comments. Tag the thread that
  14273. stopped as "client-wants-stopped".
  14274. 2010-07-31 Pedro Alves <pedro@codesourcery.com>
  14275. * Makefile.in (signals_h): New.
  14276. (server_h): Depend on it.
  14277. (server.o): Don't depend on $(signals_def).
  14278. (signals.o): Depend on $(signals_def).
  14279. 2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
  14280. * Makefile.in (signals_def): New.
  14281. (server_h): Append include/gdb/signals.h and signals_def.
  14282. (server.o): Append signals_def.
  14283. 2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
  14284. * server.c (handle_target_event): Use target_signal_to_host for
  14285. resume_info.sig initialization.
  14286. * target.h (struct thread_resume) <sig>: New comment.
  14287. 2010-07-20 Ozkan Sezer <sezeroz@gmail.com>
  14288. * server.c (handle_query): strcpy() the returned string from paddress()
  14289. instead of sprintf().
  14290. * utils.c (paddress): Return phex_nz().
  14291. 2010-07-07 Joel Brobecker <brobecker@adacore.com>
  14292. * server.c (handle_v_cont): Call mourn_inferior if process
  14293. just exited.
  14294. (myresume): Likewise.
  14295. 2010-07-01 Pedro Alves <pedro@codesourcery.com>
  14296. Static tracepoints, and integration with UST.
  14297. * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
  14298. * mem-break.c (uninsert_all_breakpoints)
  14299. (reinsert_all_breakpoints): New.
  14300. * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
  14301. * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
  14302. (gdb_agent_ust_loaded, helper_thread_id)
  14303. (gdb_agent_helper_thread_id): New macros.
  14304. (struct ipa_sym_addresses): Add addr_ust_loaded,
  14305. addr_helper_thread_id, addr_cmd_buf.
  14306. (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
  14307. (in_process_agent_loaded_ust): New.
  14308. (write_e_ust_not_loaded): New.
  14309. (maybe_write_ipa_ust_not_loaded): New.
  14310. (struct collect_static_trace_data_action): New.
  14311. (enum tracepoint_type) <static_tracepoint>: New.
  14312. (struct tracepoint) <handle>: Mention static tracepoints.
  14313. (struct static_tracepoint_ctx): New.
  14314. (CMD_BUF_SIZE): New.
  14315. (add_tracepoint_action): Handle static tracepoint actions.
  14316. (unprobe_marker_at): New.
  14317. (clear_installed_tracepoints): Handle static tracepoints.
  14318. (cmd_qtdp): Handle static tracepoints.
  14319. (probe_marker_at): New.
  14320. (cmd_qtstart): Handle static tracepoints.
  14321. (response_tracepoint): Handle static tracepoints.
  14322. (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
  14323. (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
  14324. (get_context_regcache): Handle static tracepoints.
  14325. (do_action_at_tracepoint): Handle static tracepoint actions.
  14326. (traceframe_find_block_type): Handle static trace data blocks.
  14327. (traceframe_read_sdata): New.
  14328. (download_tracepoints): Download static tracepoint actions.
  14329. [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
  14330. (GDB_PROBE_NAME): New.
  14331. (ust_ops): New.
  14332. (GET_UST_SYM): New.
  14333. (USTF): New.
  14334. (dlsym_ust): New.
  14335. (ust_marker_to_static_tracepoint): New.
  14336. (gdb_probe): New.
  14337. (collect_ust_data_at_tracepoint): New.
  14338. (gdb_ust_probe): New.
  14339. (UNIX_PATH_MAX, SOCK_DIR): New.
  14340. (gdb_ust_connect_sync_socket): New.
  14341. (resume_thread, stop_thread): New.
  14342. (run_inferior_command): New.
  14343. (init_named_socket): New.
  14344. (gdb_ust_socket_init): New.
  14345. (cstr_to_hexstr): New.
  14346. (next_st): New.
  14347. (first_marker, next_marker): New.
  14348. (response_ust_marker): New.
  14349. (cmd_qtfstm, cmd_qtsstm): New.
  14350. (unprobe_marker_at, probe_marker_at): New.
  14351. (cmd_qtstmat, gdb_ust_thread): New.
  14352. (gdb_ust_init): New.
  14353. (initialize_tracepoint_ftlib): Call gdb_ust_init.
  14354. * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
  14355. (ST_REGENTRY): New.
  14356. (x86_64_st_collect_regmap): New.
  14357. (X86_64_NUM_ST_COLLECT_GREGS): New.
  14358. (AMD64_RIP_REGNUM): New.
  14359. (supply_static_tracepoint_registers): New.
  14360. * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
  14361. (ST_REGENTRY): New.
  14362. (i386_st_collect_regmap): New.
  14363. (i386_NUM_ST_COLLECT_GREGS): New.
  14364. (supply_static_tracepoint_registers): New.
  14365. * server.c (handle_query): Handle qXfer:statictrace:read.
  14366. <qSupported>: Report support for StaticTracepoints, and
  14367. qXfer:statictrace:read features.
  14368. * server.h (traceframe_read_sdata)
  14369. (supply_static_tracepoint_registers): Declare.
  14370. * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
  14371. (unpack_varlen_hex): Include in IPA build.
  14372. * Makefile.in (ustlibs, ustinc): New.
  14373. (IPA_OBJS): Add remote-utils-ipa.o.
  14374. ($(IPA_LIB)): Link -ldl and -lpthread.
  14375. (UST_CFLAGS): New.
  14376. (IPAGENT_CFLAGS): Add UST_CFLAGS.
  14377. * config.in, configure: Regenerate.
  14378. 2010-06-20 Ian Lance Taylor <iant@google.com>
  14379. Pedro Alves <pedro@codesourcery.com>
  14380. * linux-x86-low.c (always_true): Delete.
  14381. (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
  14382. trying to fool the compiler with always_true.
  14383. 2010-06-20 Pedro Alves <pedro@codesourcery.com>
  14384. * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
  14385. conditions in gdbserver.
  14386. 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
  14387. * spu-low.c (spu_read_memory): Wrap around local store limit.
  14388. (spu_write_memory): Likewise.
  14389. 2010-06-15 Pedro Alves <pedro@codesourcery.com>
  14390. * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
  14391. (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
  14392. LONGEST uses.
  14393. * server.h (struct emit_ops): Replace int64_t uses with LONGEST
  14394. uses.
  14395. * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
  14396. uses with LONGEST uses.
  14397. 2010-06-14 Stan Shebs <stan@codesourcery.com>
  14398. Pedro Alves <pedro@codesourcery.com>
  14399. Bytecode compiler.
  14400. * linux-x86-low.c: Include limits.h.
  14401. (add_insns): New.
  14402. (always_true): New.
  14403. (EMIT_ASM): New.
  14404. (EMIT_ASM32): New.
  14405. (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
  14406. (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
  14407. (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
  14408. (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
  14409. (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
  14410. (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
  14411. (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
  14412. (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
  14413. (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
  14414. (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
  14415. (amd64_emit_void_call_2): New.
  14416. (amd64_emit_ops): New.
  14417. (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
  14418. (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
  14419. (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
  14420. (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
  14421. (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
  14422. (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
  14423. (i386_emit_goto, i386_write_goto_address, i386_emit_const)
  14424. (i386_emit_call, i386_emit_reg, i386_emit_pop)
  14425. (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
  14426. (i386_emit_stack_adjust, i386_emit_int_call_1)
  14427. (i386_emit_void_call_2): New.
  14428. (i386_emit_ops): New.
  14429. (x86_emit_ops): New.
  14430. (the_low_target): Install x86_emit_ops.
  14431. * server.h (struct emit_ops): New.
  14432. (get_raw_reg_func_addr): Declare.
  14433. (current_insn_ptr, emit_error): Declare.
  14434. * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
  14435. (set_trace_state_variable_value): New defines.
  14436. (struct ipa_sym_addresses): New fields addr_get_raw_reg,
  14437. addr_get_trace_state_variable_value and
  14438. addr_set_trace_state_variable_value.
  14439. (symbol_list): New fields for get_raw_reg,
  14440. get_trace_state_variable_value and set_trace_state_variable_value.
  14441. (condfn): New typedef.
  14442. (struct tracepoint): New field `compiled_cond'.
  14443. (do_action_at_tracepoint): Clear compiled_cond.
  14444. (get_trace_state_variable_value, set_trace_state_variable_value):
  14445. Export in the IPA.
  14446. (condition_true_at_tracepoint): If there's a compiled condition,
  14447. run that.
  14448. (current_insn_ptr, emit_error): New globals.
  14449. (struct bytecode_address): New.
  14450. (get_raw_reg_func_addr): New.
  14451. (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
  14452. (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
  14453. (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
  14454. (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
  14455. (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
  14456. (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
  14457. (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
  14458. (compile_tracepoint_condition, compile_bytecodes): New.
  14459. * target.h (emit_ops): Forward declare.
  14460. (struct target_ops): New field emit_ops.
  14461. (target_emit_ops): New.
  14462. * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
  14463. * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
  14464. * linux-low.c (linux_emit_ops): New.
  14465. (linux_target_ops): Install it.
  14466. * linux-low.h (struct linux_target_ops): New field emit_ops.
  14467. 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
  14468. * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
  14469. * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
  14470. 2010-06-01 Pedro Alves <pedro@codesourcery.com>
  14471. Stan Shebs <stan@codesourcery.com>
  14472. * Makefile.in (IPA_DEPFILES, extra_libraries): New.
  14473. (all): Depend on $(extra_libraries).
  14474. (install-only): Install the IPA.
  14475. (IPA_OBJS, IPA_LIB): New.
  14476. (clean): Remove the IPA lib.
  14477. (IPAGENT_CFLAGS): New.
  14478. (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
  14479. (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
  14480. (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
  14481. * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
  14482. * configure.ac: Check for atomic builtins support in the compiler.
  14483. (IPA_DEPFILES, extra_libraries): Define.
  14484. * configure.srv (ipa_obj): Add description.
  14485. (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
  14486. (i[34567]86-*-linux*): Set ipa_obj.
  14487. (x86_64-*-linux*): Set ipa_obj.
  14488. * linux-low.c (stabilizing_threads): New.
  14489. (supports_fast_tracepoints): New.
  14490. (linux_detach): Stabilize threads before detaching.
  14491. (handle_tracepoints): Handle internal tracing breakpoints. Assert
  14492. the lwp is either not stabilizing, or is moving out of a jump pad.
  14493. (linux_fast_tracepoint_collecting): New.
  14494. (maybe_move_out_of_jump_pad): New.
  14495. (enqueue_one_deferred_signal): New.
  14496. (dequeue_one_deferred_signal): New.
  14497. (linux_wait_for_event_1): If moving out of a jump pad, defer
  14498. pending signals to later.
  14499. (linux_stabilize_threads): New.
  14500. (linux_wait_1): Check if threads need moving out of jump pads, and
  14501. do it if so.
  14502. (stuck_in_jump_pad_callback): New.
  14503. (move_out_of_jump_pad_callback): New.
  14504. (lwp_running): New.
  14505. (linux_resume_one_lwp): Handle moving out of jump pads.
  14506. (linux_set_resume_request): Dequeue deferred signals.
  14507. (need_step_over_p): Also step over fast tracepoint jumps.
  14508. (start_step_over): Also uninsert fast tracepoint jumps.
  14509. (finish_step_over): Also reinsert fast tracepoint jumps.
  14510. (linux_install_fast_tracepoint_jump): New.
  14511. (linux_target_ops): Install linux_stabilize_threads and
  14512. linux_install_fast_tracepoint_jump_pad.
  14513. * linux-low.h (linux_target_ops) <get_thread_area,
  14514. install_fast_tracepoint_jump_pad>: New fields.
  14515. (struct lwp_info) <collecting_fast_tracepoint,
  14516. pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
  14517. (linux_get_thread_area): Declare.
  14518. * linux-x86-low.c (jump_insn): New.
  14519. (x86_get_thread_area): New.
  14520. (append_insns): New.
  14521. (push_opcode): New.
  14522. (amd64_install_fast_tracepoint_jump_pad): New.
  14523. (i386_install_fast_tracepoint_jump_pad): New.
  14524. (x86_install_fast_tracepoint_jump_pad): New.
  14525. (the_low_target): Install x86_get_thread_area and
  14526. x86_install_fast_tracepoint_jump_pad.
  14527. * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
  14528. (struct fast_tracepoint_jump): New.
  14529. (fast_tracepoint_jump_insn): New.
  14530. (fast_tracepoint_jump_shadow): New.
  14531. (find_fast_tracepoint_jump_at): New.
  14532. (fast_tracepoint_jump_here): New.
  14533. (delete_fast_tracepoint_jump): New.
  14534. (set_fast_tracepoint_jump): New.
  14535. (uninsert_fast_tracepoint_jumps_at): New.
  14536. (reinsert_fast_tracepoint_jumps_at): New.
  14537. (set_breakpoint_at): Use write_inferior_memory.
  14538. (uninsert_raw_breakpoint): Use write_inferior_memory.
  14539. (check_mem_read): Mask out fast tracepoint jumps.
  14540. (check_mem_write): Mask out fast tracepoint jumps.
  14541. * mem-break.h (struct fast_tracepoint_jump): Forward declare.
  14542. (set_fast_tracepoint_jump): Declare.
  14543. (delete_fast_tracepoint_jump)
  14544. (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
  14545. (reinsert_fast_tracepoint_jumps_at): Declare.
  14546. * regcache.c: Don't compile many functions when building the
  14547. in-process agent library.
  14548. (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
  14549. the register buffer in the heap.
  14550. (free_register_cache): If the register buffer isn't owned by the
  14551. regcache, don't free it.
  14552. (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
  14553. pre-existing register caches.
  14554. * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
  14555. type.
  14556. (convert_ascii_to_int): : Constify `from' parameter type.
  14557. (decode_M_packet, decode_X_packet): Replace the `to' parameter by
  14558. a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
  14559. the needed buffer in-place.
  14560. (relocate_instruction): New.
  14561. * server.c (handle_query) <qSymbols>: If the target supports
  14562. tracepoints, give it a chance of looking up symbols. Report
  14563. support for fast tracepoints.
  14564. (handle_status): Stabilize threads.
  14565. (process_serial_event): Adjust.
  14566. * server.h (struct fast_tracepoint_jump): Forward declare.
  14567. (struct process_info) <fast_tracepoint_jumps>: New field.
  14568. (convert_ascii_to_int, convert_int_to_ascii): Adjust.
  14569. (decode_X_packet, decode_M_packet): Adjust.
  14570. (relocate_instruction): Declare.
  14571. (in_process_agent_loaded): Declare.
  14572. (tracepoint_look_up_symbols): Declare.
  14573. (struct fast_tpoint_collect_status): Declare.
  14574. (fast_tracepoint_collecting): Declare.
  14575. (force_unlock_trace_buffer): Declare.
  14576. (handle_tracepoint_bkpts): Declare.
  14577. (initialize_low_tracepoint)
  14578. (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
  14579. * target.h (struct target_ops) <stabilize_threads,
  14580. install_fast_tracepoint_jump_pad>: New fields.
  14581. (stabilize_threads, install_fast_tracepoint_jump_pad): New.
  14582. * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
  14583. [HAVE_STDINT_H]: Include stdint.h.
  14584. (trace_debug_1): Rename to ...
  14585. (trace_vdebug): ... this.
  14586. (trace_debug): Rename to ...
  14587. (trace_debug_1): ... this. Add `level' parameter.
  14588. (trace_debug): New.
  14589. (ATTR_USED, ATTR_NOINLINE): New.
  14590. (IP_AGENT_EXPORT): New.
  14591. (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
  14592. (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
  14593. (about_to_request_buffer_space, trace_buffer_is_full)
  14594. (stopping_tracepoint, expr_eval_result, error_tracepoint)
  14595. (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
  14596. (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
  14597. (traceframe_write_count, traceframes_created)
  14598. (trace_state_variables)
  14599. New renaming defines.
  14600. (struct ipa_sym_addresses): New.
  14601. (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
  14602. (symbol_list): New.
  14603. (ipa_sym_addrs): New.
  14604. (all_tracepoint_symbols_looked_up): New.
  14605. (in_process_agent_loaded): New.
  14606. (write_e_ipa_not_loaded): New.
  14607. (maybe_write_ipa_not_loaded): New.
  14608. (tracepoint_look_up_symbols): New.
  14609. (debug_threads) [IN_PROCESS_AGENT]: New.
  14610. (read_inferior_memory) [IN_PROCESS_AGENT]: New.
  14611. (UNKNOWN_SIDE_EFFECTS): New.
  14612. (stop_tracing): New.
  14613. (flush_trace_buffer): New.
  14614. (stop_tracing_bkpt): New.
  14615. (flush_trace_buffer_bkpt): New.
  14616. (read_inferior_integer): New.
  14617. (read_inferior_uinteger): New.
  14618. (read_inferior_data_pointer): New.
  14619. (write_inferior_data_pointer): New.
  14620. (write_inferior_integer): New.
  14621. (write_inferior_uinteger): New.
  14622. (struct collect_static_trace_data_action): Delete.
  14623. (enum tracepoint_type): New.
  14624. (struct tracepoint) <type>: New field `type'.
  14625. <actions_str, step_actions, step_actions_str>: Only include in
  14626. GDBserver.
  14627. <orig_size, obj_addr_on_target, adjusted_insn_addr>
  14628. <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
  14629. (tracepoints): Use IP_AGENT_EXPORT.
  14630. (last_tracepoint): Don't include in the IPA.
  14631. (stopping_tracepoint): Use IP_AGENT_EXPORT.
  14632. (trace_buffer_is_full): Use IP_AGENT_EXPORT.
  14633. (alloced_trace_state_variables): New.
  14634. (trace_state_variables): Use IP_AGENT_EXPORT.
  14635. (traceframe_t): Delete unused variable.
  14636. (circular_trace_buffer): Don't include in the IPA.
  14637. (trace_buffer_start): Delete.
  14638. (struct trace_buffer_control): New.
  14639. (trace_buffer_free): Delete.
  14640. (struct ipa_trace_buffer_control): New.
  14641. (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
  14642. (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
  14643. New.
  14644. (trace_buffer_ctrl): New.
  14645. (TRACE_BUFFER_CTRL_CURR): New.
  14646. (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
  14647. Reimplement as macros.
  14648. (trace_buffer_wrap): Delete.
  14649. (traceframe_write_count, traceframe_read_count)
  14650. (traceframes_created, tracing): Use IP_AGENT_EXPORT.
  14651. (struct tracepoint_hit_ctx) <type>: New field.
  14652. (struct fast_tracepoint_ctx): New.
  14653. (memory_barrier): New.
  14654. (cmpxchg): New.
  14655. (record_tracepoint_error): Update atomically in the IPA.
  14656. (clear_inferior_trace_buffer): New.
  14657. (about_to_request_buffer_space): New.
  14658. (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
  14659. updating the same buffer.
  14660. (add_tracepoint): Default the tracepoint's type to trap
  14661. tracepoint, and orig_size to -1.
  14662. (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
  14663. internal variables.
  14664. (create_trace_state_variable): New parameter `gdb'. Handle it.
  14665. (clear_installed_tracepoints): Clear fast tracepoint jumps.
  14666. (cmd_qtdp): Handle fast tracepoints.
  14667. (cmd_qtdv): Adjust.
  14668. (max_jump_pad_size): New.
  14669. (gdb_jump_pad_head): New.
  14670. (get_jump_space_head): New.
  14671. (claim_jump_space): New.
  14672. (sort_tracepoints): New.
  14673. (MAX_JUMP_SIZE): New.
  14674. (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
  14675. IPA.
  14676. (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
  14677. support. Upload fast traceframes, and delete internal IPA
  14678. breakpoints.
  14679. (stop_tracing_handler): New.
  14680. (flush_trace_buffer_handler): New.
  14681. (cmd_qtstop): Upload fast tracepoints.
  14682. (response_tracepoint): Handle fast tracepoints.
  14683. (tracepoint_finished_step): Upload fast traceframes. Set the
  14684. tracepoint hit context's tracepoint type.
  14685. (handle_tracepoint_bkpts): New.
  14686. (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
  14687. type. Add comment about fast tracepoints.
  14688. (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
  14689. non-existing action_str field.
  14690. (get_context_regcache): Handle fast tracepoints.
  14691. (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
  14692. to the regcache.
  14693. (fast_tracepoint_from_jump_pad_address): New.
  14694. (fast_tracepoint_from_ipa_tpoint_address): New.
  14695. (collecting_t): New.
  14696. (force_unlock_trace_buffer): New.
  14697. (fast_tracepoint_collecting): New.
  14698. (collecting): New.
  14699. (gdb_collect): New.
  14700. (write_inferior_data_ptr): New.
  14701. (target_tp_heap): New.
  14702. (target_malloc): New.
  14703. (download_agent_expr): New.
  14704. (UALIGN): New.
  14705. (download_tracepoints): New.
  14706. (download_trace_state_variables): New.
  14707. (upload_fast_traceframes): New.
  14708. (IPA_FIRST_TRACEFRAME): New.
  14709. (IPA_NEXT_TRACEFRAME_1): New.
  14710. (IPA_NEXT_TRACEFRAME): New.
  14711. [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
  14712. [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
  14713. (gdb_jump_pad_buffer_end): New.
  14714. [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
  14715. (initialize_tracepoint): Adjust.
  14716. [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
  14717. buffer. Initialize the low module.
  14718. * utils.c (PREFIX, TOOLNAME): New.
  14719. (malloc_failure): Use PREFIX.
  14720. (error): In the IPA, an error causes an exit.
  14721. (fatal, warning): Use PREFIX.
  14722. (internal_error): Use TOOLNAME.
  14723. (NUMCELLS): Increase to 10.
  14724. * configure, config.in: Regenerate.
  14725. 2010-06-01 Pedro Alves <pedro@codesourcery.com>
  14726. * server.c (handle_query) <qSupported>: Do two passes over the
  14727. qSupported string to avoid nesting strtok.
  14728. 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
  14729. * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
  14730. (CDEPS): New.
  14731. * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
  14732. -Wl,--dynamic-list.
  14733. * configure: Regenerate.
  14734. * proc-service.list: New.
  14735. 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
  14736. * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
  14737. New comment.
  14738. 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
  14739. * gdbreplay.c (remote_open): Check error return from socket() call by
  14740. its equality to -1 not by it being negative.
  14741. * remote-utils.c (remote_open): Likewise.
  14742. 2010-05-23 Pedro Alves <pedro@codesourcery.com>
  14743. * config.h: Regenerate.
  14744. 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
  14745. * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
  14746. doesn't provide PTRACE_GET_THREAD_AREA.
  14747. 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
  14748. * linux-m68k-low.c: Include <asm/ptrace.h>
  14749. (ps_get_thread_area): Implement.
  14750. 2010-05-03 Doug Evans <dje@google.com>
  14751. * event-loop.c (struct callback_event): New struct.
  14752. (callback_list): New global.
  14753. (append_callback_event, delete_callback_event): New functions.
  14754. (process_callback): New function.
  14755. (start_event_loop): Call it.
  14756. * remote-utils.c (NOT_SCHEDULED): Define.
  14757. (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
  14758. moved out of readchar.
  14759. (readchar): Rewrite. Call reschedule before returning.
  14760. (reset_readchar): New function.
  14761. (remote_close): Call it.
  14762. (process_remaining, reschedule): New functions.
  14763. * server.h (callback_handler_func): New typedef.
  14764. (append_callback_event, delete_callback_event): Declare.
  14765. 2010-05-03 Pedro Alves <pedro@codesourcery.com>
  14766. * proc-service.c (ps_pglobal_lookup): Use
  14767. thread_db_look_up_one_symbol.
  14768. * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
  14769. parameter. Use it instead of all_symbols_looked_up.
  14770. * server.h (struct process_info) <all_symbols_looked_up>: Delete
  14771. field.
  14772. (all_symbols_looked_up): Don't declare.
  14773. (look_up_one_symbol): Add new `may_ask_gdb' parameter.
  14774. * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
  14775. field.
  14776. (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
  14777. Set all_symbols_looked_up here.
  14778. (thread_db_look_up_one_symbol): New.
  14779. (thread_db_get_tls_address): Adjust.
  14780. (thread_db_load_search, try_thread_db_load_1): Always allocate the
  14781. thread_db object on the heap, and tentatively set it in the
  14782. process structure.
  14783. (thread_db_init): Don't set all_symbols_looked_up here.
  14784. * linux-low.h (thread_db_look_up_one_symbol): Declare.
  14785. 2010-05-03 Pedro Alves <pedro@codesourcery.com>
  14786. * linux-low.c (linux_kill, linux_detach): Adjust.
  14787. (status_pending_p_callback): Remove redundant statement. Check
  14788. for !TARGET_WAITIKIND_IGNORE, instead of
  14789. TARGET_WAITKIND_STOPPED.
  14790. (handle_tracepoints): Make sure LWP is locked. Adjust.
  14791. (linux_wait_for_event_1): Adjust.
  14792. (linux_cancel_breakpoints): New.
  14793. (unsuspend_one_lwp): New.
  14794. (unsuspend_all_lwps): New.
  14795. (linux_wait_1): If finishing a step-over, unsuspend all lwps.
  14796. (send_sigstop_callback): Change return type to int, add new
  14797. `except' parameter and handle it.
  14798. (suspend_and_send_sigstop_callback): New.
  14799. (stop_all_lwps): Add new `suspend' and `expect' parameters, and
  14800. pass them down. If SUSPEND, also increment the lwp's suspend
  14801. count.
  14802. (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
  14803. (need_step_over_p): Don't consider suspended LWPs.
  14804. (start_step_over): Adjust.
  14805. (proceed_one_lwp): Change return type to int, add new `except'
  14806. parameter and handle it.
  14807. (unsuspend_and_proceed_one_lwp): New.
  14808. (proceed_all_lwps): Use find_inferior instead of
  14809. for_each_inferior.
  14810. (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
  14811. also decrement the suspend count of LWPs. Pass `except' down,
  14812. instead of hacking its suspend count.
  14813. (linux_pause_all): Add `freeze' parameter. Adjust.
  14814. (linux_unpause_all): New.
  14815. (linux_target_ops): Install linux_unpause_all.
  14816. * server.c (handle_status): Adjust.
  14817. * target.h (struct target_ops): New fields `unpause_all' and
  14818. `cancel_breakpoints'. Add new parameter to `pause_all'.
  14819. (pause_all): Add new `freeze' parameter.
  14820. (unpause_all): New.
  14821. (cancel_breakpoints): New.
  14822. * tracepoint.c (clear_installed_tracepoints): Pause threads, and
  14823. cancel breakpoints.
  14824. (cmd_qtstart): Pause threads.
  14825. (stop_tracing): Pause threads, and cancel breakpoints.
  14826. * win32-low.c (win32_target_ops): Adjust.
  14827. 2010-05-03 Pedro Alves <pedro@codesourcery.com>
  14828. * linux-low.c (linux_wait_for_event_1): Move passing the signal to
  14829. the inferior right away from here...
  14830. (linux_wait_1): ... to here, and adjust to check the thread's
  14831. last_resume_kind instead of the lwp's step or stop_expected flags.
  14832. 2010-05-02 Pedro Alves <pedro@codesourcery.com>
  14833. * README: Use consistent `GDB' and `GDBserver' spellings.
  14834. 2010-05-02 Pedro Alves <pedro@codesourcery.com>
  14835. * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
  14836. (linux_kill): Stop all lwps here. Don't delete the main lwp here.
  14837. (linux_detach_one_lwp): Assume the lwp is stopped.
  14838. (any_thread_of): Delete.
  14839. (linux_detach): Stop all lwps here. Don't blindly delete all
  14840. breakpoints.
  14841. (delete_lwp_callback): New.
  14842. (linux_mourn): Delete all lwps of the process that is gone.
  14843. (linux_wait_1): Don't delete the last lwp of the process here.
  14844. * mem-break.h (mark_breakpoints_out): Declare.
  14845. * mem-break.c (mark_breakpoints_out): New.
  14846. (free_all_breakpoints): Use it.
  14847. * server.c (handle_target_event): If the process is gone, mark
  14848. breakpoints out.
  14849. * thread-db.c (struct thread_db) <create_bp>: New field.
  14850. (thread_db_enable_reporting): Fix prototype. Store a thread event
  14851. breakpoint reference in the thread_db struct.
  14852. (thread_db_load_search): Clear the thread_db object.
  14853. (try_thread_db_load_1): Ditto.
  14854. (switch_to_process): New.
  14855. (disable_thread_event_reporting): Use it.
  14856. (remove_thread_event_breakpoints): New.
  14857. (thread_db_detach, thread_db_mourn): Use it.
  14858. 2010-05-01 Pedro Alves <pedro@codesourcery.com>
  14859. * linux-low.c (linux_enable_event_reporting): New.
  14860. (linux_wait_for_event_1, handle_extended_wait): Use it.
  14861. 2010-04-30 Pedro Alves <pedro@codesourcery.com>
  14862. * linux-low.c (linux_kill_one_lwp, linux_kill)
  14863. (linux_detach_one_lwp): Adjust to send_sigstop interface change.
  14864. (send_sigstop): Take an lwp_info as parameter instead. Queue a
  14865. SIGSTOP even if the LWP is stopped.
  14866. (send_sigstop_callback): New.
  14867. (stop_all_lwps): Use send_sigstop_callback instead.
  14868. (linux_resume_one_thread): Adjust.
  14869. (proceed_one_lwp): Still proceed an LWP that the client has
  14870. requested to stop, if we haven't reported it as stopped yet. Make
  14871. sure that LWPs the client want stopped, have a pending SIGSTOP.
  14872. 2010-04-26 Doug Evans <dje@google.com>
  14873. * server.c (handle_general_set): Make static.
  14874. * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
  14875. Print received char after testing for error/eof instead of before.
  14876. (input_interrupt): Tweak comment.
  14877. 2010-04-23 Doug Evans <dje@google.com>
  14878. * server.c (start_inferior): Print inferior argv if --debug.
  14879. 2010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
  14880. * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
  14881. * nto-x86-low.c: Include server.h
  14882. 2010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
  14883. * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
  14884. be consistent with other sources of this directory.
  14885. (init_registers_amd64): Correct name of source file of this function
  14886. in the comment.
  14887. 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
  14888. * configure.srv (x86_64-*-mingw*): New configuration for Windows
  14889. 64-bit executables.
  14890. 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
  14891. * win32-i386-low.c: Add 64-bit support.
  14892. (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
  14893. (init_registers_amd64): Declare.
  14894. (mappings): Add 64-bit version of array.
  14895. (init_windows_x86): New function.
  14896. (the_low_target): Change init_arch field to init_windows_x86.
  14897. 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
  14898. * win32-low.c: Adapt to support also 64-bit architecture.
  14899. (child_xfer_memory): Use uintptr_t type for local variable `addr'.
  14900. (get_image_name): Use SIZE_T type for local variable `done'.
  14901. (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
  14902. (toolhelp_get_dll_name): Idem.
  14903. (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
  14904. Use uintptr_t typecast to avoid warning.
  14905. (handle_unload_dll): Use uintptr_t typecast to avoid warning.
  14906. (handle_exception): Use phex_nz to avoid warning.
  14907. (win32_wait): Remove unused local variable `process'.
  14908. 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
  14909. * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
  14910. `amd64-avx.o'.
  14911. 2010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
  14912. * configure.ac: Use `ws2_32' library for srv_mingw.
  14913. * configure: Regenerate.
  14914. * gdbreplay.c: Include winsock2.h instead of winsock.h.
  14915. * remote-utils.c: Likewise.
  14916. 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
  14917. * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
  14918. if __x86_64__ is defined.
  14919. 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
  14920. * configure: Regenerate.
  14921. 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
  14922. * server.c (handle_query): Handle 'qGetTIBAddr' query.
  14923. * target.h (target_ops): New get_tib_address field.
  14924. * win32-low.h (win32_thread_info): Add thread_local_base field.
  14925. * win32-low.c (child_add_thread): Add tlb argument.
  14926. Set thread_local_base field to TLB.
  14927. (get_child_debug_event): Adapt to child_add_thread change.
  14928. (win32_get_tib_address): New function.
  14929. (win32_target_ops): Set get_tib_address field to
  14930. win32_get_tib_address.
  14931. * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
  14932. 2010-04-12 Pedro Alves <pedro@codesourcery.com>
  14933. * linux-low.c (linux_mourn): Also remove the process.
  14934. * server.c (handle_target_event): Don't remove the process here.
  14935. * nto-low.c (nto_mourn): New.
  14936. (nto_target_ops): Install it.
  14937. * spu-low.c (spu_mourn): New.
  14938. (spu_target_ops): Install it.
  14939. * win32-low.c (win32_mourn): New.
  14940. (win32_target_ops): Install it.
  14941. 2010-04-12 Pedro Alves <pedro@codesourcery.com>
  14942. * server.h (buffer_xml_printf): Remove redundant `;'.
  14943. 2010-04-12 Pedro Alves <pedro@codesourcery.com>
  14944. * regcache.c (set_register_cache): Invalidate regcaches before
  14945. changing the register cache layout.
  14946. (regcache_invalidate_one): Allow a NULL regcache.
  14947. * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
  14948. regcaches before changing the register cache layout or the target
  14949. regsets.
  14950. 2010-04-12 H.J. Lu <hongjiu.lu@intel.com>
  14951. * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
  14952. variable warning on Linux/x86-64.
  14953. 2010-04-11 Pedro Alves <pedro@codesourcery.com>
  14954. GDBserver disconnected tracing support.
  14955. * linux-low.c (linux_remove_process): Delete.
  14956. (add_lwp): Don't set last_resume_kind here.
  14957. (linux_kill): Use `mourn'.
  14958. (linux_detach): Use `thread_db_detach', and `mourn'.
  14959. (linux_mourn): New.
  14960. (linux_attach_lwp_1): Adjust comment.
  14961. (linux_attach): last_resume_kind moved the thread_info; adjust.
  14962. (status_pending_p_callback): Adjust.
  14963. (linux_wait_for_event_1): Adjust.
  14964. (count_events_callback, select_singlestep_lwp_callback)
  14965. (select_event_lwp_callback, cancel_breakpoints_callback)
  14966. (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
  14967. (proceed_one_lwp): Adjust.
  14968. (linux_async): Add debug output.
  14969. (linux_thread_stopped): New.
  14970. (linux_pause_all): New.
  14971. (linux_target_ops): Install linux_mourn, linux_thread_stopped and
  14972. linux_pause_all.
  14973. * linux-low.h (struct lwp_info): Delete last_resume_kind field.
  14974. (thread_db_free): Delete declaration.
  14975. (thread_db_detach, thread_db_mourn): Declare.
  14976. * thread-db.c (thread_db_init): Use thread_db_mourn.
  14977. (thread_db_free): Delete, split in two.
  14978. (disable_thread_event_reporting): New.
  14979. (thread_db_detach): New.
  14980. (thread_db_mourn): New.
  14981. * server.h (struct thread_info) <last_resume_kind>: New field.
  14982. <attached>: Add comment.
  14983. <gdb_detached>: New field.
  14984. (handler_func): Change return type to int.
  14985. (handle_serial_event, handle_target_event): Ditto.
  14986. (gdb_connected): Declare.
  14987. (tracing): Delete.
  14988. (disconnected_tracing): Declare.
  14989. (stop_tracing): Declare.
  14990. * server.c (handle_query) <qSupported>: Report support for
  14991. disconnected tracing.
  14992. (queue_stop_reply_callback): Account for running threads.
  14993. (gdb_wants_thread_stopped): New.
  14994. (gdb_wants_all_threads_stopped): New.
  14995. (gdb_reattached_process): New.
  14996. (handle_status): Clear the `gdb_detached' flag of all processes.
  14997. In all-stop, stop all threads.
  14998. (main): Be sure to leave tfind mode. Handle disconnected tracing.
  14999. (process_serial_event): If the remote connection breaks, or if an
  15000. exit was forced with "monitor exit", force an event loop exit.
  15001. Handle disconnected tracing on detach.
  15002. (handle_serial_event): Adjust.
  15003. (handle_target_event): If GDB isn't connected, forward events back
  15004. to the inferior, unless the last process exited, in which case,
  15005. exit gdbserver. Adjust interface.
  15006. * remote-utils.c (remote_open): Don't block in accept. Instead
  15007. register an event loop source on the listen socket file
  15008. descriptor. Refactor bits into ...
  15009. (listen_desc): ... this new global.
  15010. (gdb_connected): ... this new function.
  15011. (enable_async_notification): ... this new function.
  15012. (handle_accept_event): ... this new function.
  15013. (remote_close): Clear remote_desc.
  15014. * inferiors.c (add_thread): Set the new thread's last_resume_kind.
  15015. * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
  15016. New fields.
  15017. (mourn_inferior): Define.
  15018. (target_process_qsupported): Avoid the dangling else problem.
  15019. (thread_stopped): Define.
  15020. (pause_all): Define.
  15021. (target_waitstatus_to_string): Declare.
  15022. * target.c (target_waitstatus_to_string): New.
  15023. * tracepoint.c (tracing): Make extern.
  15024. (disconnected_tracing): New.
  15025. (stop_tracing): Make extern. Handle tracing stops due to GDB
  15026. disconnecting.
  15027. (cmd_qtdisconnected): New.
  15028. (cmd_qtstatus): Report disconnected tracing status in trace reply.
  15029. (handle_tracepoint_general_set): Handle QTDisconnected.
  15030. * event-loop.c (event_handler_func): Change return type to int.
  15031. (process_event): Bail out if the event handler wants the event
  15032. loop to stop.
  15033. (handle_file_event): Ditto.
  15034. (start_event_loop): Bail out if the event handler wants the event
  15035. loop to stop.
  15036. * nto-low.c (nto_target_ops): Adjust.
  15037. * spu-low.c (spu_wait): Don't remove the process here.
  15038. (spu_target_ops): Adjust.
  15039. * win32-low.c (win32_wait): Don't remove the process here.
  15040. (win32_target_ops): Adjust.
  15041. 2010-04-11 Pedro Alves <pedro@codesourcery.com>
  15042. * regcache.c (realloc_register_cache): Invalidate inferior's
  15043. regcache before recreating it.
  15044. 2010-04-09 Pedro Alves <pedro@codesourcery.com>
  15045. * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
  15046. 2010-04-09 Stan Shebs <stan@codesourcery.com>
  15047. Pedro Alves <pedro@codesourcery.com>
  15048. * server.h (LONGEST): New.
  15049. (struct thread_info) <while_stepping>: New field.
  15050. (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
  15051. Declare.
  15052. (initialize_tracepoint, handle_tracepoint_general_set)
  15053. (handle_tracepoint_query, tracepoint_finished_step)
  15054. (tracepoint_was_hit, release_while_stepping_state_list):
  15055. (current_traceframe): Declare.
  15056. * server.c (handle_general_set): Handle tracepoint packets.
  15057. (read_memory): New.
  15058. (write_memory): New.
  15059. (handle_search_memory_1): Use read_memory.
  15060. (handle_query): Report support for conditional tracepoints, trace
  15061. state variables, and tracepoint sources. Handle tracepoint
  15062. queries.
  15063. (main): Initialize the tracepoints module.
  15064. (process_serial_event): Handle traceframe reads/writes.
  15065. * linux-low.c (handle_tracepoints): New.
  15066. (linux_wait_1): Call it.
  15067. (linux_resume_one_lwp): Handle while-stepping.
  15068. (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
  15069. (linux_target_ops): Install them.
  15070. * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
  15071. New field.
  15072. * linux-x86-low.c (x86_supports_tracepoints): New.
  15073. (the_low_target). Install it.
  15074. * mem-break.h (delete_breakpoint): Declare.
  15075. * mem-break.c (delete_breakpoint): Make external.
  15076. * target.h (struct target_ops): Add `supports_tracepoints',
  15077. `read_pc', and `write_pc' fields.
  15078. (target_supports_tracepoints): Define.
  15079. * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
  15080. (phex_nz): New.
  15081. * regcache.h (struct regcache) <registers_owned>: New field.
  15082. (init_register_cache, regcache_cpy): Declare.
  15083. (regcache_read_pc, regcache_write_pc): Declare.
  15084. (register_cache_size): Declare.
  15085. (supply_regblock): Declare.
  15086. * regcache.c (init_register_cache): New.
  15087. (new_register_cache): Use it.
  15088. (regcache_cpy): New.
  15089. (register_cache_size): New.
  15090. (supply_regblock): New.
  15091. (regcache_read_pc, regcache_write_pc): New.
  15092. * tracepoint.c: New.
  15093. * Makefile.in (OBS): Add tracepoint.o.
  15094. (tracepoint.o): New rule.
  15095. 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
  15096. * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
  15097. (i386-mmx.o): New.
  15098. (i386-mmx.c): Likewise.
  15099. (i386-mmx-linux.o): Likewise.
  15100. (i386-mmx-linux.c): Likewise.
  15101. * configure.srv (srv_i386_regobj): Add i386-mmx.o.
  15102. (srv_i386_linux_regobj): Add i386-mmx-linux.o.
  15103. (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
  15104. (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
  15105. * linux-x86-low.c (init_registers_i386_mmx_linux): New.
  15106. (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
  15107. and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
  15108. 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
  15109. * Makefile.in (clean): Updated.
  15110. (i386-avx.o): New.
  15111. (i386-avx.c): Likewise.
  15112. (i386-avx-linux.o): Likewise.
  15113. (i386-avx-linux.c): Likewise.
  15114. (amd64-avx.o): Likewise.
  15115. (amd64-avx.c): Likewise.
  15116. (amd64-avx-linux.o): Likewise.
  15117. (amd64-avx-linux.c): Likewise.
  15118. * configure.srv (srv_i386_regobj): Add i386-avx.o.
  15119. (srv_i386_linux_regobj): Add i386-avx-linux.o.
  15120. (srv_amd64_regobj): Add amd64-avx.o.
  15121. (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
  15122. (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
  15123. (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
  15124. (srv_i386_xmlfiles): Add i386/i386-avx.xml.
  15125. (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
  15126. (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
  15127. (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
  15128. * i387-fp.c: Include "i386-xstate.h".
  15129. (i387_xsave): New.
  15130. (i387_cache_to_xsave): Likewise.
  15131. (i387_xsave_to_cache): Likewise.
  15132. (x86_xcr0): Likewise.
  15133. * i387-fp.h (i387_cache_to_xsave): Likewise.
  15134. (i387_xsave_to_cache): Likewise.
  15135. (x86_xcr0): Likewise.
  15136. * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
  15137. * linux-crisv32-low.c (target_regsets): Likewise.
  15138. * linux-m68k-low.c (target_regsets): Likewise.
  15139. * linux-mips-low.c (target_regsets): Likewise.
  15140. * linux-ppc-low.c (target_regsets): Likewise.
  15141. * linux-s390-low.c (target_regsets): Likewise.
  15142. * linux-sh-low.c (target_regsets): Likewise.
  15143. * linux-sparc-low.c (target_regsets): Likewise.
  15144. * linux-xtensa-low.c (target_regsets): Likewise.
  15145. * linux-low.c: Include <sys/uio.h>.
  15146. (regsets_fetch_inferior_registers): Support nt_type.
  15147. (regsets_store_inferior_registers): Likewise.
  15148. (linux_process_qsupported): New.
  15149. (linux_target_ops): Add linux_process_qsupported.
  15150. * linux-low.h (regset_info): Add nt_type.
  15151. (linux_target_ops): Add process_qsupported.
  15152. * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
  15153. and <sys/uio.h>.
  15154. (init_registers_i386_avx_linux): New.
  15155. (init_registers_amd64_avx_linux): Likewise.
  15156. (xmltarget_i386_linux_no_xml): Likewise.
  15157. (xmltarget_amd64_linux_no_xml): Likewise.
  15158. (PTRACE_GETREGSET): Likewise.
  15159. (PTRACE_SETREGSET): Likewise.
  15160. (x86_fill_xstateregset): Likewise.
  15161. (x86_store_xstateregset): Likewise.
  15162. (use_xml): Likewise.
  15163. (x86_linux_update_xmltarget): Likewise.
  15164. (x86_linux_process_qsupported): Likewise.
  15165. (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
  15166. (x86_arch_setup): Don't call init_registers_amd64_linux nor
  15167. init_registers_i386_linux here. Call
  15168. x86_linux_update_xmltarget.
  15169. (the_low_target): Add x86_linux_process_qsupported.
  15170. * server.c (handle_query): Call target_process_qsupported.
  15171. * target.h (target_ops): Add process_qsupported.
  15172. (target_process_qsupported): New.
  15173. 2010-04-03 Pedro Alves <pedro@codesourcery.com>
  15174. * inferiors.c (add_thread): Set last_status kind to
  15175. TARGET_WAITKIND_IGNORE.
  15176. * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
  15177. fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
  15178. (linux_wait_1): Move `thread' local definition to block that uses
  15179. it. Don't NULL initialize `event_child'.
  15180. (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
  15181. Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
  15182. * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
  15183. 2010-04-01 Pedro Alves <pedro@codesourcery.com>
  15184. * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
  15185. an extended waitstatus, or by a watchpoint.
  15186. (cancel_breakpoints_callback): Don't cancel a breakpoint if the
  15187. thread was stepping or has been stopped by a watchpoint.
  15188. 2010-04-01 Pedro Alves <pedro@codesourcery.com>
  15189. * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
  15190. (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
  15191. of another, then delete the previous, and validate all
  15192. breakpoints.
  15193. (validate_inserted_breakpoint): New.
  15194. (delete_disabled_breakpoints): New.
  15195. (validate_breakpoints): New.
  15196. (check_mem_read): Validate breakpoints before trusting their
  15197. shadow. Delete disabled breakpoints.
  15198. (check_mem_write): Validate breakpoints before trusting they
  15199. should be inserted. Delete disabled breakpoints.
  15200. * mem-break.h (validate_breakpoints):
  15201. * server.c (handle_query): Validate breakpoints when we see a
  15202. qSymbol query.
  15203. 2010-04-01 Pedro Alves <pedro@codesourcery.com>
  15204. * linux-low.c (linux_wait_1): Avoid setting need_step_over is
  15205. there's a GDB breakpoint at stop_pc. Always report a trap to GDB
  15206. if we could tell there's a GDB breakpoint at stop_pc.
  15207. (need_step_over_p): Don't do a step over if we find a GDB
  15208. breakpoint at the resume PC.
  15209. * mem-break.c (struct raw_breakpoint): New.
  15210. (enum bkpt_type): New type `gdb_breakpoint'.
  15211. (struct breakpoint): Delete the `PC', `old_data' and `inserted'
  15212. fields. New field `raw'.
  15213. (find_raw_breakpoint_at): New.
  15214. (set_raw_breakpoint_at): Handle refcounting. Create a raw
  15215. breakpoint instead.
  15216. (set_breakpoint_at): Adjust.
  15217. (delete_raw_breakpoint): New.
  15218. (release_breakpoint): New.
  15219. (delete_breakpoint): Rename to...
  15220. (delete_breakpoint_1): ... this. Add proc parameter. Use
  15221. release_breakpoint. Return ENOENT.
  15222. (delete_breakpoint): Reimplement.
  15223. (find_breakpoint_at): Delete.
  15224. (find_gdb_breakpoint_at): New.
  15225. (delete_breakpoint_at): Delete.
  15226. (set_gdb_breakpoint_at): New.
  15227. (delete_gdb_breakpoint_at): New.
  15228. (gdb_breakpoint_here): New.
  15229. (set_reinsert_breakpoint): Use release_breakpoint.
  15230. (uninsert_breakpoint): Rename to ...
  15231. (uninsert_raw_breakpoint): ... this.
  15232. (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
  15233. (reinsert_raw_breakpoint): Change parameter type to
  15234. raw_breakpoint.
  15235. (reinsert_breakpoints_at): Adjust to handle raw breakpoints
  15236. instead.
  15237. (check_breakpoints): Adjust. Use release_breakpoint.
  15238. (breakpoint_here): Rewrite using find_raw_breakpoint_at.
  15239. (breakpoint_inserted_here): Ditto.
  15240. (check_mem_read): Adjust to iterate over raw breakpoints instead.
  15241. Don't trust the breakpoint's shadow if it is not inserted.
  15242. (check_mem_write): Adjust to iterate over raw breakpoints instead.
  15243. (delete_all_breakpoints): Adjust.
  15244. (free_all_breakpoints): Mark all breakpoints as uninserted, and
  15245. use delete_breakpoint_1.
  15246. * mem-break.h (breakpoints_supported): Delete declaration.
  15247. (set_gdb_breakpoint_at): Declare.
  15248. (gdb_breakpoint_here): Declare.
  15249. (delete_breakpoint_at): Delete.
  15250. (delete_gdb_breakpoint_at): Declare.
  15251. * server.h (struct raw_breakpoint): Forward declare.
  15252. (struct process_info): New field `raw_breakpoints'.
  15253. * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
  15254. breakpoints.
  15255. 2010-03-24 Pedro Alves <pedro@codesourcery.com>
  15256. * linux-low.c (status_pending_p_callback): Fix comment.
  15257. (linux_wait_for_event_1): Move most of the internal breakpoint
  15258. handling from here...
  15259. (linux_wait_1): ... to here.
  15260. (count_events_callback): New.
  15261. (select_singlestep_lwp_callback): New.
  15262. (select_event_lwp_callback): New.
  15263. (cancel_breakpoints_callback): New.
  15264. (select_event_lwp): New.
  15265. (linux_wait_1): Simplify internal breakpoint handling. Give equal
  15266. priority to all LWPs that have had events that should be reported
  15267. to the client. Cancel breakpoints when about to reporting the
  15268. event to the client, not while stopping lwps. No longer cancel
  15269. finished single-steps here.
  15270. (cancel_finished_single_step): Delete.
  15271. (cancel_finished_single_steps): Delete.
  15272. 2010-03-24 Pedro Alves <pedro@codesourcery.com>
  15273. * mem-break.c (enum bkpt_type): New.
  15274. (struct breakpoint): New field `type'.
  15275. (set_breakpoint_at): Change return type to struct breakpoint
  15276. pointer. Set type to `other_breakpoint' by default.
  15277. (delete_breakpoint): Rewrite, supporting more than one breakpoint
  15278. in the breakpoint list.
  15279. (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
  15280. (reinsert_breakpoint): Rename to ...
  15281. (reinsert_raw_breakpoint): ... this.
  15282. (reinsert_breakpoints_at): Adjust.
  15283. * mem-break.h (struct breakpoint): Declare.
  15284. (set_breakpoint_at): Change return type to struct breakpoint
  15285. pointer.
  15286. 2010-03-24 Pedro Alves <pedro@codesourcery.com>
  15287. * server.c (handle_query): Assign, not compare.
  15288. 2010-03-24 Pedro Alves <pedro@codesourcery.com>
  15289. Teach linux gdbserver to step-over-breakpoints.
  15290. * linux-low.c (can_hardware_single_step): New.
  15291. (supports_breakpoints): New.
  15292. (handle_extended_wait): If stopping threads, read the stop pc of
  15293. the new cloned LWP.
  15294. (get_pc): New.
  15295. (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
  15296. low target doesn't support retrieving the PC.
  15297. (add_lwp): Set last_resume_kind to resume_continue.
  15298. (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
  15299. (linux_attach): Don't clear stop_expected. Set the lwp's
  15300. last_resume_kind to resume_stop.
  15301. (linux_detach_one_lwp): Don't check for removed breakpoints.
  15302. (check_removed_breakpoint): Delete.
  15303. (status_pending_p): Rename to ...
  15304. (status_pending_p_callback): ... this. Don't check for removed
  15305. breakpoints. Don't consider threads that are stopped from GDB's
  15306. perspective.
  15307. (linux_wait_for_lwp): Always read the stop_pc here.
  15308. (cancel_breakpoint): New.
  15309. (step_over_bkpt): New global.
  15310. (linux_wait_for_event_1): Implement stepping over breakpoints.
  15311. (gdb_wants_lwp_stopped): New.
  15312. (gdb_wants_all_stopped): New.
  15313. (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
  15314. single-step traps here. Store the thread's last reported target
  15315. wait status.
  15316. (send_sigstop): Don't clear stop_expected. Always set it,
  15317. instead.
  15318. (mark_lwp_dead): Remove reference to pending_is_breakpoint.
  15319. (cancel_finished_single_step): New.
  15320. (cancel_finished_single_steps): New.
  15321. (wait_for_sigstop): Don't cancel finished single-step traps here.
  15322. (linux_resume_one_lwp): Don't check for removed breakpoints.
  15323. Don't set `step' on non-hardware step archs.
  15324. (linux_set_resume_request): Ignore resume_stop requests if already
  15325. stopping or stopped. Set the lwp's last_resume_kind.
  15326. (resume_status_pending_p): Don't check for removed breakpoints.
  15327. (need_step_over_p): New.
  15328. (start_step_over): New.
  15329. (finish_step_over): New.
  15330. (linux_resume_one_thread): Always queue a sigstop for resume_stop
  15331. requests. Clear the thread's last reported target waitstatus.
  15332. Don't use the `suspended' flag. Don't consider pending breakpoints.
  15333. (linux_resume): Start a step-over if necessary.
  15334. (proceed_one_lwp): New.
  15335. (proceed_all_lwps): New.
  15336. (unstop_all_lwps): New.
  15337. * linux-low.h (struct lwp_info): Rewrite comment for the
  15338. `suspended' flag. Add the `stop_pc' field. Delete the
  15339. `pending_stop_pc' field. Tweak the `stepping' flag's comment.
  15340. Add `'last_resume_kind' and `need_step_over' fields.
  15341. * inferiors.c (struct thread_info): Delete, moved elsewhere.
  15342. * mem-break.c (struct breakpoint): Delete `reinserting' flag.
  15343. Delete `breakpoint_to_reinsert' field. New flag `inserted'.
  15344. (set_raw_breakpoint_at): New.
  15345. (set_breakpoint_at): Rewrite to use it.
  15346. (reinsert_breakpoint_handler): Delete.
  15347. (set_reinsert_breakpoint): New.
  15348. (reinsert_breakpoint_by_bp): Delete.
  15349. (delete_reinsert_breakpoints): New.
  15350. (uninsert_breakpoint): Rewrite.
  15351. (uninsert_breakpoints_at): New.
  15352. (reinsert_breakpoint): Rewrite.
  15353. (reinsert_breakpoints_at): New.
  15354. (check_breakpoints): Rewrite.
  15355. (breakpoint_here): New.
  15356. (breakpoint_inserted_here): New.
  15357. (check_mem_read): Adjust.
  15358. * mem-break.h (breakpoints_supported, breakpoint_here)
  15359. (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
  15360. (reinsert_breakpoint_by_bp): Delete declaration.
  15361. (delete_reinsert_breakpoints): Declare.
  15362. (reinsert_breakpoint): Delete declaration.
  15363. (reinsert_breakpoints_at): Declare.
  15364. (uninsert_breakpoint): Delete declaration.
  15365. (uninsert_breakpoints_at): Declare.
  15366. (check_breakpoints): Adjust prototype.
  15367. * server.h: Adjust include order.
  15368. (struct thread_info): Declare here. Add a `last_status' field.
  15369. 2010-03-23 Michael Snyder <msnyder@vmware.com>
  15370. * server.c (crc32): New function.
  15371. (handle_query): Add handling for 'qCRC:' request.
  15372. 2010-03-23 Pedro Alves <pedro@codesourcery.com>
  15373. * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
  15374. lwp had been stopped by a watchpoint.
  15375. 2010-03-16 Pedro Alves <pedro@codesourcery.com>
  15376. * server.h (internal_error): Declare.
  15377. (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
  15378. * utils.c (internal_error): New function.
  15379. 2010-03-15 Andreas Schwab <schwab@redhat.com>
  15380. * configure.srv: Fix typo setting srv_regobj.
  15381. 2010-03-15 Pedro Alves <pedro@codesourcery.com>
  15382. * linux-low.c (fetch_register): Avoid passing a non string literal
  15383. format to `error'.
  15384. (usr_store_inferior_registers): Ditto.
  15385. 2010-03-14 Pedro Alves <pedro@codesourcery.com>
  15386. * linux-low.c (linux_write_memory): Bail out early if peeking
  15387. memory failed.
  15388. 2010-03-14 Pedro Alves <pedro@codesourcery.com>
  15389. * linux-low.h (struct lwp_info): New fields
  15390. `stopped_by_watchpoint' and `stopped_data_address'.
  15391. * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
  15392. here, and cache them in the lwp object.
  15393. (wait_for_sigstop): Check stopped_by_watchpoint lwp field
  15394. directly.
  15395. (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
  15396. field.
  15397. (linux_stopped_by_watchpoint): Rewrite.
  15398. (linux_stopped_data_address): Rewrite.
  15399. 2010-03-06 Simo Melenius <simo.melenius@iki.fi>
  15400. * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
  15401. switching the current inferior, not before.
  15402. 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
  15403. * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
  15404. reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
  15405. i386-linux.c and amd64-linux.c.
  15406. (reg-i386.o): Removed.
  15407. (reg-i386.c): Likewise.
  15408. (reg-i386-linux.o): Likewise.
  15409. (reg-i386-linux.c): Likewise.
  15410. (reg-x86-64.o): Likewise.
  15411. (reg-x86-64.c): Likewise.
  15412. (reg-x86-64-linux.o): Likewise.
  15413. (reg-x86-64-linux.c): Likewise.
  15414. (i386.o): New.
  15415. (i386.c): Likewise.
  15416. (i386-linux.o): Likewise.
  15417. (i386-linux.c): Likewise.
  15418. (amd64.o): Likewise.
  15419. (amd64.c): Likewise.
  15420. (amd64-linux.o): Likewise.
  15421. (amd64-linux.c): Likewise.
  15422. * configure.srv (srv_i386_regobj): New.
  15423. (srv_i386_linux_regobj): Likewise.
  15424. (srv_amd64_regobj): Likewise.
  15425. (srv_amd64_linux_regobj): Likewise.
  15426. (srv_i386_32bit_xmlfiles): Likewise.
  15427. (srv_i386_64bit_xmlfiles): Likewise.
  15428. (srv_i386_xmlfiles): Likewise.
  15429. (srv_amd64_xmlfiles): Likewise.
  15430. (srv_i386_linux_xmlfiles): Likewise.
  15431. (srv_amd64_linux_xmlfiles): Likewise.
  15432. (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
  15433. srv_xmlfiles to $srv_i386_xmlfiles.
  15434. (i[34567]86-*-mingw32ce*): Likewise.
  15435. (i[34567]86-*-mingw*): Likewise.
  15436. (i[34567]86-*-nto*): Likewise.
  15437. (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
  15438. and $srv_amd64_linux_regobj. Set srv_xmlfiles to
  15439. $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
  15440. (x86_64-*-linux*): Likewise.
  15441. * linux-x86-low.c (init_registers_x86_64_linux): Removed.
  15442. (init_registers_amd64_linux): New.
  15443. (x86_arch_setup): Replace init_registers_x86_64_linux with
  15444. init_registers_amd64_linux.
  15445. 2010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
  15446. * configure.ac: Check for libdl. If it is not available link against
  15447. static libthread_db.
  15448. * configure: Regenerate.
  15449. 2010-02-22 Pedro Alves <pedro@codesourcery.com>
  15450. PR9605
  15451. * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
  15452. handing a read watchpoint.
  15453. (i386_low_insert_watchpoint): Read watchpoints aren't supported.
  15454. 2010-02-12 Doug Evans <dje@google.com>
  15455. * linux-low.c (linux_supports_tracefork_flag): Document.
  15456. (linux_look_up_symbols): Add comment.
  15457. 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
  15458. * regcache.c (supply_register): Clear regcache if buf is NULL.
  15459. 2010-02-02 Nicolas Roche <roche@sourceware.org>
  15460. Joel Brobecker <brobecker@adacore.com>
  15461. * inferiors.c (find_inferior): Add function documentation.
  15462. (unloaded_dll): Handle the case where the unloaded dll has not
  15463. been previously registered in the dll list.
  15464. 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
  15465. * linux-arm-low.c (thumb_breakpoint_len): Delete.
  15466. (thumb2_breakpoint): New.
  15467. (arm_breakpoint_at): Check for Thumb-2 breakpoints.
  15468. 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
  15469. * linux-low.c (get_stop_pc): Check for SIGTRAP.
  15470. (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
  15471. breakpoints.
  15472. 2010-01-21 Pedro Alves <pedro@codesourcery.com>
  15473. * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
  15474. 2010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
  15475. * linux-s390-low.c (s390_collect_ptrace_register)
  15476. (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
  15477. 2010-01-21 Doug Evans <dje@google.com>
  15478. * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
  15479. (PTRACE_ARG4_TYPE): New macro.
  15480. (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
  15481. (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
  15482. (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
  15483. (usr_store_inferior_registers): Ditto.
  15484. (linux_read_memory, linux_write_memory): Ditto.
  15485. (linux_test_for_tracefork): Ditto.
  15486. * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
  15487. Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
  15488. 2010-01-21 Pedro Alves <pedro@codesourcery.com>
  15489. * proc-service.c (ps_lgetregs): Don't refetch registers from the
  15490. target.
  15491. 2010-01-21 Pedro Alves <pedro@codesourcery.com>
  15492. * spu-low.c (spu_fetch_registers, spu_store_registers): Change
  15493. prototype to take a regcache. Adjust.
  15494. 2010-01-20 Pedro Alves <pedro@codesourcery.com>
  15495. * regcache.h (struct thread_info): Forward declare.
  15496. (struct regcache): New.
  15497. (new_register_cache): Adjust prototype.
  15498. (get_thread_regcache): Declare.
  15499. (free_register_cache): Adjust prototype.
  15500. (registers_to_string, registers_from_string): Ditto.
  15501. (supply_register, supply_register_by_name, collect_register)
  15502. (collect_register_as_string, collect_register_by_name): Ditto.
  15503. * regcache.c (struct inferior_regcache_data): Delete.
  15504. (get_regcache): Rename to ...
  15505. (get_thread_regcache): ... this. Adjust. Switch inferior before
  15506. fetching registers.
  15507. (regcache_invalidate_one): Adjust.
  15508. (regcache_invalidate): Fix prototype.
  15509. (new_register_cache): Return the new register cache.
  15510. (free_register_cache): Change prototype.
  15511. (realloc_register_cache): Adjust.
  15512. (registers_to_string): Change prototype to take a regcache. Adjust.
  15513. (registers_from_string): Ditto.
  15514. (register_data): Ditto.
  15515. (supply_register): Ditto.
  15516. (supply_register_by_name): Ditto.
  15517. (collect_register): Ditto.
  15518. (collect_register_as_string): Ditto.
  15519. (collect_register_by_name): Ditto.
  15520. * server.c (process_serial_event): Adjust.
  15521. * linux-low.h (regset_fill_func, regset_store_func): Change
  15522. prototype.
  15523. (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
  15524. Change prototype.
  15525. * linux-low.c (get_stop_pc): Adjust.
  15526. (check_removed_breakpoint): Adjust.
  15527. (linux_wait_for_event): Adjust.
  15528. (linux_resume_one_lwp): Adjust.
  15529. (fetch_register): Add regcache parameter. Adjust.
  15530. (usr_store_inferior_registers): Ditto.
  15531. (regsets_fetch_inferior_registers): Ditto.
  15532. (regsets_store_inferior_registers): Ditto.
  15533. (linux_fetch_registers, linux_store_registers): Ditto.
  15534. * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
  15535. regcache. Adjust.
  15536. (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
  15537. Ditto.
  15538. * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
  15539. prototype to take a regcache.
  15540. (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
  15541. * remote-utils.c (convert_ascii_to_int, outreg)
  15542. (prepare_resume_reply): Change prototype to take a regcache.
  15543. Adjust.
  15544. * target.h (struct target_ops) <fetch_registers, store_registers>:
  15545. Change prototype to take a regcache.
  15546. (fetch_inferior_registers, store_inferior_registers): Change
  15547. prototype to take a regcache. Adjust.
  15548. * proc-service.c (ps_lgetregs): Adjust.
  15549. * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
  15550. (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
  15551. (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
  15552. take a regcache. Adjust.
  15553. * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
  15554. (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
  15555. (arm_store_vfpregset, arm_get_pc, arm_set_pc):
  15556. (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
  15557. * linux-cris-low.c (cris_get_pc, cris_set_pc)
  15558. (cris_cannot_fetch_register):
  15559. (cris_breakpoint_at): Change prototype to take a regcache.
  15560. Adjust.
  15561. * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
  15562. cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
  15563. to take a regcache. Adjust.
  15564. (cris_breakpoint_at, cris_insert_point, cris_remove_point):
  15565. Adjust.
  15566. * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
  15567. take a regcache. Adjust.
  15568. * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
  15569. (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
  15570. (m68k_set_pc): Change prototype to take a regcache. Adjust.
  15571. * linux-mips-low.c (mips_get_pc):
  15572. (mips_set_pc): Change prototype to take a regcache. Adjust.
  15573. (mips_reinsert_addr): Adjust.
  15574. (mips_collect_register): Change prototype to take a regcache.
  15575. Adjust.
  15576. (mips_supply_register):
  15577. (mips_collect_register_32bit, mips_supply_register_32bit)
  15578. (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
  15579. (mips_store_fpregset): Ditto.
  15580. * linux-ppc-low.c (ppc_supply_ptrace_register)
  15581. (ppc_supply_ptrace_register): Ditto.
  15582. (parse_spufs_run): Adjust.
  15583. (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
  15584. (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
  15585. (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
  15586. take a regcache. Adjust.
  15587. * linux-s390-low.c (s390_collect_ptrace_register)
  15588. (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
  15589. (s390_set_pc): Change prototype to take a regcache. Adjust.
  15590. (s390_arch_setup): Adjust.
  15591. * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
  15592. (sh_fill_gregset): Change prototype to take a regcache. Adjust.
  15593. * linux-sparc-low.c (sparc_fill_gregset_to_stack)
  15594. (sparc_fill_gregset, sparc_store_gregset_from_stack)
  15595. (sparc_store_gregset, sparc_get_pc): Change prototype to take a
  15596. regcache. Adjust.
  15597. (sparc_breakpoint_at): Adjust.
  15598. * linux-xtensa-low.c (xtensa_fill_gregset):
  15599. (xtensa_store_gregset):
  15600. (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
  15601. (xtensa_set_pc): Change prototype to take a regcache. Adjust.
  15602. * nto-low.c (nto_fetch_registers, nto_store_registers): Change
  15603. prototype to take a regcache. Adjust.
  15604. * win32-arm-low.c (arm_fetch_inferior_register)
  15605. (arm_store_inferior_register): Change prototype to take a
  15606. regcache. Adjust.
  15607. * win32-i386-low.c (i386_fetch_inferior_register)
  15608. (i386_store_inferior_register): Change prototype to take a
  15609. regcache. Adjust.
  15610. * win32-low.c (child_fetch_inferior_registers)
  15611. (child_store_inferior_registers): Change prototype to take a
  15612. regcache. Adjust.
  15613. (win32_wait): Adjust.
  15614. (win32_fetch_inferior_registers): Change prototype to take a
  15615. regcache. Adjust.
  15616. (win32_store_inferior_registers): Adjust.
  15617. * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
  15618. store_inferior_register>: Change prototype to take a regcache.
  15619. 2010-01-20 Doug Evans <dje@google.com>
  15620. * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
  15621. #ifdef.
  15622. (linux_wait_for_event1, linux_init_signals): Ditto.
  15623. (W_STOPCODE): Provide definition if missing.
  15624. 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
  15625. * linux-low.c (linux_core_of_thread): New.
  15626. (compare_ints, show_process, list_threads): New.
  15627. (linux_qxfer_osdata): Report threads and cores.
  15628. (linux_target_op): Register linux_core_of_thread.
  15629. * remote-utils.c (prepare_resume_reply): Report the core.
  15630. (buffer_xml_printf): Support %d specifier.
  15631. * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
  15632. New.
  15633. (handle_query): Handle qXfer:threads. Announce availability
  15634. thereof.
  15635. * target.h (struct target_ops): New field core_of_thread.
  15636. 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
  15637. * Makefile.in (clean): Remove new generated files.
  15638. (reg-s390.o, reg-s390.c): Remove rules.
  15639. (reg-s390x.o, reg-s390x.c): Likewise.
  15640. (s390-linux32.o, s390-linux32.c): Add rules.
  15641. (s390-linux64.o, s390-linux64.c): Likewise.
  15642. (s390x-linux64.o, s390x-linux64.c): Likewise.
  15643. * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
  15644. * linux-s390-low.c: Include <elf.h>.
  15645. (HWCAP_S390_HIGH_GPRS): Define if undefined.
  15646. (init_registers_s390): Remove prototype.
  15647. (init_registers_s390x): Likewise.
  15648. (init_registers_s390_linux32): Add prototype.
  15649. (init_registers_s390_linux64): Likewise.
  15650. (init_registers_s390x_linux64): Likewise.
  15651. (s390_num_regs_3264): New define.
  15652. (s390_regmap_3264): New global variable.
  15653. (s390_cannot_fetch_register): Remove obsolete check.
  15654. (s390_cannot_store_register): Likewise.
  15655. (s390_collect_ptrace_register): Handle upper/lower register halves.
  15656. (s390_supply_ptrace_register): Likewise.
  15657. (s390_fill_gregset): Update to register number changes.
  15658. (s390_get_hwcap): New routine.
  15659. (s390_arch_setup): Detect 32-bit process running on 64-bit system.
  15660. Install appropriate regmap and register set.
  15661. 2010-01-01 Joel Brobecker <brobecker@adacore.com>
  15662. * server.c (gdbserver_version): Update copyright year to 2010.
  15663. * gdbreplay.c (gdbreplay_version): Likewise.
  15664. 2009-12-28 Doug Evans <dje@google.com>
  15665. * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
  15666. elf/external.h. Include <elf.h> instead but only if necessary.
  15667. 2009-12-28 Pedro Alves <pedro@codesourcery.com>
  15668. * linux-low.c (linux_remove_process): Remove `detaching'
  15669. parameter. Don't release/detach from thread_db here.
  15670. (linux_kill): Release/detach from thread_db here, ...
  15671. (linux_detach): ... and here, before actually detaching.
  15672. (linux_wait_1): ... and here, when a process exits.
  15673. * thread-db.c (any_thread_of): New.
  15674. (thread_db_free): Switch the current inferior to a thread of the
  15675. passed in process.
  15676. 2009-12-21 Doug Evans <dje@google.com>
  15677. * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
  15678. * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
  15679. Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
  15680. warning ifndef __NR_tkill. Move setting of errno there too.
  15681. Delete unnecessary resetting of errno after syscall.
  15682. Minor comment changes to match gdb/linux-nat.c:kill_lwp.
  15683. * configure.ac: Check for dladdr.
  15684. * config.in: Regenerate.
  15685. * configure: Regenerate.
  15686. * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
  15687. (try_thread_db_load): Update.
  15688. * linux-low.c (my_waitpid): Delete unnecessary prototype.
  15689. 2009-12-18 Doug Evans <dje@google.com>
  15690. * event-loop.c: Include unistd.h if it exists.
  15691. * linux-low.c (my_waitpid): Move definition away from being in
  15692. between linux_tracefork_child/linux_test_for_tracefork.
  15693. * gdb_proc_service.h (psaddr_t): Fix type.
  15694. * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
  15695. signature to match glibc.
  15696. 2009-12-16 Doug Evans <dje@google.com>
  15697. * linux-low.c (linux_read_memory): Fix argument to read.
  15698. 2009-11-26 Pedro Alves <pedro@codesourcery.com>
  15699. * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
  15700. events, don't leave current_inferior pointing at null.
  15701. 2009-11-26 Pedro Alves <pedro@codesourcery.com>
  15702. * win32-low.c (LOG): Delete.
  15703. (OUTMSG): Output to stderr.
  15704. (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
  15705. on compile time LOG macro.
  15706. (win32_wait): Fix debug output.
  15707. 2009-11-26 Pedro Alves <pedro@codesourcery.com>
  15708. * win32-low.c (win32_add_one_solib): If the dll name is
  15709. "ntdll.dll", prepend the system directory to the dll path.
  15710. 2009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
  15711. * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
  15712. 2009-11-17 Nathan Sidwell <nathan@codesourcery.com>
  15713. Vladimir Prus <vladimir@codesourcery.com>
  15714. * Makefile.in (reg-cf.o, reg-cf.c): New targets.
  15715. * configure.ac: Check for __mcoldfire__ and set
  15716. gdb_cv_m68k_is_coldfire.
  15717. * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
  15718. reg-cf.o and reg-m68k.o.
  15719. * configure: Regenerated.
  15720. 2009-11-16 Pedro Alves <pedro@codesourcery.com>
  15721. * linux-low.c (linux_remove_process): Add `detaching' parameter.
  15722. Pass it to thread_db_free.
  15723. (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
  15724. proper `detaching' argument to linux_remove_process.
  15725. * linux-low.h (thread_db_free): Add `detaching' parameter.
  15726. * thread-db.c (thread_db_init): Pass false as `detaching' argument
  15727. to thread_db_free.
  15728. (thread_db_free): Add `detaching' parameter. Only
  15729. call td_ta_clear_event if detaching from process.
  15730. 2009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
  15731. * thread-db.c (thread_db_free): Fix typo.
  15732. 2009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
  15733. PR gdb/10838
  15734. * thread-db.c (thread_db_free): Call td_ta_clear_event.
  15735. 2009-11-03 Nathan Sidwell <nathan@codesourcery.com>
  15736. * configure.ac (i[34567]86-*): Check if we're targetting x86-64
  15737. with an i686 compiler.
  15738. * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
  15739. needed.
  15740. * configure: Rebuilt.
  15741. 2009-10-29 Sandra Loosemore <sandra@codesourcery.com>
  15742. PR gdb/10783
  15743. * server.c (handle_search_memory_1): Correct read_addr initialization
  15744. in loop for searching subsequent chunks.
  15745. 2009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
  15746. * configure.ac: New --with-libthread-db option.
  15747. * thread-db.c: Allow direct dependence on libthread_db.
  15748. (thread_db_free): Adjust.
  15749. * config.in: Regenerate.
  15750. * configure: Likewise.
  15751. 2009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
  15752. PR gdb/10757
  15753. * thread-db.c (attach_thread): New function.
  15754. (maybe_attach_thread): Return success/failure.
  15755. (find_new_threads_callback): Adjust.
  15756. (thread_db_find_new_threads): Loop until no new threads.
  15757. 2009-10-13 Pedro Alves <pedro@codesourcery.com>
  15758. * proc-service.c (ps_lgetregs): Formatting.
  15759. 2009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
  15760. * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
  15761. * configure.ac: Adjust.
  15762. * linux-low.h (struct process_info_private): Move members to struct
  15763. thread_db.
  15764. (thread_db_free, thread_db_handle_monitor_command): New prototype.
  15765. * linux-low.c (linux_remove_process): Adjust.
  15766. (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
  15767. * server.c (handle_query): Move code ...
  15768. (handle_monitor_command): ... here. New function.
  15769. * target.h (struct target_ops): New member.
  15770. * thread-db.c (struct thread_db): New.
  15771. (libthread_db_search_path): New variable.
  15772. (thread_db_create_event, thread_db_enable_reporting)
  15773. (find_one_thread, maybe_attach_thread, find_new_threads_callback)
  15774. (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
  15775. (try_thread_db_load_1, dladdr_to_soname): New functions.
  15776. (try_thread_db_load, thread_db_load_search): New functions.
  15777. (thread_db_init): Search for libthread_db.
  15778. (thread_db_free): New function.
  15779. (thread_db_handle_monitor_command): Likewise.
  15780. * config.in: Regenerate.
  15781. * configure: Regenerate.
  15782. 2009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
  15783. * spu-low.c (spu_kill): Wait for inferior to terminate.
  15784. Call clear_inferiors.
  15785. (spu_detach): Call clear_inferiors.
  15786. 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
  15787. * aclocal.m4: Regenerate.
  15788. * config.in: Likewise.
  15789. * configure: Likewise.
  15790. 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
  15791. * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
  15792. (parse_spufs_run): New function.
  15793. (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
  15794. (ppc_breakpoint_at): Handle SPU breakpoints.
  15795. 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
  15796. * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
  15797. (SPUFS_MAGIC): Define.
  15798. (spu_enumerate_spu_ids): New function.
  15799. (linux_qxfer_spu): New function.
  15800. (linux_target_ops): Install linux_qxfer_spu.
  15801. 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
  15802. * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
  15803. and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
  15804. and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
  15805. * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
  15806. (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
  15807. (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
  15808. * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
  15809. (init_registers_powerpc_cell32l): Add prototype.
  15810. (init_registers_powerpc_cell64l): Likewise.
  15811. (ppc_arch_setup): Detect Cell/B.E. architecture.
  15812. 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
  15813. * Makefile.in (datarootdir): New variable.
  15814. 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
  15815. * linux-low.c (linux_write_memory): Update debugging output.
  15816. * Makefile.in (clean): Add new descriptions.
  15817. (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
  15818. (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
  15819. * configure.srv: Add new files for arm*-*-linux*.
  15820. * linux-arm-low.c: Add new declarations.
  15821. (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
  15822. (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
  15823. (HWCAP_VFPv3D16): New.
  15824. (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
  15825. instead of __IWMMXT__.
  15826. (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
  15827. (arm_arch_setup): New.
  15828. (target_regsets): Remove #ifdef. Add VFP regset.
  15829. (the_low_target): Use arm_arch_setup.
  15830. 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
  15831. * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
  15832. the main thread again.
  15833. 2009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
  15834. Adding Neutrino gdbserver.
  15835. * configure: Regenerated.
  15836. * configure.ac: Add case for srv_qnx and set LIBS accordingly.
  15837. * configure.srv (i[34567]86-*-nto*): New target.
  15838. * nto-low.c, nto-low.h, nto-x86-low.c: New files.
  15839. * remote-utils.c [__QNX__]: Include sys/iomgr.h
  15840. (nto_comctrl) [__QNX__]: New function.
  15841. (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
  15842. 2009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
  15843. * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
  15844. srv_tgtobj.
  15845. 2009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
  15846. Pedro Alves <pedro@codesourcery.com>
  15847. * win32-i386-low.c (i386_get_thread_context): Handle systems that
  15848. don't support CONTEXT_EXTENDED_REGISTERS.
  15849. (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
  15850. (the_low_target): Install them.
  15851. * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
  15852. failing with ERROR_PIPE_NOT_CONNECTED.
  15853. 2009-06-30 Doug Evans <dje@google.com>
  15854. Pierre Muller <muller@ics.u-strasbg.fr>
  15855. Add h/w watchpoint support to x86-linux, win32-i386.
  15856. * Makefile.in (SFILES): Add i386-low.c
  15857. (i386_low_h): Define.
  15858. (i386-low.o): Add dependencies.
  15859. (linux-x86-low.o): Add i386-low.h dependency.
  15860. (win32-i386-low.o): Ditto.
  15861. * i386-low.c: New file.
  15862. * i386-low.h: New file.
  15863. * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
  15864. (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
  15865. * linux-low.c (linux_add_process): Initialize arch_private.
  15866. (linux_remove_process): Free arch_private.
  15867. (add_lwp): Initialize arch_private.
  15868. (delete_lwp): Free arch_private.
  15869. (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
  15870. provided.
  15871. * linux-low.h (process_info_private): New member arch_private.
  15872. (lwp_info): New member arch_private.
  15873. (linux_target_ops): New members new_process, new_thread,
  15874. prepare_to_resume.
  15875. (ptid_of): New macro.
  15876. * linux-x86-low.c: Include stddef.h, i386-low.h.
  15877. (arch_process_info): New struct.
  15878. (arch_lwp_info): New struct.
  15879. (x86_linux_dr_get, x86_linux_dr_set): New functions.
  15880. (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
  15881. (i386_dr_low_get_status): New function.
  15882. (x86_insert_point, x86_remove_point): New functions.
  15883. (x86_stopped_by_watchpoint): New function.
  15884. (x86_stopped_data_address): New function.
  15885. (x86_linux_new_process, x86_linux_new_thread): New functions.
  15886. (x86_linux_prepare_to_resume): New function.
  15887. (the_low_target): Add entries for insert_point, remove_point,
  15888. stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
  15889. prepare_to_resume.
  15890. * server.c (debug_hw_points): New global.
  15891. (monitor_show_help): Document set debug-hw-points.
  15892. (handle_query): Process "set debug-hw-points".
  15893. * server.h (debug_hw_points): Declare.
  15894. (paddress): Declare.
  15895. * utils.c (NUMCELLS, CELLSIZE): New macros.
  15896. (get_sell, xsnprintf, paddress): New functions.
  15897. * win32-arm-low.c (the_low_target): Add entries for insert_point,
  15898. remove_point, stopped_by_watchpoint, stopped_data_address.
  15899. * win32-i386-low.c: Include i386-low.h.
  15900. (debug_reg_state): Replaces dr.
  15901. (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
  15902. (i386_dr_low_get_status): New function.
  15903. (i386_insert_point, i386_remove_point): New functions.
  15904. (i386_stopped_by_watchpoint): New function.
  15905. (i386_stopped_data_address): New function.
  15906. (i386_initial_stuff): Update.
  15907. (get_thread_context,set_thread_context,i386_thread_added): Update.
  15908. (the_low_target): Add entries for insert_point,
  15909. remove_point, stopped_by_watchpoint, stopped_data_address.
  15910. * win32-low.c (win32_insert_watchpoint): New function.
  15911. (win32_remove_watchpoint): New function.
  15912. (win32_stopped_by_watchpoint): New function.
  15913. (win32_stopped_data_address): New function.
  15914. (win32_target_ops): Add entries for insert_watchpoint,
  15915. remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
  15916. * win32-low.h (win32_target_ops): New members insert_point,
  15917. remove_point, stopped_by_watchpoint, stopped_data_address.
  15918. 2009-06-25 Pedro Alves <pedro@codesourcery.com>
  15919. * server.c (process_serial_event): Re-return unsupported, not
  15920. error, if the type isn't recognized. Re-allow supporting only
  15921. insert or remove packets. Also call require_running for
  15922. breakpoints. Add missing break statement to default case. Tidy.
  15923. * target.h (struct target_ops): Rename insert_watchpoint to
  15924. insert_point, and remove_watchpoint to remove_point.
  15925. * linux-low.h (struct linux_target_ops): Likewise.
  15926. * linux-low.c (linux_insert_watchpoint): Rename to ...
  15927. (linux_insert_point): ... this. Adjust.
  15928. (linux_remove_watchpoint): Rename to ...
  15929. (linux_remove_point): ... this. Adjust.
  15930. (linux_target_ops): Adjust.
  15931. * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
  15932. (cris_insert_point): ... this.
  15933. (cris_remove_watchpoint): Rename to ...
  15934. (cris_remove_point): ... this.
  15935. (the_low_target): Adjust.
  15936. 2009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
  15937. * server.c (handle_v_kill): Pass signal_pid to
  15938. kill_inferior if multi_process is zero.
  15939. 2009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
  15940. * server.c (process_serial_event): Add support for Z0 and Z1 packet.
  15941. * target.h (target_ops): Comment for *_watchpoint to make it clear
  15942. the functions can get types '0' and '1'.
  15943. 2009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
  15944. * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
  15945. * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
  15946. * regcache.c (get_regcache): Likewise.
  15947. * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
  15948. * win32-low.c (child_fetch_inferior_registers): Remove check for
  15949. regno 0.
  15950. 2009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
  15951. Pedro Alves <pedro@codesourcery.com>
  15952. * target.h (struct target_ops) <supports_multi_process>: New
  15953. callback.
  15954. (target_supports_multi_process): New.
  15955. * server.c (handle_query): Even if GDB reports support, only
  15956. enable multi-process if the target also supports it. Report
  15957. multi-process support only if the target backend supports it.
  15958. * linux-low.c (linux_supports_multi_process): New function.
  15959. (linux_target_ops): Install it as target_supports_multi_process
  15960. callback.
  15961. 2009-05-24 Doug Evans <dje@google.com>
  15962. Global renaming of find_thread_pid to find_thread_ptid.
  15963. * server.h (find_thread_ptid): Renamed from find_thread_pid.
  15964. * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
  15965. All callers updated.
  15966. * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
  15967. to resume the newly created thread, don't call ptrace (PTRACE_CONT)
  15968. directly.
  15969. * linux-low.c (get_stop_pc): Print pc if debug_threads.
  15970. (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
  15971. (linux_resume_one_lwp): Ditto.
  15972. 2009-05-23 Doug Evans <dje@google.com>
  15973. * linux-low.c (linux_resume_one_lwp): Change type of first arg
  15974. from struct inferior_list_entry * to struct lwp_info *.
  15975. All callers updated.
  15976. 2009-05-13 Doug Evans <dje@google.com>
  15977. * linux-x86-low.c: Don't include assert.h.
  15978. (x86_siginfo_fixup): Use fatal, not assert.
  15979. (x86_arch_setup): Fix comment.
  15980. 2009-05-12 Doug Evans <dje@google.com>
  15981. Biarch support for i386/amd64 gdbserver.
  15982. * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
  15983. Add linux-x86-low.c.
  15984. (linux-i386-low.o, linux-x86-64-low.o): Delete.
  15985. (linux-x86-low.o): Add.
  15986. * linux-x86-64-low.c: Delete.
  15987. * linux-i386-low.c: Delete.
  15988. * linux-x86-low.c: New file.
  15989. * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
  15990. linux-x86-low.o.
  15991. (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
  15992. linux-x86-low.o.
  15993. (x86_64-linux srv_regobj): Add reg-i386-linux.o.
  15994. * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
  15995. (linux_child_pid_to_exec_file): New function.
  15996. (elf_64_header_p, elf_64_file_p): New functions.
  15997. (siginfo_fixup): New function.
  15998. (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
  15999. give target a chance to convert layout.
  16000. * linux-low.h (linux_target_ops): New member siginfo_fixup.
  16001. (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
  16002. 2009-05-07 Doug Evans <dje@google.com>
  16003. * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
  16004. (regsets_store_inferior_registers): Ditto.
  16005. 2009-05-06 Pedro Alves <pedro@codesourcery.com>
  16006. PR server/10048
  16007. * linux-low.c (must_set_ptrace_flags): Delete.
  16008. (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
  16009. of the global.
  16010. (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
  16011. `lwp->must_set_ptrace_flags' instead.
  16012. (linux_wait_for_event_1): Set ptrace options here.
  16013. (linux_wait_1): ... not here.
  16014. 2009-04-30 Doug Evans <dje@google.com>
  16015. * inferiors.c (started_inferior_callback): New function.
  16016. (attached_inferior_callback): New function.
  16017. (have_started_inferiors_p, have_attached_inferiors_p): New functions.
  16018. * server.c (print_started_pid, print_attached_pid): New functions.
  16019. (detach_or_kill_for_exit): New function.
  16020. (main): Call it instead of for_each_inferior (kill_inferior_callback).
  16021. * server.h (have_started_inferiors_p): Declare.
  16022. (have_attached_inferiors_p): Declare.
  16023. * inferiors.c (remove_process): Fix memory leak, free process.
  16024. * linux-low.c (linux_remove_process): New function.
  16025. (linux_kill): Call it instead of remove_process.
  16026. (linux_detach, linux_wait_1): Ditto.
  16027. 2009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
  16028. * configure.srv: Add x86 Windows CE target.
  16029. 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
  16030. * inferiors.c (get_thread_process): Make global.
  16031. * server.h (get_thread_process): Add prototype.
  16032. * thread-db.c (find_one_thread): Use get_thread_process
  16033. instead of current_process.
  16034. (thread_db_get_tls_address): Do not crash if called when
  16035. thread layer is not yet initialized.
  16036. 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
  16037. * remote-utils.c (prepare_resume_reply): Null-terminate packet.
  16038. * spu-low.c (current_tid): Rename to ...
  16039. (current_ptid): ... this.
  16040. (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
  16041. spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
  16042. ptid_get_lwp (current_ptid) instead of current_tid.
  16043. (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
  16044. instead of current_tid. Use find_process_pid to verify pid
  16045. argument is valid. Pass proper argument to remove_process.
  16046. (spu_thread_alive): Compare current_ptid instead of current_tid.
  16047. (spu_resume): Likewise.
  16048. 2009-04-02 Pedro Alves <pedro@codesourcery.com>
  16049. * linux-low.c (usr_store_inferior_registers): Declare local `pid'
  16050. variable.
  16051. 2009-04-01 Pedro Alves <pedro@codesourcery.com>
  16052. Implement the multiprocess extensions, and add linux multiprocess
  16053. support.
  16054. * server.h (ULONGEST): Declare.
  16055. (struct ptid, ptid_t): New.
  16056. (minus_one_ptid, null_ptid): Declare.
  16057. (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
  16058. (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
  16059. (struct inferior_list_entry): Change `id' type from unsigned from
  16060. to ptid_t.
  16061. (struct sym_cache, struct breakpoint, struct
  16062. process_info_private): Forward declare.
  16063. (struct process_info): Declare.
  16064. (current_process): Declare.
  16065. (all_processes): Declare.
  16066. (initialize_inferiors): Declare.
  16067. (add_thread): Adjust to use ptid_t.
  16068. (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
  16069. (add_process, remove_process, find_thread_pid): Declare.
  16070. (find_inferior_id): Adjust to use ptid_t.
  16071. (cont_thread, general_thread, step_thread): Change type to ptid_t.
  16072. (multi_process): Declare.
  16073. (push_event): Adjust to use ptid_t.
  16074. (read_ptid, write_ptid): Declare.
  16075. (prepare_resume_reply): Adjust to use ptid_t.
  16076. (clear_symbol_cache): Declare.
  16077. * inferiors.c (all_processes): New.
  16078. (null_ptid, minus_one_ptid): New.
  16079. (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
  16080. (ptid_get_tid, ptid_equal, ptid_is_pid): New.
  16081. (add_thread): Change unsigned long to ptid. Remove gdb_id
  16082. parameter. Adjust.
  16083. (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
  16084. (gdb_id_to_thread): Rename to ...
  16085. (find_thread_pid): ... this. Change unsigned long to ptid.
  16086. (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
  16087. (loaded_dll, pull_pid_from_list): Adjust.
  16088. (add_process, remove_process, find_process_pid)
  16089. (get_thread_process, current_process, initialize_inferiors): New.
  16090. * target.h (struct thread_resume) <thread>: Change type to ptid_t.
  16091. (struct target_waitstatus) <related_pid>: Ditto.
  16092. (struct target_ops) <kill, detach>: Add `pid' argument. Change
  16093. return type to int.
  16094. (struct target_ops) <join>: Add `pid' argument.
  16095. (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
  16096. (struct target_ops) <wait>: Add `ptid' field. Change return type
  16097. to ptid.
  16098. (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
  16099. (mywait): Add `ptid' argument. Change return type to ptid_t.
  16100. (target_pid_to_str): Declare.
  16101. * target.c (set_desired_inferior): Adjust to use ptids.
  16102. (mywait): Add new `ptid' argument. Adjust.
  16103. (target_pid_to_str): New.
  16104. * mem-break.h (free_all_breakpoints): Declare.
  16105. * mem-break.c (breakpoints): Delelete.
  16106. (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
  16107. (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
  16108. to use per-process breakpoint list.
  16109. (free_all_breakpoints): New.
  16110. * remote-utils.c (struct sym_cache) <name>: Drop `const'.
  16111. (symbol_cache, all_symbols_looked_up): Delete.
  16112. (hexchars): New.
  16113. (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
  16114. read_ptid): New.
  16115. (prepare_resume_reply): Change ptid argument's type from unsigned
  16116. long to ptid_t. Adjust. Implement W;process and X;process.
  16117. (free_sym_cache, clear_symbol_cache): New.
  16118. (look_up_one_symbol): Adjust to per-process symbol cache. *
  16119. * server.c (cont_thread, general_thread, step_thread): Change type
  16120. to ptid_t.
  16121. (attached): Delete.
  16122. (multi_process): New.
  16123. (last_ptid): Change type to ptid_t.
  16124. (struct vstop_notif) <ptid>: Change type to ptid_t.
  16125. (queue_stop_reply, push_event): Change `ptid' argument's type to
  16126. ptid_t.
  16127. (discard_queued_stop_replies): Add `pid' argument.
  16128. (start_inferior): Adjust to use ptids. Adjust to mywait interface
  16129. changes. Don't reference the `attached' global.
  16130. (attach_inferior): Adjust to mywait interface changes.
  16131. (handle_query): Adjust to use ptids. Parse GDB's qSupported
  16132. features. Handle and report "multiprocess+". Handle
  16133. "qAttached:PID".
  16134. (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
  16135. changes.
  16136. (handle_v_kill): New.
  16137. (handle_v_stopped): Adjust to use target_pid_to_str.
  16138. (handle_v_requests): Allow multiple attaches and runs when
  16139. multiprocess extensions are in effect. Handle "vKill".
  16140. (myresume): Adjust to use ptids.
  16141. (queue_stop_reply_callback): Add `arg' parameter. Handle it.
  16142. (handle_status): Adjust to discard_queued_stop_replies interface
  16143. change.
  16144. (first_thread_of, kill_inferior_callback)
  16145. (detach_or_kill_inferior_callback, join_inferiors_callback): New.
  16146. (main): Call initialize_inferiors. Adjust to use ptids, killing
  16147. and detaching from all inferiors. Handle multiprocess packet
  16148. variants.
  16149. * linux-low.h: Include gdb_proc_service.h.
  16150. (struct process_info_private): New.
  16151. (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
  16152. <lwpid_of>: Use ptid_get_lwp.
  16153. (get_lwp_thread): Adjust.
  16154. (struct lwp_info): Add `dead' member.
  16155. (find_lwp_pid): Declare.
  16156. * linux-low.c (thread_db_active): Delete.
  16157. (new_inferior): Adjust comment.
  16158. (inferior_pid): Delete.
  16159. (linux_add_process): New.
  16160. (handle_extended_wait): Adjust.
  16161. (add_lwp): Change unsigned long to ptid.
  16162. (linux_create_inferior): Add process to processes table. Adjust
  16163. to use ptids. Don't set new_inferior here.
  16164. (linux_attach_lwp): Rename to ...
  16165. (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
  16166. it. Adjust to use ptids.
  16167. (linux_attach_lwp): New.
  16168. (linux_attach): Add process to processes table. Don't set
  16169. new_inferior here.
  16170. (struct counter): New.
  16171. (second_thread_of_pid_p, last_thread_of_process_p): New.
  16172. (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
  16173. multiple processes.
  16174. (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
  16175. processes. Remove process from process table.
  16176. (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
  16177. to multiple processes.
  16178. (any_thread_of): New.
  16179. (linux_detach): Add `pid' argument, and handle it. Remove process
  16180. from processes table.
  16181. (linux_join): Add `pid' argument. Handle it.
  16182. (linux_thread_alive): Change unsighed long argument to ptid_t.
  16183. Consider dead lwps as not being alive.
  16184. (status_pending_p): Rename `dummy' argument to `arg'. Filter out
  16185. threads we're not interested in.
  16186. (same_lwp, find_lwp_pid): New.
  16187. (linux_wait_for_lwp): Change `pid' argument's type from int to
  16188. ptid_t. Adjust.
  16189. (linux_wait_for_event): Rename to ...
  16190. (linux_wait_for_event_1): ... this. Change `pid' argument's type
  16191. from int to ptid_t. Adjust.
  16192. (linux_wait_for_event): New.
  16193. (linux_wait_1): Add `ptid' argument. Change return type to
  16194. ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
  16195. that exit from the process table.
  16196. (linux_wait): Add `ptid' argument. Change return type to ptid_t.
  16197. Adjust.
  16198. (mark_lwp_dead): New.
  16199. (wait_for_sigstop): Adjust to use ptids. If a process exits while
  16200. stopping all threads, mark its main lwp as dead.
  16201. (linux_set_resume_request, linux_resume_one_thread): Adjust to use
  16202. ptids.
  16203. (fetch_register, usr_store_inferior_registers)
  16204. (regsets_fetch_inferior_registers)
  16205. (regsets_store_inferior_registers, linux_read_memory)
  16206. (linux_write_memory): Inline `inferior_pid'.
  16207. (linux_look_up_symbols): Adjust to use per-process
  16208. `thread_db_active'.
  16209. (linux_request_interrupt): Adjust to use ptids.
  16210. (linux_read_auxv): Inline `inferior_pid'.
  16211. (initialize_low): Don't reference thread_db_active.
  16212. * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
  16213. * proc-service.c (ps_lgetregs): Use find_lwp_pid.
  16214. (ps_getpid): Return the pid of the current inferior.
  16215. * thread-db.c (proc_handle, thread_agent): Delete.
  16216. (thread_db_create_event, thread_db_enable_reporting): Adjust to
  16217. per-process data.
  16218. (find_one_thread): Change argument type to ptid_t. Adjust to
  16219. per-process data.
  16220. (maybe_attach_thread): Adjust to per-process data and ptids.
  16221. (thread_db_find_new_threads): Ditto.
  16222. (thread_db_init): Ditto.
  16223. * spu-low.c (spu_create_inferior, spu_attach): Add process to
  16224. processes table. Adjust to use ptids.
  16225. (spu_kill, spu_detach): Adjust interface. Remove process from
  16226. processes table.
  16227. (spu_join, spu_thread_alive): Adjust interface.
  16228. (spu_wait): Adjust interface. Remove process from processes
  16229. table. Adjust to use ptids.
  16230. * win32-low.c (current_inferior_tid): Delete.
  16231. (current_inferior_ptid): New.
  16232. (debug_event_ptid): New.
  16233. (thread_rec): Take a ptid. Adjust.
  16234. (child_add_thread): Add `pid' argument. Adjust to use ptids.
  16235. (child_delete_thread): Ditto.
  16236. (do_initial_child_stuff): Add `attached' argument. Add process to
  16237. processes table.
  16238. (child_fetch_inferior_registers, child_store_inferior_registers):
  16239. Adjust.
  16240. (win32_create_inferior): Pass 0 to do_initial_child_stuff.
  16241. (win32_attach): Pass 1 to do_initial_child_stuff.
  16242. (win32_kill): Adjust interface. Remove process from processes
  16243. table.
  16244. (win32_detach): Ditto.
  16245. (win32_join): Adjust interface.
  16246. (win32_thread_alive): Take a ptid.
  16247. (win32_resume): Adjust to use ptids.
  16248. (get_child_debug_event): Ditto.
  16249. (win32_wait): Adjust interface. Remove exiting process from
  16250. processes table.
  16251. 2009-04-01 Pedro Alves <pedro@codesourcery.com>
  16252. Non-stop mode support.
  16253. * server.h (non_stop): Declare.
  16254. (gdb_client_data, handler_func): Declare.
  16255. (delete_file_handler, add_file_handler, start_event_loop):
  16256. Declare.
  16257. (handle_serial_event, handle_target_event, push_event)
  16258. (putpkt_notif): Declare.
  16259. * target.h (enum resume_kind): New.
  16260. (struct thread_resume): Replace `step' field by `kind' field.
  16261. (TARGET_WNOHANG): Define.
  16262. (struct target_ops) <wait>: Add `options' argument.
  16263. <supports_non_stop, async, start_non_stop>: New fields.
  16264. (target_supports_non_stop, target_async): New.
  16265. (start_non_stop): Declare.
  16266. (mywait): Add `options' argument.
  16267. * target.c (mywait): Add `options' argument. Print child exit
  16268. notifications here.
  16269. (start_non_stop): New.
  16270. * server.c (non_stop, own_buf, mem_buf): New globals.
  16271. (struct vstop_notif): New.
  16272. (notif_queue): New global.
  16273. (queue_stop_reply, push_event, discard_queued_stop_replies)
  16274. (send_next_stop_reply): New.
  16275. (start_inferior): Adjust to use resume_kind. Adjust to mywait
  16276. interface changes.
  16277. (attach_inferior): In non-stop mode, don't wait for the target
  16278. here.
  16279. (handle_general_set): Handle QNonStop.
  16280. (handle_query): When handling qC, return the current general
  16281. thread, instead of the first thread of the list.
  16282. (handle_query): If the backend supports non-stop mode, include
  16283. QNonStop+ in the qSupported query response.
  16284. (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
  16285. and non-stop mode.
  16286. (handle_v_attach, handle_v_run): Handle non-stop mode.
  16287. (handle_v_stopped): New.
  16288. (handle_v_requests): Report support for vCont;t. Handle vStopped.
  16289. (myresume): Adjust to use resume_kind. Handle non-stop.
  16290. (queue_stop_reply_callback): New.
  16291. (handle_status): Handle non-stop mode.
  16292. (main): Clear non_stop flag on reconnection. Use the event-loop.
  16293. Refactor serial protocol handling from here ...
  16294. (process_serial_event): ... to this new function. When GDB
  16295. selects any thread, select one here. In non-stop mode, wait until
  16296. GDB acks all pending events before exiting.
  16297. (handle_serial_event, handle_target_event): New.
  16298. * remote-utils.c (remote_open): Install remote_desc in the event
  16299. loop.
  16300. (remote_close): Remove remote_desc from the event loop.
  16301. (putpkt_binary): Rename to...
  16302. (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
  16303. (putpkt_binary): New as wrapper around putpkt_binary_1.
  16304. (putpkt_notif): New.
  16305. (prepare_resume_reply): In non-stop mode, don't change the
  16306. general_thread.
  16307. * event-loop.c: New.
  16308. * Makefile.in (OBJ): Add event-loop.o.
  16309. (event-loop.o): New rule.
  16310. * linux-low.h (pid_of): Moved here.
  16311. (lwpid_of): New.
  16312. (get_lwp_thread): Use lwpid_of.
  16313. (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
  16314. * linux-low.c (pid_of): Delete.
  16315. (inferior_pid): Use lwpid_of.
  16316. (linux_event_pipe): New.
  16317. (target_is_async_p): New.
  16318. (delete_lwp): New.
  16319. (handle_extended_wait): Use lwpid_of.
  16320. (add_lwp): Don't set lwpid field.
  16321. (linux_attach_lwp): Adjust debug output. Use lwpid_of.
  16322. (linux_kill_one_lwp): If killing a running lwp, stop it first.
  16323. Use lwpid_of. Adjust to linux_wait_for_event interface changes.
  16324. (linux_detach_one_lwp): If detaching from a running lwp, stop it
  16325. first. Adjust to linux_wait_for_event interface changes. Use
  16326. lwpid_of.
  16327. (linux_detach): Don't delete the main lwp here.
  16328. (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
  16329. (status_pending_p): Don't consider explicitly suspended lwps.
  16330. (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
  16331. pointer. Add OPTIONS argument. Change return type to int. Use
  16332. my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
  16333. (linux_wait_for_event): Take an integer pid instead of a lwp_info
  16334. pointer. Add status pointer argument. Return a pid instead of a
  16335. status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
  16336. changes. In non-stop mode, don't switch to a random thread.
  16337. (linux_wait): Rename to...
  16338. (linux_wait_1): ... this. Add target_options argument, and handle
  16339. it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
  16340. don't handle the continue thread. Handle TARGET_WNOHANG. Merge
  16341. clean exit and signal exit code. Don't stop all threads in
  16342. non-stop mode. In all-stop mode, only stop all threads when
  16343. reporting a stop to GDB. Handle explicit thread stop requests.
  16344. (async_file_flush, async_file_mark): New.
  16345. (linux_wait): New.
  16346. (send_sigstop): Use lwpid_of.
  16347. (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
  16348. interface changes. In non-stop mode, don't switch to a random
  16349. thread.
  16350. (linux_resume_one_lwp): Use lwpid_of.
  16351. (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
  16352. (linux_resume_one_thread): ... this. Handle resume_stop. In
  16353. non-stop mode, don't look for pending flag in all threads.
  16354. (resume_status_pending_p): Don't consider explicitly suspended
  16355. threads.
  16356. (my_waitpid): Reimplement. Emulate __WALL.
  16357. (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
  16358. Use lwpid_of.
  16359. (sigchld_handler, linux_supports_non_stop, linux_async)
  16360. (linux_start_non_stop): New.
  16361. (linux_target_ops): Register linux_supports_non_stop, linux_async
  16362. and linux_start_non_stop.
  16363. (initialize_low): Install SIGCHLD handler.
  16364. * thread-db.c (thread_db_create_event, find_one_thread)
  16365. (thread_db_get_tls_address): Use lwpid_of.
  16366. * win32-low.c (win32_detach): Adjust to use resume_kind.
  16367. (win32_wait): Add `options' argument.
  16368. * spu-low.c (spu_resume): Adjust to use resume_kind.
  16369. (spu_wait): Add `options' argument.
  16370. 2009-04-01 Pedro Alves <pedro@codesourcery.com>
  16371. Decouple target code from remote protocol.
  16372. * target.h (enum target_waitkind): New.
  16373. (struct target_waitstatus): New.
  16374. (struct target_ops) <wait>: Return an unsigned long. Take a
  16375. target_waitstatus pointer instead of a char pointer.
  16376. (mywait): Likewise.
  16377. * target.c (mywait): Change prototype to return an unsigned long.
  16378. Take a target_waitstatus pointer instead of a char pointer. Adjust.
  16379. * server.h (thread_from_wait, old_thread_from_wait): Delete
  16380. declarations.
  16381. (prepare_resume_reply): Change prototype to take a
  16382. target_waitstatus.
  16383. * server.c (thread_from_wait, old_thread_from_wait): Delete.
  16384. (last_status, last_ptid): New.
  16385. (start_inferior): Remove "statusptr" argument. Adjust. Return a
  16386. pid instead of a signal.
  16387. (attach_inferior): Remove "status" and "signal" parameters.
  16388. Adjust.
  16389. (handle_query): For qGetTLSAddr, parse the thread id with strtol,
  16390. not as an address.
  16391. (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
  16392. (handle_v_requests, myresume): Remove "status" and "signal"
  16393. parameters. Adjust.
  16394. (handle_status): New.
  16395. (main): Delete local `status'. Adjust.
  16396. * remote-utils.c: Include target.h.
  16397. (prepare_resume_reply): Change prototype to take a
  16398. target_waitstatus. Adjust.
  16399. * linux-low.c (linux_wait): Adjust to new target_ops->wait
  16400. interface.
  16401. * spu-low.c (spu_wait): Adjust.
  16402. * win32-low.c (enum target_waitkind, struct target_waitstatus):
  16403. Delete.
  16404. (win32_wait): Adjust.
  16405. 2009-04-01 Pedro Alves <pedro@codesourcery.com>
  16406. * target.h (struct thread_resume): Delete leave_stopped member.
  16407. (struct target_ops): Add a `n' argument to the `resume' callback.
  16408. * server.c (start_inferior): Adjust.
  16409. (handle_v_cont, myresume): Adjust.
  16410. * linux-low.c (check_removed_breakpoint): Adjust to resume
  16411. interface change, and to removed leave_stopped field.
  16412. (resume_ptr): Delete.
  16413. (struct thread_resume_array): New.
  16414. (linux_set_resume_request): Add new `arg' parameter. Adjust to
  16415. resume interface change.
  16416. (linux_continue_one_thread, linux_queue_one_thread)
  16417. (resume_status_pending_p): Check if the resume field is NULL
  16418. instead of checking the leave_stopped member.
  16419. (linux_resume): Adjust to the target resume interface change.
  16420. * spu-low.c (spu_resume): Adjust to the target resume interface
  16421. change.
  16422. * win32-low.c (win32_detach, win32_resume): Ditto.
  16423. 2009-04-01 Pedro Alves <pedro@codesourcery.com>
  16424. * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
  16425. flag.
  16426. (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
  16427. pending.
  16428. (linux_continue_one_thread): Only preserve the stepping flag if
  16429. there's a pending breakpoint.
  16430. 2009-03-31 Pedro Alves <pedro@codesourcery.com>
  16431. * server.c (main): After the inferior having exited, call
  16432. remote_close before exiting gdbserver.
  16433. 2009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
  16434. Fix size of FPSCR in Power 7 processors.
  16435. * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
  16436. (PPC_FEATURE_HAS_DFP): New #define.
  16437. (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
  16438. size of the FPSCR.
  16439. 2009-03-23 Pedro Alves <pedro@codesourcery.com>
  16440. * server.c (handle_query) Whitespace and formatting.
  16441. 2009-03-22 Pedro Alves <pedro@codesourcery.com>
  16442. * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
  16443. linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
  16444. linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
  16445. linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
  16446. regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
  16447. thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
  16448. Makefile.in, configure.ac: Fix whitespace throughout.
  16449. * configure: Regenerate.
  16450. 2009-03-22 Pedro Alves <pedro@codesourcery.com>
  16451. * inferiors.c (find_inferior): Make it safe for the callback
  16452. function to delete the currently iterated inferior.
  16453. 2009-03-22 Pedro Alves <pedro@codesourcery.com>
  16454. * Makefile.in (linuw_low_h): Move higher.
  16455. (thread-db.o): Depend on $(linux_low_h).
  16456. 2009-03-17 Pedro Alves <pedro@codesourcery.com>
  16457. Rename "process" to "lwp" throughout.
  16458. * linux-low.c (all_processes): Rename to...
  16459. (all_lwps): ... this.
  16460. (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
  16461. (add_process): Rename to ...
  16462. (add_lwp): ... this. Adjust.
  16463. (linux_create_inferior): Adjust.
  16464. (linux_attach_lwp): Adjust.
  16465. (linux_attach): Adjust.
  16466. (linux_kill_one_process): Rename to ...
  16467. (linux_kill_one_lwp): ... this. Adjust.
  16468. (linux_kill): Adjust.
  16469. (linux_detach_one_process): Rename to ...
  16470. (linux_detach_one_lwp): ... this. Adjust.
  16471. (linux_detach): Adjust.
  16472. (check_removed_breakpoint): Adjust.
  16473. (status_pending_p): Adjust.
  16474. (linux_wait_for_process): Rename to ...
  16475. (linux_wait_for_lwp): ... this. Adjust.
  16476. (linux_wait_for_event): Adjust.
  16477. (send_sigstop): Adjust.
  16478. (wait_for_sigstop): Adjust.
  16479. (stop_all_processes): Rename to ...
  16480. (stop_all_lwps): ... this.
  16481. (linux_resume_one_process): Rename to ...
  16482. (linux_resume_one_lwp): ... this. Adjust.
  16483. (linux_set_resume_request, linux_continue_one_thread)
  16484. (linux_queue_one_thread, resume_status_pending_p)
  16485. (usr_store_inferior_registers, regsets_store_inferior_registers)
  16486. (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
  16487. Adjust.
  16488. * linux-low.h (get_process): Rename to ...
  16489. (get_lwp): ... this. Adjust.
  16490. (get_thread_process): Rename to ...
  16491. (get_thread_lwp): ... this. Adjust.
  16492. (get_process_thread): Rename to ...
  16493. (get_lwp_thread): ... this. Adjust.
  16494. (struct process_info): Rename to ...
  16495. (struct lwp_info): ... this.
  16496. (all_processes): Rename to ...
  16497. (all_lwps): ... this.
  16498. * proc-service.c (ps_lgetregs): Adjust.
  16499. * thread-db.c (thread_db_create_event, find_one_thread)
  16500. (maybe_attach_thread, thread_db_get_tls_address): Adjust.
  16501. 2009-03-14 Pedro Alves <pedro@codesourcery.com>
  16502. * server.c (handle_query): Handle "qAttached".
  16503. 2009-03-13 Nathan Sidwell <nathan@codesourcery.com>
  16504. * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
  16505. GPLv3, update license URL.
  16506. 2009-03-01 Doug Evans <dje@google.com>
  16507. * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
  16508. (server_h): Add gdb_signals.h.
  16509. (signals.o): Update.
  16510. * server.h (target_signal_from_host,target_signal_to_host_p)
  16511. (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
  16512. 2009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
  16513. * remote-utils.c (getpkt): Also generate remote-debug
  16514. information if noack_mode is set.
  16515. 2009-02-06 Pedro Alves <pedro@codesourcery.com>
  16516. * server.c (handle_query): Report qXfer:siginfo:read and
  16517. qXfer:siginfo:write as supported and handle them.
  16518. * target.h (struct target_ops) <qxfer_siginfo>: New field.
  16519. * linux-low.c (linux_xfer_siginfo): New.
  16520. (linux_target_ops): Set it.
  16521. 2009-01-26 Pedro Alves <pedro@codesourcery.com>
  16522. * server.c (gdbserver_usage): Mention --remote-debug.
  16523. (main): Accept '--remote-debug' switch.
  16524. 2009-01-18 Doug Evans <dje@google.com>
  16525. * regcache.c (new_register_cache): No need to check result of xcalloc.
  16526. * server.c (handle_search_memory): Back out calls to xmalloc,
  16527. result is checked and error is returned to user upon failure.
  16528. (handle_query): Ditto. Add more checks for result of malloc.
  16529. (handle_v_cont): Check result of malloc, report error back to
  16530. user upon failure.
  16531. (handle_v_run): Ditto. Call freeargv.
  16532. * server.h (freeargv): Declare.
  16533. * utils.c (freeargv): New fn.
  16534. 2009-01-15 Doug Evans <dje@google.com>
  16535. * gdbreplay.c (perror_with_name): Make arg const char *.
  16536. * server.h (target_signal_to_name): Make return type const char *.
  16537. * thread-db.c (thread_db_err_str): Make return type const char *.
  16538. * utils.c (perror_with_name): Make arg const char *.
  16539. 2009-01-14 Pedro Alves <pedro@codesourcery.com>
  16540. * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
  16541. when handling a EXIT_PROCESS_DEBUG_EVENT.
  16542. 2009-01-06 Joel Brobecker <brobecker@adacore.com>
  16543. * gdbreplay.c (gdbreplay_version): Update copyright year.
  16544. * server.c (gdbserver_version): Likewise.
  16545. 2009-01-05 Doug Evans <dje@google.com>
  16546. * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
  16547. (handle_extended_wait): Improve comment.
  16548. 2008-12-13 Doug Evans <dje@google.com>
  16549. * utils.c (xmalloc,xcalloc,xstrdup): New fns.
  16550. * server.h (ATTR_MALLOC): New macro.
  16551. (xmalloc,xcalloc,xstrdup): Declare.
  16552. * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
  16553. * inferiors.c: Ditto.
  16554. * linux-low.c: Ditto.
  16555. * mem-break.c: Ditto.
  16556. * regcache.c: Ditto.
  16557. * remote-utils.c: Ditto.
  16558. * server.c: Ditto.
  16559. * target.c: Ditto.
  16560. * win32-low.c: Ditto.
  16561. 2008-12-12 Doug Evans <dje@google.com>
  16562. * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
  16563. in debugging printf.
  16564. * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
  16565. 2008-12-09 Doug Evans <dje@google.com>
  16566. * linux-low.h (struct process_info): Delete member tid, unused.
  16567. * thread-db.c (find_one_thread): Update.
  16568. (maybe_attach_thread): Update.
  16569. 2008-12-02 Pedro Alves <pedro@codesourcery.com>
  16570. * target.h (struct target_ops): Add qxfer_osdata member.
  16571. * linux-low.c: Include ctype.h and pwd.h and sys/types.h
  16572. and dirent.h.
  16573. (linux_qxfer_osdata): New functions.
  16574. (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
  16575. callback.
  16576. * server.c (handle_query): Handle "qXfer:osdata:read:".
  16577. * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
  16578. (buffer_xml_printf): New functions.
  16579. * server.h (struct buffer): New.
  16580. (buffer_grow_str, buffer_grow_str0): New macros.
  16581. (buffer_grow, buffer_free, buffer_init, buffer_finish)
  16582. (buffer_xml_printf): Declare.
  16583. 2008-11-24 Doug Evans <dje@google.com>
  16584. * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
  16585. 2008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
  16586. * server.c (handle_v_run): Always use the supplied argument list.
  16587. 2008-11-19 Bob Wilson <bob.wilson@acm.org>
  16588. * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
  16589. (xtensa_regmap_table): Add entry for scompare1.
  16590. 2008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
  16591. * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
  16592. powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
  16593. powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
  16594. powerpc-isa205-64l.o, powerpc-isa205-64l.c,
  16595. powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
  16596. powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
  16597. * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
  16598. XML target descriptions.
  16599. * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
  16600. when inferior is running on an ISA 2.05 or later processor. Add
  16601. special case to return offset for full 64-bit slot of FPSCR when
  16602. in 32-bits.
  16603. 2008-11-14 Daniel Gutson <dgutson@codesourcery.com>
  16604. * Makefile.in (SFILES, clean): Added sparc64 files.
  16605. (reg-sparc64.o, reg-sparc64.c): New.
  16606. * configure.srv (sparc*-*-linux*): New configuration.
  16607. * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
  16608. syscall arguments for SPARC.
  16609. (regsets_store_inferior_registers): Likewise.
  16610. * linux-sparc-low.c: New file.
  16611. 2008-10-21 Doug Evans <dje@google.com>
  16612. * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
  16613. (READLINE_DIR,READLINE_DEP): Delete.
  16614. (INTERNAL_CFLAGS): Update.
  16615. (LINTFLAGS): Update.
  16616. 2008-10-10 Pedro Alves <pedro@codesourcery.com>
  16617. * server.c (handle_v_run): If GDB didn't specify an argv, use the
  16618. whole argv from the last run, not just argv[0].
  16619. 2008-09-08 Pedro Alves <pedro@codesourcery.com>
  16620. * regcache.c (new_register_cache): Return NULL if the register
  16621. cache size isn't known yet.
  16622. (free_register_cache): Avoid dereferencing a NULL regcache.
  16623. 2008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
  16624. * configure.srv: Merge MIPS and MIPS64.
  16625. 2008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
  16626. * Makefile.in (uninstall): Apply $(EXEEXT) too.
  16627. 2008-08-18 Luis Machado <luisgpm@br.ibm.com>
  16628. * Makefile.in: Add required vsx dependencies.
  16629. * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
  16630. Declare init_registers_powerpc_vsx32l.
  16631. Declare init_registers_powerpc_vsx64l.
  16632. Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
  16633. (ppc_arch_setup): Check for VSX in hwcap.
  16634. (ppc_fill_vsxregset): New function.
  16635. (ppc_store_vsxregset): New function.
  16636. Add new VSX entry in regset_info target_regsets.
  16637. * configure.srv: Add new VSX dependencies.
  16638. 2008-08-12 Pedro Alves <pedro@codesourcery.com>
  16639. * remote-utils.c (noack_mode, transport_is_reliable): New globals.
  16640. (remote_open): Set or clear transport_is_reliable.
  16641. (putpkt_binary): Don't expect acks in noack mode.
  16642. (getpkt): Don't send ack/nac in noack mode.
  16643. * server.c (handle_general_set): Handle QStartNoAckMode.
  16644. (handle_query): If connected by tcp pass QStartNoAckMode+ in
  16645. qSupported.
  16646. (main): Reset noack_mode on every connection.
  16647. * server.h (noack_mode): Declare.
  16648. 2008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
  16649. * Makefile.in (GDBREPLAY_OBS): New variable.
  16650. (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
  16651. 2008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
  16652. Daniel Jacobowitz <dan@codesourcery.com>
  16653. * linux-low.c (linux_resume_one_process): Ignore ESRCH.
  16654. (usr_store_inferior_registers): Likewise.
  16655. (regsets_store_inferior_registers): Likewise.
  16656. 2008-07-31 Rolf Jansen <rj@surtec.com>
  16657. Pedro Alves <pedro@codesourcery.com>
  16658. * configure.ac: Check for memmem declaration.
  16659. * server.c [HAVE_MALLOC_H]: Include malloc.h.
  16660. (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
  16661. (disable_packet_qfThreadInfo): Unconditionally compile.
  16662. * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
  16663. * configure, config.in: Regenerate.
  16664. 2008-07-28 Doug Kwan <dougkwan@google.com>
  16665. * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
  16666. (linux_write_memory): Remove declaration of errno.
  16667. 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
  16668. * linux-low.c (handle_extended_wait): Do not use "status"
  16669. variable uninitialized.
  16670. 2008-07-07 Pedro Alves <pedro@codesourcery.com>
  16671. * server.c (handle_v_attach): Inhibit reporting dll changes.
  16672. 2008-06-27 Pedro Alves <pedro@codesourcery.com>
  16673. * remote-utils.c (prepare_resume_reply): If requested, don't
  16674. output "thread:TID" in the T stop reply.
  16675. * server.c (disable_packet_vCont, disable_packet_Tthread)
  16676. (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
  16677. (handle_query): If requested, disable support for qC, qfThreadInfo
  16678. and qsThreadInfo.
  16679. (handle_v_requests): If requested, disable support for vCont.
  16680. (gdbserver_show_disableable): New.
  16681. (main): Handle --disable-packet and --disable-packet=LIST.
  16682. * server.h (disable_packet_vCont, disable_packet_Tthread)
  16683. (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
  16684. 2008-06-20 Carlos O'Donell <carlos@codesourcery.com>
  16685. * server.c (gdbserver_usage): Mention --version.
  16686. 2008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
  16687. * Makefile.in (gdbreplay.o): New rule.
  16688. 2008-06-06 Joseph Myers <joseph@codesourcery.com>
  16689. * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
  16690. message, not gdbserver.
  16691. 2008-06-05 Vladimir Prus <vladimir@codesourcery.com>
  16692. Nathan Sidwell <nathan@codesourcery.com>
  16693. Joseph Myers <joseph@codesourcery.com>
  16694. * acinclude.m4: Include ../../config/acx.m4.
  16695. * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
  16696. * configure, config.in: Regenerate.
  16697. * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
  16698. * server.c (gdbserver_version): Print PKGVERSION.
  16699. (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
  16700. (main): Adjust gdbserver_usage calls.
  16701. * gdbreplay.c (version, host_name): Add declarations.
  16702. (gdbreplay_version, gdbreplay_usage): New.
  16703. (main): Accept --version and --help options.
  16704. 2008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
  16705. * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
  16706. (arm_breakpoint_at): Handle Thumb.
  16707. (the_low_target): Add comment.
  16708. 2008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
  16709. * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
  16710. 2008-05-09 Doug Evans <dje@google.com>
  16711. * server.h (decode_search_memory_packet): Declare.
  16712. * remote-utils.c (decode_search_memory_packet): New fn.
  16713. * server.c (handle_search_memory_1): New fn.
  16714. (handle_search_memory): New fn.
  16715. (handle_query): Process qSearch:memory packets.
  16716. 2008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
  16717. * regcache.c (registers_length): Remove.
  16718. (set_register_cache): Verify that PBUFSIZ is large enough to hold a
  16719. full register packet.
  16720. * regcache.h (registers_length): Remove prototype.
  16721. * server.h (PBUFSIZ): Define to 16384.
  16722. 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
  16723. * configure.srv (powerpc*-*-linux*): Set srv_regobj to
  16724. powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
  16725. powerpc-64l.o, and powerpc-altivec64l.o.
  16726. Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
  16727. rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
  16728. rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
  16729. rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
  16730. rs6000/power-linux.xml, and rs6000/power64-linux.xml
  16731. to srv_xmlfiles.
  16732. * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
  16733. (powerpc-32l.o, powerpc-32l.c): ... these new rules.
  16734. (powerpc-32.o, powerpc-32.c): Remove, replace by ...
  16735. (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
  16736. (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
  16737. (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
  16738. (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
  16739. (powerpc-64l.o, powerpc-64l.c): ... these new rules.
  16740. (powerpc-64.o, powerpc-64.c): Remove, replace by ...
  16741. (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
  16742. (clean): Update.
  16743. * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
  16744. (init_registers_powerpc_32l): ... this new prototype.
  16745. (init_registers_powerpc_32): Remove, replace by ...
  16746. (init_registers_powerpc_altivec32l): ... this new prototype.
  16747. (init_registers_powerpc_e500): Remove, replace by ...
  16748. (init_registers_powerpc_e500l): ... this new prototype.
  16749. (init_registers_ppc64): Remove, replace by ...
  16750. (init_registers_powerpc_64l): ... this new prototype.
  16751. (init_registers_powerpc_64): Remove, replace by ...
  16752. (init_registers_powerpc_altivec64l): ... this new prototype.
  16753. (ppc_num_regs): Set to 73.
  16754. (PT_ORIG_R3, PT_TRAP): Define if necessary.
  16755. (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
  16756. (ppc_cannot_store_register): Handle orig_r3 and trap.
  16757. (ppc_arch_setup): Update init_registers_... calls.
  16758. (ppc_fill_gregset): Handle orig_r3 and trap.
  16759. * inferiors.c (clear_inferiors): Reset current_inferior.
  16760. 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
  16761. * acinclude.m4: Add override.m4.
  16762. * configure: Regenerate.
  16763. 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
  16764. * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
  16765. initial call to init_register_ppc64.
  16766. 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
  16767. * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
  16768. single powerpc*-*-linux* case.
  16769. (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
  16770. 2008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
  16771. * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
  16772. srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
  16773. from reg_xmlfiles.
  16774. * linux-ppc-low.c: Include <elf.h>.
  16775. (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
  16776. (ppc_hwcap): New global variable.
  16777. (ppc_regmap): Remove __SPE__ #ifdef sections.
  16778. (ppc_regmap_e500): New global variable.
  16779. (ppc_cannot_store_register): Update __SPE__ special case.
  16780. (ppc_get_hwcap): New function.
  16781. (ppc_arch_setup): Use it to determine whether inferior supports
  16782. AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
  16783. (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
  16784. Do not access registers if target does not support AltiVec.
  16785. (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
  16786. Do not access registers if target does not support SPE.
  16787. (target_regsets): Unconditionally include AltiVec and SPE regsets.
  16788. 2008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
  16789. * linux-low.c (disabled_regsets, num_regsets): New.
  16790. (use_regsets_p): Delete.
  16791. (linux_wait_for_process): Clear disabled_regsets.
  16792. (regsets_fetch_inferior_registers): Check and set it.
  16793. (regsets_store_inferior_registers): Likewise.
  16794. (linux_fetch_registers, linux_store_registers): Do not use
  16795. use_regsets_p.
  16796. (initialize_low): Allocate disabled_regsets.
  16797. 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
  16798. * Makefile.in (LIBOBJS): New.
  16799. (OBS): Use LIBOBJS.
  16800. (memmem.o): New rule.
  16801. * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
  16802. * configure: Regenerated.
  16803. 2008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
  16804. * server.c (handle_query): Never return "unsupported" for
  16805. qXfer:features:read queries.
  16806. 2008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
  16807. * server.c (get_features_xml): Fix inverted condition.
  16808. (handle_query): Always support qXfer:feature:read.
  16809. 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
  16810. * server.c (wrapper_argv): New.
  16811. (start_inferior): Handle wrapper_argv. If set, expect an extra
  16812. trap.
  16813. (gdbserver_usage): Document --wrapper.
  16814. (main): Parse --wrapper.
  16815. 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
  16816. * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
  16817. powerpc-*-linux* to srv_regobj and reg_xmlfiles.
  16818. * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
  16819. (ppc_set_pc): Likewise.
  16820. (ppc_arch_setup): New function.
  16821. (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
  16822. of collect_register.
  16823. (the_low_target): Use ppc_arch_setup as arch_setup initializer.
  16824. 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
  16825. * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
  16826. instead of linux-ppc64-low.o.
  16827. * linux-ppc64-low.c: Remove file.
  16828. * Makefile.in (SFILES): Remove linux-ppc64-low.c.
  16829. (linux-ppc64-low.o): Remove rule.
  16830. * linux-ppc-low.c (init_registers_ppc64): Add prototype.
  16831. (init_registers_powerpc_64): Likewise.
  16832. (ppc_regmap): Conditionally define depending on __powerpc64__.
  16833. (ppc_cannot_store_register): Do not special-case "fpscr" when
  16834. compiled on __powerpc64__.
  16835. (ppc_collect_ptrace_register): New function.
  16836. (ppc_supply_ptrace_register): New function.
  16837. (ppc_breakpoint): Change type to "unsigned int".
  16838. (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
  16839. (the_low_target): Conditionally provide initializers for the
  16840. arch_setup member depending on __powerpc64__. Install
  16841. collect_ptrace_register and supply_ptrace_register members.
  16842. 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
  16843. * regcache.h (gdbserver_xmltarget): Add extern declaration.
  16844. * server.c (gdbserver_xmltarget): Define.
  16845. (get_features_xml): Use it to replace "target.xml" and arch_string.
  16846. * configure.srv: Remove srv_xmltarget. Add XML files that were
  16847. mentioned there to srv_xmlfiles instead. Remove conditional tests
  16848. on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
  16849. srv_xmlfiles and srv_regobj to include all possible choices.
  16850. * configure.ac (srv_xmltarget): Remove.
  16851. (srv_xmlfiles): Do not add "target.xml".
  16852. (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
  16853. checks for supplementary target information.
  16854. * configure: Regenerate.
  16855. * Makefile.in (XML_TARGET): Remove.
  16856. (target.xml): Remove rule.
  16857. (clean): Do not clean up target.xml.
  16858. (.PRECIOUS): Do not mention target.xml.
  16859. * target.h (struct target_ops): Remove arch_string member.
  16860. * linux-low.c (linux_arch_string): Remove.
  16861. (linux_target_ops): Remove arch_string initializer.
  16862. * linux-low.h (struct linux_target_ops): Remove arch_string member.
  16863. * linux-i386-low.c (the_low_target): Remove arch_string initializer.
  16864. * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
  16865. * spu-low.c (spu_arch_string): Remove.
  16866. (spu_target_ops): Remove arch_string initializer.
  16867. * win32-low.c (win32_arch_string): Remove.
  16868. (win32_target_ops): Remove arch_string initializer.
  16869. * win32-low.h (struct win32_target_ops): Remove arch_string member.
  16870. * win32-arm-low.c (the_low_target): Remove arch_string initializer.
  16871. * win32-i368-low.c (the_low_target): Remove arch_string initializer.
  16872. 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
  16873. * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
  16874. by collect_ptrace_register and supply_ptrace_register hooks.
  16875. * linux-low.c (fetch_register): Use supply_ptrace_register callback
  16876. instead of checking for the_low_target.left_pad_xfer.
  16877. (usr_store_inferior_registers): Use collect_ptrace_register callback
  16878. instead of checking for the_low_target.left_pad_xfer.
  16879. * linux-s390-low.c (s390_collect_ptrace_register): New function.
  16880. (s390_supply_ptrace_register): Likewise.
  16881. (s390_fill_gregset): Call s390_collect_ptrace_register.
  16882. (the_low_target): Update.
  16883. * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
  16884. (ppc_supply_ptrace_register): Likewise.
  16885. (the_low_target): Update.
  16886. * linux-i386-low.c (the_low_target): Update.
  16887. * linux-x86-64-low.c (the_low_target): Update.
  16888. 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
  16889. * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
  16890. reg-s390.o and reg-s390x.o.
  16891. * linux-low.c (new_inferior): New global variable.
  16892. (linux_create_inferior, linux_attach): Set it.
  16893. (linux_wait_for_process): Call the_low_target.arch_setup after the
  16894. target has stopped for the first time.
  16895. (initialize_low): Do not call the_low_target.arch_setup.
  16896. * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
  16897. (s390_set_pc): Likewise.
  16898. (s390_arch_setup): New function.
  16899. (the_low_target): Use s390_arch_setup as arch_setup routine.
  16900. * regcache.c (realloc_register_cache): New function.
  16901. (set_register_cache): Call it for each existing regcache.
  16902. 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
  16903. * server.h (init_registers): Remove prototype.
  16904. * linux-low.h (struct linux_target_ops): Add arch_setup field.
  16905. * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
  16906. instead of init_registers ().
  16907. * linux-arm-low.c (init_registers_arm): Add prototype.
  16908. (init_registers_arm_with_iwmmxt): Likewise.
  16909. (the_low_target): Add initializer for arch_setup field.
  16910. * linux-cris-low.c (init_registers_cris): Add prototype.
  16911. (the_low_target): Add initializer for arch_setup field.
  16912. * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
  16913. (the_low_target): Add initializer for arch_setup field.
  16914. * linux-i386-low.c (init_registers_i386_linux): Add prototype.
  16915. (the_low_target): Add initializer for arch_setup field.
  16916. * linux-ia64-low.c (init_registers_ia64): Add prototype.
  16917. (the_low_target): Add initializer for arch_setup field.
  16918. * linux-m32r-low.c (init_registers_m32r): Add prototype.
  16919. (the_low_target): Add initializer for arch_setup field.
  16920. * linux-m68k-low.c (init_registers_m68k): Add prototype.
  16921. (the_low_target): Add initializer for arch_setup field.
  16922. * linux-mips-low.c (init_registers_mips_linux): Add prototype.
  16923. (init_registers_mips64_linux): Likewise.
  16924. (the_low_target): Add initializer for arch_setup field.
  16925. * linux-ppc-low.c (init_registers_ppc): Add prototype.
  16926. (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
  16927. (the_low_target): Add initializer for arch_setup field.
  16928. * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
  16929. (init_registers_powerpc_64): Likewise.
  16930. (the_low_target): Add initializer for arch_setup field.
  16931. * linux-s390-low.c (init_registers_s390): Add prototype.
  16932. (init_registers_s390x): Likewise.
  16933. (the_low_target): Add initializer for arch_setup field.
  16934. * linux-sh-low.c (init_registers_sh): Add prototype.
  16935. (the_low_target): Add initializer for arch_setup field.
  16936. * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
  16937. (the_low_target): Add initializer for arch_setup field.
  16938. * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
  16939. (the_low_target): Add initializer for arch_setup field.
  16940. * win32-low.h (struct win32_target_ops): Add arch_setup field.
  16941. * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
  16942. instead of init_registers ().
  16943. * win32-arm-low.c (init_registers_arm): Add prototype.
  16944. (the_low_target): Add initializer for arch_setup field.
  16945. * win32-i386-low.c (init_registers_i386): Add prototype.
  16946. (the_low_target): Add initializer for arch_setup field.
  16947. * spu-low.c (init_registers_spu): Add prototype.
  16948. (initialize_low): Call initialie_registers_spu () instead of
  16949. initialize_registers ().
  16950. 2008-02-19 Pedro Alves <pedro@codesourcery.com>
  16951. * server.c (handle_v_requests): When handling the vRun and vAttach
  16952. packets, if already debugging a process, don't kill it. Return an
  16953. error instead.
  16954. 2008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
  16955. * server.c (handle_query): Correct length check.
  16956. 2008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
  16957. * win32-low.c (do_initial_child_stuff): Add process handle
  16958. parameter. Set current_process_handle and current_process_id from the
  16959. parameters. Clear globals.
  16960. (win32_create_inferior): Don't set current_process_handle and
  16961. current_process_id here. Instead pass them on the call to
  16962. do_initial_child_stuff.
  16963. (win32_attach): Likewise.
  16964. (win32_clear_inferiors): New.
  16965. (win32_kill): Don't close the current process handle or the
  16966. current thread handle here. Instead call win32_clear_inferiors.
  16967. (win32_detach): Don't open a new handle to the process. Call
  16968. win32_clear_inferiors.
  16969. (win32_join): Don't rely on current_process_handle; open a new
  16970. handle using the process id.
  16971. (win32_wait): Call win32_clear_inferiors when the inferior process
  16972. has exited.
  16973. 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
  16974. * server.c (monitor_show_help): Add "exit".
  16975. 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
  16976. * Makefile.in (SFILES): Add linux-xtensa-low.c.
  16977. (clean): Add reg-xtensa.c.
  16978. (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
  16979. * configure.srv (xtensa*-*-linux*) New target.
  16980. * linux-xtensa-low.c: New.
  16981. * xtensa-xtregs.c: New.
  16982. 2008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
  16983. * hostio.c: Don't include errno.h.
  16984. (errno_to_fileio_errno): Move to hostio-errno.
  16985. * hostio.c: (hostio_error): Remove the error parameter. Defer the
  16986. error number outputting to the target->hostio_last_error callback.
  16987. (hostio_packet_error): Use FILEIO_EINVAL directly.
  16988. (handle_open, handle_pread, hostio_error, handle_unlink): Update
  16989. calls to hostio_error.
  16990. * hostio-errno.c: New.
  16991. * server.h (hostio_last_error_from_errno): Declare.
  16992. * target.h (target_ops): Add hostio_last_error member.
  16993. * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
  16994. as hostio_last_error handler.
  16995. * spu-low.c (spu_target_ops): Likewise.
  16996. * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
  16997. (wince_hostio_last_error): New functions.
  16998. (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
  16999. as hostio_last_error handler.
  17000. (win32_target_ops) [!_WIN32_WCE]: Register
  17001. hostio_last_error_from_errno as hostio_last_error handler.
  17002. * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
  17003. (hostio-errno.o): New rule.
  17004. * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
  17005. * configure.srv (srv_hostio_err_objs): New variable. Default to
  17006. hostio-errno.o.
  17007. (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
  17008. * configure: Regenerate.
  17009. 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
  17010. * linux-low.c (linux_attach_lwp): Do not _exit after errors.
  17011. (linux_kill, linux_detach): Clean up the process list.
  17012. * remote-utils.c (remote_open): Improve port number parsing.
  17013. (putpkt_binary, input_interrupt): Only send interrupts if the target
  17014. is running.
  17015. * server.c (extended_protocol): Make static.
  17016. (attached): Define earlier.
  17017. (exit_requested, response_needed, program_argv): New variables.
  17018. (target_running): New.
  17019. (start_inferior): Clear attached here.
  17020. (attach_inferior): Set attached here.
  17021. (require_running): Define.
  17022. (handle_query): Use require_running and target_running. Implement
  17023. "monitor exit".
  17024. (handle_v_attach, handle_v_run): New.
  17025. (handle_v_requests): Use require_running. Handle vAttach and vRun.
  17026. (gdbserver_usage): Update.
  17027. (main): Redo argument parsing. Handle --debug and --multi. Handle
  17028. --attach along with other options or after the port. Save
  17029. program_argv. Support no initial program. Resynchronize
  17030. communication with GDB after an error. Handle "monitor exit".
  17031. Use require_running and target_running. Always allow the extended
  17032. protocol. Do not error out for Hc0 or Hc-1. Do not automatically
  17033. restart in extended mode.
  17034. * README: Refer to the GDB manual. Update --attach usage.
  17035. 2007-12-20 Andreas Schwab <schwab@suse.de>
  17036. * linux-low.c (STACK_SIZE): Define.
  17037. (linux_tracefork_child): Use it. Use __clone2 on ia64.
  17038. (linux_test_for_tracefork): Likewise.
  17039. 2007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
  17040. * linux-low.c (linux_wait_for_event): Update messages. Do not
  17041. reinsert auto-delete breakpoints.
  17042. * mem-break.c (struct breakpoint): Change return type of handler to
  17043. int.
  17044. (set_breakpoint_at): Update handler type.
  17045. (reinsert_breakpoint_handler): Return 1 instead of calling
  17046. delete_breakpoint.
  17047. (reinsert_breakpoint_by_bp): Check for the original breakpoint before
  17048. setting a new one.
  17049. (check_breakpoints): Delete auto-delete breakpoints and return 2.
  17050. * mem-break.h (set_breakpoint_at): Update handler type.
  17051. * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
  17052. * win32-low.c (auto_delete_breakpoint): New.
  17053. (get_child_debug_event): Use it.
  17054. 2007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
  17055. * configure.ac: Check for pread and pwrite.
  17056. * hostio.c (handle_pread): Fall back to lseek and read.
  17057. (handle_pwrite): Fall back to lseek and write.
  17058. * config.in, configure: Regenerated.
  17059. 2007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
  17060. * server.c (myresume): Add own_buf argument.
  17061. (main): Update calls.
  17062. 2007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
  17063. * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
  17064. * remote-utils.c (remote_open): Do not call disable_async_io.
  17065. (block_async_io): Delete.
  17066. (unblock_async_io): Make static.
  17067. (initialize_async_io): New.
  17068. * server.c (handle_v_cont): Handle async I/O here.
  17069. (myresume): Likewise. Move other common resume tasks here...
  17070. (main): ... from here. Call initialize_async_io. Disable async
  17071. I/O before the main loop.
  17072. * server.h (initialize_async_io): Declare.
  17073. (block_async_io, unblock_async_io): Delete prototypes.
  17074. * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
  17075. 2007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
  17076. * remote-utils.c (readchar): Allow binary data in received messages.
  17077. 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
  17078. * win32-low.c (attaching): New global.
  17079. (win32_create_inferior): Clear the `attaching' global.
  17080. (win32_attach): Set the `attaching' global.
  17081. (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
  17082. attaching. Only set a breakpoint at the entry point if not
  17083. attaching.
  17084. 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
  17085. * server.c (main): Don't report dll events on the initial
  17086. connection on attaches.
  17087. 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
  17088. * server.c (main): Relax numerical bases supported for the pid of
  17089. the --attach command line argument.
  17090. 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
  17091. * win32-low.c (win32_attach): Call OpenProcess before
  17092. DebugActiveProcess, not after. Add last error output to error
  17093. call.
  17094. 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
  17095. * win32-low.c (win32_get_thread_context)
  17096. (win32_set_thread_context): New functions.
  17097. (thread_rec): Use win32_get_thread_context.
  17098. (continue_one_thread, win32_resume): Use win32_set_thread_context.
  17099. * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
  17100. field.
  17101. 2007-12-03 Leo Zayas
  17102. Pedro Alves <pedro_alves@portugalmail.pt>
  17103. * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
  17104. global variables.
  17105. (child_add_thread): Minor cleanup.
  17106. (child_continue): Resume artificially suspended threads before
  17107. calling ContinueDebugEvent.
  17108. (suspend_one_thread): New.
  17109. (fake_breakpoint_event): New.
  17110. (get_child_debug_event): Change return type to int. Check here if
  17111. gdb sent an interrupt request. If a soft interrupt was requested,
  17112. fake a breakpoint event. Return 0 if there is no event to handle,
  17113. and 1 otherwise.
  17114. (win32_wait): Don't check here if gdb sent an interrupt request.
  17115. Ensure there is a valid event to handle.
  17116. (win32_request_interrupt): Add soft interruption method as last
  17117. resort.
  17118. 2007-12-03 Leo Zayas
  17119. Pedro Alves <pedro_alves@portugalmail.pt>
  17120. * win32-low.h (win32_thread_info): Add descriptions to the
  17121. structure members. Replace `suspend_count' counter by a
  17122. `suspended' flag.
  17123. * win32-low.c (thread_rec): Update condition of when to get the
  17124. context from the inferior. Rely on ContextFlags being set if it
  17125. has already been retrieved. Only suspend the inferior thread if
  17126. we haven't already. Warn if that fails.
  17127. (continue_one_thread): s/suspend_count/suspended/. Only call
  17128. ResumeThread once. Warn if that fails.
  17129. 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
  17130. * win32-low.c (win32_wait): Don't read from the inferior when it
  17131. has already exited.
  17132. 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
  17133. * Makefile.in (win32_low_h): New variable.
  17134. (win32-low.o): Add dependency on $(win32_low_h).
  17135. (win32-arm-low.o, win32-i386-low.o): New rules.
  17136. 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
  17137. * hostio.c: Correct copyright year.
  17138. 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
  17139. * Makefile.in (OBS): Add hostio.o.
  17140. (hostio.o): New rule.
  17141. * server.h (handle_vFile): Declare.
  17142. * hostio.c: New file.
  17143. * server.c (handle_v_requests): Take packet_len and new_packet_len
  17144. for binary packets. Call handle_vFile.
  17145. (main): Update call to handle_v_requests.
  17146. 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
  17147. * linux-low.c: Include <sched.h>.
  17148. 2007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
  17149. * linux-low.c (linux_tracefork_grandchild): New.
  17150. (linux_tracefork_child): Use clone.
  17151. (linux_test_for_tracefork): Use clone; allocate and free a stack.
  17152. 2007-10-31 Joel Brobecker <brobecker@adacore.com>
  17153. * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
  17154. 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
  17155. * linux-low.c (handle_extended_wait): Handle unexpected signals.
  17156. 2007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
  17157. * inferiors.c (change_inferior_id): Delete.
  17158. (add_pid_to_list, pull_pid_from_list): New.
  17159. * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
  17160. (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
  17161. (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
  17162. (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
  17163. (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
  17164. (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
  17165. (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
  17166. (using_threads): Always set to 1.
  17167. (handle_extended_wait): New.
  17168. (add_process): Do not set TID.
  17169. (linux_create_inferior): Set must_set_ptrace_flags.
  17170. (linux_attach_lwp): Remove TID argument. Do not check using_threads.
  17171. Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
  17172. (linux_thread_alive): Rename TID argument to LWPID.
  17173. (linux_wait_for_process): Handle unknown processes. Do not use TID.
  17174. (linux_wait_for_event): Do not use TID or check using_threads. Update
  17175. call to dead_thread_notify. Call handle_extended_wait.
  17176. (linux_create_inferior): Use PTRACE_SETOPTIONS.
  17177. (send_sigstop): Delete sigstop_sent.
  17178. (wait_for_sigstop): Avoid TID.
  17179. (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
  17180. (linux_test_for_tracefork): New.
  17181. (linux_lookup_signals): Use thread_db_active and
  17182. linux_supports_tracefork_flag.
  17183. (initialize_low): Use thread_db_active and linux_test_for_tracefork.
  17184. * linux-low.h (get_process_thread): Avoid TID.
  17185. (struct process_ifo): Move thread_known and tid to the end. Remove
  17186. sigstop_sent.
  17187. (linux_attach_lwp, thread_db_init): Update prototypes.
  17188. * server.h (change_inferior_id): Delete prototype.
  17189. (add_pid_to_list, pull_pid_from_list): New prototypes.
  17190. * thread-db.c (thread_db_use_events): New.
  17191. (find_first_thread): Rename to...
  17192. (find_one_thread): ...this. Update callers and messages. Do not
  17193. call fatal. Check thread_db_use_events. Do not call
  17194. change_inferior_id or new_thread_notify.
  17195. (maybe_attach_thread): Update. Do not call new_thread_notify.
  17196. (thread_db_init): Set thread_db_use_events. Check use_events.
  17197. * utils.c (fatal, warning): Correct message prefix.
  17198. 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
  17199. * Makefile.in (clean): Remove new files.
  17200. (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
  17201. (powerpc-64.o, powerpc-64.c): New rules.
  17202. * configure.srv: Use alternate register sets for powerpc64-*-linux*
  17203. with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
  17204. with SPE.
  17205. * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
  17206. SPE targets.
  17207. (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
  17208. (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
  17209. (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
  17210. (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
  17211. (target_regsets): Add AltiVec and SPE register sets.
  17212. * configure.ac: Check for AltiVec and SPE.
  17213. * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
  17214. (ppc_fill_vrregset, ppc_store_vrregset): New.
  17215. (target_regsets): Add AltiVec register set.
  17216. * configure: Regenerated.
  17217. 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
  17218. * linux-low.c (O_LARGEFILE): Define.
  17219. (linux_read_memory): Use /proc/PID/mem.
  17220. * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
  17221. * configure, config.in: Regenerated.
  17222. 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
  17223. * linux-low.c (linux_wait_for_event): Do not pass signals while
  17224. single-stepping.
  17225. 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
  17226. * win32-low.c (create_process): New.
  17227. (win32_create_inferior): Use create_process instead of
  17228. CreateProcess. If create_process failed retry appending an ".exe"
  17229. suffix. Store the GetLastError result immediatelly after
  17230. create_process calls and use it on the call to error.
  17231. 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
  17232. * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
  17233. 2007-08-23 Joel Brobecker <brobecker@adacore.com>
  17234. * configure.ac: Switch license to GPLv3.
  17235. 2007-08-01 Michael Snyder <msnyder@access-company.com>
  17236. * remote-utils.c (putpkt_binary): Memory leak, free buf2.
  17237. 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
  17238. * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
  17239. typedef.
  17240. (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
  17241. (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
  17242. CloseToolhelp32Snapshot.
  17243. (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
  17244. CloseToolhelp32Snapshot.
  17245. 2007-07-27 Michael Snyder <michael.snyder@access-company.com>
  17246. * server.c (main): Check for inferior exit before main loop.
  17247. 2007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
  17248. * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
  17249. instead of on tmp_desc.
  17250. 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
  17251. Daniel Jacobowitz <dan@codesourcery.com>
  17252. * inferiors.c (all_dlls, dlls_changed, get_dll): New.
  17253. (add_thread): Minor cleanups.
  17254. (clear_inferiors): Move lower in the file. Clear the DLL
  17255. list.
  17256. (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
  17257. * remote-utils.c (prepare_resume_reply): Check dlls_changed.
  17258. (xml_escape_text): New.
  17259. * server.c (handle_query): Handle qXfer:libraries:read. Report it
  17260. for qSupported.
  17261. (handle_v_cont): Report errors.
  17262. (gdbserver_version): Update.
  17263. (main): Correct size of own_buf. Do not report initial DLL events.
  17264. * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
  17265. (unloaded_dll, xml_escape_text): New.
  17266. * win32-low.c (enum target_waitkind): Update comments.
  17267. (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
  17268. (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
  17269. (win32_EnumProcessModules, win32_GetModuleInformation)
  17270. (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
  17271. (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
  17272. (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
  17273. (win32_Module32First, win32_Module32Next, load_toolhelp)
  17274. (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
  17275. (get_child_debug_event): Handle DLL events.
  17276. (win32_wait): Likewise.
  17277. 2007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
  17278. * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
  17279. * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
  17280. 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
  17281. * win32-low.c (handle_output_debug_string): Ignore event if not
  17282. waiting.
  17283. 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
  17284. * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
  17285. 2007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
  17286. * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
  17287. 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
  17288. * inferiors.c (change_inferior_id): Add comment.
  17289. * linux-low.c (check_removed_breakpoint): Add an early
  17290. prototype. Improve debug output.
  17291. (linux_attach): Doc update.
  17292. (linux_detach_one_process, linux_detach): Clean up before releasing
  17293. each process.
  17294. (send_sigstop, wait_for_sigstop): Improve comments and debug output.
  17295. * linux-low.h (struct process_info): Doc improvement.
  17296. * mem-break.c (delete_all_breakpoints): New.
  17297. * mem-break.h (delete_all_breakpoints): New prototype.
  17298. * thread-db.c (find_first_thread): New.
  17299. (thread_db_create_event): Call it instead of
  17300. thread_db_find_new_threads. Clean up unused variables.
  17301. (maybe_attach_thread): Remove first thread handling.
  17302. (thread_db_find_new_threads): Use find_first_thread.
  17303. (thread_db_get_tls_address): Likewise.
  17304. 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
  17305. * thread-db.c (thread_db_find_new_threads): Add prototype.
  17306. (thread_db_create_event): Check for the main thread before adding
  17307. a new thread.
  17308. (maybe_attach_thread): Only enable event reporting if TID == 0.
  17309. (thread_db_get_tls_address): Check for new threads.
  17310. 2007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
  17311. * linux-low.c (linux_create_inferior): Try execv before execvp.
  17312. * spu-low.c (spu_create_inferior): Likewise.
  17313. 2007-06-13 Mike Frysinger <vapier@gentoo.org>
  17314. * linux-low.c (linux_create_inferior): Change execv to execvp.
  17315. * spu-low.c (spu_create_inferior): Likewies.
  17316. 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
  17317. * Makefile.in (clean): Clean new files instead of deleted ones.
  17318. (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
  17319. (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
  17320. rules.
  17321. * configure.srv: Specify XML files and new regformats for MIPS and
  17322. MIPS64 GNU/Linux.
  17323. * linux-mips-low.c (mips_num_regs): Set to only used registers.
  17324. (mips_regmap): Do not fetch $0. Remove unused registers. Add
  17325. an entry for the restart register.
  17326. (mips_cannot_fetch_register, mips_cannot_store_register)
  17327. (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
  17328. register names to match the XML descriptions.
  17329. (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
  17330. restart register instead of $0.
  17331. 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
  17332. Markus Deuling <deuling@de.ibm.com>
  17333. * remote-utils.c (decode_xfer_write): New function.
  17334. * server.h (decode_xfer_write): Add prototype.
  17335. * server.c (handle_query): Add PACKET_LEN argument. Support
  17336. qXfer:spu:read and qXfer:spu:write packets.
  17337. (main): Pass packet_len to handle_query.
  17338. * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
  17339. * target.h (target_ops): Add qxfer_spu.
  17340. 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
  17341. * spu-low.c (spu_proc_xfer_spu): Do not return failure when
  17342. accessing non-seekable spufs files.
  17343. 2007-05-16 Markus Deuling <deuling@de.ibm.com>
  17344. * server.c (handle_query): Add reply for qC packet.
  17345. 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
  17346. Leo Zayas <lerele@champenstudios@com>
  17347. * server.h (check_remote_input_interrupt_request): New function.
  17348. * remote_utils.c (INVALID_DESCRIPTOR): New define.
  17349. (remote_desc): Initialize with INVALID_DESCRIPTOR.
  17350. (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
  17351. (check_remote_input_interrupt_request): New function.
  17352. * server.h (check_remote_input_interrupt_request): Declare.
  17353. * win32-low.c (winapi_DebugBreakProcess,
  17354. winapi_GenerateConsoleCtrlEvent): New typedefs.
  17355. (get_child_debug_event): Lower Win32 debug event polling from 1 sec
  17356. to 250 ms.
  17357. (win32_wait): Check for remote interrupt request
  17358. with check_remote_input_interrupt_request.
  17359. (win32_request_interrupt): New function.
  17360. (win32_target_op): Set request_interrupt to win32_request_interrupt.
  17361. 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
  17362. * win32-low.c (debug_registers_changed,
  17363. debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
  17364. CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
  17365. CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
  17366. (thread_rec): Get context using the low target.
  17367. (child_add_thread): Call thread_added on the low target,
  17368. which does the same thing.
  17369. (regptr): Delete.
  17370. (do_initial_child_stuff): Remove debug registers references.
  17371. Set context using the low target. Resume threads after
  17372. setting the contexts.
  17373. (child_continue): Remove dead variable. Remove debug
  17374. registers references.
  17375. (child_fetch_inferior_registers): Go through the low target.
  17376. (do_child_store_inferior_registers): Remove.
  17377. (child_store_inferior_registers): Go through the low target.
  17378. (win32_resume): Remove debug registers references.
  17379. Set context using the low target.
  17380. (handle_exception): Change return type to void. Don't record
  17381. context here. Set status to TARGET_WAITKIND_SPURIOUS on a
  17382. first chance exception.
  17383. (get_child_debug_event): Change return type to void. Remove
  17384. goto loop. Always return after waiting for debug event.
  17385. (win32_wait): Convert to switch statement. Handle spurious
  17386. events.
  17387. * win32-i386-low.c (debug_registers_changed,
  17388. debug_registers_used): New.
  17389. (initial_stuff): Rename to ...
  17390. (i386_initial_stuff): ... this. Clear debug registers
  17391. state variables.
  17392. (store_debug_registers): Delete.
  17393. (i386_get_thread_context): New.
  17394. (load_debug_registers): Delete.
  17395. (i386_set_thread_context): New.
  17396. (i386_thread_added): New.
  17397. (single_step): Rename to ...
  17398. (i386_single_step): ... this.
  17399. (do_fetch_inferior_registers): Rename to ...
  17400. (i386_fetch_inferior_register): ... this.
  17401. (i386_store_inferior_register): New.
  17402. (the_low_target): Adapt to new interface.
  17403. * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
  17404. (arm_get_thread_context): New.
  17405. (arm_set_thread_context): New.
  17406. (regptr): New.
  17407. (do_fetch_inferior_registers): Rename to ...
  17408. (arm_fetch_inferior_register): ... this.
  17409. (arm_store_inferior_register): New.
  17410. (arm_wince_breakpoint): Reimplement as unsigned long.
  17411. (arm_wince_breakpoint_len): Define.
  17412. (the_low_target): Adapt to new interface.
  17413. * win32-low.h (target_ops): Remove regmap, store_debug_registers and
  17414. load_debug_registers. Add get_thread_context, set_thread_context,
  17415. thread_added and store_inferior_register. Rename
  17416. fetch_inferior_registers to fetch_inferior_register.
  17417. (regptr): Remove declaration.
  17418. 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
  17419. * linux-low.c (linux_detach): Change return type to int. Return 0.
  17420. * spu-low.c (spu_detach): Likewise.
  17421. 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
  17422. * target.h (target_ops): Change return type of detach to int.
  17423. Add join.
  17424. (join_inferior): New.
  17425. * server.c (main): Don't skip detach support on mingw32.
  17426. If the inferior doesn't support detaching return error.
  17427. Call join_inferior instead of using waitpid.
  17428. * linux-low.c (linux_join): New.
  17429. (linux_target_op): Add linux_join.
  17430. * spu-low.c (spu_join): New.
  17431. (spu_target_ops): Add spu_join.
  17432. * win32-low.c (win32_detach): Adapt to new interface.
  17433. Reopen current_process_handle before detaching. Issue a child
  17434. resume before detaching.
  17435. (win32_join): New.
  17436. (win32_target_op): Add win32_join.
  17437. 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
  17438. * win32-low.c (win32-attach): Fix return value.
  17439. * target.h (target_ops): Describe ATTACH return values.
  17440. 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
  17441. * win32-low.c (GETPROCADDRESS): Define.
  17442. (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
  17443. (winapi_DebugSetProcessKillOnExit): Likewise.
  17444. (win32_create_inferior): Force usage of ansi CreateProcessA.
  17445. (win32_attach): Use GETPROCADDRESS.
  17446. (win32_detach): Likewise.
  17447. 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
  17448. * win32-low.c (win32_wait): Don't use WSTOPSIG.
  17449. 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
  17450. * win32-low.c: Commit leftover changes from 2007-03-29.
  17451. 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
  17452. * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
  17453. fields short instead of int. Add explicit padding.
  17454. (i387_cache_to_fsave): Remove unnecessary casts.
  17455. (i387_fsave_to_cache): Doc fix.
  17456. (i387_cache_to_fxsave): Remove unnecessary casts and masking.
  17457. 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
  17458. * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
  17459. (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
  17460. 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
  17461. * configure.srv (arm*-*-mingw32ce*): Move near the other
  17462. arm targets.
  17463. 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
  17464. * configure.ac: Add errno checking.
  17465. (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
  17466. sys/file.h and malloc.h.
  17467. (AC_CHECK_DECLS): Add perror.
  17468. (srv_mingwce): Handle.
  17469. * configure.srv (i[34567]86-*-cygwin*): Add
  17470. win32-i386-low.o to srv_tgtobj.
  17471. (i[34567]86-*-mingw*): Likewise.
  17472. (arm*-*-mingw32ce*): Add case.
  17473. * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
  17474. HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
  17475. [__MINGW32CE__] (strerror): New function.
  17476. [__MINGW32CE__] (errno): Define to GetLastError.
  17477. [__MINGW32CE__] (COUNTOF): New macro.
  17478. (remote_open): Remove extra close call.
  17479. * mem-break.c (delete_breakpoint_at): New function.
  17480. * mem-break.h (delete_breakpoint_at): Declare.
  17481. * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
  17482. HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
  17483. [USE_WIN32API] (read, write): Add char* casts.
  17484. * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
  17485. * server.h: Include wincecompat.h on Windows CE.
  17486. [HAVE_ERRNO_H]: Check.
  17487. (perror): Declare if not declared.
  17488. * utils.c: Add stdlib.h, errno.h and malloc.h includes.
  17489. (perror_with_name): Remove errno declaration.
  17490. * wincecompat.h: New.
  17491. * wincecompat.c: New.
  17492. * win32-low.h: New.
  17493. * win32-arm-low.c: New.
  17494. * win32-i386-low.c: New.
  17495. (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
  17496. (OUTMSG2): Make it safe.
  17497. (_T): New macro.
  17498. (COUNTOF): New macro.
  17499. (NUM_REGS): Get it from the low target.
  17500. (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
  17501. CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
  17502. (thread_rec): Let low target handle debug registers.
  17503. (child_add_thread): Likewise.
  17504. (child_init_thread_list): Likewise.
  17505. (continue_one_thread): Likewise.
  17506. (regptr): New.
  17507. (do_child_fetch_inferior_registers): Move to ...
  17508. * win32-i386-low.c: ... here, and rename to ...
  17509. (do_fetch_inferior_registers): ... this.
  17510. * win32-low.c (child_fetch_inferior_registers):
  17511. Go through the low target.
  17512. (do_child_store_inferior_registers): Use regptr.
  17513. (strwinerror): New function.
  17514. (win32_create_inferior): Handle Windows CE.
  17515. Use strwinerror instead of strerror on Windows error
  17516. codes. Add program to the error output.
  17517. Don't close the main thread handle on Windows CE.
  17518. (win32_attach): Use coredll.dll on Windows CE.
  17519. (win32_kill): Close current process and current
  17520. thread handles.
  17521. (win32_detach): Use coredll.dll on Windows CE.
  17522. (win32_resume): Let low target handle debug registers, and
  17523. step request.
  17524. (handle_exception): Add/Remove initial breakpoint. Avoid
  17525. non-existant WSTOPSIG on Windows CE.
  17526. (win32_read_inferior_memory): Cast to remove warning.
  17527. (win32_arch_string): Go through the low target.
  17528. (initialize_low): Call set_breakpoint_data with the low
  17529. target's breakpoint.
  17530. * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
  17531. FOP_REGNUM, mappings): Move to ...
  17532. * win32-i386-low.c: ... here.
  17533. * win32-low.c (win32_thread_info): Move to ...
  17534. * win32-low.h: ... here.
  17535. * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
  17536. win32-arm-low.c and wincecompat.c.
  17537. (all:): Add $EXEEXT.
  17538. (install-only:): Likewise.
  17539. (gdbserver:): Likewise.
  17540. (gdbreplay:): Likewise.
  17541. * config.in: Regenerate.
  17542. * configure: Regenerate.
  17543. 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
  17544. * win32-low.c: Rename typedef thread_info to
  17545. win32_thread_info throughout.
  17546. 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
  17547. * win32-i386-low.c: Rename to ...
  17548. * win32-low.c: ... this.
  17549. * configure.srv: Replace win32-i386-low.o with win32-low.o.
  17550. * Makefile.in: Likewise.
  17551. 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
  17552. * remote-utils.c (monitor_output): Constify msg parameter.
  17553. * server.h (monitor_output): Likewise.
  17554. * win32-i386-low.c (handle_output_debug_string): New.
  17555. (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
  17556. handle_output_debug_string.
  17557. (get_child_debug_event): Likewise.
  17558. 2007-03-27 Mat Hostetter <mat@lcs.mit.edu>
  17559. * server.c (main): Correct strtoul check.
  17560. 2007-03-27 Jon Ringle <jon@ringle.org>
  17561. * linux-low.c: Check __ARCH_HAS_MMU__ also.
  17562. 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
  17563. * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
  17564. 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
  17565. * terminal.h: Check HAVE_SGTTY_H.
  17566. 2007-02-27 Mat Hostetter <mat@lcs.mit.edu>
  17567. * remote-utils.c (remote_open): Print out the assigned port number.
  17568. 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
  17569. * remote-utils.c (monitor_output): New function.
  17570. * server.c (debug_threads): Define here.
  17571. (monitor_show_help): New function.
  17572. (handle_query): Handle qRcmd.
  17573. (main): Do not handle 'd' packet.
  17574. * server.h (debug_threads, remote_debug, monitor_output): Declare.
  17575. * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
  17576. of debug_threads.
  17577. 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
  17578. * Makefile.in (EXEEXT): New.
  17579. (clean): Use $(EXEEXT).
  17580. 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
  17581. * target.h (target_ops): Rename send_signal to request_interrupt,
  17582. and remove enum target_signal parameter.
  17583. * linux-low.c (linux_request_interrupt): Rename from
  17584. linux_send_signal, and always send SIGINT.
  17585. * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
  17586. and always send SIGINT.
  17587. * remote-utils.c (putpkt_binary): Call request_interrupt, instead
  17588. of send_signal.
  17589. (input_interrupt): Likewise.
  17590. 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
  17591. * server.c (get_features_xml): Check if target implemented
  17592. arch_string.
  17593. * win32-i386-low.c (win32_arch_string): New.
  17594. (win32_target_ops): Add win32_arch_string as arch_string member.
  17595. 2007-02-22 Markus Deuling <deuling@de.ibm.com>
  17596. * spu-low.c (spu_arch_string): New.
  17597. (spu_target_ops): Add spu_arch_string.
  17598. 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
  17599. * remote-utils.c: Remove HAVE_TERMINAL_H check.
  17600. * configure.ac: Do not check for terminal.h.
  17601. * configure, config.in: Regenerated.
  17602. 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
  17603. * Makefile.in (OBS): Add $(XML_BUILTIN).
  17604. (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
  17605. (clean): Update.
  17606. (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
  17607. (arm-with-iwmmxt.c): New.
  17608. * config.in, configure: Regenerate.
  17609. * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
  17610. srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
  17611. * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
  17612. (arm*-*-linux*): Add iWMMXt and regset support.
  17613. * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
  17614. (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
  17615. (arm_store_wmmxregset, target_regsets): New.
  17616. * server.c (get_features_xml): Take annex argument. Check builtin
  17617. XML documents.
  17618. (handle_query): Handle multiple annexes.
  17619. 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
  17620. * remote-utils.c [USE_WIN32API] (read, write): Define.
  17621. (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
  17622. write.
  17623. 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
  17624. * linux-i386-low.c (the_low_target): Set arch_string.
  17625. * linux-x86-64-low.c (the_low_target): Likewise.
  17626. * linux-low.c (linux_arch_string): New.
  17627. (linux_target_ops): Add it.
  17628. * linux-low.h (struct linux_target_ops): Add arch_string.
  17629. * server.c (write_qxfer_response): Use const void * for DATA.
  17630. (get_features_xml): New.
  17631. (handle_query): Handle qXfer:features:read. Report it for qSupported.
  17632. * target.h (struct target_ops): Add arch_string method.
  17633. 2007-01-03 Denis Pilat <denis.pilat@st.com>
  17634. Daniel Jacobowitz <dan@codesourcery.com>
  17635. * linux-low.c (linux_kill): Handle being called with no threads.
  17636. * win32-i386-low.c (win32_kill): Likewise.
  17637. (get_child_debug_event): Clear current_process_handle.
  17638. 2006-12-30 Denis PILAT <denis.pilat@st.com>
  17639. Daniel Jacobowitz <dan@codesourcery.com>
  17640. * remote-utils.c (remote_open): Check the type of specified
  17641. serial port devices before opening them.
  17642. * server.c (main): Kill the inferior if an error occurs during
  17643. the first remote_open.
  17644. 2006-12-05 Markus Deuling <deuling@de.ibm.com>
  17645. * README: Update supported targets.
  17646. 2006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
  17647. * Makefile.in (clean): Remove reg-mips64.c.
  17648. (reg-mips64.c, reg-mips64.o): New rules.
  17649. * configure.srv: Handle mips64. Include regset support for mips.
  17650. * linux-mips-low.c (union mips_register): New.
  17651. (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
  17652. (mips_breakpoint, mips_breakpoint_at): Use int.
  17653. (mips_collect_register, mips_supply_register)
  17654. (mips_collect_register_32bit, mips_supply_register_32bit)
  17655. (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
  17656. (mips_store_fpregset, target_regsets): New.
  17657. * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
  17658. 2006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
  17659. * configure.srv: Add target "spu*-*-*".
  17660. * Makefile.in (clean): Remove reg-spu.c.
  17661. (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
  17662. * spu-low.c: New file.
  17663. 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
  17664. * configure.ac: Correct td_thr_tls_get_addr test.
  17665. * configure: Regenerated.
  17666. 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
  17667. * linux-low.c (linux_wait_for_event): Reformat. Use the
  17668. pass_signals array.
  17669. * remote-utils.c (decode_address_to_semicolon): New.
  17670. * server.c (pass_signals, handle_general_set): New.
  17671. (handle_query): Mention QPassSignals for qSupported.
  17672. (main): Call handle_general_set.
  17673. * server.h (pass_signals, decode_address_to_semicolon): New.
  17674. 2006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
  17675. * server.c (handle_query): Correct error handling for read_auxv.
  17676. 2005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
  17677. * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
  17678. and srv_linux_thread_db to yes.
  17679. * linux-s390-low.c (s390_fill_gregset): New function.
  17680. (target_regsets): Define data structure.
  17681. 2006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
  17682. * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
  17683. * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
  17684. * config.in, configure: Regenerated.
  17685. * inferiors.c (gdb_id_to_thread): New function.
  17686. (gdb_id_to_thread_id): Use it.
  17687. * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
  17688. * linux-low.h (struct process_info): Add th member.
  17689. (thread_db_get_tls_address): New prototype.
  17690. * remote-utils.c (decode_address): Make non-static.
  17691. * server.c (handle_query): Handle qGetTLSAddr.
  17692. * server.h (gdb_id_to_thread, decode_address): New prototypes.
  17693. * target.h (struct target_ops): Add get_tls_address.
  17694. * thread-db.c (maybe_attach_thread): Save the thread handle.
  17695. (thread_db_get_tls_address): New.
  17696. 2006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
  17697. * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
  17698. (linux_resume_one_process): Take a siginfo_t *. Update all
  17699. callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
  17700. (struct pending_signals): Add a siginfo_t.
  17701. (linux_wait_for_process): Always set last_status.
  17702. (linux_wait_for_event): Use PTRACE_GETSIGINFO.
  17703. (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
  17704. * linux-low.h (struct process_info): Add last_status.
  17705. 2006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
  17706. * remote-utils.c (try_rle): New function.
  17707. (putpkt_binary): Use it.
  17708. 2006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
  17709. * Makefile.in (clean): Clean reg-x86-64-linux.c.
  17710. (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
  17711. * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
  17712. * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
  17713. (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
  17714. point registers.
  17715. 2006-08-08 Richard Sandiford <richard@codesourcery.com>
  17716. * server.c (terminal_fd): New variable.
  17717. (old_foreground_pgrp): Likewise.
  17718. (restore_old_foreground_pgrp): New function.
  17719. (start_inferior): Record the terminal file descriptor in terminal_fd
  17720. and its original foreground group in old_foreground_pgrp. Register
  17721. restore_old_foreground_pgrp with atexit().
  17722. 2006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
  17723. * server.c (handle_query): Correct qPart to qXfer.
  17724. 2006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
  17725. * configure.ac: Check for more headers which are missing on
  17726. Windows. Automatically supply -lwsock32 and USE_WIN32API.
  17727. * configure.srv: Add Cygwin and mingw32.
  17728. * remote-utils.c: Don't include headers unconditionally which
  17729. are missing on mingw32. Include <winsock.h> for mingw32.
  17730. (remote_open): Adjust for mingw32 support. Flush
  17731. standard error after writing to it.
  17732. (remote_close, putpkt_binary, input_interrupt, block_async_io)
  17733. (unblock_async_io, enable_async_io, disable_async_io)
  17734. (readchar, getpkt): Update for Winsock support.
  17735. (prepare_resume_reply): Expect a protocol signal number.
  17736. * server.c: Disable <sys/wait.h> on mingw32.
  17737. (start_inferior): Adjust for mingw32 support. Flush
  17738. standard error after writing to it.
  17739. (attach_inferior): Likewise. Use protocol signal
  17740. numbers.
  17741. (main): Skip 'D' packet on mingw32. Use protocol signal numbers
  17742. and names.
  17743. * win32-i386-low.c: New file.
  17744. * Makefile.in (XM_CLIBS): Set.
  17745. (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
  17746. (win32-i386-low.o): New dependency rule.
  17747. * linux-low.c (linux_wait): Use target signal numbers.
  17748. * target.h (struct target_ops): Doc fix.
  17749. * server.h (target_signal_to_name): New prototype.
  17750. * gdbreplay.c: Don't include headers unconditionally which
  17751. are missing on mingw32. Include <winsock.h> for mingw32.
  17752. (remote_close, remote_open): Adjust for Winsock support.
  17753. * configure, config.in: Regenerated.
  17754. 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
  17755. * server.c (decode_xfer_read, write_qxfer_response): New.
  17756. (handle_query): Take a packet length argument. Handle
  17757. qXfer:auxv:read instead of qPart:auxv:read. Mention it in
  17758. the qSupported response.
  17759. (main): Update call to handle_query.
  17760. 2006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
  17761. * remote-utils.c (remote_escape_output, remote_unescape_input): New.
  17762. (putpkt_binary): Renamed from putpkt and adjusted for binary
  17763. data.
  17764. (putpkt): New wrapper for putpkt_binary.
  17765. (readchar): Don't mask off the high bit.
  17766. (decode_X_packet): New function.
  17767. * server.c (main): Call putpkt_binary if a handler sets the packet
  17768. length. Save the length of the incoming packet. Handle 'X'.
  17769. * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
  17770. 2006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
  17771. * server.c (handle_query): Handle qSupported.
  17772. 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
  17773. * remote-utils.c (all_symbols_looked_up): New variable.
  17774. (look_up_one_symbol): Check it.
  17775. * server.h (look_up_one_symbol): New declaration.
  17776. * thread-db.c (thread_db_init): Set all_symbols_looked_up.
  17777. 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
  17778. * Makefile.in (linux-arm-low.o): Update dependencies.
  17779. * linux-arm-low.c: Include "gdb_proc_service.h".
  17780. (PTRACE_GET_THREAD_AREA): Define.
  17781. (ps_get_thread_area): New function.
  17782. 2006-05-09 Nathan Sidwell <nathan@codesourcery.com>
  17783. * configure.srv (m68k*-*-uclinux*): New target.
  17784. * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
  17785. (linux_resume_one_process): Remove extraneous cast.
  17786. (linux_read_offsets): New.
  17787. (linux_target_op): Add linux_read_offsets on mmuless systems.
  17788. * server.c (handle_query): Add qOffsets logic.
  17789. * target.h (struct target_ops): Add read_offsets.
  17790. 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
  17791. * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
  17792. (PTRACE_GET_THREAD_AREA): Define.
  17793. (ps_get_thread_area): New function.
  17794. * Makefile.in (linux-i386-low.o, linux-mips-low.o)
  17795. (linux-x86-64-low.o): Update.
  17796. 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
  17797. * configure.ac: Remove checks for prfpregset_t.
  17798. * gdb_proc_service.h: New file.
  17799. * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
  17800. new "gdb_proc_service.h".
  17801. * proc-service.c: Likewise.
  17802. (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
  17803. (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
  17804. * Makefile.in (gdb_proc_service_h): Updated.
  17805. * configure, config.in: Regenerated.
  17806. 2006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
  17807. * remote-utils.c (prepare_resume_reply): Move declaration
  17808. of gdb_id_from_wait to the top of the block.
  17809. 2006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
  17810. * linux-low.c (regsets_store_inferior_registers): Read the regset
  17811. from the target before filling it.
  17812. 2006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
  17813. * server.c (attach_inferior): Return SIGTRAP for a successful
  17814. attach.
  17815. 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
  17816. * Makefile.in (OBS): Add version.o.
  17817. (STAGESTUFF): Delete.
  17818. (version.o): Add dependencies.
  17819. (version.c): Replace rule.
  17820. (clean): Remove version.c.
  17821. * server.c (gdbserver_version): New.
  17822. (gdbserver_usage): Use printf.
  17823. (main): Handle --version and --help.
  17824. * server.h (version, host_name): Add declarations.
  17825. 2005-12-23 Eli Zaretskii <eliz@gnu.org>
  17826. * linux-arm-low.c:
  17827. * linux-arm-low.c:
  17828. * inferiors.c:
  17829. * i387-fp.h:
  17830. * i387-fp.c:
  17831. * gdbreplay.c:
  17832. * regcache.c:
  17833. * proc-service.c:
  17834. * mem-break.h:
  17835. * mem-break.c:
  17836. * linux-x86-64-low.c:
  17837. * linux-sh-low.c:
  17838. * linux-s390-low.c:
  17839. * linux-ppc64-low.c:
  17840. * linux-ppc-low.c:
  17841. * linux-mips-low.c:
  17842. * linux-m68k-low.c:
  17843. * linux-m32r-low.c:
  17844. * linux-low.h:
  17845. * linux-low.c:
  17846. * linux-ia64-low.c:
  17847. * linux-i386-low.c:
  17848. * linux-crisv32-low.c:
  17849. * thread-db.c:
  17850. * terminal.h:
  17851. * target.h:
  17852. * target.c:
  17853. * server.h:
  17854. * server.c:
  17855. * remote-utils.c:
  17856. * regcache.h:
  17857. * utils.c:
  17858. * Makefile.in:
  17859. * configure.ac:
  17860. * gdbserver.1: Add (C) after Copyright. Update the FSF
  17861. address.
  17862. 2005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
  17863. * linux-arm-low.c (arm_eabi_breakpoint): New variable.
  17864. (arm_breakpoint_at): Recognize both breakpoints.
  17865. (the_low_target): Use the correct breakpoint instruction.
  17866. 2005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
  17867. * configure.srv (x86_64-*-linux*): Turn on thread_db support.
  17868. * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
  17869. (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
  17870. (the_low_target): Update.
  17871. 2005-10-25 Andreas Schwab <schwab@suse.de>
  17872. * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
  17873. * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
  17874. (ia64_num_regs): Reduce to 462.
  17875. 2005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
  17876. * acinclude.m4: Correct quoting.
  17877. * aclocal.m4: Regenerated.
  17878. Suggested by SZOKOVACS Robert <szo@ies.hu>:
  17879. * thread-db.c (thread_db_err_str): Handle TD_VERSION.
  17880. (thread_db_init): Call thread_db_err_str.
  17881. * configure.ac: Check for TD_VERSION.
  17882. * config.in, configure: Regenerated.
  17883. 2005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
  17884. * server.h (error, fatal, warning): Add ATTR_FORMAT.
  17885. 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
  17886. * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
  17887. is not available. Define HAVE_PTRACE_GETREGS if it is.
  17888. * config.in, configure: Regenerated.
  17889. * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
  17890. * linux-i386-low.c, linux-m68k-low.c: Update to use
  17891. HAVE_PTRACE_GETREGS.
  17892. * linux-low.c (regsets_fetch_inferior_registers)
  17893. (regsets_store_inferior_registers): Only return 0 if we processed
  17894. GENERAL_REGS.
  17895. * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
  17896. * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
  17897. 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
  17898. * inferiors.c (struct thread_info): Add gdb_id.
  17899. (add_thread): Add gdb_id argument.
  17900. (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
  17901. * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
  17902. calls to add_thread.
  17903. * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
  17904. * server.c (handle_query): Use thread_to_gdb_id.
  17905. (handle_v_cont, main): Use gdb_id_to_thread_id.
  17906. * server.h (add_thread): Update prototype.
  17907. (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
  17908. prototypes.
  17909. 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
  17910. * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
  17911. left-padded registers.
  17912. * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
  17913. * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
  17914. 2005-07-01 Steve Ellcey <sje@cup.hp.com>
  17915. * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
  17916. * configure: Regenerate.
  17917. * config.in: Regenerate.
  17918. * server.h (NEED_DECLARATION_STRERROR):
  17919. Replace with !HAVE_DECL_STRERROR.
  17920. 2005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
  17921. * linux-low.c (linux_wait, linux_send_signal): Don't test
  17922. an unsigned long variable for > 0 if it could be MAX_ULONG.
  17923. * server.c (myresume): Likewise.
  17924. * target.c (set_desired_inferior): Likewise.
  17925. 2005-06-13 Mark Kettenis <kettenis@gnu.org>
  17926. * configure.ac: Simplify and improve check for socklen_t.
  17927. * configure, config.in: Regenerate.
  17928. 2005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
  17929. * acconfig.h: Remove.
  17930. * configure.ac: Add a test for socklen_t. Use three-argument
  17931. AC_DEFINE throughout.
  17932. * config.in: Regenerated using autoheader 2.59.
  17933. * configure: Regenerated.
  17934. * gdbreplay.c (socklen_t): Provide a default.
  17935. (remote_open): Use socklen_t.
  17936. * remote-utils.c (socklen_t): Provide a default.
  17937. (remote_open): Use socklen_t.
  17938. (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
  17939. unsigned char.
  17940. * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
  17941. char for buffers.
  17942. * linux-low.c (linux_read_memory, linux_write_memory)
  17943. (linux_read_auxv): Likewise.
  17944. * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
  17945. (check_mem_write): Likewise.
  17946. * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
  17947. Likewise.
  17948. * regcache.c (struct inferior_rgcache_data, registers_to_string)
  17949. (registers_from_string, register_data): Likewise.
  17950. * server.c (handle_query, main): Likewise.
  17951. * server.h (convert_ascii_to_int, convert_int_to_ascii)
  17952. (decode_M_packet): Likewise.
  17953. * target.c (read_inferior_memory, write_inferior_memory): Likewise.
  17954. * target.h (struct target_ops): Update read_memory, write_memory,
  17955. and read_auxv.
  17956. (read_inferior_memory, write_inferior_memory): Update.
  17957. * linux-low.h (struct linux_target_ops): Change type of breakpoint
  17958. to unsigned char *.
  17959. * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
  17960. linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
  17961. linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
  17962. linux-s390-low.c, linux-sh-low.c: Update for changes in
  17963. read_inferior_memory and the_low_target->breakpoint.
  17964. 2005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
  17965. * Makefile.in (SFILES): Add linux-ppc64-low.c.
  17966. (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
  17967. * configure.srv: Add powerpc64-*-linux*.
  17968. * linux-ppc64-low.c: New file.
  17969. 2005-05-23 Orjan Friberg <orjanf@axis.com>
  17970. * linux-cris-low.c: New file with support for CRIS.
  17971. * linux-crisv32-low.c: Ditto for CRISv32.
  17972. * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
  17973. (clean): Add reg-cris.c and reg-crisv32.c.
  17974. Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
  17975. reg-crisv32.o, and reg-crisv32.c to make rules.
  17976. * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
  17977. recognized targets.
  17978. 2005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
  17979. * linux-low.c (fetch_register): Ensure buffer size is a multiple
  17980. of sizeof (PTRACE_XFER_TYPE).
  17981. (usr_store_inferior_registers): Likewise. Zero out excess bytes.
  17982. 2005-05-12 Orjan Friberg <orjanf@axis.com>
  17983. * target.h (struct target_ops): Add insert_watchpoint,
  17984. remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
  17985. pointers for hardware watchpoint support.
  17986. * linux-low.h (struct linux_target_ops): Ditto.
  17987. * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
  17988. (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
  17989. to linux_target_ops.
  17990. * remote-utils.c (prepare_resume_reply): Add watchpoint information to
  17991. reply packet.
  17992. * server.c (main): Recognize 'Z' and 'z' packets.
  17993. 2005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
  17994. * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
  17995. (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
  17996. (the_low_target): Add new members.
  17997. 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
  17998. * proc-service.c (ps_lgetregs): Search all_processes instead of
  17999. all_threads.
  18000. 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
  18001. * server.c (start_inferior): Change return type to int.
  18002. (attach_inferior): Change sigptr to int *.
  18003. (handle_v_cont, handle_v_requests): Change signal to int *.
  18004. (main): Change signal to int.
  18005. 2005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
  18006. * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
  18007. * configure.srv: Add m32r*-*-linux*.
  18008. * linux-m32r-low.c: New file.
  18009. 2005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
  18010. * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
  18011. 2005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
  18012. * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
  18013. Take unsigned long arguments for PIDs.
  18014. * linux-low.c (add_process, linux_attach_lwp, linux_attach)
  18015. (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
  18016. (wait_for_sigstop, linux_resume_one_process)
  18017. (regsets_fetch_inferior_registers, linux_send_signal)
  18018. (linux_read_auxv): Likewise. Update the types of variables holding
  18019. PIDs. Update format string specifiers.
  18020. * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
  18021. * remote-utils.c (prepare_resume_reply): Likewise.
  18022. * server.c (cont_thread, general_thread, step_thread)
  18023. (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
  18024. unsigned long.
  18025. (handle_query): Update format specifiers.
  18026. (handle_v_cont, main): Use strtoul for thread IDs.
  18027. * server.h (struct inferior_list_entry): Use unsigned long for ID.
  18028. (add_thread, find_inferior_id, change_inferior_id, cont_thread)
  18029. (general_thread, step_thread, thread_from_wait)
  18030. (old_thread_from_wait): Update.
  18031. * target.h (struct thread_resume): Use unsigned long for THREAD.
  18032. (struct target_ops): Use unsigned long for arguments to attach and
  18033. thread_alive.
  18034. 2005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
  18035. * acinclude.m4: Include bfd/bfd.m4 directly.
  18036. * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
  18037. <agriffis@toolchain.org>.
  18038. * aclocal.m4, configure: Regenerated.
  18039. 2005-01-07 Andrew Cagney <cagney@gnu.org>
  18040. * configure.ac: Rename configure.in, require autoconf 2.59.
  18041. * configure: Re-generate.
  18042. 2004-12-08 Daniel Jacobowitz <dan@debian.org>
  18043. * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
  18044. LIBS when finished.
  18045. * aclocal.m4: Regenerated.
  18046. * configure: Regenerated.
  18047. 2004-11-21 Andreas Schwab <schwab@suse.de>
  18048. * linux-m68k-low.c (m68k_num_gregs): Define.
  18049. (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
  18050. (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
  18051. (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
  18052. (m68k_breakpoint_at): New. Add to the_low_target.
  18053. * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
  18054. srv_linux_thread_db to yes.
  18055. 2004-10-20 Joel Brobecker <brobecker@gnat.com>
  18056. * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
  18057. (ARCH_SET_FS): Likewise.
  18058. (ARCH_GET_FS): Likewise.
  18059. (ARCH_GET_GS): Likewise.
  18060. 2004-10-16 Daniel Jacobowitz <dan@debian.org>
  18061. * linux-i386-low.c (ps_get_thread_area): New.
  18062. * linux-x86-64-low.c (ps_get_thread_area): New.
  18063. * linux-low.c: Include <sys/syscall.h>.
  18064. (linux_kill_one_process): Don't kill the first thread here.
  18065. (linux_kill): Kill the first thread here.
  18066. (kill_lwp): New function.
  18067. (send_sigstop, linux_send_signal): Use it.
  18068. * proc-service.c: Clean up #ifdefs.
  18069. (fpregset_info): Delete.
  18070. (ps_lgetregs): Update and enable implementation.
  18071. (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
  18072. implementations.
  18073. * remote-utils.c (struct sym_cache, symbol_cache): New.
  18074. (input_interrupt): Print a clearer message.
  18075. (async_io_enabled): New variable.
  18076. (enable_async_io, disable_async_io): Use it. Update comments.
  18077. (look_up_one_symbol): Use the symbol cache.
  18078. * thread-db.c (thread_db_look_up_symbols): New function.
  18079. (thread_db_init): Update comments. Call thread_db_look_up_symbols.
  18080. 2004-10-16 Daniel Jacobowitz <dan@debian.org>
  18081. * configure.in: Test for -rdynamic.
  18082. * configure: Regenerated.
  18083. * Makefile (INTERNAL_LDFLAGS): New.
  18084. (gdbserver, gdbreplay): Use it.
  18085. 2004-09-02 Andrew Cagney <cagney@gnu.org>
  18086. * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
  18087. 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
  18088. * linux-low.c (linux_wait): Clear all_processes list also.
  18089. 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
  18090. * linux-low.c: Include <errno.h>. Remove extern declaration of
  18091. errno.
  18092. 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
  18093. * gdbreplay.c, server.h, utils.c: Update copyright years.
  18094. 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
  18095. * server.c (main): Print child status or termination signal from
  18096. variable 'signal', not 'sig'.
  18097. 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
  18098. * linux-low.c (linux_read_memory): Change return type to
  18099. int. Check for and return error from ptrace().
  18100. * target.c (read_inferior_memory): Change return type to int. Pass
  18101. back return status from the_target->read_memory().
  18102. * target.h (struct target_ops): Adapt *read_memory() prototype.
  18103. Update comment.
  18104. (read_inferior_memory): Adapt prototype.
  18105. * server.c (main): Return an error packet if
  18106. read_inferior_memory() returns an error.
  18107. 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
  18108. * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
  18109. Unify with other clean targets.
  18110. 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
  18111. * server.c (handle_v_cont): Call set_desired_inferior.
  18112. 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
  18113. * remote-utils.c (prepare_resume_reply): Always supply "thread:".
  18114. 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
  18115. * linux-low.c (linux_wait): Unblock async I/O.
  18116. (linux_resume): Block and enable async I/O.
  18117. * remote-utils.c (block_async_io, unblock_async_io): New functions.
  18118. * server.h (block_async_io, unblock_async_io): Add prototypes.
  18119. 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
  18120. * remote-utils.c (remote_open): Print a status notice after
  18121. opening a TCP port.
  18122. * server.c (attach_inferior): Print a status notice after
  18123. attaching.
  18124. 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
  18125. * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
  18126. 2004-02-26 Daniel Jacobowitz <drow@mvista.com>
  18127. * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
  18128. error packet.
  18129. * server.c, target.h: Update copyright years.
  18130. 2004-02-25 Roland McGrath <roland@redhat.com>
  18131. * target.h (struct target_ops): New member `read_auxv'.
  18132. * server.c (handle_query): Handle qPart:auxv:read: query using that.
  18133. * linux-low.c (linux_read_auxv): New function.
  18134. (linux_target_ops): Initialize `read_auxv' member to that.
  18135. 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
  18136. Committed by Jim Blandy <jimb@redhat.com>.
  18137. * linux-s390-low.c (s390_num_regs): Update.
  18138. (s390_regmap): Remove control registers. Use __s390x__ predefine
  18139. instead of GPR_SIZE to distiguish s390 and s390x targets.
  18140. 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
  18141. * linux-low.c: Update copyright year.
  18142. (check_removed_breakpoint): Clear pending_is_breakpoint.
  18143. (linux_set_resume_request, linux_queue_one_thread)
  18144. (resume_status_pending_p): New functions.
  18145. (linux_continue_one_thread): Use process->resume.
  18146. (linux_resume): Only resume threads if there are no pending events.
  18147. * linux-low.h (struct process_info): Add resume request
  18148. pointer.
  18149. 2004-01-30 Daniel Jacobowitz <drow@mvista.com>
  18150. * regcache.c (new_register_cache): Clear the allocated register
  18151. buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
  18152. 2003-10-13 Daniel Jacobowitz <drow@mvista.com>
  18153. * linux-low.c (linux_resume): Take a struct thread_resume *
  18154. argument.
  18155. (linux_wait): Update call.
  18156. (resume_ptr): New static variable.
  18157. (linux_continue_one_thread): Renamed from
  18158. linux_continue_one_process. Use resume_ptr.
  18159. (linux_resume): Use linux_continue_one_thread.
  18160. * server.c (handle_v_cont, handle_v_requests): New functions.
  18161. (myresume): New function.
  18162. (main): Handle 'v' case.
  18163. * target.h (struct thread_resume): New type.
  18164. (struct target_ops): Change argument of "resume" to struct
  18165. thread_resume *.
  18166. (myresume): Delete macro.
  18167. 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
  18168. * Makefile.in (install-only): Create dest dir. Support DESTDIR.
  18169. (uninstall): Support DESTDIR.
  18170. Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
  18171. * configure.srv: Add xscale*linux copy of arm*linux entry.
  18172. 2003-07-24 Daniel Jacobowitz <drow@mvista.com>
  18173. * linux-arm-low.c (arm_reinsert_addr): New function.
  18174. (the_low_target): Add arm_reinsert_addr.
  18175. 2003-07-08 Mark Kettenis <kettenis@gnu.org>
  18176. * mem-break.c: Remove whitespace at end of file.
  18177. 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
  18178. * configure.in: Check whether we need to prototype strerror.
  18179. * server.h: Optionally prototype strerror.
  18180. * gdbreplay.c (perror_with_name): Use strerror.
  18181. * linux-low.c (linux_attach_lwp): Use strerror.
  18182. * utils.c (perror_with_name): Use strerror.
  18183. * config.in, configure: Regenerated.
  18184. 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
  18185. * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
  18186. SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
  18187. 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
  18188. * Makefile.in (SFILES): Update.
  18189. * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
  18190. low-sun3.c: Remove files.
  18191. 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
  18192. * linux-low.c: Move comment to linux_thread_alive where it belonged.
  18193. (linux_detach_one_process, linux_detach): New functions.
  18194. (linux_target_ops): Add linux_detach.
  18195. * server.c (main): Handle 'D' packet.
  18196. * target.h (struct target_ops): Add "detach" member.
  18197. (detach_inferior): Define.
  18198. 2003-06-13 Mark Kettenis <kettenis@gnu.org>
  18199. From Kelley Cook <kelleycook@wideopenwest.com>:
  18200. * configure.srv: Accept i[34567]86 variants.
  18201. 2003-06-05 Daniel Jacobowitz <drow@mvista.com>
  18202. * linux-low.c (linux_wait_for_event): Correct comment typos.
  18203. (linux_resume_one_process): Call check_removed_breakpoint.
  18204. (linux_send_signal): New function.
  18205. (linux_target_ops): Add linux_send_signal.
  18206. * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
  18207. of kill.
  18208. * target.h (struct target_ops): Add send_signal.
  18209. 2003-05-29 Jim Blandy <jimb@redhat.com>
  18210. * linux-low.c (usr_store_inferior_registers): Transfer buf in
  18211. PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
  18212. if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
  18213. away part of the register's value.
  18214. 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
  18215. * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
  18216. (linux_wait_for_event, linux_init_signals): Likewise.
  18217. 2003-03-17 Daniel Jacobowitz <drow@mvista.com>
  18218. * configure.in: Check for stdlib.h.
  18219. * configure: Regenerated.
  18220. * config.in: Regenerated.
  18221. 2003-01-04 Andreas Schwab <schwab@suse.de>
  18222. * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
  18223. 2003-01-02 Andrew Cagney <ac131313@redhat.com>
  18224. * Makefile.in: Remove obsolete code.
  18225. 2002-11-20 Daniel Jacobowitz <drow@mvista.com>
  18226. * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
  18227. defined(PT_FPR0_HI).
  18228. 2002-11-17 Stuart Hughes <seh@zee2.com>
  18229. * linux-arm-low.c (arm_num_regs): Increase.
  18230. (arm_regmap): Include status register.
  18231. 2002-11-17 Daniel Jacobowitz <drow@mvista.com>
  18232. * linux-low.c (register_addr): Remove incorrect -1 check.
  18233. 2002-08-29 Daniel Jacobowitz <drow@mvista.com>
  18234. * linux-low.c (linux_create_inferior): Call setpgid. Return
  18235. the new PID.
  18236. (unstopped_p, linux_signal_pid): Remove.
  18237. (linux_target_ops): Remove linux_signal_pid.
  18238. * remote-utils.c (putpkt, input_interrupt): Use signal_pid
  18239. global instead of target method.
  18240. * target.h (struct target_ops): Remove signal_pid. Update comment
  18241. for create_inferior.
  18242. * server.c (signal_pid): New variable.
  18243. (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
  18244. gdbserver. Set the child to be the foreground process group.
  18245. (attach_inferior): Set signal_pid.
  18246. 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
  18247. * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
  18248. 2002-08-20 Jim Blandy <jimb@redhat.com>
  18249. * Makefile.in (LDFLAGS): Allow the configure script to establish a
  18250. default for this.
  18251. 2002-08-01 Andrew Cagney <cagney@redhat.com>
  18252. * Makefile.in: Make chill references obsolete.
  18253. 2002-07-24 Kevin Buettner <kevinb@redhat.com>
  18254. * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
  18255. * configure: Regenerate.
  18256. * config.in: Regenerate.
  18257. 2002-07-09 David O'Brien <obrien@FreeBSD.org>
  18258. * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
  18259. (perror_with_name, remote_close, remote_open, expect, play): Static.
  18260. 2002-07-04 Michal Ludvig <mludvig@suse.cz>
  18261. * linux-x86-64-low.c (x86_64_regmap): Make it an array of
  18262. byte offsets instead of an array of indexes.
  18263. (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
  18264. 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
  18265. * regcache.c: Add comment.
  18266. 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
  18267. * thread-db.c: New file.
  18268. * proc-service.c: New file.
  18269. * acinclude.m4: New file.
  18270. * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
  18271. proc-service.o, and thread-db.o.
  18272. (linux-low.o): Add USE_THREAD_DB.
  18273. * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
  18274. HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
  18275. * aclocal.m4: Regenerated.
  18276. * config.in: Regenerated.
  18277. * configure: Regenerated.
  18278. * configure.in: Check for proc_service.h, sys/procfs.h,
  18279. thread_db.h, and linux/elf.h headrs.
  18280. Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
  18281. PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
  18282. Check for -lthread_db and thread support.
  18283. * configure.srv: Enable thread_db support for ARM, i386, MIPS,
  18284. PowerPC, and SuperH.
  18285. * i387-fp.c: Constify arguments.
  18286. * i387-fp.h: Likewise.
  18287. * inferiors.c: (struct thread_info): Renamed from
  18288. `struct inferior_info'. Remove PID member. Use generic inferior
  18289. list header. All uses updated.
  18290. (inferiors, signal_pid): Removed.
  18291. (all_threads): New variable.
  18292. (get_thread): Define.
  18293. (add_inferior_to_list): New function.
  18294. (for_each_inferior): New function.
  18295. (change_inferior_id): New function.
  18296. (add_inferior): Removed.
  18297. (remove_inferior): New function.
  18298. (add_thread): New function.
  18299. (free_one_thread): New function.
  18300. (remove_thread): New function.
  18301. (clear_inferiors): Use for_each_inferior and free_one_thread.
  18302. (find_inferior): New function.
  18303. (find_inferior_id): New function.
  18304. (inferior_target_data): Update argument type.
  18305. (set_inferior_target_data): Likewise.
  18306. (inferior_regcache_data): Likewise.
  18307. (set_inferior_regcache_data): Likewise.
  18308. * linux-low.c (linux_bp_reinsert): Remove.
  18309. (all_processes, stopping_threads, using_thrads)
  18310. (struct pending_signals, debug_threads, pid_of): New.
  18311. (inferior_pid): Replace with macro.
  18312. (struct inferior_linux_data): Remove.
  18313. (get_stop_pc, add_process): New functions.
  18314. (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
  18315. Use add_process and add_thread.
  18316. (linux_attach_lwp): New function, based on old linux_attach. Use
  18317. add_process and add_thread. Set stop_expected for new threads.
  18318. (linux_attach): New function.
  18319. (linux_kill_one_process): New function.
  18320. (linux_kill): Kill all LWPs.
  18321. (linux_thread_alive): Use find_inferior_id.
  18322. (check_removed_breakpoints, status_pending_p): New functions.
  18323. (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
  18324. Update. Use WNOHANG. Wait for cloned processes also. Update process
  18325. struct for the found process.
  18326. (linux_wait_for_event): New function.
  18327. (linux_wait): Use it. Support LWPs.
  18328. (send_sigstop, wait_for_sigstop, stop_all_processes)
  18329. (linux_resume_one_process, linux_continue_one_process): New functions.
  18330. (linux_resume): Support LWPs.
  18331. (REGISTER_RAW_SIZE): Remove.
  18332. (fetch_register): Use register_size instead. Call supply_register.
  18333. (usr_store_inferior_registers): Likewise. Call collect_register.
  18334. Fix recursive case.
  18335. (regsets_fetch_inferior_registers): Improve error message.
  18336. (regsets_store_inferior_registers): Add debugging.
  18337. (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
  18338. (unstopped_p, linux_signal_pid): New functions.
  18339. (linux_target_ops): Add linux_signal_pid.
  18340. (linux_init_signals): New function.
  18341. (initialize_low): Call it. Initialize using_threads.
  18342. * regcache.c (inferior_regcache_data): Add valid
  18343. flag.
  18344. (get_regcache): Fetch registers lazily. Add fetch argument
  18345. and update all callers.
  18346. (regcache_invalidate_one, regcache_invalidate): New
  18347. functions.
  18348. (new_register_cache): Renamed from create_register_cache.
  18349. Return the new regcache.
  18350. (free_register_cache): Change argument to a void *.
  18351. (registers_to_string, registers_from_string): Call get_regcache
  18352. with fetch flag set.
  18353. (register_data): Make static. Pass fetch flag to get_regcache.
  18354. (supply_register): Call get_regcache with fetch flag clear.
  18355. (collect_register): Call get_regcache with fetch flag set.
  18356. (collect_register_as_string): New function.
  18357. * regcache.h: Update.
  18358. * remote-utils.c (putpkt): Flush after debug output and use
  18359. stderr.
  18360. Handle input interrupts while waiting for an ACK.
  18361. (input_interrupt): Use signal_pid method.
  18362. (getpkt): Flush after debug output and use stderr.
  18363. (outreg): Use collect_register_as_string.
  18364. (new_thread_notify, dead_thread_notify): New functions.
  18365. (prepare_resume_reply): Check using_threads. Set thread_from_wait
  18366. and general_thread.
  18367. (look_up_one_symbol): Flush after debug output.
  18368. * server.c (step_thread, server_waiting): New variables.
  18369. (start_inferior): Don't use signal_pid. Update call to mywait.
  18370. (attach_inferior): Update call to mywait.
  18371. (handle_query): Handle qfThreadInfo and qsThreadInfo.
  18372. (main): Don't fetch/store registers explicitly. Use
  18373. set_desired_inferior. Support proposed ``Hs'' packet. Update
  18374. calls to mywait.
  18375. * server.h: Update.
  18376. (struct inferior_list, struct_inferior_list_entry): New.
  18377. * target.c (set_desired_inferior): New.
  18378. (write_inferior_memory): Constify.
  18379. (mywait): New function.
  18380. * target.h: Update.
  18381. (struct target_ops): New signal_pid method.
  18382. (mywait): Removed macro, added prototype.
  18383. * linux-low.h (regset_func): Removed.
  18384. (regset_fill_func, regset_store_func): New.
  18385. (enum regset_type): New.
  18386. (struct regset_info): Add type field. Use new operation types.
  18387. (struct linux_target_ops): stop_pc renamed to get_pc.
  18388. Add decr_pc_after_break and breakpoint_at.
  18389. (get_process, get_thread_proess, get_process_thread)
  18390. (strut process_info, all_processes, linux_attach_lwp)
  18391. (thread_db_init): New.
  18392. * linux-arm-low.c (arm_get_pc, arm_set_pc,
  18393. arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
  18394. (the_low_target): Add new members.
  18395. * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
  18396. (i386_store_fpxregset): Constify.
  18397. (target_regsets): Add new kind identifier.
  18398. (i386_get_pc): Renamed from i386_stop_pc. Simplify.
  18399. (i386_set_pc): Add debugging.
  18400. (i386_breakpoint_at): New function.
  18401. (the_low_target): Add new members.
  18402. * linux-mips-low.c (mips_get_pc, mips_set_pc)
  18403. (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
  18404. (mips_breakpoint_at): New.
  18405. (the_low_target): Add new members.
  18406. * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
  18407. (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
  18408. (the_low_target): Add new members.
  18409. * linux-sh-low.c (sh_get_pc, sh_set_pc)
  18410. (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
  18411. (the_low_target): Add new members.
  18412. * linux-x86-64-low.c (target_regsets): Add new kind
  18413. identifier.
  18414. 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
  18415. From Martin Pool <mbp@samba.org>:
  18416. * server.c (gdbserver_usage): New function.
  18417. (main): Call it.
  18418. 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
  18419. * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
  18420. stop_at -> stop_pc.
  18421. 2002-05-04 Andrew Cagney <ac131313@redhat.com>
  18422. * Makefile.in: Remove obsolete code.
  18423. 2002-04-24 Michal Ludvig <mludvig@suse.cz>
  18424. * linux-low.c (regsets_fetch_inferior_registers),
  18425. (regsets_store_inferior_registers): Removed cast to int from
  18426. ptrace() calls.
  18427. * regcache.h: Added declaration of struct inferior_info.
  18428. 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
  18429. * inferiors.c (struct inferior_info): Add regcache_data.
  18430. (add_inferior): Call create_register_cache.
  18431. (clear_inferiors): Call free_register_cache.
  18432. (inferior_regcache_data, set_inferior_regcache_data): New functions.
  18433. * regcache.c (struct inferior_regcache_data): New.
  18434. (registers): Remove.
  18435. (get_regcache): New function.
  18436. (create_register_cache, free_register_cache): New functions.
  18437. (set_register_cache): Don't initialize the register cache here.
  18438. (registers_to_string, registers_from_string, register_data): Call
  18439. get_regcache.
  18440. * regcache.h: Add prototypes.
  18441. * server.h: Likewise.
  18442. 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
  18443. * mem-break.c: New file.
  18444. * mem-break.h: New file.
  18445. * Makefile.in: Add mem-break.o rule; update server.h
  18446. dependencies.
  18447. * inferiors.c (struct inferior_info): Add target_data
  18448. member.
  18449. (clear_inferiors): Free target_data member if set.
  18450. (inferior_target_data, set_inferior_target_data): New functions.
  18451. * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
  18452. (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
  18453. * linux-low.c (linux_bp_reinsert): New variable.
  18454. (struct inferior_linux_data): New.
  18455. (linux_create_inferior): Use set_inferior_target_data.
  18456. (linux_attach): Likewise. Call add_inferior.
  18457. (linux_wait_for_one_inferior): New function.
  18458. (linux_wait): Call it.
  18459. (linux_write_memory): Add const.
  18460. (initialize_low): Call set_breakpoint_data.
  18461. * linux-low.h (struct linux_target_ops): Add breakpoint
  18462. handling members.
  18463. * server.c (attach_inferior): Remove extra add_inferior
  18464. call.
  18465. * server.h: Include mem-break.h. Update inferior.c
  18466. prototypes.
  18467. * target.c (read_inferior_memory)
  18468. (write_inferior_memory): New functions.
  18469. * target.h (read_inferior_memory)
  18470. (write_inferior_memory): Change macros to prototypes.
  18471. (struct target_ops): Update comments. Add const to write_memory
  18472. definition.
  18473. 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
  18474. * linux-low.c (usr_store_inferior_registers): Support
  18475. registers which are allowed to fail to store.
  18476. * linux-low.h (linux_target_ops): Likewise.
  18477. * linux-ppc-low.c (ppc_regmap): Support FPSCR.
  18478. (ppc_cannot_store_register): FPSCR may not be storable.
  18479. 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
  18480. * server.h: Include <string.h> if HAVE_STRING_H.
  18481. * ChangeLog: Correct paths in last ChangeLog entry.
  18482. 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
  18483. * linux-low.h: Remove obsolete prototypes.
  18484. (struct linux_target_ops): New.
  18485. (extern the_low_target): New.
  18486. * linux-low.c (num_regs, regmap): Remove declarations.
  18487. (register_addr): Use the_low_target explicitly.
  18488. (fetch_register): Likewise.
  18489. (usr_fetch_inferior_registers): Likewise.
  18490. (usr_store_inferior_registers): Likewise.
  18491. * linux-arm-low.c (num_regs): Remove.
  18492. (arm_num_regs): Define.
  18493. (arm_regmap): Renamed from regmap, made static.
  18494. (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
  18495. made static.
  18496. (arm_cannot_store_register): Renamed from cannot_store_register,
  18497. made static.
  18498. (the_low_target): New.
  18499. * linux-i386-low.c (num_regs): Remove.
  18500. (i386_num_regs): Define.
  18501. (i386_regmap): Renamed from regmap, made static.
  18502. (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
  18503. made static.
  18504. (i386_cannot_store_register): Renamed from cannot_store_register,
  18505. made static.
  18506. (the_low_target): New.
  18507. * linux-ia64-low.c (num_regs): Remove.
  18508. (ia64_num_regs): Define.
  18509. (ia64_regmap): Renamed from regmap, made static.
  18510. (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
  18511. made static.
  18512. (ia64_cannot_store_register): Renamed from cannot_store_register,
  18513. made static.
  18514. (the_low_target): New.
  18515. * linux-m68k-low.c (num_regs): Remove.
  18516. (m68k_num_regs): Define.
  18517. (m68k_regmap): Renamed from regmap, made static.
  18518. (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
  18519. made static.
  18520. (m68k_cannot_store_register): Renamed from cannot_store_register,
  18521. made static.
  18522. (the_low_target): New.
  18523. * linux-mips-low.c (num_regs): Remove.
  18524. (mips_num_regs): Define.
  18525. (mips_regmap): Renamed from regmap, made static.
  18526. (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
  18527. made static.
  18528. (mips_cannot_store_register): Renamed from cannot_store_register,
  18529. made static.
  18530. (the_low_target): New.
  18531. * linux-ppc-low.c (num_regs): Remove.
  18532. (ppc_num_regs): Define.
  18533. (ppc_regmap): Renamed from regmap, made static.
  18534. (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
  18535. made static.
  18536. (ppc_cannot_store_register): Renamed from cannot_store_register,
  18537. made static.
  18538. (the_low_target): New.
  18539. * linux-s390-low.c (num_regs): Remove.
  18540. (s390_num_regs): Define.
  18541. (s390_regmap): Renamed from regmap, made static.
  18542. (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
  18543. made static.
  18544. (s390_cannot_store_register): Renamed from cannot_store_register,
  18545. made static.
  18546. (the_low_target): New.
  18547. * linux-sh-low.c (num_regs): Remove.
  18548. (sh_num_regs): Define.
  18549. (sh_regmap): Renamed from regmap, made static.
  18550. (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
  18551. made static.
  18552. (sh_cannot_store_register): Renamed from cannot_store_register,
  18553. made static.
  18554. (the_low_target): New.
  18555. * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
  18556. (the_low_target): New.
  18557. 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
  18558. * Makefile.in: Add stamp-h target.
  18559. * configure.in: Create stamp-h.
  18560. * configure: Regenerated.
  18561. 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
  18562. * inferiors.c: New file.
  18563. * target.c: New file.
  18564. * target.h: New file.
  18565. * Makefile.in: Add target.o and inferiors.o. Update
  18566. dependencies.
  18567. * linux-low.c (inferior_pid): New static variable,
  18568. moved from server.c.
  18569. (linux_create_inferior): Renamed from create_inferior.
  18570. Call add_inferior. Return 0 on success instead of a PID.
  18571. (linux_attach): Renamed from myattach.
  18572. (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
  18573. (linux_thread_alive): Renamed from mythread_alive.
  18574. (linux_wait): Renamed from mywait. Call clear_inferiors () if the
  18575. child dies.
  18576. (linux_resume): Renamed from myresume. Add missing ``return 0''.
  18577. (regsets_store_inferior_registers): Correct error message.
  18578. Add missing ``return 0''.
  18579. (linux_fetch_registers): Renamed from fetch_inferior_registers.
  18580. (linux_store_registers): Renamed from store_inferior_registers.
  18581. (linux_read_memory): Renamed from read_inferior_memory.
  18582. (linux_write_memory): Renamed from write_inferior_memory.
  18583. (linux_target_ops): New structure.
  18584. (initialize_low): Call set_target_ops ().
  18585. * remote-utils.c (unhexify): New function.
  18586. (hexify): New function.
  18587. (input_interrupt): Send signals to ``signal_pid''.
  18588. * server.c (inferior_pid): Remove.
  18589. (start_inferior): Update create_inferior call.
  18590. (attach_inferior): Call add_inferior.
  18591. (handle_query): New function.
  18592. (main): Call handle_query for `q' packets.
  18593. * server.h: Include "target.h". Remove obsolete prototypes.
  18594. Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
  18595. 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
  18596. * Makefile.in: Add WARN_CFLAGS. Update configury
  18597. dependencies.
  18598. * configure.in: Check for <string.h>
  18599. * configure: Regenerate.
  18600. * config.in: Regenerate.
  18601. * gdbreplay.c: Include needed system headers.
  18602. (remote_open): Remove strchr prototype.
  18603. * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
  18604. * regcache.c (supply_register): Change buf argument to const void *.
  18605. (supply_register_by_name): Likewise.
  18606. (collect_register): Change buf argument to void *.
  18607. (collect_register_by_name): Likewise.
  18608. * regcache.h: Add missing prototypes.
  18609. * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
  18610. * server.c (handle_query): New function.
  18611. (attached): New static variable, moved out of main.
  18612. (main): Quiet longjmp clobber warnings.
  18613. * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
  18614. * utils.c (error): Remove NORETURN.
  18615. (fatal): Likewise.