ChangeLog-2014 607 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657
  1. 2014-12-31 Joel Brobecker <brobecker@adacore.com>
  2. * NEWS: Document removal of "dll-symbols", "add-shared-symbol-files"
  3. and "assf" commands.
  4. 2014-12-30 Joel Brobecker <brobecker@adacore.com>
  5. * windows-nat.c (safe_symbol_file_add_stub)
  6. (safe_symbol_file_add_cleanup, safe_symbol_file_add)
  7. (dll_symbol_command): Delete.
  8. (_initialize_windows_nat): Delete local variable "c".
  9. Remove "dll-symbols", "add-shared-symbol-files" and assf"
  10. commands.
  11. 2014-12-29 Thomas Preud'homme <thomas.preudhomme@arm.com>
  12. * arm-tdep.c (arm_gdbarch_init): Remove casts in Tag_ABI_VFP_args switch
  13. case statements.
  14. 2014-12-29 Anthony Green <green@moxielogic.com>
  15. * configure.tgt: Add support for moxiebox target.
  16. 2014-12-27 Anthony Green <green@moxielogic.com>
  17. * moxie-tdep.c (moxie_software_single_step): ldo/sto instructions
  18. are 32 bits, not 48. Update comments for various instructions.
  19. (moxie_process_record): Update for new shorter ldo/sto
  20. instructions. Add support for sex, zex, umul.x and mul.x
  21. instructions. Update comments for various instructions.
  22. 2014-12-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
  23. * arm-tdep.c (arm_gdbarch_init): Explicitly handle value 3 of
  24. Tag_ABI_VFP_args. Also replace hardcoded values by enum values in the
  25. switch handling the different values of Tag_ABI_VFP_args.
  26. 2014-12-23 Doug Evans <xdje42@gmail.com>
  27. * ada-lang.c (user_select_syms): Only fetch symtab if symbol is
  28. objfile-owned.
  29. (cache_symbol): Ignore symbols that are not objfile-owned.
  30. * block.c (block_objfile): New function.
  31. (block_gdbarch): New function.
  32. * block.h (block_objfile): Declare.
  33. (block_gdbarch): Declare.
  34. * c-exp.y (classify_name): Remove call to
  35. language_lookup_primitive_type. No longer necessary.
  36. * gdbtypes.c (lookup_typename): Call lookup_symbol_in_language.
  37. Remove call to language_lookup_primitive_type. No longer necessary.
  38. * guile/scm-symbol.c (syscm_gdbarch_data_key): New static global.
  39. (syscm_gdbarch_data): New struct.
  40. (syscm_init_arch_symbols): New function.
  41. (syscm_get_symbol_map): Renamed from syscm_objfile_symbol_map.
  42. All callers updated. Handle symbols owned by arches.
  43. (gdbscm_symbol_symtab): Handle symbols owned by arches.
  44. (gdbscm_initialize_symbols): Initialize syscm_gdbarch_data_key.
  45. * language.c (language_lookup_primitive_type_1): New function.
  46. (language_lookup_primitive_type): Call it.
  47. (language_alloc_type_symbol): New function.
  48. (language_init_primitive_type_symbols): New function.
  49. (language_lookup_primitive_type_as_symbol): New function.
  50. * language.h (struct language_arch_info) <primitive_type_symbols>:
  51. New member.
  52. (language_lookup_primitive_type): Add function comment.
  53. (language_lookup_primitive_type_as_symbol): Declare.
  54. * printcmd.c (address_info): Handle arch-owned symbols.
  55. * python/py-symbol.c (sympy_get_symtab): Ditto.
  56. (set_symbol): Ditto.
  57. (sympy_dealloc): Ditto.
  58. * symmisc.c (print_symbol): Ditto.
  59. * symtab.c (fixup_symbol_section): Ditto.
  60. (lookup_symbol_aux): Initialize block_found.
  61. (basic_lookup_symbol_nonlocal): Try looking up the symbol as a
  62. primitive type.
  63. (initialize_objfile_symbol_1): New function.
  64. (initialize_objfile_symbol): Call it.
  65. (allocate_symbol): Call it.
  66. (allocate_template_symbol): Call it.
  67. (symbol_objfile): Assert symbol is objfile-owned.
  68. (symbol_arch, symbol_symtab, symbol_set_symtab): Ditto.
  69. * symtab.h (struct symbol) <owner>: Replaces member "symtab".
  70. (struct symbol) <is_objfile_owned>: New member.
  71. (SYMBOL_OBJFILE_OWNED): New macro.
  72. * cp-namespace.c (cp_lookup_bare_symbol): New arg langdef.
  73. All callers updated. Try to find the symbol as a primitive type.
  74. (lookup_namespace_scope): New arg langdef. All callers updated.
  75. Call cp_lookup_bare_symbol directly for simple bare symbols.
  76. 2014-12-23 Doug Evans <xdje42@gmail.com>
  77. * symtab.h (SYMBOL_DOMAIN_BITS): New macro.
  78. (struct symbol) <domain>: Use it.
  79. 2014-12-23 Doug Evans <xdje42@gmail.com>
  80. * symtab.c (initialize_objfile_symbol): Renamed from initialize_symbol.
  81. All callers updated.
  82. 2014-12-23 Doug Evans <xdje42@gmail.com>
  83. * language.h (struct language_defn) <la_lookup_symbol_nonlocal>:
  84. New arg language_defn. All uses updated.
  85. 2014-12-23 Doug Evans <xdje42@gmail.com>
  86. * symtab.h (SYMBOL_SYMTAB): Delete
  87. (SYMBOL_OBJFILE): Delete.
  88. (symbol_symtab, symbol_set_symtab): Declare.
  89. (symbol_objfile, symbol_arch): Declare.
  90. * symtab.c (symbol_symtab): Replaces SYMBOL_SYMTAB. All uses updated.
  91. All references to symbol->symtab redirected through here.
  92. (symbol_set_symtab): New function. All assignments to SYMBOL_SYMTAB
  93. redirected through here.
  94. (symbol_arch): New function.
  95. (symbol_objfile): New function. Replaces SYMBOL_OBJFILE.
  96. All uses updated.
  97. * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
  98. symbol_arch.
  99. * findvar.c (default_read_var_value): Call symbol_arch.
  100. * guile/scm-frame.c (gdbscm_frame_block): Call symbol_objfile.
  101. * jv-lang.c (add_class_symtab_symbol): Call symbol_arch.
  102. * printcmd.c (address_info): Call symbol_arch.
  103. * tracepoint.c (scope_info): Call symbol_arch.
  104. 2014-12-22 Doug Evans <xdje42@gmail.com>
  105. * cp-namespace.c (cp_lookup_symbol_via_all_imports): New function.
  106. (cp_lookup_symbol_namespace): Call it.
  107. (cp_lookup_symbol_nonlocal): Ditto.
  108. 2014-12-22 Doug Evans <xdje42@gmail.com>
  109. * cp-namespace.c (cp_lookup_symbol_via_imports): New arg
  110. "search_scope_first". All callers updated.
  111. 2014-12-22 Doug Evans <xdje42@gmail.com>
  112. * cp-namespace.c (cp_lookup_nested_symbol_1): New function.
  113. (cp_basic_lookup_symbol): Renamed from lookup_symbol_file. Delete
  114. arg "search". All callers updated.
  115. (cp_lookup_bare_symbol): New function.
  116. (cp_search_static_and_baseclasses): New function.
  117. (cp_lookup_symbol_in_namespace): Rewrite, move more logic here.
  118. (find_symbol_in_baseclass): Simplify, call cp_lookup_nested_symbol_1.
  119. (cp_lookup_nested_symbol): Ditto.
  120. 2014-12-22 Doug Evans <xdje42@gmail.com>
  121. * cp-namespace.c (cp_lookup_symbol_in_namespace): Simplify.
  122. 2014-12-22 Doug Evans <xdje42@gmail.com>
  123. * cp-namespace.c: Whitespace cleanup.
  124. 2014-12-20 Keith Seitz <keiths@redhat.com>
  125. Mihail-Marian Nistor <mihail.nistor@freescale.com>
  126. PR gdb/17394
  127. * linespec.c (struct collect_minsyms): Add new member `symtab'.
  128. (add_minsym): Handle cases where info.symtab is non-NULL.
  129. (search_minsyms_for_name): Add new parameter `symtab'.
  130. Handle limiting searches to a specific symtab.
  131. (add_matching_symtabs_to_info): Search through minimal symbols
  132. for language_asm files for which no new symbols are found.
  133. 2014-12-19 Maciej W. Rozycki <macro@codesourcery.com>
  134. Nigel Stephens <nigel@mips.com>
  135. Chris Dearman <chris@mips.com>
  136. Luis Machado <lgustavo@codesourcery.com>
  137. * Makefile.in (ALL_TARGET_OBS): Add mips-sde-tdep.o.
  138. (ALLDEPFILES): Add mips-sde-tdep.c.
  139. * mips-sde-tdep.c: New file containg SDE specific code.
  140. * configure.tgt (mips*-sde*-elf*): Add mips-sde-dep.o to
  141. gdb_target_obs.
  142. * defs.h (gdb_osabi): Add GDB_OSABI_SDE.
  143. * osabi.c (gdb_osabi_names): Add SDE.
  144. * NEWS: Mention the change.
  145. 2014-12-18 Simon Marchi <simon.marchi@ericsson.com>
  146. * elfread.c (elf_symfile_init): Remove stale comment.
  147. (elf_symfile_read): Same.
  148. * symfile.h (struct sym_fns): Same.
  149. 2014-12-18 Nigel Stephens <nigel@mips.com>
  150. Maciej W. Rozycki <macro@codesourcery.com>
  151. * mips-tdep.c (print_fpu_flags): New function.
  152. (mips_print_float_info): Likewise.
  153. (mips_gdbarch_init): Install mips_print_float_info as gdbarch
  154. print_float_info routine.
  155. 2014-12-18 Yao Qi <yao@codesourcery.com>
  156. * gdbarch.sh (print_float_info): Change its type from 'M' to 'm'.
  157. * gdbarch.c: Re-generated.
  158. * gdbarch.h: Likewise.
  159. * infcmd.c (default_print_float_info): New function.
  160. (print_float_info): Removed. Move code to
  161. default_print_float_info.
  162. (float_info): Adjust to call gdbarch_print_float_info.
  163. * inferior.h (default_print_float_info): Declare it.
  164. 2014-12-18 Yao Qi <yao@codesourcery.com>
  165. * h8300-tdep.c (h8300_print_float_info): Remove.
  166. (h8300_gdbarch_init): Remove the call to
  167. set_gdbarch_print_float_info.
  168. 2014-12-18 Doug Evans <xdje42@gmail.com>
  169. * infcmd.c (jump_command): Minor simplification.
  170. 2014-12-18 Doug Evans <xdje42@gmail.com>
  171. * language.c (language_lookup_primitive_type): Renamed from
  172. language_lookup_primitive_type_by_name. All callers updated.
  173. 2014-12-17 Jan Kratochvil <jan.kratochvil@redhat.com>
  174. Fix MinGW compilation.
  175. * compile/compile.c (get_compile_file_tempdir): Call error if
  176. !HAVE_MKDTEMP.
  177. * config.in: Regenerate.
  178. * configure: Regenerate.
  179. * configure.ac (AC_CHECK_FUNCS): Add mkdtemp.
  180. 2014-12-17 Doug Evans <xdje42@gmail.com>
  181. * valops.c (value_maybe_namespace_elt): Remove redundant call to
  182. lookup_static_symbol.
  183. 2014-12-17 Doug Evans <xdje42@gmail.com>
  184. New parameter "debug symbol-lookup".
  185. * NEWS: Mention it.
  186. * cp-namespace.c (cp_lookup_symbol_imports_or_template): Add debug
  187. output.
  188. (cp_lookup_symbol_namespace, cp_lookup_symbol_nonlocal): Ditto.
  189. (cp_lookup_nested_symbol): Ditto.
  190. * language.c (language_lookup_primitive_type_by_name): Add debug
  191. output.
  192. * minsyms.c (lookup_minimal_symbol): Add debug output.
  193. * objfiles.c (objfile_debug_name): Moved here, and renamed ...
  194. * symfile-debug.c (debug_objfile_name): ... from here. All callers
  195. updated.
  196. * objfiles.h (objfile_debug_name): Declare.
  197. * symtab.h (symbol_lookup_debug): Declare.
  198. * symtab.c (symbol_lookup_debug): New global.
  199. (lookup_language_this): Add debug output.
  200. (lookup_symbol_aux, lookup_symbol_in_block): Ditto.
  201. (lookup_symbol_in_objfile_symtabs, lookup_symbol_via_quick_fns): Ditto.
  202. (lookup_symbol_in_static_block, lookup_symbol_in_objfile): Ditto.
  203. (_initialize_symtab): Add new parameter "debug symbol-lookup".
  204. 2014-12-16 Doug Evans <xdje42@gmail.com>
  205. * buildsym.c: Add comments describing how the buildsym machinery
  206. is used by the various file formats.
  207. (really_free_pendings): Enhance function comment.
  208. See pending_macros to NULL. Simplify resetting pending_addrmap.
  209. Call free_buildsym_compunit.
  210. (free_buildsym_compunit): Set current_subfile to NULL.
  211. (prepare_for_building): New function.
  212. (start_symtab): Call it. Remove call to set_last_source_file.
  213. (restart_symtab): New arg "cust". All callers updated.
  214. Simplify, call prepare_for_building. Re-initialize buildsym_compunit.
  215. (reset_symtab_globals): Enhance function comment.
  216. Set local_symbols, file_symbols, global_symbols to NULL.
  217. Set pending_macros to NULL. Simplify resetting pending_addrmap.
  218. Call free_buildysym_compunit.
  219. (end_symtab_without_blockvector): Delete. All callers updated.
  220. (end_symtab_with_blockvector): Remove redundant call to
  221. free_buildsym_compunit.
  222. (augment_type_symtab): Remove arg "cust". All callers updated.
  223. (buildsym_init): Remove resetting of free_pendings, file_symbols,
  224. global_symbols, pending_blocks, pending_macros. Instead make
  225. handling consistent with pending_addrmap: Assert value was reset
  226. at end of previous symtab building. Initialize context_stack here.
  227. 2014-12-16 Doug Evans <xdje42@gmail.com>
  228. * cp-namespace.c (cp_lookup_symbol_via_imports): Renamed from
  229. cp_lookup_symbol_imports. All callers updated.
  230. 2014-12-16 Doug Evans <xdje42@gmail.com>
  231. * cp-namespace.c (cp_find_type_baseclass_by_name): Renamed from
  232. find_type_baseclass_by_name. All callers updated.
  233. 2014-12-16 Doug Evans <xdje42@gmail.com>
  234. * symtab.h (struct symbol_search) <symtab>: Delete. All uses updated.
  235. * symtab.c (compare_search_syms): Use SYMBOL_SYMTAB accessor.
  236. (print_symbol_info): Delete arg symtab. All callers updated.
  237. (symtab_symbol_info): Use SYMBOL_SYMTAB accessor.
  238. 2014-12-16 Andreas Arnez <arnez@vnet.linux.ibm.com>
  239. * user-regs.c (maintenance_print_user_registers): Swap "Nr" and
  240. "Name" columns. Assure that the output is always indented.
  241. 2014-12-16 Joel Brobecker <brobecker@adacore.com>
  242. * nat/linux-ptrace.h (PTRACE_O_EXITKILL): Define if not
  243. already defined.
  244. (linux_enable_event_reporting): Add parameter "attached".
  245. * nat/linux-ptrace.c (linux_test_for_exitkill): New forward
  246. declaration. New function.
  247. (linux_check_ptrace_features): Add linux_test_for_exitkill call.
  248. (linux_enable_event_reporting): Add new parameter "attached".
  249. Do not call ptrace with the PTRACE_O_EXITKILL if ATTACHED is
  250. nonzero.
  251. * linux-nat.c (linux_init_ptrace): Add parameter "attached".
  252. Use it. Update function description.
  253. (linux_child_post_attach, linux_child_post_startup_inferior):
  254. Update call to linux_enable_event_reporting.
  255. 2014-12-16 Yao Qi <yao@codesourcery.com>
  256. * NEWS: Move some entries to "Changes since GDB 7.8" section.
  257. 2014-12-16 Yao Qi <yao@codesourcery.com>
  258. * linux-tdep.c (linux_infcall_mmap): Replace ARG_MAX with
  259. ARG_LAST.
  260. 2014-12-15 Simon Marchi <simon.marchi@ericsson.com>
  261. * inferior.c (find_inferior_ptid): New function.
  262. * inferior.h (find_inferior_ptid): New declaration.
  263. * ada-tasks.c (ada_get_task_number): Use find_inferior_ptid.
  264. * corelow.c (core_pid_to_str): Same.
  265. * darwin-nat.c (darwin_resume): Same.
  266. * infrun.c (fetch_inferior_event): Same.
  267. (get_inferior_stop_soon): Same.
  268. (handle_inferior_event): Same.
  269. (handle_signal_stop): Same.
  270. * linux-nat.c (resume_lwp): Same.
  271. (stop_wait_callback): Same.
  272. * mi/mi-interp.c (mi_new_thread): Same.
  273. (mi_thread_exit): Same.
  274. * proc-service.c (ps_pglobal_lookup): Same.
  275. * record-btrace.c (record_btrace_step_thread): Same.
  276. * remote-sim.c (gdbsim_close_inferior): Same.
  277. (gdbsim_resume): Same.
  278. (gdbsim_stop): Same.
  279. * sol2-tdep.c (sol2_core_pid_to_str): Same.
  280. * target.c (memory_xfer_partial_1): Same.
  281. (default_thread_address_space): Same.
  282. * thread.c (thread_change_ptid): Same.
  283. (switch_to_thread): Same.
  284. (do_restore_current_thread_cleanup): Same.
  285. 2014-12-15 Simon Marchi <simon.marchi@ericsson.com>
  286. * defs.h (gdb_readline): Constify argument.
  287. (gdb_readline_wrapper): Same.
  288. (command_line_input): Same.
  289. (deprecated_readline_hook): Same.
  290. * top.c (deprecated_readline_hook): Same.
  291. (gdb_readline): Same.
  292. (gdb_readline_wrapper): Same.
  293. (command_line_input): Constify argument. Pass prompt_arg to called
  294. functions instead of local_prompt, overwriting prompt_arg if necessary.
  295. * event-top.h (display_gdb_prompt): Constify argument.
  296. * event-top.c (display_gdb_prompt): Same.
  297. * python/py-gdb-readline.c (gdbpy_readline_wrapper): Constify argument
  298. if building with Python 3.4 and up.
  299. 2014-12-15 Simon Marchi <simon.marchi@ericsson.com>
  300. * python/lib/gdb/prompt.py (_prompt_pwd): Use os.getcwd() instead of
  301. os.getcwdu().
  302. 2014-12-15 Catalin Udma <catalin.udma@freescale.com>
  303. PR gdb/15684
  304. * memattr.c (mem_info_command): Remove "unsigned long" casts.
  305. 2014-12-13 Doug Evans <xdje42@gmail.com>
  306. * utils.c (make_hex_string): Fix off-by-one error.
  307. 2014-12-13 Joel Brobecker <brobecker@adacore.com>
  308. * ada-lang.h (ada_ensure_varsize_limit): Declare.
  309. * ada-lang.c (check_size): Remove advance declaration.
  310. (ada_ensure_varsize_limit): Renames check_size.
  311. Replace calls to check_size by calls to ada_ensure_varsize_limit
  312. throughout.
  313. * ada-valprint.c (ada_val_print_ref): Add call to
  314. ada_ensure_varsize_limit. Add comment explaining why.
  315. 2014-12-13 Joel Brobecker <brobecker@adacore.com>
  316. * utils.c (make_hex_string): Replace use of sprintf by use of
  317. xsnprintf.
  318. 2014-12-13 Joel Brobecker <brobecker@adacore.com>
  319. * compile/compile-object-load.c (link_callbacks_multiple_definition)
  320. (link_callbacks_warning, link_callbacks_einfo): Remove trailing
  321. newline at end of warning message.
  322. 2014-12-13 Joel Brobecker <brobecker@adacore.com>
  323. * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Add support for
  324. new "EXTRA-ARGS" parameter.
  325. * configure.ac: If large-file support is disabled in GDB,
  326. pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
  327. * configure: Regenerate.
  328. 2014-12-13 Jan Kratochvil <jan.kratochvil@redhat.com>
  329. PR symtab/17642
  330. * gdbtypes.c (resolve_dynamic_type_internal): Apply check_typedef to
  331. TYPE if not TYPE_CODE_TYPEDEF.
  332. 2014-12-13 Joel Brobecker <brobecker@adacore.com>
  333. PR backtrace/16215:
  334. * dwarf2-frame.c (dwarf2_frame_cfa): Remove the restriction
  335. the frame unwinder must either be the dwarf2_frame_unwind
  336. or the dwarf2_tailcall_frame_unwind. Verify that this_frame's
  337. stack_addr is valid before calling get_frame_base. Throw
  338. an error if not valid.
  339. 2014-12-12 Doug Evans <xdje42@gmail.com>
  340. * valops.c (value_maybe_namespace_elt): Remove unnecessary test of
  341. result != NULL.
  342. 2014-12-12 Doug Evans <xdje42@gmail.com>
  343. * cp-support.h (cp_is_in_anonymous): Renamed from cp_is_anonymous.
  344. All callers updated. Rename arg "namespace" to "symbol_name".
  345. 2014-12-12 Doug Evans <xdje42@gmail.com>
  346. * psymtab.c (psym_map_symtabs_matching_filename): Renamed from
  347. partial_map_symtabs_matching_filename. All uses updated.
  348. (psym_find_pc_sect_compunit_symtab): Renamed from
  349. find_pc_sect_compunit_symtab_from_partial. All uses updated.
  350. Add function comment.
  351. (psym_lookup_symbol): Renamed from lookup_symbol_aux_psymtabs.
  352. All uses updated. Add function comment.
  353. (psym_relocate): Renamed from relocate_psymtabs. All uses updated.
  354. Add function comment.
  355. (psym_find_last_source_symtab): Renamed from
  356. find_last_source_symtab_from_partial. All uses updated.
  357. Add function comment.
  358. (psym_forget_cached_source_info): Renamed from
  359. forget_cached_source_info_partial. All uses updated.
  360. Add function comment.
  361. (psym_print_stats): Renamed from print_psymtab_stats_for_objfile.
  362. All uses updated. Add function comment.
  363. (psym_dump): Renamed from dump_psymtabs_for_objfile. All uses
  364. updated. Add function comment.
  365. (psym_expand_symtabs_for_function): Renamed from
  366. read_symtabs_for_function. All uses updated. Update function comment.
  367. (psym_expand_all_symtabs): Renamed from expand_partial_symbol_tables.
  368. All uses updated. Add function comment.
  369. (psym_expand_symtabs_with_fullname): Renamed from
  370. read_psymtabs_with_fullname. All uses updated. Add function comment.
  371. (psym_map_symbol_filenames): Renamed from map_symbol_filenames_psymtab.
  372. All uses updated. Add function comment.
  373. (psym_map_matching_symbols): Renamed from map_matching_symbols_psymtab.
  374. All uses updated.
  375. (psym_expand_symtabs_matching): Renamed from
  376. expand_symtabs_matching_via_partial. All uses updated.
  377. Add function comment.
  378. (psym_has_symbols): Renamed from objfile_has_psyms. All uses updated.
  379. Add function comment.
  380. 2014-12-12 Phil Muldoon <pmuldoon@redhat.com>
  381. Jan Kratochvil <jan.kratochvil@redhat.com>
  382. Tom Tromey <tromey@redhat.com>
  383. * NEWS: Update.
  384. * symtab.h (struct symbol_computed_ops) <generate_c_location>: New
  385. field.
  386. * p-lang.c (pascal_language_defn): Update.
  387. * opencl-lang.c (opencl_language_defn): Update.
  388. * objc-lang.c (objc_language_defn): Update.
  389. * m2-lang.c (m2_language_defn): Update.
  390. * language.h (struct language_defn) <la_get_compile_instance,
  391. la_compute_program>: New fields.
  392. * language.c (unknown_language_defn, auto_language_defn)
  393. (local_language_defn): Update.
  394. * jv-lang.c (java_language_defn): Update.
  395. * go-lang.c (go_language_defn): Update.
  396. * f-lang.c (f_language_defn): Update.
  397. * dwarf2loc.h (dwarf2_compile_property_to_c): Declare.
  398. * dwarf2loc.c (dwarf2_compile_property_to_c)
  399. (locexpr_generate_c_location, loclist_generate_c_location): New
  400. functions.
  401. (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Update.
  402. * defs.h (enum compile_i_scope_types): New.
  403. (enum command_control_type) <compile_control>: New constant.
  404. (struct command_line) <control_u>: New field.
  405. * d-lang.c (d_language_defn): Update.
  406. * compile/compile.c: New file.
  407. * compile/compile-c-support.c: New file.
  408. * compile/compile-c-symbols.c: New file.
  409. * compile/compile-c-types.c: New file.
  410. * compile/compile.h: New file.
  411. * compile/compile-internal.h: New file.
  412. * compile/compile-loc2c.c: New file.
  413. * compile/compile-object-load.c: New file.
  414. * compile/compile-object-load.h: New file.
  415. * compile/compile-object-run.c: New file.
  416. * compile/compile-object-run.h: New file.
  417. * cli/cli-script.c (multi_line_command_p, print_command_lines)
  418. (execute_control_command, process_next_line)
  419. (recurse_read_control_structure): Handle compile_control.
  420. * c-lang.h (c_get_compile_context, c_compute_program): Declare.
  421. * c-lang.c (c_language_defn, cplus_language_defn)
  422. (asm_language_defn, minimal_language_defn): Update.
  423. * ada-lang.c (ada_language_defn): Update.
  424. * Makefile.in (SUBDIR_GCC_COMPILE_OBS, SUBDIR_GCC_COMPILE_SRCS):
  425. New variables.
  426. (SFILES): Add SUBDIR_GCC_COMPILE_SRCS.
  427. (HFILES_NO_SRCDIR): Add compile.h.
  428. (COMMON_OBS): Add SUBDIR_GCC_COMPILE_OBS.
  429. (INIT_FILES): Add SUBDIR_GCC_COMPILE_SRCS.
  430. (compile.o, compile-c-types.o, compile-c-symbols.o)
  431. (compile-object-load.o, compile-object-run.o, compile-loc2c.o)
  432. (compile-c-support.o): New targets.
  433. 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
  434. * s390-linux-tdep.c (s390_gcc_target_options): New function.
  435. (s390_gdbarch_init): Add it to gdbarch.
  436. 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
  437. * linux-tdep.c: Include objfiles.h and infcall.h.
  438. (GDB_MMAP_MAP_PRIVATE, GDB_MMAP_MAP_ANONYMOUS, linux_infcall_mmap): New
  439. function.
  440. (linux_init_abi): Add linux_infcall_mmap to gdbarch.
  441. 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
  442. * dwarf2loc.h (dwarf2_reg_to_regnum_or_error): Declare.
  443. * dwarf2loc.c (dwarf2_reg_to_regnum_or_error): Rename from
  444. translate_register. Now public.
  445. (dwarf2_compile_expr_to_ax): Update.
  446. 2014-12-12 Tom Tromey <tromey@redhat.com>
  447. Jan Kratochvil <jan.kratochvil@redhat.com>
  448. * dwarf2loc.c (dwarf_expr_frame_base_1): Remove declaration.
  449. (dwarf_expr_frame_base): Update caller.
  450. (dwarf_expr_frame_base_1): Rename to ...
  451. (func_get_frame_base_dwarf_block): ... this and make it public.
  452. (dwarf2_compile_expr_to_ax, locexpr_describe_location_piece): Update
  453. callers.
  454. * dwarf2loc.h (func_get_frame_base_dwarf_block): New declaration.
  455. 2014-12-12 Tom Tromey <tromey@redhat.com>
  456. * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_call_frame_cfa>:
  457. Update.
  458. * dwarf2-frame.c (dwarf2_fetch_cfa_info): New function, based on
  459. dwarf2_compile_cfa_to_ax.
  460. (dwarf2_compile_cfa_to_ax): Remove.
  461. * dwarf2-frame.h (dwarf2_fetch_cfa_info): Declare.
  462. (dwarf2_compile_cfa_to_ax): Remove.
  463. 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
  464. * infcall.h (call_function_by_hand_dummy): Declare.
  465. * infcall.c (call_function_by_hand): Use
  466. call_function_by_hand_dummy.
  467. (call_function_by_hand_dummy): Rename from call_function_by_hand.
  468. Add arguments. Register a destructor.
  469. 2014-12-12 Tom Tromey <tromey@redhat.com>
  470. Jan Kratochvil <jan.kratochvil@redhat.com>
  471. * osabi.h (osabi_triplet_regexp): Declare.
  472. * osabi.c (struct osabi_names): New.
  473. (gdb_osabi_names): Change type to struct osabi_names. Update
  474. values.
  475. (gdbarch_osabi_name): Update.
  476. (osabi_triplet_regexp): New function.
  477. (osabi_from_tdesc_string, _initialize_gdb_osabi): Update.
  478. * i386-tdep.c (i386_gnu_triplet_regexp): New method.
  479. (i386_elf_init_abi, i386_go32_init_abi, i386_gdbarch_init): Call
  480. set_gdbarch_gnu_triplet_regexp.
  481. * gdbarch.sh (gnu_triplet_regexp): New method.
  482. * gdbarch.c, gdbarch.h: Rebuild.
  483. * arch-utils.h (default_gnu_triplet_regexp): Declare.
  484. * arch-utils.c (default_gnu_triplet_regexp): New function.
  485. 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
  486. * arch-utils.c (default_infcall_mmap)
  487. (default_gcc_target_options): New functions.
  488. * arch-utils.h (GDB_MMAP_PROT_READ, GDB_MMAP_PROT_WRITE)
  489. (GDB_MMAP_PROT_EXEC): Define.
  490. (default_infcall_mmap, default_gcc_target_options): Declare.
  491. * gdbarch.h: Rebuild.
  492. * gdbarch.c: Rebuild.
  493. * gdbarch.sh (infcall_mmap, gcc_target_options): New methods.
  494. 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
  495. * dummy-frame.c (struct dummy_frame) <dtor, dtor_data>: New
  496. fields.
  497. (pop_dummy_frame): Call the destructor if it exists.
  498. (register_dummy_frame_dtor, find_dummy_frame_dtor): New
  499. functions.
  500. * dummy-frame.h (dummy_frame_dtor_ftype): New typedef.
  501. (register_dummy_frame_dtor, find_dummy_frame_dtor): Declare.
  502. 2014-12-12 Tom Tromey <tromey@redhat.com>
  503. * gdbtypes.h (make_unqualified_type): Declare.
  504. * gdbtypes.c (make_unqualified_type): New function.
  505. 2014-12-12 Tom Tromey <tromey@redhat.com>
  506. * ui-file.h (ui_file_write_for_put): Declare.
  507. * ui-file.c (ui_file_write_for_put): New function.
  508. * mi/mi-out.c (do_write): Remove.
  509. (mi_out_put): Use ui_file_write_for_put.
  510. 2014-12-12 Doug Evans <dje@google.com>
  511. * NEWS: Mention gdb.lookup_objfile.
  512. * python/python.c (GdbMethods): Add lookup_objfile.
  513. * python/python-internal.h (gdbpy_lookup_objfile): Declare.
  514. * python/py-objfile.c: #include "symtab.h".
  515. (objfpy_build_id_ok, objfpy_build_id_matches): New functions.
  516. (objfpy_lookup_objfile_by_name): New function.
  517. (objfpy_lookup_objfile_by_build_id): New function.
  518. (gdbpy_lookup_objfile): New function.
  519. 2014-12-12 Maciej W. Rozycki <macro@codesourcery.com>
  520. * mips-tdep.h (MSYMBOL_TARGET_FLAG_MIPS16): New macro.
  521. (MSYMBOL_TARGET_FLAG_MICROMIPS): Likewise.
  522. * mips-tdep.c (mips_elf_make_msymbol_special): Use the new
  523. macros.
  524. (msymbol_is_mips, msymbol_is_mips16, msymbol_is_micromips):
  525. Likewise.
  526. 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
  527. * completer.c: Include "target.h", "reggroups.h", and
  528. "user-regs.h".
  529. (reg_or_group_completer): New.
  530. * completer.h (reg_or_group_completer): Declare.
  531. * infcmd.c (_initialize_infcmd): Set reg_or_group_completer for
  532. the "info registers" and "info all-registers" commands and the
  533. dbx-mode "lr" command.
  534. 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
  535. * user-regs.c: Include "arch-utils.h", "command.h", and
  536. "cli/cli-cmds.h".
  537. (maintenance_print_user_registers): New.
  538. (_initialize_user_regs): Register new "maint print user-registers"
  539. subcommand.
  540. * NEWS: Mention new GDB command "maint print user-registers".
  541. 2014-12-12 Maciej W. Rozycki <macro@codesourcery.com>
  542. Maciej W. Rozycki <macro@mips.com>
  543. Pedro Alves <pedro@codesourcery.com>
  544. * gdbarch.sh (elf_make_msymbol_special): Change type to `F',
  545. remove `predefault' and `invalid_p' initializers.
  546. (make_symbol_special): New architecture method.
  547. (adjust_dwarf2_addr, adjust_dwarf2_line): Likewise.
  548. (objfile, symbol): New declarations.
  549. * arch-utils.h (default_elf_make_msymbol_special): Remove
  550. prototype.
  551. (default_make_symbol_special): New prototype.
  552. (default_adjust_dwarf2_addr): Likewise.
  553. (default_adjust_dwarf2_line): Likewise.
  554. * mips-tdep.h (mips_unmake_compact_addr): New prototype.
  555. * arch-utils.c (default_elf_make_msymbol_special): Remove
  556. function.
  557. (default_make_symbol_special): New function.
  558. (default_adjust_dwarf2_addr): Likewise.
  559. (default_adjust_dwarf2_line): Likewise.
  560. * dwarf2-frame.c (decode_frame_entry_1): Call
  561. `gdbarch_adjust_dwarf2_addr'.
  562. * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
  563. * dwarf2read.c (create_addrmap_from_index): Likewise.
  564. (process_psymtab_comp_unit_reader): Likewise.
  565. (add_partial_symbol): Likewise.
  566. (add_partial_subprogram): Likewise.
  567. (process_full_comp_unit): Likewise.
  568. (read_file_scope): Likewise.
  569. (read_func_scope): Likewise. Call `gdbarch_make_symbol_special'.
  570. (read_lexical_block_scope): Call `gdbarch_adjust_dwarf2_addr'.
  571. (read_call_site_scope): Likewise.
  572. (dwarf2_ranges_read): Likewise.
  573. (dwarf2_record_block_ranges): Likewise.
  574. (read_attribute_value): Likewise.
  575. (dwarf_decode_lines_1): Call `gdbarch_adjust_dwarf2_line'.
  576. (new_symbol_full): Call `gdbarch_adjust_dwarf2_addr'.
  577. * elfread.c (elf_symtab_read): Don't call
  578. `gdbarch_elf_make_msymbol_special' if unset.
  579. * mips-linux-tdep.c (micromips_linux_sigframe_validate): Strip
  580. the ISA bit from the PC.
  581. * mips-tdep.c (mips_unmake_compact_addr): New function.
  582. (mips_elf_make_msymbol_special): Set the ISA bit in the symbol's
  583. address appropriately.
  584. (mips_make_symbol_special): New function.
  585. (mips_pc_is_mips): Set the ISA bit before symbol lookup.
  586. (mips_pc_is_mips16): Likewise.
  587. (mips_pc_is_micromips): Likewise.
  588. (mips_pc_isa): Likewise.
  589. (mips_adjust_dwarf2_addr): New function.
  590. (mips_adjust_dwarf2_line): Likewise.
  591. (mips_read_pc, mips_unwind_pc): Keep the ISA bit.
  592. (mips_addr_bits_remove): Likewise.
  593. (mips_skip_trampoline_code): Likewise.
  594. (mips_write_pc): Don't set the ISA bit.
  595. (mips_eabi_push_dummy_call): Likewise.
  596. (mips_o64_push_dummy_call): Likewise.
  597. (mips_gdbarch_init): Install `mips_make_symbol_special',
  598. `mips_adjust_dwarf2_addr' and `mips_adjust_dwarf2_line' gdbarch
  599. handlers.
  600. * solib.c (gdb_bfd_lookup_symbol_from_symtab): Get
  601. target-specific symbol address adjustments.
  602. * gdbarch.h: Regenerate.
  603. * gdbarch.c: Regenerate.
  604. 2014-12-12 Yao Qi <yao@codesourcery.com>
  605. PR tdep/14261
  606. * arm-tdep.c (arm_skip_prologue): Remove unused local variable
  607. 'skip_pc'. Remove code skipping prologue instructions, use
  608. arm_analyze_prologue instead.
  609. (arm_analyze_prologue): Stop the scanning for unrecognized
  610. instruction when skipping prologue.
  611. 2014-12-12 Yao Qi <yao@codesourcery.com>
  612. * arm-tdep.c (arm_instruction_restores_sp): New function.
  613. (arm_analyze_prologue): Call arm_instruction_restores_sp.
  614. (arm_in_function_epilogue_p): Move code to
  615. arm_instruction_restores_sp.
  616. 2014-12-11 Doug Evans <xdje42@gmail.com>
  617. * cp-namespace.c (cp_lookup_nested_symbol): Fix comments.
  618. 2014-12-11 Doug Evans <xdje42@gmail.com>
  619. * symtab.c (lookup_symbol_in_objfile_symtabs): Delete forward decl.
  620. (symbol *lookup_symbol_via_quick_fns): Ditto.
  621. (lookup_symbol_in_objfile): Add forward decl.
  622. (lookup_global_symbol_from_objfile): Simplify, call
  623. lookup_symbol_in_objfile.
  624. 2014-12-11 Doug Evans <xdje42@gmail.com>
  625. * symtab.c (domain_name) <MODULE_DOMAIN>: Add missing case.
  626. 2014-12-10 Simon Marchi <simon.marchi@ericsson.com>
  627. PR breakpoints/17012
  628. * breakpoint.c (remove_breakpoints_pid): Skip removing breakpoint if
  629. it is marked as persistent.
  630. 2014-12-10 Doug Evans <xdje42@gmail.com>
  631. * cp-namespace.c (cp_lookup_symbol_nonlocal): Move definition,
  632. closer to its subroutines.
  633. 2014-12-10 Doug Evans <xdje42@gmail.com>
  634. * cp-namespace.c (lookup_symbol_file): Move next to only caller.
  635. 2014-12-10 Doug Evans <xdje42@gmail.com>
  636. * cp-namespace.c (cp_lookup_symbol_imports): Make static.
  637. * cp-support.h (cp_lookup_symbol_imports): Delete.
  638. 2014-12-10 Simon Marchi <simon.marchi@ericsson.com>
  639. PR gdb/17627
  640. * target.c (cleanup_restore_target_terminal): New function.
  641. (make_cleanup_restore_target_terminal): New function.
  642. * target.h (make_cleanup_restore_target_terminal): New declaration.
  643. * mi/mi-interp.c (mi_thread_exit): Use the new cleanup.
  644. 2014-12-08 Doug Evans <dje@google.com>
  645. * python/py-objfile.c (objfpy_get_owner): Increment refcount of result.
  646. 2014-12-08 Doug Evans <dje@google.com>
  647. * NEWS: Mention gdb.Objfile.owner.
  648. * python/py-objfile.c (objfpy_get_owner): New function.
  649. (objfile_getset): Add "owner".
  650. 2014-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
  651. * symtab.c (lookup_symbol_in_objfile_symtabs): New declaration.
  652. (lookup_global_symbol_from_objfile): Call it.
  653. 2014-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
  654. Remove const from struct objfile *.
  655. * solib-darwin.c, solib-spu.c, solib-svr4.c, solib.c, solist.h,
  656. symtab.c, symtab.h: In these files.
  657. 2014-12-05 Andreas From <andreas.from@ericsson.com>
  658. * MAINTAINERS (Write After Approval): Add "Andreas From"
  659. 2014-12-05 Doug Evans <xdje42@gmail.com>
  660. Revert:
  661. PR symtab/17602
  662. * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
  663. 2014-12-04 Doug Evans <dje@google.com>
  664. * NEWS: Mention gdb.Objfile.add_separate_debug_file.
  665. * python/py-objfile.c (objfpy_add_separate_debug_file): New function.
  666. (objfile_getset): Add "add_separate_debug_file".
  667. 2014-12-04 Doug Evans <dje@google.com>
  668. * NEWS: Mention gdb.Objfile.build_id.
  669. * build-id.c (build_id_bfd_get): Make non-static.
  670. * build-id.h (build_id_bfd_get): Add declaration.
  671. * python/py-objfile.c: #include "build-id.h", "elf-bfd.h".
  672. (OBJFPY_REQUIRE_VALID): New macro.
  673. (objfpy_get_build_id): New function.
  674. (objfile_getset): Add "build_id".
  675. * utils.c (make_hex_string): New function.
  676. * utils.h (make_hex_string): Add declaration.
  677. 2014-12-04 Jan Kratochvil <jan.kratochvil@redhat.com>
  678. * block.c (block_lookup_symbol_primary): New function.
  679. * block.h (block_lookup_symbol_primary): New declaration.
  680. * symtab.c (lookup_symbol_in_objfile_symtabs): Assert BLOCK_INDEX.
  681. Call block_lookup_symbol_primary.
  682. 2014-12-03 Maciej W. Rozycki <macro@codesourcery.com>
  683. * tramp-frame.h (tramp_frame): Add `validate' member.
  684. * tramp-frame.c (tramp_frame_start): Validate trampoline before
  685. scanning.
  686. * mips-linux-tdep.c (MICROMIPS_INST_LI_V0): New macro.
  687. (MICROMIPS_INST_POOL32A, MICROMIPS_INST_SYSCALL): Likewise.
  688. (mips_linux_o32_sigframe): Initialize `validate' member.
  689. (mips_linux_o32_rt_sigframe): Likewise.
  690. (mips_linux_n32_rt_sigframe): Likewise.
  691. (mips_linux_n64_rt_sigframe): Likewise.
  692. (micromips_linux_o32_sigframe): New variable.
  693. (micromips_linux_o32_rt_sigframe): Likewise.
  694. (micromips_linux_n32_rt_sigframe): Likewise.
  695. (micromips_linux_n64_rt_sigframe): Likewise.
  696. (mips_linux_o32_sigframe_init): Handle microMIPS trampolines.
  697. (mips_linux_n32n64_sigframe_init): Likewise.
  698. (mips_linux_sigframe_validate): New function.
  699. (micromips_linux_sigframe_validate): Likewise.
  700. (mips_linux_init_abi): Install microMIPS trampoline unwinders.
  701. 2014-12-03 Ulrich Weigand  <uweigand@de.ibm.com>
  702. * config/sparc/sol2.mh (NATDEPFILES): Remove core-regset.o.
  703. * sparc-sol2-tdep.c: Include "regset.h".
  704. (sparc32_sol2_supply_core_gregset): New function.
  705. (sparc32_sol2_collect_core_gregset): Likewise.
  706. (sparc32_sol2_supply_core_fpregset): Likewise.
  707. (sparc32_sol2_collect_core_fpregset): Likewise.
  708. (sparc32_sol2_gregset, sparc32_sol2_fpregset): New variables.
  709. (sparc32_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
  710. tdep->fpregset/sizeof_fpregset.
  711. * sparc64-sol2-tdep.c: Include "regset.h".
  712. (sparc64_sol2_supply_core_gregset): New function.
  713. (sparc64_sol2_collect_core_gregset): Likewise.
  714. (sparc64_sol2_supply_core_fpregset): Likewise.
  715. (sparc64_sol2_collect_core_fpregset): Likewise.
  716. (sparc64_sol2_gregset, sparc64_sol2_fpregset): New variables.
  717. (sparc64_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
  718. tdep->fpregset/sizeof_fpregset.
  719. 2014-12-03 Simon Marchi <simon.marchi@ericsson.com>
  720. * common/cleanups.c (make_cleanup_dtor): Use typedef for dtor
  721. type.
  722. 2014-12-02 Doug Evans <dje@google.com>
  723. * symtab.c (symbol_init_cplus_specific): Delete.
  724. (symbol_set_demangled_name): Remove special c++ support.
  725. (symbol_get_demangled_name, symbol_set_language): Ditto.
  726. * symtab.h (struct cplus_specific): Delete.
  727. (struct general_symbol_info) <language_specific>: Remove
  728. cplus_specific.
  729. 2014-12-02 Doug Evans <dje@google.com>
  730. PR symtab/17602
  731. * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
  732. 2014-12-02 Doug Evans <dje@google.com>
  733. PR symtab/17591
  734. * dwarf2read.c (find_slot_in_mapped_hash): Use cp_remove_params
  735. to strip parameters.
  736. 2014-12-02 Doug Evans <dje@google.com>
  737. * dwarf2read.c (peek_die_abbrev): Improve error message text.
  738. 2014-12-02 Doug Evans <dje@google.com>
  739. * valops.c (do_search_struct_field): Remove remnant of Chill support.
  740. Ref: commit 4c2260aa5c261f7bfb26dcf3aa7c67876720b17e
  741. 2014-12-02 Simon Marchi <simon.marchi@ericsson.com>
  742. * common/cleanups.c (make_cleanup_dtor): Fix comment typo.
  743. 2014-12-02 Nick Bull <nicholaspbull@gmail.com>
  744. * NEWS: Mention new Python events.
  745. * Makefile.in (SUBDIR_PYTHON_OBS): Add py-infevents.o.
  746. (SUBDIR_PYTHON_SRCS): Add py-infevents.c.
  747. (py-infevents.o): New rule.
  748. * infcall.c (call_function_by_hand): Notify observer before and
  749. after inferior call.
  750. * python/py-event.h (inferior_call_kind): New enum.
  751. (emit_inferior_call_event): New prototype.
  752. (emit_register_changed_event): New prototype.
  753. (emit_memory_changed_event): New prototype.
  754. * python/py-events.h (events_object): New registries
  755. inferior_call, memory_changed and register_changed.
  756. * python/py-evts.c (gdbpy_initialize_py_events): Add the
  757. inferior_call, memory_changed and register_changed registries.
  758. * python/py-infevents.c: New.
  759. * python/py-inferior.c (python_on_inferior_call_pre)
  760. (python_on_inferior_call_post, python_on_register_change)
  761. (python_on_memory_change): New functions.
  762. (gdbpy_initialize_inferior): Attach python handler to new
  763. observers.
  764. * python/py-infthread.c(gdbpy_create_ptid_object): New.
  765. (thpy_get_ptid) Use gdbpy_create_ptid_object.
  766. * python/python-internal.h:
  767. (gdbpy_create_ptid_object)
  768. (gdbpy_initialize_inferior_call_pre_event)
  769. (gdbpy_initialize_inferior_call_post_event)
  770. (gdbpy_initialize_register_changed_event)
  771. (gdbpy_initialize_memory_changed_event): New prototypes.
  772. * python/python.c (_initialize_python): Initialize new events.
  773. * valops.c (value_assign): Notify register_changed observer.
  774. 2014-12-02 Doug Evans <dje@google.com>
  775. * python/py-infthread.c: Whitespace fixes.
  776. 2014-12-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
  777. * features/Makefile (s390-te-linux64-expedite): Replace
  778. non-existant r14 and r15 by r14l and r15l, respectively.
  779. * regformats/s390-te-linux64.dat: Regenerate.
  780. 2014-12-01 Simon Marchi <simon.marchi@ericsson.com>
  781. * objfiles.c (allocate_objfile): Remove duplicate comment.
  782. 2014-12-01 Ulrich Weigand  <uweigand@de.ibm.com>
  783. * config/i386/i386gnu.mh (NATDEPFILES): Remove core-regset.o.
  784. * i386gnu-nat.c: Do not include <sys/procfs.h> or "gregset.h".
  785. (CREG_OFFSET, creg_offset, CREG_ADDR): Remove.
  786. (supply_gregset, supply_fpregset): Remove.
  787. * i386gnu-tdep.c (i386gnu_gregset_reg_offset): New variable.
  788. (i386gnu_init_abi): Set tdep->gregset_reg_offset, gregset_num_regs,
  789. and sizeof_gregset.
  790. 2014-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
  791. Add add-auto-load-scripts-directory.
  792. * NEWS (Changes since GDB 7.8): Add add-auto-load-scripts-directory.
  793. * auto-load.c (add_auto_load_dir): New function.
  794. (_initialize_auto_load): Install it.
  795. 2014-11-30 Martin Galvan <martin.galvan@tallertechnologies.com> (tiny patch, obvious)
  796. Pushed by Joel Brobecker <brobecker@adacore.com>.
  797. * frame.c (frame_id_eq): Fix the check for FID_STACK_INVALID.
  798. 2014-11-29 Siva Chandra Reddy <sivachandra@google.com>
  799. * eval.c (evaluate_subexp): Check that the thread stack temporaries
  800. are not already enabled before enabling them.
  801. 2014-11-29 Yao Qi <yao@codesourcery.com>
  802. * arm-tdep.c (arm_analyze_prologue): Move local variables
  803. 'framereg' and 'framesize' to inner block. Move code to
  804. inner block too.
  805. 2014-11-28 Siva Chandra Reddy <sivachandra@google.com>
  806. * eval.c: Include gdbthread.h.
  807. (evaluate_subexp): Enable thread stack temporaries before
  808. evaluating a complete expression and clean them up after the
  809. evaluation is complete.
  810. * gdbthread.h: Include common/vec.h.
  811. (value_ptr): New typedef.
  812. (VEC (value_ptr)): New vector type.
  813. (value_vec): New typedef.
  814. (struct thread_info): Add new fields stack_temporaries_enabled
  815. and stack_temporaries.
  816. (enable_thread_stack_temporaries)
  817. (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
  818. (get_last_thread_stack_temporary)
  819. (value_in_thread_stack_temporaries): Declare.
  820. * gdbtypes.c (class_or_union_p): New function.
  821. * gdbtypes.h (class_or_union_p): Declare.
  822. * infcall.c (call_function_by_hand): Store return values of class
  823. type as temporaries on stack.
  824. * thread.c (enable_thread_stack_temporaries): New function.
  825. (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
  826. (get_last_thread_stack_temporary): Likewise.
  827. (value_in_thread_stack_temporaries): Likewise.
  828. * value.c (value_force_lval): New function.
  829. * value.h (value_force_lval): Declare.
  830. 2014-11-28 Pierre Muller <muller@sourceware.org>
  831. Pushed by Joel Brobecker <brobecker@adacore.com>.
  832. * amd64-tdep.c (amd64_dwarf_regmap array): Add missing MMX
  833. registers.
  834. 2014-11-28 Ulrich Weigand  <uweigand@de.ibm.com>
  835. * config/ia64/linux.mh (NATDEPFILES): Remove core-regset.o.
  836. * config/sparc/linux.mh (NATDEPFILES): Likewise.
  837. * config/sparc/linux64.mh (NATDEPFILES): Likewise.
  838. * m68klinux-nat.c (fetch_core_registers): Remove.
  839. (linux_elf_core_fns): Remove.
  840. (_initialize_m68k_linux_nat): Do not call deprecated_add_core_fns.
  841. 2014-11-28 Joel Brobecker <brobecker@adacore.com>
  842. * utils.c (gdb_realpath): Rework comment about handling on
  843. Windows.
  844. 2014-11-28 Yao Qi <yao@codesourcery.com>
  845. * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
  846. rename.
  847. * gnulib/aclocal.m4: Re-generated.
  848. * gnulib/config.in: Re-generated.
  849. * gnulib/configure: Re-generated.
  850. * gnulib/import/Makefile.am: Re-generated.
  851. * gnulib/import/Makefile.in: Re-generated.
  852. * gnulib/import/m4/gnulib-cache.m4: Re-generated.
  853. * gnulib/import/m4/gnulib-comp.m4: Re-generated.
  854. * import/basename-lgpl.c: New file.
  855. * import/dirname-lgpl.c: New file.
  856. * import/dirname.h: New file.
  857. * import/m4/dirname.m4: New file.
  858. * import/m4/malloc.m4: New file.
  859. * import/m4/rename.m4: New file.
  860. * import/m4/rmdir.m4: New file.
  861. * import/m4/stdio_h.m4: New file.
  862. * import/malloc.c: New file.
  863. * import/rename.c: New file.
  864. * import/rmdir.c: New file.
  865. * import/same-inode.h: New file.
  866. * import/stdio.c: New file.
  867. * import/stdio.in.h: New file.
  868. * import/stripslash.c: New file.
  869. 2014-11-28 Yao Qi <yao@codesourcery.com>
  870. * configure.ac (AC_CHECK_FUNCS): Remove canonicalize_file_name
  871. and realpath.
  872. * config.in: Re-generated.
  873. * configure: Re-generated.
  874. * utils.c (gdb_realpath): Remove code calling realpath,
  875. canonicalize_file_name and pathconf.
  876. [!_WIN32]: Call canonicalize_file_name.
  877. 2014-11-28 Yao Qi <yao@codesourcery.com>
  878. * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
  879. canonicalize-lgpl.
  880. * aclocal.m4: Re-generated.
  881. * config.in: Re-generated.
  882. * configure: Re-generated.
  883. * import/Makefile.am: Re-generated.
  884. * import/Makefile.in: Re-generated.
  885. * import/m4/gnulib-cache.m4: Re-generated.
  886. * import/m4/gnulib-comp.m4: Re-generated.
  887. * import/canonicalize-lgpl.c: New file.
  888. * import/extra/snippet/_Noreturn.h: New file.
  889. * import/m4/canonicalize.m4: New file.
  890. * import/m4/double-slash-root.m4: New file.
  891. * import/m4/eealloc.m4: New file.
  892. * import/m4/malloca.m4: New file.
  893. * import/m4/nocrash.m4: New file.
  894. * import/m4/stdlib_h.m4: New file.
  895. * import/malloca.c: New file.
  896. * import/malloca.h: New file.
  897. * import/malloca.valgrind: New file.
  898. 2014-11-28 Yao Qi <yao@codesourcery.com>
  899. * configure.ac (AC_CHECK_FUNCS): Remove lstat.
  900. * config.in, configure: Regenerate.
  901. * symfile.c (find_separate_debug_file_by_debuglink): Remove
  902. code checking HAVE_LSTAT is defined.
  903. 2014-11-28 Yao Qi <yao@codesourcery.com>
  904. * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
  905. lstat.
  906. * gnulib/aclocal.m4: Re-generated.
  907. * gnulib/config.in: Re-generated.
  908. * gnulib/configure: Re-generated.
  909. * gnulib/import/Makefile.am: Re-generated.
  910. * gnulib/import/Makefile.in: Re-generated.
  911. * gnulib/import/m4/gnulib-cache.m4: Re-generated.
  912. * gnulib/import/m4/gnulib-comp.m4: Re-generated.
  913. * gnulib/import/lstat.c: New file.
  914. * gnulib/import/m4/lstat.m4: New file.
  915. 2014-11-28 Yao Qi <yao@codesourcery.com>
  916. * configure.ac (AC_CHECK_FUNCS): Remove readlink.
  917. * config.in, configure: Re-generate.
  918. * inf-child.c (inf_child_fileio_readlink): Don't check
  919. HAVE_READLINK is defined.
  920. 2014-11-28 Yao Qi <yao@codesourcery.com>
  921. * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add readlink.
  922. * gnulib/aclocal.m4: Re-generated.
  923. * gnulib/config.in: Likewise.
  924. * gnulib/configure: Likewise.
  925. * gnulib/import/Makefile.am: Likewise.
  926. * gnulib/import/Makefile.in: Likewise.
  927. * gnulib/import/m4/gnulib-cache.m4: Likewise.
  928. * gnulib/import/m4/gnulib-comp.m4: Likewise.
  929. * gnulib/import/dosname.h: New file
  930. * gnulib/import/m4/largefile.m4: New file.
  931. * gnulib/import/m4/readlink.m4: New file.
  932. * gnulib/import/m4/stat.m4: New file.
  933. * gnulib/import/readlink.c: New file.
  934. * gnulib/import/stat.c: New file.
  935. 2014-11-26 Mark Wielaard <mjw@redhat.com>
  936. * dwarf2read.c (set_cu_language): Recognize DW_LANG_C11,
  937. DW_LANG_C_plus_plus_11, DW_LANG_C_plus_plus_14.
  938. 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
  939. * nios2-tdep.c (nios2_analyze_prologue): Replace restriction
  940. that there can be only one stack adjustment in the prologue
  941. with tests to detect specific disallowed stack adjustments.
  942. 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
  943. * nios2-tdep.c (nios2_in_epilogue_p): Handle multiple stack
  944. adjustments.
  945. 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
  946. * nios2-tdep.c (nios2_fetch_insn): Move up in file. Disassemble
  947. the instruction as well as reading it from memory.
  948. (nios2_match_add): New.
  949. (nios2_match_sub): New.
  950. (nios2_match_addi): New.
  951. (nios2_match_orhi): New.
  952. (nios2_match_stw): New.
  953. (nios2_match_ldw): New.
  954. (nios2_match_rdctl): New.
  955. (enum branch_condition): New.
  956. (nios2_match_branch): New.
  957. (nios2_match_jmpi): New.
  958. (nios2_match_calli): New.
  959. (nios2_match_jmpr): New.
  960. (nios2_match_callr): New.
  961. (nios2_match_break): New.
  962. (nios2_match_trap): New.
  963. (nios2_in_epilogue_p): Rewrite to use new functions.
  964. (nios2_analyze_prologue): Likewise.
  965. (nios2_skip_prologue): Delete unused local limit_pc.
  966. (nios2_breakpoint_from_pc): Make R1-specific encodings explicit.
  967. (nios2_get_next_pc): Rewrite to use new functions.
  968. 2014-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
  969. * gdbtypes.c (resolve_dynamic_type_internal): Reindent the code.
  970. 2014-11-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
  971. Pushed by Joel Brobecker <brobecker@adacore.com>
  972. * gnu-nat.c (inf_validate_procinfo): Multiply the number of
  973. elements pi_len by the size of the elements before calling
  974. vm_deallocate.
  975. (inf_validate_task_sc): Likewise, and properly deallocate the
  976. noise array.
  977. 2014-11-23 Doug Evans <xdje42@gmail.com>
  978. * gdbtypes.c (print_args): Renamed from print_arg_types. Print arg
  979. number and name if present. All callers updated.
  980. (dump_fn_fieldlists): Fix indentation of args.
  981. 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
  982. * MAINTAINERS (Write After Approval): Add myself.
  983. 2014-11-23 Joel Brobecker <brobecker@adacore.com>
  984. * breakpoint.c (bp_loc_is_permanent): Return 0 if LOC corresponds
  985. to a bp_call_dummy breakpoint type.
  986. 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
  987. * tui/tui-win.c (tui_initialize_win): Specify SA_RESTART when
  988. registering the signal handler.
  989. 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
  990. * event-top.h (call_stdin_event_handler_again_p): Declare.
  991. * event-top.c (call_stdin_event_handler_again_p): Define.
  992. (stdin_event_handler): Use it.
  993. * tui/tui-io.c (tui_getc): Prepare to call the stdin event
  994. handler again if there is pending input following a
  995. start sequence.
  996. 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
  997. Pushed by Joel Brobecker <brobecker@adacore.com>
  998. * linux-fork.c (checkpoint_command): Print index of new
  999. checkpoint in response message.
  1000. 2014-11-23 Yao Qi <yao@codesourcery.com>
  1001. * valprint.c (read_string): Move local variables 'found_nul',
  1002. 'chunksize' and 'limit' to inner scope. Update comments.
  1003. 2014-11-22 Doug Evans <xdje42@gmail.com>
  1004. * symtab.c (lookup_symbol_in_objfile_from_linkage_name): Improve
  1005. function comment.
  1006. (search_symbols): Fix comments and whitespace.
  1007. 2014-11-22 Doug Evans <xdje42@gmail.com>
  1008. * cp-namespace.c (cp_lookup_symbol_nonlocal): Fix comment.
  1009. 2014-11-21 Doug Evans <dje@google.com>
  1010. * psymtab.c (psymtab_search_name): Fix whitespace.
  1011. 2014-11-21 Yao Qi <yao@codesourcery.com>
  1012. * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
  1013. errno.
  1014. * gnulib/import/Makefile.am: Re-generated.
  1015. * gnulib/import/Makefile.in: Likewise.
  1016. * gnulib/import/m4/gnulib-cache.m4: Likewise.
  1017. 2014-11-21 Yao Qi <yao@codesourcery.com>
  1018. * gdb_wchar.h: Include wchar.h and wctype.h.
  1019. [HAVE_ICONV && HAVE_BTOWC]: Don't check HAVE_WCHAR_T and don't
  1020. include wchar.h and wctype.h.
  1021. Don't check HAVE_WCHAR_H.
  1022. 2014-11-21 Yao Qi <yao@codesourcery.com>
  1023. * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add wchar
  1024. and wctype-h.
  1025. * gnulib/import/Makefile.am: Re-generated.
  1026. * gnulib/import/Makefile.in: Likewise.
  1027. * gnulib/import/m4/gnulib-cache.m4: Likewise.
  1028. 2014-11-21 Yao Qi <yao@codesourcery.com>
  1029. * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
  1030. memchr.
  1031. * gnulib/import/Makefile.am: Re-generated.
  1032. * gnulib/import/Makefile.in: Likewise.
  1033. * gnulib/import/m4/gnulib-cache.m4: Likewise.
  1034. 2014-11-21 Yao Qi <yao@codesourcery.com>
  1035. * common/common-defs.h: Include alloca.h
  1036. * configure.ac: Don't invoke AC_FUNC_ALLOCA.
  1037. * configure: Re-generated.
  1038. * defs.h: Remove code handling alloca.
  1039. * utils.c (gdb_realpath): Don't check HAVE_ALLOCA is defined
  1040. or not.
  1041. 2014-11-21 Yao Qi <yao@codesourcery.com>
  1042. * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULE): Add
  1043. alloca.
  1044. * gnulib/import/Makefile.am: Re-generated.
  1045. * gnulib/import/Makefile.in: Likewise..
  1046. * gnulib/import/m4/gnulib-cache.m4: Likewise.
  1047. 2014-11-21 Yao Qi <yao@codesourcery.com>
  1048. * gnulib/update-gnulib.sh: Make IMPORTED_GNULIB_MODULES in
  1049. alphabetical order.
  1050. 2014-11-21 Joel Brobecker <brobecker@adacore.com>
  1051. * gdbtypes.c (create_range_type): Unset RESULT_TYPE's
  1052. flag_unsigned if HIGH_BOUND is constant and negative.
  1053. 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
  1054. PR breakpoints/10737
  1055. * xml-syscall.c (set_xml_syscall_file_name): Remove "const"
  1056. modifier from "struct gdbarch" when compiling without Expat (XML)
  1057. support.
  1058. (get_syscall_by_number): Likewise.
  1059. (get_syscall_by_name): Likewise.
  1060. (get_syscall_names): Likewise.
  1061. 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
  1062. PR breakpoints/10737
  1063. * amd64-linux-tdep.c (amd64_linux_init_abi_common): Adjust call to
  1064. set_xml_syscall_file_name to provide gdbarch.
  1065. * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
  1066. * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
  1067. * breakpoint.c (print_it_catch_syscall): Adjust call to
  1068. get_syscall_by_number to provide gdbarch.
  1069. (print_one_catch_syscall): Likewise.
  1070. (print_mention_catch_syscall): Likewise.
  1071. (print_recreate_catch_syscall): Likewise.
  1072. (catch_syscall_split_args): Adjust calls to get_syscall_by_number
  1073. and get_syscall_by_name to provide gdbarch.
  1074. (catch_syscall_completer): Adjust call to get_syscall_names to
  1075. provide gdbarch.
  1076. * gdbarch.c: Regenerate.
  1077. * gdbarch.h: Likewise.
  1078. * gdbarch.sh: Forward declare "struct syscalls_info".
  1079. (xml_syscall_file): New variable.
  1080. (syscalls_info): Likewise.
  1081. * i386-linux-tdep.c (i386_linux_init_abi): Adjust call to
  1082. set_xml_syscall_file_name to provide gdbarch.
  1083. * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
  1084. * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
  1085. * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
  1086. * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
  1087. * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
  1088. * xml-syscall.c: Include gdbarch.h.
  1089. (set_xml_syscall_file_name): Accept gdbarch parameter.
  1090. (get_syscall_by_number): Likewise.
  1091. (get_syscall_by_name): Likewise.
  1092. (get_syscall_names): Likewise.
  1093. (my_gdb_datadir): Delete global variable.
  1094. (struct syscalls_info) <my_gdb_datadir>: New variable.
  1095. (struct syscalls_info) <sysinfo>: Rename variable to
  1096. "syscalls_info".
  1097. (sysinfo): Delete global variable.
  1098. (have_initialized_sysinfo): Likewise.
  1099. (xml_syscall_file): Likewise.
  1100. (sysinfo_free_syscalls_desc): Rename to...
  1101. (syscalls_info_free_syscalls_desc): ... this.
  1102. (free_syscalls_info): Rename "sysinfo" to "syscalls_info". Adjust
  1103. code to the new layout of "struct syscalls_info".
  1104. (make_cleanup_free_syscalls_info): Rename parameter "sysinfo" to
  1105. "syscalls_info".
  1106. (syscall_create_syscall_desc): Likewise.
  1107. (syscall_start_syscall): Likewise.
  1108. (syscall_parse_xml): Likewise.
  1109. (xml_init_syscalls_info): Likewise. Drop "const" from return value.
  1110. (init_sysinfo): Rename to...
  1111. (init_syscalls_info): ...this. Add gdbarch as a parameter.
  1112. Adjust function to deal with gdbarch.
  1113. (xml_get_syscall_number): Delete parameter sysinfo. Accept
  1114. gdbarch as a parameter. Adjust code.
  1115. (xml_get_syscall_name): Likewise.
  1116. (xml_list_of_syscalls): Likewise.
  1117. (set_xml_syscall_file_name): Accept gdbarch as parameter.
  1118. (get_syscall_by_number): Likewise.
  1119. (get_syscall_by_name): Likewise.
  1120. (get_syscall_names): Likewise.
  1121. * xml-syscall.h (set_xml_syscall_file_name): Likewise.
  1122. (get_syscall_by_number): Likewise.
  1123. (get_syscall_by_name): Likewise.
  1124. (get_syscall_names): Likewise.
  1125. 2014-11-20 Doug Evans <xdje42@gmail.com>
  1126. Split struct symtab into two: struct symtab and compunit_symtab.
  1127. * amd64-tdep.c (amd64_skip_xmm_prologue): Fetch producer from compunit.
  1128. * block.c (blockvector_for_pc_sect): Change "struct symtab *" argument
  1129. to "struct compunit_symtab *". All callers updated.
  1130. (set_block_compunit_symtab): Renamed from set_block_symtab. Change
  1131. "struct symtab *" argument to "struct compunit_symtab *".
  1132. All callers updated.
  1133. (get_block_compunit_symtab): Renamed from get_block_symtab. Change
  1134. result to "struct compunit_symtab *". All callers updated.
  1135. (find_iterator_compunit_symtab): Renamed from find_iterator_symtab.
  1136. Change result to "struct compunit_symtab *". All callers updated.
  1137. * block.h (struct global_block) <compunit_symtab>: Renamed from symtab.
  1138. hange type to "struct compunit_symtab *". All uses updated.
  1139. (struct block_iterator) <d.compunit_symtab>: Renamed from "d.symtab".
  1140. Change type to "struct compunit_symtab *". All uses updated.
  1141. * buildsym.c (struct buildsym_compunit): New struct.
  1142. (subfiles, buildsym_compdir, buildsym_objfile, main_subfile): Delete.
  1143. (buildsym_compunit): New static global.
  1144. (finish_block_internal): Update to fetch objfile from
  1145. buildsym_compunit.
  1146. (make_blockvector): Delete objfile argument.
  1147. (start_subfile): Rewrite to use buildsym_compunit. Don't initialize
  1148. debugformat, producer.
  1149. (start_buildsym_compunit): New function.
  1150. (free_buildsym_compunit): Renamed from free_subfiles_list.
  1151. All callers updated.
  1152. (patch_subfile_names): Rewrite to use buildsym_compunit.
  1153. (get_compunit_symtab): New function.
  1154. (get_macro_table): Delete argument comp_dir. All callers updated.
  1155. (start_symtab): Change result to "struct compunit_symtab *".
  1156. All callers updated. Create the subfile of the main source file.
  1157. (watch_main_source_file_lossage): Rewrite to use buildsym_compunit.
  1158. (reset_symtab_globals): Update.
  1159. (end_symtab_get_static_block): Update to use buildsym_compunit.
  1160. (end_symtab_without_blockvector): Rewrite.
  1161. (end_symtab_with_blockvector): Change result to
  1162. "struct compunit_symtab *". All callers updated.
  1163. Update to use buildsym_compunit. Don't set symtab->dirname,
  1164. instead set it in the compunit.
  1165. Explicitly make sure main symtab is first in its list.
  1166. Set debugformat, producer, blockvector, block_line_section, and
  1167. macrotable in the compunit.
  1168. (end_symtab_from_static_block): Change result to
  1169. "struct compunit_symtab *". All callers updated.
  1170. (end_symtab, end_expandable_symtab): Ditto.
  1171. (set_missing_symtab): Change symtab argument to
  1172. "struct compunit_symtab *". All callers updated.
  1173. (augment_type_symtab): Ditto.
  1174. (record_debugformat): Update to use buildsym_compunit.
  1175. (record_producer): Update to use buildsym_compunit.
  1176. * buildsym.h (struct subfile) <dirname>: Delete.
  1177. <producer, debugformat>: Delete.
  1178. <buildsym_compunit>: New member.
  1179. (get_compunit_symtab): Declare.
  1180. * dwarf2read.c (struct type_unit_group) <compunit_symtab>: Renamed
  1181. from primary_symtab. Change type to "struct compunit_symtab *".
  1182. All uses updated.
  1183. (dwarf2_start_symtab): Change result to "struct compunit_symtab *".
  1184. All callers updated.
  1185. (dwarf_decode_macros): Delete comp_dir argument. All callers updated.
  1186. (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Renamed from
  1187. symtab. Change type to "struct compunit_symtab *". All uses updated.
  1188. (dw2_instantiate_symtab): Change result to "struct compunit_symtab *".
  1189. All callers updated.
  1190. (dw2_find_last_source_symtab): Ditto.
  1191. (dw2_lookup_symbol): Ditto.
  1192. (recursively_find_pc_sect_compunit_symtab): Renamed from
  1193. recursively_find_pc_sect_symtab. Change result to
  1194. "struct compunit_symtab *". All callers updated.
  1195. (dw2_find_pc_sect_compunit_symtab): Renamed from
  1196. dw2_find_pc_sect_symtab. Change result to
  1197. "struct compunit_symtab *". All callers updated.
  1198. (get_compunit_symtab): Renamed from get_symtab. Change result to
  1199. "struct compunit_symtab *". All callers updated.
  1200. (recursively_compute_inclusions): Change type of immediate_parent
  1201. argument to "struct compunit_symtab *". All callers updated.
  1202. (compute_compunit_symtab_includes): Renamed from
  1203. compute_symtab_includes. All callers updated. Rewrite to compute
  1204. includes of compunit_symtabs and not symtabs.
  1205. (process_full_comp_unit): Update to work with struct compunit_symtab.
  1206. (process_full_type_unit): Ditto.
  1207. (dwarf_decode_lines_1): Delete argument comp_dir. All callers updated.
  1208. (dwarf_decode_lines): Remove special case handling of main subfile.
  1209. (macro_start_file): Delete argument comp_dir. All callers updated.
  1210. (dwarf_decode_macro_bytes): Ditto.
  1211. * guile/scm-block.c (bkscm_print_block_syms_progress_smob): Update to
  1212. use struct compunit_symtab.
  1213. * i386-tdep.c (i386_skip_prologue): Fetch producer from compunit.
  1214. * jit.c (finalize_symtab): Build compunit_symtab.
  1215. * jv-lang.c (get_java_class_symtab): Change result to
  1216. "struct compunit_symtab *". All callers updated.
  1217. * macroscope.c (sal_macro_scope): Fetch macro table from compunit.
  1218. * macrotab.c (struct macro_table) <compunit_symtab>: Renamed from
  1219. comp_dir. Change type to "struct compunit_symtab *".
  1220. All uses updated.
  1221. (new_macro_table): Change comp_dir argument to cust,
  1222. "struct compunit_symtab *". All callers updated.
  1223. * maint.c (struct cmd_stats) <nr_compunit_symtabs>: Renamed from
  1224. nr_primary_symtabs. All uses updated.
  1225. (count_symtabs_and_blocks): Update to handle compunits.
  1226. (report_command_stats): Update output, "primary symtabs" renamed to
  1227. "compunits".
  1228. * mdebugread.c (new_symtab): Change result to
  1229. "struct compunit_symtab *". All callers updated.
  1230. (parse_procedure): Change type of search_symtab argument to
  1231. "struct compunit_symtab *". All callers updated.
  1232. * objfiles.c (objfile_relocate1): Loop over blockvectors in a
  1233. separate loop.
  1234. * objfiles.h (struct objfile) <compunit_symtabs>: Renamed from
  1235. symtabs. Change type to "struct compunit_symtab *". All uses updated.
  1236. (ALL_OBJFILE_FILETABS): Renamed from ALL_OBJFILE_SYMTABS.
  1237. All uses updated.
  1238. (ALL_OBJFILE_COMPUNITS): Renamed from ALL_OBJFILE_PRIMARY_SYMTABS.
  1239. All uses updated.
  1240. (ALL_FILETABS): Renamed from ALL_SYMTABS. All uses updated.
  1241. (ALL_COMPUNITS): Renamed from ALL_PRIMARY_SYMTABS. All uses updated.
  1242. * psympriv.h (struct partial_symtab) <compunit_symtab>: Renamed from
  1243. symtab. Change type to "struct compunit_symtab *". All uses updated.
  1244. * psymtab.c (psymtab_to_symtab): Change result type to
  1245. "struct compunit_symtab *". All callers updated.
  1246. (find_pc_sect_compunit_symtab_from_partial): Renamed from
  1247. find_pc_sect_symtab_from_partial. Change result type to
  1248. "struct compunit_symtab *". All callers updated.
  1249. (lookup_symbol_aux_psymtabs): Change result type to
  1250. "struct compunit_symtab *". All callers updated.
  1251. (find_last_source_symtab_from_partial): Ditto.
  1252. * python/py-symtab.c (stpy_get_producer): Fetch producer from compunit.
  1253. * source.c (forget_cached_source_info_for_objfile): Fetch debugformat
  1254. and macro_table from compunit.
  1255. * symfile-debug.c (debug_qf_find_last_source_symtab): Change result
  1256. type to "struct compunit_symtab *". All callers updated.
  1257. (debug_qf_lookup_symbol): Ditto.
  1258. (debug_qf_find_pc_sect_compunit_symtab): Renamed from
  1259. debug_qf_find_pc_sect_symtab, change result type to
  1260. "struct compunit_symtab *". All callers updated.
  1261. * symfile.c (allocate_symtab): Delete objfile argument.
  1262. New argument cust.
  1263. (allocate_compunit_symtab): New function.
  1264. (add_compunit_symtab_to_objfile): New function.
  1265. * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
  1266. Change result type to "struct compunit_symtab *". All uses updated.
  1267. <find_pc_sect_compunit_symtab>: Renamed from find_pc_sect_symtab.
  1268. Change result type to "struct compunit_symtab *". All uses updated.
  1269. * symmisc.c (print_objfile_statistics): Compute blockvector count in
  1270. separate loop.
  1271. (dump_symtab_1): Update test for primary source symtab.
  1272. (maintenance_info_symtabs): Update to handle compunit symtabs.
  1273. (maintenance_check_symtabs): Ditto.
  1274. * symtab.c (set_primary_symtab): Delete.
  1275. (compunit_primary_filetab): New function.
  1276. (compunit_language): New function.
  1277. (iterate_over_some_symtabs): Change type of arguments "first",
  1278. "after_last" to "struct compunit_symtab *". All callers updated.
  1279. Update to loop over symtabs in each compunit.
  1280. (error_in_psymtab_expansion): Rename symtab argument to cust,
  1281. and change type to "struct compunit_symtab *". All callers updated.
  1282. (find_pc_sect_compunit_symtab): Renamed from find_pc_sect_symtab.
  1283. Change result type to "struct compunit_symtab *". All callers updated.
  1284. (find_pc_compunit_symtab): Renamed from find_pc_symtab.
  1285. Change result type to "struct compunit_symtab *". All callers updated.
  1286. (find_pc_sect_line): Only loop over symtabs within selected compunit
  1287. instead of all symtabs in the objfile.
  1288. * symtab.h (struct symtab) <blockvector>: Moved to compunit_symtab.
  1289. <compunit_symtab> New member.
  1290. <block_line_section>: Moved to compunit_symtab.
  1291. <locations_valid>: Ditto.
  1292. <epilogue_unwind_valid>: Ditto.
  1293. <macro_table>: Ditto.
  1294. <dirname>: Ditto.
  1295. <debugformat>: Ditto.
  1296. <producer>: Ditto.
  1297. <objfile>: Ditto.
  1298. <call_site_htab>: Ditto.
  1299. <includes>: Ditto.
  1300. <user>: Ditto.
  1301. <primary>: Delete
  1302. (SYMTAB_COMPUNIT): New macro.
  1303. (SYMTAB_BLOCKVECTOR): Update definition.
  1304. (SYMTAB_OBJFILE): Update definition.
  1305. (SYMTAB_DIRNAME): Update definition.
  1306. (struct compunit_symtab): New type. Common members among all source
  1307. symtabs within a compilation unit moved here. All uses updated.
  1308. (COMPUNIT_OBJFILE): New macro.
  1309. (COMPUNIT_FILETABS): New macro.
  1310. (COMPUNIT_DEBUGFORMAT): New macro.
  1311. (COMPUNIT_PRODUCER): New macro.
  1312. (COMPUNIT_DIRNAME): New macro.
  1313. (COMPUNIT_BLOCKVECTOR): New macro.
  1314. (COMPUNIT_BLOCK_LINE_SECTION): New macro.
  1315. (COMPUNIT_LOCATIONS_VALID): New macro.
  1316. (COMPUNIT_EPILOGUE_UNWIND_VALID): New macro.
  1317. (COMPUNIT_CALL_SITE_HTAB): New macro.
  1318. (COMPUNIT_MACRO_TABLE): New macro.
  1319. (ALL_COMPUNIT_FILETABS): New macro.
  1320. (compunit_symtab_ptr): New typedef.
  1321. (DEF_VEC_P (compunit_symtab_ptr)): New vector type.
  1322. 2014-11-20 Joel Brobecker <brobecker@adacore.com>
  1323. * ada-lang.c (ada_is_redundant_range_encoding): Return 0
  1324. if the TYPE_CODE of range_type's base type does not match
  1325. the TYPE_CODE of encoding_type's base type.
  1326. 2014-11-19 Joel Brobecker <brobecker@adacore.com>
  1327. * ada-lang.c (ada_unqualified_name): Return DECODED_NAME if
  1328. it starts with '<'.
  1329. 2014-11-19 Joel Brobecker <brobecker@adacore.com>
  1330. * ada-lang.c (ada_is_redundant_range_encoding): New function.
  1331. (ada_is_redundant_index_type_desc): New function.
  1332. (to_fixed_array_type): Ignore parallel XA type if redundant.
  1333. 2014-11-19 Joel Brobecker <brobecker@adacore.com>
  1334. * ada-lang.c (constrained_packed_array_type): Set the length
  1335. of the return array as if both bounds where zero if that
  1336. returned array's index type is dynamic.
  1337. 2014-11-19 Yao Qi <yao@codesourcery.com>
  1338. * config/i386/go32.mh (CC): Remove.
  1339. 2014-11-18 Doug Evans <xdje42@gmail.com>
  1340. * symtab.h (SYMTAB_BLOCKVECTOR): Renamed from BLOCKVECTOR. All uses
  1341. updated.
  1342. 2014-11-18 Doug Evans <xdje42@gmail.com>
  1343. * buildsym.c (buildsym_objfile): New static global.
  1344. (buildsym_comp_dir): New static global.
  1345. (finish_block_internal): Delete arg objfile. All callers updated.
  1346. (finish_block): Delete arg objfile. All callers updated.
  1347. (start_subfile): Delete arg dirname. All callers updated.
  1348. (patch_subfile_names): Update buildsym_comp_dir.
  1349. (get_macro_table): Delete arg objfile. All callers updated.
  1350. (start_symtab): New arg objfile. All callers updated.
  1351. Rename arg dirname to comp_dir.
  1352. (reset_symtab_globals): Initialize buildsym_objfile, buildsym_comp_dir.
  1353. (end_symtab_get_static_block): Delete arg objfile. All callers
  1354. updated.
  1355. (end_symtab_without_blockvector): Ditto.
  1356. (end_symtab_with_blockvector): Ditto.
  1357. (end_symtab_from_static_block): Ditto.
  1358. (end_symtab): Ditto.
  1359. (end_expandable_symtab): Ditto.
  1360. (augment_type_symtab): Ditto.
  1361. * coffread.c (coff_start_symtab): New arg objfile. All callers
  1362. updated.
  1363. 2014-11-18 Doug Evans <xdje42@gmail.com>
  1364. * symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE. All uses
  1365. updated.
  1366. 2014-11-18 Doug Evans <xdje42@gmail.com>
  1367. * symtab.h (SYMTAB_DIRNAME): New macro. All uses of member
  1368. symtab.dirname updated to use it.
  1369. 2014-11-18 Doug Evans <xdje42@gmail.com>
  1370. * symtab.h (SYMTAB_OBJFILE): New macro. All uses of member
  1371. symtab.objfile updated to use it.
  1372. 2014-11-18 Doug Evans <xdje42@gmail.com>
  1373. * buildsym.c (watch_main_source_file_lossage): Fix memory leak.
  1374. 2014-11-18 Doug Evans <xdje42@gmail.com>
  1375. * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
  1376. SYMBOL_OBJFILE.
  1377. * findvar.c (default_read_var_value): Ditto.
  1378. * jv-lang.c (add_class_symtab_symbol): Ditto.
  1379. * parse.c (operator_check_standard): Ditto.
  1380. * printcmd.c (address_info): Ditto.
  1381. * symtab.c (fixup_symbol_section): Ditto.
  1382. (skip_prologue_sal): Ditto.
  1383. * tracepoint.c (scope_info): Ditto.
  1384. * valops.c (find_function_in_inferior): Ditto.
  1385. * guile/scm-symbol.c (syscm_eq_symbol_smob): Ditto.
  1386. * python/py-symbol.c (set_symbol): Ditto.
  1387. 2014-11-18 Doug Evans <xdje42@gmail.com>
  1388. * buildsym.c (main_subfile): New static global.
  1389. (free_subfiles_list): New function.
  1390. (start_symtab): Set main_subfile.
  1391. (restart_symtab): Replace init of subfiles, current_subfile with
  1392. call to free_subfiles_list.
  1393. (watch_main_source_file_lossage): Use main_subfile.
  1394. (reset_symtab_globals): Replace init of current_subfile with call
  1395. to free_subfiles_list.
  1396. (end_symtab_without_blockvector, end_symtab_with_blockvector): New
  1397. functions, split out from ...
  1398. (end_symtab_from_static_block): ... here. Rewrite to call them.
  1399. 2014-11-18 Doug Evans <xdje42@gmail.com>
  1400. The result of symtab expansion is always a primary symtab.
  1401. * dwarf2read.c (dw2_instantiate_symtab): Add assert.
  1402. (dw2_lookup_symbol): Remove unnecessary test for primary symbol table.
  1403. * psymtab.c (lookup_symbol_aux_psymtabs): Ditto.
  1404. (psymtab_to_symtab): Add comment and assert.
  1405. (map_matching_symbols_psymtab): Remove unnecessary test for
  1406. non-primary symtab.
  1407. 2014-11-15 Doug Evans <xdje42@gmail.com>
  1408. PR symtab/17559
  1409. * symtab.c (find_pc_line_symtab): New function.
  1410. * symtab.h (find_pc_line_symtab): Declare.
  1411. * disasm.c (gdb_disassembly): Call find_pc_line_symtab instead of
  1412. find_pc_symtab.
  1413. * tui/tui-disasm.c (tui_set_disassem_content): Ditto.
  1414. * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Ditto.
  1415. * tui/tui-source.c (tui_vertical_source_scroll): Ditto.
  1416. * tui/tui-win.c (make_visible_with_new_height): Ditto.
  1417. * tui/tui-winsource.c (tui_horizontal_source_scroll): Ditto.
  1418. (tui_display_main): Call find_pc_line_symtab instead of find_pc_line.
  1419. 2014-11-15 Doug Evans <xdje42@gmail.com>
  1420. * symtab.c (expand_symtab_containing_pc): Renamed from
  1421. find_pc_sect_symtab_via_partial. All callers updated.
  1422. 2014-11-15 Yao Qi <yao@codesourcery.com>
  1423. * go32-nat.c (go32_create_inferior): Add missing parenthesis.
  1424. 2014-11-14 Joel Brobecker <brobecker@adacore.com>
  1425. * common/common-defs.h: Move <stdarg.h> #include ahead of
  1426. <stdio.h> #include.
  1427. 2014-11-14 Pedro Alves <palves@redhat.com>
  1428. * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
  1429. [!PHONY_ICONV] (gdb_iconv): New function.
  1430. [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
  1431. 2014-11-13 Doug Evans <dje@google.com>
  1432. PR symtab/17591
  1433. * dwarf2read.c (find_slot_in_mapped_hash): Handle
  1434. "(anonymous namespace)".
  1435. 2014-11-13 Doug Evans <dje@google.com>
  1436. * dwarf2read.c (update_enumeration_type_from_children): Avoid
  1437. infinite loop.
  1438. 2014-11-13 Jan Kratochvil <jan.kratochvil@redhat.com>
  1439. * NEWS (maint set target-async): Fix typo.
  1440. 2014-11-12 Pedro Alves <palves@redhat.com>
  1441. * infrun.c (enum infwait_states, infwait_state): Delete.
  1442. 2014-11-12 Pedro Alves <palves@redhat.com>
  1443. * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
  1444. Rewrite stepping over a permanent breakpoint.
  1445. (thread_still_needs_step_over, proceed): Don't set
  1446. stepping_over_breakpoint for permanent breakpoints.
  1447. (handle_signal_stop): Don't clear stepped_breakpoint. Also pull
  1448. single-step breakpoints out of the target on hardware step
  1449. targets.
  1450. (process_event_stop_test): If stepping a permanent breakpoint
  1451. doesn't hit the step-resume breakpoint, delete the step-resume
  1452. breakpoint.
  1453. (switch_back_to_stepped_thread): Also check if the stepped thread
  1454. has advanced already on hardware step targets.
  1455. (currently_stepping): Return true if the thread stepped a
  1456. breakpoint.
  1457. 2014-11-12 Pedro Alves <palves@redhat.com>
  1458. Mark locations as permanent, not the whole breakpoint.
  1459. * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
  1460. (mark_breakpoints_out): Don't mark permanent breakpoints as
  1461. uninserted.
  1462. (breakpoint_init_inferior): Use mark_breakpoints_out.
  1463. (breakpoint_here_p): Adjust.
  1464. (bpstat_stop_status, describe_other_breakpoints): Remove handling
  1465. of permanent breakpoints.
  1466. (make_breakpoint_permanent): Mark each location as permanent,
  1467. instead of marking the breakpoint.
  1468. (add_location_to_breakpoint): If the location is permanent, mark
  1469. it as such, and as inserted.
  1470. (init_breakpoint_sal): Don't make the breakpoint permanent here.
  1471. (bp_location_compare, update_global_location_list): Adjust.
  1472. (update_breakpoint_locations): Don't make the breakpoint permanent
  1473. here.
  1474. (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
  1475. breakpoints.
  1476. * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
  1477. (struct bp_location) <permanent>: New field.
  1478. * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
  1479. reference to bp_permanent.
  1480. 2014-11-12 Pedro Alves <palves@redhat.com>
  1481. * arch-utils.c (default_skip_permanent_breakpoint): New function.
  1482. * arch-utils.h (default_skip_permanent_breakpoint): New
  1483. declaration.
  1484. * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
  1485. Install default_skip_permanent_breakpoint as default method.
  1486. * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
  1487. (i386_gdbarch_init): Don't install it.
  1488. * infrun.c (resume): Assume there's always a
  1489. gdbarch_skip_permanent_breakpoint implementation.
  1490. * gdbarch.h, gdbarch.c: Regenerate.
  1491. 2014-11-11 Daniel Colascione <dancol@dancol.org>
  1492. Warn about cross-PID-namespace debugging.
  1493. * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
  1494. * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
  1495. * linux-thread-db.c (check_pid_namespace_match): New function.
  1496. (thread_db_inferior_created): Call it.
  1497. 2014-11-10 Doug Evans <xdje42@gmail.com>
  1498. * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
  1499. (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
  1500. 2014-11-10 Doug Evans <xdje42@gmail.com>
  1501. * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
  1502. 2014-11-10 Doug Evans <xdje42@gmail.com>
  1503. PR symtab/17564
  1504. * symtab.c (lookup_symbol_in_all_objfiles): Delete.
  1505. (lookup_static_symbol): Move definition to new location and rewrite.
  1506. (lookup_symbol_in_objfile): New function.
  1507. (lookup_symbol_global_iterator_cb): Call it.
  1508. 2014-11-10 Ulrich Weigand  <uweigand@de.ibm.com>
  1509. * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
  1510. 2014-11-07 Pedro Alves <palves@redhat.com>
  1511. * infrun.c (process_event_stop_test) <subroutine check>: Don't
  1512. check if we did a "nexti" inside a prologue.
  1513. * symtab.c (in_prologue): Delete function.
  1514. * symtab.h (in_prologue): Delete declaration.
  1515. 2014-11-06 Doug Evans <xdje42@gmail.com>
  1516. * symtab.h (lookup_global_symbol): Improve function comment.
  1517. 2014-11-06 Doug Evans <xdje42@gmail.com>
  1518. * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
  1519. All callers updated.
  1520. * symtab.h (lookup_global_symbol): Update decl.
  1521. (lookup_static_symbol): Move decl to better location.
  1522. 2014-11-06 Doug Evans <xdje42@gmail.com>
  1523. * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
  1524. 2014-11-06 Doug Evans <xdje42@gmail.com>
  1525. * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
  1526. All callers updated.
  1527. (lookup_symbol_in_all_objfiles): Renamed from
  1528. lookup_symbol_aux_symtabs. All callers updated.
  1529. (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
  1530. All callers updated.
  1531. (lookup_symbol_in_objfile_symtabs): Renamed from
  1532. lookup_symbol_aux_objfile. All callers updated.
  1533. 2014-11-06 Doug Evans <xdje42@gmail.com>
  1534. * symtab.c (lookup_symbol_in_block): Renamed from
  1535. lookup_symbol_aux_block. All callers updated.
  1536. 2014-11-06 Doug Evans <xdje42@gmail.com>
  1537. * symtab.c (lookup_static_symbol): Renamed from
  1538. lookup_static_symbol_aux. All callers updated.
  1539. (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
  1540. All callers updated.
  1541. 2014-11-06 Doug Evans <xdje42@gmail.com>
  1542. * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
  1543. * block.c (block_lookup_symbol): Use it.
  1544. * cp-support.c (make_symbol_overload_list_block): Use it.
  1545. * symtab.c (iterate_over_symbols): Use it.
  1546. 2014-11-06 Doug Evans <xdje42@gmail.com>
  1547. * symtab.c (lookup_block_symbol): Moved to ...
  1548. * block.c (block_lookup_symbol): ... here and renamed.
  1549. All callers updated.
  1550. * block.h (block_lookup_symbol): Declare.
  1551. * symtab.h (lookup_block_symbol): Delete.
  1552. 2014-11-06 Doug Evans <xdje42@gmail.com>
  1553. * ada-lang.c (ada_make_symbol_completion_list): Use
  1554. ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
  1555. * symtab.c (lookup_objfile_from_block): Ditto.
  1556. 2014-11-06 Doug Evans <xdje42@gmail.com>
  1557. * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
  1558. TYPE_CODE_STRUCT.
  1559. 2014-11-06 Doug Evans <xdje42@gmail.com>
  1560. * objfiles.c (get_objfile_arch): Constify.
  1561. * objfiles.h (get_objfile_arch): Update prototype.
  1562. * solib.c (solib_global_lookup): Fetch arch from objfile,
  1563. not target_gdbarch.
  1564. 2014-11-06 Sandra Loosemore <sandra@codesourcery.com>
  1565. * nios2-tdep.c (wild_insn): Delete.
  1566. (profiler_insn, irqentry_insn): Delete.
  1567. (nios2_match_sequence): Delete.
  1568. (nios2_analyze_prologue): Update comments. Remove matching
  1569. of obsolete profiler_insn and irqentry_insn sequences.
  1570. 2014-11-05 Alan Modra <amodra@gmail.com>
  1571. * charset.c (convert_between_encodings): Shrink obstack using
  1572. obstack_blank_fast.
  1573. * minsyms.c (install_minimal_symbols): Likewise.
  1574. * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
  1575. to char* before doing pointer arithmetic.
  1576. 2014-11-04 Simon Marchi <simon.marchi@ericsson.com>
  1577. * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
  1578. 2014-11-04 Pedro Alves <palves@redhat.com>
  1579. * breakpoint.c (breakpoint_thread_match): Delete function.
  1580. * breakpoint.h (breakpoint_thread_match): Delete declaration.
  1581. 2014-11-03 Siva Chandra Reddy <sivachandra@google.com>
  1582. PR c++/17494
  1583. * eval.c (evaluate_subexp_standard): Evaluate the "object" and
  1584. the method args also under EVAL_SKIP when evaluating method
  1585. calls under EVAL_SKIP.
  1586. 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
  1587. * dwarf2loc.c (read_pieced_value): Do big endian
  1588. processing only if gdb_regnum is not -1.
  1589. (write_pieced_value): Ditto.
  1590. 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
  1591. * arm-linux-tdep.c (arm_linux_init_abi): Use
  1592. info.byte_order_for_code to choose endianity of breakpoint
  1593. instructions snippets.
  1594. 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
  1595. * arm-tdep.c (extract_arm_insn): Use
  1596. gdbarch_byte_order_for_code to read arm instruction.
  1597. 2014-11-02 Doug Evans <xdje42@gmail.com>
  1598. * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
  1599. 2014-11-02 Doug Evans <xdje42@gmail.com>
  1600. * xcoffread.c (process_linenos): Delete unnecessary zeroing of
  1601. main_subfile before returning.
  1602. 2014-10-31 Doug Evans <xdje42@gmail.com>
  1603. * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
  1604. (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
  1605. 2014-10-31 Doug Evans <xdje42@gmail.com>
  1606. * valops.c (value_cast_pointers): Fix whitespace.
  1607. (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
  1608. Ditto.
  1609. 2014-10-30 Doug Evans <dje@google.com>
  1610. * NEWS: Mention ability add attributes to gdb.Objfile and
  1611. gdb.Progspace objects.
  1612. * python/py-objfile.c (objfile_object): New member dict.
  1613. (objfpy_dealloc): Py_XDECREF dict.
  1614. (objfpy_initialize): Initialize dict.
  1615. (objfile_getset): Add __dict__.
  1616. (objfile_object_type): Set tp_dictoffset member.
  1617. * python/py-progspace.c (progspace_object): New member dict.
  1618. (pspy_dealloc): Py_XDECREF dict.
  1619. (pspy_initialize): Initialize dict.
  1620. (pspace_getset): Add __dict__.
  1621. (pspace_object_type): Set tp_dictoffset member.
  1622. 2014-10-30 Yao Qi <yao@codesourcery.com>
  1623. * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
  1624. replace '\\' with '\\\\'.
  1625. 2014-10-29 Joel Brobecker <brobecker@adacore.com>
  1626. GDB 7.8.1 released.
  1627. 2014-10-29 Pedro Alves <palves@redhat.com>
  1628. PR gdb/17408
  1629. * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
  1630. instead of assuming a thread with a stepping range is always
  1631. stepping.
  1632. 2014-10-29 Pedro Alves <palves@redhat.com>
  1633. PR python/17372
  1634. * event-top.c (change_line_handler): Call
  1635. gdb_rl_callback_handler_remove instead of
  1636. rl_callback_handler_remove.
  1637. (callback_handler_installed): New global.
  1638. (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
  1639. (gdb_rl_callback_handler_reinstall): New functions.
  1640. (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
  1641. gdb_rl_callback_handler_install instead of
  1642. rl_callback_handler_remove and rl_callback_handler_install.
  1643. (gdb_disable_readline): Call gdb_rl_callback_handler_remove
  1644. instead of rl_callback_handler_remove.
  1645. * event-top.h (gdb_rl_callback_handler_remove)
  1646. (gdb_rl_callback_handler_install)
  1647. (gdb_rl_callback_handler_reinstall): New declarations.
  1648. * infrun.c (reinstall_readline_callback_handler_cleanup): New
  1649. cleanup function.
  1650. (fetch_inferior_event): Install it.
  1651. * top.c (gdb_readline_wrapper_line) Call
  1652. gdb_rl_callback_handler_remove instead of
  1653. rl_callback_handler_remove.
  1654. (gdb_readline_wrapper_cleanup): Don't call
  1655. rl_callback_handler_install.
  1656. 2014-10-29 Pedro Alves <palves@redhat.com>
  1657. * event-top.c (command_line_handler): Clear the first byte of
  1658. linebuffer, when it is first allocated.
  1659. 2014-10-29 Pedro Alves <palves@redhat.com>
  1660. * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
  1661. TRY_CATCH.
  1662. 2014-10-29 Pedro Alves <palves@redhat.com>
  1663. PR tui/16138
  1664. PR tui/17519
  1665. * tui/tui-interp.c (tui_is_toplevel): Delete global.
  1666. (tui_allowed_p): Delete function.
  1667. * tui/tui.c: Include "interps.h".
  1668. (tui_enable): Don't use tui_allowed_p. Error out here with
  1669. detailed error messages if the TUI is the top level interpreter,
  1670. or if output is not a terminal. Use newterm instead of initscr,
  1671. and error out if initializing the terminal fails. Also error out if
  1672. the terminal doesn't support cursor addressing.
  1673. * tui/tui.h (tui_allowed_p): Delete declaration.
  1674. 2014-10-29 Joel Brobecker <brobecker@adacore.com>
  1675. * arm-tdep.c (arm_skip_stack_protector): Return early if
  1676. address loaded by first "ldr" instruction does not have
  1677. a corresponding minimal symbol. Update comment.
  1678. 2014-10-29 Yao Qi <yao@codesourcery.com>
  1679. * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
  1680. loaded address correctly of ldr instruction.
  1681. 2014-10-28 Pedro Alves <palves@redhat.com>
  1682. PR gdb/12623
  1683. * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
  1684. field.
  1685. * infrun.c (resume) <stepping breakpoint instruction>: Set the
  1686. thread's stepped_breakpoint field. Skip if reverse debugging.
  1687. Add comment.
  1688. (init_thread_stepping_state, handle_signal_stop): Clear the
  1689. thread's stepped_breakpoint field.
  1690. 2014-10-27 Pedro Alves <palves@redhat.com>
  1691. * remote.c (remote_thread_alive): New, factored out from ...
  1692. (remote_thread_alive): ... this.
  1693. (remote_update_thread_list): Bail out before deleting threads if
  1694. the target returned an empty list, and, the current thread has a
  1695. magic/fake ptid.
  1696. 2014-10-27 Pedro Alves <palves@redhat.com>
  1697. * infrun.c (handle_signal_stop): Also skip handlers when a random
  1698. signal arrives while handling a "stepi" or a "nexti". Set the
  1699. thread's 'step_after_step_resume_breakpoint' flag.
  1700. 2014-10-27 Luis Machado <lgustavo@codesourcery.com>
  1701. * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
  1702. (arm_record_ld_st_imm_offset): Reimplement to cover all
  1703. load/store cases for ARM opcode 010.
  1704. (arm_record_ld_st_multiple): Reimplement to cover all
  1705. load/store cases for ARM opcode 100.
  1706. 2014-10-26 Doug Evans <xdje42@gmail.com>
  1707. * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
  1708. 2014-10-26 Doug Evans <xdje42@gmail.com>
  1709. * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
  1710. parameter "kind" to "block_index".
  1711. * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
  1712. "block_index".
  1713. (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
  1714. 2014-10-26 Doug Evans <xdje42@gmail.com>
  1715. * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
  1716. 2014-10-26 Doug Evans <xdje42@gmail.com>
  1717. * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
  1718. obstack_alloc.
  1719. 2014-10-26 Doug Evans <xdje42@gmail.com>
  1720. * parser-defs.h (block_found): Move decl from here ...
  1721. * symtab.h (block_found): ... to here.
  1722. 2014-10-26 Doug Evans <xdje42@gmail.com>
  1723. * symtab.h (struct field_of_this_result): Fix typo in comment.
  1724. (lookup_symbol_in_language): Move function comment here.
  1725. (lookup_symbol): Improve function comment.
  1726. (basic_lookup_symbol_nonlocal): Ditto.
  1727. (lookup_symbol_static, lookup_symbol_global): Ditto.
  1728. (lookup_symbol_aux_block): Ditto.
  1729. (lookup_language_this): Add function comment.
  1730. (lookup_static_symbol_aux): Explicitly mark as extern. Improve
  1731. function comment.
  1732. (lookup_block_symbol): Improve function comment.
  1733. (lookup_struct): Fix capitalization in function comment.
  1734. (lookup_transparent_type): Add function comment.
  1735. (lookup_global_symbol_from_objfile): Explicitly mark as extern.
  1736. Improve function comment.
  1737. (lookup_objfile_from_block): Add function comment.
  1738. * symtab.c (lookup_symbol_in_language): Update function comment.
  1739. (lookup_symbol, lookup_language_this): Ditto.
  1740. (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
  1741. (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
  1742. (basic_lookup_symbol_nonlocal): Ditto.
  1743. (lookup_symbol_static, lookup_symbol_global): Ditto.
  1744. (lookup_transparent_type, lookup_block_symbol): Ditto.
  1745. 2014-10-25 Doug Evans <xdje42@gmail.com>
  1746. * symtab.c (types_info): Delete forward decl.
  1747. (functions_info, variables_info, sources_info): Ditto.
  1748. (_initialize_symtab): Rewrite forward decl to use
  1749. initialize_file_ftype.
  1750. 2014-10-25 Doug Evans <xdje42@gmail.com>
  1751. * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
  1752. 2014-10-25 Doug Evans <xdje42@gmail.com>
  1753. * dwarf2read.c (process_structure_scope): Remove second (nested) copy
  1754. of local var child_die.
  1755. 2014-10-24 Don Breazeal <donb@codesourcery.com>
  1756. * infrun.c (follow_fork_inferior): Update fork message printing
  1757. to use target_terminal_ours_for_output instead of
  1758. target_terminal_ours, to use _() for all format strings, to print
  1759. "vfork" instead of "fork" for vforks, and to add a detach message.
  1760. (handle_vfork_child_exec_or_exit): Update message printing to use
  1761. target_terminal_ours_for_output instead of target_terminal_ours, to
  1762. use _() for all format strings, and to fix some formatting.
  1763. 2014-10-24 Pedro Alves <palves@redhat.com>
  1764. * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
  1765. * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
  1766. * config/vax/vax.mh: Delete.
  1767. * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
  1768. obsolete configurations section.
  1769. * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
  1770. * vax-nat.c: Delete file.
  1771. 2014-10-24 Pedro Alves <palves@redhat.com>
  1772. * NEWS (Removed targets): Add OS/arch column.
  1773. 2014-10-24 Siva Chandra Reddy <sivachandra@google.com>
  1774. * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
  1775. on the arg type of a constructor only if it is of reference type.
  1776. 2014-10-23 Sandra Loosemore <sandra@codesourcery.com>
  1777. * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
  1778. accessors and constants from nios2 opcodes update.
  1779. (nios2_get_next_pc): Likewise.
  1780. 2014-10-19 Doug Evans <xdje42@gmail.com>
  1781. * gdbthread.h (set_running): Fix comment.
  1782. (set_executing, finish_thread_state): Fix comment.
  1783. 2014-10-18 Doug Evans <xdje42@gmail.com>
  1784. * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
  1785. 2014-10-17 Doug Evans <dje@google.com>
  1786. * NEWS: Mention new event gdb.clear_objfiles.
  1787. * python/py-event.h (emit_clear_objfiles_event): Clear
  1788. * python/py-events.h (events_object): New member clear_objfiles.
  1789. * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
  1790. event.
  1791. * python/py-inferior.c (python_new_objfile): If objfile is NULL,
  1792. emit clear_objfiles event.
  1793. * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
  1794. function.
  1795. (emit_clear_objfiles_event): New function.
  1796. (clear_objfiles): New event.
  1797. * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
  1798. Declare.
  1799. * python/python.c (_initialize_python): Call
  1800. gdbpy_initialize_clear_objfiles_event.
  1801. 2014-10-17 Doug Evans <dje@google.com>
  1802. * NEWS: Mention new gdb.Objfile.progspace attribute.
  1803. * python/py-objfile.c (objfpy_get_progspace): New function.
  1804. (objfile_getset): New entry for "progspace".
  1805. 2014-10-17 Pedro Alves <palves@redhat.com>
  1806. PR gdb/17471
  1807. * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
  1808. returns a copy of the input.
  1809. (run_command_1, continue_command, step_1, jump_command)
  1810. (signal_command, until_command, advance_command, finish_command)
  1811. (attach_command): Adjust and install a cleanup to free the
  1812. stripped args.
  1813. 2014-10-17 Pedro Alves <palves@redhat.com>
  1814. PR gdb/17300
  1815. * infcmd.c (continue_1): If continuing all threads in the
  1816. foreground, make sure the inferior's terminal settings are put in
  1817. effect.
  1818. 2014-10-17 Pedro Alves <palves@redhat.com>
  1819. PR gdb/17472
  1820. * annotate.c (annotate_breakpoints_invalid): Use
  1821. target_terminal_our_for_output instead of target_terminal_ours.
  1822. Give back the terminal to the target.
  1823. (annotate_frames_invalid): Likewise.
  1824. 2014-10-17 Pedro Alves <palves@redhat.com>
  1825. * target.c (enum terminal_state): New enum.
  1826. (terminal_state): New global.
  1827. (target_terminal_init): New function.
  1828. (target_terminal_inferior): Skip if inferior already owns the
  1829. terminal.
  1830. (target_terminal_ours, target_terminal_ours_for_output): New
  1831. functions.
  1832. * target.h (target_terminal_init): Convert to function prototype.
  1833. (target_terminal_ours_for_output): Convert to function prototype
  1834. and tweak comment.
  1835. (target_terminal_ours): Convert to function prototype and tweak
  1836. comment.
  1837. * windows-nat.c (do_initial_windows_stuff): Call
  1838. target_terminal_init instead of child_terminal_init_with_pgrp.
  1839. 2014-10-17 Pedro Alves <palves@redhat.com>
  1840. * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
  1841. (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
  1842. (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
  1843. solib-osf.c.
  1844. * NEWS: Mention that support for alpha*-*-osf* has been removed.
  1845. * ada-lang.h [__alpha__ && __osf__]
  1846. (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
  1847. * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
  1848. * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
  1849. GDB_OSABI_OSF1.
  1850. * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
  1851. files.
  1852. * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
  1853. (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
  1854. * configure: Regenerate.
  1855. * configure.ac: Remove references to osf.
  1856. * configure.host: Handle alpha*-*-osf* in the obsolete hosts
  1857. section. Remove all other references to osf.
  1858. * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
  1859. Remove all other references to osf.
  1860. * dec-thread.c: Delete file.
  1861. * defs.h (GDB_OSABI_OSF1): Delete.
  1862. * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
  1863. defined.
  1864. * osabi.c (gdb_osabi_names): Delete "OSF/1".
  1865. * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
  1866. Delete code.
  1867. (unconditionally_kill_inferior)
  1868. [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
  1869. * solib-osf.c: Delete file.
  1870. 2014-10-17 Pedro Alves <palves@redhat.com>
  1871. * remote.c (clear_threads_listing_context): Move higher up, out of
  1872. the HAVE_LIBEXPAT guard.
  1873. 2014-10-16 Tristan Gingold <gingold@adacore.com>
  1874. * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
  1875. (i386_darwin_store_inferior_registers): Sanitize gs and fs values
  1876. on amd64.
  1877. 2014-10-15 Pedro Alves <palves@redhat.com>
  1878. * dec-thread.c (dec_thread_count_gdb_threads)
  1879. (dec_thread_add_gdb_thread): Delete.
  1880. (dec_thread_update_thread_list): Delete.
  1881. (dec_thread_find_new_threads): Rename to ...
  1882. (dec_thread_update_thread_list): ... this. Delete GDB-size
  1883. threads that are no longer found in dec_thread_list.
  1884. (resync_thread_list): Delete.
  1885. (dec_thread_wait): Call dec_thread_update_thread_list instead of
  1886. resync_thread_list.
  1887. 2014-10-15 Pedro Alves <palves@redhat.com>
  1888. * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
  1889. * remote.c (remote_update_thread_list): Skip calling prune_threads
  1890. if any thread listing method is supported, and instead walk over
  1891. the set of remote threads listed, deleting those that are not
  1892. found in GDB's thread list.
  1893. 2014-10-15 Pedro Alves <palves@redhat.com>
  1894. * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
  1895. * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
  1896. (bsd_uthread_update_thread_list): ... this. Call prune_threads.
  1897. (bsd_uthread_target): Adjust.
  1898. * corelow.c (core_open): Adjust.
  1899. * dec-thread.c (dec_thread_find_new_threads): Update comment.
  1900. (dec_thread_update_thread_list): New function.
  1901. (init_dec_thread_ops): Adjust.
  1902. * gdbthread.h (prune_threads): New declaration.
  1903. * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
  1904. (thread_db_update_thread_list): ... this. Call prune_threads.
  1905. (init_thread_db_ops): Adjust.
  1906. * nto-procfs.c (procfs_find_new_threads): Rename to ...
  1907. (procfs_update_thread_list): ... this. Call prune_threads.
  1908. (procfs_attach, procfs_create_inferior, init_procfs_targets):
  1909. Adjust.
  1910. * obsd-nat.c (obsd_find_new_threads): Rename to ...
  1911. (obsd_update_thread_list): ... this. Call prune_threads.
  1912. (obsd_add_target): Adjust.
  1913. * procfs.c (procfs_target): Adjust.
  1914. (procfs_notice_thread): Update comment.
  1915. (procfs_find_new_threads): Rename to ...
  1916. (procfs_update_thread_list): ... this. Call prune_threads.
  1917. * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
  1918. comment.
  1919. (ravenscar_wait): Adjust.
  1920. (ravenscar_find_new_threads): Rename to ...
  1921. (ravenscar_update_thread_list): ... this. Call prune_threads.
  1922. (init_ravenscar_thread_ops): Adjust.
  1923. * record-btrace.c (record_btrace_find_new_threads): Rename to ...
  1924. (record_btrace_update_thread_list): ... this. Adjust comment.
  1925. (init_record_btrace_ops): Adjust.
  1926. * remote.c (remote_threads_info): Rename to ...
  1927. (remote_update_thread_list): ... this. Call prune_threads.
  1928. (remote_start_remote, extended_remote_attach_1, init_remote_ops):
  1929. Adjust.
  1930. * sol-thread.c (check_for_thread_db): Adjust.
  1931. (sol_find_new_threads_callback): Rename to ...
  1932. (sol_update_thread_list_callback): ... this.
  1933. (sol_find_new_threads): Rename to ...
  1934. (sol_update_thread_list): ... this. Call prune_threads. Adjust.
  1935. (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
  1936. * target-delegates.c: Regenerate.
  1937. * target.c (target_find_new_threads): Rename to ...
  1938. (target_update_thread_list): ... this.
  1939. * target.h (struct target_ops): Rename to_find_new_threads field
  1940. to to_update_thread_list.
  1941. (target_find_new_threads): Rename to ...
  1942. (target_update_thread_list): ... this.
  1943. * thread.c (prune_threads): Make extern.
  1944. (update_thread_list): Adjust.
  1945. 2014-10-15 Pedro Alves <palves@redhat.com>
  1946. * remote.c (remote_get_threadlist, remote_threadlist_iterator):
  1947. Add describing comment. Return -1 if the qL packet is not
  1948. supported.
  1949. (struct thread_item, thread_item_t): Move higher up in
  1950. the file. Add comments.
  1951. (struct threads_parsing_context): Move higher up in
  1952. the file, add comments, and remote to ...
  1953. (struct threads_listing_context): ... this.
  1954. (remote_newthread_step): Don't add the thread to GDB's thread
  1955. database here. Instead push it to the thread_listing_context
  1956. list.
  1957. (remote_find_new_threads): Rename to ...
  1958. (remote_get_threads_with_ql): ... this. Add target_ops and
  1959. targets_listing_context parameters. Pass down context.
  1960. (start_thread): Adjust.
  1961. (clear_threads_parsing_context): Rename to ...
  1962. (clear_threads_listing_context): ... this.
  1963. (remote_get_threads_with_qxfer): New, with parts salvaged from old
  1964. remote_threads_info.
  1965. (remote_get_threads_with_qthreadinfo): Ditto.
  1966. (remote_threads_info): Reimplement.
  1967. 2014-10-15 Pedro Alves <palves@redhat.com>
  1968. * infrun.c (resume): Don't force displaced-stepping for all
  1969. single-steps on software single-stepping archs.
  1970. 2014-10-15 Pedro Alves <palves@redhat.com>
  1971. * breakpoint.c (single_step_breakpoints): Delete global.
  1972. (insert_single_step_breakpoint): Adjust to store the breakpoint
  1973. pointer in the current thread.
  1974. (single_step_breakpoints_inserted, remove_single_step_breakpoints)
  1975. (cancel_single_step_breakpoints): Delete functions.
  1976. (breakpoint_has_location_inserted_here): Make extern.
  1977. (single_step_breakpoint_inserted_here_p): Adjust to walk the
  1978. breakpoint list.
  1979. * breakpoint.h (breakpoint_has_location_inserted_here): New
  1980. declaration.
  1981. (single_step_breakpoints_inserted, remove_single_step_breakpoints)
  1982. (cancel_single_step_breakpoints): Remove declarations.
  1983. * gdbthread.h (struct thread_control_state)
  1984. <single_step_breakpoints>: New field.
  1985. (delete_single_step_breakpoints)
  1986. (thread_has_single_step_breakpoints_set)
  1987. (thread_has_single_step_breakpoint_here): New declarations.
  1988. * infrun.c (follow_exec): Also clear the single-step breakpoints.
  1989. (singlestep_breakpoints_inserted_p, singlestep_ptid)
  1990. (singlestep_pc): Delete globals.
  1991. (infrun_thread_ptid_changed): Remove references to removed
  1992. globals.
  1993. (resume_cleanups): Delete the current thread's single-step
  1994. breakpoints.
  1995. (maybe_software_singlestep): Remove references to removed globals.
  1996. (resume): Adjust to use thread_has_single_step_breakpoints_set and
  1997. delete_single_step_breakpoints.
  1998. (init_wait_for_inferior): Remove references to removed globals.
  1999. (delete_thread_infrun_breakpoints): Delete the thread's
  2000. single-step breakpoints too.
  2001. (delete_just_stopped_threads_infrun_breakpoints): Don't delete
  2002. single-step breakpoints here.
  2003. (delete_stopped_threads_single_step_breakpoints): New function.
  2004. (adjust_pc_after_break): Adjust to use
  2005. thread_has_single_step_breakpoints_set.
  2006. (handle_inferior_event): Remove references to removed globals.
  2007. Use delete_stopped_threads_single_step_breakpoints.
  2008. (handle_signal_stop): Adjust to per-thread single-step
  2009. breakpoints. Swap test order to do cheaper tests first.
  2010. (switch_back_to_stepped_thread): Extend debug output. Remove
  2011. references to removed globals.
  2012. * record-full.c (record_full_wait_1): Adjust to per-thread
  2013. single-step breakpoints.
  2014. * thread.c (delete_single_step_breakpoints)
  2015. (thread_has_single_step_breakpoints_set)
  2016. (thread_has_single_step_breakpoint_here): New functions.
  2017. (clear_thread_inferior_resources): Also delete the thread's
  2018. single-step breakpoints.
  2019. 2014-10-15 Pedro Alves <palves@redhat.com>
  2020. * thread.c (delete_thread_breakpoint): New function.
  2021. (delete_step_resume_breakpoint)
  2022. (delete_exception_resume_breakpoint): Use it.
  2023. (delete_at_next_stop): New function.
  2024. (clear_thread_inferior_resources): Use delete_at_next_stop.
  2025. 2014-10-15 Pedro Alves <palves@redhat.com>
  2026. * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
  2027. (breakpoint_inserted_here_p): ... here. Remove special case for
  2028. software single-step breakpoints.
  2029. (find_non_raw_software_breakpoint_inserted_here): Inline ...
  2030. (software_breakpoint_inserted_here_p): ... here. Remove special
  2031. case for software single-step breakpoints.
  2032. (bp_target_info_copy_insertion_state)
  2033. (deprecated_insert_raw_breakpoint)
  2034. (deprecated_remove_raw_breakpoint): Delete functions.
  2035. * breakpoint.h (deprecated_insert_raw_breakpoint)
  2036. (deprecated_remove_raw_breakpoint): Remove declarations.
  2037. 2014-10-15 Pedro Alves <palves@redhat.com>
  2038. PR breakpoints/9649
  2039. * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
  2040. Delete array globals.
  2041. (single_step_breakpoints): New global.
  2042. (breakpoint_xfer_memory): Remove special handling for single-step
  2043. breakpoints.
  2044. (update_breakpoints_after_exec): Delete bp_single_step
  2045. breakpoints.
  2046. (detach_breakpoints): Remove special handling for single-step
  2047. breakpoints.
  2048. (breakpoint_init_inferior): Delete bp_single_step breakpoints.
  2049. (bpstat_stop_status): Add comment.
  2050. (bpstat_what, bptype_string, print_one_breakpoint_location)
  2051. (adjust_breakpoint_address, init_bp_location): Handle
  2052. bp_single_step.
  2053. (new_single_step_breakpoint): New function.
  2054. (set_momentary_breakpoint, bkpt_remove_location): Remove special
  2055. handling for single-step breakpoints.
  2056. (insert_single_step_breakpoint, single_step_breakpoints_inserted)
  2057. (remove_single_step_breakpoints, cancel_single_step_breakpoints):
  2058. Rewrite.
  2059. (detach_single_step_breakpoints, find_single_step_breakpoint):
  2060. Delete functions.
  2061. (breakpoint_has_location_inserted_here): New function.
  2062. (single_step_breakpoint_inserted_here_p): Rewrite.
  2063. * breakpoint.h: Remove FIXME.
  2064. (enum bptype) <bp_single_step>: New enum value.
  2065. (insert_single_step_breakpoint): Update comment.
  2066. * infrun.c (resume_cleanups)
  2067. (delete_step_thread_step_resume_breakpoint): Remove single-step
  2068. breakpoints.
  2069. (fetch_inferior_event): Install a cleanup that removes infrun
  2070. breakpoints.
  2071. (switch_back_to_stepped_thread) <expect thread advanced also>:
  2072. Clear step-over info.
  2073. 2014-10-15 Pedro Alves <palves@redhat.com>
  2074. * infrun.c (delete_step_resume_breakpoint_callback): Delete.
  2075. (delete_thread_infrun_breakpoints): New function, with parts
  2076. salvaged from delete_step_resume_breakpoint_callback.
  2077. (delete_step_thread_step_resume_breakpoint): Delete.
  2078. (for_each_just_stopped_thread_callback_func): New typedef.
  2079. (for_each_just_stopped_thread): New function.
  2080. (delete_just_stopped_threads_infrun_breakpoints): New function.
  2081. (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
  2082. (delete_just_stopped_threads_infrun_breakpoints_cleanup):
  2083. ... this. Adjust.
  2084. (wait_for_inferior, fetch_inferior_event): Adjust to renames.
  2085. 2014-10-15 Pedro Alves <palves@redhat.com>
  2086. * breakpoint.c (should_be_inserted): Don't insert watchpoints if
  2087. trying to step past a non-steppable watchpoint.
  2088. * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
  2089. field.
  2090. * infrun.c (struct step_over_info): Add new field
  2091. 'nonsteppable_watchpoint_p' and adjust comments.
  2092. (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
  2093. Adjust.
  2094. (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
  2095. (stepping_past_nonsteppable_watchpoint): New function.
  2096. (step_over_info_valid_p): Also return true if stepping past a
  2097. nonsteppable watchpoint.
  2098. (proceed): Adjust call to set_step_over_info. Remove reference to
  2099. init_infwait_state.
  2100. (init_wait_for_inferior): Remove reference to init_infwait_state.
  2101. (waiton_ptid): Delete global.
  2102. (struct execution_control_state)
  2103. <stepped_after_stopped_by_watchpoint>: Delete field.
  2104. (wait_for_inferior, fetch_inferior_event): Always pass
  2105. minus_one_ptid to target_wait.
  2106. (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
  2107. field.
  2108. (init_infwait_state): Delete function.
  2109. (handle_inferior_event): Remove infwait_state handling.
  2110. (handle_signal_stop) <watchpoints handling>: Adjust after
  2111. stepped_after_stopped_by_watchpoint removal. Don't remove
  2112. breakpoints here nor set infwait_state. Set the thread's
  2113. stepping_over_watchpoint flag, and call keep_going instead.
  2114. (keep_going): Handle stepping_over_watchpoint. Adjust
  2115. set_step_over_info calls.
  2116. * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
  2117. function.
  2118. 2014-10-15 Pedro Alves <palves@redhat.com>
  2119. * infrun.c (step_over_info_valid_p): New function.
  2120. (resume): Use step_over_info_valid_p instead of checking the
  2121. threads's trap_expected flag.
  2122. 2014-10-15 Doug Evans <dje@google.com>
  2123. Walfred Tedeschi <walfred.tedeschi@intel.com>
  2124. PR python/17364
  2125. * python/lib/gdb/__init__.py (packages): Add "printer".
  2126. * python/lib/gdb/command/bound_registers.py: Moved to ...
  2127. * python/lib/gdb/printer/bound_registers.py: ... here.
  2128. Add printer to global set of builtin printers. Rename printer from
  2129. "bound" to "mpx_bound128".
  2130. * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
  2131. registered as global "builtin" printer.
  2132. (add_builtin_pretty_printer): New function.
  2133. * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
  2134. gdb/printer/__init__.py.
  2135. 2014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
  2136. * Makefile.in (SFILES): Remove d-support.c.
  2137. (COMMON_OBS): Remove d-support.o.
  2138. * d-lang.h (d_parse_symbol): Remove declaration.
  2139. * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
  2140. * d-support.c: Remove file.
  2141. 2014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
  2142. * infrun.c (process_event_stop_test): Apply
  2143. gdbarch_addr_bits_remove to longjmp resume address.
  2144. 2014-10-15 Pedro Alves <palves@redhat.com>
  2145. * regformats/microblaze.dat: Delete file.
  2146. 2014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
  2147. * features/Makefile (microblaze-expedite): Replace pc with rpc.
  2148. * regformats/microblaze-with-stack-protect.dat: Regenerate.
  2149. 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
  2150. * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
  2151. as non-trivial.
  2152. 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
  2153. PR c++/13403
  2154. PR c++/15154
  2155. * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
  2156. with qualified args.
  2157. 2014-10-14 Joel Brobecker <brobecker@adacore.com>
  2158. * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
  2159. of the case where the second operand is a pointer.
  2160. <BINOP_SUB>: Likewise.
  2161. 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
  2162. * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
  2163. only if it is not NULL.
  2164. (bkpt_probe_remove_location): Likewise, for clear_semaphore.
  2165. * probe.h (struct probe_ops) <set_semaphore>: Update comment.
  2166. (struct probe_ops) <clear_semaphore>: Likewise.
  2167. * tracepoint.c (start_tracing): Call set_semaphore only if it is
  2168. not NULL.
  2169. (stop_tracing): Likewise, for clear_semaphore.
  2170. 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
  2171. * stap-probe.c (stap_parse_argument): Initialize expout explicitly
  2172. using language_c, instead of current_language.
  2173. 2014-10-13 Doug Evans <dje@google.com>
  2174. * python/py-objfile.c (objfpy_initialize): New function.
  2175. (objfpy_new, objfile_to_objfile_object): Call it.
  2176. * python/py-progspace.c (pspy_initialize): New function.
  2177. (pspy_new, pspace_to_pspace_object): Call it.
  2178. 2014-10-13 Miroslav Franc <mfranc@redhat.com>
  2179. Jan Kratochvil <jan.kratochvil@redhat.com>
  2180. Fix "save breakpoints" for "catch" command.
  2181. * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
  2182. newline.
  2183. 2014-10-12 Miroslav Franc <mfranc@redhat.com>
  2184. Fix "save breakpoints" for "disable $bpnum" command.
  2185. * breakpoint.c (save_breakpoints): Add $bpnum for disable.
  2186. 2014-10-10 Pedro Alves <palves@redhat.com>
  2187. * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
  2188. (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
  2189. (HFILES_NO_SRCDIR): Remove solib-irix.h.
  2190. * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
  2191. and been removed.
  2192. * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
  2193. * configure.ac: Remove references to IRIX.
  2194. * configure.host: Add *-*-irix* to the obsolete hosts section.
  2195. Remove all other references to irix.
  2196. * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
  2197. Delete files.
  2198. 2014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
  2199. * microblaze-tdep.c (microblaze_gdbarch_init): If the description
  2200. isn't valid, release the tdesc arch data and return NULL.
  2201. 2014-10-10 Pedro Alves <palves@redhat.com>
  2202. * linux-tdep.c: Include observer.h.
  2203. (linux_inferior_data): New global.
  2204. (struct linux_info): New structure.
  2205. (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
  2206. (get_linux_inferior_data): New functions.
  2207. (linux_vsyscall_range): Rename to ...
  2208. (linux_vsyscall_range_raw): ... this.
  2209. (linux_vsyscall_range): New function; handles caching.
  2210. (_initialize_linux_tdep): Register linux_inferior_data. Install
  2211. inferior_exit and inferior_appeared observers.
  2212. 2014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
  2213. Pedro Alves <palves@redhat.com>
  2214. PR symtab/14466
  2215. * solib-svr4.c (svr4_read_so_list): Rename to ...
  2216. (svr4_current_sos_1): ... this and change the function comment.
  2217. (svr4_current_sos): New function.
  2218. 2014-10-10 Pedro Alves <palves@redhat.com>
  2219. * arch-utils.c (default_vsyscall_range): New function.
  2220. * arch-utils.h (default_vsyscall_range): New declaration.
  2221. * gdbarch.sh (vsyscall_range): New hook.
  2222. * gdbarch.h, gdbarch.c: Regenerate.
  2223. * linux-tdep.c (linux_vsyscall_range): New function.
  2224. (linux_init_abi): Install linux_vsyscall_range as
  2225. vsyscall_range gdbarch hook.
  2226. * memrange.c (address_in_mem_range): New function.
  2227. * memrange.h (address_in_mem_range): New declaration.
  2228. * symfile-mem.c (find_vdso_size): Delete function.
  2229. (add_vsyscall_page): Use gdbarch_vsyscall_range.
  2230. 2014-10-10 Pedro Alves <palves@redhat.com>
  2231. * infrun.c (normal_stop): Fix typo in comment.
  2232. 2014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
  2233. PR tdep/9390
  2234. * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
  2235. typo when using logical AND to determine instruction type.
  2236. 2014-10-09 Yao Qi <yao@codesourcery.com>
  2237. * infrun.c (handle_signal_stop): Remove local variable
  2238. 'printed'.
  2239. 2014-10-08 Stan Shebs <stan@codesourcery.com>
  2240. * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
  2241. 2014-10-08 Gary Benson <gbenson@redhat.com>
  2242. * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
  2243. 2014-10-08 Gary Benson <gbenson@redhat.com>
  2244. * common/common-defs.h: Include common-exceptions.h.
  2245. * exceptions.h: Do not include common-exceptions.h.
  2246. 2014-10-08 Gary Benson <gbenson@redhat.com>
  2247. * common/common-defs.h: Include cleanups.h.
  2248. * common/common-exceptions.c: Do not include cleanups.h.
  2249. * utils.h: Likewise.
  2250. 2014-10-08 Gary Benson <gbenson@redhat.com>
  2251. * ada-lang.c: Do not include exceptions.h.
  2252. * ada-valprint.c: Likewise.
  2253. * amd64-tdep.c: Likewise.
  2254. * auto-load.c: Likewise.
  2255. * block.c: Likewise.
  2256. * break-catch-throw.c: Likewise.
  2257. * breakpoint.c: Likewise.
  2258. * btrace.c: Likewise.
  2259. * c-lang.c: Likewise.
  2260. * cli/cli-cmds.c: Likewise.
  2261. * cli/cli-interp.c: Likewise.
  2262. * cli/cli-script.c: Likewise.
  2263. * completer.c: Likewise.
  2264. * corefile.c: Likewise.
  2265. * corelow.c: Likewise.
  2266. * cp-abi.c: Likewise.
  2267. * cp-support.c: Likewise.
  2268. * cp-valprint.c: Likewise.
  2269. * darwin-nat.c: Likewise.
  2270. * dwarf2-frame-tailcall.c: Likewise.
  2271. * dwarf2-frame.c: Likewise.
  2272. * dwarf2loc.c: Likewise.
  2273. * dwarf2read.c: Likewise.
  2274. * eval.c: Likewise.
  2275. * event-loop.c: Likewise.
  2276. * event-top.c: Likewise.
  2277. * f-valprint.c: Likewise.
  2278. * frame-unwind.c: Likewise.
  2279. * frame.c: Likewise.
  2280. * gdbtypes.c: Likewise.
  2281. * gnu-v2-abi.c: Likewise.
  2282. * gnu-v3-abi.c: Likewise.
  2283. * guile/scm-auto-load.c: Likewise.
  2284. * guile/scm-breakpoint.c: Likewise.
  2285. * guile/scm-cmd.c: Likewise.
  2286. * guile/scm-frame.c: Likewise.
  2287. * guile/scm-lazy-string.c: Likewise.
  2288. * guile/scm-param.c: Likewise.
  2289. * guile/scm-symbol.c: Likewise.
  2290. * guile/scm-type.c: Likewise.
  2291. * hppa-hpux-tdep.c: Likewise.
  2292. * i386-tdep.c: Likewise.
  2293. * inf-loop.c: Likewise.
  2294. * infcall.c: Likewise.
  2295. * infcmd.c: Likewise.
  2296. * infrun.c: Likewise.
  2297. * interps.c: Likewise.
  2298. * interps.h: Likewise.
  2299. * jit.c: Likewise.
  2300. * linespec.c: Likewise.
  2301. * linux-nat.c: Likewise.
  2302. * linux-thread-db.c: Likewise.
  2303. * m32r-rom.c: Likewise.
  2304. * main.c: Likewise.
  2305. * memory-map.c: Likewise.
  2306. * mi/mi-cmd-break.c: Likewise.
  2307. * mi/mi-cmd-stack.c: Likewise.
  2308. * mi/mi-interp.c: Likewise.
  2309. * mi/mi-main.c: Likewise.
  2310. * monitor.c: Likewise.
  2311. * nto-procfs.c: Likewise.
  2312. * objc-lang.c: Likewise.
  2313. * p-valprint.c: Likewise.
  2314. * parse.c: Likewise.
  2315. * ppc-linux-tdep.c: Likewise.
  2316. * printcmd.c: Likewise.
  2317. * probe.c: Likewise.
  2318. * python/py-auto-load.c: Likewise.
  2319. * python/py-breakpoint.c: Likewise.
  2320. * python/py-cmd.c: Likewise.
  2321. * python/py-finishbreakpoint.c: Likewise.
  2322. * python/py-frame.c: Likewise.
  2323. * python/py-framefilter.c: Likewise.
  2324. * python/py-function.c: Likewise.
  2325. * python/py-gdb-readline.c: Likewise.
  2326. * python/py-inferior.c: Likewise.
  2327. * python/py-infthread.c: Likewise.
  2328. * python/py-lazy-string.c: Likewise.
  2329. * python/py-linetable.c: Likewise.
  2330. * python/py-param.c: Likewise.
  2331. * python/py-prettyprint.c: Likewise.
  2332. * python/py-symbol.c: Likewise.
  2333. * python/py-type.c: Likewise.
  2334. * python/py-value.c: Likewise.
  2335. * python/python-internal.h: Likewise.
  2336. * python/python.c: Likewise.
  2337. * record-btrace.c: Likewise.
  2338. * record-full.c: Likewise.
  2339. * regcache.c: Likewise.
  2340. * remote-fileio.c: Likewise.
  2341. * remote-mips.c: Likewise.
  2342. * remote.c: Likewise.
  2343. * rs6000-aix-tdep.c: Likewise.
  2344. * rs6000-nat.c: Likewise.
  2345. * skip.c: Likewise.
  2346. * solib-darwin.c: Likewise.
  2347. * solib-dsbt.c: Likewise.
  2348. * solib-frv.c: Likewise.
  2349. * solib-ia64-hpux.c: Likewise.
  2350. * solib-spu.c: Likewise.
  2351. * solib-svr4.c: Likewise.
  2352. * solib.c: Likewise.
  2353. * spu-tdep.c: Likewise.
  2354. * stack.c: Likewise.
  2355. * stap-probe.c: Likewise.
  2356. * symfile-mem.c: Likewise.
  2357. * symmisc.c: Likewise.
  2358. * target.c: Likewise.
  2359. * thread.c: Likewise.
  2360. * top.c: Likewise.
  2361. * tracepoint.c: Likewise.
  2362. * tui/tui-interp.c: Likewise.
  2363. * typeprint.c: Likewise.
  2364. * utils.c: Likewise.
  2365. * valarith.c: Likewise.
  2366. * valops.c: Likewise.
  2367. * valprint.c: Likewise.
  2368. * value.c: Likewise.
  2369. * varobj.c: Likewise.
  2370. * windows-nat.c: Likewise.
  2371. * xml-support.c: Likewise.
  2372. 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
  2373. * mips-tdep.c (add_offset_16): Rewrite to implement what the
  2374. name implies.
  2375. (extended_mips16_next_pc): Update accordingly.
  2376. 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
  2377. * mips-tdep.c (mips16_instruction_is_compact_branch): New
  2378. function.
  2379. (micromips_instruction_is_compact_branch): Likewise.
  2380. (mips16_scan_prologue): Terminate scanning upon seeing a branch
  2381. or a compact jump, reaching a jump delay slot, or seeing a
  2382. second non-prologue instruction.
  2383. (micromips_scan_prologue): Also terminate scanning upon seeing a
  2384. compact branch or jump, or reaching a branch or jump delay slot.
  2385. (mips32_scan_prologue): Terminate scanning upon reaching a branch
  2386. or jump delay slot, or seeing a second non-prologue instruction.
  2387. (mips32_instruction_has_delay_slot): Retain instruction
  2388. examination code only, update arguments accordingly and move
  2389. instruction fetch pieces to...
  2390. (mips32_insn_at_pc_has_delay_slot): ... this new function.
  2391. (micromips_instruction_has_delay_slot): Likewise and to...
  2392. (micromips_insn_at_pc_has_delay_slot): ... this new function.
  2393. (mips16_instruction_has_delay_slot): Likewise and to...
  2394. (mips16_insn_at_pc_has_delay_slot): ... this new function.
  2395. (mips_single_step_through_delay): Update accordingly.
  2396. (mips_adjust_breakpoint_address): Likewise.
  2397. 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
  2398. * mips-tdep.c (micromips_instruction_has_delay_slot): When
  2399. !mustbe32 also return 1 for 32-bit instructions.
  2400. (mips16_instruction_has_delay_slot): Likewise. Add an
  2401. explanatory comment.
  2402. 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
  2403. * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
  2404. symbols special.
  2405. 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
  2406. * breakpoint.h (bp_target_info): Add `reqstd_address' member,
  2407. update comments.
  2408. * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
  2409. for the breakpoint's address. Don't preinitialize `placed_size'.
  2410. (insert_bp_location): Set `reqstd_address' rather than
  2411. `placed_address'.
  2412. (bp_target_info_copy_insertion_state): Also copy `placed_address'.
  2413. (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
  2414. address.
  2415. (bkpt_remove_location): Likewise.
  2416. (deprecated_insert_raw_breakpoint): Likewise.
  2417. (deprecated_remove_raw_breakpoint): Likewise.
  2418. (find_single_step_breakpoint): Likewise.
  2419. * mem-break.c (default_memory_insert_breakpoint): Use
  2420. `reqstd_address' for the breakpoint's address. Don't set
  2421. `placed_address' or `placed_size' if breakpoint contents couldn't
  2422. have been determined.
  2423. * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
  2424. the breakpoint's address.
  2425. (remote_insert_hw_breakpoint): Likewise. Don't set
  2426. `placed_address' or `placed_size' if breakpoint couldn't have been
  2427. set.
  2428. * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
  2429. `reqstd_address' for the breakpoint's address.
  2430. * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
  2431. * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
  2432. * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
  2433. * microblaze-linux-tdep.c
  2434. (microblaze_linux_memory_remove_breakpoint): Likewise.
  2435. * monitor.c (monitor_insert_breakpoint): Likewise.
  2436. * nto-procfs.c (procfs_insert_breakpoint): Likewise.
  2437. (procfs_insert_hw_breakpoint): Likewise.
  2438. * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
  2439. * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
  2440. * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
  2441. * remote-mips.c (mips_insert_breakpoint): Likewise.
  2442. * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
  2443. 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
  2444. * valops.c (value_assign): Check for bit field assignments
  2445. before calling architecture-specific register value
  2446. conversion functions.
  2447. 2014-10-03 Pierre Muller <muller@sourceware.org>
  2448. * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
  2449. 2014-10-02 Pedro Alves <palves@redhat.com>
  2450. * breakpoint.c (breakpoints_should_be_inserted_now): Use
  2451. threads_are_executing.
  2452. * breakpoint.h (breakpoints_should_be_inserted_now): Add
  2453. describing comment.
  2454. * gdbthread.h (threads_are_executing): Declare.
  2455. (handle_signal_stop) <random signals>: Don't print about the
  2456. signal here if stopping.
  2457. (end_stepping_range): Don't notify observers here.
  2458. (normal_stop): Update the thread list. If stopped by a random
  2459. signal or a stepping range ended, notify observers.
  2460. * thread.c (threads_executing): New global.
  2461. (init_thread_list): Clear 'threads_executing'.
  2462. (set_executing): Set or clear 'threads_executing'.
  2463. (threads_are_executing): New function.
  2464. (update_threads_executing): New function.
  2465. (update_thread_list): Use it.
  2466. 2014-10-02 Pedro Alves <palves@redhat.com>
  2467. PR breakpoints/17431
  2468. * breakpoint.c (update_breakpoints_after_exec): Don't create
  2469. overlay, longjmp, std terminate nor exception breakpoints here.
  2470. 2014-10-02 Pedro Alves <palves@redhat.com>
  2471. * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
  2472. Adjust comments.
  2473. * inferior.c (find_inferior_for_program_space): Give preference to
  2474. the current inferior.
  2475. * inferior.h (find_inferior_for_program_space): Update comment.
  2476. * progspace.c (switch_to_program_space_and_thread): Prefer the
  2477. current inferior if it's bound to the program space requested. If
  2478. the inferior found doesn't have a PID yet, don't bother looking up
  2479. a thread.
  2480. * progspace.h (switch_to_program_space_and_thread): Adjust
  2481. comment.
  2482. * thread.c (any_thread_of_process, any_live_thread_of_process):
  2483. Give preference to the current thread.
  2484. 2014-10-01 Pedro Alves <palves@redhat.com>
  2485. * breakpoint.c (insert_bp_location): Error out if inserting a
  2486. software breakpoint at a read-only address.
  2487. * target.c (memory_xfer_check_region): New function, factored out
  2488. from ...
  2489. (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
  2490. ULONGEST.
  2491. (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
  2492. against the memory region attributes.
  2493. 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
  2494. * NEWS: Announce new exit-code field in -list-thread-groups
  2495. output.
  2496. * inferior.c (exit_inferior_1): Don't clear exit code.
  2497. (inferior_appeared): Clear exit code.
  2498. * mi/mi-main.c (print_one_inferior): Add printing of the exit
  2499. code.
  2500. 2014-10-01 Pedro Alves <palves@redhat.com>
  2501. * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
  2502. GENERATED" along with emacs/vi read-only markers.
  2503. * regformats/aarch64.dat: Regenerate.
  2504. * regformats/arm-with-iwmmxt.dat: Regenerate.
  2505. * regformats/arm-with-neon.dat: Regenerate.
  2506. * regformats/arm-with-vfpv2.dat: Regenerate.
  2507. * regformats/arm-with-vfpv3.dat: Regenerate.
  2508. * regformats/i386/amd64-avx-linux.dat: Regenerate.
  2509. * regformats/i386/amd64-avx.dat: Regenerate.
  2510. * regformats/i386/amd64-avx512-linux.dat: Regenerate.
  2511. * regformats/i386/amd64-avx512.dat: Regenerate.
  2512. * regformats/i386/amd64-linux.dat: Regenerate.
  2513. * regformats/i386/amd64-mpx-linux.dat: Regenerate.
  2514. * regformats/i386/amd64-mpx.dat: Regenerate.
  2515. * regformats/i386/amd64.dat: Regenerate.
  2516. * regformats/i386/i386-avx-linux.dat: Regenerate.
  2517. * regformats/i386/i386-avx.dat: Regenerate.
  2518. * regformats/i386/i386-avx512-linux.dat: Regenerate.
  2519. * regformats/i386/i386-avx512.dat: Regenerate.
  2520. * regformats/i386/i386-linux.dat: Regenerate.
  2521. * regformats/i386/i386-mmx-linux.dat: Regenerate.
  2522. * regformats/i386/i386-mmx.dat: Regenerate.
  2523. * regformats/i386/i386-mpx-linux.dat: Regenerate.
  2524. * regformats/i386/i386-mpx.dat: Regenerate.
  2525. * regformats/i386/i386.dat: Regenerate.
  2526. * regformats/i386/x32-avx-linux.dat: Regenerate.
  2527. * regformats/i386/x32-avx.dat: Regenerate.
  2528. * regformats/i386/x32-avx512-linux.dat: Regenerate.
  2529. * regformats/i386/x32-avx512.dat: Regenerate.
  2530. * regformats/i386/x32-linux.dat: Regenerate.
  2531. * regformats/i386/x32.dat: Regenerate.
  2532. * regformats/microblaze-with-stack-protect.dat: Regenerate.
  2533. * regformats/mips-dsp-linux.dat: Regenerate.
  2534. * regformats/mips-linux.dat: Regenerate.
  2535. * regformats/mips64-dsp-linux.dat: Regenerate.
  2536. * regformats/mips64-linux.dat: Regenerate.
  2537. * regformats/nios2-linux.dat: Regenerate.
  2538. * regformats/rs6000/powerpc-32.dat: Regenerate.
  2539. * regformats/rs6000/powerpc-32l.dat: Regenerate.
  2540. * regformats/rs6000/powerpc-64l.dat: Regenerate.
  2541. * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
  2542. * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
  2543. * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
  2544. * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
  2545. * regformats/rs6000/powerpc-e500l.dat: Regenerate.
  2546. * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
  2547. * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
  2548. * regformats/s390-linux32.dat: Regenerate.
  2549. * regformats/s390-linux32v1.dat: Regenerate.
  2550. * regformats/s390-linux32v2.dat: Regenerate.
  2551. * regformats/s390-linux64.dat: Regenerate.
  2552. * regformats/s390-linux64v1.dat: Regenerate.
  2553. * regformats/s390-linux64v2.dat: Regenerate.
  2554. * regformats/s390-te-linux64.dat: Regenerate.
  2555. * regformats/s390x-linux64.dat: Regenerate.
  2556. * regformats/s390x-linux64v1.dat: Regenerate.
  2557. * regformats/s390x-linux64v2.dat: Regenerate.
  2558. * regformats/s390x-te-linux64.dat: Regenerate.
  2559. * regformats/tic6x-c62x-linux.dat: Regenerate.
  2560. * regformats/tic6x-c62x.dat: Regenerate.
  2561. * regformats/tic6x-c64x-linux.dat: Regenerate.
  2562. * regformats/tic6x-c64x.dat: Regenerate.
  2563. * regformats/tic6x-c64xp-linux.dat: Regenerate.
  2564. * regformats/tic6x-c64xp.dat: Regenerate.
  2565. 2014-10-01 Pedro Alves <palves@redhat.com>
  2566. * features/Makefile: Update comments.
  2567. (XMLTOC): List all xml files we build C files from.
  2568. (clean-cfiles): New rule.
  2569. 2014-10-01 Pedro Alves <palves@redhat.com>
  2570. * features/i386/amd64-avx512-linux.c: Regenerate.
  2571. * features/i386/amd64-avx512.c: Regenerate.
  2572. * features/i386/x32-avx512-linux.c: Regenerate.
  2573. * features/i386/x32-avx512.c: Regenerate.
  2574. 2014-10-01 Pedro Alves <palves@redhat.com>
  2575. * features/Makefile (WHICH): Remove arm-with-m,
  2576. arm-with-m-fpa-layout and arm-with-m-vfp-d16.
  2577. 2014-10-01 Pedro Alves <palves@redhat.com>
  2578. * features/Makefile (clean): New rule.
  2579. 2014-10-01 Pedro Alves <palves@redhat.com>
  2580. * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
  2581. (zmm14h): Add missing end quotes.
  2582. 2014-10-01 Pedro Alves <palves@redhat.com>
  2583. * features/aarch64-core.xml (cpsr): Change back to 32-bit.
  2584. * features/aarch64.c: Regenerate.
  2585. 2014-09-30 Don Breazeal <donb@codesourcery.com>
  2586. * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
  2587. code so as to work with follow_fork_inferior.
  2588. * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
  2589. (inf_ttrace_create_inferior): Remove reference to
  2590. inf_ttrace_vfork_ppid.
  2591. (inf_ttrace_attach): Ditto.
  2592. (inf_ttrace_detach): Ditto.
  2593. (inf_ttrace_kill): Use current_inferior instead of
  2594. inf_ttrace_vfork_ppid.
  2595. (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
  2596. TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
  2597. inferior away from the parent.
  2598. * infrun.c (follow_fork): Call follow_fork_inferior instead of
  2599. target_follow_fork.
  2600. (follow_fork_inferior): New function.
  2601. (follow_inferior_reset_breakpoints): Make function static.
  2602. * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
  2603. * linux-nat.c (linux_child_follow_fork): Move target-independent
  2604. code to infrun.c:follow_fork_inferior.
  2605. 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
  2606. * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
  2607. * gdbarch.c: Regenerate.
  2608. * gdbarch.h: Likewise.
  2609. * corelow.c (sniff_core_bfd): Drop presence check for deleted
  2610. gdbarch method 'regset_from_core_section'.
  2611. (get_core_register_section): Remove handling for the case that
  2612. regset == NULL and regset_from_core_section is defined.
  2613. (get_core_registers): Drop check for deleted method.
  2614. * procfs.c (procfs_do_thread_registers): Adjust comment.
  2615. 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
  2616. * linux-nat.c (linux_nat_collect_thread_registers): Remove.
  2617. (linux_nat_make_corefile_notes): Remove.
  2618. (linux_target_install_ops): Do not set target method
  2619. 'make_corefile_notes'.
  2620. * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
  2621. Remove field.
  2622. (linux_corefile_thread_callback): Instead of args->collect, call
  2623. linux_collect_thread_registers.
  2624. (linux_make_corefile_notes): Remove 'collect' parameter. Return
  2625. NULL unless there is a regset iterator.
  2626. (linux_make_corefile_notes_1): Remove.
  2627. (linux_init_abi): Replace reference to linux_make_corefile_notes_1
  2628. by linux_make_corefile_notes.
  2629. * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
  2630. 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
  2631. * fbsd-nat.c (find_signalled_thread, find_stop_signal)
  2632. (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
  2633. Remove.
  2634. * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
  2635. 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
  2636. * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
  2637. (xtensa_iterate_over_regset_sections): New.
  2638. (xtensa_gdbarch_init): Adjust gdbarch initialization.
  2639. 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
  2640. * vax-tdep.c (vax_regset_from_core_section): Remove.
  2641. (vax_iterate_over_regset_sections): New.
  2642. (vax_gdbarch_init): Adjust gdbarch initialization.
  2643. 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
  2644. * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
  2645. (tilegx_regset_from_core_section): Remove.
  2646. (tilegx_iterate_over_regset_sections): New.
  2647. (tilegx_linux_init_abi): Adjust gdbarch initialization.
  2648. 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
  2649. * sparc-tdep.c (sparc_regset_from_core_section): Remove.
  2650. (sparc_iterate_over_regset_sections): New.
  2651. (sparc32_gdbarch_init): Adjust gdbarch initialization.
  2652. * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
  2653. targets.
  2654. * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
  2655. (sparc64fbsd_init_abi): Call fbsd_init_abi.
  2656. * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
  2657. target method 'make_corefile_notes'.
  2658. 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
  2659. * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
  2660. 'sizeof_gregset' and 'sizeof_fpregset'.
  2661. * sh-tdep.c (sh_regset_from_core_section): Remove.
  2662. (sh_iterate_over_regset_sections): New.
  2663. (sh_gdbarch_init): Adjust gdbarch initialization.
  2664. * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
  2665. sizeof_fpregset.
  2666. * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
  2667. 'sizeof_gregset'.
  2668. 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
  2669. * score-tdep.c (score7_linux_regset_from_core_section): Remove.
  2670. (score7_linux_iterate_over_regset_sections): New.
  2671. (score_gdbarch_init): Adjust gdbarch initialization.
  2672. 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
  2673. * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
  2674. FreeBSD targets.
  2675. * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
  2676. method 'make_corefile_notes'.
  2677. * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
  2678. (ppcfbsd_regset_from_core_section): Remove.
  2679. (ppcfbsd_iterate_over_regset_sections): New.
  2680. (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
  2681. initialization.
  2682. * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
  2683. (ppcnbsd_iterate_over_regset_sections): New.
  2684. (ppcnbsd_init_abi): Adjust.
  2685. * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
  2686. (ppcobsd_iterate_over_regset_sections): New.
  2687. (ppcobsd_init_abi): Adjust.
  2688. * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
  2689. (rs6000_aix_iterate_over_regset_sections): New.
  2690. (rs6000_aix_init_osabi): Adjust.
  2691. 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
  2692. * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
  2693. (nios2_regset_from_core_section): Remove.
  2694. (nios2_iterate_over_regset_sections): New.
  2695. (nios2_linux_init_abi): Adjust gdbarch initialization.
  2696. 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
  2697. * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
  2698. (am33_iterate_over_regset_sections): New.
  2699. (am33_linux_init_osabi): Adjust gdbarch initialization.
  2700. 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
  2701. * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
  2702. (mips_linux_iterate_over_regset_sections): New.
  2703. (mips_linux_init_abi): Adjust gdbarch initialization.
  2704. * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
  2705. (mips64obsd_iterate_over_regset_sections): New.
  2706. (mips64obsd_init_abi): Adjust.
  2707. * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
  2708. (mipsnbsd_iterate_over_regset_sections): New.
  2709. (mipsnbsd_init_abi): Adjust.
  2710. 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
  2711. * m88k-tdep.c (m88k_regset_from_core_section): Remove.
  2712. (m88k_iterate_over_regset_sections): New.
  2713. (m88k_gdbarch_init): Adjust gdbarch initialization.
  2714. 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
  2715. * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
  2716. (ia64_linux_iterate_over_regset_sections): New.
  2717. (ia64_linux_init_abi): Adjust gdbarch initialization.
  2718. 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
  2719. * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
  2720. (m68kbsd_iterate_over_regset_sections): New.
  2721. (m68kbsd_init_abi): Adjust gdbarch initialization.
  2722. * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
  2723. (m68k_linux_iterate_over_regset_sections): New.
  2724. (m68k_linux_init_abi): Adjust gdbarch initialization.
  2725. 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
  2726. * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
  2727. (m32r_linux_regset_from_core_section): Remove.
  2728. (m32r_linux_iterate_over_regset_sections): New.
  2729. (m32r_linux_init_abi): Adjust gdbarch initialization.
  2730. 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
  2731. * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
  2732. (amd64obsd_iterate_over_regset_sections): New.
  2733. (amd64obsd_core_init_abi): Adjust gdbarch initialization.
  2734. * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
  2735. Remove.
  2736. (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
  2737. regset_from_core_section initialization.
  2738. * i386-tdep.c (i386_regset_from_core_section): Remove.
  2739. (i386_iterate_over_regset_sections): New.
  2740. (i386_gdbarch_init): Adjust gdbarch initialization.
  2741. * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
  2742. (i386_iterate_over_regset_sections): New prototype.
  2743. * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
  2744. Remove.
  2745. (i386obsd_aout_iterate_over_regset_sections): New.
  2746. (i386obsd_aout_init_abi): Adjust gdbarch initialization.
  2747. * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
  2748. targets.
  2749. * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
  2750. (amd64fbsd_init_abi): Call fbsd_init_abi.
  2751. * i386fbsd-tdep.c (fbsd-tdep.h): Include.
  2752. (i386fbsd4_init_abi): Call fbsd_init_abi.
  2753. * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
  2754. target method 'make_corefile_notes'.
  2755. * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
  2756. 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
  2757. * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
  2758. (hppa_hpux_iterate_over_regset_sections): New.
  2759. (hppa_hpux_init_abi): Adjust gdbarch initialization.
  2760. * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
  2761. (hppa_linux_iterate_over_regset_sections): New.
  2762. (hppa_linux_init_abi): Adjust.
  2763. * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
  2764. (hppanbsd_iterate_over_regset_sections): New.
  2765. (hppanbsd_init_abi): Adjust.
  2766. * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
  2767. (hppaobsd_iterate_over_regset_sections): New.
  2768. (hppaobsd_init_abi): Adjust.
  2769. 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
  2770. * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
  2771. (frv_linux_iterate_over_regset_sections): New.
  2772. (frv_linux_init_abi): Adjust gdbarch initialization.
  2773. 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
  2774. * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
  2775. (armbsd_iterate_over_regset_sections): New prototype.
  2776. * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
  2777. (armbsd_iterate_over_regset_sections): New.
  2778. * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
  2779. initialization.
  2780. 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
  2781. * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
  2782. (alpha_linux_iterate_over_regset_sections): New.
  2783. (alpha_linux_init_abi): Adjust gdbarch initialization.
  2784. * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
  2785. prototype.
  2786. (alphanbsd_iterate_over_regset_sections): New prototype.
  2787. 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
  2788. * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
  2789. Remove.
  2790. (aarch64_linux_iterate_over_regset_sections): New.
  2791. (aarch64_linux_init_abi): Adjust gdbarch initialization.
  2792. 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
  2793. * fbsd-tdep.c: New file.
  2794. * fbsd-tdep.h: New file.
  2795. * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
  2796. (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
  2797. (ALLDEPFILES): Add fbsd-tdep.c.
  2798. 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
  2799. * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
  2800. parameter.
  2801. * gdbarch.h: Regenerate.
  2802. * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
  2803. iterator.
  2804. (get_core_register_section): Add parameter 'regset' and use it, if
  2805. set. Add parameter 'min_size' and verify the bfd section size
  2806. against it.
  2807. (get_core_registers_cb): Add parameter 'regset' and pass it to
  2808. get_core_register section. For the "standard" register sections
  2809. ".reg" and ".reg2", set an appropriate default for human_name.
  2810. (get_core_registers): Don't abort when the gdbarch has an iterator
  2811. but no regset_from_core_section. Add NULL/0 for parameters
  2812. 'regset'/'min_size' in calls to get_core_register_section.
  2813. * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
  2814. 'regset' and use it instead of calling the
  2815. regset_from_core_section gdbarch method.
  2816. * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
  2817. * i386-tdep.c (i386_supply_xstateregset)
  2818. (i386_collect_xstateregset, i386_xstateregset): Moved to
  2819. i386-linux-tdep.c.
  2820. (i386_regset_from_core_section): Drop handling for .reg-xfp and
  2821. .reg-xstate.
  2822. (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
  2823. core file support only if the regset iterator hasn't been set.
  2824. * i386-linux-tdep.c (i386_linux_supply_xstateregset)
  2825. (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
  2826. Moved from i386-tdep.c and renamed to *_linux*.
  2827. (i386_linux_iterate_over_regset_sections): Add regset parameter to
  2828. each callback invocation. Allow any .reg-xstate size when reading
  2829. from a core file.
  2830. * amd64-tdep.c (amd64_supply_xstateregset)
  2831. (amd64_collect_xstateregset, amd64_xstateregset): Moved to
  2832. amd64-linux-tdep.c.
  2833. (amd64_regset_from_core_section): Remove.
  2834. (amd64_init_abi): Set new tdep field 'fpregset'. No longer
  2835. install an amd64-specific regset_from_core_section gdbarch method.
  2836. * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
  2837. (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
  2838. Moved from amd64-tdep.c and renamed to *_linux*.
  2839. (amd64_linux_iterate_over_regset_sections): Add regset parameter
  2840. to each callback invocation. Allow any .reg-xstate size when
  2841. reading from a core file.
  2842. * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
  2843. (arm_linux_iterate_over_regset_sections): Add regset parameter to
  2844. each callback invocation.
  2845. (arm_linux_init_abi): No longer set the regset_from_core_section
  2846. gdbarch method.
  2847. * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
  2848. (ppc_linux_iterate_over_regset_sections): Add regset parameter to
  2849. each callback invocation.
  2850. (ppc_linux_init_abi): No longer set the regset_from_core_section
  2851. gdbarch method.
  2852. * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
  2853. gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
  2854. (s390_regset_from_core_section): Remove.
  2855. (s390_iterate_over_regset_sections): Add regset parameter to each
  2856. callback invocation.
  2857. (s390_gdbarch_init): No longer set the regset_from_core_section
  2858. gdbarch method. Drop initialization of deleted tdep fields.
  2859. 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
  2860. * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
  2861. (amd64_linux_iterate_over_regset_sections): New.
  2862. (amd64_linux_init_abi_common): Don't install the regset section
  2863. list, but the new iterator in gdbarch.
  2864. * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
  2865. (arm_linux_vfp_regset_sections): Remove. Move combined logic...
  2866. (arm_linux_iterate_over_regset_sections): ...here. New function.
  2867. (arm_linux_init_abi): Set iterator instead of section list.
  2868. * corelow.c (get_core_registers_cb): New function, logic moved
  2869. from...
  2870. (get_core_registers): ...loop body here. Use new iterator method
  2871. instead of walking through the regset section list.
  2872. * gdbarch.sh: Remove 'core_regset_sections'. New method
  2873. 'iterate_over_regset_sections'. New typedef
  2874. 'iterate_over_regset_sections_cb'.
  2875. * gdbarch.c: Regenerate.
  2876. * gdbarch.h: Likewise.
  2877. * i386-linux-tdep.c (i386_linux_regset_sections)
  2878. (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
  2879. Remove.
  2880. (i386_linux_iterate_over_regset_sections): New.
  2881. (i386_linux_init_abi): Don't choose a regset section list, but
  2882. install new iterator in gdbarch.
  2883. * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
  2884. (linux_collect_regset_section_cb): New function, logic moved
  2885. from...
  2886. (linux_collect_thread_registers): ...loop body here. Use iterator
  2887. method instead of walking through list.
  2888. (linux_make_corefile_notes_1): Check for presence of iterator
  2889. method instead of regset section list.
  2890. * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
  2891. (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
  2892. (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
  2893. (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
  2894. (ppc_linux_iterate_over_regset_sections): ...here. New function.
  2895. (ppc_linux_init_abi): Don't choose from above regset section
  2896. lists, but install new iterator in gdbarch.
  2897. * regset.h (struct core_regset_section): Remove.
  2898. * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
  2899. have_linux_v1, have_linux_v2, and have_tdb.
  2900. (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
  2901. (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
  2902. (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
  2903. (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
  2904. (s390x_linux64v2_regset_sections): Remove. Move combined logic...
  2905. (s390_iterate_over_regset_sections): ...here. New function. Use
  2906. new tdep fields.
  2907. (s390_gdbarch_init): Set new tdep fields. Don't choose from above
  2908. regset section lists, but install new iterator.
  2909. 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
  2910. * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
  2911. 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
  2912. * progspace.c (print_program_space): Don't prune program spaces
  2913. before printing them.
  2914. 2014-09-25 Pedro Alves <palves@redhat.com>
  2915. * infrun.c (user_visible_resume_ptid): Don't check
  2916. singlestep_breakpoints_inserted_p.
  2917. 2014-09-25 Pedro Alves <palves@redhat.com>
  2918. * breakpoint.c (should_be_inserted): Add debug output.
  2919. 2014-09-25 Pedro Alves <palves@redhat.com>
  2920. * infrun.c (stepping_past_instruction_at)
  2921. (clear_exit_convenience_vars): Point at infrun.h instead of
  2922. inferior.h.
  2923. (handle_signal_stop): Fix typo.
  2924. 2014-09-24 Yao Qi <yao@codesourcery.com>
  2925. * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
  2926. bitmask.
  2927. 2014-09-22 Gary Benson <gbenson@redhat.com>
  2928. * target.c (target_stop): Updated comment.
  2929. 2014-09-22 Gary Benson <gbenson@redhat.com>
  2930. * target/target.h (target_stop_ptid): Renamed as...
  2931. (target_stop_and_wait): New function. Updated comment.
  2932. All uses updated.
  2933. (target_continue_ptid): Renamed as...
  2934. (target_continue_no_signal): New function. Updated comment.
  2935. All uses updated.
  2936. 2014-09-22 Pedro Alves <palves@redhat.com>
  2937. * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
  2938. and "auto" merged.
  2939. * breakpoint.c (enum ugll_insert_mode): New enum.
  2940. (always_inserted_mode): Now a plain boolean.
  2941. (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
  2942. (breakpoints_always_inserted_mode): Delete.
  2943. (breakpoints_should_be_inserted_now): New function.
  2944. (insert_breakpoints): Pass UGLL_INSERT to
  2945. update_global_location_list instead of calling
  2946. insert_breakpoint_locations manually.
  2947. (create_solib_event_breakpoint_1): New, factored out from ...
  2948. (create_solib_event_breakpoint): ... this.
  2949. (create_and_insert_solib_event_breakpoint): Use
  2950. create_solib_event_breakpoint_1 instead of calling
  2951. insert_breakpoint_locations manually.
  2952. (update_global_location_list): Change parameter type from boolean
  2953. to enum ugll_insert_mode. All callers adjusted. Adjust to use
  2954. breakpoints_should_be_inserted_now and handle UGLL_INSERT.
  2955. (update_global_location_list_nothrow): Change parameter type from
  2956. boolean to enum ugll_insert_mode.
  2957. (_initialize_breakpoint): "breakpoint always-inserted" option is
  2958. now a boolean command. Update help text.
  2959. * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
  2960. (breakpoints_should_be_inserted_now): New declaration.
  2961. * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
  2962. Remove breakpoints_always_inserted_mode check.
  2963. (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
  2964. * remote.c (remote_start_remote): Likewise.
  2965. 2014-09-22 Pedro Alves <palves@redhat.com>
  2966. * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
  2967. (insert_breakpoints): Don't call insert_breakpoint_locations here.
  2968. Instead, pass UGLL_INSERT to update_global_location_list.
  2969. (update_global_location_list): Change parameter type from boolean
  2970. to enum ugll_insert_mode. All callers adjusted. Adjust to use
  2971. breakpoints_should_be_inserted_now and handle UGLL_INSERT.
  2972. (create_solib_event_breakpoint_1): New, factored out from ...
  2973. (create_solib_event_breakpoint): ... this.
  2974. (create_and_insert_solib_event_breakpoint): Use
  2975. create_solib_event_breakpoint_1 instead of calling
  2976. insert_breakpoint_locations manually.
  2977. (update_global_location_list): Handle UGLL_INSERT.
  2978. 2014-09-22 Pedro Alves <palves@redhat.com>
  2979. * breakpoint.c (enum ugll_insert_mode): New enum.
  2980. (update_global_location_list)
  2981. (update_global_location_list_nothrow): Change parameter type from
  2982. boolean to enum ugll_insert_mode. All callers adjusted.
  2983. 2014-09-19 Joel Brobecker <brobecker@adacore.com>
  2984. * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
  2985. SystemTap support in GDB.
  2986. 2014-09-19 Don Breazeal <donb@codesourcery.com>
  2987. * linux-nat.c (linux_handle_extended_wait): Call
  2988. linux_ptrace_get_extended_event.
  2989. (wait_lwp): Call linux_is_extended_waitstatus.
  2990. (linux_nat_filter_event): Call linux_ptrace_get_extended_event
  2991. and linux_is_extended_waitstatus.
  2992. * nat/linux-ptrace.c (linux_test_for_tracefork): Call
  2993. linux_ptrace_get_extended_event.
  2994. (linux_ptrace_get_extended_event): New function.
  2995. (linux_is_extended_waitstatus): New function.
  2996. * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
  2997. (linux_is_extended_waitstatus): New declarations.
  2998. 2014-09-19 Yao Qi <yao@codesourcery.com>
  2999. * dwarf2read.c (dwarf_decode_lines): Update declaration.
  3000. (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
  3001. comments. Callers update.
  3002. (dwarf_decode_lines): Likewise.
  3003. (dwarf_decode_lines_1): Add argument 'lowpc'. Update
  3004. comments. Skip the line table if 'lowpc' is greater than
  3005. 'address'. Don't check
  3006. dwarf2_per_objfile->has_section_at_zero.
  3007. 2014-09-18 Doug Evans <dje@google.com>
  3008. * NEWS: Mention new "producer" attribute of gdb.Symtab.
  3009. * python/py-symtab.c (stpy_get_producer): New function.
  3010. (symtab_object_getset): Add "producer" attribute.
  3011. 2014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
  3012. PR gdb/17384
  3013. * corefile.c (struct captured_read_memory_integer_arguments): Remove.
  3014. (do_captured_read_memory_integer): Remove.
  3015. (safe_read_memory_integer): Use target_read_memory directly instead
  3016. of catching errors in do_captured_read_memory_integer.
  3017. 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
  3018. * CONTRIBUTE (Coding Standards): For internals refer to wiki,
  3019. not gdb/doc.
  3020. 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
  3021. * objc-lang.c (find_implementation_from_class): Remove dead code.
  3022. 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
  3023. PR cli/7233
  3024. * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
  3025. "fprintf_unfiltered (gdb_stdlog...)".
  3026. 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
  3027. PR breakpoints/12526
  3028. * breakpoint.h (struct watchpoint): New fields val_bitpos and
  3029. val_bitsize.
  3030. * breakpoint.c (watch_command_1): Use these fields to retain
  3031. bitfield information.
  3032. (extract_bitfield_from_watchpoint_value): New function.
  3033. (watchpoint_check): Use it.
  3034. (update_watchpoint): Use it. Optimize the address and length of a
  3035. HW watchpoint pointing to a bitfield.
  3036. * value.h (unpack_value_bitfield): New prototype.
  3037. * value.c (unpack_value_bitfield): Make extern.
  3038. 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
  3039. * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
  3040. x86-dregs.o.
  3041. * gnu-nat.c (inf_threads): New function.
  3042. * gnu-nat.h (inf_threads_ftype): New typedef.
  3043. (inf_threads): New declaration.
  3044. * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
  3045. [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
  3046. (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
  3047. (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
  3048. (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
  3049. (i386_gnu_dr_get_control): New functions.
  3050. (reg_addr): New structure.
  3051. (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
  3052. i386 debugging register hooks.
  3053. * NEWS: Mention this.
  3054. 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
  3055. * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
  3056. vector data transfer instructions.
  3057. (arm_record_coproc_data_proc): Updated.
  3058. 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
  3059. * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
  3060. arm_record_exreg_ld_st_insn.
  3061. (arm_record_exreg_ld_st_insn): Add record handler for ex-register
  3062. load/store insns.
  3063. 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
  3064. * arm-tdep.c (arm_record_coproc_data_proc): Updated.
  3065. (arm_record_vfp_data_proc_insn): Added record handler for VFP data
  3066. processing instructions.
  3067. 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
  3068. * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
  3069. for advance SIMD struct ld/st insn.
  3070. (thumb2_record_decode_insn_handler): Replace stub handler with
  3071. thumb2_record_asimd_struct_ld_st.
  3072. 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
  3073. * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
  3074. for asimd, vfp and coprocessor insns.
  3075. (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
  3076. and coprocessor insns.
  3077. (thumb2_record_coproc_insn): New function.
  3078. (thumb2_record_decode_insn_handler): Update coprocessor insns record
  3079. handlers.
  3080. (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
  3081. opcode 110 insns.
  3082. 2014-09-13 Doug Evans <xdje42@gmail.com>
  3083. * NEWS: Mention new "queue-signal" command.
  3084. * infcmd.c (queue_signal_command): New function.
  3085. (_initialize_infcmd): Add new queue-signal command.
  3086. 2014-09-13 Doug Evans <xdje42@gmail.com>
  3087. * linux-nat.c (wait_lwp): Add debugging printf.
  3088. (linux_nat_wait_1): Ditto.
  3089. 2014-09-12 Pedro Alves <palves@redhat.com>
  3090. * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
  3091. (create_and_insert_solib_event_breakpoint): New functions.
  3092. * breakpoint.h (create_and_insert_solib_event_breakpoint)
  3093. (remove_solib_event_breakpoints_at_next_stop): New declarations.
  3094. * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
  3095. (remove_dbx_link_breakpoint): Delete function.
  3096. (insert_dbx_link_bpt_in_file): Use
  3097. create_and_insert_solib_event_breakpoint instead of
  3098. deprecated_insert_raw_breakpoint.
  3099. (procfs_wait): Don't check whether we hit __dbx_link here.
  3100. (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
  3101. here.
  3102. * solib-irix.c (base_breakpoint): Delete global.
  3103. (disable_break): Delete function.
  3104. (enable_break): Use create_solib_event_breakpoint
  3105. instead of deprecated_insert_raw_breakpoint.
  3106. (irix_solib_handle_event): New function.
  3107. (irix_solib_create_inferior_hook): Don't run the target or disable
  3108. the mapping-complete breakpoint here.
  3109. (_initialize_irix_solib): Install irix_solib_handle_event as
  3110. so_ops->handle_event hook.
  3111. 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
  3112. Ulrich Weigand  <uweigand@de.ibm.com>
  3113. PR tdep/17379
  3114. * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
  3115. instead of read_memory_unsigned_integer.
  3116. 2014-09-12 Gary Benson <gbenson@redhat.com>
  3117. * nat/linux-waitpid.c: Include common-defs.h.
  3118. [GDBSERVER]: Add FIXME comment.
  3119. [!GDBSERVER]: Don't include defs.h or signal.h.
  3120. (linux_debug) [!GDBSERVER]: Remove empty block.
  3121. 2014-09-12 Gary Benson <gbenson@redhat.com>
  3122. * nat/x86-dregs.c: Include common-defs.h and break-common.h.
  3123. Don't include defs.h or server.h.
  3124. 2014-09-12 Gary Benson <gbenson@redhat.com>
  3125. * nat/linux-btrace.c: Include common-defs.h.
  3126. Don't include defs.h, server.h or gdbthread.h.
  3127. * nat/linux-btrace.h (struct target_ops): New forward declaration.
  3128. 2014-09-12 Gary Benson <gbenson@redhat.com>
  3129. * common/agent.c: Include common-defs.h.
  3130. Don't include defs.h or server.h.
  3131. * common/buffer.c: Likewise.
  3132. * common/common-debug.c: Likewise.
  3133. * common/common-utils.c: Likewise.
  3134. * common/errors.c: Likewise.
  3135. * common/filestuff.c: Likewise.
  3136. * common/format.c: Likewise.
  3137. * common/gdb_vecs.c: Likewise.
  3138. * common/print-utils.c: Likewise.
  3139. * common/ptid.c: Likewise.
  3140. * common/rsp-low.c: Likewise.
  3141. * common/signals.c: Likewise.
  3142. * common/vec.c: Likewise.
  3143. * common/xml-utils.c: Likewise.
  3144. * nat/linux-osdata.c: Likewise.
  3145. * nat/linux-procfs.c: Likewise.
  3146. * nat/linux-ptrace.c: Likewise.
  3147. * nat/mips-linux-watch.c: Likewise.
  3148. * target/waitstatus.c: Likewise.
  3149. 2014-09-12 Tom Tromey <tromey@redhat.com>
  3150. Gary Benson <gbenson@redhat.com>
  3151. * common/common-regcache.h: New file.
  3152. * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
  3153. * regcache.h: Include common-regcache.h.
  3154. (regcache_read_pc): Don't declare.
  3155. * regcache.c (get_thread_regcache_for_ptid): New function.
  3156. * nat/linux-btrace.c: Don't include regcache.h.
  3157. Include common-regcache.h.
  3158. (perf_event_read_bts): Use get_thread_regcache_for_ptid.
  3159. 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
  3160. * regcache.h (struct regset): Declare.
  3161. 2014-09-11 Pedro Alves <palves@redhat.com>
  3162. PR gdb/17347
  3163. * main.c: Include "infrun.h".
  3164. (catch_command_errors, catch_command_errors_const): Wait for the
  3165. foreground command to complete.
  3166. * top.c (maybe_wait_sync_command_done): New function, factored out
  3167. from ...
  3168. (maybe_wait_sync_command_done): ... here.
  3169. * top.h (maybe_wait_sync_command_done): New declaration.
  3170. 2014-09-11 Tom Tromey <tromey@redhat.com>
  3171. Gary Benson <gbenson@redhat.com>
  3172. * common/symbol.h: New file.
  3173. * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
  3174. * minsyms.c (find_minimal_symbol_address): New function.
  3175. * common/agent.c: Include common/symbol.h.
  3176. [!GDBSERVER]: Don't include objfiles.h.
  3177. (agent_look_up_symbols): Use find_minimal_symbol_address.
  3178. 2014-09-11 Gary Benson <gbenson@redhat.com>
  3179. * target/target.h (target_stop_ptid, target_continue_ptid):
  3180. Declare.
  3181. * target.c (target_stop_ptid, target_continue_ptid): New
  3182. functions.
  3183. * common/agent.c [!GDBSERVER]: Don't include infrun.h.
  3184. (agent_run_command): Always use target_stop_ptid and
  3185. target_continue_ptid.
  3186. 2014-09-11 Tom Tromey <tromey@redhat.com>
  3187. Gary Benson <gbenson@redhat.com>
  3188. * target/target.h: New file.
  3189. * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
  3190. * target.h: Include target/target.h.
  3191. (target_read_memory, target_write_memory): Don't declare.
  3192. * target.c (target_read_uint32): New function.
  3193. * common/agent.c: Include target/target.h.
  3194. [!GDBSERVER]: Don't include target.h.
  3195. (helper_thread_id): Type changed to uint32_t.
  3196. (agent_get_helper_thread_id): Use target_read_uint32.
  3197. (agent_run_command): Always use target_read_memory and
  3198. target_write_memory.
  3199. (agent_capability): Type changed to uint32_t.
  3200. (agent_capability_check): Use target_read_uint32.
  3201. 2014-09-11 Gary Benson <gbenson@redhat.com>
  3202. * common/common-debug.h (show_debug_regs): Declare.
  3203. * common/common-debug.c (show_debug_regs): Define.
  3204. * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
  3205. all uses with show_debug_regs. Replace all uses that considered
  3206. debug_hw_points as a multi-value integer with straight boolean
  3207. uses.
  3208. * x86-nat.c (debug_hw_points): Don't define. Replace all uses
  3209. with show_debug_regs.
  3210. * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
  3211. all uses with show_debug_regs.
  3212. * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
  3213. uses with show_debug_regs.
  3214. 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
  3215. * findvar.c (address_from_register): Handle targets requiring
  3216. a special conversion routine even for plain pointer types.
  3217. 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
  3218. * rs6000-nat.c (exec_one_dummy_insn): Remove.
  3219. (store_register): Do not call exec_one_dummy_insn.
  3220. 2014-09-10 Joel Brobecker <brobecker@adacore.com>
  3221. * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
  3222. dereference it first. Use value_enclosing_type instead of
  3223. value_type.
  3224. (ada_array_length): Likewise.
  3225. 2014-09-10 Joel Brobecker <brobecker@adacore.com>
  3226. * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
  3227. Adjust function implementation and documentation accordingly.
  3228. (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
  3229. NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
  3230. Update call to ada_value_ptr_subscript.
  3231. 2014-09-10 Joel Brobecker <brobecker@adacore.com>
  3232. * ada-valprint.c (ada_value_print): Use VAL's enclosing type
  3233. instead of VAL's type.
  3234. 2014-09-10 Joel Brobecker <brobecker@adacore.com>
  3235. * amd64-linux-nat.c: Add <sys/uio.h> #include.
  3236. 2014-09-09 Doug Evans <xdje42@gmail.com>
  3237. PR guile/17367
  3238. * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
  3239. last parameter to pkg-config, not first.
  3240. * configure.ac: Pass --with-guile provided pkg-config path to
  3241. GDB_GUILE_PROGRAM_NAMES.
  3242. * configure: Regenerate.
  3243. 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
  3244. * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
  3245. Bertazi".
  3246. 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
  3247. * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
  3248. Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
  3249. the list of sections determining GDB_OSABI_IRIX.
  3250. 2014-09-09 James Hogan <james.hogan@imgtec.com>
  3251. * MAINTAINERS (Write After Approval): Add "James Hogan".
  3252. 2014-09-09 James Hogan <james.hogan@imgtec.com>
  3253. * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
  3254. 2014-09-09 Joel Brobecker <brobecker@adacore.com>
  3255. * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
  3256. 2014-09-08 Doug Evans <xdje42@gmail.com>
  3257. PR 17247
  3258. * guile.c: #include <signal.h>.
  3259. (_initialize_guile): Block SIGCHLD while initializing Guile.
  3260. Replaces the following, which is reverted.
  3261. 2014-07-26 Doug Evans <xdje42@gmail.com>
  3262. PR 17185
  3263. * configure.ac: Add check for header gc/gc.h.
  3264. Add check for function setenv.
  3265. * configure: Regenerate.
  3266. * config.in: Regenerate.
  3267. * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
  3268. 2014-09-08 Doug Evans <xdje42@gmail.com>
  3269. * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
  3270. with named constant. Fix style of pointer comparison.
  3271. * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
  3272. 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
  3273. PR gdb/17035
  3274. * cli/cli-cmds.c (show_user): Use cli_user_command_p to
  3275. decide whether we display the command on "show user".
  3276. * cli/cli-script.c (show_user_1): Only verify cmdlines after
  3277. printing command name.
  3278. * cli/cli-decode.h (cli_user_command_p): Declare new function.
  3279. * cli/cli-decode.c (cli_user_command_p): Create helper function
  3280. to verify whether cmd_list_element is a user-defined command.
  3281. 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
  3282. PR python/17355
  3283. * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
  3284. Fix goto out of TRY_CATCH.
  3285. 2014-09-06 Doug Evans <xdje42@gmail.com>
  3286. Tom Tromey <tromey@redhat.com>
  3287. PR 15276
  3288. * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
  3289. $_any_caller_matches.
  3290. * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
  3291. * python/lib/gdb/function/caller_is.py: New file.
  3292. 2014-09-06 Doug Evans <xdje42@gmail.com>
  3293. * infcmd.c (program_info): Fix typo.
  3294. 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
  3295. PR gdb/17235
  3296. * stap-probe.c (stap_parse_single_operand): Delete unused variable
  3297. 'number'. New variable 'has_digit'. Rewrite code to deal with
  3298. subexpressions on SDT probes.
  3299. 2014-09-04 Pedro Alves <palves@redhat.com>
  3300. * c-exp.y (parse_number): Skip handling base-switching prefixes if
  3301. the input is only one character long.
  3302. 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
  3303. PR fortran/17237
  3304. * f-valprint.c (f_val_print): Specify the correct print option to
  3305. use when printing integer values.
  3306. 2014-09-04 Gary Benson <gbenson@redhat.com>
  3307. * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
  3308. Remove code to cope with LWPs wrapped as PIDs.
  3309. Add assertions to ensure no wrapped LWPs are passed.
  3310. 2014-09-04 Pedro Alves <palves@redhat.com>
  3311. * value.c (value_ranges_copy_adjusted): New function, factored out
  3312. from ...
  3313. (value_contents_copy_raw): ... here.
  3314. (unpack_value_bits_as_long_1): Rename back to ...
  3315. (unpack_bits_as_long): ... this. Remove 'original_value' and
  3316. 'result' parameters. Change return type to LONGEST.
  3317. (unpack_value_bits_as_long): Delete.
  3318. (unpack_value_field_as_long_1): Delete.
  3319. (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
  3320. (unpack_value_bitfield): New function.
  3321. (value_field_bitfield): Reimplement using unpack_value_bitfield.
  3322. (value_fetch_lazy): Use unpack_value_bitfield.
  3323. * value.h (unpack_value_bits_as_long): Delete declaration.
  3324. 2014-09-03 Sasha Smundak <asmundak@google.com>
  3325. * python/py-frame.c (frapy_read_register): New function.
  3326. 2014-09-03 James Hogan <james.hogan@imgtec.com>
  3327. * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
  3328. prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
  3329. 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
  3330. PR python/16699
  3331. * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
  3332. function.
  3333. (add_cmd): Set "completer_handle_brkchars" to NULL.
  3334. * cli/cli-decode.h (struct cmd_list_element)
  3335. <completer_handle_brkchars>: New field.
  3336. * command.h (completer_ftype_void): New typedef.
  3337. (set_cmd_completer_handle_brkchars): New prototype.
  3338. * completer.c (set_gdb_completion_word_break_characters): New
  3339. function.
  3340. (complete_line_internal): Call "completer_handle_brkchars"
  3341. callback from command.
  3342. * completer.h: Include "command.h".
  3343. (set_gdb_completion_word_break_characters): New prototype.
  3344. * python/py-cmd.c (cmdpy_completer_helper): New function.
  3345. (cmdpy_completer_handle_brkchars): New function.
  3346. (cmdpy_completer): Adjust to use cmdpy_completer_helper.
  3347. (cmdpy_init): Set completer_handle_brkchars to
  3348. cmdpy_completer_handle_brkchars.
  3349. 2014-09-03 Gary Benson <gbenson@redhat.com>
  3350. * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
  3351. (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
  3352. Loop conditions changed to equivalent form.
  3353. (struct x86_debug_reg_state): Updated dr_ref_count comment.
  3354. * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
  3355. ALL_DEBUG_ADDRESS_REGISTERS.
  3356. 2014-09-03 Joel Brobecker <brobecker@adacore.com>
  3357. * dwarf2loc.h (dwarf2_evaluate_property): Minor function
  3358. description fix.
  3359. 2014-09-02 Doug Evans <dje@google.com>
  3360. * typeprint.c (find_global_typedef): Fix comment.
  3361. 2014-09-02 Gary Benson <gbenson@redhat.com>
  3362. * i386-nat.h: Renamed as...
  3363. * x86-nat.h: New file. All type, function and variable name
  3364. prefixes changed from "i386_" to "x86_". All references updated.
  3365. * i386-nat.c: Renamed as...
  3366. * x86-nat.c: New file. All type, function and variable name
  3367. prefixes changed from "i386_" to "x86_". All references updated.
  3368. * common/i386-xstate.h: Renamed as...
  3369. * common/x86-xstate.h: New file. All type, function and variable
  3370. name prefixes changed from "i386_" to "x86_". All references
  3371. updated.
  3372. * nat/i386-cpuid.h: Renamed as...
  3373. * nat/x86-cpuid.h: New file. All type, function and variable name
  3374. prefixes changed from "i386_" to "x86_". All references updated.
  3375. * nat/i386-gcc-cpuid.h: Renamed as...
  3376. * nat/x86-gcc-cpuid.h: New file. All type, function and variable
  3377. name prefixes changed from "i386_" to "x86_". All references
  3378. updated.
  3379. * nat/i386-dregs.h: Renamed as...
  3380. * nat/x86-dregs.h: New file. All type, function and variable name
  3381. prefixes changed from "i386_" to "x86_". All references updated.
  3382. * nat/i386-dregs.c: Renamed as...
  3383. * nat/x86-dregs.c: New file. All type, function and variable name
  3384. prefixes changed from "i386_" to "x86_". All references updated.
  3385. 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
  3386. * varobj.c (_initialize_varobj): Move to the end of file.
  3387. 2014-08-29 Gary Benson <gbenson@redhat.com>
  3388. * common/common-exceptions.h: New file.
  3389. * common/common-exceptions.c: Likewise.
  3390. * Makefile.in (SFILES): Add common/common-exceptions.c.
  3391. (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
  3392. (COMMON_OBS): Add common-exceptions.o.
  3393. (common-exceptions.o): New rule.
  3394. * exceptions.h (common-exceptions.h): Include.
  3395. (gdb_setjmp.h): Do not include.
  3396. (return_reason): Moved to common-exceptions.h.
  3397. (enum return_reason): Likewise.
  3398. (RETURN_MASK): Likewise.
  3399. (typedef return_mask): Likewise.
  3400. (enum errors): Likewise.
  3401. (struct gdb_exception): Likewise.
  3402. (exceptions_state_mc_init): Likewise.
  3403. (exceptions_state_mc_action_iter): Likewise.
  3404. (exceptions_state_mc_action_iter_1): Likewise.
  3405. (TRY_CATCH): Likewise.
  3406. (throw_exception): Likewise.
  3407. (throw_verror): Likewise.
  3408. (throw_vquit): Likewise.
  3409. (throw_error): Likewise.
  3410. (throw_quit): Likewise.
  3411. * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
  3412. (enum catcher_action): Likewise.
  3413. (struct catcher): Likewise.
  3414. (current_catcher): Likewise.
  3415. (catcher_list_size): Likewise.
  3416. (exceptions_state_mc_init): Likewise.
  3417. (catcher_pop): Likewise.
  3418. (exceptions_state_mc): Likewise.
  3419. (exceptions_state_mc_action_iter): Likewise.
  3420. (exceptions_state_mc_action_iter_1): Likewise.
  3421. (throw_exception): Likewise.
  3422. (exception_messages): Likewise.
  3423. (exception_messages_size): Likewise.
  3424. (throw_it): Likewise.
  3425. (throw_verror): Likewise.
  3426. (throw_vquit): Likewise.
  3427. (throw_error): Likewise.
  3428. (throw_quit): Likewise.
  3429. (prepare_to_throw_exception): New function.
  3430. 2014-08-29 Gary Benson <gbenson@redhat.com>
  3431. * common/gdb_setjmp.h: New file.
  3432. * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
  3433. * configure.ac: Move sigsetjmp check...
  3434. * common/common.m4: ...here.
  3435. * configure: Regenerate.
  3436. * cp-support.c (SIGJMP_BUF): Delete.
  3437. (SIGSETJMP): Likewise.
  3438. (SIGLONGJMP): Likewise.
  3439. * exceptions.h (gdb_setjmp.h): Include.
  3440. (setjmp.h): Do not include.
  3441. (EXCEPTIONS_SIGJMP_BUF): Delete.
  3442. (EXCEPTIONS_SIGSETJMP): Likewise.
  3443. (EXCEPTIONS_SIGLONGJMP): Likewise.
  3444. Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
  3445. from gdb_setjmp.h.
  3446. * exceptions.c: Likewise.
  3447. 2014-08-29 Gary Benson <gbenson@redhat.com>
  3448. * cleanups.h: Moved to...
  3449. * common/cleanups.h: New file.
  3450. * cleanups.c: Moved to...
  3451. * common/cleanups.c: New file. Include common-defs.h and
  3452. cleanups.h. Do not include defs.h.
  3453. * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
  3454. (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
  3455. (cleanups.o): New rule.
  3456. 2014-08-29 Gary Benson <gbenson@redhat.com>
  3457. * common/errors.h (internal_warning): New declaration.
  3458. (internal_vwarning): Likewise.
  3459. * common/errors.c (internal_warning): New function.
  3460. * utils.h (internal_warning): Don't declare.
  3461. (internal_vwarning): Likewise.
  3462. * utils.c (internal_warning): Removed.
  3463. 2014-08-29 Gary Benson <gbenson@redhat.com>
  3464. * main.c (captured_main): Use warning during startup.
  3465. Prefix startup warning messages with command name.
  3466. 2014-08-29 Gary Benson <gbenson@redhat.com>
  3467. * main.c (captured_main): Handle usage errors with error.
  3468. 2014-08-29 Gary Benson <gbenson@redhat.com>
  3469. * go32-nat.c (go32_create_inferior): Replace a fprintf/
  3470. exit pair with a call to error. Wrap the message with _().
  3471. 2014-08-29 Gary Benson <gbenson@redhat.com>
  3472. * main.c (captured_main): Replace a fprintf/exit
  3473. pair with a call to error. Wrap the message with _().
  3474. 2014-08-29 Gary Benson <gbenson@redhat.com>
  3475. * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
  3476. pairs with calls to error. Wrap the message with _().
  3477. 2014-08-29 Gary Benson <gbenson@redhat.com>
  3478. * utils.c (vwarning): Protect calls to target_terminal_ours
  3479. and wrap_here.
  3480. 2014-08-29 Gary Benson <gbenson@redhat.com>
  3481. * exceptions.c (print_flush): Protect calls to
  3482. target_terminal_ours and wrap_here.
  3483. 2014-08-29 Gary Benson <gbenson@redhat.com>
  3484. * utils.h (filtered_printing_initialized): New declaration.
  3485. * utils.c (abort_with_message): New function.
  3486. (internal_vproblem): Use abort_with_message for first level
  3487. recursive internal problems, and if gdb_stderr is not set up.
  3488. Protect calls to target_terminal_ours, begin_line and query.
  3489. 2014-08-28 Doug Evans <dje@google.com>
  3490. * symtab.c (in_prologue): Move definition to better spot.
  3491. (skip_prologue_using_sal): Ditto.
  3492. 2014-08-28 Doug Evans <dje@google.com>
  3493. * symtab.c (find_function_start_sal): Move definition to better spot.
  3494. 2014-08-28 Yao Qi <yao@codesourcery.com>
  3495. * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
  3496. found_stack_adjust in forward scan. Remove condition check
  3497. on found_stack_adjust which is always true. Indent the code.
  3498. 2014-08-28 Yao Qi <yao@codesourcery.com>
  3499. * dwarf2read.c (dwarf_decode_lines): Update declaration.
  3500. (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
  3501. (dwarf_decode_lines): Remove argument
  3502. want_line_info. Remove condition check on want_line_info.
  3503. Callers update.
  3504. 2014-08-27 Doug Evans <dje@google.com>
  3505. * dwarf2read.c (dwarf_record_line): Fix typo.
  3506. 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
  3507. * target.h (struct target_ops::to_terminal_save_ours): Remove
  3508. declaration.
  3509. (target_terminal_save_ours): Remove macro.
  3510. * target-delegates.c: Regenerate.
  3511. * inf-child.c (inf_child_target): Don't set the nonexistent
  3512. field to_terminal_save_ours.
  3513. * inferior.h (child_terminal_save_ours): Remove declaration.
  3514. * terminal.h (gdb_save_tty_state): New declaration.
  3515. * inflow.c (child_terminal_save_ours): Rename to ...
  3516. (gdb_save_tty_state): ... this.
  3517. * tui/tui.c: Include terminal.h.
  3518. (tui_enable): Use gdb_save_tty_state instead of
  3519. target_terminal_save_ours.
  3520. (tui_disable): Likewise.
  3521. 2014-08-25 Doug Evans <dje@google.com>
  3522. * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
  3523. Pass NULL instead of 0 for context pointer.
  3524. 2014-08-25 Yao Qi <yao@codesourcery.com>
  3525. * dwarf2read.c: Fix grammatical error.
  3526. 2014-08-24 Yao Qi <yao@codesourcery.com>
  3527. * dwarf2read.c (scan_partial_symbols): Update comments.
  3528. Rename argument 'need_pc' with 'set_addrmap'.
  3529. (add_partial_namespace): Rename argument 'need_pc' with
  3530. 'set_addrmap'.
  3531. (add_partial_module): Likewise.
  3532. (add_partial_subprogram): Likewise. Update comments.
  3533. (dwarf2_name): Fix typo.
  3534. 2014-08-22 Doug Evans <dje@google.com>
  3535. PR 17276
  3536. * dwarf2read.c (dwarf_record_line_p): New function.
  3537. (dwarf_decode_lines_1): Ignore subsequent line number entries
  3538. for the same line if any entry had a non-zero discriminator.
  3539. 2014-08-22 Doug Evans <dje@google.com>
  3540. * buildsym.h (record_line_ftype): New typedef.
  3541. (record_line): Use it.
  3542. * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
  3543. (dwarf_decode_lines_1): Call them.
  3544. 2014-08-22 Yao Qi <yao@codesourcery.com>
  3545. * ctf.c (CTF_FILE_MIN_SIZE): Remove.
  3546. (ctf_end): Remove code.
  3547. 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
  3548. * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
  3549. (linux_make_corefile_notes): call update_thread_list, protected against
  3550. exceptions.
  3551. 2014-08-21 Pedro Alves <palves@redhat.com>
  3552. * infcmd.c (attach_command): Remove comment.
  3553. 2014-08-21 Bin Cheng <bin.cheng@arm.com>
  3554. * aarch64-linux-nat.c (dr_changed_t): Change the type from
  3555. unsigned LONGEST to ULONGEST.
  3556. 2014-08-20 Pedro Alves <palves@redhat.com>
  3557. * Makefile.in (check-read1): New rule.
  3558. 2014-08-20 Joel Brobecker <brobecker@adacore.com>
  3559. * value.c (value_from_contents_and_address): Strip resolved_type's
  3560. typedef layers before checking its TYPE_DATA_LOCATION.
  3561. 2014-08-20 Pedro Alves <palves@redhat.com>
  3562. * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
  3563. 2014-08-20 Yao Qi <yao@codesourcery.com>
  3564. * amd64-tdep.c (amd64_classify): Add a blank line after the
  3565. example. Move "*/" to a new line.
  3566. * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
  3567. * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
  3568. * dwarf2read.c (psymtab_include_file_name): Likewise.
  3569. 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
  3570. Pedro Alves <palves@redhat.com>
  3571. PR symtab/14604
  3572. PR symtab/14605
  3573. * ada-lang.c (coerce_unspec_val_to_type): Use
  3574. value_contents_copy_raw.
  3575. * ada-valprint.c (val_print_packed_array_elements): Adjust.
  3576. * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
  3577. * cp-valprint.c (cp_print_value_fields): Let the common printing
  3578. code handle optimized out values.
  3579. (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
  3580. * d-valprint.c (dynamic_array_type): Use
  3581. value_bits_any_optimized_out.
  3582. * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
  3583. check_any_valid fields.
  3584. (check_pieced_value_bits): Delete and inline ...
  3585. (check_pieced_synthetic_pointer): ... here.
  3586. (check_pieced_value_validity): Delete.
  3587. (check_pieced_value_invalid): Delete.
  3588. (pieced_value_funcs): Remove check_validity and check_any_valid
  3589. fields.
  3590. (read_pieced_value): Use mark_value_bits_optimized_out.
  3591. (write_pieced_value): Switch to use
  3592. mark_value_bytes_optimized_out.
  3593. (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
  3594. of assuming the whole value is optimized out.
  3595. * findvar.c (read_frame_register_value): Remove special handling
  3596. of optimized out registers.
  3597. (value_from_register): Use mark_value_bytes_optimized_out.
  3598. * frame-unwind.c (frame_unwind_got_optimized): Use
  3599. mark_value_bytes_optimized_out.
  3600. * jv-valprint.c (java_value_print): Adjust.
  3601. (java_print_value_fields): Let the common printing code handle
  3602. optimized out values.
  3603. * mips-tdep.c (mips_print_register): Remove special handling of
  3604. optimized out registers.
  3605. * opencl-lang.c (lval_func_check_validity): Delete.
  3606. (lval_func_check_any_valid): Delete.
  3607. (opencl_value_funcs): Remove check_validity and check_any_valid
  3608. fields.
  3609. * p-valprint.c (pascal_object_print_value_fields): Let the common
  3610. printing code handle optimized out values.
  3611. * stack.c (read_frame_arg): Remove special handling of optimized
  3612. out values. Fetch both VAL and ENTRYVAL before comparing
  3613. contents. Adjust to value_available_contents_eq rename.
  3614. * valprint.c (valprint_check_validity)
  3615. (val_print_scalar_formatted): Use value_bits_any_optimized_out.
  3616. (val_print_array_elements): Adjust.
  3617. * value.c (struct value) <optimized_out>: Now a VEC(range_s).
  3618. (value_bits_any_optimized_out): New function.
  3619. (value_entirely_covered_by_range_vector): New function, factored
  3620. out from value_entirely_unavailable.
  3621. (value_entirely_unavailable): Reimplement.
  3622. (value_entirely_optimized_out): New function.
  3623. (insert_into_bit_range_vector): New function, factored out from
  3624. mark_value_bits_unavailable.
  3625. (mark_value_bits_unavailable): Reimplement.
  3626. (struct ranges_and_idx): New struct.
  3627. (find_first_range_overlap_and_match): New function, factored out
  3628. from value_available_contents_bits_eq.
  3629. (value_available_contents_bits_eq): Rename to ...
  3630. (value_contents_bits_eq): ... this. Check both unavailable
  3631. contents and optimized out contents.
  3632. (value_available_contents_eq): Rename to ...
  3633. (value_contents_eq): ... this.
  3634. (allocate_value_lazy): Remove reference to the old optimized_out
  3635. boolean.
  3636. (allocate_optimized_out_value): Use
  3637. mark_value_bytes_optimized_out.
  3638. (require_not_optimized_out): Adjust to check whether the
  3639. optimized_out vec is empty.
  3640. (ranges_copy_adjusted): New function, factored out from
  3641. value_contents_copy_raw.
  3642. (value_contents_copy_raw): Also copy the optimized out ranges.
  3643. Assert the destination ranges aren't optimized out.
  3644. (value_contents_copy): Update comment, remove call to
  3645. require_not_optimized_out.
  3646. (value_contents_equal): Adjust to check whether the optimized_out
  3647. vec is empty.
  3648. (set_value_optimized_out, value_optimized_out_const): Delete.
  3649. (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
  3650. New functions.
  3651. (value_entirely_optimized_out, value_bits_valid): Delete.
  3652. (value_copy): Take a VEC copy of the 'optimized_out' field.
  3653. (value_primitive_field): Remove special handling of optimized out.
  3654. (value_fetch_lazy): Assert that lazy values have no unavailable
  3655. regions. Use value_bits_any_optimized_out. Remove some special
  3656. handling for optimized out values.
  3657. * value.h: Add intro comment about <optimized out> and
  3658. <unavailable>.
  3659. (struct lval_funcs): Remove check_validity and check_any_valid
  3660. fields.
  3661. (set_value_optimized_out, value_optimized_out_const): Remove.
  3662. (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
  3663. New declarations.
  3664. (value_bits_any_optimized_out): New declaration.
  3665. (value_bits_valid): Delete declaration.
  3666. (value_available_contents_eq): Rename to ...
  3667. (value_contents_eq): ... this, and extend comments.
  3668. 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
  3669. Fix -fsanitize=address on unreadable inferior strings.
  3670. * valprint.c (val_print_string): Fix access before BUFFER.
  3671. 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
  3672. * target.c (target_struct_size): Remove.
  3673. (target_struct_allocsize): Remove.
  3674. (DEFAULT_ALLOCSIZE): Remove.
  3675. (target_ops_p): New typedef.
  3676. (DEF_VEC_P (target_ops_p)): New vector type.
  3677. (target_structs): Change type to VEC (target_ops_p).
  3678. (add_target_with_completer): Replace "push" code by VEC_safe_push.
  3679. (find_default_run_target): Rewrite for loop following changes to
  3680. target_structs.
  3681. 2014-08-19 Joel Brobecker <brobecker@adacore.com>
  3682. * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
  3683. Adjust code accordingly. Adjust function description comment.
  3684. 2014-08-19 Yao Qi <yao@codesourcery.com>
  3685. * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
  3686. types.
  3687. 2014-08-19 Alan Modra <amodra@gmail.com>
  3688. * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
  3689. * config.in: Regenerate.
  3690. * configure: Regenerate.
  3691. 2014-08-19 Tom Tromey <tromey@redhat.com>
  3692. Gary Benson <gbenson@redhat.com>
  3693. * common/common-debug.h: New file.
  3694. * common/common-debug.c: Likewise.
  3695. * debug.c: Likewise.
  3696. * Makefile.in (SFILES): Add common/common-debug.c.
  3697. (HFILES_NO_SRCDIR): Add common/common-debug.h.
  3698. (COMMON_OBS): Add common-debug.o and debug.o.
  3699. (common-debug.o): New rule.
  3700. * common/common-defs.h: Include common-debug.h.
  3701. * common/agent.c (debug_agent_printf): New function.
  3702. (DEBUG_AGENT): Redefine.
  3703. * nat/i386-dregs.c (debug_printf): Undefine.
  3704. 2014-08-19 Gary Benson <gbenson@redhat.com>
  3705. * common/common-defs.h: Include print-utils.h.
  3706. * utils.h: Do not include print-utils.h.
  3707. 2014-08-19 Tom Tromey <tromey@redhat.com>
  3708. Gary Benson <gbenson@redhat.com>
  3709. * common/common-types.h: New file.
  3710. * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
  3711. * common/common-defs.h: Include common-types.h.
  3712. * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
  3713. (ULONGEST): Remove.
  3714. 2014-08-19 Tom Tromey <tromey@redhat.com>
  3715. Gary Benson <gbenson@redhat.com>
  3716. * common/errors.h: New file.
  3717. * common/errors.c: Likewise.
  3718. * Makefile.in (SFILES): Add common/errors.c.
  3719. (HFILES_NO_SRCDIR): Add common/errors.h.
  3720. (COMMON_OBS): Add errors.o.
  3721. (errors.o): New rule.
  3722. * common/common-defs.h: Include errors.h.
  3723. * utils.h (perror_with_name, error, verror, warning, vwarning):
  3724. Don't declare.
  3725. * common/common-utils.h: (malloc_failure, internal_error):
  3726. Likewise.
  3727. 2014-08-19 Gary Benson <gbenson@redhat.com>
  3728. * utils.c (internal_vproblem): Always print the message.
  3729. 2014-08-18 Doug Evans <dje@google.com>
  3730. * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
  3731. 2014-08-18 Joel Brobecker <brobecker@adacore.com>
  3732. * ada-typeprint.c (type_is_full_subrange_of_target_type):
  3733. Return 0 if TYPE is dynamic.
  3734. (print_range): Add handling of dynamic ranges.
  3735. 2014-08-18 Keven Boell <keven.boell@intel.com>
  3736. Joel Brobecker <brobecker@adacore.com>
  3737. * gdbtypes.h (struct main_type): Add field "data_location".
  3738. (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
  3739. (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
  3740. * gdbtypes.c (is_dynamic_type): Return 1 if the type has
  3741. a dynamic data location.
  3742. (resolve_dynamic_type): Add DW_AT_data_location handling.
  3743. (copy_recursive, copy_type): Copy the data_location information
  3744. when present.
  3745. * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
  3746. * value.c (value_from_contents_and_address): Add
  3747. DW_AT_data_location handling.
  3748. 2014-08-18 Keven Boell <keven.boell@intel.com>
  3749. Joel Brobecker <brobecker@adacore.com>
  3750. * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
  3751. field "get_object_address".
  3752. * dwarf2expr.c (execute_stack_op): Add handling for
  3753. DW_OP_push_object_address.
  3754. * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
  3755. * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
  3756. (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
  3757. (dwarf_expr_get_obj_addr): New function.
  3758. (dwarf_expr_ctx_funcs): Add get_object_address field.
  3759. (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
  3760. (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
  3761. (dwarf2_evaluate_property): Add parameter "address". Use it.
  3762. (needs_get_obj_addr): New function.
  3763. (needs_frame_ctx_funcs): Add get_object_address field.
  3764. (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
  3765. * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
  3766. (resolve_dynamic_array): Likewise.
  3767. 2014-08-18 Joel Brobecker <brobecker@adacore.com>
  3768. * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
  3769. When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
  3770. fixed value for records and unions for which some GNAT encodings
  3771. are present.
  3772. 2014-08-18 Joel Brobecker <brobecker@adacore.com>
  3773. * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
  3774. rewrite to avoid "else if" and "else" constructs. Should be
  3775. a no-op in practice.
  3776. 2014-08-18 Joel Brobecker <brobecker@adacore.com>
  3777. * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
  3778. of lexical block.
  3779. 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
  3780. PR c++/17132
  3781. * eval.c: Update all calls to find_overload_match.
  3782. * valarith.c: Likewise.
  3783. (value_user_defined_cpp_op, value_user_defined_op): New
  3784. argument NOSIDE. Update all callers.
  3785. * valops.c (find_overload_match): New argument NOSIDE.
  3786. * value.h (find_overload_match): Update signature.
  3787. 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
  3788. * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
  3789. 'items' methods instead of 'iteritems' method on dictionaries.
  3790. 2014-08-15 Doug Evans <dje@google.com>
  3791. * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
  3792. closer to use.
  3793. 2014-08-15 Doug Evans <dje@google.com>
  3794. * dwarf2read.c (dwarf_decode_lines_1): Add comment.
  3795. 2014-08-15 Doug Evans <dje@google.com>
  3796. * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
  3797. 2014-08-15 Doug Evans <dje@google.com>
  3798. * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
  3799. unused.
  3800. 2014-08-15 Eli Zaretskii <eliz@gnu.org>
  3801. * dcache.h: Include target.h, to avoid compile time warnings.
  3802. 2014-08-15 Joel Brobecker <brobecker@adacore.com>
  3803. * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
  3804. frame_info" partial declaration.
  3805. * gdbarch.h: Regenerate.
  3806. 2014-08-15 Yao Qi <yao@codesourcery.com>
  3807. * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
  3808. Add parameter 'decode_for_pst_p'. Callers update.
  3809. 2014-08-13 Yao Qi <yao@codesourcery.com>
  3810. PR build/17104
  3811. * configure.ac: Use local variable 'pos'.
  3812. * configure: Regenerated.
  3813. 2014-08-11 Doug Evans <dje@google.com>
  3814. * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
  3815. message, it is redundant with "Reading symbols from ..." message.
  3816. 2014-08-10 Doug Evans <xdje42@gmail.com>
  3817. * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
  3818. 2014-08-09 Yao Qi <yao@codesourcery.com>
  3819. PR remote/9053
  3820. * remote.c (remote_xfer_partial): Remove dead code.
  3821. 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
  3822. * ia64-linux-tdep.c: Include "regset.h".
  3823. (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
  3824. (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
  3825. (ia64_linux_supply_fpregset): New function.
  3826. (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
  3827. (ia64_linux_regset_from_core_section): New function.
  3828. (ia64_linux_init_abi): Set regset_from_core_section gdbarch
  3829. method.
  3830. 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
  3831. * m68klinux-tdep.c: Include "regset.h".
  3832. (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
  3833. (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
  3834. (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
  3835. (m68k_linux_regset_from_core_section): New function.
  3836. (m68k_linux_init_abi): Set regset_from_core_section gdbarch
  3837. method.
  3838. 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
  3839. * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
  3840. function. Move logic to...
  3841. (tilegx_linux_regmap): ... this new register map.
  3842. (tilegx_linux_regset): Refer to register map, replace supply
  3843. method by regcache_supply_regset, and add collect method.
  3844. * tilegx-tdep.h (enum tilegx_regnum): New enum value
  3845. TILEGX_FIRST_EASY_REGNUM.
  3846. 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
  3847. * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
  3848. that calls regcache_supply_regset and handles the EPC register
  3849. separately. Move main logic to...
  3850. (score7_linux_gregmap): ... this new register map.
  3851. (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
  3852. (score7_linux_gregset): Refer to register map. Add collect method.
  3853. (score7_linux_regset_from_core_section): Replace
  3854. sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
  3855. * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
  3856. (struct regset): Delete unused forward declaraction.
  3857. (struct pt_regs): Delete structure definition.
  3858. (elf_gregset_t): Delete typedef.
  3859. 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
  3860. * nios2-linux-tdep.c (nios2_collect_gregset): New function.
  3861. (nios2_core_regset): Add collect method.
  3862. 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
  3863. * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
  3864. platform-independent and don't write to read-only input buffer.
  3865. (m32r_linux_collect_gregset): New function.
  3866. (m32r_linux_gregset): Add collect method.
  3867. 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
  3868. * hppa-linux-tdep.c (greg_map): Rename to...
  3869. (hppa_linux_gregmap): ... this. Also convert to
  3870. regcache_map_entry format.
  3871. (hppa_linux_supply_regset): Delete function.
  3872. (hppa_linux_supply_fpregset): Delete function. Move logic to...
  3873. (hppa_linux_fpregmap): ... this new register map.
  3874. (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
  3875. register map, replace supply method by regcache_supply_regset, and
  3876. add collect method regcache_collect_regset.
  3877. 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
  3878. * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
  3879. (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
  3880. (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
  3881. (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
  3882. (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
  3883. (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
  3884. (frv_linux_supply_gregset): Replace main logic by call to
  3885. regcache_supply_regset, but keep clearing gr32-gr63.
  3886. (frv_linux_supply_fpregset): Delete function.
  3887. (frv_linux_gregset): Refer to appropriate register map and add
  3888. regcache_collect_regset as the collect method.
  3889. (frv_linux_fpregset): Likewise. Also exchange the supply method
  3890. by regcache_supply_regset.
  3891. 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
  3892. * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
  3893. by call to alpha_supply_int_regs.
  3894. (alpha_linux_collect_gregset): New function.
  3895. (alpha_linux_supply_fpregset): Replace logic by call to
  3896. alpha_supply_fp_regs.
  3897. (alpha_linux_collect_fpregset): New function.
  3898. (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
  3899. 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
  3900. * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
  3901. by call to regcache_collect_regset.
  3902. (supply_gregset, supply_fpregset): Call regcache_supply_regset
  3903. instead of aarch64_linux_supply_gregset/_fpregset.
  3904. * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
  3905. (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
  3906. header file instead.
  3907. (aarch64_linux_supply_gregset, supply_gregset_from_core)
  3908. (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
  3909. functions. Move logic to ...
  3910. (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
  3911. register maps.
  3912. (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
  3913. refer to new register maps, replace *_regset_from_core by
  3914. regcache_supply_regset, and also use regcache_collect_regset.
  3915. * aarch64-linux-tdep.h: Include "regset.h".
  3916. (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
  3917. Delete prototypes.
  3918. (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
  3919. macros, moved from C source file.
  3920. (aarch64_linux_gregset, aarch64_linux_fpregset): New global
  3921. variable declarations.
  3922. 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
  3923. * s390-linux-nat.c: Include "regset.h".
  3924. (regmap_gregset): Delete macro.
  3925. (s390_64_regmap_gregset): New register map for
  3926. regcache_supply/_collect_regset.
  3927. (s390_64_gregset): New regset.
  3928. (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
  3929. (regmap_fpregset): Delete macro.
  3930. (s390_native_supply, s390_native_collect): Delete functions.
  3931. (supply_gregset, fill_gregset): Replace s390-specific regmap
  3932. handling by a call to regcache_supply/_collect_regset.
  3933. (supply_fpregset, fill_fpregset): Call regcache_supply/
  3934. _collect_regset instead of s390_native_supply/_collect.
  3935. (fetch_regset, store_regset): Likewise. Also change the last
  3936. parameter to a regset instead of a regmap.
  3937. (s390_linux_fetch_inferior_registers)
  3938. (390_linux_store_inferior_registers): Adjust last parameter in
  3939. calls to fetch_regset and store_regset.
  3940. * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
  3941. (s390_gregmap): ... this. Also make static const and convert to
  3942. regcache_map_entry format.
  3943. (s390x_regmap_gregset): Delete.
  3944. (s390_regmap_fpregset): Rename to...
  3945. (s390_fpregmap): ... this. Make static const and convert to
  3946. regcache_map_entry format.
  3947. (s390_regmap_upper, s390_regmap_last_break)
  3948. (s390x_regmap_last_break, s390_regmap_system_call)
  3949. (s390_regmap_tdb): Likewise.
  3950. (s390_supply_regset, s390_collect_regset): Remove functions.
  3951. (s390_supply_tdb_regset): Call regcache_supply_regset instead of
  3952. s390_supply_regset.
  3953. (s390_gregset, s390_fpregset, s390_upper_regset)
  3954. (s390_last_break_regset, s390x_last_break_regset)
  3955. (s390_system_call_regset, s390_tdb_regset): Make global and
  3956. replace s390_supply/_collect_regset by regcache_supply/
  3957. _collect_regset.
  3958. (s390x_gregset): Delete.
  3959. (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
  3960. * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
  3961. (s390_regmap_fpregset, s390_regmap_last_break)
  3962. (s390x_regmap_last_break, s390_regmap_system_call)
  3963. (s390_regmap_tdb): Delete global variable declarations.
  3964. (s390_gregset, s390_fpregset, s390_last_break_regset)
  3965. (s390x_last_break_regset, s390_system_call_regset)
  3966. (s390_tdb_regset): New global variable declarations.
  3967. 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
  3968. * regcache.c: Include "regset.h".
  3969. (regcache_transfer_regset): New local function.
  3970. (regcache_supply_regset, regcache_collect_regset): New functions.
  3971. * regcache.h (struct regcache_map_entry): New structure.
  3972. (REGCACHE_MAP_SKIP): New enum value.
  3973. (regcache_supply_regset, regcache_collect_regset): New prototypes.
  3974. 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
  3975. * regset.h (struct regset): Rename 'descr' field to 'regmap'.
  3976. * ppc-linux-tdep.c (ppc_linux_supply_gregset)
  3977. (ppc_linux_collect_gregset ): Likewise.
  3978. * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
  3979. (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
  3980. (ppc_collect_vrregset): Likewise.
  3981. * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
  3982. Likewise.
  3983. 2014-08-07 Yao Qi <yao@codesourcery.com>
  3984. * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
  3985. * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
  3986. * remote.c (remote_read_bytes): Likewise.
  3987. 2014-08-07 Yao Qi <yao@codesourcery.com>
  3988. * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
  3989. 2014-08-07 Yao Qi <yao@codesourcery.com>
  3990. PR remote/17230
  3991. * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
  3992. TARGET_XFER_OK instead of 0.
  3993. 2014-08-07 Gary Benson <gbenson@redhat.com>
  3994. * common/common-defs.h: Include errno.h.
  3995. * defs.h: Do not include errno.h.
  3996. * ada-typeprint.c: Likewise.
  3997. * c-typeprint.c: Likewise.
  3998. * core-regset.c: Likewise.
  3999. * corefile.c: Likewise.
  4000. * corelow.c: Likewise.
  4001. * event-loop.c: Likewise.
  4002. * f-typeprint.c: Likewise.
  4003. * gnu-nat.c: Likewise.
  4004. * go32-nat.c: Likewise.
  4005. * i386gnu-nat.c: Likewise.
  4006. * m2-typeprint.c: Likewise.
  4007. * nat/linux-btrace.c: Likewise.
  4008. * p-typeprint.c: Likewise.
  4009. * procfs.c: Likewise.
  4010. * remote-sim.c: Likewise.
  4011. * rs6000-nat.c: Likewise.
  4012. * target.c: Likewise.
  4013. * typeprint.c: Likewise.
  4014. * ui-file.c: Likewise.
  4015. * valops.c: Likewise.
  4016. * valprint.c: Likewise.
  4017. 2014-08-07 Gary Benson <gbenson@redhat.com>
  4018. * common/common-defs.h: Include string.h.
  4019. * aarch64-tdep.c: Do not include string.h.
  4020. * ada-exp.y: Likewise.
  4021. * ada-lang.c: Likewise.
  4022. * ada-lex.l: Likewise.
  4023. * ada-typeprint.c: Likewise.
  4024. * ada-valprint.c: Likewise.
  4025. * aix-thread.c: Likewise.
  4026. * alpha-linux-tdep.c: Likewise.
  4027. * alpha-mdebug-tdep.c: Likewise.
  4028. * alpha-nat.c: Likewise.
  4029. * alpha-osf1-tdep.c: Likewise.
  4030. * alpha-tdep.c: Likewise.
  4031. * alphanbsd-tdep.c: Likewise.
  4032. * amd64-dicos-tdep.c: Likewise.
  4033. * amd64-linux-tdep.c: Likewise.
  4034. * amd64-nat.c: Likewise.
  4035. * amd64-sol2-tdep.c: Likewise.
  4036. * amd64fbsd-tdep.c: Likewise.
  4037. * amd64obsd-tdep.c: Likewise.
  4038. * arch-utils.c: Likewise.
  4039. * arm-linux-nat.c: Likewise.
  4040. * arm-linux-tdep.c: Likewise.
  4041. * arm-tdep.c: Likewise.
  4042. * arm-wince-tdep.c: Likewise.
  4043. * armbsd-tdep.c: Likewise.
  4044. * armnbsd-nat.c: Likewise.
  4045. * armnbsd-tdep.c: Likewise.
  4046. * armobsd-tdep.c: Likewise.
  4047. * avr-tdep.c: Likewise.
  4048. * ax-gdb.c: Likewise.
  4049. * ax-general.c: Likewise.
  4050. * bcache.c: Likewise.
  4051. * bfin-tdep.c: Likewise.
  4052. * breakpoint.c: Likewise.
  4053. * build-id.c: Likewise.
  4054. * buildsym.c: Likewise.
  4055. * c-exp.y: Likewise.
  4056. * c-lang.c: Likewise.
  4057. * c-typeprint.c: Likewise.
  4058. * c-valprint.c: Likewise.
  4059. * charset.c: Likewise.
  4060. * cli-out.c: Likewise.
  4061. * cli/cli-cmds.c: Likewise.
  4062. * cli/cli-decode.c: Likewise.
  4063. * cli/cli-dump.c: Likewise.
  4064. * cli/cli-interp.c: Likewise.
  4065. * cli/cli-logging.c: Likewise.
  4066. * cli/cli-script.c: Likewise.
  4067. * cli/cli-setshow.c: Likewise.
  4068. * cli/cli-utils.c: Likewise.
  4069. * coffread.c: Likewise.
  4070. * common/agent.c: Likewise.
  4071. * common/buffer.c: Likewise.
  4072. * common/buffer.h: Likewise.
  4073. * common/common-utils.c: Likewise.
  4074. * common/filestuff.c: Likewise.
  4075. * common/filestuff.c: Likewise.
  4076. * common/format.c: Likewise.
  4077. * common/print-utils.c: Likewise.
  4078. * common/rsp-low.c: Likewise.
  4079. * common/signals.c: Likewise.
  4080. * common/vec.h: Likewise.
  4081. * common/xml-utils.c: Likewise.
  4082. * core-regset.c: Likewise.
  4083. * corefile.c: Likewise.
  4084. * corelow.c: Likewise.
  4085. * cp-abi.c: Likewise.
  4086. * cp-name-parser.y: Likewise.
  4087. * cp-support.c: Likewise.
  4088. * cp-valprint.c: Likewise.
  4089. * cris-tdep.c: Likewise.
  4090. * d-exp.y: Likewise.
  4091. * darwin-nat.c: Likewise.
  4092. * dbxread.c: Likewise.
  4093. * dcache.c: Likewise.
  4094. * demangle.c: Likewise.
  4095. * dicos-tdep.c: Likewise.
  4096. * disasm.c: Likewise.
  4097. * doublest.c: Likewise.
  4098. * dsrec.c: Likewise.
  4099. * dummy-frame.c: Likewise.
  4100. * dwarf2-frame.c: Likewise.
  4101. * dwarf2loc.c: Likewise.
  4102. * dwarf2read.c: Likewise.
  4103. * elfread.c: Likewise.
  4104. * environ.c: Likewise.
  4105. * eval.c: Likewise.
  4106. * event-loop.c: Likewise.
  4107. * exceptions.c: Likewise.
  4108. * exec.c: Likewise.
  4109. * expprint.c: Likewise.
  4110. * f-exp.y: Likewise.
  4111. * f-lang.c: Likewise.
  4112. * f-typeprint.c: Likewise.
  4113. * f-valprint.c: Likewise.
  4114. * fbsd-nat.c: Likewise.
  4115. * findcmd.c: Likewise.
  4116. * findvar.c: Likewise.
  4117. * fork-child.c: Likewise.
  4118. * frame.c: Likewise.
  4119. * frv-linux-tdep.c: Likewise.
  4120. * frv-tdep.c: Likewise.
  4121. * gdb.c: Likewise.
  4122. * gdb_bfd.c: Likewise.
  4123. * gdbarch.c: Likewise.
  4124. * gdbarch.sh: Likewise.
  4125. * gdbtypes.c: Likewise.
  4126. * gnu-nat.c: Likewise.
  4127. * gnu-v2-abi.c: Likewise.
  4128. * gnu-v3-abi.c: Likewise.
  4129. * go-exp.y: Likewise.
  4130. * go-lang.c: Likewise.
  4131. * go32-nat.c: Likewise.
  4132. * guile/guile.c: Likewise.
  4133. * guile/scm-auto-load.c: Likewise.
  4134. * hppa-hpux-tdep.c: Likewise.
  4135. * hppa-linux-nat.c: Likewise.
  4136. * hppanbsd-tdep.c: Likewise.
  4137. * hppaobsd-tdep.c: Likewise.
  4138. * i386-cygwin-tdep.c: Likewise.
  4139. * i386-dicos-tdep.c: Likewise.
  4140. * i386-linux-tdep.c: Likewise.
  4141. * i386-nto-tdep.c: Likewise.
  4142. * i386-sol2-tdep.c: Likewise.
  4143. * i386-tdep.c: Likewise.
  4144. * i386bsd-tdep.c: Likewise.
  4145. * i386gnu-nat.c: Likewise.
  4146. * i386nbsd-tdep.c: Likewise.
  4147. * i386obsd-tdep.c: Likewise.
  4148. * i387-tdep.c: Likewise.
  4149. * ia64-libunwind-tdep.c: Likewise.
  4150. * ia64-linux-nat.c: Likewise.
  4151. * inf-child.c: Likewise.
  4152. * inf-ptrace.c: Likewise.
  4153. * inf-ttrace.c: Likewise.
  4154. * infcall.c: Likewise.
  4155. * infcmd.c: Likewise.
  4156. * inflow.c: Likewise.
  4157. * infrun.c: Likewise.
  4158. * interps.c: Likewise.
  4159. * iq2000-tdep.c: Likewise.
  4160. * irix5-nat.c: Likewise.
  4161. * jv-exp.y: Likewise.
  4162. * jv-lang.c: Likewise.
  4163. * jv-typeprint.c: Likewise.
  4164. * jv-valprint.c: Likewise.
  4165. * language.c: Likewise.
  4166. * linux-fork.c: Likewise.
  4167. * linux-nat.c: Likewise.
  4168. * lm32-tdep.c: Likewise.
  4169. * m2-exp.y: Likewise.
  4170. * m2-typeprint.c: Likewise.
  4171. * m32c-tdep.c: Likewise.
  4172. * m32r-linux-nat.c: Likewise.
  4173. * m32r-linux-tdep.c: Likewise.
  4174. * m32r-rom.c: Likewise.
  4175. * m32r-tdep.c: Likewise.
  4176. * m68hc11-tdep.c: Likewise.
  4177. * m68k-tdep.c: Likewise.
  4178. * m68kbsd-tdep.c: Likewise.
  4179. * m68klinux-nat.c: Likewise.
  4180. * m68klinux-tdep.c: Likewise.
  4181. * m88k-tdep.c: Likewise.
  4182. * machoread.c: Likewise.
  4183. * macrocmd.c: Likewise.
  4184. * main.c: Likewise.
  4185. * mdebugread.c: Likewise.
  4186. * mem-break.c: Likewise.
  4187. * memattr.c: Likewise.
  4188. * memory-map.c: Likewise.
  4189. * mep-tdep.c: Likewise.
  4190. * mi/mi-cmd-break.c: Likewise.
  4191. * mi/mi-cmd-disas.c: Likewise.
  4192. * mi/mi-cmd-env.c: Likewise.
  4193. * mi/mi-cmd-stack.c: Likewise.
  4194. * mi/mi-cmd-var.c: Likewise.
  4195. * mi/mi-cmds.c: Likewise.
  4196. * mi/mi-console.c: Likewise.
  4197. * mi/mi-getopt.c: Likewise.
  4198. * mi/mi-interp.c: Likewise.
  4199. * mi/mi-main.c: Likewise.
  4200. * mi/mi-parse.c: Likewise.
  4201. * microblaze-rom.c: Likewise.
  4202. * microblaze-tdep.c: Likewise.
  4203. * mingw-hdep.c: Likewise.
  4204. * minidebug.c: Likewise.
  4205. * minsyms.c: Likewise.
  4206. * mips-irix-tdep.c: Likewise.
  4207. * mips-linux-tdep.c: Likewise.
  4208. * mips-tdep.c: Likewise.
  4209. * mips64obsd-tdep.c: Likewise.
  4210. * mipsnbsd-tdep.c: Likewise.
  4211. * mipsread.c: Likewise.
  4212. * mn10300-linux-tdep.c: Likewise.
  4213. * mn10300-tdep.c: Likewise.
  4214. * monitor.c: Likewise.
  4215. * moxie-tdep.c: Likewise.
  4216. * mt-tdep.c: Likewise.
  4217. * nat/linux-btrace.c: Likewise.
  4218. * nat/linux-osdata.c: Likewise.
  4219. * nat/linux-procfs.c: Likewise.
  4220. * nat/linux-ptrace.c: Likewise.
  4221. * nat/linux-waitpid.c: Likewise.
  4222. * nbsd-tdep.c: Likewise.
  4223. * nios2-linux-tdep.c: Likewise.
  4224. * nto-procfs.c: Likewise.
  4225. * nto-tdep.c: Likewise.
  4226. * objc-lang.c: Likewise.
  4227. * objfiles.c: Likewise.
  4228. * opencl-lang.c: Likewise.
  4229. * osabi.c: Likewise.
  4230. * osdata.c: Likewise.
  4231. * p-exp.y: Likewise.
  4232. * p-lang.c: Likewise.
  4233. * p-typeprint.c: Likewise.
  4234. * parse.c: Likewise.
  4235. * posix-hdep.c: Likewise.
  4236. * ppc-linux-nat.c: Likewise.
  4237. * ppc-sysv-tdep.c: Likewise.
  4238. * ppcfbsd-tdep.c: Likewise.
  4239. * ppcnbsd-tdep.c: Likewise.
  4240. * ppcobsd-tdep.c: Likewise.
  4241. * printcmd.c: Likewise.
  4242. * procfs.c: Likewise.
  4243. * prologue-value.c: Likewise.
  4244. * python/py-auto-load.c: Likewise.
  4245. * python/py-gdb-readline.c: Likewise.
  4246. * ravenscar-thread.c: Likewise.
  4247. * regcache.c: Likewise.
  4248. * registry.c: Likewise.
  4249. * remote-fileio.c: Likewise.
  4250. * remote-m32r-sdi.c: Likewise.
  4251. * remote-mips.c: Likewise.
  4252. * remote-notif.c: Likewise.
  4253. * remote-sim.c: Likewise.
  4254. * remote.c: Likewise.
  4255. * reverse.c: Likewise.
  4256. * rs6000-aix-tdep.c: Likewise.
  4257. * ser-base.c: Likewise.
  4258. * ser-go32.c: Likewise.
  4259. * ser-mingw.c: Likewise.
  4260. * ser-pipe.c: Likewise.
  4261. * ser-tcp.c: Likewise.
  4262. * ser-unix.c: Likewise.
  4263. * serial.c: Likewise.
  4264. * sh-tdep.c: Likewise.
  4265. * sh64-tdep.c: Likewise.
  4266. * shnbsd-tdep.c: Likewise.
  4267. * skip.c: Likewise.
  4268. * sol-thread.c: Likewise.
  4269. * solib-dsbt.c: Likewise.
  4270. * solib-frv.c: Likewise.
  4271. * solib-osf.c: Likewise.
  4272. * solib-som.c: Likewise.
  4273. * solib-spu.c: Likewise.
  4274. * solib-target.c: Likewise.
  4275. * solib.c: Likewise.
  4276. * somread.c: Likewise.
  4277. * source.c: Likewise.
  4278. * sparc-nat.c: Likewise.
  4279. * sparc-sol2-tdep.c: Likewise.
  4280. * sparc-tdep.c: Likewise.
  4281. * sparc64-tdep.c: Likewise.
  4282. * sparc64fbsd-tdep.c: Likewise.
  4283. * sparc64nbsd-tdep.c: Likewise.
  4284. * sparcnbsd-tdep.c: Likewise.
  4285. * spu-linux-nat.c: Likewise.
  4286. * spu-multiarch.c: Likewise.
  4287. * spu-tdep.c: Likewise.
  4288. * stabsread.c: Likewise.
  4289. * stack.c: Likewise.
  4290. * std-regs.c: Likewise.
  4291. * symfile.c: Likewise.
  4292. * symmisc.c: Likewise.
  4293. * symtab.c: Likewise.
  4294. * target.c: Likewise.
  4295. * thread.c: Likewise.
  4296. * tilegx-linux-nat.c: Likewise.
  4297. * tilegx-tdep.c: Likewise.
  4298. * top.c: Likewise.
  4299. * tracepoint.c: Likewise.
  4300. * tui/tui-command.c: Likewise.
  4301. * tui/tui-data.c: Likewise.
  4302. * tui/tui-disasm.c: Likewise.
  4303. * tui/tui-file.c: Likewise.
  4304. * tui/tui-layout.c: Likewise.
  4305. * tui/tui-out.c: Likewise.
  4306. * tui/tui-regs.c: Likewise.
  4307. * tui/tui-source.c: Likewise.
  4308. * tui/tui-stack.c: Likewise.
  4309. * tui/tui-win.c: Likewise.
  4310. * tui/tui-windata.c: Likewise.
  4311. * tui/tui-winsource.c: Likewise.
  4312. * typeprint.c: Likewise.
  4313. * ui-file.c: Likewise.
  4314. * ui-out.c: Likewise.
  4315. * user-regs.c: Likewise.
  4316. * utils.c: Likewise.
  4317. * v850-tdep.c: Likewise.
  4318. * valarith.c: Likewise.
  4319. * valops.c: Likewise.
  4320. * valprint.c: Likewise.
  4321. * value.c: Likewise.
  4322. * varobj.c: Likewise.
  4323. * vax-tdep.c: Likewise.
  4324. * vaxnbsd-tdep.c: Likewise.
  4325. * vaxobsd-tdep.c: Likewise.
  4326. * windows-nat.c: Likewise.
  4327. * xcoffread.c: Likewise.
  4328. * xml-support.c: Likewise.
  4329. * xstormy16-tdep.c: Likewise.
  4330. * xtensa-linux-nat.c: Likewise.
  4331. 2014-08-07 Gary Benson <gbenson@redhat.com>
  4332. * common/common-defs.h: Include gdb_assert.h.
  4333. * aarch64-tdep.c: Do not include gdb_assert.h.
  4334. * addrmap.c: Likewise.
  4335. * aix-thread.c: Likewise.
  4336. * alpha-linux-tdep.c: Likewise.
  4337. * alpha-mdebug-tdep.c: Likewise.
  4338. * alphanbsd-tdep.c: Likewise.
  4339. * amd64-nat.c: Likewise.
  4340. * amd64-tdep.c: Likewise.
  4341. * amd64bsd-nat.c: Likewise.
  4342. * amd64fbsd-nat.c: Likewise.
  4343. * amd64fbsd-tdep.c: Likewise.
  4344. * amd64nbsd-nat.c: Likewise.
  4345. * amd64nbsd-tdep.c: Likewise.
  4346. * amd64obsd-nat.c: Likewise.
  4347. * amd64obsd-tdep.c: Likewise.
  4348. * arch-utils.c: Likewise.
  4349. * arm-tdep.c: Likewise.
  4350. * armbsd-tdep.c: Likewise.
  4351. * auxv.c: Likewise.
  4352. * bcache.c: Likewise.
  4353. * bfin-tdep.c: Likewise.
  4354. * blockframe.c: Likewise.
  4355. * breakpoint.c: Likewise.
  4356. * bsd-kvm.c: Likewise.
  4357. * bsd-uthread.c: Likewise.
  4358. * buildsym.c: Likewise.
  4359. * c-exp.y: Likewise.
  4360. * c-lang.c: Likewise.
  4361. * charset.c: Likewise.
  4362. * cleanups.c: Likewise.
  4363. * cli-out.c: Likewise.
  4364. * cli/cli-decode.c: Likewise.
  4365. * cli/cli-dump.c: Likewise.
  4366. * cli/cli-logging.c: Likewise.
  4367. * cli/cli-script.c: Likewise.
  4368. * cli/cli-utils.c: Likewise.
  4369. * coffread.c: Likewise.
  4370. * common/common-utils.c: Likewise.
  4371. * common/queue.h: Likewise.
  4372. * common/signals.c: Likewise.
  4373. * common/vec.h: Likewise.
  4374. * complaints.c: Likewise.
  4375. * completer.c: Likewise.
  4376. * corelow.c: Likewise.
  4377. * cp-abi.c: Likewise.
  4378. * cp-name-parser.y: Likewise.
  4379. * cp-namespace.c: Likewise.
  4380. * cp-support.c: Likewise.
  4381. * cris-tdep.c: Likewise.
  4382. * dbxread.c: Likewise.
  4383. * dictionary.c: Likewise.
  4384. * doublest.c: Likewise.
  4385. * dsrec.c: Likewise.
  4386. * dummy-frame.c: Likewise.
  4387. * dwarf2-frame-tailcall.c: Likewise.
  4388. * dwarf2-frame.c: Likewise.
  4389. * dwarf2expr.c: Likewise.
  4390. * dwarf2loc.c: Likewise.
  4391. * dwarf2read.c: Likewise.
  4392. * eval.c: Likewise.
  4393. * event-loop.c: Likewise.
  4394. * exceptions.c: Likewise.
  4395. * expprint.c: Likewise.
  4396. * f-valprint.c: Likewise.
  4397. * fbsd-nat.c: Likewise.
  4398. * findvar.c: Likewise.
  4399. * frame-unwind.c: Likewise.
  4400. * frame.c: Likewise.
  4401. * frv-tdep.c: Likewise.
  4402. * gcore.c: Likewise.
  4403. * gdb-dlfcn.c: Likewise.
  4404. * gdb_bfd.c: Likewise.
  4405. * gdbarch.c: Likewise.
  4406. * gdbarch.sh: Likewise.
  4407. * gdbtypes.c: Likewise.
  4408. * gnu-nat.c: Likewise.
  4409. * gnu-v3-abi.c: Likewise.
  4410. * go-lang.c: Likewise.
  4411. * guile/scm-exception.c: Likewise.
  4412. * guile/scm-gsmob.c: Likewise.
  4413. * guile/scm-lazy-string.c: Likewise.
  4414. * guile/scm-math.c: Likewise.
  4415. * guile/scm-pretty-print.c: Likewise.
  4416. * guile/scm-safe-call.c: Likewise.
  4417. * guile/scm-utils.c: Likewise.
  4418. * guile/scm-value.c: Likewise.
  4419. * h8300-tdep.c: Likewise.
  4420. * hppa-hpux-nat.c: Likewise.
  4421. * hppa-tdep.c: Likewise.
  4422. * hppanbsd-tdep.c: Likewise.
  4423. * hppaobsd-tdep.c: Likewise.
  4424. * i386-darwin-nat.c: Likewise.
  4425. * i386-darwin-tdep.c: Likewise.
  4426. * i386-nto-tdep.c: Likewise.
  4427. * i386-tdep.c: Likewise.
  4428. * i386bsd-nat.c: Likewise.
  4429. * i386fbsd-tdep.c: Likewise.
  4430. * i386gnu-nat.c: Likewise.
  4431. * i386nbsd-tdep.c: Likewise.
  4432. * i386obsd-tdep.c: Likewise.
  4433. * i387-tdep.c: Likewise.
  4434. * ia64-libunwind-tdep.c: Likewise.
  4435. * ia64-tdep.c: Likewise.
  4436. * inf-ptrace.c: Likewise.
  4437. * inf-ttrace.c: Likewise.
  4438. * infcall.c: Likewise.
  4439. * infcmd.c: Likewise.
  4440. * infrun.c: Likewise.
  4441. * inline-frame.c: Likewise.
  4442. * interps.c: Likewise.
  4443. * jv-lang.c: Likewise.
  4444. * jv-typeprint.c: Likewise.
  4445. * linux-fork.c: Likewise.
  4446. * linux-nat.c: Likewise.
  4447. * linux-thread-db.c: Likewise.
  4448. * m32c-tdep.c: Likewise.
  4449. * m32r-linux-nat.c: Likewise.
  4450. * m32r-tdep.c: Likewise.
  4451. * m68k-tdep.c: Likewise.
  4452. * m68kbsd-nat.c: Likewise.
  4453. * m68kbsd-tdep.c: Likewise.
  4454. * m88k-tdep.c: Likewise.
  4455. * machoread.c: Likewise.
  4456. * macroexp.c: Likewise.
  4457. * macrotab.c: Likewise.
  4458. * maint.c: Likewise.
  4459. * mdebugread.c: Likewise.
  4460. * memory-map.c: Likewise.
  4461. * mep-tdep.c: Likewise.
  4462. * mi/mi-common.c: Likewise.
  4463. * microblaze-tdep.c: Likewise.
  4464. * mingw-hdep.c: Likewise.
  4465. * mips-linux-nat.c: Likewise.
  4466. * mips-linux-tdep.c: Likewise.
  4467. * mips-tdep.c: Likewise.
  4468. * mips64obsd-tdep.c: Likewise.
  4469. * mipsnbsd-tdep.c: Likewise.
  4470. * mn10300-linux-tdep.c: Likewise.
  4471. * mn10300-tdep.c: Likewise.
  4472. * moxie-tdep.c: Likewise.
  4473. * mt-tdep.c: Likewise.
  4474. * nat/linux-btrace.c: Likewise.
  4475. * nat/linux-osdata.c: Likewise.
  4476. * nat/linux-ptrace.c: Likewise.
  4477. * nat/mips-linux-watch.c: Likewise.
  4478. * nios2-linux-tdep.c: Likewise.
  4479. * nios2-tdep.c: Likewise.
  4480. * objc-lang.c: Likewise.
  4481. * objfiles.c: Likewise.
  4482. * obsd-nat.c: Likewise.
  4483. * opencl-lang.c: Likewise.
  4484. * osabi.c: Likewise.
  4485. * parse.c: Likewise.
  4486. * ppc-linux-nat.c: Likewise.
  4487. * ppc-sysv-tdep.c: Likewise.
  4488. * ppcfbsd-nat.c: Likewise.
  4489. * ppcfbsd-tdep.c: Likewise.
  4490. * ppcnbsd-nat.c: Likewise.
  4491. * ppcnbsd-tdep.c: Likewise.
  4492. * ppcobsd-nat.c: Likewise.
  4493. * ppcobsd-tdep.c: Likewise.
  4494. * printcmd.c: Likewise.
  4495. * procfs.c: Likewise.
  4496. * prologue-value.c: Likewise.
  4497. * psymtab.c: Likewise.
  4498. * python/py-lazy-string.c: Likewise.
  4499. * python/py-value.c: Likewise.
  4500. * regcache.c: Likewise.
  4501. * reggroups.c: Likewise.
  4502. * registry.c: Likewise.
  4503. * remote-sim.c: Likewise.
  4504. * remote.c: Likewise.
  4505. * rs6000-aix-tdep.c: Likewise.
  4506. * rs6000-tdep.c: Likewise.
  4507. * s390-linux-tdep.c: Likewise.
  4508. * score-tdep.c: Likewise.
  4509. * ser-base.c: Likewise.
  4510. * ser-mingw.c: Likewise.
  4511. * sh-tdep.c: Likewise.
  4512. * sh64-tdep.c: Likewise.
  4513. * solib-darwin.c: Likewise.
  4514. * solib-spu.c: Likewise.
  4515. * solib-svr4.c: Likewise.
  4516. * source.c: Likewise.
  4517. * sparc-nat.c: Likewise.
  4518. * sparc-sol2-tdep.c: Likewise.
  4519. * sparc-tdep.c: Likewise.
  4520. * sparc64-sol2-tdep.c: Likewise.
  4521. * sparc64-tdep.c: Likewise.
  4522. * sparc64fbsd-tdep.c: Likewise.
  4523. * sparc64nbsd-tdep.c: Likewise.
  4524. * sparc64obsd-tdep.c: Likewise.
  4525. * sparcnbsd-tdep.c: Likewise.
  4526. * sparcobsd-tdep.c: Likewise.
  4527. * spu-multiarch.c: Likewise.
  4528. * spu-tdep.c: Likewise.
  4529. * stabsread.c: Likewise.
  4530. * stack.c: Likewise.
  4531. * symfile.c: Likewise.
  4532. * symtab.c: Likewise.
  4533. * target-descriptions.c: Likewise.
  4534. * target-memory.c: Likewise.
  4535. * target.c: Likewise.
  4536. * tic6x-linux-tdep.c: Likewise.
  4537. * tic6x-tdep.c: Likewise.
  4538. * tilegx-linux-nat.c: Likewise.
  4539. * tilegx-tdep.c: Likewise.
  4540. * top.c: Likewise.
  4541. * tramp-frame.c: Likewise.
  4542. * tui/tui-out.c: Likewise.
  4543. * tui/tui-winsource.c: Likewise.
  4544. * ui-out.c: Likewise.
  4545. * user-regs.c: Likewise.
  4546. * utils.c: Likewise.
  4547. * v850-tdep.c: Likewise.
  4548. * valops.c: Likewise.
  4549. * value.c: Likewise.
  4550. * varobj.c: Likewise.
  4551. * vax-nat.c: Likewise.
  4552. * xml-syscall.c: Likewise.
  4553. * xml-tdesc.c: Likewise.
  4554. * xstormy16-tdep.c: Likewise.
  4555. * xtensa-linux-nat.c: Likewise.
  4556. * xtensa-tdep.c: Likewise.
  4557. 2014-08-07 Gary Benson <gbenson@redhat.com>
  4558. * common/common-defs.h: Include common-utils.h.
  4559. * defs.h: Do not include common-utils.h.
  4560. * common/gdb_assert.h: Likewise.
  4561. * darwin-nat.h: Likewise.
  4562. * nat/linux-btrace.c: Likewise.
  4563. * target/waitstatus.h: Likewise.
  4564. 2014-08-07 Gary Benson <gbenson@redhat.com>
  4565. * common/common-defs.h: Include ptid.h.
  4566. * defs.h: Do not include ptid.h.
  4567. * inferior.h: Likewise.
  4568. * infrun.h: Likewise.
  4569. * nat/linux-btrace.h: Likewise.
  4570. * nat/linux-osdata.h: Likewise.
  4571. * target/waitstatus.h: Likewise.
  4572. 2014-08-07 Gary Benson <gbenson@redhat.com>
  4573. * common/common-defs.h: Include gdb_locale.h.
  4574. * defs.h: Do not include gdb_locale.h.
  4575. 2014-08-07 Gary Benson <gbenson@redhat.com>
  4576. * common/common-defs.h: Include gdb/signals.h.
  4577. * defs.h: Do not include gdb/signals.h.
  4578. 2014-08-07 Gary Benson <gbenson@redhat.com>
  4579. * common/common-defs.h: Include pathmax.h.
  4580. * defs.h: Do not include pathmax.h.
  4581. 2014-08-07 Gary Benson <gbenson@redhat.com>
  4582. * common/common-defs.h: Include libiberty.h.
  4583. * defs.h: Do not include libiberty.h.
  4584. * common/queue.h: Likewise.
  4585. * cp-name-parser.y: Likewise.
  4586. * mi/mi-cmd-catch.c: Likewise.
  4587. * python/python.c: Likewise.
  4588. 2014-08-07 Gary Benson <gbenson@redhat.com>
  4589. * common/common-defs.h: Include ansidecl.h.
  4590. * defs.h: Do not include ansidecl.h.
  4591. * common/buffer.h: Likewise.
  4592. * common/common-utils.h: Likewise.
  4593. 2014-08-07 Gary Benson <gbenson@redhat.com>
  4594. * common/common-defs.h: Include stddef.h.
  4595. * defs.h: Do not include stddef.h.
  4596. * common/common-utils.h: Likewise.
  4597. * amd64fbsd-nat.c: Likewise.
  4598. * bcache.c: Likewise.
  4599. * charset.c: Likewise.
  4600. * common/buffer.h: Likewise.
  4601. * common/vec.h: Likewise.
  4602. * i386bsd-nat.c: Likewise.
  4603. * nat/linux-btrace.h: Likewise.
  4604. * ppcfbsd-nat.c: Likewise.
  4605. * ppcnbsd-tdep.h: Likewise.
  4606. * ppcobsd-nat.c: Likewise.
  4607. * ppcobsd-tdep.h: Likewise.
  4608. * python/py-gdb-readline.c: Likewise.
  4609. 2014-08-07 Gary Benson <gbenson@redhat.com>
  4610. * common/common-defs.h: Include stdarg.h.
  4611. * defs.h: Do not include stdarg.h.
  4612. * ada-lang.c: Likewise.
  4613. * common/common-utils.h: Likewise.
  4614. * guile/scm-string.c: Likewise.
  4615. * guile/scm-utils.c: Likewise.
  4616. * m32c-tdep.c: Likewise.
  4617. 2014-08-07 Gary Benson <gbenson@redhat.com>
  4618. * common/common-defs.h: Include stdlib.h.
  4619. * defs.h: Do not include stdlib.h.
  4620. * addrmap.c: Likewise.
  4621. * bcache.c: Likewise.
  4622. * common/buffer.c: Likewise.
  4623. * common/common-utils.c: Likewise.
  4624. * cp-name-parser.y: Likewise.
  4625. * go32-nat.c: Likewise.
  4626. * mn10300-linux-tdep.c: Likewise.
  4627. * nat/linux-osdata.c: Likewise.
  4628. * tui/tui.c: Likewise.
  4629. * windows-nat.c: Likewise.
  4630. 2014-08-07 Gary Benson <gbenson@redhat.com>
  4631. * common/common-defs.h: Include stdio.h.
  4632. * defs.h: Do not include stdio.h.
  4633. * ada-lang.c: Likewise.
  4634. * common/buffer.c: Likewise.
  4635. * common/common-utils.c: Likewise.
  4636. * cp-name-parser.y: Likewise.
  4637. * gnu-nat.c: Likewise.
  4638. * go32-nat.c: Likewise.
  4639. * i386gnu-nat.c: Likewise.
  4640. * proc-api.c: Likewise.
  4641. * proc-events.c: Likewise.
  4642. * proc-flags.c: Likewise.
  4643. * proc-why.c: Likewise.
  4644. * python/python-internal.h: Likewise.
  4645. * target-memory.c: Likewise.
  4646. * tui/tui-io.c: Likewise.
  4647. * tui/tui.c: Likewise.
  4648. 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
  4649. * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
  4650. (scan_dyntag_auxv): Same.
  4651. 2014-08-06 Yao Qi <yao@codesourcery.com>
  4652. * amd64-linux-nat.c: Remove duplicated include
  4653. "x86-linux-nat.h".
  4654. * i386-linux-nat.c: Likewise.
  4655. 2014-08-06 Yao Qi <yao@codesourcery.com>
  4656. * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
  4657. operand" with "Special opcode" in comments.
  4658. 2014-08-05 Gary Benson <gbenson@redhat.com>
  4659. * interps.c (initialize_interps): Remove prototype.
  4660. (interpreter_initialized): Remove static global.
  4661. (interp_add): Do not call initialize_interps.
  4662. (initialize_interps): Remove function.
  4663. 2014-08-05 Gary Benson <gbenson@redhat.com>
  4664. * utils.c (vwarning): Remove spurious va_end.
  4665. 2014-08-05 Alan Modra <amodra@gmail.com>
  4666. * charset.c (convert_between_encodings): Cast result of obstack_base.
  4667. * cp-valprint.c (cp_print_value_fields): Use size_t locals.
  4668. * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
  4669. (read_unwind_info): Use size_t for some locals.
  4670. * jit.c (finalize_symtab): Likewise.
  4671. * utils.c (hashtab_obstack_allocate): Likewise.
  4672. * symmisc.c (print_objfile_statistics): Update format strings.
  4673. 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
  4674. * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
  4675. (Changes in GDB 7.8): ... here.
  4676. 2014-08-04 Tom Tromey <tromey@redhat.com>
  4677. * target.c (set_targetdebug): New function.
  4678. (initialize_targets): Pass set_targetdebug when creating "set
  4679. debug target".
  4680. 2014-08-01 Joel Brobecker <brobecker@adacore.com>
  4681. * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
  4682. if detecting a variable-sized field that is not the last field.
  4683. Fix struct type length computation.
  4684. 2014-08-01 Joel Brobecker <brobecker@adacore.com>
  4685. * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
  4686. Add debug trace.
  4687. 2014-08-01 Joel Brobecker <brobecker@adacore.com>
  4688. * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
  4689. Remove "+ 8" offset in computation of CHAIN_VMA.
  4690. 2014-07-31 Doug Evans <dje@google.com>
  4691. * inflow.c (child_terminal_inferior): Add comment.
  4692. (child_terminal_ours_for_output): Add comment.
  4693. (child_terminal_ours): Add comment.
  4694. * linux-nat.c (linux_nat_terminal_inferior): Add comment.
  4695. (linux_nat_terminal_ours): Add comment.
  4696. 2014-07-31 Gary Benson <gbenson@redhat.com>
  4697. * common/btrace-common.h: Do not include defs.h or server.h.
  4698. * nat/mips-linux-watch.h: Likewise.
  4699. * gdb-dlfcn.h: Do not include defs.h.
  4700. * tracefile.h: Likewise.
  4701. 2014-07-30 Roland McGrath <mcgrathr@google.com>
  4702. * remote-sim.c (gdbsim_open): Apply constification to forward decl.
  4703. 2014-07-30 Tom Tromey <tromey@redhat.com>
  4704. * bsd-kvm.c (bsd_kvm_open): Constify.
  4705. * corelow.c (core_open): Constify.
  4706. * ctf.c (ctf_open): Constify.
  4707. * dbug-rom.c (dbug_open): Constify.
  4708. * exec.c (exec_open): Constify.
  4709. * m32r-rom.c (m32r_open, mon2000_open): Constify.
  4710. * microblaze-rom.c (picobug_open): Constify.
  4711. * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
  4712. Constify.
  4713. * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
  4714. * record-btrace.c (record_btrace_open): Constify.
  4715. * record-full.c (record_full_core_open_1, record_full_open_1)
  4716. (record_full_open): Constify.
  4717. * remote-m32r-sdi.c (m32r_open): Constify.
  4718. * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
  4719. (rockhopper_open, lsi_open): Constify.
  4720. * remote-sim.c (gdbsim_open): Constify.
  4721. * remote.c (remote_open, extended_remote_open, remote_open_1):
  4722. Constify.
  4723. * target.h (struct target_ops) <to_open>: Make "arg" const.
  4724. * tracefile-tfile.c (tfile_open): Constify.
  4725. 2014-07-30 Tom Tromey <tromey@redhat.com>
  4726. * breakpoint.c (map_breakpoint_numbers): Update.
  4727. * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
  4728. (get_number_const): New function.
  4729. (get_number): Rewrite using get_number_const.
  4730. (init_number_or_range): Make "string" const.
  4731. (number_is_in_list): Make "list" const.
  4732. * cli/cli-utils.h (get_number_const): Declare.
  4733. (struct get_number_or_range_state) <string, end_ptr>: Now const.
  4734. (init_number_or_range, number_is_in_list): Update.
  4735. * printcmd.c (map_display_numbers): Update.
  4736. * value.c (value_from_history_ref): Constify.
  4737. * value.h (value_from_history_ref): Update.
  4738. 2014-07-30 Tom Tromey <tromey@redhat.com>
  4739. * corefile.c (hook_type, call_extra_exec_file_hooks)
  4740. (specify_exec_file_hook): Constify.
  4741. * exec.c (exec_file_attach): Make "filename" const.
  4742. * gdbcore.h (deprecated_exec_file_display_hook)
  4743. (specify_exec_file_hook, exec_file_attach): Constify.
  4744. * main.c (captured_main): Use catch_command_errors_const.
  4745. 2014-07-30 Tom Tromey <tromey@redhat.com>
  4746. * target.c (open_target): New function.
  4747. (add_target_with_completer, add_deprecated_target_alias): Use
  4748. set_cmd_sfunc, set_cmd_context.
  4749. (debug_to_open): Remove.
  4750. (setup_target_debug): Update.
  4751. 2014-07-30 Yao Qi <yao@codesourcery.com>
  4752. * parser-defs.h (struct exp_descriptor) <operator_check>: Update
  4753. comments.
  4754. * parse.c (exp_iterate): Update comments.
  4755. 2014-07-30 Gary Benson <gbenson@redhat.com>
  4756. * common/common-defs.h: New file.
  4757. * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
  4758. * defs.h: Include common-defs.h.
  4759. Do not include config.h or build-gnulib/config.h.
  4760. 2014-07-30 Gary Benson <gbenson@redhat.com>
  4761. * common/common-utils.h: Do not include config.h.
  4762. * nat/linux-btrace.h: Likewise.
  4763. 2014-07-30 Gary Benson <gbenson@redhat.com>
  4764. * btrace.c: Include defs.h.
  4765. * common/ptid.c: Include defs.h or server.h as appropriate.
  4766. * nat/mips-linux-watch.c: Likewise.
  4767. 2014-07-29 Tom Tromey <tromey@redhat.com>
  4768. * target.c (target_is_pushed): Simplify.
  4769. 2014-07-29 Joel Brobecker <brobecker@adacore.com>
  4770. GDB 7.8 released.
  4771. 2014-07-29 Yao Qi <yao@codesourcery.com>
  4772. PR gdb/17206
  4773. * infcmd.c (until_next_command): Set step_range_end to PC + 1.
  4774. 2014-07-28 Doug Evans <xdje42@gmail.com>
  4775. PR guile/17203
  4776. * guile/scm-param.c (pascm_parameter_defined_p): New function.
  4777. (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
  4778. parameters.
  4779. 2014-07-28 Will Newton <will.newton@linaro.org>
  4780. * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
  4781. (THUMB2_SET_R7_SIGRETURN2): Likewise.
  4782. (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
  4783. (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
  4784. (THUMB2_EABI_SYSCALL): Likewise.
  4785. (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
  4786. struct tramp_frame.
  4787. (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
  4788. (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
  4789. 2014-07-27 Doug Evans <xdje42@gmail.com>
  4790. * guile/scm-param.c (pascm_print_param_smob): Fix output.
  4791. 2014-07-27 Doug Evans <xdje42@gmail.com>
  4792. * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
  4793. 2014-07-26 Ludovic Courtès <ludo@gnu.org>
  4794. Doug Evans <xdje42@gmail.com>
  4795. PR guile/17146
  4796. * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
  4797. (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
  4798. * configure.ac: Try to use guild to compile an scm file, if it fails
  4799. then disable guile support.
  4800. * configure: Regenerate.
  4801. * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
  4802. GUILE_FILE_LIST.
  4803. (GUILE_COMPILED_FILES): New variable.
  4804. (GUILE_FILES) Update.
  4805. (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
  4806. (stamp-guile): Compile scm files.
  4807. * guile/guile.c (boot_guile_support): New function.
  4808. (standard_throw_args_p): New function.
  4809. (print_standard_throw_error, print_throw_error): New functions.
  4810. (handle_boot_error): New function.
  4811. (initialize_scheme_side): Rewrite to call boot_guile_support.
  4812. * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
  4813. * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
  4814. 2014-07-26 Ludovic Courtès <ludo@gnu.org>
  4815. Doug Evans <xdje42@gmail.com>
  4816. PR guile/17146
  4817. * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
  4818. * guile/lib/gdb/support.scm: New file.
  4819. * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
  4820. * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
  4821. All uses updated.
  4822. * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
  4823. All uses updated.
  4824. (%assert-type): Ditto, and renamed to assert-type.
  4825. (%exception-print-style): Delete.
  4826. 2014-07-26 Doug Evans <xdje42@gmail.com>
  4827. PR build/17105
  4828. * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
  4829. * configure: Regenerate.
  4830. * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
  4831. PYTHON_FILES.
  4832. (PYTHON_FILES): New variable.
  4833. (GUILE_FILE_LIST): Renamed from GUILE_FILES.
  4834. (GUILE_FILES): New variable.
  4835. (stamp-python, install-python, uninstall-python): Handle empty
  4836. file list.
  4837. (stamp-guile, install-guile, uninstall-guile): Ditto.
  4838. 2014-07-26 Doug Evans <xdje42@gmail.com>
  4839. PR guile/17177
  4840. * guile/lib/gdb.scm (pretty-printers): Export.
  4841. (set-pretty-printers!): Export.
  4842. * guile/lib/gdb/printing.scm (gdb module): Update.
  4843. (prepend-pretty-printer!, append-pretty-printer!): Update.
  4844. * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
  4845. (pretty_printer_list_var): Delete.
  4846. (pretty_printer_list): New static global.
  4847. (gdbscm_pretty_printers): New function.
  4848. (gdbscm_set_pretty_printers_x): New function.
  4849. (ppscm_find_pretty_printer_from_gdb): Update.
  4850. (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
  4851. (gdbscm_initialize_pretty_printers): Update.
  4852. 2014-07-26 Doug Evans <xdje42@gmail.com>
  4853. PR 17185
  4854. * configure.ac: Add check for header gc/gc.h.
  4855. Add check for function setenv.
  4856. * configure: Regenerate.
  4857. * config.in: Regenerate.
  4858. * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
  4859. 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
  4860. * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
  4861. variation in gdbarch matching.
  4862. 2014-07-25 Tom Tromey <tromey@redhat.com>
  4863. * exec.c (using_exec_ops): Remove.
  4864. (exec_close_1): Update. Remove extraneous block, reindent.
  4865. (add_target_sections): Use target_is_pushed.
  4866. 2014-07-25 Pedro Alves <palves@redhat.com>
  4867. * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
  4868. * monitor.c (monitor_create_inferior): Likewise.
  4869. * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
  4870. * remote-sim.c (gdbsim_create_inferior): Likewise.
  4871. * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
  4872. * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
  4873. * windows-nat.c (do_initial_windows_stuff): Likewise.
  4874. 2014-07-25 Pedro Alves <palves@redhat.com>
  4875. * NEWS: Mention signal passing and "signal" command changes.
  4876. * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
  4877. comment.
  4878. * breakpoint.c (until_break_command): Adjust clear_proceed_status
  4879. call.
  4880. * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
  4881. * infcmd.c (proceed_thread_callback, continue_1, step_once)
  4882. (jump_command): Adjust clear_proceed_status call.
  4883. (signal_command): Warn if other thread that are resumed have
  4884. signals that will be delivered. Adjust clear_proceed_status call.
  4885. (until_next_command, finish_command)
  4886. (proceed_after_attach_callback, attach_command_post_wait)
  4887. (attach_command): Adjust clear_proceed_status call.
  4888. * infrun.c (proceed_after_vfork_done): Likewise.
  4889. (proceed_after_attach_callback): Adjust comment.
  4890. (clear_proceed_status_thread): Clear stop_signal if not in pass
  4891. state.
  4892. (clear_proceed_status_callback): Delete.
  4893. (clear_proceed_status): New 'step' parameter. Only clear the
  4894. proceed status of threads the command being prepared is about to
  4895. resume.
  4896. (proceed): If passed in an explicit signal, override stop_signal
  4897. with it. Don't pass the last stop signal to the thread we're
  4898. resuming.
  4899. (init_wait_for_inferior): Adjust clear_proceed_status call.
  4900. (switch_back_to_stepped_thread): Clear the signal if it should not
  4901. be passed.
  4902. * infrun.h (clear_proceed_status): New 'step' parameter.
  4903. (user_visible_resume_ptid): Add comment.
  4904. * linux-nat.c (linux_nat_resume_callback): Don't check whether the
  4905. signal is in pass state.
  4906. * remote.c (append_pending_thread_resumptions): Likewise.
  4907. * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
  4908. 2014-07-25 Tom Tromey <tromey@redhat.com>
  4909. * target.h (target_stopped_data_address)
  4910. (target_watchpoint_addr_within_range): Use "->", not ".". Fix
  4911. parentheses.
  4912. 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
  4913. * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
  4914. comments.
  4915. (avr_pointer_to_address): Likewise.
  4916. 2014-07-24 Tom Tromey <tromey@redhat.com>
  4917. * monitor.c (compile_pattern): Update.
  4918. * target.h (struct target_ops) <to_shortname, to_longname,
  4919. to_doc>: Now const.
  4920. 2014-07-24 Tom Tromey <tromey@redhat.com>
  4921. * cli/cli-decode.c (add_cmd, add_prefix_cmd)
  4922. (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
  4923. (add_info_alias, add_com): Make "doc" const.
  4924. (print_doc_line): Make "str" const.
  4925. (delete_cmd): Update.
  4926. * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
  4927. (print_doc_line): Update.
  4928. * cli/cli-script.c (document_command): Update.
  4929. * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
  4930. (add_com, add_info, add_info_alias): Update.
  4931. * guile/scm-cmd.c (cmdscm_destroyer): Update.
  4932. * python/py-cmd.c (cmdpy_destroyer): Update.
  4933. 2014-07-24 Tom Tromey <tromey@redhat.com>
  4934. * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
  4935. (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
  4936. (help_cmd_list): Constify.
  4937. (lookup_cmd): Update.
  4938. * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
  4939. const.
  4940. (help_cmd_list, apropos_cmd): Update.
  4941. * cli/cli-script.c (show_user): Update.
  4942. * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
  4943. * cli/cli-setshow.h (cmd_show_list): Update.
  4944. * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
  4945. (cmd_show_list): Update.
  4946. * guile/scm-cmd.c (cmdscm_destroyer): Update.
  4947. * python/py-cmd.c (cmdpy_destroyer): Update.
  4948. 2014-07-24 Tom Tromey <tromey@redhat.com>
  4949. * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
  4950. * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
  4951. const.
  4952. * command.h (deprecate_cmd): Update.
  4953. * maint.c (maintenance_do_deprecate): Add casts.
  4954. 2014-07-24 Tom Tromey <tromey@redhat.com>
  4955. * cli/cli-decode.c (help_cmd): Make parameter "const".
  4956. * cli/cli-decode.h (help_cmd): Update.
  4957. 2014-07-24 Tom Tromey <tromey@redhat.com>
  4958. * stack.c (up_silently_base, down_silently_base): Make argument
  4959. const.
  4960. 2014-07-24 Tom Tromey <tromey@redhat.com>
  4961. * solib.c (solib_add): Make "pattern" const.
  4962. * solib.h (solib_add): Update.
  4963. 2014-07-24 Tom Tromey <tromey@redhat.com>
  4964. * remote.c (remote_serial_open, print_packet, putpkt)
  4965. (putpkt_binary): Constify.
  4966. * remote.h (putpkt): Update.
  4967. 2014-07-24 Tom Tromey <tromey@redhat.com>
  4968. * monitor.c (monitor_open): Make "args" const.
  4969. * monitor.h (monitor_open): Update.
  4970. 2014-07-24 Tom Tromey <tromey@redhat.com>
  4971. * maint.c (match_bfd_flags): Make "string" const.
  4972. (print_bfd_section_info): Remove casts.
  4973. (print_objfile_section_info): Make "string" const.
  4974. 2014-07-24 Tom Tromey <tromey@redhat.com>
  4975. * inf-child.c (inf_child_open_target): Make "arg" const.
  4976. * inf-child.h (inf_child_open_target): Update.
  4977. 2014-07-24 Tom Tromey <tromey@redhat.com>
  4978. * environ.c (unset_in_environ): Make "var" const.
  4979. * environ.h (unset_in_environ): Update.
  4980. 2014-07-24 Tom Tromey <tromey@redhat.com>
  4981. * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
  4982. Make "cmd" const.
  4983. (scan_filename_with_cleanup): Likewise.
  4984. (dump_memory_to_file, dump_value_to_file, restore_binary_file):
  4985. Make arguments const.
  4986. (restore_command): Update.
  4987. 2014-07-24 Pedro Alves <palves@redhat.com>
  4988. * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
  4989. 2014-07-24 Tom Tromey <tromey@redhat.com>
  4990. Gary Benson <gbenson@redhat.com>
  4991. * nat/linux-ptrace.c (additional_flags): New global.
  4992. (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
  4993. additional_flags; don't check GDBSERVER.
  4994. (linux_ptrace_set_additional_flags): New function.
  4995. * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
  4996. Declare.
  4997. * linux-nat.c (_initialize_linux_nat): Call
  4998. linux_ptrace_set_additional_flags.
  4999. 2014-07-24 Tom Tromey <tromey@redhat.com>
  5000. * make-target-delegates (munge_type, write_debugmethod): New
  5001. functions.
  5002. (debug_names): New global.
  5003. ($TARGET_DEBUG_PRINTER): New global.
  5004. (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
  5005. name.
  5006. Write debug methods. Generate init_debug_target.
  5007. * target-debug.h: New file.
  5008. * target-delegates.c: Rebuild.
  5009. * target.c: Include target-debug.h.
  5010. (debug_target): Hoist definition.
  5011. (target_kill, target_get_section_table, target_memory_map)
  5012. (target_flash_erase, target_flash_done, target_detach)
  5013. (target_disconnect, target_wait, target_resume)
  5014. (target_pass_signals, target_program_signals, target_follow_fork)
  5015. (target_mourn_inferior, target_search_memory)
  5016. (target_thread_address_space, target_close)
  5017. (target_find_new_threads, target_core_of_thread)
  5018. (target_verify_memory, target_insert_mask_watchpoint)
  5019. (target_remove_mask_watchpoint): Remove targetdebug code.
  5020. (debug_to_post_attach, debug_to_prepare_to_store)
  5021. (debug_to_files_info, debug_to_insert_breakpoint)
  5022. (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
  5023. (debug_to_region_ok_for_hw_watchpoint)
  5024. (debug_to_can_accel_watchpoint_condition)
  5025. (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
  5026. (debug_to_watchpoint_addr_within_range)
  5027. (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
  5028. (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
  5029. (debug_to_terminal_init, debug_to_terminal_inferior)
  5030. (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
  5031. (debug_to_terminal_save_ours, debug_to_terminal_info)
  5032. (debug_to_load, debug_to_post_startup_inferior)
  5033. (debug_to_insert_fork_catchpoint)
  5034. (debug_to_remove_fork_catchpoint)
  5035. (debug_to_insert_vfork_catchpoint)
  5036. (debug_to_remove_vfork_catchpoint)
  5037. (debug_to_insert_exec_catchpoint)
  5038. (debug_to_remove_exec_catchpoint, debug_to_has_exited)
  5039. (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
  5040. (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
  5041. (setup_target_debug): Call init_debug_target.
  5042. * target.h (TARGET_DEBUG_PRINTER): New macro.
  5043. (struct target_ops) <to_resume, to_wait, to_pass_signals,
  5044. to_program_signals>: Use TARGET_DEBUG_PRINTER.
  5045. 2014-07-24 Gary Benson <gbenson@redhat.com>
  5046. * exceptions.h (throw_vfatal): Renamed to...
  5047. (throw_vquit): New declaration.
  5048. (throw_quit): Likewise.
  5049. * exceptions.c (throw_vfatal): Renamed to...
  5050. (throw_vquit): New function.
  5051. (throw_quit): Likewise.
  5052. (throw_error): Call throw_verror rather than throw_it.
  5053. * utils.h (vfatal): Removed.
  5054. (fatal): Likewise.
  5055. * utils.c (vfatal): Removed.
  5056. (fatal): Likewise.
  5057. (internal_verror): Replaced call to fatal with call to throw_quit.
  5058. (quit): Replaced calls to fatal with calls to throw_quit.
  5059. 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
  5060. * microblaze-tdep.c (microblaze_fetch_instruction): Use of
  5061. target_read_code.
  5062. 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
  5063. * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
  5064. less than zero in conditional expression.
  5065. 2014-07-23 Tom Tromey <tromey@redhat.com>
  5066. * make-target-delegates ($ARGS_PART): Match trailing close paren.
  5067. ($INTRO_PART): Don't match whitespace.
  5068. ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
  5069. argument matching.
  5070. ($METHOD): Add $METHOD_TRAILER.
  5071. (trim): Rewrite.
  5072. (scan_target_h): New sub.
  5073. Change main loop not to collect state.
  5074. * target-delegates.c: Rebuild.
  5075. 2014-07-23 Gary Benson <gbenson@redhat.com>
  5076. * cp-support.c (gdb_demangle): Fix build on systems without
  5077. sigaltstack.
  5078. 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
  5079. * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
  5080. for reference entry value target data value.
  5081. 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
  5082. * stack.c (read_frame_arg): Verify value_optimized_out before calling
  5083. value_available_contents_eq.
  5084. 2014-07-22 Pedro Alves <palves@redhat.com>
  5085. * value.c (allocate_optimized_out_value): Don't mark value as
  5086. non-lazy.
  5087. 2014-07-22 Jiong Wang <jiong.wang@arm.com>
  5088. * MAINTAINERS (Write After Approval): Update my email address.
  5089. 2014-07-20 Doug Evans <dje@google.com>
  5090. PR server/17147
  5091. * remote.c (putpkt_binary): Add text to error message.
  5092. 2014-07-20 Yao Qi <yao@codesourcery.com>
  5093. * eval.c: Remove "Chill" from comments.
  5094. * gdbtypes.h: Likewise.
  5095. * symtab.h: Likewise.
  5096. 2014-07-20 Yao Qi <yao@codesourcery.com>
  5097. * std-operator.def: Update comments to TERNOP_SLICE.
  5098. 2014-07-20 Yao Qi <yao@codesourcery.com>
  5099. * std-operator.def: Remove BINOP_RANGE.
  5100. * breakpoint.c (watchpoint_exp_is_const): Update.
  5101. * expprint.c (dump_subexp_body_standard): Likewise.
  5102. * eval.c (init_array_element): Remove dead code.
  5103. (evaluate_subexp_standard): Likewise.
  5104. 2014-07-20 Yao Qi <yao@codesourcery.com>
  5105. * std-operator.def: Remove BINOP_IN.
  5106. * breakpoint.c (watchpoint_exp_is_const): Update.
  5107. * eval.c (evaluate_subexp_standard): Likewise.
  5108. * expprint.c (dump_subexp_body_standard): Likewise.
  5109. 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
  5110. * microblaze-tdep.c (microblaze_register_names): Add
  5111. the rshr and rslr register names.
  5112. (microblaze_gdbarch_init): Use of tdesc_has_registers.
  5113. Use of tdesc_find_feature. Use of tdesc_data_alloc.
  5114. Use of tdesc_numbered_register. Use of
  5115. microblaze_register_g_packet_guesses. Use of
  5116. tdesc_use_registers. Use of set_gdbarch_register_type.
  5117. (microblaze_register_g_packet_guesses): New.
  5118. * microblaze-tdep.h (microblaze_reg_num): Add
  5119. field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
  5120. MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
  5121. (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
  5122. * features/microblaze-core.xml: New file.
  5123. * features/microblaze-stack-protect.xml: New file.
  5124. * features/microblaze-with-stack-protect.c: New file.
  5125. * features/microblaze-with-stack-protect.xml: New file.
  5126. * features/microblaze.xml: New file.
  5127. * features/microblaze.c: New file.
  5128. * features/Makefile (microblaze-with-stack-protect): Add
  5129. microblaze-with-stack-protect microblaze and microblaze-expedite.
  5130. * regformats/microblaze-with-stack-protect.dat: New file.
  5131. * regformats/microblaze.dat: New file.
  5132. 2014-07-18 Tom Tromey <tromey@redhat.com>
  5133. * exec.c (exec_ops): Now static.
  5134. * exec.h (exec_ops): Don't declare.
  5135. 2014-07-18 Tom Tromey <tromey@redhat.com>
  5136. * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
  5137. to find_target_beneath.
  5138. * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
  5139. find_target_beneath.
  5140. (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
  5141. 2014-07-18 Tom Tromey <tromey@redhat.com>
  5142. PR gdb/17130:
  5143. * utils.c (quit): Use target_supports_terminal_ours.
  5144. * target.h (target_supports_terminal_ours): Declare.
  5145. * target.c (target_supports_delete_record): Don't check
  5146. to_delete_record against NULL.
  5147. (target_supports_terminal_ours): New function.
  5148. 2014-07-18 Tom Tromey <tromey@redhat.com>
  5149. PR gdb/17130:
  5150. * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
  5151. (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
  5152. (spu_search_memory, spu_mourn_inferior): Simplify delegation.
  5153. * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
  5154. * windows-nat.c (windows_xfer_partial): Always delegate.
  5155. * record-btrace.c (record_btrace_xfer_partial): Simplify
  5156. delegation.
  5157. (record_btrace_fetch_registers, record_btrace_store_registers)
  5158. (record_btrace_prepare_to_store, record_btrace_resume)
  5159. (record_btrace_wait, record_btrace_find_new_threads)
  5160. (record_btrace_thread_alive): Likewise.
  5161. * procfs.c (procfs_xfer_partial): Always delegate.
  5162. * corelow.c (core_xfer_partial): Always delegate.
  5163. * sol-thread.c (sol_find_new_threads): Simplify delegation.
  5164. 2014-07-18 Tom Tromey <tromey@redhat.com>
  5165. * exec.c (exec_make_note_section): Move earlier.
  5166. 2014-07-17 Doug Evans <dje@google.com>
  5167. PR gdb/17170
  5168. * maint.c (count_symtabs_and_blocks): Handle NULL
  5169. current_program_space.
  5170. (report_command_stats): Check global enabled flag in addition to
  5171. recorded enabled flag.
  5172. (make_command_stats_cleanup): Handle msg_type == 0, startup.
  5173. 2014-07-16 Pedro Alves <palves@redhat.com>
  5174. * linux-nat.c (kill_callback): Use kill_lwp, not kill.
  5175. 2014-07-16 Tom Tromey <tromey@redhat.com>
  5176. * target.h (struct target_ops) <to_delete_record>: Reformat
  5177. comment.
  5178. 2014-07-16 Tom Tromey <tromey@redhat.com>
  5179. * target-delegates.c: Rebuild.
  5180. 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
  5181. * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
  5182. (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
  5183. (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
  5184. (avr_pointer_to_address): Likewise.
  5185. (avr_address_class_type_flags): New function.
  5186. (avr_address_class_type_flags_to_name): Likewise.
  5187. (avr_address_class_name_to_type_flags): Likewise.
  5188. (avr_gdbarch_init): Set address_class_type_flags,
  5189. address_class_type_flags_to_name and
  5190. address_class_name_to_type_flags.
  5191. 2014-07-15 Pedro Alves <palves@redhat.com>
  5192. * linux-nat.c (kill_callback): Save errno and work with saved
  5193. copy.
  5194. 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
  5195. * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
  5196. 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
  5197. * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
  5198. breakpoint support correctly.
  5199. 2014-07-14 Pedro Alves <palves@redhat.com>
  5200. * utils.c (prompt_for_continue): Call target_terminal_ours.
  5201. 2014-07-14 Pedro Alves <palves@redhat.com>
  5202. * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
  5203. catch_errors. Don't re-enable stdin or notify observers where,
  5204. and rethrow error.
  5205. (fetch_inferior_event_wrapper): Delete.
  5206. 2014-07-14 Pedro Alves <palves@redhat.com>
  5207. PR gdb/17072
  5208. * top.c: Include "inf-loop.h".
  5209. (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
  5210. field.
  5211. (gdb_readline_wrapper_cleanup): Make the target async again, if it
  5212. was async before.
  5213. (gdb_readline_wrapper): Store whether the target is async, and
  5214. make it sync.
  5215. 2014-07-14 Pedro Alves <palves@redhat.com>
  5216. PR gdb/17072
  5217. * top.c (gdb_readline_wrapper_line): Tweak comment.
  5218. (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
  5219. the input handler callback.
  5220. 2014-07-14 Pedro Alves <palves@redhat.com>
  5221. PR gdb/17072
  5222. * main.c: Include event-top.h.
  5223. (handle_command_errors): New function.
  5224. (catch_command_errors, catch_command_errors_const): Use it.
  5225. 2014-07-14 Pedro Alves <palves@redhat.com>
  5226. * exceptions.c (catch_command_errors, catch_command_errors_const):
  5227. Moved to main.c.
  5228. * exceptions.h (catch_command_errors_ftype)
  5229. (catch_command_errors_const_ftype): Moved to main.c.
  5230. (catch_command_errors, catch_command_errors_const): Delete
  5231. declarations.
  5232. * main.c (catch_command_errors_ftype)
  5233. (catch_command_errors_const_ftype): Moved here from exceptions.h.
  5234. (catch_command_errors, catch_command_errors_const)): Moved here
  5235. from exceptions.c and make static.
  5236. 2014-07-14 Pedro Alves <palves@redhat.com>
  5237. * exceptions.c (print_any_exception): Delete.
  5238. (catch_exceptions_with_msg): Use exception_print instead of
  5239. print_any_exception.
  5240. (catch_errors): Use exception_fprintf instead of
  5241. print_any_exception.
  5242. (catch_command_errors, catch_command_errors_const): Use
  5243. exception_print instead of print_any_exception.
  5244. 2014-07-14 Pedro Alves <palves@redhat.com>
  5245. * infcall.c (run_inferior_call): Set 'sync_execution' while
  5246. running the inferior call.
  5247. 2014-07-14 Pedro Alves <palves@redhat.com>
  5248. * value.c (value_contents_equal): Delete function.
  5249. * value.h (value_contents_equal): Delete declaration.
  5250. 2014-07-14 Tom Tromey <tromey@redhat.com>
  5251. PR exp/17106:
  5252. * gdbtypes.c (is_dynamic_type_internal): New function, from
  5253. is_dynamic_type.
  5254. (is_dynamic_type): Rewrite.
  5255. (resolve_dynamic_union): Use resolve_dynamic_type_internal.
  5256. (resolve_dynamic_struct): Likewise.
  5257. (resolve_dynamic_type_internal): New function, from
  5258. resolve_dynamic_type.
  5259. (resolve_dynamic_type): Rewrite.
  5260. 2014-07-14 Tom Tromey <tromey@redhat.com>
  5261. * target.c (target_require_runnable): Also check record_stratum.
  5262. Update comment.
  5263. 2014-07-11 Yao Qi <yao@codesourcery.com>
  5264. * arm-tdep.c (thumb_analyze_prologue): Break the loop if
  5265. thumb_instruction_restores_sp return true.
  5266. 2014-07-11 Yao Qi <yao@codesourcery.com>
  5267. * arm-tdep.c (thumb_instruction_restores_sp): New function.
  5268. (thumb_in_function_epilogue_p): Call
  5269. thumb_instruction_restores_sp.
  5270. 2014-07-11 Yao Qi <yao@codesourcery.com>
  5271. * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
  5272. 'add sp, #imm'.
  5273. (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
  5274. 2014-07-11 Gary Benson <gbenson@redhat.com>
  5275. * amd64-linux-nat.c (gdbcore.h): Remove include.
  5276. (regset.h): Likewise.
  5277. (nat/linux-btrace.h): Likewise.
  5278. (btrace.h): Likewise.
  5279. (gdb_assert.h): Likewise.
  5280. (string.h): Likewise.
  5281. (sys/uio.h): Likewise.
  5282. (sys/debugreg.h): Likewise.
  5283. (sys/syscall.h): Likewise.
  5284. (sys/procfs.h): Likewise.
  5285. (sys/user.h): Likewise.
  5286. (asm/ptrace.h): Likewise.
  5287. (i386-nat.h): Likewise.
  5288. * i386-linux-nat.c (i386-nat.h): Likewise.
  5289. (regset.h): Likewise.
  5290. (target.h): Likewise.
  5291. (linux-nat.h): Likewise.
  5292. (nat/linux-btrace.h): Likewise.
  5293. (btrace.h): Likewise.
  5294. (gdb_assert.h): Likewise.
  5295. (string.h): Likewise.
  5296. (sys/uio.h): Likewise.
  5297. (sys/user.h): Likewise.
  5298. (sys/procfs.h): Likewise.
  5299. (sys/reg.h): Likewise.
  5300. (sys/debugreg.h): Likewise.
  5301. (ORIG_EAX): Remove definition.
  5302. 2014-07-11 Gary Benson <gbenson@redhat.com>
  5303. * i386-linux-nat.h: New file.
  5304. * x86-linux-nat.h: Likewise.
  5305. * x86-linux-nat.c: Likewise.
  5306. * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
  5307. * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
  5308. * config/i386/linux64.mh (NATDEPFILES): Likewise.
  5309. * amd64-linux-nat.c (x86-linux-nat.h): New include.
  5310. (PTRACE_GETREGSET): Now in x86-linux-nat.h.
  5311. (PTRACE_SETREGSET): Likewise.
  5312. (arch_lwp_info): Now in x86-linux-nat.c.
  5313. (have_ptrace_getregset): Now in x86-linux-nat.h.
  5314. (x86_linux_dr_get): Now in x86-linux-nat.c.
  5315. (x86_linux_dr_set): Likewise.
  5316. (x86_linux_dr_get_addr): Likewise.
  5317. (x86_linux_dr_get_control): Likewise.
  5318. (x86_linux_dr_get_status): Likewise.
  5319. (update_debug_registers_callback): Likewise.
  5320. (x86_linux_dr_set_control): Likewise.
  5321. (x86_linux_dr_set_addr): Likewise.
  5322. (x86_linux_prepare_to_resume): Likewise.
  5323. (x86_linux_new_thread): Likewise.
  5324. (x86_linux_new_fork): Likewise.
  5325. (x86_linux_get_thread_area): Likewise.
  5326. (super_post_startup_inferior): Likewise.
  5327. (x86_linux_child_post_startup_inferior): Likewise.
  5328. (AMD64_LINUX_USER64_CS): Likewise.
  5329. (AMD64_LINUX_X32_DS): Likewise.
  5330. (x86_linux_read_description): Likewise.
  5331. (x86_linux_enable_btrace): Likewise.
  5332. (x86_linux_disable_btrace): Likewise.
  5333. (x86_linux_teardown_btrace): Likewise.
  5334. (x86_linux_read_btrace): Likewise.
  5335. (x86_linux_create_target): Likewise.
  5336. (x86_linux_add_target): Likewise.
  5337. * i386-linux-nat.c (x86-linux-nat.h): New include.
  5338. (PTRACE_GETREGSET): Now in x86-linux-nat.h.
  5339. (PTRACE_SETREGSET): Likewise.
  5340. (arch_lwp_info): Now in x86-linux-nat.c.
  5341. (have_ptrace_getregset): Now in x86-linux-nat.h.
  5342. (x86_linux_dr_get): Now in x86-linux-nat.c.
  5343. (x86_linux_dr_set): Likewise.
  5344. (x86_linux_dr_get_addr): Likewise.
  5345. (x86_linux_dr_get_control): Likewise.
  5346. (x86_linux_dr_get_status): Likewise.
  5347. (update_debug_registers_callback): Likewise.
  5348. (x86_linux_dr_set_control): Likewise.
  5349. (x86_linux_dr_set_addr): Likewise.
  5350. (x86_linux_prepare_to_resume): Likewise.
  5351. (x86_linux_new_thread): Likewise.
  5352. (x86_linux_new_fork): Likewise.
  5353. (x86_linux_get_thread_area): Likewise.
  5354. (super_post_startup_inferior): Likewise.
  5355. (x86_linux_child_post_startup_inferior): Likewise.
  5356. (AMD64_LINUX_USER64_CS): Likewise.
  5357. (AMD64_LINUX_X32_DS): Likewise.
  5358. (x86_linux_read_description): Likewise.
  5359. (x86_linux_enable_btrace): Likewise.
  5360. (x86_linux_disable_btrace): Likewise.
  5361. (x86_linux_teardown_btrace): Likewise.
  5362. (x86_linux_read_btrace): Likewise.
  5363. (x86_linux_create_target): Likewise.
  5364. (x86_linux_add_target): Likewise.
  5365. 2014-07-11 Gary Benson <gbenson@redhat.com>
  5366. * amd64-linux-nat.c: Comment and whitespace changes.
  5367. * i386-linux-nat.c: Comment and whitespace changes.
  5368. 2014-07-11 Gary Benson <gbenson@redhat.com>
  5369. * amd64-linux-nat.c (x86_linux_create_target): New function.
  5370. (x86_linux_add_target): Likewise.
  5371. (_initialize_amd64_linux_nat): Delegate to the above new functions.
  5372. * i386-linux-nat.c (x86_linux_create_target): New function.
  5373. (x86_linux_add_target): Likewise.
  5374. (_initialize_i386_linux_nat): Delegate to the above new functions.
  5375. 2014-07-11 Gary Benson <gbenson@redhat.com>
  5376. * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
  5377. (ps_get_thread_area): Delegate to the above in 32-bit mode.
  5378. * i386-linux-nat.c (x86_linux_get_thread_area): New function.
  5379. (ps_get_thread_area): Delegate to the above.
  5380. 2014-07-11 Gary Benson <gbenson@redhat.com>
  5381. * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
  5382. x86_linux_read_description. All uses updated. amd64-specific
  5383. code conditionalized. Conditionalized i386-specific code added.
  5384. Redundant cast removed.
  5385. * i386-linux-nat.c (i386_linux_read_description): Renamed to
  5386. x86_linux_read_description. All uses updated. i386-specific
  5387. code conditionalized. Conditionalized amd64-specific code added.
  5388. One sizeof replaced with the actual type it is describing.
  5389. 2014-07-11 Gary Benson <gbenson@redhat.com>
  5390. * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
  5391. x86_linux_dr_get. All uses updated.
  5392. (amd64_linux_dr_set): Renamed to
  5393. x86_linux_dr_set. All uses updated.
  5394. (amd64_linux_dr_get_addr): Renamed to
  5395. x86_linux_dr_get_addr. All uses updated.
  5396. (amd64_linux_dr_get_control): Renamed to
  5397. x86_linux_dr_get_control. All uses updated.
  5398. (amd64_linux_dr_get_status): Renamed to
  5399. x86_linux_dr_get_status. All uses updated.
  5400. (amd64_linux_dr_set_control): Renamed to
  5401. x86_linux_dr_set_control. All uses updated.
  5402. (amd64_linux_dr_set_addr): Renamed to
  5403. x86_linux_dr_set_addr. All uses updated.
  5404. (amd64_linux_prepare_to_resume): Renamed to
  5405. x86_linux_prepare_to_resume. All uses updated.
  5406. (amd64_linux_new_thread): Renamed to
  5407. x86_linux_new_thread. All uses updated.
  5408. (amd64_linux_new_fork): Renamed to
  5409. x86_linux_new_fork. All uses updated.
  5410. (amd64_linux_child_post_startup_inferior): Renamed to
  5411. x86_linux_child_post_startup_inferior. All uses updated.
  5412. (amd64_linux_enable_btrace): Renamed to
  5413. x86_linux_enable_btrace. All uses updated.
  5414. (amd64_linux_disable_btrace): Renamed to
  5415. x86_linux_disable_btrace. All uses updated.
  5416. (amd64_linux_teardown_btrace): Renamed to
  5417. x86_linux_teardown_btrace. All uses updated.
  5418. (amd64_linux_read_btrace): Renamed to
  5419. x86_linux_read_btrace. All uses updated.
  5420. * i386-linux-nat.c (i386_linux_dr_get): Renamed to
  5421. x86_linux_dr_get. All uses updated.
  5422. (i386_linux_dr_set): Renamed to
  5423. x86_linux_dr_set. All uses updated.
  5424. (i386_linux_dr_get_addr): Renamed to
  5425. x86_linux_dr_get_addr. All uses updated.
  5426. (i386_linux_dr_get_control): Renamed to
  5427. x86_linux_dr_get_control. All uses updated.
  5428. (i386_linux_dr_get_status): Renamed to
  5429. x86_linux_dr_get_status. All uses updated.
  5430. (i386_linux_dr_set_control): Renamed to
  5431. x86_linux_dr_set_control. All uses updated.
  5432. (i386_linux_dr_set_addr): Renamed to
  5433. x86_linux_dr_set_addr. All uses updated.
  5434. (i386_linux_prepare_to_resume): Renamed to
  5435. x86_linux_prepare_to_resume. All uses updated.
  5436. (i386_linux_new_thread): Renamed to
  5437. x86_linux_new_thread. All uses updated.
  5438. (i386_linux_new_fork): Renamed to
  5439. x86_linux_new_fork. All uses updated.
  5440. (i386_linux_child_post_startup_inferior): Renamed to
  5441. x86_linux_child_post_startup_inferior. All uses updated.
  5442. (i386_linux_enable_btrace): Renamed to
  5443. x86_linux_enable_btrace. All uses updated.
  5444. (i386_linux_disable_btrace): Renamed to
  5445. x86_linux_disable_btrace. All uses updated.
  5446. (i386_linux_teardown_btrace): Renamed to
  5447. x86_linux_teardown_btrace. All uses updated.
  5448. (i386_linux_read_btrace): Renamed to
  5449. x86_linux_read_btrace. All uses updated.
  5450. 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
  5451. * remote.c (extended_remote_post_attach): New function.
  5452. (init_extended_remote_ops): Install it as to_post_attach method.
  5453. 2014-07-09 Pedro Alves <palves@redhat.com>
  5454. * infcmd.c (attach_command_post_wait): Don't call
  5455. target_terminal_inferior here.
  5456. (attach_command): Call it here instead.
  5457. 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
  5458. * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
  5459. field.
  5460. * c-varobj.c (c_is_path_expr_parent): New function, moved core
  5461. from varobj.c, with additional checks.
  5462. (c_varobj_ops): Fill in is_path_expr_parent field.
  5463. (cplus_varobj_ops): Fill in is_path_expr_parent field.
  5464. * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
  5465. field.
  5466. * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
  5467. ops method.
  5468. (varobj_default_is_path_expr_parent): New function.
  5469. * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
  5470. (varobj_default_is_path_expr_parent): Declare new function.
  5471. 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
  5472. * infcmd.c (finish_backward): Turn internal error into normal error.
  5473. 2014-07-07 Pedro Alves <palves@redhat.com>
  5474. PR gdb/17096
  5475. * remote.c (async_handle_remote_sigint)
  5476. (async_handle_remote_sigint_twice): Call
  5477. gdb_call_async_signal_handler instead of
  5478. mark_async_signal_handler.
  5479. 2014-07-07 Tom Tromey <tromey@redhat.com>
  5480. * target-delegates.c: Rebuild.
  5481. * target.c (target_info_record): Remove.
  5482. * record.c (info_record_command): Unconditionally call
  5483. to_info_record.
  5484. * target.h (struct target_ops) <to_info_record>: Use
  5485. TARGET_DEFAULT_IGNORE.
  5486. (target_info_record): Remove.
  5487. 2014-07-07 Tom Tromey <tromey@redhat.com>
  5488. * target.h (struct target_ops) <to_get_thread_local_address>: Use
  5489. TARGET_DEFAULT_NORETURN.
  5490. * target.c (generic_tls_error): New function.
  5491. (target_translate_tls_address): Don't search target stack.
  5492. * target-delegates.c: Rebuild.
  5493. * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
  5494. stack.
  5495. * linux-thread-db.c (thread_db_get_thread_local_address):
  5496. Unconditionally call beneath target.
  5497. 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
  5498. * cli/cli-logging.c (pop_output_files): Assign targerr to
  5499. gdb_stdtargerr.
  5500. 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
  5501. * MAINTAINERS (Write After Approval): Update my email address.
  5502. 2014-07-02 Gary Benson <gbenson@redhat.com>
  5503. * proc-service.c (ps_xfer_memory): Update comment.
  5504. (ps_pstop): Remove unused function.
  5505. (ps_pcontinue): Likewise.
  5506. (ps_lstop): Likewise.
  5507. (ps_lcontinue): Likewise.
  5508. (ps_lgetxregsize): Likewise.
  5509. (ps_lgetxregs): Likewise.
  5510. (ps_lsetxregs): Likewise.
  5511. (ps_plog): Likewise.
  5512. (ps_ptread): Likewise.
  5513. (ps_ptwrite): Likewise.
  5514. 2014-07-01 Mark Wielaard <mjw@redhat.com>
  5515. * dwarf2read.c (add_array_cv_type): New function.
  5516. (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
  5517. (read_tag_volatile_type): Likewise.
  5518. 2014-07-01 Tom Tromey <tromey@redhat.com>
  5519. * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
  5520. * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
  5521. * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
  5522. (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
  5523. * command.h (cmd_cfunc_ftype): Move earlier.
  5524. (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
  5525. (add_com, add_info): Use cmd_cfunc_ftype.
  5526. 2014-06-30 Tom Tromey <tromey@redhat.com>
  5527. * symtab.c (operator_chars): Make parameters and return type
  5528. const.
  5529. (file_matches): Make "files" const.
  5530. (struct search_symbols_data) <files>: Now const.
  5531. (search_symbols): Make "regexp" and "files" parameters const.
  5532. Update.
  5533. (symtab_symbol_info): Remove cast.
  5534. (rbreak_command): Update.
  5535. * symtab.h (search_symbols): Update.
  5536. 2014-06-27 Yao Qi <yao@codesourcery.com>
  5537. * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
  5538. Change parameter type to 'struct thread_info *'. Caller
  5539. updated.
  5540. * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
  5541. Update declaration.
  5542. * dummy-frame.c (struct dummy_frame_id): New.
  5543. (dummy_frame_id_eq): New function.
  5544. (struct dummy_frame) <id>: Change its type to 'struct
  5545. dummy_frame_id'.
  5546. (dummy_frame_push): Add parameter ptid and save it in
  5547. dummy_frame_id.
  5548. (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
  5549. inferior_ptid.
  5550. (pop_dummy_frame): Assert that the ptid of dummy_frame equals
  5551. to inferior_ptid.
  5552. (lookup_dummy_frame): Change parameter type to 'struct
  5553. dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
  5554. instead of frame_id_eq.
  5555. (dummy_frame_pop): Add parameter ptid. Callers updated.
  5556. Update comments. Compose dummy_frame_id and pass it to
  5557. lookup_dummy_frame.
  5558. (dummy_frame_discard): Add parameter ptid.
  5559. (dummy_frame_sniffer): Compose dummy_frame_id and call
  5560. dummy_frame_id_eq instead of frame_id_eq.
  5561. (fprint_dummy_frames): Print ptid.
  5562. * dummy-frame.h: Remove comments.
  5563. (dummy_frame_push): Add ptid in declaration.
  5564. (dummy_frame_pop, dummy_frame_discard): Likewise.
  5565. 2014-06-26 Tom Tromey <tromey@redhat.com>
  5566. * cli/cli-cmds.c (error_no_arg): Make "why" const.
  5567. * command.h (error_no_arg): Update.
  5568. 2014-06-26 Tom Tromey <tromey@redhat.com>
  5569. * cli/cli-setshow.c (do_set_command): Make "arg" const.
  5570. (do_show_command): Make "arg" const.
  5571. * cli/cli-setshow.h (do_set_command, do_show_command): Update.
  5572. 2014-06-26 Tom Tromey <tromey@redhat.com>
  5573. * record-full.c (record_full_get_bookmark): Make "args" const.
  5574. (record_full_goto_bookmark): Make "raw_bookmark" const.
  5575. * record.c (record_goto): New function.
  5576. (cmd_record_goto): Use it. Now static.
  5577. * record.h (record_goto): Declare.
  5578. (cmd_record_goto): Remove declaration.
  5579. * target-delegates.c: Rebuild.
  5580. * target.h (struct target_ops) <to_get_bookmark,
  5581. to_goto_bookmark>: Make parameter const.
  5582. 2014-06-26 Tom Tromey <tromey@redhat.com>
  5583. * defs.h (generic_load): Update.
  5584. * m32r-rom.c (m32r_load_gen): Make "filename" const.
  5585. * monitor.c (monitor_load): Make "args" const.
  5586. * remote-m32r-sdi.c (m32r_load): Make "args" const.
  5587. * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
  5588. const.
  5589. (mips_load): Make "file" const.
  5590. * remote-sim.c (gdbsim_load): Make "args" const.
  5591. * remote.c (remote_load): Make "name" const.
  5592. * symfile.c (generic_load): Make "args" const.
  5593. * target-delegates.c: Rebuild.
  5594. * target.c (target_load): Make "arg" const.
  5595. (debug_to_load): Make "args" const.
  5596. * target.h (struct target_ops) <to_load>: Make parameter const.
  5597. (target_load): Update.
  5598. 2014-06-26 Tom Tromey <tromey@redhat.com>
  5599. PR symtab/16902:
  5600. * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
  5601. (dwarf2_physname, read_partial_die)
  5602. (guess_partial_die_structure_name, fixup_partial_die)
  5603. (guess_full_die_structure_name, anonymous_struct_prefix)
  5604. (dwarf2_name): Use per-BFD obstack.
  5605. 2014-06-26 Yao Qi <yao@codesourcery.com>
  5606. * dummy-frame.c (dummy_frame_sniffer): Move local variables
  5607. dummyframe and this_id into inner block below.
  5608. 2014-06-26 Yao Qi <yao@codesourcery.com>
  5609. * infrun.c (_initialize_infrun): Replace "signal_program[0]"
  5610. with "signal_pass[0]" in the initialization of signal_pass.
  5611. 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
  5612. * record-btrace.c (record_btrace_generating_corefile)
  5613. (record_btrace_prepare_to_generate_core)
  5614. (record_btrace_done_generating_core): New.
  5615. (record_btrace_xfer_partial, record_btrace_fetch_registers)
  5616. (record_btrace_store_registers, record_btrace_prepare_to_store):
  5617. Forward request when generating a core file.
  5618. (record_btrace_open): Set record_btrace_generating_corefile to zero.
  5619. (init_record_btrace_ops): Set to_prepare_to_generate_core and
  5620. to_done_generating_core.
  5621. 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
  5622. * target.h (target_ops) <to_prepare_to_generate_core>
  5623. <to_done_generating_core>: New.
  5624. (target_prepare_to_generate_core, target_done_generating_core): New.
  5625. * target.c (target_prepare_to_generate_core)
  5626. (target_done_generating_core): New.
  5627. * target-delegates.c: Regenerate.
  5628. * gcore.c: (write_gcore_file): Rename to ...
  5629. (write_gcore_file_1): ...this.
  5630. (write_gcore_file): Call target_prepare_to_generate_core
  5631. and target_done_generating_core.
  5632. 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
  5633. * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
  5634. * gcore.c (write_gcore_file): Free memory returned from
  5635. make_corefile_notes.
  5636. * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
  5637. * procfs.c (procfs_make_note_section): Remove make_cleanup call.
  5638. 2014-06-24 Yao Qi <yao@codesourcery.com>
  5639. * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
  5640. (arm_linux_init_abi): Set skip_trampoline_code with
  5641. gdbarch_skip_trampoline_code instead of
  5642. find_solib_trampoline_target.
  5643. 2014-06-24 Yao Qi <yao@codesourcery.com>
  5644. * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
  5645. arm_skip_bx_reg returns non-zero.
  5646. 2014-06-24 Yao Qi <yao@codesourcery.com>
  5647. * arm-tdep.c (arm_skip_bx_reg): New function.
  5648. (arm_skip_stub): Call arm_skip_bx_reg.
  5649. 2014-06-23 Don Breazeal <donb@codesourcery.com>
  5650. * MAINTAINERS: Add myself as write-after-approval maintainer.
  5651. 2014-06-23 Pedro Alves <palves@redhat.com>
  5652. * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
  5653. DR_CONTROL before setting DR0..DR3.
  5654. * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
  5655. * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
  5656. bits of DR_CONTROL related to the debug register slot being
  5657. disabled. If all slots are vacant, clear local slowdown as well,
  5658. and assert DR_CONTROL is 0.
  5659. 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
  5660. * python/lib/gdb/command/xmethods.py
  5661. (get_method_matchers_in_loci): Lookup xmethod matchers in the
  5662. current progspace only if the string "progspace" matches LOCUS_RE.
  5663. 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
  5664. Fix --with-system-readline with readline-6.3 patch 5.
  5665. * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
  5666. (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
  5667. types.
  5668. 2014-06-20 Tom Tromey <tromey@redhat.com>
  5669. * dwarf2read.c (dw2_get_real_path): Use correct type in
  5670. OBSTACK_CALLOC.
  5671. * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
  5672. 2014-06-20 Gary Benson <gbenson@redhat.com>
  5673. * common/gdb_thread_db.h: Moved to nat. All includes updated.
  5674. * common/glibc_thread_db.h: Likewise.
  5675. * common/i386-cpuid.h: Likewise.
  5676. * common/i386-gcc-cpuid.h: Likewise.
  5677. * common/linux-btrace.h: Likewise.
  5678. * common/linux-osdata.h: Likewise.
  5679. * common/linux-procfs.h: Likewise.
  5680. * common/linux-ptrace.h: Likewise.
  5681. * common/mips-linux-watch.h: Likewise.
  5682. * common/linux-btrace.c: Moved to nat.
  5683. * common/linux-osdata.c: Likewise.
  5684. * common/linux-procfs.c: Likewise.
  5685. * common/linux-ptrace.c: Likewise.
  5686. * common/mips-linux-watch.c: Likewise.
  5687. * nat/gdb_thread_db.h: Moved from common.
  5688. * nat/glibc_thread_db.h: Likewise.
  5689. * nat/i386-cpuid.h: Likewise.
  5690. * nat/i386-gcc-cpuid.h: Likewise.
  5691. * nat/linux-btrace.c: Likewise.
  5692. * nat/linux-btrace.h: Likewise.
  5693. * nat/linux-osdata.c: Likewise.
  5694. * nat/linux-osdata.h: Likewise.
  5695. * nat/linux-procfs.c: Likewise.
  5696. * nat/linux-procfs.h: Likewise.
  5697. * nat/linux-ptrace.c: Likewise.
  5698. * nat/linux-ptrace.h: Likewise.
  5699. * nat/mips-linux-watch.c: Likewise.
  5700. * nat/mips-linux-watch.h: Likewise.
  5701. * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
  5702. (object file files): Reordered.
  5703. * copyright.py (EXCLUDE_LIST): Reflect new location
  5704. of glibc_thread_db.h.
  5705. 2014-06-20 Gary Benson <gbenson@redhat.com>
  5706. * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
  5707. (i386_dr_low_type): Moved to nat/i386-dregs.h.
  5708. (i386_dr_low): Likewise.
  5709. (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
  5710. (i386_dr_low_set_addr): Likewise.
  5711. (i386_dr_low_get_addr): Likewise.
  5712. (i386_dr_low_can_set_control): Likewise.
  5713. (i386_dr_low_set_control): Likewise.
  5714. (i386_dr_low_get_control): Likewise.
  5715. (i386_dr_low_get_status): Likewise.
  5716. (i386_get_debug_register_length): Likewise.
  5717. * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
  5718. (i386_dr_low): Likewise.
  5719. * nat/i386-dregs.c (i386-low.h): Remove include.
  5720. (i386-nat.h): Likewise.
  5721. (nat/i386-dregs.h): New include.
  5722. (i386_dr_low_can_set_addr): Moved from i386-nat.h.
  5723. (i386_dr_low_set_addr): Likewise.
  5724. (i386_dr_low_get_addr): Likewise.
  5725. (i386_dr_low_can_set_control): Likewise.
  5726. (i386_dr_low_set_control): Likewise.
  5727. (i386_dr_low_get_control): Likewise.
  5728. (i386_dr_low_get_status): Likewise.
  5729. (i386_get_debug_register_length): Likewise.
  5730. (debug_hw_points): Likewise.
  5731. 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
  5732. * Makefile.in (SFILES): Add d-exp.y.
  5733. (YYFILES): Add d-exp.c.
  5734. (YYOBJ): Add d-exp.o.
  5735. (local-maintainer-clean): Delete d-exp.c.
  5736. * d-exp.y: New file.
  5737. * d-lang.h (d_parse): New declaration.
  5738. (d_error): New declaration.
  5739. * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
  5740. Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
  5741. PREC_ORDER operators.
  5742. (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
  5743. 2014-06-19 Yao Qi <yao@codesourcery.com>
  5744. * gdbthread.h (any_running): Remove the declaration.
  5745. * thread.c (any_running): Remove.
  5746. 2014-06-19 Yao Qi <yao@codesourcery.com>
  5747. * gdbthread.h (struct thread_info) <state>: Change its type to
  5748. 'enum thread_state'. Update comments.
  5749. 2014-06-19 Pedro Alves <palves@redhat.com>
  5750. * gdbthread.h (ALL_THREADS): Delete.
  5751. (ALL_NON_EXITED_THREADS): New macro.
  5752. * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
  5753. instead of ALL_THREADS.
  5754. * infrun.c (find_thread_needs_step_over)
  5755. (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
  5756. instead of ALL_THREADS.
  5757. * record-btrace.c (record_btrace_open)
  5758. (record_btrace_stop_recording, record_btrace_close)
  5759. (record_btrace_is_replaying, record_btrace_resume)
  5760. (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
  5761. * remote.c (append_pending_thread_resumptions): Likewise.
  5762. * thread.c (thread_apply_all_command): Likewise.
  5763. 2014-06-19 Gary Benson <gbenson@redhat.com>
  5764. * i386-nat.c (i386_stopped_by_watchpoint):
  5765. Use i386_dr_stopped_by_watchpoint.
  5766. (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
  5767. (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
  5768. 2014-06-19 Gary Benson <gbenson@redhat.com>
  5769. * nat/i386-dregs.c: New file.
  5770. * Makefile.in (i386-dregs.o): New rule.
  5771. * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
  5772. * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
  5773. * config/i386/darwin.mh (NATDEPFILES): Likewise.
  5774. * config/i386/fbsd.mh (NATDEPFILES): Likewise.
  5775. * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
  5776. * config/i386/go32.mh (NATDEPFILES): Likewise.
  5777. * config/i386/linux.mh (NATDEPFILES): Likewise.
  5778. * config/i386/linux64.mh (NATDEPFILES): Likewise.
  5779. * config/i386/mingw.mh (NATDEPFILES): Likewise.
  5780. * config/i386/mingw64.mh (NATDEPFILES): Likewise.
  5781. * i386-nat.h (debug_hw_points): New declaration.
  5782. * i386-nat.c (breakpoint.h): Remove include.
  5783. (command.h): Likewise.
  5784. (target.h): Likewise.
  5785. (gdb_assert.h): Likewise.
  5786. (debug_hw_points): Made nonstatic.
  5787. (debug_printf): Now in i386-dregs.c.
  5788. (TARGET_HAS_DR_LEN_8): Likewise.
  5789. (DR_CONTROL_SHIFT): Likewise.
  5790. (DR_CONTROL_SIZE): Likewise.
  5791. (DR_RW_EXECUTE): Likewise.
  5792. (DR_RW_WRITE): Likewise.
  5793. (DR_RW_READ): Likewise.
  5794. (DR_RW_IORW): Likewise.
  5795. (DR_LEN_1): Likewise.
  5796. (DR_LEN_2): Likewise.
  5797. (DR_LEN_4): Likewise.
  5798. (DR_LEN_8): Likewise.
  5799. (DR_LOCAL_ENABLE_SHIFT): Likewise.
  5800. (DR_GLOBAL_ENABLE_SHIFT): Likewise.
  5801. (DR_ENABLE_SIZE): Likewise.
  5802. (DR_LOCAL_SLOWDOWN): Likewise.
  5803. (DR_GLOBAL_SLOWDOWN): Likewise.
  5804. (DR_CONTROL_RESERVED): Likewise.
  5805. (I386_DR_CONTROL_MASK): Likewise.
  5806. (I386_DR_VACANT): Likewise.
  5807. (I386_DR_LOCAL_ENABLE): Likewise.
  5808. (I386_DR_GLOBAL_ENABLE): Likewise.
  5809. (I386_DR_DISABLE): Likewise.
  5810. (I386_DR_SET_RW_LEN): Likewise.
  5811. (I386_DR_GET_RW_LEN): Likewise.
  5812. (I386_DR_WATCH_HIT): Likewise.
  5813. (i386_wp_op_t): Likewise.
  5814. (i386_show_dr): Likewise.
  5815. (i386_length_and_rw_bits): Likewise.
  5816. (i386_insert_aligned_watchpoint): Likewise.
  5817. (i386_remove_aligned_watchpoint): Likewise.
  5818. (i386_handle_nonaligned_watchpoint): Likewise.
  5819. (i386_update_inferior_debug_regs): Likewise.
  5820. (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
  5821. (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
  5822. (i386_region_ok_for_watchpoint):
  5823. Use i386_dr_region_ok_for_watchpoint.
  5824. (i386_stopped_data_address): Use i386_dr_stopped_data_address.
  5825. 2014-06-19 Gary Benson <gbenson@redhat.com>
  5826. * i386-nat.c (i386_insert_hw_breakpoint): Use
  5827. i386_insert_watchpoint.
  5828. (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
  5829. 2014-06-19 Gary Benson <gbenson@redhat.com>
  5830. * i386-nat.c (i386_dr_show): Renamed to
  5831. i386_show_dr and made static. All uses updated.
  5832. (i386_dr_length_and_rw_bits): Renamed to
  5833. i386_length_and_rw_bits and made static.
  5834. All uses updated.
  5835. (i386_dr_insert_aligned_watchpoint): Renamed to
  5836. i386_insert_aligned_watchpoint and made static.
  5837. All uses updated.
  5838. (i386_dr_remove_aligned_watchpoint): Renamed to
  5839. i386_remove_aligned_watchpoint and made static.
  5840. All uses updated.
  5841. (i386_dr_update_inferior_debug_regs): Renamed to
  5842. i386_update_inferior_debug_regs and made static.
  5843. All uses updated.
  5844. * nat/i386-dregs.h (i386_dr_show): Removed.
  5845. (i386_dr_length_and_rw_bits): Likewise.
  5846. (i386_dr_insert_aligned_watchpoint): Likewise.
  5847. (i386_dr_remove_aligned_watchpoint): Likewise.
  5848. (i386_dr_update_inferior_debug_regs): Likewise.
  5849. 2014-06-19 Gary Benson <gbenson@redhat.com>
  5850. * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
  5851. * configure: Regenerate.
  5852. * config.in: Likewise.
  5853. * main.c (signal.h): New include.
  5854. (setup_alternate_signal_stack): New function.
  5855. (captured_main): Call the above.
  5856. * cp-support.c (signal.h): New include.
  5857. (catch_demangler_crashes): New flag.
  5858. (SIGJMP_BUF): New define.
  5859. (SIGSETJMP): Likewise.
  5860. (SIGLONGJMP): Likewise.
  5861. (gdb_demangle_jmp_buf): New static global.
  5862. (gdb_demangle_attempt_core_dump): Likewise.
  5863. (gdb_demangle_signal_handler): New function.
  5864. (gdb_demangle): If catch_demangler_crashes is set, install the
  5865. above signal handler before calling bfd_demangle, and restore
  5866. the original signal handler afterwards. Display the offending
  5867. symbol and call demangler_warning the first time a segmentation
  5868. fault is caught.
  5869. (_initialize_cp_support): New maint set/show command.
  5870. 2014-06-19 Gary Benson <gbenson@redhat.com>
  5871. * utils.h (resource_limit_kind): New enum.
  5872. (can_dump_core): New declaration.
  5873. (warn_cant_dump_core): Likewise.
  5874. (dump_core): Likewise.
  5875. * utils.c (dump_core): Made nonstatic. Added new
  5876. parameter "limit_kind".
  5877. (can_dump_core): Made nonstatic. Moved printing code to...
  5878. (warn_cant_dump_core): New function.
  5879. (can_dump_core_warn): Likewise.
  5880. (internal_vproblem): Replace calls to can_dump_core with
  5881. calls to can_dump_core_warn. Supply new argument to each.
  5882. 2014-06-19 Gary Benson <gbenson@redhat.com>
  5883. * utils.h (demangler_vwarning): New declaration.
  5884. (demangler_warning): Likewise.
  5885. * utils.c (struct internal_problem)
  5886. <user_settable_should_quit>: New field.
  5887. <user_settable_should_dump_core>: Likewise
  5888. (internal_error_problem): Add values for above new fields.
  5889. (internal_warning_problem): Likewise.
  5890. (demangler_warning_problem): New static global.
  5891. (demangler_vwarning): New function.
  5892. (demangler_warning): Likewise.
  5893. (add_internal_problem_command): Selectively add commands.
  5894. (_initialize_utils): New internal problem command.
  5895. * maint.c (maintenance_demangler_warning): New function.
  5896. (_initialize_maint_cmds): New command.
  5897. 2014-06-18 Tom Tromey <tromey@redhat.com>
  5898. * f-valprint.c (info_common_command_for_block): Update.
  5899. * symtab.h (struct general_symbol_info) <common_block>: Now
  5900. const.
  5901. 2014-06-18 Tom Tromey <tromey@redhat.com>
  5902. * symtab.h (struct symtab) <blockvector>: Now const.
  5903. * ada-lang.c (ada_add_global_exceptions): Update.
  5904. * buildsym.c (augment_type_symtab): Update.
  5905. * dwarf2read.c (dw2_lookup_symbol): Update.
  5906. * jit.c (finalize_symtab): Update.
  5907. * jv-lang.c (add_class_symtab_symbol): Update.
  5908. * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
  5909. Update.
  5910. * objfiles.c (objfile_relocate1): Update.
  5911. * psymtab.c (lookup_symbol_aux_psymtabs)
  5912. (maintenance_check_psymtabs): Update.
  5913. * python/py-symtab.c (stpy_global_block, stpy_static_block):
  5914. Update.
  5915. * spu-tdep.c (spu_catch_start): Update.
  5916. * symmisc.c (dump_symtab_1): Update.
  5917. * symtab.c (lookup_global_symbol_from_objfile)
  5918. (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
  5919. (basic_lookup_transparent_type_quick)
  5920. (basic_lookup_transparent_type, find_pc_sect_symtab)
  5921. (find_pc_sect_line, search_symbols): Update.
  5922. * block.c (find_block_in_blockvector): Make "bl" const.
  5923. (blockvector_for_pc_sect, blockvector_for_pc): Make return type
  5924. const.
  5925. (blockvector_contains_pc): Make "bv" const.
  5926. (block_for_pc_sect): Update.
  5927. * block.h (blockvector_for_pc, blockvector_for_pc_sect)
  5928. (blockvector_contains_pc): Update.
  5929. * breakpoint.c (resolve_sal_pc): Update.
  5930. * inline-frame.c (block_starting_point_at): Update.
  5931. 2014-06-18 Tom Tromey <tromey@redhat.com>
  5932. * completer.c (complete_line): Make "line_buffer" const.
  5933. * completer.h (complete_line): Update.
  5934. 2014-06-18 Tom Tromey <tromey@redhat.com>
  5935. * symtab.c (add_macro_name): Remove unneeded cast.
  5936. 2014-06-18 Tom Tromey <tromey@redhat.com>
  5937. * cli/cli-setshow.h (parse_cli_boolean_value): Update.
  5938. * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
  5939. 2014-06-18 Tom Tromey <tromey@redhat.com>
  5940. * probe.c (info_probes_for_ops): Make "arg" const.
  5941. * probe.h (info_probes_for_ops): Update.
  5942. 2014-06-18 Tom Tromey <tromey@redhat.com>
  5943. * varobj.c (varobj_create): Update.
  5944. * valops.c (value_of_this): Update.
  5945. * tracepoint.c (add_local_symbols, scope_info): Update.
  5946. * symtab.h (struct general_symbol_info) <block>: Now const.
  5947. * symtab.c (skip_prologue_sal)
  5948. (default_make_symbol_completion_list_break_on)
  5949. (skip_prologue_using_sal): Update.
  5950. * stack.h (iterate_over_block_locals)
  5951. (iterate_over_block_local_vars): Update.
  5952. * stack.c (print_frame_args): Update.
  5953. (iterate_over_block_locals, iterate_over_block_local_vars): Make
  5954. parameter const.
  5955. (get_selected_block): Make return type const.
  5956. * python/py-frame.c (frapy_block): Update.
  5957. * python/py-block.c (gdbpy_block_for_pc): Update.
  5958. * p-exp.y (%union) <bval>: Now const.
  5959. * mi/mi-cmd-stack.c (list_args_or_locals): Update.
  5960. * mdebugread.c (mylookup_symbol, parse_procedure): Update.
  5961. * m2-exp.y (%union) <bval>: Now const.
  5962. * linespec.c (get_current_search_block): Make return type const.
  5963. (create_sals_line_offset, find_label_symbols): Update.
  5964. * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
  5965. Update.
  5966. (block_starting_point_at): Make "block" const.
  5967. * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
  5968. (check_exception_resume): Update.
  5969. * guile/scm-frame.c (gdbscm_frame_block): Update.
  5970. * guile/scm-block.c (gdbscm_lookup_block): Update.
  5971. * frame.h (get_frame_block): Update.
  5972. (get_selected_block): Make return type const.
  5973. * frame.c (frame_id_inner): Update.
  5974. * f-valprint.c (info_common_command_for_block)
  5975. (info_common_command): Update.
  5976. * dwarf2loc.c (dwarf2_find_location_expression)
  5977. (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
  5978. (locexpr_describe_location_piece): Update.
  5979. * c-exp.y (%union) <bval>: Now const.
  5980. * breakpoint.c (resolve_sal_pc): Update.
  5981. * blockframe.c (get_frame_block):Make return type const.
  5982. (get_pc_function_start, get_frame_function, find_pc_sect_function)
  5983. (block_innermost_frame): Update.
  5984. * block.h (blockvector_for_pc, blockvector_for_pc_sect)
  5985. (block_for_pc, block_for_pc_sect): Update.
  5986. * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
  5987. 'pblock' const.
  5988. (block_for_pc_sect, block_for_pc): Make return type const.
  5989. * ax-gdb.c (gen_expr): Update.
  5990. * alpha-mdebug-tdep.c (find_proc_desc): Update.
  5991. * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
  5992. (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
  5993. (ada_read_var_value): Update.
  5994. * ada-exp.y (struct name_info) <block>: Now const.
  5995. (%union): Likewise.
  5996. (block_lookup): Constify.
  5997. 2014-06-18 Gary Benson <gbenson@redhat.com>
  5998. * nat/i386-dregs.h: New file.
  5999. * Makefile.in (HFILES_NO_SRCDIR): Add the above.
  6000. * i386-nat.h (i386-dregs.h): New include.
  6001. (DR_FIRSTADDR): Now in i386-dregs.h.
  6002. (DR_LASTADDR): Likewise.
  6003. (DR_NADDR): Likewise.
  6004. (DR_STATUS): Likewise.
  6005. (DR_CONTROL): Likewise.
  6006. (i386_debug_reg_state): Likewise.
  6007. * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
  6008. 2014-06-18 Don Breazeal <donb@codesourcery.com>
  6009. * breakpoint.c (set_longjmp_breakpoint): Call
  6010. momentary_breakpoint_from_master with additional argument.
  6011. (set_longjmp_breakpoint_for_call_dummy): Call
  6012. momentary_breakpoint_from_master with additional argument.
  6013. (set_std_terminate_breakpoint): Call
  6014. momentary_breakpoint_from_master with additional argument.
  6015. (momentary_breakpoint_from_master): Add argument to function
  6016. definition and use it to initialize structure member flag.
  6017. (clone_momentary_breakpoint): Call
  6018. momentary_breakpoint_from_master with additional argument.
  6019. * infrun.c (follow_inferior_reset_breakpoints): Clear structure
  6020. member flags set in momentary_breakpoint_from_master.
  6021. 2014-06-18 Gary Benson <gbenson@redhat.com>
  6022. * i386-nat.c (i386_show_dr): Renamed to
  6023. i386_dr_show and made nonstatic. All uses updated.
  6024. (i386_length_and_rw_bits): Renamed to
  6025. i386_dr_length_and_rw_bits and made nonstatic.
  6026. All uses updated.
  6027. (i386_insert_aligned_watchpoint): Renamed to
  6028. i386_dr_insert_aligned_watchpoint and made nonstatic.
  6029. All uses updated.
  6030. (i386_remove_aligned_watchpoint): Renamed to
  6031. i386_dr_remove_aligned_watchpoint and made nonstatic.
  6032. All uses updated.
  6033. (i386_update_inferior_debug_regs): Renamed to
  6034. i386_dr_update_inferior_debug_regs and made nonstatic.
  6035. All uses updated.
  6036. 2014-06-18 Gary Benson <gbenson@redhat.com>
  6037. * i386-nat.c (i386_dr_low_can_set_addr): New macro.
  6038. (i386_dr_low_can_set_control): Likewise.
  6039. (i386_dr_low_set_addr): Likewise.
  6040. (i386_dr_low_set_control): Likewise.
  6041. (i386_dr_low_get_addr): Likewise.
  6042. (i386_dr_low_get_status): Likewise.
  6043. (i386_dr_low_get_control): Likewise.
  6044. (i386_insert_aligned_watchpoint): Use new macros.
  6045. (i386_update_inferior_debug_regs): Likewise.
  6046. (i386_stopped_data_address): Likewise.
  6047. 2014-06-18 Gary Benson <gbenson@redhat.com>
  6048. * i386-nat.c (i386_update_inferior_debug_regs) <state>:
  6049. New parameter. All uses updated.
  6050. 2014-06-18 Gary Benson <gbenson@redhat.com>
  6051. * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
  6052. All uses updated.
  6053. 2014-06-18 Gary Benson <gbenson@redhat.com>
  6054. * i386-nat.c (debug_printf): New macro.
  6055. (i386_get_debug_register_length): Likewise.
  6056. (TARGET_HAS_DR_LEN_8): Use above macro.
  6057. (i386_show_dr): Use debug_printf instead of puts_unfiltered
  6058. and printf_unfiltered. Use phex to format values.
  6059. 2014-06-18 Gary Benson <gbenson@redhat.com>
  6060. * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
  6061. Make const.
  6062. 2014-06-18 Gary Benson <gbenson@redhat.com>
  6063. * i386-nat.c: Comment changes.
  6064. 2014-06-18 Gary Benson <gbenson@redhat.com>
  6065. * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
  6066. 2014-06-18 Gary Benson <gbenson@redhat.com>
  6067. * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
  6068. (i386_insert_aligned_watchpoint): Likewise.
  6069. (i386_remove_aligned_watchpoint): Likewise.
  6070. (i386_handle_nonaligned_watchpoint): Likewise.
  6071. 2014-06-18 Gary Benson <gbenson@redhat.com>
  6072. * i386-nat.c: Whitespace changes.
  6073. 2014-06-17 Samuel Bronson <naesten@gmail.com>
  6074. * MAINTAINERS: Update Roland McGrath's email address.
  6075. Thanks to Sergio Durigan Junior for pointing out that he left
  6076. Red Hat a while ago, and giving me a current address.
  6077. 2014-06-17 Tom Tromey <tromey@redhat.com>
  6078. * utils.h (savestring): Remove declaration.
  6079. 2014-06-17 Tom Tromey <tromey@redhat.com>
  6080. * remote.c (extended_remote_run): Use make_cleanup_freeargv.
  6081. 2014-06-16 Keith Seitz <keiths@redhat.com>
  6082. PR mi/15863
  6083. * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
  6084. to update the varobj if inferior_ptid is null_ptid.
  6085. 2014-06-16 Tom Tromey <tromey@redhat.com>
  6086. * target.h (struct target_ops) <to_info_proc>: Make parameter
  6087. const.
  6088. (target_info_proc): Update.
  6089. * target.c (target_info_proc): Make "args" const.
  6090. * procfs.c (procfs_info_proc): Update.
  6091. * linux-tdep.c (linux_info_proc): Update.
  6092. (linux_core_info_proc_mappings): Make "args" const.
  6093. (linux_core_info_proc): Update.
  6094. * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
  6095. * gdbarch.c: Rebuild.
  6096. * gdbarch.h: Rebuild.
  6097. * corelow.c (core_info_proc): Update.
  6098. 2014-06-16 Tom Tromey <tromey@redhat.com>
  6099. * target.h (struct target_ops) <to_disconnect>: Make parameter
  6100. const.
  6101. (target_disconnect): Update.
  6102. * target.c (target_disconnect): Make "args" const.
  6103. * target-delegates.c: Rebuild.
  6104. * remote.c (remote_disconnect): Update.
  6105. * record.h (record_disconnect): Update.
  6106. * record.c (record_disconnect): Update.
  6107. * inf-child.c (inf_child_disconnect): Update.
  6108. 2014-06-16 Tom Tromey <tromey@redhat.com>
  6109. * target.h (struct target_ops) <to_rcmd>: Make "command" const.
  6110. * target.c (debug_to_rcmd, default_rcmd): Update.
  6111. * target-delegates.c: Rebuild.
  6112. * remote.c (remote_rcmd): Update.
  6113. * monitor.c (monitor_rcmd): Update.
  6114. 2014-06-16 Pedro Alves <palves@redhat.com>
  6115. * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
  6116. (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
  6117. have OBJF_SHARED set.
  6118. * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
  6119. (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
  6120. instead of OBJF_USERLOADED.
  6121. * objfiles.h (OBJF_SHARED): Update comment.
  6122. (userloaded_objfile_contains_address_p): Rename to ...
  6123. (shared_objfile_contains_address_p): ... this, and update
  6124. comments.
  6125. * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
  6126. new objfile.
  6127. (remove_symbol_file_command): Skip objfiles that don't have
  6128. OBJF_SHARED set.
  6129. 2014-06-16 Tom Tromey <tromey@redhat.com>
  6130. * minsyms.h (prim_record_minimal_symbol)
  6131. (prim_record_minimal_symbol_and_info): Update comments.
  6132. 2014-06-14 Eli Zaretskii <eliz@gnu.org>
  6133. * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
  6134. or --without-guile, according to how GDB was built.
  6135. 2014-06-13 Tom Tromey <tromey@redhat.com>
  6136. * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
  6137. to help_list.
  6138. * guile/guile.c (info_guile_command): Pass all_commands, not -1,
  6139. to help_list.
  6140. * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
  6141. help_list.
  6142. * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
  6143. help_list.Pass all_commands, not -1, to help_list.
  6144. * cli/cli-dump.c (dump_command, append_command)
  6145. (srec_dump_command, ihex_dump_command, tekhex_dump_command)
  6146. (binary_dump_command, binary_append_command): Pass all_commands,
  6147. not -1, to help_list.
  6148. * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
  6149. -1, to help_list.
  6150. * valprint.c (set_print, set_print_raw): Pass all_commands, not
  6151. -1, to help_list.
  6152. * typeprint.c (set_print_type): Pass all_commands, not -1, to
  6153. help_list.
  6154. * top.c (set_history): Pass all_commands, not -1, to help_list.
  6155. * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
  6156. all_commands, not -1, to help_list.
  6157. * symfile.c (overlay_command): Pass all_commands, not -1, to
  6158. help_list.
  6159. * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
  6160. help_list.
  6161. * serial.c (serial_set_cmd): Pass all_commands, not -1, to
  6162. help_list.
  6163. * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
  6164. -1, to help_list.
  6165. * remote.c (remote_command, set_remote_cmd): Pass all_commands,
  6166. not -1, to help_list.
  6167. * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
  6168. not -1, to help_list.
  6169. * maint.c (maintenance_command, maintenance_info_command)
  6170. (maintenance_print_command, maintenance_set_cmd): Pass
  6171. all_commands, not -1, to help_list.
  6172. * macrocmd.c (macro_command): Pass all_commands, not -1, to
  6173. help_list.
  6174. * language.c (set_check): Pass all_commands, not -1, to help_list.
  6175. * infcmd.c (unset_command): Pass all_commands, not -1, to
  6176. help_list.
  6177. * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
  6178. help_list.
  6179. * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
  6180. help_list.
  6181. * dcache.c (set_dcache_command): Pass all_commands, not -1, to
  6182. help_list.
  6183. * breakpoint.c (save_command): Pass all_commands, not -1, to
  6184. help_list.
  6185. * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
  6186. all_commands, not -1, to help_list.
  6187. 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
  6188. * regcache.c (struct register_to_invalidate): New structure.
  6189. (do_register_invalidate, make_cleanup_regcache_invalidate): New
  6190. functions.
  6191. (regcache_raw_write): Call make_cleanup_regcache_invalidate.
  6192. 2014-06-12 Yao Qi <yao@codesourcery.com>
  6193. * varobj.c (varobj_get_num_children): Call
  6194. varobj_is_dynamic_p.
  6195. (varobj_list_children): Likewise.
  6196. (varobj_update): Likewise. Update comments.
  6197. 2014-06-12 Yao Qi <yao@codesourcery.com>
  6198. * varobj.c (varobj_pretty_printed_p): Rename to ...
  6199. (varobj_is_dynamic_p): ... this. New function.
  6200. * varobj.h (varobj_pretty_printed_p): Remove declaration.
  6201. (varobj_is_dynamic_p): Declare.
  6202. * mi/mi-cmd-var.c (print_varobj): All callers updated.
  6203. (mi_print_value_p, varobj_update_one): Likewise.
  6204. 2014-06-12 Pedro Alves <pedro@codesourcery.com>
  6205. Yao Qi <yao@codesourcery.com>
  6206. * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
  6207. (varobj_get_iterator): Wrap up code for pretty-printer by
  6208. "#if HAVE_PYTHON" and "#endif".
  6209. (update_dynamic_varobj_children): Likewise.
  6210. 2014-06-12 Pedro Alves <pedro@codesourcery.com>
  6211. Yao Qi <yao@codesourcery.com>
  6212. * python/py-varobj.c (py_varobj_iter_next): Return NULL if
  6213. gdb_python_initialized is false. Move some code from varobj.c.
  6214. * varobj-iter.h (struct varobj_item): Moved from varobj.c.
  6215. * varobj.c: Move "varobj-iter.h" inclusion earlier.
  6216. (struct varobj_item): Moved to varobj-iter.h".
  6217. (varobj_clear_saved_item): New function.
  6218. (update_dynamic_varobj_children): Move python-related code to
  6219. py-varobj.c.
  6220. (free_variable): Call varobj_clear_saved_item and
  6221. varobj_iter_delete.
  6222. 2014-06-12 Pedro Alves <pedro@codesourcery.com>
  6223. Yao Qi <yao@codesourcery.com>
  6224. * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
  6225. (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
  6226. (HFILES_NO_SRCDIR): Add "varobj-iter.h".
  6227. (py-varobj.o): New rule.
  6228. * python/py-varobj.c: New file.
  6229. * python/python-internal.h (py_varobj_get_iterator): Declare.
  6230. * varobj-iter.h: New file.
  6231. * varobj.c: Include "varobj-iter.h"
  6232. (struct varobj) <child_iter>: Change its type from "PyObject *"
  6233. to "struct varobj_iter *".
  6234. <saved_item>: Likewise.
  6235. [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
  6236. [HAVE_PYTHON] (varobj_get_iterator): New function.
  6237. (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
  6238. python-specific code to python/py-varobj.c.
  6239. (install_visualizer): Call varobj_iter_delete instead of
  6240. Py_XDECREF.
  6241. * varobj.h (varobj_ensure_python_env): Declare.
  6242. 2014-06-12 Yao Qi <yao@codesourcery.com>
  6243. * varobj.c (struct varobj_item): New structure.
  6244. (create_child_with_value): Update declaration.
  6245. (varobj_add_child): Replace arguments 'name' and 'value' with
  6246. 'item'. All callers updated.
  6247. (install_dynamic_child): Likewise.
  6248. (update_dynamic_varobj_children): Likewise.
  6249. (varobj_add_child): Likewise.
  6250. (create_child_with_value): Likewise.
  6251. 2014-06-11 Joel Brobecker <brobecker@adacore.com>
  6252. * NEWS: Create a new section for the next release branch.
  6253. Rename the section of the current branch, now that it has
  6254. been cut.
  6255. 2014-06-11 Joel Brobecker <brobecker@adacore.com>
  6256. GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
  6257. * version.in: Bump version to 7.8.50.DATE-cvs.
  6258. 2014-06-11 Pedro Alves <palves@redhat.com>
  6259. PR remote/17028
  6260. * ser-mingw.c (net_windows_socket_check_pending): New function.
  6261. (net_windows_select_thread): Ignore spurious wakeups. Use
  6262. net_windows_socket_check_pending.
  6263. (net_windows_wait_handle): Check for pending events with
  6264. ioctlsocket, through net_windows_socket_check_pending, instead of
  6265. checking the socket's event.
  6266. 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
  6267. * python/python-internal.h (gdb_PyObject_GetAttrString)
  6268. (gdb_PyObject_HasAttrString): New inline function definitions.
  6269. * py-value.c (get_field_flag): Remove the now unnecessary cast to
  6270. char * of the second argument to PyObject_GetAttrString.
  6271. 2014-06-10 Joel Brobecker <brobecker@adacore.com>
  6272. * serial.c (serial_write): Fix index of character to be printed
  6273. in call to serial_logchar when serial debug traces are enabled.
  6274. 2014-06-10 Joel Brobecker <brobecker@adacore.com>
  6275. * gdbtypes (resolve_dynamic_range): Add function description.
  6276. 2014-06-09 Pedro Alves <palves@redhat.com>
  6277. * linux-nat.c (linux_child_follow_fork): Initialize status with
  6278. W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
  6279. inner block. Only pass the signal to PTRACE_DETACH if in pass
  6280. state.
  6281. 2014-06-09 Gary Benson <gbenson@redhat.com>
  6282. * common/signals.c (gdb_signal_from_host): Reorder to separate
  6283. the always-available ANSI-standard signals from the signals that
  6284. require checking.
  6285. (do_gdb_signal_to_host): Likewise.
  6286. * proc-events.c (signal_table): Likewise.
  6287. 2014-06-08 Hui Zhu <hui@codesourcery.com>
  6288. * common/linux-ptrace.c (linux_disable_event_reporting): New
  6289. function.
  6290. * common/linux-ptrace.h (linux_disable_event_reporting): New
  6291. declaration.
  6292. * linux-nat.c (linux_child_follow_fork): Do a single step before
  6293. detach.
  6294. 2014-06-07 Keith Seitz <keiths@redhat.com>
  6295. Revert:
  6296. PR c++/16253
  6297. * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
  6298. from symbol_matches_domain in symtab.c. All local callers
  6299. of symbol_matches_domain updated.
  6300. (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
  6301. search STRUCT_DOMAIN.
  6302. (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
  6303. independently. standard_lookup will do that automatically.
  6304. * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
  6305. VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
  6306. (cp_lookup_symbol_in_namespace): Likewise.
  6307. If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
  6308. (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
  6309. may return a STRUCT_DOMAIN match.
  6310. (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
  6311. * cp-support.c: Include language.h.
  6312. (inspect_type): Explicitly search STRUCT_DOMAIN before searching
  6313. VAR_DOMAIN.
  6314. * psymtab.c (match_partial_symbol): Compare the requested
  6315. domain with the symbol's domain directly.
  6316. (lookup_partial_symbol): Likewise.
  6317. * symtab.c (lookup_symbol_in_language): Explain when/why
  6318. VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
  6319. If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
  6320. appropriate languages.
  6321. (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
  6322. and moved to ada-lang.c
  6323. (lookup_block_symbol): Explain that this function only returns
  6324. symbol matching the requested DOMAIN.
  6325. Compare the requested domain with the symbol's domain directly.
  6326. (iterate_over_symbols): Compare the requested domain with the
  6327. symbol's domain directly.
  6328. * symtab.h (symbol_matches_domain): Remove.
  6329. 2014-06-06 Doug Evans <xdje42@gmail.com>
  6330. * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
  6331. (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
  6332. (gdbscm_guile_version_is_at_least): Declare.
  6333. (gdbscm_scm_string_to_int): Declare.
  6334. * guile/guile.c (gdbscm_guile_major_version): New global.
  6335. (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
  6336. (guile_datadir): New static global.
  6337. (gdbscm_guile_data_directory): New function.
  6338. (initialize_scheme_side): Update.
  6339. (misc_guile_functions): Add guile-data-directory.
  6340. (initialize_gdb_module): Fetch guile version number.
  6341. * guile/lib/gdb.scm: Remove call to add-to-load-path.
  6342. * guile/lib/gdb/init.scm (%initialize!): Ditto.
  6343. * guile/lib/gdb/boot.scm: Use guile-data-directory.
  6344. * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
  6345. comments.
  6346. * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
  6347. * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
  6348. * guile/scm-value.c (gdbscm_value_to_string): Only call
  6349. scm_port_conversion_strategy if Guile version >= 2.0.6.
  6350. 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
  6351. * main.c (print_gdb_help): Add -q and --silent.
  6352. 2014-06-06 Gary Benson <gbenson@redhat.com>
  6353. * common/signals.c: Remove preprocessor conditionals for
  6354. always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
  6355. SIGSEGV and SIGTERM.
  6356. * proc-events.c: Likewise.
  6357. 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
  6358. * symfile.c (symfile_free_objfile): Remove restriction to
  6359. OBJF_USERLOADED.
  6360. * symfile-mem.c (symbol_file_add_from_memory): Call
  6361. add_target_sections_of_objfile.
  6362. 2014-06-05 Ludovic Courtès <ludo@gnu.org>
  6363. * guile/scm-value.c (gdbscm_history_append_x): Use
  6364. 'vlscm_get_value_smob_arg_unsafe' instead of
  6365. 'vlscm_scm_to_value'.
  6366. 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
  6367. PR mi/15806
  6368. * utils.c (printchar): Don't escape at all if quoter is NUL.
  6369. Update function documentation to clarify effect of parameter
  6370. QUOTER.
  6371. * remote.c (escape_buffer): Pass '\\' as the quoter to
  6372. fputstrn_unfiltered.
  6373. * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
  6374. generate the output.
  6375. (mi_solib_unloaded): Same.
  6376. 2014-06-05 Joel Brobecker <brobecker@adacore.com>
  6377. * development.sh: Delete.
  6378. * Makefile.in (config.status): Adjust dependency on development.sh.
  6379. * configure.ac: Adjust development.sh source call.
  6380. * configure: Regenerate.
  6381. 2014-06-04 Doug Evans <xdje42@gmail.com>
  6382. * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
  6383. is_scheme_bkpt, spec.
  6384. (bpscm_make_breakpoint_smob): Initialize new members.
  6385. (gdbscm_create_breakpoint_x): Split into two ...
  6386. (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
  6387. (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
  6388. (scheme_function breakpoint_functions): Update.
  6389. * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
  6390. breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
  6391. register-breakpoint!.
  6392. 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
  6393. PR server/17023
  6394. * mem-break.c (z_type_supported): Return zero if
  6395. THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
  6396. 2014-06-04 Tom Tromey <tromey@redhat.com>
  6397. * ada-lang.c (ada_template_to_fixed_record_type_1): Use
  6398. value_from_contents_and_address_unresolved.
  6399. (ada_template_to_fixed_record_type_1): Likewise.
  6400. (ada_which_variant_applies): Likewise.
  6401. * value.h (value_from_contents_and_address_unresolved): Declare.
  6402. * value.c (value_from_contents_and_address_unresolved): New
  6403. function.
  6404. * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
  6405. <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
  6406. (resolve_dynamic_struct, resolve_dynamic_union): New functions.
  6407. 2014-06-04 Tom Tromey <tromey@redhat.com>
  6408. * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
  6409. 2014-06-04 Tom Tromey <tromey@redhat.com>
  6410. * procfs.c (procfs_attach): Make "args" const.
  6411. * windows-nat.c (windows_attach): Make "args" const.
  6412. * nto-procfs.c (procfs_attach): Make "args" const.
  6413. * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
  6414. * go32-nat.c (go32_attach): Make "args" const.
  6415. * gnu-nat.c (gnu_attach): Make "args" const.
  6416. * darwin-nat.c (darwin_attach): Make "args" const.
  6417. * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
  6418. * linux-nat.c (linux_nat_attach): Make "args" const.
  6419. * remote.c (extended_remote_attach_1, extended_remote_attach):
  6420. Make "args" const.
  6421. * target.h (struct target_ops) <to_attach>: Make "args" const.
  6422. (find_default_attach): Likewise.
  6423. * utils.c (parse_pid_to_attach): Make "args" const.
  6424. * utils.h (parse_pid_to_attach): Update.
  6425. 2014-06-04 Tom Tromey <tromey@redhat.com>
  6426. * target-delegates.c: Rebuild.
  6427. * target.c (default_thread_address_space): New function.
  6428. (target_thread_address_space): Simplify.
  6429. * target.h (struct target_ops) <to_thread_address_space>: Add
  6430. TARGET_DEFAULT_FUNC.
  6431. 2014-06-04 Doug Evans <xdje42@gmail.com>
  6432. * guile/scm-type.c (type_smob): Remove duplicate typedef.
  6433. 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
  6434. * record-btrace.c: Include event-loop.h and inf-loop.h.
  6435. (record_btrace_resume_exec_dir)
  6436. (record_btrace_async_inferior_event_handler)
  6437. (record_btrace_handle_async_inferior_event): New.
  6438. (record_btrace_open): Create async event handler.
  6439. (record_btrace_close): Delete async event handler.
  6440. (record_btrace_resume): Set record_btrace_resume_exec_dir,
  6441. Mark async event handler.
  6442. (record_btrace_execution_direction): New.
  6443. (init_record_btrace_ops): Initialize to_execution_direction.
  6444. 2014-06-03 Doug Evans <xdje42@gmail.com>
  6445. * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
  6446. (gdbscm_make_parameter): Ditto.
  6447. 2014-06-03 Doug Evans <dje@google.com>
  6448. * exec.c (exec_close_1): Call clear_section_table instead of
  6449. resize_section_table.
  6450. (clear_section_table): New function.
  6451. (resize_section_table): Make static. Rename arg num_added to
  6452. adjustment.
  6453. * exec.h (clear_section_table): Declare.
  6454. (resize_section_table): Delete.
  6455. * progspace.c (release_program_space): Call clear_section_table
  6456. instead of resize_section_table.
  6457. 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
  6458. * NEWS (Python Scripting): Add entry about the new xmethods
  6459. feature.
  6460. 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
  6461. * python/py-xmethods.c: New file.
  6462. * python/py-objfile.c (objfile_object): New field 'xmethods'.
  6463. (objfpy_dealloc): XDECREF on the new xmethods field.
  6464. (objfpy_new, objfile_to_objfile_object): Initialize xmethods
  6465. field.
  6466. (objfpy_get_xmethods): New function.
  6467. (objfile_getset): New entry 'xmethods'.
  6468. * python/py-progspace.c (pspace_object): New field 'xmethods'.
  6469. (pspy_dealloc): XDECREF on the new xmethods field.
  6470. (pspy_new, pspace_to_pspace_object): Initialize xmethods
  6471. field.
  6472. (pspy_get_xmethods): New function.
  6473. (pspace_getset): New entry 'xmethods'.
  6474. * python/python-internal.h: Add declarations for new functions.
  6475. * python/python.c (_initialize_python): Invoke
  6476. gdbpy_initialize_xmethods.
  6477. * python/lib/gdb/__init__.py (xmethods): New
  6478. attribute.
  6479. * python/lib/gdb/xmethod.py: New file.
  6480. * python/lib/gdb/command/xmethods.py: New file.
  6481. 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
  6482. * eval.c (evaluate_subexp_standard): Call the xmethod if the
  6483. best match method returned by find_overload_match is an xmethod.
  6484. * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
  6485. the best matching operator returned by find_overload_match is an
  6486. xmethod.
  6487. * valops.c: #include "extension.h".
  6488. (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
  6489. Return void. The list of matching source methods is returned in
  6490. "fn_list" and a vector of matching debug method workers is
  6491. returned in "xm_worker_vec". Update all callers.
  6492. (value_find_oload_method_list): Likewise.
  6493. (find_oload_champ): Add "xm_worker_vec" parameter. If it is
  6494. non-NULL, then the index of the best matching method in this
  6495. vector is returned. Update all callers.
  6496. (find_overload_match): Include xmethods while performing overload
  6497. resolution.
  6498. 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
  6499. * defs.h (enum lval_type): New enumerator "lval_xcallable".
  6500. * extension-priv.h (struct extension_language_ops): Add the
  6501. xmethod interface.
  6502. * extension.c (new_xmethod_worker, clone_xmethod_worker,
  6503. get_matching_xmethod_workers, get_xmethod_argtypes,
  6504. invoke_xmethod, free_xmethod_worker,
  6505. free_xmethod_worker_vec): New functions.
  6506. * extension.h: #include "common/vec.h".
  6507. New function declarations.
  6508. (struct xmethod_worker): New struct.
  6509. (VEC (xmethod_worker_ptr)): New vector type.
  6510. (xmethod_worker_ptr): New typedef.
  6511. (xmethod_worker_vec): Likewise.
  6512. * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
  6513. builtin_type.
  6514. * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
  6515. (struct builtin_type): New field "xmethod".
  6516. * valarith.c (value_ptradd): Assert that the value argument is not
  6517. lval_xcallable.
  6518. * valops.c (value_must_coerce_to_target): Return 0 for
  6519. lval_xcallable values.
  6520. * value.c (struct value): New field XM_WORKER in the field
  6521. LOCATION.
  6522. (value_address, value_raw_address): Return 0 for lval_xcallable
  6523. values.
  6524. (set_value_address): Assert that the value is not an
  6525. lval_xcallable.
  6526. (value_free): Free the associated xmethod worker when freeing
  6527. lval_xcallable values.
  6528. (set_value_component_location): Assert that the WHOLE value is not
  6529. lval_xcallable.
  6530. (value_of_xmethod, call_xmethod): New functions.
  6531. * value.h: Declare "struct xmethod_worker".
  6532. Declare new functions value_of_xmethod, call_xmethod.
  6533. 2014-06-03 Joel Brobecker <brobecker@adacore.com>
  6534. Pedro Alves <palves@redhat.com>
  6535. PR breakpoints/17000
  6536. * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
  6537. New function, extracted from software_breakpoint_inserted_here_p.
  6538. (software_breakpoint_inserted_here_p): Replace factored out code
  6539. by call to find_non_raw_software_breakpoint_inserted_here.
  6540. (bp_target_info_copy_insertion_state): New function.
  6541. (bkpt_insert_location): Handle the case of a single-step
  6542. breakpoint already inserted at the same address.
  6543. (bkpt_remove_location): Handle the case of a single-step
  6544. breakpoint still inserted at the same address.
  6545. (deprecated_insert_raw_breakpoint): Handle the case of non-raw
  6546. breakpoint already inserted at the same address.
  6547. (deprecated_remove_raw_breakpoint): Handle the case of a
  6548. non-raw breakpoint still inserted at the same address.
  6549. (find_single_step_breakpoint): New function, extracted from
  6550. single_step_breakpoint_inserted_here_p.
  6551. (find_single_step_breakpoint): New function,
  6552. factored out from single_step_breakpoint_inserted_here_p.
  6553. (single_step_breakpoint_inserted_here_p): Reimplement.
  6554. 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
  6555. Pushed by Joel Brobecker <brobecker@adacore.com>
  6556. * source.c (show_substitute_path_command): Fix display of matching
  6557. substitution rules.
  6558. 2014-06-03 Gary Benson <gbenson@redhat.com>
  6559. * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
  6560. 2014-06-02 Doug Evans <xdje42@gmail.com>
  6561. Add parameter support for Guile.
  6562. * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
  6563. (SUBDIR_GUILE_SRCS): Add scm-param.c.
  6564. (scm-param.o): New rule.
  6565. * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
  6566. (gdbscm_misc_error): Declare.
  6567. (gdbscm_canonicalize_command_name): Declare.
  6568. (gdbscm_scm_to_host_string): Declare.
  6569. (gdbscm_scm_from_host_string): Declare.
  6570. (gdbscm_initialize_parameters): Declare.
  6571. * guile/guile.c (initialize_gdb_module): Call
  6572. gdbscm_initialize_parameters.
  6573. * guile/lib/gdb.scm: Export parameter symbols.
  6574. * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
  6575. cmdscm_canonicalize_name and made public. All callers updated.
  6576. * guile/scm-exception.c (gdbscm_misc_error): New function.
  6577. * guile/scm-param.c: New file.
  6578. * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
  6579. (gdbscm_scm_to_host_string): New function.
  6580. (gdbscm_scm_from_host_string): New function.
  6581. * scm-utils.c (gdbscm_gc_dup_argv): New function.
  6582. 2014-06-02 Doug Evans <xdje42@gmail.com>
  6583. Add command support for Guile.
  6584. * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
  6585. (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
  6586. (scm-cmd.o): New rule.
  6587. * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
  6588. (gdbscm_user_error_p): Declare.
  6589. (gdbscm_parse_command_name): Declare.
  6590. (gdbscm_valid_command_class_p): Declare.
  6591. (gdbscm_initialize_commands): Declare.
  6592. * guile/guile.c (initialize_gdb_module): Call
  6593. gdbscm_initialize_commands.
  6594. * guile/lib/gdb.scm: Export command symbols.
  6595. * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
  6596. (throw-user-error): New function.
  6597. * guile/scm-cmd.c: New file.
  6598. * guile/scm-exception.c (user_error_symbol): New static global.
  6599. (gdbscm_user_error_p): New function.
  6600. (gdbscm_initialize_exceptions): Set user_error_symbol.
  6601. * scm-utils.c (gdbscm_gc_xstrdup): New function.
  6602. 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
  6603. * top.c (command_loop): Handle comments here...
  6604. (command_line_input): ... not here.
  6605. 2014-06-02 Doug Evans <xdje42@gmail.com>
  6606. Add progspace support for Guile.
  6607. * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
  6608. (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
  6609. (scm-progspace.o): New rule.
  6610. * guile/guile-internal.h (pspace_smob): New typedef.
  6611. (psscm_pspace_smob_pretty_printers): Declare.
  6612. (psscm_pspace_smob_from_pspace): Declare.
  6613. (psscm_scm_from_pspace): Declare.
  6614. * guile/guile.c (initialize_gdb_module): Call
  6615. gdbscm_initialize_pspaces.
  6616. * guile/lib/gdb.scm: Export progspace symbols.
  6617. * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
  6618. support.
  6619. (append-pretty-printer!): Ditto.
  6620. * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
  6621. Implement.
  6622. * guile/scm-progspace.c: New file.
  6623. 2014-06-03 Alan Modra <amodra@gmail.com>
  6624. * ppc64-tdep.c (ppc64_standard_linkage8): New.
  6625. (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
  6626. 2014-06-02 Doug Evans <dje@google.com>
  6627. Add support for skeletonless type units.
  6628. * dwarf2read.c (struct dwarf2_per_objfile): New member
  6629. n_allocated_type_units.
  6630. (struct dwarf2_per_objfile) <tu_stats>: New member
  6631. nr_all_type_units_reallocs.
  6632. (create_signatured_type_table_from_index): Initialize
  6633. n_allocated_type_units
  6634. (create_all_type_units): Ditto.
  6635. (add_type_unit): Move up in file. New arg slot.
  6636. All callers updated. Increase space for all_type_units more
  6637. efficiently.
  6638. (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
  6639. (lookup_dwo_signatured_type): Handle skeletonless TUs.
  6640. (lookup_dwp_signatured_type): Ditto.
  6641. (init_tu_and_read_dwo_dies): New arg use_existing_cu.
  6642. All callers updated.
  6643. (build_type_psymtabs_1): Leave type_unit_groups as
  6644. NULL if no TUs present.
  6645. (print_tu_stats): New function.
  6646. (process_skeletonless_type_unit): New function.
  6647. (process_dwo_file_for_skeletonless_type_units): New
  6648. function.
  6649. (process_skeletonless_type_units): New function.
  6650. (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
  6651. Call print tu_stats if debugging enabled.
  6652. 2014-06-02 Pedro Alves <palves@redhat.com>
  6653. * breakpoint.c (build_target_command_list): Don't build a command
  6654. list if we have any duplicate location that isn't a dprintf.
  6655. 2014-06-02 Pedro Alves <palves@redhat.com>
  6656. * breakpoint.c (dprintf_breakpoint_hit): New function.
  6657. (initialize_breakpoint_ops): Install it as dprintf's
  6658. breakpoint_hit method.
  6659. 2014-06-02 Joel Brobecker <brobecker@adacore.com>
  6660. * source.c (substitute_path_rule_matches): Simplify using
  6661. filename_ncmp instead of FILENAME_CMP.
  6662. 2014-06-02 Joel Brobecker <brobecker@adacore.com>
  6663. * source.c (substitute_path_rule_matches): Remove trailing spaces.
  6664. 2014-06-01 Ludovic Courtès <ludo@gnu.org>
  6665. * configure.ac: When Guile is available, check for the
  6666. availability of 'scm_new_smob'.
  6667. * configure, config.h.in: Regenerate.
  6668. * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
  6669. function.
  6670. 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
  6671. * frame.c (struct frame_info): Add stop_string field.
  6672. (get_prev_frame_always_1): Renamed from get_prev_frame_always.
  6673. (get_prev_frame_always): Old content moved into
  6674. get_prev_frame_always_1. Call get_prev_frame_always_1 inside
  6675. TRY_CATCH, handle MEMORY_ERROR exceptions.
  6676. (frame_stop_reason_string): New function definition.
  6677. * frame.h (unwind_stop_reason_to_string): Extend comment to
  6678. mention frame_stop_reason_string.
  6679. (frame_stop_reason_string): New function declaration.
  6680. * stack.c (frame_info): Switch to frame_stop_reason_string.
  6681. (backtrace_command_1): Switch to frame_stop_reason_string.
  6682. * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
  6683. (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
  6684. * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
  6685. 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
  6686. * frame.c (frame_stop_reason_string): Rename to ...
  6687. (unwind_stop_reason_to_string): this.
  6688. * frame.h (frame_stop_reason_string): Rename to ...
  6689. (unwind_stop_reason_to_string): this.
  6690. * stack.c (frame_info): Update call to frame_stop_reason_string.
  6691. (backtrace_command_1): Likewise.
  6692. * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
  6693. * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
  6694. 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
  6695. * frame.c (remove_prev_frame): New function.
  6696. (get_prev_frame_if_no_cycle): Create / discard cleanup using
  6697. remove_prev_frame.
  6698. 2014-05-29 Pedro Alves <palves@redhat.com>
  6699. * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
  6700. and make it const. When a single-step decays to a continue,
  6701. clear 'step', not 'hw_step'. Pass whether the caller wanted
  6702. to step to user_visible_resume_ptid, not what we ask the
  6703. target to do.
  6704. 2014-05-29 Pedro Alves <palves@redhat.com>
  6705. * infrun.c (process_event_stop_test, handle_step_into_function)
  6706. (handle_step_into_function_backward): Adjust.
  6707. Don't set the even thread's stop_step and call stop_waiting before
  6708. calling end_stepping_range. Instead do that ...
  6709. (end_stepping_range): ... here. Take an ecs pointer parameter.
  6710. 2014-05-29 Pedro Alves <palves@redhat.com>
  6711. * infrun.c (stop_stepping): Rename to ...
  6712. (stop_waiting): ... this.
  6713. (proceed): Update comment.
  6714. (process_event_stop_test, handle_inferior_event)
  6715. (handle_signal_stop, handle_step_into_function)
  6716. (handle_step_into_function_backward): Update.
  6717. 2014-05-29 Pedro Alves <palves@redhat.com>
  6718. * infcall.c (run_inferior_call): Don't check whether the current
  6719. thread is running after the proceed call.
  6720. 2014-05-29 Pedro Alves <palves@redhat.com>
  6721. Tom Tromey <tromey@redhat.com>
  6722. * NEWS: Mention "maint set target-async", "set mi-async", and that
  6723. background execution commands are now always available.
  6724. * target.h (target_async_permitted): Update comment.
  6725. * target.c (target_async_permitted, target_async_permitted_1):
  6726. Default to 1.
  6727. (set_target_async_command): Rename to ...
  6728. (maint_set_target_async_command): ... this.
  6729. (show_target_async_command): Rename to ...
  6730. (maint_show_target_async_command): ... this.
  6731. (_initialize_target): Adjust.
  6732. * infcmd.c (prepare_execution_command): Make extern.
  6733. * inferior.h (prepare_execution_command): Declare.
  6734. * infrun.c (set_observer_mode): Leave target async alone.
  6735. * mi/mi-interp.c (mi_interpreter_init): Install
  6736. mi_on_sync_execution_done as sync_execution_done observer.
  6737. (mi_on_sync_execution_done): New function.
  6738. (mi_execute_command_input_handler): Don't print the prompt if we
  6739. just started a synchronous command with an async target.
  6740. (mi_on_resume): Check sync_execution before printing prompt.
  6741. * mi/mi-main.h (mi_async_p): Declare.
  6742. * mi/mi-main.c: Include gdbcmd.h.
  6743. (mi_async_p): New function.
  6744. (mi_async, mi_async_1): New globals.
  6745. (set_mi_async_command, show_mi_async_command, mi_async): New
  6746. functions.
  6747. (exec_continue): Call prepare_execution_command.
  6748. (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
  6749. (mi_execute_async_cli_command): Use mi_async_p.
  6750. (_initialize_mi_main): Install "set mi-async". Make
  6751. "target-async" a deprecated alias.
  6752. 2014-05-29 Pedro Alves <palves@redhat.com>
  6753. * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
  6754. (_initialize_cli_interp): Adjust.
  6755. * event-loop.c: Include "observer.h".
  6756. (start_event_loop): Notify 'command_error' observers instead of
  6757. calling display_gdb_prompt. Remove FIXME comment.
  6758. * event-top.c (display_gdb_prompt): Remove call into the
  6759. interpreters.
  6760. * inf-loop.c: Include "observer.h".
  6761. (inferior_event_handler): Notify 'command_error' observers instead
  6762. of calling display_gdb_prompt.
  6763. * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
  6764. observers instead of calling display_gdb_prompt.
  6765. * interps.c (interp_set): Don't call display_gdb_prompt.
  6766. (current_interp_display_prompt_p): Delete.
  6767. * interps.h (interp_prompt_p): Delete declaration.
  6768. (interp_prompt_p_ftype): Delete.
  6769. (struct interp_procs) <prompt_proc_p>: Delete field.
  6770. (current_interp_display_prompt_p): Delete declaration.
  6771. * mi-interp.c (mi_interpreter_prompt_p): Delete.
  6772. (_initialize_mi_interp): Adjust.
  6773. * tui-interp.c (tui_init): Install 'sync_execution_done' and
  6774. 'command_error' observers.
  6775. (tui_on_sync_execution_done, tui_on_command_error): New
  6776. functions.
  6777. (tui_display_prompt_p): Delete.
  6778. (_initialize_tui_interp): Adjust.
  6779. 2014-05-29 Pedro Alves <palves@redhat.com>
  6780. PR gdb/13860
  6781. * cli/cli-interp.c: Include infrun.h and observer.h.
  6782. (cli_uiout, cli_interp): New globals.
  6783. (cli_on_signal_received, cli_on_end_stepping_range)
  6784. (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
  6785. functions.
  6786. (cli_interpreter_init): Install them as 'end_stepping_range',
  6787. 'signal_received' 'signal_exited', 'exited' and 'no_history'
  6788. observers.
  6789. (_initialize_cli_interp): Remove cli_interp local.
  6790. * infrun.c (handle_inferior_event): Call the several stop reason
  6791. observers instead of printing the stop reason directly.
  6792. (end_stepping_range): New function.
  6793. (print_end_stepping_range_reason, print_signal_exited_reason)
  6794. (print_exited_reason, print_signal_received_reason)
  6795. (print_no_history_reason): Make static, and add an uiout
  6796. parameter. Print to that instead of to CURRENT_UIOUT.
  6797. * infrun.h (print_end_stepping_range_reason)
  6798. (print_signal_exited_reason, print_exited_reason)
  6799. (print_signal_received_reason print_no_history_reason): New
  6800. declarations.
  6801. * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
  6802. 'mi_uiout'.
  6803. <cli_uiout>: New field.
  6804. * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
  6805. uiout for CLI output. Install 'signal_received',
  6806. 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
  6807. observers.
  6808. (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
  6809. (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
  6810. (mi_on_no_history): New functions.
  6811. (ui_out_free_cleanup): Delete function.
  6812. (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
  6813. instead use the one already stored in the MI interpreter data.
  6814. (mi_ui_out): Adjust.
  6815. * tui/tui-interp.c: Include infrun.h and observer.h.
  6816. (tui_interp): New global.
  6817. (tui_on_signal_received, tui_on_end_stepping_range)
  6818. (tui_on_signal_exited, tui_on_exited)
  6819. (tui_on_no_history): New functions.
  6820. (tui_init): Install them as 'end_stepping_range',
  6821. 'signal_received' 'signal_exited', 'exited' and 'no_history'
  6822. observers.
  6823. (_initialize_tui_interp): Delete tui_interp local.
  6824. 2014-05-29 Pedro Alves <palves@redhat.com>
  6825. PR gdb/15713
  6826. * linux-nat.c (linux_nat_resume_callback): Rename the second
  6827. parameter to 'except'. Skip LP if it points to EXCEPT.
  6828. (linux_nat_resume): Don't mark the event lwp as not stopped
  6829. before resuming sibling lwps. Instead ask
  6830. linux_nat_resume_callback to skip the event lwp. Mark it as not
  6831. stopped after actually resuming it.
  6832. (linux_handle_syscall_trap): Mark the lwp as not stopped after
  6833. resuming it.
  6834. (wait_lwp): Mark the lwp as stopped here.
  6835. (stop_wait_callback): Mark the lwp as not stopped right after
  6836. resuming it. Don't mark lwps as stopped here.
  6837. (linux_nat_filter_event): Mark the lwp as stopped earlier.
  6838. (linux_nat_wait_1): Don't mark dead lwps as stopped here.
  6839. 2014-05-29 Pedro Alves <palves@redhat.com>
  6840. PR PR15693
  6841. * infrun.c (resume): Determine how much to resume depending on
  6842. whether the caller wanted a step, not whether we can hardware step
  6843. the target. Mark all threads that we intend to run as running,
  6844. unless we're calling an inferior function.
  6845. (normal_stop): If the thread is running an infcall, don't finish
  6846. thread state.
  6847. * target.c (target_resume): Don't mark threads as running here.
  6848. 2014-05-28 Joel Brobecker <brobecker@adacore.com>
  6849. * serial.c (_initialize_serial): Remove support for
  6850. the "set remotebaud" and "show remotebaud" commands.
  6851. * NEWS: Add entry documenting the removal of that command.
  6852. 2014-05-28 Yao Qi <yao@codesourcery.com>
  6853. * charset.c: Fix typo in comments.
  6854. 2014-05-27 Gary Benson <gbenson@redhat.com>
  6855. * utils.c (internal_vproblem): Prompt for a bug report.
  6856. 2014-05-26 Andy Wingo <wingo@igalia.com>
  6857. * guile/scm-arch.c (arscm_mark_arch_smob):
  6858. * guile/scm-block.c (bkscm_mark_block_smob)
  6859. (bkscm_mark_block_syms_progress_smob):
  6860. * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
  6861. * guile/scm-exception.c (exscm_mark_exception_smob):
  6862. * guile/scm-frame.c (frscm_mark_frame_smob):
  6863. * guile/scm-iterator.c (itscm_mark_iterator_smob):
  6864. * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
  6865. * guile/scm-objfile.c (ofscm_mark_objfile_smob):
  6866. * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
  6867. (ppscm_mark_pretty_printer_worker_smob):
  6868. * guile/scm-symbol.c (syscm_mark_symbol_smob):
  6869. * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
  6870. * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
  6871. * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
  6872. mark functions.
  6873. * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
  6874. function.
  6875. 2014-05-26 Andy Wingo <wingo@igalia.com>
  6876. Doug Evans <xdje42@gmail.com>
  6877. * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
  6878. empty_base_class. All uses updated.
  6879. (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
  6880. (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
  6881. Adapt all callers.
  6882. * guile/scm-gsmob.c (gdbscm_mark_gsmob)
  6883. (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
  6884. (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
  6885. (gdbscm_gsmob_has_property_p, add_property_name)
  6886. (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
  6887. * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
  6888. (gdb-object-has-property?, gdb-object-properties): Remove.
  6889. (gdb-object-kind): Renamed from gsmob-kind.
  6890. 2014-05-26 Andy Wingo <wingo@igalia.com>
  6891. * configure.ac (try_guile_versions): Allow building with guile 2.2.
  6892. * configure: Regenerate.
  6893. 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
  6894. * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
  6895. 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
  6896. * record-btrace.c (record_btrace_allow_memory_access): Remove.
  6897. (replay_memory_access_read_only, replay_memory_access_read_write)
  6898. (replay_memory_access_types, replay_memory_access)
  6899. (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
  6900. (cmd_set_record_btrace, cmd_show_record_btrace)
  6901. (cmd_show_replay_memory_access): New.
  6902. (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
  6903. (record_btrace_remove_breakpoint): Replace
  6904. record_btrace_allow_memory_access with replay_memory_access.
  6905. (_initialize_record_btrace): Add commands.
  6906. * NEWS: Announce it.
  6907. 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
  6908. * aarch64-linux-nat.c (asm/ptrace.h): Include.
  6909. 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
  6910. * MAINTAINERS (Write After Approval): Move self back from
  6911. paper trail.
  6912. 2014-05-22 Pedro Alves <palves@redhat.com>
  6913. * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
  6914. (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
  6915. (disable_randomization, enum exec_direction_kind)
  6916. (execution_direction, stop_registers, start_remote)
  6917. (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
  6918. (wait_for_inferior, normal_stop, get_last_target_status)
  6919. (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
  6920. (insert_step_resume_breakpoint_at_sal)
  6921. (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
  6922. (set_step_info, print_stop_event, signal_stop_state)
  6923. (signal_print_state, signal_pass_state, signal_stop_update)
  6924. (signal_print_update, signal_pass_update)
  6925. (update_signals_program_target, clear_exit_convenience_vars)
  6926. (displaced_step_dump_bytes, update_observer_mode)
  6927. (signal_catch_update, gdb_signal_from_command): Move
  6928. declarations ...
  6929. * infrun.h: ... to this new file.
  6930. * amd64-tdep.c: Include infrun.h.
  6931. * annotate.c: Include infrun.h.
  6932. * arch-utils.c: Include infrun.h.
  6933. * arm-linux-tdep.c: Include infrun.h.
  6934. * arm-tdep.c: Include infrun.h.
  6935. * break-catch-sig.c: Include infrun.h.
  6936. * breakpoint.c: Include infrun.h.
  6937. * common/agent.c: Include infrun.h instead of inferior.h.
  6938. * corelow.c: Include infrun.h.
  6939. * event-top.c: Include infrun.h.
  6940. * go32-nat.c: Include infrun.h.
  6941. * i386-tdep.c: Include infrun.h.
  6942. * inf-loop.c: Include infrun.h.
  6943. * infcall.c: Include infrun.h.
  6944. * infcmd.c: Include infrun.h.
  6945. * infrun.c: Include infrun.h.
  6946. * linux-fork.c: Include infrun.h.
  6947. * linux-nat.c: Include infrun.h.
  6948. * linux-thread-db.c: Include infrun.h.
  6949. * monitor.c: Include infrun.h.
  6950. * nto-tdep.c: Include infrun.h.
  6951. * procfs.c: Include infrun.h.
  6952. * record-btrace.c: Include infrun.h.
  6953. * record-full.c: Include infrun.h.
  6954. * remote-m32r-sdi.c: Include infrun.h.
  6955. * remote-mips.c: Include infrun.h.
  6956. * remote-notif.c: Include infrun.h.
  6957. * remote-sim.c: Include infrun.h.
  6958. * remote.c: Include infrun.h.
  6959. * reverse.c: Include infrun.h.
  6960. * rs6000-tdep.c: Include infrun.h.
  6961. * s390-linux-tdep.c: Include infrun.h.
  6962. * solib-irix.c: Include infrun.h.
  6963. * solib-osf.c: Include infrun.h.
  6964. * solib-svr4.c: Include infrun.h.
  6965. * target.c: Include infrun.h.
  6966. * top.c: Include infrun.h.
  6967. * windows-nat.c: Include infrun.h.
  6968. * mi/mi-interp.c: Include infrun.h.
  6969. * mi/mi-main.c: Include infrun.h.
  6970. * python/py-threadevent.c: Include infrun.h.
  6971. 2014-05-22 Pedro Alves <palves@redhat.com>
  6972. * infrun.c (handle_inferior_event): Store the exit code for
  6973. --return-child-result here, instead of ...
  6974. (print_exited_reason): ... here.
  6975. 2014-05-21 Pedro Alves <palves@redhat.com>
  6976. PR gdb/13860
  6977. * gdbthread.h (struct thread_control_state): New field
  6978. `command_interp'.
  6979. * infrun.c (follow_fork): Copy the new thread control field to the
  6980. child fork thread.
  6981. (clear_proceed_status_thread): Clear the new thread control field.
  6982. (proceed): Set the new thread control field.
  6983. * interps.h (command_interp): Declare.
  6984. * interps.c (command_interpreter): New global.
  6985. (command_interp): New function.
  6986. (interp_exec): Set `command_interpreter' while here.
  6987. * cli-out.c (cli_uiout_dtor): New function.
  6988. (cli_ui_out_impl): Install it.
  6989. * mi/mi-interp.c: Include cli-out.h.
  6990. (mi_cmd_interpreter_exec): Add comment.
  6991. (restore_current_uiout_cleanup): New function.
  6992. (ui_out_free_cleanup): New function.
  6993. (mi_on_normal_stop): If finishing an execution command started by
  6994. a CLI command, or any kind of breakpoint-like event triggered,
  6995. print the stop event to the output (CLI) stream.
  6996. * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
  6997. 2014-05-21 Pedro Alves <palves@redhat.com>
  6998. * cli/cli-cmds.c (list_command): Handle the first "list" after the
  6999. current source line having changed.
  7000. * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
  7001. * infrun.c (normal_stop): Adjust call to
  7002. set_current_sal_from_frame.
  7003. * source.c (clear_lines_listed_range): New function.
  7004. (set_current_source_symtab_and_line, identify_source_line): Clear
  7005. the lines listed range.
  7006. (line_info): Handle the first "info line" after the current source
  7007. line having changed.
  7008. * stack.c (print_stack_frame): Remove center handling.
  7009. (set_current_sal_from_frame): Remove 'center' parameter. Don't
  7010. center sal.line.
  7011. 2014-05-21 Pedro Alves <palves@redhat.com>
  7012. * inf-child.c (inf_child_mourn_inferior): New function.
  7013. * inf-child.h (inf_child_mourn_inferior): New declaration.
  7014. * darwin-nat.c (darwin_mourn_inferior): Use
  7015. inf_child_mourn_inferior.
  7016. * gnu-nat.c (gnu_mourn_inferior): Likewise.
  7017. * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
  7018. * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
  7019. * nto-procfs.c (procfs_mourn_inferior): Likewise.
  7020. * windows-nat.c (windows_mourn_inferior): Likewise.
  7021. 2014-05-21 Doug Evans <xdje42@gmail.com>
  7022. * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
  7023. 2014-05-21 Doug Evans <xdje42@gmail.com>
  7024. * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
  7025. (gdbscm_out_of_range_error): Ditto.
  7026. (gdbscm_memory_error): Ditto.
  7027. * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
  7028. * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
  7029. (gdbscm_out_of_range_error): Update.
  7030. (gdbscm_memory_error): Update.
  7031. (gdbscm_scm_to_target_string_unsafe): Delete.
  7032. 2014-05-21 Pedro Alves <palves@redhat.com>
  7033. * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
  7034. globals.
  7035. (inf_child_open_target): New function.
  7036. (inf_child_open): Use inf_child_open_target to push the target
  7037. instead of erroring out.
  7038. (inf_child_disconnect, inf_child_close)
  7039. (inf_child_maybe_unpush_target): New functions.
  7040. (inf_child_target): Install inf_child_disconnect and
  7041. inf_child_close. Store a pointer to the returned object.
  7042. * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
  7043. declarations.
  7044. * target.c (auto_connect_native_target): New global.
  7045. (show_default_run_target): New function.
  7046. (find_default_run_target): Return NULL if automatically connecting
  7047. to the native target is disabled.
  7048. (_initialize_target): Install set/show auto-connect-native-target.
  7049. * NEWS: Mention "set auto-connect-native-target", and "target
  7050. native".
  7051. * linux-nat.c (super_close): New global.
  7052. (linux_nat_close): Call super_close.
  7053. (linux_nat_add_target): Store a pointer to the base class's
  7054. to_close method.
  7055. * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
  7056. inf_child_maybe_unpush.
  7057. * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
  7058. already pushed.
  7059. (inf_ttrace_mourn_inferior): Only unpush the target after mourning
  7060. the inferior. Use inf_child_maybe_unpush_target.
  7061. (inf_ttrace_attach): Don't push the target if it is already
  7062. pushed.
  7063. (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
  7064. * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
  7065. after mourning the inferior. Use inf_child_maybe_unpush_target.
  7066. (darwin_attach_pid): Don't push the target if it is already
  7067. pushed.
  7068. * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
  7069. mourning the inferior. Use inf_child_maybe_unpush_target.
  7070. (gnu_detach): Use inf_child_maybe_unpush_target.
  7071. * go32-nat.c (go32_create_inferior): Don't push the target if it
  7072. is already pushed.
  7073. (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
  7074. * nto-procfs.c (procfs_is_nto_target): Adjust comment.
  7075. (procfs_open): Rename to ...
  7076. (procfs_open_1): ... this. Add target_ops parameter. Adjust
  7077. comments. Can target_preopen before changing node. Call
  7078. inf_child_open_target to push the target explicitly.
  7079. (procfs_attach): Don't push the target if it is already pushed.
  7080. (procfs_detach): Use inf_child_maybe_unpush_target.
  7081. (procfs_create_inferior): Don't push the target if it is already
  7082. pushed.
  7083. (nto_native_ops): New global.
  7084. (procfs_open): Reimplement.
  7085. (procfs_native_open): New function.
  7086. (init_procfs_targets): Install procfs_native_open as to_open of
  7087. "target native". Store a pointer to the "native" target in
  7088. nto_native_ops.
  7089. * procfs.c (procfs_attach): Don't push the target if it is already
  7090. pushed.
  7091. (procfs_detach): Use inf_child_maybe_unpush_target.
  7092. (procfs_mourn_inferior): Only unpush the target after mourning the
  7093. inferior. Use inf_child_maybe_unpush_target.
  7094. (procfs_init_inferior): Don't push the target if it is already
  7095. pushed.
  7096. * windows-nat.c (do_initial_windows_stuff): Don't push the target
  7097. if it is already pushed.
  7098. 2014-05-21 Pedro Alves <palves@redhat.com>
  7099. * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
  7100. and "procfs" targets are now called "native" instead.
  7101. 2014-05-21 Pedro Alves <palves@redhat.com>
  7102. * go32-nat.c (go32_open): Delete.
  7103. (go32_target): Don't override the to_open method.
  7104. 2014-05-21 Pedro Alves <palves@redhat.com>
  7105. * nto-procfs.c (procfs_can_run): New function.
  7106. (nto_procfs_ops): New global.
  7107. (init_procfs_targets): New, based on procfs_target. Install
  7108. "target native" in addition to "target procfs".
  7109. (_initialize_procfs): Call init_procfs_targets instead of adding
  7110. the target here.
  7111. 2014-05-21 Pedro Alves <palves@redhat.com>
  7112. * windows-nat.c (windows_target): Don't override to_shortname,
  7113. to_longname or to_doc.
  7114. 2014-05-21 Pedro Alves <palves@redhat.com>
  7115. * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
  7116. to_doc.
  7117. 2014-05-21 Pedro Alves <palves@redhat.com>
  7118. * darwin-nat.c (_initialize_darwin_inferior): Don't override
  7119. to_shortname, to_longname or to_doc.
  7120. 2014-05-21 Pedro Alves <palves@redhat.com>
  7121. * go32-nat.c (go32_target): Don't override to_shortname,
  7122. to_longname or to_doc.
  7123. 2014-05-21 Pedro Alves <palves@redhat.com>
  7124. * inf-child.c (inf_child_open): Remove mention of "child".
  7125. (inf_child_target): Rename target to "native" instead of "child".
  7126. 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
  7127. * Makefile.in (SFILES): Delete "regset.c".
  7128. (COMMON_OBS): Delete "regset.o".
  7129. * regset.c: Remove.
  7130. * regset.h (regset_alloc): Delete prototype.
  7131. 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
  7132. * sparc-linux-tdep.c (sparc32_linux_gregset)
  7133. (sparc32_linux_fpregset): New static regset structures.
  7134. (sparc32_linux_init_abi): Drop dynamic regset allocations.
  7135. * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
  7136. 'fpregset' fields.
  7137. * sparc64-linux-tdep.c: (sparc64_linux_gregset)
  7138. (sparc64_linux_fpregset): New static regset structures.
  7139. (sparc64_linux_init_abi): Drop dynamic regset allocations.
  7140. * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
  7141. New static regset structures.
  7142. (sparc64fbsd_init_abi): Drop dynamic regset allocations.
  7143. * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
  7144. New static regset structures.
  7145. (sparc64nbsd_init_abi): Drop dynamic regset allocations.
  7146. * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
  7147. New static regset structures.
  7148. (sparc64obsd_init_abi): Drop dynamic regset allocations.
  7149. * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
  7150. New static regset structures.
  7151. (sparc32nbsd_init_abi): Drop dynamic regset allocations.
  7152. 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
  7153. * sparc-linux-nat.c (supply_gregset, supply_fpregset)
  7154. (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
  7155. register maps ("regmaps") from "*regset" to "*regmap". Do this
  7156. for all regmap types and variables.
  7157. * sparc-linux-tdep.c (sparc32_linux_step_trap)
  7158. (sparc32_linux_supply_core_gregset)
  7159. (sparc32_linux_collect_core_gregset)
  7160. (sparc32_linux_supply_core_fpregset)
  7161. (sparc32_linux_collect_core_fpregset): Likewise.
  7162. * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
  7163. (sparc_gregmap, sparc_fpregmap): ... these.
  7164. (sparc_supply_gregset, sparc_collect_gregset)
  7165. (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
  7166. (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
  7167. (_initialize_sparc_nat): Rename regmaps.
  7168. * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
  7169. (sparc_gregmap, sparc_fpregmap): ... these.
  7170. (sparc_supply_gregset, sparc_collect_gregset)
  7171. (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
  7172. * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
  7173. Rename macros to...
  7174. (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
  7175. (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
  7176. Likewise.
  7177. * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
  7178. Rename to...
  7179. (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
  7180. * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
  7181. (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
  7182. regmaps.
  7183. (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
  7184. (sparc32_bsd_fpregset): Rename to...
  7185. (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
  7186. (sparc32_bsd_fpregmap): ... these.
  7187. * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
  7188. (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
  7189. (sparc32_bsd_fpregset, sparc32_sol2_gregset)
  7190. (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
  7191. (struct sparc_gregmap, struct sparc_fpregmap)
  7192. (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
  7193. (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
  7194. (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
  7195. (sparc32_supply_regset, sparc32_collect_gregset)
  7196. (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
  7197. prototypes.
  7198. * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
  7199. (sparc64_linux_ptrace_gregmap): ... this.
  7200. (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
  7201. (_initialize_sparc64_linux_nat): Rename regmaps.
  7202. * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
  7203. (sparc64_linux_core_gregmap): ... this.
  7204. (sparc64_linux_supply_core_gregset)
  7205. (sparc64_linux_collect_core_gregset)
  7206. (sparc64_linux_supply_core_fpregset)
  7207. (sparc64_linux_collect_core_fpregset): Rename regmaps.
  7208. * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
  7209. (sparc64_sol2_fpregset): Rename to...
  7210. (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
  7211. * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
  7212. (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
  7213. regmaps.
  7214. * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
  7215. (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
  7216. (sparc64_bsd_fpregset): Rename to...
  7217. (struct sparc_gregmap, sparc64_sol2_gregmap)
  7218. (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
  7219. (sparc64_bsd_fpregmap): ... these.
  7220. (sparc64_supply_gregset, sparc64_collect_gregset)
  7221. (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
  7222. prototypes.
  7223. * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
  7224. * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
  7225. (sparc64fbsd_gregmap): ... this.
  7226. (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
  7227. (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
  7228. Rename regmaps.
  7229. * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
  7230. (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
  7231. (sparc64nbsd_collect_fpregset): Likewise.
  7232. * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
  7233. (sparc64nbsd_gregmap): ... this.
  7234. (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
  7235. regmaps.
  7236. * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
  7237. * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
  7238. (sparc64obsd_gregmap): ... this.
  7239. (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
  7240. regmaps.
  7241. * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
  7242. * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
  7243. (sparc32nbsd_gregmap): ... this.
  7244. (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
  7245. regmaps.
  7246. 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
  7247. * score-tdep.c (score7_linux_gregset): New static regset
  7248. structure.
  7249. (score7_linux_regset_from_core_section): Remove dynamic regset
  7250. allocation.
  7251. (score_gdbarch_init): Drop allocation of tdep structure.
  7252. * score-tdep.h (struct gdbarch_tdep): Remove declaration.
  7253. 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
  7254. * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
  7255. regset structures.
  7256. (am33_regset_from_core_section): Remove dynamic regset
  7257. allocations.
  7258. 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
  7259. * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
  7260. (mips_linux_fpregset, mips64_linux_fpregset): New static regset
  7261. structures.
  7262. (mips_linux_regset_from_core_section): Remove dynamic regset
  7263. allocations.
  7264. * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
  7265. 'gregset64', 'fpregset', and 'fpregset64'.
  7266. * mips-tdep.c (mips_gdbarch_init): Remove initialization of
  7267. deleted tdep fields.
  7268. 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
  7269. * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
  7270. regset structures.
  7271. (amd64_regset_from_core_section): Remove dynamic regset
  7272. allocations.
  7273. * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
  7274. structure.
  7275. (amd64obsd_regset_from_core_section): Remove dynamic regset
  7276. allocation.
  7277. * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
  7278. Likewise.
  7279. * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
  7280. x86-common regset supply function.
  7281. * i386-tdep.c (i386_collect_gregset): Make static.
  7282. (i386_gregset): New global regset structure.
  7283. (i386_fpregset, i386_xstateregset): New static regset structures.
  7284. (i386_regset_from_core_section): Remove dynamic regset
  7285. allocations.
  7286. (i386_gdbarch_init): Remove initialization of tdep fields
  7287. 'gregset', 'fpregset', and 'xstateregset'.
  7288. * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
  7289. 'fpregset', and 'xstateregset'.
  7290. (i386_collect_gregset): Remove prototype.
  7291. (i386_gregset): New declaration.
  7292. * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
  7293. structure.
  7294. (i386obsd_aout_regset_from_core_section): Remove dynamic regset
  7295. allocation.
  7296. 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
  7297. * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
  7298. (arm_linux_vfpregset): New static regset structures.
  7299. (arm_linux_regset_from_core_section): Remove dynamic allocation of
  7300. regset structures.
  7301. * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
  7302. and 'vfpregset' fields.
  7303. 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
  7304. * aarch64-linux-tdep.c (aarch64_linux_gregset)
  7305. (aarch64_linux_fpregset): New static regset structures.
  7306. (aarch64_linux_regset_from_core_section): Drop dynamic allocation
  7307. of regset structures.
  7308. * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
  7309. 'fpregset' fields.
  7310. 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
  7311. * regset.h (struct regset): Remove gdbarch field.
  7312. * regset.c (regset_alloc): Drop initialization of gdbarch field.
  7313. * nios2-linux-tdep.c (nios2_core_regset): Likewise.
  7314. * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
  7315. Likewise.
  7316. * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
  7317. (ppc32_linux_fpregset, ppc32_linux_vrregset)
  7318. (ppc32_linux_vsxregset): Likewise.
  7319. * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
  7320. via the regcache instead of the regset.
  7321. * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
  7322. (i386_supply_fpregset, i386_collect_fpregset): Likewise.
  7323. * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
  7324. * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
  7325. Likewise.
  7326. 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
  7327. * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
  7328. Constify structures.
  7329. * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
  7330. (alphanbsd_aout_gregset): Likewise.
  7331. * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
  7332. * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
  7333. Likewise.
  7334. * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
  7335. * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
  7336. Likewise.
  7337. * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
  7338. * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
  7339. * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
  7340. * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
  7341. * m88k-tdep.c (m88k_gregset): Likewise.
  7342. * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
  7343. * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
  7344. * nios2-linux-tdep.c (nios2_core_regset): Likewise.
  7345. * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
  7346. * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
  7347. * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
  7348. * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
  7349. * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
  7350. * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
  7351. Likewise.
  7352. * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
  7353. * sh-tdep.h (sh_corefile_gregset): Likewise.
  7354. * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
  7355. * vax-tdep.c (vax_gregset): Likewise.
  7356. 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
  7357. Fix TLS access for -static -pthread.
  7358. * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
  7359. (try_thread_db_load_1): Initialize it.
  7360. (thread_db_get_thread_local_address): Call it if LM is zero.
  7361. * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
  7362. * target.h (struct target_ops) (to_get_thread_local_address): Add
  7363. load_module_addr comment.
  7364. 2014-05-21 Pedro Alves <palves@redhat.com>
  7365. * dcache.c (dcache_read_memory_partial): If reading the cache line
  7366. fails, fallback to reading just the memory the caller wanted.
  7367. 2014-05-20 Doug Evans <dje@google.com>
  7368. * python/py-progspace.c (py_free_pspace): Call target_gdbarch
  7369. instead of get_current_arch.
  7370. 2014-05-20 Pedro Alves <palves@redhat.com>
  7371. * NEWS: Mention that compare-sections now works with all targets.
  7372. * remote.c (PACKET_qCRC): New enum value.
  7373. (remote_verify_memory): Don't send qCRC if the target has no
  7374. execution. Use packet_support/packet_ok. If the target doesn't
  7375. support the qCRC packet, fallback to a deep memory copy.
  7376. (compare_sections_command): Say "target image" instead of "remote
  7377. executable".
  7378. (_initialize_remote): Add PACKET_qCRC to the list of config
  7379. packets that have no associated command. Extend comment.
  7380. * target.c (simple_verify_memory, default_verify_memory): New
  7381. function.
  7382. * target.h (struct target_ops) <to_verify_memory>: Default to
  7383. default_verify_memory.
  7384. (simple_verify_memory): New declaration.
  7385. * target-delegates.c: Regenerate.
  7386. 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
  7387. * record-btrace.c (record_btrace_step_thread): Check for empty history.
  7388. 2014-05-20 Hui Zhu <hui@codesourcery.com>
  7389. Yao Qi <yao@codesourcery.com>
  7390. PR backtrace/16558
  7391. * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
  7392. and change address of sp and pc.
  7393. 2014-05-19 Tom Tromey <tromey@redhat.com>
  7394. * gdbtypes.c (rank_function): Use XNEWVEC.
  7395. * mi/mi-cmds.c (build_table): Use XCNEWVEC.
  7396. 2014-05-19 Doug Evans <dje@google.com>
  7397. * dwarf2read.c (build_type_psymtabs_1): Renamed from
  7398. build_type_unit_groups and moved closer to only caller. Remove
  7399. arguments. All references updated. Remove outdated .gdb_index
  7400. comment.
  7401. (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
  7402. build_type_psymtabs_1.
  7403. 2014-05-19 Doug Evans <dje@google.com>
  7404. * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
  7405. n_type_unit_groups, all_type_unit_groups. All uses removed.
  7406. (get_type_unit_group, build_type_unit_groups): Delete forward decls.
  7407. (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
  7408. (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
  7409. (add_type_unit_group_to_table): Delete.
  7410. 2014-05-19 Doug Evans <dje@google.com>
  7411. * eval.c (evaluate_subexp_standard): Add some comments.
  7412. 2014-05-17 Doug Evans <xdje42@gmail.com>
  7413. * progspace.c (remove_program_space): Delete, unused.
  7414. * progspace.h (remove_program_space): Ditto.
  7415. 2014-05-17 Doug Evans <xdje42@gmail.com>
  7416. * inferior.c (prune_inferiors): Fix comment.
  7417. (remove_inferior_command): Call prune_program_spaces.
  7418. 2014-05-16 Doug Evans <dje@google.com>
  7419. New command line option -D.
  7420. * NEWS: Mention it.
  7421. * main.c (set_gdb_data_directory): New function.
  7422. (captured_main): Recognize -D. Flag error for --data-directory "".
  7423. Call set_gdb_data_directory.
  7424. (print_gdb_help): Print --data-directory, -D.
  7425. * main.h (set_gdb_data_directory): Declare.
  7426. * top.c (staged_gdb_datadir): New static global.
  7427. (set_gdb_datadir): Call set_gdb_data_directory
  7428. (show_gdb_datadir): New function.
  7429. (init_main): Update init of data-directory parameter.
  7430. 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
  7431. Import the "dirfd" gnulib module.
  7432. * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
  7433. * gnulib/aclocal.m4: Update.
  7434. * gnulib/config.in: Update.
  7435. * gnulib/configure: Update.
  7436. * gnulib/import/Makefile.am: Update.
  7437. * gnulib/import/Makefile.in: Update.
  7438. * gnulib/import/dirfd.c: New.
  7439. * gnulib/import/m4/dirfd.m4: New.
  7440. * gnulib/import/m4/gnulib-cache.m4: Update.
  7441. * gnulib/import/m4/gnulib-comp.m4: Update.
  7442. 2014-05-16 Pierre Muller <muller@sourceware.org>
  7443. Yao Qi <yao@codesourcery.com>
  7444. * valprint.c (print_wchar): Move the code on checking whether
  7445. W is a printable wide char to the default branch of switch
  7446. statement below. Call wchar_printable instead of gdb_iswprint.
  7447. 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
  7448. * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
  7449. ldr.w and ldrd instructions.
  7450. 2014-05-15 Doug Evans <dje@google.com>
  7451. * dwarf2read.c (read_structure_type): Delete outdated comments.
  7452. 2014-05-14 Tom Tromey <tromey@redhat.com>
  7453. * macrocmd.c (print_macro_definition): Reindent.
  7454. 2014-05-13 Doug Evans <xdje42@gmail.com>
  7455. * python/py-cmd.c (cmdpy_completer): Add comment.
  7456. (completers): Make const.
  7457. 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
  7458. * infrun.c (resume): Remove should_resume (unused). Move up
  7459. declaration of resume_ptid.
  7460. 2014-05-13 Tom Tromey <tromey@redhat.com>
  7461. * language.h (unop_type_check): Remove.
  7462. (binop_type_check): Don't declare.
  7463. 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
  7464. * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
  7465. call to regcache_raw_collect.
  7466. 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
  7467. * mi/mi-console.c (mi_console_raw_packet): Use the value from
  7468. mi_console->quote as the quoting character.
  7469. 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
  7470. * MAINTAINERS (Write After Approval): Add "Simon Marchi".
  7471. 2014-04-29 Tom Tromey <tromey@redhat.com>
  7472. * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
  7473. "show debug varobj".
  7474. 2014-05-07 Kyle McMartin <kyle@redhat.com>
  7475. Pushed by Joel Brobecker <brobecker@adacore.com>.
  7476. * aarch64-tdep.c (aarch64_software_single_step): New function.
  7477. (aarch64_gdbarch_init): Handle single stepping of atomic sequences
  7478. with aarch64_software_single_step.
  7479. 2014-05-05 Joel Brobecker <brobecker@adacore.com>
  7480. GDB 7.7.1 released.
  7481. 2014-05-05 Keith Seitz <keiths@redhat.com>
  7482. * linespec.c (linespec_parse_basic): Run cleanups if a convenience
  7483. variable or history value is successfully parsed.
  7484. 2014-05-05 Yao Qi <yao@codesourcery.com>
  7485. Pedro Alves <palves@redhat.com>
  7486. * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
  7487. address of blocks that intersects the requested range. Trim
  7488. LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
  7489. sections.
  7490. * ctf.c (ctf_xfer_partial): Likewise.
  7491. 2014-05-05 Yao Qi <yao@codesourcery.com>
  7492. * printcmd.c (display_command): Remove the check to
  7493. target_has_execution.
  7494. 2014-05-03 Mark Kettenis <kettenis@gnu.org>
  7495. * ppcobsd-nat.c: Include "obsd-nat.h".
  7496. (_initialize_ppcobsd_nat): Call obsd_add_target instead of
  7497. add_target.
  7498. * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
  7499. 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
  7500. * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
  7501. and 16-bit signed and unsigned arguments. Update comment.
  7502. (stap_parse_probe_arguments): Extend code to handle such
  7503. arguments. Use warning instead of complaint to notify about
  7504. unrecognized bitness.
  7505. 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
  7506. PR breakpoints/16889
  7507. * stap-probe.c (stap_parse_probe_arguments): Simplify
  7508. check for non-prefixed probes (i.e., probes whose
  7509. arguments do not start with "N@"). Always set the
  7510. argument type to a sane value.
  7511. 2014-05-01 David Taylor <dtaylor@emc.com>
  7512. * remote.c (compare_sections_command): Add -r option to compare
  7513. all loadable read-only sections.
  7514. 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
  7515. * dwarf2loc.c (dwarf2_locexpr_baton_eval,
  7516. dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
  7517. Update all callers.
  7518. * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
  7519. * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
  7520. Remove unused CORE_ADDR argument. Update all callers.
  7521. 2014-04-29 Pedro Alves <palves@redhat.com>
  7522. * remote.c (struct packet_config) <detect>: Extend comment.
  7523. (add_packet_config_cmd): Don't set the config's detect or support
  7524. fields here.
  7525. (init_all_packet_configs): Also initialize the config's 'detect'
  7526. field.
  7527. (reset_all_packet_configs_support): New function.
  7528. (remote_open_1): Call reset_all_packet_configs_support instead of
  7529. init_all_packet_configs.
  7530. (_initialize_remote): Initialize all packet configs. Assert that
  7531. all packets have an associated command, except a few known
  7532. outliers.
  7533. 2014-04-28 Joel Brobecker <brobecker@adacore.com>
  7534. * dwarf2read.c (read_subrange_type): Handle dynamic
  7535. DW_AT_lower_bound attributes.
  7536. 2014-04-28 Joel Brobecker <brobecker@adacore.com>
  7537. * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
  7538. dynamic bounds before computing its upper bound.
  7539. (ada_discrete_type_low_bound): Same as above with the lower bound.
  7540. 2014-04-28 Joel Brobecker <brobecker@adacore.com>
  7541. * dwarf2read.c (is_dynamic_type): Return true for dynamic
  7542. range types. Adjust the array handling implementation to
  7543. take advantage of this change.
  7544. (resolve_dynamic_range): New function, mostly extracted from
  7545. resolve_dynamic_bounds.
  7546. (resolve_dynamic_array): New function, mostly extracted from
  7547. resolve_dynamic_bounds.
  7548. (resolve_dynamic_bounds): Delete.
  7549. (resolve_dynamic_type): Reimplement. Add handling of
  7550. TYPE_CODE_RANGE types.
  7551. 2014-04-28 Joel Brobecker <brobecker@adacore.com>
  7552. * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
  7553. handling of parallel ___XA types.
  7554. 2014-04-28 Joel Brobecker <brobecker@adacore.com>
  7555. * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
  7556. unnecessary second call to static_unwrap_type.
  7557. 2014-04-27 Hui Zhu <hui@codesourcery.com>
  7558. * stack.c (print_frame_info): Call do_gdb_disassembly with
  7559. DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
  7560. 2014-04-26 Doug Evans <xdje42@gmail.com>
  7561. * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
  7562. 2014-04-25 Pedro Alves <palves@redhat.com>
  7563. PR server/16255
  7564. * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
  7565. (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
  7566. and newline from built string.
  7567. * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
  7568. (linux_ptrace_attach_fail_reason): ... this.
  7569. * linux-nat.c (linux_nat_attach): Adjust to use
  7570. linux_ptrace_attach_fail_reason.
  7571. 2014-04-25 Pedro Alves <palves@redhat.com>
  7572. * remote.c (struct remote_state): Remove multi_process_aware,
  7573. non_stop_aware, cond_tracepoints, cond_breakpoints,
  7574. breakpoint_commands, fast_tracepoints, static_tracepoints,
  7575. install_in_trace, disconnected_tracing,
  7576. enable_disable_tracepoints, string_tracing, and
  7577. augmented_libraries_svr4_read fields.
  7578. (remote_multi_process_p): Move further below in the file.
  7579. (struct packet_config): Add comments.
  7580. (update_packet_config): Delete function.
  7581. (show_packet_config_cmd): Use packet_config_support.
  7582. (add_packet_config_cmd): Use NULL as set callback.
  7583. (packet_ok): "set remote foo-packet"-style commands no longer
  7584. change config->supported -- adjust.
  7585. (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
  7586. (PACKET_BreakpointCommands, PACKET_FastTracepoints)
  7587. (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
  7588. (PACKET_QNonStop, PACKET_multiprocess_feature)
  7589. (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
  7590. (PACKET_DisconnectedTracing_feature)
  7591. (PACKET_augmented_libraries_svr4_read_feature): New enum values.
  7592. (set_remote_protocol_packet_cmd): Delete function.
  7593. (packet_config_support, packet_support): New functions.
  7594. (set_remote_protocol_Z_packet_cmd): Don't call
  7595. update_packet_config.
  7596. (remote_query_attached, remote_pass_signals)
  7597. (remote_program_signals, remote_threads_info)
  7598. (remote_threads_extra_info, remote_start_remote): Use
  7599. packet_support.
  7600. (remote_start_remote): Use packet_config_support and
  7601. packet_support.
  7602. (init_all_packet_configs): Set all packets to unknown support,
  7603. instead of calling update_packet_config.
  7604. (remote_check_symbols): Use packet_support.
  7605. (remote_supported_packet): Unconditionally set the packet config's
  7606. support status.
  7607. (remote_multi_process_feature, remote_non_stop_feature)
  7608. (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
  7609. (remote_breakpoint_commands_feature)
  7610. (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
  7611. (remote_install_in_trace_feature)
  7612. (remote_disconnected_tracing_feature)
  7613. (remote_enable_disable_tracepoint_feature)
  7614. (remote_string_tracing_feature)
  7615. (remote_augmented_libraries_svr4_read_feature): Delete functions.
  7616. (remote_protocol_features): Adjust to use remote_supported_packet
  7617. for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
  7618. "ConditionalTracepoints", "ConditionalBreakpoints",
  7619. "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
  7620. "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
  7621. "EnableDisableTracepoints", and "tracenz".
  7622. (remote_query_supported): Use packet_support.
  7623. (remote_open_1): Adjust.
  7624. (extended_remote_attach_1): Use packet_support. Switch on the
  7625. result of packet_ok instead of checking whether the packet ended
  7626. up disabled.
  7627. (remote_vcont_resume): Use packet_support.
  7628. (remote_resume, remote_stop_ns, fetch_register_using_p)
  7629. (remote_prepare_to_store, store_register_using_P)
  7630. (check_binary_download, remote_write_bytes): Use packet_support.
  7631. (remote_vkill): Use packet_support. Switch on the result of
  7632. packet_ok instead of checking whether the packet ended up
  7633. disabled.
  7634. (extended_remote_supports_disable_randomization): Use
  7635. packet_support.
  7636. (extended_remote_run): Switch on the result of packet_ok instead
  7637. of checking whether the packet ended up disabled.
  7638. (remote_insert_breakpoint, remote_remove_breakpoint)
  7639. (remote_insert_watchpoint, remote_remove_watchpoint)
  7640. (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
  7641. packet_support.
  7642. (remote_search_memory): Use packet_config_support.
  7643. (remote_get_thread_local_address, remote_get_tib_address)
  7644. (remote_hostio_send_command, remote_can_execute_reverse): Use
  7645. packet_support.
  7646. (remote_supports_cond_tracepoints)
  7647. (remote_supports_cond_breakpoints)
  7648. (remote_supports_fast_tracepoints)
  7649. (remote_supports_static_tracepoints)
  7650. (remote_supports_install_in_trace)
  7651. (remote_supports_enable_disable_tracepoint)
  7652. (remote_supports_string_tracing)
  7653. (remote_can_run_breakpoint_commands): Rewrite, checking whether
  7654. the packet config says the feature is enabled or disabled.
  7655. (remote_download_tracepoint, remote_trace_set_readonly_regions)
  7656. (remote_get_trace_status): Use packet_support.
  7657. (remote_set_disconnected_tracing): Adjust to check whether the
  7658. feature is enabled with packet_support.
  7659. (remote_set_trace_buffer_size, remote_use_agent)
  7660. (remote_can_use_agent, remote_supports_btrace): Use
  7661. packet_support.
  7662. (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
  7663. Use packet_config_support.
  7664. (remote_augmented_libraries_svr4_read): Rewrite, checking whether
  7665. the packet config says the feature is enabled or disabled.
  7666. (set_range_stepping): Use packet_support.
  7667. 2014-04-25 Tom Tromey <tromey@redhat.com>
  7668. * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
  7669. argument.
  7670. 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
  7671. * NEWS: Mention support for C99 variable length arrays.
  7672. 2014-04-24 Joel Brobecker <brobecker@adacore.com>
  7673. * ada-lang.c (standard_exc): Expand introductory comment.
  7674. 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
  7675. Walfred Tedeschi <walfred.tedeschi@intel.com>
  7676. * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
  7677. AVX512 registers.
  7678. (amd64_linux_read_description): Add code to handle AVX512 xstate
  7679. mask and return respective tdesc.
  7680. * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
  7681. and features/i386/x32-avx512-linux.c.
  7682. (amd64_linux_gregset_reg_offset): Add AVX512 registers.
  7683. (amd64_linux_core_read_description): Add code to handle AVX512
  7684. xstate mask and return respective tdesc.
  7685. (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
  7686. * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
  7687. calculation.
  7688. (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
  7689. (tdesc_amd64_avx512_linux): New prototype.
  7690. (tdesc_x32_avx512_linux): Likewise.
  7691. * amd64-tdep.c: Include features/i386/amd64-avx512.c and
  7692. features/i386/x32-avx512.c.
  7693. (amd64_ymm_avx512_names): New register names for pseudo
  7694. registers YMM16-31.
  7695. (amd64_ymmh_avx512_names): New register names for raw registers
  7696. YMMH16-31.
  7697. (amd64_k_names): New register names for K registers.
  7698. (amd64_zmmh_names): New register names for ZMM raw registers.
  7699. (amd64_zmm_names): New registers names for ZMM pseudo registers.
  7700. (amd64_xmm_avx512_names): New register names for XMM16-31
  7701. registers.
  7702. (amd64_pseudo_register_name): Add code to return AVX512 pseudo
  7703. registers.
  7704. (amd64_init_abi): Add code to intitialize AVX512 tdep variables
  7705. if feature is present.
  7706. (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
  7707. * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
  7708. (AMD64_NUM_REGS): Adjust to new number of registers.
  7709. * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
  7710. registers supplied via XSTATE by AVX512 registers.
  7711. (i386_linux_read_description): Add case for AVX512.
  7712. * i386-linux-tdep.c: Include i386-avx512-linux.c.
  7713. (i386_linux_gregset_reg_offset): Add AVX512 registers.
  7714. (i386_linux_core_read_description): Add case for AVX512.
  7715. (i386_linux_init_abi): Install supported register note section
  7716. for AVX512.
  7717. (_initialize_i386_linux_tdep): Add call to tdesc init function for
  7718. AVX512.
  7719. * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
  7720. registers to be number of zmm7h + 1.
  7721. (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
  7722. * i386-tdep.c: Include features/i386/i386-avx512.c.
  7723. (i386_zmm_names): Add ZMM pseudo register names array.
  7724. (i386_zmmh_names): Add ZMM raw register names array.
  7725. (i386_k_names): Add K raw register names array.
  7726. (num_lower_zmm_regs): Add constant for the number of lower ZMM
  7727. registers. AVX512 has 16 more ZMM registers than there are YMM
  7728. registers.
  7729. (i386_zmmh_regnum_p): Add function to look up register number of
  7730. ZMM raw registers.
  7731. (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
  7732. (i386_k_regnum_p): Likewise for K raw registers.
  7733. (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
  7734. registers added by AVX512.
  7735. (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
  7736. registers added by AVX512.
  7737. (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
  7738. added by AVX512.
  7739. (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
  7740. (i386_pseudo_register_name): Add ZMM pseudo registers.
  7741. (i386_zmm_type): Construct and return vector registers type for ZMM
  7742. registers.
  7743. (i386_pseudo_register_type): Return appropriate type for YMM16-31,
  7744. ZMM0-31 pseudo registers and K registers.
  7745. (i386_pseudo_register_read_into_value): Add code to read K, ZMM
  7746. and YMM16-31 registers from register cache.
  7747. (i386_pseudo_register_write): Add code to write K, ZMM and
  7748. YMM16-31 registers.
  7749. (i386_register_reggroup_p): Add code to include/exclude AVX512
  7750. registers in/from respective register groups.
  7751. (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
  7752. registers if feature is present in xcr0.
  7753. (i386_gdbarch_init): Add code to initialize AVX512 feature
  7754. variables in tdep structure, wire in pseudo registers and call
  7755. initialize_tdesc_i386_avx512.
  7756. * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
  7757. variables.
  7758. (i386_regnum): Add AVX512 registers.
  7759. (I386_SSE_NUM_REGS): New define for number of SSE registers.
  7760. (I386_AVX_NUM_REGS): Likewise for AVX registers.
  7761. (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
  7762. (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
  7763. 512 bits wide.
  7764. (i386_xmm_avx512_regnum_p): New prototype for register look up.
  7765. (i386_ymm_avx512_regnum_p): Likewise.
  7766. (i386_k_regnum_p): Likewise.
  7767. (i386_zmm_regnum_p): Likewise.
  7768. (i386_zmmh_regnum_p): Likewise.
  7769. * i387-tdep.c : Update year in copyright notice.
  7770. (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
  7771. XSAVE buffer.
  7772. (XSAVE_YMM_AVX512_ADDR): New macro.
  7773. (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
  7774. XSAVE buffer.
  7775. (XSAVE_XMM_AVX512_ADDR): New macro.
  7776. (xsave_avx512_k_offset): New table for K register offsets in
  7777. XSAVE buffer.
  7778. (XSAVE_AVX512_K_ADDR): New macro.
  7779. (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
  7780. in XSAVE buffer.
  7781. (XSAVE_AVX512_ZMM_H_ADDR): New macro.
  7782. (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
  7783. buffer.
  7784. (i387_collect_xsave): Add code to collect AVX512 registers from
  7785. XSAVE buffer.
  7786. * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
  7787. of XMM16-31 registers.
  7788. (I387_NUM_K_REGS): New define for number of K registers.
  7789. (I387_K0_REGNUM): New define for K0 register number.
  7790. (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
  7791. (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
  7792. (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
  7793. registers.
  7794. (I387_YMM16H_REGNUM): New define for YMM16H register number.
  7795. (I387_XMM16_REGNUM): New define for XMM16 register number.
  7796. (I387_YMM0_REGNUM): New define for YMM0 register number.
  7797. (I387_KEND_REGNUM): New define for last K register number.
  7798. (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
  7799. (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
  7800. number.
  7801. (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
  7802. number.
  7803. * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
  7804. size.
  7805. * features/Makefile: Add AVX512 related files.
  7806. * features/i386/32bit-avx512.xml: New file.
  7807. * features/i386/64bit-avx512.xml: Likewise.
  7808. * features/i386/amd64-avx512-linux.c: Likewise.
  7809. * features/i386/amd64-avx512-linux.xml: Likewise.
  7810. * features/i386/amd64-avx512.c: Likewise.
  7811. * features/i386/amd64-avx512.xml: Likewise.
  7812. * features/i386/i386-avx512-linux.c: Likewise.
  7813. * features/i386/i386-avx512-linux.xml: Likewise.
  7814. * features/i386/i386-avx512.c: Likewise.
  7815. * features/i386/i386-avx512.xml: Likewise.
  7816. * features/i386/x32-avx512-linux.c: Likewise.
  7817. * features/i386/x32-avx512-linux.xml: Likewise.
  7818. * features/i386/x32-avx512.c: Likewise.
  7819. * features/i386/x32-avx512.xml: Likewise.
  7820. * regformats/i386/amd64-avx512-linux.dat: New file.
  7821. * regformats/i386/amd64-avx512.dat: Likewise.
  7822. * regformats/i386/i386-avx512-linux.dat: Likewise.
  7823. * regformats/i386/i386-avx512.dat: Likewise.
  7824. * regformats/i386/x32-avx512-linux.dat: Likewise.
  7825. * regformats/i386/x32-avx512.dat: Likewise.
  7826. * NEWS: Add note about new support for AVX512.
  7827. 2014-04-23 Pedro Alves <palves@redhat.com>
  7828. * breakpoint.c (insert_bp_location): Tolerate errors if the
  7829. breakpoint is set in a user-loaded objfile.
  7830. (remove_breakpoint_1): Likewise. Also tolerate errors if the
  7831. location is marked shlib_disabled. If the breakpoint is set in a
  7832. user-loaded objfile is a GDB-side memory breakpoint, validate it
  7833. before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
  7834. non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
  7835. flag.
  7836. * mem-break.c (memory_validate_breakpoint): New function.
  7837. * objfiles.c (userloaded_objfile_contains_address_p): New
  7838. function.
  7839. * objfiles.h (userloaded_objfile_contains_address_p): Declare.
  7840. * target.h (memory_validate_breakpoint): New declaration.
  7841. 2014-04-23 Pedro Alves <palves@redhat.com>
  7842. * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
  7843. the breakpoint is set in a shared library, only suppress
  7844. errors for software breakpoints, not hardware breakpoints.
  7845. 2014-04-22 Pedro Alves <palves@redhat.com>
  7846. * infrun.c (schedlock_applies): New function, factored out from
  7847. find_thread_needs_step_over.
  7848. (find_thread_needs_step_over): Use it.
  7849. (switch_back_to_stepped_thread): Always clear trap_expected if the
  7850. step over is finished. Return early if scheduler locking applies.
  7851. Look for the stepping thread and a potential step-over thread with
  7852. a single loop.
  7853. (currently_stepping_or_nexting_callback): Delete.
  7854. 2014-04-22 Nick Clifton <nickc@redhat.com>
  7855. * NEWS: Mention that ARM sim now supports tracing.
  7856. 2014-04-22 Yao Qi <yao@codesourcery.com>
  7857. * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
  7858. to ...
  7859. * tracefile.c (tracefile_fetch_registers): ... it. New
  7860. function.
  7861. * tracefile.h (tracefile_fetch_registers): Declare.
  7862. * ctf.c (ctf_fetch_registers): Remove the bottom. Call
  7863. tracefile_fetch_registers.
  7864. 2014-04-19 Eli Zaretskii <eliz@gnu.org>
  7865. PR gdb/14018
  7866. * windows-nat.c (thread_rec): Don't display a warning when
  7867. SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
  7868. fails for any reason, set th->suspended to -1, so that we don't
  7869. try to resume such a thread. Also, don't return NULL in these
  7870. cases, to avoid completely ruin the session due to "PC register is
  7871. not available" error.
  7872. (do_windows_fetch_inferior_registers): Check errors in
  7873. GetThreadContext call.
  7874. (windows_continue): Accept an additional argument KILLED; if not
  7875. zero, ignore errors in the SetThreadContext call, since the
  7876. inferior was killed and is shutting down.
  7877. (windows_resume, get_windows_debug_event)
  7878. (windows_create_inferior, windows_mourn_inferior)
  7879. (windows_kill_inferior): All callers of windows_continue changed
  7880. to adjust to its new calling sequence.
  7881. 2014-04-19 Yao Qi <yao@codesourcery.com>
  7882. * ctf.c (ctf_open): Call post_create_inferior.
  7883. 2014-04-19 Yao Qi <yao@codesourcery.com>
  7884. * ctf.c (handle_id): New static variable.
  7885. (ctf_open_dir): Get handle_id from bt_context_add_trace return
  7886. value. Get the declaration of event "register" and get length
  7887. of field "contents".
  7888. 2014-04-19 Yao Qi <yao@codesourcery.com>
  7889. * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
  7890. 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
  7891. * valops.c (oload_method_static): Remove unnecessary argument
  7892. METHOD. Update all callers.
  7893. 2014-04-18 Pedro alves <palves@redhat.com>
  7894. Tom Tromey <tromey@redhat.com>
  7895. PR backtrace/15558
  7896. * frame.c (get_prev_frame_1): Rename to ...
  7897. (get_prev_frame_always): ... this, and make extern. Adjust.
  7898. (skip_artificial_frames): Use get_prev_frame_always.
  7899. (frame_unwind_caller_id, frame_pop, get_prev_frame)
  7900. (get_frame_unwind_stop_reason): Adjust to rename.
  7901. * frame.h (get_prev_frame_always): Declare.
  7902. * inline-frame.c: Include frame.h.
  7903. (inline_frame_this_id): Use get_prev_frame_always.
  7904. 2014-04-18 Tristan Gingold <gingold@adacore.com>
  7905. * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
  7906. code by using bfd_mach_o_get_base_address.
  7907. 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
  7908. * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
  7909. (spu_ax_pseudo_register_collect): New function.
  7910. (spu_ax_pseudo_register_push_stack): Likewise.
  7911. (spu_dwarf_reg_to_regnum): Likewise.
  7912. (spu_gdbarch_init): Install them. Append DWARF unwinders.
  7913. 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
  7914. * gdbarch.sh (value_from_register): Make class "m" instead of "f".
  7915. Replace FRAME argument with FRAME_ID.
  7916. * gdbarch.c, gdbarch.h: Regenerate.
  7917. * findvar.c (default_value_from_register): Add GDBARCH argument;
  7918. replace FRAME by FRAME_ID. No longer call get_frame_id.
  7919. (value_from_register): Update call to gdbarch_value_from_register.
  7920. * value.h (default_value_from_register): Update prototype.
  7921. * s390-linux-tdep.c (s390_value_from_register): Update interface
  7922. and call to default_value_from_register.
  7923. * spu-tdep.c (spu_value_from_register): Likewise.
  7924. * findvar.c (address_from_register): Remove TYPE argument.
  7925. Do not call value_from_register; use gdbarch_value_from_register
  7926. with null_frame_id instead.
  7927. * value.h (address_from_register): Update prototype.
  7928. * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
  7929. * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
  7930. address_from_register interface change.
  7931. 2014-04-17 Yao Qi <yao@codesourcery.com>
  7932. * gdbtypes.h: Update comments to link to types and macros'
  7933. definitions.
  7934. 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
  7935. * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
  7936. 2014-04-16 Keith Seitz <keiths@redhat.com>
  7937. PR gdb/15827
  7938. * dwarf2read.c (skip_one_die): Check that all relative-offset
  7939. sibling DIEs fall within range of the current reader's buffer.
  7940. (read_partial_die): Likewise.
  7941. 2014-04-16 Keith Seitz <keiths@redhat.com>
  7942. PR c++/16597
  7943. * cp-namespace.c (lookup_symbol_file): If the type name of
  7944. `this' is NULL, return immediately.
  7945. 2014-04-14 Keith Seitz <keiths@redhat.com>
  7946. PR c++/16253
  7947. * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
  7948. from symbol_matches_domain in symtab.c. All local callers
  7949. of symbol_matches_domain updated.
  7950. (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
  7951. search STRUCT_DOMAIN.
  7952. (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
  7953. independently. standard_lookup will do that automatically.
  7954. * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
  7955. VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
  7956. (cp_lookup_symbol_in_namespace): Likewise.
  7957. If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
  7958. (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
  7959. may return a STRUCT_DOMAIN match.
  7960. (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
  7961. * cp-support.c: Include language.h.
  7962. (inspect_type): Explicitly search STRUCT_DOMAIN before searching
  7963. VAR_DOMAIN.
  7964. * psymtab.c (match_partial_symbol): Compare the requested
  7965. domain with the symbol's domain directly.
  7966. (lookup_partial_symbol): Likewise.
  7967. * symtab.c (lookup_symbol_in_language): Explain when/why
  7968. VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
  7969. If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
  7970. appropriate languages.
  7971. (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
  7972. and moved to ada-lang.c
  7973. (lookup_block_symbol): Explain that this function only returns
  7974. symbol matching the requested DOMAIN.
  7975. Compare the requested domain with the symbol's domain directly.
  7976. (iterate_over_symbols): Compare the requested domain with the
  7977. symbol's domain directly.
  7978. * symtab.h (symbol_matches_domain): Remove.
  7979. 2014-04-14 Tom Tromey <tromey@redhat.com>
  7980. PR c++/15246:
  7981. * c-exp.y (type_aggregate_p): New function.
  7982. (qualified_name, classify_inner_name): Use it.
  7983. * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
  7984. and TYPE_TARGET_TYPE of an enum type.
  7985. * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
  7986. an enum type.
  7987. (determine_prefix) <case DW_TAG_enumeration_type>: New case;
  7988. handle TYPE_DECLARED_CLASS.
  7989. * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
  7990. types.
  7991. * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
  7992. * valops.c (enum_constant_from_type): New function.
  7993. (value_aggregate_elt): Use it.
  7994. * cp-namespace.c (cp_lookup_nested_symbol): Handle
  7995. TYPE_CODE_ENUM.
  7996. 2014-04-14 Tom Tromey <tromey@redhat.com>
  7997. * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
  7998. (value_namespace_elt, value_maybe_namespace_elt): Make "name"
  7999. const.
  8000. * value.h (value_aggregate_elt): Update.
  8001. 2014-04-14 Tom Tromey <tromey@redhat.com>
  8002. * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
  8003. 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
  8004. * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
  8005. (evaluate_subexp_standard): Pass noside argument.
  8006. (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
  8007. if noside equals EVAL_NORMAL. If the subscript yields a vla type
  8008. re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
  8009. * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
  8010. * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
  8011. 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
  8012. * findvar.c (default_read_var_value): Resolve dynamic bounds if location
  8013. points to a constant blob.
  8014. 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
  8015. * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
  8016. property and store it as the high bound and flag the range accordingly.
  8017. * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
  8018. RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
  8019. * gdbtypes.h (enum range_flags): New enum.
  8020. (struct range_bounds): Add flags member.
  8021. 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
  8022. * c-typeprint.c (c_type_print_varspec_suffix): Added
  8023. check for not yet resolved high bound. If unresolved, print
  8024. "variable length" string to the console instead of random
  8025. length.
  8026. 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
  8027. * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
  8028. value.
  8029. (ada_template_to_fixed_record_type_1): Likewise.
  8030. (ada_to_fixed_type_1): Likewise.
  8031. * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
  8032. (cp_print_value): Likewise.
  8033. * d-valprint.c (dynamic_array_type): Likewise.
  8034. * findvar.c (address_of_variable): Likewise.
  8035. * jv-valprint.c (java_value_print): Likewise.
  8036. * valops.c (value_ind): Likewise.
  8037. * value.c (coerce_ref): Likewise.
  8038. 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
  8039. * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
  8040. value and retrieve the dynamic type size.
  8041. 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
  8042. * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
  8043. passed to sizeof is dynamic evaluate the argument to compute the length.
  8044. 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
  8045. Joel Brobecker <brobecker@adacore.com>
  8046. * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
  8047. (dwarf2_evaluate_property): New function.
  8048. * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
  8049. * dwarf2read.c (attr_to_dynamic_prop): New function.
  8050. (read_subrange_type): Use attr_to_dynamic_prop to read high bound
  8051. attribute.
  8052. * gdbtypes.c: Include dwarf2loc.h.
  8053. (is_dynamic_type): New function.
  8054. (resolve_dynamic_type): New function.
  8055. (resolve_dynamic_bounds): New function.
  8056. (get_type_length): New function.
  8057. (check_typedef): Use get_type_length to compute type length.
  8058. * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
  8059. (TYPE_LOW_BOUND_KIND): New macro.
  8060. (is_dynamic_type): New function prototype.
  8061. * value.c (value_from_contents_and_address): Call resolve_dynamic_type
  8062. to resolve dynamic properties of the type. Update comment.
  8063. * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
  8064. 2014-04-14 Richard Henderson <rth@redhat.com>
  8065. * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
  8066. 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
  8067. Doug Evans <xdje42@gmail.com>
  8068. * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
  8069. dereference TYPE_CODE_REF values.
  8070. 2014-04-11 Joel Brobecker <brobecker@adacore.com>
  8071. Revert the following changes due to regressions:
  8072. * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
  8073. (dwarf2_evaluate_property): New function.
  8074. * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
  8075. * dwarf2read.c (attr_to_dynamic_prop): New function.
  8076. (read_subrange_type): Use attr_to_dynamic_prop to read high bound
  8077. attribute.
  8078. * gdbtypes.c: Include dwarf2loc.h.
  8079. (is_dynamic_type): New function.
  8080. (resolve_dynamic_type): New function.
  8081. (resolve_dynamic_bounds): New function.
  8082. (get_type_length): New function.
  8083. (check_typedef): Use get_type_length to compute type length.
  8084. * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
  8085. (TYPE_LOW_BOUND_KIND): New macro.
  8086. (is_dynamic_type): New function prototype.
  8087. * value.c (value_from_contents_and_address): Call resolve_dynamic_type
  8088. to resolve dynamic properties of the type. Update comment.
  8089. * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
  8090. * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
  8091. passed to sizeof is dynamic evaluate the argument to compute the length.
  8092. * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
  8093. value and retrieve the dynamic type size.
  8094. * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
  8095. (ada_template_to_fixed_record_type_1): Likewise.
  8096. (ada_to_fixed_type_1): Likewise.
  8097. * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
  8098. (cp_print_value): Likewise.
  8099. * d-valprint.c (dynamic_array_type): Likewise.
  8100. * eval.c (evaluate_subexp_with_coercion): Likewise.
  8101. * findvar.c (address_of_variable): Likewise.
  8102. * jv-valprint.c (java_value_print): Likewise.
  8103. * valops.c (value_ind): Likewise.
  8104. * value.c (coerce_ref): Likewise.
  8105. * c-typeprint.c (c_type_print_varspec_suffix): Added
  8106. check for not yet resolved high bound. If unresolved, print
  8107. "variable length" string to the console instead of random
  8108. length.
  8109. * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
  8110. property and store it as the high bound and flag the range accordingly.
  8111. * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
  8112. RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
  8113. * gdbtypes.h (enum range_flags): New enum.
  8114. (struct range_bounds): Add flags member.
  8115. * findvar.c (default_read_var_value): Resolve dynamic bounds if location
  8116. points to a constant blob.
  8117. * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
  8118. (evaluate_subexp_standard): Pass noside argument.
  8119. (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
  8120. if noside equals EVAL_NORMAL. If the subscript yields a vla type
  8121. re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
  8122. * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
  8123. * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
  8124. 2014-04-11 Keith Seitz <keiths@redhat.com>
  8125. PR c++/16675
  8126. * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
  8127. * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
  8128. reference types.
  8129. 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
  8130. * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
  8131. (evaluate_subexp_standard): Pass noside argument.
  8132. (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
  8133. if noside equals EVAL_NORMAL. If the subscript yields a vla type
  8134. re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
  8135. * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
  8136. * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
  8137. 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
  8138. * findvar.c (default_read_var_value): Resolve dynamic bounds if location
  8139. points to a constant blob.
  8140. 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
  8141. * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
  8142. property and store it as the high bound and flag the range accordingly.
  8143. * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
  8144. RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
  8145. * gdbtypes.h (enum range_flags): New enum.
  8146. (struct range_bounds): Add flags member.
  8147. 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
  8148. * c-typeprint.c (c_type_print_varspec_suffix): Added
  8149. check for not yet resolved high bound. If unresolved, print
  8150. "variable length" string to the console instead of random
  8151. length.
  8152. 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
  8153. * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
  8154. (ada_template_to_fixed_record_type_1): Likewise.
  8155. (ada_to_fixed_type_1): Likewise.
  8156. * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
  8157. (cp_print_value): Likewise.
  8158. * d-valprint.c (dynamic_array_type): Likewise.
  8159. * eval.c (evaluate_subexp_with_coercion): Likewise.
  8160. * findvar.c (address_of_variable): Likewise.
  8161. * jv-valprint.c (java_value_print): Likewise.
  8162. * valops.c (value_ind): Likewise.
  8163. * value.c (coerce_ref): Likewise.
  8164. 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
  8165. * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
  8166. value and retrieve the dynamic type size.
  8167. 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
  8168. * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
  8169. passed to sizeof is dynamic evaluate the argument to compute the length.
  8170. 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
  8171. * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
  8172. (dwarf2_evaluate_property): New function.
  8173. * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
  8174. * dwarf2read.c (attr_to_dynamic_prop): New function.
  8175. (read_subrange_type): Use attr_to_dynamic_prop to read high bound
  8176. attribute.
  8177. * gdbtypes.c: Include dwarf2loc.h.
  8178. (is_dynamic_type): New function.
  8179. (resolve_dynamic_type): New function.
  8180. (resolve_dynamic_bounds): New function.
  8181. (get_type_length): New function.
  8182. (check_typedef): Use get_type_length to compute type length.
  8183. * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
  8184. (TYPE_LOW_BOUND_KIND): New macro.
  8185. (is_dynamic_type): New function prototype.
  8186. * value.c (value_from_contents_and_address): Call resolve_dynamic_type
  8187. to resolve dynamic properties of the type. Update comment.
  8188. * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
  8189. 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
  8190. * dwarf2read.c (read_subrange_type): Use struct bound_prop for
  8191. declaring high/low bounds and change uses accordingly. Call
  8192. create_range_type instead of create_static_range_type.
  8193. * gdbtypes.c (create_range_type): New function.
  8194. (create_range_type): Convert bounds into struct bound_prop and pass
  8195. them to create_range_type.
  8196. * gdbtypes.h (struct bound_prop): New struct.
  8197. (create_range_type): New function prototype.
  8198. (struct range_bounds): Use struct bound_prop instead of LONGEST for
  8199. high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
  8200. (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
  8201. part of the bound.
  8202. * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
  8203. 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
  8204. * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
  8205. * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
  8206. * ada-lang.c: All uses of create_range_type updated.
  8207. * coffread.c: All uses of create_range_type updated.
  8208. * dwarf2read.c: All uses of create_range_type updated.
  8209. * f-exp.y: All uses of create_range_type updated.
  8210. * m2-valprint.c: All uses of create_range_type updated.
  8211. * mdebugread.c: All uses of create_range_type updated.
  8212. * stabsread.c: All uses of create_range_type updated.
  8213. * valops.c: All uses of create_range_type updated.
  8214. * valprint.c: All uses of create_range_type updated.
  8215. 2014-04-10 Pedro Alves <palves@redhat.com>
  8216. * breakpoint.c (single_step_breakpoints)
  8217. (single_step_gdbarch): Move up in the file.
  8218. (one_breakpoint_xfer_memory): New function, factored out from ...
  8219. (breakpoint_xfer_memory): ... here. Also process single-step
  8220. breakpoints.
  8221. 2014-04-09 Tristan Gingold <gingold@adacore.com>
  8222. * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
  8223. comments.
  8224. (darwin_decode_exception_message): Free port only after use.
  8225. 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
  8226. * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
  8227. (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
  8228. when setting the size of call_length.
  8229. 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
  8230. * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
  8231. dereference TYPE_CODE_REF values.
  8232. 2014-04-07 Joel Brobecker <brobecker@adacore.com>
  8233. * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
  8234. end of warning message.
  8235. 2014-04-03 Doug Evans <dje@google.com>
  8236. * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
  8237. of stub_comp_unit_die, stub_comp_dir is non-NULL.
  8238. 2014-04-02 Alan Modra <amodra@gmail.com>
  8239. * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
  8240. Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
  8241. (struct symbol_file_add_from_memory_args): Add size field.
  8242. (find_vdso_size): New function.
  8243. (add_vsyscall_page): Attempt to find vdso size.
  8244. 2014-04-01 Doug Evans <dje@google.com>
  8245. * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
  8246. 2014-04-01 Tristan Gingold <gingold@adacore.com>
  8247. * darwin-nat.c (darwin_encode_reply): Add prototype.
  8248. (darwin_decode_exception_message): Reply to unknown inferiors.
  8249. (darwin_decode_message): Handle message by id. Ignore message
  8250. to unknown inferior.
  8251. (darwin_wait): Discard unknown messages, add debug trace.
  8252. 2014-03-31 Doug Evans <dje@google.com>
  8253. * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
  8254. comp_dir_string.
  8255. 2014-03-31 Doug Evans <dje@google.com>
  8256. New option "set print symbol-loading".
  8257. * NEWS: Mention it.
  8258. * solib.c (solib_read_symbols): Only print symbol loading messages
  8259. if requested.
  8260. (solib_add): If symbol loading is in "brief" mode, notify user
  8261. symbols are being loaded.
  8262. (reload_shared_libraries_1): Ditto.
  8263. * symfile.c (print_symbol_loading_off): New static global.
  8264. (print_symbol_loading_brief): New static global.
  8265. (print_symbol_loading_full): New static global.
  8266. (print_symbol_loading_enums): New static global.
  8267. (print_symbol_loading): New static global.
  8268. (print_symbol_loading_p): New function.
  8269. (symbol_file_add_with_addrs): Only print symbol loading messages
  8270. if requested.
  8271. (_initialize_symfile): Register "print symbol-loading" set/show
  8272. command.
  8273. * symfile.h (print_symbol_loading_p): Declare.
  8274. 2014-03-30 Doug Evans <xdje42@gmail.com>
  8275. * infrun.c (set_last_target_status): New function.
  8276. (handle_inferior_event): Call it.
  8277. 2014-03-30 Doug Evans <xdje42@gmail.com>
  8278. * inferior.h (enum stop_kind): Improve comment.
  8279. 2014-03-28 Joel Brobecker <brobecker@adacore.com>
  8280. * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
  8281. a reference, strip the reference layer before calling
  8282. the lang_ops value_has_mutated callback.
  8283. 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
  8284. Remove some globals from our parser.
  8285. * language.c (unk_lang_parser): Add "struct parser_state"
  8286. argument.
  8287. * language.h (struct language_defn) <la_parser>: Likewise.
  8288. * parse.c (expout, expout_size, expout_ptr): Remove variables.
  8289. (initialize_expout): Add "struct parser_state" argument.
  8290. Rewrite function to use the parser state.
  8291. (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
  8292. write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
  8293. write_exp_elt_longcst, write_exp_elt_dblcst,
  8294. write_exp_elt_decfloatcst, write_exp_elt_type,
  8295. write_exp_elt_intern, write_exp_string, write_exp_string_vector,
  8296. write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
  8297. write_dollar_variable): Likewise.
  8298. (parse_exp_in_context_1): Use parser state.
  8299. (insert_type_address_space): Add "struct parser_state" argument.
  8300. Use parser state.
  8301. (increase_expout_size): New function.
  8302. * parser-defs.h: Forward declare "struct language_defn" and
  8303. "struct parser_state".
  8304. (expout, expout_size, expout_ptr): Remove extern declarations.
  8305. (parse_gdbarch, parse_language): Rewrite macro declarations to
  8306. accept the parser state.
  8307. (struct parser_state): New struct.
  8308. (initialize_expout, reallocate_expout, write_exp_elt_opcode,
  8309. write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
  8310. write_exp_elt_decfloatcst, write_exp_elt_type,
  8311. write_exp_elt_intern, write_exp_string, write_exp_string_vector,
  8312. write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
  8313. write_exp_msymbol, write_dollar_variable,
  8314. mark_struct_expression, insert_type_address_space): Add "struct
  8315. parser_state" argument.
  8316. (increase_expout_size): New function.
  8317. * utils.c (do_clear_parser_state): New function.
  8318. (make_cleanup_clear_parser_state): Likewise.
  8319. * utils.h (make_cleanup_clear_parser_state): New function
  8320. prototype.
  8321. * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
  8322. Update calls to write_exp* in order to pass the parser state.
  8323. * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
  8324. * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
  8325. (i386_stap_parse_special_token_three_arg_disp): Likewise.
  8326. * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
  8327. * stap-probe.c (stap_parse_register_operand): Likewise.
  8328. (stap_parse_single_operand): Likewise.
  8329. (stap_parse_argument_1): Likewise.
  8330. (stap_parse_argument): Use parser state.
  8331. * stap-probe.h: Include "parser-defs.h".
  8332. (struct stap_parse_info) <pstate>: New field.
  8333. * c-exp.y (parse_type): Rewrite to use parser state.
  8334. (yyparse): Redefine to c_parse_internal.
  8335. (pstate): New global variable.
  8336. (parse_number): Add "struct parser_state" argument.
  8337. (write_destructor_name): Likewise.
  8338. (type_exp): Update calls to write_exp* and similars in order to
  8339. use parser state.
  8340. (exp1, exp, variable, qualified_name, space_identifier,
  8341. typename, typebase): Likewise.
  8342. (write_destructor_name, parse_number, lex_one_token,
  8343. classify_name, classify_inner_name, c_parse): Add "struct
  8344. parser_state" argument. Update function to use parser state.
  8345. * c-lang.h: Forward declare "struct parser_state".
  8346. (c_parse): Add "struct parser_state" argument.
  8347. * ada-exp.y (parse_type): Rewrite macro to use parser state.
  8348. (yyparse): Redefine macro to ada_parse_internal.
  8349. (pstate): New variable.
  8350. (write_int, write_object_renaming, write_var_or_type,
  8351. write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
  8352. type_int, type_long, type_long_long, type_float, type_double,
  8353. type_long_double, type_char, type_boolean, type_system_address):
  8354. Add "struct parser_state" argument.
  8355. (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
  8356. or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
  8357. var_or_type, aggregate, aggregate_component_list,
  8358. positional_list, others, component_group,
  8359. component_associations): Update calls to write_exp* and similar
  8360. functions in order to use parser state.
  8361. (ada_parse, write_var_from_sym, write_int,
  8362. write_exp_op_with_string, write_object_renaming,
  8363. find_primitive_type, write_selectors, write_ambiguous_var,
  8364. write_var_or_type, write_name_assoc, type_int, type_long,
  8365. type_long_long, type_float, type_double, type_long_double,
  8366. type_char, type_boolean, type_system_address): Add "struct
  8367. parser_state" argument. Adjust function to use parser state.
  8368. * ada-lang.c (parse): Likewise.
  8369. * ada-lang.h: Forward declare "struct parser_state".
  8370. (ada_parse): Add "struct parser_state" argument.
  8371. * ada-lex.l (processInt, processReal): Likewise. Adjust all
  8372. calls to both functions.
  8373. * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
  8374. parser state.
  8375. (yyparse): Redefine macro to f_parse_internal.
  8376. (pstate): New variable.
  8377. (parse_number): Add "struct parser_state" argument.
  8378. (type_exp, exp, subrange, typebase): Update calls to write_exp*
  8379. and similars in order to use parser state.
  8380. (parse_number): Adjust code to use parser state.
  8381. (yylex): Likewise.
  8382. (f_parse): New function.
  8383. * f-lang.h: Forward declare "struct parser_state".
  8384. (f_parse): Add "struct parser_state" argument.
  8385. * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
  8386. parser state.
  8387. (yyparse): Redefine macro for java_parse_internal.
  8388. (pstate): New variable.
  8389. (push_expression_name, push_expression_name, insert_exp): Add
  8390. "struct parser_state" argument.
  8391. (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
  8392. FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
  8393. FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
  8394. PostIncrementExpression, PostDecrementExpression,
  8395. UnaryExpression, PreIncrementExpression, PreDecrementExpression,
  8396. UnaryExpressionNotPlusMinus, CastExpression,
  8397. MultiplicativeExpression, AdditiveExpression, ShiftExpression,
  8398. RelationalExpression, EqualityExpression, AndExpression,
  8399. ExclusiveOrExpression, InclusiveOrExpression,
  8400. ConditionalAndExpression, ConditionalOrExpression,
  8401. ConditionalExpression, Assignment, LeftHandSide): Update
  8402. calls to write_exp* and similars in order to use parser state.
  8403. (parse_number): Ajust code to use parser state.
  8404. (yylex): Likewise.
  8405. (java_parse): New function.
  8406. (push_variable): Add "struct parser_state" argument. Adjust
  8407. code to user parser state.
  8408. (push_fieldnames, push_qualified_expression_name,
  8409. push_expression_name, insert_exp): Likewise.
  8410. * jv-lang.h: Forward declare "struct parser_state".
  8411. (java_parse): Add "struct parser_state" argument.
  8412. * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
  8413. parser state.
  8414. (yyparse): Redefine macro to m2_parse_internal.
  8415. (pstate): New variable.
  8416. (type_exp, exp, fblock, variable, type): Update calls to
  8417. write_exp* and similars to use parser state.
  8418. (yylex): Likewise.
  8419. (m2_parse): New function.
  8420. * m2-lang.h: Forward declare "struct parser_state".
  8421. (m2_parse): Add "struct parser_state" argument.
  8422. * objc-lang.c (end_msglist): Add "struct parser_state" argument.
  8423. * objc-lang.h: Forward declare "struct parser_state".
  8424. (end_msglist): Add "struct parser_state" argument.
  8425. * p-exp.y (parse_type): Rewrite macro to use parser state.
  8426. (yyparse): Redefine macro to pascal_parse_internal.
  8427. (pstate): New variable.
  8428. (parse_number): Add "struct parser_state" argument.
  8429. (type_exp, exp1, exp, qualified_name, variable): Update calls to
  8430. write_exp* and similars in order to use parser state.
  8431. (parse_number, yylex): Adjust code to use parser state.
  8432. (pascal_parse): New function.
  8433. * p-lang.h: Forward declare "struct parser_state".
  8434. (pascal_parse): Add "struct parser_state" argument.
  8435. * go-exp.y (parse_type): Rewrite macro to use parser state.
  8436. (yyparse): Redefine macro to go_parse_internal.
  8437. (pstate): New variable.
  8438. (parse_number): Add "struct parser_state" argument.
  8439. (type_exp, exp1, exp, variable, type): Update calls to
  8440. write_exp* and similars in order to use parser state.
  8441. (parse_number, lex_one_token, classify_name, yylex): Adjust code
  8442. to use parser state.
  8443. (go_parse): Likewise.
  8444. * go-lang.h: Forward declare "struct parser_state".
  8445. (go_parse): Add "struct parser_state" argument.
  8446. 2014-03-27 Doug Evans <dje@google.com>
  8447. * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
  8448. 2014-03-27 Doug Evans <dje@google.com>
  8449. * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
  8450. Remove argument abbrev_section. All callers updated.
  8451. 2014-03-27 Doug Evans <dje@google.com>
  8452. * dwarf2read.c (struct dwarf2_cu): Improve comments for members
  8453. addr_base, ranges_base.
  8454. 2014-03-26 Keith Seitz <keiths@redhat.com>
  8455. * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
  8456. types, not VAR_DOMAIN.
  8457. 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
  8458. * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
  8459. "ra" registers.
  8460. * features/nios2-linux.c: Regenerated.
  8461. * features/nios2.c: Regenerated.
  8462. 2014-03-25 Pedro Alves <palves@redhat.com>
  8463. * cli/cli-script.c (script_from_file): Force the interpreter to
  8464. sync mode.
  8465. 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
  8466. * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
  8467. small stack allocation.
  8468. 2014-03-24 Tristan Gingold <gingold@adacore.com>
  8469. * darwin-nat.c (exc_server): Remove unused prototype.
  8470. (darwin_dump_message): Correctly display data on x86_64.
  8471. (darwin_encode_reply): Fix style.
  8472. Add comments and fix indentation.
  8473. 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
  8474. * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
  8475. 2014-03-22 Doug Evans <xdje42@gmail.com>
  8476. * infcmd.c: Whitespace fixes.
  8477. (interrupt_command): Merge two function comments into one.
  8478. 2014-03-22 Doug Evans <xdje42@gmail.com>
  8479. * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
  8480. All uses updated.
  8481. 2014-03-22 Yao Qi <yao@codesourcery.com>
  8482. * remote.c (target_read_live_memory): Remove.
  8483. (memory_xfer_live_readonly_partial): Rename it to
  8484. remote_xfer_live_readonly_partial. Remove argument 'object'.
  8485. All callers updated. Call remote_read_bytes_1
  8486. instead of target_read_live_memory.
  8487. * tracepoint.c (set_traceframe_number): Remove.
  8488. (make_cleanup_restore_traceframe_number): Likewise .
  8489. * tracepoint.h (set_traceframe_number): Remove declaration.
  8490. (make_cleanup_restore_traceframe_number): Likewise.
  8491. 2014-03-22 Yao Qi <yao@codesourcery.com>
  8492. * remote.c (remote_read_bytes): Move code on reading from the
  8493. remote stub to ...
  8494. (remote_read_bytes_1): ... here. New function.
  8495. 2014-03-22 Yao Qi <yao@codesourcery.com>
  8496. * ctf.c (ctf_xfer_partial): Check the return value of
  8497. exec_read_partial_read_only, if it is not TARGET_XFER_OK,
  8498. return TARGET_XFER_UNAVAILABLE.
  8499. * tracefile-tfile.c (tfile_xfer_partial): Likewise.
  8500. * target.c (target_read_live_memory): Move it to remote.c.
  8501. (memory_xfer_live_readonly_partial): Likewise.
  8502. (memory_xfer_partial_1): Move some code to remote_read_bytes.
  8503. * remote.c (target_read_live_memory): Moved from target.c.
  8504. (memory_xfer_live_readonly_partial): Likewise.
  8505. (remote_read_bytes): Factored out from
  8506. memory_xfer_partial_1.
  8507. 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
  8508. * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
  8509. NULL pointer.
  8510. 2014-03-21 Pedro Alves <palves@redhat.com>
  8511. * infrun.c (normal_stop): Extend comment.
  8512. 2014-03-21 Hui Zhu <hui@codesourcery.com>
  8513. Pedro Alves <palves@redhat.com>
  8514. * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
  8515. static buffer.
  8516. * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
  8517. * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
  8518. * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
  8519. 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
  8520. * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
  8521. `z' formatted output modifier.
  8522. 2014-03-20 Tom Tromey <tromey@redhat.com>
  8523. Sergio Durigan Junior <sergiodj@redhat.com>
  8524. * probe.c (parse_probes): Turn assert into an ordinary error.
  8525. * break-catch-throw.c (re_set_exception_catchpoint): Ignore
  8526. exceptions when parsing probes. Rearrange the code for clarity.
  8527. 2014-03-20 Tom Tromey <tromey@redhat.com>
  8528. PR gdb/14135
  8529. * top.c (execute_command): Only dispatch events if the command
  8530. started the target.
  8531. 2014-03-20 Tom Tromey <tromey@redhat.com>
  8532. PR cli/15718
  8533. * infcall.c: Include event-top.h.
  8534. (run_inferior_call): Call async_disable_stdin if needed.
  8535. 2014-03-20 Pedro Alves <palves@redhat.com>
  8536. * infrun.c (prepare_to_proceed): Delete.
  8537. (thread_still_needs_step_over): New function.
  8538. (find_thread_needs_step_over): New function.
  8539. (proceed): If the current thread needs a step-over, set its
  8540. steping_over_breakpoint flag. Adjust to use
  8541. find_thread_needs_step_over instead of prepare_to_proceed.
  8542. (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
  8543. BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
  8544. breakpoint.
  8545. (switch_back_to_stepped_thread): Step over breakpoints of all
  8546. threads not the stepping thread, before switching back to the
  8547. stepping thread.
  8548. 2014-03-20 Pedro Alves <palves@redhat.com>
  8549. * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
  8550. extern.
  8551. * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
  8552. * infrun.c (saved_singlestep_ptid)
  8553. (stepping_past_singlestep_breakpoint): Delete.
  8554. (resume): Remove stepping_past_singlestep_breakpoint handling.
  8555. (proceed): Store the prev_pc of the stepping thread too.
  8556. (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
  8557. singlestep_pc.
  8558. (enum infwait_states): Delete infwait_thread_hop_state.
  8559. (struct execution_control_state) <hit_singlestep_breakpoint>: New
  8560. field.
  8561. (handle_inferior_event): Adjust.
  8562. (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
  8563. handling and the thread-hop code. Before removing single-step
  8564. breakpoints, check whether the thread hit a single-step breakpoint
  8565. of another thread. If it did, the trap is not a random signal.
  8566. (switch_back_to_stepped_thread): If the event thread hit a
  8567. single-step breakpoint, unblock it before switching to the
  8568. stepping thread. Handle the case of the stepped thread having
  8569. advanced already.
  8570. (keep_going): Handle the case of the current thread moving past a
  8571. single-step breakpoint.
  8572. 2014-03-20 Pedro Alves <palves@redhat.com>
  8573. PR breakpoints/7143
  8574. * breakpoint.c (should_be_inserted): Don't insert breakpoints that
  8575. are being stepped over.
  8576. (breakpoint_address_match): Make extern.
  8577. * breakpoint.h (breakpoint_address_match): New declaration.
  8578. * inferior.h (stepping_past_instruction_at): New declaration.
  8579. * infrun.c (struct step_over_info): New type.
  8580. (step_over_info): New global.
  8581. (set_step_over_info, clear_step_over_info)
  8582. (stepping_past_instruction_at): New functions.
  8583. (handle_inferior_event): Clear the step-over info when
  8584. trap_expected is cleared.
  8585. (resume): Remove now stale comment.
  8586. (clear_proceed_status): Clear step-over info.
  8587. (proceed): Adjust step-over handling to set or clear the step-over
  8588. info instead of removing all breakpoints.
  8589. (handle_signal_stop): When setting up a thread-hop, don't remove
  8590. breakpoints here.
  8591. (stop_stepping): Clear step-over info.
  8592. (keep_going): Adjust step-over handling to set or clear step-over
  8593. info and then always inserting breakpoints, instead of removing
  8594. all breakpoints when stepping over one.
  8595. 2014-03-20 Pedro Alves <palves@redhat.com>
  8596. * infrun.c (previous_inferior_ptid): Adjust comment.
  8597. (deferred_step_ptid): Delete.
  8598. (infrun_thread_ptid_changed, prepare_to_proceed)
  8599. (init_wait_for_inferior): Adjust.
  8600. (handle_signal_stop): Delete deferred_step_ptid handling.
  8601. 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
  8602. PR gdb/15358
  8603. * defs.h (sync_quit_force_run): New declaration.
  8604. (QUIT): Check also SYNC_QUIT_FORCE_RUN.
  8605. * event-top.c (async_sigterm_handler): New declaration.
  8606. (async_sigterm_token): New variable.
  8607. (async_init_signals): Create also async_sigterm_token.
  8608. (async_sigterm_handler): New function.
  8609. (sync_quit_force_run): New variable.
  8610. (handle_sigterm): Replace quit_force call by other calls.
  8611. * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
  8612. 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
  8613. * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
  8614. offset into SPE pseudo registers.
  8615. 2014-03-18 Pedro Alves <palves@redhat.com>
  8616. PR gdb/13860
  8617. * inferior.h (print_stop_event): Declare.
  8618. * infrun.c (print_stop_event): New, factored out from ...
  8619. (normal_stop): ... this.
  8620. * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
  8621. of bpstat_print/print_stack_frame.
  8622. 2014-03-17 Tom Tromey <tromey@redhat.com>
  8623. * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
  8624. 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
  8625. * ada-lang.c (decode_constrained_packed_array): Perform a
  8626. minimal coercion for reference with coerce_ref instead of
  8627. ada_coerce_ref.
  8628. 2014-03-17 Tristan Gingold <gingold@adacore.com>
  8629. * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
  8630. (darwin_solib_create_inferior_hook): Emit a warning if version
  8631. is unhandled.
  8632. 2014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
  8633. * python/py-value.c (get_field_flag): Cast flag_name argument to
  8634. PyObject_GetAttrString to support Python 2.4.
  8635. 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
  8636. * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
  8637. (Global Maintainers): Remove Jan Kratochvil.
  8638. 2014-03-14 Pedro Alves <palves@redhat.com>
  8639. * inferior.h (terminal_ours_for_output): Rename to ...
  8640. (child_terminal_ours_for_output): ... this.
  8641. (terminal_save_ours): Rename to ...
  8642. (child_terminal_save_ours): ... this.
  8643. (terminal_ours): Rename to ...
  8644. (child_terminal_ours): ... this.
  8645. (terminal_inferior): Rename to ...
  8646. (child_terminal_inferior): ... this.
  8647. (terminal_init_inferior): Rename to ...
  8648. (child_terminal_init_inferior): ... this.
  8649. (terminal_init_inferior_with_pgrp): Rename to ...
  8650. (child_terminal_init_inferior_with_pgrp): ... this.
  8651. * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
  8652. (child_terminal_init_with_pgrp): ... this.
  8653. (terminal_save_ours): Rename to ...
  8654. (child_terminal_save_ours): ... this.
  8655. (terminal_init_inferior): Rename to ...
  8656. (child_terminal_init): ... this. Adjust.
  8657. (terminal_inferior): Rename to ...
  8658. (child_terminal_inferior): ... this.
  8659. (terminal_ours_for_output): Rename to ...
  8660. (child_terminal_ours_for_output): ... this. Adjust.
  8661. (terminal_ours): Rename to ...
  8662. (child_terminal_ours): ... this.
  8663. (terminal_ours_1): Rename to ...
  8664. (child_terminal_ours_1): ... this. Adjust.
  8665. * linux-nat.c (linux_nat_terminal_inferior): Adjust.
  8666. * windows-nat.c (do_initial_windows_stuff): Adjust.
  8667. * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
  8668. (gnu_terminal_init): ... this. Adjust.
  8669. (gnu_target): Adjust.
  8670. * inf-child.c (inf_child_target): Adjust.
  8671. 2014-03-13 Doug Evans <xdje42@gmail.com>
  8672. PR guile/16612
  8673. * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
  8674. new eq?-hashtab.
  8675. 2014-03-13 Doug Evans <xdje42@gmail.com>
  8676. * value.c (record_latest_value): Call release_value_or_incref
  8677. instead of release_value.
  8678. 2014-03-13 Pedro Alves <palves@redhat.com>
  8679. * procfs.c (procfs_target): Don't override to_shortname,
  8680. to_longname or to_doc.
  8681. 2014-03-13 Pedro Alves <palves@redhat.com>
  8682. * inf-child.c (inf_child_open, inf_child_target): Don't mention
  8683. Unix in user visible strings.
  8684. 2014-03-12 Stan Shebs <stan@codesourcery.com>
  8685. * gdbtypes.h: Annotate comments for Doxygen, add a page
  8686. block comment with some general info.
  8687. 2014-03-12 Pedro Alves <palves@redhat.com>
  8688. * infcmd.c (prepare_execution_command): New function, factored out
  8689. from several execution commands.
  8690. (run_command_1, continue_command, step_1, jump_command)
  8691. (signal_command, until_command, advance_command, finish_command)
  8692. (attach_command): Use prepare_execution_command.
  8693. 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
  8694. * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
  8695. (MAX_BPTS): Define.
  8696. (MAX_WPTS): Define.
  8697. (struct arm_linux_thread_points): Removed.
  8698. (struct arm_linux_process_info): New.
  8699. (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
  8700. (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
  8701. (arm_linux_find_breakpoints_by_tid): Removed.
  8702. (struct arch_lwp_info): New.
  8703. (arm_linux_find_process_pid): New functions.
  8704. (arm_linux_add_process): New functions.
  8705. (arm_linux_process_info_get): New functions.
  8706. (arm_linux_forget_process): New function.
  8707. (arm_linux_get_debug_reg_state): New function.
  8708. (struct update_registers_data): New.
  8709. (update_registers_callback): New function.
  8710. (arm_linux_insert_hw_breakpoint1): Updated.
  8711. (arm_linux_remove_hw_breakpoint1): Updated.
  8712. (arm_linux_insert_hw_breakpoint): Updated.
  8713. (arm_linux_remove_hw_breakpoint): Updated.
  8714. (arm_linux_insert_watchpoint): Updated.
  8715. (arm_linux_remove_watchpoint): Updated.
  8716. (arm_linux_new_thread): Updated.
  8717. (arm_linux_prepare_to_resume): New function.
  8718. (arm_linux_new_fork): New function.
  8719. (_initialize_arm_linux_nat): Updated.
  8720. 2014-03-12 Pedro Alves <palves@redhat.com>
  8721. * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
  8722. 2014-03-12 Tom Tromey <tromey@redhat.com>
  8723. * inf-child.c (return_zero): New function.
  8724. (inf_child_target): Set to_can_async_p, to_supports_non_stop.
  8725. * aix-thread.c (aix_thread_inferior_created): New function.
  8726. (aix_thread_attach): Remove.
  8727. (init_aix_thread_ops): Don't set to_attach.
  8728. (_initialize_aix_thread): Register inferior_created observer.
  8729. * corelow.c (init_core_ops): Don't set to_attach or
  8730. to_create_inferior.
  8731. * exec.c (init_exec_ops): Don't set to_attach or
  8732. to_create_inferior.
  8733. * infcmd.c (run_command_1): Use find_run_target. Make direct
  8734. target calls.
  8735. (attach_command): Use find_attach_target. Make direct target
  8736. calls.
  8737. * record-btrace.c (init_record_btrace_ops): Don't set
  8738. to_create_inferior.
  8739. * record-full.c (record_full_can_async_p, record_full_is_async_p):
  8740. Remove.
  8741. (init_record_full_ops, init_record_full_core_ops): Update. Don't
  8742. set to_create_inferior.
  8743. * target.c (complete_target_initialization): Add assertion.
  8744. (target_create_inferior): Remove.
  8745. (find_default_attach, find_default_create_inferior): Remove.
  8746. (find_attach_target, find_run_target): New functions.
  8747. (find_default_is_async_p, find_default_can_async_p)
  8748. (target_supports_non_stop, target_attach): Remove.
  8749. (init_dummy_target): Don't set to_create_inferior or
  8750. to_supports_non_stop.
  8751. * target.h (struct target_ops) <to_attach>: Add comment. Remove
  8752. TARGET_DEFAULT_FUNC.
  8753. <to_create_inferior>: Add comment.
  8754. <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
  8755. TARGET_DEFAULT_RETURN.
  8756. <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
  8757. (find_attach_target, find_run_target): Declare.
  8758. (target_create_inferior): Remove.
  8759. (target_has_execution_1): Update comment.
  8760. (target_supports_non_stop): Remove.
  8761. * target-delegates.c: Rebuild.
  8762. 2014-03-12 Pedro Alves <palves@redhat.com>
  8763. * inf-child.h: Update comment to not mention Unix.
  8764. 2014-03-12 Pedro Alves <palves@redhat.com>
  8765. * inf-child.c: Update top comment to not mention Unix. Add
  8766. generic comment describing how this target is meant to be used.
  8767. (inf_child_post_attach, inf_child_post_startup_inferior)
  8768. (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
  8769. Unix in comment.
  8770. 2014-03-12 Pedro Alves <palves@redhat.com>
  8771. * nto-procfs.c: Include inf-child.h.
  8772. (procfs_ops): Delete global.
  8773. (procfs_can_run): Delete method.
  8774. (procfs_detach, procfs_mourn_inferior): Unpush the passed in
  8775. target pointer instead of referencing procfs_ops.
  8776. (procfs_prepare_to_store): Delete.
  8777. (init_procfs_ops): Delete function.
  8778. (procfs_target): New function, based on init_procfs_ops, but
  8779. inherit inf_child_target.
  8780. (_initialize_procfs): Use procfs_target.
  8781. 2014-03-12 Pedro Alves <palves@redhat.com>
  8782. * windows-nat.c: Include inf-child.h.
  8783. (windows_ops): Delete global.
  8784. (windows_open, windows_prepare_to_store, windows_can_run): Delete
  8785. methods.
  8786. (init_windows_ops): Delete function.
  8787. (windows_target): New function, based on init_windows_ops, but
  8788. inherit inf_child_target.
  8789. (_initialize_windows_nat): Use windows_target. Install x86
  8790. specific target methods here.
  8791. 2014-03-10 Doug Evans <xdje42@gmail.com>
  8792. * guile/guile.c (call_initialize_gdb_module): New function.
  8793. (initialize_guile): Replace call to scm_init_guile with call to
  8794. scm_with_guile.
  8795. 2014-03-10 Joel Brobecker <brobecker@adacore.com>
  8796. * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
  8797. in call to TYPE_CODE macro.
  8798. 2014-03-10 Jerome Guitton <guitton@adacore.com>
  8799. * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
  8800. Resolve tagged types to full view.
  8801. 2014-03-10 Hui Zhu <hui@codesourcery.com>
  8802. * target.h (target_insert_breakpoint): Remove "hardware" from its
  8803. comments.
  8804. 2014-03-07 Doug Evans <dje@google.com>
  8805. * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
  8806. 2014-03-07 Doug Evans <dje@google.com>
  8807. * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
  8808. Remove unused local comp_dir_attr. Assert exactly one of
  8809. stub_comp_unit_die, stub_comp_dir is non-NULL.
  8810. 2014-03-07 Joel Brobecker <brobecker@adacore.com>
  8811. * target.h (complete_target_initialization, add_target):
  8812. Add comment.
  8813. 2014-03-07 Pedro Alves <palves@redhat.com>
  8814. * go32-nat.c: Include inf-child.h.
  8815. (go32_ops): Delete global.
  8816. (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
  8817. Delete methods.
  8818. (go32_create_inferior): Push the passed in target pointer instead
  8819. of referencing go32_ops.
  8820. (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
  8821. (go32_target): New function, based on init_go32_ops, but inherit
  8822. inf_child_target.
  8823. (_initialize_go32_nat): Use go32_target. Move parts of
  8824. init_go32_ops here.
  8825. 2014-03-06 Joel Brobecker <brobecker@adacore.com>
  8826. * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
  8827. (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
  8828. SYMBOL_VALUE_ADDRESS.
  8829. (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
  8830. 2014-03-06 Yao Qi <yao@codesourcery.com>
  8831. * breakpoint.c (get_tracepoint_by_number): Remove argument
  8832. optional_p. All callers updated. Adjust comments. Update
  8833. output message.
  8834. * breakpoint.h (get_tracepoint_by_number): Update declaration.
  8835. 2014-03-06 Yao Qi <yao@codesourcery.com>
  8836. * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
  8837. early if get_number returns zero. Use 'p' instead of 'args'.
  8838. 2014-03-06 Yao Qi <yao@codesourcery.com>
  8839. * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
  8840. message.
  8841. 2014-03-06 Yao Qi <yao@codesourcery.com>
  8842. PR breakpoints/16508
  8843. * tracepoint.c (check_trace_running): New function.
  8844. (trace_find_command): Move code to check_trace_running and
  8845. call check_trace_running.
  8846. (trace_find_pc_command): Likewise.
  8847. (trace_find_tracepoint_command): Likewise.
  8848. (trace_find_line_command): Likewise.
  8849. (trace_find_range_command): Likewise.
  8850. * tracepoint.h (check_trace_running): Likewise.
  8851. * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
  8852. 2014-03-06 Yao Qi <yao@codesourcery.com>
  8853. * target.h (struct target_ops) <to_traceframe_info>: Use
  8854. TARGET_DEFAULT_NORETURN (tcomplain ()).
  8855. * target-delegates.c: Regenerated.
  8856. 2014-03-05 Pedro Alves <palves@redhat.com>
  8857. PR gdb/16575
  8858. * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
  8859. void. Update comment.
  8860. (dcache_xfer_memory): Delete.
  8861. (dcache_read_memory_partial): New, based on the read bits of
  8862. dcache_xfer_memory.
  8863. (dcache_update): Add status parameter. Use ULONGEST for len, and
  8864. adjust. Discard cache lines if the reason for the update was
  8865. error.
  8866. * dcache.h (dcache_xfer_memory): Delete declaration.
  8867. (dcache_read_memory_partial): New declaration.
  8868. (dcache_update): Update prototype.
  8869. * target.c (raw_memory_xfer_partial): Update the dcache here.
  8870. (memory_xfer_partial_1): Don't handle dcache writes here.
  8871. 2014-03-05 Mike Frysinger <vapier@gentoo.org>
  8872. * remote-sim.c (gdbsim_load): Add const to prog.
  8873. 2014-03-03 Tom Tromey <tromey@redhat.com>
  8874. * elfread.c (probe_key): Change to bfd_data.
  8875. (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
  8876. now per-BFD, not per-objfile.
  8877. * stap-probe.c (stap_probe_destroy): Update comment.
  8878. (handle_stap_probe): Allocate on the per-BFD obstack.
  8879. 2014-03-03 Tom Tromey <tromey@redhat.com>
  8880. * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
  8881. * breakpoint.c (create_longjmp_master_breakpoint): Use
  8882. get_probe_address.
  8883. (add_location_to_breakpoint, bkpt_probe_insert_location)
  8884. (bkpt_probe_remove_location): Update.
  8885. * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
  8886. * elfread.c (elf_symfile_relocate_probe): Remove.
  8887. (elf_probe_fns): Update.
  8888. (insert_exception_resume_breakpoint): Change type of "probe"
  8889. parameter to bound_probe.
  8890. (check_exception_resume): Update.
  8891. * objfiles.c (objfile_relocate1): Don't relocate probes.
  8892. * probe.c (bound_probe_s): New typedef.
  8893. (parse_probes): Use get_probe_address. Set sal's objfile.
  8894. (find_probe_by_pc): Return a bound_probe.
  8895. (collect_probes): Return a VEC(bound_probe_s).
  8896. (compare_probes): Update.
  8897. (gen_ui_out_table_header_info): Change type of "probes"
  8898. parameter. Update.
  8899. (info_probes_for_ops): Update.
  8900. (get_probe_address): New function.
  8901. (probe_safe_evaluate_at_pc): Update.
  8902. * probe.h (struct probe_ops) <get_probe_address>: New field.
  8903. <set_semaphore, clear_semaphore>: Add objfile parameter.
  8904. (struct probe) <objfile>: Remove field.
  8905. <arch>: New field.
  8906. <address>: Update comment.
  8907. (struct bound_probe): New.
  8908. (find_probe_by_pc): Return a bound_probe.
  8909. (get_probe_address): Declare.
  8910. * solib-svr4.c (struct probe_and_action) <address>: New field.
  8911. (hash_probe_and_action, equal_probe_and_action): Update.
  8912. (register_solib_event_probe): Add address parameter.
  8913. (solib_event_probe_at): Update.
  8914. (svr4_create_probe_breakpoints): Add objfile parameter. Use
  8915. get_probe_address.
  8916. * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
  8917. (stap_get_probe_address): New function.
  8918. (stap_can_evaluate_probe_arguments, compute_probe_arg)
  8919. (compile_probe_arg): Update.
  8920. (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
  8921. address.
  8922. (handle_stap_probe): Don't relocate the probe.
  8923. (stap_relocate): Remove.
  8924. (stap_gen_info_probes_table_values): Update.
  8925. (stap_probe_ops): Remove stap_relocate.
  8926. * symfile-debug.c (debug_sym_relocate_probe): Remove.
  8927. (debug_sym_probe_fns): Update.
  8928. * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
  8929. * symtab.c (init_sal): Use memset.
  8930. * symtab.h (struct symtab_and_line) <objfile>: New field.
  8931. * tracepoint.c (start_tracing, stop_tracing): Update.
  8932. 2014-03-03 Tom Tromey <tromey@redhat.com>
  8933. * probe.h (parse_probes, find_probe_by_pc)
  8934. (find_probes_in_objfile): Fix comments.
  8935. 2014-03-02 Doug Evans <xdje42@gmail.com>
  8936. * infrun.c (handle_signal_stop): Replace test for
  8937. TARGET_WAITKIND_STOPPED with an assert.
  8938. 2014-03-02 Doug Evans <xdje42@gmail.com>
  8939. * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
  8940. 2014-03-02 Doug Evans <xdje42@gmail.com>
  8941. * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
  8942. 2014-03-01 Mark Kettenis <kettenis@gnu.org>
  8943. * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
  8944. 2014-03-01 Mark Kettenis <kettenis@gnu.org>
  8945. * i386obsd-nat.c: Include "obsd-nat.h".
  8946. (_initialize_i386obsd_nat): Call obsd_add_target instead of
  8947. add_target.
  8948. * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
  8949. 2014-03-01 Mark Kettenis <kettenis@gnu.org>
  8950. * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
  8951. 2014-03-01 Mark Kettenis <kettenis@gnu.org>
  8952. * mips64obsd-nat.c: Include "obsd-nath".
  8953. (_initialize_mips64obsd_nat): Call obsd_add_target instead of
  8954. add_target
  8955. * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
  8956. 2014-03-01 Mark Kettenis <kettenis@gnu.org>
  8957. * amd64obsd-nat.c: Include "obsd-nat,h.
  8958. (_initialize_amd64obsd_nat): Call obsd_add_target instead of
  8959. add_target.
  8960. * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
  8961. 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
  8962. * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
  8963. (find_overload_match): Update call to find_oload_champ.
  8964. (find_oload_champ_namespace_loop): Likewise
  8965. 2014-02-28 Mark Kettenis <kettenis@gnu.org>
  8966. * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
  8967. * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
  8968. * config/sparc/obsd64.mh: New file.
  8969. * sparc64obsd-nat.c: New file.
  8970. * obsd-nat.h: New file.
  8971. * obsd-nat.c: New file.
  8972. * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
  8973. (ALLDEPFILES): Add obsd-nat.c.
  8974. 2014-02-28 Tom Tromey <tromey@redhat.com>
  8975. * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
  8976. * cli-out.h (cli_ui_out_impl): Now const.
  8977. * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
  8978. * ui-out.c (struct ui_out) <impl>: Now const.
  8979. (default_ui_out_impl): Now const.
  8980. (ui_out_new): Make 'impl' parameter const.
  8981. * ui-out.h (ui_out_new): Update.
  8982. 2014-02-27 Mark Kettenis <kettenis@gnu.org>
  8983. * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
  8984. 2014-02-27 Mark Kettenis <kettenis@gnu.org>
  8985. * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
  8986. 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
  8987. Additional PR 8882 fix.
  8988. * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
  8989. 2014-02-27 Pedro Alves <palves@redhat.com>
  8990. * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
  8991. isn't set.
  8992. 2014-02-27 Pedro Alves <palves@redhat.com>
  8993. PR 12702
  8994. * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
  8995. * nat/linux-waitpid.c: Include string.h.
  8996. (status_to_str): Moved here and made extern.
  8997. * nat/linux-waitpid.h (status_to_str): New declaration.
  8998. 2014-02-27 Hui Zhu <hui@codesourcery.com>
  8999. PR 12702
  9000. * infrun.c (ptid_match): Move ...
  9001. * common/ptid.c (ptid_match): ... here.
  9002. * inferior.h (ptid_match): Move ...
  9003. * common/ptid.h (ptid_match): ... here.
  9004. 2014-02-27 Mark Kettenis <kettenis@gnu.org>
  9005. * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
  9006. * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
  9007. gdb_target_obs.
  9008. 2014-02-27 Mark Kettenis <kettenis@gnu.org>
  9009. * obsd-tdep.c (obsd_auxv_parse): New function.
  9010. (obsd_init_abi): Set auxv_parse.
  9011. * gdbarch.sh (auxv_parse): New.
  9012. * gdbarch.h: Regenerated.
  9013. * gdbarch.c: Regenerated.
  9014. * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
  9015. 2014-02-26 Ludovic Courtès <ludo@gnu.org>
  9016. * guile/scm-value.c (gdbscm_history_append_x): New function.
  9017. (value_functions): Add it.
  9018. 2014-02-27 Joel Brobecker <brobecker@adacore.com>
  9019. * dwarf2read.c (attr_value_as_address): New function.
  9020. (dwarf2_find_base_address, read_call_site_scope): Use
  9021. attr_value_as_address in place of DW_ADDR.
  9022. (dwarf2_get_pc_bounds): Use attr_value_as_address to get
  9023. the low and high addresses. Slight rework of the handling
  9024. of the high pc being a constant form, and limit it to
  9025. DWARF verson 4 or higher.
  9026. (dwarf2_record_block_ranges): Likewise.
  9027. (read_partial_die): Likewise.
  9028. (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
  9029. 2014-02-26 Tom Tromey <tromey@redhat.com>
  9030. * exec.c (exec_file_attach): Hold a reference to exec_bfd.
  9031. 2014-02-26 Tom Tromey <tromey@redhat.com>
  9032. * elfread.c (elf_read_minimal_symbols): Return early if
  9033. minimal symbols have already been read. Add "ei" parameter.
  9034. (elf_symfile_read): Call elf_read_minimal_symbols earlier.
  9035. * minsyms.c (prim_record_minimal_symbol_full): Update.
  9036. * objfiles.h (struct objstats) <n_minsyms>: Move...
  9037. (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
  9038. * symmisc.c (print_objfile_statistics): Update.
  9039. 2014-02-26 Tom Tromey <tromey@redhat.com>
  9040. * elfread.c (elf_read_minimal_symbols): New function, from
  9041. elf_symfile_read.
  9042. (elf_symfile_read): Call it.
  9043. 2014-02-26 Tom Tromey <tromey@redhat.com>
  9044. * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
  9045. (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
  9046. (lookup_minimal_symbol_solib_trampoline)
  9047. (lookup_minimal_symbol_by_pc_section_1)
  9048. (lookup_minimal_symbol_and_objfile): Update.
  9049. (prim_record_minimal_symbol_full): Use the per-BFD obstack.
  9050. Don't allocate a minimal symbol if minsyms have already been read.
  9051. (build_minimal_symbol_hash_tables): Update.
  9052. (install_minimal_symbols): Do nothing if minsyms already read.
  9053. Use the per-BFD obstack.
  9054. (terminate_minimal_symbol_table): Use the per-BFD obstack.
  9055. * objfiles.c (allocate_objfile): Call
  9056. terminate_minimal_symbol_table later.
  9057. (have_minimal_symbols): Update.
  9058. * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
  9059. minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
  9060. Move from struct objfile.
  9061. <minsyms_read>: New field.
  9062. (struct objfile) <msymbols, minimal_symbol_count,
  9063. msymbol_hash, msymbol_demangled_hash>: Move.
  9064. (ALL_OBJFILE_MSYMBOLS): Update.
  9065. * symfile.c (read_symbols): Set minsyms_read.
  9066. (reread_symbols): Update.
  9067. * symmisc.c (dump_objfile, dump_msymbols): Update.
  9068. 2014-02-26 Tom Tromey <tromey@redhat.com>
  9069. * minsyms.c (msymbols_sort): Remove.
  9070. * minsyms.h (msymbols_sort): Remove.
  9071. * objfiles.c (objfile_relocate1): Don't relocate minsyms.
  9072. * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
  9073. * elfread.c (elf_symtab_read): Don't add section offsets.
  9074. * xcoffread.c (record_minimal_symbol): Don't add section offset
  9075. to minimal symbol address.
  9076. * somread.c (text_offset, data_offset): Remove.
  9077. (som_symtab_read): Don't add section offsets to minimal symbol
  9078. addresses.
  9079. * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
  9080. Don't add section offsets to minimal symbols.
  9081. * coffread.c (coff_symtab_read): Don't add section offsets
  9082. to minimal symbol addresses.
  9083. * machoread.c (macho_symtab_add_minsym): Don't add section offset
  9084. to minimal symbol addresses.
  9085. * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
  9086. section offset to minimal symbol addresses.
  9087. * mdebugread.c (parse_partial_symbols): Don't add section
  9088. offset to minimal symbol addresses.
  9089. * dbxread.c (read_dbx_dynamic_symtab): Don't add section
  9090. offset to minimal symbol addresses.
  9091. 2014-02-26 Tom Tromey <tromey@redhat.com>
  9092. * ada-lang.c (ada_main_name): Update.
  9093. (ada_add_standard_exceptions): Update.
  9094. * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
  9095. * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
  9096. * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
  9097. * auxv.c (ld_so_xfer_auxv): Update.
  9098. * avr-tdep.c (avr_scan_prologue): Update.
  9099. * ax-gdb.c (gen_var_ref): Update.
  9100. * blockframe.c (get_pc_function_start)
  9101. (find_pc_partial_function_gnu_ifunc): Update.
  9102. * breakpoint.c (create_overlay_event_breakpoint)
  9103. (create_longjmp_master_breakpoint)
  9104. (create_std_terminate_master_breakpoint)
  9105. (create_exception_master_breakpoint): Update.
  9106. * bsd-uthread.c (bsd_uthread_lookup_address): Update.
  9107. * c-valprint.c (c_val_print): Update.
  9108. * coff-pe-read.c (add_pe_forwarded_sym): Update.
  9109. * common/agent.c (agent_look_up_symbols): Update.
  9110. * dbxread.c (find_stab_function_addr, end_psymtab): Update.
  9111. * dwarf2loc.c (call_site_to_target_addr): Update.
  9112. * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
  9113. * elfread.c (elf_gnu_ifunc_record_cache)
  9114. (elf_gnu_ifunc_resolve_by_got): Update.
  9115. * findvar.c (default_read_var_value): Update.
  9116. * frame.c (inside_main_func): Update.
  9117. * frv-tdep.c (frv_frame_this_id): Update.
  9118. * glibc-tdep.c (glibc_skip_solib_resolver): Update.
  9119. * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
  9120. Update.
  9121. * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
  9122. (hppa_hpux_find_dummy_bpaddr): Update.
  9123. * hppa-tdep.c (hppa_symbol_address): Update.
  9124. * infcmd.c (until_next_command): Update.
  9125. * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
  9126. Update.
  9127. * linespec.c (minsym_found, add_minsym): Update.
  9128. * linux-nat.c (get_signo): Update.
  9129. * linux-thread-db.c (inferior_has_bug): Update.
  9130. * m32c-tdep.c (m32c_return_value)
  9131. (m32c_m16c_address_to_pointer): Update.
  9132. * m32r-tdep.c (m32r_frame_this_id): Update.
  9133. * m68hc11-tdep.c (m68hc11_get_register_info): Update.
  9134. * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
  9135. * maint.c (maintenance_translate_address): Update.
  9136. * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
  9137. (frob_address): New function.
  9138. (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
  9139. frob_address. Rename parameter to "pc_in".
  9140. (compare_minimal_symbols, compact_minimal_symbols): Use raw
  9141. addresses.
  9142. (find_solib_trampoline_target, minimal_symbol_upper_bound):
  9143. Update.
  9144. * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
  9145. * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
  9146. * objc-lang.c (find_objc_msgsend): Update.
  9147. * objfiles.c (objfile_relocate1): Update.
  9148. * obsd-tdep.c (obsd_skip_solib_resolver): Update.
  9149. * p-valprint.c (pascal_val_print): Update.
  9150. * parse.c (write_exp_msymbol): Update.
  9151. * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
  9152. (ppc_elfv2_skip_entrypoint): Update.
  9153. * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
  9154. * printcmd.c (build_address_symbolic, msym_info)
  9155. (address_info): Update.
  9156. * proc-service.c (ps_pglobal_lookup): Update.
  9157. * psymtab.c (find_pc_sect_psymtab_closer)
  9158. (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
  9159. Change msymbol parameter to bound_minimal_symbol.
  9160. * ravenscar-thread.c (get_running_thread_id): Update.
  9161. * remote.c (remote_check_symbols): Update.
  9162. * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
  9163. address.
  9164. * sol2-tdep.c (sol2_skip_solib_resolver): Update.
  9165. * solib-dsbt.c (lm_base): Update.
  9166. * solib-frv.c (lm_base, main_got): Update.
  9167. * solib-irix.c (locate_base): Update.
  9168. * solib-som.c (som_solib_create_inferior_hook)
  9169. (link_map_start): Update.
  9170. * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
  9171. * solib-svr4.c (elf_locate_base, enable_break): Update.
  9172. * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
  9173. (flush_ea_cache): Update.
  9174. * stabsread.c (define_symbol, scan_file_globals): Update.
  9175. * stack.c (find_frame_funname): Update.
  9176. * symfile-debug.c (debug_qf_expand_symtabs_matching)
  9177. (debug_qf_find_pc_sect_symtab): Update.
  9178. * symfile.c (simple_read_overlay_table)
  9179. (simple_overlay_update): Update.
  9180. * symfile.h (struct quick_symbol_functions)
  9181. <find_pc_sect_symtab>: Change type of msymbol to
  9182. bound_minimal_symbol.
  9183. * symmisc.c (dump_msymbols): Update.
  9184. * symtab.c (find_pc_sect_symtab_via_partial)
  9185. (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
  9186. (search_symbols, print_msymbol_info): Update.
  9187. * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
  9188. (MSYMBOL_VALUE_ADDRESS): Redefine.
  9189. (BMSYMBOL_VALUE_ADDRESS): New macro.
  9190. * tracepoint.c (scope_info): Update.
  9191. * tui/tui-disasm.c (tui_find_disassembly_address)
  9192. (tui_get_begin_asm_address): Update.
  9193. * valops.c (find_function_in_inferior): Update.
  9194. * value.c (value_static_field, value_fn_field): Update.
  9195. 2014-02-26 Tom Tromey <tromey@redhat.com>
  9196. * ada-lang.c (ada_update_initial_language): Update.
  9197. (ada_main_name, ada_has_this_exception_support): Update.
  9198. * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
  9199. * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
  9200. * arm-tdep.c (arm_skip_stub): Update.
  9201. * auxv.c (ld_so_xfer_auxv): Update.
  9202. * avr-tdep.c (avr_scan_prologue): Update.
  9203. * ax-gdb.c (gen_var_ref): Update.
  9204. * breakpoint.c (struct breakpoint_objfile_data)
  9205. <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
  9206. type to bound_minimal_symbol.
  9207. (create_overlay_event_breakpoint)
  9208. (create_longjmp_master_breakpoint)
  9209. (create_std_terminate_master_breakpoint)
  9210. (create_exception_master_breakpoint): Update.
  9211. * bsd-uthread.c (bsd_uthread_lookup_address): Update.
  9212. * c-exp.y (classify_name): Update.
  9213. * coffread.c (coff_symfile_read): Update.
  9214. * common/agent.c (agent_look_up_symbols): Update.
  9215. * d-lang.c (d_main_name): Update.
  9216. * dbxread.c (find_stab_function_addr, end_psymtab): Update.
  9217. * dec-thread.c (enable_dec_thread): Update.
  9218. * dwarf2loc.c (call_site_to_target_addr): Update.
  9219. * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
  9220. * eval.c (evaluate_subexp_standard): Update.
  9221. * findvar.c (struct minsym_lookup_data) <result>: Change type
  9222. to bound_minimal_symbol.
  9223. <objfile>: Remove.
  9224. (minsym_lookup_iterator_cb, default_read_var_value): Update.
  9225. * frame.c (inside_main_func): Update.
  9226. * frv-tdep.c (frv_frame_this_id): Update.
  9227. * gcore.c (call_target_sbrk): Update.
  9228. * glibc-tdep.c (glibc_skip_solib_resolver): Update.
  9229. * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
  9230. Update.
  9231. * go-lang.c (go_main_name): Update.
  9232. * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
  9233. (hppa_hpux_find_import_stub_for_addr): Update.
  9234. * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
  9235. Update. Change return type.
  9236. * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
  9237. type.
  9238. * jit.c (jit_breakpoint_re_set_internal): Update.
  9239. * linux-fork.c (inferior_call_waitpid, checkpoint_command):
  9240. Update.
  9241. * linux-nat.c (get_signo): Update.
  9242. * linux-thread-db.c (inferior_has_bug): Update
  9243. * m32c-tdep.c (m32c_return_value)
  9244. (m32c_m16c_address_to_pointer): Update.
  9245. * m32r-tdep.c (m32r_frame_this_id): Update.
  9246. * m68hc11-tdep.c (m68hc11_get_register_info): Update.
  9247. * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
  9248. * minsyms.c (lookup_minimal_symbol_internal): Rename to
  9249. lookup_minimal_symbol. Change return type.
  9250. (lookup_minimal_symbol): Remove.
  9251. (lookup_bound_minimal_symbol): Update.
  9252. (lookup_minimal_symbol_text): Change return type.
  9253. (lookup_minimal_symbol_solib_trampoline): Change return type.
  9254. * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
  9255. (lookup_minimal_symbol_solib_trampoline): Change return type.
  9256. * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
  9257. * objc-lang.c (lookup_objc_class, lookup_child_selector)
  9258. (value_nsstring, find_imps): Update.
  9259. * obsd-tdep.c (obsd_skip_solib_resolver): Update.
  9260. * p-lang.c (pascal_main_name): Update.
  9261. * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
  9262. * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
  9263. * proc-service.c (ps_pglobal_lookup): Update.
  9264. * ravenscar-thread.c (get_running_thread_msymbol): Change
  9265. return type.
  9266. (has_ravenscar_runtime, get_running_thread_id): Update.
  9267. * remote.c (remote_check_symbols): Update.
  9268. * sol-thread.c (ps_pglobal_lookup): Update.
  9269. * sol2-tdep.c (sol2_skip_solib_resolver): Update.
  9270. * solib-dsbt.c (lm_base): Update.
  9271. * solib-frv.c (lm_base, frv_relocate_section_addresses):
  9272. Update.
  9273. * solib-irix.c (locate_base): Update.
  9274. * solib-som.c (som_solib_create_inferior_hook)
  9275. (som_solib_desire_dynamic_linker_symbols, link_map_start):
  9276. Update.
  9277. * solib-spu.c (spu_enable_break): Update.
  9278. * solib-svr4.c (elf_locate_base, enable_break): Update.
  9279. * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
  9280. (flush_ea_cache): Update.
  9281. * stabsread.c (define_symbol): Update.
  9282. * symfile.c (simple_read_overlay_table): Update.
  9283. * symtab.c (find_pc_sect_line): Update.
  9284. * tracepoint.c (scope_info): Update.
  9285. * tui-disasm.c (tui_get_begin_asm_address): Update.
  9286. * value.c (value_static_field): Update.
  9287. 2014-02-26 Tom Tromey <tromey@redhat.com>
  9288. * minsyms.c (prim_record_minimal_symbol_full): Use
  9289. SET_MSYMBOL_VALUE_ADDRESS.
  9290. * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
  9291. * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
  9292. SET_MSYMBOL_VALUE_ADDRESS.
  9293. * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
  9294. (SET_MSYMBOL_VALUE_ADDRESS): New macro.
  9295. 2014-02-26 Tom Tromey <tromey@redhat.com>
  9296. * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
  9297. (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
  9298. (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
  9299. (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
  9300. (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
  9301. (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
  9302. (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
  9303. * ada-lang.c (ada_main_name): Update.
  9304. (ada_lookup_simple_minsym): Update.
  9305. (ada_make_symbol_completion_list): Update.
  9306. (ada_add_standard_exceptions): Update.
  9307. * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
  9308. * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
  9309. * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
  9310. * arm-tdep.c (skip_prologue_function): Update.
  9311. (arm_skip_stack_protector, arm_skip_stub): Update.
  9312. * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
  9313. (arm_wince_skip_main_prologue): Update.
  9314. * auxv.c (ld_so_xfer_auxv): Update.
  9315. * avr-tdep.c (avr_scan_prologue): Update.
  9316. * ax-gdb.c (gen_var_ref): Update.
  9317. * block.c (call_site_for_pc): Update.
  9318. * blockframe.c (get_pc_function_start): Update.
  9319. (find_pc_partial_function_gnu_ifunc): Update.
  9320. * breakpoint.c (create_overlay_event_breakpoint): Update.
  9321. (create_longjmp_master_breakpoint): Update.
  9322. (create_std_terminate_master_breakpoint): Update.
  9323. (create_exception_master_breakpoint): Update.
  9324. (resolve_sal_pc): Update.
  9325. * bsd-uthread.c (bsd_uthread_lookup_address): Update.
  9326. * btrace.c (ftrace_print_function_name, ftrace_function_switched):
  9327. Update.
  9328. * c-valprint.c (c_val_print): Update.
  9329. * coff-pe-read.c (add_pe_forwarded_sym): Update.
  9330. * coffread.c (coff_symfile_read): Update.
  9331. * common/agent.c (agent_look_up_symbols): Update.
  9332. * dbxread.c (find_stab_function_addr): Update.
  9333. (end_psymtab): Update.
  9334. * dwarf2loc.c (call_site_to_target_addr): Update.
  9335. (func_verify_no_selftailcall): Update.
  9336. (tailcall_dump): Update.
  9337. (call_site_find_chain_1): Update.
  9338. (dwarf_expr_reg_to_entry_parameter): Update.
  9339. * elfread.c (elf_gnu_ifunc_record_cache): Update.
  9340. (elf_gnu_ifunc_resolve_by_got): Update.
  9341. * f-valprint.c (info_common_command): Update.
  9342. * findvar.c (read_var_value): Update.
  9343. * frame.c (get_prev_frame_1): Update.
  9344. (inside_main_func): Update.
  9345. * frv-tdep.c (frv_skip_main_prologue): Update.
  9346. (frv_frame_this_id): Update.
  9347. * glibc-tdep.c (glibc_skip_solib_resolver): Update.
  9348. * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
  9349. * gnu-v3-abi.c (gnuv3_rtti_type): Update.
  9350. (gnuv3_skip_trampoline): Update.
  9351. * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
  9352. (hppa64_hpux_in_solib_call_trampoline): Update.
  9353. (hppa_hpux_skip_trampoline_code): Update.
  9354. (hppa64_hpux_search_dummy_call_sequence): Update.
  9355. (hppa_hpux_find_import_stub_for_addr): Update.
  9356. (hppa_hpux_find_dummy_bpaddr): Update.
  9357. * hppa-tdep.c (hppa_symbol_address)
  9358. (hppa_lookup_stub_minimal_symbol): Update.
  9359. * i386-tdep.c (i386_skip_main_prologue): Update.
  9360. (i386_pe_skip_trampoline_code): Update.
  9361. * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
  9362. * infcall.c (get_function_name): Update.
  9363. * infcmd.c (until_next_command): Update.
  9364. * jit.c (jit_breakpoint_re_set_internal): Update.
  9365. (jit_inferior_init): Update.
  9366. * linespec.c (minsym_found): Update.
  9367. (add_minsym): Update.
  9368. * linux-fork.c (info_checkpoints_command): Update.
  9369. * linux-nat.c (get_signo): Update.
  9370. * linux-thread-db.c (inferior_has_bug): Update.
  9371. * m32c-tdep.c (m32c_return_value): Update.
  9372. (m32c_m16c_address_to_pointer): Update.
  9373. (m32c_m16c_pointer_to_address): Update.
  9374. * m32r-tdep.c (m32r_frame_this_id): Update.
  9375. * m68hc11-tdep.c (m68hc11_get_register_info): Update.
  9376. * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
  9377. * maint.c (maintenance_translate_address): Update.
  9378. * minsyms.c (add_minsym_to_hash_table): Update.
  9379. (add_minsym_to_demangled_hash_table): Update.
  9380. (msymbol_objfile): Update.
  9381. (lookup_minimal_symbol): Update.
  9382. (iterate_over_minimal_symbols): Update.
  9383. (lookup_minimal_symbol_text): Update.
  9384. (lookup_minimal_symbol_by_pc_name): Update.
  9385. (lookup_minimal_symbol_solib_trampoline): Update.
  9386. (lookup_minimal_symbol_by_pc_section_1): Update.
  9387. (lookup_minimal_symbol_and_objfile): Update.
  9388. (prim_record_minimal_symbol_full): Update.
  9389. (compare_minimal_symbols): Update.
  9390. (compact_minimal_symbols): Update.
  9391. (build_minimal_symbol_hash_tables): Update.
  9392. (install_minimal_symbols): Update.
  9393. (terminate_minimal_symbol_table): Update.
  9394. (find_solib_trampoline_target): Update.
  9395. (minimal_symbol_upper_bound): Update.
  9396. * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
  9397. * mips-tdep.c (mips_stub_frame_sniffer): Update.
  9398. (mips_skip_pic_trampoline_code): Update.
  9399. * msp430-tdep.c (msp430_skip_trampoline_code): Update.
  9400. * objc-lang.c (selectors_info): Update.
  9401. (classes_info): Update.
  9402. (find_methods): Update.
  9403. (find_imps): Update.
  9404. (find_objc_msgsend): Update.
  9405. * objfiles.c (objfile_relocate1): Update.
  9406. * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
  9407. * obsd-tdep.c (obsd_skip_solib_resolver): Update.
  9408. * p-valprint.c (pascal_val_print): Update.
  9409. * parse.c (write_exp_msymbol): Update.
  9410. * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
  9411. (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
  9412. * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
  9413. * printcmd.c (build_address_symbolic): Update.
  9414. (sym_info): Update.
  9415. (address_info): Update.
  9416. * proc-service.c (ps_pglobal_lookup): Update.
  9417. * psymtab.c (find_pc_sect_psymtab_closer): Update.
  9418. (find_pc_sect_psymtab): Update.
  9419. * python/py-framefilter.c (py_print_frame): Update.
  9420. * ravenscar-thread.c (get_running_thread_id): Update.
  9421. * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
  9422. Update.
  9423. * remote.c (remote_check_symbols): Update.
  9424. * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
  9425. (rs6000_skip_trampoline_code): Update.
  9426. * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
  9427. * sol2-tdep.c (sol2_skip_solib_resolver): Update.
  9428. * solib-dsbt.c (lm_base): Update.
  9429. * solib-frv.c (lm_base): Update.
  9430. (main_got): Update.
  9431. * solib-irix.c (locate_base): Update.
  9432. * solib-som.c (som_solib_create_inferior_hook): Update.
  9433. (som_solib_desire_dynamic_linker_symbols): Update.
  9434. (link_map_start): Update.
  9435. * solib-spu.c (spu_enable_break): Update.
  9436. (ocl_enable_break): Update.
  9437. * solib-svr4.c (elf_locate_base): Update.
  9438. (enable_break): Update.
  9439. * spu-tdep.c (spu_get_overlay_table): Update.
  9440. (spu_catch_start): Update.
  9441. (flush_ea_cache): Update.
  9442. * stabsread.c (define_symbol): Update.
  9443. (scan_file_globals): Update.
  9444. * stack.c (find_frame_funname): Update.
  9445. (frame_info): Update.
  9446. * symfile.c (simple_read_overlay_table): Update.
  9447. (simple_overlay_update): Update.
  9448. * symmisc.c (dump_msymbols): Update.
  9449. * symtab.c (fixup_section): Update.
  9450. (find_pc_sect_line): Update.
  9451. (skip_prologue_sal): Update.
  9452. (search_symbols): Update.
  9453. (print_msymbol_info): Update.
  9454. (rbreak_command): Update.
  9455. (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
  9456. (completion_list_objc_symbol): Update.
  9457. (default_make_symbol_completion_list_break_on): Update.
  9458. * tracepoint.c (scope_info): Update.
  9459. * tui/tui-disasm.c (tui_find_disassembly_address): Update.
  9460. (tui_get_begin_asm_address): Update.
  9461. * valops.c (find_function_in_inferior): Update.
  9462. * value.c (value_static_field): Update.
  9463. (value_fn_field): Update.
  9464. 2014-02-26 Tom Tromey <tromey@redhat.com>
  9465. * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
  9466. bound minimal symbols. Move code that knows about minsym
  9467. table layout...
  9468. * minsyms.c (minimal_symbol_upper_bound): ... here. New
  9469. function.
  9470. * minsyms.h (minimal_symbol_upper_bound): Declare.
  9471. * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
  9472. minimal_symbol_upper_bound.
  9473. 2014-02-27 Joel Brobecker <brobecker@adacore.com>
  9474. * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
  9475. Use the type's name if its basic type does not have a tag.
  9476. 2014-02-27 Joel Brobecker <brobecker@adacore.com>
  9477. * dwarf2read.c (read_subrange_type): Add comment.
  9478. 2014-02-27 Joel Brobecker <brobecker@adacore.com>
  9479. * dwarf2read.c (update_enumeration_type_from_children): New
  9480. function, mostly extracted from process_structure_scope.
  9481. (read_enumeration_type): Call update_enumeration_type_from_children.
  9482. (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
  9483. and flag_flag_enum fields.
  9484. 2014-02-26 Pedro Alves <palves@redhat.com>
  9485. * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
  9486. (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
  9487. to_xfer_partial method.
  9488. 2014-02-26 Pedro Alves <palves@redhat.com>
  9489. * target.c (complete_target_initialization): Don't install
  9490. default_xfer_partial as to_xfer_partial hook.
  9491. (nomemory): Delete.
  9492. (update_current_target): Don't INHERIT nor de_fault
  9493. deprecated_xfer_memory. Delete de_fault macro.
  9494. (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
  9495. (setup_target_debug): Don't install a deprecated_xfer_memory hook.
  9496. * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
  9497. field.
  9498. 2014-02-26 Pedro Alves <palves@redhat.com>
  9499. * go32-nat.c (my_write_child): New function.
  9500. (go32_xfer_memory): Rewrite as to_xfer_partial helper.
  9501. (go32_xfer_partial): New function.
  9502. (init_go32_ops): Don't install a deprecated_xfer_memory hook.
  9503. Instead install a to_xfer_partial hook.
  9504. 2014-02-26 Pedro Alves <palves@redhat.com>
  9505. * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
  9506. to_xfer_partial helper. Rewrite.
  9507. (procfs_xfer_partial): New function.
  9508. (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
  9509. Install a to_xfer_partial hook.
  9510. 2014-02-26 Pedro Alves <palves@redhat.com>
  9511. * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
  9512. (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
  9513. (m32r_xfer_partial): New function.
  9514. (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
  9515. Install a to_xfer_partial hook.
  9516. 2014-02-26 Pedro Alves <palves@redhat.com>
  9517. * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
  9518. helper.
  9519. (mips_xfer_partial): New function.
  9520. (_initialize_remote_mips): Don't install a deprecated_xfer_memory
  9521. hook. Install a to_xfer_partial hook.
  9522. 2014-02-26 Joel Brobecker <brobecker@adacore.com>
  9523. * gdbtypes.h (create_array_type_with_stride): Add declaration.
  9524. * gdbtypes.c (create_array_type_with_stride): New function,
  9525. renaming create_array_type, but with an added parameter
  9526. called "bit_stride".
  9527. (create_array_type): Re-implement using
  9528. create_array_type_with_stride.
  9529. * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
  9530. and DW_AT_bit_stride attributes.
  9531. 2014-02-26 Pedro Alves <palves@redhat.com>
  9532. * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
  9533. task-specific breakpoints.
  9534. 2014-02-25 Pedro Alves <palves@redhat.com>
  9535. * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
  9536. handling of object == TARGET_OBJECT_UNWIND_TABLE.
  9537. 2014-02-25 Stan Shebs <stan@codesourcery.com>
  9538. * defs.h: Annotate comments for Doxygen.
  9539. 2014-02-25 Tom Tromey <tromey@redhat.com>
  9540. * target.h (target_ignore): Don't declare.
  9541. * target.c (target_ignore): Remove.
  9542. 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
  9543. PR gdb/16626
  9544. * auto-load.c (auto_load_objfile_script_1): Change filename to
  9545. debugfile.
  9546. 2014-02-25 Joel Brobecker <brobecker@adacore.com>
  9547. * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
  9548. documentation. Adjust prototype to match the target_ops
  9549. to_xfer_partial method. Adjust implementation accordingly.
  9550. 2014-02-25 Hui Zhu <hui@codesourcery.com>
  9551. * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
  9552. to_traceframe_info.
  9553. 2014-02-25 Kevin Buettner <kevinb@redhat.com>
  9554. * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
  9555. (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
  9556. (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
  9557. (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
  9558. (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
  9559. (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
  9560. (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
  9561. (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
  9562. New constants.
  9563. (rl78_register_type): Use a data pointer type for SP and
  9564. new pseudo registers mentioned above. Use a 16 bit integer
  9565. type for all other register pairs.
  9566. (rl78_register_name, rl78_g10_register_name): Update for
  9567. new pseudo registers.
  9568. (rl78_pseudo_register_read): Likewise.
  9569. (rl78_pseudo_register_write): Likewise.
  9570. (rl78_dwarf_reg_to_regnum): Return register numbers representing
  9571. to the newly added pseudo registers.
  9572. 2014-02-24 Doug Evans <dje@google.com>
  9573. * value.c (record_latest_value): Fix comment.
  9574. * printcmd.c (print_command_1): Remove code to handle -1 return from
  9575. record_latest_value.
  9576. 2014-02-24 Pedro Alves <palves@redhat.com>
  9577. * procfs.c (procfs_target): Don't install procfs_xfer_memory as
  9578. deprecated_xfer_memory hook.
  9579. (procfs_xfer_partial): Call procfs_xfer_memory instead
  9580. of the deprecated_xfer_memory target hook.
  9581. (procfs_xfer_memory): Adjust interface as a to_xfer_partial
  9582. helper.
  9583. 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
  9584. * windows-nat.c (windows_xfer_shared_libraries): Return
  9585. TARGET_XFER_EOF if LEN is zero to fix an assert failure when
  9586. requested object is TARGET_OBJECT_LIBRARIES.
  9587. 2014-02-24 Yao Qi <yao@codesourcery.com>
  9588. * target.h (enum target_xfer_status)
  9589. <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
  9590. <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
  9591. explicitly. New.
  9592. * corefile.c (memory_error_message): User updated.
  9593. * exec.c (section_table_read_available_memory): Likewise.
  9594. * record-btrace.c (record_btrace_xfer_partial): Likewise.
  9595. * target.c (target_xfer_status_to_string): Likewise.
  9596. (raw_memory_xfer_partial): Likewise.
  9597. (memory_xfer_partial_1, target_xfer_partial): Likewise.
  9598. * valops.c (read_value_memory): Likewise.
  9599. * exec.h: Update comments.
  9600. 2014-02-24 Yao Qi <yao@codesourcery.com>
  9601. * target.c (target_xfer_status_to_string): Rename argument err
  9602. to status.
  9603. * target.h (target_xfer_status_to_string): Update declaration.
  9604. Replace target_xfer_error_to_string with
  9605. target_xfer_status_to_string in comment.
  9606. 2014-02-24 Yao Qi <yao@codesourcery.com>
  9607. * mips-linux-nat.c (super_close): Update its type.
  9608. (mips_linux_close): Pass 'self' to super_close.
  9609. 2014-02-24 Yao Qi <yao@codesourcery.com>
  9610. * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
  9611. * corefile.c (read_memory): Adjusted.
  9612. * target.c (target_write_with_progress): Adjusted.
  9613. 2014-02-23 Yao Qi <yao@codesourcery.com>
  9614. Revert two patches:
  9615. 2013-10-25 Yao Qi <yao@codesourcery.com>
  9616. * remote.c (remote_traceframe_info): Return early if
  9617. traceframe is not selected.
  9618. 2013-07-19 Yao Qi <yao@codesourcery.com>
  9619. * target.c (update_current_target): Change the default action
  9620. of 'to_traceframe_info' from tcomplain to return_zero.
  9621. * target.h (struct target_ops) <to_traceframe_info>: Add more
  9622. comments.
  9623. 2014-02-23 Yao Qi <yao@codesourcery.com>
  9624. * valops.c (read_value_memory): Rewrite it. Call
  9625. target_xfer_partial in a loop.
  9626. * exec.h (section_table_available_memory): Remove declaration.
  9627. Move comments to ...
  9628. * exec.c (section_table_available_memory): ... here. Make it
  9629. static.
  9630. 2014-02-23 Yao Qi <yao@codesourcery.com>
  9631. * exec.c (section_table_read_available_memory): New function.
  9632. * exec.h (section_table_read_available_memory): Declare.
  9633. * ctf.c (ctf_xfer_partial): Call
  9634. section_table_read_available_memory.
  9635. * tracefile-tfile.c (tfile_xfer_partial): Likewise.
  9636. 2014-02-23 Yao Qi <yao@codesourcery.com>
  9637. * ctf.c (ctf_xfer_partial): Move code to ...
  9638. * exec.c (exec_read_partial_read_only): ... it. New function.
  9639. * tracefile-tfile.c (tfile_xfer_partial): Likewise.
  9640. * tracefile.c: Include "exec.h".
  9641. * exec.h (exec_read_partial_read_only): Declare.
  9642. 2014-02-23 Yao Qi <yao@codesourcery.com>
  9643. * tracefile-tfile.c (tfile_has_all_memory): Remove.
  9644. (tfile_has_memory): Remove.
  9645. (init_tfile_ops): Don't set fields to_has_all_memory and
  9646. to_has_memory of tfile_ops.
  9647. * tracefile.c (tracefile_has_all_memory): New function.
  9648. (tracefile_has_memory): New function.
  9649. (init_tracefile_ops): Initialize fields to_has_all_memory and
  9650. to_has_memory of 'ops'.
  9651. 2014-02-23 Yao Qi <yao@codesourcery.com>
  9652. * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
  9653. (ctf_thread_alive, ctf_get_trace_status): Remove.
  9654. (init_ctf_ops): Don't set some fields of ctf_ops. Call
  9655. init_tracefile_ops.
  9656. * tracefile-tfile.c (tfile_get_trace_status): Remove.
  9657. (tfile_has_stack, tfile_has_registers): Remove.
  9658. (tfile_thread_alive): Remove.
  9659. (init_tfile_ops): Don't set some fields of tfile_ops. Call
  9660. init_tracefile_ops.
  9661. * tracefile.c (tracefile_has_stack): New function.
  9662. (tracefile_has_registers): New function.
  9663. (tracefile_thread_alive): New function.
  9664. (tracefile_get_trace_status): New function.
  9665. (init_tracefile_ops): New function.
  9666. * tracefile.h (init_tracefile_ops): Declare.
  9667. 2014-02-23 Yao Qi <yao@codesourcery.com>
  9668. * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
  9669. (O_LARGEFILE): Likewise.
  9670. (tfile_ops): Likewise.
  9671. (TRACE_HEADER_SIZE): Likewise.
  9672. (trace_fd, trace_frames_offset, cur_offset): Likewise.
  9673. (cur_data_size): Likewise.
  9674. (tfile_read, tfile_open, tfile_interp_line): Likewise.
  9675. (tfile_close, tfile_files_info): Likewise.
  9676. (tfile_get_trace_status): Likewise.
  9677. (tfile_get_tracepoint_status): Likewise.
  9678. (tfile_get_traceframe_address): Likewise.
  9679. (tfile_trace_find, match_blocktype): Likewise.
  9680. (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
  9681. (tfile_fetch_registers, tfile_xfer_partial): Likewise.
  9682. (tfile_get_trace_state_variable_value): Likewise.
  9683. (tfile_has_all_memory, tfile_has_memory): Likewise.
  9684. (tfile_has_stack, tfile_has_registers): Likewise.
  9685. (tfile_thread_alive, build_traceframe_info): Likewise.
  9686. (tfile_traceframe_info, init_tfile_ops): Likewise.
  9687. (_initialize_tracepoint): Don't call init_tfile_ops
  9688. and add_target_with_completer.
  9689. * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
  9690. exec.h, completer.h and filenames.h.
  9691. (_initialize_tracefile_tfile): New function.
  9692. 2014-02-23 Yao Qi <yao@codesourcery.com>
  9693. * Makefile.in (REMOTE_OBS): Append tracefile.o and
  9694. tracefile-tfile.o.
  9695. (HFILES_NO_SRCDIR): Add tracefile.h.
  9696. * ctf.c: Include "tracefile.h".
  9697. * tracefile.h: New file.
  9698. * tracefile.c: New file
  9699. * tracefile-tfile.c: New file.
  9700. * tracepoint.c: Include "tracefile.h".
  9701. (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
  9702. (stop_reason_names): Add const.
  9703. (trace_file_writer_xfree): Move it to tracefile.c.
  9704. (trace_save, trace_save_command, trace_save_tfile): Likewise.
  9705. (trace_save_ctf): Likewise.
  9706. (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
  9707. (tfile_target_save, tfile_dtor, tfile_start): Likewise.
  9708. (tfile_write_header, tfile_write_regblock_type): Likewise.
  9709. (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
  9710. (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
  9711. (tfile_write_raw_data, tfile_end): Likewise.
  9712. (tfile_trace_file_writer_new): Likewise.
  9713. (free_uploaded_tp): Make it extern.
  9714. (free_uploaded_tsv): Make it extern.
  9715. (_initialize_tracepoint): Move code to register command 'tsave'
  9716. to tracefile.c.
  9717. * tracepoint.h (stop_reason_names): Declare.
  9718. (struct trace_frame_write_ops): Move it to tracefile.h.
  9719. (struct trace_file_write_ops): Likewise.
  9720. (struct trace_file_writer): Likewise.
  9721. (free_uploaded_tsvs, free_uploaded_tps): Declare.
  9722. 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
  9723. PR gdb/16594
  9724. * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
  9725. process name.
  9726. (get_cores_used_by_process): New parameter num_cores, use it.
  9727. (linux_xfer_osdata_processes): Pass num_cores to it.
  9728. * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
  9729. process name.
  9730. 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
  9731. * target.c (memory_xfer_partial): Fix length arg in call to
  9732. breakpoint_xfer_memory.
  9733. 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
  9734. PR tdep/16397
  9735. * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
  9736. number comes after the + or - signs. Adjust length of register
  9737. name to be extracted.
  9738. 2014-02-20 Tom Tromey <tromey@redhat.com>
  9739. * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
  9740. (ada_varobj_ops): Mark "extern".
  9741. 2014-02-20 Tom Tromey <tromey@redhat.com>
  9742. * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
  9743. 2014-02-20 Doug Evans <xdje42@gmail.com>
  9744. * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
  9745. All callers updated.
  9746. (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
  9747. All callers updated.
  9748. * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
  9749. (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
  9750. 2014-02-20 lin zuojian <manjian2006@gmail.com>
  9751. Joel Brobecker <brobecker@adacore.com>
  9752. Doug Evans <xdje42@gmail.com>
  9753. PR symtab/16581
  9754. * dwarf2read.c (struct die_info): New member in_process.
  9755. (reset_die_in_process): New function.
  9756. (process_die): Set it at the start, reset when returning.
  9757. (inherit_abstract_dies): Only call process_die if origin_child_die
  9758. not already being processed.
  9759. 2014-02-20 Joel Brobecker <brobecker@adacore.com>
  9760. * windows-nat.c (handle_unload_dll): Add function documentation.
  9761. (do_initial_windows_stuff): Add comment explaining why we wait
  9762. until after inferior initialization has finished before
  9763. processing all DLLs.
  9764. 2014-02-20 Joel Brobecker <brobecker@adacore.com>
  9765. * windows-nat.c (get_module_name): Delete.
  9766. (windows_get_exec_module_filename): New function, mostly
  9767. inspired from get_module_name.
  9768. (windows_pid_to_exec_file): Replace call to get_module_name
  9769. by call to windows_get_exec_module_filename.
  9770. 2014-02-20 Joel Brobecker <brobecker@adacore.com>
  9771. * windows-nat.c (handle_load_dll): Rewrite this function's
  9772. introductory comment. Remove code using get_module_name
  9773. to get the DLL's name.
  9774. 2014-02-20 Joel Brobecker <brobecker@adacore.com>
  9775. * windows-nat.c (get_windows_debug_event): Ignore
  9776. LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
  9777. if windows_initialization_done == 0.
  9778. (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
  9779. Adjust implementation to always load all DLLs.
  9780. (do_initial_windows_stuff): Replace call to
  9781. windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
  9782. 2014-02-20 Joel Brobecker <brobecker@adacore.com>
  9783. * windows-nat.c (_initialize_windows_nat): Deprecate the
  9784. "dll-symbols" command. Turn the "add-shared-symbol-files"
  9785. and "assf" aliases into commands, and deprecate them as well.
  9786. * NEWS: Add entry explaining that "dll-symbols" and its two
  9787. aliases are now deprecated.
  9788. 2014-02-20 Joel Brobecker <brobecker@adacore.com>
  9789. * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
  9790. new-line in debug string. Remove trailing spaces.
  9791. 2014-02-19 Stan Shebs <stan@codesourcery.com>
  9792. * darwin-nat.c (darwin_xfer_partial): Fix return type.
  9793. 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
  9794. * NEWS: Add entry for the new feature
  9795. * python/py-value.c (valpy_binop): Call value_x_binop for struct
  9796. and class values.
  9797. 2014-02-19 Stan Shebs <stan@codesourcery.com>
  9798. * MAINTAINERS: List Yao Qi as nios2 maintainer.
  9799. 2014-02-19 Pedro Alves <palves@redhat.com>
  9800. * common/ptid.h (struct ptid): Mention that process_stratum
  9801. targets should prefer ptid.lwp.
  9802. 2014-02-19 Pedro Alves <palves@redhat.com>
  9803. * remote.c (remote_thread_alive, write_ptid, read_ptid)
  9804. (read_ptid, remote_newthread_step, remote_threads_extra_info)
  9805. (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
  9806. (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
  9807. store remote thread ids rather than ptid.tid.
  9808. (_initialize_remote): Adjust.
  9809. 2014-02-19 Tom Tromey <tromey@redhat.com>
  9810. * target.c (target_get_unwinder): Rewrite.
  9811. (target_get_tailcall_unwinder): Rewrite.
  9812. * record-btrace.c (record_btrace_to_get_unwinder): New function.
  9813. (record_btrace_to_get_tailcall_unwinder): New function.
  9814. (init_record_btrace_ops): Update.
  9815. * target.h (struct target_ops) <to_get_unwinder,
  9816. to_get_tailcall_unwinder>: Now function pointers. Use
  9817. TARGET_DEFAULT_RETURN.
  9818. 2014-02-19 Tom Tromey <tromey@redhat.com>
  9819. * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
  9820. argument.
  9821. (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
  9822. 2014-02-19 Tom Tromey <tromey@redhat.com>
  9823. * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
  9824. directly.
  9825. * target-delegates.c: Rebuild.
  9826. * target.h (struct target_ops) <to_decr_pc_after_break>: Use
  9827. TARGET_DEFAULT_FUNC.
  9828. * target.c (default_target_decr_pc_after_break): Rename from
  9829. forward_target_decr_pc_after_break. Simplify.
  9830. (target_decr_pc_after_break): Rely on delegation.
  9831. 2014-02-19 Tom Tromey <tromey@redhat.com>
  9832. * target.c (update_current_target): Do not INHERIT to_doc or
  9833. to_magic. Do not de_fault to_open or to_close.
  9834. 2014-02-19 Tom Tromey <tromey@redhat.com>
  9835. * gcore.h (objfile_find_memory_regions): Declare.
  9836. * gcore.c (objfile_find_memory_regions): No longer static. Add
  9837. "self" argument.
  9838. (_initialize_gcore): Don't call exec_set_find_memory_regions.
  9839. * exec.c: Include gcore.h.
  9840. (exec_set_find_memory_regions): Remove.
  9841. (exec_find_memory_regions): Remove.
  9842. (exec_do_find_memory_regions): Remove.
  9843. (init_exec_ops): Update.
  9844. * defs.h (exec_set_find_memory_regions): Remove.
  9845. 2014-02-19 Tom Tromey <tromey@redhat.com>
  9846. * target-delegates.c: Rebuild.
  9847. * target.h (struct target_ops) <to_extra_thread_info,
  9848. to_thread_name, to_pid_to_exec_file, to_get_section_table,
  9849. to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
  9850. not 0, in TARGET_DEFAULT_RETURN.
  9851. 2014-02-19 Tom Tromey <tromey@redhat.com>
  9852. * target.c (complete_target_initialization): Remove casts. Use
  9853. return_zero_has_execution.
  9854. (return_zero): Add "ignore" argument.
  9855. (return_zero_has_execution): New function.
  9856. (init_dummy_target): Remove casts. Use
  9857. return_zero_has_execution.
  9858. 2014-02-19 Tom Tromey <tromey@redhat.com>
  9859. * target.c (update_current_target): Update comments. Do not
  9860. INHERIT to_stratum.
  9861. 2014-02-19 Tom Tromey <tromey@redhat.com>
  9862. * arm-linux-nat.c (arm_linux_read_description): Delegate when
  9863. needed.
  9864. * corelow.c (core_read_description): Delegate when needed.
  9865. * remote.c (remote_read_description): Delegate when needed.
  9866. * target-delegates.c: Rebuild.
  9867. * target.c (target_read_description): Rewrite.
  9868. * target.h (struct target_ops) <to_read_description>: Update
  9869. comment. Use TARGET_DEFAULT_RETURN.
  9870. 2014-02-19 Tom Tromey <tromey@redhat.com>
  9871. * target-delegates.c: Rebuild.
  9872. * target.c (update_current_target): Don't inherit or default
  9873. to_can_run.
  9874. (find_default_run_target): Check against delegate_can_run.
  9875. * target.h (struct target_ops) <to_can_run>: Use
  9876. TARGET_DEFAULT_RETURN.
  9877. 2014-02-19 Tom Tromey <tromey@redhat.com>
  9878. * target-delegates.c: Rebuild.
  9879. * target.c (target_disconnect): Unconditionally delegate.
  9880. * target.h (struct target_ops) <to_disconnect>: Use
  9881. TARGET_DEFAULT_NORETURN.
  9882. 2014-02-19 Tom Tromey <tromey@redhat.com>
  9883. * record.c (record_stop): Unconditionally delegate.
  9884. * target-delegates.c: Rebuild.
  9885. * target.c (target_stop_recording): Unconditionally delegate.
  9886. * target.h (struct target_ops) <to_stop_recording>: Use
  9887. TARGET_DEFAULT_IGNORE.
  9888. 2014-02-19 Tom Tromey <tromey@redhat.com>
  9889. * target-delegates.c: Rebuild.
  9890. * target.c (target_enable_btrace): Unconditionally delegate.
  9891. * target.h (struct target_ops) <to_enable_btrace>: Use
  9892. TARGET_DEFAULT_NORETURN.
  9893. 2014-02-19 Tom Tromey <tromey@redhat.com>
  9894. * target-delegates.c: Rebuild.
  9895. * target.c (target_read_btrace): Unconditionally delegate.
  9896. * target.h (struct target_ops) <to_read_btrace>: Use
  9897. TARGET_DEFAULT_NORETURN.
  9898. 2014-02-19 Tom Tromey <tromey@redhat.com>
  9899. * target-delegates.c: Rebuild.
  9900. * target.c (target_teardown_btrace): Unconditionally delegate.
  9901. * target.h (struct target_ops) <to_teardown_btrace>: Use
  9902. TARGET_DEFAULT_NORETURN.
  9903. 2014-02-19 Tom Tromey <tromey@redhat.com>
  9904. * target-delegates.c: Rebuild.
  9905. * target.c (target_disable_btrace): Unconditionally delegate.
  9906. * target.h (struct target_ops) <to_disable_btrace>: Use
  9907. TARGET_DEFAULT_NORETURN.
  9908. 2014-02-19 Tom Tromey <tromey@redhat.com>
  9909. * target-delegates.c: Rebuild.
  9910. * target.c (default_search_memory): New function.
  9911. (simple_search_memory): Update comment.
  9912. (target_search_memory): Unconditionally delegate.
  9913. * target.h (struct target_ops) <to_search_memory>: Use
  9914. TARGET_DEFAULT_FUNC.
  9915. 2014-02-19 Tom Tromey <tromey@redhat.com>
  9916. * auxv.c (default_auxv_parse): No longer static.
  9917. (target_auxv_parse): Unconditionally delegate.
  9918. * auxv.h (default_auxv_parse): Declare.
  9919. * target-delegates.c: Rebuild.
  9920. * target.c: Include auxv.h.
  9921. * target.h (struct target_ops) <to_auxv_parse>: Use
  9922. TARGET_DEFAULT_FUNC.
  9923. 2014-02-19 Tom Tromey <tromey@redhat.com>
  9924. * target-delegates.c: Rebuild.
  9925. * target.c (target_memory_map): Unconditionally delegate.
  9926. * target.h (struct target_ops) <to_memory_map>: Use
  9927. TARGET_DEFAULT_RETURN.
  9928. 2014-02-19 Tom Tromey <tromey@redhat.com>
  9929. * target-delegates.c: Rebuild.
  9930. * target.c (target_thread_alive): Unconditionally delegate.
  9931. * target.h (struct target_ops) <to_thread_alive>: Use
  9932. TARGET_DEFAULT_RETURN.
  9933. 2014-02-19 Tom Tromey <tromey@redhat.com>
  9934. * target-delegates.c: Rebuild.
  9935. * target.c (target_save_record): Unconditionally delegate.
  9936. * target.h (struct target_ops) <to_save_record>: Use
  9937. TARGET_DEFAULT_NORETURN.
  9938. 2014-02-19 Tom Tromey <tromey@redhat.com>
  9939. * target-delegates.c: Rebuild.
  9940. * target.c (target_delete_record): Unconditionally delegate.
  9941. * target.h (struct target_ops) <to_delete_record>: Use
  9942. TARGET_DEFAULT_NORETURN.
  9943. 2014-02-19 Tom Tromey <tromey@redhat.com>
  9944. * target-delegates.c: Rebuild.
  9945. * target.c (target_record_is_replaying): Unconditionally
  9946. delegate.
  9947. * target.h (struct target_ops) <to_record_is_replaying>: Use
  9948. TARGET_DEFAULT_RETURN.
  9949. 2014-02-19 Tom Tromey <tromey@redhat.com>
  9950. * target-delegates.c: Rebuild.
  9951. * target.c (target_goto_record_begin): Unconditionally delegate.
  9952. * target.h (struct target_ops) <to_goto_record_begin>: Use
  9953. TARGET_DEFAULT_NORETURN.
  9954. 2014-02-19 Tom Tromey <tromey@redhat.com>
  9955. * target-delegates.c: Rebuild.
  9956. * target.c (target_goto_record_end): Unconditionally delegate.
  9957. * target.h (struct target_ops) <to_goto_record_end>: Use
  9958. TARGET_DEFAULT_NORETURN.
  9959. 2014-02-19 Tom Tromey <tromey@redhat.com>
  9960. * target-delegates.c: Rebuild.
  9961. * target.c (target_goto_record): Unconditionally delegate.
  9962. * target.h (struct target_ops) <to_goto_record>: Use
  9963. TARGET_DEFAULT_NORETURN.
  9964. 2014-02-19 Tom Tromey <tromey@redhat.com>
  9965. * target-delegates.c: Rebuild.
  9966. * target.c (target_insn_history): Unconditionally delegate.
  9967. * target.h (struct target_ops) <to_insn_history>: Use
  9968. TARGET_DEFAULT_NORETURN.
  9969. 2014-02-19 Tom Tromey <tromey@redhat.com>
  9970. * target-delegates.c: Rebuild.
  9971. * target.c (target_insn_history_from): Unconditionally delegate.
  9972. * target.h (struct target_ops) <to_insn_history_from>: Use
  9973. TARGET_DEFAULT_NORETURN.
  9974. 2014-02-19 Tom Tromey <tromey@redhat.com>
  9975. * target-delegates.c: Rebuild.
  9976. * target.c (target_insn_history_range): Unconditionally delegate.
  9977. * target.h (struct target_ops) <to_insn_history_range>: Use
  9978. TARGET_DEFAULT_NORETURN.
  9979. 2014-02-19 Tom Tromey <tromey@redhat.com>
  9980. * target-delegates.c: Rebuild.
  9981. * target.c (target_call_history): Unconditionally delegate.
  9982. * target.h (struct target_ops) <to_call_history>: Use
  9983. TARGET_DEFAULT_NORETURN.
  9984. 2014-02-19 Tom Tromey <tromey@redhat.com>
  9985. * target-delegates.c: Rebuild.
  9986. * target.c (target_call_history_from): Unconditionally delegate.
  9987. * target.h (struct target_ops) <to_call_history_from>: Use
  9988. TARGET_DEFAULT_NORETURN.
  9989. 2014-02-19 Tom Tromey <tromey@redhat.com>
  9990. * target-delegates.c: Rebuild.
  9991. * target.c (target_call_history_range): Unconditionally delegate.
  9992. * target.h (struct target_ops) <to_call_history_range>: Use
  9993. TARGET_DEFAULT_NORETURN.
  9994. 2014-02-19 Tom Tromey <tromey@redhat.com>
  9995. * target-delegates.c: Rebuild.
  9996. * target.c (target_verify_memory): Unconditionally delegate.
  9997. * target.h (struct target_ops) <to_verify_memory>: Use
  9998. TARGET_DEFAULT_NORETURN.
  9999. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10000. * target-delegates.c: Rebuild.
  10001. * target.c (target_core_of_thread): Unconditionally delegate.
  10002. * target.h (struct target_ops) <to_core_of_thread>: Use
  10003. TARGET_DEFAULT_RETURN.
  10004. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10005. * target-delegates.c: Rebuild.
  10006. * target.c (target_flash_done): Unconditionally delegate.
  10007. * target.h (struct target_ops) <to_flash_done>: Use
  10008. TARGET_DEFAULT_NORETURN.
  10009. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10010. * target-delegates.c: Rebuild.
  10011. * target.c (target_flash_erase): Unconditionally delegate.
  10012. * target.h (struct target_ops) <to_flash_erase>: Use
  10013. TARGET_DEFAULT_NORETURN.
  10014. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10015. * target-delegates.c: Rebuild.
  10016. * target.c (target_get_section_table): Unconditionally delegate.
  10017. * target.h (struct target_ops) <to_get_section_table>: Use
  10018. TARGET_DEFAULT_RETURN.
  10019. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10020. * target-delegates.c: Rebuild.
  10021. * target.c (target_pid_to_str): Unconditionally delegate.
  10022. (init_dummy_target): Don't initialize to_pid_to_str.
  10023. (default_pid_to_str): Rename from dummy_pid_to_str.
  10024. * target.h (struct target_ops) <to_pid_to_str>: Use
  10025. TARGET_DEFAULT_FUNC.
  10026. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10027. * target-delegates.c: Rebuild.
  10028. * target.c (target_find_new_threads): Unconditionally delegate.
  10029. * target.h (struct target_ops) <to_find_new_threads>: Use
  10030. TARGET_DEFAULT_RETURN.
  10031. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10032. * target-delegates.c: Rebuild.
  10033. * target.c (target_program_signals): Unconditionally delegate.
  10034. * target.h (struct target_ops) <to_program_signals>: Use
  10035. TARGET_DEFAULT_IGNORE.
  10036. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10037. * target-delegates.c: Rebuild.
  10038. * target.c (target_pass_signals): Unconditionally delegate.
  10039. * target.h (struct target_ops) <to_pass_signals>: Use
  10040. TARGET_DEFAULT_IGNORE.
  10041. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10042. * target-delegates.c: Rebuild.
  10043. * target.c (default_mourn_inferior): New function.
  10044. (target_mourn_inferior): Unconditionally delegate.
  10045. * target.h (struct target_ops) <to_mourn_inferior>: Use
  10046. TARGET_DEFAULT_FUNC.
  10047. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10048. * target-delegates.c: Rebuild.
  10049. * target.c (default_follow_fork): New function.
  10050. (target_follow_fork): Unconditionally delegate.
  10051. * target.h (struct target_ops) <to_follow_fork>: Use
  10052. TARGET_DEFAULT_FUNC.
  10053. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10054. * target-delegates.c: Rebuild.
  10055. * target.c (target_kill): Unconditionally delegate.
  10056. * target.h (struct target_ops) <to_kill>: Use
  10057. TARGET_DEFAULT_NORETURN.
  10058. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10059. * target-delegates.c: Rebuild.
  10060. * target.c (target_masked_watch_num_registers): Unconditionally
  10061. delegate.
  10062. * target.h (struct target_ops) <to_masked_watch_num_registers>:
  10063. Use TARGET_DEFAULT_RETURN.
  10064. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10065. * target-delegates.c: Rebuild.
  10066. * target.c (target_remove_mask_watchpoint): Unconditionally
  10067. delegate.
  10068. * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
  10069. TARGET_DEFAULT_RETURN.
  10070. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10071. * target-delegates.c: Rebuild.
  10072. * target.c (target_insert_mask_watchpoint): Unconditionally
  10073. delegate.
  10074. * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
  10075. TARGET_DEFAULT_RETURN.
  10076. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10077. * target-delegates.c: Rebuild.
  10078. * target.c (target_ranged_break_num_registers): Unconditionally
  10079. delegate.
  10080. * target.h (struct target_ops) <to_ranged_break_num_registers>:
  10081. Use TARGET_DEFAULT_RETURN.
  10082. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10083. * target-delegates.c: Rebuild.
  10084. * target.c (target_fetch_registers): Unconditionally delegate.
  10085. * target.h (struct target_ops) <to_fetch_registers>: Use
  10086. TARGET_DEFAULT_NORETURN.
  10087. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10088. * target-delegates.c: Rebuild.
  10089. * target.c (update_current_target): Don't inherit or default
  10090. to_stop.
  10091. * target.h (struct target_ops) <to_stop>: Use
  10092. TARGET_DEFAULT_IGNORE.
  10093. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10094. * target-delegates.c: Rebuild.
  10095. * target.c (update_current_target): Don't inherit or default
  10096. to_can_run_breakpoint_commands.
  10097. * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
  10098. Use TARGET_DEFAULT_RETURN.
  10099. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10100. * target-delegates.c: Rebuild.
  10101. * target.c (update_current_target): Don't inherit or default
  10102. to_supports_evaluation_of_breakpoint_conditions.
  10103. * target.h (struct target_ops)
  10104. <to_supports_evaluation_of_breakpoint_conditions>: Use
  10105. TARGET_DEFAULT_RETURN.
  10106. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10107. * target-delegates.c: Rebuild.
  10108. * target.c (update_current_target): Don't inherit or default
  10109. to_augmented_libraries_svr4_read.
  10110. * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
  10111. Use TARGET_DEFAULT_RETURN.
  10112. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10113. * target-delegates.c: Rebuild.
  10114. * target.c (update_current_target): Don't inherit or default
  10115. to_can_use_agent.
  10116. * target.h (struct target_ops) <to_can_use_agent>: Use
  10117. TARGET_DEFAULT_RETURN.
  10118. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10119. * target-delegates.c: Rebuild.
  10120. * target.c (update_current_target): Don't inherit or default
  10121. to_use_agent.
  10122. * target.h (struct target_ops) <to_use_agent>: Use
  10123. TARGET_DEFAULT_NORETURN.
  10124. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10125. * target-delegates.c: Rebuild.
  10126. * target.c (update_current_target): Don't inherit or default
  10127. to_traceframe_info.
  10128. (return_null): Remove.
  10129. * target.h (struct target_ops) <to_traceframe_info>: Use
  10130. TARGET_DEFAULT_RETURN.
  10131. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10132. * target-delegates.c: Rebuild.
  10133. * target.c (update_current_target): Don't inherit or default
  10134. to_static_tracepoint_markers_by_strid.
  10135. * target.h (struct target_ops)
  10136. <to_static_tracepoint_markers_by_strid>: Use
  10137. TARGET_DEFAULT_NORETURN.
  10138. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10139. * target-delegates.c: Rebuild.
  10140. * target.c (update_current_target): Don't inherit or default
  10141. to_static_tracepoint_marker_at.
  10142. * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
  10143. Use TARGET_DEFAULT_RETURN.
  10144. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10145. * target-delegates.c: Rebuild.
  10146. * target.c (update_current_target): Don't inherit or default
  10147. to_set_permissions.
  10148. * target.h (struct target_ops) <to_set_permissions>: Use
  10149. TARGET_DEFAULT_IGNORE.
  10150. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10151. * target-delegates.c: Rebuild.
  10152. * target.c (update_current_target): Don't inherit or default
  10153. to_get_tib_address.
  10154. * target.h (struct target_ops) <to_get_tib_address>: Use
  10155. TARGET_DEFAULT_NORETURN.
  10156. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10157. * target-delegates.c: Rebuild.
  10158. * target.c (update_current_target): Don't inherit or default
  10159. to_set_trace_notes.
  10160. * target.h (struct target_ops) <to_set_trace_notes>: Use
  10161. TARGET_DEFAULT_RETURN.
  10162. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10163. * target-delegates.c: Rebuild.
  10164. * target.c (update_current_target): Don't initialize
  10165. to_set_trace_buffer_size.
  10166. * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
  10167. TARGET_DEFAULT_IGNORE.
  10168. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10169. * target-delegates.c: Rebuild.
  10170. * target.c (update_current_target): Don't inherit or default
  10171. to_set_circular_trace_buffer.
  10172. * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
  10173. TARGET_DEFAULT_IGNORE.
  10174. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10175. * target-delegates.c: Rebuild.
  10176. * target.c (update_current_target): Don't inherit or default
  10177. to_set_disconnected_tracing.
  10178. * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
  10179. TARGET_DEFAULT_IGNORE.
  10180. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10181. * target-delegates.c: Rebuild.
  10182. * target.c (update_current_target): Don't inherit or default
  10183. to_get_min_fast_tracepoint_insn_len.
  10184. (return_minus_one): Remove.
  10185. * target.h (struct target_ops)
  10186. <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
  10187. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10188. * target-delegates.c: Rebuild.
  10189. * target.c (update_current_target): Don't inherit or default
  10190. to_get_raw_trace_data.
  10191. * target.h (struct target_ops) <to_get_raw_trace_data>: Use
  10192. TARGET_DEFAULT_NORETURN.
  10193. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10194. * target-delegates.c: Rebuild.
  10195. * target.c (update_current_target): Don't inherit or default
  10196. to_upload_trace_state_variables.
  10197. * target.h (struct target_ops) <to_upload_trace_state_variables>:
  10198. Use TARGET_DEFAULT_RETURN.
  10199. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10200. * target-delegates.c: Rebuild.
  10201. * target.c (update_current_target): Don't inherit or default
  10202. to_upload_tracepoints.
  10203. * target.h (struct target_ops) <to_upload_tracepoints>: Use
  10204. TARGET_DEFAULT_RETURN.
  10205. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10206. * target-delegates.c: Rebuild.
  10207. * target.c (update_current_target): Don't inherit or default
  10208. to_save_trace_data.
  10209. * target.h (struct target_ops) <to_save_trace_data>: Use
  10210. TARGET_DEFAULT_NORETURN.
  10211. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10212. * target-delegates.c: Rebuild.
  10213. * target.c (update_current_target): Don't inherit or default
  10214. to_get_trace_state_variable_value.
  10215. * target.h (struct target_ops)
  10216. <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
  10217. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10218. * target-delegates.c: Rebuild.
  10219. * target.c (update_current_target): Don't inherit or default
  10220. to_trace_find.
  10221. * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
  10222. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10223. * target-delegates.c: Rebuild.
  10224. * target.c (update_current_target): Don't inherit or default
  10225. to_trace_stop.
  10226. * target.h (struct target_ops) <to_trace_stop>: Use
  10227. TARGET_DEFAULT_NORETURN.
  10228. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10229. * target-delegates.c: Rebuild.
  10230. * target.c (update_current_target): Don't inherit or default
  10231. to_get_tracepoint_status.
  10232. * target.h (struct target_ops) <to_get_tracepoint_status>: Use
  10233. TARGET_DEFAULT_NORETURN.
  10234. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10235. * target-delegates.c: Rebuild.
  10236. * target.c (update_current_target): Don't inherit or default
  10237. to_get_trace_status.
  10238. * target.h (struct target_ops) <to_get_trace_status>: Use
  10239. TARGET_DEFAULT_RETURN.
  10240. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10241. * target-delegates.c: Rebuild.
  10242. * target.c (update_current_target): Don't inherit or default
  10243. to_trace_start.
  10244. * target.h (struct target_ops) <to_trace_start>: Use
  10245. TARGET_DEFAULT_NORETURN.
  10246. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10247. * target-delegates.c: Rebuild.
  10248. * target.c (update_current_target): Don't inherit or default
  10249. to_trace_set_readonly_regions.
  10250. * target.h (struct target_ops) <to_trace_set_readonly_regions>:
  10251. Use TARGET_DEFAULT_NORETURN.
  10252. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10253. * target-delegates.c: Rebuild.
  10254. * target.c (update_current_target): Don't inherit or default
  10255. to_disable_tracepoint.
  10256. * target.h (struct target_ops) <to_disable_tracepoint>: Use
  10257. TARGET_DEFAULT_NORETURN.
  10258. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10259. * target-delegates.c: Rebuild.
  10260. * target.c (update_current_target): Don't inherit or default
  10261. to_enable_tracepoint.
  10262. * target.h (struct target_ops) <to_enable_tracepoint>: Use
  10263. TARGET_DEFAULT_NORETURN.
  10264. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10265. * target-delegates.c: Rebuild.
  10266. * target.c (update_current_target): Don't inherit or default
  10267. to_download_trace_state_variable.
  10268. * target.h (struct target_ops) <to_download_trace_state_variable>:
  10269. Use TARGET_DEFAULT_NORETURN.
  10270. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10271. * target-delegates.c: Rebuild.
  10272. * target.c (update_current_target): Don't inherit or default
  10273. to_can_download_tracepoint.
  10274. * target.h (struct target_ops) <to_can_download_tracepoint>: Use
  10275. TARGET_DEFAULT_RETURN.
  10276. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10277. * target-delegates.c: Rebuild.
  10278. * target.c (update_current_target): Don't inherit or default
  10279. to_download_tracepoint.
  10280. * target.h (struct target_ops) <to_download_tracepoint>: Use
  10281. TARGET_DEFAULT_NORETURN.
  10282. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10283. * target-delegates.c: Rebuild.
  10284. * target.c (update_current_target): Don't inherit or default
  10285. to_trace_init.
  10286. * target.h (struct target_ops) <to_trace_init>: Use
  10287. TARGET_DEFAULT_RETURN.
  10288. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10289. * target-delegates.c: Rebuild.
  10290. * target.c (update_current_target): Don't inherit or default
  10291. to_supports_string_tracing.
  10292. * target.h (struct target_ops) <to_supports_string_tracing>: Use
  10293. TARGET_DEFAULT_RETURN.
  10294. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10295. * target-delegates.c: Rebuild.
  10296. * target.c (update_current_target): Don't inherit or default
  10297. to_supports_enable_disable_tracepoint.
  10298. * target.h (struct target_ops)
  10299. <to_supports_enable_disable_tracepoint>: Use
  10300. TARGET_DEFAULT_RETURN.
  10301. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10302. * target-delegates.c: Rebuild.
  10303. * target.c (update_current_target): Don't inherit or default
  10304. to_supports_multi_process.
  10305. * target.h (struct target_ops) <to_supports_multi_process>: Use
  10306. TARGET_DEFAULT_RETURN.
  10307. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10308. * target-delegates.c: Rebuild.
  10309. * target.c (update_current_target): Don't inherit or default
  10310. to_get_ada_task_ptid.
  10311. * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
  10312. TARGET_DEFAULT_FUNC.
  10313. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10314. * target-delegates.c: Rebuild.
  10315. * target.c (update_current_target): Don't inherit or default
  10316. to_thread_architecture.
  10317. * target.h (struct target_ops) <to_thread_architecture>: Use
  10318. TARGET_DEFAULT_FUNC.
  10319. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10320. * target-delegates.c: Rebuild.
  10321. * target.c (update_current_target): Don't inherit or default
  10322. to_execution_direction.
  10323. * target.h (struct target_ops) <to_execution_direction>: Use
  10324. TARGET_DEFAULT_FUNC.
  10325. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10326. * target-delegates.c: Rebuild.
  10327. * target.c (update_current_target): Don't inherit or default
  10328. to_can_execute_reverse.
  10329. * target.h (struct target_ops) <to_can_execute_reverse>: Use
  10330. TARGET_DEFAULT_RETURN.
  10331. (target_can_execute_reverse): Unconditionally delegate.
  10332. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10333. * target-delegates.c: Rebuild.
  10334. * target.c (update_current_target): Don't inherit or default
  10335. to_goto_bookmark.
  10336. (dummy_goto_bookmark): Remove.
  10337. (init_dummy_target): Don't inherit or default to_goto_bookmark.
  10338. * target.h (struct target_ops) <to_goto_bookmark>: Use
  10339. TARGET_DEFAULT_NORETURN.
  10340. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10341. * target-delegates.c: Rebuild.
  10342. * target.c (update_current_target): Don't inherit or default
  10343. to_get_bookmark.
  10344. (dummy_get_bookmark): Remove.
  10345. (init_dummy_target): Don't inherit or default to_get_bookmark.
  10346. * target.h (struct target_ops) <to_get_bookmark>: Use
  10347. TARGET_DEFAULT_NORETURN
  10348. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10349. * target-delegates.c: Rebuild.
  10350. * target.c (update_current_target): Don't inherit or default
  10351. to_make_corefile_notes.
  10352. (init_dummy_target): Don't initialize to_make_corefile_notes.
  10353. * target.h (struct target_ops) <to_make_corefile_notes>: Use
  10354. TARGET_DEFAULT_FUNC.
  10355. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10356. * target-delegates.c: Rebuild.
  10357. * target.c (update_current_target): Don't inherit or default
  10358. to_find_memory_regions.
  10359. (init_dummy_target): Don't initialize to_find_memory_regions.
  10360. * target.h (struct target_ops) <to_find_memory_regions>: Use
  10361. TARGET_DEFAULT_FUNC.
  10362. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10363. * target-delegates.c: Rebuild.
  10364. * target.c (update_current_target): Don't inherit or default
  10365. to_log_command.
  10366. * target.h (struct target_ops) <to_log_command>: Use
  10367. TARGET_DEFAULT_IGNORE.
  10368. (target_log_command): Unconditionally delegate.
  10369. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10370. * target-delegates.c: Rebuild.
  10371. * target.c (update_current_target): Don't inherit or default
  10372. to_pid_to_exec_file.
  10373. * target.h (struct target_ops) <to_pid_to_exec_file>: Use
  10374. TARGET_DEFAULT_RETURN.
  10375. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10376. * target-delegates.c: Rebuild.
  10377. * target.c (update_current_target): Don't inherit or default
  10378. to_thread_name.
  10379. (target_thread_name): Unconditionally delegate.
  10380. * target.h (struct target_ops) <to_thread_name>: Use
  10381. TARGET_DEFAULT_RETURN.
  10382. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10383. * target-delegates.c: Rebuild.
  10384. * target.c (update_current_target): Don't inherit or default
  10385. to_extra_thread_info.
  10386. * target.h (struct target_ops) <to_extra_thread_info>: Use
  10387. TARGET_DEFAULT_RETURN.
  10388. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10389. * target-delegates.c: Rebuild.
  10390. * target.c (update_current_target): Don't inherit or default
  10391. to_has_exited.
  10392. * target.h (struct target_ops) <to_has_exited>: Use
  10393. TARGET_DEFAULT_RETURN..
  10394. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10395. * target-delegates.c: Rebuild.
  10396. * target.c (update_current_target): Don't inherit or default
  10397. to_set_syscall_catchpoint.
  10398. (return_one): Remove.
  10399. * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
  10400. TARGET_DEFAULT_RETURN.
  10401. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10402. * target-delegates.c: Rebuild.
  10403. * target.c (update_current_target): Don't inherit or default
  10404. to_insert_exec_catchpoint.
  10405. * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
  10406. TARGET_DEFAULT_RETURN.
  10407. 2014-01-08 Tom Tromey <tromey@redhat.com>
  10408. * target-delegates.c: Rebuild.
  10409. * target.c (update_current_target): Don't inherit or default
  10410. to_insert_exec_catchpoint.
  10411. * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
  10412. TARGET_DEFAULT_RETURN.
  10413. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10414. * target-delegates.c: Rebuild.
  10415. * target.c (update_current_target): Don't inherit or default
  10416. to_remove_vfork_catchpoint.
  10417. * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
  10418. TARGET_DEFAULT_RETURN.
  10419. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10420. * target-delegates.c: Rebuild.
  10421. * target.c (update_current_target): Don't inherit or default
  10422. to_insert_vfork_catchpoint.
  10423. * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
  10424. TARGET_DEFAULT_RETURN.
  10425. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10426. * target-delegates.c: Rebuild.
  10427. * target.c (update_current_target): Don't inherit or default
  10428. to_remove_fork_catchpoint.
  10429. * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
  10430. TARGET_DEFAULT_RETURN.
  10431. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10432. * target-delegates.c: Rebuild.
  10433. * target.c (update_current_target): Don't inherit or default
  10434. to_insert_fork_catchpoint.
  10435. * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
  10436. TARGET_DEFAULT_RETURN.
  10437. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10438. * target-delegates.c: Rebuild.
  10439. * target.c (update_current_target): Don't inherit or default
  10440. to_post_startup_inferior.
  10441. * target.h (struct target_ops) <to_post_startup_inferior>: Use
  10442. TARGET_DEFAULT_IGNORE.
  10443. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10444. * target-delegates.c: Rebuild.
  10445. * target.c (update_current_target): Don't inherit or default
  10446. to_load.
  10447. * target.h (struct target_ops) <to_load>: Use
  10448. TARGET_DEFAULT_NORETURN.
  10449. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10450. * target-delegates.c: Rebuild.
  10451. * target.c (update_current_target): Don't inherit or default
  10452. to_terminal_info.
  10453. * target.h (struct target_ops) <to_terminal_info>: Use
  10454. TARGET_DEFAULT_FUNC.
  10455. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10456. * target-delegates.c: Rebuild.
  10457. * target.c (update_current_target): Don't inherit or default
  10458. to_terminal_save_ours.
  10459. * target.h (struct target_ops) <to_terminal_save_ours>: Use
  10460. TARGET_DEFAULT_IGNORE.
  10461. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10462. * target-delegates.c: Rebuild.
  10463. * target.c (update_current_target): Don't inherit or default
  10464. to_terminal_ours.
  10465. * target.h (struct target_ops) <to_terminal_ours>: Use
  10466. TARGET_DEFAULT_IGNORE.
  10467. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10468. * target-delegates.c: Rebuild.
  10469. * target.c (update_current_target): Don't inherit or default
  10470. to_terminal_ours_for_output.
  10471. * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
  10472. TARGET_DEFAULT_IGNORE.
  10473. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10474. * target-delegates.c: Rebuild.
  10475. * target.c (update_current_target): Don't inherit or default
  10476. to_terminal_inferior.
  10477. * target.h (struct target_ops) <to_terminal_inferior>: Use
  10478. TARGET_DEFAULT_IGNORE.
  10479. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10480. * target-delegates.c: Rebuild.
  10481. * target.c (update_current_target): Don't inherit or default
  10482. to_terminal_init.
  10483. * target.h (struct target_ops) <to_terminal_init>: Use
  10484. TARGET_DEFAULT_IGNORE.
  10485. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10486. * target-delegates.c: Rebuild.
  10487. * target.c (update_current_target): Don't inherit or default
  10488. to_can_accel_watchpoint_condition.
  10489. * target.h (struct target_ops)
  10490. <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
  10491. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10492. * target-delegates.c: Rebuild.
  10493. * target.c (update_current_target): Don't inherit or default
  10494. to_region_ok_for_hw_watchpoint.
  10495. * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
  10496. Use TARGET_DEFAULT_FUNC.
  10497. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10498. * target-delegates.c: Rebuild.
  10499. * target.c (update_current_target): Don't inherit or default
  10500. to_watchpoint_addr_within_range.
  10501. * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
  10502. Use TARGET_DEFAULT_FUNC.
  10503. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10504. * target-delegates.c: Rebuild.
  10505. * target.c (update_current_target): Don't inherit or default
  10506. to_remove_watchpoint.
  10507. * target.h (struct target_ops) <to_remove_watchpoint>: Use
  10508. TARGET_DEFAULT_NORETURN.
  10509. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10510. * target-delegates.c: Rebuild.
  10511. * target.c (update_current_target): Don't inherit or default
  10512. to_insert_watchpoint.
  10513. * target.h (struct target_ops) <to_insert_watchpoint>: Use
  10514. TARGET_DEFAULT_RETURN.
  10515. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10516. * target-delegates.c: Rebuild.
  10517. * target.c (update_current_target): Don't inherit or default
  10518. to_remove_hw_breakpoint.
  10519. * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
  10520. TARGET_DEFAULT_RETURN.
  10521. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10522. * target-delegates.c: Rebuild.
  10523. * target.c (update_current_target): Don't inherit or default
  10524. to_insert_hw_breakpoint.
  10525. * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
  10526. TARGET_DEFAULT_RETURN.
  10527. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10528. * target-delegates.c: Rebuild.
  10529. * target.c (update_current_target): Don't inherit or default
  10530. to_can_use_hw_breakpoint.
  10531. * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
  10532. TARGET_DEFAULT_RETURN.
  10533. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10534. * target-delegates.c: Rebuild.
  10535. * target.c (update_current_target): Don't inherit or default
  10536. to_files_info.
  10537. * target.h (struct target_ops) <to_files_info>: Use
  10538. TARGET_DEFAULT_IGNORE.
  10539. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10540. * target-delegates.c: Rebuild.
  10541. * target.c (update_current_target): Don't inherit or default
  10542. to_store.
  10543. * target.h (struct target_ops) <to_store>: Use
  10544. TARGET_DEFAULT_NORETURN.
  10545. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10546. * target-delegates.c: Rebuild.
  10547. * target.c (update_current_target): Don't inherit or default
  10548. to_post_attach.
  10549. * target.h (struct target_ops) <to_post_attach>: Use
  10550. TARGET_DEFAULT_IGNORE.
  10551. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10552. * target-delegates.c: Rebuild.
  10553. * target.c (update_current_target): Don't inherit or default
  10554. to_rcmd.
  10555. (default_rcmd): New function.
  10556. (do_monitor_command): Unconditionally delegate.
  10557. * target.h (struct target_ops) <to_rmcd>: Use
  10558. TARGET_DEFAULT_FUNC.
  10559. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10560. * target-delegates.c: Rebuild.
  10561. * target.c (init_dummy_target): Don't initialize to_attach.
  10562. (target_attach): Unconditionally delegate.
  10563. * target.h (struct target_ops) <to_attach>: Use
  10564. TARGET_DEFAULT_FUNC.
  10565. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10566. * target-delegates.c: Rebuild.
  10567. * target.c (target_detach): Unconditionally delegate.
  10568. (init_dummy_target): Don't initialize to_detach.
  10569. * target.h (struct target_ops) <to_detach>: Use
  10570. TARGET_DEFAULT_IGNORE.
  10571. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10572. * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
  10573. Add argument.
  10574. (target_augmented_libraries_svr4_read): Add argument.
  10575. * target.c (update_current_target): Update.
  10576. * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
  10577. argument.
  10578. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10579. * target.h (struct target_ops) <to_call_history_range>: Add
  10580. argument.
  10581. * target.c (target_call_history_range): Add argument.
  10582. * record-btrace.c (record_btrace_call_history_range): Add 'self'
  10583. argument.
  10584. (record_btrace_call_history_from): Update.
  10585. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10586. * target.h (struct target_ops) <to_call_history_from>: Add
  10587. argument.
  10588. * target.c (target_call_history_from): Add argument.
  10589. * record-btrace.c (record_btrace_call_history_from): Add 'self'
  10590. argument.
  10591. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10592. * target.h (struct target_ops) <to_call_history>: Add argument.
  10593. * target.c (target_call_history): Add argument.
  10594. * record-btrace.c (record_btrace_call_history): Add 'self'
  10595. argument.
  10596. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10597. * target.h (struct target_ops) <to_insn_history_range>: Add
  10598. argument.
  10599. * target.c (target_insn_history_range): Add argument.
  10600. * record-btrace.c (record_btrace_insn_history_range): Add 'self'
  10601. argument.
  10602. (record_btrace_insn_history_from): Update.
  10603. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10604. * target.h (struct target_ops) <to_insn_history_from>: Add
  10605. argument.
  10606. * target.c (target_insn_history_from): Add argument.
  10607. * record-btrace.c (record_btrace_insn_history_from): Add 'self'
  10608. argument.
  10609. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10610. * target.h (struct target_ops) <to_insn_history>: Add argument.
  10611. * target.c (target_insn_history): Add argument.
  10612. * record-btrace.c (record_btrace_insn_history): Add 'self'
  10613. argument.
  10614. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10615. * target.h (struct target_ops) <to_goto_record>: Add argument.
  10616. * target.c (target_goto_record): Add argument.
  10617. * record-full.c (record_full_goto): Add 'self' argument.
  10618. * record-btrace.c (record_btrace_goto): Add 'self' argument.
  10619. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10620. * target.h (struct target_ops) <to_goto_record_end>: Add argument.
  10621. * target.c (target_goto_record_end): Add argument.
  10622. * record-full.c (record_full_goto_end): Add 'self' argument.
  10623. * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
  10624. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10625. * target.h (struct target_ops) <to_goto_record_begin>: Add
  10626. argument.
  10627. * target.c (target_goto_record_begin): Add argument.
  10628. * record-full.c (record_full_goto_begin): Add 'self' argument.
  10629. * record-btrace.c (record_btrace_goto_begin): Add 'self'
  10630. argument.
  10631. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10632. * target.h (struct target_ops) <to_record_is_replaying>: Add
  10633. argument.
  10634. * target.c (target_record_is_replaying): Add argument.
  10635. * record-full.c (record_full_is_replaying): Add 'self' argument.
  10636. * record-btrace.c (record_btrace_is_replaying): Add 'self'
  10637. argument.
  10638. (record_btrace_xfer_partial, record_btrace_store_registers)
  10639. (record_btrace_prepare_to_store, record_btrace_resume)
  10640. (record_btrace_wait, record_btrace_decr_pc_after_break)
  10641. (record_btrace_find_new_threads, record_btrace_thread_alive):
  10642. Update.
  10643. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10644. * target.h (struct target_ops) <to_delete_record>: Add argument.
  10645. * target.c (target_delete_record): Add argument.
  10646. * record-full.c (record_full_delete): Add 'self' argument.
  10647. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10648. * target.h (struct target_ops) <to_save_record>: Add argument.
  10649. * target.c (target_save_record): Add argument.
  10650. * record-full.c (record_full_save): Add 'self' argument.
  10651. (record_full_save): Add 'self' argument.
  10652. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10653. * target.h (struct target_ops) <to_info_record>: Add argument.
  10654. * target.c (target_info_record): Add argument.
  10655. * record.c (info_record_command): Add argument.
  10656. * record-full.c (record_full_info): Add 'self' argument.
  10657. * record-btrace.c (record_btrace_info): Add 'self' argument.
  10658. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10659. * target.h (struct target_ops) <to_stop_recording>: Add argument.
  10660. * target.c (target_stop_recording): Add argument.
  10661. * record.c (record_stop): Add argument.
  10662. * record-btrace.c (record_btrace_stop_recording): Add 'self'
  10663. argument.
  10664. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10665. * target.h (struct target_ops) <to_read_btrace>: Add argument.
  10666. * target.c (struct target_ops) <to_read_btrace>: Add argument.
  10667. * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
  10668. argument.
  10669. * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
  10670. (_initialize_amd64_linux_nat): Use it.
  10671. * i386-linux-nat.c (i386_linux_read_btrace): New function.
  10672. (_initialize_i386_linux_nat): Use it.
  10673. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10674. * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
  10675. * target.c (target_teardown_btrace): Add argument.
  10676. * remote.c (remote_teardown_btrace): Add 'self' argument.
  10677. * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
  10678. argument.
  10679. * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
  10680. argument.
  10681. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10682. * target.h (struct target_ops) <to_disable_btrace>: Add argument.
  10683. * target.c (target_disable_btrace): Add argument.
  10684. * remote.c (remote_disable_btrace): Add 'self' argument.
  10685. * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
  10686. argument.
  10687. * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
  10688. argument.
  10689. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10690. * target.h (struct target_ops) <to_enable_btrace>: Add argument.
  10691. * target.c (target_enable_btrace): Add argument.
  10692. * remote.c (remote_enable_btrace): Add 'self' argument.
  10693. * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
  10694. argument.
  10695. * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
  10696. argument.
  10697. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10698. * target.h (struct target_ops) <to_can_use_agent>: Add argument.
  10699. (target_can_use_agent): Add argument.
  10700. * target.c (update_current_target): Update.
  10701. * remote.c (remote_can_use_agent): Add 'self' argument.
  10702. * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
  10703. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10704. * target.h (struct target_ops) <to_use_agent>: Add argument.
  10705. (target_use_agent): Add argument.
  10706. * target.c (update_current_target): Update.
  10707. * remote.c (remote_use_agent): Add 'self' argument.
  10708. * inf-child.c (inf_child_use_agent): Add 'self' argument.
  10709. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10710. * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
  10711. * target.h (struct target_ops) <to_traceframe_info>: Add argument.
  10712. (target_traceframe_info): Add argument.
  10713. * target.c (update_current_target): Update.
  10714. * remote.c (remote_traceframe_info): Add 'self' argument.
  10715. * ctf.c (ctf_traceframe_info): Add 'self' argument.
  10716. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10717. * target.h (target_static_tracepoint_markers_by_strid): Add
  10718. argument.
  10719. (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
  10720. 'self' argument.
  10721. * target.c (update_current_target): Update.
  10722. * remote.c (struct target_ops)
  10723. <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
  10724. * linux-nat.c (struct target_ops)
  10725. <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
  10726. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10727. * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
  10728. Add argument.
  10729. (target_static_tracepoint_marker_at): Add argument.
  10730. * target.c (update_current_target): Update.
  10731. * remote.c (remote_static_tracepoint_marker_at): Add 'self'
  10732. argument.
  10733. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10734. * target.h (struct target_ops) <to_set_permissions>: Add argument.
  10735. (target_set_permissions): Add argument.
  10736. * target.c (update_current_target): Update.
  10737. * remote.c (remote_set_permissions): Add 'self' argument.
  10738. (remote_start_remote): Update.
  10739. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10740. * windows-nat.c (windows_get_tib_address): Add 'self' argument.
  10741. * target.h (struct target_ops) <to_get_tib_address>: Add argument.
  10742. (target_get_tib_address): Add argument.
  10743. * target.c (update_current_target): Update.
  10744. * remote.c (remote_get_tib_address): Add 'self' argument.
  10745. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10746. * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
  10747. (target_set_trace_notes): Add argument.
  10748. * target.c (update_current_target): Update.
  10749. * remote.c (remote_set_trace_notes): Add 'self' argument.
  10750. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10751. * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
  10752. argument.
  10753. (target_set_trace_buffer_size): Add argument.
  10754. * target.c (update_current_target): Update.
  10755. * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
  10756. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10757. * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
  10758. argument.
  10759. (target_set_circular_trace_buffer): Add argument.
  10760. * target.c (update_current_target): Update.
  10761. * remote.c (remote_set_circular_trace_buffer): Add 'self'
  10762. argument.
  10763. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10764. * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
  10765. argument.
  10766. (target_set_disconnected_tracing): Add argument.
  10767. * target.c (update_current_target): Update.
  10768. * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
  10769. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10770. * target.h (struct target_ops)
  10771. <to_get_min_fast_tracepoint_insn_len>: Add argument.
  10772. (target_get_min_fast_tracepoint_insn_len): Add argument.
  10773. * target.c (update_current_target): Update.
  10774. * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
  10775. argument.
  10776. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10777. * target.h (struct target_ops) <to_get_raw_trace_data>: Add
  10778. argument.
  10779. (target_get_raw_trace_data): Add argument.
  10780. * target.c (update_current_target): Update.
  10781. * remote.c (remote_get_raw_trace_data): Add 'self' argument.
  10782. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10783. * target.h (struct target_ops) <to_upload_trace_state_variables>:
  10784. Add argument.
  10785. (target_upload_trace_state_variables): Add argument.
  10786. * target.c (update_current_target): Update.
  10787. * remote.c (remote_upload_trace_state_variables): Add 'self'
  10788. argument.
  10789. (remote_start_remote): Update.
  10790. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10791. * target.h (struct target_ops) <to_upload_tracepoints>: Add
  10792. argument.
  10793. (target_upload_tracepoints): Add argument.
  10794. * target.c (update_current_target): Update.
  10795. * remote.c (remote_upload_tracepoints): Add 'self' argument.
  10796. (remote_start_remote): Update.
  10797. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10798. * target.h (struct target_ops) <to_save_trace_data>: Add argument.
  10799. (target_save_trace_data): Add argument.
  10800. * target.c (update_current_target): Update.
  10801. * remote.c (remote_save_trace_data): Add 'self' argument.
  10802. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10803. * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
  10804. argument.
  10805. * target.h (struct target_ops)
  10806. <to_get_trace_state_variable_value>: Add argument.
  10807. (target_get_trace_state_variable_value): Add argument.
  10808. * target.c (update_current_target): Update.
  10809. * remote.c (remote_get_trace_state_variable_value): Add 'self'
  10810. argument.
  10811. * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
  10812. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10813. * tracepoint.c (tfile_trace_find): Add 'self' argument.
  10814. * target.h (struct target_ops) <to_trace_find>: Add argument.
  10815. (target_trace_find): Add argument.
  10816. * target.c (update_current_target): Update.
  10817. * remote.c (remote_trace_find): Add 'self' argument.
  10818. * ctf.c (ctf_trace_find): Add 'self' argument.
  10819. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10820. * target.h (struct target_ops) <to_trace_stop>: Add argument.
  10821. (target_trace_stop): Add argument.
  10822. * target.c (update_current_target): Update.
  10823. * remote.c (remote_trace_stop): Add 'self' argument.
  10824. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10825. * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
  10826. * target.h (struct target_ops) <to_get_tracepoint_status>: Add
  10827. argument.
  10828. (target_get_tracepoint_status): Add argument.
  10829. * target.c (update_current_target): Update.
  10830. * remote.c (remote_get_tracepoint_status): Add 'self' argument.
  10831. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10832. * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
  10833. * target.h (struct target_ops) <to_get_trace_status>: Add
  10834. argument.
  10835. (target_get_trace_status): Add argument.
  10836. * target.c (update_current_target): Update.
  10837. * remote.c (remote_get_trace_status): Add 'self' argument.
  10838. (remote_start_remote, remote_can_download_tracepoint): Update.
  10839. * ctf.c (ctf_get_trace_status): Add 'self' argument.
  10840. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10841. * target.h (struct target_ops) <to_trace_start>: Add argument.
  10842. (target_trace_start): Add argument.
  10843. * target.c (update_current_target): Update.
  10844. * remote.c (remote_trace_start): Add 'self' argument.
  10845. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10846. * target.h (struct target_ops) <to_trace_set_readonly_regions>:
  10847. Add argument.
  10848. (target_trace_set_readonly_regions): Add argument.
  10849. * target.c (update_current_target): Update.
  10850. * remote.c (remote_trace_set_readonly_regions): Add 'self'
  10851. argument.
  10852. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10853. * target.h (struct target_ops) <to_disable_tracepoint>: Add
  10854. argument.
  10855. (target_disable_tracepoint): Add argument.
  10856. * target.c (update_current_target): Update.
  10857. * remote.c (remote_disable_tracepoint): Add 'self' argument.
  10858. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10859. * target.h (struct target_ops) <to_enable_tracepoint>: Add
  10860. argument.
  10861. (target_enable_tracepoint): Add argument.
  10862. * target.c (update_current_target): Update.
  10863. * remote.c (remote_enable_tracepoint): Add 'self' argument.
  10864. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10865. * target.h (struct target_ops) <to_download_trace_state_variable>:
  10866. Add argument.
  10867. (target_download_trace_state_variable): Add argument.
  10868. * target.c (update_current_target): Update.
  10869. * remote.c (remote_download_trace_state_variable): Add 'self'
  10870. argument.
  10871. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10872. * target.h (struct target_ops) <to_can_download_tracepoint>: Add
  10873. argument.
  10874. (target_can_download_tracepoint): Add argument.
  10875. * target.c (update_current_target): Update.
  10876. * remote.c (remote_can_download_tracepoint): Add 'self' argument.
  10877. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10878. * target.h (struct target_ops) <to_download_tracepoint>: Add
  10879. argument.
  10880. (target_download_tracepoint): Add argument.
  10881. * target.c (update_current_target): Update.
  10882. * remote.c (remote_download_tracepoint): Add 'self' argument.
  10883. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10884. * target.h (struct target_ops) <to_trace_init>: Add argument.
  10885. (target_trace_init): Add argument.
  10886. * target.c (update_current_target): Update.
  10887. * remote.c (remote_trace_init): Add 'self' argument.
  10888. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10889. * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
  10890. * target.c (target_fileio_readlink): Add argument.
  10891. * remote.c (remote_hostio_readlink): Add 'self' argument.
  10892. * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
  10893. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10894. * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
  10895. * target.c (target_fileio_unlink): Add argument.
  10896. * remote.c (remote_hostio_unlink): Add 'self' argument.
  10897. (remote_file_delete): Update.
  10898. * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
  10899. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10900. * target.h (struct target_ops) <to_fileio_close>: Add argument.
  10901. * target.c (target_fileio_close): Add argument.
  10902. * remote.c (remote_hostio_close): Add 'self' argument.
  10903. (remote_hostio_close_cleanup): Update.
  10904. (remote_bfd_iovec_close, remote_file_put, remote_file_get):
  10905. Update.
  10906. * inf-child.c (inf_child_fileio_close): Add 'self' argument.
  10907. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10908. * target.h (struct target_ops) <to_fileio_pread>: Add argument.
  10909. * target.c (target_fileio_pread): Add argument.
  10910. * remote.c (remote_hostio_pread): Add 'self' argument.
  10911. (remote_bfd_iovec_pread, remote_file_get): Update.
  10912. * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
  10913. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10914. * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
  10915. * target.c (target_fileio_pwrite): Add argument.
  10916. * remote.c (remote_hostio_pwrite): Add 'self' argument.
  10917. (remote_file_put): Update.
  10918. * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
  10919. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10920. * target.h (struct target_ops) <to_fileio_open>: Add argument.
  10921. * target.c (target_fileio_open): Add argument.
  10922. * remote.c (remote_hostio_open): Add 'self' argument.
  10923. (remote_bfd_iovec_open): Add 'self' argument.
  10924. (remote_file_put): Add 'self' argument.
  10925. (remote_file_get): Add 'self' argument.
  10926. * inf-child.c (inf_child_fileio_open): Add 'self' argument.
  10927. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10928. * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
  10929. Add argument.
  10930. (target_can_run_breakpoint_commands): Add argument.
  10931. * target.c (update_current_target): Update.
  10932. * remote.c (remote_can_run_breakpoint_commands): Add 'self'
  10933. argument.
  10934. (remote_insert_breakpoint): Add 'self' argument.
  10935. (remote_insert_hw_breakpoint): Add 'self' argument.
  10936. (remote_can_run_breakpoint_commands): Add 'self' argument.
  10937. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10938. * target.h (struct target_ops)
  10939. <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
  10940. (target_supports_evaluation_of_breakpoint_conditions): Add
  10941. argument.
  10942. * target.c (update_current_target): Update.
  10943. * remote.c (remote_supports_cond_breakpoints): Add 'self'
  10944. argument.
  10945. (remote_insert_breakpoint): Add 'self' argument.
  10946. (remote_insert_hw_breakpoint): Add 'self' argument.
  10947. (remote_supports_cond_breakpoints): Add 'self' argument.
  10948. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10949. * target.h (struct target_ops) <to_supports_string_tracing>: Add
  10950. argument.
  10951. (target_supports_string_tracing): Add argument.
  10952. * target.c (update_current_target): Update.
  10953. * remote.c (remote_supports_string_tracing): Add 'self' argument.
  10954. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10955. * target.h (struct target_ops)
  10956. <to_supports_disable_randomization>: Add argument.
  10957. * target.c (find_default_supports_disable_randomization): Add
  10958. argument.
  10959. (target_supports_disable_randomization): Add argument.
  10960. (find_default_supports_disable_randomization): Add 'self'
  10961. argument.
  10962. * remote.c (extended_remote_supports_disable_randomization): Add
  10963. 'self' argument.
  10964. (remote_supports_disable_randomization): Add 'self' argument.
  10965. (extended_remote_create_inferior): Update.
  10966. * linux-nat.c (linux_nat_supports_disable_randomization): Add
  10967. 'self' argument.
  10968. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10969. * target.h (struct target_ops)
  10970. <to_supports_enable_disable_tracepoint>: Add argument.
  10971. (target_supports_enable_disable_tracepoint): Add argument.
  10972. * target.c (update_current_target): Update.
  10973. * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
  10974. argument.
  10975. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10976. * target.h (struct target_ops) <to_supports_multi_process>: Add
  10977. argument.
  10978. (target_supports_multi_process): Add argument.
  10979. * target.c (update_current_target): Update.
  10980. * remote.c (remote_supports_multi_process): Add 'self' argument.
  10981. * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
  10982. argument.
  10983. * darwin-nat.c (darwin_supports_multi_process): Add 'self'
  10984. argument.
  10985. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10986. * target.h (struct target_ops) <to_execution_direction>: Add
  10987. argument.
  10988. (target_execution_direction): Add argument.
  10989. * target.c (default_execution_direction): Add 'self' argument.
  10990. * record-full.c (record_full_execution_direction): Add 'self'
  10991. argument.
  10992. 2014-02-19 Tom Tromey <tromey@redhat.com>
  10993. * target.h (struct target_ops) <to_can_execute_reverse>: Add
  10994. argument.
  10995. (target_can_execute_reverse): Add argument.
  10996. * remote.c (remote_can_execute_reverse): Add 'self' argument.
  10997. * record-full.c (record_full_can_execute_reverse): Add 'self'
  10998. argument.
  10999. * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
  11000. argument.
  11001. 2014-02-19 Tom Tromey <tromey@redhat.com>
  11002. * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
  11003. * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
  11004. argument.
  11005. (target_get_ada_task_ptid): Add argument.
  11006. * target.c (update_current_target): Update.
  11007. (default_get_ada_task_ptid): Add 'self' argument.
  11008. * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
  11009. * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
  11010. * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
  11011. argument.
  11012. * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
  11013. argument.
  11014. * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
  11015. argument.
  11016. * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
  11017. argument.
  11018. * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
  11019. * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
  11020. argument.
  11021. 2014-02-19 Tom Tromey <tromey@redhat.com>
  11022. * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
  11023. (target_goto_bookmark): Add argument.
  11024. * target.c (dummy_goto_bookmark): Add 'self' argument.
  11025. * record-full.c (record_full_goto_bookmark): Add 'self' argument.
  11026. 2014-02-19 Tom Tromey <tromey@redhat.com>
  11027. * target.h (struct target_ops) <to_get_bookmark>: Add argument.
  11028. (target_get_bookmark): Add argument.
  11029. * target.c (dummy_get_bookmark): Add 'self' argument.
  11030. * record-full.c (record_full_get_bookmark): Add 'self' argument.
  11031. 2014-02-19 Tom Tromey <tromey@redhat.com>
  11032. * target.h (struct target_ops) <to_make_corefile_notes>: Add
  11033. argument.
  11034. (target_make_corefile_notes): Add argument.
  11035. * target.c (dummy_make_corefile_notes): Add 'self' argument.
  11036. * procfs.c (procfs_make_note_section): Add 'self' argument.
  11037. (procfs_make_note_section): Add 'self' argument.
  11038. (procfs_make_note_section): Add 'self' argument.
  11039. * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
  11040. argument.
  11041. * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
  11042. * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
  11043. * exec.c (exec_make_note_section): Add 'self' argument.
  11044. (exec_make_note_section): Add 'self' argument.
  11045. 2014-02-19 Tom Tromey <tromey@redhat.com>
  11046. * target.h (struct target_ops) <to_find_memory_regions>: Add
  11047. argument.
  11048. (target_find_memory_regions): Add argument.
  11049. * target.c (dummy_find_memory_regions): Add 'self' argument.
  11050. * procfs.c (proc_find_memory_regions): Add 'self' argument.
  11051. * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
  11052. * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
  11053. * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
  11054. * exec. (exec_do_find_memory_regions): New global.
  11055. (exec_set_find_memory_regions): Rewrite.
  11056. (exec_find_memory_regions): New function.
  11057. (init_exec_ops): Use exec_find_memory_regions.
  11058. 2014-02-19 Tom Tromey <tromey@redhat.com>
  11059. * target.h (struct target_ops) <to_supports_non_stop>: Add
  11060. argument.
  11061. * target.c (find_default_supports_non_stop): Add argument.
  11062. (target_supports_non_stop): Add argument.
  11063. (find_default_supports_non_stop): Add 'self' argument.
  11064. * remote.c (remote_supports_non_stop): Add 'self' argument.
  11065. * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
  11066. 2014-02-19 Tom Tromey <tromey@redhat.com>
  11067. * target.h (struct target_ops) <to_log_command>: Add argument.
  11068. (target_log_command): Add argument.
  11069. * serial.h (serial_log_command): Add 'self' argument.
  11070. * serial.c (serial_log_command): Add 'self' argument.
  11071. 2014-02-19 Tom Tromey <tromey@redhat.com>
  11072. * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
  11073. * target.h (struct target_ops) <to_pid_to_exec_file>: Add
  11074. argument.
  11075. (target_pid_to_exec_file): Add argument.
  11076. * target.c (debug_to_pid_to_exec_file): Add argument.
  11077. (update_current_target): Update.
  11078. * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
  11079. * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
  11080. * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
  11081. (linux_handle_extended_wait): Update.
  11082. * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
  11083. * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
  11084. * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
  11085. * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
  11086. 2014-02-19 Tom Tromey <tromey@redhat.com>
  11087. * target.h (struct target_ops) <to_rcmd>: Add argument.
  11088. (target_rcmd): Add argument.
  11089. * target.c (debug_to_rcmd): Add argument.
  11090. (update_current_target, do_monitor_command): Update.
  11091. * remote.c (remote_rcmd): Add 'self' argument.
  11092. * monitor.c (monitor_rcmd): Add 'self' argument.
  11093. 2014-02-19 Tom Tromey <tromey@redhat.com>
  11094. * windows-nat.c (windows_stop): Add 'self' argument.
  11095. * target.h (struct target_ops) <to_stop>: Add argument.
  11096. * target.c (target_stop): Add argument.
  11097. (debug_to_stop): Add argument.
  11098. (update_current_target): Update.
  11099. * remote.c (remote_stop): Add 'self' argument.
  11100. * remote-sim.c (gdbsim_stop): Add 'self' argument.
  11101. (gdbsim_cntrl_c): Update.
  11102. * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
  11103. * procfs.c (procfs_stop): Add 'self' argument.
  11104. * nto-procfs.c (procfs_stop): Add 'self' argument.
  11105. * monitor.c (monitor_stop): Add 'self' argument.
  11106. (monitor_open): Update.
  11107. * linux-nat.c (linux_nat_stop): Add argument.
  11108. * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
  11109. * gnu-nat.c (gnu_stop): Add 'self' argument.
  11110. * darwin-nat.c (darwin_stop): Add 'self' argument.
  11111. 2014-02-19 Tom Tromey <tromey@redhat.com>
  11112. * target.h (struct target_ops) <to_thread_name>: Add argument.
  11113. * target.c (target_thread_name): Add argument.
  11114. (update_current_target): Update.
  11115. * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
  11116. 2014-02-19 Tom Tromey <tromey@redhat.com>
  11117. * target.h (struct target_ops) <to_extra_thread_info>: Add
  11118. argument.
  11119. (target_extra_thread_info): Add argument.
  11120. * target.c (update_current_target): Update.
  11121. * remote.c (remote_threads_extra_info): Add 'self' argument.
  11122. * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
  11123. argument.
  11124. * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
  11125. * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
  11126. * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
  11127. argument.
  11128. * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
  11129. argument.
  11130. * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
  11131. argument.
  11132. * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
  11133. argument.
  11134. 2014-02-19 Tom Tromey <tromey@redhat.com>
  11135. * target.h (struct target_ops) <to_program_signals>: Add argument.
  11136. * target.c (target_program_signals): Add argument.
  11137. * remote.c (remote_program_signals): Add 'self' argument.
  11138. 2014-02-19 Tom Tromey <tromey@redhat.com>
  11139. * target.h (struct target_ops) <to_pass_signals>: Add argument.
  11140. * target.c (target_pass_signals): Add argument.
  11141. * remote.c (remote_pass_signals): Add 'self' argument.
  11142. (remote_start_remote): Update.
  11143. * procfs.c (procfs_pass_signals): Add 'self' argument.
  11144. * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
  11145. * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
  11146. (linux_nat_create_inferior, linux_nat_attach): Update.
  11147. 2014-02-19 Tom Tromey <tromey@redhat.com>
  11148. * windows-nat.c (windows_can_run): Add 'self' argument.
  11149. * target.h (struct target_ops) <to_can_run>: Add argument.
  11150. (target_can_run): Add argument.
  11151. * target.c (debug_to_can_run): Add argument.
  11152. (update_current_target): Update.
  11153. * nto-procfs.c (procfs_can_run): Add 'self' argument.
  11154. * inf-child.c (inf_child_can_run): Add 'self' argument.
  11155. * go32-nat.c (go32_can_run): Add 'self' argument.
  11156. 2014-02-19 Tom Tromey <tromey@redhat.com>
  11157. * target.h (struct target_ops) <to_has_exited>: Add argument.
  11158. (target_has_exited): Add argument.
  11159. * target.c (debug_to_has_exited): Add argument.
  11160. (update_current_target): Update.
  11161. 2014-02-19 Tom Tromey <tromey@redhat.com>
  11162. * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
  11163. argument.
  11164. (target_set_syscall_catchpoint): Add argument.
  11165. * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
  11166. argument.
  11167. * target.c (update_current_target): Update.
  11168. 2014-02-19 Tom Tromey <tromey@redhat.com>
  11169. * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
  11170. argument.
  11171. (target_remove_exec_catchpoint): Add argument.
  11172. * target.c (debug_to_remove_exec_catchpoint): Add argument.
  11173. (update_current_target): Update.
  11174. * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
  11175. argument.
  11176. 2014-02-19 Tom Tromey <tromey@redhat.com>
  11177. * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
  11178. argument.
  11179. (target_insert_exec_catchpoint): Add argument.
  11180. * target.c (debug_to_insert_exec_catchpoint): Add argument.
  11181. (update_current_target): Update.
  11182. * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
  11183. argument.
  11184. 2014-02-19 Tom Tromey <tromey@redhat.com>
  11185. * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
  11186. argument.
  11187. (target_remove_vfork_catchpoint): Add argument.
  11188. * target.c (debug_to_remove_vfork_catchpoint): Add argument.
  11189. (update_current_target): Update.
  11190. * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
  11191. argument.
  11192. 2014-02-19 Tom Tromey <tromey@redhat.com>
  11193. * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
  11194. argument.
  11195. (target_insert_vfork_catchpoint): Add argument.
  11196. * target.c (debug_to_insert_vfork_catchpoint): Add argument.
  11197. (update_current_target): Update.
  11198. * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
  11199. argument.
  11200. 2014-02-19 Tom Tromey <tromey@redhat.com>
  11201. * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
  11202. argument.
  11203. (target_remove_fork_catchpoint): Add argument.
  11204. * target.c (debug_to_remove_fork_catchpoint): Add argument.
  11205. (update_current_target): Update.
  11206. * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
  11207. argument.
  11208. 2014-02-19 Tom Tromey <tromey@redhat.com>
  11209. * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
  11210. argument.
  11211. (target_insert_fork_catchpoint): Add argument.
  11212. * target.c (debug_to_insert_fork_catchpoint): Add argument.
  11213. (update_current_target): Update.
  11214. * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
  11215. argument.
  11216. 2014-02-19 Tom Tromey <tromey@redhat.com>
  11217. * target.h (struct target_ops) <to_post_startup_inferior>: Add
  11218. argument.
  11219. (target_post_startup_inferior): Add argument.
  11220. * target.c (debug_to_post_startup_inferior): Add argument.
  11221. (update_current_target): Update.
  11222. * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
  11223. argument.
  11224. * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
  11225. argument.
  11226. * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
  11227. argument.
  11228. * inf-child.c (inf_child_post_startup_inferior): Add 'self'
  11229. argument.
  11230. * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
  11231. 'self' argument.
  11232. (super_post_startup_inferior): Likewise.
  11233. * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
  11234. 'self' argument.
  11235. (super_post_startup_inferior): Likewise.
  11236. * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
  11237. Add 'self' argument.
  11238. (super_post_startup_inferior): Likewise.
  11239. 2014-02-19 Tom Tromey <tromey@redhat.com>
  11240. * target.h (struct target_ops) <to_load>: Add argument.
  11241. * target.c (target_load): Add argument.
  11242. (debug_to_load): Add argument.
  11243. (update_current_target): Update.
  11244. * remote.c (remote_load): Add 'self' argument.
  11245. * remote-sim.c (gdbsim_load): Add 'self' argument.
  11246. * remote-mips.c (mips_load): Add 'self' argument.
  11247. * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
  11248. * monitor.c (monitor_load): Add 'self' argument.
  11249. * m32r-rom.c (m32r_load_gen): Add 'self' argument.
  11250. 2014-02-19 Tom Tromey <tromey@redhat.com>
  11251. * target.h (struct target_ops) <to_terminal_info>: Add argument.
  11252. (target_terminal_info): Add argument.
  11253. * target.c (debug_to_terminal_info): Add argument.
  11254. (default_terminal_info): Likewise.
  11255. * inflow.c (child_terminal_info): Add 'self' argument.
  11256. * inferior.h (child_terminal_info): Add 'self' argument.
  11257. * go32-nat.c (go32_terminal_info): Add 'self' argument.
  11258. 2014-02-19 Tom Tromey <tromey@redhat.com>
  11259. * target.h (struct target_ops) <to_terminal_save_ours>: Add
  11260. argument.
  11261. (target_terminal_save_ours): Add argument.
  11262. * target.c (debug_to_terminal_save_ours): Add argument.
  11263. (update_current_target): Update.
  11264. * inflow.c (terminal_save_ours): Add 'self' argument.
  11265. * inferior.h (terminal_save_ours): Add 'self' argument.
  11266. 2014-02-19 Tom Tromey <tromey@redhat.com>
  11267. * target.h (struct target_ops) <to_terminal_ours>: Add argument.
  11268. (target_terminal_ours): Add argument.
  11269. * target.c (debug_to_terminal_ours): Add argument.
  11270. (update_current_target): Update.
  11271. * remote.c (remote_terminal_ours): Add 'self' argument.
  11272. (remote_close): Update.
  11273. * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
  11274. * inflow.c (terminal_ours): Add 'self' argument.
  11275. * inferior.h (terminal_ours): Add 'self' argument.
  11276. * go32-nat.c (go32_terminal_ours): Add 'self' argument.
  11277. 2014-02-19 Pedro Alves <palves@redhat.com>
  11278. Tom Tromey <tromey@redhat.com>
  11279. * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
  11280. argument.
  11281. (target_terminal_ours_for_output): Add argument.
  11282. * target.c (debug_to_terminal_ours_for_output): Add argument.
  11283. (update_current_target): Update.
  11284. * inflow.c (terminal_ours_for_output): Add 'self' argument.
  11285. * inferior.h (terminal_ours_for_output): Add 'self' argument.
  11286. * go32-nat.c (go32_terminal_ours): Add 'self' argument.
  11287. 2014-02-19 Tom Tromey <tromey@redhat.com>
  11288. * target.h (struct target_ops) <to_terminal_inferior>: Add
  11289. argument.
  11290. * target.c (target_terminal_inferior): Add argument.
  11291. (update_current_target): Update.
  11292. * remote.c (remote_terminal_inferior): Add 'self' argument.
  11293. * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
  11294. * inflow.c (terminal_inferior): Add 'self' argument.
  11295. * inferior.h (terminal_inferior): Add 'self' argument.
  11296. * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
  11297. (go32_terminal_inferior): Add 'self' argument.
  11298. 2014-02-19 Tom Tromey <tromey@redhat.com>
  11299. * target.h (struct target_ops) <to_terminal_init>: Add argument.
  11300. (target_terminal_init): Add argument.
  11301. * target.c (debug_to_terminal_init): Add argument.
  11302. (update_current_target): Update.
  11303. * inflow.c (terminal_init_inferior): Add 'self' argument.
  11304. * inferior.h (terminal_init_inferior): Add 'self' argument.
  11305. * go32-nat.c (go32_terminal_init): Add 'self' argument.
  11306. * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
  11307. 2014-02-19 Tom Tromey <tromey@redhat.com>
  11308. * target.h (struct target_ops)
  11309. <to_can_accel_watchpoint_condition>: Add argument.
  11310. (target_can_accel_watchpoint_condition): Add argument.
  11311. * target.c (debug_to_can_accel_watchpoint_condition): Add
  11312. argument.
  11313. (update_current_target): Update.
  11314. * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
  11315. 'self' argument.
  11316. 2014-02-19 Tom Tromey <tromey@redhat.com>
  11317. * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
  11318. Add argument.
  11319. (target_region_ok_for_hw_watchpoint): Add argument.
  11320. * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
  11321. (default_region_ok_for_hw_watchpoint): Add argument.
  11322. * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
  11323. * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
  11324. argument.
  11325. * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
  11326. argument.
  11327. * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
  11328. argument.
  11329. * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
  11330. 'self' argument.
  11331. * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
  11332. 'self' argument.
  11333. * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
  11334. 'self' argument.
  11335. * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
  11336. * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
  11337. 'self' argument.
  11338. * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
  11339. Add 'self' argument.
  11340. 2014-02-19 Tom Tromey <tromey@redhat.com>
  11341. * target.h (struct target_ops) <to_insert_watchpoint>: Add
  11342. argument.
  11343. (target_insert_watchpoint): Add argument.
  11344. * target.c (debug_to_insert_watchpoint): Add argument.
  11345. (update_current_target): Update.
  11346. * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
  11347. * remote.c (remote_insert_watchpoint): Add 'self' argument.
  11348. * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
  11349. * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
  11350. * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
  11351. * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
  11352. argument.
  11353. * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
  11354. (procfs_insert_hw_watchpoint): Add 'self' argument.
  11355. * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
  11356. argument.
  11357. * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
  11358. argument.
  11359. * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
  11360. argument.
  11361. * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
  11362. * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
  11363. argument.
  11364. * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
  11365. 'self' argument.
  11366. 2014-02-19 Tom Tromey <tromey@redhat.com>
  11367. * target.h (struct target_ops) <to_remove_watchpoint>: Add
  11368. argument.
  11369. (target_remove_watchpoint): Add argument.
  11370. * target.c (debug_to_remove_watchpoint): Add argument.
  11371. (update_current_target): Update.
  11372. * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
  11373. * remote.c (remote_remove_watchpoint): Add 'self' argument.
  11374. * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
  11375. * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
  11376. * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
  11377. * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
  11378. argument.
  11379. * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
  11380. * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
  11381. argument.
  11382. * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
  11383. argument.
  11384. * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
  11385. argument.
  11386. * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
  11387. * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
  11388. argument.
  11389. * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
  11390. 'self' argument.
  11391. 2014-02-19 Tom Tromey <tromey@redhat.com>
  11392. * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
  11393. argument.
  11394. (target_remove_hw_breakpoint): Add argument.
  11395. * target.c (debug_to_remove_hw_breakpoint): Add argument.
  11396. (update_current_target): Update.
  11397. * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
  11398. * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
  11399. argument.
  11400. * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
  11401. * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
  11402. argument.
  11403. * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
  11404. 'self' argument.
  11405. 2014-02-19 Tom Tromey <tromey@redhat.com>
  11406. * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
  11407. argument.
  11408. (target_insert_hw_breakpoint): Add argument.
  11409. * target.c (debug_to_insert_hw_breakpoint): Add argument.
  11410. (update_current_target): Update.
  11411. * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
  11412. * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
  11413. argument.
  11414. * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
  11415. * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
  11416. * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
  11417. argument.
  11418. * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
  11419. 'self' argument.
  11420. 2014-02-19 Tom Tromey <tromey@redhat.com>
  11421. * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
  11422. argument.
  11423. (target_can_use_hardware_watchpoint): Add argument.
  11424. * target.c (debug_to_can_use_hw_breakpoint): Add argument.
  11425. (update_current_target): Update.
  11426. * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
  11427. argument.
  11428. * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
  11429. argument.
  11430. * remote.c (remote_check_watch_resources): Add 'self' argument.
  11431. * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
  11432. * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
  11433. argument.
  11434. * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
  11435. * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
  11436. argument.
  11437. * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
  11438. argument.
  11439. * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
  11440. argument.
  11441. * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
  11442. argument.
  11443. * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
  11444. argument.
  11445. * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
  11446. argument.
  11447. * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
  11448. * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
  11449. argument.
  11450. * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
  11451. 'self' argument.
  11452. 2014-02-19 Tom Tromey <tromey@redhat.com>
  11453. * target.h (struct target_ops) <to_post_attach>: Add argument.
  11454. (target_post_attach): Add argument.
  11455. * target.c (debug_to_post_attach): Add argument.
  11456. (update_current_target): Update.
  11457. * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
  11458. * nto-procfs.c (procfs_post_attach): Add 'self' argument.
  11459. * linux-nat.c (linux_child_post_attach): Add 'self' argument.
  11460. * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
  11461. * inf-child.c (inf_child_post_attach): Add 'self' argument.
  11462. 2014-02-19 Tom Tromey <tromey@redhat.com>
  11463. * windows-nat.c (windows_close): Add 'self' argument.
  11464. * tracepoint.c (tfile_close): Add 'self' argument.
  11465. * target.h (struct target_ops) <to_close>: Add argument.
  11466. * target.c (target_close): Add argument.
  11467. (update_current_target): Update.
  11468. * remote.c (remote_close): Add 'self' argument.
  11469. * remote-sim.c (gdbsim_close): Add 'self' argument.
  11470. * remote-mips.c (mips_close): Add 'self' argument.
  11471. * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
  11472. * record-full.c (record_full_close): Add 'self' argument.
  11473. * record-btrace.c (record_btrace_close): Add 'self' argument.
  11474. * monitor.h (monitor_close): Add 'self' argument.
  11475. * monitor.c (monitor_close): Add 'self' argument.
  11476. * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
  11477. * linux-nat.c (linux_nat_close): Add argument.
  11478. * go32-nat.c (go32_close): Add 'self' argument.
  11479. * exec.c (exec_close_1): Add 'self' argument.
  11480. * ctf.c (ctf_close): Add 'self' argument.
  11481. * corelow.c (core_close): Add 'self' argument.
  11482. (core_close_cleanup): Update.
  11483. * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
  11484. * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
  11485. 2014-02-19 Tom Tromey <tromey@redhat.com>
  11486. * remote.c (remote_load): New function.
  11487. (init_remote_ops): Use it.
  11488. 2014-02-19 Tom Tromey <tromey@redhat.com>
  11489. * common/linux-btrace.c (linux_supports_btrace): Add "ops"
  11490. argument.
  11491. * common/linux-btrace.h (linux_supports_btrace): Update.
  11492. * remote.c (remote_supports_btrace): Add "self" argument.
  11493. * target-delegates.c: Rebuild.
  11494. * target.c (target_supports_btrace): Remove.
  11495. * target.h (struct target_ops) <to_supports_btrace>: Add
  11496. target_ops argument.
  11497. (target_supports_btrace): New define.
  11498. 2014-02-19 Tom Tromey <tromey@redhat.com>
  11499. * record-full.c (record_full_beneath_to_resume_ops)
  11500. (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
  11501. (record_full_beneath_to_wait)
  11502. (record_full_beneath_to_store_registers_ops)
  11503. (record_full_beneath_to_store_registers)
  11504. (record_full_beneath_to_xfer_partial_ops)
  11505. (record_full_beneath_to_xfer_partial)
  11506. (record_full_beneath_to_insert_breakpoint_ops)
  11507. (record_full_beneath_to_insert_breakpoint)
  11508. (record_full_beneath_to_remove_breakpoint_ops)
  11509. (record_full_beneath_to_remove_breakpoint)
  11510. (record_full_beneath_to_stopped_by_watchpoint)
  11511. (record_full_beneath_to_stopped_data_address)
  11512. (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
  11513. (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
  11514. (tmp_to_store_registers, tmp_to_xfer_partial_ops)
  11515. (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
  11516. (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
  11517. (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
  11518. (tmp_to_stopped_data_address, tmp_to_async): Remove.
  11519. (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
  11520. (record_full_resume, record_full_wait_1)
  11521. (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
  11522. (record_full_store_registers, record_full_xfer_partial)
  11523. (record_full_insert_breakpoint, record_full_remove_breakpoint)
  11524. (record_full_async, record_full_core_xfer_partial): Use target
  11525. delegation.
  11526. * target-delegates.c: Rebuild.
  11527. * target.c (current_xfer_partial): Remove.
  11528. (update_current_target): Do not INHERIT or de_fault
  11529. to_insert_breakpoint, to_remove_breakpoint,
  11530. to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
  11531. to_is_async_p, to_async. Do not set to_xfer_partial field.
  11532. (default_xfer_partial): Simplify.
  11533. (current_xfer_partial): Remove.
  11534. (target_wait, target_resume): Simplify.
  11535. (find_default_can_async_p, find_default_is_async_p): Update.
  11536. (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
  11537. to_xfer_partial, to_stopped_by_watchpoint,
  11538. to_stopped_data_address.
  11539. (target_store_registers): Simplify.
  11540. (forward_target_remove_breakpoint)
  11541. (forward_target_insert_breakpoint): Remove.
  11542. (target_remove_breakpoint, target_insert_breakpoint)
  11543. (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
  11544. * target.h (struct target_ops) <to_resume, to_wait,
  11545. to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
  11546. to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
  11547. to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
  11548. markup.
  11549. (forward_target_remove_breakpoint)
  11550. (forward_target_insert_breakpoint): Remove.
  11551. * record-btrace.c (record_btrace_remove_breakpoint): Delegate
  11552. directly.
  11553. (record_btrace_insert_breakpoint): Delegate directly.
  11554. 2014-02-19 Tom Tromey <tromey@redhat.com>
  11555. PR build/7701:
  11556. * target-delegates.c: New file.
  11557. * target.c: Include target-delegates.c.
  11558. (init_dummy_target): Call install_dummy_methods.
  11559. (complete_target_initialization): Call install_delegators.
  11560. * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
  11561. (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
  11562. * make-target-delegates: New file.
  11563. 2014-02-19 Tom Tromey <tromey@redhat.com>
  11564. * record.c (find_record_target): Use find_target_at.
  11565. * target.c (find_target_at): New function.
  11566. * target.h (find_target_at): Declare.
  11567. 2014-02-19 Tom Tromey <tromey@redhat.com>
  11568. * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
  11569. Add 'ops' argument.
  11570. * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
  11571. 'ops' argument.
  11572. * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
  11573. * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
  11574. 'ops' argument.
  11575. * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
  11576. argument.
  11577. * linux-nat.c (save_sigtrap): Update.
  11578. (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
  11579. (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
  11580. (linux_nat_close): Update.
  11581. * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
  11582. argument.
  11583. * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
  11584. argument.
  11585. * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
  11586. * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
  11587. (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
  11588. (tmp_to_async): Add 'ops' argument.
  11589. (record_full_stopped_by_watchpoint, record_full_async)
  11590. (record_full_can_async_p, record_full_is_async_p): Add 'ops'
  11591. argument.
  11592. * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
  11593. (m32r_stopped_by_watchpoint): Add 'ops' argument.
  11594. * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
  11595. * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
  11596. (remote_is_async_p, remote_async): Add 'ops' argument.
  11597. (remote_stopped_data_address): Update.
  11598. * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
  11599. * target.c (update_current_target)
  11600. (find_default_can_async_p, find_default_is_async_p): Update.
  11601. (init_dummy_target): Update.
  11602. (debug_to_stopped_by_watchpoint): Add 'ops' argument.
  11603. * target.h (struct target_ops) <to_stopped_by_watchpoint,
  11604. to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
  11605. (target_can_async_p, target_is_async_p, target_async)
  11606. (target_stopped_by_watchpoint): Update.
  11607. 2014-02-19 Yao Qi <yao@codesourcery.com>
  11608. PR gdb/16220
  11609. * gdbarch.sh: Remove startup_gdbarch.
  11610. * gdbarch.c: Regenerated.
  11611. * gdbarch.h: Likewise.
  11612. 2014-02-17 Kevin Buettner <kevinb@redhat.com>
  11613. * rl78-tdep.c (rl78_g10_register_name): New function.
  11614. (rl78_return_value): Add g10 support.
  11615. (rl78_gdbarch_init): Register rl78_g10_register_name for the
  11616. g10.
  11617. 2014-02-17 Doug Evans <xdje42@gmail.com>
  11618. * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
  11619. (SUBDIR_GUILE_SRCS): Ditto.
  11620. (scm-gsmob.o): Ditto.
  11621. 2014-02-17 Yao Qi <yao@codesourcery.com>
  11622. * gnu-nat.c (ILL_RPC): Declare defined function.
  11623. 2014-02-17 Yao Qi <yao@codesourcery.com>
  11624. * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
  11625. mach_msg_type_number_t.
  11626. (gnu_write_inferior): Likewise.
  11627. 2014-02-17 Yao Qi <yao@codesourcery.com>
  11628. * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
  11629. in format string.
  11630. (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
  11631. (inf_validate_procs, inf_signal): Likewise.
  11632. (S_exception_raise_request): Likewise.
  11633. (do_mach_notify_dead_name): Likewise.
  11634. (steal_exc_port): Likewise.
  11635. (gnu_read_inferior): Change 'copy_count''s type to
  11636. mach_msg_type_number_t.
  11637. (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
  11638. format string.
  11639. 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
  11640. * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
  11641. flag. Adjust all users; in particular...
  11642. (gnu_wait): ..., don't decrement its value in here...
  11643. (gnu_create_inferior): ..., and instead set the flag in here,
  11644. around the startup_inferior call, and call that one with
  11645. START_INFERIOR_TRAPS_EXPECTED.
  11646. * gnu-nat.c (ill_rpc): Remove function; replaced with this...
  11647. (ILL_RPC): ... new macro.
  11648. (do_mach_notify_no_senders, do_mach_notify_port_deleted)
  11649. (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
  11650. (do_mach_notify_send_once, S_proc_setmsgport_reply)
  11651. (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
  11652. functions with ILL_RPC macro.
  11653. (S_proc_pid2task_reply, S_proc_task2pid_reply)
  11654. (S_proc_task2proc_reply, S_proc_proc2task_reply)
  11655. (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
  11656. (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
  11657. (S_proc_getloginid_reply, S_proc_getloginpids_reply)
  11658. (S_proc_getlogin_reply, S_proc_getsid_reply)
  11659. (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
  11660. (S_proc_getsidport_reply, S_proc_getpgrp_reply)
  11661. (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
  11662. (S_proc_getnports_reply, S_proc_is_important_reply)
  11663. (S_proc_get_code_reply): New stub functions, generated with
  11664. ILL_RPC macro.
  11665. * reply_mig_hack.awk: In phase 5, keep going if we have not yet
  11666. collected the type check structures.
  11667. * reply_mig_hack.awk: Don't expect to see the auto keyword.
  11668. 2014-02-14 Doug Evans <dje@google.com>
  11669. * target.c (target_write_partial): Fix result type.
  11670. 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
  11671. * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
  11672. the proper offsets to access fpregset_t.
  11673. 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
  11674. * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
  11675. (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
  11676. * h8300-tdep.c (setmachinelist): Remove global.
  11677. * hppa-tdep.c (hppa_sigtramp): Remove global.
  11678. * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
  11679. RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
  11680. * ravenscar-thread.c (update_target_observer): Remove global.
  11681. * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
  11682. 2014-02-12 Tom Tromey <tromey@redhat.com>
  11683. * common/rsp-low.c: Update comments.
  11684. * common/rsp-low.h: Update comments.
  11685. 2014-02-12 Tom Tromey <tromey@redhat.com>
  11686. * common/rsp-low.c (convert_ascii_to_int): Remove.
  11687. * common/rsp-low.h (convert_ascii_to_int): Don't declare.
  11688. 2014-02-12 Tom Tromey <tromey@redhat.com>
  11689. * common/rsp-low.h (unhexify): Don't declare.
  11690. * common/rsp-low.c (unhexify): Remove.
  11691. 2014-02-12 Tom Tromey <tromey@redhat.com>
  11692. * common/rsp-low.h (convert_int_to_ascii): Don't declare.
  11693. * common/rsp-low.c (convert_int_to_ascii): Remove.
  11694. 2014-02-12 Tom Tromey <tromey@redhat.com>
  11695. * common/rsp-low.h (hexify): Don't declare.
  11696. * common/rsp-low.c (hexify): Remove.
  11697. 2014-02-12 Tom Tromey <tromey@redhat.com>
  11698. * common/rsp-low.c (hexify): Never take strlen of argument.
  11699. 2014-02-12 Tom Tromey <tromey@redhat.com>
  11700. * common/rsp-low.c (bin2hex): Never take strlen of argument.
  11701. * remote.c (extended_remote_run, remote_rcmd)
  11702. (remote_download_trace_state_variable, remote_save_trace_data)
  11703. (remote_set_trace_notes): Update.
  11704. * tracepoint.c (encode_source_string, tfile_write_status)
  11705. (tfile_write_uploaded_tsv): Update.
  11706. 2014-02-12 Tom Tromey <tromey@redhat.com>
  11707. * tracepoint.c: Include rsp-low.h.
  11708. * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
  11709. * remote.c: Include rsp-low.h.
  11710. (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
  11711. (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
  11712. (remote_unescape_input): Move to common/rsp-low.c.
  11713. * common/rsp-low.h: New file.
  11714. * common/rsp-low.c: New file.
  11715. * Makefile.in (SFILES): Add common/rsp-low.c.
  11716. (HFILES_NO_SRCDIR): Add common/rsp-low.h.
  11717. (COMMON_OBS): Add rsp-low.o.
  11718. (rsp-low.o): New target.
  11719. 2014-02-12 Tom Tromey <tromey@redhat.com>
  11720. * utils.h: Include print-utils.h.
  11721. (host_address_to_string, plongest, pulongest, phex, phex_nz)
  11722. (int_string, core_addr_to_string, core_addr_to_string_nz)
  11723. (hex_string, hex_string_custom): Don't declare.
  11724. * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
  11725. (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
  11726. (hex_string_custom, int_string, core_addr_to_string)
  11727. (core_addr_to_string_nz, host_address_to_string): Move to
  11728. common/print-utils.c.
  11729. * common/print-utils.h: New file.
  11730. * common/print-utils.c: New file
  11731. * Makefile.in (SFILES): Add common/print-utils.c.
  11732. (HFILES_NO_SRCDIR): Add common/print-utils.h.
  11733. (COMMON_OBS): Add print-utils.o.
  11734. (print-utils.o): New target.
  11735. 2014-02-12 Tom Tromey <tromey@redhat.com>
  11736. * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
  11737. 2014-02-12 Mark Kettenis <kettenis@gnu.org>
  11738. * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
  11739. 2014-02-12 Mark Kettenis <kettenis@gnu.org>
  11740. * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
  11741. if a PT_IO ptrace request returns sucessfully but indicates that 0
  11742. bytes were transferred.
  11743. 2014-02-12 Pedro Alves <palves@redhat.com>
  11744. Kevin Buettner <kevinb@redhat.com>
  11745. * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
  11746. TYPE_INSTANCE_FLAG_CODE_SPACE.
  11747. 2014-02-12 Pedro Alves <palves@redhat.com>
  11748. * h8300-tdep.c (pseudo_from_raw_register)
  11749. (raw_from_pseudo_register): New functions.
  11750. (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
  11751. them.
  11752. 2014-02-12 Pedro Alves <palves@redhat.com>
  11753. * h8300-tdep.c (h8300_register_sim_regno): New function.
  11754. (h8300_gdbarch_init): Install h8300_register_sim_regno as
  11755. gdbarch_register_sim_regno hook.
  11756. 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
  11757. * nios2-tdep.c (nios2_stub_frame_base): Remove global.
  11758. 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
  11759. * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
  11760. 2014-02-12 Mark Kettenis <kettenis@gnu.org>
  11761. * obsd-tdep.h (obsd_init_abi): New prototype.
  11762. * obsd-tdep.c: Define enum with OpenBSD signal numbers.
  11763. (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
  11764. (obsd_init_abi): New functions.
  11765. * i386obsd-tdep.c: Include "obsd-tdep.h".
  11766. (i386obsd_init_abi): Call obsd_init_abi.
  11767. * amd64obsd-tdep.c: Include "obsd-tdep.h".
  11768. (amd64obsd_init_abi): Call obsd_init_abi.
  11769. * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
  11770. obsd-tdep.c to gdb_target_obs.
  11771. 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
  11772. * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
  11773. double float arguments to 16-byte in the argument slots.
  11774. 2014-02-11 Doug Evans <xdje42@gmail.com>
  11775. * configure.ac: Don't crash if pkg-config is not found and guile
  11776. wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
  11777. in guile checks.
  11778. * configure: Regenerate.
  11779. 2014-02-11 Yao Qi <yao@codesourcery.com>
  11780. * aix-thread.c (aix_thread_xfer_partial): Update comments.
  11781. * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
  11782. * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
  11783. * gnu-nat.c (gnu_xfer_memory): Likewise.
  11784. * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
  11785. * rs6000-nat.c (rs6000_xfer_partial): Likewise.
  11786. * sparc-nat.c (sparc_xfer_wcookie): Likewise.
  11787. * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
  11788. 2014-02-11 Yao Qi <yao@codesourcery.com>
  11789. * target.h (enum target_xfer_error): Rename to ...
  11790. (enum target_xfer_status): ... it. New. All users updated.
  11791. (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
  11792. New.
  11793. (TARGET_XFER_STATUS_ERROR_P): New macro.
  11794. (target_xfer_error_to_string): Remove declaration.
  11795. (target_xfer_status_to_string): Declare.
  11796. (target_xfer_partial_ftype): Adjust it.
  11797. (struct target_ops) <to_xfer_partial>: Return
  11798. target_xfer_status. Add argument xfered_len. Update
  11799. comments.
  11800. * target.c (target_xfer_error_to_string): Rename to ...
  11801. (target_xfer_status_to_string): ... it. New. All callers
  11802. updated.
  11803. (target_read_live_memory): Likewise. Call target_xfer_partial
  11804. instead of target_read.
  11805. (memory_xfer_live_readonly_partial): Return
  11806. target_xfer_status. Add argument xfered_len.
  11807. (raw_memory_xfer_partial): Likewise.
  11808. (memory_xfer_partial_1): Likewise.
  11809. (memory_xfer_partial): Likewise.
  11810. (target_xfer_partial): Likewise. Check *XFERED_LEN is set
  11811. properly. Update debug message.
  11812. (default_xfer_partial, current_xfer_partial): Likewise.
  11813. (target_write_partial): Likewise.
  11814. (target_read_partial): Likewise. All callers updated.
  11815. (read_whatever_is_readable): Likewise.
  11816. (target_write_with_progress): Likewise.
  11817. (target_read_alloc_1): Likewise.
  11818. * aix-thread.c (aix_thread_xfer_partial): Likewise.
  11819. * auxv.c (procfs_xfer_auxv): Likewise.
  11820. (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
  11821. * bfd-target.c (target_bfd_xfer_partial): Likewise.
  11822. * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
  11823. * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
  11824. * corefile.c (read_memory): Adjust.
  11825. * corelow.c (core_xfer_partial): Likewise.
  11826. * ctf.c (ctf_xfer_partial): Likewise.
  11827. * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
  11828. updated.
  11829. (darwin_xfer_partial): Likewise.
  11830. * exec.c (section_table_xfer_memory_partial): Likewise. All
  11831. callers updated.
  11832. (exec_xfer_partial): Likewise.
  11833. * exec.h (section_table_xfer_memory_partial): Update
  11834. declaration.
  11835. * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
  11836. negative.
  11837. (gnu_xfer_partial): Likewise.
  11838. * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
  11839. (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
  11840. (ia64_hpux_xfer_solib_got): Likewise.
  11841. * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
  11842. type of 'partial_len' to ULONGEST.
  11843. * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
  11844. * linux-nat.c (linux_xfer_siginfo ): Likewise.
  11845. (linux_nat_xfer_partial): Likewise.
  11846. (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
  11847. (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
  11848. * monitor.c (monitor_xfer_memory): Likewise.
  11849. (monitor_xfer_partial): Likewise.
  11850. * procfs.c (procfs_xfer_partial): Likewise.
  11851. * record-btrace.c (record_btrace_xfer_partial): Likewise.
  11852. * record-full.c (record_full_xfer_partial): Likewise.
  11853. (record_full_core_xfer_partial): Likewise.
  11854. * remote-sim.c (gdbsim_xfer_memory): Likewise.
  11855. (gdbsim_xfer_partial): Likewise.
  11856. * remote.c (remote_write_bytes_aux): Likewise. All callers
  11857. updated.
  11858. (remote_write_bytes, remote_read_bytes): Likewise. All
  11859. callers updated.
  11860. (remote_flash_erase): Likewise. All callers updated.
  11861. (remote_write_qxfer): Likewise. All callers updated.
  11862. (remote_read_qxfer): Likewise. All callers updated.
  11863. (remote_xfer_partial): Likewise.
  11864. * rs6000-nat.c (rs6000_xfer_partial): Likewise.
  11865. (rs6000_xfer_shared_libraries): Likewise.
  11866. * sol-thread.c (sol_thread_xfer_partial): Likewise.
  11867. (sol_thread_xfer_partial): Likewise.
  11868. * sparc-nat.c (sparc_xfer_wcookie): Likewise.
  11869. (sparc_xfer_partial): Likewise.
  11870. * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
  11871. updated.
  11872. (spu_xfer_partial): Likewise.
  11873. * spu-multiarch.c (spu_xfer_partial): Likewise.
  11874. * tracepoint.c (tfile_xfer_partial): Likewise.
  11875. * windows-nat.c (windows_xfer_memory): Likewise.
  11876. (windows_xfer_shared_libraries): Likewise.
  11877. (windows_xfer_partial): Likewise.
  11878. * valprint.c: Replace 'target_xfer_error' with
  11879. 'target_xfer_status' in comments.
  11880. 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
  11881. Checked in by Joel Brobecker <brobecker@adacore.com>.
  11882. * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
  11883. 2014-02-11 Joel Brobecker <brobecker@adacore.com>
  11884. * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
  11885. function parameters.
  11886. 2014-02-10 Will Newton <will.newton@linaro.org>
  11887. * elfread.c (elf_rel_plt_read): Look for a .got section if
  11888. looking up .got.plt fails.
  11889. (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
  11890. on address passed to elf_gnu_ifunc_record_cache.
  11891. (elf_gnu_ifunc_resolve_addr): Likewise.
  11892. (elf_gnu_ifunc_resolver_return_stop): Likewise.
  11893. 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
  11894. * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
  11895. (X_RETTURN): New macro.
  11896. * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
  11897. * sparc64-tdep.c (sparc64_init_abi): Hook
  11898. sparc_in_function_epilogue_p.
  11899. 2014-02-10 Gary Benson <gbenson@redhat.com>
  11900. * symfile-debug.c (debug_qf_expand_symtabs_matching):
  11901. Rename name_matcher to symbol_matcher.
  11902. 2014-02-10 Gary Benson <gbenson@redhat.com>
  11903. * symfile-debug.c (debug_qf_expand_symtabs_matching):
  11904. Use expand_symtabs_file_matcher_ftype and
  11905. expand_symtabs_symbol_matcher_ftype.
  11906. 2014-02-10 Joel Brobecker <brobecker@adacore.com>
  11907. * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
  11908. (struct ada_symbol_cache): New.
  11909. (ada_free_symbol_cache): Forward declare.
  11910. (struct ada_pspace_data): New.
  11911. (ada_pspace_data_handle): New static global.
  11912. (get_ada_pspace_data, ada_pspace_data_cleanup)
  11913. (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
  11914. (cache_space, cache): Delete, now folded inside struct
  11915. ada_pspace_data.
  11916. (ada_get_symbol_cache): New function.
  11917. (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
  11918. implementation.
  11919. (_initialize_ada_language): Remove initialization of cache_space.
  11920. Move call to observer_attach_inferior_exit up, grouping it
  11921. with the other observer registrations inside this function.
  11922. Rename command to be more general. Add call to
  11923. register_program_space_data_with_cleanup.
  11924. 2014-02-10 Joel Brobecker <brobecker@adacore.com>
  11925. * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
  11926. ada_new_objfile_observer.
  11927. (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
  11928. (_initialize_tasks): Update uses of ada_new_objfile_observer
  11929. and ada_tasks_normal_stop_observer.
  11930. 2014-02-10 Joel Brobecker <brobecker@adacore.com>
  11931. * ada-lang.c (ada_evaluate_subexp): Set the type of the value
  11932. returned by the 'Length attribute to integer.
  11933. 2014-02-10 Joel Brobecker <brobecker@adacore.com>
  11934. * ada-lang.c (_initialize_ada_language): Initialize
  11935. cache_space obstack.
  11936. 2014-02-10 Joel Brobecker <brobecker@adacore.com>
  11937. * ada-lang.c (HASH_SIZE): New macro.
  11938. (struct cache_entry): New type.
  11939. (cache_space, cache): New static globals.
  11940. (ada_clear_symbol_cache, find_entry): New functions.
  11941. (lookup_cached_symbol, cache_symbol): Implement.
  11942. (ada_new_objfile_observer, ada_free_objfile_observer): New.
  11943. (_initialize_ada_language): Attach ada_new_objfile_observer
  11944. and ada_free_objfile_observer.
  11945. 2014-02-10 Joel Brobecker <brobecker@adacore.com>
  11946. * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
  11947. (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
  11948. struct block * parameter.
  11949. (ada_lookup_symbol_list_worker): Constify local variable "block".
  11950. Remove cast which is no longer necessary.
  11951. 2014-02-10 Doug Evans <xdje42@gmail.com>
  11952. Add Guile as an extension language.
  11953. * NEWS: Mention Guile scripting.
  11954. * Makefile.in (SUBDIR_GUILE_OBS): New variable.
  11955. (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
  11956. (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
  11957. (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
  11958. (CLIBS): Add GUILE_LIBS.
  11959. (install-guile): New rule.
  11960. (guile.o): New rule.
  11961. (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
  11962. (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
  11963. (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
  11964. (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
  11965. (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
  11966. (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
  11967. (scm-type.o, scm-utils.o, scm-value.o): New rules.
  11968. * configure.ac: New option --with-guile.
  11969. * configure: Regenerate.
  11970. * config.in: Regenerate.
  11971. * auto-load.c: Remove #include "python/python.h". Add #include
  11972. "gdb/section-scripts.h".
  11973. (source_section_scripts): Handle Guile scripts.
  11974. (_initialize_auto_load): Add name of Guile objfile script to
  11975. scripts-directory help text.
  11976. * breakpoint.c (condition_command): Tweak comment to include Scheme.
  11977. * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
  11978. (struct breakpoint): New member scm_bp_object.
  11979. * defs.h (enum command_control_type): New value guile_control.
  11980. * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
  11981. "extension.h".
  11982. (show_user): Update comment.
  11983. (_initialize_cli_cmds): Update help text for "show user". Update help
  11984. text for max-user-call-depth.
  11985. * cli/cli-script.c: Remove #include "python/python.h". Add #include
  11986. "extension.h".
  11987. (multi_line_command_p): Add guile_control.
  11988. (print_command_lines): Handle guile_control.
  11989. (execute_control_command, recurse_read_control_structure): Ditto.
  11990. (process_next_line): Recognize "guile" commands.
  11991. * disasm.c (gdb_disassemble_info): Make non-static.
  11992. * disasm.h: #include "dis-asm.h".
  11993. (struct gdbarch): Add forward decl.
  11994. (gdb_disassemble_info): Declare.
  11995. * extension.c: #include "guile/guile.h".
  11996. (extension_languages): Add guile.
  11997. (get_ext_lang_defn): Handle EXT_LANG_GDB.
  11998. * extension.h (enum extension_language): New value EXT_LANG_GUILE.
  11999. * gdbtypes.c (get_unsigned_type_max): New function.
  12000. (get_signed_type_minmax): New function.
  12001. * gdbtypes.h (get_unsigned_type_max): Declare.
  12002. (get_signed_type_minmax): Declare.
  12003. * guile/README: New file.
  12004. * guile/guile-internal.h: New file.
  12005. * guile/guile.c: New file.
  12006. * guile/guile.h: New file.
  12007. * guile/scm-arch.c: New file.
  12008. * guile/scm-auto-load.c: New file.
  12009. * guile/scm-block.c: New file.
  12010. * guile/scm-breakpoint.c: New file.
  12011. * guile/scm-disasm.c: New file.
  12012. * guile/scm-exception.c: New file.
  12013. * guile/scm-frame.c: New file.
  12014. * guile/scm-gsmob.c: New file.
  12015. * guile/scm-iterator.c: New file.
  12016. * guile/scm-lazy-string.c: New file.
  12017. * guile/scm-math.c: New file.
  12018. * guile/scm-objfile.c: New file.
  12019. * guile/scm-ports.c: New file.
  12020. * guile/scm-pretty-print.c: New file.
  12021. * guile/scm-safe-call.c: New file.
  12022. * guile/scm-string.c: New file.
  12023. * guile/scm-symbol.c: New file.
  12024. * guile/scm-symtab.c: New file.
  12025. * guile/scm-type.c: New file.
  12026. * guile/scm-utils.c: New file.
  12027. * guile/scm-value.c: New file.
  12028. * guile/lib/gdb.scm: New file.
  12029. * guile/lib/gdb/boot.scm: New file.
  12030. * guile/lib/gdb/experimental.scm: New file.
  12031. * guile/lib/gdb/init.scm: New file.
  12032. * guile/lib/gdb/iterator.scm: New file.
  12033. * guile/lib/gdb/printing.scm: New file.
  12034. * guile/lib/gdb/types.scm: New file.
  12035. * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
  12036. (VPATH): Add $(GUILE_SRCDIR).
  12037. (GUILE_DIR): New variable.
  12038. (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
  12039. (all): Add stamp-guile dependency.
  12040. (stamp-guile): New rule.
  12041. (clean-guile, install-guile, uninstall-guile): New rules.
  12042. (install-only): Add install-guile dependency.
  12043. (uninstall): Add uninstall-guile dependency.
  12044. (clean): Add clean-guile dependency.
  12045. 2014-02-09 Doug Evans <xdje42@gmail.com>
  12046. Revert this patch (which I approved, mea culpa).
  12047. 2014-02-08 Mark Kettenis <kettenis@gnu.org>
  12048. * Makefile.in (all-lib): Remove.
  12049. ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
  12050. 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
  12051. Fix Python stack corruption.
  12052. * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
  12053. gdb_py_longest.
  12054. 2014-02-08 Mark Kettenis <kettenis@gnu.org>
  12055. * Makefile.in (all-lib): Remove.
  12056. ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
  12057. 2014-02-07 Doug Evans <dje@google.com>
  12058. * extension-priv.h (extension_language_script_ops): Add comment.
  12059. (extension_language_ops): Add comment.
  12060. (active_ext_lang_state): Fix typo in comment.
  12061. 2014-02-07 Pedro Alves <palves@redhat.com>
  12062. PR breakpoints/16292
  12063. * infrun.c (handle_signal_stop) <signal arrives while stepping
  12064. over a breakpoint>: Switch back to the stepping thread.
  12065. 2014-02-07 Yao Qi <yao@codesourcery.com>
  12066. * target.c (target_xfer_partial): Return zero if LEN is zero.
  12067. 2014-02-07 Yao Qi <yao@codesourcery.com>
  12068. * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
  12069. (ld_so_xfer_auxv): Likewise.
  12070. * bfd-target.c (target_bfd_xfer_partial): Likewise.
  12071. * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
  12072. * corelow.c (core_xfer_partial): Likewise.
  12073. * ctf.c (ctf_xfer_partial): Likewise.
  12074. * darwin-nat.c (darwin_read_dyld_info): Likewise.
  12075. (darwin_xfer_partial): Likewise.
  12076. * exec.c (exec_xfer_partial): Likewise.
  12077. * gnu-nat.c (gnu_xfer_partial): Likewise.
  12078. * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
  12079. * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
  12080. * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
  12081. * linux-nat.c (linux_xfer_siginfo): Likewise.
  12082. (linux_proc_xfer_spu): Likewise.
  12083. * procfs.c (procfs_xfer_partial): Likewise.
  12084. * record-full.c (record_full_xfer_partial): Likewise.
  12085. (record_full_core_xfer_partial): Likewise.
  12086. * remote-sim.c (gdbsim_xfer_partial): Likewise.
  12087. * remote.c (remote_write_qxfer): Likewise.
  12088. (remote_write_qxfer, remote_read_qxfer): Likewise.
  12089. (remote_xfer_partial): Likewise.
  12090. * rs6000-nat.c (rs6000_xfer_partial): Likewise.
  12091. (rs6000_xfer_shared_libraries): Likewise.
  12092. * sparc-nat.c (sparc_xfer_wcookie): Likewise.
  12093. * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
  12094. (spu_xfer_partial): Likewise.
  12095. * target.c (memory_xfer_partial_1): Likewise.
  12096. * tracepoint.c (tfile_xfer_partial): Likewise.
  12097. * windows-nat.c (windows_xfer_shared_libraries): Likewise.
  12098. (windows_xfer_partial): Likewise.
  12099. 2014-02-07 Yao Qi <yao@codesourcery.com>
  12100. * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
  12101. comments.
  12102. (core_xfer_shared_libraries_aix): Likewise.
  12103. * gdbarch.c, gdbarch.h: Regenerated.
  12104. * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
  12105. ULONGEST. Change 'len_avail' type to ULONGEST.
  12106. * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
  12107. * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
  12108. declaration.
  12109. (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
  12110. 2014-02-07 Yao Qi <yao@codesourcery.com>
  12111. * corefile.c (memory_error): Get 'exception' from ERR and pass
  12112. 'exception' to throw_error.
  12113. 2014-02-06 Doug Evans <xdje42@gmail.com>
  12114. * configure.ac (libpython checking): Remove all but python.o from
  12115. CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
  12116. * configure: Regenerate.
  12117. * Makefile.in (SFILES): Add extension.c.
  12118. (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
  12119. (COMMON_OBS): Add extension.o.
  12120. * extension.h: New file.
  12121. * extension-priv.h: New file.
  12122. * extension.c: New file.
  12123. * python/python-internal.h: #include "extension.h".
  12124. (gdbpy_auto_load_enabled): Declare.
  12125. (gdbpy_apply_val_pretty_printer): Declare.
  12126. (gdbpy_apply_frame_filter): Declare.
  12127. (gdbpy_preserve_values): Declare.
  12128. (gdbpy_breakpoint_cond_says_stop): Declare.
  12129. (gdbpy_breakpoint_has_cond): Declare.
  12130. (void source_python_script_for_objfile): Delete.
  12131. * python/python.c: #include "extension-priv.h".
  12132. Delete inclusion of "observer.h".
  12133. (extension_language_python): Moved here and renamed from
  12134. script_language_python in py-auto-load.c.
  12135. Redefined to be of type extension_language_defn.
  12136. (python_extension_script_ops): New global.
  12137. (python_extension_ops): New global.
  12138. (struct python_env): New member previous_active.
  12139. (restore_python_env): Call restore_active_ext_lang.
  12140. (ensure_python_env): Call set_active_ext_lang.
  12141. (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
  12142. New arg extlang.
  12143. (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
  12144. New arg extlang.
  12145. (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
  12146. New arg extlang.
  12147. (gdbpy_eval_from_control_command): Renamed from
  12148. eval_python_from_control_command, made static. New arg extlang.
  12149. (gdbpy_source_script) Renamed from source_python_script, made static.
  12150. New arg extlang.
  12151. (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
  12152. result to int. New arg extlang.
  12153. (gdbpy_source_objfile_script): Renamed from
  12154. source_python_script_for_objfile, made static. New arg extlang.
  12155. (gdbpy_start_type_printers): Renamed from start_type_printers, made
  12156. static. New args extlang, extlang_printers. Change result type to
  12157. "void".
  12158. (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
  12159. static. New arg extlang. Rename arg printers to extlang_printers
  12160. and change type to ext_lang_type_printers *.
  12161. (gdbpy_free_type_printers): Renamed from free_type_printers, made
  12162. static. Replace argument arg with extlang, extlang_printers.
  12163. (!HAVE_PYTHON, eval_python_from_control_command): Delete.
  12164. (!HAVE_PYTHON, source_python_script): Delete.
  12165. (!HAVE_PYTHON, gdbpy_should_stop): Delete.
  12166. (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
  12167. (!HAVE_PYTHON, start_type_printers): Delete.
  12168. (!HAVE_PYTHON, apply_type_printers): Delete.
  12169. (!HAVE_PYTHON, free_type_printers): Delete.
  12170. (_initialize_python): Delete call to observer_attach_before_prompt.
  12171. (finalize_python): Set/restore active extension language.
  12172. (gdbpy_finish_initialization) Renamed from
  12173. finish_python_initialization, made static. New arg extlang.
  12174. (gdbpy_initialized): New function.
  12175. * python/python.h: #include "extension.h". Delete #include
  12176. "value.h", "mi/mi-cmds.h".
  12177. (extension_language_python): Declare.
  12178. (GDBPY_AUTO_FILE_NAME): Delete.
  12179. (enum py_bt_status): Moved to extension.h and renamed to
  12180. ext_lang_bt_status.
  12181. (enum frame_filter_flags): Moved to extension.h.
  12182. (enum py_frame_args): Moved to extension.h and renamed to
  12183. ext_lang_frame_args.
  12184. (finish_python_initialization): Delete.
  12185. (eval_python_from_control_command): Delete.
  12186. (source_python_script): Delete.
  12187. (apply_val_pretty_printer): Delete.
  12188. (apply_frame_filter): Delete.
  12189. (preserve_python_values): Delete.
  12190. (gdbpy_script_language_defn): Delete.
  12191. (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
  12192. (start_type_printers, apply_type_printers, free_type_printers): Delete.
  12193. * auto-load.c: #include "extension.h".
  12194. (GDB_AUTO_FILE_NAME): Delete.
  12195. (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
  12196. (script_language_gdb): Delete, moved to extension.c and renamed to
  12197. extension_language_gdb.
  12198. (source_gdb_script_for_objfile): Delete.
  12199. (auto_load_pspace_info): New member unsupported_script_warning_printed.
  12200. (loaded_script): Change type of language member to
  12201. struct extension_language_defn *.
  12202. (init_loaded_scripts_info): Initialize
  12203. unsupported_script_warning_printed.
  12204. (maybe_add_script): Make static. Change type of language arg to
  12205. struct extension_language_defn *.
  12206. (clear_section_scripts): Reset unsupported_script_warning_printed.
  12207. (auto_load_objfile_script_1): Rewrite to use extension language API.
  12208. (auto_load_objfile_script): Make public. Remove support-compiled-in
  12209. and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
  12210. (source_section_scripts): Rewrite to use extension language API.
  12211. (load_auto_scripts_for_objfile): Rewrite to use
  12212. auto_load_scripts_for_objfile.
  12213. (collect_matching_scripts_data): Change type of language member to
  12214. struct extension_language_defn *.
  12215. (auto_load_info_scripts): Change type of language arg to
  12216. struct extension_language_defn *.
  12217. (unsupported_script_warning_print): New function.
  12218. (script_not_found_warning_print): Make static.
  12219. (_initialize_auto_load): Rewrite construction of scripts-directory
  12220. help.
  12221. * auto-load.h (struct objfile): Add forward decl.
  12222. (struct script_language): Delete.
  12223. (struct auto_load_pspace_info): Add forward decl.
  12224. (struct extension_language_defn): Add forward decl.
  12225. (maybe_add_script): Delete.
  12226. (auto_load_objfile_script): Declare.
  12227. (script_not_found_warning_print): Delete.
  12228. (auto_load_info_scripts): Update prototype.
  12229. (auto_load_gdb_scripts_enabled): Declare.
  12230. * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
  12231. auto_load_python_scripts_enabled and made public.
  12232. (script_language_python): Delete, moved to python.c.
  12233. (gdbpy_script_language_defn): Delete.
  12234. (info_auto_load_python_scripts): Update to use
  12235. extension_language_python.
  12236. * breakpoint.c (condition_command): Replace call to
  12237. gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
  12238. (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
  12239. with call to breakpoint_ext_lang_cond_says_stop.
  12240. * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
  12241. from gdbpy_should_stop. Change result type to enum scr_bp_stop.
  12242. New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
  12243. (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
  12244. New arg slang.
  12245. (local_setattro): Print name of extension language with existing
  12246. stop condition.
  12247. * valprint.c (val_print, value_print): Update to call
  12248. apply_ext_lang_val_pretty_printer.
  12249. * cp-valprint.c (cp_print_value): Update call to
  12250. apply_ext_lang_val_pretty_printer.
  12251. * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
  12252. (gdbpy_apply_val_pretty_printer): Renamed from
  12253. apply_val_pretty_printer. New arg extlang.
  12254. (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
  12255. * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
  12256. extension language API.
  12257. * cli/cli-script.c (execute_control_command): Update to call
  12258. eval_ext_lang_from_control_command.
  12259. * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
  12260. enum ext_lang_bt_status values. Update call to
  12261. apply_ext_lang_frame_filter.
  12262. (mi_cmd_stack_list_locals): Ditto.
  12263. (mi_cmd_stack_list_args): Ditto.
  12264. (mi_cmd_stack_list_variables): Ditto.
  12265. * mi/mi-main.c: Delete #include "python/python-internal.h".
  12266. Add #include "extension.h".
  12267. (mi_cmd_list_features): Replace reference to python internal variable
  12268. gdb_python_initialized with call to ext_lang_initialized_p.
  12269. * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
  12270. Update to use enum ext_lang_frame_args. Update to call
  12271. apply_ext_lang_frame_filter.
  12272. * python/py-framefilter.c (extract_sym): Update to use enum
  12273. ext_lang_bt_status.
  12274. (extract_value, py_print_type, py_print_value): Ditto.
  12275. (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
  12276. (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
  12277. (py_print_frame): Ditto.
  12278. (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
  12279. New arg extlang. Update to use enum ext_lang_bt_status.
  12280. * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
  12281. finish_python_initialization. Replace with call to
  12282. finish_ext_lang_initialization.
  12283. * typeprint.c (do_free_global_table): Update to call
  12284. free_ext_lang_type_printers.
  12285. (create_global_typedef_table): Update to call
  12286. start_ext_lang_type_printers.
  12287. (find_global_typedef): Update to call apply_ext_lang_type_printers.
  12288. * typeprint.h (struct ext_lang_type_printers): Add forward decl.
  12289. (type_print_options): Change type of global_printers from "void *"
  12290. to "struct ext_lang_type_printers *".
  12291. * value.c (preserve_values): Update to call preserve_ext_lang_values.
  12292. * python/py-value.c: Remove #ifdef HAVE_PYTHON.
  12293. (gdbpy_preserve_values): Renamed from preserve_python_values.
  12294. New arg extlang.
  12295. (!HAVE_PYTHON, preserve_python_values): Delete.
  12296. * utils.c (quit_flag): Delete, moved to extension.c.
  12297. (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
  12298. extension.c.
  12299. * eval.c: Delete #include "python/python.h".
  12300. * main.c: Delete #include "python/python.h".
  12301. * defs.h: Update comment.
  12302. 2014-02-06 Joel Brobecker <brobecker@adacore.com>
  12303. GDB 7.7 released.
  12304. 2014-02-05 Mark Kettenis <kettenis@gnu.org>
  12305. * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
  12306. defined.
  12307. 2014-02-05 Yao Qi <yao@codesourcery.com>
  12308. * remote.c (remote_pass_signals): Remove local 'buf' and use
  12309. rs->buf.
  12310. (remote_program_signals): Likewise.
  12311. 2014-02-05 Yao Qi <yao@codesourcery.com>
  12312. * ctf.c: Include "inferior.h" and "gdbthread.h".
  12313. (CTF_PID): A new macro.
  12314. (ctf_open): Call inferior_appeared and add_thread_silent.
  12315. (ctf_close): Call exit_inferior_silent and set inferior_ptid.
  12316. (ctf_thread_alive): New function.
  12317. (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
  12318. 2014-02-05 Yao Qi <yao@codesourcery.com>
  12319. Revert this patch:
  12320. 2013-05-24 Yao Qi <yao@codesourcery.com>
  12321. * tracepoint.c (TFILE_PID): Remove.
  12322. (tfile_open): Don't add thread and inferior.
  12323. (tfile_close): Don't set 'inferior_ptid'. Don't call
  12324. exit_inferior_silent.
  12325. (tfile_thread_alive): Remove.
  12326. (init_tfile_ops): Don't set field 'to_thread_alive' of
  12327. tfile_ops.
  12328. 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
  12329. * remote.c (remote_start_remote): Call remote_check_symbols even
  12330. if only symbol-file (not file) has been given.
  12331. 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
  12332. * gdbarch.sh (skip_entrypoint): New callback.
  12333. * gdbarch.c, gdbarch.h: Regenerate.
  12334. * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
  12335. * infrun.c (fill_in_stop_func): Likewise.
  12336. * ppc-linux-tdep.c: Include "elf/ppc64.h".
  12337. (ppc_elfv2_elf_make_msymbol_special): New function.
  12338. (ppc_elfv2_skip_entrypoint): Likewise.
  12339. (ppc_linux_init_abi): Install them for ELFv2.
  12340. 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
  12341. * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
  12342. (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
  12343. (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
  12344. (ppc64_sysv_abi_return_value): Likewise. Also, handle small
  12345. structures returned in GPRs.
  12346. 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
  12347. * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
  12348. offset to the stack parameter list for the ELFv2 ABI.
  12349. 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
  12350. * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
  12351. set_gdbarch_convert_from_func_ptr_addr and
  12352. set_gdbarch_elf_make_msymbol_special for ELFv1.
  12353. * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
  12354. function descriptors on ELFv1.
  12355. (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
  12356. set up r12 at function entry.
  12357. 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
  12358. * ppc-tdep.h (enum powerpc_elf_abi): New data type.
  12359. (struct gdbarch_tdep): New member elf_abi.
  12360. * rs6000-tdep.c: Include "elf/ppc64.h".
  12361. (rs6000_gdbarch_init): Detect ELF ABI version.
  12362. 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
  12363. * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
  12364. within a register pair holding a DFP 128-bit value on little-endian.
  12365. (ppc64_sysv_abi_return_value_base): Likewise.
  12366. * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
  12367. (dfp_pseudo_register_write): Likewise.
  12368. 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
  12369. * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
  12370. offset on little-endian when passing _Decimal32.
  12371. (ppc64_sysv_abi_return_value_base): Likewise for return values.
  12372. 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
  12373. * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
  12374. of the overlapped FP register within the VSX register on little-
  12375. endian platforms.
  12376. (efpr_pseudo_register_write): Likewise.
  12377. 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
  12378. * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
  12379. offset on little-endian when passing small structures.
  12380. 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
  12381. * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
  12382. (struct ppc64_sysv_argpos): New data structure.
  12383. (ppc64_sysv_abi_push_float): Remove.
  12384. (ppc64_sysv_abi_push_val): New function.
  12385. (ppc64_sysv_abi_push_integer): Likewise.
  12386. (ppc64_sysv_abi_push_freg): Likewise.
  12387. (ppc64_sysv_abi_push_vreg): Likewise.
  12388. (ppc64_sysv_abi_push_param): Likewise.
  12389. (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
  12390. (ppc64_sysv_abi_return_value_base): New function.
  12391. (ppc64_sysv_abi_return_value): Refactor to use it.
  12392. 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
  12393. * NEWS: Document new target powerpc64le-*-linux*.
  12394. 2014-02-04 Mark Kettenis <kettenis@gnu.org>
  12395. * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
  12396. (sparc64obsd_supply_gregset): Handle registers sets used in ELF
  12397. core dumps.
  12398. (sparc64obsd_init_abi): Adjust minimum size of the general purpose
  12399. register set used in ELF core dumps. Add floating-point register set.
  12400. 2014-02-03 Kevin Buettner <kevinb@redhat.com>
  12401. * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
  12402. dwarf2_to_gdb[] table using symbolic constants. Adjust
  12403. penultimate entry from number representing the PC register
  12404. to symbolic constant representing the MDR register. Add
  12405. constant for the PC register to the end of the table.
  12406. 2014-02-03 Mark Kettenis <kettenis@gnu.org>
  12407. * bsd-kvm.c: Include <sys/param.h>
  12408. 2014-02-03 Mark Kettenis <kettenis@gnu.org>
  12409. * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
  12410. 2014-01-31 Joel Brobecker <brobecker@adacore.com>
  12411. * ada-lang.h (clear_ada_sym_cache): Delete.
  12412. 2014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
  12413. * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
  12414. 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
  12415. * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
  12416. the sigreturn register save area only if the syscall is
  12417. sigreturn.
  12418. 2014-01-29 Joel Brobecker <brobecker@adacore.com>
  12419. * valops.c (value_slice): Minor reformatting.
  12420. 2014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
  12421. * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
  12422. 2014-01-28 Joel Brobecker <brobecker@adacore.com>
  12423. * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
  12424. New static globals.
  12425. (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
  12426. (ada_ignore_descriptive_types_p): New static global.
  12427. (find_parallel_type_by_descriptive_type): Return immediately
  12428. if ada_ignore_descriptive_types_p is set.
  12429. (_initialize_ada_language): Register new commands "maintenance
  12430. set ada", "maintenance show ada", "maintenance set ada
  12431. ignore-descriptive-types" and "maintenance show ada
  12432. ignore-descriptive-types".
  12433. * NEWS: Add entry for new "maint ada set/show
  12434. ignore-descriptive-types" commands.
  12435. 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
  12436. * record-btrace.c (record_btrace_close): Call btrace_teardown
  12437. for all threads.
  12438. 2014-01-27 Joel Brobecker <brobecker@adacore.com>
  12439. * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
  12440. "ui-out.h".
  12441. 2014-01-27 Joel Brobecker <brobecker@adacore.com>
  12442. * ada-typeprint (type_is_full_subrange_of_target_type):
  12443. New function.
  12444. (print_range): Add parameter bounds_prefered_p. If not set,
  12445. try printing range types using the name of their base type.
  12446. (print_range_type): Add parameter bounds_prefered_p.
  12447. Use it in call to print_range.
  12448. (print_array_type, ada_print_type): Update calls to print_range
  12449. and print_range_type.
  12450. 2014-01-27 Joel Brobecker <brobecker@adacore.com>
  12451. * ada-typeprint.c (print_array_type, print_choices, print_range)
  12452. (print_range_bound, print_dynamic_range_bound, print_range_type):
  12453. Remove declaration.
  12454. 2014-01-27 Joel Brobecker <brobecker@adacore.com>
  12455. * ada-typeprint.c (print_range): Add missing empty line
  12456. after local declaration.
  12457. 2014-01-27 Joel Brobecker <brobecker@adacore.com>
  12458. * ada-valprint.c (print_optional_low_bound): Get index_type's
  12459. target type for as long as it is a TYPE_CODE_RANGE.
  12460. 2014-01-27 Joel Brobecker <brobecker@adacore.com>
  12461. * procfs.c (procfs_make_note_section): Remove assertion and
  12462. associated comment.
  12463. 2014-01-24 Yao Qi <yao@codesourcery.com>
  12464. * remote.c (remote_read_bytes): Change type of len to ULONGEST.
  12465. * corelow.c (get_core_siginfo): Likewise.
  12466. 2014-01-24 Yao Qi <yao@codesourcery.com>
  12467. * remote.c (remote_write_bytes_aux): Change type of 'len' to
  12468. ULONGEST. Don't check 'len' is negative.
  12469. (remote_write_bytes): Change type of 'len' to ULONGEST.
  12470. 2014-01-23 Tom Tromey <tromey@redhat.com>
  12471. PR python/16485:
  12472. * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
  12473. Handle exception from frame.block.
  12474. (FrameVars.fetch_frame_locals): Likewise.
  12475. 2014-01-23 Tom Tromey <tromey@redhat.com>
  12476. PR python/16487:
  12477. * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
  12478. on a NULL pointer. Move "goto error" to correct place.
  12479. 2014-01-23 Tom Tromey <tromey@redhat.com>
  12480. PR python/16491:
  12481. * python/py-framefilter.c (apply_frame_filter): Call
  12482. ensure_python_env after computing gdbarch.
  12483. 2014-01-23 Yao Qi <yao@codesourcery.com>
  12484. * target.c (raw_memory_xfer_partial): Change argument type
  12485. from void * to gdb_byte *.
  12486. (memory_xfer_partial_1, memory_xfer_partial): Likewise.
  12487. 2014-01-22 Doug Evans <dje@google.com>
  12488. New gdbserver option --debug-format=timestamp.
  12489. * NEWS: Mention it.
  12490. 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
  12491. * syscalls/s390x-linux.xml: New file.
  12492. * syscalls/s390-linux.xml: New file.
  12493. * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
  12494. (XML_SYSCALL_FILENAME_S390X): Likewise.
  12495. (op_svc): New enum value for SVC opcode.
  12496. (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
  12497. (s390_linux_get_syscall_number): New function.
  12498. (s390_gdbarch_init): Register '*get_syscall_number' and the
  12499. syscall xml file name.
  12500. * data-directory/Makefile.in (SYSCALLS_FILES): Add
  12501. "s390-linux.xml" and "s390x-linux.xml".
  12502. * NEWS: Announce new feature.
  12503. 2014-01-22 Baruch Siach <baruch@tkos.co.il>
  12504. * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
  12505. 2014-01-22 Pedro Alves <palves@redhat.com>
  12506. * xtensa-config.c: Include defs.h.
  12507. 2014-01-22 Joel Brobecker <brobecker@adacore.com>
  12508. * common/common-utils.h: Add "ARI:" comment beside __func__
  12509. reference.
  12510. 2014-01-22 Joel Brobecker <brobecker@adacore.com>
  12511. * common/common-utils.h (FUNCTION_NAME): Expand the macro's
  12512. documentation a bit.
  12513. 2014-01-21 Roland McGrath <mcgrathr@google.com>
  12514. * configure.ac: Call AM_PROG_INSTALL_STRIP.
  12515. * configure: Regenerate.
  12516. * aclocal.m4: Regenerate.
  12517. * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
  12518. New substituted variables.
  12519. (install-strip): New target.
  12520. (INSTALL_SCRIPT): New substituted variable.
  12521. (FLAGS_TO_PASS): Add it.
  12522. (install-only): Use $(INSTALL_SCRIPT) rather than
  12523. $(INSTALL_PROGRAM) for gcore.
  12524. 2014-01-20 Tom Tromey <tromey@redhat.com>
  12525. * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
  12526. together.
  12527. 2014-01-20 Tom Tromey <tromey@redhat.com>
  12528. * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
  12529. (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
  12530. (deprecated_cmd_warning, complete_on_cmdlist): Update.
  12531. * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
  12532. (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
  12533. (struct cmd_list_element) <flags>: Remove.
  12534. <cmd_deprecated, deprecated_warn_user, malloced_replacement,
  12535. doc_allocated>: New fields.
  12536. <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
  12537. bitfields.
  12538. * maint.c (maintenance_do_deprecate): Update.
  12539. * top.c (execute_command): Update.
  12540. 2014-01-20 Baruch Siach <baruch@tkos.co.il>
  12541. * xtensa-linux-nat.c: Include asm/ptrace.h.
  12542. 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
  12543. * Makefile.in (SFILES): Add d-support.c.
  12544. (COMMON_OBS): Add d-support.o.
  12545. * d-lang.h (d_parse_symbol): Add comment, now defined in
  12546. d-support.c.
  12547. * d-lang.c (parse_call_convention)
  12548. (parse_attributes, parse_function_types)
  12549. (parse_function_args, parse_type, parse_identifier)
  12550. (call_convention_p, d_parse_symbol): Move functions to ...
  12551. * d-support.c: ... New file.
  12552. 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
  12553. * d-lang.h (d_parse_symbol): Add declaration.
  12554. * d-lang.c (extract_identifiers)
  12555. (extract_type_info): Remove functions.
  12556. (parse_call_convention, parse_attributes)
  12557. (parse_function_types, parse_function_args)
  12558. (parse_type, parse_identifier, call_convention_p)
  12559. (d_parse_symbol): New functions.
  12560. (d_demangle): Use d_parse_symbol to demangle D symbols.
  12561. 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
  12562. * d-lang.h (struct builtin_d_type): New data type.
  12563. (builtin_d_type): Add declaration.
  12564. * d-lang.c (d_language_arch_info, build_d_types)
  12565. (builtin_d_type): New functions.
  12566. (enum d_primitive_types): New data type.
  12567. (d_language_defn): Change c_language_arch_info to
  12568. d_language_arch_info.
  12569. (d_type_data): New static variable.
  12570. (_initialize_d_language): Initialize d_type_data.
  12571. 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
  12572. * d-lang.h (d_main_name): Add declaration.
  12573. * d-lang.c (d_main_name): New function.
  12574. * symtab.c (find_main_name): Add call to d_main_name.
  12575. 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
  12576. * d-lang.c (d_language_defn): Change macro_expansion_c to
  12577. macro_expansion_no.
  12578. 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
  12579. * MAINTAINERS: Add myself as a write-after-approval maintainer.
  12580. 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
  12581. * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
  12582. gdb_exception" declaration.
  12583. * remote.c (getpkt_or_notif_sane): Likewise.
  12584. 2014-01-17 Doug Evans <dje@google.com>
  12585. * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
  12586. function, contents of dirnames_to_char_ptr_vec_append moved here.
  12587. (delim_string_to_char_ptr_vec): New function.
  12588. (dirnames_to_char_ptr_vec_append): Rewrite.
  12589. * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
  12590. 2014-01-17 Doug Evans <dje@google.com>
  12591. * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
  12592. and moved here ...
  12593. * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
  12594. #include "common-utils.h".
  12595. (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
  12596. * common/vec.h (VEC_ASSERT_PASS): Update.
  12597. * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
  12598. (MACH_CHECK_ERROR): Update.
  12599. 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
  12600. * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
  12601. comments.
  12602. * gdbarch.h: Regenerate.
  12603. 2014-01-16 Tom Tromey <tromey@redhat.com>
  12604. * value.c (struct value) <regnum>: Move earlier.
  12605. 2014-01-16 Tom Tromey <tromey@redhat.com>
  12606. * remote.c (extended_remote_create_inferior): Rename from
  12607. extended_remote_create_inferior_1. Add "ops" argument. Remove
  12608. old implementation.
  12609. 2014-01-16 Pedro Alves <palves@redhat.com>
  12610. * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
  12611. NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
  12612. the backchain.
  12613. 2014-01-16 Doug Evans <dje@google.com>
  12614. * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
  12615. 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
  12616. * btrace.h (btrace_thread_flag): New.
  12617. (struct btrace_thread_info) <flags>: New.
  12618. * record-btrace.c (record_btrace_resume_thread)
  12619. (record_btrace_find_thread_to_move, btrace_step_no_history)
  12620. (btrace_step_stopped, record_btrace_start_replaying)
  12621. (record_btrace_step_thread, record_btrace_decr_pc_after_break)
  12622. (record_btrace_find_resume_thread): New.
  12623. (record_btrace_resume, record_btrace_wait): Extend.
  12624. (record_btrace_can_execute_reverse): New.
  12625. (record_btrace_open): Fail in non-stop mode.
  12626. (record_btrace_set_replay): Split into this, ...
  12627. (record_btrace_stop_replaying): ... this, ...
  12628. (record_btrace_clear_histories): ... and this.
  12629. (init_record_btrace_ops): Init to_can_execute_reverse.
  12630. * NEWS: Announce it.
  12631. 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
  12632. * target.h (struct target_ops) <to_decr_pc_after_break>: New.
  12633. (forward_target_decr_pc_after_break)
  12634. (target_decr_pc_after_break): New.
  12635. * target.c (forward_target_decr_pc_after_break)
  12636. (target_decr_pc_after_break): New.
  12637. * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
  12638. instead of gdbarch_decr_pc_after_break.
  12639. * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
  12640. instead of gdbarch_decr_pc_after_break.
  12641. * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
  12642. instead of gdbarch_decr_pc_after_break.
  12643. * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
  12644. instead of gdbarch_decr_pc_after_break.
  12645. * linux-thread-db.c (check_event): Call target_decr_pc_after_break
  12646. instead of gdbarch_decr_pc_after_break.
  12647. * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
  12648. instead of gdbarch_decr_pc_after_break.
  12649. 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
  12650. * btrace.c: Include regcache.h.
  12651. (btrace_add_pc): New.
  12652. (btrace_enable): Call btrace_add_pc.
  12653. (btrace_is_empty): New.
  12654. * btrace.h (btrace_is_empty): New.
  12655. * record-btrace.c (require_btrace, record_btrace_info): Call
  12656. btrace_is_empty.
  12657. 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
  12658. * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
  12659. Support delta reads.
  12660. (linux_disable_btrace): Change return type.
  12661. * common/linux-btrace.h (linux_read_btrace): Change parameters
  12662. and return type to allow error reporting. Update users.
  12663. (linux_disable_btrace): Change return type. Update users.
  12664. * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
  12665. New.
  12666. (btrace_error): New.
  12667. (btrace_block) <begin>: Comment on BEGIN == 0.
  12668. * btrace.c (btrace_compute_ftrace): Start from the end of
  12669. the current trace.
  12670. (btrace_stitch_trace, btrace_clear_history): New.
  12671. (btrace_fetch): Read delta trace, return if replaying.
  12672. (btrace_clear): Move clear history code to btrace_clear_history.
  12673. (parse_xml_btrace): Throw an error if parsing failed.
  12674. * target.h (struct target_ops) <to_read_btrace>: Change parameters
  12675. and return type to allow error reporting.
  12676. (target_read_btrace): Change parameters and return type to allow
  12677. error reporting.
  12678. * target.c (target_read_btrace): Update.
  12679. * remote.c (remote_read_btrace): Support delta reads. Pass
  12680. errors on.
  12681. * NEWS: Announce it.
  12682. 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
  12683. * record.h (record_btrace_frame_unwind)
  12684. (record_btrace_tailcall_frame_unwind): New declarations.
  12685. * dwarf2-frame: Include record.h
  12686. (dwarf2_frame_cfa): Throw an error for btrace frames.
  12687. * record-btrace.c: Include hashtab.h.
  12688. (btrace_get_bfun_name): New.
  12689. (btrace_call_history): Call btrace_get_bfun_name.
  12690. (struct btrace_frame_cache): New.
  12691. (bfcache): New.
  12692. (bfcache_hash, bfcache_eq, bfcache_new): New.
  12693. (btrace_get_frame_function): New.
  12694. (record_btrace_frame_unwind_stop_reason): Allow unwinding.
  12695. (record_btrace_frame_this_id): Compute own id.
  12696. (record_btrace_frame_prev_register): Provide PC, throw_error
  12697. for all other registers.
  12698. (record_btrace_frame_sniffer): Detect btrace frames.
  12699. (record_btrace_tailcall_frame_sniffer): New.
  12700. (record_btrace_frame_dealloc_cache): New.
  12701. (record_btrace_frame_unwind): Add new functions.
  12702. (record_btrace_tailcall_frame_unwind): New.
  12703. (_initialize_record_btrace): Allocate cache.
  12704. * btrace.c (btrace_clear): Call reinit_frame_cache.
  12705. * NEWS: Announce it.
  12706. 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
  12707. * record-btrace.c (record_btrace_set_replay)
  12708. (record_btrace_goto_begin, record_btrace_goto_end)
  12709. (record_btrace_goto): New.
  12710. (init_record_btrace_ops): Initialize them.
  12711. * NEWS: Announce it.
  12712. 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
  12713. * record-btrace.c (record_btrace_find_new_threads)
  12714. (record_btrace_thread_alive): New.
  12715. (init_record_btrace_ops): Initialize to_find_new_threads and
  12716. to_thread_alive.
  12717. 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
  12718. * record-btrace.c (record_btrace_resume): New.
  12719. (record_btrace_wait): New.
  12720. (init_record_btrace_ops): Initialize to_wait and to_resume.
  12721. 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
  12722. * record-btrace.c (record_btrace_xfer_partial)
  12723. (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
  12724. (record_btrace_allow_memory_access): New.
  12725. (init_record_btrace_ops): Initialize new methods.
  12726. * target.c (raw_memory_xfer_partial): Bail out if target reports
  12727. that this memory is not available.
  12728. 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
  12729. * target.h (target_ops) <to_insert_breakpoint>
  12730. <to_remove_breakpoint>: Add target_ops parameter.
  12731. (forward_target_insert_breakpoint): New.
  12732. (forward_target_remove_breakpoint): New.
  12733. (memory_remove_breakpoint, memory_insert_breakpoint):
  12734. Add target_ops parameter.
  12735. * target.c (target_insert_breakpoint): Split into this and ...
  12736. (forward_target_insert_breakpoint): ... this.
  12737. (target_remove_breakpoint): Split into this and ...
  12738. (forward_target_remove_breakpoint): ... this.
  12739. (debug_to_insert_breakpoint): Add target_ops parameter.
  12740. Call forward_target_insert_breakpoint.
  12741. (debug_to_remove_breakpoint): Add target_ops parameter.
  12742. Call forward_target_remove_breakpoint.
  12743. (update_current_target): Do not inherit or default to_insert_breakpoint
  12744. and to_remove_breakpoint.
  12745. * corelow.c (ignore): Add target_ops parameter.
  12746. * exec.c (ignore): Add target_ops parameter.
  12747. * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
  12748. Add target_ops parameter.
  12749. * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
  12750. Add target_ops parameter.
  12751. * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
  12752. Add target_ops parameter.
  12753. * record-full.c (record_full_beneath_to_insert_breakpoint)
  12754. (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
  12755. (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
  12756. (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
  12757. (record_full_core_remove_breakpoint): Add target_ops parameter.
  12758. Update users.
  12759. (record_full_beneath_to_insert_breakpoint_ops)
  12760. (record_full_beneath_to_remove_breakpoint_ops)
  12761. (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
  12762. (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
  12763. tmp_to_remove_breakpoint_ops,
  12764. record_full_beneath_to_insert_breakpoint_ops, and
  12765. record_full_beneath_to_remove_breakpoint_ops.
  12766. * remote-m32r-sdi.c (m32r_insert_breakpoint)
  12767. (m32r_remove_breakpoint): Add target_ops parameter.
  12768. * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
  12769. Add target_ops parameter.
  12770. * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
  12771. Add target_ops parameter.
  12772. 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
  12773. Markus Metzger <markus.t.metzger@intel.com>
  12774. * record-btrace.c: Include frame-unwind.h.
  12775. (record_btrace_frame_unwind_stop_reason)
  12776. (record_btrace_frame_this_id, record_btrace_frame_prev_register)
  12777. (record_btrace_frame_sniffer, record_btrace_frame_unwind):
  12778. New.
  12779. (init_record_btrace_ops): Install it.
  12780. 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
  12781. * frame.c (get_frame_unwind_stop_reason): Unconditionally call
  12782. get_prev_frame_1.
  12783. 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
  12784. * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
  12785. earlier.
  12786. 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
  12787. * frame-unwind.c: Include target.h.
  12788. (frame_unwind_try_unwinder): New function with code from ...
  12789. (frame_unwind_find_by_frame): ... here. New variable
  12790. unwinder_from_target, call also target_get_unwinder)
  12791. (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
  12792. * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
  12793. * target.h (struct target_ops): New fields to_get_unwinder and
  12794. to_get_tailcall_unwinder.
  12795. (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
  12796. 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
  12797. * record-btrace.c (record_btrace_fetch_registers)
  12798. (record_btrace_store_registers)
  12799. (record_btrace_to_prepare_to_store): New.
  12800. (init_record_btrace_ops): Add the above.
  12801. 2014-01-16 Tom Tromey <tromey@redhat.com>
  12802. * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
  12803. * target.h (struct target_ops) <to_prepare_to_store>: Add
  12804. argument.
  12805. (target_prepare_to_store): Add argument.
  12806. * target.c (debug_to_prepare_to_store): Add argument.
  12807. (update_current_target): Update.
  12808. * remote.c (remote_prepare_to_store): Add 'self' argument.
  12809. * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
  12810. * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
  12811. * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
  12812. * record-full.c (record_full_core_prepare_to_store): Add 'self'
  12813. argument.
  12814. * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
  12815. * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
  12816. * monitor.c (monitor_prepare_to_store): Add 'self' argument.
  12817. * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
  12818. * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
  12819. 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
  12820. * btrace.h (replay) <replay>: New.
  12821. (btrace_is_replaying): New.
  12822. * btrace.c (btrace_clear): Free replay iterator.
  12823. (btrace_is_replaying): New.
  12824. * record-btrace.c (record_btrace_is_replaying): New.
  12825. (record_btrace_info): Print insn number if replaying.
  12826. (record_btrace_insn_history): Start at replay position.
  12827. (record_btrace_call_history): Start at replay position.
  12828. (init_record_btrace_ops): Init to_record_is_replaying.
  12829. 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
  12830. * record-btrace.c (record_btrace_insn_history_range): Include
  12831. end.
  12832. (record_btrace_insn_history_from): Adjust range.
  12833. (record_btrace_call_history_range): Include
  12834. end.
  12835. (record_btrace_call_history_from): Adjust range.
  12836. * NEWS: Announce changes.
  12837. 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
  12838. * record.h (enum record_print_flag)
  12839. <record_print_indent_calls>: New.
  12840. * record.c (get_call_history_modifiers): Recognize /c modifier.
  12841. (_initialize_record): Document /c modifier.
  12842. * record-btrace.c (btrace_call_history): Add btinfo parameter.
  12843. Reorder fields. Optionally indent the function name. Update
  12844. all users.
  12845. * NEWS: Announce changes.
  12846. 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
  12847. * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
  12848. 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
  12849. * btrace.c (ftrace_new_function): Start counting at one.
  12850. * record-btrace.c (record_btrace_info): Adjust number of calls
  12851. and insns.
  12852. * NEWS: Announce it.
  12853. 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
  12854. * record-btrace.c (btrace_call_history_insn_range): Print
  12855. insn range as [begin, end].
  12856. 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
  12857. * btrace.h (struct btrace_func_link): New.
  12858. (enum btrace_function_flag): New.
  12859. (struct btrace_inst): Rename to ...
  12860. (struct btrace_insn): ...this. Update all users.
  12861. (struct btrace_func) <ibegin, iend>: Remove.
  12862. (struct btrace_func_link): New.
  12863. (struct btrace_func): Rename to ...
  12864. (struct btrace_function): ...this. Update all users.
  12865. (struct btrace_function) <segment, flow, up, insn, insn_offset)
  12866. (number, level, flags>: New.
  12867. (struct btrace_insn_iterator): Rename to ...
  12868. (struct btrace_insn_history): ...this.
  12869. Update all users.
  12870. (struct btrace_insn_iterator, btrace_call_iterator): New.
  12871. (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
  12872. (struct btrace_target_info) <begin, end, level>
  12873. <insn_history, call_history>: New.
  12874. (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
  12875. (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
  12876. (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
  12877. (btrace_call_number, btrace_call_begin, btrace_call_end)
  12878. (btrace_call_prev, btrace_call_next, btrace_call_cmp)
  12879. (btrace_find_function_by_number, btrace_set_insn_history)
  12880. (btrace_set_call_history): New.
  12881. * btrace.c (btrace_init_insn_iterator)
  12882. (btrace_init_func_iterator, compute_itrace): Remove.
  12883. (ftrace_print_function_name, ftrace_print_filename)
  12884. (ftrace_skip_file): Change
  12885. parameter to const.
  12886. (ftrace_init_func): Remove.
  12887. (ftrace_debug): Use new btrace_function fields.
  12888. (ftrace_function_switched): Also consider gaining and
  12889. losing symbol information).
  12890. (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
  12891. (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
  12892. (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
  12893. New.
  12894. (ftrace_new_function): Move. Remove debug print.
  12895. (ftrace_update_lines, ftrace_update_insns): New.
  12896. (ftrace_update_function): Check for call, ret, and jump.
  12897. (compute_ftrace): Renamed to ...
  12898. (btrace_compute_ftrace): ...this. Rewritten to compute call
  12899. stack.
  12900. (btrace_fetch, btrace_clear): Updated.
  12901. (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
  12902. (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
  12903. (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
  12904. (btrace_call_number, btrace_call_begin, btrace_call_end)
  12905. (btrace_call_prev, btrace_call_next, btrace_call_cmp)
  12906. (btrace_find_function_by_number, btrace_set_insn_history)
  12907. (btrace_set_call_history): New.
  12908. * record-btrace.c (require_btrace): Use new btrace thread
  12909. info fields.
  12910. (record_btrace_info, btrace_insn_history)
  12911. (record_btrace_insn_history, record_btrace_insn_history_range):
  12912. Use new btrace thread info fields and new iterator.
  12913. (btrace_func_history_src_line): Rename to ...
  12914. (btrace_call_history_src_line): ...this. Use new btrace
  12915. thread info fields.
  12916. (btrace_func_history): Rename to ...
  12917. (btrace_call_history): ...this. Use new btrace thread info
  12918. fields and new iterator.
  12919. (record_btrace_call_history, record_btrace_call_history_range):
  12920. Use new btrace thread info fields and new iterator.
  12921. 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
  12922. * frame.h (frame_id_build_unavailable_stack_special): New.
  12923. * frame.c (frame_id_build_unavailable_stack_special): New.
  12924. 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
  12925. * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
  12926. (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
  12927. (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
  12928. to gdbarch.
  12929. * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
  12930. (i386_insn_is_jump, i386_jmp_p): New.
  12931. (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
  12932. insn_is_jump to gdbarch.
  12933. * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
  12934. * gdbarch.h: Regenerated.
  12935. * gdbarch.c: Regenerated.
  12936. * arch-utils.h (default_insn_is_call, default_insn_is_ret)
  12937. (default_insn_is_jump): New.
  12938. * arch-utils.c (default_insn_is_call, default_insn_is_ret)
  12939. (default_insn_is_jump): New.
  12940. 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
  12941. * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
  12942. Change to ...
  12943. (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
  12944. (btrace_read_type) <btrace_read_new>: Change to ...
  12945. (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
  12946. 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
  12947. * common/linux-btrace.c (linux_read_btrace): Free trace from
  12948. previous iteration.
  12949. 2014-01-15 Doug Evans <dje@google.com>
  12950. * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
  12951. uint32_t.
  12952. 2014-01-15 Tom Tromey <tromey@redhat.com>
  12953. * dbxread.c (process_one_symbol): Use set_objfile_main_name.
  12954. * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
  12955. * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
  12956. (set_objfile_main_name): New function.
  12957. * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
  12958. language_of_main>: New fields.
  12959. (set_objfile_main_name): Declare.
  12960. * symtab.c (find_main_name): Loop over objfiles to find the main
  12961. name and language.
  12962. (set_main_name): Now static.
  12963. (get_main_info): Add comment.
  12964. * symtab.h (set_main_name): Don't declare.
  12965. 2014-01-15 Tom Tromey <tromey@redhat.com>
  12966. * symtab.c (main_progspace_key): New global.
  12967. (struct main_info): New.
  12968. (name_of_main, language_of_main): Remove.
  12969. (get_main_info, main_info_cleanup): New function.
  12970. (set_main_name, main_name, main_language): Use get_main_info.
  12971. (_initialize_symtab): Initialize main_progspace_key.
  12972. 2014-01-15 Tom Tromey <tromey@redhat.com>
  12973. * dbxread.c (process_one_symbol): Update.
  12974. * dwarf2read.c (read_partial_die): Update.
  12975. * symfile.c (set_initial_language): Call main_language.
  12976. * symtab.c (language_of_main): Now static.
  12977. (set_main_name): Add 'lang' parameter.
  12978. (find_main_name): Update.
  12979. (main_language): New function.
  12980. (symtab_observer_executable_changed): Update.
  12981. * symtab.h (set_main_name): Update.
  12982. (language_of_main): Remove.
  12983. (main_language): Declare.
  12984. 2014-01-15 Tom Tromey <tromey@redhat.com>
  12985. * symfile.c (init_entry_point_info): Use new "initialized" field.
  12986. Update.
  12987. * objfiles.h (struct entry_point) <initialized>: New field.
  12988. (struct objfile_per_bfd_storage) <ei>: New field, moved from...
  12989. (struct objfile) <ei>: ...here. Remove.
  12990. * objfiles.c (entry_point_address_query): Update.
  12991. 2014-01-15 Tom Tromey <tromey@redhat.com>
  12992. * objfiles.c (entry_point_address_query): Relocate entry point
  12993. address.
  12994. (objfile_relocate1): Do not relocate entry point address.
  12995. * objfiles.h (struct entry_info) <entry_point>: Update comment.
  12996. <the_bfd_section_index>: New field.
  12997. * symfile.c (init_entry_point_info): Find the entry point's
  12998. section.
  12999. 2014-01-15 Tom Tromey <tromey@redhat.com>
  13000. * solib-frv.c (enable_break): Use entry_point_address_query.
  13001. 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
  13002. * NEWS: Add note on improved process record-replay on
  13003. arm*-linux* targets.
  13004. 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
  13005. * arm-tdep.c (enum arm_record_result): New enum.
  13006. (arm_record_unsupported_insn): New function.
  13007. (arm_record_coproc_data_proc): Removed.
  13008. (thumb2_record_ld_st_multiple): New function.
  13009. (thumb2_record_ld_st_dual_ex_tbb): New function.
  13010. (thumb2_record_data_proc_sreg_mimm): New function.
  13011. (thumb2_record_ps_dest_generic): New function.
  13012. (thumb2_record_branch_misc_cntrl): New function.
  13013. (thumb2_record_str_single_data): New function.
  13014. (thumb2_record_ld_mem_hints): New function.
  13015. (thumb2_record_ld_word): New function.
  13016. (thumb2_record_lmul_lmla_div): New function.
  13017. (thumb2_record_decode_insn_handler): New function.
  13018. (decode_insn): Add thumb32 instruction handlers.
  13019. 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
  13020. * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
  13021. (struct arm_linux_record_tdep): Declare.
  13022. (arm_canonicalize_syscall): New function.
  13023. (arm_all_but_pc_registers_record): New function.
  13024. (arm_linux_syscall_record): New function.
  13025. (arm_linux_init_abi): Add syscall recording constructs.
  13026. * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
  13027. decoding. (arm_record_coproc_data_proc): Update arm syscall
  13028. decoding.
  13029. * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
  13030. <arm_syscall_record>: New field.
  13031. * configure.tgt (arm*-*-linux*): Add linux-record.o to
  13032. gdb_target_obs.
  13033. 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
  13034. * arm-tdep.c (thumb_record_misc): Update to use sp as base
  13035. register for push instruction recording.
  13036. 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
  13037. * arm-tdep.c (thumb_record_misc): Update to correct logical
  13038. error while recording ldm, ldmia and pop instructions.
  13039. 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
  13040. * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
  13041. 2014-01-15 Pedro Alves <palves@redhat.com>
  13042. * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
  13043. (go32_resume, go32_fetch_registers, store_register)
  13044. (go32_store_registers, go32_prepare_to_store)
  13045. (go32_xfer_memory, go32_files_info, go32_kill_inferior)
  13046. (go32_create_inferior, go32_can_run, go32_terminal_init)
  13047. (go32_terminal_inferior, go32_terminal_ours): Delete forward
  13048. declarations.
  13049. 2014-01-15 Tom Tromey <tromey@redhat.com>
  13050. * target.h (async_callback_ftype): New typedef.
  13051. (struct target_ops) <to_async>: Use it.
  13052. 2014-01-15 Joel Brobecker <brobecker@adacore.com>
  13053. * python/py-value.c (get_field_type): Remove unnecessary curly
  13054. braces for single-statement if block.
  13055. 2014-01-15 Joel Brobecker <brobecker@adacore.com>
  13056. * python/py-type.c (convert_field): Add missing empty line
  13057. after declarations.
  13058. 2014-01-14 Doug Evans <dje@google.com>
  13059. * symfile.h (expand_symtabs_matching): Renamed from
  13060. expand_partial_symbol_names. Update prototype.
  13061. (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
  13062. * symfile.c (expand_symtabs_matching): Renamed from
  13063. expand_partial_symbol_names. New args file_matcher, kind.
  13064. Rename arg fun to symbol_matcher.
  13065. (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
  13066. * ada-lang.c (ada_complete_symbol_matcher): Renamed from
  13067. ada_expand_partial_symbol_name.
  13068. (ada_make_symbol_completion_list): Update to call
  13069. expand_symtabs_matching.
  13070. (ada_add_global_exceptions): Call expand_symtabs_matching.
  13071. * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
  13072. call map_symbol_filenames.
  13073. * symtab.c (sources_info): Update to call map_symbol_filenames.
  13074. (search_symbols): Call expand_symtabs_matching.
  13075. (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
  13076. (default_make_symbol_completion_list_break_on): Update to call
  13077. expand_symtabs_matching.
  13078. (make_source_files_completion_list): Update to call
  13079. map_symbol_filenames.
  13080. 2014-01-14 Doug Evans <dje@google.com>
  13081. * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
  13082. (expand_symtabs_symbol_matcher_ftype): New typedef.
  13083. (quick_symbol_functions.expand_symtabs_matching): Update to use.
  13084. expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
  13085. * symfile.c (expand_partial_symbol_names): Update to use
  13086. expand_symtabs_symbol_matcher_ftype.
  13087. * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
  13088. expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
  13089. Arg name_matcher renamed to symbol_matcher.
  13090. * psymtab.c (recursively_search_psymtabs): Update to use
  13091. expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
  13092. sym_matcher.
  13093. (expand_symtabs_matching_via_partial): Update to use
  13094. expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
  13095. Arg name_matcher renamed to symbol_matcher.
  13096. 2014-01-14 Doug Evans <dje@google.com>
  13097. * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
  13098. (map_partial_symbol_filenames): Ditto.
  13099. * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
  13100. (map_partial_symbol_filenames): Ditto.
  13101. * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
  13102. (map_partial_symbol_filenames): Ditto.
  13103. * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
  13104. (map_partial_symbol_filenames): Ditto.
  13105. * symtab.c: Delete #include "psymtab.h".
  13106. 2014-01-14 Pedro Alves <palves@redhat.com>
  13107. Tom Tromey <tromey@redhat.com>
  13108. * infrun.c (use_displaced_stepping): Use find_record_target
  13109. instead of RECORD_IS_USED.
  13110. (adjust_pc_after_break): Use record_full_is_used instead of
  13111. RECORD_IS_USED.
  13112. * record-btrace.c (record_btrace_open): Call record_preopen
  13113. instead of checking RECORD_IS_USED.
  13114. * record-full.c (record_full_shortname)
  13115. (record_full_core_shortname): New globals.
  13116. (record_full_is_used): New function.
  13117. (find_full_open): Call record_preopen instead of checking
  13118. RECORD_IS_USED.
  13119. (init_record_full_ops): Set the target's shortname to
  13120. record_full_shortname.
  13121. (init_record_full_core_ops): Set the target's shortname to
  13122. record_full_core_shortname.
  13123. * record-full.h (record_full_is_used): Declare.
  13124. * record.c (find_record_target): Make extern.
  13125. (record_preopen): New function.
  13126. * record.h (RECORD_IS_USED): Delete macro.
  13127. (find_record_target, record_preopen): Declare functions.
  13128. 2014-01-14 Yao Qi <yao@codesourcery.com>
  13129. * gdbarch.sh (core_xfer_shared_libraries): Change its argument
  13130. 'len''s type to ULONGEST.
  13131. (core_xfer_shared_libraries_aix): Likewise.
  13132. * gdbarch.c, gdbarch.h: Regenerated.
  13133. * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
  13134. Change type of 'len' to ULONGEST.
  13135. * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
  13136. (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
  13137. 2014-01-14 Yao Qi <yao@codesourcery.com>
  13138. * common/linux-osdata.c (linux_xfer_osdata_processes): Change
  13139. type of 'len' to ULONGEST.
  13140. (linux_xfer_osdata_processgroups): Likewise.
  13141. (linux_xfer_osdata_threads): Likewise.
  13142. (linux_xfer_osdata_fds): Likewise.
  13143. (linux_xfer_osdata_isockets): Likewise.
  13144. (linux_xfer_osdata_shm): Likewise.
  13145. (linux_xfer_osdata_sem): Likewise.
  13146. (linux_xfer_osdata_msg): Likewise.
  13147. (linux_common_xfer_osdata): Likewise.
  13148. (struct osdata_type) <getter>: Likewise.
  13149. * common/linux-osdata.h (linux_common_xfer_osdata): Update
  13150. the declaration.
  13151. 2014-01-14 Yao Qi <yao@codesourcery.com>
  13152. * target.h (target_xfer_partial_ftype): Update.
  13153. (struct target_ops) <to_xfer_partial>: Change 'len' type to
  13154. ULONGEST.
  13155. * aix-thread.c (aix_thread_xfer_partial): Change type of
  13156. argument 'len' to ULONGEST.
  13157. * auxv.c (procfs_xfer_auxv): Likewise.
  13158. (ld_so_xfer_auxv): Likewise.
  13159. (memory_xfer_auxv): Likewise.
  13160. * bfd-target.c (target_bfd_xfer_partial): Likewise.
  13161. * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
  13162. * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
  13163. * corelow.c (core_xfer_partial): Likewise.
  13164. * ctf.c (ctf_xfer_partial): Likewise.
  13165. * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
  13166. '%u'.
  13167. (darwin_read_dyld_info): Likewise.
  13168. (darwin_xfer_partial): Likewise.
  13169. * exec.c (section_table_xfer_memory_partial): Likewise.
  13170. (exec_xfer_partial): Likewise.
  13171. * exec.h (section_table_xfer_memory_partial): Update
  13172. declaration.
  13173. * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
  13174. instead of plongest.
  13175. (gnu_xfer_partial): Likewise.
  13176. * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
  13177. (ia64_hpux_xfer_solib_got): Likewise.
  13178. (ia64_hpux_xfer_partial): Likewise.
  13179. * ia64-linux-nat.c (ia64_linux_xfer_partial):
  13180. * inf-ptrace.c (inf_ptrace_xfer_partial):
  13181. * inf-ttrace.c (inf_ttrace_xfer_partial):
  13182. * linux-nat.c (linux_xfer_siginfo): Likewise.
  13183. (linux_nat_xfer_partial): Likewise.
  13184. (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
  13185. (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
  13186. * monitor.c (monitor_xfer_memory): Likewise.
  13187. (monitor_xfer_partial): Likewise.
  13188. * procfs.c (procfs_xfer_partial): Likewise.
  13189. * record-full.c (record_full_xfer_partial): Likewise.
  13190. (record_full_core_xfer_partial): Likewise.
  13191. * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
  13192. instead of plongest.
  13193. (gdbsim_xfer_partial): Likewise.
  13194. * remote.c (remote_xfer_partial): Likewise.
  13195. * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
  13196. * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
  13197. declaration.
  13198. * rs6000-nat.c (rs6000_xfer_partial): Likewise.
  13199. (rs6000_xfer_shared_libraries): Likewise.
  13200. * sol-thread.c (sol_thread_xfer_partial): Likewise.
  13201. * sparc-nat.c (sparc_xfer_wcookie): Likewise.
  13202. (sparc_xfer_partial): Likewise.
  13203. * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
  13204. (spu_xfer_partial): Likewise.
  13205. * spu-multiarch.c (spu_xfer_partial): Likewise.
  13206. * target.c (target_read_live_memory): Likewise.
  13207. (memory_xfer_live_readonly_partial): Likewise.
  13208. (memory_xfer_partial, memory_xfer_partial_1): Likewise.
  13209. (target_xfer_partial, default_xfer_partial): Likewise.
  13210. (current_xfer_partial): Likewise.
  13211. * tracepoint.c (tfile_xfer_partial): Likewise.
  13212. * windows-nat.c (windows_xfer_memory): Likewise. Call
  13213. pulongest instead of plongest.
  13214. (windows_xfer_partial): Likewise.
  13215. (windows_xfer_shared_libraries): Likewise.
  13216. 2014-01-14 Yao Qi <yao@codesourcery.com>
  13217. * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
  13218. target_xfer_partial_ftype.
  13219. 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
  13220. PR python/15464
  13221. PR python/16113
  13222. * valops.c (value_struct_elt_bitpos): New function
  13223. * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
  13224. object to 'None' if the field name is an empty string ("").
  13225. * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
  13226. attribute to look for a field when 'name' is 'None'.
  13227. (get_field_type): New function
  13228. 2014-01-13 Doug Evans <dje@google.com>
  13229. PR symtab/16426
  13230. * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
  13231. (try_open_dwop_file): Ditto.
  13232. * gdb_bfd.c: #include "vec.h".
  13233. (bfdp): New typedef.
  13234. (struct gdb_bfd_data): New member included_bfds.
  13235. (gdb_bfd_unref): Unref all included bfds.
  13236. (gdb_bfd_record_inclusion): New function.
  13237. * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
  13238. 2014-01-13 Tom Tromey <tromey@redhat.com>
  13239. * gdbcore.h (deprecated_core_resize_section_table): Remove.
  13240. 2014-01-13 Tom Tromey <tromey@redhat.com>
  13241. * defs.h (use_windows): Remove.
  13242. * gdb.c (main): Update.
  13243. * main.c (captured_main, gdb_main): Update.
  13244. * main.h (struct captured_main_args) <use_windows>: Remove.
  13245. * top.c (use_windows): Remove.
  13246. 2014-01-13 Tom Tromey <tromey@redhat.com>
  13247. * defs.h (deprecated_flush_hook): Remove.
  13248. 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
  13249. PR threads/16216
  13250. * linux-thread-db.c (try_thread_db_load): Add parameter
  13251. check_auto_load_safe. Move here the file_is_auto_load_safe call.
  13252. (try_thread_db_load_from_pdir_1): Move it there from here.
  13253. (try_thread_db_load_from_sdir): Update caller.
  13254. (try_thread_db_load_from_dir): Move it there from here.
  13255. 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
  13256. * regformats/regdat.sh: Always rewrite the register file.
  13257. 2014-01-13 Pedro Alves <palves@redhat.com>
  13258. * Makefile.in (CHECK_HEADERS): New variable.
  13259. (check-headers:): New rule.
  13260. 2014-01-13 Tom Tromey <tromey@redhat.com>
  13261. * cli/cli-setshow.c (do_set_command): Update.
  13262. * defs.h (deprecated_set_hook): Remove.
  13263. * top.c (deprecated_set_hook): Remove.
  13264. 2014-01-13 Pedro Alves <palves@redhat.com>
  13265. * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
  13266. the tracepoint if the PC is a pseudo-register.
  13267. 2014-01-13 Tom Tromey <tromey@redhat.com>
  13268. * defs.h (XCALLOC): Remove.
  13269. * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
  13270. (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
  13271. * dwarf2loc.c (allocate_piece_closure): Likewise.
  13272. * elfread.c (elf_symfile_segments): Likewise.
  13273. (elf_symfile_segments): Likewise.
  13274. * gdbtypes.c (copy_type_recursive): Likewise.
  13275. * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
  13276. * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
  13277. * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
  13278. XCALLOC.
  13279. * mt-tdep.c (mt_gdbarch_init): Likewise.
  13280. * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
  13281. XCALLOC.
  13282. * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
  13283. * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
  13284. * registry.c (registry_alloc_data): Likewise.
  13285. * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
  13286. * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
  13287. * serial.c (serial_fdopen_ops): Likewise.
  13288. * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
  13289. XCALLOC.
  13290. * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
  13291. * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
  13292. not XCALLOC.
  13293. 2014-01-13 Tom Tromey <tromey@redhat.com>
  13294. * defs.h (XMALLOC): Remove.
  13295. * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
  13296. * bfin-tdep.c (bfin_gdbarch_init): Likewise.
  13297. * cli-out.c (struct ui_out *): Likewise.
  13298. * cli/cli-dump.c (add_dump_command): Likewise.
  13299. (add_dump_command): Likewise.
  13300. * complaints.c (get_complaints): Likewise.
  13301. (find_complaint): Likewise.
  13302. * dwarf2-frame.c (execute_cfa_program): Likewise.
  13303. * dwarf2read.c (abbrev_table_read_table): Likewise.
  13304. * gdbarch.sh: Likewise.
  13305. * gdbarch.c: Rebuild.
  13306. * inf-ttrace.c (inf_ttrace_add_page): Likewise.
  13307. * interps.c (interp_new): Likewise.
  13308. * lm32-tdep.c (lm32_gdbarch_init): Likewise.
  13309. * m32r-tdep.c (m32r_gdbarch_init): Likewise.
  13310. * mi/mi-console.c (mi_console_file_new): Likewise.
  13311. * mi/mi-interp.c (mi_interpreter_init): Likewise.
  13312. * mi/mi-out.c (mi_out_new): Likewise.
  13313. * mi/mi-parse.c (mi_parse): Likewise.
  13314. * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
  13315. * moxie-tdep.c (moxie_gdbarch_init): Likewise.
  13316. * observer.c (xalloc_observer_list_node): Likewise.
  13317. * regcache.c (regcache_xmalloc_1): Likewise.
  13318. * reggroups.c (reggroup_new): Likewise.
  13319. (_initialize_reggroup): Likewise.
  13320. * registry.c (register_data_with_cleanup): Likewise.
  13321. * remote.c (remote_notif_stop_alloc_reply): Likewise.
  13322. * ser-base.c (serial_ttystate): Likewise.
  13323. * ser-mingw.c (make_pipe_state): Likewise.
  13324. * ser-pipe.c (pipe_open): Likewise.
  13325. * serial.c (serial_open): Likewise.
  13326. * sh64-tdep.c (sh64_gdbarch_init): Likewise.
  13327. * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
  13328. (tui_alloc_win_info): Likewise.
  13329. (tui_add_content_elements): Likewise.
  13330. * tui/tui-file.c (tui_file_new): Likewise.
  13331. * tui/tui-out.c (tui_out_new): Likewise.
  13332. * ui-file.c (mem_file_new): Likewise.
  13333. * ui-out.c (push_level): Likewise.
  13334. (make_cleanup_ui_out_end): Likewise.
  13335. (append_header_to_list): Likewise.
  13336. (ui_out_new): Likewise.
  13337. * user-regs.c (user_reg_add_builtin): Likewise.
  13338. 2014-01-13 Tom Tromey <tromey@redhat.com>
  13339. * defs.h (XZALLOC): Remove.
  13340. * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
  13341. * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
  13342. (get_ada_tasks_inferior_data): Likewise.
  13343. * auto-load.c (get_auto_load_pspace_data): Likewise.
  13344. * auxv.c (get_auxv_inferior_data): Likewise.
  13345. * bfd-target.c (target_bfd_reopen): Likewise.
  13346. * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
  13347. (deprecated_insert_raw_breakpoint): Likewise.
  13348. * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
  13349. * corelow.c (core_open): Likewise.
  13350. * darwin-nat.c (darwin_check_new_threads): Likewise.
  13351. (darwin_attach_pid): Likewise.
  13352. * dummy-frame.c (dummy_frame_push): Likewise.
  13353. * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
  13354. * dwarf2loc.c (allocate_piece_closure): Likewise.
  13355. * elfread.c (elf_symfile_segments): Likewise.
  13356. * eval.c (ptrmath_type_p): Likewise.
  13357. * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
  13358. * gdbtypes.c (alloc_type_arch): Likewise.
  13359. (alloc_type_instance): Likewise.
  13360. * hppa-tdep.c (hppa_gdbarch_init): Likewise.
  13361. * inf-child.c (inf_child_can_use_agent): Likewise.
  13362. * inflow.c (get_inflow_inferior_data): Likewise.
  13363. * infrun.c (save_infcall_suspend_state): Likewise.
  13364. * jit.c (jit_reader_load): Likewise.
  13365. (get_jit_objfile_data): Likewise.
  13366. (get_jit_program_space_data): Likewise.
  13367. (jit_object_open_impl): Likewise.
  13368. (jit_symtab_open_impl): Likewise.
  13369. (jit_block_open_impl): Likewise.
  13370. (jit_frame_sniffer): Likewise.
  13371. * linux-fork.c (add_fork): Likewise.
  13372. * maint.c (make_command_stats_cleanup): Likewise.
  13373. * objfiles.c (get_objfile_pspace_data): Likewise.
  13374. * opencl-lang.c (struct lval_closure): Likewise.
  13375. * osdata.c (osdata_start_osdata): Likewise.
  13376. * progspace.c (new_address_space): Likewise.
  13377. (add_program_space): Likewise.
  13378. * remote-sim.c (get_sim_inferior_data): Likewise.
  13379. * sh-tdep.c (sh_gdbarch_init): Likewise.
  13380. * skip.c (Ignore): Likewise.
  13381. (skip_delete_command): Likewise.
  13382. * solib-aix.c (get_solib_aix_inferior_data): Likewise.
  13383. (library_list_start_library): Likewise.
  13384. (solib_aix_current_sos): Likewise.
  13385. * solib-darwin.c (get_darwin_info): Likewise.
  13386. (darwin_current_sos): Likewise.
  13387. * solib-dsbt.c (get_dsbt_info): Likewise.
  13388. * solib-ia64-hpux.c (new_so_list): Likewise.
  13389. (ia64_hpux_get_solib_linkage_addr): Likewise.
  13390. * solib-spu.c (append_ocl_sos): Likewise.
  13391. (spu_current_sos): Likewise.
  13392. * solib-svr4.c (get_svr4_info): Likewise.
  13393. (svr4_keep_data_in_core): Likewise.
  13394. (library_list_start_library): Likewise.
  13395. (svr4_default_sos): Likewise.
  13396. (svr4_read_so_list): Likewise.
  13397. * solib-target.c (library_list_start_library): Likewise.
  13398. (solib_target_current_sos): Likewise.
  13399. * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
  13400. * symfile-debug.c (install_symfile_debug_logging): Likewise.
  13401. * symfile.c (default_symfile_segments): Likewise.
  13402. * target-descriptions.c (tdesc_data_init): Likewise.
  13403. (tdesc_create_reg): Likewise.
  13404. (struct tdesc_type *): Likewise.
  13405. (tdesc_create_vector): Likewise.
  13406. (tdesc_set_struct_size): Likewise.
  13407. (struct tdesc_type *): Likewise.
  13408. (tdesc_free_feature): Likewise.
  13409. (tdesc_create_feature): Likewise.
  13410. * windows-nat.c (windows_add_thread): Likewise.
  13411. (windows_make_so): Likewise.
  13412. * xml-support.c (gdb_xml_body_text): Likewise.
  13413. (gdb_xml_create_parser_and_cleanup): Likewise.
  13414. (xml_process_xincludes): Likewise.
  13415. * xml-syscall.c (allocate_syscalls_info): Likewise.
  13416. (syscall_create_syscall_desc): Likewise.
  13417. 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
  13418. * i386-tdep.c (i386_stap_parse_special_token_triplet): New
  13419. function, with code from i386_stap_parse_special_token.
  13420. (i386_stap_parse_special_token_three_arg_disp): Likewise.
  13421. (i386_stap_parse_special_token): Move code to the two functions
  13422. above; simplify it.
  13423. 2014-01-09 Pedro Alves <palves@redhat.com>
  13424. Hui Zhu <hui@codesourcery.com>
  13425. PR gdb/16101
  13426. * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
  13427. bp_err_string. Don't mark the location shlib_disabled if the
  13428. error thrown wasn't a generic or memory error. Catch errors
  13429. thrown while inserting breakpoints in overlayed code. Output
  13430. error message of software breakpoints.
  13431. * remote.c (remote_insert_breakpoint): If this breakpoint has
  13432. target-side commands but this stub doesn't support Z0 packets,
  13433. throw NOT_SUPPORTED_ERROR error.
  13434. * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
  13435. * target.h (target_insert_breakpoint): Extend comment.
  13436. (target_insert_hw_breakpoint): Add comment.
  13437. 2014-01-08 Pedro Alves <palves@redhat.com>
  13438. * remote.c (remote_add_thread): Add threads silently if starting
  13439. up.
  13440. (remote_notice_new_inferior): If in all-stop, and starting up,
  13441. don't call notice_new_inferior.
  13442. (get_current_thread): New function, factored out from ...
  13443. (add_current_inferior_and_thread): ... this. Adjust.
  13444. (remote_start_remote) <all-stop>: Fetch the thread list. If we
  13445. found any thread, then select the remote's current thread as GDB's
  13446. current thread too.
  13447. 2014-01-08 Joel Brobecker <brobecker@adacore.com>
  13448. * NEWS: Create a new section for the next release branch.
  13449. Rename the section of the current branch, now that it has
  13450. been cut.
  13451. 2014-01-08 Joel Brobecker <brobecker@adacore.com>
  13452. GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
  13453. * version.in: Bump version to 7.7.50.DATE-cvs.
  13454. 2014-01-08 Yao Qi <yao@codesourcery.com>
  13455. * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
  13456. type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
  13457. (spu_xfer_partial): Cast 'buf' to 'const char *'.
  13458. 2014-01-08 Yao Qi <yao@codesourcery.com>
  13459. * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
  13460. return value of bfd_get_filename to symbol_file_add_from_bfd.
  13461. 2014-01-08 Pierre Muller <muller@sourceware.org>
  13462. Fix PR16201.
  13463. * coff-pe-read.c (struct read_pe_section_data): Add index field.
  13464. (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
  13465. to prim_record_mininal_symbol_and_info.
  13466. (add_pe_forwarded_sym): Use known section number of forwarded symbol
  13467. in call to prim_record_minimal_symbol_and_info.
  13468. (read_pe_exported_syms): Set index field of section_data.
  13469. 2014-01-07 Andrew Pinski <apinski@cavium.com>
  13470. * features/aarch64-core.xml (cpsr): Change to be 64bit.
  13471. * features/aarch64.c: Regenerate.
  13472. 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
  13473. * target.c (return_null): Define.
  13474. (update_current_target): Use it instead of return_zero for
  13475. functions that return a pointer.
  13476. 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
  13477. * source.c (add_path): Fix check for duplicated paths in the previously
  13478. included paths.
  13479. 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
  13480. * ada-lang.c: Remove duplicated include statements.
  13481. * alphabsd-nat.c: Ditto.
  13482. * amd64-darwin-tdep.c: Ditto.
  13483. * amd64fbsd-nat.c: Ditto.
  13484. * auto-load.c: Ditto.
  13485. * ax-gdb.c: Ditto.
  13486. * breakpoint.c: Ditto.
  13487. * dbxread.c: Ditto.
  13488. * fork-child.c: Ditto.
  13489. * gdb_usleep.c: Ditto.
  13490. * i386-darwin-tdep.c: Ditto.
  13491. * i386fbsd-nat.c: Ditto.
  13492. * infcmd.c: Ditto.
  13493. * inferior.c: Ditto.
  13494. * jv-lang.c: Ditto.
  13495. * linux-nat.c: Ditto.
  13496. * linux-tdep.c: Ditto.
  13497. * m68kbsd-nat.c: Ditto.
  13498. * m68klinux-nat.c: Ditto.
  13499. * microblaze-tdep.c: Ditto.
  13500. * mips-linux-tdep.c: Ditto.
  13501. * mn10300-tdep.c: Ditto.
  13502. * nto-tdep.c: Ditto.
  13503. * opencl-lang.c: Ditto.
  13504. * osdata.c: Ditto.
  13505. * printcmd.c: Ditto.
  13506. * regcache.c: Ditto.
  13507. * remote-m32r-sdi.c: Ditto.
  13508. * remote.c: Ditto.
  13509. * symfile.c: Ditto.
  13510. * symtab.c: Ditto.
  13511. * tilegx-linux-nat.c: Ditto.
  13512. * tilegx-tdep.c: Ditto.
  13513. * tracepoint.c: Ditto.
  13514. * valops.c: Ditto.
  13515. * vaxbsd-nat.c: Ditto.
  13516. * windows-nat.c: Ditto.
  13517. * xtensa-tdep.c: Ditto.
  13518. 2014-01-07 Yao Qi <yao@codesourcery.com>
  13519. * spu-linux-nat.c (_initialize_spu_nat): Declare.
  13520. 2014-01-07 Yao Qi <yao@codesourcery.com>
  13521. Joel Brobecker <brobecker@adacore.com>
  13522. * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
  13523. (pdc_write_regs): Likewise.
  13524. (fetch_regs_kernel_thread): Likewise.
  13525. (store_regs_kernel_thread): Likewise.
  13526. 2014-01-07 Joel Brobecker <brobecker@adacore.com>
  13527. * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
  13528. tagged type objects to their actual type.
  13529. 2014-01-07 Joel Brobecker <brobecker@adacore.com>
  13530. * ada-valprint.c (print_field_values): Add "language" parameter.
  13531. Update calls to print_field_values and print_variant_part.
  13532. Pass new parameter "language" in call to val_print instead
  13533. of "current_language". Replace call to ada_val_print by call
  13534. to val_print.
  13535. (print_variant_part): Add "language" parameter.
  13536. (ada_val_print_struct_union): Update call to print_field_values.
  13537. 2014-01-07 Joel Brobecker <brobecker@adacore.com>
  13538. * ada-valprint.c (ui_memcpy): Delete.
  13539. (ada_print_floating): Update documentation. Add empty line
  13540. between between function documentation and implementation.
  13541. Delete variable "buffer". Use ui_file_xstrdup in place of
  13542. ui_file_put. Minor adjustments following this change.
  13543. 2014-01-07 Joel Brobecker <brobecker@adacore.com>
  13544. * ada-valprint.c (ada_val_print_string): New function,
  13545. extracted from ada_val_print_array.
  13546. (ada_val_print_array): Replace extracted code by call
  13547. to ada_val_print_string followed by a return. Move
  13548. "else" branch to the function's top block.
  13549. 2014-01-07 Joel Brobecker <brobecker@adacore.com>
  13550. * ada-valprint.c (ada_val_print_array): Move implementation
  13551. down. Rename parameter "offset" and "val" into "offset_aligned"
  13552. and "original_value" respectively. Add parameter "offset".
  13553. 2014-01-07 Joel Brobecker <brobecker@adacore.com>
  13554. * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
  13555. re-organizing the code. Change the "???" message printed
  13556. when target type is a TYPE_CODE_UNDEF into
  13557. "<ref to undefined type>".
  13558. 2014-01-07 Joel Brobecker <brobecker@adacore.com>
  13559. * ada-valprint.c (print_record): Delete, implementation inlined...
  13560. (ada_val_print_struct_union): ... here. Remove call to
  13561. ada_check_typedef in inlined implementation.
  13562. 2014-01-07 Joel Brobecker <brobecker@adacore.com>
  13563. * ada-valprint.c (ada_val_print_gnat_array): New function,
  13564. extracted from ada_val_print_1;
  13565. (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
  13566. (ada_val_print_flt, ada_val_print_struct_union)
  13567. (ada_val_print_ref): Likewise.
  13568. (ada_val_print_1): Delete variables i and elttype.
  13569. Replace extracted-out code by call to corresponding
  13570. new functions.
  13571. 2014-01-07 Joel Brobecker <brobecker@adacore.com>
  13572. * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
  13573. 2014-01-07 Joel Brobecker <brobecker@adacore.com>
  13574. * ada-valprint.c (ada_val_print_1): Replace calls to
  13575. ada_val_print_1 by calls to val_print.
  13576. 2014-01-07 Joel Brobecker <brobecker@adacore.com>
  13577. * ada-valprint.c (ada_val_print_1): Add parameter "language".
  13578. Update calls to self accordingly. Replace calls to c_val_print
  13579. by calls to val_print.
  13580. 2014-01-07 Joel Brobecker <brobecker@adacore.com>
  13581. * ada-valprint.c (print_record): Delete declaration.
  13582. (adjust_type_signedness, ada_val_print_1): Likewise.
  13583. (ada_val_print): Move function implementation down.
  13584. (print_variant_part, print_field_values, print_record):
  13585. Move function implementation up.
  13586. 2014-01-07 Joel Brobecker <brobecker@adacore.com>
  13587. * python/py-type.c (typy_get_name): New function.
  13588. (type_object_getset): Add entry for attribute "name".
  13589. * NEWS: Add entry mentioning this new attribute.
  13590. 2014-01-07 Yao Qi <yao@codesourcery.com>
  13591. * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
  13592. statement.
  13593. 2014-01-07 Yao Qi <yao@codesourcery.com>
  13594. * gnu-nat.c (info_port_rights): Add qualifier const to
  13595. argument args.
  13596. 2014-01-07 Yao Qi <yao@codesourcery.com>
  13597. * gnu-nat.c (trace_me): Use 'void' for empty argument list.
  13598. 2014-01-07 Yao Qi <yao@codesourcery.com>
  13599. * gnu-nat.c (make_inf) Update declaration.
  13600. (make_inf): Make it static.
  13601. (inf_set_traced): Likewise.
  13602. (inf_port_to_thread, inf_task_died_status): Likewise.
  13603. 2014-01-07 Yao Qi <yao@codesourcery.com>
  13604. * gnu-nat.c (inf_tid_to_proc): Remove declaration.
  13605. 2014-01-07 Yao Qi <yao@codesourcery.com>
  13606. * gnu-nat.c (_initialize_gnu_nat): Declare.
  13607. 2014-01-07 Yao Qi <yao@codesourcery.com>
  13608. * gdbarch.sh (byte_order, byte_order_for_code): Change type to
  13609. 'enum bfd_endian'.
  13610. (struct gdbarch_info) <byte_order>: Change type to
  13611. 'enum bfd_endian'.
  13612. <byte_order_for_code>: Likewise.
  13613. * gdbarch.c, gdbarch.h: Regenerated.
  13614. 2014-01-06 Sasha Smundak <asmundak@google.com>
  13615. * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
  13616. 2014-01-06 Tom Tromey <tromey@redhat.com>
  13617. * doublest.c (convert_doublest_to_floatformat): Use const, not
  13618. CONST.
  13619. * somread.c (som_symtab_read): Likewise.
  13620. 2014-01-07 Hui Zhu <hui@codesourcery.com>
  13621. * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
  13622. (gdb_bfd_open): Removed gdb_bfd_stash_filename.
  13623. (gdb_bfd_fopen): Ditto.
  13624. (gdb_bfd_openr): Ditto.
  13625. (gdb_bfd_openw): Ditto.
  13626. (gdb_bfd_openr_iovec): Ditto.
  13627. (gdb_bfd_fdopenr): Ditto.
  13628. * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
  13629. * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
  13630. with xstrdup.
  13631. * solib-darwin.c (darwin_bfd_open): Alloc res->filename
  13632. with xstrdup.
  13633. * symfile-mem.c (symbol_file_add_from_memory): Removed
  13634. gdb_bfd_stash_filename.
  13635. 2014-01-03 Doug Evans <dje@google.com>
  13636. * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
  13637. output.
  13638. 2014-01-01 Joel Brobecker <brobecker@adacore.com>
  13639. Update year range in copyright notice of all files.
  13640. 2014-01-01 Joel Brobecker <brobecker@adacore.com>
  13641. * top.c (print_gdb_version): Set copyright year to 2014.
  13642. 2014-01-01 Joel Brobecker <brobecker@adacore.com>
  13643. * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
  13644. For older changes see ChangeLog-2013.
  13645. Local Variables:
  13646. mode: change-log
  13647. left-margin: 8
  13648. fill-column: 74
  13649. version-control: never
  13650. coding: utf-8
  13651. End: