ChangeLog-2010 437 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959
  1. 2010-12-31 Michael Snyder <msnyder@vmware.com>
  2. * annotate.c: Comment cleanup, shorten long lines.
  3. * arch-utils.c: Ditto.
  4. * arch-utils.h: Ditto.
  5. * auxv.c: Ditto.
  6. * auxv.h: Ditto.
  7. * ax-gdb.c: Ditto.
  8. * ax-gdb.h: Ditto.
  9. * ax-general.c: Ditto.
  10. * breakpoint.h: Ditto.
  11. * buildsym.h: Ditto.
  12. * charset.c: Ditto.
  13. * charset.h: Ditto.
  14. * c-lang.c: Ditto.
  15. * c-lang.h: Ditto.
  16. * coff-pe-read.c: Ditto.
  17. * coff-pe-read.h: Ditto.
  18. * coffread.c: Ditto.
  19. * command.h: Ditto.
  20. * complaints.c: Ditto.
  21. * complaints.h: Ditto.
  22. * completer.c: Ditto.
  23. * completer.h: Ditto.
  24. * corefile.c: Ditto.
  25. * corelow.c: Ditto.
  26. * core-regset.c: Ditto.
  27. * cp-abi.c: Ditto.
  28. * cp-abi.h: Ditto.
  29. * cp-namespace.c: Ditto.
  30. * cp-support.c: Ditto.
  31. * cp-support.h: Ditto.
  32. * cp-valprint.c: Ditto.
  33. * cp-typeprint.c: Ditto.
  34. * c-valprint.c: Ditto.
  35. 2010-12-30 Mike Frysinger <vapier@gentoo.org>
  36. * bfin-tdep.c (bfin_register_type): Move || to start of line.
  37. 2010-12-29 Michael Snyder <msnyder@vmware.com>
  38. * bcache.c: Comment clean-up, shorten long lines..
  39. * block.c: Ditto.
  40. * blockframe.c: Ditto.
  41. * breakpoint.c: Ditto.
  42. * bsd-kvm.c: Ditto.
  43. * buildsym.c: Ditto.
  44. 2010-12-29 Jie Zhang <jie.zhang@analog.com>
  45. * configure.tgt (bfin-*-*): Set build_gdbserver to yes.
  46. * NEWS: Mention new Blackfin support.
  47. * regformats/reg-bfin.dat: New file.
  48. 2010-12-29 Jie Zhang <jie.zhang@analog.com>
  49. Mike Frysinger <vapier@gentoo.org>
  50. * Makefile.in (ALLDEPFILES): Add bfin-linux-tdep.c and bfin-tdep.c.
  51. (HFILES_NO_SRCDIR): Add bfin-tdep.h.
  52. (ALL_TARGET_OBS): Add bfin-linux-tdep.o and bfin-tdep.o.
  53. * NEWS: Mention new Blackfin port.
  54. * bfin-tdep.c, bfin-tdep.h, bfin-linux-tdep.c,
  55. syscalls/bfin-linux.xml: New files.
  56. * configure.tgt (bfin-*-*): Handle bfin targets.
  57. 2010-12-29 Hui Zhu <teawater@gmail.com>
  58. * ax-gdb.c (gen_expr): Change error message.
  59. 2010-12-29 Joel Brobecker <brobecker@adacore.com>
  60. * gdb.c: Revert the previous change, which was probably committed
  61. by accident.
  62. 2010-12-29 Joel Brobecker <brobecker@adacore.com>
  63. * ada-lang.c: Fix typo in comment.
  64. 2010-12-29 Joel Brobecker <brobecker@adacore.com>
  65. * ada-valprint.c (ada_val_print_1): Print null array pointers as
  66. `0x0' rather than `(null)'. Add assertion.
  67. 2010-12-29 Joel Brobecker <brobecker@adacore.com>
  68. * ada-lang.h (ada_coerce_to_simple_array): Add declaration.
  69. * ada-lang.c (ada_typedef_target_type): New function.
  70. (desc_base_type): Add handling of fat pointer typedefs.
  71. (ada_coerce_to_simple_array): Make non-static.
  72. (decode_packed_array_bitsize): Add handling of fat pointer typedefs.
  73. Add assertion.
  74. (ada_template_to_fixed_record_type_1, ada_to_fixed_type)
  75. (ada_check_typedef): Add handling of fat pointer typedefs.
  76. (ada_evaluate_subexp) [OP_FUNCALL]: Likewise.
  77. * ada-typeprint.c (ada_print_type): Add handling of fat pointer
  78. typedefs.
  79. * ada-valprint.c (ada_val_print_1): Convert fat pointers that are not
  80. array accesses to simple arrays rather than simple array pointers.
  81. (ada_value_print): In the case of array descriptors, do not print
  82. the value type description unless it is an array access.
  83. 2010-12-29 Joel Brobecker <brobecker@adacore.com>
  84. * target.h (enum target_object): Expand the documentation of
  85. TARGET_OBJECT_OSDATA a bit.
  86. 2010-12-28 Michael Snyder <msnyder@vmware.com>
  87. * command.h: Comment clean-up, shorten long lines.
  88. * cli/cli-cmds.c: Ditto.
  89. * cli/cli-cmds.h: Ditto.
  90. * cli/cli-decode.c: Ditto.
  91. * cli/cli-decode.h: Ditto.
  92. * cli/cli-dump.c: Ditto.
  93. * cli/cli-interp.c: Ditto.
  94. * cli/cli-logging.c: Ditto.
  95. * cli/cli-script.c: Ditto.
  96. * cli/cli-setshow.c: Ditto.
  97. * cli/cli-setshow.h: Ditto.
  98. 2010-12-28 Michael Snyder <msnyder@vmware.com>
  99. * event-loop.c: Comment clean-up, shorten long lines.
  100. * event-loop.h: Ditto.
  101. * event-top.c: Ditto.
  102. * gdb.c: Ditto.
  103. * gdb.h: Ditto.
  104. * main.c: Ditto.
  105. * top.c: Ditto.
  106. * top.h: Ditto.
  107. 2010-12-28 Pedro Alves <pedro@codesourcery.com>
  108. * ax-gdb.c (gen_expr) <OP_REGISTER>: Error out if trying to
  109. collect a user register.
  110. 2010-12-28 Hui Zhu <teawater@gmail.com>
  111. * gdbarch.sh (ax_pseudo_register_collect,
  112. ax_pseudo_register_push_stack): new callbacks.
  113. (agent_expr): Forward declare.
  114. * gdbarch.h, gdbarch.c: Regenerate.
  115. * ax-gdb.c (gen_expr): Remove pseudo-register check code.
  116. * ax-general.c (user-regs.h): New include.
  117. (ax_reg): Call gdbarch_ax_pseudo_register_push_stack.
  118. (ax_reg_mask): Call gdbarch_ax_pseudo_register_collect.
  119. * mips-tdep.c (ax.h): New include.
  120. (mips_ax_pseudo_register_collect,
  121. mips_ax_pseudo_register_push_stack): New functions.
  122. (mips_gdbarch_init): Set mips_ax_pseudo_register_collect and
  123. mips_ax_pseudo_register_push_stack.
  124. 2010-12-28 Yao Qi <yao@codesourcery.com>
  125. * arm-tdep.c (arm_register_aliases): Remove sp, pc, and fp.
  126. 2010-12-28 Joel Brobecker <brobecker@adacore.com>
  127. * inf-child.c (inf_child_acknowledge_created_inferior): Delete.
  128. (inf_child_target): Do not set t->to_acknowledge_created_inferior.
  129. * inf-ptrace.c (inf_ptrace_create_inferior): Remove call to
  130. target_acknowledge_created_inferior.
  131. * inf-ttrace.c (inf_ttrace_him): Likewise.
  132. * target.h (struct target_ops): Delete to_acknowledge_created_inferior
  133. field.
  134. (target_acknowledge_created_inferior): Delete.
  135. * target.c (update_current_target): Remove setting of
  136. to_acknowledge_created_inferior field. Do default value for that
  137. field either.
  138. (debug_to_acknowledge_created_inferior): Delete.
  139. (setup_target_debug): Remove setting of
  140. current_target.to_acknowledge_created_inferior.
  141. 2010-12-27 Pedro Alves <pedro@codesourcery.com>
  142. gdb/
  143. * breakpoint.c (breakpoint_restore_shadows): When looking for the
  144. location with the lowest address that overlaps the memory range we
  145. want to restore shadows for, account for multiple locations at the
  146. same address.
  147. 2010-12-27 Jan Kratochvil <jan.kratochvil@redhat.com>
  148. Code cleanup - renaming.
  149. * breakpoint.c: Use bl for `*bp_location' variables, blp_tmp for
  150. `**bp_location' helper variables, b_tmp for `*breakpoint' helper
  151. variables.
  152. 2010-12-27 Kevin Buettner <kevinb@redhat.com>
  153. Hui Zhu <teawater@gmail.com>
  154. * mips-tedp.c (mips_register_name): Add comments.
  155. 2010-12-23 Yao Qi <yao@codesourcery.com>
  156. * arm-tdep.c (thumb_analyze_prologue): Move some code ...
  157. (EXTRACT_MOVW_MOVT_IMM_T): ... here. New macro.
  158. (EXTRACT_MOVW_MOVT_IMM_A): New macro.
  159. (arm_analyze_load_stack_chk_guard): New.
  160. (arm_skip_stack_protector): New.
  161. (arm_skip_prologue): Adjust post_prologue_pc by
  162. arm_skip_stack_protector.
  163. 2010-12-23 Yao Qi <yao@codesourcery.com>
  164. * arm-tdep.c (arm_gdbarch_init): Remove invoke to
  165. set_gdbarch_deprecated_fp_regnum.
  166. 2010-12-22 Marc Khouzam <marc.khouzam@ericsson.com>
  167. * inferior.c (remove_inferior_command): Don't remove an active inferior.
  168. * mi/mi-main.c (mi_cmd_remove_inferior): Ditto.
  169. 2010-12-21 Tom Tromey <tromey@redhat.com>
  170. * thread.c (print_thread_info): Make a ui-out table in CLI mode.
  171. 2010-12-20 Yao Qi <yao@codesourcery.com>
  172. * arm-tdep.c (arm_register_reggroup_p): New.
  173. (arm_gdbarch_init): Set arm_register_reggroup_p for hook
  174. register_reggroup_p.
  175. 2010-12-20 Yao Qi <yao@codesourcery.com>
  176. * features/arm-core.xml: Add attribute type to reg from r0 to r12.
  177. * features/arm-with-iwmmxt.c: Regenerate.
  178. * features/arm-with-neon.c: Regenerate.
  179. * features/arm-with-vfpv2.c: Regenerate.
  180. * features/arm-with-vfpv3.c: Regenerate.
  181. 2010-12-17 Marc Khouzam <marc.khouzam@ericsson.com>
  182. * mi/mi-main.c (mi_cmd_remove_inferior): Don't delete current inferior.
  183. (get_other_inferior): New.
  184. 2010-12-17 Marc Khouzam <marc.khouzam@ericsson.com>
  185. * python/py-progspace.c (py_free_pspace): Obtain arch another
  186. way to avoid dereferencing a null pointer.
  187. 2010-12-17 Michael Snyder <msnyder@vmware.com>
  188. * utils.c (do_my_cleanups): Comment fix-up.
  189. 2010-12-17 Kevin Buettner <kevinb@redhat.com>
  190. * mips-tdep.c (make_mips16_addr): New function.
  191. (mips_elf_make_msymbol_special): Don't set the low bit in the
  192. symbol's address.
  193. (mips_read_pc, mips_unwind_pc, mips_addr_bits_remove): Strip bit
  194. indicating mips16 address, if present.
  195. (mips_write_pc): Set bit indicating mips16 address when in a mips16
  196. function.
  197. (mips_eabi_push_dummy_call, mips_o64_push_dummy_call): Likewise,
  198. but for each function pointer argument to inferior function call.
  199. 2010-12-17 Tom Tromey <tromey@redhat.com>
  200. * psympriv.h (struct partial_symtab) <readin>: Move field
  201. earlier.
  202. 2010-12-16 Kevin Buettner <kevinb@redhat.com>
  203. * mips-tdep.c (mips_convert_register_float_case_p)
  204. (mips_convert_register_gpreg_case_p): New functions.
  205. (mips_convert_register_p): Invoke new functions above.
  206. (mips_register_to_value): Add case for fetching value shorter
  207. than 64 bits from a 64-bit register.
  208. (mips_value_to_register): Add case for storing value shorter
  209. than 64 bits into a 64-bit register.
  210. 2010-12-16 Joel Borggrén-Franck <joel.borggren.franck@gmail.com>
  211. * python/py-value.c (value_object_type) <tp_flags>: Add
  212. Py_TPFLAGS_BASETYPE.
  213. 2010-12-16 Mike Frysinger <vapier@gentoo.org>
  214. * NEWS: Mention new sim --map-info flag.
  215. 2010-12-15 Doug Evans <dje@google.com>
  216. * dwarf2read.c (_initialize_dwarf2_read): Fix help text of
  217. "save gdb-index" command.
  218. 2010-12-15 Tom Tromey <tromey@redhat.com>
  219. * infrun.c (save_infcall_control_state): Handle the
  220. exception-resume breakpoint.
  221. (restore_infcall_control_state): Likewise.
  222. (discard_infcall_control_state): Likewise.
  223. 2010-12-15 Kevin Buettner <kevinb@redhat.com>
  224. * mips-tdep.c (mips_pseudo_register_write): Sign extend 32-bit
  225. cooked values that are being transferred to 64-bit raw registers.
  226. (mips_pseudo_register_read): Revise to preserve symmetry with
  227. mips_pseudo_register_write().
  228. 2010-12-15 Greg Watson <g.watson@computer.org>
  229. * f-exp.y (yylex): Check entire token against keywords.
  230. 2010-12-15 Doug Evans <dje@google.com>
  231. Rename "maint set python auto-load" to "set auto-load-scripts".
  232. * NEWS: Mention it.
  233. * python/py-auto-load.c (auto_load_scripts): Renamed from
  234. gdbpy_auto_load.
  235. (load_auto_scripts_for_objfile): Update.
  236. (gdbpy_initialize_auto_load): Rename "maint set python auto-load" to
  237. "set auto-load-scripts".
  238. 2010-12-14 Kevin Buettner <kevinb@redhat.com>
  239. * mips-tdep.c (mips_eabi_push_dummy_call): Place signed, rather
  240. than unsigned, values in registers.
  241. 2010-12-14 Ken Werner <ken.werner@de.ibm.com>
  242. * valops.c (value_one): Use get_array_bounds to compute the number
  243. of array elements instead of dividing the length of the array by the
  244. length of the element types.
  245. * valarith.c (value_complement, value_neg): Likewise.
  246. 2010-12-14 Joel Brobecker <brobecker@adacore.com>
  247. * irix5-nat.c: Replace fp_r, fp_regs and fp_scr by __fp_r, __fp_regs
  248. and __fp_scr respectively throughout.
  249. * configure.ac: Compile with -Dsiginfo=__siginfo if building with
  250. Python using GCC on IRIX.
  251. * configure: Regenerate.
  252. 2010-12-13 Kevin Buettner <kevinb@redhat.com>
  253. * solib-svr4.c (enable_break): Don't attempt to place breakpoints,
  254. when attaching, on the names in bkpt_names: _start, __start, and
  255. main.
  256. 2010-12-12 Stan Shebs <stan@codesourcery.com>
  257. * value.c (value_of_internalvar): Add case for trace state
  258. variables.
  259. 2010-12-12 Doug Evans <dje@google.com>
  260. * dwarf2read.c (dwarf2_per_objfile): New member quick_file_names_table.
  261. (dwarf2_per_cu_quick_data): Move definition down to "quick functions"
  262. section. Delete members lines full_names. Rename read_lines to
  263. no_file_data.
  264. (quick_file_names): New struct.
  265. (hash_file_name_entry, eq_file_name_entry): New functions.
  266. (delete_file_name_entry, create_quick_file_names_table): New functions.
  267. (dwarf2_read_index): Initialize quick_file_names_table.
  268. (dw2_get_file_names): Renamed from dw2_require_line_header.
  269. Return pointer to quick_file_names entry. All callers updated.
  270. (dw2_get_real_path): Renamed from dw2_require_full_path.
  271. Replace per_cu arg with pointer to quick_file_names entry.
  272. All callers updated.
  273. (dw2_free_cached_file_names): New function.
  274. (dw2_forget_cached_source_info): Call it (via htab_traverse_noresize).
  275. (dwarf2_initialize_objfile): Initialize quick_file_names_table in
  276. the OBJF_READNOW case.
  277. (dwarf2_free_objfile): Rewrite freeing of quick file names tables.
  278. 2010-12-12 Mark Kettenis <kettenis@gnu.org>
  279. * mips64obsd-tdep.c (floatformats_mips64_quad): New define.
  280. (mips64obsd_init_abi): Set long_double_bit and long_double_format.
  281. 2010-12-12 Mark Kettenis <kettenis@gnu.org>
  282. * sparc-tdep.c: Fix typo in comment.
  283. 2010-12-10 Doug Evans <dje@google.com>
  284. * dwarf2read.c: Whitespace cleanup, plus comment additions.
  285. No code changes.
  286. 2010-12-10 Tom Tromey <tromey@redhat.com>
  287. * NEWS: Document exception-handling change.
  288. 2010-12-09 Marc Khouzam <marc.khouzam@ericsson.com>
  289. * mi/mi-parse.c (mi_parse): Wrong error message.
  290. 2010-12-09 Doug Evans <dje@google.com>
  291. * symfile.h (quick_symbol_functions): Clarify usage of
  292. map_symbol_filenames.
  293. 2010-12-09 Tom Tromey <tromey@redhat.com>
  294. * mi/mi-parse.h (mi_parse): Update.
  295. * mi/mi-parse.c (mi_parse_cleanup): New function.
  296. (mi_parse): Add 'token' argument. Throw exception on error.
  297. * mi/mi-main.c (mi_print_exception): New function.
  298. (mi_execute_command): Use mi_print_exception. Catch exceptions
  299. from mi_parse.
  300. 2010-12-09 Tom Tromey <tromey@redhat.com>
  301. PR c++/9593:
  302. * thread.c (clear_thread_inferior_resources): Call
  303. delete_longjmp_breakpoint.
  304. * infrun.c (handle_inferior_event): Handle exception breakpoints.
  305. (handle_inferior_event): Likewise.
  306. (insert_exception_resume_breakpoint): New function.
  307. (check_exception_resume): Likewise.
  308. * inferior.h (delete_longjmp_breakpoint_cleanup): Declare.
  309. * infcmd.c (delete_longjmp_breakpoint_cleanup): No longer static.
  310. (step_1): Set thread's initiating frame.
  311. (until_next_continuation): New function.
  312. (until_next_command): Support exception breakpoints.
  313. (finish_command_continuation): Delete longjmp breakpoint.
  314. (finish_forward): Support exception breakpoints.
  315. * gdbthread.h (struct thread_info) <initiating_frame>: New field.
  316. * breakpoint.h (enum bptype) <bp_exception, bp_exception_resume,
  317. bp_exception_master>: New constants.
  318. (struct bpstat_what) <is_longjmp>: New field.
  319. (set_longjmp_breakpoint): Update.
  320. * breakpoint.c (create_exception_master_breakpoint): New function.
  321. (update_breakpoints_after_exec): Handle bp_exception_master. Call
  322. create_exception_master_breakpoint.
  323. (print_it_typical): Handle bp_exception_master, bp_exception.
  324. (bpstat_stop_status): Handle bp_exception_master.
  325. (bpstat_what): Handle bp_exception_master, bp_exception,
  326. bp_exception_resume.
  327. (bptype_string): Likewise.
  328. (print_one_breakpoint_location): Likewise.
  329. (allocate_bp_location): Likewise.
  330. (set_longjmp_breakpoint): Handle exception breakpoints. Change
  331. interface.
  332. (delete_longjmp_breakpoint): Handle exception breakpoints.
  333. (mention): Likewise.
  334. (struct until_break_command_continuation_args) <thread_num>: New
  335. field.
  336. (until_break_command_continuation): Call
  337. delete_longjmp_breakpoint.
  338. (until_break_command): Support exception breakpoints.
  339. (delete_command): Likewise.
  340. (breakpoint_re_set_one): Likewise.
  341. (breakpoint_re_set): Likewise.
  342. 2010-12-08 Doug Evans <dje@google.com>
  343. * gdbtypes.h (TYPE_IS_OPAQUE): Reformat.
  344. * gdbtypes.c (check_typedef): Tweak comment.
  345. PR symtab/12302
  346. * dwarf2read.c (struct psymtab_cu_index_map): New struct.
  347. (hash_psymtab_cu_index, eq_psymtab_cu_index): New functions.
  348. (struct addrmap_index_data): New struct.
  349. (add_address_entry): Remove arg `pst', new args `start', `end'.
  350. (add_address_entry_worker, write_address_map): New functions.
  351. (write_psymtabs_to_index): Address table generation moved to
  352. write_address_map. Build a table mapping psymtab to CU index
  353. to pass to it.
  354. * dwarf2read.c (write_psymtabs_to_index): When stat fails, pass file
  355. name to perror.
  356. * symfile.h (quick_symbol_functions): Clarify usage of
  357. expand_symtabs_with_filename.
  358. * dwarf2read.c (dw2_expand_symtabs_with_filename): Only iterate over
  359. comp units, ignore type units.
  360. * dwarf2read.c (dw2_expand_symtabs_with_filename): Use FILENAME_CMP.
  361. 2010-12-07 Doug Evans <dje@google.com>
  362. * dwarf2read.c (dw2_lookup_symtab): Remove duplicate call to
  363. gdb_realpath.
  364. PR python/12227
  365. * NEWS: Mention -data-directory.
  366. * main.c (captured_main): Recognize -data-directory.
  367. 2010-12-06 Marc Khouzam <marc.khouzam@ericsson.com>
  368. * mi/mi-parse.c (mi_parse): Missing else.
  369. 2010-12-04 Masaki Muranaka <monaka@monami-software.com>
  370. * configure.tgt: Accept microblaze*-*-linux* for linux target
  371. and microblaze*-*-* for as target.
  372. 2010-12-02 Keith Seitz <keiths@redhat.com>
  373. * linespec.c (find_method): Move name canonicalization outside
  374. the loop.
  375. Be paranoid and use a cleanup.
  376. 2010-12-01 Doug Evans <dje@google.com>
  377. * dwarf2read.c (save_gdb_index_command): Add comment.
  378. 2010-12-01 Ulrich Weigand <uweigand@de.ibm.com>
  379. * valops.c (value_assign): Returned value is never lazy. If a
  380. C++ class type is returned, fix incorrect enclosing type / embedded
  381. offset. If internal variable is returned, allocate new internalvar
  382. value using value_of_internalvar.
  383. * NEWS: Document changes in behavior of "print x = 0" and similar
  384. expressions.
  385. 2010-11-29 Doug Evans <dje@google.com>
  386. * python/lib/gdb/printing.py (register_pretty_printer): Change
  387. printer-name:subprinter-name to printer-name;subprinter-name.
  388. * python/lib/gdb/command/pretty_printers.py (parse_printer_regexps):
  389. Ditto.
  390. (InfoPrettyPrinter, EnablePrettyPrinter, DisablePrettyPrinter): Ditto.
  391. 2010-11-29 Tom Tromey <tromey@redhat.com>
  392. * opencl-lang.c (lval_func_check_synthetic_pointer): New
  393. function.
  394. * value.h (struct lval_funcs) <indirect, check_synthetic_pointer>:
  395. New fields.
  396. (value_bits_synthetic_pointer): Declare.
  397. * value.c (value_bits_synthetic_pointer): New function.
  398. * valprint.c (valprint_check_validity): Handle synthetic
  399. pointers.
  400. * valops.c (value_ind): Use new 'indirect' lval_funcs method.
  401. * valarith.c (value_ptradd): Use set_value_component_location.
  402. * p-valprint.c (pascal_object_print_value_fields): Handle
  403. synthetic pointers.
  404. * jv-valprint.c (java_print_value_fields): Handle synthetic
  405. pointers.
  406. * dwarf2read.c (dwarf_stack_op_name): Add
  407. DW_OP_GNU_implicit_pointer.
  408. (dwarf2_fetch_die_location_block): Add get_frame_pc, baton
  409. arguments. Handle location lists.
  410. (fill_in_loclist_baton): New function.
  411. (dwarf2_symbol_mark_computed): Use it.
  412. * dwarf2loc.h (dwarf2_find_location_expression): Declare.
  413. (dwarf2_fetch_die_location_block): Add get_frame_pc, baton
  414. arguments.
  415. * dwarf2loc.c (dwarf2_find_location_expression): Rename from
  416. find_location_expression. No longer static. Update all callers.
  417. (dwarf_expr_frame_pc): New function.
  418. (per_cu_dwarf_call): Add get_frame_pc, baton arguments. Update
  419. all callers.
  420. (struct piece_closure) <per_cu>: New field.
  421. (allocate_piece_closure): Add per_cu argument.
  422. (read_pieced_value): Handle DWARF_VALUE_IMPLICIT_POINTER.
  423. (check_pieced_value_bits): Remove validity argument, add check_for
  424. argument. Handle DWARF_VALUE_IMPLICIT_POINTER.
  425. (check_pieced_value_validity, check_pieced_value_invalid):
  426. Update.
  427. (check_pieced_synthetic_pointer): New function.
  428. (get_frame_address_in_block_wrapper): New function.
  429. (indirect_pieced_value): New function.
  430. (pieced_value_funcs): Update.
  431. (invalid_synthetic_pointer): New function.
  432. (dwarf2_evaluate_loc_desc_full): Rename from
  433. dwarf2_evaluate_loc_desc. Add byte_offset argument.
  434. (dwarf2_evaluate_loc_desc): Rewrite.
  435. (dwarf2_loc_desc_needs_frame): Set new field on context.
  436. (get_ax_pc): New function.
  437. (disassemble_dwarf_expression): Handle
  438. DW_OP_GNU_implicit_pointer.
  439. * dwarf2expr.h (enum dwarf_value_location)
  440. <DWARF_VALUE_IMPLICIT_POINTER>: New constant.
  441. (struct dwarf_expr_context) <get_frame_pc>: New field.
  442. (struct dwarf_expr_piece) <v.ptr>: New field.
  443. * dwarf2expr.c (add_piece): Handle DWARF_VALUE_IMPLICIT_POINTER.
  444. (execute_stack_op): Handle DW_OP_GNU_implicit_pointer.
  445. * dwarf2-frame.c (no_get_frame_pc): New function.
  446. (execute_stack_op): Set new field on context.
  447. * cp-valprint.c (cp_print_value_fields): Handle synthetic
  448. pointers.
  449. 2010-11-29 Phil Muldoon <pmuldoon@redhat.com>
  450. PR python/12199
  451. * python/py-breakpoint.c (bppy_delete_breakpoint): New function.
  452. 2010-11-28 Jan Kratochvil <jan.kratochvil@redhat.com>
  453. Fix step_resume_breakpoint unsaved during an infcall.
  454. * gdbthread.h (struct thread_control_state): Move here field
  455. step_resume_breakpoint ...
  456. (struct thread_info): ... from here.
  457. * infrun.c (save_infcall_control_state): Reset
  458. control.step_resume_breakpoint to NULL.
  459. (restore_infcall_control_state, discard_infcall_control_state): Delete
  460. control.step_resume_breakpoint.
  461. * arm-linux-tdep.c, infrun.c, thread.c: Update all the references to
  462. the moved field.
  463. 2010-11-28 Jan Kratochvil <jan.kratochvil@redhat.com>
  464. Rename and move inferior_thread_state and inferior_status.
  465. * gdbthread.h (struct thread_control_state): New struct, move fields
  466. step_range_start, step_range_end, step_frame_id, step_stack_frame_id,
  467. trap_expected, proceed_to_finish, in_infcall, step_over_calls,
  468. stop_step and stop_bpstat here from struct thread_info.
  469. (struct thread_suspend_state): New struct, move field stop_signal here
  470. from struct thread_info.
  471. (struct thread_info): Move the fields above from this struct.
  472. * inferior.h: Move the inferior_thread_state and inferior_status
  473. declarations comment to their definitions at infrun.c.
  474. (struct inferior_control_state): New struct, move field stop_soon from
  475. struct inferior here.
  476. (struct inferior_suspend_state): New empty struct.
  477. (struct inferior): New fields control and suspend. Move out field
  478. stop_soon.
  479. * infrun.c (struct inferior_thread_state): Rename to ...
  480. (infcall_suspend_state): ... here. Replace field stop_signal by
  481. fields thread_suspend and inferior_suspend.
  482. (save_inferior_thread_state): Rename to ...
  483. (save_infcall_suspend_state): ... here. New variable inf. Update the
  484. code for new fields.
  485. (restore_inferior_thread_state): Rename to ...
  486. (restore_infcall_suspend_state): ... here. New variable inf. Update
  487. the code for new fields.
  488. (do_restore_inferior_thread_state_cleanup): Rename to ...
  489. (do_restore_infcall_suspend_state_cleanup): ... here.
  490. (make_cleanup_restore_inferior_thread_state): Rename to ...
  491. (make_cleanup_restore_infcall_suspend_state): ... here.
  492. (discard_inferior_thread_state): Rename to ...
  493. (discard_infcall_suspend_state): ... here.
  494. (get_inferior_thread_state_regcache): Rename to ...
  495. (get_infcall_suspend_state_regcache): ... here.
  496. (struct inferior_status): Rename to ...
  497. (struct infcall_control_state): ... here. Replace fields
  498. step_range_start, step_range_end, step_frame_id, step_stack_frame_id,
  499. trap_expected, proceed_to_finish, in_infcall, step_over_calls,
  500. stop_step, stop_bpstat and stop_soon by fields thread_control and
  501. inferior_control.
  502. (save_inferior_status): Rename to ...
  503. (save_infcall_control_state): ... here. Update the code for new
  504. fields.
  505. (restore_inferior_status): Rename to ...
  506. (restore_infcall_control_state): ... here. Update the code for new
  507. fields.
  508. (do_restore_inferior_status_cleanup): Rename to ...
  509. (do_restore_infcall_control_state_cleanup): ... here.
  510. (make_cleanup_restore_inferior_status): Rename to ...
  511. (make_cleanup_restore_infcall_control_state): ... here.
  512. (discard_inferior_status): Rename to ...
  513. (discard_infcall_control_state): ... here.
  514. * alpha-tdep.c, breakpoint.c, dummy-frame.c, dummy-frame.h,
  515. exceptions.c, fbsd-nat.c, gdbthread.h, infcall.c, infcmd.c,
  516. inferior.c, inferior.h, infrun.c, linux-nat.c, mi/mi-interp.c,
  517. mips-tdep.c, procfs.c, solib-irix.c, solib-osf.c, solib-spu.c,
  518. solib-sunos.c, solib-svr4.c, thread.c, windows-nat.c: Update all the
  519. references to the moved fields and renamed functions.
  520. 2010-11-26 Jan Kratochvil <jan.kratochvil@redhat.com>
  521. * infcall.c (struct inferior_thread_state) <siginfo_gdbarch>: Fix up
  522. the comment.
  523. (save_inferior_thread_state): Reset tp->stop_signal.
  524. 2010-11-26 Jan Kratochvil <jan.kratochvil@redhat.com>
  525. * infcall.c (call_function_by_hand): Remove variable
  526. caller_state_cleanup.
  527. 2010-11-25 Marc Khouzam <marc.khouzam@ericsson.com>
  528. PR breakpoints/12217
  529. * breakpoint.c (is_marker_spec): Check for NULL.
  530. 2010-11-25 Pedro Alves <pedro@codesourcery.com>
  531. * breakpoint.h: No longer include python.h or python-internal.h.
  532. (struct breakpoint_object): Forward declare.
  533. * defs.h (PyObject) [!HAVE_PYTHON]: Don't define.
  534. * varobj.c (PyObject) [!HAVE_PYTHON]: Define.
  535. * python/py-breakpoint.c (build_bp_list): Cast py_bp_object to
  536. PyObject pointer.
  537. (gdbpy_breakpoint_created): Remove casts around py_bp_object
  538. accesses.
  539. 2010-11-24 Joel Brobecker <brobecker@adacore.com>
  540. * rs6000-tdep.c (bfd_uses_spe_extensions): Use bfd_elf_get_obj_attr_int
  541. only if HAVE_ELF is defined.
  542. 2010-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
  543. Code cleanup.
  544. * infrun.c (struct inferior_status) <stepping_over_breakpoint>
  545. (save_inferior_status) <stepping_over_breakpoint>
  546. (restore_inferior_status) <stepping_over_breakpoint>: Rename to
  547. trap_expected.
  548. (struct inferior_status) <step_resume_break_address>: Remove.
  549. 2010-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
  550. Code cleanup.
  551. * infrun.c (struct inferior_status, save_inferior_status)
  552. (restore_inferior_status): Group and reorder the fields, comment their
  553. groups.
  554. 2010-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
  555. Code cleanup.
  556. * dictionary.c
  557. (struct dict_vector) <iter_match_first, iter_match_next>
  558. (iter_match_first_hashed, iter_match_next_hashed)
  559. (iter_match_first_linear, iter_match_next_linear)
  560. (dict_iter_match_first, dict_iter_match_next, iter_match_first_hashed)
  561. (iter_match_next_hashed, iter_match_first_linear)
  562. (iter_match_next_linear): Use symbol_compare_ftype.
  563. * dictionary.h: Include symfile.h.
  564. (dict_iter_match_first, dict_iter_match_next): Use
  565. symbol_compare_ftype.
  566. * dwarf2read.c (dw2_map_matching_symbols): Likewise.
  567. * psymtab.c (match_partial_symbol, match_partial_symbol, map_block)
  568. (map_matching_symbols_psymtab): Likewise.
  569. * symfile.h (symbol_compare_ftype): New typedef.
  570. (struct quick_symbol_functions) <map_matching_symbols): Use
  571. symbol_compare_ftype.
  572. 2010-11-23 Tom Tromey <tromey@redhat.com>
  573. * configure: Rebuild.
  574. * configure.ac (READLINE_TEXI_INCFLAG): New subst.
  575. 2010-11-19 Tom Tromey <tromey@redhat.com>
  576. * Makefile.in (SUBDIRS): Add doc.
  577. * configure: Rebuild.
  578. * configure.ac: Don't configure in doc. Create doc/Makefile.
  579. 2010-11-23 Phil Muldoon <pmuldoon@redhat.com>
  580. PR python/12212
  581. * python/py-inferior.c (find_thread_object): Check if PIDGET
  582. returns 0.
  583. 010-11-22 Joel Brobecker <brobecker@adacore.com>
  584. * ada-lang.c (ada_template_to_fixed_record_type_1): Delete bit_incr.
  585. 2010-11-22 Joel Brobecker <brobecker@adacore.com>
  586. * ada-lang.c (ada_to_fixed_type): Expand function documentation.
  587. Return the original type if the main type portions match rather
  588. than when the type themselves match.
  589. 2010-11-22 Joel Brobecker <brobecker@adacore.com>
  590. * ada-lang.c (ada_template_to_fixed_record_type_1):
  591. For dynamic fields, check the field size against the maximum
  592. object size.
  593. 2010-11-22 Joel Brobecker <brobecker@adacore.com>
  594. * mips-irix-tdep.c (mips_irix_n32_stack_tramp_frame_init): New
  595. function.
  596. (mips_irix_n32_stack_tramp_frame): New static global.
  597. (mips_irix_init_abi): Add mips_irix_n32_stack_tramp_frame to
  598. list of unwinder.
  599. 2010-11-22 Jerome Guitton <guitton@adacore.com>
  600. * ada-tasks.c (get_tcb_types_info): Use C lookups to get
  601. ATCB symbols.
  602. 2010-11-22 Joel Brobecker <brobecker@adacore.com>
  603. * ada-lang.c (ada_check_typedef): Call ada_check_typedef only
  604. if type1 is a typedef.
  605. 2010-11-22 Joel Brobecker <brobecker@adacore.com>
  606. * ada-lang.h (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Add
  607. "_finalizer" to the list.
  608. 2010-11-22 Joel Brobecker <brobecker@adacore.com>
  609. * symfile.c: Remove all "#if 0"/"#endif" blocks.
  610. 2010-11-22 Joel Brobecker <brobecker@adacore.com>
  611. * symfile.c: Add missing second space after period in various comments.
  612. 2010-11-22 Joel Brobecker <brobecker@adacore.com>
  613. * ada-typeprint.c (print_array_type): Fix formatting in comment.
  614. (print_selected_record_field_types): Fix formatting in function
  615. documentation.
  616. 2010-11-22 Joel Brobecker <brobecker@adacore.com>
  617. * ravenscar-thread.c (_initialize_ravenscar): Fix copy/paste typo
  618. in name of "show ravenscar" prefix command name.
  619. 2010-11-22 Joel Brobecker <brobecker@adacore.com>
  620. * ravenscar-thread.c (show_ravenscar_task_switching_command):
  621. Add missing '\n' in output.
  622. 2010-11-22 Joel Brobecker <brobecker@adacore.com>
  623. * ravenscar-thread.c (running_thread_name): Change value.
  624. (read_thread_id): Remove advance declaration.
  625. (get_running_thread_msymbol): New function.
  626. (has_ravenscar_runtime): Use get_running_thread_msymbol to
  627. compute msym_running_thread.
  628. (get_running_thread_id): Renames read_thread_id. Slight modifications
  629. to not take any argument anymore, using get_running_thread_msymbol
  630. to determine which symbol to use instead.
  631. (ravenscar_running_thread): Use get_running_thread_id instead of
  632. read_thread_id.
  633. 2010-11-22 Joel Brobecker <brobecker@adacore.com>
  634. * ravenscar-sparc-thread.c (supply_register_at_address):
  635. Fix passing of buf in call to regcache_raw_supply.
  636. 2010-11-22 Jan Kratochvil <jan.kratochvil@redhat.com>
  637. * dwarf2read.c (dwarf2_read_index): Ignore higher .gdb_index versions.
  638. 2010-11-22 Tom Tromey <tromey@redhat.com>
  639. * Makefile.in (.PRECIOUS): Reference ada-lex.c.
  640. 2010-11-19 Keith Seitz <keiths@redhat.com>
  641. * data-directory/Makefile.in (SYSCALLS_INSTALL_DIR):
  642. Remove extraneous '/' after $(DESTDIR).
  643. (PYTHON_INSTALL_DIR): Likewise.
  644. 2010-11-19 Jan Kratochvil <jan.kratochvil@redhat.com>
  645. Fix stale memory references.
  646. * elfread.c (elf_symfile_read): Replace xmalloc by bfd_alloc, drop
  647. xfree, new comment.
  648. 2010-11-19 Jan Kratochvil <jan.kratochvil@redhat.com>
  649. Tom Tromey <tromey@redhat.com>
  650. * Makefile.in (.y.c): Directly create $@ from YLWRAP.
  651. (.PHONY): Remove for .y outputs.
  652. 2010-11-19 Will Drewry <wad@google.com>
  653. Tavis Ormandy <taviso@google.com>
  654. Jan Kratochvil <jan.kratochvil@redhat.com>
  655. * dwarf2read.c (decode_locdesc): Enforce location description stack
  656. boundaries.
  657. 2010-11-18 Pierre Muller <muller@ics.u-strasbg.fr>
  658. * arm-tdep.c (arm_in_function_epilogue_p): Fix code when "MOV SP"
  659. instruction is found.
  660. 2010-11-17 Tom Tromey <tromey@redhat.com>
  661. * value.c (value_entirely_optimized_out): Check the
  662. 'check_any_valid' field.
  663. 2010-11-16 Jan Kratochvil <jan.kratochvil@redhat.com>
  664. * ada-lang.c (modify_general_field): Remove.
  665. (make_array_descriptor): Replace all modify_general_field calls by
  666. modify_field.
  667. * value.c (modify_field): Update comment. New variable bytesize.
  668. Normalize BITPOS. Initialize BYTESIZE, use it.
  669. 2010-11-16 Jan Kratochvil <jan.kratochvil@redhat.com>
  670. * dwarf2read.c (dw2_forget_cached_source_info): Clear the FULL_NAMES
  671. elements after xfree.
  672. 2010-11-16 Tom Tromey <tromey@redhat.com>
  673. * gdb-add-index.sh: Really remove.
  674. 2010-11-16 Jan Kratochvil <jan.kratochvil@redhat.com>
  675. Code cleanup.
  676. * dwarf2read.c (alloc_one_comp_unit): Rename prototype to ...
  677. (init_one_comp_unit): ... this one.
  678. (prepare_one_comp_unit): New prototype.
  679. (dw2_require_line_header, process_psymtab_comp_unit): Use
  680. init_one_comp_unit.
  681. (process_psymtab_comp_unit): Use prepare_one_comp_unit.
  682. (load_partial_comp_unit): Remove variable attr. Use
  683. init_one_comp_unit with xmalloc. Use prepare_one_comp_unit.
  684. (load_full_comp_unit): Use init_one_comp_unit with xmalloc. Use
  685. prepare_one_comp_unit.
  686. (read_signatured_type): Remove variable attr. Use init_one_comp_unit.
  687. Use prepare_one_comp_unit.
  688. (alloc_one_comp_unit): Rename to ...
  689. (init_one_comp_unit): ... here and remove there calloc, new parameter
  690. cu.
  691. (prepare_one_comp_unit): New function.
  692. 2010-11-14 Pierre Muller <muller@ics.u-strasbg.fr>
  693. * arm-tdep.c (arm_in_function_epilogue_p): Fix code to avoid
  694. possible used of uninitialized variable.
  695. 2010-11-12 Nathan Froyd <froydnj@codesourcery.com>
  696. * rs6000-tdep.c (bfd_uses_spe_extensions): New function.
  697. (rs6000_gdbarch_init): Call it.
  698. 2010-11-12 Nathan Froyd <froydnj@codesourcery.com>
  699. * rs6000-tdep.c (gdb_print_insn_powerpc): Disassemble e500
  700. instructions if debugging an E500 binary.
  701. 2010-11-12 Tom Tromey <tromey@redhat.com>
  702. * varobj.c (value_get_print_value): Rearrange. Pass stream to
  703. apply_varobj_pretty_printer.
  704. * c-lang.c: Include exceptions.h.
  705. (c_get_string): Throw MEMORY_ERROR when appropriate.
  706. * python/py-prettyprint.c (enum string_repr_result): New.
  707. (print_stack_unless_memory_error): New function.
  708. (print_string_repr): Change return type. Use
  709. print_stack_unless_memory_error.
  710. (print_children): Use print_stack_unless_memory_error.
  711. (apply_val_pretty_printer): Update. Don't print children if
  712. string representation threw an exception.
  713. (apply_varobj_pretty_printer): Add 'stream' argument. Use
  714. print_stack_unless_memory_error.
  715. * python/python.c (gdbpy_gdb_error, gdbpy_gdb_memory_error): New
  716. globals.
  717. (_initialize_python): Initialize them.
  718. * python/python-internal.h (GDB_PY_HANDLE_EXCEPTION): Use
  719. gdbpy_convert_exception.
  720. (GDB_PY_SET_HANDLE_EXCEPTION): Likewise.
  721. (gdbpy_gdb_error, gdbpy_gdb_memory_error): Declare.
  722. (gdbpy_convert_exception): Declare.
  723. (apply_varobj_pretty_printer): Update.
  724. * python/py-utils.c (gdbpy_convert_exception): New function.
  725. 2010-11-12 Marc Khouzam <marc.khouzam@ericsson.com>
  726. * mi/mi-main.c (mi_cmd_target_detach): Accept new
  727. thread-group id format.
  728. 2010-11-12 Jan Kratochvil <jan.kratochvil@redhat.com>
  729. * spu-tdep.c (spu_catch_start): Fix compilation error typo.
  730. 2010-11-11 Phil Muldoon <pmuldoon@redhat.com>
  731. * python/py-breakpoint.c (BPPY_REQUIRE_VALID): Check if bp is
  732. NULL.
  733. (BPPY_SET_REQUIRE_VALID): Ditto.
  734. (bpnum_is_valid): Delete function.
  735. (bppy_get_visibility): New function.
  736. (bppy_new): Parse for, and validate internal keyword. Pass
  737. internal keyword to breakpoint or watchpoint functions.
  738. (build_bp_list): New function.
  739. (gdbpy_breakpoints): Rewrite. Use build_bp_list and
  740. iterate_over_breakpoints.
  741. (gdbpy_breakpoint_created): Rewrite. Do not store breakpoints in a
  742. look-aside vector.
  743. (gdbpy_breakpoint_deleted): Rewrite, defer breakpoint management
  744. to internal breakpoint chain.
  745. * breakpoint.c (set_breakpoint_number): New function.
  746. (breakpoint_1): Check if breakpoint number is more than zero.
  747. (set_raw_breakpoint_without_location): Set py_bp_object to NULL.
  748. (create_breakpoint_sal): Take a new parameter called internal.
  749. Call set_breakpoint_number with internal parameter. Do not
  750. mention internal breakpoints. All callers updated.
  751. (create_breakpoint): Ditto.
  752. (create_breakpoints_sal): Ditto.
  753. (watch_command_1): Ditto.
  754. (watch_command_wrapper): Take a new parameter called internal.
  755. All callers updated.
  756. (rwatch_command_wrapper): Ditto.
  757. (awatch_command_wrapper): Ditto.
  758. (save_breakpoints): Update breakpoint save condition check.
  759. (iterate_over_breakpoints): New function.
  760. * breakpoint.h: Add conditional python includes. Add py_bp_object
  761. and comment to struct breakpoint. Update all callers.
  762. * defs.h: Add PyObject definition for GDB builds without Python.
  763. 2010-11-10 Doug Evans <dje@google.com>
  764. * python/lib/gdb/command/pretty_printers.py
  765. (do_enable_pretty_printer_1): Handle printer.subprinters is None.
  766. * value.c (set_value_enclosing_type): Renamed from
  767. value_change_enclosing_type. All callers updated.
  768. * value.h (set_value_enclosing_type): Update.
  769. * valops.c (value_full_object): Always return a copy if we need to
  770. make changes to the input value.
  771. 2010-11-09 Pedro Alves <pedro@codesourcery.com>
  772. * breakpoint.c (watch_command_1): Get a pointer of the lazy
  773. version of the expression's value, even if reading the value from
  774. memory fails. When creating a -location watchpoint, get the
  775. value's address from the lazy value pointer.
  776. 2010-11-07 Jan Kratochvil <jan.kratochvil@redhat.com>
  777. * infrun.c (restore_inferior_thread_state): Use
  778. discard_inferior_thread_state to free the data.
  779. (discard_inferior_thread_state): xfree also siginfo_data.
  780. 2010-11-05 Doug Evans <dje@google.com>
  781. Make gdb.parameter("directories") work.
  782. New command "set directories".
  783. * NEWS: Document them.
  784. * source.c (set_directories_command): New function.
  785. (show_directories_1): Renamed from show_directories.
  786. All callers updated.
  787. (show_directories_command): New function.
  788. (_initialize_source): Install "directories" as a set/show
  789. variable instead of just a show command.
  790. 2010-11-05 Ken Werner <ken.werner@de.ibm.com>
  791. * NEWS: Mention OpenCL C language support.
  792. * Makefile.in (SFILES): Add opencl-lang.c.
  793. (COMMON_OBS): Add opencl-lang.o.
  794. * opencl-lang.c: New File
  795. * defs.h (enum language): Add language_opencl.
  796. * dwarf2read.c (read_file_scope): Handle DW_AT_producer for the
  797. IBM XL C OpenCL compiler.
  798. * c-lang.h: Include "parser-defs.h".
  799. (evaluate_subexp_c): Declare.
  800. * c-lang.c (evaluate_subexp_c): Remove the static qualifier.
  801. (c_op_print_tab): Add declaration.
  802. * eval.c (binop_promote): Handle language_opencl.
  803. * c-exp.y: Lookup the primitive types instead of referring to the
  804. builtins.
  805. 2010-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
  806. Fix configure --enable-plugins --without-python.
  807. * configure.ac (for ELF support in BFD) <"$plugins" = "yes">: New.
  808. * configure: Regenerate.
  809. 2010-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
  810. * solib.c (solib_read_symbols): Call exception_fprintf even without
  811. FROM_TTY. Print also so->so_name.
  812. 2010-11-04 Sami Wagiaalla <swagiaal@redhat.com>
  813. * gdbtypes.h (struct rank): Created subrank.
  814. * gdbtypes.c: Initialized subrank for all
  815. 'BADNESS' constants.
  816. (distance_to_ancestor): New function.
  817. (is_ancestor): Use distance_to_ancestor.
  818. (is_public_ancestor): Ditto.
  819. (sum_ranks): Handle subrank.
  820. (compare_ranks): Ditto.
  821. (rank_one_type): Subrank base conversions.
  822. 2010-11-04 Sami Wagiaalla <swagiaal@redhat.com>
  823. * gdbtypes.h: Create struct rank.
  824. Convert all 'BADNESS' macros to const struct rank declarations.
  825. (sum_ranks): New function.
  826. (compare_ranks): New function.
  827. * valops.c (find_oload_champ): Updated.
  828. (classify_oload_match): Use compare_ranks.
  829. Improved comments.
  830. (compare_parameters): Use compare_ranks.
  831. * gdbtypes.c: Initialize 'BADNESS' constants.
  832. (sum_ranks): New function.
  833. (compare_ranks): New function.
  834. (compare_badness): Use compare_ranks.
  835. (rank_function): Use global constants instead of literals.
  836. (rank_one_type): Ditto.
  837. Return struct rank.
  838. Use sum_ranks.
  839. 2010-11-04 Doug Evans <dje@google.com>
  840. * python/py-prettyprint.c (find_pretty_printer_from_gdb): Fix comment.
  841. (find_pretty_printer): Fix comments.
  842. 2010-11-04 Hui Zhu <teawater@gmail.com>
  843. * tracepoint.c (remote_trace_set_readonly_regions): Change lma to vma.
  844. 2010-11-03 Joel Brobecker <brobecker@adacore.com>
  845. * ada-valprint.c (ada_val_print_array): Move variables `eltlen'
  846. and `len' declaration and computation inside block where they
  847. are being used.
  848. 2010-11-03 Joel Brobecker <brobecker@adacore.com>
  849. * valprint.c (val_print_array_elements): Put back handling of
  850. empty arrays.
  851. 2010-11-03 Ken Werner <ken.werner@de.ibm.com>
  852. * dwarf2read.c (read_array_type): Read the DW_AT_byte_size from the
  853. DIE and set the length of the type.
  854. * gdbtypes.h (get_array_bounds): Move here from valprint.h.
  855. * gdbtypes.c (get_array_bounds): Move here from valprint.c and
  856. return 0 if the corresponding bounds of the type are undefined.
  857. * valprint.h (get_array_bounds): Move declaration to gdbtypes.h.
  858. * valprint.c (get_array_bounds): Move implementation to gdbtypes.c.
  859. (val_print_array_elements): Use get_array_bounds to compute the number
  860. of array elements instead of dividing the length of the array by the
  861. length of the element types.
  862. * valarith.c (vector_binop): Likewise.
  863. * valops.c (value_cast): Likewise.
  864. * c-valprint.c (c_val_print): Likewise.
  865. * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
  866. 2010-11-03 Ken Werner <ken.werner@de.ibm.com>
  867. * valarith.c (value_pos, value_neg, value_complement): Handle
  868. vector types.
  869. * valops.c (value_one): Likewise.
  870. 2010-11-03 Ken Werner <ken.werner@de.ibm.com>
  871. * value.h (value_non_lval): Declare.
  872. * value.c (value_non_lval): New function.
  873. * eval.c (evaluate_subexp_standard) <UNOP_POSTINCREMENT,
  874. UNOP_POSTDECREMENT>: Call value_non_lval to ensure to return a
  875. non-lvalue.
  876. 2010-11-02 Doug Evans <dje@google.com>
  877. New python module gdb.printing, and new commands info pretty-printer,
  878. enable pretty-printer, disable pretty-printer.
  879. * NEWS: Mention them.
  880. * data-directory/Makefile.in (PYTHON_FILES): Add gdb/printing.py,
  881. gdb/command/__init__.py, gdb/command/pretty_printers.py.
  882. * python/lib/gdb/__init__.py: Install pretty-printer commands.
  883. * python/lib/gdb/printing.py: New file.
  884. * python/lib/gdb/command/__init__.py: New file.
  885. * python/lib/gdb/command/pretty_printers.py: New file.
  886. 2010-11-02 Tom Tromey <tromey@redhat.com>
  887. * NEWS: Mention Guile removal.
  888. * defs.h (enum language) <language_scm>: Remove.
  889. * Makefile.in (SFILES): Remove scm-exp.c, scm-lang.c,
  890. scm-valprint.c.
  891. (HFILES_NO_SRCDIR): Remove scm-lang.h, scm-tags.h.
  892. (COMMON_OBS): Remove scm-exp.o, scm-lang.o, scm-valprint.o.
  893. * scm-exp.c, scm-lang.c, scm-valprint.c, scm-lang.h, scm-tags.h:
  894. Remove.
  895. 2010-11-02 Doug Evans <dje@google.com>
  896. * top.c: #include "python/python.h".
  897. (gdb_init): Add a comment regarding initialize_all_files.
  898. Call finish_python_initialization at the end.
  899. * python/python.h (finish_python_initialization): Declare.
  900. * python/python.c (finish_python_initialization): New function.
  901. (_initialize_python): Move python-implemented initialization there
  902. and call it.
  903. (GdbMethods): Use #ifdef HAVE_PYTHON for consistency.
  904. 2010-11-02 Jan Kratochvil <jan.kratochvil@redhat.com>
  905. Revert:
  906. 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
  907. Pedro Alves <pedro@codesourcery.com>
  908. * gdbthread.h (currently_stepping): New declaration.
  909. * infrun.c (currently_stepping): Remove the forward declaration.
  910. (currently_stepping): Make it global.
  911. * linux-nat.c (resume_callback) <lp->stopped && lp->status == 0>: New
  912. variables tp and step, initialized them. Pass STEP to to_resume.
  913. Print also possibly "PTRACE_SINGLESTEP" if STEP. Initialize LP->STEP.
  914. * remote.c (currently_stepping_callback): New.
  915. (remote_vcont_resume)
  916. <ptid_equal (ptid, minus_one_ptid) || ptid_is_pid (ptid)>:
  917. New variable tp. Call currently_stepping_callback and step such
  918. thread.
  919. 2010-11-01 Hui Zhu <teawater@gmail.com>
  920. * tracepoint.c (tfile_xfer_partial): Change lma to vma.
  921. 2010-10-28 Hui Zhu <teawater@gmail.com>
  922. * tracepoint.c (trace_save): Change utp->actions to
  923. utp->step_actions.
  924. 2010-10-26 Joel Brobecker <brobecker@adacore.com>
  925. * (_FILE_OFFSET_BITS): Fix typo in comment.
  926. 2010-10-26 Joel Brobecker <brobecker@adacore.com>
  927. * python/python-internal.h (_FILE_OFFSET_BITS): Undefine.
  928. (PyEval_InitThreads): Remove duplicate. Define as nothing.
  929. (PyEval_ReleaseLock): Define as nothing.
  930. 2010-10-26 Joel Brobecker <brobecker@adacore.com>
  931. * dwarf2read.c (psymtab_include_file_name): Replace call to strcmp
  932. by call to FILENAME_CMP.
  933. 2010-10-26 Joel Brobecker <brobecker@adacore.com>
  934. * dictionary.c (dict_hash): Move assignment out of if condition.
  935. 2010-10-22 Jie Zhang <jie@codesourcery.com>
  936. * Makefile.in (install): Remove dependency of install-only and
  937. recursively invoke make for install-only.
  938. * data-directory/Makefile.in: Add FLAGS_TO_PASS variable.
  939. (install): Pass FLAGS_TO_PASS when recursively make install-only.
  940. 2010-10-20 Hui Zhu <teawater@gmail.com>
  941. * tracepoint.c (tfile_get_traceframe_address): Call
  942. extract_signed_integer.
  943. (tfile_trace_find): Call extract_signed_integer and
  944. extract_unsigned_integer. Change data_size to unsigned int.
  945. (tfile_fetch_registers): Call extract_unsigned_integer.
  946. (tfile_xfer_partial): Ditto.
  947. (tfile_get_trace_state_variable_value): Call
  948. extract_signed_integer and extract_unsigned_integer.
  949. 2010-10-20 Vladimir Prus <vladimir@codesourcery.com>
  950. * remote.c (remote_get_threadlist): If we got empty
  951. response, bail out immediately, and don't emit any
  952. warnings.
  953. 2010-10-19 Ulrich Weigand <uweigand@de.ibm.com>
  954. * arm-tdep.c (thumb_get_next_pc_raw): Handle Thumb-16 encoding
  955. for "mov pc, REG" as well.
  956. (thumb_instruction_changes_pc): Likewise.
  957. 2010-10-19 Sami Wagiaalla <swagiaal@redhat.com>
  958. PR C++/11500:
  959. * valarith.c (value_x_unop): Handle STRUCTOP_PTR.
  960. * eval.c (evaluate_subexp_standard): Check for overload of
  961. 'operator->'.
  962. * valarith.c (value_x_binop): Throw NOT_FOUND_ERROR.
  963. (value_x_unop): Ditto.
  964. * valops.c: Include "exceptions.h".
  965. (find_overload_match): Throw NOT_FOUND_ERROR.
  966. (value_struct_elt): Ditto.
  967. 2010-10-19 Tom Tromey <tromey@redhat.com>
  968. * python/py-cmd.c (cmdpy_function): Unreference exception state.
  969. 2010-10-19 Sami Wagiaalla <swagiaal@redhat.com>
  970. * gdbtypes.h: Introduce BOOL_PTR_CONVERSION_BADNESS.
  971. * gdbtypes.c (rank_one_type): Use BOOL_PTR_CONVERSION_BADNESS
  972. for conversion.
  973. Make all other conversions illegal.
  974. 2010-10-18 Doug Evans <dje@google.com>
  975. * c-typeprint.c (c_type_print_base, case TYPE_CODE_TYPEDEF): Verify
  976. assumptions of when this case happens. Print "<unnamed typedef>".
  977. 2010-10-18 Tom Tromey <tromey@redhat.com>
  978. * valprint.c (val_print_string): Pass 'encoding' to
  979. LA_PRINT_STRING.
  980. 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
  981. Fix the `stopped language detection' testcase for gcc-4.5.
  982. * dwarf2read.c (read_partial_die): Set also LANGUAGE_OF_MAIN.
  983. * symfile.c (set_initial_language): Move variable filename to a more
  984. inner block. Prefer LANGUAGE_OF_MAIN.
  985. * symtab.c (language_of_main): New variable.
  986. (set_main_name): Always reset LANGUAGE_OF_MAIN.
  987. * symtab.h (language_of_main): New declaration.
  988. 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
  989. Pedro Alves <pedro@codesourcery.com>
  990. * gdbthread.h (currently_stepping): New declaration.
  991. * infrun.c (currently_stepping): Remove the forward declaration.
  992. (currently_stepping): Make it global.
  993. * linux-nat.c (resume_callback) <lp->stopped && lp->status == 0>: New
  994. variables tp and step, initialized them. Pass STEP to to_resume.
  995. Print also possibly "PTRACE_SINGLESTEP" if STEP. Initialize LP->STEP.
  996. * remote.c (currently_stepping_callback): New.
  997. (remote_vcont_resume)
  998. <ptid_equal (ptid, minus_one_ptid) || ptid_is_pid (ptid)>:
  999. New variable tp. Call currently_stepping_callback and step such
  1000. thread.
  1001. 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
  1002. * infrun.c (follow_exec): Replace symbol_file_add_main by
  1003. symbol_file_add with SYMFILE_DEFER_BP_RESET, set_initial_language and
  1004. breakpoint_re_set.
  1005. * m32r-rom.c (m32r_load, m32r_upload_command): Use parameter 0 for
  1006. clear_symtab_users.
  1007. * objfiles.c (free_all_objfiles): Likewise.
  1008. * remote-m32r-sdi.c (m32r_load): Likewise.
  1009. * solib-som.c (som_solib_create_inferior_hook): Likewise.
  1010. * symfile.c (new_symfile_objfile): New comment for add_flags. Call
  1011. clear_symtab_users with ADD_FLAGS.
  1012. (reread_symbols): Use parameter 0 for clear_symtab_users.
  1013. (clear_symtab_users): New parameter add_flags. Do not call
  1014. breakpoint_re_set if SYMFILE_DEFER_BP_RESET.
  1015. (clear_symtab_users_cleanup): Use parameter 0 for clear_symtab_users.
  1016. * symtab.h (clear_symtab_users): New parameter add_flags.
  1017. 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
  1018. Fix GCC false warning.
  1019. * varobj.c (value_get_print_value) <str_addr>: Initialize it.
  1020. 2010-10-16 Pierre Muller <muller@ics.u-strasbg.fr>
  1021. * p-typeprint.c (pascal_type_print_method_args): Fix problem in
  1022. display of type of method arguments.
  1023. 2010-10-15 Tom Tromey <tromey@redhat.com>
  1024. PR python/11948:
  1025. * varobj.c (value_get_print_value): Use val_print_string to print
  1026. lazy strings.
  1027. * python/py-prettyprint.c (print_string_repr): Use
  1028. val_print_string to print lazy strings. Fix cleanup logic.
  1029. (print_children): Likewise.
  1030. * python/python-internal.h (gdbpy_extract_lazy_string): Update.
  1031. * python/py-lazy-string.c (gdbpy_extract_lazy_string): Rewrite.
  1032. Change return type to 'void', add 'addr' argument.
  1033. * value.h (val_print_string): Update.
  1034. * valprint.c (val_print_string): Add 'encoding' argument.
  1035. * printcmd.c (print_formatted): Update.
  1036. * p-valprint.c (pascal_val_print): Update.
  1037. * m2-valprint.c (print_unpacked_pointer): Update.
  1038. (m2_print_array_contents): Likewise.
  1039. * jv-valprint.c (java_value_print): Update.
  1040. * f-valprint.c (f_val_print): Update.
  1041. * c-valprint.c (c_val_print): Update.
  1042. * auxv.c (fprint_target_auxv): Update.
  1043. 2010-10-15 Doug Evans <dje@google.com>
  1044. Jan Kratochvil <jan.kratochvil@redhat.com>
  1045. PR exp/12117
  1046. * gdbtypes.c (check_typedef): Clean up function comment.
  1047. Keep track of instance flags as we strip typedefs and create a new
  1048. type to preserve them if necessary.
  1049. * gdbtypes.h (type) <instance_flags>: Extend the comment.
  1050. 2010-10-15 Pierre Muller <muller@ics.u-strasbg.fr>
  1051. * p-lang.c (is_pascal_string_type): Use TYPE_FIELD_NAME accessor.
  1052. 2010-10-14 Sami Wagiaalla <swagiaal@redhat.com>
  1053. * gdbtypes.h: Create BASE_PTR_CONVERSION_BADNESS.
  1054. * gdbtypes.c (rank_one_type): Move type comparison code out of here
  1055. to...
  1056. (types_equal): ...here. And changed it as follows:
  1057. Outside of typedefs type must be of the same TYPE_CODE.
  1058. When compairing two pointers or references they are equal if their
  1059. targets are equal.
  1060. Correct pointer conversions.
  1061. 2010-10-14 Pierre Muller <muller@ics.u-strasbg.fr>
  1062. * p-lang.c (is_pascal_string_type): Avoid crashes on structures
  1063. having fields without names.
  1064. 2010-10-13 Tom Tromey <tromey@redhat.com>
  1065. * language.h (LA_PRINT_ARRAY_INDEX): Fix argument name.
  1066. 2010-10-13 Doug Evans <dje@google.com>
  1067. New python module gdb.types.
  1068. * NEWS: Document it.
  1069. * data-directory/Makefile.in (PYTHON_FILES): Add gdb/types.py.
  1070. * python/lib/gdb/types.py: New file.
  1071. * c-typeprint.c: Whitespace cleanup.
  1072. (cp_type_print_method_args): Remove unnecessary forward decl.
  1073. (cp_type_print_derivation_info): Ditto.
  1074. (c_type_print_varspec_prefix): Mark as static at definition.
  1075. (c_type_print_modifier): Fix arg descriptions.
  1076. 2010-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
  1077. * python/py-breakpoint.c (bppy_set_condition): New comment.
  1078. * python/py-cmd.c (cmdpy_function): Call also gdbpy_print_stack for
  1079. failed PyUnicode_Decode.
  1080. (cmdpy_completer): Skip element for failed
  1081. python_string_to_host_string.
  1082. (cmdpy_init): Return -1 on failed python_string_to_host_string.
  1083. * python/py-frame.c (frapy_read_var): Extend the function comment.
  1084. * python/py-function.c (fnpy_init): Return -1 on failed
  1085. python_string_to_host_string.
  1086. * python/py-inferior.c (infpy_read_memory, infpy_write_memory): Extend
  1087. the function comment.
  1088. (infpy_search_memory): Extend the function comment. Remove the
  1089. PyErr_SetString call on already set error state.
  1090. * python/py-param.c (set_parameter_value): Extend the function
  1091. comment. Return -1 on failed python_string_to_host_string, twice.
  1092. (set_attr): Extend the function comment.
  1093. (compute_enum_values): Extend the function comment. New variable
  1094. back_to. Protect self->enumeration by BACK_TO cleanups. Return 0 on
  1095. failed python_string_to_host_string.
  1096. (get_doc_string): Call gdbpy_print_stack on failed
  1097. python_string_to_host_string.
  1098. (parmpy_init): Extend the function comment.
  1099. * python/py-prettyprint.c (pretty_print_one_value): Likewise.
  1100. (gdbpy_get_display_hint, print_children): Call gdbpy_print_stack on
  1101. failed python_string_to_host_string.
  1102. * python/py-value.c (valpy_new, valpy_getitem, valpy_call)
  1103. (valpy_binop, valpy_richcompare): Extend the function comment.
  1104. * python/python.c
  1105. (struct python_env) <error_type, error_value, error_traceback>: New
  1106. fields.
  1107. (restore_python_env): Handle PyErr_Occurred. Call PyErr_Restore.
  1108. (ensure_python_env): Call PyErr_Fetch.
  1109. * varobj.c (update_dynamic_varobj_children): Call gdbpy_print_stack on
  1110. failed convert_value_from_python.
  1111. (value_get_print_value): Call gdbpy_print_stack on failed
  1112. python_string_to_target_python_string.
  1113. 2010-10-12 Tom Tromey <tromey@redhat.com>
  1114. * python/py-prettyprint.c (search_pp_list): Fix error checking.
  1115. 2010-10-12 Sami Wagiaalla <swagiaal@redhat.com>
  1116. * gdbtypes.c (do_is_ancestor): New function.
  1117. (is_ancestor): Use do_is_ancestor.
  1118. (is_public_ancestor): Use do_is_ancestor.
  1119. 2010-10-12 Pierre Muller <muller@ics.u-strasbg.fr>
  1120. * ser-go32.c (struct dos_ops): Add missing fdopen field.
  1121. 2010-10-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
  1122. * arm-tdep.c (arm_mode_strings): Add NULL entry at end of array.
  1123. 2010-10-11 Doug Evans <dje@google.com>
  1124. * c-typeprint.c (c_type_print_modifier): Add note that this prints
  1125. the address space id too.
  1126. 2010-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
  1127. Fix attaching to re-prelinked executables on ppc64.
  1128. * solib-svr4.c (svr4_exec_displacement): New variable plt2_asect,
  1129. initialize it, try to adjust FILESZ field by it.
  1130. 2010-10-08 Daniel Jacobowitz <dan@codesourcery.com>
  1131. * tracepoint.c (merge_uploaded_trace_state_variables): Only print
  1132. messages if info_verbose.
  1133. 2010-10-08 Ken Werner <ken.werner@de.ibm.com>
  1134. * valops.c (value_cast): Handle vector types.
  1135. * valarith.c (value_binop): Widen scalar to vector if appropriate.
  1136. 2010-10-08 Ulrich Weigand <uweigand@de.ibm.com>
  1137. * arm-tdep.c (thumb_expand_immediate): New function.
  1138. (thumb_instruction_changes_pc): Likewise.
  1139. (thumb2_instruction_changes_pc): Likewise.
  1140. (thumb_analyze_prologue): Handle 32-bit Thumb instructions during
  1141. prologue parsing. Improved support for optimized code.
  1142. (thumb_scan_prologue): Do not reply on line-number information,
  1143. use same heuristics as arm_scan_prologue insead.
  1144. (skip_prologue_function): Accept functions
  1145. "__tls_get_addr" and "__aeabi_read_tp".
  1146. 2010-10-08 Ulrich Weigand <uweigand@de.ibm.com>
  1147. Daniel Jacobowitz <dan@codesourcery.com>
  1148. * arm-tdep.c (thumb_in_function_epilogue_p)
  1149. (arm_in_function_epilogue_p): New.
  1150. (arm_gdbarch_init): Install arm_in_function_epilogue_p as
  1151. gdbarch_in_function_epilogue_p callback.
  1152. 2010-10-07 Doug Evans <dje@google.com>
  1153. * cc-with-index.sh (output_file): Default to a.out.
  1154. * dwarf2read.c (mapped_index): Rename member index_table to
  1155. symbol_table and index_table_slots to symbol_table_slots.
  1156. All uses updated.
  1157. (create_symbol_hash_table): Renamed from create_index_table.
  1158. All callers updated.
  1159. (add_indices_to_cpool): Rename arg index_table to symbol_hash_table.
  1160. (write_hash_table): Rename local index_table to symbol_hash_table.
  1161. * addrmap.h (addrmap_foreach_fn): New typedef.
  1162. (addrmap_foreach): Declare.
  1163. * addrmap.c (struct addrmap_funcs): New member foreach.
  1164. (addrmap_foreach): New function.
  1165. (addrmap_fixed_foreach): New function.
  1166. (addrmap_fixed_funcs): Update.
  1167. (struct mutable_foreach_data): New struct.
  1168. (addrmap_mutable_foreach_worker): New function.
  1169. (addrmap_mutable_foreach): New function.
  1170. (addrmap_mutable_funcs): Update.
  1171. 2010-10-07 Paul Hilfinger <hilfinger@adacore.com>
  1172. * dictionary.c (dict_hash): Revert to msymbol_hash_iw in
  1173. more cases.
  1174. 2010-10-07 Paul Hilfinger <hilfinger@adacore.com>
  1175. * ada-lang.c (full_match): Declare.
  1176. (ada_match_name): Rename to match_name (we should avoid prefixing static
  1177. symbols with "ada_").
  1178. (match_name): New name for ada_match_name.
  1179. (struct ada_psym_data): Remove and replace with...
  1180. (struct match_data): User data for map_matching_symbols.
  1181. (ada_add_psyms): Remove.
  1182. (aux_add_nonlocal_symbols): New function, used as callback for
  1183. map_matching_symbols.
  1184. (compare_names): Ordering function adopted from strcmp_iw for Ada-encoded
  1185. symbols.
  1186. (ada_add_non_local_symbols): Rename to add_nonlocal_symbols.
  1187. (add_nonlocal_symbols): Renamed from ada_add_non_local_symbols.
  1188. Rework to use map_matching_symbols instead of map_ada_symtabs.
  1189. (ada_lookup_symbol_list): Use add_nonlocal_symbols.
  1190. * psymtab.c: Include dependency on dictionary.h.
  1191. (match_partial_symbol): New function.
  1192. (ada_lookup_partial_symbol): Remove.
  1193. (map_block): New function, auxiliary to map_matching_symbols_psymtab.
  1194. (map_matching_symbols_psymtab): New function.
  1195. (psym_functions): Replace map_ada_symtabs with map_matching_symbols_psymtab.
  1196. * symfile.h: Replace map_ada_symtabs definition with map_matching_symbols.
  1197. 2010-10-06 Paul Hilfinger <hilfinger@adacore.com>
  1198. * ada-lang.c (ada_match_name): Use new API for wild_match.
  1199. (wild_match): Change API to be consistent with that of strcmp_iw;
  1200. return 0 for a match, and switch operand order.
  1201. (full_match): New function.
  1202. (ada_add_block_symbols): Use dict_iter_match_{first,next} for
  1203. matching to allow use of hashing.
  1204. * dictionary.c (struct dict_vector): Generalize iter_name_first,
  1205. iter_name_next ot iter_match_first, iter_match_next.
  1206. (iter_name_first_hashed): Replace with iter_match_first_hashed.
  1207. (iter_name_next_hashed): Replace with iter_match_next_hashed.
  1208. (iter_name_first_linear): Replace with iter_match_first_linear.
  1209. (iter_name_next_linear): Replace with iter_match_next_linear.
  1210. (dict_iter_name_first): Re-implement to use dict_iter_match_first.
  1211. (dict_iter_name_next): Re-implement to use dict_iter_match_next.
  1212. (dict_iter_match_first): New function.
  1213. (dict_iter_match_next): New function.
  1214. (dict_hash): New function.
  1215. * dictionary.h (dict_iter_match_first, dict_iter_match_next): Declare.
  1216. * psymtab.c (ada_lookup_partial_symbol): Use new wild_match API.
  1217. 2010-10-06 Doug Evans <dje@google.com>
  1218. * data-directory/Makefile.in: Remove @host_makefile_frag@, @frags@.
  1219. 2010-10-06 Ken Werner <ken.werner@de.ibm.com>
  1220. * dwarf2read.c (read_tag_const_type): Handle const arrays.
  1221. 2010-10-06 Doug Evans <dje@google.com>
  1222. * Makefile.in (REQUIRED_SUBDIRS): New var.
  1223. (subdir_do): Verify required subdir Makefiles exist.
  1224. Create subdir data-directory.
  1225. * Makefile.in (XML_SYSCALL_DIR, XML_SYSCALL_FILES): Moved to
  1226. data-directory/Makefile.in.
  1227. (SUBDIRS): Add data-directory.
  1228. (all): Remove xml-syscall-copy dependency.
  1229. (xml-syscall-copy): Moved to data-directory/Makefile.in as
  1230. stamp-syscalls.
  1231. (xml-syscall-install): Moved to data-directory/Makefile.in as
  1232. install-syscalls.
  1233. (install-only): Remove xml-syscall-install dependency.
  1234. (all-data-directory): New rule.
  1235. (data-directory/Makefile): New rule.
  1236. * configure.ac (AC_OUTPUT): Add data-directory/Makefile.
  1237. * configure: Regenerate.
  1238. * data-directory/Makefile.in: New file.
  1239. * python/lib/gdb/__init__.py: New file.
  1240. 2010-10-06 Joel Brobecker <brobecker@adacore.com>
  1241. Fix ARI warnings in advance_wild_match.
  1242. * ada-lang.c (advance_wild_match): Delete local variable t2.
  1243. Adjust code accordingly. Minor reformatting.
  1244. 2010-10-06 Ken Werner <ken.werner@de.ibm.com>
  1245. * gdbtypes.h (struct main_type): Remove flag_nottext.
  1246. (enum type_flag_value): Remove TYPE_FLAG_NOTTEXT.
  1247. (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_NOTTEXT.
  1248. (TYPE_NOTTEXT): Use TYPE_INSTANCE_FLAG_NOTTEXT instead of flag_nottext.
  1249. * gdbtypes.c (make_vector_type): Use TYPE_INSTANCE_FLAG_NOTTEXT instead
  1250. of TYPE_FLAG_NOTTEXT.
  1251. (init_type): Remove the initialization of the flag_nottext field.
  1252. (gdbtypes_post_init): Use TYPE_INSTANCE_FLAG_NOTTEXT instead of
  1253. TYPE_FLAG_NOTTEXT.
  1254. * c-valprint.c (c_val_print): Remove TYPE_VECTOR check.
  1255. 2010-10-04 Doug Evans <dje@google.com>
  1256. * cc-with-index.sh: New file.
  1257. * dwarf2read.c (dw2_do_instantiate_symtab): Insert blank line after
  1258. function comment.
  1259. (dw2_instantiate_symtab, dw2_get_cu, extract_cu_value): Ditto.
  1260. (create_cus_from_index, create_addrmap_from_index): Ditto.
  1261. (mapped_index_string_hash, find_slot_in_mapped_hash): Ditto.
  1262. (dw2_setup, dw2_require_line_header, dw2_require_full_path): Ditto.
  1263. (dw2_do_expand_symtabs_matching): Ditto.
  1264. (eq_strtab_entry, create_strtab, add_string): Ditto.
  1265. (hash_strtab_entry): Ditto.
  1266. (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry): Ditto.
  1267. (create_index_table, create_mapped_symtab, find_slot): Ditto.
  1268. (hash_expand, add_index_entry, add_indices_to_cpool): Ditto.
  1269. (write_hash_table, add_address_entry, write_psymbols): Ditto.
  1270. (write_obstack, unlink_if_set, write_one_signatured_type): Ditto.
  1271. (write_psymtabs_to_index): Ditto.
  1272. 2010-10-04 Joel Brobecker <brobecker@adacore.com>
  1273. * ada-lang.c: #include "value.h".
  1274. (ensure_lval): Delete advance declaration. Remove gdbarch and sp
  1275. arguments. Implement using value_allocate_space_in_inferior
  1276. instead of allocating memory from the stack.
  1277. (make_array_descriptor): Remove gdbarch and sp parameters. Update
  1278. calls to ensure_lval.
  1279. (ada_convert_actual): Remove gdbarch and sp parameters. Update
  1280. calls to make_array_descriptor and ensure_lval.
  1281. * ada-lang.h (ada_convert_actual): Update declaration.
  1282. * infcall.c (value_arg_coerce): Update call to ada_convert_actual.
  1283. 2010-10-04 Doug Evans <dje@google.com>
  1284. * python/python.c (_initialize_python): Define new function
  1285. GdbSetPythonDirectory in python. Use it to update sys.path and
  1286. gdb.__path__.
  1287. 2010-10-03 Paul Hilfinger <hilfinger@adacore.com>
  1288. * ada-typeprint.c (print_selected_record_field_types): New function,
  1289. incorporating and generalizing print_record_field_types.
  1290. (print_record_field_types): Change return value and update comment.
  1291. Re-implement using print_selected_record_field_types.
  1292. (print_choices): Print "=>" here.
  1293. Handle case of unencoded variant branch.
  1294. (print_variant_clauses): Reformat comment.
  1295. Special-case unencoded variant branch.
  1296. 2010-10-03 Paul Hilfinger <hilfinger@adacore.com>
  1297. * ada-lang.c (wild_match): Reimplement.
  1298. Change API to eliminate unused length argument, reverse arguments and
  1299. make 0 the 'true' return value.
  1300. (advance_wild_match): New auxiliary function for wild_match to improve
  1301. readability.
  1302. (ada_match_name, ada_add_block_symbols): Use new API for wild_match.
  1303. * psymtab.c (ada_lookup_partial_symbol, map_ada_symtabs): Use new
  1304. API for wild_match.
  1305. * symfile.h (map_ada_symtabs): Modify declaration to use new API for
  1306. wild_match.
  1307. * dwarf2read.c (dw2_map_ada_symtabs): Ditto.
  1308. 2010-10-01 Doug Evans <dje@google.com>
  1309. * dwarf2read.c (_initialize_dwarf2_read): Add usage info to help text
  1310. for `save gdb-index' command.
  1311. 2010-10-01 Tom Tromey <tromey@redhat.com>
  1312. * symfile.h (allocate_symtab): Update.
  1313. * symfile.c (allocate_symtab): Make 'filename' const.
  1314. * psymtab.c (add_psymbol_to_bcache): Make 'name' const.
  1315. (add_psymbol_to_list): Likewise.
  1316. * psympriv.h (struct partial_symtab) <filename, dirname>: Now
  1317. const.
  1318. (add_psymbol_to_list): Update.
  1319. * mdebugread.c (new_symtab): Make 'name' const.
  1320. (psymtab_to_symtab_1): Make 'filename' const.
  1321. * elfread.c (elfstab_offset_sections): Update.
  1322. * dwarf2read.c (dwarf_decode_lines): Make 'comp_dir' const.
  1323. (dwarf2_start_subfile): Make 'dirname' and 'comp_dir' const.
  1324. (psymtab_include_file_name): Update.
  1325. * dbxread.c (find_stab_function_addr): Make 'filename' const.
  1326. * buildsym.h (start_subfile): Update.
  1327. * buildsym.c (start_subfile): Make arguments const.
  1328. 2010-09-30 Ali Lakhia <lakhia@alumni.utexas.net>
  1329. * fork-child.c (breakup_args): Fix crash if shell forking is
  1330. disabled at compile time.
  1331. 2010-10-01 Joel Brobecker <brobecker@adacore.com>
  1332. * ada-lang.c (desc_bounds): Add handling of the case where
  1333. the P_BOUNDS field is a pointer to a stub.
  1334. (desc_data_target_type): Same for P_ARRAY field.
  1335. (ada_check_typedef): Strip the typedef layers from the type
  1336. found by ada_find_any_type.
  1337. 2010-10-01 Joel Brobecker <brobecker@adacore.com>
  1338. * sparc-tdep.c (sparc32_frame_align): New function.
  1339. (sparc32_gdbarch_init): Set the frame_align gdbarch method.
  1340. * sparc64-tdep.c (sparc64_frame_align): New function.
  1341. (sparc64_gdbarch_init): Set the frame_align gdbarch method.
  1342. 2010-09-30 H.J. Lu <hongjiu.lu@intel.com>
  1343. * defs.h (MAX_REGISTER_SIZE): Set to 64.
  1344. 2010-09-30 Tom Tromey <tromey@redhat.com>
  1345. * symfile.h (struct sym_fns) <next>: Remove.
  1346. (add_symtab_fns): Update.
  1347. * symfile.c (sym_fns_ptr): New typedef.
  1348. (symtab_fns): Now a VEC.
  1349. (add_symtab_fns): Update. Change argument type.
  1350. (find_sym_fns): Update. Change return type.
  1351. (get_symfile_segment_data): Update.
  1352. * objfiles.h (struct objfile) <sf>: Now const.
  1353. * somread.c (som_sym_fns): Now const. Update.
  1354. * xcoffread.c (xcoff_sym_fns): Now const. Update.
  1355. * mipsread.c (ecoff_sym_fns): Now const. Update.
  1356. * machoread.c (macho_sym_fns): Now const. Update.
  1357. * elfread.c (elf_sym_fns): Now const. Update.
  1358. (elf_sym_fns_gdb_index): Likewise.
  1359. * dbxread.c (aout_sym_fns): Now const. Update.
  1360. * coffread.c (coff_sym_fns): Now const. Update.
  1361. 2010-09-30 Tom Tromey <tromey@redhat.com>
  1362. * value.c (value_primitive_field): Take 'offset' into account for
  1363. packed field.
  1364. 2010-09-30 Tom Tromey <tromey@redhat.com>
  1365. * completer.c (count_struct_fields): Handle anonymous structs and
  1366. unions.
  1367. (add_struct_fields): Likewise.
  1368. 2010-09-30 Jan Kratochvil <jan.kratochvil@redhat.com>
  1369. Fix printing parameters of inlined functions.
  1370. * ada-lang.c (is_known_support_routine)
  1371. (ada_unhandled_exception_name_addr_from_raise): Provide NULL parameter
  1372. for find_frame_funname.
  1373. * python/py-frame.c (frapy_name): Likewise.
  1374. * stack.c (find_frame_funname): New parameter funcp. Update the
  1375. function comment. Fill it in.
  1376. (print_frame): New variable func. Initialize it by
  1377. find_frame_funname. Print arguments only if FUNC is not NULL. Use
  1378. FUNC as the parameter of print_args_stub.
  1379. * stack.h (find_frame_funname): New parameter funcp. Remove the
  1380. function declaration comment.
  1381. 2010-09-30 Jan Kratochvil <jan.kratochvil@redhat.com>
  1382. PR corefiles/12071.
  1383. * inferior.c (have_live_inferiors): New variables old_chain, inf and
  1384. tp. Iterate INFERIOR_LIST and call target_has_execution.
  1385. 2010-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
  1386. Fix GDB crash on inferior calls with self-referencing classes.
  1387. * gnu-v3-abi.c (gnuv3_pass_by_reference): Do not call itself on static
  1388. member fields.
  1389. 2010-09-29 Doug Evans <dje@google.com>
  1390. Workaround for gcc/45682.
  1391. * dwarf2read.c (partial_die_info): New fields fixup_called,
  1392. linkage_name.
  1393. (guess_partial_die_structure_name): Renamed from guess_structure_name.
  1394. Move definition next to use. Use linkage_name to determine if class
  1395. is in a namespace. All callers updated.
  1396. (fixup_partial_die): Return early if already called.
  1397. Set fixup_called when done.
  1398. (guess_full_die_structure_name): New function.
  1399. (determine_prefix): Call it for class/struct/union dies if c++ and
  1400. .debug_types section is present and parent is DW_TAG_compile_unit.
  1401. 2010-09-28 Joel Brobecker <brobecker@adacore.com>
  1402. * configure.tgt (sparc-*-*): Set gdb_sim to ../sim/erc32/libsim.a.
  1403. (sparc-*-rtems*): Delete. Now redundant with sparc-*-*.
  1404. 2010-09-28 Joel Brobecker <brobecker@adacore.com>
  1405. * NEWS: Announce Ravenscar Profile support.
  1406. 2010-09-28 Joel Brobecker <brobecker@adacore.com>
  1407. Jerome Guitton <guitton@adacore.com>
  1408. * ravenscar-thread.c, ravenscar-thread.h, ravenscar-sparc-thread.c:
  1409. New files.
  1410. * configure.tgt (sparc-*-*): Add ravenscar-thread.o and
  1411. ravenscar-sparc-thread.o to gdb_target_obs.
  1412. 2010-09-28 Joel Brobecker <brobecker@adacore.com>
  1413. * ada-tasks.c (iterate_over_live_ada_tasks): New function.
  1414. * ada-lang.h (iterate_over_live_ada_tasks): Declare.
  1415. 2010-09-27 Pierre Muller <muller@ics.u-strasbg.fr>
  1416. * amd64-windows-tdep.c (amd64_skip_main_prologue): New function.
  1417. (amd64_windows_init_abi): Register amd64_skip_main_prologue as gdbarch
  1418. skip_main_prologue method.
  1419. 2010-09-27 Tom Tromey <tromey@redhat.com>
  1420. * dwarf2read.c (dwarf2_read_index): Only allow version 3.
  1421. (write_psymbols): Add 'psyms_seen' and 'is_static' arguments.
  1422. Only emit a given psymbol once.
  1423. (struct signatured_type_index_data) <psyms_seen>: New field.
  1424. (write_one_signatured_type): Update.
  1425. (cleanup_htab): New function.
  1426. (write_psymtabs_to_index): Update. Create psyms_seen hash. Bump
  1427. version to 3.
  1428. (save_gdb_index_command): Update index documentation.
  1429. 2010-09-27 Tom Tromey <tromey@redhat.com>
  1430. * bcache.c (expand_hash_table): Use hash_function, not hash.
  1431. 2010-09-27 Tom Tromey <tromey@redhat.com>
  1432. * gdb_wchar.h: Change minimum libiconv to 0x108.
  1433. 2010-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
  1434. Fix lost siginfo_t for inferior calls.
  1435. * infrun.c
  1436. (struct inferior_thread_state) <siginfo_gdbarch, siginfo_data>: New.
  1437. (save_inferior_thread_state): New variables regcache, gdbarch and
  1438. siginfo_data. Initialize SIGINFO_DATA if gdbarch_get_siginfo_type_p.
  1439. Move INF_STATE allocation later, pre-clear it. Initialize REGISTERS
  1440. using REGCACHE.
  1441. (restore_inferior_thread_state): New variables regcache and gdbarch.
  1442. Restore SIGINFO_DATA for matching GDBARCH. Restore REGISTERS using
  1443. REGCACHE. Free also SIGINFO_DATA.
  1444. 2010-09-24 Tom Tromey <tromey@redhat.com>
  1445. * dwarf2read.c (dw2_expand_symtabs_matching): Add missing
  1446. MAYBE_SWAPs.
  1447. (dw2_map_symbol_names): Likewise.
  1448. 2010-09-24 Sami Wagiaalla <swagiaal@redhat.com>
  1449. * valops.c (find_oload_champ_namespace_loop): replace incorrect
  1450. discard_cleanups do_cleanups.
  1451. 2010-09-24 Pedro Alves <pedro@codesourcery.com>
  1452. PR gdb/11842
  1453. * amd64-linux-nat.c (compat_siginfo_from_siginfo)
  1454. (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
  1455. si_code is < 0. Check for si_code == SI_TIMER before checking for
  1456. si_code < 0.
  1457. 2010-09-24 Pedro Alves <pedro@codesourcery.com>
  1458. * objfiles.h (ALL_OBJSECTIONS): Handle breaks in the inner loop.
  1459. 2010-09-22 Joel Brobecker <brobecker@adacore.com>
  1460. * ada-tasks.c (read_atcb): Do not compute the task ptid when
  1461. debugging a core file.
  1462. 2010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com>
  1463. Code cleanup.
  1464. * objfiles.c (allocate_objfile) <objfile->name != NULL>: Remove.
  1465. (free_objfile) <objfile->name != NULL>: Remove the conditional around
  1466. xfree.
  1467. * objfiles.h (struct objfile) <name>: New comment it is never NULL.
  1468. * python/py-auto-load.c (auto_load_new_objfile) <!objfile->name>:
  1469. Remove.
  1470. * python/py-objfile.c (objfpy_get_filename) <obj->objfile->name>
  1471. Remove the conditional.
  1472. * python/py-progspace.c (pspy_get_filename) <objfile->name>: Likewise.
  1473. 2010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com>
  1474. * main.c: Include objfiles.h.
  1475. (captured_main): New variable objfile. Call
  1476. load_auto_scripts_for_objfile for ALL_OBJFILES.
  1477. 2010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com>
  1478. * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: Add also
  1479. DW_TAG_constant.
  1480. 2010-09-22 Joel Brobecker <brobecker@adacore.com>
  1481. * dwarf2read.c (scan_partial_symbols): Add handling of
  1482. DW_TAG_constant DIEs.
  1483. (add_partial_symbol, load_partial_dies, new_symbol): Likewise.
  1484. 2010-09-22 Joel Brobecker <brobecker@adacore.com>
  1485. * configure.ac: Add support for --enable-gdbserver.
  1486. * configure: Regenerate.
  1487. 2010-09-22 Sami Wagiaalla <swagiaal@redhat.com>
  1488. PR C++/12028
  1489. * valops.c (find_oload_champ_namespace_loop): removed incorrect
  1490. 'old_cleanups' reassignment.
  1491. 2010-09-16 Jan Kratochvil <jan.kratochvil@redhat.com>
  1492. * charset.c (wchar_iterate) <EILSEQ>: Return any possibly converted
  1493. characters.
  1494. 2010-09-16 Phil Muldoon <pmuldoon@redhat.com>
  1495. PR mi/11407
  1496. * mi/mi-cmd-stack.c (list_args_or_locals): Catch exceptions from
  1497. read_var_value and common_val_print and print a warning.
  1498. 2010-09-15 Jan Kratochvil <jan.kratochvil@redhat.com>
  1499. * MAINTAINERS (GLOBAL MAINTAINERS) <Jan Kratochvil>: Move the entry to
  1500. keep the list in alphabetical order. Use longer e-mail address.
  1501. 2010-09-15 Tom Tromey <tromey@redhat.com>
  1502. * MAINTAINERS (GLOBAL MAINTAINERS): Add Jan Kratochvil.
  1503. 2010-09-15 Tom Tromey <tromey@redhat.com>
  1504. * charset.c (iconv_open): New define.
  1505. (iconv): Likewise.
  1506. (iconv_close): Likewise.
  1507. (phony_iconv_open): Add "phony_" prefix.
  1508. (phony_iconv_close): Likewise.
  1509. (phony_iconv): Likewise.
  1510. * gdb_wchar.h: Check _LIBICONV_VERSION, __STDC_ISO_10646__.
  1511. Change how INTERMEDIATE_ENCODING is defined.
  1512. 2010-09-15 Doug Evans <dje@google.com>
  1513. * dwarf2read.c (struct die_info): Fix comment.
  1514. 2010-09-15 Alan Modra <amodra@gmail.com>
  1515. PR 4606
  1516. * gcore.c (gcore_create_callback): Clear SEC_HAS_CONTENTS rather
  1517. than setting SEC_NEVER_LOAD on sections that need not be copied.
  1518. 2010-09-14 Tom Tromey <tromey@redhat.com>
  1519. * psympriv.h (add_psymbol_to_list, init_psymbol_list)
  1520. (start_psymtab_common, allocate_psymtab, discard_psymtab):
  1521. Declare.
  1522. * symfile.h (extend_psymbol_list): Remove.
  1523. (add_psymbol_to_list, init_psymbol_list, start_psymtab_common)
  1524. (allocate_psymtab, discard_psymtab): Move to psympriv.h.
  1525. * psymtab.c (extend_psymbol_list): Move earlier. Now static.
  1526. 2010-09-14 Jan Kratochvil <jan.kratochvil@redhat.com>
  1527. * dwarf2read.c (dw2_map_ada_symtabs): Remove the internal_error.
  1528. Update the comment.
  1529. 2010-09-14 Tom Tromey <tromey@redhat.com>
  1530. PR symtab/8399:
  1531. * dwarf2loc.c (locexpr_describe_location_piece): Don't call error
  1532. for unrecognized frame base expression.
  1533. 2010-09-14 Tom Tromey <tromey@redhat.com>
  1534. PR exp/11803:
  1535. * value.c (value_static_field): Use value_of_variable.
  1536. 2010-09-14 Pierre Muller <muller@ics.u-strasbg.fr>
  1537. * m32r-rom.c: Replace winsock.h with winsock2.h header.
  1538. * remote-m32r-sdi.c: Replace winsock.h by winsock2.h.
  1539. 2010-09-13 Sami Wagiaalla <swagiaal@redhat.com>
  1540. PR symtab/11992:
  1541. * c-exp.y (classify_name): Check is_a_member_of_this before returning
  1542. UNKNOWN_CPP_NAME.
  1543. 2010-09-13 Joel Brobecker <brobecker@adacore.com>
  1544. * NEWS: Add x86-lynxos to the list of platforms supported by
  1545. gdbserver.
  1546. 2010-09-13 Joel Brobecker <brobecker@adacore.com>
  1547. * NEWS: Announce GDBserver support for version 5.x of ppc-lynxos.
  1548. 2010-09-13 Tom Tromey <tromey@redhat.com>
  1549. * Makefile.in (HFILES_NO_SRCDIR): Add progspace.h.
  1550. 2010-09-13 H.J. Lu <hongjiu.lu@intel.com>
  1551. * i386-tdep.c (i386_ymm_type): Set type name to
  1552. builtin_type_vec256i.
  1553. 2010-09-12 Michael Snyder <msnyder@vmware.com>
  1554. * i386-tdep.c (i386_gdbarch_init): Fix typo in comments.
  1555. 2010-09-12 H.J. Lu <hongjiu.lu@intel.com>
  1556. * i386-tdep.c (i386_gdbarch_init): Fix typo in comments.
  1557. 2010-09-11 H.J. Lu <hongjiu.lu@intel.com>
  1558. * amd64-tdep.c (amd64_register_name): Removed.
  1559. (amd64_init_abi): Don't call set_gdbarch_register_name.
  1560. * i386-tdep.c (i386_ymmh_regnum_p): Make it static.
  1561. * i386-tdep.h (i386_ymmh_regnum_p): Removed.
  1562. 2010-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
  1563. Paul Bolle <pebolle@tiscali.nl>
  1564. Redirect also uiout and stdtarg{,err} in execute_command_to_string.
  1565. * cli-logging.c (struct saved_output_files) <targerr>: New.
  1566. (set_logging_redirect, pop_output_files, handle_redirections):
  1567. Redirect also gdb_stdtargerr.
  1568. * defs.h (struct ui_out, make_cleanup_ui_out_redirect_pop): New
  1569. declarations.
  1570. * event-top.c (gdb_setup_readline, gdb_disable_readline): Redirect
  1571. also gdb_stdtargerr.
  1572. * top.c (execute_command_to_string): Move make_cleanup_ui_file_delete
  1573. to the top. Redirect also gdb_stdlog, gdb_stdtarg and gdb_stdtargerr.
  1574. Use ui_out_redirect, register make_cleanup_ui_out_redirect_pop.
  1575. * tui/tui-io.c (tui_setup_io): Redirect also gdb_stdtargerr.
  1576. * utils.c (do_ui_out_redirect_pop, make_cleanup_ui_out_redirect_pop):
  1577. New functions.
  1578. 2010-09-10 Pierre Muller <muller@ics.u-strasbg.fr>
  1579. * hppa-tdep.c (unwind_command): Use host_address_to_string function
  1580. to display a host address.
  1581. * monitor.c (monitor_read_memory): Likewise.
  1582. * xtensa-tdep.c (xtensa_push_dummy_call): Likewise.
  1583. 2010-09-10 Pierre Muller <muller@ics.u-strasbg.fr>
  1584. * coffread.c (struct coff_symbol): Change c_value type from `long' to
  1585. `CORE_ADDRESS' as it might contain target addresses.
  1586. 2010-09-10 Pierre Muller <muller@ics.u-strasbg.fr>
  1587. * alpha-mdebug-tdep.c (find_proc_desc): Use SYMBOL_VALUE_BYTES macro
  1588. before cast to pointer to avoid warning.
  1589. 2010-09-09 Kevin Buettner <kevinb@redhat.com>
  1590. * v850-tdep.c (v850_gdbarch_init): Change the v850's `char'
  1591. type to be signed.
  1592. 2010-09-09 Ulrich Weigand <uweigand@de.ibm.com>
  1593. * dwarf2read.c (fixup_partial_die): Do not set dummy name for
  1594. anonymous class partial DIEs.
  1595. 2010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
  1596. * dwarf2read.c (dwarf2_compute_name): Check that the first
  1597. argument is a pointer.
  1598. 2010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
  1599. * dwarf2read.c (read_func_scope, read_structure_type)
  1600. (read_common_block): Check for a NULL return from new_symbol.
  1601. 2010-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
  1602. * dwarf2read.c (dwarf2_read_index): Return on no SEC_HAS_CONTENTS.
  1603. 2010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
  1604. * dwarf2read.c (read_structure_type): Move processing of
  1605. fields and member functions from here...
  1606. (process_structure_scope): ... to here.
  1607. 2010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
  1608. * gnu-v3-abi.c (gnuv3_print_method_ptr): Do not use
  1609. the domain type.
  1610. (gnuv3_make_method_ptr): Likewise.
  1611. 2010-09-08 Tom Tromey <tromey@redhat.com>
  1612. * breakpoint.c (create_breakpoint): Add missing _().
  1613. 2010-09-08 Doug Evans <dje@google.com>
  1614. * dwarf2-frame.h (dwarf2_frame_build_info): Delete, unused.
  1615. 2010-09-08 Tom Tromey <tromey@redhat.com>
  1616. Revert:
  1617. 2010-09-01 Tom Tromey <tromey@redhat.com>
  1618. * dwarf2read.c, gdbtypes.c, psymtab.c, symfile.h, symtab.c,
  1619. symtab.h: Revert earlier change.
  1620. 2010-09-09 Sami Wagiaalla <swagiaal@redhat.com>
  1621. * psymtab.c (add_psymbol_to_bcache): Initialize
  1622. obj_section.
  1623. memset psymbol.ginfo.value to 0.
  1624. 2010-09-06 Pedro Alves <pedro@codesourcery.com>
  1625. * infrun.c (resume): Extend comment on ignoring single-step
  1626. requests on vfork parents waiting for a vfork-done.
  1627. 2010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
  1628. Pedro Alves <pedro@codesourcery.com>
  1629. * corelow.c (core_open): Use target_signal_from_host if CORE_GDBARCH
  1630. is NULL.
  1631. * fork-child.c (startup_inferior) <resume_signal>: Use enum
  1632. target_signal type.
  1633. * linux-nat.c (linux_nat_resume): Use target_signal_to_host before
  1634. calling strsignal. Use enum target_signal type for saved_signo.
  1635. (linux_handle_extended_wait) <signo>: Use enum target_signal type.
  1636. (linux_nat_wait_1): Use enum target_signal type for signo. Use
  1637. target_signal_to_host before calling strsignal.
  1638. * remote-m32r-sdi.c (m32r_wait, m32r_detach): Replace 0 by
  1639. TARGET_SIGNAL_0.
  1640. 2010-09-06 Pedro Alves <pedro@codesourcery.com>
  1641. Jan Kratochvil <jan.kratochvil@redhat.com>
  1642. * common/signals.c (ANY): Remove.
  1643. (SET): No longer use ANY.
  1644. 2010-09-06 Yao Qi <yao@codesourcery.com>
  1645. * infrunc(resume): When inferior is waiting_for_vfork_done,
  1646. clear step and don't use displaced stepping.
  1647. 2010-09-04 Daniel Jacobowitz <dan@codesourcery.com>
  1648. * breakpoint.c (can_use_hardware_watchpoint): Handle the first
  1649. value specially.
  1650. 2010-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
  1651. Code cleanup - split print_stop_reason.
  1652. * infrun.c (enum inferior_stop_reason): Remove.
  1653. (print_stop_reason): Remove by splitting into ...
  1654. (print_exited_reason, print_signal_exited_reason)
  1655. (print_no_history_reason, print_signal_received_reason)
  1656. (print_end_stepping_range_reason): ... these new functions. Update
  1657. the preceding comment.
  1658. (handle_inferior_event): Change the calls to print_exited_reason,
  1659. print_signal_exited_reason, print_no_history_reason,
  1660. print_signal_received_reason, print_end_stepping_range_reason.
  1661. (handle_step_into_function, handle_step_into_function_backward):
  1662. Change the calls to print_end_stepping_range_reason.
  1663. 2010-09-03 Jan Kratochvil <jan.kratochvil@redhat.com>
  1664. * breakpoint.c (save_breakpoints): Use RETURN_MASK_ALL.
  1665. * cli-out.c: Include vec.h.
  1666. (cli_field_fmt, cli_spaces, cli_text, cli_message, cli_flush): New
  1667. variable stream, initialize it, use it.
  1668. (cli_redirect): New function comment. Replace the stream and
  1669. original_stream fields by the new streams field. Remove the
  1670. original_stream != NULL conditional, assert error on NULL instead.
  1671. (out_field_fmt, field_separator): New variable stream, initialize it, use it.
  1672. (cli_out_data_ctor): Assert non-NULL stream. Replace the stream and
  1673. original_stream fields by the new streams field.
  1674. (cli_out_set_stream): Replace the stream field by the new streams
  1675. field.
  1676. * cli-out.h: Include vec.h.
  1677. (ui_filep): New typedef, call DEF_VEC_P for it.
  1678. (struct cli_ui_out_data): Replace the stream and original_stream
  1679. fields by the new streams field.
  1680. * cli/cli-logging.c (set_logging_redirect): Call ui_out_redirect with
  1681. NULL first. Extend the comment.
  1682. (handle_redirections): Call ui_out_redirect with output.
  1683. * python/py-breakpoint.c (bppy_get_commands): Move ui_out_redirect
  1684. calls outside of the TRY_CATCH block.
  1685. 2010-09-03 Joel Brobecker <brobecker@adacore.com>
  1686. GDB 7.2 released.
  1687. 2010-09-02 Joel Brobecker <brobecker@adacore.com>
  1688. Back out the following change:
  1689. | 2010-06-29 Hui Zhu <teawater@gmail.com>
  1690. | * record.c (set_record_pic_cmdlist,
  1691. | show_record_pic_cmdlist): New variables.
  1692. | (set_record_pic_command,
  1693. | show_record_pic_command): New functions.
  1694. | (record_pic_function, record_pic_line, record_pic_enum,
  1695. | set_record_pic_type, record_pic_hide_nofunction,
  1696. | record_pic_hide_nosource, record_pic_hide_same): New variables.
  1697. | (record_pic_fputs): New function.
  1698. | (function_list, node_list, edge_list): New struct.
  1699. | (function_list, node_list, edge_list): New variables.
  1700. | (record_pic_cleanups, record_pic_node,
  1701. | record_pic_edge, cmd_record_pic): New functions.
  1702. | (_initialize_record): Add new commands for record pic.
  1703. 2010-09-02 Daniel Jacobowitz <dan@codesourcery.com>
  1704. * config.in, configure: Regenerated.
  1705. * configure.ac: Check for waitpid.
  1706. * ser-pipe.c (pipe_close): Wait for the program to exit.
  1707. 2010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
  1708. * cli/cli-logging.c: Include gdb_assert.h.
  1709. (set_logging_overwrite): New function.
  1710. (logging_redirect): New comment.
  1711. (logging_no_redirect_file, set_logging_redirect)
  1712. (pop_output_files) <logging_no_redirect_file>: New.
  1713. (handle_redirections) <!logging_redirect>: New variable
  1714. no_redirect_file. Remove file autoclose for tee_file_new. No longer
  1715. discard cleanup for the close of former OUTPUT. Set
  1716. LOGGING_NO_REDIRECT_FILE.
  1717. (handle_redirections) <logging_redirect>: gdb_assert
  1718. LOGGING_NO_REDIRECT_FILE.
  1719. (show_logging_command) <logging_redirect handling>: Adjust messages
  1720. for SAVED_FILENAME not NULL.
  1721. (_initialize_cli_logging): Install set_logging_overwrite and
  1722. set_logging_redirect.
  1723. 2010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
  1724. * iq2000-tdep.c (iq2000_scan_prologue): Initialize SAL.END.
  1725. 2010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
  1726. * Makefile.in (GDB_WARN_CFLAGS_NO_FORMAT): Convert it to the no- form.
  1727. (monitor.o): Replace $(INTERNAL_WARN_CFLAGS) by $(INTERNAL_CFLAGS) and
  1728. add $(GDB_WARN_CFLAGS_NO_FORMAT).
  1729. (printcmd.o): Replace $(INTERNAL_CFLAGS_BASE) by $(INTERNAL_CFLAGS).
  1730. 2010-09-02 Yao Qi <yao@codesourcery.com>
  1731. * linux-nat.c (status_to_str): Use WTERMSIG to extract the signal
  1732. number from a WIFSIGNALED status.
  1733. 2010-09-01 Tom Tromey <tromey@redhat.com>
  1734. * symtab.h (lookup_type_symbol): Declare.
  1735. * symtab.c (lookup_symbol_in_language_full): Rename from
  1736. lookup_symbol_in_language. Add 'for_type' argument.
  1737. (lookup_symbol_in_language): New function.
  1738. (lookup_type_symbol): Likewise.
  1739. (lookup_symbol_aux): Add 'for_type' argument.
  1740. (match_symbol_aux): New function.
  1741. (lookup_symbol_aux_symtabs): Use expand_one_symtab_matching.
  1742. (match_transparent_type): New function.
  1743. (basic_lookup_transparent_type): Use expand_one_symtab_matching.
  1744. * symfile.h (struct quick_symbol_functions)
  1745. <pre_expand_symtabs_matching>: Remove.
  1746. <expand_one_symtab_matching>: New field.
  1747. * psymtab.c (expand_one_symtab_matching_psymtabs): New function.
  1748. (pre_expand_symtabs_matching_psymtabs): Remove.
  1749. (psym_functions): Update.
  1750. * gdbtypes.c (lookup_typename): Use lookup_type_symbol.
  1751. * dwarf2read.c (dw2_lookup_symbol): Update comment.
  1752. (dw2_pre_expand_symtabs_matching): Remove.
  1753. (dw2_expand_one_symtab_matching): New function.
  1754. (dwarf2_gdb_index_functions): Update.
  1755. 2010-09-01 Joel Brobecker <brobecker@adacore.com>
  1756. * NEWS: Add entry announcing GDBserver support on powerpc-lynxos.
  1757. 2010-09-01 Marc Khouzam <marc.khouzam@ericsson.com>
  1758. * mi/mi-main.c (mi_cmd_list_target_features): Add `reverse'
  1759. as a feature reported by -list-target-features.
  1760. 2010-09-01 Joel Brobecker <brobecker@adacore.com>
  1761. * features/Makefile (WHICH): Add rs6000/powerpc-32.
  1762. (powerpc-32.o, powerpc-32.c): New rules.
  1763. (clean): Also remove powerpc-32.c.
  1764. * regformats/rs6000/powerpc-32.dat: Generate.
  1765. 2010-08-31 Sami Wagiaalla <swagiaal@redhat.com>
  1766. * symfile.c (reread_symbols): Use psymbol_bcache_free, and
  1767. psymbol_bcache_init.
  1768. * psymtab.h (psymbol_bcache_init): New function prototype.
  1769. (psymbol_bcache_free): New function prototype.
  1770. (psymbol_bcache_get_bcache): New function prototype.
  1771. * psymtab.c (psymbol_bcache_init): New function.
  1772. (psymbol_bcache_free): New function.
  1773. (psymbol_bcache_full): New function.
  1774. (psymbol_bcache_get_bcache): New function.
  1775. (add_psymbol_to_bcache): use psymbol_bcache_full.
  1776. * objfiles.h (psymbol_cache): Change type of psymbol_cache to
  1777. psymbol_bcache.
  1778. * symmisc.c (print_symbol_bcache_statistics): Updated.
  1779. (print_objfile_statistics): Updated.
  1780. * objfiles.c (allocate_objfile): Use psymbol_bcache_init to initialize
  1781. psymbol_cache.
  1782. (free_objfile): Use psymbol_bcache_free.
  1783. 2010-08-31 Tom Tromey <tromey@redhat.com>
  1784. PR c++/11961:
  1785. * dwarf2read.c (new_symbol_full) <DW_TAG_template_type_param>:
  1786. Don't set TYPE_NAME on the type.
  1787. 2010-08-31 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
  1788. * infrun.c (set_exec_direction_func): Error out if target does not
  1789. support reverse execution.
  1790. 2010-08-31 Jan Kratochvil <jan.kratochvil@redhat.com>
  1791. Make linux_get_siginfo_type `type *' unique.
  1792. * linux-tdep.c (linux_gdbarch_data_handle, struct linux_gdbarch_data)
  1793. (init_linux_gdbarch_data, get_linux_gdbarch_data): New.
  1794. (linux_get_siginfo_type): New variable linux_gdbarch_data. Initialize
  1795. it. Use linux_gdbarch_data->siginfo_type as a persistent storage.
  1796. (_initialize_linux_tdep): New.
  1797. 2010-08-31 Jan Kratochvil <jan.kratochvil@redhat.com>
  1798. Code cleanup.
  1799. * defs.h (find_memory_region_ftype): New typedef.
  1800. (exec_set_find_memory_regions): Use it.
  1801. * exec.c (exec_set_find_memory_regions): Use find_memory_region_ftype.
  1802. * fbsd-nat.c (fbsd_find_memory_regions): Likewise.
  1803. * gcore.c (objfile_find_memory_regions): Likewise.
  1804. * gnu-nat.c (gnu_find_memory_regions): Likewise.
  1805. * linux-nat.c (linux_nat_find_memory_regions): Likewise.
  1806. * procfs.c (iterate_over_mappings_cb_ftype): Remove.
  1807. (iterate_over_mappings): Rename iterate_over_mappings_cb_ftype to
  1808. find_memory_region_ftype.
  1809. (insert_dbx_link_bpt_in_region): Likewise.
  1810. (iterate_over_mappings): Likewise. Drop the comment part about the
  1811. function prototype.
  1812. (find_memory_regions_callback): Use find_memory_region_ftype.
  1813. (proc_find_memory_regions): Likewise.
  1814. (info_mappings_callback): Rename iterate_over_mappings_cb_ftype to
  1815. find_memory_region_ftype.
  1816. * target.c (dummy_find_memory_regions): Use find_memory_region_ftype.
  1817. * target.h (struct target_ops) <to_find_memory_regions>: Likewise.
  1818. 2010-08-31 Sami Wagiaalla <swagiaal@redhat.com>
  1819. * psymtab.c (add_psymbol_to_bcache): Remove 'static' from
  1820. 'static partial_symbol psymbol'.
  1821. (psymbol_hash): New function.
  1822. (psymbol_compare): New function.
  1823. * bcache.c (hash_continue): New.
  1824. (hash): Use hash_continue.
  1825. * bcache.c: Add hash_function and compare_function
  1826. pointers to bcache struct.
  1827. (bcache_full): Use bcache->hash_function, and
  1828. bcache->compare_function.
  1829. (bcache_compare): New function.
  1830. (bcache_xmalloc): Take hash_function and
  1831. compare_function arguments and initialize the
  1832. bcach's pointers.
  1833. Updated comment.
  1834. * objfiles.c (allocate_objfile): Updated.
  1835. * symfile.c (reread_symbols): Updated.
  1836. * python/py-type.c (typy_richcompare): Updated.
  1837. 2010-08-30 Andre Poenitz <andre.poenitz@nokia.com>
  1838. Tom Tromey <tromey@redhat.com>
  1839. PR python/11792:
  1840. * python/py-value.c (valpy_get_dynamic_type): New function.
  1841. (value_object_getset): Add "dynamic_type".
  1842. (valpy_get_type): Fail on error.
  1843. 2010-08-30 Yao Qi <yao@codesourcery.com>
  1844. * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): New.
  1845. (arm_linux_syscall_next_pc): New.
  1846. (arm_linux_copy_svc): Use arm_linux_sigreturn_return_addr instead.
  1847. (arm_linux_init_abi): Initialize syscall_next_pc.
  1848. * arm-tdep.c (thumb_get_next_pc_raw): Get next pc of SWI in Thumb mode.
  1849. (arm_get_next_pc_raw): Get next pc of SWI in ARM mode.
  1850. * arm-tdep.h (struct gdbarch_tdep): Add a function pointer syscall_next_pc.
  1851. Declare arm_frame_is_thumb.
  1852. 2010-08-30 Jan Kratochvil <jan.kratochvil@redhat.com>
  1853. Code cleanup.
  1854. * breakpoint.c (bpstat_alloc): Remove unused prototype.
  1855. (bpstat_alloc): Change parameters cbs to bs_link_pointer. Adjust the
  1856. code.
  1857. (bpstat_stop_status): Change root_bs into bs_head and bs_link. Adjust
  1858. calls of bpstat_alloc. Remove explicit bs chain termination.
  1859. 2010-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
  1860. Code cleanup.
  1861. * linux-nat.c (pull_pid_from_list): Rename status to statusp.
  1862. (my_waitpid): Likewise.
  1863. 2010-08-27 Doug Evans <dje@google.com>
  1864. * dwarf2read.c (dw2_require_line_header): Read from .debug_types
  1865. as appropriate.
  1866. 2010-08-27 Tom Tromey <tromey@redhat.com>
  1867. * dwarf2read.c (dwarf2_attach_fields_to_type): Don't set
  1868. TYPE_FIELD_IGNORE_BITS.
  1869. 2010-08-27 Doug Evans <dje@google.com>
  1870. * dwarf2read.c (dwarf2_per_objfile_free): Reorganize buffers to match
  1871. the order they're defined in. munmap .debug_types buffer.
  1872. 2010-08-26 Doug Evans <dje@google.com>
  1873. * dwarf2read.c (dw2_require_full_path): Rename parameter cu to per_cu.
  1874. (dw2_forget_cached_source_info): Rename local cu to per_cu.
  1875. (dw2_lookup_symtab, dw2_do_expand_symtabs_matching): Ditto.
  1876. (dw2_print_stats, dw2_expand_all_symtabs): Ditto.
  1877. (dw2_expand_symtabs_with_filename, dw2_find_symbol_file): Ditto.
  1878. (dw2_find_symbol_file, dw2_expand_symtabs_matching): Ditto.
  1879. (dw2_map_symbol_filenames, dwarf2_initialize_objfile): Ditto.
  1880. (dwarf2_free_objfile, write_one_signatured_type): Ditto.
  1881. (write_psymtabs_to_index): Ditto.
  1882. 2010-08-26 Pedro Alves <pedro@codesourcery.com>
  1883. * NEWS: Mention libthread_db debugging with core files.
  1884. 2010-08-26 Doug Evans <dje@google.com>
  1885. * dwarf2read.c (dwarf2_build_include_psymtabs): Remove unnecessary
  1886. forward decl. Pass pst->dirname to dwarf_decode_lines.
  1887. (psymtab_include_file_name): New function.
  1888. (dwarf_decode_lines): Call it. Update comments.
  1889. 2010-08-25 Pedro Alves <pedro@codesourcery.com>
  1890. * dwarf2read.c (inherit_abstract_dies): Handle origin die's
  1891. compilation unit being different from target die's.
  1892. 2010-08-24 Doug Evans <dje@google.com>
  1893. PR symtab/11942
  1894. * dwarf2read.c (dwarf2_per_objfile): New members debug_info_type_hash,
  1895. debug_types_type_hash.
  1896. (dwarf2_cu, dwarf2_per_cu_data): Delete member type_hash.
  1897. All uses updated.
  1898. (lookup_die_type): Renamed from tag_type_to_tag. First look in
  1899. appropriate type_hash table. All callers updated.
  1900. (allocate_signatured_type_table): Renamed from
  1901. allocate_signatured_type_hash_table. All callers updated.
  1902. (create_signatured_type_table_from_index): Renamed from
  1903. create_signatured_type_hash_from_index. All callers updated.
  1904. (read_die_type): Add comment. Move actual reading to ...
  1905. (read_die_type_1): ... here. New function.
  1906. (follow_die_ref_or_sig): Tweak comment.
  1907. (set_die_type): Rewrite to use appropriate choice of
  1908. debug_info_type_hash or debug_types_type_hash.
  1909. (get_die_type_at_offset): New function.
  1910. (get_die_type): Call it.
  1911. 2010-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
  1912. * python/py-type.c (typy_richcompare): Initialize worklist.
  1913. 2010-08-24 Daniel Jacobowitz <dan@codesourcery.com>
  1914. Kazu Hirata <kazu@codesourcery.com>
  1915. Jonathan Larmour <jifl@eCosCentric.com>
  1916. * arm-tdep.c: Include features/arm-with-m.c.
  1917. (arm_psr_thumb_bit): New. Update all uses of CPSR_T to
  1918. call this function.
  1919. (arm_pc_is_thumb): Add a gdbarch argument. Update all callers.
  1920. Check is_m after force-mode.
  1921. (arm_gdbarch_init): Check the binary before the target description.
  1922. Add check for M profile attribute. If we have an M-profile device,
  1923. but no target register description, use arm-with-m. Recognize the
  1924. new org.gnu.gdb.arm.m-profile feature and its xpsr register.
  1925. (_initialize_arm_tdep): Call initialize_tdesc_arm_with_m.
  1926. * arm-tdep.h (XPSR_T): Define.
  1927. (struct gdbarch_tdep): Add is_m member.
  1928. * features/arm-m-profile.xml, features/arm-with-m.c,
  1929. features/arm-with-m.xml: New files.
  1930. 2010-08-23 Doug Evans <dje@google.com>
  1931. * dwarf2read.c (read_structure_type): Add comment.
  1932. (read_enumeration_type): Add comment.
  1933. (process_enumeration_scope): Move definition of some locals
  1934. closer to their use.
  1935. (read_namespace_type): Add comment.
  1936. (set_die_type): Fix typo in comment.
  1937. 2010-08-23 Tom Tromey <tromey@redhat.com>
  1938. PR python/11145:
  1939. * python/py-value.c: Include expression.h.
  1940. (valpy_do_cast): New function.
  1941. (valpy_cast): Use it.
  1942. (valpy_dynamic_cast): New function.
  1943. (valpy_reinterpret_cast): Likewise.
  1944. (value_object_methods): Add dynamic_cast, reinterpret_cast.
  1945. 2010-08-23 Tom Tromey <tromey@redhat.com>
  1946. PR python/11391:
  1947. * python/py-value.c (valpy_nonzero): Don't throw error for other
  1948. Value types.
  1949. 2010-08-23 Tom Tromey <tromey@redhat.com>
  1950. PR python/10676:
  1951. * python/py-type.c: Include bcache.h, vec.h.
  1952. (struct type_equality_entry): New.
  1953. (compare_strings): New function.
  1954. (check_types_equal): Likewise.
  1955. (check_types_worklist): Likewise.
  1956. (typy_richcompare): Likewise.
  1957. (type_object_type): Set tp_richcompare field.
  1958. 2010-08-23 Tom Tromey <tromey@redhat.com>
  1959. PR python/10953:
  1960. * python/py-type.c (typy_fields): Call check_typedef.
  1961. (typy_template_argument): Add TRY_CATCH.
  1962. 2010-08-23 Tom Tromey <tromey@redhat.com>
  1963. PR python/11915:
  1964. * python/py-type.c (typy_array): New function.
  1965. (type_object_methods): Add "array".
  1966. 2010-08-20 Pedro Alves <pedro@codesourcery.com>
  1967. * python/python.c: Include "serial.h".
  1968. (gdbpy_event_fds): Change type to `struct serial *' a array from
  1969. int array.
  1970. (gdbpy_run_events): Change parameters. Use serial_readchar in
  1971. place of read.
  1972. (gdbpy_post_event): Use serial_write in place of write.
  1973. (gdbpy_initialize_events): Use serial_pipe instead of pipe, and
  1974. serial_async in place of add_file_handler.
  1975. 2010-08-20 Pedro Alves <pedro@codesourcery.com>
  1976. * serial.h (gdb_pipe, serial_pipe): Declare.
  1977. * serial.c (serial_interface_lookup): Take a const char pointer.
  1978. (serial_fdopen): Rename to ...
  1979. (serial_fdopen_ops): ... this. Add an OPS parameter and use it.
  1980. Call the OPS' fdopen function if there is one.
  1981. (serial_fdopen): Rewrite as wrapper to serial_fdopen_ops.
  1982. (serial_pipe): New.
  1983. (struct serial_ops) <fdopen>: New field.
  1984. * ser-mingw.c (free_pipe_state):
  1985. (free_pipe_state): Close output on non-pex pipes.
  1986. (pipe_windows_fdopen): New.
  1987. (gdb_pipe): New.
  1988. (_initialize_ser_windows): Register pipe_windows_fdopen.
  1989. * ser-go32.c (gdb_pipe): New.
  1990. * ser-pipe.c (pipe_close): Close file descriptor even if there's
  1991. no state pointer.
  1992. (pipe_ops): Delete.
  1993. (gdb_pipe): New.
  1994. 2010-08-20 Keith Seitz <keiths@redhat.com>
  1995. PR symtab/11465:
  1996. * dwarf2read.c (struct delayed_method_info): New struct.
  1997. (struct dwarf2_cu): Add vector method_list.
  1998. (scan_partial_symbols): Count methods for union, class, structure,
  1999. and interface types.
  2000. (add_to_method_list): New function.
  2001. (free_delayed_list): New function.
  2002. (compute_delayed_physnames): New function.
  2003. (process_full_comp_unit): Make a cleanup for the CU's delayed
  2004. physname list, compute the delayed physnames, and free the
  2005. the list.
  2006. (dwarf2_add_member_fn): For C++ and Java, delay the computation
  2007. of the physname until after the CU is read.
  2008. * dwarf2read.c (read_structure_type): Check if the current
  2009. DIE's type was already completed after dwarf2_full_name
  2010. was called.
  2011. 2010-08-19 Stan Shebs <stan@codesourcery.com>
  2012. * NEWS: Mention some additional changes.
  2013. 2010-08-19 Tom Tromey <tromey@redhat.com>
  2014. * Makefile.in (install-python): Add DESTDIR.
  2015. 2010-08-19 Doug Evans <dje@google.com>
  2016. PR exp/11926
  2017. * parser-defs.h (parse_float, parse_c_float): Declare.
  2018. * parse.c (parse_float, parse_c_float): New function.
  2019. * c-exp.y (parse_number): Call parse_c_float.
  2020. * objc-exp.y (parse_number): Ditto.
  2021. * p-exp.y (parse_number): Ditto. Use ANSI/ISO-style definition.
  2022. * jv-exp.y (parse_number): Call parse_float, fix suffix handling.
  2023. 2010-08-19 Joel Brobecker <brobecker@adacore.com>
  2024. * psymtab.c (map_symbol_filenames_psymtab): Call FUN with
  2025. the arguments in the correct order.
  2026. * symtab.c (maybe_add_partial_symtab_filename): Declare
  2027. the arguments in the correct order.
  2028. 2010-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
  2029. * varobj.c (varobj_create): Replace variable old_fi with old_id,
  2030. initialize it by null_frame_id, wrap its usage by get_frame_id,
  2031. frame_id_p and frame_find_by_id.
  2032. 2010-08-18 Tom Tromey <tromey@redhat.com>
  2033. PR python/11900:
  2034. * configure: Rebuild.
  2035. * configure.ac: Add install-python to CONFIG_INSTALL.
  2036. * Makefile.in (install-python): New.
  2037. 2010-08-18 Doug Evans <dje@google.com>
  2038. * gdb_assert.h (gdb_assert_not_reached): New macro.
  2039. (gdb_assert_fail): Fix typo in comment.
  2040. * avr-tdep.c (avr_return_value): Use gdb_assert_not_reached instead of
  2041. gdb_assert (0).
  2042. * darwin-nat.c (darwin_check_new_threads): Ditto.
  2043. * dwarf2read.c (dwarf2_get_section_info): Ditto.
  2044. (munmap_section_buffer): Ditto.
  2045. * m32c-tdep.c (make_types): Ditto.
  2046. (m32c_decode_srcdest4, m32c_decode_sd23, m32c_frame_base): Ditto.
  2047. * macroexp.c (get_character_constant): Ditto.
  2048. (get_string_literal): Ditto.
  2049. * mep-tdep.c (mep_pseudo_cr_size): Ditto.
  2050. (mep_pseudo_cr_index, mep_register_type): Ditto.
  2051. (mep_pseudo_register_read, mep_pseudo_register_write): Ditto.
  2052. (mep_get_insn, mep_analyze_prologue): Ditto.
  2053. * objfiles.c (qsort_cmp): Ditto.
  2054. * prologue-value.c (pv_is_identical): Ditto.
  2055. * record.c (record_get_loc): Ditto.
  2056. * value.c (value_static_field): Ditto.
  2057. * xtensa-tdep.c (call0_track_op): Ditto.
  2058. 2010-08-18 Tom Tromey <tromey@redhat.com>
  2059. PR symtab/11919:
  2060. * gdbtypes.c (lookup_struct_elt_type): Clean up error emission.
  2061. * parse.c (parse_field_expression): Use RETURN_MASK_ERROR. Move
  2062. name-copying lower. Document exception behavior.
  2063. * completer.c (expression_completer): Catch exceptions from
  2064. parse_field_expression.
  2065. 2010-08-18 Pedro Alves <pedro@codesourcery.com>
  2066. PR corefile/8210
  2067. * linux-thread-db.c (add_thread_db_info): Skip glibc/BZ5983
  2068. workaround on core files.
  2069. (try_thread_db_load_1): Don't try enabling thread event reporting
  2070. on core files.
  2071. (thread_db_load): Allow thread_db on core files.
  2072. (attach_thread): Don't check thread signals on core files, nor try
  2073. really attaching to the thread, nor enabling thread event event
  2074. reporting.
  2075. (thread_db_detach): Don't try disabing thread event reporting or
  2076. removing thread event breakpoints when debugging a core file.
  2077. (find_new_threads_callback): Don't try enabling thread event
  2078. reporting on core files.
  2079. (thread_db_find_new_threads_2): Don't look for a stopped lwp when
  2080. debugging a core file.
  2081. (thread_db_find_new_threads): Don't update thread
  2082. cores (processors) when debugging a core (dump).
  2083. 2010-08-18 Pedro Alves <pedro@codesourcery.com>
  2084. PR corefile/8210
  2085. * corelow.c (add_to_thread_list): Don't use
  2086. gdbarch_core_reg_section_encodes_pid. Use bfd_core_file_pid.
  2087. (get_core_register_section): Don't use
  2088. gdbarch_core_reg_section_encodes_pid.
  2089. * gdbarch.sh (core_reg_section_encodes_pid): Delete.
  2090. * gdbarch.h, gdbarch.c: Regenerate.
  2091. * amd64-sol2-tdep.c (amd64_sol2_init_abi): Don't set
  2092. gdbarch_core_reg_section_encodes_pid.
  2093. * i386-sol2-tdep.c (i386_sol2_init_abi): Ditto.
  2094. * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Ditto.
  2095. * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto.
  2096. 2010-08-18 Yao Qi <yao@codesourcery.com>
  2097. * MAINTAINERS : Add myself under Write After Approval.
  2098. 2010-08-17 Tom Tromey <tromey@redhat.com>
  2099. * NEWS: Mention template parameter support.
  2100. 2010-08-17 Pedro Alves <pedro@codesourcery.com>
  2101. PR breakpoints/11371
  2102. * breakpoint.c (decref_bp_location): Assert the reference count is
  2103. sane.
  2104. 2010-08-17 Pedro Alves <pedro@codesourcery.com>
  2105. PR breakpoints/11371
  2106. * breakpoint.c (breakpoint_init_inferior): Decrement the
  2107. location's reference count instead of deleting right away.
  2108. (bpstat_free): Decrement the location's reference count. Make
  2109. static.
  2110. (bpstat_copy): Increment the location's reference count.
  2111. (bpstat_find_breakpoint): Adjust.
  2112. (bpstat_num): Adjust.
  2113. (print_it_typical): Adjust. Use the breakpoint pointer in the
  2114. bpstat instead of the location's owner.
  2115. (bpstat_alloc): Remove const qualifier from the 'bl' parameter.
  2116. Adjust to record the location's owner in the bpstat.
  2117. (watchpoint_check): Use the breakpoint pointer in the bpstat
  2118. instead of the location's owner.
  2119. (bpstat_check_breakpoint_conditions): Don't handle
  2120. bp_watchpoint_scope here. Use the breakpoint pointer in the
  2121. bpstat instead of the location's owner.
  2122. (bpstat_stop_status): Defer inferior function calls to after
  2123. building the bpstat list. Handle bp_watchpoint_scope here. Use
  2124. the breakpoint pointer in the bpstat instead of the location's
  2125. owner.
  2126. (bpstat_what): Use the breakpoint pointer in the bpstat instead of
  2127. the location's owner.
  2128. (free_bp_location): Don't walk bpstats clearing locations.
  2129. (incref_bp_location): New.
  2130. (decref_bp_location): New.
  2131. (breakpoint_auto_delete): Use the breakpoint pointer in the bpstat
  2132. instead of the location's owner.
  2133. (update_global_location_list): Clear the location's owner, and
  2134. decrement the location's reference count instead of deleting it
  2135. right away.
  2136. (breakpoint_retire_moribund): Decrement the location's reference
  2137. count instead of deleting it right away.
  2138. (bpstat_remove_bp_location): Delete.
  2139. (bpstat_remove_breakpoint): New.
  2140. (bpstat_remove_bp_location_callback): Delete.
  2141. (bpstat_remove_breakpoint_callback): New.
  2142. (delete_breakpoint): Iterate over all threads' stop_bpstat's
  2143. clearing references to the breakpoint that is being deleted.
  2144. * breakpoint.h (struct bp_location) <refc>: New field.
  2145. <owner>: Update comments.
  2146. (bpstat_free): Delete declaration.
  2147. (struct bpstats): Change the type of the breakpoint_at field to
  2148. struct breakpoint point, from struct bp_location pointer. Add new
  2149. field bp_location_at.
  2150. 2010-08-16 Tom Tromey <tromey@redhat.com>
  2151. * NEWS: Fix typo.
  2152. 2010-08-16 Tom Tromey <tromey@redhat.com>
  2153. * NEWS: Mention watch -location.
  2154. 2010-08-16 Jan Kratochvil <jan.kratochvil@redhat.com>
  2155. * breakpoint.c (update_watchpoint): Add source empty line. Prefer
  2156. EXP_STRING_REPARSE to EXP_STRING.
  2157. (watch_command_1): Set also EXP_STRING_REPARSE.
  2158. (delete_breakpoint): Free also EXP_STRING_REPARSE.
  2159. * breakpoint.h (struct breakpoint): New field exp_string_reparse.
  2160. Update comment for exp_string.
  2161. 2010-08-16 Tom Tromey <tromey@redhat.com>
  2162. * value.c (release_value): Clear 'next' pointer.
  2163. * breakpoint.c (watch_command_1): Add 'just_location' argument.
  2164. (watch_command_wrapper): Update.
  2165. (watch_maybe_just_location): New function.
  2166. (watch_command): Update.
  2167. (rwatch_command_wrapper): Update.
  2168. (rwatch_command): Update.
  2169. (awatch_command_wrapper): Update.
  2170. (awatch_command): Update.
  2171. (check_for_argument): New function.
  2172. (_initialize_breakpoint): Update help text.
  2173. 2010-08-14 Ulrich Weigand <uweigand@de.ibm.com>
  2174. * arm-tdep.c (arm_push_dummy_call): Handle pointers to
  2175. typedef'ed function types correctly.
  2176. 2010-08-13 Tom Tromey <tromey@redhat.com>
  2177. * python/python-internal.h (gdbpy_get_hook_function): Don't
  2178. declare.
  2179. 2010-08-13 Jan Kratochvil <jan.kratochvil@redhat.com>
  2180. * cli/cli-logging.c (logging_overwrite, logging_redirect): Make them
  2181. static.
  2182. 2010-08-13 Ken Werner <ken.werner@de.ibm.com>
  2183. * python/python.c (gdbpy_solib_name): Remove the const qualifier of
  2184. the format strings to be compatible with Python 2.4.
  2185. 2010-08-13 Vladimir Prus <vladimir@codesourcery.com>
  2186. Easier and more stubborn MI memory read commands.
  2187. * mi/mi-cmds.c (mi_cmds): Register data-read-memory-bytes
  2188. and data-write-memory-bytes.
  2189. * mi/mi-cmds.h (mi_cmd_data_read_memory_bytes)
  2190. (mi_cmd_data_write_memory_bytes): New.
  2191. * mi/mi-main.c (mi_cmd_data_read_memory): Use regular target_read.
  2192. (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory_bytes):
  2193. New.
  2194. (mi_cmd_list_features): Add "data-read-memory-bytes" feature.
  2195. * target.c (target_read_until_error): Remove.
  2196. (read_whatever_is_readable, free_memory_read_result_vector)
  2197. (read_memory_robust): New.
  2198. * target.h (target_read_until_error): Remove.
  2199. (struct memory_read_result, free_memory_read_result_vector)
  2200. (read_memory_robust): New.
  2201. 2010-08-13 Hui Zhu <teawater@gmail.com>
  2202. * dwarf2read.c (load_partial_comp_unit): Initialize free_cu_cleanup.
  2203. (read_comp_unit): Initialize back_to.
  2204. 2010-08-12 Daniel Jacobowitz <dan@codesourcery.com>
  2205. Pedro Alves <pedro@codesourcery.com>
  2206. * dwarf2read.c: Include "c-lang.h" and "valprint.h".
  2207. (struct dwarf2_per_objfile) <reading_partial_symbols>: New field.
  2208. (struct partial_die_info) <has_template_arguments>: New field.
  2209. <num_attrs>: Change type to unsigned char.
  2210. <building_fullname>: New field.
  2211. (dwarf2_build_psymtabs_hard): Set reading_partial_symbols. Only
  2212. allocate a CU if we don't have one already. Add a cleanup for the
  2213. CU.
  2214. (partial_die_full_name): Handle template arguments not in
  2215. DW_AT_name.
  2216. (dwarf2_psymtab_to_symtab): Clear reading_partial_symbols.
  2217. (load_full_comp_unit): Only allocate a CU if we don't have one
  2218. already.
  2219. (do_ui_file_peek_last): New.
  2220. (dwarf2_compute_name): Handle template parameters not in
  2221. DW_AT_name.
  2222. (read_comp_unit): Read and free abbrevs if not read yet.
  2223. (load_partial_dies): Handle template arguments not in DW_AT_name.
  2224. (find_partial_die): If we have a CU, but no a partial dies yet,
  2225. also read in the CU.
  2226. (dwarf2_const_value_attr): New, abstracted out from
  2227. dwarf2_const_value.
  2228. (dwarf2_const_value, dwarf2_const_value_data): Adjust to use
  2229. dwarf2_const_value_attr.
  2230. (determine_prefix): Detect and break loops created by RCVT's debug
  2231. info.
  2232. (maybe_queue_comp_unit): Bail out early if reading partial
  2233. symbols.
  2234. (follow_die_offset): Load full CU if we have no dies.
  2235. * dwarf2loc.c (dwarf2_evaluate_loc_desc): Make public.
  2236. * dwarf2loc.h (dwarf2_evaluate_loc_desc): Declare.
  2237. 2010-08-11 Tom Tromey <tromey@redhat.com>
  2238. Phil Muldoon <pmuldoon@redhat.com>
  2239. * python/python.c (gdbpy_run_events): New function.
  2240. (gdbpy_post_event): Likewise.
  2241. (gdbpy_initialize_events): Likewise.
  2242. (_initialize_python): Call gdbpy_initialize_events.
  2243. 2010-08-11 Ken Werner <ken.werner@de.ibm.com>
  2244. * valarith.c (vector_binop): New function.
  2245. (scalar_binop): Likewise.
  2246. (value_binop): Call scalar_binop or vector_binop depending on the types.
  2247. * eval.c (ptrmath_type_p): Return 0 in case of TYPE_VECTOR.
  2248. (evaluate_subexp_with_coercion): Add vector check to not convert vectors
  2249. to pointers.
  2250. * value.c (coerce_array): Add vector check to not coerce vectors.
  2251. 2010-08-11 Brad Roberts <braddr@puremagic.com>
  2252. * d-lang.c (extract_identifiers): Handle multiple digits.
  2253. 2010-08-11 Jan Kratochvil <jan.kratochvil@redhat.com>
  2254. Code cleanup.
  2255. * dummy-frame.c (dummy_frame_unwinder): Remove its static qualifier.
  2256. Rename to dummy_frame_unwind.
  2257. (dummy_frame_unwind): Remove.
  2258. * dummy-frame.h (dummy_frame_unwind): Reference directly the struct.
  2259. * frame-unwind.c (frame_unwind_init): Use address of
  2260. dummy_frame_unwind and inline_frame_unwind.
  2261. * frame.c (create_sentinel_frame): Use address of
  2262. sentinel_frame_unwind.
  2263. * inline-frame.c (inline_frame_unwinder): Rename to
  2264. inline_frame_unwind.
  2265. (inline_frame_unwind): Remove.
  2266. * inline-frame.h (inline_frame_unwind): Reference directly the struct.
  2267. * sentinel-frame.c (sentinel_frame_unwinder): Rename to
  2268. sentinel_frame_unwind.
  2269. (sentinel_frame_unwind): Remove.
  2270. * sentinel-frame.h (sentinel_frame_unwind): Reference directly the
  2271. struct.
  2272. 2010-08-11 Jan Kratochvil <jan.kratochvil@redhat.com>
  2273. Code cleanup.
  2274. * frame-unwind.c (frame_unwind_find_by_frame): Remove the return type
  2275. and returned value. New comment from frame-unwind.h.
  2276. * frame-unwind.h (frame_unwind_find_by_frame): Remove the return type.
  2277. Extend the comment.
  2278. * frame.c (get_frame_id, frame_unwind_register_value)
  2279. (create_new_frame, get_prev_frame_1, frame_unwinder_is)
  2280. (get_frame_type, frame_unwind_arch): Do not use the return value of
  2281. frame_unwind_find_by_frame.
  2282. 2010-08-11 Phil Muldoon <pmuldoon@redhat.com>
  2283. Thiago Jung Bauermann <bauerman@br.ibm.com>
  2284. Tom Tromey <tromey@redhat.com>
  2285. * python/python.c (gdbpy_solib_address): New function.
  2286. (gdbpy_decode_line): Likewise.
  2287. 2010-08-10 Tom Tromey <tromey@redhat.com>
  2288. Revert gdb-add-index addition:
  2289. * Makefile.in (install-only): Don't install gdb-add-index.
  2290. * gdb-add-index.sh: Remove.
  2291. 2010-08-09 Kevin Buettner <kevinb@redhat.com>
  2292. * remote-sim.c (gdbsim_xfer_inferior_memory): Replace
  2293. `target_has_execution' check with `to_has_memory' check.
  2294. (gdbsim_has_all_memory, gdbsim_has_memory): New functions.
  2295. (init_gdbsym_ops): Initialize relevant fields of `gdbsim_ops'
  2296. with `gdbsim_has_all_memory' and `gdbsim_has_memory'.
  2297. 2010-08-09 Kevin Buettner <kevinb@redhat.com>
  2298. * remote-sim.c (program_loaded, gdbsim_desc, remote_sim_ptid)
  2299. (resume_siggnal, resume_step): Move these static globals...
  2300. (struct sim_inferior_data): ...into this new struct.
  2301. (sim_inferior_data_key, next_pid, sim_argv, gdbsim_is_open):
  2302. New static globals.
  2303. (gdb_callback, callbacks_initialized): Move these globals to
  2304. a point earlier in the file.
  2305. (check_for_duplicate_sim_descriptor, get_sim_inferior_data)
  2306. (get_sim_inferior_data_by_ptid, sim_inferior_data_cleanup)
  2307. (gdbsim_close_inferior, gdbsim_resume_inferior)
  2308. (gdbsim_stop_inferior): New functions.
  2309. (SIM_INSTANCE_NOT_NEEDED, SIM_INSTANCE_NEEDED, INITIAL_PID):
  2310. New constants.
  2311. (gdbsim_fetch_register, gdbsim_store_register, gdbsim_load)
  2312. (gdbsim_create_inferior, gdbsim_open, gdbsim_close, gdbsim_resume)
  2313. (gdbsim_stop, gdbsim_cntrl_c, gdbsim_wait)
  2314. (gdbsim_xfer_inferior_memory, gdbsim_files_info)
  2315. (gdbsim_mourn_inferior, simulator_command, gdbsim_thread_alive,
  2316. (gdbsim_pid_to_str): Invoke `get_sim_inferior_data' to set
  2317. new local variable `sim_data' in each of these functions. Use
  2318. `sim_data' to reference former globals `program_loaded',
  2319. `gdbsim_desc', `remote_sim_ptid', `resume_siggnal', and
  2320. `resume_step'.
  2321. (gdbsim_open): Remove local variable `argv'. Put results of call
  2322. to `gdb_buildargv' in `sim_argv' rather than in `argv'. Don't
  2323. make a cleanup for it. Free it though when a sim instance cannot
  2324. be obtained.
  2325. (gdbsim_close): Free sim_argv and null it out as appropriate.
  2326. Close sim instances in all inferiors.
  2327. (gdbsim_cntrl_c): Stop all inferiors.
  2328. (gdbsim_wait):
  2329. (_initialize_remote_sim): Initialize `sim_inferior_data_key'.
  2330. 2010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
  2331. * dwarf2read.c (new_symbol): Add symbol to variable list at end of
  2332. function after symbol construction is complete.
  2333. Do the same for template symbol addition to template_symbols list.
  2334. 2010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
  2335. * symtab.c (symbol_get_demangled_name): Remove assertion and
  2336. return NULL when language_specific.cplus_specific is not initialized.
  2337. * stabsread.c (define_symbol): Set the name before calling
  2338. cp_scan_for_anonymous_namespaces.
  2339. 2010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
  2340. * symtab.h: Renamed SYMBOL_INIT_LANGUAGE_SPECIFIC to
  2341. SYMBOL_SET_LANGUAGE.
  2342. (symbol_init_language_specific): Renamed to symbol_set_language.
  2343. * symtab.c (symbol_init_language_specific): Removed redundant check
  2344. for language_cplus.
  2345. Renamed to symbol_set_language.
  2346. * stabsread.c (define_symbol): Updated.
  2347. (read_enum_type): Updated
  2348. * psymtab.c (add_psymbol_to_bcache): Updated.
  2349. * minsyms.c (install_minimal_symbols): Updated.
  2350. * coffread.c (process_coff_symbol): SYMBOL_SET_LANGUAGE instead of
  2351. SYMBOL_LANGUAGE to set the language.
  2352. * minsyms.c (prim_record_minimal_symbol_full): Ditto.
  2353. * mdebugread.c (new_symbol): Ditto.
  2354. * cp-namespace.c (check_one_possible_namespace_symbol): Ditto.
  2355. * dwarf2read.c (new_symbol_full): Ditto.
  2356. * jv-lang.c (add_class_symbol): Ditto.
  2357. 2010-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
  2358. * defs.h (make_cleanup_restore_uinteger, make_cleanup_restore_ui_file)
  2359. (make_cleanup_restore_page_info)
  2360. (set_batch_flag_and_make_cleanup_restore_page_info): New declarations.
  2361. * gdbcmd.h (execute_command_to_string): New declaration.
  2362. * python/python.c (struct restore_ui_file_closure, restore_ui_file)
  2363. (make_cleanup_restore_ui_file): Move to utils.c
  2364. (execute_gdb_command) <to_string>: Move ...
  2365. * top.c (execute_command_to_string): ... here. Call
  2366. set_batch_flag_and_make_cleanup_restore_page_info.
  2367. * utils.c (make_cleanup_restore_integer): New source file blank line.
  2368. (make_cleanup_restore_uinteger): New.
  2369. (struct restore_ui_file_closure, do_restore_ui_file)
  2370. (make_cleanup_restore_ui_file): Move here from python/python.c.
  2371. (init_page_info) <batch_flag>
  2372. (do_restore_page_info_cleanup, make_cleanup_restore_page_info)
  2373. (set_batch_flag_and_make_cleanup_restore_page_info): New.
  2374. 2010-08-06 Maciej W. Rozycki <macro@codesourcery.com>
  2375. * thread.c (add_thread_silent): Use null_ptid instead of
  2376. minus_one_ptid while getting rid of stale inferior_ptid.
  2377. 2010-08-06 Corinna Vinschen <vinschen@redhat.com>
  2378. * dwarf2-frame.c (struct dwarf2_cie): Add ptr_size member.
  2379. Throughout, call read_encoded_value with ptr_size rather than addr_size.
  2380. (decode_frame_entry_1): Remove redundant setting of
  2381. addr_size. Call gdbarch_dwarf2_addr_size rather than gdbarch_ptr_bit
  2382. to determine addr_size in Dwarf versions < 4. Set ptr_size dependent
  2383. on examined frame section. Add comment to explain why.
  2384. * gdbarch.sh (dwarf2_addr_size): Define as variable. Add lengthy
  2385. comment to explain usage.
  2386. * gdbarch.c: Regenerate.
  2387. * gdbarch.h: Regenerate.
  2388. * xstormy16-tdep.c (xstormy16_gdbarch_init): Set dwarf2_addr_size to 4.
  2389. 2010-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
  2390. Code cleanup.
  2391. * varobj.c (varobj_create): Move variables fi, old_fi and block to
  2392. a more inner block.
  2393. 2010-08-05 Pedro Alves <pedro@codesourcery.com>
  2394. * configure.tgt (alpha*-*-linux*, am33_2.0*-*-linux*, frv-*-*)
  2395. (hppa*-*-linux*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
  2396. (microblaze*-linux-*, mips*-*-linux*, sh*-*-linux*)
  2397. (sparc-*-linux*, sparc64-*-linux*, xtensa*-*-linux*): Add
  2398. linux-tdep.o to gdb_target_obs.
  2399. 2010-08-05 Marc Khouzam <marc.khouzam@ericsson.com>
  2400. * mi/mi-main.c (mi_cmd_remove_inferior): Properly access first
  2401. argument.
  2402. 2010-08-05 Hui Zhu <teawater@gmail.com>
  2403. * mips-linux-tdep.c(regset.h): New include.
  2404. (mips_supply_gregset_wrapper, mips_fill_gregset_wrapper,
  2405. mips_supply_fpregset_wrapper, mips_fill_fpregset_wrapper,
  2406. mips64_supply_gregset_wrapper, mips64_fill_gregset_wrapper,
  2407. mips64_supply_fpregset_wrapper, mips64_fill_fpregset_wrapper,
  2408. mips_linux_regset_from_core_section): New functions.
  2409. (fetch_core_registers, regset_core_fns): Deleted.
  2410. (mips_linux_init_abi): Add mips_linux_regset_from_core_section.
  2411. Deleted regset_core_fns.
  2412. * mips-tdep.c(mips_gdbarch_init): Initialize tdep->gregset,
  2413. tdep->gregset64, tdep->fpregset and tdep->fpregset64.
  2414. * mips-tdep.h(gdbarch_tdep): Add gregset, gregset64, fpregset
  2415. and fpregset64.
  2416. 2010-08-04 Pedro Alves <pedro@codesourcery.com>
  2417. * s390-tdep.c: Include linux-tdep.h.
  2418. (s390_gdbarch_init): Call linux_init_abi.
  2419. 2010-08-04 Pedro Alves <pedro@codesourcery.com>
  2420. * corelow.c (core_pid_to_str): Default to using normal_pid_to_str
  2421. instead of printing "Thread" here.
  2422. * linux-tdep.c: Include inferior.h.
  2423. (linux_core_pid_to_str): New.
  2424. (linux_init_abi): New.
  2425. * linux-tdep.h (linux_init_abi): Declare.
  2426. * alpha-linux-tdep.c: Include linux-tdep.h.
  2427. (alpha_linux_init_abi): Call linux_init_abi.
  2428. * amd64-linux-tdep.c (amd64_linux_init_abi): Call linux_init_abi.
  2429. * arm-linux-tdep.c (arm_linux_init_abi): Call linux_init_abi.
  2430. * frv-linux-tdep.c: Include linux-tdep.h
  2431. (frv_linux_init_abi): Call linux_init_abi.
  2432. * hppa-linux-tdep.c: Include linux-tdep.h
  2433. (hppa_linux_init_abi): Call linux_init_abi.
  2434. * i386-linux-tdep.c (i386_linux_init_abi): Call linux_init_abi.
  2435. * ia64-linux-tdep.c: Include linux-tdep.h.
  2436. (ia64_linux_init_abi): Call linux_init_abi.
  2437. * m32r-linux-tdep.c: Include linux-tdep.h.
  2438. (m32r_linux_init_abi): Call linux_init_abi.
  2439. * m68klinux-tdep.c: Include linux-tdep.h.
  2440. (m68k_linux_init_abi): Call linux_init_abi.
  2441. * microblaze-linux-tdep.c: Include linux-tdep.h.
  2442. (microblaze_linux_init_abi): Call linux_init_abi.
  2443. * mips-linux-tdep.c: Include linux-tdep.h.
  2444. (mips_linux_init_abi): Call linux_init_abi.
  2445. * mn10300-linux-tdep.c: Include linux-tdep.h.
  2446. (am33_linux_init_osabi): Call linux_init_abi. Rename the
  2447. 'gdbinfo' parameter to 'info'.
  2448. * ppc-linux-tdep.c: Include linux-tdep.h.
  2449. (ppc_linux_init_abi): Call linux_init_abi.
  2450. * sh-linux-tdep.c: Include linux-tdep.h.
  2451. (sh_linux_init_abi): Call linux_init_abi.
  2452. * sparc-linux-tdep.c: Include linux-tdep.h.
  2453. (sparc32_linux_init_abi): Call linux_init_abi.
  2454. * sparc64-linux-tdep.c: Include linux-tdep.h.
  2455. (sparc64_linux_init_abi): Call linux_init_abi.
  2456. * xtensa-linux-tdep.c: Include linux-tdep.h.
  2457. (xtensa_linux_init_abi): Call linux_init_abi.
  2458. * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): New.
  2459. (i386_cygwin_init_abi): Install it as gdbarch_core_pid_to_str
  2460. callback.
  2461. 2010-08-03 Doug Evans <dje@google.com>
  2462. * breakpoint.c (bpdisp_text): Constify bpdisps.
  2463. * solib-svr4.c (solib_break_names): Constify.
  2464. (bkpt_names, main_name_list): Constify.
  2465. (match_main): Constify soname arg.
  2466. (bfd_lookup_symbol): Remove unnecessary forward decl.
  2467. Constify symname arg.
  2468. (enable_break): Constify bkpt_namep.
  2469. * symtab.c (search_symbols): Constify types, types2, types3, types4.
  2470. (symtab_symbol_info): Constify classnames.
  2471. 2010-08-03 Phil Muldoon <pmuldoon@redhat.com>
  2472. * NEWS: Document Python value inferior function calls.
  2473. 2010-08-02 Doug Evans <dje@google.com>
  2474. * dwarf2read.c (dwarf_attr_name): Add DW_AT_GNU_odr_signature.
  2475. 2010-07-31 Paul Pluzhnikov <ppluzhnikov@google.com>
  2476. * linux-thread-db.c (libthread_db_debug): New variable.
  2477. (thread_db_find_new_threads_silently): Control verbosity with it.
  2478. (try_thread_db_load_1, try_thread_db_load): Likewise.
  2479. (find_new_threads_once): Likewise.
  2480. (_initialize_thread_db): Set/show it.
  2481. 2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
  2482. * common/signals.c (signals): Move the content to signals.def.
  2483. Include it. Remove the INDENT comments.
  2484. 2010-07-30 Tom Tromey <tromey@redhat.com>
  2485. * Makefile.in (install-only): Install gdb-add-index.
  2486. * gdb-add-index.sh: New file.
  2487. 2010-07-31 Renquan Cheng <crq@gcc.gnu.org>
  2488. * MAINTAINERS: Add myself for write after approval privileges.
  2489. 2010-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
  2490. * symfile.c (addr_section_name): New function.
  2491. (addrs_section_compar): Use it.
  2492. (addr_info_make_relative): Use it. Move variable sect_name into a more
  2493. inner block. Make ".dynbss" and ".sdynbss" checks more strict.
  2494. 2010-07-30 Tom Tromey <tromey@redhat.com>
  2495. * configure: Rebuild.
  2496. * configure.ac: Add missing case for Python 2.7.
  2497. 2010-07-29 DJ Delorie <dj@redhat.com>
  2498. * rx-tdep.c (rx_analyze_prologue): Don't require branches to have
  2499. conditions.
  2500. 2010-07-29 Pedro Alves <pedro@codesourcery.com>
  2501. * PROBLEMS: Remove mention of all problems.
  2502. 2010-07-28 Pedro Alves <pedro@codesourcery.com>
  2503. PR build/11848
  2504. * configure.ac: Check for wresize.
  2505. * configure, config.in: Regenerate.
  2506. * tui/tui-win.c (make_visible_with_new_height): Wrap wresize call
  2507. with HAVE_WRESIZE.
  2508. 2010-07-28 Tom Tromey <tromey@redhat.com>
  2509. PR python/11060:
  2510. * python/py-type.c (typy_legacy_template_argument): New function,
  2511. extracted from typy_template_argument.
  2512. (typy_template_argument): Use TYPE_TEMPLATE_ARGUMENT. Return a
  2513. value when needed.
  2514. 2010-07-28 Oleg Nesterov <oleg@redhat.com>
  2515. * remote.c (readchar): Call pop_target in case of SERIAL_ERROR.
  2516. 2010-07-27 Tom Tromey <tromey@redhat.com>
  2517. * dwarf2read.c (dwarf2_const_value_data): Never sign extend.
  2518. 2010-07-28 Daniel Jacobowitz <dan@codesourcery.com>
  2519. * dwarf2read.c (read_subroutine_type): Improve THIS detection,
  2520. handling DW_AT_object_pointer, and workaround GCC PR 43053.
  2521. 2010-07-28 Tom Tromey <tromey@redhat.com>
  2522. * Makefile.in (HFILES_NO_SRCDIR): Remove link-warning.h.
  2523. 2010-07-28 Joel Brobecker <brobecker@adacore.com>
  2524. * remote.c (remote_download_tracepoint): Add missing gettext markup.
  2525. * tracepoint.c (parse_static_tracepoint_marker_definition): Likewise.
  2526. 2010-07-28 Joel Brobecker <brobecker@adacore.com>
  2527. * breakpoint.c (breakpoint_re_set_one): Move call to set_language
  2528. down, just before the block that parse the breakpoint addr_string.
  2529. 2010-07-28 Tom Tromey <tromey@redhat.com>
  2530. PR c++/9946:
  2531. * symfile.c (reread_symbols): Clear template_symbols.
  2532. * symtab.h (struct symbol) <is_cplus_template_function>: New
  2533. field.
  2534. (SYMBOL_IS_CPLUS_TEMPLATE_FUNCTION): New macro.
  2535. (struct template_symbol): New.
  2536. * symtab.c (lookup_symbol_aux_local): Use
  2537. cp_lookup_symbol_imports_or_template.
  2538. * objfiles.h (struct objfile) <template_symbols>: New field.
  2539. * objfiles.c (relocate_one_symbol): New function.
  2540. (objfile_relocate1): Use it. Relocate isolated symbols.
  2541. * gdbtypes.h (struct cplus_struct_type) <n_template_arguments,
  2542. template_arguments>: New fields.
  2543. (TYPE_N_TEMPLATE_ARGUMENTS): New macro.
  2544. (TYPE_TEMPLATE_ARGUMENTS): Likewise.
  2545. (TYPE_TEMPLATE_ARGUMENT): Likewise.
  2546. (lookup_typename): Update.
  2547. * gdbtypes.c (lookup_typename): Constify "block" argument.
  2548. * dwarf2read.c: Include vec.h.
  2549. (symbolp): New typedef.
  2550. (read_func_scope): Read template arguments. Allocate a
  2551. template_symbol when needed.
  2552. (read_structure_type): Read template arguments.
  2553. (new_symbol_full): New function, from new_symbol. Handle
  2554. DW_TAG_template_type_param and DW_TAG_template_value_param.
  2555. (new_symbol): Rewrite as wrapper.
  2556. * cp-support.h (cp_lookup_symbol_imports_or_template): Declare.
  2557. * cp-namespace.c: Include language.h.
  2558. (search_symbol_list): New function.
  2559. (cp_lookup_symbol_imports_or_template): Likewise.
  2560. 2010-07-28 Balazs Kezes <rlblaster@gmail.com>
  2561. * tui/tui-win.c (make_visible_with_new_height): Resize and move
  2562. the command window to the new size and position.
  2563. 2010-07-28 Balazs Kezes <rlblaster@gmail.com>
  2564. * tui/tui-win.c (tui_resize_all): Update the locator's origin's
  2565. coordinates.
  2566. 2010-07-28 Balazs Kezes <rlblaster@gmail.com>
  2567. * tui/tui-io.c (tui_handle_resize_during_io): Call tui_resize_all
  2568. after a detecting a resize.
  2569. * tui/tui-win.c (tui_resize_all): Remove tui_set_win_resized_to
  2570. call.
  2571. 2010-07-28 Pedro Alves <pedro@codesourcery.com>
  2572. * configure.ac: Check for resize_term.
  2573. * configure, config.in: Regenerate.
  2574. 2010-07-27 Joel Brobecker <brobecker@adacore.com>
  2575. * MAINTAINERS (Write After Approval): Reorder a couple of entries.
  2576. 2010-07-27 Daniel Jacobowitz <dan@codesourcery.com>
  2577. * dwarf2read.c (read_string): Rename to ...
  2578. (read_direct_string): ... this.
  2579. (skip_one_die, read_attribute_value, dwarf_decode_line_header)
  2580. (dwarf_decode_lines, dwarf_decode_macros): Adjust.
  2581. 2010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
  2582. * linux-nat.c (linux_nat_lp_status_is_event): New function.
  2583. (count_events_callback, select_event_lwp_callback)
  2584. (cancel_breakpoints_callback, linux_nat_wait_1): Use it.
  2585. 2010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
  2586. * ia64-linux-nat.c (ia64_linux_status_is_event): New function.
  2587. (_initialize_ia64_linux_nat): Install it.
  2588. * linux-nat.c (sigtrap_is_event, linux_nat_status_is_event)
  2589. (linux_nat_set_status_is_event): New.
  2590. (stop_wait_callback, count_events_callback, select_event_lwp_callback)
  2591. cancel_breakpoints_callback, linux_nat_filter_event)
  2592. (linux_nat_wait_1): Use linux_nat_status_is_event.
  2593. * linux-nat.h (linux_nat_set_status_is_event): New prototype.
  2594. 2010-07-27 Tom Tromey <tromey@redhat.com>
  2595. * NEWS: Mention labels, .gdb_index.
  2596. 2010-07-28 CHENG Renquan <rqcheng@smu.edu.sg>
  2597. * cli/cli-cmds.c (disassemble_command): Add support of disassemble
  2598. "start,+length" form of arguments.
  2599. * NEWS: Add "Changed commands" (disassemble) section for "Changes
  2600. since GDB 7.1"; and merge two separated paragraphs of disassemble
  2601. description in "Changes in GDB 7.0".
  2602. 2010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
  2603. * top.c (input_from_terminal_p): Return 0 on BATCH_FLAG.
  2604. * utils.c (defaulted_query): Do not explicitly check for BATCH_FLAG.
  2605. (fputs_maybe_filtered): Do not do filtering also on
  2606. ! INPUT_FROM_TERMINAL_P.
  2607. 2010-07-27 Joel Brobecker <brobecker@adacore.com>
  2608. * dwarf2read.c (dw2_find_pc_sect_symtab): Remove trailing newline
  2609. in warning message.
  2610. 2010-07-27 Phil Muldoon <pmuldoon@redhat.com>
  2611. * python/py-value.c (valpy_call): New Function.
  2612. 2010-07-27 Ken Werner <ken.werner@de.ibm.com>
  2613. * dwarf2read.c (dwarf2_read_index): Initialize the types_list and
  2614. types_list_elements variables.
  2615. 2010-07-26 Tom Tromey <tromey@redhat.com>
  2616. * dwarf2loc.c (locexpr_describe_location_piece): Also recognize
  2617. TLS with DW_OP_const4u or DW_OP_const8u.
  2618. 2010-07-26 Thiago Jung Bauermann <bauerman@br.ibm.com>
  2619. * ppc-linux-nat.c (store_vsx_register): Use PTRACE_GETVSXREGS to get
  2620. VSX registers contents.
  2621. 2010-07-26 Jerome Guitton <guitton@adacore.com>
  2622. * dwarf2read.c (add_partial_symbol): Do not add a global variable if
  2623. its adress is null. Add comment to explain why.
  2624. (new_symbol): Ditto.
  2625. 2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
  2626. * linux-nat.c (linux_nat_do_thread_registers): Convert STOP_SIGNAL to
  2627. the host signal first.
  2628. 2010-07-23 Tom Tromey <tromey@redhat.com>
  2629. * dwarf2read.c (struct dwarf2_per_objfile) <n_type_comp_units,
  2630. type_comp_units>: New fields.
  2631. (dw2_get_cu): New function.
  2632. (create_cus_from_index): Remove unused argument.
  2633. (create_signatured_type_hash_from_index): New function.
  2634. (create_addrmap_from_index): Update.
  2635. (dwarf2_read_index): Handle version 2.
  2636. (dw2_find_last_source_symtab, dw2_forget_cached_source_info)
  2637. (dw2_lookup_symtab, dw2_do_expand_symtabs_matching)
  2638. (dw2_print_stats, dw2_expand_all_symtabs)
  2639. (dw2_expand_symtabs_with_filename, dw2_find_symbol_file)
  2640. (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Update.
  2641. (dwarf2_initialize_objfile): Call create_debug_types_hash_table.
  2642. (allocate_signatured_type_hash_table): New function.
  2643. (add_signatured_type_cu_to_list): Likewise.
  2644. (create_debug_types_hash_table): Use them. Set type_comp_units.
  2645. (read_signatured_type): Ensure section data is available.
  2646. (add_address_entry): Don't record empty ranges.
  2647. (struct signatured_type_index_data): New.
  2648. (write_one_signatured_type): New function.
  2649. (write_psymtabs_to_index): Write type CUs.
  2650. (save_gdb_index_command): Update comment.
  2651. (process_type_comp_unit): Move inititalization of
  2652. from_debug_types...
  2653. (create_debug_types_hash_table): ... here.
  2654. 2010-07-23 Jan Kratochvil <jan.kratochvil@redhat.com>
  2655. * gdb_gcore.sh (tmpfile): Remove the variable, its initialization,
  2656. cleanup and generating of gdb script to it.
  2657. (gdb): Use redirection from /dev/null. Use --nx. Turn off pagination
  2658. and terminal size. Convert $tmpfile to a series of -ex-es.
  2659. 2010-07-23 Keith Seitz <keiths@redhat.com>
  2660. * symtab.c (basic_lookup_transparent_type): Call pre-expand
  2661. hook for STATIC_BLOCK types, too.
  2662. 2010-07-23 Keith Seitz <keiths@redhat.com>
  2663. * dwarf2read.c: Remove unused typedef dwarf2_cu_per_cu_data_ptr
  2664. and vector definition.
  2665. 2010-07-23 Jan Kratochvil <jan.kratochvil@redhat.com>
  2666. * linux-nat.c (cancel_breakpoint): Remove unused forward declaration.
  2667. 2010-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
  2668. * dwarf2read.c: Include completer.h.
  2669. (save_gdb_index_command): Use matching usage command name.
  2670. (_initialize_dwarf2_read): New variable c, initialize it by add_cmd.
  2671. Set filename_completer for it.
  2672. 2010-07-22 Tom Tromey <tromey@redhat.com>
  2673. * dwarf2read.c (create_debug_types_hash_table): Set objfile on
  2674. type signature's per-CU data.
  2675. 2010-07-22 Pedro Alves <pedro@codesourcery.com>
  2676. * NEWS: Mention target reported shared libraries support by
  2677. default.
  2678. 2010-07-21 Pedro Alves <pedro@codesourcery.com>
  2679. PR symtab/11827
  2680. Revert:
  2681. 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
  2682. * dwarf2read.c (process_die): Also allow DW_TAG_const_type
  2683. and DW_TAG_volatile_type.
  2684. (new_symbol): Likewise.
  2685. 2010-07-21 Sami Wagiaalla <swagiaal@redhat.com>
  2686. * eval.c (evaluate_subexp_standard): Disabled evaluation of C++
  2687. function symbols before overload resolution.
  2688. 2010-07-21 Pedro Alves <pedro@codesourcery.com>
  2689. * breakpoint.c (bptype_string): New, abstracted out from
  2690. print_one_breakpoint_location.
  2691. (print_one_breakpoint_location): Adjust.
  2692. (breakpoint_1): Adjust the type column width dynamically.
  2693. 2010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
  2694. * symfile.c (find_separate_debug_file_by_debuglink): Remove
  2695. a gdb_assert call, new comment.
  2696. 2010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
  2697. * linux-nat.c (linux_handle_extended_wait): Handle case when
  2698. event == PTRACE_EVENT_CLONE && stopping && WSTOPSIG (status) != SIGSTOP.
  2699. 2010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
  2700. Code cleanup.
  2701. * linux-nat.c (linux_nat_wait_1): Reset STATUS after calling
  2702. linux_nat_wait_1. Use always LP->STATUS afterwards.
  2703. 2010-07-20 Hui Zhu <teawater@gmail.com>
  2704. * inf-ptrace.c (inf_ptrace_create_inferior): Initialize back_to.
  2705. (inf_ptrace_attach): Ditto.
  2706. 2010-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
  2707. Make core files the process_stratum.
  2708. * corefile.c (core_target): New variable.
  2709. (core_file_command): Remove variable t, use core_target.
  2710. * corelow.c (core_ops): Make it static.
  2711. (init_core_ops): Change to process_stratum. Initialize CORE_TARGET.
  2712. * defs.h (make_cleanup_unpush_target): New prototype.
  2713. * gdbarch.h: Regenerate.
  2714. * gdbarch.sh (core_pid_to_str): Remove core_stratum from its comment.
  2715. * gdbcore.h (core_target): New declaration.
  2716. * inf-ptrace.c (inf_ptrace_create_inferior, inf_ptrace_attach): New
  2717. variables ops_already_pushed and back_to. Use push_target,
  2718. make_cleanup_unpush_target and discard_cleanups calls.
  2719. * record.c (record_open): Replace core_stratum by a core_bfd check.
  2720. * target.c (target_is_pushed): New function.
  2721. (find_core_target): Remove.
  2722. * target.h (enum strata) <core_stratum>: Remove.
  2723. (target_is_pushed): New declaration.
  2724. (find_core_target): Remove declaration.
  2725. * tracepoint.c (init_tfile_ops) <to_stratum>: Remove comment.
  2726. * utils.c (do_unpush_target, make_cleanup_unpush_target): New functions.
  2727. 2010-07-19 Hui Zhu <teawater@gmail.com>
  2728. * breakpoint.c (single_step_breakpoints_inserted): New
  2729. function.
  2730. * breakpoint.h (single_step_breakpoints_inserted): Extern.
  2731. * infrun.c (maybe_software_singlestep): Add check code.
  2732. * record.c (record_resume): Add code for software single step.
  2733. (record_wait): Ditto.
  2734. 2010-07-18 Jan Kratochvil <jan.kratochvil@redhat.com>
  2735. * linux-nat.c (linux_handle_extended_wait): Move variable new_lp into
  2736. a more inner block. Remove its unused declaration initializer.
  2737. 2010-07-16 Thiago Jung Bauermann <bauerman@br.ibm.com>
  2738. * NEWS: Mention support for the new ptrace interface and hardware
  2739. accelerated watchpoint conditions on powerpc-linux.
  2740. 2010-07-16 Ozkan Sezer <sezeroz@gmail.com>
  2741. * target.c (debug_to_insert_breakpoint): Instead of casting to unsigned
  2742. long and %ld, use core_addr_to_string() and %s to print CORE_ADDR vars
  2743. and host_address_to_string() and %s for pointers.
  2744. (debug_to_remove_breakpoint): Likewise.
  2745. (debug_to_region_ok_for_hw_watchpoint): Likewise.
  2746. (debug_to_can_accel_watchpoint_condition): Likewise.
  2747. (debug_to_stopped_data_address): Likewise.
  2748. (debug_to_watchpoint_addr_within_range): Likewise.
  2749. (debug_to_insert_hw_breakpoint): Likewise.
  2750. (debug_to_remove_hw_breakpoint): Likewise.
  2751. (debug_to_insert_watchpoint): Likewise.
  2752. (debug_to_remove_watchpoint): Likewise.
  2753. 2010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
  2754. * symtab.h (symbol_set_demangled_name): Now takes an optional objfile*
  2755. argument.
  2756. (cplus_specific): New struct.
  2757. * symtab.c (symbol_set_demangled_name): Updated.
  2758. Use cplus_specific for cplus symbols.
  2759. (symbol_get_demangled_name): Retrive the name from the cplus_specific
  2760. struct for cplus symbols.
  2761. (symbol_init_language_specific): Set cplus_specific for cplus symbols.
  2762. (symbol_set_names): Pass objfile to symbol_set_demangled_name.
  2763. * symtab.c (symbol_init_cplus_specific): New function.
  2764. 2010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
  2765. * symtab.h (symbol_set_demangled_name): New function.
  2766. (symbol_get_demangled_name): New function.
  2767. * symtab.c (symbol_set_demangled_name): New function.
  2768. (symbol_get_demangled_name): New function.
  2769. (symbol_init_language_specific): Use demangled_name setter and getter.
  2770. (symbol_set_names): Ditto.
  2771. (symbol_natural_name): Ditto.
  2772. (symbol_demangled_name): Ditto.
  2773. * dwarf2read.c (new_symbol): Ditto.
  2774. 2010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
  2775. * symtab.h: Renamed cplus_specific to mangled_lang.
  2776. * symtab.c (symbol_init_language_specific): Updated.
  2777. (symbol_set_names): Updated.
  2778. (symbol_natural_name): Updated.
  2779. (symbol_demangled_name): Updated.
  2780. * ada-lang.c (ada_decode_symbol): Updated.
  2781. * dwarf2read.c (new_symbol): Updated.
  2782. 2010-07-14 Ken Werner <ken.werner@de.ibm.com>
  2783. * valops.c (value_assign): Do not call to value_coerce_to_target.
  2784. (value_must_coerce_to_target): Return 0 in case of TYPE_VECTOR.
  2785. 2010-07-14 Ken Werner <ken.werner@de.ibm.com>
  2786. * MAINTAINERS: Add myself for write after approval privileges.
  2787. 2010-07-13 Emmanuel Thomé <Emmanuel.Thome@gmail.com>
  2788. * c-valprint.c (c_val_print): Add embedded_offset to address in
  2789. call to val_print_array_elements.
  2790. 2010-07-13 Tom Tromey <tromey@redhat.com>
  2791. * dwarf2read.c (dwarf2_read_index): Correctly set 'total_size'.
  2792. 2010-07-13 Tom Tromey <tromey@redhat.com>
  2793. * dwarf2read.c (dwarf2_per_cu_text_offset): Fix reference to
  2794. objfile.
  2795. 2010-07-13 Tom Tromey <tromey@redhat.com>
  2796. * symfile.c (set_initial_language): Update.
  2797. (deduce_language_from_filename): Argument type now const.
  2798. * symtab.h (find_main_filename): Update.
  2799. (deduce_language_from_filename): Update.
  2800. * symtab.c (find_main_filename): Make result const.
  2801. * dwarf2read.c (dw2_find_symbol_file): Change return type.
  2802. * psymtab.c (find_symbol_file_from_partial): Change return type.
  2803. * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
  2804. Make result const.
  2805. 2010-07-13 Tom Tromey <tromey@redhat.com>
  2806. * breakpoint.c (save_cmdlist): No longer static.
  2807. * gdbcmd.h (save_cmdlist): Declare.
  2808. * symfile.c (symbol_file_add_with_addrs_or_offsets): Set
  2809. OBJF_READNOW on objfile if readnow_symbol_files.
  2810. * elfread.c (elf_symfile_read): Use dwarf2_initialize_objfile.
  2811. (elf_sym_fns_gdb_index): New global.
  2812. * dwarf2read.c: Include exceptions.h.
  2813. (offset_type): New.
  2814. (struct mapped_index): New.
  2815. (dwarf2_per_cu_data_ptr): New typedef.
  2816. (struct dwarf2_per_objfile) <using_index, index_table, gdb_index>:
  2817. New fields.
  2818. (GDB_INDEX_SECTION): New define.
  2819. (struct dwarf2_per_cu_quick_data): New.
  2820. (struct dwarf2_per_cu_data) <objfile>: New field.
  2821. <psymtab>: Removed.
  2822. <v>: New field.
  2823. (byte_swap): New function.
  2824. (MAYBE_SWAP): New macro.
  2825. (INDEX_SUFFIX): New macro.
  2826. (dw2_do_instantiate_symtab): New function.
  2827. (dw2_instantiate_symtab): Likewise.
  2828. (create_cus_from_index): Likewise.
  2829. (create_addrmap_from_index): Likewise.
  2830. (mapped_index_string_hash): Likewise.
  2831. (find_slot_in_mapped_hash): Likewise.
  2832. (dwarf2_read_index): Likewise.
  2833. (dw2_setup): Likewise.
  2834. (dw2_require_line_header): Likewise.
  2835. (dw2_require_full_path): Likewise.
  2836. (dw2_find_last_source_symtab): Likewise.
  2837. (dw2_forget_cached_source_info): Likewise.
  2838. (dw2_lookup_symtab): Likewise.
  2839. (dw2_lookup_symbol): Likewise.
  2840. (dw2_do_expand_symtabs_matching): Likewise.
  2841. (dw2_pre_expand_symtabs_matching): Likewise.
  2842. (dw2_print_stats): Likewise.
  2843. (dw2_dump): Likewise.
  2844. (dw2_relocate): Likewise.
  2845. (dw2_expand_symtabs_for_function): Likewise.
  2846. (dw2_expand_all_symtabs): Likewise.
  2847. (dw2_expand_symtabs_with_filename): Likewise.
  2848. (dw2_find_symbol_file): Likewise.
  2849. (dw2_map_ada_symtabs): Likewise.
  2850. (dw2_expand_symtabs_matching): Likewise.
  2851. (dw2_find_pc_sect_symtab): Likewise.
  2852. (dw2_map_symbol_names): Likewise.
  2853. (dw2_map_symbol_filenames): Likewise.
  2854. (dw2_has_symbols): Likewise.
  2855. (dwarf2_gdb_index_functions): New global.
  2856. (dwarf2_initialize_objfile): New function.
  2857. (process_psymtab_comp_unit): Update.
  2858. (add_partial_subprogram): Likewise.
  2859. (dwarf2_psymtab_to_symtab): Likewise.
  2860. (psymtab_to_symtab_1): Use dw2_do_instantiate_symtab.
  2861. (process_full_comp_unit): Update.
  2862. (find_file_and_directory): New function.
  2863. (read_file_scope): Use find_file_and_directory.
  2864. (dwarf2_per_cu_objfile): Update.
  2865. (dwarf2_per_cu_addr_size): Update.
  2866. (dwarf2_per_cu_offset_size): Update.
  2867. (dwarf2_free_objfile): Free the index, if needed.
  2868. (dwarf2_per_objfile_free): Unmap the index, if needed.
  2869. (struct strtab_entry): New.
  2870. (hash_strtab_entry): New function.
  2871. (eq_strtab_entry): Likewise.
  2872. (create_strtab): Likewise.
  2873. (add_string): Likewise.
  2874. (struct symtab_index_entry): New.
  2875. (struct mapped_symtab): New.
  2876. (hash_symtab_entry): New function.
  2877. (eq_symtab_entry): Likewise.
  2878. (delete_symtab_entry): Likewise.
  2879. (create_index_table): Likewise.
  2880. (create_mapped_symtab): Likewise.
  2881. (cleanup_mapped_symtab): Likewise.
  2882. (find_slot): Likewise.
  2883. (hash_expand): Likewise.
  2884. (add_index_entry): Likewise.
  2885. (add_indices_to_cpool): Likewise.
  2886. (write_hash_table): Likewise.
  2887. (add_address_entry): Likewise.
  2888. (write_psymbols): Likewise.
  2889. (write_obstack): Likewise.
  2890. (unlink_if_set): Likewise.
  2891. (write_psymtabs_to_index): Likewise.
  2892. (save_gdb_index_command): Likewise.
  2893. (_initialize_dwarf2_read): Install "save gdb-index"
  2894. command.
  2895. (create_all_comp_units): Initialize 'objfile' field of CU.
  2896. (dwarf2_locate_sections): Check for .gdb_index.
  2897. * psymtab.h (dwarf2_gdb_index_functions): Declare.
  2898. * symfile.h (dwarf2_initialize_objfile): Declare.
  2899. 2010-07-13 Tom Tromey <tromey@redhat.com>
  2900. * symtab.c (lookup_symbol_aux_symtabs): Call pre-expand hook.
  2901. (basic_lookup_transparent_type): Likewise.
  2902. * symfile.h (struct quick_symbol_functions)
  2903. <pre_expand_symtabs_matching>: New field.
  2904. * psymtab.c (pre_expand_symtabs_matching_psymtabs): New function.
  2905. (psym_functions): Update.
  2906. 2010-07-13 Tom Tromey <tromey@redhat.com>
  2907. PR breakpoints/8357:
  2908. * symtab.h (domain_enum_tag) <LABEL_DOMAIN>: Update comment.
  2909. * linespec.c (decode_line_1): Update comment. Call decode_label.
  2910. (decode_label): New function.
  2911. (symbol_found): Handle LOC_LABEL.
  2912. * dwarf2read.c (new_symbol) <DW_TAG_label>: Set symbol's type and
  2913. domain. Call add_symbol_to_list.
  2914. 2010-07-13 Tom Tromey <tromey@redhat.com>
  2915. * dwarf2loc.h (dwarf2_per_cu_text_offset): Declare.
  2916. * dwarf2loc.c (find_location_expression): Use
  2917. dwarf2_per_cu_text_offset.
  2918. (dwarf2_evaluate_loc_desc): Likewise.
  2919. (dwarf2_loc_desc_needs_frame): Likewise.
  2920. (compile_dwarf_to_ax): Likewise.
  2921. (loclist_describe_location): Likewise.
  2922. * dwarf2read.c (dwarf2_per_cu_text_offset): New function.
  2923. (dwarf2_per_cu_objfile): Update comment.
  2924. 2010-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
  2925. * dwarf2read.c (read_subrange_type): Call read_subrange_type.
  2926. * p-lang.c (pascal_printstr): Likewise.
  2927. 2010-07-09 Tom Tromey <tromey@redhat.com>
  2928. * python/py-prettyprint.c (gdbpy_get_display_hint): Don't use
  2929. 'hint' if it is NULL.
  2930. 2010-07-09 Hui Zhu <teawater@gmail.com>
  2931. * source.c (print_source_lines_base): Add check for noprint.
  2932. 2010-07-08 Joel Brobecker <brobecker@adacore.com>
  2933. * python/python-config.py: Resync with Python 2.7 version of this
  2934. script.
  2935. 2010-07-08 Joel Brobecker <brobecker@adacore.com>
  2936. * NEWS: Fix typo in section name (s/GDB 7.1/GDB 7.2).
  2937. 2010-07-07 Joel Brobecker <brobecker@adacore.com>
  2938. * NEWS: Create a new section for the next release branch.
  2939. Rename the section of the current branch, now that it has
  2940. been cut.
  2941. 2010-07-07 Joel Brobecker <brobecker@adacore.com>
  2942. GDB 7.2 branch created (branch timestamp: 2010-07-07 17:00 UTC)
  2943. * version.in: Bump version to 7.2.50.20100707-cvs.
  2944. 2010-07-07 Tom Tromey <tromey@redhat.com>
  2945. * dwarf2read.c (dwarf2_const_value) <DW_form_addr>: Create a
  2946. LOC_COMPUTED symbol.
  2947. * dwarf2loc.c (dwarf2_evaluate_loc_desc): Set new field.
  2948. (dwarf2_loc_desc_needs_frame): Likewise.
  2949. (compile_dwarf_to_ax) <DW_OP_addr>: Use offset.
  2950. * dwarf2expr.h (struct dwarf_expr_context) <offset>: New field.
  2951. * dwarf2expr.c (execute_stack_op) <DW_OP_addr>: Use offset.
  2952. * dwarf2-frame.c (execute_stack_op): Set 'offset' field. Add
  2953. 'offset' argument.
  2954. (struct dwarf2_frame_cache) <text_offset>: New field.
  2955. (dwarf2_frame_cache): Set new field.
  2956. (dwarf2_frame_prev_register): Update.
  2957. (dwarf2_frame_sniffer): Update.
  2958. (dwarf2_frame_base_sniffer): Update.
  2959. (dwarf2_frame_find_fde): Add 'out_offset' argument.
  2960. 2010-07-07 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
  2961. Thiago Jung Bauermann <bauerman@br.ibm.com>
  2962. Support for hw accelerated condition watchpoints in booke powerpc.
  2963. * breakpoint.c (fetch_watchpoint_value): Rename to fetch_subexp_value
  2964. and move to eval.c. Change callers.
  2965. (insert_bp_location): Pass watchpoint condition in
  2966. target_insert_watchpoint.
  2967. (remove_breakpoint_1) Pass watchpoint condition in
  2968. target_remove_watchpoint.
  2969. (watchpoint_locations_match): Call
  2970. target_can_accel_watchpoint_condition.
  2971. * eval.c: Include wrapper.h.
  2972. (fetch_subexp_value): Moved from breakpoint.c.
  2973. * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint):
  2974. Formatting fix.
  2975. (can_use_watchpoint_cond_accel): New function.
  2976. (calculate_dvc): Likewise.
  2977. (num_memory_accesses): Likewise.
  2978. (check_condition): Likewise.
  2979. (ppc_linux_can_accel_watchpoint_condition): Likewise
  2980. (ppc_linux_insert_watchpoint): Call can_use_watchpoint_cond_accel,
  2981. check_condition and calculate_dvc.
  2982. (ppc_linux_remove_watchpoint): Likewise.
  2983. (_initialize_ppc_linux_nat): Set to_can_accel_watchpoint_condition to
  2984. ppc_linux_can_accel_watchpoint_condition
  2985. * target.c (debug_to_insert_watchpoint): Add argument for watchpoint
  2986. condition.
  2987. (debug_to_remove_watchpoint): Likewise.
  2988. (debug_to_can_accel_watchpoint_condition): New function.
  2989. (update_current_target): Set to_can_accel_watchpoint_condition.
  2990. (setup_target_debug): Set to_can_accel_watchpoint_condition.
  2991. * target.h: Add opaque declaration for struct expression.
  2992. (struct target_ops) <to_insert_watchpoint>,
  2993. <to_remove_watchpoint>: Add new arguments to pass the watchpoint
  2994. <to_can_accel_watchpoint_condition>: New member.
  2995. condition. Update all callers and implementations.
  2996. (target_can_accel_watchpoint_condition): New macro.
  2997. * value.c (free_value_chain): New function.
  2998. * value.h (fetch_subexp_value): New prototype.
  2999. (free_value_chain): Likewise.
  3000. 2010-07-07 Ulrich Weigand <uweigand@de.ibm.com>
  3001. * linux-nat.c (linux_nat_do_thread_registers): Use section size
  3002. from gdbarch_core_regset_sections also for .reg if present.
  3003. * amd64-linux-tdep.c (amd64_linux_regset_sections): Fix incorrect
  3004. section size for .reg.
  3005. * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
  3006. (ppc_linux_vmx_regset_sections): Likewise.
  3007. (ppc_linux_fp_regset_sections): Likewise.
  3008. (ppc64_linux_vsx_regset_sections): New variable.
  3009. (ppc64_linux_vmx_regset_sections): Likewise.
  3010. (ppc64_linux_fp_regset_sections): Likewise.
  3011. (ppc_linux_init_abi): Install core_regset_section lists appropriate
  3012. for current word size.
  3013. 2010-07-06 Joel Brobecker <brobecker@adacore.com>
  3014. * server.c (myresume): Make static.
  3015. 2010-07-06 Tom Tromey <tromey@redhat.com>
  3016. * configure, config.in: Rebuild.
  3017. * configure.ac (HAVE_LIBPYTHON2_7): New define.
  3018. * python/python-internal.h: Handle HAVE_LIBPYTHON2_7.
  3019. 2010-07-06 Andreas Schwab <schwab@linux-m68k.org>
  3020. * breakpoint.c (_initialize_breakpoint): Add "cl" as alias for
  3021. "clear".
  3022. 2010-07-06 Ken Werner <ken.werner@de.ibm.com>
  3023. * gdbtypes.h (floatformats_ieee_half): Add declaration.
  3024. * gdbtypes.c (floatformats_ieee_half): New variable.
  3025. * doublest.c (floatformat_from_length): Set format to
  3026. gdbarch_half_format if length matches.
  3027. * gdbarch.sh (half_bit): New architecture method.
  3028. (half_format): Likewise.
  3029. * gdbarch.h: Regenerate.
  3030. * gdbarch.c: Likewise.
  3031. 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
  3032. Joel Brobecker <brobecker@adacore.com>
  3033. Fix re-run of PIE executable, PR shlibs/11776.
  3034. * solib-svr4.c (svr4_relocate_main_executable) <symfile_objfile>: Remove
  3035. the part of pre-set SYMFILE_OBJFILE->SECTION_OFFSETS.
  3036. 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
  3037. Joel Brobecker <brobecker@adacore.com>
  3038. * auxv.c (memory_xfer_auxv): Update attach comment.
  3039. * solib-svr4.c (svr4_special_symbol_handling): Remove the call to
  3040. svr4_relocate_main_executable.
  3041. (svr4_solib_create_inferior_hook): Make the call to
  3042. svr4_relocate_main_executable unconditional.
  3043. 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
  3044. Joel Brobecker <brobecker@adacore.com>
  3045. * auxv.c (ld_so_xfer_auxv): Do not error on failed read of data_address.
  3046. 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
  3047. Joel Brobecker <brobecker@adacore.com>
  3048. Fix attaching to PIEs prelinked on the disk after the process was
  3049. started.
  3050. * solib-svr4.c (svr4_exec_displacement): New variable arch_size.
  3051. Verify it against bfd_get_arch_size. Try to match arbitrary
  3052. displacement for the phdrs comparison.
  3053. 2010-07-02 Tom Tromey <tromey@redhat.com>
  3054. PR exp/11780:
  3055. * libunwind-frame.c (libunwind_frame_prev_register): Don't set
  3056. value as optimized-out.
  3057. 2010-07-02 Ulrich Weigand <uweigand@de.ibm.com>
  3058. Thiago Jung Bauermann <bauerman@br.ibm.com>
  3059. * breakpoint.c (can_use_hardware_watchpoint): Answer "what does this
  3060. represent?" question in comment. Change comment to a proper sentence.
  3061. 2010-07-02 Ken Werner <ken.werner@de.ibm.com>
  3062. * c-valprint.c (c_val_print): Fix printing of character vectors.
  3063. 2010-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
  3064. * spu-tdep.c (spu_catch_start): Adjust the caller of changed
  3065. create_breakpoint prototype.
  3066. 2010-07-01 Pedro Alves <pedro@codesourcery.com>
  3067. * breakpoint.c (BREAK_ARGS_HELP, _initialize_breakpoint): Clarify
  3068. usefulness suggestion of multiple breakpoints at same location.
  3069. 2010-07-01 Pedro Alves <pedro@codesourcery.com>
  3070. * breakpoint.c (BREAK_ARGS_HELP): Add missing `the'.
  3071. 2010-07-01 Pedro Alves <pedro@codesourcery.com>
  3072. * dwarf2loc.c (locexpr_tracepoint_var_ref)
  3073. (loclist_tracepoint_var_ref): Handle optimized out values.
  3074. 2010-07-01 Pedro Alves <pedro@codesourcery.com>
  3075. * breakpoint.c (update_watchpoint, _initialize_breakpoint): Remove
  3076. unnecessary space in string.
  3077. * filesystem.c (_initialize_filesystem): Ditto.
  3078. * frame.c (_initialize_frame): Ditto.
  3079. * infcmd.c (step_once): Ditto.
  3080. * infrun.c (_initialize_infrun): Ditto.
  3081. * linux-nat.c (linux_child_follow_fork): Ditto.
  3082. * maint.c (maintenance_deprecate): Ditto.
  3083. * memattr.c (_initialize_mem): Ditto.
  3084. * mips-tdep.c (_initialize_mips_tdep): Ditto.
  3085. * monitor.c (monitor_open): Ditto.
  3086. * procfs.c (procfs_xfer_memory): Ditto.
  3087. * reverse.c (bookmarks_info): Ditto.
  3088. * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs): Ditto.
  3089. * stack.c (_initialize_stack): Ditto.
  3090. * tracepoint.c (_initialize_tracepoint): Ditto.
  3091. * xtensa-tdep.c (xtensa_supply_gregset,
  3092. xtensa_regset_from_core_section): Ditto.
  3093. 2010-07-01 Tom Tromey <tromey@redhat.com>
  3094. * value.h (struct lval_funcs) <check_any_valid>: Rename from
  3095. check_all_valid.
  3096. * value.c (value_entirely_optimized_out): Invert result. Update
  3097. for new function name.
  3098. 2010-07-01 Pedro Alves <pedro@codesourcery.com>
  3099. Static tracepoints support.
  3100. * NEWS: Mention new support for static tracepoints.
  3101. (New packets): Mention qTfSTM, qTsSTM, qTSTMat and
  3102. qXfer:statictrace:read.
  3103. (New features in the GDB remote stub, GDBserver): Mention static
  3104. tracepoints support using an UST based backend.
  3105. (New commands): Mention "info static-tracepoint-markers" and
  3106. "strace".
  3107. * breakpoint.c (is_marker_spec): New.
  3108. (is_tracepoint): Handle static tracepoints.
  3109. (validate_commands_for_breakpoint): Static tracepoints can't do
  3110. while-stepping.
  3111. (static_tracepoints_here): New.
  3112. (bpstat_what): Handle static tracepoints.
  3113. (print_one_breakpoint_location, allocate_bp_location, mention):
  3114. Ditto.
  3115. (create_breakpoint_sal): Ditto.
  3116. (decode_static_tracepoint_spec): New.
  3117. (create_breakpoint): Replace `hardwareflag', and `traceflag' with
  3118. `type_wanted'. Adjust. Handle static tracepoint marker
  3119. locations.
  3120. (break_command_1): Adjust.
  3121. (update_static_tracepoint): New.
  3122. (update_breakpoint_locations): Handle static tracepoints.
  3123. (breakpoint_re_set_one): Handle static tracepoint marker
  3124. locations.
  3125. (disable_command, enable_command): Handle static tracepoints.
  3126. (trace_command, ftrace_command): Adjust.
  3127. (strace_command): New.
  3128. (create_tracepoint_from_upload): Adjust.
  3129. (save_breakpoints): Handle static tracepoints.
  3130. (_initialize_breakpoint): Install the "strace" command.
  3131. * breakpoint.h (enum bptype): New bp_static_tracepoint type.
  3132. (struct breakpoint): New fields static_trace_marker_id and
  3133. static_trace_marker_id_idx.
  3134. (breakpoints_here_p): Declare.
  3135. (create_breakpoint): Adjust.
  3136. (static_tracepoints_here): Declare.
  3137. * remote.c (struct remote_state) <static_tracepoints>: New field.
  3138. (PACKET_qXfer_statictrace_read, PACKET_StaticTracepoints): New.
  3139. (remote_static_tracepoint_marker_at): New.
  3140. (remote_static_tracepoint_markers_by_strid): New.
  3141. (remote_static_tracepoint_feature): New.
  3142. (remote_disconnected_tracing_feature): Handle "StaticTracepoints".
  3143. (remote_xfer_partial): Handle TARGET_OBJECT_STATIC_TRACE_DATA.
  3144. (remote_supports_static_tracepoints): New.
  3145. (remote_download_tracepoint): Download static tracepoints.
  3146. (init_remote_ops): Install remote_static_tracepoint_marker_at and
  3147. remote_static_tracepoint_markers_by_strid.
  3148. (_initialize_remote): Install set|show remote static-tracepoints,
  3149. and set|show remote read-sdata-object commands.
  3150. * target.c (update_current_target): Inherit and default
  3151. to_static_tracepoint_marker_at, and
  3152. to_static_tracepoint_markers_by_strid.
  3153. * target.h (static_tracepoint_marker): Forward declare.
  3154. (enum target_object): New object TARGET_OBJECT_STATIC_TRACE_DATA.
  3155. (static_tracepoint_marker_p): New typedef.
  3156. (DEF_VEC_P(static_tracepoint_marker_p)): New VEC type.
  3157. (struct target_ops): New fields to_static_tracepoint_marker_at and
  3158. to_static_tracepoint_markers_by_strid.
  3159. (target_static_tracepoint_marker_at)
  3160. (target_static_tracepoint_markers_by_strid): New.
  3161. * tracepoint.c: Include source.h.
  3162. (validate_actionline): Handle $_sdata.
  3163. (struct collection_list): New field strace_data.
  3164. (add_static_trace_data): New.
  3165. (clear_collection_list): Clear strace_data.
  3166. (stringify_collection_list): Account for a possible static trace
  3167. data collection.
  3168. (encode_actions_1): Encode an $_sdata collection.
  3169. (parse_tracepoint_definition): Handle static tracepoints.
  3170. (parse_static_tracepoint_marker_definition): New.
  3171. (release_static_tracepoint_marker): New.
  3172. (print_one_static_tracepoint_marker): New.
  3173. (info_static_tracepoint_markers_command): New.
  3174. (sdata_make_value): New.
  3175. (_initialize_tracepoint): Create the $_sdata convenience variable.
  3176. Add the "info static-tracepoint-markers" command.
  3177. Mention $_sdata in the "collect" command's help output.
  3178. * tracepoint.h (struct static_tracepoint_marker): New.
  3179. (parse_static_tracepoint_marker_definition)
  3180. (release_static_tracepoint_marker): Declare.
  3181. * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
  3182. * python/py-breakpoint.c (bppy_new): Adjust.
  3183. 2010-06-30 Joel Brobecker <brobecker@adacore.com>
  3184. * python/python-internal.h (_XOPEN_SOURCE): Undefine before
  3185. including Python.h.
  3186. 2010-06-29 Doug Evans <dje@google.com>
  3187. PR gdb/11702
  3188. * dwarf2read.c (dwarf2_add_field): Only create a symbol if
  3189. DW_AT_external is present.
  3190. PR gdb/11702
  3191. * NEWS: Add entry.
  3192. * dwarf2read.c (dwarf2_add_field): If DW_AT_const_value is present,
  3193. create a symbol for the field and record the value.
  3194. (new_symbol): Handle DW_TAG_member.
  3195. * gdbtypes.c (field_is_static): Remove FIXME.
  3196. * symtab.c (search_symbols): When searching for VARIABLES_DOMAIN,
  3197. only ignore LOC_CONST symbols that are enums.
  3198. * dwarf2read.c: Remove trailing whitespace.
  3199. Delete FIELD_LOC_KIND_DWARF_BLOCK, unused.
  3200. * gdbtypes.h (enum field_loc_kind): Delete FIELD_LOC_KIND_DWARF_BLOCK.
  3201. (struct main_type, field loc): Delete dwarf_block.
  3202. (FIELD_DWARF_BLOCK): Delete.
  3203. (SET_FIELD_DWARF_BLOCK): Delete.
  3204. (TYPE_FIELD_DWARF_BLOCK): Delete.
  3205. * gdb-gdb.py (StructMainTypePrettyPrinter.struct_field_location_img):
  3206. Update.
  3207. 2010-06-29 Hui Zhu <teawater@gmail.com>
  3208. * record.c (set_record_pic_cmdlist,
  3209. show_record_pic_cmdlist): New variables.
  3210. (set_record_pic_command,
  3211. show_record_pic_command): New functions.
  3212. (record_pic_function, record_pic_line, record_pic_enum,
  3213. set_record_pic_type, record_pic_hide_nofunction,
  3214. record_pic_hide_nosource, record_pic_hide_same): New variables.
  3215. (record_pic_fputs): New function.
  3216. (function_list, node_list, edge_list): New struct.
  3217. (function_list, node_list, edge_list): New variables.
  3218. (record_pic_cleanups, record_pic_node,
  3219. record_pic_edge, cmd_record_pic): New functions.
  3220. (_initialize_record): Add new commands for record pic.
  3221. 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
  3222. * dwarf2read.c (read_structure_type) <fi.typedef_field_list>: Call
  3223. ALLOCATE_CPLUS_STRUCT_TYPE.
  3224. 2010-06-28 Phil Muldoon <pmuldoon@redhat.com>
  3225. Tom Tromey <tromey@redhat.com>
  3226. Thiago Jung Bauermann <bauerman@br.ibm.com>
  3227. * value.c (pack_unsigned_long): New function.
  3228. (value_from_ulongest): New function.
  3229. * value.h (value_from_ulongest): Declare.
  3230. * python/python.c (_initialize_python): Call
  3231. gdbpy_initialize_thread and gdbpy_initialize_inferior.
  3232. * python/python-internal.h: Define thread_object.
  3233. (gdbpy_inferiors, gdbpy_selected_thread)
  3234. (frame_info_to_frame_object, create_thread_object)
  3235. (find_thread_object, find_inferior_object)
  3236. (gdbpy_initialize_thread, gdbpy_initialize_inferiors)
  3237. (gdbpy_is_value_object, get_addr_from_python): Declare.
  3238. * python/py-value.c (builtin_type_upylong): Define.
  3239. (convert_value_from_python): Add logic for ulongest.
  3240. (gdbpy_is_value_object): New function.
  3241. * python/py-utils.c (get_addr_from_python): New function.
  3242. * python/py-frame.c (frame_info_to_frame_object): Return a PyObject.
  3243. (gdbpy_selected_frame): Use PyObject over frame_info.
  3244. * Makefile.in (SUBDIR_PYTHON_OBS): Add py-inferior and
  3245. py-infthread.
  3246. (SUBDIR_PYTHON_SRCS): Likewise.
  3247. (py-inferior.o): New Rule.
  3248. (py-infthread.o): New Rule.
  3249. * python/py-inferior.c: New File.
  3250. * python/py-infthread.c: New File.
  3251. 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
  3252. * c-typeprint.c (c_type_print_base): For no fields check include also
  3253. TYPE_TYPEDEF_FIELD_COUNT. Print new typedefs section.
  3254. * dwarf2read.c (struct typedef_field_list)
  3255. (struct field_info) <typedef_field_list, typedef_field_list_count>: New.
  3256. (dwarf2_add_typedef): New.
  3257. (read_structure_type): Call dwarf2_add_typedef for DW_TAG_typedef.
  3258. Copy also FI.TYPEDEF_FIELD_LIST.
  3259. * gdbtypes.h (struct typedef_field)
  3260. (struct cplus_struct_type) <typedef_field, typedef_field_count>
  3261. (TYPE_TYPEDEF_FIELD_ARRAY, TYPE_TYPEDEF_FIELD, TYPE_TYPEDEF_FIELD_NAME)
  3262. (TYPE_TYPEDEF_FIELD_TYPE, TYPE_TYPEDEF_FIELD_COUNT): New.
  3263. 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
  3264. * cp-namespace.c (cp_lookup_nested_type): New variable
  3265. concatenated_name. Turn the current return condition into a reverse
  3266. one. Call also lookup_static_symbol_aux on the constructed qualified
  3267. name.
  3268. * symtab.c (lookup_symbol_aux): Move variable objfile and searching in
  3269. other files into a called ...
  3270. (lookup_static_symbol_aux): ... new function here.
  3271. * symtab.h (lookup_static_symbol_aux): New prototype.
  3272. * valops.c (value_maybe_namespace_elt): Call also
  3273. lookup_static_symbol_aux if we failed otherwise.
  3274. 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
  3275. Fix PR c++/11703 and PR gdb/1448.
  3276. * c-exp.y (yylex) <last_was_coloncolon && first_was_coloncolon>: Add
  3277. FIRST_ITER check.
  3278. 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
  3279. Fix modification of cplus_struct_default.
  3280. * dwarf2read.c (dwarf2_add_member_fn) <no DW_AT_vtable_elem_location>:
  3281. Call ALLOCATE_CPLUS_STRUCT_TYPE.
  3282. * gdbtypes.c (cplus_struct_default): New empty initializer, comment it.
  3283. 2010-06-28 Joel Brobecker <brobecker@adacore.com>
  3284. * NEWS: Add entry announcing the python directory.
  3285. 2010-06-28 Tom Tromey <tromey@redhat.com>
  3286. * dwarf2read.c (read_structure_type): Allocate null cleanup later.
  3287. 2010-06-28 Doug Evans <dje@google.com>
  3288. * breakpoint.c (breakpoint_sals_to_pc): Delete arg address, unused.
  3289. All callers updated.
  3290. 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
  3291. * cp-valprint.c (cp_print_value_fields) <recurse == 0>: Call
  3292. obstack_begin after each obstack_free.
  3293. 2010-06-27 Doug Evans <dje@google.com>
  3294. * value.c (value_static_field): Use `switch' instead of `if'.
  3295. Assert-fail if passed invalid TYPE_FIELD_LOC_KIND.
  3296. * valops.c (search_struct_field): Fix typo in error message.
  3297. 2010-06-26 Ulrich Weigand <uweigand@de.ibm.com>
  3298. * dwarf2expr.c (execute_stack_op): Place preprocessor
  3299. directives at the start of the source line.
  3300. 2010-06-25 Paul Hilfinger <hilfinger@adacore.com>
  3301. * defs.h (make_command_stats_cleanup): Declare.
  3302. (set_display_time): Declare.
  3303. (set_display_space): Declare.
  3304. * event-top.c (command_handler): Use make_command_stats_cleanup.
  3305. * main.c (display_time, display_space): Move definitions to utils.c.
  3306. (captured_main): Use make_command_stats_cleanup to get start-up
  3307. statistics.
  3308. Use set_display_time and set_display_space for processing OPT_STATISTICS
  3309. case.
  3310. * maint.c (maintenance_time_display): Use set_display_time.
  3311. (maintenance_space_display): Use set_display_space.
  3312. * top.c (execute_command): Remove obsolete 'maint time' code.
  3313. (command_loop): Use make_command_stats_cleanup.
  3314. * utils.c (struct cmd_stats): Structure for storing initial time
  3315. and space usage.
  3316. (display_time, display_space): Move definitions here from utils.c.
  3317. (set_display_time): New function.
  3318. (set_display_space): New function.
  3319. (make_command_stats_cleanup): New function.
  3320. (report_command_stats): New auxiliary function for
  3321. make_command_stats_cleanup.
  3322. 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
  3323. * solib-spu.c (append_ocl_sos): Fix xsnprintf statement for
  3324. hosts where CORE_ADDR is long long.
  3325. 2010-06-25 Tom Tromey <tromey@redhat.com>
  3326. PR python/10808:
  3327. * python/python.c (execute_gdb_command): Add keywords. Accept
  3328. "to_string" argument.
  3329. (struct restore_ui_file_closure): New.
  3330. (restore_ui_file): New function.
  3331. (make_cleanup_restore_ui_file): Likewise.
  3332. (GdbMethods) <execute>: Update.
  3333. 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
  3334. * s390-tdep.c (s390_push_dummy_call): Error on stack overflow
  3335. during inferior call stack frame setup.
  3336. 2010-06-25 Ken Werner <ken.werner@de.ibm.com>
  3337. * solib-spu.c: Include "exception.h".
  3338. (ocl_program_data_key): New variable.
  3339. (append_ocl_sos): New function.
  3340. (ocl_enable_break): Likewise.
  3341. (spu_current_sos): Call append_ocl_sos.
  3342. (spu_solib_loaded): Call ocl_enable_break.
  3343. (_initialize_spu_solib): Register ocl_program_data_key.
  3344. 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
  3345. * cp-support.c (reset_directive_searched): New function.
  3346. (make_symbol_overload_list_using): Prevent recursive calls.
  3347. 2010-06-25 Phil Muldoon <pmuldoon@redhat.com>
  3348. * printcmd.c (print_variable_and_value): Print error message on
  3349. caught exception.
  3350. 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
  3351. * dwarf2expr.h (struct dwarf_value_location): Use ULONGEST as type
  3352. of stack values.
  3353. (struct dwarf_expr_piece): Rename "expr" member to "mem". Add new
  3354. "value" member.
  3355. (dwarf_expr_push): Change input type to ULONGEST.
  3356. (dwarf_expr_fetch): Change return type to ULONGEST.
  3357. (dwarf_expr_fetch_address): Add prototype.
  3358. (dwarf2_read_address): Remove prototype.
  3359. * dwarf2expr.c (dwarf_expr_push): Use ULONGEST as type of stack values.
  3360. Truncate stack values to ctx->addr_size bytes.
  3361. (dwarf_expr_fetch): Change return value to ULONGEST.
  3362. (dwarf_expr_fetch_address): New function.
  3363. (add_piece): Use dwarf_expr_fetch_address instead of dwarf_expr_fetch
  3364. when appropriate. Update for struct dwarf_expr_piece changes.
  3365. (dwarf2_read_address): Remove.
  3366. (unsigned_address_type): Remove.
  3367. (signed_address_type): Remove.
  3368. (execute_stack_op): Use dwarf_expr_fetch_address instead of
  3369. dwarf_expr_fetch when appropriate. Use ULONGEST as type of stack
  3370. values. Perform operations on ULONGEST instead of on GDB values,
  3371. sign-extending from ctx->addr_size bytes as needed. Read DW_OP_addr
  3372. values and DW_OP_deref results as unsigned integers.
  3373. * dwarf2loc.c (read_pieced_value): Update for struct dwarf_expr_piece
  3374. changes.
  3375. (write_pieced_value): Likewise.
  3376. (dwarf2_evaluate_loc_desc): Use dwarf_expr_fetch_address instead of
  3377. dwarf_expr_fetch when appropriate.
  3378. (compile_dwarf_to_ax): Read DW_OP_addr values as unsigned integers.
  3379. * dwarf2-frame.c (execute_stack_op): Use dwarf_expr_fetch_address
  3380. instead of dwarf_expr_fetch when appropriate.
  3381. 2010-06-25 Pierre Muller <muller@ics.u-strasbg.fr>
  3382. * c-typeprint.c (c_print_typedef): Append new type name for typedefs.
  3383. 2010-06-24 Joel Brobecker <brobecker@adacore.com>
  3384. * python/python.c (_initialize_python): Add new "constant"
  3385. PYTHONDIR in gdb module. Insert this path at the head of
  3386. sys.path. Set gdb.__path__ to gdb.PYTHONDIR + '/gdb' and
  3387. exec its __init__.py script if it exists in that directory.
  3388. 2010-06-24 Kevin Buettner <kevinb@redhat.com>
  3389. * rx-tdep.c (RX_ACC_REGNUM): Define.
  3390. (RX_NUM_REGS): Redefine to 26.
  3391. (rx_register_name): Add register "acc". Change order of several
  3392. registers. Change name of "vct" register to "fintv" to match RX
  3393. documentation.
  3394. (rx_register_type): Add case for RX_ACC_REGNUM.
  3395. 2010-06-24 Tom Tromey <tromey@redhat.com>
  3396. * psymtab.c (lookup_partial_symbol): Mark definition as static.
  3397. 2010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
  3398. Tom Tromey <tromey@redhat.com>
  3399. Fix GDB startup on readonly filesystem.
  3400. * charset.c (find_charset_names): Use PEX_USE_PIPES for pex_init.
  3401. 2010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
  3402. Pedro Alves <pedro@codesourcery.com>
  3403. Fix PR 9436.
  3404. * breakpoint.c (handle_jit_event): New function.
  3405. (bpstat_what): Remove enum class, kc, ss, sn, sgl, slr, clr, sr, shl,
  3406. jit, err, table and bs_class. New variables shlib_event, jit_event,
  3407. this_action and bptype. Change bs_class assignments to this_action
  3408. assignments. new unhandled bptype internal error. Move here
  3409. shlib_event and jit_event handling from handle_inferior_event.
  3410. * breakpoint.h (enum bpstat_what_main_action): Extend the comment.
  3411. Reorder items. Remove BPSTAT_WHAT_CHECK_SHLIBS and
  3412. BPSTAT_WHAT_CHECK_JIT.
  3413. * inferior.h (debug_infrun, stop_on_solib_events): New declarations.
  3414. * infrun.c (debug_infrun, stop_on_solib_events): Remove static.
  3415. (handle_inferior_event): Reinitialize frame and gdbarch after
  3416. bpstat_what call. Move BPSTAT_WHAT_CHECK_SHLIBS and
  3417. BPSTAT_WHAT_CHECK_JIT handling to bpstat_what. Reinitialize even
  3418. gdbarch when frame gets reinitialized.
  3419. 2010-06-24 Hui Zhu <teawater@gmail.com>
  3420. * printcmd.c (ui_printf): New function.
  3421. (printf_command): Call ui_printf.
  3422. (_initialize_printcmd): New command "eval".
  3423. 2010-06-23 Ulrich Weigand <uweigand@de.ibm.com>
  3424. * infrun.c (handle_inferior_event): Handle presence of single-step
  3425. breakpoints for TARGET_WAITKIND_FORKED and TARGET_WAITKIND_VFORKED.
  3426. Cancel single-step breakpoints for TARGET_WAITKIND_EXITED,
  3427. TARGET_WAITKIND_SIGNALED, and TARGET_WAITKIND_EXECD.
  3428. * breakpoint.c (detach_single_step_breakpoints): New function.
  3429. (detach_breakpoints): Call it.
  3430. (cancel_single_step_breakpoints): New function.
  3431. * breakpoint.h (cancel_single_step_breakpoints): Add prototype.
  3432. * spu-tdep.c (spu_memory_remove_breakpoint): New function.
  3433. (spu_gdbarch_init): Install it.
  3434. 2010-06-23 Jan Kratochvil <jan.kratochvil@redhat.com>
  3435. * configure.ac: Always set RDYNAMIC at least as `-rdynamic'.
  3436. * configure: Regenerate.
  3437. 2010-06-22 Hui Zhu <teawater@gmail.com>
  3438. * i386-tdep.c (i386_record_lea_modrm): Change warning to query.
  3439. (i386_process_record): Ditto.
  3440. * record.c (record_memory_query): New variable.
  3441. (_initialize_record): New command "set record memory-query".
  3442. * record.h (record_memory_query): New extern.
  3443. 2010-06-21 Doug Evans <dje@google.com>
  3444. * i386-tdep.h (i386_displaced_step_copy_insn): Declare.
  3445. * i386-tdep.c (i386_displaced_step_copy_insn): New function.
  3446. (i386_syscall_p): Change type of lengthp to int.
  3447. (i386_displaced_step_fixup): Handle kernels that run one past a
  3448. syscall insn.
  3449. * i386-linux-tdep.c (i386_linux_init_abi): Use
  3450. i386_displaced_step_copy_insn instead of
  3451. simple_displaced_step_copy_insn.
  3452. 2010-06-21 Tom Tromey <tromey@redhat.com>
  3453. * dwarf2read.c (read_base_type): Handle DW_ATE_UTF.
  3454. (dwarf_type_encoding_name): Likewise.
  3455. 2010-06-21 Tom Tromey <tromey@redhat.com>
  3456. * p-valprint.c (pascal_val_print): Use TYPE_ERROR_NAME.
  3457. * p-typeprint.c (pascal_type_print_base): Use TYPE_ERROR_NAME.
  3458. * m2-valprint.c (m2_val_print): Use TYPE_ERROR_NAME.
  3459. * gdbtypes.h (TYPE_ERROR_NAME): New macro.
  3460. * f-valprint.c (f_val_print): Use TYPE_ERROR_NAME.
  3461. * f-typeprint.c (f_type_print_base): Use TYPE_ERROR_NAME.
  3462. * dwarf2read.c (tag_type_to_type): Create a new error type on
  3463. failure.
  3464. * c-valprint.c (c_val_print): Use TYPE_ERROR_NAME.
  3465. * c-typeprint.c (c_type_print_base): Use TYPE_ERROR_NAME.
  3466. 2010-06-21 Michael Snyder <msnyder@vmware.com>
  3467. * breakpoint.c (_initialize_breakpoint): Use add_prefix_cmd,
  3468. not add_abbrev_prefix_cmd, for "enable breakpoints".
  3469. 2010-06-21 Ulrich Weigand <uweigand@de.ibm.com>
  3470. * dwarf2loc.c (find_location_expression): Add relocation offset
  3471. to base-address-selection entry base addresses. Read addresses
  3472. (and offsets) as signed/unsigned integers, depending on the
  3473. BFD's sign_extend_vma flag. Do not call dwarf2_read_address.
  3474. (loclist_describe_location): Likewise.
  3475. (disassemble_dwarf_expression): Read DW_OP_addr operand as
  3476. unsigned integer. Do not call dwarf2_read_address.
  3477. (locexpr_describe_location): Likewise for DW_OP_GNU_push_tls_address.
  3478. 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
  3479. * spu-tdep.c (spu_frame_unwind_cache): Use LSLR register
  3480. value instead of hard-coded SPU_LS_SIZE.
  3481. (spu_software_single_step): Likewise.
  3482. * spu-tdep.h (SPU_LS_SIZE): Remove.
  3483. 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
  3484. * spu-multiarch.c (spu_xfer_partial): Wrap around local store
  3485. limit on local store memory accesses.
  3486. * spu-linux-nat.c (spu_xfer_partial): Likewise.
  3487. * spu-tdep.c (spu_lslr): Remove.
  3488. (spu_pointer_to_address): Do not truncate addresses.
  3489. (spu_integer_to_address): Likewise.
  3490. (spu_overlay_new_objfile): Use SPU_OVERLAY_LMA.
  3491. * spu-tdep.h: Add comments.
  3492. (SPUADDR_SPU): Respect SPU_OVERLAY_LMA bit.
  3493. (SPU_OVERLAY_LMA): Define.
  3494. 2010-06-18 Stan Shebs <stan@codesourcery.com>
  3495. * osdata.c (get_osdata): Warn separately if target does not report
  3496. type list.
  3497. (info_osdata_command): Allow empty type, report error if target
  3498. does not return available types of OS data.
  3499. * linux-nat.c (linux_nat_xfer_osdata): Report list of OS data
  3500. types if no annex supplied.
  3501. * thread.c (thread_id_make_value): Make a value representing the
  3502. current thread.
  3503. (_initialize_thread): Create $_thread.
  3504. 2010-06-17 Joel Brobecker <brobecker@adacore.com>
  3505. * dwarf2read.c (psymtabs_addrmap_cleanup): Add empty line after
  3506. last local variable declaration. No real code change.
  3507. 2010-06-17 Tom Tromey <tromey@redhat.com>
  3508. * dwarf2read.c (psymtabs_addrmap_cleanup): New function.
  3509. (dwarf2_build_psymtabs_hard): Use it. Create addrmap on a
  3510. temporary obstack.
  3511. 2010-06-16 Sergio Durigan Junior <sergiodj@redhat.com>
  3512. Jan Kratochvil <jan.kratochvil@redhat.com>
  3513. * breakpoint.c: Include parser-defs.h.
  3514. (watchpoint_exp_is_const): New function.
  3515. (watch_command_1): Call watchpoint_exp_is_const to check
  3516. if the expression is constant.
  3517. 2010-06-15 Andreas Schwab <schwab@linux-m68k.org>
  3518. * configure.ac: Check for RDYNAMIC also for cross builds.
  3519. * configure: Regenerate.
  3520. 2010-06-15 Pedro Alves <pedro@codesourcery.com>
  3521. * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
  3522. (SFILES): Remove solib-null.c, add solib-target.c.
  3523. (COMMON_OBS): Remove solib-null.o, add solib-target.o.
  3524. (ALLDEPFILES): Remove solib-target.c.
  3525. * solib-target.c (_initialize_solib_target): Set
  3526. current_target_so_ops to solib_target_so_ops if not already set.
  3527. * solib-null.c: Delete.
  3528. 2010-06-14 Pedro Alves <pedro@codesourcery.com>
  3529. * NEWS: Mention GDBserver's JIT compilation of tracepoint
  3530. bytecode.
  3531. 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
  3532. * cp-valprint.c (cp_print_static_field): Members of
  3533. dont_print_stat_array_obstack are of type "struct type *".
  3534. (_initialize_cp_valprint): Likewise.
  3535. 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
  3536. * frame.c (frame_register_unwind): Do not access contents
  3537. of "optimized out" unwound register value.
  3538. 2010-06-14 Jan Kratochvil <jan.kratochvil@redhat.com>
  3539. * ada-lang.h (ada_print_type): Make varstring const.
  3540. * ada-typeprint.c (print_func_type): Make name const.
  3541. (ada_print_type): Make varstring const.
  3542. * c-lang.h (c_print_type): Make varstring const.
  3543. * c-typeprint.c (c_print_type): Likewise.
  3544. * f-lang.h (f_print_type): Likewise.
  3545. * f-typeprint.c (f_print_type): Likewise.
  3546. * jv-lang.h (java_print_type): Likewise.
  3547. * jv-typeprint.c (java_print_type): Likewise.
  3548. * language.c (unk_lang_print_type): Likewise.
  3549. * language.h (struct language_defn) <la_print_type>: Likewise.
  3550. * m2-lang.h (m2_print_type): Likewise.
  3551. * m2-typeprint.c (m2_print_type): Likewise.
  3552. * p-lang.h (pascal_print_type): Likewise.
  3553. * p-typeprint.c (pascal_print_type): Likewise.
  3554. 2010-06-11 Stan Shebs <stan@codesourcery.com>
  3555. Add per-operation permission flags.
  3556. * target.h (struct target_ops): New method to_set_permissions.
  3557. (target_set_permissions): New macro.
  3558. (target_insert_breakpoint): Change macro to function.
  3559. (target_remove_breakpoint): Ditto.
  3560. (target_stop): Ditto.
  3561. (may_write_registers): Declare.
  3562. (may_write_memory): Declare.
  3563. (may_insert_breakpoints): Declare.
  3564. (may_insert_tracepoints): Declare.
  3565. (may_insert_fast_tracepoints): Declare.
  3566. (may_stop): Declare.
  3567. * target.c (may_write_registers, may_write_registers_1): New globals.
  3568. (may_write_memory, may_write_memory_1): New globals.
  3569. (may_insert_breakpoints, may_insert_breakpoints_1): New globals.
  3570. (may_insert_tracepoints, may_insert_tracepoints_1): New globals.
  3571. (may_insert_fast_tracepoints, may_insert_fast_tracepoints_1): New
  3572. globals.
  3573. (may_stop, may_stop_1): New global.
  3574. (target_xfer_partial): Test for write permission.
  3575. (target_store_registers): Ditto.
  3576. (target_insert_breakpoint): New function.
  3577. (target_remove_breakpoint): New function.
  3578. (target_stop): New function.
  3579. (_initialize_targets): Add new set/show variables.
  3580. (set_write_memory_permission): New function.
  3581. (update_target_permissions): New function.
  3582. (set_target_permissions): New function.
  3583. (update_current_target): Default to_set_permissions.
  3584. (_initialize_targets): Use new globals and setter function.
  3585. * tracepoint.c (start_tracing): Test for permission.
  3586. * inferior.h (update_observer_mode): Declare.
  3587. * infrun.c (non_stop_1): Define earlier.
  3588. (observer_mode, observer_mode_1): New globals.
  3589. (set_observer_mode, show_observer_mode): New functions.
  3590. (update_observer_mode): New function.
  3591. (_initialize_infrun): Define "set observer" command.
  3592. * remote.c (PACKET_QAllow): New optional packet.
  3593. (remote_protocol_features): Add QAllow.
  3594. (remote_set_permissions): New function.
  3595. (remote_start_remote): Call it.
  3596. (init_remote_ops): Add it to target vector.
  3597. (_initialize_remote): Add config command for QAllow.
  3598. 2010-06-11 Tom Tromey <tromey@redhat.com>
  3599. * dwarf2read.c (dwarf2_add_member_fn): Handle correct form of
  3600. DW_AT_vtable_elem_location even when GCC extension is seen.
  3601. 2010-06-11 Tom Tromey <tromey@redhat.com>
  3602. PR gdb/9977, PR exp/11636:
  3603. * value.h (value_offset): Update.
  3604. (struct lval_funcs) <check_validity>: New field.
  3605. <copy_closure>: Make argument const.
  3606. (value_computed_closure): Update.
  3607. (value_contents_for_printing): Declare.
  3608. (value_bits_valid): Likewise.
  3609. (val_print): Likewise.
  3610. (set_value_component_location): Update.
  3611. (value_entirely_optimized_out): Declare.
  3612. * value.c (value_offset): Argument now const.
  3613. (require_not_optimized_out): New function.
  3614. (value_contents_for_printing): New function.
  3615. (value_contents_all): Call require_not_optimized_out.
  3616. (value_contents): Likewise.
  3617. (value_bits_valid): New function.
  3618. (value_computed_closure): Argument now const.
  3619. (set_value_component_location): Make 'whole' argument const.
  3620. (value_entirely_optimized_out): New function.
  3621. (value_bitsize): Argument now 'const'.
  3622. (value_bitpos): Likewise.
  3623. (value_type): Likewise.
  3624. * valprint.h (val_print_array_elements): Update.
  3625. * valprint.c (val_print): Add 'val' argument. Use
  3626. valprint_check_validity.
  3627. (valprint_check_validity): New function.
  3628. (value_check_printable): Use value_entirely_optimized_out.
  3629. (common_val_print): Update.
  3630. (value_print): Likewise.
  3631. (val_print_array_elements): Add 'val' argument.
  3632. * valops.c (value_fetch_lazy): Use value_contents_for_printing,
  3633. value_bits_valid. Reinit frame cache for lval_computed.
  3634. * sh64-tdep.c (sh64_do_register): Update.
  3635. * scm-valprint.c (scm_val_print): Add 'val' argument.
  3636. * scm-lang.h (scm_val_print): Update.
  3637. * python/python.h (apply_val_pretty_printer): Update.
  3638. * python/py-prettyprint.c (apply_val_pretty_printer): Add 'val'
  3639. argument. Call set_value_component_location.
  3640. * printcmd.c (print_scalar_formatted): Update.
  3641. * p-valprint.c (pascal_val_print): Add 'val' argument.
  3642. (pascal_object_print_value_fields): Likewise.
  3643. (pascal_object_print_value): Likewise.
  3644. (pascal_object_print_static_field): Update.
  3645. * p-lang.h (pascal_val_print): Update.
  3646. (pascal_object_print_value_fields): Update.
  3647. * mt-tdep.c (mt_registers_info): Update.
  3648. * mi/mi-main.c (get_register): Update.
  3649. (mi_cmd_data_evaluate_expression): Use common_val_print.
  3650. * m2-valprint.c (m2_print_array_contents): Add 'val' argument.
  3651. (m2_print_unbounded_array): Likewise.
  3652. (m2_val_print): Likewise.
  3653. * m2-lang.h (m2_val_print): Update.
  3654. * language.h (struct language_defn) <la_val_print>: Add 'val'
  3655. argument.
  3656. (LA_VAL_PRINT): Likewise.
  3657. * language.c (unk_lang_val_print): Add 'val' argument.
  3658. * jv-valprint.c (java_print_value_fields): Add 'val' argument.
  3659. (java_val_print): Likewise.
  3660. * jv-lang.h (java_val_print): Add 'val' argument.
  3661. * infcmd.c (default_print_registers_info): Update.
  3662. * f-valprint.c (f77_print_array_1): Add 'val' argument.
  3663. (f77_print_array): Likewise.
  3664. (f_val_print): Likewise.
  3665. * f-lang.h (f_val_print): Add 'val' argument.
  3666. * dwarf2loc.c (read_pieced_value): Use value_bitsize and
  3667. value_bitpos.
  3668. <DWARF_VALUE_OPTIMIZED_OUT>: Don't print warning. Call
  3669. set_value_optimized_out.
  3670. (write_pieced_value): Use value_bitsize and value_bitpos.
  3671. <default>: Don't exit loop.
  3672. (check_pieced_value_validity): New function.
  3673. (pieced_value_funcs): Reference check_pieced_value_validity,
  3674. check_pieced_value_invalid.
  3675. (copy_pieced_value_closure): Update.
  3676. (check_pieced_value_bits): New function.
  3677. (check_pieced_value_invalid): New function.
  3678. * d-valprint.c (dynamic_array_type): Add 'val' argument.
  3679. (d_val_print): Likewise.
  3680. * d-lang.h (d_val_print): Update.
  3681. * cp-valprint.c (cp_print_value_fields): Add 'val' argument.
  3682. (cp_print_value_fields_rtti): Likewise.
  3683. (cp_print_value): Likewise.
  3684. (cp_print_static_field): Update.
  3685. * c-valprint.c (c_val_print): Add 'val' argument.
  3686. (c_value_print): Update.
  3687. * c-lang.h (c_val_print): Update.
  3688. (cp_print_value_fields): Likewise.
  3689. (cp_print_value_fields_rtti): Likewise.
  3690. * ada-valprint.c (struct ada_val_print_args): Remove.
  3691. (val_print_packed_array_elements): Add 'val' argument.
  3692. (ada_val_print): Likewise. Rewrite.
  3693. (ada_val_print_stub): Remove.
  3694. (ada_val_print_array): Add 'val' argument.
  3695. (ada_val_print_1): Likewise.
  3696. (print_variant_part): Likewise.
  3697. (ada_value_print): Update.
  3698. (print_record): Add 'val' argument.
  3699. (print_field_values): Likewise.
  3700. * ada-lang.h (ada_val_print): Update.
  3701. 2010-06-11 Tom Tromey <tromey@redhat.com>
  3702. * vec.h (VEC_cleanup): New macro.
  3703. (DEF_VEC_ALLOC_FUNC_I): Update.
  3704. (DEF_VEC_ALLOC_FUNC_P): Likewise.
  3705. (DEF_VEC_ALLOC_FUNC_O): Likewise.
  3706. * dwarf2loc.c (struct axs_var_loc): Remove.
  3707. (unimplemented): New function.
  3708. (translate_register): Likewise.
  3709. (access_memory): Likewise.
  3710. (compile_dwarf_to_ax): Likewise.
  3711. (dwarf2_tracepoint_var_loc): Remove.
  3712. (dwarf2_tracepoint_var_access): Likewise.
  3713. (dwarf2_tracepoint_var_ref): Likewise.
  3714. (locexpr_tracepoint_var_ref): Use compile_dwarf_to_ax.
  3715. (loclist_tracepoint_var_ref): Likewise.
  3716. * dwarf2expr.h (dwarf_expr_require_composition): Declare.
  3717. * dwarf2expr.c (dwarf_expr_require_composition): Rename from
  3718. require_composition. No longer static.
  3719. (execute_stack_op): Update.
  3720. * ax-gdb.h (trace_kludge): Declare.
  3721. 2010-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
  3722. * breakpoint.c (breakpoint_restore_shadows): New OWNER comment.
  3723. (should_be_inserted): Return zero also on NULL OWNER.
  3724. (breakpoint_program_space_exit): New OWNER comment.
  3725. (insert_breakpoint_locations): Extend comment for OWNER.
  3726. (remove_breakpoint_1, remove_breakpoint): Assert on OWNER.
  3727. (breakpoint_init_inferior, breakpoint_here_p, breakpoint_thread_match):
  3728. New OWNER comment.
  3729. (print_it_typical): Return PRINT_UNKNOWN on NULL OWNER.
  3730. (watchpoint_check): New assert on BREAKPOINT_AT and OWNER.
  3731. (bpstat_check_location): New assert on OWNER.
  3732. (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions): Move BL
  3733. and B initializations to the code block. New assert on them.
  3734. (print_one_breakpoint_location): New OWNER comment.
  3735. (watchpoint_locations_match): Assert on OWNER.
  3736. (breakpoint_locations_match): Move HW_POINT1 and HW_POINT2
  3737. initializations to the code block. New assert on OWNER.
  3738. (set_breakpoint_location_function): New assert on OWNER.
  3739. (disable_breakpoints_in_shlibs, disable_breakpoints_in_unloaded_shlib)
  3740. (bp_location_compare, update_global_location_list)
  3741. (update_global_location_list): New OWNER comment.
  3742. 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
  3743. * Makefile.in (HFILES_NO_SRCDIR): Remove config/i386/nm-linux.h
  3744. 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
  3745. * config/nm-linux.h (struct target_ops): Remove forward declaration.
  3746. (lin_thread_get_thread_signals): Remove prototype.
  3747. (GET_THREAD_SIGNALS): Remove.
  3748. * linux-nat.h (lin_thread_get_thread_signals): Add prototype.
  3749. * linux-thread-db.c (check_thread_signals): Directly call
  3750. lin_thread_get_thread_signals; do not check GET_THREAD_SIGNALS.
  3751. 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
  3752. * gregset.h (GDB_FPXREGSET_T): Remove.
  3753. (gdb_fpxregset_t): Likewise.
  3754. (supply_fpxregset): Remove prototype.
  3755. (fill_fpxregset): Likewise.
  3756. * i386-linux-nat.c (supply_fpxregset): Remove.
  3757. (fill_fpxregset): Likewise.
  3758. (fetch_fpxregs): Inline supply_fpxregset call.
  3759. (store_fpxregs): Inline fill_fpxregset call.
  3760. * config/i386/linux.mh: Set NAT_FILE to config/nm-linux.h.
  3761. * config/i386/nm-linux.h: Remove file.
  3762. 2010-06-09 Michael Snyder <msnyder@vmware.com>
  3763. * target.c (update_current_target): Fix spelling error in comment.
  3764. (target_mourn_inferior): Fix spelling error in error message.
  3765. 2010-06-08 Paul Hilfinger <hilfingr@adacore.com>
  3766. * dictionary.h (dict_iter_name_first, dict_iter_name_next): Refer to
  3767. SYMBOL_SEARCH_NAME, not SYMBOL_BEST_NAME, in comments.
  3768. 2010-06-08 Michael Snyder <msnyder@vmware.com>
  3769. * remote.c (remote_close): Set inferior_ptid to null_ptid.
  3770. 2010-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
  3771. * configure.ac <"${have_libpython}" != no>: New workaround of
  3772. python#4434.
  3773. * configure: Regenerate.
  3774. 2010-06-08 Hui Zhu <teawater@gmail.com>
  3775. * record.c (record_wait): Move signal out of replay code.
  3776. 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
  3777. Fix PR 10640.
  3778. * dwarf2-frame.c (no_dwarf_call): New function.
  3779. (execute_stack_op): Set CTX->DWARF_CALL.
  3780. * dwarf2expr.c (execute_stack_op) <DW_OP_call2, DW_OP_call4>: New.
  3781. * dwarf2expr.h (struct dwarf_expr_context) <dwarf_call>: New.
  3782. (struct dwarf_expr_context) <get_subr>: Remove the #if0-ed field.
  3783. * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call): New functions.
  3784. (dwarf2_evaluate_loc_desc): Initialize CTX->DWARF_CALL.
  3785. (needs_frame_dwarf_call): New function.
  3786. (dwarf2_loc_desc_needs_frame): Initialize CTX->DWARF_CALL.
  3787. * dwarf2read.c (follow_die_offset): Based on former follow_die_ref.
  3788. Update the comment. Move variables die, offset and error call to ...
  3789. (follow_die_ref): ... a new function.
  3790. (dwarf2_fetch_die_location_block): New function.
  3791. * dwarf2loc.h (dwarf2_fetch_die_location_block): New prototype.
  3792. 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
  3793. * dwarf2loc.c (struct dwarf_expr_baton) Replace objfile by per_cu.
  3794. (dwarf_expr_tls_address): Use per_cu instead of objfile.
  3795. (dwarf2_evaluate_loc_desc): Drop initialization of BATON.OBJFILE.
  3796. Initialize new BATON.PER_CU. Adjust CTX->GDBARCH initialization for
  3797. this change.
  3798. (struct needs_frame_baton): New field per_cu.
  3799. (dwarf2_loc_desc_needs_frame): Initialize new BATON.PER_CU.
  3800. * dwarf2read.c (struct dwarf2_per_cu_data) <cu>: Extend the comment.
  3801. 2010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
  3802. * cp-support.c (make_symbol_overload_list_namespace): Only search
  3803. static and global blocks.
  3804. (make_symbol_overload_list_block): New function.
  3805. (make_symbol_overload_list): Separate namespace search from block
  3806. search.
  3807. (make_symbol_overload_list_qualified): Use
  3808. make_symbol_overload_list_block.
  3809. 2010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
  3810. * value.h: Created oload_search_type enum.
  3811. (find_overload_match): Use oload_search_type enum.
  3812. * valops.c (find_overload_match): Support combined member and
  3813. non-member search.
  3814. * eval.c (evaluate_subexp_standard): Calls to
  3815. find_overload_match now use oload_search_type enum.
  3816. (oload_method_static): Verify index is a proper value.
  3817. * valarith.c (value_user_defined_cpp_op): Search for and handle
  3818. both member and non-member operators.
  3819. (value_user_defined_cpp_op): New function.
  3820. (value_user_defined_op): New function.
  3821. (value_x_unop): Use value_user_defined_op.
  3822. (value_x_binop): Ditto.
  3823. * cp-support.c (make_symbol_overload_list_using): Added block
  3824. iteration.
  3825. Add check for namespace aliases and imported declarations.
  3826. 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
  3827. * breakpoint.h (owner): Extend the comment.
  3828. 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
  3829. Clear stale specific bp_location from former whole breakpoint.
  3830. * breakpoint.c (delete_breakpoint): Move the stale referencing clear
  3831. code ...
  3832. (free_bp_location): ... here. Rename there the called function to
  3833. bpstat_remove_bp_location_callback.
  3834. (bpstat_remove_breakpoint_callback): Rename to ...
  3835. (bpstat_remove_bp_location_callback): ... here, change DATA resolution
  3836. to struct bp_location. Change the called function to
  3837. bpstat_remove_bp_location. Create new declaration for the function.
  3838. (bpstat_remove_breakpoint): Rename to ...
  3839. (bpstat_remove_bp_location): ..., change the parameter to loc, adjust
  3840. code for the new parameter type.
  3841. 2010-06-07 Nathan Sidwell <nathan@codesourcery.com>
  3842. * README: Make version-agnostic.
  3843. 2010-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
  3844. Fix duplicate types for single DIE.
  3845. * dwarf2read.c (read_structure_type): Move set_descriptive_type after
  3846. set_die_type.
  3847. (read_array_type): Remove type initialization. Recheck get_die_type
  3848. after initial die_type. Move set_die_type before set_descriptive_type.
  3849. (read_set_type): New variable domain_type. Recheck get_die_type after
  3850. initial die_type. Move attr initialization later.
  3851. (read_tag_pointer_type, read_tag_reference_type): New variable
  3852. target_type. Recheck get_die_type after initial die_type.
  3853. (read_tag_ptr_to_member_type): Recheck get_die_type after initial
  3854. die_type and die_containing_type.
  3855. (read_tag_const_type, read_tag_volatile_type, read_subroutine_type):
  3856. Recheck get_die_type after initial die_type.
  3857. (read_subrange_type): Recheck get_die_type after initial die_type.
  3858. Move set_die_type before set_descriptive_type.
  3859. (set_die_type): Extend the function comment. Call complaint if DIE has
  3860. some type already set.
  3861. 2010-06-05 Vladimir Prus <vladimir@codesourcery.com>
  3862. * mi/mi-main.c (mi_cmd_list_thread_groups): Adjust
  3863. for current naming of thread groups (iN, not N).
  3864. 2010-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
  3865. * ada-lang.c (ada_operator_length): Constify `struct expression'.
  3866. * parse.c (operator_length): Likewise.
  3867. (operator_length_standard): Likewise.
  3868. * parser-defs.h (operator_length): Likewise.
  3869. (operator_length_standard): Likewise.
  3870. (struct exp_descriptor <operator_length>): Likewise.
  3871. 2010-06-04 Doug Evans <dje@google.com>
  3872. Add support for enabling/disabling individual pretty-printers.
  3873. * python/py-prettyprint.c (search_pp_list): Skip disabled printers.
  3874. * python/python-internal.h (gdbpy_enabled_cst): Declare.
  3875. * python/python.c (gdbpy_enabled_cst): Define.
  3876. (_initialize_python): Initialize gdbpy_enabled_cst.
  3877. * NEWS: Add entry.
  3878. 2010-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
  3879. * breakpoint.c (update_global_location_list): Fix comment typo.
  3880. 2010-06-04 Hui Zhu <teawater@gmail.com>
  3881. * dwarf2loc.c (disassemble_dwarf_expression): Change ul to l.
  3882. 2010-06-03 Doug Evans <dje@google.com>
  3883. * configure.ac: Don't fail if python is unusable when
  3884. configured with --with-python=auto.
  3885. * configure: Regenerate.
  3886. 2010-06-03 Sami Wagiaalla <swagiaal@redhat.com>
  3887. * dwarf2read.c (new_symbol): Remove redundant naming of symbol.
  3888. 2010-06-03 Pierre Muller <muller@ics.u-strasbg.fr>
  3889. * valprint.h (get_array_bounds): Change low and high parameter types
  3890. to LONGEST *.
  3891. * valprint.c (get_array_bounds): Use get_discrete_bounds call to
  3892. compute bounds.
  3893. (val_print_array_elements): Adapt to change above.
  3894. * ada-valprint.c (print_optional_low_bound): Adapt to change above.
  3895. * p-valprint.c (pascal_val_print): Likewise.
  3896. 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
  3897. * symfile.c (init_filename_language_table): New extensions .for, .FOR,
  3898. .ftn, .FTN, .fpp, .FPP, .f90, .F90, .f95, .F95, .f03, .F03, .f08 and
  3899. .F08.
  3900. 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
  3901. Support DW_TAG_module as separate namespaces.
  3902. * dwarf2read.c (typename_concat): New parameter physname.
  3903. (read_module_type): New function and declaration.
  3904. (scan_partial_symbols): Scan also DW_TAG_module children.
  3905. (partial_die_parent_scope): Accept scope even from DW_TAG_module. Pass
  3906. to typename_concat backward compatible physname value 0.
  3907. (partial_die_full_name, read_namespace_type): Pass to typename_concat
  3908. backward compatible physname value 0.
  3909. (add_partial_module, read_module): Remove FIXME comment.
  3910. (process_die) <DW_TAG_module>: Set PROCESSING_HAS_NAMESPACE_INFO.
  3911. (die_needs_namespace) <DW_TAG_variable>: Allow returning true even for
  3912. DIEs under DW_TAG_module.
  3913. (dwarf2_compute_name): Move the ada block for DW_AT_linkage_name and
  3914. DW_AT_MIPS_linkage_name first, extend it for language_fortran
  3915. && physname and return there instead of just setting NAME. Extend
  3916. the main block for language_fortran. Pass physname parameter to the
  3917. typename_concat call.
  3918. (read_import_statement, read_func_scope, get_scope_pc_bounds)
  3919. (load_partial_dies, determine_prefix): Support also DW_TAG_module.
  3920. (new_symbol): Fill in cplus_specific.demangled_name if it is still
  3921. missing from SYMBOL_SET_NAMES in the language_fortran case.
  3922. (new_symbol) <DW_TAG_variable>: Force LOC_UNRESOLVED for gfortran module
  3923. variables.
  3924. (read_type_die) <DW_TAG_module>: New.
  3925. (MAX_SEP_LEN): Increase to 7.
  3926. (typename_concat): New parameter physname. New variable lead. Support
  3927. also language_fortran.
  3928. * f-exp.y (yylex): Consider : also as a symbol name character class.
  3929. * f-lang.c: Include cp-support.h.
  3930. (f_word_break_characters, f_make_symbol_completion_list): New functions.
  3931. (f_language_defn): Use cp_lookup_symbol_nonlocal,
  3932. f_word_break_characters and f_make_symbol_completion_list.
  3933. * f-typeprint.c (f_type_print_base) <TYPE_CODE_MODULE>: New.
  3934. * gdbtypes.h (enum type_code) <TYPE_CODE_MODULE>: New.
  3935. * symtab.c (symbol_init_language_specific): Support language_fortran.
  3936. (symbol_find_demangled_name): New comment on language_fortran.
  3937. (symbol_natural_name, symbol_demangled_name): Use demangled_name even
  3938. for language_fortran.
  3939. (lookup_symbol_aux_local): Check imports also for language_fortran.
  3940. (default_make_symbol_completion_list): Rename to ...
  3941. (default_make_symbol_completion_list_break_on): ... this name. New
  3942. parameter break_on, use it.
  3943. (default_make_symbol_completion_list): New stub.
  3944. * symtab.h (default_make_symbol_completion_list_break_on): New
  3945. prototype.
  3946. 2010-06-02 Joel Brobecker <brobecker@adacore.com>
  3947. * remote.c (remote_get_noisy_reply): Remove trailing "\n" in call
  3948. to error.
  3949. 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
  3950. * dwarf2read.c (typename_concat): Add const to the variable sep.
  3951. 2010-06-02 Tom Tromey <tromey@redhat.com>
  3952. * dwarf2loc.h (dwarf2_per_cu_data): Declare.
  3953. * dwarf2read.c (dwarf_stack_op_name): No longer static. Return
  3954. type is const. Add 'def' argument. Add missing operators, remove
  3955. unhandled ones.
  3956. (decode_locdesc): Update.
  3957. (dwarf2_always_disassemble): New global.
  3958. (show_dwarf2_always_disassemble): New function.
  3959. (_initialize_dwarf2_read): Add always-disassemble.
  3960. (dwarf2_per_cu_offset_size): New function.
  3961. * dwarf2loc.c (dwarf2_always_disassemble): Declare.
  3962. (piece_end_p): New function.
  3963. (locexpr_describe_location_piece): Replace 'size' argument with
  3964. 'end'. Use piece_end_p. Rewrite recognition of TLS. Recognize
  3965. some constants. Remove errors.
  3966. (disassemble_dwarf_expression): New function.
  3967. (locexpr_describe_location_1): Use disassemble_dwarf_expression.
  3968. Add 'offset_size' argument.
  3969. (loclist_describe_location): Change output formatting.
  3970. * dwarf2expr.h (dwarf_stack_op_name): Declare.
  3971. 2010-06-02 Sami Wagiaalla <swagiaal@redhat.com>
  3972. * cp-support.c (make_symbol_overload_list_adl_namespace): Handle
  3973. anonymous type case.
  3974. 2010-06-02 Pierre Muller <muller@ics.u-strasbg.fr>
  3975. * dwarf2read.c (read_subrange_type): Handle missing base type
  3976. according to Dwarf-2 specifications.
  3977. 2010-06-01 Sergio Durigan Junior <sergiodj@redhat.com>
  3978. * expprint.c (print_subexp_standard): Remove exp_opcodes BINOP_INCL,
  3979. BINOP_EXCL.
  3980. (op_name_standard): Remove exp_opcodes BINOP_INCL, BINOP_EXCL,
  3981. UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH.
  3982. (dump_subexp_body_standard): Remove exp_opcodes BINOP_INCL,
  3983. BINOP_EXCL, UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD,
  3984. UNOP_CHMAX, UNOP_CHMIN.
  3985. * expression.h (enum exp_opcode) <BINOP_INCL, BINOP_EXCL,
  3986. UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD, UNOP_CHMAX,
  3987. UNOP_CHMIN>: Remove opcodes.
  3988. 2010-06-01 Pierre Muller <muller@ics.u-strasbg.fr>
  3989. * dwarf2read.c (read_func_scope): Do not complain for
  3990. external function if bounds are not found.
  3991. 2010-06-01 Pedro Alves <pedro@codesourcery.com>
  3992. * NEWS: Mention gdbserver fast tracepoints support.
  3993. 2010-05-31 Pierre Muller <muller@ics.u-strasbg.fr>
  3994. * windows-nat.c (GetConsoleFontSize, GetCurrentConsoleFont):
  3995. New macros.
  3996. (windows_set_console_info): New function.
  3997. (windows_create_inferior): Call windows_set_console_info
  3998. if NEW_CONSOLE is true.
  3999. (bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): New functions.
  4000. (_initialize_loadable): Initialize GetConsoleFontSize and
  4001. GetCurrentConsoleFont.
  4002. 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
  4003. * Makefile.in (RDYNAMIC): New.
  4004. (SFILES): Add proc-service.list.
  4005. * config/alpha/alpha-linux.mh (NAT_CDEPS): New.
  4006. (LOADLIBES): Replace -rdynamic by $(RDYNAMIC).
  4007. * config/arm/linux.mh: Likewise.
  4008. * config/i386/linux.mh: Likewise.
  4009. * config/i386/linux64.mh: Likewise.
  4010. * config/ia64/linux.mh: Likewise.
  4011. * config/m32r/linux.mh: Likewise.
  4012. * config/m68k/linux.mh: Likewise.
  4013. * config/mips/linux.mh: Likewise.
  4014. * config/pa/linux.mh: Likewise.
  4015. * config/powerpc/linux.mh: Likewise.
  4016. * config/powerpc/ppc64-linux.mh: Likewise.
  4017. * config/s390/s390.mh: Likewise.
  4018. * config/sparc/linux.mh: Likewise.
  4019. * config/sparc/linux64.mh: Likewise.
  4020. * config/xtensa/linux.mh: Likewise.
  4021. * configure.ac: New RDYNAMIC on native host and GCC.
  4022. (solaris*): Replace -Wl,-export-dynamic by $RDYNAMIC.
  4023. * configure: Regenerate.
  4024. * proc-service.list: New.
  4025. 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
  4026. * linux-nat.c (linux_nat_core_of_thread_1): Fix crash on invalid
  4027. CONTENT.
  4028. 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
  4029. * linux-nat.c (linux_nat_wait_1): Do not call
  4030. linux_nat_core_of_thread_1 on TARGET_WAITKIND_EXITED or
  4031. TARGET_WAITKIND_SIGNALLED.
  4032. 2010-05-27 Joel Brobecker <brobecker@adacore.com>
  4033. * ada-lang.c (ada_inferior_data): New struct.
  4034. (ada_inferior_data): New static global.
  4035. (ada_inferior_data_cleanup, get_ada_inferior_data, ada_inferior_exit)
  4036. (ada_get_tsd_type): New functions.
  4037. (ada_tag_name_2): Use ada_get_tsd_type instead of ada_find_any_type
  4038. to look the tsd type up.
  4039. (_initialize_ada_language): Attach ada_inferior_exit to inferior_exit
  4040. event. Set ada_inferior_data.
  4041. 2010-05-27 Pedro Alves <pedro@codesourcery.com>
  4042. * remote.c (unpack_varlen_hex): Remove forward declaration.
  4043. (remote_console_output): Make static, and add forward declaration.
  4044. * remote.h: Drop FIXME comment.
  4045. (unpack_varlen_hex): Declare.
  4046. (remote_console_output, remote_cisco_objfile_relocate)
  4047. (deprecated_target_resume_hook, deprecated_target_wait_loop_hook):
  4048. Delete declarations.
  4049. * tracepoint.c: Include "remote.h".
  4050. (unpack_varlen_hex): Delete declaration.
  4051. 2010-05-27 Tom Tromey <tromey@redhat.com>
  4052. * dwarf2loc.c (struct piece_closure) <refc>: New field.
  4053. (allocate_piece_closure): Initialize refc.
  4054. (copy_pieced_value_closure): Use refc.
  4055. (free_pieced_value_closure): Likewise.
  4056. 2010-05-27 Tom Tromey <tromey@redhat.com>
  4057. * arm-tdep.c (push_stack_item): 'contents' now const.
  4058. (arm_push_dummy_call): Make 'val' const. Use value_contents, not
  4059. value_contents_writeable. Introduce new temporary.
  4060. 2010-05-27 Tom Tromey <tromey@redhat.com>
  4061. * findcmd.c (parse_find_args): Use value_contents, not
  4062. value_contents_raw.
  4063. 2010-05-27 Tom Tromey <tromey@redhat.com>
  4064. * alpha-tdep.c (alpha_push_dummy_call): Make alpha_arg.contents
  4065. const. Use value_contents, not value_contents_writeable.
  4066. 2010-05-27 Joel Brobecker <brobecker@adacore.com>
  4067. * ada-lang.c (ensure_lval): Replace call to value_contents_raw
  4068. by call to value_contents.
  4069. 2010-05-27 Ozkan Sezer <sezeroz@gmail.com>
  4070. * MAINTAINERS: Add myself for write after approval privileges.
  4071. 2010-05-26 Doug Evans <dje@google.com>
  4072. Allow python to find its files if moved from original location.
  4073. * acinclude.m4 (GDB_AC_DEFINE_RELOCATABLE): New function.
  4074. (GDB_AC_WITH_DIR): Call it.
  4075. * configure.ac: Define WITH_PYTHON_PATH if we can find the
  4076. python installation directory.
  4077. * config.in: Regenerate.
  4078. * configure: Regenerate.
  4079. * defs.h (python_libdir): Declare.
  4080. * main.c (python_libdir): Define.
  4081. (captured_main): Initialize python_libdir.
  4082. * python/python.c (_initialize_python): #ifdef WITH_PYTHON_PATH,
  4083. call Py_SetProgramName to make sure python can find its libraries
  4084. and modules.
  4085. * configure.ac: Try to use python's distutils to fetch compilation
  4086. parameters.
  4087. * configure: Regenerate.
  4088. * python/python-config.py: New file.
  4089. 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
  4090. * ser-tcp.c (net_open): Check error return from socket() call by its
  4091. equality to -1 not by it being negative.
  4092. (net_close): Likewise.
  4093. 2010-05-26 Pedro Alves <pedro@codesourcery.com>
  4094. * NEWS: Mention the `qRelocInsn' feature.
  4095. * gdbarch.sh (relocate_instruction): New.
  4096. * amd64-tdep.c (rip_relative_offset): New.
  4097. (append_insns): New.
  4098. (amd64_relocate_instruction): New.
  4099. (amd64_init_abi): Install it.
  4100. * i386-tdep.c (append_insns): New.
  4101. (i386_relocate_instruction): New.
  4102. (i386_gdbarch_init): Install it.
  4103. * remote.c (remote_get_noisy_reply): Handle qRelocInsn requests.
  4104. * gdbarch.h, gdbarch.c: Regenerate.
  4105. 2010-05-26 Tom Tromey <tromey@redhat.com>
  4106. * dwarf2loc.h (struct dwarf2_locexpr_baton) <data>: Now const.
  4107. (struct dwarf2_loclist_baton) <data>: Likewise.
  4108. * dwarf2loc.c (find_location_expression): Constify return type.
  4109. (dwarf2_evaluate_loc_desc): Make 'data' argument const.
  4110. (dwarf2_loc_desc_needs_frame): Likewise.
  4111. (loclist_read_variable): Constify.
  4112. (loclist_describe_location): Likewise.
  4113. (loclist_tracepoint_var_ref): Likewise.
  4114. 2010-05-25 Tom Tromey <tromey@redhat.com>
  4115. * dwarf2loc.c (dwarf_expr_frame_base): Constify.
  4116. (dwarf_expr_frame_base_1): Likewise.
  4117. (read_pieced_value): Update.
  4118. (needs_frame_frame_base): Constify.
  4119. (dwarf2_tracepoint_var_loc): Likewise.
  4120. (dwarf2_tracepoint_var_access): Likewise.
  4121. (locexpr_describe_location_piece): Likewise.
  4122. (locexpr_describe_location_1): Likewise.
  4123. * dwarf2expr.h (struct dwarf_expr_context) <get_frame_base>:
  4124. Constify.
  4125. (data): Now const.
  4126. (struct dwarf_expr_piece) <v.literal.data>: Likewise.
  4127. (dwarf_expr_eval, read_uleb128, read_sleb128)
  4128. (dwarf2_read_address): Update.
  4129. * dwarf2expr.c (dwarf_expr_eval): Constify.
  4130. (read_uleb128): Likewise.
  4131. (read_sleb128): Likewise.
  4132. (dwarf2_read_address): Likewise.
  4133. (require_composition): Likewise.
  4134. (execute_stack_op): Likewise.
  4135. * dwarf2-frame.h (struct dwarf2_frame_state_reg) <loc.exp>: Now a
  4136. "const gdb_byte *".
  4137. * dwarf2-frame.c (struct dwarf2_frame_state_reg_info) <cfa_exp>:
  4138. Now const.
  4139. (no_get_frame_base): Constify.
  4140. (execute_stack_op): Likewise.
  4141. (execute_cfa_program): Likewise.
  4142. (read_encoded_value): Likewise.
  4143. 2010-05-25 Doug Evans <dje@google.com>
  4144. * ser-pipe.c (pipe_open): Ignore SIGINTs in child.
  4145. * event-loop.h (GDB_READABLE, GDB_WRITABLE, GDB_EXCEPTION): Move to ...
  4146. * event-loop.c: ... here.
  4147. * tui/tui-io.c (tui_readline_output): Rename parameter `code' to
  4148. `error' for clarity.
  4149. (tui_getc): Pass correct value for `error' parameter to
  4150. tui_readline_output.
  4151. Add python gdb.GdbError and gdb.string_to_argv.
  4152. * NEWS: Document them.
  4153. * python/py-cmd.c (cmdpy_function): Don't print a traceback if
  4154. the exception is gdb.GdbError. Print a second traceback if there's
  4155. an error computing the error message.
  4156. (gdbpy_string_to_argv): New function.
  4157. * python/py-utils.c (gdbpy_obj_to_string): New function.
  4158. (gdbpy_exception_to_string): New function.
  4159. * python/python-internal.h (gdbpy_string_to_argv): Declare.
  4160. (gdbpy_obj_to_string, gdbpy_exception_to_string): Declare.
  4161. (gdbpy_gdberror_exc): Declare.
  4162. * python/python.c (gdbpy_gdberror_exc): New global.
  4163. (_initialize_python): Initialize gdbpy_gdberror_exc and create
  4164. gdb.GdbError.
  4165. (GdbMethods): Add string_to_argv.
  4166. 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
  4167. * windows-nat.c (display_selector): Call GetLastError to give better
  4168. failure explanation.
  4169. 2010-05-24 Pedro Alves <pedro@codesourcery.com>
  4170. * config.in: Regenerate.
  4171. 2010-05-23 Jan Kratochvil <jan.kratochvil@redhat.com>
  4172. Code cleanup.
  4173. * target.c (push_target): Return only void. Remove the return value
  4174. comment.
  4175. * target.h (push_target): Return only void.
  4176. 2010-05-23 Pedro Alves <pedro@codesourcery.com>
  4177. Update gnulib from latest git.
  4178. (250b80067c1e1d8faa0c42fb572f721975b929c5)
  4179. * gnulib/memcmp.c: Removed.
  4180. * gnulib/memchr.valgrind: New.
  4181. * gnulib/stddef.in.h: New.
  4182. * gnulib/Makefile.am: Updated.
  4183. * gnulib/memchr.c: Updated.
  4184. * gnulib/memmem.c: Updated.
  4185. * gnulib/stdint.in.h: Updated.
  4186. * gnulib/str-two-way.h: Updated.
  4187. * gnulib/string.in.h: Updated.
  4188. * gnulib/wchar.in.h: Updated.
  4189. * gnulib/extra/link-warning.h: Removed.
  4190. * gnulib/extra/c++defs.h: New.
  4191. * gnulib/extra/warn-on-use.h: New.
  4192. * gnulib/extra/arg-nonnull.h: Updated.
  4193. * gnulib/m4/extensions.m4: Updated.
  4194. * gnulib/m4/gnulib-cache.m4: Updated.
  4195. * gnulib/m4/gnulib-common.m4: Updated.
  4196. * gnulib/m4/gnulib-comp.m4: Updated.
  4197. * gnulib/m4/gnulib-tool.m4: Updated.
  4198. * gnulib/m4/include_next.m4: Updated.
  4199. * gnulib/m4/longlong.m4: Updated.
  4200. * gnulib/m4/memchr.m4: Updated.
  4201. * gnulib/m4/memmem.m4: Updated.
  4202. * gnulib/m4/stdint.m4: Updated.
  4203. * gnulib/m4/string_h.m4: Updated.
  4204. * gnulib/m4/memcmp.m4: Removed.
  4205. * gnulib/m4/onceonly_2_57.m4: Removed.
  4206. * gnulib/m4/00gnulib.m4: New.
  4207. * gnulib/m4/mmap-anon.m4: New.
  4208. * gnulib/m4/multiarch.m4: New.
  4209. * gnulib/m4/onceonly.m4: New.
  4210. * gnulib/m4/stddef_h.m4: New.
  4211. * gnulib/m4/warn-on-use.m4: New.
  4212. * gnulib/m4/wchar.m4: Removed.
  4213. * gnulib/m4/wchar_h.m4: New.
  4214. * gnulib/m4/wchar_t.m4: New.
  4215. * gnulib/m4/wint_t.m4: New.
  4216. * aclocal.m4: Regenerate.
  4217. * config.in: Likewise.
  4218. * configure: Likewise.
  4219. * gnulib/Makefile.in: Likewise.
  4220. 2010-05-21 Tom Tromey <tromey@redhat.com>
  4221. * dwarf2loc.c (extract_bits_primitive): New function.
  4222. (extract_bits): Likewise.
  4223. (insert_bits): Likewise.
  4224. (copy_bitwise): Likewise.
  4225. (read_pieced_value): Do all operations in bits.
  4226. (write_pieced_value): Likewise.
  4227. * dwarf2expr.h (struct dwarf_expr_piece) <offset>: New field.
  4228. * dwarf2expr.c (add_piece): New arguments bit_piece, offset.
  4229. Always use xrealloc to resize piece array.
  4230. (execute_stack_op) <DW_OP_reg0>: Handle DW_OP_bit_piece.
  4231. <DW_OP_piece>: Update.
  4232. <DW_OP_bit_piece>: New case.
  4233. 2010-05-21 Tom Tromey <tromey@redhat.com>
  4234. * dwarf2loc.c (read_pieced_value): Exit loop when result is full.
  4235. <DWARF_VALUE_OPTIMIZED_OUT>: New case.
  4236. * dwarf2expr.h (enum dwarf_value_location)
  4237. <DWARF_VALUE_OPTIMIZED_OUT>: New constant.
  4238. * dwarf2expr.c (dwarf_expr_stack_empty_p): New function.
  4239. (add_piece): Handle empty piece.
  4240. (execute_stack_op) <DW_OP_piece>: Handle
  4241. DWARF_VALUE_OPTIMIZED_OUT.
  4242. 2010-05-21 Tom Tromey <tromey@redhat.com>
  4243. * eval.c (evaluate_subexp_standard) <BINOP_SUBSCRIPT>: Call
  4244. evaluate_subexp, not evaluate_subexp_with_coercion.
  4245. 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
  4246. * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
  4247. attribute.
  4248. 2010-05-21 Tom Tromey <tromey@redhat.com>
  4249. * dwarf2loc.c (read_pieced_value): Work properly when 'v' has an
  4250. offset.
  4251. (write_pieced_value): Likewise.
  4252. 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
  4253. * dwarf2read.c (process_die): Also allow DW_TAG_const_type
  4254. and DW_TAG_volatile_type.
  4255. (new_symbol): Likewise.
  4256. 2010-05-20 Pierre Muller <muller@ics.u-strasbg.fr>
  4257. * p-valprint.c (pascal_val_print): Call get_array_bounds
  4258. to obtain the number of elements in an array.
  4259. 2010-05-19 Doug Evans <dje@google.com>
  4260. * python.c (gdbpy_print_stack): Ensure output ends with a newline.
  4261. * python.c (source_python_script): Add comment.
  4262. (source_python_script_for_objfile): Remove unnecessary call to
  4263. gdbpy_print_stack.
  4264. 2010-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
  4265. Sergio Durigan Junior <sergiodj@redhat.com>
  4266. Code cleanup.
  4267. * parse.c (exp_iterate): Use operator_length wrapper function.
  4268. 2010-05-18 Michael Snyder <msnyder@vmware.com>
  4269. * ada-lang.c: White space.
  4270. * ada-typeprint.c: White space.
  4271. * ada-valprint.c: White space.
  4272. * addrmap.c: White space.
  4273. * auxv.c: White space.
  4274. * ax-gdb.c: White space.
  4275. 2010-05-18 Hui Zhu <teawater@gmail.com>
  4276. * linux-fork.c (inferior_call_waitpid_cleanup): Add check
  4277. for oldfp.
  4278. (inferior_call_waitpid): Move make_cleanup out of check.
  4279. Check the return of waitpid.
  4280. (delete_checkpoint_command): Add pptid to save fi->parent_ptid.
  4281. 2010-05-17 Michael Snyder <msnyder@vmware.com>
  4282. * tui/tui.c: White space.
  4283. * tui/tui-data.c: White space.
  4284. * tui/tui-disasm.c: White space.
  4285. * tui/tui-file.c: White space.
  4286. * tui/tui-interp.c: White space.
  4287. * tui/tui-main.c: White space.
  4288. * tui/tui-out.c: White space.
  4289. * tui/tui-regs.c: White space.
  4290. * tui/tui-source.c: White space.
  4291. * tui/tui-stack.c: White space.
  4292. * tui/tui-win.c: White space.
  4293. * tui/tui-winsource.c: White space.
  4294. * procfs.c: White space.
  4295. * python/py-auto-load.c: White space.
  4296. * python/py-block.c: White space.
  4297. * python/py-breakpoint.c: White space.
  4298. * python/py-cmd.c: White space.
  4299. * python/py-function.c: White space.
  4300. * python/py-lazy-string.c: White space.
  4301. * python/py-objfile.c: White space.
  4302. * python/py-param.c: White space.
  4303. * python/py-prettyprint.c: White space.
  4304. * python/py-progspace.c: White space.
  4305. * python/py-symtab.c: White space.
  4306. * python/python.c: White space.
  4307. * python/py-type.c: White space.
  4308. * python/py-utils.c: White space.
  4309. * python/py-value.c: White space.
  4310. * mi/mi-cmd-break.c: White space.
  4311. * mi/mi-cmd-env.c: White space.
  4312. * mi/mi-cmds.c: White space.
  4313. * mi/mi-cmd-stack.c: White space.
  4314. * mi/mi-cmd-var.c: White space.
  4315. * mi/mi-console.c: White space.
  4316. * mi/mi-getopt.c: White space.
  4317. * mi/mi-interp.c: White space.
  4318. * mi/mi-main.c: White space.
  4319. * mi/mi-out.c: White space.
  4320. * mi/mi-parse.c: White space.
  4321. * cli/cli-cmds.c: White space.
  4322. * cli/cli-decode.c: White space.
  4323. * cli/cli-dump.c: White space.
  4324. * cli/cli-interp.c: White space.
  4325. * cli/cli-logging.c: White space.
  4326. * cli/cli-script.c: White space.
  4327. * cli/cli-setshow.c: White space.
  4328. * valarith.c: White space.
  4329. * valops.c: White space.
  4330. * valprint.c: White space.
  4331. * value.c: White space.
  4332. * varobj.c: White space.
  4333. * xcoffread.c: White space.
  4334. * xml-support.c: White space.
  4335. * xml-tdesc.c: White space.
  4336. 2010-05-17 Andreas Schwab <schwab@redhat.com>
  4337. PR gdb/11092
  4338. * c-lang.c (c_printstr): Compute real length of NUL terminated
  4339. string at first.
  4340. 2010-05-17 Joel Brobecker <brobecker@adacore.com>
  4341. * parse.c (parse_exp_in_context): When block is not NULL, use
  4342. its associated language to parse the expression instead of
  4343. the current_language.
  4344. 2010-05-17 Joel Brobecker <brobecker@adacore.com>
  4345. * jv-lang.c (java_lookup_class): Remove commented out code.
  4346. (type_from_class): Likewise.
  4347. (java_op_print_tab): Remove commented-out elements.
  4348. 2010-05-17 Joel Brobecker <brobecker@adacore.com>
  4349. * ada-lang.c (to_fixed_range_type): The the raw index type as
  4350. argument instead of the raw type name. Remove orig_type parameter.
  4351. Update calls throughout.
  4352. (ada_fixup_array_indexes_type): New function.
  4353. (ada_array_bound_from_type): Add call to ada_fixup_array_indexes_type.
  4354. * ada-lang.h (ada_fixup_array_indexes_type): Add declaration.
  4355. * ada-typeprint.c (print_range_type): Renames print_range_type_named.
  4356. Remove name parameter.
  4357. (print_array_type): Add call to ada_fixup_array_indexes_type.
  4358. Update calls to print_range_type.
  4359. (ada_print_type): Update calls to print_range_type.
  4360. 2010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
  4361. * dwarf2read.c (read_set_type): Set type length if
  4362. DW_AT_byte_size attribute is present.
  4363. 2010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
  4364. * p-valprint.c (pascal_val_print): Handle set type if range limits
  4365. are undefined but size is known.
  4366. 2010-05-17 Pedro Alves <pedro@codesourcery.com>
  4367. * procfs.c: Reformat.
  4368. 2010-05-16 Michael Snyder <msnyder@vmware.com>
  4369. * target.c: White space.
  4370. * target-descriptions.c: White space.
  4371. * target-memory.c: White space.
  4372. * thread.c: White space.
  4373. * top.c: White space.
  4374. * tracepoint.c: White space.
  4375. * trad-frame.c: White space.
  4376. * tramp-frame.c: White space.
  4377. * ui-file.c: White space.
  4378. * ui-out.c: White space.
  4379. * user-regs.c: White space.
  4380. * utils.c: White space.
  4381. * scm-exp.c: White space.
  4382. * scm-lang.c: White space.
  4383. * scm-valprint.c: White space.
  4384. * sentinel-frame.c: White space.
  4385. * ser-base.c: White space.
  4386. * ser-go32.c: White space.
  4387. * serial.c: White space.
  4388. * ser-mingw.c: White space.
  4389. * ser-pipe.c: White space.
  4390. * ser-tcp.c: White space.
  4391. * ser-unix.c: White space.
  4392. * solib.c: White space.
  4393. * solib-darwin.c: White space.
  4394. * solib-frv.c: White space.
  4395. * solib-irix.c: White space.
  4396. * solib-osf.c: White space.
  4397. * solib-pa64.c: White space.
  4398. * solib-som.c: White space.
  4399. * solib-spu.c: White space.
  4400. * solib-svr4.c: White space.
  4401. * solib-target.c: White space.
  4402. * source.c: White space.
  4403. * stabsread.c: White space.
  4404. * stack.c: White space.
  4405. * std-regs.c: White space.
  4406. * symfile.c: White space.
  4407. * symmisc.c: White space.
  4408. * symtab.c: White space.
  4409. 2010-05-16 Michael Snyder <msnyder@vmware.com>
  4410. * source.c (_initialize_source): Add "rev" as an abbreviation
  4411. for the "reverse-search" command.
  4412. 2010-05-16 Michael Snyder <msnyder@vmware.com>
  4413. * record.c: White space.
  4414. * regcache.c: White space.
  4415. * reggroups.c: White space.
  4416. * remote-fileio.c: White space.
  4417. * remote-m32r-sdi.c: White space.
  4418. * remote-mips.c: White space.
  4419. * remote-sim.c: White space.
  4420. * remote.c: White space.
  4421. (process_g_packet): Remove orphan braces.
  4422. 2010-05-15 Michael Snyder <msnyder@vmware.com>
  4423. * parse.c: White space.
  4424. * p-lang.c: White space.
  4425. * posix-hdep.c: White space.
  4426. * printcmd.c: White space.
  4427. * progspace.c: White space.
  4428. * prologue-value.c: White space.
  4429. * psymtab.c: White space.
  4430. * p-typeprint.c: White space.
  4431. * p-valprint.c: White space.
  4432. * objc-lang.c: White space.
  4433. * objfiles.c: White space.
  4434. * observer.c: White space.
  4435. * osabi.c: White space.
  4436. * osdata.c: White space.
  4437. * m2-lang.c: White space.
  4438. * m2-valprint.c: White space.
  4439. * macrocmd.c: White space.
  4440. * macroexp.c: White space.
  4441. * macroscope.c: White space.
  4442. * macrotab.c: White space.
  4443. * main.c: White space.
  4444. * maint.c: White space.
  4445. * mdebugread.c: White space.
  4446. * memattr.c: White space.
  4447. * minsyms.c: White space.
  4448. * monitor.c: White space.
  4449. 2010-05-14 Michael Snyder <msnyder@vmware.com>
  4450. * jv-lang.c: White space.
  4451. * jv-typeprint.c: White space.
  4452. * jv-valprint.c: White space.
  4453. * language.c: White space.
  4454. * libunwind-frame.c: White space.
  4455. * linespec.c: White space.
  4456. * linux-nat.c: White space.
  4457. * linux-record.c: White space.
  4458. * linux-thread-db.c: White space.
  4459. * infcall.c: White space.
  4460. * inf-child.c: White space.
  4461. * infcmd.c: White space.
  4462. * inferior.c: White space.
  4463. * inf-loop.c: White space.
  4464. * inflow.c: White space.
  4465. * inline-frame.c: White space.
  4466. * interps.c: White space.
  4467. * gcore.c: White space.
  4468. * gdb.c: White space.
  4469. * gdbtypes.c: White space.
  4470. * gnu-nat.c: White space.
  4471. * gnu-v2-abi.c: White space.
  4472. * gnu-v3-abi.c: White space.
  4473. * findcmd.c: White space.
  4474. * findvar.c: White space.
  4475. * fork-child.c: White space.
  4476. * frame-base.c: White space.
  4477. * frame.c: White space.
  4478. * frame-unwind.c: White space.
  4479. * f-valprint.c: White space.
  4480. * elfread.c: White space.
  4481. * environ.c: White space.
  4482. * eval.c: White space.
  4483. * event-loop.c: White space.
  4484. * event-top.c: White space.
  4485. * exceptions.c: White space.
  4486. * exec.c: White space.
  4487. * expprint.c: White space.
  4488. * dbxread.c: White space.
  4489. * dcache.c: White space.
  4490. * disasm.c: White space.
  4491. * doublest.c: White space.
  4492. * dsrec.c: White space.
  4493. * dummy-frame.c: White space.
  4494. * dwarf2expr.c: White space.
  4495. * dwarf2-frame.c: White space.
  4496. * dwarf2loc.c: White space.
  4497. * dwarf2read.c: White space.
  4498. 2010-05-14 Phil Muldoon <pmuldoon@redhat.com>
  4499. PR python/11482
  4500. * python/py-value.c (valpy_hash): New function.
  4501. (value_object_type): Register valpy_hash.
  4502. 2010-05-14 Hui Zhu <teawater@gmail.com>
  4503. Michael Snyder <msnyder@vmware.com>
  4504. * linux-fork.c (gdbthread.h): New include.
  4505. (fork_info): Add parent_ptid.
  4506. (inferior_call_waitpid_cleanup, inferior_call_waitpid): New
  4507. functions.
  4508. (delete_checkpoint_command): Call inferior_call_waitpid.
  4509. (checkpoint_command): Set parent_ptid.
  4510. 2010-05-13 Michael Snyder <msnyder@vmware.com>
  4511. * dictionary.c: Re-indent to GNU coding standard.
  4512. * charset.c: White space.
  4513. * c-lang.c: White space.
  4514. * cli-out.c: White space.
  4515. * coffread.c: White space.
  4516. * complaints.c: White space.
  4517. * completer.c: White space.
  4518. * corefile.c: White space.
  4519. * corelow.c: White space.
  4520. * cp-abi.c: White space.
  4521. * cp-namespace.c: White space.
  4522. * cp-support.c: White space.
  4523. * cp-valprint.c: White space.
  4524. * c-typeprint.c: White space.
  4525. * c-valprint.c: White space.
  4526. * blockframe.c: White space.
  4527. * breakpoint.c: White space.
  4528. * buildsym.c: White space.
  4529. * blockframe.c: White space.
  4530. * bcache.c: White space.
  4531. * gdbarch.sh: White space, add blank lines.
  4532. * arch-utils.c: Ditto.
  4533. * gdbarch.c: Regenerate.
  4534. * frame.c: White space, add blank lines.
  4535. * stack.c: White space, add blank lines.
  4536. (initialize_stack): Remove long-dead code.
  4537. 2010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
  4538. Code cleanup.
  4539. * dwarf2loc.c (dwarf2_evaluate_loc_desc): Change the parameter to type.
  4540. (locexpr_read_variable, loclist_read_variable): Update the callers.
  4541. 2010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
  4542. Code cleanup.
  4543. * dwarf2read.c (die_type, die_descriptive_type): Remove variable type.
  4544. Remove check of NULL returned by tag_type_to_type.
  4545. (die_containing_type): Remove variable type. Remove type_die variable
  4546. initialization. Remove check of NULL returned by tag_type_to_type.
  4547. 2010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
  4548. PR exp/11530.
  4549. * gdbtypes.c (lookup_struct_elt_type): Also lookup
  4550. names of unnamed structures or unions.
  4551. 2010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
  4552. * procfs.c (proc_watchpoint_address): New function.
  4553. (procfs_stopped_by_watchpoint): Remove useless check after
  4554. find_procinfo_or_die call.
  4555. (procfs_stopped_data_address): New function.
  4556. (procfs_use_watchpoints): Register new watchpoint related function.
  4557. 2010-05-11 Tom Tromey <tromey@redhat.com>
  4558. * eval.c (evaluate_subexp_standard): Revert inadvertent change.
  4559. 2010-05-10 Michael Snyder <msnyder@vmware.com>
  4560. * utils.c: White space cleanup.
  4561. 2010-05-10 Tom Tromey <tromey@redhat.com>
  4562. * eval.c (ptrmath_type_p): Add 'lang' argument.
  4563. (evaluate_subexp_standard): Update.
  4564. (evaluate_subexp_with_coercion): Update.
  4565. * language.h (CAST_IS_CONVERSION): Add 'LANG' argument.
  4566. 2010-05-10 Michael Snyder <msnyder@vmware.com>
  4567. * utils.c (do_fclose_cleanup) Restore local variable.
  4568. 2010-05-09 Doug Evans <dje@google.com>
  4569. * record.c (init_record_core_ops): Rename record_core to record-core.
  4570. 2010-05-08 Joel Brobecker <brobecker@adacore.com>
  4571. Implement task switching on pa-hpux.
  4572. * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): New function.
  4573. (inf_ttrace_target): Set t->to_get_ada_task_ptid.
  4574. 2010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
  4575. * valops.c (find_overload_match): Add missing i18n markup.
  4576. 2010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
  4577. * p-exp.y (exp : SIZEOF '(' exp ')'): New rule.
  4578. 2010-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
  4579. * dwarf2read.c (typename_concat): Use (char *) NULL terminated stdarg
  4580. list for the obconcat call.
  4581. * mdebugread.c (parse_symbol): Likewise.
  4582. * stabsread.c (define_symbol, read_member_functions, read_cpp_abbrev):
  4583. Likewise.
  4584. * symfile.c (obconcat): Replace the s1, s2 and s3 parameters by `...'.
  4585. New variable ap. Remove variables len and val.
  4586. * symfile.h (obconcat): Likewise for the prototype.
  4587. 2010-05-07 Michael Snyder <msnyder@vmware.com>
  4588. * python/python.c (execute_gdb_command): Remove unused variables.
  4589. * python/py-block.c (gdbpy_block_for_pc): Remove unused variable.
  4590. * python/py-breakpoint.c (gdbpy_breakpoint_created):
  4591. Remove unused variable.
  4592. * python/py-cmd.c (cmdpy_function): Remove unused variable.
  4593. (cmdpy_completer): Remove unused variable.
  4594. * python/py-frame.c (frapy_find_sal): Remove unused variable.
  4595. * python/py-function.c (fnpy_call): Remove unused variable.
  4596. * python/py-objfile.c (objfile_to_objfile_object):
  4597. Remove unused variable.
  4598. * python/py-param.c (parmpy_init): Remove unused variable.
  4599. * python/py-prettyprint.c (apply_varobj_pretty_printer):
  4600. Remove unused variable.
  4601. (gdbpy_default_visualizer): Remove unused variable.
  4602. * python/py-progspace.c (pspace_to_pspace_object):
  4603. Remove unused variable.
  4604. * python/py-symtab.c (symtab_and_line_to_sal_object):
  4605. Remove unused variable.
  4606. * python/py-type.c (typy_template_argument):
  4607. Remove unused variable.
  4608. * python/py-value.c (valpy_string): Remove unused variable.
  4609. (convert_value_from_python): Remove unused variables.
  4610. 2010-05-07 Michael Snyder <msnyder@vmware.com>
  4611. * valops.c (value_cast_pointers): Restore unused variable 'type1',
  4612. and use it to compute variable 't1'.
  4613. 2010-05-07 Joel Brobecker <brobecker@adacore.com>
  4614. * ada-lang.c (assign_aggregate): Remove unused variable.
  4615. 2010-05-07 Sami Wagiaalla <swagiaal@redhat.com>
  4616. PR C++/7943:
  4617. * valops.c (find_overload_match): Handle fsym == NULL case.
  4618. Add int no_adl argument.
  4619. (find_oload_champ_namespace_loop): Call make_symbol_overload_list_adl
  4620. when appropriate.
  4621. Add int no_adl argument.
  4622. (find_oload_champ_namespace): Add int no_adl argument.
  4623. * parse.c (operator_length_standard): Return length for OP_ADL_FUNC
  4624. expression.
  4625. * expprint.c (op_name_standard): Added string for OP_ADL_FUNC case.
  4626. * eval.c (evaluate_subexp_standard): Added OP_ADL_FUNC case.
  4627. Evaluate arguments and use them to perform ADL lookup.
  4628. Pass no_adl argument to find_overload_match.
  4629. Disable adl lookup when evaluating a fully qualified OP_FUNCALL.
  4630. * cp-support.h: Added prototype for
  4631. make_symbol_overload_list_namespace.
  4632. * cp-support.c (make_symbol_overload_list_namespace): New function.
  4633. (make_symbol_overload_list_adl_namespace): New function.
  4634. (make_symbol_overload_list_adl): New function.
  4635. (make_symbol_overload_list_using): Moved code to add function to
  4636. overload set to make_symbol_overload_list_namespace.
  4637. * c-exp.y: create UNKNOWN_CPP_NAME token.
  4638. Add parse rule for ADL functions.
  4639. (classify_name): Recognize an UNKNOWN_CPP_NAME.
  4640. 2010-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
  4641. * fbsd-nat.c (fbsd_make_corefile_notes): Add cast to NULL used as
  4642. sentinel.
  4643. 2010-05-07 Joel Brobecker <brobecker@adacore.com>
  4644. Implement task switching on solaris targets.
  4645. * sol-thread.c (thread_db_find_thread_from_tid)
  4646. (sol_get_ada_task_ptid): New functions.
  4647. (init_sol_thread_ops): Set sol_thread_ops.to_get_ada_task_ptid.
  4648. 2010-05-07 Pedro Alves <pedro@codesourcery.com>
  4649. * remote.c (remote_query_supported_append): Use reconcat.
  4650. (remote_query_supported): Install a cleanup. Use reconcat.
  4651. 2010-05-07 Pedro Alves <pedro@codesourcery.com>
  4652. * gdbarch.sh (qsupported): Delete.
  4653. * gdbarch.h, gdbarch.c: Regenerate.
  4654. * remote.c (remote_query_supported): Remove use of
  4655. gdbarch_qsupported.
  4656. 2010-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
  4657. * xml-syscall.c (syscall_start_syscalls_info): Remove unused
  4658. function.
  4659. 2010-05-06 Michael Snyder <msnyder@vmware.com>
  4660. * xml-support.c (xinclude_start_include): Delete unused variable.
  4661. (xml_process_xincludes): Delete unused variable.
  4662. * xml-syscall.c (syscall_parse_xml): Delete unused variable.
  4663. * target-descriptions.c (tdesc_gdb_type): Delete unused variable.
  4664. (tdesc_find_arch_register): Delete unused variable.
  4665. (tdesc_use_registers): Delete unused variable.
  4666. * xml-tdesc.c (tdesc_start_target): Delete unused variable.
  4667. * inferior.c (print_inferior): Delete unused variable.
  4668. * record.c (record_open_1): Delete unused variable.
  4669. (record_restore): Delete unused variable.
  4670. (cmd_record_save): Delete unused variable.
  4671. * gcore.c (derive_heap_segment): Delete unused variable.
  4672. (objfile_find_memory_regions): Use unused variable.
  4673. * jit.c (jit_inferior_init): Delete unused variable.
  4674. * progspace.c (clone_program_space): Delete unused variable.
  4675. (pspace_empty_p): Delete unused variable.
  4676. * frame-unwind.c (frame_unwind_find_by_frame):
  4677. Delete unused variable.
  4678. * gnu-v2-abi.c (gnuv2_value_rtti_type): Delete unused variable.
  4679. * cp-support.c (mangled_name_to_comp): Delete unused variable.
  4680. (method_name_from_physname): Delete unused variable.
  4681. (cp_func_name): Delete unused variable.
  4682. (cp_validate_operator): Delete unused variable.
  4683. * cp-namespace.c (cp_scan_for_anonymous_namespaces):
  4684. Delete unused variable.
  4685. * trad-frame.c (trad_frame_get_prev_register):
  4686. Delete unused variable.
  4687. * tramp-frame.c (tramp_frame_cache): Delete unused variable.
  4688. * serial.c (serial_for_fd): Delete unused variable.
  4689. * mdebugread.c (psymtab_to_symtab_1): Delete unused variable.
  4690. * top.c (execute_command): Delete unused variable.
  4691. (init_main): Delete unused variable.
  4692. * utils.c (do_fclose_cleanup): Delete unused variable.
  4693. (do_all_inferior_continuations): Delete unused variable.
  4694. (initialize_utils): Delete unused variable.
  4695. (internal_problem_mode): Delete unused global.
  4696. * frame.c (get_prev_frame): Delete unused global.
  4697. (get_frame_locals_address): Delete unused global.
  4698. (get_frame_args_address): Delete unused global.
  4699. * p-typeprint.c (pascal_type_print_base): Delete unused variable.
  4700. (pascal_type_print_varspec_prefix): Delete unused variable.
  4701. * f-typeprint.c (f_type_print_base): Delete unused variable.
  4702. (f_type_print_varspec_suffix): Delete unused variable.
  4703. * m2-typeprint.c (m2_print_type): Delete unused variable.
  4704. (m2_long_set): Delete unused variable.
  4705. * ada-valprint.c (ada_val_print_1): Delete unused variable.
  4706. * d-valprint.c (dynamic_array_type): Delete unused variable.
  4707. * f-valprint.c (f77_get_dynamic_length_of_aggregate):
  4708. Delete unused variable.
  4709. (f77_create_arrayprint_offset_tbl): Delete unused variable.
  4710. * m2-valprint.c (m2_val_print): Delete unused variable.
  4711. * ui-out.c (ui_out_field_int): Delete unused variable.
  4712. (ui_out_field_fmt_int): Delete unused variable.
  4713. * varobj.c (varobj_list_children): Delete unused variable.
  4714. (varobj_set_value): Delete unused variable.
  4715. (install_new_value_visualizer): Delete unused variable.
  4716. (varobj_set_visualizer): Delete unused variable.
  4717. (varobj_update): Delete unused variable.
  4718. (varobj_editable_p): Delete unused variable.
  4719. (c_value_of_root): Delete unused variable.
  4720. (cplus_describe_child): Delete unused variable.
  4721. * ada-lang.c (add_defn_to_vec): Delete unused variable.
  4722. (decode_constrained_packed_array_type): Delete unused variable.
  4723. (add_defn_to_vec): Delete unused variable.
  4724. (symbol_completion_match): Delete unused variable.
  4725. (value_tag_from_contents_and_address): Delete unused variable.
  4726. (ada_evaluate_subexp): Delete unused variable.
  4727. * c-lang.c (classify_type): Delete unused variable.
  4728. * f-lang.c (f_printstr): Delete unused variable.
  4729. * objc-lang.c (objc_printstr): Delete unused variable.
  4730. * ada-tasks.c (get_known_tasks_addr): Delete unused variable.
  4731. * jv-lang.c (type_from_class): ifdef unused variable.
  4732. (java_class_name_from_physname): Delete unused variable.
  4733. * m2-lang.c (m2_printstr): Delete unused variable.
  4734. * objfiles.c (objfile_relocate): Delete unused variable.
  4735. * maint.c (_initialize_maint_cmds): Delete unused variable.
  4736. * demangle.c (_initialize_demangler): Delete unused variable.
  4737. * corefile.c (reopen_exec_file): Delete unused variable.
  4738. * dwarf2expr.c (dwarf2_read_address): Delete unused variable.
  4739. * dwarf2-frame.c (decode_frame_entry): Delete unused variable.
  4740. * osabi.c (_initialize_gdb_osabi): Delete unused variable.
  4741. * memattr.c (mem_delete): Delete unused variable.
  4742. (invalidate_target_mem_regions): Delete unused variable.
  4743. * mem-break.c (default_memory_insert_breakpoint):
  4744. Delete unused variable.
  4745. * target.c (target_get_osdata): Delete unused variable.
  4746. * parse.c (length_of_subexp): Delete unused variable.
  4747. (prefixify_subexp): Delete unused variable.
  4748. (exp_iterate): Delete unused variable.
  4749. * reverse.c (delete_bookmark_command): Delete unused variable.
  4750. * macrocmd.c (_initialize_macrocmd): Delete unused variable.
  4751. * macroexp.c (gather_arguments): Delete unused variable.
  4752. (substitute_args): Delete unused variable.
  4753. * completer.c (gdb_completer_loc_break_characters): Unused, delete.
  4754. * gdbarch.sh (gdbarch_printable_names): Delete unused variable.
  4755. (_initialize_gdbarch): Delete unused variable.
  4756. * gdbarch.c, gdbarch.h: Regenerate.
  4757. * arch-utils.c (initialize_current_architecture):
  4758. Delete unused variable.
  4759. (_initialize_gdbarch_utils): Delete unused variable.
  4760. * gdbtypes.c (make_cv_type): Delete unused variable.
  4761. (make_type_with_address_space): Delete unused variable.
  4762. * linespec.c (decode_compound): Delete unused variable.
  4763. * dictionary.c (iterator_next_hashed): Delete unused variable.
  4764. * infcall.c (call_function_by_hand): Delete unused variable.
  4765. * infcmd.c (step_1): Delete unused variable.
  4766. (registers_info): Delete unused variable.
  4767. (attach_command): Delete unused variable.
  4768. * infrun.c (follow_exec): Delete unused variable.
  4769. (handle_step_into_function_backwards): Delete unused variable.
  4770. (_initialize_infrun): Delete unused variable.
  4771. * stack.c (parse_frame_specification_1): Delete unused variable.
  4772. (frame_info): Delete unused variable.
  4773. (backtrace_command_1): Delete unused variable.
  4774. (catch_info): Delete unused variable.
  4775. * eval.c (evaluate_subexp_standard): Delete unused variable.
  4776. * valops.c (value_cast_pointers): Delete unused variable.
  4777. (value_dynamic_cast): Delete unused variable.
  4778. (value_array): Delete unused variable.
  4779. (find_overload_match): Delete unused variable.
  4780. * valarith.c (value_subscript): Delete unused variable.
  4781. (value_binop): Delete unused variable.
  4782. * valprint.c (_initialize_valprint): Delete unused variable.
  4783. * printcmd.c (print_command_1): Delete unused variable.
  4784. (address_info): Delete unused variable.
  4785. (printf_command): Delete unused variable.
  4786. * auxv.c (target_auxv_search): Delete unused variable.
  4787. * blockframe.c (get_frame_block): Delete unused variable.
  4788. * regcache.c (regcache_cpy): Delete unused variable.
  4789. (regcache_cpy_no_passthrough): Delete unused variable.
  4790. * charset.c (wchar_iterate): Delete unused variable.
  4791. (find_charset_names): Delete unused variable.
  4792. (_initialize_charset): Delete unused variable.
  4793. * disasm.c (do_mixed_source_and_assembly):
  4794. Delete unused variable.
  4795. * source.c (set_default_source_symtab_and_line):
  4796. Delete unused variable.
  4797. (set_substitute_path_command): Delete unused variable.
  4798. * value.c (preserve_values): Delete unused variable.
  4799. (value_from_double): Delete unused variable.
  4800. 2010-05-05 Michael Snyder <msnyder@vmware.com>
  4801. * psymtab.c (lookup_partial_symbol): Delete unused variable.
  4802. (find_last_source_symtab_from_partial): Delete unused variable.
  4803. * symfile.c (place_section): Delete unused variable.
  4804. (default_symfile_offsets): Delete unused variable.
  4805. (get_debug_link_info): Delete unused variable.
  4806. (find_separate_debug_file_by_debuglink): Delete unused variable.
  4807. (add_symbol_file_command): Delete unused variable.
  4808. (symfile_find_segment_sections): Delete unused variable.
  4809. * symmisc.c (free_symtab): Delete unused variable.
  4810. (dump_symtab_1): Delete unused variable.
  4811. * symtab.c (lookup_symbil_aux_quick): Delete unused variable.
  4812. (find_pc_sect_symtab): Delete unused variable.
  4813. (skip_prologue_using_lineinfo): Delete unused variable.
  4814. (sources_info): Delete unused variable.
  4815. (completion_list_add_name): Delete unused variable.
  4816. (expand_line_sal): Delete unused variable.
  4817. * breakpoint.c (validate_commands_for_breakpoint):
  4818. Delete unused variables.
  4819. (insert_catchpoint): Delete unused variable.
  4820. (update_watchpoint): Delete unused variable.
  4821. (insert_bp_location): Delete unused variable.
  4822. (insert_breakpoint_locations): Delete unused variable.
  4823. (remove_breakpoint_1): Delete unused variable.
  4824. (software_breakpoint_inserted_here_p): Delete unused variable.
  4825. (watchpoints_triggered): Delete unused variable.
  4826. (bpstat_check_watchpoint): Delete unused variable.
  4827. (bpstat_stop_status): Delete unused variable.
  4828. (print_one_breakpoint_location): Delete unused variable.
  4829. (allocate_bp_location): Delete unused variable.
  4830. (create_breakpoint): Delete unused variable.
  4831. (watch_command_1): Delete unused variable.
  4832. (catch_exception_command_1): Delete unused variable.
  4833. (catch_ada_exception_command): Delete unused variable.
  4834. (delete_breakpoint): Delete unused variable.
  4835. (breakpoint_re_set_one): Delete unused variable.
  4836. (do_enable_breakpoint): Delete unused variable.
  4837. 2010-05-06 Pedro Alves <pedro@codesourcery.com>
  4838. * amd64-tdep.c: Include disasm.h.
  4839. (amd64_insn_length_fprintf, amd64_insn_length_init_dis)
  4840. (amd64_insn_length): Moved to disasm.c and renamed.
  4841. (fixup_riprel): Adjust.
  4842. * disasm.c (do_ui_file_delete): New.
  4843. (gdb_insn_length): New.
  4844. (gdb_buffered_insn_length_fprintf)
  4845. (gdb_buffered_insn_length_init_dis)
  4846. (gdb_buffered_insn_length): New, moved from amd64-tdep.c, and
  4847. renamed.
  4848. * disasm.h (gdb_insn_length): Declare.
  4849. (gdb_buffered_insn_length): Declare.
  4850. 2010-05-06 Pedro Alves <pedro@codesourcery.com>
  4851. * remote.c (clear_threads_parsing_context): New.
  4852. (remote_threads_info): Delete unused null_cleanup. Install a
  4853. cleanup to clear the threads_parsing_context in case parsing
  4854. throws.
  4855. 2010-05-05 Michael Snyder <msnyder@vmware.com>
  4856. * c-exp.y (parse_string_or_char): Delete unused variable.
  4857. (c_lex): Delete unused variable.
  4858. * cp-name-parser.y (cpname_lex): Delete unused variable.
  4859. * ada-exp.y (find_primitive_type): Delete unused variable.
  4860. (write_var_or_type): Delete unused variable.
  4861. * jv-exp.y (java_parse): Delete unused variable.
  4862. (push_expression_name): Delete unused variable.
  4863. * p-exp.y (pascal_lex): Delete unused variable.
  4864. 2010-05-05 Pedro Alves <pedro@codesourcery.com>
  4865. * remote.c (remote_threads_info): Really revert previous previous
  4866. change.
  4867. 2010-05-05 Michael Snyder <msnyder@vmware.com>
  4868. * elfread.c (elf_symtab_read): Delete unused variable.
  4869. (find_separate_debug_file_by_buildid): Delete unused variables.
  4870. (elf_symfile_read): Delete unused variable.
  4871. * coffread.c (coff_symfile_read): Delete unused variables.
  4872. * coff-pe-read.c (add_pe_exported_sym): Delete unused variable.
  4873. (read_pe_exported_syms): Delete unused variable.
  4874. * stabsread.c (define_symbol): Delete unused variable.
  4875. * dwarf2read.c (read_type_comp_unit_head): Delete unused variable.
  4876. (process_psymtab_comp_unit): Delete unused variable.
  4877. (dwarf2_build_psymtabs_hard): Delete unused variable.
  4878. (load_partial_comp_unit): Delete unused variable.
  4879. (create_all_comp_units): Delete unused variable.
  4880. (scan_partial_symbols): Delete unused variable.
  4881. (add_partial_symbol): Delete unused variable.
  4882. (add_partial_namespace): Delete unused variable.
  4883. (add_partial_enumeration): Delete unused variable.
  4884. (load_full_comp_unit): Delete unused variable.
  4885. (process_full_comp_unit): Delete unused variable.
  4886. (read_file_scope): Delete unused variable.
  4887. (read_type_unit_scope): Delete unused variable.
  4888. (process_structure_scope): Delete unused variable.
  4889. (process_enumeration_scope): Delete unused variable.
  4890. (read_tag_ptr_to_member_type): Delete unused variable.
  4891. (read_typedef): Delete unused variable.
  4892. (read_partial_die): Delete unused variable.
  4893. (decode_locdesc): Delete unused variable.
  4894. (zeroed_partial_die): Delete unused global variable.
  4895. * tui/tui-interp.c (_initialize_tui_interp):
  4896. Delete unused variable.
  4897. * tui/tui-regs.c tui_display_registers_from):
  4898. Delete unused variable.
  4899. (tui_check_register_values): Delete unused variable.
  4900. (tui_register_format): Delete unused variable.
  4901. * tui/tui-win.c (_initialize_tui_win): Delete unused variable.
  4902. * tui/tui-windata.c (tui_display_data_from_line):
  4903. Delete unused variables.
  4904. (tui_vertical_data_scroll): Delete unused variables.
  4905. 2010-05-05 Michael Snyder <msnyder@vmware.com>
  4906. * remote.c (remote_threads_info): Revert questionable part of
  4907. the previous change.
  4908. 2010-05-05 Michael Snyder <msnyder@vmware.com>
  4909. * mi/mi-out.c (mi_table_begin): Delete unused variable.
  4910. * mi/mi-cmd-var.c (print_varobj): Delete unused variable.
  4911. (mi_cmd_var_list_children): Delete unused variable.
  4912. (varobj_update_one): Delete unused variable.
  4913. * mi/mi-cmd-break.c (mi_cmd_break_insert): Delete unused variables.
  4914. * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals):
  4915. Delete unused variable.
  4916. (mi_cmd_stack_list_variables): Delete unused variable.
  4917. (list_args_or_locals): Delete unused variable.
  4918. * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file):
  4919. Delete unused variables.
  4920. (mi_cmd_file_list_exec_source_files): Delete unused variable.
  4921. * mi/mi-cmd-target.c (mi_cmd_target_file_delete):
  4922. Delete unused variable.
  4923. * mi/mi-interp.c (mi_interpreter_exec): Delete unused variable.
  4924. (mi_cmd_interpreter_exec): Delete unused variable.
  4925. (mi_on_normal_stop): Delete unused variable.
  4926. * mi/mi-main.c (run_one_inferior): Delete unused variable.
  4927. (print_one_inferior): Delete unused variables.
  4928. (mi_execute_command): Delete unused variable.
  4929. (mi_cmd_execute): Delete unused variable.
  4930. (timestamp): Delete unused variable.
  4931. * cli/cli-dump.c (dump_memory_to_file): Delete unused variable.
  4932. (restore_binary_file): Delete unused variable.
  4933. * cli/cli-decode.c (deprecated_cmd_warning): Delete unused variables.
  4934. * cli/cli-script.c (define_command): Delete unused variables.
  4935. (recurse_read_control_structure): Delete unused variable.
  4936. (script_from_file): Delete unused variable.
  4937. * cli/cli-cmds.c (complete_command): Delete unused variable.
  4938. (disassemble_command): Delete unused variable.
  4939. * ax-gdb.c (gen_struct_elt_for_reference): Delete unused variables.
  4940. * tracepoint.c (delete_trace_variable_command):
  4941. Delete unused variables.
  4942. (encode_actions_1): Delete unused variables.
  4943. (start_tracing): Delete unused variable.
  4944. (trace_status_mi): Delete unused variable.
  4945. (tfind_1): Delete unused variable.
  4946. (trace_find_pc_command): Delete unused variable.
  4947. (trace_find_line_command): Delete unused variables.
  4948. (trace_find_range_command): Delete unused variables.
  4949. (trace_find_outside_command): Delete unused variables.
  4950. (parse_tracepoint_definition): Delete unused variables.
  4951. (tfile_fetch_registers): Delete unused variable.
  4952. * dcache.c (dcache_init): Delete unused variable.
  4953. (dcache_info): Delete unused variable.
  4954. * remote.c (remote_threads_info): Delete unused variable.
  4955. (process_stop_reply) :Delete unused variable.
  4956. (remote_get_trace_status): Delete unused variables.
  4957. * linux-thread-db.c (add_thread_db_info): Delete unused variable.
  4958. (thread_from_lwp): Delete unused variable.
  4959. (enable_thread_event_reporting): Delete unused variable.
  4960. (check_for_thread_db): Delete unused variables.
  4961. (thread_db_find_new_threads_2): Delete unused variable.
  4962. * linux-fork.c (info_checkpoints_command): Delete unused variables.
  4963. (checkpoint_command): Delete unused variable.
  4964. (linux_fork_context): Delete unused variables.
  4965. * linux-nat.c (linux_parent_pid): Delete unused global variable.
  4966. (linux_tracefork_child): Delete unused variable.
  4967. (linux_child_follow_fork): Delete unused variable.
  4968. (linux_nat_detach): Delete unused variable.
  4969. (linux_handle_extended_wait): Delete unused variable.
  4970. (linux_nat_has_pending_sigint): Delete unused variable.
  4971. (linux_nat_find_memory_regions): Delete unused variable.
  4972. (linux_nat_make_corefile_notes): Delete unused variables.
  4973. (linux_nat_info_proc_cmd): Delete unused variable.
  4974. (linux_proc_pending_signals): Delete unused variable.
  4975. (linux_nat_stop_lwp): Delete unused variables.
  4976. (_initialize_linux_nat): Delete unused variable.
  4977. * ser-pipe.c (pipe_ops): Delete unused global variable.
  4978. * linux-record.c (record_linux_system_call):
  4979. Delete unused variables.
  4980. * corelow.c (core_xfer_partial): Delete unused variables.
  4981. * solib-svr4.c (find_program_interpreter): Delete unused variable.
  4982. (svr4_solib_create_inferior_hook): Add ifdef around
  4983. conditionally-used variable declarations.
  4984. * solib.c (solib_find): Delete unused variable.
  4985. (free_so_symbols): Delete unused variable.
  4986. (info_sharedlibrary_command): Delete unused variable.
  4987. (reload_shared_libraries_1): Delete unused variable.
  4988. (_initialize_solib): Delete unused variable.
  4989. * i386-tdep.c (i386_supply_xstateregset) Delete unused variable.
  4990. (i386_collect_xstateregset): Delete unused variable.
  4991. * i387-tdep.c (i387_print_float_info): Delete unused variable.
  4992. * features/i386/i386-mmx.c (initialize_tdesc_i386_mmx):
  4993. Delete unused variable 'type'.
  4994. 2010-05-05 Joel Brobecker <brobecker@adacore.com>
  4995. * gdbtypes.h (MAX_OF_TYPE, MIN_OF_TYPE): Delete macros. *
  4996. ada-lang.c: Remove comment mentioning these macros.
  4997. * m2-exp.y: Delete commented out code.
  4998. 2010-05-05 Joel Brobecker <brobecker@adacore.com>
  4999. * sparc-tdep.c (sparc_structure_or_union_p): Return non-zero
  5000. for array types.
  5001. * sparc64-tdep.c (sparc64_structure_or_union_p): Likewise.
  5002. 2010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
  5003. ARI fix: Remove ATTRIBUTE_UNUSED throughout.
  5004. * arm-linux-tdep.c (arm_linux_cleanup_svc): Remove
  5005. ATTRIBUTE_UNUSED.
  5006. (cleanup_kernel_helper_return): Likewise.
  5007. * arm-tdep.c (copy_unmodified): Likewise.
  5008. (copy_preload): Likewise.
  5009. (copy_copro_load_store): Likewise.
  5010. (cleanup_branch): Likewise.
  5011. (copy_b_bl_blx): Likewise.
  5012. (copy_bx_blx_reg): Likewise.
  5013. (copy_alu_imm): Likewise.
  5014. (copy_alu_reg): Likewise.
  5015. (copy_alu_shifted_reg): Likewise.
  5016. (cleanup_load): Likewise.
  5017. (cleanup_store): Likewise.
  5018. (cleanup_block_load_pc): Likewise.
  5019. (cleanup_svc): Likewise.
  5020. (copy_undef): Likewise.
  5021. (copy_unpred): Likewise.
  5022. * remote.c (register_remote_support_xml): Likewise.
  5023. 2010-05-05 Hui Zhu <teawater@gmail.com>
  5024. * gdbarch.h (gdbarch_has_dos_based_file_system): Update comment.
  5025. 2010-05-04 Mark Kettenis <kettenis@gnu.org>
  5026. * remote.c (register_remote_support_xml)
  5027. (remote_query_supported_append, remote_query_supported): Add cast
  5028. to NULL used as sentinel.
  5029. * tracepoint.c (tvariables_info_1): Likewise.
  5030. * utils.c (add_internal_problem_command): Likewise.
  5031. 2010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
  5032. * dwarf2loc.c (read_pieced_value, write_pieced_value,
  5033. dwarf2_evaluate_loc_desc): Handle not being able to access DWARF
  5034. registers gracefully.
  5035. 2010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
  5036. * exec.c (print_section_info): Display entry point without arch
  5037. specific parts.
  5038. 2010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
  5039. PR exp/11349.
  5040. * printcmd.c (x_command): Only dereference once implicitly for
  5041. TYPE_CODE_REF.
  5042. 2010-05-03 Doug Evans <dje@google.com>
  5043. * event-loop.c (gdb_timer): Delete unused global.
  5044. (create_timer): Update.
  5045. 2010-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
  5046. * cp-namespace.c (cp_lookup_symbol_imports): Support ALIAS for the
  5047. CURRENT->DECLARATION case.
  5048. * cp-support.h (struct using_direct): Provide extended comment.
  5049. 2010-05-03 Mark Kettenis <kettenis@gnu.org>
  5050. * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Renamed from
  5051. HPPABSD_SIZEOF_GREGS.
  5052. (HPPAOBSD_SIZEOF_FPREGS): New define.
  5053. (hppaobsd_supply_gregset): Renamed from hppabsd_supply_gregset.
  5054. (hppaobsd_supply_fpregset): New function.
  5055. (hppaobsd_gregset): Renamed from hppabsd_gregset.
  5056. (hppaobsd_fpregset): New variable.
  5057. (hppaobsd_regset_from_core_section): Handle floating-point registers.
  5058. (_initialize_hppabsd_tdep): Remove spurious blank line.
  5059. 2010-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
  5060. PR pascal/11349.
  5061. * p-valprint.c (pascal_value_print): Always dereference a value with
  5062. type code TYPE_CODE_REF.
  5063. 2010-05-03 Pedro Alves <pedro@codesourcery.com>
  5064. * remote.c (remote_notice_signals): New.
  5065. (remote_start_remote): In non-stop mode, update the remote end on
  5066. which signals it can silently pass.
  5067. (init_remote_ops): Install remote_notice_signals.
  5068. 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
  5069. * cli/cli-cmds.h (error_no_arg): Remove. Move the comment ...
  5070. * command.h (error_no_arg): ... here. Remove NORETURN, change
  5071. ATTR_NORETURN to ATTRIBUTE_NORETURN.
  5072. * defs.h (NORETURN, ATTR_NORETURN): Remove.
  5073. (perror_with_name, verror, error, error_stream, vfatal, fatal)
  5074. (internal_verror, internal_error, nomem): Remove NORETURN, change
  5075. ATTR_NORETURN to ATTRIBUTE_NORETURN.
  5076. * exceptions.c (throw_exception, deprecated_throw_reason, throw_verror)
  5077. (throw_vfatal, throw_error): Remove NORETURN.
  5078. (throw_it): Remove NORETURN, change ATTR_NORETURN to ATTRIBUTE_NORETURN.
  5079. * exceptions.h (throw_exception, throw_verror, throw_vfatal)
  5080. (throw_error, deprecated_throw_reason): Remove NORETURN, change
  5081. ATTR_NORETURN to ATTRIBUTE_NORETURN.
  5082. * linespec.c (cplusplus_error): Remove NORETURN, change ATTR_NORETURN
  5083. to ATTRIBUTE_NORETURN for prototype, for the definition only remove
  5084. NORETURN.
  5085. * remote-mips.c (mips_error): Change NORETURN to ATTRIBUTE_NORETURN.
  5086. * remote-sim.c (gdb_os_error): Change ATTR_NORETURN to
  5087. ATTRIBUTE_NORETURN.
  5088. * target.c (tcomplain): Likewise.
  5089. * target.h (noprocess): Remove NORETURN, change ATTR_NORETURN to
  5090. ATTRIBUTE_NORETURN.
  5091. * utils.c (verror, error, vfatal, fatal, error_stream, internal_verror)
  5092. (internal_error, perror_with_name, nomem): Remove NORETURN.
  5093. * xml-support.h (gdb_xml_error): Change ATTR_NORETURN to
  5094. ATTRIBUTE_NORETURN.
  5095. 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
  5096. * ada-lang.c (lim_warning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
  5097. * amd64-tdep.c (amd64_insn_length_fprintf): Likewise.
  5098. * cli-out.c (cli_field_fmt): New ATTRIBUTE_PRINTF.
  5099. (cli_message, out_field_fmt): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
  5100. * complaints.c (find_complaint): New ATTRIBUTE_PRINTF.
  5101. (vcomplaint): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
  5102. * complaints.h (complaint, internal_complaint): Likewise.
  5103. * defs.h: Change ATTR_FORMAT to ATTRIBUTE_PRINTF in the top comment.
  5104. (ATTR_FORMAT): Remove.
  5105. (query, nquery, yquery, vprintf_filtered, vfprintf_filtered)
  5106. (fprintf_filtered, fprintfi_filtered, printf_filtered, printfi_filtered)
  5107. (vprintf_unfiltered, vfprintf_unfiltered, fprintf_unfiltered)
  5108. (printf_unfiltered, xasprintf, xvasprintf, xstrprintf, xstrvprintf)
  5109. (xsnprintf, verror, error, vfatal, fatal, internal_verror)
  5110. (internal_error, internal_vwarning, internal_warning, warning)
  5111. (vwarning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
  5112. * disasm.c (fprintf_disasm): Likewise.
  5113. * exceptions.c (throw_it): Likewise.
  5114. * exceptions.h (exception_fprintf, throw_verror, throw_vfatal)
  5115. (throw_error): Likewise.
  5116. * language.h (type_error, range_error): Likewise.
  5117. * linespec.c (cplusplus_error): Likewise.
  5118. * mi/mi-interp.c (mi_interp_query_hook): Likewise.
  5119. * mi/mi-out.c (mi_field_fmt, mi_message): Likewise.
  5120. * monitor.c (monitor_debug): Likewise.
  5121. * parser-defs.h (parser_fprintf): Likewise.
  5122. * serial.h (serial_printf): Likewise.
  5123. * tui/tui-hooks.c (tui_query_hook): Likewise.
  5124. * ui-out.c (default_field_fmt, default_message, uo_field_fmt)
  5125. (uo_message): Likewise.
  5126. * ui-out.h (ui_out_field_fmt, ui_out_message): Likewise.
  5127. * utils.c (vfprintf_maybe_filtered, internal_vproblem, defaulted_query):
  5128. Likewise.
  5129. * xml-support.h (gdb_xml_debug, gdb_xml_error): Likewise.
  5130. 2010-05-02 Pedro Alves <pedro@codesourcery.com>
  5131. * cli-out.c (cli_table_begin, cli_table_body, cli_table_end)
  5132. (cli_table_header, cli_begin, cli_end, cli_field_int)
  5133. (cli_field_skip, cli_field_string, cli_field_fmt, cli_spaces)
  5134. (cli_text, cli_message, cli_wrap_hint, cli_flush, cli_redirect):
  5135. Delete forward declarations.
  5136. (cli_ui_out_impl): Move below the callbacks.
  5137. (_initialize_cli_out): Delete.
  5138. 2010-05-02 Pedro Alves <pedro@codesourcery.com>
  5139. * README: Use consistent `GDB' and `GDBserver' spellings.
  5140. 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
  5141. * cli/cli-dump.h (parse_and_eval_with_error): Remove the declaration.
  5142. 2010-05-01 Pedro Alves <pedro@codesourcery.com>
  5143. * infrun.c (prepare_for_detach): In non-stop, context switch to
  5144. the thread that got the event before handling the event.
  5145. 2010-04-30 Tom Tromey <tromey@redhat.com>
  5146. * symtab.c (symbol_set_names): Fix typo.
  5147. 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
  5148. * python/py-param.c (parm_constants): Avoid ARI warning
  5149. by adding ARI comment.
  5150. (parmpy_init): Likewise.
  5151. 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
  5152. * windows-tdep.c (windows_get_tlb_type): Remember last GDBARCH
  5153. and created type for re-use.
  5154. 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
  5155. * NEWS: Mention gdbserver support for x86_64 Windows 64-bit.
  5156. 2010-04-29 Doug Evans <dje@google.com>
  5157. * ser-base.h (reschedule): Delete prototype.
  5158. * ser-base.c (reschedule): Make static.
  5159. 2010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
  5160. * arm-linux-tdep.c (ARM_LINUX_JB_PC): Remove.
  5161. (ARM_LINUX_JB_PC_FPA): Add, offset of PC in longjmp buffer for FPA.
  5162. (ARM_LINUX_JB_PC_EABI): Add, offset of PC in longjmp buffer for
  5163. EABI.
  5164. (arm_linux_init_abi): Set up JB_PC field dependent on FP model in
  5165. use.
  5166. 2010-04-29 Pedro Alves <pedro@codesourcery.com>
  5167. PR gdb/11557
  5168. * regcache.c (registers_changed): Rename to ...
  5169. (registers_changed_ptid): ... this, and only delete register cache
  5170. entries matching the ptid filter argument.
  5171. (registers_changed): Reimplement on top of registers_changed_ptid.
  5172. * regcache.h (registers_changed_ptid): Declare.
  5173. * target.c (target_resume): Flush register caches.
  5174. 2010-04-29 Phil Muldoon <pmuldoon@redhat.com>
  5175. Tom Tromey <tromey@redhat.com>
  5176. Thiago Jung Bauermann <bauerman@br.ibm.com>
  5177. * Makefile.in (SUBDIR_PYTHON_OBS): Add py-parameter.
  5178. (SUBDIR_PYTHON_SRCS): Likewise.
  5179. (py-parameter.o): New rule.
  5180. * python/py-parameter.c: New file.
  5181. * python/python-internal.h (gdbpy_initialize_parameter)
  5182. (gdbpy_parameter, gdbpy_parameter_value)
  5183. (gdbpy_parse_command_name): Declare.
  5184. * python/py-cmd.c (parse_command_name): Rename to
  5185. gdbpy_parse_command_name.
  5186. (gdbpy_parse_command_name): Accept a starting list parameter and
  5187. use over cmdlist.
  5188. (cmdpy_init): Use gdbpy_parse_command_name.
  5189. * python/python.c (parameter_to_python): Rename to
  5190. gdbpy_parameter_to_python. Accept enum var_types and value.
  5191. (gdbpy_parameter): Use gdbpy_parameter_value.
  5192. (_initialize_python): Call gdbpy_initialize_parameters.
  5193. 2010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
  5194. * MAINTAINERS: Add myself for write after approval privileges.
  5195. 2010-04-29 Mihail Zenkov <mihail.zenkov@gmail.com>
  5196. D language support.
  5197. * Makefile.in (SFILES): Add d-lang.c d-valprint.c.
  5198. (COMMON_OBS): Add d-lang.o d-valprint.o.
  5199. (HFILES_NO_SRCDIR): Add d-lang.h.
  5200. * NEWS: Mention D language support.
  5201. * c-lang.c (c_emit_char, exp_descriptor_c): Make public.
  5202. * c-lang.h (c_emit_char, exp_descriptor_c): Add declaration.
  5203. * d-lang.c: New file.
  5204. * d-lang.h: New file.
  5205. * d-valprint.c: New file.
  5206. * defs.h (enum language): Add language_d.
  5207. * dwarf2read.c (set_cu_language): Add DW_LANG_D.
  5208. * language.c (binop_result_type, integral_type, character_type)
  5209. (string_type, boolean_type, structured_type): Add language_d.
  5210. * symfile.c (init_filename_language_table): Add language_d.
  5211. * symtab.c: Include d-lang.h.
  5212. (symbol_init_language_specific, symbol_find_demangled_name)
  5213. (symbol_natural_name, lookup_symbol_in_language)
  5214. (symbol_demangled_name, symbol_matches_domain): Add language_d.
  5215. 2010-04-27 Joel Brobecker <brobecker@adacore.com>
  5216. * solib-svr4.c (solib_svr4_r_map): Expand function description.
  5217. 2010-04-27 Joel Brobecker <brobecker@adacore.com>
  5218. * symfile.c (init_filename_language_table): Register .dg files
  5219. with language_ada.
  5220. 2010-04-27 Joel Brobecker <brobecker@adacore.com>
  5221. * gdbtypes.h (struct main_type): Expand comment about target_type
  5222. field.
  5223. 2010-04-27 Pedro Alves <pedro@codesourcery.com>
  5224. Tristan Gingold <gingold@adacore.com>
  5225. * symfile.c (reread_symbols): Also search for file in libraries.
  5226. Update comment.
  5227. 2010-04-27 Joel Brobecker <brobecker@adacore.com>
  5228. * configure.tgt: Treat x86-lynxos targets as x86 bareboard targets
  5229. in terms of configuration.
  5230. 2010-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
  5231. * objfiles.c: Include solist.h.
  5232. (free_all_objfiles): New variable so. Check stale solist objfiles.
  5233. * symfile.c (symbol_file_clear): Swap the order of free_all_objfiles
  5234. and no_shared_libraries.
  5235. 2010-04-27 Joel Brobecker <brobecker@adacore.com>
  5236. ARI warning fix.
  5237. * python/py-auto-load.c (source_section_scripts): Remove trailing
  5238. new-line in i18n string.
  5239. 2010-04-26 Doug Evans <dje@google.com>
  5240. * serial.c (serial_write): Handle serial_debug_p akin to serial_read.
  5241. 2010-04-26 Tom Tromey <tromey@redhat.com>
  5242. * cli/cli-decode.c (complete_on_cmdlist): Make two passes over the
  5243. command list.
  5244. 2010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
  5245. Removal of config/i386/nm-i386sol2.h native configuration file.
  5246. * config/i386/nm-i386sol2.h: Remove file.
  5247. * config/i386/i386sol2.mh: Remove NAT_FILE definition.
  5248. * config/i386/sol2-64.mh: Idem.
  5249. * config/djgpp/fnchange.lst: Remove reference to that file.
  5250. * Makefile.in (HFILES_NO_SRCDIR): Idem.
  5251. 2010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
  5252. PR breakpoints/11531.
  5253. * config/i386/nm-i386sol2.h (CANNOT_STEP_HW_WATCHPOINTS): Remove
  5254. macro definition and related comment.
  5255. * infrun.c (CANNOT_STEP_HW_WATCHPOINTS): Remove macro.
  5256. (resume): Remove code and comment related to this macro.
  5257. 2010-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
  5258. * cp-namespace.c (cp_lookup_symbol_in_namespace): Fix alloca size.
  5259. Fix whitespace.
  5260. 2010-04-24 Pedro Alves <pedro@codesourcery.com>
  5261. * defs.h: Adjust comment.
  5262. * filesystem.h, filesystem.c: New files.
  5263. * Makefile.in (SFILES): Add filesystem.c.
  5264. (COMMON_OBS): Add filesystem.o.
  5265. * solib.c (solib_find): Handle DOS-based filesystems. Handle
  5266. different target and host path flavours.
  5267. * arm-symbian-tdep.c (arm_symbian_init_abi): Set
  5268. has_dos_based_file_system on the gdbarch.
  5269. * arm-wince-tdep.c (arm_wince_init_abi): Ditto.
  5270. * i386-cygwin-tdep.c (i386_cygwin_init_abi): Ditto.
  5271. * i386-tdep.c (i386_go32_init_abi): Ditto.
  5272. * gdbarch.sh (has_dos_based_file_system): New.
  5273. * gdbarch.h, gdbarch.c: Regenerate.
  5274. * NEWS: Mention improved support for remote targets with DOS-based
  5275. filesystems. Mention new `set/show target-file-system-kind'
  5276. commands.
  5277. 2010-04-23 Stan Shebs <stan@codesourcery.com>
  5278. * ax.h (struct agent_expr): Merge in agent_reqs fields, add some
  5279. comments.
  5280. (struct agent_reqs): Remove.
  5281. (ax_reg_mask): Declare.
  5282. * ax-general.c (new_agent_expr): Add gdbarch argument, set new fields.
  5283. (free_agent_expr): Free reg_mask.
  5284. (ax_print): Add scope and register mask info.
  5285. (ax_reqs): Remove agent_reqs argument, use agent expression
  5286. fields, and move part of register mask computation to...
  5287. (ax_reg_mask): New function.
  5288. * ax-gdb.c (gen_trace_static_fields): Call it.
  5289. (gen_traced_pop): Ditto.
  5290. (is_nontrivial_conversion): Add dummy gdbarch to new_agent_expr.
  5291. (gen_trace_for_var): Pass gdbarch to new_agent_expr.
  5292. (gen_trace_for_expr): Ditto, and clear optimized_out flag.
  5293. (gen_eval_for_expr): Ditto, and require an rvalue.
  5294. (agent_command): Call ax_reqs.
  5295. (agent_eval_command): Ditto.
  5296. * tracepoint.c (report_agent_reqs_errors): Use agent expression fields.
  5297. (validate_action_line): Ditto.
  5298. (collect_symbol): Ditto.
  5299. (encode_actions_1): Ditto.
  5300. 2010-04-23 Daniel Jacobowitz <dan@codesourcery.com>
  5301. Paul Pluzhnikov <ppluzhnikov@google.com>
  5302. Jan Kratochvil <jan.kratochvil@redhat.com>
  5303. Fix deadlock on looped list of loaded shared objects.
  5304. * solib-svr4.c (LM_PREV): New function.
  5305. (IGNORE_FIRST_LINK_MAP_ENTRY): Use it.
  5306. (svr4_current_sos): Check for correct l_prev. New variables prev_lm
  5307. and next_lm. Clear prev_lm for solib_svr4_r_ldsomap.
  5308. * config/djgpp/fnchange.lst: Add translation for solib-corrupted.exp.
  5309. 2010-04-23 Doug Evans <dje@google.com>
  5310. * configure.ac (CONFIG_SRCS): Add py-auto-load.o even if not using
  5311. python.
  5312. * configure: Regenerate.
  5313. * main.c: #include "python/python.h".
  5314. (captured_main): Defer loading auto-loaded scripts until after
  5315. local_gdbinit has been sourced.
  5316. * python/py-auto-load.c (gdbpy_global_auto_load): New global.
  5317. (load_auto_scripts_for_objfile): New function.
  5318. (auto_load_new_objfile): Call it.
  5319. * python/python.h (gdbpy_global_auto_load): Declare.
  5320. (load_auto_scripts_for_objfile): Declare.
  5321. Add support for auto-loading scripts from .debug_gdb_scripts section.
  5322. * NEWS: Add entry for .debug_gdb_scripts.
  5323. * Makefile.in SUBDIR_PYTHON_OBS): Add py-auto-load.o.
  5324. (SUBDIR_PYTHON_SRCS): Add py-auto-load.c.
  5325. (py-auto-load.o): New rule.
  5326. * cli/cli-cmds.c (find_and_open_script): Make externally visible.
  5327. * cli/cli-cmds.h (find_and_open_script): Update prototype.
  5328. * python/py-auto-load.c: New file.
  5329. * python/python-internal.h: #include <stdio.h>.
  5330. (set_python_list, show_python_list): Declare.
  5331. (gdbpy_initialize_auto_load): Declare.
  5332. (source_python_script_for_objfile): Declare.
  5333. * python/python.c: Remove #include of observer.h.
  5334. (gdbpy_auto_load): Moved to py-auto-load.c.
  5335. (GDBPY_AUTO_FILENAME): Ditto.
  5336. (gdbpy_new_objfile): Delete.
  5337. (source_python_script_for_objfile): New function.
  5338. (set_python_list, show_python_list): Make externally visible.
  5339. (_initialize_python): Move "auto-load" command to py-auto-load.c
  5340. and observer_attach_new_objfile to py-auto-load.c.
  5341. 2010-04-23 Jerome Guitton <guitton@adacore.com>
  5342. * alpha-tdep.c (INSN_OPCODE, MEM_RA, MEM_RB, MEM_DISP, BR_RA)
  5343. (OPR_FUNCTION, OPR_HAS_IMMEDIATE, OPR_RA, OPR_RC, OPR_LIT): New macros.
  5344. (lda_opcode, stq_opcode, bne_opcode, subq_opcode, subq_function):
  5345. New constants.
  5346. (alpha_heuristic_analyze_probing_loop): New function.
  5347. (alpha_heuristic_frame_unwind_cache): In the prologue analysis, detect
  5348. and handle cases when a stack probe loop is generated.
  5349. * alpha-mdebug-tdep.c (alpha_mdebug_frameless): New function.
  5350. (alpha_mdebug_max_frame_size_exceeded): New function.
  5351. (alpha_mdebug_after_prologue): Use alpha_mdebug_frameless.
  5352. (alpha_mdebug_frame_sniffer, alpha_mdebug_frame_base_sniffer):
  5353. Return 0 when the maximum debuggable frame size has been exceeded.
  5354. 2010-04-23 Joel Brobecker <brobecker@adacore.com>
  5355. Fix ARI warning.
  5356. * ppc-linux-nat.c (booke_cmp_hw_point): Do not mark inline.
  5357. 2010-04-20 Chris Moller <cmoller@redhat.com>
  5358. PR 10179
  5359. * symtab.c (rbreak_command): Added code to include a filename
  5360. specification in the rbreak argument.
  5361. * NEWS: Added a brief description of filename-qualified rbreak.
  5362. 2010-04-22 Jan Kratochvil <jan.kratochvil@redhat.com>
  5363. Fix crashes on dangling display expressions.
  5364. * ada-lang.c (ada_operator_check): New function.
  5365. (ada_exp_descriptor): Fill-in the field operator_check.
  5366. * c-lang.c (exp_descriptor_c): Fill-in the field operator_check.
  5367. * jv-lang.c (exp_descriptor_java): Likewise.
  5368. * m2-lang.c (exp_descriptor_modula2): Likewise.
  5369. * scm-lang.c (exp_descriptor_scm): Likewise.
  5370. * parse.c (exp_descriptor_standard): Likewise.
  5371. (operator_check_standard): New function.
  5372. (exp_iterate, exp_uses_objfile_iter, exp_uses_objfile): New functions.
  5373. * parser-defs.h (struct exp_descriptor): New field operator_check.
  5374. (operator_check_standard, exp_uses_objfile): New declarations.
  5375. * printcmd.c: Remove the inclusion of solib.h.
  5376. (display_uses_solib_p): Remove the function.
  5377. (clear_dangling_display_expressions): Call lookup_objfile_from_block
  5378. and exp_uses_objfile instead of display_uses_solib_p.
  5379. * solist.h (struct so_list) <objfile>: New comment.
  5380. * symtab.c (lookup_objfile_from_block): Remove the static qualifier.
  5381. * symtab.h (lookup_objfile_from_block): New declaration.
  5382. (struct general_symbol_info) <obj_section>: Extend the comment.
  5383. 2010-04-22 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
  5384. Thiago Jung Bauermann <bauerman@br.ibm.com>
  5385. * ppc-linux-nat.c (PTRACE_GET_DEBUGREG): Update comment.
  5386. (PPC_PTRACE_GETWDBGINFO, PPC_PTRACE_SETHWDEBUG, PPC_PTRACE_DELHWDEBUG,
  5387. ppc_debug_info, PPC_DEBUG_FEATURE_INSN_BP_RANGE,
  5388. PPC_DEBUG_FEATURE_INSN_BP_MASK, PPC_DEBUG_FEATURE_DATA_BP_RANGE,
  5389. PPC_DEBUG_FEATURE_DATA_BP_MASK, ppc_hw_breakpoint,
  5390. PPC_BREAKPOINT_TRIGGER_EXECUTE, PPC_BREAKPOINT_TRIGGER READ,
  5391. PPC_BREAKPOINT_TRIGGER_WRITE, PPC_BREAKPOINT_TRIGGER_RW,
  5392. PPC_BREAKPOINT_MODE_EXACT PPC_BREAKPOINT_MODE_RANGE_INCLUSIVE,
  5393. PPC_BREAKPOINT_MODE_RANGE_EXCLUSIVE, PPC_BREAKPOINT_MODE_MASK,
  5394. PPC_BREAKPOINT_CONDITION_NONE, PPC_BREAKPOINT_CONDITION_AND,
  5395. PPC_BREAKPOINT_CONDITION_EXACT, PPC_BREAKPOINT_CONDITION_OR,
  5396. PPC_BREAKPOINT_CONDITION_AND_OR, PPC_BREAKPOINT_CONDITION_BE_ALL,
  5397. PPC_BREAKPOINT_CONDITION_BE_SHIFT, PPC_BREAKPOINT_CONDITION_BE):
  5398. Define, in case <ptrace.h> doesn't provide it.
  5399. (booke_debug_info): New variable.
  5400. (max_slots_number): Ditto.
  5401. (hw_break_tuple): New struct.
  5402. (thread_points): Ditto.
  5403. (ppc_threads): New variable.
  5404. (PPC_DEBUG_CURRENT_VERSION): New define.
  5405. (have_ptrace_new_debug_booke): New function.
  5406. (ppc_linux_check_watch_resources): Renamed to ...
  5407. (ppc_linux_can_use_hw_breakpoint): ... this. Handle BookE processors.
  5408. (ppc_linux_region_ok_for_hw_watchpoint): Handle BookE processors.
  5409. (booke_cmp_hw_point): New function.
  5410. (booke_find_thread_points_by_tid): Ditto.
  5411. (booke_insert_point): Ditto.
  5412. (booke_remove_point): Ditto.
  5413. (ppc_linux_insert_hw_breakpoint): Ditto.
  5414. (ppc_linux_remove_hw_breakpoint): Ditto.
  5415. (get_trigger_type): Ditto.
  5416. (ppc_linux_insert_watchpoint): Handle BookE processors.
  5417. (ppc_linux_remove_watchpoint): Ditto.
  5418. (ppc_linux_new_thread): Ditto.
  5419. (ppc_linux_thread_exit): New function..
  5420. (ppc_linux_stopped_data_address): Handle BookE processors.
  5421. (ppc_linux_watchpoint_addr_within_range): Ditto.
  5422. (_initialize_ppc_linux_nat): Initialize to_insert_hw_breakpoint and
  5423. to_remove_hw_breakpoint fields of the target operations struct.
  5424. Add observe for the thread_exit event.
  5425. 2010-04-22 H.J. Lu <hongjiu.lu@intel.com>
  5426. * i386-linux-nat.c (regmap): Removed.
  5427. (fetch_register): Replace regmap with
  5428. i386_linux_gregset_reg_offset.
  5429. (store_register): Likewise.
  5430. (supply_gregset): Likewise.
  5431. (fill_gregset): Likewise.
  5432. * i386-linux-tdep.c (i386_linux_gregset_reg_offset): Make it
  5433. global.
  5434. * i386-linux-tdep.h (i386_linux_gregset_reg_offset): New.
  5435. 2010-04-22 Chris Moller <cmoller@redhat.com>
  5436. * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
  5437. method of popping recursion-detection stack with a method based on
  5438. obstack_object_size(). (Similar to the PR9167 patch below, but for
  5439. the static array obstack rather than the static member obstack.)
  5440. 2010-04-22 H.J. Lu <hongjiu.lu@intel.com>
  5441. * amd64-linux-nat.c (amd64_linux_gregset64_reg_offset): Removed.
  5442. (_initialize_amd64_linux_nat): Replace
  5443. amd64_linux_gregset64_reg_offset with
  5444. amd64_linux_gregset_reg_offset.
  5445. * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Make it
  5446. global.
  5447. * amd64-tdep.h (amd64_linux_gregset_reg_offset): New.
  5448. 2010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
  5449. PR stabs/11479.
  5450. * stabsread.c (set_length_in_type_chain): New function.
  5451. (read_struct_type): Call set_length_in_type_chain function.
  5452. (read_enum_type): Idem.
  5453. 2010-04-21 Stan Shebs <stan@codesourcery.com>
  5454. Nathan Sidwell <nathan@codesourcery.com>
  5455. * tracepoint.c (trace_save): Open in binary mode.
  5456. 2010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
  5457. * gdbtypes.h (builtin_type): Add builtin_char16 and builtin_char32
  5458. fields.
  5459. * gdbtypes.c (gdbtypes_post_init): Set builtin_char16 and
  5460. builtin_char32 fields.
  5461. * printcmd.c (decode_format): Set char size to '\0'
  5462. for strings unless explicit size is given.
  5463. (print_formatted): Correct calculation of NEXT_ADDRESS
  5464. for 16 or 32 bit strings.
  5465. (do_examine): Do not force byte size for strings.
  5466. Use builtin_char16 and builtin_char32 types to display
  5467. 16 or 32 bit-wide strings.
  5468. (x_command): Set LAST_SIZE to 'b' for string type.
  5469. 2010-04-21 H.J. Lu <hongjiu.lu@intel.com>
  5470. PR corefiles/11523
  5471. * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
  5472. XCR0 first.
  5473. * i386-linux-tdep.c (i386_linux_core_read_xcr0): Return 0 if
  5474. there is no .reg-xstate section.
  5475. (i386_linux_core_read_description): Check XCR0 first.
  5476. 2010-04-21 Mike Frysinger <vapier@gentoo.org>
  5477. * sparc-tdep.c (sparc32_store_return_value): Add gdb_assert ()
  5478. for len <= 8.
  5479. 2010-04-21 Chris Moller <cmoller@redhat.com>
  5480. PR 9167
  5481. * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
  5482. method of popping recursion-detection stack with a method based on
  5483. obstack_object_size().
  5484. 2010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
  5485. PR pascal/11492.
  5486. * p-valprint.c (pascal_val_print): Fix default printing of integer
  5487. arrays.
  5488. 2010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
  5489. Fix compilation warning on gcc-4.1.2.
  5490. * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Initialize
  5491. local variable`pc' to zero.
  5492. 2010-04-20 Joel Brobecker <brobecker@adacore.com>
  5493. Implement thread support with core files on alpha-tru64.
  5494. * dec-thread.c (dec_thread_find_new_threads): New function,
  5495. extracted from resync_thread_list.
  5496. (resync_thread_list): Add OPS parameter. Replace extracted-out
  5497. code by call to dec_thread_find_new_threads.
  5498. (dec_thread_wait): Update call to resync_thread_list.
  5499. (init_dec_thread_ops): Set dec_thread_ops.to_find_new_threads.
  5500. 2010-04-20 Joel Brobecker <brobecker@adacore.com>
  5501. * ada-lang.c (value_pointer): New function.
  5502. (make_array_descriptor): Call value_pointer to convert addresses to
  5503. pointers.
  5504. 2010-04-20 Joel Brobecker <brobecker@adacore.com>
  5505. * rs6000-aix-tdep.c: #include exceptions.h.
  5506. (rs6000_convert_from_func_ptr_addr): If an exception is thrown
  5507. while reading the memory at ADDR, then ADDR cannot be a function
  5508. descriptor.
  5509. 2010-04-20 Joel Brobecker <brobecker@adacore.com>
  5510. * ada-typeprint.c (ada_print_typedef): New function.
  5511. * ada-lang.h (ada_print_typedef): Add declaration.
  5512. * ada-lang.c (ada_language_defn): set la_print_typdef field
  5513. to ada_print_typedef.
  5514. 2010-04-20 Joel Brobecker <brobecker@adacore.com>
  5515. * procfs.c (procfs_address_to_host_pointer): Only define when used.
  5516. 2010-04-20 Joel Brobecker <brobecker@adacore.com>
  5517. * procfs.c (iterate_over_mappings_cb_ftype): New typedef.
  5518. (iterate_over_mappings): Adjust function profile. Add declaration.
  5519. (insert_dbx_link_bpt_in_region, info_mappings_callback):
  5520. Adjust accordingly.
  5521. 2010-04-20 Joel Brobecker <brobecker@adacore.com>
  5522. * procfs.c (solib_mappings_callback): Move function up to avoid
  5523. a compiler warning.
  5524. 2010-04-20 Joel Brobecker <brobecker@adacore.com>
  5525. * procfs.c (find_signalled_thread, find_stop_signal): Move
  5526. these functions down to define them only when used.
  5527. 2010-04-20 Joel Brobecker <brobecker@adacore.com>
  5528. * valprint.c (common_val_print): Fix the value before extracting
  5529. its contents.
  5530. * ada-lang.c (ada_to_fixed_value): Make this function extern.
  5531. * ada-lang.h (ada_to_fixed_value): New function declaration.
  5532. * ada-valprint.c (ada_value_print): Use ada_to_fixed_value
  5533. to avoid code duplication and fix a bug in the handling of
  5534. fixed types contents.
  5535. 2010-04-20 Tom Tromey <tromey@redhat.com>
  5536. * dwarf2read.c (dwarf2_compute_name): Handle DW_AT_linkage_name.
  5537. (read_partial_die): Likewise.
  5538. (dwarf_attr_name): Likewise.
  5539. 2010-04-20 Chris Moller <cmoller@redhat.com>
  5540. PR 10867
  5541. * cp-valprint.c (global): Adding new static array recursion
  5542. detection obstack.
  5543. (cp_print_value_fields, cp_print_static_field): Added new static
  5544. array recursion detection code.
  5545. 2010-04-20 Mark Kettenis <kettenis@gnu.org>
  5546. * i386-linux-tdep.c (i386_linux_regset_sections): Size of the
  5547. general-purpose register set should be 68 instead of 144.
  5548. (i386_linux_sse_regset_sections): Likewise.
  5549. (i386_linux_avx_regset_sections): Likewise.
  5550. 2010-04-20 Stan Shebs <stan@codesourcery.com>
  5551. Nathan Sidwell <nathan@codesourcery.com>
  5552. * dwarf2loc.c (struct axs_var_loc): New struct.
  5553. (dwarf2_tracepoint_var_loc): New function.
  5554. (dwarf2_tracepoint_var_access): New function.
  5555. (dwarf2_tracepoint_var_ref): Use dwarf2_tracepoint_var_loc, deal
  5556. with DW_OP_piece.
  5557. (locexpr_describe_location_piece): New function.
  5558. (locexpr_describe_location_1): New function.
  5559. (locexpr_describe_location): Call it, update signature.
  5560. (loclist_describe_location): Rewrite to loop over locations,
  5561. update signature.
  5562. * symtab.h (struct symbol_computed_ops): Add address to
  5563. describe_location arguments, return void.
  5564. * printcmd.c (address_info): Get context PC, pass to computed
  5565. location description.
  5566. * tracepoint.c (scope_info): Ditto.
  5567. * ax-gdb.c (trace_kludge): Export.
  5568. 2010-04-20 Tom Tromey <tromey@redhat.com>
  5569. * dwarf2-frame.c (decode_frame_entry_1): Handle CIE version 4.
  5570. (struct dwarf2_cie) <segment_size>: New field.
  5571. * dwarf2read.c (partial_read_comp_unit_head): Accept DWARF 4.
  5572. (skip_one_die): Handle DW_FORM_flag_present, DW_FORM_sec_offset,
  5573. DW_FORM_exprloc.
  5574. (read_attribute_value): Handle DW_FORM_flag_present,
  5575. DW_FORM_sec_offset, DW_FORM_exprloc.
  5576. (dump_die_shallow): Likewise.
  5577. (attr_form_is_section_offset): Handle DW_FORM_sec_offset.
  5578. (dwarf2_const_value): Handle DW_FORM_exprloc.
  5579. (attr_form_is_block): Likewise.
  5580. (struct line_header) <maximum_ops_per_instruction>: New field.
  5581. (dwarf_decode_line_header): Set new field.
  5582. (dwarf_decode_lines): Handle new field.
  5583. 2010-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
  5584. * f-exp.y: Add new production to recognize the `logical*8' type.
  5585. (LOGICAL_S8_KEYWORD): New token.
  5586. * f-lang.c (enum f_primitive_types)
  5587. <f_primitive_type_logical_s8>: New field.
  5588. (f_language_arch_info): Handling `logical*8' type.
  5589. (build_fortran_types): Building `logical*8' type.
  5590. * f-lang.h (struct builtin_f_type) <builtin_logical_s8>: New field.
  5591. 2010-04-19 Doug Evans <dje@google.com>
  5592. * ser-base.c (generic_readchar): Watch for EOF in read of error_fd.
  5593. * ser-pipe.c (pipe_open): Fix file descriptor leaks.
  5594. (pipe_close): Ditto.
  5595. 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
  5596. * configure.tgt (x86_64-*-mingw*): Set BUILD_GDBSERVER to yes.
  5597. 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
  5598. * windows-tdep.c (windows_get_tlb_type): Change current_seh.handle
  5599. type to void function.
  5600. 2010-04-19 Stan Shebs <stan@codesourcery.com>
  5601. Vladimir Prus <vladimir@codesourcery.com>
  5602. * tracepoint.c (tfind_1): Add missing newline, report exit from
  5603. tfind mode as such.
  5604. * target.c (update_current_target): Make default
  5605. to_trace_find return -1.
  5606. 2010-04-19 Mike Frysinger <vapier@gentoo.org>
  5607. * objc-lang.c (find_methods): Move symname check up.
  5608. 2010-04-19 Pedro Alves <pedro@codesourcery.com>
  5609. * ada-lang.c (print_recreate_exception)
  5610. <ex_catch_exception_unhandled>: It's "catch exception unhandled",
  5611. not "catch unhandled".
  5612. 2010-04-19 Pedro Alves <pedro@codesourcery.com>
  5613. PR breakpoints/8554.
  5614. Implement `save-breakpoints'.
  5615. * breakpoint.c (save_cmdlist): New.
  5616. (breakpoint_set_cmdlist, breakpoint_show_cmdlist): Moved up close
  5617. to save_cmdlist.
  5618. (print_recreate_catch_fork): New.
  5619. (catch_fork_breakpoint_ops): Install it.
  5620. (print_recreate_catch_vfork): New.
  5621. (catch_vfork_breakpoint_ops): Install it.
  5622. (print_recreate_catch_syscall): New.
  5623. (catch_syscall_breakpoint_ops): Install it.
  5624. (print_recreate_catch_exec): New.
  5625. (catch_exec_breakpoint_ops): Install it.
  5626. (print_recreate_exception_catchpoint): New.
  5627. (gnu_v3_exception_catchpoint_ops): Install it.
  5628. (save_breakpoints): New, based on tracepoint_save_command, but
  5629. handle all breakpoint types.
  5630. (save_breakpoints_command): New.
  5631. (tracepoint_save_command): Rename to...
  5632. (save_tracepoints_command): ... this, and reimplement using
  5633. save_breakpoints.
  5634. (save_command): New.
  5635. (_initialize_breakpoints): Install the "save" command prefix.
  5636. Install the "save breakpoints" command. Make "save-tracepoints" a
  5637. deprecated alias for "save tracepoints".
  5638. * breakpoint.h (struct breakpoint_ops): New field `print_recreate'.
  5639. * ada-lang.c (print_recreate_exception): New.
  5640. (print_recreate_catch_exception): New.
  5641. (catch_exception_breakpoint_ops): Install it.
  5642. (print_recreate_catch_exception_unhandled): New.
  5643. (catch_exception_unhandled_breakpoint_ops): Install it.
  5644. (print_recreate_catch_assert): New.
  5645. (catch_assert_breakpoint_ops): Install it.
  5646. * NEWS: Mention the new `save breakpoints' command. Mention the
  5647. new `save tracepoints' alias and that `save-tracepoints' is now
  5648. deprecated.
  5649. 2010-04-18 Pedro Alves <pedro@codesourcery.com>
  5650. PR tui/9217
  5651. * tui/tui-out.c: Include cli-out.h.
  5652. (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
  5653. (tui_begin, tui_end, tui_field_int, tui_field_skip)
  5654. (tui_field_string, tui_field_fmt, tui_spaces, tui_text)
  5655. (tui_message, tui_wrap_hint, tui_flush): Delete forward
  5656. declarations.
  5657. (struct ui_out_data): Rename to...
  5658. (struct tui_ui_out_data): ... this. Remove `stream' and
  5659. `suppress_output' fields, and inherit cli_ui_out_data.
  5660. (tui_out_data): New typedef.
  5661. (tui_ui_out_impl): Don't initialize fields staticaly.
  5662. (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
  5663. (tui_begin, tui_end): Delete.
  5664. (tui_field_int): Adjust to delegate most work to the base type.
  5665. (tui_field_skip): Delete.
  5666. (tui_field_string, tui_field_fmt): Adjust comment. Adjust to
  5667. delegate most work to the base type.
  5668. (tui_spaces): Delete.
  5669. (tui_text): Adjust to delegate most work to the base type.
  5670. (tui_message): Delete.
  5671. (tui_wrap_hint): Delete.
  5672. (tui_flush): Delete.
  5673. (out_field_fmt): Delete.
  5674. (field_separator): Delete.
  5675. (tui_out_new): Adjust to initialize the base type.
  5676. (_initialize_tui_out): Initialize tui_ui_out_impl.
  5677. * cli-out.c (struct ui_out_data): Moved out to cli-out.h, renamed
  5678. cli_ui_out_data.
  5679. (cli_out_data): Adjust.
  5680. (cli_ui_out_impl): Make extern.
  5681. (cli_table_header, cli_field_int, cli_field_skip): Use
  5682. uo_field_string instead of cli_field_string.
  5683. (cli_redirect): Adjust to use cli_out_data.
  5684. (cli_out_data_ctor): New.
  5685. (cli_out_new): Use it.
  5686. * cli-out.h (struct ui_file): Remove forward declaration.
  5687. (struct cli_ui_out_data): New, moved from cli-out.c, and renamed.
  5688. (cli_ui_out_impl): Declare.
  5689. (cli_out_data_ctor): Declare.
  5690. * ui-out.c (struct ui_out) <data>: Change type to void pointer.
  5691. (uo_field_string): No longer static.
  5692. (ui_out_data): Change return type to void pointer.
  5693. (ui_out_new): Change `data' parameter type to void pointer.
  5694. * ui-out.h (struct ui_out_data): Don't forward declare.
  5695. (ui_out_data): Change return type to void pointer.
  5696. (ui_out_new): Change `data' parameter type to void pointer.
  5697. (uo_field_string): Declare.
  5698. 2010-04-17 Pedro Alves <pedro@codesourcery.com>
  5699. * ui-file.c (tee_file_isatty): Return whether `tee->one' is a tty,
  5700. instead of always false.
  5701. 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
  5702. PR corefiles/11511
  5703. * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Support
  5704. orig_rax.
  5705. 2010-04-17 Pedro Alves <pedro@codesourcery.com>
  5706. * breakpoint.c (watchpoints_triggered): Use
  5707. is_hardware_watchpoint.
  5708. (watchpoints_triggered): Ditto.
  5709. (bpstat_check_location): Use is_watchpoint and
  5710. is_hardware_watchpoint.
  5711. (bpstat_check_watchpoint): Use is_watchpoint and
  5712. is_hardware_watchpoint.
  5713. (bpstat_stop_status): Fix comment.
  5714. (user_settable_breakpoint): Use is_watchpoint.
  5715. (hw_watchpoint_used_count): Use is_hardware_watchpoint.
  5716. (disable_watchpoints_before_interactive_call_start): Use
  5717. is_watchpoint.
  5718. (enable_watchpoints_after_interactive_call_stop): Use
  5719. is_watchpoint.
  5720. (clear_command): Use is_watchpoint.
  5721. (do_enable_breakpoint): Use is_watchpoint.
  5722. 2010-04-16 Mike Frysinger <vapier@gentoo.org>
  5723. * solib-frv.c (enable_break1_done): Delete.
  5724. (enable_break2): Do not check enable_break1_done. Move the
  5725. enable_break2_done setting and call to
  5726. remove_solib_event_breakpoints() to the end. Return without
  5727. warning when the contents of _dl_debug_addr are 0.
  5728. (enable_break): Do not set enable_break1_done.
  5729. (frv_clear_solib): Likewise.
  5730. 2010-04-16 Kevin Buettner <kevinb@redhat.com>
  5731. * m32c-tdep.c (m32c_m16c_address_to_pointer): Print warning
  5732. instead of an error if no PLT entry is found. Return a
  5733. potentially useful result.
  5734. (m32c_m16c_pointer_to_address): Add code to search for function
  5735. address when no .plt entry is found.
  5736. 2010-04-16 Stan Shebs <stan@codesourcery.com>
  5737. * tracepoint.c (trace_variable_command): Run a cleanup.
  5738. 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
  5739. * p-lang.c (pascal_one_char): Do not restrict C to 0..255 range.
  5740. 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
  5741. Support for Windows OS Thread Information Block.
  5742. * NEWS: Document new feature.
  5743. * remote.c (PACKET_qGetTIBAddr): New enum element.
  5744. (remote_get_tib_address): New function.
  5745. (init_remote_ops): Set to_get_tib_address field
  5746. to remote_get_tib_address.
  5747. (_initialize_remote): Add add_packet_config_cmd
  5748. for PACKET_qGetTIBAddr.
  5749. * target.c (update_current_target): Set default value for
  5750. new to_get_tib_address field.
  5751. * target.h (target_ops): New field to_get_tib_address.
  5752. (target_get_tib_address): New macro.
  5753. * windows-nat.c (thread_info): Add thread_local_base field.
  5754. (windows_add_thread): Add tlb argument of type 'void *'.
  5755. (fake_create_process): Adapt windows_add_thread call.
  5756. (get_windows_debug_event): Idem.
  5757. (windows_get_tib_address): New function.
  5758. (init_windows_ops): Set to_get_tib_address field
  5759. to remote_get_tib_address.
  5760. (_initialize_windows_nat): Replace info_w32_cmdlist
  5761. initialization by a call to init_w32_command_list.
  5762. (info_w32_command, info_w32_cmdlist): Removed from here...
  5763. to windows-tdep.c file.
  5764. * windows-tdep.h (info_w32_cmdlist): Declare.
  5765. (init_w32_command_list): New external function
  5766. declaration.
  5767. * windows-tdep.c: Add several headers.
  5768. (info_w32_cmdlist): to here, made global.
  5769. (thread_information_32): New struct.
  5770. (thread_information_64): New struct.
  5771. (TIB_NAME): New char array.
  5772. (MAX_TIB32, MAX_TIB64, FULL_TIB_SIZE): New constants.
  5773. (maint_display_all_tib): New static variable.
  5774. (windows_get_tlb_type): New function.
  5775. (tlb_value_read, tlb_value_write): New functions.
  5776. (tlb_value_funcs): New static struct.
  5777. (tlb_make_value): New function.
  5778. (display_one_tib): New function.
  5779. (display_tib): New function.
  5780. (show_maint_show_all_tib):New function.
  5781. (info_w32_command): Moved from windows-nat.c.
  5782. (init_w32_command_list): New function.
  5783. (_initialize_windows_tdep): New function.
  5784. New "maint set/show show-all-tib" command
  5785. New "$_tlb" internal variable.
  5786. 2010-04-16 Joel Brobecker <brobecker@adacore.com>
  5787. * tui/tui-regs.c (tui_display_register): Add comment about
  5788. a couple of casts.
  5789. * tui/tui-stack.c (tui_show_locator_content): Ditto.
  5790. 2010-04-15 Stan Shebs <stan@codesourcery.com>
  5791. * frame.c: Include tracepoint.h.
  5792. (get_current_frame): Allow a trace frame to be an alternate source
  5793. of stack frame data.
  5794. * tracepoint.c (tfind_1): Don't try to get current stack frame if
  5795. it won't succeed.
  5796. 2010-04-15 Pedro Alves <pedro@codesourcery.com>
  5797. * ppc-linux-tdep.c (bsd_uthread_solib_loaded): Always pass 0 for
  5798. flags.
  5799. * solib-spu.c (spu_solib_loaded): Always pass 0 for flags.
  5800. 2010-04-15 Doug Evans <dje@google.com>
  5801. * NEWS: Add entry for python program space support.
  5802. * Makefile.in (SUBDIR_PYTHON_OBS): Add py-progspace.o.
  5803. (SUBDIR_PYTHON_SRCS): Add py-progspace.c.
  5804. (py-progspace.o): New rule.
  5805. * python/py-prettyprint.c (find_pretty_printer_from_objfiles): New
  5806. function.
  5807. (find_pretty_printer_from_progspace): New function.
  5808. (find_pretty_printer_from_gdb): New function.
  5809. (find_pretty_printer): Rewrite.
  5810. * python/py-progspace.c: New file.
  5811. * python/python-internal.h (program_space): Add forward decl.
  5812. (pspace_to_pspace_object, pspy_get_printers): Declare.
  5813. (gdbpy_initialize_pspace): Declare.
  5814. * python/python.c: #include "progspace.h".
  5815. (gdbpy_get_current_progspace, gdbpy_progspaces): New functions.
  5816. (_initialize_python): Call gdbpy_initialize_pspace.
  5817. (GdbMethods): Add current_progspace, progspaces.
  5818. Add -s option to source command.
  5819. * NEWS: Document new option.
  5820. * cli/cli-cmds.c (find_and_open_script): Add function comment.
  5821. Delete from_tty and cleanupp args. Split filep arg into file and
  5822. full_pathp. New arg search_path.
  5823. (source_script_from_stream): New function.
  5824. (source_script_with_search): New function.
  5825. (source_script): Rewrite.
  5826. (source_command): Parse "-s" option.
  5827. (init_cli_cmds): Add "-s" docs to source command help, and reformat.
  5828. * python/python.c (source_python_script): Make file arg a const char *.
  5829. Don't call fclose, leave for caller.
  5830. * python/python.h (source_python_script): Update.
  5831. 2010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
  5832. Pedro Alves <pedro@codesourcery.com>
  5833. Avoid rereading shared libraries that haven't changed.
  5834. * solib.c (free_so_symbols): New function, from ...
  5835. (free_so): ... here. Call it.
  5836. (solib_read_symbols): Don't warn here if symbols have already been
  5837. loaded.
  5838. (solib_add): Warn here instead, if a pattern was specified.
  5839. (reload_shared_libraries_1): New.
  5840. (reload_shared_libraries): Rewrite to not fetch the library list.
  5841. 2010-04-14 Doug Evans <dje@google.com>
  5842. * source.c (openp): Strip DOS drive letter if present before
  5843. concatenating string to search path.
  5844. 2010-04-14 Pedro Alves <pedro@codesourcery.com>
  5845. * objfiles.h (gdb_bfd_close_or_warn): Declare.
  5846. * objfiles.c (gdb_bfd_close_or_warn): New.
  5847. * corelow.c: Include objfiles.h
  5848. (core_close): Use gdb_bfd_close_or_warn.
  5849. * elfread.c (build_id_verify): Ditto.
  5850. * exec.c (exec_close, exec_close_1): Ditto.
  5851. 2010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
  5852. Pedro Alves <pedro@codesourcery.com>
  5853. Group errors for many missing shared libraries.
  5854. * solist.h (struct so_list): Remove from_tty.
  5855. * solib.c (solib_bfd_open): Return NULL if we failed to open a BFD.
  5856. (solib_map_sections): Take so_list argument. Return 0 if we
  5857. failed to open a BFD. Add target sections here.
  5858. (symbol_add_stub): Delete.
  5859. (solib_read_symbols): Inline symbol_add_stub. Use current flags,
  5860. not from_tty copied from the so_list. Don't warn a second time
  5861. for a missing library.
  5862. (update_solib_list): Don't save from_tty. Use TRY_CATCH. Do not
  5863. add to the section table here. Print out a single warning for all
  5864. missing libraries.
  5865. * bsd-uthread.c (bsd_uthread_solib_loaded): Always pass 0 for
  5866. flags.
  5867. 2010-04-14 Phil Muldoon <pmuldoon@redhat.com>
  5868. * python/py-block.c (gdbpy_block_for_pc): Use i8n to encompass
  5869. error/warning messages. Capitalize and use complete sentences.
  5870. (blpy_block_syms_iternext): Likewise.
  5871. * python/py-cmd.c (parse_command_name, cmdpy_init): Likewise.
  5872. * python/py-frame.c (FRAPY_REQUIRE_VALID, frapy_block)
  5873. (frame_info_to_frame_object, frapy_read_var)
  5874. (gdbpy_frame_stop_reason_string): Likewise.
  5875. * python/py-lazy-string.c (stpy_convert_to_value)
  5876. (gdbpy_create_lazy_string_object): Likewise.
  5877. * python/py-objfile.c (objfpy_set_printers): Likewise.
  5878. * python/py-prettyprint.c (gdbpy_default_visualizer): Likewise.
  5879. * python/python.c (parameter_to_python): Likewise.
  5880. * python/py-type.c (typy_range, typy_target): Likewise.
  5881. * python/py-value.c (valpy_cast, valpy_length, valpy_getitem)
  5882. (valpy_richcompare, valpy_int, valpy_long, valpy_float): Likewise.
  5883. 2010-04-14 Phil Muldoon <pmuldoon@redhat.com>
  5884. PR python/11381
  5885. * python/py-prettyprint.c (pretty_print_one_value): Test for
  5886. Py_None.
  5887. (print_string_repr): Test for Py_None. Set flags accordingly.
  5888. Return value depending on return type.
  5889. (print_children): Take a value indicating whether data was printed
  5890. before this function was called. Alter output accordingly.
  5891. (apply_val_pretty_printer): Capture return value from
  5892. print_string_repr and pass to print_children.
  5893. 2010-04-13 Mark Kettenis <kettenis@gnu.org>
  5894. PR corefiles/11481
  5895. * i386-linux-tdep.c (i386_linux_regset_sections): Remove extended
  5896. register note sections.
  5897. (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
  5898. New variables.
  5899. (i386_linux_init_abi): Install list of supported register note
  5900. sections that matches the target description.
  5901. 2010-04-13 Pedro Alves <pedro@codesourcery.com>
  5902. * remote.c (remote_get_noisy_reply): Don't error out on empty
  5903. replies.
  5904. (remote_start_remote): Update and merge tracepoints and trace
  5905. state variables as long as the target supports tracepoints.
  5906. (remote_trace_init): Fix prototype.
  5907. (remote_download_trace_state_variable): Validate reply.
  5908. (remote_trace_set_readonly_regions): Fix prototype.
  5909. (remote_trace_start): Fix prototype. Check for empty reply.
  5910. (remote_get_trace_status): Small cleanup.
  5911. (remote_trace_stop): Fix prototype. Check for empty reply.
  5912. (remote_trace_find): Check for empty reply.
  5913. (remote_save_trace_data): Validate reply.
  5914. (remote_set_disconnected_tracing): Check for empty reply, and
  5915. validate reply.
  5916. (remote_set_circular_trace_buffer): Ditto.
  5917. 2010-04-13 Pierre Muller <muller@ics.u-strasbg.fr>
  5918. Suppress unused value warning during compilation.
  5919. * tui/tui-regs.c (tui_display_register): Cast wstandout and wstandend
  5920. calls to void.
  5921. * tui/tui-stack.c (tui_show_locator_content): Likewise.
  5922. 2010-04-12 Stan Shebs <stan@codesourcery.com>
  5923. * tracepoint.c (tfile_xfer_partial): Check read result.
  5924. 2010-04-12 Mike Frysinger <vapier@gentoo.org>
  5925. * remote-m32r-sdi.c (m32r_files_info): Add const to local "file" var.
  5926. * remote-sim.c (gdbsim_files_info): Likewise.
  5927. 2010-04-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
  5928. * arm-tdep.h (gdb_regnum): Add ARM_FPSCR_REGNUM
  5929. * arm-linux-nat.c (arm_linux_vfp_register_count): New
  5930. variable.
  5931. (fetch_vfp_registers): New function to fetch VFP registers.
  5932. (store_vfp_registers): New function to store VFP registers.
  5933. (arm_linux_fetch_inferior_registers): Add support for VFP
  5934. registers.
  5935. (arm_linux_store_inferior_registers): Likewise.
  5936. (arm_linux_read_description): Likewise.
  5937. (_initialize_arm_linux_nat): Delay initialising iWMMX tdesc
  5938. until we need it.
  5939. 2010-04-11 H.J. Lu <hongjiu.lu@intel.com>
  5940. * amd64-tdep.c (amd64_supply_xstateregset): Remove the unused
  5941. tdep.
  5942. (amd64_collect_xstateregset): Likewise.
  5943. 2010-04-09 Stan Shebs <stan@codesourcery.com>
  5944. * tracepoint.c (trace_status_mi): Report frames created.
  5945. * tracepoint.c (trace_dump_command): Include default-collect
  5946. expressions.
  5947. 2010-04-09 Ulrich Weigand <uweigand@de.ibm.com>
  5948. * symtab.c (find_function_start_sal): Never return SAL pointing
  5949. before function start address, even if line info is missing.
  5950. 2010-04-09 Pedro Alves <pedro@codesourcery.com>
  5951. * NEWS: Mention tracepoints support.
  5952. 2010-04-09 Pedro Alves <pedro@codesourcery.com>
  5953. * tracepoint.c (trace_status_mi): Report disconnected tracing and
  5954. circular trace buffer statuses.
  5955. 2010-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
  5956. * config/djgpp/fnchange.lst: Fix typo in translations for
  5957. symbol-without-target_section.exp and symbol-without-target_section.c.
  5958. 2010-04-09 Pedro Alves <pedro@codesourcery.com>
  5959. * breakpoint.c (condition_command): Pass condition expression to
  5960. set_breakpoint_condition stripped from breakpoint number.
  5961. 2010-04-09 Phil Muldoon <pmuldoon@redhat.com>
  5962. Thiago Jung Bauermann <bauerman@br.ibm.com>
  5963. Tom Tromey <tromey@redhat.com>
  5964. * breakpoint.c (condition_command): Simplify. Move condition
  5965. setting code to ...
  5966. (set_breakpoint_condition): ... here. New function.
  5967. * breakpoint.h (set_breakpoint_condition): Declare.
  5968. * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpoint.
  5969. (SUBDIR_PYTHON_SRCS): Likewise.
  5970. (py-breakpoint.o): New rule.
  5971. * python/py-breakpoint.c: New file.
  5972. * python/python-internal.h (gdbpy_breakpoints)
  5973. (gdbpy_initialize_breakpoints): Declare.
  5974. (GDB_PY_SET_HANDLE_EXCEPTION) Define.
  5975. 2010-04-09 Pedro Alves <pedro@codesourcery.com>
  5976. * regformats/regdat.sh: Include server.h. Don't include
  5977. regcache.h.
  5978. 2010-04-08 Stan Shebs <stan@codesourcery.com>
  5979. Pedro Alves <pedro@codesourcery.com>
  5980. * tracepoint.h (struct trace_status): New fields disconnected_tracing
  5981. and circular_buffer.
  5982. (disconnect_tracing): Rename from disconnect_or_stop_tracing.
  5983. * tracepoint.c (trace_status_command): Display target's status for
  5984. disconnected tracing and circular buffer.
  5985. (disconnect_tracing): Rename from disconnect_or_stop_tracing, add
  5986. query for non-disconnected-tracing case, remove the stop_tracing
  5987. call.
  5988. (tfile_open): Clear disconnected and circular buffer status.
  5989. (trace_save): Save disconnected and circular buffer status.
  5990. (parse_trace_status): Parse disconnected and circular buffer status,
  5991. also recognize disconnected as a stop reason.
  5992. * remote.c (remote_set_disconnected_tracing): Only set
  5993. QTDisconnected if the remote end supports disconnected tracing.
  5994. Warn otherwise, if trying to enable disconnected tracing.
  5995. * infcmd.c (detach_command): Update disconnect_tracing call.
  5996. * cli/cli-cmds.c (quit_command): Ditto.
  5997. 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
  5998. * i387-tdep.c (i387_collect_xsave): Replace abort with
  5999. internal_error.
  6000. 2010-04-08 Stan Shebs <stan@codesourcery.com>
  6001. * breakpoint.c (default_collect_info): New function.
  6002. (breakpoints_info): Call it.
  6003. (maintenance_info_breakpoints): Ditto.
  6004. (tracepoints_info): Ditto.
  6005. 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
  6006. * i387-tdep.c (i387_collect_xsave): Re-indent.
  6007. 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
  6008. * i386-linux-nat.c (have_ptrace_getfpxregs): Initialize to -1
  6009. if HAVE_PTRACE_GETFPXREGS is defined.
  6010. (i386_linux_read_description): Set have_ptrace_getfpxregs and
  6011. have_ptrace_getregset to 0 if ptrace PTRACE_GETFPXREGS failed.
  6012. * i386-linux-tdep.c: Include "features/i386/i386-mmx-linux.c"
  6013. (i386_linux_core_read_description): Return tdesc_i386_mmx_linux
  6014. if .reg-xfp section doesn't exist.
  6015. (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_mmx_linux.
  6016. * i386-linux-tdep.h (tdesc_i386_mmx_linux): New.
  6017. * i386-tdep.c: Include "features/i386/i386-mmx.c".
  6018. (i386_go32_init_abi): Set tdesc to tdesc_i386_mmx.
  6019. (i386_validate_tdesc_p): Make org.gnu.gdb.i386.sse optional. Set
  6020. xcr0 to I386_XSTATE_X87_MASK if SSE isn't available.
  6021. (i386_gdbarch_init): Update comments.
  6022. (_initialize_i386_tdep): Call initialize_tdesc_i386_mmx.
  6023. * common/i386-xstate.h (I386_XSTATE_X87_MASK): New.
  6024. * config/djgpp/fnchange.lst: Add i386 MMX XML files.
  6025. * features/Makefile (i386/i386-mmx-expedite): New.
  6026. (i386/i386-mmx-linux-expedite): Likewise.
  6027. ($(outdir)/i386/i386-mmx.dat): Likewise.
  6028. ($(outdir)/i386/i386-mmx-linux.dat): Likewise.
  6029. * features/i386/i386-mmx-linux.c: New.
  6030. * features/i386/i386-mmx-linux.xml: Likewise.
  6031. * features/i386/i386-mmx.c: Likewise.
  6032. * features/i386/i386-mmx.xml: Likewise.
  6033. * regformats/i386/i386-mmx-linux.dat: Likewise.
  6034. * regformats/i386/i386-mmx.dat: Likewise.
  6035. * features/Makefile (WHICH): Add i386/i386-mmx and
  6036. i386/i386-mmx-linux.
  6037. 2010-04-08 Doug Evans <dje@google.com>
  6038. * source.c (openp): Skip $cdir in PATH.
  6039. 2010-04-08 Phil Muldoon <pmuldoon@redhat.com>
  6040. PR python/11417
  6041. * python/py-lazy-string.c (stpy_convert_to_value): Check for
  6042. a NULL address.
  6043. (gdbpy_create_lazy_string_object): Allow strings with a NULL
  6044. address and a zero length.
  6045. 2010-04-08 Hui Zhu <teawater@gmail.com>
  6046. * i386-tdep.c (i386_process_record): Add support for insn
  6047. rdtsc.
  6048. 2010-04-07 Doug Evans <dje@google.com>
  6049. * python/python.c (source_python_script): Use ensure_python_env
  6050. to prepare environment for script.
  6051. 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
  6052. * amd64-linux-nat.c: Include "regset.h", "elf/common.h",
  6053. <sys/uio.h> and "i386-xstate.h".
  6054. (PTRACE_GETREGSET): New.
  6055. (PTRACE_SETREGSET): Likewise.
  6056. (have_ptrace_getregset): Likewise.
  6057. (amd64_linux_gregset64_reg_offset): Include 16 upper YMM
  6058. registers.
  6059. (amd64_linux_gregset32_reg_offset): Include 8 upper YMM
  6060. registers.
  6061. (amd64_linux_fetch_inferior_registers): Support PTRACE_GETFPREGS.
  6062. (amd64_linux_store_inferior_registers): Likewise.
  6063. (amd64_linux_read_description): Check and enable AVX target
  6064. descriptions.
  6065. * amd64-linux-tdep.c: Include "regset.h", "i386-linux-tdep.h"
  6066. and "features/i386/amd64-avx-linux.c".
  6067. (amd64_linux_regset_sections): New.
  6068. (amd64_linux_core_read_description): Check and enable AVX
  6069. target description.
  6070. (amd64_linux_init_abi): Set xsave_xcr0_offset. Call
  6071. set_gdbarch_core_regset_sections.
  6072. (_initialize_amd64_linux_tdep): Call
  6073. initialize_tdesc_amd64_avx_linux.
  6074. * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Replace
  6075. AMD64_MXCSR_REGNUM with AMD64_YMM15H_REGNUM.
  6076. (tdesc_amd64_avx_linux): New.
  6077. (amd64_linux_update_xstateregset): Likewise.
  6078. * amd64-tdep.c: Include "features/i386/amd64-avx.c".
  6079. (amd64_ymm_names): New.
  6080. (amd64_ymmh_names): Likewise.
  6081. (amd64_register_name): Likewise.
  6082. (amd64_supply_xstateregset): Likewise.
  6083. (amd64_collect_xstateregset): Likewise.
  6084. (amd64_supply_xsave): Likewise.
  6085. (amd64_collect_xsave): Likewise.
  6086. (AMD64_NUM_REGS): Removed.
  6087. (amd64_dwarf_reg_to_regnum): Return %ymmN register number for
  6088. %xmmN if AVX is available.
  6089. (amd64_pseudo_register_name): Support pseudo YMM registers.
  6090. (amd64_regset_from_core_section): Support .reg-xstate section.
  6091. (amd64_init_abi): Set ymmh_register_names, num_ymm_regs
  6092. and ymm0h_regnum. Call set_gdbarch_register_name.
  6093. (amd64_init_abi): Call initialize_tdesc_amd64_avx.
  6094. * amd64-tdep.h (amd64_regnum): Add AMD64_YMM0H_REGNUM and
  6095. AMD64_YMM15H_REGNUM.
  6096. (AMD64_NUM_REGS): New.
  6097. (amd64_supply_xsave): Likewise.
  6098. (amd64_collect_xsave): Likewise.
  6099. (amd64_register_name): Removed.
  6100. (amd64_register_type): Likewise.
  6101. 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
  6102. * i387-tdep.c: Include "i386-xstate.h".
  6103. (XSAVE_XSTATE_BV_ADDR): New.
  6104. (xsave_avxh_offset): Likewise.
  6105. (XSAVE_AVXH_ADDR): Likewise.
  6106. (i387_supply_xsave): Likewise.
  6107. (i387_collect_xsave): Likewise.
  6108. * i387-tdep.h (I387_NUM_YMM_REGS): New.
  6109. (I387_YMM0H_REGNUM): Likewise.
  6110. (I387_YMMENDH_REGNUM): Likewise.
  6111. (i387_supply_xsave): Likewise.
  6112. (i387_collect_xsave): Likewise.
  6113. 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
  6114. * i386-linux-nat.c: Include "regset.h", "elf/common.h",
  6115. <sys/uio.h> and "i386-xstate.h".
  6116. (PTRACE_GETREGSET): New.
  6117. (PTRACE_SETREGSET): Likewise.
  6118. (fetch_xstateregs): Likewise.
  6119. (store_xstateregs): Likewise.
  6120. (GETXSTATEREGS_SUPPLIES): Likewise.
  6121. (regmap): Include 8 upper YMM registers.
  6122. (i386_linux_fetch_inferior_registers): Support XSAVE extended
  6123. state.
  6124. (i386_linux_store_inferior_registers): Likewise.
  6125. (i386_linux_read_description): Check and enable AVX target
  6126. descriptions.
  6127. * i386-linux-tdep.c: Include "regset.h", "i387-tdep.h",
  6128. "i386-xstate.h" and "features/i386/i386-avx-linux.c".
  6129. (i386_linux_regset_sections): Add ".reg-xstate".
  6130. (i386_linux_gregset_reg_offset): Include 8 upper YMM registers.
  6131. (i386_linux_core_read_xcr0): New.
  6132. (i386_linux_core_read_description): Check and enable AVX target
  6133. description.
  6134. (i386_linux_init_abi): Set xsave_xcr0_offset.
  6135. (_initialize_i386_linux_tdep): Call
  6136. initialize_tdesc_i386_avx_linux.
  6137. * i386-linux-tdep.h (I386_LINUX_ORIG_EAX_REGNUM): Replace
  6138. I386_SSE_NUM_REGS with I386_AVX_NUM_REGS.
  6139. (i386_linux_core_read_xcr0): New.
  6140. (tdesc_i386_avx_linux): Likewise.
  6141. (I386_LINUX_XSAVE_XCR0_OFFSET): Likewise.
  6142. * i386-tdep.c: Include "i386-xstate.h" and
  6143. "features/i386/i386-avx.c".
  6144. (i386_ymm_names): New.
  6145. (i386_ymmh_names): Likewise.
  6146. (i386_ymmh_regnum_p): Likewise.
  6147. (i386_ymm_regnum_p): Likewise.
  6148. (i386_xmm_regnum_p): Likewise.
  6149. (i386_register_name): Likewise.
  6150. (i386_ymm_type): Likewise.
  6151. (i386_supply_xstateregset): Likewise.
  6152. (i386_collect_xstateregset): Likewise.
  6153. (i386_sse_regnum_p): Removed.
  6154. (i386_pseudo_register_name): Support pseudo YMM registers.
  6155. (i386_pseudo_register_type): Likewise.
  6156. (i386_pseudo_register_read): Likewise.
  6157. (i386_pseudo_register_write): Likewise.
  6158. (i386_dbx_reg_to_regnum): Return %ymmN register number for
  6159. %xmmN if AVX is available.
  6160. (i386_regset_from_core_section): Support .reg-xstate section.
  6161. (i386_register_reggroup_p): Supper upper YMM and YMM registers.
  6162. (i386_process_record): Replace i386_sse_regnum_p with
  6163. i386_xmm_regnum_p.
  6164. (i386_validate_tdesc_p): Support org.gnu.gdb.i386.avx feature.
  6165. Set ymmh_register_names, num_ymm_regs, ymm0h_regnum and xcr0.
  6166. (i386_gdbarch_init): Set xstateregset. Set xsave_xcr0_offset.
  6167. Call set_gdbarch_register_name. Replace I386_SSE_NUM_REGS with
  6168. I386_AVX_NUM_REGS. Set ymmh_register_names, ymm0h_regnum and
  6169. num_ymm_regs. Add num_ymm_regs to set_gdbarch_num_pseudo_regs.
  6170. Set ymm0_regnum.
  6171. (_initialize_i386_tdep): Call initialize_tdesc_i386_avx.
  6172. * i386-tdep.h (gdbarch_tdep): Add xstateregset, ymm0_regnum,
  6173. xcr0, xsave_xcr0_offset, ymm0h_regnum, ymmh_register_names and
  6174. i386_ymm_type.
  6175. (i386_regnum): Add I386_YMM0H_REGNUM, and I386_YMM7H_REGNUM.
  6176. (I386_AVX_NUM_REGS): New.
  6177. (i386_xmm_regnum_p): Likewise.
  6178. (i386_ymm_regnum_p): Likewise.
  6179. (i386_ymmh_regnum_p): Likewise.
  6180. * common/i386-xstate.h: New.
  6181. 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
  6182. * config/djgpp/fnchange.lst: Add x86 AVX XML files.
  6183. * features/Makefile (WHICH): Add i386/i386-avx,
  6184. i386/i386-avx-linux, i386/x86-64-avx and i386/x86-64-avx-linux.
  6185. (i386/i386-avx-expedite): New.
  6186. (i386/i386-avx-linux-expedite): Likewise.
  6187. (i386/x86-64-avx-expedite):Likewise.
  6188. (i386/x86-64-avx-linux-expedite): Likewise.
  6189. ($(outdir)/i386/i386-avx.dat): New dependency.
  6190. ($(outdir)/i386/i386-avx-linux.dat): Likewise.
  6191. ($(outdir)/i386/x86-avx-64.dat): Likewise.
  6192. ($(outdir)/i386/x86-64-avx-linux.dat): Likewise.
  6193. * features/i386/32bit-avx.xml: New.
  6194. * features/i386/64bit-avx.xml: Likewise.
  6195. * features/i386/i386-avx-linux.c: Likewise.
  6196. * features/i386/i386-avx-linux.xml: Likewise.
  6197. * features/i386/i386-avx.c: Likewise.
  6198. * features/i386/i386-avx.xml: Likewise.
  6199. * features/i386/x86-64-avx-linux.c: Likewise.
  6200. * features/i386/x86-64-avx-linux.xml: Likewise.
  6201. * features/i386/x86-64-avx.c: Likewise.
  6202. * features/i386/x86-64-avx.xml: Likewise.
  6203. * regformats/i386/i386-avx-linux.dat: Likewise.
  6204. * regformats/i386/i386-avx.dat: Likewise.
  6205. * regformats/i386/x86-64-avx-linux.dat: Likewise.
  6206. * regformats/i386/x86-64-avx.dat: Likewise.
  6207. 2010-04-07 Doug Evans <dje@google.com>
  6208. * top.c (source_file_name): Make const char *.
  6209. * top.h (source_file_name): Update.
  6210. * cli/cli-script.c (source_cleanup_lines_args): Make old_file
  6211. const char *.
  6212. (script_from_file): Change `file' arg to const char *.
  6213. * cli/cli-script.h (script_from_file): Update.
  6214. 2010-04-06 Doug Evans <dje@google.com>
  6215. * cli/cli-cmds.c (source_command): Run cleanups.
  6216. 2010-04-06 Stan Shebs <stan@codesourcery.com>
  6217. * defs.h (char_ptr): Move typedef here from...
  6218. * ada-lang.c (char_ptr): Remove.
  6219. * charset.c (char_ptr): Remove.
  6220. * tracepoint.h (struct uploaded_string): Remove.
  6221. (struct uploaded_tp): Use vectors for string arrays.
  6222. * tracepoint.c (trace_save): Use vectors of actions.
  6223. (parse_tracepoint_definition): Ditto.
  6224. (get_uploaded_tp): Clear vectors.
  6225. * breakpoint.c (create_tracepoint_from_upload): Use vectors.
  6226. (next_cmd): Change to an int.
  6227. (read_next_cmd): Use vector of command strings.
  6228. 2010-04-06 Doug Evans <dje@google.com>
  6229. * top.h (source_script, cd_command): Delete.
  6230. * main.c: #include "cli/cli-cmds.h"
  6231. 2010-04-06 Kevin Buettner <kevinb@redhat.com>
  6232. * m32c-tdep.c (make_types): When calling `arch_type', pass size of
  6233. type in bytes, not bits.
  6234. 2010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
  6235. * stabsread.c (define_symbol): Add support for char
  6236. and string constants.
  6237. 2010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
  6238. Remove remaining "%ll" uses.
  6239. * go32-nat.c (go32_pte_for_address): Replace "0x%llx" using
  6240. hex_string call.
  6241. * rs6000-nat.c (rs6000_ptrace64): Idem.
  6242. * solib-pa64.c (pa64_current_sos): Idem.
  6243. * solib-spu.c (spu_current_sos): Idem.
  6244. * linux-nat.c (linux_nat_find_memory_regions): Replace "%lld" using
  6245. plongest call.
  6246. * nto-procfs.c (procfs_meminfo): Replace "0x%016llx" using
  6247. phex (VAR, 8) call.
  6248. * sh64-tdep.c (sh64_show_media_regs): Idem.
  6249. 2010-04-05 Stan Shebs <stan@codesourcery.com>
  6250. * tracepoint.c: Include gdbcore.h.
  6251. (tfile_xfer_partial): Return partial results, also try reading
  6252. from executable.
  6253. (tfile_has_all_memory): New function.
  6254. (init_tfile_ops): Use it.
  6255. 2010-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
  6256. PR gdb/10736:
  6257. * xml-syscall.c (my_gdb_datadir): New variable to keep track of
  6258. the changes in data-directory.
  6259. (init_sysinfo): Reload the syscall XML file if the data-directory
  6260. has changed.
  6261. 2010-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
  6262. Code cleanup.
  6263. * breakpoint.c (bpstat_stop_status): Use bpstat_causes_stop.
  6264. 2010-04-04 Stan Shebs <stan@codesourcery.com>
  6265. Nathan Sidwell <nathan@codesourcery.com>
  6266. * breakpoint.c (breakpoint_1): Add filter argument, return number of
  6267. breakpoints printed.
  6268. (is_hardware_watchpoint): Make argument const.
  6269. (is_watchpoint): Ditto.
  6270. (is_tracepoint): Merge of tracepoint_type and breakpoint_is_tracepoint,
  6271. use it everywhere.
  6272. (breakpoints_info): Pass NULL to breakpoint_1.
  6273. (maintenance_info_breakpoints): Ditto.
  6274. (watchpoints_info): New function.
  6275. (tracepoints_info): Use breakpoint_1 filter.
  6276. (set_ignore_count): Warn that tracepoint ignore count will be ignored.
  6277. (_initialize_breakpoint): Make "info watchpoints" its own command.
  6278. * breakpoint.h (is_tracepoint): Rename from breakpoint_is_tracepoint.
  6279. * mi/mi-cmd-break.c (mi_cmd_break_commands): Use is_tracepoint.
  6280. 2010-04-04 Stan Shebs <stan@codesourcery.com>
  6281. * tracepoint.c (tfile_fetch_registers): Add fallback case.
  6282. 2010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
  6283. * infcmd.c (run_command_1): Call proceed with regcache_read_pc address.
  6284. * config/djgpp/fnchange.lst: Add translation for break-entry.exp.
  6285. 2010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
  6286. * breakpoint.c (bpstat_find_step_resume_breakpoint): Remove.
  6287. * breakpoint.h (bpstat_find_step_resume_breakpoint): Remove.
  6288. 2010-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
  6289. * dwarf2read.c (read_namespace_type): Use common "return set_die_type"
  6290. code form.
  6291. 2010-04-02 Hui Zhu <teawater@gmail.com>
  6292. * i386-tdep.c (OT_DQUAD): New enum.
  6293. (i386_process_record): Add code for MMX, 3DNow!, SSE, SSE2,
  6294. SSE3, SSSE3 and SSE4.
  6295. 2010-04-02 Hui Zhu <teawater@gmail.com>
  6296. * i386-tdep.c (i386_record_lea_modrm_addr): Remove useless
  6297. "*addr = 0".
  6298. 2010-04-02 Pedro Alves <pedro@codesourcery.com>
  6299. * tracepoint.c (trace_dump_actions): New, factored out from
  6300. trace_dump_command, and adjusted to recurse into while-stepping's
  6301. action list.
  6302. (trace_dump_command): Use it.
  6303. 2010-04-02 Pedro Alves <pedro@codesourcery.com>
  6304. * breakpoint.h (struct counted_command_line): Moved definition to
  6305. breakpoint.c, and forward declare.
  6306. (breakpoint_commands): Declare.
  6307. * breakpoint.c (struct counted_command_line): Moved here.
  6308. (breakpoint_commands): New.
  6309. * tracepoint.c (encode_actions): Use breakpoint_commands.
  6310. * remote.c (remote_download_tracepoint): Ditto.
  6311. 2010-04-01 H.J. Lu <hongjiu.lu@intel.com>
  6312. * remote.c (remote_parse_stop_reply): Use hex_string instead
  6313. of phex_nz for error.
  6314. 2010-04-01 Stan Shebs <stan@codesourcery.com>
  6315. Nathan Sidwell <nathan@codesourcery.com>
  6316. * tracepoint.h (enum actionline_type): Remove.
  6317. (validate_actionline): Change return to void.
  6318. * tracepoint.c (report_agent_reqs_errors): New function.
  6319. (validate_actionline): Call it, change return to void, report errors
  6320. more consistently.
  6321. (collect_symbol): Call report_agent_reqs_errors.
  6322. (encode_actions_1): Ditto.
  6323. (encode_actions): Don't expect a result from validate_actionline.
  6324. 2010-04-01 Stan Shebs <stan@codesourcery.com>
  6325. * tracepoint.c (trace_start_command): Confirm if trace is running.
  6326. (trace_stop_command): Error if trace not running.
  6327. 2010-04-01 H.J. Lu <hongjiu.lu@intel.com>
  6328. * amd64-tdep.c (amd64_byte_names): Add "ah", "bh", "ch", "dh".
  6329. (AMD64_NUM_LOWER_BYTE_REGS): New.
  6330. (amd64_pseudo_register_read): Handle "ah", "bh", "ch", "dh".
  6331. (amd64_pseudo_register_write): Likewise.
  6332. (amd64_init_abi): Set num_byte_regs to 20.
  6333. 2010-04-01 Pedro Alves <pedro@codesourcery.com>
  6334. * breakpoint.c (multi_start, multi_end, last_was_multi): Delete.
  6335. (prev_breakpoint_count): New.
  6336. (set_breakpoint_count): Adjust.
  6337. (rbreak_start_breakpoint_count): New.
  6338. (start_rbreak_breakpoints): Adjust.
  6339. (end_rbreak_breakpoints): Adjust.
  6340. (struct commands_info) <arg>: New field.
  6341. (do_map_commands_command): Tweak output to include breakpoint spec
  6342. range.
  6343. (commands_command_1): Adjust. Avoid setting an xfree cleanup if
  6344. ARG was empty on entry. Set INFO's arg.
  6345. (create_breakpoint): Adjust.
  6346. * NEWS: Clarify `commands' changes.
  6347. 2010-04-01 Pedro Alves <pedro@codesourcery.com>
  6348. * tracepoint.c: Include stack.h.
  6349. (struct add_local_symbols_data): New.
  6350. (do_collect_symbol): New.
  6351. (add_local_symbols): Rewrite using iterate_over_block_arg_vars and
  6352. iterate_over_block_local_vars.
  6353. * stack.c (print_block_frame_locals): Rewrite as ...
  6354. (iterate_over_block_locals): ... this. Take a callback function
  6355. pointer and generic data pointer, and call that instead of
  6356. print_variable_and_value.
  6357. (struct print_variable_and_value_data): New.
  6358. (do_print_variable_and_value): New.
  6359. (iterate_over_block_local_vars): New, abstracted out from
  6360. print_frame_local_vars.
  6361. (print_frame_local_vars): Rewrite using
  6362. iterate_over_block_local_vars.
  6363. (iterate_over_block_arg_vars): New, abstracted out from
  6364. print_frame_arg_vars.
  6365. (print_frame_arg_vars): Rewrite using iterate_over_block_arg_vars.
  6366. * stack.h (iterate_over_block_arg_local_vars_cb): New typedef.
  6367. (iterate_over_block_arg_vars, iterate_over_block_local_vars): Declare.
  6368. 2010-03-31 Richard Earnshaw <rearnsha@arm.com>
  6369. * arm-tdep.c (thumb_get_next_pc_raw): Correctly detect TBH
  6370. instructions. Use the PC+4 if the base of the TBB or TBH is the
  6371. PC register.
  6372. 2010-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
  6373. Fix crash on reading wrong function declaration DWARF.
  6374. * dwarf2read.c (read_subroutine_type): New variable void_type.
  6375. Pre-fill all TYPE_FIELD_TYPEs. Move nparams and iparams initialization
  6376. more close to their use.
  6377. 2010-03-31 Stan Shebs <stan@codesourcery.com>
  6378. * breakpoint.c (tracepoint_save_command): Include variables,
  6379. conditionals, tracepoint types, and default-collect.
  6380. * tracepoint.c (save_trace_state_variables): New function.
  6381. * tracepoint.h (save_trace_state_variables): Declare it.
  6382. 2010-03-31 Pierre Muller <muller@ics.u-strasbg.fr>
  6383. * remote.c (end_thread): ARI fix: Use xstrdup instead of strdup.
  6384. 2010-03-30 Keith Seitz <keiths@redhat.com>
  6385. * c-typeprint.c (c_type_print_args): Don't print "void"
  6386. for java, regardless of whether it is TYPE_PROTOTYPED.
  6387. Use the passed-in language instead of current_language.
  6388. (c_type_print_varspec_suffix): Use current_language instead
  6389. of assuming language_c.
  6390. * jv-typeprint.c (java_type_print_base): (bz 9320) Strip off
  6391. any return type specifier from the physname.
  6392. 2010-03-30 Pedro Alves <pedro@codesourcery.com>
  6393. * tui/tui-interp.c (tui_is_toplevel): New.
  6394. (tui_init): Set it.
  6395. (tui_allowed_p): New.
  6396. * tui/tui.c (tui_enable): Check if the TUI is allowed before
  6397. enabling it.
  6398. * tui/tui.h (tui_allowed_p): Declare.
  6399. 2010-03-30 Ozkan Sezer <sezeroz@gmail.com>
  6400. * serial.h: Include winsock2.h before windows.h.
  6401. 2010-03-30 H.J. Lu <hongjiu.lu@intel.com>
  6402. * NEWS: Mention xmlRegisters= in qSupported packet.
  6403. * i386-tdep.c: Include "remote.h".
  6404. (_initialize_i386_tdep): Call register_remote_support_xml.
  6405. * remote.c (remote_support_xml): New.
  6406. (register_remote_support_xml): Likewise.
  6407. (remote_query_supported_append): Likewise.
  6408. (remote_query_supported): Support remote_support_xml.
  6409. * remote.h (register_remote_support_xml): New.
  6410. 2010-03-29 Stan Shebs <stan@codesourcery.com>
  6411. * tracepoint.c (trace_find_line_command): Remove dead code.
  6412. * tracepoint.h (struct uploaded_string): New struct.
  6413. (struct uploaded_tp): New fields for source strings.
  6414. * breakpoint.c (this_utp, next_cmd): New globals.
  6415. (read_uploaded_action): New function.
  6416. (create_tracepoint_from_upload): Fill in more parts
  6417. of a tracepoint.
  6418. * tracepoint.c (encode_source_string): New function.
  6419. (trace_save): Write out source strings, fix error checks.
  6420. (parse_tracepoint_definition): Add source string parsing.
  6421. * remote.c (PACKET_TracepointSource): New packet type.
  6422. (remote_download_command_source): New function.
  6423. (remote_download_tracepoint): Download source pieces also.
  6424. (_initialize_remote): Add packet config command.
  6425. * tracepoint.c (collect_symbol): Send LOC_UNRESOLVED symbols to
  6426. expression handler.
  6427. * tracepoint.c (start_tracing): Check tracepoints before sending
  6428. commands to target, don't start if all tracepoints disabled.
  6429. 2010-03-28 Pedro Alves <pedro@codesourcery.com>
  6430. * cli/cli-script.c (process_next_line): Handle 'stepping'.
  6431. 2010-03-26 Stan Shebs <stan@codesourcery.com>
  6432. * tracepoint.c (disconnect_or_stop_tracing): Get out of tfind mode.
  6433. 2010-03-26 Tom Tromey <tromey@redhat.com>
  6434. * breakpoint.c (commands_command_1): Duplicate 'arg'.
  6435. 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
  6436. * breakpoint.c (expand_line_sal_maybe): Always call skip_prologue_sal.
  6437. (skip_prologue_sal): Remove local definition.
  6438. (resolve_sal_pc): Remove now unnecessary code.
  6439. * linespec.c (minsym_found): Call skip_prologue_sal.
  6440. * symtab.c (find_function_start_pc): Remove.
  6441. (find_function_start_sal): Extract prologue skipping into ...
  6442. (skip_prologue_sal): ... this new function. Handle code both
  6443. with and without debug info. Respect SAL's explicit_pc and
  6444. explicit_line flags. Inline old find_function_start_pc.
  6445. * symtab.h (find_function_start_pc): Remove.
  6446. (skip_prologue_sal): Add prototype.
  6447. 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
  6448. * dwarf2read.c (read_func_scope): Also scan specification DIEs
  6449. for DW_TAG_imported_module children.
  6450. 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
  6451. * dwarf2read.c (dwarf2_name): Work around GCC bugzilla debug/41828 by
  6452. ignoring spurious DW_AT_name attributes for unnamed structs or unions.
  6453. * completer.c (add_struct_fields): Fix inverted logic.
  6454. 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
  6455. * breakpoint.c (bpstat_clear_actions): Reset bs->commands_left.
  6456. 2010-03-26 Pedro Alves <pedro@codesourcery.com>
  6457. * tracepoint.c (current_trace_status): Don't make sure error_desc
  6458. is non-NULL here.
  6459. (parse_trace_status): Release a previous error_desc string, and
  6460. set it to NULL by default. If stop reason is tracepoint_error,
  6461. make sure error_desc is not left NULL.
  6462. 2010-03-26 Pedro Alves <pedro@codesourcery.com>
  6463. * tracepoint.c (trace_save): Remove X from tracepoint error
  6464. description.
  6465. 2010-03-26 Pedro Alves <pedro@codesourcery.com>
  6466. * tracepoint.c (parse_trace_status): Don't allow plain strings in
  6467. the terror description. Don't expect an X prefix.
  6468. 2010-03-25 Stan Shebs <stan@codesourcery.com>
  6469. * tracepoint.h (trace_stop_reason): Add tracepoint_error.
  6470. (struct trace_status): New field error_desc.
  6471. * tracepoint.c (stop_reason_names): Add terror.
  6472. (current_trace_status): Ensure non-NULL error description.
  6473. (trace_status_command): Add error report.
  6474. (trace_status_mi): Ditto.
  6475. (trace_save): Add special case for error description.
  6476. (parse_trace_status): Add case for errors.
  6477. 2010-03-25 Keith Seitz <keiths@redhat.com>
  6478. * dwarf2read.c (read_subroutine_type): If the compilation unit
  6479. language is Java, mark any formal parameter named "this" as
  6480. artificial (GCC/43521).
  6481. (dwarf2_name): Add special handling for Java constructors.
  6482. 2010-03-25 Tom Tromey <tromey@redhat.com>
  6483. PR gdb/11327, PR gdb/11328, PR breakpoints/11368:
  6484. * infrun.c (handle_inferior_event): Change initialization of
  6485. stop_stack_dummy.
  6486. (handle_inferior_event): Change assignment to stop_stack_dummy.
  6487. (normal_stop): Update use of stop_stack_dummy.
  6488. (struct inferior_status) <stop_stack_dummy>: Change type.
  6489. * inferior.h (stop_stack_dummy): Update.
  6490. * infcmd.c (stop_stack_dummy): Change type.
  6491. * infcall.c (cleanup_delete_std_terminate_breakpoint): New
  6492. function.
  6493. (call_function_by_hand): Call set_std_terminate_breakpoint.
  6494. Rewrite std::terminate handling.
  6495. * breakpoint.h (enum bptype) <bp_std_terminate,
  6496. bp_std_terminate_master>: New.
  6497. (enum stop_stack_kind): New.
  6498. (struct bpstat_what) <call_dummy>: Change type.
  6499. (set_std_terminate_breakpoint, delete_std_terminate_breakpoint):
  6500. Declare.
  6501. * breakpoint.c (create_std_terminate_master_breakpoint): New
  6502. function.
  6503. (update_breakpoints_after_exec): Handle bp_std_terminate_master.
  6504. Call create_std_terminate_master_breakpoint.
  6505. (print_it_typical): Handle new breakpoint kinds.
  6506. (bpstat_stop_status): Handle bp_std_terminate_master.
  6507. (bpstat_what): Correctly set call_dummy field. Handle
  6508. bp_std_terminate_master and bp_std_terminate.
  6509. (print_one_breakpoint_location): Update.
  6510. (allocate_bp_location): Update.
  6511. (set_std_terminate_breakpoint): New function.
  6512. (delete_std_terminate_breakpoint): Likewise.
  6513. (create_thread_event_breakpoint): Update.
  6514. (delete_command): Update.
  6515. (breakpoint_re_set_one): Update.
  6516. (breakpoint_re_set): Call create_std_terminate_master_breakpoint.
  6517. 2010-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
  6518. * symfile.c (build_section_addr_info_from_bfd): New.
  6519. (build_section_addr_info_from_objfile): Base it on
  6520. build_section_addr_info_from_bfd.
  6521. (addrs_section_compar, addrs_section_sort): New.
  6522. (addr_info_make_relative): New variables my_cleanup, abfd_addrs,
  6523. addrs_sorted, abfd_addrs_sorted and addrs_to_abfd_addrs. Build
  6524. addrs_to_abfd_addrs. Use it for recalculating ADDRS.
  6525. 2010-03-24 Michael Snyder <msnyder@localhost.localdomain>
  6526. * elfread.c (find_separate_debug_file_by_buildid):
  6527. Remove unused local variable.
  6528. 2010-03-24 Tom Tromey <tromey@redhat.com>
  6529. PR breakpoints/9352:
  6530. * NEWS: Mention changes to `commands' and `rbreak'.
  6531. * symtab.c (do_end_rbreak_breakpoints): New function.
  6532. (rbreak_command): Call start_rbreak_breakpoints; arrange to call
  6533. end_rbreak_breakpoints.
  6534. * breakpoint.c (breakpoint_count, tracepoint_count): Now static.
  6535. (set_breakpoint_count): Likewise. Clear last_was_multi.
  6536. (multi_start, multi_end, last_was_multi): New globals.
  6537. (start_rbreak_breakpoints, end_rbreak_breakpoints): New
  6538. functions.
  6539. (struct commands_info): New
  6540. (do_map_commands_command): New function.
  6541. (commands_command_1): New function.
  6542. (commands_command): Use it.
  6543. (commands_from_control_command): Likewise.
  6544. (do_delete_breakpoint): New function.
  6545. (delete_command): Use it.
  6546. (map_breakpoint_numbers): Add 'data' argument. Pass to callback.
  6547. (do_map_disable_breakpoint): New function.
  6548. (disable_command): Use it.
  6549. (do_map_enable_breakpoint): New function.
  6550. (enable_command): Use it.
  6551. (enable_once_breakpoint): Add argument.
  6552. (enable_once_command): Update.
  6553. (enable_delete_breakpoint): Add argument.
  6554. (enable_delete_command): Update.
  6555. (break_command_really): Set last_was_multi when needed.
  6556. (check_tracepoint_command): Fix formatting.
  6557. (validate_commands_for_breakpoint): New function.
  6558. (breakpoint_set_commands): Use it.
  6559. (tracepoint_save_command): Update.
  6560. * breakpoint.h (start_rbreak_breakpoints, end_rbreak_breakpoints):
  6561. Declare.
  6562. 2010-03-24 Tom Tromey <tromey@redhat.com>
  6563. * breakpoint.h (struct counted_command_line): New struct.
  6564. (struct breakpoint) <commands>: Change type.
  6565. (struct bpstats) <commands>: Change type.
  6566. <commands_left>: New field.
  6567. * breakpoint.c (alloc_counted_command_line): New function.
  6568. (incref_counted_command_line): Likewise.
  6569. (decref_counted_command_line): Likewise.
  6570. (do_cleanup_counted_command_line): Likewise.
  6571. (make_cleanup_decref_counted_command_line): Likewise.
  6572. (breakpoint_set_commands): Use decref_counted_command_line and
  6573. alloc_counted_command_line.
  6574. (commands_command): Don't error if breakpoint commands are
  6575. executing.
  6576. (commands_from_control_command): Likewise.
  6577. (bpstat_free): Update.
  6578. (bpstat_copy): Likewise.
  6579. (bpstat_clear_actions): Likewise.
  6580. (bpstat_do_actions_1): Likewise.
  6581. (bpstat_stop_status): Likewise.
  6582. (print_one_breakpoint_location): Likewise.
  6583. (delete_breakpoint): Likewise.
  6584. (bpstat_alloc): Initialize new field.
  6585. (tracepoint_save_command): Update.
  6586. * tracepoint.c (encode_actions): Update.
  6587. (trace_dump_command): Update.
  6588. 2010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
  6589. * dwarf2-frame.c (dwarf2_frame_find_quirks): Use producer_is_realview.
  6590. * dwarf2read.c (load_full_comp_unit): Read DW_AT_producer.
  6591. (read_structure_type): For RealView, set TYPE_STUB on structures with
  6592. no byte size and no children.
  6593. (read_subroutine_type): Mark functions as prototyped by default.
  6594. * symtab.c (producer_is_realview): New function.
  6595. * symtab.h (expand_line_sal): Fix declaration formatting.
  6596. (producer_is_realview): Declare.
  6597. 2010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
  6598. * arm-tdep.c (skip_prologue_function): New function.
  6599. (submask, bit, bits, sbits, BranchDest): Move higher in the file.
  6600. (thumb_analyze_prologue): Document return value. Recognize more
  6601. Thumb instructions, skippable calls, and some Thumb-2 instructions.
  6602. Add debug output.
  6603. (arm_skip_prologue): Remove call dummy check. Check the prologue
  6604. for non-GNU compilers.
  6605. (arm_instruction_changes_pc): New function.
  6606. (arm_analyze_prologue): New function, broken out from
  6607. arm_scan_prologue. Recognize more ARM instructions and skippable
  6608. calls. Update comments. Handle NULL cache. Return the address
  6609. of the first unrecognized instruction. Do not skip past other
  6610. instructions which change control flow. Add debug output.
  6611. (arm_scan_prologue): Use arm_analyze_prologue.
  6612. (ARM_PC_32): Delete.
  6613. (shifted_reg_val): Simplify ARM_PC_32 check.
  6614. 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
  6615. * tracepoint.c (tvariables_info_1): Actually compute
  6616. the number of rows in the result.
  6617. 2010-03-24 Pedro Alves <pedro@codesourcery.com>
  6618. * remote.c (crc32): Constify `buf' parameter.
  6619. (remote_verify_memory): New, abstracted out from...
  6620. (compare_sections_command): ... this. Remove hardcoded target
  6621. checks.
  6622. (init_remote_ops): Install remote_verify_memory.
  6623. * target.c (target_verify_memory): New.
  6624. * target.h (struct target_ops) <to_verify_memory>: New field.
  6625. (target_verify_memory): Declare.
  6626. 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
  6627. Implement -trace-save.
  6628. * mi-cmds.h (mi_cmds_trace_save): Declare.
  6629. * mi-cmds.c (mi_cmds): Register -trace-save.
  6630. * mi/mi-main.c (mi_cmd_trace_save): New.
  6631. * remote.c (remote_save_trace_data): Take const parameter.
  6632. * target.h (struct target_ops::to_save_trace_data): Take
  6633. const parameter.
  6634. * target.c (update_current_target): Adjust to the above.
  6635. * tracepoint.c (trave_save): New, extracted from
  6636. (trace_save_command): ...this.
  6637. (tfile_trace_find): Remove message that is unnecessary now
  6638. that 'tfind' reports found frame.
  6639. * tracepoint.h (trace_save): Declare.
  6640. 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
  6641. Implement -trace-find.
  6642. * mi/mi-cmds.c (mi_cmds): Register -trace-find.
  6643. * mi/mi-cmds.h (mi_cmd_trace_find): Declare.
  6644. * mi/mi-main.c (mi_cmd_trace_find): New.
  6645. * target.h (struct target_ops): Document to_trace_find.
  6646. * tracepoint.h (tfind_1): Declare.
  6647. * tracepoint.c (finish_tfind_command): Rename to...
  6648. (tfind_1): ...this.
  6649. * remote.c (remote_trace_find): Return -1 if target say
  6650. there's no frame. Improve error diagnostics.
  6651. 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
  6652. -trace-define-variable and -trace-list-variables.
  6653. * tracepoint.c (create_trace_state_variable): Make
  6654. private copy of name, as opposed to assuming the
  6655. pointer lives forever.
  6656. (tvariables_info_1): New.
  6657. (tvariables_info): Use the above.
  6658. * tracepoint.h (create_trace_state_variable, tvariables_info_1):
  6659. Declare.
  6660. * mi/mi-cmds.c (mi_cmds): Register -trace-define-variable
  6661. and -trace-list-variables.
  6662. * mi/mi-cmds.h (mi_cmd_trace_define_variable)
  6663. (mi_cmd_trace_list_variables): New.
  6664. * mi/mi-main.c (mi_cmd_trace_define_variable)
  6665. (mi_cmd_trace_list_variables): New.
  6666. 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
  6667. Implement -break-passcount.
  6668. * mi/mi-cmd-break.c (mi_cmd_break_passcount): New.
  6669. * mi/mi-cmds.c (mi_cmds): Register -break-passcount.
  6670. * mi/mi-cmds.h (mi_cmd_break_passcount): Declare.
  6671. 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
  6672. -trace-start/-trace-end/-trace-status.
  6673. * mi/mi-cmds.c (mi_cmds): Register -trace-start, -trace-status
  6674. and -trace-stop.
  6675. * mi/mi-cmds.h (mi_cmd_trace_start, mi_cmd_trace_status)
  6676. (mi_cmd_trace_stop): Declare.
  6677. * mi/mi-main.c (mi_cmd_trace_start, mi_cmd_trace_status)
  6678. (mi_cmd_trace_stop): New.
  6679. * tracepoint.c (start_tracing): New, extracted from...
  6680. (trace_start_command): ...this.
  6681. (trace_status_mi): New.
  6682. * tracepoint.h (struct trace_status): Document
  6683. stopping_tracepoint.
  6684. (start_tracing, stop_tracing, trace_status_mi): Declare.
  6685. 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
  6686. Implement creating tracepoints with -break-insert.
  6687. * mi/mi-cmd-break.c (mi_cmd_break_insert): Handle -a
  6688. to mean that tracepoint should be created.
  6689. 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
  6690. * breakpoint.c (check_no_tracepoint_commands): Use
  6691. current spelling of 'teval'.
  6692. 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
  6693. Unify actions and commands
  6694. * defs.h (read_command_lines, read_command_lines_1): New
  6695. parameters validator and closure.
  6696. * tracepoint.h (struct action_line): Remove.
  6697. * breakpoint.h (struct breakpoint): Remove the 'actions'
  6698. field.
  6699. * defs.h (enum command_control_type): New value
  6700. while_stepping_control.
  6701. (struct command_line): Add comments.
  6702. * breakpoint.c (breakoint_is_tracepoint): New.
  6703. (breakpoint_set_commands): For tracepoints,
  6704. verify the commands are permissible.
  6705. (check_tracepoint_commands): New.
  6706. (commands_command): Require that each new line is validated using
  6707. check_tracepoint_command, if we set commands for a tracepoint.
  6708. (create_tracepoint_from_upload): Likewise.
  6709. (print_one_breakpoint_location): Remove the code to print
  6710. actions specifically.
  6711. (tracepoint_save_command): Relay to print_command_lines.
  6712. * cli/cli-script.c (process_next_line): New parameters validator
  6713. and closure. Handle 'while-stepping'. Call validator if not null.
  6714. (read_command_lines, read_command_lines1): Likewise.
  6715. (recurse_read_control_structure): New parameters validator and
  6716. closure. Handle while_stepping_control.
  6717. (print_command_lines): Handle while-stepping.
  6718. (get_command_line, define_command, document_command): Adjust.
  6719. * remote.c (remote_download_tracepoint): Adjust.
  6720. * tracepoint.c (make_cleanup_free_actions, read_actions)
  6721. (free_actions, do_free_actions_cleanup): Remove.
  6722. (trace_actions_command): Use read_command_lines.
  6723. (validate_actionline): Use error in one place.
  6724. (encode_actions_1): New, extracted from...
  6725. (encode_actions): ...this. Also use cleanups for exception
  6726. safety.
  6727. (trace_dump_command): Adjust.
  6728. * mi/mi-cmd-break (mi_cmd_break_commands): Validate commands if
  6729. it's tracepoint.
  6730. 2010-03-23 Mike Frysinger <vapier@gentoo.org>
  6731. * Makefile.in (OPCODES_CFLAGS): Add -I$(OPCODES_SRC)/..
  6732. 2010-03-22 Stan Shebs <stan@codesourcery.com>
  6733. * value.c (value_static_field): Be lazy about the field's value.
  6734. 2010-03-22 Reid Kleckner <reid@kleckner.net>
  6735. PR gdb/11094
  6736. * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Add
  6737. bp_jit_event.
  6738. (disable_breakpoints_in_shlibs): Likewise.
  6739. 2010-03-22 Ulrich Weigand <uweigand@de.ibm.com>
  6740. * dwarf2read.c (partial_die_parent_scope): Work around buggy
  6741. GCC 4.1 debug info generation (GCC PR c++/28460).
  6742. (determine_prefix): Likewise.
  6743. 2010-03-20 Daniel Jacobowitz <dan@codesourcery.com>
  6744. * tui/tui-disasm.c (tui_get_begin_asm_address): Default to
  6745. get_current_arch.
  6746. * tui/tui-layout.c (extract_display_start_addr): Likewise.
  6747. 2010-03-19 Stan Shebs <stan@codesourcery.com>
  6748. * ax-gdb.c (gen_fetch): Handle bool.
  6749. (gen_usual_unary): Ditto.
  6750. (gen_cast): Ditto.
  6751. (gen_equal): New function.
  6752. (gen_less): New function.
  6753. (gen_expr_binop_rest): Call them, also return integer type from
  6754. logical operations.
  6755. (gen_expr): Ditto.
  6756. 2010-03-19 Tom Tromey <tromey@redhat.com>
  6757. * jv-lang.c (jv_dynamics_objfile_data_key)
  6758. (jv_type_objfile_data_key): New globals.
  6759. (class_symtab): Move earlier.
  6760. (jv_per_objfile_free): New function.
  6761. (get_dynamics_objfile): Call set_objfile_data. Add 'gdbarch'
  6762. parameter.
  6763. Remove ancient #if 1.
  6764. (add_class_symbol): Remove redundant declaration.
  6765. (java_lookup_class): Use alloc_type, not alloc_type_arch.
  6766. (java_link_class_type): Mark as static. Update.
  6767. (jv_clear_object_type): New function.
  6768. (set_java_object_type): Likewise.
  6769. (get_java_object_type): Use set_java_object_type.
  6770. (is_object_type): Likewise.
  6771. (_initialize_java_language): Register new objfile keys.
  6772. (get_java_class_symtab): Add 'gdbarch' parameter.
  6773. (add_class_symtab_symbol): Update.
  6774. (type_from_class): Update.
  6775. 2010-03-19 Stan Shebs <stan@codesourcery.com>
  6776. * ax-general.c (ax_const_l): Fix a sizing bug.
  6777. 2010-03-18 Joel Brobecker <brobecker@adacore.com>
  6778. GDB 7.1 released.
  6779. 2010-03-18 Stan Shebs <stan@codesourcery.com>
  6780. Pedro Alves <pedro@codesourcery.com>
  6781. * target.h (struct target_ops): New method
  6782. to_set_circular_trace_buffer.
  6783. (target_set_circular_trace_buffer): New macro.
  6784. * target.c (update_current_target): Add
  6785. to_set_circular_trace_buffer, fix to_set_disconnected_tracing
  6786. default behavior.
  6787. * remote.c (remote_set_circular_trace_buffer): New function.
  6788. (init_remote_ops): Add it to vector.
  6789. * tracepoint.h (struct trace_status): New field traceframes_created,
  6790. change buffer_size and buffer_free to int.
  6791. * tracepoint.c (circular_trace_buffer): New global.
  6792. (start_tracing): Send values of disconnected tracing and circular
  6793. trace buffer settings.
  6794. (set_circular_trace_buffer): New function.
  6795. (parse_trace_state): Handle total space and frames created.
  6796. (trace_status_command): Display total space and total frames
  6797. created.
  6798. (trace_save): Write out new status values.
  6799. (parse_trace_status): Set traceframe_count, traceframes_created,
  6800. buffer_free and buffer_size to -1 by default.
  6801. (_initialize_tracepoint): New setshow for circular-trace-buffer.
  6802. * NEWS: Mention the circular trace buffer option.
  6803. 2010-03-18 Tom Tromey <tromey@redhat.com>
  6804. * infcmd.c (finish_command_continuation): Wrap print_return_value
  6805. in TRY_CATCH.
  6806. 2010-03-18 Joel Brobecker <brobecker@adacore.com>
  6807. * dwarf2read.c (add_partial_subprogram): Make sure the subprogram
  6808. DIE has a name before creating the associated partial symbol.
  6809. (read_func_scope): Emit a complaint if the subprogram does not
  6810. have a name or when we can't extract the subprogram PC bounds.
  6811. 2010-03-18 Ulrich Weigand <uweigand@de.ibm.com>
  6812. * mi/mi-main.c (mi_cmd_list_thread_groups): Use get_current_arch
  6813. instead of selected frame architecture.
  6814. 2010-03-18 Pedro Alves <pedro@codesourcery.com>
  6815. * infcmd.c (until_command): Use ERROR_NO_INFERIOR. Ensure there's
  6816. a valid selected thread, and that it is not running.
  6817. (advance_command): Ditto.
  6818. (finish_command): Ditto.
  6819. 2010-03-17 Stan Shebs <stan@codesourcery.com>
  6820. * ax-gdb.c (require_rvalue): Disallow non-scalars.
  6821. * infcall.c: Include tracepoint.h.
  6822. (call_function_by_hand): Disallow calls in tfind mode.
  6823. * infcmd.c: Include tracepoint.h.
  6824. (ensure_not_tfind_mode): New function.
  6825. (continue_1): Call it.
  6826. (step_1) Ditto.
  6827. (jump_command): Ditto.
  6828. (signal_command): Ditto.
  6829. (advance_command): Ditto.
  6830. (until_command): Ditto.
  6831. (finish_command): Ditto.
  6832. * tracepoint.h (disconnect_or_stop_tracing): Declare.
  6833. * ax-gdb.h (struct axs_value): New field optimized_out.
  6834. (gen_trace_for_var): Add gdbarch argument.
  6835. * ax-gdb.c (gen_trace_static_fields): New function.
  6836. (gen_traced_pop): Call it, add gdbarch argument.
  6837. (gen_trace_for_expr): Update call to it.
  6838. (gen_trace_for_var): Ditto, and report optimized-out variables.
  6839. (gen_struct_ref_recursive): Check for optimized-out value.
  6840. (gen_struct_elt_for_reference): Ditto.
  6841. (gen_static_field): Pass gdbarch instead of expression, assume
  6842. optimization if field not found.
  6843. (gen_var_ref): Set the optimized_out flag.
  6844. (gen_expr): Error on optimized-out variable.
  6845. * tracepoint.c (collect_symbol): Handle struct-valued vars as
  6846. expressions, skip optimized-out variables with computed locations.
  6847. * dwarf2loc.c (dwarf2_tracepoint_var_ref): Flag instead of
  6848. erroring out if location expression missing.
  6849. (loclist_tracepoint_var_ref): Don't error out here.
  6850. 2010-03-17 Tom Tromey <tromey@redhat.com>
  6851. * dwarf2read.c (dwarf2_get_section_info): Handle case where no
  6852. DWARF data is available.
  6853. 2010-03-17 Daniel Jacobowitz <dan@codesourcery.com>
  6854. * symfile.c (generic_load): Reset breakpoints after loading.
  6855. 2010-03-17 Tom Tromey <tromey@redhat.com>
  6856. * linux-nat.c (linux_nat_detach): Check debug_linux_nat.
  6857. 2010-03-17 Jan Kratochvil <jan.kratochvil@redhat.com>
  6858. * spu-tdep.c (spu_catch_start): Replace set_breakpoint call with the
  6859. create_breakpoint call, adjust the parameters.
  6860. 2010-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
  6861. Chandru <chandru@in.ibm.com>
  6862. * dwarf2read.c (read_subrange_type): Set TYPE_HIGH_BOUND_UNDEFINED.
  6863. * valarith.c (value_subscripted_rvalue): Suppress error if
  6864. TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
  6865. 2010-03-16 Holger Hans Peter Freyther <zecke@selfish.org>
  6866. * linux-record.c (record_linux_msghdr): Remove unintended semicolons.
  6867. 2010-03-16 Joel Brobecker <brobecker@adacore.com>
  6868. * ada-tasks.c (task_command_1): Check that the task ptid is valid
  6869. before doing the associated thread switch.
  6870. 2010-03-16 Daniel Jacobowitz <dan@codesourcery.com>
  6871. * MAINTAINERS: Update my email address.
  6872. 2010-03-16 Vladimir Prus <vladimir@codesourcery.com>
  6873. Simplify MI breakpoint setting.
  6874. * breakpoint.c (break_command_really): Make nonstatic and
  6875. rename to...
  6876. (create_breakpoint): ...this. Rename prior function by this name
  6877. to...
  6878. (create_breakpoint_sal): ...this.
  6879. (create_breakpoints): Rename to...
  6880. (create_breakpoints_sal): ...this.
  6881. (set_breakpoint): Remove.
  6882. * breakpoint.h: Adjust to above changes.
  6883. * mi/mi-cmd-break.c (mi_cmd_break_insert): Simplify.
  6884. 2010-03-15 Stan Shebs <stan@codesourcery.com>
  6885. * ax-gdb.c: Include cp-support.h.
  6886. (find_field): Remove.
  6887. (gen_primitive_field): New function.
  6888. (gen_struct_ref_recursive): New function.
  6889. (gen_struct_ref): Rewrite to call gen_struct_ref_recursive instead
  6890. of find_field.
  6891. (gen_static_field): New function.
  6892. (gen_struct_elt_for_reference): New.
  6893. (gen_namespace_elt): New.
  6894. (gen_maybe_namespace_elt): New.
  6895. (gen_aggregate_elt_ref): New.
  6896. (gen_expr): Add OP_SCOPE, display opcode name in error message.
  6897. 2010-03-15 Tom Tromey <tromey@redhat.com>
  6898. * dwarf2read.c (die_needs_namespace): Also return 0 for
  6899. DW_TAG_subprogram.
  6900. 2010-03-15 Sami Wagiaalla <swagiaal@redhat.com>
  6901. PR c++/7936:
  6902. * cp-support.h: Added char *declaration element to using_direct
  6903. data struct.
  6904. (cp_add_using): Added char *declaration argument.
  6905. (cp_add_using_directive): Ditto.
  6906. (cp_lookup_symbol_imports): made extern.
  6907. * cp-namespace.c: Updated with the above changes.
  6908. * dwarf2read.c (read_import_statement): Ditto.
  6909. (read_namespace): Ditto.
  6910. (read_import_statement): Support import declarations.
  6911. * cp-namespace.c (cp_lookup_symbol_imports): Check for imported
  6912. declarations.
  6913. Added support for 'declaration_only' search.
  6914. (cp_lookup_symbol_namespace): Attempt to search for the name as
  6915. is before consideration of imports.
  6916. * symtab.c (lookup_symbol_aux_local): Added a 'declaration_only'
  6917. search at every block level search.
  6918. Now takes language argument.
  6919. (lookup_symbol_aux): Updated.
  6920. 2010-03-15 Tom Tromey <tromey@redhat.com>
  6921. * c-exp.y (name_not_typename): Add 'operator' clause.
  6922. 2010-03-15 Ralf Corsepius <ralf.corsepius@rtems.org> (tiny change)
  6923. * configure.ac: Exit if ${gdb_target_obs}" is not set.
  6924. * configure: Regenerate.
  6925. 2010-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
  6926. * symfile.c (addr_info_make_relative): Ignore also missing ".dynbss"
  6927. and ".sdynbss". Update the comment.
  6928. 2010-03-15 Jie Zhang <jie@codesourcery.com>
  6929. * MAINTAINERS: Update my email address.
  6930. 2010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
  6931. * gdbtypes.h (TYPE_IS_OPAQUE): Correct HAVE_CPLUS_STRUCT check.
  6932. 2010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
  6933. * charset.c [USE_WIN32API]: Include <windows.h>.
  6934. (_initialize_charset): Correct type of w32_host_default_charset.
  6935. 2010-03-14 Pedro Alves <pedro@codesourcery.com>
  6936. * infrun.c (ptid_match): Don't assert that PTID is not a pid ptid.
  6937. 2010-03-12 Tom Tromey <tromey@redhat.com>
  6938. PR c++/9708:
  6939. * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: A variable
  6940. in a lexical block does not need a namespace.
  6941. (new_symbol) <DW_TAG_variable>: Put extern variables on
  6942. list_in_scope in all cases.
  6943. 2010-03-12 Stan Shebs <stan@codesourcery.com>
  6944. * ax-gdb.c (gen_expr): Add shift expressions.
  6945. (gen_expr_binop_rest): Ditto.
  6946. 2010-03-12 Sami Wagiaalla <swagiaal@redhat.com>
  6947. * buildsym.c (finish_block): Reset using_directives pointer
  6948. after block initialization.
  6949. 2010-03-12 H.J. Lu <hongjiu.lu@intel.com>
  6950. * amd64-tdep.c (amd64_word_names): Replace "sp" with "".
  6951. * i386-tdep.c (i386_word_names): Likewise.
  6952. 2010-03-12 Pedro Alves <pedro@codesourcery.com>
  6953. * target.c (memory_xfer_partial): Don't use the stack cache if
  6954. inspecting trace frames.
  6955. * tracepoint.c (finish_tfind_command): Invalidate the target
  6956. dcache.
  6957. 2010-03-11 Jan Kratochvil <jan.kratochvil@redhat.com>
  6958. * solib-svr4.c (LM_ADDR_CHECK) <info_verbose>: Use printf_unfiltered
  6959. for the PIC displacement, print also the displacement value.
  6960. (svr4_exec_displacement): Print DISPLACEMENT if INFO_VERBOSE.
  6961. 2010-03-10 Kevin Buettner <kevinb@redhat.com>
  6962. * remote-mips.c (close_ports, mips_initialize_cleanups)
  6963. (mips_exit_cleanups, mips_send_command, mips_open, pmon_open)
  6964. (ddb_open, lsi_open, mips_remove_breakpoint, mips_remove_watchpoint)
  6965. (mips_stopped_by_watchpoint, send_srec, pmon_checkset)
  6966. (pmon_make_fastrec, pmon_check_ack, mips_expect_download)
  6967. (pmon_check_entry_address, pmon_check_total, pmon_end_download)
  6968. (pmon_download, pmon_load_fast, _initialize_remote_mips): Add
  6969. comments describing each of these functions.
  6970. (mips_enter_debug, mips_exit_debug, common_open)
  6971. (mips_signal_from_protocol, pmon_makeb64, pmon_zeroset): Add
  6972. blank line after the comment describing the function.
  6973. 2010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
  6974. * solib-svr4.c (svr4_exec_displacement): Return now success, new
  6975. parameter displacementp. Update comment.
  6976. (svr4_relocate_main_executable): Return if non-zero SECTION_OFFSETS
  6977. element exists. Return if svr4_exec_displacement was not successful.
  6978. Update comment.
  6979. 2010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
  6980. Daniel Jacobowitz <dan@codesourcery.com>
  6981. * solib-svr4.c (read_program_header): Support type == -1 to read
  6982. all program headers.
  6983. (read_program_headers_from_bfd): New function.
  6984. (svr4_static_exec_displacement): Remove and move the comment ...
  6985. (svr4_exec_displacement): ... here. Remove variable found. New
  6986. variable displacement. Check also DYNAMIC. Verify DISPLACEMENT
  6987. alignment for ELF targets. Compare target vs. exec_bfd PHDRs for ELF
  6988. targets using read_program_headers_from_bfd. Remove the call of
  6989. svr4_static_exec_displacement.
  6990. 2010-03-10 Tom Tromey <tromey@redhat.com>
  6991. * dwarf2read.c (struct pubnames_header): Remove.
  6992. (_PUBNAMES_HEADER): Remove.
  6993. (_ACTUAL_PUBNAMES_HEADER_SIZE): Remove.
  6994. (struct aranges_header): Remove.
  6995. (_ARANGES_HEADER, _ACTUAL_ARANGES_HEADER_SIZE): Remove.
  6996. (struct dwarf2_per_objfile) <pubnames, aranges>: Remove.
  6997. (PUBNAMES_SECTION): Remove.
  6998. (ARANGES_SECTION): Remove.
  6999. (dwarf2_locate_sections): Don't handle pubnames or aranges.
  7000. (dwarf2_build_psymtabs): Remove dead code.
  7001. (dwarf2_build_psymtabs_easy): Remove.
  7002. 2010-03-10 Tom Tromey <tromey@redhat.com>
  7003. * elfread.c (elf_symfile_read): Don't call
  7004. dwarf2_build_frame_info.
  7005. * dwarf2read.c (struct dwarf2_section_info) <readin>: New field.
  7006. (struct dwarf2_per_objfile) <objfile>: New field.
  7007. (dwarf2_has_info): Now idempotent. Set objfile field.
  7008. (dwarf2_read_section): Check and set readin field. Call
  7009. posix_madvise.
  7010. (dwarf2_build_psymtabs): Don't read all sections.
  7011. (read_type_comp_unit_head): Read types section.
  7012. (create_debug_types_hash_table): Likewise.
  7013. (init_cu_die_reader): Add asserts.
  7014. (process_type_comp_unit): Add assert.
  7015. (dwarf2_build_psymtabs_hard): Read info section.
  7016. (load_partial_comp_unit): Add assert.
  7017. (create_all_comp_units): Read info section.
  7018. (load_full_comp_unit): Likewise.
  7019. (dwarf2_ranges_read): Read ranges section.
  7020. (dwarf2_record_block_ranges): Add assert.
  7021. (dwarf2_read_abbrevs): Read abbrev section.
  7022. (read_indirect_string): Read str section.
  7023. (dwarf_decode_line_header): Read line section.
  7024. (read_signatured_type_at_offset): Read types section.
  7025. (dwarf_decode_macros): Read macinfo section.
  7026. (dwarf2_symbol_mark_computed): Read loc section.
  7027. * dwarf2-frame.c (dwarf2_frame_find_fde): Call
  7028. dwarf2_build_frame_info.
  7029. (dwarf2_build_frame_info): Unconditionally set
  7030. dwarf2_frame_objfile_data on the objfile.
  7031. * configure.ac: Check for posix_madvise.
  7032. * config.in, configure: Rebuild.
  7033. 2010-03-10 Tom Tromey <tromey@redhat.com>
  7034. * xcoffread.c (xcoff_start_psymtab): Update.
  7035. (xcoff_end_psymtab): Update.
  7036. * psymtab.c (allocate_psymtab): Remove dead code.
  7037. * psympriv.h (struct partial_symtab) <read_symtab_private>: Now
  7038. void*.
  7039. * mdebugread.c (parse_partial_symbols): Update.
  7040. (new_psymtab): Likewise.
  7041. * dwarf2read.c (process_psymtab_comp_unit): Update.
  7042. (psymtab_to_symtab_1): Update.
  7043. * dbxread.c (start_psymtab): Update.
  7044. (end_psymtab): Likewise.
  7045. 2010-03-10 Tom Tromey <tromey@redhat.com>
  7046. * xcoffread.c: Include psymtab.h.
  7047. (xcoff_sym_fns): Update.
  7048. * symtab.h (struct partial_symbol): Remove.
  7049. (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.
  7050. (struct partial_symtab): Remove.
  7051. (PSYMTAB_TO_SYMTAB): Remove.
  7052. (lookup_partial_symbol, lookup_partial_symtab, find_pc_psymtab)
  7053. (find_pc_sect_psymtab): Remove.
  7054. (find_pc_sect_symtab_via_partial): Declare.
  7055. (find_pc_psymtab, find_pc_sect_psymbol, psymtab_to_symtab)
  7056. (find_main_psymtab): Remove.
  7057. (find_main_filename): Declare.
  7058. (fixup_psymbol_section): Remove.
  7059. (fixup_section): Declare.
  7060. * symtab.c: Include psymtab.h.
  7061. (lookup_symtab): Use lookup_symtab method.
  7062. (lookup_partial_symtab): Remove.
  7063. (find_pc_sect_psymtab_closer): Remove.
  7064. (find_pc_sect_psymtab): Remove.
  7065. (find_pc_sect_symtab_via_partial): New function.
  7066. (find_pc_psymtab, find_pc_sect_psymbol, find_pc_psymbol): Remove.
  7067. (fixup_section): No longer static.
  7068. (fixup_psymbol_section): Remove.
  7069. (lookup_symbol_aux): Use lookup_symbol_aux_quick.
  7070. (lookup_global_symbol_from_objfile): Likewise.
  7071. (lookup_symbol_aux_psymtabs): Remove.
  7072. (lookup_symbol_aux_quick): New function.
  7073. (lookup_symbol_global): Use lookup_symbol_aux_quick.
  7074. (lookup_partial_symbol): Remove.
  7075. (basic_lookup_transparent_type_quick): New function.
  7076. (basic_lookup_transparent_type): Use it.
  7077. (find_main_psymtab): Remove.
  7078. (find_main_filename): New function.
  7079. (find_pc_sect_symtab): Use find_pc_sect_symtab method.
  7080. (find_line_symtab): Use expand_symtabs_with_filename method.
  7081. (output_partial_symbol_filename): New function.
  7082. (sources_info): Use map_partial_symbol_filenames.
  7083. (struct search_symbols_data): New type.
  7084. (search_symbols_file_matches): New function.
  7085. (search_symbols_name_matches): Likewise.
  7086. (search_symbols): Use expand_symtabs_matching method.
  7087. (struct add_name_data): Rename from add_macro_name_data.
  7088. (add_macro_name): Update.
  7089. (add_partial_symbol_name): New function.
  7090. (default_make_symbol_completion_list): Use
  7091. map_partial_symbol_names.
  7092. (struct add_partial_symbol_name): New type.
  7093. (maybe_add_partial_symtab_filename): New function.
  7094. (make_source_files_completion_list): Use
  7095. map_partial_symbol_filenames.
  7096. (expand_line_sal): Use expand_symtabs_with_filename method.
  7097. * symmisc.c: Include psymtab.h.
  7098. (print_objfile_statistics): Use print_stats method.
  7099. (dump_objfile): Use dump method.
  7100. (dump_psymtab, maintenance_print_psymbols)
  7101. (maintenance_info_psymtabs, maintenance_check_symtabs)
  7102. (extend_psymbol_list): Remove.
  7103. * symfile.h (struct quick_symbol_functions): New struct.
  7104. (struct sym_fns) <qf>: New field.
  7105. (sort_pst_symbols): Remove.
  7106. (increment_reading_symtab): Declare.
  7107. * symfile.c: Include psymtab.h.
  7108. (compare_psymbols, sort_pst_symbols): Remove.
  7109. (psymtab_to_symtab): Remove.
  7110. (increment_reading_symtab): New function.
  7111. (symbol_file_add_with_addrs_or_offsets): Use expand_all_symtabs
  7112. method.
  7113. (set_initial_language): Use find_main_filename.
  7114. (allocate_psymtab, discard_psymtab, cashier_psymtab): Remove.
  7115. (free_named_symtabs): Remove unused code.
  7116. (start_psymtab_common, add_psymbol_to_bcache)
  7117. (append_psymbol_to_list, add_psymbol_to_list, init_psymbol_list):
  7118. Remove.
  7119. * stack.c: Include psymtab.h, symfile.h.
  7120. (backtrace_command_1): Use find_pc_sect_symtab_via_partial.
  7121. * source.h (psymtab_to_fullname): Don't declare.
  7122. * source.c: Include psymtab.h.
  7123. (select_source_symtab): Use find_last_source_symtab method.
  7124. (forget_cached_source_info): Use forget_cached_source_info
  7125. method.
  7126. (find_and_open_source): No longer static.
  7127. (psymtab_to_fullname): Remove.
  7128. * somread.c: Include psymtab.h.
  7129. (som_sym_fns): Update.
  7130. * psympriv.h: New file.
  7131. * psymtab.h: New file.
  7132. * psymtab.c: New file.
  7133. * objfiles.h: (ALL_OBJFILE_PSYMTABS): Remove.
  7134. (ALL_PSYMTABS, ALL_PSPACE_PSYMTABS): Likewise.
  7135. * objfiles.c: Include psymtab.h.
  7136. (objfile_relocate1): Use relocate method.
  7137. (objfile_has_partial_symbols): Use has_symbols method.
  7138. * mipsread.c: Include psymtab.h.
  7139. (ecoff_sym_fns): Update.
  7140. * mi/mi-cmd-file.c: Include psymtab.h.
  7141. (print_partial_file_name): New function.
  7142. (mi_cmd_file_list_exec_source_files): Use
  7143. map_partial_symbol_filenames.
  7144. * mdebugread.c: Include psympriv.h.
  7145. * machoread.c: Include psympriv.h.
  7146. (macho_sym_fns): Update.
  7147. * m2-exp.y (yylex): Use lookup_symtab.
  7148. * elfread.c: Include psympriv.h.
  7149. (elf_sym_fns): Update.
  7150. * dwarf2read.c: Include psympriv.h.
  7151. * dbxread.c: Include psympriv.h.
  7152. (aout_sym_fns): Update.
  7153. * cp-support.c: Include psymtab.h.
  7154. (read_in_psymtabs): Remove.
  7155. (make_symbol_overload_list_qualified): Use
  7156. expand_symtabs_for_function method.
  7157. * coffread.c: Include psympriv.h.
  7158. (coff_sym_fns): Update.
  7159. * blockframe.c: Include psymtab.h.
  7160. (find_pc_partial_function): Use find_pc_sect_symtab method.
  7161. * ada-lang.h (ada_update_initial_language): Update.
  7162. * ada-lang.c: Include psymtab.h.
  7163. (ada_update_initial_language): Remove 'main_pst' argument.
  7164. (ada_lookup_partial_symbol): Remove.
  7165. (struct ada_psym_data): New type.
  7166. (ada_add_psyms): New function.
  7167. (ada_add_non_local_symbols): Use map_ada_symtabs method.
  7168. (struct add_partial_datum): New type.
  7169. (ada_add_partial_symbol_completions): New function.
  7170. (ada_make_symbol_completion_list): Use map_partial_symbol_names.
  7171. (ada_exception_support_info_sniffer): Update.
  7172. * Makefile.in (SFILES): Add psymtab.c.
  7173. (COMMON_OBS): Add psymtab.o.
  7174. (HFILES_NO_SRCDIR): Add psymtab.h, psympriv.h.
  7175. 2010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
  7176. * remote-fileio.c (cygwin_conv_path): Define macro for old cygwin API.
  7177. 2010-03-10 Sami Wagiaalla <swagiaal@redhat.com>
  7178. PR C++/11236:
  7179. * cp-namespace.c (cp_add_using): Deleted.
  7180. (cp_add_using_directive): Use obstack allocations.
  7181. Merged the function cp_add_using into this one.
  7182. Added 'struct obstack *' argument.
  7183. (cp_scan_for_anonymous_namespaces): Updated.
  7184. * cp-support.h: Updated.
  7185. * dwarf2read.c (read_import_statement): Updated.
  7186. (read_namespace): Updated.
  7187. 2010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
  7188. * windows-nat.c (cygwin_conv_path): Remove old macro.
  7189. 2010-03-10 Pedro Alves <pedro@codesourcery.com>
  7190. * breakpoint.c (condition_command): Handle watchpoint conditions.
  7191. (is_hardware_watchpoint): Add comment.
  7192. (is_watchpoint): New.
  7193. (update_watchpoint): Don't reparse the watchpoint's condition
  7194. unless necessary.
  7195. (WP_IGNORE): New.
  7196. (watchpoint_check): Use it.
  7197. (bpstat_check_watchpoint): Handle it.
  7198. (bpstat_check_breakpoint_conditions): Evaluate watchpoint local
  7199. conditions in a frame where it makes sense.
  7200. (watch_command_1): Store the innermost block of the condition
  7201. expression.
  7202. (delete_breakpoint): Delete the watchpoint condition expression.
  7203. * breakpoint.h (struct bp_location) <cond>: Update comment.
  7204. (struct breakpoint): New field `cond_exp_valid_block'.
  7205. 2010-03-09 Joel Brobecker <brobecker@adacore.com>
  7206. Adjust handling of Ada DIEs after dwarf2_physname patch.
  7207. * dwarf2read.c (dwarf2_compute_name): Add handling of Ada DIEs.
  7208. 2010-03-09 Christopher Faylor <me+cygwin@cgf.cx>
  7209. Pierre Muller <muller@ics.u-strasbg.fr>
  7210. * windows-nat.c (cygwin_conv_path): Redefine to properly convert
  7211. from/to posix/win32.
  7212. (windows_make_so): Use non-Cygwin 1.7 specific function.
  7213. (windows_create_inferior): Make sure that cygallargs points to
  7214. original args in non Cygwin 1.7. case.
  7215. 2010-03-09 Michael Snyder <msnyder@vmware.com>
  7216. * i386-tdep.c (i386_record_lea_modrm_addr): Use extract_signed_int
  7217. after target_read_memory to get host byte order.
  7218. (i386_process_record): Ditto.
  7219. 2010-03-09 Keith Seitz <keiths@redhat.com>
  7220. Based on work from Daniel Jacobowitz <dan@codesourcery.com>
  7221. * c-typeprint.c (cp_type_print_method_args): For non-static methods,
  7222. print out const or volatile qualifiers, too.
  7223. (c_type_print_args): Add parameters show_artificial and language.
  7224. Skip artificial parameters when requested.
  7225. Use the appropriate language printer.
  7226. (c_type_print_varspec): Tell c_type_print_args to skip artificial
  7227. parameters and pass language_c.
  7228. * dwarf2read.c (die_list): New file global.
  7229. (struct partial_die_info): Update comments for name field.
  7230. (pdi_needs_namespace): Renamed to ...
  7231. (die_needs_namespace): ... this. Rewrite.
  7232. (dwarf2_linkage_name): Remove.
  7233. (add_partial_symbol): Do not predicate the call to
  7234. partial_die_full_name based on pdi_needs_namespace.
  7235. Remove call to cp_check_possible_namespace_symbols and associated
  7236. outdated comments.
  7237. (guess_structure_name): Do not inspect child subprogram DIEs.
  7238. (dwarf2_fullname): Update comments.
  7239. Use die_needs_namespace to assist in computing the name.
  7240. (read_func_scope): Use dwarf2_name to get the DIE's name.
  7241. Use dwarf2_physname to get the "linkage name" of the DIE.
  7242. (dwarf2_add_member_field): Use dwarf2_physname instead of
  7243. dwarf2_linkage_name.
  7244. (read_structure_type): For structs and classes, set TYPE_NAME, too.
  7245. (determine_class): Remove.
  7246. (read_partial_die): Ignore DW_AT_MIPS_linkage_name for all languages
  7247. except Ada.
  7248. (new_symbol): Unconditionally call dwarf2_name.
  7249. Compute the "linkage name" using dwarf2_physname.
  7250. Use dwarf2_name instead of dwarf2_full_name for enumerator DIEs.
  7251. When determining to scan for anonymous C++ namespaces, ignore
  7252. the linkage name.
  7253. (dwarf2_physname): New function.
  7254. (dwarf2_full_name): Move content to new function and call
  7255. that.
  7256. (dwarf2_compute_name): "New" function.
  7257. (_initialize_dwarf2_read): Initialize die_list.
  7258. * gnu-v3-eabi.c (gnu_v3_find_method_in): Remove unused variable
  7259. physname.
  7260. (gnu_v3_print_method_ptr): Use the physname for virtual methods
  7261. without a demangled name.
  7262. Print out type information for non-virtual methods.
  7263. * linespec.c (decode_line_1): Force ANY string using "::" (or
  7264. "." for java) to use decode_compound, and clean up any stray quoting.
  7265. If we found a file symtab, re-evaluate whether the remainder is_quoted.
  7266. (decode_compound): Stop consuming at an open parenthesis.
  7267. Keep template parameters.
  7268. Keep any overload information.
  7269. Keep keywords like "const".
  7270. Remove paren_pointer.
  7271. Move is_quoted check from set_flags to here.
  7272. Remove #if 0 code from 2000. Ten years is long enough.
  7273. (find_method): Before comparing symbol names, canonicalize the string
  7274. from the user.
  7275. If a specific overload is requested, find it. Otherwise throw an error.
  7276. (find_method_overload_end): New function.
  7277. (set_flags): Remove.
  7278. (decode_compound): Assume that parentheses are matched.
  7279. It's a lot easier.
  7280. * symtab.c (symbol_find_demangled_name): Add DMGL_VERBOSE flag
  7281. to cplus_demangle.
  7282. * linespec.c (decode_line_1): Keep important keywords like
  7283. "const" and "volatile".
  7284. * symtab.h (SYMBOL_CPLUS_DEMANGLED_NAME): Remove.
  7285. * typeprint.h (c_type_print_args): Add declaration.
  7286. * ui-file.c (do_ui_file_obsavestring): New function.
  7287. (ui_file_obsavestring): New function.
  7288. * ui-file.h (ui_file_obsavestring): Add declaration.
  7289. * valops.c (find_overload_match): Resolve the object to
  7290. a non-pointer type.
  7291. If the object is a data member, search the object for the member
  7292. and return with staticp set.
  7293. Use SYMBOL_NATURAL_NAME instead of SYMBOL_CPLUS_DEMANGLED_NAME.
  7294. Do not attempt to extract a function name from non-function types.
  7295. If the extracted function name and the original name are the same,
  7296. we don't have a C++ method.
  7297. From Jan Kratochvil <jan.kratochvil@redhat.com>:
  7298. * dwarf2read.c (new_symbol <DW_TAG_enumerator>): Call dwarf2_full_name.
  7299. * ada-lang.c (ada_lookup_symbol): Remove linkage_name parameters
  7300. and arguments from symbol lookups.
  7301. * ax-gdb.c (gen_expr): Likewise.
  7302. * cp-namespace.c (cp_lookup_symbol_nonlocal, lookup_namespace_scope,
  7303. cp_lookup_symbol_namespace, lookup_symbol_file, lookup_nested_type,
  7304. lookup_possible_namespace_symbol): Likewise.
  7305. * cp-support.c (read_in_psymtabs): Likewise.
  7306. * cp-support.h (cp_lookup_symbol_nonlocal): Likewise.
  7307. * language.h (la_lookup_symbol_nonlocal): Likewise.
  7308. * scm-valprint.c (scm_inferior_print): Likewise.
  7309. * solib-darwin.c (darwin_relocate_section_addresses): Likewise.
  7310. * solib-svr.c (elf_lookup_lib): Likewise.
  7311. * solib.c (show_auto_solib_add): Likewise.
  7312. * solist.h (lookup_lib_global, solib_global_lookup): Likewise.
  7313. * symmisc.c (maintenance_check_symtabs): Likewise.
  7314. * symtab.c (lookup_symbol_in_language, lookup_symbol_aux,
  7315. lookup_symbol_aux_local, lookup_symbol_aux_block,
  7316. lookup_symbol_from_objfile, lookup_symbol_aux_symtabs,
  7317. lookup_symbol_aux_psymtabs,basic_lookup_symbol_nonlocal,
  7318. lookup_symbol_static, lookup_symbol_global, symbol_matches_domain,
  7319. basic_lookup_transparent_type, find_main_psymtab,
  7320. lookup_block_symbol): Likewise.
  7321. * symtab.h (basic_lookp_symbol_nonlocal, lookup_symbol_static,
  7322. lookup_symbol_global, lookup_symbol_aux_block,
  7323. lookup_symbol_partial_symbol, lookup_block_symbol,
  7324. lookup_global_symbol, value_maybe_namespace_elt): Likewise.
  7325. 2010-03-09 Pierre Muller <muller@ics.u-strasbg.fr>
  7326. * python/python-internal.h: Include symtab.h.
  7327. 2010-03-09 Joel Brobecker <brobecker@adacore.com>
  7328. Pierre Muller <muller@ics.u-strasbg.fr>
  7329. * p-lang.c (is_pascal_string_type): Remove unneeded parentheses.
  7330. * p-valprint.c (pascal_val_print): Remove undeed block and fix
  7331. indentation.
  7332. 2010-03-08 Tom Tromey <tromey@redhat.com>
  7333. * breakpoint.c (breakpoint_1): Add "QUIT".
  7334. 2010-03-08 Daniel Jacobowitz <dan@codesourcery.com>
  7335. Pedro Alves <pedro@codesourcery.com>
  7336. * solib.c (solib_find): Replace extension if
  7337. solib_symbols_extension is set in the target gdbarch.
  7338. * arm-symbian-tdep.c (arm_symbian_init_abi): Set
  7339. solib_symbols_extension to "sym".
  7340. * gdbarch.sh (solib_symbols_extension): New variable.
  7341. (pstring): New function.
  7342. * gdbarch.h, gdbarch.c: Regenerate.
  7343. 2010-03-08 Tom Tromey <tromey@redhat.com>
  7344. PR cli/9591:
  7345. * NEWS: Update.
  7346. * utils.c: Include main.h.
  7347. (fputs_maybe_filtered): Don't paginate if `batch_flag'.
  7348. (defaulted_query): Use default answer if `batch_flag'.
  7349. * main.h (batch_flag): Declare.
  7350. * main.c (batch_flag): New global.
  7351. (captured_main): Remove 'batch'. Update.
  7352. 2010-03-08 Kevin Buettner <kevinb@redhat.com>
  7353. From Richard Sandiford, Martin M. Hunt, Corinna Vinschen,
  7354. and Kevin Buettner:
  7355. * remote-mips.c (rockhopper_ops): New target_ops struct.
  7356. (MON_ROCKHOPPER): New mips_monitor_type.
  7357. (read_hex_value): New function.
  7358. (mips_request): Send 8-byte values with a 'T' packet. Read the
  7359. packet argument as a string and use read_hex_value to parse it.
  7360. (mips_exit_debug): Wait for response when using MON_ROCKHOPPER.
  7361. (rockhopper_open): New function.
  7362. (mips_wait): Read the PC, FP and SP fields as strings. Use
  7363. read_hex_value to parse them and mips_set_register to commit them.
  7364. (mips_set_register): New function.
  7365. (mips_fetch_registers): Do not cast register value to "unsigned"
  7366. when reading a MON_ROCKHOPPER 't' packet. Use mips_set_register.
  7367. (mips_store_registers): Use a 'T' packet to set registers when
  7368. using MON_ROCKHOPPER.
  7369. (pmon_end_download): Don't run initEther if using MON_ROCKHOPPER
  7370. and expect the total to be printed before the entry address.
  7371. (_initialize_remote_mips): Initialize and add rockhopper_ops.
  7372. 2010-03-08 Kevin Buettner <kevinb@redhat.com>
  7373. * remote-mips.c (mips_fetch_word): Add new parameter, `valp'.
  7374. Change return value to int. Store value fetched in location
  7375. addressed by `val'. Use function's return value as success
  7376. or failure indicator. Adjust all callers.
  7377. 2010-03-08 Pierre Muller <muller@ics.u-strasbg.fr>
  7378. * p-lang.c (is_pascal_string_type): Check that TYPE arg is non NULL.
  7379. 2010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
  7380. Hui Zhu <teawater@gmail.com>
  7381. * record.c (record_open_1): Check tmp_to_stopped_by_watchpoint and
  7382. tmp_to_stopped_data_address.
  7383. (record_open): Reset tmp_to_stopped_by_watchpoint and
  7384. tmp_to_stopped_data_address.
  7385. * target.c (init_dummy_target): Add to_stopped_by_watchpoint and
  7386. to_stopped_data_address.
  7387. 2010-03-08 Hui Zhu <teawater@gmail.com>
  7388. * i386-tdep.c (i386_process_record): Initialize regnum.
  7389. 2010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
  7390. * symfile.c (addr_info_make_relative): New variable sect_name, use it.
  7391. Do not warn on ".gnu.liblist" and ".gnu.conflict".
  7392. 2010-03-08 Joel Brobecker <brobecker@adacore.com>
  7393. Memory error when reading wrong core file.
  7394. * solib-svr4.c (solib_svr4_r_map): catch and print all exception
  7395. errors while reading the inferior memory, and return zero if
  7396. an exception was raised.
  7397. 2010-03-07 Michael Snyder <msnyder@vmware.com>
  7398. * record.c (record_restore): Rename tmpu8 to rectype.
  7399. * i386-tdep.c (i386_record_lea_modrm_addr): Rename local variables
  7400. tmpu8, tmpi16, tmpi32, tmpulongest to addr8, addr16, addr32, addr64.
  7401. (i386_record_push): Rename local tmpulongest to addr.
  7402. (i386_process_record): Rename local tmpulongest to addr.
  7403. Rename local variables tmpu16, tmpu32, tmpu64 to addr16, addr32,
  7404. addr64.
  7405. Rename local variable tmpu8 to opcode8 and regnum.
  7406. 2010-03-07 Joel Brobecker <brobecker@adacore.com>
  7407. * remote.c (remote_get_ada_task_ptid): New function.
  7408. (init_remote_ops): Set remote_ops.to_get_ada_task_ptid.
  7409. 2010-03-06 Christopher Faylor <me+cygwin@cgf.cx>
  7410. * windows-nat.c: Reorganize #ifdef __CYGWIN__ considerations into one
  7411. block. Define helper macros to reduce ifdefs in code.
  7412. (get_module_name): Use cygwin_buf_t for buffer and __PMAX for buffer
  7413. size. Call unadorned GetModuleFileNameEx rather than
  7414. GetModuleFileNameEx*.
  7415. (windows_make_so): Use __PMAX to denote maximum buffer size and
  7416. cygwin_buf_t for buffer type. Use GetSystemDirectory{W,A} as
  7417. appropriate.
  7418. (get_image_name): Use __PMAX to denote maximum buffer size.
  7419. (handle_load_dll): Likewise.
  7420. (windows_pid_to_exec_file): Likewise.
  7421. (windows_create_inferior): Add many accommodations for older Cygwin and
  7422. non-Cygwin.
  7423. (bad_GetModuleFileNameExW): Control inclusion of this function based on
  7424. __USEWIDE conditional.
  7425. (bad_GetModuleFileNameExA): Likewise.
  7426. (_initialize_loadable): Just use real function names without the dyn_
  7427. part since they are defined earlier.
  7428. 2010-03-05 Corinna Vinschen <vinschen@redhat.com>
  7429. Tom Tromey <tromey@redhat.com>
  7430. * utils.c (host_char_to_target): Add 'gdbarch' argument.
  7431. (parse_escape): Likewise.
  7432. * python/py-utils.c (unicode_to_target_string): Update.
  7433. (unicode_to_target_python_string): Update.
  7434. (target_string_to_unicode): Update.
  7435. * printcmd.c (printf_command): Update.
  7436. * p-exp.y (yylex): Update.
  7437. * objc-exp.y (yylex): Update.
  7438. * mi/mi-parse.c: Include charset.h.
  7439. (mi_parse_escape): New function.
  7440. (mi_parse_argv): Use it.
  7441. * jv-exp.y (yylex): Update.
  7442. * i386-cygwin-tdep.c (i386_cygwin_auto_wide_charset): New
  7443. function.
  7444. (i386_cygwin_init_abi): Call set_gdbarch_auto_wide_charset.
  7445. * gdbarch.sh (auto_charset, auto_wide_charset): New.
  7446. * gdbarch.c: Rebuild.
  7447. * gdbarch.h: Rebuild.
  7448. * defs.h (parse_escape): Update.
  7449. * cli/cli-setshow.c: Include arch-utils.h.
  7450. (do_setshow_command): Update.
  7451. * cli/cli-cmds.c (echo_command): Update.
  7452. * charset.h (target_charset, target_wide_charset): Update.
  7453. * charset.c: Include arch-utils.h.
  7454. (target_charset_name): Default to "auto".
  7455. (target_wide_charset_name): Likewise.
  7456. (show_target_charset_name): Handle "auto".
  7457. (show_target_wide_charset_name): Likewise.
  7458. (be_le_arch): New global.
  7459. (set_be_le_names): Add 'gdbarch' argument.
  7460. (validate): Likewise. Don't call set_be_le_names.
  7461. (set_charset_sfunc, set_host_charset_sfunc)
  7462. (set_target_charset_sfunc, set_target_wide_charset_sfunc):
  7463. Update.
  7464. (target_charset): Add 'gdbarch' argument.
  7465. (target_wide_charset): Likewise. Remove 'byte_order' argument.
  7466. (auto_target_charset_name): New global.
  7467. (default_auto_charset, default_auto_wide_charset): New functions.
  7468. (_initialize_charset): Set auto_target_charset_name. Allow "auto"
  7469. for target charsets. Copy result of nl_langinfo. Use GetACP if
  7470. USE_WIN32API.
  7471. * c-lang.c (charset_for_string_type): Add 'gdbarch' argument,
  7472. remove 'byte_order' argument. Update.
  7473. (classify_type): Likewise.
  7474. (c_emit_char): Update.
  7475. (c_printchar): Update.
  7476. (c_printstr): Update.
  7477. (c_get_string): Update.
  7478. (evaluate_subexp_c): Update.
  7479. * arch-utils.h (default_auto_charset, default_auto_wide_charset):
  7480. Declare.
  7481. * python/python.c (gdbpy_target_charset): New function.
  7482. (gdbpy_target_wide_charset): Likewise.
  7483. (GdbMethods): Update.
  7484. * NEWS: Update.
  7485. 2010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
  7486. * symfile.c (build_section_addr_info_from_objfile): Do not mask
  7487. off high address bits.
  7488. 2010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
  7489. * python/py-lazy-string.c (gdbpy_extract_lazy_string): Extract
  7490. address as UnsignedLongLong, not LongLong.
  7491. 2010-03-05 Kevin Buettner <kevinb@redhat.com>
  7492. Pedro Alves <pedro@codesourcery.com>
  7493. * remote-mips.c (gdbthread.h): Include.
  7494. (remote_mips_ptid): Declare.
  7495. (mips_error): Only mourn the inferior when inferior_ptid is non-null.
  7496. (common_open): Set inferior_ptid, add it as an inferior, and
  7497. as a thread too. Delete FIXME comment regarding start_remote().
  7498. (mips_close): Invoke generic_mourn_inferior().
  7499. (mips_kill): Make sure that target_mourn_inferior is invoked.
  7500. (mips_mourn_inferior): Don't invoke generic_mourn_inferior, as
  7501. it's now invoked from mips_close().
  7502. (mips_load): Don't null out inferior_ptid. Don't call
  7503. clear_symtab_users().
  7504. (mips_thread_alive, mips_pid_to_str): New functions.
  7505. (_initialize_remote_mips): Initialize remote_mips_ptid. Initialize
  7506. to_thread_alive and to_pid_to_str operations.
  7507. 2010-03-04 Tom Tromey <tromey@redhat.com>
  7508. * dwarf2read.c (skip_one_die) <DW_FORM_ref_addr>: Use offset size
  7509. in DWARF 3 and later.
  7510. (read_attribute_value) <DW_FORM_ref_addr>: Likewise.
  7511. 2010-03-04 Keith Seitz <keiths@redhat.com>
  7512. * linespec.c (decode_line_1): Update comments for is_quote_enclosed.
  7513. If the filename portion of the linespec was quoted, recheck the
  7514. remainder for additional quoting.
  7515. (locate_first_half): Skip over completer chars, too.
  7516. 2010-03-04 Tom Tromey <tromey@redhat.com>
  7517. * printcmd.c (printf_command): Pass dummy argument to
  7518. printf_filtered.
  7519. 2010-03-04 Doug Evans <dje@google.com>
  7520. * arm-tdep.c (arm_make_stub_cache): Delete unused locals reg,
  7521. unwound_fp.
  7522. * arm-tdep.c (arm_stub_unwind_sniffer): Add comment.
  7523. 2010-03-04 Pedro Alves <pedro@codesourcery.com>
  7524. * breakpoint.c (update_watchpoint): Create a sentinel location if
  7525. the software watchpoint isn't watching any memory.
  7526. (breakpoint_address_bits): Skip dummy software watchpoint locations.
  7527. 2010-03-04 Pedro Alves <pedro@codesourcery.com>
  7528. * utils.c (fputs_maybe_filtered): Check if there's already a top
  7529. level interpreter before dereferencing it. If there isn't one,
  7530. don't paginate either.
  7531. 2010-03-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
  7532. * arm-tdep.c (arm_pc_is_thumb): Add heuristic that tries to get
  7533. the state right when single stepping.
  7534. (arm_get_next_pc_raw, thumb_get_next_pc_raw): New functions.
  7535. Get the next PC along with the instruction state.
  7536. (thumb_get_next_pc): Remove.
  7537. (arm_get_next_pc): Modified to use arm_get_next_pc_raw.
  7538. 2010-03-04 Hui Zhu <teawater@gmail.com>
  7539. * i386-tdep.c (i386_process_record): Change "addr" to "tmpu64".
  7540. 2010-03-03 Pedro Alves <pedro@codesourcery.com>
  7541. * utils.c (fputs_maybe_filtered): Always disable pagination if the
  7542. top level interpreter is MI.
  7543. 2010-03-03 Stan Shebs <stan@codesourcery.com>
  7544. * remote.c (remote_download_tracepoint): Iterate over locations.
  7545. * tracepoint.c (validate_actionline): Ditto.
  7546. (encode_actions): Add location argument.
  7547. (trace_dump_command): Check all locations to see if stepping
  7548. frame.
  7549. 2010-03-03 H.J. Lu <hongjiu.lu@intel.com>
  7550. Eli Zaretskii <eliz@gnu.org>
  7551. * NEWS: Add X86 general purpose registers section.
  7552. 2010-03-03 Tom Tromey <tromey@redhat.com>
  7553. PR mi/11098:
  7554. * varobj.c (install_new_value): Handle case where new print_value
  7555. is NULL.
  7556. 2010-03-03 Dainis Jonitis <jonitis@gmail.com>
  7557. PR gdb/11345:
  7558. * printcmd.c (printf_command): Print end of format string using
  7559. printf_filtered.
  7560. 2010-03-02 Tom Tromey <tromey@redhat.com>
  7561. * mi/mi-cmd-break.c (mi_read_next_line): Add missing 'void'.
  7562. * defs.h (read_command_lines_1): Add missing 'void'.
  7563. * cli/cli-script.c (recurse_read_control_structure): Add missing
  7564. 'void'.
  7565. (read_next_line): Likewise.
  7566. (read_command_lines_1): Likewise.
  7567. 2010-03-02 Ulrich Weigand <uweigand@de.ibm.com>
  7568. * spu-tdep.c (spu_analyze_prologue): Track instruction to
  7569. store backchain as part of prologue.
  7570. 2010-03-02 Daniel Jacobowitz <dan@codesourcery.com>
  7571. * progspace.c (update_address_spaces): Update inferior address spaces
  7572. also.
  7573. 2010-03-02 Doug Evans <dje@google.com>
  7574. * dwarf2read.c (add_partial_subprogram): Add missing baseaddr to
  7575. lowpc,highpc args to addrmap_set_empty.
  7576. 2010-03-02 H.J. Lu <hongjiu.lu@intel.com>
  7577. * amd64-tdep.c (amd64_byte_names): New.
  7578. (amd64_word_names): Likewise.
  7579. (amd64_dword_names): Likewise.
  7580. (amd64_pseudo_register_name): Likewise.
  7581. (amd64_pseudo_register_read): Likewise.
  7582. (amd64_pseudo_register_write): Likewise.
  7583. (amd64_init_abi): Set num_byte_regs, num_word_regs, num_dword_regs
  7584. and num_mmx_regs. Call set_gdbarch_pseudo_register_read,
  7585. set_gdbarch_pseudo_register_write and
  7586. set_tdesc_pseudo_register_name. Don't call
  7587. set_gdbarch_num_pseudo_regs. Don't set mm0_regnum.
  7588. * i386-tdep.c (i386_num_mmx_regs): Removed.
  7589. (i386_num_pseudo_regs): Likewise.
  7590. (i386_byte_names): New.
  7591. (i386_word_names): Likewise.
  7592. (i386_byte_regnum_p): Likewise.
  7593. (i386_word_regnum_p): Likewise.
  7594. (i386_mmx_regnum_p): Updated.
  7595. (i386_pseudo_register_name): Make it global. Handle byte and
  7596. word pseudo-registers.
  7597. (i386_pseudo_register_read): Likewise.
  7598. (i386_pseudo_register_write): Likewise.
  7599. (i386_pseudo_register_type): Handle byte, word and dword
  7600. pseudo-registers
  7601. (i386_register_reggroup_p): Don't include pseudo
  7602. registers, except for MXX, in any register groups. Don't
  7603. include pseudo byte, word, dword registers in general_reggroup.
  7604. (i386_gdbarch_init): Set num_byte_regs, num_word_regs,
  7605. num_dword_regs, al_regnum, ax_regnum and eax_regnum. Put MMX
  7606. pseudo-registers after word pseudo-registers. Call
  7607. set_gdbarch_num_pseudo_regs after calling gdbarch_init_osabi.
  7608. * i386-tdep.h (gdbarch_tdep): Add num_mmx_regs, num_byte_regs,
  7609. al_regnum, num_word_regs, ax_regnum, num_dword_regs and
  7610. eax_regnum.
  7611. (i386_byte_regnum_p): New.
  7612. (i386_word_regnum_p): Likewise.
  7613. (i386_dword_regnum_p): Likewise.
  7614. (i386_pseudo_register_name): Likewise.
  7615. (i386_pseudo_register_read): Likewise.
  7616. (i386_pseudo_register_write): Likewise.
  7617. 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
  7618. * target-descriptions.c (tdesc_type): Remove
  7619. TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
  7620. (tdesc_predefined_types): Likewise.
  7621. (tdesc_gdb_type): Likewise. Pass NULL to append_flags_type_flag
  7622. if flag name is empty.
  7623. (maint_print_c_tdesc_cmd): Handle TDESC_TYPE_FLAGS.
  7624. * features/i386/32bit-core.xml: Define i386_eflags.
  7625. * features/i386/64bit-core.xml: Likewise.
  7626. * features/i386/32bit-sse.xml: Define i386_mxcsr.
  7627. * features/i386/64bit-sse.xml: Likewise.
  7628. * features/i386/amd64-linux.c: Regenerated.
  7629. * features/i386/amd64.c: Likewise.
  7630. * features/i386/i386-linux.c: Likewise.
  7631. * features/i386/i386.c: Likewise.
  7632. 2010-03-01 Daniel Jacobowitz <dan@codesourcery.com>
  7633. * gdbtypes.c (append_composite_type_field_raw): New.
  7634. (append_composite_type_field_aligned): Use the new function.
  7635. * gdbtypes.h (append_composite_type_field_raw): Declare.
  7636. * target-descriptions.c (struct tdesc_type_field): Add start and end.
  7637. (struct tdesc_type_flag): New type.
  7638. (struct tdesc_type): Add TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS to
  7639. kind. Add size to u.u. Add u.f for flags.
  7640. (tdesc_gdb_type): Handle TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS.
  7641. (tdesc_free_type): Likewise.
  7642. (tdesc_create_struct, tdesc_set_struct_size, tdesc_create_flags): New.
  7643. (tdesc_add_field): Handle TDESC_TYPE_STRUCT.
  7644. (tdesc_add_bitfield, tdesc_add_flag): New.
  7645. * target-descriptions.h (tdesc_create_struct, tdesc_set_struct_size)
  7646. (tdesc_create_flags, tdesc_add_bitfield, tdesc_add_flag): Declare.
  7647. * xml-tdesc.c (struct tdesc_parsing_data): Rename current_union to
  7648. current_type. Add current_type_size and current_type_is_flags.
  7649. (tdesc_start_union): Clear the new fields.
  7650. (tdesc_start_struct, tdesc_start_flags): New.
  7651. (tdesc_start_field): Handle struct fields, including bitfields.
  7652. (field_attributes): Make type optional. Add start and end.
  7653. (union_children): Rename to struct_union_children.
  7654. (union_attributes): Rename to struct_union_attributes. Add optional
  7655. size.
  7656. (flags_attributes): New.
  7657. (feature_children): Add struct and flags.
  7658. * features/gdb-target.dtd: Add flags and struct to features.
  7659. Make field type optional. Add field start and end.
  7660. 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
  7661. * amd64-linux-nat.c (AMD64_LINUX_USER64_CS): New.
  7662. (amd64_linux_read_description): Likewise.
  7663. (_initialize_amd64_linux_nat): Set to_read_description to
  7664. amd64_linux_read_description.
  7665. * amd64-linux-tdep.c: Include "features/i386/amd64-linux.c".
  7666. (amd64_linux_register_name): Removed.
  7667. (amd64_linux_register_type): Likewise.
  7668. (amd64_linux_core_read_description): New.
  7669. (amd64_linux_init_abi): Set target description to
  7670. tdesc_amd64_linux if needed. Support orig_rax in target
  7671. description. Don't call set_gdbarch_register_name nor
  7672. set_gdbarch_register_type. Call
  7673. set_gdbarch_core_read_description.
  7674. (_initialize_amd64_linux_tdep): Call
  7675. initialize_tdesc_amd64_linux.
  7676. * amd64-linux-tdep.h (tdesc_amd64_linux): New.
  7677. * amd64-tdep.c: Include "features/i386/amd64.c".
  7678. (amd64_register_names): Removed.
  7679. (amd64_register_name): Likewise.
  7680. (amd64_register_type): Likewise.
  7681. (amd64_init_abi): Set num_core_regs and register_names. Set
  7682. target description to tdesc_amd64 if needed. Don't call
  7683. set_gdbarch_register_name nor set_gdbarch_register_type.
  7684. (_initialize_amd64_tdep): New.
  7685. * i386-linux-nat.c (i386_linux_read_description): New.
  7686. (_initialize_i386_linux_nat): Set to_read_description to
  7687. i386_linux_read_description.
  7688. * i386-linux-tdep.c: Include "features/i386/i386-linux.c".
  7689. (i386_linux_register_name): Removed.
  7690. (i386_linux_core_read_description): New.
  7691. (i386_linux_read_description): Likewise.
  7692. (i386_linux_init_abi): Don't call set_gdbarch_register_name.
  7693. Set target description to tdesc_i386_linux if needed. Support
  7694. orig_eax. Set register_reggroup_p. Call
  7695. set_gdbarch_core_read_description.
  7696. (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_linux.
  7697. * i386-linux-tdep.h (tdesc_i386_linux): New.
  7698. * i386-nto-tdep.c (i386nto_regset_id): Replace I386_NUM_FREGS
  7699. with I387_NUM_REGS.
  7700. * i386-tdep.c: Include "features/i386/i386.c".
  7701. (i386_register_names): Make it const.
  7702. (i386_mmx_names): Likewise.
  7703. (i386_num_register_names): Removed.
  7704. (i386_register_name): Likewise.
  7705. (i386_eflags_type): Likewise.
  7706. (i386_mxcsr_type): Likewise.
  7707. (i386_sse_type): Likewise.
  7708. (i386_register_type): Likewise.
  7709. (i387_ext_type): Call tdesc_find_type instead of arch_float_type.
  7710. (i386_pseudo_register_name): New.
  7711. (i386_pseudo_register_type): Likewise.
  7712. (i386_mmx_type): Make it static.
  7713. (i386_gdbarch_init): Check arch. Replace I386_NUM_FREGS with
  7714. I387_NUM_REGS. Set num_core_regs and register_names. Don't
  7715. call set_gdbarch_register_name nor set_gdbarch_register_type.
  7716. Set register_reggroup_p. Set target description to tdesc_i386
  7717. if needed. Call set_tdesc_pseudo_register_type,
  7718. set_tdesc_pseudo_register_name and tdesc_use_registers.
  7719. (_initialize_i386_tdep): Call initialize_tdesc_i386.
  7720. initialize_tdesc_x86_64.
  7721. * i386-tdep.h (gdbarch_tdep): Remove i386_eflags_type,
  7722. i386_mxcsr_type and i386_sse_type. Add num_core_regs,
  7723. register_names, tdesc and register_reggroup_p.
  7724. (I386_NUM_FREGS): Removed.
  7725. (i386_eflags_type): Likewise.
  7726. (i386_mxcsr_type): Likewise.
  7727. (i386_mmx_type): Likewise.
  7728. (i386_sse_type): Likewise.
  7729. (i386_register_name): Likewise.
  7730. (i386_regnum): Add I386_MXCSR_REGNUM.
  7731. (I386_SSE_NUM_REGS): Defined with I386_MXCSR_REGNUM.
  7732. * i387-tdep.h (I387_NUM_REGS): New.
  7733. * regformats/i386/i386-linux.dat: Generated.
  7734. * regformats/i386/i386.dat: Likewise.
  7735. * regformats/i386/amd64-linux.dat: Likewise.
  7736. * regformats/i386/amd64.dat: Likewise.
  7737. * regformats/reg-i386-linux.dat: Removed.
  7738. * regformats/reg-i386.dat: Likewise.
  7739. * regformats/reg-x86-64-linux.dat: Likewise.
  7740. * regformats/reg-x86-64.dat: Likewise.
  7741. 2010-03-01 Corinna Vinschen <vinschen@redhat.com>
  7742. * remote-fileio.c (remote_fileio_func_rename): Use Cygwin 1.7
  7743. cygwin_conv_path API rather than the deprecated
  7744. cygwin_conv_to_full_posix_path.
  7745. * windows-nat.c:
  7746. (GetModuleFileNameExA): Undefine for Cygwin.
  7747. (GetModuleFileNameExW): Define for Cygwin.
  7748. (get_module_name): Change size of pathbuf to PATH_MAX for Cygwin.
  7749. Call GetModuleFileNameExW and convert path to POSIX using
  7750. cygwin_conv_path.
  7751. (windows_make_so): Always define p. Drop unused variable m.
  7752. Don't use Win32 functions to check file existance, rather use
  7753. access on Cygwin. Fetch system directory using GetSystemDirectoryW.
  7754. Use canonicalize_file_name to get full path.
  7755. (get_image_name): Use wcstombs, rather than WideCharToMultiByte
  7756. to convert Unicode pathname to multibyte on Cygwin. Otherwise,
  7757. use correct target buffer size in call to WideCharToMultiByte.
  7758. (handle_load_dll): Change size of dll_buf to PATH_MAX for Cygwin.
  7759. (windows_pid_to_exec_file): Change size of path to PATH_MAX for Cygwin.
  7760. (windows_create_inferior): Convert all paths and arguments to wchar_t
  7761. and use CreateProcessW on Cygwin.
  7762. (_initialize_windows_nat): Disable DOS-style path warning on Cygwin.
  7763. (bad_GetModuleFileNameExA): Undefine for Cygwin.
  7764. (bad_GetModuleFileNameExW): Define for Cygwin.
  7765. (_initialize_loadable): Load GetModuleFileNameExW into
  7766. dyn_GetModuleFileNameExW on Cygwin. Don't load ANSI function on Cygwin.
  7767. 2010-02-28 Phil Muldoon <pmuldoon@redhat.com>
  7768. PR python/11036
  7769. * python/py-frame.c (frapy_read_var): Add block argument and logic
  7770. to cope with user provided blocks.
  7771. 2010-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
  7772. * infcall.c (call_function_by_hand): Remove gdb_assert on sp and old_sp.
  7773. New comment.
  7774. 2010-02-28 Corinna Vinschen <vinschen@redhat.com>
  7775. * Makefile.in (SUBDIR_MI_OBS): Move mi-common.o from here...
  7776. (COMMON_OBS): ... to here since it's used unconditionally.
  7777. (SUBDIR_MI_SRCS): Move mi/mi-common.c from here...
  7778. (SFILES): To here.
  7779. 2010-02-26 David Daney <ddaney@caviumnetworks.com>
  7780. * mips-linux-tdep.c: Update struct sigframe comments.
  7781. (SIGFRAME_CODE_OFFSET): Delete macro.
  7782. (mips_linux_o32_sigframe_init): Calculate sigcontext_base using
  7783. this_frame's sp.
  7784. (mips_linux_n32n64_sigframe_init): Same.
  7785. 2010-02-26 Kevin Buettner <kevinb@redhat.com>
  7786. * remote-mips.c (mips_load): Don't use pseudo-register when
  7787. invalidating regcache.
  7788. 2010-02-26 Daniel Jacobowitz <dan@codesourcery.com>
  7789. * arm-tdep.c (thumb_get_next_pc): Correct conditional branch opcode.
  7790. 2010-02-26 Pedro Alves <pedro@codesourcery.com>
  7791. * NEWS: Add "New targets" section, and mention ARM Symbian
  7792. support.
  7793. 2010-02-26 Ulrich Weigand <uweigand@de.ibm.com>
  7794. * dwarf2loc.c (struct piece_closure): Remove ARCH member,
  7795. add ADDR_SIZE member.
  7796. (allocate_piece_closure): Update.
  7797. (copy_pieced_value_closure): Likewise.
  7798. (dwarf2_evaluate_loc_desc): Likewise.
  7799. (read_pieced_value): Use DWARF address size instead of
  7800. GDB's gdbarch_addr_bit as size of values on the DWARF stack.
  7801. 2010-02-26 Phil Muldoon <pmuldoon@redhat.com>
  7802. Tom Tromey <tromey@redhat.com>
  7803. * python/py-type.c (typy_lookup_typename): Add in block argument.
  7804. If provided restrict lookup to specified blocks.
  7805. (gdbpy_lookup_type): Likewise.
  7806. (typy_lookup_type): Likewise.
  7807. 2010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
  7808. Symbian config
  7809. gdb/
  7810. * arm-symbian-tdep.c: New.
  7811. * configure.tgt (arm*-*-symbianelf*): New target.
  7812. (*-*-symbianelf*): New OS.
  7813. * osabi.c (gdb_osabi_names): Add Symbian.
  7814. * defs.h (gdb_osabi): Add GDB_OSABI_SYMBIAN.
  7815. * Makefile.in (ALL_TARGET_OBJS): Add arm-symbian-tdep.o.
  7816. (ALLDEPFILES): Add arm-symbian-tdep.c.
  7817. 2010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
  7818. * symfile.c (find_lowest_section): Include SEC_ALLOC sections.
  7819. 2010-02-24 Pedro Alves <pedro@codesourcery.com>
  7820. * mi/mi-main.c (mi_cmd_execute): Fix typo.
  7821. 2010-02-24 Phil Muldoon <pmuldoon@redhat.com>
  7822. Tom Tromey <tromey@redhat.com>
  7823. Thiago Jung Bauermann <bauerman@br.ibm.com>
  7824. * python/python.c (_initialize_python): Call
  7825. gdbpy_initialize_symtabs, gdbpy_initialize_symbols and
  7826. gdbpy_initialize_blocks.
  7827. * python/python-internal.h: Declare struct symbol, block and
  7828. symtab_and_line. Declare block_object_type and
  7829. symbol_object_type
  7830. (gdbpy_lookup_symbol gdbpy_block_for_pc)
  7831. (symtab_and_line_to_sal_object, symtab_to_symtab_object)
  7832. (symbol_to_symbol_object, block_to_block_object)
  7833. (gdbpy_initialize_symtabs,gdbpy_initialize_symbols)
  7834. (gdbpy_initialize_blocks ): Declare.
  7835. * python/py-frame.c (frapy_block, frapy_function, frapy_find_sal)
  7836. (frapy_select): Add methods.
  7837. (frapy_read_var): Add symbol branch.
  7838. * Makefile.in (SUBDIR_PYTHON_OBS): Add py-symbol, py-symtab,
  7839. py-block.
  7840. (SUBDIR_PYTHON_SRCS): Likewise.
  7841. (py-symbol.o): New rule.
  7842. (py-symtab.o): Likewise.
  7843. (py-block.o): Likewise.
  7844. * python/py-symbol.c: New file.
  7845. * python/py-symtab.c: Likewise.
  7846. * python/py-block.c: Likewise.
  7847. 2010-02-24 Pedro Alves <pedro@codesourcery.com>
  7848. PR gdb/11321
  7849. * inferior.h (prepare_for_detach): Declare.
  7850. (struct inferior) <detaching>: New field.
  7851. * infrun.c (prepare_for_detach): New.
  7852. (handle_inferior_event) <random signal>: Don't stop if detaching.
  7853. * target.c (target_detach): Call prepare_for_detach.
  7854. 2010-02-24 Pedro Alves <pedro@codesourcery.com>
  7855. Per-process displaced stepping queue.
  7856. * infrun.c (displaced_step_ptid, displaced_step_request_queue)
  7857. (displaced_step_gdbarch, displaced_step_closure,
  7858. (displaced_step_original, displaced_step_copy): Move globals to
  7859. this...
  7860. (struct displaced_step_inferior_state): ... new structure.
  7861. (displaced_step_inferior_states): New global.
  7862. (get_displaced_stepping_state, add_displaced_stepping_state)
  7863. (remove_displaced_stepping_state, infrun_inferior_exit): New
  7864. functions.
  7865. (displaced_step_clear): Add displaced_step_inferior_state
  7866. parameter, and adjust to handle it.
  7867. (displaced_step_clear_cleanup): Parameter is now a
  7868. displaced_step_inferior_state. Adjust.
  7869. (displaced_step_prepare): Adjust.
  7870. (displaced_step_fixup, displaced_step_fixup)
  7871. (infrun_thread_ptid_changed, resume): Adjust.
  7872. (init_wait_for_inferior): Don't call displaced_step_clear.
  7873. (infrun_thread_stop_requested): Rewrite.
  7874. (_initialize_infrun): Install infrun_inferior_exit as
  7875. inferior_exit observer.
  7876. 2010-02-24 Pedro Alves <pedro@codesourcery.com>
  7877. * inferior.h (ptid_match): Declare.
  7878. * infrun.c (ptid_match): New.
  7879. * remote.c (queued_stop_reply): Rewrite and use ptid_match.
  7880. (handle_notification): Add debug output.
  7881. * linux-nat.c (ptid_match): Delete.
  7882. 2010-02-24 David S. Miller <davem@davemloft.net>
  7883. * gdb_ptrace.h (PT_SYSCALL): If PTRACE_SYSCALL is available, use it.
  7884. * syscalls/sparc-linux.xml: New.
  7885. * syscalls/sparc64-linux.xml: New.
  7886. * Makefile.in (XML_SYSCALL_FILES): Add new syscall XML files.
  7887. * sparc-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC32): Define.
  7888. (sparc32_linux_get_syscall_number): New function.
  7889. (sparc32_linux_init_abi): Set syscall XML file name and hook up
  7890. syscall number fetcher.
  7891. * sparc64-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC64): Define.
  7892. (sparc64_linux_get_syscall_number): New function.
  7893. (sparc64_linux_init_abi): Set syscall XML file name and hook up
  7894. syscall number fetcher.
  7895. 2010-02-24 Vladimir Prus <vladimir@codesourcery.com>
  7896. Multiexec MI
  7897. * breakpoint.c (clear_syscall_counts): Take struct inferior*.
  7898. * inferior.c (add_inferior_silent): Notify inferior_added
  7899. observer.
  7900. (delete_inferior_1): Notify inferior_removed observer.
  7901. (exit_inferior_1): Pass inferior, not pid, to observer.
  7902. (inferior_appeared): Likewise.
  7903. (add_inferior_with_spaces): New.
  7904. (add_inferior_command): Use the above.
  7905. * inferior.h (delete_inferior_1, add_inferior_with_spaces):
  7906. Declare.
  7907. * inflow.c (inflow_inferior_exit): Likewise.
  7908. * jit.c (jit_inferior_exit_hook): Likewise.
  7909. * mi/mi-cmds.c (mi_cmds): Register add-inferior and
  7910. remove-inferior.
  7911. * mi/mi-cmds.h (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
  7912. * mi/mi-interp.c (mi_inferior_added, mi_inferior_removed): New.
  7913. (report_initial_inferior): New.
  7914. (mi_inferior_removed): Register the above. Make sure
  7915. inferior_added observer is called on the first inferior.
  7916. (mi_new_thread, mi_thread_exit): Thread group is now identified by
  7917. inferior number, not pid.
  7918. (mi_solib_loaded, mi_solib_unloaded): Report which inferiors are
  7919. affected.
  7920. * mi/mi-main.c (current_context): New.
  7921. (proceed_thread_callback): Use typed closure.
  7922. Proceed everything if pid is 0. Most implementation split into
  7923. (proceed_thread): ... this.
  7924. (run_one_inferior): New.
  7925. (mi_cmd_exec_continue, mi_cmd_exec_interrupt, mi_cmd_exec_run):
  7926. Adjust for multiexec behaviour.
  7927. (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
  7928. (mi_cmd_execute): Handle the 'thread-group' option here.
  7929. Do some extra checks.
  7930. * mi-parse.c (mi_parse): Handle the --all and --thread-group
  7931. options.
  7932. * mi-parse.h (struct mi_parse): New fields all and thread_group.
  7933. 2010-02-24 Vladimir Prus <vladimir@codesourcery.com>
  7934. Make -exec-run a proper MI commands.
  7935. * mi/mi-cmds.h (mi_cmd_exec_run): Declare.
  7936. * mi/mi-cmds.c (mi_cmds): Adjust.
  7937. * mi/mi-main.c (mi_cmd_exec_run): New.
  7938. 2010-02-24 Pedro Alves <pedro@codesourcery.com>
  7939. Stan Shebs <stan@codesourcery.com>
  7940. * tracepoint.h (set_traceframe_number)
  7941. (cleanup_restore_current_traceframe): Declare.
  7942. * tracepoint.c (set_traceframe_number): New.
  7943. (struct current_traceframe_cleanup): New.
  7944. (do_restore_current_traceframe_cleanup)
  7945. (restore_current_traceframe_cleanup_dtor)
  7946. (make_cleanup_restore_current_traceframe): New.
  7947. * infrun.c: Include tracepoint.h.
  7948. (fetch_inferior_event): Switch out and in of tfind mode.
  7949. 2010-02-24 Pedro Alves <pedro@codesourcery.com>
  7950. * breakpoint.c (breakpoint_init_inferior): Also delete
  7951. bp_shlib_event breakpoints.
  7952. * solib-frv.c (enable_break): Remove call to
  7953. remove_solib_event_breakpoints.
  7954. * solib-svr4.c (enable_break): Ditto.
  7955. * solib-darwin.c (darwin_solib_create_inferior_hook): Ditto.
  7956. * solib-pa64.c (pa64_solib_create_inferior_hook): Ditto.
  7957. * solib-som.c (som_solib_create_inferior_hook): Ditto.
  7958. * solib-spu.c (spu_enable_break): Ditto.
  7959. 2010-02-23 Harald Koenig <H.Koenig@science-computing.de>
  7960. * c-exp.y (token_and_value): s/union YYSTYPE/YYSTYPE.
  7961. 2010-02-23 Harald Koenig <H.Koenig@science-computing.de>
  7962. * varobj.c (varobj_update): Avoid non-constants in initializers.
  7963. 2010-02-23 Tom Tromey <tromey@redhat.com>
  7964. * dwarf2loc.c (read_pieced_value) <DWARF_VALUE_STACK>: Correctly
  7965. handle big-endian values.
  7966. (dwarf2_evaluate_loc_desc) <DWARF_VALUE_STACK>: Likewise.
  7967. 2010-02-22 Pedro Alves <pedro@codesourcery.com>
  7968. PR9605
  7969. gdb/
  7970. * breakpoint.c (insert_bp_location): If inserting the read
  7971. watchpoint failed, fallback to an access watchpoint.
  7972. (bpstat_check_watchpoint): Stop for read watchpoint triggers even
  7973. if the value changed, if not watching the same memory for writes.
  7974. (watchpoint_locations_match): Add comment.
  7975. (update_global_location_list): Copy the location's watchpoint type.
  7976. * i386-nat.c (i386_length_and_rw_bits): It's an internal error to
  7977. handle read watchpoints here.
  7978. (i386_insert_watchpoint): Read watchpoints aren't supported.
  7979. * remote.c (remote_insert_watchpoint): Return 1 for unsupported
  7980. packets.
  7981. * target.h (target_insert_watchpoint): Update description.
  7982. 2010-02-19 Tom Tromey <tromey@redhat.com>
  7983. * p-typeprint.c (pascal_type_print_varspec_prefix): Update.
  7984. * m2-typeprint.c (m2_print_type): Update.
  7985. * gdbtypes.c (recursive_dump_type): Update.
  7986. (copy_type_recursive): Update.
  7987. * c-typeprint.c (c_type_print_varspec_prefix): Update.
  7988. (c_type_print_base): Update.
  7989. * gdbtypes.h (TYPE_CODE_TEMPLATE, TYPE_CODE_TEMPLATE_ARG):
  7990. Remove.
  7991. (struct cplus_struct_type) <ntemplate_args>: Remove.
  7992. <struct template_arg>: Remove.
  7993. <is_dynamic>: Move earlier.
  7994. (TYPE_TEMPLATE_ARGS): Remove.
  7995. (TYPE_NTEMPLATE_ARGS): Remove.
  7996. (TYPE_TEMPLATE_ARG): Remove.
  7997. 2010-02-19 Tom Tromey <tromey@redhat.com>
  7998. PR c++/8693, PR c++/9496:
  7999. * cp-namespace.c (cp_lookup_nested_type): Handle TYPE_CODE_UNION.
  8000. * c-exp.y (lex_one_token): Rename from yylex. Don't call
  8001. write_dollar_variable. Don't try to classify NAME tokens.
  8002. (token_and_value): New type.
  8003. (token_fifo, popping, name_obstack): New globals.
  8004. (classify_name): New function.
  8005. (classify_inner_name): Likewise.
  8006. (yylex): Likewise.
  8007. (VARIABLE): Now has type sval.
  8008. (exp : VARIABLE): Call write_dollar_variable.
  8009. (qualified_name): Use TYPENAME, not typebase. Add production for
  8010. multiple "::" instances.
  8011. (variable): Use name_not_typename.
  8012. (qualified_type): Remove.
  8013. (typebase): Update.
  8014. 2010-02-19 Jan Kratochvil <jan.kratochvil@redhat.com>
  8015. * symfile.c (addr_info_make_relative): Extend comment. Move SECT to
  8016. a more inner block. Initialize ADDR by LOWER_OFFSET only if it was
  8017. found by bfd_get_section_by_name.
  8018. * symfile.h (struct section_addr_info) <sectindex>: New comment.
  8019. 2010-02-19 Joel Brobecker <brobecker@adacore.com>
  8020. * NEWS: Add new "[...] since 7.1" section. Rename the "[...] since
  8021. 7.0 section" into "Changes in 7.1".
  8022. 2010-02-19 Joel Brobecker <brobecker@adacore.com>
  8023. GDB 7.1 branch created (branch timestamp: 2010-02-18 20:00 UTC)
  8024. * version.in: Bump version to 7.1.50.20100219-cvs.
  8025. 2010-02-18 Harald Koenig <H.Koenig@science-computing.de>
  8026. * mi/mi-main.c (mi_cmd_exec_jump): Drop unneeded `return'.
  8027. * symfile.c (symfile_map_offsets_to_segments): Fix assertion.
  8028. 2010-02-17 Tom Tromey <tromey@redhat.com>
  8029. * NEWS: Add Python API Improvements section.
  8030. 2010-02-18 Daniel Jacobowitz <dan@codesourcery.com>
  8031. * NEWS: Correct typo.
  8032. 2010-02-17 Tom Tromey <tromey@redhat.com>
  8033. * objfiles.c (gdb_bfd_ref): Handle abfd==NULL.
  8034. 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
  8035. * symfile.c (build_section_addr_info_from_objfile): Include sections
  8036. only if they are SEC_ALLOC or SEC_LOAD.
  8037. 2010-02-17 H.J. Lu <hongjiu.lu@intel.com>
  8038. PR shlibs/11293
  8039. * solib-svr4.c (enable_break): Check size of CORE_ADDR instead
  8040. of ULONGEST for address size.
  8041. 2010-02-17 Tom Tromey <tromey@redhat.com>
  8042. * NEWS: Add C++ improvements section.
  8043. 2010-02-17 Ulrich Weigand <uweigand@de.ibm.com>
  8044. * python/python-internal.h [!WITH_THREAD] (PyGILState_Release,
  8045. PyThreadState_Swap): Avoid "statement with no effect" warning.
  8046. 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
  8047. * solib-svr4.c (enable_break <target_auxv_search>): New variable
  8048. addr_bit. Adjust LOAD_ADDR sign for cross-arch inferiors.
  8049. 2010-02-17 Tristan Gingold <gingold@adacore.com>
  8050. Petr Hluzin <petr.hluzin@gmail.com>
  8051. * avr-tdep.c (avr_scan_prologue): Convert an if statement to a
  8052. gdb_assert. Fix info->size for SIG prologue.
  8053. 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
  8054. * infcmd.c (show_inferior_tty_command): Check for NULL.
  8055. Correct output message.
  8056. 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
  8057. * linespec.c (decode_line_1): Handle FILE:FUNCTION even if
  8058. FUNCTION contains parentheses. Improve removal of a trailing
  8059. single quote.
  8060. 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
  8061. * gcore.c (do_bfd_delete_cleanup): New function.
  8062. (gcore_command): Use it. Discard the cleanup after success.
  8063. (gcore_copy_callback): Delete dead code.
  8064. 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
  8065. * symfile.c (addr_info_make_relative): Always use
  8066. find_lowest_section.
  8067. 2010-02-16 Sami Wagiaalla <swagiaal@redhat.com>
  8068. * NEWS: Added entry for namespace fixes.
  8069. 2010-02-15 Tom Tromey <tromey@redhat.com>
  8070. * dwarf2read.c (guess_structure_name): Allocate name on the
  8071. objfile obstack.
  8072. 2010-02-15 Tom Tromey <tromey@redhat.com>
  8073. * c-typeprint.c (c_type_print_base): Reverse order of test.
  8074. 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
  8075. * solib-svr4.c (LM_ADDR_CHECK): New variable minpagesize. Optionally
  8076. initialize it from ELF BFD. Extend the prelink condition by it.
  8077. 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
  8078. * defs.h (parse_pid_to_attach): New.
  8079. * utils.c (parse_pid_to_attach): New.
  8080. * darwin-nat.c (darwin_attach): Replace ARGS parsing by parse_pid.
  8081. * gnu-nat.c (gnu_attach): Likewise.
  8082. * nto-procfs.c (procfs_attach): Likewise.
  8083. * procfs.c (procfs_attach): Likewise.
  8084. * windows-nat.c (windows_attach): Likewise.
  8085. * inf-ptrace.c (inf_ptrace_attach): Likewise. Remove variable dummy.
  8086. * inf-ttrace.c (inf_ttrace_attach): Likewise.
  8087. * remote.c (extended_remote_attach_1): Likewise. New comment on getpid
  8088. check.
  8089. 2010-02-14 Masaki Muranaka <monaka@monami-software.com>
  8090. * MAINTAINERS: Add myself for write after approval privileges.
  8091. 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
  8092. * solib-svr4.c: (LM_ADDR_CHECK): Move variable align to a more inner
  8093. block.
  8094. 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
  8095. * solib-svr4.c: (LM_ADDR_CHECK): Print successful prelink adjustment
  8096. only if INFO_VERBOSE.
  8097. 2010-02-12 Tomas Holmberg <th@virtutech.com>
  8098. * mi/mi-main.c: Added the --reverse flag to the following MI
  8099. commands: exec-continue, exec-finish, exec-next, exec-step,
  8100. exec-next-instruction, exec-step-instruction. This is to
  8101. support reverse execution over the MI interface to gdb.
  8102. 2010-02-12 Pedro Alves <pedro@codesourcery.com>
  8103. * tracepoint.c (_initialize_tracepoint): Specify that the address
  8104. range of `tfind outsize' is exclusive, and that the address range
  8105. of `tfind range' is inclusive, in the commands' help strings.
  8106. 2010-02-12 Joel Brobecker <brobecker@adacore.com>
  8107. Spurious "dll not found" error messages on x64-windows.
  8108. * windows-nat.c: Add include of complaints.h.
  8109. (handle_unload_dll): Change dll-not-found error into a complaint.
  8110. 2010-02-12 Pedro Alves <pedro@codesourcery.com>
  8111. * breakpoint.c (allocate_bp_location): Use bp_loc_other for
  8112. bp_tracepoint and bp_fast_tracepoint, not
  8113. bp_loc_software_breakpoint.
  8114. (update_global_location_list): Tracepoints are never duplicates of
  8115. anything.
  8116. 2010-02-12 Pedro Alves <pedro@codesourcery.com>
  8117. * breakpoint.c (break_command_really): Change return type to int.
  8118. Return false if no breakpoint was created, true otherwise.
  8119. (trace_command): Don't set the tracepoint count if no tracepoint
  8120. was created.
  8121. (ftrace_command): Ditto.
  8122. (create_tracepoint_from_upload): Bail out if the tracepoint wasn't
  8123. created in the breakpoints table.
  8124. 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
  8125. Ulrich Weigand <uweigand@de.ibm.com>
  8126. * solib-svr4.c (LM_ADDR_CHECK): New comment on PPC-aware condition.
  8127. 2010-02-11 Pedro Alves <pedro@codesourcery.com>
  8128. * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out if
  8129. the offset value isn't of integral type.
  8130. 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
  8131. * breakpoint.c (delete_breakpoint) <bpt->related_breakpoint != NULL>:
  8132. New.
  8133. 2010-02-11 Pedro Alves <pedro@codesourcery.com>
  8134. * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out on
  8135. non-subscriptable types.
  8136. * valarith.c (binop_types_user_defined_p): New, abstracted out
  8137. from ...
  8138. (binop_user_defined_p): ... this.
  8139. * value.h (binop_types_user_defined_p): Declare.
  8140. 2010-02-11 Pedro Alves <pedro@codesourcery.com>
  8141. * tracepoint.c (tfile_open): Remove spurious discard_cleanups.
  8142. Merge uploaded TSVs before merging uploaded tracepoints.
  8143. 2010-02-11 Pedro Alves <pedro@codesourcery.com>
  8144. * ax-gdb.c (gen_deref): Don't allow dereferencing void pointers.
  8145. 2010-02-11 Vladimir Prus <vladimir@codesourcery.com>
  8146. * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Add extra
  8147. whitespace character after a dot in comment.
  8148. (mi_cmd_stack_list_arguments, mi_cmd_stack_list_variables):
  8149. Likewise.
  8150. (list_args_or_locals): For the 'all' (that is
  8151. -stack-list-variables) case, always output list of tuples.
  8152. Output 'arg' field if variable is argument.
  8153. 2010-02-10 Tom Tromey <tromey@redhat.com>
  8154. * parser-defs.h (parser_debug): Declare.
  8155. * parse.c (_initialize_parse): Install "debug parser" set/show
  8156. command.
  8157. (parser_debug): New global.
  8158. (show_parserdebug): New function.
  8159. * c-exp.y (c_parse): Set yydebug.
  8160. 2010-02-10 H.J. Lu <hongjiu.lu@intel.com>
  8161. * target-descriptions.c (tdesc_type): Add TDESC_TYPE_I387_EXT,
  8162. TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
  8163. (tdesc_predefined_types): Add i387_ext, i386_eflags and
  8164. i386_mxcsr.
  8165. (tdesc_find_type): New.
  8166. (tdesc_gdb_type): Use tdesc_find_type. Handle TDESC_TYPE_I387_EXT,
  8167. TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
  8168. * target-descriptions.h (tdesc_find_type): New.
  8169. 2010-02-10 Michael Snyder <msnyder@vmware.com>
  8170. * gdb-gdb.py: Comment fix.
  8171. 2010-02-09 Tristan Gingold <gingold@adacore.com>
  8172. * machoread.c (macho_symfile_relocate): New function.
  8173. (macho_sym_fns): Use macho_symfile_relocate instead of
  8174. default_symfile_relocate.
  8175. (macho_oso_data): New type.
  8176. (current_oso): New variable.
  8177. (macho_add_oso_symfile): Do not compute section_addr_info, but
  8178. instead set vma of sections.
  8179. Do not set SYMFILE_VERBOSE to call symbol_file_add_from_bfd.
  8180. Set and clear current_oso.
  8181. 2010-02-09 Joel Brobecker <brobecker@adacore.com>
  8182. Wrong type description for tagged type parameter.
  8183. * ada-lang.c (ada_evaluate_subexp) [OP_VAR_VALUE]: When noside is
  8184. EVAL_AVOID_SIDE_EFFECTS, also handle the case when type is a
  8185. reference to a tagged type.
  8186. 2010-02-09 Tristan Gingold <gingold@adacore.com>
  8187. * objfiles.c (objfile_separate_debug_iterate): Do not iterate on
  8188. brothers of the parent.
  8189. 2010-02-08 Tom Tromey <tromey@redhat.com>
  8190. PR c++/8017:
  8191. * value.h: Update.
  8192. * valops.c (search_struct_field): Make 'name' const.
  8193. (search_struct_method): Likewise.
  8194. (find_method_list): Make 'method' const.
  8195. (value_struct_elt): Make 'name' and 'err' const.
  8196. (value_find_oload_method_list): Make 'method' const.
  8197. (find_overload_match): Make 'name' const.
  8198. * eval.c (evaluate_subexp_standard): New locals function,
  8199. function_name.
  8200. <OP_FUNCALL>: Handle OP_SCOPE specially.
  8201. 2010-02-08 Ulrich Weigand <uweigand@de.ibm.com>
  8202. * infrun.c (handle_inferior_event): Do not look up regcache
  8203. for exited processes.
  8204. 2010-02-08 Chris Moller <moller@mollerware.com>
  8205. PR gdb/10728
  8206. * valarith.c (value_ptrdiff): Added a test for a zero type length,
  8207. warn if found, and assume length = 1.
  8208. 2010-02-08 Chris Moller <cmoller@redhat.com>
  8209. PR gdb/9067
  8210. * cp-valprint.c (cp_print_value_fields) Fix use of obstacks.
  8211. (cp_print_static_field) Fix use of obstacks.
  8212. 2010-02-08 Pedro Alves <pedro@codesourcery.com>
  8213. * linux-nat.c (linux_nat_resume): In non-stop, also only tag
  8214. resumed LWPs as resumed.
  8215. (linux_nat_wait_1): If there's no resumed LWP in the set of LWPs
  8216. we're waiting for, bail out with TARGET_WAITKIND_IGNORE, instead
  8217. of throwing an internal error. If an LWP of a process we're not
  8218. waiting for reports a signal, don't force collecting a SIGSTOP,
  8219. and if it was breakpoint hit in non-stop mode, cancel it. Don't
  8220. go through all LWPs cancelling breakpoints in non-stop mode.
  8221. (resume_stopped_resumed_lwps): New.
  8222. (linux_nat_wait): Use it.
  8223. 2010-02-07 H.J. Lu <hongjiu.lu@intel.com>
  8224. * features/Makefile (WHICH): Add i386/i386, i386/i386-linux,
  8225. i386/amd64 and i386/amd64-linux.
  8226. (i386/i386-expedite): New.
  8227. (i386/i386-linux-expedite): Likewise.
  8228. (i386/amd64-expedite):Likewise.
  8229. (i386/amd64-linux-expedite): Likewise.
  8230. ($(outdir)/i386/i386-linux.dat): Likewise.
  8231. ($(outdir)/i386/amd64.dat): Likewise.
  8232. ($(outdir)/i386/amd64-linux.dat): Likewise.
  8233. * features/i386/32bit-core.xml: New.
  8234. * features/i386/32bit-linux.xml: Likewise.
  8235. * features/i386/32bit-sse.xml: Likewise.
  8236. * features/i386/64bit-core.xml: Likewise.
  8237. * features/i386/64bit-linux.xml: Likewise.
  8238. * features/i386/64bit-sse.xml: Likewise.
  8239. * features/i386/i386-linux.xml: Likewise.
  8240. * features/i386/i386.xml: Likewise.
  8241. * features/i386/amd64-linux.xml: Likewise.
  8242. * features/i386/amd64.xml: Likewise.
  8243. * features/i386/i386-linux.c: Likewise.
  8244. * features/i386/i386.c: Likewise.
  8245. * features/i386/amd64-linux.c: Likewise.
  8246. * features/i386/amd64.c: Likewise.
  8247. 2010-02-05 Sami Wagiaalla <swagiaal@redhat.com>
  8248. PR c++/7935:
  8249. * cp-support.h: Added char* alias element to using_direct data
  8250. struct.
  8251. (cp_add_using): Added char* alias argument.
  8252. (cp_add_using_directive): Ditto.
  8253. * cp-namespace.c: Updated with the above changes.
  8254. (cp_lookup_symbol_imports): Check for aliases.
  8255. * dwarf2read.c (read_import_statement): Figure out local alias
  8256. for the import and pass it on to cp_add_using.
  8257. (read_namespace): Pass alias argument to cp_add_using.
  8258. 2010-02-05 Hui Zhu <teawater@gmail.com>
  8259. * defs.h (gdb_bfd_errmsg): New extern.
  8260. * exec.c (exec_file_attach): Change bfd_errmsg to
  8261. gdb_bfd_errmsg.
  8262. * utils.c (AMBIGUOUS_MESS1): New macro.
  8263. (AMBIGUOUS_MESS2): New macro.
  8264. (gdb_bfd_errmsg): New function.
  8265. 2010-02-04 Doug Evans <dje@google.com>
  8266. * solib-svr4.c (enable_break): Add comment.
  8267. 2010-02-04 Anthony Green <green@moxielogic.com>
  8268. * moxie-tdep.c (moxie_analyze_prologue): Fail protocol analysis
  8269. gracefully.
  8270. 2010-02-04 Tom Tromey <tromey@redhat.com>
  8271. * valops.c (search_struct_field): Account for
  8272. value_embedded_offset. Fix check for virtual base past the end of
  8273. the object. Use value_copy when making a slice of the value.
  8274. 2010-02-04 H.J. Lu <hongjiu.lu@intel.com>
  8275. PR tui/9622
  8276. * tui/tui-interp.c (tui_init): Call tui_initialize_readline
  8277. only if gdb_stdout is a tty.
  8278. 2010-02-04 H.J. Lu <hongjiu.lu@intel.com>
  8279. * target-descriptions.c: Include "osabi.h".
  8280. (maint_print_c_tdesc_cmd): Generate set_tdesc_osabi for valid
  8281. OSABI.
  8282. 2010-02-04 Tristan Gingold <gingold@adacore.com>
  8283. * machoread.c (macho_add_oso): Renamed to macho_register_oso.
  8284. (macho_symtab_read): Adjust calls to macho_add_oso.
  8285. (macho_oso_symfile): Renamed to macho_symfile_read_all_oso.
  8286. (macho_symfile_read): Adjust call to macho_oso_symfile.
  8287. (macho_new_init): Move this function after declarations.
  8288. (macho_symfile_init): Ditto.
  8289. * darwin-nat-info.c (darwin_lib_gdb_ports): Remove.
  8290. * darwin-nat.c (darwin_lookup_task): Remove unused prototype.
  8291. 2010-02-04 Vladimir Prus <vladimir@codesourcery.com>
  8292. Include MI command in remotelog.
  8293. * mi/mi-main.c (mi_execute_command): Call target_log_command.
  8294. 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
  8295. * remote.c (remote_state): Remove gdbarch.
  8296. (init_remote_state): Don't set gdbarch.
  8297. (remote_query_supported): Pass target_gdbarch instead of
  8298. rs->gdbarch to gdbarch_qsupported.
  8299. 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
  8300. * gdbarch.sh: Add qsupported.
  8301. * gdbarch.c: Regenerated.
  8302. * gdbarch.h: Likewise.
  8303. * remote.c (remote_state): Add gdbarch.
  8304. (init_remote_state): Set gdbarch.
  8305. (remote_query_supported): Support gdbarch_qsupported.
  8306. 2010-02-03 Daniel Jacobowitz <dan@codesourcery.com>
  8307. * amd64fbsd-nat.c (amd64fbsd_supply_pcb): Also check for
  8308. __FreeBSD_kernel_version.
  8309. 2010-02-03 Tristan Gingold <gingold@adacore.com>
  8310. * symfile.h (struct sym_fns): Add sym_relocate field.
  8311. (default_symfile_relocate): New prototype.
  8312. (symfile_relocate_debug_section): First argument is now an objfile.
  8313. * symfile.c (default_symfile_relocate): Rename from
  8314. symfile_relocate_debug_section, first argument is now an objfile.
  8315. (symfile_relocate_debug_section): New function.
  8316. * coffread.c (coff_sym_fns): Set sym_relocate field.
  8317. * somread.c (som_sym_fns): Ditto.
  8318. * mipsread.c (ecoff_sym_fns): Ditto.
  8319. * machoread.c (macho_sym_fns): Ditto.
  8320. * elfread.c (elf_sym_fns): Ditto.
  8321. * dwarf2read.c (dwarf2_read_section): Ditto.
  8322. * xcoffread.c (xcoff_sym_fns): Ditto.
  8323. * dbxread.c (aout_sym_fns): Ditto.
  8324. (dbx_psymtab_to_symtab): Adjust call to symfile_relocate_debug_section.
  8325. (elfstab_build_psymtabs): Ditto.
  8326. 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
  8327. * defs.h (MAX_REGISTER_SIZE): Increase to 32.
  8328. 2010-02-02 Tom Tromey <tromey@redhat.com>
  8329. * valops.c (value_cast_structs): Try downcasting using the RTTI
  8330. type.
  8331. 2010-02-02 Tom Tromey <tromey@redhat.com>
  8332. * gnu-v2-abi.c: Don't include gnu-v2-abi.h.
  8333. (gnuv2_baseclass_offset): Now static.
  8334. * Makefile.in (HFILES_NO_SRCDIR): Remove gnu-v2-abi.h.
  8335. * gnu-v2-abi.h: Remove.
  8336. 2010-02-02 Tom Tromey <tromey@redhat.com>
  8337. * m2-typeprint.c (m2_record_fields): Don't use
  8338. TYPE_DECLARED_TYPE.
  8339. * gdbtypes.h (TYPE_DECLARED_CLASS): New macro.
  8340. (struct main_type) <flag_declared_class>: New field.
  8341. (struct cplus_struct_type) <declared_type>: Remove.
  8342. <ntemplate_args>: Move earlier.
  8343. (DECLARED_TYPE_CLASS, DECLARED_TYPE_UNION, DECLARED_TYPE_STRUCT)
  8344. (DECLARED_TYPE_TEMPLATE): Remove.
  8345. (TYPE_DECLARED_TYPE): Remove.
  8346. * gdbtypes.c (lookup_union): Don't use TYPE_DECLARED_TYPE.
  8347. * dwarf2read.c (read_structure_type): Set TYPE_DECLARED_CLASS.
  8348. * c-typeprint.c (c_type_print_base): Use TYPE_DECLARED_CLASS, not
  8349. TYPE_DECLARED_TYPE.
  8350. 2010-02-02 Tom Tromey <tromey@redhat.com>
  8351. PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890:
  8352. * valops.c (search_struct_field): Compute nbases after calling
  8353. CHECK_TYPEDEF.
  8354. (check_field): Call CHECK_TYPEDEF.
  8355. * cp-valprint.c (cp_print_value): Pass correct address to
  8356. baseclass_offset. Fix check for virtual base past the end of the
  8357. object. Don't offset address passed to cp_print_value_fields or
  8358. apply_val_pretty_printer.
  8359. (cp_print_value_fields): Fix call to val_print.
  8360. (cp_print_value_fields_rtti): New function.
  8361. * c-valprint.c (c_val_print): Use cp_print_value_fields_rtti.
  8362. * p-valprint.c (pascal_object_print_value_fields): Fix call to
  8363. val_print.
  8364. * python/py-prettyprint.c (apply_val_pretty_printer): Add embedded
  8365. offset to address.
  8366. * language.h (struct language_defn) <la_val_print>: Document.
  8367. * c-lang.h (cp_print_value_fields_rtti): Declare.
  8368. 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
  8369. PR libc/11214:
  8370. * linux-low.c (linux_tracefork_child) [!(__UCLIBC__ && HAS_NOMMU)]: New.
  8371. (linux_test_for_tracefork): Move `stack' into [__UCLIBC__ && HAS_NOMMU].
  8372. (linux_test_for_tracefork) [!(__UCLIBC__ && HAS_NOMMU)]: New.
  8373. 2010-02-01 Michael Matz <matz@suse.de>
  8374. Daniel Jacobowitz <dan@codesourcery.com>
  8375. * i386-tdep.c (i386_frame_cache): Assume valid anonymous
  8376. functions use a frame pointer.
  8377. 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
  8378. * solib-svr4.c (scan_dyntag): New variable dyn_addr. Replace gdb_assert
  8379. by a conditional setting DYN_ADDR. Use DYN_ADDR.
  8380. * config/djgpp/fnchange.lst: Add translations for
  8381. symbol-without-target_section.exp and symbol-without-target_section.c.
  8382. 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
  8383. * gdbarch.sh: Set LANG and LC_ALL to C, not c.
  8384. (remote_breakpoint_for_pc): Correct invalid_p check.
  8385. * gdbarch.c: Regenerated.
  8386. 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
  8387. * arm-tdep.c (arm_find_mapping_symbol): New function, from
  8388. arm_pc_is_thumb.
  8389. (arm_pc_is_thumb): Use arm_find_mapping_symbol.
  8390. (extend_buffer_earlier): New function.
  8391. (MAX_IT_BLOCK_PREFIX, IT_SCAN_THRESHOLD): New constants.
  8392. (arm_adjust_breakpoint_address): New function.
  8393. (arm_gdbarch_init): Register arm_adjust_breakpoint_address.
  8394. 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
  8395. * arm-linux-tdep.c (arm_linux_thumb2_be_breakpoint)
  8396. (arm_linux_thumb2_le_breakpoint): New constants.
  8397. (arm_linux_init_abi): Set thumb2_breakpoint and
  8398. thumb2_breakpoint_size.
  8399. * arm-tdep.c (thumb_insn_size, thumb_advance_itstate): New functions.
  8400. (thumb_get_next_pc): Add a comment. Rename IT to ITSTATE.
  8401. Implement support for single stepping through IT blocks if
  8402. a 32-bit Thumb breakpoint instruction is available.
  8403. (arm_breakpoint_from_pc): If a 32-bit Thumb breakpoint instruction
  8404. is available, use it when needed.
  8405. (arm_remote_breakpoint_from_pc): New function.
  8406. (arm_gdbarch_init): Register arm_remote_breakpoint_from_pc.
  8407. * arm-tdep.h (struct gdbarch_tdep): Correct thumb_breakpoint
  8408. comment. Add thumb2_breakpoint and thumb2_breakpoint_size.
  8409. 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
  8410. * arch-utils.c (default_remote_breakpoint_from_pc): New function.
  8411. * arch-utils.h (default_remote_breakpoint_from_pc): Declare.
  8412. * gdbarch.c, gdbarch.h: Regenerated.
  8413. * gdbarch.sh (remote_breakpoint_from_pc): New architecture method.
  8414. * remote.c (remote_insert_breakpoint, remote_insert_hw_breakpoint): Use
  8415. gdbarch_remote_breakpoint_from_pc.
  8416. 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
  8417. * infrun.c (prepare_to_proceed): Handle other signals which might
  8418. match a breakpoint.
  8419. (handle_inferior_event): Move the check for unusual breakpoint
  8420. signals earlier.
  8421. 2010-01-29 Paul Hilfinger <hilfinger@adacore.com>
  8422. amd64 - function returning record with field straddling 2 registers.
  8423. * amd64-tdep.c (amd_classify_aggregate): Handle the case of
  8424. a record of length <= 16 in which a field straddles the two
  8425. eightbytes.
  8426. 2010-01-29 Joel Brobecker <brobecker@adacore.com>
  8427. Implement return values on amd64-windows.
  8428. * amd64-windows-tdep.c: #include gdbcore.h and regcache.h.
  8429. (amd64_windows_return_value): New function.
  8430. (amd64_windows_init_abi): Call set_gdbarch_return_value with
  8431. amd64_windows_return_value.
  8432. 2010-01-29 Joel Brobecker <brobecker@adacore.com>
  8433. amd64-windows: 32 bytes allocated on stack by caller for integer
  8434. parameter registers.
  8435. * i386-tdep.h (struct gdbarch_tdep): Add new field
  8436. integer_param_regs_saved_in_caller_frame.
  8437. * amd64-windows-tdep.c (amd64_windows_init_abi): Set
  8438. tdep->integer_param_regs_saved_in_caller_frame to 1.
  8439. * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
  8440. stack if tdep->integer_param_regs_saved_in_caller_frame is set.
  8441. 2010-01-29 Joel Brobecker <brobecker@adacore.com>
  8442. amd64-windows: memory args passed by pointer during function calls.
  8443. * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
  8444. * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
  8445. where tdep->memory_args_by_pointer is non-zero.
  8446. * amd64-windows-tdep.c (amd64_windows_init_abi): Set
  8447. tdep->memory_args_by_pointer to 1.
  8448. 2010-01-29 Joel Brobecker <brobecker@adacore.com>
  8449. amd64-windows: Integer parameters in function calls.
  8450. * i386-tdep.h (enum amd64_reg_class): New, moved here from
  8451. amd64-tdep.c.
  8452. (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
  8453. call_dummy_integer_regs, and classify.
  8454. * amd64-tdep.h (amd64_classify): Add declaration.
  8455. * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
  8456. (amd64_reg_class): Delete, moved to i386-tdep.h.
  8457. (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
  8458. Replace call to amd64_classify by call to tdep->classify.
  8459. (amd64_push_arguments): Get the list of registers to use for
  8460. passing integer parameters from the gdbarch tdep structure,
  8461. rather than using a hardcoded one. Replace calls to amd64_classify
  8462. by calls to tdep->classify.
  8463. (amd64_push_dummy_call): Get the register number used for
  8464. the "hidden" argument from tdep->call_dummy_integer_regs.
  8465. (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
  8466. and tdep->call_dummy_integer_regs. Set tdep->classify.
  8467. * amd64-windows-tdep.c: Add include of gdbtypes.h.
  8468. (amd64_windows_dummy_call_integer_regs): New static global.
  8469. (amd64_windows_classify): New function.
  8470. (amd64_windows_init_abi): Initialize tdep->call_dummy_num_integer_regs
  8471. tdep->call_dummy_integer_regs and tdep->classify.
  8472. 2010-01-28 Daniel Jacobowitz <dan@codesourcery.com>
  8473. * regcache.c (regcache_xmalloc): Add aspace argument. Use it
  8474. for the new regcache. All callers updated.
  8475. (regcache_cpy, regcache_cpy_no_passthrough): Do not set aspace here.
  8476. (get_thread_arch_regcache): Do not set aspace here.
  8477. * regcache.h (regcache_xmalloc): Update declaration.
  8478. * frame.c, infcall.c, ppc-linux-tdep.c: Calls to
  8479. regcache_xmalloc updated.
  8480. 2010-01-28 Joel Brobecker <brobecker@adacore.com>
  8481. Another -Wunused-function error in procfs.c (sparc-solaris)
  8482. * procfs.c (insert_dbx_link_breakpoint): Delete declaration. Move up.
  8483. Only define if SYS_syssgi is defined.
  8484. (remove_dbx_link_breakpoint): Delete declaration. Move up.
  8485. (dbx_link_addr, insert_dbx_link_bpt_in_file)
  8486. (insert_dbx_link_bpt_in_region): Move up. Only define if SYS_syssgi
  8487. is itself defined.
  8488. 2010-01-27 Christopher Faylor <me+cygwin@cgf.cx>
  8489. * windows-nat.c (windows_initialization_done): New variable.
  8490. (get_windows_debug_event): Issue error when process dies before
  8491. completely initializing.
  8492. (do_initial_windows_stuff): Set flag to indicate when we are done with
  8493. the initial steps of attaching to the child.
  8494. 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
  8495. * symtab.h (struct symbol <symtab>): New comment on NULL values.
  8496. 2010-01-27 Doug Evans <dje@google.com>
  8497. * solib-svr4.c (solib_break_names): Add __dl_rtld_db_dlactivity.
  8498. * breakpoint.c (bpstat_stop_status): Delete useless code.
  8499. 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
  8500. * printcmd.c (display_uses_solib_p): Remove variable section. Access
  8501. objfile via SYMBOL_SYMTAB.
  8502. 2010-01-26 Tom Tromey <tromey@redhat.com>
  8503. PR exp/7643:
  8504. * eval.c (evaluate_subexp_for_address) <UNOP_IND>: Call
  8505. coerce_array on result.
  8506. 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
  8507. * cp-namespace.c (cp_lookup_symbol_namespace): Added
  8508. search_parent argument.
  8509. (cp_add_using): Initialize 'searched' field.
  8510. (reset_directive_searched): New function.
  8511. * cp-support.h: Add 'searched' field to using_direct struct.
  8512. (cp_lookup_symbol_imports): Ditto.
  8513. * cp-namespace.c (cp_lookup_symbol_imports): Ditto.
  8514. Perform recursive search.
  8515. Implement non parent search.
  8516. * valops.c (value_maybe_namespace_elt): Updated.
  8517. 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
  8518. PR gdb/10929:
  8519. * dwarf2read.c (read_lexical_block_scope): Create blocks for
  8520. scopes which contain using directives even if they contain no
  8521. declarations.
  8522. * symtab.c (lookup_symbol_aux): Pass lowest level block to
  8523. la_lookup_symbol_nonlocal.
  8524. * cp-namespace.c (cp_lookup_symbol_nonlocal): call
  8525. cp_lookup_symbol_namespace.
  8526. (cp_lookup_symbol_namespace): Perform an import lookup at every
  8527. block level.
  8528. (cp_lookup_symbol_imports): New function.
  8529. (cp_lookup_symbol_in_namespace): New function.
  8530. 2010-01-25 Tom Tromey <tromey@redhat.com>
  8531. PR gdb/11049:
  8532. * c-valprint.c (c_val_print): Fix test of extract_unsigned_integer
  8533. result.
  8534. 2010-01-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
  8535. * configure.ac: Only use host_os part when disabling TUI on osf.
  8536. Use test to check variables, prefix strings with x.
  8537. * configure: Regenerate.
  8538. * solib-osf.c (osf_current_sos): Initialize tail.
  8539. 2010-01-25 gingold <gingold@adacore.com>
  8540. * windows-nat.c (windows_continue): Use %x to print thread id.
  8541. (get_windows_debug_event): Ditto.
  8542. 2010-01-22 Tom Tromey <tromey@redhat.com>
  8543. PR symtab/11199:
  8544. * dwarf2read.c (quirk_gcc_member_function_pointer): Change return
  8545. type and arguments. Use smash_to_methodptr_type.
  8546. (read_structure_type): Call quirk_gcc_member_function_pointer
  8547. later.
  8548. * gdbtypes.h (smash_to_methodptr_type): Declare.
  8549. * gdbtypes.c (smash_to_methodptr_type): New function.
  8550. (lookup_methodptr_type): Use it.
  8551. 2010-01-21 Tom Tromey <tromey@redhat.com>
  8552. PR symtab/11198:
  8553. * symtab.h (lookup_minimal_symbol_and_objfile): Declare.
  8554. * minsyms.c (lookup_minimal_symbol_and_objfile): New function.
  8555. * glibc-tdep.c (find_minsym_and_objfile): Remove.
  8556. (glibc_skip_solib_resolver): Use
  8557. lookup_minimal_symbol_and_objfile.
  8558. 2010-01-21 Kai Tietz <kai.tietz@onevision.com>
  8559. * inflow.c (check_syscall): Guard by #if clause for GO32 and
  8560. WIN32 targets.
  8561. 2010-01-20 Tom Tromey <tromey@redhat.com>
  8562. PR backtrace/10770:
  8563. * valarith.c (value_binop): Handle BINOP_GTR, BINOP_LEQ, and
  8564. BINOP_GEQ. Handle BINOP_NOTEQUAL in the signed case.
  8565. * dwarf2expr.c (new_dwarf_expr_context): Allocate
  8566. dwarf_stack_values, not CORE_ADDRs.
  8567. (execute_stack_op): Change DW_OP_div and comparison operators to
  8568. use signed operands.
  8569. 2010-01-20 Vladimir Prus <vladimir@codesourcery.com>
  8570. Per-inferior args and tty and environment.
  8571. * infcmd.c (inferior_args): Rename to ...
  8572. (inferior_args_scratch): ... this.
  8573. (inferior_io_terminal): Rename to ...
  8574. (inferior_io_terminal_scratch): ... this.
  8575. (inferior_argc, inferior_argv): Remove.
  8576. (set_inferior_io_terminal, get_inferior_io_terminal): Store
  8577. inside current_inferior().
  8578. (set_inferior_tty_command, show_inferior_tty_command): New.
  8579. (get_inferior_args, set_inferior_args): Store inside
  8580. current_inferior().
  8581. (notice_args_set): Likewise and rename to...
  8582. (set_args_command): ... this.
  8583. (set_inferior_args_vector): Likewise.
  8584. (notice_args_read): Rename to...
  8585. (show_args_command): ...new.
  8586. (tty_command): Remove.
  8587. (run_command_1): Don't free old args, as they are freed by
  8588. set_inferior_arg now.
  8589. (run_no_args_command): Likewise.
  8590. (inferior_environ): Remove.
  8591. (run_command_1): Use environment of the current inferior.
  8592. (environment_info, set_environment_command)
  8593. (unset_environment_command, path_info, path_command): Likewise.
  8594. (_initialize_infcmd): Adjust for function and variable renames.
  8595. Do not init inferior_environ.
  8596. * inferior.h (set_inferior_arg): Adjust prototype.
  8597. (struct inferior): New fields args, argc, argv, terminal, environment.
  8598. (inferior_environ): Remove declaration.
  8599. * inferior.c (free_inferior): Free new fields.
  8600. (add_inferior_silent): Initialize 'environment' field.
  8601. * main.c (captured_main): Set arguments only after the initial
  8602. inferior has been created. Set set_inferior_io_terminal,
  8603. not tty_command.
  8604. * mi/mi-main.c (mi_cmd_env_path): Use environment of the current
  8605. inferior.
  8606. (_initialize_mi_cmd_env): Adjust for disappearance of global
  8607. inferior_environ.
  8608. * solib.c (solib_find): Use environment of the current inferior.
  8609. 2010-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
  8610. * varobj.c (varobj_add_child, install_dynamic_child): Wrap into #if
  8611. HAVE_PYTHON.
  8612. (instantiate_pretty_printer): Move HAVE_PYTHON outside of the function.
  8613. 2010-01-20 Joel Brobecker <brobecker@adacore.com>
  8614. Get rid of ada-lang.c:function_name_from_pc.
  8615. * ada-lang.c: Add "stack.h" #include.
  8616. (function_name_from_pc): Delete.
  8617. (is_known_support_routine): Replace call to function_name_from_pc
  8618. by call to find_frame_funname.
  8619. (ada_unhandled_exception_name_addr_from_raise): Likewise.
  8620. 2010-01-19 Tom Tromey <tromey@redhat.com>
  8621. PR c++/11026:
  8622. * dwarf2read.c (read_partial_die): Allocate partial DIE's name on
  8623. objfile obstack.
  8624. 2010-01-19 Tom Tromey <tromey@redhat.com>
  8625. * top.c (stop_sig, float_handler, do_nothing): Remove.
  8626. 2010-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
  8627. * breakpoint.c (watchpoint_check): Check the call
  8628. gdbarch_in_function_epilogue_p before calling frame_find_by_id.
  8629. Extend the comment.
  8630. * config/djgpp/fnchange.lst: Add translations for
  8631. watchpoint-cond-gone.exp, watchpoint-cond-gone.c and
  8632. watchpoint-cond-gone-stripped.c.
  8633. 2010-01-19 Tom Tromey <tromey@redhat.com>
  8634. PR c++/8000:
  8635. * dwarf2read.c (partial_die_parent_scope): Put enumeration type
  8636. into parent scope, and enumerator into grandparent scope.
  8637. 2010-01-19 Joel Brobecker <brobecker@adacore.com>
  8638. * NEWS: Add entry for "set/show ada trust-PAD-over-XVS" commands.
  8639. 2010-01-19 Joel Brobecker <brobecker@adacore.com>
  8640. * configure.host: Make x86_64-*-solaris2.1[0-9]* an alias of
  8641. i[34567]86-*-solaris2.1[0-9]*.
  8642. * configure.tgt: Likewise.
  8643. 2010-01-19 Joel Brobecker <brobecker@adacore.com>
  8644. * NEWS: Document the source command enhancement allowing it
  8645. to load Python scripts. Document the "set/show script-extension"
  8646. commands.
  8647. 2010-01-19 Joel Brobecker <brobecker@adacore.com>
  8648. Add -Wunused-function to compile flags.
  8649. * configure.ac: Add -Wunused-function to build_warnings.
  8650. * configure: Regenerate.
  8651. 2010-01-19 Joel Brobecker <brobecker@adacore.com>
  8652. "delete" ada-lex.c:input function, not used.
  8653. * ada-lex.l: #define YY_NO_INPUT.
  8654. 2010-01-19 Joel Brobecker <brobecker@adacore.com>
  8655. Delete free_named_symtabs and associated cleanup.
  8656. * symfile.h (free_named_symtabs): Delete declaration.
  8657. * symfile.c: Remove some commented out code (clear_symtab_users_once).
  8658. (cashier_psymtab): Comment function out.
  8659. Delete declaration.
  8660. (free_named_symtabs): Delete.
  8661. * coffread.c (coff_end_symtab): Remove call to free_named_symtabs.
  8662. * dbxread.c (end_psymtab): Likewise.
  8663. * dwarf2read.c (process_psymtab_comp_unit): Ditto.
  8664. * exec.c (exec_close_1): Ditto.
  8665. * xcoffread.c (xcoff_end_psymtab): Likewise.
  8666. 2010-01-19 Joel Brobecker <brobecker@adacore.com>
  8667. * stack.c (print_block_frame_labels): Comment function out.
  8668. 2010-01-19 Joel Brobecker <brobecker@adacore.com>
  8669. Delete unused or undefined functions.
  8670. * breakpoint.c (ep_parse_optional_filename): Delete.
  8671. * dcache.c (dcache_write_line): Remove declaration.
  8672. * infrun.c (build_infrun): Remove declaration.
  8673. * tracepoint.c (tracepoint_save_command): Remove declaration.
  8674. * linux-nat.c (init_lwp_list): Delete. No longer used.
  8675. * event-loop.c (check_async_signal_handlers): Delete declaration.
  8676. * infrun.c (init_execution_control_state): Delete.
  8677. (proceed): Update comment to avoid mentioning
  8678. init_execution_control_state.
  8679. * target.c (kill_or_be_killed, nosupport_runtime): Delete.
  8680. * ada-lang.c (ada_to_static_fixed_value): Delete.
  8681. * scm-lang.c (evaluate_subexp_scm): Delete declaration.
  8682. * cp-namespace.c (cp_copy_usings): Delete.
  8683. * xml-syscall.c (xml_number_of_syscalls): Delete.
  8684. * progspace.c (find_program_space_by_num): Delete.
  8685. * inflow.c (handle_sigio): Delete declaration.
  8686. * hppa-tdep.c (hppa_alignof): Delete.
  8687. * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset)
  8688. (mipsnbsd_core_osabi_sniffer): Delete.
  8689. 2010-01-18 Tom Tromey <tromey@redhat.com>
  8690. PR c++/9680:
  8691. * c-exp.y (REINTERPRET_CAST, DYNAMIC_CAST, STATIC_CAST)
  8692. (CONST_CAST): New tokens.
  8693. (exp): Add new productions.
  8694. (ident_tokens): Add const_cast, dynamic_cast, static_cast, and
  8695. reinterpret_cast.
  8696. (is_cast_operator): New function.
  8697. (yylex): Handle cast operators specially.
  8698. * eval.c (evaluate_subexp_standard) <UNOP_DYNAMIC_CAST,
  8699. UNOP_REINTERPRET_CAST>: New cases.
  8700. * expprint.c (print_subexp_standard): Likewise.
  8701. (op_name_standard): Likewise.
  8702. (dump_subexp_body_standard): Likewise.
  8703. * parse.c (operator_length_standard): Likewise.
  8704. * expression.h (enum exp_opcode): New constants UNOP_DYNAMIC_CAST,
  8705. UNOP_REINTERPRET_CAST.
  8706. * gdbtypes.c (class_types_same_p): New function.
  8707. (is_ancestor): Use it.
  8708. (is_public_ancestor): New function.
  8709. (is_unique_ancestor_worker): Likewise.
  8710. (is_unique_ancestor): Likewise.
  8711. * gdbtypes.h (class_types_same_p, is_public_ancestor)
  8712. (is_unique_ancestor): Declare.
  8713. * valops.c (value_reinterpret_cast): New function.
  8714. (dynamic_cast_check_1): Likewise.
  8715. (dynamic_cast_check_2): Likewise.
  8716. (value_dynamic_cast): Likewise.
  8717. * value.h (value_reinterpret_cast, value_dynamic_cast): Declare.
  8718. 2010-01-18 Joel Brobecker <brobecker@adacore.com>
  8719. Fix build failure when building without Python support.
  8720. * python/python.c: Always include exceptions.h, even when HAVE_PYTHON
  8721. is not defined.
  8722. 2010-01-18 Joel Brobecker <brobecker@adacore.com>
  8723. Use XVS field type instead of doing a parallel lookup.
  8724. * ada-lang.c (ada_get_base_type): Follow the XVS field type
  8725. if it is a reference type instead of doing a type lookup using
  8726. the XVS field name.
  8727. 2010-01-18 Joel Brobecker <brobecker@adacore.com>
  8728. Trust PAD types instead of using PAD___XVS.
  8729. * ada-lang.c (trust_pad_over_xvs): New static variable.
  8730. (ada_is_aligner_type): If !trust_pad_over_xvs and there is a
  8731. parallel XVS type, follow the XVS type instead of the PAD type.
  8732. (unwrap_value): Make sure that there is no parallel XVE type
  8733. before returning the value as is.
  8734. (set_ada_list, show_ada_list): New static variables.
  8735. (set_ada_command, show_ada_command): New functions.
  8736. (_initialize_ada_language): Add new "set/show ada" prefix commands.
  8737. Add new "set/show ada trust-PAD-over-XVS" setting.
  8738. 2010-01-18 Tom Tromey <tromey@redhat.com>
  8739. Thiago Jung Bauermann <bauerman@br.ibm.com>
  8740. Allow "source" to load python scripts.
  8741. * exceptions.h (enum errors): Add UNSUPPORTED_ERROR.
  8742. * python/python.c (source_python_script): New function.
  8743. * python/python.h (source_python_script): Add declaration.
  8744. * cli/cli-cmds.c: #include exceptions.h and python/python.h.
  8745. (script_ext_off, script_ext_soft, script_ext_strict)
  8746. (script_ext_enums, script_ext_mode): New static constants.
  8747. (show_script_ext_mode, find_and_open_script): New functions.
  8748. (source_script): Enhance to handle Python scripts.
  8749. (init_cli_cmds): Add set/show script-extension commands.
  8750. 2010-01-16 Stan Shebs <stan@codesourcery.com>
  8751. * tracepoint.h (struct trace_status): Use unsigned long long
  8752. instead of size_t.
  8753. * tracepoint.c (trace_status_command): Fix printf directive.
  8754. (trace_save_command): Check fwrite returns, fix printf directive.
  8755. (trace_filename): New global.
  8756. (tfile_open): Set it, check read returns.
  8757. (tfile_close): Free trace_filename.
  8758. (tfile_get_traceframe_address): Check read returns.
  8759. (tfile_trace_find): Ditto.
  8760. (tfile_fetch_registers): Ditto.
  8761. (tfile_xfer_partial): Ditto.
  8762. (tfile_get_trace_state_variable_value): Ditto.
  8763. 2010-01-15 Stan Shebs <stan@codesourcery.com>
  8764. Add trace file support.
  8765. * tracepoint.h (enum trace_stop_reason): New enum.
  8766. (struct trace_status): New struct.
  8767. (parse_trace_status): Declare.
  8768. (struct uploaded_tp): Move here from remote.c,
  8769. add fields for actions.
  8770. (struct uploaded_tsv): New struct.
  8771. * tracepoint.c (tfile_ops): New target vector.
  8772. (trace_fd): New global.
  8773. (tfile_open): New function.
  8774. (tfile_close): New function.
  8775. (tfile_files_info): New function.
  8776. (tfile_get_trace_status): New function.
  8777. (tfile_get_traceframe_address): New function.
  8778. (tfile_trace_find): New function.
  8779. (tfile_fetch_registers): New function.
  8780. (tfile_xfer_partial): New function.
  8781. (tfile_get_trace_state_variable_value): New function.
  8782. (init_tfile_ops): New function.
  8783. (_initialize_tracepoint): Call it, add tfile target.
  8784. (trace_status): New global.
  8785. (current_trace_status): New function.
  8786. (trace_running_p): Remove, change all users to get from
  8787. current_trace_status()->running.
  8788. (get_trace_status): Remove.
  8789. (trace_status_command): Call target_get_trace_status directly,
  8790. report more detail including tracing stop reasons.
  8791. (trace_find_command): Always allow tfind on a file.
  8792. (trace_find_pc_command): Ditto.
  8793. (trace_find_tracepoint_command): Ditto.
  8794. (trace_find_line_command): Ditto.
  8795. (trace_find_range_command): Ditto.
  8796. (trace_find_outside_command): Ditto.
  8797. (trace_frames_offset, cur_offset): Declare as off_t.
  8798. (trace_regblock_size): Rename from reg_size, update users.
  8799. (parse_trace_status): New function.
  8800. (tfile_interp_line): New function.
  8801. (disconnect_or_stop_tracing): Ensure current trace
  8802. status before asking what to do.
  8803. (stop_reason_names): New global.
  8804. (trace_save_command): New command.
  8805. (get_uploaded_tp): Move here from remote.c.
  8806. (find_matching_tracepoint): Ditto.
  8807. (merge_uploaded_tracepoints): New function.
  8808. (parse_trace_status): Use stop_reason_names.
  8809. (_initialize_tracepoint): Define tsave command.
  8810. * target.h (target_ops): New fields to_save_trace_data,
  8811. to_upload_tracepoints, to_upload_trace_state_variables,
  8812. to_get_raw_trace_data, change to_get_trace_status
  8813. to take a pointer to a status struct.
  8814. (target_save_trace_data): New macro.
  8815. (target_upload_tracepoints): New macro.
  8816. (target_upload_trace_state_variables): New macro.
  8817. (target_get_raw_trace_data): New macro.
  8818. * target.c (update_current_target): Add new methods, change
  8819. signature of to_get_trace_status.
  8820. * remote.c (hex2bin): Make globally visible.
  8821. (bin2hex): Ditto.
  8822. (remote_download_trace_state_variable): Download name also.
  8823. (remote_get_trace_status): Update parameter, use
  8824. parse_trace_status.
  8825. (remote_save_trace_data): New function.
  8826. (remote_upload_tracepoints): New function.
  8827. (remote_upload_trace_state_variables): New function.
  8828. (remote_get_raw_trace_data): New function.
  8829. (remote_start_remote): Use them.
  8830. (_initialize_remote_ops): Add operations.
  8831. * ax-gdb.c: Include breakpoint.h.
  8832. * breakpoint.c (create_tracepoint_from_upload): Use
  8833. break_command_really, return tracepoint, warn about unimplemented
  8834. parts.
  8835. * NEWS: Mention trace file addition.
  8836. 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
  8837. Fix compilation warning on gcc-3.4.
  8838. * exec.c (print_section_info): Move the `displacement' variable
  8839. initialization to its declaration.
  8840. 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
  8841. * gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE
  8842. comparison.
  8843. 2010-01-15 Eric Botcazou <botcazou@adacore.com>
  8844. "info tasks" broken by typedefs in ATCB type definitions.
  8845. * ada-lang.c (ada_template_to_fixed_record_type_1): Add call to
  8846. ada_check_typedef before retrieving the length of the type for
  8847. regular fields.
  8848. 2010-01-15 Joel Brobecker <brobecker@adacore.com>
  8849. Do not use name-based lookup for unconstrained packed arrays.
  8850. * ada-lang.c (find_parallel_type_by_descriptive_type):
  8851. Limit the fallback to name-based lookups to the case where
  8852. the type is a constrained packed array.
  8853. 2010-01-15 Joel Brobecker <brobecker@adacore.com>
  8854. Enhance gdb-gdb.py to handle main_type.type_specific.
  8855. * gdb-gdb.py: Print the type-specific part of struct main_type.
  8856. 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
  8857. * configure.ac (AC_CHECK_FUNCS): Check for setrlimit and getrlimit.
  8858. * configure: Regenerate.
  8859. * config.in: Regenerate.
  8860. * utils.c: Include sys/resource.h.
  8861. (dump_core, can_dump_core): New.
  8862. (internal_vproblem): Update the comment. Check can_dump_core while
  8863. setting dump_core_p. Replace two abort calls by dump_core calls.
  8864. 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
  8865. Eli Zaretskii <eliz@gnu.org>
  8866. * NEWS: Document the PIE support.
  8867. 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
  8868. * linux-tdep.c: Remove includes gdbcore.h, observer.h and elf-bfd.h.
  8869. (check_is_pie_binary, _initialize_linux_tdep): Remove.
  8870. 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
  8871. * solib-svr4.c (svr4_exec_displacement): New comment for entry_point.
  8872. Replace exec_entry_point call by bfd_get_start_address.
  8873. 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
  8874. Support Valgrind attachments broken by the PIE support.
  8875. * auxv.c: Include gdbcore.h.
  8876. (procfs_xfer_auxv): Make static. Reduce its comment. Drop its
  8877. parameters ops, object and annex. Remove their assertions.
  8878. (ld_so_xfer_auxv, memory_xfer_auxv): New function.
  8879. * auxv.h (procfs_xfer_auxv): Remove comment. Rename to ...
  8880. (memory_xfer_auxv): ... here.
  8881. * linux-nat.c (linux_xfer_partial): Rename procfs_xfer_auxv to
  8882. memory_xfer_auxv.
  8883. * procfs.c (procfs_xfer_partial): Likewise.
  8884. * solib-svr4.c (svr4_relocate_main_executable): New prototype.
  8885. (svr4_special_symbol_handling): Call svr4_relocate_main_executable.
  8886. (svr4_solib_create_inferior_hook): Conditionalize the
  8887. svr4_relocate_main_executable call.
  8888. 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
  8889. * solib-svr4.c (scan_dyntag): Remove variable dyn_addr. New variable
  8890. target_section. Find SECT in current_target_sections, gdb_assert it.
  8891. (elf_lookup_lib_symbol): Pass the binary file if given symfile_objfile.
  8892. New variable abfd.
  8893. * symtab.c (lookup_objfile_from_block): Return the binary file instead
  8894. of separate debug info file.
  8895. 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
  8896. Support PIEs with no symfile_objfile.
  8897. * exec.c (print_section_info <abfd == exec_bfd>): Relocate Entry point.
  8898. * solib-svr4.c (svr4_relocate_main_executable <exec_bfd>): New block.
  8899. 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
  8900. * solib-svr4.c (svr4_relocate_main_executable): Move the static exec
  8901. code part to ...
  8902. (svr4_static_exec_displacement): ... a new function.
  8903. (svr4_exec_displacement): New function.
  8904. (svr4_relocate_main_executable): Call svr4_exec_displacement. Allocate
  8905. new_offsets using alloca now. Remove variable old_chain and changed.
  8906. Call objfile_relocate unconditionally now.
  8907. 2010-01-14 Doug Evans <dje@google.com>
  8908. * gdbtypes.c (arch_flags_type): Fix comment.
  8909. * gdbtypes.h (arch_composite_type): Fix comment.
  8910. 2009-01-14 Tristan Gingold <gingold@adacore.com>
  8911. * machoread.c (macho_add_oso_symfile): Add symfile_flags parameter.
  8912. Call xstrdup for abfd->filename. Pass symfile_flags and objfile flags
  8913. to symbol_file_add_from_bfd. Add OSO as separate objfile.
  8914. (macho_oso_symfile): Add symfile_flags parameter. Pass it to
  8915. macho_add_oso_symfile.
  8916. (macho_symfile_read): Pass symfile_flags to macho_oso_symfile.
  8917. 2010-01-14 Joel Brobecker <brobecker@adacore.com>
  8918. Tru64: Dead threads are never deleted.
  8919. * dec-thread.c (dec_thread_ptid_is_alive): New function.
  8920. (dec_thread_count_gdb_threads): Fix counter increment.
  8921. (dec_thread_add_gdb_thread): Fix *listp increment.
  8922. (resync_thread_list): Fix bug in deletion of dead threads that
  8923. caused all threads to be deleted, instead of just the dead ones.
  8924. 2010-01-13 Phil Muldoon <pmuldoon@redhat.com>
  8925. PR python/10705
  8926. * python/python-internal.h: Add lazy_string_object_type
  8927. definition.
  8928. (create_lazy_string_object, gdbpy_initialize_lazy_string)
  8929. (gdbpy_is_lazystring, gdbpy_extract_lazy_string): Define.
  8930. * python/py-value.c (valpy_lazy_string): New function.
  8931. (convert_value_from_python): Add lazy string conversion.
  8932. * python/py-prettyprint.c (pretty_print_one_value): Check if
  8933. return is also a lazy string.
  8934. (print_string_repr): Add lazy string printing branch.
  8935. (print_children): Likewise.
  8936. * python/py-lazy-string.c: New file. Implement lazy strings.
  8937. * python/python.c (_initialize_python): Call
  8938. gdbpy_initialize_lazy_string.
  8939. * varobj.c (value_get_print_value): Add lazy string printing
  8940. branch. Account for encoding.
  8941. * c-lang.c (c_printstr): Account for new encoding argument. If
  8942. encoding is NULL, find encoding suited for type, otherwise use
  8943. user encoding.
  8944. * language.h (language_defn): Add encoding argument.
  8945. (LA_PRINT_STRING): Likewise.
  8946. * language.c (unk_lang_printstr): Update to reflect new encoding
  8947. argument to language_defn.
  8948. * ada-lang.h (ada_printstr): Likewise.
  8949. * c-lang.h (c_printstr): Likewise.
  8950. * p-lang.h (pascal_printstr);
  8951. * f-lang.c (f_printstr): Likewise.
  8952. * m2-lang.c (m2_printstr): Likewise.
  8953. * objc-lang.c (objc_printstr): Likewise.
  8954. * p-lang.c (pascal_printstr): Likewise.
  8955. * scm-lang.c (scm_printstr): Likewise.
  8956. * c-valprint.c (c_val_print): Update LA_PRINT_STRING call for
  8957. encoding argument.
  8958. * ada-valprint.c (ada_printstr): Likewise.
  8959. * f-valprint.c (f_val_print): Likewise
  8960. * m2-valprint.c (m2_val_print): Likewise.
  8961. * p-valprint.c (pascal_val_print): Likewise.
  8962. * expprint.c (print_subexp_standard): Likewise.
  8963. * valprint.c (val_print_string): Likewise.
  8964. * Makefile.in (SUBDIR_PYTHON_OBS): Add py-lazy-string.
  8965. (SUBDIR_PYTHON_SRCS): Likewise.
  8966. (py-lazy-string.o): New rule.
  8967. 2010-01-13 Doug Evans <dje@google.com>
  8968. * mi/mi-main.c (list_available_thread_groups): Avoid "may be used
  8969. uninitialized" warning from gcc on local `tree'.
  8970. 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
  8971. Implement core awareness.
  8972. * bcache.c (compare_ints): Remove
  8973. (print_percentage): Use compare_positive_ints.
  8974. * defs.h (compare_positive_ints): Declare.
  8975. * linux-nat.h (struct lin_lwp): New field core.
  8976. (linux_nat_core_of_thread_1): Declare.
  8977. * linux-nat.c (add_lwp): Init the 'core' field.
  8978. (linux_nat_wait_1): Record the core.
  8979. (linux_nat_core_of_thread_1, linux_nat_core_of_thread): New.
  8980. (linux_nat_add_target): Register the above.
  8981. * linux-thread-db.c (update_thread_core): New.
  8982. (thread_db_find_new_threads): Update core information for
  8983. every thread.
  8984. * remote.c (struct private_thread_info): New.
  8985. (free_private_thread_info, demand_private_info): New.
  8986. (PACKET_qXfer_threads, use_osdata_threads): New.
  8987. (struct thread_item, threads_parsing_context
  8988. (start_thread, end_thread, thread_attributes)
  8989. (thread_children, threads_children, threads_elements): New.
  8990. (remote_threads_info): Try qXfer:threads before anything
  8991. else.
  8992. (remote_protocol_packets): Register qXfer:threads.
  8993. (remote_open_1): Init use_osdata_threads.
  8994. (struct stop_reply): New field 'core'.
  8995. (remote_parse_stop_reply): Parse core number.
  8996. (process_stop_reply): Record core number.
  8997. (remote_xfer_partial): Handle qXfer:threads.
  8998. (remote_core_of_thread): New.
  8999. (init_remote_ops): Register remote_core_of_thread.
  9000. (_initialize_remote): Register qXfer:read.
  9001. * target.c (target_core_of_thread): New
  9002. * target.h (enum target_object): New value TARGET_OBJECT_THREADS.
  9003. (struct target_ops): New field to_core_of_threads.
  9004. (target_core_of_thread): Declare.
  9005. * gdbthread.h (struct thread_info): New field private_dtor.
  9006. * thread.c (print_thread_info): Report the core.
  9007. * ui-out.c (MAX_UI_OUT_LEVELS): Increase.
  9008. * utils.c (compare_positive_ints): New.
  9009. * features/threads.dtd: New.
  9010. * mi/mi-interp.c (mi_on_normal_stop): Report the core.
  9011. * mi/mi-main.c (struct collect_cores_data, collect_cores)
  9012. (do_nothing, free_vector_of_osdata_items)
  9013. (splay_tree_int_comparator, free_splay_tree): New.
  9014. (print_one_inferior_data): Implemented printing of selected
  9015. inferiors. Collect and print cores.
  9016. (output_cores): New.
  9017. (mi_cmd_list_thread_groups): Support --recurse. Permit specifying
  9018. thread groups together with --available.
  9019. 2010-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
  9020. * configure: Regenerate (for _STRUCTURED_PROC).
  9021. 2010-01-12 Joel Brobecker <brobecker@adacore.com>
  9022. Delete dead function.
  9023. * ada-lang.c (extract_string): Delete. No longer used.
  9024. 2010-01-12 Joel Brobecker <brobecker@adacore.com>
  9025. Fix -Wunused warning in dec-thread.c.
  9026. * dec-thread.c (dec_thread_count_gdb_threads)
  9027. (dec_thread_add_gdb_thread): Prevent -Wunused warning.
  9028. 2010-01-12 Joel Brobecker <brobecker@adacore.com>
  9029. * ada-valprint.c (ada_print_floating): Remove trailing space.
  9030. 2010-01-12 Joel Brobecker <brobecker@adacore.com>
  9031. Add support for DW_AT_GNAT_descriptive_type.
  9032. * gdbtypes.h (enum type_specific_kind): New enum.
  9033. (struct main_type) [type_specific_field]: New component.
  9034. [type_specific]: Add new component "gnat_stuff".
  9035. (struct gnat_aux_type): New type.
  9036. (INIT_CPLUS_SPECIFIC): Also set TYPE_SPECIFIC_FIELD (type).
  9037. (HAVE_CPLUS_STRUCT): Also check TYPE_SPECIFIC_FIELD (type).
  9038. (gnat_aux_default, allocate_gnat_aux_type): Add declaration.
  9039. (INIT_GNAT_SPECIFIC, ALLOCATE_GNAT_AUX_TYPE, HAVE_GNAT_AUX_INFO)
  9040. (TYPE_SPECIFIC_FIELD): New macros.
  9041. (TYPE_CPLUS_SPECIFIC): Return cplus_struct_default if the given
  9042. type does not hold any cplus-specific data.
  9043. (TYPE_RAW_CPLUS_SPECIFIC): New macro.
  9044. (TYPE_GNAT_SPECIFIC, TYPE_DESCRIPTIVE_TYPE): New macros.
  9045. (TYPE_IS_OPAQUE): Use HAVE_CPLUS_STRUCT to check if type has
  9046. cplus-specific data.
  9047. * gdbtypes.c (allocate_cplus_struct_type): Minor stylistic rewrite.
  9048. Set new component TYPE_SPECIFIC_FIELD (type).
  9049. (gnat_aux_default): New constant.
  9050. (allocate_gnat_aux_type): New function.
  9051. (init_type): Add initialization the type-specific stuff for
  9052. TYPE_CODE_FLT and TYPE_CODE_FUNC types.
  9053. (print_gnat_stuff): New function.
  9054. (recursive_dump_type): Use HAVE_CPLUS_STRUCT to check for cplus-
  9055. specific data. Adjust code that prints the contents of the
  9056. type-specific union using the TYPE_SPECIFIC_FIELD value.
  9057. * dwarf2read.c (dwarf2_attach_fields_to_type): Do not allocate
  9058. the type cplus stuff for Ada types.
  9059. (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type):
  9060. Error out if these routines are called with an Ada type.
  9061. (read_structure_type, read_array_type, read_subrange_type):
  9062. Add call to set_descriptive_type.
  9063. (set_die_type): Initialize the gnat-specific data if necessary.
  9064. (need_gnat_info, die_descriptive_type, set_descriptive_type):
  9065. New functions.
  9066. * ada-lang.c (decode_constrained_packed_array_type): Use
  9067. decode_constrained_packed_array_type instead of doing a standard
  9068. lookup to locate a parallel type.
  9069. (find_parallel_type_by_descriptive_type): New function.
  9070. (ada_find_parallel_type_with_name): New function.
  9071. (ada_find_parallel_type): Reimplement using
  9072. ada_find_parallel_type_with_name.
  9073. * ada-valprint.c (print_field_values): Use HAVE_CPLUS_STRUCT
  9074. to check if type has a cplus stuff.
  9075. * linespec.c (total_number_of_methods): Likewise.
  9076. * mdebugread.c (new_type): Likewise.
  9077. 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
  9078. * NEWS: Document the 0b binary number prefix parsing.
  9079. 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
  9080. * objfiles.c (objfile_relocate1): Change the return type to int.
  9081. Describe the new return value. Return non-zero if data changed.
  9082. (objfile_relocate): New variable changed. Set it. Call
  9083. breakpoint_re_set depending on CHANGED.
  9084. 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
  9085. Implement binary numbers parsing.
  9086. * c-exp.y (parse_number): New case 'b' and 'B'.
  9087. 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
  9088. Tristan Gingold <gingold@adacore.com>
  9089. * solib.c (info_sharedlibrary_command): Replace
  9090. objfile_has_partial_symbols and objfile_has_full_symbols calls by
  9091. objfile_has_symbols.
  9092. 2010-01-10 Joel Brobecker <brobecker@adacore.com>
  9093. * NEWS: Document the improvements made to the mips-irix port.
  9094. 2010-01-09 Joel Brobecker <brobecker@adacore.com>
  9095. Fix the documentation of valprint.c:value_print.
  9096. * valprint.c (value_print): Update the function description to
  9097. mention that the syntax of the output follows the current_language,
  9098. not necessarily C.
  9099. 2010-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
  9100. Fix displacement of separate debug info files.
  9101. * objfiles.c (objfile_relocate): Rename to ...
  9102. (objfile_relocate1): ... here and make it static. Extend the comment.
  9103. (objfile_relocate): New function.
  9104. * solib-spu.c (spu_relocate_main_executable): Explicitly check if
  9105. SYMFILE_OBJFILE is NULL. Remove variables objfile and old_chain.
  9106. Remove following of SEPARATE_DEBUG_OBJFILE. new_offsets is now
  9107. allocated using alloca.
  9108. * symfile.c (copy_section_addr_info): Remove.
  9109. (build_section_addr_info_from_objfile): Make it global. New variables
  9110. addr_bit and mask, use them.
  9111. * symfile.h (build_section_addr_info_from_objfile): New prototype.
  9112. (copy_section_addr_info): Remove.
  9113. 2010-01-09 Joel Brobecker <brobecker@adacore.com>
  9114. Signal unwinder for mips-irix N32.
  9115. * mips-irix-tdep.c: #include mips-tdep.h, trad-frame.h, and
  9116. tramp-frame.h.
  9117. (SIGTRAMP_FRAME_SIZE, SIGCONTEXT_PC_OFF, SIGCONTEXT_REGS_OFF)
  9118. (SIGCONTEXT_FPREGS_OFF, SIGCONTEXT_FPCSR_OFF, SIGCONTEXT_HI_OFF)
  9119. (SIGCONTEXT_LO_OFF): New macros.
  9120. (mips_irix_n32_tramp_frame_init): New function.
  9121. (mips_irix_n32_tramp_frame): New static constant.
  9122. (mips_irix_init_abi): Prepend the mips_irix_n32_tramp_frame unwinder.
  9123. 2010-01-09 Joel Brobecker <brobecker@adacore.com>
  9124. Breakpoint in shared library does not work on mips-irix.
  9125. * procfs.c: #include "observer.h".
  9126. (procfs_inferior_created): New function, moving here the code
  9127. which unsets the syssgi syscall-exit notifications.
  9128. (procfs_create_inferior): Remove the code which unsets the syssgi
  9129. syscall-exit notifications. It is too early to do this here.
  9130. (_initialize_procfs): Attach the procfs_inferior_created observer.
  9131. 2010-01-09 Joel Brobecker <brobecker@adacore.com>
  9132. Wrong return convention for arrays (mips-irix).
  9133. * mips-tdep.c (mips_n32n64_return_value): Arrays whose size is
  9134. 128 bits or smaller are returned the same way as structs
  9135. and unions of the the same size.
  9136. 2010-01-09 Joel Brobecker <brobecker@adacore.com>
  9137. Cannot set the PC on mips-irix.
  9138. * irix5-nat.c (fill_gregset): Check regno against the raw PC
  9139. register number, no the cooked one.
  9140. 2010-01-09 Joel Brobecker <brobecker@adacore.com>
  9141. Error while loading core file on mips-irix.
  9142. * solib-irix.c (irix_solib_create_inferior_hook): Do nothing
  9143. if debugging from a core file.
  9144. 2010-01-09 Joel Brobecker <brobecker@adacore.com>
  9145. GDB hangs when attaching to process on mips-irix.
  9146. * solib-irix.c (irix_solib_create_inferior_hook): Do nothing if
  9147. attaching to a process.
  9148. 2010-01-09 Joel Brobecker <brobecker@adacore.com>
  9149. Use the correct breakpoint instruction on mips-irix.
  9150. * mips-tdep.c (mips_breakpoint_from_pc): Add new static variable
  9151. containing the correct breakpoint instruction to use on mips-irix.
  9152. Use it when the osabi is GDB_OSABI_IRIX.
  9153. 2010-01-09 Joel Brobecker <brobecker@adacore.com>
  9154. -Wunused warning in procfs.c (mips-irix only).
  9155. * procfs.c (gdb_praddset, gdb_prdelset): New macros. Use them
  9156. throughout instead of using praddset and prdelset respectively.
  9157. 2010-01-09 Joel Brobecker <brobecker@adacore.com>
  9158. GDB crash while stepping into function.
  9159. * infrun.c (handle_inferior_event): Refetch the current frame
  9160. after handling what.main_action, in case that pointer became
  9161. dangling.
  9162. 2010-01-09 Joel Brobecker <brobecker@adacore.com>
  9163. Fix build failure of solaris-hosted cross debuggers.
  9164. * ada-valprint.c, parse.c: Include defs.h before including ctype.h.
  9165. 2010-01-09 Daniel Gutson <dgutson@codesourcery.com>
  9166. Fix build failure on sparc-solaris.
  9167. * procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus.
  9168. 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
  9169. Move some symfile code into subroutines.
  9170. * symfile.h (relative_addr_info_to_section_offsets)
  9171. (addr_info_make_relative): New prototypes.
  9172. * symfile.c (default_symfile_offsets): Move a part to ...
  9173. (relative_addr_info_to_section_offsets): ... this new function.
  9174. (default_symfile_offsets): Call it.
  9175. (syms_from_objfile <!mainline && addrs && addrs->other[0].name>): Move
  9176. this part to ...
  9177. (addr_info_make_relative): ... this new function.
  9178. 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
  9179. Add from_tty to solib_create_inferior_hook.
  9180. * infcmd.c (post_create_inferior): Move solib_add after
  9181. solib_create_inferior_hook. Pass from_tty to
  9182. solib_create_inferior_hook. Call solib_add and SOLIB_ADD with
  9183. 0 from_tty and comment why.
  9184. * infrun.c (follow_exec): Pass from_tty solib_create_inferior_hook as 0.
  9185. * linux-nat.c (linux_child_follow_fork): Likewise.
  9186. * nto-procfs.c (procfs_post_attach, procfs_create_inferior): Likewise.
  9187. * solib-darwin.c (darwin_solib_create_inferior_hook): New parameter
  9188. from_tty.
  9189. * solib-frv.c (frv_solib_create_inferior_hook): Likewise.
  9190. * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
  9191. * solib-null.c (null_solib_create_inferior_hook): Likewise.
  9192. * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
  9193. * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise.
  9194. * solib-som.c (som_solib_create_inferior_hook): Likewise.
  9195. * solib-spu.c (spu_solib_create_inferior_hook): New parameter from_tty.
  9196. Pass it to svr4_so_ops.solib_create_inferior_hook.
  9197. * solib-sunos.c (sunos_solib_create_inferior_hook): New parameter
  9198. from_tty.
  9199. * solib-svr4.c (enable_break): New parameter from_tty. Pass it to
  9200. solib_add.
  9201. (svr4_solib_create_inferior_hook): New parameter from_tty. Pass it to
  9202. enable_break.
  9203. * solib-target.c (solib_target_solib_create_inferior_hook): New
  9204. parameter from_tty.
  9205. * solib.c (solib_create_inferior_hook): New parameter from_tty. Pass
  9206. it to ops->solib_create_inferior_hook.
  9207. (reload_shared_libraries): Pass from_tty to solib_create_inferior_hook.
  9208. Move solib_add after solib_create_inferior_hook, call it now with
  9209. from_tty as 0. New comment there.
  9210. * solib.h (solib_create_inferior_hook): New parameter from_tty.
  9211. * solist.h (struct target_so_ops <solib_create_inferior_hook>):
  9212. Likewise.
  9213. 2010-01-08 Vladimir Prus <vladimir@codesourcery.com>
  9214. Fix multiexec race.
  9215. * infrun.c (handle_inferior_event): Use get_thread_regcache
  9216. with events ptid, not get_current_regcache.
  9217. 2009-01-08 Joel Brobecker <brobecker@adacore.com>
  9218. GDB crash with empty executable name (MinGW).
  9219. * source.c (openp): Add assert that parameter string is not NULL.
  9220. if parameter string is an empty string, then return with a failure
  9221. immediately.
  9222. 2009-01-08 Joel Brobecker <brobecker@adacore.com>
  9223. Get rid of support for VAX Floats.
  9224. * ada-lang.h (ada_is_vax_floating_type, ada_vax_float_type_suffix)
  9225. (ada_vax_float_print_function): Delete.
  9226. * ada-lang.c (ada_is_vax_floating_type, ada_vax_float_type_suffix)
  9227. (ada_vax_float_print_function): Delete.
  9228. * ada-typeprint.c (print_vax_floating_point_type): Delete.
  9229. (ada_print_type): Remove support for VAX floats.
  9230. * ada-valprint.c (ada_val_print_1): Remove support for VAX floats.
  9231. 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
  9232. * stabsread.c (read_args): Handle zero arguments.
  9233. 2009-01-08 Joel Brobecker <brobecker@adacore.com>
  9234. Cannot find in-tree libiconv.a after reconfigure.
  9235. * acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a
  9236. that we can use, then cache the path to this archive.
  9237. * configure: Regenerate.
  9238. 2010-01-07 Stan Shebs <stan@codesourcery.com>
  9239. Make tracepoint operations go through target vector.
  9240. * target.h (enum trace_find_type): New enum.
  9241. (struct target_ops): New fields to_trace_init,
  9242. to_download_tracepoint, to_download_trace_state_variable,
  9243. to_trace_set_readonly_regions, to_trace_start, to_get_trace_status,
  9244. to_trace_stop, to_trace_find, to_get_trace_state_variable_value,
  9245. to_set_disconnected_tracing.
  9246. (target_trace_init): New macro.
  9247. (target_download_tracepoint): New macro.
  9248. (target_download_trace_state_variable): New macro.
  9249. (target_trace_start): New macro.
  9250. (target_trace_set_readonly_regions): New macro.
  9251. (target_get_trace_status): New macro.
  9252. (target_trace_stop): New macro.
  9253. (target_trace_find): New macro.
  9254. (target_get_trace_state_variable_value): New macro.
  9255. (target_set_disconnected_tracing): New macro.
  9256. * target.c (update_current_target): Inherit and set defaults for
  9257. tracepoint operations.
  9258. * tracepoint.c (default_collect): Make globally visible.
  9259. (target_is_remote): Remove, along with all calls.
  9260. (tvariables_info): Call target_get_trace_state_variable_value.
  9261. (remote_set_transparent_ranges): Remove.
  9262. (trace_start_command): Call target_trace_init,
  9263. target_download_tracepoint, etc.
  9264. (download_tracepoint): Remove.
  9265. (trace_stop_command): Simplify.
  9266. (stop_tracing): Call target_trace_stop.
  9267. (get_trace_status): Call target_get_trace_status.
  9268. (trace_status_command): Add case for targets that cannot trace.
  9269. (finish_tfind_command): Change to take numerical arguments, call
  9270. target_trace_find.
  9271. (trace_find_command): Update call to finish_tfind_command.
  9272. (trace_find_pc_command): Ditto.
  9273. (trace_find_tracepoint_command): Ditto.
  9274. (trace_find_line_command): Ditto.
  9275. (trace_find_range_command): Ditto.
  9276. (trace_find_outside_command): Ditto.
  9277. (set_disconnected_tracing_value): Call
  9278. target_set_disconnected_tracing.
  9279. * remote.c: Add protocol encoding bits from tracepoint.c.
  9280. (trace_error): Move from tracepoint.c.
  9281. (remote_get_noisy_reply): Ditto.
  9282. (free_actions_list_cleanup_wrapper): Ditto.
  9283. (free_actions_list): Ditto.
  9284. (remote_trace_init): New function.
  9285. (remote_download_tracepoint): New function.
  9286. (remote_download_trace_state_variable): New function.
  9287. (remote_trace_set_readonly_regions): New function.
  9288. (remote_trace_start): New function.
  9289. (remote_get_trace_status): New function.
  9290. (remote_trace_stop): New function.
  9291. (remote_trace_find): New function.
  9292. (remote_download_trace_state_variable): New function.
  9293. (remote_set_disconnected_tracing): New function.
  9294. (init_remote_ops): Add tracepoint operations.
  9295. * tracepoint.c (trace_dump_command): Don't decr_pc_after_break.
  9296. 2010-01-07 Tristan Gingold <gingold@adacore.com>
  9297. * symfile.c (build_section_addr_info_from_objfile): New function.
  9298. (symbol_file_add_separate): Don't use offsets from objfile but
  9299. built an addr info.
  9300. 2010-01-06 Stan Shebs <stan@codesourcery.com>
  9301. Support disconnected tracing.
  9302. * infcmd.c (detach_command): Ask whether to stop tracing.
  9303. * cli/cli-cmds.c (quit_command): Ditto.
  9304. * breakpoint.h (struct breakpoint): New field number_on_target.
  9305. * breakpoint.c (create_tracepoint_from_upload): New function.
  9306. (get_tracepoint_by_number_on_target): New function.
  9307. * remote.c (struct remote): New field disconnected_tracing.
  9308. (remote_disconnected_tracing_feature): New function.
  9309. (remote_protocol_features): Add DisconnectedTracing.
  9310. (struct uploaded_tp): New struct.
  9311. (uploaded_tps): New global.
  9312. (get_uploaded_tp): New function.
  9313. (find_matching_tracepoint): New function.
  9314. (remote_get_tracing_state): New function.
  9315. (remote_start_remote): Call it.
  9316. * tracepoint.c (disconnected_tracing): New global.
  9317. (trace_start_command): Initialize number_on_target.
  9318. (stop_tracing): New function, split out from...
  9319. (trace_stop_command): Call stop_tracing.
  9320. (get_trace_status): New function, split out from...
  9321. (trace_status_command): Call get_trace_status, add info on
  9322. disconnection behavior.
  9323. (disconnect_or_stop_tracing): New function.
  9324. (finish_tfind_command): Translate from number on target.
  9325. (trace_find_tracepoint_command): Translate to number on target.
  9326. (send_disconnected_tracing_value): New function.
  9327. (set_disconnected_tracing): New function.
  9328. (_initialize_tracepoint): Add disconnected-tracing variable.
  9329. * NEWS: Mention disconnected tracing.
  9330. 2010-01-06 Tristan Gingold <gingold@adacore.com>
  9331. * symtab.c (lookup_global_symbol_from_objfile): Rename objfile
  9332. parameter to main_objfile. Iterate on all separate debug objfiles.
  9333. * symfile.h (symbol_file_add_separate)
  9334. (find_separate_debug_file_by_debuglink): Remove parameter names.
  9335. * symfile.c (symbol_file_add_separate): Use add_separate_objfile.
  9336. (reread_symbols): Use free_objfile_separate_debug.
  9337. * objfiles.h (struct objfile): Add separate_debug_objfile_link.
  9338. Adjust comment.
  9339. (objfile_separate_debug_iterate, add_separate_debug_objfile)
  9340. (free_objfile_separate_debug): New prototypes.
  9341. * objfiles.c (objfile_separate_debug_iterate): New function.
  9342. (add_separate_debug_objfile, free_objfile_separate_debug): New
  9343. functions.
  9344. (free_objfile): Use free_objfile_separate_debug. Adjust for
  9345. multiple separate debug objfile.
  9346. (objfile_has_symbols): Adjust comment. Iterate on all separate
  9347. debug objfiles.
  9348. * minsyms.c (lookup_minimal_symbol): Adjust for multiple separate
  9349. debug objfile.
  9350. (lookup_minimal_symbol_text): Ditto.
  9351. (lookup_minimal_symbol_by_pc_name): Ditto.
  9352. (lookup_minimal_symbol_solib_trampoline): Ditto.
  9353. (lookup_minimal_symbol_by_pc_section_1): Iterate on all separate
  9354. debug objfiles.
  9355. 2010-01-05 Stan Shebs <stan@codesourcery.com>
  9356. Add fast tracepoints.
  9357. * arch-utils.h (default_fast_tracepoint_valid_at): Declare.
  9358. * arch-utils.c (default_fast_tracepoint_valid_at): New function.
  9359. * breakpoint.h (enum bptype): Add bp_fast_tracepoint.
  9360. * breakpoint.c (tracepoint_type): New function.
  9361. (ALL_TRACEPOINTS): Use it.
  9362. (should_be_inserted): Ditto.
  9363. (bpstat_check_location): Ditto.
  9364. (print_one_breakpoint_location): Ditto.
  9365. (user_settable_breakpoint): Ditto.
  9366. (set_breakpoint_location_function): Ditto.
  9367. (disable_breakpoints_in_shlibs): Ditto.
  9368. (delete_trace_command): Ditto.
  9369. (print_it_typical): Add bp_fast_tracepoint case.
  9370. (bpstat_what): Ditto.
  9371. (print_one_breakpoint_location): Ditto.
  9372. (allocate_bp_location): Ditto.
  9373. (mention): Ditto.
  9374. (breakpoint_re_set_one): Ditto.
  9375. (disable_command): Ditto.
  9376. (enable_command): Ditto.
  9377. (check_fast_tracepoint_sals): New function.
  9378. (break_command_really): Call it.
  9379. (ftrace_command): New function.
  9380. (_initialize_breakpoint): Add ftrace command.
  9381. * gdbarch.sh (fast_tracepoint_valid_at): New.
  9382. * gdbarch.h, gdbarch.c: Regenerate.
  9383. * i386-tdep.c (i386_fast_tracepoint_valid_at): New function.
  9384. (i386_gdbarch_init): Use it.
  9385. * remote.c (struct remote_state): New field fast_tracepoints.
  9386. (PACKET_FastTracepoints): New packet config type.
  9387. (remote_fast_tracepoint_feature): New function.
  9388. (remote_protocol_features): Add FastTracepoints.
  9389. (remote_supports_fast_tracepoints): New function.
  9390. (_initialize_remote): Add FastTracepoints.
  9391. * tracepoint.c (download_tracepoint): Add fast tracepoint option.
  9392. * NEWS: Mention fast tracepoints.
  9393. 2010-01-06 Joel Brobecker <brobecker@adacore.com>
  9394. * gdb-gdb.py: New file.
  9395. 2010-01-05 Michael Snyder <msnyder@vmware.com>
  9396. * infrun.c (handle_inferior_event): Fix typo in comment.
  9397. 2010-01-05 Jan Kratochvil <jan.kratochvil@redhat.com>
  9398. * symfile.c (syms_from_objfile): Remove the !MAINLINE conditional.
  9399. 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
  9400. * features/Makefile (WHICH): Add s390-linux32, s390-linux64,
  9401. and s390x-linux64.
  9402. (s390-linux32-expedite): Define.
  9403. (s390-linux64-expedite): Define.
  9404. (s390x-linux64-expedite): Define.
  9405. * features/s390-acr.xml: New file.
  9406. * features/s390-fpr.xml: New file.
  9407. * features/s390-core32.xml: New file.
  9408. * features/s390-core64.xml: New file.
  9409. * features/s390x-core64.xml: New file.
  9410. * features/s390-linux32.xml: New file.
  9411. * features/s390-linux64.xml: New file.
  9412. * features/s390x-linux64.xml: New file.
  9413. * features/s390-linux32.c: New generated file.
  9414. * features/s390-linux64.c: New generated file.
  9415. * features/s390x-linux64.c: New generated file.
  9416. * regformats/s390-linux32.dat: New generated file.
  9417. * regformats/s390-linux64.dat: New generated file.
  9418. * regformats/s390x-linux64.dat: New generated file.
  9419. * regformats/reg-s390.dat: Remove.
  9420. * regformats/reg-s390x.dat: Remove.
  9421. * s390-nat.c: Include "auxv.h" and <elf.h>.
  9422. (HWCAP_S390_HIGH_GPRS): Define if undefined.
  9423. (s390_target_wordsize): New function.
  9424. (s390_auxv_parse): Likewise.
  9425. (s390_get_hwcap): Likewise.
  9426. (s390_read_description): Likewise.
  9427. (_initialize_s390_nat): Install s390_auxv_parse and
  9428. s390_read_description.
  9429. * s390-tdep.c: Include "features/s390-linux32.c",
  9430. "features/s390-linux64.c", and "features/s390x-linux64.c".
  9431. (struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum.
  9432. (s390_register_call_saved): New function.
  9433. (s390_register_name): Remove.
  9434. (s390_register_type): Remove.
  9435. (s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums.
  9436. (s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs.
  9437. (s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI.
  9438. (s390_pseudo_register_name): New function.
  9439. (s390_pseudo_register_type): New function.
  9440. (s390_pseudo_register_read): Handle both 32-bit and 64-bit cases.
  9441. Handle full GPR pesudos and varying pseudo register numbers.
  9442. (s390_pseudo_register_write): Likewise
  9443. (s390x_pseudo_register_read): Remove.
  9444. (s390x_pseudo_register_write): Likewise.
  9445. (s390_register_group): Remove.
  9446. (s390_pseudo_register_group): New function.
  9447. (s390_regmap_gregset): Add GPR upper halves.
  9448. (s390x_regmap_gregset): Likewise.
  9449. (s390_regmap_fpregset): Likewise.
  9450. (s390_regmap_upper): New global variable.
  9451. (s390_upper_regset): New global variable.
  9452. (s390_upper_regset_sections): New global variable.
  9453. (s390_regset_from_core_section): Handle GPR upper halves.
  9454. (s390_core_read_description): New function.
  9455. (s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered
  9456. register information. Handle varying pseudo register numbers.
  9457. (s390_backchain_frame_unwind_cache): Likewise.
  9458. (s390_frame_prev_register): Unwind full GPRs to show lower halves.
  9459. (s390_stub_frame_unwind_cache): Handle varying pseudo register numbers.
  9460. (s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as
  9461. PC and CC pseudos. Unwind upper halves and full GPRs as appropriate.
  9462. Handle varying pseudo register numbers.
  9463. (s390_unwind_pc): Handle varying pseudo register numbers.
  9464. (s390_dwarf2_prev_register): New function.
  9465. (s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered
  9466. register information. Handle varying pseudo register numbers.
  9467. Install s390_dwarf2_prev_register to unwind full GPRs.
  9468. (s390_gdbarch_init): Handle target descriptions. Assign varying
  9469. pseudo register numbers. Install s390_adjust_frame_regnum.
  9470. (_initialize_s390_tdep): Initialize target descriptions.
  9471. * s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define.
  9472. (S390_NUM_REGS): Redefine to include upper half registers.
  9473. (S390_PC_REGNUM, S390_CC_REGNUM): Remove.
  9474. (S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise.
  9475. (tdesc_s390_linux32): Add declaration.
  9476. (tdesc_s390_linux64): Likewise.
  9477. (tdesc_s390x_linux64): Likewise.
  9478. 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
  9479. * regset.h (struct core_regset_section): Add HUMAN_NAME.
  9480. * i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME.
  9481. * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
  9482. (ppc_linux_vmx_regset_sections): Likewise.
  9483. (ppc_linux_fp_regset_sections): Likewise.
  9484. * corelow.c (get_core_register_section): Constify arguments.
  9485. (get_core_registers): Use gdbarch_core_regset_sections instead
  9486. of hard-coded platform-specific register section names.
  9487. 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
  9488. * dwarf2loc.c (read_pieced_value): If a piece occupies part of
  9489. a register, assume the least-significant part is used.
  9490. (write_pieced_value): Likewise.
  9491. 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
  9492. * printcmd.c: Include "arch-utils.h".
  9493. (do_one_display): Re-parse expression if current architecture changed.
  9494. 2010-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
  9495. Joel Brobecker <brobecker@adacore.com>
  9496. * gdbtypes.c (check_typedef): New comment on type length.
  9497. * value.c (allocate_value_lazy): Remove the unused atype variable. New
  9498. comment on type length.
  9499. (value_primitive_field): Keep the original TYPE value, new comment.
  9500. 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
  9501. * cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as
  9502. p_start. Change != comparisons to > and < comparisons.
  9503. 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
  9504. * cli/cli-script.c (process_next_line): Check P2 overrun.
  9505. 2009-01-01 Joel Brobecker <brobecker@adacore.com>
  9506. Update the copyright hearder to add year 2010 for most GDB files.
  9507. 2009-01-01 Joel Brobecker <brobecker@adacore.com>
  9508. Fix build failure in inf-ptrace.c.
  9509. * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo.
  9510. 2010-01-01 Joel Brobecker <brobecker@adacore.com>
  9511. * top.c (print_gdb_version): Update copyright year.
  9512. 2010-01-01, 10 Joel Brobecker <brobecker@adacore.com>
  9513. Fix break *FUN'address thread NUM.
  9514. * ada-lex.l (task): Expand rule to also match the thread keyword.
  9515. 2010-01-01 Joel Brobecker <brobecker@adacore.com>
  9516. Fix break *FUN'address task NUM.
  9517. * ada-lex.l (task): New rule.
  9518. * ada-lang.c (valid_task_id): Make sure the Ada task list has
  9519. been built before using it.
  9520. For older changes see ChangeLog-2009.
  9521. Local Variables:
  9522. mode: change-log
  9523. left-margin: 8
  9524. fill-column: 74
  9525. version-control: never
  9526. coding: utf-8
  9527. End: