ChangeLog-2012 493 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326
  1. 2012-12-28 Jan Kratochvil <jan.kratochvil@redhat.com>
  2. * symtab.c (find_line_symtab): Call symtab_to_fullname instead of
  3. accessing FULLNAME directly.
  4. 2012-12-25 Sergio Durigan Junior <sergiodj@redhat.com>
  5. * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Fix typo.
  6. 2012-12-25 Jan Kratochvil <jan.kratochvil@redhat.com>
  7. * ada-lang.c (is_known_support_routine): New variable fullname. Use
  8. access call to verify the symtab_to_fullname result.
  9. * breakpoint.c (print_breakpoint_location, update_static_tracepoint):
  10. Remove NULL check of symtab_to_fullname result.
  11. * cli/cli-cmds.c (edit_command): Likewise.
  12. * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
  13. (mi_cmd_file_list_exec_source_files): Likewise.
  14. * python/py-symtab.c (stpy_fullname): Likewise.
  15. * source.c (symtab_to_fullname): Update function comment. Rename
  16. variable r to fd, move it to inner block. Always provide non-NULL
  17. result.
  18. (print_source_lines_base): Remove NULL check of symtab_to_fullname
  19. result.
  20. * stack.c (print_frame): Likewise.
  21. * symtab.c (iterate_over_some_symtabs, find_line_symtab, sources_info):
  22. Likewise.
  23. * tracepoint.c (print_one_static_tracepoint_marker): Likewise.
  24. 2012-12-24 Jan Kratochvil <jan.kratochvil@redhat.com>
  25. Code cleanup.
  26. * dwarf2read.c (fixup_go_packaging): Do not check symtab->FILENAME for
  27. NULL.
  28. * linespec.c (add_sal_to_sals): Likewise.
  29. * psympriv.h (allocate_psymtab): Add ATTRIBUTE_NONNULL.
  30. * stack.c (print_frame): Do not check symtab->FILENAME for NULL.
  31. * symfile.h (allocate_symtab): Add ATTRIBUTE_NONNULL.
  32. * symtab.h (struct symtab): Add comment it is never NULL for filename.
  33. * tracepoint.c (set_traceframe_context): Do not check symtab->FILENAME
  34. for NULL.
  35. * tui/tui-source.c (tui_set_source_content): Likewise.
  36. 2012-12-24 Jan Kratochvil <jan.kratochvil@redhat.com>
  37. * breakpoint.c (breakpoint_re_set): Remove the skip_re_set call.
  38. * infrun.c (handle_inferior_event): Rename the called function to
  39. function_name_is_marked_for_skip, pass it TMP_SAL.
  40. * skip.c (struct skiplist_entry): Update function_name comment. Remove
  41. fields pc, gdbarch and pending.
  42. (skip_function_pc): Rename this forward declaration to ...
  43. (skip_function): ... here.
  44. (skip_file_command): Remove variable pending and its use, remove
  45. initialization of E fields pending and gdbarch. Do not use SYMTAB
  46. filename, use the specified one.
  47. (skip_function_command): Remove variable func_pc, do not set it.
  48. Update the caller of skip_function. Replace decode_line_1 call by
  49. a lookup_symbol call. Remove variables orig_arg, decode_exception and
  50. sals. Update the caller of skip_function.
  51. (skip_info): Remove variable address_width and its use. Do not print
  52. address (PC). Renumber column 5 to 4.
  53. (skip_function_pc): Rename to ...
  54. (skip_function): ... here and remove its parameters pc, arch and
  55. pending. Update the function comment and no longer use those
  56. parameters.
  57. (function_pc_is_marked_for_skip): Rename to ...
  58. (function_name_is_marked_for_skip): ... here, update function comment
  59. just to a skip.h reference, replace pc parameter by function_name and
  60. function_sal. No longer use E field pending and pc. Remove variables
  61. searched_for_sal, sal and filename. Call compare_filenames_for_search
  62. instead of just strcmp.
  63. (skip_re_set): Remove the function.
  64. * skip.h (struct symtab_and_line): New declaration.
  65. (function_pc_is_marked_for_skip): Rename to ...
  66. (function_name_is_marked_for_skip): ... here, replace pc parameter by
  67. function_name and function_sal, update the function comment.
  68. 2012-12-18 Pierre Muller <muller@sourceware.org>
  69. * ui-file.h (tee_file_new): Add extern modifier in header declaration.
  70. 2012-12-20 Tom Tromey <tromey@redhat.com>
  71. * serial.c (deprecated_serial_fd): Remove.
  72. * serial.h (deprecated_serial_fd): Remove.
  73. 2012-12-20 Yao Qi <yao@codesourcery.com>
  74. * maint.c (_initialize_maint_cmds): Move code ...
  75. * symmisc.c (_initialize_symmisc): ... to here.
  76. (maintenance_print_msymbols): Make it static.
  77. (maintenance_print_objfiles): Likewise.
  78. (maintenance_print_symbols): Likewise.
  79. (maintenance_info_symtabs): Likewise.
  80. * symtab.h (maintenance_print_msymbols): Remove declaration.
  81. (maintenance_print_objfiles, maintenance_print_symbols): Likewise.
  82. (maintenance_info_symtabs): Likewise.
  83. 2012-12-20 Yao Qi <yao@codesourcery.com>
  84. * maint.c (_initialize_maint_cmds): Move code to ...
  85. * psymtab.c (_initialize_psymtab): ... here. New.
  86. Include "gdbcmd.h".
  87. (maintenance_print_psymbols): Make it static.
  88. (maintenance_info_psymtabs, maintenance_check_symtabs): Likewise.
  89. * symtab.h (maintenance_print_psymbols): Remove declaration.
  90. (maintenance_check_symtabs, maintenance_info_psymtabs): Likewise.
  91. 2012-12-19 Maxim Kuvyrkov <maxim@codesourcery.com>
  92. * MAINTAINERS: Add myself to write-after-approval maintainers.
  93. 2012-12-19 Andreas Tobler <andreast@neon.andreas.nets>
  94. * mips-tdep.c (micromips_deal_with_atomic_sequence): Initialize
  95. branch_bp to keep gcc happy.
  96. 2012-12-19 Joel Brobecker <brobecker@adacore.com>
  97. * gdbarch.sh (copyright): Update copyright years.
  98. * gdbarch.h, gdbarch.c: Regenerate.
  99. * copyright.py (EXCLUDE_LIST): Remove gdbarch.h and gdbarch.c.
  100. (MULTIPLE_COPYRIGHT_HEADERS): Add 'gdb/gdbarch.sh'.
  101. 2012-12-19 Joel Brobecker <brobecker@adacore.com>
  102. * acinclude.m4: Update contact info in copyright notice.
  103. 2012-12-19 Yao Qi <yao@codesourcery.com>
  104. * maint.c (maintenance_print_statistics): Make it static.
  105. * symtab.h (maintenance_print_statistics): Remove declaration.
  106. 2012-12-19 Joel Brobecker <brobecker@adacore.com>
  107. * NEWS: Add entry announcing ppc-lynx178 support.
  108. 2012-12-19 Joel Brobecker <brobecker@adacore.com>
  109. Revert the following change (compatibility issues with libiconv):
  110. * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add errno.
  111. * gnulib/import/errno.in.h: Import.
  112. * gnulib/import/m4/errno_h.m4: Import.
  113. * gnulib/aclocal.m4: Regenerate.
  114. * gnulib/configure: Regenerate.
  115. * gnulib/import/Makefile.am: Update.
  116. * gnulib/import/Makefile.in: Update.
  117. * gnulib/import/m4/gnulib-cache.m4: Update.
  118. * gnulib/import/m4/gnulib-comp.m4: Update.
  119. 2012-12-18 Tom Tromey <tromey@redhat.com>
  120. * defs.h (directory_command): Don't declare.
  121. * source.c (directory_command): Now static.
  122. 2012-12-18 Tom Tromey <tromey@redhat.com>
  123. * infcmd.c (all_registers_info, nexti_command, stepi_command)
  124. (continue_command, interrupt_target_command): Now static.
  125. (registers_info): Remove declaration.
  126. * inferior.h (all_registers_info, nexti_command, stepi_command)
  127. (continue_command, interrupt_target_command): Don't declare.
  128. 2012-12-18 Tom Tromey <tromey@redhat.com>
  129. * cli/cli-cmds.c (apropos_command): Now static.
  130. 2012-12-18 Tom Tromey <tromey@redhat.com>
  131. * breakpoint.c (dprintf_command): Now static.
  132. 2012-12-18 Tom Tromey <tromey@redhat.com>
  133. * Makefile.in (init.c): Declare initialize_all_files;
  134. don't include call-cmds.h.
  135. * call-cmds.h: Remove.
  136. * symtab.c: Don't include call-cmds.h.
  137. * top.c: Don't include call-cmds.h. Declare
  138. initialize_all_files.
  139. 2012-12-18 Tom Tromey <tromey@redhat.com>
  140. * symfile.c (list_overlays_command, map_overlay_command)
  141. (unmap_overlay_command): Now static.
  142. 2012-12-18 Tom Tromey <tromey@redhat.com>
  143. * cli/cli-cmds.c (_initialize_cli_cmds): Remove "document",
  144. "define", "while", and "if" commands.
  145. * cli/cli-script.c (while_command, if_command, define_command)
  146. (document_command): Now static.
  147. (_initialize_cli_script): New function.
  148. * cli/cli-script.h (while_command, if_command, define_command)
  149. (document_command): Don't declare.
  150. 2012-12-18 Tom Tromey <tromey@redhat.com>
  151. * cli/cli-cmds.c (_initialize_cli_cmds): New function.
  152. (init_cli_cmds): Move most code into new function.
  153. 2012-12-18 Tom Tromey <tromey@redhat.com>
  154. * minsyms.c (lookup_solib_trampoline_symbol_by_pc): Now static.
  155. * minsyms.h (lookup_solib_trampoline_symbol_by_pc): Don't
  156. declare.
  157. 2012-12-18 Joel Brobecker <brobecker@adacore.com>
  158. * defs.h (enum gdb_osabi): Add GDB_OSABI_LYNXOS178.
  159. * osabi.c (gdb_osabi_names): Add entry for GDB_OSABI_LYNXOS178.
  160. * xcoffread.c (xcoff_get_core_n_import_files): New function.
  161. (xcoff_get_n_import_files): New function.
  162. * xcoffread.h (xcoffread.h): Add declaration.
  163. * rs6000-aix-tdep.c: #include "xcoffread.h".
  164. (rs6000_aix_osabi_sniffer): Do not return GDB_OSABI_AIX for
  165. XCOFF executables that do not depend on any shared library.
  166. * rs6000-lynx178-tdep.c: New file.
  167. * configure.tgt: Add powerpc-*-lynx*178 handling.
  168. * Makefile.in (ALL_TARGET_OBS): Add rs6000-lynx178-tdep.o.
  169. (ALLDEPFILES): Add rs6000-lynx178-tdep.c.
  170. 2012-12-18 Hui Zhu <hui_zhu@mentor.com>
  171. * ui-file.c (ui_file): Add to_fseek.
  172. (ui_file_new): Call set_ui_file_fseek.
  173. (null_file_fseek, ui_file_fseek, set_ui_file_fseek,
  174. stdio_file_fseek): New functions.
  175. (stdio_file_new): Call set_ui_file_fseek.
  176. * ui-file.h (ui_file_fseek_ftype): New typedef.
  177. (set_ui_file_fseek, ui_file_fseek): New externs.
  178. 2012-12-18 Hui Zhu <hui_zhu@mentor.com>
  179. * ui-file.c (set_ui_file_flush): Change flush to flush_ptr.
  180. (set_ui_file_isatty): Change isatty to isatty_ptr.
  181. (set_ui_file_rewind): Change rewind to rewind_ptr.
  182. (set_ui_file_put): Change put to put_ptr.
  183. (set_ui_file_write): Change write to write_ptr.
  184. (set_ui_file_write_async_safe): Change write_async_safe to
  185. write_async_safe_ptr.
  186. (set_ui_file_read): Change read to read_ptr.
  187. (set_ui_file_fputs): Change fputs to fputs_ptr.
  188. (set_ui_file_data): Change delete to delete_ptr.
  189. 2012-12-18 Joel Brobecker <brobecker@adacore.com>
  190. * solib-darwin.c (darwin_current_sos): Fix indentation.
  191. (darwin_read_exec_load_addr): New function.
  192. (darwin_solib_create_inferior_hook): Rebase executable.
  193. * objfiles.c (objfile_rebase1, objfile_rebase): New functions.
  194. * objfiles.h (objfile_rebase1, objfile_rebase): Add prototypes.
  195. 2012-12-18 Joel Brobecker <brobecker@adacore.com>
  196. * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add errno.
  197. * gnulib/import/errno.in.h: Import.
  198. * gnulib/import/m4/errno_h.m4: Import.
  199. * gnulib/aclocal.m4: Regenerate.
  200. * gnulib/configure: Regenerate.
  201. * gnulib/import/Makefile.am: Update.
  202. * gnulib/import/Makefile.in: Update.
  203. * gnulib/import/m4/gnulib-cache.m4: Update.
  204. * gnulib/import/m4/gnulib-comp.m4: Update.
  205. 2012-12-18 Joel Brobecker <brobecker@adacore.com>
  206. * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
  207. 8d5bd1402003bd0153984b138735adf537d960b0.
  208. * gnulib/aclocal.m4, configure, config.in: Regenerate.
  209. * gnulib/import/m4/extern-inline.m4: Import.
  210. * gnulib/import/wctype-h.c: Import.
  211. * gnulib/import/Makefile.am: Update.
  212. * gnulib/import/Makefile.in: Update.
  213. * gnulib/import/alloca.in.h: Update.
  214. * gnulib/import/extra/snippet/warn-on-use.h: Update.
  215. * gnulib/import/localcharset.c: Update.
  216. * gnulib/import/m4/fcntl-o.m4: Update.
  217. * gnulib/import/m4/gnulib-cache.m4: Update.
  218. * gnulib/import/m4/gnulib-comp.m4: Update.
  219. * gnulib/import/m4/wctype_h.m4: Update.
  220. * gnulib/import/stdbool.in.h: Update.
  221. * gnulib/import/verify.h: Update.
  222. * gnulib/import/wctype.in.h: Update.
  223. 2012-12-18 Joel Brobecker <brobecker@adacore.com>
  224. * gnulib/update-gnulib.sh: Add call to autoheader.
  225. 2012-12-17 Tom Tromey <tromey@redhat.com>
  226. * top.c (xgdb_verbose): Remove.
  227. 2012-12-16 Jan Kratochvil <jan.kratochvil@redhat.com>
  228. Code cleanup.
  229. * skip.c (skip_function_command, skip_file_command, skip_info): Remove
  230. unused forward declarations.
  231. (skip_file_command): Make variables symtab and filename targets const.
  232. Use proper 0 vs. NULL constant everywhere.
  233. (skip_function_command): Use proper 0 vs. NULL constant everywhere.
  234. Include empty line after declarations. Use GNU spacing in a comment.
  235. Do not use strlen for end of string check.
  236. (skip_info): Use proper 0 vs. NULL constant everywhere. Add column 5
  237. comments.
  238. (skip_enable_command, skip_disable_command, skip_delete_command)
  239. (add_skiplist_entry): Use proper 0 vs. NULL constant everywhere.
  240. (function_pc_is_marked_for_skip): Make variable filename target const.
  241. Use proper 0 vs. NULL constant everywhere. Fix GNU non-compliant
  242. comment formatting.
  243. (skip_re_set): Add empty line after function comment. Use proper 0 vs.
  244. NULL constant everywhere. Include empty line after declarations. Make
  245. variable symtab target const. Do not use strlen for end of string
  246. check.
  247. 2012-12-16 Jan Kratochvil <jan.kratochvil@redhat.com>
  248. Code cleanup.
  249. * breakpoint.c (clear_command): Remove variable sal_name_len and its
  250. initialization, remove it from the compare_filenames_for_search call.
  251. * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
  252. name_len and its initialization, remove it from the
  253. compare_filenames_for_search calls.
  254. * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
  255. * symtab.c (compare_filenames_for_search): Remove the search_len
  256. parameter, update the function comment, new variable search_len
  257. initialized from SEARCH_NAME.
  258. (iterate_over_some_symtabs): Remove variable name_len and its
  259. initialization, remove it from the compare_filenames_for_search calls.
  260. * symtab.h (compare_filenames_for_search): Remove the search_len
  261. parameter.
  262. 2012-12-16 Joel Brobecker <brobecker@adacore.com>
  263. * Makefile.in (SFILES): Move ravenscar-thread.c from here...
  264. (ALLDEPFILES): ... to there.
  265. 2012-12-15 Joel Brobecker <brobecker@adacore.com>
  266. * configure.tgt (sparc-*-*): Add missing '\' in gdb_target_ops.
  267. 2012-12-15 Joel Brobecker <brobecker@adacore.com>
  268. * ppc-ravenscar-thread.h, ppc-ravenscar-thread.c: New files.
  269. * Makefile.in (ALL_TARGET_OBS): Add ppc-ravenscar-thread.o.
  270. (HFILES_NO_SRCDIR): Add ppc-ravenscar-thread.h.
  271. (ALLDEPFILES): Add ppc-ravenscar-thread.c.
  272. * configure.tgt: Add ravenscar-thread.o and ppc-ravenscar-thread.o
  273. to gdb_target_obs for every target that uses rs6000-tdep.o.
  274. * rs6000-tdep.c: #include "ppc-ravenscar-thread.h".
  275. (rs6000_gdbarch_init): Call register_e500_ravenscar_ops
  276. or register_ppc_ravenscar_ops.
  277. 2012-12-15 Joel Brobecker <brobecker@adacore.com>
  278. * sparc-ravenscar-thread.h: SPARC_RAVENSCAR_THREAD_H renames
  279. RAVENSCAR_SPARC_THREAD_H.
  280. * sparc-ravenscar-thread.c: Rename all global entities
  281. whose name is uses "ravenscar_sparc" as the prefix to use
  282. "sparc_ravenscar" instead.
  283. 2012-12-15 Joel Brobecker <brobecker@adacore.com>
  284. * sparc-ravenscar-thread.h: Renames ravenscar-sparc-thread.h.
  285. * sparc-ravenscar-thread.c: Renames ravenscar-sparc-thread.c.
  286. Adjust sparc-ravenscar-thread.h #include.
  287. * sparc-tdep.c: Adjust sparc-ravenscar-thread.h #include
  288. accordingly.
  289. * Makefile.in: Replace ravenscar-sparc-thread with
  290. sparc-ravenscar-thread throughout.
  291. * configure.tgt: Likewise.
  292. 2012-12-15 Joel Brobecker <brobecker@adacore.com>
  293. * gdbarch.sh: Add "struct ravenscar_arch_ops" forward
  294. declaration.
  295. (ravenscar_ops): New gdbarch variable.
  296. * gdbarch.h, gdbarch.c: Regenerate.
  297. * ravenscar-thread.h (ravenscar_register_arch_ops): Delete.
  298. * ravenscar-thread.c (current_arch_ops): Delete.
  299. (ravenscar_fetch_registers): Get the ravenscar_arch_ops
  300. from the gdbarch.
  301. (ravenscar_store_registers, ravenscar_prepare_to_store): Likewise.
  302. (ravenscar_inferior_created): Add gdbarch_ravenscar_ops check.
  303. (ravenscar_register_arch_ops): Delete.
  304. * ravenscar-sparc-thread.h: New file.
  305. * ravenscar-sparc-thread.c: #include "ravenscar-sparc-thread.h".
  306. (ravenscar_sparc_ops): Define value statically.
  307. (_initialize_ravenscar_sparc): Delete.
  308. (register_sparc_ravenscar_ops): New function.
  309. * sparc-tdep.c: #include "ravenscar-sparc-thread.h".
  310. (sparc32_gdbarch_init): Add call to register_sparc_ravenscar_ops.
  311. * Makefile.in (ALL_TARGET_OBS): Add ravenscar-thread.o and
  312. ravenscar-sparc-thread.o.
  313. (SFILES): Add ravenscar-thread.c.
  314. (HFILES_NO_SRCDIR): Add ravenscar-sparc-thread.h.
  315. (ALLDEPFILES): ravenscar-sparc-thread.c.
  316. * configure.tgt: Add ravenscar-thread.o and ravenscar-sparc-thread.o
  317. to gdb_target_obs
  318. for all the targets that use sparc-tdep.o.
  319. 2012-12-15 Joel Brobecker <brobecker@adacore.com>
  320. * ravenscar-thread.c (ravenscar_is_open): Delete.
  321. (ravenscar_initialize): Move most of the code from here...
  322. (ravenscar_inferior_created): ... to there. Invert logic.
  323. (ravenscar_close): Delete.
  324. (init_ravenscar_thread_ops): Remove setting of
  325. ravenscar_ops.to_close.
  326. 2012-12-15 Joel Brobecker <brobecker@adacore.com>
  327. * objfiles.c (init_entry_point_info): Move function from here...
  328. * symfile.c (init_entry_point_info): ... to there. Make static.
  329. * objfiles.h (objfiles.h): Delete declaration.
  330. 2012-12-15 Joel Brobecker <brobecker@adacore.com>
  331. * symfile.c (syms_from_objfile_1): Renames syms_from_objfile.
  332. Remove call to init_entry_point_info. Add OBJFILE's
  333. section_offsets and num_sections initialization. Add note
  334. about entry info in the function documentation.
  335. (syms_from_objfile): New function.
  336. * coffread.c (coff_symfile_init): Remove call to
  337. init_entry_point_info.
  338. * machoread.c (macho_symfile_init): Likewise.
  339. * xcoffread.c(xcoff_symfile_init): Likewise.
  340. 2012-12-15 Yao Qi <yao@codesourcery.com>
  341. * remote-notif.c (_initialize_notif): Add new commands
  342. 'set debug notification' and 'show debug notification'.
  343. * NEWS: Mention these new commands.
  344. 2012-12-15 Yao Qi <yao@codesourcery.com>
  345. * Makefile.in (REMOTE_OBS): Add "remote-notif.o".
  346. (SFILES): Add "remote-notif.c".
  347. (HFILES_NO_SRCDIR): Add "remote-notif.h" and "common/queue.h".
  348. * remote-notif.c: New. Factored out from remote.c.
  349. * remote-notif.h: New.
  350. * remote.c: Include "remote-notif.h".
  351. (stop_reply_xmalloc, do_stop_reply_xfree):
  352. (remote_parse_stop_reply, remote_get_pending_stop_replies):
  353. (remote_async_get_pending_events_handler): Remove declarations.
  354. (remote_parse_stop_reply): Declare.
  355. (pending_stop_reply): Remove.
  356. (remote_async_get_pending_events_token): Move to
  357. remote-notif.c.
  358. (remote_close): Replace 'delete_async_event_handler' with
  359. remote_notif_unregister_async_event_handler.
  360. Don't call discard_pending_stop_replies.
  361. (remote_start_remote): Replace code with remote_notif_parse
  362. and remote_notif_get_pending_replies.
  363. (remote_open_1): Replace 'create_async_event_handler' with
  364. remote_notif_register_async_event_handler.
  365. (extended_remote_attach_1): Call remote_notif_parse and
  366. notif_stop_reply_push.
  367. (struct stop_reply) <next>: Remove.
  368. <base>: New field.
  369. Callers update.
  370. (stop_reply_queue): Change its type.
  371. (stop_reply_xmalloc, do_stop_reply_xfree): Remove.
  372. (remote_notif_remove_all): New.
  373. (discard_pending_stop_replies): Update.
  374. (remote_notif_stop_ack, stop_reply_dtr): New.
  375. (remote_notif_stop_alloc_event): New.
  376. (notif_client_stop): New variable.
  377. (stop_reply_match_ptid, stop_reply_match_ptid_and_ws: New.
  378. (queued_stop_reply, peek_stop_reply): Adjust.
  379. (remote_get_pending_stop_replies): Rename to
  380. remote_notif_get_pending_events.
  381. (handle_notification): Move to remote-notif.c.
  382. (remote_async_get_pending_events_handler): Likewise.
  383. (remote_wait_as): Adjust to call remote_notif_parse.
  384. Call 'getpkt_or_notif_sane' instead of 'getpkt_sane'.
  385. Return minus_one_ptid early if gets a notification.
  386. (remote_wait): Call QUEUE_is_empty (notif_reply_p).
  387. (_initialize_remote): Call QUEUE_alloc. Update caller.
  388. (remote_resume): Call 'remote_notif_process' in all-stop mode.
  389. * remote.h: Include "remote-notif.h".
  390. (remote_notif_get_pending_replies): Declare.
  391. 2012-12-15 Yao Qi <yao@codesourcery.com>
  392. * remote.c (discard_pending_stop_replies): Update declaration.
  393. (remote_detach_1, extended_remote_mourn_1): Likewise.
  394. (discard_pending_stop_replies): Change parameter from PID to
  395. INF.
  396. (remote_close): Update caller.
  397. (_initialize_remote): Attach discard_pending_stop_replies to
  398. inferior_exit observer.
  399. 2012-12-15 Yao Qi <yao@codesourcery.com>
  400. * remote.c (getpkt_or_notif_sane): Add one more argument in
  401. its declaration.
  402. (getpkt_or_notif_sane_1): Add one more argument.
  403. (getpkt_sane): Update caller.
  404. (getpkt_or_notif_sane): Likewise. Update call
  405. togetpkt_or_notif_sane_1.
  406. (remote_wait_ns): Update caller.
  407. 2012-12-15 Yao Qi <yao@codesourcery.com>
  408. Doug Evans <dje@google.com>
  409. * common/queue.h: New.
  410. 2012-12-15 Yao Qi <yao@codesourcery.com>
  411. * breakpoint.c (print_one_breakpoint_location): Display the
  412. state of 'installed' of each non-pending location of a tracepoint
  413. in both CLI and MI.
  414. (download_tracepoint_locations): Notify 'breakpoint-modified'
  415. observer if any tracepoint location is downloaded.
  416. * tracepoint.c (start_tracing): Likewise.
  417. (merge_uploaded_tracepoints): Record all modified
  418. tracepoints and notify 'breakpoint-modified' observer for them.
  419. * NEWS: Mention the change for CLI and MI.
  420. 2012-12-15 Yao Qi <yao@codesourcery.com>
  421. * breakpoint.c (download_tracepoint_locations): Iterate over
  422. ALL_TRACEPOINTS first and then iterate over locations of
  423. each tracepoint.
  424. 2012-12-14 Pierre Muller <muller@sourceware.org>
  425. Pedro Alves <palves@redhat.com>
  426. * solib-target.c (solib_target_current_sos): Remove 'const'
  427. qualifier from type of library_document local variable to be
  428. able to free it and avoid a memory leak.
  429. Use cleanup chain to avoid leak even if exceptino is generated.
  430. 2012-12-14 Tom Tromey <tromey@redhat.com>
  431. PR c++/8888:
  432. * symtab.c (lookup_symbol_aux): If constructor is found, consider
  433. returning the type instead.
  434. * c-exp.y (classify_name): Check STRUCT_DOMAIN if a constructor is
  435. found.
  436. 2012-12-14 Tom Tromey <tromey@redhat.com>
  437. Partial fix for PR c++/14160:
  438. * c-typeprint.c (c_type_print_base): Use TYPE_FN_FIELD_CONSTRUCTOR.
  439. * dwarf2read.c (dwarf2_is_constructor): New function.
  440. (dwarf2_add_member_fn): Use it.
  441. * gnu-v3-abi.c (gnuv3_pass_by_reference): Use
  442. TYPE_FN_FIELD_CONSTRUCTOR.
  443. * jv-typeprint.c (java_type_print_base): Use
  444. TYPE_FN_FIELD_CONSTRUCTOR.
  445. * gdbtypes.h (struct fn_field) <is_constructor>: New field.
  446. <dummy>: Shrink.
  447. (TYPE_FN_FIELD_CONSTRUCTOR): New macro.
  448. 2012-12-14 Tom Tromey <tromey@redhat.com>
  449. * c-exp.y (block, variable, name_not_typename, lex_one_token,
  450. classify_name): Update.
  451. * c-valprint.c (c_val_print): Update.
  452. * f-exp.y (yylex): Update.
  453. * go-exp.y (package_name_p, classify_packaged_name)
  454. (classify_name): Update.
  455. * jv-exp.y (push_variable): Update.
  456. * m2-exp.y (variable): Update.
  457. * mi/mi-cmd-stack.c (list_args_or_locals): Update.
  458. * p-exp.y (block, variable, yylex): Update.
  459. * p-valprint.c (pascal_val_print): Update.
  460. * parse.c (write_dollar_variable): Update.
  461. * printcmd.c (address_info): Update.
  462. * python/py-symbol.c (gdbpy_lookup_symbol): Update.
  463. * symtab.c (lookup_symbol_aux, lookup_symbol_in_language)
  464. (lookup_symbol): Change type of 'is_a_field_of_this'.
  465. (check_field): Add 'is_a_field_of_this' argument.
  466. * symtab.h (struct field_of_this_result): New.
  467. (lookup_symbol, lookup_symbol_in_language): Update.
  468. 2012-12-14 Tom Tromey <tromey@redhat.com>
  469. * symtab.c (check_field): Now static. Move from...
  470. * valops.c (check_field): ... here. Remove.
  471. * value.h (check_field): Don't declare.
  472. 2012-12-14 Tom Tromey <tromey@redhat.com>
  473. * NEWS: Mention "info proc" and core files.
  474. * corelow.c (core_info_proc): New function.
  475. (init_core_ops): Set to_info_proc.
  476. * gdbarch.c, gdbarch.h: Rebuild.
  477. * gdbarch.sh (core_info_proc): New method.
  478. * infcmd.c (info_proc_cmd_1): Invoke target_info_proc first.
  479. * linux-tdep.c (linux_core_info_proc_mappings)
  480. (linux_core_info_proc): New functions.
  481. (linux_find_memory_region_ftype): New typedef.
  482. (linux_find_memory_regions_full): New function, from
  483. linux_find_memory_regions.
  484. (struct linux_find_memory_regions_data): New.
  485. (linux_find_memory_regions_thunk): New function.
  486. (linux_find_memory_regions): Rewrite.
  487. (struct linux_make_mappings_data): New.
  488. (linux_make_mappings_callback)
  489. (linux_make_mappings_corefile_notes): New functions.
  490. (linux_make_corefile_notes): Call linux_make_mappings_corefile_notes.
  491. (linux_init_abi): Call set_gdbarch_core_info_proc.
  492. * target.c (target_info_proc): Return 'int'.
  493. * target.h (target_info_proc): Update.
  494. 2012-12-14 Pierre Muller <muller@sourceware.org>
  495. * windows-nat.c (windows_xfer_shared_libraries): Avoid
  496. memory leak when OFFSET >= LEN_AVAIL.
  497. 2012-12-13 Tom Tromey <tromey@redhat.com>
  498. * solib-svr4.c (enable_break): Use SECT_OFF_TEXT.
  499. 2012-12-13 Tom Tromey <tromey@redhat.com>
  500. * acinclude.m4 (CY_AC_C_WORKS): Remove.
  501. 2012-12-13 Pierre Muller <muller@sourceware.org>
  502. * coff-pe-read.c (pe_text_section_offset): Increase size of sname
  503. local variable and zero terminate it to avoid possible problems
  504. in strcmp.
  505. 2012-12-13 Pedro Alves <palves@redhat.com>
  506. * coff-pe-read.c: Include coff/internal.h.
  507. (read_pe_exported_syms): Use SCNNMLEN instead of hardcoded 8.
  508. Null terminate buffer explicitly instead of memset the whole
  509. buffer.
  510. 2012-12-13 Pierre Muller <muller@sourceware.org>
  511. * coff-pe-read.c (IMAGE_SCN_CNT_TEXT, IMAGE_SCN_CNT_INITIALIZED_DATA)
  512. (IMAGE_SCN_CNT_UNINITIALIZED_DATA): Remove useless checks
  513. for already defined macros.
  514. 2012-12-13 Pierre Muller <muller@sourceware.org>
  515. * coff-pe-read.h (pe_text_section_offset): Declare new function.
  516. * coff-pe-read.c (debug_coff_pe_read): New static variable.
  517. (struct read_pe_section_data): Add section_name field.
  518. (IMAGE_SCN_CNT_CODE): New macro, if not already defined.
  519. (IMAGE_SCN_CNT_INITIALIZED_DATA): Ditto.
  520. (IMAGE_SCN_CNT_UNINITIALIZED_DATA): Ditto.
  521. (get_pe_section_index): New function.
  522. (struct pe_sections_info): New type.
  523. (get_section_vmas): Use new struct pe_sections_info.
  524. (add_pe_exported_sym): Handle unnamed exported function.
  525. (add_pe_forwarded_sym): New function.
  526. (read_pe_truncate_name): Truncate at last dot.
  527. (pe_as16): New function.
  528. (read_pe_exported_syms): Use ordinal of function to
  529. retrieve correct RVA address of function and handle
  530. forwarded symbol.
  531. (pe_text_section_offset): New function.
  532. (show_debug_coff_pe_read): New function.
  533. (_initialize_coff_pe_read): New function adding
  534. 'set/show debug coff_pe_read' commands.
  535. * windows-tdep.c (windows_xfer_shared_library): Use
  536. pe_text_section_offset function instead of possibly wrong
  537. 0x1000 constant for .text sextion offset.
  538. 2012-12-13 Pedro Alves <palves@redhat.com>
  539. * gdbarch.sh (do_read): Set IFS to blank.
  540. 2012-12-12 Mircea Gherzan <mircea.gherzan@intel.com>
  541. * NEWS: Mention the -catch-load/-catch-unload MI commands.
  542. 2012-12-12 Mircea Gherzan <mircea.gherzan@intel.com>
  543. * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-catch.o.
  544. (SUBDIR_MI_SRCS): Add mi/mi-cmd-catch.c.
  545. * breakpoint.c (add_solib_catchpoint): New function that
  546. can be used by both CLI and MI, factored out from
  547. catch_load_or_unload.
  548. (catch_load_or_unload): Strip it down and make it use the
  549. new add_solib_catchpoint.
  550. * breakpoint.h (add_solib_catchpoint): Declare it.
  551. * mi/mi-cmd-break.h: New file.
  552. * mi/mi-cmd-break.c: Include mi-cmd-break.h.
  553. (setup_breakpoint_reporting): New function used for both
  554. catchpoints and breakpoints.
  555. (mi_cmd_break_insert): Use setup_breakpoint_reporting.
  556. * mi/mi-cmd-catch.c: New file.
  557. * mi/mi-cmds.c (mi_cmds): Add the handlers for -catch-load
  558. and -catch-unload.
  559. * mi/mi-cmds.h: Declare the handlers for -catch-load and
  560. -catch-unload.
  561. 2012-11-28 Tom Tromey <tromey@redhat.com>
  562. * dbxread.c (read_dbx_symtab): Update.
  563. (end_psymtab, dbx_psymtab_to_symtab_1, dbx_psymtab_to_symtab)
  564. (read_ofile_symtab): Add 'objfile' argument.
  565. * dwarf2read.c (process_psymtab_comp_unit_reader)
  566. (build_type_psymtabs_reader): Update.
  567. (dwarf2_psymtab_to_symtab): Add 'objfile' argument.
  568. * mdebugread.c (mdebug_psymtab_to_symtab): Add 'objfile'
  569. argument.
  570. (parse_procedure, parse_partial_symbols): Update.
  571. (psymtab_to_symtab_1): Add 'objfile' argument.
  572. * psympriv.h (struct partial_symtab) <objfile>: Remove.
  573. <read_symtab>: Add 'objfile' argument.
  574. (sort_pst_symbols, discard_psymtab): Update.
  575. * psymtab.c (partial_map_expand_apply): Update.
  576. (find_pc_sect_psymtab_closer): Add 'objfile' argument.
  577. (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial): Update.
  578. (find_pc_sect_psymbol): Add 'objfile' argument.
  579. (lookup_symbol_aux_psymtabs): Update.
  580. (match_partial_symbol, lookup_partial_symbol, psymtab_to_symtab):
  581. Add 'objfile' argument.
  582. (find_last_source_symtab_from_partial, dump_psymtab)
  583. (dump_psymtabs_for_objfile, read_symtabs_for_function)
  584. (expand_partial_symbol_tables, read_psymtabs_with_filename)
  585. (find_symbol_file_from_partial, map_matching_symbols_psymtab)
  586. (expand_symtabs_matching_via_partial): Update.
  587. (sort_pst_symbols): Add 'objfile' argument.
  588. (allocate_psymtab): Update.
  589. (discard_psymtab): Add 'objfile' argument.
  590. (maintenance_info_psymtabs, maintenance_check_symtabs): Update.
  591. * stabsread.h (end_psymtab): Update.
  592. * xcoffread.c (this_symtab_objfile): New global.
  593. (process_linenos, enter_line_range, xcoff_next_symbol_text):
  594. Update.
  595. (read_xcoff_symtab): Add 'objfile' argument.
  596. (read_symbol, read_symbol_lineno): Update.
  597. (xcoff_psymtab_to_symtab_1, xcoff_psymtab_to_symtab)
  598. (xcoff_end_psymtab): Add 'objfile' argument.
  599. (scan_xcoff_symtab): Update.
  600. 2012-12-12 Paul Koning <paul_koning@dell.com>
  601. Add support for Python 3.
  602. * NEWS: Mention Python 3 support.
  603. * varobj.c (value_get_print_value): Use
  604. python_string_to_target_string.
  605. * python/py-block.c: Use PyVarObject_HEAD_INIT in initialization
  606. of type objects.
  607. * python/py-breakpoint.c: Ditto.
  608. * python/py-cmd.c: Ditto.
  609. * python/py-event.c: Ditto.
  610. * python/py-event.h: Ditto.
  611. * python/py-evtregistry.c: Ditto.
  612. * python/py-finishbreakpoint.c: Ditto.
  613. * python/py-frame.c: Ditto.
  614. * python/py-function.c: Ditto.
  615. * python/py-infthread.c: Ditto.
  616. * python/py-lazy-string.c: Ditto.
  617. * python/py-progspace.c: Ditto.
  618. * /python/py-symbol.c: Ditto.
  619. * python/py-evts.c: (gdbpy_initialize_py_events): Add module
  620. initialization for Python 3.
  621. * python/py-inferior.c: Use PyVarObject_HEAD_INIT in initialization
  622. of type objects.
  623. (infpy_read_memory): Return memoryview object if Python 3.
  624. (infpy_write_memory): Use "s*" operand parsing code for Python 3.
  625. (infpy_search_memory): Ditto.
  626. (get_buffer): New function for Python 3.
  627. * python/py-objfile.c: Use PyVarObject_HEAD_INIT in initialization
  628. of type objects.
  629. (objfpy_dealloc): Use Py_TYPE to call tp_free.
  630. * python/py-param.c: Use PyVarObject_HEAD_INIT in initialization
  631. of type objects.
  632. (get_attr): Use PyUnicode_CompareWithASCIIString if Python 3.
  633. (set_attr): Ditto.
  634. * python/py-prettyprint.c (print_string_repr): use PyBytes methods
  635. instead of PyString methods if Python 3.
  636. (print_children): Skip push_dummy_python_frame call if Python 3.
  637. * python/py-symtab.c: Use PyVarObject_HEAD_INIT in initialization
  638. of type objects.
  639. (salpy_dealloc): Use Py_TYPE to call tp_free.
  640. * python/py-type.c: Use PyVarObject_HEAD_INIT in initialization
  641. of type objects.
  642. (field_dealloc): Use Py_TYPE to call tp_free.
  643. (typy_dealloc): Ditto.
  644. (type_object_as_number): Adjust struct initializations for
  645. differences in layout for Python 2 vs. Python 3.
  646. * python/py-utils.c (python_string_to_unicode): Omit non-Unicode
  647. string case for Python 3.
  648. (unicode_to_encoded_python_string): Shorten code (no functional
  649. change).
  650. (python_string_to_target_python_string): Comment that in Python 3
  651. returned value is a Python "bytes" type.
  652. (gdbpy_is_string): Omit non-Unicode string check in Python 3.
  653. (gdb_py_object_from_longest): Omit non-long integer case in Python
  654. 3.
  655. (gdb_py_object_from_ulongest): Ditto.
  656. * python/py-value.c: Use PyVarObject_HEAD_INIT in initialization
  657. of type objects.
  658. (valpy_dealloc): Use Py_TYPE to call tp_free.
  659. (valpy_int): Omit function if Python 3.
  660. (convert_value_from_python): Use "%S" format (Python object as a
  661. string) if Python 3.
  662. (value_object_as_number): Adjust struct initializations for
  663. differences in layout for Python 2 vs. Python 3.
  664. * python/python-config.py: Adjust syntax for Python 3
  665. compatibility.
  666. Include "sys.abiflags" string as part of python library name, if
  667. that attribute exists (Python 3).
  668. * python/python-internal.h (IS_PY3): Define if Python 3.
  669. (Py_TPFLAGS_HAVE_ITER, Py_TPFLAGS_CHECKTYPES): Define with
  670. placeholder value if Python 3.
  671. (PyInt_Check, PyInt_FromLong, PyInt_AsLong, PyString_FromString,
  672. PyString_Decode, PyString_FromFormat, PyString_Check): Define as
  673. analogous Python 3 API function if Python 3.
  674. (PyVarObject_HEAD_INIT): Define if not already defined.
  675. (Py_TYPE): Ditto.
  676. * python/python.c (eval_python_command): Omit Py_FlushLine call if
  677. Python 3.
  678. Check return values of all Python API calls for error.
  679. Supply dummy "python" and "python-interactive" commands if Python
  680. initialization failed.
  681. (_initialize_python): Convert argc to wchar_t** if Python 3.
  682. Add module initialization for Python 3.
  683. (finish_python_initialization): Pass wchar_t * argument to
  684. PySys_SetPath if Python 3.
  685. * python/lib/gdb/__init__.py: Define "reload" if Python 3.
  686. (_GdbFile): New class for common output file behavior.
  687. (GdbOutFile): Subclass from _GdbFile.
  688. (GdbOutputErrorFile): Ditto.
  689. (auto_load_packages): Adjust syntax for Python 3 compatibility.
  690. * python/lib/gdb/printing.py: Define basestr and int if Python 3.
  691. * python/lib/gdb/prompt.py: Use sorted() function rather than
  692. sort() method.
  693. * python/lib/gdb/command/explore.py: Define raw_input if Python 3.
  694. Adjust syntax for Python 3 compatibility.
  695. * python/lib/gdb/command/pretty_printers.py: Use sorted() function
  696. rather than sort() method.
  697. Adjust syntax for Python 3 compatibility.
  698. * python/lib/gdb/command/type_printers.py: Ditto.
  699. 2012-12-12 Tom Tromey <tromey@redhat.com>
  700. * coffread.c (coff_objfile_data_key): New global.
  701. (coff_symfile_init): Use set_objfile_data.
  702. (coff_symfile_read): Use objfile_data.
  703. (coff_symfile_finish): Don't free deprecated_sym_private.
  704. (coff_free_info): New function.
  705. (_initialize_coffread): Initialize coff_objfile_data_key.
  706. * mdebugread.c (pending_list): Update comment.
  707. * objfiles.h (struct objfile) <deprecated_sym_private>: Remove.
  708. * symfile.c (reread_symbols): Don't mention
  709. deprecated_sym_private.
  710. * xcoffread.c (xcoff_objfile_data_key): New global.
  711. (XCOFF_DATA): New macro.
  712. (process_linenos, enter_line_range, xcoff_next_symbol_text)
  713. (read_xcoff_symtab, coff_getfilename, read_symbol_lineno): Use
  714. XCOFF_DATA.
  715. (xcoff_new_init) Use set_objfile_data.
  716. (xcoff_symfile_finish): Don't free deprecated_sym_private.
  717. (init_stringtab, swap_sym, scan_xcoff_symtab)
  718. (xcoff_get_toc_offset, xcoff_initial_scan): Use XCOFF_DATA.
  719. (xcoff_free_info): New function.
  720. (_initialize_xcoffread): Initialize xcoff_objfile_data_key.
  721. 2012-12-12 Mircea Gherzan <mircea.gherzan@intel.com>
  722. * MAINTAINERS (Write After Approval): Add "Mircea Gherzan".
  723. 2012-12-12 Tom Tromey <tromey@redhat.com>
  724. * coffread.c (coff_symfile_init): Use set_objfile_data.
  725. (coff_symfile_read): Use DBX_SYMFILE_INFO.
  726. * dbxread.c (dbx_objfile_data_key): New global.
  727. (dbx_symfile_init): Use set_objfile_data.
  728. (dbx_symfile_finish): Don't free deprecated_sym_stab_info.
  729. (dbx_free_symfile_info): New function.
  730. (coffstab_build_psymtabs, elfstab_build_psymtabs): Use
  731. DBX_SYMFILE_INFO.
  732. (stabsect_build_psymtabs): Use set_objfile_data.
  733. (_initialize_dbxreadb): Initialize dbx_objfile_data_key.
  734. * elfread.c (elf_symtab_read): Use DBX_SYMFILE_INFO,
  735. set_objfile_data.
  736. (free_elfinfo): Use DBX_SYMFILE_INFO.
  737. (elf_symfile_finish): Don't free deprecated_sym_stab_info.
  738. (elfstab_offset_sections): Use DBX_SYMFILE_INFO.
  739. * gdb-stabs.h (dbx_objfile_data_key): Declare.
  740. (DBX_SYMFILE_INFO): Rewrite to use objfile_data.
  741. * objfiles.h (struct objfile) <deprecated_sym_stab_info>: Remove.
  742. * somread.c (som_symfile_finish): Don't free
  743. deprecated_sym_stab_info.
  744. 2012-12-12 Joel Brobecker <brobecker@adacore.com>
  745. * gdbarch.sh (software_single_step): Remove trailing space in
  746. comment (gdbarch.h is already correct).
  747. 2012-12-11 Tom Tromey <tromey@redhat.com>
  748. * dwarf2read.c (dwarf2_get_dwz_file): Set 'dwz_file'.
  749. 2012-12-11 Tom Tromey <tromey@redhat.com>
  750. * dsrec.c (report_transfer_performance): Don't declare.
  751. (load_srec): Use gettimeofday, print_transfer_performance.
  752. * symfile.c (report_transfer_performance): Remove.
  753. 2012-12-11 Pedro Alves <pedro@codesourcery.com>
  754. Pedro Alves <palves@redhat.com>
  755. * procfs.c (procfs_make_note_section) [NEW_PROC_API]: Output a
  756. NT_PSTATUS note.
  757. * sol2-tdep.c (sol2_core_pid_to_str): Print process IDs
  758. differently from LWP IDs.
  759. 2012-12-11 Pedro Alves <palves@redhat.com>
  760. * configure.ac (detect type of /proc): Remove Unixware handling.
  761. * configure: Regenerate.
  762. * proc-api.c (ioctl_table) [PIOCLSTATUS]: Don't mention Unixware.
  763. (ioctl_table) [PCRESET]: Remove entry.
  764. * proc-events.c (SYS_lwp_create, SYS_lwp_exit, SYS_lwp_wait)
  765. (SYS_lwp_self, SYS_lwp_info, SYS_lwp_private, SYS_lwp_kill)
  766. (SYS_lwp_suspend, SYS_lwp_continue): Don't define.
  767. * proc-why.c (pr_why_table) [PR_SUSPENDED]: Don't mention Unixware.
  768. * procfs.c: Remove all UNIXWARE guarded code, and all traces of
  769. Unixware in comments throughout.
  770. * i386-tdep.c (i386_svr4_sigtramp_p): Don't match _sigacthandler,
  771. and remove mention of Unixware.
  772. 2012-12-10 Doug Evans <dje@google.com>
  773. * dwarf2read.c (dwarf2_cu): Enhance comment.
  774. (dwarf2_get_pc_bounds): Only add ranges_base for DIEs that live in
  775. the DWO file.
  776. (dwarf2_record_block_ranges): Ditto.
  777. * dwarf2read.c (create_dwo_in_dwp): Tweak comment.
  778. * symtab.c (find_pc_sect_symtab): Add comment.
  779. 2012-12-10 Tom Tromey <tromey@redhat.com>
  780. * defs.h: Don't check for definition of LONGEST.
  781. (min, max): Remove duplicates.
  782. 2012-12-10 Tom Tromey <tromey@redhat.com>
  783. * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): New function.
  784. (dwarf2_fetch_die_loc_cu_off): Rename from
  785. dwarf2_fetch_die_location_block. Rewrite to use
  786. dwarf2_fetch_die_loc_sect_off.
  787. * dwarf2loc.h (dwarf2_fetch_die_loc_sect_off): Declare.
  788. (dwarf2_fetch_die_loc_cu_off): Rename.
  789. * dwarf2loc.c (indirect_pieced_value): Use
  790. dwarf2_fetch_die_loc_sect_off.
  791. * dwarf2expr.h (struct dwarf_expr_context) <len, data>: Update
  792. comment.
  793. (struct dwarf_expr_piece) <v.ptr.die>: Now a sect_offset.
  794. * dwarf2expr.c (add_piece): Update.
  795. (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Update comment.
  796. 2012-12-10 Tom Tromey <tromey@redhat.com>
  797. * buildsym.c (struct pending_block): Move from buildsym.h.
  798. (pending_blocks): Likewise; now static.
  799. (pending_block_obstack): New global.
  800. (free_pending_blocks): Free blocks.
  801. (record_pending_block): Use pending_block_obstack.
  802. * buildsym.h (struct pending_block): Move definition to
  803. buildsym.c.
  804. (pending_blocks): Don't declare.
  805. 2012-12-10 Pedro Alves <palves@redhat.com>
  806. * solib-svr4.c (svr4_solib_create_inferior_hook) [_SCO_DS]: Remove
  807. dead SCO code, and adjust function description comment.
  808. 2012-12-09 Jan Kratochvil <jan.kratochvil@redhat.com>
  809. * configure.ac (CC_HAS_LONG_LONG): Replace by AC_MSG_ERROR.
  810. * defs.h (LONGEST, ULONGEST): Remove conditionalization for
  811. CC_HAS_LONG_LONG.
  812. * dwarf2-frame.c (DW64_CIE_ID): Likewise.
  813. * dwarf2read.c (extract_cu_value): Remove the function.
  814. (create_cus_from_index_list): Make the return type void, inline the
  815. extract_cu_value caller, include new gdb_static_assert.
  816. (create_cus_from_index): Make the return type void, update the function
  817. comment, update the create_cus_from_index_list caller.
  818. (create_signatured_type_table_from_index): Make the return type void,
  819. inline the extract_cu_value caller, include new gdb_static_assert.
  820. (dwarf2_read_index): Update the create_cus_from_index and
  821. create_signatured_type_table_from_index caller.
  822. * printcmd.c (ui_printf): Remove conditionalizations for
  823. CC_HAS_LONG_LONG.
  824. * config.in: Regenerate.
  825. * configure: Regenerate.
  826. 2012-12-09 Jan Kratochvil <jan.kratochvil@redhat.com>
  827. * dwarf2read.c (struct dwarf2_cu): New field producer_is_gcc_lt_4_3.
  828. Update the comment for checked_producer.
  829. (check_producer): New forward declaration.
  830. (producer_is_gcc_lt_4_3): New function.
  831. (find_file_and_directory): Simulate *COMP_DIR only for gcc < 4.3.
  832. (check_producer): Initialize also PRODUCER_IS_GCC_LT_4_3.
  833. 2012-12-07 Tom Tromey <tromey@redhat.com>
  834. * ada-lang.c (ada_make_symbol_completion_list): Add 'code'
  835. argument, assertion.
  836. * c-exp.y (typebase): Add completion productions.
  837. * completer.c (expression_completer): Handle tag completion.
  838. * expression.h (parse_expression_for_completion): Add argument.
  839. * f-lang.c (f_make_symbol_completion_list): Add 'code'
  840. argument.
  841. * language.h (struct language_defn)
  842. <la_make_symbol_completion_list>: Add 'code' argument.
  843. * parse.c (expout_tag_completion_type, expout_completion_name):
  844. New globals.
  845. (mark_struct_expression): Add assertion.
  846. (mark_completion_tag): New function.
  847. (parse_exp_in_context): Initialize new globals.
  848. (parse_expression_for_completion): Add 'code' argument. Handle
  849. tag completion.
  850. * parser-defs.h (mark_completion_tag): Declare.
  851. * symtab.c (default_make_symbol_completion_list_break_on): Add
  852. 'code' argument. Update.
  853. (default_make_symbol_completion_list): Add 'code' argument.
  854. (make_symbol_completion_list): Update.
  855. (make_symbol_completion_type): New function.
  856. * symtab.h (default_make_symbol_completion_list_break_on)
  857. (default_make_symbol_completion_list): Update.
  858. (make_symbol_completion_type): Declare.
  859. 2012-12-07 Tom Tromey <tromey@redhat.com>
  860. * expression.h (parse_expression_for_completion): Rename
  861. from parse_field_expression.
  862. (parse_completion): Rename from in_parse_field.
  863. * c-exp.y (lex_one_token): Update.
  864. * completer.c (expression_completer): Update.
  865. * go-exp.y (lex_one_token): Update.
  866. * p-exp.y (yylex): Update.
  867. * parse.c (parse_completion): Rename from in_parse_field.
  868. (parse_exp_in_context): Update.
  869. (parse_expression_for_completion): Rename from
  870. parse_field_expression. Update.
  871. 2012-12-07 Tom Tromey <tromey@redhat.com>
  872. * typeprint.c (_initialize_typeprint): Set completer
  873. for "whatis" and "ptype".
  874. 2012-12-07 Joel Brobecker <brobecker@adacore.com>
  875. * copyright.py (NOT_FSF_LIST): Remove duplicate entry
  876. "sim/common/cgen-fpu.h". Remove invalid entries
  877. "sim/common/sim-fpu.c" and "sim/mn10300/sim-main.h",
  878. which actually have an FSF copyright header.
  879. 2012-12-07 Joel Brobecker <brobecker@adacore.com>
  880. * osf-share/AT386/cma_thread_io.h: Delete.
  881. * osf-share/HP800/cma_thread_io.h: Delete.
  882. * osf-share/README: Delete.
  883. * osf-share/RIOS/cma_thread_io.h: Delete.
  884. * osf-share/cma_attr.h: Delete.
  885. * osf-share/cma_deb_core.h: Delete.
  886. * osf-share/cma_debug_client.h: Delete.
  887. * osf-share/cma_errors.h: Delete.
  888. * osf-share/cma_handle.h: Delete.
  889. * osf-share/cma_init.h: Delete.
  890. * osf-share/cma_list.h: Delete.
  891. * osf-share/cma_mutex.h: Delete.
  892. * osf-share/cma_sched.h: Delete.
  893. * osf-share/cma_semaphore_defs.h: Delete.
  894. * osf-share/cma_sequence.h: Delete.
  895. * osf-share/cma_stack.h: Delete.
  896. * osf-share/cma_stack_int.h: Delete.
  897. * osf-share/cma_tcb_defs.h: Delete.
  898. * osf-share/cma_util.h: Delete.
  899. * Makefile.in (HFILES_NO_SRCDIR): Remove entries for the files
  900. in osf-share.
  901. * config/djgpp/fnchange.lst: Remove osf-share/cma_stack_int.h entry.
  902. * contrib/ari/gdb_find.sh: Remove handling of osf-share.
  903. * copyright.sh (NOT_FSF_LIST): Remove "gdb/osf-share" entry.
  904. 2012-12-06 Pedro Alves <palves@redhat.com>
  905. Tom Tromey <tromey@redhat.com>
  906. * valops.c (value_cast): Move TYPE_CODE_VOID case earlier.
  907. 2012-12-06 Jens Elmenthaler <jens.elmenthaler@advantest.com>
  908. PR mi/14741:
  909. * mi/mi-cmd-var.c (varobj_update_one): Take value of
  910. attribute "dynamic" and "displayhint" from printed child,
  911. not the root variable.
  912. 2012-12-06 Joel Brobecker <brobecker@adacore.com>
  913. * aix-thread.c (getthrds): Fix type of 4th parameter.
  914. (get_signaled_thread): Change type of variable ktid to tid_t.
  915. 2012-12-06 Hui Zhu <hui_zhu@mentor.com>
  916. * dwarf2loc.c (dwarf_expr_frame_base): Add check for the return
  917. value of get_frame_block.
  918. 2012-12-05 Pierre Muller <muller@sourceware.org>
  919. Avoid memory leaks on struct cmd_list_element.doc field.
  920. * cli/cli-decode.c (add_alias_cmd): Make a copy of doc field
  921. if flags contains DOC_ALLOCATED.
  922. (add_setshow_cmd_full): Add DOC_ALLOCATED to set and show
  923. flags.
  924. (delete_cmd): Handle DOC_ALLOCATED flag.
  925. * cli/cli-decode.h (DOC_ALLOCATED): New macro for use
  926. in flags filed of struct cmd_list_element.
  927. (struct cmd_list_element): Document new flag item.
  928. 2012-12-04 Doug Evans <dje@google.com>
  929. * symmisc.c: Whitespace fixes.
  930. 2012-12-04 Karthik Bhat <kv.bhat@samsung.com>
  931. * i386-tdep.c (i386_skip_prologue): Using symbol table
  932. to find the end of prologue for clang compiled binaries.
  933. * amd64-tdep.c (amd64_skip_prologue): Using symbol table
  934. to find the end of prologue for clang compiled binaries.
  935. 2012-12-03 Doug Evans <dje@google.com>
  936. * dwarf2read.c (struct dwarf2_per_objfile): Clarify comment.
  937. (dw2_find_symbol_file): Delete unused local file_data.
  938. 2012-12-03 Tom Tromey <tromey@redhat.com>
  939. * ada-exp.y (write_object_renaming, write_var_or_type)
  940. (write_ambiguous_var, write_var_from_sym): Make blocks const.
  941. * ada-lang.c (replace_operator_with_call)
  942. (find_old_style_renaming_symbol): Make blocks const.
  943. * ada-lang.h (ada_find_renaming_symbol): Update.
  944. (struct ada_symbol_info) <block>: Now const.
  945. * breakpoint.c (watch_command_1): Update.
  946. * breakpoint.h (struct watchpoint) <exp_valid_block,
  947. cond_exp_valid_block>: Now const.
  948. * c-exp.y (classify_inner_name, classify_name): Make block
  949. argument const.
  950. * expprint.c (print_subexp_standard) <OP_VAR_VALUE>: Make 'b'
  951. const.
  952. * expression.h (innermost_block, parse_exp_1): Update.
  953. (union exp_element) <block>: Now const.
  954. * gdbtypes.c (lookup_template_type, lookup_enum, lookup_union)
  955. (lookup_struct): Make block argument const.
  956. * gdbtypes.h (lookup_template_type): Update.
  957. * go-exp.y (classify_name, classify_packaged_name)
  958. (package_name_p): Make block argument const.
  959. * objc-lang.c (lookup_struct_typedef): Make block argument const.
  960. * objc-lang.h (lookup_struct_typedef): Update.
  961. * parse.c (parse_exp_in_context, parse_exp_1)
  962. (write_exp_elt_block): Make block arguments const.
  963. (expression_context_block, innermost_block): Now const.
  964. * parser-defs.h (write_exp_elt_block): Update.
  965. (expression_context_block, innermost_block, block_found): Now
  966. const.
  967. * printcmd.c (struct display) <block>: Now const.
  968. * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
  969. * valops.c (address_of_variable): Make block argument const.
  970. * value.h (value_of_variable): Update.
  971. * varobj.c (struct varobj_root) <valid_block>: Now const.
  972. 2012-11-30 Yao Qi <yao@codesourcery.com>
  973. * breakpoint.c (print_one_breakpoint_location): Indent code.
  974. 2012-11-30 Yao Qi <yao@codesourcery.com>
  975. * breakpoint.c (print_one_breakpoint_location): Combine two
  976. blocks handling 'hit count' together.
  977. 2012-11-30 Yao Qi <yao@codesourcery.com>
  978. * infrun.c (error_is_running, ensure_not_running): Move them
  979. to ...
  980. * infcmd.c (error_is_running, ensure_not_running): ... here.
  981. Make them 'static'.
  982. * inferior.h: Remove declarations of error_is_running and
  983. ensure_not_running.
  984. 2012-11-30 Yao Qi <yao@codesourcery.com>
  985. * tic6x-linux-tdep.c (tic6x_register_sigcontext_offset): Don't
  986. check REGNUM >= 0.
  987. 2012-11-30 Yao Qi <yao@codesourcery.com>
  988. * infrun.c: Make the declaration of 'init_infwait_state'
  989. static.
  990. (init_infwait_state): Make it 'static'.
  991. 2012-11-29 Ulrich Weigand <uweigand@de.ibm.com>
  992. * python/python.c (finalize_python): Cast unused PyGILState_Ensure
  993. return value to void to avoid compiler warning.
  994. 2012-11-29 Ulrich Weigand <uweigand@de.ibm.com>
  995. * opencl-lang.c (opencl_print_type): New function.
  996. (opencl_language_arch_info): Install it.
  997. 2012-11-29 Tom Tromey <tromey@redhat.com>
  998. * contrib/ari/gdb_ari.sh: Remove rules for xasprintf and
  999. xvasprintf.
  1000. * common/common-utils.c (xasprintf, xvasprintf): Remove.
  1001. * common/common-utils.h (xasprintf, xvasprintf): Remove.
  1002. 2012-11-29 Jerome Guitton <guitton@adacore.com>
  1003. * ada-lang.c (ada_is_interface_tag): New function.
  1004. (ada_is_ignored_field): Add interface tags to the list
  1005. of ignored fields.
  1006. 2012-11-29 Jerome Guitton <guitton@adacore.com>
  1007. * ada-lang.h (ada_tag_value_at_base_address): New function
  1008. declaration.
  1009. * ada-lang.c (is_ada95_tag, ada_tag_value_at_base_address):
  1010. New functions.
  1011. (ada_to_fixed_type_1, ada_evaluate_subexp): Let ada_tag_base_address
  1012. relocate the class-wide value if need be.
  1013. (ada_value_struct_elt, ada_value_ind, ada_coerce_ref):
  1014. Let ada_tag_value_at_base_address relocate the class-wide access/ref
  1015. before dereferencing it.
  1016. * ada-valprint.c (ada_val_print_1): Relocate to base address
  1017. before displaying the content of an interface-wide ref.
  1018. 2012-11-29 Jerome Guitton <guitton@adacore.com>
  1019. * ada-lang.c (ada_evaluate_subexp): Unwrap only in EVAL_NORMAL.
  1020. 2012-11-29 Joel Brobecker <brobecker@adacore.com>
  1021. GDB 7.5.1 released.
  1022. 2012-11-29 Yao Qi <yao@codesourcery.com>
  1023. Tom Tromey <tromey@redhat.com>
  1024. * eval.c (evaluate_subexp_standard): Get the correct pointer
  1025. type for TYPE_CODE_MEMBERPTR.
  1026. 2012-11-28 Edjunior Machado <emachado@linux.vnet.ibm.com>
  1027. * rs6000-tdep.c (gdb_print_insn_powerpc): Remove info->mach checking,
  1028. since now it is being done by binutils' powerpc_init_dialect().
  1029. 2012-11-28 Tom Tromey <tromey@redhat.com>
  1030. PR gdb/14290:
  1031. * solib-darwin.c (gdb_bfd_mach_o_fat_extract): New function.
  1032. (darwin_solib_get_all_image_info_addr_at_init, darwin_bfd_open):
  1033. Use it.
  1034. * gdb_bfd.h (gdb_bfd_mark_parent): Declare.
  1035. * gdb_bfd.c (gdb_bfd_mark_parent): New function.
  1036. (gdb_bfd_openr_next_archived_file): Use it.
  1037. 2012-11-28 Markus Metzger <markus.t.metzger@intel.com>
  1038. * configure.ac: Check for linux/perf_event.h.
  1039. * config.in: Regenerated.
  1040. * configure: Regenerated.
  1041. 2012-11-28 Yao Qi <yao@codesourcery.com>
  1042. * breakpoint.c (_initialize_breakpoint): Call add_alias_cmd to
  1043. abbreviate 'delete tracepoints' to 'delete tr'.
  1044. * corefile.c (_initialize_core): Call add_alias_cmd to
  1045. abbreviate 'set gnutarget' to 'set g'.
  1046. * value.c (_initialize_values): Call add_alias_cmd to abbreviate
  1047. 'show convenience' to 'show conv'.
  1048. 2012-11-27 Joel Brobecker <brobecker@adacore.com>
  1049. * sparc-sol2-nat.c (supply_gregset): Fix first parameter in
  1050. call to sparc_supply_fpregset.
  1051. (fill_fpregset): Fix first parameter in call to
  1052. sparc_collect_fpregset.
  1053. 2012-11-27 Daniel Jacobowitz <dan@codesourcery.com>
  1054. Kazu Hirata <kazu@codesourcery.com>
  1055. Yao Qi <yao@codesourcery.com>
  1056. * objfiles.c (init_entry_point_info): Call
  1057. gdbarch_convert_from_func_ptr_addr and
  1058. gdbarch_addr_bits_remove here ...
  1059. (entry_point_address_query): ... instead of here.
  1060. * solib-svr4.c (exec_entry_point): Call
  1061. gdbarch_addr_bits_remove.
  1062. * symfile.c (generic_load): Call gdbarch_addr_bits_remove on
  1063. the entry address.
  1064. 2012-11-27 Daniel Jacobowitz <dan@codesourcery.com>
  1065. Yao Qi <yao@codesourcery.com>
  1066. * eval.c (evaluate_subexp_standard): Add handling of
  1067. TYPE_CODE_MEMBERPTR when calling functions. Correct the
  1068. result of ptype for calling a TYPE_CODE_METHODPTR.
  1069. 2012-11-27 Yao Qi <yao@codesourcery.com>
  1070. * symtab.c (symtab_symbol_info): Fix a -Wformat-extra-args
  1071. warning.
  1072. Add i18n markup.
  1073. 2012-11-26 Alexander Larsson <alexl@redhat.com>
  1074. Jan Kratochvil <jan.kratochvil@redhat.com>
  1075. Tom Tromey <tromey@redhat.com>
  1076. * NEWS: Mention mini debuginfo feature.
  1077. * minidebug.c: New file.
  1078. * configure.ac: Check for lzma.
  1079. * configure, config.in: Rebuild.
  1080. * Makefile.in (LIBLZMA): New variable.
  1081. (CLIBS): Include LIBLZMA.
  1082. (SFILES): Mention minidebug.c.
  1083. (COMMON_OBS): Mention minidebug.o.
  1084. * symfile.c (read_symbols): New function.
  1085. (syms_from_objfile, reread_symbols): Call it.
  1086. * symfile.h (find_separate_debug_file_in_section): Declare.
  1087. 2012-11-26 Keith Seitz <keiths@redhat.com>
  1088. * exec.c (exec_file_attach): Move cleanup after verifying that
  1089. memory has in fact been allocated.
  1090. 2012-11-26 Tom Tromey <tromey@redhat.com>
  1091. * ada-lang.c (user_select_syms): Use SYMBOL_SYMTAB.
  1092. * dwarf2read.c (dw2_find_symbol_file, fixup_go_packaging): Use
  1093. SYMBOL_SYMTAB.
  1094. * skip.c (skip_info): Use SYMBOL_SYMTAB.
  1095. 2012-11-26 Maxime Villard <rustyBSD@gmx.fr>
  1096. Pedro Alves <palves@redhat.com>
  1097. * common/linux-osdata.c (linux_xfer_osdata_fds): Decrease buffer
  1098. size parameter passed to readlink by one byte.
  1099. * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
  1100. * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
  1101. * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
  1102. * inf-child.c (inf_child_fileio_readlink): Decrease local buffer's
  1103. size by one byte.
  1104. 2012-11-26 Yao Qi <yao@codesourcery.com>
  1105. * f-valprint.c (f77_create_arrayprint_offset_tbl): Remove
  1106. extraneous parentheses.
  1107. 2012-11-26 Yao Qi <yao@codesourcery.com>
  1108. * remote.c (remote_start_remote): Typo fix.
  1109. 2012-11-23 David S. Miller <davem@davemloft.net>
  1110. * sparc-tdep.h (struct sparc_fpregset): New data structure.
  1111. (sparc32_sunos4_fpregset, sparc32_bsd_fpregset,
  1112. sparc32_sol2_fpregset): Declare new globals.
  1113. (sparc32_supply_fpregset, sparc32_collect_fpregset): Add new
  1114. 'fpregset' argument.
  1115. * sparc64-tdep.h (sparc64_supply_fpregset,
  1116. sparc64_collect_fpregset): Likewise.
  1117. (sparc64_sol2_fpregset, sparc64_bsd_fpregset): Declare new
  1118. globals.
  1119. * sparc-nat.h (struct sparc_fpregset): Add forward declaration.
  1120. (sparc_fpregset): Declare new global.
  1121. (sparc_supply_fpregset, sparc_collect_fpregset): Add new
  1122. 'fpregset' argument.
  1123. * sparc-linux-nat.c (supply_fpregset): Pass sparc_fpregset down
  1124. into handler.
  1125. (fill_fpregset): Likewise.
  1126. (_initialize_sparc_linux_nat): Set sparc_fpregset to
  1127. sparc32_bsd_fpregset.
  1128. * sparc-linux-tdep.c (sparc32_linux_supply_core_fpregset): Pass
  1129. sparc32_bsd_fpregset down into handler.
  1130. (sparc32_linux_collect_core_fpregset): Likewise.
  1131. * sparc-nat.c (sparc_fpregset): Define.
  1132. (sparc_supply_fpregset): Add 'fpregset' argument.
  1133. (sparc_collect_fpregset): Likewise.
  1134. (sparc_fetch_inferior_registers): Pass sparc_fpregset down
  1135. into fpregset handler.
  1136. (sparc_store_inferior_registers): Likewise.
  1137. (_initialize_sparc_nat): Set sparc_fpregset to
  1138. sparc32_sunos4_fpregset if NULL.
  1139. * sparc-sol2-nat.c (supply_gregset): Pass sparc_sol2_fpregset
  1140. down into handler.
  1141. (fill_fpregset): Likewise.
  1142. * sparc-sol2-tdep.c (sparc32_sol2_fpregset): Define.
  1143. * sparc-tdep.c (sparc32_supply_fpregset): Add fpregset arg and
  1144. use it to compute offsets.
  1145. (sparc32_collect_fpregset): Likewise.
  1146. (sparc32_sunos4_fpregset, sparc32_bsd_fpregset): Define.
  1147. * sparc64-linux-nat.c (supply_fpregset): Pass sparc64_bsd_fpregset
  1148. down into handler.
  1149. (fill_fpregset): Likewise.
  1150. * sparc64-linux-tdep.c (sparc64_linux_supply_core_fpregset):
  1151. Likewise.
  1152. (sparc64_linux_collect_core_fpregset): Likewise.
  1153. * sparc64-sol2-tdep.c (sparc64_sol2_fpregset): Define.
  1154. * sparc64-tdep.c (sparc64_supply_fpregset): Add fpregset arg and
  1155. use it to compute offsets.
  1156. (sparc64_collect_fpregset): Likewise.
  1157. (sparc64_bsd_fpregset): Define.
  1158. * sparc64fbsd-tdep.c (sparc64fbsd_supply_fpregset): Padd
  1159. sparc64_bsd_fpregset down into handler.
  1160. (sparc64fbsd_collect_fpregset): Likewise.
  1161. * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Add fpregset arg
  1162. and pass sparc{32,64}_bsd_fpregset down into handler.
  1163. (sparc64nbsd_collect_fpregset): Likewise.
  1164. * sparc64nbsd-tdep.c (sparc64nbsd_supply_fpregset): Pass
  1165. sparc64_bsd_fpregset down into handler.
  1166. * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Likewise.
  1167. * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Set sparc_fpregset
  1168. to sparc32_bsd_fpregset.
  1169. * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Pass
  1170. sparc32_bsd_fpregset down into sparc32_supply_fpregset.
  1171. (sparc32nbsd_supply_fpregset): Likewise.
  1172. 2012-11-21 Tom Tromey <tromey@redhat.com>
  1173. * gdbtypes.h (struct cplus_struct_type) <localtype_ptr>: Remove
  1174. field.
  1175. (TYPE_LOCALTYPE_PTR, TYPE_LOCALTYPE_FILE, TYPE_LOCALTYPE_LINE):
  1176. Remove.
  1177. * c-typeprint.c (c_type_print_base): Update.
  1178. 2012-11-21 Yao Qi <yao@codesourcery.com>
  1179. PR tdep/7438
  1180. * gdbarch.sh (smash_text_address): Remove.
  1181. * gdbarch.c, gdbarch.h: Regenerate.
  1182. * arm-tdep.c (arm_smash_text_address): Remove.
  1183. (arm_gdbarch_init): Don't call set_gdbarch_smash_text_address.
  1184. * hppa-tdep.c (hppa_smash_text_address): Remove.
  1185. (hppa_addr_bits_remove): Rename from hppa_smash_text_address.
  1186. (hppa_gdbarch_init): Don't call set_gdbarch_smash_text_address.
  1187. Caller update.
  1188. * coffread.c (coff_symtab_read): Caller update.
  1189. * dbxread.c (process_one_symbol): Likewise.
  1190. * elfread.c (record_minimal_symbol): Likewise.
  1191. * somread.c (som_symtab_read): Likewise.
  1192. 2012-11-20 Pierre Muller <muller@sourceware.org>
  1193. ARI fixes: sprintf rule.
  1194. Replace sprintf function calls for char arrays by
  1195. calls to xsnprintf calls.
  1196. * arm-tdep.c (arm_push_dummy_call): Replace sprintf by xsnprintf.
  1197. (arm_dwarf_reg_to_regnum, arm_return_value): Ditto.
  1198. (arm_neon_quad_read, arm_pseudo_read): Ditto.
  1199. (arm_neon_quad_write, arm_pseudo_write): Ditto.
  1200. * breakpoint.c (condition_completer): Ditto.
  1201. (create_tracepoint_from_upload): Ditto.
  1202. * dwarf2read.c (file_full_name): Ditto.
  1203. * gcore.c (gcore_command): Ditto.
  1204. * gnu-nat.c (proc_string, gnu_pid_to_str): Ditto.
  1205. * go32-nat.c (go32_sysinfo): Ditto.
  1206. * interps.c (interp_set): Ditto.
  1207. * m32c-tdep.c (make_types): Ditto.
  1208. * ppc-linux-nat.c (fetch_register, store_register): Ditto.
  1209. * remote-m32r-sdi.c (m32r_open): Ditto.
  1210. * sol-thread.c (td_err_string): Ditto.
  1211. (td_state_string, solaris_pid_to_str): Ditto.
  1212. * symtab.c (gdb_mangle_name): Ditto.
  1213. * cli/cli-script.c (execute_control_command): Ditto.
  1214. (define_command, document_command): Ditto.
  1215. * tui/tui-io.c (tui_rl_display_match_list): Ditto.
  1216. * tui/tui-stack.c (tui_make_status_line): Ditto.
  1217. * tui/tui-win.c (tui_update_gdb_sizes): Ditto.
  1218. 2012-11-20 Mike Frysinger <vapier@gentoo.org>
  1219. * cli/cli-decode.c (complete_on_cmdlist): Add a fourth arg and check
  1220. it when looking at ptr->func.
  1221. * command.h (complete_on_cmdlist): Add a fourth arg.
  1222. * completer.c (complete_line_internal): Add local ignore_help_classes,
  1223. and set it to 1 when reason is not handle_help. Pass this down to
  1224. lookup_cmd_1 and complete_on_cmdlist.
  1225. 2012-11-20 Tom Tromey <tromey@redhat.com>
  1226. * completer.c (count_struct_fields): Remove.
  1227. (expression_completer): Don't call count_struct_fields.
  1228. 2012-11-20 Pedro Alves <palves@redhat.com>
  1229. * annotate.c (breakpoints_changed): Rename to ...
  1230. (annotate_breakpoints_changed): ... this.
  1231. (annotate_stopped, breakpoint_changed): Adjust caller.
  1232. * annotate.h (breakpoints_changed): Rename to ...
  1233. (annotate_breakpoints_changed): ... this.
  1234. * breakpoint.c (set_breakpoint_condition, breakpoint_set_commands)
  1235. (do_map_commands_command, init_raw_breakpoint, clear_command)
  1236. (set_ignore_count, enable_breakpoint_disp): Adjust callers.
  1237. 2012-11-20 David S. Miller <davem@davemloft.net>
  1238. * common/linux-osdata.c (get_number_of_cpu_cores): Delete.
  1239. (linux_xfer_osdata_processes): Fetch _SC_NPROCESSORS_ONLN via
  1240. sysconf.
  1241. (get_cores_used_by_process): Update comment.
  1242. 2012-11-20 Yao Qi <yao@codesourcery.com>
  1243. * objfiles.c (init_entry_point_info): Remove trailing spaces.
  1244. 2012-11-20 Yao Qi <yao@codesourcery.com>
  1245. * infrun.c (handle_inferior_event): Pass 'saved_singlestep_ptid'
  1246. to deprecated_context_hook.
  1247. 2012-11-19 Yao Qi <yao@codesourcery.com>
  1248. * infrun.c (infwait_state): Add static.
  1249. 2012-11-16 Keith Seitz <keiths@redhat.com>
  1250. PR c++/13615
  1251. * cp-namespace.c (cp_lookup_symbol_in_namespace): Add SEARCH
  1252. parameter and pass it to lookup_symbol_file.
  1253. (cp_lookup_symbol_imports): Tell cp_lookup_symbol_in_namespace
  1254. to search base classes.
  1255. (cp_lookup_symbol_namespace): Likewise.
  1256. (lookup_namespace_scope): Likewise.
  1257. (lookup_symbol_file): Add SEARCH parameter.
  1258. If SEARCH is non-zero and no symbol is found, lookup the class
  1259. and call cp_lookup_nested_symbol.
  1260. (find_symbol_in_baseclass): New function.
  1261. (cp_lookup_nested_symbol): Do not let
  1262. cp_lookup_symbol_in_namespace search through base classes.
  1263. Do that later when there is no global symbol match.
  1264. 2012-11-16 Doug Evans <dje@google.com>
  1265. * main.c (gdb_datadir_provided): New static global.
  1266. (get_init_files): If --data-directory is provided,
  1267. and SYSTEM_GDBINIT lives in data-directory, look for it there.
  1268. * NEWS: Mention it.
  1269. 2012-11-15 Pierre Muller <muller@sourceware.org>
  1270. ARI fixes: move gdb_wait and gdb_stat headers to common subdirectory.
  1271. * gdb_stat.h: Delete. Moved to common directory.
  1272. * common/gdb_stat.h: New file.
  1273. * gdb_wait.h: Delete. Moved to common directory.
  1274. * common/gdb_wait.h: New file.
  1275. * Makefile.in (H_FILES_NO_SRC): Adapt to new header
  1276. location.
  1277. * contrib/ari/gdb_ari.sh (wait.h rule): Adapt to new gdb_wait.h
  1278. location.
  1279. (stat.h rule): Adapt to new gdb_stat.h location.
  1280. * common/linux-osdata.c: Include "gdb_stat.h" header instead of
  1281. <sys/stat.h> header.
  1282. * common/linux-ptrace.c: Include "gdb_wait.h" header instead of
  1283. <sys/wait.h> header.
  1284. 2012-11-15 Pierre Muller <muller@sourceware.org>
  1285. * configure.ac (AC_HEADER_STAT): Remove.
  1286. * gdb_stat.h (STAT_MACROS_BROKEN): Remove macro use
  1287. and corresponding code.
  1288. * configure: Regenerate.
  1289. * config.in: Regenerate.
  1290. 2012-11-15 Pierre Muller <muller@sourceware.org>
  1291. ARI xasprintf rule fixes.
  1292. * dwarf2read.c (create_dwo_in_dwp): Use xstrprintf function
  1293. instead of xasprintf.
  1294. (open_and_init_dwp_file): Ditto.
  1295. 2012-11-14 Luis Machado <lgustavo@codesourcery.com>
  1296. * value.c (value_actual_type): Check for TYPE_CODE_STRUCT
  1297. target types.
  1298. 2012-11-14 Tom Tromey <tromey@redhat.com>
  1299. * configure, config.in: Rebuild.
  1300. * configure.ac: Don't check for ctype.h, time.h.
  1301. * expprint.c: Don't use HAVE_CTYPE_H.
  1302. 2012-11-13 Tom Tromey <tromey@redhat.com>
  1303. * gdbarch.h, gdbarch.c: Rebuild.
  1304. * gdbarch.sh (set_target_gdbarch): Rename from
  1305. deprecated_target_gdbarch_select_hack.
  1306. * arch-utils.c (gdbarch_update_p): Update.
  1307. (set_gdbarch_from_file): Update.
  1308. 2012-11-14 Pierre Muller <muller@sourceware.org>
  1309. * MAINTAINERS (Responsible Maintainers/misc): Add myself
  1310. as responsible of contrib/ari directory.
  1311. 2012-11-14 Daniel Jacobowitz <dan@codesourcery.com>
  1312. Yao Qi <yao@codesourcery.com>
  1313. * arm-tdep.c (arm_addr_bits_remove): Do not adjust the low
  1314. bit of EXC_RETURN.
  1315. (arm_m_exception_cache, arm_m_exception_this_id)
  1316. (arm_m_exception_prev_register, arm_m_exception_unwind_sniffer)
  1317. (arm_m_exception_unwind): New.
  1318. (arm_gdbarch_init): Register arm_m_exception_unwind.
  1319. 2012-11-13 Giuseppe Montalto <giuseppe.montalto@st.com>
  1320. * mi/mi-main.c (mi_cmd_data_write_memory): Handle additional
  1321. parameter COUNT, for pattern filling of memory regions.
  1322. * NEWS: Mention it.
  1323. 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
  1324. * disasm.h (DISASSEMBLY_FILENAME): New macro.
  1325. * disasm.c (do_mixed_source_and_assembly): Pass filename flag on
  1326. to print_source_lines ().
  1327. * symtab.h (PRINT_SOURCE_LINES_FILENAME): New print source lines
  1328. flag.
  1329. * source.c (print_source_lines_base): Prefix source line with
  1330. filename if PRINT_SOURCE_LINES_FILENAME flag is set.
  1331. 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
  1332. * symtab.h (print_source_lines_flags): New enum.
  1333. * source.c (print_source_lines_base): Change noerror to flags.
  1334. (print_source_lines): Change noerror to flags.
  1335. 2012-11-13 Pierre Muller <muller@sourceware.org>
  1336. ARI fixes: Avoid sprintf function use rule.
  1337. * charset.c (convert_between_encodings): Use xsnprintf.
  1338. * cli-out.c (cli_field_int): Likewise.
  1339. * cp-namespace.c (cp_lookup_nested_symbol): Likewise.
  1340. * expprint.c (op_name_standard): Likewise.
  1341. * frv-tdep.c (set_variant_num_gprs): Likewise.
  1342. (set_variant_num_fprs): Likewise.
  1343. * m68hc11-tdep.c (m68hc11_initialize_register_info): Likewise.
  1344. * nto-tdep.c (nto_find_and_open_solib): Likewise.
  1345. (nto_init_solib_absolute_prefix): Likewise.
  1346. * source.c (init_source_path): Likewise.
  1347. (print_source_lines_base): Likewise.
  1348. * valprint.c (print_wchar): Likewise.
  1349. * mi/mi-out.c (mi_field_int): Likewise.
  1350. windows-nat.c (windows_pid_to_exec_file): Likewise.
  1351. (windows_create_inferior): Likewise.
  1352. (_initialize_check_for_gdb_ini): Likewise.
  1353. 2012-11-12 Joel Brobecker <brobecker@adacore.com>
  1354. * frame.h (deprecated_frame_register_read): Renames
  1355. frame_register_read.
  1356. * frame.c (deprecated_frame_register_read): Renames
  1357. frame_register_read. Update all callers.
  1358. * i386-tdep.c: Update all callers of frame_register_read.
  1359. * infcmd.c: Likewise.
  1360. * jit.c: Likewise.
  1361. * mips-tdep.c: Likewise.
  1362. * mt-tdep.c: Likewise.
  1363. * sh64-tdep.c: Likewise.
  1364. 2012-11-12 Joel Brobecker <brobecker@adacore.com>
  1365. * frame.h (frame_register_read): Remove FIXME comment.
  1366. * frame.c (frame_register_read): Add suggestion explaining
  1367. which function to use in place of this one.
  1368. 2012-11-12 Tom Tromey <tromey@redhat.com>
  1369. * python/python.c (start_type_printers): Initialize 'result_obj'.
  1370. 2012-11-12 Tom Tromey <tromey@redhat.com>
  1371. * NEWS: Update.
  1372. * data-directory/Makefile.in (PYTHON_FILES): Add
  1373. type_printers.py.
  1374. * python/lib/gdb/command/type_printers.py: New file.
  1375. * python/lib/gdb/command/types.py (TypePrinter): New class.
  1376. (_get_some_type_recognizers, get_type_recognizers,
  1377. apply_type_recognizers, register_type_printer): New
  1378. functions.
  1379. * python/py-objfile.c (objfile_object) <type_printers>: New
  1380. field.
  1381. (objfpy_dealloc): Decref new field.
  1382. (objfpy_new): Set new field.
  1383. (objfpy_get_type_printers, objfpy_set_type_printers): New
  1384. functions.
  1385. (objfile_to_objfile_object): Set new field.
  1386. (objfile_getset): Add "type_printers".
  1387. * python/py-progspace.c (pspace_object) <type_printers>: New
  1388. field.
  1389. (pspy_dealloc): Decref new field.
  1390. (pspy_new): Set new field.
  1391. (pspy_get_type_printers, pspy_set_type_printers): New functions.
  1392. (pspace_to_pspace_object): Set new field.
  1393. (pspace_getset): Add "type_printers".
  1394. * python/python.c (start_type_printers, apply_type_printers,
  1395. free_type_printers): New functions.
  1396. (_initialize_python): Set gdb.type_printers.
  1397. * python/python.h (start_type_printers, apply_type_printers,
  1398. free_type_printers): Declare.
  1399. * typeprint.c (type_print_raw_options, default_ptype_flags):
  1400. Update for new fields.
  1401. (do_free_global_table, create_global_typedef_table,
  1402. find_global_typedef): New functions.
  1403. (find_typedef_in_hash): Use find_global_typedef.
  1404. (whatis_exp): Use create_global_typedef_table. Change cleanup
  1405. handling.
  1406. * typeprint.h (struct type_print_options) <global_typedefs,
  1407. global_printers>: New fields.
  1408. 2012-11-12 Tom Tromey <tromey@redhat.com>
  1409. * c-typeprint.c (find_typedef_for_canonicalize,
  1410. print_name_maybe_canonical): New functions.
  1411. (c_print_type): Look up type name.
  1412. (cp_type_print_derivation_info): Add flags argument. Use
  1413. print_name_maybe_canonical.
  1414. (cp_type_print_method_args): Add wrapping.
  1415. (c_type_print_varspec_prefix): Use print_name_maybe_canonical.
  1416. (c_type_print_template_args): New function.
  1417. (c_type_print_base): Change wrapping. Use
  1418. print_name_maybe_canonical.
  1419. <TYPE_CODE_STRUCT>: Possibly create a typedef hash, and do
  1420. type name lookups.
  1421. * gdbtypes.c (types_equal): No longer static.
  1422. * gdbtypes.h (types_equal): Declare.
  1423. * typeprint.c (type_print_raw_options, default_ptype_flags):
  1424. Update.
  1425. (struct typedef_hash_table): New.
  1426. (hash_typedef_field, eq_typedef_field,
  1427. recursively_update_typedef_hash, add_template_parameters,
  1428. create_typedef_hash, free_typedef_hash, do_free_typedef_hash,
  1429. make_cleanup_free_typedef_hash, copy_typedef_hash_element,
  1430. copy_typedef_hash, find_typedef_in_hash): New functions.
  1431. * typeprint.h (struct type_print_options) <local_typedefs>:
  1432. New field.
  1433. (recursively_update_typedef_hash, add_template_parameters,
  1434. create_typedef_hash, free_typedef_hash,
  1435. make_cleanup_free_typedef_hash, copy_typedef_hash,
  1436. find_typedef_in_hash): Declare.
  1437. 2012-11-12 Tom Tromey <tromey@redhat.com>
  1438. * cp-support.c (inspect_type,
  1439. replace_typedefs_qualified_name, replace_typedefs): Add
  1440. finder, data arguments. Call as needed.
  1441. (cp_canonicalize_string_full): New function.
  1442. (cp_canonicalize_string_no_typedefs): Rewrite.
  1443. * cp-support.h (canonicalization_ftype): New typedef.
  1444. (cp_canonicalize_string_full): Declare.
  1445. 2012-11-12 Tom Tromey <tromey@redhat.com>
  1446. * NEWS: Update.
  1447. * c-typeprint.c (c_type_print_base): Handle print_method and
  1448. print_typedefs flags.
  1449. * gdbcmd.h (setprinttypelist, showprinttypelist): Declare.
  1450. * python/py-type.c (typy_str): Use LA_PRINT_TYPE and raw
  1451. options.
  1452. * typeprint.c (type_print_raw_options, default_ptype_flags):
  1453. Update for new field.s
  1454. (whatis_exp): Parse flags. Use LA_PRINT_TYPE.
  1455. (setprinttypelist, showprinttypelist, print_methods,
  1456. print_typedefs): New globals.
  1457. (set_print_type, show_print_type, set_print_type_methods,
  1458. show_print_type_methods, set_print_type_typedefs,
  1459. show_print_type_typedefs): New functions.
  1460. (_initialize_typeprint): Update documentation. Add "print
  1461. type methods" and "print type typedefs" parameters.
  1462. * typeprint.h (struct type_print_options) <print_methods,
  1463. print_typedefs>: New fields.
  1464. 2012-11-12 Tom Tromey <tromey@redhat.com>
  1465. * c-typeprint.c (cp_type_print_method_args): Add flags
  1466. argument. Call c_print_type, not type_print.
  1467. (c_type_print_base): Call c_print_type, not type_print.
  1468. Update.
  1469. 2012-11-12 Tom Tromey <tromey@redhat.com>
  1470. * ada-lang.c (user_select_syms, ada_print_subexp): Pass flags
  1471. to type-printing functions.
  1472. * ada-lang.h (ada_print_type): Add argument.
  1473. * ada-typeprint.c (print_array_type, print_variant_clauses,
  1474. print_variant_part, print_selected_record_field_types,
  1475. print_record_field_types, print_unchecked_union_type,
  1476. print_func_type, ada_print_type): Add flags argument.
  1477. (ada_print_typedef): Update.
  1478. * c-exp.y (OPERATOR conversion_type_id): Update.
  1479. * c-lang.h (c_print_type, c_type_print_base): Update.
  1480. * c-typeprint.c (c_print_type, c_type_print_varspec_prefix,
  1481. c_type_print_modifier, c_type_print_args,
  1482. c_type_print_varspec_suffix, c_type_print_base): Add flags
  1483. argument.
  1484. * cp-valprint.c (cp_print_class_member): Update.
  1485. * dwarf2read.c (dwarf2_compute_name): Update.
  1486. * f-lang.h (f_print_type): Add argument.
  1487. * f-typeprint.c (f_print_type): Add flags argument.
  1488. * gnu-v3-abi.c (gnuv3_print_method_ptr): Update.
  1489. * go-lang.h (go_print_type): Add argument.
  1490. * go-typeprint.c (go_print_type): Add flags argument.
  1491. * jv-lang.h (java_print_type): Add argument.
  1492. * jv-typeprint.c (java_type_print_base, java_print_type): Add
  1493. flags argument.
  1494. * language.c (unk_lang_print_type): Add flags argument.
  1495. * language.h (struct language_defn) <la_print_type>: Add flags
  1496. argument.
  1497. (LA_PRINT_TYPE): Likewise.
  1498. * m2-lang.h (m2_print_type): Add argument.
  1499. * m2-typeprint.c (m2_print_type, m2_range, m2_typedef,
  1500. m2_array, m2_pointer, m2_ref, m2_procedure, m2_long_set,
  1501. m2_unbounded_array, m2_record_fields): Add flags argument.
  1502. * p-lang.h (pascal_print_type, pascal_type_print_base,
  1503. pascal_type_print_varspec_prefix): Add argument.
  1504. * p-typeprint.c (pascal_print_type,
  1505. pascal_type_print_varspec_prefix, pascal_print_func_args,
  1506. pascal_type_print_varspec_suffix, pascal_type_print_base): Add
  1507. flags argument.
  1508. * symmisc.c (print_symbol): Update.
  1509. * typeprint.c (type_print_raw_options, default_ptype_flags):
  1510. New globals.
  1511. (type_print): Update.
  1512. * typeprint.h (struct type_print_options): New.
  1513. (type_print_raw_options): Declare.
  1514. (c_type_print_varspec_suffix, c_type_print_args): Add argument.
  1515. 2012-11-10 Keith Seitz <keiths@redhat.com>
  1516. * breakpoint.c (clear_command): Add cleanup for
  1517. sals.sals if an argument is given.
  1518. * linespec.c (parse_linespec): Do cleanups after
  1519. parsing a convenience variable.
  1520. 2012-11-10 Keith Seitz <keiths@redhat.com>
  1521. PR gdb/14288
  1522. * c-valprint.c (c_val_print): For character arrays
  1523. with "print null" option on, print ellipses if
  1524. the output is truncated and the next character is not \000.
  1525. * valprint.c (MAX_WCHARS): Define.
  1526. (WCHAR_BUFLEN): Likewise.
  1527. (WCHAR_BUFLEN_MAX): Likewise.
  1528. (struct converted_character): New structure.
  1529. (count_next_character): New function.
  1530. (print_converted_chars_to_obstack): New function.
  1531. (generic_printstr): Rewrite using count_next_character
  1532. and print_converted_chars_to_obstack.
  1533. 2012-11-10 Stephane Carrez <Stephane.Carrez@gmail.com>
  1534. * tui/tui.c (tui_rl_command_key): Switch to TUI_ONE_COMMAND_MODE
  1535. while executing the gdb command.
  1536. (tui_rl_startup_hook): Do not switch back to TUI_SINGLE_KEY_MODE if we
  1537. are called from prompt_for_continue.
  1538. * tui/tui-io.c (tui_redisplay_readline): Likewise.
  1539. 2012-11-10 Stephane Carrez <Stephane.Carrez@gmail.com>
  1540. PR tui/9584
  1541. * tui/tui.c (tui_rl_command_key): Do not call execute_command
  1542. but insert the command to execute in readline's buffer.
  1543. 2012-11-09 Tom Tromey <tromey@redhat.com>
  1544. * gdbarch.sh (target_gdbarch): Remove macro.
  1545. (get_target_gdbarch): Rename to target_gdbarch.
  1546. * gdbarch.c, gdbarch.h: Rebuild.
  1547. * ada-tasks.c, aix-thread.c, amd64-linux-nat.c, arch-utils.c,
  1548. arm-tdep.c, auxv.c, breakpoint.c, bsd-uthread.c, corefile.c,
  1549. darwin-nat-info.c, dcache.c, dsrec.c, exec.c, fbsd-nat.c,
  1550. filesystem.c, gcore.c, gnu-nat.c, i386-darwin-nat.c, i386-nat.c,
  1551. ia64-vms-tdep.c, inf-ptrace.c, infcmd.c, jit.c, linux-nat.c,
  1552. linux-tdep.c, linux-thread-db.c, m32r-rom.c, memattr.c,
  1553. mep-tdep.c, microblaze-tdep.c, mips-linux-nat.c,
  1554. mips-linux-tdep.c, mips-tdep.c, monitor.c, moxie-tdep.c,
  1555. nto-procfs.c, nto-tdep.c, ppc-linux-nat.c, proc-service.c,
  1556. procfs.c, progspace.c, ravenscar-thread.c, record.c,
  1557. remote-m32r-sdi.c, remote-mips.c, remote-sim.c, remote.c,
  1558. rl78-tdep.c, rs6000-nat.c, rx-tdep.c, s390-nat.c, sol-thread.c,
  1559. solib-darwin.c, solib-dsbt.c, solib-frv.c, solib-ia64-hpux.c,
  1560. solib-irix.c, solib-pa64.c, solib-som.c, solib-spu.c,
  1561. solib-sunos.c, solib-svr4.c, solib.c, spu-linux-nat.c,
  1562. spu-multiarch.c, spu-tdep.c, symfile-mem.c, symfile.c, symtab.c,
  1563. target-descriptions.c, target.c, target.h, tracepoint.c,
  1564. windows-nat.c, windows-tdep.c, xcoffsolib.c, cli/cli-dump.c,
  1565. common/agent.c, mi/mi-interp.c, python/py-finishbreakpoint.c,
  1566. python/py-inferior.c, python/python.c: Update.
  1567. 2012-11-09 Andrew Burgess <aburgess@broadcom.com>
  1568. * source.c (print_source_lines_base): Add fullname field giving
  1569. full path to file in mi output.
  1570. * NEWS: Mention the new fullname field.
  1571. 2012-11-09 Yao Qi <yao@codesourcery.com>
  1572. * NEWS: Mention the fix to the ambiguity of 'fo' command.
  1573. 2012-11-09 Pedro Alves <palves@redhat.com>
  1574. PR gdb/14306
  1575. * infrun.c: Include target-descriptions.h.
  1576. (follow_exec): Fetch new target description.
  1577. 2012-11-09 Yao Qi <yao@codesourcery.com>
  1578. * i386-tdep.c (i386_analyze_frame_setup): Handle opcode
  1579. 0x8d (lea).
  1580. 2012-11-09 Yao Qi <yao@codesourcery.com>
  1581. * breakpoint.c: Declare set_tracepoint_count.
  1582. (install_breakpoint): Call set_tracepoint_count if B is a
  1583. tracepoint.
  1584. (trace_command): Don't call set_tracepoint_count. Re-indent.
  1585. (strace_command, ftrace_command):
  1586. (create_tracepoint_from_upload): Likewise.
  1587. 2012-11-09 Pedro Alves <palves@redhat.com>
  1588. * gdbarch.sh (target_gdbarch) <gdbarch.h>: Reimplement as macro.
  1589. (get_target_gdbarch) <gdbarch.h>: New function.
  1590. (startup_gdbarch) <gdbarch.h>: Declare.
  1591. <gdbarch.c> (target_gdbarch): Delete.
  1592. <gdbarch.c> (deprecated_target_gdbarch_select_hack): Set the
  1593. current inferior's gdbarch.
  1594. <gdbarch.c> (get_target_gdbarch): New function.
  1595. * inferior.c: Include target-descriptions.h.
  1596. (free_inferior): Free target description info.
  1597. (add_inferior_with_spaces): Set the inferior's initial
  1598. architecture.
  1599. (clone_inferior_command): Copy the original inferior's target
  1600. description if it was user specified.
  1601. (initialize_inferiors): Add comment.
  1602. * inferior.h (struct target_desc_info): Forward declare.
  1603. (struct inferior) <gdbarch>: New field.
  1604. * linux-nat.c: Include target-descriptions.h.
  1605. (linux_child_follow_fork): Copy the parent's architecture and
  1606. target description to the child.
  1607. * target-descriptions.c: Include inferior.h.
  1608. (struct target_desc_info): New structure, holding the equivalents
  1609. of ...
  1610. (target_desc_fetched, current_target_desc)
  1611. (target_description_filename): ... these removed globals.
  1612. (get_tdesc_info, target_desc_info_from_user_p)
  1613. (copy_inferior_target_desc_info, target_desc_info_free): New.
  1614. (target_desc_fetched, current_target_desc)
  1615. (target_description_filename): Reimplemented as convenience
  1616. macros.
  1617. (tdesc_filename_cmd_string): New global.
  1618. (set_tdesc_filename_cmd): Copy the string manipulated by the "set
  1619. tdescs filename ..." commands to the per-inferior equivalent.
  1620. (show_tdesc_filename_cmd): Get the value to show from the
  1621. per-inferior description filename.
  1622. (_initilize_target_descriptions): Change the "set/show tdesc
  1623. filename" commands' variable.
  1624. * target-descriptions.h (struct target_desc, struct target_desc_info)
  1625. (struct inferior): Forward declare.
  1626. (target_find_description, target_clear_description)
  1627. (target_current_description): Adjust comments.
  1628. (copy_inferior_target_desc_info, target_desc_info_free)
  1629. (target_desc_info_from_user_p). Declare.
  1630. 2012-11-08 Stephane Carrez <Stephane.Carrez@gmail.com>
  1631. * tui/tui-hooks.c (tui_about_to_proceed): New function.
  1632. (tui_target_wait_hook): Remove.
  1633. (tui_install_hooks): Install the about_to_proceed observer.
  1634. (tui_remove_hooks): And remove it here.
  1635. 2012-11-08 Tom Tromey <tromey@redhat.com>
  1636. * linux-tdep.c (linux_make_siginfo_note): New function.
  1637. (linux_make_corefile_notes): Use it.
  1638. * corelow.c (get_core_siginfo): New function.
  1639. (core_xfer_partial) <TARGET_OBJECT_SIGNAL_INFO>: New case.
  1640. 2012-11-08 Tom Tromey <tromey@redhat.com>
  1641. PR gdb/14704:
  1642. * gdb_bfd.c (gdb_bfd_ref): Set BFD_DECOMPRESS.
  1643. (zlib_decompress_section): Remove.
  1644. (gdb_bfd_map_section): Only check for compressed section
  1645. in mmap case. Use bfd_get_full_section_contents.
  1646. * osabi.c (check_note): Add 'sectsize' argument. Read
  1647. section data.
  1648. (generic_elf_osabi_sniff_abi_tag_sections): Don't read
  1649. section data. Update for check_note change.
  1650. * xcoffread.c (xcoff_initial_scan): Use
  1651. bfd_get_full_section_contents.
  1652. * py-auto-load.c (auto_load_section_scripts): Use
  1653. bfd_get_full_section_contents.
  1654. * contrib/cc-with-tweaks.sh: Add -Z option.
  1655. 2012-11-08 Tom Tromey <tromey@redhat.com>
  1656. * python/py-bpevent.c: Include defs.h.
  1657. * python/py-continueevent.c: Include defs.h.
  1658. * python/py-event.c: Include defs.h.
  1659. * python/py-event.h: Don't include defs.h.
  1660. * python/py-events.h: Don't include defs.h.
  1661. * python/py-evts.c: Include defs.h.
  1662. * python/py-exitedevent.c: Include defs.h.
  1663. * python/py-newobjfileevent.c: Include defs.h.
  1664. * python/py-signalevent.c: Include defs.h.
  1665. * python/py-stopevent.c: Include defs.h.
  1666. * python/py-threadevent.c: Include defs.h.
  1667. 2012-11-08 Pierre Muller <muller@sourceware.org>
  1668. * update-web-ari.sh (print_heading): Add number of files
  1669. checked.
  1670. (nb_files): New variable counting the number of sources
  1671. files found by gdb_find.sh script.
  1672. (debug_awk): New variable to allow extra debug output.
  1673. (indexes): Add more information if DEBUG_AWK is set.
  1674. 2012-11-08 Edjunior Machado <emachado@linux.vnet.ibm.com>
  1675. * ppc-linux-tdep.c (ppc64_standard_linkage1, ppc64_standard_linkage2,
  1676. ppc64_standard_linkage3): Mark ld r11 instructions as optional,
  1677. following the change in PLT call stubs on linker.
  1678. 2012-11-08 Pierre Muller <muller@sourceware.org>
  1679. * contrib/ari/gdb_ari.sh (LANG, LC_ALL): Use 'C' instead of 'c'
  1680. as default language.
  1681. (AWK): Use = instead of == for sh test to avoid warning.
  1682. (Linux rule): Correct [:digit] into [[:digit:]].
  1683. (__func__ rule): Adapt to "gdb_assert.h" move to common subdirectory.
  1684. (vasprintf rule): Adapt to common subdirectory moves.
  1685. (xasprintf rule): Idem.
  1686. (xvasprintf rule): Idem.
  1687. (var_boolean rule): Accept occurence in == or != test.
  1688. * contrib/ari/gdb_find.sh: Also prune gdbtk directory.
  1689. 2012-11-08 Stephane Carrez <Stephane.Carrez@gmail.com>
  1690. * tui/tui-hooks.c (tui_inferior_exit): New function.
  1691. (tui_detach_hook): Remove.
  1692. (tui_install_hooks): Install the inferior exit observer.
  1693. (tui_remove_hooks): Remove it.
  1694. 2012-11-08 Yao Qi <yao@codesourcery.com>
  1695. PR gdb/14777.
  1696. * source.c (_initialize_source): Call add_com_alias to abbreviate
  1697. 'forward-search' as 'fo'.
  1698. 2012-11-07 Pedro Alves <palves@redhat.com>
  1699. * arm-tdep.c: Make defs.h be the first include.
  1700. * coff-pe-read.c: Ditto.
  1701. * gnu-nat.c: Ditto.
  1702. * go32-nat.c: Ditto.
  1703. * i386-nat.c: Ditto.
  1704. * ppcnbsd-nat.c: Ditto.
  1705. * ada-varobj.h: Don't include defs.h.
  1706. * i386-darwin-tdep.h: Ditto.
  1707. * i386-nat.h: Ditto.
  1708. 2012-11-07 Pedro Alves <palves@redhat.com>
  1709. * MAINTAINERS: New FSF-appointed maintainers replace the Steering
  1710. Committee.
  1711. 2012-11-07 Pierre Muller <muller@sourceware.org>
  1712. * common/linux-osdata.c (dirent.h): ARI fix: Remove.
  1713. File already uses "gdb_dirent.h" header.
  1714. 2012-11-07 Yao Qi <yao@codesourcery.com>
  1715. * breakpoint.c (get_tracepoint_by_number): Remove 'extern int
  1716. tracepoint_count'.
  1717. 2012-11-06 Tom Tromey <tromey@redhat.com>
  1718. * target.h (inferior_has_forked, inferior_has_vforked)
  1719. (inferior_has_execd, inferior_has_called_syscall): Remove
  1720. declarations.
  1721. 2012-11-06 Pierre Muller <muller@sourceware.org>
  1722. * remote.c (remote_insert_hw_breakpoint): ARI fix,
  1723. add missing internalization markup.
  1724. 2012-11-06 Pedro Alves <palves@redhat.com>
  1725. PR gdb/14810
  1726. * breakpoint.c (bpstat_stop_status): Skip disabled locations.
  1727. 2012-11-06 Pierre Muller <muller@sourceware.org>
  1728. * contrib/ari/create-web-ari-in-src.sh: Avoid problem if script
  1729. is not executable.
  1730. 2012-11-05 Joel Brobecker <brobecker@adacore.com>
  1731. * gnulib/update-gnulib.sh: New script.
  1732. 2012-11-05 Stephane Carrez <Stephane.Carrez@gmail.com>
  1733. * MAINTAINERS: Update my email address.
  1734. 2012-11-05 Tom Tromey <tromey@redhat.com>
  1735. * frame.c (put_frame_register): Don't use temporary buffer.
  1736. 2012-11-05 Pedro Alves <palves@redhat.com>
  1737. * inferior.c (exit_inferior_1): Clear 'vfork_parent' in the vfork
  1738. child. Clear 'pending_detach'.
  1739. * infrun.c (handle_vfork_child_exec_or_exit): Clear
  1740. 'pending_detach' in the vfork parent.
  1741. 2012-11-05 Doug Evans <dje@google.com>
  1742. Add support for DWP files. http://gcc.gnu.org/wiki/DebugFissionDWP
  1743. * contrib/cc-with-tweaks.sh: Add -p parameter to invoke dwp.
  1744. * dwarf2read.c: #include "elf-bfd.h".
  1745. (struct dwarf2_per_objfile): New members dwp_checked, dwp_file.
  1746. (dwop_section_names): Renamed from dwo_section names. All uses
  1747. updated. Add entries for .debug_cu_index, .debug_tu_index.
  1748. (struct dwo_file): Rename dwo_name to name, dwo_bfd to dbfd.
  1749. All uses updated.
  1750. (struct dwp_sections): New type.
  1751. (struct virtual_dwo_sections): New type.
  1752. (struct dwp_hash_table): New type.
  1753. (struct dwp_file): New type.
  1754. (init_cutu_and_read_dies): Ensure DWO info/types section has been
  1755. read in. Handle DWOs coming from DWP files.
  1756. (lookup_dwo_file_slot): New function.
  1757. (dwarf2_locate_dwo_sections): Move definition closer to use.
  1758. (create_dwo_debug_info_hash_table_reader): Renamed from
  1759. create_debug_info_hash_table_reader. All callers updated.
  1760. (create_dwo_debug_info_hash_table): Renamed from
  1761. create_debug_info_hash_table. All callers updated.
  1762. (create_dwp_hash_table): New function.
  1763. (locate_virtual_dwo_sections, create_dwo_in_dwp): New functions.
  1764. (lookup_dwo_in_dwp): New function.
  1765. (try_open_dwop_file): Renamed from try_open_dwo_file. New parameter
  1766. is_dwp. All callers updated.
  1767. (open_dwop_file): Renamed from open_dwo_file. All callers updated.
  1768. (open_and_init_dwo_file): Renamed from init_dwo_file.
  1769. All callers updated.
  1770. (lookup_dwo_file): Delete.
  1771. (dwarf2_locate_dwp_sections): New function.
  1772. (hash_dwp_loaded_cutus, eq_dwp_loaded_cutus): New functions.
  1773. (allocate_dwp_loaded_cutus_table): New function.
  1774. (open_and_init_dwp_file): New function.
  1775. (lookup_dwo_cutu): New function.
  1776. (lookup_dwo_comp_unit, lookup_dwo_type_unit): Call it.
  1777. 2012-11-03 Yao Qi <yao@codesourcery.com>
  1778. Fix PR gdb/14617.
  1779. * breakpoint.c (trace_pass_set_count): Call
  1780. observer_notify_breakpoint_modified instead of
  1781. observer_notify_tracepoint_modified.
  1782. * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
  1783. 2012-11-02 Tom Tromey <tromey@redhat.com>
  1784. * breakpoint.c (catch_syscall_completer): Pass 'word' as second
  1785. argument to complete_on_enum.
  1786. 2012-11-02 Tom Tromey <tromey@redhat.com>
  1787. * configure: Rebuild.
  1788. * configure.ac (build_warnings): Add -Wempty-body.
  1789. * m68k-tdep.c (m68k_gdbarch_init): Remove empty 'if'.
  1790. * remote.c (handle_notification): Use braces for empty 'else' body.
  1791. * s390-tdep.c (s390_analyze_prologue): Use braces for empty
  1792. 'else' body.
  1793. * sh64-tdep.c (sh64_push_dummy_call): Use braces for empty
  1794. 'else' body.
  1795. * solib-som.c (som_relocate_section_addresses): Use braces
  1796. for empty 'else' body.
  1797. * ui-file.c (stdio_file_write): Use braces for empty 'if' body.
  1798. (stdio_file_write_async_safe, stdio_file_fputs): Likewise.
  1799. 2012-11-02 Pedro Alves <palves@redhat.com>
  1800. PR gdb/14766
  1801. * infrun.c (handle_inferior_event)
  1802. <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Switch to
  1803. null_ptid before handling a vfork child exec or exit. Switch to
  1804. the event ptid afterwards.
  1805. 2012-11-02 Yao Qi <yao@codesourcery.com>
  1806. * std-operator.def: Remove OP_LABELED.
  1807. * eval.c: Remove the declaration of 'get_label'.
  1808. (get_label): Remove.
  1809. (evaluate_struct_tuple): Remove code handling OP_LABELED.
  1810. Update comment.
  1811. Remove local variable 'variantno' and related code.
  1812. Replace 'substruct_type' with 'struct_type'. Replace 'subfieldno'
  1813. with 'fieldno'.
  1814. * expprint.c (print_subexp_standard): Likewise.
  1815. (dump_subexp_body_standard): Likewise.
  1816. * parse.c (operator_length_standard): Likewise.
  1817. 2012-11-01 Pierre Muller <muller@ics.u-strasbg.fr>
  1818. Incorporate ARI web page generator into GDB sources.
  1819. * contrib/ari/create-web-ari-in-src.sh: New file.
  1820. * contrib/ari/gdb_ari.sh: New file.
  1821. * contrib/ari/gdb_find.sh: New file.
  1822. * contrib/ari/update-web-ari.sh: New file.
  1823. 2012-10-31 Tom Tromey <tromey@redhat.com>
  1824. * gdbarch.c: Rebuild.
  1825. * gdbarch.sh: Remove references to gdbarch_swap.
  1826. * corelow.c (core_open): Remove obsolete comment.
  1827. 2012-10-31 Andrew Burgess <aburgess@broadcom.com>
  1828. PR cli/14772
  1829. * c-typeprint.c (c_print_type): Don't print a space for vector
  1830. types, this is handled within the suffix.
  1831. (c_type_print_varspec_suffix): Add a space to vector suffix.
  1832. 2012-10-26 Pedro Alves <palves@redhat.com>
  1833. * amd64-tdep.c (amd64_relocate_instruction): Use
  1834. store_unsigned_integer instead of memcpy.
  1835. * i386-tdep.c (i386_relocate_instruction): Ditto.
  1836. 2012-10-26 Pedro Alves <palves@redhat.com>
  1837. * infrun.c (handle_inferior_event): Merge handling of
  1838. TARGET_WAITKIND_EXITED and TARGET_WAITKIND_SIGNALLED into a single
  1839. switch case.
  1840. 2012-10-26 Pedro Alves <palves@redhat.com>
  1841. * infrun.c (handle_inferior_event) <TARGET_WAITKIND_SIGNALLED>:
  1842. Remove comment.
  1843. 2012-10-26 Pedro Alves <palves@redhat.com>
  1844. * target.c (target_waitstatus_to_string): Handle
  1845. TARGET_WAITKIND_VFORK_DONE.
  1846. 2012-10-26 Pedro Alves <palves@redhat.com>
  1847. * infrun.c (handle_inferior_event): Print TARGET_WAITKIND_VFORKED
  1848. as "TARGET_WAITKIND_VFORKED", not "TARGET_WAITKIND_FORKED".
  1849. 2012-10-24 Tristan Gingold <gingold@adacore.com>
  1850. * ravenscar-sparc-thread.c (ravenscar_sparc_fetch_registers):
  1851. Add comments.
  1852. 2012-10-24 Joel Brobecker <brobecker@adacore.com>
  1853. * ravenscar-thread.c (ravenscar_wait): Only update the list
  1854. of threads and inferior_ptid if the inferior is still alive.
  1855. 2012-10-24 Joel Brobecker <brobecker@adacore.com>
  1856. * ada-lang.c (is_known_support_routine): Use lbasename when
  1857. matching the symtab's filename against
  1858. known_runtime_file_name_patterns.
  1859. 2012-10-24 Joel Brobecker <brobecker@adacore.com>
  1860. * ada-lang.c (ada_same_array_size_p): New function.
  1861. (ada_promote_array_of_integrals): New function.
  1862. (coerce_for_assign): Add handling of arrays where the elements
  1863. are integrals of a smaller size than the size of the target
  1864. array element type.
  1865. 2012-10-24 Joel Brobecker <brobecker@adacore.com>
  1866. * doublest.c (convert_doublest_to_floatformat): Fix comparison
  1867. against maximum exponent value.
  1868. 2012-10-24 Joel Brobecker <brobecker@adacore.com>
  1869. * ada-lang.h (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Add entry for
  1870. "unwind-seh.c".
  1871. 2012-10-24 Joel Brobecker <brobecker@adacore.com>
  1872. * ada-lang.c (ada_template_to_fixed_record_type_1): Do not
  1873. strip typedef layer when computing the fixed type's field type,
  1874. only when computing its size.
  1875. 2012-10-24 Mark Kettenis <kettenis@gnu.org>
  1876. PR gdb/12783
  1877. * i386-tdep.c (i386_return_value): Handle complex double and long
  1878. double.
  1879. 2012-10-24 Joel Brobecker <brobecker@adacore.com>
  1880. * windows-nat.c (windows_create_inferior) [!__CYGWIN__]:
  1881. New local variable args_len.
  1882. Quote the name of the executable when computing the command line.
  1883. 2012-10-23 Mark Kettenis <kettenis@gnu.org>
  1884. PR gdb/12796
  1885. PR gdb/12798
  1886. PR gdb/12800
  1887. * amd64-tdep.h (enum amd64_regnum): Add AMD64_ST1_REGNUM and
  1888. AMD64_FTAG_REGNUM.
  1889. * amd64-tdep.c (amd64_classify): Classify complex types.
  1890. (amd64_return_value): Handle the COMPLEX_X87 class.
  1891. 2012-10-23 Joel Brobecker <brobecker@adacore.com>
  1892. * rs6000-aix-tdep.c (rs6000_aix_auto_wide_charset): New function.
  1893. (rs6000_aix_init_osabi): Set auto_wide_charset gdbarch method.
  1894. 2012-10-23 Joel Brobecker <brobecker@adacore.com>
  1895. * amd64-windows-tdep.c (amd64_windows_auto_wide_charset): New
  1896. function.
  1897. (amd64_windows_init_abi): Set auto_wide_charset gdbarch method
  1898. to amd64_windows_auto_wide_charset.
  1899. 2012-10-23 Yao Qi <yao@codesourcery.com>
  1900. * event-top.c (mark_async_signal_handler_wrapper): Remove.
  1901. * event-top.h: Remove its declaration.
  1902. (async_request_quit): Call mark_async_signal_handler instead of
  1903. mark_async_signal_handler_wrapper.
  1904. (async_do_nothing, async_disconnect): Likewise.
  1905. (async_stop_sig): Likewise.
  1906. * remote.c (handle_remote_sigint): Likewise.
  1907. (handle_remote_sigint_twice): Likewise.
  1908. 2012-10-23 Yao Qi <yao@codesourcery.com>
  1909. * event-top.c (sigint_token, sighup_token): Replace 'void *'
  1910. with 'static struct async_signal_handler *'.
  1911. (sighup_token, sigquit_token, sigstp_token): Likewise.
  1912. 2012-10-22 Ali Anwar <ali_anwar@codesourcery.com>
  1913. * gdbarch.sh (function_list): Use 'pstring' when printing
  1914. a variable which could return NULL.
  1915. * gdbarch.c: Regenerate.
  1916. 2012-10-10 Joel Brobecker <brobecker@adacore.com>
  1917. Tom Tromey <tromey@redhat.com>
  1918. * rs6000-aix-tdep.c (rs6000_aix_osabi_sniffer): Replace
  1919. inneffective if condition by gdb assertion. Add function
  1920. description comment.
  1921. 2012-10-19 Joel Brobecker <brobecker@adacore.com>
  1922. * parser-defs.h (struct exp_descriptor): Document constraint
  1923. on return value for "op_name" callbacks.
  1924. 2012-10-18 Tom Tromey <tromey@redhat.com>
  1925. * tracepoint.c (print_one_static_tracepoint_marker): Constify.
  1926. * symtab.c (iterate_over_some_symtabs): Constify.
  1927. * source.h (symtab_to_fullname): Return 'const char *'.
  1928. * source.c (symtab_to_fullname): Return 'const char *'.
  1929. * python/py-symtab.c (stpy_fullname): Constify.
  1930. * cli/cli-cmds.c (edit_command): Constify.
  1931. * breakpoint.c (print_breakpoint_location)
  1932. (update_static_tracepoint): Constify.
  1933. 2012-10-18 Tom Tromey <tromey@redhat.com>
  1934. * breakpoint.c (compare_breakpoints): Fix comparison.
  1935. 2012-10-18 Tom Tromey <tromey@redhat.com>
  1936. * valprint.c (generic_emit_char, generic_printstr): Pass size of
  1937. gdb_wchar_t to convert_between_encodings.
  1938. 2012-10-17 Yao Qi <yao@codesourcery.com>
  1939. * breakpoint.c (invalidate_bp_value_on_memory_change): Add one
  1940. more parameter 'inferior'.
  1941. * corefile.c (write_memory_with_notification): Caller update.
  1942. * mi/mi-cmd-var.c: Include "mi-main.h".
  1943. (mi_cmd_var_assign): Set mi_suppress_notification.data_write_memory
  1944. to 1 and restore it later.
  1945. * mi/mi-cmds.c (mi_cmd mi_cmds): Update for "data-write-memory"
  1946. and "data-write-memory-bytes.
  1947. * mi/mi-interp.c: Include objfiles.h.
  1948. (mi_interpreter_init): Call observer_attach_memory_changed.
  1949. (mi_memory_changed): New.
  1950. * mi/mi-main.h (struct mi_suppress_notification) <memory>:
  1951. New field.
  1952. * NEWS: Mention new MI notification "memory-changed".
  1953. 2012-10-16 Jan Kratochvil <jan.kratochvil@redhat.com>
  1954. * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Remove comment.
  1955. 2012-10-15 Doug Evans <dje@google.com>
  1956. New option -nh: inhibit loading of ~/.gdbinit.
  1957. * NEWS: Mention -nh.
  1958. * main.c (captured_main): Recognize and process -nh.
  1959. (print_gdb_help): Mention -nh.
  1960. * gdb.1: Mention -nh. Remove erroneous docs on -nx behavior.
  1961. 2012-10-15 H.J. Lu <hongjiu.lu@intel.com>
  1962. PR backtrace/14646
  1963. PR gdb/14647
  1964. * i386-tdep.h (gdbarch_tdep): Remove sp_regnum_from_eax and
  1965. pc_regnum_from_eax.
  1966. * i386-tdep.c (i386_gdbarch_init): Don't use sp_regnum_from_eax
  1967. nor pc_regnum_from_eax.
  1968. * amd64-tdep.c (amd64_x32_init_abi): Don't set sp_regnum_from_eax
  1969. nor pc_regnum_from_eax.
  1970. 2012-10-15 Jan Kratochvil <jan.kratochvil@redhat.com>
  1971. Fix entry values resolving in inlined frames.
  1972. * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Move func_addr,
  1973. gdbarch and caller_frame initialization later. Skip INLINE_FRAME
  1974. entries of FRAME.
  1975. 2012-10-15 Joel Brobecker <brobecker@adacore.com>
  1976. * configure.ac: Build with -DMS_WIN64 if building with Python
  1977. enabled using GCC on amd64-windows.
  1978. * configure: Regenerate.
  1979. 2012-10-15 Tom Tromey <tromey@redhat.com>
  1980. PR python/14635:
  1981. * python/py-symtab.c (del_objfile_sal): Set 'symtab' field
  1982. to Py_None.
  1983. 2012-10-15 Tom Tromey <tromey@redhat.com>
  1984. PR python/14634:
  1985. * python/py-symbol.c (sympy_dealloc): Check for NULL symbol.
  1986. 2012-10-11 Andrew Burgess <aburgess@broadcom.com>
  1987. * remote-sim.c (gdbsim_create_inferior): Call init_thread_list to
  1988. reset thread numbering back to 1.
  1989. 2012-10-11 Doug Evans <dje@google.com>
  1990. PR breakpoints/14643.
  1991. * linespec.c (struct ls_parser): New member keyword_ok.
  1992. (linespec_lexer_lex_string): Add comment.
  1993. (linespec_lexer_lex_one): Ignore keywords if it's the wrong place
  1994. for one.
  1995. (parse_linespec): Set keyword_ok.
  1996. 2012-10-10 Doug Evans <dje@google.com>
  1997. * dwarf2read.c (process_psymtab_comp_unit_reader): Remove duplicate
  1998. "0x" prefix on address in log message.
  1999. * dwarf2read.c (read_1_byte): Add const to buf parameter.
  2000. (read_1_signed_byte, read_2_bytes, read_2_signed_bytes): Ditto.
  2001. (read_4_bytes, read_4_signed_bytes, read_8_bytes): Ditto.
  2002. (lookup_dwo_file): Add const to dwo_name parameter.
  2003. (lookup_dwo_comp_unit, lookup_dwo_type_unit): Ditto.
  2004. 2012-10-06 Jan Kratochvil <jan.kratochvil@redhat.com>
  2005. Fix crash during stepping on ppc32.
  2006. * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Test NULL
  2007. SYM.
  2008. 2012-10-03 Doug Evans <dje@google.com>
  2009. PR symtab/14601
  2010. * buildsym.c (buildsym_init): Reset using_directives to NULL.
  2011. 2012-10-02 Andrew Burgess <aburgess@broadcom.com>
  2012. * remote-sim.c (dump_mem): Always dump buffer contents, zero fill
  2013. output and use uint32_t not long to ensure 4 byte size.
  2014. 2012-10-02 Joel Brobecker <brobecker@adacore.com>
  2015. * rs6000-nat.c (add_vmap): Set "last" to "next" after having
  2016. unref'ed it.
  2017. 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
  2018. * target.c (simple_search_memory): Include access length in
  2019. warning message.
  2020. 2012-09-28 Nathan Miller <nathanm2@us.ibm.com>
  2021. Edjunior Machado <emachado@linux.vnet.ibm.com>
  2022. PR gdb/13989
  2023. * solib.c (solib_find): Prevent GDB from loading native libraries when
  2024. debugging a cross-target corefile.
  2025. 2012-09-28 selven <pcthegreat@gmail.com>
  2026. Make definition match declaration.
  2027. * regcache.c (regcache_register_status): Change return type to
  2028. enum register_status.
  2029. 2012-09-28 Yao Qi <yao@codesourcery.com>
  2030. * mi/mi-main.c (mi_cmd_data_write_memory): Call
  2031. write_memory_with_notification instead of write_memory.
  2032. (mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
  2033. instead of target_write_memory.
  2034. 2012-09-28 Yao Qi <yao@codesourcery.com>
  2035. * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
  2036. when the length of content is not an even number.
  2037. 2012-09-27 Tom Tromey <tromey@redhat.com>
  2038. Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
  2039. * cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
  2040. 2012-09-27 Joel Brobecker <brobecker@adacore.com>
  2041. * sol-thread.c (sol_thread_fetch_registers)
  2042. (sol_thread_store_registers): Delete commented out code.
  2043. 2012-09-27 Joel Brobecker <brobecker@adacore.com>
  2044. * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
  2045. Move these functions to sparc-sol-thread.c.
  2046. * sparc-sol-thread.c: New file.
  2047. * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
  2048. sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
  2049. configurations.
  2050. * configure: Regenerate.
  2051. 2012-09-27 Joel Brobecker <brobecker@adacore.com>
  2052. * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
  2053. Remove commented-out code.
  2054. 2012-09-27 Joel Brobecker <brobecker@adacore.com>
  2055. * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
  2056. Enable this code for sparc hosts only.
  2057. 2012-09-27 Joel Brobecker <brobecker@adacore.com>
  2058. * procfs.h (procfs_find_LDT_entry): Add declaration.
  2059. * sol-thread.c (ps_lgetLDT): Delete local declaration of
  2060. function procfs_find_LDT_entry.
  2061. 2012-09-27 Joel Brobecker <brobecker@adacore.com>
  2062. * procfs.c (proc_get_LDT_entry): Make static.
  2063. 2012-09-27 Joel Brobecker <brobecker@adacore.com>
  2064. * procfs.c (proc_find_memory_regions): Fix declaration.
  2065. 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
  2066. * amd64-tdep.c (amd64_return_value): Revert previous change
  2067. that used TYPE_LENGTH directly.
  2068. * bfin-tdep.c (bfin_extract_return_value): Likewise.
  2069. (bfin_store_return_value): Likewise.
  2070. * cris-tdep.c (cris_store_return_value): Likewise.
  2071. (cris_extract_return_value): Likewise.
  2072. * h8300-tdep.c (h8300_extract_return_value): Likewise.
  2073. * hppa-tdep.c (hppa64_return_value): Likewise.
  2074. * lm32-tdep.c (lm32_store_return_value): Likewise.
  2075. * microblaze-tdep.c (microblaze_store_return_value): Likewise.
  2076. * spu-tdep.c (spu_value_from_register): Likewise.
  2077. * vax-tdep.c (vax_return_value): Likewise.
  2078. 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
  2079. * gdbtypes.c (lookup_array_range_type): Expand parameters
  2080. LOW_BOUND and HIGH_BOUND to LONGEST.
  2081. (lookup_string_range_type): Likewise.
  2082. * gdbtypes.h (lookup_array_range_type): Likewise.
  2083. (lookup_string_range_type): Likewise.
  2084. * valops.c (value_cstring): Expand parameter LEN to ssize_t.
  2085. Expand HIGHBOUND to ssize_t.
  2086. (value_string): Likewise.
  2087. * value.h (value_cstring): Expand parameter LEN to ssize_t.
  2088. (value_string): Likewise.
  2089. 2012-09-27 Yao Qi <yao@codesourcery.com>
  2090. PR breakpoints/13898
  2091. * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
  2092. * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
  2093. per breakpoint type.
  2094. 2012-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
  2095. * procfs.c: Add gdb_bfd header.
  2096. * rs6000-nat.c: Likewise.
  2097. * solib-pa64.c: Likewise.
  2098. * spu-linux-nat.c: Likewise.
  2099. * windows-nat.c: Likewise.
  2100. 2012-09-26 Tom Tromey <tromey@redhat.com>
  2101. * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
  2102. 2012-09-26 Tom Tromey <tromey@redhat.com>
  2103. * dwarf2read.c (mark_common_block_symbol_computed): New function.
  2104. (read_common_block): Handle child DIEs with
  2105. DW_AT_data_member_location.
  2106. (new_symbol_full): Add special case for common blocks.
  2107. 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
  2108. Tom Tromey <tromey@redhat.com>
  2109. * dwarf2read.c (read_common_block): Rewrite.
  2110. (new_symbol_full): Handle DW_TAG_common_block.
  2111. * f-lang.c (head_common_list, find_common_for_function):
  2112. Remove.
  2113. * f-lang.h (struct common_entry, struct saved_f77_common,
  2114. SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
  2115. COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
  2116. BLANK_COMMON_NAME_LOCAL): Remove.
  2117. (struct common_block): New.
  2118. * f-valprint.c (list_all_visible_commons): Remove.
  2119. (info_common_command_for_block): New function.
  2120. (info_common_command): Use it.
  2121. * stack.c (iterate_over_block_locals): Special case for
  2122. COMMON_BLOCK_DOMAIN.
  2123. * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
  2124. constant.
  2125. (struct general_symbol_info) <value.common_block>: New field.
  2126. (SYMBOL_VALUE_COMMON_BLOCK): New define.
  2127. 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
  2128. Tom Tromey <tromey@redhat.com>
  2129. * f-lang.c (allocate_saved_bf_node,
  2130. allocate_saved_function_node, allocate_saved_f77_common_node,
  2131. allocate_common_entry_node, tail_common_list, current_common,
  2132. saved_bf_list, saved_bf_list_end, current_head_bf_list,
  2133. tmp_bf_ptr, add_common_block, add_common_entry,
  2134. find_first_common_named, patch_common_entries,
  2135. patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
  2136. global_remote_debug, get_bf_for_fcn, saved_function_list,
  2137. saved_function_list_end, clear_function_list, struct saved_fcn,
  2138. struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
  2139. SAVED_BF, SAVED_BF_PTR): Remove.
  2140. * f-lang.h (tail_common_list, current_common,
  2141. UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
  2142. BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
  2143. DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
  2144. real_main_c_value): Remove.
  2145. * f-valprint.c (there_is_a_visible_common_named): Remove.
  2146. 2012-09-26 Andrew Burgess <aburgess@broadcom.com>
  2147. * breakpoint.c (update_global_location_list): Ignore previous
  2148. duplicate status of a breakpoint when starting a new scan for
  2149. duplicate breakpoints.
  2150. 2012-09-26 Karthik Bhat <kv.bhat@samsung.com>
  2151. PR breakpoints/14419
  2152. * arm-tdep.c (arm_skip_prologue): Extending producer check to
  2153. support LLVM compiler.
  2154. 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
  2155. * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
  2156. * bfin-tdep.c (bfin_extract_return_value): Likewise.
  2157. (bfin_store_return_value): Likewise.
  2158. * cris-tdep.c (cris_store_return_value): Likewise.
  2159. (cris_extract_return_value): Likewise.
  2160. * h8300-tdep.c (h8300_extract_return_value): Likewise.
  2161. * hppa-tdep.c (hppa64_return_value): Likewise.
  2162. * lm32-tdep.c (lm32_store_return_value): Likewise.
  2163. * microblaze-tdep.c (microblaze_store_return_value): Likewise.
  2164. * spu-tdep.c (spu_value_from_register): Likewise.
  2165. * vax-tdep.c (vax_return_value): Likewise.
  2166. 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
  2167. * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
  2168. parameter LEN to ssize_t.
  2169. 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
  2170. * ada-valprint.c (ada_val_print_1): Eliminate single-use
  2171. variable LEN.
  2172. * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
  2173. directly.
  2174. (alpha_store_return_value): Likewise.
  2175. * amd64-tdep.c (amd64_classify_aggregate): Likewise.
  2176. (amd64_push_arguments): Likewise.
  2177. * ax-gdb.c (gen_trace_static_fields): Likewise.
  2178. (gen_traced_pop): Likewise.
  2179. * bfin-tdep.c (bfin_push_dummy_call): Likewise.
  2180. * breakpoint.c (update_watchpoint): Likewise.
  2181. * findcmd.c (parse_find_args): Use local variable for type
  2182. instead of length.
  2183. * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
  2184. * h8300-tdep.c (h8300h_extract_return_value): Likewise.
  2185. (h8300_store_return_value): Likewise.
  2186. * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
  2187. Use i386_darwin_arg_type_alignment directly.
  2188. * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
  2189. * lm32-tdep.c (lm32_push_dummy_call): Likewise.
  2190. * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
  2191. (m68hc11_extract_return_value): Likewise.
  2192. * mep-tdep.c (mep_push_dummy_call): Likewise.
  2193. * printcmd.c (float_type_from_length): Likewise.
  2194. * s390-tdep.c (s390_value_from_register): Likewise.
  2195. * stack.c (read_frame_arg): Likewise.
  2196. * tracepoint.c (encode_actions_1): Likewise.
  2197. * valops.c (value_fetch_lazy): Use local variable for type
  2198. instead of length. Use TYPE_LENGTH directly.
  2199. * value.c (value_contents_equal): Use TYPE_LENGTH directly.
  2200. 2012-09-25 Joel Brobecker <brobecker@adacore.com>
  2201. * symtab.c (skip_prologue_sal): Fix typo in comment.
  2202. 2012-09-25 Joel Brobecker <brobecker@adacore.com>
  2203. * linespec.c (create_sals_line_offset): Fix typo in comment.
  2204. 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
  2205. * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
  2206. use plongest to print the array size.
  2207. 2012-09-24 Siddhesh Poyarekar <siddhesh@redhat.com>
  2208. * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
  2209. * p-valprint.c (pascal_type_print_base): Likewise.
  2210. 2012-09-22 Yao Qi <yao@codesourcery.com>
  2211. * remote.c (remote_get_trace_status): Remove setting default
  2212. values of fields of 'ts'.
  2213. 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
  2214. Fix internal error on canonicalization of clang types.
  2215. * cp-name-parser.y (operator): New comment at make_operator call for
  2216. new, delete, new[] and delete[].
  2217. (exp): Use "sizeof ". Add new comment at make_operator call.
  2218. 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
  2219. Fix disassemble without parameters in tailcall frame.
  2220. * cli/cli-cmds.c (disassemble_current_function): Use
  2221. get_frame_address_in_block.
  2222. 2012-09-21 Tom Tromey <tromey@redhat.com>
  2223. * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
  2224. TYPE_CODE_UNION>: Unify, removing a goto.
  2225. 2012-09-21 Tom Tromey <tromey@redhat.com>
  2226. * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
  2227. 2012-09-21 Andrew Burgess <aburgess@broadcom.com>
  2228. * findvar.c (read_frame_register_value): Mark the result value as
  2229. optimized out if any of the input registers have been optimized out.
  2230. 2012-09-21 Andreas Schwab <schwab@linux-m68k.org>
  2231. * python/python.c (finalize_python): Only define if HAVE_PYTHON.
  2232. 2012-09-21 Siddhesh Poyarekar <siddhesh@redhat.com>
  2233. * eval.c (evaluate_subexp_standard): Eliminate single-use
  2234. variable LOWER.
  2235. 2012-09-21 Yao Qi <yao@codesourcery.com>
  2236. * mi/mi-interp.c: Declare mi_record_changed.
  2237. (mi_interpreter_init): Call observer_attach_record_changed.
  2238. (mi_record_changed): New.
  2239. * record.c (record_open): Call observer_notify_record_changed.
  2240. (cmd_record_stop): Call observer_notify_record_changed.
  2241. * NEWS: Mention it.
  2242. 2012-09-20 Tom Tromey <tromey@redhat.com>
  2243. * NEWS: Update.
  2244. * python/python.c (finalize_python): New function.
  2245. (_initialize_python): Make a final cleanup.
  2246. 2012-09-19 Doug Evans <dje@google.com>
  2247. * buildsym.h (param_symbols): Delete, unused.
  2248. (context_stack): Delete member "params", unused.
  2249. * buildsym.c (push_context): Update.
  2250. * dwarf2read.c (read_func_scope): Update.
  2251. 2012-09-19 Thomas Schwinge <thomas@codesourcery.com>
  2252. * sh-tdep.c (sh_register_convert_to_virtual)
  2253. (sh_register_convert_to_raw): Add a gdbarch parameter. Update
  2254. all callers. Just do a memcpy if not the little-endian case.
  2255. * h8300-tdep.c (h8300_gdbarch_init): Invoke
  2256. set_gdbarch_double_format and set_gdbarch_long_double_format.
  2257. * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
  2258. set_gdbarch_double_format.
  2259. * sh-tdep.c (sh_gdbarch_init): Likewise.
  2260. * NEWS: Document the removal of SH's 'regs' command.
  2261. * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
  2262. command.
  2263. 2012-09-18 Sergio Durigan Junior <sergiodj@redhat.com>
  2264. * infcmd.c (_initialize_infcmd): Register `j' as an alias for
  2265. `jump'.
  2266. 2012-09-18 Joel Brobecker <brobecker@adacore.com>
  2267. * linespec.c (iterate_over_all_matching_symtabs): Use the correct
  2268. language when iterating over symbols.
  2269. 2012-09-18 Yao Qi <yao@codesourcery.com>
  2270. * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
  2271. (mi_interpreter_init): Call observer_attach_tsv_created and
  2272. observer_attach_tsv_deleted.
  2273. (mi_tsv_created, mi_tsv_deleted): New.
  2274. * tracepoint.c (delete_trace_state_variable): Call
  2275. observer_notify_tsv_deleted.
  2276. (trace_variable_command): Call observer_notify_tsv_created.
  2277. (delete_trace_variable_command): Call
  2278. observer_notify_tsv_deleted.
  2279. (create_tsv_from_upload): Call observer_notify_tsv_created.
  2280. * NEWS: Mention it.
  2281. 2012-09-18 Yao Qi <yao@codesourcery.com>
  2282. * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
  2283. if traceframe changed.
  2284. * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
  2285. "trace-find".
  2286. * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
  2287. (mi_interpreter_init): Hook mi_traceframe_changed to observer
  2288. 'traceframe_changed'.
  2289. (mi_traceframe_changed): New.
  2290. * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
  2291. New field.
  2292. * NEWS: Mention the new MI notification.
  2293. 2012-09-17 Mike Wrighton <wrighton@codesourcery.com>
  2294. * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
  2295. 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
  2296. * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
  2297. (linux_ptrace_test_ret_to_nx): Extend comment for x86_64. Change
  2298. __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
  2299. Extend code also for PaX support. Convert all gdb_assert to warning
  2300. calls.
  2301. 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
  2302. Implement auto-load user conveniences suggested by Doug Evans.
  2303. * auto-load.c: Include top.h.
  2304. (file_is_auto_load_safe): New variable advice_printed. Print advice.
  2305. (_initialize_auto_load): New variable scripts_directory_help. Mention
  2306. GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
  2307. scripts-directory. Document in online help one can use also files for
  2308. set auto-load safe-path.
  2309. * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
  2310. * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
  2311. 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
  2312. * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
  2313. of LEN.
  2314. 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
  2315. * m2-valprint.c (m2_print_array_contents): Eliminate variable
  2316. ELTLEN and use TYPE_LENGTH directly.
  2317. (m2_val_print): Likewise.
  2318. * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
  2319. variable LEN and use TYPE_LENGTH directly.
  2320. (m68k_svr4_store_return_value): Likewise.
  2321. * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
  2322. ARGLEN and use TYPE_LENGTH directly.
  2323. (mips_o64_push_dummy_call): Likewise.
  2324. * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
  2325. variable LENGTH and use TYPE_LENGTH directly.
  2326. (s390_function_arg_float): Likewise.
  2327. (s390_function_arg_integer): Likewise.
  2328. (s390_push_dummy_call): Likewise.
  2329. (s390_return_value_convention): Likewise.
  2330. * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
  2331. TYPE_LENGTH directly.
  2332. 2012-09-17 Yao Qi <yao@codesourcery.com>
  2333. * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
  2334. Update comment to add_setshow_integer_cmd.
  2335. * cli/cli-setshow.c (do_set_command): Handle case
  2336. 'var_zuinteger_unlimited'.
  2337. (do_show_command): Likewise.
  2338. * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
  2339. for command 'remotetimeout'.
  2340. * command.h (enum var_types): New zuinteger_unlimited. Update comment
  2341. to var_integer.
  2342. * source.c (_initialize_source): Call
  2343. add_setshow_zuinteger_unlimited_cmd for command 'set listsize'.
  2344. 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
  2345. * infrun.c (restore_infcall_suspend_state): Eliminate single-use
  2346. variable LEN.
  2347. 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
  2348. PR 14119
  2349. * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
  2350. (frame_pop): Drop also TAILCALL_FRAME frames.
  2351. * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
  2352. 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
  2353. Pedro Alves <palves@redhat.com>
  2354. PR 14548
  2355. * infrun.c (handle_inferior_event): Do not reverse-continue back to the
  2356. function start if we are already at function start. Both for
  2357. reverse-next and for reverse-step into function without line number
  2358. info.
  2359. 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
  2360. Code cleanup - rename 'inline' depth to 'artificial' depth.
  2361. * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
  2362. frame_id_artificial_p, extend the comment.
  2363. * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
  2364. * frame.c (fprint_frame_id): Rename at a user, change debug output
  2365. text to "artificial=".
  2366. (skip_inlined_frames): Rename to ...
  2367. (skip_artificial_frames): ... here. Extend the comment.
  2368. (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
  2369. (frame_id_inlined_p): Rename to ...
  2370. (frame_id_artificial_p): ... here. Rename at a user.
  2371. (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
  2372. (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
  2373. at a user.
  2374. * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
  2375. Extend the comment.
  2376. (frame_id_inlined_p): Rename to ...
  2377. (frame_id_artificial_p): ... here.
  2378. * inline-frame.c (inline_frame_this_id): Rename at a user.
  2379. 2012-09-14 Andrew Burgess <aburgess@broadcom.com>
  2380. * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
  2381. vector variables using vector_size syntax rather than array
  2382. syntax.
  2383. 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
  2384. * valarith.c (value_concat): Replace unsafe ALLOCA with
  2385. XMALLOC/XFREE.
  2386. 2012-09-14 Pedro Alves <palves@redhat.com>
  2387. * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
  2388. 2012-09-14 Khoo Yit Phang <khooyp@cs.umd.edu>
  2389. Point contrib/cc-with-tweaks.sh to the build-local data-directory.
  2390. * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
  2391. data-directory as appropriate.
  2392. 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
  2393. * printcmd.c (ui_printf): Eliminate single-use variable
  2394. PARAM_LEN.
  2395. 2012-09-14 Yao Qi <yao@codesourcery.com>
  2396. Pedro Alves <palves@redhat.com>
  2397. * valops.c (value_assign): Move observer_notify_target_changed
  2398. below to replace reinit_frame_cache.
  2399. 2012-09-13 Khoo Yit Phang <khooyp@cs.umd.edu>
  2400. Refactor Python "gdb" module into a proper Python package, by
  2401. introducing a new "_gdb" module for code implemented in C, and
  2402. using reload/__import__ instead of exec.
  2403. * python/lib/gdb/__init__.py: Import * from _gdb.
  2404. (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
  2405. prompt_hook, sys.argv): Moved from finish_python_initialization.
  2406. (pretty_printers, PYTHONDIR): Moved from _initialize_python.
  2407. (packages, auto_load_packages): New list and function replacing
  2408. module_dict and auto-loading code, using __file__ instead of
  2409. gdb.PYTHONDIR and reload/__import__ instead of exec.
  2410. (GdbSetPythonDirectory): Replacing function of the same name
  2411. from finish_python_initialization, using reload/__import__ instead
  2412. of exec, as well as call auto_load_packages.
  2413. * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
  2414. gdb_python_module and not gdb_module.
  2415. * python/python-internal.h (gdb_python_module): Declare.
  2416. * python/python.c (gdb_python_module): New global.
  2417. (before_prompt_hook): Check gdb_python_module and not gdb_module.
  2418. (_initialize_python): Rename gdb module to _gdb.
  2419. Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
  2420. (finish_python_initialization): Move Python code to
  2421. lib/gdb/__init__.py; instead, set up sys.path and import gdb into
  2422. __main__.
  2423. 2012-09-13 Pedro Alves <palves@redhat.com>
  2424. * Makefile.in (COMMON_OBS): Add registry.o.
  2425. * registry.c: New file.
  2426. * registry.h (struct registry_container): Declare.
  2427. (registry_data_callback): New typedef.
  2428. (struct registry_data, struct registry_data_registration, struct
  2429. registry_data_registry): New type.
  2430. (register_data_with_cleanup, registry_alloc_data)
  2431. (registry_callback_adaptor, registry_clear_data)
  2432. (registry_container_free_data, registry_set_data, registry_data):
  2433. Declare.
  2434. (DEFINE_REGISTRY): Refactor structures and functions as shims over
  2435. the new common structures and functions.
  2436. (DECLARE_REGISTRY): Declare struct TAG ## _data. Use the tagged
  2437. callback typedefs.
  2438. 2012-09-12 Mike Wrighton <wrighton@codesourcery.com>
  2439. * remote.c (remote_insert_hw_breakpoint): Throw exception if
  2440. there is an error inserting hardware breakpoints and use the
  2441. error message from the target.
  2442. * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
  2443. Catch this exception and print the error message contained within.
  2444. Do not print the default hardware error breakpoint message in this
  2445. case.
  2446. 2012-09-12 Doug Evans <dje@google.com>
  2447. * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
  2448. cu == NULL.
  2449. 2012-09-11 Doug Evans <dje@google.com>
  2450. * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
  2451. .gdb_index symbol attributes if there are none.
  2452. 2012-09-11 Joel Brobecker <brobecker@adacore.com>
  2453. * symtab.h (struct minimal_symbol) [has_size]: New field.
  2454. (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
  2455. (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
  2456. * printcmd.c (build_address_symbolic): Only filter out zero-sized
  2457. minimal symbols if the symbol's size is actually known.
  2458. * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
  2459. of msymbol's size field. Add comment.
  2460. * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
  2461. SET_MSYMBOL_SIZE to set the minimal symbol size.
  2462. 2012-09-11 Joel Brobecker <brobecker@adacore.com>
  2463. * minsyms.c (install_minimal_symbols): Use memset to fill entire
  2464. minimal_symbol struct object, rather than setting some of its
  2465. fields one by one.
  2466. 2012-09-11 Andrew Burgess <aburgess@broadcom.com>
  2467. * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
  2468. passed_a_ptr flag when displaying typedef types.
  2469. 2012-09-10 Joel Brobecker <brobecker@adacore.com>
  2470. * ada-lang.c (coerce_unspec_val_to_type): Make sure that
  2471. the optimized_out flag is preserved.
  2472. 2012-09-10 Anthony Green <green@moxielogic.com>
  2473. * moxie-tdep.c (moxie_analyze_prologue): Update for function
  2474. prologue changes in GCC.
  2475. 2012-09-10 Keith Seitz <keiths@redhat.com>
  2476. PR gdb/13483
  2477. * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
  2478. (BOOL_CONVERSION_BADNESS): ... this.
  2479. * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
  2480. (rank_one_type): Allow all boolean conversions
  2481. permitted by the standard.
  2482. 2012-09-06 Tom Tromey <tromey@redhat.com>
  2483. * python/py-newobjfileevent.c (create_new_objfile_event_object):
  2484. Don't decref py_objfile.
  2485. 2012-09-02 Khoo Yit Phang <khooyp@cs.umd.edu>
  2486. Do not enable -lmcheck by default when Python is enabled with
  2487. threading support.
  2488. * configure.ac: (python_has_threads) New variable, by testing
  2489. if WITH_THREAD is defined in Python.h.
  2490. Move --enable-lmcheck after --with-python.
  2491. Do not enable -lmcheck by default if python_has_threads=yes.
  2492. Warn if --enable-lmcheck and python_has_threads=yes.
  2493. * configure: Regenerate.
  2494. 2012-08-31 Yao Qi <yao@codesourcery.com>
  2495. * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
  2496. DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
  2497. Update some commands.
  2498. * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
  2499. * mi/mi-main.c (mi_cmd_execute): Set
  2500. '*parse->cmd->suppress_notification' to 1.
  2501. 2012-08-31 Yao Qi <yao@codesourcery.com>
  2502. * mi/mi-cmds.c (mi_cmds): Add 'static'.
  2503. 2012-08-30 Khoo Yit Phang <khooyp@cs.umd.edu>
  2504. * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
  2505. 2012-08-29 Doug Evans <dje@google.com>
  2506. * main.c (print_gdb_help): Remove reference to
  2507. --use-deprecated-index-sections.
  2508. 2012-08-28 Yao Qi <yao@codesourcery.com>
  2509. * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
  2510. (init_cmds): Call add_setshow_uinteger_cmd for command
  2511. 'max-user-call-depth'.
  2512. * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
  2513. declaration of 'max_user_call_depth'.
  2514. * frame.c (backtrace_limit): Add 'unsigned'.
  2515. (_initialize_frame): Call add_setshow_uinteger_cmd for command
  2516. 'limit'.
  2517. * remote.c (remoteaddresssize): Add 'unsigned'.
  2518. (remote_address_masked): Change local var 'address_size' to
  2519. 'unsigned'.
  2520. (_initialize_remote): Call add_setshow_uinteger_cmd for
  2521. 'remoteaddresssize'.
  2522. * top.c (history_size): Add 'unsigned'.
  2523. (show_commands): Change local variables to 'unsigned'.
  2524. (set_history_size_command): Don't check history_size is negative.
  2525. Adjust the condition to call unstifle_history and set history_size
  2526. to UNIT_MAX.
  2527. 2012-08-28 Pedro Alves <palves@redhat.com>
  2528. PR gdb/14428
  2529. * infcmd.c (default_print_one_register_info): New, factored out
  2530. from default_print_registers_info.
  2531. (default_print_registers_info): Use it. Mark value unavailable if
  2532. necessary.
  2533. (registers_info): Print user registers with
  2534. default_print_one_register_info.
  2535. 2010-08-27 H.J. Lu <hongjiu.lu@intel.com>
  2536. PR tui/14486
  2537. * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
  2538. is not NULL before referencing it.
  2539. 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
  2540. * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
  2541. variable pc. Call find_pc_line instead of find_pc_overlay, restore
  2542. original PC for it.
  2543. 2012-08-27 Eli Zaretskii <eliz@gnu.org>
  2544. Jan Kratochvil <jan.kratochvil@redhat.com>
  2545. * auto-load.c (auto_load_objfile_script): Rename to ...
  2546. (auto_load_objfile_script_1): ... here, change variable realname to
  2547. parameter realname, document it, add return value, add variable retval.
  2548. (auto_load_objfile_script): New function.
  2549. 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
  2550. * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
  2551. followed by a whitespace.
  2552. 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
  2553. PR gdb/14494.
  2554. * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
  2555. Move the SEC_HAS_CONTENTS check here - for any NAMES use.
  2556. (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
  2557. here.
  2558. 2012-08-27 Wei-cheng Wang <cole945@gmail.com>
  2559. * memattr.c (create_mem_region): Fix memory region overlapping
  2560. checking.
  2561. 2012-08-24 Siddhesh Poyarekar <siddhesh@redhat.com>
  2562. * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
  2563. with xmalloc/cleanup.
  2564. * mt-tdep.c (mt_push_dummy_call): Likewise.
  2565. * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
  2566. * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
  2567. 2012-08-24 Yao Qi <yao@codesourcery.com>
  2568. * jv-exp.y (push_expression_name): Add "." at the end of error
  2569. message.
  2570. 2012-08-23 Khoo Yit Phang <khooyp@cs.umd.edu>
  2571. Document how to return from "python-interactive" to GDB.
  2572. * python/python.c (_initialize_python): Update documentation.
  2573. 2012-08-23 Pedro Alves <palves@redhat.com>
  2574. * infrun.c (_initialize_infrun) <handle command help text>:
  2575. Mention that multiple signals are supported.
  2576. 2012-08-23 Pedro Alves <palves@redhat.com>
  2577. * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
  2578. string.
  2579. 2012-08-23 Yao Qi <yao@codesourcery.com>
  2580. * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
  2581. (tfind_1): Don't call registers_changed, set_traceframe_num,
  2582. and clear_traceframe_info.
  2583. Call set_current_traceframe.
  2584. (set_current_traceframe): call set_traceframe_num.
  2585. 2012-08-22 Sergio Durigan Junior <sergiodj@redhat.com>
  2586. * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
  2587. `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
  2588. 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
  2589. Enable readline in Python in a GDB-specific way and block the
  2590. standard Python readline module to prevent conflicts with GDB.
  2591. * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
  2592. (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
  2593. (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
  2594. * python/py-gdb-readline.c: New file.
  2595. * python/python-internal.h (gdbpy_initialize_gdb_readline): New
  2596. prototype.
  2597. * python/python.c (_initialize_python): Call
  2598. gdbpy_initialize_gdb_readline.
  2599. 2012-08-22 Keith Seitz <keiths@redhat.com>
  2600. * defs.h: Include build-gnulib/config.h
  2601. 2012-08-22 Joseph Myers <joseph@codesourcery.com>
  2602. * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
  2603. and blx pc.
  2604. 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
  2605. Add a new "python-interactive" command that starts a standard
  2606. Python interactive prompt with "pi" as alias, and add "py" as
  2607. an alias to "python".
  2608. * NEWS: Mention the new commands.
  2609. * python/python.c (eval_python_command): New function.
  2610. (python_interactive_command): For "python-interactive" with
  2611. arguments, call eval_python_command. For "python-interactive"
  2612. without arguments, call PyRun_InteractiveLoop.
  2613. (_initialize_python): Add "python-interactive" command with
  2614. "pi" as alias, and add "py" as an alias to "python".
  2615. 2012-08-22 Tom Tromey <tromey@redhat.com>
  2616. * defs.h (quit_flag): Don't declare.
  2617. (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
  2618. (QUIT): Use new functions.
  2619. * event-top.c (command_handler): Use clear_quit_flag.
  2620. (handle_sigint): Use set_quit_flag.
  2621. (async_request_quit): Use check_quit_flag. Don't check
  2622. immediate_quit.
  2623. * exceptions.c (throw_exception): Use clear_quit_flag.
  2624. * main.c (captured_main): Use clear_quit_flag.
  2625. * python/python.c (clear_quit_flag, set_quit_flag)
  2626. (check_quit_flag): New functions.
  2627. * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
  2628. clear_quit_flag.
  2629. * remote.c (remote_wait_as): Use check_quit_flag,
  2630. clear_quit_flag.
  2631. (remote_start_remote): Call QUIT.
  2632. * symfile.c (load_progress): Use check_quit_flag.
  2633. * top.c (command_loop): Use clear_quit_flag.
  2634. (command_line_input): Call QUIT.
  2635. * utils.c (quit_flag): Conditionally define.
  2636. (clear_quit_flag, check_quit_flag, set_quit_flag): New
  2637. functions.
  2638. (prompt_for_continue): Call QUIT. Use quit, not
  2639. async_request_quit.
  2640. * remote-mips.c (mips_expect_timeout): Call QUIT.
  2641. * monitor.c (monitor_expect): Call QUIT.
  2642. 2012-08-22 Tom Tromey <tromey@redhat.com>
  2643. * event-top.c (sigwinch_token, handle_sigwinch): Remove.
  2644. (async_init_signals): Update.
  2645. * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
  2646. (SIGWINCH_HANDLER_BODY): Remove.
  2647. 2012-08-22 Tom Tromey <tromey@redhat.com>
  2648. * jit.c (jit_object_close_impl): Don't malloc the objfile
  2649. name.
  2650. * objfiles.c (allocate_objfile): Don't malloc the objfile
  2651. name.
  2652. (free_objfile): Don't free the objfile name.
  2653. * objfiles.h (struct objfile) <name>: Update comment.
  2654. * symfile.c (reread_symbols): Fix reference counting. Don't
  2655. malloc objfile name.
  2656. 2012-08-22 Tom Tromey <tromey@redhat.com>
  2657. * windows-nat.c (windows_make_so): Use gdb_bfd_open.
  2658. * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
  2659. (symfile_bfd_open): Likewise.
  2660. (generic_load): Likewise.
  2661. * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
  2662. * solib-pa64.c (pa64_solib_create_inferior_hook): Use
  2663. gdb_bfd_open.
  2664. * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
  2665. Use gdb_bfd_open.
  2666. * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
  2667. * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
  2668. (pmon_load_fast): Likewise.
  2669. * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
  2670. * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
  2671. * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
  2672. (macho_check_dsym): Likewise.
  2673. * m32r-rom.c (m32r_load): Use gdb_bfd_open.
  2674. (m32r_upload_command): Likewise.
  2675. * gdb_bfd.h (gdb_bfd_cache): Declare.
  2676. * gdb_bfd.c (struct gdb_bfd_data): New.
  2677. (gdb_bfd_cache): New global.
  2678. (struct gdb_bfd_cache_search): New.
  2679. (hash_bfd): New function.
  2680. (eq_bfd): Likewise.
  2681. (gdb_bfd_open): Likewise.
  2682. (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
  2683. (gdb_bfd_unref): Remove closed BFD from cache. Update for
  2684. gdb_bfd_data.
  2685. * exec.c (exec_file_attach): Use gdb_bfd_open.
  2686. * dsrec.c (load_srec): Use gdb_bfd_open.
  2687. 2012-08-22 Tom Tromey <tromey@redhat.com>
  2688. * dwarf2read.c (macro_start_file): Update.
  2689. * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
  2690. (free_objfile_per_bfd_storage): Destroy macro_cache.
  2691. (allocate_objfile, free_objfile): Update.
  2692. * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
  2693. New field.
  2694. (struct objfile) <macro_cache>: Remove.
  2695. * symfile.c (reread_symbols): Update.
  2696. * symmisc.c (print_symbol_bcache_statistics): Update.
  2697. (print_objfile_statistics): Update.
  2698. 2012-08-22 Tom Tromey <tromey@redhat.com>
  2699. * elfread.c (elf_symtab_read): Update.
  2700. * objfiles.c (objfiles_bfd_data): New global.
  2701. (get_objfile_bfd_data, free_objfile_per_bfd_storage)
  2702. (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
  2703. (allocate_objfile, free_objfile): Update.
  2704. (_initialize_objfiles): Initialize objfiles_bfd_data.
  2705. * objfiles.h (struct objfile_per_bfd_storage): New.
  2706. (struct objfile) <per_bfd>: New field.
  2707. <filename_cache>: Remove.
  2708. (set_objfile_per_bfd): Declare.
  2709. * symfile.c (reread_symbols): Update. Call
  2710. set_objfile_per_bfd.
  2711. (allocate_symtab): Update.
  2712. * symmisc.c (print_symbol_bcache_statistics): Update.
  2713. (print_objfile_statistics): Print the size of the BFD obstack.
  2714. 2012-08-22 Tom Tromey <tromey@redhat.com>
  2715. * gdb_bfd.h: Include registry.h. Use DECLARE_REGISTRY.
  2716. * gdb_bfd.c: Use DEFINE_REGISTRY.
  2717. (struct gdb_bfd_data): Add REGISTRY_FIELDS.
  2718. (gdb_bfd_ref): Call bfd_alloc_data.
  2719. (gdb_bfd_unref): Call bfd_free_data.
  2720. 2012-08-22 Tom Tromey <tromey@redhat.com>
  2721. * registry.h (struct registry_fields): New.
  2722. (REGISTRY_FIELDS): Redefine.
  2723. (REGISTRY_ACCESS_FIELD): New macro.
  2724. (DEFINE_REGISTRY): Add ACCESS argument. Update defined
  2725. functions.
  2726. 2012-08-22 Tom Tromey <tromey@redhat.com>
  2727. * auto-load.c (_initialize_auto_load): Update.
  2728. * solib-svr4.c (_initialize_svr4_solib): Update
  2729. * solib-dsbt.c (_initialize_dsbt_solib): Update.
  2730. * solib-darwin.c (_initialize_darwin_solib): Update.
  2731. * registry.h: New file.
  2732. * python/py-progspace.c (gdbpy_initialize_pspace): Update.
  2733. * python/py-inferior.c (gdbpy_initialize_inferior): Update.
  2734. * progspace.h: Include registry.h. Use DECLARE_REGISTRY.
  2735. (register_program_space_data_with_cleanup)
  2736. (register_program_space_data, program_space_alloc_data)
  2737. (clear_program_space_data, set_program_space_data)
  2738. (program_space_data): Don't declare.
  2739. * progspace.c: Use DEFINE_REGISTRY.
  2740. (struct program_space_data, struct
  2741. program_space_data_registration, struct
  2742. program_space_data_registry, program_space_data_registry)
  2743. (register_program_space_data_with_cleanup)
  2744. (register_program_space_data, program_space_alloc_data)
  2745. (program_space_free_data, clear_program_space_data)
  2746. (set_program_space_data, program_space_data): Remove.
  2747. * objfiles.h: Include registry.h. Use DECLARE_REGISTRY.
  2748. (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
  2749. (register_objfile_data_with_cleanup, register_objfile_data)
  2750. (clear_objfile_data, set_objfile_data, objfile_data): Don't
  2751. declare.
  2752. * objfiles.c: Use DEFINE_REGISTRY.
  2753. (struct objfile_data, struct objfile_data_registration, struct
  2754. objfile_data_registry, objfile_data_registry)
  2755. (register_objfile_data_with_cleanup, register_objfile_data)
  2756. (objfile_alloc_data, objfile_free_data, clear_objfile_data)
  2757. (set_objfile_data, objfile_data): Remove.
  2758. (_initialize_objfiles): Update.
  2759. * jit.c (_initialize_jit): Update.
  2760. * inflow.c (_initialize_inflow): Update.
  2761. * inferior.h: Include registry.h. Use DECLARE_REGISTRY.
  2762. (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
  2763. (register_inferior_data_with_cleanup, register_inferior_data)
  2764. (clear_inferior_data, set_inferior_data, inferior_data): Don't
  2765. declare.
  2766. * inferior.c: Use DEFINE_REGISTRY.
  2767. (struct inferior_data, struct inferior_data_registration, struct
  2768. inferior_data_registry, inferior_data_registry)
  2769. (register_inferior_data_with_cleanup, register_inferior_data)
  2770. (inferior_alloc_data, inferior_free_data clear_inferior_data)
  2771. (set_inferior_data, inferior_data): Remove.
  2772. * auxv.c (_initialize_auxv): Update.
  2773. * ada-lang.c (_initialize_ada_language): Update.
  2774. * breakpoint.c (_initialize_breakpoint): Update.
  2775. * i386-nat.c (i386_use_watchpoints): Update.
  2776. 2012-08-22 Tom Tromey <tromey@redhat.com>
  2777. * exec.c (exec_close, exec_file_attach): Update.
  2778. (add_to_section_table): Initialize 'key' field.
  2779. (add_target_sections, remove_target_sections): Add 'key' argument.
  2780. * exec.h (add_target_sections, remove_target_sections): Add
  2781. 'key' argument.
  2782. * solib.c (solib_map_sections, update_solib_list, clear_solib)
  2783. (reload_shared_libraries_1): Update.
  2784. * target.h (struct target_section) <key>: New field.
  2785. 2012-08-22 Tom Tromey <tromey@redhat.com>
  2786. * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
  2787. 2012-08-21 Pierre Muller <muller@ics.u-strasbg.fr>
  2788. * symfile.c (allocate_symtab): Use host_address_to_string
  2789. function instead of cast of pointer to long which is not
  2790. compatible with x86_64-w64-mingw32 build.
  2791. 2012-08-19 Andrew Pinski <apinski@cavium.com>
  2792. * mips-tdep.c (is_octeon): New function.
  2793. (is_octeon_bbit_op): New function.
  2794. (mips32_next_pc): Handle Octeon's bbit instructions.
  2795. (mips32_instruction_has_delay_slot): Likewise.
  2796. 2012-08-19 Andrew Pinski <apinski@cavium.com>
  2797. * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
  2798. before the function.
  2799. 2012-08-19 Andrew Pinski <apinski@cavium.com>
  2800. * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
  2801. 2012-08-19 Keith Seitz <keiths@redhat.com>
  2802. PR c++/14365
  2803. * c-typeprint.c (c_type_print_varspec_prefix): Pass
  2804. -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
  2805. 2012-08-18 Eli Zaretskii <eliz@gnu.org>
  2806. * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
  2807. The typo broke "make TAGS".
  2808. 2012-08-17 Joel Brobecker <brobecker@adacore.com>
  2809. GDB 7.5 released.
  2810. 2012-08-17 Keith Seitz <keiths@redhat.com>
  2811. PR c++/13356
  2812. * gdbtypes.c (strict_type_checking): New variable.
  2813. (show_strict_type_checking): New function.
  2814. (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
  2815. if strict type checking is disabled.
  2816. (_initialize_gdbtypes): Add "check type" subcommand.
  2817. * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
  2818. 2012-08-17 Keith Seitz <keiths@redhat.com>
  2819. * language.h (type_mode): Remove.
  2820. (type_check): Remove.
  2821. (struct language_defn): Remove la_type_check.
  2822. (STRICT_TYPE): Remove unused macro.
  2823. (type_error): Remove.
  2824. * language.c (set_type_range_case): Renamed to ...
  2825. (set_range_case): ... this. Update all callers.
  2826. Remove type_mode/type_check.
  2827. (type_mode): Remove.
  2828. (type_check): Remove.
  2829. (show_type_command): Remove.
  2830. (set_type_command): Remove.
  2831. (language_info): Remove type checking output.
  2832. (type_error): Remove unused function.
  2833. (range_error): Update comment.
  2834. (unknown_language_defn): Remove la_type_check.
  2835. (auto_language_defn): Likewise.
  2836. (local_language_defn): Likewise.
  2837. (_initialize_language): Remove "check type" subcommand.
  2838. * ada-lang.c (ada_language_defn): Remove la_type_check.
  2839. * c-lang.c (c_language_defn): Likewise.
  2840. (cplus_language_defn): Likewise.
  2841. (asm_language_defn): Likewise.
  2842. (minimal_language_defn): Likewise.
  2843. * d-lang.c (d_language_defn): Likewise.
  2844. * f-lang.c (f_language_defn): Likewise.
  2845. * go-lang.c (go_language_defn): Likewise.
  2846. * jv-lang.c (java_language_defn): Likewise.
  2847. * m2-lang.c (m2_language_defn): Likewise.
  2848. * objc-lang.c (objc_language_defn): Likewise.
  2849. * opencl-lang.c (opencl_language_defn): Likewise.
  2850. * p-lang.c (pascal_language_defn): Likewise.
  2851. 2012-08-16 Mike Frysinger <vapier@gentoo.org>
  2852. * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
  2853. 2012-08-16 Joel Brobecker <brobecker@adacore.com>
  2854. * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
  2855. New function.
  2856. (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
  2857. using the regache. Use ia64_hpux_get_register_from_save_state_t
  2858. to access the bsp and bspstore registers if not.
  2859. 2012-08-16 Joel Brobecker <brobecker@adacore.com>
  2860. * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
  2861. * breakpoint.c (detach_breakpoints): Change pid parameter into
  2862. a ptid. Adjust code accordingly.
  2863. * infrun.c (handle_inferior_event): Delete variable child_pid.
  2864. Update call to detach_breakpoints to pass the child ptid for
  2865. fork events.
  2866. * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
  2867. assert that inferior_ptid's lwp is zero.
  2868. (linux_handle_extended_wait): Update call to detach_breakpoints.
  2869. * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
  2870. detach_breakpoints.
  2871. 2012-08-16 Joel Brobecker <brobecker@adacore.com>
  2872. * inf-ttrace.c (inf_ttrace_follow_fork): When following the
  2873. parent, only call detach_breakpoints if tts.tts_event ==
  2874. TTEVT_VFORK.
  2875. 2012-08-16 Joel Brobecker <brobecker@adacore.com>
  2876. * dwarf2-frame.c (dwarf2_frame_cache): Use
  2877. get_frame_address_in_block instead of get_frame_pc as
  2878. the bound for executing the frame's FDE.
  2879. 2012-08-16 Yao Qi <yao@codesourcery.com>
  2880. * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
  2881. * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
  2882. * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
  2883. (c_type_print_varspec_suffix): Likewise.
  2884. * eval.c (evaluate_subexp_standard): Likewise.
  2885. * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
  2886. (f_type_print_varspec_suffix): Likewise.
  2887. * gdbtypes.c (is_scalar_type): Likewise.
  2888. (recursive_dump_type): Likewise.
  2889. * infcall.c (value_arg_coerce): Likewise.
  2890. * m2-valprint.c (m2_val_print): Likewise.
  2891. * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
  2892. (pascal_type_print_varspec_suffix): Likewise.
  2893. (pascal_type_print_base): Likewise.
  2894. * p-valprint.c (pascal_val_print): Likewise.
  2895. (pascal_val_print): Likewise.
  2896. * valops.c (value_slice): Likewise.
  2897. * valprint.c (scalar_type_p): Likewise.
  2898. * valarith.c (value_bitstring_subscript): Remove.
  2899. (value_concat): Remove code handling TYPE_CODE_BITSTRING.
  2900. Remove comment on TYPE_CODE_BITSTRING.
  2901. * stabsread.c (read_type): Don't set TYPE_CODE (type) to
  2902. TYPE_CODE_BITSTRING.
  2903. * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
  2904. slot 0.
  2905. 2012-08-16 Yao Qi <yao@codesourcery.com>
  2906. * tracepoint.c (trace_find_none_command): Remove.
  2907. (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
  2908. 2012-08-16 Yao Qi <yao@codesourcery.com>
  2909. * remote.c (handle_notification): Remove parameter 'length'.
  2910. (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
  2911. 2012-08-15 Keith Seitz <keiths@redhat.com>
  2912. * gdbtypes.c (opaque_type_resolution): Make static.
  2913. Add missing comment.
  2914. (overload_debug): Add missing comment.
  2915. (show_opaque_type_resolution): Likewise.
  2916. (show_overload_debug): Likewise.
  2917. (print_bit_vector): Remove unnecessary forward declaration.
  2918. (print_arg_types): Likewise.
  2919. (dump_fn_fieldlists): Likewise.
  2920. (print_cplus_stuff): Likewise.
  2921. 2012-08-15 Tom Tromey <tromey@redhat.com>
  2922. * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
  2923. (gdb_bfd_ref): Initialize new field.
  2924. (gdb_bfd_unref): Unref the archive BFD.
  2925. (gdb_bfd_openr_next_archived_file): Acquire a reference to the
  2926. parent archive.
  2927. 2012-08-15 Tom Tromey <tromey@redhat.com>
  2928. PR python/14387:
  2929. * python/py-bpevent.c (create_breakpoint_event_object): Update
  2930. comment.
  2931. * python/py-event.c (evpy_add_attribute): Update comment.
  2932. * python/py-exitedevent.c (create_exited_event_object): Fix
  2933. reference counting and error handling.
  2934. * python/py-newobjfileevent.c (create_new_objfile_event_object):
  2935. Fix reference counting.
  2936. * python/py-signalevent.c (create_signal_event_object): Fix
  2937. reference counting and error handling.
  2938. * python/py-stopevent.c (emit_stop_event): Fix reference
  2939. counting.
  2940. * python/py-threadevent.c (get_event_thread): Return a
  2941. borrowed reference.
  2942. * python/py-type.c (convert_field): Fix reference counting.
  2943. 2012-08-15 Tom Tromey <tromey@redhat.com>
  2944. * dwarf2read.c (dwarf_decode_macro_bytes)
  2945. <DW_MACRO_GNU_transparent_include>: Use pointer to included data
  2946. as hash key.
  2947. 2012-08-14 Mike Frysinger <vapier@gentoo.org>
  2948. * infcmd.c (_initialize_infcmd): Update help text for the signal,
  2949. stepi, nexti, finish, next, step, jump, and continue commands.
  2950. * infrun.c (_initialize_infrun): Update help text for the handle
  2951. command.
  2952. 2012-08-14 Doug Evans <dje@google.com>
  2953. * gdbtypes.c (struct extra): Delete, unused.
  2954. * gdbtypes.c: Whitespace cleanup.
  2955. (address_space_name_to_int): Remove "extern" from definition.
  2956. (_initialize_gdbtypes): Declare with initialize_file_ftype.
  2957. * gdbtypes.c (make_pointer_type): Remove redundant setting of
  2958. TYPE_POINTER_TYPE (type).
  2959. 2012-08-14 Gary Benson <gbenson@redhat.com>
  2960. * solib-svr4.c (svr4_free_library_list): Use free_so.
  2961. 2012-08-13 Mike Frysinger <vapier@gentoo.org>
  2962. * .gitignore: Add go-exp.c.
  2963. 2012-08-13 Doug Evans <dje@google.com>
  2964. * value.c (show_convenience): Tweak comment.
  2965. (_initialize_values): Mention convenience functions in the help text
  2966. for "show convenience".
  2967. 2012-08-13 Yao Qi <yao@codesourcery.com>
  2968. * std-operator.def: Remove TERNOP_SLICE_COUNT.
  2969. * breakpoint.c (watchpoint_exp_is_const): Remove handling to
  2970. TERNOP_SLICE_COUNT.
  2971. * eval.c (evaluate_subexp_standard): Likewise.
  2972. * expprint.c (print_subexp_standard): Likewise.
  2973. (dump_subexp_body_standard): Likewise.
  2974. * parse.c (operator_length_standard): Likewise.
  2975. 2012-08-13 Yao Qi <yao@codesourcery.com>
  2976. * std-operator.def: Remove OP_BITSTRING.
  2977. * breakpoint.c (watchpoint_exp_is_const): Update.
  2978. * eval.c (evaluate_subexp_standard): Remove handling to
  2979. OP_BITSTRING.
  2980. * expprint.c (print_subexp_standard): Likewise.
  2981. (dump_subexp_body_standard): Likewise.
  2982. * parse.c (operator_length_standard): Likewise.
  2983. * valops.c (value_bitstring): Remove.
  2984. * value.h: Remove the declaration of 'value_bitstring'.
  2985. 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
  2986. * linespec.c (find_methods): Remove unused variables `i1' and
  2987. `name_len'.
  2988. (decode_line_full): Likewise for `arg_start'.
  2989. 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
  2990. * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
  2991. (zlib_decompress_section): Likewise for `section_data'.
  2992. (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
  2993. 2012-08-10 Doug Evans <dje@google.com>
  2994. Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
  2995. * NEWS: Document them.
  2996. * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
  2997. function/strfns.py.
  2998. * python/py-type.c (typy_array_1): New function.
  2999. (typy_array): Call it.
  3000. (typy_vector): New function.
  3001. (type_object_methods): Add "vector".
  3002. * python/lib/gdb/function/__init__.py: New file.
  3003. * python/lib/gdb/function/strfns.py: New file.
  3004. 2012-08-10 Siddhesh Poyarekar <siddhesh@redhat.com>
  3005. * python/py-type.c (convert_field): Use gdb_py_long_from_longest
  3006. for TYPE_FIELD_BITPOS.
  3007. (typy_get_sizeof): Likewise for TYPE_LENGTH.
  3008. 2012-08-10 Mike Frysinger <vapier@gentoo.org>
  3009. PR cli/10436:
  3010. * common/vec.h (VEC_merge): Define.
  3011. (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
  3012. (DEF_VEC_ALLOC_FUNC_P): Likewise.
  3013. (DEF_VEC_ALLOC_FUNC_O): Likewise.
  3014. * completer.c: Include gdb_signals.h.
  3015. (signal_completer): Define.
  3016. * completer.h (signal_completer): Add prototype.
  3017. * infcmd.c (_initialize_infcmd): Assign the command
  3018. completer for "signal" to handle_completer.
  3019. * infrun.c: Include completer.h.
  3020. (handle_completer): Define.
  3021. (_initialize_infrun): Declare a new local variable c. Store the
  3022. result of add_com("handle") to it. Assign the command
  3023. completer for "handle" to handle_completer.
  3024. 2012-08-09 Yao Qi <yao@codesourcery.com>
  3025. * cli/cli-decode.c (set_cmd_prefix): New.
  3026. (lookup_cmd_for_prefixlist): New.
  3027. (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
  3028. of each cmd_list_element in *prefixlist.
  3029. (add_setshow_cmd_full): set_cmd_prefix.
  3030. (add_alias_cmd): Likewise.
  3031. * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
  3032. Declare 'auto_boolean_enums'.
  3033. * cli/cli-setshow.c: Include "observer.h".
  3034. (notify_command_param_changed_p): New.
  3035. (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
  3036. Remove 'static'.
  3037. (do_setshow_command): Split it to ...
  3038. (do_set_command, do_show_command): ... them. New.
  3039. (do_set_command): Call observer_notify_command_param_changed if
  3040. notify_command_param_changed_p returns true.
  3041. (cmd_show_list): Caller update.
  3042. * auto-load.c (set_auto_load_cmd): Likewise.
  3043. * remote.c (show_remote_cmd): Likewise.
  3044. * cli/cli-setshow.h: Update declarations.
  3045. * top.c (execute_command): Call do_set_command and do_show_command.
  3046. * NEWS: Mention new MI notification.
  3047. * mi/mi-interp.c: Declare mi_command_param_changed.
  3048. (mi_interpreter_init): Attach mi_command_param_changed to
  3049. observer command_param_changed.
  3050. (mi_command_param_changed): New.
  3051. Remove mi_suppress_breakpoint_notifications.
  3052. Define global variable mi_suppress_notification.
  3053. (mi_breakpoint_created): Update.
  3054. (mi_breakpoint_deleted): Likewise.
  3055. (mi_breakpoint_modified): Likewise.
  3056. * mi/mi-main.c (mi_cmd_execute): Likewise. Check command
  3057. 'gdb-set' and set mi_suppress_notification.
  3058. * mi/mi-main.h: (mi_suppress_notification): New struct.
  3059. 2012-08-09 Andreas Tobler <andreast@fgznet.ch>
  3060. Jan Kratochvil <jan.kratochvil@redhat.com>
  3061. * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
  3062. 2012-08-09 Yao Qi <yao@codesourcery.com>
  3063. * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
  3064. (skiplist): Move it to skip.c.
  3065. (init_cmd_lists): Remove code setting enablebreaklist and
  3066. skiplist to NULL.
  3067. * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
  3068. * cli/cli-cmds.h: Remove declaration of enablebreaklist and
  3069. skiplist.
  3070. * gdbcmd.h: Likewise.
  3071. * skip.c (_initialize_step_skip): Move 'skiplist' from
  3072. cli/cli-cmds.c.
  3073. 2012-08-09 Yao Qi <yao@codesourcery.com>
  3074. * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
  3075. * gnu-nat.c, symfile.c: Likewise.
  3076. 2012-08-08 Aaron Gamble <agamble@google.com>
  3077. * utils.c (prompt_for_continue_wait_time): New static global.
  3078. (make_command_stats_cleanup): Initialize it.
  3079. (report_command_stats): Subtract time waiting for user.
  3080. (prompt_for_continue): Track time waiting for user.
  3081. (defaulted_query): Track time waiting for user.
  3082. 2012-08-08 Doug Evans <dje@google.com>
  3083. * eval.c (evaluate_subexp_standard): Fix thinko in handling
  3084. UNOP_MEMVAL_TYPE.
  3085. * expprint.c (print_subexp_standard, case OP_TYPE): New.
  3086. (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
  3087. (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
  3088. (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
  3089. (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
  3090. (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
  3091. elt.
  3092. (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
  3093. (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
  3094. (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
  3095. (dump_prefix_expression): Handle OP_TYPE.
  3096. 2012-08-08 Keith Seitz <keiths@redhat.com>
  3097. * breakpoint.c (parse_breakpoint_sals): Remove unused variable
  3098. addr_start.
  3099. 2012-08-08 Doug Evans <dje@google.com>
  3100. * linux-thread-db.c: #include "gdb_vecs.h".
  3101. (try_thread_db_load_from_pdir_1): New arg "subdir". All callers
  3102. updated.
  3103. (try_thread_db_load_from_pdir): New arg "subdir". All callers updated.
  3104. (thread_db_load_search): Use a vector to iterate over path elements.
  3105. Handle text appearing after "$pdir".
  3106. * gdb_string.h: Moved to ...
  3107. * common/gdb_string.h: ... here.
  3108. * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
  3109. gdb_string.h and gdb_assert.h.
  3110. 2012-08-08 Yao Qi <yao@codesourcery.com>
  3111. * tic6x-tdep.c (tic6x_register_to_value): Remove.
  3112. (tic6x_value_to_register): Likewise.
  3113. (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
  3114. and set_gdbarch_value_to_register.
  3115. 2012-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
  3116. Jean-Marc Saffroy <saffroy@gmail.com>
  3117. PR 11804
  3118. * defs.h (find_memory_region_ftype): New comment. New arg modified.
  3119. * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
  3120. * gcore.c (gcore_create_callback): New function comment. Add modified
  3121. parameter. Only write modified regions. Set SEC_READONLY exactly
  3122. according to MODIFIED.
  3123. (objfile_find_memory_regions): Ignore separate debug info files. Ass
  3124. the passed modified value to FUNC.
  3125. * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
  3126. * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
  3127. first. New variables modified and has_anonymous. Parse the lines of
  3128. smaps file. Add the passed MODIFIED value to FUNC.
  3129. * procfs.c (find_memory_regions_callback): Add the passed modified
  3130. value.
  3131. 2012-08-06 Tom Tromey <tromey@redhat.com>
  3132. * dwarf2-frame.c (clear_pointer_cleanup): New function.
  3133. (dwarf2_frame_cache): Use it.
  3134. * frame-unwind.h (frame_sniffer_ftype): Document prologue
  3135. cache initialization constraint.
  3136. 2012-08-06 Tom Tromey <tromey@redhat.com>
  3137. PR python/14386:
  3138. * varobj.c (update_dynamic_varobj_children): Don't call
  3139. PyIter_Check.
  3140. 2012-08-06 Tom Tromey <tromey@redhat.com>
  3141. PR cli/14392:
  3142. * cli/cli-cmds.c (list_command): Filter 'sals_end'.
  3143. 2012-08-06 Nathaniel Flath <flat0103@gmail.com>
  3144. * NEWS: New entry for 'cd' default parameters.
  3145. * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
  3146. 2012-08-03 Tom Tromey <tromey@redhat.com>
  3147. * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
  3148. return.
  3149. 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
  3150. * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
  3151. to attempting lseek/write.
  3152. (inf_child_fileio_pread): Likewise for pread.
  3153. 2012-08-02 Yao Qi <yao@codesourcery.com>
  3154. * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
  3155. (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
  3156. add_setshow_zinteger_cmd.
  3157. * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
  3158. * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
  3159. (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
  3160. instead of add_setshow_zinteger_cmd.
  3161. * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
  3162. (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
  3163. instead of add_setshow_zinteger_cmd.
  3164. * frame.c (frame_debug): Add 'unsigned'.
  3165. (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
  3166. add_setshow_zinteger_cmd.
  3167. * frame.h: Update the declaration of 'frame_debug'.
  3168. * gdbtypes.c (overload_debug): Add 'unsigned'.
  3169. (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
  3170. add_setshow_zinteger_cmd.
  3171. * inferior.h: Update declaration of 'debug_infrun'.
  3172. * infrun.c (debug_infrun): Add 'unsigned'.
  3173. (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
  3174. add_setshow_zinteger_cmd.
  3175. * jit.c (jit_debug): Add 'unsigned'.
  3176. (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
  3177. add_setshow_zinteger_cmd.
  3178. * linux-nat.c (debug_linux_nat): Add 'unsigned'.
  3179. (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
  3180. instead of add_setshow_zinteger_cmd.
  3181. * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
  3182. (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
  3183. add_setshow_zinteger_cmd.
  3184. * machoread.c (mach_o_debug_level): Add 'unsigned'.
  3185. (_initialize_machoread): Call add_setshow_zuinteger_cmd
  3186. instead of add_setshow_zinteger_cmd.
  3187. * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
  3188. * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
  3189. (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
  3190. intead of add_setshow_zinteger_cmd.
  3191. * mips-tdep.c (mips_debug): Add 'unsigned'.
  3192. (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
  3193. instead of add_setshow_zinteger_cmd.
  3194. * monitor.c (monitor_debug): Add 'unsigned'.
  3195. (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
  3196. add_setshow_zinteger_cmd.
  3197. * observer.c (observer_debug): Add 'unsigned'.
  3198. (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
  3199. add_setshow_zinteger_cmd.
  3200. * parse.c (expressiondebug): Add 'unsigned'.
  3201. (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
  3202. add_setshow_zinteger_cmd.
  3203. * record.c (record_debug): Add 'unsigned'.
  3204. (_initialize_record): Call add_setshow_zuinteger_cmd instead of
  3205. add_setshow_zinteger_cmd.
  3206. * record.h: Update the declaration of 'record_debug'.
  3207. * stap-probe.c (stap_expression_debug): Add 'unsigned'.
  3208. (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
  3209. add_setshow_zinteger_cmd.
  3210. * serial.c (global_serial_debug_p): Add 'unsigned'.
  3211. (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
  3212. add_setshow_zinteger_cmd.
  3213. * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
  3214. (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
  3215. add_setshow_zinteger_cmd.
  3216. * solib-frv.c (solib_frv_debug): Add 'unsigned'.
  3217. (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
  3218. add_setshow_zinteger_cmd.
  3219. * target.c (targetdebug): Add 'unsigned'.
  3220. (initialize_targets): Call add_setshow_zuinteger_cmd instead of
  3221. add_setshow_zinteger_cmd.
  3222. * valops.c (overload_debug): Add 'unsigned'.
  3223. * varobj.c (varobjdebug): Add 'unsigned'.
  3224. (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
  3225. add_setshow_zinteger_cmd.
  3226. * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
  3227. (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
  3228. instead of add_setshow_zinteger_cmd.
  3229. * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
  3230. * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
  3231. (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
  3232. instead of add_setshow_zinteger_cmd.
  3233. * gdbarch.c, gdbarch.h: Re-generated.
  3234. 2012-08-02 Yao Qi <yao@codesourcery.com>
  3235. * nto-tdep.c: Don't include cli/cli-decode.h and
  3236. cli/cli-cmds.h.
  3237. (_initialize_nto_tdep): Remove.
  3238. * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
  3239. Remove field.
  3240. Remove macro nto_internal_debugging.
  3241. 2012-08-01 Richard Henderson <rth@redhat.com>
  3242. * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
  3243. (mep-*-*) [gdb_target_obs]: Likewise.
  3244. 2012-07-31 Andreas Schwab <schwab@linux-m68k.org>
  3245. * ppc-linux-tdep.c (ppc_linux_init_abi): Register
  3246. linux_get_siginfo_type.
  3247. 2012-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
  3248. * infcall.c (call_function_by_hand): Move BP_ADDR comment to
  3249. AT_ENTRY_POINT.
  3250. (call_function_by_hand) <ON_STACK>: Call write_memory with
  3251. gdbarch_breakpoint_from_pc, if possible.
  3252. (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
  3253. here.
  3254. 2012-07-31 Yao Qi <yao@codesourcery.com>
  3255. * tracepoint.c: Add 'static' for some variables.
  3256. 2012-07-31 Yao Qi <yao@codesourcery.com>
  3257. * go32-nat.c: Declare _initialize_go32_nat.
  3258. * ser-go32.c: Declare _initialize_ser_dos.
  3259. * top.c (do_chdir_cleanup): Add 'static'.
  3260. 2012-07-30 Keith Seitz <keiths@redhat.com>
  3261. * linespec.c (linespec_lex_number): A number followed
  3262. by quotes is a valid number, too.
  3263. 2012-07-30 Tom Tromey <tromey@redhat.com>
  3264. * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
  3265. 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
  3266. * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
  3267. attempt to 4-byte-align HW breakpoint addresses for Thumb.
  3268. 2012-07-30 Andrew Burgess <aburgess@broadcom.com>
  3269. * varobj.c (varobj_invalidate_iter): All varobj must be marked as
  3270. invalid or reevaluated to prevent prevent references to possibly
  3271. delete'd type objects being left in the varobj.
  3272. 2012-07-27 Tom Tromey <tromey@redhat.com>
  3273. Jan Kratochvil <jan.kratochvil@redhat.com>
  3274. * copying.awk: Print buffer-read-only and vi ro markers.
  3275. * copying.c: Rebuild.
  3276. * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
  3277. * gdbarch.c, gdbarch.h: Rebuild.
  3278. * target-descriptions.c (maint_print_c_tdesc_cmd): Print
  3279. buffer-read-only and vi ro markers.
  3280. * features/arm-with-iwmmxt.c: Rebuild.
  3281. * features/arm-with-m-fpa-layout.c: Rebuild.
  3282. * features/arm-with-m-vfp-d16.c: Rebuild.
  3283. * features/arm-with-m.c: Rebuild.
  3284. * features/arm-with-neon.c: Rebuild.
  3285. * features/arm-with-vfpv2.c: Rebuild.
  3286. * features/arm-with-vfpv3.c: Rebuild.
  3287. * features/i386/amd64-avx-linux.c: Rebuild.
  3288. * features/i386/amd64-avx.c: Rebuild.
  3289. * features/i386/amd64-linux.c: Rebuild.
  3290. * features/i386/amd64.c: Rebuild.
  3291. * features/i386/i386-avx-linux.c: Rebuild.
  3292. * features/i386/i386-avx.c: Rebuild.
  3293. * features/i386/i386-linux.c: Rebuild.
  3294. * features/i386/i386-mmx-linux.c: Rebuild.
  3295. * features/i386/i386-mmx.c: Rebuild.
  3296. * features/i386/i386.c: Rebuild.
  3297. * features/i386/x32-avx-linux.c: Rebuild.
  3298. * features/i386/x32-avx.c: Rebuild.
  3299. * features/i386/x32-linux.c: Rebuild.
  3300. * features/i386/x32.c: Rebuild.
  3301. * features/mips-dsp-linux.c: Rebuild.
  3302. * features/mips-linux.c: Rebuild.
  3303. * features/mips64-dsp-linux.c: Rebuild.
  3304. * features/mips64-linux.c: Rebuild.
  3305. * features/rs6000/powerpc-32.c: Rebuild.
  3306. * features/rs6000/powerpc-32l.c: Rebuild.
  3307. * features/rs6000/powerpc-403.c: Rebuild.
  3308. * features/rs6000/powerpc-403gc.c: Rebuild.
  3309. * features/rs6000/powerpc-405.c: Rebuild.
  3310. * features/rs6000/powerpc-505.c: Rebuild.
  3311. * features/rs6000/powerpc-601.c: Rebuild.
  3312. * features/rs6000/powerpc-602.c: Rebuild.
  3313. * features/rs6000/powerpc-603.c: Rebuild.
  3314. * features/rs6000/powerpc-604.c: Rebuild.
  3315. * features/rs6000/powerpc-64.c: Rebuild.
  3316. * features/rs6000/powerpc-64l.c: Rebuild.
  3317. * features/rs6000/powerpc-7400.c: Rebuild.
  3318. * features/rs6000/powerpc-750.c: Rebuild.
  3319. * features/rs6000/powerpc-860.c: Rebuild.
  3320. * features/rs6000/powerpc-altivec32.c: Rebuild.
  3321. * features/rs6000/powerpc-altivec32l.c: Rebuild.
  3322. * features/rs6000/powerpc-altivec64.c: Rebuild.
  3323. * features/rs6000/powerpc-altivec64l.c: Rebuild.
  3324. * features/rs6000/powerpc-cell32l.c: Rebuild.
  3325. * features/rs6000/powerpc-cell64l.c: Rebuild.
  3326. * features/rs6000/powerpc-e500.c: Rebuild.
  3327. * features/rs6000/powerpc-e500l.c: Rebuild.
  3328. * features/rs6000/powerpc-isa205-32l.c: Rebuild.
  3329. * features/rs6000/powerpc-isa205-64l.c: Rebuild.
  3330. * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
  3331. * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
  3332. * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
  3333. * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
  3334. * features/rs6000/powerpc-vsx32.c: Rebuild.
  3335. * features/rs6000/powerpc-vsx32l.c: Rebuild.
  3336. * features/rs6000/powerpc-vsx64.c: Rebuild.
  3337. * features/rs6000/powerpc-vsx64l.c: Rebuild.
  3338. * features/rs6000/rs6000.c: Rebuild.
  3339. * features/s390-linux32.c: Rebuild.
  3340. * features/s390-linux32v1.c: Rebuild.
  3341. * features/s390-linux32v2.c: Rebuild.
  3342. * features/s390-linux64.c: Rebuild.
  3343. * features/s390-linux64v1.c: Rebuild.
  3344. * features/s390-linux64v2.c: Rebuild.
  3345. * features/s390x-linux64.c: Rebuild.
  3346. * features/s390x-linux64v1.c: Rebuild.
  3347. * features/s390x-linux64v2.c: Rebuild.
  3348. * features/tic6x-c62x-linux.c: Rebuild.
  3349. * features/tic6x-c62x.c: Rebuild.
  3350. * features/tic6x-c64x-linux.c: Rebuild.
  3351. * features/tic6x-c64x.c: Rebuild.
  3352. * features/tic6x-c64xp-linux.c: Rebuild.
  3353. * features/tic6x-c64xp.c: Rebuild.
  3354. 2012-07-27 Tom Tromey <tromey@redhat.com>
  3355. * c-exp.y (classify_name): Avoid assignment in condition.
  3356. 2012-07-27 Roland Schwingel <roland.schwingel@onevision.com>
  3357. * amd64-windows-tdep.c: Include "frame.h".
  3358. (amd64_windows_skip_trampoline_code): New function.
  3359. (amd64_windows_init_abi): Add trampoline registration.
  3360. 2012-07-27 Yao Qi <yao@codesourcery.com>
  3361. * tracepoint.c (cur_traceframe_number): Remove.
  3362. (set_tfile_traceframe): Remove.
  3363. (tfile_trace_find, tfile_fetch_registers): Update callers.
  3364. (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
  3365. (tfile_open, tfile_trace_find): Likewise.
  3366. 2012-07-27 Yao Qi <yao@codesourcery.com>
  3367. * thread.c (switch_to_thread): Don't call registers_changed.
  3368. 2012-07-26 Tom Tromey <tromey@redhat.com>
  3369. * Makefile.in (SFILES): Remove objc-exp.y.
  3370. (YYFILES): Remove objc-exp.c.
  3371. (YYOBJ): Remove objc-exp.o.
  3372. (local-maintainer-clean): Don't mention objc-exp.c.
  3373. * c-exp.y: Include objc-lang.h.
  3374. (%union) <class>: New field.
  3375. (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
  3376. (exp): Clone subscript production for OBJC_LBRAC. Add various
  3377. Objective C productions.
  3378. (msglist, msgarglist, msgarg): New productions.
  3379. (array_mod, func_mod, operator): Clone productions for
  3380. OBJC_LBRAC.
  3381. (parse_string_or_char): Handle '@' strings.
  3382. (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
  3383. (classify_name): Check la_name_of_this. Recognize ObjC class
  3384. names.
  3385. * objc-exp.y: Remove.
  3386. * objc-lang.c (objc_language_defn): Use c_parse, c_error.
  3387. * objc-lang.h (objc_parse, objc_error): Don't declare.
  3388. 2012-07-26 Markus Metzger <markus.t.metzger@intel.com>
  3389. * python/py-inferior.c (infpy_threads): Call update_thread_list ().
  3390. 2012-07-26 Jan Kratochvil <jan.kratochvil@redhat.com>
  3391. * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
  3392. and decrement.
  3393. 2012-07-26 Tom Tromey <tromey@redhat.com>
  3394. * copying.c: Rebuild.
  3395. * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
  3396. 'no_class'.
  3397. 2012-07-26 Tom Tromey <tromey@redhat.com>
  3398. * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
  3399. immediate_quit.
  3400. (print_objfile_statistics): Likewise.
  3401. (maintenance_print_symbols): Likewise.
  3402. (maintenance_print_msymbols): Likewise.
  3403. (maintenance_print_objfiles): Likewise.
  3404. * psymtab.c (print_partial_symbols): Call QUIT.
  3405. (maintenance_print_psymbols): Likewise. Don't modify
  3406. immediate_quit.
  3407. * copying.c (show_copying_command): Don't modify immediate_quit.
  3408. (show_warranty_command): Likewise.
  3409. * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
  3410. 2012-07-26 Keith Seitz <keiths@redhat.com>
  3411. * linespec.c (linespec_lexer_lex_number): The input
  3412. is also a valid number if the next character is a comma
  3413. or colon.
  3414. 2012-07-26 Joel Brobecker <brobecker@adacore.com>
  3415. * NEWS: Document new --enable-libmcheck/--disable-libmcheck
  3416. configure options.
  3417. 2012-07-26 Tristan Gingold <gingold@adacore.com>
  3418. * machoread.c: Include gdb_bfd.h.
  3419. 2012-07-26 Tristan Gingold <gingold@adacore.com>
  3420. * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
  3421. offset.
  3422. 2012-07-26 Siddhesh Poyarekar <siddhesh@redhat.com>
  3423. * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
  3424. SIZE to size_t.
  3425. (dwarf2_evaluate_loc_desc): Likewise.
  3426. (dwarf2_loc_desc_needs_frame): Likewise.
  3427. (locexpr_describe_location_1): Likewise.
  3428. * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
  3429. size_t.
  3430. (struct dwarf2_loclist_baton): Likewise.
  3431. * dwarf2read.c (struct dwarf_block): Likewise.
  3432. (dump_die_shallow): Use pulongest to print dwarf_block.size.
  3433. (decode_locdesc): Expand SIZE and I to size_t.
  3434. 2012-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
  3435. * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
  3436. 2012-07-25 Joel Brobecker <brobecker@adacore.com>
  3437. * doublest.c (convert_doublest_to_floatformat): If the exponent
  3438. is too small, treat the value as zero. If the exponent is too
  3439. large, treat the value as infinity.
  3440. 2012-07-25 Joel Brobecker <brobecker@adacore.com>
  3441. * configure.ac: Add --enable-lmcheck configure option.
  3442. * configure: Regenerate.
  3443. 2012-07-25 Tom Tromey <tromey@redhat.com>
  3444. * NEWS: Mention maint info bfds.
  3445. * gdb_bfd.c (all_bfds): New global.
  3446. (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
  3447. (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
  3448. New functions.
  3449. 2012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
  3450. * configure.tgt: Add v850*-*-rtems*.
  3451. 2012-07-25 Tom Tromey <tromey@redhat.com>
  3452. * macrotab.c (macro_bcache_str): Remove cast.
  3453. 2012-07-25 Hui Zhu <hui_zhu@mentor.com>
  3454. * linespec.c (linespec_lexer_lex_number): Update comments,
  3455. change the return and add check to make sure the input is
  3456. the decimal numbers.
  3457. (linespec_lexer_lex_one): If linespec_lexer_lex_number return
  3458. false, call linespec_lexer_lex_string.
  3459. 2012-07-24 Tom Tromey <tromey@redhat.com>
  3460. * symfile.c (symbol_file_add): Don't open BFD twice.
  3461. 2012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
  3462. * breakpoint.c (create_breakpoint): Store condition for pending
  3463. breakpoints.
  3464. 2012-07-24 Andreas Schwab <schwab@linux-m68k.org>
  3465. * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
  3466. (m68k_return_value): Handle complex types like structures.
  3467. (m68k_svr4_return_value): Likewise.
  3468. 2012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
  3469. * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
  3470. parameters to bfd_get_section_name.
  3471. 2012-07-24 Yao Qi <yao@codesourcery.com>
  3472. * cli/cli-setshow.c: Handle case 'var_uinteger'
  3473. and 'var_zuninteger' together. Handle case 'var_integer' and
  3474. 'var_zinteger' together.
  3475. 2012-07-23 Keith Seitz <keiths@redhat.com>
  3476. * linespec.c (convert_linespec_to_sal): Don't add
  3477. any symbols to the result vector if symbol_to_sal
  3478. returns zero.
  3479. 2012-07-23 Keith Seitz <keiths@redhat.com>
  3480. * linespec.c (decode_objc): Record the function name
  3481. in the linespec.
  3482. 2012-07-23 Tom Tromey <tromey@redhat.com>
  3483. * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
  3484. counting.
  3485. * exec.c (exec_close_1): Unconditionally release vmap's BFD.
  3486. (map_vmap): Acquire a reference to the BFD.
  3487. 2012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
  3488. * p-valprint.c (pascal_object_print_value): Replace potentially
  3489. unsafe alloca with xmalloc/xfree.
  3490. * valops.c (search_struct_method): Likewise.
  3491. 2012-07-23 Tom Tromey <tromey@redhat.com>
  3492. * solib-svr4.c (enable_break): Update.
  3493. * bfd-target.h (target_bfd_reopen): Update documentation.
  3494. 2012-07-23 Tom Tromey <tromey@redhat.com>
  3495. * symfile.c (separate_debug_file_exists): Update.
  3496. (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
  3497. (reread_symbols): Update.
  3498. * elfread.c (build_id_verify): Update.
  3499. * symfile.h (gdb_bfd_open_maybe_remote): Rename from
  3500. bfd_open_maybe_remote.
  3501. 2012-07-23 Tom Tromey <tromey@redhat.com>
  3502. * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
  3503. 2012-07-23 Tom Tromey <tromey@redhat.com>
  3504. * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
  3505. and 'abfd'.
  3506. * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
  3507. and 'abfd'.
  3508. * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
  3509. * machoread.c (macho_add_oso_symfile): Make a cleanup for
  3510. 'abfd'.
  3511. (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
  3512. * objfiles.c (allocate_objfile): Acquire a new reference.
  3513. * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
  3514. * solib.c (solib_read_symbols): Don't acquire a BFD reference.
  3515. * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
  3516. a cleanup for 'nbfd'.
  3517. * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
  3518. for 'nbfd'.
  3519. * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
  3520. make a cleanup for 'abfd'.
  3521. (symbol_file_add): Make a BFD cleanup.
  3522. 2012-07-23 Tom Tromey <tromey@redhat.com>
  3523. * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
  3524. (bfd_openw_with_cleanup): Use gdb_bfd_openw.
  3525. * corelow.c (core_open): Use gdb_bfd_fopen.
  3526. * dsrec.c (load_srec): Use gdb_bfd_openr.
  3527. * exec.c (exec_file_attach): Use gdb_bfd_fopen.
  3528. * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
  3529. * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
  3530. (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
  3531. (gdb_bfd_fdopenr): New functions.
  3532. * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
  3533. (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
  3534. (gdb_bfd_fdopenr): Declare.
  3535. * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
  3536. * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
  3537. * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
  3538. gdb_bfd_openr_next_archived_file.
  3539. (macho_check_dsym): Use gdb_bfd_openr.
  3540. (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
  3541. * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
  3542. * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
  3543. * remote-mips.c (mips_load_srec, pmon_load_fast): Use
  3544. gdb_bfd_openr.
  3545. * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
  3546. * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
  3547. gdb_bfd_openr_next_archived_file.
  3548. * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
  3549. Use gdb_bfd_openr.
  3550. * solib-pa64.c (pa64_solib_create_inferior_hook): Use
  3551. gdb_bfd_openr.
  3552. * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
  3553. * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
  3554. * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
  3555. * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
  3556. (symfile_bfd_open): Use gdb_bfd_fopen.
  3557. (generic_load): Use gdb_bfd_openr.
  3558. * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
  3559. 2012-07-23 Tom Tromey <tromey@redhat.com>
  3560. * bfd-target.c (target_bfd_reopen): Update.
  3561. * cli/cli-dump.c (bfd_openr_with_cleanup)
  3562. (bfd_openw_with_cleanup): Update.
  3563. * corelow.c (core_open): Update.
  3564. * dsrec.c (load_srec): Update.
  3565. * exec.c (exec_file_attach): Update.
  3566. * gcore.c (create_gcore_bfd): Update.
  3567. * gdb_bfd.c (gdb_bfd_ref): Return void.
  3568. (gdb_bfd_open): Update.
  3569. * gdb_bfd.h (gdb_bfd_ref): Return void.
  3570. Update comments.
  3571. * jit.c (jit_bfd_try_read_symtab): Update.
  3572. * m32r-rom.c (m32r_load, m32r_upload_command): Update.
  3573. * machoread.c (macho_symfile_read_all_oso): Update.
  3574. (macho_check_dsym): Update.
  3575. * procfs.c (insert_dbx_link_bpt_in_file): Update.
  3576. * remote-m32r-sdi.c (m32r_load): Update.
  3577. * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
  3578. * rs6000-nat.c (add_vmap): Update.
  3579. * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
  3580. Update.
  3581. * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
  3582. * solib-spu.c (spu_bfd_open): Update.
  3583. * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
  3584. * spu-linux-nat.c (spu_bfd_open): Update.
  3585. * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
  3586. (generic_load): Update.
  3587. * windows-nat.c (windows_make_so): Update.
  3588. 2012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
  3589. * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
  3590. 2012-07-20 Jeff Kenton <jkenton@tilera.com>
  3591. * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
  3592. SIGTRAMP_FRAME unwinding.
  3593. 2012-07-20 Doug Evans <dje@google.com>
  3594. * NEWS: Document new options "set/show use-deprecated-index-sections",
  3595. and delete reference to --use-deprecated-index-sections.
  3596. * symfile.h (use_deprecated_index_sections): Delete.
  3597. * dwarf2read.c (use_deprecated_index_sections): Make static.
  3598. (read_index_from_section): Update wording of how to load
  3599. deprecated index sections.
  3600. (_initialize_dwarf2_read): New options
  3601. "set/show use-deprecated-index-sections".
  3602. * main.c (captured_main): Delete --use-deprecated-index-sections.
  3603. 2012-07-20 Pedro Alves <palves@redhat.com>
  3604. PR threads/11692
  3605. PR gdb/12203
  3606. * infrun.c (handle_inferior_event) <new thread>: Don't special
  3607. case minus_one_ptid.
  3608. <TARGET_WAITKIND_SPURIOUS>: Ditto.
  3609. * linux-thread-db.c (thread_get_info_callback): Don't return early
  3610. if the thread is zombie.
  3611. (thread_from_lwp): Change return type to void. Rewrite stale
  3612. comment.
  3613. (attach_thread): Don't return early if the thread is zombie,
  3614. instead set its "dying" flag.
  3615. (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
  3616. (find_new_threads_callback): Don't return early if the thread is
  3617. zombie.
  3618. 2012-07-20 Pedro Alves <palves@redhat.com>
  3619. * linux-nat.c (linux_nat_wait): Dump the passed in target options.
  3620. * target.c (target_wait): Likewise.
  3621. (str_comma_list_concat_elem, do_option, target_options_to_string):
  3622. New functions.
  3623. * target.h (target_options_to_string): Declare.
  3624. 2012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
  3625. Tom Tromey <tromey@redhat.com>
  3626. * dwarf2read.c (dwarf_decode_macros)
  3627. <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
  3628. DW_MACRO_GNU_transparent_include_alt>: New cases.
  3629. (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
  3630. DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
  3631. 2012-07-20 Tom Tromey <tromey@redhat.com>
  3632. * dwarf2read.c (try_open_dwo_file): Don't call
  3633. gdb_bfd_stash_filename.
  3634. 2012-07-20 Pedro Alves <palves@redhat.com>
  3635. * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
  3636. (i386_record_lea_modrm, i386_record_push, i386_record_floats)
  3637. (i386_process_record): Tweak description comments.
  3638. 2012-07-20 Pedro Alves <palves@redhat.com>
  3639. * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
  3640. (i386_process_record): Use record_read_memory.
  3641. * record.c (record_read_memory): New function.
  3642. (record_arch_list_add_mem, record_exec_insn): Use
  3643. record_read_memory.
  3644. * record.h (record_read_memory): Declare.
  3645. 2012-07-20 Yao Qi <yao@codesourcery.com>
  3646. * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
  3647. NULL for xfree.
  3648. 2012-07-19 Pedro Alves <palves@redhat.com>
  3649. * record.c (record_resume): Ask the target beneath to report all
  3650. signals.
  3651. 2012-07-19 Doug Evans <dje@google.com>
  3652. * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
  3653. there's no section at address zero.
  3654. (dwarf2_record_block_ranges): Ditto.
  3655. 2012-07-19 Yao Qi <yao@codesourcery.com>
  3656. * command.h, remote.c: Fix a typo in comment.
  3657. 2012-07-19 Tom Tromey <tromey@redhat.com>
  3658. PR exp/13206:
  3659. * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
  3660. * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
  3661. OP_DECLTYPE>: New cases.
  3662. * c-exp.y (TYPEOF, DECLTYPE): New tokens.
  3663. (type_exp): Add new productions.
  3664. (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
  3665. and decltype.
  3666. * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
  3667. New case.
  3668. * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
  3669. OP_DECLTYPE>: New case.
  3670. * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
  3671. New case.
  3672. * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
  3673. * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
  3674. 2012-07-19 Tom Tromey <tromey@redhat.com>
  3675. * c-exp.y (enum token_flags): New.
  3676. (struct token) <cxx_only>: Remove.
  3677. <flags>: New field.
  3678. (tokentab3, tokentab2, ident_tokens): Update.
  3679. (lex_one_token): Update. Handle FLAG_SHADOW.
  3680. 2012-07-19 Tom Tromey <tromey@redhat.com>
  3681. * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
  3682. * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
  3683. UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
  3684. * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
  3685. for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
  3686. type_exp production where appropriate.
  3687. * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
  3688. <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
  3689. <UNOP_MEMVAL_TYPE>: New case.
  3690. (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
  3691. (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
  3692. * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
  3693. <UNOP_MEMVAL_TYPE>: New case.
  3694. (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
  3695. UNOP_REINTERPRET_CAST>: Update.
  3696. <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
  3697. * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
  3698. UNOP_REINTERPRET_CAST>: Update.
  3699. <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
  3700. * stack.c (return_command): Also check for UNOP_CAST_TYPE.
  3701. * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
  3702. constants.
  3703. 2012-07-19 Yao Qi <yao@codesourcery.com>
  3704. Jan Kratochvil <jan.kratochvil@redhat.com>
  3705. * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
  3706. and case 'var_optional_filename' together.
  3707. * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
  3708. instead of add_setshow_optional_filename_cmd for setshow command
  3709. 'args'. Set completer for 'set args'.
  3710. 2012-07-18 Doug Evans <dje@google.com>
  3711. * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
  3712. * common/gdb_vecs.c: New file, contents from utils.c.
  3713. * common/host-defs.h: New file, contents from defs.h.
  3714. * utils.h: New file, contents from defs.h.
  3715. * defs.h: Move all declarations of objects defined in utils.c
  3716. to utils.h (except QUIT() and related).
  3717. #include "utils.h", "host-defs.h".
  3718. * probe.h (probe_p): Move here from gdb_vecs.h.
  3719. * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
  3720. * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
  3721. (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
  3722. * Makefile.in (SFILES): Add common/gdb_vecs.c.
  3723. (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
  3724. (COMMON_OBS): Add gdb_vecs.o.
  3725. (gdb_vecs.o): New rule.
  3726. 2012-07-18 Keith Seitz <keiths@redhat.com>
  3727. * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
  3728. parameter. If non-zero, use SYMNAME as the canonical name
  3729. for the SaL.
  3730. Update all callers.
  3731. (convert_linespec_to_sals): Use add_sal_to_sals for
  3732. expressions, too.
  3733. (decode_line_full): No need to "fill in missing canonical names"
  3734. anymore. Simply make cleanups for the allocated names.
  3735. 2012-07-18 Keith Seitz <keiths@redhat.com>
  3736. * linespec.c (struct linespec): Constify expression,
  3737. source_filename, function_name, and label_name.
  3738. (symbol_not_found_error): Make all parameters const.
  3739. (linespec_parser_delete): No need to check for NULL
  3740. when using xfree. Cast const char * to char * for xfree.
  3741. 2012-07-18 Keith Seitz <keiths@redhat.com>
  3742. * breakpoint.c (invalid_thread_id_error): New function.
  3743. (find_condition_and_thread): Use invalid_thread_id_error.
  3744. (watch_command_1): Likewise.
  3745. 2012-07-18 Tom Tromey <tromey@redhat.com>
  3746. * cc-with-index.sh, cc-with-dwz.sh: Remove.
  3747. * contrib/cc-with-tweaks.sh: New file.
  3748. 2012-07-18 Tom Tromey <tromey@redhat.com>
  3749. * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
  3750. (locate_dwz_sections): Recognize .gdb_index.
  3751. (create_cus_from_index_list): New function.
  3752. (create_cus_from_index): Use it. Handle .dwz data.
  3753. (read_index_from_section): New function, extracted from
  3754. dwarf2_read_index.
  3755. (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
  3756. if needed.
  3757. 2012-07-18 Tom Tromey <tromey@redhat.com>
  3758. * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
  3759. (struct dwarf2_per_cu_data) <length>: No longer bitfield.
  3760. <is_dwz>: New field.
  3761. (struct dwz_file): New.
  3762. (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
  3763. (locate_dwz_sections, dwarf2_get_dwz_file)
  3764. (get_abbrev_section_for_cu): New functions.
  3765. (error_check_comp_unit_head, read_and_check_comp_unit_head)
  3766. (read_and_check_type_unit_head): Add abbrev_section argument.
  3767. (create_debug_types_hash_table): Update.
  3768. (init_cutu_and_read_dies): Use proper abbrev section.
  3769. (init_cutu_and_read_dies_no_follow): Likewise.
  3770. (set_partial_user): Do nothing if PST==NULL.
  3771. (read_comp_units_from_section): New function.
  3772. (create_all_comp_units): Use it.
  3773. (scan_partial_symbols, partial_die_parent_scope): Update.
  3774. (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
  3775. (process_imported_unit_die, read_partial_die): Handle .dwz files.
  3776. (find_partial_die): Add offset_in_dwz argument. Update.
  3777. (guess_partial_die_structure_name, fixup_partial_die): Update.
  3778. (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
  3779. DW_FORM_GNU_strp_alt.
  3780. (read_indirect_string_from_dwz): New function.
  3781. (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
  3782. (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
  3783. (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
  3784. (follow_die_offset): Add offset_in_dwz argument.
  3785. (follow_die_ref, dwarf2_fetch_die_location_block): Update.
  3786. (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
  3787. (dwarf_decode_macro_bytes): Add section_is_dwz argument.
  3788. Handle new macro forms.
  3789. (dwarf_decode_macros): Update.
  3790. (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
  3791. (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
  3792. (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
  3793. (create_debug_types_hash_table): Use correct abbrev section.
  3794. (get_debug_line_section): New function.
  3795. (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
  3796. (process_full_comp_unit): Pass 'required' argument to
  3797. end_symtab_get_static_block.
  3798. * buildsym.h (end_symtab_get_static_block): Update.
  3799. * buildsym.c (end_symtab_get_static_block): Add 'required'
  3800. argument.
  3801. (end_symtab, end_expandable_symtab): Update.
  3802. 2012-07-18 Tom Tromey <tromey@redhat.com>
  3803. * dwarf2read.c: Don't include zlib.h or sys/mman.h.
  3804. (pagesize): Remove.
  3805. (struct dwarf2_section_info) <map_addr, map_len>: Remove.
  3806. (zlib_decompress_section): Remove.
  3807. (dwarf2_read_section): Use gdb_bfd_map_section.
  3808. (munmap_section_buffer): Remove.
  3809. (free_dwo_file, dwarf2_per_objfile_free): Don't use
  3810. munmap_section_buffer.
  3811. * gdb_bfd.c: Include zlib.h, sys/mman.h.
  3812. (struct gdb_bfd_section_data): New.
  3813. (free_one_bfd_section): New function.
  3814. (gdb_bfd_close_or_warn): Use free_one_bfd_section.
  3815. (get_section_descriptor, zlib_decompress_section)
  3816. (gdb_bfd_map_section): New functions.
  3817. * gdb_bfd.h (gdb_bfd_map_section): Declare.
  3818. 2012-07-18 Tom Tromey <tromey@redhat.com>
  3819. * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
  3820. 2012-07-18 Tom Tromey <tromey@redhat.com>
  3821. * gdb_bfd.c (struct gdb_bfd_data): New.
  3822. (gdb_bfd_cache): New global.
  3823. (struct gdb_bfd_cache_search): New.
  3824. (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
  3825. (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
  3826. * gdb_bfd.h (gdb_bfd_open): Declare.
  3827. 2012-07-18 Tom Tromey <tromey@redhat.com>
  3828. * utils.c (make_cleanup_bfd_unref): Rename from
  3829. make_cleanup_bfd_close.
  3830. * defs.h (make_cleanup_bfd_unref): Rename from
  3831. make_cleanup_bfd_close.
  3832. * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
  3833. (bfd_openw_with_cleanup): Update.
  3834. * corelow.c (core_open): Update.
  3835. * dsrec.c (load_srec): Update.
  3836. * m32r-rom.c (m32r_load, m32r_upload_command): Update.
  3837. * remote-m32r-sdi.c (m32r_load): Update.
  3838. * remote-mips.c (mips_load_srec): Update.
  3839. (pmon_load_fast): Update.
  3840. * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
  3841. Update.
  3842. (darwin_bfd_open): Update.
  3843. * solib.c (solib_bfd_fopen): Update.
  3844. * symfile-mem.c (symbol_file_add_from_memory): Update.
  3845. * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
  3846. (symfile_bfd_open): Update.
  3847. (generic_load): Update.
  3848. 2012-07-18 Tom Tromey <tromey@redhat.com>
  3849. * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
  3850. (pmon_load_fast): Likewise.
  3851. * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
  3852. (m32r_upload_command): Likewise.
  3853. * dsrec.c (load_srec): Use make_cleanup_bfd_close.
  3854. * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
  3855. Use make_cleanup_bfd_close.
  3856. 2012-07-18 Tom Tromey <tromey@redhat.com>
  3857. * symfile.c (symfile_bfd_open): Don't copy name. Call
  3858. gdb_bfd_stash_filename.
  3859. (load_command): Open the new BFD before freeing the old.
  3860. (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
  3861. * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
  3862. Call gdb_bfd_stash_filename.
  3863. * spu-linux-nat.c (spu_bfd_open): Don't copy name.
  3864. * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
  3865. gdb_bfd_stash_filename.
  3866. * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
  3867. Free found_pathname.
  3868. * rs6000-nat.c (add_vmap): Don't copy filename. Call
  3869. gdb_bfd_stash_filename.
  3870. * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
  3871. * machoread.c (macho_add_oso_symfile): Call
  3872. gdb_bfd_stash_filename.
  3873. (macho_symfile_read_all_oso): Arrange to free archive_name. Call
  3874. gdb_bfd_stash_filename.
  3875. (macho_check_dsym): Don't copy filename. Call
  3876. gdb_bfd_stash_filename.
  3877. * jit.c (bfd_open_from_target_memory): Don't copy the filename.
  3878. * gdb_bfd.c (gdb_bfd_stash_filename): New function.
  3879. * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
  3880. * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
  3881. * exec.c (exec_close): Don't free the BFD's filename.
  3882. (exec_file_attach): Don't copy the filename. Call
  3883. gdb_bfd_stash_filename.
  3884. * corelow.c (core_close): Don't free the BFD's filename.
  3885. (core_open): Call gdb_bfd_stash_filename.
  3886. * corefile.c (reopen_exec_file): Remove #if 0 code.
  3887. * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
  3888. pathname.
  3889. * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
  3890. 2012-07-18 Tom Tromey <tromey@redhat.com>
  3891. * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
  3892. gdb_bfd_unref.
  3893. (free_dwo_file): Use gdb_bfd_unref.
  3894. * cli/cli-dump.c: Include gdb_bfd.h.
  3895. (bfd_openw_with_cleanup): Use gdb_bfd_ref.
  3896. (bfd_openr_with_cleanup): Likewise.
  3897. * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
  3898. gdb_bfd_unref.
  3899. * utils.c: Include gdb_bfd.h.
  3900. (do_bfd_close_cleanup): Use gdb_bfd_unref.
  3901. * symfile.c: Include gdb_bfd.h.
  3902. (separate_debug_file_exists): Use gdb_bfd_unref.
  3903. (bfd_open_maybe_remote): Use gdb_bfd_ref.
  3904. (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
  3905. (generic_load): Use gdb_bfd_ref.
  3906. (reread_symbols): Use gdb_bfd_unref.
  3907. * symfile-mem.c: Include gdb_bfd.h.
  3908. (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
  3909. * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
  3910. * solib.c: Include gdb_bfd.h.
  3911. (solib_bfd_fopen): Use gdb_bfd_ref.
  3912. (solib_bfd_open): Use gdb_bfd_unref.
  3913. (free_so_symbols): Use gdb_bfd_unref.
  3914. (reload_shared_libraries_1): Use gdb_bfd_unref.
  3915. * solib-spu.c: Include gdb_bfd.h.
  3916. (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
  3917. * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
  3918. gdb_bfd_unref.
  3919. * solib-frv.c: Include gdb_bfd.h.
  3920. (enable_break2): Use gdb_bfd_unref.
  3921. * solib-dsbt.c: Include gdb_bfd.h.
  3922. (enable_break2): Use gdb_bfd_unref.
  3923. * solib-darwin.c: Include gdb_bfd.h.
  3924. (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
  3925. gdb_bfd_unref.
  3926. (darwin_bfd_open): Use gdb_bfd_unref.
  3927. * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
  3928. * remote-mips.c: Include gdb_bfd.h.
  3929. (mips_load_srec): Use gdb_bfd_ref.
  3930. (pmon_load_fast): Use gdb_bfd_ref.
  3931. * remote-m32r-sdi.c: Include gdb_bfd.h.
  3932. (m32r_load): Use gdb_bfd_ref.
  3933. * record.c: Include gdb_bfd.h.
  3934. (record_save_cleanups): Use gdb_bfd_unref.
  3935. (cmd_record_save): Use gdb_bfd_unref.
  3936. * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
  3937. gdb_bfd_unref.
  3938. * objfiles.h (gdb_bfd_close_or_warn): Remove.
  3939. (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
  3940. * objfiles.c: Include gdb_bfd.h.
  3941. (free_objfile): Use gdb_bfd_unref.
  3942. (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
  3943. gdb_bfd.c.
  3944. * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
  3945. (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
  3946. (macho_check_dsym): Likewise.
  3947. * m32r-rom.c: Include gdb_bfd.h.
  3948. (m32r_load): Use gdb_bfd_ref.
  3949. (m32r_upload_command): Use gdb_bfd_ref.
  3950. * jit.c: Include gdb_bfd.h.
  3951. (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
  3952. * gdb_bfd.h: New file.
  3953. * gdb_bfd.c: New file.
  3954. * gcore.c: Include gdb_bfd.h.
  3955. (create_gcore_bfd): Use gdb_bfd_ref.
  3956. (do_bfd_delete_cleanup): Use gdb_bfd_unref.
  3957. (gcore_command): Use gdb_bfd_unref.
  3958. * exec.c: Include gdb_bfd.h.
  3959. (exec_close): Use gdb_bfd_unref.
  3960. (exec_close_1): Use gdb_bfd_unref.
  3961. (exec_file_attach): Use gdb_bfd_ref.
  3962. * elfread.c: Include gdb_bfd.h.
  3963. (build_id_verify): Use gdb_bfd_unref.
  3964. * dsrec.c: Include gdb_bfd.h.
  3965. (load_srec): Use gdb_bfd_ref.
  3966. * corelow.c: Include gdb_bfd.h.
  3967. (core_close): Use gdb_bfd_unref.
  3968. (core_open): Use gdb_bfd_ref.
  3969. * bfd-target.c: Include gdb_bfd.h.
  3970. (target_bfd_xclose): Use gdb_bfd_unref.
  3971. (target_bfd_reopen): Use gdb_bfd_ref.
  3972. * Makefile.in (SFILES): Add gdb_bfd.c.
  3973. (HFILES_NO_SRCDIR): Add gdb_bfd.h.
  3974. (COMMON_OBS): Add gdb_bfd.o.
  3975. 2012-07-18 Keith Seitz <keiths@redhat.com>
  3976. * breakpoint.c (find_condition_and_thread): Initialize
  3977. TASK and REST.
  3978. (create_breakpiont): find_condition_and_thread will now
  3979. initialize COND_STRING, THREAD, and REST (and TASK).
  3980. (addr_string_to_sals): Likewise.
  3981. 2012-07-18 Pedro Alves <palves@redhat.com>
  3982. * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
  3983. Pull the single step breakpoints out of the target.
  3984. 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
  3985. * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
  3986. * stap-probe.c (compile_probe_arg): Likewise.
  3987. 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
  3988. * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
  3989. (elf_compile_to_ax): Likewise.
  3990. * infrun.c (insert_exception_resume_from_probe): Likewise.
  3991. (check_exception_resume): Remove `objfile' variable.
  3992. * probe.c (find_probe_by_pc): Remove `objfile' argument.
  3993. (struct probe_and_objfile, probe_and_objfile_s): Delete.
  3994. (collect_probes): Adjust return value to `VEC (probe_p) *'.
  3995. (compare_entries): Rename to...
  3996. (compare_probes): ...this. Adjust function to work with
  3997. `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
  3998. respectively.
  3999. (gen_ui_out_table_header_info): Adjust `probes' argument to be
  4000. `VEC (probe_p) *'.
  4001. (print_ui_out_info): Adjust argument to be `struct probe *'.
  4002. (info_probes_for_ops): Adjust internal computations to use
  4003. `VEC (probe_p) *'.
  4004. (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
  4005. * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
  4006. gen_info_probes_table_values>: Remove `objfile' argument.
  4007. (struct probe) <objfile>: New field.
  4008. (find_probe_by_pc): Remove `objfile' argument.
  4009. * stap-probe.c (stap_parse_probe_arguments): Likewise.
  4010. (stap_get_probe_argument_count): Likewise.
  4011. (stap_get_arg): Likewise.
  4012. (stap_evaluate_probe_argument): Likewise.
  4013. (stap_compile_to_ax): Likewise.
  4014. (compile_probe_arg): Refactor not to pass `objfile' anymore.
  4015. (handle_stap_probe): Fill `objfile' field from `struct probe'.
  4016. (stap_gen_info_probes_table_header): Remove `objfile' argument.
  4017. * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
  4018. sym_compile_to_ax>: Likewise.
  4019. 2012-07-18 Terry Guo <terry.guo@arm.com>
  4020. PR 14329
  4021. * defs.h (GDB_MI_MSG_WIDTH): New.
  4022. * ser_base (ser_base_read_error_fd): New function.
  4023. (do_ser_base_readchar): Poll error file descriptor as well as
  4024. standard output.
  4025. (generic_readchar): Refactor error handling.
  4026. 2012-07-18 Joel Brobecker <brobecker@adacore.com>
  4027. * NEWS: Create a new section for the next release branch.
  4028. Rename the section of the current branch, now that it has
  4029. been cut.
  4030. 2012-07-18 Joel Brobecker <brobecker@adacore.com>
  4031. GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
  4032. * version.in: Bump version to 7.5.50.20120718-cvs.
  4033. 2012-07-17 Keith Seitz <keiths@redhat.com>
  4034. * linespec.c (linespec_parse_line_offset): Make parameter
  4035. const.
  4036. 2012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
  4037. PR 11914
  4038. * f-valprint.c (info_common_command): New variable frame_id.
  4039. Reinitialize FI form FRAME_ID after each print_variable_and_value.
  4040. * printcmd.c (print_variable_and_value): Extend function comment.
  4041. Add comment for invalidated FRAME.
  4042. * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
  4043. FI form FRAME_ID after each print_frame_local_vars.
  4044. (struct print_variable_and_value_data): Change frame to frame_id.
  4045. (do_print_variable_and_value): New variable frame, initialize it from
  4046. p->frame_id. Add comment for invalidated FRAME.
  4047. (print_frame_local_vars, print_frame_arg_vars): New function comment.
  4048. Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
  4049. for invalidated FRAME.
  4050. 2012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
  4051. Pedro Alves <palves@redhat.com>
  4052. * linux-nat.c (linux_nat_detach): Don't unregister from the event
  4053. loop.
  4054. 2012-07-16 Tom Tromey <tromey@redhat.com>
  4055. * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
  4056. 2012-07-15 Doug Evans <dje@google.com>
  4057. * dwarf2read.c (stmt_list_hash): New struct.
  4058. (type_unit_group): Embed "per_cu" member, remove pointer.
  4059. New union member "t", move member "tus" into it, all uses updated.
  4060. New member "hash", replaces member "line_offset, all uses updated.
  4061. (quick_file_names): Replace member "offset" with "hash", all uses
  4062. updated.
  4063. (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
  4064. (hash_file_name_entry, eq_file_name_entry): Call them.
  4065. (hash_type_unit_group, eq_type_unit_group): Ditto.
  4066. (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
  4067. (dw2_get_file_names_reader): Fix file name table calculation for TUs.
  4068. (dw2_get_file_names): Update.
  4069. (create_type_unit_group): Replace "per_cu" arg with "cu".
  4070. All callers updated. Fix "quick" (.gdb_index) handling.
  4071. (get_type_unit_group): Replace "per_cu" arg with "cu".
  4072. All callers updated.
  4073. (build_type_unit_groups): Don't reset tu_stats.
  4074. * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
  4075. "tab_cur_size". Change member "tab" to be a htab_t.
  4076. (create_filename_seen_cache): Update.
  4077. (clear_filename_seen_cache, delete_filename_seen_cache): Update.
  4078. (filename_seen): Update.
  4079. 2012-07-13 Doug Evans <dje@google.com>
  4080. * symtab.c (filename_seen): Update comment.
  4081. 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
  4082. Doug Evans <dje@google.com>
  4083. * buildsym.c (end_symtab_1): Split it to ...
  4084. (end_symtab_get_static_block): ... this ...
  4085. (end_symtab_from_static_block): ... and this function.
  4086. (end_symtab, end_expandable_symtab): Call them.
  4087. * buildsym.h (end_symtab_get_static_block)
  4088. (end_symtab_from_static_block): New declarations.
  4089. * dwarf2read.c (process_full_comp_unit): New variable static_block.
  4090. Set its valid CU ranges.
  4091. 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
  4092. * dwarf2loc.c (disassemble_dwarf_expression): Handle
  4093. DW_OP_GNU_parameter_ref.
  4094. 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
  4095. * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
  4096. read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
  4097. 2012-07-13 Doug Evans <dje@google.com>
  4098. * symtab.c (output_source_filename): Delete unnecessary forward decl.
  4099. (filename_seen_cache): New struct.
  4100. (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
  4101. (create_filename_seen_cache): New function.
  4102. (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
  4103. (filename_seen): Delete arg "first". New arg "cache". All callers
  4104. updated.
  4105. (output_source_filename_data): New struct.
  4106. (output_source_filename): Delete arg "first". New arg "data".
  4107. All callers updated.
  4108. (sources_info): Delete local "first". New locals "data", "cleanups".
  4109. Rewrite to use filename_seen_cache.
  4110. (add_partial_filename_data): Delete member "first". New member
  4111. "filename_seen_cache". All uses updated.
  4112. (make_source_files_completion_list): Rewrite to use
  4113. filename_seen_cache.
  4114. 2012-07-12 Doug Evans <dje@google.com>
  4115. * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
  4116. 2012-07-10 Doug Evans <dje@google.com>
  4117. PR gdb/13498
  4118. * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
  4119. all_type_unit_groups, type_unit_groups, tu_stats.
  4120. (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
  4121. All uses updated. Add type_unit_group to union "s".
  4122. (type_unit_group): New struct.
  4123. (IS_TYPE_UNIT_GROUP): New macro.
  4124. (abbrev_table): Delete unused member "section".
  4125. (dw2_do_instantiate_symtab): Early exit if type_unit_group.
  4126. (dw2_get_cu): Assert not used with type_unit_group.
  4127. (dw2_get_primary_cu): New function.
  4128. (dw2_build_type_unit_groups_reader): New function.
  4129. (dw2_build_type_unit_groups): New function.
  4130. (dw2_get_file_names): Assert not called on type units.
  4131. (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
  4132. Redo loop to iterate over type unit groups instead of type units.
  4133. (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
  4134. (read_abbrev_offset): New function.
  4135. (init_cutu_and_read_dies): New arg "abbrev_table". All callers
  4136. updated.
  4137. (create_partial_symtab): New function.
  4138. (process_psymtab_comp_unit_reader): Assert not used with type units.
  4139. Call create_partial_symtab.
  4140. (process_psymtab_type_unit): Delete.
  4141. (hash_type_unit_group, eq_type_unit_group): New functions.
  4142. (allocate_type_unit_groups_table): New function.
  4143. (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
  4144. (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
  4145. (create_type_unit_group, get_type_unit_group): New functions.
  4146. (tu_abbrev_offset): New struct.
  4147. (sort_tu_by_abbrev_offset): New function.
  4148. (add_type_unit_group_to_table): New function.
  4149. (build_type_unit_groups): New function.
  4150. (build_type_psymtabs_reader): New function.
  4151. (build_type_psymtab_dependencies): New function.
  4152. (build_type_psymtabs): Rewrite.
  4153. (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
  4154. is seen in a type unit.
  4155. (process_queue): Move symtab expansion debugging printfs here.
  4156. Call process_full_type_unit for type units.
  4157. (compute_symtab_includes): Assert not called for type units.
  4158. (process_cu_includes): Don't call compute_symtab_includes for
  4159. type units.
  4160. (process_full_type_unit): New function.
  4161. (process_imported_unit_die): Flag an error if called for type units.
  4162. (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
  4163. updated. Assert not called for type units.
  4164. (read_file_scope): Call dwarf2_start_symtab.
  4165. (setup_type_unit_groups): New function.
  4166. (read_type_unit_scope): Rewrite.
  4167. (abbrev_table_read_table): Initialize abbrev_table->offset.
  4168. (abbrev_table_free_cleanup): New function.
  4169. (dwarf2_start_symtab): New function.
  4170. (load_full_type_unit): Assert not called for type unit groups.
  4171. * buildsym.c (finish_block_internal): New arg "expandable".
  4172. All callers updated.
  4173. (start_symtab): Move most contents to ...
  4174. (restart_symtab): ... here. New function.
  4175. (reset_symtab_globals): New function.
  4176. (end_symtab_1): Renamed from end_symtab. New arg "expandable".
  4177. Call reset_symtab_globals.
  4178. (end_symtab, end_expandable_symtab): New functions.
  4179. (set_missing_symtab, augment_type_symtab): New functions.
  4180. * buildsym.h (end_expandable_symtab): Declare.
  4181. (augment_type_symtab, restart_symtab): Declare.
  4182. * psympriv.h (struct partial_symtab): New member "anonymous".
  4183. * psymtab.c (partial_map_symtabs_matching_filename): Ignore
  4184. anonymous psymtabs.
  4185. (read_psymtabs_with_filename): Ditto.
  4186. (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
  4187. (expand_symtabs_matching_via_partial): Ditto.
  4188. (dump_psymtab): Update.
  4189. * dictionary.c (dict_add_pending): New function.
  4190. * dictionary.h (dict_add_pending): Declare.
  4191. 2012-07-09 Doug Evans <dje@google.com>
  4192. * buildsym.c (start_subfile): Remove unnecessary check for
  4193. name == NULL.
  4194. * psymtab.c (allocate_psymtab): Use host_address_to_string.
  4195. * dwarf2read.c (load_full_type_unit): Simplify.
  4196. * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
  4197. to struct signatured_type **. All uses updated.
  4198. * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
  4199. All callers updated.
  4200. 2012-07-09 Tom Tromey <tromey@redhat.com>
  4201. * c-exp.y (check_parameter_typelist): New function.
  4202. (parameter_typelist): Call it.
  4203. * eval.c (make_params): Handle '(void)' case.
  4204. * gdbtypes.c (lookup_function_type_with_arguments): Handle
  4205. '(void)' case.
  4206. 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
  4207. * common/linux-ptrace.c: Include gdb_assert.h.
  4208. <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
  4209. <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
  4210. stdint.h.
  4211. (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
  4212. functions.
  4213. * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
  4214. * linux-nat.c (linux_child_post_attach)
  4215. (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
  4216. 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
  4217. * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
  4218. nptl <2.7 bug workaround for core files.
  4219. 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
  4220. * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
  4221. clearing.
  4222. (save_siginfo): Remove.
  4223. (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
  4224. call.
  4225. (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
  4226. (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
  4227. * linux-nat.h (struct lwp_info): Remove field siginfo.
  4228. 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
  4229. Code cleanup for the next patch.
  4230. * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
  4231. siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
  4232. call for it.
  4233. * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
  4234. (ia64_linux_stopped_data_address):
  4235. * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
  4236. the return value.
  4237. * linux-nat.h (linux_nat_get_siginfo): Likewise.
  4238. * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
  4239. siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
  4240. call for it.
  4241. 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
  4242. PR 14321
  4243. * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
  4244. Increase buffer sizes to 2x we need, not just 2x of the previous size.
  4245. 2012-07-06 Tom Tromey <tromey@redhat.com>
  4246. * c-exp.y (DOTDOTDOT): New token.
  4247. (func_mod, exp): Use parameter_typelist.
  4248. (parameter_typelist): New production.
  4249. (tokentab3): Add "..." token.
  4250. * eval.c (make_params): Handle varargs.
  4251. * gdbtypes.c (lookup_function_type_with_arguments): Handle
  4252. varargs.
  4253. 2012-07-06 Tom Tromey <tromey@redhat.com>
  4254. PR exp/9608:
  4255. * c-exp.y (%union) <tvec>: Change type.
  4256. (func_mod): Now uses <tvec> type.
  4257. (exp): Update for tvec change.
  4258. (direct_abs_decl): Push the typelist.
  4259. (func_mod): Return a typelist.
  4260. (nonempty_typelist): Update for tvec change.
  4261. * gdbtypes.c (lookup_function_type_with_arguments): New function.
  4262. * gdbtypes.h (lookup_function_type_with_arguments): Declare.
  4263. * parse.c (pop_type_list): New function.
  4264. (push_typelist): New function.
  4265. (follow_types): Handle tp_function_with_arguments.
  4266. * parser-defs.h (type_ptr): New typedef. Define a VEC.
  4267. (enum type_pieces) <tp_function_with_arguments>: New constant.
  4268. (union type_stack_elt) <typelist_val>: New field.
  4269. (push_typelist): Declare.
  4270. 2012-07-06 Tom Tromey <tromey@redhat.com>
  4271. * c-exp.y (%union) <type_stack>: New field.
  4272. (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
  4273. (ptr_operator_ts): New production.
  4274. (ptype): Update.
  4275. * parse.c (type_stack_reserve): New function.
  4276. (check_type_stack_depth): Use it.
  4277. (pop_type_stack, append_type_stack, push_type_stack)
  4278. (get_type_stack, type_stack_cleanup): New functions.
  4279. (follow_types): Handle tp_type_stack.
  4280. (_initialize_parse): Simplify initialization.
  4281. * parser-defs.h (enum type_pieces) <tp_type_stack>: New
  4282. constant.
  4283. (union type_stack_elt) <stack_val>: New field.
  4284. (get_type_stack, append_type_stack, push_type_stack)
  4285. (type_stack_cleanup): Declare.
  4286. 2012-07-06 Tom Tromey <tromey@redhat.com>
  4287. * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
  4288. Remove.
  4289. (struct type_stack): New.
  4290. * parse.c (type_stack, type_stack_size, type_stack_depth):
  4291. Remove.
  4292. (type_stack): New global.
  4293. (parse_exp_in_context, check_type_stack_depth)
  4294. (insert_into_type_stack, insert_type, push_type, push_type_int)
  4295. (insert_type_address_space, pop_type, pop_type_int)
  4296. (_initialize_parse): Update.
  4297. 2012-07-06 Tom Tromey <tromey@redhat.com>
  4298. * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
  4299. Remove %type.
  4300. 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
  4301. * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
  4302. 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
  4303. Jan Kratochvil <jan.kratochvil@redhat.com>
  4304. * cp-valprint.c (cp_print_value): Replace potentially unsafe
  4305. alloca with xmalloc/xfree.
  4306. 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
  4307. * MAINTAINERS (Write After Approval): Add myself to the list.
  4308. 2012-07-05 Doug Evans <dje@google.com>
  4309. * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
  4310. 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
  4311. * ax-gdb.c (cli/cli-utils.h): New include.
  4312. (linespec.h): Ditto.
  4313. (agent_eval_command_one): New function.
  4314. (agent_command_1): Ditto.
  4315. (agent_command): Call function agent_command_1.
  4316. (agent_eval_command): Ditto.
  4317. (_initialize_ax_gdb): Change help for "maint agent"
  4318. and "maint agent-eval".
  4319. 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
  4320. * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
  4321. * cli/cli-utils.c (check_for_argument): New function.
  4322. * cli/cli-utils.h (check_for_argument): Ditto.
  4323. 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
  4324. * NEWS: Mention x32 ABI support.
  4325. 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
  4326. * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
  4327. AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
  4328. * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
  4329. and pc_regnum_from_eax to -1. Update SP regnum from
  4330. sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
  4331. needed.
  4332. * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
  4333. pc_regnum_from_eax.
  4334. 2012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
  4335. Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
  4336. * dwarf2expr.h: Include gdbtypes.h.
  4337. (enum call_site_parameter_kind, union call_site_parameter_u): Remove
  4338. these forward declarations.
  4339. (cu_offset, sect_offset): Move these ...
  4340. * gdbtypes.h: Remove include dwarf2expr.h.
  4341. (cu_offset, sect_offset): ... here.
  4342. 2012-07-03 H.J. Lu <hongjiu.lu@intel.com>
  4343. * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
  4344. (amd64_linux_sigtramp_code): This.
  4345. (amd64_x32_linux_sigtramp_code): New.
  4346. (LINUX_SIGTRAMP_LEN): Updated.
  4347. (amd64_linux_sigtramp_start): Check x32 sigtramp.
  4348. 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
  4349. * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
  4350. 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
  4351. * config.in: Regenerate.
  4352. * configure: Regenerate.
  4353. * configure.ac: Remove check for gnu/libc-version.h.
  4354. * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
  4355. gnu/libc-version.h.
  4356. (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
  4357. variables libc_version, libc_major and libc_minor. Replace sscanf by
  4358. inferior_has_bug. Extend the comment.
  4359. 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
  4360. * linux-thread-db.c (inferior_has_bug): New function.
  4361. (thread_db_find_new_threads_silently): Return boolean as checked by
  4362. inferior_has_bug, describe it in the comments.
  4363. (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
  4364. earlier. Abort the initialization if it returned non-zero.
  4365. (thread_db_new_objfile): Exclude debug files.
  4366. (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
  4367. if UNTIL_NO_NEW,
  4368. 2012-07-02 Doug Evans <dje@google.com>
  4369. * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
  4370. related to queue management.
  4371. * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
  4372. instead of "debug dwarf2-die" in debugging printfs.
  4373. (create_debug_info_hash_table_reader): Ditto.
  4374. (create_debug_info_hash_table): Ditto.
  4375. (init_dwo_file): Ditto.
  4376. (init_cutu_and_read_dies): Add debugging printf.
  4377. (init_cutu_and_read_dies_no_follow): Ditto.
  4378. (process_psymtab_comp_unit_reader): Ditto.
  4379. 2012-07-02 Stan Shebs <stan@codesourcery.com>
  4380. Add target-side support for dynamic printf.
  4381. * NEWS: Mention the additional style.
  4382. * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
  4383. (struct bp_location): New field cmd_bytecode.
  4384. * breakpoint.c: Include format.h.
  4385. (disconnected_dprintf): New global.
  4386. (parse_cmd_to_aexpr): New function.
  4387. (build_target_command_list): New function.
  4388. (insert_bp_location): Call it.
  4389. (remove_breakpoints_pid): Skip dprintf breakpoints.
  4390. (print_one_breakpoint_location): Ditto.
  4391. (dprintf_style_agent): New global.
  4392. (dprintf_style_enums): Add dprintf_style_agent.
  4393. (update_dprintf_command_list): Add agent case.
  4394. (agent_printf_command): New function.
  4395. (_initialize_breakpoint): Add new commands.
  4396. * common/ax.def (printf): New bytecode.
  4397. * ax.h (ax_string): Declare.
  4398. * ax-gdb.h (gen_printf): Declare.
  4399. * ax-gdb.c: Include cli-utils.h, format.h.
  4400. (gen_printf): New function.
  4401. (maint_agent_print_command): New function.
  4402. (_initialize_ax_gdb): Add maint agent-printf command.
  4403. * ax-general.c (ax_string): New function.
  4404. (ax_print): Add printf disassembly.
  4405. * Makefile.in (SFILES): Add format.c
  4406. (COMMON_OBS): Add format.o.
  4407. * common/format.h: New file.
  4408. * common/format.c: New file.
  4409. * printcmd.c: Include format.h.
  4410. (ui_printf): Call parse_format_string.
  4411. * remote.c (remote_state): New field breakpoint_commands.
  4412. (PACKET_BreakpointCommands): New enum.
  4413. (remote_breakpoint_commands_feature): New function.
  4414. (remote_protocol_features): Add new BreakpointCommands entry.
  4415. (remote_can_run_breakpoint_commands): New function.
  4416. (remote_add_target_side_commands): New function.
  4417. (remote_insert_breakpoint): Call it.
  4418. (remote_insert_hw_breakpoint): Ditto.
  4419. (_initialize_remote): Add new packet configuration for
  4420. target-side breakpoint commands.
  4421. * target.h (struct target_ops): New field
  4422. to_can_run_breakpoint_commands.
  4423. (target_can_run_breakpoint_commands): New macro.
  4424. * target.c (update_current_target): Handle
  4425. to_can_run_breakpoint_commands.
  4426. 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
  4427. Execute -ix and -iex only after system and user gdbinit files.
  4428. * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
  4429. processing down after gdbinit files.
  4430. 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
  4431. Add fnmatch-gnu module.
  4432. * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
  4433. * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
  4434. * gnulib/aclocal.m4: Regenerate.
  4435. * gnulib/config.in: Regenerate.
  4436. * gnulib/configure: Regenerate.
  4437. * gnulib/import/dummy.c: Remove.
  4438. * gnulib/import/Makefile.am: Regenerate.
  4439. * gnulib/import/Makefile.in: Likewise.
  4440. * gnulib/import/m4/gnulib-cache.m4: Likewise.
  4441. * gnulib/import/m4/gnulib-comp.m4: Likewise.
  4442. * gnulib/import/alloca.c: New file.
  4443. * gnulib/import/alloca.in.h: Likewise.
  4444. * gnulib/import/config.charset: Likewise.
  4445. * gnulib/import/fnmatch.c: Likewise.
  4446. * gnulib/import/fnmatch.in.h: Likewise.
  4447. * gnulib/import/fnmatch_loop.c: Likewise.
  4448. * gnulib/import/localcharset.c: Likewise.
  4449. * gnulib/import/localcharset.h: Likewise.
  4450. * gnulib/import/m4/alloca.m4: Likewise.
  4451. * gnulib/import/m4/codeset.m4: Likewise.
  4452. * gnulib/import/m4/configmake.m4: Likewise.
  4453. * gnulib/import/m4/fcntl-o.m4: Likewise.
  4454. * gnulib/import/m4/fnmatch.m4: Likewise.
  4455. * gnulib/import/m4/glibc21.m4: Likewise.
  4456. * gnulib/import/m4/localcharset.m4: Likewise.
  4457. * gnulib/import/m4/locale-fr.m4: Likewise.
  4458. * gnulib/import/m4/locale-ja.m4: Likewise.
  4459. * gnulib/import/m4/locale-zh.m4: Likewise.
  4460. * gnulib/import/m4/mbrtowc.m4: Likewise.
  4461. * gnulib/import/m4/mbsinit.m4: Likewise.
  4462. * gnulib/import/m4/mbsrtowcs.m4: Likewise.
  4463. * gnulib/import/m4/mbstate_t.m4: Likewise.
  4464. * gnulib/import/m4/stdbool.m4: Likewise.
  4465. * gnulib/import/m4/wchar_h.m4: Likewise.
  4466. * gnulib/import/m4/wctype_h.m4: Likewise.
  4467. * gnulib/import/m4/wint_t.m4: Likewise.
  4468. * gnulib/import/mbrtowc.c: Likewise.
  4469. * gnulib/import/mbsinit.c: Likewise.
  4470. * gnulib/import/mbsrtowcs-impl.h: Likewise.
  4471. * gnulib/import/mbsrtowcs-state.c: Likewise.
  4472. * gnulib/import/mbsrtowcs.c: Likewise.
  4473. * gnulib/import/ref-add.sin: Likewise.
  4474. * gnulib/import/ref-del.sin: Likewise.
  4475. * gnulib/import/stdbool.in.h: Likewise.
  4476. * gnulib/import/streq.h: Likewise.
  4477. * gnulib/import/strnlen1.c: Likewise.
  4478. * gnulib/import/strnlen1.h: Likewise.
  4479. * gnulib/import/verify.h: Likewise.
  4480. * gnulib/import/wchar.in.h: Likewise.
  4481. * gnulib/import/wctype.in.h: Likewise.
  4482. 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
  4483. Support shell wildcards for 'set auto-load safe-path'.
  4484. * auto-load.c: Include fnmatch.h.
  4485. (filename_is_in_dir): Rename to ...
  4486. (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
  4487. it. Update function comment. Rename dir_len to pattern_len. New
  4488. variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
  4489. messages. Use gdb_filename_fnmatch.
  4490. (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
  4491. pattern.
  4492. (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
  4493. * defs.h (gdb_filename_fnmatch): New declaration.
  4494. * utils.c: Include fnmatch.h.
  4495. (gdb_filename_fnmatch): New function.
  4496. 2012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
  4497. * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
  4498. `-probe' and `-probe-stap' options.
  4499. 2012-07-01 Yao Qi <yao@codesourcery.com>
  4500. * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
  4501. always_inserted_off, and always_inserted_enums.
  4502. Change always_inserted_mode's type to 'enum auto_boolean'.
  4503. (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
  4504. callers.
  4505. (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
  4506. of add_setshow_enum_cmd.
  4507. * infrun.c: Remove can_use_displaced_stepping_auto,
  4508. can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
  4509. can_use_displaced_stepping_enum.
  4510. Change can_use_displaced_stepping's type to 'enum auto_boolean'.
  4511. (show_can_use_displaced_stepping, use_displaced_stepping): Update
  4512. callers.
  4513. (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
  4514. add_setshow_enum_cmd.
  4515. 2012-06-30 Doug Evans <dje@google.com>
  4516. * dwarf2read.c (signatured_type): Make "per_cu" member first.
  4517. (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
  4518. currently being read. Propagate DW_AT_comp_dir to DWO DIE.
  4519. 2012-06-29 Doug Evans <dje@google.com>
  4520. * linespec.c: #include "stack.h".
  4521. (decode_line_with_current_source): Moved here from symtab.c and
  4522. renamed from decode_line_spec. All callers updated.
  4523. (decode_line_with_last_displayed): Moved here from breakpoint.c and
  4524. renamed from decode_line_spec_1. All callers updated.
  4525. * linespec.h (decode_line_with_current_source): Move declaration here
  4526. from symtab.h and renamed from decode_line_spec.
  4527. (decode_line_with_last_displayed): Move declaration here from symtab.h
  4528. and renamed from decode_line_spec_1.
  4529. * macrocmd.c: #include "linespec.h".
  4530. * symtab.c: Remove #include "linespec.h".
  4531. 2012-06-28 Doug Evans <dje@google.com>
  4532. * dwarf2read.c (get_cu_length): New function.
  4533. (offset_in_cu_p, error_check_comp_unit_head): Call it.
  4534. (create_debug_types_hash_table): Ditto.
  4535. (init_cutu_and_read_dies): Ditto.
  4536. (init_cutu_and_read_dies_no_follow): Ditto.
  4537. * dwarf2read.c (dwarf2_find_base_address): Move definition.
  4538. * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
  4539. (struct abbrev_table): Define.
  4540. (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
  4541. abbrev_table.
  4542. (init_cutu_and_read_dies): Update.
  4543. (abbrev_table_alloc_abbrev): New function. Replaces
  4544. dwarf_alloc_abbrev. All callers updated.
  4545. (abbrev_table_add_abbrev): New function.
  4546. (abbrev_table_lookup_abbrev): New function. Replaces
  4547. dwarf2_lookup_abbrev. All callers updated.
  4548. (abbrev_table_read_table): New function. Contents moved here from
  4549. dwarf2_read_abbrevs.
  4550. (dwarf2_read_abbrevs): Call it.
  4551. (abbrev_table_free): New function.
  4552. (dwarf2_free_abbrev_table): Call it.
  4553. 2012-06-28 Stan Shebs <stan@codesourcery.com>
  4554. * osdata.c (info_osdata_command): Filter out "Title" columns
  4555. from non-MI uses.
  4556. * common/linux-osdata.c (struct osdata_type): Add title field.
  4557. (osdata_table): Add titles to each entry.
  4558. (linux_command_xfer_osdata): Add a column for title data.
  4559. 2012-06-28 Stan Shebs <stan@codesourcery.com>
  4560. Make logging work for MI.
  4561. * NEWS: Mention it.
  4562. * interps.h (interp_set_logging_ftype): New typedef.
  4563. (struct interp_procs): New field set_logging_proc.
  4564. (current_interp_set_logging): Declare.
  4565. * interps.c (current_interp_set_logging): New function.
  4566. * cli/cli-logging.c: Include interps.h.
  4567. (set_logging_redirect): Call current_interp_set_logging.
  4568. (pop_output_files): Ditto.
  4569. (handle_redirections): Ditto, plus skip ui-out redirect if MI.
  4570. * mi/mi-console.h (mi_console_set_raw): Declare.
  4571. * mi/mi-console.c (mi_console_set_raw): New function.
  4572. * mi/mi-interp.c (saved_raw_stdout): New global.
  4573. (mi_set_logging): New function.
  4574. (_initialize_mi_interp): Add it to interp procs.
  4575. 2012-06-28 Doug Evans <dje@google.com>
  4576. * symtab.c (lookup_symbol_aux_objfile): Use
  4577. ALL_OBJFILE_PRIMARY_SYMTABS.
  4578. * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
  4579. 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
  4580. * common/buffer.c: Include inttypes.h and stdint.h.
  4581. (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
  4582. 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
  4583. Pedro Alves <palves@redhat.com>
  4584. * gdbthread.h (ALL_THREADS): New macro.
  4585. (thread_list): Declare.
  4586. * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
  4587. going, but instead fall through to the stepping handling.
  4588. * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
  4589. the passed in signal. Adjust debug output.
  4590. (resume_callback): Rename to ...
  4591. (linux_nat_resume_callback): ... this. Pass the thread's last
  4592. stop signal, if in "pass" state.
  4593. (linux_nat_resume): Adjust to rename.
  4594. (stop_wait_callback): New assertion. Don't respawn signals;
  4595. instead let the LWP remain with SIGNALLED set.
  4596. (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
  4597. * remote.c (append_pending_thread_resumptions): New.
  4598. (remote_vcont_resume): Call it.
  4599. * target.h (target_resume): Extend comment.
  4600. 2012-06-28 Iain Sandoe <iain@codesourcery.com>
  4601. * auxv.c (fprint_target_auxv): Handle extended cache data tags.
  4602. 2012-06-27 Doug Evans <dje@google.com>
  4603. * dwarf2read.c (dwarf2_cu): Add ranges_base.
  4604. Delete have_addr_base, unused. All uses updated.
  4605. (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
  4606. (dwarf2_get_pc_bounds): Add ranges_base.
  4607. (dwarf2_record_block_ranges): Ditto.
  4608. 2012-06-27 Tom Tromey <tromey@redhat.com>
  4609. PR macros/7961:
  4610. * varobj.c (varobj_create): Update.
  4611. (varobj_set_value): Update.
  4612. * tracepoint.c (validate_actionline): Update.
  4613. (encode_actions_1): Update.
  4614. * parse.c (parse_exp_1): Add 'pc' argument.
  4615. (parse_exp_in_context): Add 'pc' argument. Change how
  4616. expression_context_pc is set.
  4617. (parse_expression): Update.
  4618. (parse_field_expression): Update.
  4619. * expression.h (parse_exp_1): Update.
  4620. * eval.c (parse_to_comma_and_eval): Update.
  4621. * breakpoint.c (set_breakpoint_condition): Update.
  4622. (update_watchpoint): Update.
  4623. (init_breakpoint_sal): Update
  4624. (find_condition_and_thread): Update.
  4625. (watch_command_1): Update.
  4626. (update_breakpoint_locations): Update.
  4627. * ada-lang.c (ada_read_renaming_var_value): Update.
  4628. (create_excep_cond_exprs): Update.
  4629. 2012-06-27 Doug Evans <dje@google.com>
  4630. * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
  4631. type units.
  4632. 2012-06-26 Doug Evans <dje@google.com>
  4633. * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
  4634. prototype.
  4635. (error_check_comp_unit_head): New arg abbrev_section. All callers
  4636. updated.
  4637. (read_and_check_comp_unit_head): Ditto.
  4638. (read_and_check_type_unit_head): Ditto.
  4639. 2012-06-26 Siva Chandra Reddy <sivachandra@google.com>
  4640. New attribute 'last' for gdb.Symtab_and_line.
  4641. * NEWS (Python Scripting): Add entry about the new attribute.
  4642. * python/py-symtab.c (salpy_get_last): New function which
  4643. implements the get method for the 'last' attribute of
  4644. gdb.Symtab_and_line.
  4645. (sal_object_getset): Add entry for the 'last' attribute.
  4646. 2012-06-26 Doug Evans <dje@google.com>
  4647. * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
  4648. (dwo_sections): Add macinfo, macro.
  4649. (dwarf2_locate_dwo_sections): Watch for macro sections.
  4650. (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
  4651. All callers updated. Handle DWO files.
  4652. * NEWS: Mention new options "set debug dwarf2-read" and
  4653. "set debug symtab-create".
  4654. * dwarf2read.c (dwarf2_read_debug): New static global.
  4655. (dwarf2_build_psymtabs_hard): Add debugging printfs.
  4656. (process_queue): Ditto.
  4657. (process_full_comp_unit): Ditto.
  4658. (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
  4659. * elfread.c (elf_symfile_read): Add debugging printf.
  4660. * minsyms.c (install_minimal_symbols): Ditto.
  4661. * psymtab.c (allocate_psymtab): Ditto.
  4662. * symfile.c (allocate_symtab): Ditto.
  4663. * symtab.c (symtab_create_debug): New global.
  4664. (_initialize_symtab): Add new option "set debug symtab-create".
  4665. * symtab.h (symtab_create_debug): Declare.
  4666. * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
  4667. (lookup_dwo_type_unit): Ditto.
  4668. 2012-06-26 Roland McGrath <roland@hack.frob.com>
  4669. H.J. Lu <hongjiu.lu@intel.com>
  4670. * amd64-linux-nat.c: Include <sys/user.h>.
  4671. (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
  4672. if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
  4673. HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
  4674. * configure.ac: Check if the fs_base and gs_base members of
  4675. `struct user_regs_struct' exist.
  4676. * config.in: Regenerated.
  4677. * configure: Likewise.
  4678. 2012-06-25 Michael Eager <eager@eagercon.com>
  4679. PR python/14291
  4680. * python/python.c (gdbpy_write): Check for interrupted output.
  4681. 2012-06-25 Greta Yorsh <greta.yorsh@arm.com>
  4682. * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
  4683. register as a stack alignment in ARM mode.
  4684. 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
  4685. Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
  4686. * gnulib/config.in: Regenerate.
  4687. * gnulib/configure: Likewise.
  4688. * gnulib/import/m4/extensions.m4: Update it.
  4689. * gnulib/import/m4/gnulib-common.m4: Likewise.
  4690. * gnulib/import/m4/memmem.m4: Likewise.
  4691. * gnulib/import/m4/mmap-anon.m4: Likewise.
  4692. * gnulib/import/m4/multiarch.m4: Likewise.
  4693. * gnulib/import/stdint.in.h: Likewise.
  4694. 2012-06-24 Yao Qi <yao@codesourcery.com>
  4695. * corefile.c (write_memory_with_notification): New.
  4696. * gdbcore.h: Declare write_memory_with_notification.
  4697. * ada-lang.c (ada_value_assign): Replace 'write_memory' and
  4698. 'observer_notify_memory_changed' with 'write_memory_with_notification'.
  4699. * valops.c (value_assign): Likewise.
  4700. * python/py-inferior.c (infpy_write_memory): Call
  4701. 'write_memory_with_notification'.
  4702. 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
  4703. * cc-with-index.sh: Use also -ex "set auto-load no".
  4704. 2012-06-23 Doug Evans <dje@google.com>
  4705. PR 14125
  4706. * NEWS: Document additions to .gdb_index.
  4707. * dwarf2read.c: #include "gdb/gdb-index.h".
  4708. (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
  4709. (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
  4710. (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
  4711. (dwarf2_read_index): Recognize version 7.
  4712. (dw2_do_expand_symtabs_matching): New args want_specific_block,
  4713. block_kind, domain): All callers updated.
  4714. (dw2_find_symbol_file): Handle new index CU values.
  4715. (dw2_expand_symtabs_matching): Match symbol kind if requested.
  4716. (add_index_entry): New args is_static, kind. All callers updated.
  4717. (offset_type_compare, uniquify_cu_indices): New functions
  4718. (symbol_kind): New function.
  4719. (write_psymtabs_to_index): Remove duplicate CU values.
  4720. (write_psymtabs_to_index): Write .gdb_index version 7.
  4721. 2012-06-22 Joel Brobecker <brobecker@adacore.com>
  4722. * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
  4723. * configure: Regenerate.
  4724. 2012-06-20 Yao Qi <yao@codesourcery.com>
  4725. * python/py-inferior.c: Update comments of infpy_read_memory
  4726. and infpy_write_memory.
  4727. 2012-06-19 Tom Tromey <tromey@redhat.com>
  4728. PR exp/9514:
  4729. * parser-defs.h (insert_type, insert_type_address_space): Declare.
  4730. (push_type_address_space): Remove.
  4731. * parse.c (insert_into_type_stack): New function.
  4732. (insert_type): Likewise.
  4733. (insert_type_address_space): Rename from push_type_address_space.
  4734. Insert tp_space_identifier.
  4735. * c-exp.y (ptr_operator): New production.
  4736. (abs_decl): Use ptr_operator.
  4737. (space_identifier): Call insert_type_address_space.
  4738. (ptype): Don't use const_or_volatile_or_space_identifier.
  4739. (const_or_volatile_noopt): Call insert_type.
  4740. (conversion_type_id, conversion_declarator): New productions.
  4741. (operator): Use conversion_type_id.
  4742. 2012-06-18 Doug Evans <dje@google.com>
  4743. * symtab.h (minimal_symbol): New member created_by_gdb.
  4744. * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
  4745. created by gdb.
  4746. * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
  4747. (search_symbols): Call it instead of lookup_symbol.
  4748. Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
  4749. * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
  4750. Adjust address for DW_OP_GNU_addr_index.
  4751. * dwarf2expr.h (dwarf_expr_context): Update comment.
  4752. * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
  4753. all callers updated. Handle TLS vars described with
  4754. DW_OP_GNU_const_index.
  4755. (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
  4756. and DW_OP_GNU_const_index.
  4757. * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
  4758. * block.c (find_block_in_blockvector): Make explicit the fact that we
  4759. ignore GLOBAL_BLOCK.
  4760. 2012-06-18 Tom Tromey <tromey@redhat.com>
  4761. * c-exp.y (operator): Remove trailing space after "delete" and
  4762. "delete[]".
  4763. 2012-06-18 Mark Kettenis <kettenis@gnu.org>
  4764. Jan Kratochvil <jan.kratochvil@redhat.com>
  4765. Switch i386 and derived targets to ON_STACK.
  4766. * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
  4767. (amd64_dicos_init_abi): Remove its installment.
  4768. * dicos-tdep.c (dicos_init_abi): Remove the
  4769. set_gdbarch_call_dummy_location call. Update the comment here.
  4770. * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
  4771. (i386_dicos_init_abi): Remove its installment.
  4772. * i386-tdep.c (i386_push_dummy_code): New function.
  4773. (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
  4774. i386_push_dummy_code.
  4775. 2012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
  4776. Remove stale dummy frames.
  4777. * breakpoint.c: Include dummy-frame.h.
  4778. (longjmp_breakpoint_ops): New variable.
  4779. (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
  4780. bp_longjmp_call_dummy.
  4781. (bpstat_what, bptype_string, print_one_breakpoint_location)
  4782. (init_bp_location): Support bp_longjmp_call_dummy.
  4783. (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
  4784. (set_longjmp_breakpoint_for_call_dummy)
  4785. (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
  4786. functions.
  4787. (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
  4788. * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
  4789. FIXME comment and extend the other comment for bp_call_dummy.
  4790. (set_longjmp_breakpoint_for_call_dummy)
  4791. (check_longjmp_breakpoint_for_call_dummy): New declarations.
  4792. * dummy-frame.c: Include gdbthread.h.
  4793. (pop_dummy_frame_bpt): New function.
  4794. (pop_dummy_frame): Call pop_dummy_frame_bpt.
  4795. (dummy_frame_discard): New function.
  4796. (cleanup_dummy_frames): Update the comment about longjmps.
  4797. * dummy-frame.h (dummy_frame_discard): New declaration.
  4798. * gdbthread.h (struct thread_info): Extend initiating_frame comment.
  4799. * infcall.c (call_function_by_hand): New variable longjmp_b. Call
  4800. set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
  4801. * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
  4802. Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
  4803. keep_going if IS_LONGJMP and there is no other reason to stop.
  4804. 2012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
  4805. * remote-sim.c (sim_command_completer): Initialize
  4806. variable 'result'.
  4807. 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
  4808. * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
  4809. * dwarf2loc.c (call_site_parameter_matches): Support
  4810. CALL_SITE_PARAMETER_PARAM_OFFSET.
  4811. (needs_dwarf_reg_entry_value): Push stub value.
  4812. * dwarf2read.c (read_call_site_scope): New variable origin. Support
  4813. CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
  4814. * gdbtypes.h (enum call_site_parameter_kind): New item
  4815. CALL_SITE_PARAMETER_PARAM_OFFSET.
  4816. (struct call_site.parameter.u): New field param_offset.
  4817. 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
  4818. Code cleanup: Generalize call_site.parameter key.
  4819. * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
  4820. variable dwarf_reg. New variable kind_u. Update parameters to
  4821. push_dwarf_reg_entry_value.
  4822. (ctx_no_push_dwarf_reg_entry_value): Update parameters.
  4823. * dwarf2expr.h (enum call_site_parameter_kind)
  4824. (union call_site_parameter_u): Forward declarations.
  4825. (struct dwarf_expr_context_funcs): Update parameters and their
  4826. description for push_dwarf_reg_entry_value.
  4827. (ctx_no_push_dwarf_reg_entry_value): Update parameters.
  4828. * dwarf2loc.c (call_site_parameter_matches): New function.
  4829. (dwarf_expr_reg_to_entry_parameter): Update parameters and their
  4830. description. Use call_site_parameter_matches.
  4831. (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
  4832. Update parameters and their description.
  4833. (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
  4834. New variable kind_u. Adjust the caller for updated parameters.
  4835. (needs_dwarf_reg_entry_value): Update parameters.
  4836. * dwarf2read.c (read_call_site_scope): New variable loc. Use it
  4837. instead of attr. Update for the changed fields of struct
  4838. call_site_parameter.
  4839. * gdbtypes.h: Include dwarf2expr.h.
  4840. (enum call_site_parameter_kind): New.
  4841. (struct call_site.parameter): New field kind. Wrap dwarf_reg and
  4842. fb_offset into new union u.
  4843. 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
  4844. * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
  4845. (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
  4846. for x32.
  4847. 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
  4848. * amd64-linux-nat.c (compat_x32_clock_t): New.
  4849. (compat_x32_siginfo_t): Likewise.
  4850. (compat_x32_siginfo_from_siginfo): Likewise.
  4851. (siginfo_from_compat_x32_siginfo): Likewise.
  4852. (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
  4853. and siginfo_from_compat_x32_siginfo for x32.
  4854. 2012-06-15 Hui Zhu <hui_zhu@mentor.com>
  4855. * tracepoint.c (tfile_xfer_partial): Add a lseek.
  4856. 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
  4857. * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
  4858. instead of gdbarch_ptr_bit.
  4859. * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
  4860. (amd64_supply_native_gregset): Likewise.
  4861. (amd64_collect_native_gregset): Likewise.
  4862. * amd64-tdep.c (amd64_supply_fxsave): Likewise.
  4863. (amd64_supply_xsave): Likewise.
  4864. (amd64_collect_fxsave): Likewise.
  4865. (amd64_collect_xsave): Likewise.
  4866. 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
  4867. * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
  4868. (amd64_linux_read_description): Check DS segment register for
  4869. x32 process.
  4870. 2012-06-15 Tom Tromey <tromey@redhat.com>
  4871. * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
  4872. init_cutu_and_read_dies.
  4873. 2012-06-15 Iain Sandoe <iain@codesourcery.com>
  4874. * MAINTAINERS (Write After Approval): Add myself to the list.
  4875. 2012-06-15 Tom Tromey <tromey@redhat.com>
  4876. * valops.c (value_find_oload_method_list): Now static.
  4877. * value.h (value_find_oload_method_list): Don't declare.
  4878. 2012-06-15 Tom Tromey <tromey@redhat.com>
  4879. * valops.c (find_overload_match): Use value_ind.
  4880. 2012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
  4881. * infrun.c (handle_inferior_event): Correct indentation.
  4882. 2012-06-14 Doug Evans <dje@google.com>
  4883. * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
  4884. (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
  4885. All uses updated.
  4886. (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
  4887. updated. Handle DEBUG_LOC_START_LENGTH.
  4888. (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
  4889. (loclist_describe_location): Ditto.
  4890. 2012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
  4891. PR backtrace/13866
  4892. * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
  4893. after hiding inline functions.
  4894. 2012-06-13 Joel Brobecker <brobecker@adacore.com>
  4895. * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
  4896. _initialize_inf_ttrace.
  4897. 2012-06-13 Joel Brobecker <brobecker@adacore.com>
  4898. * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
  4899. _initialize_hppa_hpux_nat.
  4900. 2012-06-13 Joel Brobecker <brobecker@adacore.com>
  4901. * remote-sim.c (sim_command_completer): Change type of return
  4902. value to "VEC (char_ptr) *". Adjust implementation accordingly.
  4903. 2012-06-13 Mark Kettenis <kettenis@gnu.org>
  4904. Jan Kratochvil <jan.kratochvil@redhat.com>
  4905. PR tdep/14222
  4906. * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
  4907. stack on a 16-byte boundary.
  4908. 2012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
  4909. * jit.c (finalize_symtab): Set function's return type to 'void' by
  4910. default.
  4911. 2012-06-13 Mark Kettenis <kettenis@gnu.org>
  4912. H.J. Lu <hongjiu.lu@intel.com>
  4913. * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
  4914. Move bits common to both the classic LP64 and the new x32 ILP32
  4915. ABI here.
  4916. (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
  4917. (amd64_x32_linux_init_abi): New function.
  4918. (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
  4919. subtype.
  4920. * i386-tdep.h (i386_pseudo_register_name): New prototype.
  4921. * i386-tdep.c (i386_pseudo_register_name): Make public.
  4922. * amd64-tdep.h (amd64_x32_init_abi): New prototype.
  4923. * amd64-tdep.c (amd64_dword_names): Add "eip".
  4924. (amd64_x32_pseudo_register_type): New function
  4925. (amd64_x32_init_abi): New function.
  4926. 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
  4927. PR build/14003
  4928. * inferior.h (struct inferior_suspend_state): Comment out.
  4929. (struct inferior): Comment out the field suspend.
  4930. * infrun.c (struct infcall_suspend_state): Comment out the field
  4931. inferior_suspend.
  4932. (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
  4933. out its assignment.
  4934. 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
  4935. PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
  4936. * c-exp.y (classify_inner_name): Remove caller assumptions in the
  4937. function comment. Return ERROR for unresolved cases. Implement
  4938. returning proper NAME.
  4939. (yylex): Accept also NAME from classify_inner_name.
  4940. * cp-namespace.c (cp_lookup_nested_type): Rename to ...
  4941. (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
  4942. LOC_TYPEDEF type.
  4943. * cp-support.h (cp_lookup_nested_type): Update its declaration.
  4944. 2012-06-13 Tom Tromey <tromey@redhat.com>
  4945. * breakpoint.c (condition_completer): New function.
  4946. (_initialize_breakpoint): Use it.
  4947. * value.c (complete_internalvar): New function.
  4948. * value.h (complete_internalvar): Declare.
  4949. 2012-06-13 Tom Tromey <tromey@redhat.com>
  4950. * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
  4951. * breakpoint.c (catch_syscall_completer): Return a VEC.
  4952. * cli/cli-cmds.c (complete_command): Update.
  4953. * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
  4954. (complete_on_enum): Likewise.
  4955. * command.h: Include gdb_vecs.h.
  4956. (completer_ftype): Change return type.
  4957. (complete_on_cmdlist, complete_on_enum): Likewise.
  4958. * completer.c (noop_completer, filename_completer)
  4959. (location_completer): Return a VEC.
  4960. (add_struct_fields): Remove 'nextp' argument. Change 'output'
  4961. to a VEC.
  4962. (expression_completer, complete_line_internal, complete_line)
  4963. (command_completer): Return a VEC.
  4964. (gdb_completion_word_break_characters, line_completion_function):
  4965. Update.
  4966. * completer.h: Include gdb_vecs.h.
  4967. (complete_line, noop_completer, filename_completer)
  4968. (expression_completer, location_completer, command_completer):
  4969. Update.
  4970. * f-lang.c (f_word_break_characters): Return a VEC.
  4971. * interps.c (interpreter_completer): Return a VEC.
  4972. * language.h (struct language_defn)
  4973. <la_make_symbol_completion_list>: Return a VEC.
  4974. * python/py-cmd.c (cmdpy_completer): Return a VEC.
  4975. * symtab.c (free_completion_list): Take a VEC.
  4976. (return_val_size, return_val_index): Remove.
  4977. (return_val): Now a VEC.
  4978. (completion_list_add_name): Update.
  4979. (default_make_symbol_completion_list_break_on)
  4980. (default_make_symbol_completion_list, make_symbol_completion_list)
  4981. (make_symbol_completion_list_fn, make_file_symbol_completion_list):
  4982. Return a VEC.
  4983. (add_filename_to_list): Update.
  4984. (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
  4985. <list>: Now a VEC.
  4986. (maybe_add_partial_symtab_filename): Update.
  4987. (make_source_files_completion_list): Return a VEC.
  4988. * symtab.h (default_make_symbol_completion_list_break_on)
  4989. (default_make_symbol_completion_list, make_symbol_completion_list)
  4990. (make_symbol_completion_list_fn, make_file_symbol_completion_list)
  4991. (make_source_files_completion_list): Update.
  4992. 2012-06-13 Tom Tromey <tromey@redhat.com>
  4993. * breakpoint.c (add_catch_command): Use completer_ftype.
  4994. * breakpoint.h: Include command.h.
  4995. (add_catch_command): Use completer_ftype.
  4996. * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
  4997. * cli/cli-decode.h (struct cmd_list_element) <completer>:
  4998. Use completer_ftype.
  4999. * command.h (completer_ftype): New typedef.
  5000. (set_cmd_completer): Use it.
  5001. * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
  5002. completer_ftype.
  5003. 2012-06-13 Pedro Alves <palves@redhat.com>
  5004. Partial revert of previous change.
  5005. * serial.c (scb_base): New global.
  5006. (serial_for_fd): New.
  5007. (serial_open, serial_fdopen_ops): Link new serial in open serials
  5008. chain.
  5009. (do_serial_close): Unlink serial from the open serials chain.
  5010. 2012-06-12 Pedro Alves <palves@redhat.com>
  5011. * infrun.c (infrun_thread_stop_requested_callback): Don't switch
  5012. threads here.
  5013. (prepare_for_detach): No longer context switch here in non-stop
  5014. mode.
  5015. (fetch_inferior_event): Ditto.
  5016. (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
  5017. to the event thread before removing breakpoints. Switch to the
  5018. event thread before inserting breakpoints and resuming.
  5019. (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
  5020. event thread before resuming.
  5021. (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
  5022. Switch to the event thread before removing breakpoints.
  5023. 2012-06-12 Eli Zaretskii <eliz@gnu.org>
  5024. * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
  5025. special characters correctly for the Windows shells. See
  5026. http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
  5027. report.
  5028. [!__MINGW32__]: Remove extra double quote character from special
  5029. characters.
  5030. 2012-06-11 Stan Shebs <stan@codesourcery.com>
  5031. * ui-out.h: Remove #if 0 declarations.
  5032. * ui-out.c: Remove #if 0 functions.
  5033. 2012-06-11 Pedro Alves <palves@redhat.com>
  5034. * ser-base.c (run_async_handler_and_reschedule): New.
  5035. (fd_event, push_event): Use it.
  5036. * serial.c (serial_open, serial_fdopen_ops): Set the initial
  5037. reference count to 1.
  5038. (do_serial_close): Set the bufp field to NULL. Use serial_unref
  5039. instead of xfree.
  5040. (serial_is_open, serial_ref, serial_unref): New.
  5041. * serial.h (serial_open): Adjust comment.
  5042. (serial_is_open): Declare.
  5043. (serial_close): Adjust comment.
  5044. (serial_ref, serial_unref) Declare.
  5045. (struct serial): New field 'refcnt'.
  5046. 2012-06-11 Pedro Alves <palves@redhat.com>
  5047. Remove #if 0'd "connect" command, and unnecessary associated
  5048. refcounting and serial reuse bits.
  5049. * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
  5050. * serial.c (last_serial_opened): Delete.
  5051. (scb_base): Delete.
  5052. (serial_open): Adjust.
  5053. (serial_for_fd): Delete.
  5054. (serial_fdopen_ops, do_serial_close): Adjust.
  5055. (serial_fdopen_ops): Adjust.
  5056. 2012-06-11 Pedro Alves <palves@redhat.com>
  5057. * serial.c (do_serial_close): Remove early return when SCB is
  5058. null.
  5059. 2012-06-11 Tom Tromey <tromey@redhat.com>
  5060. * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
  5061. 2012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
  5062. Fix regression by the "ambiguous linespec" series.
  5063. * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
  5064. get_last_displayed_symtab and get_last_displayed_line and depending
  5065. on CURSAL.
  5066. 2012-06-11 Tom Tromey <tromey@redhat.com>
  5067. * dwarf2read.c (dw2_get_primary_filename_reader): New function.
  5068. (dw2_find_symbol_file): Use it.
  5069. 2012-06-11 Michael Eager <eager@eagercon.com>
  5070. * mips-linux-tdep.c (mips_gdb_signal_from_target): New
  5071. * mips-linux-tdep.h (mips_signals): New
  5072. 2012-06-11 Tom Tromey <tromey@redhat.com>
  5073. * infrun.c (handle_inferior_event)
  5074. <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
  5075. breakpoint.
  5076. <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
  5077. exception logic in all cases. Update comments.
  5078. (insert_longjmp_resume_breakpoint): Set the exception resume
  5079. breakpoint.
  5080. 2012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
  5081. * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
  5082. 2012-06-09 Siva Chandra Reddy <sivachandra@google.com>
  5083. * valarith.c (binop_types_user_defined_p): Fix a typo.
  5084. 2012-06-08 Yao Qi <yao@codesourcery.com>
  5085. Chung-Lin Tang <cltang@codesourcery.com>
  5086. * arch-utils.c (default_return_in_first_hidden_param_p): New.
  5087. * arch-utils.h: Declare.
  5088. * gdbarch.sh: Add return_in_first_hidden_param_p.
  5089. * gdbarch.c, gdbarch.h: Regenerated.
  5090. * infcall.c (call_function_by_hand): Call
  5091. gdbarch_return_in_first_hidden_param_p instead of
  5092. language_pass_by_reference.
  5093. * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
  5094. (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
  5095. * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
  5096. (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
  5097. * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
  5098. `cplus_return_struct_by_reference'.
  5099. (tic6x_return_value): Handle language cplusplus.
  5100. (tic6x_return_in_first_hidden_param_p): New.
  5101. (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
  5102. 2012-06-07 Doug Evans <dje@google.com>
  5103. * dwarf2read.c (dwarf2_cu): Add comment.
  5104. 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
  5105. * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
  5106. variable.
  5107. (mips_eabi_push_dummy_call): Likewise.
  5108. (mips_n32n64_push_dummy_call): Likewise.
  5109. (mips_o32_push_dummy_call): Likewise.
  5110. (mips_o64_push_dummy_call): Likewise.
  5111. 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
  5112. * mips-tdep.c (mips_convert_register_p): Correct coding style.
  5113. 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
  5114. * mips-tdep.c (mips_pseudo_register_type): Use
  5115. mips_float_register_p.
  5116. 2012-06-06 Pedro Alves <palves@redhat.com>
  5117. * infrun.c (handle_inferior_event): Remove calls to
  5118. reinit_frame_cache that follow a context_switch call.
  5119. 2012-06-06 Pedro Alves <palves@redhat.com>
  5120. * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
  5121. context_switch and remove stale comment.
  5122. 2012-06-06 Pedro Alves <palves@redhat.com>
  5123. * infrun.c (struct execution_control_state): Remove
  5124. `new_thread_event' field.
  5125. (handle_inferior_event): Simplify new threads handling; don't
  5126. resume the inferior if we find a new thread.
  5127. 2012-06-06 Thomas Schwinge <thomas@codesourcery.com>
  5128. * NEWS: Document the deprecation of SH's 'regs' command.
  5129. * inferior.h (all_registers_info): Add function declaration.
  5130. * sh-tdep.c (sh_show_regs): Remove variable.
  5131. (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
  5132. (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
  5133. (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
  5134. (sh_show_regs_command): Remove functions.
  5135. (sh_gdbarch_init): Don't set sh_show_regs.
  5136. (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
  5137. 'info all-registers'.
  5138. * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
  5139. (sh64_show_regs): Remove functions.
  5140. * sh64-tdep.h (sh64_show_regs): Remove function declaration.
  5141. 2012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
  5142. * configure.ac: Move development=true below AC_INIT.
  5143. * configure: Regenerate.
  5144. 2012-06-05 Stan Shebs <stan@codesourcery.com>
  5145. * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
  5146. gdb_stdout.
  5147. 2012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
  5148. * corefile.c (read_memory, read_stack, write_memory): Accept LEN
  5149. argument as ssize_t.
  5150. * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
  5151. * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
  5152. * target.c (target_read_stack, target_write_memory)
  5153. (target_write_raw_memory): Likewise.
  5154. * target.h (target_read_stack, target_write_memory)
  5155. (target_write_raw_memory): Likewise.
  5156. 2012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
  5157. * symfile-mem.c: Change gdb_static_assert to ssize_t.
  5158. (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
  5159. * target.c (target_read_memory): Change LEN to ssize_t.
  5160. * target.h (target_read_memory): Change LEN to ssize_t.
  5161. 2012-06-05 Pedro Alves <palves@redhat.com>
  5162. PR backtrace/13866
  5163. * breakpoint.c (until_break_command): Only fetch the selected
  5164. frame after decode_line_1.
  5165. 2012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
  5166. * solib-svr4.c (enable_break): Don't fallback to setting the solib
  5167. event breakpoint at _start, __start or main if a program
  5168. interpreter is not found.
  5169. 2012-06-05 Joel Brobecker <brobecker@adacore.com>
  5170. * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
  5171. Add declaration.
  5172. * windows-tdep.c: #include "objfiles.h".
  5173. (windows_iterate_over_objfiles_in_search_order): New function.
  5174. * amd64-windows-tdep.c (amd64_windows_init_abi): Set
  5175. iterate_over_objfiles_in_search_order gdbarch method to
  5176. windows_iterate_over_objfiles_in_search_order.
  5177. * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
  5178. 2012-06-05 Joel Brobecker <brobecker@adacore.com>
  5179. * gdbarch.sh: Add generation of
  5180. "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
  5181. gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
  5182. (iterate_over_objfiles_in_search_order): New gdbarch method.
  5183. * gdbarch.h, gdbarch.c: Regenerate.
  5184. * objfiles.h (default_iterate_over_objfiles_in_search_order):
  5185. Add declaration.
  5186. * objfiles.c (default_iterate_over_objfiles_in_search_order):
  5187. New function.
  5188. * symtab.c (lookup_symbol_aux_objfile): New function, extracted
  5189. out of lookup_symbol_aux_symtabs.
  5190. (lookup_symbol_aux_symtabs): Replace extracted-out code by
  5191. call to lookup_symbol_aux_objfile.
  5192. (struct global_sym_lookup_data): New type.
  5193. (lookup_symbol_global_iterator_cb): New function.
  5194. (lookup_symbol_global): Search for symbol using
  5195. gdbarch_iterate_over_objfiles_in_search_order and
  5196. lookup_symbol_global_iterator_cb.
  5197. * findvar.c (struct minsym_lookup_data): New type.
  5198. (minsym_lookup_iterator_cb): New function.
  5199. (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
  5200. symbol's address via gdbarch_iterate_over_objfiles_in_search_order
  5201. and minsym_lookup_iterator_cb.
  5202. 2012-06-05 Joel Brobecker <brobecker@adacore.com>
  5203. Revert the following patch:
  5204. * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
  5205. try locating the symbol in the symbol's own objfile first, before
  5206. extending the search to all objfiles.
  5207. * symtab.c (lookup_symbol_aux_objfile): New function, extracted
  5208. out of lookup_symbol_aux_symtabs.
  5209. (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
  5210. Replace extracted-out code by call to lookup_symbol_aux_objfile.
  5211. Do not search EXCLUDE_OBJFILE.
  5212. (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
  5213. (lookup_symbol_global): Search for matches in the block's objfile
  5214. first, before searching all other objfiles.
  5215. 2012-06-05 Joel Brobecker <brobecker@adacore.com>
  5216. * breakpoint.c (find_condition_and_thread): Stop parsing
  5217. as soon as the first invalid keyword is found.
  5218. 2012-06-05 Joel Brobecker <brobecker@adacore.com>
  5219. * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
  5220. 2012-06-05 Joel Brobecker <brobecker@adacore.com>
  5221. * config/djgpp/djcheck.sh: Add copyright header.
  5222. 2012-06-05 Joel Brobecker <brobecker@adacore.com>
  5223. * copyright.py (update_files, main): Fix path to update-copyright
  5224. script.
  5225. 2012-06-05 Joel Brobecker <brobecker@adacore.com>
  5226. * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
  5227. (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
  5228. for which a reminder to update by hand is printed.
  5229. 2012-06-04 Doug Evans <dje@google.com>
  5230. * buildsym.c (make_blockvector): Add comment.
  5231. 2012-06-04 Pedro Alves <palves@redhat.com>
  5232. * arch-utils.c (default_gdb_signal_from_target): Delete.
  5233. * arch-utils.h (default_gdb_signal_from_target): Delete.
  5234. * corelow.c (core_open) <signal mapping>: Extended comment. Check
  5235. gdbarch_gdb_signal_from_target_p.
  5236. * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
  5237. predicate).
  5238. * gdbarch.h: Regenerate.
  5239. * gdbarch.c: Regenerate.
  5240. 2012-06-04 Pedro Alves <palves@redhat.com>
  5241. * gdbarch.sh (gdb_signal_from_target): Mention that the
  5242. implementation of the method must be host independent.
  5243. * gdbarch.h: Regenerate.
  5244. 2012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
  5245. * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
  5246. parameters.
  5247. (target_read_memory_bfd): New function.
  5248. (symbol_file_add_from_memory): Use it.
  5249. 2012-06-03 Doug Evans <dje@google.com>
  5250. * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
  5251. of primary symtab.
  5252. (basic_lookup_transparent_type): Ditto.
  5253. * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
  5254. (ALL_PRIMARY_SYMTABS): Use it.
  5255. (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
  5256. * dwarf2read.c (dw2_find_symbol_file): Ditto.
  5257. * linespec.c (iterate_over_all_matching_symtabs): Ditto.
  5258. * symtab.c (lookup_symbol_aux_objfile): Ditto.
  5259. (basic_lookup_transparent_type): Ditto.
  5260. 2012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
  5261. * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
  5262. it to optimize resolution of demangled name.
  5263. 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
  5264. * configure.ac (development): Define new variable.
  5265. Call AC_CHECK_LIB for mcheck if $development.
  5266. (ERROR_ON_WARNING): Enable it by default only if $development.
  5267. * config.in: Regenerate.
  5268. * configure: Regenerate.
  5269. 2012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
  5270. * target.c (target_read_memory): Make LEN argument as size_t.
  5271. * target.h (target_read_memory): Likewise.
  5272. 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
  5273. * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
  5274. 2012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
  5275. * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
  5276. BookE interface for PowerPC server processors if not available
  5277. in the Linux Kernel.
  5278. 2012-05-31 Keith Seitz <keiths@redhat.com>
  5279. * linespec.c (decode_objc): Add cleanup to free
  5280. INFO.FILE_SYMTABS.
  5281. (find_linespec_symbols): Add cleanup to free CLASSES.
  5282. * symfile.c (find_separate_debug_file_by_debuglink): Add
  5283. cleanup to free DEBUGLINK.
  5284. * ui-out.c (clear_header_list): No need to check if
  5285. HEADER_NEXT.COLHDR is NULL.
  5286. Free HEADER_NEXT.COL_NAME.
  5287. 2012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
  5288. * ada-lang.c (standard_lookup): Prevent uninitialized variable
  5289. warning.
  5290. 2012-05-30 Jeff Kenton <jkenton@tilera.com>
  5291. * configure.host (gdb_host_cpu): Handle tilegx*.
  5292. (gdb_host): Handle tilegx-*-linux*.
  5293. * tilegx-linux-nat.c: New file.
  5294. * config/tilegx/linux.mh: New file.
  5295. 2012-05-30 Jeff Kenton <jkenton@tilera.com>
  5296. * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
  5297. tilegx-linux-tdep.o.
  5298. (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
  5299. tilegx-linux-tdep.c.
  5300. * configure.tgt: Handle tilegx-*-linux*.
  5301. * tilegx-tdep.h: New file.
  5302. * tilegx-tdep.c: New file.
  5303. * tilegx-linux-tdep.c: New file.
  5304. * regformats/reg-tilegx.dat: New file.
  5305. 2012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
  5306. * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
  5307. accounting of hw watchpoints on ppc.
  5308. 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
  5309. * source.c (openp): Expand tilde in path entries.
  5310. 2012-05-29 Doug Evans <dje@google.com>
  5311. * buildsym.c (block_compar): Fix comment.
  5312. (end_symtab): Fix and clarify some comments.
  5313. * stabsread.h (cleanup_undefined_stabs_types): Renamed from
  5314. cleanup_undefined_types.
  5315. * stabsread.c (cleanup_undefined_stabs_types): Ditto.
  5316. All callers updated.
  5317. 2012-05-29 Tom Tromey <tromey@redhat.com>
  5318. * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
  5319. fails.
  5320. * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
  5321. * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
  5322. fails.
  5323. * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
  5324. fails.
  5325. 2012-05-29 Tristan Gingold <gingold@adacore.com>
  5326. * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
  5327. (struct darwin_info): ... New struct.
  5328. (solib_darwin_pspace_data): New variable.
  5329. (darwin_pspace_data_cleanup): New function.
  5330. (get_darwin_info): Likewise.
  5331. (darwin_dyld_version_ok, darwin_load_image_infos)
  5332. (darwin_solib_get_all_image_info_addr_at_init)
  5333. (darwin_solib_read_all_image_info_addr): Add info argument.
  5334. Adjust code.
  5335. (darwin_current_sos): Use per pspace structure.
  5336. (darwin_solib_create_inferior_hook): Likewise.
  5337. (darwin_clear_solib): Likewise.
  5338. (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
  5339. 2012-05-28 Pedro Alves <palves@redhat.com>
  5340. * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
  5341. block that uses them. Clear ecss before handling each event.
  5342. 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
  5343. * solib-svr4.c (svr4_current_sos): New comment on
  5344. svr4_current_sos_via_xfer_libraries fall back.
  5345. 2012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
  5346. * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
  5347. it as a fallback for TYPE_IS_OPAQUE.
  5348. * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
  5349. symbols for lookup_symbol.
  5350. 2012-05-24 John Steele Scott <toojays@toojays.net>
  5351. PR symtab/13277: Resolving opaque structures in ICC generated binaries.
  5352. * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
  5353. (producer_is_gxx_lt_4_6): Move the checking and caching to...
  5354. (check_producer): ... this new function, which also checks for ICC
  5355. and caches the result.
  5356. (producer_is_icc): New function.
  5357. (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
  5358. producer was ICC.
  5359. 2012-05-24 Pedro Alves <palves@redhat.com>
  5360. PR gdb/7205
  5361. * arch-utils.c (default_gdb_signal_to_host): Rename to ...
  5362. (default_gdb_signal_to_target): ... this. Add comment.
  5363. (default_gdb_signal_from_host): Rename to ...
  5364. (default_gdb_signal_from_target): ... this. Add comment.
  5365. * arch-utils.h (default_gdb_signal_to_host): Rename to ...
  5366. (default_gdb_signal_to_target): ... this.
  5367. (default_gdb_signal_from_host): Rename to ...
  5368. (default_gdb_signal_from_target): ... this.
  5369. * corelow.c (core_open): Adjust to naming change. Replace comment.
  5370. * gdbarch.sh (gdb_signal_from_host): Rename to ...
  5371. (gdb_signal_from_target): ... this. Adjust to
  5372. default_gdb_signal_from_host naming change. Extend comment.
  5373. (gdb_signal_to_host): Rename to ...
  5374. (gdb_signal_to_target): ... this. Adjust to
  5375. default_gdb_signal_to_host naming change.
  5376. * gdbarch.h, gdbarch.c: Renegerate.
  5377. 2012-05-24 Pedro Alves <palves@redhat.com>
  5378. PR gdb/7205
  5379. Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
  5380. 2012-05-24 Pedro Alves <palves@redhat.com>
  5381. PR gdb/7205
  5382. Replace target_signal with gdb_signal throughout.
  5383. 2012-05-24 Pedro Alves <palves@redhat.com>
  5384. PR tui/14159
  5385. * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
  5386. string, instead of reusing the va_list argument.
  5387. 2012-05-24 Tom Tromey <tromey@redhat.com>
  5388. * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
  5389. Remove.
  5390. 2012-05-23 Doug Evans <dje@google.com>
  5391. * symtab.c (search_symbols): Formatting fixes.
  5392. (print_symbol_info): Formatting fixes.
  5393. * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
  5394. int64_t change to leb128 API.
  5395. (read_encoded_value, decode_frame_entry_1): Ditto.
  5396. * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
  5397. (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
  5398. (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
  5399. (execute_stack_op): Ditto.
  5400. * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
  5401. (safe_read_uleb128, safe_read_sleb128): Ditto.
  5402. * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
  5403. (dwarf2_compile_expr_to_ax): Ditto.
  5404. (locexpr_describe_location_piece): Ditto.
  5405. (disassemble_dwarf_expression): Ditto.
  5406. (locexpr_describe_location_1): Ditto.
  5407. 2012-05-23 Stan Shebs <stan@codesourcery.com>
  5408. Kwok Cheung Yeung <kcy@codesourcery.com>
  5409. * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
  5410. (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
  5411. (mi-cmd-info.o): New rule.
  5412. * osdata.h (info_osdata_command): New declaration.
  5413. * osdata.c (info_osdata_command): Change to non-static.
  5414. * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
  5415. * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
  5416. * mi/mi-cmd-info.c: New file.
  5417. 2012-05-23 Doug Evans <dje@google.com>
  5418. * symtab.c (search_symbols): Pass NULL for file_matcher to
  5419. expand_symtabs_matching if there are no files to match.
  5420. * gdbtypes.c (lookup_typename): Simplify.
  5421. 2012-05-23 Pedro Alves <palves@redhat.com>
  5422. * arch-utils.h (default_target_signal_to_host): Delete.
  5423. * arch-utils.c (default_target_signal_to_host): Delete.
  5424. * gdbarch.sh (target_signal_to_host): Remove.
  5425. * gdbarch.h, gdbarch.c: Regenerate.
  5426. 2012-05-22 Doug Evans <dje@google.com>
  5427. * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
  5428. "const gdb_byte *".
  5429. (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
  5430. (execute_cfa_program): Update to match API of leb128 functions.
  5431. (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
  5432. "const gdb_byte *".
  5433. (read_unsigned_leb128, read_signed_leb128): Delete.
  5434. (read_initial_length): Change type of buf argument to
  5435. "const gdb_byte *".
  5436. (read_encoded_value): Update to match API of leb128 functions.
  5437. (decode_frame_entry): Change result to "const gdb_byte *", and
  5438. similarly for "start" parameter.
  5439. (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
  5440. (dwarf2_build_frame_info): Change local frame_ptr to
  5441. "const gdb_byte *".
  5442. * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
  5443. read_uleb128, read_sleb128. All callers updated.
  5444. (safe_skip_leb128): New function.
  5445. (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
  5446. Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
  5447. (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
  5448. functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
  5449. read_uleb128, read_sleb128.
  5450. (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
  5451. (execute_stack_op): Update to match API of leb128 functions.
  5452. * dwarf2expr.h: #include "leb128.h".
  5453. (read_uleb128, read_sleb128): Delete.
  5454. (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
  5455. (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
  5456. * dwarf2loc.c (debug_loc_kind): New enum.
  5457. (decode_debug_loc_addresses): New function.
  5458. (decode_debug_loc_dwo_addresses): New function.
  5459. (dwarf2_find_location_expression): Rewrite.
  5460. (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
  5461. (locexpr_describe_location_piece): Ditto.
  5462. (disassemble_dwarf_expression): Ditto.
  5463. (locexpr_describe_location_1): Ditto.
  5464. (loclist_describe_location): Rewrite.
  5465. * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
  5466. * dwarf2read.c (die_reader_specs): New member "buffer_end".
  5467. (dwarf2_section_buffer_overflow_complaint): Renamed from
  5468. dwarf2_macros_too_long_complaint. All callers updated.
  5469. (skip_leb128): Delete.
  5470. (init_cu_die_reader): Initialize reader->buffer_end.
  5471. (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
  5472. (skip_form_bytes): New arg buffer_end. All callers updated.
  5473. Replace call to skip_leb128 with gdb_skip_leb128.
  5474. (skip_unknown_opcode): New arg mac_end. All callers updated.
  5475. (fill_in_loclist_baton): Initialize baton->from_dwo.
  5476. 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
  5477. * mips-linux-nat.c (mips_linux_read_description): Use a more
  5478. verbose error message.
  5479. 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
  5480. * NEWS: Add MIPS/Linux DSP support.
  5481. * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
  5482. (SIGCONTEXT_DSPCTL): New macro.
  5483. (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
  5484. (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
  5485. (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
  5486. (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
  5487. (N64_SIGCONTEXT_HI3): Likewise.
  5488. (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
  5489. (N64_SIGCONTEXT_LO3): Likewise.
  5490. (N64_SIGCONTEXT_DSPCTL): Likewise.
  5491. (N64_SIGCONTEXT_FPCSR): Clarify definition.
  5492. (mips_linux_o32_sigframe_init): Handle DSP registers.
  5493. (mips_linux_n32n64_sigframe_init): Likewise.
  5494. 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
  5495. * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
  5496. call to abort.
  5497. 2012-05-22 Pedro Alves <palves@redhat.com>
  5498. * target.h (store_waitstatus): Move declaration ...
  5499. * inf-child.h (store_waitstatus): ... here.
  5500. * target.c: Move inclusion of gdb_wait.h, and ...
  5501. (store_waitstatus): ... this ...
  5502. * inf-child.c: ... here.
  5503. * linux-nat.c: Include inf-child.h.
  5504. * rs6000-nat.c: Include inf-child.h.
  5505. * spu-linux-nat.c: Include inf-child.h.
  5506. 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
  5507. * tracepoint.c (start_tracing): Add missing i18n markup.
  5508. (stop_tracing, set_trace_user): Ditto.
  5509. (set_trace_notes, set_trace_stop_notes): Ditto.
  5510. 2012-05-21 Tom Tromey <tromey@redhat.com>
  5511. PR c++/7173:
  5512. * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
  5513. types.
  5514. * value.h (value_cast_pointers): Update.
  5515. * valops.c (value_cast_pointers): Add 'subclass_check' argument.
  5516. (value_cast): Update.
  5517. (update_search_result): New function.
  5518. (do_search_struct_field): New, from search_struct_field. Check
  5519. for ambiguous results.
  5520. (search_struct_field): Rewrite.
  5521. * infcall.c (value_arg_coerce): Update.
  5522. * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
  5523. value_cast_pointers.
  5524. * ada-lang.c (ada_convert_actual): Update.
  5525. 2012-05-21 Tom Tromey <tromey@redhat.com>
  5526. * macroexp.c (macro_stringify): Terminate the string.
  5527. 2012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
  5528. * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
  5529. Describe it.
  5530. * auto-load.c (auto_load_expand_dir_vars): New function.
  5531. (auto_load_safe_path_vec_update): Use it, remove the
  5532. substitute_path_component call thanks to it.
  5533. (auto_load_objfile_script): Remove the debug_file_directory processing.
  5534. Use auto_load_expand_dir_vars, remove the substitute_path_component
  5535. call thanks to it.
  5536. * configure: Regenerate.
  5537. * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
  5538. path. Escape $ also for $debugdir.
  5539. (--with_auto_load_safe_path): Escape $ also for $debugdir.
  5540. * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
  5541. 2012-05-20 Doug Evans <dje@google.com>
  5542. * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
  5543. before use. Check for symtab->includes == NULL before scanning it.
  5544. 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
  5545. * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
  5546. 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
  5547. * NEWS: Add microMIPS support and "set mips compression",
  5548. "show mips compression" commands.
  5549. * mips-tdep.h (mips_isa): New enum.
  5550. (gdbarch_tdep): Add mips_isa.
  5551. (mips_pc_is_mips16): Update prototype.
  5552. (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
  5553. * mips-tdep.c (mips_compression_mips16): New variable.
  5554. (mips_compression_micromips): Likewise.
  5555. (mips_compression_strings): Likewise.
  5556. (mips_compression_string): Likewise.
  5557. (is_mips16_isa, is_micromips_isa): New functions.
  5558. (is_mips16_addr): Rename to...
  5559. (is_compact_addr): ... this.
  5560. (unmake_mips16_addr): Likewise to...
  5561. (unmake_compact_addr): ... this.
  5562. (make_mips16_addr): Likewise to...
  5563. (make_compact_addr): ... this.
  5564. (is_mips_addr, is_mips16_addr, is_micromips_addr): New
  5565. functions.
  5566. (mips_elf_make_msymbol_special): Handle microMIPS code.
  5567. (msymbol_is_special): Rename to...
  5568. (msymbol_is_mips16): ... this.
  5569. (mips_make_symbol_special, mips_pc_is_mips16): Update
  5570. accordingly.
  5571. (msymbol_is_mips, msymbol_is_micromips): New functions.
  5572. (mips16_to_32_reg): Rename to...
  5573. (mips_reg3_to_reg): ... this.
  5574. (mips_pc_is_mips, mips_pc_is_micromips): New functions.
  5575. (mips_pc_isa): Likewise.
  5576. (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
  5577. code.
  5578. (mips_fetch_instruction): Pass return status instead of printing
  5579. an error message if requested. Handle microMIPS code. Bail out
  5580. on an invalid ISA.
  5581. (micromips_op): New macro.
  5582. (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
  5583. (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
  5584. (b6s4_op, b7s3_reg): Likewise.
  5585. (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
  5586. (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
  5587. (mips_insn_size): New function.
  5588. (mips32_next_pc): Update mips_fetch_instruction call.
  5589. (micromips_relative_offset7): New function.
  5590. (micromips_relative_offset10): Likewise.
  5591. (micromips_relative_offset16): Likewise.
  5592. (micromips_pc_insn_size): Likewise.
  5593. (micromips_bc1_pc): Likewise.
  5594. (micromips_next_pc): Likewise.
  5595. (unpack_mips16): Update mips_fetch_instruction call.
  5596. (extended_mips16_next_pc): Update according to change to
  5597. mips16_to_32_reg.
  5598. (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
  5599. code.
  5600. (mips16_scan_prologue): Update mips_fetch_instruction call.
  5601. Update according to change to mips16_to_32_reg.
  5602. (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
  5603. (mips_insn16_frame_base_sniffer): Likewise.
  5604. (micromips_decode_imm9): New function.
  5605. (micromips_scan_prologue): Likewise.
  5606. (mips_micro_frame_cache): Likewise.
  5607. (mips_micro_frame_this_id): Likewise.
  5608. (mips_micro_frame_prev_register): Likewise.
  5609. (mips_micro_frame_sniffer): Likewise.
  5610. (mips_micro_frame_unwind): New variable.
  5611. (mips_micro_frame_base_address): New function.
  5612. (mips_micro_frame_base): New variable.
  5613. (mips_micro_frame_base_sniffer): New function.
  5614. (mips32_scan_prologue): Update mips_fetch_instruction call.
  5615. (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
  5616. rather than for MIPS16.
  5617. (mips_insn32_frame_base_sniffer): Likewise.
  5618. (mips_addr_bits_remove): Handle microMIPS code.
  5619. (deal_with_atomic_sequence): Rename to...
  5620. (mips_deal_with_atomic_sequence): ... this. Update the type
  5621. of the variable used to hold an instruction. Remove the ISA bit
  5622. check. Update mips_fetch_instruction call.
  5623. (micromips_deal_with_atomic_sequence): New function.
  5624. (deal_with_atomic_sequence): Likewise.
  5625. (mips_about_to_return): Handle microMIPS code. Update
  5626. mips_fetch_instruction call.
  5627. (heuristic_proc_start): Check for the standard MIPS ISA rather
  5628. than for MIPS16. Update mips_pc_is_mips16 and
  5629. mips_fetch_instruction calls. Handle microMIPS code.
  5630. (mips_push_dummy_code): Handle microMIPS code.
  5631. (mips_eabi_push_dummy_call): Likewise.
  5632. (mips_o32_return_value): Update mips_pc_is_mips16 call.
  5633. (mips_o64_push_dummy_call): Handle microMIPS code.
  5634. (mips_o64_return_value): Update mips_pc_is_mips16 call.
  5635. (is_delayed): Remove function.
  5636. (mips_single_step_through_delay): Replace the call to is_delayed
  5637. with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
  5638. Handle microMIPS code.
  5639. (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
  5640. microMIPS code.
  5641. (mips32_in_function_epilogue_p): Update mips_fetch_instruction
  5642. call.
  5643. (micromips_in_function_epilogue_p): New function.
  5644. (mips16_in_function_epilogue_p): Update mips_fetch_instruction
  5645. call.
  5646. (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
  5647. Handle microMIPS.
  5648. (gdb_print_insn_mips): Likewise.
  5649. (mips_breakpoint_from_pc): Likewise.
  5650. (mips_remote_breakpoint_from_pc): New function.
  5651. (mips32_instruction_has_delay_slot): Simplify making use of the
  5652. updated mips_fetch_instruction interface.
  5653. (micromips_instruction_has_delay_slot): New function.
  5654. (mips16_instruction_has_delay_slot): Simplify making use of the
  5655. updated mips_fetch_instruction interface.
  5656. (mips_adjust_breakpoint_address): Check for the standard MIPS
  5657. ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
  5658. calls. Handle microMIPS code.
  5659. (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
  5660. (mips_skip_trampoline_code): Handle microMIPS code.
  5661. (global_mips_compression): New function.
  5662. (mips_gdbarch_init): Handle the compressed ISA setting from ELF
  5663. file flags. Register the microMIPS remote breakpoint handler
  5664. and heuristic frame unwinder.
  5665. (show_mips_compression): New function.
  5666. (_initialize_mips_tdep): Add the "set mips compression" and
  5667. "show mips compression" commands.
  5668. 2012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
  5669. * ada-lang.c:
  5670. * ada-tasks.c:
  5671. * ada-varobj.c:
  5672. * amd64-darwin-tdep.c:
  5673. * arm-symbian-tdep.c:
  5674. * arm-tdep.c:
  5675. * avr-tdep.c:
  5676. * ax-gdb.c:
  5677. * bfin-linux-tdep.c:
  5678. * breakpoint.c:
  5679. * c-valprint.c:
  5680. * cli/cli-cmds.c:
  5681. * coffread.c:
  5682. * cp-support.c:
  5683. * cris-tdep.c:
  5684. * dwarf2-frame-tailcall.c:
  5685. * dwarf2-frame.c:
  5686. * dwarf2expr.c:
  5687. * dwarf2loc.c:
  5688. * dwarf2read.c:
  5689. * elfread.c:
  5690. * eval.c:
  5691. * expprint.c:
  5692. * f-valprint.c:
  5693. * frv-tdep.c:
  5694. * h8300-tdep.c:
  5695. * hppa-hpux-tdep.c:
  5696. * hppa-tdep.c:
  5697. * hppanbsd-tdep.c:
  5698. * i386-nto-tdep.c:
  5699. * i386-tdep.c:
  5700. * i387-tdep.c:
  5701. * ia64-tdep.c:
  5702. * jit.c:
  5703. * linespec.c:
  5704. * linux-tdep.c:
  5705. * lm32-tdep.c:
  5706. * m2-valprint.c:
  5707. * m32c-tdep.c:
  5708. * m32r-rom.c:
  5709. * m32r-tdep.c:
  5710. * m68k-tdep.c:
  5711. * m68klinux-tdep.c:
  5712. * mi/mi-main.c:
  5713. * microblaze-tdep.c:
  5714. * mips-linux-tdep.c:
  5715. * mips-tdep.c:
  5716. * mn10300-tdep.c:
  5717. * p-valprint.c:
  5718. * parse.c:
  5719. * ppc-linux-tdep.c:
  5720. * ppc-sysv-tdep.c:
  5721. * printcmd.c:
  5722. * python/py-finishbreakpoint.c:
  5723. * python/py-inferior.c:
  5724. * python/py-infthread.c:
  5725. * python/py-type.c:
  5726. * python/python.c:
  5727. * remote-fileio.c:
  5728. * remote-m32r-sdi.c:
  5729. * remote-mips.c:
  5730. * reverse.c:
  5731. * rl78-tdep.c:
  5732. * rs6000-aix-tdep.c:
  5733. * rs6000-tdep.c:
  5734. * s390-tdep.c:
  5735. * score-tdep.c:
  5736. * sh64-tdep.c:
  5737. * skip.c:
  5738. * solib-darwin.c:
  5739. * solib-dsbt.c:
  5740. * solib-frv.c:
  5741. * sparc-tdep.c:
  5742. * spu-multiarch.c:
  5743. * spu-tdep.c:
  5744. * stack.c:
  5745. * symfile.c:
  5746. * symtab.c:
  5747. * tic6x-tdep.c:
  5748. * tracepoint.c:
  5749. * v850-tdep.c:
  5750. * valarith.c:
  5751. * valprint.c:
  5752. * value.c:
  5753. * xcoffread.c:
  5754. * xtensa-tdep.c:
  5755. * ada-lang.c:
  5756. * ada-tasks.c:
  5757. * ada-varobj.c:
  5758. * amd64-darwin-tdep.c:
  5759. * arm-symbian-tdep.c:
  5760. * arm-tdep.c: Delete unused variables.
  5761. 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
  5762. Rename $ddir to $datadir.
  5763. * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
  5764. * auto-load.c (auto_load_safe_path_vec_update)
  5765. (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
  5766. * configure: Regenerate.
  5767. * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
  5768. Likewise. Remove the 'use $ddir' help string.
  5769. 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
  5770. * auto-load.c (show_auto_load_safe_path): Accept any combination of
  5771. DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
  5772. 2012-05-18 Tom Tromey <tromey@redhat.com>
  5773. PR exp/13907:
  5774. * valprint.h (struct value_print_options) <symbol_print>: New
  5775. field.
  5776. * valprint.c (user_print_options): Add default for symbol_print.
  5777. (show_symbol_print): New function.
  5778. (generic_val_print): Respect symbol_print.
  5779. (_initialize_valprint): Add "print symbol" setting.
  5780. * f-valprint.c (f_val_print): Respect symbol_print.
  5781. * c-valprint.c (c_val_print): Respect symbol_print.
  5782. * NEWS: Update.
  5783. * printcmd.c (print_address_symbolic): Return int. Ignore some
  5784. zero-size symbols.
  5785. (print_address_demangle): Return int.
  5786. * defs.h: (print_address_symbolic): Return int.
  5787. * value.h (print_address_demangle): Return int.
  5788. 2012-05-18 Tom Tromey <tromey@redhat.com>
  5789. * valprint.c (val_print_string): Don't print leading space.
  5790. * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
  5791. print space before string or vtbl.
  5792. * m2-valprint.c (print_unpacked_pointer): Optionally print space
  5793. before string.
  5794. * jv-valprint.c (java_value_print): Print space before string.
  5795. * go-valprint.c (print_go_string): Print space before string.
  5796. * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
  5797. space before string.
  5798. * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
  5799. space before string or vtbl.
  5800. * auxv.c (fprint_target_auxv): Print space after address.
  5801. 2012-05-18 Tom Tromey <tromey@redhat.com>
  5802. * printcmd.c (print_address_demangle): Remove special case for 0.
  5803. 2012-05-18 Tom Tromey <tromey@redhat.com>
  5804. * printcmd.c (print_address_demangle): Add 'opts' argument.
  5805. * p-valprint.c (pascal_val_print): Update.
  5806. * jv-valprint.c (java_val_print): Update.
  5807. * value.h: Update.
  5808. * valprint.c (generic_val_print): Update.
  5809. (print_function_pointer_address): Add 'options' argument. Remove
  5810. 'addressprint' argument. Update.
  5811. * m2-valprint.c (print_unpacked_pointer): Update.
  5812. * gnu-v3-abi.c (print_one_vtable): Update.
  5813. (gnuv3_print_method_ptr): Update.
  5814. * f-valprint.c (f_val_print): Update.
  5815. * cp-valprint.c (cp_print_value_fields): Update.
  5816. * valprint.h (print_function_pointer_address): Update.
  5817. * c-valprint.c (c_val_print): Update.
  5818. 2012-05-18 Tom Tromey <tromey@redhat.com>
  5819. * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
  5820. directly corresponding to the found psymtab.
  5821. * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
  5822. (dw2_find_pc_sect_symtab): Use it.
  5823. * block.h (blockvector_contains_pc): Declare.
  5824. * block.c (find_block_in_blockvector): New function.
  5825. (blockvector_for_pc_sect): Use it.
  5826. (blockvector_contains_pc): New function.
  5827. 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
  5828. * mips-tdep.h (mips_write_pc): New prototype.
  5829. * mips-tdep.c (mips_write_pc): Make external, add description.
  5830. * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
  5831. add description.
  5832. 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
  5833. * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
  5834. mips_regnum->pc.
  5835. (mips_unwind_pc, mips_write_pc): Likewise.
  5836. (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
  5837. gdbarch_read_pc.
  5838. 2012-05-17 Joel Brobecker <brobecker@adacore.com>
  5839. * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
  5840. proc_warn, proc_error, proc_get_status, proc_flags,
  5841. proc_why, proc_what, proc_nsysarg, proc_sysargs,
  5842. proc_set_run_on_last_close, proc_unset_run_on_last_close,
  5843. proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
  5844. proc_stop_process, proc_wait_for_stop, proc_run_process,
  5845. proc_set_traced_signals, proc_set_traced_faults,
  5846. proc_set_traced_sysentry, proc_set_traced_sysexit,
  5847. proc_set_held_signals, proc_get_held_signals,
  5848. proc_get_traced_signals, proc_get_traced_faults,
  5849. proc_get_traced_sysentry, proc_get_traced_sysexit,
  5850. proc_clear_current_fault, proc_set_current_signal,
  5851. proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
  5852. proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
  5853. proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
  5854. proc_get_current_thread, proc_get_current_thread,
  5855. proc_get_current_thread, proc_update_threads,
  5856. proc_update_threads, proc_update_threads, proc_update_threads,
  5857. proc_iterate_over_threads, procfs_find_new_threads,
  5858. procfs_pid_to_str): Make static. Remove advance declaration.
  5859. (proc_cursig): Make static. Conditionalized defintion on
  5860. PROCFS_DONT_PIOCSSIG_CURSIG being defined.
  5861. (proc_syscall, proc_set_kill_on_last_close,
  5862. proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
  5863. proc_get_pending_signals, proc_get_signal_actions,
  5864. proc_trace_signal, proc_ignore_signal): Delete.
  5865. 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
  5866. * coffread.c (cs_section_address): Passing proper argument for
  5867. `bfd_get_section_vma'.
  5868. * dwarf2read.c (dwarf2_locate_sections): Likewise, for
  5869. `bfd_get_section_flags'.
  5870. * remote.c (remote_trace_set_readonly_regions): Likewise, for
  5871. `bfd_get_section_vma'.
  5872. 2012-05-16 Tom Tromey <tromey@redhat.com>
  5873. PR macros/13205:
  5874. * macrotab.h: (macro_define_special): Declare.
  5875. (enum macro_special_kind): New.
  5876. (struct macro_definition) <argc, replacement>: Update comments.
  5877. * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
  5878. (macro_define_object_internal): New function.
  5879. (macro_define_object): Use it.
  5880. (macro_define_special): New function.
  5881. (fixup_definition): New function.
  5882. (macro_lookup_definition, foreach_macro_in_scope)
  5883. (foreach_macro): Use fixup_definition.
  5884. * macroexp.h (macro_stringify): Declare.
  5885. * macroexp.c (free_buffer_return_text): New function.
  5886. (stringify): Constify "arg".
  5887. (macro_stringify): New function.
  5888. * dwarf2read.c (macro_start_file): Call macro_define_special.
  5889. 2012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
  5890. Maciej W. Rozycki <macro@mips.com>
  5891. * breakpoint.h (bp_location): Add related_address member.
  5892. * inferior.h (get_return_value): Take a pointer to struct value
  5893. instead of struct type for the function requested.
  5894. * value.h (using_struct_return): Likewise.
  5895. * gdbarch.sh (return_value): Take a pointer to struct value
  5896. instead of struct type for the function requested.
  5897. * breakpoint.c (set_breakpoint_location_function): Initialize
  5898. related_address for bp_gnu_ifunc_resolver breakpoints.
  5899. * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
  5900. requested function's address to gdbarch_return_value.
  5901. * eval.c (evaluate_subexp_standard): Pass the requested
  5902. function's address to using_struct_return.
  5903. * infcall.c (call_function_by_hand): Pass the requested
  5904. function's address to using_struct_return and
  5905. gdbarch_return_value.
  5906. * infcmd.c (get_return_value): Take a pointer to struct value
  5907. instead of struct type for the function requested.
  5908. (print_return_value): Update accordingly.
  5909. (finish_command_continuation): Likewise.
  5910. * stack.c (return_command): Pass the requested function's
  5911. address to using_struct_return and gdbarch_return_value.
  5912. * value.c (using_struct_return): Take a pointer to struct value
  5913. instead of struct type for the function requested. Pass the
  5914. requested function's address to gdbarch_return_value.
  5915. * python/py-finishbreakpoint.c (finish_breakpoint_object):
  5916. New function_value member, replacing function_type.
  5917. (bpfinishpy_dealloc): Update accordingly.
  5918. (bpfinishpy_pre_stop_hook): Likewise.
  5919. (bpfinishpy_init): Likewise. Record the requested function's
  5920. address.
  5921. * mips-tdep.c (mips_fval_reg): New enum.
  5922. (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
  5923. words put in GP registers.
  5924. (mips_o64_push_dummy_call): Update a comment.
  5925. (mips_o32_return_value): Take a pointer to struct value instead
  5926. of struct type for the function requested and use it to check if
  5927. using the MIPS16 calling convention. Return the designated
  5928. general purpose registers for floating-point values returned in
  5929. MIPS16 mode.
  5930. (mips_o64_return_value): Likewise.
  5931. * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
  5932. (ppc_sysv_abi_broken_return_value): Likewise.
  5933. (ppc64_sysv_abi_return_value): Likewise.
  5934. * alpha-tdep.c (alpha_return_value): Take a pointer to struct
  5935. value instead of struct type for the function requested.
  5936. * amd64-tdep.c (amd64_return_value): Likewise.
  5937. * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
  5938. * arm-tdep.c (arm_return_value): Likewise.
  5939. * avr-tdep.c (avr_return_value): Likewise.
  5940. * bfin-tdep.c (bfin_return_value): Likewise.
  5941. * cris-tdep.c (cris_return_value): Likewise.
  5942. * frv-tdep.c (frv_return_value): Likewise.
  5943. * h8300-tdep.c (h8300_return_value): Likewise.
  5944. (h8300h_return_value): Likewise.
  5945. * hppa-tdep.c (hppa32_return_value): Likewise.
  5946. (hppa64_return_value): Likewise.
  5947. * i386-tdep.c (i386_return_value): Likewise.
  5948. * ia64-tdep.c (ia64_return_value): Likewise.
  5949. * iq2000-tdep.c (iq2000_return_value): Likewise.
  5950. * lm32-tdep.c (lm32_return_value): Likewise.
  5951. * m32c-tdep.c (m32c_return_value): Likewise.
  5952. * m32r-tdep.c (m32r_return_value): Likewise.
  5953. * m68hc11-tdep.c (m68hc11_return_value): Likewise.
  5954. * m68k-tdep.c (m68k_return_value): Likewise.
  5955. (m68k_svr4_return_value): Likewise.
  5956. * m88k-tdep.c (m88k_return_value): Likewise.
  5957. * mep-tdep.c (mep_return_value): Likewise.
  5958. * microblaze-tdep.c (microblaze_return_value): Likewise.
  5959. * mn10300-tdep.c (mn10300_return_value): Likewise.
  5960. * moxie-tdep.c (moxie_return_value): Likewise.
  5961. * mt-tdep.c (mt_return_value): Likewise.
  5962. * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
  5963. * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
  5964. (ppc_sysv_abi_broken_return_value): Likewise.
  5965. (ppc64_sysv_abi_return_value): Likewise.
  5966. * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
  5967. * rl78-tdep.c (rl78_return_value): Likewise.
  5968. * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
  5969. * rx-tdep.c (rx_return_value): Likewise.
  5970. * s390-tdep.c (s390_return_value): Likewise.
  5971. * score-tdep.c (score_return_value): Likewise.
  5972. * sh-tdep.c (sh_return_value_nofpu): Likewise.
  5973. (sh_return_value_fpu): Likewise.
  5974. * sh64-tdep.c (sh64_return_value): Likewise.
  5975. * sparc-tdep.c (sparc32_return_value): Likewise.
  5976. * sparc64-tdep.c (sparc64_return_value): Likewise.
  5977. * spu-tdep.c (spu_return_value): Likewise.
  5978. * tic6x-tdep.c (tic6x_return_value): Likewise.
  5979. * v850-tdep.c (v850_return_value): Likewise.
  5980. * vax-tdep.c (vax_return_value): Likewise.
  5981. * xstormy16-tdep.c (xstormy16_return_value): Likewise.
  5982. * xtensa-tdep.c (xtensa_return_value): Likewise.
  5983. * gdbarch.c: Regenerate.
  5984. * gdbarch.h: Regenerate.
  5985. 2012-05-15 Tom Tromey <tromey@redhat.com>
  5986. * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
  5987. 2012-05-15 Joel Brobecker <brobecker@adacore.com>
  5988. * breakpoint.c (init_breakpoint_sal): Add quotes around part
  5989. of command in two error message.
  5990. 2012-05-15 Joel Brobecker <brobecker@adacore.com>
  5991. * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
  5992. 2012-05-15 Joel Brobecker <brobecker@adacore.com>
  5993. * breakpoint.c (find_condition_and_thread): Minor reformatting.
  5994. 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
  5995. * NEWS (show auto-load scripts-directory): Add forgotten command.
  5996. 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
  5997. * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
  5998. parameters.
  5999. 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
  6000. * amd64-tdep.c: Include features/i386/x32.c and
  6001. features/i386/x32-avx.c.
  6002. (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
  6003. initialize_tdesc_x32_avx.
  6004. 2012-05-14 Stan Shebs <stan@codesourcery.com>
  6005. Add dynamic printf.
  6006. * breakpoint.h (enum bptype): New type bp_dprintf.
  6007. (struct breakpoint): New field extra_string.
  6008. (struct breakpoint_ops): Add arg to create_breakpoints_sal.
  6009. (create_breakpoint): Add extra_string arg.
  6010. * breakpoint.c (dprintf_breakpoint_ops): New.
  6011. (is_breakpoint): Add bp_dprintf.
  6012. (bpstat_what): Add dprintf case.
  6013. (bptype_string): Ditto.
  6014. (print_one_breakpoint_location): Ditto.
  6015. (init_bp_location): Ditto.
  6016. (bkpt_print_mention): Ditto.
  6017. (dprintf_style_enums): New array.
  6018. (dprintf_style): New global.
  6019. (dprintf_function): New global.
  6020. (dprintf_channel): New global.
  6021. (update_dprintf_command_list): New function.
  6022. (update_dprintf_commands): New function.
  6023. (init_breakpoint_sal): Add extra_string argument, handle it.
  6024. (create_breakpoint_sal): Add extra_string argument.
  6025. (create_breakpoints_sal): Add extra_string argument, update callers.
  6026. (find_condition_and_thread): Add extra argument.
  6027. (create_breakpoint): Add extra_string argument, record it.
  6028. (dprintf_command): New function.
  6029. (break_command_1): Add arg to create_breakpoint call.
  6030. (handle_gnu_v3_exceptions): Ditto.
  6031. (trace_command): Ditto.
  6032. (ftrace_command): Ditto.
  6033. (strace_command): Ditto.
  6034. (bkpt_print_mention): Add dprintf case.
  6035. (create_breakpoint_sal_default): Add extra_string argument.
  6036. (_initialize_breakpoint): Add new commands.
  6037. * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
  6038. * python/py-breakpoint.c (bppy_init): Ditto.
  6039. * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
  6040. 2012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
  6041. * mips-tdep.c (mips_push_dummy_code): Correct description typo.
  6042. 2012-05-14 Siva Chandra Reddy <sivachandra@google.com>
  6043. * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
  6044. unsigned long long.
  6045. 2012-05-13 Siva Chandra Reddy <sivachandra@google.com>
  6046. Add a new function gdb.find_pc_line to the Python API.
  6047. * NEWS (Python Scripting): Add entry about the new function.
  6048. * python/python.c (gdbpy_find_pc_line): New function which
  6049. implements gdb.find_pc_line.
  6050. (GdbMethods): Add entry for the new function.
  6051. 2012-05-12 Pedro Alves <palves@redhat.com>
  6052. * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
  6053. initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
  6054. 2012-05-12 Eli Zaretskii <eliz@gnu.org>
  6055. * inferior.c: Include completer.h
  6056. (initialize_inferiors): Set completer of add-inferior to
  6057. filename_completer.
  6058. 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
  6059. * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
  6060. gdbarch_ptr_bit for x32 core dump.
  6061. 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
  6062. * amd64-linux-tdep.c: Include features/i386/x32-linux.c
  6063. and features/i386/x32-avx-linux.c.
  6064. 2012-05-11 Stan Shebs <stan@codesourcery.com>
  6065. Kwok Cheung Yeung <kcy@codesourcery.com>
  6066. * NEWS: Describe new info os commands.
  6067. * common/linux-osdata.c (PID_T, TIME_T): Define.
  6068. (MAX_PID_T_STRLEN): New.
  6069. (linux_common_core_of_thread): Add comment. Change to use PID_T and
  6070. MAX_PID_T_STRLEN.
  6071. (command_from_pid): Add comment. Change to use PID_T.
  6072. (commandline_from_pid): Change to use PID_T.
  6073. (user_from_pid): Add comment.
  6074. (get_process_owner): Add comment. Change to use PID_T and
  6075. MAX_PID_T_STRLEN.
  6076. (get_number_of_cpu_cores): Add comment.
  6077. (get_cores_used_by_process): Add comment. Change to use PID_T and
  6078. MAX_PID_T_STRLEN.
  6079. (linux_xfer_osdata_processes): Change to use PID_T and
  6080. MAX_PID_T_STRLEN.
  6081. (compare_processes): New function.
  6082. (linux_xfer_osdata_processgroups): New function.
  6083. (linux_xfer_osdata_threads): Change to use PID_T.
  6084. (linux_xfer_osdata_fds): New function.
  6085. (format_socket_state, print_sockets): New functions.
  6086. (union socket_addr): New union.
  6087. (linux_xfer_osdata_isockets): New function.
  6088. (time_from_time_t, group_from_gid): New functions.
  6089. (linux_xfer_osdata_shm): New function.
  6090. (linux_xfer_osdata_sem): New function.
  6091. (linux_xfer_osdata_msg): New function.
  6092. (linux_xfer_osdata_modules): New function.
  6093. (osdata_table): Add new entries.
  6094. * common/buffer.c (buffer_xml_printf): Add support for long and
  6095. long long format specifiers.
  6096. 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
  6097. * amd64-linux-tdep.h (tdesc_x32_linux): New.
  6098. (tdesc_x32_avx_linux): Likewise.
  6099. 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
  6100. Implement multi-component --with-auto-load-dir.
  6101. * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
  6102. entries.
  6103. (--with-auto-load-safe-path): Update the default value description.
  6104. * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
  6105. New.
  6106. (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
  6107. GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
  6108. AUTO_LOAD_DIR. Support $ddir and multiple components in it.
  6109. (_initialize_auto_load): Initialize also auto_load_dir. Install new
  6110. "set auto-load scripts-directory".
  6111. * config.in: Regenerate.
  6112. * configure: Regenerate.
  6113. * configure.ac (--with-auto-load-dir): New configure option.
  6114. (--auto-load-safe-path): Change the default to --with-auto-load-dir.
  6115. 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
  6116. Provide $ddir substitution for --with-auto-load-safe-path.
  6117. * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
  6118. entries.
  6119. * auto-load.c: Include observer.h.
  6120. (auto_load_safe_path_vec_update): Call substitute_path_component for
  6121. each component. New variable ddir_subst.
  6122. (auto_load_gdb_datadir_changed): New function.
  6123. (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
  6124. AUTO_LOAD_SAFE_PATH. New comment.
  6125. (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
  6126. AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
  6127. * config.in: Regenerate.
  6128. * configure: Regenerate.
  6129. * configure.ac (--auto-load-safe-path): Rename
  6130. DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
  6131. GDB_DATADIR/auto-load.
  6132. * defs.h (substitute_path_component): New declaration.
  6133. * top.c: Include observer.h.
  6134. (set_gdb_datadir): New function.
  6135. (init_main): Install it for "set data-directory".
  6136. * utils.c (substitute_path_component): New function.
  6137. 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
  6138. Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
  6139. * auto-load.c (auto_load_objfile_script): Remove check for NULL
  6140. DEBUG_FILE_DIRECTORY. Handle multiple components of
  6141. DEBUG_FILE_DIRECTORY.
  6142. 2012-05-10 Tom Tromey <tromey@redhat.com>
  6143. * dwarf2read.c (recursively_write_psymbols): New function.
  6144. (write_psymtabs_to_index): Use it.
  6145. * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
  6146. field.
  6147. (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
  6148. (load_partial_comp_unit): Update.
  6149. (queue_comp_unit): Add argument 'pretend_language'.
  6150. (process_queue): Update.
  6151. (psymtab_to_symtab_1): Skip dependencies that have a user.
  6152. (load_partial_comp_unit_reader): Give meaning to the 'data'
  6153. argument.
  6154. (load_full_comp_unit): Add 'pretend_language' argument.
  6155. (process_full_comp_unit): Add 'pretend_language' argument. Set
  6156. language on CU.
  6157. (process_imported_unit_die, read_file_scope, read_type_unit_scope):
  6158. Update.
  6159. (maybe_queue_comp_unit): Add 'pretend_language' argument.
  6160. (follow_die_offset, follow_die_sig, read_signatured_type_reader):
  6161. Update.
  6162. (prepare_one_comp_unit): Add 'pretend_language' argument.
  6163. * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
  6164. (struct dwarf2_per_objfile) <just_read_cus>: New field.
  6165. (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
  6166. (dw2_do_instantiate_symtab): Check whether symtab was read in
  6167. before queueing.
  6168. (dw2_instantiate_symtab): Add assertion. Call
  6169. process_cu_includes.
  6170. (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
  6171. (partial_symtab_p): New typedef.
  6172. (set_partial_user): New function.
  6173. (dwarf2_build_psymtabs_hard): Use set_partial_user.
  6174. (scan_partial_symbols): Add imported CU to imported_symtabs.
  6175. (dwarf2_psymtab_to_symtab): Call process_cu_includes.
  6176. (psymtab_to_symtab_1): Do nothing if psymtab is readin.
  6177. (get_symtab, recursively_compute_inclusions)
  6178. (compute_symtab_includes, process_cu_includes)
  6179. (process_imported_unit_die): New functions.
  6180. (process_die) <DW_TAG_imported_unit>: New case.
  6181. (dwarf2_per_objfile_free): Free 'imported_symtabs'.
  6182. * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
  6183. comment.
  6184. (struct partial_die_info) <locdesc>: Remove.
  6185. <d>: New field.
  6186. (process_psymtab_comp_unit): Add 'read_partial' argument.
  6187. Update.
  6188. (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
  6189. (scan_partial_symbols): Handle DW_TAG_imported_unit.
  6190. (add_partial_symbol): Update.
  6191. (process_die): Handle DW_TAG_partial_unit.
  6192. (read_file_scope): Update comment.
  6193. (load_partial_dies): Handle DW_TAG_imported_unit.
  6194. (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
  6195. (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
  6196. 2012-05-10 Tom Tromey <tromey@redhat.com>
  6197. * cc-with-dwz.sh: New file.
  6198. 2012-05-10 Tom Tromey <tromey@redhat.com>
  6199. * symtab.h (struct symtab) <includes, user>: New fields.
  6200. * block.h (struct block_iterator) <d, idx, which>: New fields.
  6201. * block.c (initialize_block_iterator, find_iterator_symtab)
  6202. (block_iterator_step, block_iter_name_step)
  6203. (block_iter_match_step): New functions.
  6204. (block_iterator_first, block_iterator_next)
  6205. (block_iter_name_first, block_iter_name_next)
  6206. (block_iter_match_first, block_iter_match_next): Rewrite.
  6207. (get_block_symtab): New function.
  6208. 2012-05-10 Tom Tromey <tromey@redhat.com>
  6209. * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
  6210. set_block_symtab.
  6211. * jit.c (finalize_symtab): Use allocate_global_block,
  6212. set_block_symtab.
  6213. * buildsym.c (finish_block_internal): New function, from old
  6214. finish_block.
  6215. (finish_block): Rewrite.
  6216. (end_symtab): Use finish_block_internal, set_block_symtab.
  6217. * block.h (struct global_block): New.
  6218. (allocate_global_block, set_block_symtab): Declare.
  6219. * block.c (allocate_global_block, set_block_symtab): New
  6220. functions.
  6221. 2012-05-10 Tom Tromey <tromey@redhat.com>
  6222. * psymtab.c (partial_map_expand_apply): Add assertion.
  6223. (partial_map_symtabs_matching_filename): Skip included psymtabs.
  6224. (psymtab_to_symtab): Find unshared psymtab.
  6225. (dump_psymtab): Print including psymtabs.
  6226. (recursively_search_psymtabs): New function.
  6227. (expand_symtabs_matching_via_partial): Use it.
  6228. * psympriv.h (struct partial_symtab) <user, searched_flag>: New
  6229. fields.
  6230. (enum psymtab_search_status): New.
  6231. 2012-05-10 Tom Tromey <tromey@redhat.com>
  6232. * tracepoint.c (scope_info): Update.
  6233. * symtab.c (lookup_block_symbol, iterate_over_symbols)
  6234. (find_pc_sect_symtab, search_symbols)
  6235. (default_make_symbol_completion_list_break_on)
  6236. (make_file_symbol_completion_list): Update.
  6237. * symmisc.c (dump_symtab_1): Update.
  6238. * stack.c (print_frame_args, iterate_over_block_locals)
  6239. (print_frame_labels, iterate_over_block_arg_vars): Update.
  6240. * python/py-block.c (block_object) <dict>: Remove.
  6241. <block>: New field.
  6242. <iter>: Change type.
  6243. (blpy_iter): Update.
  6244. (blpy_block_syms_iternext): Update.
  6245. * psymtab.c (map_block): Use block iterators.
  6246. * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
  6247. * mi/mi-cmd-stack.c (list_args_or_locals): Update.
  6248. * mdebugread.c (parse_symbol, mylookup_symbol): Update.
  6249. * infrun.c (check_exception_resume): Update.
  6250. * cp-support.c (make_symbol_overload_list_block): Update.
  6251. * coffread.c (patch_opaque_types): Update.
  6252. * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
  6253. * block.h (struct block_iterator): New.
  6254. (block_iterator_first, block_iterator_next, block_iter_name_first)
  6255. (block_iter_name_next, block_iter_match_first)
  6256. (block_iter_match_next): Declare.
  6257. (ALL_BLOCK_SYMBOLS): Redefine.
  6258. * block.c (block_iterator_first, block_iterator_next)
  6259. (block_iter_name_first, block_iter_name_next)
  6260. (block_iter_match_first, block_iter_match_next): New functions.
  6261. * ada-lang.c (ada_add_block_symbols)
  6262. (ada_make_symbol_completion_list): Use block iterator.
  6263. 2012-05-10 Tom Tromey <tromey@redhat.com>
  6264. * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
  6265. (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
  6266. (lookup_partial_symbol, find_last_source_symtab_from_partial)
  6267. (read_psymtabs_with_filename, map_matching_symbols_psymtab)
  6268. (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
  6269. Update.
  6270. 2012-05-10 Joel Brobecker <brobecker@adacore.com>
  6271. * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
  6272. print-file-var-lib2.c, print-file-var-main.c and
  6273. print-file-var.exp (located in gdb/testsuite/gdb.base).
  6274. 2012-05-10 Joel Brobecker <brobecker@adacore.com>
  6275. * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
  6276. try locating the symbol in the symbol's own objfile first, before
  6277. extending the search to all objfiles.
  6278. * symtab.c (lookup_symbol_aux_objfile): New function, extracted
  6279. out of lookup_symbol_aux_symtabs.
  6280. (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
  6281. Replace extracted-out code by call to lookup_symbol_aux_objfile.
  6282. Do not search EXCLUDE_OBJFILE.
  6283. (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
  6284. (lookup_symbol_global): Search for matches in the block's objfile
  6285. first, before searching all other objfiles.
  6286. 2012-05-10 Tristan Gingold <gingold@adacore.com>
  6287. * printcmd.c (set_command): Add pre/post inc/dec.
  6288. 2012-05-09 Frank Ch. Eigler <fche@redhat.com>
  6289. * gdb.1: Document -ex option.
  6290. 2012-05-09 Joel Brobecker <brobecker@adacore.com>
  6291. * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
  6292. * inferior.h (AT_SYMBOL): Delete.
  6293. 2012-05-09 Joel Brobecker <brobecker@adacore.com>
  6294. * mips-tdep.c (mips_push_dummy_code): New function.
  6295. (mips_gdbarch_init): Set the gdbarch call_dummy_location to
  6296. ON_STACK and install mips_push_dummy_code as our gdbarch
  6297. push_dummy_code routine.
  6298. 2012-05-09 Pedro Alves <palves@redhat.com>
  6299. * target.c (set_maintenance_target_async_permitted): Rename to ...
  6300. (set_target_async_command): ... this.
  6301. (show_maintenance_target_async_permitted): Rename to ...
  6302. (show_target_async_command): ... this.
  6303. (initialize_targets): Adjust.
  6304. 2012-05-08 Doug Evans <dje@google.com>
  6305. * go-exp.y (classify_name): Add missing assignment of fields of
  6306. yylval.ssym.
  6307. 2012-05-08 Eli Zaretskii <eliz@gnu.org>
  6308. Display the ">" prompt in interactive mode while reading canned
  6309. commands, even when the current interpreter is MI.
  6310. * interps.c (interp_set_temp): New function.
  6311. * interps.h (interp_set_temp): Add prototype.
  6312. * cli/cli-script.c (restore_interp): New cleanup function.
  6313. (read_command_lines): Temporarily override the current interpreter
  6314. with CLI and arrange for restoring the original one.
  6315. 2012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
  6316. * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
  6317. 2012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
  6318. * probe.c (parse_probes): Move conditional to check for
  6319. debuginfo files from here...
  6320. * stap-probe.c (stap_get_probes): ... to here.
  6321. 2012-05-07 Mark Kettenis <kettenis@gnu.org>
  6322. H.J. Lu <hongjiu.lu@intel.com>
  6323. * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
  6324. `movl %esp, %ebp' for the X32 ABI.
  6325. 2012-05-07 Tom Tromey <tromey@redhat.com>
  6326. * dwarf2read.c (dwarf_tag_name): Return const char *. Use
  6327. get_DW_TAG_name.
  6328. (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
  6329. (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
  6330. (dwarf_stack_op_name): Remove.
  6331. (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
  6332. (decode_locdesc): Use get_DW_OP_name.
  6333. * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
  6334. (dwarf2_compile_expr_to_ax): Likewise.
  6335. (disassemble_dwarf_expression): Likewise.
  6336. * dwarf2expr.h: (dwarf_stack_op_name): Remove.
  6337. 2012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
  6338. * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
  6339. (sh_linux_sigtramp_cache): New function.
  6340. (sh_linux_sigreturn_init): New function.
  6341. (sh_linux_rt_sigreturn_init): New function.
  6342. (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
  6343. patterns.
  6344. (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
  6345. syscall codes.
  6346. (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
  6347. (sh_linux_rt_sigreturn_tramp_frame): Likewise.
  6348. (sh_linux_init_abi): Add init calls to register new tramp_frame
  6349. definitions under 32-bit SH, update comments.
  6350. 2012-05-07 Pedro Alves <palves@redhat.com>
  6351. PR gdb/10952
  6352. * amd64-linux-tdep.c: Include glibc-tdep.h.
  6353. (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
  6354. gdbarch_skip_solib_resolver callback.
  6355. 2012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
  6356. * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
  6357. back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
  6358. (show_auto_load_safe_path): Check any-directory by comparison with "/".
  6359. (add_auto_load_safe_path): Change the error message.
  6360. (_initialize_auto_load): Change the "safe-path" help text.
  6361. * configure: Regenerate
  6362. * configure.ac (--without-auto-load-safe-path): Set
  6363. WITH_AUTO_LOAD_SAFE_PATH to /.
  6364. 2012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
  6365. * stap-probe.h: Do not include unecessary `probe.h'.
  6366. 2012-05-05 Alan Modra <amodra@gmail.com>
  6367. * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
  6368. bfd_und_section_ptr.
  6369. * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
  6370. and bfd_com_section_ptr.
  6371. 2012-05-04 Joel Brobecker <brobecker@adacore.com>
  6372. * MAINTAINERS (Past Maintainers): Add Chris Faylor.
  6373. 2012-05-04 Joel Brobecker <brobecker@adacore.com>
  6374. * windows-nat.h (segment_register_p_ftype): New typedef.
  6375. (windows_set_segment_register_p): Add declaration.
  6376. * windows-nat.c (segment_register_p): New static global.
  6377. (windows_set_segment_register_p): New function.
  6378. (do_windows_fetch_inferior_registers): Add special handling
  6379. for segment registers.
  6380. * amd64-windows-nat.c: #include "amd64-tdep.h".
  6381. (amd64_windows_segment_register_p): New function.
  6382. (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
  6383. * i386-windows-nat.c: #include "i386-tdep.h".
  6384. (i386_windows_segment_register_p): New function.
  6385. (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
  6386. 2012-05-04 Tristan Gingold <gingold@adacore.com>
  6387. * printcmd.c (set_command): Emit a warning if the expression is not
  6388. an assignment.
  6389. 2012-05-03 Joel Brobecker <brobecker@adacore.com>
  6390. * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
  6391. Make static.
  6392. 2012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
  6393. * stap-probe.c (stap_is_operator): Change declaration.
  6394. (stap_get_opcode): Change return value.
  6395. (stap_parse_argument_1): Update calls to `stap_get_opcode' and
  6396. `stap_parse_argument_1'.
  6397. 2012-05-03 Pedro Alves <pedro@codesourcery.com>
  6398. * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
  6399. debug log.
  6400. 2012-05-03 Siva Chandra Reddy <sivachandra@google.com>
  6401. Add two new methods global_block and static_block to gdb.Symtab
  6402. objects.
  6403. * NEWS (Python scripting): Add entry about the new methods.
  6404. * python/py-symtab.c (stpy_global_block): New function which
  6405. implements the gdb.Symtab.global_block() method.
  6406. (stpy_static_block): New function which implements the
  6407. gdb.Symtab.static_block() method.
  6408. (symtab_object_methods): Add entries for the two new methods.
  6409. 2012-05-03 Doug Evans <dje@google.com>
  6410. * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
  6411. files.
  6412. 2012-05-03 Yao Qi <yao@codesourcery.com>
  6413. * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
  6414. space.
  6415. (i386_process_record): Ditto.
  6416. 2012-05-02 Joel Brobecker <brobecker@adacore.com>
  6417. * infcall.c (unwind_on_signal_p): Make static.
  6418. 2012-05-02 Joel Brobecker <brobecker@adacore.com>
  6419. * sol-thread.c (solaris_pid_to_str): Make static.
  6420. (_initialize_sol_thread): Add prototype.
  6421. 2012-05-02 Joel Brobecker <brobecker@adacore.com>
  6422. * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
  6423. 2012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
  6424. * MAINTAINERS: Remove myself.
  6425. 2012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
  6426. Fix --without-auto-load-safe-path for MS-Windows host platform.
  6427. * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
  6428. 2012-05-02 Eli Zaretskii <eliz@gnu.org>
  6429. * gdb_curses.h: Undefine KEY_EVENT before including curses
  6430. headers. Move "#undef MOUSE_MOVED" before any curses header
  6431. inclusion.
  6432. 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
  6433. * features/i386/i386-mmx-linux.c: Regenerate.
  6434. * features/rs6000/powerpc-32.c: Likewise.
  6435. * features/rs6000/powerpc-32l.c: Likewise.
  6436. * features/rs6000/powerpc-403.c: Likewise.
  6437. * features/rs6000/powerpc-403gc.c: Likewise.
  6438. * features/rs6000/powerpc-405.c: Likewise.
  6439. * features/rs6000/powerpc-505.c: Likewise.
  6440. * features/rs6000/powerpc-601.c: Likewise.
  6441. * features/rs6000/powerpc-602.c: Likewise.
  6442. * features/rs6000/powerpc-603.c: Likewise.
  6443. * features/rs6000/powerpc-604.c: Likewise.
  6444. * features/rs6000/powerpc-64.c: Likewise.
  6445. * features/rs6000/powerpc-64l.c: Likewise.
  6446. * features/rs6000/powerpc-750.c: Likewise.
  6447. * features/rs6000/powerpc-860.c: Likewise.
  6448. * features/rs6000/powerpc-e500.c: Likewise.
  6449. * features/rs6000/powerpc-e500l.c: Likewise.
  6450. * features/rs6000/powerpc-isa205-32l.c: Likewise.
  6451. * features/rs6000/powerpc-isa205-64l.c: Likewise.
  6452. * features/rs6000/rs6000.c: Likewise.
  6453. 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
  6454. * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
  6455. variable.
  6456. * stap-probe.c (stap_parse_single_operand) <reg_suffix,
  6457. reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
  6458. (stap_parse_argument) <e>: Likewise.
  6459. (handle_stap_probe) <byte_order>: Likewise.
  6460. 2012-04-30 Doug Evans <dje@google.com>
  6461. * dwarf2read.c (init_cutu_and_read_dies): Renamed from
  6462. init_and_read_dies_worker. All callers updated.
  6463. (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
  6464. replaced with init_cutu_and_read_dies.
  6465. (load_partial_comp_unit): Pass 1 for use_existing_cu.
  6466. (find_partial_die): Remove FIXME. Don't free current CU.
  6467. 2012-04-30 Sterling Augustine <saugustine@google.com>
  6468. * contrib: New directory.
  6469. * contrib/test_pubnames_and_indexes.py: New file.
  6470. 2012-04-30 Doug Evans <dje@google.com>
  6471. * dwarf2read.c (dwarf_decode_macros): New arg section_name.
  6472. All callers updated.
  6473. (init_cu_die_reader): Verify the section is non-empty.
  6474. (dwarf_decode_line_header): Don't dereference section->asection
  6475. until we know the section is present.
  6476. 2012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
  6477. * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
  6478. probes.
  6479. 2012-04-29 Yao Qi <yao@codesourcery.com>
  6480. * gdb-code-style.el: New hook gdb-markup-hook
  6481. and gdb-comment-hook.
  6482. 2012-04-28 Doug Evans <dje@google.com>
  6483. Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
  6484. * symfile.c (default_symfile_relocate): Use sectp->owner instead of
  6485. objfile->obfd.
  6486. * symfile.h (dwarf2_debug_sections): New member addr.
  6487. * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
  6488. (ctx_no_get_addr_index): New function.
  6489. * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
  6490. (ctx_no_get_addr_index): Declare.
  6491. * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
  6492. * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
  6493. (dwarf_expr_ctx_funcs): Update.
  6494. (needs_get_addr_index): New function.
  6495. (needs_frame_ctx_funcs): Update.
  6496. * dwarf2loc.h (dwarf2_read_addr_index): Declare.
  6497. * dwarf2read.c: #include "gdbcore.h".
  6498. (dwarf2_per_objfile): New members addr, dwo_files.
  6499. (dwarf2_elf_names): Add entry for addr.
  6500. (struct dwo_section_names): New type.
  6501. (dwo_section_names): New static global.
  6502. (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
  6503. (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
  6504. old debug_types_section member updated to use this.
  6505. Rename member debug_types_section to info_or_types_section,
  6506. all uses updated.
  6507. (signatured_type): Rename member type_offset to type_offset_in_tu,
  6508. all uses updated. New member type_offset_in_section.
  6509. (struct dwo_sections): New type.
  6510. (struct dwo_unit): New type.
  6511. (struct dwo_file): New type.
  6512. (die_reader_specs): New member dwo_file.
  6513. (dwarf2_locate_sections): Watch for .debug_addr.
  6514. (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
  6515. (dwarf2_read_section): Get bfd of section from bfd's asection,
  6516. instead of objfile.
  6517. (create_cus_from_index): Initialize the_cu->info_or_types_section.
  6518. (create_signatured_type_table_from_index): Initialize
  6519. sig_type->info_or_types_section.
  6520. (dw2_get_file_names): Statement lists for type units with DWO files
  6521. live in the DWO file.
  6522. (create_debug_types_hash_table): New function.
  6523. (create_all_type_units): Rewrite.
  6524. (init_cu_die_reader): New arg dwo_file, all callers updated.
  6525. (init_and_read_dies_worker): Get section from
  6526. this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
  6527. Watch for DW_AT_GNU_dwo_name and if present lookup the file and
  6528. continue reading the CU/TU from there.
  6529. (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
  6530. updated. Get section from this_cu->info_or_types_section.
  6531. (create_all_comp_units): Initialize this_cu->info_or_types_section.
  6532. (skip_one_die): New cases DW_FORM_GNU_addr_index,
  6533. DW_FORM_GNU_str_index.
  6534. (hash_dwo_file, eq_dwo_file): New functions.
  6535. (allocate_dwo_file_hash_table): New function.
  6536. (hash_dwo_unit, eq_dwo_unit): New functions.
  6537. (allocate_dwo_unit_table): New function.
  6538. (dwarf2_locate_dwo_sections): New function.
  6539. (struct create_dwo_info_table_data): New type.
  6540. (create_debug_info_hash_table_reader): New function.
  6541. (create_debug_info_hash_table): New function.
  6542. (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
  6543. (lookup_dwo_file): New function.
  6544. (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
  6545. (free_dwo_file, free_dwo_file_cleanup): New functions.
  6546. (free_dwo_file_from_slot, free_dwo_files): New functions.
  6547. (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
  6548. (dwarf2_record_block_ranges): Ditto.
  6549. (read_partial_die): Ditto.
  6550. (process_enumeration_scope): Update to use type_offset_in_section.
  6551. (read_full_die_1): New function.
  6552. (read_full_die): Rewrite.
  6553. (read_attribute_value): New cases DW_FORM_GNU_addr_index,
  6554. DW_FORM_GNU_str_index.
  6555. (read_addr_index_1, read_addr_index): New functions.
  6556. (read_addr_index_from_leb128): New function.
  6557. (struct dwarf2_read_addr_index_data): New type.
  6558. (dwarf2_read_addr_index_reader): New function.
  6559. (dwarf2_read_addr_index): New function.
  6560. (read_str_index): New function.
  6561. (leb128_size): New function.
  6562. (dwarf_decode_line_header): Delete arg abfd, all callers updated.
  6563. If processing a type unit from a DWO file, get the line section
  6564. from the DWO file.
  6565. (var_decode_location): Watch for DW_OP_GNU_addr_index.
  6566. (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
  6567. DW_FORM_GNU_str_index.
  6568. (lookup_die_type): Check whether section offset of type's die is
  6569. known before looking it up. Remove assert. Condition can
  6570. legimately happen for inter-cu type references.
  6571. (dwarf_attr_name): Handle Fission attributes.
  6572. (dwarf_form_name): Handle Fission forms.
  6573. (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
  6574. DW_FORM_GNU_str_index.
  6575. (follow_die_sig): Update to use type_offset_in_section.
  6576. (decode_locdesc): New case DW_OP_GNU_addr_index.
  6577. (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
  6578. DW_FORM_GNU_str_index.
  6579. (cu_debug_loc_section): New function.
  6580. (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
  6581. (dwarf2_per_objfile_free): Unmap .debug_addr section.
  6582. Free DWO files if present.
  6583. * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
  6584. Refactor DIE reading.
  6585. * dwarf2read.c (dwarf2_per_objfile): Replace members
  6586. debug_info_type_hash and debug_types_type_hash with die_type_hash.
  6587. (die_reader_specs): New member "die_section". Temporarily make
  6588. member "buffer" non-const, pending constifying all info_ptr uses.
  6589. (die_reader_func_ftype): New typedef.
  6590. (dw2_get_file_names_reader): New function.
  6591. (dw2_get_file_names): Rewrite.
  6592. (read_and_check_type_unit_head): Rename arg type_offset to
  6593. type_offset_in_tu.
  6594. (create_all_type_units): Improve debugging message.
  6595. Improve dummy type unit check.
  6596. (init_cu_die_reader): New arg "section". All callers updated.
  6597. (init_and_read_dies_worker): New function.
  6598. (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
  6599. (init_cutu_and_read_dies_no_follow): New function.
  6600. (init_cutu_and_read_dies_simple): New function.
  6601. (process_psymtab_comp_unit_reader): New function.
  6602. (process_psymtab_comp_unit): Delete args section,
  6603. is_debug_types_section. Rewrite. All callers updated.
  6604. (process_psymtab_type_unit): Renamed from process_type_comp_unit.
  6605. All callers updated. Rewrite.
  6606. (load_partial_comp_unit_reader): New function.
  6607. (load_partial_comp_unit): Rewrite.
  6608. (skip_children): New arg reader. Delete args buffer, cu.
  6609. All callers updated.
  6610. (skip_one_die): New arg reader. Delete args buffer, cu.
  6611. All callers updated.
  6612. (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
  6613. All callers updated.
  6614. (load_full_comp_unit_reader): New function.
  6615. (load_full_comp_unit): Rewrite.
  6616. (read_comp_unit): Delete.
  6617. (read_die_and_children_1): Delete, contents moved ...
  6618. (read_die_and_children): ... here.
  6619. (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
  6620. (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
  6621. All callers updated.
  6622. (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
  6623. All callers updated.
  6624. (find_partial_die): Rewrite load_all_dies support.
  6625. (read_attribute_value): New arg reader. Delete args abfd, cu.
  6626. All callers updated.
  6627. (read_attribute): New arg reader. Delete args abfd, cu.
  6628. All callers updated.
  6629. (load_full_type_unit): Add assert.
  6630. (read_signatured_type_reader): New function.
  6631. (read_signatured_type): Rewrite.
  6632. (free_stack_comp_unit): Remove call to age_cached_comp_units.
  6633. (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
  6634. All callers updated. Set per_cu->cu = NULL after freeing it.
  6635. (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
  6636. (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
  6637. (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
  6638. (set_die_type): Update.
  6639. (get_die_type_at_offset): Update.
  6640. (read_file_scope): Call prepare_one_comp_unit.
  6641. (read_type_unit_scope): Ditto.
  6642. (prepare_one_comp_unit): Set producer if present.
  6643. 2012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
  6644. * probe.c (compile_rx_or_error): Silence ARI warning about missing
  6645. gettext function on `error'.
  6646. 2012-04-27 Doug Evans <dje@google.com>
  6647. * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
  6648. is empty.
  6649. 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
  6650. Tom Tromey <tromey@redhat.com>
  6651. * breakpoint.c (struct breakpoint_objfile_data)
  6652. <longjmp_searched>,<longjmp_probes>,<exception_searched>,
  6653. <exception_probes>: New fields.
  6654. (free_breakpoint_probes): New function.
  6655. (create_longjmp_master_breakpoint): Prefer SystemTap probe over
  6656. `_Unwind_DebugHook'.
  6657. (create_exception_master_breakpoint): Likewise.
  6658. (_initialize_breakpoint): Registering cleanup for SystemTap probes.
  6659. * infrun.c: Including necessary header files for handling SystemTap
  6660. probes.
  6661. (handle_inferior_event): Handling longjmp breakpoint and exceptions
  6662. via SystemTap probes.
  6663. (check_exception_resume): Remove `func' argument. Handle exception
  6664. unwinding breakpoint set via a SystemTap probe.
  6665. (insert_exception_resume_from_probe): New function.
  6666. 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
  6667. Tom Tromey <tromey@redhat.com>
  6668. Jan Kratochvil <jan.kratochvil@redhat.com>
  6669. * Makefile.in (SFILES): Add `probe' and `stap-probe'.
  6670. (COMMON_OBS): Likewise.
  6671. (HFILES_NO_SRCDIR): Add `probe'.
  6672. * NEWS: Mention support for static and SystemTap probes.
  6673. * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
  6674. SystemTap probes' arguments parser.
  6675. * arm-linux-tdep.c: Including headers needed to perform the parsing
  6676. of SystemTap probes' arguments.
  6677. (arm_stap_is_single_operand): New function.
  6678. (arm_stap_parse_special_token): Likewise.
  6679. (arm_linux_init_abi): Initializing proper fields used by SystemTap
  6680. probes' arguments parser.
  6681. * ax-gdb.c (require_rvalue): Removing static declaration.
  6682. (gen_expr): Likewise.
  6683. * ax-gdb.h (gen_expr): Declaring function.
  6684. (require_rvalue): Likewise.
  6685. * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
  6686. (bkpt_probe_breakpoint_ops): New variable.
  6687. (momentary_breakpoint_from_master): Set the `probe' value.
  6688. (add_location_to_breakpoint): Likewise.
  6689. (break_command_1): Using proper breakpoint_ops according to the
  6690. argument passed by the user in the command line.
  6691. (bkpt_probe_insert_location): New function.
  6692. (bkpt_probe_remove_location): Likewise.
  6693. (bkpt_probe_create_sals_from_address): Likewise.
  6694. (bkpt_probe_decode_linespec): Likewise.
  6695. (tracepoint_probe_create_sals_from_address): Likewise.
  6696. (tracepoint_probe_decode_linespec): Likewise.
  6697. (tracepoint_probe_breakpoint_ops): New variable.
  6698. (trace_command): Using proper breakpoint_ops according to the
  6699. argument passed by the user in the command line.
  6700. (initialize_breakpoint_ops): Initializing breakpoint_ops for
  6701. static probes on breakpoints and tracepoints.
  6702. * breakpoint.h (struct bp_location) <probe>: New field.
  6703. * cli-utils.c (skip_spaces_const): New function.
  6704. (extract_arg): Likewise.
  6705. * cli-utils.h (skip_spaces_const): Likewise.
  6706. (extract_arg): Likewise.
  6707. * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
  6708. * configure.ac: Append `stap-probe.o' to be generated when ELF
  6709. support is present.
  6710. * configure: Regenerate.
  6711. * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
  6712. * elfread.c: Include `probe.h' and `arch-utils.h'.
  6713. (probe_key): New variable.
  6714. (elf_get_probes): New function.
  6715. (elf_get_probe_argument_count): Likewise.
  6716. (elf_evaluate_probe_argument): Likewise.
  6717. (elf_compile_to_ax): Likewise.
  6718. (elf_symfile_relocate_probe): Likewise.
  6719. (stap_probe_key_free): Likewise.
  6720. (elf_probe_fns): New variable.
  6721. (elf_sym_fns): Add `sym_probe_fns' value.
  6722. (elf_sym_fns_lazy_psyms): Likewise.
  6723. (elf_sym_fns_gdb_index): Likewise.
  6724. (_initialize_elfread): Initialize objfile cache for static
  6725. probes.
  6726. * gdb_vecs.h (struct probe): New forward declaration.
  6727. (probe_p): New VEC declaration.
  6728. * gdbarch.c: Regenerate.
  6729. * gdbarch.h: Regenerate.
  6730. * gdbarch.sh (stap_integer_prefix): New variable.
  6731. (stap_integer_suffix): Likewise.
  6732. (stap_register_prefix): Likewise.
  6733. (stap_register_suffix): Likewise.
  6734. (stap_register_indirection_prefix): Likewise.
  6735. (stap_register_indirection_suffix): Likewise.
  6736. (stap_gdb_register_prefix): Likewise.
  6737. (stap_gdb_register_suffix): Likewise.
  6738. (stap_is_single_operand): New function.
  6739. (stap_parse_special_token): Likewise.
  6740. (struct stap_parse_info): Forward declaration.
  6741. * i386-tdep.c: Including headers needed to perform the parsing
  6742. of SystemTap probes' arguments.
  6743. (i386_stap_is_single_operand): New function.
  6744. (i386_stap_parse_special_token): Likewise.
  6745. (i386_elf_init_abi): Initializing proper fields used by SystemTap
  6746. probes' arguments parser.
  6747. * i386-tdep.h (i386_stap_is_single_operand): New function.
  6748. (i386_stap_parse_special_token): Likewise.
  6749. * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
  6750. * mipsread.c (ecoff_sym_fns): Likewise.
  6751. * objfiles.c (objfile_relocate1): Support relocation for static
  6752. probes.
  6753. * parse.c (prefixify_expression): Remove static declaration.
  6754. (initialize_expout): Likewise.
  6755. (reallocate_expout): Likewise.
  6756. * parser-defs.h (initialize_expout): Declare function.
  6757. (reallocate_expout): Likewise.
  6758. (prefixify_expression): Likewise.
  6759. * ppc-linux-tdep.c: Including headers needed to perform the parsing
  6760. of SystemTap probes' arguments.
  6761. (ppc_stap_is_single_operand): New function.
  6762. (ppc_stap_parse_special_token): Likewise.
  6763. (ppc_linux_init_abi): Initializing proper fields used by SystemTap
  6764. probes' arguments parser.
  6765. * probe.c: New file, for generic statically defined probe support.
  6766. * probe.h: Likewise.
  6767. * s390-tdep.c: Including headers needed to perform the parsing of
  6768. SystemTap probes' arguments.
  6769. (s390_stap_is_single_operand): New function.
  6770. (s390_gdbarch_init): Initializing proper fields used by SystemTap
  6771. probes' arguments parser.
  6772. * somread.c (som_sym_fns): Add `sym_probe_fns' value.
  6773. * stap-probe.c: New file, for SystemTap probe support.
  6774. * stap-probe.h: Likewise.
  6775. * symfile.h: Include `gdb_vecs.h'.
  6776. (struct sym_probe_fns): New struct.
  6777. (struct sym_fns) <sym_probe_fns>: New field.
  6778. * symtab.c (init_sal): Initialize `probe' field.
  6779. * symtab.h (struct probe): Forward declaration.
  6780. (struct symtab_and_line) <probe>: New field.
  6781. * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
  6782. locations.
  6783. (stop_tracing): Likewise.
  6784. * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
  6785. 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
  6786. Tom Tromey <tromey@redhat.com>
  6787. * ax-gdb.c (gen_expr): Clean up code to handle internal variables
  6788. and to compile agent expressions.
  6789. * infrun.c (siginfo_make_value): New argument `ignore'.
  6790. (siginfo_funcs): New struct.
  6791. (_initialize_infrun): New argument when calling
  6792. `create_internalvar_type_lazy'.
  6793. * thread.c (thread_id_make_value): New argument `ignore'.
  6794. (thread_funcs): New struct.
  6795. (_initialize_thread): New argument when calling
  6796. `create_internalvar_type_lazy'.
  6797. * tracepoint.c (sdata_make_value): New argument `ignore'.
  6798. (sdata_funcs): New struct.
  6799. (_initialize_tracepoint): New argument when calling
  6800. `create_internalvar_type_lazy'.
  6801. * value.c (make_value): New struct.
  6802. (create_internalvar_type_lazy): New argument `data'.
  6803. (compile_internalvar_to_ax): New function.
  6804. (value_of_internalvar): Properly handling `make_value' case.
  6805. (clear_internalvar): Likewise.
  6806. (show_convenience): Adding `TRY_CATCH' block.
  6807. * value.h (internalvar_make_value): Delete, replace by...
  6808. (struct internalvar_funcs): ... this.
  6809. (create_internalvar_type_lazy) <fun>: Delete argument.
  6810. (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
  6811. (compile_internalvar_to_ax): New function.
  6812. * windows-tdep.c (tlb_make_value): New argument `ignore'.
  6813. (tlb_funcs): New struct.
  6814. (_initialize_windows_tdep): New argument when calling
  6815. `create_internalvar_type_lazy'.
  6816. 2012-04-27 Mark Wielaard <mjw@redhat.com>
  6817. * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
  6818. see whether it is an address or a constant offset from DW_AT_low_pc.
  6819. (dwarf2_record_block_ranges): Likewise.
  6820. (read_partial_die): Likewise.
  6821. 2012-04-26 Mark Wielaard <mjw@redhat.com>
  6822. * MAINTAINERS (Write After Approval): Add myself to the list.
  6823. 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
  6824. * proc-utils.h (proc_prettyprint_signalset): New prototype.
  6825. (proc_prettyprint_signal): Likewise.
  6826. (proc_prettyprint_faultset): Likewise.
  6827. (proc_prettyprint_fault): Likewise.
  6828. (proc_prettyprint_actionset): Likewise.
  6829. (proc_prettyprint_flags): Move to new proc-flags.c section.
  6830. (proc_prettyfprint_flags): New prototype.
  6831. * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
  6832. (proc_syscall, proc_cursig): Likewise.
  6833. (proc_set_kill_on_last_close): Likewise.
  6834. (proc_unset_kill_on_last_close): Likewise.
  6835. (proc_set_watchpoint): Make static.
  6836. (proc_delete_dead_threads): Likewise.
  6837. (procfs_set_watchpoint): Likewise.
  6838. (_initialize_procfs): Add prototype.
  6839. * proc-events.c: Include proc-utils.h.
  6840. (init_syscall_table): Make static.
  6841. * proc-api.c (_initialize_proc_api): Add prototype.
  6842. * proc-flags.c: Include proc-utils.h.
  6843. 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
  6844. * configure.ac: Add AC_ARG_PROGRAM.
  6845. * configure: Regenerate.
  6846. 2012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
  6847. Fix DW_AT_lower_bound defaults for DWARF-4+.
  6848. * dwarf2read.c (read_subrange_type): Remove initialization of low and
  6849. high. New variable low_default_is_valid. Implement DWARF-4+
  6850. DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
  6851. no default by the DWARF standard.
  6852. 2012-04-26 Maciej W. Rozycki <macro@mips.com>
  6853. Maciej W. Rozycki <macro@codesourcery.com>
  6854. * infrun.c (handle_inferior_event): Move the check for return
  6855. trampolines ahead of the check for function trampolines.
  6856. * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
  6857. * mips-tdep.c (mips_str_mips16_call_stub): New variable.
  6858. (mips_str_mips16_ret_stub): Likewise.
  6859. (mips_str_call_fp_stub): Likewise.
  6860. (mips_str_call_stub): Likewise.
  6861. (mips_str_fn_stub): Likewise.
  6862. (mips_str_pic): Likewise.
  6863. (mips_in_frame_stub): New function.
  6864. (mips_unwind_pc): Return the return address rather than the PC
  6865. if the PC of an intermediate frame is inside a call thunk.
  6866. (mips_is_stub_suffix): New function.
  6867. (mips_is_stub_mode): Likewise.
  6868. (mips_get_mips16_fn_stub_pc): Likewise.
  6869. (mips_skip_mips16_trampoline_code): Update to handle all the
  6870. currently generated stub types. Don't recurse into __fn_stub
  6871. thunks. Remove heuristics to handle stubs beyond etext/_etext.
  6872. Use cooked register accesses.
  6873. (mips_in_return_stub): Reintroduce function.
  6874. (mips_skip_trampoline_code): Traverse trampolines recursively.
  6875. (mips_gdbarch_init): Handle MIPS16 return trampolines.
  6876. 2012-04-26 Joel Brobecker <brobecker@adacore.com>
  6877. GDB 7.4.1 released.
  6878. 2012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
  6879. * arm-tdep.h (VFP_REGISTER_SIZE): Define.
  6880. * features/arm-with-m-vfp-d16.xml: New file. Describes
  6881. Cortex-M with VFPv4-sp-d16 FPU register layout.
  6882. * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
  6883. * features/arm-with-m-vfp-d16.c: New. Generated from above.
  6884. * arm-tdep.c: Include arm-with-m-vfp-d16.c.
  6885. (arm-register_g_packet_guesses): Add vfp-d16 guess.
  6886. (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
  6887. 2012-04-25 Doug Evans <dje@google.com>
  6888. * cli/cli-decode.c (print_doc_line): Use stream instead of
  6889. current_uiout.
  6890. 2012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
  6891. * features/arm-with-iwmmxt.c: Regenerate.
  6892. * features/arm-with-m-fpa-layout.c: Likewise.
  6893. * features/arm-with-m.c: Likewise.
  6894. * features/arm-with-neon.c: Likewise.
  6895. * features/arm-with-vfpv2.c: Likewise.
  6896. * features/arm-with-vfpv3.c: Likewise.
  6897. * features/mips-dsp-linux.c: Likewise.
  6898. * features/mips-linux.c: Likewise.
  6899. * features/mips64-dsp-linux.c: Likewise.
  6900. * features/mips64-linux.c: Likewise.
  6901. * features/s390-linux32.c: Likewise.
  6902. * features/s390-linux32v1.c: Likewise.
  6903. * features/s390-linux32v2.c: Likewise.
  6904. * features/s390-linux64.c: Likewise.
  6905. * features/s390-linux64v1.c: Likewise.
  6906. * features/s390-linux64v2.c: Likewise.
  6907. * features/s390x-linux64.c: Likewise.
  6908. * features/s390x-linux64v1.c: Likewise.
  6909. * features/s390x-linux64v2.c: Likewise.
  6910. * features/tic6x-c62x-linux.c: Likewise.
  6911. * features/tic6x-c62x.c: Likewise.
  6912. * features/tic6x-c64x-linux.c: Likewise.
  6913. * features/tic6x-c64x.c: Likewise.
  6914. * features/tic6x-c64xp-linux.c: Likewise.
  6915. * features/tic6x-c64xp.c: Likewise.
  6916. * target-descriptions.c: Only generate `field_type' and `type'
  6917. variables when needed.
  6918. 2012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
  6919. * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
  6920. 2012-04-25 Doug Evans <dje@google.com>
  6921. Initial pass at Go language support.
  6922. * NEWS: Mention Go.
  6923. * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
  6924. go-valprint.c.
  6925. (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
  6926. (YYFILES): Add go-exp.c.
  6927. (YYOBJ): Add go-exp.o.
  6928. (local-maintainer-clean): Delete go-exp.c.
  6929. * defs.h (enum language): Add language_go.
  6930. * dwarf2read.c: #include "go-lang.h".
  6931. (fixup_go_packaging): New function.
  6932. (process_full_comp_unit): Call it when processing Go CUs.
  6933. (dwarf2_physname): Add Go support.
  6934. (read_file_scope): Handle missing language spec for GNU Go.
  6935. (set_cu_language): Handle DW_LANG_Go.
  6936. * go-exp.y: New file.
  6937. * go-lang.h: New file.
  6938. * go-lang.c: New file.
  6939. * go-typeprint.c: New file.
  6940. * go-valprint.c: New file.
  6941. * symtab.c: #include "go-lang.h".
  6942. (symbol_set_language): Handle language_go.
  6943. (symbol_find_demangled_name, symbol_set_names): Ditto.
  6944. (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
  6945. 2012-04-24 Jim Meyering <meyering@redhat.com>
  6946. avoid a few strncpy-induced buffer overruns
  6947. * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
  6948. fname and psargs before trying to concatenate.
  6949. * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
  6950. "name" before applying strchr.
  6951. 2012-04-25 Siva Chandra Reddy <sivachandra@google.com>
  6952. * CONTRIBUTE: Use unified diff instead of context diff when
  6953. generating patches.
  6954. 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
  6955. * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
  6956. code. Handle JR.HB correctly.
  6957. 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
  6958. * mips-tdep.c
  6959. (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
  6960. with the other MIPS16 helpers.
  6961. 2012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
  6962. * observer.sh: Conditionally declare `args', thus cleaning up
  6963. unused instances of this variable.
  6964. 2012-04-24 Yao Qi <yao@codesourcery.com>
  6965. Revert this patch to allow breakpoint always-inserted
  6966. in record target.
  6967. 2011-12-05 Pedro Alves <pedro@codesourcery.com>
  6968. * breakpoint.c: Include record.h.
  6969. (breakpoints_always_inserted_mode): Return false when the record
  6970. target is in use.
  6971. * breakpoint.c (iterate_over_bp_locations): New.
  6972. * breakpoint.h: Declare.
  6973. New typedef walk_bp_location_callback.
  6974. * record.c (record_open): Call record_init_record_breakpoints.
  6975. (record_sync_record_breakpoints): New.
  6976. (record_init_record_breakpoints): New.
  6977. * NEWS: Mention supporting breakpoint always-inserted mode in
  6978. record target.
  6979. 2012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
  6980. * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
  6981. any thread.
  6982. 2012-04-24 Yao Qi <yao@codesourcery.com>
  6983. * breakpoint.c (ep_is_catchpoint): Renamed to ...
  6984. (is_catchpoint): ... it.
  6985. (print_one_breakpoint_location): Caller update.
  6986. * breakpoint.h: Update declaration.
  6987. 2012-04-23 David S. Miller <davem@davemloft.net>
  6988. * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
  6989. 2012-04-23 Tom Tromey <tromey@redhat.com>
  6990. * buildsym.c (add_free_pendings): Remove.
  6991. * buildsym.h (add_free_pendings): Remove.
  6992. 2012-04-23 Doug Evans <dje@google.com>
  6993. * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
  6994. attr.u.unsnd instead of attr.u.addr.
  6995. (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
  6996. DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
  6997. DW_FORM_ref_udata.
  6998. (dump_die_shallow): Update cases DW_FORM_ref_addr,
  6999. DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
  7000. DW_FORM_ref_udata.
  7001. (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
  7002. 2012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
  7003. * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
  7004. (mips_o32_return_value): Likewise.
  7005. (mips_o64_return_value): Likewise.
  7006. 2012-04-21 Paul Hilfinger <hilfinger@adacore.com>
  7007. * ada-lang.c (ada_evaluate_subexp): Add cases for
  7008. TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
  7009. their treatment in eval.c.
  7010. 2012-04-21 David S. Miller <davem@davemloft.net>
  7011. * sparc-tdep.c (X_DISP10): Define.
  7012. (sparc_analyze_control_transfer): Handle compare-and-branch.
  7013. 2012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
  7014. * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
  7015. * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
  7016. 2012-04-20 Nigel Stephens <nigel@mips.com>
  7017. Maciej W. Rozycki <macro@codesourcery.com>
  7018. * mips-tdep.c (mips_float_register_p): New function.
  7019. (mips_convert_register_float_case_p): Use mips_float_register_p.
  7020. (mips_register_type): Likewise.
  7021. (mips_print_register): Likewise.
  7022. (print_gp_register_row): Likewise.
  7023. (mips_print_registers_info): Likewise.
  7024. 2012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
  7025. * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
  7026. of mips16 symbols.
  7027. 2012-04-20 Andrew Pinski <apinski@cavium.com>
  7028. * MAINTAINERS (Write After Approval): Add myself to the list.
  7029. 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
  7030. * MAINTAINERS: Update my e-mail address.
  7031. 2012-04-20 Pedro Alves <palves@redhat.com>
  7032. * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
  7033. $srcdir.
  7034. * configure: Regenerate.
  7035. 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
  7036. * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
  7037. declaration.
  7038. * gdb_vecs.h: Declare `const_char_ptr' VEC.
  7039. 2012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
  7040. Fix compilation compatibility with python-2.4
  7041. * python/py-type.c (convert_field): Cast ADDRSTRING for
  7042. PyObject_SetAttrString as non-const. New comment.
  7043. 2012-04-19 Tom Tromey <tromey@redhat.com>
  7044. * top.c (quit_target): Use all_cleanups.
  7045. * main.c (captured_command_loop): Use all_cleanups.
  7046. * exceptions.c (throw_exception): Use all_cleanups.
  7047. 2012-04-19 Pedro Alves <palves@redhat.com>
  7048. * Makefile.in (GNULIB_BUILDDIR): New.
  7049. (LIBGNU, INCGNU, GNULIB_H): Adjust.
  7050. (SUBDIRS): Add $(GNULIB_BUILDDIR).
  7051. (CLEANDIRS). Remove gnulib/import.
  7052. (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
  7053. (all-lib): Ditto.
  7054. (distclean): Remove the $(GNULIB_BUILDDIR) directory.
  7055. (gnulib/import/Makefile): Replace gnulib/import with
  7056. $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
  7057. (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
  7058. (aclocal_m4_deps): Remove the gnulib dependencies. Add
  7059. acx_configure_dir.m4.
  7060. * acinclude.m4: Include acx_configure_dir.m4.
  7061. * acx_configure_dir.m4: New file.
  7062. * aclocal.m4: Regenerate.
  7063. * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
  7064. calls. Configure gnulib using ACX_CONFIGURE_DIR.
  7065. (GNULIB): New variable.
  7066. (GNULIB_STDINT_H): Adjust.
  7067. (AC_OUTPUT): Don't output gnulib/Makefile.
  7068. * defs.h: Include build-gnulib/config.h.
  7069. * aclocal.m4: Regenerate.
  7070. * config.in: Regenerate.
  7071. * configure: Regenerate.
  7072. * gnulib/Makefile.in: New file.
  7073. * gnulib/configure.ac: New file.
  7074. * gnulib/aclocal.m4: New file.
  7075. * gnulib/config.in: New file.
  7076. * gnulib/configure: New file.
  7077. * gnulib/: Re-run gnulib-tool to adjust.
  7078. 2012-04-19 Doug Evans <dje@google.com>
  7079. * cleanups.h (struct cleanup): Move to cleanups.c.
  7080. (make_cleanup_dtor_ftype): New typedef.
  7081. (make_cleanup_dtor): Use it.
  7082. (ALL_CLEANUPS): Replace with ...
  7083. (all_cleanups): ... this. Declare. All uses updated.
  7084. * cleanups.c: #include "gdb_assert.h".
  7085. (sentinel_cleanup): New static global.
  7086. (SENTINEL_CLEANUP): Define.
  7087. (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
  7088. (make_my_cleanup2): Assert result is non-NULL.
  7089. (all_cleanups): New function.
  7090. (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
  7091. of NULL.
  7092. 2012-04-19 Pedro Alves <palves@redhat.com>
  7093. * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
  7094. Adjust paths to gnulib imported files.
  7095. 2012-04-19 Pedro Alves <palves@redhat.com>
  7096. * gnulib/: Move whole directory ...
  7097. * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
  7098. * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
  7099. (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
  7100. (aclocal_m4_deps): Adjust.
  7101. * aclocal.m4: Regenerate.
  7102. * configure: Regenerate.
  7103. * configure.ac: Adjust AC_OUTPUT output.
  7104. 2012-04-19 Yao Qi <yao@codesourcery.com>
  7105. * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
  7106. (vec.o): New rule.
  7107. * vec.c: Move it ...
  7108. * common/vec.c: ... here.
  7109. * vec.h: Move it ...
  7110. * common/vec.h: ... here.
  7111. 2012-04-19 Yao Qi <yao@codesourcery.com>
  7112. * gdb-code-style.el: New.
  7113. 2012-04-18 Pedro Alves <palves@redhat.com>
  7114. Update gnulib from latest git.
  7115. (639ea5ae15e39fe48d43e04864b2997301e4b969)
  7116. * gnulib/Makefile.am: Update.
  7117. * gnulib/dummy.c: Update.
  7118. * gnulib/extra/arg-nonnull.h: Update.
  7119. * gnulib/extra/c++defs.h: Update.
  7120. * gnulib/extra/update-copyright: Update.
  7121. * gnulib/extra/warn-on-use.h: Update.
  7122. * gnulib/inttypes.in.h: Update.
  7123. * gnulib/m4/00gnulib.m4: Update.
  7124. * gnulib/m4/extensions.m4: Update.
  7125. * gnulib/m4/gnulib-cache.m4: Update.
  7126. * gnulib/m4/gnulib-common.m4: Update.
  7127. * gnulib/m4/gnulib-comp.m4: Update.
  7128. * gnulib/m4/gnulib-tool.m4: Update.
  7129. * gnulib/m4/include_next.m4: Update.
  7130. * gnulib/m4/inttypes-pri.m4: Update.
  7131. * gnulib/m4/inttypes.m4: Update.
  7132. * gnulib/m4/longlong.m4: Update.
  7133. * gnulib/m4/memchr.m4: Update.
  7134. * gnulib/m4/memmem.m4: Update.
  7135. * gnulib/m4/mmap-anon.m4: Update.
  7136. * gnulib/m4/multiarch.m4: Update.
  7137. * gnulib/m4/onceonly.m4: Update.
  7138. * gnulib/m4/stddef_h.m4: Update.
  7139. * gnulib/m4/stdint.m4: Update.
  7140. * gnulib/m4/string_h.m4: Update.
  7141. * gnulib/m4/warn-on-use.m4: Update.
  7142. * gnulib/m4/wchar_h.m4: Update.
  7143. * gnulib/m4/wchar_t.m4: Update.
  7144. * gnulib/m4/wint_t.m4: Update.
  7145. * gnulib/memchr.c: Update.
  7146. * gnulib/memmem.c: Update.
  7147. * gnulib/stddef.in.h: Update.
  7148. * gnulib/stdint.in.h: Update.
  7149. * gnulib/str-two-way.h: Update.
  7150. * gnulib/string.in.h: Update.
  7151. * gnulib/wchar.in.h: Update.
  7152. * gnulib/extra/arg-nonnull.h: Delete.
  7153. * gnulib/extra/c++defs.h: Delete.
  7154. * gnulib/extra/warn-on-use.h: Delete.
  7155. * gnulib/m4/wchar_h.m4: Delete.
  7156. * gnulib/m4/wint_t.m4: Delete.
  7157. * gnulib/wchar.in.h: Delete.
  7158. * gnulib/extra/snippets/arg-nonnull.h: New.
  7159. * gnulib/extra/snippets/c++defs.h: New.
  7160. * gnulib/extra/snippets/warn-on-use.h: New.
  7161. * aclocal.m4: Regenerate.
  7162. * config.in: Regenerate.
  7163. * configure: Regenerate.
  7164. * gnulib/Makefile.in: Regenerate.
  7165. 2012-04-18 Pedro Alves <palves@redhat.com>
  7166. Reimport the update-copyright module from gnulib
  7167. (250b80067c1e1d8faa0c42fb572f721975b929c5).
  7168. * configure: Regenerate.
  7169. * gnulib/Makefile.am: Update.
  7170. * gnulib/Makefile.in: Regenerate.
  7171. * gnulib/extra/update-copyright: Update.
  7172. * gnulib/m4/gnulib-cache.m4: Update.
  7173. * gnulib/m4/gnulib-comp.m4: Update.
  7174. 2012-04-18 Tristan Gingold <gingold@adacore.com>
  7175. * configure.ac (aix): Put -lpthread into libs.
  7176. * configure: Regenerate.
  7177. 2012-04-18 Tom Tromey <tromey@redhat.com>
  7178. * linespec.c (convert_linespec_to_sals): Don't use
  7179. SYMBOL_OBJ_SECTION.
  7180. (compare_msymbols): Arguments are minsym_and_objfile, not
  7181. minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
  7182. 2012-04-18 Pedro Alves <palves@redhat.com>
  7183. Revert gnulib/ part of:
  7184. 2011-01-01 Joel Brobecker <brobecker@adacore.com>
  7185. Copyright year update in most files (performed by copyright.sh).
  7186. 2012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
  7187. Fix 64-bit constants on 32-bit hosts.
  7188. * dwarf2read.c (read_unsigned_leb128): Change declaration return type
  7189. from unsigned long to ULONGEST.
  7190. (read_signed_leb128): Change declaration return type from long to
  7191. LONGEST.
  7192. (dwarf2_const_value_attr): Change declaration parameter value from long
  7193. to LONGEST.
  7194. (dwarf2_compute_name): Change variable value from long to LONGEST.
  7195. (read_unsigned_leb128): Change return type, variable result and some
  7196. casts from unsigned long to ULONGEST.
  7197. (read_signed_leb128): Change return type, variable result and some
  7198. casts from long to LONGEST.
  7199. (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
  7200. value from long to LONGEST.
  7201. (dwarf2_const_value): Change variable value from long to LONGEST.
  7202. * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
  7203. plongest and hex_string.
  7204. * symtab.h (struct general_symbol_info): Change ivalue from long to
  7205. LONGEST, remove the comment.
  7206. * tracepoint.c (validate_actionline, collect_symbol, scope_info):
  7207. Change SYMBOL_VALUE format strings to use plongest and hex_string.
  7208. 2012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
  7209. PR symtab/7259:
  7210. * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
  7211. * ada-lang.c (ada_discrete_type_high_bound)
  7212. (ada_discrete_type_low_bound): Fix function comment. Use
  7213. TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
  7214. (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
  7215. (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
  7216. * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
  7217. Use TYPE_FIELD_ENUMVAL.
  7218. * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
  7219. (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
  7220. * c-typeprint.c (c_type_print_base): Move variable lastval to inner
  7221. block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
  7222. TYPE_CODE_ENUM.
  7223. * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
  7224. * dwarf2read.c (process_enumeration_scope): Likewise.
  7225. * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
  7226. field.bitpos.
  7227. (class StructMainTypePrettyPrinter): Support also
  7228. FIELD_LOC_KIND_ENUMVAL.
  7229. * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
  7230. TYPE_CODE_ENUM.
  7231. (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
  7232. (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
  7233. * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
  7234. (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
  7235. field enumval.
  7236. (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
  7237. accommodate enumval.
  7238. (struct call_site): Adjust loc_kind to accommodate enumval.
  7239. (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
  7240. (TYPE_FIELD_ENUMVAL): New macros.
  7241. * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
  7242. * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
  7243. TYPE_CODE_ENUM.
  7244. * p-typeprint.c (pascal_type_print_base): Likewise.
  7245. * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
  7246. enumval.
  7247. * python/lib/gdb/types.py (make_enum_dict): Likewise.
  7248. * python/py-type.c (convert_field): New variable addrstring. Use
  7249. TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
  7250. (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
  7251. * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
  7252. * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
  7253. TYPE_CODE_ENUM.
  7254. * valprint.c (generic_val_print): Likewise.
  7255. 2012-04-17 Doug Evans <dje@google.com>
  7256. * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
  7257. * dwarf2read.c: Whitespace fixes.
  7258. (lookup_signatured_type): Tweak comment.
  7259. (get_die_type_at_offset): Fix comment.
  7260. 2012-04-17 Joel Brobecker <brobecker@adacore.com>
  7261. * xcoffread.c (xcoff_secnum_to_sections): New function.
  7262. (secnum_to_section, secnum_to_bfd_section): Reimplement
  7263. using xcoff_secnum_to_sections. Rename "secnum" parameter
  7264. into "n_scnum".
  7265. (RECORD_MINIMAL_SYMBOL): Delete.
  7266. (record_minimal_symbol): New function.
  7267. (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
  7268. by call to record_minimal_symbol and set misc_func_recorded
  7269. to 1. Set last_csect_sec to the XCOFF section index instead
  7270. of GDB's section_offset index. Update calls to
  7271. prim_record_minimal_symbol_and_info to pass the BFD section
  7272. as well.
  7273. 2012-04-17 Joel Brobecker <brobecker@adacore.com>
  7274. * xcoffread.c (read_xcoff_symtab): Delete variables
  7275. last_csect_val and last_csect_sec and associated code.
  7276. 2012-04-17 Doug Evans <dje@google.com>
  7277. * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
  7278. (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
  7279. * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
  7280. (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
  7281. * cleanups.h: New file.
  7282. * cleanups.c: New file.
  7283. * Makefile.in (SFILES): Add cleanups.c.
  7284. (HFILES_NO_SRCDIR): Add cleanups.h.
  7285. (COMMON_OBS): Add cleanups.o.
  7286. * defs.h (struct cleanup): Moved to cleanups.h.
  7287. (do_cleanups,do_final_cleanups): Ditto.
  7288. (discard_cleanups,discard_final_cleanups): Ditto
  7289. (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
  7290. (save_cleanups,save_final_cleanups): Ditto.
  7291. (restore_cleanups,restore_final_cleanups): Ditto.
  7292. (null_cleanup): Ditto.
  7293. (make_my_cleanup,make_my_cleanup2): Ditto.
  7294. (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
  7295. * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
  7296. (do_cleanups,do_final_cleanups): Ditto.
  7297. (discard_cleanups,discard_final_cleanups): Ditto
  7298. (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
  7299. (save_cleanups,save_final_cleanups): Ditto.
  7300. (restore_cleanups,restore_final_cleanups): Ditto.
  7301. (null_cleanup): Ditto.
  7302. (make_my_cleanup,make_my_cleanup2): Ditto.
  7303. (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
  7304. * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
  7305. make_my_cleanup.
  7306. (make_cleanup_dyn_string_delete): Ditto.
  7307. (make_cleanup_ui_file_delete): Ditto.
  7308. (make_cleanup_ui_out_redirect_pop): Ditto.
  7309. (make_cleanup_free_section_addr_info): Ditto.
  7310. (make_cleanup_restore_integer): Ditto.
  7311. (make_cleanup_unpush_target): Ditto.
  7312. (make_cleanup_value_free_to_mark): Ditto.
  7313. (make_cleanup_value_free): Ditto.
  7314. (make_cleanup_free_so): Ditto.
  7315. 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
  7316. New option "set debug auto-load".
  7317. * NEWS: New commands "set debug auto-load" and "show debug auto-load".
  7318. * auto-load.c (debug_auto_load, show_debug_auto_load: New.
  7319. (auto_load_safe_path_vec_update)
  7320. (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
  7321. if DEBUG_AUTO_LOAD.
  7322. (file_is_auto_load_safe): New parameters debug_fmt and ....
  7323. Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
  7324. (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
  7325. caller by explanatory string.
  7326. (_initialize_auto_load): Register "set debug auto-load".
  7327. * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
  7328. and ....
  7329. * linux-thread-db.c (try_thread_db_load_from_pdir_1)
  7330. (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
  7331. by explanatory string.
  7332. * main.c (captured_main): Likewise.
  7333. * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
  7334. (source_section_scripts): Likewise.
  7335. 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
  7336. New option "set auto-load safe-path".
  7337. * NEWS: New commands "set auto-load safe-path"
  7338. and "show auto-load safe-path".
  7339. * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
  7340. (auto_load_safe_path, auto_load_safe_path_vec)
  7341. (auto_load_safe_path_vec_update, set_auto_load_safe_path)
  7342. (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
  7343. (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
  7344. (source_gdb_script_for_objfile): New variable is_safe. Call
  7345. file_is_auto_load_safe. Return if it is not.
  7346. (struct loaded_script): New field loaded.
  7347. (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
  7348. (print_script): Use LOADED indicator instead of FULL_PATH. Change
  7349. output "Missing" to "No".
  7350. (_initialize_auto_load): New variable cmd. Initialize
  7351. auto_load_safe_path. Register "set auto-load safe-path",
  7352. "show auto-load safe-path" and "add-auto-load-safe-path".
  7353. * auto-load.h (maybe_add_script): Add parameter loaded.
  7354. (file_is_auto_load_safe): New declaration.
  7355. * config.in: Regenerate.
  7356. * configure: Regenerate.
  7357. * configure.ac: New parameters --with-auto-load-safe-path
  7358. and --without-auto-load-safe-path.
  7359. * linux-thread-db.c (try_thread_db_load_from_pdir_1)
  7360. (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
  7361. * main.c (captured_main): Check file_is_auto_load_safe for
  7362. LOCAL_GDBINIT.
  7363. * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
  7364. variable is_safe. Call file_is_auto_load_safe. Return if it is not.
  7365. (source_section_scripts): Call file_is_auto_load_safe. Return if it is
  7366. not.
  7367. 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
  7368. auto-load: Implementation.
  7369. * NEWS: New descriptions for "info auto-load",
  7370. "info auto-load gdb-scripts", "info auto-load python-scripts",
  7371. "info auto-load local-gdbinit" and "info auto-load libthread-db".
  7372. Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
  7373. and "show auto-load-scripts". New description for "set auto-load",
  7374. "show auto-load", "set auto-load gdb-scripts",
  7375. "show auto-load gdb-scripts", "set auto-load python-scripts",
  7376. "show auto-load python-scripts", "set auto-load local-gdbinit",
  7377. "show auto-load local-gdbinit", "set auto-load libthread-db" and
  7378. "show auto-load libthread-db".
  7379. * auto-load.c: Remove include python/python-internal.h. Add includes
  7380. exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
  7381. cli/cli-setshow.h.
  7382. (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
  7383. (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
  7384. (gdbpy_global_auto_load): Rename to ...
  7385. (global_auto_load): ... here.
  7386. (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
  7387. (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
  7388. (script_language_gdb, source_gdb_script_for_objfile): New.
  7389. (struct loaded_script): New field language.
  7390. (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
  7391. LANGUAGE.
  7392. (maybe_add_script): Add parameter language. Drop redundant
  7393. entry.full_path initialization. Initialize entry.language and
  7394. (*slot)->language.
  7395. (auto_load_objfile_script): Change parameter suffix to language.
  7396. Remove the call of maybe_add_script.
  7397. Call language->source_script_for_objfile.
  7398. (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
  7399. New.
  7400. (collect_matching_scripts): Adjust it for
  7401. struct collect_matching_scripts_data.
  7402. (auto_load_info_scripts_pattern_nl): New variable.
  7403. (info_auto_load_scripts): Rename to ...
  7404. (auto_load_info_scripts): ... here, add parameter language. Adjust it
  7405. for struct collect_matching_scripts_data.
  7406. (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
  7407. (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
  7408. (auto_load_show_cmdlist_get, info_auto_load_cmd)
  7409. (auto_load_info_cmdlist_get): New.
  7410. (_initialize_auto_load): Move add_info of "auto-load-scripts" to
  7411. python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
  7412. "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
  7413. "info auto-load local-gdbinit".
  7414. * auto-load.h (struct script_language): New.
  7415. (gdbpy_global_auto_load): Rename to ...
  7416. (global_auto_load): ... here.
  7417. (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
  7418. (auto_load_local_gdbinit_loaded): New declarations.
  7419. (maybe_add_script): New parameter language.
  7420. (auto_load_objfile_script): Change parameter suffix to language.
  7421. (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
  7422. (auto_load_info_scripts, auto_load_set_cmdlist_get)
  7423. (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
  7424. declarations.
  7425. * linux-thread-db.c: Include auto-load.h and ctype.h.
  7426. (auto_load_thread_db, show_auto_load_thread_db): New.
  7427. (struct thread_db_info): New field filename.
  7428. (delete_thread_db_info): Call xfree for FILENAME.
  7429. (try_thread_db_load): Initialize FILENAME.
  7430. (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
  7431. if !AUTO_LOAD_THREAD_DB.
  7432. (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
  7433. (_initialize_thread_db): Install auto_load_thread_db
  7434. as "set auto-load libthread-db" and install info_auto_load_libthread_db
  7435. as "info auto-load libthread-db".
  7436. * main.c (captured_main): Rename gdbpy_global_auto_load to
  7437. global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
  7438. AUTO_LOAD_LOCAL_GDBINIT_LOADED.
  7439. (print_gdb_help): Extend the help for 'local init file'.
  7440. * python/py-auto-load.c: Remove a comment about gdb scripts extension.
  7441. (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
  7442. (auto_load_scripts): Rename to ...
  7443. (auto_load_python_scripts): ... here, update the comment.
  7444. (gdbpy_load_auto_script_for_objfile): New declaration.
  7445. (show_auto_load_python_scripts, script_language_python)
  7446. (gdbpy_load_auto_script_for_objfile): New.
  7447. (source_section_scripts): Refactor the code.
  7448. (load_auto_scripts_for_objfile): Rename to ...
  7449. (gdbpy_load_auto_scripts_for_objfile): ... here, update the
  7450. auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
  7451. (info_auto_load_python_scripts): New.
  7452. (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
  7453. Rename "set auto-load-scripts" to "set auto-load python-scripts".
  7454. Register "set auto-load-scripts" as its deprecated alias. Register
  7455. "info auto-load python-scripts". Register "info auto-load-scripts" as
  7456. its deprecated alias.
  7457. (load_auto_scripts_for_objfile): Rename to ...
  7458. (gdbpy_load_auto_scripts_for_objfile): ... here.
  7459. * python/python.h (load_auto_scripts_for_objfile): Rename to ...
  7460. (gdbpy_load_auto_scripts_for_objfile): ... here.
  7461. 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
  7462. auto-load: Move files.
  7463. * Makefile.in (SFILES): Add auto-load.c.
  7464. (HFILES_NO_SRCDIR): Add auto-load.h.
  7465. (COMMON_OBS): Add auto-load.o.
  7466. (distclean): Change .gdbinit for gdb-gdb.gdb.
  7467. * auto-load.c: New file, with parts from python/py-auto-load.c.
  7468. * auto-load.h: New file, with parts from python/python.h.
  7469. * configure: Regenerate.
  7470. * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
  7471. * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
  7472. * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
  7473. * main.c: Include auto-load.h.
  7474. * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
  7475. command.h, observer.h and progspace.h to auto-load.c. Add include
  7476. auto-load.h.
  7477. (gdbpy_global_auto_load, struct auto_load_pspace_info)
  7478. (struct loaded_script, auto_load_pspace_data)
  7479. (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
  7480. (hash_loaded_script_entry, eq_loaded_script_entry)
  7481. (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
  7482. (maybe_add_script): Move to auto-load.c.
  7483. (source_section_scripts): Change maybe_add_script parameters passing,
  7484. use script_not_found_warning_print.
  7485. (clear_section_scripts, auto_load_objfile_script)
  7486. (auto_load_new_objfile, loaded_script_ptr)
  7487. (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
  7488. (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
  7489. (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
  7490. auto_load_new_objfile and info_auto_load_scripts initizations to
  7491. auto-load.c.
  7492. * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
  7493. 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
  7494. Code cleanup.
  7495. * charset.c (find_charset_names): Remove variables ix and elt.
  7496. Use free_char_ptr_vec.
  7497. * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
  7498. back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
  7499. debugdir_end. New variable debugdir_len.
  7500. * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
  7501. (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
  7502. declarations.
  7503. * progspace.c (clear_program_space_solib_cache): Remove variables ix
  7504. and elt. Use free_char_ptr_vec.
  7505. * source.c (add_path): Remove variables argv, arg and argv_index.
  7506. New variables dir_vec, back_to, ix and name.
  7507. Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
  7508. make_cleanup_freeargv. Remove variable separator. Simplify the code
  7509. no longer expecting DIRNAME_SEPARATOR.
  7510. (openp): Remove variable p, p1 and len. New variables dir_vec,
  7511. back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
  7512. no longer expecting DIRNAME_SEPARATOR.
  7513. * symfile.c (find_separate_debug_file): New variables debugdir_vec,
  7514. back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
  7515. debugdir_end.
  7516. * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
  7517. (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
  7518. (dirnames_to_char_ptr_vec): New functions.
  7519. 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
  7520. Code cleanup.
  7521. * source.c (add_path): Remove always true conditional 'p == 0' and
  7522. unindent its code block.
  7523. 2012-04-17 Pedro Alves <palves@redhat.com>
  7524. * gdbtypes.h (FIELD_BITPOS): Rename to ...
  7525. (FIELD_BITPOS_LVAL): ... this.
  7526. (FIELD_BITPOS): New.
  7527. (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
  7528. * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
  7529. * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
  7530. SET_FIELD_BITPOS.
  7531. * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
  7532. SET_FIELD_BITPOS.
  7533. * stabsread.c (read_cpp_abbrev, read_one_struct_field)
  7534. (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
  7535. * target-descriptions.c (tdesc_gdb_type): Adjust to use
  7536. SET_FIELD_BITPOS.
  7537. 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
  7538. Do not rely on FIELD_LOC_KIND_BITPOS being zero.
  7539. * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
  7540. TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
  7541. * gdbtypes.c (append_flags_type_flag): Likewise, twice.
  7542. * jv-lang.c (java_link_class_type): Likewise, once.
  7543. * stabsread.c (read_enum_type): Likewise.
  7544. 2012-04-16 Yao Qi <yao@codesourcery.com>
  7545. * common/agent.c (agent_run_command): Add one more parameter `len'.
  7546. Update callers.
  7547. * common/agent.h: Update declaration.
  7548. * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
  7549. Update.
  7550. (linux_child_static_tracepoint_markers_by_strid): Ditto.
  7551. 2012-04-14 Anton Gorenkov <xgsa@yandex.ru>
  7552. PR mi/13393
  7553. * value.c (value_actual_type): New function.
  7554. * value.h (value_actual_type): New declaration.
  7555. * varobj.c (update_type_if_necessary): New function.
  7556. (varobj_create): Call value_actual_type instead of
  7557. value_type.
  7558. (install_dynamic_child): distinct changed and type changed MI variable
  7559. objects.
  7560. (update_dynamic_varobj_children): Updated for install_dynamic_child
  7561. change. All callers updated.
  7562. (varobj_update): Support for MI variable object type change if
  7563. the value changed and RTTI is used to determine the type.
  7564. (create_child_with_value): Call value_actual_type instead of
  7565. value_type.
  7566. (adjust_value_for_child_access): Extended with a new parameter which
  7567. specify whether the given value should be casted to enclosing type.
  7568. All callers updated.
  7569. 2012-04-14 Yao Qi <yao@codesourcery.com>
  7570. Import gnulib module inttypes from git
  7571. (250b80067c1e1d8faa0c42fb572f721975b929c5)
  7572. * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
  7573. (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
  7574. gnulib/m4/inttypes-pri.m4
  7575. * aclocal.m4, config.in, configure: Regenerated.
  7576. * gnulib/Makefile.am: Update.
  7577. * gnulib/Makefile.in: Update.
  7578. * gnulib/m4/gnulib-cache.m4: Update.
  7579. * gnulib/m4/gnulib-comp.m4: Update.
  7580. * gnulib/inttypes.in.h: New.
  7581. * gnulib/m4/inttypes-pri.m4: New.
  7582. * gnulib/m4/inttypes.m4: New.
  7583. 2012-04-13 Luis Machado <lgustavo@codesourcery.com>
  7584. * infrun.c (resume): Update PC address to the real PC after
  7585. preparing to do displaced stepping.
  7586. 2012-04-12 Doug Evans <dje@google.com>
  7587. * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
  7588. All callers updated.
  7589. 2012-04-12 Mark Kettenis <kettenis@gnu.org>
  7590. * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
  7591. 2012-04-12 Doug Evans <dje@google.com>
  7592. * dwarf2read.c (create_all_type_units): Renamed from
  7593. create_debug_types_hash_table. All callers updated.
  7594. * dwarf2read.c (create_signatured_type_table_from_index): Rename
  7595. local type_sig to sig_type, type_offset to type_offset_in_tu.
  7596. (hash_signatured_type): Renamed from hash_type_signature,
  7597. all callers updated.
  7598. (eq_signatured_type): Renamed from eq_type_signature,
  7599. all callers updated.
  7600. (create_debug_types_hash_table): Rename local type_sig to sig_type.
  7601. (process_enumeration_scope): Ditto.
  7602. (lookup_signatured_type_at_offset): Ditto.
  7603. (load_full_type_unit, read_signatured_type): Ditto.
  7604. 2012-04-12 Yao Qi <yao@codesourcery.com>
  7605. * remote.c (async_remote_interrupt): Correct function name in
  7606. debug message.
  7607. (async_remote_interrupt_twice): Ditto.
  7608. 2012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
  7609. * source.c (find_and_open_source): Consistently pass resulting
  7610. full path through xfullpath.
  7611. 2012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
  7612. Provide more specific displaced-stepping memory error message.
  7613. * infrun.c (displaced_step_prepare): New variable status. Call
  7614. target_read_memory instead of read_memory, provide more specific
  7615. error message.
  7616. 2012-04-11 Tristan Gingold <gingold@adacore.com>
  7617. PR gdb/13901
  7618. * darwin-nat.c (darwin_execvp): Revert previous patch.
  7619. 2012-04-11 Tristan Gingold <gingold@adacore.com>
  7620. PR gdb/13901
  7621. * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
  7622. in case of change.
  7623. 2012-04-11 Tristan Gingold <gingold@adacore.com>
  7624. * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
  7625. warning.
  7626. 2012-04-11 Siva Chandra Reddy <sivachandra@google.com>
  7627. New command 'explore' which helps explore values and types in
  7628. scope.
  7629. * NEWS: Add an entry about the new 'explore' command.
  7630. * data-directory/Makefile.in: Add gdb/command/explore.py
  7631. * python/lib/gdb/command/explore.py: Implemention of the 'explore'
  7632. command using the GDB Python API.
  7633. 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
  7634. * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
  7635. extension in jump target calculation.
  7636. 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
  7637. * mips-tdep.c (mips32_next_pc): Handle JALX.
  7638. 2012-04-10 Yao Qi <yao@codesourcery.com>
  7639. * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
  7640. 2012-04-10 Yao Qi <yao@codesourcery.com>
  7641. * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
  7642. and gnulib/m4/gnulib-tool.m4.
  7643. 2012-04-10 Doug Evans <dje@google.com>
  7644. * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
  7645. (load_partial_dies): Clarify comment.
  7646. (find_partial_die): Support rereading type units.
  7647. Clarify CU handling, if we know offset is in CU, don't search for the
  7648. containing CU. Add comment regarding memory waste.
  7649. 2012-04-10 H.J. Lu <hongjiu.lu@intel.com>
  7650. * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
  7651. i386/x32-avx and i386/x32-avx-linux.
  7652. (i386/x32-expedite): New.
  7653. (i386/x32-linux-expedite): Likewise.
  7654. (i386/x32-avx-expedite): Likewise.
  7655. (i386/x32-avx-linux-expedite): Likewise.
  7656. ($(outdir)/i386/x32.dat): Likewise.
  7657. ($(outdir)/i386/x32-linux.dat): Likewise.
  7658. ($(outdir)/i386/x32-avx.dat): Likewise.
  7659. ($(outdir)/i386/x32-avx-linux.dat): Likewise.
  7660. * features/i386/x32-avx-linux.xml: New file.
  7661. * features/i386/x32-avx.xml: Likewise.
  7662. * features/i386/x32-core.xml: Likewise.
  7663. * features/i386/x32-linux.xml: Likewise.
  7664. * features/i386/x32.xml: Likewise.
  7665. * features/i386/x32-avx-linux.c: New. Generated.
  7666. * features/i386/x32-avx.c: Likewise.
  7667. * features/i386/x32-linux.c: Likewise.
  7668. * features/i386/x32.c: Likewise.
  7669. * regformats/i386/x32-avx-linux.dat: Likewise.
  7670. * regformats/i386/x32-avx.dat: Likewise.
  7671. * regformats/i386/x32-linux.dat: Likewise.
  7672. * regformats/i386/x32.dat: Likewise.
  7673. 2012-04-10 Tristan Gingold <gingold@adacore.com>
  7674. * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
  7675. code to kill the inferior.
  7676. 2012-04-09 Mark Kettenis <kettenis@gnu.org>
  7677. * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
  7678. defines.
  7679. * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
  7680. defines.
  7681. * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
  7682. (yyvsp): New defines.
  7683. * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
  7684. defines.
  7685. * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
  7686. defines.
  7687. * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
  7688. defines.
  7689. * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
  7690. defines.
  7691. * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
  7692. defines.
  7693. 2012-04-09 Mark Kettenis <kettenis@gnu.org>
  7694. * sparc64-tdep.c (sparc64_store_arguments)
  7695. (sparc64_store_arguments): Fix coding style.
  7696. 2012-04-07 Mark Kettenis <kettenis@gnu.org>
  7697. * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
  7698. complex floats, adjust some related comments and tighten a related
  7699. assertion.
  7700. (sparc64_extract_return_value): Handle complex floats.
  7701. 2012-04-07 Doug Evans <dje@google.com>
  7702. * dwarf2read.c (load_partial_dies): Change condition to assert.
  7703. 2012-04-06 Doug Evans <dje@google.com>
  7704. * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
  7705. "mov %rsp,%rbp".
  7706. 2012-04-05 Kevin Buettner <kevinb@redhat.com>
  7707. * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
  7708. fencepost error.
  7709. (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
  7710. (v850_gdbarch_init): Set `num_regs' as appropriate for the
  7711. architecture.
  7712. 2012-04-05 Keith Seitz <keiths@redhat.com>
  7713. * linespec.c (decode_compound): Remove.
  7714. (enum offset_relative_sign): New enum.
  7715. (struct line_offset): New struct.
  7716. (struct linespec): New struct.
  7717. (struct linespec_state): Move file_symtabs,
  7718. user_filename, and user_function into struct linespec.
  7719. Make result an anonymous struct holding vectors of
  7720. symbolp and minsym_and_objfile_d.
  7721. Add language member.
  7722. (enum ls_token_type): New enum.
  7723. (linespec_keywords): New array.
  7724. (struct ls_token): New struct.
  7725. (struct ls_parser): New struct.
  7726. (linespec_lexer_lex_number): New function.
  7727. (linespec_lexer_lex_keyword): New function.
  7728. (is_ada_operator): New function.
  7729. (skip_quote_char): New function.
  7730. (copy_token_string): New function.
  7731. (is_closing_quote_enclosed): New function.
  7732. (find_parameter_list_end): New function.
  7733. (linespec_lexer_lex_string): New function.
  7734. (linespec_lexer_lex_one): New function.
  7735. (linespec_lexer_consume_token): New function.
  7736. (linespec_lexer_peek_token): New function.
  7737. (cplusplus_error): Remove unused function.
  7738. (find_methods): Update comment.
  7739. (find_toplevel_char): Return const.
  7740. (is_objc_method_format): Remove unused function.
  7741. (find_toplevel_string): New function.
  7742. (is_linespec_boundary): Remove.
  7743. (symbol_not_found_error): New function.
  7744. (find_method_overload_end): Remove function.
  7745. (unexpected_linespec_error): New function.
  7746. (keep_name_info): Remove.
  7747. (linespec_parse_line_offset): New function.
  7748. (linespec_parse_basic): New function.
  7749. (canonicalize_linespec): New function.
  7750. (decode_line_internal): Remove.
  7751. (create_sals_line_offset): New function adapted from
  7752. decode_all_digits.
  7753. (convert_linespec_to_sals): New function.
  7754. (parse_linespec): New function.
  7755. (linespec_parser_new): New function.
  7756. (linespec_state_destructor): Change parameter type to
  7757. struct linespec_state *.
  7758. Add language parameter.
  7759. Remove freeing of moved members.
  7760. (linespec_parser_delete): New function.
  7761. (decode_line_full): Use parse_linespec and linespec_parser_new.
  7762. (decode_line_1): Likewise.
  7763. (decode_indirect): Rename to ...
  7764. (linespec_expression_to_pc): ... this and rewrite
  7765. to simply find CORE_ADDR, storing this result for later
  7766. conversion to SALs.
  7767. (locate_first_half): Remove.
  7768. (deocde_objc): Add parameter LS.
  7769. Initialize new struct collect_info members.
  7770. Handle minimal symbols, too.
  7771. (decode_compound): Delete.
  7772. (lookup_prefix_sym): Rewrite.
  7773. (compare_msymbols): New function.
  7774. (find_method): Rewrite.
  7775. Do not call cplusplus_error.
  7776. (symtabs_from_filename): Rewrite.
  7777. (collect_function_symbols): Delete.
  7778. (find_function_symbols): Rewrite without ARGPTR-style
  7779. processing.
  7780. (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
  7781. (decode_dollar): Adapted and renamed to ...
  7782. (linespec_parse_variable): ... this.
  7783. (find_linespec_symbols): New function.
  7784. (decode_label): Adapted and renamed to ...
  7785. (find_label_symbols): ... this.
  7786. (decode_digits_list_mode): Add and use LS argument.
  7787. (decode_digits_ordinary): Likewise.
  7788. (collect_symbols): Do not collect SALs, just symbols and msymbols.
  7789. If in list mode, allow any symbol class. Otherwise, only
  7790. permit LOC_BLOCK symbols.
  7791. (minsym_found): Update comments.
  7792. (search_minsyms_for_name): Do not convert the matching symbol
  7793. into a SAL. Simply push the symbol and objfile into the
  7794. result vector.
  7795. (decode_variable): Delete. Contents adapted into
  7796. find_linespec_symbols.
  7797. * cp-support.c (SKIP_SPACE): Remove.
  7798. (operator_tokens): Remove unused global.
  7799. (cp_validate_operator): Remove.
  7800. * cp-support.h (cp_validate_operator): Remove declaration.
  7801. 2012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
  7802. * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
  7803. for TYPE_VPTR_FIELDNO.
  7804. * valprint.c (valprint_check_validity): Make it global, move the
  7805. function comment ...
  7806. * value.h (valprint_check_validity): ... to this new declaration.
  7807. 2012-04-02 Tristan Gingold <gingold@adacore.com>
  7808. * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
  7809. the STATE32 api for i386 state.
  7810. (i386_darwin_store_inferior_registers): Likewise.
  7811. 2012-04-02 Tristan Gingold <gingold@adacore.com>
  7812. * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
  7813. SS offset.
  7814. * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
  7815. format_string.
  7816. 2012-04-02 Tristan Gingold <gingold@adacore.com>
  7817. PR gdb/13901
  7818. * darwin-nat.c (darwin_execvp): Set binary preference.
  7819. 2012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
  7820. * NEWS (set breakpoint condition-evaluation): Use imperative mood.
  7821. 2012-03-30 Tom Tromey <tromey@redhat.com>
  7822. * python/python.c (gdbpy_decode_line): Move cleanup creation out
  7823. of TRY_CATCH. Fix error handling.
  7824. * python/py-value.c (convert_value_from_python): Move 'old'
  7825. declaration to innermost scope.
  7826. 2012-03-29 Joel Brobecker <brobecker@adacore.com>
  7827. Andrey Smirnov <andrew.smirnov@gmail.com>
  7828. -Wshadow warning fix.
  7829. * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
  7830. "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
  7831. Adjust code accordingly.
  7832. 2012-03-29 Joel Brobecker <brobecker@adacore.com>
  7833. * ada-lang.c (symbol_completion_add): Rename parameter
  7834. "encoded" into "encoded_p". Ajust code and documentation
  7835. accordingly.
  7836. 2012-03-29 Joel Brobecker <brobecker@adacore.com>
  7837. Andrey Smirnov <andrew.smirnov@gmail.com>
  7838. -Wshadow warning fix.
  7839. * ada-lang.c (symbol_completion_add): Rename parameter
  7840. "wild_match" into wild_match_p. Update code and documentation
  7841. accordingly.
  7842. 2012-03-29 Joel Brobecker <brobecker@adacore.com>
  7843. * ada-lang.c (symbol_completion_match): Rename parameter
  7844. "encoded" into "encoded_p". Ajust code and documentation
  7845. accordingly.
  7846. 2012-03-29 Joel Brobecker <brobecker@adacore.com>
  7847. Andrey Smirnov <andrew.smirnov@gmail.com>
  7848. -Wshadow warning fix.
  7849. * ada-lang.c (symbol_completion_match): Rename parameter
  7850. "wild_match" into "wild_match_p". Adjust code and function
  7851. documentation accordingly.
  7852. 2012-03-29 Joel Brobecker <brobecker@adacore.com>
  7853. Andrey Smirnov <andrew.smirnov@gmail.com>
  7854. -Wshadow warning fix.
  7855. * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
  7856. "symbol_info" into "info". Adjust code accordingly.
  7857. (ada_lookup_symbol): Likewise.
  7858. 2012-03-29 Joel Brobecker <brobecker@adacore.com>
  7859. * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
  7860. of this function's documentation.
  7861. 2012-03-29 Joel Brobecker <brobecker@adacore.com>
  7862. Andrey Smirnov <andrew.smirnov@gmail.com>
  7863. -Wshadow warning fix.
  7864. * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
  7865. variable into "wild_match_p". Adjust code accordingly.
  7866. 2012-03-29 Joel Brobecker <brobecker@adacore.com>
  7867. Andrey Smirnov <andrew.smirnov@gmail.com>
  7868. -Wshadow warning fix.
  7869. * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
  7870. parameter into "wild_match_p". Adjust code accordingly.
  7871. Document this parameter in the function description.
  7872. 2012-03-29 Joel Brobecker <brobecker@adacore.com>
  7873. Andrey Smirnov <andrew.smirnov@gmail.com>
  7874. -Wshadow warning fix.
  7875. * ada-lang.c (add_symbols_from_enclosing_procs): Rename
  7876. "wild_match" parameter to "wild_match_p" (-Wshadow).
  7877. 2012-03-29 Joel Brobecker <brobecker@adacore.com>
  7878. * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
  7879. in function documentation.
  7880. 2012-03-29 Joel Brobecker <brobecker@adacore.com>
  7881. Andrey Smirnov <andrew.smirnov@gmail.com>
  7882. -Wshadow warning fix.
  7883. * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
  7884. variable into wild_match_p. Adjust code accordingly.
  7885. 2012-03-29 Joel Brobecker <brobecker@adacore.com>
  7886. Andrey Smirnov <andrew.smirnov@gmail.com>
  7887. * ada-valprint.c (ada_val_print_1): Move the code handling
  7888. TYPE_CODE_ENUM inside its own lexical block. Declare
  7889. variables len and val there, instead of in the function's
  7890. top level block. Avoid declaring deref_val again in a way
  7891. that shadows another variable of the same name declared
  7892. in one of the up-level blocks. Just re-use the up-level
  7893. variable instead.
  7894. 2012-03-29 Joel Brobecker <brobecker@adacore.com>
  7895. * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
  7896. Replace block_found argument by symbol_info. Adjust
  7897. implementation accordingly. Add function documentation.
  7898. (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
  7899. Fix documentation.
  7900. * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
  7901. * ada-exp.y (write_object_renaming): Adjust to new
  7902. ada_lookup_encoded_symbol API.
  7903. 2012-03-29 Joel Brobecker <brobecker@adacore.com>
  7904. * ada-lang.h (struct ada_symbol_info): Reformat. Improve
  7905. documentation.
  7906. 2012-03-28 Rathish C <rathish.c@kpitcummins.com>
  7907. * v850-tdep.c: Add the enum values for mpu and fpu registers.
  7908. (v850_register_name): Add the mpu and fpu register names.
  7909. (v850e_register_name): Add the mpu and fpu register names.
  7910. (v850e2_register_name): New function.
  7911. (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
  7912. bfd_mach_v850e2v3.
  7913. 2012-03-28 Joel Brobecker <brobecker@adacore.com>
  7914. * NEWS: Add entry for Ada varobj support.
  7915. 2012-03-28 Joel Brobecker <brobecker@adacore.com>
  7916. * varobj.c (default_value_is_changeable_p): New function,
  7917. extracted from varobj_value_is_changeable_p. Add declaration.
  7918. (ada_value_is_changeable_p): New function, extracted from
  7919. varobj_value_is_changeable_p. Add declaration.
  7920. (struct language_specific): New field "value_is_changeable_p".
  7921. (languages): Add entries for new field.
  7922. (varobj_create): Set language before calling install_new_value.
  7923. (varobj_value_is_changeable_p): Reimplement to call the varobj's
  7924. "value_is_changeable_p" language callback.
  7925. 2012-03-28 Joel Brobecker <brobecker@adacore.com>
  7926. * ada-varobj.h, ada-varobj.c: New files.
  7927. * Makefile.in (SFILES): Add ada-varobj.c.
  7928. (HFILES_NO_SRCDIR): Add ada-varobj.h.
  7929. (COMMON_OBS): Add ada-varobj.o.
  7930. 2012-03-28 Joel Brobecker <brobecker@adacore.com>
  7931. * varobj.c (ada_value_has_mutated): Add declaration. New function.
  7932. (struct language_specific): New field "value_has_mutated".
  7933. (languages): Set field "value_has_mutated" in each entry of array.
  7934. (varobj_value_has_mutated): New function.
  7935. (varobj_udpdate): Add handling of type mutation.
  7936. (value_of_root): Add handling of type mutation.
  7937. (ada_value_has_mutated): New function.
  7938. 2012-03-28 Pedro Alves <palves@redhat.com>
  7939. * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
  7940. Always supply $fr0 as 0.0 and $fr1 as 1.0.
  7941. 2012-03-28 Tom Tromey <tromey@redhat.com>
  7942. * python/py-inferior.c (infpy_read_memory): Remove cleanups and
  7943. explicitly free 'buffer' on exit paths. Decref 'membuf_object'
  7944. before returning.
  7945. 2012-03-28 Tom Tromey <tromey@redhat.com>
  7946. * .dir-locals.el: New file.
  7947. 2012-03-28 Pedro Alves <palves@redhat.com>
  7948. * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
  7949. 2012-03-28 Joel Brobecker <brobecker@adacore.com>
  7950. * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
  7951. handling for r0.
  7952. 2012-03-27 Pedro Alves <palves@redhat.com>
  7953. Eliminate struct ui_stream.
  7954. * ui-out.h (struct ui_stream): Delete.
  7955. (ui_out_field_stream): Adjust prototype.
  7956. (ui_out_stream_new, ui_out_stream_delete)
  7957. (make_cleanup_ui_out_stream_delete): Delete declarations.
  7958. * ui-out.c (ui_out_field_stream): Change prototype to take a
  7959. ui_file instead of a ui_stream. Adjust.
  7960. (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
  7961. (make_cleanup_ui_out_stream_delete): Delete.
  7962. * breakpoint.c (print_breakpoint_location)
  7963. (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
  7964. ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
  7965. * disasm.c (dump_insns): Ditto.
  7966. (do_mixed_source_and_assembly, do_assembly_only): Adjust
  7967. prototype.
  7968. (gdb_disassembly): Use ui_file/mem_fileopen instead of
  7969. ui_stream/ui_out_stream_new.
  7970. * infcmd.c (print_return_value): Ditto.
  7971. * osdata.c (info_osdata_command): Don't allocate a local
  7972. ui_stream.
  7973. * stack.c (print_frame_arg, print_frame_args, print_frame): Use
  7974. ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
  7975. * tracepoint.c (print_one_static_tracepoint_marker): Don't
  7976. allocate a local ui_stream.
  7977. * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
  7978. instead of ui_stream/ui_out_stream_new.
  7979. (list_args_or_locals): Don't allocate a local ui_stream.
  7980. * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
  7981. (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
  7982. ui_stream/ui_out_stream_new.
  7983. * cli/cli-setshow.c (do_setshow_command): Ditto.
  7984. 2012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
  7985. * arm-linux-tdep.c (arm_linux_init_abi): Call
  7986. set_gdbarch_process_record. Initialize `arm_swi_record' field.
  7987. * arm-tdep.c (arm_process_record): New function.
  7988. (deallocate_reg_mem): New function.
  7989. (decode_insn): New function.
  7990. (thumb_record_branch): New function.
  7991. (thumb_record_ldm_stm_swi(): New function.
  7992. (thumb_record_misc): New function.
  7993. (thumb_record_ld_st_stack): New function.
  7994. (thumb_record_ld_st_imm_offset): New function.
  7995. (thumb_record_ld_st_reg_offset(): New function.
  7996. (thumb_record_add_sub_cmp_mov): New function.
  7997. (thumb_record_shift_add_sub): New function.
  7998. (arm_record_coproc_data_proc): New function.
  7999. (arm_record_coproc): New function.
  8000. (arm_record_b_bl): New function.
  8001. (arm_record_ld_st_multiple): New function.
  8002. (arm_record_ld_st_reg_offset): New function.
  8003. (arm_record_ld_st_imm_offset): New function.
  8004. (arm_record_data_proc_imm): New function.
  8005. (arm_record_data_proc_misc_ld_str): New function.
  8006. (arm_record_extension_space): New function.
  8007. (arm_record_strx): New function.
  8008. (sbo_sbz): New function.
  8009. (struct insn_decode_record): New structure for arm insn record.
  8010. (REG_ALLOC): New macro for reg allocations.
  8011. (MEM_ALLOC): New macro for memory allocations.
  8012. * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
  8013. 2012-03-27 Andreas Schwab <schwab@linux-m68k.org>
  8014. * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
  8015. (store_register): Likewise.
  8016. 2012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
  8017. * MAINTAINERS (Write After Approval): Add myself to the list.
  8018. 2012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
  8019. * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
  8020. Describe also the option "auto".
  8021. 2012-03-22 Richard Henderson <rth@redhat.com>
  8022. * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
  8023. * sparc-nat.c (sparc_xfer_wcookie): Make static.
  8024. 2012-03-22 Richard Henderson <rth@redhat.com>
  8025. * jit.c (jit_read_code_entry): Compute alignment and offset of
  8026. int64_t member before computing entry_size.
  8027. 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
  8028. Python scripting: Add new method Value.referenced_value to
  8029. gdb.Value which can dereference pointer as well as reference
  8030. values.
  8031. * NEWS: Add entry under 'Python scripting' about the new method
  8032. Value.referenced_value on gdb.Value objects.
  8033. * python/py-value.c (valpy_referenced_value): New function
  8034. defining a new method on gdb.Value objects which can dereference
  8035. pointer and reference values.
  8036. 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
  8037. * MAINTAINERS (Write After Approval): Add myself to the list.
  8038. 2012-03-21 Kevin Buettner <kevinb@redhat.com>
  8039. * symtab.c (skip_prologue_sal): Change test to check for "main()"
  8040. in addition to "main".
  8041. 2012-03-21 Joel Brobecker <brobecker@adacore.com>
  8042. * expression.h (op_name): Add declaration.
  8043. * expprint.c (op_name): Remove declaration. Make non-static.
  8044. * ax-gdb.c (gen_expr): Use op_name instead of op_string.
  8045. 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
  8046. * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
  8047. of struct siginfo.
  8048. * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
  8049. * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
  8050. * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
  8051. (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
  8052. (linux_nat_get_siginfo): Likewise.
  8053. * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
  8054. (linux_nat_get_siginfo): Likewise.
  8055. * linux-tdep.c (linux_get_siginfo_type): Likewise.
  8056. * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
  8057. * procfs.c (gdb_siginfo_t): Likewise.
  8058. 2012-03-21 Mike Frysinger <vapier@gentoo.org>
  8059. * .gitignore: Ignore more files.
  8060. 2012-03-20 Pedro Alves <palves@redhat.com>
  8061. * remote.c (remote_start_remote): Clear `rs->starting_up' on early
  8062. returns.
  8063. 2012-03-20 Yao Qi <yao@codesourcery.com>
  8064. * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
  8065. comment.
  8066. 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
  8067. Code cleanupp: Use cu_offset and sect_offset compile time type checking.
  8068. * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
  8069. (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
  8070. sect_offset.
  8071. * dwarf2expr.h (cu_offset, sect_offset): New types.
  8072. (struct dwarf_expr_context_funcs) <dwarf_call>
  8073. (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
  8074. sect_offset.
  8075. (struct dwarf_expr_context) <len>: Improve the comment.
  8076. (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
  8077. cu_offset and sect_offset.
  8078. * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
  8079. (dwarf_expr_get_base_type, needs_frame_dwarf_call)
  8080. (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
  8081. * dwarf2loc.h: Include dwarf2expr.h.
  8082. (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
  8083. and sect_offset.
  8084. * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
  8085. Improve the comment.
  8086. (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
  8087. (struct signatured_type, struct line_header, struct partial_die_info)
  8088. (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
  8089. (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
  8090. (get_die_type_at_offset, create_cus_from_index)
  8091. (create_signatured_type_table_from_index, dw2_get_file_names)
  8092. (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
  8093. (read_and_check_comp_unit_head, read_and_check_type_unit_head)
  8094. (create_debug_types_hash_table, process_psymtab_comp_unit)
  8095. (load_partial_comp_unit, create_all_comp_units)
  8096. (partial_die_parent_scope, partial_die_full_name, skip_one_die)
  8097. (load_full_comp_unit, dwarf2_physname, read_import_statement)
  8098. (inherit_abstract_dies, read_func_scope, read_call_site_scope)
  8099. (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
  8100. (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
  8101. (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
  8102. (find_partial_die, read_attribute_value, lookup_die_type)
  8103. (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
  8104. (is_ref_attr): New function comment.
  8105. (dwarf2_get_ref_die_offset): New function comment, new variable retval.
  8106. Use cu_offset and sect_offset.
  8107. (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
  8108. (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
  8109. (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
  8110. (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
  8111. (offset_and_type_hash, offset_and_type_eq, set_die_type)
  8112. (get_die_type_at_offset, partial_die_hash, partial_die_eq)
  8113. (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
  8114. sect_offset.
  8115. 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
  8116. Code cleanup.
  8117. * python/py-auto-load.c (source_section_scripts): New variable back_to.
  8118. Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
  8119. with xfree.
  8120. (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
  8121. 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
  8122. * NEWS: Describe new options --init-command=FILE, -ix and
  8123. --init-eval-command=COMMAND, -iex.
  8124. * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
  8125. CMDARG_INIT_COMMAND.
  8126. (captured_main): New enum items OPT_IX and OPT_IEX. Add
  8127. "init-command", "init-eval-command", "ix" and "iex" to the variable
  8128. long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
  8129. New comment for CMDARG_FILE and CMDARG_COMMAND processing.
  8130. (print_gdb_help): Describe --init-command=FILE, -ix and
  8131. --init-eval-command=COMMAND, -iex.
  8132. 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
  8133. Code cleanup.
  8134. * main.c (struct cmdarg): Move it here from main. Add more comments.
  8135. (cmdarg_s, VEC (cmdarg_s)): New.
  8136. (main): Move struct cmdarg from here. New variables cmdarg_vec and
  8137. cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
  8138. Install cleanup for cmdarg_vec. Update filling for options 'x' and
  8139. 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
  8140. of CMDARG.
  8141. 2012-03-19 Tom Tromey <tromey@redhat.com>
  8142. * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
  8143. 2012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
  8144. PR symtab/13777
  8145. * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
  8146. GCC >=4.5.
  8147. 2012-03-16 Chris January <chris.january@allinea.com>
  8148. * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
  8149. of clear.
  8150. 2012-03-16 Chris January <chris.january@allinea.com>
  8151. * source.c (add_path): Use memmove instead of strcpy because the
  8152. strings overlap.
  8153. 2012-03-16 Joel Brobecker <brobecker@adacore.com>
  8154. * value.h (set_value_parent): Add declaration.
  8155. * value.c (set_value_parent): New function.
  8156. (value_address): If VALUE->PARENT is not NULL, then use it as
  8157. the base address instead of VALUE->LOCATION.address.
  8158. * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
  8159. the same as OBJ's address. Adjust V's offset accordingly.
  8160. Set V's parent.
  8161. 2012-03-16 Gary Benson <gbenson@redhat.com>
  8162. PR breakpoints/10738
  8163. * dwarf2read.c (use_deprecated_index_sections): New global.
  8164. (struct partial_die_info): New member may_be_inlined.
  8165. (read_partial_die): Set may_be_inlined where appropriate.
  8166. (add_partial_subprogram): Add partial symbols for partial
  8167. DIEs that may be inlined.
  8168. (new_symbol_full): Add inlined subroutines to the current
  8169. scope.
  8170. (write_psymtabs_to_index): Bump version number.
  8171. (dwarf2_read_index): Read only version 6 indices unless
  8172. use_deprecated_index_sections is set.
  8173. * linespec.c (symbol_and_data_callback): New structure.
  8174. (iterate_inline_only): New function.
  8175. (iterate_over_all_matching_symtabs): New argument
  8176. "include_inline". If nonzero, also call the callback for
  8177. symbols representing inlined subroutines.
  8178. (lookup_prefix_sym): Pass extra argument to the above.
  8179. (find_function_symbols): Likewise.
  8180. (add_matching_symbols_to_info): Likewise.
  8181. * NEWS: Mention that GDB can now set breakpoints on inlined
  8182. functions.
  8183. 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
  8184. * p-typeprint.c (pascal_type_print_method_args):
  8185. Fix display of parameter of methods.
  8186. 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
  8187. * amd64-windows-nat.c (_initialize_amd64_windows_nat):
  8188. Add missing prototype.
  8189. 2012-03-16 Yao Qi <yao@codesourcery.com>
  8190. Jan Kratochvil <jan.kratochvil@redhat.com>
  8191. Fix false compilation warning.
  8192. * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
  8193. 2012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
  8194. Pedro Alves <pedro@codesourcery.com>
  8195. * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
  8196. (arm_register_g_packet_guesses): New function.
  8197. (arm_gdbarch_init): Don't force a target description with
  8198. registers when the executable is detected as M-profile. Instead
  8199. set gdbarch->tdep->is_m. Register `g' packet guesses.
  8200. (_initialize_arm_tdep): Initialize the new target description.
  8201. * features/arm-with-m-fpa-layout.xml: New description.
  8202. * features/arm-with-m-fpa-layout.c: New, generated.
  8203. 2012-03-15 Joel Brobecker <brobecker@adacore.com>
  8204. * breakpoint.c (breakpoint_xfer_memory): Add assertion.
  8205. Update function description.
  8206. (insert_bp_location): Do not wipe bl->target_info out.
  8207. * mem-break.c: #include "gdb_string.h".
  8208. (default_memory_insert_breakpoint): Do not call target_read_memory
  8209. with a pointer to the breakpoint's shadow_contents buffer. Use
  8210. a local buffer instead.
  8211. * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
  8212. 2012-03-15 Tom Tromey <tromey@redhat.com>
  8213. * NEWS: Mention "info vtbl", not "info vtable".
  8214. * cp-support.c (info_vtbl_command): Fix comment.
  8215. (_initialize_cp_support): Fix text.
  8216. 2012-03-15 Tom Tromey <tromey@redhat.com>
  8217. * cp-valprint.c (cp_print_value_fields): Use
  8218. print_function_pointer_address for vtable slot.
  8219. 2012-03-15 Tom Tromey <tromey@redhat.com>
  8220. * gnu-v3-abi.c (struct value_and_voffset): New.
  8221. (hash_value_and_voffset, eq_value_and_voffset)
  8222. (compare_value_and_voffset, compute_vtable_size)
  8223. (print_one_vtable, gnuv3_print_vtable): New functions.
  8224. (init_gnuv3_ops): Initialize 'print_vtable' field.
  8225. * cp-support.c (info_vtbl_command): New function.
  8226. (_initialize_cp_support): Add "info vtbl".
  8227. * cp-abi.h (cplus_print_vtable): Declare.
  8228. (struct cp_abi_ops) <print_vtable>: New field.
  8229. * cp-abi.c (cplus_print_vtable): New function.
  8230. * NEWS: Update.
  8231. 2012-03-15 Tom Tromey <tromey@redhat.com>
  8232. * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
  8233. iterate_over_symbols.
  8234. 2012-03-14 Doug Evans <dje@google.com>
  8235. * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
  8236. DW_OP_GNU_parameter_ref.
  8237. 2012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
  8238. Fix double prompt of 'interpreter-exec mi'.
  8239. * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
  8240. (mi_interpreter_resume): use it.
  8241. (mi_execute_command_input_handler): New function.
  8242. * mi/mi-main.c (mi_execute_command): Move prompt printing to
  8243. mi_execute_command_input_handler.
  8244. 2012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
  8245. * darwin-nat-info.c (_initialize_darwin_info_commands): Add
  8246. prototype.
  8247. (darwin_debug_port_info): Make static.
  8248. * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
  8249. * machoread.c (_initialize_machoread): Add prototype.
  8250. * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
  8251. (i386_darwin_set_control, i386_darwin_get_control)
  8252. i386_darwin_dr_set_addr, i386_darwin_get_addr)
  8253. i386_darwin_get_status, i386_darwin_get_control):
  8254. Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
  8255. 2012-03-13 Joel Brobecker <brobecker@adacore.com>
  8256. * ax-gdb.c (gen_usual_unary): Remove special handling of
  8257. enum and bool types.
  8258. 2012-03-13 Joel Brobecker <brobecker@adacore.com>
  8259. * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
  8260. 2012-03-13 Joel Brobecker <brobecker@adacore.com>
  8261. * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
  8262. 2012-03-13 Chris January <chris.january@allinea.com>
  8263. * aix-thread.c (fill_sprs): Store the floating point registers
  8264. at the correct offsets into vals.
  8265. 2012-03-13 Doug Evans <dje@google.com>
  8266. * NEWS: Mention symbol-reloading has been deleted.
  8267. * symfile.c (symbol_reloading): Delete.
  8268. (show_symbol_reloading): Delete.
  8269. (_initialize_symfile): Delete set/show symbol-reloading.
  8270. * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
  8271. read_in_chain until we have successfully read it in.
  8272. (load_full_comp_unit): Ditto.
  8273. (read_signatured_type): Add comment.
  8274. 2012-03-13 Chris January <chris.january@allinea.com>
  8275. * stabsread.c (fix_common_block): Change type of valu argument
  8276. to CORE_ADDR.
  8277. 2012-03-13 Chris January <chris.january@allinea.com>
  8278. * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
  8279. instruction.
  8280. 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
  8281. * common/linux-procfs.c (linux_proc_get_int): New, from
  8282. linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
  8283. field.
  8284. (linux_proc_get_tgid): Only call linux_proc_get_int.
  8285. (linux_proc_get_tracerpid): New.
  8286. (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
  8287. (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
  8288. linux_proc_pid_has_state.
  8289. * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
  8290. * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
  8291. (linux_ptrace_attach_warnings): New.
  8292. * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
  8293. New declaration.
  8294. * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
  8295. (linux_nat_attach): New variables ex, buffer, message and message_s.
  8296. Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
  8297. 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
  8298. * Makefile.in (linux-ptrace.o): New.
  8299. * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
  8300. from linux-nat.c.
  8301. * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
  8302. * common/linux-ptrace.c: New file.
  8303. * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
  8304. * config/arm/linux.mh: Likewise.
  8305. * config/i386/linux.mh: Likewise.
  8306. * config/i386/linux64.mh: Likewise.
  8307. * config/ia64/linux.mh: Likewise.
  8308. * config/m32r/linux.mh: Likewise.
  8309. * config/m68k/linux.mh: Likewise.
  8310. * config/mips/linux.mh: Likewise.
  8311. * config/pa/linux.mh: Likewise.
  8312. * config/powerpc/linux.mh: Likewise.
  8313. * config/powerpc/ppc64-linux.mh: Likewise.
  8314. * config/powerpc/spu-linux.mh: Likewise.
  8315. * config/s390/s390.mh: Likewise.
  8316. * config/sparc/linux.mh: Likewise.
  8317. * config/sparc/linux64.mh: Likewise.
  8318. * config/xtensa/linux.mh: Likewise.
  8319. * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
  8320. common/linux-procfs.c.
  8321. (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
  8322. 2012-03-13 Hui Zhu <teawater@gmail.com>
  8323. Pedro Alves <palves@redhat.com>
  8324. * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
  8325. CREATE_BREAKPOINT_FLAGS_INSERTED.
  8326. (create_breakpoint_sal, create_breakpoints_sal)
  8327. (base_breakpoint_create_breakpoints_sal)
  8328. (tracepoint_create_breakpoints_sal)
  8329. (strace_marker_create_breakpoints_sal): New flags parameter. Pass
  8330. down.
  8331. (break_command_1, handle_gnu_v3_exceptions, trace_command)
  8332. (ftrace_command, strace_command): Adjust.
  8333. (create_tracepoint_from_upload): Pass
  8334. CREATE_BREAKPOINT_FLAGS_INSERTED.
  8335. * breakpoint.h (enum breakpoint_create_flags): New.
  8336. (create_breakpoint): New flags parameter.
  8337. * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
  8338. * python/py-breakpoint.c (bppy_init): Adjust.
  8339. * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
  8340. * spu-tdep.c (spu_catch_start): Adjust.
  8341. 2012-03-13 Pedro Alves <palves@redhat.com>
  8342. Hui Zhu <teawater@gmail.com>
  8343. Yao Qi <yao@codesourcery.com>
  8344. * remote.c (struct remote_state): New field `starting_up'.
  8345. (remote_start_remote): Set and clear it.
  8346. (remote_can_download_tracepoint): If starting up, return false.
  8347. 2012-03-13 Yao Qi <yao@codesourcery.com>
  8348. * inferior.h (struct inferior): Remove fields any_syscall_count,
  8349. syscalls_counts and total_syscalls_count. Move them to new
  8350. struct catch_syscall_inferior_data in breakpoint.c.
  8351. * breakpoint.c: Call DEF_VEC_I(int).
  8352. (struct catch_syscall_inferior_data): New.
  8353. (get_catch_syscall_inferior_data): New.
  8354. (catch_syscall_inferior_data_cleanup): New.
  8355. (insert_catch_syscall): Update to access data in
  8356. struct catch_syscall_inferior_data.
  8357. (insert_catch_syscall): Likewise.
  8358. (remove_catch_syscall): Likewise.
  8359. (remove_catch_syscall): Likewise.
  8360. (is_syscall_catchpoint_enabled): Likewise.
  8361. (add_catch_command): Likewise.
  8362. (_initialize_breakpoint): Register cleanup.
  8363. * breakpoint.h: Removed DEF_VEC_I(int).
  8364. * dwarf2loc.c: Call DEF_VEC_I(int).
  8365. * mi/mi-main.c: Likewise.
  8366. 2012-03-12 Mark Kettenis <kettenis@gnu.org>
  8367. * inf-ptrace.c (inf_ptrace_post_attach): Make static.
  8368. 2012-03-12 Chris January <chris.january@allinea.com>
  8369. * aix-thread.c (_initialize_aix_thread): Add prototype.
  8370. * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
  8371. * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
  8372. 2012-03-12 Joel Brobecker <brobecker@adacore.com>
  8373. * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
  8374. include of "amd64-nat.h".
  8375. 2012-03-12 Tom Tromey <tromey@redhat.com>
  8376. * buildsym.c (record_pending_block): Now static.
  8377. * buildsym.h: (record_pending_block): Remove.
  8378. 2012-03-12 Andreas Tobler <andreast@fgznet.ch>
  8379. * amd64bsd-nat.c: Include amd64bsd-nat.h.
  8380. 2012-03-09 Tom Tromey <tromey@redhat.com>
  8381. * dwarf2read.c (struct dwarf2_cu) <checked_producer,
  8382. producer_is_gxx_lt_4_6>: New fields.
  8383. (producer_is_gxx_lt_4_6): Use and update producer cache fields.
  8384. 2012-03-09 Tom Tromey <tromey@redhat.com>
  8385. * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
  8386. 2012-03-08 Joel Brobecker <brobecker@adacore.com>
  8387. * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
  8388. prototype.
  8389. 2012-03-08 Joel Brobecker <brobecker@adacore.com>
  8390. * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
  8391. 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
  8392. Fix -Wmissing-prototypes build.
  8393. * arm-linux-nat.c (get_thread_id): Make it static.
  8394. * xtensa-linux-nat.c (get_thread_id): Likewise.
  8395. 2012-03-08 Joel Brobecker <brobecker@adacore.com>
  8396. * server.c (process_point_options): If a conditional expression
  8397. is found, only print a message if remote_debug is nonzero.
  8398. 2012-03-08 Luis Machado <lgustavo@codesourcery.com>
  8399. * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
  8400. of internal error for unknown/unsupported types.
  8401. 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
  8402. Fix CU relative vs. absolute DIE offsets.
  8403. * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
  8404. offset to offset_in_cu.
  8405. * dwarf2read.c (process_enumeration_scope): Add CU offset to
  8406. TYPE_OFFSET.
  8407. (dwarf2_fetch_die_location_block): Rename parameter offset to
  8408. offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
  8409. 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
  8410. * libunwind-frame.c: Rename to ...
  8411. * ia64-libunwind-tdep.c: ... here.
  8412. * libunwind-frame.h: Rename to ...
  8413. * ia64-libunwind-tdep.h: ... here.
  8414. * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
  8415. ia64-libunwind-tdep.h.
  8416. (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
  8417. * README (--with-libunwind): Rename to ...
  8418. (--with-libunwind-ia64): ... here, note it is ia64 specific now.
  8419. * config.in: Regenerate.
  8420. * configure: Regenerate.
  8421. * configure.ac: New option --with-libunwind-ia64, make the
  8422. AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
  8423. Remove AC_DEFINE for HAVE_LIBUNWIND.
  8424. * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
  8425. Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
  8426. Rename libunwind-frame in the general comment.
  8427. * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
  8428. Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
  8429. Move forward declarations inside #ifndef. Rename libunwind-frame in
  8430. the general comment.
  8431. * ia64-tdep.c: Rename libunwind-frame.h #include to
  8432. ia64-libunwind-tdep.h.
  8433. (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
  8434. (ia64_libunwind_descr): Rename libunwind-frame to
  8435. ia64-libunwind-tdep in these function comments.
  8436. * ia64-tdep.h: Rename libunwind-frame.h #include to
  8437. ia64-libunwind-tdep.h.
  8438. * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
  8439. ia64-libunwind-tdep in that data comment.
  8440. 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
  8441. * libunwind-frame.h (struct frame_unwind): New declaration.
  8442. 2012-03-08 Joel Brobecker <brobecker@adacore.com>
  8443. * breakpoint.c (_initialize_breakpoint): Fix error in help of
  8444. "set breakpoint condition-evaluation" command.
  8445. 2012-03-08 Tristan Gingold <gingold@adacore.com>
  8446. * sparc-stub.c: Move to stubs/
  8447. * sh-stub.c: Likewise.
  8448. * m68k-stub.c: Likewise.
  8449. * m32r-stub.c: Likewise.
  8450. * i386-stub.c: Likewise.
  8451. 2012-03-08 Andreas Schwab <schwab@linux-m68k.org>
  8452. * m68klinux-tdep.c (m68k_linux_init_abi): Register
  8453. linux_get_siginfo_type.
  8454. * m68klinux-nat.c: Include "gdb_proc_service.h".
  8455. (PTRACE_GET_THREAD_AREA): Define.
  8456. (ps_get_thread_area): New function.
  8457. 2012-03-08 Yao Qi <yao@codesourcery.com>
  8458. * remote.c (remote_get_noisy_reply): Replace `sprintf' with
  8459. `xsnprintf'.
  8460. (remote_query_attached): Likewise.
  8461. (remote_static_tracepoint_marker_at): Likewise.
  8462. (remote_set_permissions): Likewise.
  8463. (remote_detach_1, extended_remote_attach_1): Likewise.
  8464. (send_g_packet, remote_vkill): Likewise.
  8465. (extended_remote_disable_randomization): Likewise.
  8466. (remote_add_target_side_condition): Likewise.
  8467. (remote_insert_breakpoint): Likewise.
  8468. (remote_remove_breakpoint): Likewise.
  8469. (remote_insert_watchpoint): Likewise.
  8470. (remote_remove_watchpoint): Likewise.
  8471. (remote_insert_hw_breakpoint): Likewise.
  8472. (remote_insert_hw_breakpoint): Likewise.
  8473. (remote_remove_hw_breakpoint): Likewise.
  8474. (remote_download_command_source): Likewise.
  8475. (remote_download_tracepoint): Likewise.
  8476. (remote_download_trace_state_variable): Likewise.
  8477. (remote_disable_tracepoint): Likewise.
  8478. (remote_trace_set_readonly_regions): Likewise.
  8479. (remote_get_tracepoint_status): Likewise.
  8480. (remote_trace_find): Likewise.
  8481. (remote_get_trace_state_variable_value): Likewise.
  8482. (remote_set_disconnected_tracing): Likewise.
  8483. (remote_set_circular_trace_buffer): Likewise.
  8484. (remote_get_min_fast_tracepoint_insn_len): Likewise.
  8485. (remote_use_agent): Likewise.
  8486. (remote_add_target_side_condition): Add one parameter BUF_SIZE.
  8487. Update callers.
  8488. 2012-03-07 Pedro Alves <palves@redhat.com>
  8489. * NEWS: Mention QProgramSignals.
  8490. * inferior.h (update_signals_program_target): Declare.
  8491. * infrun.c: (update_signals_program_target): New.
  8492. (handle_command): Update the target of the new program signals
  8493. array changes.
  8494. * remote.c (PACKET_QProgramSignals): New enum.
  8495. (last_program_signals_packet): New global.
  8496. (remote_program_signals): New.
  8497. (remote_start_remote): Update the target with the program signals
  8498. list.
  8499. (remote_protocol_features): Add entry for QPassSignals.
  8500. (remote_open_1): Free anc clear last_program_signals_packet.
  8501. (init_remote_ops): Install remote_program_signals.
  8502. * target.c (update_current_target): Adjust.
  8503. (target_program_signals): New.
  8504. * target.h (struct target_ops) <to_program_signals>: New field.
  8505. (target_program_signals): Declare.
  8506. 2012-03-07 Pedro Alves <palves@redhat.com>
  8507. * NEWS: Add subtitle for new z0/z1 conditional breakpoint
  8508. extensions.
  8509. 2012-03-07 Andreas Schwab <schwab@linux-m68k.org>
  8510. * m68klinux-nat.c (getregs_supplies): Make static.
  8511. (getfpregs_supplies): Likewise.
  8512. (have_ptrace_getregs): Likewise.
  8513. 2012-03-06 Joel Brobecker <brobecker@adacore.com>
  8514. * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
  8515. in call to get_die_type_at_offset.
  8516. 2012-03-06 Stan Shebs <stan@codesourcery.com>
  8517. * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
  8518. * mi/mi-cmd-disas.c: Ditto.
  8519. * mi/mi-cmd-env.c: Ditto.
  8520. * mi/mi-cmd-file.c: Ditto.
  8521. * mi/mi-cmd-stack.c: Ditto.
  8522. * mi/mi-cmd-target.c: Ditto.
  8523. * mi/mi-cmd-var.c: Ditto.
  8524. * mi/mi-cmds.c: Ditto.
  8525. * mi/mi-cmds.h: Ditto.
  8526. * mi/mi-console.c: Ditto.
  8527. * mi/mi-getopt.c: Ditto.
  8528. * mi/mi-getopt.h: Ditto.
  8529. * mi/mi-interp.c: Ditto.
  8530. * mi/mi-main.c: Ditto.
  8531. * mi/mi-out.c: Ditto.
  8532. * mi/mi-parse.c: Ditto.
  8533. * mi/mi-parse.h: Ditto.
  8534. * mi/mi-symbol-cmds.c: Ditto.
  8535. * mi/mi-getopt.h: Move mi_opt struct up.
  8536. * mi/mi-main.c (captured_mi_execute_command): Remove redundant
  8537. return.
  8538. * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
  8539. 2012-03-06 Tom Tromey <tromey@redhat.com>
  8540. * proc-service.c (ps_pglobal_lookup): Set the current program
  8541. space.
  8542. 2012-03-06 Pedro Alves <palves@redhat.com>
  8543. * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
  8544. 2012-03-05 Joel Brobecker <brobecker@adacore.com>
  8545. * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
  8546. 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
  8547. Code cleanup.
  8548. * common/linux-osdata.c (linux_common_core_of_thread): New function
  8549. comment.
  8550. * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
  8551. call by linux_common_core_of_thread.
  8552. (linux_nat_core_of_thread_1): Remove.
  8553. * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
  8554. * linux-thread-db.c: Include linux-osdata.h.
  8555. (update_thread_core): Replace linux_nat_core_of_thread_1 call by
  8556. linux_common_core_of_thread.
  8557. 2012-03-05 Tom Tromey <tromey@redhat.com>
  8558. * value.c (value_primitive_field): Don't fetch contents for
  8559. non-virtual bases.
  8560. 2012-03-05 Tom Tromey <tromey@redhat.com>
  8561. * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
  8562. 2012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
  8563. * s390-nat.c: Include "gregset.h".
  8564. 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
  8565. * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
  8566. [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
  8567. (libunwind_load): New variable so_error, use it for dlerror. Try to
  8568. load also LIBUNWIND_SO_7.
  8569. 2012-03-05 Pedro Alves <palves@redhat.com>
  8570. * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
  8571. is not NULL, and remove resulting dead code.
  8572. 2012-03-05 Thomas Schwinge <thomas@codesourcery.com>
  8573. * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
  8574. prologue to sh_analyze_prologue.
  8575. (sh_analyze_prologue): Make better use of such an upper limit, and
  8576. generally be more cautious about accessing memory.
  8577. 2012-03-05 Tom Tromey <tromey@redhat.com>
  8578. * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
  8579. _initialize_ia64_hpux_tdep.
  8580. 2012-03-05 Pedro Alves <palves@redhat.com>
  8581. PR gdb/13766
  8582. * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
  8583. the register state is clear, supply explicit zero, instead of
  8584. marking the register unavailable.
  8585. 2012-03-05 Tristan Gingold <gingold@adacore.com>
  8586. * NEWS: Mention OpenVMS ia64 new target.
  8587. 2012-03-05 Tristan Gingold <gingold@adacore.com>
  8588. * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
  8589. (ia64_unw_accessors, ia64_unw_rse_accessors)
  8590. (ia64_libunwind_descr): Declare.
  8591. * ia64-vms-tdep.c: New file.
  8592. * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
  8593. (ia64_libunwind_descr): Make them public.
  8594. * configure.tgt: Add ia64-*-*vms*.
  8595. * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
  8596. (ALLDEPFILES): Add ia64-vms-tdep.c
  8597. 2012-03-05 Tristan Gingold <gingold@adacore.com>
  8598. * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
  8599. * remote.c (PACKET_qXfer_uib): New enum value.
  8600. (remote_protocol_features): Add entry for PACKET_qXfer_uib.
  8601. (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
  8602. (_initialize_remote): Call add_packet_config_cmd for
  8603. xfer:uib packet.
  8604. 2012-03-05 Tristan Gingold <gingold@adacore.com>
  8605. * osabi.c (gdb_osabi_names): Add OpenVMS.
  8606. (generic_elf_osabi_sniffer): Likewise.
  8607. * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
  8608. 2012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
  8609. Removed unused code.
  8610. * libunwind-frame.c (libunwind_frame_unwind)
  8611. (libunwind_frame_base_address): Remove.
  8612. * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
  8613. 2012-03-04 Yao Qi <yao@codesourcery.com>
  8614. * common/agent.c (gdb_connect_sync_socket): Add _ markup and
  8615. remove trailing new line.
  8616. (agent_run_command, agent_run_command): Add _ markup.
  8617. (agent_capability_check): Likewise.
  8618. 2012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
  8619. * breakpoint.c (set_condition_evaluation_mode): Set
  8620. CONDITION_EVALUATION_MODE unconditionally.
  8621. 2012-03-03 Yao Qi <yao@codesourcery.com>
  8622. * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
  8623. * common/agent.h: Update declaration.
  8624. * inf-child.c (inf_child_use_agent): New.
  8625. (inf_child_can_use_agent): New.
  8626. (inf_child_target): Initialize fields `to_use_agent'
  8627. and `to_can_use_agent'.
  8628. * agent.c (agent_new_objfile): New.
  8629. (_initialize_agent): Add agent_new_objfile to new_objfile
  8630. observer.
  8631. * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
  8632. New.
  8633. (linux_target_install_ops): Initialize field
  8634. `to_static_tracepoint_markers_by_strid'.
  8635. * remote.c (free_current_marker): Move it to ...
  8636. * tracepoint.c (free_current_marker): ... here. New.
  8637. (cleanup_target_stop): New.
  8638. * tracepoint.h: Declare free_current_marker.
  8639. * NEWS: Add one entry about `info static-tracepoint-marker'.
  8640. 2012-03-03 Yao Qi <yao@codesourcery.com>
  8641. * common/agent.c (agent_loaded_p): New.
  8642. (agent_look_up_symbols): New global.
  8643. * common/agent.h: Declare agent_loaded_p.
  8644. 2012-03-03 Yao Qi <yao@codesourcery.com>
  8645. * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
  8646. (agent_capability_check, agent_capability_invalidate): New.
  8647. (symbol_list): New array element.
  8648. * common/agent.h (enum agent_capa): New.
  8649. * target.c (target_pre_inferior): Call agent_capability_invalidate.
  8650. 2012-03-03 Yao Qi <yao@codesourcery.com>
  8651. * target.h (struct target_ops) <to_use_agent>: New field.
  8652. (struct target_ops) <to_can_use_agent>: New field.
  8653. (target_use_agent, target_can_use_agent): New macro.
  8654. * target.c (update_current_target): Update.
  8655. * remote.c: New enum `PACKET_QAgent'.
  8656. (remote_protocol_features): Add a new element.
  8657. (remote_use_agent, remote_can_use_agent): New.
  8658. (init_remote_ops): Initialize field `can_use_agent' with
  8659. remote_can_use_agent. Intiailize field `use_agent' with
  8660. remote_use_agent.
  8661. * common/agent.c (use_agent): New global.
  8662. * common/agent.h: Declare it.
  8663. * tracepoint.c (info_static_tracepoint_markers_command): Add
  8664. comment.
  8665. * Makefile.in (SFILES): Add common/agent.c and agent.c.
  8666. (COMMON_OBS): Add common/agent.o and agent.o
  8667. (common-agent.o): New rule.
  8668. * agent.c: New.
  8669. 2012-03-03 Yao Qi <yao@codesourcery.com>
  8670. * common/agent.c: New.
  8671. * common/agent.h: New.
  8672. * configure.ac: Add `sys/socket.h' and `sys/un.h' to
  8673. AC_CHECK_HEADERS.
  8674. * configure, configh.in: Regenerated.
  8675. 2012-03-02 Kevin Buettner <kevinb@redhat.com>
  8676. * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
  8677. unless it exists for this architecture.
  8678. 2012-03-02 Joel Brobecker <brobecker@adacore.com>
  8679. * language.h (struct language_defn): New "method" la_read_var_value.
  8680. * findvar.c: #include "language.h".
  8681. (default_read_var_value): Renames read_var_value. Rewrite
  8682. function description.
  8683. (read_var_value): New function.
  8684. * value.h (default_read_var_value): Add prototype.
  8685. * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
  8686. New functions.
  8687. (ada_language_defn): Add entry for la_read_var_value.
  8688. * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
  8689. * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
  8690. language_defn structures to add entry for new la_read_var_value
  8691. field.
  8692. 2012-03-02 Tom Tromey <tromey@redhat.com>
  8693. Pedro Alves <palves@redhat.com>
  8694. PR breakpoints/13776:
  8695. * breakpoint.c (breakpoint_init_inferior): Delete step-resume
  8696. breakpoints.
  8697. (delete_longjmp_breakpoint_at_next_stop): New.
  8698. * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
  8699. * target.c (generic_mourn_inferior): Call mark_breakpoints_out
  8700. before deleting the inferior. Add comments.
  8701. * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
  8702. breakpoints immediately, but only on next stop. Move that code
  8703. next to where we mark other breakpoints for deletion.
  8704. 2012-03-02 Joel Brobecker <brobecker@adacore.com>
  8705. * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
  8706. marker.
  8707. * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
  8708. violation.
  8709. 2012-03-02 Pedro Alves <palves@redhat.com>
  8710. * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
  8711. 2012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
  8712. Fix -Wmissing-prototypes build.
  8713. * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
  8714. * remote-sim.c (gdbsim_has_all_memory): Likewise.
  8715. (gdbsim_has_memory): Likewise.
  8716. 2012-03-02 Yao Qi <yao@codesourcery.com>
  8717. Fix -Wmissing-prototypes build.
  8718. * charset.c (phony_iconv_open): Make static.
  8719. (phony_iconv_close, phony_iconv): Likewise.
  8720. * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
  8721. * i386-windows-nat.c (_initialize_i386_windows_nat): New
  8722. prototype.
  8723. * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
  8724. * ser-mingw.c (create_select_thread): Make static.
  8725. * windows-termcap.c (tgetent): New prototype.
  8726. (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
  8727. 2012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
  8728. Fix -Wmissing-prototypes build.
  8729. * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
  8730. (_initialize_windows_nat, _initialize_check_for_gdb_ini)
  8731. (_initialize_loadable): New prototypes.
  8732. 2012-03-02 Doug Evans <dje@google.com>
  8733. * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
  8734. abbrev table, read_comp_unit will do it.
  8735. 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
  8736. Fix -Wmissing-prototypes build.
  8737. * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
  8738. * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
  8739. * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
  8740. * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
  8741. (_initialize_arm_symbian_tdep): New prototype.
  8742. * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
  8743. * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
  8744. * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
  8745. static.
  8746. * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
  8747. * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
  8748. prototype.
  8749. * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
  8750. (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
  8751. * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
  8752. static.
  8753. * moxie-tdep.c (moxie_process_record): Likewise.
  8754. * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
  8755. (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
  8756. * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
  8757. (_initialize_rl78_tdep): New prototype.
  8758. * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
  8759. (_initialize_rx_tdep): New prototype.
  8760. * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
  8761. (_initialize_darwin_solib): New prototype.
  8762. * solib-spu.c: Include solib-spu.h.
  8763. (_initialize_spu_solib): New prototype.
  8764. * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
  8765. * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
  8766. (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
  8767. (tic6x_software_single_step): Make it static.
  8768. (_initialize_tic6x_tdep): New prototype.
  8769. 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
  8770. Fix -Wmissing-prototypes build.
  8771. * cris-tdep.c (cris_can_use_hardware_watchpoint)
  8772. (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
  8773. 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
  8774. Fix -Wmissing-prototypes build.
  8775. * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
  8776. (frv_have_stopped_data_address): Remove.
  8777. 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
  8778. Fix -Wmissing-prototypes build.
  8779. * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
  8780. * sh-tdep.c: Include sh64-tdep.h.
  8781. * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
  8782. * sh64-tdep.c: Include sh64-tdep.h.
  8783. * sh64-tdep.h: New file.
  8784. 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
  8785. * mips-tdep.c (mips32_scan_prologue): Correct indentation.
  8786. 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
  8787. * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
  8788. sp_regnum once the gdbarch_init_osabi hook has been called.
  8789. 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
  8790. * mips-tdep.c (mips32_bc1_pc): New function.
  8791. (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
  8792. BPOSGE32 and BPOSGE64 instructions.
  8793. (deal_with_atomic_sequence): Likewise.
  8794. (mips32_instruction_has_delay_slot): Likewise.
  8795. 2012-03-01 Maciej W. Rozycki <macro@mips.com>
  8796. Chris Dearman <chris@mips.com>
  8797. Maciej W. Rozycki <macro@codesourcery.com>
  8798. Joseph Myers <joseph@codesourcery.com>
  8799. * features/mips-dsp.xml: New file.
  8800. * features/mips64-dsp.xml: New file.
  8801. * features/mips-dsp-linux.xml: New file.
  8802. * features/mips64-dsp-linux.xml: New file.
  8803. * features/Makefile (WHICH): Add mips-dsp-linux and
  8804. mips64-dsp-linux.
  8805. (mips-dsp-expedite, mips64-dsp-expedite): New variables.
  8806. * features/mips-dsp-linux.c: New file.
  8807. * features/mips64-dsp-linux.c: New file.
  8808. * regformats/mips-dsp-linux.dat: New file.
  8809. * regformats/mips64-dsp-linux.dat: New file.
  8810. * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
  8811. registers.
  8812. (mips64_linux_register_addr): Likewise.
  8813. (mips64_linux_regsets_fetch_registers): Likewise.
  8814. (mips64_linux_regsets_store_registers): Likewise.
  8815. (mips64_linux_fetch_registers): Update call to
  8816. mips64_linux_regsets_fetch_registers.
  8817. (mips64_linux_store_registers): Update call to
  8818. mips64_linux_regsets_store_registers.
  8819. (mips_linux_read_description): Probe for DSP registers.
  8820. (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
  8821. and initialize_tdesc_mips64_dsp_linux.
  8822. * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
  8823. Remove padding of no longer used embedded register slots.
  8824. * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
  8825. (MIPS_RESTART_REGNUM): Redefine enum value.
  8826. * mips-tdep.c (mips_generic_reg_names): Remove trailing null
  8827. strings.
  8828. (mips_tx39_reg_names): Likewise.
  8829. (mips_linux_reg_names): New array of register names for Linux
  8830. targets.
  8831. (mips_register_name): Check for a null pointer in
  8832. mips_processor_reg_names and return an empty string.
  8833. (mips_register_type): Exclude embedded registers for the IRIX
  8834. and Linux ABIs.
  8835. (mips_pseudo_register_type): Likewise. Use dynamic numbers to
  8836. refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
  8837. DSP registers.
  8838. (mips_stab_reg_to_regnum): Handle DSP accumulators.
  8839. (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
  8840. (mips_gdbarch_init): Likewise. Initialize internal register
  8841. indices for the Linux ABI. Use dynamic numbers to refer to
  8842. registers, as applicable, while parsing the target description.
  8843. * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
  8844. 2012-03-01 Joel Brobecker <brobecker@adacore.com>
  8845. * frame.h (read_frame_register_unsigned): Fix typo in function
  8846. description.
  8847. 2012-03-01 Pedro Alves <palves@redhat.com>
  8848. * jit-reader.in [!__cplusplus]
  8849. (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
  8850. 2012-03-01 Pedro Alves <palves@redhat.com>
  8851. * configure.ac (build_warnings): Add -Wmissing-prototypes.
  8852. * configure: Regenerate.
  8853. 2012-03-01 Pedro Alves <palves@redhat.com>
  8854. * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
  8855. * breakpoint.c (create_exception_master_breakpoint, trace_command)
  8856. (ftrace_command, strace_command): Make static.
  8857. * d-lang.c (_initialize_d_language): Declare.
  8858. * dwarf2expr.c (_initialize_dwarf2expr): Declare.
  8859. * dwarf2loc.c (_initialize_dwarf2loc):
  8860. * dwarf2read.c (process_psymtab_comp_unit): Make static.
  8861. * exec.c (exec_get_section_table): Make static.
  8862. * i386-linux-tdep.c (i386_linux_record_signal): Make static.
  8863. * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
  8864. * inferior.c (remove_inferior_command, add_inferior_command)
  8865. (clone_inferior_command): Make static.
  8866. * linux-nat.c (linux_nat_thread_address_space)
  8867. (linux_nat_core_of_thread): Make static.
  8868. * linux-tdep.c (_initialize_linux_tdep): Declare.
  8869. * objc-lang.c (_initialize_objc_lang): Declare.
  8870. * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
  8871. Make static.
  8872. (_initialize_opencl_language): Declare.
  8873. * record.c (_initialize_record): Declare.
  8874. * remote.c (demand_private_info, remote_get_tib_address)
  8875. (remote_supports_cond_tracepoints)
  8876. (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
  8877. Make static.
  8878. * skip.c (_initialize_step_skip): Declare.
  8879. * symtab.c (skip_prologue_using_lineinfo): Make static.
  8880. * tracepoint.c (delete_trace_state_variable)
  8881. (trace_variable_command, delete_trace_variable_command)
  8882. (get_uploaded_tsv, find_matching_tracepoint_location)
  8883. (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
  8884. Make static.
  8885. * value.c (pack_unsigned_long): Make static.
  8886. * varobj.c (varobj_ensure_python_env): Make static.
  8887. * windows-tdep.c (_initialize_windows_tdep): Declare.
  8888. * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
  8889. 2012-03-01 Pedro Alves <palves@redhat.com>
  8890. * linux-tdep.c (linux_has_shared_address_space): Make static. Add
  8891. gdbarch parameter.
  8892. (linux_init_abi): Install it as has_shared_address_space gdbarch
  8893. callback.
  8894. 2012-03-01 Pedro Alves <palves@redhat.com>
  8895. * observer.c (observer_test_first_notification_function)
  8896. (observer_test_second_notification_function)
  8897. (observer_test_third_notification_function): Add declarations.
  8898. 2012-03-01 Pedro Alves <palves@redhat.com>
  8899. * common/signals.c (default_target_signal_to_host)
  8900. (default_target_signal_from_host): Move ...
  8901. * arch-utils.c: ... here.
  8902. * arch-utils.h (default_target_signal_to_host)
  8903. (default_target_signal_from_host): Declare.
  8904. * common/signals.c (target_signal_from_command): Move ...
  8905. * infrun.c: ... here.
  8906. * inferior.h (target_signal_from_command): Declare.
  8907. * target.h (target_signal_from_command)
  8908. (default_target_signal_from_host, default_target_signal_to_host):
  8909. Delete declarations.
  8910. * common/signals.c (_initialize_signals): Delete.
  8911. 2012-03-01 Pedro Alves <palves@redhat.com>
  8912. * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
  8913. both __cplusplus and !__cplusplus.
  8914. 2012-03-01 Pedro Alves <palves@redhat.com>
  8915. * psymtab.c (find_and_open_source): Delete declaration.
  8916. * source.c (find_and_open_source): Move comment ...
  8917. * source.h (find_and_open_source): ... to this new declaration.
  8918. 2012-03-01 Pedro Alves <palves@redhat.com>
  8919. * inline-frame.c: Include inline-frame.h.
  8920. 2012-03-01 Pedro Alves <palves@redhat.com>
  8921. * tui/tui-data.c (set_gen_win_origin): Delete.
  8922. * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
  8923. * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
  8924. 2012-03-01 Pedro Alves <palves@redhat.com>
  8925. * remote.c (encode_actions): Delete declaration.
  8926. * tracepoint.c (encode_actions): Make extern.
  8927. * tracepoint.h (encode_actions): Declare.
  8928. 2012-03-01 Pedro Alves <palves@redhat.com>
  8929. * python/py-breakpoint.c: Include python.h.
  8930. * python/py-continueevent.c (create_continue_event_object): Make
  8931. static.
  8932. * python/py-lazy-string.c (stpy_get_type): Make static.
  8933. * python/py-newobjfileevent.c (create_new_objfile_event_object):
  8934. Make static.
  8935. * python/py-utils.c (unicode_to_target_python_string): Make
  8936. static.
  8937. * python/py-value.c: Include python.h.
  8938. 2012-03-01 Pedro Alves <palves@redhat.com>
  8939. * inferior.c (delete_threads_of_inferior): Delete.
  8940. 2012-03-01 Pedro Alves <palves@redhat.com>
  8941. Import fallback definitions from glibc.
  8942. * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
  8943. ps_prochandle): Forward declare.
  8944. (ps_err_e): Use glibc's comments.
  8945. [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
  8946. (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
  8947. (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
  8948. (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
  8949. (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
  8950. (struct ps_prochandle): Adjust comment.
  8951. 2012-03-01 Pedro Alves <palves@redhat.com>
  8952. * ada-lang.c (ada_modulus_from_name): Delete.
  8953. * ada-lex.l (lexer_init): Make static.
  8954. 2012-03-01 Pedro Alves <palves@redhat.com>
  8955. PR gdb/13767
  8956. * frame.c (read_frame_register_unsigned): New.
  8957. * frame.h (read_frame_register_unsigned): Declare.
  8958. * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
  8959. Handle it.
  8960. (print_i387_control_word): New parameter `control_p'. Handle it.
  8961. (i387_print_float_info): Handle unavailable float registers.
  8962. 2012-03-01 Keith Seitz <keiths@redhat.com>
  8963. * linespec.c (decode_line_2): Sort the list of methods
  8964. alphabetically before presenting the user with a selection
  8965. menu.
  8966. 2012-03-01 Doug Evans <dje@google.com>
  8967. * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
  8968. has_namespace_info.
  8969. (dwarf2_read_abbrevs): Remove corresponding initialization.
  8970. 2012-03-01 Scott J. Goldman <scottjg@vmware.com>
  8971. * NEWS: Mention new python command class gdb.COMMAND_USER.
  8972. * cli/cli-cmds.c (show_user): Print error when used on a python
  8973. command.
  8974. (init_cli_cmds): Update documentation strings for "show user" and
  8975. "set/show max-user-call-depth" to clarify that it does not apply to
  8976. python commands.
  8977. * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
  8978. error check.
  8979. (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
  8980. gdb python api.
  8981. * top.c (execute_command): Only execute a user-defined command as a
  8982. legacy macro if c->user_commands is set.
  8983. 2012-03-01 Tom Tromey <tromey@redhat.com>
  8984. * valprint.h (struct generic_val_print_decorations): New.
  8985. (generic_val_print): Declare.
  8986. * valprint.c (generic_val_print): New function.
  8987. * p-valprint.c (p_decorations): New global.
  8988. (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
  8989. TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
  8990. TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
  8991. TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
  8992. * m2-valprint.c (m2_decorations): New global.
  8993. (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
  8994. TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
  8995. TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
  8996. TYPE_CODE_ERROR>: Call generic_val_print.
  8997. * f-valprint.c (f_decorations): New global.
  8998. (f_val_print): Use print_function_pointer_address.
  8999. <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
  9000. TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
  9001. TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
  9002. generic_val_print.
  9003. * c-valprint.c (c_decorations): New global.
  9004. (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
  9005. TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
  9006. TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
  9007. TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
  9008. TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
  9009. * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
  9010. case.
  9011. 2012-03-01 Tom Tromey <tromey@redhat.com>
  9012. * valprint.c (val_print): Update.
  9013. * p-valprint (pascal_val_print): Return void.
  9014. * p-lang.h (pascal_val_print): Return void.
  9015. * m2-valprint.c (m2_val_print): Return void.
  9016. * m2-lang.h (m2_val_print): Return void.
  9017. * language.h (struct language_defn) <la_val_print>: Return void.
  9018. * language.c (unk_lang_val_print): Return void.
  9019. * jv-valprint.c (java_val_print): Return void.
  9020. * jv-lang.h (java_val_print): Return void.
  9021. * f-valprint.c (f_val_print): Return void.
  9022. * f-lang.h (f_val_print): Return void.
  9023. * d-valprint.c (d_val_print): Return void.
  9024. (dynamic_array_type): Update.
  9025. * d-lang.h (d_val_print): Return void.
  9026. * c-valprint.c (c_val_print): Return void.
  9027. * c-lang.h (c_val_print): Return void.
  9028. * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
  9029. void.
  9030. * ada-lang.h (ada_val_print): Return void.
  9031. 2012-03-01 Tom Tromey <tromey@redhat.com>
  9032. * value.h (val_print): Return void.
  9033. * valprint.c (val_print): Return void.
  9034. 2012-03-01 Tom Tromey <tromey@redhat.com>
  9035. * value.h (common_val_print): Return void.
  9036. * valprint.c (common_val_print): Return void.
  9037. 2012-03-01 Tom Tromey <tromey@redhat.com>
  9038. * value.h (value_print): Return void.
  9039. * valprint.c (value_print): Return void.
  9040. * p-valprint.c (pascal_value_print): Return void.
  9041. * p-lang.h (pascal_value_print): Return void.
  9042. * language.h (struct language_defn) <la_value_print>: Return
  9043. void.
  9044. * language.c (unk_lang_value_print): Return void.
  9045. * jv-valprint.c (java_value_print): Return void.
  9046. * jv-lang.h (java_value_print): Return void.
  9047. * f-valprint.c (c_value_print): Don't declare.
  9048. Include c-lang.h.
  9049. * c-valprint.c (c_value_print): Return void.
  9050. * c-lang.h (c_value_print): Return void.
  9051. * ada-valprint.c (ada_value_print): Return void.
  9052. * ada-lang.h (ada_value_print): Return void.
  9053. 2012-03-01 Tom Tromey <tromey@redhat.com>
  9054. * value.c (value_primitive_field): Handle virtual base classes.
  9055. 2012-03-01 Tom Tromey <tromey@redhat.com>
  9056. * gdbtypes.h (struct vbase): Remove.
  9057. 2012-03-01 Tom Tromey <tromey@redhat.com>
  9058. * c-valprint.c (print_function_pointer_address): Move...
  9059. * valprint.c: ... here. Make non-static.
  9060. * m2-valprint.c (print_function_pointer_address): Remove.
  9061. * valprint.h (print_function_pointer_address): Declare.
  9062. 2012-03-01 Joel Brobecker <brobecker@adacore.com>
  9063. * NEWS: Document the fact that one can provide a condition when
  9064. creating an Ada exception catchpoint.
  9065. 2012-03-01 Tom Tromey <tromey@redhat.com>
  9066. * valprint.c (val_print_type_code_flags): Fix placement of
  9067. trailing brace.
  9068. 2012-03-01 Joel Brobecker <brobecker@adacore.com>
  9069. * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
  9070. (update_files): Do not set MULTILINE_COMMENT_PREFIXES
  9071. environment variable before calling update-copyright.
  9072. 2012-03-01 Joel Brobecker <brobecker@adacore.com>
  9073. * gnulib/extra/update-copyright: Update to the latest from
  9074. gnulib's git repository.
  9075. * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
  9076. variable to 2 instead of 1.
  9077. 2012-02-29 Joel Brobecker <brobecker@adacore.com>
  9078. * varobj.c (c_value_of_variable): Remove dead code.
  9079. 2012-02-29 Joel Brobecker <brobecker@adacore.com>
  9080. * ada-lex.p (processId): Do not modify already encoded IDs.
  9081. Update function documentation.
  9082. 2012-02-29 Joel Brobecker <brobecker@adacore.com>
  9083. * ada-lang.h (ada_find_renaming_symbol): Replace parameter
  9084. "name" with "struct symbol *name_sym".
  9085. * ada-exp.y (write_var_or_type): Update call to
  9086. ada_find_renaming_symbol.
  9087. "name" with "struct symbol *name_sym". Adjust Implementation
  9088. accordingly. Adjust the function documentation.
  9089. 2012-02-29 Joel Brobecker <brobecker@adacore.com>
  9090. * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
  9091. * ada-lang.c (ada_find_any_type): Add advance declaration.
  9092. Make static. Replace ada_find_any_symbol by
  9093. ada_find_any_type_symbol.
  9094. (ada_find_any_type_symbol): Renames ada_find_any_symbol.
  9095. Improve function description. Make static.
  9096. (ada_find_renaming_symbol, find_old_style_renaming_symbol):
  9097. Replace ada_find_any_symbol by ada_find_any_type_symbol.
  9098. 2012-02-29 Joel Brobecker <brobecker@adacore.com>
  9099. * ada-lang.c (struct tag_args): Delete.
  9100. (ada_get_tsd_type): Function body moved up in source file.
  9101. (ada_tag_name_1, ada_tag_name_2): Delete.
  9102. (ada_get_tsd_from_tag): New function.
  9103. (ada_tag_name_from_tsd): New function.
  9104. (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
  9105. to determine the tag name.
  9106. 2012-02-29 Joel Brobecker <brobecker@adacore.com>
  9107. * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
  9108. declaration.
  9109. * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
  9110. function.
  9111. 2012-02-29 Joel Brobecker <brobecker@adacore.com>
  9112. * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
  9113. 2012-02-29 Joel Brobecker <brobecker@adacore.com>
  9114. * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
  9115. full searches.
  9116. 2012-02-29 Joel Brobecker <brobecker@adacore.com>
  9117. * ada-lang.c (constrained_packed_array_type): If there is a
  9118. parallel XA type, use it to determine the array index type.
  9119. 2012-02-29 Joel Brobecker <brobecker@adacore.com>
  9120. * ada-valprint.c (ada_val_print_1): If our value is a reference
  9121. to an array descriptor, dereference it before converting it
  9122. to a simple array.
  9123. 2012-02-29 Joel Brobecker <brobecker@adacore.com>
  9124. * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
  9125. creating fixed value.
  9126. (ada_value_ind, ada_coerce_ref, assign_component)
  9127. (ada_evaluate_subexp): Remove call to unwrap_value before
  9128. call to ada_to_fixed_value.
  9129. 2012-02-29 Joel Brobecker <brobecker@adacore.com>
  9130. * ada-lang.c (to_fixed_array_type): Set result's type name.
  9131. 2012-02-29 Joel Brobecker <brobecker@adacore.com>
  9132. * ada-lang.c (catch_ada_exception_command_split): Add new
  9133. argument cond_string. Add support for condition at end of
  9134. "catch exception" commands.
  9135. (ada_decode_exception_location): Add new argument cond_string.
  9136. Update call to catch_ada_exception_command_split.
  9137. (create_ada_exception_catchpoint): Add new argument cond_string.
  9138. Set the breakpoint condition if needed.
  9139. (catch_ada_exception_command): Update call to
  9140. ada_decode_exception_location.
  9141. (ada_decode_assert_location): Add function documentation.
  9142. Add support for condition at end of "catch assert" command.
  9143. (catch_assert_command): Update calls to ada_decode_assert_location
  9144. and create_ada_exception_catchpoint.
  9145. 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
  9146. Fix disp-step-syscall.exp: fork: single step over fork.
  9147. * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
  9148. (i386_linux_get_syscall_number_from_regcache): ... here, new function
  9149. comment, change parameters gdbarch and ptid to regcache. Remove
  9150. parameter regcache, initialize gdbarch from regcache here.
  9151. (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
  9152. New functions.
  9153. (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
  9154. instead.
  9155. * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
  9156. 'syscall'. Make the 'int' check more strict.
  9157. 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
  9158. Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
  9159. * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
  9160. (i386_linux_intx80_sysenter_syscall_record): ... here.
  9161. (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
  9162. Use the renamed function name.
  9163. 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
  9164. * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
  9165. * breakpoint.c (until_break_command): Likewise.
  9166. * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
  9167. * infcall.c (call_function_by_hand): Likewise.
  9168. * infcmd.c (finish_forward): Likewise.
  9169. * infrun.c (insert_exception_resume_breakpoint): Likewise.
  9170. 2012-02-28 Tristan Gingold <gingold@adacore.com>
  9171. * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
  9172. avoid variable assignments inside condition.
  9173. 2012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
  9174. Fix static analysis issue found by cppcheck.
  9175. * microblaze-tdep.c (microblaze_extract_return_value): Fix
  9176. uninitialized BUF for size 2.
  9177. 2012-02-27 Chris Dearman <chris@mips.com>
  9178. Nathan Froyd <froydnj@codesourcery.com>
  9179. Maciej W. Rozycki <macro@codesourcery.com>
  9180. * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
  9181. (mips16_instruction_has_delay_slot): Likewise.
  9182. (mips_segment_boundary): Likewise.
  9183. (mips_adjust_breakpoint_address): Likewise.
  9184. (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
  9185. 2012-02-27 Maciej W. Rozycki <macro@mips.com>
  9186. Maciej W. Rozycki <macro@codesourcery.com>
  9187. * infrun.c (handle_inferior_event): Don't proceed through
  9188. shared library trampolines if stepping at the machine
  9189. instruction level.
  9190. 2012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
  9191. * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
  9192. too.
  9193. 2012-02-27 Thomas Schwinge <thomas@codesourcery.com>
  9194. * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
  9195. (sh_stub_unwind_sniffer): New functions.
  9196. (sh_stub_unwind): New variable.
  9197. (sh_gdbarch_init): Wire everything.
  9198. 2012-02-27 Pedro Alves <palves@redhat.com>
  9199. * linux-nat.c (pid_is_stopped): Delete, moved to common/.
  9200. (linux_nat_post_attach_wait): Adjust to use
  9201. linux_proc_pid_is_stopped.
  9202. * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
  9203. * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
  9204. based on pid_is_stopped from both linux-nat.c and
  9205. gdbserver/linux-low.c, and renamed.
  9206. 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
  9207. * remote.c (remote_watchpoint_addr_within_range): New function.
  9208. (init_remote_ops): Use it.
  9209. 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
  9210. * target.h (target_watchpoint_addr_within_range): Document macro.
  9211. 2012-02-24 Pedro Alves <palves@redhat.com>
  9212. * stack.c (set_last_displayed_sal): Issue internal_error instead
  9213. of warning, and issue it after clearing the last displayed sal.
  9214. 2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
  9215. Pedro Alves <palves@redhat.com>
  9216. * breakpoint.c (until_break_command): Install breakpoints after
  9217. all frame manipulations.
  9218. 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
  9219. * remote.c (remote_supports_cond_breakpoints): New forward
  9220. declaration.
  9221. (remote_add_target_side_condition): New function.
  9222. (remote_insert_breakpoint): Add target-side breakpoint
  9223. conditional if supported.
  9224. (remote_insert_hw_breakpoint): Likewise.
  9225. (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
  9226. hook.
  9227. * target.c (update_current_target): Inherit
  9228. to_supports_evaluation_of_breakpoint_conditions.
  9229. Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
  9230. * target.h (struct target_ops)
  9231. <to_supports_evaluation_of_breakpoint_conditions>: New field.
  9232. (target_supports_evaluation_of_breakpoint_conditions): New #define.
  9233. * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
  9234. (condition_evaluation_both, condition_evaluation_auto,
  9235. condition_evaluation_host, condition_evaluation_target,
  9236. condition_evaluation_enums, condition_evaluation_mode_1,
  9237. condition_evaluation_mode): New static globals.
  9238. (translate_condition_evaluation_mode): New function.
  9239. (breakpoint_condition_evaluation_mode): New function.
  9240. (gdb_evaluates_breakpoint_condition_p): New function.
  9241. (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
  9242. (mark_breakpoint_modified): New function.
  9243. (mark_breakpoint_location_modified): New function.
  9244. (set_condition_evaluation_mode): New function.
  9245. (show_condition_evaluation_mode): New function.
  9246. (bp_location_compare_addrs): New function.
  9247. (get_first_location_gte_addr): New helper function.
  9248. (set_breakpoint_condition): Free condition bytecode if locations
  9249. has become unconditional. Call mark_breakpoint_modified (...).
  9250. (condition_command): Call update_global_location_list (1) for
  9251. breakpoints.
  9252. (breakpoint_xfer_memory): Use is_breakpoint (...).
  9253. (is_breakpoint): New function.
  9254. (parse_cond_to_aexpr): New function.
  9255. (build_target_condition_list): New function.
  9256. (insert_bp_location): Handle target-side conditional
  9257. breakpoints and call build_target_condition_list (...).
  9258. (update_inserted_breakpoint_locations): New function.
  9259. (insert_breakpoint_locations): Handle target-side conditional
  9260. breakpoints.
  9261. (bpstat_check_breakpoint_conditions): Add comment.
  9262. (bp_condition_evaluator): New function.
  9263. (bp_location_condition_evaluator): New function.
  9264. (print_breakpoint_location): Print information on where the condition
  9265. will be evaluated.
  9266. (print_one_breakpoint_location): Likewise.
  9267. (init_bp_location): Call mark_breakpoint_location_modified (...) for
  9268. breakpoint location.
  9269. (force_breakpoint_reinsertion): New functions.
  9270. (update_global_location_list): Handle target-side breakpoint
  9271. conditions.
  9272. Reinsert locations that are already inserted if conditions have
  9273. changed.
  9274. (bp_location_dtor): Free agent expression bytecode.
  9275. (disable_breakpoint): Call mark_breakpoint_modified (...).
  9276. Call update_global_location_list (...) with parameter 1 for breakpoints.
  9277. (disable_command): Call mark_breakpoint_location_modified (...).
  9278. Call update_global_location_list (...) with parameter 1 for breakpoints.
  9279. (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
  9280. (enable_command): mark_breakpoint_location_modified (...).
  9281. (_initialize_breakpoint): Update documentation and add
  9282. condition-evaluation breakpoint subcommand.
  9283. * breakpoint.h: Include ax.h.
  9284. (condition_list): New data structure.
  9285. (condition_status): New enum.
  9286. (bp_target_info) <cond_list>: New field.
  9287. (bp_location) <condition_changed, cond_bytecode>: New fields.
  9288. (is_breakpoint): New prototype.
  9289. 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
  9290. * remote.c (remote_state) <cond_breakpoints>: New field.
  9291. (PACKET_ConditionalBreakpoints): New enum.
  9292. (remote_cond_breakpoint_feature): New function.
  9293. (remote_protocol_features): Add new ConditionalBreakpoints entry.
  9294. (remote_supports_cond_breakpoints): New function.
  9295. (_initialize_remote): Add new packet configuration for
  9296. target-side conditional breakpoints.
  9297. 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
  9298. * NEWS: Mention target-side conditional breakpoint support,
  9299. new condition-evaluation breakpoint subcommand and remote
  9300. packet extensions.
  9301. 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
  9302. * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
  9303. number.
  9304. 2012-02-24 Thomas Schwinge <thomas@codesourcery.com>
  9305. * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
  9306. (after_prologue): Remove.
  9307. 2012-02-23 Tom Tromey <tromey@redhat.com>
  9308. * jv-valprint.c (java_val_print): Remove dead code.
  9309. 2012-02-23 Tristan Gingold <gingold@adacore.com>
  9310. * ada-tasks.c (struct ada_tasks_inferior_data): Add
  9311. known_tasks_element and known_tasks_length fields.
  9312. (read_known_tasks_array): Change argument type. Use pointer type
  9313. and number of elements from DATA. Adjust.
  9314. (read_known_tasks_list): Likewise.
  9315. (get_known_tasks_addr): Remove.
  9316. (ada_set_current_inferior_known_tasks_addr): Renamed to ...
  9317. (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
  9318. type and array length. Merge former get_known_tasks_addr code.
  9319. 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
  9320. PR backtrace/13716
  9321. * infcmd.c (finish_forward): New variable frame_id, initialize it, use
  9322. it after set_momentary_breakpoint.
  9323. 2012-02-22 Sterling Augustine <saugustine@google.com>
  9324. PR 13689:
  9325. * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
  9326. 2012-02-22 Gary Benson <gbenson@redhat.com>
  9327. * dwarf2read.c (dwarf2_read_index): Correct misspelling.
  9328. (find_slot_in_mapped_hash): Likewise.
  9329. 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
  9330. PR build/13638
  9331. * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
  9332. (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
  9333. * configure: Regenerate.
  9334. 2012-02-21 Tristan Gingold <gingold@adacore.com>
  9335. Pedro Alves <palves@redhat.com>
  9336. * ia64-tdep.c: Do not include libunwind-ia64.h.
  9337. * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
  9338. Include libunwind-ia64.h instead of libunwind.h.
  9339. * configure.ac (--with-libunwind, $enable_libunwind): Don't check
  9340. for libunwind.h existence.
  9341. * configure, config.in: Regenerate.
  9342. 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
  9343. * c-valprint.c (c_value_print): Use value_rtti_indirect_type
  9344. instead of value_rtti_target_type.
  9345. * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
  9346. instead of value_rtti_target_type.
  9347. * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
  9348. value_rtti_target_type.
  9349. * valops.c (value_ind): Extract function readjust_indirect_value_type.
  9350. (value_rtti_target_type): Rename to ...
  9351. (value_rtti_indirect_type): ... here and make it indirect. Update
  9352. function comment.
  9353. * value.c (readjust_indirect_value_type): New function.
  9354. (coerce_ref): Support for enclosing type setting for references
  9355. with readjust_indirect_value_type.
  9356. * value.h (readjust_value_type): New declaration.
  9357. (value_rtti_target_type): Rename to ...
  9358. (value_rtti_indirect_type): ... here.
  9359. 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
  9360. * MAINTAINERS (Write After Approval): Add myself to the list.
  9361. 2012-02-20 Doug Evans <dje@google.com>
  9362. * objfiles.c (add_to_objfile_sections): Remove outdated comments.
  9363. Rename objfile_p_char parameter to objfilep.
  9364. (build_objfile_section_table): Result is now void. All callers
  9365. updated.
  9366. * objfiles.h (struct objfile): Tweak comments, whitespace.
  9367. (build_objfile_section_table): Update.
  9368. * elfread.c (elf_symfile_segments): Fix warning text.
  9369. 2012-02-20 Tom Tromey <tromey@redhat.com>
  9370. PR gdb/13498:
  9371. * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
  9372. particular set of file names once.
  9373. (dw2_map_symbol_filenames): Likewise.
  9374. 2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
  9375. Code cleanup.
  9376. * main.c (write_files): Remove the declaration.
  9377. (external_editor_command): Move the declaration ...
  9378. [GDBTK] (external_editor_command): ... here. Fix the comment.
  9379. 2012-02-20 Tom Tromey <tromey@redhat.com>
  9380. * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
  9381. extraneous block.
  9382. 2012-02-20 Tristan Gingold <gingold@adacore.com>
  9383. * darwin-nat.h (enum darwin_msg_state): Add comments.
  9384. 2012-02-20 Tristan Gingold <gingold@adacore.com>
  9385. * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
  9386. value.
  9387. 2012-20-18 Joel Brobecker <brobecker@adacore.com>
  9388. * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
  9389. between function description and implementation.
  9390. 2012-02-17 Tom Tromey <tromey@redhat.com>
  9391. PR python/12070:
  9392. * python/py-event.c (event_object_getset): New global.
  9393. (event_object_type): Reference it.
  9394. * python/py-type.c (field_object_getset): New global.
  9395. (field_object_type): Reference it.
  9396. * python/python-internal.h (gdb_py_generic_dict): Declare.
  9397. * python/py-utils.c (gdb_py_generic_dict): New function.
  9398. 2012-02-17 Tristan Gingold <gingold@adacore.com>
  9399. * solib-darwin.c (darwin_current_sos): Check magic and filetype
  9400. 2012-02-17 Thomas Schwinge <thomas@codesourcery.com>
  9401. * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
  9402. TYPE_CALLING_CONVENTION annotation.
  9403. 2012-02-16 Kevin Buettner <kevinb@redhat.com>
  9404. * MAINTAINERS: Add rx to target ISA section.
  9405. * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
  9406. (ALLDEPFILES): Add rx-tdep.c.
  9407. 2012-02-16 Tom Tromey <tromey@redhat.com>
  9408. * symfile.c (symbol_file_add_main_1): Use inferior's
  9409. symfile_flags.
  9410. * solib.c (solib_read_symbols): Use inferior's symfile_flags.
  9411. * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
  9412. inferior.
  9413. * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
  9414. inferior.
  9415. (follow_exec): Use inferior's symfile_flags.
  9416. * inferior.h (struct inferior) <symfile_flags>: New field.
  9417. 2012-02-16 Mike Frysinger <vapier@gentoo.org>
  9418. PR gdb/9734:
  9419. * remote-sim.c (gdbsim_create_inferior): Call error() when
  9420. sim_create_inferior() fails.
  9421. 2012-02-16 Josh Matthews <josh@joshmatthews.net>
  9422. * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
  9423. 2012-02-16 Tom Tromey <tromey@redhat.com>
  9424. PR c++/13653:
  9425. * thread.c (struct current_thread_cleanup) <was_removable>: New
  9426. field.
  9427. (restore_current_thread_cleanup_dtor): Restore 'removable' field.
  9428. (make_cleanup_restore_current_thread): Initialize new field.
  9429. 2012-02-15 Kevin Buettner <kevinb@redhat.com>
  9430. * MAINTAINERS: Add rl78 to target ISA section.
  9431. * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
  9432. (ALLDEPFILES): Add rl78-tdep.c.
  9433. * NEWS: Mention rl78 as a new target.
  9434. 2012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
  9435. * frame.c (find_frame_sal): Initialize sal->pspace field from frame
  9436. data.
  9437. * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
  9438. 2012-02-15 Tom Tromey <tromey@redhat.com>
  9439. PR gdb/12659:
  9440. * infcmd.c (registers_info): Print just the current register's
  9441. name.
  9442. 2012-02-15 Tom Tromey <tromey@redhat.com>
  9443. * python/py-symbol.c (sympy_value): Use _().
  9444. 2012-02-15 Pedro Alves <palves@redhat.com>
  9445. * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
  9446. output to be like native targets'.
  9447. (remote_pid_to_str): Special case the null ptid.
  9448. 2012-02-14 Stan Shebs <stan@codesourcery.com>
  9449. * NEWS: Mention enable count command.
  9450. * breakpoint.h (struct breakpoint): New field enable_count.
  9451. * breakpoint.c (enable_breakpoint_disp): Add count argument.
  9452. (enable_breakpoint): Add arg to call.
  9453. (struct disp_data): New struct.
  9454. (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
  9455. (do_map_enable_once_breakpoint): Create a struct and pass it.
  9456. (do_map_enable_delete_breakpoint): Ditto.
  9457. (do_map_enable_count_breakpoint): New function.
  9458. (enable_count_command): New function.
  9459. (bpstat_stop_status): Decrement enable_count.
  9460. (print_one_breakpoint_location): Report enable count.
  9461. (_initialize_breakpoint): Add enable count command.
  9462. 2012-02-14 Kevin Buettner <kevinb@redhat.com>
  9463. * rl78-tdep.c (reggroups.h): Include.
  9464. (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
  9465. (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
  9466. (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
  9467. (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
  9468. (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
  9469. (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
  9470. (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
  9471. (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
  9472. (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
  9473. (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
  9474. (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
  9475. (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
  9476. (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
  9477. (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
  9478. (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
  9479. (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
  9480. beginning of register list.
  9481. (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
  9482. (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
  9483. (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
  9484. (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
  9485. (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
  9486. (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
  9487. (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
  9488. (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
  9489. (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
  9490. (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
  9491. (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
  9492. the pseudo registers. Rearrange other pseudo registers too so
  9493. that the bank registers appear at the end.
  9494. (rl78_register_type): Account for the fact that the byte sized
  9495. bank registers are now pseudo-registers.
  9496. (rl78_register_name): Rearrange the register name array. Make
  9497. initial set of raw banked registers inaccessible.
  9498. (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
  9499. (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
  9500. case for copying bytes back and forth between raw and pseudo
  9501. versions of the banked registers. Update other cases to reflect
  9502. the changed names.
  9503. (rl78_return_value): Update to account for changed names of
  9504. raw registers.
  9505. (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
  9506. rl78_register_sim_regno().
  9507. 2012-02-14 Kevin Buettner <kevinb@redhat.com>
  9508. * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
  9509. the name parameter being passed to find_pc_partial_function().
  9510. 2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
  9511. * MAINTAINERS: Step down from being ia64 target maintainer.
  9512. 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
  9513. * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
  9514. compilation warning.
  9515. 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
  9516. Fix crash on loaded shlibs without loaded exec_bfd.
  9517. * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
  9518. (set_section_command): Replace exec_bfd by p->bfd.
  9519. 2012-02-10 Tom Tromey <tromey@redhat.com>
  9520. * linespec.c (decode_line_internal): Skip symtabs_from_filename
  9521. when we have a C++ qualified name.
  9522. 2012-02-10 Pedro Alves <palves@redhat.com>
  9523. * inferior.c (inferior_pid_to_str): New.
  9524. (print_inferior, inferior_command): Use it.
  9525. 2012-02-10 Pedro Alves <palves@redhat.com>
  9526. * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
  9527. the test CFLAGS.
  9528. * configure: Regenerate.
  9529. 2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
  9530. * linespec.c (decode_line_internal): Fix comment correctness.
  9531. 2012-02-09 Valery Khromov <valery.khromov@gmail.com>
  9532. PR gdb/12953
  9533. * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
  9534. * amd64bsd-nat.c: Add support for debug registers (adapted from
  9535. i386bsd-nat.c).
  9536. [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
  9537. (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
  9538. (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
  9539. (amd64bsd_dr_get_control): New functions.
  9540. * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
  9541. * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
  9542. [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
  9543. watchpoints initialization.
  9544. * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
  9545. 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
  9546. * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
  9547. flds_bnds.fields.
  9548. (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
  9549. 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
  9550. * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
  9551. 2012-02-08 Joel Brobecker <brobecker@adacore.com>
  9552. * language.h (symbol_name_cmp_ftype): Renames
  9553. symbol_name_match_p_ftype.
  9554. (struct language_defn)[la_get_symbol_name_cmp]: Renames
  9555. la_get_symbol_name_match_p.
  9556. * ada-lang.c (ada_get_symbol_name_cmp): Renames
  9557. ada_get_symbol_name_match_p. Update comment.
  9558. (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
  9559. * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
  9560. Renames symbol_name_match_p. Update field type.
  9561. (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
  9562. * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
  9563. opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
  9564. "la_get_symbol_name_cmp" in comments.
  9565. * language.c: Likewise.
  9566. 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
  9567. * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
  9568. %eflags offset.
  9569. * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
  9570. (amd64_sol2_gregset32_reg_offs): Likewise.
  9571. 2012-02-08 Joel Brobecker <brobecker@adacore.com>
  9572. * solib-darwin.c (darwin_bfd_open): Make sure that the filename
  9573. of the returned BFD is allocated by GDB.
  9574. 2012-02-07 Tom Tromey <tromey@redhat.com>
  9575. PR python/12027:
  9576. * python/python-internal.h (frame_object_type): Declare.
  9577. * python/py-symbol.c (sympy_needs_frame): New function.
  9578. (sympy_value): New function.
  9579. (symbol_object_getset): Add "needs_frame".
  9580. (symbol_object_methods): Add "value".
  9581. * python/py-frame.c (frame_object_type): No longer static.
  9582. 2012-02-07 Tom Tromey <tromey@redhat.com>
  9583. PR python/13599:
  9584. * python/py-symbol.c (sympy_line): New function.
  9585. (symbol_object_getset): Add "line".
  9586. 2012-02-07 Tom Tromey <tromey@redhat.com>
  9587. * charset.c (find_charset_names): Check 'in' against NULL.
  9588. 2012-02-06 Doug Evans <dje@google.com>
  9589. * gdbtypes.h (struct main_type): Change type of name,tag_name,
  9590. and fields.name members from char * to const char *. All uses updated.
  9591. (struct cplus_struct_type): Change type of fn_fieldlists.name member
  9592. from char * to const char *. All uses updated.
  9593. (type_name_no_tag): Update.
  9594. (lookup_unsigned_typename, lookup_signed_typename): Update.
  9595. * gdbtypes.c (type_name_no_tag): Change result type
  9596. from char * to const char *. All callers updated.
  9597. (lookup_unsigned_typename, lookup_signed_typename): Change type of
  9598. name parameter from char * to const char *.
  9599. * symtab.h (struct cplus_specific): Change type of demangled_name
  9600. member from char * to const char *. All uses updated.
  9601. (struct general_symbol_info): Change type of name and
  9602. mangled_lang.demangled_name members from char * to const char *.
  9603. All uses updated.
  9604. (symbol_get_demangled_name, symbol_natural_name): Update.
  9605. (symbol_demangled_name, symbol_search_name): Update.
  9606. * symtab.c (symbol_get_demangled_name): Change result type
  9607. from char * to const char *. All callers updated.
  9608. (symbol_natural_name, symbol_demangled_name): Ditto.
  9609. (symbol_search_name): Ditto.
  9610. (completion_list_add_name): Change type of symname,sym_text,
  9611. text,word parameters from char * to const char *.
  9612. (completion_list_objc_symbol): Change type of sym_text,
  9613. text,word parameters from char * to const char *.
  9614. * ada-lang.c (find_struct_field): Change type of name parameter
  9615. from char * to const char *.
  9616. (encoded_ordered_before): Similarly for N0,N1 parameters.
  9617. (old_renaming_is_invisible): Similarly for function_name parameter.
  9618. (ada_type_name): Change result type from char * to const char *.
  9619. All callers updated.
  9620. * ada-lang.h (ada_type_name): Update.
  9621. * buildsym.c (hashname): Change type of name parameter
  9622. from char * to const char *.
  9623. * buildsym.h (hashname): Update.
  9624. * dbxread.c (end_psymtab): Change type of include_list parameter
  9625. from char ** to const char **.
  9626. * dwarf2read.c (determine_prefix): Change result type
  9627. from char * to const char *. All callers updated.
  9628. * f-lang.c (find_common_for_function): Change type of name, funcname
  9629. parameters from char * to const char *.
  9630. * f-lang.c (find_common_for_function): Update.
  9631. * f-valprint.c (list_all_visible_commons): Change type of funcname
  9632. parameters from char * to const char *.
  9633. * gdbarch.sh (static_transform_name): Change type of name parameter
  9634. and result from char * to const char *.
  9635. * gdbarch.c: Regenerate.
  9636. * gdbarch.h: Regenerate.
  9637. * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
  9638. of name parameter from char * to const char *.
  9639. * jv-lang.c (java_primitive_type_from_name): Ditto.
  9640. (java_demangled_signature_length): Similarly for signature parameter.
  9641. (java_demangled_signature_copy): Ditto.
  9642. (java_demangle_type_signature): Ditto.
  9643. * jv-lang.h (java_primitive_type_from_name): Update.
  9644. (java_demangle_type_signature): Update.
  9645. * objc-lang.c (specialcmp): Change type of a,b parameters
  9646. from char * to const char *.
  9647. * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
  9648. from char * to const char *. All callers updated.
  9649. * p-lang.h (is_pascal_string_type): Update.
  9650. * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
  9651. of name parameter from char * to const char *.
  9652. * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
  9653. * utils.c (fprintf_symbol_filtered): Ditto.
  9654. * defs.h (fprintf_symbol_filtered): Update.
  9655. * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
  9656. * stabsread.h (end_psymtab): Update.
  9657. * stack.c (find_frame_funname): Change type of funname parameter
  9658. from char ** to const char **.
  9659. * stack.h (find_frame_funname): Update.
  9660. * typeprint.c (type_print): Change type of varstring parameter
  9661. from char * to const char *.
  9662. * value.h (type_print): Update.
  9663. * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
  9664. from char * to const char *. All callers updated.
  9665. (xcoff_end_psymtab): Change type of include_list parameter
  9666. from char ** to const char **. All callers updated.
  9667. (swap_sym): Similarly for name parameter. All callers updated.
  9668. * coffread.c (patch_type): Add (char*) cast to xfree parameter.
  9669. Use xstrdup.
  9670. (process_coff_symbol): Use xstrdup.
  9671. * stabsread.c (stabs_method_name_from_physname): Renamed from
  9672. update_method_name_from_physname. Change result type from void
  9673. to char *. All callers updated.
  9674. (read_member_functions): In has_destructor case, store name in objfile
  9675. obstack instead of malloc space. In !has_stub case, fix mem leak.
  9676. 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
  9677. * configure: Rebuild.
  9678. * configure.ac: Put -L../bfd and -L../libiberty at the front of
  9679. LDFLAGS.
  9680. 2012-02-03 Kevin Buettner <kevinb@redhat.com>
  9681. * configure.tgt (rl78-*-elf): New target.
  9682. * rl78-tdep.c: New file.
  9683. 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
  9684. * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
  9685. and continue the loop. Add QUIT statement.
  9686. 2012-02-03 Tom Tromey <tromey@redhat.com>
  9687. PR gdb/13596:
  9688. * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
  9689. bfd_lookup_symbol_from_symtab.
  9690. * solib-pa64.c (pa64_solib_create_inferior_hook): Use
  9691. gdb_bfd_lookup_symbol_from_symtab.
  9692. 2012-02-03 Joel Brobecker <brobecker@adacore.com>
  9693. * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
  9694. use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
  9695. symbol. Add assertion that sym2 is never NULL.
  9696. 2012-02-02 Doug Evans <dje@google.com>
  9697. * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
  9698. "name" parameter to const char ** from char **. All callers updated.
  9699. (find_pc_partial_function): Ditto.
  9700. (cache_pc_function_name): Change type to const char * from char *.
  9701. * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
  9702. (find_pc_partial_function): Update.
  9703. * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
  9704. type of "name" parameter to const char * from char *.
  9705. All uses updated.
  9706. * arch-utils.c (generic_in_solib_return_trampoline): Change
  9707. type of "name" parameter to const char * from char *.
  9708. * arch-utils.h (generic_in_solib_return_trampoline): Update.
  9709. * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
  9710. type of "name" parameter to const char * from char *.
  9711. * gdbarch.sh (in_solib_return_trampoline): Ditto.
  9712. * gdbarch.c: Regenerate.
  9713. * gdbarch.h: Regenerate.
  9714. * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
  9715. * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
  9716. * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
  9717. type of "name" parameter to const char * from char *.
  9718. * skip.c (skip_function_pc): Ditto.
  9719. * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
  9720. * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
  9721. * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
  9722. * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
  9723. * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
  9724. * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
  9725. * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
  9726. * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
  9727. * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
  9728. 2012-02-02 Pedro Alves <palves@redhat.com>
  9729. * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
  9730. the current inferior has no execution. Make sure the current
  9731. remote process matches gdb's current inferior.
  9732. 2012-02-02 Tom Tromey <tromey@redhat.com>
  9733. PR gdb/13405:
  9734. * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
  9735. read-only memory.
  9736. 2012-02-02 Tom Tromey <tromey@redhat.com>
  9737. PR gdb/9307:
  9738. * symtab.c (lookup_language_this): Set block_found.
  9739. 2012-02-01 Tom Tromey <tromey@redhat.com>
  9740. PR gdb/13431:
  9741. * jit.c (struct jit_inferior_data): Rewrite.
  9742. (struct jit_objfile_data): New.
  9743. (get_jit_objfile_data): New function.
  9744. (add_objfile_entry): Update.
  9745. (jit_read_descriptor): Return int. Replace descriptor_addr
  9746. argument with inf_data. Update. Don't call error.
  9747. (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
  9748. descriptor here.
  9749. (jit_inferior_init): Don't look up descriptor. Don't call error.
  9750. (jit_reset_inferior_data_and_breakpoints)
  9751. (jit_inferior_created_observer): Remove.
  9752. (jit_inferior_exit_hook): Update.
  9753. (jit_executable_changed_observer): Remove.
  9754. (jit_event_handler): Update.
  9755. (free_objfile_data): Reset inferior data if needed.
  9756. (_initialize_jit): Update.
  9757. 2012-02-01 Tom Tromey <tromey@redhat.com>
  9758. * jit.c (bfd_open_from_target_memory): Move higher in file.
  9759. 2012-02-01 Tristan Gingold <gingold@adacore.com>
  9760. * libunwind-frame.c (libunwind_load): Display message if dlopen
  9761. failed.
  9762. 2012-02-01 Gary Benson <gbenson@redhat.com>
  9763. * symtab.h (symbol_found_callback_ftype): New typedef.
  9764. (iterate_over_symbols): Use the above.
  9765. * symtab.c (iterate_over_symbols): Likewise.
  9766. * language.h (language_defn->la_iterate_over_symbols): Likewise.
  9767. * ada-lang.c (ada_iterate_over_symbols): Likewise.
  9768. * linespec.c (iterate_over_all_matching_symtabs): Likewise.
  9769. (iterate_name_matcher): Document return values.
  9770. (collect_one_symbol): Likewise.
  9771. (collect_function_symbols): Likewise.
  9772. (collect_symbols): Likewise.
  9773. 2012-02-01 Tom Tromey <tromey@redhat.com>
  9774. * ada-lang.c (resolve_subexp): Update.
  9775. (ada_lookup_symbol_list): Add 'full_search' argument.
  9776. (ada_iterate_over_symbols): Pass 0 as full_search argument to
  9777. ada_lookup_symbol_list.
  9778. (ada_lookup_encoded_symbol): Update.
  9779. (get_var_value): Update.
  9780. * ada-exp.y (block_lookup): Update.
  9781. (write_var_or_type): Update.
  9782. (write_name_assoc): Update.
  9783. * ada-lang.h (ada_lookup_symbol_list): Update.
  9784. 2012-01-31 Tom Tromey <tromey@redhat.com>
  9785. * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
  9786. comment.
  9787. 2012-01-31 Doug Evans <dje@google.com>
  9788. * symtab.h: Remove outdated comment.
  9789. (SYMBOL_MATCHES_NATURAL_NAME): Delete.
  9790. 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
  9791. Fix build error in Darwin port.
  9792. * i386-darwin-nat.c: Include i386-nat.h.
  9793. 2012-01-30 Tom Tromey <tromey@redhat.com>
  9794. PR breakpoints/13568:
  9795. * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
  9796. argument. Check for recursive includes.
  9797. (dwarf_decode_macros): Create an include hash.
  9798. 2012-01-30 Michael Eager <eager@eagercon.com>
  9799. * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
  9800. * ppc-linux-tdep.c: Include glibc-tdep.h.
  9801. (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
  9802. (powerpc_linux_in_plt_stub): New function.
  9803. (powerpc_linux_in_dynsym_resolve_code): New function.
  9804. (ppc_skip_trampoline_code): New function.
  9805. (ppc_linux_init_abi): Use PPC specific functions rather than generic.
  9806. Use glibc_skip_solib_resolver.
  9807. 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
  9808. Code cleanup: Make 1440 bytes of data segment read-only.
  9809. * arch-utils.c (endian_enum): Make it const char *const [].
  9810. * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
  9811. Likewise.
  9812. * breakpoint.c (always_inserted_enums): Likewise.
  9813. * cli/cli-cmds.c (script_ext_enums): Likewise.
  9814. * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
  9815. enumlist parameter const char *const *.
  9816. * cli/cli-decode.h (struct cmd_list_element): Make the enums field
  9817. const char *const *.
  9818. * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
  9819. parameter const char *const *.
  9820. * cris-tdep.c (cris_modes): Make it const char *const [].
  9821. * filesystem.c (target_file_system_kinds): Likewise.
  9822. * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
  9823. * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
  9824. (can_use_displaced_stepping_enum, scheduler_enums)
  9825. (exec_direction_names): Likewise.
  9826. * language.c (_initialize_language): Make the type_or_range_names and
  9827. case_sensitive_names variables const char *const [].
  9828. * mips-tdep.c (mips_abi_strings): Make it const char *const [].
  9829. * python/python.c (python_excp_enums): Likewise.
  9830. * remote.c (interrupt_sequence_modes): Likewise.
  9831. * rs6000-tdep.c (powerpc_vector_strings): Likewise.
  9832. * serial.c (logbase_enums): Likewise.
  9833. * sh-tdep.c (sh_cc_enum): Likewise.
  9834. * stack.c (print_frame_arguments_choices, print_entry_values_choices):
  9835. Likewise.
  9836. * symtab.c (multiple_symbols_modes): Likewise.
  9837. * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
  9838. Likewise.
  9839. * utils.c (internal_problem_modes): Likewise.
  9840. 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
  9841. Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
  9842. * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
  9843. result.
  9844. 2012-01-27 Doug Evans <dje@google.com>
  9845. * configure.ac (with_python): Fix absolute path handling for win32.
  9846. * configure: Regenerate.
  9847. 2012-01-26 Doug Evans <dje@google.com>
  9848. * symtab.c: Whitespace cleanup, no code changes.
  9849. * symtab.c (lookup_symbol_in_language): Improve comment.
  9850. (lookup_symbol_aux): Fix comment.
  9851. * psymtab.c (add_psymbol_to_list): Result is now "void".
  9852. * psympriv.h (add_psymbol_to_list): Update.
  9853. * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
  9854. 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
  9855. Do not open script filenames twice.
  9856. * cli/cli-cmds.c (source_script_from_stream): Pass to
  9857. source_python_script also STREAM.
  9858. * python/py-auto-load.c (source_section_scripts): Pass to
  9859. source_python_script_for_objfile also STREAM.
  9860. (auto_load_objfile_script): Pass to source_python_script_for_objfile
  9861. also INPUT.
  9862. * python/python-internal.h (source_python_script_for_objfile): New
  9863. parameter file, rename parameter file to filename.
  9864. * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
  9865. instead if !_WIN32. Update the function comment.
  9866. (source_python_script, source_python_script_for_objfile)
  9867. (source_python_script): New parameter file, rename parameter file to
  9868. filename. Pass FILENAME to python_run_simple_file.
  9869. * python/python.h (source_python_script): New parameter file, rename
  9870. parameter file to filename.
  9871. 2012-01-26 Pedro Alves <palves@redhat.com>
  9872. * corelow.c (core_has_fake_pid): Delete.
  9873. (core_close): Delete references to `core_has_fake_pid'.
  9874. (add_to_thread_list): Adjust to mark the inferior's pid as fake.
  9875. (core_open): Delete references to `core_has_fake_pid'.
  9876. (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
  9877. the removed global.
  9878. 2012-01-26 Joel Brobecker <brobecker@adacore.com>
  9879. * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
  9880. Remove language parameter from name_matcher. Adjust the comment.
  9881. * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
  9882. Remove language parameter.
  9883. * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
  9884. * linespec.c (iterate_name_matcher): Likewise.
  9885. * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
  9886. name_matcher. Adjust call accordingly.
  9887. * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
  9888. (maintenance_check_symtabs): Adjust type of parameter "fun".
  9889. * psymtab.h (maintenance_check_symtabs): Likewise.
  9890. 2012-01-26 Joel Brobecker <brobecker@adacore.com>
  9891. * language.h (symbol_name_match_p_ftype): New typedef.
  9892. (struct language_defn): Replace field la_symbol_name_compare
  9893. by la_get_symbol_name_match_p.
  9894. * ada-lang.c (ada_get_symbol_name_match_p): New function.
  9895. (ada_language_defn): Use it.
  9896. * linespec.c (struct symbol_matcher_data): New type.
  9897. (iterate_name_matcher): Rewrite.
  9898. (iterate_over_all_matching_symtabs): Pass a pointer to
  9899. a symbol_matcher_data struct to expand_symtabs_matching
  9900. instead of just the lookup name.
  9901. * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
  9902. opencl-lang.c, p-lang.c, language.c: Delete field
  9903. la_symbol_name_compare, and replace by NULL for new field
  9904. la_get_symbol_name_match_p.
  9905. * symfile.h (struct quick_symbol_functions): Update comment.
  9906. 2012-01-25 Tom Tromey <tromey@redhat.com>
  9907. * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
  9908. dereferencing.
  9909. 2012-01-24 Tom Tromey <tromey@redhat.com>
  9910. PR symtab/12406:
  9911. * solib.c (update_solib_list): Update the program space's
  9912. added_solibs and deleted_solibs fields.
  9913. * progspace.h (struct program_space) <added_solibs,
  9914. deleted_solibs>: New fields.
  9915. (clear_program_space_solib_cache): Declare.
  9916. * progspace.c (release_program_space): Call
  9917. clear_program_space_solib_cache.
  9918. (clear_program_space_solib_cache): New function.
  9919. * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
  9920. bpstat_stop_status. Use handle_solib_event.
  9921. * breakpoint.c: Include gdb_regex.h.
  9922. (print_solib_event): New function.
  9923. (bpstat_print): Use print_solib_event.
  9924. (bpstat_stop_status): Add special case for bp_shlib_event.
  9925. (handle_solib_event): New function.
  9926. (bpstat_what): Use handle_solib_event.
  9927. (struct solib_catchpoint): New.
  9928. (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
  9929. (breakpoint_hit_catch_solib, check_status_catch_solib)
  9930. (print_it_catch_solib, print_one_catch_solib)
  9931. (print_mention_catch_solib, print_recreate_catch_solib): New
  9932. functions.
  9933. (catch_solib_breakpoint_ops): New global.
  9934. (catch_load_or_unload, catch_load_command_1)
  9935. (catch_unload_command_1): New functions.
  9936. (internal_bkpt_check_status): Add special case for
  9937. bp_shlib_event.
  9938. (internal_bkpt_print_it): Use print_solib_event.
  9939. (initialize_breakpoint_ops): Initialize
  9940. catch_solib_breakpoint_ops.
  9941. (_initialize_breakpoint): Register "catch load" and "catch
  9942. unload".
  9943. * breakpoint.h (handle_solib_event): Declare.
  9944. * NEWS: Add entry for "catch load" and "catch unload".
  9945. 2012-01-24 Tom Tromey <tromey@redhat.com>
  9946. * ada-lang.c: Include gdb_vecs.h.
  9947. * charset.c: Include gdb_vecs.h.
  9948. * tracepoint.h: Include gdb_vecs.h.
  9949. * gdb_vecs.h: New file.
  9950. 2012-01-24 Pedro Alves <pedro@codesourcery.com>
  9951. * breakpoint.c (breakpoint_hit_catch_fork)
  9952. (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
  9953. (breakpoint_hit_catch_exec): Make use of the `ws' argument.
  9954. * infrun.c (inferior_has_forked, inferior_has_vforked)
  9955. (inferior_has_execd, inferior_has_called_syscall): Delete.
  9956. (handle_syscall_event): Get syscall_number from the execution
  9957. control state's wait status.
  9958. (wait_for_inferior): Don't clear syscall_number.
  9959. 2012-01-24 Pedro Alves <palves@redhat.com>
  9960. * breakpoint.c (bpstat_check_location, bpstat_stop_status,
  9961. pc_at_non_inline_function): Add `ws' parameter, and pass it down.
  9962. (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
  9963. (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
  9964. `ws' parameter.
  9965. (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
  9966. false for events other than TARGET_SIGNAL_TRAP.
  9967. (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
  9968. Add `ws' parameter.
  9969. (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
  9970. events other than TARGET_SIGNAL_TRAP.
  9971. (tracepoint_breakpoint_hit): Add `ws' parameter.
  9972. * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
  9973. parameter.
  9974. (bpstat_stop_status): Same.
  9975. (pc_at_non_inline_function): Same.
  9976. * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
  9977. to pass the current event's waitstatus to bpstat_stop_status
  9978. and pc_at_non_inline_function.
  9979. 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
  9980. Code cleanup.
  9981. * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
  9982. Update the function comment for it.
  9983. (source_script_with_search): Call make_cleanup_fclose for STREAM.
  9984. * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
  9985. for STREAM.
  9986. 2012-01-24 Pedro Alves <palves@redhat.com>
  9987. * breakpoint.c (bpstat_stop_status): Moving clearing print_it
  9988. outside `bs->stop' block.
  9989. (bpstat_what): Rework bp_shlib_event handling.
  9990. (internal_bkpt_check_status): If the breakpoint is a
  9991. bp_shlib_event, then set bs->stop and bs->print if
  9992. stop_on_solib_events is set.
  9993. 2012-01-24 Gary Benson <gbenson@redhat.com>
  9994. Delete #if 0'd out code.
  9995. * stack.c (print_frame_label_vars): Remove.
  9996. (catch_info): Likewise.
  9997. (_initialize_stack): Remove "info catch" command.
  9998. * NEWS: Mention the above.
  9999. 2012-01-24 Pedro Alves <palves@redhat.com>
  10000. * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
  10001. it.
  10002. (remote_notice_new_inferior): If the remote end doesn't support
  10003. the multiprocess extensions, then the PID is fake.
  10004. (add_current_inferior_and_thread): New.
  10005. (remote_start_remote): Use it.
  10006. (extended_remote_attach_1): Adjust.
  10007. (extended_remote_create_inferior_1): Use
  10008. add_current_inferior_and_thread.
  10009. 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
  10010. Fix watchpoints to be specific for each inferior.
  10011. * breakpoint.c (watchpoint_in_thread_scope): Verify also
  10012. current_program_space.
  10013. * i386-nat.c (i386_inferior_data_cleanup): New.
  10014. (i386_inferior_data_get): Replace variable inf_data_local by an
  10015. inferior_data call.
  10016. (i386_use_watchpoints): Initialize i386_inferior_data.
  10017. * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
  10018. specific iterate_over_lwps.
  10019. 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
  10020. Fix watchpoints across inferior fork.
  10021. * amd64-linux-nat.c (update_debug_registers_callback): Update the
  10022. comment for linux_nat_iterate_watchpoint_lwps.
  10023. (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
  10024. linux_nat_iterate_watchpoint_lwps.
  10025. (amd64_linux_prepare_to_resume): New comment on Linux kernel.
  10026. * i386-linux-nat.c (update_debug_registers_callback): Update the
  10027. comment for linux_nat_iterate_watchpoint_lwps.
  10028. (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
  10029. linux_nat_iterate_watchpoint_lwps.
  10030. (i386_linux_prepare_to_resume): New comment on Linux kernel.
  10031. * i386-nat.c: Include inferior.h.
  10032. (dr_mirror): Remove.
  10033. (i386_inferior_data, struct i386_inferior_data)
  10034. (i386_inferior_data_get): New.
  10035. (i386_debug_reg_state): Use i386_inferior_data_get.
  10036. (i386_cleanup_dregs, i386_update_inferior_debug_regs)
  10037. (i386_insert_watchpoint, i386_remove_watchpoint)
  10038. (i386_stopped_data_address, i386_insert_hw_breakpoint)
  10039. (i386_remove_hw_breakpoint): New variable state, use
  10040. i386_debug_reg_state instead of DR_MIRROR.
  10041. * linux-nat.c (delete_lwp): New declaration.
  10042. (num_lwps): Move here from downwards.
  10043. (delete_lwp_cleanup): New.
  10044. (linux_child_follow_fork): Create new child_lp, call
  10045. linux_nat_new_thread and linux_nat_prepare_to_resume before calling
  10046. PTRACE_DETACH.
  10047. (num_lwps): Move upwards.
  10048. (linux_nat_iterate_watchpoint_lwps): New.
  10049. * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
  10050. (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
  10051. 2012-01-24 Joel Brobecker <brobecker@adacore.com>
  10052. GDB 7.4 released.
  10053. 2012-01-23 Pedro Alves <palves@redhat.com>
  10054. * top.c (caution): Rename to ...
  10055. (confirm): ... this.
  10056. (show_caution): Rename to ...
  10057. (show_confirm): ... this.
  10058. (quit_cover): Adjust.
  10059. (init_main): Adjust.
  10060. * top.h (caution): Rename to ...
  10061. (confirm): ... this.
  10062. * utils.c (internal_vproblem, defaulted_query): Adjust.
  10063. 2012-01-23 Pedro Alves <palves@redhat.com>
  10064. * top.c (caution): Update comment.
  10065. (execute_command): Don't consider the current value of `caution'.
  10066. 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
  10067. * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
  10068. 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
  10069. * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
  10070. * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
  10071. * target.c (target_fileio_pwrite): Remove buffer address from
  10072. debug output.
  10073. (target_fileio_pread): Likewise.
  10074. 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
  10075. * NEWS: Document remote "info proc" and "generate-core-file".
  10076. 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
  10077. * gdbarch.sh (find_memory_regions): New callback.
  10078. * gdbarch.c, gdbarch.h: Regenerate.
  10079. * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
  10080. callback before falling back to target method.
  10081. * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
  10082. (linux_target_install_ops): No longer install it.
  10083. * linux-tdep.c (linux_find_memory_regions): New function.
  10084. (linux_init_abi): Install it.
  10085. 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
  10086. * gdbarch.sh (make_corefile_notes): New architecture callback.
  10087. * gdbarch.c: Regenerate.
  10088. * gdbarch.h: Likewise.
  10089. * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
  10090. before target_make_corefile_notes. If NULL is returned, the
  10091. target does not support core file generation.
  10092. * linux-nat.c: Include "linux-tdep.h".
  10093. (find_signalled_thread, find_stop_signal): Remove.
  10094. (linux_nat_do_thread_registers): Likewise.
  10095. (struct linux_nat_corefile_thread_data): Likewise.
  10096. (linux_nat_corefile_thread_callback): Likewise.
  10097. (iterate_over_spus): Likewise.
  10098. (struct linux_spu_corefile_data): Likewise.
  10099. (linux_spu_corefile_callback): Likewise.
  10100. (linux_spu_make_corefile_notes): Likewise.
  10101. (linux_nat_collect_thread_registers): New function.
  10102. (linux_nat_make_corefile_notes): Replace contents by call to
  10103. linux_make_corefile_notes passing linux_nat_collect_thread_registers
  10104. as native-only callback.
  10105. * linux-tdep.h: Include "bfd.h".
  10106. (struct regcache): Add forward declaration.
  10107. (linux_collect_thread_registers_ftype): New typedef.
  10108. (linux_make_corefile_notes): Add prototype.
  10109. * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
  10110. "regset.h", and "elf-bfd.h".
  10111. (find_signalled_thread, find_stop_signal): New functions.
  10112. (linux_spu_make_corefile_notes): Likewise.
  10113. (linux_collect_thread_registers): Likewise.
  10114. (struct linux_corefile_thread_data): New data structure.
  10115. (linux_corefile_thread_callback): New funcion.
  10116. (linux_make_corefile_notes): Likewise.
  10117. (linux_make_corefile_notes_1): Likewise.
  10118. (linux_init_abi): Install it.
  10119. 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
  10120. * gdbarch.sh (info_proc): New callback.
  10121. * gdbarch.c, gdbarch.h: Regenerate.
  10122. * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
  10123. before falling back to the target info_proc callback.
  10124. * linux-nat.c: Do not include "cli/cli-utils.h".
  10125. (linux_nat_info_proc): Remove.
  10126. (linux_target_install_ops): No longer install it.
  10127. * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
  10128. (read_mapping): New function.
  10129. (linux_info_proc): Likewise.
  10130. (linux_init_abi): Install it.
  10131. 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
  10132. * defs.h (enum info_proc_what): Moved here from linux-nat.c
  10133. * infcmd.c: (info_proc_cmd_1): New function.
  10134. (info_proc_cmd): New function, moved here from equivalent routine
  10135. orignally in linux-nat.c.
  10136. (info_proc_cmd_mappings): Likewise.
  10137. (info_proc_cmd_stat): Likewise.
  10138. (info_proc_cmd_status): Likewise.
  10139. (info_proc_cmd_cwd): Likewise.
  10140. (info_proc_cmd_cmdline): Likewise.
  10141. (info_proc_cmd_exe): Likewise.
  10142. (info_proc_cmd_all): Likewise.
  10143. (_initialize_infcmd): Install "info proc" command and subcommands.
  10144. * target.h (struct target_ops): Add to_info_proc.
  10145. (target_info_proc): Add prototype.
  10146. * target.c (target_info_proc): New function.
  10147. * procfs.c (procfs_info_proc): Add prototype.
  10148. (info_proc_cmd): Rename into ...
  10149. (procfs_info_proc): ... this. Update argument types as appropriate
  10150. for a to_info_proc implementation. Handle "what" argument.
  10151. (procfs_target): Install procfs_info_proc.
  10152. (_initialize_procfs): No longer install "info proc" command.
  10153. * linux-nat.c: (enum info_proc_what): Remove.
  10154. (linux_nat_info_proc_cmd_1): Rename into ...
  10155. (linux_nat_info_proc): ... this. Update argument types as appropriate
  10156. for a to_info_proc implementation.
  10157. (linux_nat_info_proc_cmd): Remove.
  10158. (linux_nat_info_proc_cmd_mappings): Likewise.
  10159. (linux_nat_info_proc_cmd_stat): Likewise.
  10160. (linux_nat_info_proc_cmd_status): Likewise.
  10161. (linux_nat_info_proc_cmd_cwd): Likewise.
  10162. (linux_nat_info_proc_cmd_cmdline): Likewise.
  10163. (linux_nat_info_proc_cmd_exe): Likewise.
  10164. (linux_nat_info_proc_cmd_all): Likewise.
  10165. (linux_target_install_ops): Install linux_nat_info_proc.
  10166. (_initialize_linux_nat): No longer install "info proc" command
  10167. and subcommands.
  10168. 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
  10169. * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
  10170. * config.in, configure: Regenerate.
  10171. * target.h (struct target_ops): Add to_fileio_readlink.
  10172. (target_fileio_readlink): Add prototype.
  10173. * target.c (target_fileio_readlink): New function.
  10174. * inf-child.c: Conditionally include <sys/param.h>.
  10175. (inf_child_fileio_readlink): New function.
  10176. (inf_child_target): Install it.
  10177. * remote.c (PACKET_vFile_readlink): New enum value.
  10178. (remote_hostio_readlink): New function.
  10179. (init_remote_ops): Install it.
  10180. (_initialize_remote): Handle vFile:readlink packet type.
  10181. 2012-01-20 Pedro Alves <palves@redhat.com>
  10182. Ulrich Weigand <ulrich.weigand@linaro.org>
  10183. * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
  10184. * config.in, configure: Regenerate.
  10185. * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
  10186. to_fileio_pread, to_fileio_close, to_fileio_unlink.
  10187. (target_fileio_open): Add prototype.
  10188. (target_fileio_pwrite): Likewise.
  10189. (target_fileio_pread): Likewise.
  10190. (target_fileio_close): Likewise.
  10191. (target_fileio_unlink): Likewise.
  10192. (target_fileio_read_alloc): Likewise.
  10193. (target_fileio_read_stralloc): Likewise.
  10194. * target.c: Include "gdb/fileio.h".
  10195. (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
  10196. (default_fileio_target): New function.
  10197. (target_fileio_open): Likewise.
  10198. (target_fileio_pwrite): Likewise.
  10199. (target_fileio_pread): Likewise.
  10200. (target_fileio_close): Likewise.
  10201. (target_fileio_unlink): Likewise.
  10202. (target_fileio_close_cleanup): Likewise.
  10203. (target_fileio_read_alloc_1): Likewise.
  10204. (target_fileio_read_alloc): Likewise.
  10205. (target_fileio_read_stralloc): Likewise.
  10206. * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
  10207. <fcntl.h>, and <unistd.h>.
  10208. (inf_child_fileio_open_flags_to_host): New function.
  10209. (inf_child_errno_to_fileio_error): Likewise.
  10210. (inf_child_fileio_open): Likewise.
  10211. (inf_child_fileio_pwrite): Likewise.
  10212. (inf_child_fileio_pread): Likewise.
  10213. (inf_child_fileio_close): Likewise.
  10214. (inf_child_fileio_unlink): Likewise.
  10215. (inf_child_target): Install to_fileio routines.
  10216. * remote.c (init_remote_ops): Install to_fileio routines.
  10217. 2012-01-20 Pedro Alves <palves@redhat.com>
  10218. Ulrich Weigand <ulrich.weigand@linaro.org>
  10219. * remote.c (remote_multi_process_p): Only check for multi-process
  10220. protocol feature, do not check for extended protocol.
  10221. (remote_supports_multi_process): Check for extended protocol here.
  10222. (set_general_process): Likewise.
  10223. (extended_remote_kill): Likewise.
  10224. (remote_pid_to_str): Likewise.
  10225. (remote_query_supported): Always query multiprocess mode.
  10226. 2012-01-20 Pedro Alves <palves@redhat.com>
  10227. Ulrich Weigand <ulrich.weigand@linaro.org>
  10228. * inferior.h (struct inferior): Add fake_pid_p.
  10229. * inferior.c (exit_inferior_1): Clear fake_pid_p.
  10230. * remote.c (remote_start_remote): Set fake_pid_p if we have to use
  10231. magic_null_ptid since the remote side doesn't provide a real PID.
  10232. 2012-01-19 Tom Tromey <tromey@redhat.com>
  10233. * NEWS: Combine the two Python sections.
  10234. 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
  10235. * target.h (target_close): Update comment on the target's unpush state.
  10236. 2012-01-19 Pedro Alves <palves@redhat.com>
  10237. * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
  10238. linux_nat_async directly instead of going through the target
  10239. vector.
  10240. * target.c (unpush_target): Close target after unpushing it, not
  10241. before.
  10242. 2012-01-19 Gary Benson <gbenson@redhat.com>
  10243. * mdebugread.c (sort_blocks): Replace integer constants with ones
  10244. derived from FIRST_LOCAL_BLOCK.
  10245. 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
  10246. Jan Kratochvil <jan.kratochvil@redhat.com>
  10247. PR gdb/9538
  10248. * symfile.c (find_separate_debug_file): New function.
  10249. (terminate_after_last_dir_separator): Likewise.
  10250. (find_separate_debug_file_by_debuglink): Also try realpath.
  10251. * configure.ac (AC_CHECK_FUNCS): Add lstat.
  10252. * configure: Regenerate.
  10253. * config.in: Regenerate.
  10254. 2012-01-18 Doug Evans <dje@google.com>
  10255. * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
  10256. (main.o): Remove rule.
  10257. * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
  10258. (--with-sysroot): Rewrite.
  10259. * configure: Regenerate.
  10260. * config.in: Regenerate.
  10261. 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
  10262. * parse.c (initialize_expout): New function.
  10263. (reallocate_expout): Likewise.
  10264. (parse_exp_in_context): Use `initialize_expout' and
  10265. `reallocate_expout' when appropriate.
  10266. 2012-01-18 Pedro Alves <palves@redhat.com>
  10267. * record.c (struct record_breakpoint, record_breakpoint_p)
  10268. (record_breakpoints): New.
  10269. (record_insert_breakpoint, record_remove_breakpoint): Manage
  10270. record breakpoints list. Only remove breakpoints from the
  10271. inferior if they had been inserted there in the first place.
  10272. 2012-01-17 Doug Evans <dje@google.com>
  10273. * linespec.c (decode_line_internal): Don't call symtabs_from_filename
  10274. if we know we don't have a file name to look for.
  10275. 2012-01-17 Pedro Alves <palves@redhat.com>
  10276. * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
  10277. the frame's stop reason is UNWIND_UNAVAILABLE.
  10278. 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
  10279. Fix compilation error.
  10280. * m2-exp.y (yyerror): Use ANSI C prototype.
  10281. 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
  10282. * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
  10283. (growbuf_by_size): Likewise.
  10284. (yyerror): Likewise.
  10285. * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
  10286. (modblock): Remove variable (was #if 0'ed).
  10287. (parse_number): Convert prototype from K&R to ANSI C.
  10288. (yyerror): Likewise.
  10289. * objc-exp.y (parse_number): Likewise.
  10290. (yyerror): Likewise.
  10291. (yylex): Remove #if 0'ed code.
  10292. * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
  10293. (yyerror): Likewise.
  10294. 2012-01-16 Tom Tromey <tromey@redhat.com>
  10295. * NEWS: Add item.
  10296. * symtab.h (compare_filenames_for_search): Declare.
  10297. * symtab.c (compare_filenames_for_search): New function.
  10298. (iterate_over_some_symtabs): Use it.
  10299. * symfile.h (struct quick_symbol_functions)
  10300. <map_symtabs_matching_filename>: Change spec.
  10301. * psymtab.c (partial_map_symtabs_matching_filename): Use
  10302. compare_filenames_for_search. Update for new spec.
  10303. * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
  10304. compare_filenames_for_search. Update for new spec.
  10305. * breakpoint.c (clear_command): Use compare_filenames_for_search.
  10306. 2012-01-16 Tom Tromey <tromey@redhat.com>
  10307. PR python/13281:
  10308. * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
  10309. (struct main_type) <flag_flag_enum>: New field.
  10310. * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
  10311. * NEWS: Add entries.
  10312. * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
  10313. enums.
  10314. * python/lib/gdb/printing.py (_EnumInstance): New class.
  10315. (FlagEnumerationPrinter): Likewise.
  10316. 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
  10317. * breakpoint.c (create_sals_from_address_default): New function.
  10318. (create_breakpoints_sal_default): Likewise.
  10319. (decode_linespec_default): Likewise.
  10320. (is_marker_spec): Removed.
  10321. (strace_marker_p): New function.
  10322. (init_breakpoint_sal): Using `strace_marker_p' instead of
  10323. `is_marker_spec'.
  10324. (create_breakpoint): Call method `create_sals_from_address' from
  10325. breakpoint_ops, replacing code that created SALs conditionally
  10326. on the type of the breakpoint. Call method `create_breakpoints_sal',
  10327. replacing code that created breakpoints conditionally on the type
  10328. wanted.
  10329. (base_breakpoint_create_sals_from_address): New function.
  10330. (base_breakpoint_create_breakpoints_sal): Likewise.
  10331. (base_breakpoint_decode_linespec): Likewise.
  10332. (base_breakpoint_ops): Add methods
  10333. `base_breakpoint_create_sals_from_address',
  10334. `base_breakpoint_create_breakpoints_sal' and
  10335. `base_breakpoint_decode_linespec'.
  10336. (bkpt_create_sals_from_address): New function.
  10337. (bkpt_create_breakpoints_sal): Likewise.
  10338. (bkpt_decode_linespec): Likewise.
  10339. (tracepoint_create_sals_from_address): Likewise.
  10340. (tracepoint_create_breakpoints_sal): Likewise.
  10341. (tracepoint_decode_linespec): Likewise.
  10342. (strace_marker_create_sals_from_address): Likewise.
  10343. (strace_marker_create_breakpoints_sal): Likewise.
  10344. (strace_marker_decode_linespec): Likewise.
  10345. (strace_marker_breakpoint_ops): New variable.
  10346. (addr_string_to_sals): Remove `marker_spec'. Call method
  10347. `decode_linespec' from breakpoint_ops, replacing code that decoded
  10348. an address string into a SAL. Use `strace_marker_p' instead of
  10349. `marker_spec'.
  10350. (strace_command): Decide whether we are dealing with a static
  10351. tracepoint with marker or not. Use the appropriate breakpoint_ops.
  10352. (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
  10353. * breakpoint.h (linespec_result, linespec_sals): New forward
  10354. declarations.
  10355. (breakpoint_ops) <create_sals_from_address>,
  10356. <create_breakpoints_sal>, <decode_linespec>: New methods.
  10357. 2012-01-14 Doug Evans <dje@google.com>
  10358. * NEWS: Update text for "maint set python print-stack".
  10359. It is deprecated in gdb 7.4 and deleted in 7.5.
  10360. 2012-01-13 Eli Zaretskii <eliz@gnu.org>
  10361. * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
  10362. including curses.h.
  10363. 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
  10364. * configure: Regenerate.
  10365. * config.in: Regenerate.
  10366. 2012-01-12 Keith Seitz <keiths@redhat.com>
  10367. PR mi/10586
  10368. * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
  10369. (ANONYMOUS_UNION_NAME): Define.
  10370. (is_path_expr_parent): New function.
  10371. (get_path_expr_parent): New function.
  10372. (is_anonymous_child): New function.
  10373. (create_child_with_value): If the child is anonymous and without
  10374. a name, assign an object name to it.
  10375. (c_describe_child): Use get_path_expr_parent to determine
  10376. the parent expression.
  10377. If there field represents an anonymous struct or union and
  10378. has no name, set an appropriate display name and expression.
  10379. (cplus_describe_child): Likewise.
  10380. 2012-01-12 Pedro Alves <palves@redhat.com>
  10381. * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
  10382. available when %ebp is found to be zero (outermost).
  10383. 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
  10384. * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
  10385. an internal gdb_static_assert.
  10386. * mi/mi-common.c: Rename static_assert to gdb_static_assert.
  10387. 2012-01-11 Tom Tromey <tromey@redhat.com>
  10388. PR gdb/9598:
  10389. * breakpoint.c (_initialize_breakpoint): Fix help for "catch
  10390. catch" and "catch throw".
  10391. 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
  10392. * blockframe.c (block_innermost_frame): Start search from selected
  10393. frame, if present, or otherwise the current frame.
  10394. * c-exp.y (variable): Update innermost_block for
  10395. 'block COLONCOLON NAME' clause.
  10396. * m2-exp.y (variable): Ditto.
  10397. * objc-exp.y (variable): Ditto.
  10398. 2012-01-10 Tom Tromey <tromey@redhat.com>
  10399. PR python/13199:
  10400. * python/python.c (finish_python_initialization): Set sys.argv.
  10401. 2012-01-10 Doug Evans <dje@google.com>
  10402. * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
  10403. "want_line_info". All callers updated.
  10404. (dwarf_decode_lines_1): New function.
  10405. (handle_DW_AT_stmt_list): Add function comment.
  10406. New arg "want_line_info". All callers updated.
  10407. (read_file_scope,read_type_unit_scope): Move comment from
  10408. handle_DW_AT_stmt_list to here.
  10409. 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
  10410. Fix regression after libiberty/ update for GCC PR 6057 and others.
  10411. * c-exp.y (operator) <OPERATOR DELETE>
  10412. (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
  10413. * cp-name-parser.y (fill_comp, make_operator, make_dtor)
  10414. (make_builtin_type, make_name): New variable i, add gdb_assert.
  10415. (operator) <OPERATOR NEW>: Update ARGS to 3.
  10416. (operator) <OPERATOR DELETE>: Add trailing space.
  10417. (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
  10418. (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
  10419. * cp-support.c (cp_canonicalize_string): Check NULL from
  10420. cp_comp_to_string, call warning and return.
  10421. 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
  10422. Fix duplicate .o files after omitting libbfd.a.
  10423. * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
  10424. (SFILES): Add corelow.c.
  10425. (COMMON_OBS): Add corelow.o.
  10426. (ALLDEPFILES): Remove corelow.c.
  10427. * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
  10428. * config/alpha/alpha-osf3.mh: Likewise.
  10429. * config/alpha/fbsd.mh: Likewise.
  10430. * config/arm/nbsdaout.mh: Likewise.
  10431. * config/arm/nbsdelf.mh: Likewise.
  10432. * config/i386/i386gnu.mh: Likewise.
  10433. * config/ia64/hpux.mh: Likewise.
  10434. * config/ia64/linux.mh: Likewise.
  10435. * config/m32r/linux.mh: Likewise.
  10436. * config/m68k/linux.mh: Likewise.
  10437. * config/mips/irix5.mh: Likewise.
  10438. * config/mips/irix6.mh: Likewise.
  10439. * config/pa/hpux.mh: Likewise.
  10440. * config/pa/linux.mh: Likewise.
  10441. * config/powerpc/aix.mh: Likewise.
  10442. * config/sparc/linux.mh: Likewise.
  10443. * config/sparc/linux64.mh: Likewise.
  10444. * config/sparc/sol2.mh: Likewise.
  10445. * config/vax/vax.mh: Likewise.
  10446. * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
  10447. (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
  10448. (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
  10449. (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
  10450. (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
  10451. (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
  10452. (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
  10453. (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
  10454. (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
  10455. (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
  10456. (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
  10457. (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
  10458. (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
  10459. (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
  10460. (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
  10461. (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
  10462. (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
  10463. (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
  10464. (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
  10465. (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
  10466. (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
  10467. (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
  10468. corelow.o from gdb_target_obs.
  10469. * corefile.c (core_target): Update the comment on NULL value.
  10470. (core_file_command): Replace error by gdb_assert on CORE_TARGET.
  10471. * corelow.c (sniff_core_bfd): Call error instead of warning on zero
  10472. MATCHES. Drop YUMMY set on NULL.
  10473. (core_close): Do not call exit_inferior_silent on zero PID. Do not
  10474. reclaim CORE_DATA if it is already NULL.
  10475. 2012-01-09 Doug Evans <dje@google.com>
  10476. * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
  10477. * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
  10478. 2012-01-09 Keith Seitz <keiths@redhat.com>
  10479. * breakpoint.c (wrapper.h): Don't include.
  10480. 2012-01-09 Keith Seitz <keiths@redhat.com>
  10481. * Makefile.in (SFILES): Remove wrapper.c.
  10482. (HFILES_NO_SRCDIR): Remove wrapper.h.
  10483. (COMMON_OBS): Remove wrapper.o.
  10484. * cli/cli-interp.c: Don't inlude wrapper.h.
  10485. * corelow.c: Likewise.
  10486. (core_open): Replace gdb_target_find_new_threads with
  10487. TRY_CATCH around target_find_new_threads.
  10488. * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
  10489. * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
  10490. * varobj.c (varobj_create): Likewise for parse_exp_1 and
  10491. evaluate_expression.
  10492. (varobj_set_value): Likewise for evaluate_expression and
  10493. value_assign.
  10494. (install_new_variable): Likewise for value_fetch_lazy.
  10495. (adjust_value_for_child_access): Likewise for value_ind.
  10496. (c_describe_child): Likewise for value_subscript and
  10497. value_ind.
  10498. (c_value_of_root): Likewise for evaluate_expression.
  10499. * wrapper.c: Remove.
  10500. * wrapper.h: Remove.
  10501. 2012-01-09 Doug Evans <dje@google.com>
  10502. * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
  10503. partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
  10504. "abfd" args with "section". All callers updated.
  10505. Error checking code moved ...
  10506. (error_check_comp_unit_head): ... here. New function.
  10507. (read_and_check_type_unit_head): Renamed from read_type_unit_head.
  10508. Delete arg "abfd". New arg "type_offset". All callers updated.
  10509. (create_debug_types_hash_table): Simplify by using
  10510. read_and_check_type_unit_head.
  10511. * parser-defs.h (namecopy): Delete.
  10512. * parse.c (namecopy, namecopy_size): Move into copy_name.
  10513. 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
  10514. Partially fix duplicate .o files after omitting libbfd.a.
  10515. * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
  10516. * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
  10517. * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
  10518. * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
  10519. * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
  10520. * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
  10521. * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
  10522. 2012-01-09 Pedro Alves <palves@redhat.com>
  10523. * MAINTAINERS: Update my email address.
  10524. 2012-01-08 Doug Evans <dje@google.com>
  10525. * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
  10526. n_type_units. Rename type_comp_units to all_type_units.
  10527. All uses updated.
  10528. (add_signatured_type_cu_to_table): Renamed from
  10529. add_signatured_type_cu_to_list. All callers updated.
  10530. * gdbtypes.h (struct cplus_struct_type): Delete member
  10531. nfn_fields_total. All uses removed.
  10532. 2012-01-06 Doug Evans <dje@google.com>
  10533. * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
  10534. to top of file.
  10535. (dwarf2_find_comp_unit): Delete.
  10536. (process_psymtab_comp_unit): Make result "void".
  10537. Delete args buffer, info_ptr, buffer_size, and replace with
  10538. "section". All callers updated.
  10539. (dwarf2_build_psymtabs_hard): Simplify.
  10540. 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
  10541. Thiago Jung Bauermann <bauerman@br.ibm.com>
  10542. * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
  10543. before `struct gdb_exception'.
  10544. * breakpoint.c (update_global_location_list_nothrow)
  10545. (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
  10546. * cp-abi.c (value_rtti_type): Likewise.
  10547. * cp-support.c (cp_validate_operator): Likewise.
  10548. * infrun.c (insert_exception_resume_breakpoint)
  10549. (check_exception_resume, keep_going): Likewise.
  10550. * mi-interp.c (mi_breakpoint_created)
  10551. (mi_breakpoint_modified): Likewise.
  10552. * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
  10553. * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
  10554. (ia64_hpux_handle_dld_breakpoint_1): Likewise.
  10555. 2012-01-05 Doug Evans <dje@google.com>
  10556. * dwarf2read.c (statement_prologue): Delete, unused.
  10557. * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
  10558. * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
  10559. * dwarf2read.c (comp_unit_header): Delete, unused.
  10560. 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
  10561. * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
  10562. * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
  10563. 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
  10564. * infrun.c (normal_stop): Don't skip calling the normal_stop
  10565. observers if the thread was doing a multi-step, but stopped for
  10566. some reason other than stepping.
  10567. 2012-01-05 Pedro Alves <alves.ped@gmail.com>
  10568. * cli/cli-decode.h: Add comments.
  10569. (CMD_LIST_AMBIGUOUS): Moved to command.h
  10570. (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
  10571. (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
  10572. (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
  10573. (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
  10574. (add_com, add_com_alias, add_info, add_info_alias)
  10575. (complete_on_cmdlist, complete_on_enum, help_list): Remove
  10576. declarations.
  10577. * command.h: Add and adjust comments.
  10578. (CMD_LIST_AMBIGUOUS): Moved here.
  10579. (help_cmd, help_cmd_list): Delete declarations.
  10580. 2012-01-04 Doug Evans <dje@google.com>
  10581. * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
  10582. All callers updated.
  10583. (load_full_type_unit): Renamed from read_signatured_type_at_offset.
  10584. Replace all arguments with "per_cu". All callers updated.
  10585. * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
  10586. * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
  10587. New arg "per_cu". All callers updated.
  10588. Delete #if 0'd out code.
  10589. * language.c (binop_result_type): Delete.
  10590. (simple_type, ordered_type, same_type, integral_type): Delete.
  10591. (numeric_type, character_type, string_type, boolean_type): Delete.
  10592. (float_type, structured_type): Delete.
  10593. * language.h: Update.
  10594. 2012-01-04 Tom Tromey <tromey@redhat.com>
  10595. * python/py-value.c (valpy_binop): Initialize 'res_val'.
  10596. 2012-01-04 Joel Brobecker <brobecker@adacore.com>
  10597. * corefile.c (close_exec_file): Delete.
  10598. (reopen_exec_file): Remove commented out code that seems related
  10599. to close_exec_file, which is being deleted here.
  10600. * inferior.h (close_exec_file): Delete.
  10601. * fork-child.c (fork_inferior): Remove call to fork_inferior.
  10602. 2012-01-04 Joel Brobecker <brobecker@adacore.com>
  10603. * ada-lang.c: #include "cli/cli-utils.h".
  10604. (get_selections): Use skip_spaces.
  10605. (ada_get_next_arg): Use skip_spaces and skip_to_space.
  10606. (catch_ada_exception_command_split): Use skip_spaces.
  10607. (ada_decode_assert_location): Likewise.
  10608. 2012-01-04 Joel Brobecker <brobecker@adacore.com>
  10609. * linespec.c (decode_line_internal): Check for C++ or Java
  10610. compound constructs only if the current language is C, C++
  10611. or Java.
  10612. 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
  10613. Revert:
  10614. 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
  10615. Joel Brobecker <brobecker@adacore.com>
  10616. Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
  10617. * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
  10618. 3 times.
  10619. * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
  10620. fall through into AT_ENTRY_POINT.
  10621. (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
  10622. DUMMY_ADDR with it.
  10623. * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
  10624. PPC_INSN_SIZE skip to 3 times.
  10625. 2012-01-04 Joel Brobecker <brobecker@adacore.com>
  10626. * linespec.c (add_minsym): Preserve function descriptors.
  10627. 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
  10628. * breakpoint.c (all_locations_are_pending): Consider locations
  10629. in program spaces executing during startup pending as well.
  10630. 2012-01-04 Joel Brobecker <brobecker@adacore.com>
  10631. Copyright year update in most files of the GDB Project.
  10632. 2012-01-04 Joel Brobecker <brobecker@adacore.com>
  10633. * copyright.sh: Delete.
  10634. * copyright.py: Rewrite.
  10635. 2012-01-04 Joel Brobecker <brobecker@adacore.com>
  10636. * gnulib/extra/update-copyright: New file, imported from gnulib.
  10637. 2012-01-04 Joel Brobecker <brobecker@adacore.com>
  10638. * README (Copyright and License Notices): New section.
  10639. 2012-01-03 Tom Tromey <tromey@redhat.com>
  10640. PR python/12533:
  10641. * python/py-value.c (valpy_dereference, valpy_get_address
  10642. valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
  10643. (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
  10644. (valpy_absolute, valpy_richcompare): Free intermediate values.
  10645. 2011-01-03 Joel Brobecker <brobecker@adacore.com>
  10646. * ada-lang.c: Reformat the copyright notice.
  10647. 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
  10648. * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
  10649. * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
  10650. (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
  10651. (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
  10652. Revert this part of:
  10653. 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
  10654. Build gdb directly from *.o files not using libgdb.a.
  10655. * Makefile.in (COMMON_OBS): Remove solib-target.o.
  10656. 2012-01-02 Joel Brobecker <brobecker@adacore.com>
  10657. * common/gdb_thread_db.h, dbxread.c, environ.c,
  10658. gcore.h, rs6000-tdep.h, s390-nat.c, tic6x-tdep.c:
  10659. Reformat the copyright header.
  10660. 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
  10661. Revert this part of:
  10662. 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
  10663. Remove the gdbtui binary.
  10664. * gdb.c (main): Remove args.interpreter_p initialization.
  10665. * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
  10666. * main.h (struct captured_main_args): Remove interpreter_p.
  10667. 2012-01-02 Joel Brobecker <brobecker@adacore.com>
  10668. * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
  10669. 2012-01-02 Joel Brobecker <brobecker@adacore.com>
  10670. * top.c (print_gdb_version): Update copyright year.
  10671. 2012-01-02 Yao Qi <yao@codesourcery.com>
  10672. * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
  10673. 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
  10674. Joel Brobecker <brobecker@adacore.com>
  10675. Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
  10676. * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
  10677. 3 times.
  10678. * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
  10679. fall through into AT_ENTRY_POINT.
  10680. (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
  10681. DUMMY_ADDR with it.
  10682. * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
  10683. PPC_INSN_SIZE skip to 3 times.
  10684. 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
  10685. * amd64-linux-nat.c (update_debug_registers_callback): New comment on
  10686. the return value.
  10687. * i386-linux-nat.c (update_debug_registers_callback): Likewise.
  10688. 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
  10689. Build gdb directly from *.o files not using libgdb.a.
  10690. * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
  10691. (COMMON_OBS): Remove solib-target.o.
  10692. (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
  10693. (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
  10694. (LIBGDB_OBS, libgdb.a): Move it above.
  10695. * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
  10696. (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
  10697. (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
  10698. (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
  10699. (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
  10700. (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
  10701. (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
  10702. (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
  10703. (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
  10704. (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
  10705. (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
  10706. (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
  10707. (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
  10708. (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
  10709. (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
  10710. (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
  10711. (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
  10712. (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
  10713. (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
  10714. (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
  10715. (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
  10716. (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
  10717. (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
  10718. (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
  10719. (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
  10720. (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
  10721. (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
  10722. 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
  10723. Remove the gdbtui binary.
  10724. * .gitignore (/gdbtui): Remove.
  10725. * Makefile.in (TUI): Remove.
  10726. (SUBDIR_TUI_OBS): Remove tui-main.o.
  10727. (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
  10728. (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
  10729. (tui-main.o): Remove.
  10730. (all_object_files): Remove tui-main.o.
  10731. * NEWS: New note for the gdbtui removal.
  10732. * configure: Rebuilt.
  10733. * configure.ac: No longer add all-tui, clean-tui, install-tui and
  10734. uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
  10735. CONFIG_UNINSTALL respectively.
  10736. * gdb.c (main): Remove args.interpreter_p initialization.
  10737. * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
  10738. * main.h (struct captured_main_args): Remove interpreter_p.
  10739. * tui/tui-main.c: Remove.
  10740. 2012-01-01 Doug Evans <dje@google.com>
  10741. * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
  10742. (dwarf2_physname, read_import_statement): Ditto.
  10743. (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
  10744. (process_structure_scope read_subroutine_type): Ditto.
  10745. (read_typedef, load_partial_dies, read_partial_die): Ditto.
  10746. (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
  10747. (dwarf2_fetch_die_location_block): Ditto.
  10748. (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
  10749. * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
  10750. All callers updated.
  10751. (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
  10752. (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
  10753. (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
  10754. * dwarf2read.c (load_cu): Move assert to more useful location.
  10755. * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
  10756. All callers updated.
  10757. * dwarf2read.c (dwarf2_per_objfile): Add comment.
  10758. (dwarf2_elf_names): Minor reformat.
  10759. (dwarf2_per_cu_data): Tweak comment.
  10760. (dwarf2_read_section): Fix comment.
  10761. (create_all_comp_units): Fix comment.
  10762. (load_full_comp_unit): Fix comment.
  10763. (process_full_comp_unit): Fix comment.
  10764. (read_signatured_type): Fix comment.
  10765. For older changes see ChangeLog-2011.
  10766. Local Variables:
  10767. mode: change-log
  10768. left-margin: 8
  10769. fill-column: 74
  10770. version-control: never
  10771. coding: utf-8
  10772. End: