ChangeLog-2011 467 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658
  1. 2011-12-30 Doug Evans <dje@google.com>
  2. * dwarf2read.c (read_typedef): Guard against self-referential typedefs.
  3. 2011-12-28 Jan Kratochvil <jan.kratochvil@redhat.com>
  4. * gdbarch.sh (max_insn_length): Extend the comment by unit.
  5. * gdbarch.h: Regenerate.
  6. 2011-12-28 Joel Brobecker <brobecker@adacore.com>
  7. * varobj.c (varobj_update): Minor reformatting, putting the function
  8. name at the start of the next line.
  9. 2011-12-27 Doug Evans <dje@google.com>
  10. * dwarf2read.c (struct dwarf2_cu): Delete members first_fn, last_fn,
  11. cached_fn.
  12. (struct function_range): Delete.
  13. (initialize_cu_func_list, add_to_cu_func_list): Delete. All callers
  14. updated.
  15. (check_cu_functions): Ditto.
  16. 2011-12-27 Mark Kettenis <kettenis@gnu.org>
  17. * inf-ptrace.c [PT_IO && PIOD_READ_AUXV]
  18. (inf_ptrace_xfer_partial): Implement TARGET_OBJECT_AUXV.
  19. (inf_ptrace_auxv_parse): New function.
  20. (inf_ptrace_target): Initialize to_auxv_parse field.
  21. 2011-12-27 Joel Brobecker <brobecker@adacore.com>
  22. * ada-lang.c (should_use_wild_match): New function.
  23. (ada_lookup_simple_minsym): Use should_use_wild_match.
  24. Minor simplification. Add comment.
  25. (ada_lookup_symbol_list): Use should_use_wild_match.
  26. Minor simplification.
  27. 2011-12-27 Joel Brobecker <brobecker@adacore.com>
  28. * py-finishbreakpoint.c (bpfinishpy_init): Replace call to
  29. sprintf by call to xsnprintf.
  30. 2011-12-27 Joel Brobecker <brobecker@adacore.com>
  31. * linespec.c (struct collect_minsyms) [list_mode]: New field.
  32. (add_minsym): Ignore data symbols if not in list mode.
  33. (search_minsyms_for_name): Set local.list_mode.
  34. 2011-12-27 Joel Brobecker <brobecker@adacore.com>
  35. * utils.c (gdb_realpath): Add better support for Windows hosts.
  36. 2011-12-23 Kevin Pouget <kevin.pouget@st.com>
  37. Introduce gdb.FinishBreakpoint in Python.
  38. * NEWS: Add entry for FinishBreakpoint.
  39. * Makefile.in (SUBDIR_PYTHON_OBS): Add py-finishbreakpoint.o.
  40. (SUBDIR_PYTHON_SRCS): Add python/py-finishbreakpoint.c.
  41. Add build rule for this file.
  42. * infcmd.c (print_return_value): Split to create get_return_value.
  43. (get_return_value): New function based on print_return_value. Handle
  44. case where stop_registers are not set.
  45. * inferior.h (get_return_value): New prototype.
  46. * python/py-breakpoint.c (bppy_pending_object): Make non-static.
  47. (gdbpy_breakpoint_created): Set is_py_finish_bp is necessary.
  48. (struct breakpoint_object): Move to python-internal.h
  49. (BPPY_REQUIRE_VALID): Likewise.
  50. (BPPY_SET_REQUIRE_VALID): Likewise.
  51. (gdbpy_breakpoint_created): Initialize is_finish_bp.
  52. (gdbpy_should_stop): Add pre/post hooks before/after calling stop
  53. method.
  54. * python/python-internal.h (breakpoint_object_type): Add as extern.
  55. (bppy_pending_object): Likewise.
  56. (typedef struct breakpoint_object) Removed.
  57. (struct breakpoint_object): Moved from py-breakpoint.c.
  58. Add field is_finish_bp.
  59. (BPPY_REQUIRE_VALID): Moved from py-breakpoint.c.
  60. (BPPY_SET_REQUIRE_VALID): Likewise.
  61. (frame_object_to_frame_info): New prototype.
  62. (gdbpy_initialize_finishbreakpoints): New prototype.
  63. (bpfinishpy_is_finish_bp): Likewise.
  64. (bpfinishpy_pre_stop_hook): Likewise.
  65. (bpfinishpy_post_stop_hook): Likewise.
  66. * python/py-finishbreakpoint.c: New file.
  67. * python/py-frame.c(frame_object_to_frame_info): Make non-static and
  68. accept PyObject instead of frame_object.
  69. (frapy_is_valid): Don't cast to frame_object.
  70. (frapy_name): Likewise.
  71. (frapy_type): Likewise.
  72. (frapy_unwind_stop_reason): Likewise.
  73. (frapy_pc): Likewise.
  74. (frapy_block): Likewise.
  75. (frapy_function): Likewise.
  76. (frapy_older): Likewise.
  77. (frapy_newer): Likewise.
  78. (frapy_find_sal): Likewise.
  79. (frapy_read_var): Likewise.
  80. (frapy_select): Likewise.
  81. * python/python.c (gdbpy_is_stopped_at_finish_bp): New noop function.
  82. (_initialize_python): Add gdbpy_initialize_finishbreakpoints.
  83. * python/python.h: Include breakpoint.h
  84. (gdbpy_is_stopped_at_finish_bp): New prototype.
  85. 2011-12-22 Tom Tromey <tromey@redhat.com>
  86. PR python/12533:
  87. * value.h (release_value_or_incref): Declare.
  88. * value.c (struct value) <released>: New field.
  89. (free_all_values, release_value, value_release_to_mark): Update
  90. 'released'.
  91. (release_value_or_incref): New function.
  92. * python/py-value.c (valpy_new): Use release_value_or_incref.
  93. (value_to_value_object): Likewise.
  94. * varobj.c (install_new_value): Move value_incref earlier.
  95. 2011-12-22 Tom Tromey <tromey@redhat.com>
  96. * value.c (struct value) <modifiable, lazy, optimized_out,
  97. initialized, stack>: Now bitfields. Move to top.
  98. <reference_count>: Move earlier.
  99. 2011-12-21 Tom Tromey <tromey@redhat.com>
  100. * minsyms.h: Rearrange. Document header and all functions.
  101. * minsyms.c: Move some comments to minsyms.h.
  102. 2011-12-21 Tom Tromey <tromey@redhat.com>
  103. * symtab.h: Include minsyms.h.
  104. (prim_record_minimal_symbol, prim_record_minimal_symbol_full)
  105. (prim_record_minimal_symbol_and_info, msymbol_hash_iw)
  106. (msymbol_hash, SYMBOL_HASH_NEXT, msymbol_objfile)
  107. (lookup_minimal_symbol, lookup_minimal_symbol_text)
  108. (lookup_minimal_symbol_solib_trampoline)
  109. (lookup_minimal_symbol_by_pc_name, lookup_minimal_symbol_by_pc)
  110. (iterate_over_minimal_symbols, lookup_minimal_symbol_and_objfile)
  111. (lookup_minimal_symbol_by_pc_section)
  112. (lookup_solib_trampoline_symbol_by_pc)
  113. (init_minimal_symbol_collection)
  114. (make_cleanup_discard_minimal_symbols, install_minimal_symbols)
  115. (msymbols_sort): Move to minsyms.h.
  116. * objfiles.c (terminate_minimal_symbol_table): Move to minsyms.c.
  117. * minsyms.c (terminate_minimal_symbol_table): Move from
  118. objfiles.c.
  119. * minsyms.h: New file.
  120. 2011-12-21 Tom Tromey <tromey@redhat.com>
  121. * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence): Use
  122. ALL_OBJFILE_MSYMBOLS.
  123. (hppa_hpux_find_dummy_bpaddr): Likewise.
  124. * jit.c (jit_object_close_impl): Use
  125. terminate_minimal_symbol_table.
  126. 2011-12-21 Tom Tromey <tromey@redhat.com>
  127. * elfread.c (elf_symtab_read): Put the filename in the filename
  128. bcache.
  129. 2011-12-21 Tom Tromey <tromey@redhat.com>
  130. * symtab.h (struct minimal_symbol) <filename>: Now const.
  131. 2011-12-21 Ulrich Weigand <ulrich.weigand@linaro.org>
  132. PR tdep/12797
  133. * arm-tdep.c (arm_return_value): Handle complex types.
  134. 2011-12-21 Andreas Schwab <schwab@linux-m68k.org>
  135. * ppc-linux-nat.c (create_watchpoint_request): Only use ranged
  136. watchpoints when supported.
  137. 2011-12-21 Jan Kratochvil <jan.kratochvil@redhat.com>
  138. * symfile.c (objfilep): New typedef and new DEF_VEC_P.
  139. (reread_symbols): Remove variable reread_one, new variables
  140. new_objfiles, all_cleanups and ix. Use new_objfiles instead of
  141. reread_one. Push changed objfiles to new_objfiles, call
  142. observer_notify_new_objfile for them later.
  143. 2011-12-21 Joel Brobecker <brobecker@adacore.com>
  144. * psymtab.c (expand_symtabs_matching_via_partial): Match
  145. the partial symbols using their SYMBOL_SEARCH_NAME.
  146. * symfile.h (struct quick_symbol_functions): Udate the
  147. documentation of expand_symtabs_matching.
  148. * dwarf2read.c (write_psymbols): Use SYMBOL_SEARCH_NAME instead
  149. of SYMBOL_NATURAL_NAME in index entry.
  150. 2011-12-21 Joel Brobecker <brobecker@adacore.com>
  151. * linespec.c (locate_first_half): Add handling of Ada operators
  152. when the current language is Ada.
  153. 2011-12-21 Joel Brobecker <brobecker@adacore.com>
  154. * objfiles.c (insert_section_p): Do not detect overlay sections
  155. if overlay debugging is off.
  156. 2011-12-21 Joel Brobecker <brobecker@adacore.com>
  157. * ada-lang.c (is_name_suffix): Add handling of "TKB" suffixes.
  158. Update function documentation.
  159. * dictionary.c (dict_hash): Ignore "TKB" suffixes in hash
  160. computation.
  161. 2011-12-20 Pedro Alves <alves.ped@gmail.com>
  162. Jan Kratochvil <jan.kratochvil@redhat.com>
  163. * linux-nat.c (add_lwp): Don't call linux_nat_new_thread on the
  164. first LWP.
  165. * amd64-linux-nat.c (update_debug_registers_callback): Instantiate
  166. `lwp->arch_private' if NULL.
  167. (amd64_linux_prepare_to_resume): Do nothing if `lwp->arch_private'
  168. is NULL.
  169. * i386-linux-nat.c (update_debug_registers_callback): Instantiate
  170. `lwp->arch_private' if NULL.
  171. (i386_linux_prepare_to_resume): Do nothing if `lwp->arch_private'
  172. is NULL.
  173. 2011-12-19 Doug Evans <dje@google.com>
  174. * python/py-auto-load.c (info_auto_load_scripts): Pass address of
  175. scripts vector to collect_matching_scripts.
  176. (collect_matching_scripts): Update.
  177. 2011-12-19 Jan Kratochvil <jan.kratochvil@redhat.com>
  178. * symfile.c (reread_symbols): Move free_objfile_separate_debug,
  179. preserve_values, sym_finish and clear_objfile_data calls before BFD
  180. close. Move free_objfile_separate_debug as the very first call. New
  181. comment on the ordering.
  182. 2011-12-19 Ulrich Weigand <uweigand@de.ibm.com>
  183. * s390-tdep.c (s390_push_dummy_call): Set addressing mode bit
  184. in return PSWA.
  185. 2011-12-19 Tom Tromey <tromey@redhat.com>
  186. * symtab.h (add_minsym_to_hash_table): Don't declare.
  187. * minsyms.c (add_minsym_to_hash_table): Now static.
  188. 2011-12-19 Joel Brobecker <brobecker@adacore.com>
  189. * elfread.c (elf_symtab_read): Ignore undefined symbols with
  190. nonzero addresses if they do not correspond to a .plt section
  191. when one is available in the objfile.
  192. 2011-12-17 Andreas Schwab <schwab@linux-m68k.org>
  193. * cp-name-parser.y (cp_merge_demangle_parse_infos): Don't use
  194. obstack_empty_p.
  195. 2011-12-17 Mark Kettenis <kettenis@gnu.org>
  196. * amd64obsd-tdep.c (amd64obsd_init_abi): Don't set
  197. regset_from_core_section.
  198. (amd64obsd_core_init_abi): New function that sets
  199. regset_from_core_section.
  200. (_initialize_amd64obsd_tdep): Use amd64obsd_core_init_abi for
  201. traditional core dumps.
  202. 2011-12-17 Mark Kettenis <kettenis@gnu.org>
  203. * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Detect new signal
  204. trampoline to be introduced in OpenBSD 5.0.
  205. 2011-12-17 Jan Kratochvil <jan.kratochvil@redhat.com>
  206. Fix build regression from the PR threads/10729 fix.
  207. * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint): Use LP,
  208. not LP->PTID.
  209. 2011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
  210. * mi/mi-main.c (mi_cmd_list_thread_groups): Rename `optind' and
  211. `optarg' to `oind' and `oarg', respectively(-Wshadow).
  212. (mi_cmd_data_read_memory): Ditto.
  213. (mi_cmd_data_read_memory_bytes): Ditto.
  214. (mi_cmd_data_write_memory): Ditto.
  215. 2011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
  216. * mi/mi-getopt.c (mi_getopt): Rename `optind' and `optarg' to
  217. `oind' and `oarg', respectively(-Wshadow).
  218. (mi_valid_noargs): Ditto.
  219. 2011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
  220. * mi/mi-cmd-var.c (print_varobj): Rename `optind' and `optarg' to
  221. `oind' and `oarg', respectively(-Wshadow).
  222. 2011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
  223. * mi/mi-cmd-target.c (mi_cmd_target_file_get): Rename `optind' and
  224. `optarg' to `oind' and `oarg', respectively(-Wshadow).
  225. (mi_cmd_target_file_put): Ditto.
  226. (mi_cmd_target_file_delete): Ditto.
  227. 2011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
  228. * mi/mi-cmd-env.c (mi_cmd_env_path): Rename `optind' and
  229. `optarg' to `oind' and `oarg', respectively(-Wshadow).
  230. (mi_cmd_env_dir): Ditto.
  231. 2011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
  232. * mi/mi-cmd-disas.c (mi_cmd_disassemble): Rename `optind' and
  233. `optarg' to `oind' and `oarg', respectively(-Wshadow).
  234. 2011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
  235. * mi/mi-cmd-break.c (mi_cmd_break_insert): Rename `optind' and
  236. `optparg' to `oind' and `oarg', respectively(-Wshadow).
  237. (mi_cmd_break_watch): Ditto.
  238. 2011-12-16 Tom Tromey <tromey@redhat.com>
  239. * linespec.c (collect_symbols): Call maybe_add_address after
  240. calling symbol_to_sal.
  241. (minsym_found): Call maybe_add_address here.
  242. (search_minsyms_for_name): Don't call maybe_add_address.
  243. 2011-12-16 Tom Tromey <tromey@redhat.com>
  244. * linespec.c (struct collect_info) <objfile>: Remove field.
  245. (decode_objc): Update.
  246. (find_method): Update.
  247. (decode_variable): Update.
  248. (struct minsym_and_objfile): New.
  249. (struct collect_minsyms): New.
  250. (classify_mtype): New function.
  251. (compare_msyms): Likewise.
  252. (add_minsym): Likewise.
  253. (check_minsym): Remove.
  254. (search_minsyms_for_name): Sort minsyms and apply only those with
  255. top priority.
  256. 2011-12-16 Tom Tromey <tromey@redhat.com>
  257. * cli/cli-cmds.c (filter_sals): Filter out sals with NULL symtab.
  258. 2011-12-16 Pedro Alves <pedro@codesourcery.com>
  259. * inf-loop.c: Include top.h.
  260. (inferior_event_handler): Call check_frame_language.
  261. * top.c (check_frame_language_change): New, factored out from ...
  262. (execute_command): ... this. Use check_frame_language_change.
  263. * top.h (check_frame_language_change): Declare.
  264. 2011-12-16 asmwarrior <asmwarrior@gmail.com> (obvious fix)
  265. * windows-nat.c (cygwin_get_dr, cygwin_get_dr7): Add missing
  266. prototypes.
  267. 2011-12-16 Doug Evans <dje@google.com>
  268. * NEWS: Add entry for stdio gdbserver.
  269. 2011-12-16 Phil Muldoon <pmuldoon@redhat.com>
  270. * python/python.c: Define python_excp_enums.
  271. (eval_python_from_control_command): Do not call gdbpy_print_stack.
  272. (python_command): Ditto.
  273. (gdbpy_print_stack): Rewrite to use new enum constants.
  274. (maint_set_python): Remove function.
  275. (maint_show_python): Ditto.
  276. (_initialize_python): Do not add "maint" commands. Add "set/show
  277. python print-stack commands".
  278. * NEWS: Update to reflect removal for "maint set/show
  279. print-stack"
  280. 2011-12-15 Doug Evans <dje@google.com>
  281. * exceptions.c (catcher_list_size): New function.
  282. (last_message): Delete.
  283. (exception_messages, exception_messages_size): New static globals.
  284. (throw_it): Use exception_messages array to handle nested calls.
  285. 2011-12-15 Tom Tromey <tromey@redhat.com>
  286. * symfile.c (symbol_file_add_with_addrs_or_offsets): Remove bad
  287. do_cleanups call.
  288. 2011-12-14 Doug Evans <dje@google.com>
  289. * defs.h (wait_to_die_with_timeout): Declare.
  290. * utils.c: #include "gdb_wait.h".
  291. (sigalrm_handler, wait_to_die_with_timeout): New functions.
  292. * ser-pipe.c: Don't #include "gdb_wait.h".
  293. (pipe_close): Give child a chance to die on its own after closing
  294. its stdin before SIGTERM'ing it.
  295. 2011-12-14 Joel Brobecker <brobecker@adacore.com>
  296. Tom Tromey <tromey@redhat.com>
  297. * ada-lang.c (add_nonlocal_symbols): Initialize data to
  298. all zeros. Remove setting of data.arg_sym to NULL.
  299. 2011-12-14 Pedro Alves <pedro@codesourcery.com>
  300. PR threads/10729
  301. * linux-nat.c (linux_nat_new_thread): Change parameter to an lwp
  302. pointer.
  303. (linux_nat_prepare_to_resume): New global.
  304. (lwp_free): New.
  305. (purge_lwp_list): Use it.
  306. (add_lwp): Call linux_nat_new_thread even on the first LWP.
  307. Adjust to interface change.
  308. (delete_lwp): Call lwp_free instead of xfree.
  309. (detach_callback, linux_nat_detach, resume_lwp, linux_nat_resume)
  310. (linux_handle_syscall_trap, linux_handle_extended_wait)
  311. (linux_nat_filter_event, resume_stopped_resumed_lwps): Call
  312. linux_nat_prepare_to_resume before resuming.
  313. (linux_stop_lwp): New.
  314. (linux_nat_set_new_thread): Adjust.
  315. (linux_nat_set_prepare_to_resume): New.
  316. * linux-nat.h (struct arch_lwp_info): Forward declare.
  317. (struct lwp_info) <arch_private>: New field.
  318. (linux_stop_lwp): Declare.
  319. (linux_nat_set_new_thread): Adjust.
  320. (linux_nat_set_prepare_to_resume): New.
  321. * i386-nat.c (DR_NADDR, DR_STATUS, DR_CONTROL)
  322. (struct i386_debug_reg_state): Move to i386-nat.h.
  323. (dr_mirror): Comment.
  324. (i386_debug_reg_state): New.
  325. (i386_update_inferior_debug_regs): Simplify.
  326. (i386_stopped_data_address): Use the debug register state from the
  327. inferior, not from the local cache.
  328. * i386-nat.h (struct i386_dr_low_type): Delete reset_addr and
  329. unset_status fields. New get_addr and get_control fields.
  330. (DR_FIRSTADDR, DR_LASTADDR, DR_CONTROL): Moved from i386-nat.c.
  331. (DR_NADDR, DR_STATUS): New.
  332. (struct i386_debug_reg_state): Moved from i386-nat.c.
  333. * amd64-linux-nat.c (struct arch_lwp_info): New.
  334. (amd64_linux_dr): Delete global.
  335. (amd64_linux_dr_get_addr): New.
  336. (amd64_linux_dr_get_control): New.
  337. (amd64_linux_dr_unset_status): Delete.
  338. (amd64_linux_dr_set_addr): Reimplement.
  339. (amd64_linux_dr_reset_addr): Delete.
  340. (update_debug_registers_callback): New.
  341. (amd64_linux_dr_set_control): Reimplement.
  342. (amd64_linux_dr_set_addr): Reimplement.
  343. (amd64_linux_prepare_to_resume): New.
  344. (amd64_linux_new_thread): Change parameter to an lwp pointer.
  345. Reimplement.
  346. (_initialize_amd64_linux_nat): No longer install
  347. i386_dr_low.reset_addr and i386_dr_low.unset_status. Install
  348. amd64_linux_dr_get_control as i386_dr_low.get_control. Install
  349. amd64_linux_dr_get_addr as i386_dr_low.get_addr. Install
  350. amd64_linux_prepare_to_resume.
  351. * i386-linux-nat.c (DR_FIRSTADDR, DR_LASTADDR, DR_STATUS)
  352. (DR_CONTROL): Delete.
  353. (struct arch_lwp_info): New.
  354. (i386_linux_dr): Delete global.
  355. (i386_linux_dr_set_control): Reimplement.
  356. (i386_linux_dr_get_addr): New.
  357. (i386_linux_dr_set_addr): Reimplement.
  358. (i386_linux_dr_get_control): New.
  359. (update_debug_registers_callback): New.
  360. (i386_linux_dr_unset_status): Delete.
  361. (i386_linux_dr_set_addr): Reimplement.
  362. (i386_linux_prepare_to_resume): New.
  363. (i386_linux_new_thread): Change parameter to an lwp pointer.
  364. Reimplement.
  365. (_initialize_i386_linux_nat): No longer install
  366. i386_dr_low.reset_addr and i386_dr_low.unset_status. Install
  367. i386_linux_dr_get_control as i386_dr_low.get_control. Install
  368. i386_linux_dr_get_addr as i386_dr_low.get_addr. Install
  369. i386_linux_prepare_to_resume.
  370. * arm-linux-nat.c (arm_linux_new_thread): Change parameter to an
  371. lwp pointer. Adjust.
  372. * ia64-linux-nat.c (ia64_linux_new_thread): Likewise.
  373. * mips-linux-nat.c (mips_linux_new_thread): Likewise.
  374. * ppc-linux-nat.c (ppc_linux_new_thread): Likewise.
  375. * s390-nat.c (s390_fix_watch_points): Likewise.
  376. * i386-darwin-nat.c (DR_FIRSTADDR, DR_LASTADDR, DR_STATUS)
  377. (DR_CONTROL): Delete.
  378. (i386_darwin_dr_reset_addr): Delete.
  379. (i386_darwin_dr_get_addr): New.
  380. (i386_darwin_dr_get_control): New.
  381. * go32-nat.c
  382. (go32_get_dr7, go32_get_dr): New.
  383. (init_go32_ops): No longer install i386_dr_low.reset_addr.
  384. Install go32_get_dr7 as i386_dr_low.get_control. Install
  385. go32_get_dr as i386_dr_low.get_addr.
  386. * i386bsd-nat.c (i386bsd_dr_get): New.
  387. (i386bsd_dr_reset_addr): Delete.
  388. (i386bsd_dr_get_addr): New.
  389. (i386bsd_dr_get_status): Use i386bsd_dr_get.
  390. (i386bsd_dr_get_control): New.
  391. * i386bsd-nat.h (i386bsd_dr_reset_addr): Delete.
  392. (i386bsd_dr_get_addr): New.
  393. (i386bsd_dr_get_control): New.
  394. * i386fbsd-nat.c (_initialize_i386fbsd_nat): No longer install
  395. i386_dr_low.reset_addr and i386_dr_low.unset_status. Install
  396. i386bsd_dr_get_control as i386_dr_low.get_control. Install
  397. i386bsd_dr_get_addr as i386_dr_low.get_addr.
  398. * windows-nat.c (init_windows_ops): No longer install
  399. i386_dr_low.reset_addr and i386_dr_low.unset_status. Install
  400. cygwin_get_dr7 as i386_dr_low.get_control. Install cygwin_get_dr
  401. as i386_dr_low.get_addr.
  402. (cygwin_get_dr): New.
  403. (cygwin_get_dr7): New.
  404. 2011-12-14 Pedro Alves <pedro@codesourcery.com>
  405. * ia64-tdep.c (ia64_memory_remove_breakpoint): Use
  406. target_write_raw_memory.
  407. * m32r-tdep.c (m32r_memory_remove_breakpoint): Use
  408. target_write_raw_memory.
  409. * microblaze-linux-tdep.c
  410. (microblaze_linux_memory_remove_breakpoint): Use
  411. target_write_raw_memory.
  412. * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Use
  413. target_write_raw_memory.
  414. 2011-12-14 Joel Brobecker <brobecker@adacore.com>
  415. * linespec.c (decode_line_internal): Make static.
  416. 2011-12-14 Yao Qi <yao@codesourcery.com>
  417. * breakpoint.c (create_breakpoint): Set canonical.addr_string
  418. for static tracepoint.
  419. 2011-12-13 Joel Brobecker <brobecker@adacore.com>
  420. GDB 7.4 branch created (branch timestamp: 2011-12-13 13:00 UTC)
  421. * version.in: Bump version to 7.4.50.20111213-cvs.
  422. 2011-12-13 Joel Brobecker <brobecker@adacore.com>
  423. * NEWS: Create a new section for the next release branch.
  424. Rename the section of the current branch, now that it has
  425. been cut.
  426. 2011-12-11 Joel Brobecker <brobecker@adacore.com>
  427. * ada-lang.c (ada_exception_support_info_sniffer): Improve
  428. error message.
  429. 2011-12-11 Joel Brobecker <brobecker@adacore.com>
  430. * ada-lang.c (struct ada_inferior_data) [exception_info]:
  431. New field.
  432. (exception_info): Delete.
  433. (ada_exception_support_info_sniffer): Get exception_support_info
  434. data from our per-inferior data. Adjust code accordingly.
  435. (ada_unhandled_exception_name_addr_from_raise): Likewise.
  436. (ada_exception_name_addr_1, ada_exception_sym_name): Ditto.
  437. (ada_executable_changed_observer): Delete.
  438. (_initialize_ada_language): Remove call to
  439. observer_attach_executable_changed.
  440. 2011-12-11 Joel Brobecker <brobecker@adacore.com>
  441. * ada-lang.c (ada_has_this_exception_support): Raise an error
  442. if we could find the Ada exception hook in the Ada runtime,
  443. but no debugging info for that hook.
  444. 2011-12-11 Joel Brobecker <brobecker@adacore.com>
  445. * ada-lang.c (ada_has_this_exception_support): New function,
  446. extracted out of ada_exception_sal and ada_exception_sal.
  447. (ada_exception_support_info_sniffer): Simplify by using
  448. ada_has_this_exception_support.
  449. (ada_exception_sal): Replace unnecessary checks by assertions.
  450. Minor simplifications.
  451. 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
  452. * breakpoint.c (update_global_location_list): Remove nested
  453. definition of `b'(-Wshadow).
  454. 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
  455. * breakpoint.c (insert_breakpoint_locations): Rename `error' to
  456. `error_flag'(-Wshadow).
  457. 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
  458. * bfd-target.c (target_bfd_reopen): Rename `bfd' to
  459. `abfd'(-Wshadow).
  460. 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
  461. * annotate.c (annotate_array_section_begin): Rename `index' to
  462. `idx'(-Wshadow).
  463. 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
  464. * amd64-tdep.c (amd64_get_unused_input_int_reg): Rename `index' to
  465. `idx'(-Wshadow).
  466. 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
  467. * amd64-linux-tdep.c (amd64_canonicalize_syscall): Rename
  468. `syscall' to `syscall_number'(-Wshadow).
  469. 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
  470. * ada-lang.c (remove_extra_symbols): Rename `remove' to
  471. `remove_p'(-Wshadow).
  472. 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
  473. * ada-exp.y (write_var_or_type): Rename nested `renaming' to
  474. `ren_sym'(-Wshadow).
  475. 2011-12-10 Doug Evans <dje@google.com>
  476. * dwarf2read.c (dwarf2_per_cu_data): Rename debug_type_section to
  477. debug_types_section. All uses updated.
  478. (partial_read_comp_unit_head): Rename parameter is_debug_type_section
  479. to is_debug_types_section.
  480. * python/py-auto-load.c (source_section_scripts): Call xfree
  481. instead of free.
  482. 2011-12-10 Hui Zhu <teawater@gmail.com>
  483. Yao Qi <yao@codesourcery.com>
  484. * tracepoint.c (start_tracing): Clear `inserted' flag.
  485. 2011-12-10 Hui Zhu <teawater@gmail.com>
  486. * tracepoint.c (create_tsv_from_upload): Change sprintf to xstrprintf.
  487. 2011-12-09 Andrey Smirnov <andrew.smirnov@gmail.com>
  488. * breakpoint.c (bp_loc_is_permanent): Rename `brk' to
  489. `bpoint'(-Wshadow).
  490. 2011-12-09 Andrey Smirnov <andrew.smirnov@gmail.com>
  491. * breakpoint.c (update_static_tracepoint): Rename nested `sal' and
  492. `marker' variables to `sal2' and `tpmarker' respectively
  493. (-Wshadow).
  494. 2011-12-09 Andrew Pinski <apinski@cavium.com>
  495. * linespec.c (hash_address_entry): Use iterative_hash_object on each
  496. field rather than the struct itself.
  497. 2011-12-09 Tom Tromey <tromey@redhat.com>
  498. * breakpoint.c (compare_breakpoints): New function.
  499. (clear_command): Remove duplicate breakpoints. Properly clean
  500. up.
  501. 2011-12-08 Maciej W. Rozycki <macro@mips.com>
  502. Maciej W. Rozycki <macro@codesourcery.com>
  503. * mips-tdep.c (mips_skip_mips16_trampoline_code): Sign-extend
  504. address chunks retrieved from decoded lui/addiu pairs.
  505. 2011-12-08 Maciej W. Rozycki <macro@codesourcery.com>
  506. * mips-tdep.c (extended_offset): Correct calculation.
  507. (unpack_mips16): Correct bitfield positions used for extraction
  508. of the immediate argument; fix sign-extension of same.
  509. (extended_mips16_next_pc): Correct B instruction's offset
  510. calculation. Correct register decoding of the BEQZ and BNEZ
  511. as well as jump-register instructions. Handle compact jumps.
  512. 2011-12-08 Tom Tromey <tromey@redhat.com>
  513. * objfiles.h (struct objfile): Remove obsolete comment.
  514. * objfiles.c (build_objfile_section_table): Remove obsolete
  515. comment.
  516. 2011-12-07 Stan Shebs <stan@codesourcery.com>
  517. * MAINTAINERS (Responsible Maintainers): Add Yao Qi as
  518. maintainer of the tic6x target.
  519. 2011-12-07 Ulrich Weigand <ulrich.weigand@linaro.org>
  520. * arm-tdep.h (arm_deal_with_atomic_sequence): Add prototype.
  521. * arm-tdep.c (thumb_deal_with_atomic_sequence_raw): New function.
  522. (arm_deal_with_atomic_sequence_raw): Likewise.
  523. (arm_deal_with_atomic_sequence): Likewise.
  524. (arm_software_single_step): Call it.
  525. * arm-linux-tdep.c (arm_linux_software_single_step): Likewise.
  526. 2011-12-07 Ulrich Weigand <uweigand@de.ibm.com>
  527. * s390-tdep.c: Replace "Linux" by "GNU/Linux" in comments
  528. where appropriate.
  529. * s390-tdep.h: Likewise.
  530. 2011-12-07 Tristan Gingold <gingold@adacore.com>
  531. * machoread.c (macho_symtab_read): Do not consider N_OPT as
  532. a debugging stab. Improve complaint message.
  533. 2011-12-07 Maciej W. Rozycki <macro@codesourcery.com>
  534. * mips-tdep.c (mips32_scan_prologue): Only update the immediate
  535. load adjustment if still within the prologue.
  536. 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
  537. * mips-tdep.c (mips32_next_pc): Fix floating point condition
  538. code mask.
  539. 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
  540. * mips-tdep.c (deal_with_atomic_sequence): Fix the handling
  541. of BLTZ* and BGEZ* instructions.
  542. 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
  543. * mips-tdep.c (mips_pc_is_mips16): Reverse the order of checks
  544. performed to determine whether an address refers to standard
  545. MIPS or MIPS16 code.
  546. (mips16_next_pc): Use mips_pc_is_mips16 instead of
  547. is_mips16_addr.
  548. 2011-12-06 Pedro Alves <pedro@codesourcery.com>
  549. * breakpoint.c (breakpoint_restore_shadows): Rename to ...
  550. (breakpoint_xfer_memory): ... this. Change prototype. Handle
  551. memory writes too.
  552. * breakpoint.h (breakpoint_restore_shadows): Delete.
  553. (breakpoint_xfer_memory): Declare.
  554. * mem-break.c (default_memory_insert_breakpoint)
  555. (default_memory_remove_breakpoint): Use target_write_raw_memory.
  556. (memory_xfer_partial): Rename to ...
  557. (memory_xfer_partial_1): ... this. Don't mask out breakpoints
  558. here.
  559. (memory_xfer_partial): New.
  560. (target_write_raw_memory): New.
  561. * target.h (target_write_raw_memory): New.
  562. 2011-12-06 Doug Evans <dje@google.com>
  563. * linespec.c (decode_dollar): Avoid "may be used uninitialized" warning.
  564. 2011-12-06 Joel Brobecker <brobecker@acacore.com>
  565. * language.h (struct language_defn): Add new component
  566. la_symbol_name_compare.
  567. * symfile.h (struct quick_symbol_functions): Update the profile
  568. of parameter "name_matcher" for the expand_symtabs_matching
  569. method. Update the documentation accordingly.
  570. * ada-lang.h (ada_name_for_lookup): Add declaration.
  571. * ada-lang.c (ada_name_for_lookup): New function, extracted out
  572. from ada_iterate_over_symbols.
  573. (ada_iterate_over_symbols): Do not encode symbol name anymore.
  574. (ada_expand_partial_symbol_name): Adjust profile.
  575. (ada_language_defn): Add value for la_symbol_name_compare field.
  576. * linespec.c: #include "ada-lang.h".
  577. (iterate_name_matcher): Add language parameter. Replace call
  578. to strcmp_iw by call to language->la_symbol_name_compare.
  579. (decode_variable): Encode COPY if current language is Ada.
  580. * dwarf2read.c (dw2_expand_symtabs_matching): Adjust profile
  581. of name_matcher parameter. Adjust call to name_matcher.
  582. * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
  583. (expand_partial_symbol_names): Update profile of parameter "fun".
  584. * psymtab.h (expand_partial_symbol_names): Update profile of
  585. parameter "fun".
  586. * symtab.c (demangle_for_lookup): Update function documentation.
  587. (search_symbols_name_matches): Add language parameter.
  588. (expand_partial_symbol_name): Likewise.
  589. * c-lang.c (c_language_defn, cplus_language_defn)
  590. (asm_language_defn, minimal_language_defn): Add value for
  591. la_symbol_name_compare field.
  592. * d-lang.c (d_language_defn): Likewise.
  593. * f-lang.c (f_language_defn): Ditto.
  594. * jv-lang.c (java_language_defn): Ditto.
  595. * m2-lang.c (m2_language_defn): Ditto.
  596. * objc-lang.c (objc_language_defn): Ditto.
  597. * opencl-lang.c (opencl_language_defn): Ditto.
  598. * p-lang.c (pascal_language_defn): Ditto.
  599. * language.c (unknown_language_defn, auto_language_defn)
  600. (local_language_defn): Ditto.
  601. 2011-12-06 Tom Tromey <tromey@redhat.com>
  602. * linespec.c (iterate_over_all_matching_symtabs): Use
  603. LA_ITERATE_OVER_SYMBOLS.
  604. (lookup_prefix_sym, add_matching_symbols_to_info): Likewise.
  605. (find_function_symbols, decode_variable): Remove Ada special
  606. case.
  607. * language.h (struct language_defn) <la_iterate_over_symbols>: New
  608. field.
  609. (LA_ITERATE_OVER_SYMBOLS): New macro.
  610. * language.c (unknown_language_defn, auto_language_defn)
  611. (local_language_defn): Update.
  612. * c-lang.c (c_language_defn, cplus_language_defn)
  613. (asm_language_defn, minimal_language_defn): Update.
  614. * d-lang.c (d_language_defn): Update.
  615. * f-lang.c (f_language_defn): Update.
  616. * jv-lang.c (java_language_defn): Update.
  617. * m2-lang.c (m2_language_defn): Update.
  618. * objc-lang.c (objc_language_defn): Update.
  619. * opencl-lang.c (opencl_language_defn): Update.
  620. * p-lang.c (pascal_language_defn): Update.
  621. * ada-lang.c (ada_iterate_over_symbols): New function.
  622. (ada_language_defn): Update.
  623. 2011-12-06 Tom Tromey <tromey@redhat.com>
  624. Joel Brobecker <brobecker@acacore.com>
  625. PR breakpoints/13105, PR objc/8341, PR objc/8343, PR objc/8366,
  626. PR objc/8535, PR breakpoints/11657, PR breakpoints/11970,
  627. PR breakpoints/12023, PR breakpoints/12334, PR breakpoints/12856,
  628. PR shlibs/8929, PR shlibs/7393:
  629. * python/py-type.c (compare_maybe_null_strings): Rename from
  630. compare_strings.
  631. (check_types_equal): Update.
  632. * utils.c (compare_strings): New function.
  633. * tui/tui-winsource.c (tui_update_breakpoint_info): Update for
  634. location changes.
  635. * tracepoint.c (scope_info): Update.
  636. (trace_find_line_command): Use DECODE_LINE_FUNFIRSTLINE.
  637. * symtab.h (iterate_over_minimal_symbols)
  638. (iterate_over_some_symtabs, iterate_over_symtabs)
  639. (find_pcs_for_symtab_line, iterate_over_symbols)
  640. (demangle_for_lookup): Declare.
  641. (expand_line_sal): Remove.
  642. * symtab.c (iterate_over_some_symtabs, iterate_over_symtabs)
  643. (lookup_symtab_callback): New functions.
  644. (lookup_symtab): Rewrite.
  645. (demangle_for_lookup): New function, extract from
  646. lookup_symbol_in_language.
  647. (lookup_symbol_in_language): Use it.
  648. (iterate_over_symbols): New function.
  649. (find_line_symtab): Update.
  650. (find_pcs_for_symtab_line): New functions.
  651. (find_line_common): Add 'start' argument.
  652. (decode_line_spec): Update. Change argument to 'flags', change
  653. interpretation.
  654. (append_expanded_sal): Remove.
  655. (append_exact_match_to_sals): Remove.
  656. (expand_line_sal): Remove.
  657. * symfile.h (struct quick_symbol_functions) <lookup_symtab>:
  658. Remove.
  659. <map_symtabs_matching_filename>: New field.
  660. * stack.c (func_command): Only look in the current program space.
  661. Use DECODE_LINE_FUNFIRSTLINE.
  662. * source.c (line_info): Set pspace on sal. Check program space in
  663. the loop. Use DECODE_LINE_LIST_MODE.
  664. (select_source_symtab): Use DECODE_LINE_FUNFIRSTLINE.
  665. * solib-target.c: Remove DEF_VEC_I(CORE_ADDR).
  666. * python/python.c (gdbpy_decode_line): Update.
  667. * psymtab.c (partial_map_expand_apply): New function.
  668. (partial_map_symtabs_matching_filename): Rename from
  669. lookup_partial_symbol. Update arguments.
  670. (lookup_symtab_via_partial_symtab): Remove.
  671. (psym_functions): Update.
  672. * objc-lang.h (parse_selector, parse_method): Don't declare.
  673. (find_imps): Update.
  674. * objc-lang.c (parse_selector, parse_method): Now static.
  675. (find_methods): Change arguments. Fill in a vector of symbol
  676. names.
  677. (uniquify_strings): New function.
  678. (find_imps): Change arguments.
  679. * minsyms.c (iterate_over_minimal_symbols): New function.
  680. * linespec.h (enum decode_line_flags): New.
  681. (struct linespec_sals): New.
  682. (struct linespec_result) <canonical>: Remove.
  683. <pre_expanded, addr_string, sals>: New fields.
  684. (destroy_linespec_result, make_cleanup_destroy_linespec_result)
  685. (decode_line_full): Declare.
  686. (decode_line_1): Update.
  687. * linespec.c (struct address_entry, struct linespec_state, struct
  688. collect_info): New types.
  689. (add_sal_to_sals_basic, add_sal_to_sals, hash_address_entry)
  690. (eq_address_entry, maybe_add_address): New functions.
  691. (total_number_of_methods): Remove.
  692. (iterate_name_matcher, iterate_over_all_matching_symtabs): New
  693. functions.
  694. (find_methods): Change arguments. Don't canonicalize input.
  695. Simplify logic.
  696. (add_matching_methods, add_constructors)
  697. (build_canonical_line_spec): Remove.
  698. (filter_results, convert_results_to_lsals): New functions.
  699. (decode_line_2): Change arguments. Rewrite for new data
  700. structures.
  701. (decode_line_internal): Rename from decode_line_1. Change
  702. arguments. Add cleanups. Update for new data structures.
  703. (linespec_state_constructor, linespec_state_destructor)
  704. (decode_line_full, decode_line_1): New functions.
  705. (decode_indirect): Change arguments. Update.
  706. (locate_first_half): Use skip_spaces.
  707. (decode_objc): Change arguments. Update for new data structures.
  708. Simplify logic.
  709. (decode_compound): Change arguments. Add cleanups. Remove
  710. fallback code, replace with error.
  711. (struct decode_compound_collector): New type.
  712. (collect_one_symbol): New function.
  713. (lookup_prefix_sym): Change arguments. Update.
  714. (compare_symbol_name, add_all_symbol_names_from_pspace)
  715. (find_superclass_methods ): New functions.
  716. (find_method): Rewrite.
  717. (struct symtab_collector): New type.
  718. (add_symtabs_to_list, collect_symtabs_from_filename): New
  719. functions.
  720. (symtabs_from_filename): Change API. Rename from
  721. symtab_from_filename.
  722. (collect_function_symbols): New function.
  723. (find_function_symbols): Change API. Rename from
  724. find_function_symbol. Rewrite.
  725. (decode_all_digits): Change arguments. Rewrite.
  726. (decode_dollar): Change arguments. Use decode_variable.
  727. (decode_label): Change arguments. Rewrite.
  728. (collect_symbols): New function.
  729. (minsym_found): Change arguments. Rewrite.
  730. (check_minsym, search_minsyms_for_name)
  731. (add_matching_symbols_to_info): New function.
  732. (decode_variable): Change arguments. Iterate over all symbols.
  733. (symbol_found): Remove.
  734. (symbol_to_sal): New function.
  735. (init_linespec_result, destroy_linespec_result)
  736. (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
  737. New functions.
  738. (decode_digits_list_mode, decode_digits_ordinary): New functions.
  739. * dwarf2read.c (dw2_map_expand_apply): New function.
  740. (dw2_map_symtabs_matching_filename): Rename from
  741. dw2_lookup_symtab. Change arguments.
  742. (dwarf2_gdb_index_functions): Update.
  743. * dwarf2loc.c: Remove DEF_VEC_I(CORE_ADDR).
  744. * defs.h (compare_strings): Declare.
  745. * cli/cli-cmds.c (compare_strings): Move to utils.c.
  746. (edit_command, list_command): Use DECODE_LINE_LIST_MODE. Call
  747. filter_sals.
  748. (compare_symtabs, filter_sals): New functions.
  749. * breakpoint.h (struct bp_location) <line_number, source_file>:
  750. New fields.
  751. (struct breakpoint) <line_number, source_file>: Remove.
  752. <filter>: New field.
  753. * breakpoint.c (print_breakpoint_location, init_raw_breakpoint)
  754. (momentary_breakpoint_from_master, add_location_to_breakpoint):
  755. Update for changes to locations.
  756. (init_breakpoint_sal): Add 'filter' argument. Set 'filter' on
  757. breakpoint.
  758. (create_breakpoint_sal): Add 'filter' argument.
  759. (remove_sal, expand_line_sal_maybe): Remove.
  760. (create_breakpoints_sal): Remove 'sals' argument. Handle
  761. pre-expanded sals and the filter.
  762. (parse_breakpoint_sals): Use decode_line_full.
  763. (check_fast_tracepoint_sals): Use get_sal_arch.
  764. (create_breakpoint): Create a linespec_sals. Update.
  765. (break_range_command): Use decode_line_full. Update.
  766. (until_break_command): Update.
  767. (clear_command): Update match conditions for linespec.c changes.
  768. Use DECODE_LINE_LIST_MODE.
  769. (say_where): Update for changes to locations.
  770. (bp_location_dtor): Free 'source_file'.
  771. (base_breakpoint_dtor): Free 'filter'. Don't free 'source_file'.
  772. (update_static_tracepoint): Update for changes to locations.
  773. (update_breakpoint_locations): Disable ranged breakpoint if too
  774. many locations match. Update.
  775. (addr_string_to_sals): Use decode_line_full. Resolve all sal
  776. PCs.
  777. (breakpoint_re_set_default): Don't call expand_line_sal_maybe.
  778. (decode_line_spec_1): Update. Change argument name to 'flags',
  779. change interpretation.
  780. * block.h (block_containing_function): Declare.
  781. * block.c (block_containing_function): New function.
  782. * skip.c (skip_function_command): Update.
  783. (skip_re_set): Update.
  784. * infcmd.c (jump_command): Use DECODE_LINE_FUNFIRSTLINE.
  785. * mi/mi-main.c (mi_cmd_trace_find): Use DECODE_LINE_FUNFIRSTLINE.
  786. * NEWS: Add entry.
  787. 2011-12-06 Tom Tromey <tromey@redhat.com>
  788. * elfread.c (elf_gnu_ifunc_resolver_return_stop): Allow
  789. breakpoint's pspace to be NULL.
  790. * breakpoint.h (struct breakpoint) <pspace>: Update comment.
  791. * breakpoint.c (init_raw_breakpoint): Conditionally set
  792. breakpoint's pspace.
  793. (init_breakpoint_sal): Don't set breakpoint's pspace.
  794. (prepare_re_set_context): Conditionally switch program space.
  795. (addr_string_to_sals): Check executing_startup on location's
  796. program space.
  797. 2011-12-06 Tom Tromey <tromey@redhat.com>
  798. * breakpoint.h (enum enable_state) <bp_startup_disabled>: Remove.
  799. * breakpoint.c (should_be_inserted): Explicitly check if program
  800. space is executing startup.
  801. (describe_other_breakpoints): Update.
  802. (disable_breakpoints_before_startup): Change executing_startup
  803. earlier. Remove loop.
  804. (enable_breakpoints_after_startup): Likewise.
  805. (init_breakpoint_sal): Don't use bp_startup_disabled.
  806. (create_breakpoint): Don't use bp_startup_disabled.
  807. (update_global_location_list): Use should_be_inserted.
  808. (bkpt_re_set): Update.
  809. 2011-12-06 Tom Tromey <tromey@redhat.com>
  810. * python/lib/gdb/command/pretty_printers.py
  811. (InfoPrettyPrinter.invoke1): Remove extra double quote.
  812. 2011-12-06 Tom Tromey <tromey@redhat.com>
  813. * NEWS: Add MI news.
  814. 2011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
  815. * s390-tdep.h (S390_ORIG_R2_REGNUM): Define.
  816. (S390_LAST_BREAK_REGNUM): Likewise.
  817. (S390_SYSTEM_CALL_REGNUM): Likewise.
  818. (S390_NUM_REGS): Update.
  819. (s390_regmap_last_break): Add declaration.
  820. (s390x_regmap_last_break): Likewise.
  821. (s390_regmap_system_call): Likewise.
  822. (tdesc_s390_linux32v1): Add declaration.
  823. (tdesc_s390_linux32v2): Likewise.
  824. (tdesc_s390_linux64v1): Likewise.
  825. (tdesc_s390_linux64v2): Likewise.
  826. (tdesc_s390x_linux64v1): Likewise.
  827. (tdesc_s390x_linux64v2): Likewise.
  828. * s390-tdep.c: Include new target description files
  829. "features/s390-linux32v1.c", "features/s390-linux32v2.c",
  830. "features/s390-linux64v1.c", "features/s390-linux64v2.c",
  831. "features/s390x-linux64v1.c", and "features/s390x-linux64v2.c".
  832. (s390_cannot_store_register): New function.
  833. (s390_write_pc): Likewise.
  834. (s390_dwarf_regmap): Add fields for new registers.
  835. (s390_regmap_gregset): Likewise.
  836. (s390x_regmap_gregset): Likewise.
  837. (s390_regmap_fpregset): Likewise.
  838. (s390_regmap_upper): Likewise.
  839. (s390_regmap_last_break): New variable.
  840. (s390x_regmap_last_break): Likewise.
  841. (s390_regmap_system_call): Likewise.
  842. (s390_last_break_regset): Likewise.
  843. (s390x_last_break_regset): Likewise.
  844. (s390_system_call_regset): Likewise.
  845. (s390_upper_regset_sections): Rename to ...
  846. (s390_linux64_regset_sections): ... this.
  847. (s390_linux32_regset_sections): New variable.
  848. (s390x_linux64_regset_sections): Likewise.
  849. (s390_linux32v1_regset_sections): Likewise.
  850. (s390_linux32v2_regset_sections): Likewise.
  851. (s390_linux64v1_regset_sections): Likewise.
  852. (s390_linux64v2_regset_sections): Likewise.
  853. (s390x_linux64v1_regset_sections): Likewise.
  854. (s390x_linux64v2_regset_sections): Likewise.
  855. (s390_regset_from_core_section): Handle .reg-s390-last-break and
  856. .reg-s390-system-call core file sections.
  857. (s390_core_read_description): Check for presence of
  858. .reg-s390-last-break and .reg-s390-system-call core file
  859. sections and return appropriate target description.
  860. (s390_gdbarch_init): Detect Linux-specific registers "orig_r2",
  861. "last_break" and "system_call" in target description. Install
  862. appropriate gdbarch_core_regset_sections array.
  863. Call set_gdbarch_cannot_store_register and set_gdbarch_write_pc.
  864. (_initialize_s390_tdep): Initialize additional target descriptions.
  865. * s390-nat.c: Include "elf/common.h".
  866. (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
  867. (have_regset_last_break): New static variable.
  868. (have_regset_system_call): Likewise.
  869. (s390_native_supply): Handle S390_ORIG_R2_REGNUM.
  870. (s390_native_collect): Likewise.
  871. (fetch_regset, store_regset, check_regset): New functions.
  872. (s390_linux_fetch_inferior_registers): Handle S390_LAST_BREAK_REGNUM
  873. and S390_SYSTEM_CALL_REGNUM.
  874. (s390_linux_store_inferior_registers): Likewise.
  875. (s390_read_description): Check for presence of NT_S390_LAST_BREAK
  876. and NT_S390_SYSTEM_CALL regsets and use appropriate description.
  877. * features/Makefile (WHICH): Add s390-linux32v1, s390-linux64v1,
  878. s390x-linux64v1, s390-linux32v2, s390-linux64v2, and s390x-linux64v2.
  879. (s390-linux32v1-expedite): Define.
  880. (s390-linux32v2-expedite): Likewise.
  881. (s390-linux64v1-expedite): Likewise.
  882. (s390-linux64v2-expedite): Likewise.
  883. (s390x-linux64v1-expedite): Likewise.
  884. (s390x-linux64v2-expedite): Likewise.
  885. * features/s390-linux32.xml: Add orig_r2 register.
  886. * features/s390-linux64.xml: Likewise.
  887. * features/s390x-linux64.xml: Likewise.
  888. * features/s390-linux32v1.xml: New file.
  889. * features/s390-linux32v2.xml: Likewise.
  890. * features/s390-linux64v1.xml: Likewise.
  891. * features/s390-linux64v2.xml: Likewise.
  892. * features/s390x-linux64v1.xml: Likewise.
  893. * features/s390x-linux64v2.xml: Likewise.
  894. * features/s390-linux32.c: Regenerate.
  895. * features/s390-linux64.c: Likewise.
  896. * features/s390x-linux64.c: Likewise.
  897. * features/s390-linux32v1.c: New generated file.
  898. * features/s390-linux32v2.c: Likewise.
  899. * features/s390-linux64v1.c: Likewise.
  900. * features/s390-linux64v2.c: Likewise.
  901. * features/s390x-linux64v1.c: Likewise.
  902. * features/s390x-linux64v2.c: Likewise.
  903. * regformats/s390-linux32.dat: Regenerate.
  904. * regformats/s390-linux64.dat: Regenerate.
  905. * regformats/s390x-linux64.dat: Regenerate.
  906. * regformats/s390-linux32v1.dat: New generated file.
  907. * regformats/s390-linux32v2.dat: Likewise.
  908. * regformats/s390-linux64v1.dat: Likewise.
  909. * regformats/s390-linux64v2.dat: Likewise.
  910. * regformats/s390x-linux64v1.dat: Likewise.
  911. * regformats/s390x-linux64v2.dat: Likewise.
  912. 2011-12-05 Pedro Alves <pedro@codesourcery.com>
  913. * linux-nat.c (resume_stopped_resumed_lwps): Call
  914. registers_changed.
  915. 2011-12-05 Pedro Alves <pedro@codesourcery.com>
  916. * breakpoint.c: Include record.h.
  917. (breakpoints_always_inserted_mode): Return false when the record
  918. target is in use.
  919. 2011-12-05 Pedro Alves <pedro@codesourcery.com>
  920. * amd64-linux-nat.c (amd64_linux_dr_get): Remove FIXME comment.
  921. Reinstate perror_with_name call on ptrace error. Remove #if 0.
  922. * i386-linux-nat.c (i386_linux_dr_get): Likewise.
  923. * i386bsd-nat.c (i386bsd_dr_get_status): Likewise.
  924. 2011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
  925. * breakpoint.c (init_breakpoint_sal): Remove nested definitions of
  926. `i'(-Wshadow).
  927. 2011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
  928. * bcache.c (bcache): Rename `bcache' to `cache'(-Wshadow).
  929. 2011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
  930. * amd64-tdep.c (amd64_push_dummy_call): Remove nested definition
  931. of `tdep'(-Wshadow).
  932. 2011-12-03 Jan Kratochvil <jan.kratochvil@redhat.com>
  933. Fix compilation --without-expat.
  934. * solib-svr4.c (svr4_free_so, svr4_free_library_list): Move them here
  935. from ...
  936. [HAVE_LIBEXPAT] (svr4_free_so, svr4_free_library_list): ... here.
  937. 2011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
  938. Jan Kratochvil <jan.kratochvil@redhat.com>
  939. * Makefile.in (XMLFILES): Add library-list-svr4.dtd.
  940. * features/library-list-svr4.dtd: New file.
  941. * remote.c (PACKET_qXfer_libraries_svr4): New.
  942. (remote_protocol_features): new entry for PACKET_qXfer_libraries_svr4.
  943. (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES_SVR4.
  944. * solib-svr4.c (struct svr4_library_list): New.
  945. [HAVE_LIBEXPAT]: Include xml-support.h.
  946. [HAVE_LIBEXPAT] (svr4_library_list_start_library)
  947. [HAVE_LIBEXPAT] (svr4_library_list_start_list, svr4_library_attributes)
  948. [HAVE_LIBEXPAT] (svr4_library_list_children)
  949. [HAVE_LIBEXPAT] (svr4_library_list_attributes)
  950. [HAVE_LIBEXPAT] (svr4_library_list_elements, svr4_parse_libraries)
  951. [HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries)
  952. [!HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries): New.
  953. (svr4_read_so_list): Extend the corruption message by addresses.
  954. (svr4_current_sos): New variable library_list, call
  955. svr4_current_sos_via_xfer_libraries.
  956. * target.h (enum target_object): New TARGET_OBJECT_LIBRARIES_SVR4.
  957. 2011-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
  958. PR threads/13448
  959. * dwarf2read.c (decode_locdesc): Handle DW_OP_const8u.
  960. For DW_OP_GNU_push_tls_address increment the value, new comment for it.
  961. 2011-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
  962. PR breakpoints/13346
  963. * dwarf2read.c (process_psymtab_comp_unit): Set
  964. PSYMTABS_ADDRMAP_SUPPORTED.
  965. * psympriv.h (struct partial_symtab): Comment textlow and texthigh
  966. validity. New field psymtabs_addrmap_supported.
  967. * psymtab.c (find_pc_sect_psymtab_closer): New gdb_assert on
  968. psymtabs_addrmap_supported.
  969. (find_pc_sect_psymtab): Do not fallback to TEXTLOW and TEXTHIGH for
  970. !PSYMTABS_ADDRMAP_SUPPORTED.
  971. (dump_psymtab, maintenance_info_psymtabs): Print also
  972. psymtabs_addrmap_supported.
  973. 2011-12-01 Doug Evans <dje@google.com>
  974. * python/py-type.c (type_object_methods): Fix "array" doc string.
  975. 2011-12-01 Andrew Burgess <aburgess@broadcom.com>
  976. * source.c (print_source_lines_base): Fix missing braces on else
  977. clause leading to additional output.
  978. 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
  979. * s390-nat.c (SUBOFF): Remove.
  980. (s390_native_supply, s390_native_collect): New functions.
  981. (supply_gregset, supply_fpregset): Use s390_native_supply.
  982. (fill_gregset, fill_fpregset): Use s390_native_collect.
  983. * s390-tdep.c (s390_pseudo_register_reggroup_p): Update comment.
  984. (s390_unwind_pseudo_register): New function.
  985. (s390_prologue_frame_unwind_cache): Unwind PSW address and mask
  986. registers instead of PC and CC.
  987. (s390_backchain_frame_unwind_cache): Likewise.
  988. (s390_sigtramp_frame_unwind_cache): Do not unwind PC, CC, or
  989. full GPR pseudos.
  990. (s390_trad_frame_prev_register): New function.
  991. (s390_frame_prev_register): Use it.
  992. (s390_sigtramp_frame_prev_register): Likewise.
  993. (s390_dwarf2_prev_register): Use s390_unwind_pseudo_register.
  994. (s390_dwarf2_frame_init_reg): Unwind PSW address and mask. Use
  995. special callback to unwind any pseudo.
  996. * features/s390-core32.xml: Add pswm/pswa to save/restore group.
  997. * features/s390-core64.xml: Likewise.
  998. * features/s390x-core64.xml: Likewise.
  999. * features/s390-linux32.c: Regenerate.
  1000. * features/s390-linux64.c: Likewise.
  1001. * features/s390x-linux64.c: Likewise.
  1002. 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
  1003. * s390-tdep.c (s390_gdbarch_init): Call set_gdbarch_get_siginfo_type.
  1004. 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
  1005. * s390-tdep.c (s390_displaced_step_fixup): Fix processing of LARL
  1006. instruction. Add more diagnostic output.
  1007. 2011-11-29 Andrey Smirnov <andrew.smirnov@gmail.com>
  1008. * MAINTAINERS (Write After Approval): Add myself to the list.
  1009. 2011-11-29 Sanjoy Das <sdas@igalia.com>
  1010. * jit.c (add_objfile_entry, jit_reader_try_read_symtab)
  1011. (jit_bfd_try_read_symtab): Fix comments.
  1012. 2011-11-28 DJ Delorie <dj@redhat.com>
  1013. * NEWS: Mention RL78 simulator.
  1014. 2011-11-28 Joel Brobecker <brobecker@adacore.com>
  1015. * symfile.h (struct quick_symbol_functions): Fix the documentation
  1016. of field map_matching_symbols, as symbols are sorted using
  1017. strcmp_iw_ordered, not strcmp_iw.
  1018. 2011-11-28 Paul Hilfinger <hilfinger@adacore.com>
  1019. * symfile.h (struct quick_symbol_functions): Update the
  1020. documentation for field map_matching_symbols.
  1021. 2011-11-28 Joel Brobecker <brobecker@adacore.com>
  1022. * ada-lang.c (compare_names): Fix wrong return value in case
  1023. string1 starts with the same contents as string2, followed
  1024. by an underscore that do not start a symbol name suffix.
  1025. 2011-11-28 Phil Muldoon <pmuldoon@redhat.com>
  1026. PR python/13369
  1027. PR python/13374
  1028. * python/python.c (gdbpy_decode_line): Do not acquire GIL.
  1029. * python/py-inferior.c (inferior_to_inferior_object): Ditto.
  1030. * python/py-value.c (valpy_nonzero): Use TRY_CATCH to catch GDB
  1031. exceptions.
  1032. * python/py-type.c (typy_strip_typedefs): Ditto.
  1033. (typy_legacy_template_argument): Ditto.
  1034. * python/py-inferior.c (inferior_to_inferior_object): Ditto.
  1035. * python/py-breakpoint.c (bppy_set_ignore_count): Ditto.
  1036. 2011-11-27 Joel Brobecker <brobecker@acacore.com>
  1037. * remote.c (remote_get_tracepoint_status): Delete addrbuf
  1038. local variable. Avoid use of sprintf_vma.
  1039. 2011-11-27 Sanjoy Das <sdas@igalia.com>
  1040. Fix regression in jit.exp.
  1041. * jit.c (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
  1042. (jit_register_code): Set the jit_objfile_data field to the correct
  1043. value.
  1044. 2011-11-25  Uros Bizjak  <ubizjak@gmail.com>
  1045. * alpha-tdep.c (br_opcode): New.
  1046. (ldl_l_opcode, ldq_l_opcode, stl_c_opcode, stq_c_opcode): Ditto.
  1047. (alpha_deal_with_atomic_sequence): New function.
  1048. (alpha_gdbarch_init): Handle single stepping of atomic sequences
  1049. with alpha_deal_with_atomic_sequence.
  1050. 2011-11-24 Tristan Gingold <gingold@adacore.com>
  1051. * machoread.c (oso_el): Remove num_Sections, symbols, offsets
  1052. fields. Add oso_sym, end_sym and nbr_syms.
  1053. (macho_register_oso): Change interface.
  1054. (macho_symtab_add_minsym): New function.
  1055. (macho_symtab_read): Rewritten.
  1056. (get_archive_prefix_len): Remove trailing blanks.
  1057. (oso_el_compare_name): Add comment.
  1058. (struct macho_sym_hash_entry): New structure.
  1059. (macho_relocate_common_syms): Remove.
  1060. (macho_sym_hash_newfunc): New function.
  1061. (macho_resolve_oso_sym_with_minsym): Likewise.
  1062. (macho_add_oso_symfile): Rewritten.
  1063. (macho_symfile_read_all_oso): Remove trailing blanks.
  1064. Adjust code to free oso vector.
  1065. (macho_symfile_read): Likewise.
  1066. Move code to initialize minimal symbol
  1067. 2011-11-24 Maciej W. Rozycki <macro@codesourcery.com>
  1068. * mips-tdep.c (extended_offset): Fix formatting.
  1069. 2011-11-23 Doug Evans <dje@google.com>
  1070. * dwarf2read.c (dw2_lookup_symtab): Add comment.
  1071. (dw2_expand_symtabs_with_filename): Ditto.
  1072. (dw2_expand_symtabs_matching): Ditto.
  1073. (dw2_map_symbol_filenames): Ditto.
  1074. 2011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
  1075. * ada-lang.c (assign_aggregate): Minor reformatting.
  1076. 2011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
  1077. * ada-lang.c (assign_aggregate): Remove declaration of local
  1078. variable `i' which is shadowing another variable with the same
  1079. name declared in the outer scope.
  1080. 2011-11-23 Joel Brobecker <brobecker@adacore.com>
  1081. * ada-lang.c (get_base_type): Renames base_type. Adjust all
  1082. calls throughout this file.
  1083. 2011-11-23 Joel Brobecker <brobecker@adacore.com>
  1084. * gdb-dlfcn.c (gdb_dlopen): Add missing coma in call to
  1085. FormatMessage.
  1086. 2011-11-22 Tom Tromey <tromey@redhat.com>
  1087. PR mi/8444:
  1088. * mi/mi-common.h (EXEC_ASYNC_SOLIB_EVENT, EXEC_ASYNC_FORK)
  1089. (EXEC_ASYNC_VFORK, EXEC_ASYNC_SYSCALL_ENTRY)
  1090. (EXEC_ASYNC_SYSCALL_RETURN, EXEC_ASYNC_EXEC): New constants.
  1091. * mi/mi-common.c (async_reason_string_lookup): Add new reasons.
  1092. * breakpoint.c (print_it_catch_fork, print_it_catch_vfork)
  1093. (print_it_catch_syscall, print_it_catch_exec)
  1094. (internal_bkpt_print_it): Use ui_out. Emit stop reason.
  1095. (bpstat_print): Add 'kind' argument. Handle
  1096. TARGET_WAITKIND_LOADED.
  1097. * infrun.c (normal_stop): Update for bpstat_print change. Don't
  1098. handle TARGET_WAITKIND_LOADED here.
  1099. * breakpoint.h (bpstat_print): Update.
  1100. 2011-11-22 Tom Tromey <tromey@redhat.com>
  1101. * mi/mi-interp.c (mi_on_normal_stop): Call bpstat_print.
  1102. 2011-11-22 Tom Tromey <tromey@redhat.com>
  1103. * mi/mi-common.c (_initialize_gdb_mi_common): Remove.
  1104. Use static_assert to check the size of
  1105. async_reason_string_lookup.
  1106. * common/gdb_assert.h (static_assert): New macro.
  1107. 2011-11-22 Alan Modra <amodra@gmail.com>
  1108. * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Correct branch
  1109. destination calculation. Don't expect >> to sign extend. Don't
  1110. add a break if branch lands inside the sequence anywhere.
  1111. 2011-11-21 Keith Seitz <keiths@redhat.com>
  1112. * gdb.mi/mi-var-display.exp: Remove XFAIL for c_variable-7.51,
  1113. -var-evaluate-expression of an enumeration and fix expected result.
  1114. * gdb.mi/mi2-varvdisplay.exp: Likewise.
  1115. 2011-11-21 Kwok Cheung Yeung <kcy@codesourcery.com>
  1116. * osdata.c (info_osdata_command): Rename nprocs to nrows. Handle
  1117. the case where osdata->items is empty. Rename column names to a
  1118. canonical form to avoid problems with unusual column names.
  1119. 2011-11-21 Yao Qi <yao@codesourcery.com>
  1120. * MAINTAINERS (Write After Approval): Keep list in alphabetical order.
  1121. 2011-11-20 Stan Shebs <stan@codesourcery.com>
  1122. * NEWS: Mention tracepoint additions.
  1123. * breakpoint.h (struct tracepoint): New field traceframe_usage.
  1124. * breakpoint.c (print_one_breakpoint_location): Identify
  1125. tracepoints as such when reporting hit counts, report
  1126. trace buffer usage.
  1127. (create_tracepoint_from_upload): Copy status info.
  1128. * tracepoint.h (struct trace_status): Rename error_desc to stop_desc,
  1129. add fields user_name, notes, start_time, stop_time.
  1130. (struct uploaded_tp): Add fields hit_count, traceframe_usage.
  1131. * tracepoint.c (trace_user): New global.
  1132. (trace_notes): New global.
  1133. (trace_stop_notes): New global.
  1134. (start_tracing): Add argument and trace note handling.
  1135. (stop_tracing): Ditto.
  1136. (trace_start_command): Add notes argument.
  1137. (trace_stop_command): Ditto.
  1138. (trace_status_command): Report additional status info.
  1139. (trace_status_mi): Similarly.
  1140. (trace_save): Update, record tracepoint status.
  1141. (set_disconnected_tracing): Call target method directly.
  1142. (send_disconnected_tracing_value): Remove.
  1143. (set_trace_user): New function.
  1144. (set_trace_notes): New function.
  1145. (set_trace_stop_notes): New function.
  1146. (parse_trace_status): Handle additional status.
  1147. (parse_tracepoint_status): New function.
  1148. (parse_tracepoint_definition): Call it.
  1149. (tfile_get_tracepoint_status): New function.
  1150. (init_tfile_ops): Use it.
  1151. (_initialize_tracepoint): Add new setshows.
  1152. * target.h (struct target_ops): New methods to_get_tracepoint_status
  1153. and to_set_trace_notes.
  1154. (target_get_tracepoint_status): New macro.
  1155. (target_set_trace_notes): New macro.
  1156. * target.c (update_current_target): Add new methods.
  1157. * remote.c (remote_get_tracepoint_status): New function.
  1158. (remote_set_trace_notes): New function.
  1159. (init_remote_ops): Add them.
  1160. * mi/mi-main.c (mi_cmd_trace_start): Add argument to call.
  1161. (mi_cmd_trace_stop): Ditto.
  1162. 2011-11-20 Sanjoy Das <sdas@igalia.com>
  1163. * jit.c: Include regcache.h.
  1164. (jit_gdbarch_data, jit_frame_unwind): New static variables.
  1165. (jit_unwind_reg_set_impl, free_reg_value_impl)
  1166. (jit_unwind_reg_get_impl, jit_frame_sniffer)
  1167. (jit_frame_unwind_stop_reason, jit_frame_this_id)
  1168. (jit_frame_prev_register, jit_dealloc_cache)
  1169. (jit_prepend_unwinder, jit_gdbarch_data_init): New functions.
  1170. (jit_inferior_init): Prepend (new) pseudo unwinder by calling
  1171. jit_prepend_unwinder.
  1172. (_initialize_jit): Register new gdbarch data jit_gdbarch_data.
  1173. 2011-11-20 Sanjoy Das <sdas@igalia.com>
  1174. * jit.c: Include block.h, dictionary.h and frame-unwind.h.
  1175. (add_objfile_entry, jit_target_read_impl, jit_object_open_impl)
  1176. (jit_symtab_open_impl, compare_block, jit_block_open_impl)
  1177. (jit_symtab_line_mapping_add_impl, jit_symtab_close_impl)
  1178. (finalize_symtab, jit_object_close_impl)
  1179. (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
  1180. (free_objfile_data): New functions.
  1181. (_initialize_jit): Register jit_objfile_data with a proper cleanup
  1182. function.
  1183. 2011-11-20 Sanjoy Das <sdas@igalia.com>
  1184. * jit.c: Include gdb-dlfcn.h.
  1185. (loaded_jit_reader, reader_init_fn_sym): New static variables.
  1186. (jit_reader_load, jit_reader_load_command)
  1187. (jit_reader_unload_command): New functions.
  1188. (_initialize_jit): Add commands "jit-reader-load" and
  1189. "jit-reader-unload".
  1190. 2011-11-20 Sanjoy Das <sdas@igalia.com>
  1191. * Makefile.in: Add gdb-dlfcn.c and gdb-dlfcn.h to build system.
  1192. * config.in: Add new #define HAVE_LIBDL.
  1193. * configure.ac: Add check for -ldl.
  1194. * configure: Re-generated by autoconf.
  1195. * gdb-dlfcn.c: New file.
  1196. * gdb-dlfcn.h: New file.
  1197. 2011-11-20 Sanjoy Das <sdas@igalia.com>
  1198. * config.in: Add new #defines: JIT_READER_DIR and
  1199. JIT_READER_DIR_RELOCATABLE.
  1200. * configure.ac: New GDB directory entry for jit-reader-dir.
  1201. * configure: Re-generated by autoconf.
  1202. * jit.c: New static variable: const char *jit_reader_dir.
  1203. (_initialize_jit): Relocate jit_reader_dir.
  1204. 2011-11-20 Sanjoy Das <sdas@igalia.com>
  1205. * Makefile.in: Add jit-reader.h as a header. Have it installed in
  1206. $(includedir)/gdb.
  1207. * configure.ac: Generate a correct value for TARGET_PTR for
  1208. jit-reader.h. Tell configure to generate jit-reader.h from
  1209. jit-reader.in.
  1210. * configure: Re-generated by autoconf.
  1211. * jit-reader.in: New file.
  1212. * jit.c: Include jit-reader.h.
  1213. 2011-11-20 Sanjoy Das <sdas@igalia.com>
  1214. * MAINTAINERS (Write After Approval): Add myself to the list.
  1215. 2011-11-18 Ulrich Weigand <uweigand@de.ibm.com>
  1216. * findvar.c (read_frame_register_value): Respect value_offset
  1217. of the register value. Remove big-endian special case.
  1218. 2011-11-18 Tom Tromey <tromey@redhat.com>
  1219. PR build/7196:
  1220. * remote.c (putpkt_for_catch_errors): New function.
  1221. (remote_kill): Use it.
  1222. 2011-11-18 Yao Qi <yao@codesourcery.com>
  1223. * breakpoint.c (create_breakpoint): Produce query message according to
  1224. breakpoint's type.
  1225. Allocate tracepoint per correct type.
  1226. Don't check SALs for pending fast tracepoints.
  1227. * tracepoint.c (process_tracepoint_on_disconnect): New.
  1228. (disconnect_tracing): Call process_tracepoint_on_disconnect.
  1229. 2011-11-18 Yao Qi <yao@codesourcery.com>
  1230. * breakpoint.c (install_breakpoint): Add one more parameter so that
  1231. update_global_location_list is called conditionally.
  1232. (create_fork_vfork_event_catchpoint): Update.
  1233. (create_syscall_event_catchpoint): Update.
  1234. (create_breakpoint_sal): Update.
  1235. (create_breakpoint_sal): Update. Call do_cleanups before
  1236. install_breakpoint.
  1237. * ada-lang.c (create_ada_exception_catchpoint): Update.
  1238. * breakpoint.h (install_breakpoint): Update declaration.
  1239. 2011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
  1240. * spu-tdep.c (spu_return_value): Fix handling of
  1241. TYPE_CALLING_CONVENTION annotation.
  1242. 2011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
  1243. * skip.c (skip_function_command): Work around uninitialized
  1244. variable warning.
  1245. 2011-11-16 David S. Miller <davem@davemloft.net>
  1246. * utils.c (report_command_stats): Cast delta_wall_time 'tv_sec' and
  1247. 'tv_usec' to long for printf since these fields have a type which
  1248. varies.
  1249. 2011-11-15 Doug Evans <dje@google.com>
  1250. * buildsym.c (add_symbol_to_list): Delete outdated comment.
  1251. 2011-11-15 Paul Koning <paul_koning@dell.com>
  1252. * python/py-type.c (typy_get_composite): New function.
  1253. (typy_nonzero): New function.
  1254. (typy_values): Rename from typy_fields.
  1255. (typy_fields): New function.
  1256. (typy_length): Raise exception if not struct, union, or enum type.
  1257. (typy_getitem): Ditto.
  1258. (typy_has_key): Ditto.
  1259. (typy_make_iter): Ditto.
  1260. 2011-11-15 Doug Evans <dje@google.com>
  1261. PR gdb/8367
  1262. * NEWS: Mention new parameter basenames-may-differ.
  1263. * dwarf2read.c (dw2_lookup_symtab): Avoid calling gdb_realpath if
  1264. ! basenames_may_differ.
  1265. * psymtab.c (lookup_partial_symtab): Ditto.
  1266. * symtab.c (lookup_symtab): Ditto.
  1267. (basenames_may_differ): New global.
  1268. (_initialize_symtab): New parameter basenames-may-differ.
  1269. * symtab.h (basenames_may_differ): Declare.
  1270. 2011-11-15 Pedro Alves <pedro@codesourcery.com>
  1271. Luis Machado <lgustavo@codesourcery.com>
  1272. * auxv.c: Include observer.h.
  1273. (auxv_inferior_data_cleanup): New.
  1274. (invalidate_auxv_cache_inf): New.
  1275. (invalidate_auxv_cache): New.
  1276. (get_auxv_inferior_data): New.
  1277. (auxv_inferior_data): New static global.
  1278. (auxv_info): New structure.
  1279. (target_auxv_search): Use get_auxv_inferior_data instead of
  1280. target_read_alloc and don't free cached buffers.
  1281. (fprint_target_auxv): Likewise
  1282. (_initialize_auxv): Register per-inferior auxv cache and register
  1283. observers to invalidate auxv cache when needed.
  1284. 2011-11-14 Doug Evans <dje@google.com>
  1285. PR gdb/7200 Make "!" an alias for "shell".
  1286. * NEWS: Add mention.
  1287. * cli/cli-cmds.c (init_cli_cmds): Remove xdb_commands condition on
  1288. adding "!" command, always add it.
  1289. * cli/cli-decode.c (find_command_name_length): Recognize "!" as a
  1290. command of length one.
  1291. 2011-11-14 Stan Shebs <stan@codesourcery.com>
  1292. Kwok Cheung Yeung <kcy@codesourcery.com>
  1293. * NEWS: Document shorter fast tracepoints and qTMinFTPILen packet.
  1294. * i386-tdep.c (i386_fast_tracepoint_valid_at): Query target for
  1295. the minimum instruction size for fast tracepoints.
  1296. * target.h (struct target_ops): Add new method
  1297. to_get_min_fast_tracepoint_insn_len.
  1298. (target_get_min_fast_tracepoint_insn_len): New.
  1299. * target.c (update_current_target): Set up new target operation.
  1300. * remote.c (remote_write_bytes_aux): Fix typo.
  1301. (remote_get_min_fast_tracepoint_insn_len): New.
  1302. (init_remote_ops): Initialize new field.
  1303. 2011-11-14 Tom Tromey <tromey@redhat.com>
  1304. * tracepoint.c (encode_actions_1): Use the location's gdbarch.
  1305. (encode_actions): Likewise.
  1306. 2011-11-14 Yao Qi <yao@codesourcery.com>
  1307. * remote.c (struct remote_state): <install_in_trace> new field.
  1308. (PACKET_InstallInTrace): New enum value.
  1309. (remote_install_in_trace_feature): Support InstallInTrace.
  1310. (remote_supports_install_in_trace): Likewise.
  1311. (remote_protocol_features): Likewise.
  1312. (_initialize_remote): Likewise.
  1313. (remote_can_download_tracepoint): New.
  1314. * target.h (struct target): New field
  1315. `to_can_download_tracepoint'.
  1316. (target_can_download_tracepoint): New macro.
  1317. * target.c (update_current_target): Update.
  1318. * breakpoint.h (struct bp_location): Add comment on field
  1319. `duplicate'.
  1320. * breakpoint.c (should_be_inserted): Don't differentiate breakpoint
  1321. and tracepoint.
  1322. (remove_breakpoints): Don't remove tracepoints.
  1323. (tracepoint_locations_match ): New.
  1324. (breakpoint_locations_match): Call it.
  1325. (disable_breakpoints_in_unloaded_shlib): Handle tracepoint.
  1326. (download_tracepoint_locations): New.
  1327. (update_global_location_list): Call it.
  1328. * tracepoint.c (find_matching_tracepoint): Delete.
  1329. (find_matching_tracepoint_location): Renamed from
  1330. find_matching_tracepoint. Return bp_location rather than
  1331. tracepoint.
  1332. (merge_uploaded_tracepoints): Set `inserted' field to 1 if
  1333. tracepoint is found.
  1334. 2011-11-14 Yao Qi <yao@codesourcery.com>
  1335. * target.h (struct target): <to_download_tracepoint> Change type
  1336. of parameter from tracepoint to bp_location.
  1337. * target.c (update_current_target): Update.
  1338. * tracepoint.c (start_tracing): Update.
  1339. * remote.c (remote_download_tracepoint): Remove loop for each location
  1340. of a tracepoint.
  1341. 2011-11-14 Maciej W. Rozycki <macro@codesourcery.com>
  1342. * i386-nat.c (i386_insert_hw_breakpoint): Call
  1343. i386_update_inferior_debug_regs.
  1344. (i386_remove_hw_breakpoint): Likewise.
  1345. 2011-11-14 Yao Qi <yao@codesourcery.com>
  1346. * breakpoint.c (init_raw_breakpoint): Call
  1347. add_location_to_breakpoint to replace duplicated code.
  1348. (add_location_to_breakpoint): Adjust the breakpoint's
  1349. address prior to allocating a location.
  1350. 2011-11-12 Matt Rice <ratmice@gmail.com>
  1351. * macrocmd.c (macro_no_macro_info): New function.
  1352. (macro_expand_command): Use macro_no_macro_info.
  1353. (macro_expand_once_command): Ditto.
  1354. (info_macro_command): Add argument processing,
  1355. move info_definitions_command here.
  1356. (_initialize_macrocmd): Remove info definitions command.
  1357. Add arguments to info macro help text.
  1358. * NEWS: Replace info definitions command with new info macro options.
  1359. 2011-11-11 Keith Seitz <keiths@redhat.com>
  1360. PR gdb/12843
  1361. * linespec.c (locate_first_half): Keep ':' if it looks
  1362. like it could be part of a Windows path starting with
  1363. a drive letter.
  1364. 2011-11-10 Pedro Alves <pedro@codesourcery.com>
  1365. * linux-nat.c (linux_nat_wait): Don't force waking up the event
  1366. loop when returning a TARGET_WAITKIND_NO_RESUMED.
  1367. 2011-11-10 Pedro Alves <pedro@codesourcery.com>
  1368. * target.c (target_waitstatus_to_string): Handle
  1369. TARGET_WAITKIND_NO_RESUMED.
  1370. 2011-11-10 Doug Evans <dje@google.com>
  1371. * dwarf2read.c (dw2_map_symbol_filenames): New parameter
  1372. `need_fullname'.
  1373. * psymtab.c (map_symbol_filenames_psymtab): Ditto.
  1374. (map_partial_symbol_filenames): Ditto. All callers updated.
  1375. * psymtab.h (map_partial_symbol_filenames): Update prototype.
  1376. * symfile.h (struct quick_symbol_functions, map_symbol_filenames): New
  1377. parameter need_fullname.
  1378. * psymtab.c (psymtab_to_fullname): Use cached copy if it exists.
  1379. * source.c (symtab_to_fullname): Ditto.
  1380. * defs.h (is_cplus_marker, set_demangling_style): Moved to ...
  1381. * gdb-demangle.h: ... here. New file.
  1382. * demangle.c: #include "gdb-demangle.h".
  1383. (_initialize_demangler): Use initialize_file_ftype for prototype.
  1384. Move "set demangle" and "set asm-demangle" parameters here from utils.c
  1385. (demangle, show_demangle, asm_demangle, show_asm_demangle): Move here
  1386. from utils.c
  1387. * utils.c: Update. #include "gdb-demangle.h".
  1388. * symtab.h (asm_demangle): Delete.
  1389. (demangle): Move declaration next to use.
  1390. * breakpoint.c: #include "gdb-demangle.h" instead of "demangle.h".
  1391. * dwarf2read.c: #include "gdb-demangle.h".
  1392. * gnu-v2-abi.c: Ditto.
  1393. * jv-typeprint.c: Ditto.
  1394. * mdebugread.c: Ditto.
  1395. * p-typeprint.c: Ditto.
  1396. * stabsread.c: Ditto.
  1397. * printcmd.c: Ditto.
  1398. (asm_demangle): Delete declaration.
  1399. * tui/tui-stack.c: #include "gdb-demangle.h".
  1400. * python/py-type.c (typy_fields_items): Call check_typedef.
  1401. 2011-11-10 Joel Brobecker <brobecker@adacore.com>
  1402. * findvar.c (read_frame_register_value): Read the correct bytes
  1403. from registers on big-endian architectures.
  1404. 2011-11-10 Tom Tromey <tromey@redhat.com>
  1405. * procfs.c (load_syscalls): Make a cleanup.
  1406. (open_procinfo_files): fd==0 is ok.
  1407. 2011-11-10 Joel Brobecker <brobecker@adacore.com>
  1408. * procfs.c (iterate_over_mappings): Call do_cleanups before
  1409. returning.
  1410. 2011-11-09 Doug Evans <dje@google.com>
  1411. * gdbtypes.c (check_typedef): Document that this function can
  1412. throw an exception.
  1413. 2011-11-09 Tom Tromey <tromey@redhat.com>
  1414. PR c++/13342:
  1415. * valops.c (value_full_object): Return early if real type is
  1416. smaller than the enclosing type.
  1417. 2011-11-08 Yao Qi <yao@codesourcery.com>
  1418. * amd64-tdep.c (amd64_relocate_instruction): Make it static.
  1419. 2011-11-08 Meador Inge <meadori@codesourcery.com>
  1420. * arm-tdep.c (thumb_analyze_prologue): Always fallback on the SP
  1421. register when the frame can't be determined.
  1422. * arm-tdep.c (arm_analyze_prologue): Ditto.
  1423. 2011-11-07 Stan Shebs <stan@codesourcery.com>
  1424. * MAINTAINERS: Move Michael Snyder to Past Maintainers.
  1425. 2011-11-07 Joel Brobecker <brobecker@adacore.com>
  1426. * infrun.c (handle_inferior_event): Minor reformatting.
  1427. 2011-11-05 Doug Evans <dje@google.com>
  1428. * source.c (forget_cached_source_info_for_objfile): Move call to
  1429. objfile->sf->qf->forget_cached_source_info outside of
  1430. ALL_OBJFILE_SYMTABS loop.
  1431. (forget_cached_source_info): Delete unused variable `s'.
  1432. 2011-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
  1433. * i386-nat.c (dr_ref_count): Remove unused variable.
  1434. 2011-11-05 Doug Evans <dje@google.com>
  1435. * main.c (captured_main): Set lim_at_start before calling
  1436. make_command_stats_cleanup.
  1437. 2011-11-04 Doug Evans <dje@google.com>
  1438. * utils.c: #include "timeval-utils.h".
  1439. (cmd_stats): Rename start_time to start_cpu_time.
  1440. New member start_wall_time.
  1441. (report_command_stats): Report wall time.
  1442. (make_command_stats_cleanup): Record start wall time.
  1443. 2011-11-04 Tom Tromey <tromey@redhat.com>
  1444. * cp-namespace.c (cp_lookup_symbol_imports): Reindent.
  1445. 2011-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
  1446. * coff-pe-read.c: Include defs.h before bfd.h.
  1447. 2011-11-04 Phil Muldoon <pmuldoon@redhat.com>
  1448. PR Python/13345
  1449. * python/python.c (python_run_simple_file): Expand tilde in path.
  1450. 2011-11-04 Phil Muldoon <pmuldoon@redhat.com>
  1451. PR Python/13363
  1452. * python/py-type.c (typy_lookup_type): Do not return a type in
  1453. an exception handler.
  1454. 2011-11-03 Jan Kratochvil <jan.kratochvil@redhat.com>
  1455. Eli Zaretskii <eliz@gnu.org>
  1456. * linux-nat.c (_initialize_linux_nat): Improve help
  1457. for `info proc stat', `info proc status', `info proc cwd',
  1458. `info proc cmdline' and `info proc exe'.
  1459. 2011-11-02 Stan Shebs <stan@codesourcery.com>
  1460. String collection for tracepoints.
  1461. * NEWS: Mention string collection.
  1462. * common/ax.def (tracenz): New bytecode.
  1463. * ax-gdb.h (trace_string_kludge): Declare.
  1464. * ax-gdb.c: Include valprint.h and c-lang.h.
  1465. (trace_string_kludge): New global.
  1466. (gen_traced_pop): Add string case.
  1467. (agent_command): Add string case.
  1468. * tracepoint.h (decode_agent_options): Declare.
  1469. * tracepoint.c: Include cli-utils.h.
  1470. (decode_agent_options): New function.
  1471. (validate_actionline): Call it.
  1472. (encode_actions_1): Ditto.
  1473. * target.h (struct target_ops): New method to_supports_string_tracing.
  1474. (target_supports_string_tracing): New macro.
  1475. * target.c (update_current_target): Add to_supports_string_tracing.
  1476. * remote.c (struct remote_state): New field string_tracing.
  1477. (remote_string_tracing_feature): New function.
  1478. (remote_protocol_features): New feature tracenz.
  1479. (remote_supports_string_tracing): New function.
  1480. (init_remote_ops): Set to_supports_string_tracing.
  1481. 2011-11-02 Pedro Alves <pedro@codesourcery.com>
  1482. Jan Kratochvil <jan.kratochvil@redhat.com>
  1483. * linux-nat.c: Include cli/cli-utils.h.
  1484. (enum info_proc_what): New.
  1485. (linux_nat_info_proc_cmd): Rename to ...
  1486. (linux_nat_info_proc_cmd_1): ... here. Remove variables argv and all.
  1487. New parameter what. Initialize cmdline_f, cwd_f, exe_f, mappings_f,
  1488. status_f and stat_f from WHAT. Throw error on extra parameters.
  1489. (linux_nat_info_proc_cmd, linux_nat_info_proc_cmd_mappings)
  1490. (linux_nat_info_proc_cmd_stat, linux_nat_info_proc_cmd_status)
  1491. (linux_nat_info_proc_cmd_cwd, linux_nat_info_proc_cmd_cmdline)
  1492. (linux_nat_info_proc_cmd_exe, linux_nat_info_proc_cmd_all): New.
  1493. (_initialize_linux_nat): New variable info_proc_cmdlist. Install `info
  1494. proc mappings', `info proc stat`, `info proc status', `info proc cwd',
  1495. `info proc cmdline', `info proc exe' and `info proc all' as real
  1496. subcommands of `info proc'.
  1497. 2011-11-01 Justin Lebar <justin.lebar@gmail.com>
  1498. * Makefile.in: (SFILES): Add skip.c.
  1499. (HFILES_NO_SRCDIR): Add skip.h.
  1500. (COMMON_OBS): Add skip.o.
  1501. * skip.h, skip.c: New.
  1502. * breakpoint.h (set_default_breakpoint): Remove.
  1503. (get_sal_arch): Declare.
  1504. * breakpoint.c: Remove default_breakpoint_valid,
  1505. default_breakpoint_address, default_breakpoint_symtab,
  1506. default_breakpoint_line, default_breakpoint_pspace variables.
  1507. (get_sal_arch): Make public.
  1508. (set_default_breakpoint): Remove.
  1509. (parse_breakpoint_sals, create_breakpoint, clear_command,
  1510. decode_line_spec_1): Remove uses of default_breakpoint variables;
  1511. replaced with function calls into stack.c.
  1512. * cli/cli-cmds.h: Add cmd_list_element *skiplist.
  1513. * cli/cli-cmds.c: Add skiplist.
  1514. (init_cmd_lists): Initialize skiplist.
  1515. (init_cli_cmds): Fix comment (classes of commands appear in
  1516. alphabetical order).
  1517. * infrun.c (handle_inferior_event): Add check that we don't step into
  1518. a function whose pc is marked for skip.
  1519. * stack.c: Declare last_displayed_sal_valid, last_displayed_pspace,
  1520. last_displayed_addr, last_displayed_symtab, last_displayed_line
  1521. variables.
  1522. (set_last_displayed_sal): New static function.
  1523. (print_frame_info): Switch call to set_default_breakpoint to call to
  1524. set_last_displayed_sal.
  1525. (clear_last_displayed_sal, last_displayed_sal_is_valid,
  1526. get_last_displayed_pspace, get_last_displayed_addr,
  1527. get_last_displayed_symtab, get_last_displayed_line,
  1528. get_last_displayed_sal): New public functions.
  1529. * stack.h (clear_last_displayed_sal, last_displayed_sal_is_valid,
  1530. get_last_displayed_pspace, get_last_displayed_addr,
  1531. get_last_displayed_symtab, get_last_displayed_line,
  1532. get_last_displayed_sal): Declare.
  1533. 2011-11-01 Justin Lebar <justin.lebar@gmail.com>
  1534. * MAINTAINERS (Write After Approval): Add myself to the list.
  1535. 2011-10-29 Yao Qi <yao@codesourcery.com>
  1536. * infcmd.c (disconnect_command): Call disconnect_tracing.
  1537. 2011-10-29 Jan Kratochvil <jan.kratochvil@redhat.com>
  1538. Code cleanup.
  1539. * symtab.c (skip_prologue_sal): Code reformatting.
  1540. 2011-10-28 Jan Kratochvil <jan.kratochvil@redhat.com>
  1541. PR symtab/13208
  1542. * jit.c (jit_register_code): Remove unused variable my_cleanups. Check
  1543. for NULL from bfd_open_from_target_memory. Fix ownership of NBFD and
  1544. SAI.
  1545. 2011-10-28 Pedro Alves <pedro@codesourcery.com>
  1546. * linux-nat.c (linux_nat_filter_event): Remove `options'
  1547. parameter, and dead code that used it. If we're handling a
  1548. PTRACE_EVENT_EXEC event, and the thread group leader is no longer
  1549. in our lwp list, re-add it.
  1550. (check_zombie_leaders): New.
  1551. (linux_nat_wait_1): Remove `options' and `pid' locals. Always
  1552. wait for children with WNOHANG, and always wait for all children.
  1553. Don't check for no resumed children upfront. Simplify wait loop.
  1554. Check for zombie thread group leaders after handling all wait
  1555. statuses. Return TARGET_WAITKIND_NO_RESUMED if there no
  1556. unwaited-for children left.
  1557. * infrun.c (fetch_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
  1558. (handle_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
  1559. (normal_stop): Handle TARGET_WAITKIND_NO_RESUMED.
  1560. * target.h (enum target_waitkind) <TARGET_WAITKIND_NO_RESUMED>: New.
  1561. 2011-10-28 Sterling Augustine <saugustine@google.com>
  1562. * psymtab.c (map_symbol_filenames_psymtab): Call QUIT.
  1563. * symtab.c (free_completion_list): New function.
  1564. (do_free_completion_list): Likewise.
  1565. (default_make_symbol_completion_list_break_on): New variable
  1566. back_to. Call make_cleanup and discard_cleanups.
  1567. (make_source_files_completion_list): Likewise.
  1568. 2011-10-28 Paul Koning <paul_koning@dell.com>
  1569. * python/lib/gdb/types.py (deep_items): Rename from deepitems.
  1570. * NEWS: Mention deep_items.
  1571. 2011-10-28 Alen Skondro <askondro@gmail.com>
  1572. * ser-tcp.c [USE_WIN32API] (ETIMEDOUT): Don't define if already
  1573. defined.
  1574. 2011-10-27 Meador Inge <meadori@codesourcery.com>
  1575. * MAINTAINERS (Write After Approval): Add myself to the list.
  1576. 2011-10-27 Joel Brobecker <brobecker@adacore.com>
  1577. * value.h (read_frame_register_value): Add declaration.
  1578. * findvar.c (read_frame_register_value): New function.
  1579. (value_from_register): Use read_frame_register_value
  1580. instead of get_frame_register_value + value_contents_copy
  1581. to get value contents.
  1582. 2011-10-27 Doug Evans <dje@google.com>
  1583. * cli/cli-cmds.c (source_script_with_search): Pass full path to
  1584. source_script_from_stream if it may have been found on the search path.
  1585. * python/py-auto-load.c (source_section_scripts): Pass full path to
  1586. source_python_script_for_objfile.
  1587. * python/python.c (source_python_script): Delete stream parameter.
  1588. All callers updated.
  1589. (source_python_script_for_objfile): Ditto.
  1590. * python/python-internal.h (source_python_script_for_objfile): Update.
  1591. * python/python.h (source_python_script): Update.
  1592. 2011-10-27 Tom Tromey <tromey@redhat.com>
  1593. * ada-lang.h (ada_start_decode_line_1, ada_finish_decode_line_1)
  1594. (ada_sals_for_line): Remove declarations.
  1595. 2011-10-27 Kevin Pouget <kevin.pouget@st.com>
  1596. Move unwind reasons to an external .def file
  1597. * frame.c (frame_stop_reason_string): Rewrite using
  1598. unwind_stop_reasons.def.
  1599. * frame.h (enum unwind_stop_reason): Likewise.
  1600. * python/py-frame.c (gdbpy_initialize_frames): Likewise.
  1601. (gdbpy_frame_stop_reason_string): Use new enum unwind_stop_reason
  1602. constants for bound-checking.
  1603. * unwind_stop_reasons.def: New file.
  1604. * stack.c (backtrace_command_1): Handle UNWIND_FIRST_ERROR as an alias
  1605. instead of a distinct value.
  1606. 2011-10-27 Phil Muldoon <pmuldoon@redhat.com>
  1607. PR python/13331
  1608. * python/py-function.c (fnpy_call): Check 'args' is not NULL.
  1609. (convert_values_to_python): Return on Python tuple allocation
  1610. failure. Return NULL on value conversion error.
  1611. 2011-10-27 Phil Muldoon <pmuldoon@redhat.com>
  1612. * python/py-breakpoint.c (bppy_set_enabled): Use TRY_CATCH.
  1613. (bppy_set_task): Ditto.
  1614. (bppy_delete_breakpoint): Ditto.
  1615. * python/py-symbol.c (gdbpy_lookup_symbol): Ditto.
  1616. (gdbpy_lookup_global_symbol): Ditto.
  1617. * python/py-lazy-string.c (stpy_convert_to_value): Ditto.
  1618. * python/py-frame.c (frapy_is_valid): Ditto.
  1619. (frame_info_to_frame_object): Ditto.
  1620. * python/py-type.c (typy_lookup_type): Ditto.
  1621. (typy_getitem): Ditto.
  1622. (typy_has_key): Ditto.
  1623. (typy_richcompare): Use TRY_CATCH. Do not return Py_NE on error.
  1624. 2011-10-26 Joel Brobecker <brobecker@adacore.com>
  1625. * gdbarch.h: Regenerate.
  1626. 2011-10-26 Meador Inge <meadori@codesourcery.com>
  1627. * gdbarch.sh (function_list): Use 'pstring' when printing
  1628. 'gcore_bfd_target'.
  1629. * gdbarch.c: Regenerate.
  1630. 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
  1631. * regcache.c (registers_changed_ptid): Invalidate thread architecture
  1632. and frame caches if PTID refers to all threads of a process.
  1633. 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
  1634. * spu-tdep.c (spu_catch_start): Pass non-NULL breakpoint ops
  1635. to create_breakpoint.
  1636. 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
  1637. * ppc-sysv-tdep.c (ppc_sysv_use_opencl_abi): New function.
  1638. (ppc_sysv_abi_push_dummy_call): Use it.
  1639. (do_ppc_sysv_return_value): Likewise.
  1640. (ppc64_sysv_abi_push_dummy_call): Likewise.
  1641. (ppc64_sysv_abi_return_value): Likewise.
  1642. 2011-10-26 Paul Koning <paul_koning@dell.com>
  1643. * python/lib/gdb/types.py (deepitems): New function.
  1644. 2011-10-25 Paul Koning <paul_koning@dell.com>
  1645. PR python/13327
  1646. * python/py-value.c (value_to_value_object): Remove fetching of
  1647. the value if it was lazy.
  1648. (valpy_get_is_lazy): New function.
  1649. (valpy_fetch_lazy): New function.
  1650. 2011-10-24 Joel Brobecker <brobecker@adacore.com>
  1651. * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Do not check
  1652. FUNC_TYPE's calling convention if FUNC_TYPE is not a function.
  1653. 2011-10-24 Pedro Alves <pedro@codesourcery.com>
  1654. * linux-nat.c (linux_handle_extended_wait): When handling a clone
  1655. event, in non-stop, if not stopping, make sure the new lwp has
  1656. last_resume_kind set to resume_continue. Assert that when we're
  1657. resuming the new lwp, its last_resume_kind is resume_continue.
  1658. 2011-10-24 Pedro Alves <pedro@codesourcery.com>
  1659. * infrun.c (handle_inferior_event): Don't assume inferior_ptid is
  1660. already set when marking the event thread as not executing in
  1661. non-stop mode.
  1662. 2011-10-24 Pedro Alves <pedro@codesourcery.com>
  1663. * infrun.c (handle_inferior_event): Add debug output for
  1664. TARGET_WAITKIND_NO_HISTORY.
  1665. 2011-10-24 Phil Muldoon <pmuldoon@redhat.com>
  1666. * NEWS: Move set/show extended-prompt to "New Options". Expand
  1667. description. Fix typos.
  1668. 2011-10-24 Phil Muldoon <pmuldoon@redhat.com>
  1669. PR python/13310
  1670. * python/py-param.c (call_doc_function): Correctly deference on
  1671. function exit.
  1672. 2011-10-21 Joel Brobecker <brobecker@adacore.com>
  1673. * ada-tasks.c (print_ada_task_info): Fix computation of
  1674. number of tasks displayed in command output.
  1675. 2011-10-20 Jan Kratochvil <jan.kratochvil@redhat.com>
  1676. Ulrich Weigand <uweigand@de.ibm.com>
  1677. * dwarf2-frame-tailcall.c: Include dwarf2-frame.h.
  1678. (dwarf2_tailcall_prev_register_first): Use dwarf2_frame_cfa.
  1679. (dwarf2_tailcall_sniffer_first): Remove variable pc_regnum. Replace
  1680. gdbarch_pc_regnum and frame_unwind_register_unsigned by
  1681. gdbarch_unwind_pc.
  1682. 2011-10-20 Cary Coutant <ccoutant@google.com>
  1683. * dwarf2read.c (dw2_get_file_names): Move adjustment for type
  1684. section to...
  1685. (partial_read_comp_unit_head): ...here. Add is_debug_type_section
  1686. flag. Adjust all callers.
  1687. (process_psymtab_comp_unit): Remove adjustment for type section.
  1688. 2011-10-20 Aleksandar Ristovski <aristovski@qnx.com>
  1689. * cp-namespace.c (cp_scan_for_anonymous_namespaces): Changed function
  1690. arguments by adding OBJFILE. Instead of getting objfile from
  1691. symbol's symtab, use new argument OBJFILE.
  1692. * cp-support.h (cp_scan_for_anonymous_namespaces): Changed function
  1693. arguments by adding OBJFILE.
  1694. * dwarf2read.c (new_symbol_full): Change call to
  1695. cp_scan_for_anonymous_namespaces to match new signature.
  1696. * stabsread.c (define_symbol): Change call to
  1697. cp_scan_for_anonymous_namespaces to match new signature.
  1698. 2011-10-20 Phil Muldoon <pmuldoon@redhat.com>
  1699. PR python/13308
  1700. PR python/13309
  1701. * python/py-breakpoint.c (gdbpy_breakpoints): Fix List reference
  1702. leak.
  1703. * python/py-inferior.c (gdbpy_inferiors): Fix List reference
  1704. leak. Delete unused variables.
  1705. 2011-10-20 Phil Muldoon <pmuldoon@redhat.com>
  1706. PR python/12656
  1707. * python/py-frame.c (frapy_read_var): Use const struct *block.
  1708. * python/py-type.c (typy_lookup_typename): Likewise.
  1709. (typy_lookup_type): Likewise.
  1710. (typy_legacy_template_argument): Likewise.
  1711. (typy_template_argument): Likewise.
  1712. (gdbpy_lookup_type): Likewise.
  1713. * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
  1714. * python/py-block.c (blpy_block_object): Likewise.
  1715. (blpy_iter): Likewise.
  1716. (blpy_get_start): Likewise.
  1717. (blpy_get_end): Likewise.
  1718. (blpy_get_function): Likewise.
  1719. (blpy_get_superblock): Likewise.
  1720. (set_block): Likewise.
  1721. (block_to_block_object): Likewise.
  1722. (block_object_to_block): Likewise.
  1723. (blpy_is_valid): Likewise.
  1724. (blpy_get_global_block): New function.
  1725. (blpy_get_static_block): New function.
  1726. (blpy_is_global): New function.
  1727. (blpy_is_static): New function.
  1728. * blockframe.c (block_innermost_frame): Likewise.
  1729. * valops.c (value_of_variable): Likewise.
  1730. * frame.h: Update prototypes.
  1731. * python/python-internal.h: Likewise.
  1732. * value.h: Likewise.
  1733. 2011-10-19 Cary Coutant <ccoutant@google.com>
  1734. * dwarf2read.c (create_debug_types_hash_table): Fix size of
  1735. type_offset field.
  1736. 2011-10-19 Cary Coutant <ccoutant@google.com>
  1737. * dwarf2read.c (peek_abbrev_code): New function.
  1738. (dw2_get_file_names): Check for dummy compilation units.
  1739. (create_debug_types_hash_table): Likewise.
  1740. (process_psymtab_comp_unit): Likewise.
  1741. (load_partial_comp_unit): Likewise.
  1742. (load_full_comp_unit): Likewise.
  1743. 2011-10-18 Aleksandar Ristovski <aristovski@qnx.com>
  1744. * solib-svr4.c (read_program_header): New variables pt_phdr, pt_phdr_p,
  1745. initialize them from target PT_PHDR p_vaddr, relocate sect_addr by
  1746. pt_phdr if PT_PHDR was found.
  1747. 2011-10-17 Joost van der Sluis <joost@cnoc.nl>
  1748. * gdbtypes.h: Added TYPE_SAFE_NAME macro to get the name of a
  1749. type or "<unnamed type"> when there is no name assigned.
  1750. * gnu-v3-abi.c (gnuv3_rtti_type): Use TYPE_SAFE_NAME macro to
  1751. avoid a sigint when no name is assigned.
  1752. 2011-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
  1753. Revert:
  1754. 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
  1755. * dwarf2expr.c (ctx_no_read_reg): New function.
  1756. * dwarf2expr.h (ctx_no_read_reg): New declaration.
  1757. * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
  1758. (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
  1759. (decode_locdesc): Replace by a caller of dwarf_expr_eval.
  1760. 2011-10-16 Doug Evans <dje@google.com>
  1761. * NEWS: Document python gdb.printing.register_pretty_printer's new
  1762. `replace' parameter.
  1763. 2011-10-14 Keith Seitz <keiths@redhat.com>
  1764. PR c++/13225
  1765. * eval.c (evaluate_subexp_standard): Do not construct
  1766. an array of types; pass the value array directly to
  1767. find_overload_match.
  1768. * gdbtypes.h (NULL_POINTER_CONVERSION_BADNESS): Declare.
  1769. (rank_function): Take an array of values instead of types.
  1770. (rank_one_type): Add struct value * parameter.
  1771. * gdbtypes.c (NULL_POINTER_CONVERSION_BADNESS): Define.
  1772. (rank_function): For each argument, pass the argument's
  1773. value to rank_one_type.
  1774. (rank_one_type): Add VALUE parameter.
  1775. If the parameter type is a pointer and the argument type
  1776. is an integer, return NULL_POINTER_CONVERSION_BADNESS if
  1777. VALUE is zero.
  1778. Update all calls to rank_one_type, passing NULL for new
  1779. VALUE parameter.
  1780. * valarith.c (value_user_defined_cpp_op): Do not construct
  1781. an array of types; pass the value array directly to
  1782. find_overload_match.
  1783. * valops.c (find_overload_method_list): Take an array of
  1784. values instead of types.
  1785. Save the type of OBJP for later use.
  1786. Update calls to find_oload_champ, and find_oload_champ_namespace.
  1787. (find_oload_champ_namespace): Take an array of values instead
  1788. of types.
  1789. (find_oload_champ_namespace_loop): Likewise.
  1790. (find_oload_champ): Likewise.
  1791. (classify_oload_match): Inspect all arguments
  1792. until INCOMPATIBLE is found. Return the worst badness found
  1793. otherwise.
  1794. (compare_parameters): Update call to rank_one_type.
  1795. * value.h (find_overload_match): Take an array of values instead
  1796. of types.
  1797. 2011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
  1798. Drop lazy lm_info reading.
  1799. * solib-svr4.c (struct lm_info): Remove field lm. New fields l_addr_p,
  1800. l_addr_inferior, l_ld, l_next, l_prev and l_name.
  1801. (lm_info_read): New function.
  1802. (lm_addr_from_link_map, lm_dynamic_from_link_map): Remove.
  1803. (lm_addr_check): Use l_addr_p. No longer use lm_addr_from_link_map and
  1804. lm_dynamic_from_link_map.
  1805. (lm_next, lm_prev, lm_name): Remove.
  1806. (svr4_keep_data_in_core): Use lm_info_read, drop the lm_info entries
  1807. initialization incl. read_memory. No longer use lm_name.
  1808. (svr4_free_so): Drop lm_info->lm freeing.
  1809. (svr4_default_sos): Initialize lminfo with zeroes. Use l_addr_p. Drop
  1810. explicit lm_addr and lm initialization.
  1811. (svr4_read_so_list): Use lm_info_read, drop the initailization of
  1812. fields by hand, incl. read_memory. No longer use lm_next, lm_prev and
  1813. lm_name.
  1814. 2011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
  1815. Paul Pluzhnikov <ppluzhnikov@google.com>
  1816. * defs.h (struct so_list): New forward declaration.
  1817. (make_cleanup_free_so): New declaration.
  1818. * solib-svr4.c (ignore_first_link_map_entry): Remove.
  1819. (svr4_free_so): Move the function here from downwards. Handle NULL
  1820. so->lm_info.
  1821. (svr4_free_library_list): New.
  1822. (svr4_read_so_list): New, moved here code from svr4_current_sos.
  1823. Use more cleanups. Use new parameter ignore_first instead of
  1824. ignore_first_link_map_entry.
  1825. (svr4_current_sos): New variable ignore_first, initialize it. New
  1826. variable back_to, use it for svr4_free_library_list protection.
  1827. (svr4_free_so): Remove - move upwards.
  1828. * utils.c: Include solist.h.
  1829. (do_free_so, make_cleanup_free_so): New functions.
  1830. 2011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
  1831. Fix internal error regression.
  1832. * value.c (value_primitive_field): Handle value_optimized_out. Move
  1833. packed bitfields comment.
  1834. 2011-10-13 Tom Tromey <tromey@redhat.com>
  1835. * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Ensure GIL is
  1836. always released.
  1837. 2011-10-13 Tom Tromey <tromey@redhat.com>
  1838. * python/py-type.c (typy_has_key): Make 'field' const.
  1839. 2011-10-13 Luis Machado <lgustavo@codesourcery.com>
  1840. * remote.c (remote_save_trace_data): Invert comparison.
  1841. 2011-10-13 Luis Machado <lgustavo@codesourcery.com>
  1842. * tracepoint.c (trace_save_command): Use filename instead of
  1843. args when printing.
  1844. 2011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
  1845. * dwarf2read.c (dwarf2_fetch_die_location_block): Initialize .data even
  1846. if .size is 0.
  1847. 2011-10-13 Yao Qi <yao@codesourcery.com>
  1848. PR gdb/12703
  1849. * arm-tdep.c (thumb_analyze_prologue): Call thumb_insn_size to check
  1850. whether insn is a 32-bit Thumb-2 instruction.
  1851. (thumb_in_function_epilogue_p): Likewise.
  1852. (thumb_get_next_pc_raw): Likewise.
  1853. (arm_breakpoint_from_pc): Likewise.
  1854. 2011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
  1855. Fix empty DWARF expressions DATA vs. SIZE conditionals.
  1856. * dwarf2loc.c (dwarf2_find_location_expression): Clear *LOCEXPR_LENGTH.
  1857. (dwarf_expr_frame_base_1): Indicate unavailability via zero *LENGTH.
  1858. (locexpr_tracepoint_var_ref): Check only zero SIZE, not zero DATA.
  1859. (loclist_read_variable, loclist_tracepoint_var_ref): Do not check for
  1860. zero DATA.
  1861. * dwarf2loc.h (struct dwarf2_locexpr_baton): Comment DATA vs. SIZE
  1862. validity.
  1863. * dwarf2read.c (struct dwarf_block): Comment DATA validity.
  1864. (dwarf2_fetch_die_location_block, dwarf2_symbol_mark_computed): Do not
  1865. clear DATA on zero SIZE.
  1866. 2011-10-12 Doug Evans <dje@google.com>
  1867. * dwarf2read.c (partial_read_comp_unit_head): Set header->offset,
  1868. header->first_die_offset here. All callers updated.
  1869. 2011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
  1870. Fix compatibility with texinfo versions older than 4.12.
  1871. * Makefile.in (MAKEINFO): Set to @MAKEINFO@.
  1872. (MAKEINFOFLAGS, MAKEINFO_EXTRA_FLAGS, MAKEINFO_CMD): New.
  1873. (MAKEHTMLFLAGS): Use MAKEINFO_CMD.
  1874. (FLAGS_TO_PASS): Add MAKEINFOFLAGS and MAKEINFO_EXTRA_FLAGS.
  1875. * configure: Regenerate.
  1876. * configure.ac (MAKEINFO): Find it, from libiberty/configure.ac.
  1877. (MAKEINFOFLAGS): Pre-set it to --split-size=5000000.
  1878. (MAKEINFO_EXTRA_FLAGS): New test for -DHAVE_MAKEINFO_CLICK.
  1879. 2011-10-12 Gary Benson <gbenson@redhat.com>
  1880. * breakpoint.h (pc_at_non_inline_function): Declare.
  1881. * breakpoint.c (is_non_inline_function,
  1882. pc_at_non_inline_function): New functions.
  1883. * infrun.c (handle_inferior_event): Don't call skip_inline_frames
  1884. if the stop is at a location where functions cannot be inlined.
  1885. 2011-10-12 Pedro Alves <pedro@codesourcery.com>
  1886. * linux-nat.c (stop_and_resume_callback): Don't re-resume LWPs if
  1887. the core wanted them stopped, or if they now have a pending event
  1888. to report.
  1889. (linux_nat_filter_event): New parameter `new_pending_p'. Pass it
  1890. down to stop_and_resume_callback.
  1891. (linux_nat_wait_1): Always clear `options' when retrying. Handle
  1892. having new pending events after calling linux_nat_filter_event.
  1893. 2011-10-11 Sterling Augustine <saugustine@google.com>
  1894. * dwarf2read.c: Undo inadvertent changes in previous commit.
  1895. 2011-10-11 Sterling Augustine <saugustine@google.com>
  1896. * dwarf2read.c (partial_die_parent_scope): Rearrange conditional
  1897. logic.
  1898. 2011-10-11 Ulrich Weigand <ulrich.weigand@linaro.org>
  1899. * symfile.c (separate_debug_file_exists): Fix condition.
  1900. 2011-10-11 David S. Miller <davem@davemloft.net>
  1901. * regcache.c (regcache_restore): Do not write unavailable regs, mark
  1902. static.
  1903. * regcache.h (regcache_restore): Remove declaration.
  1904. * gdbarch.sh: New field 'long_long_align_bit'.
  1905. * gdbarch.c, gdbarch.h: Regenerate.
  1906. * i386-tdep.c (i386_gdbarch_init): Set long_long_align_bit to 32.
  1907. * jit.c (jit_read_code_entry): Use it to determine correct size offset.
  1908. 2011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
  1909. Revert this part of:
  1910. 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
  1911. Support @entry in input expressions.
  1912. * c-exp.y (ENTRY, unknown_cpp_name): New.
  1913. (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
  1914. (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
  1915. (variable: name_not_typename '@' ENTRY, name: ENTRY)
  1916. (name_not_typename: ENTRY): New.
  1917. (yylex): Recognize ENTRY.
  1918. Reimplement @entry in input expressions.
  1919. * c-exp.y (ENTRY): New.
  1920. (variable: name_not_typename ENTRY): New.
  1921. (lex_one_token): Optionally return ENTRY instead of the '@' lex.
  1922. 2011-10-11 Pedro Alves <pedro@codesourcery.com>
  1923. * linux-nat.c (linux_handle_extended_wait): Always dump both the
  1924. parent and child's pids as soon as we detect a clone event.
  1925. Adjust another debug message.
  1926. 2011-10-11 Pedro Alves <pedro@codesourcery.com>
  1927. * linux-nat.c (linux_lwp_is_zombie): Return early if the LWP is
  1928. not zombie instead of reading the whole file.
  1929. 2011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
  1930. Fix separate debuginfo warning with "remote:" access.
  1931. * objfiles.h (struct objfile): New fields crc32 and crc32_p.
  1932. * symfile.c (get_file_crc): New function with the code moved from ...
  1933. (separate_debug_file_exists): ... this function, specifically variables
  1934. buffer and count. New variable verified_as_different, set it. Remove
  1935. file_crc initialization. Verify also if both files are not the same
  1936. manually, if needed.
  1937. 2011-10-11 Yao Qi <yao@codesourcery.com>
  1938. * arm-tdep.c (arm_get_next_pc_raw): Use read_memory_unsigned_integer
  1939. to get address.
  1940. 2011-10-10 Doug Evans <dje@google.com>
  1941. * linux-thread-db.c (thread_db_new_objfile): Only try to load
  1942. libthread_db when we load libpthread or the main symbol file.
  1943. (thread_db_inferior_created): New function.
  1944. (_initialize_thread_db): Attach inferior_created observer.
  1945. * linux-nat.c (linux_child_post_attach): Remove call to
  1946. check_for_thread_db.
  1947. (linux_child_post_startup_inferior): Ditto.
  1948. * objfiles.h (OBJF_MAINLINE): Define.
  1949. * symfile.c (symbol_file_add_with_addrs_or_offsets): Pass it to
  1950. allocate_objfile when appropriate.
  1951. 2011-10-10 Ulrich Weigand <ulrich.weigand@linaro.org>
  1952. PR gdb/13218
  1953. * arm-linux-nat.c (os_version, os_major, os_minor, os_release):
  1954. Remove unused variables.
  1955. (get_linux_version): Remove function.
  1956. (_initialize_arm_linux_nat): Do not call it.
  1957. 2011-10-10 Pedro Alves <pedro@codesourcery.com>
  1958. * linux-nat.c (linux_handle_extended_wait): Don't resume the new
  1959. new clone lwp if the core asked it to stop. Don't pass on
  1960. unexpected signals to the new clone; leave them pending instead.
  1961. 2011-10-10 Pedro Alves <pedro@codesourcery.com>
  1962. * linux-nat.c (resume_lwp): Remove redundant debug output.
  1963. 2011-10-10 Pedro Alves <pedro@codesourcery.com>
  1964. * linux-nat.c (linux_nat_wait_1): Copy the event lwp's
  1965. last_resume_kind before clearing it, and use the copy instead to
  1966. determine whether to report a SIGSTOP as TARGET_SIGNAL_0. Use
  1967. resume_clear_callback in the non-stop path too.
  1968. 2011-10-09 Yao Qi <yao@codesourcery.com>
  1969. * valprint.c (value_check_printable): Add one parameter OPTIONS.
  1970. Honor OPTIONS and VAL's type.
  1971. (common_val_print, value_print): Update to pass one more parameter.
  1972. 2011-10-09 Doug Evans <dje@google.com>
  1973. Add new "alias" command.
  1974. * NEWS: Mention new command.
  1975. * command.h (valid_user_defined_cmd_name_p): Declare.
  1976. * defs.h (make_cleanup_dyn_string_delete): Declare.
  1977. * utils.c: #include "dyn-string.h".
  1978. (do_dyn_string_delete, make_cleanup_dyn_string_delete): New functions.
  1979. * cli/cli-cmds.c: #include "dyn-string.h".
  1980. (argv_to_dyn_string, valid_command_p, alias_command): New functions.
  1981. (init_cli_cmds): Add new command.
  1982. * cli/cli-decode.c (valid_user_defined_cmd_name_p): New function.
  1983. 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
  1984. Fix compatibility with older GCCs.
  1985. * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Initialize parameter.
  1986. * stack.c (read_frame_arg): Initialize val_deref.
  1987. 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
  1988. Entry values NEWS entries, DWARF disassembly support.
  1989. * NEWS: New entry values entry.
  1990. (set print entry-values, show print entry-values)
  1991. (set debug entry-values, show debug entry-values): New entries.
  1992. * dwarf2loc.c (disassemble_dwarf_expression): New parameters start and
  1993. indent. Remove variable start. Move header printing out. Respect
  1994. INDENT. Support DW_OP_GNU_entry_value.
  1995. (locexpr_describe_location_1): Move the header printing here, extend
  1996. the disassemble_dwarf_expression passed parameters.
  1997. 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
  1998. Display @entry parameter values even for references.
  1999. * ada-valprint.c (ada_val_print_1) <TYPE_CODE_REF>: Try also
  2000. coerce_ref_if_computed.
  2001. * c-valprint.c (c_val_print) <TYPE_CODE_REF>: Likewise.
  2002. * dwarf2expr.c (dwarf_block_to_dwarf_reg_deref): New function.
  2003. (execute_stack_op) <DW_OP_GNU_entry_value>: Add -1 deref_size to the
  2004. existing push_dwarf_reg_entry_value call. Add new detection calling
  2005. dwarf_block_to_dwarf_reg_deref. Update the error message.
  2006. (ctx_no_push_dwarf_reg_entry_value): New parameter deref_size.
  2007. * dwarf2expr.h
  2008. (struct dwarf_expr_context_funcs) <push_dwarf_reg_entry_value>: Add new
  2009. parameter deref_size, describe it in the comment.
  2010. (ctx_no_push_dwarf_reg_entry_value): Add new parameter deref_size.
  2011. (dwarf_block_to_dwarf_reg_deref): New declaration.
  2012. * dwarf2loc.c (dwarf_entry_parameter_to_value): Add new parameter
  2013. deref_size, describe it in the function comment. New variables
  2014. data_src and size, fetch the alternative block accoring to DEREF_SIZE.
  2015. (dwarf_expr_push_dwarf_reg_entry_value): Add new parameter deref_size,
  2016. describe it in the function comment. Fetch the alternative block
  2017. accoring to DEREF_SIZE.
  2018. (entry_data_value_coerce_ref, entry_data_value_copy_closure)
  2019. (entry_data_value_free_closure, entry_data_value_funcs): New.
  2020. (value_of_dwarf_reg_entry): New variables checked_type, target_type,
  2021. outer_val, target_val, val and addr. Try to fetch and create also
  2022. referenced value content.
  2023. (pieced_value_funcs): NULL value for coerce_ref.
  2024. (needs_dwarf_reg_entry_value): Add new parameter deref_size.
  2025. * f-valprint.c (f_val_print) <TYPE_CODE_REF>: Try also
  2026. coerce_ref_if_computed.
  2027. * opencl-lang.c (opencl_value_funcs): NULL value for coerce_ref.
  2028. * p-valprint.c (pascal_val_print) <TYPE_CODE_REF>: Likewise.
  2029. * stack.c (read_frame_arg): Compare also dereferenced values.
  2030. * value.c (value_computed_funcs): Make the parameter v const, use
  2031. value_lval_const for it.
  2032. (value_lval_const, coerce_ref_if_computed): New function.
  2033. (coerce_ref): New variable retval. Call also coerce_ref_if_computed.
  2034. * value.h (struct lval_funcs): New field coerce_ref.
  2035. (value_computed_funcs): Make the parameter v const.
  2036. (value_lval_const, coerce_ref_if_computed): New declarations.
  2037. 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
  2038. Support @entry in input expressions.
  2039. * c-exp.y (ENTRY, unknown_cpp_name): New.
  2040. (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
  2041. (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
  2042. (variable: name_not_typename '@' ENTRY, name: ENTRY)
  2043. (name_not_typename: ENTRY): New.
  2044. (yylex): Recognize ENTRY.
  2045. * eval.c (evaluate_subexp_standard): Support also OP_VAR_ENTRY_VALUE.
  2046. * expprint.c (print_subexp_standard, dump_subexp_body_standard):
  2047. Likewise.
  2048. * parse.c (operator_length_standard): Likewise.
  2049. * std-operator.def: New operator OP_VAR_ENTRY_VALUE.
  2050. 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
  2051. Display referenced values in backtraces.
  2052. * printcmd.c (print_variable_and_value): Set OPTS.DEREF_REF to 1.
  2053. * stack.c (print_frame_arg): Likewise.
  2054. 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
  2055. Make some lval_funcs methods to default on NULL.
  2056. * valops.c (value_fetch_lazy): Check if lval_computed read method is
  2057. NULL.
  2058. (value_assign): Check if lval_computed write method is NULL.
  2059. * value.h (struct lval_funcs): Comment NULL values for read and write
  2060. methods.
  2061. 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
  2062. Display @entry parameter values (without references).
  2063. * dwarf2expr.c (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
  2064. New functions.
  2065. * dwarf2expr.h (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
  2066. New declarations.
  2067. * dwarf2loc.c (dwarf2_find_location_expression): Support location list
  2068. entry record.
  2069. (dwarf_entry_parameter_to_value, value_of_dwarf_reg_entry)
  2070. (value_of_dwarf_block_entry, locexpr_read_variable_at_entry): New
  2071. functions.
  2072. (dwarf2_locexpr_funcs): Install locexpr_read_variable_at_entry.
  2073. (loclist_read_variable_at_entry): New function.
  2074. (dwarf2_loclist_funcs): Install loclist_read_variable_at_entry.
  2075. * dwarf2read.c (read_call_site_scope): Support also DW_OP_fbreg in
  2076. DW_AT_location, call dwarf_block_to_sp_offset for it.
  2077. * frame.h (print_entry_values_no, print_entry_values_only)
  2078. (print_entry_values_preferred, print_entry_values_if_needed)
  2079. (print_entry_values_both, print_entry_values_compact)
  2080. (print_entry_values_default, print_entry_values): New declarations.
  2081. (struct frame_arg): New field entry_kind.
  2082. (read_frame_arg): New parameter entryargp.
  2083. * mi/mi-cmd-stack.c (list_arg_or_local): New gdb_assert for
  2084. arg->entry_kind. Optionally print the `@entry' suffix.
  2085. (list_args_or_locals): New variable entryarg, initialize it.
  2086. Initialize also entry_kind of arg and entryarg. Conditionalize
  2087. list_arg_or_local for arg, add list_arg_or_local for entryarg. Call
  2088. xfree for entryarg.error.
  2089. * stack.c (print_entry_values_no, print_entry_values_only)
  2090. (print_entry_values_preferred, print_entry_values_if_needed)
  2091. (print_entry_values_both, print_entry_values_compact)
  2092. (print_entry_values_default, print_entry_values_choices)
  2093. (print_entry_values): New variables.
  2094. (print_frame_arg): New gdb_assert for arg->entry_kind. Optionally
  2095. print the `@entry' suffix, possibly in combination for
  2096. print_entry_values_compact.
  2097. (read_frame_arg): New parameter entryargp, new variables entryval,
  2098. entryval_error and val_equal. Read in also entryargp, respect
  2099. print_entry_values, compare the values using val_equal, fill in also
  2100. argp->entry_kind (together with entryargp->entry_kind).
  2101. (print_frame_args): New variable entryarg, initialize it.
  2102. Conditionalize print_frame_arg for arg, add print_frame_arg for
  2103. entryarg. Call xfree for entryarg.error.
  2104. (_initialize_stack): Call add_setshow_enum_cmd for `entry-values'.
  2105. * symtab.h (struct symbol_computed_ops): New field
  2106. read_variable_at_entry.
  2107. 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
  2108. Code reshuffle.
  2109. * frame.h (struct frame_arg): New definition.
  2110. (read_frame_arg): New declaration.
  2111. * mi/mi-cmd-stack.c (list_arg_or_local): New functiom from ...
  2112. (list_args_or_locals): ... the code here. New variable arg, call
  2113. read_frame_arg and list_arg_or_local with it. Unify the
  2114. PRINT_SIMPLE_VALUES and PRINT_ALL_VALUES cases. Call xfree for
  2115. arg.error.
  2116. * stack.c (print_frame_arg): New functiom from the code of
  2117. print_frame_args.
  2118. (read_frame_arg): New function.
  2119. (print_frame_args): Remove variable val. New variable arg, call
  2120. read_frame_arg and print_frame_arg with it. Call xfree for arg.error.
  2121. 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
  2122. Protect entry values against self tail calls.
  2123. * dwarf2loc.c (VEC (CORE_ADDR), func_verify_no_selftailcall): New.
  2124. (dwarf_expr_dwarf_reg_entry_value): Call func_verify_no_selftailcall.
  2125. 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
  2126. Recognize virtual tail call frames.
  2127. * Makefile.in (SFILES): Add dwarf2-frame-tailcall.c.
  2128. (HFILES_NO_SRCDIR): Add dwarf2-frame-tailcall.h.
  2129. (COMMON_OBS): Add dwarf2-frame-tailcall.o.
  2130. * dwarf2-frame-tailcall.c: New file.
  2131. * dwarf2-frame-tailcall.h: New file.
  2132. * dwarf2-frame.c: Include dwarf2-frame-tailcall.h.
  2133. (execute_cfa_program): New function comment. Return INSN_PTR. Reset
  2134. REGS.PREV only after CIE execution.
  2135. (struct dwarf2_frame_cache): New field tailcall_cache.
  2136. (dwarf2_frame_cache): New variables entry_pc, entry_cfa_sp_offset,
  2137. entry_cfa_sp_offset_p and instr. Execute FDE instructions in two
  2138. parts, try to find entry_cfa_sp_offset. Call
  2139. dwarf2_tailcall_sniffer_first.
  2140. (dwarf2_frame_prev_register): Call dwarf2_tailcall_prev_register_first
  2141. when appropriate.
  2142. (dwarf2_frame_dealloc_cache): New function.
  2143. (dwarf2_frame_sniffer): Preinitialize cache by dwarf2_frame_cache.
  2144. (dwarf2_frame_unwind): Install dwarf2_frame_dealloc_cache.
  2145. (dwarf2_signal_frame_unwind): Do not install dwarf2_frame_dealloc_cache.
  2146. (dwarf2_append_unwinders): Add dwarf2_tailcall_frame_unwind.
  2147. (dwarf2_frame_cfa): Support also dwarf2_tailcall_frame_unwind.
  2148. * dwarf2loc.c (func_addr_to_tail_call_list)
  2149. (tailcall_dump, call_sitep, VEC (call_sitep), chain_candidate)
  2150. (call_site_find_chain_1, call_site_find_chain): New.
  2151. * dwarf2loc.h (struct call_site_chain): New.
  2152. (call_site_find_chain): New declaration.
  2153. * frame.c (get_frame_address_in_block): Support also TAILCALL_FRAME.
  2154. * frame.h (enum frame_type): New entry TAILCALL_FRAME.
  2155. * python/py-frame.c (gdbpy_initialize_frames): Add TAILCALL_FRAME.
  2156. * stack.c (frame_info): Support also TAILCALL_FRAME.
  2157. 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
  2158. Tail call sites reader implementation.
  2159. * dwarf2read.c (read_call_site_scope): Recognize DW_AT_GNU_tail_call,
  2160. fill in TYPE_TAIL_CALL_LIST.
  2161. * gdbtypes.h (struct func_type): New field tail_call_list.
  2162. (struct call_site): New field tail_call_next.
  2163. (TYPE_TAIL_CALL_LIST): New definition.
  2164. 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
  2165. Implement basic support for DW_TAG_GNU_call_site.
  2166. * block.c: Include gdbtypes.h and exceptions.h.
  2167. (call_site_for_pc): New function.
  2168. * block.h (call_site_for_pc): New declaration.
  2169. * defs.h: Include hashtab.h.
  2170. (make_cleanup_htab_delete, core_addr_hash, core_addr_eq): New
  2171. declarations.
  2172. * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Install
  2173. ctx_no_push_dwarf_reg_entry_value.
  2174. * dwarf2expr.c (read_uleb128, read_sleb128): Support R as NULL.
  2175. (dwarf_block_to_dwarf_reg): New function.
  2176. (execute_stack_op) <DW_OP_GNU_entry_value>: Implement it.
  2177. (ctx_no_push_dwarf_reg_entry_value): New function.
  2178. * dwarf2expr.h (struct dwarf_expr_context_funcs): New field
  2179. push_dwarf_reg_entry_value.
  2180. (ctx_no_push_dwarf_reg_entry_value, dwarf_block_to_dwarf_reg): New
  2181. declarations.
  2182. * dwarf2loc.c: Include gdbcmd.h.
  2183. (dwarf_expr_ctx_funcs): New forward declaration.
  2184. (entry_values_debug, show_entry_values_debug, call_site_to_target_addr)
  2185. (dwarf_expr_reg_to_entry_parameter)
  2186. (dwarf_expr_push_dwarf_reg_entry_value): New.
  2187. (dwarf_expr_ctx_funcs): Install dwarf_expr_push_dwarf_reg_entry_value.
  2188. (dwarf2_evaluate_loc_desc_full): Handle NO_ENTRY_VALUE_ERROR.
  2189. (needs_dwarf_reg_entry_value): New function.
  2190. (needs_frame_ctx_funcs): Install it.
  2191. (_initialize_dwarf2loc): New function.
  2192. * dwarf2loc.h (entry_values_debug): New declaration.
  2193. * dwarf2read.c (struct dwarf2_cu): New field call_site_htab.
  2194. (read_call_site_scope): New forward declaration.
  2195. (process_full_comp_unit): Copy call_site_htab.
  2196. (process_die): Support DW_TAG_GNU_call_site.
  2197. (read_call_site_scope): New function.
  2198. (dwarf2_get_pc_bounds): Support NULL HIGHPC.
  2199. (dwarf_tag_name): Support DW_TAG_GNU_call_site.
  2200. (cleanup_htab): Delete.
  2201. (write_psymtabs_to_index): Use make_cleanup_htab_delete instead of it.
  2202. * exceptions.h (enum errors): New NO_ENTRY_VALUE_ERROR.
  2203. * gdb-gdb.py (StructMainTypePrettyPrinter): Support
  2204. FIELD_LOC_KIND_DWARF_BLOCK.
  2205. * gdbtypes.h (enum field_loc_kind): New entry
  2206. FIELD_LOC_KIND_DWARF_BLOCK.
  2207. (struct main_type): New loc entry dwarf_block.
  2208. (struct call_site, FIELD_DWARF_BLOCK, SET_FIELD_DWARF_BLOCK)
  2209. (TYPE_FIELD_DWARF_BLOCK): New.
  2210. * python/py-type.c: Include dwarf2loc.h.
  2211. (check_types_equal): Support FIELD_LOC_KIND_DWARF_BLOCK. New
  2212. internal_error call on unknown FIELD_LOC_KIND.
  2213. * symtab.h (struct symtab): New field call_site_htab.
  2214. * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete)
  2215. (core_addr_hash, core_addr_eq): New functions.
  2216. 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
  2217. Code reshuffle.
  2218. * gdb-gdb.py (StructMainTypePrettyPrinter): Change
  2219. TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC. Move
  2220. calling_convention under func_stuff there.
  2221. * gdbtypes.c (make_function_type): Call INIT_FUNC_SPECIFIC.
  2222. (init_type) <TYPE_CODE_FUNC>: Likewise.
  2223. (recursive_dump_type): Change TYPE_SPECIFIC_CALLING_CONVENTION to
  2224. TYPE_SPECIFIC_FUNC. New comment for tail_call_list.
  2225. * gdbtypes.h (enum type_specific_kind): Change
  2226. TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC.
  2227. (struct main_type) <type_specific>: Change calling_convention to
  2228. func_stuff. Move calling_convention to ...
  2229. (struct func_type): ... this new struct.
  2230. (INIT_FUNC_SPECIFIC): New #define.
  2231. (TYPE_CALLING_CONVENTION): Change calling_convention to func_stuff.
  2232. 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
  2233. Fix DW_OP_GNU_implicit_pointer for DWARF32 v3+ on 64-bit arches.
  2234. * dwarf2-frame.c (execute_stack_op): Initialize ctx->ref_addr_size.
  2235. * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Use
  2236. ctx->ref_addr_size. Handle its invalid value.
  2237. * dwarf2expr.h (struct dwarf_expr_context): New field ref_addr_size.
  2238. * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
  2239. (dwarf2_loc_desc_needs_frame): Initialize ctx->ref_addr_size.
  2240. * dwarf2loc.h (dwarf2_per_cu_ref_addr_size): New declaration.
  2241. * dwarf2read.c (decode_locdesc): Initialize ctx->ref_addr_size.
  2242. (dwarf2_per_cu_ref_addr_size): New function.
  2243. 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
  2244. Code cleanup.
  2245. * dwarf2read.c (per_cu_header_read_in): New function.
  2246. (dwarf2_per_cu_addr_size, dwarf2_per_cu_offset_size): Use it, with new
  2247. variables cu_header_local and cu_headerp.
  2248. 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
  2249. Fix initial language detection with -readnow.
  2250. * dwarf2read.c (dw2_find_symbol_file): Handle OBJF_READNOW case.
  2251. * symfile.h (struct quick_symbol_functions): State find_symbol_file
  2252. searches only for global symbols.
  2253. 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
  2254. Fix printed anonymous struct name.
  2255. * dwarf2read.c (fixup_partial_die): Handle for anonymous structs also
  2256. DW_TAG_interface_type. Strip for anonymous structs any prefixes.
  2257. (anonymous_struct_prefix): New function.
  2258. (determine_prefix): New variables retval. Call anonymous_struct_prefix.
  2259. (dwarf2_name): Strip for anonymous structs any prefixes.
  2260. 2011-10-07 Doug Evans <dje@google.com>
  2261. * python/lib/gdb/printing.py (register_pretty_printer): New argument
  2262. `replace'.
  2263. * python/lib/gdb/printing.py: Whitespace cleanup.
  2264. * python/py-value.c (valpy_call): Initialize ftype to avoid compiler
  2265. warning.
  2266. 2011-10-07 Pedro Alves <pedro@codesourcery.com>
  2267. * linux-nat.h (ALL_LWPS): Remove the ptid parameter.
  2268. * amd64-linux-nat.c (amd64_linux_dr_set_control)
  2269. (amd64_linux_dr_set_addr, amd64_linux_dr_unset_status): Adjust.
  2270. * arm-linux-nat.c (arm_linux_insert_hw_breakpoint)
  2271. (arm_linux_remove_hw_breakpoint, arm_linux_insert_watchpoint)
  2272. (arm_linux_remove_watchpoint): Adjust.
  2273. * i386-linux-nat.c (i386_linux_dr_set_control)
  2274. (i386_linux_dr_set_addr, i386_linux_dr_unset_status): Adjust.
  2275. * ia64-linux-nat.c (ia64_linux_insert_watchpoint)
  2276. (ia64_linux_remove_watchpoint): Adjust.
  2277. * mips-linux-nat.c (write_watchpoint_regs): Adjust.
  2278. * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint)
  2279. (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
  2280. (ppc_linux_insert_mask_watchpoint)
  2281. (ppc_linux_remove_mask_watchpoint, ppc_linux_insert_watchpoint)
  2282. (ppc_linux_remove_watchpoint): Adjust.
  2283. * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint):
  2284. Adjust.
  2285. 2011-10-07 Corinna Vinschen <vinschen@redhat.com>
  2286. * windows-nat.c: Include wchar.h to avoid compiler warnings.
  2287. (clear_win32_environment): New function for Cygwin to clear out
  2288. Win32 environment.
  2289. (windows_create_inferior): Prepare new environment from in_env
  2290. for Cygwin, too.
  2291. 2011-10-07 Phil Muldoon <pmuldoon@redhat.com>
  2292. PR python/13264
  2293. * python/py-value.c (valpy_call): Check that arguments are
  2294. a tuple.
  2295. (is_intlike): Remove call to CHECK_TYPEDEF.
  2296. (valpy_nonzero): Catch GDB exceptions.
  2297. (valpy_absolute): Ditto.
  2298. (valpy_lazy_string): Ditto.
  2299. (valpy_call): Ditto.
  2300. (valpy_get_is_optimized_out): Ditto.
  2301. (valpy_long): Ditto.
  2302. (valpy_float): Ditto.
  2303. (valpy_int): Call CHECK_TYPEDEF. Catch GDB exceptions.
  2304. (valpy_richcompare): Ditto.
  2305. 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
  2306. * inferior.h (disable_randomization): Declare.
  2307. * infrun.c (disable_randomization): New global variable.
  2308. (show_disable_randomization): New function.
  2309. (set_disable_randomization): Likewise.
  2310. (_initialize_infrun): Install set/show disable-randomization
  2311. commands.
  2312. * linux-nat.c (disable_randomization): Remove.
  2313. (show_disable_randomization): Likewise.
  2314. (set_disable_randomization): Likewise.
  2315. (_initialize_linux_nat): No longer install set/show
  2316. disable-randomization commands here.
  2317. (linux_nat_supports_disable_randomization): New function.
  2318. (linux_nat_add_target): Install it.
  2319. * remote.c (PACKET_QDisableRandomization): New enum value.
  2320. (remote_protocol_packets): Support QDisableRandomization.
  2321. (_initialize_remote): Likewise.
  2322. (remote_supports_disable_randomization): New function.
  2323. (init_remote_ops): Install it.
  2324. (extended_remote_supports_disable_randomization): New function.
  2325. (init_extended_remote_ops): Install it.
  2326. (extended_remote_disable_randomization): New function.
  2327. (extended_remote_create_inferior_1): Call it.
  2328. * target.h (struct target_ops): Add to_supports_disable_randomization.
  2329. (target_supports_disable_randomization): Add prototype.
  2330. * target.c (target_supports_disable_randomization): New function.
  2331. (find_default_supports_disable_randomization): Likewise.
  2332. (init_dummy_target): Install it.
  2333. 2011-10-07 Kevin Pouget <kevin.pouget@st.com>
  2334. Allow Python notification of new object-file loadings.
  2335. * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-newobjfilevent.c.
  2336. (SUBDIR_PYTHON_OBS): Add py-newobjfileevent.o.
  2337. Add build rule for this file.
  2338. * python/py-event.h (emit_new_objfile_event): New prototype.
  2339. (newobjfile): New Python event emitter.
  2340. * python/py-evts.c (gdbpy_initialize_py_events): Add new_objfile to
  2341. Python event registry.
  2342. * python/py-inferior.c: Include objfiles.h
  2343. (python_new_objfile): New function.
  2344. (gdbpy_initialize_inferior): Add python_new_objfile to the new objfile
  2345. observers.
  2346. * python/py-newobjfileevent.c: New file.
  2347. * python-internal.h (gdbpy_initialize_new_objfile_event): New
  2348. prototype.
  2349. * python/python.c (_initialize_python): Add
  2350. gdbpy_initialize_new_objfile_event call.
  2351. * NEWS: Add item for new Python event "gdb.newobjfile"
  2352. 2011-10-05 Tristan Gingold <gingold@adacore.com>
  2353. * ada-tasks.c (read_atcb): Make ravenscar_task_name static.
  2354. Extract the ravenscar task name from the symbol for the atcb.
  2355. 2011-10-04 Paul Koning <paul_koning@dell.com>
  2356. * python/py-type.c (typy_make_iter): Add forward declaration.
  2357. (typy_fields_items): Use the gdb.Type iterator.
  2358. 2011-10-04 Paul Koning <paul_koning@dell.com>
  2359. * NEWS: Add entry for Python gdb.Type mapping methods.
  2360. 2011-10-04 Kevin Pouget <kevin.pouget@st.com>
  2361. PR python/12691: Add the inferior to Python exited event
  2362. * python/py-exitedevent.c (create_exited_event_object): Add inferior
  2363. to exited_event.
  2364. * python/py-event.h (emit_exited_event): Likewise
  2365. * python/-inferior.c (python_inferior_exit): Likewise
  2366. 2011-10-03 Joel Brobecker <brobecker@adacore.com>
  2367. * ada-tasks.c (print_ada_task_info): Add "thread-id" field
  2368. in output of -ada-task-info GDB/MI command.
  2369. 2011-10-03 Joel Brobecker <brobecker@adacore.com>
  2370. * ada-lang.h (struct inferior): Declare.
  2371. (print_ada_task_info): Add declaration.
  2372. * ada-tasks.c (print_ada_task_info): Make non-static.
  2373. * mi/mi-cmds.c (mi_cmds): Add "ada-task-info".
  2374. * mi/mi-cmds.h (mi_cmd_ada_task_info): Add declaration.
  2375. * mi/mi-main.c: #include "ada-lang.h".
  2376. (mi_cmd_list_features): Add "ada-task-info" to the list
  2377. of supported features.
  2378. (mi_cmd_ada_task_info): New function.
  2379. 2011-10-03 Joel Brobecker <brobecker@adacore.com>
  2380. * python/python.c (python_run_simple_file): New function.
  2381. (source_python_script, source_python_script_for_objfile):
  2382. Replace call to PyRun_SimpleFile by call to
  2383. python_run_simple_file.
  2384. 2011-10-03 Paul Koning <paul_koning@dell.com>
  2385. * python/py-value.c (valpy_get_address): Use Py_XINCREF.
  2386. (value_to_value_object): Fetch value if it was lazy.
  2387. 2011-10-02 Jan Kratochvil <jan.kratochvil@redhat.com>
  2388. Code cleanup.
  2389. * solib-svr4.c (svr4_default_sos): Remove variables head and link_ptr.
  2390. Rearrange the code for it.
  2391. 2011-10-02 Joel Brobecker <brobecker@adacore.com>
  2392. * breakpoint.c (bkpt_print_recreate): Add call to
  2393. print_recreate_thread.
  2394. 2011-09-29 Mike Frysinger <vapier@gentoo.org>
  2395. * common/linux-ptrace.h (PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
  2396. PTRACE_GETFDPIC_INTERP): Define.
  2397. 2011-09-28 Yao Qi <yao@codesourcery.com>
  2398. * symfile.c (add_symbol_file_command): Update message on usage.
  2399. 2011-09-28 Paul Koning <paul_koning@dell.com>
  2400. * python/py-type.c (make_fielditem, typy_field_names, typy_items)
  2401. (typy_length, typy_get, typy_has_key, typy_make_iter)
  2402. (typy_iterkeys, typy_iteritems, typy_itervalues, typy_iter)
  2403. (typy_iterator_iter, typy_iterator_iternext)
  2404. (typy_iterator_dealloc): New functions to implement standard
  2405. Python mapping methods on gdb.Type object.
  2406. (gdb.TypeIterator): New Python type.
  2407. * python/python-internal.h (gdbpy_iter_kind): New enum.
  2408. 2011-09-28 David S. Miller <davem@davemloft.net>
  2409. * sparc-tdep.h (SPARC_F2_REGNUM, SPARC_F3_REGNUM, SPARC_F4_REGNUM,
  2410. SPARC_F5_REGNUM, SPARC_F6_REGNUM, SPARC_F7_REGNUM): New enums.
  2411. * sparc-tdep.c (sparc_complex_floating_p): New function.
  2412. (sparc32_store_arguments): Handle complex floats.
  2413. (sparc32_extract_return_value): Likewise.
  2414. (sparc32_store_return_value): Likewise.
  2415. (sparc32_stabs_argument_has_addr): Likewise.
  2416. * sparc64-tdep.c (sparc64_complex_floating_p): New function.
  2417. (sparc64_store_floating_fields): Handle complex floats.
  2418. (sparc64_store_arguments): Likewise.
  2419. (sparc64_store_return_value): Likewise.
  2420. 2011-09-28 Eli Zaretskii <eliz@gnu.org>
  2421. * windows-nat.c (env_sort) [!__CYGWIN__]: Function restored from
  2422. before the change on 2006-12-09.
  2423. (windows_create_inferior) [!__CYGWIN__]: Restore code that
  2424. generates the environment block for CreateProcessA, modulo the
  2425. Cygwin-specific parts that are not needed here.
  2426. 2011-09-27 Tristan Gingold <gingold@adacore.com>
  2427. * target.h (enum target_object): Add TARGET_OBJECT_DARWIN_DYLD_INFO.
  2428. * solib-darwin.c (DYLD_VERSION_MAX): Update number.
  2429. (darwin_solib_get_all_image_info_addr_at_init): New function.
  2430. (darwin_solib_read_all_image_info_addr): Likewise.
  2431. (darwin_solib_create_inferior_hook): Use the above two functions.
  2432. * darwin-nat.c (darwin_execvp): Renames retval to res.
  2433. (darwin_read_write_inferior): Update comment.
  2434. (darwin_read_dyld_info): New function.
  2435. (darwin_xfer_partial): Handle DYLD_INFO.
  2436. 2011-09-27 Stan Shebs <stan@codesourcery.com>
  2437. Add return address collection for tracepoints.
  2438. * tracepoint.c (encode_actions_1): Add case for $_ret.
  2439. (validate_actionline): Check for $_ret.
  2440. (trace_dump_actions): Ditto.
  2441. * ax-gdb.h (gen_trace_for_return_address): Declare.
  2442. * ax-gdb.c: Include arch-utils.h.
  2443. (gen_trace_for_return_address): New function.
  2444. (agent_command): Add return address special case.
  2445. * amd64-tdep.c: Include ax.h and ax-gdb.h.
  2446. (amd64_gen_return_address): New function.
  2447. (amd64_init_abi): Call it.
  2448. * i386-tdep.c: Include ax.h and ax-gdb.h.
  2449. (i386_gen_return_address): New function.
  2450. (i386_init_abi): Call it.
  2451. * arch-utils.h (default_gen_return_address): Declare.
  2452. * arch-utils.c (default_gen_return_address): New function.
  2453. * gdbarch.sh (gen_return_address): New method.
  2454. * gdbarch.h, gdbarch.c: Regenerate.
  2455. 2011-09-23 Joseph Myers <joseph@codesourcery.com>
  2456. PR gdb/13079
  2457. * i386-tdep.c (i386_frame_align): New.
  2458. (i386_gdbarch_init): Use i386_frame_align.
  2459. 2011-09-23 Yao Qi <yao@codesourcery.com>
  2460. * i386-linux-nat.c (i386_linux_resume): Use read_memory_unsigned_integer
  2461. to get address.
  2462. 2011-09-22 Tristan Gingold <gingold@adacore.com>
  2463. * fork-child.c (fork_inferior): Add exec_fun parameter.
  2464. Call exec_fun or execvp.
  2465. * inferior.h: Adjust prototype.
  2466. * gnu-nat.c (gnu_create_inferior): Adjust fork_inferior call.
  2467. * inf-ttrace.c (inf_ttrace_create_inferior): Ditto.
  2468. * inf-ptrace.c (inf_ptrace_create_inferior): Ditto.
  2469. * procfs.c (procfs_create_inferior): Ditto.
  2470. * darwin-nat.c (darwin_execvp): New function.
  2471. (darwin_create_inferior): Use it.
  2472. 2011-09-22 Yao Qi <yao@codesourcery.com>
  2473. * infrun.c (context_switch): Print debug message when switching to
  2474. a different thread.
  2475. 2011-09-21 Ulrich Weigand <uweigand@de.ibm.com>
  2476. * s390-tdep.c (s390_function_arg_pass_by_reference): Handle
  2477. complex and vector types.
  2478. (s390_return_value_convention): Likewise.
  2479. (s390_value_from_register): Call check_typedef.
  2480. (extend_simple_arg): Likewise.
  2481. (alignment_of): Likewise.
  2482. (s390_push_dummy_call): Likewise.
  2483. (s390_return_value): Likewise.
  2484. 2011-09-21 Joseph Myers <joseph@codesourcery.com>
  2485. * event-top.c (async_disconnect): If an exception is thrown from
  2486. quit_cover, call pop_all_targets. Use TRY_CATCH instead of
  2487. catch_errors.
  2488. * top.c (quit_cover): Return void and take no arguments.
  2489. * top.h (quit_cover): Update prototype.
  2490. 2011-09-20 Joseph Myers <joseph@codesourcery.com>
  2491. * mi/mi-main.c (mi_load_progress): Restore saved_uiout value to
  2492. current_uiout, not uiout.
  2493. 2011-09-19 Doug Evans <dje@google.com>
  2494. * python/py-auto-load.c (source_section_scripts): Fix file
  2495. descriptor leak.
  2496. * python/python.c (source_python_script_for_objfile): Tweak comments.
  2497. 2011-09-18 Yao Qi <yao@codesourcery.com>
  2498. Ulrich Weigand <ulrich.weigand@linaro.org>
  2499. Support displaced stepping for Thumb 16-bit insns.
  2500. * arm-tdep.c (THUMB_NOP) Define.
  2501. (thumb_copy_unmodified_16bit): New.
  2502. (thumb_copy_b, thumb_copy_bx_blx_reg): New.
  2503. (thumb_copy_alu_reg): New.
  2504. (arm_copy_svc): Move some common code to ...
  2505. (install_svc): ... here. New.
  2506. (thumb_copy_svc): New.
  2507. (install_pc_relative): New.
  2508. (thumb_copy_pc_relative_16bit): New.
  2509. (thumb_decode_pc_relative_16bit): New.
  2510. (thumb_copy_16bit_ldr_literal): New.
  2511. (thumb_copy_cbnz_cbz): New.
  2512. (cleanup_pop_pc_16bit_all): New.
  2513. (thumb_copy_pop_pc_16bit): New.
  2514. (thumb_process_displaced_16bit_insn): New.
  2515. (thumb_process_displaced_32bit_insn): New.
  2516. (thumb_process_displaced_insn): process thumb instruction.
  2517. Support displaced stepping for Thumb 32-bit insns.
  2518. * arm-tdep.c (thumb_copy_unmodified_32bit): New.
  2519. (thumb2_copy_preload): New.
  2520. (thumb2_copy_copro_load_store): New.
  2521. (thumb2_copy_b_bl_blx): New.
  2522. (thumb2_copy_alu_imm): New.
  2523. (thumb2_copy_load_reg_imm): New.
  2524. (thumb2_copy_load_literal): New
  2525. (thumb2_copy_block_xfer): New.
  2526. (thumb_32bit_copy_undef): New.
  2527. (thumb_32bit_copy_unpred): New.
  2528. (thumb2_decode_ext_reg_ld_st): New.
  2529. (thumb2_decode_svc_copro): New.
  2530. (decode_thumb_32bit_store_single_data_item): New.
  2531. (thumb_copy_pc_relative_32bit): New.
  2532. (thumb_decode_pc_relative_32bit): New.
  2533. (decode_thumb_32bit_ld_mem_hints): New.
  2534. (thumb2_copy_table_branch): New
  2535. (thumb_process_displaced_32bit_insn): Process Thumb 32-bit
  2536. instructions.
  2537. 2011-09-18 Yao Qi <yao@codesourcery.com>
  2538. * arm-tdep.c (install_copro_load_store): PC is set 4-byte aligned.
  2539. (install_b_bl_blx): Likewise.
  2540. 2011-09-17 Yao Qi <yao@codesourcery.com>
  2541. * arm-tdep.c (install_ldr_str_ldrb_strb): Renamed to ...
  2542. (install_load_store): ... this. New.
  2543. Change parameter BYTE to SIZE.
  2544. (arm_copy_ldr_str_ldrb_strb): Update caller.
  2545. (arm_decode_ld_st_word_ubyte): Update caller.
  2546. 2011-09-17 Yao Qi <yao@codesourcery.com>
  2547. * infrun.c (displaced_step_fixup): Move some code ...
  2548. (displaced_step_restore): ... here. New function.
  2549. (handle_inferior_event): Cleanup displaced stepping state for both
  2550. child and parent when get forked or vforked event.
  2551. * regcache.c (get_thread_arch_aspace_regcache): New function.
  2552. get_thread_arch_regcache (): Call it.
  2553. 2011-09-16 Joel Brobecker <brobecker@adacore.com>
  2554. * ada-tasks.c (print_ada_task_info): New function, merging
  2555. short_task_info and info_tasks together. Reimplement using
  2556. ui-out instead of printing to stdout directly. Move the code
  2557. building and checking the task list here, instead of leaving it
  2558. in info_tasks_command.
  2559. (info_task): Move the code building and checking the task
  2560. list here, instead of leaving it in info_tasks_command.
  2561. (info_tasks_command): Delete code building and checking
  2562. the task list - moved elsewhere. Update calls to info_tasks
  2563. and info_task.
  2564. 2011-09-16 Joel Brobecker <brobecker@adacore.com>
  2565. * ada-tasks.c (info_task): Delete parameter `from_tty'.
  2566. 2011-09-16 Joel Brobecker <brobecker@adacore.com>
  2567. * ada-tasks.c (info_tasks): Delete parameter `from_tty'.
  2568. 2011-09-16 Joel Brobecker <brobecker@adacore.com>
  2569. * ada-lang.h (ada_build_task_list): Remove parameter
  2570. `warn_if_null'.
  2571. * ada-tasks.c (ada_build_task_list): Remove parameter
  2572. `warn_if_null'. Adjust implementation and documentation.
  2573. (valid_task_id, ada_get_environment_task)
  2574. iterate_over_live_ada_tasks): Adjust call to ada_build_task_list.
  2575. (info_tasks_command): Adjust implementation.
  2576. (task_command): Likewise.
  2577. * ravenscar-thread.c (ravenscar_find_new_threads): Fix call
  2578. to ada_build_task_list.
  2579. 2011-09-16 Joel Brobecker <brobecker@adacore.com>
  2580. * ada-tasks.c (ada_tasks_check_symbol_table, task_list): Delete.
  2581. (enum ada_known_tasks_kind, struct ada_tasks_inferior_data): New.
  2582. (ada_tasks_inferior_data_handle): New static global.
  2583. (get_ada_tasks_inferior_data): New function.
  2584. (ada_get_task_number, get_task_number_from_id, valid_task_id)
  2585. (ada_get_environment_task, iterate_over_live_ada_tasks)
  2586. (add_ada_task, read_known_tasks_array, read_known_tasks_list):
  2587. Adjust.
  2588. (ada_set_current_inferior_known_tasks_addr): New function.
  2589. (read_known_tasks, ada_build_task_list, short_task_info)
  2590. (info_tasks, info_task, info_tasks_command, task_command_1)
  2591. (task_command, ada_task_list_changed): Adjust.
  2592. (ada_tasks_invalidate_inferior_data): New function.
  2593. (ada_normal_stop_observer, ada_new_objfile_observer): Adjust.
  2594. (_initialize_tasks): Set ada_tasks_inferior_data_handle.
  2595. * ada-lang.h (struct inferior): Add declaration.
  2596. (ada_task_list_changed): Update profile.
  2597. * remote-wtx-pd.c: #include "inferior.h".
  2598. (switch_to_pd_internal): Update call to ada_task_list_changed.
  2599. 2011-09-16 Joel Brobecker <brobecker@adacore.com>
  2600. * ada-tasks.c: #include "progspace.h" and "objfiles.h".
  2601. (atcb_type, atcb_common_type, atcb_ll_type, atcb_call_type)
  2602. (atcb_fieldno): Delete these static globals.
  2603. (struct ada_tasks_pspace_data): New struct.
  2604. (ada_tasks_pspace_data_handle): New static global.
  2605. (get_ada_tasks_pspace_data): New function.
  2606. (ada_tasks_invalidate_pspace_data): New function.
  2607. (get_tcb_types_info, ptid_from_atcb_common, read_atcb)
  2608. (read_known_tasks_list, ada_new_objfile_observer): Adjust.
  2609. (_initialize_tasks): Create this module's per-progspace
  2610. data handle.
  2611. 2011-09-16 Joel Brobecker <brobecker@adacore.com>
  2612. * ada-tasks.c (struct atcb_fieldnos): Renames struct tcb_fieldnos.
  2613. 2011-09-16 Tristan Gingold <gingold@adacore.com>
  2614. * fork-child.c (fork_inferior): Update comment. Use alloca
  2615. instead of xmalloc for argv. Move len and shell_command
  2616. declarations in the block where they are used.
  2617. Only call execvp. Factorize failure code.
  2618. 2011-09-16 Abhijit Halder <abhijit.k.halder@gmail.com>
  2619. Code cleanup.
  2620. * parse.c (write_exp_elt): Change argument to pass a pointer of union
  2621. `exp_element' instead of an element of the same and make the function
  2622. static.
  2623. (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block)
  2624. (write_exp_elt_objfile, write_exp_elt_longcst, write_exp_elt_dblcst)
  2625. (write_exp_elt_decfloatcst, write_exp_elt_type, write_exp_elt_intern):
  2626. Change argument of `write_exp_elt' function call.
  2627. Remove extra spaces from comments.
  2628. * parser-defs.h (write_exp_elt): Remove prototype.
  2629. 2011-09-15 Paul Koning <paul_koning@dell.com>
  2630. * python/py-cmd.c (gdbpy_string_to_argv): Decrement reference
  2631. count of item appended to list.
  2632. * python/py-type.c (typy_fields): Likewise.
  2633. 2011-09-15 Paul Koning <paul_koning@dell.com>
  2634. * MAINTAINERS (Write After Approval): Add myself to the list.
  2635. 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
  2636. PR threads/12628
  2637. * linux-fork.c (checkpoint_command): Disallow checkpointing of
  2638. processes with multiple threads.
  2639. (inf_has_multiple_thread_cb): New function.
  2640. (inf_has_multiple_threads): New function.
  2641. 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
  2642. PR Python/12692 Add gdb.selected_inferior() to Python interface.
  2643. * python/py-inferior.c (GdbMethods): New Python method definition.
  2644. 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
  2645. Handle multiple breakpoint hits in Python interface:
  2646. * python/py-bpevent.c (create_breakpoint_event_object): Rename C/Python
  2647. variable to breakpoints.
  2648. * python/py-stopevent.c (emit_stop_event): Return a Python tuple of
  2649. bps instead of single breakpoint. Fix some space typos.
  2650. * python/py-stopevent.c (create_breakpoint_event_object): Rename
  2651. variable to breakpoints.
  2652. 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
  2653. * breakpoint.c (describe_other_breakpoints): Do not write 'duplicate'
  2654. note if the breakpoint is internal.
  2655. 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
  2656. * MAINTAINERS (Write After Approval): Add myself to the list
  2657. 2011-09-14 Pedro Alves <pedro@codesourcery.com>
  2658. * infrun.c (prepare_for_detach, wait_for_inferior)
  2659. (fetch_inferior_event): Don't flush the register cache.
  2660. * remote.c (struct stop_reply) <regcache>: Add comment.
  2661. 2011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
  2662. Remove excessive DWARF expressions memory duplication.
  2663. * dwarf2loc.c (per_cu_dwarf_call): Remove variable back_to and its use
  2664. for block.data.
  2665. (indirect_pieced_value): Remove variable result. Remove variable
  2666. back_to and its use for baton.data.
  2667. (dwarf2_compile_expr_to_ax): Remove variable back_to and its use for
  2668. block.data.
  2669. * dwarf2read.c (dwarf2_fetch_die_location_block): Remove xmemdup.
  2670. Update the function comment.
  2671. 2011-09-13 Pedro Alves <pedro@codesourcery.com>
  2672. * inferior.h (ALL_INFERIORS): New.
  2673. * linux-thread-db.c (thread_db_find_new_threads_2): Remove check
  2674. for a stopped thread.
  2675. (thread_db_find_new_threads): Look for threads in all inferiors.
  2676. 2011-09-13 Pedro Alves <pedro@codesourcery.com>
  2677. * breakpoint.c (update_watchpoint): Handle the case of the
  2678. watchpoint to update not being in the breakpoint list yet.
  2679. (hw_watchpoint_use_count): New, factored out from
  2680. hw_watchpoint_used_count.
  2681. (hw_watchpoint_used_count): Rename to ...
  2682. (hw_watchpoint_used_count_others): ... this. Add `except'
  2683. parameter. Don't count resources of `except'. Use
  2684. hw_watchpoint_use_count.
  2685. 2011-09-13 Pedro Alves <pedro@codesourcery.com>
  2686. * gdbthread.h (enum thread_state): Moved here.
  2687. (struct thread_info): Rename `executing_' field to `executing' and
  2688. `state_' to `state'.
  2689. * thread.c (enum thread_state): Moved to gdbthread.h.
  2690. (new_thread, add_thread_silent, delete_thread_1)
  2691. (any_live_thread_of_process, thread_alive, set_running)
  2692. (set_running, is_thread_state, any_running, is_executing)
  2693. (set_executing, finish_thread_state, print_thread_info)
  2694. (do_captured_thread_select): Adjust.
  2695. 2011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
  2696. Fix compatibility with gcc < 4.3 and non-gcc compilers.
  2697. * amd64-tdep.c (amd64_skip_xmm_prologue): Convert 0b constants.
  2698. 2011-09-12 Pedro Alves <pedro@codesourcery.com>
  2699. Matt Rice <ratmice@gmail.com>
  2700. PR gdb/13175
  2701. * interps.c (struct interp) <interpreter_out>: Delete field.
  2702. (interp_new): Remove the data and uiout parameters and adjust.
  2703. (interp_set): Only set the current_uiout from the interpreter's
  2704. uiout after initializing the interpreter. Adjust call to
  2705. init_proc.
  2706. (interp_ui_out): Adjust to call procs->ui_out_proc.
  2707. (interp_data, interp_name): New.
  2708. * interps.h (interp_init_ftype): Add `self' parameter.
  2709. (interp_ui_out_ftype): New typedef.
  2710. (struct interp_procs) <ui_out_proc>: New method pointer.
  2711. (interp_new): Remove the data and uiout parameters.
  2712. (interp_data, interp_name): Declare.
  2713. * tui/tui-interp.c (tui_init): Adjust prototype.
  2714. (tui_ui_out): New.
  2715. (_initialize_tui_interp): Install tui_ui_out. Don't instanciate
  2716. tui_out here. Adjust call to interp_new.
  2717. * tui/tui-io.c (tui_initialize_io): Don't set current_uiout here.
  2718. * cli/cli-interp.c (cli_interpreter_init): Adjust prototype.
  2719. (cli_ui_out): New.
  2720. (_initialize_cli_interp): Install it. Adjust call to interp_new.
  2721. * mi/mi-common.h (struct mi_interp) <uiout>: New field.
  2722. * mi/mi-interp.c (mi_interpreter_init): Adjust prototype.
  2723. Initialize mi->uiout depending on the mi_version as extracted from
  2724. the interpreter's name.
  2725. (mi_ui_out): New.
  2726. (_initialize_mi_interp): Install mi_ui_out. Adjust calls to
  2727. interp_new. Don't allocate the ui_out's of the interpreters here.
  2728. 2011-09-12 Aleksandar Ristovski <aristovski@qnx.com>
  2729. * solib.c (solib_used): New function.
  2730. (update_solib_list, reload_shared_libraries_1): Check if objfile is used
  2731. by another so_list object before freeing it.
  2732. 2011-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
  2733. Code cleanup.
  2734. * mi/mi-cmd-stack.c (list_args_or_locals): Use enum for the parameter
  2735. values.
  2736. 2011-09-09 Jan Kratochvil <jan.kratochvil@redhat.com>
  2737. Code cleanup.
  2738. * amd64-tdep.c (amd64_skip_prologue): Move the XMM code to ...
  2739. (amd64_skip_xmm_prologue): ... this new function. Describe its
  2740. parameters. No longer use amd64_prologue_line_bug.
  2741. * defs.h (producer_is_gcc_ge_4): New declaration.
  2742. * dwarf2read.c (producer_is_gcc_ge_4): Move to utils.c.
  2743. (process_full_comp_unit): Update its caller. Remove
  2744. amd64_prologue_line_bug initialization.
  2745. * symtab.h (struct symtab): Remove field amd64_prologue_line_bug.
  2746. * utils.c (producer_is_gcc_ge_4): Moved here from dwarf2read.c.
  2747. 2011-09-09 Pedro Alves <pedro@codesourcery.com>
  2748. * linux-nat.h (enum resume_kind): New.
  2749. (struct lwp_info) <last_resume_kind>: New field.
  2750. * linux-nat.c (linux_child_follow_fork): Set last_resume_kind to
  2751. resume_stop on the new lwp.
  2752. (add_lwp): Set last_resume_kind as resume_continue by default.
  2753. (lin_lwp_attach_lwp): Set last_resume_kind as resume_stop.
  2754. (resume_lwp): New, factored out from resume_callback. Also check
  2755. for pending status in lp->waitstatus.
  2756. (resume_callback): Reimplement.
  2757. (resume_clear_callback): Set last_resume_kind as resume_stop.
  2758. (resume_set_callback): Set last_resume_kind as resume_continue.
  2759. (linux_nat_resume, linux_handle_extended_wait): Set
  2760. last_resume_kind.
  2761. (running_callback): Also check lp->waitstatus for pending events.
  2762. (select_singlestep_lwp_callback): Check that lp->last_resume_kind
  2763. is resume_step.
  2764. (stop_and_resume_callback): Don't re-resume if the core wanted the
  2765. lwp stopped. Use resume_lwp instead of resume_callback. Avoid
  2766. using an invalidated pointer.
  2767. (linux_nat_filter_event): Don't discard SIGSTOPs as delayed
  2768. SIGSTOPs if the core wanted the LWP to stop.
  2769. (linux_nat_wait_1) Don't consume a pending SIGSTOP if the core
  2770. wanted the lwp to stop. If the core wanted the lwp to stop, and
  2771. the lwp stopped with a SIGSTOP, report a TARGET_SIGNAL_0 instead
  2772. of TARGET_SIGNAL_STOP.
  2773. (linux_nat_stop_lwp): Don't synchronously wait for the lwp to stop
  2774. here. Instead, signal the lwp, and set the last_resume_kind to
  2775. resume_stop.
  2776. 2011-09-09 Pedro Alves <pedro@codesourcery.com>
  2777. * linux-nat.c (lin_lwp_attach_lwp): Return 1 (ignore) instead of
  2778. -1 (error), if the lwp exits right after attaching.
  2779. 2011-09-08 Doug Evans <dje@google.com>
  2780. * py-cmd.c: Some minor formatting fixes.
  2781. (gdbpy_parse_command_name): Rename text arg to name, make const.
  2782. All callers updated.
  2783. * python-internal.h (gdbpy_parse_command_name): Update.
  2784. * cli/cli-decode.c (add_cmd): Add comment.
  2785. 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
  2786. PR breakpoints/12435
  2787. * amd64-tdep.c (amd64_skip_prologue): New variables start_pc_sal,
  2788. next_sal, buf, offset and xmmreg. Advance PC if it sees the PR.
  2789. * dwarf2read.c (process_full_comp_unit): Initialize
  2790. amd64_prologue_line_bug.
  2791. * symtab.h (struct symtab): New field amd64_prologue_line_bug.
  2792. 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
  2793. Fix TUI screen corruption.
  2794. * utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by
  2795. batch_flag.
  2796. 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
  2797. * findvar.c (read_var_value): Never return NULL, throw an error
  2798. instead. Update the function comment. State symbol name in the error
  2799. messages.
  2800. * python/py-frame.c (frapy_read_var): Remove handling of NULL from
  2801. read_var_value.
  2802. * stack.c (print_frame_args): Likewise.
  2803. * valops.c (value_of_variable): Likewise.
  2804. 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
  2805. * stack.c (print_frame_args): New variable except. Wrap
  2806. read_var_value and common_val_print into TRY_CATCH.
  2807. 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
  2808. * eval.c (evaluate_subexp_standard) <OP_THIS>: Update the value_of_this
  2809. caller to value_of_this.
  2810. * p-exp.y: Update the value_of_this caller to value_of_this_silent.
  2811. Twice.
  2812. * valops.c (value_of_this): Remove parameter complain and variable ret.
  2813. Update function comment. Never return NULL by this code.
  2814. (value_of_this_silent): New function.
  2815. * value.h (value_of_this): Remove parameter complain.
  2816. (value_of_this_silent): New declaration.
  2817. 2011-09-07 Yao Qi <yao@codesourcery.com>
  2818. * gdbthread.h (struct thread_info): Remove fields
  2819. `stepping_through_solib_after_catch' and
  2820. `stepping_through_solib_catchpoints'.
  2821. * infrun.c (init_thread_stepping_state): Update.
  2822. (process_event_stop_test, currently_stepping): Update.
  2823. (currently_stepping_or_nexting_callback): Update.
  2824. 2011-09-07 Yao Qi <yao@codesourcery.com>
  2825. * gdbthread.h (struct thread_info): Comment on field
  2826. `step_after_step_resume_breakpoint'.
  2827. 2011-09-07 Abhijit Halder <abhijit.k.halder@gmail.com>
  2828. * remote.c (remote_console_output): Reindent.
  2829. 2011-09-06 Luis Machado <lgustavo@codesourcery.com>
  2830. * frame.c (has_stack_frames): Check for currently selected
  2831. traceframe.
  2832. 2011-09-06 Pedro Alves <pedro@codesourcery.com>
  2833. * event-top.h (MAXPROMPTS, struct prompts): Delete.
  2834. (set_async_annotation_level, set_async_prompt, pop_prompt)
  2835. (push_prompt, new_async_prompt): Delete declarations.
  2836. * top.h (get_prompt, set_prompt): Change prototype.
  2837. (get_prefix, set_prefix, get_suffix, set_suffix): Delete
  2838. declarations.
  2839. * top.c (command_loop):
  2840. (top_prompt): New global.
  2841. (get_prefix, set_prefix, get_suffix, ): Delete.
  2842. (get_prompt, set_prompt): Rewrite.
  2843. (show_new_async_prompt): Rename to ...
  2844. (show_prompt): ... this.
  2845. (init_main): Adjust. Don't handle --annotate=2 here.
  2846. * event-top.c (new_async_prompt): Delete.
  2847. (the_prompts): Delete.
  2848. (more_to_come): Make static.
  2849. (display_gdb_prompt): Use top_level_prompt() to compute the top
  2850. level prompt, and don't notify the before_prompt observers
  2851. directly here. Always trick readline into not trying to display
  2852. the prompt if sync_execution and displaying the primary prompt.
  2853. If displaying a local/secondary prompt, always show it, even if
  2854. sync_execution is set.
  2855. (change_annotation_level): Delete.
  2856. (top_level_prompt): New, based on change_annotation_level.
  2857. (push_prompt, pop_prompt): Delete.
  2858. (async_disable_stdin): No longer pushes prompt.
  2859. (command_line_handler): No longer pushes or pops prompt. If more
  2860. input is expected, call display_gdb_prompt with an explicit empty
  2861. prompt.
  2862. (async_stop_sig): Adjust.
  2863. (set_async_annotation_level, set_async_prompt): Delete.
  2864. * python/python.c (before_prompt_hook): Adjust.
  2865. 2011-09-05 Pedro Alves <pedro@codesourcery.com>
  2866. PR cli/13110
  2867. * infrun.c (fetch_inferior_event): Check if there's a selected
  2868. thread before checking if the selected thread is executing.
  2869. 2011-09-05 Pedro Alves <pedro@codesourcery.com>
  2870. * inf-loop.c (execute_command): Don't check if the current thread
  2871. if running before synchronously waiting for command completion.
  2872. * infrun.c (fetch_inferior_event): Handle "set exec-done-display"
  2873. here.
  2874. (normal_stop): Call async_enable_stdin here.
  2875. * inf-loop.c (inferior_event_handler): Don't call
  2876. async_enable_stdin, nor handle "set exec-done-display" here.
  2877. 2011-09-04 Joel Brobecker <brobecker@adacore.com>
  2878. GDB 7.3.1 released.
  2879. 2011-09-04 Joel Brobecker <brobecker@adacore.com>
  2880. * NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'.
  2881. 2011-09-04 Joel Brobecker <brobecker@adacore.com>
  2882. * NEWS: Add entry for OpenBSD/NetBSD build failure.
  2883. 2011-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
  2884. * config/s390/s390.mh (NATDEPFILES): Add linux-procfs.o dependency.
  2885. 2011-09-02 Matt Rice <ratmice@gmail.com>
  2886. PR gdb/10720
  2887. * event-top.c (cli_command_loop): Replace readline setup with
  2888. direct call to display_gdb_prompt.
  2889. (display_gdb_prompt): Do not call observer mechanism during
  2890. synchronous execution.
  2891. 2011-09-02 Pedro Alves <pedro@codesourcery.com>
  2892. * linux-nat.c (in_pid_list_p): New.
  2893. (linux_record_stopped_pid): Delete.
  2894. (lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're
  2895. already attached to the LWP. Return an indication if so.
  2896. (linux_nat_filter_event): Adjust.
  2897. * linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp
  2898. returning an indication to ignore this thread.
  2899. 2011-09-02 Pedro Alves <pedro@codesourcery.com>
  2900. * top.c: Include interps.h.
  2901. (execute_command): If the target can async, but the interpreter is
  2902. in sync mode, synchronously wait for the command to finish before
  2903. returning.
  2904. (execute_command_to_string): Force the interpreter to sync mode.
  2905. * infrun.c: Include interps.h.
  2906. (fetch_inferior_event): Don't restore the prompt yet if the
  2907. interpreter is in sync mode.
  2908. * interps.c (interpreter_async): New global.
  2909. * interps.h (interpreter_async): Declare.
  2910. * inf-loop.c: Include interps.h.
  2911. (inferior_event_handler): Don't print the language change or run
  2912. breakpoint commands yet if the interpreter in is sync mode.
  2913. * main.c (captured_command_loop): Flip the interpreter to async
  2914. mode.
  2915. * cli/cli-script.c: Include interps.h.
  2916. (execute_user_command, while_command, if_command): Force the
  2917. interpreter to sync mode.
  2918. * python/python.c: Include interps.h.
  2919. (python_command, execute_gdb_command): Force the interpreter to
  2920. sync mode.
  2921. 2011-09-02 Pedro Alves <pedro@codesourcery.com>
  2922. * value.c (show_convenience): Catch errors thrown while printing
  2923. each internal variable.
  2924. * infrun.c (validate_siginfo_access): New function.
  2925. (siginfo_value_read, siginfo_value_write): Call it.
  2926. 2011-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
  2927. Revert:
  2928. 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
  2929. * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
  2930. attribute.
  2931. 2011-08-29 Yao Qi <yao@codesourcery.com>
  2932. * solib-dsbt.c (bfd_lookup_symbol): Removed.
  2933. (cmp_name): New.
  2934. (enable_break2): Update caller.
  2935. * solib-frv.c (bfd_lookup_symbol): Removed.
  2936. (cmp_name): New.
  2937. (enable_break2): Update caller.
  2938. * solib-pa64.c (bfd_lookup_symbol): Removed.
  2939. (cmp_name): New.
  2940. * solib-svr4.c (bfd_lookup_symbol): Removed.
  2941. (cmp_name_and_sec_flags): New.
  2942. (enable_break): Update caller.
  2943. * solib.c (gdb_bfd_lookup_symbol_from_symtab): New.
  2944. (gdb_bfd_lookup_symbol_from_dyn_symtab): New.
  2945. (gdb_bfd_lookup_symbol): New.
  2946. * solib.h: Functions declarations.
  2947. 2011-08-29 Yao Qi <yao@codesourcery.com>
  2948. * Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o
  2949. and solib-dsbt.o.
  2950. 2011-08-29 Jan Kratochvil <jan.kratochvil@redhat.com>
  2951. Fix TUI stepi on code without symbols.
  2952. * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
  2953. current PC instead.
  2954. 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
  2955. Code cleanup.
  2956. * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
  2957. and the static keyword.
  2958. * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
  2959. Make prefix an array.
  2960. * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
  2961. * mi/mi-main.c (get_register): Remove stb initialization and the static
  2962. keyword.
  2963. 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
  2964. Code cleanup - make mi_opt const.
  2965. * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make
  2966. opts const.
  2967. * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
  2968. * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise.
  2969. (mi_cmd_env_dir): Likewise.
  2970. * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise.
  2971. (mi_cmd_target_file_put): Likewise.
  2972. * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
  2973. * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise.
  2974. * mi/mi-getopt.c (mi_getopt): Make opts and opt const.
  2975. (mi_valid_noargs): Make opts const.
  2976. * mi/mi-getopt.h (mi_getopt): Make opts and opt const.
  2977. * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const.
  2978. (mi_cmd_data_read_memory): Likewise.
  2979. (mi_cmd_data_read_memory_bytes): Likewise.
  2980. (mi_cmd_data_write_memory): Likewise.
  2981. 2011-08-26 Matt Rice <ratmice@gmail.com>
  2982. * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
  2983. bcache_xmalloc, replace bcache_xmalloc with call to
  2984. psymbol_bcache_init for psymbol_cache.
  2985. * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.
  2986. 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
  2987. * inf-loop.c (inferior_event_handler): Add exception_print in
  2988. INF_EXEC_COMPLETE.
  2989. 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
  2990. * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
  2991. make_bpstat_clear_actions_cleanup and discard_cleanups for it.
  2992. * defs.h (make_bpstat_clear_actions_cleanup): New declaration.
  2993. * exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
  2994. * inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
  2995. call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
  2996. Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
  2997. * infrun.c (fetch_inferior_event): Call
  2998. make_bpstat_clear_actions_cleanup.
  2999. * top.c (execute_command): New variable cleanup_if_error, call
  3000. make_bpstat_clear_actions_cleanup and discard_cleanups for it.
  3001. * utils.c (do_bpstat_clear_actions_cleanup)
  3002. (make_bpstat_clear_actions_cleanup): New functions.
  3003. 2011-08-26 Pedro Alves <pedro@codesourcery.com>
  3004. * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
  3005. either the parent or the child forks. Rename a couple locals.
  3006. 2011-08-26 Pedro Alves <pedro@codesourcery.com>
  3007. * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
  3008. library call. Avoid reading the `status' local if all waitpid
  3009. calls failed.
  3010. 2011-08-26 Pedro Alves <pedro@codesourcery.com>
  3011. * common/linux-osdata.c (get_cores_used_by_process): Don't assume
  3012. opening /proc/PID/task always succeeds.
  3013. 2011-08-26 Aleksandar Ristovski <aristovski@qnx.com>
  3014. * linespec.c (symtab_from_filename): Check for the end of string.
  3015. 2011-08-26 Marc Khouzam <marc.khouzam@ericsson.com>
  3016. PR mi/11912
  3017. * varobj.c (cplus_describe_child): Add the keyword
  3018. 'class' to the output of the method when dealing
  3019. with a cast to a base class.
  3020. 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
  3021. No functionality change.
  3022. * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
  3023. function comment a reference, new variables tp and bs, move here code
  3024. from throw_exception.
  3025. * breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
  3026. describe it in the comment.
  3027. * exceptions.c (throw_exception): Remove variable tp, move the code for
  3028. bpstat_clear_actions to bpstat_clear_actions.
  3029. 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
  3030. * linux-nat.h (linux_proc_get_tgid): Remove declaration.
  3031. * linux-nat.c: Include linux-procfs.h.
  3032. (linux_proc_get_tgid): Move to ...
  3033. * common/linux-procfs.c: ... here. New file.
  3034. * common/linux-procfs.h: New file.
  3035. * linux-thread-db.c: Include linux-procfs.h.
  3036. * Makefile.in: Update dependencies.
  3037. * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency.
  3038. * config/arm/linux.mh: Likewise.
  3039. * config/i386/linux.mh: Likewise.
  3040. * config/i386/linux64.mh: Likewise.
  3041. * config/ia64/linux.mh: Likewise.
  3042. * config/m32r/linux.mh: Likewise.
  3043. * config/m68k/linux.mh: Likewise.
  3044. * config/mips/linux.mh: Likewise.
  3045. * config/pa/linux.mh: Likewise.
  3046. * config/pa/linux.mh: Likewise.
  3047. * config/powerpc/linux.mh: Likewise.
  3048. * config/powerpc/ppc64-linux.mh: Likewise.
  3049. * config/powerpc/spu-linux.mh: Likewise.
  3050. * config/sparc/linux.mh: Likewise.
  3051. * config/sparc/linux64.mh: Likewise.
  3052. * config/xtensa/linux.mh: Likewise.
  3053. 2011-08-24 Hui Zhu <teawater@gmail.com>
  3054. * tracepoint.c (cond_string_is_same): New function.
  3055. (find_matching_tracepoint): Add condition check
  3056. by cond_string_is_same.
  3057. 2011-08-23 Josh Matthews <josh@joshmatthews.net>
  3058. Fix build error in Darwin port.
  3059. * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
  3060. 2011-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
  3061. Code cleanup.
  3062. * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
  3063. (command_line_is_silent): New function.
  3064. (bpstat_do_actions_1): No longer use commands_left, use
  3065. command_line_is_silent for commands.
  3066. (bpstat_alloc): Remove clearing of commands_left.
  3067. (bpstat_stop_status): Remove initialization of commands_left, use
  3068. command_line_is_silent.
  3069. * breakpoint.h (struct bpstats): Remove commands_left.
  3070. 2011-08-18 Keith Seitz <keiths@redhat.com>
  3071. PR c++/12266
  3072. * cp-name-parser.y (struct demangle_info): Remove unused
  3073. member PREV.
  3074. (d_grab): Likewise.
  3075. (allocate_info): Change return type to struct demangle_info *.
  3076. Always allocate a new demangle_info.
  3077. Remove unused PREV pointer.
  3078. (cp_new_demangle_parse_info): New function.
  3079. (cp_demangled_name_parse_free): New function.
  3080. (do_demangled_name_parse_free_cleanup): New function.
  3081. (make_cleanup_cp_demangled_name_parse_free): New function.
  3082. (cp_demangled_name_to_comp): Change return type to
  3083. struct demangle_parse_info *.
  3084. Allocate a new storage for each call.
  3085. (main): Update usage for cp_demangled_name_to_comp
  3086. API change.
  3087. * cp-support.h (struct demangle_parse_info): New structure.
  3088. (cp_demangled_name_to_comp): Update API change for
  3089. return type.
  3090. (cp_new_demangle_parse_info): Declare.
  3091. (make_cleanup_cp_demangled_name_parse_free): New declaration.
  3092. (cp_demangled_name_parse_free): Declare.
  3093. * cp-support.c (cp_canonicalize_string): Update API
  3094. change for cp_demangled_name_to_comp.
  3095. (mangled_name_to_comp): Likewise.
  3096. Return struct demangle_parse_info, too.
  3097. (cp_class_name_from_physname): Update mangled_name_to_comp
  3098. API change.
  3099. (method_name_from_physname): Likewise.
  3100. (cp_func_name): Update API change for cp_demangled_name_to_comp.
  3101. (cp_remove_params): Likewise.
  3102. * python/py-type.c (typy_legacy_template_argument): Likewise.
  3103. * cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
  3104. (cp_merge_demangle_parse_infos): Declare.
  3105. * cp-support.c (ignore_typedefs): New file global.
  3106. (copy_string_to_obstack): New function.
  3107. (inspect_type): New function.
  3108. (replace_typedefs): New function.
  3109. (replace_typedefs_qualified_name): New function.
  3110. (cp_canonicalize_string_no_typedefs): New function.
  3111. * cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
  3112. (cp_new_demangle__parse_info): Allocate and initialize the obstack.
  3113. * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
  3114. instead of cp_canonicalize_string.
  3115. (find_method): Likewise.
  3116. (decode_compound): Before looking up the name, call
  3117. cp_canonicalize_string_no_typedefs.
  3118. (decode_variable): Likewise.
  3119. 2011-08-17 Phil Muldoon <pmuldoon@redhat.com>
  3120. Tom Tromey <tromey@redhat.com>
  3121. Matt Rice <ratmice@gmail.com>
  3122. * python/lib/gdb/prompt.py: New file.
  3123. * python/lib/gdb/command/prompt.py: New file.
  3124. * NEWS: Document set extended-prompt and gdb.prompt library
  3125. 2011-08-16 Yao Qi <yao@codesourcery.com>
  3126. * tic6x-linux-tdep.c: Move const arrays definition from here...
  3127. * tic6x-tdep.c: to here ...
  3128. 2011-08-14 Yao Qi <yao@codesourcery.com>
  3129. * NEWS: New port to Texas Instruments TMS320C6x.
  3130. 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
  3131. Bernd Schmidt <bernds@codesourcery.com>
  3132. Yao Qi <yao@codesourcery.com>
  3133. * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
  3134. * solib-dsbt.c: New file. Support DSBT shared object.
  3135. * tic6x-linux-tdep.c: New file.
  3136. * tic6x-tdep.c: New file.
  3137. * tic6x-tdep.h: New file.
  3138. 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
  3139. Yao Qi <yao@codesourcery.com>
  3140. * remote.c (PACKET_qXfer_fdpic): New enum value.
  3141. (remote_protocol_features): Add qXfer:fdpic:read packet.
  3142. (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
  3143. (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
  3144. * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
  3145. 2011-08-14 Yao Qi <yao@codesourcery.com>
  3146. Target description for tic6x.
  3147. * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
  3148. tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
  3149. * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
  3150. * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
  3151. * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
  3152. * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
  3153. * features/tic6x-c64xp-linux.xml: New.
  3154. * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
  3155. * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
  3156. * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
  3157. * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
  3158. * regformats/tic6x-c64xp.dat,
  3159. regformats/tic6x-c62x-linux.dat: Generated.
  3160. * regformats/tic6x-c64x-linux.dat,
  3161. regformats/tic6x-c64xp-linux.dat: Generated.
  3162. * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
  3163. features/tic6x-*.c files.
  3164. Add regformats/tic6x-*.dat files.
  3165. 2011-08-12 Doug Evans <dje@google.com>
  3166. * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
  3167. * python/py-symbol.c (sympy_get_type): New function.
  3168. (symbol_object_getset): Add "type".
  3169. 2011-08-12 Pedro Alves <pedro@codesourcery.com>
  3170. PR tui/13073
  3171. * tui/tui-regs.c (tui_show_register_group): Skip registers with an
  3172. empty name.
  3173. (tui_show_register_group): Don't store a byte buffer in the data
  3174. element's value.
  3175. (tui_register_format): Skip registers with an empty name.
  3176. (tui_get_register): Store a struct value in the data element's
  3177. value field instead of a byte buffer holding the raw register
  3178. contents. Account for optimized-out and unavailable registers
  3179. when comparing register contents.
  3180. 2011-08-09 Pedro Alves <pedro@codesourcery.com>
  3181. * printcmd.c (current_display_number): Update comment.
  3182. (disable_current_display_cleanup): Delete.
  3183. (do_one_display): Use make_cleanup_restore_integer. Gracefully
  3184. catch errors thrown while evaluating and printing the display.
  3185. 2011-08-09 Tom Tromey <tromey@redhat.com>
  3186. * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
  3187. 2011-08-09 Pedro Alves <pedro@codesourcery.com>
  3188. * elfread.c (elf_symtab_read): Rework comments.
  3189. * maint.c (maintenance_command): Ditto.
  3190. * somread.c (som_symtab_read): Ditto.
  3191. * solib.c (solib_find, solib_map_sections, update_solib_list)
  3192. (solib_add, info_sharedlibrary_command, solib_name_from_address)
  3193. (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
  3194. (sharedlibrary_command, no_shared_libraries): Ditto.
  3195. * solib-irix.c (locate_base, disable_break, enable_break)
  3196. (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
  3197. (irix_current_sos, irix_open_symbol_file_object)
  3198. (irix_special_symbol_handling): Ditto.
  3199. * solib-sunos.c (locate_base, first_link_map_member)
  3200. (sunos_current_sos, disable_break, enable_break)
  3201. (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
  3202. Ditto.
  3203. * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
  3204. (open_symbol_file_object, svr4_current_sos, enable_break)
  3205. (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
  3206. Ditto.
  3207. * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
  3208. (frv_current_sos, enable_break, frv_special_symbol_handling)
  3209. (frv_solib_create_inferior_hook): Ditto.
  3210. * solist.h (struct target_so_ops): Extend the comments of the
  3211. special_symbol_handling, current_sos and open_symbol_file_object
  3212. methods.
  3213. 2011-08-09 Phil Muldoon <pmuldoon@redhat.com>
  3214. * python/lib/gdb/__init__.py: Auto-load files in command and
  3215. function directories.
  3216. * python/python.c (finish_python_initialization): Use
  3217. os.path.join.
  3218. * python/lib/gdb/command/pretty_printers.py: Self register
  3219. command.
  3220. * NEWS: Document auto-loading.
  3221. 2011-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
  3222. * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
  3223. (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
  3224. objfile_gdbarch. Fix BFD_ENDIAN_BIG case.
  3225. 2011-08-08 Tom Tromey <tromey@redhat.com>
  3226. * breakpoint.c (clean_up_filters): Remove.
  3227. (catch_syscall_split_args): Use VEC_cleanup.
  3228. 2011-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
  3229. * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
  3230. (main): Uncomment "Demangling error\n".
  3231. 2011-08-05 Paul Pluzhnikov <ppluzhnikov@google.com>
  3232. * solib-target.c (segment_attributes): Make them static.
  3233. (section_attributes, library_children, library_attributes): Likewise.
  3234. (library_list_children, library_list_attributes): Likesise.
  3235. (library_list_elements): Likewise.
  3236. 2011-08-05 Pedro Alves <pedro@codesourcery.com>
  3237. * exceptions.c (throw_exception): Don't disable the current
  3238. display.
  3239. * printcmd.c (disable_current_display_cleanup): New function.
  3240. (do_one_display): Install a cleanup to disable the current display
  3241. if doing the display throws.
  3242. 2011-08-05 Eli Zaretskii <eliz@gnu.org>
  3243. * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
  3244. initialization of the tp_new member to the corresponding
  3245. gdbpy_initialize_* function.
  3246. * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
  3247. * python/py-frame.c (gdbpy_initialize_frames): Likewise.
  3248. * python/py-function.c (gdbpy_initialize_functions): Likewise.
  3249. * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
  3250. * python/py-param.c (gdbpy_initialize_parameters): Likewise.
  3251. 2011-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
  3252. * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
  3253. (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
  3254. (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
  3255. references to current_uiout.
  3256. 2011-08-04 Pedro Alves <pedro@codesourcery.com>
  3257. * event-loop.c (gdb_do_one_event): Remove `data' parameter.
  3258. (start_event_loop): Use TRY_CATCH instead of catch_errors.
  3259. * event-loop.h (gdb_do_one_event): Remove `data' parameter.
  3260. * top.c (gdb_readline_wrapper): Adjust.
  3261. * tui/tui-interp.c (tui_command_loop):
  3262. (_initialize_tui_interp): Don't install it.
  3263. 2011-08-04 Pedro Alves <pedro@codesourcery.com>
  3264. * ui-out.h (uiout): Rename to ...
  3265. (current_uiout): ... this.
  3266. * ui-out.c (uiout): Rename to ...
  3267. (current_uiout): ... this.
  3268. * ada-lang.c (print_it_exception, print_one_exception)
  3269. (print_mention_exception): Adjust.
  3270. * breakpoint.c (watchpoint_check): Adjust.
  3271. (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
  3272. (default_collect_info, watchpoints_info, print_one_catch_fork)
  3273. (print_one_catch_vfork, print_one_catch_syscall)
  3274. (print_one_catch_exec, mention, print_it_ranged_breakpoint)
  3275. (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
  3276. (print_it_watchpoint, print_mention_watchpoint)
  3277. (print_it_masked_watchpoint, print_mention_masked_watchpoint)
  3278. (print_it_exception_catchpoint, print_one_exception_catchpoint)
  3279. (print_mention_exception_catchpoint, say_where, bkpt_print_it)
  3280. (bkpt_print_mention, momentary_bkpt_print_it)
  3281. (tracepoint_print_mention, update_static_tracepoint)
  3282. (tracepoints_info, save_breakpoints): Adjust.
  3283. * cli-out.c (field_separator): Adjust.
  3284. * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
  3285. * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
  3286. * frame.c (get_current_frame): Adjust.
  3287. * infcmd.c (run_command_1, print_return_value): Adjust.
  3288. * inferior.c (inferior_command, info_inferiors_command): Adjust.
  3289. * infrun.c (print_end_stepping_range_reason): Adjust.
  3290. (print_signal_exited_reason, print_exited_reason): Adjust.
  3291. (print_signal_received_reason, print_no_history_reason): Adjust.
  3292. * interps.c (interp_set): Adjust.
  3293. * osdata.c (info_osdata_command): Adjust.
  3294. * progspace.c (maintenance_info_program_spaces_command): Adjust.
  3295. * remote-fileio.c (remote_fileio_request): Adjust.
  3296. * remote.c (show_remote_cmd): Adjust.
  3297. * solib.c (info_sharedlibrary_command): Adjust.
  3298. * source.c (print_source_lines_base): Adjust.
  3299. * stack.c (print_stack_frame): Adjust.
  3300. (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
  3301. * symfile-mem.c (add_vsyscall_page): Adjust.
  3302. * symfile.c (load_progress, generic_load)
  3303. (print_transfer_performance): Adjust.
  3304. * thread.c (info_threads_command, restore_selected_frame)
  3305. (thread_command): Adjust.
  3306. * top.c (make_cleanup_restore_ui_file): Adjust.
  3307. * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
  3308. (print_one_static_tracepoint_marker): Adjust.
  3309. * cli/cli-cmds.c (print_disassembly): Adjust.
  3310. * cli/cli-decode.c (print_doc_line): Adjust.
  3311. * cli/cli-interp.c (safe_execute_command): Adjust.
  3312. * cli/cli-logging.c (set_logging_redirect, pop_output_files)
  3313. (handle_redirections): Adjust.
  3314. * cli/cli-script.c (show_user_1): Adjust.
  3315. * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
  3316. * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
  3317. * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
  3318. * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
  3319. (mi_cmd_env_dir): Adjust.
  3320. * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
  3321. (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
  3322. * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
  3323. (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
  3324. (list_args_or_locals): Adjust.
  3325. * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
  3326. (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
  3327. (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
  3328. (mi_cmd_var_list_children, mi_cmd_var_info_type)
  3329. (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
  3330. (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
  3331. (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
  3332. * mi/mi-interp.c (mi_on_normal_stop): Adjust.
  3333. * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
  3334. (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
  3335. (list_available_thread_groups, mi_cmd_list_thread_groups)
  3336. (mi_cmd_data_list_register_names)
  3337. (mi_cmd_data_list_changed_registers)
  3338. (mi_cmd_data_list_register_values, get_register)
  3339. (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
  3340. (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
  3341. (mi_cmd_list_target_features, mi_cmd_add_inferior)
  3342. (mi_execute_command, mi_load_progress): Adjust.
  3343. * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
  3344. * python/py-auto-load.c (print_script, info_auto_load_scripts):
  3345. Adjust.
  3346. * python/py-breakpoint.c (bppy_get_commands): Adjust.
  3347. * tui/tui-interp.c (tui_command_loop): Adjust.
  3348. * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
  3349. 2011-08-04 Pedro Alves <pedro@codesourcery.com>
  3350. * exceptions.c (struct catcher): Remove saved_uiout field.
  3351. (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
  3352. no longer save/resvore the global ui_out builder.
  3353. (catch_exceptions_with_msg): Save/override/restore the global
  3354. ui_out builder manually instead of relying on TRY_CATCH to do it.
  3355. (catch_errors): Save/restore the global ui_out builder manually
  3356. instead of relying on TRY_CATCH to do it.
  3357. * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
  3358. parameter.
  3359. (TRY_CATCH): Adjust.
  3360. * cli/cli-interp.c (safe_execute_command): Save/override/restore
  3361. the global ui_out builder manually instead of relying on TRY_CATCH
  3362. to do it.
  3363. 2011-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
  3364. * breakpoint.c (update_global_location_list): Ensure
  3365. invariant 'first loc marked not duplicated and inserted,
  3366. following locs marked duplicated/not inserted' is respected
  3367. for multiple locations at the same address.
  3368. (unduplicated_should_be_inserted) New function.
  3369. (swap_insertion) New function.
  3370. 2011-08-03 Jan Kratochvil <jan.kratochvil@redhat.com>
  3371. * stack.c (print_frame_arguments_choices): Comment typo fix.
  3372. 2011-08-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
  3373. Revert:
  3374. 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
  3375. * breakpoint.c (insert_bp_location): Remove disabled_breaks
  3376. argument. Update callers.
  3377. 2011-08-01 Paul Pluzhnikov <ppluzhnikov@google.com>
  3378. PR gdb/13045
  3379. * doublest.c (convert_doublest_to_floatformat): Pass correct
  3380. mantissa length to put_field.
  3381. 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
  3382. * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
  3383. exception_print code path.
  3384. (backtrace_command): Remove variable e. Protect arg by make_cleanup in
  3385. advance. Simplify memset. Remove TRY_CATCH. Remove explicit xfree.
  3386. (backtrace_full_command): Remove variable e. Remove TRY_CATCH.
  3387. 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
  3388. Code cleanup.
  3389. * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
  3390. Remove, merge them into ...
  3391. (print_stack_frame): ... here with a TRY_CATCH. New variable e, remove
  3392. variable args and its initialization.
  3393. (struct print_args_args, print_args_stub): Remove, merge them into
  3394. print_frame.
  3395. (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
  3396. them into ...
  3397. (do_gdb_disassembly): ... here. Remove variable args and its
  3398. initialization.
  3399. (print_frame): Remove variable args and its initialization, new
  3400. variable gdbarch and numargs (from print_args_stub), inline here
  3401. print_args_stub with a TRY_CATCH.
  3402. (struct backtrace_command_args, backtrace_command_stub): Remove, merge
  3403. them into ...
  3404. (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
  3405. New variable e, remove variable btargs and its initialization.
  3406. 2011-08-01 Tristan Gingold <gingold@adacore.com>
  3407. * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
  3408. 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
  3409. * breakpoint.c (insert_bp_location): Document return value.
  3410. (insert_breakpoint_locations): Fix documentation.
  3411. (remove_breakpoints): Add documentation.
  3412. 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
  3413. * breakpoint.c (insert_bp_location): Remove disabled_breaks
  3414. argument. Update callers.
  3415. 2011-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
  3416. * stack.c (print_frame_info): Comment typo fix.
  3417. 2011-07-29 Sterling Augustine <saugustine@google.com>
  3418. * MAINTAINERS (Write After Approval): Add myself to the list.
  3419. 2011-07-29 Tom Tromey <tromey@redhat.com>
  3420. * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
  3421. (library_list_start_segment): Update.
  3422. (library_list_start_section): Update.
  3423. 2011-07-28 Phil Muldoon <pmuldoon@redhat.com>
  3424. * varobj.c (value_get_print_value): Move hint check later into the
  3425. function. Comment function. Free thevalue before reusing it.
  3426. 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
  3427. Pedro Alves <pedro@codesourcery.com>
  3428. * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
  3429. value_one.
  3430. * valops.c (value_one): Remove parameter lv. Do not pass it to itself.
  3431. Assert the result kind.
  3432. * value.h (value_one): Remove parameter lv.
  3433. 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
  3434. Fix crash on lval_computed values.
  3435. * valops.c (value_zero): Use not_lval for lval_computed.
  3436. 2011-07-27 Tom Tromey <tromey@redhat.com>
  3437. * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
  3438. gdb_assert.h, gdb_locale.h, gdb_dirent.h.
  3439. 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
  3440. * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
  3441. "ptype" by their typedefs difference.
  3442. 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
  3443. * dwarf2expr.c (ctx_no_read_reg): New function.
  3444. * dwarf2expr.h (ctx_no_read_reg): New declaration.
  3445. * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
  3446. (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
  3447. (decode_locdesc): Replace by a caller of dwarf_expr_eval.
  3448. 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
  3449. * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
  3450. (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
  3451. file.
  3452. (dwarf2_frame_ctx_funcs): Reference the renamed functions.
  3453. * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
  3454. (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
  3455. (ctx_no_get_base_type): Move the functions here.
  3456. * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
  3457. (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
  3458. (ctx_no_get_base_type): New declarations.
  3459. 2011-07-27 Tom Tromey <tromey@redhat.com>
  3460. * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
  3461. entries.
  3462. * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
  3463. * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
  3464. 2011-07-26 Sterling Augustine <saugustine@google.com>
  3465. * cli/cli-dump.c (dump_binary_file): Change parameter type to
  3466. ULONGEST.
  3467. (dump_bfd_file): Likewise.
  3468. 2011-07-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
  3469. * remote.c (remote_region_ok_for_hw_watchpoint): New function.
  3470. (remote_hw_watchpoint_length_limit): New variable.
  3471. (_initialize_remote) add set,show cmds for this new variable.
  3472. * gdb.texinfo: document these new commands.
  3473. * NEWS: Mention these new commands.
  3474. 2011-07-26 Pedro Alves <pedro@codesourcery.com>
  3475. * breakpoint.c (works_in_software_mode_watchpoint): Also return
  3476. true for software watchpoints.
  3477. 2011-07-26 Joel Brobecker <brobecker@adacore.com>
  3478. GDB 7.3 released.
  3479. 2011-07-26 Tom Tromey <tromey@redhat.com>
  3480. * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
  3481. * dwarf2read.c (read_indirect_string_at_offset): New function.
  3482. (read_indirect_string): Use it.
  3483. (dwarf_decode_macro_bytes): New function, taken from
  3484. dwarf_decode_macros. Handle DW_MACRO_GNU_*.
  3485. (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*.
  3486. (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
  3487. New functions.
  3488. (struct dwarf2_per_objfile) <macro>: New field.
  3489. (dwarf2_elf_names): Add .debug_macro.
  3490. (dwarf2_macros_too_long_complaint): Add 'section' argument.
  3491. (dwarf2_locate_sections): Handle new section.
  3492. (read_file_scope): Handle DW_AT_GNU_macros.
  3493. (dwarf2_per_objfile_free): Unmap the .debug_macro section.
  3494. 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
  3495. * NEWS: Mention dcache configuration.
  3496. * dcache.c (dcache_set_list, dcache_show_list): New variables.
  3497. (dcache_size, dcache_line_size): New variables.
  3498. (LINE_SIZE_MASK, XFORM, MASK): Adjust.
  3499. (struct dcache_block): Make it expandable.
  3500. (struct dcache_struct): New field.
  3501. (dcache_invalidate): Discard freelist upon dcache_line_size changes.
  3502. (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
  3503. (dcache_poke_byte, dcache_print_line): Adjust.
  3504. (set_dcache_size, set_dcache_line_size): New functions.
  3505. (set_dcache_command, show_dcache_command): New functions.
  3506. (_initialize_dcache): Add new commands.
  3507. 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
  3508. * progspace.h (struct program_space): Add solib_add_generation.
  3509. * infcmd.c (post_create_inferior): Only call solib_add if not
  3510. already done.
  3511. * solib.c (solib_add): Increment solib_add_generation.
  3512. 2011-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
  3513. Fix implicit pointer offsets.
  3514. * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also
  3515. ptr.OFFSET.
  3516. 2011-07-25 Tom Tromey <tromey@redhat.com>
  3517. * ada-lang.c (ada_exception_breakpoint_ops): Make return type
  3518. const.
  3519. (ada_exception_sal): Make 'ops' const.
  3520. (ada_decode_exception_location): Likewise.
  3521. (ada_decode_assert_location): Likewise.
  3522. (catch_assert_command): Update.
  3523. (catch_ada_exception_command): Update.
  3524. (create_ada_exception_catchpoint): Make 'ops' const.
  3525. * breakpoint.c (set_raw_breakpoint_without_location)
  3526. (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
  3527. const.
  3528. (create_internal_breakpoint): Update.
  3529. (init_raw_breakpoint_without_location): Make 'ops' const.
  3530. (init_raw_breakpoint, init_catchpoint)
  3531. (create_fork_vfork_event_catchpoint)
  3532. (create_syscall_event_catchpoint, init_breakpoint_sal)
  3533. (create_breakpoint_sal, create_breakpoints_sal)
  3534. (create_breakpoint, init_ada_exception_breakpoint): Likewise.
  3535. * breakpoint.h (struct breakpoint) <ops>: Now const.
  3536. (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
  3537. const.
  3538. 2011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com>
  3539. * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
  3540. 2011-07-25 Pedro Alves <pedro@codesourcery.com>
  3541. * breakpoint.h (print_recreate_thread): Declare.
  3542. (struct breakpoint): Move step_count, pass_count,
  3543. number_on_target, static_trace_marker_id,
  3544. static_trace_marker_id_idx ...
  3545. (struct tracepoint): ... to this new struct.
  3546. (get_tracepoint, get_tracepoint_by_number_on_target)
  3547. (get_tracepoint_by_number): Change return type to struct
  3548. tracepoint pointer.
  3549. * breakpoint.c (is_tracepoint_type): New, factored out from
  3550. is_tracepoint.
  3551. (is_tracepoint): Adjust.
  3552. (print_one_breakpoint_location): Cast to struct tracepoint as
  3553. necessary, and adjust.
  3554. (print_recreate_catch_fork, print_recreate_catch_vfork)
  3555. (print_recreate_catch_syscall, print_recreate_catch_exec): Call
  3556. print_recreate_thread.
  3557. (init_breakpoint_sal): New, factored out from
  3558. create_breakpoint_sal.
  3559. (create_breakpoint_sal): Reimplement.
  3560. (create_breakpoint): Allocate a struct tracecepoint if the caller
  3561. wanted a tracepoint. Use init_breakpoint_sal and
  3562. install_breakpoint.
  3563. (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
  3564. (print_recreate_masked_watchpoint)
  3565. (print_recreate_exception_catchpoint): Call print_recreate_thread.
  3566. (tracepoint_print_one_detail): Adjust.
  3567. (tracepoint_print_recreate): Adjust. Call print_recreate_thread.
  3568. Dump the pass count here.
  3569. (update_static_tracepoint): Adjust.
  3570. (addr_string_to_sals): Adjust.
  3571. (create_tracepoint_from_upload): Adjust. Change return type to
  3572. struct tracepoint pointer.
  3573. (trace_pass_set_count): Change parameter type to struct tracepoint
  3574. pointer, and adjust.
  3575. (trace_pass_command): Adjust.
  3576. (get_tracepoint, get_tracepoint_by_number_on_target)
  3577. (get_tracepoint_by_number): Change return type to struct
  3578. tracepoint pointer, and adjust.
  3579. (print_recreate_thread): New, factored out from save_breakpoints.
  3580. (save_breakpoints): Don't print thread and task and passcount
  3581. recreation here.
  3582. * remote.c (remote_download_tracepoint): Adjust.
  3583. * tracepoint.c (trace_actions_command, validate_actionline)
  3584. (start_tracing, tfind_1, trace_find_tracepoint_command)
  3585. (trace_dump_command): Adjust.
  3586. (find_matching_tracepoint): Change return type to struct
  3587. tracepoint pointer, and adjust.
  3588. (merge_uploaded_tracepoints, tfile_get_traceframe_address)
  3589. (tfile_trace_find, tfile_fetch_registers): Adjust.
  3590. * tracepoint.h (create_tracepoint_from_upload): Change return type
  3591. to struct tracepoint pointer.
  3592. * ada-lang.c (print_recreate_exception): Call
  3593. print_recreate_thread.
  3594. * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
  3595. 2011-07-25 Pedro Alves <pedro@codesourcery.com>
  3596. * breakpoint.h (struct breakpoint): Move ops as first field. Move
  3597. exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
  3598. cond_exp_valid_block, val, val_valid, watchpoint_frame,
  3599. watchpoint_thread, watchpoint_triggered ...
  3600. (struct watchpoint): ... to this new struct.
  3601. (is_watchpoint): Declare.
  3602. (install_breakpoint): Add new `internal' parameter.
  3603. * breakpoint.c (is_watchpoint): Delete declaration.
  3604. (set_breakpoint_condition): Handle watchpoints.
  3605. (is_watchpoint): Make public.
  3606. (watchpoint_in_thread_scope): Change parameter type to struct
  3607. watchpoint.
  3608. (watchpoint_del_at_next_stop): Change parameter type to struct
  3609. watchpoint. Remove assertion. Adjust.
  3610. (update_watchpoint): Ditto.
  3611. (insert_breakpoints, breakpoint_init_inferior)
  3612. (watchpoints_triggered, watchpoint_check)
  3613. (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
  3614. (bpstat_stop_status, print_one_breakpoint_location)
  3615. (print_one_breakpoint_location, watchpoint_locations_match): Cast
  3616. to struct watchpoint as necessary, and adjust.
  3617. (install_breakpoint): Add `internal' argument. If true, don't
  3618. mention the new breakpoint. Use set_breakpoint_number.
  3619. (create_fork_vfork_event_catchpoint)
  3620. (create_syscall_event_catchpoint): Adjust.
  3621. (dtor_watchpoint): New.
  3622. (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
  3623. (breakpoint_hit_watchpoint, resources_needed_watchpoint)
  3624. (print_it_watchpoint, print_mention_watchpoint)
  3625. (print_recreate_watchpoint, insert_masked_watchpoint)
  3626. (remove_masked_watchpoint, resources_needed_masked_watchpoint)
  3627. (print_one_detail_masked_watchpoint)
  3628. (print_mention_masked_watchpoint)
  3629. (print_recreate_masked_watchpoint): Cast to struct watchpoint as
  3630. necessary, and adjust.
  3631. (watch_command_1): Allocate and initialize a struct watchpoint
  3632. instead of a struct breakpoint. Use install_breakpoint.
  3633. (catch_exec_command_1): Adjust.
  3634. (base_breakpoint_dtor): Delete accesses to watchpoint specific
  3635. fields.
  3636. (delete_breakpoint, enable_breakpoint_disp)
  3637. (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
  3638. as necessary, and adjust.
  3639. (initialize_breakpoint_ops): Install dtor_watchpoint as
  3640. watchpoints' dtor method.
  3641. * ada-lang.c (create_ada_exception_catchpoint): Adjust.
  3642. * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
  3643. to struct watchpoint as necessary, and adjust.
  3644. 2011-07-25 Pedro Alves <pedro@codesourcery.com>
  3645. * ada-lang.c (dtor_exception, re_set_exception): Indirect through
  3646. the the base class ops table.
  3647. (catch_exception_breakpoint_ops)
  3648. (catch_exception_unhandled_breakpoint_ops)
  3649. (catch_assert_breakpoint_ops): Don't statically initialize.
  3650. (initialize_ada_catchpoint_ops): New.
  3651. (_initialize_ada_language): Call it.
  3652. * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
  3653. (bkpt_breakpoint_ops): Forward declare.
  3654. (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
  3655. (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
  3656. (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
  3657. (masked_watchpoint_breakpoint_ops)
  3658. (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
  3659. (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
  3660. base class ops table.
  3661. (null_re_set, null_check_status, null_works_in_software_mode)
  3662. (null_resources_needed, null_print_one_detail): Delete.
  3663. (bkpt_dtor): Rename to ...
  3664. (base_breakpoint_dtor): ... this. Make static.
  3665. (bkpt_allocate_location): Rename to ...
  3666. (base_breakpoint_allocate_location): ... this. Make static.
  3667. (base_breakpoint_re_set): New.
  3668. (internal_error_pure_virtual_called): New.
  3669. (base_breakpoint_insert_location, base_breakpoint_remove_location)
  3670. (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
  3671. (base_breakpoint_works_in_software_mode)
  3672. (base_breakpoint_resources_needed, base_breakpoint_print_it)
  3673. (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
  3674. (base_breakpoint_print_recreate): New functions.
  3675. (base_breakpoint_ops): New global.
  3676. (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
  3677. (bkpt_breakpoint_hit): Make static.
  3678. (bkpt_check_status): Delete.
  3679. (bkpt_resources_needed): Make static.
  3680. (bkpt_works_in_software_mode): Delete.
  3681. (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
  3682. static.
  3683. (bkpt_breakpoint_ops, internal_breakpoint_ops)
  3684. (momentary_breakpoint_ops): Don't statically initialize.
  3685. (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
  3686. Delete.
  3687. (tracepoint_insert_location, tracepoint_remove_location)
  3688. (tracepoint_check_status, tracepoint_works_in_software_mode)
  3689. (tracepoint_print_it): Delete.
  3690. (tracepoint_breakpoint_ops): Don't statically initialize.
  3691. (initialize_breakpoint_ops): New.
  3692. (_initialize_breakpoint): Call it.
  3693. * breakpoint.h (null_re_set, null_works_in_software_mode)
  3694. (null_resources_needed, null_check_status, null_print_one_detail):
  3695. (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
  3696. (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
  3697. (bkpt_check_status, bkpt_resources_needed)
  3698. (bkpt_works_in_software_mode, bkpt_print_it)
  3699. (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
  3700. Delete declarations.
  3701. (initialize_breakpoint_ops): Declare.
  3702. 2011-07-25 Pedro Alves <pedro@codesourcery.com>
  3703. * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
  3704. (momentary_bkpt_print_it): Simplify.
  3705. 2011-07-25 Pedro Alves <pedro@codesourcery.com>
  3706. Split internal, momentary and user breakpoints breakpoint_ops
  3707. tables.
  3708. * breakpoint.c (internal_breakpoint_ops)
  3709. (momentary_breakpoint_ops): Forward declare.
  3710. (create_internal_breakpoint): Add new breakpoint_ops parameter.
  3711. Pass it down, rather than hardcoding bkpt_breakpoint_ops.
  3712. (create_overlay_event_breakpoint)
  3713. (create_std_terminate_master_breakpoint)
  3714. (create_exception_master_breakpoint): Create breakpoints with
  3715. internal_breakpoint_ops vtable.
  3716. (set_longjmp_breakpoint): Create momentary breakpoints with
  3717. momentary_breakpoint_ops vtable, using
  3718. momentary_breakpoint_from_master.
  3719. (create_thread_event_breakpoint, create_jit_event_breakpoint)
  3720. (create_solib_event_breakpoint): Create breakpoints with
  3721. internal_breakpoint_ops vtable.
  3722. (set_momentary_breakpoint): Create breakpoints with
  3723. momentary_breakpoint_ops vtable.
  3724. (momentary_breakpoint_from_master): New, factored out from
  3725. clone_momentary_breakpoint.
  3726. (clone_momentary_breakpoint): Adjust.
  3727. (watch_command_1): Create scope breakpoints with
  3728. momentary_breakpoint_ops vtable.
  3729. (bkpt_re_set): Remove handling of internal and momentary
  3730. breakpoints.
  3731. (bkpt_print_mention, bkpt_print_recreate): New.
  3732. (bkpt_breakpoint_ops): Adjust.
  3733. (internal_bkpt_re_set, internal_bkpt_check_status)
  3734. (internal_bkpt_print_it, internal_bkpt_print_mention)
  3735. (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
  3736. (momentary_bkpt_re_set, momentary_bkpt_check_status)
  3737. (momentary_bkpt_print_it, momentary_bkpt_print_mention)
  3738. (momentary_bkpt_print_recreate): New.
  3739. (momentary_breakpoint_ops): New.
  3740. 2011-07-25 Pedro Alves <pedro@codesourcery.com>
  3741. Implement most breakpoint_ops methods for all breakpoint types,
  3742. and move the default handlings to the proper callbacks.
  3743. * breakpoint.c (update_watchpoint): Always call the breakpoint's
  3744. works_in_software_mode method.
  3745. (insert_bp_location): Go through breakpoint_ops->insert_location
  3746. for software and hardware watchpoints.
  3747. (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
  3748. breakpoint_ops.
  3749. (remove_breakpoint_1): Go through breakpoint_ops->remove_location
  3750. for software and hardware watchpoints.
  3751. (print_it_typical): Delete.
  3752. (print_bp_stop_message): Always call the breakpoint_ops->print_it
  3753. method.
  3754. (watchpoint_check): Adjust comment.
  3755. (bpstat_check_location): Simply always call the breakpoint's
  3756. breakpoint_hit method.
  3757. (bpstat_stop_status): Always call the breakpoint's check_status
  3758. method. Remove special cases for watchpoints and internal event
  3759. breakpoints from here (moved to the check_status implementations).
  3760. (print_one_breakpoint_location): Assume b->ops is never NULL.
  3761. Remove static tracepoint marker id printing from here (moved to
  3762. the print_one_detail callback implementation of tracepoints).
  3763. (init_bp_location): Assert OPS is never NULL.
  3764. (allocate_bp_location): Always call the breakpoint's
  3765. allocate_location method, and remove the default code from here.
  3766. (free_bp_location): Always call the location's dtor method, and
  3767. remove the default code from here.
  3768. (init_raw_breakpoint_without_location): Assert OPS is never NULL.
  3769. (set_raw_breakpoint_without_location): Add new breakpoint_ops
  3770. parameter. Pass it down.
  3771. (set_raw_breakpoint): Ditto.
  3772. (print_it_catch_fork): Adjust to take a bpstat as argument.
  3773. (catch_fork_breakpoint_ops): Install methods.
  3774. (print_it_catch_vfork): Adjust to take a bpstat as argument.
  3775. (catch_vfork_breakpoint_ops): Install methods.
  3776. (dtor_catch_syscall): Call the base dtor.
  3777. (print_it_catch_syscall): Adjust to take a bpstat as argument.
  3778. (catch_syscall_breakpoint_ops): Install methods.
  3779. (dtor_catch_exec): Call the base dtor.
  3780. (print_it_catch_exec): Adjust to take a bpstat as argument.
  3781. (catch_exec_breakpoint_ops): Install methods.
  3782. (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
  3783. the breakpoint's resources_needed method, and remove the default
  3784. code from here.
  3785. (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
  3786. breakpoint_ops.
  3787. (clone_momentary_breakpoint): Clone the original's ops.
  3788. (mention): Always call the breakpoint's print_mention method, and
  3789. remove the default code from here.
  3790. (create_breakpoint_sal): Adjust to pass the ops to
  3791. set_raw_breakpoint rather than setting it manually.
  3792. (create_breakpoint): Assert ops is never NULL. Adjust to pass the
  3793. ops to set_raw_breakpoint_without_location rather than setting it
  3794. manually.
  3795. (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
  3796. (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
  3797. (ranged_breakpoint_ops): Install methods.
  3798. (break_range_command): Adjust to pass the ops to
  3799. set_raw_breakpoint rather than setting it manually.
  3800. (re_set_watchpoint, breakpoint_hit_watchpoint)
  3801. (check_status_watchpoint, resources_needed_watchpoint)
  3802. (works_in_software_mode_watchpoint, print_it_watchpoint)
  3803. (print_mention_watchpoint, print_recreate_watchpoint): New
  3804. functions.
  3805. (watchpoint_breakpoint_ops): Install new methods.
  3806. (print_it_masked_watchpoint): New function.
  3807. (masked_watchpoint_breakpoint_ops): Install new methods.
  3808. (watch_command_1): Adjust to pass the right breakpoint_ops to
  3809. set_raw_breakpoint_without_location rather than setting it
  3810. manually later. Record the current pspace.
  3811. (print_it_exception_catchpoint): Adjust to take a bpstat as
  3812. argument.
  3813. (gnu_v3_exception_catchpoint_ops): Install new methods.
  3814. (say_where): New function.
  3815. (null_re_set, null_check_status, null_works_in_software_mode)
  3816. (null_resources_needed, null_print_one_detail, bp_location_dtor):
  3817. New functions.
  3818. (bp_location_ops): New global.
  3819. (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
  3820. (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
  3821. (bkpt_check_status, bkpt_resources_needed)
  3822. (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
  3823. (bkpt_print_recreate): New functions.
  3824. (bkpt_breakpoint_ops): New global.
  3825. (tracepoint_re_set, tracepoint_insert_location)
  3826. (tracepoint_remove_location, tracepoint_breakpoint_hit)
  3827. (tracepoint_check_status, tracepoint_works_in_software_mode)
  3828. (tracepoint_print_it, tracepoint_print_one_detail)
  3829. (tracepoint_print_mention, tracepoint_print_recreate): New
  3830. functions.
  3831. (tracepoint_breakpoint_ops): New global.
  3832. (delete_breakpoint): Always call the breakpoint's dtor method, and
  3833. remove the default handling from here.
  3834. (breakpoint_re_set_default): Make static.
  3835. (breakpoint_re_set_one): Always call the breakpoints re_set
  3836. method, and remove the default handling from here.
  3837. (trace_command, ftrace_command, strace_command)
  3838. (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
  3839. to create_breakpoint.
  3840. (save_breakpoints): Always call the breakpoint's print_recreate
  3841. method, and remove the default handling from here.
  3842. * ada-lang.c (dtor_exception): Call the base dtor.
  3843. (re_set_exception): Call the base method.
  3844. (print_it_exception, print_it_catch_exception): Adjust to take a
  3845. bpstat as argument.
  3846. (catch_exception_breakpoint_ops): Install methods.
  3847. (print_it_catch_exception_unhandled): Adjust to take a bpstat as
  3848. argument.
  3849. (catch_exception_unhandled_breakpoint_ops): Install methods.
  3850. (print_it_catch_assert): Adjust to take a bpstat as argument.
  3851. (catch_assert_breakpoint_ops): Install methods.
  3852. * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
  3853. to take a bpstat as argument.
  3854. (enum print_stop_action): Add describing comments to each enum
  3855. value.
  3856. (breakpoint_re_set_default): Delete declaration.
  3857. (null_re_set, null_works_in_software_mode, null_resources_needed)
  3858. (null_check_status, null_print_one_detail): Declare.
  3859. (bkpt_breakpoint_ops): Declare.
  3860. (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
  3861. (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
  3862. (bkpt_check_status, bkpt_resources_needed)
  3863. (bkpt_works_in_software_mode, bkpt_print_it)
  3864. (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
  3865. Declare.
  3866. * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
  3867. bkpt_breakpoint_ops.
  3868. * python/py-breakpoint.c (bppy_init): Ditto.
  3869. 2011-07-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
  3870. * MAINTAINERS (Write After Approval): Add myself to the list.
  3871. 2011-07-23 Paul Pluzhnikov <ppluzhnikov@google.com>
  3872. * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
  3873. 2011-07-22 Pedro Alves <pedro@codesourcery.com>
  3874. * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
  3875. (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
  3876. (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
  3877. adjust.
  3878. (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
  3879. (struct i386_debug_reg_state): New.
  3880. (i386_init_dregs): New.
  3881. (dr_mirror): New.
  3882. (i386_cleanup_dregs): Use i386_init_dregs.
  3883. (i386_show_dr): Add state parameter and adjust.
  3884. (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
  3885. the inferior here.
  3886. (i386_remove_aligned_watchpoint): Likewise.
  3887. (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
  3888. (i386_update_inferior_debug_regs): New.
  3889. (i386_insert_watchpoint): Work on a local mirror of the debug
  3890. registers, and only update the inferior on success.
  3891. (i386_remove_watchpoint): Ditto.
  3892. (i386_region_ok_for_watchpoint): Adjust.
  3893. (i386_stopped_data_address): Adjust.
  3894. (i386_insert_hw_breakpoint): Adjust.
  3895. (i386_remove_hw_breakpoint): Adjust.
  3896. 2011-07-22 Tom Tromey <tromey@redhat.com>
  3897. * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
  3898. from amd64_pseudo_register_read. Change arguments. Call
  3899. mark_value_bytes_unavailable when needed.
  3900. (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
  3901. set_gdbarch_pseudo_register_read.
  3902. * sentinel-frame.c (sentinel_frame_prev_register): Use
  3903. regcache_cooked_read_value.
  3904. * regcache.h (regcache_cooked_read_value): Declare.
  3905. * regcache.c (regcache_cooked_read_value): New function.
  3906. (regcache_cooked_read): Call
  3907. gdbarch_pseudo_register_read_value if available.
  3908. * i386-tdep.h (i386_pseudo_register_read_value): Declare.
  3909. (i386_pseudo_register_read): Remove.
  3910. * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
  3911. i386_pseudo_register_read. Change arguments. Call
  3912. mark_value_bytes_unavailable when needed.
  3913. (i386_pseudo_register_read_value): New function.
  3914. (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
  3915. not set_gdbarch_pseudo_register_read.
  3916. * gdbarch.sh (pseudo_register_read_value): New method.
  3917. * gdbarch.c, gdbarch.h: Rebuild.
  3918. * findvar.c (value_from_register): Call get_frame_register_value.
  3919. 2011-07-22 Phil Muldoon <pmuldoon@redhat.com>
  3920. * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
  3921. get_prefix.
  3922. (display_gdb_prompt): Likewise.
  3923. (change_annotation_level): Likewise.
  3924. (push_prompt): Likewise.
  3925. (pop_prompt): Likewise.
  3926. (handle_stop_sig): Use get_prompt with a level.
  3927. * top.c (command_loop): Use get_prompt with a level.
  3928. (set_async_annotation_level): Use set_prompt with a level.
  3929. (get_prefix): New function.
  3930. (set_prefix): Ditto.
  3931. (set_suffix): Ditto.
  3932. (get_suffix): Ditto.
  3933. (get_prompt): Accept a level argument.
  3934. (set_prompt): Accept a level argument. Free old prompts. Set
  3935. new_async_prompt if level is 0.
  3936. (init_main): Use set_prompt with a level. Do not set
  3937. new_async_prompt.
  3938. * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
  3939. * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
  3940. Modify set_prompt, get_prompt to account for levels.
  3941. * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
  3942. level.
  3943. * python/python.c (before_prompt_hook): Use set_prompt.
  3944. 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
  3945. * defs.h: Add guard against inclusion in gdbserver.
  3946. (struct ptid, ptid_t): Move to common/ptid.h.
  3947. (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
  3948. xsnprintf, internal_error): Move to common/common-utils.h.
  3949. (nomem): Delete.
  3950. * gdb_assert.h: Move into common/ sub-directory.
  3951. * gdb_locale.h: Ditto.
  3952. * gdb_dirent.h: Ditto.
  3953. * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
  3954. ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
  3955. Move into common/ptid.h.
  3956. * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
  3957. (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
  3958. Change nomem to malloc_failure.
  3959. * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
  3960. * utils.c (nomem): Rename to malloc_failure.
  3961. (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
  3962. xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
  3963. (gdb_buildargv): Change nomem to malloc_failure.
  3964. * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
  3965. ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
  3966. ptid_is_pid): Move into common/ptid.c.
  3967. (initialize_infrun): Delete initialization of null_ptid and
  3968. minus_one_ptid.
  3969. * linux-nat.c (linux_nat_xfer_osdata): Defer to
  3970. linux_common_xfer_osdata.
  3971. * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
  3972. common/ptid.c and common/buffer.c.
  3973. (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
  3974. common/ptid.h, common/buffer.h and common/linux-osdata.h.
  3975. (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
  3976. (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
  3977. rules.
  3978. * common/gdb_assert.h: New.
  3979. * common/gdb_dirent.h: New.
  3980. * common/gdb_locale.h: New.
  3981. * common/buffer.c: New.
  3982. * common/buffer.h: New.
  3983. * common/ptid.c: New.
  3984. * common/ptid.h: New.
  3985. * common/xml-utils.c: New.
  3986. * common/xml-utils.h: New.
  3987. * common/common-utils.c: New.
  3988. * common/common-utils.h: New.
  3989. * common/linux-osdata.c: New.
  3990. * common/linux-osdata.h: New.
  3991. * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
  3992. * config/arm/linux.mh (NATDEPFILES): Ditto.
  3993. * config/i386/linux.mh (NATDEPFILES): Ditto.
  3994. * config/i386/linux64.mh (NATDEPFILES): Ditto.
  3995. * config/ia64/linux.mh (NATDEPFILES): Ditto.
  3996. * config/m32r/linux.mh (NATDEPFILES): Ditto.
  3997. * config/m68k/linux.mh (NATDEPFILES): Ditto.
  3998. * config/mips/linux.mh (NATDEPFILES): Ditto.
  3999. * config/pa/linux.mh (NATDEPFILES): Ditto.
  4000. * config/powerpc/linux.mh (NATDEPFILES): Ditto.
  4001. * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
  4002. * config/s390/s390.mh (NATDEPFILES): Ditto.
  4003. * config/sparc/linux.mh (NATDEPFILES): Ditto.
  4004. * config/sparc/linux64.mh (NATDEPFILES): Ditto.
  4005. * config/xtensa/linux.mh (NATDEPFILES): Ditto.
  4006. 2011-07-21 Matt Rice <ratmice@gmail.com>
  4007. * NEWS: Add info macros and info definitions commands.
  4008. 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
  4009. * NEWS: Document Python prompt substitution hook.
  4010. 2011-07-18 Matt Rice <ratmice@gmail.com>
  4011. PR macros/12999
  4012. * macrotab.h (macro_callback_fn): Add new arguments to callback.
  4013. * macrotab.c (foreach_macro): Ditto.
  4014. (foreach_macro_in_scope): Ditto.
  4015. * macrocmd.c (print_macro_callback): New function.
  4016. (info_macro_command): Move some code to print_macro_definition.
  4017. (print_macro_definition): New function.
  4018. (print_one_macro): Add new arguments to callback.
  4019. (info_definitions_command): New function.
  4020. (info_macros_command): Ditto.
  4021. (_initialize_macrocmd): Add info macros and info definitions commands.
  4022. * symtab.c (add_macro_name): Add new arguments to callback.
  4023. 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
  4024. Tom Tromey <tromey@redhat.com>
  4025. * top.c (set_prompt): Rewrite to free previous prompt, free
  4026. asynch_new_prompt and set both on new prompts.
  4027. * event-top.c (display_gdb_prompt): Add prompt substitution
  4028. logic.
  4029. * python/python.c (before_prompt_hook): New function.
  4030. 2011-07-20 Matt Rice <ratmice@gmail.com>
  4031. * bfin-tdep.c (bfin_extract_return_value): Fix swapped
  4032. arguments to store_unsigned_integer.
  4033. 2011-07-20 Tom Tromey <tromey@redhat.com>
  4034. * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
  4035. in some declaration-only cases.
  4036. 2011-07-18 Tom Tromey <tromey@redhat.com>
  4037. PR symtab/12984:
  4038. * dwarf2read.c (dwarf2_section_info_def): New typedef.
  4039. (struct dwarf2_per_objfile) <types>: Change to a VEC.
  4040. (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
  4041. <debug_type_section>: New field.
  4042. (dwarf2_locate_sections): Push .debug_types sections onto VEC.
  4043. (load_cu): Use appropriate section.
  4044. (create_signatured_type_table_from_index): Add 'section'
  4045. argument.
  4046. (dwarf2_read_index): Only allow a single .debug_types section.
  4047. (dw2_get_file_names): Use appropriate section.
  4048. (read_type_comp_unit_head): Add 'section' argument.
  4049. (create_debug_types_hash_table): Loop over all .debug_types
  4050. sections.
  4051. (init_cu_die_reader): Use appropriate section.
  4052. (process_psymtab_comp_unit, load_partial_comp_unit)
  4053. (load_full_comp_unit, read_die_and_children, find_partial_die)
  4054. (lookup_die_type, determine_prefix, follow_die_offset): Update.
  4055. (lookup_signatured_type_at_offset): Add 'section' argument.
  4056. (read_signatured_type_at_offset): Add 'sect' argument.
  4057. (read_signatured_type): Use appropriate section.
  4058. (set_die_type, get_die_type_at_offset): Update.
  4059. (dwarf2_per_objfile_free): Free all .debug_types sections, and
  4060. VEC.
  4061. (write_psymtabs_to_index): Don't allow index with more than one
  4062. .debug_types section.
  4063. 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
  4064. Fix crash if referenced CU is aged out.
  4065. * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
  4066. xfree of block.data.
  4067. (indirect_pieced_value): New variable back_to, use to for xfree of
  4068. baton.data.
  4069. (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
  4070. block.data.
  4071. * dwarf2read.c (dwarf2_find_base_address): New prototype.
  4072. (load_cu): New function from ...
  4073. (dw2_do_instantiate_symtab): ... the code here ...
  4074. (process_full_comp_unit): ... and here.
  4075. (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
  4076. retval.data.
  4077. 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
  4078. * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
  4079. type.
  4080. 2011-07-19 Gary Benson <gbenson@redhat.com>
  4081. * infrun.c (struct execution_control_state): New member
  4082. stop_func_filled_in.
  4083. (clear_stop_func, fill_in_stop_func): New functions.
  4084. (handle_inferior_event): Call clear_stop_func rather than
  4085. manipulating the execution control state directly.
  4086. Call fill_in_stop_func lazily as required rather than
  4087. directly calling find_pc_partial_function in all cases.
  4088. 2011-07-18 Tom Tromey <tromey@redhat.com>
  4089. * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
  4090. checking for variable-sized array.
  4091. 2011-07-18 Jean-Charles Delay <delay@adacore.com>
  4092. * varobj.h (varobj_languages): Add vlang_ada definition to the list
  4093. of supported languages.
  4094. * varobj.c: Add top definitions and basic implementation of the
  4095. following callbacks: ada_number_of_children, ada_name_of_variable,
  4096. ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
  4097. ada_value_of_child, ada_type_of_child, ada_value_of_variable.
  4098. (languages): Register Ada-specific callbacks.
  4099. (variable_language): Add the Ada case in the language setter switch.
  4100. 2011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
  4101. * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
  4102. 2011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
  4103. Code cleanup.
  4104. * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
  4105. (execute_stack_op): Use dwarf2_frame_ctx_funcs
  4106. * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
  4107. (execute_stack_op): Access read_reg, get_frame_base, read_mem,
  4108. get_frame_cfa, get_tls_address and dwarf_call via funcs.
  4109. * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
  4110. (struct dwarf_expr_context_funcs): New, move here methods from ...
  4111. (struct dwarf_expr_context): ... here. New fields funcs.
  4112. * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
  4113. (dwarf_expr_ctx_funcs): New.
  4114. (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
  4115. (needs_frame_dwarf_call): Access get_frame_pc via funcs.
  4116. (needs_frame_ctx_funcs): New.
  4117. (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
  4118. 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
  4119. * MAINTAINERS (Write After Approval): Add myself to the list.
  4120. 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
  4121. * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
  4122. that CIE pointer of an FDE really points to a CIE .
  4123. 2011-07-15 Hui Zhu <teawater@gmail.com>
  4124. * remote.c (remote_get_trace_status): Add comments.
  4125. 2011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
  4126. Code cleanup - constify struct lval_funcs.
  4127. * dwarf2loc.c (pieced_value_funcs): Make it const.
  4128. * infrun.c (siginfo_value_funcs): Likewise.
  4129. * opencl-lang.c (opencl_value_funcs): Likewise.
  4130. * valops.c (value_assign, value_ind): Make the funcs variable const.
  4131. * value.c (struct value): Make location.computed.funcs target const.
  4132. Rearrange the comments.
  4133. (allocate_computed_value): Make the funcs parameter target const.
  4134. (value_computed_funcs): Return the funcs target const.
  4135. (value_free, value_copy, set_value_component_location): Make the funcs
  4136. variable const.
  4137. * value.h (allocate_computed_value): Make the funcs parameter target
  4138. const.
  4139. (value_computed_funcs): Return the funcs target const.
  4140. * windows-tdep.c (tlb_value_funcs): Make it const.
  4141. 2011-07-14 Hui Zhu <teawater@gmail.com>
  4142. * remote.c (remote_get_trace_status): Initialize p.
  4143. 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
  4144. Work around kgdb.
  4145. * remote.c (remote_get_trace_status): New variable ex. Put
  4146. remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
  4147. 2011-07-13 Tom Tromey <tromey@redhat.com>
  4148. * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
  4149. value_from_contents for final conversion.
  4150. 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
  4151. Code cleanup.
  4152. * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
  4153. Indent prototypes so they do not get into tags.
  4154. 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
  4155. Code cleanup making also optimized out values lazy.
  4156. * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
  4157. allocate_optimized_out_value. Twice.
  4158. (loclist_read_variable) Use allocate_optimized_out_value. Once.
  4159. * findvar.c (read_var_value): Likewise.
  4160. * value.c (allocate_optimized_out_value): New function.
  4161. * value.h (allocate_optimized_out_value): New declaration.
  4162. 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
  4163. Fix occasional crash of CTRL-C during DWARF read in.
  4164. * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
  4165. 2011-07-11 Tom Tromey <tromey@redhat.com>
  4166. * regcache.c (struct regcache_descr): Fix typo.
  4167. * i387-tdep.c (i387_supply_xsave): Fix typo.
  4168. 2011-07-11 Tom Tromey <tromey@redhat.com>
  4169. * dwarf2read.c (handle_DW_AT_stmt_list): New function.
  4170. (read_file_scope, read_type_unit_scope): Use it.
  4171. 2011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
  4172. * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
  4173. `int'.
  4174. 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
  4175. PR python/12438
  4176. * python/python.c: Set gdbpy_should_print_stack default to off.
  4177. (set_python): Deprecate maint set python print-stack to
  4178. class_deprecate.
  4179. (_initialize_python): Deprecate maint set/show python print-stack.
  4180. Add new prefix command, python. Add new setting, print-backtrace.
  4181. * NEWS: Document set python print-stack. Document default change.
  4182. 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
  4183. * python/py-inferior.c (infpy_dealloc): New function.
  4184. (inferior_to_inferior_object): Return a new object, or a
  4185. new reference to the existing object.
  4186. (find_thread_object): Cleanup references to inferior.
  4187. (delete_thread_object): Ditto.
  4188. * python/py-infthread.c (create_thread_object): Do not increment
  4189. inferior reference count.
  4190. 2011-07-08 Tom Tromey <tromey@redhat.com>
  4191. * dwarf2loc.c (locexpr_regname): New function.
  4192. (locexpr_describe_location_piece): Use it.
  4193. (disassemble_dwarf_expression): Add per_cu argument. Use
  4194. locexpr_regname.
  4195. <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
  4196. DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
  4197. New cases.
  4198. (locexpr_describe_location_1): Add per_cu argument.
  4199. (locexpr_describe_location): Update.
  4200. (loclist_describe_location): Update.
  4201. 2011-07-08 Tom Tromey <tromey@redhat.com>
  4202. * dwarf2expr.c (execute_stack_op): Add QUIT.
  4203. 2011-07-07 Hui Zhu <teawater@gmail.com>
  4204. Revert:
  4205. 2011-07-06 Hui Zhu <teawater@gmail.com>
  4206. * remote.c (remote_start_remote): Add TRY_CATCH for
  4207. remote_get_trace_status.
  4208. * tracepoint.c (disconnect_tracing): Ditto.
  4209. 2011-07-07 Andrew Burgess <aburgess@broadcom.com>
  4210. * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
  4211. variables as signed, not unsigned.
  4212. 2011-07-06 Joel Brobecker <brobecker@adacore.com>
  4213. * jit.c (jit_inferior_init): Reformat forward declaration.
  4214. 2011-07-06 Matt Rice <ratmice@gmail.com>
  4215. * MAINTAINERS (Write After Approval): Add myself to the list.
  4216. 2011-07-06 Hui Zhu <teawater@gmail.com>
  4217. * remote.c (remote_start_remote): Add TRY_CATCH for
  4218. remote_get_trace_status.
  4219. * tracepoint.c (disconnect_tracing): Ditto.
  4220. 2011-07-05 Tom Tromey <tromey@redhat.com>
  4221. * symtab.c (operator_chars): Now static.
  4222. * linespec.c (operator_chars): Don't declare.
  4223. 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
  4224. * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
  4225. 2011-07-05 Tom Tromey <tromey@redhat.com>
  4226. * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
  4227. * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
  4228. (TYPE_CPLUS_REALLY_JAVA): New macro.
  4229. * dwarf2read.c (process_structure_scope): Set
  4230. TYPE_CPLUS_REALLY_JAVA.
  4231. 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
  4232. * ada-lang.c: Fix typos.
  4233. * amd64-tdep.c: Likewise.
  4234. * breakpoint.c: Likewise.
  4235. * cli/cli-decode.c: Likewise.
  4236. * findcmd.c: Likewise.
  4237. * inline-frame.c: Likewise.
  4238. * mi/mi-main.c: Likewise.
  4239. * minsyms.c: Likewise.
  4240. * monitor.c: Likewise.
  4241. * monitor.h: Likewise.
  4242. * prologue-value.c: Likewise.
  4243. * reverse.c: Likewise.
  4244. * s390-tdep.c: Likewise.
  4245. 2011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
  4246. * jit.c (jit_inferior_init): Forward declare.
  4247. (jit_breakpoint_re_set_internal): Call jit_inferior_init.
  4248. 2011-07-04 Joel Brobecker <brobecker@adacore.com>
  4249. * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
  4250. 2011-07-04 Tristan Gingold <gingold@adacore.com>
  4251. * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
  4252. (tcb_fieldno): Add activation_link field.
  4253. (get_known_tasks_addr): Moved and rewritten.
  4254. (get_tcb_types_info): Set activation_link field.
  4255. (read_known_tasks_array): Add parameter. Rewritten.
  4256. (read_known_tasks_list): New function.
  4257. (read_known_tasks): New function.
  4258. (ada_build_task_list): Call read_known_tasks instead of
  4259. read_known_tasks_array.
  4260. * ravenscar-thread.c: Add first_task_name constant.
  4261. (has_ravenscar_runtime): Check for task list too.
  4262. 2011-07-04 Tristan Gingold <gingold@adacore.com>
  4263. * ada-tasks.c: Renames fieldno to actb_fieldno.
  4264. (ada_get_task_number): Indentation.
  4265. (get_tcb_types_info): Remove all parameters. Write directly
  4266. the globals.
  4267. (ptid_from_atcb_common): Adjust.
  4268. (read_atcb): Adjust.
  4269. 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
  4270. * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
  4271. 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
  4272. * ui-out.c (ui_out_field_core_addr): Mention that the function
  4273. description is in the header file.
  4274. * ui-out.h (ui_out_field_core_addr): Document function.
  4275. 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
  4276. * ui-out.c (ui_out_get_field_separator): Remove unused function.
  4277. * ui-out.h (ui_out_get_field_separator): Remove prototype.
  4278. 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
  4279. * symtab.c (expand_line_sal): Remove empty line.
  4280. 2011-07-04 Thomas Schwinge <thomas@schwinge.name>
  4281. * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
  4282. same way as ELFOSABI_NONE.
  4283. <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
  4284. 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
  4285. * breakpoint.c: Fix typos in comments.
  4286. * linespec.c: Likewise.
  4287. * symtab.c: Likewise.
  4288. 2011-07-04 Joel Brobecker <brobecker@adacore.com>
  4289. * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
  4290. section in separate object files.
  4291. 2011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
  4292. Fix false GCC warning.
  4293. * linespec.c (decode_line_1): Initialize values.
  4294. 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
  4295. * linespec.c (find_method): Accept the function type automatically only
  4296. if it was specified with parameter types.
  4297. 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
  4298. Stop on first linespec terminator instead of eating what we can.
  4299. * linespec.c (is_linespec_boundary): New function.
  4300. (name_end): Remove function.
  4301. (keep_name_info): New parameter on_boundary, replace the body.
  4302. (decode_line_1): Provide the parameter to keep_name_info.
  4303. (decode_compound): Likewise. Drop the trailing java return type
  4304. handling. Twice.
  4305. 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
  4306. Fall back linespec to minimal symbols.
  4307. * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
  4308. decode_compound by TRY_CATCH, fall back on minsyms if it failed.
  4309. (find_method, symbol_found): Change error to cplusplus_error.
  4310. 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
  4311. * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
  4312. 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
  4313. Tom Tromey <tromey@redhat.com>
  4314. * dwarf2read.c (check_physname): New variable.
  4315. (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
  4316. (show_check_physname): New function.
  4317. (_initialize_dwarf2_read): Add `check-physname' for check_physname.
  4318. 2011-07-01 Joel Brobecker <brobecker@adacore.com>
  4319. * machoread.c (macho_symfile_read): Delete OBE comment.
  4320. 2011-07-01 Joel Brobecker <brobecker@adacore.com>
  4321. * machoread.c (struct macho_oso_data): Delete.
  4322. (current_oso): Delete.
  4323. (macho_relocate_common_syms): New function, mostly extracted
  4324. out of
  4325. (macho_add_oso_symfile): Call macho_relocate_common_syms.
  4326. Remove code that sets and unset current_oso.
  4327. (macho_symfile_relocate): Delete handling of common symbols,
  4328. now moved to macho_relocate_common_syms.
  4329. 2011-07-01 Joel Brobecker <brobecker@adacore.com>
  4330. * darwin-nat.c (darwin_ptrace): Add documentation.
  4331. Set errno to zero before calling ptrace. If ptrace returns
  4332. -1 and errno is zero, then change then return zero.
  4333. (darwin_kill_inferior): Issue a warning instead of triggering
  4334. a failed assertion when the PT_KILL ptrace operations returned
  4335. nonzero.
  4336. 2011-07-01 Joel Brobecker <brobecker@adacore.com>
  4337. * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
  4338. only when inf->private->no_ptrace.
  4339. 2011-07-01 Joel Brobecker <brobecker@adacore.com>
  4340. * ada-lang.c (print_it_exception): Print temporary catchpoints
  4341. as "Temporary catchpoint".
  4342. (print_mention_exception): Likewise.
  4343. 2011-07-01 Tom Tromey <tromey@redhat.com>
  4344. * jv-lang.c (java_language_defn): Use java_printchar,
  4345. java_printstr.
  4346. (java_get_encoding): New function.
  4347. (java_emit_char): Use generic_emit_char.
  4348. (java_printchar): New function.
  4349. (java_printstr): Likewise.
  4350. 2011-07-01 Joel Brobecker <brobecker@adacore.com>
  4351. * ada-typeprint.c (print_record_type): If unable to decode
  4352. the name of the parent type, use the encoded name.
  4353. 2011-07-01 Jean-Charles Delay <delay@adacore.com>
  4354. * ada-typeprint.c (ada_print_type): Fix both PAD type and
  4355. pointer to constrained packed array type output.
  4356. * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
  4357. packed array output.
  4358. 2011-07-01 Jean-Charles Delay <delay@adacore.com>
  4359. * ada-typeprint.c (print_array_type): removed if condition on show
  4360. being negative for bounds printing.
  4361. 2011-07-01 Joel Brobecker <brobecker@adacore.com>
  4362. * ada-lang.c (ada_identical_enum_types_p): New function.
  4363. (symbols_are_identical_enums): New function.
  4364. (remove_extra_symbols): Do nothing if NSYMS < 2.
  4365. Use symbols_are_identical_enums.
  4366. 2011-07-01 Joel Brobecker <brobecker@adacore.com>
  4367. * ada-valprint.c (ada_value_print): Handle typedefs.
  4368. 2011-07-01 Joel Brobecker <brobecker@adacore.com>
  4369. * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
  4370. 2011-07-01 Eric Botcazou <ebotcazou@adacore.com>
  4371. * ada-lang.c (thin_descriptor_type): Deal with typedefs.
  4372. (decode_constrained_packed_array): Likewise.
  4373. (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
  4374. 2011-07-01 Joel Brobecker <brobecker@adacore.com>
  4375. * ada-exp.y (convert_char_literal): Handle typedef types.
  4376. 2011-07-01 Joel Brobecker <brobecker@adacore.com>
  4377. * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
  4378. 2011-06-30 Tom Tromey <tromey@redhat.com>
  4379. * varobj.c (varobj_create): Call do_cleanups on early exit path.
  4380. * valops.c (find_overload_match): Call do_cleanups on early exit
  4381. path.
  4382. * solib.c (solib_find): Call do_cleanups on early exit path.
  4383. 2011-06-30 Tom Tromey <tromey@redhat.com>
  4384. * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
  4385. * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
  4386. return paths. Defer final do_cleanups until last return.
  4387. * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
  4388. early return.
  4389. 2011-06-30 Tom Tromey <tromey@redhat.com>
  4390. * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
  4391. 2011-06-30 Andrew Burgess <aburgess@broadcom.com>
  4392. * MAINTAINERS (Write After Approval): Add myself to the list.
  4393. 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
  4394. Disable epilogue unwinders on recent GCCs.
  4395. * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
  4396. initialize it, return 0 on EPILOGUE_UNWIND_VALID.
  4397. * dwarf2read.c (process_full_comp_unit): Initialize
  4398. EPILOGUE_UNWIND_VALID.
  4399. * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
  4400. initialize it, return 0 on EPILOGUE_UNWIND_VALID.
  4401. * symtab.h (struct symtab): New field epilogue_unwind_valid.
  4402. 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
  4403. Code cleanup - reformatting.
  4404. * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
  4405. (producer_is_gcc_ge_4): ... here, change the return value.
  4406. (process_full_comp_unit): New variable gcc_4_minor, adjust the value
  4407. interpretation.
  4408. 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
  4409. Fix non-only rename list for Fortran modules import.
  4410. * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
  4411. cp_add_using_directive caller.
  4412. (cp_add_using_directive): New parameter excludes, describe it. New
  4413. variables ix and param. Compare if also excludes match. Allocate NEW
  4414. with variable size, initialize EXCLUDES there.
  4415. (cp_lookup_symbol_imports): New variable excludep, test
  4416. current->EXCLUDES with it.
  4417. * cp-support.h: Include vec.h.
  4418. (struct using_direct): New field excludes, describe it.
  4419. (DEF_VEC_P (const_char_ptr)): New.
  4420. (cp_add_using_directive): New parameter excludes.
  4421. * defs.h (const_char_ptr): New typedef.
  4422. * dwarf2read.c (read_import_statement): New variables child_die,
  4423. excludes and cleanups, read in excludes.
  4424. (read_namespace): Adjust the cp_add_using_directive caller.
  4425. 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
  4426. Code cleanup.
  4427. * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
  4428. negative comparisons.
  4429. 2011-06-29 André Pönitz <andre.poenitz@nokia.com>
  4430. * mi/mi-main.c (mi_cmd_list_features): Emit
  4431. breakpoint-notifications.
  4432. 2011-06-29 Tom Tromey <tromey@redhat.com>
  4433. PR fortran/10036:
  4434. * valprint.h (generic_emit_char, generic_printstr): Declare.
  4435. * valprint.c (wchar_printable, append_string_as_wide)
  4436. (print_wchar): Move from c-lang.c.
  4437. (generic_emit_char): New function; mostly taken from c_emit_char.
  4438. (generic_printstr): New function; mostly taken from c_printstr.
  4439. * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
  4440. represented as arrays.
  4441. <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
  4442. type.
  4443. * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
  4444. identically to TYPE_CODE_INT.
  4445. * f-lang.c (f_get_encoding): New function.
  4446. (f_emit_char): Use generic_emit_char.
  4447. (f_printchar): Replace comment.
  4448. (f_printstr): Use generic_printstr.
  4449. * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
  4450. "character" types specially.
  4451. <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
  4452. for Fortran.
  4453. * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
  4454. Move to valprint.c
  4455. (c_emit_char): Call generic_emit_char.
  4456. (c_printstr): Call generic_printstr.
  4457. 2011-06-29 Gary Benson <gbenson@redhat.com>
  4458. * breakpoint.c (bpstat_what): Removed duplicated case.
  4459. 2011-06-28 Tom Tromey <tromey@redhat.com>
  4460. * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
  4461. 2011-06-27 Tom Tromey <tromey@redhat.com>
  4462. * valops.c (find_overload_match): Call do_cleanups before early
  4463. return.
  4464. * top.c (execute_command): Call do_cleanups before early return.
  4465. (command_loop): Likewise.
  4466. * stack.c (backtrace_command): Make a null cleanup early. Don't
  4467. conditionally call do_cleanups.
  4468. * python/py-value.c (TRY_CATCH): Move cleanup handling into
  4469. TRY_CATCH.
  4470. * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
  4471. so cleanups are always run.
  4472. * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
  4473. * findcmd.c (parse_find_args): Call do_cleanups on early return
  4474. path.
  4475. * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
  4476. Don't conditionally call do_cleanups.
  4477. * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
  4478. later.
  4479. 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
  4480. * MAINTAINERS (Write After Approval): Use default email address.
  4481. 2011-06-27 Joel Brobecker <brobecker@adacore.com>
  4482. * MAINTAINERS (Write After Approval): Add Eric Botcazou.
  4483. 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
  4484. * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
  4485. saved_regs_mask and copied_regs_mask fields.
  4486. (sparc_record_save_insn): New prototype.
  4487. * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
  4488. (sparc_record_save_insn): New function.
  4489. (sparc_analyze_prologue): Add head comment. Recognize store insns
  4490. of call-saved registers. Use OFFSET consistently. Recognize flat
  4491. frames and cache their settings.
  4492. (sparc32_skip_prologue): Handle flat frames.
  4493. (sparc_frame_cache): Add frame_offset to the base address.
  4494. (sparc32_frame_cache): Adjust to new frame description.
  4495. (sparc32_frame_prev_register): Likewise.
  4496. * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
  4497. * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
  4498. * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
  4499. * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
  4500. frame by calling sparc_record_save_insn.
  4501. * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
  4502. * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
  4503. * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
  4504. 2011-06-27 Tristan Gingold <gingold@adacore.com>
  4505. * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
  4506. field by map_addr and map_len.
  4507. (dwarf2_read_section): Adjust for the new bfd_mmap api.
  4508. (munmap_section_buffer): Likewise.
  4509. 2011-06-24 Tom Tromey <tromey@redhat.com>
  4510. * varobj.c (update_dynamic_varobj_children): Make 'name' const.
  4511. * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
  4512. * python/python.c (gdbpy_parameter): Make 'arg' const.
  4513. (execute_gdb_command): Likewise.
  4514. (gdbpy_decode_line): Likewise. Copy it.
  4515. (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
  4516. (gdbpy_write): Make 'arg' const.
  4517. * python/py-type.c (typy_lookup_typename): Make 'type_name'
  4518. const.
  4519. (gdbpy_lookup_type): Likewise.
  4520. * python/py-prettyprint.c (print_children): Make 'name' const.
  4521. * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
  4522. * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
  4523. Py_ssize_t.
  4524. * python/py-function.c (fnpy_init): Make 'name' const.
  4525. * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
  4526. (gdbpy_string_to_argv): Make 'input' const.
  4527. * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
  4528. it.
  4529. * gdbtypes.h (lookup_typename): Update.
  4530. * gdbtypes.c (lookup_typename): Make 'name' const.
  4531. (lookup_struct): Likewise.
  4532. (lookup_union): Likewise.
  4533. (lookup_enum): Likewise.
  4534. 2011-06-24 Tom Tromey <tromey@redhat.com>
  4535. * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
  4536. gdb_thread_db.h. Move all common/ entries to be together.
  4537. (TAGS): Don't depend on DEPFILES.
  4538. 2011-06-23 Yao Qi <yao@codesourcery.com>
  4539. * infrun.c (start_remote): Move call init_wait_for_inferior to ...
  4540. * remote.c (remote_start_remote): ... here.
  4541. * monitor.c (monitor_open): ... here.
  4542. 2011-06-23 Andrew Burgess <aburgess@broadcom.com>
  4543. * gdbtypes.c (append_composite_type_field_aligned): Fix
  4544. calculation of bit position based on alignment.
  4545. 2011-06-22 Pedro Alves <pedro@codesourcery.com>
  4546. * breakpoint.c (bpstat_stop_status): Call the check_status
  4547. breakpoint_ops method.
  4548. (print_one_breakpoint_location): Also print the condition for Ada
  4549. exception catchpoints.
  4550. (allocate_bp_location): New, factored out from
  4551. allocate_bp_location.
  4552. (allocate_bp_location): Adjust. Call the owner breakpoint's
  4553. allocate_location method, if there is one.
  4554. (free_bp_location): Call the locations's dtor method, if there is
  4555. one.
  4556. (init_raw_breakpoint_without_location): New breakpoint_ops
  4557. parameter. Use it.
  4558. (set_raw_breakpoint_without_location): Adjust.
  4559. (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
  4560. (set_raw_breakpoint): Adjust.
  4561. (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
  4562. (catch_syscall_breakpoint_ops): Install NULL allocate_location,
  4563. re_set and check_status methods.
  4564. (init_catchpoint): Don't memset, initialize thread, addr_string
  4565. and enable_state. Pass the ops down to init_raw_breakpoint.
  4566. (install_catchpoint): Rename to ...
  4567. (install_breakpoint): ... this, and make extern.
  4568. (create_fork_vfork_event_catchpoint): Adjust.
  4569. (catch_exec_breakpoint_ops): Install NULL allocate_location,
  4570. re_set and check_status methods.
  4571. (create_syscall_event_catchpoint): Adjust.
  4572. (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
  4573. (masked_watchpoint_breakpoint_ops): Install NULL
  4574. allocate_location, re_set and check_status methods.
  4575. (catch_exec_command_1): Adjust.
  4576. (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
  4577. re_set and check_status methods.
  4578. (create_ada_exception_breakpoint): Rename to ...
  4579. (init_ada_exception_breakpoint): ... this. Add a struct
  4580. breakpoint parameter, and delete the exp_string, cond_string and
  4581. cond parameters. Use init_raw_breakpoint, and don't install or
  4582. mention the breakpoint yet. Don't clear breakpoint fields that
  4583. init_raw_breakpoint already clears.
  4584. (re_set_breakpoint): Delete, split into ...
  4585. (breakpoint_re_set_default, prepare_re_set_context): ... these new
  4586. functions.
  4587. (breakpoint_re_set_one): Call the breakpoint's
  4588. breakpoint_ops->re_set implementation, if there's one. Adjust.
  4589. * breakpoint.h: Forward declare struct bpstats and struct bp_location.
  4590. (struct bp_location_ops): New type.
  4591. (struct bp_location): New field `ops'.
  4592. (struct breakpoint_ops): New `allocate_location', `re_set' and
  4593. `check_status' fields. Make `breakpoint_hit''s description match
  4594. reality.
  4595. (init_bp_location): Declare.
  4596. (breakpoint_re_set_default): Declare.
  4597. (create_ada_exception_breakpoint): Rename to ...
  4598. (init_ada_exception_breakpoint): ... this. Add a struct
  4599. breakpoint parameter, and delete the exp_string, cond_string and
  4600. cond parameters.
  4601. (install_breakpoint): Declare.
  4602. * ada-lang.c: Include exceptions.h.
  4603. <Ada exceptions description>: Update.
  4604. (struct ada_catchpoint_location): New type.
  4605. (ada_catchpoint_location_dtor): New function.
  4606. (ada_catchpoint_location_ops): New global.
  4607. (ada_catchpoint): New type.
  4608. (create_excep_cond_exprs): New function.
  4609. (dtor_exception, allocate_location_exception, re_set_exception)
  4610. (should_stop_exception, check_status_exception): New functions.
  4611. (print_one_exception, print_mention_exception)
  4612. (print_recreate_exception): Adjust.
  4613. (dtor_catch_exception, allocate_location_catch_exception)
  4614. (re_set_catch_exception, check_status_catch_exception): New
  4615. functions.
  4616. (catch_exception_breakpoint_ops): Install them.
  4617. (dtor_catch_exception_unhandled)
  4618. (allocate_location_catch_exception_unhandled)
  4619. (re_set_catch_exception_unhandled)
  4620. (check_status_catch_exception_unhandled): New functions.
  4621. (catch_exception_unhandled_breakpoint_ops): Install them.
  4622. (dtor_catch_assert, allocate_location_catch_assert)
  4623. (re_set_catch_assert, check_status_catch_assert): New functions.
  4624. (catch_assert_breakpoint_ops): Install them.
  4625. (ada_exception_catchpoint_p): Delete.
  4626. (catch_ada_exception_command_split)
  4627. (ada_exception_catchpoint_cond_string): Rename exp_string
  4628. parameter to excep_string. Adjust.
  4629. (ada_parse_catchpoint_condition): Delete.
  4630. (ada_exception_sal): Rename the exp_string parameter to
  4631. excep_string. Delete the cond_string and cond parameters.
  4632. Adjust.
  4633. (ada_decode_exception_location): Rename the exp_string parameter
  4634. to excep_string. Delete the cond_string and cond parameters.
  4635. Adjust.
  4636. (create_ada_exception_catchpoint): New function.
  4637. (catch_ada_exception_command, ada_decode_assert_location)
  4638. (catch_assert_command): Adjust.
  4639. * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
  4640. 2011-06-22 Pedro Alves <pedro@codesourcery.com>
  4641. * ada-lang.c: Include arch-utils.h.
  4642. (ada_decode_exception_location): Make static.
  4643. (catch_ada_exception_command): Moved here from breakpoint.c.
  4644. (ada_decode_assert_location): Make static.
  4645. (catch_assert_command): Moved here from breakpoint.c.
  4646. (_initialize_ada_lang): Install the exception and assert
  4647. catchpoint commands here.
  4648. * ada-lang.h (ada_decode_exception_location)
  4649. (ada_decode_assert_location): Delete declarations.
  4650. * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
  4651. breakpoint.h.
  4652. (create_ada_exception_breakpoint): Make extern.
  4653. (catch_ada_exception_command, catch_assert_command): Moved to
  4654. ada-lang.c.
  4655. (add_catch_command): Make extern.
  4656. (_initilize_breakpoint): Don't install the exception and assert
  4657. catchpoint commands here.
  4658. * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
  4659. breakpoint.c
  4660. (add_catch_command, create_ada_exception_breakpoint): Declare.
  4661. 2011-06-22 Pedro Alves <pedro@codesourcery.com>
  4662. * breakpoint.c (init_raw_breakpoint_without_location): Don't add
  4663. the breakpoint to the breakpoint chain here.
  4664. (set_raw_breakpoint_without_location): Add the breakpoint to the
  4665. breakpoint chain here.
  4666. (init_raw_breakpoint): Adjust comments.
  4667. (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
  4668. here.
  4669. (init_catchpoint): Don't set the catchpoint's breakpoint number
  4670. here.
  4671. (install_catchpoint): New function.
  4672. (create_fork_vfork_event_catchpoint)
  4673. (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
  4674. use install_catchpoint.
  4675. 2011-06-22 Pedro Alves <pedro@codesourcery.com>
  4676. * breakpoint.c (create_catchpoint_without_mention)
  4677. (create_catchpoint): Delete.
  4678. 2011-06-22 Pedro Alves <pedro@codesourcery.com>
  4679. * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
  4680. * breakpoint.c (init_raw_breakpoint_without_location): Remove
  4681. reference to exec_pathname.
  4682. (struct exec_catchpoint): New type.
  4683. (dtor_catch_exec): New function.
  4684. (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
  4685. (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
  4686. (catch_exec_command_1): Adjust to use init_catchpoint.
  4687. (delete_breakpoint): Remove reference to exec_pathname.
  4688. 2011-06-22 Pedro Alves <pedro@codesourcery.com>
  4689. * breakpoint.h (struct breakpoint_ops): New field `dtor'.
  4690. (struct breakpoint): Delete field `syscalls_to_be_caught'.
  4691. * breakpoint.c (init_raw_breakpoint_without_location): Remove
  4692. reference to syscalls_to_be_caught.
  4693. (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
  4694. NULL `dtor'.
  4695. (struct syscall_catchpoint): New type.
  4696. (dtor_catch_syscall): New function.
  4697. (insert_catch_syscall, remove_catch_syscall)
  4698. (breakpoint_hit_catch_syscall, print_one_catch_syscall)
  4699. (print_recreate_catch_syscall): Adjust.
  4700. (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
  4701. (catch_exec_breakpoint_ops): Install a NULL `dtor'.
  4702. (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
  4703. (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
  4704. (masked_watchpoint_breakpoint_ops)
  4705. (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
  4706. (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
  4707. there is one. Remove references to syscalls_to_be_caught.
  4708. (catching_syscall_number): Adjust.
  4709. * ada-lang.c (catch_exception_breakpoint_ops)
  4710. (catch_exception_unhandled_breakpoint_ops)
  4711. (catch_assert_breakpoint_ops): Install a NULL `dtor'.
  4712. 2011-06-22 Pedro Alves <pedro@codesourcery.com>
  4713. * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
  4714. field.
  4715. * breakpoint.c (init_raw_breakpoint_without_location): Remove
  4716. reference to forked_inferior_pid.
  4717. (struct fork_catchpoint): New type.
  4718. (breakpoint_hit_catch_fork, print_it_catch_fork)
  4719. (print_one_catch_fork, breakpoint_hit_catch_vfork)
  4720. (print_it_catch_vfork, print_one_catch_vfork): Adjust.
  4721. (create_fork_vfork_event_catchpoint): Adjust to use
  4722. init_catchpoint.
  4723. 2011-06-22 Pedro Alves <pedro@codesourcery.com>
  4724. * breakpoint.c (add_to_breakpoint_chain)
  4725. (init_raw_breakpoint_without_location): New functions, factored
  4726. out from ...
  4727. (set_raw_breakpoint_without_location): ... this one.
  4728. (init_raw_breakpoint): New function, factored out from
  4729. set_raw_breakpoint and adjusted to use
  4730. init_raw_breakpoint_without_location.
  4731. (set_raw_breakpoint): Adjust.
  4732. (init_catchpoint): New function, factored out from
  4733. create_catchpoint_without_mention and adjusted to use
  4734. init_raw_breakpoint.
  4735. (create_catchpoint_without_mention): Adjust.
  4736. 2011-06-22 Tom Tromey <tromey@redhat.com>
  4737. * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
  4738. argument of 0 specially.
  4739. 2011-06-22 Yao Qi <yao@codesourcery.com>
  4740. * infrun.c (handle_inferior_event): Remove write-only local variable
  4741. `sw_single_step_trap_p'.
  4742. 2011-06-20 Tom Tromey <tromey@redhat.com>
  4743. * symtab.c (lookup_language_this): End loop if block is NULL.
  4744. 2011-06-17 Tom Tromey <tromey@redhat.com>
  4745. * valops.c (value_of_this): Use lookup_language_this.
  4746. * symtab.h (lookup_language_this): Declare.
  4747. * symtab.c (lookup_language_this): New function.
  4748. (lookup_symbol_aux): Use lookup_language_this.
  4749. * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
  4750. 2011-06-17 Tom Tromey <tromey@redhat.com>
  4751. * value.h (value_of_this): Update.
  4752. (value_of_local): Remove.
  4753. * valops.c (value_of_this): Rename from value_of_local. Change
  4754. parameters.
  4755. * p-exp.y (exp): Update.
  4756. (variable): Likewise.
  4757. * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
  4758. 2011-06-17 Tom Tromey <tromey@redhat.com>
  4759. * valops.c (value_of_local): Complain if NAME is NULL.
  4760. * std-operator.def (OP_OBJC_SELF): Remove.
  4761. * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
  4762. * objc-exp.y (name_not_typename): Use OP_THIS.
  4763. * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
  4764. name for "this".
  4765. <OP_OBJC_SELF>: Remove.
  4766. * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
  4767. 2011-06-16 Tristan Gingold <gingold@adacore.com>
  4768. * python/py-events.h (gdb_py_events): Make it extern.
  4769. * python/py-evtregistry.c (gdb_py_events): Declare.
  4770. 2011-06-16 Hui Zhu <teawater@gmail.com>
  4771. * remote.c (remote_trace_set_readonly_regions): Add check for
  4772. remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
  4773. output warning.
  4774. 2011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
  4775. * arm-linux-tdep.c: Include "auxv.h".
  4776. (AT_HWCAP): Define.
  4777. (ARM_LINUX_SIZEOF_VFP): Define.
  4778. (arm_linux_supply_vfp): New function.
  4779. (arm_linux_collect_vfp): Likewise.
  4780. (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
  4781. (arm_linux_fpa_regset_sections): New variable.
  4782. (arm_linux_vfp_regset_sections): Likewise.
  4783. (arm_linux_core_read_description): New function.
  4784. (arm_linux_init_abi): Install arm_linux_core_read_description and
  4785. arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
  4786. appropriate for the architecture.
  4787. * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
  4788. (tdesc_arm_with_m): Declare.
  4789. (tdesc_arm_with_iwmmxt): Likewise.
  4790. (tdesc_arm_with_vfpv2): Likewise.
  4791. (tdesc_arm_with_vfpv3): Likewise.
  4792. (tdesc_arm_with_neon): Likewise.
  4793. * arm-linux-nat.c: Move features/*.c includes ...
  4794. * arm-tdep.c: ... here.
  4795. * arm-linux-nat.c (arm_linux_read_description): Move initializing
  4796. target description data structures ...
  4797. * arm-tdep.c (_initialize_arm_tdep): ... here.
  4798. * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
  4799. HWCAP_VFPv3D16): Move definitions ...
  4800. * arm-linux-tdep.h: ... here.
  4801. 2011-06-15 Hui Zhu <teawater@gmail.com>
  4802. * remote.c (remote_trace_set_readonly_regions): Add a check for
  4803. target_buf_size.
  4804. 2011-06-14 Tom Tromey <tromey@redhat.com>
  4805. * coffread.c (coffread_objfile): Rename from current_objfile.
  4806. * dbxread.c (dbxread_objfile): Rename from current_objfile.
  4807. * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
  4808. 2011-06-14 Tom Tromey <tromey@redhat.com>
  4809. * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
  4810. (class_symtab): Remove.
  4811. (jv_dynamics_progspace_key): New global.
  4812. (jv_per_objfile_free): Reset program space data. Update assert.
  4813. Don't clear globals.
  4814. (get_dynamics_objfile): Use and set program space data.
  4815. (get_java_class_symtab): Use get_dynamics_objfile.
  4816. (add_class_symbol): Likewise.
  4817. (java_link_class_type): Likewise.
  4818. (java_object_type, jv_clear_object_type, set_java_object_type):
  4819. Remove.
  4820. (get_java_object_type): Update. Don't cache result.
  4821. (is_object_type): Don't call set_java_object_type.
  4822. (_initialize_java_language): Don't set jv_type_objfile_data_key;
  4823. initialize jv_dynamics_progspace_key.
  4824. 2011-06-14 Tom Tromey <tromey@redhat.com>
  4825. * symtab.h (current_objfile): Don't declare.
  4826. * objfiles.h (current_objfile): Don't declare.
  4827. * objfiles.c (current_objfile): Remove.
  4828. * mdebugread.c (current_objfile): New file-scope global.
  4829. * dbxread.c (current_objfile): New file-scope global.
  4830. * coffread.c (current_objfile): New file-scope global.
  4831. 2011-06-13 Pedro Alves <pedro@codesourcery.com>
  4832. * top.h (line): Rename to ...
  4833. (saved_command_line): ... this.
  4834. (linesize): Rename to ...
  4835. (saved_command_line_size): ... this.
  4836. * top.c (line): Rename to ...
  4837. (saved_command_line): ... this.
  4838. (linesize): Rename to ...
  4839. (saved_command_line_size): ... this.
  4840. (dont_repeat, command_line_input, dont_repeat_command): Adjust.
  4841. * event-top.c (command_line_handler): Adjust.
  4842. * main.c (captured_main): Adjust.
  4843. 2011-06-12 Mark Kettenis <kettenis@gnu.org>
  4844. * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
  4845. get_frame_func instead of get_frame_pc to determine the code
  4846. address used to construct the frame ID.
  4847. (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
  4848. (i386_epilogue_frame_this_id): Likewise.
  4849. (i386_epilogue_frame_prev_register): New function.
  4850. (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
  4851. (i386_stack_tramp_frame_sniffer): Fix coding style.
  4852. (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
  4853. (i386_gdbarch_init): Fix comments.
  4854. 2011-06-12 Mark Kettenis <kettenis@gnu.org>
  4855. * i386-tdep.c (i386_match_insn_block): Use length of the proper
  4856. instruction when walking back through the instruction stream.
  4857. 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
  4858. * symtab.c (output_partial_symbol_filename): Exchange the filename and
  4859. fullname parameters order.
  4860. 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
  4861. Code cleanup.
  4862. * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
  4863. for fun.
  4864. * psymtab.c (map_symbol_filenames_psymtab)
  4865. (map_partial_symbol_filenames): Likewise.
  4866. * psymtab.h: Include symfile.h.
  4867. (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
  4868. * symfile.h (symbol_filename_ftype): New.
  4869. (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
  4870. map_symbol_filenames, clarify more the naming in comment.
  4871. 2011-06-07 Doug Evans <dje@google.com>
  4872. * cc-with-index.sh: Fix typos in comment.
  4873. Look for ../../gdb, for fullname.exp.
  4874. 2011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
  4875. Pedro Alves <pedro@codesourcery.com>
  4876. * cli/cli-cmds.c (shell_escape): Use waitpid.
  4877. * rs6000-nat.c (exec_one_dummy_insn): Likewise.
  4878. 2011-06-07 Tristan Gingold <gingold@adacore.com>
  4879. * xcoffread.c (dwarf2_xcoff_names): New variable.
  4880. (aix_process_linenos): Add a guard.
  4881. (xcoff_symfile_finish): Free dwarf2.
  4882. (xcoff_initial_scan): Add dwarf2 support.
  4883. 2011-06-06 Pedro Alves <pedro@codesourcery.com>
  4884. * infcall.c (run_inferior_call): Don't mask async. Instead force
  4885. a synchronous wait, if the target can async.
  4886. * target.h (struct target_ops): Delete to_async_mask.
  4887. (target_async_mask): Delete.
  4888. * target.c (update_current_target): Delete references to to_async_mask.
  4889. * linux-nat.c (linux_nat_async_mask_value): Delete.
  4890. (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
  4891. to linux_nat_async_mask_value.
  4892. (linux_nat_async_mask): Delete.
  4893. (linux_nat_async, linux_nat_close): Remove references to
  4894. linux_nat_async_mask_value.
  4895. * record.c (record_async_mask_value): Delete.
  4896. (record_async): Remove references to record_async_mask_value.
  4897. (record_async_mask): Delete.
  4898. (record_can_async_p, record_is_async_p): Remove references to
  4899. record_async_mask_value.
  4900. (init_record_ops, init_record_core_ops): Remove references to
  4901. record_async_mask.
  4902. * remote.c (remote_async_mask_value): Delete.
  4903. (init_remote_ops): Remove reference to remote_async_mask.
  4904. (remote_can_async_p, remote_is_async_p): Remove references to
  4905. remote_async_mask_value.
  4906. (remote_async): Remove references to remote_async_mask_value.
  4907. (remote_async_mask): Delete.
  4908. * infrun.c (fetch_inferior_event): Don't claim registers changed
  4909. if the current thread is already not executing.
  4910. 2011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
  4911. From Stephen Kitt <steve@sk2.org>
  4912. * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
  4913. gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
  4914. 2011-06-03 Joel Brobecker <brobecker@adacore.com>
  4915. * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
  4916. the case where ADDR_SIZE is different from TYPE_LENGTH (type).
  4917. 2011-06-03 Tom Tromey <tromey@redhat.com>
  4918. * python/py-inferior.c (python_inferior_exit): Use inferior's exit
  4919. code fields.
  4920. * python/py-exitedevent.c (create_exited_event_object): Change
  4921. type of 'exit_code'. Optionally add exit_code attribute.
  4922. (emit_exited_event): Change type of 'exit_code'.
  4923. * python/py-event.h (emit_exited_event): Update.
  4924. * mi/mi-interp.c (mi_inferior_exit): Print exit code.
  4925. * infrun.c (handle_inferior_event): Set exit code fields on
  4926. inferior.
  4927. * inferior.h (struct inferior) <has_exit_code, exit_code>: New
  4928. fields.
  4929. * inferior.c (exit_inferior_1): Initialize new fields.
  4930. 2011-06-03 Tom Tromey <tromey@redhat.com>
  4931. * dwarf2expr.c (get_signed_type): New function.
  4932. (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
  4933. 2011-06-02 Keith Seitz <keiths@redhat.com>
  4934. * objc-lang.c (find_methods): Increment objfile_csym earlier.
  4935. 2011-06-02 Pedro Alves <pedro@codesourcery.com>
  4936. * top.h (simplified_command_loop): Delete declaration.
  4937. 2011-06-01 Mike Frysinger <vapier@gentoo.org>
  4938. * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
  4939. gdb_sysroot to the "len" variable. Append both to "arg_buf".
  4940. 2011-06-01 Yao Qi <yao@codesourcery.com>
  4941. * objfiles.h (obj_section_addr): Update reference to objfile from
  4942. `abfd' to `obfd'.
  4943. (obj_section_endaddr): Likewise.
  4944. 2011-06-01 Daniel Jacobowitz <drow@false.org>
  4945. * MAINTAINERS: Update my email address and affiliation. Also
  4946. update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
  4947. 2010-05-31 Keith Seitz <keiths@redhat.com>
  4948. PR c++/12750
  4949. * linespec.c (get_search_block): New function.
  4950. (find_methods): Add FILE_SYMTATB parameter and use it and
  4951. get_search_block to pass an appropriate block to
  4952. lookup_symbol_in_namespace.
  4953. (decode_line_1): Record if *ARGPTR is single-quote enclosed.
  4954. Check if *ARGPTR starts with a filename first.
  4955. If it does, call locate_first_half again to locate the next
  4956. "first half" of the linespec.
  4957. Pass FILE_SYMTATB to decode_objc and decode_compound.
  4958. Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
  4959. (locate_first_half): Stop on the first colon seen.
  4960. (decode_compound): Add FILE_SYMTAB parameter.
  4961. Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
  4962. (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
  4963. get_search_block with lookup_symbol.
  4964. (find_method): Add FILE_SYMTAB parameter and pass it to
  4965. find_methods.
  4966. (decode_objc): Use get_search_block.
  4967. 2010-05-31 Keith Seitz <keiths@redhat.com>
  4968. PR symtab/12704
  4969. * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
  4970. (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
  4971. and CP_ANONYMOUS_NAMESPACE_LEN.
  4972. (cp_is_anonymous): Likewise.
  4973. * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
  4974. (CP_ANONYMOUS_NAMESPACE_LEN): Define.
  4975. * dwarf2read.c (namespace_name): Likewise.
  4976. (fixup_partial_die): Likewise.
  4977. * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
  4978. seen in the input, keep it.
  4979. 2011-05-30 Pedro Alves <pedro@codesourcery.com>
  4980. * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
  4981. * inf-loop.h (inferior_event_handler_wrapper): Delete.
  4982. * inf-loop.c (inferior_event_handler_wrapper): Delete.
  4983. (inferior_event_handler): Don't handle INF_QUIT_REQ.
  4984. * remote.c (_initialize_remote): Register
  4985. async_remote_interrupt_twice directly as
  4986. sigint_remote_twice_token event.
  4987. 2011-05-30 Pedro Alves <pedro@codesourcery.com>
  4988. * target.h (enum inferior_event_type): Delete INF_ERROR.
  4989. * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
  4990. 2011-05-30 Pedro Alves <pedro@codesourcery.com>
  4991. * interps.c (interp_set): Don't cancel continuations.
  4992. 2011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
  4993. * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
  4994. 2011-05-30 Pedro Alves <pedro@codesourcery.com>
  4995. * continuations.h (continuation_ftype): Add `err' parameter.
  4996. Document parameters.
  4997. (do_all_continuations, do_all_continuations_thread)
  4998. (do_all_intermediate_continuations)
  4999. (do_all_intermediate_continuations_thread)
  5000. (do_all_inferior_continuations): Add `err' parameter.
  5001. * continuations.c (do_my_continuations_1, do_my_continuations)
  5002. (do_all_inferior_continuations, do_all_continuations_ptid)
  5003. (do_all_continuations_thread_callback)
  5004. (do_all_continuations_thread, do_all_continuations)
  5005. (do_all_intermediate_continuations_thread_callback)
  5006. (do_all_intermediate_continuations_thread)
  5007. (do_all_intermediate_continuations): Add `err' parameter, and pass
  5008. it down all the way to the continuations proper.
  5009. * inf-loop.c (inferior_event_handler): If fetching an inferior
  5010. event throws an error, don't pop the target, and still call the
  5011. continuations, but with `err' set. Adjust all other continuation
  5012. calls.
  5013. * breakpoint.c (until_break_command_continuation): Add `err'
  5014. parameter.
  5015. * infcmd.c (step_1_continuation): Add `err' parameter. Don't
  5016. issue another step if `err' is set.
  5017. (struct until_next_continuation_args): New.
  5018. (until_next_continuation): Add `err' parameter. Adjust.
  5019. (until_next_command): Adjust.
  5020. (struct finish_command_continuation_args): Add `thread' field.
  5021. (finish_command_continuation): Add `err' parameter. Handle it.
  5022. (finish_forward): Adjust.
  5023. (attach_command_continuation): Add `err' parameter. Handle it.
  5024. * infrun.c (infrun_thread_stop_requested_callback): Adjust to
  5025. cancel the continuations.
  5026. * interps.c (interp_set): Adjust to cancel the continuations.
  5027. * thread.c (clear_thread_inferior_resources): Adjust to cancel the
  5028. continuations rather than discarding.
  5029. (free_thread): Don't clear thread inferior resources here.
  5030. (delete_thread_1): Do it here instead. And do it before removing
  5031. the thread from the threads list. Tag the thread as exited before
  5032. clearing thread inferior resources.
  5033. 2011-05-30 Joel Brobecker <brobecker@adacore.com>
  5034. * infcall.c (call_function_by_hand): Rephrase error message.
  5035. 2011-05-27 Pedro Alves <pedro@codesourcery.com>
  5036. * defs.h (struct thread_info, struct inferior): Delete forward
  5037. declarations.
  5038. * breakpoint.h (struct thread_info): New forward declaration.
  5039. * observer.sh (struct inferior): New forward declaration.
  5040. * python/python-internal.h (struct inferior): New forward
  5041. declaration.
  5042. 2011-05-27 Pedro Alves <pedro@codesourcery.com>
  5043. * defs.h (struct continuation, continuation_ftype)
  5044. (continuation_free_arg_ftype, add_continuation)
  5045. (do_all_continuations, do_all_continuations_thread)
  5046. (discard_all_continuations, discard_all_continuations_thread)
  5047. (add_intermediate_continuation, do_all_intermediate_continuations)
  5048. (do_all_intermediate_continuations_thread)
  5049. (discard_all_intermediate_continuations)
  5050. (discard_all_intermediate_continuations_thread)
  5051. (add_inferior_continuation, do_all_inferior_continuations)
  5052. (discard_all_inferior_continuations): Move to ...
  5053. * continuations.h: ... this new file.
  5054. * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
  5055. infcmd.c, inferior.c, infrun.c, interps.c: Include
  5056. continuations.h.
  5057. 2011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
  5058. Doug Evans <dje@google.com>
  5059. Fix PR 10970, PR 12702.
  5060. * linux-nat.c (linux_lwp_is_zombie): New function.
  5061. (wait_lwp): Initialize status. New variable prev_mask. Block signals.
  5062. Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
  5063. 2011-05-27 Pedro Alves <pedro@codesourcery.com>
  5064. * defs.h (continuation_ftype, continuation_free_arg_ftype): New
  5065. typedefs.
  5066. (add_continuation, add_intermediate_continuation)
  5067. (add_inferior_continuation): Use them.
  5068. * continuations.c (struct continuation): Use them.
  5069. (make_continuation_ftype): Delete.
  5070. (make_continuation, add_inferior_continuation, add_continuation)
  5071. (add_intermediate_continuation): Use continuation_ftype and
  5072. continuation_free_arg_ftype. Rename parameters to shorter names.
  5073. 2011-05-27 Pedro Alves <pedro@codesourcery.com>
  5074. * continuations.c (make_continuation): Make it return void.
  5075. (do_my_continuations): Rename to ...
  5076. (do_my_continuations_1): ... this. Remove old_chain parameter and
  5077. adjust.
  5078. (do_my_continuations): New.
  5079. (discard_my_continuations): Rename to ...
  5080. (discard_my_continuations_1): ... this. Remove old_chain
  5081. parameter and adjust.
  5082. (discard_my_continuations): New.
  5083. (add_inferior_continuation): Simplify.
  5084. (do_all_inferior_continuations): Reimplement on top
  5085. do_my_continuations.
  5086. (discard_all_inferior_continuations): Simplify.
  5087. (add_continuation): Simplify.
  5088. (do_all_continuations_ptid): Simplify.
  5089. (discard_all_continuations_thread_callback): Simplify.
  5090. (add_intermediate_continuation): Simplify.
  5091. (discard_all_intermediate_continuations_thread_callback):
  5092. Simplify.
  5093. 2011-05-27 Pedro Alves <pedro@codesourcery.com>
  5094. * utils.c (struct continuation, add_continuation)
  5095. (add_inferior_continuation)
  5096. (do_all_inferior_continuations, discard_all_inferior_continuations)
  5097. (restore_thread_cleanup, do_all_continuations_ptid)
  5098. (do_all_continuations_thread_callback)
  5099. (do_all_continuations_thread, do_all_continuations)
  5100. (discard_all_continuations_thread_callback)
  5101. (discard_all_continuations_thread, discard_all_continuations)
  5102. (add_intermediate_continuation)
  5103. (do_all_intermediate_continuations_thread_callback)
  5104. (do_all_intermediate_continuations_thread)
  5105. (do_all_intermediate_continuations)
  5106. (discard_all_intermediate_continuations_thread_callback)
  5107. (discard_all_intermediate_continuations_thread)
  5108. (discard_all_intermediate_continuations): Move to ...
  5109. * continuations.c: ... this new file, and adjust to no longer
  5110. implement continuations on top of cleanups.
  5111. * Makefile.in (SFILES): Add continuations.c.
  5112. (COMMON_OBS): Add continuations.o.
  5113. 2011-05-26 Pedro Alves <pedro@codesourcery.com>
  5114. * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
  5115. * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
  5116. Internal error on invalid values.
  5117. * reverse.c: Don't handle EXEC_ERROR.
  5118. * mi/mi-main.c: Don't handle EXEC_ERROR.
  5119. 2011-05-26 Pedro Alves <pedro@codesourcery.com>
  5120. * record.c: Include event-loop.h, inf-loop.h.
  5121. (record_beneath_to_async): New global.
  5122. (tmp_to_async): New global.
  5123. (record_async_inferior_event_token): New global.
  5124. (record_open_1): Don't error out if async is enabled.
  5125. (record_open): Handle to_async. Create an async event source in
  5126. the event loop.
  5127. (record_close): Delete the async event source.
  5128. (record_resumed): New global.
  5129. (record_execution_dir): New global.
  5130. (record_resume, record_core_resume): Set them. Register the
  5131. target on the event loop.
  5132. (record_wait): Rename to ...
  5133. (record_wait_1): ... this. Add more debug output. Handle
  5134. TARGET_WNOHANG, and the target beneath returning
  5135. TARGET_WAITKIND_IGNORE.
  5136. (record_wait): Reimplement on top of record_wait_1.
  5137. (record_async_mask_value): New global.
  5138. (record_async, record_async_mask, record_can_async_p)
  5139. (record_is_async_p, record_execution_direction): New functions.
  5140. (init_record_ops, init_record_core_ops): Install new methods.
  5141. * infrun.c (fetch_inferior_event): Temporarily switch the global
  5142. execution direction to the direction the target was going.
  5143. (execution_direction): Change type to int.
  5144. * target.c (default_execution_direction): New function.
  5145. (update_current_target): Inherit and de_fault
  5146. to_execution_direction.
  5147. * target.h (struct target_ops) <to_execution_direction>: New
  5148. field.
  5149. (target_execution_direction): New macro.
  5150. * inferior.h (execution_direction): Change type to int.
  5151. 2011-05-26 Pedro Alves <pedro@codesourcery.com>
  5152. * infcall.c (call_function_by_hand): Don't allow calling functions
  5153. in reverse execution mode.
  5154. 2011-05-26 Pedro Alves <pedro@codesourcery.com>
  5155. * infcmd.c (finish_command): Allow async finish in reverse.
  5156. 2011-05-26 Yao Qi <yao@codesourcery.com>
  5157. * gdb_thread_db.h: Delete. Move to ...
  5158. * common/gdb_thread_db.h: ... here.
  5159. 2011-05-26 Pedro Alves <pedro@codesourcery.com>
  5160. * infcmd.c (finish_backward): Set a step-resume breakpoint at the
  5161. function's entry point instead of a manually managed momentary
  5162. breakpoint, and only ever issue one proceed call.
  5163. * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
  5164. doing a reverse-finish, switch to stepi mode, to do another step.
  5165. (insert_step_resume_breakpoint_at_sal): Make public.
  5166. (normal_stop): No need to save function value return registers if
  5167. going reverse.
  5168. * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
  5169. 2011-05-26 Pedro Alves <pedro@codesourcery.com>
  5170. * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
  5171. (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
  5172. before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
  5173. at the end.
  5174. * breakpoint.c (update_breakpoints_after_exec): Also delete hp
  5175. step-resume breakpoints.
  5176. (print_it_typical): Handle bp_hp_step_resume.
  5177. (bpstat_what): Ditto.
  5178. (bptype_string): Ditto.
  5179. (print_one_breakpoint_location): Ditto.
  5180. (allocate_bp_location): Ditto.
  5181. (mention): Ditto.
  5182. (breakpoint_re_set_one): Ditto.
  5183. * infrun.c (handle_inferior_event): Adjust. Split
  5184. BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
  5185. BPSTAT_WHAT_HP_STEP_RESUME.
  5186. (insert_step_resume_breakpoint_at_sal): Rename to ...
  5187. (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
  5188. parameter. Handle it.
  5189. (insert_step_resume_breakpoint_at_sal): Reimplement on top of
  5190. insert_step_resume_breakpoint_at_sal_1.
  5191. (insert_step_resume_breakpoint_at_frame): Rename to ...
  5192. (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
  5193. set a high-priority step-resume breakpoint.
  5194. (insert_step_resume_breakpoint_at_frame): Adjust comment.
  5195. (insert_step_resume_breakpoint_at_caller): Ditto.
  5196. 2011-05-26 Pedro Alves <pedro@codesourcery.com>
  5197. * breakpoint.c (iterate_over_related_breakpoints): New.
  5198. (do_map_delete_breakpoint): New.
  5199. (delete_command): Pass do_map_delete_breakpoint to
  5200. map_breakpoint_numbers.
  5201. (do_disable_breakpoint): New.
  5202. (do_map_disable_breakpoint): Iterate over the breakpoint's related
  5203. breakpoints.
  5204. (do_enable_breakpoint): Rename to ...
  5205. (enable_breakpoint_disp): ... this.
  5206. (enable_breakpoint): Adjust.
  5207. (do_enable_breakpoint): New.
  5208. (enable_once_breakpoint): Delete.
  5209. (do_map_enable_breakpoint): New.
  5210. (do_map_enable_once_breakpoint): New.
  5211. (enable_once_command, enable_delete_command)
  5212. (delete_trace_command): Iterate over the breakpoint's related
  5213. breakpoints.
  5214. 2011-05-26 Pedro Alves <pedro@codesourcery.com>
  5215. * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
  5216. for ALPHA_ZERO_REGNUM.
  5217. (alpha_supply_int_regs): Explicitly supply zero as the value for
  5218. ALPHA_ZERO_REGNUM in the register cache.
  5219. * alpha-nat.c (fetch_osf_core_registers): Ditto.
  5220. 2011-05-26 Yao Qi <yao@codesourcery.com>
  5221. * gdb_thread_db.h: Remove HAVE_UINTPTR_T.
  5222. 2011-05-26 Tristan Gingold <gingold@adacore.com>
  5223. * symfile.h (struct dwarf2_section_names): New type.
  5224. (struct dwarf2_debug_sections): New type.
  5225. (dwarf2_has_info): Add parameter.
  5226. * dwarf2read.c (dwarf2_elf_names): New variable.
  5227. (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
  5228. (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
  5229. (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
  5230. (dwarf2_has_info): Add names parameter. Pass names
  5231. to dwarf2_locate_sections.
  5232. (section_is_p): Rewrite using the names parameter.
  5233. (dwarf2_locate_sections): Use section names from the names parameter.
  5234. * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
  5235. * elfread.c (read_psyms): Ditto.
  5236. * machoread.c (macho_symfile_read): Ditto.
  5237. 2011-05-25 Andreas Schwab <schwab@redhat.com>
  5238. PR gdb/8677
  5239. * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
  5240. 2011-05-24 Keith Seitz <keiths@redhat.com>
  5241. PR breakpoint/12803
  5242. * linespec.c (keep_name_info): Add handling for "volatile" keyword.
  5243. (decode_compound): Unconditionally call keep_name_info.
  5244. 2011-05-24 Pedro Alves <pedro@codesourcery.com>
  5245. * breakpoint.c (watchpoint_check): If the watchpoint went out of
  5246. scope, clear its command list.
  5247. (map_breakpoint_numbers): Don't walk the related breakpoints list
  5248. of each breakpoint.
  5249. 2011-05-24 Tom Tromey <tromey@redhat.com>
  5250. * MAINTAINERS: Move Jim Blandy to past maintainers.
  5251. 2011-05-24 Tristan Gingold <gingold@adacore.com>
  5252. * symfile.h (enum dwarf2_section_enum): New type.
  5253. (dwarf2_get_section_info): New prototype.
  5254. * dwarf2read.c (dwarf2_get_section_info): Replace parameter
  5255. section_name by sect. Use a switch to select the info.
  5256. * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
  5257. (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
  5258. 2011-05-24 Pedro Alves <pedro@codesourcery.com>
  5259. * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
  5260. shared library event breakpoint if there's no execution.
  5261. 2011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
  5262. * breakpont.c (remove_hw_watchpoints): Remove unused function.
  5263. * breakpoint.h remove_hw_watchpoints(): Remove prototype.
  5264. 2011-05-23 Tom Tromey <tromey@redhat.com>
  5265. * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
  5266. NULL.
  5267. 2011-05-23 Doug Evans <dje@google.com>
  5268. * python/lib/gdb/printing.py (register_pretty_printer): Add missing
  5269. entry for RuntimeError to doc string.
  5270. 2011-05-23 Jerome Guitton <guitton@adacore.com>
  5271. * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
  5272. sequence for probing loops.
  5273. 2011-05-23 Pedro Alves <pedro@codesourcery.com>
  5274. * infrun.c (user_visible_resume_ptid): Fix typos in describing
  5275. comment.
  5276. 2011-05-21 Mark Kettenis <kettenis@gnu.org>
  5277. * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
  5278. zero as the value for %g0 in the register cache.
  5279. * sparc-tdep.c (sparc32_supply_gregset): Likewise.
  5280. * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
  5281. 2011-05-20 Pedro Alves <pedro@codesourcery.com>
  5282. * infrun.c (proceed): Set previous_inferior_ptid here.
  5283. (init_wait_for_inferior): Initialize previous_inferior_ptid from
  5284. inferior_ptid, not null_ptid.
  5285. (wait_for_inferior): Don't initialize previous_inferior_ptid here.
  5286. (fetch_inferior_event): Nor here.
  5287. 2011-05-20 Pedro Alves <pedro@codesourcery.com>
  5288. * inf-loop.c (inferior_event_handler): Only output a message if
  5289. verbose.
  5290. 2011-05-20 Luis Machado <lgustavo@codesourcery.com>
  5291. * MAINTAINERS: Update my e-mail address.
  5292. 2011-05-20 Pedro Alves <pedro@codesourcery.com>
  5293. * infrun.c (proceed): Switch the inferior event loop to
  5294. INF_EXEC_COMPLETE if the target refused to resume from a
  5295. vfork/fork.
  5296. 2011-05-20 Pedro Alves <pedro@codesourcery.com>
  5297. * infcmd.c: Include "inf-loop.h".
  5298. (step_once): When stepping into an inline subroutine, pretend the
  5299. target has run. If the target can async, switch the inferior
  5300. event loop to INF_EXEC_COMPLETE.
  5301. * inferior.h (user_visible_resume_ptid): Declare.
  5302. * infrun.c (user_visible_resume_ptid): New function, factored out
  5303. from `resume'.
  5304. (resume): Use it.
  5305. * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
  5306. that the current thread is running. Merge async and sync
  5307. branches.
  5308. 2011-05-20 Pedro Alves <pedro@codesourcery.com>
  5309. * infcmd.c (step_1): Simplify synchronous case.
  5310. 2011-05-20 Pedro Alves <pedro@codesourcery.com>
  5311. * tracepoint.c: Include exceptions.h.
  5312. (TFILE_PID): Move higher in file.
  5313. (tfile_open): Delay pushing the tfile target until we're assured
  5314. the tfile header is present in the file. Wrap reading the initial
  5315. newline-terminated lines in TRY_CATCH. Pop the target if the
  5316. initial setup failed. Add the tfile's thread immediately
  5317. aftwards, before any non-essential setup. Don't skip
  5318. post_create_inferior if there are no traceframes present in the
  5319. file.
  5320. (tfile_close): Remove redundant check for null before xfree call.
  5321. (tfile_thread_alive): New function.
  5322. (init_tfile_ops): Register it as to_thread_alive callback.
  5323. 2011-05-20 Pedro Alves <pedro@codesourcery.com>
  5324. * tracepoint.c (tfile_open): Delete #if 0'd code.
  5325. 2011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
  5326. Fix -readnow for -gdwarf-4 unused type units.
  5327. * dwarf2read.c (struct signatured_type): Remove the field offset.
  5328. (create_signatured_type_table_from_index): Remove its initialization.
  5329. (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
  5330. instead. Add a complaint call.
  5331. (process_psymtab_comp_unit): Change assignment to gdb_assert.
  5332. (process_type_comp_unit, lookup_die_type, dump_die_shallow)
  5333. (lookup_signatured_type_at_offset, read_signatured_type)
  5334. (write_one_signatured_type): Update the field for per_cu.
  5335. 2011-05-19 Tom Tromey <tromey@redhat.com>
  5336. * python/py-inferior.c (python_inferior_exit): Use
  5337. target_gdbarch.
  5338. (python_on_resume): Likewise.
  5339. 2011-05-19 Matt Rice <ratmice@gmail.com>
  5340. * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
  5341. 2011-05-19 Hui Zhu <teawater@gmail.com>
  5342. * tracepoint.c (tfile_trace_find): Return directly when num is -1.
  5343. 2011-05-19 Hui Zhu <teawater@gmail.com>
  5344. * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
  5345. 2011-05-18 Tom Tromey <tromey@redhat.com>
  5346. * dwarf2read.c (dwarf2_add_field): Constify.
  5347. * value.c (value_static_field): Constify.
  5348. * gdbtypes.h (struct main_type) <field.field_location.physname>:
  5349. Now const.
  5350. * ax-gdb.c (gen_static_field): Constify
  5351. 2011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
  5352. * linux-nat.c (kill_callback): Use SIGKILL first.
  5353. 2011-05-18 Joel Brobecker <brobecker@adacore.com>
  5354. * ada-lang.c (print_it_exception): Avoid use of sprintf.
  5355. 2011-05-18 Tom Tromey <tromey@redhat.com>
  5356. * value.c (value_fn_field): Constify.
  5357. * symtab.c (gdb_mangle_name): Constify.
  5358. * stabsread.c (update_method_name_from_physname): Make 'physname'
  5359. argument const.
  5360. * p-typeprint.c (pascal_type_print_method_args): Make arguments
  5361. const. Use explicit fputc_filtered loop.
  5362. (pascal_type_print_base): Constify.
  5363. * p-lang.h (pascal_type_print_method_args): Update.
  5364. * linespec.c (add_matching_methods): Constify.
  5365. (add_constructors): Likewise.
  5366. * jv-typeprint.c (java_type_print_base): Constify.
  5367. * gdbtypes.h (struct cplus_struct_type)
  5368. <fn_fieldlist.fn_field.physname>: Now const.
  5369. * dwarf2read.c (compute_delayed_physnames): Constify.
  5370. (dwarf2_add_member_fn): Likewise.
  5371. * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
  5372. 2011-05-18 Pedro Alves <pedro@codesourcery.com>
  5373. * infrun.c (resume): Mention which is the current thread, and its
  5374. current PC in debug output.
  5375. (prepare_to_proceed): Mention the thread switching in debug
  5376. output.
  5377. 2011-05-18 Tom Tromey <tromey@redhat.com>
  5378. * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
  5379. path check. Use xmalloc and cleanups.
  5380. (try_thread_db_load_from_dir): Use xmalloc and cleanups.
  5381. 2011-05-17 Tom Tromey <tromey@redhat.com>
  5382. * cp-valprint.c (cp_print_value_fields): Catch errors from
  5383. value_static_field.
  5384. 2011-05-17 Tom Tromey <tromey@redhat.com>
  5385. * dwarf2read.c (dwarf2_get_die_type): Call
  5386. get_die_type_at_offset.
  5387. * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
  5388. get_base_type function.
  5389. 2011-05-17 Tomas Martinec <fyzmat@gmail.com>
  5390. * infrun.c (handle_inferior_event) <handling deferred step>: Clear
  5391. trap_expected.
  5392. 2011-05-16 Doug Evans <dje@google.com>
  5393. * python/py-auto-load.c (source_section_scripts): Mention objfile
  5394. name in warning.
  5395. 2011-05-15 Doug Evans <dje@google.com>
  5396. * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
  5397. (try_thread_db_load_from_pdir): Call it. If unable to find
  5398. libthread_db in directory of libpthread, see if we're looking at
  5399. the separate-debug-info copy.
  5400. * python/py-autoload.c (print_script): Print "Missing" instead of
  5401. "No" for missing scripts.
  5402. (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
  5403. 2011-05-13 Doug Evans <dje@google.com>
  5404. * ui-file.c (stdio_file_write_async_safe): Add comment.
  5405. 2011-05-14 Hui Zhu <teawater@gmail.com>
  5406. * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
  5407. 2011-05-13 Doug Evans <dje@google.com>
  5408. Support $pdir and $sdir in libthread-db-search-path.
  5409. * NEWS: Mention $sdir,$pdir.
  5410. * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
  5411. * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
  5412. (try_thread_db_load_from_sdir): New function.
  5413. (try_thread_db_load_from_dir): New function.
  5414. (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
  5415. system directories if search of libthread-db-search-path fails,
  5416. that is now done via $sdir.
  5417. (has_libpthread): New function.
  5418. (thread_db_load): Remove search for libthread_db in directory of
  5419. libpthread, that is now done via $pdir.
  5420. * NEWS: Mention "info auto-load-scripts".
  5421. * python/py-auto-load.c (struct auto_load_pspace_info): New member
  5422. script_not_found_warning_printed.
  5423. (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
  5424. all callers updated. Initialize script_not_found_warning_printed.
  5425. (get_auto_load_pspace_data_for_loading): New function.
  5426. (maybe_add_script): New function.
  5427. (source_section_scripts): Simplify. Only print one warning regardless
  5428. of the number of auto-load scripts not found.
  5429. (clear_section_scripts): Clear script_not_found_warning_printed.
  5430. (auto_load_objfile_script): Record script in hash table.
  5431. (count_matching_scripts): New function.
  5432. (maybe_print_script): Renamed from maybe_print_section_script, all
  5433. callers updated. Rewrite to use ui_out_*.
  5434. (info_auto_load_scripts): Renamed from
  5435. maintenance_print_section_scripts, all callers updated.
  5436. (gdbpy_initialize_auto_load): "maintenance print section-scripts"
  5437. renamed as "info auto-load-scripts".
  5438. 2011-05-13 Tom Tromey <tromey@redhat.com>
  5439. * dwarf2expr.c (read_uleb128): Cast intermediate result.
  5440. (read_sleb128): Likewise.
  5441. 2011-05-13 Tom Tromey <tromey@redhat.com>
  5442. * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
  5443. offset display.
  5444. 2011-05-13 Doug Evans <dje@google.com>
  5445. * linux-nat.c (debug_linux_nat_async): Delete.
  5446. Replace all references to use debug_linux_nat instead.
  5447. (show_debug_linux_nat_async): Delete.
  5448. (sigchld_handler): Call ui_file_write_async_safe instead of
  5449. fprintf_unfiltered.
  5450. (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
  5451. * ui-file.c (struct ui_file): New member to_write_async_safe.
  5452. (null_file_write_async_safe): New function.
  5453. (ui_file_write_async_safe): New function.
  5454. (set_ui_file_write_async_safe): New function.
  5455. (ui_file_new): Initialize to_write_async_safe.
  5456. (stdio_file_write_async_safe): New function.
  5457. (struct stdio_file): New member fd.
  5458. (stdio_file_new): Initialize to_write_async_safe, fd.
  5459. (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
  5460. fileno.
  5461. * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
  5462. (set_ui_file_write_async_safe): Declare.
  5463. (ui_file_write_async_safe): Declare.
  5464. 2011-05-13 Tom Tromey <tromey@redhat.com>
  5465. * utils.c (do_value_free): New function.
  5466. (make_cleanup_value_free): Likewise.
  5467. * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
  5468. freeing correctly.
  5469. (dwarf2_loc_desc_needs_frame): Call
  5470. make_cleanup_value_free_to_mark.
  5471. * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
  5472. * dwarf2expr.c (free_dwarf_expr_context): Don't call
  5473. value_free_to_mark.
  5474. (new_dwarf_expr_context): Don't call value_mark.
  5475. * dwarf2-frame.c (execute_stack_op): Call
  5476. make_cleanup_value_free_to_mark.
  5477. * defs.h (make_cleanup_value_free): Declare.
  5478. 2011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
  5479. * mi/mi-main.c (mi_cmd_execute): Use cleanup from
  5480. prepare_execute_command.
  5481. * top.c (prepare_execute_command): Return cleanup.
  5482. (execute_command): Use cleanup from prepare_execute_command.
  5483. * top.h (prepare_execute_command): Change prototype to return
  5484. cleanup.
  5485. * defs.h (struct value): Add opaque declaration.
  5486. (make_cleanup_value_free_to_mark): Add prototype.
  5487. * utils.c (do_value_free_to_mark): New function.
  5488. (make_cleanup_value_free_to_mark): Likewise.
  5489. 2011-05-12 Tom Tromey <tromey@redhat.com>
  5490. * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
  5491. cast left-hand-side to unsigned.
  5492. 2011-05-12 Tom Tromey <tromey@redhat.com>
  5493. PR gdb/12617:
  5494. * value.h (value_from_contents): Declare.
  5495. * value.c (value_from_contents): New function.
  5496. * dwarf2read.c (dwarf_stack_op_name): Add new values.
  5497. (dwarf2_get_die_type): New function.
  5498. * dwarf2loc.c (dwarf_expr_get_base_type): New function.
  5499. (allocate_piece_closure): Acquire reference to values.
  5500. (read_pieced_value): Update for value-based expressions.
  5501. (write_pieced_value): Likewise.
  5502. (free_pieced_value_closure): Call value_free as needed.
  5503. (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
  5504. Update for value-based expressions.
  5505. * dwarf2loc.h (dwarf2_get_die_type): Declare.
  5506. * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
  5507. <get_base_type>: New field.
  5508. (struct dwarf_expr_piece) <v.value>: Change type.
  5509. <v.regno>: New field.
  5510. (struct dwarf_expr_context) <mark>: New field.
  5511. (dwarf_expr_piece, dwarf_expr_fetch): Update.
  5512. (dwarf_expr_pop, dwarf_expr_push): Remove.
  5513. (dwarf_expr_push_address): Declare.
  5514. * dwarf2expr.c (dwarf_arch_cookie): New global.
  5515. (struct dwarf_gdbarch_types): New.
  5516. (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
  5517. functions.
  5518. (dwarf_expr_push): Change type of 'value' argument. Update. Now
  5519. static.
  5520. (dwarf_expr_push_address): New function.
  5521. (dwarf_expr_pop): Now static.
  5522. (dwarf_expr_fetch): Change return type.
  5523. (dwarf_require_integral): New function.
  5524. (dwarf_expr_fetch): Simplify.
  5525. (add_piece): Update.
  5526. (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
  5527. functions.
  5528. (execute_stack_op) <sign_ext>: Remove.
  5529. Use values for DWARF stack.
  5530. <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
  5531. DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
  5532. New cases.
  5533. (_initialize_dwarf2expr): New function.
  5534. (add_piece): Update.
  5535. (new_dwarf_expr_context): Set new field.
  5536. (free_dwarf_expr_context): Call value_free_to_mark.
  5537. * dwarf2-frame.c (no_base_type): New function.
  5538. (execute_stack_op): Set get_base_type field. Update.
  5539. 2011-05-12 Tom Tromey <tromey@redhat.com>
  5540. * dwarf2read.c (read_common_block): Fix formatting.
  5541. 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
  5542. * breakpoint.c (disable_breakpoint): Disable all locations
  5543. associated with a tracepoint on target if a trace experiment is
  5544. running.
  5545. (disable_command): Disable a specific tracepoint location on target if
  5546. a trace experiment is running.
  5547. (do_enable_breakpoint): Enable all locations associated with a
  5548. tracepoint on target if a trace experiment is running.
  5549. (enable_command) Enable a specific tracepoint location on target if a
  5550. trace experiment is running.
  5551. * target.c (update_current_target): Add INHERIT and de_fault clauses for
  5552. to_supports_enable_disable_tracepoint, to_enable_tracepoint and
  5553. to_disable_tracepoint.
  5554. * target.h: Add declaration of struct bp_location.
  5555. (struct target_ops): Add new functions
  5556. to_supports_enable_disable_tracepoint, to_enable_tracepoint and
  5557. to_disable_tracepoint to target operations.
  5558. (target_supports_enable_disable_tracepoint): New macro.
  5559. (target_enable_tracepoint): New macro.
  5560. (target_disable_tracepoint): New macro.
  5561. * remote.c (struct remote_state): Add new field.
  5562. (remote_enable_disable_tracepoint_feature): New.
  5563. (remote_protocol_features): Add new entry.
  5564. (remote_supports_enable_disable_tracepoint): New.
  5565. (remote_enable_tracepoint): New.
  5566. (remote_disable_tracepoint): New.
  5567. (init_remote_ops): Add remote_enable_tracepoint,
  5568. remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
  5569. to remote operations.
  5570. * tracepoint.c (start_tracing): Allow tracing to start without any
  5571. tracepoints enabled with just a warning if they can be re-enabled
  5572. later.
  5573. * NEWS: Add news item for the new behaviour of the enable and disable
  5574. GDB commands when applied to tracepoints.
  5575. Add news items for the new remote packets QTEnable and QTDisable.
  5576. 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
  5577. * config.in: Regenerate.
  5578. * configure: Regenerate.
  5579. * configure.ac <--with-system-readline> (for readline_echoing_p):
  5580. Remove the test.
  5581. * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
  5582. (tui_old_rl_echoing_p): ... here.
  5583. (tui_setup_io): Rename extern declaration readline_echoing_p to
  5584. _rl_echoing_p. Adjust assignments for the both renames.
  5585. 2011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
  5586. * symtab.c (lookup_symtab): Run cleanup before returning.
  5587. 2011-05-11 Tom Tromey <tromey@redhat.com>
  5588. * dwarf2read.c (handle_data_member_location): New function.
  5589. (dwarf2_add_field): Use it.
  5590. (read_common_block): Likewise.
  5591. 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
  5592. Make addrs->SECTINDEX always defined.
  5593. * symfile.c (relative_addr_info_to_section_offsets): Check for
  5594. SECTINDEX -1, not for zero ADDR.
  5595. (addrs_section_compar): Remove checking for invalid SECTINDEX.
  5596. (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
  5597. * symfile.h (struct section_addr_info) <sectindex>: Update the comment
  5598. on its validity.
  5599. 2011-05-10 Doug Evans <dje@google.com>
  5600. * linux-thread-db.c: Whitespace cleanup.
  5601. (try_thread_db_load_1): Fix comment.
  5602. * linux-thread-db.c (set_libthread_db_search_path): New function.
  5603. (_initialize_thread_db): Add setter for libthread-db-search-path.
  5604. 2011-05-09 Doug Evans <dje@google.com>
  5605. * NEWS: Mention --with-iconv-bin.
  5606. * configure.ac: New option --with-iconv-bin.
  5607. * configure: Regenerate.
  5608. * config.in: Regenerate.
  5609. * defs.h (relocate_gdb_directory): Declare.
  5610. * main.c (relocate_gdb_directory): Renamed from relocate_directory,
  5611. removed progname parameter, and exported. All callers updated.
  5612. * charset.c (find_charset_names): Use --with-iconv-bin if specified.
  5613. * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
  5614. adding missing call to restore_child_signals_mask.
  5615. 2011-05-09 Pedro Alves <pedro@codesourcery.com>
  5616. * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
  5617. parameter.
  5618. * infrun.c (proceed, start_remote): Adjust.
  5619. (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
  5620. and adjust to not handle it.
  5621. * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
  5622. * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
  5623. * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
  5624. * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
  5625. * windows-nat.c (do_initial_windows_stuff): Adjust.
  5626. * infcmd.c (attach_command): Adjust.
  5627. (notice_new_inferior): Adjust.
  5628. 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
  5629. * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
  5630. (ppu2spu_unwind_register): Mark pseudo registers unavailable.
  5631. * spu-tdep.c (op_selb): Use correct value.
  5632. 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
  5633. * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
  5634. "parent" parameter to symbol_file_add_from_bfd call.
  5635. 2011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
  5636. Thiago Jung Bauermann <bauerman@br.ibm.com>
  5637. Implement support for PowerPC BookE masked watchpoints.
  5638. * NEWS: Mention masked watchpoint support. Create "Changed commands"
  5639. section.
  5640. * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
  5641. method. Initialize to NULL in all existing breakpoint_ops instances.
  5642. (struct breakpoint) <hw_wp_mask>: New field.
  5643. * breakpoint.c (is_masked_watchpoint): Add prototype.
  5644. (update_watchpoint): Don't set b->val for masked watchpoints. Call
  5645. breakpoint's breakpoint_ops.works_in_software_mode if available.
  5646. (watchpoints_triggered): Handle the case of a hardware masked
  5647. watchpoint trigger.
  5648. (watchpoint_check): Likewise.
  5649. (works_in_software_mode_watchpoint): New function.
  5650. (insert_masked_watchpoint, remove_masked_watchpoint)
  5651. (resources_needed_masked_watchpoint)
  5652. (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
  5653. (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
  5654. (print_recreate_masked_watchpoint, is_masked_watchpoint): New
  5655. functions.
  5656. (masked_watchpoint_breakpoint_ops): New structure.
  5657. (watch_command_1): Check for the existence of the `mask' parameter.
  5658. Set b->ops according to the type of hardware watchpoint being created.
  5659. * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
  5660. (ppc_linux_remove_mask_watchpoint)
  5661. (ppc_linux_masked_watch_num_registers): New functions.
  5662. (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
  5663. to_remove_mask_watchpoint and to_masked_watch_num_registers.
  5664. * target.c (update_current_target): Mention to_insert_mask_watchpoint,
  5665. to_remove_mask_watchpoint, and to_masked_watch_num_registers.
  5666. (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
  5667. (target_masked_watch_num_registers): New functions.
  5668. * target.h (struct target_ops) <to_insert_mask_watchpoint>,
  5669. <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
  5670. methods.
  5671. (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
  5672. (target_masked_watch_num_registers): Add prototypes.
  5673. 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
  5674. PR 12573
  5675. * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
  5676. (producer_is_gcc_ge_4_0): New function.
  5677. (process_full_comp_unit): Set also symtab->locations_valid. Move the
  5678. symtab->language code.
  5679. (var_decode_location): Set cu->has_loclist.
  5680. * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
  5681. skip. Intialize force_skip from locations_valid. Move the prologue
  5682. skipping code into two passes.
  5683. * symtab.h (struct symtab): Make the primary field a bitfield. New
  5684. field locations_valid.
  5685. 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
  5686. * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
  5687. (classify_inner_name): Call cp_lookup_nested_type with
  5688. yylval.tsym.type.
  5689. * cp-namespace.c (cp_lookup_nested_type): New variable
  5690. saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
  5691. type_name_no_tag_or_error with saved_parent_type.
  5692. * dwarf2read.c (load_partial_dies): Read in any children of
  5693. DW_TAG_typedef with complaint in such case.
  5694. * gdbtypes.c (type_name_no_tag_or_error): New function.
  5695. * gdbtypes.h (type_name_no_tag_or_error): New prototype.
  5696. * valops.c (destructor_name_p): New comment for parameter type. Remove
  5697. type const. Make dname and cp const. Call type_name_no_tag_or_error.
  5698. * value.h (destructor_name_p): Remove type const.
  5699. 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
  5700. * symtab.c (compare_symbol_name): New function.
  5701. (completion_list_add_name, expand_partial_symbol_name): Call it,
  5702. remove the variable ncmp.
  5703. (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
  5704. gdb_assert it.
  5705. 2011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
  5706. Demote to sw watchpoint only in update_watchpoint.
  5707. * breakpoint.c (update_watchpoint): Change between software and
  5708. hardware watchpoint for all kinds of watchpoints, not just
  5709. read/write ones. Determine b->exact value here instead of
  5710. in watch_command_1. Error out if there are not enough resources
  5711. for a read or access hardware watchpoint.
  5712. (watch_command_1): Remove logic of checking whether there are
  5713. enough resources available, since update_watchpoint will do that
  5714. work now. Don't set b->exact here. Catch exceptions thrown by
  5715. update_watchpoint and delete the watchpoint.
  5716. (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
  5717. Use target_exact_watchpoints instead.
  5718. (delete_breakpoint): Notify observers only if deleted watchpoint
  5719. has a breakpoint number assigned to it.
  5720. 2011-05-05 Janis Johnson <janisjo@codesourcery.com>
  5721. * MAINTAINERS: Add myself as a write-after-approval maintainer.
  5722. 2011-05-05 Jerome Guitton <guitton@adacore.com>
  5723. * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
  5724. New functions.
  5725. (i386_stack_tramp_frame_unwind): New static global.
  5726. (i386_match_pattern): New function, extracted from i386_match_insn.
  5727. (i386_match_insn): Use i386_match_pattern.
  5728. (i386_match_insn_block): New function.
  5729. (i386_tramp_chain_in_reg_insns)
  5730. (i386_tramp_chain_on_stack_insns): New static variables.
  5731. (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
  5732. of unwinders.
  5733. 2011-05-04 Joseph Myers <joseph@codesourcery.com>
  5734. * configure.host (xscale*): Don't handle target.
  5735. * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
  5736. handle targets.
  5737. 2011-05-04 Yao Qi <yao@codesourcery.com>
  5738. * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
  5739. 2011-05-03 Joel Brobecker <brobecker@adacore.com>
  5740. Revert:
  5741. | 2011-03-07 Michael Snyder <msnyder@vmware.com>
  5742. | * elfread.c (elf_symtab_read): Stop memory leak.
  5743. 2011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
  5744. * nto-tdep.c (nto_target): Replace deprecated call to
  5745. cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
  5746. 2011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
  5747. Fix false GCC warning.
  5748. * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
  5749. 2011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
  5750. * breakpoint.c (update_watchpoint): Move code to change
  5751. the enable state of breakpoint from here ...
  5752. (do_enable_breakpoint): ... to here.
  5753. 2011-04-26 Andrew Gontarek <andrewg@cray.com>
  5754. * valprint.c (val_print_array_elements): Fixed poor performance
  5755. of printing very large arrays with repeat_count_threshold set
  5756. to unlimited. New comment.
  5757. 2011-04-29 Tom Tromey <tromey@redhat.com>
  5758. * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
  5759. (mi_parse): Likewise.
  5760. * breakpoint.c (break_range_command): Use sizeof char*, not
  5761. char**.
  5762. (create_breakpoint): Likewise.
  5763. (parse_breakpoint_sals): Likewise.
  5764. 2011-04-29 Pedro Alves <pedro@codesourcery.com>
  5765. * linux-nat.c (linux_child_remove_fork_catchpoint)
  5766. (linux_child_remove_vfork_catchpoint)
  5767. (linux_child_remove_exec_catchpoint): New functions.
  5768. (linux_target_install_ops): Install them.
  5769. 2011-04-29 Phil Muldoon <pmuldoon@redhat.com>
  5770. PR mi/12531
  5771. * varobj.c (install_default_visualizer): Do not install a
  5772. visualizer if the varobj is CPLUS_FAKE_CHILD.
  5773. (construct_visualizer): Likewise.
  5774. 2011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
  5775. * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
  5776. case insensitive comparison.
  5777. 2011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
  5778. * infrun.c (proceed): Revert previous change.
  5779. (resume): Instead, handle the case of signal delivery while stepping
  5780. off a breakpoint location here, and only if software single-stepping
  5781. is used. Handle nested signals.
  5782. 2011-04-28 Yao Qi <yao@codesourcery.com>
  5783. * arm-tdep.c (copy_unmodified): Rename to ...
  5784. (arm_copy_unmodified): .. this. New.
  5785. (copy_preload): Move common part to ...
  5786. (install_preload): .. this. New.
  5787. (arm_copy_preload): New.
  5788. (copy_preload_reg): Move common part to ...
  5789. (install_preload_reg): ... this. New.
  5790. (arm_copy_preload_reg): New.
  5791. (copy_b_bl_blx): Move common part to ...
  5792. (install_b_bl_blx): .. this. New.
  5793. (arm_copy_b_bl_blx): New.
  5794. (copy_bx_blx_reg): Move common part to ...
  5795. (install_bx_blx_reg): ... this. New.
  5796. (arm_copy_bx_blx_reg): New.
  5797. (copy_alu_reg): Move common part to ...
  5798. (install_alu_reg): ... this. New.
  5799. (arm_copy_alu_reg): New.
  5800. (copy_alu_shifted_reg): Move common part to ...
  5801. (install_alu_shifted_reg): ... this. New.
  5802. (copy_ldr_str_ldrb_strb): Move common part to ...
  5803. (install_ldr_str_ldrb_strb): ... this. New.
  5804. (arm_copy_ldr_str_ldrb_strb): New.
  5805. (copy_copro_load_store): Move some common part to ...
  5806. (install_copy_copro_load_store): ... this. New.
  5807. (arm_copy_copro_load_store): New.
  5808. (copy_svc): Delete.
  5809. (arm_copy_svc): Renamed from copy_svc.
  5810. (copy_undef): Delete.
  5811. (arm_copy_undef): Renamed from copy_undef.
  5812. (decode_ext_reg_ld_st): Delete.
  5813. (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
  5814. (decode_svc_copro): Delete.
  5815. (arm_decode_svc_copro): Renamed from decode_svc_copro.
  5816. (copy_copro_load_store, copy_alu_imm): update callers.
  5817. (copy_extra_ld_st, copy_block_xfer): Likewise.
  5818. (decode_misc_memhint_neon, decode_unconditional): Likewise.
  5819. (decode_miscellaneous, decode_dp_misc): Likewise.
  5820. (decode_ld_st_word_ubyte, decode_media): Likewise.
  5821. (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
  5822. (decode_svc_copro, decode_misc_memhint_neon): Likewise.
  5823. (decode_unconditional, decode_miscellaneous): Likewise.
  5824. (decode_media, decode_b_bl_ldmstm): Likewise.
  5825. (arm_process_displaced_insn): Likewise..
  5826. (decode_misc_memhint_neon): Delete.
  5827. (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
  5828. (decode_miscellaneous): Delete.
  5829. (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
  5830. (decode_dp_misc): Delete.
  5831. (arm_decode_dp_misc): Renamed from decode_dp_misc.
  5832. (decode_ld_st_word_ubyte): Delete.
  5833. (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
  5834. (decode_media): Delete.
  5835. (arm_decode_media): Renamed from decode_media.
  5836. (decode_b_bl_ldmstm): Delete.
  5837. (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
  5838. (decode_ext_reg_ld_st): Delete.
  5839. (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
  5840. (decode_unconditional): Delete.
  5841. (arm_decode_unconditional): Renamed from decode_unconditional.
  5842. 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
  5843. Case insensitive lookups implementation.
  5844. * dwarf2read.c: Include ctype.h.
  5845. (struct mapped_index): New field version.
  5846. (mapped_index_string_hash): New parameter index_version. New comment
  5847. for it. Call tolower appropriately.
  5848. (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
  5849. Choose the right index version for mapped_index_string_hash.
  5850. (dwarf2_read_index): Support also the index version 5. Initialize the
  5851. new struct mapped_index field version.
  5852. (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
  5853. (find_slot): Explain the version needs. Pass INT_MAX for the new
  5854. parameter.
  5855. (write_psymtabs_to_index): Produce version 5.
  5856. * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
  5857. use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
  5858. * psymtab.c (lookup_partial_symbol): Find the
  5859. SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
  5860. entries.
  5861. * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
  5862. NAME lowercasing.
  5863. (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
  5864. (completion_list_add_name): New variable ncmp, initialize it, use it.
  5865. * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
  5866. * utils.c (strcmp_iw): Support case_sensitive_off.
  5867. (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
  5868. New function comment part. New variables saved_string1,
  5869. saved_string2 and case_pass. Add a proper second pass.
  5870. 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
  5871. Replace re_comp/re_exec by regcomp/regexec.
  5872. * symtab.c (struct search_symbols_data): New fields preg, preg_p.
  5873. (search_symbols_name_matches): Use them, use regexec.
  5874. (search_symbols): New variable retval_chain, adjust the use of
  5875. old_chain against it. Replace re_comp by regcomp. Use the new struct
  5876. search_symbols_data fields, use regexec instead of re_exec.
  5877. 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
  5878. Format the code for the next patch.
  5879. * dwarf2read.c (struct mapped_index): Include delimiting newlines.
  5880. * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
  5881. New variables c1 and c2.
  5882. 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
  5883. * infrun.c (proceed): Do not single-step into signal delivery
  5884. when stepping off a breakpoint location.
  5885. (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
  5886. (insert_step_resume_breakpoint_at_caller): Likewise.
  5887. (insert_step_resume_breakpoint_at_sal): Likewise.
  5888. (insert_longjmp_resume_breakpoint): Likewise.
  5889. 2011-04-27 Yao Qi <yao@codesourcery.com>
  5890. * common/linux-ptrace.h: Remove include <sys/wait.h>.
  5891. 2011-04-27 Joel Brobecker <brobecker@adacore.com>
  5892. * procfs.c (procfs_pass_signals): Fix advance declaration.
  5893. 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
  5894. * target.h (struct target_ops): Remove to_notice_signals;
  5895. add to_pass_signals.
  5896. (target_notice_signals): Remove.
  5897. (target_pass_signals): Add prototype.
  5898. * target.c (update_current_target): Remove to_notice_signals;
  5899. mention to_pass_signals.
  5900. (target_pass_signals): New function.
  5901. (debug_to_notice_signals): Remove.
  5902. (setup_target_debug): Do not install debug_to_notice_signals.
  5903. * infrun.c (signal_pass): New global.
  5904. (resume): Call target_pass_signals.
  5905. (handle_inferior_event): Report all signals while stepping over
  5906. non-steppable watchpoint. Reset trap_expected to ensure breakpoints
  5907. are re-inserted when stepping over a signal handler.
  5908. (signal_cache_update): New function.
  5909. (signal_stop_update): Call it.
  5910. (signal_print_update): Likewise.
  5911. (signal_pass_update): Likewise.
  5912. (handle_command): Call signal_cache_update and target_pass_signals
  5913. instead of target_notice_signals.
  5914. (_initialize_infrun): Initialize signal_pass.
  5915. * linux-nat.c (pass_mask): New global.
  5916. (linux_nat_pass_signals): New function.
  5917. (linux_nat_create_inferior): Report all signals initially.
  5918. (linux_nat_attach): Likewise.
  5919. (linux_nat_resume): Use pass_mask to decide whether to directly
  5920. handle an inferior signal.
  5921. (linux_nat_wait_1): Likewise.
  5922. (linux_nat_add_target): Install to_pass_signals callback.
  5923. * nto-procfs.c (notice_signals): Remove.
  5924. (procfs_resume): Do not call notice_signals.
  5925. (procfs_notice_signals): Remove.
  5926. (procfs_pass_signals): New function.
  5927. (init_procfs_ops): Install to_pass_signals callback instead of
  5928. to_notice_signals callback.
  5929. (_initialize_procfs): Report all signals initially.
  5930. * procfs.c (procfs_notice_signals): Remove.
  5931. (procfs_pass_signals): New function.
  5932. (procfs_target): Install to_pass_signals callback instead of
  5933. to_notice_signals callback.
  5934. (register_gdb_signals): Remove.
  5935. (procfs_debug_inferior): Report all signals initially.
  5936. (procfs_init_inferior): Remove redundant register_gdb_signals call.
  5937. * remote.c (remote_pass_signals): Add numsigs and pass_signals
  5938. parameters; use them instead of calling signal_..._state routines.
  5939. (remote_notice_signals): Remove.
  5940. (remote_start_remote): Report all signals initially.
  5941. (remote_resume): Do not call remote_pass_signals.
  5942. (_initialize_remote): Install to_pass_signals callback instead of
  5943. to_notice_signals callback.
  5944. 2011-04-27 Pedro Alves <pedro@codesourcery.com>
  5945. * breakpoint.c (user_settable_breakpoint): Delete.
  5946. (user_breakpoint_p): Remove check on user_settable_breakpoint.
  5947. (delete_command): Check user_breakpoint_p instead of looking at
  5948. the breakpoint's type.
  5949. (disable_command): Ditto.
  5950. (enable_command): Ditto.
  5951. (delete_trace_command): Use user_breakpoint_p instead of looking
  5952. at the breakpoint number directly. When checking if there are
  5953. user visible tracepoints, in order to know whether to ask the user
  5954. for confirmation, check whether the breakpoint is actually a
  5955. tracepoint.
  5956. 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
  5957. * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
  5958. compilation.
  5959. 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
  5960. MI breakpoint notifications.
  5961. * annotate.c (breakpoint_changed): Adjust parameter type.
  5962. * breakpoint.c (set_breakpoint_condition): Adjust to change
  5963. in breakpoint_modified type.
  5964. (breakpoint_set_commands): Likewise.
  5965. (do_map_commands_command): Likewise.
  5966. (bpstat_check_breakpoint_conditions): Notify that breakpoint has
  5967. changed after bumping hit count.
  5968. (bpstat_stop_status): Likewise.
  5969. (print_one_breakpoint_location): Don't wrap in tuple here.
  5970. (print_one_breakpoint): Always print individual locations.
  5971. For locations, use unnamed tuple.
  5972. (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
  5973. has changed.
  5974. (create_catchpoint, create_syscall_event_catchpoint): Call
  5975. breakpoint_created obsever.
  5976. (mention): Don't call breakpoint_created observer.
  5977. (create_breakpoint_sal): Call breakpoint_created observer.
  5978. (create_breakpoint, watch_command_1): Likewise.
  5979. (create_ada_exception_breakpoint): Likewise.
  5980. (delete_breakpoint): Call breakpoint_deleted breakpoint.
  5981. (locations_are_equal): New.
  5982. (update_breakpoint_locations): If locations were changed, notify.
  5983. (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
  5984. Call breakpoint_modified observer.
  5985. * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
  5986. (mi_cmd_break_insert): Don't set observers for modify and delete.
  5987. * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
  5988. (mi_breakpoint_created, mi_breakpoint_deleted)
  5989. (mi_breakpoint_modified): New.
  5990. (mi_interpreter_init): Hook the above.
  5991. * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
  5992. while -break-* commands are executing.
  5993. * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
  5994. * mi/mi-out.c (struct ui_out_data): New field original_buffer.
  5995. (mi_redirect): New.
  5996. (mi_ui_out_impl): Hook in mi_redirect.
  5997. (mi_field_skip): True to the name, skip the field, don't output
  5998. a field with an empty value.
  5999. * python/py-breakpoint.c (gdbpy_breakpoint_created)
  6000. (gdbpy_breakpoint_deleted): Adjust.
  6001. * tui/tui-hooks.c (tui_event_create_breakpoint)
  6002. (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
  6003. 2011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
  6004. * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
  6005. (procfs_remove_hw_watchpoint): Likewise.
  6006. 2011-04-26 Michael Walle <michael@walle.cc>
  6007. * remote.c (remote_start_remote): Ack packet after sending the
  6008. interrupt sequence.
  6009. 2011-04-26 Yao Qi <yao@codesourcery.com>
  6010. * linux-nat.c: Move common macros to ...
  6011. Include linux-ptrace.h.
  6012. * common/linux-ptrace.h: ... here. New.
  6013. 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
  6014. * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
  6015. !objfile_has_partial_symbols. New comment.
  6016. * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
  6017. SYM_READ_PSYMBOLS is not present. Extend the comment.
  6018. * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
  6019. 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
  6020. * defs.h (ENUM_BITFIELD): Remove.
  6021. 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
  6022. Eli Zaretskii <eliz@gnu.org>
  6023. * NEWS: Document the new gdbserver --once option.
  6024. 2011-04-21 Jie Zhang <jzhang918@gmail.com>
  6025. * MAINTAINERS: Update my email address.
  6026. 2011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
  6027. * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
  6028. (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
  6029. function call if __STDC_ISO_10646__ macro is defined.
  6030. (intermediate_encoding): New prototype.
  6031. * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
  6032. to generate compile time error for unsupported gdb_wchar_t size.
  6033. (ENDIAN_SUFFIX): New macro.
  6034. (intermediate_encoding): New function.
  6035. 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
  6036. * ada-lang.c (struct add_partial_datum): Update the comment for
  6037. expand_partial_symbol_name.
  6038. (ada_add_partial_symbol_completions): Rename to ...
  6039. (ada_expand_partial_symbol_name): ... here, change return type, update
  6040. function comment, call symbol_completion_match instead of
  6041. symbol_completion_add.
  6042. (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
  6043. and ada_expand_partial_symbol_name.
  6044. * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
  6045. FILE_MATCHER.
  6046. (dw2_map_symbol_names): Remove.
  6047. (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
  6048. * psymtab.c (map_symbol_names_psymtab): Remove.
  6049. (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
  6050. Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
  6051. order.
  6052. (psym_functions): Unlist map_symbol_names_psymtab.
  6053. (map_partial_symbol_names): Rename to ...
  6054. (expand_partial_symbol_names): ... here, change the FUN type, call
  6055. expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
  6056. * psymtab.h (map_partial_symbol_names): Rename to ...
  6057. (expand_partial_symbol_names): ... here, change the FUN type.
  6058. * symfile.h (struct quick_symbol_functions): Update the description of
  6059. expand_symtabs_matching. Remove map_symbol_names.
  6060. * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
  6061. (struct add_name_data): Update the comment for
  6062. expand_partial_symbol_name.
  6063. (add_partial_symbol_name): Rename to ...
  6064. (expand_partial_symbol_name): ... here. Replace
  6065. completion_list_add_name call by strncmp.
  6066. (default_make_symbol_completion_list_break_on): Use now
  6067. expand_partial_symbol_names and expand_partial_symbol_name.
  6068. * symtab.h (enum search_domain): New element ALL_DOMAIN.
  6069. 2011-04-20 Tom Tromey <tromey@redhat.com>
  6070. * dwarf2read.c (save_gdb_index_command): Replace format
  6071. documentation with a pointer to the manual.
  6072. 2011-04-20 Pedro Alves <pedro@codesourcery.com>
  6073. * regcache.c: Include remote.h.
  6074. (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
  6075. (regcache_dump): Handle regcache_dump_remote.
  6076. (maintenance_print_remote_registers): New function.
  6077. (_initialize_regcache): Install "maint print remote-registers"
  6078. command.
  6079. * remote.c (map_regcache_remote_table): New function, factored out
  6080. from ...
  6081. (init_remote_state): ... here.
  6082. (remote_register_number_and_offset): New.
  6083. * remote.h (remote_register_number_and_offset): Declare.
  6084. 2011-04-20 Pedro Alves <pedro@codesourcery.com>
  6085. * regcache.c (get_thread_arch_regcache): If creating a regcache for
  6086. null_ptid, assume and allow a NULL address space, instead of
  6087. asking the target for the ptid's address space.
  6088. * infrun.c (ptid_is_pid): Remove assertion.
  6089. 2011-04-19 Tom Tromey <tromey@redhat.com>
  6090. * windows-tdep.c (windows_xfer_shared_library):
  6091. * windows-nat.c (get_module_name, windows_make_so):
  6092. * v850-tdep.c (v850_handle_pushm):
  6093. * utils.c (null_cleanup, gdb_realpath):
  6094. * ui-out.c (get_next_header):
  6095. * tracepoint.c (clear_traceframe_info):
  6096. * symtab.c (lookup_symtab):
  6097. * serial.h (struct serial_ops):
  6098. * mipsread.c (read_alphacoff_dynamic_symtab):
  6099. * infcmd.c (print_return_value):
  6100. * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
  6101. * f-exp.y (parse_number):
  6102. * exceptions.c (catch_exceptions):
  6103. * dummy-frame.c (dummy_frame_this_id):
  6104. * defs.h (struct cleanup):
  6105. * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
  6106. * arm-tdep.c (arm_push_dummy_call):
  6107. * amd64-tdep.h (amd64_collect_xsave):
  6108. * amd64-tdep.c (amd64_collect_xsave):
  6109. * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
  6110. * README (typing): Remove duplicate words.
  6111. * cli/cli-decode.c (lookup_cmd_composition): Add comma.
  6112. * infrun.c (siginfo_value_read): Fix typo.
  6113. * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
  6114. * top.c (source_line_number): Add comma.
  6115. 2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
  6116. * thread.c (any_live_thread_of_process): Prioritize threads
  6117. that are not executing.
  6118. * gdbthread.h (any_live_thread_of_process): Update comment
  6119. as per above change.
  6120. 2011-04-19 Andreas Schwab <schwab@linux-m68k.org>
  6121. * xcoffread.c (process_xcoff_symbol): Remove useless cast.
  6122. (scan_xcoff_symtab): Likewise.
  6123. 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
  6124. * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
  6125. inside if clause.
  6126. 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
  6127. Pedro Alves <pedro@codesourcery.com>
  6128. * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
  6129. variables to simplify code and avoid == operator at end of
  6130. line as this is against GNU coding standards.
  6131. 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
  6132. * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
  6133. lm_name to name_lm to avoid conflict with lm_name function.
  6134. 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
  6135. ARI fixes: Use only lowercase function name for static functions.
  6136. * nto-tdep.c (LM_ADDR): Rename to...
  6137. (lm_addr): New function name.
  6138. (nto_relocate_section_addresses): Adapt to change above.
  6139. * solib-sunos.c (LM_ADDR): Rename to...
  6140. (lm_addr): New function name.
  6141. (LM_NEXT): Rename to...
  6142. (lm_next): New function name.
  6143. (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
  6144. function name changes above.
  6145. * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
  6146. (lm_addr_from_link_map): New function name.
  6147. (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
  6148. (has_lm_dynamic_from_link_map): New function name.
  6149. (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
  6150. (lm_dynamic_from_link_map): New function name.
  6151. (LM_ADDR_CHECK): Rename to...
  6152. (lm_addr_check): New function name.
  6153. (LM_NEXT): Rename to...
  6154. (lm_next): New function name.
  6155. (LM_PREV): Rename to...
  6156. (lm_prev): New function name.
  6157. (LM_NAME): Rename to...
  6158. (lm_name): New function name.
  6159. (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
  6160. (ignore_first_link_map_entry): New function name.
  6161. (svr4_keep_data_in_core): Adapt to function name changes above.
  6162. (svr4_current_sos): Likewise.
  6163. (enable_break): Likewise.
  6164. (svr4_relocate_section_addresses): Likewise.
  6165. 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
  6166. ARI cleanup.
  6167. * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
  6168. sprintf. Simplify code and avoid loosing memory.
  6169. (xtensa_register_reggroup_p): Extract assignment out of IF clause.
  6170. (call0_frame_cache): Remove && operator from end of line.
  6171. 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
  6172. Fix libraries displacement if they change whether they were prelinked.
  6173. * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
  6174. does not match. Comment why.
  6175. 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
  6176. * corelow.c: Include wrapper.h.
  6177. (core_open): Call now gdb_target_find_new_threads.
  6178. * wrapper.c: Include target.h.
  6179. (gdb_target_find_new_threads): New.
  6180. * wrapper.h (gdb_target_find_new_threads): New declaration.
  6181. 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
  6182. * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
  6183. even if !TARGET_HAS_EXECUTION.
  6184. 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
  6185. Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
  6186. * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
  6187. bfd_get_synthetic_symtab.
  6188. * jit.c (jit_register_code): Pass NULL to the new parameter parent.
  6189. * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
  6190. parameter parent, remove the call to add_separate_debug_objfile.
  6191. * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
  6192. * symfile-mem.c (symbol_file_add_from_memory): Likewise.
  6193. * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
  6194. parent, new comment for it, call add_separate_debug_objfile for it.
  6195. (symbol_file_add_separate): Pass objfile as the parameter parent,
  6196. remove the call to add_separate_debug_objfile.
  6197. (symbol_file_add_from_bfd): New parameter parent, pass it.
  6198. (symbol_file_add): Pass NULL to the new parameter parent.
  6199. * symfile.h (symbol_file_add_from_bfd): New parameter parent.
  6200. 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
  6201. * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
  6202. BSF_SYNTHETIC.
  6203. 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
  6204. Fix Python access to inlined frames.
  6205. * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
  6206. * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
  6207. 2011-04-15 Tom Tromey <tromey@redhat.com>
  6208. * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
  6209. 2011-04-15 Gary Benson <gbenson@redhat.com>
  6210. * MAINTAINERS: Add myself to write-after-approval section.
  6211. 2011-04-14 Mike Frysinger <vapier@gentoo.org>
  6212. * remote-sim.c (sim_command_completer): New function.
  6213. (_initialize_remote_sim): Set completer to sim_command_completer.
  6214. 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
  6215. * breakpoint.c (print_exception_catchpoint): Rename to ...
  6216. (print_it_exception_catchpoint): ... this.
  6217. (gnu_v3_exception_catchpoint_ops): Update with new name
  6218. for print_it_exception_catchpoint.
  6219. 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
  6220. * MAINTAINERS: Add myself for write after approval privileges.
  6221. 2011-04-13 Marek Polacek <mpolacek@redhat.com>
  6222. * MAINTAINERS: Add myself as a write-after-approval maintainer.
  6223. 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
  6224. * breakpoint.c (watch_command_1): Remove colon from exp_string.
  6225. 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
  6226. * breakpoint.c (save_breakpoints): Verify whether
  6227. breakpoint_ops.print_recreate is defined before calling it.
  6228. 2011-04-11 Gary Benson <gbenson@redhat.com>
  6229. Fix failure with --enable-maintainer-mode.
  6230. * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
  6231. 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
  6232. Code cleanup.
  6233. * symtab.c (search_symbols): Reorder the KIND description in the
  6234. function comment. Remove the unused 4th element of types, types2,
  6235. types3 and types4. New gdb_assert on KIND.
  6236. (symtab_symbol_info): Remove the unused 4th element of classnames.
  6237. New gdb_assert on KIND.
  6238. * symtab.h (enum search_domain): New warning in the enum comment.
  6239. Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
  6240. TYPES_DOMAIN.
  6241. 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
  6242. Fix crash of gdb save-index on a STABS file.
  6243. * dwarf2read.c (write_psymtabs_to_index): Return also on no
  6244. PSYMTABS_ADDRMAP.
  6245. 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
  6246. Fix DW_AT_accessibility compatibility with gcc-4.6+.
  6247. * dwarf2read.c: Include ctype.h.
  6248. (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
  6249. functions.
  6250. (dwarf2_add_field): Fix new_field->accessibility by calling
  6251. dwarf2_default_access_attribute. Restructure setting accessibility
  6252. vs. virtuality.
  6253. (dwarf2_add_member_fn): New variable accessibility. Fix fnp
  6254. is_private and is_protected by calling
  6255. dwarf2_default_access_attribute.
  6256. 2011-04-08 Kevin Buettner <kevinb@redhat.com>
  6257. * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
  6258. to the initialization.
  6259. 2011-04-08 Steve Ellcey <sje@cup.hp.com>
  6260. * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
  6261. initalization.
  6262. 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
  6263. Remove support for old Cygwin 1.5 versions.
  6264. * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
  6265. function on old Cygwin version.
  6266. * windows-nat.c: Remove cygwin version check and always define
  6267. __USEWIDE for Cygwin compilation.
  6268. 2011-04-07 Yao Qi <yao@codesourcery.com>
  6269. * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
  6270. and TO.
  6271. * arm-tdep.c (cleanup_svc): Handle variable instruction size.
  6272. (arm_copy_svc): Remove parameters INSN and TO.
  6273. (decode_svc_copro): Update caller.
  6274. * arm-tdep.h (struct displaced_step_closure): Remove parameters
  6275. from function pointer `copy_svc_os'.
  6276. 2011-04-07 Yao Qi <yao@codesourcery.com>
  6277. * arm-tdep.c (cleanup_branch): Set a correct return address in
  6278. LR for ARM and Thumb.
  6279. 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
  6280. Code cleanup.
  6281. * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
  6282. * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
  6283. in the function comment, a new note on values compatibility.
  6284. * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
  6285. * symtab.h (SYMBOL_HASH_NEXT): New.
  6286. 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
  6287. * ppc-linux-nat.c (check_condition): Add len output parameter.
  6288. Set it based on the memory region referenced in the condition
  6289. expression. Update all callers.
  6290. 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
  6291. Fix crash regression on systems featuring .gdb_index.
  6292. * objfiles.c (free_objfile): Move the
  6293. forget_cached_source_info_for_objfile call earlier. Comment it.
  6294. Extend the comment for objfile_free_data.
  6295. 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
  6296. Fix regression of displaying the debug format.
  6297. * buildsym.c (end_symtab): Set symtab's debugformat and producer from
  6298. subfile.
  6299. 2011-04-04 Tom Tromey <tromey@redhat.com>
  6300. * cli/cli-interp.c (struct captured_execute_command_args):
  6301. Remove.
  6302. (do_captured_execute_command): Remove.
  6303. (safe_execute_command): Use TRY_CATCH.
  6304. * cli/cli-script.c (struct wrapped_read_command_file_args):
  6305. Remove.
  6306. (wrapped_read_command_file): Remove.
  6307. (script_from_file): Use TRY_CATCH.
  6308. * exceptions.c (catch_exception): Remove.
  6309. * exceptions.h (catch_exception): Remove.
  6310. (deprecated_throw_reason): Update comment.
  6311. * mi/mi-main.c (captured_mi_execute_command): Change 'data'
  6312. argument to 'context'.
  6313. (mi_execute_command): Use TRY_CATCH.
  6314. * remote.c (struct start_remote_args): Remove.
  6315. (remote_start_remote): Update; change arguments.
  6316. (remote_open_1): Use TRY_CATCH.
  6317. 2011-04-04 Tom Tromey <tromey@redhat.com>
  6318. * tracepoint.c (scope_info): Update.
  6319. * symtab.c (decode_line_spec): Update.
  6320. * python/python.c (gdbpy_decode_line): Update.
  6321. * linespec.h (decode_line_1): Update.
  6322. * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
  6323. (decode_compound, find_method, symtab_from_filename)
  6324. (decode_variable): Likewise.
  6325. * cli/cli-cmds.c (edit_command): Update.
  6326. (list_command): Update.
  6327. * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
  6328. argument.
  6329. (create_breakpoint): Update.
  6330. (until_break_command): Update.
  6331. (addr_string_to_sals): Update.
  6332. (decode_line_spec_1): Update.
  6333. 2011-04-04 Tom Tromey <tromey@redhat.com>
  6334. * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
  6335. (do_captured_parse_breakpoint): Remove.
  6336. (create_breakpoint): `e' is now volatile. Remove `parse_args'.
  6337. Use TRY_CATCH directly.
  6338. 2011-04-04 Tom Tromey <tromey@redhat.com>
  6339. * symtab.h (free_symtab): Remove.
  6340. (forget_cached_source_info_for_objfile): Declare.
  6341. * symmisc.c (free_symtab): Remove.
  6342. * source.c (forget_cached_source_info_for_objfile): New function.
  6343. (forget_cached_source_info): Use it.
  6344. * objfiles.c (free_objfile): Simplify check before calling
  6345. clear_current_source_symtab_and_line. Call
  6346. forget_cached_source_info_for_objfile.
  6347. 2011-04-04 Tom Tromey <tromey@redhat.com>
  6348. * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
  6349. (new_symtab): Don't set `free_code' on symtab.
  6350. (new_linetable): Properly handle size==0.
  6351. * symtab.h (struct symtab) <free_code, free_func>: Remove.
  6352. * symmisc.c (free_symtab): Don't free the linetable. Don't call
  6353. free_func.
  6354. * jv-lang.c (struct jv_per_objfile_data): New.
  6355. (jv_per_objfile_free): Free the data.
  6356. (get_dynamics_objfile): Allocate a jv_per_objfile_data.
  6357. (get_java_class_symtab): Set the `dict' field on the
  6358. jv_per_objfile_data.
  6359. (free_class_block): Remove.
  6360. * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
  6361. the symtab.
  6362. 2011-04-04 Tom Tromey <tromey@redhat.com>
  6363. * symfile.c (reread_symbols): Update.
  6364. * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
  6365. field.
  6366. * objfiles.c (allocate_objfile): Update.
  6367. * cp-support.h (cp_check_possible_namespace_symbols): Don't
  6368. declare.
  6369. * cp-namespace.c (lookup_symbol_file): Don't call
  6370. lookup_possible_namespace_symbol.
  6371. (initialize_namespace_symtab, get_possible_namespace_block)
  6372. (free_namespace_block, cp_check_possible_namespace_symbols)
  6373. (check_possible_namespace_symbols_loop)
  6374. (check_one_possible_namespace_symbol)
  6375. (lookup_possible_namespace_symbol): Remove.
  6376. (maintenance_cplus_namespace): Replace with notice.
  6377. (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
  6378. 2011-04-04 Tom Tromey <tromey@redhat.com>
  6379. * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
  6380. * symtab.h (struct symtab) <producer, debugformat>: Now const.
  6381. * symmisc.c (free_symtab): Don't free debugformat.
  6382. * buildsym.h (struct subfile) <producer, debugformat>: Now const.
  6383. (record_debugformat, record_producer): Document.
  6384. * buildsym.c (end_symtab): Don't save debugformat and producer
  6385. names on obstack.
  6386. (end_symtab): Don't free debugformat and producer fields.
  6387. (record_debugformat): Don't call xstrdup.
  6388. (record_producer): Likewise.
  6389. 2011-04-04 Tom Tromey <tromey@redhat.com>
  6390. * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
  6391. (source_line_charpos, source_charpos_line): Remove.
  6392. 2011-04-04 Tom Tromey <tromey@redhat.com>
  6393. * symtab.h (domain_enum): Split in two...
  6394. (enum search_domain): New.
  6395. (search_symbols): Update.
  6396. * symtab.c (print_symbol_info, symtab_symbol_info): Remove
  6397. redundant declarations.
  6398. (search_symbols): Change 'kind' argument to search_domain.
  6399. Update.
  6400. (print_symbol_info): Likewise.
  6401. (symtab_symbol_info): Likewise.
  6402. * symfile.h (struct quick_symbol_functions)
  6403. <pre_expand_symtabs_matching>: Change type of 'kind' argument.
  6404. <expand_symtabs_matching>: Likewise.
  6405. * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
  6406. (expand_symtabs_matching_via_partial): Update.
  6407. * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
  6408. (dw2_expand_symtabs_for_function): Update.
  6409. * block.h: Moved anonymous enum...
  6410. * defs.h (enum block_enum): ... here. Now named.
  6411. 2011-04-03 Joel Brobecker <brobecker@adacore.com>
  6412. GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
  6413. * version.in: Bump version to 7.3.50.20110403-cvs.
  6414. 2011-04-03 Joel Brobecker <brobecker@adacore.com>
  6415. * NEWS: Create a new section for the next release branch.
  6416. Rename the section of the current branch, now that it has
  6417. been cut.
  6418. 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
  6419. * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
  6420. for "fpscr" in target description.
  6421. 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
  6422. * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
  6423. initialize it. Delay HASH initialization. Strip the part after open
  6424. parenthesis for languages with qualifiers. Call do_cleanups.
  6425. 2011-04-01 Tom Tromey <tromey@redhat.com>
  6426. * utils.c (report_command_stats): Don't print `-' for negative
  6427. number.
  6428. 2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
  6429. * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
  6430. (ada_value_slice, empty_array, to_fixed_array_type): Deal with
  6431. typedefs.
  6432. 2011-04-01 Joel Brobecker <brobecker@adacore.com>
  6433. * breakpoint.h (bpdisp_text): Add declaration.
  6434. * breakpoint.c (bpdisp_text): Make non-static.
  6435. * ada-lang.c: #include "mi/mi-common.h".
  6436. (print_it_exception): Rewrite to improve GDB/MI output.
  6437. 2011-04-01 Pedro Alves <pedro@codesourcery.com>
  6438. * arm-tdep.h (struct address_space): Add forward declaration.
  6439. 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
  6440. * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
  6441. * arm-tdep.c (arm_override_mode): New global.
  6442. (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
  6443. execution mode heuristics.
  6444. (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
  6445. second single-step breakpoint if needed, using
  6446. arm_insert_single_step_breakpoint.
  6447. (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
  6448. ARM execution mode, do not call thumb_get_next_pc_raw.
  6449. (arm_get_next_pc): Encode execution mode in return value. Call
  6450. either arm_get_next_pc_raw or thumb_get_next_pc_raw.
  6451. (arm_insert_single_step_breakpoint): New function.
  6452. (arm_software_single_step): Call it.
  6453. * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
  6454. argument to return execution mode of sigreturn target.
  6455. (arm_linux_syscall_next_pc): Use it.
  6456. (arm_linux_copy_svc): Update call.
  6457. (arm_linux_software_single_step): Call
  6458. arm_insert_single_step_breakpoint.
  6459. 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
  6460. * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
  6461. the comment.
  6462. 2011-03-31 Tom Tromey <tromey@redhat.com>
  6463. * varobj.c (update_dynamic_varobj_children): Properly handle
  6464. errors from iterator.
  6465. 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
  6466. * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
  6467. struct linkage name twice.
  6468. 2011-03-31 Tom Tromey <tromey@redhat.com>
  6469. * python/py-prettyprint.c (print_stack_unless_memory_error): Add
  6470. missing ">" to message.
  6471. 2011-03-31 Tom Tromey <tromey@redhat.com>
  6472. * varobj.c (instantiate_pretty_printer): Remove duplicate
  6473. 'return'.
  6474. 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
  6475. * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
  6476. if neither saved value nor register available (e.g. signal frame).
  6477. 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
  6478. * macroexp.c (expand): Avoid uninitialized variable
  6479. compiler warning.
  6480. 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
  6481. * breakpoint.c (break_range_command): Fix typo in comment.
  6482. 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
  6483. Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
  6484. Implement support for PowerPC BookE ranged breakpoints.
  6485. * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
  6486. * breakpoint.h (struct bp_target_info) <length>: New member
  6487. variable.
  6488. (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
  6489. instead of struct breakpoint as argument, and also add ASPACE
  6490. and BP_ADDR arguments. Update all callers.
  6491. (struct breakpoint_ops) <print_one_detail>: New method.
  6492. (struct breakpoint) <addr_string_range_end>: New member variable.
  6493. * breakpoint.c (breakpoint_location_address_match): Add function
  6494. prototype.
  6495. (insert_bp_location): Set bl->target_info.length.
  6496. (breakpoint_here_p): Call breakpoint_location_address_match.
  6497. (moribund_breakpoint_here_p): Likewise.
  6498. (regular_breakpoint_inserted_here_p): Likewise.
  6499. (breakpoint_thread_match): Likewise.
  6500. (bpstat_stop_status): Likewise.
  6501. (bpstat_check_location): Move call to
  6502. breakpoint_ops.breakpoint_hit to the top.
  6503. (print_one_breakpoint_location): Call
  6504. breakpoint_ops.print_one_detail if available.
  6505. (breakpoint_address_match_range): New function.
  6506. (breakpoint_location_address_match): Likewise.
  6507. (breakpoint_locations_match): Compare the length field of the
  6508. locations too.
  6509. (hw_breakpoint_used_count): Count resources used by all locations
  6510. in a breakpoint, and use breakpoint_ops.resources_needed if
  6511. available.
  6512. (breakpoint_hit_ranged_breakpoint): New function.
  6513. (resources_needed_ranged_breakpoint): Likewise.
  6514. (print_it_ranged_breakpoint): Likewise.
  6515. (print_one_ranged_breakpoint): Likewise.
  6516. (print_one_detail_ranged_breakpoint): Likewise.
  6517. (print_mention_ranged_breakpoint): Likewise.
  6518. (print_recreate_ranged_breakpoint): Likewise.
  6519. (ranged_breakpoint_ops): New structure.
  6520. (find_breakpoint_range_end): New function.
  6521. (break_range_command): Likewise.
  6522. (delete_breakpoint): Free addr_string_range_end.
  6523. (update_breakpoint_locations): Add SALS_END argument. Update
  6524. all callers. Calculate breakpoint length if a non-zero SALS_END
  6525. is given. Call breakpoint_locations_match instead of
  6526. breakpoint_address_match.
  6527. (reset_breakpoint): Find SaL of the end of the range if B is a
  6528. ranged breakpoint.
  6529. (_initialize_breakpoint): Register break-range command.
  6530. * defs.h (print_core_address): Add function prototype.
  6531. * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
  6532. function.
  6533. (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
  6534. (ppc_linux_remove_hw_breakpoint): Likewise.
  6535. (_initialize_ppc_linux_nat): Initialize
  6536. to_ranged_break_num_registers.
  6537. * target.c (update_current_target): Add comment about
  6538. to_ranged_break_num_registers.
  6539. (target_ranged_break_num_registers): New function.
  6540. * target.h (struct target_ops) <to_ranged_break_num_registers>:
  6541. New method.
  6542. (target_ranged_break_num_registers): Add function prototype.
  6543. * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
  6544. * utils.c (print_core_address): ... here.
  6545. 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
  6546. * breakpoint.c (addr_string_to_sals): Avoid uninitialized
  6547. variable compiler warning.
  6548. 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
  6549. * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
  6550. code from here ...
  6551. (re_set_breakpoint): ... to here ...
  6552. (addr_string_to_sals): ... and here.
  6553. 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
  6554. * Makefile.in (SFILES): Add missing C sources.
  6555. (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
  6556. Add missing headers.
  6557. 2011-03-29 Mike Frysinger <vapier@gentoo.org>
  6558. * .gitignore: New file.
  6559. 2011-03-29 Mike Frysinger <vapier@gentoo.org>
  6560. * NEWS: Mention new cfi device simulation.
  6561. 2011-03-29 Tom Tromey <tromey@redhat.com>
  6562. * dwarf2read.c (fixup_partial_die): Handle linkage name on
  6563. otherwise anonymous types.
  6564. (dwarf2_name): Likewise.
  6565. * valops.c (value_struct_elt_for_reference): Refine artificial
  6566. type logic. Call error if j==-1.
  6567. 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
  6568. Fix false GCC warning.
  6569. * infcall.c (find_function_addr): Initialize funaddr.
  6570. 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
  6571. Fix mingw compilation with --enable-targets=all.
  6572. * remote-mips.c (gdb_usleep.h): Include header.
  6573. (mips_enter_debug): Use gdb_usleep instead of sleep.
  6574. 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
  6575. Support resolution of STT_GNU_IFUNC via breakpoints.
  6576. * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
  6577. bp_gnu_ifunc_resolver_return.
  6578. (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
  6579. the loop. Support bp_gnu_ifunc_resolver and
  6580. bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
  6581. for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
  6582. breakpoints.
  6583. (bptype_string, print_one_breakpoint_location): Support
  6584. bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
  6585. (user_settable_breakpoint): Return true also for
  6586. bp_gnu_ifunc_resolver.
  6587. (allocate_bp_location): Support bp_gnu_ifunc_resolver and
  6588. bp_gnu_ifunc_resolver_return.
  6589. (set_breakpoint_location_function): New parameter explicit_loc,
  6590. describe it. Call find_pc_partial_function_gnu_ifunc with new
  6591. variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
  6592. EXPLICIT_LOC is not set.
  6593. (set_raw_breakpoint): Set EXPLICIT_LOC for
  6594. set_breakpoint_location_function.
  6595. (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
  6596. set_breakpoint_location_function.
  6597. (mention): Support bp_gnu_ifunc_resolver and
  6598. bp_gnu_ifunc_resolver_return.
  6599. (add_location_to_breakpoint): Set EXPLICIT_LOC for
  6600. set_breakpoint_location_function.
  6601. (update_breakpoint_locations): Remove static.
  6602. (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
  6603. bp_gnu_ifunc_resolver_return.
  6604. * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
  6605. bp_gnu_ifunc_resolver_return.
  6606. (update_breakpoint_locations): New declaration.
  6607. * elfread.c: Include gdbthread.h and regcache.h.
  6608. (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
  6609. functions.
  6610. (elf_gnu_ifunc_fns): Install them.
  6611. * minsyms.c (stub_gnu_ifunc_resolver_stop)
  6612. (stub_gnu_ifunc_resolver_return_stop): New functions.
  6613. (stub_gnu_ifunc_fns): Install them.
  6614. * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
  6615. and gnu_ifunc_resolver_return_stop.
  6616. (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
  6617. 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
  6618. STT_GNU_IFUNC reader implementation.
  6619. * elfread.c: Include gdbtypes.h, value.h and infcall.h.
  6620. (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
  6621. (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
  6622. (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
  6623. (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
  6624. (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
  6625. (elf_gnu_ifunc_resolve_addr): New.
  6626. (elf_symfile_read): Call elf_rel_plt_read.
  6627. (elf_gnu_ifunc_fns): New.
  6628. (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
  6629. Install elf_gnu_ifunc_fns.
  6630. * infcall.c (find_function_return_type): New function.
  6631. (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
  6632. * minsyms.c (stub_gnu_ifunc_resolve_addr)
  6633. (stub_gnu_ifunc_resolve_name): New functions.
  6634. (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
  6635. * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
  6636. (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
  6637. 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
  6638. Code cleanup for later STT_GNU_IFUNC support.
  6639. * infcall.c (find_function_addr): Remove variable code, use explicit
  6640. dereferences for it. Move VALUE_TYPE initialization later.
  6641. 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
  6642. GDB find_pc_partial_function support for STT_GNU_IFUNC.
  6643. * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
  6644. (clear_pc_function_cache): Clear it.
  6645. (find_pc_partial_function): Rename to ...
  6646. (find_pc_partial_function_gnu_ifunc): ... this function. New
  6647. parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
  6648. (find_pc_partial_function): New wrapper for this function.
  6649. * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
  6650. 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
  6651. GDB internal type support for STT_GNU_IFUNC.
  6652. * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
  6653. (elf_symtab_read): Set mst_text_gnu_ifunc for
  6654. BSF_GNU_INDIRECT_FUNCTION.
  6655. * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
  6656. * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
  6657. builtin_func_func, nodebug_text_gnu_ifunc_symbol and
  6658. nodebug_got_plt_symbol.
  6659. * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
  6660. (TYPE_GNU_IFUNC): New.
  6661. (struct main_type): New field flag_gnu_ifunc.
  6662. (struct builtin_type): New field builtin_func_func.
  6663. (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
  6664. nodebug_got_plt_symbol.
  6665. * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
  6666. (in_gnu_ifunc_stub): New.
  6667. (prim_record_minimal_symbol, find_solib_trampoline_target): Support
  6668. mst_text_gnu_ifunc.
  6669. * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
  6670. support mst_text_gnu_ifunc. Support mst_slot_got_plt.
  6671. * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
  6672. in_gnu_ifunc_stub.
  6673. * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
  6674. * symtab.c (search_symbols): Likewise.
  6675. * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
  6676. and mst_slot_got_plt.
  6677. (in_gnu_ifunc_stub): New declaration.
  6678. 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
  6679. Support a ring of related breakpoints.
  6680. * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
  6681. other functions, add gdb_assert.
  6682. (update_watchpoint, watchpoint_check): Add gdb_assert. Use
  6683. watchpoint_del_at_next_stop.
  6684. (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
  6685. (bpstat_stop_status): Handle ring in related_breakpoint.
  6686. (set_raw_breakpoint_without_location): Initialize ring in
  6687. related_breakpoint.
  6688. (delete_breakpoint): Handle ring in related_breakpoint, use
  6689. watchpoint_del_at_next_stop.
  6690. (map_breakpoint_numbers): Handle ring in related_breakpoint.
  6691. 2011-03-28 Tom Tromey <tromey@redhat.com>
  6692. PR symtab/12441:
  6693. * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
  6694. with `language_minimal'.
  6695. 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
  6696. * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
  6697. instead of checking for STT_ARM_TFUNC symbol type.
  6698. 2011-03-25 Tom Tromey <tromey@redhat.com>
  6699. * linespec.c (symbol_found): Restore line-based result for
  6700. non-LOC_LABEL symbols.
  6701. 2011-03-25 Kai Tietz <ktietz@redhat.com>
  6702. * tui/tui-source.c (tui_set_source_content): Use filename_cmp
  6703. instead of strcmp for comparison.
  6704. (tui_source_is_displayed): Likewise.
  6705. * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
  6706. 2011-03-24 Mark Wielaard <mjw@redhat.com>
  6707. * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
  6708. complaint.
  6709. (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
  6710. (find_partial_die_in_comp_unit): Likewise in comment.
  6711. (read_attribute_value): Likewise.
  6712. (lookup_die_type): Likewise.
  6713. (dwarf_form_name): Likewise.
  6714. (dump_die_shallow): Likewise.
  6715. (follow_die_ref_or_sig): Likewise.
  6716. 2011-03-24 Tom Tromey <tromey@redhat.com>
  6717. PR breakpoints/11816:
  6718. * linespec.c (decode_line_1): Parse `function:label' linespecs.
  6719. (decode_compound): Update.
  6720. (find_function_symbol): New function.
  6721. (decode_dollar): Update.
  6722. (decode_label): Add 'function_symbol' parameter. Handle
  6723. function-relative labels.
  6724. (decode_variable): Update.
  6725. (symbol_found): Add 'function_symbol' parameter. Use label's PC,
  6726. not its line. Set `special_display' and canonical name for
  6727. labels.
  6728. 2011-03-24 Tom Tromey <tromey@redhat.com>
  6729. * linespec.h (struct linespec_result) <special_display>: New
  6730. field.
  6731. * breakpoint.h (struct breakpoint) <display_canonical>: New
  6732. field.
  6733. * breakpoint.c (print_breakpoint_location): Respect
  6734. display_canonical.
  6735. (create_breakpoint_sal): Add 'display_canonical' parameter.
  6736. (create_breakpoints_sal): Update.
  6737. (create_breakpoint): Update.
  6738. 2011-03-24 Tom Tromey <tromey@redhat.com>
  6739. * symtab.c (decode_line_spec): Update.
  6740. * linespec.c (build_canonical_line_spec): Change type of
  6741. 'canonical'.
  6742. (decode_line_2, decode_line_1, decode_objc, decode_compound)
  6743. (find_method, decode_all_digits, decode_dollar, decode_label)
  6744. (symbol_found): Likewise.
  6745. (init_linespec_result): New function.
  6746. * breakpoint.c (struct captured_parse_breakpoint_args)
  6747. <canonical_p>: New field, replaces addr_string_p.
  6748. (create_breakpoints_sal): Add 'canonical' parameter, replacing
  6749. 'addr_string'.
  6750. (parse_breakpoint_sals): Likewise.
  6751. (do_captured_parse_breakpoint): Update.
  6752. (create_breakpoint): Use struct linespec_result.
  6753. (until_break_command): Update.
  6754. (breakpoint_re_set_one): Update.
  6755. (decode_line_spec_1): Update.
  6756. * linespec.h (struct linespec_result): New.
  6757. (init_linespec_result): Declare.
  6758. 2011-03-23 Pedro Alves <pedro@codesourcery.com>
  6759. * regcache.c (regcache_raw_read): If the target didn't supply a
  6760. given raw register, mark it as unavailable.
  6761. 2011-03-23 Kai Tietz <ktietz@redhat.com>
  6762. * breakpoint.c (clear_command): Use filename_cmp
  6763. instead of strcmp for comparison.
  6764. * buildsym.c (watch_main_source_file_lossage): Likewise.
  6765. (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
  6766. checking just for slash.
  6767. * dbxread.c (read_dbx_symtab): Use lbasename instead of
  6768. strrchr and filename_cmp instead of strcmp for filenames.
  6769. (add_old_header_file): Use filename_cmp
  6770. instead of strcmp for comparison.
  6771. * exec.c (exec_set_section_address): Likewise.
  6772. * macrotab.c (macro_lookup_inclusion): Likewise.
  6773. (macro_lookup_inclusion): Likewise.
  6774. * elfread.c (_initialize_elfread): Likewise.
  6775. (elfstab_offset_sections): Likewise.
  6776. (elfstab_offset_sections): Use lbasename instead of
  6777. strrchr.
  6778. * mdebugread.c (parse_partial_symbols): Likewise.
  6779. (arse_partial_symbols): Use filename_(n)cmp instead of
  6780. str(n)cmp for comparison.
  6781. * minsyms.c (lookup_minimal_symbol): Likewise.
  6782. * psymtab.c (read_psymtabs_with_filename): Likewise.
  6783. * solib.c (solib_read_symbols): Likewise.
  6784. (reload_shared_libraries_1): Likewise.
  6785. * symmisc.c (maintenance_print_symbols): Likewise.
  6786. * symfile.c (separate_debug_file_exists): Likewise.
  6787. (reread_symbols): Likewise.
  6788. (find_separate_debug_file_by_debuglink): Likewise.
  6789. * remote-fileio.c (remote_fileio_func_rename): Likewise.
  6790. * source.c (add_path): Likewise.
  6791. * symtab.c (filename_seen): Likewise.
  6792. (file_matches): Likewise.
  6793. (print_symbol_info): Likewise.
  6794. (maybe_add_partial_symtab_filename): Likewise.
  6795. (make_source_files_completion_list): Likewise.
  6796. * xml-syscall.c (init_sysinfo): Likewise.
  6797. * windows-nat.c (_initialize_check_for_gdb_ini): Use
  6798. IS_DIR_SEPARATOR for checking for trailing path separator.
  6799. 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
  6800. * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
  6801. label abort_expression.
  6802. * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
  6803. DWARF_VALUE_OPTIMIZED_OUT.
  6804. 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
  6805. Code cleanup.
  6806. * c-typeprint.c (c_type_print_args): Change parameter show_artificial
  6807. to linkage_name. Invert its value. Update the function comment.
  6808. (c_type_print_varspec_suffix): Invert it at the caller.
  6809. * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
  6810. 2011-03-22 Pedro Alves <pedro@codesourcery.com>
  6811. * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
  6812. errors when reading the `stop_pc'.
  6813. * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
  6814. get_frame_pc.
  6815. 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
  6816. * NEWS: Document gdb.Write stream keyword.
  6817. 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
  6818. Revert:
  6819. 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
  6820. * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
  6821. (dwarf2_add_field): Fix new_field->accessibility for
  6822. cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
  6823. 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
  6824. PR python/12183
  6825. * python/py-function.c (fnpy_call): Treat GdbErrors differently to
  6826. other error classes. Do not print stack trace.
  6827. 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
  6828. * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
  6829. (dwarf2_add_field): Fix new_field->accessibility for
  6830. cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
  6831. 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
  6832. * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
  6833. encountering a load via a non-SP register.
  6834. 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
  6835. * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
  6836. field in returned unwinder.
  6837. 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
  6838. * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
  6839. 2012-03-21 Joel Brobecker <brobecker@adacore.com>
  6840. * ada-lang.c (replace_operator_with_call): Use xzalloc instead
  6841. of xmalloc.
  6842. 2012-03-18 Pedro Alves <pedro@codesourcery.com>
  6843. * frame.c (frame_unwind_register): Throw an error if unwinding the
  6844. register failed.
  6845. * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
  6846. an unwind stop reason.
  6847. (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
  6848. * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
  6849. UNWIND_UNAVAILABLE>: New.
  6850. * inline-frame.c (inline_frame_unwind): Install
  6851. default_frame_unwind_stop_reason.
  6852. * frame-unwind.c: Include "exceptions.h".
  6853. (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
  6854. (default_frame_unwind_stop_reason): New.
  6855. * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
  6856. (default_frame_unwind_stop_reason): Declare.
  6857. (struct frame_unwind) <stop_reason>: New function pointer.
  6858. * dummy-frame.c: Install default_frame_unwind_stop_reason.
  6859. * dwarf2-frame.c: Include exceptions.h.
  6860. (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
  6861. (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
  6862. computing the CFA. If such an error was thrown, set
  6863. unavailable_retaddr.
  6864. (dwarf2_frame_unwind_stop_reason): New.
  6865. (dwarf2_frame_this_id): Don't build a frame id if the CFA was
  6866. unavailable.
  6867. (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
  6868. (dwarf2_signal_frame_unwind): Ditto.
  6869. * amd64-tdep.c: Include "exceptions.h".
  6870. (struct amd64_frame_cache): New field "base_p".
  6871. (amd64_init_frame_cache): Clear it.
  6872. (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
  6873. Avoid reading registers with functions that throw if the register
  6874. is not necessary to compute the frame base.
  6875. (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
  6876. swallowing NOT_AVAILABLE_ERROR.
  6877. (amd64_frame_unwind_stop_reason): New.
  6878. (amd64_frame_this_id): Don't build a frame id if the frame base
  6879. was unavailable.
  6880. (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
  6881. (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
  6882. base_p if the frame base was computable.
  6883. (amd64_sigtramp_frame_unwind_stop_reason): New.
  6884. (amd64_sigtramp_frame_this_id): Don't build a frame id if the
  6885. frame base was unavailable.
  6886. (amd64_sigtramp_frame_unwind): Install
  6887. amd64_sigtramp_frame_unwind_stop_reason.
  6888. (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
  6889. base_p if the frame base was computable.
  6890. (amd64_epilogue_frame_unwind_stop_reason): New.
  6891. (amd64_epilogue_frame_this_id): Don't build a frame id if the
  6892. frame base was unavailable.
  6893. (amd64_epilogue_frame_unwind): Install
  6894. amd64_epilogue_frame_unwind_stop_reason.
  6895. * i386-tdep.c: Include "exceptions.h".
  6896. (struct i386_frame_cache): New field "base_p".
  6897. (i386_init_frame_cache): Clear it.
  6898. (i386_frame_cache_1): New, factored out from amd64_frame_cache.
  6899. Avoid reading registers with functions that throw if the register
  6900. is not necessary to compute the frame base.
  6901. (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
  6902. swallowing NOT_AVAILABLE_ERROR.
  6903. (i386_frame_unwind_stop_reason): New.
  6904. (i386_frame_this_id): Don't build a frame id if the frame base was
  6905. unavailable.
  6906. (i386_frame_prev_register): Handle unavailable SP.
  6907. (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
  6908. (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
  6909. base_p if the frame base was computable.
  6910. (i386_epilogue_frame_unwind_stop_reason): New.
  6911. (i386_epilogue_frame_this_id): Don't build a frame id if the frame
  6912. base was unavailable.
  6913. (i386_epilogue_frame_unwind): Install
  6914. i386_epilogue_frame_unwind_stop_reason.
  6915. (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
  6916. base_p if the frame base was computable.
  6917. (i386_sigtramp_frame_unwind_stop_reason): New.
  6918. (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
  6919. base was unavailable.
  6920. (i386_sigtramp_frame_unwind): Install
  6921. i386_sigtramp_frame_unwind_stop_reason.
  6922. * sentinel-frame.c (sentinel_frame_prev_register): Use the value
  6923. type's size, not the register's.
  6924. (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
  6925. * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
  6926. default_frame_unwind_stop_reason.
  6927. * alpha-tdep.c (alpha_sigtramp_frame_unwind)
  6928. (alpha_heuristic_frame_unwind): Ditto.
  6929. * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
  6930. * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
  6931. * avr-tdep.c (avr_frame_unwind): Ditto.
  6932. * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
  6933. Ditto.
  6934. * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
  6935. * frv-tdep.c (frv_frame_unwind): Ditto.
  6936. * h8300-tdep.c (h8300_frame_unwind): Ditto.
  6937. * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
  6938. * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
  6939. * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
  6940. (hppa_stub_frame_unwind): Ditto.
  6941. * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
  6942. * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
  6943. (ia64_libunwind_frame_unwind)
  6944. (ia64_libunwind_sigtramp_frame_unwind): Ditto.
  6945. * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
  6946. * lm32-tdep.c (lm32_frame_unwind): Ditto.
  6947. * m32c-tdep.c (m32c_unwind): Ditto.
  6948. * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
  6949. * m32r-tdep.c (m32r_frame_unwind): Ditto.
  6950. * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
  6951. * m68k-tdep.c (m68k_frame_unwind): Ditto.
  6952. * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
  6953. * m88k-tdep.c (m88k_frame_unwind): Ditto.
  6954. * mep-tdep.c (mep_frame_unwind): Ditto.
  6955. * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
  6956. * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
  6957. (mips_stub_frame_unwind): Ditto.
  6958. * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
  6959. * moxie-tdep.c (moxie_frame_unwind): Ditto.
  6960. * mt-tdep.c (mt_frame_unwind): Ditto.
  6961. * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
  6962. * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
  6963. * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
  6964. * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
  6965. (s390_sigtramp_frame_unwind): Ditto.
  6966. * score-tdep.c (score_prologue_unwind): Ditto.
  6967. * sh-tdep.c (sh_frame_unwind): Ditto.
  6968. * sh64-tdep.c (sh64_frame_unwind): Ditto.
  6969. * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
  6970. * sparc-tdep.c (sparc32_frame_unwind): Ditto.
  6971. * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
  6972. * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
  6973. * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
  6974. * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
  6975. * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
  6976. (sparc64obsd_trapframe_unwind): Ditto.
  6977. * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
  6978. * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
  6979. * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
  6980. * v850-tdep.c (v850_frame_unwind): Ditto.
  6981. * vax-tdep.c (vax_frame_unwind): Ditto.
  6982. * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
  6983. * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
  6984. * xtensa-tdep.c (xtensa_unwind): Ditto.
  6985. 2011-03-18 Pedro Alves <pedro@codesourcery.com>
  6986. * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
  6987. there's always a frame. Use get_frame_pc_if_available instead of
  6988. get_frame_pc, and if there's no PC available, don't look up a
  6989. symtab.
  6990. 2011-03-18 Pedro Alves <pedro@codesourcery.com>
  6991. * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
  6992. unavailable PC.
  6993. 2011-03-18 Pedro Alves <pedro@codesourcery.com>
  6994. * tracepoint.c (set_traceframe_context): Handle unavailable PC
  6995. gracefully.
  6996. 2011-03-18 Pedro Alves <pedro@codesourcery.com>
  6997. * frame.h (frame_unwind_caller_pc_if_available): Declare.
  6998. * frame.c (frame_unwind_caller_pc_if_available): New.
  6999. * stack.c (frame_info): Handle unavailable PC.
  7000. 2011-03-18 Pedro Alves <pedro@codesourcery.com>
  7001. * frame.c (frame_unwind_pc): Rename to ...
  7002. (frame_unwind_pc_if_available): ... this. New `pc' output
  7003. parameter. Change return type to int. Gracefully handle
  7004. gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
  7005. happened, or 1 otherwise.
  7006. (frame_unwind_pc): Reimplement on top of
  7007. frame_unwind_pc_if_available.
  7008. (get_frame_func): Rename to ...
  7009. (get_frame_func_if_available): New `pc' output parameter. Change
  7010. return type to int. Gracefully handle the PC not being available.
  7011. (get_frame_func): Reimplement on top of
  7012. get_frame_func_if_available.
  7013. (select_frame): Handle the PC being unavailable.
  7014. (get_prev_frame): Handle the PC being unavailable.
  7015. (get_frame_pc_if_available): New.
  7016. (get_frame_address_in_block_if_available): New.
  7017. (find_frame_sal): Handle the frame PC not being available.
  7018. * frame.h (get_frame_pc_if_available): Declare.
  7019. (get_frame_address_in_block_if_available): Declare.
  7020. (get_frame_func_if_available): Declare.
  7021. * stack.c (print_frame_info): Handle the PC being unavailable.
  7022. (find_frame_funname): Ditto.
  7023. (print_frame): Handle the PC being unavailable.
  7024. (get_frame_language): Ditto.
  7025. * blockframe.c (get_frame_block): Ditto.
  7026. * macroscope.c (default_macro_scope): Ditto.
  7027. * tui/tui-stack.c (tui_show_frame_info): Ditto.
  7028. 2011-03-18 Pedro Alves <pedro@codesourcery.com>
  7029. * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
  7030. NOT_AVAILABLE_ERROR when evaluating the location expression.
  7031. 2011-03-18 Pedro Alves <pedro@codesourcery.com>
  7032. * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
  7033. returning that the register piece is unavailable/optimized out.
  7034. (write_pieced_value): Handle get_frame_register_bytes returning
  7035. that the register piece is unavailable/optimized out when doing a
  7036. read-modify write of a bitfield.
  7037. * findvar.c (value_from_register): Handle get_frame_register_bytes
  7038. returning that the register piece is unavailable/optimized out.
  7039. * frame.c (get_frame_register_bytes): New parameters `optimizedp'
  7040. and `unavailablep'. Throw error on bad debug info. Use
  7041. frame_register instead of frame_register_read, to fill in the new
  7042. arguments.
  7043. * frame.h (get_frame_register_bytes): New parameters `optimizedp'
  7044. and `unavailablep'.
  7045. * valops.c: (value_assign): Adjust, and handle
  7046. get_frame_register_bytes failing.
  7047. * spu-tdep.c: Include exceptions.h.
  7048. (spu_software_single_step): Adjust, and handle
  7049. get_frame_register_bytes failing.
  7050. (spu_get_longjmp_target): Ditto.
  7051. * gdbarch.sh (register_to_value): Change to return int. New
  7052. parameters `optimizedp' and `unavailablep'.
  7053. * gdbarch.h, gdbarch.c: Regenerate.
  7054. * i386-tdep.c (i386_register_to_value): Adjust to new
  7055. gdbarch_register_to_value interface.
  7056. * i387-tdep.c (i387_register_to_value): Ditto.
  7057. * i387-tdep.h (i387_register_to_value): Ditto.
  7058. * alpha-tdep.c (alpha_register_to_value): Ditto.
  7059. * ia64-tdep.c (ia64_register_to_value): Ditto.
  7060. * m68k-tdep.c (m68k_register_to_value): Ditto.
  7061. * mips-tdep.c (mips_register_to_value): Ditto.
  7062. * rs6000-tdep.c (rs6000_register_to_value): Ditto.
  7063. 2011-03-18 Pedro Alves <pedro@codesourcery.com>
  7064. * findvar.c (value_of_register): Mark the value as unavailable, if
  7065. the register is unavailable.
  7066. * frame.h (frame_register_unwind): New `unavailablep' parameter.
  7067. (frame_register): New `unavailablep' parameter.
  7068. (frame_register_read): Update comment.
  7069. * frame.c (frame_register_unwind): New `unavailablep' parameter.
  7070. Set it if the register is unavailable. If the register is
  7071. unavailable, clear the output buffer.
  7072. (frame_register): New `unavailablep' parameter. Pass it down.
  7073. (frame_unwind_register): Adjust.
  7074. (put_frame_register): Adjust.
  7075. (frame_register_read): Adjust. Also return false if the register
  7076. is not available.
  7077. (frame_register_unwind_location): Adjust.
  7078. * sentinel-frame.c (sentinel_frame_prev_register): If the register
  7079. is unavailable, mark the value accordingly.
  7080. * stack.c (frame_info): Handle unavailable registers.
  7081. 2011-03-18 Pedro Alves <pedro@codesourcery.com>
  7082. * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
  7083. simplify, using regcache_cooked_read.
  7084. 2011-03-18 Pedro Alves <pedro@codesourcery.com>
  7085. * regcache.h (regcache_raw_read, regcache_raw_read_signed)
  7086. (regcache_raw_read_unsigned, regcache_raw_read_signed)
  7087. (regcache_raw_read_unsigned, regcache_raw_read_part)
  7088. (regcache_cooked_read, regcache_cooked_read_signed)
  7089. (regcache_cooked_read_unsigned, regcache_cooked_read_part)
  7090. (regcache_cooked_read_ftype): Change return to enum
  7091. register_status.
  7092. * regcache.c: Include exceptions.h
  7093. (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
  7094. (do_cooked_read): Change return to enum register_status. Always
  7095. forward to regcache_cooked_read.
  7096. (regcache_raw_read): Change return to enum register_status. If
  7097. the register is not REG_VALID, memset the buffer. Return the
  7098. register's status.
  7099. (regcache_raw_read_signed): Handle non-REG_VALID registers and
  7100. return the register's status.
  7101. (regcache_raw_read_unsigned): Ditto.
  7102. (regcache_cooked_read): Change return to enum register_status.
  7103. Assert that with read-only regcaches, the register's status must
  7104. be known. If the regcache is read-only, and the register is not
  7105. REG_VALID, memset the buffer. Return the register's status.
  7106. (regcache_cooked_read_signed): Change return to enum
  7107. register_status. Handle non-REG_VALID registers and return the
  7108. register's status.
  7109. (regcache_cooked_read_unsigned): Change return to enum
  7110. register_status. Handle non-REG_VALID registers and return the
  7111. register's status.
  7112. (regcache_xfer_part, regcache_raw_read_part)
  7113. (regcache_cooked_read_part): Change return to enum
  7114. register_status. Return the register's status.
  7115. (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
  7116. unavailable.
  7117. (regcache_dump): Handle unavailable cooked registers.
  7118. * frame.c (do_frame_register_read): Adjust interface to match
  7119. regcache_cooked_read_ftype.
  7120. * gdbarch.sh (pseudo_register_read): Change return to enum
  7121. register_status.
  7122. * gdbarch.h, gdbarch.c: Regenerate.
  7123. * i386-tdep.h (i386_pseudo_register_read): Change return to enum
  7124. register_status.
  7125. * i386-tdep.c (i386_pseudo_register_read): Change return to enum
  7126. register_status. If reading a raw register indicates the raw
  7127. register is not valid, return the raw register's status,
  7128. otherwise, return REG_VALID.
  7129. * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
  7130. register_status. Handle non-REG_VALID raw registers and return
  7131. the register's status.
  7132. * arm-tdep.c (arm_neon_quad_read)
  7133. (arm_pseudo_read): Change return to enum register_status. Handle
  7134. non-REG_VALID raw registers and return the register's status.
  7135. * avr-tdep.c (avr_pseudo_register_read): Ditto.
  7136. * frv-tdep.c (frv_pseudo_register_read): Ditto.
  7137. * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
  7138. * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
  7139. * m32c-tdep.c (m32c_move_reg_t): Change return to enum
  7140. register_status.
  7141. (m32c_raw_read, m32c_raw_write, m32c_banked_read)
  7142. (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
  7143. (m32c_part_write, m32c_cat_read, m32c_cat_write)
  7144. (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
  7145. (m32c_pseudo_register_read): Change return to enum
  7146. register_status. Adjust.
  7147. * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
  7148. enum register_status. Return the register's status.
  7149. * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
  7150. register_status. Return the register's status.
  7151. (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
  7152. * mips-tdep.c (mips_pseudo_register_read): Ditto.
  7153. * mt-tdep.c (mt_pseudo_register_read): Ditto.
  7154. * rs6000-tdep.c (move_ev_register_func): New typedef.
  7155. (e500_move_ev_register): Use it. Change return to enum
  7156. register_status. Return the register's status.
  7157. (do_regcache_raw_read): New function.
  7158. (do_regcache_raw_write): New function.
  7159. (e500_pseudo_register_read): Change return to enum
  7160. register_status. Return the register's status. Use
  7161. do_regcache_raw_read.
  7162. (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
  7163. (dfp_pseudo_register_read): Change return to enum register_status.
  7164. Return the register's status.
  7165. (vsx_pseudo_register_read): Ditto.
  7166. (efpr_pseudo_register_read): Ditto.
  7167. (rs6000_pseudo_register_read): Ditto.
  7168. * s390-tdep.c (s390_pseudo_register_read): Change return to enum
  7169. register_status. Return the register's status.
  7170. * sh64-tdep.c (pseudo_register_read_portions): New function.
  7171. (sh64_pseudo_register_read): Change return to enum
  7172. register_status. Use pseudo_register_read_portions. Return the
  7173. register's status.
  7174. * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
  7175. register_status. Return the register's status.
  7176. * sh-tdep.c (pseudo_register_read_portions): New function.
  7177. (sh_pseudo_register_read): Change return to enum register_status.
  7178. Use pseudo_register_read_portions. Return the register's status.
  7179. * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
  7180. enum register_status. Return the register's status.
  7181. * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
  7182. * spu-tdep.c (spu_pseudo_register_read_spu)
  7183. (spu_pseudo_register_read): Ditto.
  7184. * xtensa-tdep.c (xtensa_register_read_masked)
  7185. (xtensa_pseudo_register_read): Ditto.
  7186. * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
  7187. 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
  7188. * python/py-value.c (valpy_getitem): Fix formatting of error function
  7189. call.
  7190. 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
  7191. ARI fixes: Add missing internationalization markups throughout
  7192. C source files.
  7193. * darwin-nat-info.c: Ditto.
  7194. * record.c: Ditto.
  7195. * remote.c: Ditto.
  7196. * mi/mi-main.c: Ditto.
  7197. 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
  7198. ARI fixes: Add missing internationalization markups throughout
  7199. yacc files.
  7200. * c-exp.y: Ditto.
  7201. * cp-name-parser.y: Ditto.
  7202. * f-exp.y: Ditto.
  7203. * m2-exp.y: Ditto.
  7204. * objc-exp.y: Ditto.
  7205. * p-exp.y: Ditto.
  7206. 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
  7207. ARI fixes: Messages should have no trailing new lines.
  7208. * darwin-nat.c (mach_check_error): Remove trailing new line from
  7209. warning function call message.
  7210. * record.c (bfdcore_read): Idem for error call.
  7211. 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
  7212. * common/signals.c (target_signal_from_host): Add _ markup to error
  7213. function call message.
  7214. (target_signal_to_host): Add _ markup and remove trailing new line
  7215. from warning call message.
  7216. (target_signal_from_command): Add _ markup to error function call
  7217. message.
  7218. 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
  7219. PR python/12149
  7220. * python/python.c (gdbpy_write): Accept a stream argument and
  7221. operate to the appropriate stream.
  7222. (gdbpy_flush): Likewise.
  7223. (_initialize_python): Add stream constants.
  7224. (finish_python_initialization): Add GdbOutputErrorFile class.
  7225. 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
  7226. * MAINTAINERS: Add myself as a write-after-approval maintainer.
  7227. 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
  7228. * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
  7229. to store_signed_integer. Add debug message when relocating CALL
  7230. instructions. Fix formatting of debug message.
  7231. * i386-tdep.c (i386_relocate_instruction): Ditto.
  7232. 2011-03-17 Joel Brobecker <brobecker@gnat.com>
  7233. * target.h (struct target_ops): Remove to_lookup_symbol field.
  7234. (target_lookup_symbol): Delete macro.
  7235. * target.c (nosymbol, debug_to_lookup_symbol): Delete.
  7236. (update_current_target, setup_target_debug): Remove handling
  7237. of to_lookup_symbol target_ops field.
  7238. * ada-tasks.c (get_known_tasks_addr): Remove use of
  7239. target_lookup_symbol.
  7240. * coffread.c (coff_symtab_read): Likewise.
  7241. * dbxread.c (read_dbx_symtab): Ditto.
  7242. 2011-03-17 Joel Brobecker <brobecker@gnat.com>
  7243. PR gdb/12116:
  7244. * configure.ac: Add getthrds declaration check.
  7245. * configure, config.in: Regenerate.
  7246. * aix-thread.c (getthrds): Declare only if not already declared
  7247. in procinfo.h. More declaration out of get_signaled_thread to
  7248. global scope.
  7249. 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
  7250. * python/py-symtab.c: Populate symtab_object_methods,
  7251. sal_object_methods.
  7252. (stpy_is_valid): New function.
  7253. (salpy_is_valid): Ditto.
  7254. * python/py-symbol.c: Declare symbol_object_methods. Populate.
  7255. (sympy_is_valid): New function.
  7256. * python/py-objfile.c: Declare objfile_object_methods. Populate.
  7257. (objfpy_is_valid): New function.
  7258. * python/py-inferior.c: Populate inferior_object_methods.
  7259. (infpy_is_valid): New function.
  7260. * python/py-infthread.c: Populate thread_object_methods.
  7261. (thpy_is_valid): New function.
  7262. * python/py-block.c: Declare block_object_methods. Populate. Declare
  7263. block_iterator_object_methods. Populate.
  7264. (blpy_is_valid): New function.
  7265. (blpy_iter_is_valid): Ditto.
  7266. 2011-03-16 Keith Seitz <keiths@redhat.com>
  7267. * linespec.c (find_methods): Canonicalize NAME before looking
  7268. up the symbol.
  7269. (name_end): New function.
  7270. (keep_name_info): New function.
  7271. (decode_line_1): Use keep_name_info.
  7272. (decode_compound): Likewise.
  7273. * cli/cli-utils.h (remove_trailing_whitespace): New function.
  7274. * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
  7275. PR c++/12273
  7276. * linespec.c (locate_first_half): Keep overload information, too.
  7277. (decode_compound): Use a string to represent break characters
  7278. to escape the loop.
  7279. If P points to a break character, do not increment it.
  7280. For C++ and Java, keep overload information and relevant keywords.
  7281. If we cannot find a symbol, search the minimal symbols.
  7282. PR c++/11734
  7283. * linespec.c (decode_compound): Rename SAVED_ARG to
  7284. THE_REAL_SAVED_ARG.
  7285. Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
  7286. single-quotes.
  7287. Pass a valid block to lookup_symbol.
  7288. (lookup_prefix_sym): Likewise.
  7289. (find_method): Construct search name based on SYM_CLASS instead
  7290. of SAVED_ARG.
  7291. * psymtab.c (lookup_partial_symbol): Add language parameter.
  7292. (lookup_symbol_aux_psymtabs): Likewise.
  7293. Don't assume that the psymtab we found was the right one. Search
  7294. for the desired symbol in the symtab to be certain.
  7295. (psymtab_search_name): New function.
  7296. (lookup_partial_symbol): Use psymtab_search_name.
  7297. Add language parameter.
  7298. (read_symtabs_for_function): Add language parameter and pass to
  7299. lookup_partial_symbol.
  7300. (find_symbol_file_from_partial): Likewise.
  7301. 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
  7302. PR gdb/12528
  7303. * dwarf2read.c (noop_record_line): New function.
  7304. (dwarf_decode_lines): Ignore line tables for GCd functions.
  7305. 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
  7306. Fix ARI warnings about new lines at the end of messages, which
  7307. are unneeded as there is a new line added at the end of the message
  7308. automatically.
  7309. * darwin-nat.c (darwin_stop_inferior): Ditto.
  7310. * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
  7311. * dfp.c (decimal_to_number): Ditto.
  7312. * exec.c (print_section_info): Ditto.
  7313. * i386-darwin-nat.c (darwin_set_sstep): Ditto.
  7314. * osdata.c (get_osdata): Ditto.
  7315. * record.c (bfdcore_write): Ditto.
  7316. * remote-mips.c (mips_readchar): Ditto.
  7317. * remote.c (read_ptid): Ditto.
  7318. * ser-mingw.c (ser_windows_raw): Ditto.
  7319. * tracepoint.c (add_local_symbols): Ditto.
  7320. * windows-nat.c (fake_create_process): Ditto.
  7321. 2011-03-16 Tom Tromey <tromey@redhat.com>
  7322. * tracepoint.c (stop_tracing): Don't declare.
  7323. * event-top.c (after_char_processing_hook): Add `(void)'.
  7324. 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
  7325. * NEWS: Add Parameter sub-classing description.
  7326. 2011-03-16 Kai Tietz <ktietz@redhat.com>
  7327. * MAINTAINERS: Update my e-mail address.
  7328. 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
  7329. * MAINTAINERS: Add myself for write after approval privileges.
  7330. 2011-03-15 Michael Snyder <msnyder@vmware.com>
  7331. * frame.c (find_frame_sal): Assert sym is not null.
  7332. * dbxread.c (process_one_symbol): Assert 'name' is not null.
  7333. * objc-lang.c (selectors_info): Check strchr for null result.
  7334. * stabsread.c (define_symbol): Guard against bad stabstring input.
  7335. 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
  7336. Remove trailing spaces and tabulations from pascal language
  7337. support sources.
  7338. p-exp.y: Ditto.
  7339. p-lang.c: Ditto.
  7340. p-lang.h: Ditto.
  7341. p-valprint.c: Ditto.
  7342. 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
  7343. * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
  7344. than LOW. Comment it.
  7345. (read_partial_die): Call complaint for inappropriate zero LOWPC or
  7346. HIGHPC not strictly higher than LOWPC.
  7347. 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
  7348. Fix formatting of function declarations returning a pointer in
  7349. previous commit.
  7350. * varobj.c (varobj_add_child): Ditto.
  7351. * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
  7352. * inferior.h (get_displaced_step_closure_by_addr): Ditto.
  7353. 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
  7354. * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
  7355. for the "generic" vector ABI used with GCC 4.3 and later.
  7356. (ppc64_sysv_abi_return_value): Likewise.
  7357. 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
  7358. * infcall.c (call_function_by_hand): Function return value is
  7359. always a non_lval, even when using struct_return.
  7360. 2011-03-15 Pedro Alves <pedro@codesourcery.com>
  7361. * printcmd.c (ALL_DISPLAYS_SAFE): New.
  7362. (map_display_numbers): New.
  7363. (do_delete_display): New.
  7364. (undisplay_command): Use map_display_numbers.
  7365. (do_enable_disable_display): New.
  7366. (enable_disable_display_command): New function.
  7367. (enable_display): Delete.
  7368. (enable_display_command): New.
  7369. (disable_display_command): Reimplement.
  7370. (_initialize_printcmd): Adjust "enable display" command to use
  7371. `enable_display_command' as callback.
  7372. 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
  7373. * NEWS: Add Python breakpoint 'stop' operation.
  7374. 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
  7375. * NEWS: Delete duplicate entry. Fix typo.
  7376. 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
  7377. Fix ARI warning about function names in first column.
  7378. Put prototype declaration on same line as return type.
  7379. * objc-exp.y: Ditto.
  7380. * p-exp.y: Ditto.
  7381. * python/py-stopevent.h: Ditto.
  7382. For long function names, split parameters to
  7383. allow function name on same line as return type.
  7384. * solib-pa64.c: Ditto.
  7385. * varobj.c: Ditto.
  7386. * varobj.h: Ditto.
  7387. For long function declaration, use single line.
  7388. * hppa-tdep.h: Ditto.
  7389. * inferior.h: Ditto.
  7390. 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
  7391. * python/python.h: Declare gdbpy_should_stop and
  7392. gdbpy_breakpoint_has_py_cond.
  7393. * python/python.c: Add python.h to includes. Remove python.h from
  7394. HAVE_PYTHON definition
  7395. (gdbpy_should_stop): New dummy function.
  7396. (gdbpy_breakpoint_has_py_cond): New dummy function.
  7397. * python/py-breakpoint.c (bppy_init): Rewrite to allow
  7398. sub-classing capabilities.
  7399. (gdbpy_should_stop): New function.
  7400. (gdbpy_breakpoint_has_py_cond): New function.
  7401. (local_setattro): New function.
  7402. * breakpoint.c (condition_command): Add check for Python 'stop'
  7403. operation.
  7404. (bpstat_check_breakpoint_conditions): Execute Python 'stop'
  7405. operation function as part of stop/continue tests.
  7406. 2011-03-14 Tom Tromey <tromey@redhat.com>
  7407. PR gdb/12576:
  7408. * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
  7409. (needs_frame_dwarf_call): Likewise.
  7410. 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
  7411. Fix ARI warning about functions without parameters that do not
  7412. use (void).
  7413. * breakpoint.c (all_tracepoints): Replace () by (void).
  7414. * f-exp.y (match_string_literal): Ditto.
  7415. (yylex): Ditto.
  7416. * m2-exp.y (yylex): Ditto.
  7417. * mep-tdep.c (current_me_module): Ditto.
  7418. (current_options): Ditto.
  7419. (current_cop_data_bus_width): Ditto.
  7420. (current_cr_names): Ditto.
  7421. (current_cr_is_float): Ditto.
  7422. (current_ccr_names): Ditto.
  7423. * objc-exp.y (yylex): Ditto.
  7424. * p-exp.y (yylex): Ditto.
  7425. * remote.c (send_interrupt_sequence): Ditto.
  7426. * tracepoint.c (current_trace_status): Ditto.
  7427. * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
  7428. * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
  7429. 2011-03-11 Michael Snyder <msnyder@vmware.com>
  7430. * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
  7431. * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
  7432. (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
  7433. * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
  7434. * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
  7435. * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
  7436. (delete_async_event_handler): Ditto.
  7437. * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
  7438. * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
  7439. * top.c (set_verbose): Assert showcmd was found.
  7440. 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
  7441. * xtensa-tdep.c (warning_once): Correct style issues.
  7442. 2011-03-11 Yao Qi <yao@codesourcery.com>
  7443. * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
  7444. 2011-03-11 Andreas Schwab <schwab@redhat.com>
  7445. * common/aclocal.m4: Remove.
  7446. 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
  7447. * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
  7448. (xtensa_write_register, xtensa_read_register): Likewise.
  7449. (xtensa_hextochar): Removed.
  7450. (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
  7451. 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
  7452. * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
  7453. (xtensa_call0_frame_cache_t): Update comments. New fields added.
  7454. (xtensa_alloc_frame_cache): Add initialization for new fields.
  7455. (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
  7456. (warning_once): New function.
  7457. (xtensa_insn_kind): New item c0opc_and.
  7458. (call0_classify_opcode): Add the case for AND instruction.
  7459. (call0_track_op): Change arguments. New local variable litbase.
  7460. Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
  7461. c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
  7462. in the prologue.
  7463. Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
  7464. (call0_analyze_prologue): Update the comments. Change arguments.
  7465. Add the variety of updates to handle extended prologues, which now can
  7466. conduct dynamic stack adjustments.
  7467. (call0_frame_cache): Likewise.
  7468. (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
  7469. (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
  7470. 2011-03-10 Michael Snyder <msnyder@vmware.com>
  7471. * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
  7472. (cmd_qtframe): Ditto.
  7473. (cmd_qtbuffer): Ditto.
  7474. (cmd_bigqtbuffer): Ditto.
  7475. 2011-03-10 Tom Tromey <tromey@redhat.com>
  7476. * tracepoint.c (trace_actions_command): Update.
  7477. * thread.c (thread_apply_command): Update.
  7478. * reverse.c (delete_bookmark_command): Update.
  7479. (bookmarks_info): Update.
  7480. * printcmd.c (undisplay_command): Update.
  7481. * memattr.c (mem_enable_command): Update.
  7482. (mem_disable_command): Update.
  7483. (mem_delete_command): Update.
  7484. * inferior.c (detach_inferior_command): Update.
  7485. (kill_inferior_command): Update.
  7486. (remove_inferior_command): Update.
  7487. * cli/cli-utils.h (struct get_number_or_range_state): New.
  7488. (init_number_or_range): Declare.
  7489. (get_number_or_range): Update.
  7490. * cli/cli-utils.c (init_number_or_range): New function.
  7491. (get_number_or_range): Change 'pp' parameter to 'state'. Remove
  7492. static variables.
  7493. (number_is_in_list): Update.
  7494. * breakpoint.h (get_tracepoint_by_number): Update.
  7495. * breakpoint.c (map_breakpoint_numbers): Update for change to
  7496. get_number_or_range.
  7497. (find_location_by_number): Use get_number, not
  7498. get_number_or_range.
  7499. (trace_pass_set_count): New function.
  7500. (trace_pass_command): Update for change to get_number_or_range.
  7501. Rework loop logic.
  7502. (get_tracepoint_by_number): Remove 'multi_p' parameter; add
  7503. 'state' parameter.
  7504. 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
  7505. * python/py-param.c (add_setshow_generic): Add set/show callback
  7506. parameters. Register Python object context.
  7507. (get_show_value): New function.
  7508. (get_set_value): New function.
  7509. (call_doc_function): New function.
  7510. (get_doc_string): Move behind get_show_value/get_set_value.
  7511. 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
  7512. * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
  7513. 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
  7514. * xtensa-tdep.c (xtensa_read_register): Add comment.
  7515. (xtensa_write_register): Likewise.
  7516. (xtensa_hextochar): Add comment and update to match coding conventions.
  7517. (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
  7518. (execute_l32e, execute_s32e, execute_code): Update comments.
  7519. (xtensa_exception_handler_t): Update to match coding conventions.
  7520. (xtensa_insn_kind): Likewise.
  7521. 2011-03-09 Michael Snyder <msnyder@vmware.com>
  7522. * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
  7523. 2011-03-09 Pedro Alves <pedro@codesourcery.com>
  7524. * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
  7525. 2011-03-09 Tom Tromey <tromey@redhat.com>
  7526. * thread.c (restore_selected_frame): Handle frame_level == -1.
  7527. (make_cleanup_restore_current_thread): Use
  7528. get_selected_frame_if_set.
  7529. * frame.h (get_selected_frame_if_set): Declare.
  7530. * frame.c (get_selected_frame_if_set): New function.
  7531. 2011-03-09 Pedro Alves <pedro@codesourcery.com>
  7532. * cli/cli-cmds.c (shell_escape): Use lbasename.
  7533. * coffread.c (coff_start_symtab): Constify parameter.
  7534. (complete_symtab): Constify `name' parameter.
  7535. (coff_symtab_read): Constify `filestring' local.
  7536. (coff_getfilename): Constify return and `result' local.
  7537. Use lbasename.
  7538. * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
  7539. * linux-fork.c (info_checkpoints_command): Use lbasename.
  7540. * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
  7541. * minsyms.c (lookup_minimal_symbol): Use lbasename.
  7542. * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
  7543. * procfs.c (procfs_make_note_section): Use lbasename.
  7544. * tui/tui-io.c (printable_part): Constity return and parameter.
  7545. Use lbasename.
  7546. (print_filename): Constify parameters, and local `s'.
  7547. (tui_rl_display_match_list): Constify local `temp'.
  7548. 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
  7549. Revert:
  7550. 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
  7551. Fix DWARF-3+ DW_AT_accessibility default assumption.
  7552. * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
  7553. cu->header.version >= 3.
  7554. 2011-03-09 Yao Qi <yao@codesourcery.com>
  7555. * common/Makefile.in: Remove.
  7556. * common/configure: Remove.
  7557. * common/configure.ac: Remove.
  7558. 2011-03-09 Yao Qi <yao@codesourcery.com>
  7559. Revert:
  7560. 2011-02-11 Yao Qi <yao@codesourcery.com>
  7561. * common/Makefile.in: Add copyright header.
  7562. 2011-02-11 Yao Qi <yao@codesourcery.com>
  7563. * Makefile.in: Remove signals.o from COMMON_OBS. Link
  7564. libcommon.a.
  7565. * configure.ac: Add common to sub dir.
  7566. * configure: Regenerate.
  7567. 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
  7568. * xtensa-tdep.c (call0_ret): New function.
  7569. (xtensa_skip_prologue): Speed up analysis.
  7570. 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
  7571. * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
  7572. while executing MI command -data-list-changed-registers.
  7573. 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
  7574. * xtensa-tdep.c (xtensa_read_register): New function.
  7575. (xtensa_write_register): New function.
  7576. (xtensa_find_register_by_name): New function.
  7577. (xtensa_windowed_frame_cache): Update comments in type description.
  7578. (xtensa_frame_cache): Likewise.
  7579. (xtensa_window_interrupt_insn): New function.
  7580. (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
  7581. (xtensa_insn_kind): Add new instructions.
  7582. (rwx_special_register): New function.
  7583. (call0_classify_opcode): Add new instructions to the analysis.
  7584. (a0_saved, a7_saved, a11_saved): New variables.
  7585. (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
  7586. (execute_l32e): New function.
  7587. (execute_s32e): New function.
  7588. (xtensa_exception_handler_t): New type.
  7589. (execute_code): New function.
  7590. (xtensa_window_interrupt_frame_cache): New function to conduct frame
  7591. analysis for Xtensa Window Exception handlers.
  7592. 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
  7593. * xtensa-tdep.c (TX_PS): New.
  7594. (windowing_enabled): Update to count for Call0 ABI.
  7595. (xtensa_hextochar): New.
  7596. (xtensa_init_reggroups): Make algorithm generic.
  7597. (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
  7598. 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
  7599. * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
  7600. 2011-03-08 Michael Snyder <msnyder@vmware.com>
  7601. * i386-tdep.c (i386_follow_jump): Check return value of
  7602. target_read_memory.
  7603. (i386_analyze_struct_return): Ditto.
  7604. (i386_skip_probe): Ditto.
  7605. (i386_match_insn): Ditto.
  7606. (i386_skip_noop): Ditto.
  7607. (i386_analyze_frame_setup): Ditto.
  7608. (i386_analyze_register_saves): Ditto.
  7609. (i386_skip_prologue): Ditto.
  7610. (i386_skip_main_prologue): Ditto.
  7611. * target.c (read_whatever_is_readable): Fix memory leak.
  7612. * i386-tdep.c (i386_process_record): Document fall through.
  7613. 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
  7614. Fix DWARF-3+ DW_AT_accessibility default assumption.
  7615. * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
  7616. cu->header.version >= 3.
  7617. 2011-03-08 Pedro Alves <pedro@codesourcery.com>
  7618. * remote.c (remote_check_symbols): Skip if the target has no
  7619. execution.
  7620. 2011-03-08 Joel Brobecker <brobecker@adacore.com>
  7621. * target.c (read_whatever_is_readable): Reformat comment,
  7622. with a minor typo fix. Minor reformatting of the code.
  7623. 2011-03-08 Yao Qi <yao@codesourcery.com>
  7624. * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
  7625. (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
  7626. Use cached result instead of calling displaced_in_arm_mode again.
  7627. (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
  7628. (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
  7629. (cleanup_copro_load_store, copy_copro_load_store): Likewise.
  7630. (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
  7631. (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
  7632. (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
  7633. (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
  7634. (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
  7635. (cleanup_block_load_pc, copy_block_xfer): Likewise.
  7636. * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
  7637. (arm_catch_kernel_helper_return): Likewise.
  7638. * arm-tdep.h : Update function declarations.
  7639. 2011-03-07 Michael Snyder <msnyder@vmware.com>
  7640. * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
  7641. * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
  7642. * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
  7643. * elfread.c (elf_symtab_read): Stop memory leak.
  7644. * main.c (captured_main): Fix memory leak.
  7645. 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
  7646. * ada-lang.c (compare_names): Call is_name_suffix with string1
  7647. instead of string2.
  7648. 2011-03-07 Tom Tromey <tromey@redhat.com>
  7649. * xcoffread.c (xcoff_sym_fns): Update.
  7650. * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
  7651. (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
  7652. * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
  7653. (symbol_file_add_with_addrs_or_offsets): Likewise.
  7654. (reread_symbols): Handle OBJF_PSYMTABS_READ.
  7655. * somread.c (som_sym_fns): Update.
  7656. * psymtab.h (require_partial_symbols): Declare.
  7657. * psymtab.c (require_partial_symbols): New function.
  7658. (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
  7659. (ALL_OBJFILE_PSYMTABS): Undef.
  7660. (ALL_PSYMTABS): Move from psympriv.h.
  7661. (lookup_partial_symtab, find_pc_sect_psymtab)
  7662. (lookup_symbol_aux_psymtabs, relocate_psymtabs)
  7663. (find_last_source_symtab_from_partial)
  7664. (forget_cached_source_info_partial)
  7665. (print_psymtab_stats_for_objfile, read_symtabs_for_function)
  7666. (expand_partial_symbol_tables, read_psymtabs_with_filename)
  7667. (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
  7668. (find_symbol_file_from_partial, map_matching_symbols_psymtab)
  7669. (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
  7670. Use ALL_OBJFILE_PSYMTABS_REQUIRED.
  7671. * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
  7672. * objfiles.h (OBJF_PSYMTABS_READ): New macro.
  7673. * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
  7674. psymtabs.
  7675. * mipsread.c (ecoff_sym_fns): Update.
  7676. * machoread.c (macho_sym_fns): Update.
  7677. * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
  7678. (read_psyms): New function.
  7679. (elf_sym_fns, elf_sym_fns_gdb_index): Update.
  7680. (elf_sym_fns_lazy_psyms): New global.
  7681. * dwarf2read.c (dwarf2_initialize_objfile): Don't call
  7682. dwarf2_build_psymtabs.
  7683. * dbxread.c (aout_sym_fns): Update.
  7684. * coffread.c (coff_sym_fns): Update.
  7685. 2011-03-07 Tom Tromey <tromey@redhat.com>
  7686. * infrun.c (print_exited_reason): Include inferior id and pid in
  7687. message.
  7688. 2011-03-07 Tom Tromey <tromey@redhat.com>
  7689. * target.h (struct target_ops) <to_has_execution>: Add ptid_t
  7690. parameter.
  7691. (target_has_execution_1): Update.
  7692. (target_has_execution_current): Declare.
  7693. (target_has_execution): Call target_has_execution_current.
  7694. (default_child_has_execution): Update.
  7695. * target.c (default_child_has_execution): Add 'the_ptid'
  7696. parameter.
  7697. (target_has_execution_1): Likewise.
  7698. (target_has_execution_current): New function.
  7699. (add_target): Update.
  7700. (init_dummy_target): Update.
  7701. * remote-m32r-sdi.c (m32r_has_execution): New function.
  7702. (init_m32r_ops): Use it.
  7703. * record.c (record_core_has_execution): Now static. Add
  7704. 'the_ptid' parameter.
  7705. * inferior.c (have_live_inferiors): Don't save current thread.
  7706. Use target_has_execution_1.
  7707. 2011-03-07 Yao Qi <yao@codesourcery.com>
  7708. * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
  7709. 2011-03-07 Joel Brobecker <brobecker@adacore.com>
  7710. * elfread.c (elf_symtab_read): Minor reformatting.
  7711. 2011-03-07 Joel Brobecker <brobecker@adacore.com>
  7712. * objc-lang.c (selectors_info): Minor reformatting.
  7713. 2011-03-07 Joel Brobecker <brobecker@adacore.com>
  7714. * ada-lang.c (compare_names): Add FALLTHROUGH comment.
  7715. 2011-03-07 Joel Brobecker <brobecker@adacore.com>
  7716. Michael Snyder <msnyder@vmware.com>
  7717. * ada-valprint.c (ada_val_print_array): Move the declaration of
  7718. "byte_order" and "elttype" inside the block where these variables
  7719. are actually used. Remove some special handling for the case
  7720. where "elttype" and "eltlen" are null. Replace by a comment
  7721. and a couple of assertion checks.
  7722. 2011-03-05 Michael Snyder <msnyder@vmware.com>
  7723. * source.c (add_path): Replace semicolon at end of block.
  7724. * dwarf2expr.c (execute_stack_op): Ditto.
  7725. 2011-03-05 Mike Frysinger <vapier@gentoo.org>
  7726. * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
  7727. * configure.tgt (bfin-*-*linux*): Define gdb_sim.
  7728. (bfin-*-*): Likewise.
  7729. 2011-03-05 Michael Snyder <msnyder@vmware.com>
  7730. * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
  7731. * mdebugread.c (parse_symbol): Ditto.
  7732. * parse.c (parse_exp_in_context): Ditto.
  7733. * source.c (add_path): Ditto.
  7734. * utils.c (gnu_debuglink_crc32): Ditto.
  7735. * varobj.c (variable_language): Ditto.
  7736. * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
  7737. 2011-03-04 Michael Snyder <msnyder@vmware.com>
  7738. * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
  7739. * symfile.c (simple_overlay_update): Check for null return value
  7740. from lookup_minimal_symbol.
  7741. * xml-syscall.c (syscall_start_syscall): Assert name is non null.
  7742. 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
  7743. * eval.c (parse_and_eval_address_1): Remove function.
  7744. * linespec.c (decode_indirect): Call parse_to_comma_and_eval
  7745. instead of parse_and_eval_address_1.
  7746. * value.h (parse_and_eval_address_1): Remove prototype.
  7747. 2011-03-04 Michael Snyder <msnyder@vmware.com>
  7748. * remote.c (putpkt_binary): Document that case stmt falls through.
  7749. 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
  7750. * breakpointc (print_it_typical): Move NULL check from here...
  7751. (print_bp_stop_message): ... to here.
  7752. 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
  7753. * breakpoint.c (enable_command): Use break instead of continue,
  7754. and fill in a missing break.
  7755. (disable_command): Ditto.
  7756. 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
  7757. * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
  7758. (terminal_save_ours): Remove misleading comment.
  7759. (inflow_inferior_data_cleanup): Free ttystate.
  7760. (inflow_inferior_exit): Likewise.
  7761. (copy_terminal_info): Copy ttystate.
  7762. * serial.c (serial_copy_tty_state): New function.
  7763. * serial.h (serial_copy_tty_state): Add prototype.
  7764. (struct serial_ops): Add copy_tty_state callback.
  7765. * ser-base.c (ser_base_copy_tty_state): New function.
  7766. * ser-base.h (ser_base_copy_tty_state): Add prototype.
  7767. * ser-go32.c (dos_copy_tty_state): New function.
  7768. (dos_ops): Install copy_tty_state callback.
  7769. * ser-mingw.c (_initialize_ser_windows): Likewise.
  7770. * ser-pipe.c (_initialize_ser_pipe): Likewise.
  7771. * ser-unix.c (hardwire_copy_tty_state): New function.
  7772. (_initialize_ser_hardwire): Install it.
  7773. 2011-03-04 Michael Snyder <msnyder@vmware.com>
  7774. * breakpoint.c (create_breakpoint): Add missing break statement.
  7775. Reverting this patch:
  7776. * infcall.c (call_function_by_hand): Add break statements for lint.
  7777. Reverting this patch:
  7778. * cli/cli-script.c (script_from_file): Add break for lint.
  7779. 2011-03-04 Michael Snyder <msnyder@vmware.com>
  7780. * solib.c (reload_shared_libraries_1): Close memory leak.
  7781. 2011-03-03 Tom Tromey <tromey@redhat.com>
  7782. PR gdb/12538:
  7783. * dwarf2read.c (process_psymtab_comp_unit): Handle case where
  7784. DW_STRING is NULL.
  7785. 2011-03-03 Michael Snyder <msnyder@vmware.com>
  7786. * remote-fileio.c (remote_fileio_func_fstat): Initialize all
  7787. fields of struct 'st' to zero.
  7788. * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
  7789. sal.pspace before calling set_current_source_symtab_and_line.
  7790. 2011-03-03 Yao Qi <yao@codesourcery.com>
  7791. * Makefile.in (configure-common): Remove. Let Makefile
  7792. in dir common to rebuild itself.
  7793. (common/Makefile): Likewise.
  7794. 2011-03-03 Joel Brobecker <brobecker@adacore.com>
  7795. * utils.c (parse_escape): Add i18n markup in error message.
  7796. 2011-03-03 Yao Qi <yao@codesourcery.com>
  7797. * arm-tdep.c (shifted_reg_val): Replace magic number 15 with
  7798. ARM_PC_REGNUM.
  7799. (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
  7800. (displaced_write_reg, displaced_read_reg): Likewise.
  7801. (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
  7802. (cleanup_block_load_pc, copy_block_xfer): Likewise.
  7803. (cleanup_branch): Replace magic number 14 and 15 with
  7804. ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
  7805. 2011-03-02 Michael Snyder <msnyder@vmware.com>
  7806. * maint.c (maintenance_do_deprecate): No need to check for NULL.
  7807. * cli/cli-script.c (script_from_file): Add break for lint.
  7808. * mdebugread.c (parse_partial_symbols): Fix indent.
  7809. * target-descriptions.c (tdesc_gdb_type): No need to call
  7810. xstrdup, callee saves a copy.
  7811. * printcmd.c (print_scalar_formatted): Use strncpy for safety.
  7812. * infcall.c (call_function_by_hand): Add break statements for lint.
  7813. * utils.c (parse_escape): Escape the escape char.
  7814. * python/py-inferior.c (build_inferior_list): Error out if
  7815. PyList_Append fails.
  7816. (gdbpy_inferiors): Error out if build_inferior_list fails.
  7817. * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
  7818. a function call.
  7819. * record.c (record_restore): Move printf to before error return.
  7820. 2011-03-02 Yao Qi <yao@codesourcery.com>
  7821. * arm-tdep.h (struct displaced_step_closure): Add two new fields
  7822. is_thumb and insn_size.
  7823. * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
  7824. on both ARM and Thumb mode.
  7825. (arm_process_displaced_insn): Set is_thumb and insn_size.
  7826. (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
  7827. (arm_displaced_step_fixup): Likewise.
  7828. 2011-03-01 Michael Snyder <msnyder@vmware.com>
  7829. * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
  7830. * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
  7831. * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
  7832. * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
  7833. * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
  7834. with xmalloc.
  7835. * ada-lang.c (aggregate_assign_others): Rename inner scope variable
  7836. which shadows function parameter.
  7837. * tracepoint.c (create_tsv_from_upload): Superfluous call
  7838. to xstrdup. Callee already calls xstrdup.
  7839. * linespec.c (decode_line_1): Remove unnecessary null check.
  7840. * tracepoint.c (scope_info): Fix mem leak, remove underused
  7841. variable.
  7842. * python/py-prettyprint.c (apply_val_pretty_printer): Remove
  7843. superfluous null check.
  7844. * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
  7845. (value_of_builtin_frame_fp_reg): Ditto.
  7846. * event-top.c (display_gdb_prompt): Remove superfluous null check.
  7847. * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
  7848. be null.
  7849. * linespec.c (decode_line_1): Check for null before dereference.
  7850. * reverse.c (record_restore): Move null-check to before pointer
  7851. dereference.
  7852. * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
  7853. * objc-lang.c (selectors_info): Add explanitory comment.
  7854. (classes_info): Ditto.
  7855. 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
  7856. * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
  7857. (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
  7858. versions of the trampoline. Handle Thumb vs. ARM addresses.
  7859. (arm_kernel_linux_restart_syscall_tramp_frame): New global.
  7860. (arm_linux_init_abi): Install it.
  7861. * arm-tdep.c (arm_psr_thumb_bit): Make global.
  7862. * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
  7863. 2011-02-28 Michael Snyder <msnyder@vmware.com>
  7864. * ui-out.c (ui_out_field_core_addr): Make local char buffer
  7865. a little bigger, to avoid possibility of an overflow.
  7866. * breakpoint.c (breakpoint_adjustment_warning): Make local char
  7867. buffers a little bigger, to avoid possibility of an overflow.
  7868. * coffread.c (coff_getfilename): Add check to avoid overflow.
  7869. * objc-lang.c (selectors_info): Add a small safety margin to
  7870. avoid overflow.
  7871. (classes_info): Error out on too long REGEXP.
  7872. * infrun.c (handle_inferior_event): Remove unused function call.
  7873. * fork-child.c (fork_inferior): Remove ifdef'd code and
  7874. unused variable.
  7875. * linux-thread-db.c (attach_thread): Discard unused value.
  7876. * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
  7877. * remote.c (remote_get_noisy_reply): Discard unused value.
  7878. (remote_vcont_resume): Ditto.
  7879. (remote_stop_ns): Ditto.
  7880. * linespec.c (decode_objc): Delete unused variable.
  7881. * tui/tui-regs.c (tui_register_format): Delete unused variable.
  7882. * dwarf2read.c (add_partial_symbol): Discard unused values.
  7883. (read_base_type): Delete unused variable.
  7884. * dbxread.c (read_dbx_symtab): Discard unused value.
  7885. * eval.c (evaluate_subexp_standard): Delete unused variable,
  7886. and discard unused values.
  7887. * infcmd.c (_initialize_infcmd): Discard unused values.
  7888. * stabsread.c (rs6000_builtin_type): Missing break statement.
  7889. * dbxread.c (process_one_symbol): Discard unused value.
  7890. * coffread.c (coff_end_symtab): Delete unused variable.
  7891. * dwarf2read.c (dw2_get_file_names): Discard unused value.
  7892. (dwarf2_add_typedef): Delete unused variable.
  7893. (read_namespace): Ditto.
  7894. (dwarf_decode_macros): Ditto.
  7895. * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
  7896. * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
  7897. * p-valprint.c (pascal_val_print): Discard unused value.
  7898. * utils.c (nquery): Call va_end before return;
  7899. (yquery): Ditto.
  7900. (query): Ditto.
  7901. * proc-service.c (ps_plog): Call va_end before return.
  7902. 2011-02-28 Tom Tromey <tromey@redhat.com>
  7903. * python/python.c (gdbpy_value_cst): New global.
  7904. (_initialize_python): Initialize it.
  7905. * python/python-internal.h (gdbpy_value_cst): Declare.
  7906. * python/py-value.c (convert_value_from_python): Use
  7907. gdbpy_value_cst.
  7908. 2011-02-28 Michael Snyder <msnyder@vmware.com>
  7909. * python/py-cmd.c (cmdpy_init): Fix memory leak.
  7910. * breakpoint.c (catch_syscall_completer): Free malloced list.
  7911. * jv-lang.c (java_primitive_type_from_name): Add missing break.
  7912. * opencl-lang.c (lval_func_check_validity): Rename inner variables.
  7913. (lval_func_check_synthetic_pointer): Ditto.
  7914. (lval_func_free_closure): Fix use-after-free.
  7915. 2011-02-28 Tom Tromey <tromey@redhat.com>
  7916. * psymtab.c (expand_partial_symbol_tables): Use
  7917. ALL_OBJFILE_PSYMTABS.
  7918. 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
  7919. * objc-lang.c (selectors_info): Error on too long REGEXP.
  7920. 2011-02-28 Michael Snyder <msnyder@vmware.com>
  7921. * python/py-param.c (set_parameter_value): Add missing
  7922. break statement.
  7923. * linux-record.c (record_linux_system_call): Add missing
  7924. break statement.
  7925. 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
  7926. * breakpoint.c (print_one_breakpoint_location): Remove unused
  7927. argument PRINT_ADDRESS_BITS. Update callers.
  7928. (print_one_breakpoint): Likewise.
  7929. 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
  7930. * breakpoint.c (wrap_indent_at_field): New function.
  7931. (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
  7932. Allocate ui_stream locally instead of using STB argument.
  7933. (print_one_breakpoint_location): Update call.
  7934. * ui-out.c (ui_out_query_field): New function.
  7935. * ui-out.h (ui_out_query_field): Add prototype.
  7936. 2011-02-28 Joel Brobecker <brobecker@adacore.com>
  7937. From Michael Snyder <msnyder@vmware.com>
  7938. * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
  7939. 2011-02-27 Michael Snyder <msnyder@vmware.com>
  7940. * objc-lang.c (selectors_info): Prevent string overrun.
  7941. * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
  7942. error in strncpy.
  7943. * symtab.c (rbreak_command): Move variable 'file_name' to
  7944. outer scope.
  7945. * d-valprint.c (dynamic_array_type): Avoid shadowing a function
  7946. param with a local variable of the same name.
  7947. 2011-02-27 Michael Snyder <msnyder@vmware.com>
  7948. * value.c (value_from_history_ref): New function.
  7949. * value.h (value_from_history_ref): Export.
  7950. * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
  7951. to parse value history references.
  7952. * cli/cli-utils.h (get_number_trailer): Update comment.
  7953. 2011-02-27 Michael Snyder <msnyder@vmware.com>
  7954. * inferior.c (detach_inferior_command): Use get_number_or_range.
  7955. (kill_inferior_command): Ditto.
  7956. (remove_inferior_command): Ditto.
  7957. (initialize_inferiors): Make command names plural.
  7958. Update help strings.
  7959. 2011-02-27 Michael Snyder <msnyder@vmware.com>
  7960. * darwin-nat-info.c: Fix comment typo.
  7961. * dwarf2expr.h: Ditto.
  7962. * fbsd-nat.c: Ditto.
  7963. * fbsd-nat.h: Ditto.
  7964. * frame-unwind.h: Ditto.
  7965. * frame.h: Ditto.
  7966. * hppa-hpux-tdep.c: Ditto.
  7967. * i386-linux-nat.c: Ditto.
  7968. * linux-nat.c: Ditto.
  7969. * nbsd-nat.c: Ditto.
  7970. * nbsd-nat.h: Ditto.
  7971. * ppc-linux-tdep.c: Ditto.
  7972. * serial.c: Ditto.
  7973. * ui-file.h: Ditto.
  7974. * tui/tui-winsource.c: Ditto.
  7975. 2011-02-26 Michael Snyder <msnyder@vmware.com>
  7976. * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
  7977. * maint.c (maintenance_do_deprecate): Plug a memory leak.
  7978. * dwarf2loc.c (insert_bits): Avoid shadowing a function param
  7979. with a local variable of the same name.
  7980. * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
  7981. param with a local variable of the same name.
  7982. (i387_supply_xsave): Ditto.
  7983. * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
  7984. that it does not shadow a function parameter.
  7985. * i386-nat.c (i386_length_and_rw_bits): Document that case
  7986. statement is meant to fall through.
  7987. * expprint.c (dump_subexp_body_standard): Document that case
  7988. statement is meant to fall through.
  7989. * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
  7990. dead if statement. Condition can't be false.
  7991. 2011-02-25 Michael Snyder <msnyder@vmware.com>
  7992. * arm-tdep.c: Fix typos in comments.
  7993. * bsd-uthread.c: Ditto.
  7994. * completer.c: Ditto.
  7995. * corelow.c: Ditto.
  7996. * cp-namespace.c: Ditto.
  7997. * cp-support.c: Ditto.
  7998. * cris-tdep.c: Ditto.
  7999. * dbxread.c: Ditto.
  8000. * dwarf2read.c: Ditto.
  8001. * frame.h: Ditto.
  8002. * gdbtypes.h: Ditto.
  8003. * inferior.h: Ditto.
  8004. * mdebugread.c: Ditto.
  8005. * mips-tdep.c: Ditto.
  8006. * ppc-linux-nat.c: Ditto.
  8007. * ppc-linux-tdep.c: Ditto.
  8008. * printcmd.c: Ditto.
  8009. * sol-thread.c: Ditto.
  8010. * solib-frv.c: Ditto.
  8011. * solist.h: Ditto.
  8012. * sparc64-tdep.c: Ditto.
  8013. * spu-tdep.c: Ditto.
  8014. * stabsread.c: Ditto.
  8015. * symfile.c: Ditto.
  8016. * valops.c: Ditto.
  8017. * varobj.c: Ditto.
  8018. * vax-nat.c: Ditto.
  8019. * python/py-block.c: Ditto.
  8020. * python/py-symbol.c: Ditto.
  8021. * python/py-symtab.c: Ditto.
  8022. * python/py-value.c: Ditto.
  8023. * tui/tui-win.c: Ditto.
  8024. 2011-02-25 Michael Snyder <msnyder@vmware.com>
  8025. * inferior.c (print_inferior): Accept a string instead of an int
  8026. for requested_inferiors, and use get_number_or_range to parse it.
  8027. (info_inferiors_command): Pass args string to print_inferior.
  8028. (initialize_inferiors): Change help string for info inferiors.
  8029. * inferior.h (print_inferior): Export prototype change.
  8030. 2011-02-25 Tom Tromey <tromey@redhat.com>
  8031. * common/ax.def (invalid2): Set to 0x31.
  8032. 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
  8033. * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
  8034. L and plongest.
  8035. (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
  8036. use L and plongest.
  8037. (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
  8038. 2011-02-24 Michael Snyder <msnyder@vmware.com>
  8039. * Makefile.in (clean): Make clean should remove generated files
  8040. observer.h and observer.inc.
  8041. 2011-02-24 Joel Brobecker <brobecker@adacore.com>
  8042. Revert the following patch (not approved yet):
  8043. 2011-02-21 Hui Zhu <teawater@gmail.com>
  8044. * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
  8045. * ax-gdb.c (gen_printf_expr_callback): New function.
  8046. * ax-gdb.h (gen_printf_expr_callback): Forward declare.
  8047. * ax-general.c (ax_memcpy): New function.
  8048. (ax_print): Handle "printf".
  8049. (ax_reqs): Ditto.
  8050. * ax.h (ax_memcpy): Forward declare.
  8051. * common/ax.def (invalid2): Removed.
  8052. (printf): New entry.
  8053. * printcmd.c (printcmd.h): New include.
  8054. (string_printf): New function.
  8055. (ui_printf): Removed.
  8056. (printf_command): Remove static. Call string_printf.
  8057. (eval_command): Call string_printf.
  8058. * printcmd.h: New file.
  8059. * tracepoint.c (validate_actionline,
  8060. encode_actions_1): handle printf_command.
  8061. 2011-02-23 Tom Tromey <tromey@redhat.com>
  8062. * ax-general.c (ax_pick): Add missing newline.
  8063. 2011-02-23 Michael Snyder <msnyder@vmware.com>
  8064. * breakpoint.c (breakpoint_1): Change first argument from an int
  8065. to a char pointer, so that the function now accepts a list of
  8066. breakpoints rather than just one. Use new function
  8067. 'number_is_in_list' to implement.
  8068. (breakpoints_info): Pass char * instead of int to breakpoint_1.
  8069. (watchpoints_info): Ditto.
  8070. (tracepoints_info): Ditto.
  8071. (maintenance_info_breakpoints): Ditto.
  8072. (_initialize_breakpoint): Update help strings to reflect the fact
  8073. that these functions can now take more than one argument.
  8074. * cli/cli-utils.c (number_is_in_list): New function.
  8075. * cli/cli-utils.h (number_is_in_list): Export.
  8076. 2011-02-23 Michael Snyder <msnyder@vmware.com>
  8077. * memattr.c (mem_enable_command): Use get_number_or_range.
  8078. (mem_disable_command): Ditto.
  8079. (mem_delete_command): Ditto.
  8080. (_initialize_mem): Tweak usage message to reflect multiple
  8081. arguments.
  8082. 2011-02-22 Doug Evans <dje@google.com>
  8083. Add gdb.lookup_global_symbol python function.
  8084. * NEWS: Add entry.
  8085. * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
  8086. * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
  8087. * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
  8088. 2011-02-22 Tom Tromey <tromey@redhat.com>
  8089. * language.c (language_class_name_from_physname): Rename
  8090. 'curr_language' argument to 'lang'; use in body.
  8091. 2011-02-22 Michael Snyder <msnyder@vmware.com>
  8092. * cli/cli-utils.c (number_is_in_list): Check for zero return.
  8093. 2011-02-22 Pedro Alves <pedro@codesourcery.com>
  8094. * frame-unwind.h: Fix comment to mention the this frame, not the
  8095. next.
  8096. 2011-02-22 Tom Tromey <tromey@redhat.com>
  8097. * symfile.c (auto_solib_limit): Remove.
  8098. * symfile.h (auto_solib_limit): Remove.
  8099. 2011-02-22 Joel Brobecker <brobecker@adacore.com>
  8100. * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
  8101. 2011-02-21 Michael Snyder <msnyder@vmware.com>
  8102. * gdbthread.h (print_thread_info): Change prototype.
  8103. * thread.c (print_thread_info): Accept char* instead of int for
  8104. requested_threads argument. Use new function number_is_in_list
  8105. to determine which threads to list.
  8106. (info_threads_command): Pass char* to print_thread_info.
  8107. * cli/cli-utils.c (number_is_in_list): New function.
  8108. * cli/cli-utils.h (number_is_in_list): Export.
  8109. * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
  8110. print_thread_info.
  8111. (print_one_inferior): Ditto.
  8112. (mi_cmd_list_thread_groups): Ditto.
  8113. 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
  8114. * common/Makefile.in (CFLAGS): New.
  8115. (COMPILE): Add $(CFLAGS).
  8116. 2011-02-21 Tom Tromey <tromey@redhat.com>
  8117. * breakpoint.c (catch_syscall_command_1): Fix typo.
  8118. 2011-02-21 Tom Tromey <tromey@redhat.com>
  8119. * reverse.c: Include cli-utils.h.
  8120. * printcmd.c: Include cli-utils.h.
  8121. (string_printf): Use skip_spaces.
  8122. * cli/cli-utils.h: New file.
  8123. * cli/cli-utils.c: New file.
  8124. * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
  8125. * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
  8126. * breakpoint.h (get_number, get_number_or_range): Move to
  8127. cli-utils.h.
  8128. * breakpoint.c: Include cli-utils.h.
  8129. (get_number_trailer, get_number, get_number_or_range)
  8130. (ep_skip_leading_whitespace): Move to cli-utils.c.
  8131. (create_breakpoint_sal, find_condition_and_thread)
  8132. (decode_static_tracepoint_spec, watch_command_1)
  8133. (watch_maybe_just_location, ep_parse_optional_if_clause)
  8134. (catch_fork_command_1, catch_exec_command_1)
  8135. (catch_syscall_command_1): Use skip_spaces, skip_to_space.
  8136. * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
  8137. (SUBDIR_CLI_SRCS): Add cli-utils.c.
  8138. (HFILES_NO_SRCDIR): Add cli-utils.h.
  8139. (cli-utils.o): New target.
  8140. 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
  8141. * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
  8142. before calling discard_all_inferiors.
  8143. 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
  8144. * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
  8145. (struct builtin_opencl_type): Remove.
  8146. (builtin_opencl_type): Change return type to "struct type **".
  8147. (lookup_opencl_vector_type): Update caller.
  8148. (opencl_language_arch_info): Copy primitive type vector from gdbarch.
  8149. (build_opencl_types): Install plain array of "struct type *"
  8150. instead of "struct builtin_opencl_type".
  8151. 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
  8152. Ulrich Weigand <uweigand@de.ibm.com>
  8153. * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
  8154. (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
  8155. (struct arm_linux_hwbp_cap): New type.
  8156. (arm_linux_get_hwbp_cap): New function.
  8157. (arm_linux_get_hw_breakpoint_count): Likewise.
  8158. (arm_linux_get_hw_watchpoint_count): Likewise.
  8159. (arm_linux_can_use_hw_breakpoint): Likewise.
  8160. (arm_hwbp_type): New type.
  8161. (arm_hwbp_control_t): Likewise.
  8162. (struct arm_linux_hw_breakpoint): Likewise.
  8163. (struct arm_linux_thread_points): Likewise.
  8164. (arm_threads): New global variable.
  8165. (arm_linux_find_breakpoints_by_tid): New function.
  8166. (arm_hwbp_control_initialize): Likewise.
  8167. (arm_hwbp_control_is_enabled): Likewise.
  8168. (arm_hwbp_control_disable): Likewise.
  8169. (arm_linux_hw_breakpoint_initialize): Likewise.
  8170. (arm_linux_get_hwbp_type): Likewise.
  8171. (arm_linux_hw_watchpoint_initialize): Likewise.
  8172. (arm_linux_hw_breakpoint_equal): Likewise.
  8173. (arm_linux_insert_hw_breakpoint1): Likewise.
  8174. (arm_linux_remove_hw_breakpoint1): Likewise.
  8175. (arm_linux_insert_hw_breakpoint): Likewise.
  8176. (arm_linux_remove_hw_breakpoint): Likewise.
  8177. (arm_linux_region_ok_for_hw_watchpoint): Likewise.
  8178. (arm_linux_insert_watchpoint): Likewise.
  8179. (arm_linux_remove_watchpoint): Likewise.
  8180. (arm_linux_stopped_data_address): Likewise.
  8181. (arm_linux_stopped_by_watchpoint): Likewise.
  8182. (arm_linux_watchpoint_addr_within_range): Likewise.
  8183. (arm_linux_new_thread): Likewise.
  8184. (arm_linux_thread_exit): Likewise.
  8185. (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
  8186. related target callbacks. Register arm_linux_new_thread and
  8187. arm_linux_thread_exit.
  8188. * arm-tdep.h (arm_pc_is_thumb): Add prototype.
  8189. * arm-tdep.c (arm_pc_is_thumb): Make global.
  8190. (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
  8191. 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
  8192. * breakpoint.c (update_watchpoint): Do not attempt to recreate
  8193. per-frame locations while within a function epilogue.
  8194. 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
  8195. * ser-mingw.c (ser_windows_close): Reformat comment to better conform
  8196. to GNU coding standards.
  8197. 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
  8198. Allow use of mingw native on Windows 95 OS.
  8199. * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
  8200. (ser_windows_close): Only call CancelIo if function exists.
  8201. (_initialize_ser_windows): Use LoadLirary/GetProcAddress
  8202. to check for existence of CancelIo function in kernel32 DLL.
  8203. 2011-02-21 Hui Zhu <teawater@gmail.com>
  8204. * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
  8205. * ax-gdb.c (gen_printf_expr_callback): New function.
  8206. * ax-gdb.h (gen_printf_expr_callback): Forward declare.
  8207. * ax-general.c (ax_memcpy): New function.
  8208. (ax_print): Handle "printf".
  8209. (ax_reqs): Ditto.
  8210. * ax.h (ax_memcpy): Forward declare.
  8211. * common/ax.def (invalid2): Removed.
  8212. (printf): New entry.
  8213. * printcmd.c (printcmd.h): New include.
  8214. (string_printf): New function.
  8215. (ui_printf): Removed.
  8216. (printf_command): Remove static. Call string_printf.
  8217. (eval_command): Call string_printf.
  8218. * printcmd.h: New file.
  8219. * tracepoint.c (validate_actionline,
  8220. encode_actions_1): handle printf_command.
  8221. 2011-02-19 Michael Snyder <msnyder@vmware.com>
  8222. * reverse.c (delete_one_bookmark): Argument is now bookmark
  8223. id rather than pointer to bookmark struct.
  8224. (delete_bookmark_command): Use get_number_or_range.
  8225. (goto_bookmark_command): Parse with get_number instead of strtoul.
  8226. (bookmark_1): New function. Print info for one bookmark.
  8227. (bookmarks_info): Use get_number_or_range and bookmark_1.
  8228. 2011-02-18 Michael Snyder <msnyder@vmware.com>
  8229. * thread.c (info_threads_command): Re-implement using
  8230. get_number_or_range.
  8231. (thread_apply_command): Ditto.
  8232. 2011-02-18 Tom Tromey <tromey@redhat.com>
  8233. * common/ax.def: New file.
  8234. * ax.h (enum agent_op): Use ax.def.
  8235. * ax-general.c (aop_map): Use ax.def.
  8236. 2011-02-18 Tom Tromey <tromey@redhat.com>
  8237. * ax-general.c (aop_map): Add pick and rot.
  8238. * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
  8239. <DW_OP_rot>: Implement.
  8240. * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
  8241. (ax_pick): Declare.
  8242. * ax-general.c (ax_pick): New function.
  8243. 2011-02-18 Tom Tromey <tromey@redhat.com>
  8244. * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
  8245. 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
  8246. Tom Tromey <tromey@redhat.com>
  8247. * cp-support.c (make_symbol_overload_list_namespace): Do not call
  8248. make_symbol_overload_list_block with NULL BLOCK.
  8249. * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
  8250. 2011-02-18 Pedro Alves <pedro@codesourcery.com>
  8251. * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
  8252. * breakpoint.h (get_number_or_range): Declare.
  8253. * printcmd.c (ALL_DISPLAYS): Declare.
  8254. (delete_display): Reimplement taking a display pointer.
  8255. (undisplay_command): Accept a range of displays to delete, using
  8256. get_number_or_range.
  8257. 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
  8258. * c-valprint.c (c_val_print): Add embedded_offset to address
  8259. for arrays of unspecified length.
  8260. * p-valprint.c (pascal_val_print): Likewise.
  8261. 2011-02-18 Yao Qi <yao@codesourcery.com>
  8262. * arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
  8263. (arm_process_displaced_insn): .. here. Remove parameter INSN.
  8264. (thumb_process_displaced_insn): New.
  8265. * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
  8266. call to arm_process_displaced_insn.
  8267. * arm-tdep.h : Update declaration of arm_process_displaced_insn.
  8268. 2011-02-17 Tom Tromey <tromey@redhat.com>
  8269. * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
  8270. * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
  8271. compile_dwarf_to_ax. No longer static. Call
  8272. dwarf2_compile_cfa_to_ax.
  8273. (locexpr_tracepoint_var_ref): Update.
  8274. (loclist_tracepoint_var_ref): Update.
  8275. * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
  8276. * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
  8277. argument; add 'gdbarch' and 'pc'.
  8278. (dwarf2_compile_cfa_to_ax): New function.
  8279. (dwarf2_frame_cache): Update.
  8280. 2011-02-17 Joel Brobecker <brobecker@adacore.com>
  8281. * ada-lang.c (ada_type_of_array): Fix the size of the array
  8282. in the case of an unconstrained packed array.
  8283. 2011-02-17 Yao Qi <yao@codesourcery.com>
  8284. * common/Makefile.in: Add more targets for make.
  8285. 2011-02-16 Tom Tromey <tromey@redhat.com>
  8286. * dwarf2loc.c (unimplemented): Fix typo.
  8287. 2011-02-16 Tom Tromey <tromey@redhat.com>
  8288. * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
  8289. (compile_dwarf_to_ax) <default>: Use unimplemented.
  8290. <DW_OP_deref>: Update.
  8291. (disassemble_dwarf_expression): Update.
  8292. * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
  8293. (decode_locdesc): Update.
  8294. * dwarf2expr.h (dwarf_stack_op_name): Update.
  8295. 2011-02-16 Tom Tromey <tromey@redhat.com>
  8296. * ax.h (struct aop_map) <name>: Now const.
  8297. 2011-02-16 Tom Tromey <tromey@redhat.com>
  8298. * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
  8299. than axs_rvalue.
  8300. 2011-02-16 Yao Qi <yao@codesourcery.com>
  8301. * infrun.c (get_displaced_step_closure_by_addr): New.
  8302. * inferior.h: Declare it.
  8303. * arm-tdep.c: (arm_pc_is_thumb): Call
  8304. get_displaced_step_closure_by_addr. Adjust MEMADDR if it
  8305. returns non-NULL.
  8306. 2011-02-16 Pedro Alves <pedro@codesourcery.com>
  8307. Jan Kratochvil <jan.kratochvil@redhat.com>
  8308. gdb/
  8309. * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
  8310. 2011-02-16 Pedro Alves <pedro@codesourcery.com>
  8311. Jan Kratochvil <jan.kratochvil@redhat.com>
  8312. * value.c (value_contents_copy_raw): Extend describing comment.
  8313. Assert that the destination contents we're overwriting are wholly
  8314. available.
  8315. (value_contents_copy): Extend describing comment.
  8316. 2011-02-16 Pedro Alves <pedro@codesourcery.com>
  8317. Jan Kratochvil <jan.kratochvil@redhat.com>
  8318. * value.c (value_available_contents_eq): Remove redundant local
  8319. variables. Fix available contents comparision.
  8320. * value.h (value_available_contents_eq): Extend describing
  8321. comment.
  8322. 2011-02-16 Yao Qi <yao@codesourcery.com>
  8323. * thread.c (info_threads_command): Add missing i18n markup and remove
  8324. trailing newline.
  8325. 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
  8326. * breakpoint.c (longjmp_names): New variable.
  8327. (struct breakpoint_objfile_data): New type.
  8328. (breakpoint_objfile_key): New variable.
  8329. (msym_not_found): New variable.
  8330. (msym_not_found_p): New predicate.
  8331. (get_breakpoint_objfile_data): New function.
  8332. (create_overlay_event_breakpoint): Check per-objfile cache for
  8333. symbols first.
  8334. (create_longjmp_master_breakpoint): Likewise.
  8335. (create_std_terminate_master_breakpoint): Likewise.
  8336. (create_exception_master_breakpoint): Likewise.
  8337. (_initialize_breakpoint): Register per-objfile data key.
  8338. 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
  8339. * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
  8340. parameter value.
  8341. (create_longjmp_master_breakpoint): Loop over longjmp names.
  8342. (create_std_terminate_master_breakpoint): Const-propagate parameter
  8343. value.
  8344. (update_breakpoints_after_exec): Adjust.
  8345. (breakpoint_re_set): Adjust.
  8346. 2011-02-15 Michael Snyder <msnyder@vmware.com>
  8347. * thread.c (info_threads_command): Process arg as thread id,
  8348. or list of thread ids.
  8349. (thread_find_command): New command.
  8350. (_initialize_thread): Document argument for info threads.
  8351. Document 'thread find' command.
  8352. * NEWS: Document new command "thread find".
  8353. 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
  8354. * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
  8355. * aclocal.m4: Regenerated with aclocal-1.11.1.
  8356. * common/configure: Regenerate with autoconf-2.64.
  8357. 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
  8358. * opencl-lang.c (build_opencl_types): Set the size of the built-in
  8359. bool data type to a size of one byte.
  8360. 2011-02-15 Pedro Alves <pedro@codesourcery.com>
  8361. Jan Kratochvil <jan.kratochvil@redhat.com>
  8362. * target.c (memory_xfer_live_readonly_partial): Document where to
  8363. look for interface description.
  8364. 2011-02-15 Yao Qi <yao@codesourcery.com>
  8365. PR tdep/12352
  8366. * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
  8367. order to store PC value on stack instead of text section.
  8368. 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
  8369. * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
  8370. the EFP register set size.
  8371. (efpr_pseudo_register_read): Use regcache_raw_read_part to read
  8372. data from the VMX register.
  8373. (efpr_pseudo_register_write): Use regcache_raw_write_part to read
  8374. and write data from/to the VMX register.
  8375. 2011-02-14 Michael Snyder <msnyder@vmware.com>
  8376. * command.h (enum command_class): New class 'no_set_class', for
  8377. "show" commands without a corresponding "set" command.
  8378. * value.c (_initialize_values): Use 'no_set_class' for "show values".
  8379. * copying.c (_initialize_copying): Ditto for "show copying" and
  8380. "show warranty".
  8381. * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
  8382. "show version".
  8383. * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
  8384. which there is no corresponding "set" command (eg. "show copying").
  8385. 2011-02-14 Pedro Alves <pedro@codesourcery.com>
  8386. Jan Kratochvil <jan.kratochvil@redhat.com>
  8387. * exec.c (section_table_available_memory): Change `len' parameter
  8388. type to ULONGEST.
  8389. * exec.h (section_table_available_memory): Ditto.
  8390. * value.h (read_value_memory): Rename the `offset' parameter to
  8391. `embedded_offset'.
  8392. 2011-02-14 Pedro Alves <pedro@codesourcery.com>
  8393. Jan Kratochvil <jan.kratochvil@redhat.com>
  8394. * memrange.c (compare_mem_ranges): Mention sort order in
  8395. describing comment.
  8396. (normalize_mem_ranges): Add comment. Fix ra->length calculation.
  8397. * tracepoint.c (traceframe_available_memory): Extend comment to
  8398. mention what happens to RESULT when the target does not support
  8399. the query.
  8400. 2011-02-14 Pedro Alves <pedro@codesourcery.com>
  8401. Jan Kratochvil <jan.kratochvil@redhat.com>
  8402. * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
  8403. range.
  8404. 2011-02-14 Pedro Alves <pedro@codesourcery.com>
  8405. * value.c (value_bits_valid, value_bits_synthetic_pointer):
  8406. No longer handle NULL values.
  8407. 2011-02-14 Pedro Alves <pedro@codesourcery.com>
  8408. * exceptions.h (NOT_AVAILABLE_ERROR): New error.
  8409. * value.c: Include "exceptions.h".
  8410. (require_available): Throw NOT_AVAILABLE_ERROR instead of a
  8411. generic error.
  8412. * cp-abi.c: Include gdb_assert.h.
  8413. (baseclass_offset): Add `embedded_offset' and `val' parameters.
  8414. Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
  8415. errors.
  8416. * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
  8417. parameters. No longer returns -1 on error.
  8418. (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
  8419. `val' parameters.
  8420. * cp-valprint.c: Include exceptions.h.
  8421. (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
  8422. the baseclass_offset. Handle unavailable base classes. Use
  8423. val_print_invalid_address.
  8424. * p-valprint.c: Include exceptions.h.
  8425. (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
  8426. when fetching the baseclass_offset. No longer expect
  8427. baseclass_offset returning -1. Handle unavailable base classes.
  8428. Use val_print_invalid_address.
  8429. * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
  8430. `valaddr' parameter, and change its type to gdb_byte pointer. Add
  8431. `embedded_offset' and `val' parameters. Adjust.
  8432. (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
  8433. parameter, and change its type to gdb_byte pointer. Add
  8434. `embedded_offset' and `val' parameters. Adjust. No longer expect
  8435. baseclass_offset returning -1.
  8436. (value_dynamic_cast): Use value_contents_for_printing rather than
  8437. value_contents. Adjust.
  8438. (search_struct_field): No longer expect baseclass_offset returning
  8439. -1.
  8440. (search_struct_method): If reading memory from the target is
  8441. necessary, wrap it in a new value to pass to baseclass_offset. No
  8442. longer expect baseclass_offset returning -1.
  8443. (find_method_list): No longer expect baseclass_offset returning
  8444. -1. Use value_contents_for_printing rather than value_contents.
  8445. * valprint.c (val_print_invalid_address): New function.
  8446. * valprint.h (val_print_invalid_address): Declare.
  8447. * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
  8448. and `val' parameters. No longer expect baseclass_offset returning
  8449. -1. Adjust.
  8450. * gnu-v2-abi.c: Include "exceptions.h".
  8451. (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
  8452. parameters. Handle unavailable memory. Recurse through
  8453. gnuv2_baseclass_offset directly, rather than through
  8454. baseclass_offset. No longer returns -1 on not found, instead
  8455. throw an error.
  8456. * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
  8457. `val' parameters. Adjust.
  8458. 2011-02-14 Pedro Alves <pedro@codesourcery.com>
  8459. * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
  8460. almost but not quite adjacent.
  8461. 2011-02-14 Pedro Alves <pedro@codesourcery.com>
  8462. * value.h (value_entirely_available): Declare.
  8463. * value.c (value_entirely_available): New function.
  8464. * c-valprint.c (c_value_print): Don't try fetching the pointer's
  8465. real type if the pointer is unavailable.
  8466. 2011-02-14 Pedro Alves <pedro@codesourcery.com>
  8467. * valops.c (value_repeat): Use read_value_memory instead of
  8468. read_memory.
  8469. 2011-02-14 Pedro Alves <pedro@codesourcery.com>
  8470. * value.h (value_contents_copy, value_contents_copy_raw): Declare.
  8471. * value.c (value_contents_copy_raw, value_contents_copy): New
  8472. functions.
  8473. (value_primitive_field): Use value_contents_copy_raw instead of
  8474. memcpy.
  8475. * valops.c (value_fetch_lazy): Use value_contents_copy instead of
  8476. memcpy.
  8477. (value_array, value_slice): Ditto.
  8478. * valarith.c (value_subscripted_rvalue): Use
  8479. value_contents_copy_raw instead of memcpy.
  8480. 2011-02-14 Pedro Alves <pedro@codesourcery.com>
  8481. <unavailable> references.
  8482. * valops.c (get_value_at): Use value_from_contents_and_address,
  8483. avoiding read_memory.
  8484. 2011-02-14 Pedro Alves <pedro@codesourcery.com>
  8485. * c-valprint.c (c_val_print): Print a string with unavailable
  8486. contents as an array.
  8487. 2011-02-14 Pedro Alves <pedro@codesourcery.com>
  8488. * value.h (unpack_bits_as_long): Delete declaration.
  8489. (unpack_value_bits_as_long): Declare.
  8490. (unpack_value_field_as_long): Declare.
  8491. (value_field_bitfield): Declare.
  8492. * value.c (unpack_bits_as_long): Rename to...
  8493. (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
  8494. value parameters. Return the extracted result in a new output
  8495. parameter. If the value contents are unavailable, return false,
  8496. otherwise return true.
  8497. (unpack_value_bits_as_long): New.
  8498. (unpack_field_as_long): Rename to...
  8499. (unpack_value_field_as_long_1): ... this. Add embedded_offset and
  8500. Add embedded_offset and value parameters. Return the extracted
  8501. result in a new output parameter. If the value contents are
  8502. unavailable, return false, otherwise return true.
  8503. (unpack_value_field_as_long): New.
  8504. (unpack_field_as_long_1): New.
  8505. (unpack_field_as_long): Reimplement as wrapper around
  8506. unpack_value_field_as_long_1.
  8507. (value_field_bitfield): New function.
  8508. * valops.c (value_fetch_lazy): When fetching a bitfield, use
  8509. unpack_value_bits_as_long. Mark the value as unavailable, if it
  8510. is unavailable.
  8511. * jv-valprint.c (java_print_value_fields): Use
  8512. value_field_bitfield.
  8513. * p-valprint.c (pascal_object_print_value_fields): Use
  8514. value_field_bitfield.
  8515. * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
  8516. 2011-02-14 Pedro Alves <pedro@codesourcery.com>
  8517. * value.c (get_internalvar_integer): Also return the int value of
  8518. TYPE_CODE_INT INTERNALVAR_VALUE values.
  8519. (set_internalvar): Don't special case TYPE_CODE_INT.
  8520. 2011-02-14 Pedro Alves <pedro@codesourcery.com>
  8521. * value.c (struct internalvar) <enum internalvar_kind>: Remove
  8522. INTERNALVAR_POINTER.
  8523. <pointer>: Delete.
  8524. (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
  8525. (set_internalvar): Remove special TYPE_CODE_PTR handling.
  8526. (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
  8527. 2011-02-14 Pedro Alves <pedro@codesourcery.com>
  8528. * value.h (value_available_contents_eq): Declare.
  8529. * value.c (find_first_range_overlap): New function.
  8530. (value_available_contents_eq): New function.
  8531. * valprint.c (val_print_array_elements): Use
  8532. value_available_contents_eq.
  8533. * ada-valprint.c (val_print_packed_array_elements): Use
  8534. value_available_contents_eq.
  8535. * jv-valprint.c (java_value_print): Use
  8536. value_available_contents_eq.
  8537. 2011-02-14 Pedro Alves <pedro@codesourcery.com>
  8538. * target.c (target_read_live_memory): New function.
  8539. (memory_xfer_live_readonly_partial): New.
  8540. (memory_xfer_partial): If reading from a traceframe, fallback to
  8541. reading unavailable read-only memory from read-only regions of
  8542. live target memory.
  8543. * tracepoint.c (disconnect_tracing): Adjust.
  8544. (set_current_traceframe): New, factored out from
  8545. set_traceframe_number.
  8546. (set_traceframe_number): Reimplement to only change the traceframe
  8547. number on the GDB side.
  8548. (do_restore_current_traceframe_cleanup): Adjust.
  8549. (make_cleanup_restore_traceframe_number): New.
  8550. (cur_traceframe_number): New global.
  8551. (tfile_open): Set cur_traceframe_number to no traceframe.
  8552. (set_tfile_traceframe): New function.
  8553. (tfile_trace_find): If looking up a traceframe using any method
  8554. other than by number, make sure the current tfile traceframe
  8555. matches gdb's current traceframe. Update the current tfile
  8556. traceframe if the lookup succeeded.
  8557. (tfile_fetch_registers, tfile_xfer_partial)
  8558. (tfile_get_trace_state_variable_value): Make sure the remote
  8559. traceframe matches gdb's current traceframe.
  8560. * remote.c (remote_traceframe_number): New global.
  8561. (remote_open_1): Set it to -1.
  8562. (set_remote_traceframe): New function.
  8563. (remote_fetch_registers, remote_store_registers)
  8564. (remote_xfer_memory, remote_xfer_partial)
  8565. (remote_get_trace_state_variable_value): Make sure the remote
  8566. traceframe matches gdb's current traceframe.
  8567. (remote_trace_find): If looking up a traceframe using any method
  8568. other than by number, make sure the current remote traceframe
  8569. matches gdb's current traceframe. Update the current remote
  8570. traceframe if the lookup succeeded.
  8571. * infrun.c (fetch_inferior_event): Adjust.
  8572. * tracepoint.h (set_current_traceframe): Declare.
  8573. (get_traceframe_number, set_traceframe_number): Add describing
  8574. comments.
  8575. 2011-02-14 Pedro Alves <pedro@codesourcery.com>
  8576. Mark pieces of values as unavailable if the corresponding memory
  8577. is unavailable.
  8578. * valops.c: Include tracepoint.h.
  8579. (value_fetch_lazy): Use read_value_memory.
  8580. (read_value_memory): New.
  8581. * value.h (read_value_memory): Declare.
  8582. * dwarf2loc.c (read_pieced_value): Use read_value_memory.
  8583. * exec.c (section_table_available_memory): New function.
  8584. * exec.h (section_table_available_memory): Declare.
  8585. 2011-02-14 Pedro Alves <pedro@codesourcery.com>
  8586. * Makefile.in (SFILES): Add memrange.c.
  8587. (HFILES_NO_SRCDIR): Add memrange.h.
  8588. (COMMON_OBS): Add memrange.o.
  8589. * memrange.c: New file.
  8590. * memrange.h: New file.
  8591. * tracepoint.c: Include memrange.h.
  8592. (struct mem_range): Delete.
  8593. (mem_range_s): Delete.
  8594. (traceframe_available_memory): New function.
  8595. * tracepoint.h (traceframe_available_memory): Declare.
  8596. 2011-02-14 Pedro Alves <pedro@codesourcery.com>
  8597. * target.h (struct traceframe_info): Forward declare.
  8598. (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
  8599. (struct target_ops) <to_traceframe_info>: New field.
  8600. (target_traceframe_info): New.
  8601. * target.c (update_current_target): Inherit and default
  8602. to_traceframe_info.
  8603. * remote.c (PACKET_qXfer_traceframe_info): New.
  8604. (remote_protocol_features): Register qXfer:traceframe-info:read.
  8605. (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
  8606. (remote_traceframe_info): New.
  8607. (init_remote_ops): Install it.
  8608. (_initialize_remote): Install "set/show remote traceframe-info"
  8609. commands.
  8610. * tracepoint.h (parse_traceframe_info): Declare.
  8611. * tracepoint.c (struct mem_range): New.
  8612. (mem_range_s): New typedef.
  8613. (struct traceframe_info): New.
  8614. (traceframe_info): New global.
  8615. (free_traceframe_info): New function.
  8616. (clear_traceframe_info): New function.
  8617. (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
  8618. info.
  8619. (build_traceframe_info): New function.
  8620. (tfile_traceframe_info): New function.
  8621. (init_tfile_ops): Install tfile_traceframe_info.
  8622. (traceframe_info_start_memory, free_result): New functions.
  8623. (memory_attributes, traceframe_info_elements): New globals.
  8624. (parse_traceframe_info, get_traceframe_info): New functions.
  8625. * features/traceframe-info.dtd: New file.
  8626. * Makefile.in (XMLFILES): Add traceframe-info.dtd.
  8627. 2011-02-14 Pedro Alves <pedro@codesourcery.com>
  8628. Base support for <unavailable> value contents.
  8629. * value.h (value_bytes_available): Declare.
  8630. (mark_value_bytes_unavailable): Declare.
  8631. * value.c (struct range): New struct.
  8632. (range_s): New typedef.
  8633. (ranges_overlap): New function.
  8634. (range_lessthan): New function.
  8635. (ranges_contain_p): New function.
  8636. (struct value) <unavailable>: New field.
  8637. (value_bytes_available): New function.
  8638. (mark_value_bytes_unavailable): New function.
  8639. (require_not_optimized_out): Constify parameter.
  8640. (require_available): New function.
  8641. (value_contents_all, value_contents): Require all bytes be
  8642. available.
  8643. (value_free): Free `unavailable'.
  8644. (value_copy): Copy `unavailable'.
  8645. * valprint.h (val_print_unavailable): Declare.
  8646. * valprint.c (valprint_check_validity): Rename `offset' parameter
  8647. to `embedded_offset'. If printing a scalar, check whether the
  8648. value chunk is available.
  8649. (val_print_unavailable): New.
  8650. (val_print_scalar_formatted): Check whether the value is
  8651. available.
  8652. * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
  8653. pretty-printing unavailable values.
  8654. 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
  8655. Fix const/volatile qualifiers of C++ types, PR c++/12328.
  8656. * c-typeprint.c (c_type_print_args): Update the function comment. New
  8657. variable param_type, initialize it. Remove const/volatile qualifiers
  8658. for language_cplus and !show_artificial. Use param_type.
  8659. 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
  8660. * symtab.c (find_pc_sect_line): New variable objfile, initialize it
  8661. from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
  8662. * symtab.h (struct symtab) <next>: Comment extension.
  8663. 2011-02-12 Yao Qi <yao@codesourcery.com>
  8664. * Makefile.in (CLEANDIRS): Remove duplicated common dir.
  8665. 2011-02-11 Yao Qi <yao@codesourcery.com>
  8666. * common/Makefile.in: Add copyright header.
  8667. 2011-02-11 Pedro Alves <pedro@codesourcery.com>
  8668. * infrun.c (proceed): Move switching out and in of tfind mode from
  8669. here ...
  8670. (fetch_inferior_event): ... to here.
  8671. 2011-02-11 Yao Qi <yao@codesourcery.com>
  8672. * Makefile.in: Remove signals.o from COMMON_OBS. Link
  8673. libcommon.a.
  8674. * configure.ac: Add common to sub dir.
  8675. * configure: Regenerate.
  8676. 2011-02-11 Yao Qi <yao@codesourcery.com>
  8677. Build libcommon.a.
  8678. * common/Makefile.in: New.
  8679. * common/configure.ac: New.
  8680. * common/aclocal.m4: New.
  8681. * common/configure: Generate.
  8682. 2011-02-10 Pedro Alves <pedro@codesourcery.com>
  8683. * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
  8684. side of the parenthesis.
  8685. Merge from GCC:
  8686. 2010-07-13 Jakub Jelinek <jakub@redhat.com>
  8687. * vec.h (VEC_block_remove): Fix comment.
  8688. 2011-02-08 Michael Snyder <msnyder@vmware.com>
  8689. * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
  8690. 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
  8691. * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
  8692. in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
  8693. psubd and paddd.
  8694. 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
  8695. PR 12361.
  8696. * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
  8697. phsubsw.
  8698. (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
  8699. (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
  8700. 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
  8701. * dwarf2read.c (read_subroutine_type): Set special calling
  8702. convention flag for functions compiled by IBM XL C for OpenCL.
  8703. * ppc-sysv-tdep.c: Include "dwarf2.h"
  8704. (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
  8705. calling convention.
  8706. (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
  8707. IBM OpenCL vector types calling convention.
  8708. (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
  8709. (ppc_sysv_abi_broken_return_value): Likewise.
  8710. (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
  8711. types calling convention.
  8712. (ppc64_sysv_abi_return_value): Likewise.
  8713. * spu-tdep.c: Include "dwarf2.h"
  8714. (spu_return_value): Implement IBM OpenCL vector types calling
  8715. convention.
  8716. 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
  8717. * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
  8718. correct ABI for AltiVec vector arguments.
  8719. 2011-02-07 Pedro Alves <pedro@codesourcery.com>
  8720. * valprint.c (val_print): Extend comment.
  8721. * ada-valprint.c (ada_valprint): Rewrite comment deferring
  8722. interface explanation to val_print.
  8723. (ada_val_print_array): Adjust comment to current interface.
  8724. (print_field_values): Adjust comment to current interface.
  8725. * c-valprint.c (c_val_print): Rewrite comment deferring interface
  8726. explanation to val_print.
  8727. * f-valprint.c (f_val_print): Ditto.
  8728. * jv-valprint.c (java_val_print): Ditto.
  8729. * m2-valprint.c (m2_val_print): Ditto.
  8730. * p-valprint.c (pascal_val_print): Ditto.
  8731. 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
  8732. * breakpoint.c (parse_breakpoint_sals): Fix description.
  8733. 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
  8734. Oguz Kayral <oguzkayral@gmail.com>
  8735. * python/py-inferior.c (python_on_normal_stop): New function.
  8736. (python_on_resume): New function.
  8737. (python_inferior_exit): New function.
  8738. (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
  8739. inferior_exit observers.
  8740. * python/py-evtregistry.c: New file.
  8741. * python/py-threadevent.c : New file.
  8742. * python/py-event.c: New file.
  8743. * python/py-evts.c: New file.
  8744. * python/py-continueevent.c: New file.
  8745. * python/py-bpevent.c: New file.
  8746. * python/py-signalevent.c: New file.
  8747. * python/py-exetiedevent.c: New file.
  8748. * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
  8749. Move struct breakpoint_object from here...
  8750. * python/python-internal.h: ... to here.
  8751. * python/py-event.h: New file.
  8752. * python/py-events.h: New file.
  8753. * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
  8754. py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
  8755. py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
  8756. (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
  8757. py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
  8758. py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
  8759. Add build rules for all the above.
  8760. 2011-02-04 Tom Tromey <tromey@redhat.com>
  8761. * dwarf2read.c (dwarf2_section_empty_p): New function.
  8762. (dwarf2_read_section): Use dwarf2_section_empty_p.
  8763. (dwarf2_section_size): New function.
  8764. (dwarf2_get_section_info): Unconditionally read section.
  8765. (dwarf2_read_index): Use dwarf2_section_empty_p.
  8766. (partial_read_comp_unit_head): Use dwarf2_section_size.
  8767. (dwarf2_symbol_mark_computed): Likewise.
  8768. 2011-02-04 David Daney <ddaney@caviumnetworks.com>
  8769. * NEWS: Add item for "catch syscall" on mips*-linux* targets.
  8770. 2011-02-04 David Daney <ddaney@caviumnetworks.com>
  8771. * mips-linux-tdep.c: Include xml-syscall.h.
  8772. (mips_linux_get_syscall_number): New function.
  8773. (mips_linux_init_abi): Add calls to
  8774. mips_linux_get_syscall_number() and set_xml_syscall_file_name().
  8775. * data-directory/Makefile.in (SYSCALLS_FILES): Add
  8776. mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
  8777. * syscalls/mips-n32-linux.xml: New file.
  8778. * syscalls/mips-n64-linux.xml: New file.
  8779. * syscalls/mips-o32-linux.xml: New file.
  8780. 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
  8781. * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
  8782. Complain about inverted range entries.
  8783. (dwarf2_record_block_ranges): Likewise.
  8784. 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
  8785. Fix some typos.
  8786. * breakpoint.c (update_watchpoint): Fix name of the
  8787. update_global_location_list function.
  8788. (print_one_breakpoint): Fix typo.
  8789. (_initialize_breakpoint): Remove extra space in hbreak help
  8790. string.
  8791. * breakpoint.h (struct bp_location) <length>: Fix field
  8792. description.
  8793. 2011-02-04 Pedro Alves <pedro@codesourcery.com>
  8794. * regcache.c (registers_changed_ptid): Don't explictly always
  8795. clear `current_regcache'. Only clear current_thread_ptid and
  8796. current_thread_arch when PTID matches. Only reinit the frame
  8797. cache if PTID matches the current inferior_ptid. Move alloca(0)
  8798. call to ...
  8799. (registers_changed): ... here.
  8800. 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
  8801. * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
  8802. starts with __stack_chk_guard as stack guard symbol.
  8803. 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
  8804. * disasm.c (compare_lines): Handle the end of sequence markers
  8805. within the line table to better support disassembling over
  8806. compilation unit boundaries.
  8807. 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
  8808. * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
  8809. arguments. Skip in-prologue calls to glibc __aeabi_read_tp
  8810. implementation even if no symbols are available.
  8811. (thumb_analyze_prologue): Update call to skip_prologue_function.
  8812. (arm_analyze_prologue): Likewise.
  8813. 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
  8814. * arm-tdep.c: Include "observer.h".
  8815. (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
  8816. (arm_exidx_data_key): New static variable.
  8817. (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
  8818. (struct arm_exidx_data): Likewise.
  8819. (arm_exidx_data_free): New function.
  8820. (arm_compare_exidx_entries): Likewise.
  8821. (arm_obj_section_from_vma): Likewise.
  8822. (arm_exidx_new_objfile): Likewise.
  8823. (arm_find_exidx_entry): Likewise.
  8824. (arm_exidx_fill_cache): Likewise.
  8825. (arm_exidx_unwind_sniffer): Likewise.
  8826. (arm_exidx_unwind): New global variable.
  8827. (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
  8828. (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
  8829. observer. Register arm_exidx_data_key as objfile data.
  8830. 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
  8831. * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
  8832. due to accessing uninitialized variable. Fix indentation.
  8833. 2011-02-02 Pedro Alves <pedro@codesourcery.com>
  8834. * c-valprint.c (c_value_print): When doing virtual base pointer
  8835. adjustment, create a new value with adjusted contents rather than
  8836. changing the contents of the value being printed (and getting it
  8837. wrong).
  8838. 2011-02-02 Pedro Alves <pedro@codesourcery.com>
  8839. * xml-support.c (xml_find_attribute): New.
  8840. (xinclude_start_include): Use it.
  8841. * xml-support.h (xml_find_attribute): Declare.
  8842. * memory-map.c (memory_map_start_memory)
  8843. (memory_map_start_property): Use xml_find_attribute.
  8844. * osdata.c (osdata_start_osdata, osdata_start_column): Use
  8845. xml_find_attribute.
  8846. * remote.c (start_thread): Use xml_find_attribute.
  8847. * solib-target.c (library_list_start_segment)
  8848. (library_list_start_section, library_list_start_library)
  8849. (library_list_start_list): Use xml_find_attribute.
  8850. * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
  8851. (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
  8852. (tdesc_start_field): Use xml_find_attribute.
  8853. 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
  8854. * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
  8855. (BUILD_OCL_VTYPES): Update.
  8856. 2011-02-02 Joel Brobecker <brobecker@adacore.com>
  8857. * configure.ac: Work around non-GNU sed limitation when computing
  8858. python version number.
  8859. * configure: Regenerate.
  8860. 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
  8861. Fix debug printing of TYPE_INSTANCE.
  8862. * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
  8863. (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
  8864. 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
  8865. Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
  8866. OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
  8867. OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
  8868. * ada-operator.inc: Rename the file to ...
  8869. * ada-operator.def: ... here, wrap all the entries by macro OP.
  8870. * expprint.c (op_name_standard): Remove all the entries. Include
  8871. "std-operator.def" instead.
  8872. * expression.h (enum exp_opcode): Include "std-operator.def" and
  8873. "ada-operator.def". Move all the entries ...
  8874. * std-operator.def: ... here, wrap all the entries by macro OP.
  8875. 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
  8876. * breakpoint.h (remove_jit_event_breakpoints): New prototype.
  8877. * breakpoint.c (remove_jit_event_breakpoints): New function.
  8878. * jit.c (jit_descriptor_addr): Delete.
  8879. (registering_code): Delete.
  8880. (clear_int): Delete.
  8881. (jit_inferior_data): New variable.
  8882. (struct jit_inferior_data): New type.
  8883. (get_jit_inferior_data): New function.
  8884. (jit_inferior_data_cleanup): New function.
  8885. (jit_read_descriptor): Adjust.
  8886. (jit_register_code): Adjust.
  8887. (jit_breakpoint_re_set_internal): New function; move code here ...
  8888. (jit_inferior_init): ... from here.
  8889. (jit_breakpoint_re_set): Adjust.
  8890. (jit_reset_inferior_data_and_breakpoints): New function.
  8891. (jit_inferior_created_observer): Adjust.
  8892. (jit_inferior_exit_hook): Adjust.
  8893. (jit_executable_changed_observer): New function.
  8894. (jit_event_handler): Adjust.
  8895. (_initialize_jit): Adjust.
  8896. 2011-01-31 Michael Snyder <msnyder@vmware.com>
  8897. * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
  8898. line.
  8899. 2011-01-31 Tom Tromey <tromey@redhat.com>
  8900. PR python/12216:
  8901. * python/python.c (execute_gdb_command): Call
  8902. prevent_dont_repeat.
  8903. * top.c (suppress_dont_repeat): New global.
  8904. (dont_repeat): Use it.
  8905. (prevent_dont_repeat): New function.
  8906. * command.h (prevent_dont_repeat): Declare.
  8907. 2011-01-31 Tom Tromey <tromey@redhat.com>
  8908. * infcmd.c (finish_backward): Use breakpoint_set_silent.
  8909. * python/py-breakpoint.c (bppy_set_silent): Use
  8910. breakpoint_set_silent.
  8911. (bppy_set_thread): Use breakpoint_set_thread.
  8912. (bppy_set_task): Use breakpoint_set_task.
  8913. * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
  8914. (breakpoint_set_task): Declare.
  8915. (make_breakpoint_silent): Remove.
  8916. * breakpoint.c (breakpoint_set_silent): New function.
  8917. (breakpoint_set_thread): Likewise.
  8918. (breakpoint_set_task): Likewise.
  8919. (make_breakpoint_silent): Remove.
  8920. 2011-01-31 Tom Tromey <tromey@redhat.com>
  8921. * breakpoint.h (user_breakpoint_p): Declare.
  8922. * breakpoint.c (user_breakpoint_p): New function.
  8923. (breakpoint_1): Use it.
  8924. (save_breakpoints): Likewise.
  8925. 2011-01-31 Joel Brobecker <brobecker@adacore.com>
  8926. * configure.ac: Add handling of Python distribution on Windows.
  8927. * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
  8928. sysconfig variables are not defined, then do not use them.
  8929. On Windows, if LIBPL is not defined, then use prefix + '/libs'
  8930. instead. On Windows, return all paths using forward-slashes
  8931. rather than backslashes.
  8932. 2011-01-31 Joel Brobecker <brobecker@adacore.com>
  8933. * configure.ac: Remove fallback behavior for building
  8934. against Python. Remove tweaking of Python include path.
  8935. Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
  8936. (AC_TRY_LIBPYTHON): Adjust program used in linking test.
  8937. If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
  8938. Always restore CPPFLAGS and LIBS after linking test.
  8939. * configure: Regenerated.
  8940. * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
  8941. (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
  8942. * python/python-internal.h: Adjust includes of Python .h files.
  8943. 2011-01-31 Joel Brobecker <brobecker@adacore.com>
  8944. * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
  8945. in error message.
  8946. 2011-01-31 Joel Brobecker <brobecker@adacore.com>
  8947. * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
  8948. value test.
  8949. 2011-01-31 Yao Qi <yao@codesourcery.com>
  8950. * arm-linux-nat.c: Update calls to regcache_register_status
  8951. instead of regcache_valid_p.
  8952. * aix-thread.c: Likewise.
  8953. * i386gnu-nat.c: Likewise.
  8954. 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
  8955. Fix crash.
  8956. * valops.c (compare_parameters): Verify TYPE_NFIELDS before
  8957. touching TYPE_FIELD_ARTIFICIAL.
  8958. 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
  8959. * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
  8960. Committers.
  8961. 2011-01-28 Pedro Alves <pedro@codesourcery.com>
  8962. * tracepoint.c (tfile_xfer_partial): If there's no traceframe
  8963. selected, don't try iterating over the traceframe's blocks.
  8964. (tfile_has_stack): If there's no traceframe selected, then there's
  8965. no stack.
  8966. (tfile_has_registers): If there's no traceframe selected, then
  8967. there's no registers.
  8968. 2011-01-28 Pedro Alves <pedro@codesourcery.com>
  8969. * target.c (memory_xfer_partial): No need to restore shadows if we
  8970. haven't read anything.
  8971. 2011-01-28 Pedro Alves <pedro@codesourcery.com>
  8972. * mips-tdep.c (mips_print_register): Use get_frame_register_value
  8973. and val_print_scalar_formatted.
  8974. 2011-01-27 Pedro Alves <pedro@codesourcery.com>
  8975. * tracepoint.c (tfile_read): New.
  8976. (tfile_open): Use it.
  8977. (tfile_get_traceframe_address): Use it.
  8978. (tfile_trace_find): Use it.
  8979. (walk_blocks_callback_func): New typedef.
  8980. (match_blocktype): New function.
  8981. (traceframe_walk_blocks): New function.
  8982. (traceframe_find_block_type): New function.
  8983. (tfile_fetch_registers, tfile_xfer_partial)
  8984. (tfile_get_trace_state_variable_value): Use
  8985. traceframe_find_block_type and tfile_read.
  8986. 2011-01-26 Kevin Buettner <kevinb@redhat.com>
  8987. * remote-mips.c: Add internationalization mark ups. Remove
  8988. trailing \n from already marked up strings.
  8989. 2011-01-26 Tom Tromey <tromey@redhat.com>
  8990. * python/py-prettyprint.c (print_string_repr): Clear
  8991. 'addressprint' option when calling val_print_string.
  8992. (print_children): Handle Val_pretty_default. Clear 'addressprint'
  8993. option when calling val_print_string.
  8994. 2011-01-26 Tom Tromey <tromey@redhat.com>
  8995. * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
  8996. GDB_PY_LL_ARG.
  8997. * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
  8998. macros.
  8999. (gdb_py_longest, gdb_py_ulongest): New typedefs.
  9000. (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
  9001. (gdb_py_long_as_ulongest): New defines.
  9002. (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
  9003. (gdb_py_int_as_long): Declare.
  9004. * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
  9005. GDB_PY_LL_ARG, gdb_py_object_from_longest.
  9006. (valpy_long): Add comment.
  9007. * python/py-utils.c (get_addr_from_python): Use
  9008. gdb_py_long_as_ulongest. Handle overflow properly.
  9009. (gdb_py_object_from_longest): New function.
  9010. (gdb_py_object_from_ulongest): Likewise.
  9011. (gdb_py_int_as_long): Likewise.
  9012. * python/py-type.c (typy_array): Use gdb_py_int_as_long.
  9013. * python/py-symtab.c (salpy_get_pc): Use
  9014. gdb_py_long_from_ulongest.
  9015. (salpy_get_line): Use PyInt_FromLong.
  9016. * python/py-param.c (set_parameter_value): Use
  9017. gdb_py_int_as_long.
  9018. * python/py-lazy-string.c (stpy_get_address): Use
  9019. gdb_py_long_from_ulongest.
  9020. * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
  9021. * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
  9022. * python/py-breakpoint.c (bppy_set_thread): Use
  9023. gdb_py_int_as_long.
  9024. (bppy_set_task): Likewise.
  9025. (bppy_set_ignore_count): Likewise.
  9026. (bppy_set_hit_count): Likewise.
  9027. * python/py-block.c (blpy_get_start): Use
  9028. gdb_py_object_from_ulongest.
  9029. (blpy_get_end): Likewise.
  9030. (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
  9031. 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
  9032. PR/symtab 11766:
  9033. * objfiles.h (struct objfile) <addr_low>: New field.
  9034. * solib.c (solib_read_symbols): Check for addr_low in
  9035. equality test for objfile, initialize addr_low if needed.
  9036. 2011-01-25 Pedro Alves <pedro@codesourcery.com>
  9037. * tui/tui-regs.c (tui_register_format): Remove dead code.
  9038. 2011-01-25 Pedro Alves <pedro@codesourcery.com>
  9039. * printcmd.c (print_formatted): Use val_print_scalar_formatted
  9040. instead of print_scalar_formatted.
  9041. (print_scalar_formatted): Don't handle 's' format strings here,
  9042. and add an assertion that we never see such format here.
  9043. * valprint.h (val_print_scalar_formatted): Declare.
  9044. * valprint.c (val_print_scalar_formatted): New.
  9045. * c-valprint.c (c_val_print): Use val_print_scalar_formatted
  9046. instead of print_scalar_formatted.
  9047. * jv-valprint.c (java_val_print): Ditto.
  9048. * p-valprint.c (pascal_val_print): Ditto.
  9049. * ada-valprint.c (ada_val_print_1): Ditto.
  9050. * f-valprint.c (f_val_print): Ditto.
  9051. * infcmd.c (registers_info): Ditto.
  9052. * m2-valprint.c (m2_val_print): Ditto.
  9053. 2011-01-25 Pedro Alves <pedro@codesourcery.com>
  9054. * m2-valprint.c (print_unbounded_array): Pass
  9055. value_contents_for_printing rather than value_contents, to
  9056. m2_print_array_contents. Also pass in the value.
  9057. 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
  9058. * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
  9059. (save_gdb_index_command): Switch to .gdb_index version 4.
  9060. 2011-01-25 Pedro Alves <pedro@codesourcery.com>
  9061. * mi/mi-main.c (get_register): Use get_frame_register_value rather
  9062. than frame_register, and always pass a valid value to val_print.
  9063. 2011-01-25 Pedro Alves <pedro@codesourcery.com>
  9064. Centralize printing "<optimized out>".
  9065. * valprint.h (val_print_optimized_out): Declare.
  9066. * cp-valprint.c (cp_print_value_fields): Use
  9067. val_print_optimized_out.
  9068. * jv-valprint.c (java_print_value_fields): Ditto.
  9069. * p-valprint.c (pascal_object_print_value_fields): Ditto.
  9070. * printcmd.c (print_formatted): Ditto.
  9071. * valprint.c (valprint_check_validity): Ditto.
  9072. (value_check_printable): Ditto.
  9073. (val_print_optimized_out): New.
  9074. 2011-01-25 Pedro Alves <pedro@codesourcery.com>
  9075. * infcmd.c (default_print_registers_info): Allocate values so to
  9076. never pass a NULL value to val_print.
  9077. 2011-01-25 Pedro Alves <pedro@codesourcery.com>
  9078. * cp-valprint.c (cp_print_value): Treat the 'skip' local as
  9079. boolean. Make sure to always pass a value that matches the
  9080. contents buffer to callees. Preserve `address' for following
  9081. iterations.
  9082. * value.c (value_contents_for_printing_const): New.
  9083. (value_address): Constify value argument.
  9084. * value.h (value_contents_for_printing_const): Declare.
  9085. (value_address): Constify value argument.
  9086. 2011-01-25 Pedro Alves <pedro@codesourcery.com>
  9087. * regcache.c (struct regcache_descr): Rename
  9088. sizeof_raw_register_valid_p field to sizeof_raw_register_status,
  9089. and sizeof_cooked_register_valid_p to
  9090. sizeof_cooked_register_status.
  9091. (init_regcache_descr): Adjust.
  9092. (struct regcache): Rename register_valid_p field to
  9093. register_status.
  9094. (regcache_xmalloc_1, regcache_xfree, regcache_save)
  9095. (do_cooked_read): Adjust.
  9096. (regcache_valid_p): Rename to ...
  9097. (regcache_register_status): ... this. Adjust.
  9098. (regcache_invalidate): Adjust.
  9099. (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
  9100. Adjust.
  9101. (regcache_raw_supply): Adjust. If buf i NULL, mark the register
  9102. as unavailable, not valid.
  9103. (regcache_dump): Adjust.
  9104. * regcache.h (enum register_status): New.
  9105. (regcache_register_status): Declare.
  9106. (regcache_invalidate): Delete declaration.
  9107. * corelow.c (get_core_registers): Adjust.
  9108. * tracepoint.c (tfile_fetch_registers): Adjust.
  9109. * trad-frame.c (REG_VALUE): Rename to ...
  9110. (TF_REG_VALUE): ... this.
  9111. (REG_UNKNOWN): Rename to ...
  9112. (TF_REG_UNKNOWN): ... this.
  9113. (trad_frame_set_value, trad_frame_set_unknown): Adjust.
  9114. * mi/mi-main.c (register_changed_p): Adjust.
  9115. 2011-01-25 Pedro Alves <pedro@codesourcery.com>
  9116. * regcache.c (struct regcache_descr): Remove outdated comment.
  9117. (init_regcache_descr): Remove sizeof_raw_register_valid_p
  9118. overallocate hack.
  9119. (regcache_xmalloc): Rename to ...
  9120. (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
  9121. Allocate the regcache type accordingly.
  9122. (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
  9123. (regcache_xfree): Asser the source is also readonly. Copy sizeof
  9124. cooked registers, not raw.
  9125. (regcache_dup_no_passthrough): Delete.
  9126. (get_thread_arch_regcache): Use regcache_xmalloc_1.
  9127. * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
  9128. mention obsolete write_register_bytes.
  9129. * regcache.h (regcache_dup_no_passthrough): Delete declaration.
  9130. 2011-01-25 Pedro Alves <pedro@codesourcery.com>
  9131. Stop remote_read_bytes from handling partial reads itself.
  9132. * remote-fileio.c: Include target.h.
  9133. (remote_fileio_write_bytes): Delete.
  9134. (remote_fileio_func_open, remote_fileio_func_write)
  9135. (remote_fileio_func_rename, remote_fileio_func_unlink): Use
  9136. target_read_memory.
  9137. (remote_fileio_func_stat): Use target_read_memory and
  9138. target_write_memory.
  9139. (remote_fileio_func_gettimeofday): Use target_write_memory.
  9140. (remote_fileio_func_system): Use target_read_memory.
  9141. * remote.c (remote_write_bytes): Make it static.
  9142. (remote_read_bytes): Don't handle partial reads here.
  9143. * remote.h (remote_read_bytes): Delete declaration.
  9144. 2011-01-25 Pedro Alves <pedro@codesourcery.com>
  9145. Simplify XML parsing a bit.
  9146. * xml-support.h (gdb_xml_parse_quick): Declare.
  9147. * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
  9148. from gdb_xml_create_parser_and_cleanup, and added `old_chain'
  9149. parameter.
  9150. (gdb_xml_create_parser_and_cleanup): Reimplement on top of
  9151. gdb_xml_create_parser_and_cleanup_1.
  9152. (gdb_xml_parse_quick): New.
  9153. * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
  9154. * osdata.c (osdata_parse): Ditto.
  9155. * remote.c (remote_threads_info): Ditto.
  9156. * solib-target.c (solib_target_parse_libraries): Ditto.
  9157. * xml-syscall.c (syscall_parse_xml): Ditto.
  9158. * xml-tdesc.c (tdesc_parse_xml): Ditto.
  9159. 2011-01-24 Kevin Buettner <kevinb@redhat.com>
  9160. * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
  9161. with remote-mips.o added to gdb_target_obs.
  9162. * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
  9163. 2011-01-24 Pedro Alves <pedro@codesourcery.com>
  9164. * ada-valprint.c (val_print_packed_array_elements): Pass the
  9165. correct struct value to val_print.
  9166. (ada_val_print_1): Ditto.
  9167. 2011-01-24 Pedro Alves <pedro@codesourcery.com>
  9168. Don't lose embedded_offset in printing routines throughout.
  9169. * valprint.h (val_print_array_elements): Change prototype.
  9170. * valprint.c (val_print_array_elements): Add `embedded_offset'
  9171. parameter, and adjust to pass it down to val_print, while passing
  9172. `valaddr' or `address' unmodified. Take embedded_offset into
  9173. account when checking repetitions.
  9174. * c-valprint.c (c_val_print): Pass embedded_offset to
  9175. val_print_array_elements instead of adjusting `valaddr' and
  9176. `address'.
  9177. * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
  9178. embedded_offset to val_print_array_elements instead of adjusting
  9179. `valaddr'.
  9180. * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
  9181. * p-valprint.c (pascal_val_print): Pass embedded_offset to
  9182. val_print_array_elements and pascal_object_print_value_fields
  9183. instead of adjusting `valaddr'.
  9184. (pascal_object_print_value_fields): Add `offset' parameter, and
  9185. adjust to use it.
  9186. (pascal_object_print_value): Add `offset' parameter, and adjust to
  9187. use it.
  9188. (pascal_object_print_static_field): Use
  9189. value_contents_for_printing/value_embedded_offset, rather than
  9190. value_contents.
  9191. * ada-valprint.c (val_print_packed_array_elements): Add `offset'
  9192. parameter, and adjust to use it. Use
  9193. value_contents_for_printing/value_embedded_offset, rather than
  9194. value_contents.
  9195. (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
  9196. (ada_val_print_array): Add `offset' parameter, and adjust to use
  9197. it.
  9198. (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
  9199. `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
  9200. Instead work with offsets. Use
  9201. value_contents_for_printing/value_embedded_offset, rather than
  9202. value_contents. Change `defer_val_int' local type to CORE_ADDR,
  9203. and use value_from_pointer to extract a target pointer, rather
  9204. than value_from_longest.
  9205. (print_variant_part): Add `offset' parameter. Replace
  9206. `outer_valaddr' parameter by a new `outer_offset' parameter.
  9207. Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
  9208. (ada_value_print): Use
  9209. value_contents_for_printing/value_embedded_offset, rather than
  9210. value_contents.
  9211. (print_record): Add `offset' parameter, and adjust to pass it
  9212. down.
  9213. (print_field_values): Add `offset' parameter. Replace
  9214. `outer_valaddr' parameter by a new `outer_offset' parameter.
  9215. Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
  9216. Use value_contents_for_printing/value_embedded_offset, rather than
  9217. value_contents.
  9218. * d-valprint.c (dynamic_array_type): Use
  9219. value_contents_for_printing/value_embedded_offset, rather than
  9220. value_contents.
  9221. * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
  9222. Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
  9223. (java_print_value_fields): Take `offset' into account. Don't
  9224. re-adjust `valaddr'. Instead pass down adjusted offsets.
  9225. (java_val_print): Take `embedded_offset' into account. Pass it to
  9226. java_print_value_fields.
  9227. * f-valprint.c (f77_print_array_1): Add `embedded_offset'
  9228. parameter. Don't re-adjust `valaddr' or `address'. Instead pass
  9229. down adjusted offsets.
  9230. (f77_print_array): Add `embedded_offset' parameter. Pass it down.
  9231. (f_val_print): Take `embedded_offset' into account.
  9232. 2011-01-21 Joel Brobecker <brobecker@adacore.com>
  9233. * inflow.c: Include "gdbcmd.h".
  9234. (interactive_mode): New static global, moved here from top.c.
  9235. (show_interactive_mode): New function, moved here from top.c.
  9236. use gdb_has_a_terminal instead of input_from_terminal_p to
  9237. determine the current mode.
  9238. (gdb_has_a_terminal): Add handling of the "iteractive-mode"
  9239. setting.
  9240. (_initialize_inflow): Add the "set/show interactive-mode"
  9241. commands. Moved here from top.c, after having adjusted slightly
  9242. the help text.
  9243. * top.c (interactive_mode, show_interactive_mode): Delete, moved
  9244. to inflow.c.
  9245. (input_from_terminal_p): Remove handling of "interactive-mode"
  9246. setting, moved to infow.c.
  9247. (init_main): Remove creation of the "set/show interactive-mode"
  9248. commands, moved to inflow.c.
  9249. 2011-01-19 Joel Brobecker <brobecker@adacore.com>
  9250. * NEWS: Add entry for native ia64-hpux support.
  9251. 2011-01-19 Tom Tromey <tromey@redhat.com>
  9252. PR mi/8618:
  9253. * thread.c (free_thread): Free 'name'.
  9254. (print_thread_info): Emit thread name. Change CLI output.
  9255. (thread_name_command): New function.
  9256. (do_captured_thread_select): Emit newline.
  9257. (_initialize_thread): Register 'thread name' command.
  9258. * target.h (struct target_ops) <to_thread_name>: New field.
  9259. (target_thread_name): New macro.
  9260. * target.c (update_current_target): Handle to_thread_name.
  9261. * python/py-infthread.c (thpy_get_name): New function.
  9262. (thpy_set_name): Likewise.
  9263. (thread_object_getset): Add "name".
  9264. * linux-nat.c (linux_nat_thread_name): New function.
  9265. (linux_nat_add_target): Set to_thread_name.
  9266. * gdbthread.h (struct thread_info) <name>: New field.
  9267. 2011-01-18 Joel Brobecker <brobecker@adacore.com>
  9268. * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
  9269. (ada_val_print_1): Likewise.
  9270. 2011-01-18 Joel Brobecker <brobecker@adacore.com>
  9271. * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
  9272. upper limit address is not greater than the function end address
  9273. when the upper limit could not be computed using the debugging
  9274. info.
  9275. 2011-01-17 Tom Tromey <tromey@redhat.com>
  9276. * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
  9277. get_regcomp_error.
  9278. * utils.c: Include gdb_regex.h.
  9279. (do_regfree_cleanup): New function.
  9280. (make_regfree_cleanup): Likewise.
  9281. (get_regcomp_error): Likewise.
  9282. * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
  9283. 2011-01-17 Tom Tromey <tromey@redhat.com>
  9284. * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
  9285. re_compile_fastmap.
  9286. 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
  9287. * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
  9288. for internal variables.
  9289. (last_was_structop): New static variable.
  9290. (COMPLETE): New token.
  9291. (field_exp): New rule to group all '.' suffix handling.
  9292. Add mark_struct_expression calls when approriate to be able
  9293. to correctly find fields for completion.
  9294. (yylex): Adapt to handle field completion and set INTVAR when
  9295. required.
  9296. 2011-01-14 Yao Qi <yao@codesourcery.com>
  9297. * arm-tdep.c (arm_register_reggroup_p): FPS register is in
  9298. save_reggroup, restore_reggroup and all_reggroup.
  9299. 2011-01-14 Joel Brobecker <brobecker@adacore.com>
  9300. * ada-valprint. (ada_printchar): Use the correct type length
  9301. in call to ada_emit_char.
  9302. * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
  9303. 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
  9304. * solib-som.h (hpux_major_release): Declare variable here.
  9305. * solib-som.c: Remove <sys/utsname.h> header.
  9306. (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
  9307. (hpux_major_release): Make global, change default value to
  9308. DEFAULT_HPUX_MAJOR_RELEASE.
  9309. (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
  9310. * hppa-hpux-nat.c: Add <sys/utsname.h> include.
  9311. Add "solib-som.h" header.
  9312. (set_hpux_major_release): New function.
  9313. (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
  9314. 2011-01-14 Mike Frysinger <vapier@gentoo.org>
  9315. * configure.tgt (*-*-uclinux*): Match more Linux os targets
  9316. 2011-01-14 Joel Brobecker <brobecker@adacore.com>
  9317. * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
  9318. new-line at end of warning message.
  9319. (ia64_hpux_store_register): Remove trailing new-line at end of
  9320. error message.
  9321. * ia64-hpux-tdep.c: Rephrase comment.
  9322. * solib-ia64-hpux.c (struct dld_info): Change type of field
  9323. dld_flags from "long long" to ULONGEST.
  9324. 2011-01-14 Pedro Alves <pedro@codesourcery.com>
  9325. * target.h (deprecated_child_ops): Delete declaration.
  9326. * target.c (deprecated_child_ops): Delete definition.
  9327. 2011-01-14 Pedro Alves <pedro@codesourcery.com>
  9328. * Makefile.in (hpux-thread.o): Delete rule.
  9329. * configure.ac: Don't check for HPUX DCE threads support.
  9330. * configure, config.in: Regenerate.
  9331. * hppa-hpux-nat.c (child_suppress_run): Delete.
  9332. (hppa_hpux_child_can_run): Delete.
  9333. (_initialize_hppa_hpux_nat): Don't override to_can_run.
  9334. * hpux-thread.c: Delete.
  9335. 2011-01-13 Joel Brobecker <brobecker@adacore.com>
  9336. * hpux-thread.c (hpux_pid_to_str): Delete.
  9337. 2011-01-13 Joel Brobecker <brobecker@adacore.com>
  9338. * ada-valprint.c (ada_emit_char): Remove strange code.
  9339. Check that c is <= UCHAR_MAX before passing it to isascii.
  9340. (char_at): Do not assume that TYPE_LEN is either 1 or 2.
  9341. 2011-01-13 Joel Brobecker <brobecker@adacore.com>
  9342. * top.c (input_from_terminal_p): Restrict the use of interactive_mode
  9343. to the case where instream is stdin.
  9344. 2011-01-13 Joel Brobecker <brobecker@adacore.com>
  9345. * ia64-tdep.h (struct regcache): Forward declare.
  9346. (struct ia64_infcall_ops): New struct type.
  9347. (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
  9348. and "infcall_ops".
  9349. * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
  9350. Renames ia64_find_global_pointer.
  9351. (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
  9352. (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
  9353. (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
  9354. methods.
  9355. (ia64_infcall_ops): New static global constant.
  9356. (ia64_gdbarch_init): Set tdep->infcall_ops.
  9357. * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
  9358. (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
  9359. * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
  9360. (ia64_hpux_dummy_code): New static global constant.
  9361. (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
  9362. (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
  9363. (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
  9364. New function.
  9365. (ia64_hpux_infcall_ops): New static global constant.
  9366. (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
  9367. for inferior function calls to work properly on ia64-hpux.
  9368. 2011-01-13 Joel Brobecker <brobecker@adacore.com>
  9369. * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
  9370. * ia64-tdep.h (struct frame_info): forward declaration.
  9371. (struct gdbarch_tdep): Add field size_of_register_frame.
  9372. * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
  9373. to determine the size of the register frame.
  9374. (ia64_size_of_register_frame): New function.
  9375. (ia64_gdbarch_init): Set tdep->size_of_register_frame.
  9376. * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
  9377. (IA64_HPUX_UREG_REASON): New macro.
  9378. (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
  9379. New functions.
  9380. (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
  9381. * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
  9382. (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
  9383. objects.
  9384. 2011-01-13 Joel Brobecker <brobecker@adacore.com>
  9385. Add support for ia64-hpux.
  9386. * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
  9387. ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
  9388. * configure.host: Add handling for ia64-hpux hosts. Add associated
  9389. floatformats.
  9390. * configure.tgt: Add handling for ia64-hpux targets.
  9391. * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
  9392. (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
  9393. (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
  9394. 2011-01-13 Joel Brobecker <brobecker@adacore.com>
  9395. [ttrace] Compute thread list immediately after attach.
  9396. * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
  9397. New subprogram.
  9398. (inf_ttrace_attach): Use it.
  9399. 2011-01-13 Joel Brobecker <brobecker@adacore.com>
  9400. * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
  9401. if we could not determine the frame's function address. Instead,
  9402. use the frame's PC, and then continue.
  9403. 2011-01-13 Joel Brobecker <brobecker@adacore.com>
  9404. * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
  9405. not already defined.
  9406. 2011-01-13 Joel Brobecker <brobecker@adacore.com>
  9407. * ia64-tdep.c (ia64_struct_type_p): New function.
  9408. (ia64_extract_return_value): Handle integral values that are
  9409. less than 8 bytes long.
  9410. (ia64_push_dummy_call): Likewise.
  9411. 2011-01-13 Joel Brobecker <brobecker@adacore.com>
  9412. * ia64-tdep.c (floatformat_ia64_ext_little): Renames
  9413. floatformat_ia64_ext.
  9414. (floatformat_ia64_ext_big): New static const.
  9415. (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
  9416. 2011-01-12 Tom Tromey <tromey@redhat.com>
  9417. * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
  9418. messages.
  9419. * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
  9420. (mi_cmd_thread_list_ids): Likewise.
  9421. (mi_cmd_data_list_changed_registers): Likewise.
  9422. (mi_cmd_data_list_register_values): Likewise.
  9423. (mi_cmd_data_write_register_values): Likewise.
  9424. (mi_cmd_data_evaluate_expression): Likewise.
  9425. (mi_cmd_data_read_memory): Likewise.
  9426. (mi_cmd_data_read_memory_bytes): Likewise.
  9427. (mi_cmd_data_write_memory): Likewise.
  9428. (mi_cmd_enable_timings): Likewise.
  9429. * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
  9430. * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
  9431. (mi_cmd_var_delete): Likewise.
  9432. (mi_cmd_var_set_format): Likewise.
  9433. (mi_cmd_var_show_format): Likewise.
  9434. (mi_cmd_var_info_num_children): Likewise.
  9435. (mi_cmd_var_list_children): Likewise.
  9436. (mi_cmd_var_info_type): Likewise.
  9437. (mi_cmd_var_info_expression): Likewise.
  9438. (mi_cmd_var_show_attributes): Likewise.
  9439. (mi_cmd_var_assign): Likewise.
  9440. (mi_cmd_var_update): Likewise.
  9441. (mi_cmd_enable_pretty_printing): Likewise.
  9442. (mi_cmd_var_set_update_range): Likewise.
  9443. * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
  9444. messages.
  9445. (mi_cmd_target_file_put): Likewise.
  9446. (mi_cmd_target_file_delete): Likewise.
  9447. * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
  9448. messages.
  9449. (mi_cmd_stack_info_depth): Likewise.
  9450. (mi_cmd_stack_list_locals): Likewise.
  9451. (mi_cmd_stack_list_args): Likewise.
  9452. (mi_cmd_stack_select_frame): Likewise.
  9453. (mi_cmd_stack_select_frame): Likewise.
  9454. (mi_cmd_stack_info_frame): Likewise.
  9455. * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
  9456. messages.
  9457. (mi_cmd_file_list_exec_source_files): Likewise.
  9458. * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
  9459. (mi_cmd_env_cd): Likewise.
  9460. (mi_cmd_env_path): Likewise.
  9461. (mi_cmd_env_dir): Likewise.
  9462. (mi_cmd_inferior_tty_show): Likewise.
  9463. * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
  9464. * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
  9465. (mi_cmd_break_watch): Likewise.
  9466. 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
  9467. * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
  9468. (ppc_linux_insert_hw_breakpoint): Likewise.
  9469. (ppc_linux_remove_hw_breakpoint): Likewise.
  9470. (ppc_linux_insert_watchpoint): Likewise.
  9471. 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
  9472. Jan Kratochvil <jan.kratochvil@redhat.com>
  9473. PR fortran/11104 and DWARF unbound arrays detection.
  9474. * dwarf2read.c (read_subrange_type): Set zero length on unspecified
  9475. upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
  9476. unspecified upper bound.
  9477. * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
  9478. variables array_size_array, tmp_type and offset_item. New variable
  9479. array. Remove call to f77_get_upperbound. New variables array_type
  9480. and index. Call value_subscripted_rvalue for each dimenasion. Remove
  9481. the final call to deprecated_set_value_type.
  9482. 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
  9483. Make value allocations more lazy.
  9484. * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
  9485. instead of allocate_value and set_value_lazy when possible.
  9486. * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
  9487. instead of allocate_value and set_value_lazy.
  9488. * findvar.c (value_of_register_lazy): Likewise.
  9489. (read_var_value): Remove V preallocation, call just check_typedef in
  9490. advance. Move allocate_value to LOC_CONST, LOC_LABEL,
  9491. LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
  9492. LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
  9493. set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
  9494. remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
  9495. in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
  9496. the end, remove set_value_lazy there.
  9497. * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
  9498. instead of allocate_value and set_value_lazy when possible.
  9499. * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
  9500. * value.c (allocate_computed_value): Use allocate_value_lazy instead
  9501. of allocate_value and set_value_lazy.
  9502. (value_from_contents_and_address): Use allocate_value_lazy instead of
  9503. allocate_value and set_value_lazy when possible.
  9504. 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
  9505. * disasm.c (dump_insns): Support dumping opcodes for MI.
  9506. * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
  9507. dumping of instruction opcodes.
  9508. 2011-01-09 Robert Millan <rmh@gnu.org> (tiny change)
  9509. * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
  9510. appropiately.
  9511. 2011-01-11 Tom Tromey <tromey@redhat.com>
  9512. * thread.c (do_captured_thread_select): Emit newline before
  9513. printing frame.
  9514. 2011-01-11 Michael Snyder <msnyder@vmware.com>
  9515. * s390-tdep.c: Comment cleanup, mostly periods and spaces.
  9516. * score-tdep.c: Ditto.
  9517. * score-tdep.h: Ditto.
  9518. * ser-base.c: Ditto.
  9519. * ser-go32.c: Ditto.
  9520. * serial.c: Ditto.
  9521. * serial.h: Ditto.
  9522. * ser-mingw.c: Ditto.
  9523. * ser-pipe.c: Ditto.
  9524. * ser-tcp.c: Ditto.
  9525. * ser-unix.c: Ditto.
  9526. * sh64-tdep.c: Ditto.
  9527. * shnbsd-nat.c: Ditto.
  9528. * sh-tdep.c: Ditto.
  9529. * sh-tdep.h: Ditto.
  9530. * solib.c: Ditto.
  9531. * solib-darwin.c: Ditto.
  9532. * solib-frv.c: Ditto.
  9533. * solib.h: Ditto.
  9534. * solib-irix.c: Ditto.
  9535. * solib-osf.c: Ditto.
  9536. * solib-pa64.c: Ditto.
  9537. * solib-som.c: Ditto.
  9538. * solib-spu.c: Ditto.
  9539. * solib-sunos.c: Ditto.
  9540. * solib-svr4.c: Ditto.
  9541. * solist.h: Ditto.
  9542. * sol-thread.c: Ditto.
  9543. * somread.c: Ditto.
  9544. * source.c: Ditto.
  9545. * source.h: Ditto.
  9546. * sparc64-linux-tdep.c: Ditto.
  9547. * sparc64-tdep.c: Ditto.
  9548. * sparc-linux-nat.c: Ditto.
  9549. * sparc-linux-tdep.c: Ditto.
  9550. * sparc-sol2-nat.c: Ditto.
  9551. * sparc-sol2-tdep.c: Ditto.
  9552. * sparc-tdep.c: Ditto.
  9553. * sparc-tdep.h: Ditto.
  9554. * spu-tdep.c: Ditto.
  9555. * stabsread.c: Ditto.
  9556. * stabsread.h: Ditto.
  9557. * stack.c: Ditto.
  9558. * symfile.c: Ditto.
  9559. * symfile.h: Ditto.
  9560. * symmisc.c: Ditto.
  9561. * symtab.c: Ditto.
  9562. * symtab.h: Ditto.
  9563. * target.c: Ditto.
  9564. * target-descriptions.c: Ditto.
  9565. * target-descriptions.h: Ditto.
  9566. * target.h: Ditto.
  9567. * target-memory.c: Ditto.
  9568. * terminal.h: Ditto.
  9569. * thread.c: Ditto.
  9570. * top.c: Ditto.
  9571. * tracepoint.c: Ditto.
  9572. * tracepoint.h: Ditto.
  9573. * trad-frame.h: Ditto.
  9574. * typeprint.c: Ditto.
  9575. 2011-01-11 Michael Snyder <msnyder@vmware.com>
  9576. * ui-file.c: Comment cleanup, mostly periods and spaces.
  9577. * ui-file.h: Ditto.
  9578. * ui-out.c: Ditto.
  9579. * ui-out.h: Ditto.
  9580. * utils.c: Ditto.
  9581. * v850-tdep.c: Ditto.
  9582. * valarith.c: Ditto.
  9583. * valops.c: Ditto.
  9584. * valprint.c: Ditto.
  9585. * valprint.h: Ditto.
  9586. * value.c: Ditto.
  9587. * value.h: Ditto.
  9588. * varobj.c: Ditto.
  9589. * varobj.h: Ditto.
  9590. * vax-tdep.c: Ditto.
  9591. * vec.c: Ditto.
  9592. * vec.h: Ditto.
  9593. * version.h: Ditto.
  9594. * windows-nat.c: Ditto.
  9595. * windows-tdep.c: Ditto.
  9596. * xcoffread.c: Ditto.
  9597. * xcoffsolib.c: Ditto.
  9598. * xml-support.c: Ditto.
  9599. * xstormy16-tdep.c: Ditto.
  9600. * xtensa-tdep.c: Ditto.
  9601. * xtensa-tdep.h: Ditto.
  9602. 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
  9603. * breakpoint.c (resources_needed_watchpoint): Fix indentation.
  9604. * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
  9605. 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
  9606. Thiago Jung Bauermann <bauerman@br.ibm.com>
  9607. Implement support for PowerPC BookE ranged watchpoints.
  9608. * breakpoint.h
  9609. (struct breakpoint_ops) <resources_needed>: New method.
  9610. Initialize to NULL in all existing breakpoint_ops instances.
  9611. (struct breakpoint) <exact>: New field.
  9612. (target_exact_watchpoints): Declare external global.
  9613. * breakpoint.c (target_exact_watchpoints): New global flag.
  9614. (update_watchpoint): Set b->type to bp_hardware_watchpoint and
  9615. b->enable_state to bp_enabled before calling
  9616. hw_watchpoint_used_count.
  9617. (hw_watchpoint_used_count): Iterate over all bp_locations in a
  9618. watchpoint. Call breakpoint's breakpoint_ops.resources_needed
  9619. if available.
  9620. (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
  9621. if the watchpoint is exact.
  9622. (resources_needed_watchpoint): New function.
  9623. (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
  9624. (watch_command_1): Set b->exact if the user asked for an exact
  9625. watchpoint and one can be set.
  9626. (can_use_hardware_watchpoint): Add exact_watchpoints argument.
  9627. Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
  9628. the user asks for an exact watchpoint and one can be set. Return
  9629. number of needed debug registers to watch the expression.
  9630. * gdbtypes.c (is_scalar_type): New function, based on
  9631. valprint.c:scalar_type_p.
  9632. (is_scalar_type_recursive): New function.
  9633. * gdbtypes.h (is_scalar_type_recursive): Declare.
  9634. * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
  9635. handle regions when ranged watchpoints are available.
  9636. (create_watchpoint_request): New function.
  9637. (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
  9638. create_watchpoint_request.
  9639. * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
  9640. (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
  9641. `set powerpc' and `show powerpc' commands.
  9642. * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
  9643. Mention documentation comment in the target macro.
  9644. (target_region_ok_for_hw_watchpoint): Document return value.
  9645. 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
  9646. * breakpoint.c (update_watchpoint): Decide on using a software or
  9647. hardware watchpoint after the bp_locations are created.
  9648. 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
  9649. Convert hardware watchpoints to use breakpoint_ops.
  9650. * breakpoint.h (breakpoint_ops) <insert>: Rename to...
  9651. <insert_location>: ... this. Return int instead of void.
  9652. Accept pointer to struct bp_location instead of pointer to
  9653. struct breakpoint. Adapt all implementations.
  9654. (breakpoint_ops) <remove>: Rename to...
  9655. <remove_location>: ... this. Accept pointer to struct bp_location
  9656. instead of pointer to struct breakpoint. Adapt all implementations.
  9657. * breakpoint.c (insert_catchpoint): Delete function.
  9658. (insert_bp_location): Call the watchpoint or catchpoint's
  9659. breakpoint_ops.insert method.
  9660. (remove_breakpoint_1): Call the watchpoint or catchpoint's
  9661. breakpoint_ops.remove method.
  9662. (insert_watchpoint, remove_watchpoint): New functions.
  9663. (watchpoint_breakpoint_ops): New structure.
  9664. (watch_command_1): Initialize the OPS field.
  9665. * inf-child.c (inf_child_insert_fork_catchpoint)
  9666. (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
  9667. (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
  9668. (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
  9669. Delete functions.
  9670. (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
  9671. to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
  9672. to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
  9673. to_remove_exec_catchpoint and to_set_syscall_catchpoint.
  9674. * target.c (update_current_target): Change default implementation of
  9675. to_insert_fork_catchpoint, to_remove_fork_catchpoint,
  9676. to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
  9677. to_insert_exec_catchpoint, to_remove_exec_catchpoint and
  9678. to_set_syscall_catchpoint to return_one.
  9679. (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
  9680. (debug_to_insert_exec_catchpoint): Report return value.
  9681. * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
  9682. (to_insert_exec_catchpoint): Change declaration to return int instead
  9683. of void.
  9684. 2011-01-11 Michael Snyder <msnyder@vmware.com>
  9685. * arm-tdep.c: Internationalization.
  9686. * c-lang.c: Ditto.
  9687. * charset.c: Ditto.
  9688. * fork-child.c: Ditto.
  9689. * nto-procfs.c: Ditto.
  9690. * ppc-sysv-tdep.c: Ditto.
  9691. * procfs.c: Ditto.
  9692. * remote-mips.c: Ditto.
  9693. * remote.c: Ditto.
  9694. * rs6000-nat.c: Ditto.
  9695. * rs6000-tdep.c: Ditto.
  9696. * target.c: Ditto.
  9697. * valops.c: Ditto.
  9698. * value.c: Ditto.
  9699. * xml-support.c: Ditto.
  9700. * mi/mi-cmd-break.c: Ditto.
  9701. * mi/mi-cmd-var.c: Ditto.
  9702. * mi/mi-interp.c: Ditto.
  9703. * mi/mi-main.c: Ditto.
  9704. 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
  9705. * remote-sim.c (gdbsim_store_register): Update API to
  9706. sim_store_register to check more error conditions.
  9707. 2011-01-10 Michael Snyder <msnyder@vmware.com>
  9708. * nto-procfs.c: Comment cleanup, mostly periods and spaces.
  9709. * nto-tdep.c: Ditto.
  9710. * nto-tdep.h: Ditto.
  9711. * objc-exp.y: Ditto.
  9712. * objc-lang.c: Ditto.
  9713. * objfiles.c: Ditto.
  9714. * objfiles.h: Ditto.
  9715. * observer.c: Ditto.
  9716. * opencl-lang.c: Ditto.
  9717. * osabi.c: Ditto.
  9718. * parse.c: Ditto.
  9719. * parser-defs.h: Ditto.
  9720. * p-exp.y: Ditto.
  9721. * p-lang.c: Ditto.
  9722. * posix-hdep.c: Ditto.
  9723. * ppcbug-rom.c: Ditto.
  9724. * ppc-linux-nat.c: Ditto.
  9725. * ppc-linux-tdep.c: Ditto.
  9726. * ppc-linux-tdep.h: Ditto.
  9727. * ppcnbsd-tdep.c: Ditto.
  9728. * ppcobsd-tdep.c: Ditto.
  9729. * ppcobsd-tdep.h: Ditto.
  9730. * ppc-sysv-tdep.c: Ditto.
  9731. * ppc-tdep.h: Ditto.
  9732. * printcmd.c: Ditto.
  9733. * proc-abi.c: Ditto.
  9734. * proc-flags.c: Ditto.
  9735. * procfs.c: Ditto.
  9736. * proc-utils.h: Ditto.
  9737. * progspace.h: Ditto.
  9738. * prologue-value.c: Ditto.
  9739. * prologue-value.h: Ditto.
  9740. * psympriv.h: Ditto.
  9741. * psymtab.c: Ditto.
  9742. * p-typeprint.c: Ditto.
  9743. * p-valprint.c: Ditto.
  9744. * ravenscar-sparc-thread.c: Ditto.
  9745. * ravenscar-thread.c: Ditto.
  9746. * ravenscar-thread.h: Ditto.
  9747. * record.c: Ditto.
  9748. * regcache.c: Ditto.
  9749. * regcache.h: Ditto.
  9750. * remote.c: Ditto.
  9751. * remote-fileio.c: Ditto.
  9752. * remote-fileio.h: Ditto.
  9753. * remote.h: Ditto.
  9754. * remote-m32r-sdi.c: Ditto.
  9755. * remote-mips.c: Ditto.
  9756. * remote-sim.c: Ditto.
  9757. * rs6000-aix-tdep.c: Ditto.
  9758. * rs6000-nat.c: Ditto.
  9759. * rs6000-tdep.c: Ditto.
  9760. 2011-01-10 Michael Snyder <msnyder@vmware.com>
  9761. * charset.c (validate): Internationalization.
  9762. * coffread.c (read_one_sym): Ditto.
  9763. * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
  9764. * h8300-tdep.c (H8300_extract_return_value): Ditto.
  9765. * inflow.c (new_tty): Ditto.
  9766. * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
  9767. * m32c-tdep.c (m32c_return_value): Ditto.
  9768. * mep-tdep.c (mep_store_return_value): Ditto.
  9769. * score-tdep.c (score7_fetch_insn): Ditto.
  9770. * ser-mingw.c (pipe_windows_open): Ditto.
  9771. * sh64-tdep.c (sh64_extract_return_value): Ditto.
  9772. * spu-tdep.c (spu_register_type): Ditto.
  9773. * tracepoint.c (trace_find_command): Ditto.
  9774. * valarith.c (value_pos): Ditto.
  9775. 2011-01-10 Joel Brobecker <brobecker@adacore.com>
  9776. * ada-valprint.c (printstr): Minor comment reformatting.
  9777. 2011-01-08 Michael Snyder <msnyder@vmware.com>
  9778. * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
  9779. markup.
  9780. 2011-01-08 Michael Snyder <msnyder@vmware.com>
  9781. * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
  9782. * hppa-hpux-tdep.c: Ditto.
  9783. * hppa-linux-nat.c: Ditto.
  9784. * hppa-linux-tdep.c: Ditto.
  9785. * hppanbsd-tdep.c: Ditto.
  9786. * hppa-tdep.c: Ditto.
  9787. * hppa-tdep.h: Ditto.
  9788. * hpux-thread.c: Ditto.
  9789. * i386-cygwin-tdep.c: Ditto.
  9790. * i386-darwin-nat.c: Ditto.
  9791. * i386gnu-nat.c: Ditto.
  9792. * i386-linux-nat.c: Ditto.
  9793. * i386-linux-tdep.c: Ditto.
  9794. * i386-nat.c: Ditto.
  9795. * i386-nat.h: Ditto.
  9796. * i386nbsd-tdep.c: Ditto.
  9797. * i386-sol2-nat.c: Ditto.
  9798. * i386-stub.c: Ditto.
  9799. * i386-tdep.c: Ditto.
  9800. * i386-tdep.h: Ditto.
  9801. * i387-tdep.c: Ditto.
  9802. * ia64-linux-nat.c: Ditto.
  9803. * ia64-linux-tdep.c: Ditto.
  9804. * ia64-tdep.c: Ditto.
  9805. * infcall.c: Ditto.
  9806. * infcall.h: Ditto.
  9807. * infcmd.c: Ditto.
  9808. * inferior.c: Ditto.
  9809. * inferior.h: Ditto.
  9810. * infloop.c: Ditto.
  9811. * inflow.c: Ditto.
  9812. * infrun.c: Ditto.
  9813. * interps.c: Ditto.
  9814. * interps.h: Ditto.
  9815. * iq2000-tdep.c: Ditto.
  9816. * irix5-nat.c: Ditto.
  9817. * jit.c: Ditto.
  9818. * jit.h: Ditto.
  9819. * jv-exp.y: Ditto.
  9820. * jv-lang.c: Ditto.
  9821. * jv-lang.h: Ditto.
  9822. * jv-typeprint.c: Ditto.
  9823. * jv-valprint.c: Ditto.
  9824. * language.c: Ditto.
  9825. * language.h: Ditto.
  9826. * linespec.c: Ditto.
  9827. * linux-fork.c: Ditto.
  9828. * linux-nat.c: Ditto.
  9829. * linux-thread-db.c: Ditto.
  9830. * lm32-tdep.c: Ditto.
  9831. 2011-01-08 Michael Snyder <msnyder@vmware.com>
  9832. * m2-exp.y: Comment cleanup, mostly periods and spaces.
  9833. * m2-lang.c: Ditto.
  9834. * m2-typeprint.c: Ditto.
  9835. * m2-valprint.c: Ditto.
  9836. * m32c-tdep.c: Ditto.
  9837. * m32r-linux-nat.c: Ditto.
  9838. * m32r-rom.c: Ditto.
  9839. * m32r-tdep.c: Ditto.
  9840. * m32r-tdep.h: Ditto.
  9841. * m68hc11-tdep.c: Ditto.
  9842. * m58klinux-nat.c: Ditto.
  9843. * m68k-tdep.c: Ditto.
  9844. * m88k-tdep.c: Ditto.
  9845. * m88k-tdep.h: Ditto.
  9846. * machoread.c: Ditto.
  9847. * macrocmd.c: Ditto.
  9848. * macroexp.c: Ditto.
  9849. * macrotab.c: Ditto.
  9850. * main.c: Ditto.
  9851. * maint.c: Ditto.
  9852. * mdebugread.c: Ditto.
  9853. * mdebugread.h: Ditto.
  9854. * memattr.c: Ditto.
  9855. * memattr.h: Ditto.
  9856. * memory-map.h: Ditto.
  9857. * mep-tdep.c: Ditto.
  9858. * microblaze-rom.c: Ditto.
  9859. * microblaze-tdep.c: Ditto.
  9860. * minsyms.c: Ditto.
  9861. * mips-irix-tdep.c: Ditto.
  9862. * mips-linux-nat.c: Ditto.
  9863. * mips-linux-tdep.c: Ditto.
  9864. * mips-linux-tdep.h: Ditto.
  9865. * mipsnbsd-nat.c: Ditto.
  9866. * mipsnbsd-tdep.c: Ditto.
  9867. * mipsread.c: Ditto.
  9868. * mips-tdep.c: Ditto.
  9869. * mips-tdep.h: Ditto.
  9870. * mn10300-linux-tdep.c: Ditto.
  9871. * mn10300-tdep.c: Ditto.
  9872. * mn10300-tdep.h: Ditto.
  9873. * monitor.c: Ditto.
  9874. * monitor.h: Ditto.
  9875. * moxie-tdep.c: Ditto.
  9876. * moxie-tdep.h: Ditto.
  9877. * mt-tdep.c: Ditto.
  9878. 2011-01-08 Mike Frysinger <vapier@gentoo.org>
  9879. * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
  9880. 2011-01-08 Robert Millan <rmh@gnu.org>
  9881. * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
  9882. 2011-01-07 Michael Snyder <msnyder@vmware.com>
  9883. * charset.c (_initialize_charset): Fix typo in string.
  9884. 2011-01-07 Michael Snyder <msnyder@vmware.com>
  9885. * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
  9886. for i18n.
  9887. * tui/tui-layout.c (tui_set_layout_for_display_command):
  9888. Split line so that operator goes to beginning of line.
  9889. * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
  9890. assignment out of if statement.
  9891. 2011-01-07 Michael Snyder <msnyder@vmware.com>
  9892. * ada-lang.c: Comment cleanup, mostly periods and spaces.
  9893. * ada-lang.h: Ditto.
  9894. * ada-tasks.c: Ditto.
  9895. * ada-valprint.c: Ditto.
  9896. * aix-threads.c: Ditto.
  9897. * alpha-linux-nat.c: Ditto.
  9898. * alpha-linux-tdep.c: Ditto.
  9899. * alpha-mdebug-tdep.c: Ditto.
  9900. * alpha-nat.c: Ditto.
  9901. * alpha-osf1-tdep.c: Ditto.
  9902. * alpha-tdep.c: Ditto.
  9903. * alphabsd-nat.c: Ditto.
  9904. * alphabsd-tdep.c: Ditto.
  9905. * amd64-darwin-tdep.c: Ditto.
  9906. * amd64-linux-nat.c: Ditto.
  9907. * amd64-linux-tdep.c: Ditto.
  9908. * amd64-sol2-tdep.c: Ditto.
  9909. * amd64-tdep.c: Ditto.
  9910. * amd64-fbsd-tdep.c: Ditto.
  9911. * amd64-nbsd-tdep.c: Ditto.
  9912. * amd64-obsd-tdep.c: Ditto.
  9913. * amd64-linux-nat.c: Ditto.
  9914. * amd64-linux-tdep.c: Ditto.
  9915. * arm-tdep.c: Ditto.
  9916. * arm-tdep.h: Ditto.
  9917. * armnbsd-nat.c: Ditto.
  9918. * avr-tdep.c: Ditto.
  9919. * bfin-tdep.c: Ditto.
  9920. * bsd-kvm.c: Ditto.
  9921. * c-typeprintc: Ditto.
  9922. * c-valprint.c: Ditto.
  9923. * coff-pe-read.h: Ditto.
  9924. * coffreead.c: Ditto.
  9925. * cris-tdep.c: Ditto.
  9926. * d-lang.c: Ditto.
  9927. * darwin-nat-info.c: Ditto.
  9928. * darwin-nat.c: Ditto.
  9929. * dbug-rom.c: Ditto.
  9930. * dbxread.c: Ditto.
  9931. * dcache.c: Ditto.
  9932. * dcache.h: Ditto.
  9933. * dec-thread.c: Ditto.
  9934. * defs.h: Ditto.
  9935. * demangle.c: Ditto.
  9936. * dicos-tdep.c: Ditto.
  9937. * dictionary.c: Ditto.
  9938. * dictionary.h: Ditto.
  9939. * dink32-rom.c: Ditto.
  9940. * disasm.c: Ditto.
  9941. * doublest.c: Ditto.
  9942. * dsrec.c: Ditto.
  9943. * dummy-frame.c: Ditto.
  9944. * dwarf2-frame.c: Ditto.
  9945. * dwarf2expr.c: Ditto.
  9946. * dwarf2loc.c: Ditto.
  9947. * dwarf2read.c: Ditto.
  9948. * elfread.c: Ditto.
  9949. * environ.c: Ditto.
  9950. * eval.c: Ditto.
  9951. * event-top.h: Ditto.
  9952. * exceptions.c: Ditto.
  9953. * exceptions.h: Ditto.
  9954. * exec.c: Ditto.
  9955. * expprint.c: Ditto.
  9956. * expression.h: Ditto.
  9957. * f-exp.y: Ditto.
  9958. * f-lang.c: Ditto.
  9959. * f-lang.h: Ditto.
  9960. * f-typeprint.c: Ditto.
  9961. * f-valprint.c: Ditto.
  9962. * fbsd-nat.c: Ditto.
  9963. * findvar.c: Ditto.
  9964. * fork-child.c: Ditto.
  9965. * frame.c: Ditto.
  9966. * frame.h: Ditto.
  9967. * frv-linux-tdep.c: Ditto.
  9968. * frv-tdep.c: Ditto.
  9969. * gcore.c: Ditto.
  9970. * gdb-stabs.h: Ditto.
  9971. * gdb_assert.h: Ditto.
  9972. * gdb_string.h: Ditto.
  9973. * gdb_thread_db.h: Ditto.
  9974. * gdb_wait.h: Ditto.
  9975. * gdbarch.sh: Ditto.
  9976. * gdbcore.h: Ditto.
  9977. * gdbthread.h: Ditto.
  9978. * gdbtypes.c: Ditto.
  9979. * gdbtypes.h: Ditto.
  9980. * gnu-nat.c: Ditto.
  9981. * gnu-nat.h: Ditto.
  9982. * gnu-v2-abi.c: Ditto.
  9983. * gnu-v3-abi.c: Ditto.
  9984. * go32-nat.c: Ditto.
  9985. * gdbarch.c: Regenerate.
  9986. * gdbarch.h: Regenerate.
  9987. 2011-01-07 Michael Snyder <msnyder@vmware.com>
  9988. * ax-gdb.c: Adjust some long output strings.
  9989. * breakpoint.c: Ditto.
  9990. * charset.c: Ditto.
  9991. * cp-abi.c: Ditto.
  9992. * infcall.c: Ditto.
  9993. * infrun.c: Ditto.
  9994. * linux-nat.c: Ditto.
  9995. * solib-pa64.c: Ditto.
  9996. * solib-som.c: Ditto.
  9997. 2011-01-06 Tom Tromey <tromey@redhat.com>
  9998. PR python/12367:
  9999. * NEWS: Add item.
  10000. * python/python.c (GdbMethods): Add "newest_frame" method.
  10001. * python/python-internal.h (gdbpy_newest_frame): Declare.
  10002. * python/py-frame.c (gdbpy_newest_frame): New function.
  10003. 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
  10004. * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
  10005. * jit.c (jit_debug): New variable.
  10006. (show_jit_debug): New function.
  10007. (struct target_buffer): Use ULONGEST.
  10008. (bfd_open_from_target_memory): Likewise.
  10009. (jit_register_code, jit_inferior_init): Add debug output.
  10010. (_initialize_jit): Register "debug jit" command.
  10011. 2011-01-06 Tom Tromey <tromey@redhat.com>
  10012. * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
  10013. * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
  10014. and ARCH_FRAME.
  10015. 2011-01-06 Tom Tromey <tromey@redhat.com>
  10016. * python/py-frame.c (frapy_block): Use get_frame_block.
  10017. 2011-01-06 Joel Brobecker <brobecker@adacore.com>
  10018. Do not stop on SIGPRIO signals by default
  10019. * infrun.c (_initialize_infrun): Unset signal_stop and
  10020. signal_print for TARGET_SIGNAL_PRIO.
  10021. 2011-01-06 Joel Brobecker <brobecker@adacore.com>
  10022. * ada-tasks.c: Fix style violation in comment.
  10023. 2011-01-06 Joel Brobecker <brobecker@adacore.com>
  10024. * linespec.c (decode_compound, find_method): Remove trailing \n
  10025. at end of error string.
  10026. * solib-irix.c (irix_current_sos): Likewise.
  10027. * varobj.c (uninstall_variable): Likewise.
  10028. 2011-01-06 Joel Brobecker <brobecker@adacore.com>
  10029. * copyright.py: New script.
  10030. * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
  10031. Launch emacs without exec'ing. Call copyright.py afterwards.
  10032. 2011-01-05 Michael Snyder <msnyder@vmware.com>
  10033. * addrmap.c: Shorten lines of >= 80 columns.
  10034. * arch-utils.c: Ditto.
  10035. * arch-utils.h: Ditto.
  10036. * ax-gdb.c: Ditto.
  10037. * ax-general.c: Ditto.
  10038. * bcache.c: Ditto.
  10039. * blockframe.c: Ditto.
  10040. * breakpoint.c: Ditto.
  10041. * buildsym.c: Ditto.
  10042. * c-lang.c: Ditto.
  10043. * c-typeprint.c: Ditto.
  10044. * charset.c: Ditto.
  10045. * coffread.c: Ditto.
  10046. * command.h: Ditto.
  10047. * corelow.c: Ditto.
  10048. * cp-abi.c: Ditto.
  10049. * cp-namespace.c: Ditto.
  10050. * cp-support.c: Ditto.
  10051. * dbug-rom.c: Ditto.
  10052. * dbxread.c: Ditto.
  10053. * defs.h: Ditto.
  10054. * dfp.c: Ditto.
  10055. * dfp.h: Ditto.
  10056. * dictionary.c: Ditto.
  10057. * disasm.c: Ditto.
  10058. * doublest.c: Ditto.
  10059. * dwarf2-frame.c: Ditto.
  10060. * dwarf2expr.c: Ditto.
  10061. * dwarf2loc.c: Ditto.
  10062. * dwarf2read.c: Ditto.
  10063. * elfread.c: Ditto.
  10064. * eval.c: Ditto.
  10065. * event-loop.c: Ditto.
  10066. * event-loop.h: Ditto.
  10067. * exceptions.h: Ditto.
  10068. * exec.c: Ditto.
  10069. * expprint.c: Ditto.
  10070. * expression.h: Ditto.
  10071. * f-lang.c: Ditto.
  10072. * f-valprint.c: Ditto.
  10073. * findcmd.c: Ditto.
  10074. * frame-base.c: Ditto.
  10075. * frame-unwind.c: Ditto.
  10076. * frame-unwind.h: Ditto.
  10077. * frame.c: Ditto.
  10078. * frame.h: Ditto.
  10079. * gcore.c: Ditto.
  10080. * gdb-stabs.h: Ditto.
  10081. * gdb_assert.h: Ditto.
  10082. * gdb_dirent.h: Ditto.
  10083. * gdb_obstack.h: Ditto.
  10084. * gdbcore.h: Ditto.
  10085. * gdbtypes.c: Ditto.
  10086. * gdbtypes.h: Ditto.
  10087. * inf-ttrace.c: Ditto.
  10088. * infcall.c: Ditto.
  10089. * infcmd.c: Ditto.
  10090. * inflow.c: Ditto.
  10091. * infrun.c: Ditto.
  10092. * inline-frame.h: Ditto.
  10093. * language.c: Ditto.
  10094. * language.h: Ditto.
  10095. * libunwind-frame.c: Ditto.
  10096. * libunwind-frame.h: Ditto.
  10097. * linespec.c: Ditto.
  10098. * linux-nat.c: Ditto.
  10099. * linux-nat.h: Ditto.
  10100. * linux-thread-db.c: Ditto.
  10101. * machoread.c: Ditto.
  10102. * macroexp.c: Ditto.
  10103. * macrotab.c: Ditto.
  10104. * main.c: Ditto.
  10105. * maint.c: Ditto.
  10106. * mdebugread.c: Ditto.
  10107. * memattr.c: Ditto.
  10108. * minsyms.c: Ditto.
  10109. * monitor.c: Ditto.
  10110. * monitor.h: Ditto.
  10111. * objfiles.c: Ditto.
  10112. * objfiles.h: Ditto.
  10113. * osabi.c: Ditto.
  10114. * p-typeprint.c: Ditto.
  10115. * p-valprint.c: Ditto.
  10116. * parse.c: Ditto.
  10117. * printcmd.c: Ditto.
  10118. * proc-events.c: Ditto.
  10119. * procfs.c: Ditto.
  10120. * progspace.c: Ditto.
  10121. * progspace.h: Ditto.
  10122. * psympriv.h: Ditto.
  10123. * psymtab.c: Ditto.
  10124. * record.c: Ditto.
  10125. * regcache.c: Ditto.
  10126. * regcache.h: Ditto.
  10127. * remote-fileio.c: Ditto.
  10128. * remote.c: Ditto.
  10129. * ser-mingw.c: Ditto.
  10130. * ser-tcp.c: Ditto.
  10131. * ser-unix.c: Ditto.
  10132. * serial.c: Ditto.
  10133. * serial.h: Ditto.
  10134. * solib-frv.c: Ditto.
  10135. * solib-irix.c: Ditto.
  10136. * solib-osf.c: Ditto.
  10137. * solib-pa64.c: Ditto.
  10138. * solib-som.c: Ditto.
  10139. * solib-sunos.c: Ditto.
  10140. * solib-svr4.c: Ditto.
  10141. * solib-target.c: Ditto.
  10142. * solib.c: Ditto.
  10143. * somread.c: Ditto.
  10144. * source.c: Ditto.
  10145. * stabsread.c: Ditto.
  10146. * stabsread.c: Ditto.
  10147. * stack.c: Ditto.
  10148. * stack.h: Ditto.
  10149. * symfile-mem.c: Ditto.
  10150. * symfile.c: Ditto.
  10151. * symfile.h: Ditto.
  10152. * symmisc.c: Ditto.
  10153. * symtab.c: Ditto.
  10154. * symtab.h: Ditto.
  10155. * target-descriptions.c: Ditto.
  10156. * target-memory.c: Ditto.
  10157. * target.c: Ditto.
  10158. * target.h: Ditto.
  10159. * terminal.h: Ditto.
  10160. * thread.c: Ditto.
  10161. * top.c: Ditto.
  10162. * tracepoint.c: Ditto.
  10163. * tracepoint.h: Ditto.
  10164. * ui-file.c: Ditto.
  10165. * ui-file.h: Ditto.
  10166. * ui-out.h: Ditto.
  10167. * user-regs.c: Ditto.
  10168. * user-regs.h: Ditto.
  10169. * utils.c: Ditto.
  10170. * valarith.c: Ditto.
  10171. * valops.c: Ditto.
  10172. * valprint.c: Ditto.
  10173. * valprint.h: Ditto.
  10174. * value.c: Ditto.
  10175. * varobj.c: Ditto.
  10176. * varobj.h: Ditto.
  10177. * vec.h: Ditto.
  10178. * xcoffread.c: Ditto.
  10179. * xcoffsolib.c: Ditto.
  10180. * xcoffsolib.h: Ditto.
  10181. * xml-syscall.c: Ditto.
  10182. * xml-tdesc.c: Ditto.
  10183. 2011-01-05 Michael Snyder <msnyder@vmware.com>
  10184. * cli/cli-cmds.c: Shorten lines of >= 80 columns.
  10185. * cli/cli-decode.c: Ditto.
  10186. * cli/cli-dump.c: Ditto.
  10187. * cli/cli-logging.c: Ditto.
  10188. * cli/cli-script.c: Ditto.
  10189. * cli/cli-setshow.c: Ditto.
  10190. * common/signals.c: Ditto.
  10191. * mi/mi-cmd-break.c: Ditto.
  10192. * mi/mi-cmd-disas.c: Ditto.
  10193. * mi/mi-cmd-stack.c: Ditto.
  10194. * mi/mi-cmd-var.c: Ditto.
  10195. * mi/mi-cmds.c: Ditto.
  10196. * mi/mi-common.h: Ditto.
  10197. * mi/mi-console.c: Ditto.
  10198. * mi/mi-interp.c: Ditto.
  10199. * mi/mi-main.c: Ditto.
  10200. * osf-share/cma_attr.c: Ditto.
  10201. * osf-share/cma_deb_core.h: Ditto.
  10202. * osf-share/cma_debug_client.h: Ditto.
  10203. * osf-share/cma_handle.h: Ditto.
  10204. * osf-share/cma_mutex.h: Ditto.
  10205. * osf-share/cma_stack_int.h: Ditto.
  10206. * osf-share/cma_tcb_defs.h: Ditto.
  10207. * python/py-auto-load.c: Ditto.
  10208. * python/py-breakpoint.c: Ditto.
  10209. * python/py-cmd.c: Ditto.
  10210. * python/py-frame.c: Ditto.
  10211. * python/py-objfile.c: Ditto.
  10212. * python/py-param.c: Ditto.
  10213. * python/py-progspace.c: Ditto.
  10214. * python/py-symbol.c: Ditto.
  10215. * python/py-value.c: Ditto.
  10216. * python/python-internal.h: Ditto.
  10217. * python/python.c: Ditto.
  10218. * tui/tui-data.c: Ditto.
  10219. * tui/tui-disasm.c: Ditto.
  10220. * tui/tui-hooks.c: Ditto.
  10221. * tui/tui-io.c: Ditto.
  10222. * tui/tui-layout.c: Ditto.
  10223. * tui/tui-regs.c: Ditto.
  10224. * tui/tui-source.c: Ditto.
  10225. * tui/tui-stack.c: Ditto.
  10226. * tui/tui-win.c: Ditto.
  10227. * tui/tui-windata.c: Ditto.
  10228. * tui/tui-winsource.c: Ditto.
  10229. 2011-01-05 Joel Brobecker <brobecker@adacore.com>
  10230. * configure.ac, gdb.1: Copyright year update.
  10231. 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
  10232. * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
  10233. this_pc_in_block, morestack_msym and morestack_name. Check for
  10234. "__morestack" minimal symbol there.
  10235. 2011-01-03 Joel Brobecker <brobecker@adacore.com>
  10236. * symfile.c (find_sym_fns): Add call to dont_repeat.
  10237. 2011-01-01 Joel Brobecker <brobecker@adacore.com>
  10238. Copyright year update in most files (performed by copyright.sh).
  10239. 2011-01-01 Joel Brobecker <brobecker@adacore.com>
  10240. * top.c (print_gdb_version): Update copyright year in version output.
  10241. For older changes see ChangeLog-2010.
  10242. Local Variables:
  10243. mode: change-log
  10244. left-margin: 8
  10245. fill-column: 74
  10246. version-control: never
  10247. coding: utf-8
  10248. End: