ChangeLog-2013 498 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507
  1. 2013-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
  2. * arm-linux-tdep.c (arm_stap_is_single_operand): Add comment
  3. describing function.
  4. 2013-12-28 Sergio Durigan Junior <sergiodj@redhat.com>
  5. * arm-linux-tdep.c (arm_stap_is_single_operand): Accept "$" as a
  6. literal prefix. Also accept no prefix at all.
  7. (arm_stap_parse_special_token): Likewise.
  8. (arm_linux_init_abi): Likewise.
  9. 2013-12-28 Sergio Durigan Junior <sergiodj@redhat.com>
  10. PR tdep/15653
  11. * NEWS: Mention SystemTap SDT probe support for AArch64 GNU/Linux.
  12. * aarch64-linux-tdep.c: Include necessary headers for parsing of
  13. SystemTap SDT probes.
  14. (aarch64_stap_is_single_operand): New function.
  15. (aarch64_stap_parse_special_token): Likewise.
  16. (aarch64_linux_init_abi): Declare SystemTap SDT probe argument
  17. prefixes and suffixes. Initialize gdbarch with them.
  18. 2013-12-23 Sterling Augustine <saugustine@google.com>
  19. * linespec.c (add_sal_to_sals): Use "<unknown>" when a symbol
  20. isn't found.
  21. 2013-12-23 Sergio Durigan JUnior <sergiodj@redhat.com>
  22. * stap-probe.c (struct stap_probe) <args_parsed>: Add comment.
  23. (stap_is_generic_prefix): Delete extra brackets. Reindent.
  24. (stap_parse_register_operand): Remove spurious newlines. Simplify
  25. code to parse special token.
  26. (stap_parse_argument_conditionally): Add gdb_assert.
  27. (stap_parse_argument_1): Likewise. Explicitly check for NULL and
  28. NUL.
  29. (stap_parse_probe_arguments): Likewise.
  30. (handle_stap_probe): Likewise. Reindent code.
  31. (get_stap_base_address): Explicitly check for NULL.
  32. (stap_get_probes): Likewise. Reindent code.
  33. (stap_relocate): Explicitly check for 0.
  34. (stap_gen_info_probes_table_values): Likewise.
  35. 2013-12-20 Chung-Lin Tang <cltang@codesourcery.com>
  36. * nios2-linux-tdep.c (nios2_linux_sigreturn_init): Remove.
  37. (nios2_linux_sigreturn_tramp_frame): Remove.
  38. (nios2_linux_rt_sigreturn_tramp_frame): Update rt_sigreturn syscall
  39. number.
  40. (nios2_linux_syscall_next_pc): Likewise. Remove sigreturn case.
  41. (nios2_linux_init_abi): Remove registration of
  42. nios2_linux_sigreturn_tramp_frame.
  43. 2013-12-19 H.J. Lu <hongjiu.lu@intel.com>
  44. PR gdb/16305
  45. * i386-tdep.c (i386_process_record): Mask out PREFIX_ADDR when
  46. adding prefix to opcode.
  47. 2013-12-19 H.J. Lu <hongjiu.lu@intel.com>
  48. PR gdb/16304
  49. * i386-tdep.c (i386_record_lea_modrm_addr): Don't use 16-bit
  50. address in 64-bit mode.
  51. 2013-12-19 H.J. Lu <hongjiu.lu@intel.com>
  52. PR gdb/16304
  53. * i386-tdep.c (i386_record_lea_modrm_addr): Zero-extend 32-bit
  54. address to 64-bit in 64-bit mode.
  55. 2013-12-19 H.J. Lu <hongjiu.lu@intel.com>
  56. PR gdb/16304
  57. * amd64-linux-tdep.c (amd64_canonicalize_syscall): Handle x32
  58. system calls.
  59. (amd64_x32_linux_record_tdep): New.
  60. (amd64_linux_syscall_record_common): New function.
  61. (amd64_linux_syscall_record): Call
  62. amd64_linux_syscall_record_common with amd64_linux_record_tdep.
  63. (amd64_x32_linux_syscall_record): Call
  64. amd64_linux_syscall_record_common with
  65. amd64_x32_linux_record_tdep.
  66. (amd64_linux_init_abi_common): Move amd64_linux_record_tdep
  67. initialization and tdep->i386_syscall_record setup to ...
  68. (amd64_linux_init_abi): Here.
  69. (amd64_x32_linux_init_abi): Initialize
  70. amd64_x32_linux_record_tdep. Set tdep->i386_syscall_record to
  71. amd64_x32_linux_syscall_record.
  72. * amd64-linux-tdep.h (amd64_x32_syscall): New enum.
  73. 2013-12-19 Sergio Durigan Junior <sergiodj@redhat.com>
  74. * amd64-tdep.c (amd64_init_abi): Declare SystemTap SDT probe
  75. argument prefixes and suffixes. Initialize gdbarch with them.
  76. * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
  77. * gdbarch.c: Regenerate.
  78. * gdbarch.h: Regenerate.
  79. * gdbarch.sh (stap_integer_prefix, stap_integer_suffix)
  80. (stap_register_prefix, stap_register_suffix)
  81. (stap_register_indirection_prefix)
  82. (stap_register_indirection_suffix): Declare as "const char *const
  83. *" instead of "const char *". Adjust printing function. Rename
  84. all of the variables to the plural.
  85. (pstring_list): New function.
  86. * i386-tdep.c (i386_elf_init_abi): Declare SystemTap SDT probe
  87. argument prefixes and suffixes. Initialize gdbarch with them.
  88. * ia64-linux-tdep.c (ia64_linux_init_abi): Likewise.
  89. * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
  90. * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
  91. * stap-probe.c (stap_is_generic_prefix): New function.
  92. (stap_is_register_prefix): Likewise.
  93. (stap_is_register_indirection_prefix): Likewise.
  94. (stap_is_integer_prefix): Likewise.
  95. (stap_generic_check_suffix): Likewise.
  96. (stap_check_integer_suffix): Likewise.
  97. (stap_check_register_suffix): Likewise.
  98. (stap_check_register_indirection_suffix): Likewise.
  99. (stap_parse_register_operand): Remove unecessary declarations for
  100. variables holding prefix and suffix information. Use the new
  101. functions listed above for checking for prefixes and suffixes.
  102. (stap_parse_single_operand): Likewise.
  103. 2013-12-19 Gabriel Krisman Bertazi <gabriel@krisman.be>
  104. PR breakpoints/16297
  105. * breakpoint.c (breakpoint_hit_catch_syscall): Return immediately
  106. when expected syscall is hit.
  107. 2013-12-19 Tom Tromey <tromey@redhat.com>
  108. * ser-unix.c (hardwire_ops): New global.
  109. (_initialize_ser_hardwire): Use it.
  110. * ser-tcp.c (tcp_ops): New global.
  111. (_initialize_ser_tcp): Use it.
  112. * ser-pipe.c (pipe_ops): New global.
  113. (_initialize_ser_pipe): Use it.
  114. * ser-mingw.c (hardwire_ops, tty_ops, pipe_ops, tcp_ops): New
  115. globals.
  116. (_initialize_ser_windows): Use them.
  117. 2013-12-19 Tom Tromey <tromey@redhat.com>
  118. * serial.c (serial_ops_p): New typedef.
  119. (serial_ops_list): Now a VEC.
  120. (serial_interface_lookup): Return const. Use VEC_iterate.
  121. (serial_add_interface): Make parameter const.
  122. (serial_open): Update.
  123. (serial_fdopen_ops): Make 'ops' const.
  124. (serial_pipe): Update.
  125. * ser-tcp.c (_initialize_ser_tcp): Update.
  126. * ser-pipe.c (_initialize_ser_pipe): Update.
  127. * ser-unix.c (_initialize_ser_hardwire): Update.
  128. * ser-mingw.c (_initialize_ser_windows): Update.
  129. * ser-go32.c (dos_ops): Now const. Update.
  130. * serial.h (struct serial) <ops>: Now const.
  131. (struct serial_ops) <next>: Remove.
  132. (serial_add_interface): Make parameter const.
  133. 2013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
  134. * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Set
  135. iov.iov_len with the real length in use.
  136. 2013-12-18 Yao Qi <yao@codesourcery.com>
  137. * target.h (target_xfer_partial_ftype): New typedef.
  138. (target_xfer_partial): Update declaration.
  139. * auxv.h (memory_xfer_auxv): Likewise.
  140. * ia64-hpux-nat.c (super_xfer_partial): Likewise.
  141. * ia64-linux-nat.c (super_xfer_partial): Likewise.
  142. * linux-nat.c (super_xfer_partial): Likewise.
  143. * procfs.c (procfs_xfer_partial): Likewise.
  144. * record-full.c (record_full_beneath_to_xfer_partial):
  145. (tmp_to_xfer_partial): Likewise.
  146. * sparc-nat.c (inf_ptrace_xfer_partial): Likewise.
  147. * target.c (default_xfer_partial): Likewise.
  148. (current_xfer_partial): Likewise.
  149. (target_xfer_partial): Change parameter type to 'gdb_byte *'.
  150. 2013-12-18 Yao Qi <yao@codesourcery.com>
  151. * linux-nat.c (linux_proc_xfer_partial): Call xsnprintf instead
  152. of sprintf.
  153. (linux_nat_detach, linux_child_pid_to_exec_file): Likewise.
  154. (linux_proc_pending_signals): Likewise.
  155. 2013-12-18 Joel Brobecker <brobecker@adacore.com>
  156. * value.c (value_entirely_unavailable): ARI fix: Move trailing
  157. binary operator to the next line. No actual code change.
  158. 2013-12-17 Pedro Alves <palves@redhat.com>
  159. * frame.h (enum frame_id_stack_status): New enum.
  160. (struct frame_id) <stack_addr>: Adjust comment.
  161. <stack_addr_p>: Delete field, replaced with ...
  162. <stack_status>: ... this new field.
  163. (frame_id_build_unavailable_stack): Declare.
  164. * frame.c (frame_addr_hash, fprint_field, outer_frame_id)
  165. (frame_id_build_special): Adjust.
  166. (frame_id_build_unavailable_stack): New function.
  167. (frame_id_build, frame_id_build_wild): Adjust.
  168. (frame_id_p, frame_id_eq, frame_id_inner): Adjust to take into
  169. account frames with unavailable stack.
  170. * amd64-tdep.c (amd64_frame_this_id)
  171. (amd64_sigtramp_frame_this_id, amd64_epilogue_frame_this_id): Use
  172. frame_id_build_unavailable_stack.
  173. * dwarf2-frame.c (dwarf2_frame_this_id): Likewise.
  174. * i386-tdep.c (i386_frame_this_id, i386_epilogue_frame_this_id)
  175. (i386_sigtramp_frame_this_id): Likewise.
  176. 2013-12-17 Andrew Burgess <aburgess@broadcom.com>
  177. * dwarf2loc.c (read_pieced_value): Mark bits, not bytes
  178. unavailable, use correct bit length.
  179. * value.c (struct value): Extend comment on unavailable to
  180. indicate that it is bit based.
  181. (value_bits_available): New function.
  182. (value_bytes_available): Call value_bits_available.
  183. (value_entirely_available): Check against the bit length, not byte
  184. length.
  185. (mark_value_bits_unavailable): New function.
  186. (mark_value_bytes_unavailable): Move contents to
  187. mark_value_bits_unavailable, call to same.
  188. (memcmp_with_bit_offsets): New function.
  189. (value_available_contents_bits_eq): New function, takes the
  190. functionality from value_available_contents_eq but uses
  191. memcmp_with_bit_offsets now, and is bit not byte based.
  192. (value_available_contents_eq): Move implementation into
  193. value_available_contents_bits_eq, call to same.
  194. (value_contents_copy_raw): Work on bits, not bytes.
  195. (unpack_value_bits_as_long_1): Check availability in bits, not
  196. bytes.
  197. * value.h (value_bits_available): Declare new function.
  198. (mark_value_bits_unavailable): Declare new function.
  199. 2013-12-16 Pierre Muller <muller@sourceware.org>
  200. Fix compilation error for cygwin native build.
  201. * windows-nat.c (windows_ensure_ntdll_loaded) [__USEWIDE]:
  202. Call wcstombs.
  203. 2013-12-16 Pedro Alves <palves@redhat.com>
  204. PR 16329
  205. * sol-thread.c (check_for_thread_db): If the target can't run or
  206. isn't a core, return without pushing.
  207. 2013-12-15 Joel Brobecker <brobecker@adacore.com>
  208. Revert the following commit:
  209. * solib.c (solib_map_sections): Remove code overwriting
  210. SO->SO_NAME with the bfd's filename.
  211. Make the following changes required after the revert above:
  212. * solib-aix.c (solib_aix_bfd_open): Set the filename of the
  213. returned bfd to a copy of the synthetic pathname.
  214. * solib-darwin.c (darwin_bfd_open): Set the filename of the
  215. returned bfd to a copy of PATHNAME.
  216. 2013-12-13 Joel Brobecker <brobecker@adacore.com>
  217. * ada-lang.c (ada_array_bound_from_type): Move the declaration
  218. and assignment of variable "elt_type" inside the else block
  219. where it is used. Add two missing check_typedef calls.
  220. Fix bug where we got TYPE's TYPE_TARGET_TYPE, where in fact
  221. we really wanted to get ELT_TYPE's TYPE_TARGET_TYPE.
  222. 2013-12-13 Joel Brobecker <brobecker@adacore.com>
  223. * ada-lang.c (ada_array_bound_from_type): Remove unwanted space
  224. between 'struct type *' and 'arr_type'.
  225. 2013-12-12 Siva Chandra Reddy <sivachandra@google.com>
  226. PR python/16113
  227. * NEWS (Python Scripting): Add entry for the new feature and the
  228. new attribute of gdb.Field objects.
  229. * python/py-type.c (gdbpy_is_field): New function
  230. (convert_field): Add 'parent_type' attribute to gdb.Field
  231. objects.
  232. * python/py-value.c (valpy_getitem): Allow subscript value to be
  233. a gdb.Field object.
  234. (value_has_field): New function
  235. (get_field_flag): New function
  236. * python/python-internal.h (gdbpy_is_field): Add declaration.
  237. 2013-12-12 Pedro Alves <palves@redhat.com>
  238. * breakpoint.c (insert_bp_location): Make 'hw_bp_err_string' local
  239. const, and remove casts.
  240. 2013-12-12 Pedro Alves <palves@redhat.com>
  241. * cli/cli-cmds.c (source_script_from_stream) Use have_python
  242. instead of catching UNSUPPORTED_ERROR.
  243. * exceptions.h (UNSUPPORTED_ERROR): Delete.
  244. * python/python.c (source_python_script) [!HAVE_PYTHON]: Internal
  245. error if called.
  246. * python/python.h (have_python): New static inline function.
  247. 2013-12-11 Doug Evans <dje@google.com>
  248. * dwarf2read.c (lookup_dwo_cutu): Include name of dwp file in
  249. "can't find DWO" warning.
  250. 2013-12-11 Sergio Durigan Junior <sergiodj@redhat.com>
  251. * break-catch-throw.c (fetch_probe_arguments): Pass selected frame
  252. to get_probe_argument_count and evaluate_probe_argument.
  253. * probe.c (get_probe_argument_count): Adjust declaration to accept
  254. frame. Pass frame to probe_ops's get_probe_argument_count.
  255. (evaluate_probe_argument): Likewise, for evaluate_probe_argument.
  256. (probe_safe_evaluate_at_pc): Pass frame to
  257. get_probe_argument_count and evaluate_probe_argument.
  258. * probe.h (struct probe_ops) <get_probe_argument_count,
  259. evaluate_probe_argument>: Adjust declarations to accept frame.
  260. (get_probe_argument_count, evaluate_probe_argument): Likewise.
  261. * solib-svr4.c (solib_event_probe_action): Get current frame.
  262. Pass it to get_probe_argument_count.
  263. (svr4_handle_solib_event): Get current frame. Pass it to
  264. get_probe_argument_count and evaluate_probe_argument.
  265. * stap-probe.c (stap_parse_probe_arguments): Adjust declaration to
  266. accept gdbarch. Do not obtain it from the probe's objfile.
  267. (stap_get_probe_argument_count): Adjust declaration to accept
  268. frame. Obtain gdbarch from the frame. Call generic
  269. can_evaluate_probe_arguments. Pass gdbarch to
  270. stap_parse_probe_arguments.
  271. (stap_get_arg): Adjust declaration to accept gdbarch. Pass it to
  272. stap_parse_probe_arguments.
  273. (stap_evaluate_probe_argument): Adjust declaration to accept
  274. frame. Obtain gdbarch from the frame. Pass gdbarch to
  275. stap_get_arg.
  276. (stap_compile_to_ax): Pass agent_expr's gdbarch to stap_get_arg.
  277. (compute_probe_arg): Obtain gdbarch from frame. Pass frame to
  278. get_probe_argument_count and evaluate_probe_argument.
  279. 2013-12-10 Doug Evans <dje@google.com>
  280. PR 16286
  281. * c-lang.c (c_get_string): Ignore the declared size of the object
  282. if a specific length is requested.
  283. 2013-12-10 Doug Evans <dje@google.com>
  284. * interps.h (interp_exec_p): Delete.
  285. * interps.c (interp_exec_p): Delete.
  286. (interp_exec): Update. Assert interp->procs->exec_proc != NULL.
  287. * mi/mi-interp.c (mi_cmd_interpreter_exec): Update.
  288. 2013-12-10 Yao Qi <yao@codesourcery.com>
  289. * amd64-tdep.c (amd64_analyze_stack_align): Call
  290. target_read_code instead of target_read_memory.
  291. (amd64_analyze_prologue): Call read_code_unsigned_integer
  292. instead of read_memory_unsigned_integer. Call read_code
  293. instead of read_memory.
  294. (amd64_skip_xmm_prologue): Likewise.
  295. 2013-12-10 Yao Qi <yao@codesourcery.com>
  296. * corefile.c (read_code): New function.
  297. (read_code_integer): New function.
  298. (read_code_unsigned_integer): New function.
  299. * gdbcore.h (read_code): Declare.
  300. (read_code_integer): Declare.
  301. (read_code_unsigned_integer): Declare.
  302. * i386-tdep.c (i386_follow_jump): Call target_read_code instead
  303. of target_read_memory. Call read_code_unsigned_integer instead
  304. of read_memory_unsigned_integer.
  305. (i386_analyze_struct_return): Likewise.
  306. (i386_skip_probe): Likewise.
  307. (i386_analyze_stack_align): Likewise.
  308. (i386_match_pattern): Likewise.
  309. (i386_skip_noop): Likewise.
  310. (i386_analyze_frame_setup): Likewise.
  311. (i386_analyze_register_saves): Likewise.
  312. (i386_skip_prologue): Likewise.
  313. (i386_skip_main_prologue): Likewise.
  314. (i386_frame_cache_1): Likewise.
  315. 2013-12-10 Yao Qi <yao@codesourcery.com>
  316. * infrun.c: Include "target-dcache.h".
  317. (prepare_for_detach): Call target_dcache_invalidate.
  318. (wait_for_inferior): Likewise.
  319. (fetch_inferior_event): Likewise.
  320. (infrun_thread_stop_requested_callback): Likewise. Set
  321. overlay_cache_invalid to 1.
  322. 2013-12-10 Joel Brobecker <brobecker@adacore.com>
  323. * symtab.c (symbol_find_demangled_name): Add handling of
  324. Ada symbols.
  325. 2013-12-10 Joel Brobecker <brobecker@adacore.com>
  326. * mi/mi-main.c (mi_cmd_list_features): add "exec-run-start-option".
  327. * NEWS: Expand the entry documenting the new -exec-run --start
  328. option to mention the corresponding new entry in the output of
  329. "-list-features".
  330. 2013-12-10 Joel Brobecker <brobecker@adacore.com>
  331. * windows-nat.c (handle_load_dll): Add comments.
  332. (windows_ensure_ntdll_loaded): New function.
  333. (do_initial_windows_stuff): Use windows_ensure_ntdll_loaded.
  334. Add FIXME comment.
  335. 2013-12-08 Joel Brobecker <brobecker@adacore.com>
  336. GDB 7.6.2 released.
  337. 2013-12-08 Yao Qi <yao@codesourcery.com>
  338. * stack.c (frame_info): Initialize variable caller_pc.
  339. 2013-12-06 Pedro Alves <palves@redhat.com>
  340. * frame.c (enum cached_copy_status): New enum.
  341. (struct frame_info) <prev_pc.p>: Change type to enum
  342. cached_copy_status.
  343. (fprint_frame): Handle not saved and unavailable prev_pc values.
  344. (frame_unwind_pc_if_available): Delete and merge contents into ...
  345. (frame_unwind_pc): ... here. Handle OPTIMIZED_OUT_ERROR. Adjust
  346. to use enum cached_copy_status.
  347. (frame_unwind_caller_pc_if_available): Delete.
  348. (create_new_frame): Adjust.
  349. * frame.h (frame_unwind_caller_pc_if_available): Delete
  350. declaration.
  351. * stack.c (frame_info): Use frame_unwind_caller_pc instead of
  352. frame_unwind_caller_pc_if_available, and handle
  353. NOT_AVAILABLE_ERROR and OPTIMIZED_OUT_ERROR errors.
  354. * valprint.c (val_print_optimized_out): Use val_print_not_saved.
  355. (val_print_not_saved): New function.
  356. * valprint.h (val_print_not_saved): Declare.
  357. 2013-12-06 Andrew Burgess <aburgess@broadcom.com>
  358. Pedro Alves <palves@redhat.com>
  359. * exceptions.h (errors): Add OPTIMIZED_OUT_ERROR.
  360. * dwarf2loc.c (write_pieced_value): Throw OPTIMIZED_OUT_ERROR.
  361. * frame.c (frame_unwind_register): Throw OPTIMIZED_OUT_ERROR.
  362. * spu-tdep.c (spu_software_single_step): Throw
  363. OPTIMIZED_OUT_ERROR.
  364. * valops.c (value_assign): Throw OPTIMIZED_OUT_ERROR.
  365. 2013-12-06 Tom Tromey <tromey@redhat.com>
  366. * objfiles.c (free_objfile): Update comment.
  367. 2013-12-06 Tom Tromey <tromey@redhat.com>
  368. * objfiles.h (objfile_to_front): Remove.
  369. * objfiles.c (objfile_to_front): Remove.
  370. 2013-12-06 Tom Tromey <tromey@redhat.com>
  371. * minsyms.c (get_symbol_leading_char): Remove unnecessary
  372. declaration.
  373. 2013-12-06 Tom Tromey <tromey@redhat.com>
  374. * psympriv.h (struct partial_symtab) <user>: Move earlier.
  375. 2013-12-06 Tom Tromey <tromey@redhat.com>
  376. * cli/cli-cmds.c (edit_command): Use paddress, not hex_string.
  377. (list_command): Likewise.
  378. 2013-12-06 Tom Tromey <tromey@redhat.com>
  379. * psymtab.c (allocate_psymtab): Put the filename in the filename
  380. bcache.
  381. 2013-12-06 Tom Tromey <tromey@redhat.com>
  382. * buildsym.c (end_symtab_from_static_block): Use obstack_copy0.
  383. * symtab.h (struct symtab) <dirname>: Now const.
  384. 2013-12-06 Tom Tromey <tromey@redhat.com>
  385. * symfile.c (allocate_symtab): Remove cast.
  386. * symtab.h (struct symtab) <filename>: Now const.
  387. 2013-12-06 Tom Tromey <tromey@redhat.com>
  388. * break-catch-throw.c (fetch_probe_arguments): Use
  389. get_probe_argument_count and evaluate_probe_argument.
  390. * elfread.c (elf_get_probe_argument_count)
  391. (elf_can_evaluate_probe_arguments, elf_evaluate_probe_argument)
  392. (elf_compile_to_ax): Remove.
  393. (elf_probe_fns): Update.
  394. * probe.c (get_probe_argument_count, can_evaluate_probe_arguments)
  395. (evaluate_probe_argument): Call method on probe, not via sym
  396. functions.
  397. * stap-probe.c (compute_probe_arg): Use get_probe_argument_count,
  398. evaluate_probe_argument.
  399. (compile_probe_arg): Use get_probe_argument_count. Call method on
  400. probe, not via sym functions.
  401. * symfile-debug.c (debug_sym_get_probe_argument_count)
  402. (debug_can_evaluate_probe_arguments)
  403. (debug_sym_evaluate_probe_argument, debug_sym_compile_to_ax):
  404. Remove.
  405. (debug_sym_probe_fns): Remove.
  406. * symfile.h (struct sym_probe_fns) <sym_get_probe_argument_count,
  407. can_evaluate_probe_arguments, sym_evaluate_probe_argument,
  408. sym_compile_to_ax>: Remove fields.
  409. 2013-12-06 Pierre Muller <muller@sourceware.org>
  410. Fix completion for pascal language.
  411. * p-exp.y (exp : field_exp name): Do not call mark_struct_expression.
  412. (exp : field_exp name COMPLETE): New rule.
  413. (exp : SIZEOF): Set correct current_type.
  414. (last_was_structop): Remove static variable.
  415. (yylex): Remove saw_structop local variable.
  416. Adapt code to removal of variables above.
  417. 2013-12-06 Joel Brobecker <brobecker@adacore.com>
  418. * frame.c (get_prev_frame_1): Delete variable "this_id".
  419. Replace its use by a call to get_frame_id.
  420. 2013-12-05 Anthony Green <green@moxielogic.com>
  421. * moxie-tdep.c (moxie_software_single_step): New function.
  422. (INST2OFFSET): New helper macro.
  423. (moxie_gdbarch_init): Call set_gdbarch_software_single_step.
  424. (moxie_process_readu): Move this up in the file.
  425. 2013-12-05 Doug Evans <xdje42@gmail.com>
  426. * auto-load.c (load_auto_scripts_for_objfile): Add some comments.
  427. 2013-12-05 Joel Brobecker <brobecker@adacore.com>
  428. Tristan Gingold <gingold@adacore.com>
  429. * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
  430. Accept version 2. Ignore operations using opcode 6.
  431. 2013-12-05 Joel Brobecker <brobecker@adacore.com>
  432. * ada-lex.l (find_dot_all): Fix coding style violations.
  433. 2013-12-03 Walfred Tedeschi <walfred.tedeschi@intel.com>
  434. * NEWS: Add section for Intel Architecture Instructions
  435. Extesions mentioning MPX.
  436. 2013-12-03 Joel Brobecker <brobecker@adacore.com>
  437. * ada-lex.l (find_dot_all): Use strncasecmp instead of strncmp.
  438. 2013-12-03 Joel Brobecker <brobecker@adacore.com>
  439. * ada-lang.c (create_excep_cond_exprs): Force EXP to NULL
  440. when parse_exp_1 threw an error. Add comment.
  441. 2013-12-03 Joel Brobecker <brobecker@adacore.com>
  442. * NEWS: Mention "-list-features" in the entry documenting
  443. the support for the "--language" option.
  444. 2013-12-03 Tom Tromey <tromey@redhat.com>
  445. Jan Kratochvil <jan.kratochvil@redhat.com>
  446. Doug Evans <dje@google.com>
  447. Samuel Bronson <naesten@gmail.com>
  448. Bring back gdb-add-index as a contrib script.
  449. * contrib/gdb-add-index.sh: New file.
  450. * NEWS: Note the addition.
  451. 2013-12-03 Samuel Bronson <naesten@gmail.com>
  452. * MAINTAINERS (Write After Approval): Add myself to the list.
  453. 2013-12-03 Joel Brobecker <brobecker@adacore.com>
  454. * mi/mi-main.c (mi_cmd_list_features): Remove "ada-exceptions".
  455. 2013-12-03 Joel Brobecker <brobecker@adacore.com>
  456. * mi/mi-main.c: Remove trailing spaces throughout.
  457. 2013-12-03 Pedro Alves <palves@redhat.com>
  458. Joel Brobecker <brobecker@adacore.com>
  459. * exceptions.h (enum_errors) <UNDEFINED_COMMAND_ERROR>: New enum.
  460. * mi/mi-parse.c (mi_parse): Throw UNDEFINED_COMMAND_ERROR instead
  461. of a regular error when the GDB/MI command does not exist.
  462. * mi/mi-main.c (mi_cmd_list_features): Add
  463. "undefined-command-error-code".
  464. (mi_print_exception): Print an "undefined-command"
  465. error code if EXCEPTION.ERROR is UNDEFINED_COMMAND_ERROR.
  466. * NEWS: Add entry documenting the new "code" variable in
  467. "^error" result records.
  468. 2013-12-03 Joel Brobecker <brobecker@adacore.com>
  469. * mi/mi-cmds.h (mi_cmd_info_gdb_mi_command): Declare.
  470. * mi/mi-cmd-info.c (mi_cmd_info_gdb_mi_command): New function.
  471. * mi/mi-cmds.c (mi_cmds): Add -info-gdb-mi-command command.
  472. * mi/mi-main.c (mi_cmd_list_features): Add "info-gdb-mi-command"
  473. field to output of "-list-features".
  474. * NEWS: Add entry for new -info-gdb-mi-command.
  475. 2013-12-02 Doug Evans <dje@google.com>
  476. Jan Kratochvil <jan.kratochvil@redhat.com>
  477. * objfiles.c (allocate_objfile): Save original_name as an absolute
  478. path.
  479. * objfiles.h (struct objfile): Expand comment on original_name.
  480. * source.c (openp): Call gdb_abspath.
  481. * utils.c (gdb_abspath): New function.
  482. * utils.h (gdb_abspath): Declare.
  483. 2013-12-02 Pedro Alves <palves@redhat.com>
  484. * dcache.c (dcache_read_line): Use target_read_raw_memory.
  485. * target.c (target_read_raw_memory): New function.
  486. (target_read_stack, target_write_memory, target_write_raw_memory):
  487. Update comment.
  488. (target_read_code): Add comment.
  489. * target.h (target_read_raw_memory): Declare.
  490. 2013-12-02 Pedro Alves <palves@redhat.com>
  491. * ctf.c (ctf_start): Use S_IRGRP, S_IXGRP, S_IXOTH
  492. unconditionally.
  493. 2013-12-02 Pedro Alves <pedro@codesourcery.com>
  494. Maciej W. Rozycki <macro@codesourcery.com>
  495. * remote.c (putpkt_for_catch_errors): Remove function.
  496. (remote_kill): Handle TARGET_CLOSE_ERROR from the kill packet
  497. gracefully.
  498. 2013-12-02 Pedro Alves <palves@redhat.com>
  499. PR remote/15974
  500. * remote-notif.c (handle_notification): Return early if no
  501. notification is found.
  502. 2013-12-02 Joel Brobecker <brobecker@adacore.com>
  503. * common/filestuff.c (fdwalk): Add "defined(RLIMIT_NOFILE)"
  504. preprocessor check.
  505. 2013-12-02 Joel Brobecker <brobecker@adacore.com>
  506. * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_dirent.h".
  507. 2013-12-02 Joel Brobecker <brobecker@adacore.com>
  508. * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_stat.h".
  509. * ctf.c (ctf_start): Remove obsolete comment.
  510. 2013-12-02 Joel Brobecker <brobecker@adacore.com>
  511. * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_string.h".
  512. 2013-11-30 Doug Evans <xdje42@gmail.com>
  513. * auto-load.h (script_language): New members name, auto_load_enabled.
  514. Add missing comments on struct members.
  515. (auto_load_objfile_script): Delete.
  516. * auto-load.c: #include "cli/cli-cmds.h".
  517. (auto_load_gdb_scripts_enabled): New function.
  518. (script_language_gdb): Update, add new members.
  519. (source_gdb_script_for_objfile): Simplify, auto-load safe-checking
  520. and call to maybe_add_script moved to caller.
  521. (auto_load_objfile_script_1): Auto-load safe-checking and
  522. call to maybe_add_script moved here.
  523. (auto_load_objfile_script): Make static. Early exit if support for
  524. scripting language hasn't been compiled in, or auto-loading has been
  525. disabled.
  526. (source_section_scripts): Argument "source_name" renamed to
  527. "section_name". All uses updated. Replace uses of AUTO_SECTION_NAME
  528. with section_name. Skip loading script if support for scripting
  529. language hasn't been compiled in, or auto-loading has been disabled.
  530. Call language->source_script_for_objfile instead of calling
  531. source_python_script_for_objfile directly.
  532. (load_auto_scripts_for_objfile): Update.
  533. * python/py-auto-load.c: Delete #include "cli/cli-cmds.h".
  534. (gdbpy_load_auto_script_for_objfile): Delete.
  535. (auto_load_python_scripts_enabled): New function.
  536. (script_language_python): Update, add new members.
  537. (gdbpy_script_language_defn): New function.
  538. * python/python.h (gdbpy_load_auto_scripts_for_objfile): Delete.
  539. (gdbpy_script_language_defn): Declare.
  540. * auto-load.c (AUTO_SECTION_NAME): Moved here and renamed from
  541. py-auto-load.c, GDBPY_AUTO_SECTION_NAME.
  542. (source_section_scripts): Moved here from py-auto-load.c.
  543. (auto_load_section_scripts): Ditto.
  544. * python/py-auto-load.c (GDBPY_AUTO_SECTION_NAME): Moved to
  545. auto-load.c, renamed AUTO_SECTION_NAME.
  546. (source_section_scripts, auto_load_section_scripts): Moved to
  547. auto-load.c.
  548. 2013-11-30 Yao Qi <yao@codesourcery.com>
  549. * remote.c (getpkt_or_notif_sane_1): Fix typo "checksm".
  550. 2013-11-29 Sergio Durigan Junior <sergiodj@redhat.com>
  551. * gdbarch.sh: Remove include of "gdb_string.h", replace by
  552. <string.h>.
  553. 2013-11-29 Doug Evans <xdje42@gmail.com>
  554. * python/py-auto-load.c (source_section_scripts): Move comment to
  555. more relevant location.
  556. Whitespace cleanup.
  557. * python/py-breakpoint.c: Remove trailing whitespace.
  558. * python/py-cmd.c: Ditto.
  559. * python/py-evts.c: Ditto.
  560. * python/py-finishbreakpoint.c: Ditto.
  561. * python/py-frame.c: Ditto.
  562. * python/py-function.c: Ditto.
  563. * python/py-inferior.c: Ditto.
  564. * python/py-infthread.c: Ditto.
  565. * python/py-param.c: Ditto.
  566. * python/py-prettyprint.c: Ditto.
  567. * python/py-symbol.c: Ditto.
  568. * python/py-type.c: Ditto.
  569. * python/py-utils.c: Ditto.
  570. * python/py-value.c: Ditto.
  571. * python/python-internal.h: Ditto.
  572. * python/python.c: Ditto.
  573. 2013-11-29 Pedro Alves <palves@redhat.com>
  574. * unwind_stop_reasons.def (UNWIND_NULL_ID): Update comment.
  575. 2013-11-29 Pedro Alves <palves@redhat.com>
  576. * breakpoint.c (build_target_condition_list): Release previous
  577. conditions.
  578. (build_target_command_list): Release previous commands.
  579. (bp_location_dtor): Release target conditions and commands.
  580. * remote.c (remote_add_target_side_condition): Don't release
  581. conditions.
  582. (remote_add_target_side_commands): Don't release commands.
  583. 2013-11-29 Yao Qi <yao@codesourcery.com>
  584. Pedro Alves <palves@redhat.com>
  585. * dcache.c (dcache_read_line): Use current_target.beneath
  586. instead of &current_target.
  587. * target.c (memory_xfer_partial_1): Factor code out to ...
  588. (raw_memory_xfer_partial): ... it. New function.
  589. (target_xfer_partial): Call raw_memory_xfer_partial if OBJECT
  590. is TARGET_OBJECT_RAW_MEMORY.
  591. 2013-11-28 Doug Evans <xdje42@gmail.com>
  592. * breakpoint.h (gdbpy_breakpoint_object): Renamed from
  593. breakpoint_object. All uses updated.
  594. * python/python-internal.h (gdbpy_breakpoint_object): Renamed from
  595. breakpoint_object. All uses updated.
  596. * python.c (*): All uses of breakpoint_object updated.
  597. * python.h (*): All uses of breakpoint_object updated.
  598. * python/py-breakpoint.c (*): All uses of breakpoint_object updated.
  599. * python/py-finishbreakpoint.c (*): Ditto.
  600. 2013-11-28 Doug Evans <xdje42@gmail.com>
  601. * configure.ac: Add comments delineating libpython and libmcheck.
  602. * configure: Regenerate.
  603. 2013-11-28 Andrew Burgess <aburgess@broadcom.com>
  604. Pedro Alves <palves@redhat.com>
  605. * valprint.c (value_check_printable): If the value is entirely
  606. unavailable, print a single "<unavailable>" instead of printing
  607. all subfields.
  608. 2013-11-28 Pedro Alves <palves@redhat.com>
  609. * frame.c (get_prev_frame_1) <stop_reason != UNWIND_NO_REASON>:
  610. Add "set debug frame" output.
  611. (frame_stop_reason_symbol_string): New function.
  612. 2013-11-28 Pedro Alves <palves@redhat.com>
  613. * frame-unwind.c (default_frame_unwind_stop_reason): Return
  614. UNWIND_OUTERMOST if the frame's ID is outer_frame_id.
  615. * frame.c (get_prev_frame_1): Remove outer_frame_id check.
  616. 2013-11-28 Pedro Alves <palves@redhat.com>
  617. * frame.c (get_prev_frame_1): If the frame id is outer_frame_id,
  618. set the unwind stop reason to UNWIND_OUTERMOST, not
  619. UNWIND_NULL_ID. Remove explicit check for sentinel frame.
  620. 2013-11-28 Pedro Alves <palves@redhat.com>
  621. * frame.c (frame_unwind_register): Say the register was "not
  622. saved" instead of "optimized out".
  623. 2013-11-27 Steffen Sledz <sledz@dresearch-fe.de>
  624. PR 16152
  625. * configure: Rebuild.
  626. * configure.ac: Tighten cygwin detection check.
  627. 2013-11-27 Pedro Alves <palves@redhat.com>
  628. * frame-unwind.c (frame_unwind_got_optimized): Use the type of the
  629. register in the previous frame's arch.
  630. 2013-11-27 Pedro Alves <palves@redhat.com>
  631. * frame-unwind.c (frame_unwind_got_optimized): Return
  632. an lval_register value instead of a not_lval value.
  633. 2013-11-27 Andrew Burgess <aburgess@broadcom.com>
  634. * frame.c: Include "valprint.h".
  635. (frame_unwind_register_value): Use value_optimized_out.
  636. * value.c (value_fetch_lazy): Likewise.
  637. 2013-11-26 Andrew Burgess <aburgess@broadcom.com>
  638. * value.c (allocate_optimized_out_value): Mark value as non-lazy.
  639. 2013-11-26 Tom Tromey <tromey@redhat.com>
  640. * dwarf2-frame.c (dwarf2_frame_cache): Revert patch from
  641. 2013-11-22.
  642. 2013-11-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
  643. * i386-xstate.h (I386_XSTATE_MPX): New Macro.
  644. (I386_XSTATE_MPX_MASK): Makes use of I386_XSTATE_MPX.
  645. (HAS_MPX): New macro.
  646. (HAS_AVX): New macro.
  647. (I386_XSTATE_SIZE): Uses HAS_MPX and HAS_AVX.
  648. 2013-11-25 Keith Seitz <keiths@redhat.com>
  649. PR c++/14819
  650. * c-exp.y (classify_inner_name): If no matching symbol was
  651. found, try looking up the token as a base class.
  652. Likewise if a constructor was found.
  653. * cp-namespace.c (find_type_baseclass_by_name): New function.
  654. * cp-support.h (find_type_baseclass_by_name): Declare.
  655. * valops.c (value_struct_elt_for_reference): If we get
  656. a non-static field, try to get a value based on the
  657. current instance, if any.
  658. 2013-11-24 Yao Qi <yao@codesourcery.com>
  659. * disasm.c (dis_asm_read_memory): Call target_read_code
  660. instead of target_read_memory.
  661. 2013-11-24 Yao Qi <yao@codesourcery.com>
  662. * NEWS: Add note on new "set code-cache" option.
  663. * target-dcache.c (code_cache_enabled_1): New variable.
  664. (code_cache_enabled): New variable.
  665. (show_code_cache, set_code_cache): New function.
  666. (code_cache_enabled_p): New function.
  667. (_initialize_target_dcache): Register command.
  668. * target-dcache.h (code_cache_enabled_p): Declare.
  669. * target.c (memory_xfer_partial_1):Handle
  670. TARGET_OBJECT_CODE_MEMORY and code_cache_enabled.
  671. (target_read_code): New function.
  672. * target.h (enum target_object) <TARGET_OBJECT_CODE_MEMORY>:
  673. New.
  674. (target_read_code): Declare.
  675. 2013-11-24 Yao Qi <yao@codesourcery.com>
  676. * target-dcache.c (stack_cache_enabled_p_1): Rename to ...
  677. (stack_cache_enabled_1): ... this. New variable.
  678. (stack_cache_enabled_p): Rename to ...
  679. (stack_cache_enabled): ... this. New variable.
  680. (set_stack_cache_enabled_p): Rename to ...
  681. (set_stack_cache): ... this. Update caller.
  682. (show_stack_cache_enabled_p): Rename to ...
  683. (show_stack_cache): ... this. Update caller.
  684. (stack_cache_enabled): Rename to ...
  685. (stack_cache_enabled_p): ... this. Update caller.
  686. (_initialize_target_dcache): Replace "data cache" with
  687. "target memory cache".
  688. * target-dcache.h (stack_cache_enabled): Remove declaration.
  689. (stack_cache_enabled_p): Add declaration.
  690. 2013-11-23 Doug Evans <xdje42@gmail.com>
  691. * python/py-frame.c (gdbpy_initialize_frames): Remove FIRST_ERROR,
  692. superfluous.
  693. 2013-11-23 Doug Evans <xdje42@gmail.com>
  694. * python/py-frame.c (frapy_block): Fix error message text.
  695. 2013-11-23 Doug Evans <xdje42@gmail.com>
  696. * cli/cli-script.c (multi_line_command_p): New function.
  697. (recurse_read_control_structure, read_command_lines_1): Call it.
  698. (execute_control_command): Consistently have a blank line between
  699. each case.
  700. 2013-11-22 Sterling Augustine <saugustine@google.com>
  701. PR gdb/16196:
  702. * valprint.c (read_string): Set new variable fetchlen based on
  703. fetchlimit and size. Use it in call to partial_memory_read.
  704. Update comment.
  705. 2013-11-22 Tom Tromey <tromey@redhat.com>
  706. PR backtrace/16155:
  707. * dwarf2-frame.c (dwarf2_frame_cache): Set undefined_retaddr if
  708. the return address column is unspecified.
  709. 2013-11-22 Tom Tromey <tromey@redhat.com>
  710. Pedro Alves <palves@redhat.com>
  711. PR backtrace/16155
  712. * value.c (value_fetch_lazy): Internal error if
  713. get_frame_register_value returns the same register.
  714. 2013-11-22 Pedro Alves <palves@redhat.com>
  715. Tom Tromey <tromey@redhat.com>
  716. * frame.c (frame_stash_add): Now returns whether a frame with the
  717. same ID was already known.
  718. (compute_frame_id): New function, factored out from get_frame_id.
  719. (get_frame_id): No longer lazilly compute the frame id here.
  720. (get_prev_frame_if_no_cycle): New function. Detects wider stack
  721. cycles.
  722. (get_prev_frame_1): Use it instead of get_prev_frame_raw directly,
  723. and checking for stack cycles here.
  724. 2013-11-22 Pedro Alves <palves@redhat.com>
  725. PR 16155
  726. * frame.c (get_prev_frame_1): Do the UNWIND_SAME_ID check between
  727. this frame and the new previous frame, not between this frame and
  728. the next frame.
  729. 2013-11-22 Pedro Alves <palves@redhat.com>
  730. PR 16155
  731. * dwarf2-frame.c (struct dwarf2_frame_cache)
  732. <checked_tailcall_bottom, entry_cfa_sp_offset,
  733. entry_cfa_sp_offset_p>: New fields.
  734. (dwarf2_frame_cache): Adjust to use the new cache fields instead
  735. of locals. Don't call dwarf2_tailcall_sniffer_first here.
  736. (dwarf2_frame_prev_register): Call it here, but only once.
  737. 2013-11-21 Doug Evans <xdje42@gmail.com>
  738. * gdbtypes.c: #include bcache.h, dwarf2loc.h.
  739. (type_equality_entry): Move here from python/py-type.c.
  740. (type_equality_entry_d): Ditto.
  741. (compare_maybe_null_strings, check_types_equal): Ditto.
  742. (check_types_worklist, types_deeply_equal): Ditto.
  743. * gdbtypes.h (types_deeply_equal): Declare.
  744. * python/py-type.c: Remove inclusion of bcache.h, dwarf2loc.h.
  745. (typy_richcompare): Update.
  746. 2013-11-20 Joel Brobecker <brobecker@adacore.com>
  747. * python/py-value.c (is_intlike): Delete.
  748. (valpy_int): Replace use of CHECK_TYPEDEF and is_intlike
  749. by use of is_integral_type.
  750. (valpy_long): Replace use of CHECK_TYPEDEF and is_intlike
  751. by use of is_integral_type and check for TYPE_CODE_PTR.
  752. 2013-11-20 Tom Tromey <tromey@redhat.com>
  753. * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Remove
  754. strerror module.
  755. * gnulib/aclocal.m4: Update.
  756. * gnulib/config.in: Update.
  757. * gnulib/configure: Update.
  758. * gnulib/import/Makefile.am: Update.
  759. * gnulib/import/Makefile.in: Update.
  760. * gnulib/import/errno.in.h: Remove.
  761. * gnulib/import/intprops.h: Remove.
  762. * gnulib/import/m4/errno_h.m4: Remove.
  763. * gnulib/import/m4/gnulib-cache.m4: Update.
  764. * gnulib/import/m4/gnulib-comp.m4: Update.
  765. * gnulib/import/m4/strerror.m4: Remove.
  766. * gnulib/import/m4/sys_socket_h.m4: Remove.
  767. * gnulib/import/strerror-override.c: Remove.
  768. * gnulib/import/strerror-override.h: Remove.
  769. * gnulib/import/strerror.c: Remove.
  770. * gnulib/update-gnulib.sh: Update.
  771. 2013-11-20 Yao Qi <yao@codesourcery.com>
  772. * target-dcache.c (target_dcache_get_or_init): Call
  773. set_address_space_data if 'dcache' is NULL.
  774. 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
  775. * common/i386-gcc-cpuid.h (bit_MPX): Synchronize with gcc file.
  776. 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
  777. * python/lib/gdb/command/bound_register.py: New file.
  778. * data-directory/Makefile.in: Copy bond_register.py to the right path
  779. to be initialized at gdb startup.
  780. 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
  781. * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset):
  782. Add MPX registers.
  783. (amd64_linux_read_description): Add initialization for MPX and
  784. AVX independently.
  785. * amd64-linux-tdep.c: Includes features/i386/amd64-mpx-linux.c.
  786. (amd64_linux_gregset_reg_offset): Add MPX registers.
  787. (amd64_linux_core_read_description): Add initialization for MPX
  788. registers.
  789. (_initialize_amd64_linux_tdep): Initialize MPX targets.
  790. * amd64-linux-tdep.h (AMD64_LINUX_RAX_REGNUM): Set it to the last
  791. register on the list.
  792. (tdesc_amd64_mpx_linux) Add new target for MPX.
  793. * amd64-tdep.c: Includes features/i386/amd64-mpx.c.
  794. (amd64_mpx_names): MPX register names.
  795. (amd64_init_abi): Add MPX register while initializing the ABI.
  796. (_initialize_amd64_tdep): Initialize MPX targets.
  797. * amd64-tdep.h (amd64_regnum): Add MPX registers.
  798. (AMD64_NUM_REGS): Set number of registers taking MPX into account.
  799. 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
  800. * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Add MPX
  801. registers on the range of registers to be read from
  802. xsave buffer.
  803. (i386_linux_read_description): Add case for MPX.
  804. * i386-linux-tdep.c: Include features/i386/i386-mpx-linux.c.
  805. (i386_linux_gregset_reg_offset): Add MPX registers.
  806. (i386_linux_core_read_description): Initialize also MPX.
  807. (_initialize_i386_linux_tdep): Add mpx initialization.
  808. * i386-tdep.h (gdbarch_tdep): Add fields bnd0r_regnum, bnd0_regnum,
  809. mpx_register_names.
  810. (i386_regnum): Add MPX registers.
  811. (I386_MPX_NUM_REGS): New macro.
  812. (i386_bnd_regnum_p): New function.
  813. * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set
  814. number of registers to be the number of BNDSTATUS.
  815. (tdesc_i386_mpx_linux): Add description for MPX Linux registers.
  816. * i386-tdep.c: Include features/i386/i386-mpx.c.
  817. (i386_mpx_names): Add MPX register names array.
  818. (i386_bnd_names): Add bnd pseudo register names array.
  819. (i386_bndr_regnum_p): Lookup register numbers for bnd raw
  820. registers.
  821. (i386_bndr_regnum_p): Lookup register numbers for bnd raw registers.
  822. (386_mpx_ctrl_regnum_p): Lookup register numbers for MPX control
  823. registers.
  824. (i386_bnd_type): New function.
  825. (i386_pseudo_register_type): Use i386_bnd_type for bnd pseudo
  826. register types.
  827. (i386_pseudo_register_read_into_value): Add bnd case.
  828. (i386_pseudo_register_write): Add bnd pseudo registers.
  829. (i386_register_reggroup_p): Add MPX register to the group all.
  830. (i386_validate_tdesc_p): Add MPX to the target description
  831. validation.
  832. (i386_pseudo_register_name): Add bnd pseudo registers.
  833. (i386_gdbarch_init): Add MPX for architecture initialization.
  834. (_initia_initialize_i386_tdep): Add mpx initialization.
  835. * i387-tdep.c (xsave_mpx_offset): New vector for MPX offsets on
  836. XSAVE buffer.
  837. (XSAVE_MPX_ADDR): New macro.
  838. (i387_supply_xsave): Add MPX case.
  839. (i387_collect_xsave): Add MPX case.
  840. * i387-tdep.h (I387_BND0R_REGNUM): New macro.
  841. (I387_BNDCFGU_REGNUM): New macro.
  842. (I387_NUM_MPX_REGS): New macro.
  843. (I387_NUM_BND_REGS): New macro.
  844. (I387_NUM_MPX_CTRL_REGS): New macro.
  845. (I387_MPXEND_REGNUM): New macro.
  846. * common/i386-xstate.h (I386_XSTATE_BNDREGS): New macro.
  847. (I386_XSTATE_BNDCFG): Likewise.
  848. (I386_XSTATE_MPX_MASK): Likewise.
  849. (I386_XSTATE_ALL_MASK): New macro represents flags for all states.
  850. (I386_XSTATE_BNDREGS_SIZE): New macro.
  851. (I386_XSTATE_BNDCFG_SIZE): Likewise.
  852. (I386_XSTATE_SIZE): Adapt for MPX.
  853. (I386_XSTATE_MAX_SIZE): Likewise.
  854. 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
  855. * features/i386/Makefile: Adapts for using MPX registers.
  856. * features/i386/32bit-mpx.xml: New file.
  857. * features/i386/64bit-mpx.xml: Likewise.
  858. * features/i386/amd64-mpx-linux.c: Likewise.
  859. * features/i386/amd64-mpx-linux.xml: Likewise.
  860. * features/i386/amd64-mpx.c: Likewise.
  861. * features/i386/amd64-mpx.xml: Likewise.
  862. * features/i386/i386-mpx-linux.c: Likewise.
  863. * features/i386/i386-mpx-linux.xml: Likewise.
  864. * features/i386/i386-mpx.c: Likewise.
  865. * features/i386/i386-mpx.xml: Likewise.
  866. * regformats/i386/amd64-mpx-linux.dat: New file.
  867. * regformats/i386/amd64-mpx.dat: Likewise.
  868. * regformats/i386/i386-mpx-linux.dat: Likewise.
  869. * regformats/i386/i386-mpx.dat: Likewise.
  870. 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
  871. * target-descriptions.c (maint_print_maint_print_c_tdesc_cmd):
  872. Modified logic of creating a bitfield to be in sync with
  873. tdesc_gdb_type.
  874. 2013-11-20 Will Newton <will.newton@linaro.org>
  875. * arm-tdep.c (arm_get_next_pc): Remove "Infinite loop detected"
  876. error message.
  877. 2013-11-20 Yao Qi <yao@codesourcery.com>
  878. * progspace.h (struct address_space_data): Declare.
  879. * target-dcache.c: Include "progspace.h".
  880. (target_dache): Remove.
  881. (target_dcache_aspace_key): New.
  882. (target_dcache_cleanup): New function.
  883. (target_dcache_init_p): Get data through
  884. target_dcache_aspace_key.
  885. (target_dcache_invalidate): Likewise.
  886. (target_dcache_get): Likewise.
  887. (target_dcache_get_or_init): Likewise.
  888. (_initialize_target_dcache): Initialize
  889. target_dcache_aspace_key.
  890. 2013-11-20 Yao Qi <yao@codesourcery.com>
  891. * progspace.c (struct address_space): Update comments.
  892. <REGISTRY_FIELDS>: New fields.
  893. DEFINE_REGISTRY for address_space.
  894. (new_address_space): Call address_space_alloc_data.
  895. (free_address_space): Call address_space_free_data.
  896. * progspace.h: Use DECLARE_REGISTRY.
  897. 2013-11-20 Yao Qi <yao@codesourcery.com>
  898. * Makefile.in (SFILES):Add target-dcache.c.
  899. (HFILES_NO_SRCDIR): Add target-dcache.h.
  900. (COMMON_OBS): Add target-dcache.o.
  901. * dcache.c: Remove inclusion to "target.h". Include
  902. "target-dcache.h".
  903. * memattr.c: Include "target-dcache.h".
  904. * top.c: Likewise.
  905. * tracepoint.c: Likewise.
  906. * target.c: (stack_cache_enabled_p_1): Move to
  907. target-dcache.c.
  908. (stack_cache_enabled_p): Likewise.
  909. (set_stack_cache_enabled_p): Likewise.
  910. (show_stack_cache_enabled_p): Likewise.
  911. (target_dcache, target_dcache_init_p): Likewise.
  912. (target_dcache_invalidate): Likewise.
  913. (target_dcache_get, target_dcache_get_or_init): Likewise.
  914. (memory_xfer_partial_1): Call function stack_cache_enabled.
  915. (initialize_target): Move code to target-dcache.c.
  916. * target.h (target_dcache_invalidate): Move to
  917. target-dcache.h.
  918. (target_dcache_get): Likewise.
  919. * target-dcache.c: New.
  920. * target-dcache.h: New.
  921. 2013-11-20 Yao Qi <yao@codesourcery.com>
  922. * target.c (memory_xfer_partial_1): Update 'target_dcache' if
  923. it is initialized.
  924. 2013-11-20 Yao Qi <yao@codesourcery.com>
  925. * dcache.c (last_cache): Remove.
  926. (dcache_free, dcache_init): Update.
  927. (dcache_update):
  928. (dcache_print_line): Add parameter 'dcache'. Replace
  929. 'target_dcache' with 'dcache'.
  930. (dcache_info): Move code to dcache_info_1. Call
  931. 'dcache_info_1'.
  932. (dcache_info_1): New function.
  933. (set_dcache_size): Call target_dcache_invalidate.
  934. (set_dcache_line_size): Call target_dcache_invalidate.
  935. * target.c (target_dcache_init_p): New function.
  936. (target_dcache_invalidate): Check target_dcache_init_p first.
  937. (target_dcache_get, target_dcache_get_or_init): New function.
  938. (memory_xfer_partial_1): Adjust.
  939. (initialize_target): Don't initialize 'target_dcache'.
  940. * target.h (struct dcache_struct): Declare.
  941. (target_dcache_get): Declare.
  942. 2013-11-19 Yao Qi <yao@codesourcery.com>
  943. * varobj.c (varobj_get_type): Fix typo.
  944. 2013-11-19 Joel Brobecker <brobecker@adacore.com>
  945. * python/py-value.c (is_intlike): Add TYPE_CODE_RANGE handling.
  946. 2013-11-19 Joel Brobecker <brobecker@adacore.com>
  947. * contrib/ari/gdb_ari.sh: Remove checks for "dirent.h" and
  948. "stat.h".
  949. 2013-11-18 Tom Tromey <tromey@redhat.com>
  950. * common/gdb_stat.h: Remove.
  951. * ada-lang.c: Use sys/stat.h, not gdb_stat.h.
  952. * common/filestuff.c: Use sys/stat.h, not gdb_stat.h.
  953. * common/linux-osdata.c: Use sys/stat.h, not gdb_stat.h.
  954. * corefile.c: Use sys/stat.h, not gdb_stat.h.
  955. * ctf.c: Use sys/stat.h, not gdb_stat.h.
  956. * darwin-nat.c: Use sys/stat.h, not gdb_stat.h.
  957. * dbxread.c: Use sys/stat.h, not gdb_stat.h.
  958. * dwarf2read.c: Use sys/stat.h, not gdb_stat.h.
  959. * exec.c: Use sys/stat.h, not gdb_stat.h.
  960. * gdbserver/linux-low.c: Use sys/stat.h, not gdb_stat.h.
  961. * gdbserver/remote-utils.c: Use sys/stat.h, not gdb_stat.h.
  962. * inf-child.c: Use sys/stat.h, not gdb_stat.h.
  963. * jit.c: Use sys/stat.h, not gdb_stat.h.
  964. * linux-nat.c: Use sys/stat.h, not gdb_stat.h.
  965. * m68klinux-nat.c: Use sys/stat.h, not gdb_stat.h.
  966. * main.c: Use sys/stat.h, not gdb_stat.h.
  967. * mdebugread.c: Use sys/stat.h, not gdb_stat.h.
  968. * mi/mi-cmd-env.c: Use sys/stat.h, not gdb_stat.h.
  969. * nto-tdep.c: Use sys/stat.h, not gdb_stat.h.
  970. * objfiles.c: Use sys/stat.h, not gdb_stat.h.
  971. * procfs.c: Use sys/stat.h, not gdb_stat.h.
  972. * remote-fileio.c: Use sys/stat.h, not gdb_stat.h.
  973. * remote-mips.c: Use sys/stat.h, not gdb_stat.h.
  974. * remote.c: Use sys/stat.h, not gdb_stat.h.
  975. * rs6000-nat.c: Use sys/stat.h, not gdb_stat.h.
  976. * sol-thread.c: Use sys/stat.h, not gdb_stat.h.
  977. * solib-spu.c: Use sys/stat.h, not gdb_stat.h.
  978. * source.c: Use sys/stat.h, not gdb_stat.h.
  979. * symfile.c: Use sys/stat.h, not gdb_stat.h.
  980. * symmisc.c: Use sys/stat.h, not gdb_stat.h.
  981. * symtab.c: Use sys/stat.h, not gdb_stat.h.
  982. * top.c: Use sys/stat.h, not gdb_stat.h.
  983. * xcoffread.c: Use sys/stat.h, not gdb_stat.h.
  984. 2013-11-18 Tom Tromey <tromey@redhat.com>
  985. * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
  986. sys_stat.
  987. * gnulib/aclocal.m4: Update.
  988. * gnulib/config.in: Update.
  989. * gnulib/configure: Update.
  990. * gnulib/import/Makefile.am: Update.
  991. * gnulib/import/Makefile.in: Update.
  992. * gnulib/import/m4/gnulib-cache.m4: Update.
  993. * gnulib/import/m4/gnulib-comp.m4: Update.
  994. * gnulib/import/m4/sys_stat_h.m4: New.
  995. * gnulib/import/m4/time_h.m4: New.
  996. * gnulib/import/sys_stat.in.h: New.
  997. * gnulib/import/time.in.h: New.
  998. 2013-11-18 Tom Tromey <tromey@redhat.com>
  999. * configure: Rebuild.
  1000. * configure.ac: Remove check of HAVE_SYS_TYPES_H.
  1001. 2013-11-18 Tom Tromey <tromey@redhat.com>
  1002. * configure: Rebuild.
  1003. * configure.ac: Don't check for unistd.h.
  1004. 2013-11-18 Tom Tromey <tromey@redhat.com>
  1005. * configure: Rebuild.
  1006. * configure.ac: Don't check for stdlib.h
  1007. * defs.h: Include stdlib.h unconditionally.
  1008. 2013-11-18 Tom Tromey <tromey@redhat.com>
  1009. * config.in: Rebuild.
  1010. * configure: Rebuild.
  1011. * configure.ac: Don't check for stddef.h.
  1012. * defs.h: Unconditionally include stddef.h. Remove duplicate
  1013. inclusion.
  1014. 2013-11-18 Tom Tromey <tromey@redhat.com>
  1015. * common/common.m4 (GDB_AC_COMMON): Don't use AC_HEADER_DIRENT.
  1016. * common/gdb_dirent.h: Remove.
  1017. * common/filestuff.c: Use dirent.h.
  1018. * common/linux-osdata.c: Use dirent.h.
  1019. (NAMELEN): Define.
  1020. * config.in: Rebuild.
  1021. * configure: Rebuild.
  1022. * configure.ac: Don't use AC_HEADER_DIRENT.
  1023. * linux-fork.c: Use dirent.h
  1024. * linux-nat.c: Use dirent.h.
  1025. * nto-procfs.c: Use dirent.h.
  1026. * procfs.c: Use dirent.h.
  1027. 2013-11-18 Tom Tromey <tromey@redhat.com>
  1028. * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirent.
  1029. * gnulib/aclocal.m4: Update.
  1030. * gnulib/config.in: Update.
  1031. * gnulib/configure: Update.
  1032. * gnulib/import/Makefile.am: Update.
  1033. * gnulib/import/Makefile.in: Update.
  1034. * gnulib/import/dirent.in.h: New.
  1035. * gnulib/import/m4/dirent_h.m4: New.
  1036. * gnulib/import/m4/gnulib-cache.m4: Update.
  1037. * gnulib/import/m4/gnulib-comp.m4: Update.
  1038. 2013-11-18 Tom Tromey <tromey@redhat.com>
  1039. * configure: Rebuild.
  1040. * common/common.m4 (GDB_AC_COMMON): Don't check for string.h or
  1041. strings.h.
  1042. 2013-11-18 Tom Tromey <tromey@redhat.com>
  1043. * common/gdb_string.h: Remove.
  1044. * aarch64-tdep.c: Use string.h, not gdb_string.h.
  1045. * ada-exp.y: Use string.h, not gdb_string.h.
  1046. * ada-lang.c: Use string.h, not gdb_string.h.
  1047. * ada-lex.l: Use string.h, not gdb_string.h.
  1048. * ada-typeprint.c: Use string.h, not gdb_string.h.
  1049. * ada-valprint.c: Use string.h, not gdb_string.h.
  1050. * aix-thread.c: Use string.h, not gdb_string.h.
  1051. * alpha-linux-tdep.c: Use string.h, not gdb_string.h.
  1052. * alpha-mdebug-tdep.c: Use string.h, not gdb_string.h.
  1053. * alpha-nat.c: Use string.h, not gdb_string.h.
  1054. * alpha-osf1-tdep.c: Use string.h, not gdb_string.h.
  1055. * alpha-tdep.c: Use string.h, not gdb_string.h.
  1056. * alphanbsd-tdep.c: Use string.h, not gdb_string.h.
  1057. * amd64-dicos-tdep.c: Use string.h, not gdb_string.h.
  1058. * amd64-linux-nat.c: Use string.h, not gdb_string.h.
  1059. * amd64-linux-tdep.c: Use string.h, not gdb_string.h.
  1060. * amd64-nat.c: Use string.h, not gdb_string.h.
  1061. * amd64-sol2-tdep.c: Use string.h, not gdb_string.h.
  1062. * amd64fbsd-tdep.c: Use string.h, not gdb_string.h.
  1063. * amd64obsd-tdep.c: Use string.h, not gdb_string.h.
  1064. * arch-utils.c: Use string.h, not gdb_string.h.
  1065. * arm-linux-nat.c: Use string.h, not gdb_string.h.
  1066. * arm-linux-tdep.c: Use string.h, not gdb_string.h.
  1067. * arm-tdep.c: Use string.h, not gdb_string.h.
  1068. * arm-wince-tdep.c: Use string.h, not gdb_string.h.
  1069. * armbsd-tdep.c: Use string.h, not gdb_string.h.
  1070. * armnbsd-nat.c: Use string.h, not gdb_string.h.
  1071. * armnbsd-tdep.c: Use string.h, not gdb_string.h.
  1072. * armobsd-tdep.c: Use string.h, not gdb_string.h.
  1073. * avr-tdep.c: Use string.h, not gdb_string.h.
  1074. * ax-gdb.c: Use string.h, not gdb_string.h.
  1075. * ax-general.c: Use string.h, not gdb_string.h.
  1076. * bcache.c: Use string.h, not gdb_string.h.
  1077. * bfin-tdep.c: Use string.h, not gdb_string.h.
  1078. * breakpoint.c: Use string.h, not gdb_string.h.
  1079. * build-id.c: Use string.h, not gdb_string.h.
  1080. * buildsym.c: Use string.h, not gdb_string.h.
  1081. * c-exp.y: Use string.h, not gdb_string.h.
  1082. * c-lang.c: Use string.h, not gdb_string.h.
  1083. * c-typeprint.c: Use string.h, not gdb_string.h.
  1084. * c-valprint.c: Use string.h, not gdb_string.h.
  1085. * charset.c: Use string.h, not gdb_string.h.
  1086. * cli-out.c: Use string.h, not gdb_string.h.
  1087. * cli/cli-cmds.c: Use string.h, not gdb_string.h.
  1088. * cli/cli-decode.c: Use string.h, not gdb_string.h.
  1089. * cli/cli-dump.c: Use string.h, not gdb_string.h.
  1090. * cli/cli-interp.c: Use string.h, not gdb_string.h.
  1091. * cli/cli-logging.c: Use string.h, not gdb_string.h.
  1092. * cli/cli-script.c: Use string.h, not gdb_string.h.
  1093. * cli/cli-setshow.c: Use string.h, not gdb_string.h.
  1094. * cli/cli-utils.c: Use string.h, not gdb_string.h.
  1095. * coffread.c: Use string.h, not gdb_string.h.
  1096. * common/common-utils.c: Use string.h, not gdb_string.h.
  1097. * common/filestuff.c: Use string.h, not gdb_string.h.
  1098. * common/linux-procfs.c: Use string.h, not gdb_string.h.
  1099. * common/linux-ptrace.c: Use string.h, not gdb_string.h.
  1100. * common/signals.c: Use string.h, not gdb_string.h.
  1101. * common/vec.h: Use string.h, not gdb_string.h.
  1102. * core-regset.c: Use string.h, not gdb_string.h.
  1103. * corefile.c: Use string.h, not gdb_string.h.
  1104. * corelow.c: Use string.h, not gdb_string.h.
  1105. * cp-abi.c: Use string.h, not gdb_string.h.
  1106. * cp-support.c: Use string.h, not gdb_string.h.
  1107. * cp-valprint.c: Use string.h, not gdb_string.h.
  1108. * cris-tdep.c: Use string.h, not gdb_string.h.
  1109. * d-lang.c: Use string.h, not gdb_string.h.
  1110. * dbxread.c: Use string.h, not gdb_string.h.
  1111. * dcache.c: Use string.h, not gdb_string.h.
  1112. * demangle.c: Use string.h, not gdb_string.h.
  1113. * dicos-tdep.c: Use string.h, not gdb_string.h.
  1114. * disasm.c: Use string.h, not gdb_string.h.
  1115. * doublest.c: Use string.h, not gdb_string.h.
  1116. * dsrec.c: Use string.h, not gdb_string.h.
  1117. * dummy-frame.c: Use string.h, not gdb_string.h.
  1118. * dwarf2-frame.c: Use string.h, not gdb_string.h.
  1119. * dwarf2loc.c: Use string.h, not gdb_string.h.
  1120. * dwarf2read.c: Use string.h, not gdb_string.h.
  1121. * elfread.c: Use string.h, not gdb_string.h.
  1122. * environ.c: Use string.h, not gdb_string.h.
  1123. * eval.c: Use string.h, not gdb_string.h.
  1124. * event-loop.c: Use string.h, not gdb_string.h.
  1125. * exceptions.c: Use string.h, not gdb_string.h.
  1126. * exec.c: Use string.h, not gdb_string.h.
  1127. * expprint.c: Use string.h, not gdb_string.h.
  1128. * f-exp.y: Use string.h, not gdb_string.h.
  1129. * f-lang.c: Use string.h, not gdb_string.h.
  1130. * f-typeprint.c: Use string.h, not gdb_string.h.
  1131. * f-valprint.c: Use string.h, not gdb_string.h.
  1132. * fbsd-nat.c: Use string.h, not gdb_string.h.
  1133. * findcmd.c: Use string.h, not gdb_string.h.
  1134. * findvar.c: Use string.h, not gdb_string.h.
  1135. * fork-child.c: Use string.h, not gdb_string.h.
  1136. * frame.c: Use string.h, not gdb_string.h.
  1137. * frv-linux-tdep.c: Use string.h, not gdb_string.h.
  1138. * frv-tdep.c: Use string.h, not gdb_string.h.
  1139. * gdb.c: Use string.h, not gdb_string.h.
  1140. * gdb_bfd.c: Use string.h, not gdb_string.h.
  1141. * gdbarch.c: Use string.h, not gdb_string.h.
  1142. * gdbtypes.c: Use string.h, not gdb_string.h.
  1143. * gnu-nat.c: Use string.h, not gdb_string.h.
  1144. * gnu-v2-abi.c: Use string.h, not gdb_string.h.
  1145. * gnu-v3-abi.c: Use string.h, not gdb_string.h.
  1146. * go-exp.y: Use string.h, not gdb_string.h.
  1147. * go-lang.c: Use string.h, not gdb_string.h.
  1148. * go32-nat.c: Use string.h, not gdb_string.h.
  1149. * hppa-hpux-tdep.c: Use string.h, not gdb_string.h.
  1150. * hppa-linux-nat.c: Use string.h, not gdb_string.h.
  1151. * hppanbsd-tdep.c: Use string.h, not gdb_string.h.
  1152. * hppaobsd-tdep.c: Use string.h, not gdb_string.h.
  1153. * i386-cygwin-tdep.c: Use string.h, not gdb_string.h.
  1154. * i386-dicos-tdep.c: Use string.h, not gdb_string.h.
  1155. * i386-linux-nat.c: Use string.h, not gdb_string.h.
  1156. * i386-linux-tdep.c: Use string.h, not gdb_string.h.
  1157. * i386-nto-tdep.c: Use string.h, not gdb_string.h.
  1158. * i386-sol2-tdep.c: Use string.h, not gdb_string.h.
  1159. * i386-tdep.c: Use string.h, not gdb_string.h.
  1160. * i386bsd-tdep.c: Use string.h, not gdb_string.h.
  1161. * i386gnu-nat.c: Use string.h, not gdb_string.h.
  1162. * i386nbsd-tdep.c: Use string.h, not gdb_string.h.
  1163. * i386obsd-tdep.c: Use string.h, not gdb_string.h.
  1164. * i387-tdep.c: Use string.h, not gdb_string.h.
  1165. * ia64-libunwind-tdep.c: Use string.h, not gdb_string.h.
  1166. * ia64-linux-nat.c: Use string.h, not gdb_string.h.
  1167. * inf-child.c: Use string.h, not gdb_string.h.
  1168. * inf-ptrace.c: Use string.h, not gdb_string.h.
  1169. * inf-ttrace.c: Use string.h, not gdb_string.h.
  1170. * infcall.c: Use string.h, not gdb_string.h.
  1171. * infcmd.c: Use string.h, not gdb_string.h.
  1172. * inflow.c: Use string.h, not gdb_string.h.
  1173. * infrun.c: Use string.h, not gdb_string.h.
  1174. * interps.c: Use string.h, not gdb_string.h.
  1175. * iq2000-tdep.c: Use string.h, not gdb_string.h.
  1176. * irix5-nat.c: Use string.h, not gdb_string.h.
  1177. * jv-exp.y: Use string.h, not gdb_string.h.
  1178. * jv-lang.c: Use string.h, not gdb_string.h.
  1179. * jv-typeprint.c: Use string.h, not gdb_string.h.
  1180. * jv-valprint.c: Use string.h, not gdb_string.h.
  1181. * language.c: Use string.h, not gdb_string.h.
  1182. * linux-fork.c: Use string.h, not gdb_string.h.
  1183. * linux-nat.c: Use string.h, not gdb_string.h.
  1184. * lm32-tdep.c: Use string.h, not gdb_string.h.
  1185. * m2-exp.y: Use string.h, not gdb_string.h.
  1186. * m2-typeprint.c: Use string.h, not gdb_string.h.
  1187. * m32c-tdep.c: Use string.h, not gdb_string.h.
  1188. * m32r-linux-nat.c: Use string.h, not gdb_string.h.
  1189. * m32r-linux-tdep.c: Use string.h, not gdb_string.h.
  1190. * m32r-rom.c: Use string.h, not gdb_string.h.
  1191. * m32r-tdep.c: Use string.h, not gdb_string.h.
  1192. * m68hc11-tdep.c: Use string.h, not gdb_string.h.
  1193. * m68k-tdep.c: Use string.h, not gdb_string.h.
  1194. * m68kbsd-tdep.c: Use string.h, not gdb_string.h.
  1195. * m68klinux-nat.c: Use string.h, not gdb_string.h.
  1196. * m68klinux-tdep.c: Use string.h, not gdb_string.h.
  1197. * m88k-tdep.c: Use string.h, not gdb_string.h.
  1198. * macrocmd.c: Use string.h, not gdb_string.h.
  1199. * main.c: Use string.h, not gdb_string.h.
  1200. * mdebugread.c: Use string.h, not gdb_string.h.
  1201. * mem-break.c: Use string.h, not gdb_string.h.
  1202. * memattr.c: Use string.h, not gdb_string.h.
  1203. * memory-map.c: Use string.h, not gdb_string.h.
  1204. * mep-tdep.c: Use string.h, not gdb_string.h.
  1205. * mi/mi-cmd-break.c: Use string.h, not gdb_string.h.
  1206. * mi/mi-cmd-disas.c: Use string.h, not gdb_string.h.
  1207. * mi/mi-cmd-env.c: Use string.h, not gdb_string.h.
  1208. * mi/mi-cmd-stack.c: Use string.h, not gdb_string.h.
  1209. * mi/mi-cmd-var.c: Use string.h, not gdb_string.h.
  1210. * mi/mi-cmds.c: Use string.h, not gdb_string.h.
  1211. * mi/mi-console.c: Use string.h, not gdb_string.h.
  1212. * mi/mi-getopt.c: Use string.h, not gdb_string.h.
  1213. * mi/mi-interp.c: Use string.h, not gdb_string.h.
  1214. * mi/mi-main.c: Use string.h, not gdb_string.h.
  1215. * mi/mi-parse.c: Use string.h, not gdb_string.h.
  1216. * microblaze-rom.c: Use string.h, not gdb_string.h.
  1217. * microblaze-tdep.c: Use string.h, not gdb_string.h.
  1218. * mingw-hdep.c: Use string.h, not gdb_string.h.
  1219. * minidebug.c: Use string.h, not gdb_string.h.
  1220. * minsyms.c: Use string.h, not gdb_string.h.
  1221. * mips-irix-tdep.c: Use string.h, not gdb_string.h.
  1222. * mips-linux-tdep.c: Use string.h, not gdb_string.h.
  1223. * mips-tdep.c: Use string.h, not gdb_string.h.
  1224. * mips64obsd-tdep.c: Use string.h, not gdb_string.h.
  1225. * mipsnbsd-tdep.c: Use string.h, not gdb_string.h.
  1226. * mipsread.c: Use string.h, not gdb_string.h.
  1227. * mn10300-linux-tdep.c: Use string.h, not gdb_string.h.
  1228. * mn10300-tdep.c: Use string.h, not gdb_string.h.
  1229. * monitor.c: Use string.h, not gdb_string.h.
  1230. * moxie-tdep.c: Use string.h, not gdb_string.h.
  1231. * mt-tdep.c: Use string.h, not gdb_string.h.
  1232. * nbsd-tdep.c: Use string.h, not gdb_string.h.
  1233. * nios2-linux-tdep.c: Use string.h, not gdb_string.h.
  1234. * nto-procfs.c: Use string.h, not gdb_string.h.
  1235. * nto-tdep.c: Use string.h, not gdb_string.h.
  1236. * objc-lang.c: Use string.h, not gdb_string.h.
  1237. * objfiles.c: Use string.h, not gdb_string.h.
  1238. * opencl-lang.c: Use string.h, not gdb_string.h.
  1239. * osabi.c: Use string.h, not gdb_string.h.
  1240. * osdata.c: Use string.h, not gdb_string.h.
  1241. * p-exp.y: Use string.h, not gdb_string.h.
  1242. * p-lang.c: Use string.h, not gdb_string.h.
  1243. * p-typeprint.c: Use string.h, not gdb_string.h.
  1244. * parse.c: Use string.h, not gdb_string.h.
  1245. * posix-hdep.c: Use string.h, not gdb_string.h.
  1246. * ppc-linux-nat.c: Use string.h, not gdb_string.h.
  1247. * ppc-sysv-tdep.c: Use string.h, not gdb_string.h.
  1248. * ppcfbsd-tdep.c: Use string.h, not gdb_string.h.
  1249. * ppcnbsd-tdep.c: Use string.h, not gdb_string.h.
  1250. * ppcobsd-tdep.c: Use string.h, not gdb_string.h.
  1251. * printcmd.c: Use string.h, not gdb_string.h.
  1252. * procfs.c: Use string.h, not gdb_string.h.
  1253. * prologue-value.c: Use string.h, not gdb_string.h.
  1254. * python/py-auto-load.c: Use string.h, not gdb_string.h.
  1255. * python/py-gdb-readline.c: Use string.h, not gdb_string.h.
  1256. * ravenscar-thread.c: Use string.h, not gdb_string.h.
  1257. * regcache.c: Use string.h, not gdb_string.h.
  1258. * registry.c: Use string.h, not gdb_string.h.
  1259. * remote-fileio.c: Use string.h, not gdb_string.h.
  1260. * remote-m32r-sdi.c: Use string.h, not gdb_string.h.
  1261. * remote-mips.c: Use string.h, not gdb_string.h.
  1262. * remote-sim.c: Use string.h, not gdb_string.h.
  1263. * remote.c: Use string.h, not gdb_string.h.
  1264. * reverse.c: Use string.h, not gdb_string.h.
  1265. * rs6000-aix-tdep.c: Use string.h, not gdb_string.h.
  1266. * ser-base.c: Use string.h, not gdb_string.h.
  1267. * ser-go32.c: Use string.h, not gdb_string.h.
  1268. * ser-mingw.c: Use string.h, not gdb_string.h.
  1269. * ser-pipe.c: Use string.h, not gdb_string.h.
  1270. * ser-tcp.c: Use string.h, not gdb_string.h.
  1271. * ser-unix.c: Use string.h, not gdb_string.h.
  1272. * serial.c: Use string.h, not gdb_string.h.
  1273. * sh-tdep.c: Use string.h, not gdb_string.h.
  1274. * sh64-tdep.c: Use string.h, not gdb_string.h.
  1275. * shnbsd-tdep.c: Use string.h, not gdb_string.h.
  1276. * skip.c: Use string.h, not gdb_string.h.
  1277. * sol-thread.c: Use string.h, not gdb_string.h.
  1278. * solib-dsbt.c: Use string.h, not gdb_string.h.
  1279. * solib-frv.c: Use string.h, not gdb_string.h.
  1280. * solib-osf.c: Use string.h, not gdb_string.h.
  1281. * solib-spu.c: Use string.h, not gdb_string.h.
  1282. * solib-target.c: Use string.h, not gdb_string.h.
  1283. * solib.c: Use string.h, not gdb_string.h.
  1284. * somread.c: Use string.h, not gdb_string.h.
  1285. * source.c: Use string.h, not gdb_string.h.
  1286. * sparc-nat.c: Use string.h, not gdb_string.h.
  1287. * sparc-sol2-tdep.c: Use string.h, not gdb_string.h.
  1288. * sparc-tdep.c: Use string.h, not gdb_string.h.
  1289. * sparc64-tdep.c: Use string.h, not gdb_string.h.
  1290. * sparc64fbsd-tdep.c: Use string.h, not gdb_string.h.
  1291. * sparc64nbsd-tdep.c: Use string.h, not gdb_string.h.
  1292. * sparcnbsd-tdep.c: Use string.h, not gdb_string.h.
  1293. * spu-linux-nat.c: Use string.h, not gdb_string.h.
  1294. * spu-multiarch.c: Use string.h, not gdb_string.h.
  1295. * spu-tdep.c: Use string.h, not gdb_string.h.
  1296. * stabsread.c: Use string.h, not gdb_string.h.
  1297. * stack.c: Use string.h, not gdb_string.h.
  1298. * std-regs.c: Use string.h, not gdb_string.h.
  1299. * symfile.c: Use string.h, not gdb_string.h.
  1300. * symmisc.c: Use string.h, not gdb_string.h.
  1301. * symtab.c: Use string.h, not gdb_string.h.
  1302. * target.c: Use string.h, not gdb_string.h.
  1303. * thread.c: Use string.h, not gdb_string.h.
  1304. * tilegx-linux-nat.c: Use string.h, not gdb_string.h.
  1305. * tilegx-tdep.c: Use string.h, not gdb_string.h.
  1306. * top.c: Use string.h, not gdb_string.h.
  1307. * tracepoint.c: Use string.h, not gdb_string.h.
  1308. * tui/tui-command.c: Use string.h, not gdb_string.h.
  1309. * tui/tui-data.c: Use string.h, not gdb_string.h.
  1310. * tui/tui-disasm.c: Use string.h, not gdb_string.h.
  1311. * tui/tui-file.c: Use string.h, not gdb_string.h.
  1312. * tui/tui-layout.c: Use string.h, not gdb_string.h.
  1313. * tui/tui-out.c: Use string.h, not gdb_string.h.
  1314. * tui/tui-regs.c: Use string.h, not gdb_string.h.
  1315. * tui/tui-source.c: Use string.h, not gdb_string.h.
  1316. * tui/tui-stack.c: Use string.h, not gdb_string.h.
  1317. * tui/tui-win.c: Use string.h, not gdb_string.h.
  1318. * tui/tui-windata.c: Use string.h, not gdb_string.h.
  1319. * tui/tui-winsource.c: Use string.h, not gdb_string.h.
  1320. * typeprint.c: Use string.h, not gdb_string.h.
  1321. * ui-file.c: Use string.h, not gdb_string.h.
  1322. * ui-out.c: Use string.h, not gdb_string.h.
  1323. * user-regs.c: Use string.h, not gdb_string.h.
  1324. * utils.c: Use string.h, not gdb_string.h.
  1325. * v850-tdep.c: Use string.h, not gdb_string.h.
  1326. * valarith.c: Use string.h, not gdb_string.h.
  1327. * valops.c: Use string.h, not gdb_string.h.
  1328. * valprint.c: Use string.h, not gdb_string.h.
  1329. * value.c: Use string.h, not gdb_string.h.
  1330. * varobj.c: Use string.h, not gdb_string.h.
  1331. * vax-tdep.c: Use string.h, not gdb_string.h.
  1332. * vaxnbsd-tdep.c: Use string.h, not gdb_string.h.
  1333. * vaxobsd-tdep.c: Use string.h, not gdb_string.h.
  1334. * windows-nat.c: Use string.h, not gdb_string.h.
  1335. * xcoffread.c: Use string.h, not gdb_string.h.
  1336. * xml-support.c: Use string.h, not gdb_string.h.
  1337. * xstormy16-tdep.c: Use string.h, not gdb_string.h.
  1338. * xtensa-linux-nat.c: Use string.h, not gdb_string.h.
  1339. 2013-11-18 Tom Tromey <tromey@redhat.com>
  1340. * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strerror
  1341. and strstr.
  1342. * gnulib/aclocal.m4: Update.
  1343. * gnulib/config.in: Update.
  1344. * gnulib/configure: Update.
  1345. * gnulib/import/Makefile.am: Update.
  1346. * gnulib/import/Makefile.in: Update.
  1347. * gnulib/import/errno.in.h: New.
  1348. * gnulib/import/intprops.h: New.
  1349. * gnulib/import/m4/errno_h.m4: New.
  1350. * gnulib/import/m4/gnulib-cache.m4: Update.
  1351. * gnulib/import/m4/gnulib-comp.m4: Update.
  1352. * gnulib/import/m4/strerror.m4: New.
  1353. * gnulib/import/m4/strstr.m4: New.
  1354. * gnulib/import/m4/sys_socket_h.m4: New.
  1355. * gnulib/import/strerror-override.c: New.
  1356. * gnulib/import/strerror-override.h: New.
  1357. * gnulib/import/strerror.c: New.
  1358. * gnulib/import/strstr.c: New.
  1359. 2013-11-18 Tom Tromey <tromey@redhat.com>
  1360. * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Split into
  1361. multiple lines.
  1362. 2013-11-18 Jose E. Marchesi <jose.marchesi@oracle.com>
  1363. * sparc-tdep.c (sparc_is_annulled_branch_insn): New function.
  1364. * sparc-tdep.h: And its prototype.
  1365. * sparc64-linux-tdep.c (sparc64_linux_get_longjmp_target): New
  1366. function.
  1367. (sparc64_linux_init_abi): Register the get_longjmp_target hook.
  1368. 2013-11-18 Pedro Alves <palves@redhat.com>
  1369. * dwarf2-frame.c (read_addr_from_reg): Remove stale comment and
  1370. use unpack_pointer.
  1371. 2013-11-18 Joel Brobecker <brobecker@adacore.com>
  1372. * mi/mi-main.c (mi_cmd_list_features): Add "language-options"
  1373. to -list-features output.
  1374. 2013-11-17 Joel Brobecker <brobecker@adacore.com>
  1375. * dwarf2expr.h (struct dwarf_expr_context_funcs)
  1376. <read_addr_from_reg>: Renames "read_reg".
  1377. * dwarf2-frame.c (read_addr_from_reg): Renames "read_reg".
  1378. Adjust comment.
  1379. (dwarf2_frame_ctx_funcs, execute_stack_op, dwarf2_frame_cache):
  1380. Use read_addr_from_reg in place of read_reg.
  1381. * dwarf2expr.c (execute_stack_op): Use read_addr_from_reg
  1382. in place of read_reg.
  1383. * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Renames
  1384. dwarf_expr_read_reg.
  1385. (dwarf_expr_ctx_funcs): Replace dwarf_expr_read_reg
  1386. with dwarf_expr_read_addr_from_reg.
  1387. (needs_frame_read_addr_from_reg): Renames needs_frame_read_reg.
  1388. (needs_frame_ctx_funcs): Replace needs_frame_read_reg with
  1389. needs_frame_read_addr_from_reg.
  1390. 2013-11-15 Jan Kratochvil <jan.kratochvil@redhat.com>
  1391. * NEWS (Changes in GDB 7.5) (New commands) (explore): Fix typo.
  1392. 2013-11-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
  1393. * dwarf2loc.c (chain_candidate): Prevent invoking memcpy with
  1394. NULL.
  1395. 2013-11-15 Tom Tromey <tromey@redhat.com>
  1396. PR c++/16117:
  1397. * c-exp.y (lex_one_token): Add "is_quoted_name" argument.
  1398. (classify_name): Likewise. Prefer a field of "this" over a
  1399. filename.
  1400. (classify_inner_name, yylex): Update.
  1401. 2013-11-15 Joel Brobecker <brobecker@adacore.com>
  1402. * dwarf2expr.h (struct dwarf_expr_context_funcs) <read_reg>:
  1403. Extend the documentation a bit.
  1404. <get_reg_value>: New field.
  1405. * dwarf2loc.c (dwarf_expr_get_reg_value)
  1406. (needs_frame_get_reg_value): New functions.
  1407. (dwarf_expr_ctx_funcs, needs_frame_ctx_funcs): Add "get_reg_value"
  1408. callback.
  1409. * dwarf2-frame.c (get_reg_value): New function.
  1410. (dwarf2_frame_ctx_funcs): Add "get_reg_value" callback.
  1411. * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>:
  1412. Use new callback to compute result_val.
  1413. 2013-11-15 Alan Modra <amodra@gmail.com>
  1414. * ppc64-tdep.c (ppc64_plt_entry_point): Renamed from..
  1415. (ppc64_desc_entry_point): ..this. Update comments here and at
  1416. call points.
  1417. (ppc64_standard_linkage1, ppc64_standard_linkage2,
  1418. ppc64_standard_linkage3): Update comments.
  1419. (ppc64_standard_linkage4, ppc64_standard_linkage5,
  1420. (ppc64_standard_linkage6, ppc64_standard_linkage7): New insn
  1421. patterns.
  1422. (ppc64_standard_linkage4_target): New function.
  1423. (ppc64_skip_trampoline_code): Skip ELFv2 patterns too.
  1424. * rs6000-tdep.c (skip_prologue): Skip ELFv2 r2 setup. Correct
  1425. nop match. Fix comment wrap.
  1426. 2013-11-14 Pedro Alves <palves@redhat.com>
  1427. * infrun.c (handle_signal_stop): Move STOP_QUIETLY,
  1428. STOP_QUIETLY_REMOTE and 'stop_after_trap' handling earlier.
  1429. 2013-11-14 Pedro Alves <palves@redhat.com>
  1430. * infrun.c (struct execution_control_state)
  1431. <stepped_after_stopped_by_watchpoint>: New field.
  1432. (get_inferior_stop_soon): New function.
  1433. (handle_inferior_event): 'stepped_after_stopped_by_watchpoint' was
  1434. moved to struct execution_control_state -- adjust. Use
  1435. get_inferior_stop_soon. Split TARGET_WAITKIND_STOPPED handling to
  1436. new function.
  1437. (handle_signal_stop): New function, factored out from
  1438. handle_inferior_event.
  1439. 2013-11-14 Pedro Alves <palves@redhat.com>
  1440. * break-catch-sig.c (signal_catchpoint_explains_signal): Adjust to
  1441. return a boolean.
  1442. * breakpoint.c (bpstat_explains_signal): Adjust to return a
  1443. boolean.
  1444. (explains_signal_watchpoint, base_breakpoint_explains_signal):
  1445. Adjust to return a boolean.
  1446. * breakpoint.h (enum bpstat_signal_value): Delete.
  1447. (struct breakpoint_ops) <explains_signal>: New returns a boolean.
  1448. (bpstat_explains_signal): Likewise.
  1449. * infrun.c (handle_inferior_event) <random signal checks>:
  1450. bpstat_explains_signal now returns a boolean - adjust. No longer
  1451. consider hiding signals.
  1452. 2013-11-14 Pedro Alves <palves@redhat.com>
  1453. * breakpoint.c (bpstat_explains_signal) <Moribund locations>:
  1454. Return BPSTAT_SIGNAL_PASS instead of BPSTAT_SIGNAL_HIDE.
  1455. (explains_signal_watchpoint): Return BPSTAT_SIGNAL_PASS instead of
  1456. BPSTAT_SIGNAL_HIDE.
  1457. (base_breakpoint_explains_signal): Return BPSTAT_SIGNAL_PASS
  1458. instead of BPSTAT_SIGNAL_HIDE.
  1459. * infrun.c (handle_inferior_event): Rework random signal checks.
  1460. 2013-11-14 Pedro Alves <palves@redhat.com>
  1461. * infrun.c (struct execution_control_state): Remove
  1462. 'random_signal' field.
  1463. (handle_syscall_event): Use bpstat_causes_stop instead of
  1464. bpstat_explains_signal. Don't set ecs->random_signal.
  1465. (handle_inferior_event): New 'random_signal' local.
  1466. <TARGET_WAITKIND_FORKED, TARGET_WAITKIND_VFORKED,
  1467. TARGET_WAITKIND_EXECD>: Use bpstat_causes_stop instead of
  1468. bpstat_explains_signal. Don't set ecs->random_signal.
  1469. <TARGET_WAITKIND_STOPPED>: Adjust to use local instead of
  1470. ecs->random_signal.
  1471. 2013-11-14 Pedro Alves <palves@redhat.com>
  1472. * infrun.c (handle_inferior_event): Move comment from the
  1473. function's body to the function's description, adjusted.
  1474. 2013-11-14 Pedro Alves <palves@redhat.com>
  1475. * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
  1476. Handle STOP_QUIETLY_NO_SIGSTOP and STOP_QUIETLY_REMOTE here.
  1477. Assert we never fall through out of the TARGET_WAITKIND_LOADED
  1478. case.
  1479. 2013-11-14 Tom Tromey <tromey@redhat.com>
  1480. * python/py-linetable.c (ltpy_has_line)
  1481. (ltpy_get_all_source_lines): Fix loop termination condition.
  1482. 2013-11-14 Joel Brobecker <brobecker@adacore.com>
  1483. * mi/mi-parse.h (struct mi_parse) <language>: New field.
  1484. * mi/mi-main.c (mi_cmd_execute): Temporarily set language to
  1485. PARSE->LANGUAGE during command execution, if set.
  1486. * mi/mi-parse.c: Add "language.h" #include.
  1487. (mi_parse): Add parsing of "--language" command option.
  1488. * NEWS: Add entry mentioning the new "--language" command option.
  1489. 2013-11-14 Pedro Alves <palves@redhat.com>
  1490. Joel Brobecker <brobecker@adacore.com>
  1491. * cli/cli-utils.h (extract_arg_const): Add declaration.
  1492. * cli/cli-utils.c (extract_arg_const): New function.
  1493. (extract_arg): Reimplement using extract_arg_const.
  1494. 2013-11-14 Joel Brobecker <brobecker@adacore.com>
  1495. * language.h: Add "symtab.h" #include.
  1496. 2013-11-13 Doug Evans <xdje42@gmail.com>
  1497. * breakpoint.c (bpstat_check_breakpoint_conditions): For thread
  1498. specific breakpoints, don't evaluate breakpoint condition if
  1499. different thread.
  1500. 2013-11-13 Keith Seitz <keiths@redhat.com>
  1501. PR c++/7935
  1502. PR c++/10541
  1503. * cp-support.c (insepct_type): Add support for substituting
  1504. namespace aliases, too.
  1505. * dwarf2read.c (scan_partial_symbols): Add a partial symbol
  1506. for DW_TAG_imported_declaration.
  1507. (add_partial_symbol): Likewise.
  1508. (process_die): Handle namespace aliases with
  1509. read_namespace_alias.
  1510. (die_needs_namespace): Add DW_TAG_imported_declaration.
  1511. (read_namespace_alias): New function.
  1512. (load_partial_dies): Load DW_TAG_imported_declaration, too.
  1513. (new_symbol_full): Handle DW_TAG_imported_declaration.
  1514. 2013-11-13 Keith Seitz <keiths@redhat.com>
  1515. * p-exp.y (uptok): Make first parameter const.
  1516. (yylex): Make `tokstart' and `tokptr' const.
  1517. Don't copy the lexer input to a temporary buffer.
  1518. Make `p' const.
  1519. Remove const workaround for parse_escape.
  1520. Create a temporary buffer for a convenience variable instead
  1521. of doing in-place modification of the input.
  1522. If a match is found with a different case from the input,
  1523. do not change the input at all.
  1524. Use `tmp' to construct the resultant stoken instead of
  1525. `tokstart'.
  1526. 2013-11-13 Doug Evans <xdje42@gmail.com>
  1527. * breakpoint.c (breakpoint_cond_eval): Fix and enhance comment.
  1528. 2013-11-13 Joel Brobecker <brobecker@adacore.com>
  1529. * mi/mi-main.c (mi_cmd_list_features): Replace "info-ada-exceptions"
  1530. entry with "ada-exceptions".
  1531. 2013-11-13 Joel Brobecker <brobecker@adacore.com>
  1532. * symfile.c (reread_symbols): Move call to set_objfile_per_bfd
  1533. after re-initialization of OBJFILE's obstack.
  1534. 2013-11-12 Doug Evans <xdje42@gmail.com>
  1535. * breakpoint.c (bpstat_check_breakpoint_conditions): Assert
  1536. bs->stop != 0 on entry. Update function comment. Simplify early
  1537. exit for frame mismatch. Reindent rest of function.
  1538. 2013-11-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
  1539. * objc-lang.c (uniquify_strings): Prevent invoking qsort with
  1540. NULL.
  1541. 2013-11-12 Doug Evans <dje@google.com>
  1542. Work around gold/15646.
  1543. * dwarf2read.c (read_index_from_section): Update comment.
  1544. (struct dw2_symtab_iterator): New member global_seen.
  1545. (dw2_symtab_iter_init): Initialize it.
  1546. (dw2_symtab_iter_next): Skip duplicate global symbols.
  1547. (dw2_expand_symtabs_matching): Ditto.
  1548. 2013-11-12 Joel Brobecker <brobecker@adacore.com>
  1549. * mi/mi-cmds.h (mi_cmd_info_ada_exceptions): Add declaration.
  1550. * mi/mi-cmds.c (mi_cmds): Add entry for -info-ada-exceptions
  1551. command.
  1552. * mi/mi-cmd-info.c: #include "ada-lang.c" and "arch-utils.c".
  1553. (mi_cmd_info_ada_exceptions): New function.
  1554. * mi/mi-main.c (mi_cmd_list_features): Add "info-ada-exceptions".
  1555. 2013-11-12 Joel Brobecker <brobecker@adacore.com>
  1556. * ada-lang.h: #include "vec.h".
  1557. (struct ada_exc_info): New.
  1558. (ada_exc_info): New typedef.
  1559. (DEF_VEC_O(ada_exc_info)): New vector.
  1560. (ada_exceptions_list): Add declaration.
  1561. * ada-lang.c (ada_is_exception_sym)
  1562. (ada_is_non_standard_exception_sym, compare_ada_exception_info)
  1563. (sort_remove_dups_ada_exceptions_list)
  1564. (ada_exc_search_name_matches, ada_add_standard_exceptions)
  1565. (ada_add_exceptions_from_frame, ada_add_global_exceptions)
  1566. (ada_exceptions_list_1, ada_exceptions_list)
  1567. (info_exceptions_command): New function.
  1568. (_initialize_ada_language): Add "info exception" command.
  1569. 2013-11-11 Phil Muldoon <pmuldoon@redhat.com>
  1570. PR python/15629
  1571. * NEWS: Add linetable feature.
  1572. * Makefile.in (SUBDIR_PYTHON_OBS): Add py-linetable entries.
  1573. * python/py-linetable.c: New file.
  1574. * python/py-symtab.c (stpy_get_linetable): New function.
  1575. * python/python-internal.h (symtab_to_linetable_object): Declare.
  1576. (gdbpy_initialize_linetable): Ditto.
  1577. * python/python.c (_initialize_python): Call
  1578. gdbpy_initialize_linetable.
  1579. 2013-11-11 Joel Brobecker <brobecker@adacore.com>
  1580. * ada-lang.c (create_ada_exception_catchpoint): Enhance
  1581. the documentation of fields "except_string" and "condition".
  1582. * mi/mi-cmd-catch.c (mi_cmd_catch_assert): Reallocate
  1583. CONDITION on the heap before passing it to
  1584. create_ada_exception_catchpoint.
  1585. (mi_cmd_catch_exception): Likewise for EXCEPTION_NAME and
  1586. CONDITION.
  1587. 2013-11-11 Tom Tromey <tromey@redhat.com>
  1588. * config.in, configure: Rebuild.
  1589. * configure.ac (HAVE_TKILL_SYSCALL): Check for "syscall".
  1590. 2013-11-11 Joel Brobecker <brobecker@adacore.com>
  1591. * remote-sim.c (gdbsim_detach): Break declaration into
  1592. shorter lines. No code change.
  1593. 2013-11-11 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
  1594. * remote-sim.c (gdbsim_detach): Fix prototype.
  1595. 2013-11-08 Doug Evans <dje@google.com>
  1596. * dwarf2read.c (dwarf2_read_debug): Change to unsigned int.
  1597. (create_debug_types_hash_table): Only print debugging messages for
  1598. each TU if dwarf2-read >= 2.
  1599. (process_queue): Ditto.
  1600. (_initialize_dwarf2_read): Make "set debug dwarf2-read" a zuinteger.
  1601. Update doc string.
  1602. 2013-11-08 Tom Tromey <tromey@redhat.com>
  1603. * configure: Rebuild.
  1604. * configure.ac: Remove mentions of HAVE_MULTIPLE_PROC_FDS.
  1605. 2013-11-08 Tom Tromey <tromey@redhat.com>
  1606. * configure, config.in: Rebuild.
  1607. * configure.ac: Remove unused configury.
  1608. 2013-11-08 Tom Tromey <tromey@redhat.com>
  1609. * m32c-tdep.c: Use gdb_string.h.
  1610. 2013-11-08 Tom Tromey <tromey@redhat.com>
  1611. * configure, config.in: Rebuild.
  1612. * configure.ac: Remove all link.h-related checks.
  1613. 2013-11-08 Tom Tromey <tromey@redhat.com>
  1614. * acinclude.m4: Include common.m4.
  1615. * common/common.m4: New file.
  1616. * configure, config.in: Rebuild.
  1617. * configure.ac: Use GDB_AC_COMMON.
  1618. 2013-11-08 Doug Evans <dje@google.com>
  1619. * NEWS: Mention that "set debug symtab-create" now accepts a
  1620. verbosity level.
  1621. * buildsym.c (end_symtab_from_static_block): Call set_symtab_primary
  1622. to set the symtab's primary flag.
  1623. * jit.c (finalize_symtab): Ditto.
  1624. * mdebugread.c (psymtab_to_symtab_1): Ditto.
  1625. * symfile.c (allocate_symtab): Only print debugging messages for
  1626. symtab_create_debug levels 2 and higher.
  1627. * symtab.c (symtab_create_debug): Change type to unsigned int.
  1628. (set_symtab_primary): New function.
  1629. (_initialize_symtab): Change "set debug symtab-create" to a
  1630. zuinteger option.
  1631. * symtab.h (set_symtab_primary): Declare.
  1632. (symtab_create_debug): Update decl.
  1633. 2013-11-08 Tom Tromey <tromey@redhat.com>
  1634. * aix-thread.c (aix_thread_detach): Update.
  1635. * corelow.c (core_detach): Update.
  1636. * darwin-nat.c (darwin_detach): Update.
  1637. * dec-thread.c (dec_thread_detach): Update.
  1638. * gnu-nat.c (gnu_detach): Update.
  1639. * go32-nat.c (go32_detach): Update.
  1640. * inf-ptrace.c (inf_ptrace_detach): Update.
  1641. * inf-ttrace.c (inf_ttrace_detach): Update.
  1642. * linux-fork.c (linux_fork_detach): Update.
  1643. * linux-fork.h (linux_fork_detach): Update.
  1644. * linux-nat.c (linux_nat_detach): Update. Introduce "tem"
  1645. local for const-correctness.
  1646. * linux-thread-db.c (thread_db_detach): Update.
  1647. * monitor.c (monitor_detach): Update.
  1648. * nto-procfs.c (procfs_detach): Update.
  1649. * procfs.c (procfs_detach): Update.
  1650. * record.c (record_detach): Update.
  1651. * record.h (record_detach): Update.
  1652. * remote-m32r-sdi.c (m32r_detach): Update.
  1653. * remote-mips.c (mips_detach): Update.
  1654. * remote-sim.c (gdbsim_detach): Update.
  1655. * remote.c (remote_detach_1, remote_detach)
  1656. (extended_remote_detach): Update.
  1657. * sol-thread.c (sol_thread_detach): Update.
  1658. * target.c (target_detach): Make "args" const.
  1659. (init_dummy_target): Update.
  1660. * target.h (struct target_ops) <to_detach>: Make argument const.
  1661. (target_detach): Likewise.
  1662. * windows-nat.c (windows_detach): Update.
  1663. 2013-11-07 Doug Evans <dje@google.com>
  1664. PR 11786
  1665. * solib-svr4.c (svr4_exec_displacement): Ignore filesz, memsz, flags
  1666. and align fields for PT_GNU_RELRO segments.
  1667. 2013-11-07 Phil Muldoon <pmuldoon@redhat.com>
  1668. PR python/15747
  1669. * python/py-cmd.c: Add COMPLETE_EXPRESSION constant.
  1670. 2013-11-07 Phil Muldoon <pmuldoon@redhat.com>
  1671. * NEWS: Document Python temporary breakpoint support.
  1672. * python/py-breakpoint.c (bppy_get_temporary): New function.
  1673. (bppy_init): New keyword: temporary. Parse it and set breakpoint
  1674. to temporary if True.
  1675. 2013-11-07 Jose E. Marchesi <jose.marchesi@oracle.com>
  1676. * sparc-tdep.c (sparc_analyze_control_transfer): Assertion
  1677. removed to allow analyzing unconditional branch instructions
  1678. with PC-relative offsets of zero.
  1679. 2013-11-07 Yao Qi <yao@codesourcery.com>
  1680. * mi/mi-cmd-var.c: Include "language.h".
  1681. (mi_cmd_var_info_expression): Get language name from
  1682. language_defn.
  1683. * varobj.c (varobj_language_string): Remove.
  1684. (variable_language): Remove declaration.
  1685. (languages): Remove.
  1686. (varobj_get_language): Change the type of return value.
  1687. (variable_language): Remove.
  1688. * varobj.h (enum varobj_languages): Remove.
  1689. (varobj_language_string): Remove declaration.
  1690. (varobj_get_language): Update declaration.
  1691. 2013-11-07 Yao Qi <yao@codesourcery.com>
  1692. * language.h (struct language_defn) <la_natural_name>: New
  1693. field.
  1694. * ada-lang.c (ada_language_defn): Initialize field
  1695. 'la_natural_name'.
  1696. * c-lang.c (c_language_defn): Likewise.
  1697. (cplus_language_defn, asm_language_defn): Likewise.
  1698. * d-lang.c (d_language_defn): Likewise.
  1699. * f-lang.c (f_language_defn): Likewise.
  1700. * go-lang.c (go_language_defn): Likewise.
  1701. * jv-lang.c (java_language_defn): Likewise.
  1702. * language.c (unknown_language_defn ): Likewise.
  1703. (auto_language_defn): Likewise.
  1704. * m2-lang.c (m2_language_defn): Likewise.
  1705. * objc-lang.c (objc_language_defn): Likewise.
  1706. * opencl-lang.c (opencl_language_defn): Likewise.
  1707. * p-lang.c (pascal_language_defn): Likewise.
  1708. 2013-11-07 Yao Qi <yao@codesourcery.com>
  1709. * language.c (language_str): Return const char *.
  1710. (add_language): Add const to 'language_names'
  1711. * language.h (struct language_defn) <la_name>: Add const.
  1712. (language_str: Update declaration.
  1713. 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
  1714. * s390-linux-nat.c (s390_read_description): Consider the TE field
  1715. in the HWCAP for determining 'have_regset_tdb'.
  1716. 2013-11-06 Will Newton <will.newton@linaro.org>
  1717. PR gdb/12866
  1718. * dwarf2read.c (skip_one_die): Sanity check DW_AT_sibling
  1719. values. (read_partial_die): Likewise.
  1720. 2013-11-06 Muhammad Bilal <mbilal@codesourcery.com>
  1721. PR cli/16122
  1722. * top.c (command_line_input): Unify interactivity tests to use
  1723. input_from_terminal_p.
  1724. * event-top.c (command_line_handler): Likewise.
  1725. 2013-11-06 Yao Qi <yao@codesourcery.com>
  1726. * Makefile.in (check-perf): New target.
  1727. 2013-11-05 Will Newton <will.newton@linaro.org>
  1728. PR gdb/7670
  1729. * arm-tdep.c (print_fpu_flags): Use filtered output routines.
  1730. (arm_print_float_info): Likewise.
  1731. 2013-11-04 Anton Blanchard <anton@samba.org>
  1732. * target.c (memory_xfer_partial): Cap write to 4KB.
  1733. 2013-11-01 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
  1734. * breakpoint.c (create_longjmp_master_breakpoint): Allow libc
  1735. probe scan even when the arch provides no get_longjmp_target.
  1736. 2013-10-31 Pedro Alves <palves@redhat.com>
  1737. * infrun.c (handle_syscall_event): Don't set or clear stop_signal.
  1738. (handle_inferior_event) <TARGET_WAITKIND_FORKED,
  1739. TARGET_WAITKIND_VFORKED>: Don't set stop_signal to
  1740. GDB_SIGNAL_TRAP, or clear it. Pass GDB_SIGNAL_0 to
  1741. bpstat_explains signal, instead of GDB_SIGNAL_TRAP.
  1742. <bpstat handling>: If the bpstat chain wants the signal to be
  1743. hidden, then set stop_signal to GDB_SIGNAL_0 instead of
  1744. GDB_SIGNAL_TRAP.
  1745. 2013-10-31 Andrew Burgess <aburgess@broadcom.com>
  1746. * breakpoint.c (update_watchpoint): Update error message and add
  1747. an additional error message.
  1748. 2013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
  1749. * s390-tdep.h: Rename to...
  1750. * s390-linux-tdep.h: ...here.
  1751. * s390-tdep.c: Rename to...
  1752. * s390-linux-tdep.c: ...here. Adjust #include.
  1753. * s390-nat.c: Rename to...
  1754. * s390-linux-nat.c: ...here. Adjust #include.
  1755. * config/s390/s390.mh: Rename to...
  1756. * config/s390/linux.mh: ...here. Reflect rename s390-nat.o ->
  1757. s390-linux-nat.o.
  1758. * configure.host: Reflect host rename "s390" -> "linux".
  1759. * configure.tgt: Reflect rename s390-tdep.o -> s390-linux-tdep.o.
  1760. * Makefile.in (ALL_TARGET_OBS): Likewise.
  1761. (HFILES_NO_SRCDIR): Reflect rename s390-tdep.h ->
  1762. s390-linux-tdep.h.
  1763. (ALLDEPFILES): Reflect rename of .c files.
  1764. 2013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
  1765. * s390-nat.c: Whitespace cleanup.
  1766. * s390-tdep.c: Likewise.
  1767. * s390-tdep.h: Remove empty line at end of file.
  1768. 2013-10-30 Maciej W. Rozycki <macro@codesourcery.com>
  1769. * linux-tdep.c (linux_corefile_thread_callback): Preinitialize
  1770. siginfo_size.
  1771. 2013-10-29 Tom Tromey <tromey@redhat.com>
  1772. * utils.c (reg): Move undefinition...
  1773. * gdb_curses.h: ... here. Update comment to mention AIX.
  1774. 2013-10-29 Nicolas Blanc <nicolas.blanc@intel.com>
  1775. * exec.h (add_target_sections_of_objfile): New declaration.
  1776. * exec.c (add_target_sections_of_objfile): New function.
  1777. * symfile.c (add_symbol_file_command): Update current target sections.
  1778. (remove_symbol_file_command): New command.
  1779. (symfile_free_objfile): New function.
  1780. (_initialize_symfile): Register observer for free_objfile events.
  1781. * NEWS: Add description of the remove-symbol-file command.
  1782. * breakpoint.c (disable_breakpoints_in_freed_objfile): New function.
  1783. * objfiles.c (free_objfile): Notify free_objfile.
  1784. (is_addr_in_objfile): New function.
  1785. * objfiles.h (is_addr_in_objfile): New declaration.
  1786. * printcmd.c (clear_dangling_display_expressions): Act upon free_objfile
  1787. events instead of solib_unloaded events.
  1788. (_initialize_printcmd): Register observer for free_objfile instead
  1789. of solib_unloaded notifications.
  1790. * solib.c (remove_user_added_objfile): New function.
  1791. (_initialize_symfile): Add remove-symbol-file.
  1792. 2013-10-29 Andrew Burgess <aburgess@broadcom.com>
  1793. * infcmd.c (default_print_one_register_info): Use val_print to
  1794. print all values even optimized out or unavailable ones. Don't
  1795. try to print a raw form of optimized out or unavailable values.
  1796. 2013-10-29 Yao Qi <yao@codesourcery.com>
  1797. * auto-load.c (auto_load_pspace_data_cleanup): Get data from
  1798. parameter 'arg' instead of from program_space_data.
  1799. * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
  1800. * solib-darwin.c (darwin_pspace_data_cleanup): Likewise.
  1801. * solib-dsbt.c (dsbt_pspace_data_cleanup): Likewise.
  1802. * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
  1803. * inflow.c (inflow_inferior_data_cleanup): Get data from
  1804. parameter 'arg' instead of inferior_data.
  1805. * registry.h: Add comments.
  1806. 2013-10-28 Pedro Alves <palves@redhat.com>
  1807. * breakpoint.c (watchpoints_triggered)
  1808. <!target_stopped_data_address>: Hardcode return 1.
  1809. 2013-10-28 Pedro Alves <palves@redhat.com>
  1810. * infrun.c (process_event_stop_test): Remove unnecessary scoping
  1811. level and reindent.
  1812. 2013-10-28 Pedro Alves <palves@redhat.com>
  1813. * infrun.c (process_event_stop_test): New function, factored out
  1814. from handle_inferior_event.
  1815. (handle_inferior_event): 'process_event_stop_test' is now a
  1816. function instead of a goto label -- adjust.
  1817. 2013-10-28 Pedro Alves <palves@redhat.com>
  1818. * infrun.c (handle_inferior_event): Move process_event_stop_test
  1819. goto label to the else branch of the ecs->random_signal check,
  1820. along with FRAME and GDBARCH re-fetching.
  1821. 2013-10-28 Pedro Alves <palves@redhat.com>
  1822. * infrun.c (switch_back_to_stepped_thread): New function, factored
  1823. out from handle_inferior_event.
  1824. (handle_inferior_event): Adjust to call
  1825. switch_back_to_stepped_thread. Call it also at the tail of the
  1826. random signal handling, and return, instead of also handling
  1827. random signals just before the stepping tests.
  1828. 2013-10-28 Pedro Alves <palves@redhat.com>
  1829. * infrun.c (clear_stop_func): Delete.
  1830. (handle_inferior_event): Don't call clear_stop_func and don't
  1831. clear 'ecs->random_signal'.
  1832. 2013-10-27 Yao Qi <yao@codesourcery.com>
  1833. * varobj.c (struct varobj_root) <lang>: Rename to 'lang_ops'.
  1834. (varobj_create, varobj_get_path_expr): Update.
  1835. (varobj_value_has_mutated, varobj_update): Likewise.
  1836. (create_child_with_value, new_root_variable): Likewise.
  1837. (number_of_children, name_of_variable): Likewise.
  1838. (value_of_child, my_value_of_variable): Likewise.
  1839. (varobj_value_is_changeable_p): Likewise.
  1840. 2013-10-25 Yao Qi <yao@codesourcery.com>
  1841. * language.h (struct lang_varobj_ops): Declare.
  1842. (struct language_defn) <la_varobj_ops>: New field.
  1843. * ada-lang.c: Include "varobj.h"
  1844. (defn ada_language_defn): Initialize field 'la_varobj_ops' with
  1845. ada_varobj_ops.
  1846. * c-lang.c: Include "varobj.h"
  1847. (c_language_defn): Initialize field 'la_varobj_ops' with
  1848. c_varobj_ops.
  1849. (cplus_language_defn): Initialize field 'la_varobj_ops' with
  1850. cplus_varobj_ops.
  1851. (asm_language_defn): Initialize field 'la_varobj_ops' with
  1852. default_varobj_ops.
  1853. (minimal_language_defn): Likewise.
  1854. * d-lang.c (d_language_defn): Likewise.
  1855. * f-lang.c (f_language_defn): Likewise.
  1856. * go-lang.c (go_language_defn): Likewise.
  1857. * m2-lang.c (m2_language_defn): Likewise.
  1858. * objc-lang.c (objc_language_defn): Likewise.
  1859. * opencl-lang.c (opencl_language_defn): Likewise.
  1860. * p-lang.c (pascal_language_defn): Likewise.
  1861. * language.c (unknown_language_defn): Likewise.
  1862. (auto_language_defn): Likewise.
  1863. (local_language_defn): Likewise.
  1864. * jv-lang.c (java_language_defn): Initialize field
  1865. 'la_varobj_ops' with java_varobj_ops.
  1866. * varobj.c (varobj_create): Update.
  1867. * varobj.h (default_varobj_ops): Define macro.
  1868. 2013-10-25 Pedro Alves <palves@redhat.com>
  1869. * cp-valprint.c (cp_print_value_fields): No longer handle a NULL
  1870. static field value.
  1871. (cp_print_static_field): If the value is entirely optimized out,
  1872. print <optimized out> here.
  1873. * jv-valprint.c (java_print_value_fields): No longer handle a NULL
  1874. static field value.
  1875. * p-valprint.c (pascal_object_print_static_field): If the value is
  1876. entirely optimized out, print <optimized out> here.
  1877. * valops.c (do_search_struct_field)
  1878. (value_struct_elt_for_reference): No longer handle a NULL static
  1879. field value.
  1880. * value.c (value_static_field): Return an optimized out value
  1881. instead of NULL.
  1882. 2013-10-25 Yao Qi <yao@codesourcery.com>
  1883. * remote.c (remote_traceframe_info): Return early if
  1884. traceframe is not selected.
  1885. 2013-10-25 Yao Qi <yao@codesourcery.com>
  1886. * tracepoint.c (traceframe_fun): Remove.
  1887. (traceframe_sal): Remove.
  1888. (set_traceframe_context): Add local variables.
  1889. 2013-10-25 Joel Brobecker <brobecker@adacore.com>
  1890. * varobj.h (struct lang_varobj_ops): Remove spaces between '*'
  1891. and parameter name.
  1892. 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
  1893. * linux-tdep.c (linux_corefile_thread_callback): Propagate any
  1894. failure from register information collection.
  1895. 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
  1896. * linux-tdep.c (linux_corefile_thread_data): Remove `num_notes'
  1897. member.
  1898. (linux_corefile_thread_callback): Update accordingly.
  1899. (linux_make_corefile_notes): Likewise.
  1900. 2013-10-24 Pedro Alves <palves@redhat.com>
  1901. * NEWS (New options): Mention set/show startup-with-shell.
  1902. * config/alpha/nm-osf3.h (START_INFERIOR_TRAPS_EXPECTED): Set to 2
  1903. instead of 3.
  1904. * fork-child.c (fork_inferior, startup_inferior): Handle 'set
  1905. startup-with-shell'.
  1906. (show_startup_with_shell): New function.
  1907. (_initialize_fork_child): Register the set/show startup-with-shell
  1908. commands.
  1909. * inf-ptrace.c (inf_ptrace_create_inferior): Remove comment.
  1910. * inf-ttrace.c (inf_ttrace_him): Remove comment.
  1911. * procfs.c (procfs_init_inferior): Remove comment.
  1912. * infcmd.c (startup_with_shell): New global.
  1913. * inferior.h (startup_with_shell): Declare global.
  1914. (STARTUP_WITH_SHELL): Delete.
  1915. (START_INFERIOR_TRAPS_EXPECTED): Set to 1 by default instead of 2.
  1916. 2013-10-23 Pedro Alves <palves@redhat.com>
  1917. * common/gdb_signals.h (gdb_signal_to_symbol_string): Declare.
  1918. * common/signals.c: Include "gdb_assert.h".
  1919. (signals): New field 'symbol'.
  1920. (SET): Use the 'symbol' parameter.
  1921. (gdb_signal_to_symbol_string): New function.
  1922. * infrun.c (handle_inferior_event) <random signal>: In debug
  1923. output, print the random signal enum as string in addition to its
  1924. number.
  1925. * target/waitstatus.c (target_waitstatus_to_string): Print the
  1926. signal's enum value as string instead of the (POSIX) signal name.
  1927. 2013-10-23 Gary Benson <gbenson@redhat.com>
  1928. PR 16013
  1929. * common/linux-osdata.c (command_from_pid): Reduced size of cmd
  1930. from 32 to 18. Adjusted fscanf format string accordingly.
  1931. (Avoids leaving cmd unterminated.)
  1932. (print_sockets): Do not parse tlen, inode, sl, timeout, txq, rxq,
  1933. trun, retn or extra. (Avoids leaving extra unterminated.) Check
  1934. that local_address and remote_address will not overflow.
  1935. (linux_xfer_osdata_modules): Parse lines using strtok to avoid
  1936. leaving dependencies unterminated. Parse size as "%u" to match
  1937. definition.
  1938. 2013-10-22 Pedro Alves <palves@redhat.com>
  1939. * infrun.c (handle_inferior_event) <thread hop>: Don't clear or
  1940. set ecs->random signal.
  1941. 2013-10-22 Pedro Alves <palves@redhat.com>
  1942. * infrun.c (keep_going): Update comments.
  1943. 2013-10-22 Pedro Alves <palves@redhat.com>
  1944. * remote.c (remote_parse_stop_reply) <'T'/'S'/'X' replies>: Map
  1945. invalid signal numbers to GDB_SIGNAL_UNKNOWN.
  1946. 2013-10-22 Pedro Alves <palves@redhat.com>
  1947. * include/gdb/signals.def (TARGET_EXC_BAD_ACCESS): Rename to
  1948. GDB_EXC_BAD_ACCESS.
  1949. (TARGET_EXC_BAD_INSTRUCTION): Rename to GDB_EXC_BAD_INSTRUCTION.
  1950. (TARGET_EXC_ARITHMETIC): Rename to GDB_EXC_ARITHMETIC.
  1951. (TARGET_EXC_EMULATION): Rename to GDB_EXC_EMULATION.
  1952. (TARGET_EXC_SOFTWARE): Rename to GDB_EXC_SOFTWARE.
  1953. (TARGET_EXC_BREAKPOINT): Rename to GDB_EXC_BREAKPOINT.
  1954. (GDB_SIGNAL_LAST): Change description string.
  1955. * common/signals.c (gdb_signal_from_host, do_gdb_signal_to_host):
  1956. Adjust to signal renaming.
  1957. * darwin-nat.c (darwin_decode_message): Likewise.
  1958. 2013-10-22 Jose E. Marchesi <jose.marchesi@oracle.com>
  1959. * MAINTAINERS (Write After Approval): Add myself to the list.
  1960. 2013-10-18 Andrew Burgess <aburgess@broadcom.com>
  1961. * breakpoint.c (update_watchpoint): If hardware watchpoints are
  1962. forced off, downgrade them to software watchpoints if possible,
  1963. and error out if not possible.
  1964. (watch_command_1): Move watchpoint type selection closer to
  1965. watchpoint creation, and extend the comments.
  1966. 2013-10-18 Pedro Alves <palves@redhat.com>
  1967. PR gdb/16062
  1968. * infrun.c (handle_inferior_event): Keep going if we got a random
  1969. signal we should not stop for, instead of falling through to the
  1970. step tests.
  1971. 2013-10-18 Yao Qi <yao@codesourcery.com>
  1972. * c-varobj.c (cplus_number_of_children): Fix indentation.
  1973. 2013-10-17 Tom Tromey <tromey@redhat.com>
  1974. PR gdb/15995:
  1975. * printcmd.c (printcmd): Call gdb_flush.
  1976. 2013-10-17 Tom Tromey <tromey@redhat.com>
  1977. * elfread.c (struct elfinfo) <stabindexsect>: Remove.
  1978. (elf_locate_sections): Update.
  1979. 2013-10-17 Yao Qi <yao@codesourcery.com>
  1980. * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
  1981. * ada-varobj.c: Remove the include of ada-varobj.h.
  1982. (ada_varobj_get_number_of_children): Declare.
  1983. (ada_varobj_get_name_of_child): Make it static.
  1984. (ada_varobj_get_path_expr_of_child): Likewise.
  1985. (ada_varobj_get_value_of_child): Likewise.
  1986. (ada_varobj_get_type_of_child): Likewise.
  1987. (ada_varobj_get_value_of_array_variable): Likewise.
  1988. * ada-varobj.h: Remove.
  1989. 2013-10-17 Yao Qi <yao@codesourcery.com>
  1990. * Makefile.in (SFILES): Add c-varobj.c and jv-varobj.c.
  1991. (COMMON_OBS): Add c-varobj.o and jv-varobj.o.
  1992. * ada-varobj.c: Include "varobj.h".
  1993. (ada_number_of_children): New. Moved from varobj.c.
  1994. (ada_name_of_variable, ada_name_of_child): Likewise.
  1995. (ada_path_expr_of_child, ada_value_of_child): Likewise.
  1996. (ada_type_of_child, ada_value_of_variable): Likewise.
  1997. (ada_value_is_changeable_p, ada_value_has_mutated): Likewise.
  1998. (ada_varobj_ops): New.
  1999. * c-varobj.c, jv-varobj.c: New file. Moved from varobj.c.
  2000. * gdbtypes.c (get_target_type): New. Moved from varobj.c.
  2001. * gdbtypes.h (get_target_type): Declare.
  2002. * varobj.c: Remove the inclusion of "ada-varobj.h" and
  2003. "ada-lang.h".
  2004. (ANONYMOUS_STRUCT_NAME): Move it to c-varobj.c.
  2005. (ANONYMOUS_UNION_NAME): Likewise.
  2006. (get_type, get_value_type, get_target_type): Remove declarations.
  2007. (value_get_print_value, varobj_value_get_print_value): Likewise.
  2008. (c_number_of_children, c_name_of_variable): Likewise.
  2009. (c_name_of_child, c_path_expr_of_child): Likewise.
  2010. (c_value_of_child, c_type_of_child): Likewise.
  2011. (c_value_of_variable, cplus_number_of_children): Likewise.
  2012. (cplus_class_num_children, cplus_name_of_variable): Likewise.
  2013. (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
  2014. (cplus_value_of_child, cplus_type_of_child): Likewise.
  2015. (cplus_value_of_variable, java_number_of_children): Likewise.
  2016. (java_name_of_variable, java_name_of_child): Likewise.
  2017. (java_path_expr_of_child, java_value_of_child): Likewise.
  2018. (java_type_of_child, java_value_of_variable): Likewise.
  2019. (ada_number_of_children, ada_name_of_variable): Likewise.
  2020. (ada_name_of_child, ada_path_expr_of_child): Likewise.
  2021. (ada_value_of_child, ada_type_of_child): Likewise.
  2022. (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
  2023. (ada_value_has_mutated): Likewise.
  2024. (struct language_specific): Move it to varobj.h.
  2025. (CPLUS_FAKE_CHILD): Move it to varobj.h.
  2026. (restrict_range): Rename it varobj_restrict_range. Make it extern.
  2027. Callers update.
  2028. (get_path_expr_parent): Rename it to varobj_get_path_expr_parent.
  2029. Make it extern.
  2030. (is_anonymous_child): Move it to c-varobj.c and rename to
  2031. varobj_is_anonymous_child. Caller update.
  2032. (get_type): Move it to c-varobj.c.
  2033. (get_value_type): Rename it varobj_get_value_type. Make it
  2034. extern.
  2035. (get_target_type): Move it gdbtypes.c.
  2036. (varobj_formatted_print_options): New function.
  2037. (value_get_print_value): Rename it to
  2038. varobj_value_get_print_value and make it extern.
  2039. (varobj_value_is_changeable_p): Make it extern.
  2040. (adjust_value_for_child_access): Move it to c-varobj.c.
  2041. (default_value_is_changeable_p): Rename it to
  2042. varobj_default_value_is_changeable_p. Make it extern.
  2043. (c_number_of_children, c_name_of_variable): Move it to c-varobj.c
  2044. (c_name_of_child, c_path_expr_of_child): Likewise.
  2045. (c_value_of_child, c_type_of_child): Likewise.
  2046. (c_value_of_variable, cplus_number_of_children): Likewise.
  2047. (cplus_class_num_children, cplus_name_of_variable): Likewise.
  2048. (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
  2049. (cplus_value_of_child, cplus_type_of_child): Likewise.
  2050. (cplus_value_of_variable): Likewise.
  2051. (java_number_of_children, java_name_of_variable): Move it to jv-varobj.c.
  2052. (java_name_of_child, java_path_expr_of_child): Likewise.
  2053. (java_value_of_child, java_type_of_child): Likewise.
  2054. (java_value_of_variable): Likewise.
  2055. (ada_number_of_children, ada_name_of_variable): Move it to ada-varobj.c.
  2056. (ada_name_of_child, ada_path_expr_of_child): Likewise.
  2057. (ada_value_of_child, ada_type_of_child): Likewise.
  2058. (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
  2059. (ada_value_has_mutated): Likewise.
  2060. * varobj.h (CPLUS_FAKE_CHILD): New macro, moved from varobj.c.
  2061. (struct lang_varobj_ops): New. Renamed by 'struct language_specific'.
  2062. (c_varobj_ops, cplus_varobj_ops): Declare.
  2063. (java_varobj_ops, ada_varobj_ops): Declare.
  2064. (varobj_default_value_is_changeable_p): Declare.
  2065. (varobj_value_is_changeable_p): Declare.
  2066. (varobj_get_value_type, varobj_is_anonymous_child): Declare.
  2067. (varobj_get_path_expr_parent): Declare.
  2068. (varobj_value_get_print_value): Declare.
  2069. (varobj_formatted_print_options): Declare.
  2070. (varobj_restrict_range): Declare.
  2071. 2013-10-17 Luis Machado <lgustavo@codesourcery.com>
  2072. * target/waitstatus.h (target_waitkind): Remove spurious
  2073. character from the comments.
  2074. 2013-10-17 Joel Brobecker <brobecker@adacore.com>
  2075. * gdbarch.sh (get_longjmp_target): Add method documentation.
  2076. * gdbarch.h: Regenerate.
  2077. 2013-10-16 Tom Tromey <tromey@redhat.com>
  2078. * dbxread.c (read_dbx_symtab) <bss_ext_symbol>: Remove unused
  2079. label.
  2080. 2013-10-16 Luis Machado <lgustavo@codesourcery.com>
  2081. * gcore.in: Call GDB using the full path to the gcore script.
  2082. Error out if the GDB binary is not found.
  2083. 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
  2084. PR gdb/16014
  2085. * dwarf2read.c (dw2_get_real_path): Remove unnecessary call to
  2086. sizeof.
  2087. 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
  2088. PR gdb/16042
  2089. * target.c (target_disable_btrace): Fix invalid return value for
  2090. void function.
  2091. (target_teardown_btrace): Likewise.
  2092. 2013-10-14 Yao Qi <yao@codesourcery.com>
  2093. * varobj.c (struct varobj): Move most of the fields to
  2094. varobj.h.
  2095. (struct varobj_dynamic): New struct.
  2096. (varobj_get_display_hint) [HAVE_PYTHON]: Adjust.
  2097. (varobj_has_more): Likewise.
  2098. (dynamic_varobj_has_child_method): Likewise.
  2099. (update_dynamic_varobj_children): Likewise.
  2100. (varobj_get_num_children): Likewise.
  2101. (varobj_list_children, varobj_pretty_printed_p): Likewise.
  2102. (install_new_value_visualizer): Likewise.
  2103. (install_new_value_visualizer, install_new_value): Likewise.
  2104. (varobj_update, new_variable, free_variable): Likewise.
  2105. (my_value_of_variable, value_get_print_value): Likewise.
  2106. (install_visualizer): Change the type of parameter 'var' to
  2107. 'struct varobjd_dynamic *'. Callers update.
  2108. * varobj.h (struct varobj): Moved from varobj.c.
  2109. (struct varobj) <dynamic>: New field.
  2110. 2013-10-13 Sandra Loosemore <sandra@codesourcery.com>
  2111. * nios2-tdep.c (nios2_reg_names): Use "sstatus" rather than "ba"
  2112. as the preferred name of r30.
  2113. * nios2-linux-tdep.c (reg_offsets): Likewise.
  2114. * features/nios2-cpu.xml: Likewise.
  2115. * features/nios2-linux.c: Regenerated.
  2116. * features/nios2.c: Regenerated.
  2117. * regformats/nios2-linux.dat: Regenerated.
  2118. 2013-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
  2119. Canonicalize directories for EXEC_FILENAME.
  2120. * exec.c (exec_file_attach): Use gdb_realpath_keepfile for
  2121. exec_filename.
  2122. * utils.c (gdb_realpath_keepfile): New function.
  2123. * utils.h (gdb_realpath_keepfile): New declaration.
  2124. 2013-10-11 Doug Evans <dje@google.com>
  2125. * Makefile.in (GDBFLAGS): New variable.
  2126. (run): New rule.
  2127. 2013-10-11 Joel Brobecker <brobecker@adacore.com>
  2128. * NEWS: Add entry documenting the new "-catch-assert" and
  2129. "-catch-exception" GDB/MI commands.
  2130. 2013-10-11 Joel Brobecker <brobecker@adacore.com>
  2131. * breakpoint.h (init_ada_exception_breakpoint): Add parameter
  2132. "enabled".
  2133. * breakpoint.c (init_ada_exception_breakpoint): Add parameter
  2134. "enabled". Set B->ENABLE_STATE accordingly.
  2135. * ada-lang.h (ada_exception_catchpoint_kind): Move here from
  2136. ada-lang.c.
  2137. (create_ada_exception_catchpoint): Add declaration.
  2138. * ada-lang.c (ada_exception_catchpoint_kind): Move to ada-lang.h.
  2139. (create_ada_exception_catchpoint): Make non-static. Add new
  2140. parameter "disabled". Use it in call to
  2141. init_ada_exception_breakpoint.
  2142. (catch_ada_exception_command): Add parameter "enabled" in call
  2143. to create_ada_exception_catchpoint.
  2144. (catch_assert_command): Likewise.
  2145. * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
  2146. Add declarations.
  2147. * mi/mi-cmds.c (mi_cmds): Add the "catch-assert" and
  2148. "catch-exception" commands.
  2149. * mi/mi-cmd-catch.c: Add #include "ada-lang.h".
  2150. (mi_cmd_catch_assert, mi_cmd_catch_exception): New functions.
  2151. 2013-10-11 Joel Brobecker <brobecker@adacore.com>
  2152. * ada-lang.c (enum ada_exception_catchpoint_kind): Renames
  2153. "enum exception_catchpoint_kind". Replace the "ex_" prefix
  2154. of all its enumerates with "ada_". Update the rest of this
  2155. file throughout.
  2156. 2013-10-11 Joel Brobecker <brobecker@adacore.com>
  2157. * ada-lang.c (ada_decode_exception_location): Delete.
  2158. (create_ada_exception_catchpoint): Remove arguments "sal",
  2159. "addr_string" and "ops". Add argument "ex_kind" instead.
  2160. Adjust implementation accordingly, calling ada_exception_sal
  2161. to get the entities it no longer gets passed as arguments.
  2162. Document the function's arguments.
  2163. (catch_ada_exception_command): Use catch_ada_exception_command_split
  2164. instead of ada_decode_exception_location, and update call to
  2165. create_ada_exception_catchpoint.
  2166. (catch_ada_assert_command_split): Renames
  2167. ada_decode_assert_location. Remove parameters "addr_string" and
  2168. "ops", and now returns void. Adjust implementation accordingly.
  2169. Update the function documentation.
  2170. (catch_assert_command): Use catch_ada_assert_command_split
  2171. instead of ada_decode_assert_location. Update call to
  2172. create_ada_exception_catchpoint.
  2173. 2013-10-11 Joel Brobecker <brobecker@adacore.com>
  2174. * utils.h (perror_warning_with_name): Add declaration.
  2175. * utils.c (perror_warning_with_name): New function.
  2176. * cli/cli-cmds.c (source_script_with_search): Add call to
  2177. perror_warning_with_name if from_tty is nul.
  2178. 2013-10-11 Joel Brobecker <brobecker@adacore.com>
  2179. * utils.c (perror_string): New function, extracted out of
  2180. throw_perror_with_name.
  2181. (throw_perror_with_name): Rework to use perror_string.
  2182. 2013-10-11 Yao Qi <yao@codesourcery.com>
  2183. * remote.c (discard_pending_stop_replies_in_queue): Update
  2184. declaration.
  2185. (struct stop_reply) <rs>: New field.
  2186. (remove_stop_reply_of_remote_state): New function.
  2187. (discard_pending_stop_replies_in_queue): Add parameter 'rs'.
  2188. Callers update. Pass remove_stop_reply_of_remote_state to
  2189. QUEUE_iterate.
  2190. (remote_parse_stop_reply): Initialize field 'rs'.
  2191. 2013-10-10 Will Newton <will.newton@linaro.org>
  2192. * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
  2193. linux_init_abi.
  2194. 2013-10-10 Joel Brobecker <brobecker@adacore.com>
  2195. * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
  2196. serial_baud_show_cmd.
  2197. (_initialize_cli_cmds): Delete the code creating the
  2198. "set/show remotebaud" commands.
  2199. * serial.c (baud_rate): Move here from top.c.
  2200. (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
  2201. (_initialize_serial): Create "set/show serial baud" commands.
  2202. Add "set/show remotebaud" command aliases.
  2203. * top.c (baud_rate): Moved to serial.c.
  2204. * NEWS: Document the new "set/show serial baud" commands,
  2205. replacing "set/show remotebaud".
  2206. 2013-10-09 Pedro Alves <palves@redhat.com>
  2207. * breakpoint.c (insert_bp_location): Use memory_error_message to
  2208. build the memory error string.
  2209. * c-lang.c: Include "gdbcore.h".
  2210. (c_get_string): Use memory_error to throw error.
  2211. (target_xfer_memory_error): Delete.
  2212. (memory_error_message): New, factored out from
  2213. target_xfer_memory_error.
  2214. (memory_error): Change parameter type to target_xfer_error.
  2215. Rewrite.
  2216. (read_memory): Use memory_error instead of
  2217. target_xfer_memory_error.
  2218. * gdbcore.h: Include "target.h".
  2219. (memory_error): Change parameter type to target_xfer_error.
  2220. (memory_error_message): Declare function.
  2221. * target.c (target_read_memory, target_read_stack)
  2222. (target_write_memory, target_write_raw_memory): Return
  2223. TARGET_XFER_E_IO on error. Adjust comments.
  2224. (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
  2225. instead of EIO.
  2226. * target.h (target_read, target_insert_breakpoint)
  2227. (target_remove_breakpoint): Adjust comments.
  2228. * valprint.c (partial_memory_read): Rename parameter, and adjust
  2229. comment.
  2230. (val_print_string): Use memory_error_message to build the memory
  2231. error string.
  2232. 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
  2233. * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
  2234. result variable. Rename variable fopen_e_ever_failed to
  2235. fopen_e_ever_failed_einval. Retry fopen only for errno EINVAL.
  2236. 2013-10-09 Pedro Alves <palves@redhat.com>
  2237. * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
  2238. (monitor_write_memory_longlongs, monitor_write_memory_block):
  2239. Constify 'myaddr' parameter.
  2240. (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
  2241. helper.
  2242. (monitor_xfer_partial): New function.
  2243. (init_base_monitor_ops): Don't install a deprecated_xfer_memory
  2244. hook. Install a to_xfer_partial hook.
  2245. 2013-10-09 Tom Tromey <tromey@redhat.com>
  2246. * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
  2247. bfd_get_alt_debug_link_info.
  2248. 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
  2249. New flag OBJF_NOT_FILENAME.
  2250. * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
  2251. * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
  2252. allocate_objfile.
  2253. (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
  2254. symbol_file_add_from_bfd.
  2255. * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
  2256. allocate_objfile.
  2257. * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
  2258. NULL.
  2259. * objfiles.h (OBJF_NOT_FILENAME): New.
  2260. 2013-10-08 Tom Tromey <tromey@redhat.com>
  2261. * Makefile.in (SFILES): Add build-id.c.
  2262. (HFILES_NO_SRCDIR): Add build-id.h.
  2263. * build-id.c: New file, largely from elfread.c. Modified
  2264. most functions.
  2265. * build-id.h: New file.
  2266. * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
  2267. bfd_get_alt_debug_link_info. Verify dwz file's build-id.
  2268. Search for dwz file using build-id.
  2269. * elfread.c (build_id_bfd_get, build_id_verify)
  2270. (build_id_to_debug_filename, find_separate_debug_file): Remove.
  2271. 2013-10-08 Joel Brobecker <brobecker@adacore.com>
  2272. * ada-lang.c (compare_names_with_case): Renamed from
  2273. compare_names, adding a new parameter "casing" and its handling.
  2274. New function documentation.
  2275. (compare_names): New function, implemented using
  2276. compare_names_with_case.
  2277. 2013-10-08 Joel Brobecker <brobecker@adacore.com>
  2278. * ada-lang.c (ada_exception_sal): Remove advance declaration.
  2279. 2013-10-07 Tom Tromey <tromey@redhat.com>
  2280. * objfiles.c (free_objfile_per_bfd_storage): Delete the
  2281. demangled_names_hash.
  2282. (free_objfile): Don't delete the demangled_names_hash.
  2283. * objfiles.h (struct objfile_per_bfd_storage)
  2284. <demangled_names_hash>: New field.
  2285. (struct objfile) <demangled_names_hash>: Move to
  2286. objfile_per_bfd_storage.
  2287. * symfile.c (reread_symbols): Don't delete the
  2288. demangled_names_hash.
  2289. * symtab.c (create_demangled_names_hash): Update.
  2290. (symbol_set_names): Update.
  2291. 2013-10-07 Tom Tromey <tromey@redhat.com>
  2292. * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
  2293. needs_relocations>: New fields.
  2294. (gdb_bfd_requires_relocations): New function.
  2295. * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
  2296. * objfiles.c (get_objfile_bfd_data): Disallow sharing if
  2297. the BFD needs relocations applied.
  2298. 2013-10-07 Pedro Alves <palves@redhat.com>
  2299. PR breakpoints/11568
  2300. * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
  2301. the thread list" instead of "gone".
  2302. 2013-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
  2303. * NEWS: Mention new convenience variable $_exitsignal.
  2304. * corelow.c (core_open): Reset exit convenience variables. Set
  2305. $_exitsignal to the uncaught signal which generated the corefile.
  2306. * infrun.c (handle_inferior_event): Reset exit convenience
  2307. variables. Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
  2308. (clear_exit_convenience_vars): New function.
  2309. * inferior.h (clear_exit_convenience_vars): New prototype.
  2310. 2013-10-06 Yao Qi <yao@codesourcery.com>
  2311. * varobj.h: Add comments to enum varobj_languages.
  2312. 2013-10-04 Doug Evans <dje@google.com>
  2313. Add support for DWP file format version 2.
  2314. * NEWS: Mention support for DWP file format version 2.
  2315. * dwarf2read.c (dwarf2_section_info): Convert asection field to a
  2316. union of asection, containing_section. New fields virtual_offset
  2317. and is_virtual. Change type of readin filed from int to char.
  2318. (dwo_sections, dwo_file): Tweak comments.
  2319. (dwp_v2_section_ids): New enum.
  2320. (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
  2321. str_offsets, types.
  2322. (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
  2323. All uses updated.
  2324. (virtual_v2_dwo_sections): New struct.
  2325. (dwp_hash_table): New fields version, nr_columns. Change type of
  2326. section_pool field to a union.
  2327. (dwp_file): New field version.
  2328. (dwarf2_has_info): Check for virtual sections.
  2329. (get_containing_section): New function.
  2330. (get_section_bfd_owner, get_section_bfd_section): Call it.
  2331. (dwarf2_locate_sections): Update.
  2332. (dwarf2_section_empty_p): Update.
  2333. (dwarf2_read_section): Handle virtual sections.
  2334. (locate_dwz_sections): Update.
  2335. (create_dwp_hash_table): Document and handle V2 format.
  2336. (locate_v1_virtual_dwo_sections): Renamed from
  2337. locate_virtual_dwo_sections and update. All callers updated.
  2338. (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
  2339. Delete arg htab. Rename arg section_index to unit_index.
  2340. All callers updated.
  2341. (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
  2342. All uses updated.
  2343. (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
  2344. (lookup_dwo_unit_in_dwp): Add V2 support.
  2345. (dwarf2_locate_dwo_sections): Update.
  2346. (dwarf2_locate_common_dwp_sections): Renamed from
  2347. dwarf2_locate_dwp_sections and update. All callers updated.
  2348. (dwarf2_locate_v2_dwp_sections): New function.
  2349. (open_and_init_dwp_file): Add V2 support.
  2350. (read_str_index): New locals str_section, str_offsets_section.
  2351. 2013-10-04 Pedro Alves <palves@redhat.com>
  2352. * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
  2353. (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
  2354. (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
  2355. describing comments with references to ptid.h.
  2356. * common/ptid.h: Remove intro description of constructors,
  2357. accessors and predicates.
  2358. (struct ptid): Reformat.
  2359. (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
  2360. (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
  2361. describing comments.
  2362. 2013-10-04 Joel Brobecker <brobecker@adacore.com>
  2363. * aix-thread.c (sync_threadlists): Add missing ')' in call
  2364. to ptid_build.
  2365. 2013-10-04 Joel Brobecker <brobecker@adacore.com>
  2366. * procfs.c (procfs_init_inferior): Fix typo causing the build
  2367. to fail.
  2368. 2013-10-04 Joel Brobecker <brobecker@adacore.com>
  2369. * aix-thread.c (ptrace32): Remove cast to addr_ptr.
  2370. 2013-10-04 Joel Brobecker <brobecker@adacore.com>
  2371. * mi/mi-main.c (run_one_inferior): Add function description.
  2372. Make ARG a pointer to an integer whose value determines whether
  2373. we should "run" or "start" the program.
  2374. (mi_cmd_exec_run): Add handling of the "--start" option.
  2375. Reject all other command-line options.
  2376. * NEWS: Add entry for "-exec-run"'s new "--start" option.
  2377. 2013-10-04 Yao Qi <yao@codesourcery.com>
  2378. * remote-notif.h (REMOTE_NOTIF_ID): New enum.
  2379. (struct notif_client) <pending_event>: Moved
  2380. to struct remote_notif_state.
  2381. <id>: New field.
  2382. (struct remote_notif_state) <pending_event>: New field.
  2383. (notif_event_xfree): Declare.
  2384. * remote-notif.c (handle_notification): Adjust.
  2385. (notif_event_xfree): New function.
  2386. (do_notif_event_xfree): Call notif_event_xfree.
  2387. (remote_notif_state_xfree): Call notif_event_xfree to free
  2388. each element in field pending_event.
  2389. * remote.c (discard_pending_stop_replies): Remove declaration.
  2390. (discard_pending_stop_replies_in_queue): Declare.
  2391. (remote_close): Call discard_pending_stop_replies_in_queue
  2392. instead of discard_pending_stop_replies.
  2393. (remote_start_remote): Adjust.
  2394. (stop_reply_xfree): Call notif_event_xfree.
  2395. (notif_client_stop): Adjust initialization.
  2396. (remote_notif_remove_all): Rename it to ...
  2397. (remove_stop_reply_for_inferior): ... this. Update comments.
  2398. Don't check INF is NULL.
  2399. (discard_pending_stop_replies): Return early if notif_state is
  2400. NULL. Adjust. Don't check INF is NULL.
  2401. (remote_notif_get_pending_events): Adjust.
  2402. (discard_pending_stop_replies_in_queue): New function.
  2403. (remote_wait_ns): Likewise.
  2404. 2013-10-04 Yao Qi <yao@codesourcery.com>
  2405. * remote-notif.c (DECLARE_QUEUE_P): Remove.
  2406. (notif_queue): Remove.
  2407. (remote_notif_process): Add one parameter 'notif_queue'.
  2408. Update comments. Callers update.
  2409. (remote_async_get_pending_events_token): Remove.
  2410. (remote_notif_register_async_event_handler): Remove.
  2411. (remote_notif_unregister_async_event_handler): Remove.
  2412. (handle_notification): Add parameter 'notif_queue'. Update
  2413. comments. Callers update.
  2414. (notif_xfree): Remove.
  2415. (remote_notif_state_allocate): New function.
  2416. (remote_notif_state_xfree): New function.
  2417. (_initialize_notif): Remove code to allocate queue.
  2418. * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
  2419. (struct remote_notif_state): New.
  2420. (handle_notification): Update declaration.
  2421. (remote_notif_process): Likewise.
  2422. (remote_notif_register_async_event_handler): Remove.
  2423. (remote_notif_unregister_async_event_handler): Remove.
  2424. (remote_notif_state_allocate): Declare.
  2425. (remote_notif_state_xfree): Declare.
  2426. * remote.c (struct remote_state) <notif_state>: New field.
  2427. (remote_close): Don't call
  2428. remote_notif_unregister_async_event_handler. Call
  2429. remote_notif_state_xfree.
  2430. (remote_open_1): Don't call
  2431. remote_notif_register_async_event_handler. Call
  2432. remote_notif_state_allocate.
  2433. 2013-10-04 Yao Qi <yao@codesourcery.com>
  2434. * varobj.c (create_child_with_value): Remove 'const' from the
  2435. type of parameter 'name'.
  2436. (varobj_add_child): Likewise.
  2437. (install_dynamic_child): Remove 'const' from the type of
  2438. parameter 'name'.
  2439. (varobj_add_child): Likewise.
  2440. (create_child_with_value): Likewise. Update comments. Don't
  2441. duplicate 'name'.
  2442. (update_dynamic_varobj_children): Duplicate 'name'
  2443. and pass it to install_dynamic_child.
  2444. 2013-10-03 Phil Muldoon <pmuldoon@redhat.com>
  2445. * python/py-value.c (convert_value_from_python): Move PyInt_Check
  2446. conversion logic to occur after PyLong_Check. Comment on order
  2447. change significance.
  2448. * python/py-arch.c (archpy_disassemble): Comment on order of
  2449. conversion for integers and longs.
  2450. 2013-10-03 Pedro Alves <palves@redhat.com>
  2451. * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
  2452. the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
  2453. functions. Always test for PTRACE_O_TRACESYSGOOD even if
  2454. PTRACE_O_TRACEFORK is not supported.
  2455. (linux_test_for_tracesysgood): New function.
  2456. (linux_test_for_tracefork): New function, factored out from
  2457. linux_check_ptrace_features, and also don't kill child_pid here.
  2458. 2013-10-03 Tristan Gingold <gingold@adacore.com>
  2459. * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
  2460. Remove verbose error reporting. Use detected state to
  2461. thread_set_state call.
  2462. (i386_darwin_dr_get): Fix return type. Remove verbose error
  2463. report.
  2464. Remove trailing spaces.
  2465. 2013-10-02 Pedro Alves <palves@redhat.com>
  2466. * cp-valprint.c (cp_print_value_fields): Adjust calls to
  2467. val_print_optimized_out.
  2468. * jv-valprint.c (java_print_value_fields): Likewise.
  2469. * p-valprint.c (pascal_object_print_value_fields): Likewise.
  2470. * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
  2471. <DWARF_VALUE_REGISTER>: If the register was not saved, return a
  2472. new optimized out value.
  2473. * findvar.c (address_from_register): Likewise.
  2474. * frame.c (put_frame_register): Tweak error string to say the
  2475. register was not saved, rather than optimized out.
  2476. * infcmd.c (default_print_one_register_info): Adjust call to
  2477. val_print_optimized_out. Use value_of_register instead of
  2478. get_frame_register_value.
  2479. * mi/mi-main.c (output_register): Use value_of_register instead of
  2480. get_frame_register_value.
  2481. * valprint.c (valprint_check_validity): Likewise.
  2482. (val_print_optimized_out): New value parameter. If the value is
  2483. lval_register, print <not saved> instead.
  2484. (value_check_printable, val_print_scalar_formatted): Adjust calls
  2485. to val_print_optimized_out.
  2486. * valprint.h (val_print_optimized_out): New value parameter.
  2487. * value.c (struct value) <optimized_out>: Extend comment.
  2488. (error_value_optimized_out): New function.
  2489. (require_not_optimized_out): Use it. Use a different string for
  2490. lval_register values.
  2491. * value.h (error_value_optimized_out): New declaration.
  2492. * NEWS: Mention <not saved>.
  2493. 2013-10-02 Joel Brobecker <brobecker@adacore.com>
  2494. * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
  2495. strcmp to compare two symtab filenames.
  2496. 2013-10-02 Joel Brobecker <brobecker@adacore.com>
  2497. * symtab.c (search_symbols_equal): Delete.
  2498. (sort_search_symbols_remove_dups): Replace call to
  2499. search_symbols_equal by call to compare_search_syms,
  2500. adjusting as necessary.
  2501. 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
  2502. PR python/15579
  2503. * python/python.c: Document gdb.execute command in Python help.
  2504. 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
  2505. * python/py-frame.c (frame_info_to_frame_object): Use
  2506. gdbpy_convert_exception. Clean up Python object on failure.
  2507. 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
  2508. * python/lib/gdb/command/frame_filters.py
  2509. (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
  2510. (ShowFrameFilterPriority.invoke): Ditto.
  2511. 2013-10-01 Keith Seitz <keiths@redhat.com>
  2512. * linespec.c (struct ls_parser): Make 'saved_arg' const.
  2513. (parse_linespec): Make 'argptr' const.
  2514. Remove temporary cast of 'argptr' to const char **.
  2515. (decode_line_full): Pass const pointer to parse_linespec.
  2516. (decode_line_1): Likewise.
  2517. (decode_objc): Make local variable 'new_argptr' const.
  2518. (find_function_symbols): Remove temporary cast to char *
  2519. to find_imps.
  2520. * objc-lang.c (find_imps): Make argument 'method' const.
  2521. Return const.
  2522. * objc-lang.h (find_imps): Likewise.
  2523. 2013-10-01 Keith Seitz <keiths@redhat.com>
  2524. * completer.c (skip_quoted_chars): Make all arguments const.
  2525. Return const.
  2526. (skip_quoted): Likewise.
  2527. * completer.h (skip_quoted_chars): Likewise.
  2528. (skip_quoted): Likewise.
  2529. * defs.h (skip_quoted): Remove duplicate declaration.
  2530. * jv-exp.y: Include completer.h.
  2531. (yylex): Remove unneccessary cast to char * fro skip_quoted.
  2532. * p-exp.y: Include completer.h.
  2533. 2013-10-01 Keith Seitz <keiths@redhat.com>
  2534. * c-exp.y (parse_number): Make first argument const.
  2535. Make a copy of the input to manipulate.
  2536. (c_parse_escape): Make first argument const.
  2537. Make local variable 'tokptr' const.
  2538. (parse_string_or_char): Make first two arguments const.
  2539. (macro_original_text): Make const.
  2540. (lex_one_token): Make local variable 'tokstart' const.
  2541. Likewise for local variables named 'p'.
  2542. Cast away const for struct stoken (temporary).
  2543. * c-lang.h (c_parse_escpae): Make first argument const.
  2544. * cli/cli-cmds.c (echo_command): Make local variable 'p'
  2545. const.
  2546. * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
  2547. var_string case.
  2548. * f-exp.y (parse_number): Make first argument const.
  2549. (match_string_literal): Make local variable 'tokstart'
  2550. const.
  2551. (yylex): Make local variable 'p' const.
  2552. Cast away const for struct stoken (temporary).
  2553. * go-exp.y (parse_number): Make first argument const.
  2554. (parse_string_or_char): Likewise.
  2555. Make local variable 'tokstart' const.
  2556. (lex_one_token): Likewise for numerous locals called 'p'.
  2557. Cast away const for struct stoken (temporary).
  2558. * jv-exp.y (parse_number): Make first argument const.
  2559. Make local variables 'tokstart' and 'tokptr' const.
  2560. Cast away const for call to skip_quoted (temporary).
  2561. (yylex): Make local variable 'p' const.
  2562. Cast away const for struct stoken (temporary).
  2563. * m2-exp.y (parse_number): Make local variable 'p' const.
  2564. (yylex): Likewise for 'tokstart'.
  2565. Cast away const for struct stoken (temporary).
  2566. Make local variable 'p' const.
  2567. * macroexp.c (get_character_constant): Pass a const string
  2568. to c_parse_escape.
  2569. (get_string_literal): Likewise.
  2570. (macro_expand_next): Make first argument const.
  2571. Cast away const for init_shared_buffer.
  2572. * macroexp.h (macro_expand_next): Make first argument const.
  2573. * p-exp.y (yylex): Make a local copy of 'lexptr'.
  2574. Pass a const string to c_parse_escape.
  2575. Make local variables 'p' and 'namestart' const.
  2576. * parse.c (lexptr): Make const.
  2577. (prev_lexptr): Likewise.
  2578. (find_template_name_end): Return const.
  2579. Make argument const, too.
  2580. (parse_exp_in_context): Make first argument const.
  2581. Remove the entire const_hack.
  2582. (parse_exp_in_context_1): Make first argument const.
  2583. * parser-defs.h (find_template_name_end): Return const.
  2584. Make argument const, too.
  2585. (lexptr): Make const.
  2586. (prev_lexptr): Likewise.
  2587. * utils.c (parse_escape): Make second argument const.
  2588. * utils.h (parse_escape): Likewise.
  2589. 2013-10-01 Keith Seitz <keiths@redhat.com>
  2590. * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
  2591. is now const.
  2592. (block_lookup): Make 'raw_name' and 'name' const.
  2593. * ada-lex.l (processString): Update for struct stoken.ptr.
  2594. * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
  2595. (operator_stoken): Likewise.
  2596. (lex_one_token): Remove temporary cast to char * for
  2597. 'yylval.sval.ptr'.
  2598. * f-exp.y (yylex): Likewise.
  2599. * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
  2600. * gdbtypes.h (lookup_struct_elt_type): Likewisee.
  2601. * go-exp.y (lex_one_token): Remove temporary cast to char * for
  2602. 'yylval.sval.ptr'.
  2603. * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
  2604. (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
  2605. * linespec.c (struct ls_parser): Make 'stream' const.
  2606. (find_parameter_list_end): Make argument 'input' and local
  2607. variable 'p' const.
  2608. (linespec_lexer_lex_string): Make local variables 'start' and
  2609. 'p' const.
  2610. Use skip_spaces_const instead of skip_spaces.
  2611. (linespec_lexer_peek_token): Make local variable 'saved_stream'
  2612. const.
  2613. (parse_linespec): Temporarily cast 'argptr' to const for
  2614. 'parser->lexer.stream'.
  2615. * m2-exp.y (yylex): Remove temporary cast to char * for
  2616. 'yylval.sval.ptr'.
  2617. * objc-lang.c (add_msglist): Make local variable 'p' const.
  2618. * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
  2619. (exp : STRING): Make 'sp' const.
  2620. (parse_number): Make argument 'p' const.
  2621. * parser-defs.h (struct stoken): Make 'ptr' const.
  2622. 2013-10-01 Doug Evans <dje@google.com>
  2623. * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
  2624. 2013-10-01 Yao Qi <yao@codesourcery.com>
  2625. * varobj.c (c_value_of_root): Remove declaration.
  2626. (cplus_value_of_root, java_value_of_root): Likewise.
  2627. (ada_value_of_root): Likewise.
  2628. (struct language_specific) <value_of_root>: Remove.
  2629. (languages): Update initialization.
  2630. (check_scope): Move earlier.
  2631. (c_value_of_root): Move earlier and rename to ...
  2632. (value_of_root_1): ... this.
  2633. (value_of_root): Caller update.
  2634. (cplus_value_of_root, java_value_of_root): Remove.
  2635. (ada_value_of_root): Remove.
  2636. 2013-10-01 Yao Qi <yao@codesourcery.com>
  2637. * varobj.c (varobj_format_string): Remove "unknown".
  2638. (languages): Remove the first element.
  2639. * varobj.h (enum varobj_languages): Remove vlang_c.
  2640. 2013-10-01 Yao Qi <yao@codesourcery.com>
  2641. * varobj.c (struct language_specific) <language>: Remove.
  2642. (languages): Update the initialization.
  2643. 2013-10-01 Yao Qi <yao@codesourcery.com>
  2644. * arm-wince-tdep.c: Remove inclusion of "solib.h" and
  2645. "solib-target.h". Include "windows-tdep.h".
  2646. (arm_wince_init_abi): Call windows_init_abi. Remove call to
  2647. set_solib_ops and set_gdbarch_has_dos_based_file_system.
  2648. * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
  2649. windows-tdep.o to gdb_target_obs.
  2650. 2013-10-01 Yao Qi <yao@codesourcery.com>
  2651. * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
  2652. "solib-target.h".
  2653. (amd64_windows_init_abi): Don't call set_solib_ops and
  2654. set_gdbarch_iterate_over_objfiles_in_search_order. Call
  2655. windows_init_abi instead.
  2656. * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
  2657. "solib-target.h".
  2658. (i386_cygwin_init_abi): Don't call set_solib_ops,
  2659. set_gdbarch_has_dos_based_file_system and
  2660. set_gdbarch_iterate_over_objfiles_in_search_order. Call
  2661. windows_init_abi instead.
  2662. * windows-tdep.c: Include "solib.h" and "solib-target.h".
  2663. (windows_init_abi): New function.
  2664. (windows_iterate_over_objfiles_in_search_order): Make it
  2665. static.
  2666. * windows-tdep.h (windows_init_abi): Declare.
  2667. (windows_iterate_over_objfiles_in_search_order): Remove
  2668. declaration.
  2669. 2013-10-01 Jerome Guitton <guitton@adacore.com>
  2670. Checked in by Joel Brobecker <brobecker@adacore.com>
  2671. * system-gdbinit/elinos.py (get_elinos_environment): Return an
  2672. incomplete dictionnary instead of None in case of missing
  2673. environment variables.
  2674. (elinos_init): in case of an incomplete environment, best
  2675. effort to load system libraries instead of abort.
  2676. 2013-10-01 Joel Brobecker <brobecker@adacore.com>
  2677. * ada-lang.c (ada_has_this_exception_support): Ignore
  2678. mst_solib_trampoline minimal symbols.
  2679. 2013-09-30 Tristan Gingold <gingold@adacore.com>
  2680. * i386-darwin-nat.c (darwin_complete_target): Install methods for
  2681. hardware watchpoint.
  2682. (i386_darwin_dr_set): Support 32 and 64 bit states.
  2683. (i386_darwin_dr_get): Likewise.
  2684. (i386_darwin_dr_set_control): Make static.
  2685. (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
  2686. (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
  2687. 2013-09-30 Luis Machado <lgustavo@codesourcery.com>
  2688. * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
  2689. Replace TIDGET with ptid_get_lwp.
  2690. Replace GET_LWP with ptid_get_lwp.
  2691. * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
  2692. Replace BUILD_THREAD with ptid_build.
  2693. Replace BUILD_LWP with ptid_build.
  2694. Replace PIDGET with ptid_get_pid.
  2695. Replace TIDGET with ptid_get_lwp.
  2696. * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
  2697. * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
  2698. Replace TIDGET with ptid_get_lwp.
  2699. * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
  2700. * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
  2701. Replace TIDGET with ptid_get_lwp.
  2702. Replace GET_LWP with ptid_get_lwp.
  2703. * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
  2704. * auxv.c: Likewise.
  2705. * breakpoint.c: Likewise.
  2706. * common/ptid.c (ptid_is_pid): Condense check for
  2707. null_ptid and minus_one_ptid.
  2708. (ptid_lwp_p): New function.
  2709. (ptid_tid_p): New function.
  2710. * common/ptid.h: Update comments for accessors.
  2711. (ptid_lwp_p): New prototype.
  2712. (ptid_tid_p): New prototype.
  2713. * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
  2714. * gcore.c: Replace PIDGET with ptid_get_pid.
  2715. * gdbthread.h: Likewise.
  2716. * gnu-nat.c: Likewise.
  2717. * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
  2718. Replace TIDGET with ptid_get_lwp.
  2719. * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
  2720. * hppanbsd-nat.c: Likewise.
  2721. * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
  2722. Replace TIDGET with ptid_get_lwp.
  2723. * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
  2724. * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
  2725. * infcmd.c: Likewise.
  2726. * inferior.h: Likewise.
  2727. * inflow.c: Likewise.
  2728. * infrun.c: Likewise.
  2729. * linux-fork.c: Likewise.
  2730. * linux-nat.c: Replace PIDGET with ptid_get_pid.
  2731. Replace GET_PID with ptid_get_pid.
  2732. Replace is_lwp with ptid_lwp_p.
  2733. Replace GET_LWP with ptid_get_lwp.
  2734. Replace BUILD_LWP with ptid_build.
  2735. 2013-09-28 Mike Frysinger <vapier@gentoo.org>
  2736. * common/linux-btrace.c: Move sys/syscall.h out of the
  2737. HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
  2738. Also check for SYS_perf_event_open before attempting to buid.
  2739. 2013-09-27 Doug Evans <dje@google.com>
  2740. * dwarf2read.c (dwarf2_section_info): Add comment.
  2741. (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
  2742. All uses updated.
  2743. (dwarf2_section_empty_p): Rename arg from "info" to "section".
  2744. (dwarf2_read_section): Delete unused local "header". Add section
  2745. name to error message.
  2746. (create_dwo_in_dwp): Tweak comment.
  2747. (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
  2748. * dwarf2read.c (die_reader_specs): Tweak comment.
  2749. (get_section_bfd_owner, get_section_bfd_section): New functions.
  2750. (get_section_name, get_section_file_name): New functions.
  2751. (get_section_id, get_section_flags): New functions.
  2752. (*): Use new functions to access section fields.
  2753. * dwarf2read.c (struct dwo_file): Add/tweak comments.
  2754. (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp. Remove
  2755. arg "htab". All callers updated.
  2756. (create_debug_types_hash_table): Remove redundant copy of
  2757. abbrev_section.
  2758. (create_dwo_in_dwp): Tweak comments.
  2759. (read_str_index): Tweak comment. Record dwarf form name in static
  2760. local.
  2761. 2013-09-27 Pedro Alves <palves@redhat.com>
  2762. * remote.h (REMOTE_SYSROOT_PREFIX): New define.
  2763. (remote_filename_p): Add comment.
  2764. * remote.c (remote_filename_p): Adjust to use
  2765. REMOTE_SYSROOT_PREFIX.
  2766. * solib.c (solib_find): When deciding whether we need to add a
  2767. directory separator, check whether the sysroot is "remote:"
  2768. instead of checking whether the patch has a drive spec. Add
  2769. comments.
  2770. 2013-09-27 Pedro Alves <palves@redhat.com>
  2771. * remote.c (struct stop_reply) <solibs_changed, replay_event>:
  2772. Delete fields.
  2773. (remote_parse_stop_reply): Adjust, setting event->ws.kind
  2774. directly.
  2775. 2013-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
  2776. Fix set debug frame output.
  2777. * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry. Move
  2778. SENTINEL_FRAME entry lower to match enum frame_type order.
  2779. 2013-09-26 Pierre Muller <muller@sourceware.org>
  2780. Replace constant values 8 to 15 by AMD64_R8_REGNUM to
  2781. AMD64_R15_REGNUM when a register index is expected.
  2782. * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
  2783. Substitute in array.
  2784. * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
  2785. (amd64_push_arguments): Substitute in integer_regnum array.
  2786. 2013-09-25 Doug Evans <dje@google.com>
  2787. * objfiles.c (allocate_objfile): Move comment to better place.
  2788. New option "set debug symfile on".
  2789. * NEWS: Mention "set debug symfile".
  2790. * Makefile.in (SFILES): Add symfile-debug.c.
  2791. (COMMON_OBS): Add symfile-debug.o.
  2792. * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
  2793. objfile's symbol functions.
  2794. * objfiles.h (objfile_set_sym_fns): Declare.
  2795. * symfile-debug.c: New file.
  2796. * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
  2797. objfile's symbol functions.
  2798. (reread_symbols): Ditto.
  2799. * symfile.h (struct sym_fns): Delete member "sym_flavour".
  2800. All uses updated.
  2801. (add_symtab_fns): Update prototype.
  2802. * symfile.c (sym_fns_ptr): Delete. Replace with ...
  2803. (registered_sym_fns): ... this.
  2804. (symtab_fns): Update.
  2805. (add_symtab_fns): New arg "flavour". All callers updated.
  2806. (find_sym_fns): Rewrite to use new sym_fns registry.
  2807. * symfile.h (struct sym_fns): Add "objfile" argument to
  2808. sym_read_linetable. All uses updated.
  2809. * symtab.c (domain_name, search_domain_name): New functions.
  2810. * symtab.h (domain_name, search_domain_name): Declare.
  2811. * symfile.h (struct quick_symbol_functions): Reorg arg list of
  2812. map_matching_symbols so objfile is first. All uses updated.
  2813. * dwarf2read.c (dw2_map_matching_symbols): Update signature.
  2814. * psymtab.c (map_matching_symbols_psymtab): Update signature.
  2815. 2013-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
  2816. PR shlibs/8882
  2817. * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
  2818. link map entries.
  2819. 2013-09-24 Doug Evans <dje@google.com>
  2820. * objfiles.c (free_objfile): Move comment.
  2821. 2013-09-24 Joel Brobecker <brobecker@adacore.com>
  2822. * ada-exp.y (string_to_operator): Delete.
  2823. (dummy_string_to_ada_operator): Delete.
  2824. 2013-09-24 Joel Brobecker <brobecker@adacore.com>
  2825. Revert:
  2826. * i386-tdep.h (enum amd64_reg_class): New, moved here from
  2827. amd64-tdep.c.
  2828. (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
  2829. call_dummy_integer_regs, and classify.
  2830. * amd64-tdep.h (amd64_classify): Add declaration.
  2831. * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
  2832. (amd64_reg_class): Delete, moved to i386-tdep.h.
  2833. (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
  2834. Replace call to amd64_classify by call to tdep->classify.
  2835. (amd64_push_arguments): Get the list of registers to use for
  2836. passing integer parameters from the gdbarch tdep structure,
  2837. rather than using a hardcoded one. Replace calls to amd64_classify
  2838. by calls to tdep->classify.
  2839. (amd64_push_dummy_call): Get the register number used for
  2840. the "hidden" argument from tdep->call_dummy_integer_regs.
  2841. (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
  2842. and tdep->call_dummy_integer_regs. Set tdep->classify.
  2843. 2013-09-24 Joel Brobecker <brobecker@adacore.com>
  2844. Revert:
  2845. * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
  2846. * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
  2847. where tdep->memory_args_by_pointer is non-zero.
  2848. 2013-09-24 Joel Brobecker <brobecker@adacore.com>
  2849. Revert:
  2850. * i386-tdep.h (struct gdbarch_tdep): Add new field
  2851. integer_param_regs_saved_in_caller_frame.
  2852. * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
  2853. stack if tdep->integer_param_regs_saved_in_caller_frame is set.
  2854. 2013-09-24 Joel Brobecker <brobecker@adacore.com>
  2855. * amd64-windows-tdep.c: #include "value.h"
  2856. (amd64_windows_classify): Delete.
  2857. (amd64_windows_passed_by_integer_register)
  2858. (amd64_windows_passed_by_xmm_register)
  2859. (amd64_windows_passed_by_pointer)
  2860. (amd64_windows_adjust_args_passed_by_pointer)
  2861. (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
  2862. (amd64_windows_push_dummy_call): New functions.
  2863. (amd64_windows_init_abi): Remove setting of
  2864. tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
  2865. tdep->classify, tdep->memory_args_by_pointer and
  2866. tdep->integer_param_regs_saved_in_caller_frame.
  2867. Add call to set_gdbarch_push_dummy_call.
  2868. 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
  2869. * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
  2870. objfile->original_name.
  2871. 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
  2872. Pass down original filename for objfile.
  2873. * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
  2874. * elfread.c (elf_symfile_read): Likewise.
  2875. * jit.c (jit_object_close_impl): Update allocate_objfile call, no
  2876. longer set ORIGINAL_NAME.
  2877. (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
  2878. * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
  2879. * machoread.c (macho_add_oso_symfile): Add parameter name. Update
  2880. symbol_file_add_from_bfd call.
  2881. (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
  2882. (macho_check_dsym): Add parameter filenamep. Change function comment.
  2883. Set *filenamep.
  2884. (macho_symfile_read): New variable dsym_filename. Update
  2885. macho_check_dsym call. Use it for symbol_file_add_separate.
  2886. * objfiles.c (allocate_objfile): Add parameter name. New comment for
  2887. it. Use it for objfile->original_name.
  2888. (objfile_name): Return OBFD's filename, if available.
  2889. * objfiles.h (allocate_objfile): Add new parameter name.
  2890. * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
  2891. * symfile-mem.c (symbol_file_add_from_memory): Update
  2892. symbol_file_add_from_bfd call.
  2893. * symfile.c (read_symbols): Update symbol_file_add_separate call, new
  2894. comment for it.
  2895. (symbol_file_add_with_addrs): New parameter name, add function comment
  2896. for it. Remove variable name. Update allocate_objfile call.
  2897. (symbol_file_add_separate): New parameter name, add function comment
  2898. for it. Update symbol_file_add_with_addrs call.
  2899. (symbol_file_add_from_bfd): New parameter name. Update
  2900. symbol_file_add_with_addrs call.
  2901. (symbol_file_add): Update symbol_file_add_from_bfd call.
  2902. (reread_symbols): New variable original_name. Save
  2903. objfile->original_name by it.
  2904. * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
  2905. second parameter.
  2906. 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
  2907. Code cleanup: Add objfile_name accessor function.
  2908. * ada-lang.c (is_known_support_routine): Use objfile_name.
  2909. * auto-load.c (source_gdb_script_for_objfile)
  2910. (auto_load_objfile_script): Likewise.
  2911. * coffread.c (coff_symtab_read, read_one_sym): Likewise.
  2912. * dbxread.c (dbx_symfile_read): Likewise.
  2913. * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
  2914. * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
  2915. * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
  2916. (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
  2917. (lookup_dwp_signatured_type, lookup_dwo_unit)
  2918. (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
  2919. (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
  2920. (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
  2921. (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
  2922. (dwarf2_record_block_ranges, read_common_block, read_typedef)
  2923. (read_subrange_type, load_partial_dies, read_partial_die)
  2924. (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
  2925. (die_containing_type, build_error_marker_type, lookup_die_type)
  2926. (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
  2927. (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
  2928. (get_DW_AT_signature_type, write_psymtabs_to_index)
  2929. (save_gdb_index_command): Likewise.
  2930. * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
  2931. Likewise.
  2932. * expprint.c (dump_subexp_body_standard): Likewise.
  2933. * gdbtypes.c (type_name_no_tag_or_error): Likewise.
  2934. * jit.c (jit_object_close_impl): Use the objfile field name renamed to
  2935. original_name.
  2936. * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
  2937. obj_name, use objfile_name for it, use the variable.
  2938. (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
  2939. Use objfile_name.
  2940. * machoread.c (macho_symtab_read, macho_check_dsym)
  2941. (macho_symfile_relocate): Likewise.
  2942. * maint.c (maintenance_translate_address): Likewise.
  2943. * minidebug.c (find_separate_debug_file_in_section): Likewise.
  2944. * minsyms.c (install_minimal_symbols): Likewise.
  2945. * objfiles.c (allocate_objfile): Use the objfile field name renamed to
  2946. original_name.
  2947. (filter_overlapping_sections): Use objfile_name.
  2948. (objfile_name): New function.
  2949. * objfiles.h (struct objfile): Rename field name to original_name.
  2950. (objfile_name): New prototype.
  2951. * printcmd.c (sym_info, address_info): Use objfile_name.
  2952. * probe.c (parse_probes, collect_probes, compare_probes)
  2953. (info_probes_for_ops): Likewise.
  2954. * progspace.c (clone_program_space): Likewise.
  2955. * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
  2956. (maintenance_info_psymtabs): Likewise.
  2957. * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
  2958. (source_section_scripts): Likewise.
  2959. * python/py-objfile.c (objfpy_get_filename): Likewise.
  2960. * python/py-progspace.c (pspy_get_filename): Likewise.
  2961. * solib-aix.c (solib_aix_get_toc_value): Likewise.
  2962. * solib-som.c (match_main, som_solib_section_offsets): Likewise.
  2963. * solib.c (solib_read_symbols): Likewise.
  2964. * stabsread.c (scan_file_globals): Likewise.
  2965. * stap-probe.c (handle_stap_probe): Likewise.
  2966. * symfile.c (symbol_file_clear, separate_debug_file_exists)
  2967. (find_separate_debug_file_by_debuglink): Likewise.
  2968. (reread_symbols): Likewise. Use the objfile field name renamed to
  2969. original_name.
  2970. (allocate_symtab): Use objfile_name.
  2971. * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
  2972. (dump_objfile, dump_msymbols, dump_symtab_1)
  2973. (maintenance_print_msymbols, maintenance_print_objfiles)
  2974. (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
  2975. * target.c (target_translate_tls_address, target_info): Likewise.
  2976. * xcoffread.c (xcoff_initial_scan): Make variable name const. Use
  2977. objfile_name.
  2978. 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
  2979. Code cleanup.
  2980. * probe.c (parse_probes): Rename variable objfile_name to
  2981. objfile_namestr.
  2982. 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
  2983. Remove solib-sunos.c.
  2984. * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
  2985. * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
  2986. * objfiles.c (rt_common_objfile): Remove.
  2987. (free_objfile): Remove rt_common_objfile comparison.
  2988. * objfiles.h (rt_common_objfile): Remove.
  2989. * solib-sunos.c: Remove.
  2990. * symfile.c (reread_symbols): Remove solib-sunos.c comment.
  2991. 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
  2992. Remove a.out NetBSD and OpenBSD hosts.
  2993. * NEWS (Removed native configurations): New.
  2994. * config/arm/nbsdaout.mh: Remove.
  2995. * config/i386/nbsdaout.mh: Remove.
  2996. * config/i386/obsdaout.mh: Remove.
  2997. * config/m68k/nbsdaout.mh: Remove.
  2998. * config/sparc/nbsdaout.mh: Remove.
  2999. * config/vax/nbsdaout.mh: Remove.
  3000. * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
  3001. (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
  3002. (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
  3003. error.
  3004. (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
  3005. (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
  3006. (sparc-*-netbsd*, vax-*-netbsd*): Remove.
  3007. 2013-09-23 Tom Tromey <tromey@redhat.com>
  3008. * linespec.c (struct minsym_and_objfile): Remove.
  3009. (minsym_and_objfile_d): Remove.
  3010. (struct linespec, struct collect_info, linespec_parse_basic)
  3011. (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
  3012. (compare_msymbols, find_method, find_function_symbols)
  3013. (find_linespec_symbols, struct collect_minsyms, compare_msyms)
  3014. (add_minsym, search_minsyms_for_name): Update.
  3015. 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
  3016. * regcache.c: Add include of valprint.h.
  3017. (dump_endian_bytes): Delete.
  3018. (regcache_dump): Use print_hex_chars not dump_endian_bytes.
  3019. 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
  3020. * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
  3021. 2013-09-19 Pedro Alves <palves@redhat.com>
  3022. * breakpoint.c (remove_threaded_breakpoints): Skip non-user
  3023. breakpoints.
  3024. 2013-09-19 Pedro Alves <palves@redhat.com>
  3025. Thomas Schwinge <thomas@codesourcery.com>
  3026. Yue Lu <hacklu.newborn@gmail.com>
  3027. * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
  3028. Take a gdb_byte pointer instead of a char pointer.
  3029. * gnu-nat.c (gnu_xfer_memory): Adjust interface as
  3030. gnu_xfer_partial helper.
  3031. (gnu_xfer_partial): New function.
  3032. (gnu_target): Don't install a deprecated_xfer_memory hook.
  3033. Install a to_xfer_partial hook.
  3034. 2013-09-19 Jan Kratochvil <jan.kratochvil@redhat.com>
  3035. Constification.
  3036. * main.c (captured_main): Replace catch_command_errors by
  3037. catch_command_errors_const. Twice.
  3038. * symfile.c (symbol_file_add_main_1): Make args parameter const.
  3039. (symbol_file_add): Make name parameter const.
  3040. (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
  3041. (symfile_bfd_open): Make name parameter const, rename it to cname. Add
  3042. variable name. Change their usage accordingly.
  3043. * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
  3044. const.
  3045. (symbol_file_add_main): Make args parameter const.
  3046. 2013-09-18 Raunaq Bathija <raunaq12@in.ibm.com>
  3047. Ulrich Weigand <uweigand@de.ibm.com>
  3048. * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
  3049. of c_value member.
  3050. (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
  3051. 2013-09-18 Pedro Alves <palves@redhat.com>
  3052. Yue Lu <hacklu.newborn@gmail.com>
  3053. * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
  3054. (gnu_create_inferior)
  3055. (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
  3056. (set_sig_thread_cmd): Use the lwpid field of ptids to
  3057. store/extract thread ids instead of the tid field.
  3058. * i386gnu-nat.c (gnu_fetch_registers): Adjust.
  3059. 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
  3060. * infcmd.c (default_print_one_register_info): Add detection of
  3061. optimized out values.
  3062. (default_print_registers_info): Switch to using
  3063. get_frame_register_value.
  3064. 2013-09-18 Markus Metzger <markus.t.metzger@intel.com>
  3065. * infrun.c (handle_inferior_event): Check if we know the
  3066. function start address before setting a resume breakpoint.
  3067. 2013-09-18 Pedro Alves <palves@redhat.com>
  3068. * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
  3069. minus_one_ptid instead of looking at the ptid's tid field and
  3070. comparing that to -1.
  3071. 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
  3072. * main.h (get_gdb_program_name): Remove extra whitespace.
  3073. 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
  3074. * main.h (get_gdb_program_name): Add declaration.
  3075. * main.c (get_gdb_program_name): Add definition.
  3076. 2013-09-17 Doug Evans <dje@google.com>
  3077. * dwarf2read.c: Move definitions of complaint functions to after
  3078. forward declarations of local functions.
  3079. 2013-09-17 Muhammad Waqas <mwaqas@codesourcery.com>
  3080. Pedro Alves <palves@redhat.com>
  3081. PR gdb/11568
  3082. * breakpoint.c (remove_threaded_breakpoints): New function.
  3083. (_initialize_breakpoint): Attach remove_threaded_breakpoints
  3084. as thread_exit observer.
  3085. 2013-09-17 Pedro Alves <palves@redhat.com>
  3086. PR gdb/15911
  3087. * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
  3088. * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
  3089. * corelow.c (core_open):
  3090. * frame.h (print_stack_frame, print_frame_info): New
  3091. 'set_current_sal' parameter.
  3092. * infcmd.c (finish_command, kill_command): Adjust call to
  3093. print_stack_frame.
  3094. * inferior.c (inferior_command): Likewise.
  3095. * infrun.c (normal_stop): Likewise.
  3096. * linux-fork.c (linux_fork_context): Likewise.
  3097. * record-full.c (record_full_goto_entry, record_full_restore):
  3098. Likewise.
  3099. * remote-mips.c (common_open): Likewise.
  3100. * stack.c (print_stack_frame): New 'set_current_sal' parameter.
  3101. Use it.
  3102. (print_frame_info): New 'set_current_sal' parameter. Set the last
  3103. displayed sal depending on the new paremeter instead of looking at
  3104. print_what.
  3105. (backtrace_command_1, select_and_print_frame, frame_command)
  3106. (current_frame_command, up_command, down_command): Adjust call to
  3107. print_stack_frame.
  3108. * thread.c (print_thread_info, restore_selected_frame)
  3109. (do_captured_thread_select): Adjust call to print_stack_frame.
  3110. * tracepoint.c (tfind_1): Likewise.
  3111. * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
  3112. (mi_cmd_stack_info_frame): Likewise.
  3113. * mi/mi-interp.c (mi_on_normal_stop): Likewise.
  3114. * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
  3115. 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
  3116. * value.c (isvoid_internal_fn): Replace "parameter" with
  3117. "argument".
  3118. 2013-09-16 Stan Shebs <stan@codesourcery.com>
  3119. * README: Update references to writing code for GDB.
  3120. * configure.ac (build_warnings): Remove obsolete comment.
  3121. * configure: Regenerate.
  3122. * gdbarch.sh: Remove references to gdbint.texinfo.
  3123. * gdbarch.h: Regenerate.
  3124. * gdbtypes.c (objfile_type): Remove comments referencing internals
  3125. manual and D10V.
  3126. 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
  3127. * NEWS: Mention new convenience function $_isvoid.
  3128. * value.c (isvoid_internal_fn): New function.
  3129. (_initialize_values): Add new convenience function $_isvoid.
  3130. 2013-09-16 Pierre Muller <muller@sourceware.org>
  3131. * arm-linux-tdep.c: Add "elf/common.h" header.
  3132. Remove AT_HWCAP macro definintion as it is provided in
  3133. added include file.
  3134. * s390-tdep.c: Remove system header <elf.h>
  3135. Add "elf/common.h" header for AT_HWCAP definition.
  3136. (s390_core_read_description): Use correct CORE_ADDR
  3137. for hwcap local variable used as third parameter
  3138. of function target_auxv_search.
  3139. 2013-09-14 Pierre Muller <muller@sourceware.org>
  3140. Tom Tromey <tromey@redhat.com>
  3141. Pedro Alves <palves@redhat.com>
  3142. * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
  3143. mode if operating system doesn't know O_CLOEXEC.
  3144. 2013-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
  3145. Code cleanup.
  3146. * symfile.c (reread_symbols): Move variable obfd_filename to a more
  3147. inner block.
  3148. 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
  3149. * NEWS: Mention TDB support.
  3150. * features/s390-tdb.xml: New file.
  3151. * features/s390-te-linux64.xml: New file.
  3152. * features/s390x-te-linux64.xml: New file.
  3153. * features/Makefile (WHICH): Add new tdescs above.
  3154. (s390-te-linux64-expedite): Set.
  3155. (s390x-te-linux64-expedite): Set.
  3156. * features/s390-te-linux64.c: New file (generated).
  3157. * features/s390x-te-linux64.c: New file (generated).
  3158. * regformats/s390-te-linux64.dat: New file (generated).
  3159. * regformats/s390x-te-linux64.dat: New file (generated).
  3160. * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
  3161. (HWCAP_S390_TE): Likewise.
  3162. (S390_TDB_DWORD0_REGNUM): Likewise.
  3163. (S390_TDB_DWORD0_REGNUM): Likewise.
  3164. (S390_TDB_ABORT_CODE_REGNUM): Likewise.
  3165. (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
  3166. (S390_TDB_ATIA_REGNUM): Likewise.
  3167. (S390_TDB_R0_REGNUM): Likewise.
  3168. (S390_TDB_R1_REGNUM): Likewise.
  3169. (S390_TDB_R2_REGNUM): Likewise.
  3170. (S390_TDB_R3_REGNUM): Likewise.
  3171. (S390_TDB_R4_REGNUM): Likewise.
  3172. (S390_TDB_R5_REGNUM): Likewise.
  3173. (S390_TDB_R6_REGNUM): Likewise.
  3174. (S390_TDB_R7_REGNUM): Likewise.
  3175. (S390_TDB_R8_REGNUM): Likewise.
  3176. (S390_TDB_R9_REGNUM): Likewise.
  3177. (S390_TDB_R10_REGNUM): Likewise.
  3178. (S390_TDB_R11_REGNUM): Likewise.
  3179. (S390_TDB_R12_REGNUM): Likewise.
  3180. (S390_TDB_R13_REGNUM): Likewise.
  3181. (S390_TDB_R14_REGNUM): Likewise.
  3182. (S390_TDB_R15_REGNUM): Likewise.
  3183. (S390_NUM_REGS): Increase.
  3184. (S390_IS_TDBREGSET_REGNUM): New macro.
  3185. (s390_regmap_tdb): Declare.
  3186. (s390_sizeof_tdbregset): Define.
  3187. (tdesc_s390_te_linux64): Declare.
  3188. (tdesc_s390x_te_linux64): Likewise.
  3189. * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
  3190. "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
  3191. (s390_regmap_tdb): New regmap.
  3192. (s390_supply_tdb_regset): New function.
  3193. (s390_tdb_regset): New regset.
  3194. (s390_linux64v2_regset_sections): Add TDB regset to list.
  3195. (s390x_linux64v2_regset_sections): Likewise.
  3196. (s390_regset_from_core_section): Recognize TDB core note section.
  3197. (s390_core_read_description): If HWCAP indicates TE support,
  3198. select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
  3199. (s390_gdbarch_init): Handle TDB regset.
  3200. (_initialize_s390_tdep): Initialize new tdescs.
  3201. * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
  3202. (have_regset_tdb): New variable.
  3203. (s390_native_supply): Support register invalidation.
  3204. (fetch_regset): Invalidate registers if ptrace yields ENODATA.
  3205. (check_regset): Treat ENODATA as "regset exists".
  3206. (s390_linux_fetch_inferior_registers): Add TDB.
  3207. (s390_read_description): Check for TDB existence and select
  3208. appropriate tdesc.
  3209. * gdbserver/Makefile.in (clean): Add removal of new makefile
  3210. targets.
  3211. (s390-te-linux64.c): New makefile target.
  3212. (s390x-te-linux64.c): Likewise.
  3213. * gdbserver/configure.srv (srv_regobj): Append new objects
  3214. s390-te-linux64.o and s390x-te-linux64.o.
  3215. (srv_xmlfiles): Append new files s390-te-linux64.xml,
  3216. s390x-te-linux64.xml, and s390-tdb.xml.
  3217. * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
  3218. declaration.
  3219. (tdesc_s390_te_linux64): Likewise.
  3220. (init_registers_s390x_te_linux64): Likewise.
  3221. (tdesc_s390x_te_linux64): Likewise.
  3222. (s390_check_regset): Treat ENODATA as "regset exists".
  3223. (s390_arch_setup): Add TDB regset support.
  3224. (initialize_low_arch): Initialize registers for new tdescs.
  3225. 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
  3226. * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
  3227. (S390_IS_FPREGSET_REGNUM): New macro.
  3228. * s390-tdep.c (s390_dwarf_regmap): Make const.
  3229. (regnum_is_gpr_full): New function for replacing repeated code.
  3230. (s390_pseudo_register_name): Use it.
  3231. (s390_pseudo_register_type): Likewise.
  3232. (s390_pseudo_register_read): Likewise.
  3233. (s390_pseudo_register_write): Likewise.
  3234. (s390_unwind_pseudo_register): Likewise.
  3235. (s390_regmap_gregset): New format for regmap.
  3236. (s390x_regmap_gregset): Likewise.
  3237. (s390_regmap_fpregset): Likewise.
  3238. (s390_regmap_upper): Likewise.
  3239. (s390_regmap_last_break): Likewise.
  3240. (s390_regmap_system_call): Likewise.
  3241. (s390_supply_regset): Adjust to new regmap format.
  3242. (s390_collect_regset): Likewise.
  3243. * s390-nat.c (s390_native_supply): Adjust to new regmap format.
  3244. (s390_native_collect): Likewise.
  3245. (supply_gregset): Likewise.
  3246. (fill_gregset): Likewise.
  3247. (supply_fpregset): Likewise.
  3248. (fill_fpregset): Likewise.
  3249. (fetch_regset): Likewise.
  3250. (store_regset): Likewise.
  3251. (s390_linux_fetch_inferior_registers): Likewise.
  3252. (s390_linux_fetch_inferior_registers): Likewise.
  3253. 2013-09-12 Andrew Pinski <apinski@cavium.com>
  3254. * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
  3255. 2013-09-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
  3256. * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
  3257. 2013-09-09 Andrew Burgess <aburgess@broadcom.com>
  3258. * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
  3259. 2013-09-06 Pedro Alves <palves@redhat.com>
  3260. * remote-sim.c (dump_mem, gdbsim_fetch_register)
  3261. (gdbsim_store_register, gdbsim_kill, gdbsim_load)
  3262. (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
  3263. (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
  3264. (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
  3265. gdb_stdlog.
  3266. 2013-09-06 Pedro Alves <palves@redhat.com>
  3267. * remote-sim.c (dump_mem): Constify buf parameter.
  3268. gdbsim_xfer_inferior_memory): Rename to ...
  3269. (gdbsim_xfer_memory): ... this. Adjust interface as
  3270. target_xfer_partial helper.
  3271. (gdbsim_xfer_partial): New function.
  3272. (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
  3273. Install a to_xfer_partial hook. Send output to gdb_stdlog.
  3274. 2013-09-06 Pedro Alves <palves@redhat.com>
  3275. * remote-sim.c (gdbsim_xfer_inferior_memory): Use
  3276. host_address_to_string, and send debug output to gdb_stdlog.
  3277. 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
  3278. * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
  3279. * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
  3280. gdb_target_obs for cris target.
  3281. * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
  3282. (cris_gdbarch_init): Move calls to
  3283. set_gdbarch_fetch_tls_load_module_address and
  3284. set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
  3285. Add call to gdbarch_init_osabi.
  3286. * cris-linux-tdep.c: New file.
  3287. * cris-tdep.h: New file.
  3288. 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
  3289. * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
  3290. to deprecated_init_ui_hook.
  3291. 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
  3292. * cli/cli-interp.c (_initialize_cli_interp): Add a
  3293. command_loop_proc to interp_procs.
  3294. * event-top.c (cli_command_loop): Change signature to match
  3295. interp_command_loop_ftype.
  3296. * event-top.h (cli_command_loop): Same.
  3297. * interps.c (interp_new): Require every interpreter to have a
  3298. command_loop_proc.
  3299. (current_interp_command_loop): Just call the command_loop_proc on
  3300. the current interpreter.
  3301. * tui/tui-interp.c (_initialize_tui_interp): Add a
  3302. command_loop_proc to interp_procs.
  3303. 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
  3304. * cris-tdep.c (cris_gdbarch_init): Add call to
  3305. get_gdbarch_fetch_tls_load_module_address.
  3306. 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
  3307. * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
  3308. (cris_elf_gregset_t): Rename from elf_gregset_t.
  3309. (crisv32_elf_gregset_t): Adjust.
  3310. (cris_supply_gregset, fetch_core_registers): Adjust.
  3311. 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
  3312. * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
  3313. 2013-09-05 Andrew Burgess <aburgess@broadcom.com>
  3314. * defs.h (deprecated_command_loop_hook): Remove, including
  3315. references in comments.
  3316. * interps.c (current_interp_command_loop): No longer use
  3317. deprecated_command_loop_hook.
  3318. (clear_interpreter_hooks): Remove deprecated_command_loop_hook
  3319. setup.
  3320. * top.c (deprecated_command_loop_hook): Remove.
  3321. 2013-09-05 Pedro Alves <palves@redhat.com>
  3322. * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
  3323. local is now int instead of ULONGEST. Print it with %d
  3324. instead of paddress.
  3325. 2013-09-05 Tristan Gingold <gingold@adacore.com>
  3326. * MAINTAINERS: Remove avr maintainership.
  3327. 2013-09-05 Pedro Alves <palves@redhat.com>
  3328. * findvar.c (value_of_register): Rework in terms of
  3329. value_of_register_lazy.
  3330. 2013-09-05 Muhammad Bilal <mbilal@codesourcery.com>
  3331. * symfile.c (add_symbol_file_command): Remove trailing
  3332. whitespaces and blank line after comment.
  3333. 2013-09-05 Pedro Alves <palves@redhat.com>
  3334. * tui/tui-regs.c (tui_register_format): Don't look at the
  3335. register's name here. Return string representing register
  3336. value instead of storing it in the data element.
  3337. (tui_get_register): Compare register string representations
  3338. instead of register value states and contents.
  3339. 2013-09-05 Pedro Alves <palves@redhat.com>
  3340. PR tui/15933
  3341. * tui/tui-regs.c (tui_show_registers): Show registers of the
  3342. selected frame, not the current frame.
  3343. 2013-09-05 Ricard Wanderlof <ricardw@axis.com>
  3344. * MAINTAINERS (Write After Approval): Add myself to the list.
  3345. 2013-09-04 Doug Evans <dje@google.com>
  3346. * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
  3347. (queue_and_load_dwo_tu): New function.
  3348. (lookup_dwo_signatured_type): Set per_cu.tu_read.
  3349. (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
  3350. Make dependent_cu optional.
  3351. (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
  3352. and an older .gdb_index is in use, queue and load all its TUs too.
  3353. 2013-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
  3354. Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
  3355. * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
  3356. variable search_flags.
  3357. * defs.h (OPF_DISABLE_REALPATH): Rename to ...
  3358. (OPF_RETURN_REALPATH): ... here.
  3359. * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
  3360. * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
  3361. call. Twice.
  3362. * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
  3363. openp call.
  3364. * solib.c (solib_find): Likewise. Four times.
  3365. * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
  3366. in the function comment and for the realpath_fptr variable.
  3367. (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
  3368. (find_and_open_source): Likewise. Twice.
  3369. * symfile.c (symfile_bfd_open): Likewise, also twice.
  3370. 2013-09-04 Doug Evans <dje@google.com>
  3371. * progspace.c (save_current_space_and_thread): Remove unnecessary
  3372. call to save_current_inferior.
  3373. 2013-09-04 Andrew Burgess <aburgess@broadcom.com>
  3374. * sh64-tdep.c (sh64_do_register): Return after printing message
  3375. about unavailable register contents.
  3376. 2013-09-04 Muhammad Bilal <mbilal@codesourcery.com>
  3377. Pedro Alves <palves@redhat.com>
  3378. * symfile.c (add_symbol_file_command): Error out on unknown
  3379. option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
  3380. options and collapse into single conditional branch.
  3381. 2013-09-03 Luis Machado <lgustavo@codesourcery.com>
  3382. * inf-child.c (inf_child_follow_fork): New parameter
  3383. detach_fork.
  3384. * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
  3385. * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
  3386. * inferior.h (detach_fork): Remove.
  3387. * infrun.c (detach_fork): Adjust comment and make it
  3388. static.
  3389. (follow_fork): Pass detach_fork parameter to
  3390. target_follow_fork.
  3391. * linux-nat.c (linux_child_follow_fork): New parameter
  3392. detach_fork.
  3393. * target.c (target_follow_fork): New parameter detach_fork.
  3394. Pass detach_fork as parameter and print its value.
  3395. * target.h (struct target_ops) <to_follow_fork>: New int
  3396. parameter.
  3397. (target_follow_fork): New parameter detach_fork.
  3398. 2013-09-03 Joel Brobecker <brobecker@adacore.com>
  3399. * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
  3400. Replace sec->bfd by sec->the_bfd_section->owner.
  3401. 2013-09-03 Yao Qi <yao@codesourcery.com>
  3402. * linux-tdep.c (linux_is_uclinux): New function. Code moved
  3403. from linux_has_shared_address_space.
  3404. (linux_has_shared_address_space): Call linux_is_uclinux.
  3405. * linux-tdep.h (linux_is_uclinux): Declare.
  3406. * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
  3407. linux_is_uclinux.
  3408. 2013-09-03 Yao Qi <yao@codesourcery.com>
  3409. * config/djgpp/fnchange.lst: Remove entry of
  3410. i386-interix-nat.c and i386-interix-tdep.c.
  3411. * configure.ac: Remove '*-*-interix*'.
  3412. * configure: Re-generated.
  3413. * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
  3414. * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
  3415. obsolete comments.
  3416. * osabi.c (gdb_osabi_names): Remove "Interix".
  3417. 2013-09-03 Yao Qi <yao@codesourcery.com>
  3418. * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
  3419. 2013-09-02 Markus Metzger <markus.t.metzger@intel.com>
  3420. * record.h (record_print_flag) <record_print_src_line,
  3421. record_print_insn_range>: Rename into ...
  3422. (record_print_flag) <record_print_src_line,
  3423. record_print_insn_range>: ... this. Update all users.
  3424. 2013-09-02 Pierre Muller <muller@sourceware.org>
  3425. * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
  3426. error code.
  3427. 2013-09-02 Pierre Muller <muller@sourceware.org>
  3428. * windows-nat.c (windows_xfer_memory): Fix compilation failure
  3429. by use of plongest function.
  3430. 2013-09-02 Tristan Gingold <gingold@adacore.com>
  3431. * NEWS: Add entry mentioning support for native Windows x64
  3432. SEH data.
  3433. * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
  3434. "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
  3435. (struct amd64_windows_frame_cache): New struct.
  3436. (amd64_windows_w2gdb_regnum): New global.
  3437. (pc_in_range, amd64_windows_frame_decode_epilogue)
  3438. (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
  3439. (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
  3440. (amd64_windows_frame_this_id): New functions.
  3441. (amd64_windows_frame_unwind): New static global.
  3442. (amd64_windows_skip_prologue): New function.
  3443. (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
  3444. with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
  3445. with amd64_windows_skip_prologue.
  3446. 2013-08-30 Joel Brobecker <brobecker@adacore.com>
  3447. GDB 7.6.1 released.
  3448. 2013-08-30 Pedro Alves <palves@redhat.com>
  3449. * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
  3450. SRC_AND_LOC.
  3451. 2013-08-30 Pedro Alves <palves@redhat.com>
  3452. * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
  3453. warning text.
  3454. 2013-08-30 Pedro Alves <palves@redhat.com>
  3455. * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
  3456. Adjust arguments to print_stack_frame.
  3457. 2013-08-30 Pedro Alves <palves@redhat.com>
  3458. * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
  3459. 2013-08-30 Pedro Alves <palves@redhat.com>
  3460. * frame.h (show_and_print_stack_frame): Delete declaration.
  3461. 2013-08-30 Phil Muldoon <pmuldoon@redhat.com>
  3462. PR python/15461
  3463. * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
  3464. (archpy_name): Check for valid architecture.
  3465. (archpy_disassemble): Ditto.
  3466. 2013-08-29 Joel Brobecker <brobecker@adacore.com>
  3467. * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
  3468. instead of "long long" in call to ptrace64.
  3469. 2013-08-29 Andrew Burgess <aburgess@broadcom.com>
  3470. * mi/mi-interp.c (mi_command_loop): Change signature to match
  3471. interp_command_loop_ftype.
  3472. (mi1_command_loop): Remove.
  3473. (mi2_command_loop): Remove.
  3474. (mi3_command_loop): Remove.
  3475. (mi_interpreter_resume): Remove setting of
  3476. deprecated_command_loop_hook.
  3477. (_initialize_mi_interp): Set mi_command_loop as the command loop
  3478. callback.
  3479. 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
  3480. * valops.c (do_search_struct_field): Pass v2 instead of base_type to
  3481. value_type.
  3482. 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
  3483. * value.c (allocate_value_contents): Make static.
  3484. * value.h (allocate_value_contents): Remove prototype.
  3485. 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
  3486. * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
  3487. of assembling value via allocate_value_lazy and attribute setter.
  3488. * findvar.c (default_read_var_value): Use value_at_lazy instead of
  3489. assembling value via allocate_value_lazy and attribute setter.
  3490. * valops.c (do_search_struct_field): Use value_at_lazy instead of
  3491. assembling value via allocate_value_lazy and attribute setter.
  3492. 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
  3493. * value.c (value_from_contents_and_address): Replace allocate_value and
  3494. memcpy with value_from_contents.
  3495. 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
  3496. * python/py-framefilter.c (py_print_frame): Remove usage of
  3497. PyString_AsString. Use python_string_to_host_string instead.
  3498. Refactor function to work with a string as a new allocation
  3499. instead of a pointer.
  3500. (py_print_frame): Ditto.
  3501. * python/lib/gdb/frames.py (return_list): Cain iterators together
  3502. instead of adding them as a list.
  3503. (_sort_list): Call return_list, and remove duplicate code.
  3504. (execute_frame_filters): Convert iterator to a list with list().
  3505. * python/lib/gdb/command/frame_filters.py
  3506. (SetFrameFilterPriority._set_filter_priority): Convert priority
  3507. attribute to an integer.
  3508. * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
  3509. wrapper function __next__.
  3510. * python/lib/gdb/FrameDecorator.py: If basestring not defined,
  3511. define as "str".
  3512. 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
  3513. PR python/15752
  3514. * python/py-framefilter.c (apply_frame_filter): Check
  3515. gdb_python_initialized. Exit if the Python frame-filter code
  3516. cannot be initialized.
  3517. 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
  3518. PR cli/15842
  3519. * top.c (print_gdb_version): Remove erroneous newline after help
  3520. text.
  3521. 2013-08-29 Yao Qi <yao@codesourcery.com>
  3522. * varobj.c (install_dynamic_child): Remove trailing space.
  3523. Add one blank line after variable declaration.
  3524. 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
  3525. PR gdb/15415
  3526. * corefile.c (get_exec_file): Use exec_filename.
  3527. * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
  3528. * exec.c (exec_close): Free EXEC_FILENAME.
  3529. (exec_file_attach): New variable canonical_pathname. Use
  3530. OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
  3531. EXEC_FILENAME.
  3532. * exec.h (exec_filename): New.
  3533. * inferior.c (print_inferior, inferior_command): Use
  3534. PSPACE_EXEC_FILENAME.
  3535. * mi/mi-main.c (print_one_inferior): Likewise.
  3536. * progspace.c (clone_program_space, print_program_space): Likewise.
  3537. * progspace.h (struct program_space): New field pspace_exec_filename.
  3538. * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
  3539. realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
  3540. 2013-08-28 Will Newton <will.newton@linaro.org>
  3541. * common/linux-ptrace.c: Include stdint.h unconditionally.
  3542. 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
  3543. Code cleanup.
  3544. * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
  3545. 2013-08-28 Yao Qi <yao@codesourcery.com>
  3546. Pedro Alves <palves@redhat.com>
  3547. * event-top.c (gdb_setup_readline): Call stderr_fileopen
  3548. instead of stdio_fileopen.
  3549. * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
  3550. .Call stderr_fileopen instead of stdio_fileopen.
  3551. * ui-file.c [__MINGW32__] (stderr_file_write): New function.
  3552. [__MINGW32__] (stderr_file_fputs): New function.
  3553. (stderr_fileopen): New function.
  3554. * ui-file.h (stderr_fileopen): Declare.
  3555. 2013-08-27 Doug Evans <dje@google.com>
  3556. * dwarf2read.c (struct dwarf2_cu): Tweak comment.
  3557. (struct dwarf2_per_cu_data): Ditto.
  3558. (maybe_queue_comp_unit): Delete forward decl. Add comment.
  3559. (process_imported_unit_die): Ditto.
  3560. (follow_die_sig_1): Simplify assert.
  3561. 2013-08-27 Pedro Alves <palves@redhat.com>
  3562. * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
  3563. xfer_partial's interface. Return TARGET_XFER_E_IO on error.
  3564. (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
  3565. windows_xfer_memory directly.
  3566. (init_windows_ops): Don't install a deprecated_xfer_memory method.
  3567. 2013-08-27 Pedro Alves <palves@redhat.com>
  3568. * darwin-nat.c (darwin_xfer_memory): Delete.
  3569. (_initialize_darwin_inferior): Don't install a
  3570. deprecated_xfer_memory method.
  3571. 2013-08-27 Pedro Alves <pedro@codesourcery.com>
  3572. Yao Qi <yao@codesourcery.com>
  3573. * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
  3574. (parse_no_frames_option): Remove.
  3575. (mi_cmd_stack_list_locals): Handle --skip-unavailable.
  3576. (mi_cmd_stack_list_args): Adjust.
  3577. (mi_cmd_stack_list_variables): Handle --skip-unavailable.
  3578. (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
  3579. early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
  3580. Caller update.
  3581. (list_args_or_locals): New parameter 'skip_unavailable'.
  3582. Handle it.
  3583. * valprint.c (scalar_type_p): Rename to ...
  3584. (val_print_scalar_type_p): ... this. Make extern.
  3585. (val_print, value_check_printable): Adjust.
  3586. * valprint.h (val_print_scalar_type_p): Declare.
  3587. * value.c (value_entirely_unavailable): New function.
  3588. * value.h (value_entirely_unavailable): Declare.
  3589. * NEWS: Mention the new option "--skip-unavailable" to MI
  3590. commands '-stack-list-locals', '-stack-list-arguments' and
  3591. '-stack-list-variables'.
  3592. 2013-08-27 Yao Qi <yao@codesourcery.com>
  3593. * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
  3594. (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
  3595. options.
  3596. * mi/mi-getopt.c (mi_getopt): Remove.
  3597. (mi_getopt_1): Renamed from mi_getopt. Add one parameter
  3598. 'error_on_unknown'.
  3599. (mi_getopt): Call mi_getopt_1.
  3600. (mi_getopt_silent): New.
  3601. * mi/mi-getopt.h (mi_getopt_silent): Declare.
  3602. 2013-08-26 Doug Evans <dje@google.com>
  3603. PR symtab/15885
  3604. * dwarf2read.c (dw2_dump): Print some minimal information indicating
  3605. .gdb_index is in use.
  3606. * symfile.c (reread_symbols): Reset objfile->sf.
  3607. * NEWS: Document "mt print objfiles" now takes optional regexp.
  3608. * symmisc.c (maintenance_print_objfiles): Argument is now an optional
  3609. regexp of objfiles to print.
  3610. (_initialize_symmisc): Update doc string for "mt print objfiles".
  3611. * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
  3612. missing debug info checks.
  3613. 2013-08-26 Raunaq Bathija <raunaq12@in.ibm.com>
  3614. Ulrich Weigand <uweigand@de.ibm.com>
  3615. * xcoffread.c (arrange_linetable): Add fix to correctly handle
  3616. line tables generated by XLC compiled binaries.
  3617. 2013-08-23 Doug Evans <dje@google.com>
  3618. * symmisc.c (dump_symtab): Delete prototype.
  3619. (dump_msymbols, dump_objfile): Ditto.
  3620. (maintenance_info_symtabs): Mark as dont_repeat.
  3621. (_initialize_symmisc): Improve doc string for "mt info symtabs".
  3622. * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
  3623. debugging printf to better location.
  3624. 2013-08-23 Pedro Alves <palves@redhat.com>
  3625. * target.c (target_read_live_memory): Change type of 'ret' local
  3626. to LONGEST.
  3627. 2013-08-23 Pedro Alves <palves@redhat.com>
  3628. * remote.c (remote_write_bytes_aux, remote_write_bytes)
  3629. (remote_read_bytes): Change return type to LONGEST, and adjust to
  3630. return a target_xfer_error on error.
  3631. (remote_xfer_memory): Delete.
  3632. (remote_flash_write): Change type of 'ret' local to LONGEST.
  3633. (remote_xfer_partial, remote_xfer_partial): Adjust.
  3634. (init_remote_ops): Don't install a deprecated_xfer_memory hook.
  3635. 2013-08-23 Pierre Muller <muller@sourceware.org>
  3636. ARI fix: Push # directives to start of line.
  3637. * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
  3638. 2013-08-12 Muhammad Waqas <mwaqas@codesourcery.com>
  3639. PR gdb/15501
  3640. * breakpoint.c (enable_command, disable_command): Iterate over
  3641. all specified breakpoint locations.
  3642. 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
  3643. * common/linux-ptrace.c (linux_fork_to_function): Push #
  3644. directives to the start of the line.
  3645. (linux_check_ptrace_features): Fix warning message to use
  3646. the "_" markup.
  3647. 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
  3648. * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
  3649. nat/linux-waitpid.h.
  3650. (linux-waitpid.o): New object file rule.
  3651. * common/linux-ptrace.c: Include nat/linux-waitpid.h.
  3652. (current_ptrace_options): Moved from linux-nat.c.
  3653. (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
  3654. parameters.
  3655. (linux_fork_to_function): New function.
  3656. (linux_grandchild_function): Likewise.
  3657. (linux_child_function): Likewise.
  3658. (linux_check_ptrace_features): New function, heavily
  3659. based on linux-nat.c:linux_test_for_tracefork.
  3660. (linux_enable_event_reporting): New function.
  3661. (ptrace_supports_feature): Likewise.
  3662. (linux_supports_tracefork): Likewise.
  3663. (linux_supports_traceclone): Likewise.
  3664. (linux_supports_tracevforkdone): Likewise.
  3665. (linux_supports_tracesysgood): Likewise.
  3666. * common/linux-ptrace.h (HAS_NOMMU): Moved from
  3667. gdbserver/linux-low.c.
  3668. (linux_enable_event_reporting): New declaration.
  3669. (linux_supports_tracefork): Likewise.
  3670. (linux_supports_traceclone): Likewise.
  3671. (linux_supports_tracevforkdone): Likewise.
  3672. (linux_supports_tracesysgood): Likewise.
  3673. * config.in (PTRACE_TYPE_ARG4): Regenerate.
  3674. * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
  3675. * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
  3676. * config/arm/linux.mh (NATDEPFILES): Likewise.
  3677. * config/i386/linux.mh (NATDEPFILES): Likewise.
  3678. * config/i386/linux64.mh (NATDEPFILES): Likewise.
  3679. * config/ia64/linux.mh (NATDEPFILES): Likewise.
  3680. * config/m32r/linux.mh (NATDEPFILES): Likewise.
  3681. * config/m68k/linux.mh (NATDEPFILES): Likewise.
  3682. * config/mips/linux.mh (NATDEPFILES): Likewise.
  3683. * config/pa/linux.mh (NATDEPFILES): Likewise..
  3684. * config/powerpc/linux.mh (NATDEPFILES): Likewise..
  3685. * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
  3686. * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
  3687. * config/sparc/linux.mh (NATDEPFILES): Likewise.
  3688. * config/sparc/linux64.mh (NATDEPFILES): Likewise.
  3689. * config/tilegx/linux.mh (NATDEPFILES): Likewise.
  3690. * config/xtensa/linux.mh (NATDEPFILES): Likewise.
  3691. * configure.ac (AC_CACHE_CHECK): Add void * to the list of
  3692. ptrace's 4th argument's types.
  3693. Check the type of PTRACE_TYPE_ARG4.
  3694. * configure: Regenerate.
  3695. * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
  3696. (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
  3697. (linux_supports_tracefork_flag): Remove.
  3698. (linux_supports_tracesysgood_flag): Likewise.
  3699. (linux_supports_tracevforkdone_flag): Likewise.
  3700. (current_ptrace_options): Moved to
  3701. common/linux-ptrace.c.
  3702. (linux_tracefork_child): Remove.
  3703. (my_waitpid): Remove.
  3704. (linux_test_for_tracefork): Renamed to
  3705. linux_check_ptrace_features and moved to common/linux-ptrace.c.
  3706. (linux_test_for_tracesysgood): Remove.
  3707. (linux_supports_tracesysgood): Remove.
  3708. (linux_supports_tracefork): Remove.
  3709. (linux_supports_tracevforkdone): Remove.
  3710. (linux_enable_tracesysgood): Remove.
  3711. (linux_enable_event_reporting): Remove.
  3712. (linux_init_ptrace): New function.
  3713. (linux_child_post_attach): Call linux_init_ptrace.
  3714. (linux_child_post_startup_inferior): Call linux_init_ptrace.
  3715. (linux_child_follow_fork): Call linux_supports_tracefork
  3716. and linux_supports_tracevforkdone.
  3717. (linux_child_insert_fork_catchpoint): Call
  3718. linux_supports_tracefork.
  3719. (linux_child_insert_vfork_catchpoint): Likewise.
  3720. (linux_child_set_syscall_catchpoint): Call
  3721. linux_supports_tracesysgood.
  3722. (lin_lwp_attach_lwp): Call linux_supports_tracefork.
  3723. * nat/linux-nat.h: New file.
  3724. * nat/linux-waitpid.c: New file.
  3725. * nat/linux-waitpid.h: New file.
  3726. 2013-08-22 Samuel Bronson <naesten@gmail.com>
  3727. ARM Linux support for `catch syscall'.
  3728. * syscalls/arm-linux.py: New file.
  3729. * syscalls/arm-linux.xml: Likewise.
  3730. * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
  3731. (arm_linux_init_abi): Register the new function and syscall xml file.
  3732. * data-directory/Makefile.in: Install the new syscall xml file.
  3733. * NEWS: Brag about this.
  3734. 2013-08-22 Pedro Alves <palves@redhat.com>
  3735. PR gdb/15871
  3736. * corefile.c (target_xfer_memory_error): New function.
  3737. (memory_error): Defer EIO to target_memory_error.
  3738. (read_memory): Use target_xfer_partial, and handle finer-grained
  3739. target xfer errors.
  3740. * target.c (target_xfer_error_to_string): New function.
  3741. (memory_xfer_partial_1): If memory is known to be
  3742. unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
  3743. (target_xfer_partial): Make extern.
  3744. * target.h (enum target_xfer_error): New enum.
  3745. (target_xfer_error_to_string): Declare function.
  3746. (target_xfer_partial): Declare function.
  3747. (struct target_ops) <xfer_partial>: Adjust describing comment.
  3748. 2013-08-22 Alan Modra <amodra@gmail.com>
  3749. * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
  3750. * configure.tgt: Likewise as targets.
  3751. 2013-08-20 Doug Evans <dje@google.com>
  3752. * buildsym.c (subfile_stack): Move here from buildsym.h.
  3753. (pending_macros): Ditto.
  3754. (get_macro_table): New function.
  3755. (buildsym_init): Initialize subfile_stack.
  3756. * coffread.c (type_vector,type_vector_length): Moved here from
  3757. buildsym.h.
  3758. (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
  3759. (coff_symtab_read): Use it.
  3760. * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
  3761. * dwarf2read.c (macro_start_file): Replace uses of pending_macros
  3762. with call to get_macro_table.
  3763. * stabsread.c (type_vector,type_vector_length): Moved here from
  3764. buildsym.h.
  3765. (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
  3766. * buildsym.h (get_macro_table): Declare.
  3767. 2013-08-20 Tom Tromey <tromey@redhat.com>
  3768. * dbxread.c (record_minimal_symbol): Make 'name' argument const.
  3769. Update.
  3770. (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
  3771. 2013-08-20 Doug Evans <dje@google.com>
  3772. * blockframe.c: Remove #include "psymtab.h".
  3773. * cp-support.c: Ditto.
  3774. * source.c: Ditto.
  3775. * stack.c: Ditto.
  3776. 2013-08-20 Tom Tromey <tromey@redhat.com>
  3777. PR python/15816:
  3778. * exceptions.h (return_mask): Now an enum.
  3779. (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
  3780. enum constants.
  3781. 2013-08-20 Tom Tromey <tromey@redhat.com>
  3782. * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
  3783. get_objfile_arch.
  3784. * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
  3785. (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
  3786. * jit.c (jit_object_close_impl): Update.
  3787. * jv-lang.c (get_dynamics_objfile): Update.
  3788. * linespec.c (add_minsym): Use get_dynamics_objfile.
  3789. * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
  3790. (allocate_objfile): Don't initialize 'gdbarch' field.
  3791. (get_objfile_arch): Update.
  3792. * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
  3793. moved from...
  3794. (struct objfile) <gdbarch>: ... here. Remove.
  3795. * stap-probe.c (stap_can_evaluate_probe_arguments): Use
  3796. get_objfile_arch.
  3797. * symfile.c (init_entry_point_info): Use get_objfile_arch.
  3798. 2013-08-20 Alan Modra <amodra@gmail.com>
  3799. * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
  3800. for IBM long double nan and inf.
  3801. (floatformat_is_negative, floatformat_classify,
  3802. floatformat_mantissa): Similarly.
  3803. (floatformat_ieee_single, floatformat_ieee_double,
  3804. floatformat_ieee_quad, floatformat_arm_ext,
  3805. floatformat_ia64_spill): Delete unused vars.
  3806. (_initialize_doublest): Delete unused function.
  3807. * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
  3808. little-endian variants of floatformat_ibm_long_double.
  3809. 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
  3810. * Makefile.in (SFILES): Remove common/target-common.c and
  3811. add target/waitstatus.c.
  3812. (HFILES_NO_SRCDIR): Remove common/target-common.h and add
  3813. target/resume.h, target/wait.h and target/waitstatus.h.
  3814. (COMMON_OBS): Remove target-common.o and add
  3815. waitstatus.o.
  3816. (target-common.o): Remove.
  3817. (waitstatus.o): New target object file.
  3818. * common/target-common.c: Move contents to
  3819. target/waitstatus.c and remove.
  3820. * common/target-common.h: Move contents to other files and
  3821. remove.
  3822. (enum resume_kind: Move to target/resume.h.
  3823. (TARGET_WNOHANG): Move to target/wait.h.
  3824. (enum target_waitkind): Move to target/waitstatus.h.
  3825. (struct target_waitstatus): Likewise.
  3826. * target.h: Do not include target-common.h and
  3827. include target/resume.h, target/wait.h and
  3828. target/waitstatus.h.
  3829. * target/resume.h: New file.
  3830. * target/wait.h: New file.
  3831. * target/waitstatus.h: New file.
  3832. * target/waitstatus.c: New file.
  3833. 2013-08-19 Pedro Alves <palves@redhat.com>
  3834. * linux-nat.c (linux_test_for_tracefork)
  3835. (linux_test_for_tracesysgood, linux_child_follow_fork)
  3836. (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
  3837. (linux_nat_wait_1): Extend comment.
  3838. (linux_async_pipe): Add comment.
  3839. 2013-08-15 Kevin Buettner <kevinb@redhat.com>
  3840. * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
  3841. (RL78_PC_REGNUM): Move to list of pseudo-register enums.
  3842. (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
  3843. Update to account for fact that PC is now a pseudo-register.
  3844. (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
  3845. cases for RL78_PC_REGNUM.
  3846. 2013-08-15 Muhammad Bilal <mbilal@codesourcery.com>
  3847. PR cli/15841
  3848. * top.c (quit_force): Skip writing history file
  3849. if input is not from terminal.
  3850. 2013-08-14 Tom Tromey <tromey@redhat.com>
  3851. * remote.c (struct remote_state) <echo_nextthread, nextthread,
  3852. resultthreadlist>: New fields.
  3853. (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
  3854. (remote_get_threadlist, remote_threadlist_iterator): Use
  3855. new fields. Remove static variables.
  3856. 2013-08-14 Tom Tromey <tromey@redhat.com>
  3857. * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
  3858. remote_watch_data_address>: New fields.
  3859. (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
  3860. (process_stop_reply, remote_wait_as)
  3861. (remote_check_watch_resources, remote_stopped_data_address): Update.
  3862. 2013-08-14 Tom Tromey <tromey@redhat.com>
  3863. * remote.c (struct remote_state) <async_client_callback,
  3864. async_client_context>: New fields.
  3865. (async_client_callback, async_client_context): Remove.
  3866. (remote_async_serial_handler, remote_async): Update.
  3867. 2013-08-14 Tom Tromey <tromey@redhat.com>
  3868. * remote.c (sizeof_pkt): Remove.
  3869. (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
  3870. 2013-08-14 Tom Tromey <tromey@redhat.com>
  3871. * remote.c (struct remote_state) <use_threadinfo_query,
  3872. use_threadextra_query>: New fields.
  3873. (remote_threads_info, remote_threads_extra_info)
  3874. (remote_open_1): Update.
  3875. 2013-08-14 Tom Tromey <tromey@redhat.com>
  3876. * remote.c (struct remote_state) <finished_object,
  3877. finished_annex, finished_offset>: New fields.
  3878. (remote_read_qxfer): Use remote_state fields; remove static
  3879. variables.
  3880. 2013-08-14 Tom Tromey <tromey@redhat.com>
  3881. * remote.c (struct remote_state) <last_sent_step>:
  3882. New field.
  3883. (last_sent_step): Remove.
  3884. (remote_resume, remote_wait_as): Update.
  3885. 2013-08-14 Tom Tromey <tromey@redhat.com>
  3886. * remote.c (struct remote_state) <last_sent_signal>:
  3887. New field.
  3888. (last_sent_signal): Remove.
  3889. (new_remote_state, remote_resume, remote_wait_as): Update.
  3890. 2013-08-14 Tom Tromey <tromey@redhat.com>
  3891. * remote.c (struct remote_state) <last_program_signals_packet>:
  3892. New field.
  3893. (last_program_signals_packet): Remove.
  3894. (remote_program_signals, remote_open_1): Update.
  3895. 2013-08-14 Tom Tromey <tromey@redhat.com>
  3896. * remote.c (struct remote_state) <last_pass_packet>:
  3897. New field.
  3898. (last_pass_packet): Remove.
  3899. (remote_pass_signals, remote_open_1): Update.
  3900. 2013-08-14 Tom Tromey <tromey@redhat.com>
  3901. * remote.c (struct remote_state) <remote_traceframe_number>:
  3902. New field.
  3903. (remote_traceframe_number): Remove.
  3904. (new_remote_state, remote_open_1, set_remote_traceframe)
  3905. (remote_trace_find): Update.
  3906. 2013-08-14 Tom Tromey <tromey@redhat.com>
  3907. * remote.c (struct remote_state) <general_thread, continue_thread>:
  3908. New fields.
  3909. (general_thread, continue_thread): Remove.
  3910. (record_currthread, set_thread, set_general_process)
  3911. (remote_open_1, extended_remote_attach_1, remote_wait_as)
  3912. (extended_remote_mourn_1): Update.
  3913. 2013-08-14 Tom Tromey <tromey@redhat.com>
  3914. * remote.c (struct remote_state) <remote_desc>: New field.
  3915. (remote_desc): Remove.
  3916. (remote_threads_info, remote_threads_extra_info, remote_close)
  3917. (send_interrupt_sequence, remote_start_remote, remote_open_1)
  3918. (readchar, remote_xfer_partial, remote_rcmd, packet_command)
  3919. (remote_hostio_send_command, remote_file_put, remote_file_get)
  3920. (remote_file_delete, remote_can_async_p, remote_is_async_p)
  3921. (remote_async, remote_new_objfile, set_range_stepping): Update.
  3922. 2013-08-14 Tom Tromey <tromey@redhat.com>
  3923. * remote.c (remote_state): Now a pointer.
  3924. (get_remote_state_raw): Update.
  3925. (new_remote_state): New function.
  3926. (_initialize_remote): Use new_remote_state.
  3927. 2013-08-14 Tom Tromey <tromey@redhat.com>
  3928. * remote.c (remote_protocol_features): Now const.
  3929. 2013-08-14 Tom Tromey <tromey@redhat.com>
  3930. * remote.c (crc32_table, crc32): Remove.
  3931. (remote_verify_memory): Use xcrc32.
  3932. 2013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
  3933. * value.h (create_internalvar_type_lazy): Adjust prototype
  3934. declaration.
  3935. 2013-08-13 Andrew Burgess <aburgess@broadcom.com>
  3936. * common/format.c (parse_format_string): Don't allow '#' flag for
  3937. pointer arguments in format string.
  3938. 2013-08-13 Pierre Muller <muller@sourceware.org>
  3939. * utils.c (init_page_info): Only call tgetnum function
  3940. if rl_get_screen_size did not return useful values.
  3941. 2013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
  3942. PR breakpoints/15117
  3943. * linespec.c (linespec_parse_basic): Check for convenience
  3944. variable or history value while parsing.
  3945. 2013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
  3946. Revert implementation of gdbarch_gdb_signal_{to,from}_target for
  3947. AVR.
  3948. * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
  3949. different signals between the generic Linux kernel implementation
  3950. and AVR's.
  3951. (avr_linux_gdb_signal_from_target): Delete.
  3952. (avr_linux_gdb_signal_to_target): Delete.
  3953. (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
  3954. 2013-08-09 Doug Evans <dje@google.com>
  3955. * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
  3956. entries.
  3957. 2013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
  3958. * linux-tdep.c: Define enum with generic signal numbers.
  3959. (linux_gdb_signal_from_target): New function.
  3960. (linux_gdb_signal_to_target): Likewise.
  3961. (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
  3962. methods to the functions above.
  3963. * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
  3964. (linux_gdb_signal_to_target): Likewise.
  3965. * alpha-linux-tdep.c: Define new enum with signals different
  3966. from generic Linux kernel.
  3967. (alpha_linux_gdb_signal_from_target): New function.
  3968. (alpha_linux_gdb_signal_to_target): Likewise.
  3969. (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
  3970. with the functions mentioned above.
  3971. * avr-tdep.c: Define enum with differences between Linux kernel
  3972. and AVR signals.
  3973. (avr_linux_gdb_signal_from_target): New function.
  3974. (avr_linux_gdb_signal_to_target): Likewise.
  3975. (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
  3976. the functions mentioned above.
  3977. * sparc-linux-tdep.c: Define enum with differences between SPARC
  3978. and generic Linux kernel signal numbers.
  3979. (sparc32_linux_gdb_signal_from_target): New function.
  3980. (sparc32_linux_gdb_signal_to_target): Likewise.
  3981. (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
  3982. to the functions defined above.
  3983. * xtensa-linux-tdep.c: Define enum with differences between
  3984. Xtensa and Linux kernel generic signals.
  3985. (xtensa_linux_gdb_signal_from_target): New function.
  3986. (xtensa_linux_gdb_signal_to_target): Likewise.
  3987. (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
  3988. to the functions defined above.
  3989. * mips-linux-tdep.c: Define enum with differences between
  3990. signals in MIPS and Linux kernel generic ones.
  3991. (mips_gdb_signal_to_target): New function.
  3992. (mips_gdb_signal_from_target): Redefine to use new enum, handle
  3993. only different signals from the Linux kernel generic.
  3994. (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
  3995. the functions defined above.
  3996. * mips-linux-tdep.h (enum mips_signals): Remove.
  3997. 2013-08-09 Pedro Alves <palves@redhat.com>
  3998. * avr-tdep.c (XMALLOC): Delete macro.
  3999. * cli/cli-dump.c (XMALLOC): Delete macro.
  4000. 2013-08-09 Pedro Alves <palves@redhat.com>
  4001. * cli/cli-dump.c: Don't include cli/cli-dump.h.
  4002. (scan_expression_with_cleanup, scan_filename_with_cleanup)
  4003. (fopen_with_cleanup, add_dump_command): Make static.
  4004. * cli/cli-dump.h: Delete file.
  4005. * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
  4006. cli/cli-dump.h.
  4007. 2013-08-09 Pedro Alves <palves@redhat.com>
  4008. * tracepoint.c (tfile_start): Show tilde-expanded filename in
  4009. error message.
  4010. 2013-08-09 Pedro Alves <palves@redhat.com>
  4011. * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
  4012. error message.
  4013. 2013-08-09 Pedro Alves <palves@redhat.com>
  4014. * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
  4015. (gcore_command): Use tilde_expand here, and when showing the
  4016. filename to the user, show the expanded version.
  4017. 2013-08-09 Yao Qi <yao@codesourcery.com>
  4018. * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
  4019. 'entryval' is set.
  4020. 2013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
  4021. * gcore.c (create_gcore_bfd): Use tilde_expand.
  4022. 2013-08-08 Yao Qi <yao@codesourcery.com>
  4023. * frame.h (read_frame_local): Declare.
  4024. * mi/mi-cmd-stack.c (list_args_or_locals): Call
  4025. read_frame_local.
  4026. * stack.c (read_frame_local): New.
  4027. 2013-08-08 Yao Qi <yao@codesourcery.com>
  4028. * mi/mi-cmd-stack.c: Update comments to function
  4029. list_args_or_locals.
  4030. 2013-08-07 Tom Tromey <tromey@redhat.com>
  4031. PR symtab/15028:
  4032. * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
  4033. (process_psymtab_comp_unit_reader): Use it.
  4034. (process_psymtab_comp_unit): Update. Add "pretend_language"
  4035. argument.
  4036. (dwarf2_build_psymtabs_hard): Update.
  4037. (scan_partial_symbols): Pass CU's language to
  4038. process_psymtab_comp_unit.
  4039. 2013-08-07 Tom Tromey <tromey@redhat.com>
  4040. * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
  4041. (dwarf2_gdb_index_functions): Update.
  4042. * psymtab.c (find_symbol_file_from_partial): Remove.
  4043. (psym_functions): Update.
  4044. * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
  4045. Remove.
  4046. 2013-08-07 Tom Tromey <tromey@redhat.com>
  4047. * symfile.c (set_initial_language): Look up "main" symbol
  4048. and use its language.
  4049. * symtab.c (find_main_filename): Remove.
  4050. * symtab.h (find_main_filename): Remove.
  4051. 2013-08-07 Tom Tromey <tromey@redhat.com>
  4052. * dwarf2read.c (recursively_compute_inclusions): Add
  4053. "immediate_parent" argument. Set symtab's "user" field
  4054. if not set.
  4055. (compute_symtab_includes): Update.
  4056. 2013-08-07 Tom Tromey <tromey@redhat.com>
  4057. * linespec.c (convert_linespec_to_sals): Use maybe_add_address
  4058. when adding label symbols.
  4059. 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
  4060. Ulrich Weigand <uweigand@de.ibm.com>
  4061. * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
  4062. * configure.host (powerpc64-*-aix*): Likewise.
  4063. 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
  4064. Ulrich Weigand <uweigand@de.ibm.com>
  4065. * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
  4066. is defined.
  4067. * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
  4068. (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
  4069. (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
  4070. * configure.ac: Check for ptrace64.
  4071. * configure, config.in: Regenerate.
  4072. 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
  4073. Ulrich Weigand <uweigand@de.ibm.com>
  4074. * aixthread.c: Call ptrace64 instead of ptracex if defined.
  4075. Call ptrace64 instead of ptrace if defined.
  4076. Add macro addr_ptr to take care of ptrace address argument.
  4077. (pdc_read_regs): Likewise.
  4078. (pdc_write_regs): Likewise.
  4079. (aix_thread_resume): Likewise.
  4080. (fetch_regs_kernel_thread): Likewise.
  4081. (store_regs_kernel_thread): Likewise.
  4082. 2013-08-07 Anton Blanchard <anton@samba.org>
  4083. * MAINTAINERS: Add myself to Write After Approval.
  4084. 2013-08-05 Tom Tromey <tromey@redhat.com>
  4085. * aix-thread.c (_initialize_aix_thread): Use
  4086. complete_target_initialization.
  4087. * bsd-uthread.c (_initialize_bsd_uthread): Use
  4088. complete_target_initialization.
  4089. * dec-thread.c (_initialize_dec_thread): Use
  4090. complete_target_initialization.
  4091. * ravenscar-thread.c (_initialize_ravenscar): Use
  4092. complete_target_initialization.
  4093. * sol-thread.c (_initialize_sol_thread): Use
  4094. complete_target_initialization.
  4095. * spu-multiarch.c (_initialize_spu_multiarch): Use
  4096. complete_target_initialization.
  4097. 2013-08-05 Tom Tromey <tromey@redhat.com>
  4098. * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
  4099. * ada-lang.c (ada_lookup_simple_minsym): Return
  4100. bound_minimal_symbol.
  4101. * ada-lang.h (ada_lookup_simple_minsym): Update.
  4102. * c-exp.y (variable): Use lookup_bound_minimal_symbol.
  4103. * f-exp.y (variable): Use lookup_bound_minimal_symbol.
  4104. * go-exp.y (variable): Use lookup_bound_minimal_symbol.
  4105. * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
  4106. * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
  4107. * minsyms.c (msymbol_objfile): Remove.
  4108. (lookup_minimal_symbol_internal): New function, from
  4109. lookup_minimal_symbol.
  4110. (lookup_minimal_symbol): Rewrite using
  4111. lookup_minimal_symbol_internal.
  4112. (lookup_bound_minimal_symbol): New function.
  4113. * minsyms.h (msymbol_objfile): Remove.
  4114. (lookup_bound_minimal_symbol): Declare.
  4115. * p-exp.y (variable): Use lookup_bound_minimal_symbol.
  4116. * parse.c (write_exp_msymbol): Change parameter to a
  4117. bound_minimal_symbol.
  4118. (write_dollar_variable): Use lookup_bound_minimal_symbol.
  4119. * parser-defs.h (write_exp_msymbol): Update.
  4120. * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
  4121. * symfile.c (simple_read_overlay_table): Use
  4122. lookup_bound_minimal_symbol.
  4123. * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
  4124. (search_symbols): Likewise.
  4125. (print_msymbol_info): Take a bound_minimal_symbol argument.
  4126. (symtab_symbol_info, rbreak_command): Update.
  4127. * symtab.h (struct symbol_search) <msymbol>: Change type
  4128. to bound_minimal_symbol.
  4129. * valops.c (find_function_in_inferior): Use
  4130. lookup_bound_minimal_symbol.
  4131. * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
  4132. 2013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
  4133. Code cleanup.
  4134. * remote.c (cleanup_sigint_signal_handler): Rename the declaration
  4135. to ...
  4136. (async_cleanup_sigint_signal_handler): ... this.
  4137. (initialize_sigint_signal_handler): Remove declaration.
  4138. (handle_remote_sigint): Rename the declaration to ...
  4139. (async_handle_remote_sigint): ... this.
  4140. (handle_remote_sigint_twice): Rename the declaration to ...
  4141. (async_handle_remote_sigint_twice): ... this.
  4142. (async_remote_interrupt, async_remote_interrupt_twice)
  4143. (remote_interrupt): Remove the declarations.
  4144. (remote_interrupt_twice): Rename the declaration ...
  4145. (sync_remote_interrupt_twice): ... this.
  4146. (sigint_remote_twice_token): Rename the variable to ...
  4147. (async_sigint_remote_twice_token): ... this.
  4148. (sigint_remote_token): Rename the variable to ...
  4149. (async_sigint_remote_token): ... this.
  4150. (initialize_sigint_signal_handler): Rename the function to ...
  4151. (async_initialize_sigint_signal_handler): ... this. Update the name
  4152. inside.
  4153. (handle_remote_sigint): Rename the function to ...
  4154. (async_handle_remote_sigint): ... this. Update the names inside.
  4155. (handle_remote_sigint_twice): Rename the function to ...
  4156. (async_handle_remote_sigint_twice): ... this. Update the names inside.
  4157. (cleanup_sigint_signal_handler): Rename the function to ...
  4158. (async_cleanup_sigint_signal_handler): ... this.
  4159. (remote_interrupt): Rename the function to ...
  4160. (sync_remote_interrupt): this. Update the names inside.
  4161. (remote_interrupt_twice): Rename the function to ...
  4162. (sync_remote_interrupt_twice): this. Update the names inside.
  4163. (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
  4164. (_initialize_remote): Update the names inside.
  4165. 2013-08-02 Tom Tromey <tromey@redhat.com>
  4166. PR symtab/15719:
  4167. * breakpoint.c (update_watchpoint, watchpoint_check)
  4168. (watch_command_1): Update.
  4169. * eval.c (fetch_subexp_value): Add "preserve_errors"
  4170. parameter.
  4171. * ppc-linux-nat.c (check_condition): Update.
  4172. * value.h (fetch_subexp_value): Update.
  4173. 2013-08-02 Andrew Burgess <aburgess@broadcom.com>
  4174. * mi/mi-interp.c (mi_interpreter_resume): Remove call to
  4175. add_file_handler.
  4176. 2013-08-01 Doug Evans <dje@google.com>
  4177. PR symtab/15691
  4178. * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
  4179. (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
  4180. Add assert of sig_entry->dwo_unit == NULL.
  4181. (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
  4182. had already been read.
  4183. (read_signatured_type): Set per_cu.tu_read.
  4184. PR symtab/15695
  4185. * valops.c (value_struct_elt): Add missing call to check_typedef.
  4186. (value_find_oload_method_list): Ditto.
  4187. * symtab.c (do_free_search_symbols_cleanup): Change arg to,
  4188. effectively, struct symbol_search **.
  4189. (make_cleanup_free_search_symbols): Change arg to struct
  4190. symbol_search **. All callers updated.
  4191. (compare_search_syms): Compare symtab file name and block as well.
  4192. (search_symbols_equal): New function.
  4193. (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
  4194. New args new_head, new_tail. Result is now void. Remove dups after
  4195. sorting the symbols.
  4196. (search_symbols): Sort all found symbols once, after all have been
  4197. found, and remove duplicates. Simplify cleanup tracking of result.
  4198. * symtab.h (make_cleanup_free_search_symbols): Update prototype.
  4199. Further workarounds for binutils/15021.
  4200. * dwarf2read.c (recursively_compute_inclusions): Change type of result
  4201. parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
  4202. Watch for duplicate symtabs coming from type units.
  4203. (compute_symtab_includes): Update call to
  4204. recursively_compute_inclusions. Build vector of included symtabs
  4205. instead of per_cus.
  4206. * symtab.h (symtab_ptr): New typedef.
  4207. (DEF_VEC_P (symtab_ptr)): New VEC type.
  4208. * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
  4209. instead.
  4210. 2013-08-01 Andrew Burgess <aburgess@broadcom.com>
  4211. * cli/cli-script.c (script_from_file): Remove use of
  4212. error_pre_print.
  4213. * main.c (captured_main): Remove use of error_pre_print and
  4214. quit_pre_print.
  4215. * utils.c (error_pre_print, quit_pre_print): Remove.
  4216. * utils.h (error_pre_print, quit_pre_print): Likewise.
  4217. 2013-08-01 Yao Qi <yao@codesourcery.com>
  4218. * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
  4219. with mi_getopt.
  4220. (mi_cmd_stack_list_variables): Likewise.
  4221. 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
  4222. * exceptions.c (deprecated_throw_reason): Remove.
  4223. * exceptions.h (deprecated_throw_reason): Remove.
  4224. 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
  4225. * remote-mips.c (mips_error): Replace use of
  4226. deprecated_throw_reason with throw_verror. Use the error message
  4227. passed to mips_error as the error message for throw_verror.
  4228. 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
  4229. * monitor.c (monitor_interrupt_query): Replace use of
  4230. deprecated_throw_reason with quit.
  4231. * nto-procfs.c (interrupt_query): Likewise.
  4232. * remote-fileio.c (remote_fileio_sig_exit): Likewise.
  4233. * remote-mips.c (mips_kill): Likewise.
  4234. * remote.c (interrupt_query): Likewise.
  4235. 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
  4236. * utils.c (internal_verror): Replace use of deprecated_throw_reason
  4237. with call to fatal.
  4238. 2013-07-31 Pedro Alves <pedro@codesourcery.com>
  4239. Yao Qi <yao@codesourcery.com>
  4240. * tracepoint.c (trace_dump_command): Select the current frame.
  4241. 2013-07-30 Doug Evans <dje@google.com>
  4242. * dwarf2read.c (process_queue): Add type signature to debug output.
  4243. 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
  4244. * value.c (value_fetch_lazy): Mark optimized out values as such
  4245. rather than raising an error.
  4246. 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
  4247. * value.c (value_fetch_lazy): Ensure parent value is not lazy
  4248. before checking which bits of the parent, not the child, value are
  4249. valid.
  4250. 2013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
  4251. PR gdb/15715
  4252. * top.c: Include "filenames.h".
  4253. (set_history_filename): New function.
  4254. (init_main): Install it as set hook of the "set history filename"
  4255. command.
  4256. 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
  4257. * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
  4258. attribute parameter.
  4259. (dwarf2_const_value_data): Constify struct attribute parameter.
  4260. (dwarf2_const_value): Constify struct attribute parameter.
  4261. (dwarf2_const_value_attr): Constify struct attribute parameter.
  4262. (lookup_die_type): Constify struct attribute parameter.
  4263. (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
  4264. (follow_die_ref_or_sig): Constify struct attribute parameter.
  4265. (follow_die_ref): Constify struct attribute parameter.
  4266. (follow_die_sig): Constify struct attribute parameter.
  4267. (get_DW_AT_signature_type): Constify struct attribute parameter.
  4268. (get_type_unit_group): Constify struct attribute parameter.
  4269. (fill_in_loclist_baton): Constify struct attribute parameter.
  4270. (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
  4271. (type_unit_group): Constify struct attribute parameter.
  4272. 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
  4273. * dwarf2read.c (attr_form_is_block): Make argument const.
  4274. (attr_form_is_section_offset): Make argument const.
  4275. (attr_form_is_constant): Make argument const.
  4276. (attr_form_is_ref): Make argument const.
  4277. 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
  4278. * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
  4279. All uses updated.
  4280. (attr_form_is_ref): Moved below attr_form_is_constant.
  4281. 2013-07-29 Doug Evans <dje@google.com>
  4282. * main.c (captured_command_loop): Tweak comment.
  4283. * target.c (target_async_permitted_1): Fix comment.
  4284. * symtab.c (iterate_over_some_symtabs): Add comment.
  4285. * symtab.c (iterate_over_some_symtabs): Fix indentation.
  4286. 2013-07-27 Yao Qi <yao@codesourcery.com>
  4287. * NEWS: Mention that GDBserver now supports hardware
  4288. watchpoints on the MIPS GNU/Linux target.
  4289. 2013-07-27 Yao Qi <yao@codesourcery.com>
  4290. * Makefile.in (HFILES_NO_SRCDIR): Add
  4291. common/mips-linux-watch.h.
  4292. (mips-linux-watch.o): New rule.
  4293. * common/mips-linux-watch.c: New.
  4294. * common/mips-linux-watch.h: New.
  4295. * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
  4296. * mips-linux-nat.c: Include mips-linux-watch.h.
  4297. (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
  4298. to common/mips-linux-watch.h.
  4299. (MAX_DEBUG_REGISTER): Likewise.
  4300. (enum pt_watch_style): Likewise.
  4301. (struct mips32_watch_regs): Likewise.
  4302. (struct mips64_watch_regs): Likewise.
  4303. (struct pt_watch_regs): Likewise.
  4304. (struct mips_watchpoint): Likewise.
  4305. (mips_linux_watch_get_irw_mask): Move to
  4306. common/mips-linux-watch.c.
  4307. (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
  4308. (mips_linux_watch_get_watchlo): Likewise.
  4309. (mips_linux_watch_set_watchlo): Likewise.
  4310. (mips_linux_watch_get_watchhi): Likewise.
  4311. (mips_linux_watch_set_watchhi): Likewise.
  4312. (mips_linux_read_watch_registers): Likewise.
  4313. (mips_linux_watch_type_to_irw): Likewise.
  4314. (mips_linux_stopped_data_address, fill_mask): Likewise.
  4315. (mips_linux_watch_try_one_watch): Likewise.
  4316. (mips_linux_watch_populate_regs): Likewise.
  4317. 2013-07-27 Yao Qi <yao@codesourcery.com>
  4318. * mips-linux-nat.c (get_irw_mask): Rename to ...
  4319. (mips_linux_watch_get_irw_mask): ... this. Rename parameter
  4320. 'set' to 'n'. Update function comment. All callers changed.
  4321. (get_reg_mask): Rename parameter 'set' to 'n'. Update
  4322. function comment. All callers changed.
  4323. (get_num_valid): Rename to ...
  4324. (mips_linux_watch_get_num_valid): ... this. Rename parameter
  4325. 'set' to 'n'. Update function comment. All callers changed.
  4326. (get_watchlo): Rename to ...
  4327. (mips_linux_watch_get_watchlo): ... this. Rename parameter
  4328. 'set' to 'n'. Update function comment. All callers changed.
  4329. (set_watchlo): Rename to ...
  4330. (mips_linux_watch_set_watchlo): ... this. Rename parameter
  4331. 'set' to 'n'. Update function comment. All callers changed.
  4332. (get_watchhi): Rename to ...
  4333. (mips_linux_watch_get_watchhi): ... this. Update function
  4334. comment. All callers changed.
  4335. (set_watchhi): Rename to ...
  4336. (mips_linux_watch_set_watchhi): ... this. Update function
  4337. comment. All callers changed.
  4338. (mips_linux_read_watch_registers): Update function comment.
  4339. Add new parameters 'lwpid', 'watch_readback', and
  4340. 'watch_readback_valid'. Update.
  4341. (type_to_irw): Rename to ...
  4342. (mips_linux_watch_type_to_irw): ... this. Update function
  4343. comment. All callers changed.
  4344. (fill_mask): Update function comment.
  4345. (try_one_watch): Rename to ...
  4346. (mips_linux_watch_try_one_watch): ... this. Change the type
  4347. of parameter 'irw' from 'unsigned' to 'uint32_t'.
  4348. (populate_regs_from_watches): Rename to ...
  4349. (mips_linux_watch_populate_regs): ... this. Add parameter
  4350. 'current_watches'. All callers changed.
  4351. 2013-07-27 Yao Qi <yao@codesourcery.com>
  4352. * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
  4353. the code.
  4354. (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
  4355. (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
  4356. (struct pt_watch_regs): Likewise.
  4357. [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
  4358. [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
  4359. [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
  4360. [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
  4361. [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
  4362. 2013-07-27 Yao Qi <yao@codesourcery.com>
  4363. * breakpoint.h: Include break-common.h.
  4364. (enum target_hw_bp_type): Move to ...
  4365. * common/break-common.h: ... here. New.
  4366. 2013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
  4367. * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
  4368. process group regardless of having tty on stdin.
  4369. 2013-07-25 Doug Evans <dje@google.com>
  4370. * linux-fork.h (detach_fork): Delete.
  4371. 2013-07-25 Tom Tromey <tromey@redhat.com>
  4372. PR remote/15256, PR remote/15266:
  4373. * bfd-target.c (target_bfd_reopen): Initialize to_magic.
  4374. * monitor.c (monitor_detach): Use unpush_target.
  4375. * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
  4376. * remote-mips.c (mips_detach): Use unpush_target. Don't
  4377. call mips_close.
  4378. * remote-sim.c (gdbsim_detach): Use unpush_target.
  4379. * target.c (pop_target): Remove.
  4380. (pop_all_targets_above): Don't call target_close.
  4381. (target_close): Assert that the target is unpushed.
  4382. * target.h (pop_target): Don't declare.
  4383. * tracepoint.c (tfile_open): Use unpush_target.
  4384. 2013-07-25 Tom Tromey <tromey@redhat.com>
  4385. * linux-thread-db.c (init_thread_db_ops): Call
  4386. complete_target_initialization.
  4387. (_initialize_thread_db): Don't call add_target.
  4388. * target.c (complete_target_initialization): New function.
  4389. (add_target_with_completer): Call it.
  4390. * target.h (complete_target_initialization): Declare.
  4391. 2013-07-25 Mark Kettenis <kettenis@gnu.org>
  4392. * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
  4393. * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
  4394. (HPPANBSD_SIZEOF_GREGS): New define.
  4395. (hppaobsd_supply_gregset): Handle additional registers.
  4396. * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
  4397. we provide more registers now.
  4398. (hppabsd_supply_gregset): Supply additional registers.
  4399. (hppabsd_collect_gregset): Collect additional registers.
  4400. 2013-07-25 Mark Kettenis <kettenis@gnu.org>
  4401. * hppabsd-tdep.c: Include "dwarf2-frame.h".
  4402. (hppabsd_dwarf2_frame_init_reg): New function.
  4403. (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
  4404. 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
  4405. * mi/mi-main.c (output_register): Make MI 'r' format use standard
  4406. 'z' format code. Remove error for optimized out values, standard
  4407. code will handle these fine.
  4408. 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
  4409. * NEWS: Mention new 'z' formatter.
  4410. * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
  4411. (_initialize_printcmd): Mention 'z' formatter in help text of the
  4412. 'x' command.
  4413. 2013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
  4414. * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
  4415. formatting.
  4416. 2013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
  4417. * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
  4418. interface can evaluate arguments. Fallback to the old mode if it
  4419. cannot.
  4420. (create_exception_master_breakpoint): Likewise.
  4421. * elfread.c (elf_can_evaluate_probe_arguments): New function.
  4422. (struct sym_probe_fns elf_probe_fns): Export function above to the
  4423. probe interface.
  4424. * probe.c (can_evaluate_probe_arguments): New function.
  4425. * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
  4426. function pointer.
  4427. (can_evaluate_probe_arguments): New function prototype.
  4428. * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
  4429. probe interface can evaluate arguments. Fallback to the old mode
  4430. if it cannot.
  4431. * stap-probe.c (stap_get_probe_argument_count): Check if probe
  4432. interface can evaluate arguments. Warning the user if it cannot.
  4433. (stap_can_evaluate_probe_arguments): New function.
  4434. (struct probe_ops stap_probe_ops): Export function above to the
  4435. probe interface.
  4436. * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
  4437. New function pointer.
  4438. 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
  4439. * Makefile.in (SFILES): Add common/target-common.c.
  4440. Add common/target-common.h to headers.
  4441. (COMMON_OBS): Add target-common.o.
  4442. (target-common.o): New target.
  4443. * linux-nat.h (resume_kind): Move to common/target-common.h.
  4444. * target.c (target_waitstatus_to_string): Move to
  4445. common/target-common.c.
  4446. * target.h: Include target-common.h.
  4447. (target_waitkind): Move to common/target-common.h.
  4448. (target_waitstatus): Likewise.
  4449. (TARGET_WNOHANG): Likewise.
  4450. * common/target-common.c: New file.
  4451. * common/target-common.h: New file.
  4452. 2013-07-24 Doug Evans <dje@google.com>
  4453. * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
  4454. a warning.
  4455. 2013-07-23 Yao Qi <yao@codesourcery.com>
  4456. * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
  4457. parameter 'gdbarch'.
  4458. (i386_stack_tramp_frame_sniffer): Caller update.
  4459. * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
  4460. parameter 'gdbarch' and 'target'.
  4461. (i386_linux_core_read_description): Caller update.
  4462. * amd64-linux-tdep.c (amd64_linux_core_read_description):
  4463. Likewise.
  4464. * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
  4465. declaration.
  4466. 2013-07-23 Tom Tromey <tromey@redhat.com>
  4467. * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
  4468. 2013-07-22.
  4469. 2013-07-22 Doug Evans <dje@google.com>
  4470. * exec.h (remove_target_sections): Delete arg abfd.
  4471. * exec.c (exec_close): Update call to remove_target_sections.
  4472. (remove_target_sections): Delete arg abfd.
  4473. * solib.c (update_solib_list): Ditto.
  4474. (reload_shared_libraries_1): Ditto.
  4475. (clear_solib): Ditto, and unconditionally call remove_target_sections.
  4476. * target.h (struct target_section): Rename key to owner.
  4477. All uses updated.
  4478. 2013-07-22 Tom Tromey <tromey@redhat.com>
  4479. * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
  4480. 2013-07-22 Tom Tromey <tromey@redhat.com>
  4481. * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
  4482. Simplify cleanup handling.
  4483. 2013-07-22 Tom Tromey <tromey@redhat.com>
  4484. * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
  4485. on all return paths.
  4486. 2013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
  4487. * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
  4488. (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
  4489. DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
  4490. 2013-07-22 Phil Muldoon <pmuldoon@redhat.com>
  4491. * top.c (print_gdb_version): Add help, apropos description and
  4492. url to online documentation.
  4493. 2013-07-19 Hui Zhu <hui@codesourcery.com>
  4494. PR gdb/15692
  4495. * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
  4496. 2013-07-19 Yao Qi <yao@codesourcery.com>
  4497. * target.c (update_current_target): Change the default action
  4498. of 'to_traceframe_info' from tcomplain to return_zero.
  4499. * target.h (struct target_ops) <to_traceframe_info>: Add more
  4500. comments.
  4501. * valops.c (read_value_memory): Call
  4502. traceframe_available_memory unconditionally.
  4503. 2013-07-18 Yao Qi <yao@codesourcery.com>
  4504. * coffread.c (coff_symfile_read): Iterate over minimal symbols,
  4505. if the name is prefixed by "__imp_" or "_imp_", look for minimal
  4506. symbol without prefix. If found, set its type to
  4507. 'mst_solib_trampoline'.
  4508. 2013-07-17 Doug Evans <dje@google.com>
  4509. * NEWS: Mention "set print raw frame-arguments".
  4510. * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
  4511. * stack.c (print_raw_frame_arguments): New static global.
  4512. (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
  4513. (_initialize_stack): New command "set/show print raw frame-arguments".
  4514. * valprint.c (setprintrawlist, showprintrawlist): New globals.
  4515. (set_print_raw, show_print_raw): New functions.
  4516. (_initialize_valprint): New prefix command "set/show print raw".
  4517. * valprint.h (value_print_options): Improve comments.
  4518. * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
  4519. of all *list variables.
  4520. * gdbcmd.h (togglelist): Delete.
  4521. * cli/cli-cmds.c (togglelist): Delete.
  4522. (init_cmd_lists): Update.
  4523. * cli/cli-cmds.h (togglelist): Delete.
  4524. 2013-07-17 Tom Tromey <tromey@redhat.com>
  4525. * dwarf2read.c (dwarf2_per_objfile_free): Clear
  4526. dwarf2_per_objfile.
  4527. 2013-07-16 Doug Evans <dje@google.com>
  4528. * nto-tdep.c (nto_relocate_section_addresses): Update,
  4529. target_section.bfd deleted.
  4530. * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
  4531. * s390-tdep.c (s390_load): Ditto.
  4532. * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
  4533. 2013-07-16 Andrew Burgess <aburgess@broadcom.com>
  4534. * common/format.c (parse_format_string): Add checks for NULL
  4535. character before calling strchr.
  4536. 2013-07-16 Doug Evans <dje@google.com>
  4537. * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
  4538. temp_pathname argument.
  4539. * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
  4540. when opening the file fails.
  4541. * target.h (struct target_section): Delete member bfd.
  4542. All users updated to use the_bfd_section->owner instead.
  4543. * exec.c (add_to_section_table): Assert bfd is expected value.
  4544. Remove initialization of target_section.bfd.
  4545. (remove_target_sections): Update.
  4546. (section_table_available_memory): Update.
  4547. (section_table_xfer_memory_partial): Update.
  4548. (print_section_info): Update.
  4549. (exec_set_section_address): Update.
  4550. * record-full.c (record_full_core_xfer_partial): Update.
  4551. * solib-svr4.c (svr4_relocate_section_addresses): Update.
  4552. * solib-target.c (solib_target_relocate_section_addresses): Update.
  4553. * symfile.c (build_section_addr_info_from_section_table): Update.
  4554. * target.c (memory_xfer_live_readonly_partial): Update.
  4555. (memory_xfer_partial_1): Update.
  4556. 2013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
  4557. * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
  4558. now available for embedded (BookE) and server (BookS) processors,
  4559. correct mentions of 'booke' and adjust comments accordingly in order to
  4560. avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
  4561. (have_ptrace_booke_interface): Rename function and variable
  4562. 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
  4563. Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
  4564. (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
  4565. 'hwdebug_point_cmp'. Update all uses.
  4566. (booke_find_thread_points_by_tid): Rename function
  4567. 'booke_find_thread_points_by_tid' to
  4568. 'hwdebug_find_thread_points_by_tid'. Update all uses.
  4569. (booke_insert_point): Rename function 'booke_insert_point' to
  4570. 'hwdebug_insert_point'. Update all uses.
  4571. (booke_remove_point): Rename function 'booke_remove_point' to
  4572. 'hwdebug_remove_point'. Update all uses.
  4573. 2013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
  4574. * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
  4575. numbers with enum values.
  4576. 2013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
  4577. PR threads/13217
  4578. * thread.c (thread_apply_all_command): Check for valid threads
  4579. and thread count.
  4580. (thread_array_cleanup): New struct.
  4581. (set_thread_refcount): New function.
  4582. 2013-07-11 Andrew Burgess <aburgess@broadcom.com>
  4583. * infcmd.c (default_print_one_register_info): Reuse function
  4584. print_hex_chars.
  4585. 2013-07-10 Tom Tromey <tromey@redhat.com>
  4586. * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
  4587. (ada-exp.o): New target.
  4588. 2013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
  4589. * mt-tdep.c (mt_registers_info): Call
  4590. get_no_prettyformat_print_options instead of
  4591. get_raw_print_options (regression by last patch from Doug
  4592. Evans).
  4593. 2013-07-09 Pedro Alves <palves@redhat.com>
  4594. Checked in by Joel Brobecker <brobecker@adacore.com>.
  4595. * ada-lang.c (coerce_unspec_val_to_type): Use
  4596. value_optimized_out_const.
  4597. * value.c (value_optimized_out_const): New function.
  4598. * value.h (value_optimized_out_const): New declaration.
  4599. 2013-07-09 Doug Evans <dje@google.com>
  4600. * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
  4601. Enum values rename as well. All uses updated.
  4602. * valprint.h (value_print_options): Rename member pretty to
  4603. pretty format. Rename member prettyprint_arrays to
  4604. prettyformat_arrays. Rename member prettyprint_structs to
  4605. prettyformat_structs. All uses updated.
  4606. (get_no_prettyformat_print_options): Renamed from
  4607. get_raw_print_options.
  4608. * valprint.c (get_no_prettyformat_print_options): Renamed from
  4609. get_raw_print_options. All callers updated.
  4610. (show_prettyformat_structs): Renamed from show_prettyprint_structs.
  4611. All callers updated.
  4612. (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
  4613. All callers updated.
  4614. (_initialize_valprint): Improve help text for "set print pretty" and
  4615. "set print arrays".
  4616. 2013-07-09 Andrew Burgess <aburgess@broadcom.com>
  4617. * value.c (value_bits_valid): Revert previous change, and change
  4618. by Pedro on 2013-07-04, due to regressions in
  4619. gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
  4620. 2013-07-08 Andrew Burgess <aburgess@broadcom.com>
  4621. Pedro Alves <palves@redhat.com>
  4622. * value.c (value_bits_valid): If the value is not lval_computed
  4623. or has no check validity handler then the answer is the
  4624. optimized_out flag, otherwise defer to the handler.
  4625. 2013-07-06 Eli Zaretskii <eliz@gnu.org>
  4626. * top.c (print_gdb_configuration): Explain in output of
  4627. --configuration what does "relocatable" mean.
  4628. * main.c (print_gdb_help): Regroup options in the --help text.
  4629. See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
  4630. the relevant discussions.
  4631. 2013-07-06 Yao Qi <yao@codesourcery.com>
  4632. * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
  4633. Remove parameter 'lsal'.
  4634. * breakpoint.c (create_breakpoint): Move local variable 'lsal'
  4635. to inner block. Caller update.
  4636. (base_breakpoint_create_breakpoints_sal): Update.
  4637. (bkpt_create_breakpoints_sal): Likewise.
  4638. (tracepoint_create_breakpoints_sal): Likewise.
  4639. (strace_marker_create_breakpoints_sal): Get 'lsal' from the
  4640. element 0 of vector 'canonical->sals'.
  4641. 2013-07-05 Luis Machado <lgustavo@codesourcery.com>
  4642. * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
  4643. register number instead of the pseudo register one.
  4644. (rs6000_dwarf2_reg_to_regnum): Likewise.
  4645. 2013-07-04 Pedro Alves <palves@redhat.com>
  4646. * findvar.c (value_of_register): Use allocate_optimized_out_value
  4647. if the register has been optimized out, instead of
  4648. set_value_optimized_out.
  4649. * frame-unwind.c (frame_unwind_got_optimized): Use
  4650. allocate_optimized_out_value.
  4651. 2013-07-04 Pedro Alves <palves@redhat.com>
  4652. * value.c (value_bits_valid): If the value is not lval_computed,
  4653. or doesn't have a check_validity hook, assume the value is entirely
  4654. valid.
  4655. 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
  4656. * stack.c (read_frame_arg): No longer fetch lazy values.
  4657. * value.c (value_optimized_out): If the value is not already
  4658. marked optimized out, and is lazy then fetch it.
  4659. (value_primitive_field): Move optimized out check to later in the
  4660. function, after we have loaded any lazy values.
  4661. (value_fetch_lazy): Use optimized out flag directly rather than
  4662. calling optimized_out method.
  4663. 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
  4664. * valops.c: Don't include "user-regs.h".
  4665. (value_fetch_lazy): Moved to value.c.
  4666. * value.c: Include "user-regs.h".
  4667. (value_fetch_lazy): Moved from valops.c.
  4668. 2013-07-04 Yao Qi <yao@codesourcery.com>
  4669. Revert:
  4670. 2013-06-27 Yao Qi <yao@codesourcery.com>
  4671. * common/create-version.sh: Update comments. Handle the case
  4672. that TARGET_ALIAS is empty.
  4673. 2013-07-03 Pedro Alves <palves@redhat.com>
  4674. * Makefile.in (config.status): Depend on development.sh.
  4675. (aclocal_m4_deps): Add libmcheck.m4.
  4676. * acinclude.m4: Include libmcheck.m4.
  4677. * configure.ac: Source development.sh instead of setting
  4678. 'development' here. --enable-libmcheck/--disable-libmcheck code
  4679. factored out to GDB_AC_LIBMCHECK. Run it.
  4680. * development.sh: New file.
  4681. * libmcheck.m4: New file.
  4682. * configure: Regenerate.
  4683. 2013-07-02 Tom Tromey <tromey@redhat.com>
  4684. * contrib/ari/update-web-ari.sh: Update for version.in change.
  4685. 2013-07-02 Tom Tromey <tromey@redhat.com>
  4686. * common/ptid.h: Comment fixes.
  4687. 2013-07-01 Tom Tromey <tromey@redhat.com>
  4688. * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
  4689. .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
  4690. (dwarf2_read_index, create_all_comp_units): Update.
  4691. 2013-07-01 Tom Tromey <tromey@redhat.com>
  4692. * configure.ac (build_warnings): Add -Wold-style-definition.
  4693. * configure: Rebuild.
  4694. * machoread.c (_initialize_machoread): Use "(void)".
  4695. * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
  4696. use "(void)".
  4697. 2013-07-01 Tom Tromey <tromey@redhat.com>
  4698. * configure.ac (build_warnings): Add -Wold-style-declaration.
  4699. * configure: Rebuild.
  4700. * dsrec.c (make_srec): Use "static const", not "const static".
  4701. * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
  4702. not "const static".
  4703. * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
  4704. Use "static const", not "const static".
  4705. * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
  4706. not "const static".
  4707. * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
  4708. not "const static".
  4709. * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
  4710. not "const static".
  4711. * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
  4712. not "const static".
  4713. (v850_dbtrap_breakpoint_from_pc): Likewise.
  4714. * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
  4715. not "const static".
  4716. 2013-07-01 Tom Tromey <tromey@redhat.com>
  4717. * configure.ac (build_warnings): Add -Wmissing-parameter-type.
  4718. * configure: Rebuild.
  4719. 2013-07-01 Pedro Alves <palves@redhat.com>
  4720. * defs.h: Include "pathmax.h".
  4721. * utils.c: Don't include sys/param.h.
  4722. (gdb_realpath): Remove code that checks for MAXPATHLEN.
  4723. * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
  4724. instead of MAXPATHLEN.
  4725. * solib-sunos.c: Don't include sys/param.h.
  4726. * xcoffread.c: Don't include sys/param.h.
  4727. * bsd-kvm.c: Don't include sys/param.h.
  4728. * darwin-nat.c: Don't include sys/param.h.
  4729. (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
  4730. * darwin-nat-info.c: Don't include sys/param.h.
  4731. * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
  4732. MAXPATHLEN.
  4733. * i386obsd-nat.c: Don't include sys/param.h.
  4734. * inf-child.c: Don't include sys/param.h.
  4735. (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
  4736. * linux-fork.c: Don't include sys/param.h.
  4737. (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
  4738. * linux-nat.c: Don't include sys/param.h.
  4739. (linux_child_pid_to_exec_file, linux_proc_pending_signals)
  4740. (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
  4741. * m68klinux-nat.c: Don't include sys/param.h.
  4742. * nbsd-nat.c: Don't include sys/param.h.
  4743. (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
  4744. * ppc-linux-nat.c: Don't include sys/param.h.
  4745. * rs6000-nat.c: Don't include sys/param.h.
  4746. * spu-linux-nat.c. Don't include sys/param.h.
  4747. * windows-nat.c: Don't include sys/param.h.
  4748. * xtensa-linux-nat.c: Don't include sys/param.h.
  4749. * config/i386/nm-fbsd.h: Don't include sys/param.h.
  4750. 2013-07-01 Pedro Alves <palves@redhat.com>
  4751. * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
  4752. * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
  4753. * gnulib/aclocal.m4: Regenerate.
  4754. * gnulib/config.in: Regenerate.
  4755. * gnulib/configure: Regenerate.
  4756. * gnulib/import/pathmax.h: New file.
  4757. * gnulib/import/Makefile.am: Regenerate.
  4758. * gnulib/import/Makefile.in: Regenerate.
  4759. * gnulib/import/m4/gnulib-cache.m4: Regenerate.
  4760. * gnulib/import/m4/gnulib-comp.m4: Regenerate.
  4761. * gnulib/import/m4/pathmax.m4: New file.
  4762. 2013-07-01 Pedro Alves <palves@redhat.com>
  4763. * configure.ac (GDBINIT): Define, depending on host.
  4764. * go32-nat.c (init_go32_ops): Don't override gdbinit here.
  4765. * top.c (PATH_MAX): Delete fallback definition.
  4766. (GDBINIT_FILENAME): Delete.
  4767. (gdbinit): Reimplement as const char array set to the GDBINIT
  4768. string constant.
  4769. * top.h (gdbinit): Make const.
  4770. * configure, config.in: Regenerate.
  4771. 2013-07-01 Pedro Alves <palves@redhat.com>
  4772. * cli/cli-cmds.c (source_script): Make 'file' parameter const.
  4773. * cli/cli-cmds.h (source_script): Likewise.
  4774. * exceptions.c (catch_command_errors_const): New function.
  4775. * exceptions.h (catch_command_errors_const): Declare.
  4776. * main.c (get_init_files): Make parameters const, and adjust.
  4777. (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
  4778. 'local_gdbinit' locals const. Adjust to use
  4779. catch_command_errors_const.
  4780. (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
  4781. 'local_gdbinit' locals const.
  4782. 2013-07-01 Pedro Alves <palves@redhat.com>
  4783. * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
  4784. (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
  4785. * tracepoint.c: Don't check HAVE_UNISTD_H before including
  4786. <unistd.h>.
  4787. 2013-07-01 Pedro Alves <palves@redhat.com>
  4788. Import the "unistd" gnulib module.
  4789. * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
  4790. * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
  4791. import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
  4792. import/m4/unistd_h.m4.
  4793. * gnulib/aclocal.m4: Renenerate.
  4794. * gnulib/config.in: Renenerate.
  4795. * gnulib/configure: Renenerate.
  4796. * gnulib/import/Makefile.am: Renenerate.
  4797. * gnulib/import/Makefile.in: Renenerate.
  4798. * gnulib/import/m4/gnulib-cache.m4: Renenerate.
  4799. * gnulib/import/m4/gnulib-comp.m4: Renenerate.
  4800. * gnulib/import/m4/off_t.m4: New file.
  4801. * gnulib/import/m4/ssize_t.m4: New file.
  4802. * gnulib/import/m4/sys_types_h.m4: New file.
  4803. * gnulib/import/m4/unistd_h.m4: New file.
  4804. * gnulib/import/sys_types.in.h: New file.
  4805. * gnulib/import/unistd.c: New file.
  4806. * gnulib/import/unistd.in.h: New file.
  4807. 2013-07-01 Pedro Alves <palves@redhat.com>
  4808. * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
  4809. defined instead of checking HAVE_UNISTD_H.
  4810. 2013-07-01 Pedro Alves <palves@redhat.com>
  4811. Reimport gnulib from scratch.
  4812. * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
  4813. import/m4/onceonly.m4.
  4814. * gnulib/aclocal.m4: Renegerate.
  4815. * gnulib/config.in: Renegerate.
  4816. * gnulib/configure: Renegerate.
  4817. * gnulib/import/Makefile.in: Renegerate.
  4818. * gnulib/import/extra/update-copyright: Renegerate.
  4819. * gnulib/import/m4/onceonly.m4: Delete.
  4820. 2013-07-01 Pedro Alves <palves@redhat.com>
  4821. * tui/tui-regs.c (pagination_enabled): Delete declaration.
  4822. 2013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
  4823. Code cleanup.
  4824. * remote.c (async_remote_interrupt_twice): Make it static.
  4825. * remote.h (async_remote_interrupt_twice): Remove the declaration.
  4826. 2013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
  4827. * ia64-linux-tdep.c: Include <ctype.h>.
  4828. (ia64_linux_stap_is_single_operand): New function.
  4829. (ia64_linux_init_abi): Initialize SystemTap related attributes.
  4830. 2013-06-28 Tom Tromey <tromey@redhat.com>
  4831. * Makefile.in (version.c): Use version.in, not
  4832. common/version.in.
  4833. * common/create-version.sh: Likewise.
  4834. * common/version.in: Move...
  4835. * version.in: ...here.
  4836. 2013-06-28 Pedro Alves <palves@redhat.com>
  4837. * infrun.c (set_observer_mode): Don't declare pagination_enabled
  4838. here.
  4839. * utils.h (pagination_enabled): Declare.
  4840. 2013-06-28 Pedro Alves <palves@redhat.com>
  4841. * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
  4842. Move higher up in file.
  4843. 2013-06-28 Tom Tromey <tromey@redhat.com>
  4844. * tracepoint.c (deprecated_readline_begin_hook)
  4845. (deprecated_readline_hook, deprecated_readline_end_hook): Don't
  4846. declare.
  4847. 2013-06-28 Pedro Alves <palves@redhat.com>
  4848. PR tui/14880
  4849. * tui/tui-regs.c (tui_get_register): Fetch value contents before
  4850. checking if they're available.
  4851. * value.c (value_available_contents_eq): Change comment.
  4852. * value.h (value_available_contents_eq): Expand comment.
  4853. 2013-06-27 Tom Tromey <tromey@redhat.com>
  4854. * target.c (find_run_target): Remove.
  4855. * target.h (find_run_target): Remove.
  4856. 2013-06-27 Tom Tromey <tromey@redhat.com>
  4857. * corelow.c (core_gdbarch): Now static.
  4858. 2013-06-27 Tom Tromey <tromey@redhat.com>
  4859. * target.c (target_struct_index): Remove.
  4860. 2013-06-27 Pedro Alves <palves@redhat.com>
  4861. * infrun.c: Remove comment describing the 'stepping over runtime
  4862. loader dynamic symbol resolution code' mechanism; moved to
  4863. gdbint.texinfo.
  4864. 2013-06-27 Pedro Alves <palves@redhat.com>
  4865. * exceptions.c (catch_command_errors): Remove spurious space.
  4866. * exceptions.h (catch_command_errors): Second parameter is "arg",
  4867. not "command".
  4868. 2013-06-27 Yao Qi <yao@codesourcery.com>
  4869. * common/create-version.sh: Update comments. Handle the case
  4870. that TARGET_ALIAS is empty.
  4871. 2013-06-26 Pedro Alves <palves@redhat.com>
  4872. * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
  4873. comment.
  4874. 2013-06-26 Pedro Alves <palves@redhat.com>
  4875. * infrun.c: Update comments on stepping over runtime loader
  4876. dynamic symbol resolution code.
  4877. 2013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
  4878. * ax-gdb.h (union exp_element): Forward declare.
  4879. * parser-defs.h: Include expression.h.
  4880. 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
  4881. * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
  4882. 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
  4883. * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
  4884. 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
  4885. Fix trace-status to output proper start-time and stop-time.
  4886. * tracepoint.c (trace_status_command): Fix type of printf arg to
  4887. prevent improper type conversion.
  4888. (trace_status_mi): Likewise.
  4889. 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
  4890. * mips-tdep.c (mips_next_pc): Fix a typo.
  4891. 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
  4892. * mips-tdep.c (micromips_scan_prologue): Fix a typo.
  4893. 2013-06-26 Pedro Alves <pedro@codesourcery.com>
  4894. Yao Qi <yao@codesourcery.com>
  4895. * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
  4896. * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
  4897. * mi/mi-main.c (print_variable_or_computed): New function.
  4898. (mi_cmd_trace_frame_collected): New function.
  4899. * tracepoint.c (find_trace_state_variable_by_number): New.
  4900. (struct traceframe_info): Move to tracepoint.h
  4901. (struct collection_list): Likewise.
  4902. (do_collect_symbol): Include locals and arguments in the
  4903. collected variables list.
  4904. (clear_collection_list): Clear wholly collected variables list
  4905. and computed variables list.
  4906. (append_exp): New function.
  4907. (encode_actions_1): Include variables in the wholly
  4908. collected variables list. Include memory ranges and
  4909. full-fledged expressions in the computed expressions list.
  4910. (encode_actions): Move some code to ...
  4911. Return the cleanup chain.
  4912. (encode_actions_rsp): ... here. New function.
  4913. (get_traceframe_location, get_traceframe_info): Remove static.
  4914. * tracepoint.h (struct memrange): Moved from tracepoint.c.
  4915. (struct collection_list): Moved from tracepoint.c. Add two
  4916. new fields 'wholly_collected' and 'computed'.
  4917. (find_trace_state_variable_by_number): Declare.
  4918. (encode_actions): Adjust declaration.
  4919. (encode_actions_rsp): Declare.
  4920. (get_traceframe_info, get_traceframe_location): Declare.
  4921. * NEWS: Mention new MI command -trace-frame-collected.
  4922. 2013-06-26 Pedro Alves <pedro@codesourcery.com>
  4923. Yao Qi <yao@codesourcery.com>
  4924. * ctf.c (ctf_traceframe_info): Push trace state variables
  4925. present in the trace data into the traceframe info object.
  4926. * breakpoint.c (DEF_VEC_I): Remove.
  4927. * common/filestuff.c (DEF_VEC_I): Likewise.
  4928. * dwarf2loc.c (DEF_VEC_I): Likewise.
  4929. * mi/mi-main.c (DEF_VEC_I): Likewise.
  4930. * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
  4931. * features/traceframe-info.dtd: Add tvar element and its
  4932. attributes.
  4933. * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
  4934. (build_traceframe_info): Push trace state variables present in
  4935. the trace data into the traceframe info object.
  4936. (traceframe_info_start_tvar): New function.
  4937. (tvar_attributes): New.
  4938. (traceframe_info_children): Add "tvar" element.
  4939. * tracepoint.h (struct traceframe_info) <tvars>: New field.
  4940. * NEWS: Mention the change in GDB and GDBserver.
  4941. 2013-06-26 Pedro Alves <pedro@codesourcery.com>
  4942. Yao Qi <yao@codesourcery.com>
  4943. * tracepoint.c (trace_dump_command): Move code to ...
  4944. (get_traceframe_location): ... here. New.
  4945. 2013-06-26 Pedro Alves <pedro@codesourcery.com>
  4946. Yao Qi <yao@codesourcery.com>
  4947. * tracepoint.c (trace_dump_command): GDB emits an error
  4948. instead of a warning when a traceframe is not selected.
  4949. 2013-06-26 Pedro Alves <pedro@codesourcery.com>
  4950. Yao Qi <yao@codesourcery.com>
  4951. * tracepoint.c (tracepoint_list, stepping_list): Remove.
  4952. (clear_collection_list): Free fields 'aexpre_list' and 'list'
  4953. in collection_list.
  4954. (do_clear_collection_list, init_collection_list): New.
  4955. (encode_actions): Add local variables 'tracepoint_list' and
  4956. 'stepping_list'. Call init_collection_list and make cleanup
  4957. which calls do_clear_collection_list. Don't call
  4958. clear_collection_list.
  4959. (_initialize_tracepoint): Delete references to
  4960. 'tracepoint_list' and 'stepping_list'.
  4961. 2013-06-25 Tom Tromey <tromey@redhat.com>
  4962. * common/create-version.sh (date): Use "$", not "$$" in sed
  4963. expression.
  4964. 2013-06-25 Kevin Buettner <kevinb@redhat.com>
  4965. * NEWS (New targets): Add entry for TI MSP430.
  4966. 2013-06-25 Yao Qi <yao@codesourcery.com>
  4967. * remote.c (remote_start_remote): Move code to upload tsv
  4968. earlier.
  4969. 2013-06-25 Yao Qi <yao@codesourcery.com>
  4970. Hui Zhu <hui@codesourcery.com>
  4971. Pedro Alves <palves@redhat.com>
  4972. PR breakpoints/15075
  4973. PR breakpoints/15434
  4974. * breakpoint.c (bpstat_stop_status): Call
  4975. b->ops->after_condition_true.
  4976. (update_dprintf_command_list): Don't append "continue" command
  4977. to the command list of dprintf breakpoint.
  4978. (base_breakpoint_after_condition_true): New function.
  4979. (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
  4980. (dprintf_after_condition_true): New function.
  4981. (initialize_breakpoint_ops): Set dprintf_after_condition_true.
  4982. * breakpoint.h (breakpoint_ops): Add after_condition_true.
  4983. 2013-06-24 Kevin Buettner <kevinb@redhat.com>
  4984. * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
  4985. (ALLDEPFILES): Add msp430-tdep.c.
  4986. * configure.tgt (msp430*-*-elf): New target.
  4987. * msp430-tdep.c: New file.
  4988. 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
  4989. * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
  4990. microMIPS synthetic symbols.
  4991. 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
  4992. * objfiles.h (pc_in_section): New prototype.
  4993. (in_plt_section): Remove name argument, replace prototype with
  4994. static inline function.
  4995. * mips-tdep.h: Include "objfiles.h".
  4996. (in_mips_stubs_section): New function.
  4997. * hppa-tdep.h (gdbarch_tdep): Remove name argument of
  4998. in_solib_call_trampoline member.
  4999. (hppa_in_solib_call_trampoline): Remove name argument.
  5000. * objfiles.c (pc_in_section): New function.
  5001. (in_plt_section): Remove function.
  5002. * mips-linux-tdep.c: Include "objfiles.h".
  5003. (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
  5004. name argument. Return 1 rather than the low 16-bit halfword of
  5005. any instruction examined.
  5006. (mips_linux_in_dynsym_resolve_code): Update
  5007. mips_linux_in_dynsym_stub call accordingly.
  5008. * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
  5009. rather than an equivalent hand-coded sequence.
  5010. * hppa-hpux-tdep.c (in_opd_section): Remove function.
  5011. (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
  5012. (hppa64_hpux_in_solib_call_trampoline): Likewise.
  5013. (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
  5014. in_opd_section.
  5015. * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
  5016. on call to tdep->in_solib_call_trampoline.
  5017. (hppa_in_solib_call_trampoline): Remove name argument, update
  5018. according to in_plt_section change.
  5019. (hppa_skip_trampoline_code): Update according to in_plt_section
  5020. change.
  5021. * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
  5022. * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
  5023. Likewise.
  5024. * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
  5025. * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
  5026. * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
  5027. * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
  5028. * nto-tdep.c (nto_relocate_section_addresses): Likewise.
  5029. * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
  5030. * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
  5031. * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
  5032. * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
  5033. * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
  5034. * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
  5035. * sparc-tdep.c (sparc_analyze_prologue): Likewise.
  5036. * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
  5037. 2013-06-24 Joel Brobecker <brobecker@adacore.com>
  5038. * common/create-version.sh: Fix expansion of $host_alias
  5039. and $target_alias in generation of HOST_NAME and TARGET_NAME
  5040. (resp.).
  5041. 2013-06-24 Tom Tromey <tromey@redhat.com>
  5042. * common/create-version.sh: New file.
  5043. * Makefile.in (version.c): Use bfd/version.h, common/version.in,
  5044. create-version.sh.
  5045. (HFILES_NO_SRCDIR): Use common/version.h.
  5046. * version.in: Move to ...
  5047. * common/version.in: ... here. Replace date with "DATE".
  5048. * version.h: Move to ...
  5049. * common/version.h: ... here.
  5050. 2013-06-21 Joel Brobecker <brobecker@adacore.com>
  5051. * gnulib/Makefile.in: Update date in copyright header.
  5052. * gnulib/configure.ac: Ditto.
  5053. * gnulib/update-gnulib.sh: Ditto.
  5054. 2013-06-21 Joel Brobecker <brobecker@adacore.com>
  5055. * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
  5056. "gdb/gnulib/import".
  5057. 2013-06-21 Will Newton <will.newton@linaro.org>
  5058. * doublest.c (ldfrexp): Remove function.
  5059. (convert_doublest_to_floatformat): Call frexpl instead of
  5060. ldfrexp.
  5061. 2013-06-21 Will Newton <will.newton@linaro.org>
  5062. * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
  5063. * gnulib/aclocal.m4: Regenerate.
  5064. * gnulib/config.in: Regenerate.
  5065. * gnulib/configure: Regenerate.
  5066. * gnulib/import/Makefile.am: Update.
  5067. * gnulib/import/Makefile.in: Update.
  5068. * gnulib/import/m4/gnulib-cache.m4: Update.
  5069. * gnulib/import/m4/gnulib-comp.m4: Update.
  5070. * gnulib/import/float+.h: Import.
  5071. * gnulib/import/float.c: Import.
  5072. * gnulib/import/float.in.h: Import.
  5073. * gnulib/import/fpucw.h: Import.
  5074. * gnulib/import/frexp.c: Import.
  5075. * gnulib/import/frexpl.c: Import.
  5076. * gnulib/import/isnan.c: Import.
  5077. * gnulib/import/isnand-nolibm.h: Import.
  5078. * gnulib/import/isnand.c: Import.
  5079. * gnulib/import/isnanl-nolibm.h: Import.
  5080. * gnulib/import/isnanl.c: Import.
  5081. * gnulib/import/itold.c: Import.
  5082. * gnulib/import/m4/exponentd.m4: Import.
  5083. * gnulib/import/m4/exponentl.m4: Import.
  5084. * gnulib/import/m4/float_h.m4: Import.
  5085. * gnulib/import/m4/fpieee.m4: Import.
  5086. * gnulib/import/m4/frexp.m4: Import.
  5087. * gnulib/import/m4/frexpl.m4: Import.
  5088. * gnulib/import/m4/isnand.m4: Import.
  5089. * gnulib/import/m4/isnanl.m4: Import.
  5090. * gnulib/import/m4/math_h.m4: Import.
  5091. * gnulib/import/math.c: Import.
  5092. * gnulib/import/math.in.h: Import.
  5093. 2013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
  5094. * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
  5095. replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
  5096. signature_INTEL_edx comparisons.
  5097. 2013-06-20 Doug Evans <dje@google.com>
  5098. symtab/15652
  5099. * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
  5100. All callers updated.
  5101. (open_dwp_file): If we can't find the dwp file, search the basename
  5102. in debug-file-directory.
  5103. * dwarf2read.c (struct dwp_file): Fix comment.
  5104. (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
  5105. * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
  5106. better.
  5107. 2013-06-20 Yao Qi <yao@codesourcery.com>
  5108. * breakpoint.c (create_breakpoint): Fix code indentation.
  5109. 2013-06-20 Yao Qi <yao@codesourcery.com>
  5110. * breakpoint.c (create_breakpoints_sal_default): Remove
  5111. parameter 'lsal'. Update declaration.
  5112. (bkpt_create_breakpoints_sal): Caller update.
  5113. (tracepoint_create_breakpoints_sal): Likewise.
  5114. 2013-06-20 Pedro Alves <pedro@codesourcery.com>
  5115. Yao Qi <yao@codesourcery.com>
  5116. * NEWS: Mention the new option '--skip-unavailable' of command
  5117. -data-list-register-values.
  5118. * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
  5119. --skip-unavailable option. Adjust to use output_register.
  5120. (output_register): Add new 'skip_unavailable' parameter.
  5121. Handle it.
  5122. 2013-06-19 Mike Frysinger <vapier@gentoo.org>
  5123. * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
  5124. common/i386-gcc-cpuid.h.
  5125. * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
  5126. * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
  5127. Copy the latest version from upstream gcc.
  5128. * common/linux-btrace.c: Include i386-cpuid.h.
  5129. (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
  5130. call to i386_cpuid.
  5131. (cpu_supports_btrace): Likewise.
  5132. * go32-nat.c: Include i386-cpuid.h.
  5133. (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
  5134. 2013-06-19 Doug Evans <dje@google.com>
  5135. * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
  5136. (get_section_index): Ditto.
  5137. 2013-06-19 Tom Tromey <tromey@redhat.com>
  5138. * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
  5139. "dprintf" help.
  5140. 2013-06-18 Doug Evans <dje@google.com>
  5141. * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
  5142. before using it.
  5143. (dw2_expand_symtabs_matching): Fix symbol kind validity check.
  5144. Move test of cu_index closer to use. Print complaint if cu_index
  5145. is bad.
  5146. 2013-06-18 Joel Brobecker <brobecker@adacore.com>
  5147. * machoread.c (oso_vector): Delete this global.
  5148. (macho_register_oso): Add new parameter "oso_vector_ptr".
  5149. Use it instead of the "oso_vector" global.
  5150. (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
  5151. (macho_symfile_read): Use a local oso_vector, to be free'ed
  5152. at the end of this function, in place of the old "oso_vector"
  5153. global. Update various function calls accordingly. Use one
  5154. single cleanup chain for the entire function.
  5155. 2013-06-18 Joel Brobecker <brobecker@adacore.com>
  5156. * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
  5157. DWARF2_PER_OBJFILE by uses of DATA instead.
  5158. 2013-06-18 Tom Tromey <tromey@redhat.com>
  5159. * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
  5160. argument.
  5161. * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
  5162. Special case signals other than GDB_SIGNAL_TRAP.
  5163. (explains_signal_watchpoint): New function.
  5164. (base_breakpoint_explains_signal): Add 'sig' argument.
  5165. (initialize_breakpoint_ops): Set 'explains_signal' method for
  5166. watchpoints.
  5167. * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
  5168. signal argument.
  5169. (bpstat_explains_signal): Likewise.
  5170. * infrun.c (handle_syscall_event, handle_inferior_event): Update.
  5171. 2013-06-18 Tom Tromey <tromey@redhat.com>
  5172. * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
  5173. 2013-06-18 Tom Tromey <tromey@redhat.com>
  5174. * python/python.c (finish_python_initialization): Decref
  5175. 'pythondir' on failure path as well.
  5176. 2013-06-18 Tom Tromey <tromey@redhat.com>
  5177. PR symtab/15391:
  5178. * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
  5179. after taking bits_to_skip into account. Sign extend byte_offset.
  5180. * utils.h (gdb_sign_extend): Declare.
  5181. * utils.c (gdb_sign_extend): New function.
  5182. 2013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
  5183. * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
  5184. 2013-06-17 Pierre Muller <muller@sourceware.org>
  5185. * corelow.c (core_open): Print GDB signal name instead of target
  5186. signal number.
  5187. 2013-06-17 Mike Frysinger <vapier@gentoo.org>
  5188. * .gitignore: Add /gcore.
  5189. 2013-06-13 Doug Evans <dje@google.com>
  5190. * dwarf2read.c (try_open_dwop_file): Work around behaviour of
  5191. OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
  5192. 2013-06-12 Phil Muldoon <pmuldoon@redhat.com>
  5193. * stack.c (backtrace_command_1): Fix indentation.
  5194. 2013-06-11 Joel Brobecker <brobecker@adacore.com>
  5195. * window-nat.c (thread_rec): Add missing empty line after
  5196. local variable declaration.
  5197. 2013-06-11 Joel Brobecker <brobecker@adacore.com>
  5198. * windows-nat.c (thread_rec): Revert format used to print
  5199. error code returned by SuspendThread from %d back to %u.
  5200. 2013-06-11 Joel Brobecker <brobecker@adacore.com>
  5201. * windows-nat.c (windows_continue): Add "0x" prefix for thread
  5202. ID in debug trace.
  5203. (get_windows_debug_event): Likewise, for all debug traces.
  5204. 2013-06-11 Joel Brobecker <brobecker@adacore.com>
  5205. * window-nat.c (thread_rec): Add thread ID in SuspendThread
  5206. warning message.
  5207. 2013-06-08 Pedro Alves <pedro@codesourcery.com>
  5208. Yao Qi <yao@codesourcery.com>
  5209. * mi/mi-main.c (get_register): Remove declaration.
  5210. (output_register): Declare.
  5211. (mi_cmd_data_list_register_values): Remove local variable
  5212. 'tuple_cleanup'. Move some code into output_register.
  5213. (get_register): Renamed to ...
  5214. (output_register): ... this. Output the register's
  5215. "number" ui_out tuple here.
  5216. 2013-06-07 Pedro Alves <palves@redhat.com>
  5217. * darwin-nat.c: Fix formating in copyright header.
  5218. * darwin-nat.h: Likewise.
  5219. * gnu-nat.c: Likewise.
  5220. * machoread.c: Likewise.
  5221. 2013-06-07 Pedro Alves <palves@redhat.com>
  5222. PR server/14823
  5223. * regformats/regdat.sh: Output #include tdesc.h. Make globals
  5224. static. Output a global target description pointer.
  5225. (init_registers_${name}): Adjust to initialize a
  5226. target description structure.
  5227. 2013-06-07 Will Newton <will.newton@linaro.org>
  5228. * printcmd.c (build_address_symbolic): Call
  5229. gdbarch_addr_bits_remove for text minimal symbols.
  5230. 2013-06-07 Will Newton <will.newton@linaro.org>
  5231. * MAINTAINERS: Add myself to Write After Approval.
  5232. 2013-06-07 Yao Qi <yao@codesourcery.com>
  5233. * tracepoint.c (start_tracing): Move code to ...
  5234. (trace_reset_local_state): ... here. New.
  5235. (disconnect_tracing): Don't call set_current_traceframe,
  5236. set_tracepoint_num, and set_traceframe_context. Call
  5237. trace_reset_local_state instead.
  5238. (tfile_close): Call trace_reset_local_state.
  5239. * ctf.c (ctf_close): Likewise.
  5240. * remote.c (remote_close): Likewise.
  5241. * tracepoint.h (trace_reset_local_state): Declare.
  5242. 2013-06-06 Doug Evans <dje@google.com>
  5243. * dwarf2read.c: Whitespace fixes for DWP file format documentation,
  5244. and fix header docs.
  5245. 2013-06-05 Doug Evans <dje@google.com>
  5246. Keith Seitz <keiths@redhat.com>
  5247. PR 15519
  5248. * cp-namespace.c (find_symbol_in_baseclass): Call
  5249. cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
  5250. Check result of call to lookup_symbol_static.
  5251. Call lookup_static_symbol_aux unconditionally.
  5252. Call check_typedef on base types before accessing them.
  5253. (cp_lookup_nested_symbol): Fix comment.
  5254. 2013-06-05 Luis Machado <lgustavo@codesourcery.com>
  5255. * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
  5256. minimal symbols pointing to function descriptors.
  5257. 2013-06-05 Tom Tromey <tromey@redhat.com>
  5258. * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
  5259. 2013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
  5260. Pedro Alves <palves@redhat.com>
  5261. * remote.c (remote_wait_as): Restore signal handler before returning
  5262. when GDB gets a notification.
  5263. 2013-06-04 Gary Benson <gbenson@redhat.com>
  5264. PR 2328
  5265. * breakpoint.h (handle_solib_event): Moved function declaration
  5266. to solib.h.
  5267. * breakpoint.c (handle_solib_event): Moved function to solib.c.
  5268. (bpstat_stop_status): Pass new argument to handle_solib_event.
  5269. * solib.h (update_solib_breakpoints): New function declaration.
  5270. (handle_solib_event): Moved function declaration from
  5271. breakpoint.h.
  5272. * solib.c (update_solib_breakpoints): New function.
  5273. (handle_solib_event): Moved function from breakpoint.c.
  5274. Updated to call solib_ops->handle_event if not NULL.
  5275. * solist.h (target_so_ops): New fields "update_breakpoints" and
  5276. "handle_event".
  5277. * infrun.c (set_stop_on_solib_events): New function.
  5278. (_initialize_infrun): Use the above for "set
  5279. stop-on-solib-events".
  5280. (handle_inferior_event): Pass new argument to handle_solib_event.
  5281. * solib-svr4.c (probe.h): New include.
  5282. (svr4_free_library_list): New forward declaration.
  5283. (probe_action): New enum.
  5284. (probe_info): New struct.
  5285. (probe_info): New static variable.
  5286. (NUM_PROBES): New definition.
  5287. (svr4_info): New fields "using_xfer", "probes_table" and
  5288. "solib_list".
  5289. (free_probes_table): New function.
  5290. (free_solib_list): New function.
  5291. (svr4_pspace_data_cleanup): Free probes table and solib list.
  5292. (svr4_copy_library_list): New function.
  5293. (svr4_current_sos_via_xfer_libraries): New parameter "annex".
  5294. (svr4_read_so_list): New parameter "prev_lm".
  5295. (svr4_current_sos_direct): Renamed from "svr4_current_sos".
  5296. (svr4_current_sos): New function.
  5297. (probe_and_action): New struct.
  5298. (hash_probe_and_action): New function.
  5299. (equal_probe_and_action): Likewise.
  5300. (register_solib_event_probe): Likewise.
  5301. (solib_event_probe_at): Likewise.
  5302. (solib_event_probe_action): Likewise.
  5303. (solist_update_full): Likewise.
  5304. (solist_update_incremental): Likewise.
  5305. (disable_probes_interface_cleanup): Likewise.
  5306. (svr4_handle_solib_event): Likewise.
  5307. (svr4_update_solib_event_breakpoint): Likewise.
  5308. (svr4_update_solib_event_breakpoints): Likewise.
  5309. (svr4_create_solib_event_breakpoints): Likewise.
  5310. (enable_break): Free probes table before creating breakpoints.
  5311. Use svr4_create_solib_event_breakpoints to create breakpoints.
  5312. (svr4_solib_create_inferior_hook): Free the solib list.
  5313. (_initialize_svr4_solib): Initialise
  5314. svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
  5315. 2013-06-04 Gary Benson <gbenson@redhat.com>
  5316. * target.h (target_ops): New field
  5317. "to_augmented_libraries_svr4_read".
  5318. (target_augmented_libraries_svr4_read): New macro.
  5319. * target.c (update_current_target): Handle
  5320. to_augmented_libraries_svr4_read.
  5321. * remote.c (remote_state): New field
  5322. "augmented_libraries_svr4_read".
  5323. (remote_augmented_libraries_svr4_read_feature): New function.
  5324. (remote_protocol_features): Add entry for
  5325. "augmented-libraries-svr4-read".
  5326. (remote_augmented_libraries_svr4_read): New function.
  5327. (init_remote_ops): Initialize
  5328. remote_ops.to_augmented_libraries_svr4_read.
  5329. 2013-06-04 Gary Benson <gbenson@redhat.com>
  5330. * NEWS: Update.
  5331. 2013-06-04 Gary Benson <gbenson@redhat.com>
  5332. * objfiles.h (inhibit_section_map_updates): New function
  5333. declaration.
  5334. (resume_section_map_updates): Likewise.
  5335. (resume_section_map_updates_cleanup): Likewise.
  5336. * objfiles.c (objfile_pspace_info): Removed field
  5337. "objfiles_changed_p". New fields "new_objfiles_available",
  5338. "section_map_dirty" and "inhibit_updates".
  5339. (allocate_objfile): Set new_objfiles_available.
  5340. (free_objfile): Set section_map_dirty.
  5341. (objfile_relocate1): Likewise.
  5342. (in_plt_section): Likewise.
  5343. (find_pc_section): Update the conditions under which the
  5344. section map will be updated.
  5345. (inhibit_section_map_updates): New function.
  5346. (resume_section_map_updates): Likewise.
  5347. (resume_section_map_updates_cleanup): Likewise.
  5348. 2013-06-04 Gary Benson <gbenson@redhat.com>
  5349. * probe.h (get_probe_argument_count): New declaration.
  5350. (evaluate_probe_argument): Likewise.
  5351. * probe.c (get_probe_argument_count): New function.
  5352. (evaluate_probe_argument): Likewise.
  5353. (probe_safe_evaluate_at_pc): Use the above new functions.
  5354. 2013-06-04 Alan Modra <amodra@gmail.com>
  5355. * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
  5356. * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
  5357. (ppc_insns_match_pattern): Add frame param. Avoid multiple
  5358. target mem reads on optional insns.
  5359. * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
  5360. ppc_insns_match_pattern calls.
  5361. * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
  5362. Add match for power7 thread safety insns, and new order of
  5363. std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
  5364. invocation in comment, and update rest of comment.
  5365. (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
  5366. PPC64_STANDARD_LINKAGE3_LEN): Delete.
  5367. (ppc64_standard_linkage2_target): Update insn offsets.
  5368. (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
  5369. stubs first. Update calls.
  5370. 2013-06-04 Yao Qi <yao@codesourcery.com>
  5371. * solib.c (solib_find): Don't need dir separator if path has
  5372. drive spec.
  5373. 2013-06-03 Joel Brobecker <brobecker@adacore.com>
  5374. Revert (indirectly causes a SIGSEGV):
  5375. * machoread.c (macho_symfile_read): Assign first cleanup to
  5376. 'back_to'.
  5377. 2013-06-03 Yao Qi <yao@codesourcery.com>
  5378. * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
  5379. mi-parse.c. Make them static.
  5380. (mi_all_values): Likewise.
  5381. (mi_parse_values_option): Move to mi-parse.c. Rename it to
  5382. mi_parse_print_values. Make it external.
  5383. * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
  5384. Remove the declarations.
  5385. * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
  5386. * mi/mi-parse.h (mi_parse_print_values): Declare.
  5387. * mi/mi-cmd-stack.c: Include mi-parse.h.
  5388. (parse_print_values): Remove
  5389. (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
  5390. of parse_print_values.
  5391. (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
  5392. 2013-05-31 Pedro Alves <pedro@codesourcery.com>
  5393. Yao Qi <yao@codesourcery.com>
  5394. * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
  5395. (encode_actions): Move code to ...
  5396. (all_tracepoint_actions_and_cleanup): ... here. New.
  5397. (trace_dump_command): Likewise.
  5398. 2013-05-30 Tom Tromey <tromey@redhat.com>
  5399. * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
  5400. 2013-05-30 Tom Tromey <tromey@redhat.com>
  5401. * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
  5402. gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
  5403. 'old_chain' argument. Add 'parser_result' argument.
  5404. (gdb_xml_create_parser_and_cleanup): Remove old version.
  5405. (gdb_xml_parse_quick): Update.
  5406. (xml_process_xincludes): Update.
  5407. * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
  5408. declare.
  5409. 2013-05-30 Tom Tromey <tromey@redhat.com>
  5410. * probe.c (collect_probes): Check arguments for NULL before
  5411. calling compile_rx_or_error.
  5412. * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
  5413. Remove NULL return.
  5414. 2013-05-30 Tom Tromey <tromey@redhat.com>
  5415. * infrun.c (adjust_pc_after_break): Introduce an outer null
  5416. cleanup.
  5417. 2013-05-30 Tom Tromey <tromey@redhat.com>
  5418. * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
  5419. 2013-05-30 Tom Tromey <tromey@redhat.com>
  5420. * cli/cli-script.c (read_command_lines_1): Use a null cleanup
  5421. for 'old_chain'. Do not check 'head' before processing
  5422. cleanups.
  5423. 2013-05-30 Tom Tromey <tromey@redhat.com>
  5424. * mi/mi-cmd-stack.c (list_arg_or_local): Remove
  5425. "cleanup_tuple".
  5426. 2013-05-30 Tom Tromey <tromey@redhat.com>
  5427. * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
  5428. inner scope. Unconditionally call do_cleanups.
  5429. 2013-05-30 Tom Tromey <tromey@redhat.com>
  5430. * source.c (find_and_open_source): Call do_cleanups.
  5431. 2013-05-30 Tom Tromey <tromey@redhat.com>
  5432. * linux-thread-db.c (thread_db_load_search): Unconditionally
  5433. call do_cleanups.
  5434. 2013-05-30 Tom Tromey <tromey@redhat.com>
  5435. * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
  5436. for 'cleanup'; instead use a later one.
  5437. 2013-05-30 Tom Tromey <tromey@redhat.com>
  5438. * python/py-breakpoint.c (bppy_get_commands): Use
  5439. explicit, unconditional return.
  5440. * python/py-frame.c (frapy_read_var): Likewise.
  5441. * python/python.c (gdbpy_decode_line): Likewise.
  5442. 2013-05-30 Tom Tromey <tromey@redhat.com>
  5443. * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
  5444. do_cleanups on all return paths.
  5445. 2013-05-30 Tom Tromey <tromey@redhat.com>
  5446. * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
  5447. 2013-05-30 Tom Tromey <tromey@redhat.com>
  5448. * stabsread.c (read_struct_type): Call do_cleanups along
  5449. all return paths.
  5450. 2013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
  5451. * mips-linux-tdep.c: Adjust formatting throughout.
  5452. 2013-05-30 Tom Tromey <tromey@redhat.com>
  5453. * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
  5454. along all return paths.
  5455. 2013-05-30 Tom Tromey <tromey@redhat.com>
  5456. * symfile.c (find_separate_debug_file): Call do_cleanups
  5457. along all return paths.
  5458. 2013-05-30 Tom Tromey <tromey@redhat.com>
  5459. * symtab.c (search_symbols): Introduce a null cleanup for
  5460. 'retval_chain'.
  5461. 2013-05-30 Tom Tromey <tromey@redhat.com>
  5462. * python/py-value.c (valpy_binop): Call do_cleanups before
  5463. exiting loop.
  5464. 2013-05-30 Tom Tromey <tromey@redhat.com>
  5465. * python/py-prettyprint.c (print_children): Remove extra
  5466. do_cleanups call.
  5467. 2013-05-30 Tom Tromey <tromey@redhat.com>
  5468. * python/py-frame.c (frapy_read_var): Call do_cleanups along
  5469. all return paths.
  5470. 2013-05-30 Tom Tromey <tromey@redhat.com>
  5471. * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
  5472. along all return paths.
  5473. 2013-05-30 Tom Tromey <tromey@redhat.com>
  5474. * cli/cli-logging.c (set_logging_redirect): Unconditionally
  5475. call do_cleanups.
  5476. 2013-05-30 Tom Tromey <tromey@redhat.com>
  5477. * varobj.c (c_value_of_root): Call do_cleanups along all
  5478. return paths.
  5479. 2013-05-30 Tom Tromey <tromey@redhat.com>
  5480. * tracepoint.c (trace_dump_command): Unconditionally call
  5481. do_cleanups.
  5482. 2013-05-30 Tom Tromey <tromey@redhat.com>
  5483. * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
  5484. do_cleanups earlier.
  5485. 2013-05-30 Tom Tromey <tromey@redhat.com>
  5486. * machoread.c (macho_symfile_read): Assign first cleanup to
  5487. 'back_to'.
  5488. 2013-05-30 Tom Tromey <tromey@redhat.com>
  5489. * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
  5490. 2013-05-30 Tom Tromey <tromey@redhat.com>
  5491. * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
  5492. 2013-05-30 Tom Tromey <tromey@redhat.com>
  5493. * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
  5494. call discard_cleanups.
  5495. (inf_ptrace_attach): Likewise.
  5496. 2013-05-30 Tom Tromey <tromey@redhat.com>
  5497. * remote-mips.c (mips_exit_debug): Call do_cleanups on all
  5498. return paths.
  5499. (mips_initialize): Likewise.
  5500. (common_open): Call do_cleanups.
  5501. 2013-05-30 Tom Tromey <tromey@redhat.com>
  5502. * utils.c (internal_vproblem): Call do_cleanups.
  5503. 2013-05-30 Tom Tromey <tromey@redhat.com>
  5504. * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
  5505. 2013-05-30 Tom Tromey <tromey@redhat.com>
  5506. * cli/cli-script.c (setup_user_args): Don't return after error.
  5507. 2013-05-30 Tom Tromey <tromey@redhat.com>
  5508. * somread.c (som_symtab_read): Call do_cleanups.
  5509. 2013-05-30 Tom Tromey <tromey@redhat.com>
  5510. * printcmd.c (print_command_1): Unconditionally call do_cleanups.
  5511. 2013-05-30 Tom Tromey <tromey@redhat.com>
  5512. * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
  5513. * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
  5514. * interps.c (interpreter_exec_cmd): Call do_cleanups.
  5515. * source.c (show_substitute_path_command): Call do_cleanups.
  5516. (unset_substitute_path_command, set_substitute_path_command):
  5517. Likewise.
  5518. * symfile.c (load_command): Call do_cleanups.
  5519. 2013-05-30 Tom Tromey <tromey@redhat.com>
  5520. * contrib/cleanup_check.py: New file.
  5521. * contrib/gcc-with-excheck: Add option parsing.
  5522. 2013-05-30 Joel Brobecker <brobecker@adacore.com>
  5523. * windows-nat.c (windows_delete_thread): Add missing space
  5524. in cast expression.
  5525. 2013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
  5526. * inferior.c (top level): Include tilde.h.
  5527. (add_inferior_command): Call tilde_expand on the value of 'exec'
  5528. argument.
  5529. 2013-05-30 Pedro Alves <pedro@codesourcery.com>
  5530. Yao Qi <yao@codesourcery.com>
  5531. * tracepoint.c (encode_actions_1): Remove parameter 't'.
  5532. Caller update.
  5533. (encode_actions): Likewise.
  5534. * remote.c (remote_download_tracepoint): Caller update.
  5535. * tracepoint.h (encode_actions): Update declaration.
  5536. 2013-05-30 Pedro Alves <palves@redhat.com>
  5537. * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
  5538. pointer.
  5539. 2013-05-30 Yao Qi <yao@codesourcery.com>
  5540. * remote.c (remote_check_symbols): Remove unused parameter
  5541. 'objfile'.
  5542. Declaration update.
  5543. (remote_start_remote, remote_new_objfile): Caller update.
  5544. 2013-05-30 Yao Qi <yao@codesourcery.com>
  5545. * mi/mi-cmds.c (mi_cmds): Define MI command
  5546. '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
  5547. DEF_MI_CMD_CLI.
  5548. 2013-05-29 Pedro Alves <palves@redhat.com>
  5549. * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
  5550. (remote_insert_watchpoint, remote_remove_watchpoint)
  5551. (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
  5552. (remote_verify_memory, compare_sections_command)
  5553. (remote_search_memory): Set the general process/thread on the
  5554. remote side.
  5555. 2013-05-29 Pedro Alves <palves@redhat.com>
  5556. * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
  5557. (_initialize_aarch64_tdep): Don't call
  5558. initialize_tdesc_aarch64_without_fpu.
  5559. * features/Makefile (WHICH): Remove reference to
  5560. aarch64-without-fpu.
  5561. * features/aarch64-without-fpu.c: Delete file.
  5562. * regformats/aarch64-without-fpu.dat: Delete file.
  5563. 2013-05-28 Yao Qi <yao@codesourcery.com>
  5564. * tracepoint.c (stringify_collection_list): Remove parameter
  5565. 'string'.
  5566. (encode_actions): Caller update. Remove local variables.
  5567. 2013-05-24 Yao Qi <yao@codesourcery.com>
  5568. * tracepoint.c (TFILE_PID): Remove.
  5569. (tfile_open): Don't add thread and inferior.
  5570. (tfile_close): Don't set 'inferior_ptid'. Don't call
  5571. exit_inferior_silent.
  5572. (tfile_thread_alive): Remove.
  5573. (init_tfile_ops): Don't set field 'to_thread_alive' of
  5574. tfile_ops.
  5575. 2013-05-23 Doug Evans <dje@google.com>
  5576. * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
  5577. 2013-05-23 Pedro Alves <palves@redhat.com>
  5578. * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
  5579. [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
  5580. (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
  5581. Only define if HAVE_SOCKETS is defined.
  5582. * configure.ac: Check for sys/socket.h.
  5583. * config.in, configure: Regenerate.
  5584. 2013-05-23 Pedro Alves <palves@redhat.com>
  5585. * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
  5586. (open_and_init_dwp_file): Use %s/pulongest instead of %u for
  5587. printing uint32_t variables.
  5588. 2013-05-23 Pedro Alves <palves@redhat.com>
  5589. * NEWS: Mention GDBserver range stepping support.
  5590. 2013-05-23 Yao Qi <yao@codesourcery.com>
  5591. Pedro Alves <palves@redhat.com>
  5592. * gdbthread.h (struct thread_control_state) <may_range_step>: New
  5593. field.
  5594. * infcmd.c (step_once, until_next_command): Enable range stepping.
  5595. * infrun.c (displaced_step_prepare): Disable range stepping.
  5596. (resume): Disable range stepping if stepping over a breakpoint or
  5597. we have software watchpoints. If range stepping is enabled,
  5598. assert the thread is in the stepping range.
  5599. (clear_proceed_status_thread): Clear may_range_step.
  5600. (handle_inferior_event): Disable range stepping as soon as we know
  5601. the thread that hit the event. Re-enable it whenever we're going
  5602. to step with a step range.
  5603. * remote.c (struct vCont_action_support) <r>: New field.
  5604. (use_range_stepping): New global.
  5605. (remote_vcont_probe): Handle 'r' action.
  5606. (append_resumption): Append an 'r' action if the thread may range
  5607. step.
  5608. (show_range_stepping): New function.
  5609. (set_range_stepping): New function.
  5610. (_initialize_remote): Call add_setshow_boolean_cmd to register the
  5611. 'set range-stepping' and 'show range-stepping' commands.
  5612. * NEWS: Mention range stepping, the new vCont;r action, and the
  5613. new "set/show range-stepping" commands.
  5614. 2013-05-23 Yao Qi <yao@codesourcery.com>
  5615. Pedro Alves <palves@redhat.com>
  5616. * remote.c (struct vCont_action_support): New struct.
  5617. (struct remote_state) <support_vCont_t>: Remove field.
  5618. <vCont_actions_support>: New field.
  5619. (remote_vcont_probe, remote_stop_ns): Update.
  5620. 2013-05-23 Yao Qi <yao@codesourcery.com>
  5621. Pedro Alves <palves@redhat.com>
  5622. * gdbthread.h (pc_in_thread_step_range): New declaration.
  5623. * thread.c (pc_in_thread_step_range): New function.
  5624. * infrun.c (handle_inferior_event): Use it.
  5625. 2013-05-23 Joel Brobecker <brobecker@adacore.com>
  5626. * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
  5627. of sprintf.
  5628. 2013-05-22 Keith Seitz <keiths@redhat.com>
  5629. * ada-lang.c (is_known_support_routine): Add explicit free of
  5630. 'func_name' from find_frame_funname.
  5631. (ada_unhandled_exception_name_addr_from_raise): Add cleanups
  5632. for func_name from find_frame_funname.
  5633. * python/py-frame.c (frapy_name): Add explicit free of
  5634. 'name' from find_frame_funname.
  5635. * stack.c (find_frame_funname): Add comment explaining that
  5636. funcp must be freed by the caller.
  5637. Return copy of symbol names instead of pointers.
  5638. (print_frame): Add a cleanup for 'funname' from
  5639. find_frame_funname.
  5640. * stack.h (find_frame_funname): Remove "const" from
  5641. 'funname' parameter.
  5642. 2013-05-22 Tom Tromey <tromey@redhat.com>
  5643. PR c++/15401:
  5644. * c-valprint.c (c_value_print): Use value_addr for
  5645. references. Convert back to reference type with value_ref.
  5646. 2013-05-22 Eli Zaretskii <eliz@gnu.org>
  5647. * windows-nat.c (handle_unload_dll): Don't call solib_add for the
  5648. unloaded DLL, it will be done by handle_solib_event. See
  5649. http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
  5650. details.
  5651. 2013-05-22 Phil Muldoon <pmuldoon@redhat.com>
  5652. * ui-out.c: Create typedef ui_out_level_p and define vector
  5653. operations for that type.
  5654. (struct ui_out): Use a vector instead of an array.
  5655. (current_level): Return level from a vector.
  5656. (push_level): Create a level in a vector.
  5657. (pop_level): Delete a level in a vector.
  5658. (ui_out_new): Create initial level zero level, and store in a
  5659. vector.
  5660. (ui_out_destroy): Add vector cleanup.
  5661. 2013-05-22 Pedro Alves <palves@redhat.com>
  5662. * python/python-internal.h (gdb_Py_DECREF): Tag with
  5663. "ARI: editCase function".
  5664. 2013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
  5665. * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
  5666. 2013-05-21 Pedro Alves <palves@redhat.com>
  5667. * python/py-prettyprint.c (apply_val_pretty_printer): Check
  5668. whether PRINTER is NULL before installing a Py_DECREF cleanup.
  5669. * python/py-utils.c (py_decref): Don't check for NULL before
  5670. calling Py_DECREF.
  5671. 2013-05-21 Pedro Alves <palves@redhat.com>
  5672. * python/py-utils.c (py_decref): Remove extra braces.
  5673. (gdb_pymodule_addobject): Remove extra braces.
  5674. * python-internal.h (gdb_Py_DECREF): New static inline function.
  5675. (Py_DECREF): Redefine as calling gdb_Py_DECREF.
  5676. 2013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
  5677. * breakpoints.c (detach_breakpoints): Do not
  5678. detach breakpoints locations with loc_type bp_loc_other.
  5679. 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
  5680. Workaround Python 2.6.
  5681. * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
  5682. a block.
  5683. 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
  5684. Code cleanup: constification.
  5685. * solib.c (solib_ops): Make return type and ops variable type const.
  5686. (set_solib_ops): Make the new_ops parameter and ops variable const.
  5687. (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
  5688. (solib_add, solib_keep_data_in_core, clear_solib)
  5689. (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
  5690. (reload_shared_libraries, solib_global_lookup): Make the ops variable
  5691. const.
  5692. * solib.h (set_solib_ops): Make the new_ops parameter const.
  5693. 2013-05-21 Joel Brobecker <brobecker@adacore.com>
  5694. * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
  5695. variable.
  5696. (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
  5697. (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
  5698. (SYSTEM_GDBINIT_FILES): New variables.
  5699. (all): Add stamp-system-gdbinit.
  5700. (stamp-system-gdbinit): New rule.
  5701. (clean-system-gdbinit, install-system-gdbinit)
  5702. (uninstall-system-gdbinit): New rules. Make them .PHONY.
  5703. (install-only): Add dependency on install-system-gdbinit.
  5704. (uninstall): Add dependency on uninstall-system-gdbinit.
  5705. (clean): Add dependency on clean-system-gdbinit.
  5706. * system-gdbinit/elinos.py: New file.
  5707. * system-gdbinit/wrs-linux.py: New file.
  5708. 2013-05-21 Joel Brobecker <brobecker@adacore.com>
  5709. * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
  5710. 2013-05-21 Hui Zhu <hui@codesourcery.com>
  5711. * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
  5712. * breakpoint.h (dprintf_breakpoint_ops): Add extern.
  5713. * mi/mi-cmd-break.c (ctype.h): New include.
  5714. (gdb_obstack.h): New include.
  5715. (mi_argv_to_format, mi_cmd_break_insert_1): New.
  5716. (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
  5717. (mi_cmd_dprintf_insert): New.
  5718. * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
  5719. * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
  5720. 2013-05-20 Tom Tromey <tromey@redhat.com>
  5721. * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
  5722. 2013-05-20 Tom Tromey <tromey@redhat.com>
  5723. * python/py-value.c (valpy_get_dynamic_type): Simplify
  5724. dynamic_type assignment. Use Py_XINCREF.
  5725. 2013-05-20 Tom Tromey <tromey@redhat.com>
  5726. * python/py-type.c (typy_fields): Unconditionally decref 'r'.
  5727. 2013-05-20 Tom Tromey <tromey@redhat.com>
  5728. * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
  5729. (gdbpy_selected_frame): Move object-construction code
  5730. out of TRY_CATCH.
  5731. 2013-05-20 Tom Tromey <tromey@redhat.com>
  5732. * python/py-arch.c (gdbpy_initialize_arch): Use
  5733. gdb_pymodule_addobject.
  5734. * python/py-block.c (gdbpy_initialize_blocks): Use
  5735. gdb_pymodule_addobject.
  5736. * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
  5737. gdb_pymodule_addobject.
  5738. * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
  5739. gdb_pymodule_addobject.
  5740. * python/py-event.c (gdbpy_initialize_event_generic): Use
  5741. gdb_pymodule_addobject.
  5742. * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
  5743. gdb_pymodule_addobject.
  5744. * python/py-evts.c (add_new_registry): Use
  5745. gdb_pymodule_addobject.
  5746. (gdbpy_initialize_py_events): Likewise.
  5747. * python/py-finishbreakpoint.c
  5748. (gdbpy_initialize_finishbreakpoints): Use
  5749. gdb_pymodule_addobject.
  5750. * python/py-frame.c (gdbpy_initialize_frames): Use
  5751. gdb_pymodule_addobject.
  5752. * python/py-function.c (gdbpy_initialize_functions): Use
  5753. gdb_pymodule_addobject.
  5754. * python/py-inferior.c (gdbpy_initialize_inferior): Use
  5755. gdb_pymodule_addobject.
  5756. * python/py-infthread.c (gdbpy_initialize_thread): Use
  5757. gdb_pymodule_addobject.
  5758. * python/py-objfile.c (gdbpy_initialize_objfile): Use
  5759. gdb_pymodule_addobject.
  5760. * python/py-param.c (gdbpy_initialize_parameters): Use
  5761. gdb_pymodule_addobject.
  5762. * python/py-progspace.c (gdbpy_initialize_pspace): Use
  5763. gdb_pymodule_addobject.
  5764. * python/py-symbol.c (gdbpy_initialize_symbols): Use
  5765. gdb_pymodule_addobject.
  5766. * python/py-symtab.c (gdbpy_initialize_symtabs): Use
  5767. gdb_pymodule_addobject.
  5768. * python/py-type.c (gdbpy_initialize_types): Use
  5769. gdb_pymodule_addobject.
  5770. * python/py-utils.c (gdb_pymodule_addobject): New function.
  5771. * python/py-value.c (gdbpy_initialize_values): Use
  5772. gdb_pymodule_addobject.
  5773. * python/python-internal.h (gdb_pymodule_addobject): Declare.
  5774. * python/python.c (_initialize_python): Use
  5775. gdb_pymodule_addobject.
  5776. 2013-05-20 Tom Tromey <tromey@redhat.com>
  5777. * python/py-cmd.c (cmdpy_completer): Use explicit decref.
  5778. * python/py-param.c (get_set_value, get_show_value): Use
  5779. explicit decrefs.
  5780. * python/python.c (start_type_printers, apply_type_printers):
  5781. Use explicit decrefs.
  5782. 2013-05-20 Tom Tromey <tromey@redhat.com>
  5783. * python/py-evts.c (gdbpy_initialize_py_events): Don't
  5784. incref the module.
  5785. 2013-05-20 Tom Tromey <tromey@redhat.com>
  5786. * python/python.c (gdbpy_run_events): Decref the result
  5787. of PyObject_CallObject.
  5788. 2013-05-20 Tom Tromey <tromey@redhat.com>
  5789. * python/py-symtab.c (set_sal): Use
  5790. CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
  5791. (symtab_and_line_to_sal_object): Update.
  5792. 2013-05-20 Tom Tromey <tromey@redhat.com>
  5793. * python/py-param.c (compute_enum_values): Decref 'item'.
  5794. 2013-05-20 Tom Tromey <tromey@redhat.com>
  5795. * mi/mi-main.c: Include python-internal.h.
  5796. (mi_cmd_list_features): Check gdb_python_initialized.
  5797. * python/py-inferior.c (python_on_normal_stop, python_on_resume)
  5798. (python_inferior_exit, python_new_objfile, add_thread_object)
  5799. (delete_thread_object, py_free_inferior): Check
  5800. gdb_python_initialized.
  5801. * python/py-prettyprint.c (apply_val_pretty_printer): Check
  5802. gdb_python_initialized.
  5803. * python/py-type.c (save_objfile_types): Check
  5804. gdb_python_initialized.
  5805. * python/python-internal.h (gdb_python_initialized): Declare.
  5806. * python/python.c (ensure_python_env): Throw exception if
  5807. Python not initialized.
  5808. (before_prompt_hook, source_python_script_for_objfile)
  5809. (start_type_printers, apply_type_printers,
  5810. free_type_printers): Check gdb_python_initialized.
  5811. * varobj.c (varobj_get_display_hint)
  5812. (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
  5813. (install_new_value_visualizer, varobj_set_visualizer)
  5814. (value_get_print_value): Check gdb_python_initialized.
  5815. 2013-05-20 Tom Tromey <tromey@redhat.com>
  5816. * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
  5817. Check errors.
  5818. * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
  5819. * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
  5820. Check errors.
  5821. * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
  5822. Check errors.
  5823. * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
  5824. Check errors.
  5825. * python/py-event.c (gdbpy_initialize_event): Return 'int'.
  5826. Check errors.
  5827. * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
  5828. init function to return 'int'.
  5829. * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
  5830. Return 'int'. Check errors.
  5831. * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
  5832. Check errors.
  5833. * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
  5834. Return 'int'. Check errors.
  5835. * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
  5836. Check errors.
  5837. * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
  5838. Check errors.
  5839. * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
  5840. Check errors.
  5841. * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
  5842. Check errors.
  5843. * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
  5844. Check errors.
  5845. * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
  5846. Check errors.
  5847. * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
  5848. Check errors.
  5849. * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
  5850. Check errors.
  5851. * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
  5852. Check errors.
  5853. * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
  5854. Check errors.
  5855. * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
  5856. Check errors.
  5857. * python/py-type.c (gdbpy_initialize_types): Return 'int'.
  5858. Check errors.
  5859. * python/py-value.c (gdbpy_initialize_values): Return 'int'.
  5860. Check errors.
  5861. * python/python-internal.h (gdbpy_initialize_auto_load,
  5862. gdbpy_initialize_values, gdbpy_initialize_frames,
  5863. gdbpy_initialize_symtabs, gdbpy_initialize_commands,
  5864. gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
  5865. gdbpy_initialize_blocks, gdbpy_initialize_types,
  5866. gdbpy_initialize_functions, gdbpy_initialize_pspace,
  5867. gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
  5868. gdbpy_initialize_finishbreakpoints,
  5869. gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
  5870. gdbpy_initialize_thread, gdbpy_initialize_inferior,
  5871. gdbpy_initialize_eventregistry, gdbpy_initialize_event,
  5872. gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
  5873. gdbpy_initialize_signal_event,
  5874. gdbpy_initialize_breakpoint_event,
  5875. gdbpy_initialize_continue_event,
  5876. gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
  5877. gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
  5878. Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
  5879. * python/python.c (gdb_python_initialized): New global.
  5880. (gdbpy_initialize_events): Return 'int'. Check errors.
  5881. (_initialize_python): Check errors. Set
  5882. gdb_python_initialized.
  5883. 2013-05-20 Tom Tromey <tromey@redhat.com>
  5884. * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
  5885. Decref the reslut of PyObject_CallMethod.
  5886. 2013-05-20 Tom Tromey <tromey@redhat.com>
  5887. * python/py-event.c (gdbpy_initialize_event_generic): Return
  5888. early if PyType_Ready fails.
  5889. 2013-05-20 Tom Tromey <tromey@redhat.com>
  5890. * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
  5891. as 'default' in the switch.
  5892. 2013-05-20 Tom Tromey <tromey@redhat.com>
  5893. * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
  5894. get_addr_from_python calls out of TRY_CATCH.
  5895. (infpy_write_memory, infpy_search_memory): Likewise.
  5896. * python/py-utils.c (get_addr_from_python): Return negative
  5897. value on error. Use TRY_CATCH.
  5898. * python/python-internal.h (get_addr_from_python): Use
  5899. CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
  5900. 2013-05-20 Tom Tromey <tromey@redhat.com>
  5901. * python/py-event.c (evpy_emit_event): Decref the
  5902. result of PyObject_CallFunctionObjArgs.
  5903. 2013-05-20 Tom Tromey <tromey@redhat.com>
  5904. * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
  5905. Correctly decref.
  5906. 2013-05-20 Tom Tromey <tromey@redhat.com>
  5907. * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
  5908. 2013-05-20 Tom Tromey <tromey@redhat.com>
  5909. * python/py-event.h (gdbpy_initialize_event_generic): Use
  5910. CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
  5911. * python/py-evts.c (add_new_registry): Use
  5912. CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
  5913. * python/python-internal.h
  5914. (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
  5915. 2013-05-20 Tom Tromey <tromey@redhat.com>
  5916. * python/py-arch.c (archpy_disassemble): Update.
  5917. * python/py-type.c (typy_get_composite, typy_lookup_typename)
  5918. (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
  5919. * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
  5920. * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
  5921. macro.
  5922. (GDB_PY_HANDLE_EXCEPTION): Update.
  5923. (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
  5924. 2013-05-20 Tom Tromey <tromey@redhat.com>
  5925. * python/python-internal.h (events_object_type): Remove.
  5926. 2013-05-20 Tom Tromey <tromey@redhat.com>
  5927. * python/py-event.h (evpy_emit_event): Use
  5928. CPYCHECKER_STEALS_REFERENCE_TO_ARG.
  5929. * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
  5930. New macro.
  5931. 2013-05-20 Tom Tromey <tromey@redhat.com>
  5932. * py-evtregistry.c (create_event_object): Decref
  5933. eventregistry_object if PyList_New fails.
  5934. 2013-05-20 Tom Tromey <tromey@redhat.com>
  5935. * py-cmd.c (gdbpy_string_to_argv): Check result of
  5936. PyList_New.
  5937. 2013-05-20 Tom Tromey <tromey@redhat.com>
  5938. * python/python.c (before_prompt_hook): Add cleanup to
  5939. decref 'hook'.
  5940. 2013-05-20 Tom Tromey <tromey@redhat.com>
  5941. * python/py-function.c (fnpy_init): Decref result of
  5942. PyObject_GetAttrString.
  5943. 2013-05-20 Tom Tromey <tromey@redhat.com>
  5944. * python/py-threadevent.c (get_event_thread): Use
  5945. CPYCHECKER_RETURNS_BORROWED_REF.
  5946. * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
  5947. New define.
  5948. (pspace_to_pspace_object, objfile_to_objfile_object)
  5949. (find_thread_object): Use it.
  5950. 2013-05-20 Tom Tromey <tromey@redhat.com>
  5951. * python/py-arch.c (arch_object_type): Use
  5952. CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
  5953. * python/py-block.c (block_syms_iterator_object_type):
  5954. Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
  5955. * python/py-bpevent.c (breakpoint_event_object_type):
  5956. Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
  5957. * python/py-cmd.c (cmdpy_object_type): Use
  5958. CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
  5959. * python/py-continueevent.c (continue_event_object_type):
  5960. Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
  5961. * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
  5962. Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
  5963. * python/py-events.h (thread_event_object_type):
  5964. Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
  5965. * python/py-evtregistry.c (eventregistry_object_type): Use
  5966. CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
  5967. * python/py-exitedevent.c (exited_event_object_type):
  5968. Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
  5969. * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
  5970. Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
  5971. * python/py-function.c (fnpy_object_type): Use
  5972. CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
  5973. * python/py-inferior.c (inferior_object_type, membuf_object_type):
  5974. Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
  5975. * python/py-infthread.c (thread_object_type): Use
  5976. CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
  5977. * python/py-lazy-string.c (lazy_string_object_type):
  5978. Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
  5979. * python/py-newobjfileevent.c (new_objfile_event_object_type):
  5980. Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
  5981. * python/py-objfile.c (objfile_object_type): Use
  5982. CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
  5983. * python/py-param.c (parmpy_object_type):
  5984. Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
  5985. * python/py-progspace.c (pspace_object_type):
  5986. Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
  5987. * python/py-signalevent.c (signal_event_object_type):
  5988. Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
  5989. * python/py-symtab.c (symtab_object_type, sal_object_type): Use
  5990. CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
  5991. * python/py-type.c (type_object_type, field_object_type)
  5992. (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
  5993. * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
  5994. define.
  5995. (value_object_type, block_object_type, symbol_object_type)
  5996. (event_object_type, stop_event_object_type, breakpoint_object_type)
  5997. (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
  5998. 2013-05-20 Andreas Tobler <andreas@fgznet.ch>
  5999. * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
  6000. (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
  6001. 2013-05-20 Doug Evans <dje@google.com>
  6002. When reading CU, stay in DWO. Be more tolerent of bad debug info.
  6003. For Fission.
  6004. * dwarf2read.c (struct dwarf2_per_cu_data): New member
  6005. reading_dwo_directly.
  6006. (struct signatured_type): New member dwo_unit.
  6007. (struct die_reader_specs): New member comp_dir.
  6008. (create_signatured_type_table_from_index): Use malloc for
  6009. all_type_units instead of objfile's obstack.
  6010. (create_all_type_units): Ditto.
  6011. (fill_in_sig_entry_from_dwo_entry): New function.
  6012. (add_type_unit): New function.
  6013. (lookup_dwo_signatured_type): New function.
  6014. (lookup_dwp_signatured_type): New function.
  6015. (lookup_signatured_type): New arg cu. All callers updated.
  6016. (init_cu_die_reader): Initialize comp_dir.
  6017. (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
  6018. Change assert of matching type signatures to call error on mismatch.
  6019. (lookup_dwo_unit): Add assert.
  6020. (init_tu_and_read_dwo_dies): New function.
  6021. (init_cutu_and_read_dies): Call it.
  6022. (build_type_unit_groups): Handle case of no type unit groups created.
  6023. (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
  6024. (lookup_dwo_cutu): Tweak complaint.
  6025. (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
  6026. (dwarf2_per_objfile_free): Free all_type_units.
  6027. 2013-05-20 Joel Brobecker <brobecker@adacore.com>
  6028. * windows-nat.c (handle_unload_dll): Add missing empty line.
  6029. 2013-05-20 Joel Brobecker <brobecker@adacore.com>
  6030. * dwarf2read.c (prototyped_function_p): New function.
  6031. (read_subroutine_type): Use it.
  6032. 2013-05-20 Joel Brobecker <brobecker@adacore.com>
  6033. * rs6000-aix-tdep.c: De-indent some example code provided
  6034. as a comment.
  6035. 2013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
  6036. * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
  6037. region is ok for a hardware watchpoint using the new ptrace interface
  6038. on Power servers.
  6039. 2013-05-17 Doug Evans <dje@google.com>
  6040. * NEWS: Mention new maintenance commands check-symtabs, and
  6041. expand-symtabs, and renamed check-psymtabs.
  6042. * psymtab.c (maintenance_check_psymtabs): Renamed from
  6043. maintenance_check_symtabs. Only process already-expanded symbol
  6044. tables.
  6045. (_initialize_psymtab): Update.
  6046. * symmisc.c (maintenance_check_symtabs): New function.
  6047. (maintenance_expand_name_matcher): New function
  6048. (maintenance_expand_file_matcher): New function
  6049. (maintenance_expand_symtabs): New function.
  6050. (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
  6051. commands.
  6052. 2013-05-17 Tom Tromey <tromey@redhat.com>
  6053. * python/py-inferior.c (infpy_read_memory): Don't call
  6054. PyErr_SetString if PyObject_New fails.
  6055. * python/py-frame.c (frame_info_to_frame_object): Don't call
  6056. PyErr_SetString if PyObject_New fails.
  6057. 2013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
  6058. * acinclude.m4: Add check for dlopen in libdl.
  6059. * configure.ac: Ditto.
  6060. * configure: Regenerate.
  6061. 2013-05-17 Phil Muldoon <pmuldoon@redhat.com>
  6062. * frame.c (frame_stash): Convert to htab.
  6063. (frame_addr_hash): New function.
  6064. (frame_addr_hash_eq): New function.
  6065. (frame_stash_create): Convert function to create
  6066. a hash table.
  6067. (frame_stash_add): Convert function to add an entry to a hash
  6068. table.
  6069. (frame_stash_find): Convert function to search the hash table.
  6070. (frame_stash_invalidate): Convert function to empty the hash
  6071. table.
  6072. (get_frame_id): Only add to stash if a frame_id is created.
  6073. (_initialize_frame): Call frame_stash_create.
  6074. 2013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
  6075. * configure.ac: Ensure MIG is available when building for GNU Hurd
  6076. hosts.
  6077. * configure: Regenerate.
  6078. 2013-05-16 Joel Brobecker <brobecker@adacore.com>
  6079. * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
  6080. 2013-05-16 Joel Brobecker <brobecker@adacore.com>
  6081. * ada-lang.c (ada_make_symbol_completion_list): Make sure
  6082. all cleanups are done before returning from this function.
  6083. 2013-05-15 Joel Brobecker <brobecker@adacore.com>
  6084. * utils.h: #include "exceptions.h".
  6085. (enum errors): Remove partial declaration.
  6086. 2013-05-15 Joel Brobecker <brobecker@adacore.com>
  6087. * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
  6088. * gdbarch.h, gdbarch.c: Regenerate.
  6089. * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
  6090. handling.
  6091. * rs6000-aix-tdep.h: New file.
  6092. * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
  6093. * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
  6094. "xml-utils.h".
  6095. (struct field_info, struct ld_info_desc): New types.
  6096. (ld_info32_desc, ld_info64_desc): New static constants.
  6097. (struct ld_info): New type.
  6098. (rs6000_aix_extract_ld_info): New function.
  6099. (rs6000_aix_shared_library_to_xml): Likewise.
  6100. (rs6000_aix_ld_info_to_xml): Likewise.
  6101. (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
  6102. (rs6000_aix_init_osabi): Add call to
  6103. set_gdbarch_core_xfer_shared_libraries_aix.
  6104. * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
  6105. Remove "xml-utils.h" include.
  6106. (LdInfo): Delete typedef.
  6107. (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
  6108. Delete macros.
  6109. (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
  6110. Adjust code accordingly.
  6111. (rs6000_core_ldinfo): Delete, folded into
  6112. rs6000_aix_core_xfer_shared_libraries_aix.
  6113. (rs6000_xfer_shared_library): Delete.
  6114. (rs6000_xfer_shared_libraries): Reimplement.
  6115. 2013-05-15 Markus Metzger <markus.t.metzger@intel.com>
  6116. * record.c (record_goto_cmdlist): New.
  6117. (cmd_record_goto): Split into this ...
  6118. (cmd_record_goto_begin): ... this
  6119. (cmd_record_goto_end): ... and this.
  6120. (_initialize_record): Change "record goto" to prefix command.
  6121. Add commands for "record goto begin" and "record goto end".
  6122. Add an alias for "record goto start" to "record goto begin".
  6123. 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
  6124. * linespec.c (convert_linespec_to_sals): New comment for
  6125. SOURCE_FILENAME assignment.
  6126. 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
  6127. * cleanups.c (restore_my_cleanups): Replace gdb_assert by
  6128. internal_warning.
  6129. 2013-05-14 Tom Tromey <tromey@redhat.com>
  6130. * eval.c (parse_and_eval_long): Make 'exp' const.
  6131. * value.h (parse_and_eval_long): Update.
  6132. 2013-05-14 Tom Tromey <tromey@redhat.com>
  6133. * ui-file.c (gdb_fopen): Make arguments const.
  6134. * ui-file.h (gdb_fopen): Make arguments const.
  6135. 2013-05-14 Tom Tromey <tromey@redhat.com>
  6136. * remote.c (remote_set_trace_notes): Make arguments const.
  6137. * target.c (update_current_target): Update cast.
  6138. * target.h (to_set_trace_notes): Make arguments const.
  6139. 2013-05-14 Tom Tromey <tromey@redhat.com>
  6140. * go32-nat.c (go32_terminal_info): Make 'args' const.
  6141. * inferior.h (child_terminal_info): Update.
  6142. * inflow.c (child_terminal_info): Make 'args' const.
  6143. * target.c (default_terminal_info): Make 'args' const.
  6144. (debug_to_terminal_save_ours): Likewise.
  6145. * target.h (struct target_ops) <to_terminal_info>: Make argument
  6146. const.
  6147. 2013-05-13 Tom Tromey <tromey@redhat.com>
  6148. * gcore.c (create_gcore_bfd): Make 'filename' const.
  6149. * gcore.h (create_gcore_bfd): Make 'filename' const.
  6150. * record-full.c (record_full_save): Make 'recfilename' const.
  6151. * target.c (target_save_record): Make 'filename' const.
  6152. * target.h (struct target_ops) <to_save_record>: Make 'filename'
  6153. const.
  6154. (target_save_record): Likewise.
  6155. 2013-05-13 Tom Tromey <tromey@redhat.com>
  6156. PR gdb/15338:
  6157. * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
  6158. ranges section has been read.
  6159. 2013-05-13 Tom Tromey <tromey@redhat.com>
  6160. PR exp/15364:
  6161. * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
  6162. STRUCTOP_PTR>: Return a not_lval value for
  6163. EVAL_AVOID_SIDE_EFFECTS.
  6164. * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
  6165. for EVAL_AVOID_SIDE_EFFECTS.
  6166. 2013-05-13 Joel Brobecker <brobecker@adacore.com>
  6167. * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
  6168. floating point registers to register type before storing
  6169. value.
  6170. * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
  6171. Likewise.
  6172. 2013-05-10 Joel Brobecker <brobecker@adacore.com>
  6173. Tom Tromey <tromey@redhat.com>
  6174. * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
  6175. New functions.
  6176. * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
  6177. Declare.
  6178. * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
  6179. (darwin_ptrace_him): Use unmark_fd_no_cloexec.
  6180. * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
  6181. (inf_ttrace_prepare): Use mark_fd_no_cloexec.
  6182. 2013-05-10 Freddie Chopin <freddie_chopin@op.pl>
  6183. Tom Tromey <tromey@redhat.com>
  6184. PR build/15414:
  6185. * configure: Rebuild.
  6186. * configure.ac (build_warnings): Do not use -Wformat-nonliteral
  6187. with -Wno-format.
  6188. 2013-05-10 Pedro Alves <palves@redhat.com>
  6189. * remote.c (_initialize_remote): Fix spelling of
  6190. qXfer:traceframe-info:read packet in packet config command.
  6191. 2013-05-10 David Taylor <dtaylor@emc.com>
  6192. PR remote/15455
  6193. * remote.c (remote_trace_set_readonly_regions): Do not overwrite
  6194. "QTro" at start of packet.
  6195. 2013-05-10 Joel Brobecker <brobecker@adacore.com>
  6196. * solib-aix.c (solib_aix_relocate_section_addresses):
  6197. For the .bss section action, apply the same offset as
  6198. the .data section.
  6199. 2013-05-10 Joel Brobecker <brobecker@adacore.com>
  6200. * solib-aix.c (solib_aix_relocate_section_addresses):
  6201. Remove FIXME comment.
  6202. 2013-05-10 Joel Brobecker <brobecker@adacore.com>
  6203. PR tdep/15420:
  6204. * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
  6205. New functions, directly copied from sparc-sol-thread.c.
  6206. * sparc-sol-thread.c: Delete.
  6207. * configure.ac: Remove code handling sparc-solaris-thread.c.
  6208. * configure: Regenerate.
  6209. 2013-05-10 Phil Muldoon <pmuldoon@redhat.com>
  6210. * stack.c (backtrace_command_1): Add "no-filters", and Python frame
  6211. filter logic.
  6212. (backtrace_command): Add "no-filters" option parsing.
  6213. (_initialize_stack): Alter help to reflect "no-filters" option.
  6214. * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
  6215. (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
  6216. (py-frame.o): Add target
  6217. * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
  6218. filter files.
  6219. * python/python.h: Add new frame filter constants, and flag enum.
  6220. (apply_frame_filter): Add definition.
  6221. * python/python.c (apply_frame_filter): New non-Python
  6222. enabled function.
  6223. * python/py-utils.c (py_xdecref): New function.
  6224. (make_cleanup_py_xdecref): Ditto.
  6225. * python/py-objfile.c: Declare frame_filters dictionary.
  6226. (objfpy_dealloc): Add frame_filters dealloc.
  6227. (objfpy_new): Initialize frame_filters attribute.
  6228. (objfile_to_objfile_object): Ditto.
  6229. (objfpy_get_frame_filters): New function.
  6230. (objfpy_set_frame_filters): New function.
  6231. * python/py-progspace.c: Declare frame_filters dictionary.
  6232. (pspy_dealloc): Add frame_filters dealloc.
  6233. (pspy_new): Initialize frame_filters attribute.
  6234. (pspacee_to_pspace_object): Ditto.
  6235. (pspy_get_frame_filters): New function.
  6236. (pspy_set_frame_filters): New function.
  6237. * python/py-framefilter.c: New file.
  6238. * python/lib/gdb/command/frame_filters.py: New file.
  6239. * python/lib/gdb/frames.py: New file.
  6240. * python/lib/gdb/__init__.py: Initialize global frame_filters
  6241. dictionary
  6242. * python/lib/gdb/FrameDecorator.py: New file.
  6243. * python/lib/gdb/FrameIterator.py: New file.
  6244. * mi/mi-cmds.c (mi_cmds): Add frame filters command.
  6245. * mi/mi-cmds.h: Declare.
  6246. * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
  6247. --no-frame-filter logic, and Python frame filter logic.
  6248. (stack_enable_frame_filters): New function.
  6249. (parse_no_frame_option): Ditto.
  6250. (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
  6251. filter logic.
  6252. (mi_cmd_stack_list_locals): Ditto.
  6253. (mi_cmd_stack_list_args): Ditto.
  6254. (mi_cmd_stack_list_variables): Ditto.
  6255. * NEWS: Add frame filter note.
  6256. 2013-05-09 Doug Evans <dje@google.com>
  6257. * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
  6258. All callers updated.
  6259. (syms_from_objfile): Ditto. Make static.
  6260. (symbol_file_add_with_addrs): Renamed from
  6261. symbol_file_add_with_addrs_or_offsets. Delete args offsets,
  6262. num_offsets. All callers updated.
  6263. * symfile.h (syms_from_objfile): Delete.
  6264. * symfile.c (decrement_reading_symtab): Add assert.
  6265. (increment_reading_symtab): Ditto.
  6266. 2013-05-09 Joel Brobecker <brobecker@adacore.com>
  6267. * source.c (forward_search_command): Replace call to getc
  6268. by call to fgetc.
  6269. (reverse_search_command): Likewise.
  6270. 2013-05-08 Doug Evans <dje@google.com>
  6271. * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
  6272. matching test.
  6273. 2013-05-08 Joel Brobecker <brobecker@adacore.com>
  6274. * sol-thread.c (info_cb): Factorize the code a little.
  6275. 2013-05-08 Joel Brobecker <brobecker@adacore.com>
  6276. * sol-thread.c (info_cb): Rework the output of the "maintenance
  6277. info sol-threads" command a bit.
  6278. 2013-05-08 Joel Brobecker <brobecker@adacore.com>
  6279. * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
  6280. Replace ti.ti_startfunc by ti.ti_pc.
  6281. 2013-05-08 Joel Brobecker <brobecker@adacore.com>
  6282. * solib-aix.c (solib_aix_free_library_list): New function
  6283. for the case where HAVE_LIBEXPAT is not defined.
  6284. 2013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
  6285. PR breakpoints/15413:
  6286. * breakpoint.c (condition_completer): Simplify the code to
  6287. disconsider multiple locations of breakpoints when completing the
  6288. "condition" command.
  6289. 2013-05-07 Pierre Muller <muller@sourceware.org>
  6290. * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
  6291. instead of <sys/wait.h>.
  6292. 2013-05-07 Pierre Muller <muller@sourceware.org>
  6293. * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
  6294. trailing new line from warning message.
  6295. 2013-05-07 Pierre Muller <muller@sourceware.org>
  6296. * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
  6297. (PC_SOLIB): Change type from ari_deprecate to ari_regression.
  6298. 2013-05-07 Joel Brobecker <brobecker@adacore.com>
  6299. * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
  6300. error message (ARI fix).
  6301. 2013-05-07 Joel Brobecker <brobecker@adacore.com>
  6302. * features/library-list-aix.dtd: Replace library-list by
  6303. library-list-aix.
  6304. * rs6000-nat.c: Replace library-list by library-list-aix
  6305. throughout.
  6306. * solib-aix.c: Likewise.
  6307. 2013-05-07 Joel Brobecker <brobecker@adacore.com>
  6308. * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
  6309. Renames TARGET_OBJECT_AIX_LIBRARIES.
  6310. * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
  6311. TARGET_OBJECT_LIBRARIES_AIX throughout.
  6312. * solib-aix.c: Likwise.
  6313. 2013-05-07 Yao Qi <yao@codesourcery.com>
  6314. * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
  6315. (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
  6316. 2013-05-07 Yao Qi <yao@codesourcery.com>
  6317. * solib-dsbt.c (enable_break): Declare.
  6318. (dsbt_current_sos): Remove call to enable_break2.
  6319. (enable_break2): Rename to enable_break. Set solib breakpoint
  6320. on '_dl_debug_state'.
  6321. (enable_break): Remove.
  6322. 2013-05-07 Luis Machado <lgustavo@codesourcery.com>
  6323. * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
  6324. debug state prior to replicating existing hardware watchpoints or
  6325. breakpoints.
  6326. 2013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
  6327. * gcore.c (gcore_create_callback): Ignore sections with
  6328. separate_debug_objfile_backlink != NULL.
  6329. 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
  6330. Andrew Jenner <andrew@codesourcery.com>
  6331. Chung-Lin Tang <cltang@codesourcery.com>
  6332. Julian Brown <julian@codesourcery.com>
  6333. Based on the nios2-elf port from Altera Corporation.
  6334. * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
  6335. nios2-linux-tdep.o.
  6336. (HFILES_NO_SRCDIR): Add nios2-tdep.h.
  6337. (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
  6338. * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
  6339. * nios2-tdep.h: New.
  6340. * nios2-tdep.c: New.
  6341. * nios2-linux-tdep.c: New.
  6342. * features/Makefile (WHICH): Add nios2-linux.
  6343. (nios2-linux-expedite): Set.
  6344. * features/nios2-cpu.xml: New.
  6345. * features/nios2.xml: New.
  6346. * features/nios2-linux.xml: New.
  6347. * features/nios2.c: New (autogenerated).
  6348. * features/nios2-linux.c: New (autogenerated).
  6349. * regformats/nios2-linux.dat: New (autogenerated).
  6350. * NEWS (Changes since GDB 7.6): Add new Nios II targets
  6351. and commands.
  6352. 2013-05-06 Doug Evans <dje@google.com>
  6353. * symfile.c: Whitespace cleanup.
  6354. * solist.h (struct target_so_ops): New member clear_so.
  6355. * solib-svr4.c (svr4_clear_so): New function.
  6356. (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
  6357. * solib.c (clear_so): Renamed from free_so_symbols.
  6358. All callers updated. Call target clear_so if it exists.
  6359. 2013-05-06 Tom Tromey <tromey@redhat.com>
  6360. * ada-lang.c (ada_value_primitive_packed_val): Don't
  6361. call value_incref.
  6362. * value.c (set_value_parent): Incref the new parent and decref
  6363. the old parent.
  6364. (value_copy, value_primitive_field): Use set_value_parent.
  6365. 2013-05-06 Tom Tromey <tromey@redhat.com>
  6366. * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
  6367. (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
  6368. if needed.
  6369. * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
  6370. * dwarf2read.c (write_constant_as_bytes)
  6371. (dwarf2_fetch_constant_bytes): New functions.
  6372. 2013-05-06 Tom Tromey <tromey@redhat.com>
  6373. * dwarf2read.c (dwarf2_const_value_data): Remove unused
  6374. parameters.
  6375. (dwarf2_const_value_attr): Update.
  6376. 2013-05-06 Tom Tromey <tromey@redhat.com>
  6377. * somread.c (som_symfile_offsets): Add 'const' to addrs.
  6378. * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
  6379. * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
  6380. Remove declaration.
  6381. 2013-05-06 Tom Tromey <tromey@redhat.com>
  6382. * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
  6383. objfile's obstack.
  6384. 2013-05-06 Doug Evans <dje@google.com>
  6385. * dbxread.c (process_one_symbol): Constify section_offsets parameter.
  6386. * stabsread.h (process_one_symbol): Update declaration.
  6387. * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
  6388. * elfread.c (elf_symfile_relocate_probe): Ditto.
  6389. * psymtab.c (relocate_psymtabs): Ditto.
  6390. * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
  6391. (objfile_relocate): Ditto.
  6392. * objfiles.h (objfile_relocate): Update declaration.
  6393. * symfile.c (relative_addr_info_to_section_offsets): Constify
  6394. addrs parameter.
  6395. (default_symfile_offsets): Ditto.
  6396. (syms_from_objfile_1): Constify offsets parameter.
  6397. (syms_from_objfile): Ditto.
  6398. (symbol_file_add_with_addrs_or_offsets): Ditto.
  6399. (symfile_map_offsets_to_segments): Constify data parameter.
  6400. * symfile.h (struct quick_symbol_functions): Constify new_offsets,
  6401. delta parameters of member relocate.
  6402. (struct sym_probe_fns): Constify new_offsets,
  6403. delta parameters of member sym_relocate_probe.
  6404. (struct sym_fns): Constify section_addr_info parameter of member
  6405. sym_offsets.
  6406. (relative_addr_info_to_section_offsets): Update declaration.
  6407. (default_symfile_offsets): Ditto.
  6408. (syms_from_objfile): Ditto.
  6409. (symfile_map_offsets_to_segments): Ditto.
  6410. * symfile.c (syms_from_objfile_1): Use correct section count when
  6411. objfile->sf == NULL.
  6412. 2013-05-06 Mike Frysinger <vapier@gentoo.org>
  6413. * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
  6414. 2013-05-06 Doug Evans <dje@google.com>
  6415. * psympriv.h (struct partial_symtab): Augment comment for member
  6416. section_offsets.
  6417. 2013-05-06 Joel Brobecker <brobecker@adacore.com>
  6418. Reimplement shared library support on ppc-aix...
  6419. * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
  6420. * features/library-list-aix.dtd: New file.
  6421. * solib-aix.h, solib-aix.c: New file.
  6422. * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
  6423. (rs6000_find_toc_address_hook): Delete.
  6424. (rs6000_push_dummy_call): Rewrite code setting the TOC value.
  6425. (rs6000_aix_init_osabi): Register solib_aix_so_ops.
  6426. * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
  6427. "xml-utils.h".
  6428. (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
  6429. (vmap_symtab, fixup_breakpoints): Delete.
  6430. (rs6000_xfer_shared_libraries): New function.
  6431. (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
  6432. (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
  6433. (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
  6434. (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
  6435. (rs6000_xfer_shared_library): New function.
  6436. (find_toc_address): Delete.
  6437. (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
  6438. * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
  6439. * xcoffread.c (record_minimal_symbol): Reloate symbol address
  6440. before creating minimal symbol. Adjust function description
  6441. accordingly.
  6442. (scan_xcoff_symtab): Replace call to
  6443. prim_record_minimal_symbol_and_info by call to
  6444. record_minimal_symbol.
  6445. (xcoff_symfile_offsets): Reimplement mostly as a wrapper
  6446. around default_symfile_offsets.
  6447. * configure.tgt: Add solib-aix.o to gdb_target_obs for
  6448. powerpc-aix targets.
  6449. * config/rs6000/nm-rs6000.h: Delete.
  6450. * config/powerpc/aix.mh (NAT_FILE): Delete.
  6451. (NATDEPFILES): Remove xcoffsolib.o.
  6452. * Makefile.in (XMLFILES): Add library-list-aix.dtd.
  6453. (ALL_TARGET_OBS): Add solib-aix.o.
  6454. (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
  6455. config/rs6000/nm-rs6000.h. Add solib-aix.h.
  6456. (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
  6457. * xcoffsolib.h, xcoffsolib.c: Delete.
  6458. * solib.c (reload_shared_libraries): Remove reference to
  6459. SOLIB_CREATE_INFERIOR_HOOK.
  6460. * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
  6461. (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
  6462. (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
  6463. comment.
  6464. * corelow.c (deprecated_core_resize_section_table): Delete.
  6465. * exec.c: Remove include of xcoffsolib.h".
  6466. (map_vmap, vmap): Delete.
  6467. (exec_close_1): Remove references to vmap.
  6468. (exec_file_attach): Remove vmap handling code, and reference
  6469. to DEPRECATED_IBM6000_TARGET.
  6470. (bfdsec_to_vmap): Delete.
  6471. (exec_files_info): Remove block of code handling VMAP.
  6472. * infcmd.c (post_create_inferior): Remove reference to
  6473. SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
  6474. * infrun.c (follow_exec): Remove reference to
  6475. SOLIB_CREATE_INFERIOR_HOOK.
  6476. * stack.c (print_frame): Remove reference to PC_SOLIB.
  6477. * solib-dsbt.c (dsbt_current_sos): Adjust comment.
  6478. (dsbt_relocate_main_executable): Likewise.
  6479. * solib-frv.c (frv_current_sos): Likewise.
  6480. 2013-05-06 Joel Brobecker <brobecker@adacore.com>
  6481. * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
  6482. to target_write_memory and target_read_memory.
  6483. 2013-05-06 Joel Brobecker <brobecker@adacore.com>
  6484. * darwin-nat.c (darwin_setup_fake_stop_event): New function.
  6485. (darwin_attach): Adjust using darwin_setup_fake_stop_event.
  6486. 2013-05-06 Joel Brobecker <brobecker@adacore.com>
  6487. * darwin-nat.c: Replace all "%x" instances in format strings
  6488. into "0x%x" throughout.
  6489. 2013-05-06 Joel Brobecker <brobecker@adacore.com>
  6490. * darwin-nat.c (darwin_mourn_inferior): Replace call to
  6491. gdb_assert by call to MACH_CHECK_ERROR.
  6492. (darwin_attach_pid): Raise an error rather than a failed
  6493. assertion when various system calls failed. Report a warning
  6494. instead of raising a failed assertion when PREV_NOT is not NULL
  6495. after call to mach_port_request_notification.
  6496. (darwin_ptrace_me): Raise an error rather than a failed
  6497. assertion when read returns nonzero.
  6498. 2013-05-06 Joel Brobecker <brobecker@adacore.com>
  6499. * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
  6500. 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
  6501. * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
  6502. 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
  6503. * event-top.c (display_gdb_prompt): Call missing do_cleanups.
  6504. * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
  6505. * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
  6506. a stale cleanup. Fix double free of NAME.
  6507. 2013-05-04 Eli Zaretskii <eliz@gnu.org>
  6508. * windows-nat.c (windows_delete_thread): Accept an additional
  6509. argument, the thread's exit code, and announce thread death when
  6510. print_thread_events is non-zero and we are deleting a thread that
  6511. is not the main thread.
  6512. (get_windows_debug_event): Pass thread exit code to
  6513. windows_delete_thread.
  6514. 2013-05-03 Kevin Buettner <kevinb@redhat.com>
  6515. * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
  6516. (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
  6517. (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
  6518. (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
  6519. (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
  6520. (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
  6521. (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
  6522. (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
  6523. (gdbarch_tdep): New struct.
  6524. (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
  6525. E_NUM_REGS.
  6526. (v850e3v5_register_name): New function.
  6527. (v850_register_type): v850e3v5 vector registers are 64-bits wide.
  6528. (v850_use_struct_convention): Add `gdbarch' parameter. Add new
  6529. code handling the struct return conventions for the RH850 ABI.
  6530. Update all callers.
  6531. (v850_eight_byte_align_p): New function.
  6532. (v850_push_call_dummy): Push structs by value, not by reference
  6533. for the RH850 ABI. Add support for eight byte alignment.
  6534. (v850_dbtrap_breakpoint_from_pc): New function.
  6535. (v850_gdbarch_init): Add ABI detection code. Register
  6536. v850e3v5_register_name for the v850e3v5 architecture. Set the
  6537. number of registers for v850e3v5. Register
  6538. v850_dbtrap_breakpoint_from_pc as appropriate.
  6539. (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
  6540. 2013-05-03 Doug Evans <dje@google.com>
  6541. * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
  6542. of bfd_count_sections.
  6543. * solib-target.c (solib_target_relocate_section_addresses): Ditto.
  6544. * symfile.c (default_symfile_offsets): Ditto.
  6545. (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
  6546. one entry, not bfd_count_sections entries.
  6547. 2013-05-03 Kevin Buettner <kevinb@redhat.com>
  6548. * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
  6549. `save' and `restore' register groups. Don't include SPL
  6550. or SPH in these groups.
  6551. (rl78_dwarf_reg_to_regnum): Adjust mapping for
  6552. RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
  6553. RL78_ES_REGNUM, and RL78_CS_REGNUM.
  6554. (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
  6555. dwarf2_append_unwinders().
  6556. 2013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
  6557. * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
  6558. ignore SIGINT and SIGTRAP in case these internal signals are
  6559. caught explicitely.
  6560. 2013-05-01 Joel Brobecker <brobecker@adacore.com>
  6561. * darwin-nat.c (darwin_read_write_inferior): Change types
  6562. of parameters rdaddr and wraddr to "gdb_byte *". Change type
  6563. of copy_count to "mach_msg_type_number_t".
  6564. (darwin_read_dyld_info): Change type of parameter
  6565. rdaddr to "gdb_byte *".
  6566. 2013-05-01 Joel Brobecker <brobecker@adacore.com>
  6567. * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
  6568. of &info->load_map from "char *" to "gdb_byte *".
  6569. 2013-05-01 Joel Brobecker <brobecker@adacore.com>
  6570. * ia64-tdep.c (ia64_access_fpreg): Change cast of val
  6571. from "char *" to "gdb_byte *".
  6572. (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
  6573. 2013-04-30 Doug Evans <dje@google.com>
  6574. * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
  6575. (init_cutu_and_read_dies): Flag a complaint, not error, for bad
  6576. DWO stub. If DWO isn't found, just use stub.
  6577. (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
  6578. * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
  6579. calling init_cutu_and_read_dies.
  6580. 2013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
  6581. * target-descriptions.c (maint_print_c_tdesc_cmd):
  6582. Add case to parse structures as register types and
  6583. bitfields.
  6584. 2013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
  6585. * MAINTAINERS (Write After Approval): Add myself to the list.
  6586. 2013-04-30 Joel Brobecker <brobecker@adacore.com>
  6587. * sol-thread.c (rw_common): Change type of parameter "buf"
  6588. to "gdb_byte *".
  6589. (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
  6590. rw_common to "gdb_byte *" instead of "char *".
  6591. 2013-04-30 Joel Brobecker <brobecker@adacore.com>
  6592. * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
  6593. of local variable msym to const struct bound_minimal_symbol.
  6594. Adjust use accordingly.
  6595. [ti.ti_state == TD_THR_SLEEP]: Likewise.
  6596. 2013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
  6597. * i386gnu-nat.c (CREG_OFFSET): New macro.
  6598. (creg_offset): New array.
  6599. (CREG_ADDR): Use creg_offset instead of reg_offset.
  6600. 2013-04-30 Joel Brobecker <brobecker@adacore.com>
  6601. * mep-tdep.c (mep_write_pc): Delete.
  6602. (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
  6603. Add call to set_gdbarch_pc_regnum.
  6604. 2013-04-30 Joel Brobecker <brobecker@adacore.com>
  6605. * common/filestuff.c: Replace #include <dirent.h> by
  6606. #include "gdb_dirent.h".
  6607. 2013-04-30 Joel Brobecker <brobecker@adacore.com>
  6608. * common/filestuff.c: Replace #include <sys/stat.h> by
  6609. #include "gdb_stat.h".
  6610. 2013-04-29 Pierre Muller <muller@sourceware.org>
  6611. * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
  6612. editCase function rule.
  6613. (get_DW_AT_signature_type): Likewise.
  6614. 2013-04-29 Joel Brobecker <brobecker@adacore.com>
  6615. * m32r-tdep.c (m32r_write_pc): Delete.
  6616. (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
  6617. Add call to set_gdbarch_pc_regnum.
  6618. 2013-04-29 Pierre Muller <muller@sourceware.org>
  6619. * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
  6620. 2013-04-29 Joel Brobecker <brobecker@adacore.com>
  6621. * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
  6622. 2013-04-28 Yao Qi <yao@codesourcery.com>
  6623. * solib-dsbt.c (fetch_loadmap): Re-indent.
  6624. (displacement_from_map, enable_break2): Likewise.
  6625. (dsbt_relocate_section_addresses): Likewise.
  6626. 2013-04-26 Joel Brobecker <brobecker@adacore.com>
  6627. GDB 7.6 released.
  6628. 2013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
  6629. PR corefiles/14983:
  6630. * dwarf2read.c (process_full_comp_unit): Always create a static
  6631. block.
  6632. 2013-04-25 Hui Zhu <hui@codesourcery.com>
  6633. * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
  6634. to loc->cmd_bytecode.
  6635. 2013-04-24 Doug Evans <dje@google.com>
  6636. * dwarf2read.c (setup_type_unit_groups): Fix comment.
  6637. 2013-04-22 Keith Seitz <keiths@redhat.com>
  6638. * tracepoint.c (trace_save): Call the writer's start method.
  6639. 2013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
  6640. PR gdb/10462
  6641. * cli/cli-decode.c (lookup_command): Show an error if there is no space
  6642. before argument.
  6643. 2013-04-23 Tom Tromey <tromey@redhat.com>
  6644. * common/filestuff.c: Check USE_WIN32API before including
  6645. sys/socket.h.
  6646. (HAVE_F_GETFD): New define.
  6647. (mark_cloexec): Check HAVE_F_GETFD.
  6648. (gdb_open_cloexec): Change 'mode' to unsigned long.
  6649. (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
  6650. (gdb_pipe_cloexec): Check HAVE_PIPE.
  6651. * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
  6652. long.
  6653. 2013-04-23 Hui Zhu <hui@codesourcery.com>
  6654. PR gdb/15293
  6655. * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
  6656. 2013-04-23 Hui Zhu <hui@codesourcery.com>
  6657. PR gdb/15165
  6658. * breakpoint.c (dprintf_print_recreate): New.
  6659. (save_breakpoints): Let it not save dprintf commands.
  6660. (initialize_breakpoint_ops): Set dprintf_print_recreate.
  6661. 2013-04-22 Tom Tromey <tromey@redhat.com>
  6662. PR gdb/7912:
  6663. * Makefile.in (SFILES): Add filestuff.c
  6664. (COMMON_OBS): Add filestuff.o.
  6665. (filestuff.o): New target.
  6666. * auto-load.c (auto_load_objfile_script_1): Use
  6667. gdb_fopen_cloexec.
  6668. * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
  6669. * cli/cli-cmds.c (shell_escape): Call close_most_fds.
  6670. * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
  6671. * common/agent.c (gdb_connect_sync_socket): Use
  6672. gdb_socket_cloexec.
  6673. * common/filestuff.c: New file.
  6674. * common/filestuff.h: New file.
  6675. * common/linux-osdata.c (linux_common_core_of_thread)
  6676. (command_from_pid, commandline_from_pid, print_source_lines)
  6677. (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
  6678. (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
  6679. gdb_fopen_cloexec.
  6680. * common/linux-procfs.c (linux_proc_get_int)
  6681. (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
  6682. * config.in, configure: Rebuild.
  6683. * configure.ac: Don't check for sys/socket.h. Check for
  6684. fdwalk, pipe2.
  6685. * corelow.c (core_open): Use gdb_open_cloexec.
  6686. * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
  6687. * fork-child.c (fork_inferior): Call close_most_fds.
  6688. * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
  6689. * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
  6690. * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
  6691. Use gdb_fopen_cloexec.
  6692. (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
  6693. gdb_open_cloexec.
  6694. (linux_async_pipe): Use gdb_pipe_cloexec.
  6695. * remote-fileio.c (remote_fileio_func_open): Use
  6696. gdb_open_cloexec.
  6697. * remote.c (remote_file_put, remote_file_get): Use
  6698. gdb_fopen_cloexec.
  6699. * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
  6700. close_most_fds.
  6701. * ser-tcp.c (net_open): Use gdb_socket_cloexec.
  6702. * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
  6703. * solib.c (solib_find): Use gdb_open_cloexec.
  6704. * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
  6705. * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
  6706. (tfile_open): Use gdb_open_cloexec.
  6707. * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
  6708. * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
  6709. * xml-support.c (xml_fetch_content_from_file): Use
  6710. gdb_fopen_cloexec.
  6711. * main.c (captured_main): Call notice_open_fds.
  6712. 2013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
  6713. * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
  6714. 'char *' to 'gdb_byte *'.
  6715. (gdbsim_store_register): Change the type of 'tmp' from 'char' to
  6716. 'gdb_byte'.
  6717. 2013-04-22 Yao Qi <yao@codesourcery.com>
  6718. * infrun.c: Fix typo in comment.
  6719. 2013-04-22 Andrew Haley <aph@redhat.com>
  6720. * arm-tdep.c (BranchDest): Cast result as "unsigned long",
  6721. instead of "long".
  6722. 2013-04-20 Yao Qi <yao@codesourcery.com>
  6723. * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
  6724. 'char *' to 'gdb_byte *'. Cast the return value of
  6725. 'bt_ctf_get_char_array' to 'gdb_byte *'.
  6726. 2013-04-19 Pedro Alves <palves@redhat.com>
  6727. * configure.ac (build_warnings): Replace -Wno-pointer-sign with
  6728. -Wpointer-sign.
  6729. * configure: Regenerate.
  6730. 2013-04-19 Pedro Alves <palves@redhat.com>
  6731. * ser-tcp.c (net_read_prim): Cast second argument to recv to
  6732. 'void *'.
  6733. 2013-04-19 Pedro Alves <palves@redhat.com>
  6734. * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
  6735. Change type of 'myaddr' parameter to gdb_byte pointer.
  6736. (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
  6737. to 'long long' pointer instead of to 'unsigned long long'.
  6738. (monitor_write_memory_block, monitor_read_memory_single)
  6739. (monitor_read_memory): Change type of 'myaddr' parameter to
  6740. gdb_byte pointer.
  6741. 2013-04-19 Pedro Alves <palves@redhat.com>
  6742. * record.c (validate_history_size): Make parameter 'setting'
  6743. unsigned.
  6744. 2013-04-19 Pedro Alves <palves@redhat.com>
  6745. * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
  6746. to 'gdb_byte *'.
  6747. 2013-04-19 Pedro Alves <palves@redhat.com>
  6748. * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
  6749. local to int.
  6750. 2013-04-19 Pedro Alves <palves@redhat.com>
  6751. * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
  6752. * ada-tasks.c (read_fat_string_value): Likewise.
  6753. 2013-04-19 Pedro Alves <palves@redhat.com>
  6754. * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
  6755. unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
  6756. 'offset', and adjust.
  6757. 2013-04-19 Pedro Alves <palves@redhat.com>
  6758. * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
  6759. (read_index_from_section): Add cast to 'char *'.
  6760. 2013-04-19 Pedro Alves <palves@redhat.com>
  6761. * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
  6762. 2013-04-19 Pedro Alves <palves@redhat.com>
  6763. * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
  6764. 2013-04-19 Pedro Alves <palves@redhat.com>
  6765. * record-full.c (record_full_get_bookmark): Change local 'ret'
  6766. type to char * and add cast to gdb_byte *.
  6767. (record_full_goto_bookmark): Handle 'bookmark' argument as a
  6768. string.
  6769. * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
  6770. 2013-04-19 Pedro Alves <palves@redhat.com>
  6771. * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
  6772. * python/py-prettyprint.c (print_string_repr): Change type of
  6773. 'output' local to char *. Add cast to gdb_byte * in
  6774. LA_PRINT_STRING call.
  6775. (print_children): Change type of 'output' local to char *.
  6776. * python/py-value.c (valpy_string): Add cast to const char * in
  6777. PyUnicode_Decode call.
  6778. 2013-04-19 Pedro Alves <palves@redhat.com>
  6779. * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
  6780. and change its type to 'const char *'. Adjust.
  6781. (mips_send_packet): Add cast to 'char *', and remove cast to
  6782. 'unsigned char *'.
  6783. (mips_receive_packet): Remove cast to 'unsigned char *'.
  6784. (mips_load_srec): Use bfd_byte.
  6785. (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
  6786. (pmon_checkset): Make 'value' parameter unsigned.
  6787. 2013-04-19 Pedro Alves <palves@redhat.com>
  6788. * common/agent.c (agent_run_command): Add cast to gdb_byte *.
  6789. 2013-04-19 Pedro Alves <palves@redhat.com>
  6790. * remote.c (remote_write_bytes_aux, compare_sections_command)
  6791. (remote_read_qxfer)
  6792. (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
  6793. (remote_hostio_readlink, remote_bfd_iovec_pread)
  6794. (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
  6795. binary buffer, and char when buffer is used as string.
  6796. * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
  6797. (trace_save, tfile_open, traceframe_walk_blocks)
  6798. (tfile_fetch_registers): Likewise.
  6799. 2013-04-19 Pedro Alves <palves@redhat.com>
  6800. * ser-base.c (ser_base_write): Change prototype -- take 'void *'
  6801. buffer and size_t size. Adjust.
  6802. * ser-base.h (ser_base_write): Adjust.
  6803. * ser-go32.c (cnts): Change type to size_t.
  6804. (dos_write): Change prototype -- take 'void *'
  6805. buffer and size_t size. Adjust.
  6806. (dos_info): Print elements of 'cnts' as unsigned long.
  6807. * serial.c (serial_write): Likewise.
  6808. * serial.h (serial_write): Adjust.
  6809. (struct serial_ops) <write>: Change prototype -- take 'void *'
  6810. buffer and size_t size. Adjust.
  6811. 2013-04-19 Pedro Alves <palves@redhat.com>
  6812. * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
  6813. gdb_byte *.
  6814. * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
  6815. 2013-04-19 Pedro Alves <palves@redhat.com>
  6816. * alpha-tdep.c (alpha_extract_return_value): Use
  6817. regcache_cooked_read_unsigned to read 'v0'.
  6818. 2013-04-19 Pedro Alves <palves@redhat.com>
  6819. * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
  6820. parameters 'at', 'as' and 'offset' to uint32_t.
  6821. 2013-04-19 Pedro Alves <palves@redhat.com>
  6822. * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
  6823. 'is64' to signed 'int'.
  6824. 2013-04-19 Pedro Alves <palves@redhat.com>
  6825. * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
  6826. parameter to int *.
  6827. 2013-04-19 Pedro Alves <palves@redhat.com>
  6828. * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
  6829. 'insnbuf' buffer type to unsigned int[].
  6830. 2013-04-19 Pedro Alves <palves@redhat.com>
  6831. * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
  6832. 2013-04-19 Pedro Alves <palves@redhat.com>
  6833. * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
  6834. unsigned long *.
  6835. 2013-04-19 Pedro Alves <palves@redhat.com>
  6836. * alpha-tdep.c (heuristic_fence_post): Change type to int.
  6837. (alpha_heuristic_proc_start): Adjust to check -1 instead of
  6838. UINT_MAX.
  6839. * mips-tdep.c (heuristic_fence_post): Change type to int.
  6840. (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
  6841. 2013-04-19 Pedro Alves <palves@redhat.com>
  6842. * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
  6843. (struct gdbarch_tdep) <cris_version>: Make unsigned.
  6844. (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
  6845. 2013-04-19 Pedro Alves <palves@redhat.com>
  6846. * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
  6847. it to get a string view of the byte buffer.
  6848. * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
  6849. type to gdb_byte *. Adjust.
  6850. * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
  6851. Change local to char *.
  6852. * solib-darwin.c (find_program_interpreter): Change return type to
  6853. char *. Adjust.
  6854. (darwin_solib_get_all_image_info_addr_at_init): Adjust.
  6855. * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
  6856. * solib-frv.c (enable_break2): Change local 'buf' to char *.
  6857. * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
  6858. * solib-svr4.c (find_program_interpreter): Change return type to
  6859. char *. Adjust.
  6860. (enable_break): Change local 'interp_name' to char *.
  6861. * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
  6862. * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
  6863. (spu_pseudo_register_write_spu): Use char for string buffer.
  6864. Adjust.
  6865. (info_spu_event_command, info_spu_signal_command): Add casts to
  6866. 'char *'.
  6867. 2013-04-19 Pedro Alves <palves@redhat.com>
  6868. * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
  6869. gdb_byte[].
  6870. (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
  6871. * ada-lang.c (ada_value_assign): Use gdb_byte.
  6872. * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
  6873. (alphanbsd_sigtramp_offset): Use gdb_byte.
  6874. * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
  6875. (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
  6876. (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
  6877. (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
  6878. (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
  6879. * arm-tdep.c (arm_stub_unwind_sniffer)
  6880. (arm_displaced_init_closure): Use gdb_byte.
  6881. (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
  6882. (arm_default_thumb_le_breakpoint)
  6883. (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
  6884. * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
  6885. thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
  6886. * arm-wince-tdep.c (arm_wince_le_breakpoint)
  6887. (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
  6888. * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
  6889. (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
  6890. (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
  6891. * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
  6892. (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
  6893. * cris-tdep.c (push_stack_item, cris_push_dummy_call)
  6894. (cris_store_return_value, cris_extract_return_value): Use
  6895. gdb_byte.
  6896. (constraint): Change type of parameter to char * from signed
  6897. char*. Use gdb_byte.
  6898. * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
  6899. of local buffer to gdb_byte *.
  6900. * dwarf2read.c (read_index_from_section): Use gdb_byte.
  6901. (create_dwp_hash_table): Change type of locals to gdb_byte *.
  6902. (add_address_entry): Change type of local buffer to gdb_byte[].
  6903. * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
  6904. (frv_push_dummy_call): Use gdb_byte.
  6905. * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
  6906. (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
  6907. (hppa_hpux_supply_save_state): Use gdb_byte.
  6908. * hppa-tdep.c (hppa32_push_dummy_call)
  6909. (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
  6910. * ia64-tdep.c (extract_bit_field, replace_bit_field)
  6911. (slotN_contents, replace_slotN_contents): Change type of parameter
  6912. to gdb_byte *.
  6913. (fetch_instruction, ia64_pseudo_register_write)
  6914. (ia64_register_to_value, ia64_value_to_register)
  6915. (ia64_extract_return_value, ia64_store_return_value)
  6916. (ia64_push_dummy_call): Use gdb_byte.
  6917. * m32c-tdep.c (m32c_return_value): Remove cast.
  6918. * m68hc11-tdep.c (m68hc11_pseudo_register_write)
  6919. (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
  6920. gdb_byte.
  6921. * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
  6922. * mn10300-tdep.c (mn10300_store_return_value)
  6923. (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
  6924. gdb_byte.
  6925. * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
  6926. (moxie_process_record): Remove casts.
  6927. * ppc-ravenscar-thread.c (supply_register_at_address)
  6928. (ppc_ravenscar_generic_store_registers): Use gdb_byte.
  6929. * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
  6930. * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
  6931. * remote-mips.c (mips_xfer_memory): Use gdb_byte.
  6932. * remote.c (compare_sections_command): Use gdb_byte.
  6933. * score-tdep.c (score7_free_memblock): Change type of parameter to
  6934. gdb_byte *.
  6935. * sh-tdep.c (sh_justify_value_in_reg): Change return type to
  6936. gdb_byte *. Use gdb_byte.
  6937. (sh_push_dummy_call_fpu): Use gdb_byte.
  6938. (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
  6939. (sh_store_return_value_nofpu, sh_store_return_value_fpu)
  6940. (sh_register_convert_to_virtual, sh_register_convert_to_raw):
  6941. Change parameter type to 'gdb_byte *'. Use gdb_byte.
  6942. (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
  6943. * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
  6944. (sh64_store_return_value, sh64_register_convert_to_virtual):
  6945. Change parameter type to 'gdb_byte *'. Use gdb_byte.
  6946. (sh64_pseudo_register_write): Use gdb_byte.
  6947. * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
  6948. * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
  6949. buffer.
  6950. (irix_current_sos): Use gdb_byte.
  6951. * solib-som.c (som_current_sos): Use gdb_byte.
  6952. * sparc-ravenscar-thread.c (supply_register_at_address)
  6953. (sparc_ravenscar_generic_store_registers): Use gdb_byte.
  6954. * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
  6955. * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
  6956. * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
  6957. 'gdb_byte *'.
  6958. * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
  6959. 'gdb_byte *'.
  6960. * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
  6961. * xstormy16-tdep.c (xstormy16_extract_return_value)
  6962. (xstormy16_store_return_value): Change parameter type to
  6963. 'gdb_byte *'. Adjust.
  6964. (xstormy16_push_dummy_call): Use gdb_byte.
  6965. * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
  6966. (call0_analyze_prologue, execute_code): Use gdb_byte.
  6967. 2013-04-19 Vladimir Kargov <kargov@gmail.com>
  6968. Pedro Alves <palves@redhat.com>
  6969. * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
  6970. value contents.
  6971. 2013-04-17 Doug Evans <dje@google.com>
  6972. * dwarf2read.c (struct signatured_type): New member type.
  6973. (struct attribute): Replace member signatured_type with signature.
  6974. (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
  6975. (read_call_site_scope): Call follow_die_ref instead of
  6976. follow_die_ref_or_sig.
  6977. (read_structure_type): Rewrite handling of signatured types.
  6978. (read_enumeration_type): Ditto.
  6979. (read_attribute_value): Update.
  6980. (build_error_marker_type): New function.
  6981. (lookup_die_type): Add assert. Rewrite handling of signatured types.
  6982. Don't call error for bad types, just build an error marker type.
  6983. (dump_die_shallow): Update.
  6984. (follow_die_sig_1): Renamed from follow_die_sig.
  6985. Don't call error for bad types, instead return NULL.
  6986. (follow_die_sig): New function.
  6987. (get_signatured_type, get_DW_AT_signature_type): New functions.
  6988. 2013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
  6989. * aarch64-tdep.c (aarch64_write_pc): Removed.
  6990. (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
  6991. function.
  6992. 2013-04-17 Yao Qi <yao@codesourcery.com>
  6993. * top.c (print_gdb_configuration): Print configure-time
  6994. parameter on using libbabeltrace or not.
  6995. 2013-04-16 Pedro Alves <palves@redhat.com>
  6996. * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
  6997. 2013-04-16 Pedro Alves <palves@redhat.com>
  6998. * common/glibc_thread_db.h: Update from upstream glibc
  6999. (git 568035b7874a099087b77f7bba3e36a1173787b0).
  7000. 2013-04-16 Pedro Alves <palves@redhat.com>
  7001. * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
  7002. * common/glibc_thread_db.h: ... this new file ...
  7003. * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
  7004. 2013-04-16 Will Newton <will.newton@gmail.com>
  7005. Pedro Alves <palves@redhat.com>
  7006. PR build/11881
  7007. * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
  7008. (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
  7009. HAVE_THREAD_DB_H.
  7010. 2013-04-16 Pedro Alves <palves@redhat.com>
  7011. Eli Zaretskii <eliz@gnu.org>
  7012. * NEWS: Mention "set foo unlimited".
  7013. 2013-04-15 Doug Evans <dje@google.com>
  7014. * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
  7015. (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
  7016. (create_dwo_cu_reader): Renamed from
  7017. create_dwo_debug_info_hash_table_reader.
  7018. (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
  7019. Remove support for multiple CUs in a DWO file.
  7020. (open_and_init_dwo_file, lookup_dwo_cutu): Update.
  7021. * dwarf2read.c (create_debug_types_hash_table): Use hex_string
  7022. instead of phex.
  7023. (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
  7024. (create_dwo_in_dwp): Ditto.
  7025. 2013-04-15 Tom Tromey <tromey@redhat.com>
  7026. * NEWS: Move recent entries into "since 7.6" section.
  7027. 2013-04-15 Tom Tromey <tromey@redhat.com>
  7028. PR c++/13588:
  7029. * NEWS: Update.
  7030. * break-catch-throw.c (struct exception_catchpoint)
  7031. <exception_rx, pattern>: New fields.
  7032. (fetch_probe_arguments, dtor_exception_catchpoint)
  7033. (check_status_exception_catchpoint)
  7034. (print_one_detail_exception_catchpoint): New functions.
  7035. (handle_gnu_v3_exceptions): Add "except_rx" argument.
  7036. Compile regular expression if needed.
  7037. (extract_exception_regexp): New function.
  7038. (catch_exception_command_1): Use extract_exception_regexp.
  7039. (compute_exception): Use fetch_probe_arguments.
  7040. (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
  7041. and check_status fields.
  7042. * cp-abi.c (cplus_typename_from_type_info): New function.
  7043. * cp-abi.h (cplus_typename_from_type_info): Declare.
  7044. (struct cp_abi_ops) <get_typename_from_type_info>: New field.
  7045. * gdb_regex.h (compile_rx_or_error): Declare.
  7046. * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
  7047. comment.
  7048. (init_gnuv3_ops): Set get_type_from_type_info field.
  7049. * probe.c (compile_rx_or_error): Move...
  7050. * utils.c (compile_rx_or_error): ... here.
  7051. 2013-04-15 Tom Tromey <tromey@redhat.com>
  7052. PR c++/15176:
  7053. * NEWS: Update.
  7054. * break-catch-throw.c (compute_exception): New function.
  7055. (exception_funcs): New global.
  7056. (_initialize_break_catch_throw): Create $_exception.
  7057. * cp-abi.c (cplus_type_from_type_info): New function.
  7058. * cp-abi.h (cplus_type_from_type_info): Declare.
  7059. (struct cp_abi_ops) <get_type_from_type_info>: New field.
  7060. * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
  7061. (gnuv3_get_type_from_type_info): New functions.
  7062. (init_gnuv3_ops): Set get_type_from_type_info ABI field.
  7063. 2013-04-15 Tom Tromey <tromey@redhat.com>
  7064. * break-catch-throw.c (struct exception_names): New.
  7065. (exception_functions): Change type.
  7066. (re_set_exception_catchpoint): Look for SDT probes.
  7067. 2013-04-15 Tom Tromey <tromey@redhat.com>
  7068. PR c++/10119:
  7069. * break-catch-throw.c (exception_functions): New global.
  7070. (gnu_v3_exception_catchpoint_ops): Move earlier.
  7071. (struct exception_catchpoint): New.
  7072. (classify_exception_breakpoint): Rewrite.
  7073. (re_set_exception_catchpoint): New function.
  7074. (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
  7075. Allocate a struct exception_catchpoint.
  7076. (catch_exception_command_1): Update.
  7077. (initialize_throw_catchpoint_ops): Set 're_set' method.
  7078. 2013-04-15 Tom Tromey <tromey@redhat.com>
  7079. * Makefile.in (SFILES): Add break-catch-throw.c
  7080. (COMMON_OBS): Add break-catch-throw.o.
  7081. * break-catch-throw.c: New file.
  7082. * breakpoint.c: Move exception-catching code to new file.
  7083. (ep_parse_optional_if_clause): No longer static.
  7084. * breakpoint.h (ep_parse_optional_if_clause): Declare.
  7085. 2013-04-15 Tom Tromey <tromey@redhat.com>
  7086. PR c++/9065:
  7087. * NEWS: Update.
  7088. * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
  7089. * c-exp.y (TYPEID): New token.
  7090. (exp): Add new TYPEID productions.
  7091. (ident_tokens): Add "typeid".
  7092. * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
  7093. * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
  7094. (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
  7095. * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
  7096. * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
  7097. case.
  7098. * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
  7099. (build_std_type_info_type, gnuv3_get_typeid_type)
  7100. (gnuv3_get_typeid): New functions.
  7101. (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
  7102. new fields on ABI object.
  7103. * parse.c (operator_length_standard) <OP_TYPEID>: New case.
  7104. * std-operator.def (OP_TYPEID): New.
  7105. 2013-04-15 Tom Tromey <tromey@redhat.com>
  7106. * elfread.c (elf_symtab_read): Install versioned symbol under
  7107. unversioned name as well.
  7108. 2013-04-15 Tom Tromey <tromey@redhat.com>
  7109. PR c++/11990:
  7110. * c-lang.c (cplus_language_defn): Use gdb_demangle.
  7111. * c-typeprint.c (c_type_print_base): Use gdb_demangle.
  7112. * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
  7113. (gdb_demangle): New function.
  7114. * cp-support.h (gdb_demangle): Declare.
  7115. * dwarf2read.c (dwarf2_physname, fixup_partial_die)
  7116. (dwarf2_name): Use gdb_demangle.
  7117. * gdbtypes.c (check_stub_method): Use gdb_demangle.
  7118. * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
  7119. suffixes from name.
  7120. (gnuv3_print_method_ptr): Use gdb_demangle.
  7121. * jv-lang.c (java_demangle): Use gdb_demangle.
  7122. * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
  7123. * language.c (unk_lang_demangle): Use gdb_demangle.
  7124. * symtab.c (symbol_find_demangled_name)
  7125. (demangle_for_lookup): Use gdb_demangle.
  7126. 2013-04-15 Tom Tromey <tromey@redhat.com>
  7127. PR c++/12824:
  7128. * NEWS: Update.
  7129. * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
  7130. New constant.
  7131. (classify_exception_breakpoint): New function.
  7132. (print_it_exception_catchpoint, print_one_exception_catchpoint)
  7133. (print_mention_exception_catchpoint)
  7134. (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
  7135. (catch_exception_command_1): Handle "rethrow" catchpoint.
  7136. (catch_rethrow_command): New function.
  7137. (_initialize_breakpoint): Add "catch rethrow" command.
  7138. 2013-04-15 Pierre Muller <muller@sourceware.org>
  7139. * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
  7140. set_gdbarch_write_pc as deprecated anymore.
  7141. 2013-04-15 Joel Brobecker <brobecker@adacore.com>
  7142. * spu-tdep.c (spu_write_pc): Add empty line after local variable
  7143. declarations.
  7144. 2013-04-13 Yao Qi <yao@codesourcery.com>
  7145. * ctf.c (_initialize_ctf): Include "completer.h".
  7146. Call add_target_with_completer instead of add_target.
  7147. 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
  7148. Fix GDB regression related to PR binutils/14813.
  7149. * jit.c (mem_bfd_iovec_close): Return 0 for success.
  7150. * minidebug.c (lzma_close): Add return value comment.
  7151. * remote.c (remote_bfd_iovec_close): Return 0 for success.
  7152. * solib-spu.c (spu_bfd_iovec_close): Likewise.
  7153. * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
  7154. 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
  7155. * config.in: Regenerate.
  7156. 2013-04-12 Tom Tromey <tromey@redhat.com>
  7157. * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
  7158. const.
  7159. * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
  7160. (struct die_reader_specs) <buffer>: Likewise.
  7161. (die_reader_func_ftype): Make 'info_ptr' const.
  7162. (struct line_header) <include_dirs, statement_program_start,
  7163. statement_program_end>: Now const.
  7164. (struct file_entry) <name>: Likewise.
  7165. (struct partial_die_info) <sibling>: Likewise.
  7166. (struct dwarf_block) <data>: Likewise.
  7167. (dwarf2_read_section): Remove cast.
  7168. (dwarf2_get_section_info): Make 'bufp' const.
  7169. (read_index_from_section): Constify.
  7170. (dw2_get_file_names_reader): Make 'info_ptr' const.
  7171. (dw2_get_primary_filename_reader): Likewise.
  7172. (read_comp_unit_head): Make 'info_ptr' and return type const.
  7173. (read_and_check_comp_unit_head, read_and_check_type_unit_head):
  7174. Likewise.
  7175. (read_abbrev_offset): Constify.
  7176. (dwarf2_create_include_psymtab): Make 'name' const.
  7177. (create_debug_types_hash_table): Update.
  7178. (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
  7179. (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
  7180. Constify.
  7181. (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
  7182. (load_partial_comp_unit_reader): Make 'info_ptr' const.
  7183. (read_comp_units_from_section): Constify.
  7184. (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
  7185. (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
  7186. const.
  7187. (dwarf2_compute_name, setup_type_unit_groups): Constify.
  7188. (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
  7189. (create_dwp_hash_table, dwarf2_ranges_read)
  7190. (dwarf2_record_block_ranges): Constify.
  7191. (read_die_and_children, read_die_and_siblings_1)
  7192. (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
  7193. const.
  7194. (read_full_die_1, read_full_die): Make 'info_ptr' const.
  7195. (abbrev_table_read_table): Constify.
  7196. (load_partial_dies): Make 'info_ptr' const.
  7197. (read_partial_die, read_attribute_value, read_attribute): Make
  7198. 'info_ptr' and return type const.
  7199. (read_address, read_initial_length)
  7200. (read_checked_initial_length_and_offset, read_offset)
  7201. (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
  7202. const.
  7203. (read_direct_string): Make 'buf' and return type const.
  7204. (read_indirect_string_at_offset, read_indirect_string_from_dwz)
  7205. (read_indirect_string): Make return type const.
  7206. (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
  7207. (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
  7208. 'info_ptr' const.
  7209. (read_str_index): Make return type const.
  7210. (add_include_dir): Make 'include_dir' const.
  7211. (add_file_name): Make 'name' const.
  7212. (dwarf_decode_line_header): Constify.
  7213. (psymtab_include_file_name): Make return type const.
  7214. (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
  7215. (dwarf2_start_subfile): Make 'filename' const.
  7216. (dwarf2_const_value_attr): Make 'bytes' const.
  7217. (read_signatured_type_reader): Make 'info_ptr' const.
  7218. (decode_locdesc): Constify.
  7219. (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
  7220. const.
  7221. (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
  7222. 'mac_end', and return type const.
  7223. (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
  7224. (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
  7225. type const.
  7226. (per_cu_header_read_in): Constify.
  7227. * symfile.h (dwarf2_get_section_info): Update.
  7228. 2013-04-12 Tom Tromey <tromey@redhat.com>
  7229. * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
  7230. 2013-04-12 Eli Zaretskii <eliz@gnu.org>
  7231. * NEWS: Mention "show configuration", --configuration.
  7232. * top.c (print_gdb_configuration): New function, displays the
  7233. details about GDB configure-time parameters.
  7234. (print_gdb_version): Mention "show configuration".
  7235. * cli/cli-cmds.c (show_configuration): New function.
  7236. (_initialize_cli_cmds): Add the "show configuration" command.
  7237. * main.c (captured_main) <print_configuration>: New static var.
  7238. <long_options>: Use it.
  7239. If --configuration was given, call print_gdb_configuration.
  7240. 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
  7241. Pedro Alves <palves@redhat.com>
  7242. * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
  7243. (generated_files): Add gcore.
  7244. (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
  7245. HAVE_NATIVE_GCORE_HOST.
  7246. (gcore): New.
  7247. * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
  7248. * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
  7249. config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
  7250. config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
  7251. config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
  7252. Add HAVE_NATIVE_GCORE_HOST.
  7253. * configure: Regenerate.
  7254. * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
  7255. New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
  7256. AC_CONFIG_FILES for gcore.
  7257. * configure.tgt: Add gdb_have_gcore to the initial comment. Set
  7258. gdb_have_gcore.
  7259. * gdb_gcore.sh: Rename to ...
  7260. * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
  7261. and GCORE_TRANSFORM_NAME substitutions.
  7262. Fix parsing tabs in ${gdb_target_obs}.
  7263. * configure.tgt (gdb_have_gcore): Replace case with for and if.
  7264. 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
  7265. * remote.c (unpush_and_perror): Add output message final dot.
  7266. 2013-04-11 Yao Qi <yao@codesourcery.com>
  7267. * tracepoint.c (tfile_interp_line): Fit parameters line and
  7268. utpp in one line.
  7269. 2013-04-10 Joel Brobecker <brobecker@adacore.com>
  7270. * solib.c (solib_map_sections): Remove code overwriting
  7271. SO->SO_NAME with the bfd's filename.
  7272. 2013-04-10 Pedro Alves <palves@redhat.com>
  7273. * cli/cli-decode.c (integer_unlimited_completer): New function.
  7274. (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
  7275. (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
  7276. completer.
  7277. * cli/cli-setshow.c: Include "cli/cli-utils.h".
  7278. (is_unlimited_literal): New function.
  7279. (do_set_command): Handle literal "unlimited" arguments.
  7280. * frame.c (_initialize_frame) <set backtrace limit>: Document
  7281. "unlimited".
  7282. * printcmd.c (_initialize_printcmd) <set print
  7283. max-symbolic-offset>: Add help text.
  7284. * record-full.c (_initialize_record_full) <set record full
  7285. insn-number-max>: Likewise.
  7286. * record.c (_initialize_record) <set record
  7287. instruction-history-size, set record function-call-history-size>:
  7288. Add help text.
  7289. * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
  7290. help text.
  7291. * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
  7292. Likewise.
  7293. * source.c (_initialize_source) <set listsize>: Add help text.
  7294. * utils.c (initialize_utils) <set height, set width>: Likewise.
  7295. <set pagination>: Mention "set height unlimited".
  7296. * valprint.c (_initialize_valprint) <set print elements, set print
  7297. repeats>: Document "unlimited".
  7298. 2013-04-10 Pedro Alves <palves@redhat.com>
  7299. * cli/cli-cmds.c (quit_command): Call query_if_trace_running
  7300. instead of disconnect_tracing.
  7301. * infcmd.c (detach_command, disconnect_command): Call
  7302. query_if_trace_running. Adjust.
  7303. * top.c: Include "tracepoint.h".
  7304. (quit_target): Delete. Contents moved ...
  7305. (quit_force): ... here. Wrap each stage of teardown in
  7306. TRY_CATCH. Call disconnect_tracing before detaching.
  7307. 2013-04-10 Hui Zhu <hui@codesourcery.com>
  7308. Yao Qi <yao@codesourcery.com>
  7309. * configure.ac: Check libbabeltrace is installed.
  7310. * config.in: Regenerate.
  7311. * configure: Regenerate.
  7312. * Makefile.in (LIBBABELTRACE): New.
  7313. (CLIBS): Add LIBBABELTRACE.
  7314. * ctf.c: Include "exec.h".
  7315. (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
  7316. (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
  7317. (ctf_save_metadata_header): Define new type aliases in
  7318. metadata.
  7319. (ctf_write_header): Define event type "tsv_def" and "tp_def"
  7320. in metadata. Start a new faked packet for trace status.
  7321. (ctf_write_status): Write trace status to CTF.
  7322. (ctf_write_uploaded_tsv): Write TSV to CTF.
  7323. (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
  7324. (ctf_write_definition_end): End the faked packet.
  7325. (ctx, ctf_iter, trace_dirname): New.
  7326. (start_pos): New variable.
  7327. (ctf_destroy, ctf_open_dir, ctf_open): New.
  7328. (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
  7329. macros.
  7330. (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
  7331. (ctf_fetch_registers, ctf_xfer_partial): New.
  7332. (ctf_get_trace_state_variable_value): New.
  7333. (ctf_get_tpnum_from_frame_event): New.
  7334. (ctf_get_traceframe_address): New.
  7335. (ctf_trace_find, ctf_has_stack): New.
  7336. (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
  7337. (ctf_get_trace_status, ctf_read_status): New.
  7338. (_initialize_ctf): New.
  7339. * tracepoint.c (get_tracepoint_number): New
  7340. (get_uploaded_tsv): Remove 'static'.
  7341. (struct traceframe_info, trace_regblock_size): Move it to ...
  7342. * tracepoint.h: ... here.
  7343. (get_tracepoint_number): Declare it.
  7344. (get_uploaded_tsv): Declare it.
  7345. * NEWS: Mention new configure option.
  7346. 2013-04-10 Pedro Alves <palves@redhat.com>
  7347. Hui Zhu <hui@codesourcery.com>
  7348. * breakpoint.c (dprintf_re_set): New.
  7349. (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
  7350. to dprintf_re_set.
  7351. 2013-04-09 Joel Brobecker <brobecker@adacore.com>
  7352. * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
  7353. Remove solib-svr4.o from the list.
  7354. 2013-04-09 Joel Brobecker <brobecker@adacore.com>
  7355. * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
  7356. Use gdb_assert_not_reached instead of invalid boolean expression.
  7357. 2013-04-09 Pedro Alves <palves@redhat.com>
  7358. * remote.c (unpush_and_perror): New function.
  7359. (readchar, remote_serial_write): Use it.
  7360. 2013-04-09 Markus Metzger <markus.t.metzger@intel.com>
  7361. * NEWS: Mention new btrace RSP packets.
  7362. 2013-04-08 Tom Tromey <tromey@redhat.com>
  7363. * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
  7364. long.
  7365. 2013-04-08 Tom Tromey <tromey@redhat.com>
  7366. * maint.c (print_bfd_section_info): Print the section index.
  7367. * symmisc.c (dump_msymbols): Print the section index.
  7368. 2013-04-08 Tom Tromey <tromey@redhat.com>
  7369. PR symtab/8424:
  7370. * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
  7371. SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
  7372. * breakpoint.c (resolve_sal_pc): Update.
  7373. * elfread.c (elf_gnu_ifunc_record_cache): Update.
  7374. * findvar.c (struct minsym_lookup_data) <objfile>: New field.
  7375. (minsym_lookup_iterator_cb): Use it.
  7376. (default_read_var_value): Update.
  7377. * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
  7378. Update.
  7379. * infcmd.c (jump_command): Update.
  7380. * linespec.c (minsym_found): Update.
  7381. * maint.c (maintenance_translate_address): Update.
  7382. * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
  7383. (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
  7384. * parse.c (write_exp_msymbol): Update.
  7385. * printcmd.c (address_info): Update.
  7386. * psymtab.c (find_pc_sect_psymbol): Update.
  7387. (fixup_psymbol_section): Check SYMBOL_SECTION, not
  7388. SYMBOL_OBJ_SECTION.
  7389. (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
  7390. Don't initialize SYMBOL_OBJ_SECTION.
  7391. * spu-tdep.c (spu_catch_start): Update.
  7392. * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
  7393. * symmisc.c (dump_msymbols, print_symbol): Update.
  7394. * symtab.c (fixup_section): Don't set 'obj_section'. Change
  7395. how fallback section is computed.
  7396. (fixup_symbol_section): Update.
  7397. (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
  7398. Update.
  7399. (allocate_symbol, initialize_symbol, allocate_template_symbol):
  7400. Initialize SYMBOL_SECTION.
  7401. * symtab.h (struct general_symbol_info) <section>: Update comment.
  7402. <obj_section>: Remove.
  7403. (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
  7404. (SYMBOL_OBJFILE): New macro.
  7405. 2013-04-08 Tom Tromey <tromey@redhat.com>
  7406. * coffread.c (record_minimal_symbol): Update.
  7407. * dbxread.c (record_minimal_symbol): Update.
  7408. * elfread.c (record_minimal_symbol): Update.
  7409. * machoread.c (macho_symtab_add_minsym): Update.
  7410. * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
  7411. Update.
  7412. * minsyms.c (prim_record_minimal_symbol): Update.
  7413. (prim_record_minimal_symbol_full): Remove 'bfd_section'
  7414. argument.
  7415. (prim_record_minimal_symbol_and_info): Likewise.
  7416. * minsyms.h (prim_record_minimal_symbol_full)
  7417. (prim_record_minimal_symbol_and_info): Update.
  7418. * symtab.c (allocate_symbol, initialize_symbol)
  7419. (allocate_template_symbol): Initialize SYMBOL_SECTION.
  7420. * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
  7421. Update.
  7422. 2013-04-08 Tom Tromey <tromey@redhat.com>
  7423. PR symtab/8423:
  7424. * solib-som.c (som_solib_section_offsets): Use BFD section
  7425. indices. Set offsets for all sections.
  7426. * somread.c (som_symtab_read): Compute BFD section for
  7427. symbol. Use prim_record_minimal_symbol_and_info.
  7428. (som_symfile_read): Fix comment.
  7429. (struct find_section_offset_arg): New.
  7430. (find_section_offset, set_section_index): New functions.
  7431. (som_symfile_offsets): Use set_section_index to compute
  7432. section indices.
  7433. 2013-04-08 Tom Tromey <tromey@redhat.com>
  7434. * coffread.c (cs_to_section): Use gdb_bfd_section_index.
  7435. * elfread.c (record_minimal_symbol, elf_symtab_read): Use
  7436. gdb_bfd_section_index.
  7437. * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
  7438. New functions.
  7439. * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
  7440. Declare.
  7441. * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
  7442. Update.
  7443. * objfiles.c (add_to_objfile_sections_full): New function.
  7444. (add_to_objfile_sections): Use it.
  7445. (build_section_table): Rewrite.
  7446. (objfile_relocate1): Use gdb_bfd_section_index. Update.
  7447. * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
  7448. (struct objfile) <sections>: Update comment.
  7449. (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
  7450. is NULL.
  7451. (ALL_OBJSECTIONS): Use it.
  7452. * solib-dsbt.c (dsbt_relocate_main_executable): Update.
  7453. * solib-frv.c (frv_relocate_main_executable): Update.
  7454. * solib-target.c (solib_target_relocate_section_addresses):
  7455. Use gdb_bfd_section_index.
  7456. * symfile.c (build_section_addr_info_from_section_table):
  7457. Use gdb_bfd_section_index.
  7458. (build_section_addr_info_from_bfd, place_section): Likewise.
  7459. * symtab.c (fixup_section): Update.
  7460. * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
  7461. 2013-04-08 Tom Tromey <tromey@redhat.com>
  7462. * minsyms.h (struct bound_minimal_symbol): New.
  7463. (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
  7464. Remove objfile argument.
  7465. (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
  7466. Return bound_minimal_symbol.
  7467. * minsyms.c (lookup_minimal_symbol_by_pc_1)
  7468. (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
  7469. Return bound_minimal_symbol.
  7470. (in_gnu_ifunc_stub): Update.
  7471. (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
  7472. Remove 'objfile_p' argument.
  7473. (lookup_solib_trampoline_symbol_by_pc): Update.
  7474. * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
  7475. arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
  7476. c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
  7477. glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
  7478. i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
  7479. linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
  7480. mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
  7481. ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
  7482. stack.c, symtab.c, tui/tui-disasm.c: Update.
  7483. 2013-04-08 Tom Tromey <tromey@redhat.com>
  7484. * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
  7485. Use symbol's obstack, not an objfile.
  7486. * coffread.c (process_coff_symbol): Update.
  7487. * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
  7488. * jv-lang.c (add_class_symbol): Update.
  7489. * mdebugread.c (new_symbol): Update.
  7490. * minsyms.c (prim_record_minimal_symbol_full)
  7491. (terminate_minimal_symbol_table): Update.
  7492. * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
  7493. * stabsread.c (define_symbol, read_enum_type): Update.
  7494. * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
  7495. Handle Ada specially.
  7496. (symbol_set_language): Add 'obstack' argument.
  7497. (symbol_set_names): Update.
  7498. (symbol_natural_name, symbol_demangled_name): Always use
  7499. ada_decode_symbol.
  7500. * symtab.h (struct general_symbol_info)
  7501. <language_specific::obstack>: New field.
  7502. <ada_mangled>: New field.
  7503. (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
  7504. (symbol_set_language): Update.
  7505. 2013-04-08 Tom Tromey <tromey@redhat.com>
  7506. * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
  7507. Take an obstack, not an objfile.
  7508. (symbol_set_names): Update.
  7509. * symtab.h (symbol_set_demangled_name): Update.
  7510. 2013-04-08 Tom Tromey <tromey@redhat.com>
  7511. * coffread.c (process_coff_symbol, coff_read_enum_type): Call
  7512. allocate_symbol.
  7513. * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
  7514. (read_func_scope): Call allocate_template_symbol.
  7515. (new_symbol_full): Call allocate_symbol.
  7516. * jit.c (finalize_symtab): Call allocate_symbol.
  7517. * jv-lang.c (add_class_symbol): Call allocate_symbol.
  7518. * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
  7519. * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
  7520. (common_block_end): Call allocate_symbol.
  7521. * symtab.c (allocate_symbol, initialize_symbol)
  7522. (allocate_template_symbol): New functions.
  7523. * symtab.c (allocate_symbol, initialize_symbol)
  7524. (allocate_template_symbol): Declare.
  7525. * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
  7526. 2013-04-08 Pedro Alves <palves@redhat.com>
  7527. Keith Seitz <keiths@redhat.com>
  7528. * breakpoint.c (create_breakpoint): Rename
  7529. "parse_condition_and_thread" parameter to "parse_arg". Update
  7530. describing comment. If !PARSE_ARG, then error out if ARG is not
  7531. the empty string after extracting the location.
  7532. * breakpoint.h (create_breakpoint): Rename
  7533. "parse_condition_and_thread" parameter to "parse_arg".
  7534. 2013-04-08 Aleksandar Ristovski <aristovski@qnx.com
  7535. * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
  7536. 2013-04-07 Yao Qi <yao@codesourcery.com>
  7537. * remote.c (remote_trace_find): Change type of parameters 'addr1'
  7538. and 'addr2' to CORE_ADDR.
  7539. * target.c (update_current_target): Update.
  7540. * target.h (struct target_ops) <to_trace_find>: Change parameter
  7541. type to CORE_ADDR.
  7542. * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
  7543. 'addr2' to CORE_ADDR.
  7544. (tfile_trace_find): Likewise.
  7545. (tfile_get_traceframe_address): Change return type to CORE_ADDR.
  7546. Change local variable 'addr' to type CORE_ADDR.
  7547. * tracepoint.h (tfind_1): Update declaration.
  7548. 2013-04-06 Eli Zaretskii <eliz@gnu.org>
  7549. * windows-nat.c (windows_get_absolute_argv0): Move from here...
  7550. * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
  7551. Include main.h.
  7552. * windows-nat.h (windows_get_absolute_argv0): Move prototype from
  7553. here...
  7554. * main.h (windows_get_absolute_argv0): ...to here.
  7555. 2013-04-05 Doug Evans <dje@google.com>
  7556. * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
  7557. (read_cutu_die_from_dwo): Add comments.
  7558. (read_structure_type): Update comment.
  7559. (read_enumeration_type, read_namespace_type): Update comment.
  7560. (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
  7561. 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
  7562. Convert man pages to texinfo, new gdbinit.5 texinfo page.
  7563. * Makefile.in (gdb.z): Remove.
  7564. (install-only): Remove $(man1dir) and gdb.1 installation.
  7565. * gdb.1: Remove.
  7566. 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
  7567. Fix compatibility with Linux kernel 3.8.3.
  7568. * linux-tdep.c (linux_find_memory_regions_full): Move variable number
  7569. to more inner block. Remove parsing of NUMBER from outer block.
  7570. Parse NUMBER only if KEYWORD has been identified.
  7571. 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
  7572. Fix variable name shadowing.
  7573. * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
  7574. filename to mapsfilename and update its uses.
  7575. 2013-04-05 Eli Zaretskii <eliz@gnu.org>
  7576. * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
  7577. empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
  7578. and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
  7579. details of the problem.
  7580. 2013-04-04 Pedro Alves <palves@redhat.com>
  7581. Hui Zhu <hui@codesourcery.com>
  7582. * breakpoint.c (validate_commands_for_breakpoint): If validating a
  7583. tracepoint, reset its STEP_COUNT and call validate_actionline.
  7584. 2013-04-03 Doug Evans <dje@google.com>
  7585. * dwarf2read.c (read_die_and_siblings_1): Renamed from
  7586. read_die_and_siblings.
  7587. (read_die_and_siblings): New function.
  7588. (read_cutu_die_from_dwo): Dump die if requested.
  7589. (read_die_and_children): Call read_full_die_1 and
  7590. read_die_and_siblings_1.
  7591. (read_full_die): Dump die if requested.
  7592. * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
  7593. * dwarf2read.c (struct dwo_file): New member comp_dir.
  7594. Rename member name to dwo_name. All uses updated.
  7595. (hash_dwo_file): Include comp_dir in computation.
  7596. (eq_dwo_file): Ditto.
  7597. (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
  7598. (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
  7599. * psymtab.c (read_psymtabs_with_fullname): Don't call
  7600. psymtab_to_fullname if the basenames are different.
  7601. 2013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
  7602. * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
  7603. New entry about "fullname" presence.
  7604. 2013-04-03 Pedro Alves <palves@redhat.com>
  7605. * NEWS: Mention x86_64/Cygwin as new native configuration.
  7606. 2013-04-02 Doug Evans <dje@google.com>
  7607. * dwarf2read.c (read_structure_type): Fix typo in comment.
  7608. 2013-04-02 Pedro Alves <palves@redhat.com>
  7609. * NEWS: Mention "set/show debug aarch64", "set/show debug
  7610. coff-pe-read" and "set/show debug mach-o".
  7611. 2013-04-02 Pedro Alves <palves@redhat.com>
  7612. * NEWS: Mention "set/show remote trace-buffer-size-packet".
  7613. 2013-04-02 Eli Zaretskii <eliz@gnu.org>
  7614. * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
  7615. gdb_string.h is now in common/.
  7616. 2013-04-02 Pedro Alves <palves@redhat.com>
  7617. * NEWS: Move "set debug notification" and "set trace-buffer-size"
  7618. under "New options".
  7619. 2013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
  7620. Revert this patch:
  7621. PR gdb/15275
  7622. * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
  7623. 2013-04-02 Pedro Alves <palves@redhat.com>
  7624. PR gdb/15275
  7625. * remote.c (send_interrupt_sequence): Use remote_serial_write.
  7626. (remote_serial_write): New function.
  7627. (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
  7628. 2013-04-01 Jiong Wang <jiwang@tilera.com>
  7629. * NEWS: Mention TILE-Gx in "New native configurations" and
  7630. "New targets" sections.
  7631. 2013-04-01 Doug Evans <dje@google.com>
  7632. * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
  7633. (process_enumeration_scope): Simplify.
  7634. * dwarf2read.c (struct dwarf2_per_cu_data): Move member
  7635. type_unit_group ...
  7636. (struct signatured_type): ... to here.
  7637. (sig_type_ptr): New typedef.
  7638. (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
  7639. out of union 't'. All uses updated.
  7640. (dw2_get_file_names_reader): Assert not called for a type unit.
  7641. (dw2_get_file_names): Assert not called for a type unit or type
  7642. unit group.
  7643. (build_type_psymtabs_reader): Assert called for a type unit.
  7644. (build_type_psymtab_dependencies): Assert called for a type unit group.
  7645. * dwarf2read.c (free_dwo_file): Add comment.
  7646. (dwarf2_per_objfile_free): Unref dwp bfd.
  7647. 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
  7648. * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
  7649. (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
  7650. (read_pe_exported_syms): Remove unused 'exportix'.
  7651. (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
  7652. 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
  7653. 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
  7654. 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
  7655. * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
  7656. (print_it_watchpoint): Remove unused 'bl'.
  7657. (say_where): Remove unused 'uiout'.
  7658. (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
  7659. (bkpt_breakpoint_hit): Remove unused 'b'.
  7660. (internal_bkpt_print_it): Remove unused 'uiout'.
  7661. * buildsym.c (augment_type_symtab): Remove unused 'i'.
  7662. 2013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
  7663. * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
  7664. (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
  7665. 2013-03-29 Doug Evans <dje@google.com>
  7666. * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
  7667. Delete arg is_dwp. All callers updated.
  7668. (open_dwp_file): New function.
  7669. (open_and_init_dwp_file): Call it.
  7670. (get_dwp_file): New function.
  7671. (lookup_dwo_cutu): Call it.
  7672. * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
  7673. unnecessary, cleanup.
  7674. * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
  7675. * dwarf2read.c (read_cutu_die_from_dwo): New function.
  7676. (lookup_dwo_unit): New function.
  7677. (init_cutu_and_read_dies): Move DWO handling to new functions.
  7678. * dwarf2read.c (struct signatured_type): Tweak comment.
  7679. (struct dwo_unit): Tweak comment.
  7680. (create_debug_types_hash_table): Tweak comment. Reformat long line.
  7681. (create_dwo_debug_info_hash_table): Tweak comment.
  7682. (dwarf2_per_cu_offset_and_type): Tweak comment.
  7683. * dwarf2read.c (lookup_signatured_type): Remove complaint about
  7684. missing .debug_types section.
  7685. 2013-03-29 Yao Qi <yao@codesourcery.com>
  7686. * corelow.c: Include "completer.h".
  7687. (_initialize_corelow): Call add_target_with_completer with
  7688. argument 'filename_completer'.
  7689. * tracepoint.c: Likewise.
  7690. * exec.c (_initialize_exec): Likewise.
  7691. * target.c (add_target): Rename to ...
  7692. (add_target_with_completer): ... this. Call set_cmd_completer
  7693. if parameter completer is not NULL.
  7694. (add_target): New.
  7695. * target.h: Include "command.h".
  7696. (add_target_with_completer): Declare it.
  7697. 2013-03-28 Joel Brobecker <brobecker@adacore.com>
  7698. * coffread.c (is_import_fixup_symbol): New function.
  7699. (record_minimal_symbol): Use is_import_fixup_symbol to
  7700. detect import fixup symbols, and discard them.
  7701. 2013-03-28 Doug Evans <dje@google.com>
  7702. * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
  7703. types hash table until we know we need it.
  7704. * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
  7705. index numbers.
  7706. * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
  7707. All callers updated.
  7708. (dw2_print_stats): Print #read CUs too.
  7709. (dump_die_shallow): Print signatured types better.
  7710. * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
  7711. info_or_types_section to section. All uses updated.
  7712. (struct dwo_unit): Ditto.
  7713. 2013-03-28 Pedro Alves <palves@redhat.com>
  7714. * NEWS (New options): New section.
  7715. (New options): Mention set/show remote trace-status-packet.
  7716. * remote.c (PACKET_qTStatus): New enumeration value.
  7717. (remote_get_trace_status): Skip sending qTStatus if the packet is
  7718. disabled. Use packet_ok.
  7719. (_initialize_remote): Register a configuration command for
  7720. qTStatus packet.
  7721. 2013-03-28 Doug Evans <dje@google.com>
  7722. * symfile.c (find_separate_debug_file): Add comment.
  7723. (terminate_after_last_dir_separator): Tweak comment.
  7724. * dwarf2read.c (create_partial_symtab): Add forward decl.
  7725. (create_partial_symtab): Move to be closer to other psymtab functions.
  7726. (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
  7727. * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
  7728. (compute_symtab_includes): Remove unnecessary forward declaration.
  7729. (die_needs_namespace): Add comment marking group of functions for
  7730. dwarf2 name computation.
  7731. * typeprint.c (_initialize_typeprint): Improve type help text.
  7732. * python/python.c (finish_python_initialization): Provide suggestion
  7733. for how to tell gdb to find its python files.
  7734. 2013-03-28 Pedro Alves <palves@redhat.com>
  7735. PR gdb/15294
  7736. * source.c (_initialize_source): Change back "set listsize" to an
  7737. integer command.
  7738. 2013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
  7739. PR gdb/15275
  7740. * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
  7741. 2013-03-27 Pedro Alves <palves@redhat.com>
  7742. * top.c (history_size): Rename to ...
  7743. (history_size_setshow_var): ... this. Add comment.
  7744. (show_commands): Use readline's 'history_length' instead of
  7745. computing the history length by calling history_get in a loop.
  7746. (set_history_size_command): Error out for sizes over INT_MAX.
  7747. Restore previous history size on invalid size.
  7748. (init_history): If HISTSIZE is negative, leave the history size as
  7749. zero. Add comments.
  7750. (init_main): Adjust.
  7751. 2013-03-27 Pedro Alves <palves@redhat.com>
  7752. * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
  7753. coff_pe_read" command to "set debug coff-pe-read".
  7754. 2013-03-27 Markus Metzger <markus.t.metzger@intel.com>
  7755. * record.c (command_size_to_target_size): Fix size comparison.
  7756. Change parameter type from pointer to integer to integer.
  7757. Update all users.
  7758. 2013-03-27 Pierre Muller <muller@sourceware.org>
  7759. * windows-nat.c (handle_output_debug_string): Avoid typecast
  7760. from integer of different size warning.
  7761. 2013-03-26 Joel Brobecker <brobecker@adacore.com>
  7762. * windows-nat.c (handle_output_debug_string): Add empty line
  7763. after local block variable definition.
  7764. 2013-03-26 Pedro Alves <palves@redhat.com>
  7765. * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
  7766. (net_open): Make 'polls' local unsigned.
  7767. 2013-03-26 Pedro Alves <palves@redhat.com>
  7768. * remote.c (_initialize_remote): Make "set remoteaddresssize"
  7769. a zuinteger command instead of uinteger.
  7770. 2013-03-26 Pedro Alves <palves@redhat.com>
  7771. * record-full.c (record_full_insn_num): Make it unsigned.
  7772. (record_full_check_insn_num, record_full_message)
  7773. (record_full_registers_change, record_full_xfer_partial): Remove
  7774. record_full_insn_max_num check (it's always != 0).
  7775. (record_full_info, record_full_restore): Use %u as format string.
  7776. (): Use %u as format string.
  7777. (set_record_full_insn_max_num): Remove record_full_insn_max_num
  7778. check (it's always != 0).
  7779. 2013-03-26 Pedro Alves <palves@redhat.com>
  7780. * dcache.c (_initialize_dcache): Make the "set dcache line-size"
  7781. and "set dcache size" commands zuinteger instead of uinteger.
  7782. 2013-03-26 Pedro Alves <palves@redhat.com>
  7783. * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
  7784. command zuinteger instead of uinteger.
  7785. 2013-03-26 Pedro Alves <palves@redhat.com>
  7786. * coff-pe-read.c (_initialize_coff_pe_read): Make the command
  7787. zuinteger instead of uinteger.
  7788. 2013-03-26 Pedro Alves <palves@redhat.com>
  7789. * record.c (record_insn_history_size_setshow_var)
  7790. (record_call_history_size_setshow_var): New globals.
  7791. (command_size_to_target_size): New function.
  7792. (cmd_record_insn_history, cmd_record_call_history): Use
  7793. command_size_to_target_size instead of cast.
  7794. (validate_history_size, set_record_insn_history_size)
  7795. (set_record_call_history_size): New functions.
  7796. (_initialize_record): Install set_record_insn_history_size and
  7797. set_record_call_history_size as "set" hooks of "set record
  7798. instruction-history-size" and "set record
  7799. function-call-history-size".
  7800. 2013-03-26 Pedro Alves <palves@redhat.com>
  7801. * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
  7802. use with history_max_entries use. Remove FIXME note.
  7803. 2013-03-26 Markus Metzger <markus.t.metzger@intel.com>
  7804. * record-btrace.c (record_btrace_close): Call
  7805. record_btrace_auto_disable.
  7806. 2013-03-25 Joel Brobecker <brobecker@adacore.com>
  7807. * rs6000-nat.c (fixup_breakpoints): Delete declaration.
  7808. 2013-03-25 Doug Evans <dje@google.com>
  7809. * contrib/cc-with-tweaks.sh: Check exit code of dwp.
  7810. 2013-03-25 Tom Tromey <tromey@redhat.com>
  7811. PR symtab/11462:
  7812. * c-exp.y (exp): Add new productions for destructors after '.' and
  7813. '->'.
  7814. (write_destructor_name): New function.
  7815. 2013-03-25 Tom Tromey <tromey@redhat.com>
  7816. PR c++/9197:
  7817. * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
  7818. value_struct_elt, not lookup_struct_elt_type.
  7819. * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
  7820. STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
  7821. * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
  7822. 2013-03-25 Yao Qi <yao@codesourcery.com>
  7823. * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
  7824. instead of '_mkdir'.
  7825. 2013-03-23 Eli Zaretskii <eliz@gnu.org>
  7826. * windows-nat.c (windows_get_absolute_argv0): New function.
  7827. * windows-nat.h: Add its prototype.
  7828. * main.c (get_init_files): Use filename_ncmp instead of strncmp.
  7829. Use IS_DIR_SEPARATOR instead of looking for a character inside
  7830. SLASH_STRING. Include filenames.h.
  7831. (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
  7832. relocate_gdb_directory works when passed gdb_program_name.
  7833. Include windows-nat.h.
  7834. 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
  7835. * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
  7836. * remote.c (trace_error): Remove the special handling of '2'.
  7837. (readchar) <SERIAL_EOF>
  7838. (readchar) <SERIAL_ERROR>
  7839. (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
  7840. (remote_get_trace_status): Call throw_exception if EX is
  7841. TARGET_CLOSE_ERROR.
  7842. * utils.c (perror_with_name): Rename to ...
  7843. (throw_perror_with_name): ... here. New parameter errcode, describe it
  7844. in the function comment.
  7845. (perror_with_name): New function wrapper.
  7846. * utils.h (enum errors): New stub declaration.
  7847. (throw_perror_with_name): New declaration.
  7848. 2013-03-22 Pedro Alves <palves@redhat.com>
  7849. Yao Qi <yao@codesourcery.com>
  7850. Mark Kettenis <kettenis@gnu.org>
  7851. * cli/cli-setshow.c (do_set_command) <var_uinteger>:
  7852. Don't let the user set the value to UINT_MAX directly.
  7853. <var_integer>: Don't let the user set the value to INT_MAX
  7854. directly.
  7855. 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
  7856. * remote.c (remote_unpush_target): New function.
  7857. (remote_open_1): Remove two pop_target calls, update one comment, add
  7858. comment to target_preopen call. Replace pop_target call by
  7859. remote_unpush_target call.
  7860. (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
  7861. pop_target calls by remote_unpush_target calls.
  7862. 2013-03-22 Pedro Alves <palves@redhat.com>
  7863. * linux-nat.c (linux_child_follow_fork): Don't call
  7864. linux_enable_event_reporting.
  7865. (linux_handle_extended_wait): Don't call
  7866. linux_enable_event_reporting.
  7867. 2013-03-22 Pedro Alves <palves@redhat.com>
  7868. * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
  7869. use it to rewrite the trampoline buffers with type gdb_byte[], and
  7870. undefine the macro. Remove char* cast.
  7871. 2013-03-21 Doug Evans <dje@google.com>
  7872. New commands "mt set per-command {space,time,symtab} {on,off}".
  7873. * NEWS: Add entry.
  7874. * event-top.c: #include "maint.h".
  7875. * main.c: #include "maint.h".
  7876. * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
  7877. timeval-utils.h, maint.h, cli/cli-setshow.h.
  7878. (per_command_time, per_command_space): New static globals.
  7879. (per_command_symtab): New static global.
  7880. (per_command_setlist, per_command_showlist): New static globals.
  7881. (struct cmd_stats): Move here from utils.c.
  7882. (set_per_command_time): Renamed from set_display_time in utils.c
  7883. and moved here. All callers updated.
  7884. (set_per_command_space): Renamed from set_display_space in utils.c
  7885. and moved here. All callers updated.
  7886. (count_symtabs_and_blocks): New function.
  7887. (report_command_stats): Moved here from utils.c. Add support for
  7888. printing symtab stats. Only print data if enabled before command
  7889. executed.
  7890. (make_command_stats_cleanup): Ditto.
  7891. (sert_per_command_cmd, show_per_command_cmd): New functions.
  7892. (_initialize_maint_cmds): Add new commands
  7893. mt set per-command {space,time,symtab} {on,off}.
  7894. * maint.h: New file.
  7895. * top.c: #include "maint.h".
  7896. * utils.c (reset_prompt_for_continue_wait_time): New function.
  7897. (get_prompt_for_continue_wait_time): New function.
  7898. * utils.h (reset_prompt_for_continue_wait_time): Declare
  7899. (get_prompt_for_continue_wait_time): Declare.
  7900. (make_command_stats_cleanup): Moved to maint.h.
  7901. (set_display_time, set_display_space): Moved to maint.h and renamed
  7902. to set_per_command_time, set_per_command_space.
  7903. * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
  7904. parse_binary_operation and made non-static. Don't call error,
  7905. just return an error marker. All callers updated.
  7906. * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
  7907. 2013-03-21 Tom Tromey <tromey@redhat.com>
  7908. * symfile.c (alloc_section_addr_info): Update header. Don't set
  7909. 'num_sections' field.
  7910. (build_section_addr_info_from_section_table): Set 'num_sections'.
  7911. (build_section_addr_info_from_bfd): Likewise.
  7912. (build_section_addr_info_from_objfile): Remove dead loop
  7913. condition.
  7914. (free_section_addr_info): Unconditionally call xfree.
  7915. (relative_addr_info_to_section_offsets, addrs_section_sort)
  7916. (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
  7917. condition.
  7918. (syms_from_objfile_1): Remove dead 'if' condition. Check
  7919. 'num_sections'.
  7920. (add_symbol_file_command): Set 'num_sections'.
  7921. * symfile-mem.c (symbol_file_add_from_memory): Set
  7922. 'num_sections'.
  7923. * somread.c (som_symfile_offsets): Remove dead loop condition.
  7924. * machoread.c (macho_symfile_offsets): Remove dead 'if'.
  7925. * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
  7926. 2013-03-21 Tom Tromey <tromey@redhat.com>
  7927. * tracepoint.h (decode_agent_options): Add 'trace_string'
  7928. argument.
  7929. * tracepoint.c (decode_agent_options): Add 'trace_string'
  7930. argument.
  7931. (validate_actionline): Update.
  7932. (collect_symbol): Add 'trace_string' argument.
  7933. (struct add_local_symbols_data) <trace_string>: New field.
  7934. (do_collect_symbol): Update.
  7935. (add_local_symbols): Add 'trace_string' argument.
  7936. (encode_actions_1): Update.
  7937. (trace_dump_actions): Update.
  7938. * dwarf2loc.c (access_memory): Update.
  7939. * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
  7940. * ax-general.c (new_agent_expr): Update.
  7941. * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
  7942. (gen_trace_for_return_address): Add argument.
  7943. (trace_kludge, trace_string_kludge): Remove.
  7944. * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
  7945. (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
  7946. (gen_trace_for_var): Add 'trace_string' argument.
  7947. (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
  7948. (gen_printf, agent_eval_command_one): Update.
  7949. 2013-03-21 Tom Tromey <tromey@redhat.com>
  7950. PR exp/15109:
  7951. * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
  7952. Handle FILENAME token.
  7953. 2013-03-21 Tom Tromey <tromey@redhat.com>
  7954. * c-exp.y (YYPRINT): Define.
  7955. (c_print_token): New function.
  7956. 2013-03-21 Tom Tromey <tromey@redhat.com>
  7957. * c-exp.y (%union) <sym, ivar, ivec>: Remove.
  7958. 2013-03-21 Yao Qi <yao@codesourcery.com>
  7959. * ctf.c: Include "gdb_stat.h".
  7960. [USE_WIN32API]: New macro 'mkdir'.
  7961. (ctf_start): Use permission bits macros if they are defined.
  7962. 2013-03-20 Keith Seitz <keiths@redhat.com>
  7963. * breakpoint.h (struct breakpoint): Add comment to
  7964. extra_string indicating that this member is mallod'd.
  7965. * breakpoint.c (base_breakpoint_dtor): Free extra_string.
  7966. 2013-03-20 Pedro Alves <palves@redhat.com>
  7967. PR gdb/15289
  7968. * cli/cli-setshow.c (do_set_command)
  7969. <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
  7970. the result of parsing the command argument. Throw error if the
  7971. value is greater than UINT_MAX. Print the invalid value with
  7972. plongest.
  7973. <var_integer, var_zinteger>: Use LONGEST for variable holding the
  7974. result of parsing the command argument. Throw error if the value
  7975. is greater than INT_MAX, not greater or equal. Also throw error
  7976. if the value is less than INT_MIN. Print the invalid value with
  7977. plongest.
  7978. <var_zuinteger_unlimited>: Throw error if the value is greater
  7979. than INT_MAX, not greater or equal.
  7980. (do_show_command) <var_integer, var_zinteger,
  7981. var_zuinteger_unlimited>: Use %d for printing int, not %u.
  7982. 2013-03-20 Tom Tromey <tromey@redhat.com>
  7983. * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
  7984. if possible.
  7985. * dwarf2read.c (read_func_scope): Remove old FIXME.
  7986. * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
  7987. not LOC_COMPUTED.
  7988. * findvar.c (symbol_read_needs_frame, default_read_var_value):
  7989. Unconditionally call via computed ops, if possible.
  7990. * printcmd.c (address_info): Unconditionally call via computed ops,
  7991. if possible.
  7992. * stack.c (read_frame_arg): Unconditionally call via computed ops,
  7993. if possible.
  7994. * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
  7995. * tracepoint.c (scope_info): Unconditionally call via computed ops,
  7996. if possible.
  7997. 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
  7998. Tom Tromey <tromey@redhat.com>
  7999. PR symtab/8421:
  8000. * coffread.c (coff_register_index): New global.
  8001. (process_coff_symbol, coff_read_enum_type): Set
  8002. SYMBOL_ACLASS_INDEX.
  8003. (_initialize_coffread): Initialize new global.
  8004. * dwarf2loc.c (locexpr_find_frame_base_location)
  8005. (dwarf2_block_frame_base_locexpr_funcs)
  8006. (loclist_find_frame_base_location)
  8007. (dwarf2_block_frame_base_loclist_funcs): New.
  8008. (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
  8009. (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
  8010. * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
  8011. (dwarf2_block_frame_base_loclist_funcs): New.
  8012. * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
  8013. (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
  8014. globals.
  8015. (read_func_scope): Update.
  8016. (fixup_go_packaging, mark_common_block_symbol_computed)
  8017. (var_decode_location, new_symbol_full, dwarf2_const_value):
  8018. Set SYMBOL_ACLASS_INDEX.
  8019. (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
  8020. (_initialize_dwarf2_read): Initialize new globals.
  8021. * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
  8022. * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
  8023. * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
  8024. globals.
  8025. (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
  8026. (_initialize_mdebugread): Initialize new globals.
  8027. * psympriv.h (struct partial_symbol) <aclass>: Update comment.
  8028. * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
  8029. (stab_register_index, stab_regparm_index): New globals.
  8030. (define_symbol, read_enum_type, common_block_end): Set
  8031. SYMBOL_ACLASS_INDEX.
  8032. (_initialize_stabsread): Initialize new globals.
  8033. * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
  8034. globals.
  8035. (MAX_SYMBOL_IMPLS): New define.
  8036. (register_symbol_computed_impl, register_symbol_block_impl)
  8037. (register_symbol_register_impl)
  8038. (initialize_ordinary_address_classes): New functions.
  8039. (_initialize_symtab): Call initialize_ordinary_address_classes.
  8040. * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
  8041. (struct symbol_impl): New.
  8042. (SYMBOL_ACLASS_BITS): New define.
  8043. (struct symbol) <aclass, ops>: Remove fields.
  8044. <aclass_index>: New field.
  8045. (symbol_impls): Declare.
  8046. (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
  8047. (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
  8048. (register_symbol_computed_impl, register_symbol_block_impl)
  8049. (register_symbol_register_impl): Declare.
  8050. (struct symbol_computed_ops): Add location_has_loclist.
  8051. (struct symbol_block_ops): New.
  8052. (SYMBOL_BLOCK_OPS): New.
  8053. * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
  8054. 2013-03-20 Tom Tromey <tromey@redhat.com>
  8055. * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
  8056. (print_partial_symbols, recursively_search_psymtabs): Use
  8057. PSYMBOL_CLASS.
  8058. 2013-03-20 Pierre Muller <muller@sourceware.org>
  8059. * contrib/ari/gdb_ari.sh (OP eol rule): Also check
  8060. addtion, subtraction, multiplication and division binary operator.
  8061. 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
  8062. Code cleanup.
  8063. * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
  8064. * bsd-kvm.c (bsd_kvm_close): Likewise.
  8065. * bsd-uthread.c (bsd_uthread_close): Likewise.
  8066. * corelow.c (core_close): Likewise.
  8067. (core_close_cleanup): Remove parameter quitting from a caller.
  8068. * event-top.c (async_disconnect): Likewise.
  8069. * exec.c (exec_close_1): Remove parameter quitting.
  8070. * go32-nat.c (go32_close): Likewise.
  8071. * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
  8072. parameter quitting from a caller.
  8073. * mips-linux-nat.c (super_close): Remove parameter quitting from the
  8074. variable.
  8075. (mips_linux_close): Remove parameter quitting. Remove parameter
  8076. quitting from a caller.
  8077. * monitor.c (monitor_close): Remove parameter quitting.
  8078. * monitor.h (monitor_close): Likewise.
  8079. * record-btrace.c (record_btrace_close): Likewise.
  8080. * record-full.c (record_full_close): Likewise.
  8081. * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
  8082. it also from fprintf_unfiltered.
  8083. * remote-mips.c (mips_close): Remove parameter quitting.
  8084. (mips_detach): Remove parameter quitting from a caller.
  8085. * remote-sim.c (gdbsim_close): Remove parameter quitting.
  8086. (gdbsim_close): Remove duplicate function comment. Remove parameter
  8087. quitting and remove it also from printf_filtered.
  8088. * remote.c (remote_close): Remove parameter quitting.
  8089. * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
  8090. * target.c (update_current_target): Remove parameter int from to_close
  8091. de_fault.
  8092. (push_target, unpush_target, pop_target): Remove parameter quitting from
  8093. a caller.
  8094. (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
  8095. Remove parameter quitting from a caller.
  8096. (target_preopen): Remove parameter quitting from a caller.
  8097. (target_close): Remove parameter quitting. Remove parameter quitting
  8098. from a caller two times. Remove parameter quitting also from
  8099. fprintf_unfiltered.
  8100. * target.h (struct target_ops): Remove parameter quitting and as int
  8101. from fields to_xclose and to_close.
  8102. (extern struct target_ops current_target):
  8103. (target_close, pop_all_targets): Remove parameter quitting. Update the
  8104. comment.
  8105. (pop_all_targets_above): Remove parameter quitting.
  8106. * top.c (quit_target): Remove parameter quitting from a caller.
  8107. * tracepoint.c (tfile_close): Remove parameter quitting.
  8108. * windows-nat.c (windows_close): Remove parameter quitting.
  8109. 2013-03-20 Corinna Vinschen <vinschen@redhat.com>
  8110. * windows-nat.c (handle_output_debug_string): Replace call
  8111. to string_to_core_addr with call to strtoull.
  8112. 2013-03-20 Yao Qi <yao@codesourcery.com>
  8113. * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
  8114. and write it to CTF metadata.
  8115. 2013-03-19 Corinna Vinschen <vinschen@redhat.com>
  8116. * windows-nat.c (handle_output_debug_string): Change type of n to
  8117. SIZE_T to avoid crash on 64 bit systems.
  8118. 2013-03-17 Eli Zaretskii <eliz@gnu.org>
  8119. * python/python-internal.h (HAVE_SNPRINTF)
  8120. [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
  8121. about redefinition of snprintf by pyerrors.h.
  8122. 2013-03-15 Steve Ellcey <sellcey@mips.com>
  8123. * remote-sim.c (sim_command_completer): Make char arguments const.
  8124. 2013-03-15 Tom Tromey <tromey@redhat.com>
  8125. PR c++/15116:
  8126. * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
  8127. 2013-03-14 Tom Tromey <tromey@redhat.com>
  8128. * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
  8129. New fields.
  8130. (get_file_crc): Move from symfile.c.
  8131. (gdb_bfd_crc): New function.
  8132. * gdb_bfd.h (gdb_bfd_crc): Declare.
  8133. * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
  8134. * symfile.c (get_file_crc): Move to gdb_bfd.c.
  8135. (separate_debug_file_exists): Use gdb_bfd_crc.
  8136. 2013-03-14 Tom Tromey <tromey@redhat.com>
  8137. * symfile.c (get_debug_link_info): Remove.
  8138. (find_separate_debug_file_by_debuglink): Use
  8139. bfd_get_debug_link_info.
  8140. 2013-03-14 Tom Tromey <tromey@redhat.com>
  8141. * symtab.c (error_in_psymtab_expansion): New function.
  8142. (lookup_symbol_aux_quick)
  8143. (basic_lookup_transparent_type_quick): Remove "last resort"
  8144. code. Use error_in_psymtab_expansion.
  8145. 2013-03-14 Doug Evans <dje@google.com>
  8146. Jan Kratochvil <jan.kratochvil@redhat.com>
  8147. * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
  8148. any successful compare_filenames_for_search or FILENAME_CMP.
  8149. * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
  8150. * symtab.c (iterate_over_some_symtabs): Likewise.
  8151. 2013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
  8152. * source.c (print_source_lines_base): Make a local copy of
  8153. symtab_to_fullname.
  8154. 2013-03-14 Hui Zhu <hui_zhu@mentor.com>
  8155. Jan Kratochvil <jan.kratochvil@redhat.com>
  8156. * source.c (print_source_lines_base): Suppress "file" for TUI.
  8157. 2013-03-14 Keith Seitz <keiths@redhat.com>
  8158. Alan Matsuoka <alanm@redhat.com>
  8159. PR c++/15203
  8160. PR c++/15210
  8161. * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
  8162. TYPE_CODE_METHOD.
  8163. * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
  8164. symbols.
  8165. 2013-03-14 Yao Qi <yao@codesourcery.com>
  8166. * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
  8167. status to tfile if trace is stopped by command 'tstop'.
  8168. 2013-03-14 Yao Qi <yao@codesourcery.com>
  8169. * tracepoint.c (tfile_write_status): Write trace notes and user
  8170. name into tfile if they are not NULL.
  8171. 2013-03-14 Hui Zhu <hui@codesourcery.com>
  8172. Yao Qi <yao@codesourcery.com>
  8173. * Makefile.in (REMOTE_OBS): Add ctf.o.
  8174. (SFILES): Add ctf.c.
  8175. (HFILES_NO_SRCDIR): Add ctf.h.
  8176. * ctf.c, ctf.h: New files.
  8177. * tracepoint.c: Include 'ctf.h'.
  8178. (collect_pseudocommand): Remove static.
  8179. (trace_save_command): Parse option "-ctf".
  8180. Produce different trace file writers per option.
  8181. Adjust output message.
  8182. (trace_save_tfile, trace_save_ctf): New.
  8183. * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
  8184. * mi/mi-main.c: Include 'ctf.h'.
  8185. (mi_cmd_trace_save): Handle option '-ctf'. Call either
  8186. trace_save_tfile or trace_save_ctf.
  8187. * NEWS: Mention these changes.
  8188. 2013-03-14 Yao Qi <yao@codesourcery.com>
  8189. * tracepoint.c (trace_file_writer_xfree): New.
  8190. (struct tfile_writer_data): New.
  8191. (tfile_dtor, tfile_can_target_save, tfile_start): New.
  8192. (tfile_write_header, tfile_write_regblock_type): New.
  8193. (tfile_write_status, tfile_write_uploaded_tsv): New.
  8194. (tfile_write_uploaded_tp, tfile_write_definition_end): New.
  8195. (tfile_write_raw_data, (tfile_end): New.
  8196. (tfile_write_ops): New global variable.
  8197. (TRACE_WRITE_R_BLOCK): New macro.
  8198. (TRACE_WRITE_M_BLOCK_HEADER): New macro.
  8199. (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
  8200. (TRACE_WRITE_V_BLOCK): New macro.
  8201. (trace_save): Add extra one parameter WRITER. Make it static.
  8202. Use WRITER to writer trace.
  8203. (tfile_trace_file_writer_new): New.
  8204. (trace_save_command): Caller update.
  8205. (trace_save_tfile): Write trace data in TFILE format.
  8206. * tracepoint.h (struct trace_frame_write_ops): New.
  8207. (struct trace_file_write_ops): New.
  8208. (struct trace_file_writer): New.
  8209. (trace_save): Remove its declaration.
  8210. (trace_save_tfile): Declare it.
  8211. * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
  8212. instead of trace_save.
  8213. 2013-03-13 Pedro Alves <palves@redhat.com>
  8214. * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
  8215. 2013-03-13 Pedro Alves <palves@redhat.com>
  8216. * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
  8217. commented out code.
  8218. * demangle.c (current_demangling_style_string): Make it const.
  8219. (set_demangling_command): Assert the demangling style is known.
  8220. Remove all handling of unknown styles. Set
  8221. 'current_demangling_style_string' to an element of the
  8222. demangling_style_names array.
  8223. (set_demangling_style): Delete.
  8224. (_initialize_demangler): Set current_demangling_style_string to the
  8225. element of the demangling_style_names array that corresponds to
  8226. the default demangling style. Remove FIXME note. Don't call
  8227. set_demangling_style.
  8228. * gdb-demangle.h (set_demangling_style): Remove declaration.
  8229. 2013-03-13 Pedro Alves <palves@redhat.com>
  8230. * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
  8231. fields const.
  8232. (ada_make_symbol_completion_list): Make "text0" parameter const.
  8233. * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
  8234. * breakpoint.c (condition_completer): Make "text" and "word"
  8235. parameters const. Adjust.
  8236. (check_tracepoint_command): Adjust to validate_actionline
  8237. prototype change.
  8238. (catch_syscall_completer): Make "text" and "word" parameters
  8239. const.
  8240. * cli/cli-cmds.c (show_user): Make "comname" local const.
  8241. (valid_command_p): Make "command" parameter const.
  8242. (alias_command): Make "alias_prefix" and "command_prefix" locals
  8243. const.
  8244. * cli/cli-decode.c (add_cmd): Make "name" parameter const.
  8245. (add_alias_cmd): Make "name" and "oldname" parameters const.
  8246. Adjust. No longer make copy of OLDNAME.
  8247. (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
  8248. (add_setshow_cmd_full, add_setshow_enum_cmd)
  8249. (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
  8250. (add_setshow_filename_cmd, add_setshow_string_cmd)
  8251. (add_setshow_string_noescape_cmd)
  8252. (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
  8253. (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
  8254. (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
  8255. (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
  8256. Make "name" parameter const.
  8257. (help_cmd): Rename "command" parameter to "arg". New const local
  8258. "command".
  8259. (find_cmd): Make "command" parameter const.
  8260. (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
  8261. deprecated_cmd_warning prototype change.
  8262. (undef_cmd_error): Make "cmdtype" parameter const.
  8263. (lookup_cmd): Make "line" parameter const.
  8264. (deprecated_cmd_warning): Change type of "text" parameter to
  8265. pointer to const char, from pointer to pointer to char. Adjust.
  8266. (lookup_cmd_composition): Make "text" parameter const.
  8267. (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
  8268. parameters const.
  8269. * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
  8270. const.
  8271. * cli/cli-script.c (validate_comname): Make "tem" local const.
  8272. (define_command): New const local "tem_c". Use it in calls to
  8273. lookup_cmd.
  8274. (document_command): Make "tem" and "comfull" locals const.
  8275. (show_user_1): Make "prefix" and "name" parameters const.
  8276. * cli-script.h (show_user_1): Make "prefix" and "name" parameters
  8277. const.
  8278. * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
  8279. (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
  8280. (deprecated_cmd_warning, lookup_cmd_composition, add_com)
  8281. (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
  8282. (complete_on_enum, add_setshow_enum_cmd)
  8283. (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
  8284. (add_setshow_filename_cmd, add_setshow_string_cmd)
  8285. (add_setshow_string_noescape_cmd)
  8286. (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
  8287. (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
  8288. (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
  8289. Change prototypes, constifying strings.
  8290. * completer.c (noop_completer, filename_completer): Make "text"
  8291. and "prefix" parameters const.
  8292. (location_completer, expression_completer)
  8293. (complete_line_internal): Make "text" and "prefix" parameters
  8294. const and adjust.
  8295. (command_completer, signal_completer): Make "text" and "prefix"
  8296. parameters const.
  8297. * completer.h (noop_completer, filename_completer)
  8298. (expression_completer, location_completer, command_completer)
  8299. (signal_completer): Change prototypes.
  8300. * corefile.c (complete_set_gnutarget): Make "text" and "word"
  8301. parameters const.
  8302. * cp-abi.c (cp_abi_completer): Likewise.
  8303. * expression.h (parse_expression_for_completion): Change
  8304. prototype.
  8305. * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
  8306. parameters const.
  8307. * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
  8308. * infrun.c (handle_completer): Make "text" and "word" parameters
  8309. const.
  8310. * interps.c (interpreter_completer): Make "text" and "word"
  8311. parameters const.
  8312. * language.h (struct language_defn)
  8313. <la_make_symbol_completion_list>: Make "text" and "word"
  8314. parameters const.
  8315. * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
  8316. (parse_exp_in_context): Rename to ...
  8317. (parse_exp_in_context_1): ... this.
  8318. (parse_exp_in_context): Reimplement, with const hack from
  8319. parse_exp_1.
  8320. (parse_expression_for_completion): Make "string" parameter const.
  8321. * printcmd.c (decode_format): Make "string_ptr" parameter pointer
  8322. to pointer to const char. Adjust.
  8323. (print_command_1): Make "exp" parameter const.
  8324. (output_command): Rename to ...
  8325. (output_command_const): ... this. Make "exp" parameter const.
  8326. (output_command): Reimplement.
  8327. (x_command): Adjust.
  8328. (display_command): Rename "exp" parameter to "arg". New "exp"
  8329. local, const version of "arg".
  8330. * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
  8331. "cmd_name" local const.
  8332. * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
  8333. call.
  8334. (cmdpy_completer): Make "text" and "word" parameters const.
  8335. (gdbpy_parse_command_name): Make "prefix_text2" local const.
  8336. * python/py-param.c (add_setshow_generic): Make "tmp_name" local
  8337. const.
  8338. * remote.c (_initialize_remote): Make "cmd_name" local const.
  8339. * symtab.c (language_search_unquoted_string): Make "text" and "p"
  8340. parameters const. Adjust.
  8341. (completion_list_add_fields): Make "sym_text", "text" and "word"
  8342. parameters const.
  8343. (struct add_name_data) <sym_text, text, word>: Make fields const.
  8344. (default_make_symbol_completion_list_break_on): Make "text" and
  8345. "word" parameters const. Adjust locals.
  8346. (default_make_symbol_completion_list)
  8347. (make_symbol_completion_list, make_symbol_completion_type)
  8348. (make_symbol_completion_list_fn): Make "text" and "word"
  8349. parameters const.
  8350. (make_file_symbol_completion_list): Make "text", "word" and
  8351. "srcfile" parameters const. Adjust locals.
  8352. (add_filename_to_list): Make "text" and "word" parameters const.
  8353. (struct add_partial_filename_data) <text, word>: Make fields
  8354. const.
  8355. (make_source_files_completion_list): Make "text" and "word"
  8356. parameters const.
  8357. * symtab.h (default_make_symbol_completion_list_break_on)
  8358. (default_make_symbol_completion_list, make_symbol_completion_list)
  8359. (make_symbol_completion_type enum type_code)
  8360. (make_symbol_completion_list_fn make_file_symbol_completion_list)
  8361. (make_source_files_completion_list): Change prototype.
  8362. * top.c (execute_command): Adjust to pass pointer to pointer to
  8363. const char to lookup_cmd, and to deprecated_cmd_warning prototype
  8364. change.
  8365. (set_verbose): Make "cmdname" local const.
  8366. * tracepoint.c (decode_agent_options): Make "exp" parameter const,
  8367. and adjust.
  8368. (validate_actionline): Make "line" parameter a pointer to const
  8369. char, and adjust.
  8370. (encode_actions_1): Make "action_exp" local const, and adjust.
  8371. (encode_actions): Adjust.
  8372. (replace_comma): Delete.
  8373. (trace_dump_actions): Make "action_exp" and "next_comma" locals
  8374. const, and adjust. Don't frob the action string while splitting
  8375. it at commas. Instead, make a copy of each split substring in
  8376. turn.
  8377. (trace_dump_command): Adjust to validate_actionline prototype
  8378. change.
  8379. * tracepoint.h (decode_agent_options, decode_agent_options)
  8380. (encode_actions, validate_actionline): Change prototypes.
  8381. * valprint.h (output_command): Delete declaration.
  8382. (output_command_const): Declare.
  8383. * value.c (function_destroyer): Cast const away in xfree call.
  8384. 2013-03-13 Pedro Alves <palves@redhat.com>
  8385. * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
  8386. rather than casting 'const char * const *' to 'const char **'.
  8387. * ada-lex.l (processInt): Make "trailer" local const. Remove
  8388. 'const char **' cast.
  8389. * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
  8390. locals, and use those as strtol output pointer, instead than doing
  8391. invalid casts to from 'const char **' to 'char **'.
  8392. (_initialize_demangle): Remove cast.
  8393. * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
  8394. locals, and use those as strtol output pointer, instead than doing
  8395. invalid casts to from 'const char **' to 'char **'.
  8396. * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
  8397. casts.
  8398. * stap-probe.c (stap_parse_register_operand)
  8399. (stap_parse_single_operand): Likewise.
  8400. 2013-03-13 Yao Qi <yao@codesourcery.com>
  8401. * tracepoint.c (tfile_get_trace_state_variable_value): Look for
  8402. the last matched 'V' blcok in trace frame.
  8403. 2013-03-12 Joel Brobecker <brobecker@adacore.com>
  8404. * NEWS: Create a new section for the next release branch.
  8405. Rename the section of the current branch, now that it has
  8406. been cut.
  8407. 2013-03-12 Joel Brobecker <brobecker@adacore.com>
  8408. GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
  8409. * version.in: Bump version to 7.6.50.20130312-cvs.
  8410. 2013-03-12 Keith Seitz <keiths@redhat.com>
  8411. * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
  8412. * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
  8413. Remove temporary copy of input string.
  8414. (mi_execute_command_wrapper): Make "cmd" const.
  8415. * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
  8416. * mi/mi-parse.c (mi_parse_argv): Make "args" const.
  8417. Use const strings.
  8418. (mi_parse): Make "cmd" const.
  8419. Use const strings.
  8420. * mi/mi-parse.h (mi_parse): Make "cmd" const.
  8421. 2013-03-12 Keith Seitz <keiths@redhat.com>
  8422. * ada-lang.c (ada_read_renaming_var_value): Pass const
  8423. pointer to expression string to parse_exp_1.
  8424. (create_excep_cond_exprs): Likewise.
  8425. * ax-gdb.c (agent_eval_command_one): Likewise.
  8426. (maint_agent_printf_command): Likewise.
  8427. Constify much of the string handling/parsing.
  8428. * breakpoint.c (set_breakpoint_condition): Pass const
  8429. pointer to expression string to parse_exp_1.
  8430. (update_watchpoint): Likewise.
  8431. (parse_cmd_to_aexpr): Constify string handling.
  8432. Pass const pointer to parse_exp_1.
  8433. (init_breakpoint_sal): Pass const pointer to parse_exp_1.
  8434. (find_condition_and_thread): Likewise.
  8435. Make TOK const.
  8436. (watch_command_1): Make "arg" const.
  8437. Constify string handling.
  8438. Copy the expression string instead of changing the input
  8439. string.
  8440. (update_breakpoint_location): Pass const pointer to
  8441. parse_exp_1.
  8442. * eval.c (parse_and_eval_address): Make "exp" const.
  8443. (parse_to_comma_and_eval): Make "expp" const.
  8444. (parse_and_eval): Make "exp" const.
  8445. * expression.h (parse_expression): Make argument const.
  8446. (parse_exp_1): Make first argument const.
  8447. * findcmd.c (parse_find_args): Treat "args" as const.
  8448. * linespec.c (parse_linespec): Pass const pointer to
  8449. linespec_expression_to_pc.
  8450. (linespec_expression_to_pc): Make "exp_ptr" const.
  8451. * parse.c (parse_exp_1): Make "stringptr" const.
  8452. Make a copy of the expression to pass to parse_exp_in_context until
  8453. this whole interface can be constified.
  8454. (parse_expression): Make "string" const.
  8455. * printcmd.c (ui_printf): Treat "arg" as const.
  8456. Handle const strings.
  8457. * tracepoint.c (validate_actionline): Pass const pointer to
  8458. all calls to parse_exp_1.
  8459. (encode_actions_1): Likewise.
  8460. * value.h (parse_to_comma_and_eval): Make argument const.
  8461. (parse_and_eval_address): Likewise.
  8462. (parse_and_eval): Likewise.
  8463. * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
  8464. (varobj_set_value): Likewise.
  8465. * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
  8466. constify string handling.
  8467. Pass const pointers to parse_and_eval_address and
  8468. parse_to_comman_and_eval.
  8469. * cli/cli-utils.c (skip_to_space): Rename to ...
  8470. (skip_to_space_const): ... this. Handle const strings.
  8471. * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
  8472. skip_to_space_const.
  8473. (skip_to_space_const): Declare.
  8474. * common/format.c (parse_format_string): Make "arg" const.
  8475. Handle const strings.
  8476. * common/format.h (parse_format_string): Make "arg" const.
  8477. * gdbserver/ax.c (ax_printf): Make "format" const.
  8478. * python/python.c (gdbpy_parse_and_eval): Do not make a copy
  8479. of the expression string.
  8480. 2013-03-12 Hui Zhu <hui@codesourcery.com>
  8481. * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
  8482. 2013-03-12 Yao Qi <yao@codesourcery.com>
  8483. Hui Zhu <hui@codesourcery.com>
  8484. * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
  8485. (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
  8486. DW_OP_deref_size.
  8487. 2013-03-12 Paul Hilfinger <hilfingr@adacore.com>
  8488. * ada-lex.l (rules): Only recognize 'thread' as a
  8489. delimiter when followed by numerals, as for c-exp.y.
  8490. Use new rewind_to_char function to rewind the input for
  8491. expression-delimiting tokens.
  8492. (rewind_to_char): New function.
  8493. 2013-03-11 Pedro Alves <palves@redhat.com>
  8494. Jan Kratochvil <jan.kratochvil@redhat.com>
  8495. * configure: Regenerate.
  8496. * configure.ac (check dynamic export flag): Link python test with
  8497. $PYTHON_LIBS.
  8498. 2013-03-11 Doug Evans <dje@google.com>
  8499. Keith Seitz <keiths@redhat.com>
  8500. * linespec.c (find_linespec_symbols): Call find_function_symbols
  8501. first, and then call lookup_prefix_sym/find_method.
  8502. 2013-03-11 Pedro Alves <palves@redhat.com>
  8503. * charset.c (convert_between_encodings): Don't cast between
  8504. different pointer to pointer types. Instead, make the 'inp' local
  8505. be of the type iconv expects.
  8506. (wchar_iterate): Don't cast between different pointer to pointer
  8507. types. Instead, use new pointer local of the type iconv expects.
  8508. * target.c (target_read_stralloc, target_fileio_read_stralloc):
  8509. Add new local of type char pointer, and use it to get a
  8510. char/string view of the byte buffer, instead of casting between
  8511. pointer to pointer types.
  8512. 2013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
  8513. * remote.c (remote_set_trace_buffer_size): Move != operator
  8514. to the start of next line to fix an ARI warning.
  8515. 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
  8516. * NEWS: Add record changes.
  8517. 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
  8518. * record-btrace.c (btrace_insn_history): Omit the pc prefix in
  8519. the instruction history disassembly.
  8520. * disasm.c (dump_insns): Omit the pc prefix, if requested.
  8521. * disasm.h (DISASSEMBLY_OMIT_PC): New.
  8522. 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
  8523. * Makefile.in (SFILES): Add record-btrace.c
  8524. (COMMON_OBS): Add record-btrace.o
  8525. * record-btrace.c: New.
  8526. * objfiles.c: Include btrace.h.
  8527. (free_objfile): call btrace_free_objfile.
  8528. 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
  8529. * target.c (target_call_history, target_call_history_from,
  8530. target_call_history_range): New.
  8531. * target.h (target_ops) <to_call_history, to_call_history_from,
  8532. to_call_history_range>: New fields.
  8533. (target_call_history, target_call_history_from,
  8534. target_call_history_range): New declaration.
  8535. * record.c (get_call_history_modifiers, cmd_record_call_history,
  8536. record_call_history_size): New.
  8537. (_initialize_record): Add the "record function-call-history" command.
  8538. Add "set/show record function-call-history-size" commands.
  8539. * record.h (record_print_flag): New.
  8540. 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
  8541. * target.h (target_ops) <to_insn_history, to_insn_history_from,
  8542. to_insn_history_range>: New fields.
  8543. (target_insn_history): New.
  8544. (target_insn_history_from): New.
  8545. (target_insn_history_range): New.
  8546. * target.c (target_insn_history): New.
  8547. (target_insn_history_from): New.
  8548. (target_insn_history_range): New.
  8549. * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
  8550. (record_insn_history_size): New.
  8551. (get_insn_number): New.
  8552. (get_context_size): New.
  8553. (no_chunk): New.
  8554. (get_insn_history_modifiers): New.
  8555. (cmd_record_insn_history): New.
  8556. (_initialize_record): Add "set/show record instruction-history-size"
  8557. command. Add "record instruction-history" command.
  8558. 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
  8559. * record.h (record_disconnect): New.
  8560. (record_detach): New.
  8561. (record_mourn_inferior): New.
  8562. (record_kill): New.
  8563. * record-full.c (record_disconnect, record_detach,
  8564. record_mourn_inferior, record_kill): Move to...
  8565. * record.c: ...here.
  8566. (DEBUG): New.
  8567. (record_stop): New.
  8568. (record_unpush): New.
  8569. (cmd_record_stop): Call record_stop. Replace unpush_target
  8570. call with record_unpush call.
  8571. (record_disconnect, record_detach): Assert that the target
  8572. is of record stratum. Call record_unpush, record_stop, and
  8573. DEBUG.
  8574. (record_mourn_inferior, record_kill): Assert that the target
  8575. is of record stratum. Call record_unpush and DEBUG.
  8576. 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
  8577. * record-full.h, record-full.c (record_memory_query): Rename
  8578. to ...
  8579. (record_full_memory_query): ...this. Update all users.
  8580. (record_arch_list_add_reg): Rename to ...
  8581. (record_full_arch_list_add_reg): ...this. Update all users.
  8582. (record_arch_list_add_mem): Rename to ...
  8583. (record_full_arch_list_add_mem): ...this. Update all users.
  8584. (record_arch_list_add_end): Rename to ...
  8585. (record_full_arch_list_add_end): ...this. Update all users.
  8586. (record_gdb_operation_disable_set): Rename to ...
  8587. (record_full_gdb_operation_disable_set): ...this.
  8588. Update all users.
  8589. 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
  8590. * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
  8591. (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
  8592. (RECORD_IS_REPLAY): Renamed to ...
  8593. (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
  8594. (RECORD_FILE_MAGIC): Renamed to ...
  8595. (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
  8596. (record_mem_entry): Renamed to ...
  8597. (record_full_mem_entry): ... this. Updated all users.
  8598. (record_reg_entry): Renamed to ...
  8599. (record_full_reg_entry): ... this. Updated all users.
  8600. (record_end_entry): Renamed to ...
  8601. (record_full_end_entry): ... this. Updated all users.
  8602. (record_type) <record_end, record_reg, record_mem>: Renamed
  8603. to ...
  8604. (record_full_type) <record_full_end, record_full_reg,
  8605. record_full_mem>: ... this. Updated all users.
  8606. (record_entry): Renamed to ...
  8607. (record_full_entry): ... this. Updated all users.
  8608. (record_core_buf_entry): Renamed to ...
  8609. (record_full_core_buf_entry): ... this. Updated all users.
  8610. (record_core_regbuf): Renamed to ...
  8611. (record_full_core_regbuf): ... this. Updated all users.
  8612. (record_core_start): Renamed to ...
  8613. (record_full_core_start): ... this. Updated all users.
  8614. (record_core_end): Renamed to ...
  8615. (record_full_core_end): ... this. Updated all users.
  8616. (record_core_buf_list): Renamed to ...
  8617. (record_full_core_buf_list): ... this. Updated all users.
  8618. (record_first): Renamed to ...
  8619. (record_full_first): ... this. Updated all users.
  8620. (record_list): Renamed to ...
  8621. (record_full_list): ... this. Updated all users.
  8622. (record_arch_list_head): Renamed to ...
  8623. (record_full_arch_list_head): ... this. Updated all users.
  8624. (record_arch_list_tail): Renamed to ...
  8625. (record_full_arch_list_tail): ... this. Updated all users.
  8626. (record_stop_at_limit): Renamed to ...
  8627. (record_full_stop_at_limit): ... this. Updated all users.
  8628. (record_insn_max_num): Renamed to ...
  8629. (record_full_insn_max_num): ... this. Updated all users.
  8630. (record_insn_num): Renamed to ...
  8631. (record_full_insn_num): ... this. Updated all users.
  8632. (record_insn_count): Renamed to ...
  8633. (record_full_insn_count): ... this. Updated all users.
  8634. (record_ops): Renamed to ...
  8635. (record_full_ops): ... this. Updated all users.
  8636. (record_core_ops): Renamed to ...
  8637. (record_full_core_ops): ... this. Updated all users.
  8638. (set_record_cmdlist): Renamed to ...
  8639. (set_record_full_cmdlist): ... this. Updated all users.
  8640. (show_record_cmdlist): Renamed to ...
  8641. (show_record_full_cmdlist): ... this. Updated all users.
  8642. (record_cmdlist): Renamed to ...
  8643. (record_full_cmdlist): ... this. Updated all users.
  8644. (record_beneath_to_resume_ops): Renamed to ...
  8645. (record_full_beneath_to_resume_ops): ... this. Updated all users.
  8646. (record_beneath_to_resume): Renamed to ...
  8647. (record_full_beneath_to_resume): ... this. Updated all users.
  8648. (record_beneath_to_wait_ops): Renamed to ...
  8649. (record_full_beneath_to_wait_ops): ... this. Updated all users.
  8650. (record_beneath_to_wait): Renamed to ...
  8651. (record_full_beneath_to_wait): ... this. Updated all users.
  8652. (record_beneath_to_store_registers_ops): Renamed to ...
  8653. (record_full_beneath_to_store_registers_ops): ... this.
  8654. Updated all users.
  8655. (record_beneath_to_store_registers): Renamed to ...
  8656. (record_full_beneath_to_store_registers): ... this.
  8657. Updated all users.
  8658. (record_beneath_to_xfer_partial_ops): Renamed to ...
  8659. (record_full_beneath_to_xfer_partial_ops): ... this.
  8660. Updated all users.
  8661. (record_beneath_to_xfer_partial): Renamed to ...
  8662. (record_full_beneath_to_xfer_partial): ... this.
  8663. Updated all users.
  8664. (record_beneath_to_insert_breakpoint): Renamed to ...
  8665. (record_full_beneath_to_insert_breakpoint): ... this.
  8666. Updated all users.
  8667. (record_beneath_to_stopped_by_watchpoint): Renamed to ...
  8668. (record_full_beneath_to_stopped_by_watchpoint): ... this.
  8669. Updated all users.
  8670. (record_beneath_to_stopped_data_address): Renamed to ...
  8671. (record_full_beneath_to_stopped_data_address): ... this.
  8672. Updated all users.
  8673. (record_beneath_to_async): Renamed to ...
  8674. (record_full_beneath_to_async): ... this. Updated all users.
  8675. (record_goto_insn): Renamed to ...
  8676. (record_full_goto_insn): ... this. Updated all users.
  8677. (record_save): Renamed to ...
  8678. (record_full_save): ... this. Updated all users.
  8679. (record_reg_alloc): Renamed to ...
  8680. (record_full_reg_alloc): ... this. Updated all users.
  8681. (record_reg_release): Renamed to ...
  8682. (record_full_reg_release): ... this. Updated all users.
  8683. (record_mem_alloc): Renamed to ...
  8684. (record_full_mem_alloc): ... this. Updated all users.
  8685. (record_mem_release): Renamed to ...
  8686. (record_full_mem_release): ... this. Updated all users.
  8687. (record_end_alloc): Renamed to ...
  8688. (record_full_end_alloc): ... this. Updated all users.
  8689. (record_end_release): Renamed to ...
  8690. (record_full_end_release): ... this. Updated all users.
  8691. (record_entry_release): Renamed to ...
  8692. (record_full_entry_release): ... this. Updated all users.
  8693. (record_list_release): Renamed to ...
  8694. (record_full_list_release): ... this. Updated all users.
  8695. (record_list_release_following): Renamed to ...
  8696. (record_full_list_release_following): ... this.
  8697. Updated all users.
  8698. (record_list_release_first): Renamed to ...
  8699. (record_full_list_release_first): ... this. Updated all users.
  8700. (record_arch_list_add): Renamed to ...
  8701. (record_full_arch_list_add): ... this. Updated all users.
  8702. (record_get_loc): Renamed to ...
  8703. (record_full_get_loc): ... this. Updated all users.
  8704. (record_check_insn_num): Renamed to ...
  8705. (record_full_check_insn_num): ... this. Updated all users.
  8706. (record_arch_list_cleanups): Renamed to ...
  8707. (record_full_arch_list_cleanups): ... this. Updated all users.
  8708. (record_message): Renamed to ...
  8709. (record_full_message): ... this. Updated all users.
  8710. (record_message_wrapper): Renamed to ...
  8711. (record_full_message_wrapper): ... this. Updated all users.
  8712. (record_message_wrapper_safe): Renamed to ...
  8713. (record_full_message_wrapper_safe): ... this. Updated all users.
  8714. (record_gdb_operation_disable): Renamed to ...
  8715. (record_full_gdb_operation_disable): ... this. Updated all users.
  8716. (record_hw_watchpoint): Renamed to ...
  8717. (record_full_hw_watchpoint): ... this. Updated all users.
  8718. (record_exec_insn): Renamed to ...
  8719. (record_full_exec_insn): ... this. Updated all users.
  8720. (record_restore): Renamed to ...
  8721. (record_full_restore): ... this. Updated all users.
  8722. (record_async_inferior_event_token): Renamed to ...
  8723. (record_full_async_inferior_event_token): ... this.
  8724. Updated all users.
  8725. (record_async_inferior_event_handler): Renamed to ...
  8726. (record_full_async_inferior_event_handler): ... this.
  8727. Updated all users.
  8728. (record_core_open_1): Renamed to ...
  8729. (record_full_core_open_1): ... this. Updated all users.
  8730. (record_open_1): Renamed to ...
  8731. (record_full_open_1): ... this. Updated all users.
  8732. (record_open): Renamed to ...
  8733. (record_full_open): ... this. Updated all users.
  8734. (record_close): Renamed to ...
  8735. (record_full_close): ... this. Updated all users.
  8736. (record_resume_step): Renamed to ...
  8737. (record_full_resume_step): ... this. Updated all users.
  8738. (record_resumed): Renamed to ...
  8739. (record_full_resumed): ... this. Updated all users.
  8740. (record_execution_dir): Renamed to ...
  8741. (record_full_execution_dir): ... this. Updated all users.
  8742. (record_resume): Renamed to ...
  8743. (record_full_resume): ... this. Updated all users.
  8744. (record_get_sig): Renamed to ...
  8745. (record_full_get_sig): ... this. Updated all users.
  8746. (record_sig_handler): Renamed to ...
  8747. (record_full_sig_handler): ... this. Updated all users.
  8748. (record_wait_cleanups): Renamed to ...
  8749. (record_full_wait_cleanups): ... this. Updated all users.
  8750. (record_wait_1): Renamed to ...
  8751. (record_full_wait_1): ... this. Updated all users.
  8752. (record_wait): Renamed to ...
  8753. (record_full_wait): ... this. Updated all users.
  8754. (record_stopped_by_watchpoint): Renamed to ...
  8755. (record_full_stopped_by_watchpoint): ... this. Updated all users.
  8756. (record_disconnect): Renamed to ...
  8757. (record_full_disconnect): ... this. Updated all users.
  8758. (record_detach): Renamed to ...
  8759. (record_full_detach): ... this. Updated all users.
  8760. (record_mourn_inferior): Renamed to ...
  8761. (record_full_mourn_inferior): ... this. Updated all users.
  8762. (record_kill): Renamed to ...
  8763. (record_full_kill): ... this. Updated all users.
  8764. (record_stopped_data_address): Renamed to ...
  8765. (record_full_stopped_data_address): ... this. Updated all users.
  8766. (record_registers_change): Renamed to ...
  8767. (record_full_registers_change): ... this. Updated all users.
  8768. (record_store_registers): Renamed to ...
  8769. (record_full_store_registers): ... this. Updated all users.
  8770. (record_xfer_partial): Renamed to ...
  8771. (record_full_xfer_partial): ... this. Updated all users.
  8772. (record_breakpoint): Renamed to ...
  8773. (record_full_breakpoint): ... this. Updated all users.
  8774. (record_breakpoint_p): Renamed to ...
  8775. (record_full_breakpoint_p): ... this. Updated all users.
  8776. (record_breakpoints): Renamed to ...
  8777. (record_full_breakpoints): ... this. Updated all users.
  8778. (record_sync_record_breakpoints): Renamed to ...
  8779. (record_full_sync_record_breakpoints): ... this.
  8780. Updated all users.
  8781. (record_init_record_breakpoints): Renamed to ...
  8782. (record_full_init_record_breakpoints): ... this.
  8783. Updated all users.
  8784. (record_insert_breakpoint): Renamed to ...
  8785. (record_full_insert_breakpoint): ... this. Updated all users.
  8786. (record_remove_breakpoint): Renamed to ...
  8787. (record_full_remove_breakpoint): ... this. Updated all users.
  8788. (record_can_execute_reverse): Renamed to ...
  8789. (record_full_can_execute_reverse): ... this. Updated all users.
  8790. (record_get_bookmark): Renamed to ...
  8791. (record_full_get_bookmark): ... this. Updated all users.
  8792. (record_goto_bookmark): Renamed to ...
  8793. (record_full_goto_bookmark): ... this. Updated all users.
  8794. (record_async): Renamed to ...
  8795. (record_full_async): ... this. Updated all users.
  8796. (record_can_async_p): Renamed to ...
  8797. (record_full_can_async_p): ... this. Updated all users.
  8798. (record_is_async_p): Renamed to ...
  8799. (record_full_is_async_p): ... this. Updated all users.
  8800. (record_execution_direction): Renamed to ...
  8801. (record_full_execution_direction): ... this. Updated all users.
  8802. (record_info): Renamed to ...
  8803. (record_full_info): ... this. Updated all users.
  8804. (record_delete): Renamed to ...
  8805. (record_full_delete): ... this. Updated all users.
  8806. (record_is_replaying): Renamed to ...
  8807. (record_full_is_replaying): ... this. Updated all users.
  8808. (record_goto_entry): Renamed to ...
  8809. (record_full_goto_entry): ... this. Updated all users.
  8810. (record_goto_begin): Renamed to ...
  8811. (record_full_goto_begin): ... this. Updated all users.
  8812. (record_goto_end): Renamed to ...
  8813. (record_full_goto_end): ... this. Updated all users.
  8814. (record_goto): Renamed to ...
  8815. (record_full_goto): ... this. Updated all users.
  8816. (init_record_ops): Renamed to ...
  8817. (init_record_full_ops): ... this. Updated all users.
  8818. (record_core_resume): Renamed to ...
  8819. (record_full_core_resume): ... this. Updated all users.
  8820. (record_core_kill): Renamed to ...
  8821. (record_full_core_kill): ... this. Updated all users.
  8822. (record_core_fetch_registers): Renamed to ...
  8823. (record_full_core_fetch_registers): ... this. Updated all users.
  8824. (record_core_prepare_to_store): Renamed to ...
  8825. (record_full_core_prepare_to_store): ... this. Updated all users.
  8826. (record_core_store_registers): Renamed to ...
  8827. (record_full_core_store_registers): ... this. Updated all users.
  8828. (record_core_xfer_partial): Renamed to ...
  8829. (record_full_core_xfer_partial): ... this. Updated all users.
  8830. (record_core_insert_breakpoint): Renamed to ...
  8831. (record_full_core_insert_breakpoint): ... this. Updated all users.
  8832. (record_core_remove_breakpoint): Renamed to ...
  8833. (record_full_core_remove_breakpoint): ... this. Updated all users.
  8834. (record_core_has_execution): Renamed to ...
  8835. (record_full_core_has_execution): ... this. Updated all users.
  8836. (init_record_core_ops): Renamed to ...
  8837. (init_record_full_core_ops): ... this. Updated all users.
  8838. (cmd_record_restore): Renamed to ...
  8839. (cmd_record_full_restore): ... this. Updated all users.
  8840. (record_save_cleanups): Renamed to ...
  8841. (record_full_save_cleanups): ... this. Updated all users.
  8842. (cmd_record_start): Renamed to ...
  8843. (cmd_record_full_start): ... this. Updated all users.
  8844. (set_record_insn_max_num): Renamed to ...
  8845. (set_record_full_insn_max_num): ... this. Updated all users.
  8846. (set_record_command): Renamed to ...
  8847. (set_record_full_command): ... this. Updated all users.
  8848. (show_record_command): Renamed to ...
  8849. (show_record_full_command): ... this. Updated all users.
  8850. (_initialize_record): Renamed to ...
  8851. (_initialize_record_full): ... this. Updated all users.
  8852. 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
  8853. * record.h: Split into this and ...
  8854. * record-full.h: ... this.
  8855. * record.c: Split into this and ...
  8856. * record-full.c: ... this.
  8857. * target.h (target_ops): Add new fields to_info_record,
  8858. to_save_record, to_delete_record, to_record_is_replaying,
  8859. to_goto_record_begin, to_goto_record_end, to_goto_record.
  8860. (target_info_record): New.
  8861. (target_save_record): New.
  8862. (target_supports_delete_record): New.
  8863. (target_delete_record): New.
  8864. (target_record_is_replaying): New.
  8865. (target_goto_record_begin): New.
  8866. (target_goto_record_end): New.
  8867. (target_goto_record): New.
  8868. * target.c (target_info_record): New.
  8869. (target_save_record): New.
  8870. (target_supports_delete_record): New.
  8871. (target_delete_record): New.
  8872. (target_record_is_replaying): New.
  8873. (target_goto_record_begin): New.
  8874. (target_goto_record_end): New.
  8875. (target_goto_record): New.
  8876. * record.h: Declare struct cmd_list_element.
  8877. (record_cmdlist): New declaration.
  8878. (set_record_cmdlist): New declaration.
  8879. (show_record_cmdlist): New declaration.
  8880. (info_record_cmdlist): New declaration.
  8881. (cmd_record_goto): New declaration.
  8882. * record.c: Remove unnecessary includes.
  8883. Include inferior.h.
  8884. (cmd_record_goto): Remove declaration.
  8885. (record_cmdlist): Now extern. Initialize.
  8886. (set_record_cmdlist): Now extern. Initialize.
  8887. (show_record_cmdlist): Now extern. Initialize.
  8888. (info_record_cmdlist): Now extern. Initialize.
  8889. (find_record_target): New.
  8890. (require_record_target): New.
  8891. (cmd_record_start): Update.
  8892. (cmd_record_delete): Remove target-specific code.
  8893. Call target_delete_record.
  8894. (cmd_record_stop): Unpush any record target.
  8895. (set_record_insn_max_num): Move to record-full.c
  8896. (set_record_command): Add comment.
  8897. (show_record_command): Add comment.
  8898. (info_record_command): Update comment.
  8899. Remove target-specific code.
  8900. Call the record target's to_info_record.
  8901. (cmd_record_start): New.
  8902. (cmd_record_goto): Now extern.
  8903. Remove target-specific code.
  8904. Call target_goto_begin, target_goto_end, or target_goto.
  8905. (_initialize_record): Move record target ops initialization to
  8906. record-full.c.
  8907. Change "record" command help text.
  8908. Move "record restore", "record set", and "record show" commands to
  8909. record-full.c.
  8910. * Makefile.in (SFILES): Add record-full.c.
  8911. (HFILES_NO_SRCDIR): Add record-full.h.
  8912. (COMMON_OBS): Add record-full.o.
  8913. * amd64-linux-tdep.c: Include record-full.h instead of record.h.
  8914. * arm-tdep.c: Include record-full.h.
  8915. * i386-linux-tdep.c: Include record-full.h instead of record.h.
  8916. * i386-tdep.c: Include record-full.h.
  8917. * infrun.c: Include record-full.h.
  8918. * linux-record.c: Include record-full.h.
  8919. * moxie-tdep.c: Include record-full.h.
  8920. * record-full.c: Include record-full.h.
  8921. Change module comment.
  8922. (set_record_full_cmdlist): New.
  8923. (show_record_full_cmdlist): New.
  8924. (record_full_cmdlist): New.
  8925. (record_goto_insn): New declaration.
  8926. (record_save): New declaration.
  8927. (record_check_insn_num): Change query string.
  8928. (record_info): New.
  8929. (record_delete): New.
  8930. (record_is_replaying): New.
  8931. (record_goto_entry): New.
  8932. (record_goto_begin): New.
  8933. (record_goto_end): New.
  8934. (record_goto): New.
  8935. (init_record_ops): Update.
  8936. (init_record_core_ops): Update.
  8937. (cmd_record_save): Rename to record_save. Remove target and arg checks.
  8938. (cmd_record_start): New.
  8939. (set_record_insn_max_num): Moved from record.c
  8940. (set_record_full_command): New.
  8941. (show_record_full_command): New.
  8942. (_initialize_record_full): New.
  8943. 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
  8944. * target.h (add_deprecated_target_alias): New.
  8945. * target.c (add_deprecated_target_alias): New.
  8946. 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
  8947. * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
  8948. and signal.h.
  8949. (linux_supports_btrace): Add kernel and
  8950. cpuid check.
  8951. (kernel_supports_btrace): New function.
  8952. (cpu_supports_btrace): New function.
  8953. (intel_supports_btrace): New function.
  8954. 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
  8955. * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
  8956. * remote.c: Include btrace.h.
  8957. (struct btrace_target_info): New struct.
  8958. (remote_supports_btrace): New function.
  8959. (send_Qbtrace): New function.
  8960. (remote_enable_btrace): New function.
  8961. (remote_disable_btrace): New function.
  8962. (remote_teardown_btrace): New function.
  8963. (remote_read_btrace): New function.
  8964. (init_remote_ops): Add btrace ops.
  8965. (enum <unnamed>): Add btrace packets.
  8966. (struct protocol_feature remote_protocol_features[]): Add btrace packets.
  8967. (_initialize_remote): Add packet configuration for branch tracing.
  8968. 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
  8969. * features/btrace.dtd: New file.
  8970. * Makefile.in (XMLFILES): Add btrace.dtd.
  8971. * btrace.h (parse_xml_btrace): New declaration.
  8972. * btrace.c: Include xml-support.h.
  8973. (parse_xml_btrace): New function.
  8974. (parse_xml_btrace_block): New function.
  8975. (block_attributes): New struct.
  8976. (btrace_attributes): New struct.
  8977. (btrace_children): New struct.
  8978. (btrace_elements): New struct.
  8979. 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
  8980. * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
  8981. (amd64_linux_enable_btrace): New.
  8982. (amd64_linux_disable_btrace): New.
  8983. (amd64_linux_teardown_btrace): New.
  8984. (_initialize_amd64_linux_nat): Initialize btrace ops.
  8985. * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
  8986. (i386_linux_enable_btrace): New.
  8987. (i386_linux_disable_btrace): New.
  8988. (i386_linux_teardown_btrace): New.
  8989. (_initialize_i386_linux_nat): Initialize btrace ops.
  8990. * config/i386/linux.mh: Add linux-btrace.o.
  8991. * config/i386/linux64.mh: Add linux-btrace.o.
  8992. 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
  8993. * common/linux_btrace.h: New file.
  8994. * common/linux_btrace.c: New file.
  8995. * Makefile.in (SFILES): Add btrace.c.
  8996. (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
  8997. (COMMON_OBS): Add btrace.o.
  8998. (linux-btrace.o): New rule.
  8999. 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
  9000. * target.h: Include btrace.h.
  9001. (struct target_ops) <to_supports_btrace, to_enable_btrace,
  9002. to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
  9003. * target.c (target_supports_btrace): New function.
  9004. (target_enable_btrace): New function.
  9005. (target_disable_btrace): New function.
  9006. (target_teardown_btrace): New function.
  9007. (target_read_btrace): New function.
  9008. * btrace.h: New file.
  9009. * btrace.c: New file.
  9010. * Makefile.in: Add btrace.c.
  9011. * gdbthread.h: Include btrace.h.
  9012. (struct thread_info): Add btrace field.
  9013. * thread.c: Include btrace.h.
  9014. (clear_thread_inferior_resources): Call target_teardown_btrace.
  9015. * common/btrace-common.h: New file.
  9016. 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
  9017. * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
  9018. for CHILD, ignore PTRACE_KILL errors, move the inner block variable
  9019. kill_status to outer block.
  9020. 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
  9021. Fix entry-values if the callee called a noreturn function.
  9022. * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
  9023. get_frame_address_in_block. Add new comment.
  9024. 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
  9025. Fix entry-values in C++ across CUs.
  9026. * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
  9027. lookup_minimal_symbol. Add a comment.
  9028. * dwarf2read.c
  9029. (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
  9030. DW_AT_linkage_name.
  9031. 2013-03-08 Yao Qi <yao@codesourcery.com>
  9032. * tracepoint.c (_initialize_tracepoint): Indent the code.
  9033. 2013-03-08 Pedro Alves <palves@redhat.com>
  9034. * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
  9035. (parse_find_args, find_command): Change type of pattern buffer
  9036. locals to 'gdb_byte *'.
  9037. 2013-03-08 Stan Shebs <stan@codesourcery.com>
  9038. Hafiz Abid Qadeer <abidh@codesourcery.com>
  9039. * NEWS: Mention set and show trace-buffer-size commands.
  9040. Mention new packet.
  9041. * target.h (struct target_ops): New method
  9042. to_set_trace_buffer_size.
  9043. (target_set_trace_buffer_size): New macro.
  9044. * target.c (update_current_target): Set up new method.
  9045. * tracepoint.c (trace_buffer_size): New global.
  9046. (start_tracing): Send it to the target.
  9047. (set_trace_buffer_size): New function.
  9048. (_initialize_tracepoint): Add new setshow for trace-buffer-size.
  9049. * remote.c (remote_set_trace_buffer_size): New function.
  9050. (_initialize_remote): Use it.
  9051. (QTBuffer:size) New remote command.
  9052. (PACKET_QTBuffer_size): New enum.
  9053. (remote_protocol_features): Add an entry for
  9054. PACKET_QTBuffer_size.
  9055. 2013-03-08 Tom Tromey <tromey@redhat.com>
  9056. * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
  9057. variable.
  9058. 2013-03-07 Pedro Alves <palves@redhat.com>
  9059. * target.c (target_read_stralloc, target_fileio_read_alloc):
  9060. *Cast pointer to 'gdb_byte *' in target call.
  9061. 2013-03-07 Pedro Alves <palves@redhat.com>
  9062. * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
  9063. call.
  9064. 2013-03-07 Keith Seitz <keiths@redhat.com>
  9065. * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
  9066. (trace_pass_command): Likewise.
  9067. * cli/cli-cmds.c: Include cli/cli-utils.h.
  9068. (source_command): Use skip-spaces.
  9069. (disassemble_command): Likewise.
  9070. * findcmd.c: Include cli/cli-utils.h.
  9071. (parse_find_args): Use skip_spaces.
  9072. * go32-nat.c: Include cli/cli-utils.h.
  9073. (go32_sldt): Use skip_spaces.
  9074. (go32_sgdt): Likewise.
  9075. (go32_sidt): Likewise.
  9076. (go32_pde): Likewise.
  9077. (go32_pte): Likewise.
  9078. (go32_pte_for_address): Likewise.
  9079. * infcmd.c: Include cli/cli-utils.h.
  9080. (registers_info): Use skip_spaces.
  9081. * linux-tdep.c (read_mapping): Use skip_spaces_const.
  9082. (linux_info_proc): Likewise.
  9083. * linux-thread-db.c: Include cli/cli-utils.h.
  9084. (info_auto_load_libthread_db): Use skip_spaces_const.
  9085. * m32r-rom.c: Include cli/cli-utils.h.
  9086. (m32r_upload_command): Use skip_spaces.
  9087. * maint.c: Include cli/cli-utils.h.
  9088. (maintenance_translate_address): Use skip_spaces.
  9089. * mi/mi-parse.c: Include cli/cli-utils.h.
  9090. (mi_parse_argv): Use skip_spaces.
  9091. (mi_parse): Likewise.
  9092. * minsyms.c: Include cli/cli-utils.h.
  9093. (msymbol_hash_iw): Use skip_spaces_const.
  9094. * objc-lang.c: Include cli/cli-utils.h.
  9095. (parse_selector): Use skip_spaces.
  9096. (parse_method): Likewise.
  9097. * python/python.c: Include cli/cli-utils.h.
  9098. (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
  9099. (python_command)[HAVE_PYTHON]: Likewise.
  9100. (python_interactive_command)[!HAVE_PYTHON]: Likewise.
  9101. * remote-m32r-sdi.c: Include cli/cli-utils.h.
  9102. (m32r_load): Use skip_spaces.
  9103. * serial.c: Include cli/cli-utils.h.
  9104. (serial_open): Use skip_spaces_const.
  9105. * stack.c: Include cli/cli-utils.h.
  9106. (parse_frame_specification_1): Use skip_spaces_const.
  9107. * symfile.c: Include cli/cli-utils.h.
  9108. (set_ext_lang_command): Use skip_spaces.
  9109. * symtab.c: Include cli/cli-utils.h.
  9110. (rbreak_command): Use skip_spaces.
  9111. * thread.c (thread_name_command): Use skip_spaces.
  9112. * tracepoint.c (validate_actionline): Use skip_spaces.
  9113. (encode_actions_1): Likewise.
  9114. (trace_find_range_command): Likewise.
  9115. (trace_find_outside_command): Likewise.
  9116. (trace_dump_actions): Likewise.
  9117. 2013-03-07 Pedro Alves <palves@redhat.com>
  9118. * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
  9119. * expprint.c (print_subexp_standard): Likewise.
  9120. * utils.c (host_char_to_target): Likewise.
  9121. * valprint.c (generic_emit_char, generic_printstr): Likewise.
  9122. * varobj.c (value_get_print_value): Change type of local to char*.
  9123. Cast it gdb_byte * in call to language printer.
  9124. 2013-03-07 Pedro Alves <palves@redhat.com>
  9125. * charset.c (struct wchar_iterator) <input>: Change type to 'const
  9126. gdb_byte *'.
  9127. (make_wchar_iterator): Remove cast to char*.
  9128. (wchar_iterate): Change type of local.
  9129. 2013-03-07 Pedro Alves <palves@redhat.com>
  9130. * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
  9131. for 'regcache->register_status'.
  9132. 2013-03-07 Pedro Alves <palves@redhat.com>
  9133. * breakpoint.c (breakpoint_xfer_memory): Change type of local to
  9134. int.
  9135. 2013-03-07 Pedro Alves <palves@redhat.com>
  9136. * stap-probe.c (handle_stap_probe): Add cast to char*.
  9137. 2013-03-07 Pedro Alves <palves@redhat.com>
  9138. * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
  9139. RECORD_MSGRCV>: Pass a signed variable to
  9140. regcache_raw_read_signed, instead of an unsigned one.
  9141. 2013-03-07 Pedro Alves <palves@redhat.com>
  9142. * remote-notif.c (notif_debug): Change type to int.
  9143. * remote-notif.h (notif_debug): Likewise.
  9144. 2013-03-07 Pedro Alves <palves@redhat.com>
  9145. * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
  9146. 2013-03-07 Pedro Alves <palves@redhat.com>
  9147. * remote.c (hex2bin, bin2hex): Move extern declarations to ...
  9148. * remote.h (hex2bin, bin2hex): ... here.
  9149. * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
  9150. 2013-03-07 Eli Zaretskii <eliz@gnu.org>
  9151. * utils.c (initialize_utils): Improve doc strings of "set/show
  9152. width", "set/show height", and "set/show pagination".
  9153. 2013-03-06 Keith Seitz <keiths@redhat.com>
  9154. * ax-gdb.c (gen_printf): Make FORMAT const.
  9155. * ax-gdb.h (gen_printf): Likewise.
  9156. * ax-general.c (ax_string): Make STR const.
  9157. * ax.h (ax_string): Likewise.
  9158. 2013-03-06 Doug Evans <dje@google.com>
  9159. * elfread.c (elf_symfile_read): Move debugging printf to more
  9160. logical location.
  9161. 2013-03-06 Pedro Alves <palves@redhat.com>
  9162. * python/py-utils.c (target_string_to_unicode): Delete function.
  9163. * python/python-internal.h (target_string_to_unicode): Delete
  9164. declaration.
  9165. 2013-03-06 Pierre Muller <muller@sourceware.org>
  9166. * linespec.c (get_current_search_block): ARI fix, use (void)
  9167. for empty parameter list.
  9168. 2013-03-05 Doug Evans <dje@google.com>
  9169. * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
  9170. of old ada_lookup_symbol_list. In !full_search case, don't
  9171. search superblocks.
  9172. (ada_lookup_symbol_list): Delete arg full_search, all callers
  9173. updated. Call ada_lookup_symbol_list_worker.
  9174. (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
  9175. * ada-lang.h (ada_lookup_symbol_list): Update.
  9176. * language.h (language_defn): Update comment for
  9177. la_iterate_over_symbols.
  9178. * linespec.c (iterate_over_file_blocks): New function.
  9179. (iterate_over_all_matching_symtabs): Call it.
  9180. (lookup_prefix_sym): Ditto.
  9181. (get_current_search_block): New function.
  9182. (get_search_block): Delete.
  9183. (find_label_symbols): Call get_current_search_block.
  9184. (add_matching_symbols_to_info): Call iterate_over_file_blocks.
  9185. * symtab.c (iterate_over_symbols): Don't search superblocks.
  9186. 2013-03-05 Yao Qi <yao@codesourcery.com>
  9187. * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
  9188. parameter VAR's type from "unsigned int" to "int".
  9189. * command.h (var_zuinteger_unlimited): Update its comments.
  9190. (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
  9191. 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
  9192. * NEWS: Mention new target x86_64-*-cygwin*.
  9193. 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
  9194. * configure.host: Add x86_64-*-cygwin* as host.
  9195. * configure.tgt: Add x86_64-*-cygwin* as target.
  9196. * config/i386/cygwin64.mh: New file.
  9197. 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
  9198. * linespec.c (decode_line_2): Fix duplicate request off by two message.
  9199. 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
  9200. * linespec.c (struct linespec_canonical_name): New.
  9201. (struct linespec_state): Change canonical_names type to it.
  9202. (add_sal_to_sals): Change variable canonical_name to canonical. Change
  9203. xrealloc element size. Initialize the different CANONICAL fields.
  9204. (canonical_to_fullform): New.
  9205. (filter_results): Use it. Add variables canonical, fullform and
  9206. cleanup.
  9207. (struct decode_line_2_item, decode_line_2_compare_items): New.
  9208. (decode_line_2): Remove variables iter and item_names, add variables
  9209. items and items_count. Modify the code for these new variables.
  9210. 2013-03-04 Corinna Vinschen <vinschen@redhat.com>
  9211. * coff-pe-read.c (read_pe_exported_syms): Don't return without
  9212. calling do_cleanup.
  9213. 2013-03-04 Luis Machado <lgustavo@codesourcery.com>
  9214. * tracepoint.c (build_traceframe_info): Add code for byte order.
  9215. 2013-03-02 Kevin Buettner <kevinb@redhat.com>
  9216. * v850-tdep.c: (v850e2_register_name): Revise system register
  9217. names to match current V850E2M architecture specifications.
  9218. Update register number enum comments too.
  9219. 2013-03-01 Jiong Wang <jiwang@tilera.com>
  9220. Pedro Alves <palves@redhat.com>
  9221. * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
  9222. to END_ADDR.
  9223. (tilegx_skip_prologue): Limit prologue analysis to section end.
  9224. 2013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
  9225. * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
  9226. use it.
  9227. 2013-03-01 Pedro Alves <palves@redhat.com>
  9228. Use gdb_byte for bytes from the program being debugged.
  9229. * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
  9230. Change type of local 'buf' to gdb_byte.
  9231. * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
  9232. * bfin-tdep.c (bfin_push_dummy_call): Likewise.
  9233. * cris-tdep.c (cris_sigcontext_addr)
  9234. (cris_sigtramp_frame_unwind_cache): Likewise.
  9235. * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
  9236. (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
  9237. Likewise.
  9238. * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
  9239. * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
  9240. (hppa32_hpux_search_dummy_call_sequence)
  9241. (hppa_hpux_supply_save_state): Likewise.
  9242. * hppa-linux-tdep.c (insns_match_pattern)
  9243. (hppa_linux_find_global_pointer): Likewise.
  9244. * hppa-tdep.c (hppa_in_function_epilogue_p)
  9245. (skip_prologue_hard_way, hppa_frame_cache): Likewise.
  9246. * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
  9247. * i386fbsd-tdep.c (i386fbsd_supply_uthread)
  9248. (i386fbsd_collect_uthread): Likewise.
  9249. * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
  9250. * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
  9251. * ia64-tdep.c (examine_prologue, ia64_frame_cache)
  9252. (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
  9253. (ia64_sigtramp_frame_prev_register, ia64_access_reg)
  9254. (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
  9255. (ia64_libunwind_frame_prev_register)
  9256. (ia64_libunwind_sigtramp_frame_this_id)
  9257. (ia64_find_global_pointer_from_dynamic_section)
  9258. (find_extant_func_descr, find_func_descr, ia64_dummy_id)
  9259. (ia64_unwind_pc): Likewise.
  9260. * iq2000-tdep.c (iq2000_store_return_value): Likewise.
  9261. * m68hc11-tdep.c (m68hc11_push_dummy_call)
  9262. (m68hc11_extract_return_value): Likewise.
  9263. * m68klinux-nat.c (fetch_register, store_register): Likewise.
  9264. * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
  9265. (mep_get_insn, mep_push_dummy_call): Likewise.
  9266. * mips-linux-tdep.c (mips_linux_get_longjmp_target)
  9267. (mips_linux_in_dynsym_stub): Likewise.
  9268. * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
  9269. * ppc-linux-nat.c (fetch_register, store_register): Likewise.
  9270. * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
  9271. to gdb_byte.
  9272. * remote-mips.c (mips_set_register): Likewise.
  9273. * remote-sim.c (gdbsim_fetch_register): Likewise.
  9274. * score-tdep.c (score7_fetch_inst): Change type of parameter
  9275. 'memblock' and local 'buf' to gdb_byte.
  9276. (score7_malloc_and_get_memblock): Change return type to gdb_byte.
  9277. Change type of local 'buf' to gdb_byte. Adjust.
  9278. (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
  9279. to gdb_byte**.
  9280. (score7_analyze_prologue): Change type of 'memblock' and
  9281. 'memblock_ptr' locals to gdb_byte*.
  9282. * sh64-tdep.c (sh64_extract_return_value)
  9283. (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
  9284. * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
  9285. * solib-pa64.c (pa64_solib_create_inferior_hook)
  9286. (pa64_open_symbol_file_object): Remove local 'buf'.
  9287. * solib-som.c (som_solib_create_inferior_hook, link_map_start)
  9288. (som_open_symbol_file_object): Likewise.
  9289. * solib-spu.c (spu_current_sos): Likewise.
  9290. * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
  9291. * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
  9292. (spu_store_registers): Likewise.
  9293. * target.c (debug_print_register): Likewise.
  9294. * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
  9295. * xstormy16-tdep.c (xstormy16_store_return_value)
  9296. (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
  9297. (xstormy16_find_jmp_table_entry): Likewise.
  9298. 2013-03-01 Jiong Wang <jiwang@tilera.com>
  9299. * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
  9300. (tilegx_gdbarch_init): Install it.
  9301. 2013-02-28 Tom Tromey <tromey@redhat.com>
  9302. * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
  9303. PyLong_Check.
  9304. 2013-02-28 Doug Evans <dje@google.com>
  9305. * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
  9306. * python/python.c (gdbpy_find_pc_line): Ditto.
  9307. 2013-02-28 Tom Tromey <tromey@redhat.com>
  9308. * contrib/excheck.py: New file.
  9309. * contrib/exsummary.py: New file.
  9310. * contrib/gcc-with-excheck: New file.
  9311. 2013-02-28 Tom Tromey <tromey@redhat.com>
  9312. * python/python.c (gdbpy_print_stack): Call begin_line and
  9313. fprintf_filtered inside TRY_CATCH.
  9314. 2013-02-28 Tom Tromey <tromey@redhat.com>
  9315. * python/python.c (gdbpy_find_pc_line): Call find_pc_line
  9316. inside TRY_CATCH.
  9317. 2013-02-28 Tom Tromey <tromey@redhat.com>
  9318. * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
  9319. frame_object_to_frame_info inside TRY_CATCH.
  9320. 2013-02-28 Tom Tromey <tromey@redhat.com>
  9321. * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
  9322. TRY_CATCH.
  9323. 2013-02-28 Tom Tromey <tromey@redhat.com>
  9324. * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
  9325. 2013-02-27 Corinna Vinschen <vinschen@redhat.com>
  9326. * windows-nat.c: Throughout, fix format strings and casts of
  9327. printf-like functions to avoid type related warnings on all
  9328. platforms.
  9329. (handle_output_debug_string): Fetch context information address
  9330. from debug string using string_to_core_addr.
  9331. 2013-02-27 Jiong Wang <jiwang@tilera.com>
  9332. * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
  9333. * regformats/reg-tilegx32.dat: New.
  9334. 2013-02-27 Jiong Wang <jiwang@tilera.com>
  9335. * configure.tgt (tilegx-*-linux*): Enable gdbserver.
  9336. 2013-02-27 Jiong Wang <jiwang@tilera.com>
  9337. * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
  9338. 2013-02-27 Yao Qi <yao@codesourcery.com>
  9339. Pedro Alves <palves@redhat.com>
  9340. * tracepoint.c (tfile_trace_find): For tfind
  9341. pc/tp/range/outside, look for the next trace frame instead of
  9342. always starting from frame 0.
  9343. 2013-02-26 Anthony Green <green@moxielogic.com>
  9344. * configure.tgt: Add support for moxie-*-rtems* target.
  9345. 2013-02-25 Pedro Alves <palves@redhat.com>
  9346. * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
  9347. warning text.
  9348. 2013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
  9349. * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
  9350. if $fp is used as the virtual frame pointer.
  9351. 2013-02-23 Alan Modra <amodra@gmail.com>
  9352. * elfread.c (elf_symtab_read): Do not use udata.p here to find
  9353. symbol size.
  9354. * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
  9355. * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
  9356. * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
  9357. * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
  9358. 2013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
  9359. Code cleanup.
  9360. * elfread.c (build_id_bfd_get): Make the return type const.
  9361. (build_id_verify): Make the check parameter const.
  9362. (build_id_to_debug_filename): Make the build_id parameter and variable
  9363. data const.
  9364. (find_separate_debug_file_by_buildid): Make the variable build_id const.
  9365. 2013-02-21 Alan Modra <amodra@gmail.com>
  9366. * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
  9367. 2013-02-20 Siva Chandra Reddy <sivachandra@google.com>
  9368. Add a new method 'disassemble' to gdb.Architecture class.
  9369. * python/py-arch.c (archpy_disassmble): Implementation of the
  9370. new method gdb.Architecture.disassemble.
  9371. (arch_object_methods): Add entry for the new method.
  9372. 2013-02-20 Jiong Wang <jiwang@tilera.com>
  9373. * MAINTAINERS (Write After Approval): Add myself to the list.
  9374. 2013-02-19 Pedro Alves <palves@redhat.com>
  9375. Garbage collect 'struct monitor_ops'::load_routine.
  9376. * monitor.h (struct monitor_ops) <load_routine>: Remove field.
  9377. * monitor.c (monitor_load): No longer call
  9378. current_monitor->load_routine.
  9379. * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
  9380. * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
  9381. * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
  9382. 2013-02-19 Pedro Alves <palves@redhat.com>
  9383. PR gdb/15161
  9384. Harmonize with generic_load.
  9385. * monitor.c: Include "readline/readline.h".
  9386. (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
  9387. instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
  9388. long/strtol for the 'load_offset' local. Error out if no argument
  9389. is given or if too many arguments are given. Tilde expand the
  9390. passed in file name.
  9391. 2013-02-19 Kai Tietz <ktietz@redhat.com>
  9392. PR gdb/15161
  9393. * symfile.c (load_section_data): Change type of load_offset
  9394. to CORE_ADDR.
  9395. (generic_load): User strtoulst instead of strtoul for conversion
  9396. of load_offset.
  9397. 2013-02-19 Jiong Wang <jiwang@tilera.com>
  9398. * tilegx-tdep.c (tilegx_analyze_prologue): add check for
  9399. for return address, "lr" register, saved on stack.
  9400. * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
  9401. after we invoke tilegx_analyze_prologue.
  9402. 2013-02-19 Jiong Wang <jiwang@tilera.com>
  9403. * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
  9404. 2013-02-19 Jiong Wang <jiwang@tilera.com>
  9405. * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
  9406. 2013-02-19 Jiong Wang <jiwang@tilera.com>
  9407. * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
  9408. (tilegx_write_pc): New function.
  9409. (tilegx_cannot_reference_register): Return zero if REGNO
  9410. is TILEGX_FAULTNUM_REGNUM.
  9411. (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
  9412. (tilegx_register_name): Add handling of "faultnum" register.
  9413. * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
  9414. * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
  9415. handling of TILEGX_FAULTNUM_REGNUM.
  9416. * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
  9417. 2013-02-19 Jiong Wang <jiwang@tilera.com>
  9418. * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
  9419. should be aligned to 64bit.
  9420. 2013-02-19 Kai Tietz <ktietz@redhat.com>
  9421. * windows-nat.c (windows_xfer_memory): Fix debug-output
  9422. for LLP64.
  9423. 2013-02-19 Lei Liu <lei.liu2@windriver.com>
  9424. * mips-linux-nat.c (mips64_linux_regsets_store_registers):
  9425. Don't check DSP register number if HAVE_DSP is not set.
  9426. 2013-02-19 Alan Modra <amodra@gmail.com>
  9427. * elfread.c (struct build_id): Delete. Use struct elf_build_id
  9428. throughout file instead.
  9429. (build_id_bfd_get): Update to use new elf_tdata build_id field.
  9430. Don't xmalloc return value.
  9431. (build_id_verify): Similarly. Don't xfree.
  9432. (build_id_to_debug_filename): Update.
  9433. (find_separate_debug_file_by_buildid): Update, don't xfree.
  9434. 2013-02-18 Tom Tromey <tromey@redhat.com>
  9435. PR gdb/15102:
  9436. * dwarf2read.c (read_subrange_type): Use result of
  9437. 'check_typedef'.
  9438. 2013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
  9439. * frame.c: Remove one extra white space after #include
  9440. directive.
  9441. 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
  9442. * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
  9443. 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
  9444. * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
  9445. and dir commands into an if block.
  9446. 2013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
  9447. * python/py-breakpoint (struct pybp_code): Use int instead of
  9448. enum type_code.
  9449. 2013-02-15 Pedro Alves <pedro@codesourcery.com>
  9450. Hafiz Abid Qadeer <abidh@codesourcery.com>
  9451. * NEWS: Mention new field "trace-file".
  9452. * tracepoint.c (trace_status_mi): Output "trace-file" field.
  9453. (tfile_open): Record the trace file's filename in the trace
  9454. status.
  9455. (tfile_files_info): Mention the name of the trace file.
  9456. Check the "filename" field explicitely.
  9457. (trace_status_command): Explicitely check "filename" field.
  9458. (trace_find_command): Ditto.
  9459. (trace_find_pc_command): Ditto.
  9460. (trace_find_tracepoint_command): Ditto.
  9461. (trace_find_line_command): Ditto.
  9462. (trace_find_range_command): Ditto.
  9463. (trace_find_outside_command): Ditto.
  9464. * tracepoint.h (struct trace_status) <from_file>: Rename it
  9465. to "filename" and make it hold the trace file's filename
  9466. instead of a boolean.
  9467. * remote.c (remote_get_trace_status): Initialize "filename"
  9468. field with NULL instead of 0.
  9469. 2013-02-15 Yao Qi <yao@codesourcery.com>
  9470. * remote.c: Fix a typo.
  9471. 2013-02-14 Pierre Muller <muller@sourceware.org>
  9472. * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
  9473. 2013-02-14 Pedro Alves <palves@redhat.com>
  9474. * utils.c (savestring): Don't #undef it. Move function to
  9475. common/common-utils.c.
  9476. * common/common-utils.c: Include gdb_string.h.
  9477. (savestring): Move here from utils.c.
  9478. * common/common-utils.h (savestring): Declare.
  9479. 2013-02-14 Pedro Alves <palves@redhat.com>
  9480. * utils.c (savestring): Rename parameter 'size' to 'len'.
  9481. 2013-02-14 Pedro Alves <palves@redhat.com>
  9482. Yufeng Zhang <yufeng.zhang@arm.com>
  9483. * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
  9484. (aarch64_inferior_data, struct aarch64_inferior_data):
  9485. Delete.
  9486. (struct aarch64_process_info): New.
  9487. (aarch64_process_list): New global.
  9488. (aarch64_find_process_pid, aarch64_add_process)
  9489. (aarch64_process_info_get): New functions.
  9490. (aarch64_inferior_data_get): Delete.
  9491. (aarch64_process_info_get): New function.
  9492. (aarch64_forget_process): New function.
  9493. (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
  9494. (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
  9495. aarch64_get_debug_reg_state.
  9496. (aarch64_notify_debug_reg_change): Use iterate_over_lwps
  9497. instead of linux_nat_iterate_watchpoint_lwps.
  9498. (aarch64_linux_new_fork): New function.
  9499. (aarch64_linux_child_post_startup_inferior): Use
  9500. aarch64_forget_process instead of aarch64_init_debug_reg_state.
  9501. (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
  9502. (aarch64_linux_remove_hw_breakpoint)
  9503. (aarch64_handle_aligned_watchpoint)
  9504. (aarch64_handle_unaligned_watchpoint)
  9505. (aarch64_linux_insert_watchpoint)
  9506. (aarch64_linux_remove_watchpoint)
  9507. (aarch64_linux_stopped_data_address): Adjust to pass the current
  9508. process id to aarch64_debug_reg_state.
  9509. (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
  9510. linux_nat_new_fork hook, and aarch64_forget_process as
  9511. linux_nat_forget_process hook; remove the call to
  9512. register_inferior_data_with_cleanup.
  9513. 2013-02-14 Pedro Alves <palves@redhat.com>
  9514. * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
  9515. EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
  9516. lval_memory.
  9517. 2013-02-14 Pedro Alves <pedro@codesourcery.com>
  9518. Hafiz Abid Qadeer <abidh@codesourcery.com>
  9519. * tracepoint.h (validate_trace_state_variable_name): Declare.
  9520. * tracepoint.c (validate_trace_state_variable_name): New.
  9521. (trace_variable_command): Parse the trace state variable's name
  9522. without using parse_expression. Do several validations.
  9523. * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
  9524. trace state variable's name with parse_expression. Validate it.
  9525. 2013-02-14 Yao Qi <yao@codesourcery.com>
  9526. * infcmd.c (breakpoint_proceeded): Remove it.
  9527. 2013-02-14 Yao Qi <yao@codesourcery.com>
  9528. * tracepoint.c (end_actions_pseudocommand): Make it static.
  9529. (while_stepping_pseudocommand): Likewise.
  9530. * tracepoint.h (end_actions_pseudocommand): Remove the
  9531. declaration.
  9532. (while_stepping_pseudocommand): Likewise.
  9533. 2013-02-14 Yao Qi <yao@codesourcery.com>
  9534. * cli/cli-decode.c (help_cmd): Remove the declaration of
  9535. "cmdlist".
  9536. (help_all): Likewise.
  9537. 2013-02-13 Pedro Alves <palves@redhat.com>
  9538. * amd64-linux-nat.c (update_debug_registers_callback):
  9539. Update comment.
  9540. (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
  9541. iterate_over_lwps.
  9542. (amd64_linux_prepare_to_resume): Pass the lwp's pid to
  9543. i386_debug_reg_state.
  9544. (amd64_linux_new_fork): New function.
  9545. (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
  9546. linux_nat_new_fork hook, and i386_forget_process as
  9547. linux_nat_forget_process hook.
  9548. * i386-linux-nat.c (update_debug_registers_callback):
  9549. Update comment.
  9550. (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
  9551. iterate_over_lwps.
  9552. (i386_linux_prepare_to_resume): Pass the lwp's pid to
  9553. i386_debug_reg_state.
  9554. (i386_linux_new_fork): New function.
  9555. (_initialize_i386_linux_nat): Install i386_linux_new_fork as
  9556. linux_nat_new_fork hook, and i386_forget_process as
  9557. linux_nat_forget_process hook.
  9558. * i386-nat.c (i386_init_dregs): Delete.
  9559. (i386_inferior_data, struct i386_inferior_data):
  9560. Delete.
  9561. (struct i386_process_info): New.
  9562. (i386_process_list): New global.
  9563. (i386_find_process_pid, i386_add_process, i386_process_info_get):
  9564. New functions.
  9565. (i386_inferior_data_get): Delete.
  9566. (i386_process_info_get): New function.
  9567. (i386_debug_reg_state): New parameter 'pid'. Reimplement.
  9568. (i386_forget_process): New function.
  9569. (i386_cleanup_dregs): Rewrite.
  9570. (i386_update_inferior_debug_regs, i386_insert_watchpoint)
  9571. (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
  9572. (i386_stopped_data_address, i386_insert_hw_breakpoint)
  9573. (i386_remove_hw_breakpoint): Adjust to pass the current process id
  9574. to i386_debug_reg_state.
  9575. (i386_use_watchpoints): Don't register inferior data.
  9576. * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
  9577. adjust comment.
  9578. (i386_forget_process): Declare.
  9579. * linux-fork.c (delete_fork): Call linux_nat_forget_process.
  9580. * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
  9581. New static globals.
  9582. (linux_child_follow_fork): Don't call linux_nat_new_thread here.
  9583. (add_initial_lwp): New, factored out from ...
  9584. (add_lwp): ... this. Don't check the number of lwps before
  9585. calling linux_nat_new_thread.
  9586. (linux_nat_iterate_watchpoint_lwps): Delete.
  9587. (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
  9588. (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
  9589. forks and vforks.
  9590. (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
  9591. initial lwp.
  9592. (linux_nat_kill, linux_nat_mourn_inferior): Call
  9593. linux_nat_forget_process.
  9594. (linux_nat_set_new_fork, linux_nat_set_forget_process)
  9595. (linux_nat_forget_process): New functions.
  9596. * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
  9597. type.
  9598. (linux_nat_iterate_watchpoint_lwps): Delete declaration.
  9599. (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
  9600. types.
  9601. (linux_nat_set_new_fork, linux_nat_set_forget_process)
  9602. (linux_nat_forget_process): New declarations.
  9603. * amd64fbsd-nat.c (super_mourn_inferior): New global.
  9604. (amd64fbsd_mourn_inferior): New function.
  9605. (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
  9606. * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
  9607. 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
  9608. * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
  9609. Adding _().
  9610. 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
  9611. * aarch64-linux-nat.c (debug_reg_change_callback)
  9612. (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
  9613. %s and phex().
  9614. 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
  9615. * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
  9616. with LONGEST.
  9617. 2013-02-13 Pedro Alves <palves@redhat.com>
  9618. Hafiz Abid Qadeer <abidh@codesourcery.com>
  9619. * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
  9620. 2013-02-12 Tom Tromey <tromey@redhat.com>
  9621. PR symtab/11464:
  9622. * c-exp.y (lex_one_token): Initialize other fields of yylval on
  9623. NAME return.
  9624. (classify_inner_name): Remove 'first_name' argument, add
  9625. 'context'. Remove unused variable.
  9626. (yylex): Explicitly maintain the context type. Exit loop earlier
  9627. if NAME result is seen.
  9628. 2013-02-12 Pedro Alves <palves@redhat.com>
  9629. * amd64-darwin-tdep.c: Add (C) after Copyright.
  9630. * cli/cli-cmds.h: Ditto.
  9631. * cli/cli-decode.c: Ditto.
  9632. * cli/cli-decode.h: Ditto.
  9633. * cli/cli-dump.c: Ditto.
  9634. * cli/cli-dump.h: Ditto.
  9635. * cli/cli-interp.c: Ditto.
  9636. * cli/cli-logging.c: Ditto.
  9637. * cli/cli-script.c: Ditto.
  9638. * cli/cli-script.h: Ditto.
  9639. * cli/cli-setshow.c: Ditto.
  9640. * cli/cli-setshow.h: Ditto.
  9641. * cli/cli-utils.c: Ditto.
  9642. * cli/cli-utils.h: Ditto.
  9643. * config/alpha/nm-osf3.h: Ditto.
  9644. * config/djgpp/djconfig.sh: Ditto.
  9645. * config/i386/nm-fbsd.h: Ditto.
  9646. * config/i386/nm-i386gnu.h: Ditto.
  9647. * config/nm-linux.h: Ditto.
  9648. * config/nm-nto.h: Ditto.
  9649. * config/rs6000/nm-rs6000.h: Ditto.
  9650. * config/sparc/nm-sol2.h: Ditto.
  9651. * darwin-nat-info.c: Ditto.
  9652. * dfp.c: Ditto.
  9653. * dfp.h: Ditto.
  9654. * gdb-demangle.h: Ditto.
  9655. * i386-darwin-nat.c: Ditto.
  9656. * i386-darwin-tdep.c: Ditto.
  9657. * linux-fork.h: Ditto.
  9658. * m32c-tdep.c: Ditto.
  9659. * microblaze-linux-tdep.c: Ditto.
  9660. * microblaze-rom.c: Ditto.
  9661. * microblaze-tdep.c: Ditto.
  9662. * microblaze-tdep.h: Ditto.
  9663. * mips-linux-tdep.h: Ditto.
  9664. * ppc-ravenscar-thread.c: Ditto.
  9665. * ppc-ravenscar-thread.h: Ditto.
  9666. * prologue-value.c: Ditto.
  9667. * prologue-value.h: Ditto.
  9668. * ravenscar-thread.c: Ditto.
  9669. * ravenscar-thread.h: Ditto.
  9670. * sparc-ravenscar-thread.c: Ditto.
  9671. * sparc-ravenscar-thread.h: Ditto.
  9672. * tilegx-linux-tdep.c: Ditto.
  9673. * unwind_stop_reasons.def: Ditto.
  9674. * windows-nat.h: Ditto.
  9675. * xtensa-linux-tdep.c: Ditto.
  9676. * xtensa-xtregs.c: Ditto.
  9677. * regformats/regdat.sh: Ditto.
  9678. * regformats/regdef.h: Ditto.
  9679. 2013-02-12 Pedro Alves <palves@redhat.com>
  9680. * break-catch-sig.c: Update copyright years.
  9681. 2013-02-11 Siva Chandra Reddy <sivachandra@google.com>
  9682. Add support for a destructor for ui_out data and use it to
  9683. provide a ui_out destructor.
  9684. * ui-out.h: Declare the new ui_out destructor.
  9685. (ui_out_impl): Add a field for data destructor in ui_out_impl.
  9686. * ui-out.c (default_data_destroy): Add a default data destructor
  9687. which does nothing.
  9688. (default_ui_out_impl): Set the new data_destroy field to
  9689. default_data_destroy
  9690. (uo_data_destroy): Local function which invokes the data
  9691. destructor if present.
  9692. (clear_table): Local function which clears the table data of a
  9693. ui_out object.
  9694. (ui_out_destroy): Public function which frees a ui_out object.
  9695. (ui_out_table_end): Use the new clear_table function.
  9696. * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
  9697. NULL.
  9698. * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
  9699. to NULL.
  9700. 2013-02-11 Doug Evans <dje@google.com>
  9701. * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
  9702. (printf_decfloat): New function. Broken out from ui_printf.
  9703. Remove unnecessary code to shift the entire format string down.
  9704. (printf_pointer): New function.
  9705. (ui_printf): Code to print C strings, wide C strings, decfloats,
  9706. and pointers moved to separate functions.
  9707. 2013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
  9708. * valops.c (value_assign): Handling bitfield offset in
  9709. `lval_internalvar_component' case.
  9710. 2013-02-08 Doug Evans <dje@google.com>
  9711. * common/format.c (parse_format_string): Fix whitespace.
  9712. 2013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
  9713. * stack.c (return_command): Work around uninitialized variable
  9714. warning.
  9715. 2013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
  9716. * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
  9717. number of the registers from 36 to 34.
  9718. 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
  9719. * NEWS: Mention new AArch64 native and target support.
  9720. 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
  9721. * MAINTAINERS (Write After Approval): Add myself.
  9722. 2013-02-08 Jim MacArthur <jim.macarthur@arm.com>
  9723. Marcus Shawcroft <marcus.shawcroft@arm.com>
  9724. Nigel Stephens <nigel.stephens@arm.com>
  9725. Yufeng Zhang <yufeng.zhang@arm.com>
  9726. * aarch64-linux-nat.c: New file.
  9727. * config/aarch64/linux.mh: New file.
  9728. * configure.host: Add AArch64.
  9729. * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
  9730. 2013-02-07 Doug Evans <dje@google.com>
  9731. * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
  9732. disassemble command.
  9733. 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
  9734. * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
  9735. set_gdbarch_fetch_tls_load_module_address.
  9736. 2013-02-06 David S. Miller <davem@davemloft.net>
  9737. * sparc-tdep.c (sparc32_return_value): Handle writing return value when
  9738. using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
  9739. * value.c (struct_return_convention): New function.
  9740. (using_struct_return): Implement in terms of struct_return_convention.
  9741. * value.h (struct_return_convention): Declare.
  9742. * stack.c (return_command): Allow successful overriding of the return
  9743. value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
  9744. 2013-02-06 Tom Tromey <tromey@redhat.com>
  9745. * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
  9746. outside of TRY_CATCH.
  9747. 2013-02-06 Yao Qi <yao@codesourcery.com>
  9748. * mi/mi-interp.c: Include "tracepoint.h".
  9749. (mi_tsv_modified): Declare.
  9750. (mi_tsv_created, mi_tsv_deleted): Update declaration.
  9751. (mi_interpreter_init): Call observer_attach_tsv_modified.
  9752. (mi_tsv_modified): New.
  9753. (mi_tsv_created, mi_tsv_deleted): Update.
  9754. * tracepoint.c (trace_variable_command): Call
  9755. observer_notify_tsv_modified if the initial value of tsv is
  9756. changed.
  9757. (delete_trace_state_variable): Call
  9758. observer_notify_tsv_deleted earlier.
  9759. (trace_variable_command): Caller update.
  9760. (create_tsv_from_upload): Likewise.
  9761. * observer.sh: Declare "struct trace_state_variable".
  9762. * NEWS: Mention the new MI notification "=tsv-modified".
  9763. 2013-02-05 Doug Evans <dje@google.com>
  9764. * completer.c (location_completer): Fix typo in comment.
  9765. 2013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
  9766. * breakpoint.c (add_location_to_breakpoint): Insert the location with
  9767. ADDRESS sorted.
  9768. 2013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
  9769. * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
  9770. Refactor if statement to avoid trailing || operator.
  9771. 2013-02-05 Andreas Tobler <andreast@fgznet.ch>
  9772. * NEWS: Add PowerPC FreeBSD as a new native configuration.
  9773. 2013-02-04 Andreas Tobler <andreast@fgznet.ch>
  9774. * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
  9775. * configure.host: Add powerpc*-*-freebsd* target.
  9776. * configure.tgt: Add target info for powerpc*-*-freebsd*.
  9777. * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
  9778. * config/powerpc/fbsd.mh: New file.
  9779. 2013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
  9780. Denys Vlasenko <dvlasenk@redhat.com>
  9781. Pedro Alves <palves@redhat.com>
  9782. * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
  9783. (struct elf_internal_linux_prpsinfo): Forward declare.
  9784. * gdbarch.h, gdbarch.c: Regenerate.
  9785. * linux-tdep.c: Include `cli/cli-utils.h'.
  9786. (linux_fill_prpsinfo): New function.
  9787. (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
  9788. an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
  9789. elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
  9790. depending on gdbarch pointer bitness.
  9791. * ppc-linux-tdep.c: Include elf-bfd.h.
  9792. (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
  9793. on 32-bit.
  9794. 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
  9795. Marcus Shawcroft <marcus.shawcroft@arm.com>
  9796. Nigel Stephens <nigel.stephens@arm.com>
  9797. Yufeng Zhang <yufeng.zhang@arm.com>
  9798. * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
  9799. 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
  9800. Marcus Shawcroft <marcus.shawcroft@arm.com>
  9801. Nigel Stephens <nigel.stephens@arm.com>
  9802. Yufeng Zhang <yufeng.zhang@arm.com>
  9803. * aarch64-newlib-tdep.c: New file.
  9804. * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
  9805. aarch64*-*-elf.
  9806. * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
  9807. * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
  9808. (ALLDEPFILES): Add aarch64-newlib-tdep.c.
  9809. * osabi.c (gdb_osabi_names): Add "Newlib".
  9810. 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
  9811. Marcus Shawcroft <marcus.shawcroft@arm.com>
  9812. Nigel Stephens <nigel.stephens@arm.com>
  9813. Yufeng Zhang <yufeng.zhang@arm.com>
  9814. * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
  9815. (ALLDEPFILES): Add aarch64-linux-tdep.c.
  9816. * aarch64-linux-tdep.c: New file.
  9817. * aarch64-linux-tdep.h: New file.
  9818. * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
  9819. * configure.tgt: Add aarch64-none-linux-gnu.
  9820. 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
  9821. Marcus Shawcroft <marcus.shawcroft@arm.com>
  9822. Nigel Stephens <nigel.stephens@arm.com>
  9823. Yufeng Zhang <yufeng.zhang@arm.com>
  9824. * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
  9825. (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
  9826. (ALLDEPFILES): Add aarch64-tdep.c.
  9827. * aarch64-tdep.c: New file.
  9828. * aarch64-tdep.h: New file.
  9829. * configure.tgt: Add AArch64.
  9830. * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
  9831. (aarch64-expedite): New definition.
  9832. * features/aarch64-core.xml: New file.
  9833. * features/aarch64-fpu.xml: New file.
  9834. * features/aarch64-without-fpu.c: New file (generated).
  9835. * features/aarch64-without-fpu.xml: New file.
  9836. * features/aarch64.c: New file (generated).
  9837. * features/aarch64.xml: New file.
  9838. * regformats/aarch64-without-fpu.dat: New file (generated).
  9839. * regformats/aarch64.dat: New file (generated).
  9840. 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
  9841. * contrib/expect-read1.c: New file.
  9842. * contrib/expect-read1.sh: New file.
  9843. 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
  9844. * dwarf2read.c (file_file_name): New function with code from
  9845. file_full_name.
  9846. (file_full_name): Move most of the code to file_file_name.
  9847. (macro_start_file): Rename variable full_name to file_name and use
  9848. file_file_name for it. Add comp_dir parameter to new_macro_table.
  9849. * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
  9850. macro_source_file->filename access by macro_source_fullname call.
  9851. * macroscope.c (_initialize_macroscope): Update the new_macro_table
  9852. caller.
  9853. * macrotab.c (struct macro_table): New field comp_dir.
  9854. (macro_include): New variables link_fullname and source_fullname.
  9855. Replace any macro_source_file->filename access by macro_source_fullname
  9856. call.
  9857. (macro_lookup_inclusion): Remove the partial filenames checking code.
  9858. (check_for_redefinition): New variables source_fullname and
  9859. found_key_fullname. Replace any macro_source_file->filename access by
  9860. macro_source_fullname call.
  9861. (macro_undef): New variables source_fullname and key_fullname. Replace
  9862. any macro_source_file->filename access by macro_source_fullname call.
  9863. (macro_lookup_definition): New variables retval and source_fullname.
  9864. Replace any macro_source_file->filename access by macro_source_fullname
  9865. call.
  9866. (foreach_macro): New variable key_fullname. Replace any
  9867. macro_source_file->filename access by macro_source_fullname call.
  9868. (foreach_macro_in_scope): New variable datum_fullname. Replace any
  9869. macro_source_file->filename access by macro_source_fullname call.
  9870. (new_macro_table): Add parameter comp_dir. Initialize T with it.
  9871. (macro_source_fullname): New function.
  9872. * macrotab.h (struct macro_source_file): Extent the filename field
  9873. comment.
  9874. (new_macro_table): New parameter comp_dir, add a comment for it.
  9875. (macro_source_fullname): new declaration.
  9876. 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
  9877. * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
  9878. this_real_name to outer block. Use it also for
  9879. compare_filenames_for_search.
  9880. (dw2_expand_symtabs_matching): New variable this_real_name. Use it
  9881. with dw2_get_real_path for file_matcher, considering also
  9882. BASENAMES_MAY_DIFFER.
  9883. (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
  9884. 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
  9885. * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
  9886. to the file_matcher parameter. Pass 0 to it.
  9887. (dwarf2_create_include_psymtab): Copy also DIRNAME.
  9888. * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
  9889. NULL psymtab_to_fullname result.
  9890. (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
  9891. an expected filename instead.
  9892. (expand_symtabs_matching_via_partial): Add basenames parameter to the
  9893. file_matcher parameter. Call also psymtab_to_fullname, after newly
  9894. considering BASENAMES_MAY_DIFFER.
  9895. * source.c (rewrite_source_path): Remove static.
  9896. * source.h (rewrite_source_path): New declaration.
  9897. * symfile.h (struct quick_symbol_functions): Add basenames parameter to
  9898. the expand_symtabs_matching field. Comment it.
  9899. * symtab.c (file_matches): New function comment. Add parameter
  9900. basenames, implement it.
  9901. (search_symbols_file_matches): Add basenames parameter. Update the
  9902. file_matches caller.
  9903. (search_symbols): Match FILES also against symtab_to_fullname.
  9904. Optimize it for BASENAMES_MAY_DIFFER.
  9905. 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
  9906. * source.c (print_source_lines_base): Print for TUI also "fullname".
  9907. * tui/tui-data.c (init_content_element): Change tui_locator_element
  9908. field to full_name.
  9909. * tui/tui-data.h (struct tui_locator_element): Likewise.
  9910. * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
  9911. tui_update_locator_filename calls to tui_update_locator_fullname.
  9912. Replace symtab->filename refererence by symtab_to_fullname call.
  9913. * tui/tui-out.c (tui_field_string): Check for "fullname" now.
  9914. * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
  9915. field to full_name. Replace symtab->filename refererence by
  9916. symtab_to_fullname call.
  9917. (tui_show_symtab_source): Rename parameter to fullname. Change
  9918. tui_locator_element field to full_name.
  9919. * tui/tui-stack.c: Include source.h.
  9920. (tui_set_locator_filename): Rename the declaration to ...
  9921. (tui_set_locator_fullname): ... here. Rename its parameter to
  9922. fullname, updates its comment.
  9923. (tui_set_locator_info): Rename its parameter to fullname.
  9924. (tui_set_locator_filename): Rename the definition to ...
  9925. (tui_set_locator_fullname): ... here. Rename its parameter to
  9926. fullname, updates its comment. Change tui_locator_element field to
  9927. full_name.
  9928. (tui_set_locator_info): Rename its parameter to fullname.
  9929. (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
  9930. (tui_update_locator_filename): Rename to ...
  9931. (tui_update_locator_fullname): ... here. Rename callee to
  9932. tui_set_locator_fullname.
  9933. (tui_show_frame_info): Replace symtab->filename refererence by
  9934. symtab_to_fullname call.
  9935. * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
  9936. (tui_update_locator_fullname): ... here.
  9937. * tui/tui-winsource.c (tui_display_main): Rename the callee to
  9938. tui_update_locator_fullname. Replace symtab->filename refererence by
  9939. symtab_to_fullname call.
  9940. * tui/tui.c (tui_show_source): Rename its parameter to fullname.
  9941. Rename the callee to tui_update_locator_fullname.
  9942. * tui/tui.h (tui_show_source): Rename its parameter to fullname.
  9943. 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
  9944. * ada-lang.c (user_select_syms): Replace symtab->filename refererences
  9945. by symtab_to_filename_for_display calls.
  9946. * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
  9947. (clear_command): New variable sal_fullname, initialize it. Replace
  9948. compare_filenames_for_search by filename_cmp with sal_fullname.
  9949. (say_where, update_static_tracepoint): Replace symtab->filename
  9950. refererences by symtab_to_filename_for_display calls.
  9951. * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
  9952. Likewise.
  9953. * dwarf2read.c: Include source.h.
  9954. (fixup_go_packaging): Replace symtab->filename refererences by
  9955. symtab_to_filename_for_display calls.
  9956. * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
  9957. Replace symtab->filename refererences by symtab_to_filename_for_display
  9958. calls.
  9959. (create_sals_line_offset, convert_linespec_to_sals): New variable
  9960. fullname, initialize it, replace symtab->filename reference by the
  9961. variable.
  9962. * linux-fork.c: Include source.h.
  9963. (info_checkpoints_command): Replace symtab->filename refererences by
  9964. symtab_to_filename_for_display calls.
  9965. * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
  9966. by symtab_to_filename_for_display calls.
  9967. * mdebugread.c: Include source.h.
  9968. (psymtab_to_symtab_1): Replace symtab->filename refererences by
  9969. symtab_to_filename_for_display calls.
  9970. * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
  9971. (mi_cmd_file_list_exec_source_files): Likewise.
  9972. * printcmd.c: Include source.h.
  9973. (build_address_symbolic): Replace symtab->filename refererences by
  9974. symtab_to_filename_for_display calls.
  9975. * psymtab.c (partial_map_symtabs_matching_filename)
  9976. (read_psymtabs_with_fullname): Call compare_filenames_for_search also
  9977. with psymtab_to_fullname.
  9978. * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
  9979. by symtab_to_filename_for_display calls.
  9980. (stpy_get_filename): New variable filename, initialize it, use instead
  9981. of symtab->filename refererences.
  9982. (salpy_str): Make variable filename const char *. Replace
  9983. symtab->filename refererences by symtab_to_filename_for_display calls.
  9984. * skip.c: Include source.h and filenames.h.
  9985. (skip_file_command): Remove const from the symtab variable. Replace
  9986. symtab->filename refererences by symtab_to_fullname call.
  9987. (function_name_is_marked_for_skip): New variables searched_for_fullname
  9988. and fullname. Use them to search also with symtab's fullname.
  9989. * source.c (find_source_lines): Replace symtab->filename refererences
  9990. by symtab_to_filename_for_display calls.
  9991. (print_source_lines_base): New variable filename, use it instead of
  9992. symtab->filename. Replace symtab->filename refererences by
  9993. symtab_to_filename_for_display calls.
  9994. (line_info, forward_search_command): Replace symtab->filename
  9995. refererences by symtab_to_filename_for_display calls.
  9996. (reverse_search_command): Replace symtab->filename refererences by
  9997. symtab_to_filename_for_display calls. New variable filename for it.
  9998. * stack.c (frame_info): Likewise.
  9999. * symmisc.c: Include source.h.
  10000. (dump_objfile, dump_symtab_1, maintenance_print_symbols)
  10001. (maintenance_info_symtabs): Replace symtab->filename refererences by
  10002. symtab_to_filename_for_display calls.
  10003. * symtab.c (iterate_over_some_symtabs): Call
  10004. compare_filenames_for_search also with symtab_to_fullname.
  10005. (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
  10006. symtab->filename refererences by symtab_to_filename_for_display calls.
  10007. (find_line_symtab): Replace symtab->filename refererences by
  10008. symtab_to_filename_for_display calls.
  10009. (file_matches): Replace filename_cmp by compare_filenames_for_search.
  10010. (print_symbol_info): Make the last parameter const char *. New
  10011. variable s_filename. Use it in the function.
  10012. (symtab_symbol_info): Make the last_filename variable const char *.
  10013. Replace symtab->filename refererences by symtab_to_filename_for_display
  10014. calls.
  10015. (rbreak_command): New variable fullname. Use it. Replace
  10016. symtab->filename refererence by symtab_to_filename_for_display call.
  10017. * tracepoint.c (set_traceframe_context, trace_find_line_command)
  10018. (print_one_static_tracepoint_marker): Replace symtab->filename
  10019. refererences by symtab_to_filename_for_display calls.
  10020. * tui/tui-source.c (tui_set_source_content): New variables filename and
  10021. s_filename. Replace symtab->filename refererences by this variable.
  10022. Replace other symtab->filename refererences by
  10023. symtab_to_filename_for_display calls.
  10024. 2013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
  10025. Jan Kratochvil <jan.kratochvil@redhat.com>
  10026. Add a new variable that controls a way in which filenames are
  10027. displayed.
  10028. * NEWS (set filename-display): New entry.
  10029. * source.c (filename_display_basename, filename_display_relative)
  10030. (filename_display_absolute, filename_display_kind_names)
  10031. (filename_display_string, show_filename_display_string)
  10032. (symtab_to_filename_for_display): New.
  10033. (_initialize_source): Added initialization of 'filename-display'
  10034. variable.
  10035. * source.h (symtab_to_filename_for_display): Added declaration.
  10036. * stack.c (print_frame): Added new variable and calling of a new
  10037. function and condition with this variable. Changed third argument of
  10038. calling of a function.
  10039. 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
  10040. * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
  10041. Rename field reference filename to fullname.
  10042. * tui/tui-data.h (struct tui_source_info): Rename field filename to
  10043. fullname. New comment for it.
  10044. * tui/tui-source.c (tui_set_source_content): Rename field reference
  10045. filename to fullname. Initialize field by symtab_to_fullname now.
  10046. * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
  10047. reference filename to fullname. Use symtab_to_fullname during
  10048. comparison.
  10049. 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
  10050. Code cleanup.
  10051. * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
  10052. (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
  10053. filename to fullname. Rename variable this_name to this_fullname.
  10054. Lowercase FILENAME_CMP call.
  10055. (dw2_find_symbol_file): New comment for the returned string.
  10056. (dwarf2_gdb_index_functions): Rename the function to
  10057. dw2_expand_symtabs_with_fullname.
  10058. * psymtab.c (read_psymtabs_with_filename): Rename to ...
  10059. (read_psymtabs_with_fullname): ... here. Rename parameter filename to
  10060. fullname.
  10061. (psym_functions): Rename the function to read_psymtabs_with_fullname.
  10062. * symfile.h (struct quick_symbol_functions): Rename field
  10063. expand_symtabs_with_filename to expand_symtabs_with_fullname and its
  10064. parameter filename to fullname. Document returned string meaning for
  10065. find_symbol_file.
  10066. * symtab.c (find_line_symtab): Rename the called function to
  10067. expand_symtabs_with_fullname.
  10068. 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
  10069. Code cleanup.
  10070. * breakpoint.c (clear_command): Remove variable is_abs, unify the
  10071. call of filename_cmp with compare_filenames_for_search.
  10072. * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
  10073. is_abs, unify the call of FILENAME_CMP with
  10074. compare_filenames_for_search. New gdb_asserts for real_path and name.
  10075. Unify the call of compare_filenames_for_search with FILENAME_CMP.
  10076. * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
  10077. * symfile.h (struct quick_symbol_functions): Extend the comment for
  10078. map_symtabs_matching_filename.
  10079. * symtab.c (compare_filenames_for_search): Remove the function comment
  10080. relative path requirement. Handle absolute filenames, with a comment.
  10081. (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
  10082. FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
  10083. real_path and name. Unify the call of compare_filenames_for_search
  10084. with FILENAME_CMP.
  10085. (iterate_over_symtabs): New gdb_assert on REAL_PATH.
  10086. 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
  10087. Code cleanup.
  10088. * breakpoint.c (print_breakpoint_location): Replace bp_location field
  10089. source_file references by symtab field references. Remove variables
  10090. sal and fullname.
  10091. (momentary_breakpoint_from_master, add_location_to_breakpoint):
  10092. (clear_command, say_where): Replace bp_location field source_file
  10093. references by symtab field references.
  10094. (bp_location_dtor): Remove the source_file reference.
  10095. (update_static_tracepoint): Replace bp_location field source_file
  10096. references by symtab field references.
  10097. (breakpoint_free_objfile): New function.
  10098. * breakpoint.h (struct bp_location): Extend the comment for line_number.
  10099. Replace the field source_file by field symtab, extend its comment.
  10100. (breakpoint_free_objfile): New declaration.
  10101. * objfiles.c (free_objfile): Call breakpoint_free_objfile.
  10102. * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
  10103. field source_file references by symtab field references.
  10104. 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
  10105. Replace xfullpath calls by gdb_realpath calls.
  10106. * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
  10107. function comment.
  10108. * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
  10109. Remove it from the iterate_over_some_symtabs call.
  10110. (dw2_map_symtabs_matching_filename): Remove parameter full_path.
  10111. Remove it from the dw2_map_expand_apply calls, remove a block handling
  10112. it.
  10113. * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
  10114. Remove it from the iterate_over_some_symtabs call.
  10115. (partial_map_symtabs_matching_filename): Remove parameter full_path.
  10116. Remove it from the partial_map_expand_apply calls, remove a block
  10117. handling it. Drop gdb_realpath call and cleanups from the real_path
  10118. handling.
  10119. * source.c (openp): Drop the comment part about xfullpath. Replace
  10120. xfullpath calls by gdb_realpath calls.
  10121. (find_and_open_source): Replace xfullpath call by gdb_realpath call.
  10122. * symfile.h (struct quick_symbol_functions): Remove parameter full_path
  10123. from method map_symtabs_matching_filename and its comment.
  10124. * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
  10125. gdb_realpath call.
  10126. * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
  10127. remove it also from the function comment, remove a block handling it.
  10128. Drop gdb_realpath call and cleanups from the real_path handling.
  10129. (iterate_over_symtabs): Drop variable full_path and its use.
  10130. * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
  10131. * utils.c (xfullpath): Remove.
  10132. * utils.h (xfullpath): Remove.
  10133. 2013-02-01 Andreas Tobler <andreast@fgznet.ch>
  10134. * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
  10135. (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
  10136. (ALLDEPFILES): Add ppc64-tdep.c.
  10137. * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
  10138. ppc64-tdep.o to gdb_target_obs.
  10139. * ppc64-tdep.h: New file.
  10140. * ppc64-tdep.c: New file.
  10141. (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
  10142. ppc-linux-tdep.c to here.
  10143. (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
  10144. (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
  10145. (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
  10146. (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
  10147. from ppc-linux-tdep.c to here.
  10148. (ppc64_convert_from_func_ptr_addr): Rename from
  10149. ppc64_linux_convert_from_func_ptr_addr to
  10150. ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
  10151. here.
  10152. * rs6000-tdep.c:
  10153. (read_insn): Move from ppc-linux-tdep.c to here.
  10154. (insns_match_pattern, insn_d_field, insn_ds_field): Move
  10155. from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
  10156. * ppc-linux-tdep.c: Include ppc64-tdep.h.
  10157. Removed above functions.
  10158. (ppc_linux_init_abi): Adjust.
  10159. 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
  10160. * ada-valprint.c (ada_print_floating): Remove unused 'len'.
  10161. 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
  10162. * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
  10163. 2013-02-01 Pedro Alves <palves@redhat.com>
  10164. * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
  10165. * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
  10166. 2013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
  10167. * elfread.c (elf_symfile_read): Limit separate debug info additions to
  10168. files with no separate debug info.
  10169. * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
  10170. * symfile.c (read_symbols): Call find_separate_debug_file_in_section
  10171. only for files with no separate debug info.
  10172. 2013-01-31 Tom Tromey <tromey@redhat.com>
  10173. * jit.c (jit_program_space_data): Rename from jit_inferior_data;
  10174. change type.
  10175. (struct jit_program_space_data): Rename from jit_inferior_data.
  10176. Update comments.
  10177. (get_jit_program_space_data): Rename from get_jit_inferior_data.
  10178. Change return type. Attach data to program space.
  10179. (jit_program_space_data_cleanup): Rename from
  10180. jit_inferior_data_cleanup; change argument type.
  10181. (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
  10182. change type.
  10183. (jit_register_code): Update.
  10184. (jit_update_inferior_cache): Remove.
  10185. (jit_breakpoint_deleted): Get jit data from the location's program
  10186. space.
  10187. (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
  10188. 'ps_data', change type.
  10189. (jit_inferior_init, jit_breakpoint_re_set_internal)
  10190. (jit_event_handler): Update.
  10191. (free_objfile_data): Get data from objfile's program space.
  10192. (_initialize_jit): Update.
  10193. 2013-01-31 Tom Tromey <tromey@redhat.com>
  10194. PR gdb/13987:
  10195. * jit.c (struct jit_inferior_data) <cached_code_address,
  10196. jit_breakpoint>: New fields.
  10197. (jit_breakpoint_re_set_internal): Fix logging. Only create
  10198. breakpoint if cached address has changed.
  10199. (jit_update_inferior_cache, jit_breakpoint_deleted): New
  10200. functions.
  10201. (_initialize_jit): Register breakpoint deleted observer.
  10202. 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
  10203. * infrun.c (handle_syscall_event): Remove unused gdbarch.
  10204. (save_infcall_suspend_state): Ifdef out unused inf.
  10205. (restore_infcall_suspend_state): Ifdef out unused inf.
  10206. * jit.c (jit_register_code): Remove unused i, b, inf_data.
  10207. (jit_frame_sniffer): Remove unused inf_data.
  10208. 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
  10209. * c-exp.y (classify_inner_name): Remove unused type.
  10210. * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
  10211. in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
  10212. need_escape.
  10213. (c_get_string): Remove unused kind.
  10214. * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
  10215. 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
  10216. * charset.c (intermediate_encoding): Remove unused i.
  10217. * completer.c (signal_completer): Remove unused i.
  10218. * continuations.c (discard_my_continuations_1): Remove unused
  10219. continuation_ptr.
  10220. * corelow.c (core_close): Remove unuseD name.
  10221. (get_core_siginfo): Remove unused pid.
  10222. * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
  10223. i, cps.
  10224. * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
  10225. (loclist_describe_location): Remove unused first.
  10226. * event-top.c (command_line_handler): Remove unused got_eof.
  10227. * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
  10228. (resize_section_table): Remove unused old_value.
  10229. * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
  10230. * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
  10231. * i386-tdep.c (i386_process_record): Remove unused rex.
  10232. * infcmd.c (get_return_value): Remove unused uiout.
  10233. * jv-lang.c (type_from_class): Remove unused is_array.
  10234. * jv-valprint.c (java_val_print): Remove unused i.
  10235. * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
  10236. * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
  10237. * m2-typeprint.c (m2_print_type): Remove unused code.
  10238. * macroexp.c (get_character_constant): Remove unused body_start.
  10239. (macro_stringify): Remove unused result.
  10240. * objc-lang.c (find_methods): Remove unused gdbarch.
  10241. * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
  10242. * regcache.c (regcache_cooked_read): Remove unused gdbarch.
  10243. * stack.c (print_frame_args): Remove unused summary.
  10244. * thread.c (thread_apply_command): Remove unused p.
  10245. * valarith.c (value_x_unop): Remove unused mangle_ptr.
  10246. * valops.c (search_struct_method): Remove unused skip.
  10247. * valprint.c (generic_val_print): Remove unused byte_order.
  10248. * varobj.c (varobj_update): Remove unused changed.
  10249. * cli/cli-cmds.c (complete_command): Remove unused next_item.
  10250. (alias_command): Remove unused c.
  10251. * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
  10252. * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
  10253. format.
  10254. (mi_cmd_data_write_memory): Remove unused word_format.
  10255. (mi_cmd_data_write_memory_bytes): Remove unused r.
  10256. * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
  10257. p_start, p_end.
  10258. * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
  10259. * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
  10260. line_width.
  10261. 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
  10262. * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
  10263. * symtab.c (iterate_over_symtabs): Remove unused s.
  10264. (find_pc_sect_symtab): Remove unused pspAce.
  10265. (find_pc_sect_line): Remove unused alt_symtab.
  10266. (find_pcs_for_symtab_line): Remove unused ix, previous_function.
  10267. (completion_list_add_name): Remove unused newsize.
  10268. 2013-01-31 Tom Tromey <tromey@redhat.com>
  10269. PR c++/14998:
  10270. * dwarf2read.c (read_tag_ptr_to_member_type): Handle
  10271. TYPE_CODE_FUNC.
  10272. 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
  10273. * target.c (target_read_string): Remove unused origlen.
  10274. 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
  10275. * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
  10276. * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
  10277. * ax-general.c (ax_print): Remove unused is_float.
  10278. * blockframe.c (block_innermost_frame): Remove unused start, end.
  10279. * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
  10280. 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
  10281. * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
  10282. (svr4_read_so_list): Remove unused lmo.
  10283. * solib-target.c (solib_target_relocate_section_addresses): Remove
  10284. unused flags.
  10285. 2013-01-30 Tom Tromey <tromey@redhat.com>
  10286. * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
  10287. 2013-01-30 Tom Tromey <tromey@redhat.com>
  10288. * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
  10289. * utils.c (gnu_debuglink_crc32): Remove.
  10290. * utils.h (gnu_debuglink_crc32): Don't declare.
  10291. 2013-01-30 Tom Tromey <tromey@redhat.com>
  10292. * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
  10293. (read_structure_type, read_enumeration_type): Remove cast.
  10294. 2013-01-30 Tom Tromey <tromey@redhat.com>
  10295. * dwarf2read.c (read_namespace_type): Remove cast.
  10296. (read_typedef): Likewise.
  10297. 2013-01-29 Tom Tromey <tromey@redhat.com>
  10298. * dwarf2read.c (free_dwo_file): Remove assert.
  10299. 2013-01-29 Tom Tromey <tromey@redhat.com>
  10300. * value.c (deprecated_set_value_modifiable): Remove.
  10301. * value.h (deprecated_set_value_modifiable): Remove.
  10302. 2013-01-28 Doug Evans <dje@google.com>
  10303. * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
  10304. to addresses from dwo files.
  10305. 2013-01-25 Siva Chandra Reddy <sivachandra@google.com>
  10306. * valops.c (find_overload_match): Remove unused argument 'lax'.
  10307. * value.h: Remove unused argument 'lax' from the declaration of
  10308. find_overload_match.
  10309. * eval.c (value_subexp_standard): Do not pass a 'lax' argument
  10310. to find_overload_match.
  10311. * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
  10312. argument to find_overload_match.
  10313. 2013-01-25 Tom Tromey <tromey@redhat.com>
  10314. * dwarf2read.c (processing_has_namespace_info): Remove.
  10315. (struct dwarf2_cu) <processing_has_namespace_info>: New field.
  10316. (process_die, read_func_scope, dwarf2_start_symtab)
  10317. (new_symbol_full): Update.
  10318. 2013-01-25 Tom Tromey <tromey@redhat.com>
  10319. * cp-namespace.c (cp_set_block_scope): Remove.
  10320. * cp-support.h (cp_set_block_scope): Remove.
  10321. * dbxread.c: Include block.h.
  10322. (cp_set_block_scope): New function.
  10323. (process_one_symbol): Update.
  10324. * dwarf2read.c (read_func_scope): Use block_set_scope.
  10325. 2013-01-25 Pedro Alves <palves@redhat.com>
  10326. * remote.c (add_current_inferior_and_thread): Tweak comment.
  10327. 2013-01-25 Tom Tromey <tromey@redhat.com>
  10328. * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
  10329. (cp_add_using_directive): Add 'copy_names' argument.
  10330. * cp-support.h (cp_add_using_directive): Update.
  10331. (struct using_direct) <import_src, import_dest, alias,
  10332. declaration>: Now const.
  10333. * dwarf2read.c (read_import_statement): Use obconcat.
  10334. Don't copy names passed to cp_add_using_directive.
  10335. 2013-01-25 Tom Tromey <tromey@redhat.com>
  10336. * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
  10337. 2013-01-25 Pedro Alves <palves@redhat.com>
  10338. * remote.c (stop_reply_extract_thread): New.
  10339. (add_current_inferior_and_thread): New parameter 'wait_status'.
  10340. Handle it.
  10341. (remote_start_remote): Pass wait status to
  10342. add_current_inferior_and_thread.
  10343. (extended_remote_run): Update comment.
  10344. (extended_remote_create_inferior_1): Pass wait status to
  10345. add_current_inferior_and_thread.
  10346. 2013-01-25 Andrew Burgess <aburgess@broadcom.com>
  10347. Ulrich Weigand <uweigand@de.ibm.com>
  10348. * valarith.c (value_vector_widen): New function for replicating a
  10349. scalar into a vector.
  10350. (value_binop): Use value_vector_widen to widen scalar to vector
  10351. rather than casting, this better matches gcc C behaviour.
  10352. * valops.c (value_casst): Update logic for casting between vector
  10353. types, and for casting from scalar to vector, try to match gcc C
  10354. behaviour.
  10355. * value.h (value_vector_widen): Declare.
  10356. * opencl-lang.c (opencl_value_cast): New opencl specific casting
  10357. function, handle special case for casting scalar to vector.
  10358. (opencl_relop): Use opencl_value_cast.
  10359. (evaluate_subexp_opencl): Use opencl_value_cast instead of
  10360. value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
  10361. in order to use opencl_value_cast.
  10362. 2013-01-25 Yao Qi <yao@codesourcery.com>
  10363. * event-loop.c: Include "queue.h".
  10364. (gdb_event_p): New typedef.
  10365. (DECLARE_QUEUE_P): Use.
  10366. (DEFINE_QUEUE_P): Use.
  10367. (async_queue_event): Remove.
  10368. (gdb_event_xfree): New.
  10369. (initialize_event_loop): New.
  10370. (process_event): Use QUEUE macros.
  10371. (event_queue): Remove.
  10372. (gdb_wait_for_event): Caller update.
  10373. (check_async_event_handlers): Likewise.
  10374. (poll_timers): Likewise.
  10375. * event-loop.h (initialize_event_loop): Declare.
  10376. * event-loop.c (gdb_event_xfree): New.
  10377. * top.c (gdb_init): Call initialize_event_loop.
  10378. 2013-01-25 Yao Qi <yao@codesourcery.com>
  10379. * event-loop.c (async_queue_event): Remove one parameter
  10380. 'position'. Remove code handling 'position' == TAIL.
  10381. (gdb_wait_for_event): Caller update.
  10382. (check_async_event_handlers): Caller update.
  10383. (poll_timers): Caller update.
  10384. * event-loop.h (enum queue_position): Remove.
  10385. 2013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
  10386. * MAINTAINERS: Update my email.
  10387. 2013-01-25 Yao Qi <yao@codesourcery.com>
  10388. * main.c (print_gdb_help): Remove "--epoch" from the help
  10389. message.
  10390. 2013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
  10391. * symtab.c (skip_prologue_using_sal): Consider a file
  10392. change the same as an increased line number
  10393. 2013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
  10394. * MAINTAINERS (Write After Approval): Add myself to the list.
  10395. 2013-01-24 Tom Tromey <tromey@redhat.com>
  10396. * ada-lang.h (ada_decode_symbol): Make return type const.
  10397. * ada-lang.c (ada_decode_symbol): Likewise.
  10398. 2013-01-23 Doug Evans <dje@google.com>
  10399. * linespec.c (find_linespec_symbols): Make static.
  10400. 2013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
  10401. * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
  10402. type on float conversion for complex type.
  10403. 2013-01-23 Siva Chandra Reddy <sivachandra@google.com>
  10404. Add a new class gdb.Architecture which exposes GDB's
  10405. internal representation of architecture via GDB Python API.
  10406. * Makefile.in: Add entries corresponding to the new file
  10407. python/py-arch.c.
  10408. * NEWS (Python Scripting): Add entries for the new class
  10409. gdb.Architecture and the new method gdb.Frame.architecture.
  10410. * python/py-arch.c: Implement gdb.Architecture class.
  10411. * python/py-frame.c (frapy_arch): Implement the method
  10412. gdb.Frame.architecture().
  10413. (frame_object_methods): Add 'architecture' to the method table.
  10414. * python/python-internal.h: Add declarations of new utility
  10415. functions.
  10416. * python/python.c (_initialize_python): Initialize
  10417. gdb.Architecture class.
  10418. 2013-01-23 Doug Evans <dje@google.com>
  10419. Work around binutils/15021.
  10420. * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
  10421. type_unit_group out of union s. All uses updated.
  10422. (read_index_from_section): Watch for index version 8.
  10423. (follow_die_sig): If using .gdb_index version <= 7, record the TU as
  10424. an imported symtab.
  10425. (write_psymtabs_to_index): Increment version number to 8.
  10426. 2013-01-22 Pedro Alves <palves@redhat.com>
  10427. * annotate.c (breakpoint_changed): Skip if breakpoint is not
  10428. user-visible.
  10429. 2013-01-22 Pedro Alves <palves@redhat.com>
  10430. * annotate.c (annotate_breakpoints_changed): Rename to ...
  10431. (annotate_breakpoints_invalid): ... this. Make static.
  10432. (breakpoint_changed): Adjust.
  10433. (_initialize_annotate): Always install the observers. Install a
  10434. "breakpoint_created" observer.
  10435. * annotate.h (annotate_breakpoints_changed): Delete declaration.
  10436. * breakpoint.c (set_breakpoint_condition)
  10437. (breakpoint_set_commands, do_map_commands_command)
  10438. (init_raw_breakpoint, clear_command, set_ignore_count)
  10439. (enable_breakpoint_disp): No longer call
  10440. annotate_breakpoints_changed.
  10441. 2013-01-22 Pedro Alves <palves@redhat.com>
  10442. * annotate.c: Include "inferior.h".
  10443. (frames_invalid_emitted)
  10444. (breakpoints_invalid_emitted): New globals.
  10445. (async_background_execution_p): New function.
  10446. (annotate_breakpoints_changed, annotate_frames_invalid): Skip
  10447. emitting the annotation if it has already been emitted.
  10448. (annotate_display_prompt): New function.
  10449. * annotate.h (annotate_display_prompt): New declaration.
  10450. * event-top.c: Include annotate.h.
  10451. (display_gdb_prompt): Call annotate_display_prompt.
  10452. 2013-01-22 Pedro Alves <palves@redhat.com>
  10453. * annotate.c (ignore_count_changed): Delete.
  10454. (annotate_breakpoints_changed): Don't clear ignore_count_changed.
  10455. (annotate_ignore_count_change): Delete.
  10456. (annotate_stopped): Don't emit a delayed breakpoints-changed
  10457. annotation.
  10458. * annotate.h (annotate_ignore_count_change): Delete.
  10459. * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
  10460. annotate_ignore_count_change.
  10461. 2013-01-22 Tom Tromey <tromey@redhat.com>
  10462. * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
  10463. require_rvalue for a register location.
  10464. 2013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
  10465. * breakpoint.c (print_one_breakpoint_location): Add MI
  10466. field 'thread-groups' when printing a breakpoint.
  10467. (output_thread_groups): New function.
  10468. 2013-01-21 Siva Chandra Reddy <sivachandra@google.com>
  10469. * python/lib/gdb/commands/explore.py
  10470. (CompoundExplorer.explore_expr): Correct the name of a method
  10471. being invoked.
  10472. (ExploreTypeCommand.invoke): Add a missing 'return'.
  10473. 2013-01-21 Tom Tromey <tromey@redhat.com>
  10474. * gdb_obstack.h (obconcat): Move declaration here, from...
  10475. * symfile.h (obconcat): ... here.
  10476. * gdb_obstack.c: New file.
  10477. (obconcat): Move from...
  10478. * symfile.c (obconcat): ... here.
  10479. * Makefile.in (SFILES): Add gdb_obstack.c.
  10480. (COMMON_OBS): Add gdb_obstack.o.
  10481. 2013-01-21 Tom Tromey <tromey@redhat.com>
  10482. * symfile.h (obsavestring): Don't declare.
  10483. * symfile.c (obsavestring): Remove.
  10484. * ada-exp.y: Use obstack_copy0, not obsavestring.
  10485. * ada-lang.c: Use obstack_copy0, not obsavestring.
  10486. * coffread.c: Use obstack_copy0, not obsavestring.
  10487. * cp-namespace.c: Use obstack_copy0, not obsavestring.
  10488. * dbxread.c: Use obstack_copy0, not obsavestring.
  10489. * dwarf2read.c: Use obstack_copy0, not obsavestring.
  10490. * jit.c: Use obstack_copy0, not obsavestring.
  10491. * mdebugread.c: Use obstack_copy0, not obsavestring.
  10492. * psymtab.c: Use obstack_copy0, not obsavestring.
  10493. * stabsread.c: Use obstack_copy0, not obsavestring.
  10494. * xcoffread.c: Use obstack_copy0, not obsavestring.
  10495. 2013-01-21 Tom Tromey <tromey@redhat.com>
  10496. * dwarf2read.c (fixup_go_packaging): Save package name
  10497. on objfile obstack.
  10498. * gdbtypes.c (init_type): Don't copy name.
  10499. 2013-01-21 Tom Tromey <tromey@redhat.com>
  10500. * dwarf2read.c (struct partial_die_info) <name, scope>: Now
  10501. const.
  10502. (struct attribute) <u.str>: Now const.
  10503. (struct fnfieldlist) <name>: Now const.
  10504. (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
  10505. (partial_die_parent_scope): Make return type const.
  10506. (partial_die_full_name, add_partial_symbol): Update.
  10507. (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
  10508. 'name' const.
  10509. (find_file_and_directory): Make 'name' and 'comp_dir' const.
  10510. (read_file_scope, read_func_scope, dwarf2_add_field)
  10511. (dwarf2_add_member_fn, read_structure_type)
  10512. (process_enumeration_scope, read_array_type, read_module_type)
  10513. (read_base_type, read_subrange_type): Update.
  10514. (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
  10515. (new_symbol_full, guess_full_die_structure_name): Update.
  10516. (dwarf2_canonicalize_name): Return const type. Make 'name' const.
  10517. (dwarf2_name): Return const type.
  10518. (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
  10519. const.
  10520. 2013-01-21 Tom Tromey <tromey@redhat.com>
  10521. * gdbtypes.c (init_type): Make 'name' const.
  10522. * gdbtypes.h (init_type): Update.
  10523. 2013-01-21 Tom Tromey <tromey@redhat.com>
  10524. * buildsym.c (patch_subfile_names): Use set_last_source_file.
  10525. (start_symtab): Make 'name' and 'dirname' const. Use
  10526. set_last_source_file.
  10527. (restart_symtab, reset_symtab_globals): Use set_last_source_file.
  10528. (last_source_file): Define. Now static.
  10529. (set_last_source_file, get_last_source_file): New functions.
  10530. * buildsym.h (last_source_file): Don't declare.
  10531. (start_symtab): Update.
  10532. (set_last_source_file, get_last_source_file): Declare.
  10533. * coffread.c (complete_symtab): Use set_last_source_file.
  10534. (coff_end_symtab): Likewise.
  10535. (coff_symtab_read): Use set_last_source_file, get_last_source_file.
  10536. * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
  10537. set_last_source_file.
  10538. (process_one_symbol): Use get_last_source_file.
  10539. * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
  10540. (psymtab_to_symtab_1): Use get_last_source_file.
  10541. * xcoffread.c (process_linenos): Use get_last_source_file.
  10542. (complete_symtab): Use set_last_source_file.
  10543. (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
  10544. (scan_xcoff_symtab): Use set_last_source_file.
  10545. 2013-01-21 Tom Tromey <tromey@redhat.com>
  10546. * symtab.c (struct demangled_name_entry) <mangled>: Now const.
  10547. (symbol_set_names): Remove casts. Handle field const-ness.
  10548. 2013-01-21 Tom Tromey <tromey@redhat.com>
  10549. * dwarf2read.c (new_symbol_full): Remove cast.
  10550. * symtab.c (symbol_set_demangled_name): Make 'name' const.
  10551. * symtab.h (symbol_set_demangled_name): Update.
  10552. 2013-01-21 Tom Tromey <tromey@redhat.com>
  10553. * main.c (captured_main): Call bfd_init.
  10554. 2013-01-21 Tom Tromey <tromey@redhat.com>
  10555. * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
  10556. * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
  10557. * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
  10558. * NEWS: Update.
  10559. 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
  10560. * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
  10561. 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
  10562. Fix gdb.fortran/common-block.exp crash in PIE mode.
  10563. * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
  10564. LOC_COMMON_BLOCK.
  10565. * f-valprint.c (info_common_command_for_block): Expect
  10566. LOC_COMMON_BLOCK in gdb_assert.
  10567. * symtab.h (struct general_symbol_info): Update comment for the
  10568. common_block member.
  10569. (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
  10570. (enum address_class): New member LOC_COMMON_BLOCK.
  10571. 2013-01-18 David Blaikie <dblaikie@gmail.com>
  10572. * MAINTAINERS (Write After Approval): Add "David Blaikie".
  10573. 2013-01-18 Tom Tromey <tromey@redhat.com>
  10574. PR c++/14999:
  10575. * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
  10576. Call require_rvalue.
  10577. 2013-01-18 Yao Qi <yao@codesourcery.com>
  10578. * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
  10579. (dbx_read_symtab): New declaration.
  10580. (dbx_psymtab_to_symtab): Delete.
  10581. (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
  10582. Rename parameter PST to SELF. Exchanged two parameters.
  10583. (start_psymtab): Caller update.
  10584. * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
  10585. (dwarf2_read_symtab): New declaration.
  10586. (dwarf2_psymtab_to_symtab): Delete.
  10587. (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
  10588. Rename parameter PST to SELF. Exchanged two parameters.
  10589. (create_partial_symtab): Caller update.
  10590. * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
  10591. (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
  10592. Rename parameter PST to SELF. Exchanged two parameters.
  10593. (parse_partial_symbols, new_psymtab): Caller update.
  10594. * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
  10595. two parameters.
  10596. * psymtab.c (psymtab_to_symtab): Caller update.
  10597. * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
  10598. (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
  10599. Rename parameter PST to SELF. Exchanged two parameters.
  10600. (xcoff_start_psymtab): Caller update.
  10601. 2013-01-18 Yao Qi <yao@codesourcery.com>
  10602. * infrun.c (proceed): Rename local variable 'oneproc' to
  10603. 'force_step'.
  10604. 2013-01-17 Doug Evans <dje@google.com>
  10605. * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
  10606. (dw2_build_type_unit_groups): Delete. All uses updated.
  10607. * symtab.h (struct symbol_search): Add comment.
  10608. 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
  10609. * symtab.c (compare_filenames_for_search): New comment for
  10610. HAS_DRIVE_SPEC.
  10611. 2013-01-17 Tom Tromey <tromey@redhat.com>
  10612. * cp-abi.c (cp_abi_completer): Fix typo in assignment.
  10613. 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
  10614. * symtab.c (iterate_over_some_symtabs): New variable cleanups,
  10615. initialize it by existing make_cleanup. Call new do_cleanups.
  10616. 2013-01-17 Tom Tromey <tromey@redhat.com>
  10617. * cp-abi.c (cp_abi_completer): New function.
  10618. (_initialize_cp_abi): Set completer for "set cp-abi".
  10619. 2013-01-17 Tom Tromey <tromey@redhat.com>
  10620. * mem-break.c: Remove obsolete comment.
  10621. * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
  10622. 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
  10623. * jit.c (jit_reader_load_command): Interpret the jit reader name
  10624. as an absolute path if it begins with a forward slash.
  10625. 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
  10626. PR gdb/14550
  10627. * jit.c (finalize_symtab): Ensure that only the global block has a
  10628. NULL superblock.
  10629. 2013-01-17 Pedro Alves <palves@redhat.com>
  10630. * acinclude.m4: Include ../config/plugins.m4,
  10631. ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
  10632. * Makefile.in (aclocal_m4_deps): Update.
  10633. * aclocal.m4: Renegerate.
  10634. 2013-01-16 Doug Evans <dje@google.com>
  10635. * contrib/cc-with-tweaks.sh: Add references to Fission docs.
  10636. 2013-01-16 Pedro Alves <palves@redhat.com>
  10637. Tom Tromey <tromey@redhat.com>
  10638. PR cli/7221:
  10639. * NEWS: Add "catch signal".
  10640. * breakpoint.c (base_breakpoint_ops): No longer static.
  10641. (bpstat_explains_signal): New function.
  10642. (init_catchpoint): No longer static.
  10643. (base_breakpoint_explains_signal): New function.
  10644. (base_breakpoint_ops): Initialize new field.
  10645. * breakpoint.h (enum bpstat_signal_value): New.
  10646. (struct breakpoint_ops) <explains_signal>: New field.
  10647. (bpstat_explains_signal): Remove macro, declare as function.
  10648. (base_breakpoint_ops, init_catchpoint): Declare.
  10649. * break-catch-sig.c: New file.
  10650. * inferior.h (signal_catch_update): Declare.
  10651. * infrun.c (signal_catch): New global.
  10652. (handle_syscall_event): Update for change to
  10653. bpstat_explains_signal.
  10654. (handle_inferior_event): Likewise. Always handle random signals
  10655. via bpstats.
  10656. (signal_cache_update): Check signal_catch.
  10657. (signal_catch_update): New function.
  10658. (_initialize_infrun): Initialize signal_catch.
  10659. * Makefile.in (SFILES): Add break-catch-sig.c.
  10660. (COMMON_OBS): Add break-catch-sig.o.
  10661. 2013-01-16 Tom Tromey <tromey@redhat.com>
  10662. * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
  10663. (print_one_catch_solib, print_one_catch_syscall)
  10664. (print_one_catch_exec, print_one_exception_catchpoint): Emit
  10665. "catch-type".
  10666. 2013-01-16 Yao Qi <yao@codesourcery.com>
  10667. * printcmd.c (current_display_number): Make it static.
  10668. 2013-01-16 Yao Qi <yao@codesourcery.com>
  10669. * infcmd.c (step_once): Don't check '!single_inst' as it was
  10670. checked before.
  10671. 2013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
  10672. * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
  10673. 2013-01-14 Tom Tromey <tromey@redhat.com>
  10674. * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
  10675. set command.
  10676. * command.h (add_setshow_string_noescape_cmd): Update.
  10677. * corefile.c (set_gnutarget_command): Remove trailing whitespace.
  10678. (complete_set_gnutarget): New function.
  10679. (_initialize_core): Set the "set gnutarget" completer.
  10680. 2013-01-14 Tom Tromey <tromey@redhat.com>
  10681. PR symtab/14442:
  10682. * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
  10683. (c_type_print_modifier): Likewise.
  10684. * dwarf2read.c (read_tag_restrict_type): New function.
  10685. (read_type_die_1): Handle DW_TAG_restrict_type.
  10686. * gdbtypes.c (make_restrict_type): New function.
  10687. (recursive_dump_type): Handle TYPE_RESTRICT.
  10688. * gdbtypes.h (enum type_flag_values): Renumber.
  10689. (enum type_instance_flag_value): Add
  10690. TYPE_INSTANCE_FLAG_RESTRICT.
  10691. (TYPE_RESTRICT): New macro.
  10692. (make_restrict_type): Declare.
  10693. 2013-01-14 Tom Tromey <tromey@redhat.com>
  10694. PR symtab/14931:
  10695. * psymtab.c (struct psymtab_state): New.
  10696. (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
  10697. functions.
  10698. * psympriv.h (make_cleanup_discard_psymtabs): Declare.
  10699. * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
  10700. 2013-01-14 Richard Sharman <richard_sharman@mitel.com>
  10701. Pedro Alves <palves@redhat.com>
  10702. PR remote/14786
  10703. * remote.c (remote_threads_info): Make a copy of the reply from
  10704. qfThreadInfo and use that instead of rs->buf.
  10705. 2013-01-14 Yao Qi <yao@codesourcery.com>
  10706. * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
  10707. (dbx_psymtab_to_symtab): Likewise.
  10708. * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
  10709. * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
  10710. * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
  10711. 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
  10712. * parse.c (parse_exp_in_context): New variable inner_chain. Call
  10713. make_cleanup_restore_current_language. Call set_language. Move
  10714. OLD_CHAIN and INNER_CHAIN cleanups.
  10715. * utils.c (do_restore_current_language)
  10716. (make_cleanup_restore_current_language): New functions.
  10717. * utils.h (make_cleanup_restore_current_language): New declaration.
  10718. 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
  10719. * source.c (symtab_to_fullname): Apply rewrite_source_path also for
  10720. non-existing files.
  10721. * source.c (symtab_to_fullname): Do not prepend DIRNAME for
  10722. non-existing files if FILENAME is already absolute.
  10723. 2013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
  10724. * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
  10725. fputs_filtered. Append trailing newline.
  10726. 2013-01-11 Yao Qi <yao@codesourcery.com>
  10727. Stan Shebs <stan@codesourcery.com>
  10728. * psymtab.c (init_psymbol_list): Clarify the comment.
  10729. 2013-01-11 Yao Qi <yao@codesourcery.com>
  10730. * breakpoint.c (print_one_breakpoint_location): Remove dead code.
  10731. (update_dprintf_command_list): Assert that 'printf_line' is
  10732. non-null. Remove condition check.
  10733. 2013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
  10734. Code cleanup.
  10735. * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
  10736. type const char *.
  10737. * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
  10738. const char *.
  10739. * tui/tui-source.h (tui_source_is_displayed): Likewise.
  10740. 2013-01-09 Anthony Green <green@moxielogic.com>
  10741. * cp-abi.c (cplus_print_vtable): Don't return value from void
  10742. function.
  10743. * ada-lang.c (re_set_catch_assert): Ditto.
  10744. 2013-01-09 Doug Evans <dje@google.com>
  10745. * symfile.h (quick_symbol_functions): Delete member
  10746. pre_expand_symtabs_matching. All uses removed.
  10747. * dwarf2read.c (dw2_lookup_symbol): Implement.
  10748. (dw2_do_expand_symtabs_matching): Delete.
  10749. (dw2_pre_expand_symtabs_matching): Delete.
  10750. (struct dw2_symtab_iterator): New type.
  10751. (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
  10752. (dw2_expand_symtabs_for_function): Rewrite.
  10753. (dwarf2_gdb_index_functions): Update.
  10754. * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
  10755. (psym_functions): Update.
  10756. 2013-01-09 Tom Tromey <tromey@redhat.com>
  10757. * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
  10758. * configure: Rebuild.
  10759. * configure.ac: Add somread.o to the build if BFD has SOM
  10760. support.
  10761. * somread.c: Include som/aout.h, not syms.h.
  10762. (som_symtab_read): Use som_external_symbol_dictionary_record.
  10763. Unpack records manually.
  10764. (_initialize_somread): Declare.
  10765. 2012-01-08 Mike Frysinger <vapier@gentoo.org>
  10766. * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
  10767. Cast return_address to 64bits.
  10768. 2013-01-08 Hui Zhu <hui_zhu@mentor.com>
  10769. * printcmd.c: Remove define of function output_command.
  10770. * tracepoint.c: Remove extern of function output_command.
  10771. * valprint.h: (output_command): New extern.
  10772. 2013-01-07 Tom Tromey <tromey@redhat.com>
  10773. * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
  10774. Remove.
  10775. (objc_language_defn): Use c_printchar, c_printstr,
  10776. c_emit_char.
  10777. 2013-01-07 Tom Tromey <tromey@redhat.com>
  10778. PR cli/7719:
  10779. * NEWS: Update.
  10780. * ada-valprint.c (printstr, print_field_values): Remove
  10781. "inspect_it" code.
  10782. * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
  10783. code.
  10784. * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
  10785. code.
  10786. * m2-lang.c (m2_printstr): Remove "inspect_it" code.
  10787. * main.c (captured_main): Remove "epoch" argument.
  10788. * objc-lang.c (objc_printstr): Remove "inspect_it" code.
  10789. * p-lang.c (pascal_printstr): Remove "inspect_it" code.
  10790. * p-valprint.c (pascal_object_print_value_fields): Remove
  10791. "inspect_it" code.
  10792. * printcmd.c (print_command_1): Remove 'inspect' argument.
  10793. (print_command, call_command): Update.
  10794. (inspect_command): Remove.
  10795. (_initialize_printcmd): Make "inspect" an alias for "print".
  10796. * top.c (epoch_interface): Remove.
  10797. * top.h (epoch_interface): Remove.
  10798. * valprint.c (user_print_options): Update.
  10799. (print_converted_chars_to_obstack): Remove "inspect_it" code.
  10800. * valprint.h (struct value_print_options) <inspect_it>: Remove
  10801. field.
  10802. 2013-01-04 Tom Tromey <tromey@redhat.com>
  10803. * valprint.h (read_string): Add 'extern'.
  10804. 2013-01-07 Joel Brobecker <brobecker@adacore.com>
  10805. * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
  10806. used to decide whether to define darwin_read_dyld_info or not.
  10807. 2013-01-03 Pierre Muller <muller@sourceware.org>
  10808. * main.c (relocate_gdb_directory): Avoid calling stat function
  10809. if DIR is empty.
  10810. 2013-01-03 Yao Qi <yao@codesourcery.com>
  10811. * psymtab.c (fixup_psymbol_section): Update declaration.
  10812. (fixup_psymbol_section): Remove code returning value.
  10813. 2013-01-03 Yao Qi <yao@codesourcery.com>
  10814. * symtab.h: Remove some out of date comments.
  10815. (enum exception_event_kind): Move it ...
  10816. * breakpoint.c: ... here.
  10817. 2013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
  10818. PR gdb/14405
  10819. * darwin-nat.c (darwin_read_dyld_info): Only build if
  10820. TASK_DYLD_INFO_COUNT is defined.
  10821. (darwin_xfer_partial): Call darwin_read_dyld_info only if
  10822. TASK_DYLD_INFO_COUNT is defined.
  10823. 2013-01-02 Tom Tromey <tromey@redhat.com>
  10824. * symfile.h (struct ecoff_debug_hack): Remove.
  10825. * objfiles.c: Don't include mdebugread.h.
  10826. 2013-01-02 Tom Tromey <tromey@redhat.com>
  10827. * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
  10828. * configure.ac: Check for Mach-O support in BFD. Update
  10829. CONFIG_OBS.
  10830. * configure: Rebuild.
  10831. 2013-01-02 Tom Tromey <tromey@redhat.com>
  10832. * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
  10833. * configure.ac: Use GDB_AC_CHECK_BFD.
  10834. * configure: Rebuild.
  10835. 2013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
  10836. * MAINTAINERS: Update my email.
  10837. 2013-01-01 Joel Brobecker <brobecker@adacore.com>
  10838. * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
  10839. 2013-01-01 Joel Brobecker <brobecker@adacore.com>
  10840. * rs6000-nat.c (bss_data_overlap): New function.
  10841. (vmap_symtab): Use it to adjust the .bss section's offset.
  10842. 2013-01-01 Joel Brobecker <brobecker@adacore.com>
  10843. Update year range in copyright notice of all files.
  10844. 2013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
  10845. * top.c (print_gdb_version): Update copyright year.
  10846. For older changes see ChangeLog-2012.
  10847. Local Variables:
  10848. mode: change-log
  10849. left-margin: 8
  10850. fill-column: 74
  10851. version-control: never
  10852. coding: utf-8
  10853. End: