ChangeLog-2016 378 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294
  1. 2016-12-22 Doug Evans <xdje42@gmail.com>
  2. * infrun.c (set_step_over_info): Add comment.
  3. 2016-12-22 Doug Evans <xdje42@gmail.com>
  4. * NEWS: Document new syntax for "mt print symbols", "mt print psymbols"
  5. and "mt print msymbols" commands.
  6. * psymtab.c (DEV_TTY): Delete.
  7. (dump_psymtab_addrmap): Don't dump if psymtabs_addrmap is NULL.
  8. (maintenance_print_psymbols): Rewrite for new syntax:
  9. mt print psymbols [-objfile objfile] [-pc address] [outfile]
  10. mt print psymbols [-objfile objfile] [-source source] [outfile]
  11. (_initialize_psymtab): Update help text.
  12. * symmisc.c (maintenance_print_symbols): Rewrite for new syntax:
  13. mt print symbols [-pc address] [outfile]
  14. mt print symbols [-objfile objfile] [-source source] [outfile]
  15. (maintenance_print_msymbols): Rewrite for new syntax:
  16. mt print msymbols [-objfile objfile] [outfile]
  17. Only print symbols for the current progspace.
  18. (_initialize_symmisc): Update help text.
  19. 2016-12-22 Simon Marchi <simon.marchi@ericsson.com>
  20. * ui-out.h (ui_out_begin, ui_out_end, ui_out_table_header,
  21. ui_out_table_body, ui_out_field_int, ui_out_field_fmt_int,
  22. ui_out_field_core_addr, ui_out_field_string, ui_out_field_stream,
  23. ui_out_field_fmt, ui_out_field_skip, ui_out_spaces, ui_out_text,
  24. ui_out_message, ui_out_wrap_hint, ui_out_flush, ui_out_test_flags,
  25. ui_out_query_field, ui_out_is_mi_like_p, ui_out_redirect):
  26. Remove, replace with a method in class ui_out.
  27. (table_begin_ftype): Remove, replace with pure virtual method in
  28. class ui_out.
  29. (table_body_ftype): Likewise.
  30. (table_end_ftype): Likewise.
  31. (table_header_ftype): Likewise.
  32. (ui_out_begin_ftype): Likewise.
  33. (ui_out_end_ftype): Likewise.
  34. (field_int_ftype): Likewise.
  35. (field_skip_ftype): Likewise.
  36. (field_string_ftype): Likewise.
  37. (field_fmt_ftype): Likewise.
  38. (spaces_ftype): Likewise.
  39. (text_ftype): Likewise.
  40. (message_ftype): Likewise.
  41. (wrap_hint_ftype): Likewise.
  42. (flush_ftype): Likewise.
  43. (redirect_ftype): Likewise.
  44. (data_destroy_ftype): Likewise.
  45. (struct ui_out_impl): Remove, replace with class ui_out.
  46. (ui_out_new): Remove.
  47. (class ui_out): New class.
  48. * ui-out.c (struct ui_out): Remove, replaced with class ui_out.
  49. (current_level): Remove, replace with ui_out method.
  50. (push_level): Likewise.
  51. (pop_level): Likewise.
  52. (uo_table_begin, uo_table_body, uo_table_end, uo_table_header,
  53. uo_begin, uo_end, uo_field_int, uo_field_skip, uo_field_fmt,
  54. uo_spaces, uo_text, uo_message, uo_wrap_hint, uo_flush,
  55. uo_redirect, uo_field_string): Remove.
  56. (ui_out_table_begin): Replace with ...
  57. (ui_out::table_begin): ... this.
  58. (ui_out_table_body): Replace with ...
  59. (ui_out::table_body): ... this.
  60. (ui_out_table_end): Replace with ...
  61. (ui_out::table_end): ... this.
  62. (ui_out_table_header): Replace with ...
  63. (ui_out::table_header): ... this.
  64. (ui_out_begin): Replace with ...
  65. (ui_out::begin): ... this.
  66. (ui_out_end): Replace with ...
  67. (ui_out::end): ... this.
  68. (ui_out_field_int): Replace with ...
  69. (ui_out::field_int): ... this.
  70. (ui_out_field_fmt_int): Replace with ...
  71. (ui_out::field_fmt_int): ... this.
  72. (ui_out_field_core_addr): Replace with ...
  73. (ui_out::field_core_addr): ... this.
  74. (ui_out_field_stream): Replace with ...
  75. (ui_out::field_stream): ... this.
  76. (ui_out_field_skip): Replace with ...
  77. (ui_out::field_skip): ... this.
  78. (ui_out_field_string): Replace with ...
  79. (ui_out::field_string): ... this.
  80. (ui_out_field_fmt): Replace with ...
  81. (ui_out::field_fmt): ... this.
  82. (ui_out_spaces): Replace with ...
  83. (ui_out::spaces): ... this.
  84. (ui_out_text): Replace with ...
  85. (ui_out::text): ... this.
  86. (ui_out_message): Replace with ...
  87. (ui_out::message): ... this.
  88. (ui_out_wrap_hint): Replace with ...
  89. (ui_out::wrap_hint): ... this.
  90. (ui_out_flush): Replace with ...
  91. (ui_out::flush): ... this.
  92. (ui_out_redirect): Replace with ...
  93. (ui_out::redirect): ... this.
  94. (ui_out_test_flags): Replace with ...
  95. (ui_out::test_flags): ... this.
  96. (ui_out_is_mi_like_p): Replace with ...
  97. (ui_out::is_mi_like_p): ... this.
  98. (verify_field): Replace with ...
  99. (ui_out::verify_field): ... this.
  100. (ui_out_query_field): Replace with ...
  101. (ui_out::query_table_field): ... this.
  102. (ui_out_data): Remove.
  103. (ui_out_new): Remove, replace with ...
  104. (ui_out::ui_out): ... this constructor.
  105. (do_cleanup_table_end, make_cleanup_ui_out_tuple_begin_end,
  106. do_cleanup_end, make_cleanup_ui_out_tuple_begin_end,
  107. make_cleanup_ui_out_list_begin_end): Update fallouts of struct
  108. ui_out -> class ui_out change.
  109. * cli-out.c (cli_out_data): Remove.
  110. (cli_uiout_dtor): Remove.
  111. (cli_table_begin): Replace with ...
  112. (cli_ui_out::do_table_begin): ... this new method.
  113. (cli_table_body): Replace with ...
  114. (cli_ui_out::do_table_body): ... this new method.
  115. (cli_table_end): Replace with ...
  116. (cli_ui_out::do_table_end): ... this new method.
  117. (cli_table_header): Replace with ...
  118. (cli_ui_out::do_table_header): ... this new method.
  119. (cli_begin): Replace with ...
  120. (cli_ui_out::do_begin): ... this new method.
  121. (cli_end): Replace with ...
  122. (cli_ui_out::do_end): ... this new method.
  123. (cli_field_int): Replace with ...
  124. (cli_ui_out::do_field_int): ... this new method.
  125. (cli_field_skip): Replace with ...
  126. (cli_ui_out::do_field_skip): ... this new method.
  127. (cli_field_string): Replace with ...
  128. (cli_ui_out::do_field_string): ... this new method.
  129. (cli_field_fmt): Replace with ...
  130. (cli_ui_out::do_field_fmt): ... this new method.
  131. (cli_spaces): Replace with ...
  132. (cli_ui_out::do_spaces): ... this new method.
  133. (cli_text): Replace with ...
  134. (cli_ui_out::do_text): ... this new method.
  135. (cli_message): Replace with ...
  136. (cli_ui_out::do_message): ... this new method.
  137. (cli_wrap_hint): Replace with ...
  138. (cli_ui_out::do_wrap_hint): ... this new method.
  139. (cli_flush): Replace with ...
  140. (cli_ui_out::do_flush): ... this new method.
  141. (cli_redirect): Replace with ...
  142. (cli_ui_out::do_redirect): ... this new method.
  143. (out_field_fmt): Replace with ...
  144. (cli_ui_out::out_field_fmt): ... this new method.
  145. (field_separator): Replace with ...
  146. (cli_ui_out::field_separator): ... this new method.
  147. (cli_out_set_stream): Replace with ...
  148. (cli_ui_out::set_stream): ... this new method.
  149. (cli_ui_out_impl): Remove.
  150. (cli_out_data_ctor): Remove.
  151. (cli_ui_out_impl::cli_ui_out_impl): New constructor.
  152. (cli_ui_out_impl::~cli_ui_out_impl): New destructor.
  153. (cli_out_new): Change return type to cli_ui_out *, instantiate a
  154. cli_ui_out.
  155. * cli-out.h (cli_ui_out_data): Remove, replace with class
  156. cli_ui_out.
  157. (class cli_ui_out): New class.
  158. (cli_ui_out_impl): Remove.
  159. (cli_out_data_ctor): Remove.
  160. (cli_out_new): Change return type to cli_ui_out*.
  161. (cli_out_set_stream): Remove.
  162. * cli/cli-interp.c (struct cli_interp) <cli_uiout>: Change type
  163. to cli_ui_out*.
  164. (cli_interpreter_resume): Adapt.
  165. (cli_interpreter_exec): Adapt.
  166. * mi/mi-out.c (mi_ui_out_data, mi_out_data): Remove.
  167. (mi_ui_out_impl): Remove.
  168. (mi_table_begin): Replace with ...
  169. (mi_ui_out::do_table_begin): ... this.
  170. (mi_table_body): Replace with ...
  171. (mi_ui_out::do_table_body): ... this.
  172. (mi_table_end): Replace with ...
  173. (mi_ui_out::do_table_end): ... this.
  174. (mi_table_header): Replace with ...
  175. (mi_ui_out::do_table_header): ... this.
  176. (mi_begin): Replace with ...
  177. (mi_ui_out::do_begin): ... this.
  178. (mi_end): Replace with ...
  179. (mi_ui_out::do_end): ... this.
  180. (mi_field_int): Replace with ...
  181. (mi_ui_out::do_field_int): ... this.
  182. (mi_field_skip): Replace with ...
  183. (mi_ui_out::do_field_skip): ... this.
  184. (mi_field_string): Replace with ...
  185. (mi_ui_out::do_field_string): ... this.
  186. (mi_field_fmt): Replace with ...
  187. (mi_ui_out::do_field_fmt): ... this.
  188. (mi_spaces): Replace with ...
  189. (mi_ui_out::do_spaces): ... this.
  190. (mi_text): Replace with ...
  191. (mi_ui_out::do_text): ... this.
  192. (mi_message): Replace with ...
  193. (mi_ui_out::do_message): ... this.
  194. (mi_wrap_hint): Replace with ...
  195. (mi_ui_out::do_wrap_hint): ... this.
  196. (mi_flush): Replace with ...
  197. (mi_ui_out::do_flush): ... this.
  198. (mi_redirect): Replace with ...
  199. (mi_ui_out::do_redirect):
  200. (field_separator): Replace with ...
  201. (mi_ui_out::field_separator):
  202. (mi_open): Replace with ...
  203. (mi_ui_out::open): ... this.
  204. (mi_close): Replace with ...
  205. (mi_ui_out::close): ... this.
  206. (mi_out_rewind): Replace with ...
  207. (mi_ui_out::rewind): ... this.
  208. (mi_out_put): Replace with ...
  209. (mi_ui_out::put): ... this.
  210. (mi_version): Replace with ...
  211. (mi_ui_out::version): ... this.
  212. (mi_out_data_ctor): Replace with ...
  213. (mi_ui_out::mi_ui_out): ... this.
  214. (mi_out_data_dtor): Replace with ...
  215. (mi_ui_out::~mi_ui_out): ... this.
  216. (mi_out_new): Change return type to mi_ui_out*, instantiate
  217. an mi_ui_out object.
  218. (as_mi_ui_out): New function.
  219. (mi_version): Update fallouts of struct ui_out to class ui_out
  220. transition.
  221. (mi_out_put): Likewise.
  222. (mi_out_rewind): Likewise.
  223. * mi/mi-out.h (mi_out_new): Change return type to mi_ui_out*.
  224. * tui/tui-out.c (tui_ui_out_data, tui_out_data, tui_ui_out_impl):
  225. Remove.
  226. (tui_field_int): Replace with ...
  227. (tui_ui_out::do_field_int): ... this.
  228. (tui_field_string): Replace with ...
  229. (tui_ui_out::do_field_string): ... this.
  230. (tui_field_fmt): Replace with ...
  231. (tui_ui_out::do_field_fmt): ... this.
  232. (tui_text): Replace with ...
  233. (tui_ui_out::do_text): ... this.
  234. (tui_out_new): Change return type to tui_ui_out*, instantiate
  235. tui_ui_out object.
  236. (tui_ui_out::tui_ui_out): New.
  237. * tui/tui-out.h: New file.
  238. * tui/tui.h (tui_out_new): Move declaration to tui/tui-out.h.
  239. * tui/tui-io.c: Include tui/tui-out.h.
  240. (tui_old_uiout): Change type to cli_ui_out*.
  241. (tui_setup_io): Use dynamic_cast.
  242. * tui/tui-io.h (tui_old_uiout): Change type to cli_ui_out*.
  243. * tui/tui-interp.c (tui_resume): Adapt.
  244. * ada-lang.c (print_it_exception): Update fallouts of struct
  245. ui_out to class ui_out transition.
  246. (print_one_exception): Likewise.
  247. (print_mention_exception): Likewise.
  248. * ada-tasks.c (print_ada_task_info): Likewise.
  249. (info_task): Likewise.
  250. (task_command): Likewise.
  251. * auto-load.c (print_script): Likewise.
  252. (auto_load_info_scripts): Likewise.
  253. (info_auto_load_cmd): Likewise.
  254. * break-catch-sig.c (signal_catchpoint_print_one): Likewise.
  255. * break-catch-syscall.c (print_it_catch_syscall): Likewise.
  256. (print_one_catch_syscall): Likewise.
  257. * break-catch-throw.c (print_it_exception_catchpoint): Likewise.
  258. (print_one_exception_catchpoint): Likewise.
  259. (print_one_detail_exception_catchpoint): Likewise.
  260. (print_mention_exception_catchpoint): Likewise.
  261. * breakpoint.c (maybe_print_thread_hit_breakpoint): Likewise.
  262. (print_solib_event): Likewise.
  263. (watchpoint_check): Likewise.
  264. (wrap_indent_at_field): Likewise.
  265. (print_breakpoint_location): Likewise.
  266. (output_thread_groups): Likewise.
  267. (print_one_breakpoint_location): Likewise.
  268. (breakpoint_1): Likewise.
  269. (default_collect_info): Likewise.
  270. (watchpoints_info): Likewise.
  271. (print_it_catch_fork): Likewise.
  272. (print_one_catch_fork): Likewise.
  273. (print_it_catch_vfork): Likewise.
  274. (print_one_catch_vfork): Likewise.
  275. (print_it_catch_solib): Likewise.
  276. (print_one_catch_solib): Likewise.
  277. (print_it_catch_exec): Likewise.
  278. (print_one_catch_exec): Likewise.
  279. (mention): Likewise.
  280. (print_it_ranged_breakpoint): Likewise.
  281. (print_one_ranged_breakpoint): Likewise.
  282. (print_one_detail_ranged_breakpoint): Likewise.
  283. (print_mention_ranged_breakpoint): Likewise.
  284. (print_it_watchpoint): Likewise.
  285. (print_mention_watchpoint): Likewise.
  286. (print_it_masked_watchpoint): Likewise.
  287. (print_one_detail_masked_watchpoint): Likewise.
  288. (print_mention_masked_watchpoint): Likewise.
  289. (bkpt_print_it): Likewise.
  290. (tracepoint_print_one_detail): Likewise.
  291. (tracepoint_print_mention): Likewise.
  292. (update_static_tracepoint): Likewise.
  293. (tracepoints_info): Likewise.
  294. (save_breakpoints): Likewise.
  295. * cli/cli-cmds.c (complete_command): Likewise.
  296. * cli/cli-logging.c (set_logging_redirect): Likewise.
  297. (pop_output_files): Likewise.
  298. (handle_redirections): Likewise.
  299. * cli/cli-script.c (print_command_lines): Likewise.
  300. * cli/cli-setshow.c (do_show_command): Likewise.
  301. (cmd_show_list): Likewise.
  302. * cp-abi.c (list_cp_abis): Likewise.
  303. (show_cp_abi_cmd): Likewise.
  304. * darwin-nat-info.c (darwin_debug_regions_recurse): Likewise.
  305. * disasm.c (gdb_pretty_print_insn): Likewise.
  306. (do_mixed_source_and_assembly_deprecated): Likewise.
  307. (do_mixed_source_and_assembly): Likewise.
  308. * gdb_bfd.c (print_one_bfd): Likewise.
  309. (maintenance_info_bfds): Likewise.
  310. * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Likewise.
  311. * guile/scm-ports.c (ioscm_with_output_to_port_worker): Likewise.
  312. * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Likewise.
  313. * i386-tdep.c (i386_mpx_print_bounds): Likewise.
  314. * infcmd.c (run_command_1): Likewise.
  315. (print_return_value_1): Likewise.
  316. * inferior.c (print_selected_inferior): Likewise.
  317. (print_inferior): Likewise.
  318. * infrun.c (print_end_stepping_range_reason): Likewise.
  319. (print_signal_exited_reason): Likewise.
  320. (print_exited_reason): Likewise.
  321. (print_signal_received_reason): Likewise.
  322. (print_no_history_reason): Likewise.
  323. * interps.c (interp_set): Likewise.
  324. * linespec.c (decode_line_full): Likewise.
  325. * linux-thread-db.c (info_auto_load_libthread_db): Likewise.
  326. * mi/mi-cmd-env.c (mi_cmd_env_pwd): Likewise.
  327. (mi_cmd_env_path): Likewise.
  328. (mi_cmd_env_dir): Likewise.
  329. (mi_cmd_inferior_tty_show): Likewise.
  330. * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Likewise.
  331. (print_partial_file_name): Likewise.
  332. (mi_cmd_file_list_exec_source_files): Likewise.
  333. * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Likewise.
  334. (mi_cmd_info_gdb_mi_command): Likewise.
  335. * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth): Likewise.
  336. (mi_cmd_stack_list_args): Likewise.
  337. (list_arg_or_local): Likewise.
  338. * mi/mi-cmd-var.c (print_varobj): Likewise.
  339. (mi_cmd_var_create): Likewise.
  340. (mi_cmd_var_delete): Likewise.
  341. (mi_cmd_var_set_format): Likewise.
  342. (mi_cmd_var_show_format): Likewise.
  343. (mi_cmd_var_info_num_children): Likewise.
  344. (mi_cmd_var_list_children): Likewise.
  345. (mi_cmd_var_info_type): Likewise.
  346. (mi_cmd_var_info_path_expression): Likewise.
  347. (mi_cmd_var_info_expression): Likewise.
  348. (mi_cmd_var_show_attributes): Likewise.
  349. (mi_cmd_var_evaluate_expression): Likewise.
  350. (mi_cmd_var_assign): Likewise.
  351. (varobj_update_one): Likewise.
  352. * mi/mi-interp.c (as_mi_interp): Likewise.
  353. (mi_on_normal_stop_1): Likewise.
  354. (mi_tsv_modified): Likewise.
  355. (mi_breakpoint_created): Likewise.
  356. (mi_breakpoint_modified): Likewise.
  357. (mi_solib_loaded): Likewise.
  358. (mi_solib_unloaded): Likewise.
  359. (mi_command_param_changed): Likewise.
  360. (mi_memory_changed): Likewise.
  361. (mi_user_selected_context_changed): Likewise.
  362. * mi/mi-main.c (print_one_inferior): Likewise.
  363. (output_cores): Likewise.
  364. (list_available_thread_groups): Likewise.
  365. (mi_cmd_data_list_register_names): Likewise.
  366. (mi_cmd_data_list_changed_registers): Likewise.
  367. (output_register): Likewise.
  368. (mi_cmd_data_evaluate_expression): Likewise.
  369. (mi_cmd_data_read_memory): Likewise.
  370. (mi_cmd_data_read_memory_bytes): Likewise.
  371. (mi_cmd_list_features): Likewise.
  372. (mi_cmd_list_target_features): Likewise.
  373. (mi_cmd_add_inferior): Likewise.
  374. (mi_execute_command): Likewise.
  375. (mi_load_progress): Likewise.
  376. (print_variable_or_computed): Likewise.
  377. (mi_cmd_trace_frame_collected): Likewise.
  378. * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Likewise.
  379. * osdata.c (info_osdata_command): Likewise.
  380. * probe.c (gen_ui_out_table_header_info): Likewise.
  381. (print_ui_out_not_applicables): Likewise.
  382. (print_ui_out_info): Likewise.
  383. (info_probes_for_ops): Likewise.
  384. (enable_probes_command): Likewise.
  385. (disable_probes_command): Likewise.
  386. * progspace.c (print_program_space): Likewise.
  387. * python/py-breakpoint.c (bppy_get_commands): Likewise.
  388. * python/py-framefilter.c (py_print_type): Likewise.
  389. (py_print_value): Likewise.
  390. (py_print_single_arg): Likewise.
  391. (enumerate_args): Likewise.
  392. (enumerate_locals): Likewise.
  393. (py_print_args): Likewise.
  394. (py_print_frame): Likewise.
  395. * record-btrace.c (btrace_ui_out_decode_error): Likewise.
  396. (btrace_call_history_insn_range): Likewise.
  397. (btrace_call_history_src_line): Likewise.
  398. (btrace_call_history): Likewise.
  399. * remote.c (show_remote_cmd): Likewise.
  400. * skip.c (skip_info): Likewise.
  401. * solib.c (info_sharedlibrary_command): Likewise.
  402. * source.c (print_source_lines_base): Likewise.
  403. * spu-tdep.c (info_spu_event_command): Likewise.
  404. (info_spu_signal_command): Likewise.
  405. (info_spu_mailbox_list): Likewise.
  406. (info_spu_dma_cmdlist): Likewise.
  407. (info_spu_dma_command): Likewise.
  408. (info_spu_proxydma_command): Likewise.
  409. * stack.c (print_stack_frame): Likewise.
  410. (print_frame_arg): Likewise.
  411. (read_frame_arg): Likewise.
  412. (print_frame_args): Likewise.
  413. (print_frame_info): Likewise.
  414. (print_frame): Likewise.
  415. * symfile.c (load_progress): Likewise.
  416. (generic_load): Likewise.
  417. (print_transfer_performance): Likewise.
  418. * thread.c (do_captured_list_thread_ids): Likewise.
  419. (print_thread_info_1): Likewise.
  420. (restore_selected_frame): Likewise.
  421. (do_captured_thread_select): Likewise.
  422. (print_selected_thread_frame): Likewise.
  423. * top.c (execute_command_to_string): Likewise.
  424. * tracepoint.c (tvariables_info_1): Likewise.
  425. (trace_status_mi): Likewise.
  426. (tfind_1): Likewise.
  427. (print_one_static_tracepoint_marker): Likewise.
  428. (info_static_tracepoint_markers_command): Likewise.
  429. * utils.c (do_ui_out_redirect_pop): Likewise.
  430. (fputs_maybe_filtered): Likewise.
  431. 2016-12-20 Pedro Alves <palves@redhat.com>
  432. * nto-tdep.c (nto_find_and_open_solib): Constify 'solib'
  433. parameter.
  434. * nto-tdep.h (nto_find_and_open_solib): Constify 'solib'
  435. parameter.
  436. * solib.c (solib_find_1, exec_file_find, solib_find): Constify
  437. in_pathname' parameter.
  438. * solist.h (struct target_so_ops) <find_and_open_solib>: Constify
  439. 'soname' parameter.
  440. (exec_file_find, solib_find): Constify 'in_pathname' parameter.
  441. 2016-12-20 Pedro Alves <palves@redhat.com>
  442. Yao Qi <yao.qi@linaro.org>
  443. PR gdb/20977
  444. * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept): New
  445. noexcept function, factored out from ...
  446. (gdb_rl_callback_read_char_wrapper): ... this.
  447. (gdb_rl_callback_handler): Mark noexcept.
  448. 2016-12-20 Antoine Tremblay <antoine.tremblay@ericsson.com>
  449. * .dir-locals.el: Set c++ mode for the directory and set indent
  450. properly.
  451. * gdb-code-style.el: Set c-set-offset 'innamespace as a safe value
  452. to be used in .dir-locals.el.
  453. 2016-12-16 Bernhard Heckel <bernhard.heckel@intel.com>
  454. * darwin-nat-info.c (info_mach_region_command): Use expression_up.
  455. 2016-12-12 Yao Qi <yao.qi@linaro.org>
  456. PR tdep/20955
  457. * cris-tdep.c (cris_delayed_get_disassembler): Remove the
  458. assert.
  459. 2016-12-09 Pedro Alves <palves@redhat.com>
  460. * Makefile.in (ALL_TARGET_OBS): Remove vax-obsd-tdep.o.
  461. * alpha-fbsd-tdep.c (_initialize_alphafbsd_tdep): Adjust.
  462. * alpha-nbsd-tdep.c: Move comment to _initialize_alphanbsd_tdep.
  463. (alphanbsd_core_osabi_sniffer): Delete.
  464. (_initialize_alphanbsd_tdep): No longer handle a.out.
  465. * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Adjust.
  466. * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Adjust.
  467. * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Adjust.
  468. * amd64-obsd-tdep.c (amd64obsd_supply_regset)
  469. (amd64obsd_combined_regset)
  470. (amd64obsd_iterate_over_regset_sections, amd64obsd_core_init_abi):
  471. Delete.
  472. (_initialize_amd64obsd_tdep): Don't handle a.out.
  473. * arm-nbsd-nat.c (struct md_core, fetch_core_registers)
  474. (arm_netbsd_core_fns): Delete.
  475. (_initialize_arm_netbsd_nat): Don't register arm_netbsd_core_fns.
  476. * arm-nbsd-tdep.c (arm_netbsd_aout_init_abi)
  477. (arm_netbsd_aout_osabi_sniffer): Delete.
  478. (_initialize_arm_netbsd_tdep): Don't handle a.out.
  479. * arm-obsd-tdep.c (armobsd_core_osabi_sniffer): Delete.
  480. (_initialize_armobsd_tdep): Don't handle a.out.
  481. * arm-tdep.c (arm_gdbarch_init): Remove bfd_target_aout_flavour
  482. case.
  483. * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Remove
  484. SunOS a.out handling.
  485. * configure.tgt (vax-*-netbsd* | vax-*-knetbsd*-gnu): Remove
  486. vax-obsd-tdep.o from gdb_target_objs.
  487. (vax-*-openbsd*): Likewise.
  488. (*-*-freebsd*): Adjust default gdb_osabi.
  489. (*-*-openbsd*): Likewise.
  490. * dbxread.c (block_address_function_relative): Delete.
  491. (dbx_symfile_read): Remove reference to
  492. block_address_function_relative.
  493. (dbx_symfile_read): Don't call read_dbx_dynamic_symtab.
  494. (read_dbx_dynamic_symtab): Delete.
  495. (process_one_symbol): Remove references to
  496. block_address_function_relative.
  497. * defs.h (GDB_OSABI_FREEBSD_AOUT, GDB_OSABI_NETBSD_AOUT): Remove.
  498. (GDB_OSABI_FREEBSD_ELF): Rename to ...
  499. (GDB_OSABI_FREEBSD): ... this.
  500. (GDB_OSABI_NETBSD_ELF): Rename to ...
  501. (GDB_OSABI_NETBSD): ... this.
  502. (GDB_OSABI_OPENBSD_ELF): Rename to ...
  503. (GDB_OSABI_OPENBSD): ... this.
  504. (GDB_OSABI_HPUX_ELF, GDB_OSABI_HPUX_SOM): Remove.
  505. * fbsd-tdep.c: Adjust comment.
  506. * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Adjust.
  507. * hppa-obsd-tdep.c (GDB_OSABI_NETBSD_CORE): Delete.
  508. (hppaobsd_core_osabi_sniffer): Delete.
  509. (_initialize_hppabsd_tdep): Don't handle a.out.
  510. * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't handle
  511. GDB_OSABI_HPUX_SOM.
  512. (hppa_gdbarch_init): Likewise.
  513. * i386-bsd-tdep.c (i386bsd_aout_osabi_sniffer)
  514. (i386bsd_core_osabi_sniffer, _initialize_i386bsd_tdep): Delete.
  515. * i386-fbsd-tdep.c (i386fbsdaout_init_abi): Delete. Merge bits
  516. with ...
  517. (i386fbsd_init_abi): ... this.
  518. (_initialize_i386fbsd_tdep): Don't handle a.out.
  519. * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Adjust.
  520. * i386-obsd-tdep.c (i386obsd_aout_supply_regset)
  521. (i386obsd_aout_gregset)
  522. (i386obsd_aout_iterate_over_regset_sections): Delete.
  523. (i386obsd_init_abi): Merge with i386obsd_elf_init_abi.
  524. (i386obsd_aout_init_abi): Delete.
  525. (_initialize_i386obsd_tdep): Don't handle a.out.
  526. * m68k-bsd-tdep.c (m68kobsd_sigtramp_cache_init)
  527. (m68kobsd_sigtramp): Delete.
  528. (m68kbsd_init_abi): Merge with ...
  529. (m68kbsd_elf_init_abi): ... this, and delete it.
  530. (m68kbsd_aout_init_abi): Delete.
  531. (m68kbsd_aout_osabi_sniffer, m68kbsd_core_osabi_sniffer): Delete.
  532. (_initialize_m68kbsd_tdep): Don't handle a.out.
  533. * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Adjust.
  534. * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Adjust.
  535. * osabi.c (gdb_osabi_names): Remove "a.out" entries. Drop "ELF"
  536. suffixes. Remove "HP-UX" entries.
  537. (generic_elf_osabi_sniff_abi_tag_sections): Adjust.
  538. (generic_elf_osabi_sniffer): No longer handle GDB_OSABI_HPUX_ELF.
  539. Adjust.
  540. (_initialize_ppcfbsd_tdep): Adjust.
  541. * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Adjust.
  542. * ppc-obsd-tdep.c (GDB_OSABI_NETBSD_CORE)
  543. (ppcobsd_core_osabi_sniffer): Delete.
  544. (_initialize_ppcobsd_tdep): Don't handle a.out.
  545. * rs6000-tdep.c (rs6000_gdbarch_init): Adjust.
  546. * sh-nbsd-tdep.c (GDB_OSABI_NETBSD_CORE)
  547. (shnbsd_core_osabi_sniffer): Delete.
  548. (_initialize_shnbsd_tdep): Don't handle a.out.
  549. * solib.c (clear_solib): Don't handle SunOS/a.out.
  550. * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Make extern.
  551. (sparc32nbsd_aout_init_abi): Delete.
  552. (sparc32nbsd_elf_init_abi): Merged into sparc32nbsd_init_abi.
  553. (sparcnbsd_aout_osabi_sniffer): Delete.
  554. (GDB_OSABI_NETBSD_CORE, sparcnbsd_core_osabi_sniffer): Delete.
  555. (_initialize_sparcnbsd_tdep): No longer handle a.out.
  556. * sparc-obsd-tdep.c (sparc32obsd_init_abi)
  557. (_initialize_sparc32obsd_tdep): Adjust.
  558. * sparc-tdep.h (sparc32nbsd_elf_init_abi): Rename to ...
  559. (sparc32nbsd_init_abi): ... this.
  560. * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Adjust.
  561. * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Adjust.
  562. * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Adjust.
  563. * stabsread.c: Update comment.
  564. * symmisc.c (print_objfile_statistics): Don't mention "a.out" in
  565. output.
  566. * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Adjust.
  567. * vax-obsd-tdep.c: Delete file.
  568. 2016-12-09 Yao Qi <yao.qi@linaro.org>
  569. PR tdep/20954
  570. * rx-tdep.c (rx_psw_type): New function.
  571. (rx_fpsw_type): New function.
  572. (rx_register_type): Call rx_psw_type and rx_fpsw_type.
  573. (rx_gdbarch_init): Move code to rx_psw_type and
  574. rx_fpsw_type.
  575. 2016-12-09 Yao Qi <yao.qi@linaro.org>
  576. PR tdep/20953
  577. * rl78-tdep.c (rl78_psw_type): New function.
  578. (rl78_register_type): Call rl78_psw_type.
  579. (rl78_gdbarch_init): Move code to rl78_psw_type.
  580. 2016-12-09 Yao Qi <yao.qi@linaro.org>
  581. * aarch64-tdep.c (instruction_reader::read): Call
  582. read_code_unsigned_integer instead of
  583. read_memory_unsigned_integer.
  584. 2016-12-09 Yao Qi <yao.qi@linaro.org>
  585. * arm-tdep.c (skip_prologue_function): Call
  586. read_code_unsigned_integer instead of
  587. read_memory_unsigned_integer.
  588. (thumb_analyze_prologue): Likewise.
  589. (arm_analyze_load_stack_chk_guard): Likewise.
  590. (arm_skip_stack_protector): Likewise.
  591. (arm_analyze_prologue):Likewise.
  592. (extend_buffer_earlier): Call target_read_code instead
  593. of target_read_memory.
  594. (arm_adjust_breakpoint_address): Likewise.
  595. 2016-12-09 Thomas Schwinge <thomas@codesourcery.com>
  596. * gnu-nat.c (gnu_create_inferior): After startup_inferior, call
  597. prune_threads.
  598. * inferior.c (print_selected_inferior): Avoid PATH_MAX usage.
  599. 2016-12-08 Simon Marchi <simon.marchi@ericsson.com>
  600. Thomas Schwinge <thomas@codesourcery.com>
  601. * gnu-nat.c (set_sig_thread_cmd): Use parse_thread_id instead of
  602. global_thread_id_to_ptid.
  603. 2016-12-08 Thomas Schwinge <thomas@codesourcery.com>
  604. * config/i386/i386gnu.mh (%_S.o %_U.o): Add "-x c" to
  605. "COMPILE.post".
  606. * gnu-nat.c: #include Mach/Hurd headers before all others. Wrap
  607. Mach/Hurd headers and MIG stubs' prototypes in 'extern "C"'.
  608. * i386-gnu-nat.c: Likewise.
  609. * gnu-nat.c (proc_get_exception_port, proc_set_exception_port)
  610. (INF_RESUME_MSGPORT_RPC, proc_get_state, _proc_get_exc_port)
  611. (proc_steal_exc_port, proc_restore_exc_port, make_proc)
  612. (inf_startup, inf_set_pid, inf_validate_procinfo)
  613. (inf_validate_task_sc, inf_set_traced, inf_validate_procs)
  614. (inf_signal, inf_continue, gnu_wait, S_exception_raise_request)
  615. (do_mach_notify_dead_name, S_proc_wait_reply)
  616. (S_msg_sig_post_untraced_reply, S_msg_sig_post_reply)
  617. (port_msgs_queued, gnu_read_inferior, gnu_write_inferior)
  618. (gnu_find_memory_regions, steal_exc_port, thread_takeover_sc_cmd)
  619. (flush_inferior_icache): Instead of "error_t" use "kern_return_t".
  620. * i386-gnu-nat.c (fetch_fpregs, store_fpregs, i386_gnu_dr_get)
  621. (i386_gnu_dr_set): Likewise.
  622. * gnu-nat.c (set_task_pause_cmd, set_signals_cmd)
  623. (set_exceptions_cmd): Add variants taking an "int arg" instead of
  624. a "char *". Make the "char *" variants use the former.
  625. (set_noninvasive_cmd): Also use the "int arg" variants.
  626. * gnu-nat.c (gnu_create_inferior): Move nested "trace_me"
  627. function...
  628. (gnu_ptrace_me): ... here.
  629. * i386-gnu-nat.c (i386_gnu_dr_set_control_one)
  630. (i386_gnu_dr_set_addr_one): Explicitly cast "void *".
  631. 2016-12-07 Thomas Schwinge <thomas@codesourcery.com>
  632. * gnu-nat.c (set_sig_thread_cmd): Call global_thread_id_to_ptid
  633. instead of thread_id_to_pid.
  634. 2016-12-06 Simon Marchi <simon.marchi@ericsson.com>
  635. * inferior.c (inferior_command): Remove duplicate
  636. find_inferior_id call.
  637. 2016-12-06 Yao Qi <yao.qi@linaro.org>
  638. * frame.c (frame_register_unwind): Set *realnump if *lvalp is
  639. lval_register.
  640. * value.c (deprecated_value_next_frame_id_hack): Assert
  641. value->lval is lval_register.
  642. (deprecated_value_regnum_hack): Likewise.
  643. 2016-12-02 Simon Marchi <simon.marchi@polymtl.ca>
  644. * ui-out.h: Include "common/enum-flags.h".
  645. (enum ui_flags): Rename to ...
  646. (enum ui_out_flag): ... this.
  647. (ui_out_flags): Define enum flag type.
  648. (ui_out_test_flags): Change type of parameter to ui_out_flags.
  649. (ui_out_new): Likewise.
  650. * ui-out.c (ui_out_test_flags): Likewise.
  651. (ui_out_new): Likewise.
  652. * cli-out.c (cli_out_new): Update variable type.
  653. * mi/mi-out.c (mi_out_new): Likewise.
  654. * tui/tui-out.c (tui_out_new): Likewise.
  655. 2016-12-02 Pedro Alves <palves@redhat.com>
  656. * NEWS: Mention that user commands now accept an unlimited number
  657. of arguments.
  658. * cli/cli-script.c: Include <vector>.
  659. (struct string_view): New type.
  660. (MAXUSERARGS): Delete.
  661. (struct user_args): Now a C++ class.
  662. (user_args_stack): New.
  663. (struct scoped_user_args_level): New type.
  664. (execute_user_command): Use scoped_user_args_level.
  665. (arg_cleanup): Delete.
  666. (setup_user_args): Deleted, and refactored as ...
  667. (user_args::user_args): ... this new constructor. Limit of number
  668. of arguments removed.
  669. (insert_user_defined_cmd_args): Defer to user_args_stack.
  670. (user_args::insert_args): New, bits based on old
  671. insert_user_defined_cmd_args with limit of number of arguments
  672. eliminated.
  673. 2016-12-02 Pedro Alves <palves@redhat.com>
  674. PR cli/20559
  675. * NEWS: Mention "eval" expands user-defined command arguments.
  676. * cli/cli-script.c (execute_control_command): Adjust to rename.
  677. (insert_args): Rename to ...
  678. (insert_user_defined_cmd_args): ... this, and make extern.
  679. * cli/cli-script.h (insert_user_defined_cmd_args): New
  680. declaration.
  681. * printcmd.c: Include "cli/cli-script.h".
  682. (eval_command): Call insert_user_defined_cmd_args.
  683. 2016-12-02 Tom Tromey <tom@tromey.com>
  684. PR symtab/16264:
  685. * dwarf2read.c (struct partial_die_info) <main_subprogram>: New
  686. member.
  687. (add_partial_symbol): Call set_objfile_main_name.
  688. (read_partial_die): Handle DW_AT_main_subprogram.
  689. <DW_AT_calling_convention>: don't call set_objfile_main_name, but
  690. set main_subprogram flag.
  691. 2016-12-02 Simon Marchi <simon.marchi@ericsson.com>
  692. * tracefile-tfile.c (tfile_write_status): Adjust to renames.
  693. * tracefile.c (trace_save_command): Rename to...
  694. (tsave_command): ...this.
  695. (_initialize_tracefile): Adjust to renames.
  696. * tracepoint.c (trace_actions_command): Rename to...
  697. (actions_command): ...this.
  698. (trace_start_command): Rename to...
  699. (tstart_command): ...this, and adjust to renames..
  700. (trace_stop_command): Rename to...
  701. (tstop_command): ...this.
  702. (trace_status_command): Rename to...
  703. (tstatus_command): ...this, and adjust to renames.
  704. (trace_find_command): Rename to...
  705. (tfind_command): ...this.
  706. (trace_find_pc_command): Rename to...
  707. (tfind_pc_command): ...this.
  708. (trace_find_tracepoint_command): Rename to...
  709. (tfind_tracepoint_command): ...this.
  710. (trace_find_line_command): Rename to...
  711. (tfind_line_command): ...this.
  712. (trace_find_range_command): Rename to...
  713. (tfind_range_command): ...this.
  714. (trace_find_outside_command): Rename to...
  715. (tfind_outside_command): ...this.
  716. (trace_dump_command): Rename to...
  717. (tdump_command): ...this.
  718. (tfind_1): Adjust to renames.
  719. (trace_find_end_command): Rename to...
  720. (tfind_end_command): ...this, and adjust to renames..
  721. (trace_status_mi): Adjust to renames.
  722. (parse_trace_status): Adjust to renames.
  723. (_initialize_tracepoint): Adjust to renames.
  724. * tracepoint.h (enum trace_stop_reason) <tstop_command>: Rename
  725. to...
  726. <trace_stop_command>: ...this.
  727. 2016-12-02 Simon Marchi <simon.marchi@ericsson.com>
  728. * mi/mi-out.c (mi_ui_out_data) <suppress_output>: Remove.
  729. (mi_table_body): Remove suppress_output check.
  730. (mi_table_end): Likewise.
  731. (mi_table_header): Likewise.
  732. (mi_begin): Likewise.
  733. (mi_end): Likewise.
  734. (mi_field_int): Likewise.
  735. (mi_field_string): Likewise.
  736. (mi_field_fmt): Likewise.
  737. (mi_out_data_ctor): Likewise.
  738. 2016-12-02 Yao Qi <yao.qi@linaro.org>
  739. Pedro Alves <palves@redhat.com>
  740. * aarch64-tdep.c (aarch64_analyze_prologue): Recognize STR
  741. instruction.
  742. (aarch64_analyze_prologue_test): More tests.
  743. 2016-12-02 Yao Qi <yao.qi@linaro.org>
  744. Pedro Alves <palves@redhat.com>
  745. * aarch64-tdep.c: Include "selftest.h".
  746. (abstract_instruction_reader): New class.
  747. (instruction_reader): New class.
  748. (aarch64_analyze_prologue): Add new parameter reader. Call
  749. reader.read instead of read_memory_unsigned_integer.
  750. [GDB_SELF_TEST] (instruction_reader_test): New class.
  751. (aarch64_analyze_prologue_test): New function.
  752. (_initialize_aarch64_tdep) [GDB_SELF_TEST]: Register
  753. selftests::aarch64_analyze_prologue_test.
  754. * trad-frame.c (trad_frame_cache_zalloc):
  755. (trad_frame_alloc_saved_regs): Add a new function.
  756. * trad-frame.h (trad_frame_alloc_saved_regs): Declare.
  757. 2016-12-01 Simon Marchi <simon.marchi@polymtl.ca>
  758. * ui-out.c (enum ui_out_table_state): Move to class
  759. ui_out_table as ui_out_table::state.
  760. (struct ui_out_table): Change to ...
  761. (class ui_out_table): ... this.
  762. <flag>: Remove.
  763. <entry_level>: Rename to ...
  764. <m_entry_level>: ... this.
  765. <columns>: Rename to ...
  766. <m_nr_cols>: ... this.
  767. <id>: Rename to ...
  768. <m_id>: ... this.
  769. <headers>: Rename to ...
  770. <m_headers>: ... this.
  771. <headers_iterator>: Rename to ...
  772. <m_headers_iterator>: ... this.
  773. <start_body, append_header, start_row, get_next_header,
  774. query_field, current_state, entry_level>: New methods.
  775. (struct ui_out) <table>: Change type to unique_ptr to
  776. ui_out_table.
  777. (append_header_to_list, get_next_header, clear_header_list,
  778. clear_table): Remove.
  779. (ui_out_table_begin): Instantiate ui_out_table object. Update
  780. table check.
  781. (ui_out_table_body): Update table check, replace code with call
  782. to ui_out_table::start_body.
  783. (ui_out_table_end): Update table check, replace manual cleanup
  784. with assignment of uiout->table unique_ptr to nullptr.
  785. (ui_out_table_header): Update table check, replace call to
  786. append_header_to_list with call to append_header method.
  787. (ui_out_begin): Remove one table state check, update another.
  788. Replace code with call to start_row method.
  789. (verify_field): Update table checks.
  790. (ui_out_query_field): Update table check, replace code with call
  791. to query_field method.
  792. (ui_out_new): Remove table initialization code.
  793. 2016-12-01 Simon Marchi <simon.marchi@polymtl.ca>
  794. * ui-out.c (enum ui_out_table_state): New enum.
  795. (struct ui_out_table) <body_flag>: Remove field.
  796. <state>: New field.
  797. (ui_out_table_begin): Replace usages of body_flag with state.
  798. (ui_out_table_body): Likewise.
  799. (ui_out_table_end): Likewise.
  800. (ui_out_table_header): Likewise.
  801. (ui_out_begin): Likewise.
  802. (verify_field): Likewise.
  803. (ui_out_new): Likewise.
  804. 2016-12-01 Simon Marchi <simon.marchi@polymtl.ca>
  805. * ui-out.h (ui_out_begin_ftype): Remove level parameter.
  806. (ui_out_end_ftype): Likewise.
  807. * ui-out.c (struct ui_out) <level>: Replace field with a method
  808. that dynamically computes the result.
  809. (current_level): Get vector's back item instead of using
  810. uiout->level.
  811. (push_level): Make return type void.
  812. (pop_level): Make return type void and update access to
  813. ui_out::level.
  814. (uo_begin): Remove level parameter.
  815. (uo_end): Likewise.
  816. (ui_out_table_begin): Update access to uiout::level.
  817. (ui_out_begin): Don't read return value from push_level, call
  818. uiout->level() instead, update call to uo_begin.
  819. (ui_out_end): Don't read return value from pop_level, update
  820. call to uo_end.
  821. (verify_field): Update access to uiout->level.
  822. (ui_out_new): Don't initialize ui_out::level, call push_level
  823. to push the initial level instead of doing it by hand.
  824. * cli-out.c (cli_begin): Remove level parameter.
  825. (cli_end): Likewise.
  826. * mi/mi-out.c (mi_begin): Likewise.
  827. (mi_end): Likewise.
  828. 2016-12-01 Simon Marchi <simon.marchi@polymtl.ca>
  829. * ui-out.c (struct ui_out_level): Replace with ...
  830. (class ui_out_level): ... this.
  831. (current_level): Update.
  832. (push_level): Update.
  833. (pop_level): Update.
  834. (verify_field): Update.
  835. (ui_out_new): Update.
  836. 2016-12-01 Simon Marchi <simon.marchi@polymtl.ca>
  837. * ui-out.c (struct ui_out_hdr): Replace with ...
  838. (class ui_out_hdr): ... this.
  839. (append_header_to_list): Update.
  840. (get_next_header): Update.
  841. (ui_out_query_field): Update.
  842. 2016-12-01 Simon Marchi <simon.marchi@polymtl.ca>
  843. * mi/mi-out.c (mi_table_header): Change char * args to
  844. std::string.
  845. * cli-out.c (cli_table_header): Likewise.
  846. * ui-out.h (table_header_ftype): Likewise.
  847. (ui_out_table_header): Constify colhdr argument.
  848. (ui_out_query_field): Constify col_name argument.
  849. * ui-out.c (ui_out_hdr) <col_name, colhdr>: Change type to
  850. std::string.
  851. (uo_table_header): Change char * args to std::string.
  852. (ui_out_table_header): Likewise.
  853. (get_next_header): Constify colhdr argument and adapt.
  854. (clear_header_list): Don't free col_name/colhdr fields.
  855. (append_header_to_list): Change char * args to std::string and
  856. adapt.
  857. (verify_field): Constify variable.
  858. (ui_out_query_field): Constify col_name argument and adapt.
  859. * breakpoint.c (wrap_indent_at_field): Constify variable.
  860. 2016-12-01 Simon Marchi <simon.marchi@polymtl.ca>
  861. * ui-out.c (struct ui_out_hdr) <next>: Remove.
  862. (struct ui_out_table) <header_first, header_last, header_next>: Remove.
  863. <headers, headers_iterator>: New fields.
  864. (ui_out_table_body): Update for the new data structure.
  865. (ui_out_begin): Likewise.
  866. (clear_header_list): Likewise.
  867. (append_header_to_list): Likewise.
  868. (get_next_header): Likewise.
  869. (ui_out_query_field): Likewise.
  870. (ui_out_new): Likewise.
  871. 2016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
  872. * ui-out.c (struct ui_out_table) <id>: Change type to
  873. std::string.
  874. (ui_out_table_begin): Change tblid parameter type to
  875. std::string, adapt code.
  876. update following type change.
  877. (clear_table): Update.
  878. (ui_out_new): Update.
  879. 2016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
  880. * cli-out.h (cli_ui_out_data) <streams>: Change type to
  881. std::vector.
  882. * cli-out.c: Remove vec.h include.
  883. (cli_uiout_dtor): Update.
  884. (cli_field_fmt): Update.
  885. (cli_spaces): Update.
  886. (cli_text): Update.
  887. (cli_message): Update.
  888. (cli_flush): Update.
  889. (cli_redirect): Update.
  890. (out_field_fmt): Update.
  891. (field_separator): Update.
  892. (cli_out_data_ctor): Update.
  893. (cli_out_new): Update.
  894. (cli_out_set_stream): Update.
  895. 2016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
  896. * mi/mi-out.c: Remove vec.h include.
  897. (mi_ui_out_data) <streams>: Change type to std::vector.
  898. (mi_field_string): Update.
  899. (mi_field_fmt): Update.
  900. (mi_flush): Update.
  901. (mi_redirect): Update.
  902. (field_separator): Update.
  903. (mi_open): Update.
  904. (mi_close): Update.
  905. (mi_out_buffered): Update.
  906. (mi_out_rewind): Update.
  907. (mi_out_put): Update.
  908. (mi_out_data_ctor): Update.
  909. (mi_out_data_dtor): Don't free streams.
  910. 2016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
  911. * ui-out.c (ui_out_level_p): Remove typedef.
  912. (DEF_VEC_P (ui_out_level_p)): Remove definition.
  913. (struct ui_out) <levels>: Change type to vector of unique_ptr of
  914. ui_out_level.
  915. (current_level): Update.
  916. (push_level): Update.
  917. (pop_level): Update, don't manually delete the ui_out_level
  918. instance.
  919. (ui_out_new): Update.
  920. 2016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
  921. * cli-out.c (cli_uiout_dtor): Use delete instead of xfree.
  922. (cli_out_new): Use new instead of XNEW.
  923. * mi/mi-out.c (mi_out_data_dtor): Use delete instead of xfree.
  924. (mi_out_new): Use new instead of XNEW.
  925. * tui/tui-out.c (tui_out_new): Likewise.
  926. * ui-out.c (push_level): Likewise.
  927. (pop_level): Use delete instead of xfree.
  928. (clear_header_list): Use delete instead of xfree.
  929. (append_header_to_list): Use new instead of XNEW.
  930. (ui_out_new): Likewise.
  931. 2016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
  932. * disable-implicit-rules.mk: New file.
  933. * Makefile.in: Include disable-implicit-rules.mk.
  934. * data-directory/Makefile.in: Likewise.
  935. * gnulib/Makefile.in: Likewise.
  936. 2016-11-30 Yao Qi <yao.qi@linaro.org>
  937. * arm-tdep.c (arm_scan_prologue): Read memory as unsigned integer.
  938. (arm_exidx_unwind_sniffer): Likewise.
  939. 2016-11-28 Simon Marchi <simon.marchi@polymtl.ca>
  940. * record-full.c (record_full_open_1): Fix debug output.
  941. 2016-11-26 Simon Marchi <simon.marchi@polymtl.ca>
  942. * mi/mi-out.c (mi_message): Remove verbosity argument.
  943. * ada-tasks.c (print_ada_task_info, info_task, task_command):
  944. Update call.
  945. * auto-load.c (auto_load_info_scripts): Likewise.
  946. * breakpoint.c (breakpoint_1, watchpoints_info, tracepoints_info):
  947. Likewise.
  948. * cli-out.c (cli_message): Remove verbosity argument.
  949. * inferior.c (print_inferior): Update call.
  950. * linux-thread-db.c (info_auto_load_libthread_db): Likewise.
  951. * probe.c (info_probes_for_ops): Likewise.
  952. * skip.c (skip_info): Likewise.
  953. * solib.c (info_sharedlibrary_command): Likewise.
  954. * symfile.c (load_progress): Likewise.
  955. * thread.c (print_thread_info_1): Likewise.
  956. * ui-out.c (uo_message, ui_out_message): Remove verbosity argument.
  957. (ui_out_get_verblvl): Remove.
  958. * ui-out.h (ui_out_message): Remove verbosity argument.
  959. (ui_out_get_verblvl): Remove.
  960. (message_ftype): Remove verbosity argument.
  961. 2016-11-26 Simon Marchi <simon.marchi@polymtl.ca>
  962. * mi/mi-out.c (mi_wrap_hint): Constify argument.
  963. * cli-out.c (cli_wrap_hint): Likewise.
  964. * ui-out.c (ui_out_wrap_hint, uo_wrap_hint): Likewise.
  965. * ui-out.h (ui_out_wrap_hint, wrap_hint_ftype): Likewise.
  966. * utils.c (wrap_here): Likewise.
  967. (wrap_indent): Constify.
  968. * utils.h (wrap_here): Constify argument.
  969. 2016-11-26 Simon Marchi <simon.marchi@polymtl.ca>
  970. * ui-out.c (uo_redirect): Return the return value from the
  971. implementation function.
  972. 2016-11-26 Simon Marchi <simon.marchi@polymtl.ca>
  973. * ui-out.c (ui_out_destroy, uo_data_destroy): Remove.
  974. * ui-out.h (ui_out_destroy): Remove.
  975. 2016-11-26 Simon Marchi <simon.marchi@polymtl.ca>
  976. * mi/mi-out.c (ui_out_data): Rename to ...
  977. (mi_ui_out_data): ... this.
  978. 2016-11-26 Simon Marchi <simon.marchi@polymtl.ca>
  979. * ui-out.c (_initialize_ui_out): Remove.
  980. (ui_out_set_flags): Remove.
  981. (ui_out_clear_flags): Remove.
  982. * ui-out.h (ui_out_begin_cleanup_end): Remove.
  983. (ui_out_begin_cleanup_end): Remove.
  984. (ui_out_set_flags): Remove.
  985. (ui_out_clear_flags): Remove.
  986. * mi/mi-out.c (_initialize_mi_out): Remove.
  987. (mi_out_buffered): Remove.
  988. * mi/mi-out.h (mi_out_buffered): Remove.
  989. 2016-11-26 Simon Marchi <simon.marchi@polymtl.ca>
  990. * ui-out.h (struct ui_out_impl): Remove comment.
  991. * ui-out.c (struct ui_out): Remove comment.
  992. 2016-11-25 John Baldwin <jhb@FreeBSD.org>
  993. * contrib/ari/gdb_ari.sh (no parameter function): Remove check.
  994. 2016-11-25 Simon Marchi <simon.marchi@ericsson.com>
  995. * Makefile.in: Fix typo.
  996. 2016-11-25 Simon Marchi <simon.marchi@ericsson.com>
  997. * record-full.c (record_full_resume): Fix typos in comment.
  998. 2016-11-25 Simon Marchi <simon.marchi@ericsson.com>
  999. * infcmd.c (interrupt_command): Fix typo in comment.
  1000. 2016-11-24 John Baldwin <jhb@FreeBSD.org>
  1001. * ada-lang.c (create_excep_cond_exprs): Do not use 'std::move'.
  1002. * ax-gdb.c (agent_eval_command_one): Likewise.
  1003. (agent_eval_command_one): Likewise.
  1004. * breakpoint.c (parse_cond_to_aexpr): Likewise.
  1005. (parse_cmd_to_aexpr): Likewise.
  1006. * dtrace-probe.c (dtrace_process_dof_probe): Likewise.
  1007. * parse.c (parse_expression_for_completion): Likewise.
  1008. 2016-11-24 John Baldwin <jhb@FreeBSD.org>
  1009. * common/new-op.c (operator new): Mark 'noexcept'.
  1010. (operator new[]): Likewise.
  1011. 2016-11-24 Andreas Arnez <arnez@linux.vnet.ibm.com>
  1012. * dwarf2loc.c (copy_bitwise): Use memcpy for the middle part, if
  1013. it is byte-aligned.
  1014. 2016-11-24 Andreas Arnez <arnez@linux.vnet.ibm.com>
  1015. Pedro Alves <palves@redhat.com>
  1016. * dwarf2loc.c (bits_to_str, check_copy_bitwise)
  1017. (copy_bitwise_tests): New functions.
  1018. (_initialize_dwarf2loc): Register the new function
  1019. copy_bitwise_tests as a unit test.
  1020. * selftest.c (run_self_tests): Improve the failure message's
  1021. wording and formatting.
  1022. 2016-11-24 Andreas Arnez <arnez@linux.vnet.ibm.com>
  1023. * dwarf2loc.c (extract_bits_primitive): Remove.
  1024. (extract_bits): Remove.
  1025. (copy_bitwise): Rewrite. Fixes a possible corruption that may
  1026. occur for non-byte-aligned copies.
  1027. 2016-11-24 Andreas Arnez <arnez@linux.vnet.ibm.com>
  1028. PR gdb/12616
  1029. * dwarf2read.c (dwarf2_add_field): Handle the DWARF V4 attribute
  1030. DW_AT_data_bit_offset.
  1031. 2016-11-23 Pedro Alves <palves@redhat.com>
  1032. * Makefile.in (SFILES): Add common/run-time-clock.c.
  1033. (HFILES_NO_SRCDIR): Add common/run-time-clock.h.
  1034. (COMMON_OBS): Add run-time-clock.o.
  1035. * common/run-time-clock.c, common/run-time-clock.h: New files.
  1036. * defs.h (struct timeval, print_transfer_performance): Delete
  1037. declarations.
  1038. * event-loop.c (struct gdb_timer) <when>: Now a
  1039. std::chrono::steady_clock::time_point.
  1040. (create_timer): use std::chrono::steady_clock instead of
  1041. gettimeofday. Use new instead of malloc.
  1042. (delete_timer): Use delete instead of xfree.
  1043. (duration_cast_timeval): New.
  1044. (update_wait_timeout): Use std::chrono::steady_clock instead of
  1045. gettimeofday.
  1046. * maint.c: Include <chrono> instead of "gdb_sys_time.h", <time.h>
  1047. and "timeval-utils.h".
  1048. (scoped_command_stats::~scoped_command_stats)
  1049. (scoped_command_stats::scoped_command_stats): Use
  1050. std::chrono::steady_clock instead of gettimeofday. Use
  1051. user_cpu_time_clock instead of get_run_time.
  1052. * maint.h: Include "run-time-clock.h" and <chrono>.
  1053. (scoped_command_stats): <m_start_cpu_time>: Now a
  1054. user_cpu_time_clock::time_point.
  1055. <m_start_wall_time>: Now a std::chrono::steady_clock::time_point.
  1056. * mi/mi-main.c: Include "run-time-clock.h" and <chrono> instead of
  1057. "gdb_sys_time.h" and <sys/resource.h>.
  1058. (rusage): Delete.
  1059. (mi_execute_command): Use new instead of XNEW.
  1060. (mi_load_progress): Use std::chrono::steady_clock instead of
  1061. gettimeofday.
  1062. (timestamp): Rewrite in terms of std::chrono::steady_clock,
  1063. user_cpu_time_clock and system_cpu_time_clock.
  1064. (timeval_diff): Delete.
  1065. (print_diff): Adjust to use std::chrono::steady_clock,
  1066. user_cpu_time_clock and system_cpu_time_clock.
  1067. * mi/mi-parse.h: Include "run-time-clock.h" and <chrono> instead
  1068. of "gdb_sys_time.h".
  1069. (struct mi_timestamp): Change fields types to
  1070. std::chrono::steady_clock::time_point, user_cpu_time_clock::time
  1071. and system_cpu_time_clock::time_point, instead of struct timeval.
  1072. * symfile.c: Include <chrono> instead of <time.h> and
  1073. "gdb_sys_time.h".
  1074. (struct time_range): New.
  1075. (generic_load): Use std::chrono::steady_clock instead of
  1076. gettimeofday.
  1077. (print_transfer_performance): Replace timeval parameters with a
  1078. std::chrono::steady_clock::duration parameter. Adjust.
  1079. * utils.c: Include <chrono> instead of "timeval-utils.h",
  1080. "gdb_sys_time.h", and <time.h>.
  1081. (prompt_for_continue_wait_time): Now a
  1082. std::chrono::steady_clock::duration.
  1083. (defaulted_query, prompt_for_continue): Use
  1084. std::chrono::steady_clock instead of
  1085. gettimeofday/timeval_sub/timeval_add.
  1086. (reset_prompt_for_continue_wait_time): Use
  1087. std::chrono::steady_clock::duration instead of struct timeval.
  1088. (get_prompt_for_continue_wait_time): Return a
  1089. std::chrono::steady_clock::duration instead of struct timeval.
  1090. (vfprintf_unfiltered): Use std::chrono::steady_clock instead of
  1091. gettimeofday. Use std::string. Use '.' instead of ':'.
  1092. * utils.h: Include <chrono>.
  1093. (get_prompt_for_continue_wait_time): Return a
  1094. std::chrono::steady_clock::duration instead of struct timeval.
  1095. 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
  1096. * Makefile.in: Fix whitespace formatting.
  1097. 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
  1098. * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS,
  1099. HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
  1100. * alphabsd-nat.c: Rename to ...
  1101. * alpha-bsd-nat.c: ... this, adjust include.
  1102. * alphabsd-tdep.c: Rename to ...
  1103. * alpha-bsd-tdep.c: ... this, adjust include.
  1104. * alphabsd-tdep.h: Rename to ...
  1105. * alpha-bsd-tdep.h: ... this, adjust include barrier and comment.
  1106. * alphafbsd-tdep.c: Rename to ...
  1107. * alpha-fbsd-tdep.c: ... this.
  1108. * alphanbsd-tdep.c: Rename to ...
  1109. * alpha-nbsd-tdep.c: ... this, adjust include.
  1110. * alphaobsd-tdep.c: Rename to ...
  1111. * alpha-obsd-tdep.c: ... this, adjust include.
  1112. * amd64bsd-nat.c: Rename to ...
  1113. * amd64-bsd-nat.c: ... this, adjust include.
  1114. * amd64fbsd-nat.c: Rename to ...
  1115. * amd64-fbsd-nat.c: ... this, adjust include.
  1116. * amd64fbsd-tdep.c: Rename to ...
  1117. * amd64-fbsd-tdep.c: ... this, adjust include.
  1118. * amd64nbsd-nat.c: Rename to ...
  1119. * amd64-nbsd-nat.c: ... this.
  1120. * amd64nbsd-tdep.c: Rename to ...
  1121. * amd64-nbsd-tdep.c: ... this.
  1122. * amd64obsd-nat.c: Rename to ...
  1123. * amd64-obsd-nat.c: ... this.
  1124. * amd64obsd-tdep.c: Rename to ...
  1125. * amd64-obsd-tdep.c: ... this.
  1126. * amd64-tdep.h: Update comments.
  1127. * armbsd-tdep.c: Rename to ...
  1128. * arm-bsd-tdep.c: ... this.
  1129. * armnbsd-nat.c: Rename to ...
  1130. * arm-nbsd-nat.c: ... this.
  1131. * armnbsd-tdep.c: Rename to ...
  1132. * arm-nbsd-tdep.c: ... this.
  1133. * armobsd-tdep.c: Rename to ...
  1134. * arm-obsd-tdep.c: ... this.
  1135. * arm-tdep.h: Update comments.
  1136. * hppabsd-tdep.c: Rename to ...
  1137. * hppa-bsd-tdep.c: ... this, adjust include.
  1138. * hppabsd-tdep.h: Rename to ...
  1139. * hppa-bsd-tdep.h: ... this, adjust include barrier and comment.
  1140. * hppanbsd-nat.c: Rename to ...
  1141. * hppa-nbsd-nat.c: ... this.
  1142. * hppanbsd-tdep.c: Rename to ...
  1143. * hppa-nbsd-tdep.c: ... this, adjust include.
  1144. * hppaobsd-nat.c: Rename to ...
  1145. * hppa-obsd-nat.c: ... this.
  1146. * hppaobsd-tdep.c: Rename to ...
  1147. * hppa-obsd-tdep.c: ... this, adjust include.
  1148. * i386bsd-nat.c: Rename to ...
  1149. * i386-bsd-nat.c: ... this, adjust include.
  1150. * i386bsd-nat.h: Rename to ...
  1151. * i386-bsd-nat.h: ... this, adjust include barrier and comment.
  1152. * i386bsd-tdep.c: Rename to ...
  1153. * i386-bsd-tdep.c: ... this.
  1154. * i386fbsd-nat.c: Rename to ...
  1155. * i386-fbsd-nat.c: ... this, adjust include.
  1156. * i386fbsd-tdep.c: Rename to ...
  1157. * i386-fbsd-tdep.c: ... this, adjust include.
  1158. * i386fbsd-tdep.h: Rename to ...
  1159. * i386-fbsd-tdep.h: ... this, adjust include barrier and comment.
  1160. * i386gnu-nat.c: Rename to ...
  1161. * i386-gnu-nat.c: ... this.
  1162. * i386gnu-tdep.c: Rename to ...
  1163. * i386-gnu-tdep.c: ... this.
  1164. * i386nbsd-nat.c: Rename to ...
  1165. * i386-nbsd-nat.c: ... this, adjust include.
  1166. * i386nbsd-tdep.c: Rename to ...
  1167. * i386-nbsd-tdep.c: ... this.
  1168. * i386obsd-nat.c: Rename to ...
  1169. * i386-obsd-nat.c: ... this, adjust include.
  1170. * i386obsd-tdep.c: Rename to ...
  1171. * i386-obsd-tdep.c: ... this.
  1172. * i386v4-nat.c: Rename to ...
  1173. * i386-v4-nat.c: ... this.
  1174. * i386-tdep.h: Update comments.
  1175. * m68k-tdep.h: Update comments.
  1176. * m68kbsd-nat.c: Rename to ...
  1177. * m68k-bsd-nat.c: ... this.
  1178. * m68kbsd-tdep.c: Rename to ...
  1179. * m68k-bsd-tdep.c: ... this.
  1180. * m68klinux-nat.c: Rename to ...
  1181. * m68k-linux-nat.c: ... this.
  1182. * m68klinux-tdep.c: Rename to ...
  1183. * m68k-linux-tdep.c: ... this.
  1184. * m88kbsd-nat.c: Rename to ...
  1185. * m88k-bsd-nat.c: ... this.
  1186. * mipsnbsd-nat.c: Rename to ...
  1187. * mips-nbsd-nat.c: ... this, adjust include.
  1188. * mipsnbsd-tdep.c: Rename to ...
  1189. * mips-nbsd-tdep.c: ... this, adjust include.
  1190. * mipsnbsd-tdep.h: Rename to ...
  1191. * mips-nbsd-tdep.h: ... this, adjust include barrier and comment.
  1192. * mips64obsd-nat.c: Rename to ...
  1193. * mips64-obsd-nat.c: ... this.
  1194. * mips64obsd-tdep.c: Rename to ...
  1195. * mips64-obsd-tdep.c: ... this.
  1196. * ppcfbsd-nat.c: Rename to ...
  1197. * ppc-fbsd-nat.c: ... this, adjust include.
  1198. * ppcfbsd-tdep.c: Rename to ...
  1199. * ppc-fbsd-tdep.c: ... this, adjust include.
  1200. * ppcfbsd-tdep.h: Rename to ...
  1201. * ppc-fbsd-tdep.h: ... this, adjust include barrier and comment.
  1202. * ppcnbsd-nat.c: Rename to ...
  1203. * ppc-nbsd-nat.c: ... this, adjust include.
  1204. * ppcnbsd-tdep.c: Rename to ...
  1205. * ppc-nbsd-tdep.c: ... this, adjust include.
  1206. * ppcnbsd-tdep.h: Rename to ...
  1207. * ppc-nbsd-tdep.h: ... this, adjust include barrier and comment.
  1208. * ppcobsd-nat.c: Rename to ...
  1209. * ppc-obsd-nat.c: ... this, adjust include.
  1210. * ppcobsd-tdep.c: Rename to ...
  1211. * ppc-obsd-tdep.c: ... this, adjust include.
  1212. * ppcobsd-tdep.h: Rename to ...
  1213. * ppc-obsd-tdep.h: ... this, adjust include barrier and comment.
  1214. * shnbsd-nat.c: Rename to ...
  1215. * sh-nbsd-nat.c: ... this.
  1216. * shnbsd-tdep.c: Rename to ...
  1217. * sh-nbsd-tdep.c: ... this.
  1218. * sparcnbsd-nat.c: Rename to ...
  1219. * sparc-nbsd-nat.c: ... this.
  1220. * sparcnbsd-tdep.c: Rename to ...
  1221. * sparc-nbsd-tdep.c: ... this.
  1222. * sparcobsd-tdep.c: Rename to ...
  1223. * sparc-obsd-tdep.c: ... this.
  1224. * sparc64fbsd-nat.c: Rename to ...
  1225. * sparc64-fbsd-nat.c: ... this.
  1226. * sparc64fbsd-tdep.c: Rename to ...
  1227. * sparc64-fbsd-tdep.c: ... this.
  1228. * sparc64nbsd-nat.c: Rename to ...
  1229. * sparc64-nbsd-nat.c: ... this.
  1230. * sparc64nbsd-tdep.c: Rename to ...
  1231. * sparc64-nbsd-tdep.c: ... this.
  1232. * sparc64obsd-nat.c: Rename to ...
  1233. * sparc64-obsd-nat.c: ... this.
  1234. * sparc64obsd-tdep.c: Rename to ...
  1235. * sparc64-obsd-tdep.c: ... this.
  1236. * sparc64-tdep.h: Update comments.
  1237. * vaxbsd-nat.c: Rename to ...
  1238. * vax-bsd-nat.c: ... this.
  1239. * vaxnbsd-tdep.c: Rename to ...
  1240. * vax-nbsd-tdep.c: ... this.
  1241. * vaxobsd-tdep.c: Rename to ...
  1242. * vax-obsd-tdep.c: ... this.
  1243. * x86bsd-nat.h: Rename to ...
  1244. * x86-bsd-nat.h: ... this, adjust include barrier and comment.
  1245. * x86bsd-nat.c: Rename to ...
  1246. * x86-bsd-nat.c: ... this, adjust include.
  1247. * configure.tgt: Update renamed files.
  1248. * config/alpha/fbsd.mh: Update renamed files.
  1249. * config/alpha/nbsd.mh: Update renamed files.
  1250. * config/arm/nbsdelf.mh: Update renamed files.
  1251. * config/djgpp/fnchange.lst: Update renamed files.
  1252. * config/i386/fbsd.mh: Update renamed files.
  1253. * config/i386/fbsd64.mh: Update renamed files.
  1254. * config/i386/i386gnu.mh: Update renamed files.
  1255. * config/i386/i386sol2.mh: Update renamed files.
  1256. * config/i386/nbsd64.mh: Update renamed files.
  1257. * config/i386/nbsdelf.mh: Update renamed files.
  1258. * config/i386/obsd.mh: Update renamed files.
  1259. * config/i386/obsd64.mh: Update renamed files.
  1260. * config/i386/sol2-64.mh: Update renamed files.
  1261. * config/m68k/linux.mh: Update renamed files.
  1262. * config/m68k/nbsdelf.mh: Update renamed files.
  1263. * config/m68k/obsd.mh: Update renamed files.
  1264. * config/m88k/obsd.mh: Update renamed files.
  1265. * config/mips/nbsd.mh: Update renamed files.
  1266. * config/mips/obsd64.mh: Update renamed files.
  1267. * config/pa/nbsd.mh: Update renamed files.
  1268. * config/pa/obsd.mh: Update renamed files.
  1269. * config/powerpc/fbsd.mh: Update renamed files.
  1270. * config/powerpc/nbsd.mh: Update renamed files.
  1271. * config/powerpc/obsd.mh: Update renamed files.
  1272. * config/sh/nbsd.mh: Update renamed files.
  1273. * config/sparc/fbsd.mh: Update renamed files.
  1274. * config/sparc/nbsd64.mh: Update renamed files.
  1275. * config/sparc/nbsdelf.mh: Update renamed files.
  1276. * config/sparc/obsd64.mh: Update renamed files.
  1277. * config/vax/nbsdelf.mh: Update renamed files.
  1278. * config/vax/obsd.mh: Update renamed files.
  1279. 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
  1280. * Makefile.in: Add comment about file lists ordering.
  1281. (SUBDIR_CLI_OBS, SUBDIR_CLI_SRCS, SUBDIR_MI_OBS, SUBDIR_MI_SRCS,
  1282. SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS, SUBDIR_GCC_COMPILE_OBS,
  1283. SUBDIR_GCC_COMPILE_SRCS, SUBDIR_GUILE_OBS, SUBDIR_GUILE_SRCS,
  1284. SUBDIR_PYTHON_OBS, SUBDIR_PYTHON_SRCS, SUBDIR_GDBTK_OBS,
  1285. SUBDIR_GDBTK_SRCS, XMLFILES, REMOTE_OBS, ALL_64_TARGET_OBS,
  1286. ALL_TARGET_OBS, SFILES, HFILES_NO_SRCDIR, HFILES_WITH_SRCDIR,
  1287. COMMON_OBS, YYFILES, YYOBJ, generated_files, ALLDEPFILES):
  1288. Flatten list and order alphabetically.
  1289. * data-directory/Makefile.in: Add comment about file lists
  1290. ordering.
  1291. (GEN_SYSCALLS_FILES, PYTHON_FILE_LIST): Flatten list and order
  1292. alphabetically.
  1293. 2016-11-22 Ambrogino Modigliani <ambrogino.modigliani@gmail.com>
  1294. * contrib/expect-read1.sh: Fix spelling in comments.
  1295. * gdb_buildall.sh: Fix spelling in comments.
  1296. * gdb_mbuild.sh: Fix spelling in comments.
  1297. 2016-11-22 Ambrogino Modigliani <ambrogino.modigliani@gmail.com>
  1298. * configure.ac: Fix spelling in comments.
  1299. * configure: Regenerate.
  1300. 2016-11-22 Yao Qi <yao.qi@linaro.org>
  1301. * gdbarch.sh (software_single_step): Change parameter from frame_info
  1302. to regcache.
  1303. * gdbarch.c, gdbarch.h: Regenerated.
  1304. * aarch64-tdep.c (aarch64_software_single_step): Change parameter
  1305. from frame_info to regcache. Don't call get_current_regcache.
  1306. * alpha-tdep.c (alpha_deal_with_atomic_sequence): Likewise.
  1307. (alpha_software_single_step): Likewise.
  1308. * alpha-tdep.h (alpha_software_single_step): Update declaration.
  1309. * arm-linux-tdep.c (arm_linux_software_single_step): Likewise.
  1310. * arm-tdep.c (arm_software_single_step): Likewise.
  1311. * arm-tdep.h (arm_software_single_step): Likewise.
  1312. * breakpoint.c (insert_single_step_breakpoint): Pass regcache to
  1313. gdbarch_software_single_step.
  1314. * cris-tdep.c (cris_software_single_step): Change parameter from
  1315. frame_info to regcache. Don't call get_current_regcache.
  1316. * mips-tdep.c (mips_software_single_step): Likewise.
  1317. * mips-tdep.h (mips_software_single_step): Update declaration.
  1318. * moxie-tdep.c (moxie_software_single_step): Likewise.
  1319. * nios2-tdep.c (nios2_software_single_step): Likewise.
  1320. * ppc-tdep.h (ppc_deal_with_atomic_sequence): Update declaration.
  1321. * rs6000-aix-tdep.c (rs6000_software_single_step): Likewise.
  1322. * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Likewise.
  1323. * s390-linux-tdep.c (s390_software_single_step): Likewise.
  1324. * sparc-tdep.c (sparc_software_single_step): Likewise.
  1325. * spu-tdep.c (spu_software_single_step): Likewise.
  1326. * tic6x-tdep.c (tic6x_software_single_step): Likewise.
  1327. 2016-11-22 Yao Qi <yao.qi@linaro.org>
  1328. * spu-tdep.c (spu_software_single_step): Call get_regcache_arch
  1329. instead of get_frame_arch. Call regcache_read_pc instead of
  1330. get_frame_pc. Call regcache_raw_get_unsigned instead of
  1331. get_frame_register_unsigned.
  1332. 2016-11-22 Yao Qi <yao.qi@linaro.org>
  1333. * tic6x-tdep.c (tic6x_condition_true): Replace frame with
  1334. regcache. Call regcache_raw_get_signed instead of
  1335. get_frame_register_signed.
  1336. (tic6x_get_next_pc): Likewise. Caller updated.
  1337. 2016-11-22 Yao Qi <yao.qi@linaro.org>
  1338. * rs6000-aix-tdep.c (branch_dest): Replace parameter frame with
  1339. regcache. Call get_regcache_arch instead of get_frame_arch.
  1340. Call regcache_raw_get_unsigned instead of
  1341. get_frame_register_unsigned.
  1342. (rs6000_software_single_step): Likewise.
  1343. * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Call
  1344. get_regcache_arch instead of get_frame_arch. Call
  1345. regcache_read_pc instead of get_frame_pc.
  1346. 2016-11-22 Yao Qi <yao.qi@linaro.org>
  1347. * s390-linux-tdep.c (s390_software_single_step): Call
  1348. get_regcache_arch instead of get_frame_arch. Call
  1349. regcache_read_pc instead of get_frame_pc.
  1350. 2016-11-22 Yao Qi <yao.qi@linaro.org>
  1351. * sparc-tdep.c (sparc_analyze_control_transfer): Replace parameter
  1352. frame with regcache. Call get_current_frame.
  1353. (sparc_software_single_step): Call get_regcache_arch instead of
  1354. get_frame_arch. Call regcache_raw_get_unsigned instead of
  1355. get_frame_register_unsigned.
  1356. 2016-11-22 Yao Qi <yao.qi@linaro.org>
  1357. * nios2-tdep.c (nios2_get_next_pc): Replace parameter frame
  1358. with regcache. Call regcache_raw_get_signed instead of
  1359. get_frame_register_unsigned.
  1360. (nios2_software_single_step): Call get_regcache_arch
  1361. instead of get_frame_arch.
  1362. 2016-11-22 Yao Qi <yao.qi@linaro.org>
  1363. * moxie-tdep.c (moxie_software_single_step): Call
  1364. get_regcache_arch instead of get_frame_arch. Call
  1365. regcache_read_pc instead of get_frame_pc.
  1366. 2016-11-22 Yao Qi <yao.qi@linaro.org>
  1367. * mips-tdep.c (mips32_bc1_pc): Replace parameter frame with
  1368. regcache. Call regcache_raw_get_unsigned instead of
  1369. get_frame_register_unsigned.
  1370. (mips32_next_pc): Likewise.
  1371. (micromips_bc1_pc): Likewise.
  1372. (micromips_next_pc): Likewise.
  1373. (extended_mips16_next_pc): Likewise.
  1374. (mips16_next_pc): Likewise.
  1375. (mips_next_pc): Likewise.
  1376. (mips_software_single_step): Call get_regcache_arch instead
  1377. of get_frame_arch.
  1378. 2016-11-22 Yao Qi <yao.qi@linaro.org>
  1379. * cris-tdep.c (find_step_target): Replace parameter frame
  1380. with regcache. Call get_regcache_arch instead of
  1381. get_frame_arch. Call regcache_raw_get_unsigned instead of
  1382. get_frame_register_unsigned.
  1383. (cris_software_single_step): Call get_regcache_arch instead
  1384. of get_frame_arch.
  1385. 2016-11-22 Yao Qi <yao.qi@linaro.org>
  1386. * alpha-tdep.c (alpha_deal_with_atomic_sequence): Call
  1387. get_regcache_arch instead of get_frame_arch. Call
  1388. regcache_read_pc instead of get_frame_pc.
  1389. (alpha_next_pc): Replace parameter frame with regcache.
  1390. Call regcache_raw_get_unsigned instead of
  1391. get_frame_register_unsigned.
  1392. 2016-11-22 Yao Qi <yao.qi@linaro.org>
  1393. * aarch64-tdep.c (aarch64_software_single_step): Call
  1394. get_regcache_arch instead of get_frame_arch. Call
  1395. regcache_read_pc instead of get_frame_pc.
  1396. 2016-11-22 Yao Qi <yao.qi@linaro.org>
  1397. * regcache.c (regcache_raw_get_signed): New function.
  1398. * regcache.h (regcache_raw_get_signed): Declare.
  1399. 2016-11-22 Yao Qi <yao.qi@linaro.org>
  1400. * value.c (value_from_component): Use VALUE_NEXT_FRAME_ID
  1401. instead of VALUE_FROM_ID.
  1402. 2016-11-21 Simon Marchi <simon.marchi@ericsson.com>
  1403. * Makefile.in (%o: $(srcdir)/mi/%.c): Add missing POSTCOMPILE
  1404. step.
  1405. 2016-11-21 Yao Qi <yao.qi@linaro.org>
  1406. * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
  1407. Don't call value_from_contents_and_address and
  1408. set_value_address. Call value_from_component.
  1409. * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer):
  1410. Likewise.
  1411. * value.c (value_from_component): New function.
  1412. * value.h (value_from_component): Likewise.
  1413. * valarith.c (value_subscripted_rvalue): Call
  1414. value_from_component.
  1415. 2016-11-19 Joel Brobecker <brobecker@adacore.com>
  1416. * contrib/ari/gdb_ari.sh: Add detection of printf_vma and
  1417. sprintf_vma.
  1418. 2016-11-18 Simon Marchi <simon.marchi@polymtl.ca>
  1419. * Makefile.in (%.o: $(srcdir)/gdbtk/generic/%.c): Fix typo.
  1420. 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
  1421. (PYTHON_CFLAGS): Move up.
  1422. (%.o: $(srcdir)/arch/%.c): New rule.
  1423. (%.o: $(srcdir)/cli/%.c): New rule.
  1424. (%.o: $(srcdir)/common/%.c): New rule.
  1425. (%.o: $(srcdir)/compile/%.c): New rule.
  1426. (%.o: $(srcdir)/gdbtk/generic/%.c): New rule.
  1427. (%.o: $(srcdir)/guile/%.c): New rule.
  1428. (%.o: $(srcdir)/mi/%.c): New rule.
  1429. (%.o: $(srcdir)/nat/%.c): New rule.
  1430. (%.o: $(srcdir)/python/%.c): New rule.
  1431. (%.o: $(srcdir)/target/%.c): New rule.
  1432. (%.o: $(srcdir)/tui/%.c): New rule.
  1433. (cli-cmds.o): Remove.
  1434. (cli-decode.o): Likewise.
  1435. (cli-dump.o): Likewise.
  1436. (cli-interp.o): Likewise.
  1437. (cli-logging.o): Likewise.
  1438. (cli-script.o): Likewise.
  1439. (cli-setshow.o): Likewise.
  1440. (cli-utils.o): Likewise.
  1441. (compile.o): Likewise.
  1442. (compile-c-types.o): Likewise.
  1443. (compile-c-symbols.o): Likewise.
  1444. (compile-object-load.o): Likewise.
  1445. (compile-object-run.o): Likewise.
  1446. (compile-loc2c.o): Likewise.
  1447. (compile-c-support.o): Likewise.
  1448. (gdbtk.o): Likewise.
  1449. (gdbtk-bp.o): Likewise.
  1450. (gdbtk-cmds.o): Likewise.
  1451. (gdbtk-hooks.o): Likewise.
  1452. (gdbtk-interp.o): Likewise.
  1453. (gdbtk-main.o): Likewise.
  1454. (gdbtk-register.o): Likewise.
  1455. (gdbtk-stack.o): Likewise.
  1456. (gdbtk-varobj.o): Likewise.
  1457. (gdbtk-wrapper.o): Likewise.
  1458. (mi-cmd-break.o): Likewise.
  1459. (mi-cmd-catch.o): Likewise.
  1460. (mi-cmd-disas.o): Likewise.
  1461. (mi-cmd-env.o): Likewise.
  1462. (mi-cmd-file.o): Likewise.
  1463. (mi-cmd-info.o): Likewise.
  1464. (mi-cmds.o): Likewise.
  1465. (mi-cmd-stack.o): Likewise.
  1466. (mi-cmd-target.o): Likewise.
  1467. (mi-cmd-var.o): Likewise.
  1468. (mi-console.o): Likewise.
  1469. (mi-getopt.o): Likewise.
  1470. (mi-interp.o): Likewise.
  1471. (mi-main.o): Likewise.
  1472. (mi-out.o): Likewise.
  1473. (mi-parse.o): Likewise.
  1474. (mi-symbol-cmds.o): Likewise.
  1475. (mi-common.o): Likewise.
  1476. (signals.o): Likewise.
  1477. (common-utils.o): Likewise.
  1478. (gdb_vecs.o): Likewise.
  1479. (xml-utils.o): Likewise.
  1480. (ptid.o): Likewise.
  1481. (buffer.o): Likewise.
  1482. (filestuff.o): Likewise.
  1483. (format.o): Likewise.
  1484. (vec.o): Likewise.
  1485. (print-utils.o): Likewise.
  1486. (rsp-low.o): Likewise.
  1487. (errors.o): Likewise.
  1488. (common-debug.o): Likewise.
  1489. (cleanups.o): Likewise.
  1490. (common-exceptions.o
  1491. (posix-strerror.o): Likewise.
  1492. (mingw-strerror.o): Likewise.
  1493. (btrace-common.o): Likewise.
  1494. (fileio.o): Likewise.
  1495. (common-regcache.o): Likewise.
  1496. (signals-state-save-restore.o): Likewise.
  1497. (new-op.o): Likewise.
  1498. (waitstatus.o): Likewise.
  1499. (arm.o): Likewise.
  1500. (arm-linux.o): Likewise.
  1501. (arm-get-next-pcs.o): Likewise.
  1502. (x86-dregs.o): Likewise.
  1503. (linux-btrace.o): Likewise.
  1504. (linux-osdata.o): Likewise.
  1505. (linux-procfs.o): Likewise.
  1506. (linux-ptrace.o): Likewise.
  1507. (linux-waitpid.o): Likewise.
  1508. (mips-linux-watch.o): Likewise.
  1509. (ppc-linux.o): Likewise.
  1510. (linux-personality.o): Likewise.
  1511. (x86-linux.o): Likewise.
  1512. (x86-linux-dregs.o): Likewise.
  1513. (amd64-linux-siginfo.o): Likewise.
  1514. (linux-namespaces.o): Likewise.
  1515. (aarch64-linux-hw-point.o): Likewise.
  1516. (aarch64-linux.o): Likewise.
  1517. (aarch64-insn.o): Likewise.
  1518. (tui.o): Likewise.
  1519. (tui-command.o): Likewise.
  1520. (tui-data.o): Likewise.
  1521. (tui-disasm.o): Likewise.
  1522. (tui-file.o): Likewise.
  1523. (tui-hooks.o): Likewise.
  1524. (tui-interp.o): Likewise.
  1525. (tui-io.o): Likewise.
  1526. (tui-layout.o): Likewise.
  1527. (tui-out.o): Likewise.
  1528. (tui-regs.o): Likewise.
  1529. (tui-source.o): Likewise.
  1530. (tui-stack.o): Likewise.
  1531. (tui-win.o): Likewise.
  1532. (tui-windata.o): Likewise.
  1533. (tui-wingeneral.o): Likewise.
  1534. (tui-winsource.o): Likewise.
  1535. (guile.o): Likewise.
  1536. (scm-arch.o): Likewise.
  1537. (scm-auto-load.o): Likewise.
  1538. (scm-block.o): Likewise.
  1539. (scm-breakpoint.o): Likewise.
  1540. (scm-cmd.o): Likewise.
  1541. (scm-disasm.o): Likewise.
  1542. (scm-exception.o): Likewise.
  1543. (scm-frame.o): Likewise.
  1544. (scm-gsmob.o): Likewise.
  1545. (scm-iterator.o): Likewise.
  1546. (scm-lazy-string.o): Likewise.
  1547. (scm-math.o): Likewise.
  1548. (scm-objfile.o): Likewise.
  1549. (scm-param.o): Likewise.
  1550. (scm-ports.o): Likewise.
  1551. (scm-pretty-print.o): Likewise.
  1552. (scm-progspace.o): Likewise.
  1553. (scm-safe-call.o): Likewise.
  1554. (scm-string.o): Likewise.
  1555. (scm-symbol.o): Likewise.
  1556. (scm-symtab.o): Likewise.
  1557. (scm-type.o): Likewise.
  1558. (scm-utils.o): Likewise.
  1559. (scm-value.o): Likewise.
  1560. (python.o): Likewise.
  1561. (py-arch.o): Likewise.
  1562. (py-auto-load.o): Likewise.
  1563. (py-block.o): Likewise.
  1564. (py-bpevent.o): Likewise.
  1565. (py-breakpoint.o): Likewise.
  1566. (py-cmd.o): Likewise.
  1567. (py-continueevent.o): Likewise.
  1568. (py-xmethods.o): Likewise.
  1569. (py-event.o): Likewise.
  1570. (py-evtregistry.o): Likewise.
  1571. (py-evts.o): Likewise.
  1572. (py-exitedevent.o): Likewise.
  1573. (py-finishbreakpoint.o): Likewise.
  1574. (py-frame.o): Likewise.
  1575. (py-framefilter.o): Likewise.
  1576. (py-function.o): Likewise.
  1577. (py-gdb-readline.o): Likewise.
  1578. (py-inferior.o): Likewise.
  1579. (py-infevents.o): Likewise.
  1580. (py-infthread.o): Likewise.
  1581. (py-lazy-string.o): Likewise.
  1582. (py-linetable.o): Likewise.
  1583. (py-newobjfileevent.o): Likewise.
  1584. (py-objfile.o): Likewise.
  1585. (py-param.o): Likewise.
  1586. (py-prettyprint.o): Likewise.
  1587. (py-progspace.o): Likewise.
  1588. (py-signalevent.o): Likewise.
  1589. (py-stopevent.o): Likewise.
  1590. (py-symbol.o): Likewise.
  1591. (py-symtab.o): Likewise.
  1592. (py-threadevent.o): Likewise.
  1593. (py-type.o): Likewise.
  1594. (py-unwind.o): Likewise.
  1595. (py-utils.o): Likewise.
  1596. (py-value.o): Likewise.
  1597. (py-varobj.o): Likewise.
  1598. 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
  1599. * Makefile.in (.c.o): Replace rule with ...
  1600. (%.o: %.c): ... this one.
  1601. (.po.gmo): Replace rule with ...
  1602. (%.gmo: %.po): ... this one.
  1603. (.po.pox): Replace rule with ...
  1604. (%.pox: %.po): ... this one.
  1605. (.y.c): Replace rule with ...
  1606. (%.c: %.y): ... this one.
  1607. (.l.c): Replace rule with ...
  1608. (%.c: %.l): ... this one.
  1609. (.SUFFIXES): Remove all instances.
  1610. 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
  1611. * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
  1612. prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
  1613. make.
  1614. * configure.ac: Remove checks for the make program.
  1615. * configure: Re-generate.
  1616. 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
  1617. * NEWS: Mention requirement of GNU make.
  1618. 2016-11-17 Pedro Alves <palves@redhat.com>
  1619. * c-exp.y (c_print_token): Use parser_fprintf instead of fprintf.
  1620. 2016-11-17 Pedro Alves <palves@redhat.com>
  1621. * ctf.c [USE_WIN32API] (mkdir): Delete.
  1622. 2016-11-16 Pedro Alves <palves@redhat.com>
  1623. * ada-lang.c (ada_value_primitive_packed_val): Use unique_ptr and
  1624. new gdb_byte[] instead of malloc and cleanups.
  1625. 2016-11-17 Pedro Alves <palves@redhat.com>
  1626. * tracepoint.c (collection_list::add_memrange): Add gdbarch
  1627. parameter. Use paddress instead of printf_vma. Adjust recursive
  1628. calls.
  1629. (collection_list::stringify): Use paddress and phex_nz instead of
  1630. sprintf_vma. Adjust add_memrange call.
  1631. * tracepoint.h (collection_list::add_memrange): Add gdbarch
  1632. parameter.
  1633. 2016-11-16 Kevin Buettner <kevinb@redhat.com>
  1634. * frame.c (get_prev_frame): Stash frame id for current frame
  1635. prior to computing frame id for previous frame.
  1636. 2016-11-16 Kevin Buettner <kevinb@redhat.com>
  1637. * python/py-unwind.c (pending_framepy_read_register): Use
  1638. value_of_register() instead of get_frame_register_value().
  1639. 2016-11-16 Kevin Buettner <kevinb@redhat.com>
  1640. * value.h (VALUE_FRAME_ID): Rename to VALUE_NEXT_FRAME_ID. Update
  1641. comment. Create new VALUE_FRAME_ID which is defined in terms of
  1642. VALUE_NEXT_FRAME_ID.
  1643. (deprecated_value_frame_id_hack): Rename to
  1644. deprecated_value_next_frame_id_hack.
  1645. * dwarf2loc.c, findvar.c, frame-unwind.c, sentinel-frame.c,
  1646. valarith.c, valops.c, value.c: Adjust nearly all occurences of
  1647. VALUE_FRAME_ID to VALUE_NEXT_FRAME_ID. Add comments for those
  1648. which did not change.
  1649. * value.c (struct value): Rename frame_id field to next_frame_id.
  1650. Update comment.
  1651. (deprecated_value_frame_id_hack): Rename to
  1652. deprecated_value_next_frame_id_hack.
  1653. (value_fetch_lazy): Call frame_unwind_register_value()
  1654. instead of get_frame_register_value().
  1655. * frame.c (get_prev_frame_id_by_id): New function.
  1656. * frame.h (get_prev_frame_id_by_id): Declare.
  1657. * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Make
  1658. VALUE_NEXT_FRAME_ID refer to the next frame.
  1659. * findvar.c (value_of_register_lazy): Likewise.
  1660. (default_value_from_register): Likewise.
  1661. (value_from_register): Likewise.
  1662. * frame_unwind.c (frame_unwind_got_optimized): Likewise.
  1663. * sentinel-frame.c (sentinel_frame_prev_register): Likewise.
  1664. * value.h (VALUE_FRAME_ID): Update comment describing this macro.
  1665. 2016-11-16 Kevin Buettner <kevinb@redhat.com>
  1666. * frame.h (enum frame_id_stack_status): Add FID_STACK_SENTINEL.
  1667. (struct frame_id): Increase number of bits required for storing
  1668. stack status to 3 from 2.
  1669. (sentinel_frame_id): New declaration.
  1670. (get_next_frame_sentinel_okay): Declare.
  1671. (frame_find_by_id_sentinel_okay): Declare.
  1672. * frame.c (current_frame): Rename this static global to...
  1673. (sentinel_frame): ...this static global, which has also been
  1674. moved an earlier location in the file.
  1675. (fprint_frame_id): Add case for sentinel frame id.
  1676. (get_frame_id): Return early for sentinel frame.
  1677. (sentinel_frame_id): Define.
  1678. (frame_find_by_id): Add case for sentinel_frame_id.
  1679. (create_sentinel_frame): Use sentinel_frame_id for this_id.value
  1680. instead of null_frame_id.
  1681. (get_current_frame): Add local declaration for `current_frame'.
  1682. Remove local declaration for `sentinel_frame.'
  1683. (get_next_frame_sentinel_okay): New function.
  1684. (reinit_frame_cache): Use `sentinel_frame' in place of
  1685. `current_frame'.
  1686. 2016-11-15 Pedro Alves <palves@redhat.com>
  1687. * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
  1688. 38237baf99386101934cd93278023aa4ae523ec0.
  1689. * gnulib/configure, gnulib/config.in: Regenerate.
  1690. * gnulib/import/Makefile.am: Regenerate.
  1691. * gnulib/import/Makefile.in: Regenerate.
  1692. * gnulib/import/canonicalize-lgpl.c: Update.
  1693. * gnulib/import/extra/snippet/c++defs.h: Update.
  1694. * gnulib/import/m4/stdint.m4: Update.
  1695. * gnulib/import/m4/stdlib_h.m4: Update.
  1696. * gnulib/import/math.in.h: Update.
  1697. * gnulib/import/stdlib.in.h: Update.
  1698. * gnulib/import/sys_time.in.h: Update.
  1699. 2016-11-15 Pedro Alves <palves@redhat.com>
  1700. * common/common-defs.h: Update comment.
  1701. * common/gdb_unique_ptr.h: Update header comment and copyright
  1702. year.
  1703. (gdb::unique_ptr, gdb::move): Delete.
  1704. 2016-11-15 Pedro Alves <palves@redhat.com>
  1705. * ada-lang.c (create_excep_cond_exprs): Use std::move instead of
  1706. gdb::move.
  1707. * break-catch-throw.c (handle_gnu_v3_exceptions): Use
  1708. std::unique_ptr instead of gdb::unique_ptr.
  1709. * breakpoint.c (watch_command_1): Use std::move instead of
  1710. gdb::move.
  1711. * cli/cli-dump.c (dump_memory_to_file, restore_binary_file): Use
  1712. std::unique_ptr instead of gdb::unique_ptr.
  1713. * dtrace-probe.c (dtrace_process_dof_probe): Use std::move instead
  1714. of gdb::move.
  1715. * elfread.c (elf_read_minimal_symbols): Use std::unique_ptr
  1716. instead of gdb::unique_ptr.
  1717. * mi/mi-main.c (mi_cmd_data_read_memory): Use std::unique_ptr
  1718. instead of gdb::unique_ptr.
  1719. * parse.c (parse_expression_for_completion): Use std::move instead
  1720. of gdb::move.
  1721. * printcmd.c (display_command): std::move instead of gdb::move.
  1722. 2016-11-14 Markus Metzger <markus.t.metzger@intel.com>
  1723. * nat/linux-btrace.c (perf_event_read): Allow data_head < size.
  1724. * nat/linux-btrace.c (perf_event_read_all): Do not adjust size.
  1725. 2016-11-12 Tom Tromey <tom@tromey.com>
  1726. * rust-exp.y (super_name): Use std::vector.
  1727. (lex_number): Use std::string.
  1728. (convert_params_to_types): Return std::vector.
  1729. (convert_ast_to_type, convert_name): Update.
  1730. * rust-lang.c (rust_get_disr_info): Use unique_xmalloc_ptr.
  1731. 2016-11-12 Tom Tromey <tom@tromey.com>
  1732. * rust-lang.c (rust_get_disr_info): Use std::string in one more
  1733. spot.
  1734. 2016-11-11 Yao Qi <yao.qi@linaro.org>
  1735. * spu-tdep.c (spu_software_single_step): Don't call
  1736. get_frame_register_bytes, call get_frame_register_unsigned
  1737. instead.
  1738. 2016-11-11 Yao Qi <yao.qi@linaro.org>
  1739. * cp-valprint.c (cp_print_value): Remove local base_valaddr.
  1740. * extension-priv.h (struct extension_language_ops)
  1741. <apply_val_pretty_printer>: Remove the second parameter.
  1742. Remove const from "struct value *". Callers updated.
  1743. * extension.c (apply_ext_lang_val_pretty_printer): Update
  1744. comments. Remove parameter valaddr. Remove const from
  1745. "struct value *".
  1746. * extension.h (apply_ext_lang_val_pretty_printer): Update
  1747. declaration.
  1748. * guile/guile-internal.h (gdbscm_apply_val_pretty_printer):
  1749. Update declaration.
  1750. * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
  1751. Remove parameter valaddr. Remove const from "struct value *".
  1752. * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer):
  1753. Likewise.
  1754. * python/python-internal.h (gdbpy_apply_val_pretty_printer):
  1755. Update declaration.
  1756. 2016-11-11 Yao Qi <yao.qi@linaro.org>
  1757. * c-lang.h (cp_print_value_fields): Update declaration.
  1758. * cp-valprint.c (cp_print_value): Update declaration.
  1759. (cp_print_value_fields): Remove parameter valaddr. Callers
  1760. updated.
  1761. (cp_print_value): Likewise.
  1762. 2016-11-09 Tom Tromey <tom@tromey.com>
  1763. * varobj.h (varobj_get_display_hint): Change return type.
  1764. * varobj.c (varobj_get_display_hint): Return unique_xmalloc_ptr.
  1765. (varobj_value_get_print_value): Update.
  1766. * python/python.c (gdbpy_before_prompt_hook, gdbpy_print_stack)
  1767. (gdbpy_apply_type_printers): Update.
  1768. * python/python-internal.h (unicode_to_target_string)
  1769. (python_string_to_target_string, python_string_to_host_string)
  1770. (gdbpy_obj_to_string, gdbpy_exception_to_string)
  1771. (gdbpy_get_display_hint): Change return types.
  1772. * python/py-varobj.c (py_varobj_iter_next): Update.
  1773. * python/py-value.c (valpy_getitem, convert_value_from_python):
  1774. Update.
  1775. * python/py-utils.c (unicode_to_encoded_string)
  1776. (unicode_to_target_string, python_string_to_target_string)
  1777. (python_string_to_host_string, gdbpy_obj_to_string)
  1778. (gdbpy_exception_to_string): Return unique_xmalloc_ptr.
  1779. * python/py-unwind.c (pyuw_parse_register_id): Update.
  1780. * python/py-type.c (typy_getitem): Update.
  1781. * python/py-prettyprint.c (gdbpy_get_display_hint)
  1782. (print_stack_unless_memory_error, print_children)
  1783. (gdbpy_apply_val_pretty_printer): Update.
  1784. * python/py-param.c (set_parameter_value): Update.
  1785. (get_doc_string, call_doc_function): Return unique_xmalloc_ptr.
  1786. (get_set_value, get_show_value, compute_enum_values, parmpy_init):
  1787. Update.
  1788. * python/py-infthread.c (thpy_set_name): Update.
  1789. * python/py-function.c (fnpy_call, fnpy_init): Update.
  1790. * python/py-framefilter.c (extract_sym): Change "name" to
  1791. unique_xmalloc_ptr.
  1792. (enumerate_args, enumerate_locals): Update.
  1793. (py_print_frame): Use unique_xmalloc_ptr.
  1794. * python/py-frame.c (frapy_read_var): Update. Remove cleanup.
  1795. * python/py-cmd.c (cmdpy_function, cmdpy_completer, cmdpy_init):
  1796. Update.
  1797. * python/py-breakpoint.c (bppy_set_condition): Use
  1798. unique_xmalloc_ptr.
  1799. (bppy_init): Likewise. Remove cleanup.
  1800. (local_setattro): Update.
  1801. * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_list_children)
  1802. (varobj_update_one): Update.
  1803. 2016-11-09 Pedro Alves <palves@redhat.com>
  1804. * ax-gdb.c (agent_eval_command_one): Use std::move instead of
  1805. gdb::move.
  1806. * ax.h (agent_expr_up): Use std::unique_ptr instead of
  1807. gdb::unique_ptr.
  1808. * breakpoint.c (parse_cond_to_aexpr): Use std::move instead of
  1809. gdb::move.
  1810. * tracepoint.c (collection_list::collect_symbol): Likewise.
  1811. (collection_list::~collection_list): Delete.
  1812. (encode_actions_1): Use std::move instead of gdb::move.
  1813. (collection_list::add_aexpr): Use std::move instead of
  1814. unique_ptr::release.
  1815. * tracepoint.h (collection_list) <~collection_list>: Delete
  1816. declaration.
  1817. <m_aexprs>: Now a vector of agent_ptr_up.
  1818. 2016-11-09 Pedro Alves <palves@redhat.com>
  1819. * main.c (struct cmdarg): Add constructor.
  1820. (captured_main_1): Use vector::emplace_back.
  1821. * tracepoint.c (collection_list::add_memrange): Likewise.
  1822. 2016-11-09 Andreas Arnez <arnez@linux.vnet.ibm.com>
  1823. * tui/tui-winsource.c (tui_alloc_source_buffer): Remove
  1824. failed-xmalloc handling.
  1825. 2016-11-09 Andreas Arnez <arnez@linux.vnet.ibm.com>
  1826. * tui/tui-winsource.c (tui_alloc_source_buffer): Subtract
  1827. highlight box's overhead when calculating the content height.
  1828. 2016-11-09 Andreas Arnez <arnez@linux.vnet.ibm.com>
  1829. * tui/tui-disasm.c (tui_set_disassem_content): Fix calculation of
  1830. the longest disassembly line's length.
  1831. 2016-11-09 Andreas Arnez <arnez@linux.vnet.ibm.com>
  1832. * tui/tui-disasm.c (tui_set_disassem_content): Fix line buffer
  1833. overrun due to unchecked strcpy.
  1834. 2016-11-09 Tristan Gingold <gingold@adacore.com>
  1835. * darwin-nat.c (find_inferior_task_it): Fix indentation.
  1836. (find_inferior_notify_it): Remove.
  1837. (find_inferior_pid_it): New function.
  1838. (darwin_find_inferior_by_notify): Remove.
  1839. (darwin_find_inferior_by_pid): New function.
  1840. (darwin_find_new_inferior): New function.
  1841. (darwin_check_message_ndr): New function from
  1842. darwin_decode_exception_message.
  1843. (darwin_decode_exception_message): Call darwin_check_message_ndr.
  1844. Handle SIGTRAP addressed to an unknown task (when a task spawned).
  1845. (darwin_decode_notify_message): New function.
  1846. (darwin_decode_message): Handle unknown task.
  1847. (darwin_deallocate_threads): New function from darwin_mourn_inferior.
  1848. (darwin_mourn_inferior): Use darwin_deallocate_threads and
  1849. darwin_deallocate_exception_ports.
  1850. (darwin_deallocate_exception_ports): New function from
  1851. darwin_mourn_inferior.
  1852. (darwin_setup_exceptions): New function from darwin_attach_pid.
  1853. (darwin_setup_request_notification): Likewise.
  1854. (darwin_attach_pid): Call darwin_setup_request_notification and
  1855. darwin_setup_request_notification.
  1856. 2016-11-08 Tom Tromey <tom@tromey.com>
  1857. * python/py-framefilter.c (py_print_frame): Use
  1858. get_addr_from_python. Check for errors when getting line number.
  1859. 2016-11-08 Yao Qi <yao.qi@linaro.org>
  1860. * ada-lang.h (ada_val_print): Remove second parameter. Remove
  1861. const from "struct value *".
  1862. * ada-valprint.c (print_field_values): Remove const from
  1863. "struct value *".
  1864. (val_print_packed_array_elements): Likewise.
  1865. (print_variant_part): Likewise.
  1866. (ada_val_print_string): Likewise.
  1867. (ada_val_print_gnat_array): Likewise.
  1868. (ada_val_print_ptr): Likewise.
  1869. (ada_val_print_num): Likewise.
  1870. (ada_val_print_enum): Likewise.
  1871. (ada_val_print_flt): Likewise.
  1872. (ada_val_print_union): Likewise.
  1873. (ada_val_print_struct_union): Likewise.
  1874. (ada_val_print_ref): Likewise.
  1875. (ada_val_print_1): Remove second parameter. Remove const from
  1876. "struct value *".
  1877. (ada_val_print): Likewise.
  1878. * c-lang.h (c_val_print): Likewise.
  1879. * c-valprint.c (c_val_print_array): Remove const from
  1880. "struct value *".
  1881. (c_val_print_ptr): Likewise.
  1882. (c_val_print_struct): Likewise.
  1883. (c_val_print_union): Likewise.
  1884. (c_val_print_int): Likewise.
  1885. (c_val_print_memberptr): Likewise.
  1886. (c_val_print): Remove second parameter. Remove const from
  1887. "struct value *". All callers updated.
  1888. * cp-valprint.c (cp_print_value): Remove const from
  1889. "struct value *".
  1890. (cp_print_value_fields): Likewise.
  1891. (c_val_print_value): Likewise.
  1892. * d-lang.h (d_val_print): Remove second parameter. Remove const
  1893. from "struct value *".
  1894. * d-valprint.c (dynamic_array_type): Likewise.
  1895. (d_val_print): Likewise.
  1896. * f-lang.h (f_val_print): Likewise.
  1897. * f-valprint.c (f_val_print): Likewise.
  1898. * go-lang.h (go_val_print): Likewise.
  1899. * go-valprint.c (print_go_string): Likewise.
  1900. (go_val_print): Likewise.
  1901. * language.c (unk_lang_val_print): Likewise.
  1902. * language.h (struct language_defn) <la_val_print>: Likewise.
  1903. Update comments.
  1904. (LA_VAL_PRINT): Remove.
  1905. * m2-lang.h (m2_val_print): Remove const from
  1906. "struct value *".
  1907. * m2-valprint.c (m2_print_array_contents): Likewise.
  1908. (m2_val_print): Likewise.
  1909. * p-lang.h (pascal_val_print): Remove second parameter. Remove
  1910. const from "struct value *".
  1911. (pascal_object_print_value_fields): Likewise.
  1912. * p-valprint.c (pascal_val_print): Likewise.
  1913. (pascal_object_print_value_fields): Likewise.
  1914. (pascal_object_print_value): Likewise.
  1915. * rust-lang.c (rust_get_disr_info): Likewise.
  1916. (val_print_struct): Likewise.
  1917. (rust_val_print): Likewise.
  1918. * valprint.c (generic_val_print_array): Likewise.
  1919. (generic_val_print_ptr): Likewise.
  1920. (generic_val_print_memberptr): Likewise.
  1921. (generic_val_print_ref): Likewise.
  1922. (generic_val_print_enum): Likewise.
  1923. (generic_val_print_flags): Likewise.
  1924. (generic_val_print_func): Likewise.
  1925. (generic_val_print_bool): Likewise.
  1926. (generic_val_print_int): Likewise.
  1927. (generic_val_print_char): Likewise.
  1928. (generic_val_print_float): Likewise.
  1929. (generic_val_print_decfloat): Likewise.
  1930. (generic_val_print_complex): Likewise.
  1931. (generic_val_print): Likewise.
  1932. (val_print): Likewise.
  1933. (common_val_print): Likewise.
  1934. (val_print_type_code_flags): Likewise.
  1935. (val_print_scalar_formatted): Likewise.
  1936. (val_print_array_elements): Likewise.
  1937. * valprint.h (val_print_array_elements): Update declaration.
  1938. (val_print_scalar_formatted): Likewise.
  1939. (generic_val_print): Likewise.
  1940. * value.h (val_print): Likewise.
  1941. 2016-11-08 Yao Qi <yao.qi@linaro.org>
  1942. * mt-tdep.c (mt_registers_info): Call
  1943. get_frame_register_value instead of
  1944. deprecated_frame_register_read.
  1945. * sh64-tdep.c (sh64_do_register): Likewise.
  1946. 2016-11-08 Pedro Alves <palves@redhat.com>
  1947. * ax.h (agent_expr_p): Delete.
  1948. (DEF_VEC_P (agent_expr_p)): Delete.
  1949. * breakpoint.c (build_target_condition_list)
  1950. (build_target_command_list): Adjust to use of std::vector.
  1951. (bp_location_dtor): Remove now unnecessary VEC_free calls.
  1952. * breakpoint.h: Include <vector>.
  1953. (struct bp_target_info) <conditions, tcommands>: Now
  1954. std::vector's.
  1955. * remote.c (remote_add_target_side_condition): bp_tgt->conditions
  1956. is now a std::vector; adjust.
  1957. (remote_add_target_side_commands, remote_insert_breakpoint):
  1958. bp_tgt->tcommands is now a std::vector; adjust.
  1959. 2016-11-08 Pedro Alves <palves@redhat.com>
  1960. * ax-gdb.c (is_nontrivial_conversion): Use agent_expr_up.
  1961. (gen_trace_for_var, gen_trace_for_expr, gen_eval_for_expr)
  1962. (gen_trace_for_return_address, gen_printf): Use and return an
  1963. agent_expr_up. Don't use make_cleanup_free_agent_expr.
  1964. (agent_eval_command_one, maint_agent_printf_command): Use
  1965. agent_expr_up. Don't use make_cleanup_free_agent_expr.
  1966. * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
  1967. (gen_trace_for_return_address, gen_eval_for_expr, gen_printf): Use
  1968. agent_expr_up.
  1969. * ax-general.c (new_agent_expr): Rename to ...
  1970. (agent_expr::agent_expr): ... this, and now a constructor.
  1971. (free_agent_expr): Rename to ...
  1972. (agent_expr::~agent_exp): ... this, and now a destructor.
  1973. (do_free_agent_expr_cleanup, make_cleanup_free_agent_expr):
  1974. Delete.
  1975. * ax.h (struct agent_expr): Add ctor/dtor.
  1976. (agent_expr_up): New typedef.
  1977. (new_agent_expr, free_agent_expr, make_cleanup_free_agent_expr):
  1978. Delete declarations.
  1979. * breakpoint.c (parse_cond_to_aexpr): Use and return an
  1980. agent_expr_up. Don't use make_cleanup_free_agent_expr.
  1981. (build_target_condition_list): Adjust to use agent_expr_up.
  1982. (parse_cmd_to_aexpr): Use and return an agent_expr_up. Don't use
  1983. make_cleanup_free_agent_expr.
  1984. (build_target_command_list): Adjust to use agent_expr_up.
  1985. (force_breakpoint_reinsertion): Adjust to use agent_expr_up.
  1986. (bp_location_dtor): Remove unnecessary free_agent_expr and xfree
  1987. calls.
  1988. * breakpoint.h (struct bp_target_info) <cond_bytecode,
  1989. cmd_bytecode>: Now agent_expr_up's.
  1990. * remote.c (remote_download_tracepoint): Adjust to use
  1991. agent_expr_up and remove use of make_cleanup_free_agent_expr.
  1992. * tracepoint.c (validate_actionline, collect_symbol): Adjust to
  1993. use agent_expr_up and remove uses of make_cleanup_free_agent_expr.
  1994. (collection_list::~collection_list): Call delete instead of
  1995. free_agent_expr.
  1996. (encode_actions_1): Adjust to use agent_expr_up and remove uses of
  1997. make_cleanup_free_agent_expr.
  1998. (add_aexpr): Change parameter type to agent_expr_up; Return a raw
  1999. agent_expr pointer.
  2000. 2016-11-08 Pedro Alves <palves@redhat.com>
  2001. * ada-lang.c (ada_name_for_lookup, type_as_string): Use and return
  2002. std::string.
  2003. (type_as_string_and_cleanup): Delete.
  2004. (ada_lookup_struct_elt_type): Use type_as_string.
  2005. * ada-lang.h (ada_name_for_lookup): Now returns std::string.
  2006. * ada-varobj.c (ada_varobj_scalar_image): Return a std::string.
  2007. (ada_varobj_describe_child): Make 'child_name' and
  2008. 'child_path_expr' parameters std::string pointers.
  2009. (ada_varobj_describe_struct_child, ada_varobj_describe_ptr_child):
  2010. Likewise, and use string_printf.
  2011. (ada_varobj_describe_simple_array_child)
  2012. (ada_varobj_describe_child): Likewise.
  2013. (ada_varobj_get_name_of_child, ada_varobj_get_path_expr_of_child)
  2014. (ada_varobj_get_value_image)
  2015. (ada_varobj_get_value_of_array_variable)
  2016. (ada_varobj_get_value_of_variable, ada_name_of_variable)
  2017. (ada_name_of_child, ada_path_expr_of_child)
  2018. (ada_value_of_variable): Now returns std::string. Use
  2019. string_printf.
  2020. (ada_value_of_child): Adjust.
  2021. * break-catch-throw.c (check_status_exception_catchpoint): Adjust
  2022. to use std::string.
  2023. * breakpoint.c (watch_command_1): Adjust to use std::string.
  2024. * c-lang.c (c_get_string): Adjust to use std::string.
  2025. * c-typeprint.c (print_name_maybe_canonical): Use std::string.
  2026. * c-varobj.c (varobj_is_anonymous_child): Use ==/!= std::string
  2027. operators.
  2028. (c_name_of_variable): Now returns a std::string.
  2029. (c_describe_child): The 'cname' and 'cfull_expression' output
  2030. parameters are now std::string pointers. Adjust.
  2031. (c_name_of_child, c_path_expr_of_child, c_value_of_variable)
  2032. (cplus_number_of_children): Adjust to use std::string and
  2033. string_printf.
  2034. (cplus_name_of_variable): Now returns a std::string.
  2035. (cplus_describe_child): The 'cname' and 'cfull_expression' output
  2036. parameters are now std::string pointers. Adjust.
  2037. (cplus_name_of_child, cplus_path_expr_of_child)
  2038. (cplus_value_of_variable): Now returns a std::string.
  2039. * cp-abi.c (cplus_typename_from_type_info): Return std::string.
  2040. * cp-abi.h (cplus_typename_from_type_info): Return std::string.
  2041. (struct cp_abi_ops) <get_typename_from_type_info>: Return
  2042. std::string.
  2043. * cp-support.c (inspect_type): Use std::string.
  2044. (cp_canonicalize_string_full, cp_canonicalize_string_no_typedefs)
  2045. (cp_canonicalize_string): Return std::string and adjust.
  2046. * cp-support.h (cp_canonicalize_string)
  2047. (cp_canonicalize_string_no_typedefs, cp_canonicalize_string_full):
  2048. Return std::string.
  2049. * dbxread.c (read_dbx_symtab): Use std::string.
  2050. * dwarf2read.c (dwarf2_canonicalize_name): Adjust to use std::string.
  2051. * gdbcmd.h (lookup_struct_elt_type): Adjust to use std::string.
  2052. * gnu-v3-abi.c (gnuv3_get_typeid): Use std::string.
  2053. (gnuv3_get_typename_from_type_info): Return a std::string and
  2054. adjust.
  2055. (gnuv3_get_type_from_type_info): Adjust to use std::string.
  2056. * guile/guile.c (gdbscm_execute_gdb_command): Adjust to use
  2057. std::string.
  2058. * infcmd.c (print_return_value_1): Adjust to use std::string.
  2059. * linespec.c (find_linespec_symbols): Adjust to
  2060. demangle_for_lookup API change. Use std::string.
  2061. * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_set_format)
  2062. (mi_cmd_var_info_type, mi_cmd_var_info_path_expression)
  2063. (mi_cmd_var_info_expression, mi_cmd_var_evaluate_expression)
  2064. (mi_cmd_var_assign, varobj_update_one): Adjust to use std::string.
  2065. * minsyms.c (lookup_minimal_symbol): Use std::string.
  2066. * python/py-varobj.c (py_varobj_iter_next): Use new instead of
  2067. XNEW. vitem->name is a std::string now, adjust.
  2068. * rust-exp.y (convert_ast_to_type, convert_name): Adjust to use
  2069. std::string.
  2070. * stabsread.c (define_symbol): Adjust to use std::string.
  2071. * symtab.c (demangle_for_lookup): Now returns 'const char *'. Add
  2072. a demangle_result_storage parameter. Use it for storage.
  2073. (lookup_symbol_in_language)
  2074. (lookup_symbol_in_objfile_from_linkage_name): Adjust to new
  2075. demangle_for_lookup API.
  2076. * symtab.h (struct demangle_result_storage): New type.
  2077. (demangle_for_lookup): Now returns 'const char *'. Add a
  2078. demangle_result_storage parameter.
  2079. * typeprint.c (type_to_string): Return std::string and use
  2080. ui_file_as_string.
  2081. * value.h (type_to_string): Change return type to std::string.
  2082. * varobj-iter.h (struct varobj_item) <name>: Now a std::string.
  2083. (varobj_iter_delete): Use delete instead of xfree.
  2084. * varobj.c (create_child): Return std::string instead of char * in
  2085. output parameter.
  2086. (name_of_variable, name_of_child, my_value_of_variable): Return
  2087. std::string instead of char *.
  2088. (varobj_create, varobj_get_handle): Constify 'objname' parameter.
  2089. Adjust to std::string fields.
  2090. (varobj_get_objname): Return a const char * instead of a char *.
  2091. (varobj_get_expression): Return a std::string.
  2092. (varobj_list_children): Adjust to use std::string.
  2093. (varobj_get_type): Return a std::string.
  2094. (varobj_get_path_expr): Return a const char * instead of a char *.
  2095. Adjust to std::string fields.
  2096. (varobj_get_formatted_value, varobj_get_value): Return a
  2097. std::string.
  2098. (varobj_set_value): Change type of 'expression' parameter to
  2099. std::string. Use std::string.
  2100. (install_new_value): Use std::string.
  2101. (delete_variable_1): Adjust to use std::string.
  2102. (create_child): Change the 'name' parameter to a std::string
  2103. reference. Swap it into the new item's name.
  2104. (create_child_with_value): Swap item's name into the new child's
  2105. name. Use string_printf.
  2106. (new_variable): Use new instead of XNEW.
  2107. (free_variable): Don't xfree fields that are now std::string.
  2108. (name_of_variable, name_of_child): Now returns std::string.
  2109. (value_of_root): Adjust to use std::string.
  2110. (my_value_of_variable, varobj_value_get_print_value): Return
  2111. and use std::string.
  2112. (varobj_value_get_print_value): Adjust to use ui_file_as_string
  2113. and std::string.
  2114. * varobj.h (struct varobj) <name, path_expr, obj_name,
  2115. print_value>: Now std::string's.
  2116. <name_of_variable, name_of_child, path_expr_of_child,
  2117. value_of_variable>: Return std::string.
  2118. (varobj_create, varobj_get_handle): Constify 'objname' parameter.
  2119. (varobj_get_objname): Return a const char * instead of a char *.
  2120. (varobj_get_expression, varobj_get_type): Return a std::string.
  2121. (varobj_get_path_expr): Return a const char * instead of a char *.
  2122. (varobj_get_formatted_value, varobj_get_value): Return a
  2123. std::string.
  2124. (varobj_set_value): Constify 'expression' parameter.
  2125. (varobj_value_get_print_value): Return a std::string.
  2126. 2016-11-08 Pedro Alves <palves@redhat.com>
  2127. * language.c (add_language): Use ui_file_as_string and adjust to
  2128. use std::string.
  2129. 2016-11-08 Pedro Alves <palves@redhat.com>
  2130. Tom Tromey <tom@tromey.com>
  2131. * rust-lang.c (struct disr_info) <name>: Now a std::string.
  2132. (rust_get_disr_info): Use ui_file_as_string and adjust to use
  2133. std::string.
  2134. (rust_val_print): Adjust to use std::string.
  2135. 2016-11-08 Pedro Alves <palves@redhat.com>
  2136. * infrun.c (print_target_wait_results): Use ui_file_as_string and
  2137. std::string.
  2138. 2016-11-08 Pedro Alves <palves@redhat.com>
  2139. * ada-lang.c (type_as_string): Use ui_file_as_string and return
  2140. std::string.
  2141. (type_as_string_and_cleanup): Delete.
  2142. (ada_lookup_struct_elt_type): Use type_as_string.
  2143. 2016-11-08 Pedro Alves <palves@redhat.com>
  2144. * gdbarch.sh (verify_gdbarch): Use ui_file_as_string and
  2145. std::string.
  2146. * gdbarch.c: Regenerate.
  2147. 2016-11-08 Pedro Alves <palves@redhat.com>
  2148. * c-exp.y (OPERATOR NEW): Adjust to use ui_file_as_string and
  2149. std::string.
  2150. 2016-11-08 Pedro Alves <palves@redhat.com>
  2151. * c-lang.h (c_compute_program): Now returns std::string.
  2152. * compile/compile-internal.h (class compile_file_names): New
  2153. class.
  2154. * compile/compile-object-load.c (compile_object_load): Replace
  2155. object_file and source_file parameters with a compile_file_names
  2156. parameter. Adjust.
  2157. * compile-object-load.h: Include "compile-internal.h".
  2158. (compile_object_load): Replace object_file and source_file
  2159. parameters with a compile_file_names parameter.
  2160. * compile/compile-c-support.c (c_compute_program): Now returns a
  2161. std::string. Use ui_file_as_string.
  2162. * compile/compile.c (get_new_file_names): Remove parameters and
  2163. return a compile_file_names instead.
  2164. (compile_to_object): Now returns a compile_file_names. Use
  2165. ui_file_as_string.
  2166. (eval_compile_command): Use compile_file_names.
  2167. * language.h (struct language_defn) <la_compute_program>: Now
  2168. returns std::string.
  2169. 2016-11-08 Pedro Alves <palves@redhat.com>
  2170. * cli/cli-setshow.c (do_show_command): Adjust to use
  2171. ui_file_as_string and std::string.
  2172. 2016-11-08 Pedro Alves <palves@redhat.com>
  2173. * remote.c (escape_buffer): Use ui_file_as_string and return
  2174. std::string.
  2175. (putpkt_binary, read_frame): Adjust to use std::string.
  2176. 2016-11-08 Pedro Alves <palves@redhat.com>
  2177. * python/py-arch.c (archpy_disassemble): Use ui_file_as_string and
  2178. std::string.
  2179. * python/py-breakpoint.c (bppy_get_commands): Use
  2180. ui_file_as_string and std::string.
  2181. * python/py-frame.c (frapy_str): Likewise.
  2182. * python/py-type.c (typy_str): Likewise.
  2183. * python/py-unwind.c (unwind_infopy_str): Likewise.
  2184. * python/py-value.c (valpy_str): Likewise.
  2185. 2016-11-08 Pedro Alves <palves@redhat.com>
  2186. * printcmd.c (eval_command): Use ui_file_as_string and
  2187. std::string.
  2188. 2016-11-08 Pedro Alves <palves@redhat.com>
  2189. * top.c (quit_confirm): Use ui_file_as_string and std::string.
  2190. 2016-11-08 Pedro Alves <palves@redhat.com>
  2191. * gdbcmd.h (execute_command_to_string): Now returns std::string.
  2192. (lookup_struct_elt_type): Adjust to use std::string.
  2193. * top.c (execute_command_to_string): Use ui_file_as_string and
  2194. return std::string.
  2195. * guile/guile.c (gdbscm_execute_gdb_command): Adjust to use
  2196. std::string.
  2197. * python/python.c (execute_gdb_command): Adjust to use
  2198. std::string.
  2199. 2016-11-08 Pedro Alves <palves@redhat.com>
  2200. * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Use
  2201. ui_file_as_string and adjust to use std::string.
  2202. * guile/scm-disasm.c (gdbscm_arch_disassemble): Likewise.
  2203. * guile/scm-frame.c (frscm_print_frame_smob): Likewise.
  2204. * guile/scm-type.c (tyscm_type_name): Use ui_file_as_string and
  2205. adjust to use std::string. Throw exception directly instead of
  2206. returning it in EXCP output parameter.
  2207. (tyscm_print_type_smob, gdbscm_type_print_name): Adjust to
  2208. tyscm_type_name interface change.
  2209. * guile/scm-value.c (vlscm_print_value_smob, gdbscm_value_print):
  2210. Use ui_file_as_string and std::string.
  2211. 2016-11-08 Pedro Alves <palves@redhat.com>
  2212. * arm-tdep.c (_initialize_arm_tdep): Use ui_file_as_string and
  2213. std::string.
  2214. 2016-11-08 Pedro Alves <palves@redhat.com>
  2215. * utils.c (error_stream): Use ui_file_as_string and std::string.
  2216. 2016-11-08 Pedro Alves <palves@redhat.com>
  2217. * ui-out.c (ui_out_field_stream): Use ui_file_as_string.
  2218. 2016-11-08 Pedro Alves <palves@redhat.com>
  2219. * ada-valprint.c (ada_print_floating): Use ui_file_as_string and
  2220. std::string.
  2221. 2016-11-08 Pedro Alves <palves@redhat.com>
  2222. * xtensa-tdep.c (xtensa_verify_config): Use ui_file_as_string and
  2223. std::string.
  2224. 2016-11-08 Pedro Alves <palves@redhat.com>
  2225. * dwarf2read.c (dwarf2_compute_name): Use ui_file_as_string and
  2226. std::string.
  2227. 2016-11-08 Pedro Alves <palves@redhat.com>
  2228. * mi/mi-main.c (print_variable_or_computed): Constify 'expression'
  2229. parameter.
  2230. (mi_cmd_trace_frame_collected): Call encode_actions instead of
  2231. encode_actions_and_make_cleanup. Adjust to use std::vector.
  2232. * tracepoint.c (memrange_cmp): Delete.
  2233. (memrange_comp): New.
  2234. (memrange_sortmerge): Take a memrange vector as parameter instead
  2235. of a collection_list. Use std::sort instead of qsort.
  2236. (add_register): Now a method of collection_list. Adjust to m_
  2237. prefix of data fields.
  2238. (add_memrange): Now a method of collection_list. Adjust to m_
  2239. prefix of data fields. Adjust to use std::vector.
  2240. (collect_symbol): Now a method of collection_list. Adjust to m_
  2241. prefix of data fields.
  2242. (do_collect_symbol): Adjust. Call add_wholly_collected instead of
  2243. accessing the vector directly.
  2244. (collection_list::add_wholly_collected): New.
  2245. (add_local_symbols): Now a method of collection_list.
  2246. (add_static_trace_data): Now a method of collection_list. Adjust
  2247. to use bool.
  2248. (clear_collection_list, do_clear_collection_list): Delete.
  2249. (init_collection_list): Delete.
  2250. (collection_list::collection_list): New.
  2251. (collection_list::~collection_list): New.
  2252. (stringify_collection_list): Rename to ...
  2253. (collection_list::stringify): ... this and adjust to being a
  2254. method of collection_list. Adjust to use of std::vector.
  2255. (append_exp): Now a method of collection_list. Use
  2256. ui_file_as_string. Adjust to std::vector.
  2257. (collection_list::finish): New.
  2258. (encode_actions_1): Adjust.
  2259. (encode_actions_and_make_cleanup): Rename to ...
  2260. (encode_actions)... this. No longer returns a cleanup. No longer
  2261. call init_collection_list nor install do_clear_collection_list
  2262. cleanups. Call collection_list::finish instead of
  2263. memrange_sortmerge directly.
  2264. (encode_actions_rsp): Adjust to call encode_actions instead of
  2265. encode_actions_and_make_cleanup. Adjust to method renames.
  2266. (add_aexpr): Now a method of collection_list.
  2267. * tracepoint.h: Include <vector> and <string>.
  2268. (struct memrange): Add constructors.
  2269. (struct collection_list): Now a class.
  2270. (class collection_list) <collection_list, ~collection_list,
  2271. add_wholly_collected, append_exp, add_aexpr, add_register,
  2272. add_memrange, collect_symbol, add_local_symbols,
  2273. add_static_trace_data, finish, stringify, wholly_collected, and
  2274. computed>: New methods.
  2275. <regs_mask>: Rename to ...
  2276. <m_regs_mask>: ... this.
  2277. <listsize, next_memrange, list>: Delete fields.
  2278. <m_memranges>: New field.
  2279. <aexpr_listsize, next_aexpr_elt, aexpr_list>: Delete fields.
  2280. <m_aexprs>: New field.
  2281. <strace_data>: Rename to ...
  2282. <m_strace_data>: ... this. Now a bool.
  2283. <wholly_collected>: Rename to ...
  2284. <m_wholly_collected>: ... this. Now a std::vector<std::string>.
  2285. <computed>: Rename to ...
  2286. <m_computed>: ... this. Now a std::vector<std::string>.
  2287. (encode_actions_and_make_cleanup): Delete declaration.
  2288. (encode_actions): New declaration.
  2289. 2016-11-08 Pedro Alves <palves@redhat.com>
  2290. * ui-file.c (do_ui_file_as_string, ui_file_as_string): New
  2291. functions.
  2292. * ui-file.h: Include <string>.
  2293. (ui_file_as_string): New declaration.
  2294. 2016-11-08 Pedro Alves <palves@redhat.com>
  2295. * ada-lang.c (ada_read_renaming_var_value): Use expression_up.
  2296. (struct ada_catchpoint_location) <excep_cond_expr>: Now an
  2297. expression_up.
  2298. (ada_catchpoint_location_dtor): Reset excep_cond_expr instead of
  2299. using xfree.
  2300. (create_excep_cond_exprs): Use expression_up and gdb::move.
  2301. (allocate_location_exception): Use new instead of XNEW.
  2302. (should_stop_exception): Likewise. Adjust to use expression_up.
  2303. (create_ada_exception_catchpoint): Use new instead of XNEW.
  2304. * ax-gdb.c (agent_eval_command_one): Use expression_up instead of
  2305. cleanups.
  2306. (maint_agent_printf_command): Use expression_up.
  2307. * break-catch-sig.c (create_signal_catchpoint): Use new instead of
  2308. XNEW.
  2309. * break-catch-syscall.c (create_syscall_event_catchpoint):
  2310. Likewise.
  2311. * break-catch-throw.c (handle_gnu_v3_exceptions): Use new instead
  2312. of XCNEW. Use gdb::unique_ptr instead of cleanups.
  2313. * breakpoint.c (set_breakpoint_condition, update_watchpoint)
  2314. (parse_cmd_to_aexpr, watchpoint_check)
  2315. (bpstat_check_breakpoint_conditions, watchpoint_locations_match):
  2316. Adjust to use expression_up.
  2317. (init_bp_location): Adjust.
  2318. (free_bp_location): Use delete instead of xfree.
  2319. (set_raw_breakpoint_without_location, set_raw_breakpoint)
  2320. (add_solib_catchpoint, create_fork_vfork_event_catchpoint)
  2321. (new_single_step_breakpoint, create_breakpoint_sal): Use new
  2322. instead of XNEW.
  2323. (find_condition_and_thread): Adjust to use expression_up.
  2324. (create_breakpoint): Use new instead of XNEW.
  2325. (dtor_watchpoint): Don't xfree expression pointers, they're
  2326. unique_ptr's now.
  2327. (insert_watchpoint, remove_watchpoint): Adjust.
  2328. (watch_command_1): Use expression_up. Use new instead of XCNEW.
  2329. (catch_exec_command_1): Use new instead of XNEW.
  2330. (bp_location_dtor): Don't xfree expression pointers, they're
  2331. unique_ptr's now.
  2332. (base_breakpoint_allocate_location)
  2333. (strace_marker_create_breakpoints_sal): Use new instead of XNEW.
  2334. (delete_breakpoint): Use delete instead of xfree.
  2335. * breakpoint.h (struct bp_location) <cond>: Now an
  2336. unique_ptr<expression> instead of a raw pointer.
  2337. (struct watchpoint) <exp, cond_exp>: Likewise.
  2338. * cli/cli-script.c (execute_control_command): Use expression_up
  2339. instead of cleanups.
  2340. * dtrace-probe.c (dtrace_process_dof_probe): Use expression_up.
  2341. * eval.c (parse_and_eval_address, parse_and_eval_long)
  2342. (parse_and_eval, parse_to_comma_and_eval, parse_and_eval_type):
  2343. Use expression_up instead of cleanups.
  2344. * expression.h (expression_up): New typedef.
  2345. (parse_expression, parse_expression_with_language, parse_exp_1):
  2346. Change return type to expression_up.
  2347. * mi/mi-main.c (mi_cmd_data_evaluate_expression)
  2348. (print_variable_or_computed): Use expression_up.
  2349. * objc-lang.c (print_object_command): Use expression_up instead of
  2350. cleanups.
  2351. * parse.c (parse_exp_1, parse_exp_in_context)
  2352. (parse_exp_in_context_1, parse_expression)
  2353. (parse_expression_with_language): Return an expression_up instead
  2354. of a raw pointer.
  2355. (parse_expression_for_completion): Use expression_up.
  2356. * printcmd.c (struct display) <exp>: Now an expression_up instead
  2357. of a raw pointer.
  2358. (print_command_1, output_command_const, set_command, x_command):
  2359. Use expression_up instead of cleanups.
  2360. (display_command): Likewise. Use new instead of XNEW.
  2361. (free_display): Use delete instead of xfree.
  2362. (do_one_display): Adjust to use expression_up.
  2363. * remote.c (remote_download_tracepoint): Likewise.
  2364. * stack.c (return_command): Likewise.
  2365. * tracepoint.c (validate_actionline, encode_actions_1): Use
  2366. expression_up instead of cleanups.
  2367. * typeprint.c (whatis_exp, maintenance_print_type): Likewise.
  2368. * value.c (init_if_undefined_command): Likewise.
  2369. * varobj.c (struct varobj_root) <exp>: Now an expression_up
  2370. instead of a raw pointer.
  2371. (varobj_create): Adjust.
  2372. (varobj_set_value): Use an expression_up instead of cleanups.
  2373. (new_root_variable): Use new instead of XNEW.
  2374. (free_variable): Use delete instead of xfree.
  2375. (value_of_root_1): Use std::swap.
  2376. 2016-11-08 Pedro Alves <palves@redhat.com>
  2377. * cli/cli-script.c (execute_control_command): Use std::string
  2378. instead of cleanups.
  2379. (locate_arg): Constify return type.
  2380. (insert_args): Constify paremeter. Simplify using std::string.
  2381. Return a std::string.
  2382. 2016-11-08 Pedro Alves <palves@redhat.com>
  2383. * breakpoint.c (struct commands_info) <arg>: Constify.
  2384. (commands_command_1): Constify 'arg' parameter. Use std::string
  2385. and string_printf.
  2386. (commands_from_control_command): Constify 'arg' parameter.
  2387. (map_breakpoint_numbers): Constify 'args' parameter.
  2388. * breakpoint.h (commands_from_control_command): Constify 'arg'
  2389. parameter.
  2390. 2016-11-08 Pedro Alves <palves@redhat.com>
  2391. * cli/cli-script.c (execute_control_command): Assume insert_args
  2392. never returns NULL.
  2393. (insert_args): Assume xmalloc never returns NULL.
  2394. 2016-11-08 Pedro Alves <palves@redhat.com>
  2395. * Makefile.in (COMMON_OBS): Add utils-selftests.o.
  2396. * common/common-utils.c (string_printf): New function.
  2397. * common/common-utils.h: Include <string>.
  2398. (string_printf): Declare.
  2399. * utils-selftests.c: New file.
  2400. 2016-11-08 Yao Qi <yao.qi@linaro.org>
  2401. * aarch64-tdep.c (aarch64_software_single_step): Return
  2402. VEC (CORE_ADDR) *. Return NULL instead of 0. Don't call
  2403. insert_single_step_breakpoint.
  2404. * alpha-tdep.c (alpha_deal_with_atomic_sequence): Likewise.
  2405. (alpha_software_single_step): Likewise.
  2406. * alpha-tdep.h (alpha_software_single_step): Update declaration.
  2407. * arm-linux-tdep.c (arm_linux_software_single_step): Return
  2408. VEC (CORE_ADDR) *. Return NULL instead of 0.
  2409. * arm-tdep.c (arm_software_single_step): Return NULL instead of 0.
  2410. * arm-tdep.h (arm_software_single_step): Update declaration.
  2411. * breakpoint.c (insert_single_step_breakpoints): New function.
  2412. * breakpoint.h (insert_single_step_breakpoints): Declare.
  2413. * cris-tdep.c (cris_software_single_step): Return
  2414. VEC (CORE_ADDR) *. Don't call insert_single_step_breakpoint.
  2415. * gdbarch.sh (software_single_step): Change it to return
  2416. VEC (CORE_ADDR) *.
  2417. * gdbarch.c, gdbarch.h: Regenerated.
  2418. * infrun.c (maybe_software_singlestep): Adjust.
  2419. * mips-tdep.c (mips_deal_with_atomic_sequence): Return
  2420. VEC (CORE_ADDR) *. Don't call insert_single_step_breakpoint.
  2421. (micromips_deal_with_atomic_sequence): Likewise.
  2422. (deal_with_atomic_sequence): Likewise.
  2423. (mips_software_single_step): Likewise.
  2424. * mips-tdep.h (mips_software_single_step): Update declaration.
  2425. * moxie-tdep.c (moxie_software_single_step): Likewise.
  2426. * nios2-tdep.c (nios2_software_single_step): Likewise.
  2427. * ppc-tdep.h (ppc_deal_with_atomic_sequence): Update
  2428. declaration.
  2429. * record-full.c (record_full_resume): Adjust.
  2430. (record_full_wait_1): Likewise.
  2431. * rs6000-aix-tdep.c (rs6000_software_single_step): Return
  2432. VEC (CORE_ADDR) *. Don't call insert_single_step_breakpoint.
  2433. * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Return
  2434. VEC (CORE_ADDR) *. Don't call insert_single_step_breakpoint.
  2435. * s390-linux-tdep.c (s390_software_single_step): Likewise.
  2436. * sparc-tdep.c (sparc_software_single_step): Likewise.
  2437. * spu-tdep.c (spu_software_single_step): Likewise.
  2438. * tic6x-tdep.c (tic6x_software_single_step): Likewise.
  2439. 2016-11-08 Yao Qi <yao.qi@linaro.org>
  2440. * arm-linux-tdep.c (arm_linux_software_single_step): Write
  2441. adjusted address back to vector. Call insert_single_step_breakpoint
  2442. in a new loop.
  2443. * arm-tdep.c (arm_software_single_step): Likewise.
  2444. 2016-11-08 Yao Qi <yao.qi@linaro.org>
  2445. * arm-linux-tdep.c (arm_linux_software_single_step): Don't
  2446. call arm_insert_single_step_breakpoint, call
  2447. insert_single_step_breakpoint instead.
  2448. * arm-tdep.c (arm_insert_single_step_breakpoint): Remove.
  2449. (arm_software_single_step): Don't call
  2450. arm_insert_single_step_breakpoint, call
  2451. insert_single_step_breakpoint instead.
  2452. * arm-tdep.h (arm_insert_single_step_breakpoint): Remove
  2453. declaration.
  2454. 2016-11-08 Cordian A. Daniluk <th3c0r1uk@gmail.com>
  2455. PR breakpoints/20739
  2456. * breakpoint.c (check_fast_tracepoint_sals): Don't print duplicate
  2457. 0x prefix.
  2458. 2016-11-08 Yao Qi <yao.qi@linaro.org>
  2459. * rust-lang.c (val_print_struct): Fix indentation.
  2460. 2016-11-08 Lionel Flandrin <lionel@svkt.org>
  2461. * remote.c (process_g_packet): Detect truncated registers in 'g'
  2462. packets and raise an error.
  2463. 2016-11-07 Doug Evans <dje@google.com>
  2464. * guile/scm-value.c (gdbscm_value_field): Fix call to value_struct_elt.
  2465. * python/py-value.c (valpy_getitem): Ditto.
  2466. 2016-11-07 Doug Evans <dje@google.com>
  2467. * i386-tdep.c (i386_gdbarch_init): Add comments.
  2468. 2016-11-07 Doug Evans <dje@google.com>
  2469. * python/py-unwind.c (unwind_infopy_str): Fix use of VEC_iterate.
  2470. 2016-11-07 Doug Evans <dje@google.com>
  2471. * configure.tgt (x86_64-*-elf*): Remove i386bsd-tdep.o.
  2472. 2016-11-04 Simon Marchi <simon.marchi@polymtl.ca>
  2473. * maint.c (scoped_command_stats::scoped_command_stats): Fix typo.
  2474. * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Likewise.
  2475. * ppcobsd-tdep.c (_initialize_ppcobsd_tdep): Likewise.
  2476. * ui-out.c (ui_out_new): Likewise.
  2477. * utils.c (init_page_info): Likewise.
  2478. (reset_prompt_for_continue_wait_time): Likewise.
  2479. * windows-nat.c (windows_init_thread_list): Likewise.
  2480. * xtensa-tdep.c (call0_analyze_prologue): Likewise.
  2481. 2016-10-29 Manish Goregaokar <manish@mozilla.com>
  2482. * rust-exp.y: Parse `sizeof(exp)` as `UNOP_SIZEOF`.
  2483. 2016-10-28 Manish Goregaokar <manish@mozilla.com>
  2484. * rust-lang.c (rust_union_is_untagged): Add function to check if a
  2485. union is an untagged union.
  2486. (rust_val_print): Handle printing of untagged union values.
  2487. (rust_print_type): Handle printing of untagged union types.
  2488. (rust_evaluate_subexp): Handle evaluating field access on untagged
  2489. unions.
  2490. 2016-10-27 Manish Goregaokar <manish@mozilla.com>
  2491. * rust-lang.c (rust_get_disr_info): Treat univariant enums without
  2492. discriminants as encoded enums with a real field.
  2493. * rust-lang.c (rust_evaluate_subexp): Handle field access on
  2494. encoded struct-like enums.
  2495. 2016-11-03 Yao Qi <yao.qi@linaro.org>
  2496. * Makefile.in (.y.c): Replace YY_NULL with YY_NULLPTR.
  2497. 2016-11-03 Yao Qi <yao.qi@linaro.org>
  2498. Pedro Alves <palves@redhat.com>
  2499. * aarch64-tdep.c (aarch64_default_breakpoint): Change it to
  2500. constexpr. Don't use GDBARCH_BREAKPOINT_MANIPULATION.
  2501. (aarch64_gdbarch_init): Don't use
  2502. SET_GDBARCH_BREAKPOINT_MANIPULATION.
  2503. * alpha-tdep.c (break_insn): Rename to alpha_break_insn.
  2504. Don't use GDBARCH_BREAKPOINT_MANIPULATION.
  2505. (alpha_gdbarch_init): Don't use
  2506. SET_GDBARCH_BREAKPOINT_MANIPULATION.
  2507. * arc-tdep.c (arc_gdbarch_init): Don't use
  2508. SET_GDBARCH_BREAKPOINT_MANIPULATION.
  2509. * arch-utils.h (GDBARCH_BREAKPOINT_MANIPULATION): Remove.
  2510. (struct bp_manipulation): New.
  2511. (SET_GDBARCH_BREAKPOINT_MANIPULATION): Remove.
  2512. (struct bp_manipulation_endian): New.
  2513. (BP_MANIPULATION): New.
  2514. (BP_MANIPULATION_ENDIAN): New.
  2515. * arm-tdep.c (arm_gdbarch_init): Don't use
  2516. SET_GDBARCH_BREAKPOINT_MANIPULATION.
  2517. * avr-tdep.c (avr_break_insn): Change it constexpr.
  2518. (avr_gdbarch_init): Don't use
  2519. SET_GDBARCH_BREAKPOINT_MANIPULATION.
  2520. * bfin-tdep.c (bfin_gdbarch_init): Likewise.
  2521. * cris-tdep.c (cris_gdbarch_init): Likewise.
  2522. * frv-tdep.c (breakpoint): Rename it to frv_break_insn, and
  2523. change its type to constexpr. Don't use
  2524. GDBARCH_BREAKPOINT_MANIPULATION.
  2525. (frv_gdbarch_init): Don't use
  2526. SET_GDBARCH_BREAKPOINT_MANIPULATION.
  2527. * ft32-tdep.c (breakpoint): Rename it to ft32_break_insn and
  2528. change its type to constexpr. Don't use
  2529. GDBARCH_BREAKPOINT_MANIPULATION.
  2530. (ft32_gdbarch_init): Don't use
  2531. SET_GDBARCH_BREAKPOINT_MANIPULATION.
  2532. * h8300-tdep.c (breakpoint): Rename it to h8300_break_insn.
  2533. Don't use GDBARCH_BREAKPOINT_MANIPULATION.
  2534. (h8300_gdbarch_init): Don't use
  2535. SET_GDBARCH_BREAKPOINT_MANIPULATION.
  2536. * hppa-tdep.c (breakpoint): Rename it to h8300_break_insn.
  2537. Don't use GDBARCH_BREAKPOINT_MANIPULATION.
  2538. (hppa_gdbarch_init): Don't use
  2539. SET_GDBARCH_BREAKPOINT_MANIPULATION.
  2540. * i386-tdep.c (break_insn): Rename it to i386_break_insn.
  2541. Don't use GDBARCH_BREAKPOINT_MANIPULATION.
  2542. (i386_gdbarch_init): Don't use
  2543. SET_GDBARCH_BREAKPOINT_MANIPULATION.
  2544. * iq2000-tdep.c (iq2000_gdbarch_init): Don't use
  2545. SET_GDBARCH_BREAKPOINT_MANIPULATION.
  2546. * lm32-tdep.c (breakpoint): Rename it to lm32_break_insn and
  2547. change its type to constexpr. Don't use
  2548. GDBARCH_BREAKPOINT_MANIPULATION.
  2549. (lm32_gdbarch_init): Don't use
  2550. SET_GDBARCH_BREAKPOINT_MANIPULATION.
  2551. * m32c-tdep.c (break_insn): Rename it to m32c_break_insn and change
  2552. its type to constexpr. Don't use GDBARCH_BREAKPOINT_MANIPULATION.
  2553. (m32c_gdbarch_init): Don't use
  2554. SET_GDBARCH_BREAKPOINT_MANIPULATION.
  2555. * m32r-tdep.c (m32r_gdbarch_init): Likewise.
  2556. * m68hc11-tdep.c (breakpoint): Rename it to m68hc11_break_insn and
  2557. change its type to constexpr.
  2558. Don't use GDBARCH_BREAKPOINT_MANIPULATION.
  2559. (m68hc11_gdbarch_init): Don't use SET_GDBARCH_BREAKPOINT_MANIPULATION.
  2560. * m68k-tdep.c (break_insn): Rename it to m68k_break_insn and change
  2561. its type to constexpr. Don't use GDBARCH_BREAKPOINT_MANIPULATION.
  2562. (m68k_gdbarch_init): Don't use
  2563. SET_GDBARCH_BREAKPOINT_MANIPULATION.
  2564. * m88k-tdep.c (break_insn): Rename it to m88k_break_insn and change
  2565. its type to constexpr. Don't use GDBARCH_BREAKPOINT_MANIPULATION.
  2566. (m88k_gdbarch_init): Don't use
  2567. SET_GDBARCH_BREAKPOINT_MANIPULATION.
  2568. * mep-tdep.c (breakpoint): Rename it to mep_break_insn and change
  2569. its type to constexpr. Don't use GDBARCH_BREAKPOINT_MANIPULATION.
  2570. (mep_gdbarch_init): Don't use
  2571. SET_GDBARCH_BREAKPOINT_MANIPULATION.
  2572. * microblaze-tdep.c (break_insn): Rename it to
  2573. microblaze_break_insn and change its type to constexpr. Don't use
  2574. GDBARCH_BREAKPOINT_MANIPULATION.
  2575. (microblaze_gdbarch_init): Don't use
  2576. SET_GDBARCH_BREAKPOINT_MANIPULATION.
  2577. * mips-tdep.c (mips_gdbarch_init): Likewise.
  2578. * mn10300-tdep.c (breakpoint): Rename it to mn10300_break_insn and
  2579. change its type to constexpr. Don't use
  2580. GDBARCH_BREAKPOINT_MANIPULATION.
  2581. (mn10300_gdbarch_init): Don't use
  2582. SET_GDBARCH_BREAKPOINT_MANIPULATION.
  2583. * moxie-tdep.c (breakpoint): Rename it to moxie_break_insn and
  2584. change its type to constexpr. Don't use
  2585. GDBARCH_BREAKPOINT_MANIPULATION.
  2586. (moxie_gdbarch_init): Don't use
  2587. SET_GDBARCH_BREAKPOINT_MANIPULATION.
  2588. * msp430-tdep.c (breakpoint): Rename it to msp430_break_insn
  2589. and change its type to constexpr. Don't use
  2590. GDBARCH_BREAKPOINT_MANIPULATION.
  2591. (msp430_gdbarch_init): Don't use
  2592. SET_GDBARCH_BREAKPOINT_MANIPULATION.
  2593. * mt-tdep.c (mt_gdbarch_init): Likewise.
  2594. * nds32-tdep.c (break_insn): Rename it to nds32_break_insn
  2595. and change its type to constexpr. Don't use
  2596. GDBARCH_BREAKPOINT_MANIPULATION.
  2597. (nds32_gdbarch_init): Don't use
  2598. SET_GDBARCH_BREAKPOINT_MANIPULATION.
  2599. * nios2-tdep.c (nios2_gdbarch_init): Likewise.
  2600. * rl78-tdep.c (breakpoint): Rename it to rl78_break_ins
  2601. and change its type to rl78_break_insn. Don't use
  2602. GDBARCH_BREAKPOINT_MANIPULATION.
  2603. (rl78_gdbarch_init): Don't use
  2604. SET_GDBARCH_BREAKPOINT_MANIPULATION.
  2605. * rs6000-tdep.c (big_breakpoint): Change its type to
  2606. constexpr.
  2607. (little_breakpoint): Likewise.
  2608. Don't use GDBARCH_BREAKPOINT_MANIPULATION_ENDIAN.
  2609. (rs6000_gdbarch_init): Don't use
  2610. SET_GDBARCH_BREAKPOINT_MANIPULATION.
  2611. * rx-tdep.c (breakpoint): Rename it to rx_break_insn and
  2612. change its type to constexpr. Don't use
  2613. GDBARCH_BREAKPOINT_MANIPULATION.
  2614. (rx_gdbarch_init): Don't use
  2615. SET_GDBARCH_BREAKPOINT_MANIPULATION.
  2616. * s390-linux-tdep.c (breakpoint): Rename it to s390_break_insn
  2617. and change its type to constexpr. Don't use
  2618. GDBARCH_BREAKPOINT_MANIPULATION
  2619. (s390_gdbarch_init): Don't use
  2620. SET_GDBARCH_BREAKPOINT_MANIPULATION.
  2621. * score-tdep.c (score_gdbarch_init): Likewise.
  2622. * sh-tdep.c (sh_gdbarch_init): Likewise.
  2623. * sh64-tdep.c (sh64_gdbarch_init): Likewise.
  2624. * sparc-tdep.c (break_insn): Rename it to sparc_break_insn
  2625. and change its type to constexpr. Don't use
  2626. GDBARCH_BREAKPOINT_MANIPULATION.
  2627. (sparc32_gdbarch_init): Don't use
  2628. SET_GDBARCH_BREAKPOINT_MANIPULATION.
  2629. * spu-tdep.c (breakpoint): Rename it to spu_break_insn and change
  2630. its type to constexpr. Don't use
  2631. GDBARCH_BREAKPOINT_MANIPULATION.
  2632. (spu_gdbarch_init): Don't use
  2633. SET_GDBARCH_BREAKPOINT_MANIPULATION.
  2634. * tic6x-tdep.c (tic6x_gdbarch_init): Likewise.
  2635. * tilegx-tdep.c (breakpoint): Rename it to tilegx_break_insn
  2636. and change its type to constexpr. Don't use
  2637. GDBARCH_BREAKPOINT_MANIPULATION.
  2638. (tilegx_gdbarch_init): Don't use
  2639. SET_GDBARCH_BREAKPOINT_MANIPULATION.
  2640. * v850-tdep.c (v850_gdbarch_init): Likewise.
  2641. * vax-tdep.c (break_insn): Rename it to vax_break_insn and
  2642. change its type to constexpr.
  2643. Don't use GDBARCH_BREAKPOINT_MANIPULATION.
  2644. (vax_gdbarch_init): Don't use
  2645. SET_GDBARCH_BREAKPOINT_MANIPULATION.
  2646. * xstormy16-tdep.c (breakpoint): Rename it to
  2647. xstormy16_break_insn and change its type to constexpr.
  2648. Don't use GDBARCH_BREAKPOINT_MANIPULATION.
  2649. (xstormy16_gdbarch_init): Don't use
  2650. SET_GDBARCH_BREAKPOINT_MANIPULATION.
  2651. * xtensa-tdep.c (xtensa_gdbarch_init): Likewise.
  2652. 2016-11-03 Yao Qi <yao.qi@linaro.org>
  2653. * arm-tdep.c (arm_override_mode): Remove.
  2654. (arm_pc_is_thumb): Update.
  2655. (arm_insert_single_step_breakpoint): Update.
  2656. 2016-11-03 Yao Qi <yao.qi@linaro.org>
  2657. * arch-utils.c (default_breakpoint_kind_from_current_state):
  2658. New function.
  2659. * arch-utils.h (default_breakpoint_kind_from_current_state):
  2660. Declare.
  2661. * arm-tdep.c (arm_breakpoint_kind_from_current_state): New
  2662. function.
  2663. (arm_gdbarch_init): Call
  2664. set_gdbarch_breakpoint_kind_from_current_state.
  2665. * breakpoint.c (breakpoint_kind): Call
  2666. gdbarch_breakpoint_kind_from_current_state for single step
  2667. breakpoint. Update comments.
  2668. * gdbarch.sh (breakpoint_kind_from_current_state): New.
  2669. * gdbarch.c, gdbarch.h: Regenerate.
  2670. 2016-11-03 Yao Qi <yao.qi@linaro.org>
  2671. * arch-utils.c (default_breakpoint_from_pc): New function.
  2672. * arch-utils.h (GDBARCH_BREAKPOINT_FROM_PC): Remove.
  2673. (GDBARCH_BREAKPOINT_MANIPULATION): Don't use
  2674. GDBARCH_BREAKPOINT_FROM_PC.
  2675. (SET_GDBARCH_BREAKPOINT_MANIPULATION): Don't call
  2676. set_gdbarch_breakpoint_from_pc.
  2677. (default_breakpoint_from_pc): Remove declaration.
  2678. * gdbarch.sh (breakpoint_from_pc): Add its default implementation.
  2679. * gdbarch.c, gdbarch.h: Regenerate.
  2680. * arm-tdep.c: Don't use GDBARCH_BREAKPOINT_FROM_PC.
  2681. * arc-tdep.c, bfin-tdep.c, cris-tdep.c, iq2000-tdep.c: Likewise.
  2682. * m32r-tdep.c, mips-tdep.c, mt-tdep.c: Likewise.
  2683. * nios2-tdep.c, score-tdep.c, sh-tdep.c: Likewise.
  2684. * sh64-tdep.c, tic6x-tdep.c, v850-tdep.c, xtensa-tdep.c: Likewise.
  2685. 2016-11-03 Yao Qi <yao.qi@linaro.org>
  2686. * arch-utils.c (default_remote_breakpoint_from_pc): Remove.
  2687. * arch-utils.h (default_remote_breakpoint_from_pc): Remove.
  2688. * arm-tdep.c (arm_remote_breakpoint_from_pc): Remove.
  2689. (arm_gdbarch_init): Don't call
  2690. set_gdbarch_remote_breakpoint_from_pc.
  2691. * gdbarch.sh (remote_breakpoint_from_pc): Remove.
  2692. * gdbarch.c, gdbarch.h: Regenerate.
  2693. * mips-tdep.c (mips_remote_breakpoint_from_pc): Remove.
  2694. (mips_gdbarch_init): Don't call
  2695. set_gdbarch_remote_breakpoint_from_pc.
  2696. 2016-11-03 Yao Qi <yao.qi@linaro.org>
  2697. * breakpoint.h (struct bp_target_info) <placed_size>: Remove.
  2698. <kind>: New field.
  2699. Update all users.
  2700. 2016-11-03 Yao Qi <yao.qi@linaro.org>
  2701. * arch-utils.h (GDBARCH_BREAKPOINT_MANIPULATION): Define
  2702. breakpoint_kind_from_pc and sw_breakpoint_from_kind.
  2703. (GDBARCH_BREAKPOINT_MANIPULATION_ENDIAN): Likewise.
  2704. (SET_GDBARCH_BREAKPOINT_MANIPULATION): Call
  2705. set_gdbarch_breakpoint_kind_from_pc and
  2706. set_gdbarch_sw_breakpoint_from_kind.
  2707. * arm-tdep.c: Add comments.
  2708. * bfin-tdep.c: Likewise.
  2709. * breakpoint.c (breakpoint_kind): New function.
  2710. (insert_bp_location): Set target_info.placed_size and
  2711. target_info.placed_address.
  2712. (bkpt_insert_location): Likewise.
  2713. * cris-tdep.c: Add comments.
  2714. * gdbarch.sh (breakpoint_kind_from_pc): New.
  2715. (sw_breakpoint_from_kind): New.
  2716. * gdbarch.c, gdbarch.h: Regenerated.
  2717. * ia64-tdep.c (ia64_memory_insert_breakpoint): Don't set
  2718. bp_tgt->placed_size.
  2719. (ia64_memory_remove_breakpoint): Don't assert
  2720. bp_tgt->placed_size.
  2721. (ia64_breakpoint_kind_from_pc): New function.
  2722. (ia64_gdbarch_init): Install ia64_breakpoint_kind_from_pc.
  2723. * m32r-tdep.c (m32r_memory_insert_breakpoint): Don't set
  2724. bp_tgt->placed_size.
  2725. * mem-break.c (default_memory_insert_breakpoint): Don't set
  2726. bp_tgt->placed_size. Call gdbarch_sw_breakpoint_from_kind.
  2727. (default_memory_remove_breakpoint): Call
  2728. gdbarch_sw_breakpoint_from_kind.
  2729. (memory_validate_breakpoint): Don't check bp_tgt->placed_size.
  2730. * mips-tdep.c: Add comments.
  2731. * mt-tdep.c: Likewise.
  2732. * nios2-tdep.c: Likewise.
  2733. * record-full.c (record_full_insert_breakpoint): Don't call
  2734. gdbarch_breakpoint_from_pc. Don't set bp_tgt->placed_address
  2735. and bp_tgt->placed_size.
  2736. * remote.c (remote_insert_breakpoint): Don't call
  2737. gdbarch_remote_breakpoint_from_pc. Use bp_tgt->placed_size.
  2738. Don't set bp_tgt->placed_address and bp_tgt->placed_size.
  2739. (remote_insert_hw_breakpoint): Likewise.
  2740. * score-tdep.c: Likewise.
  2741. * sh-tdep.c: Likewise.
  2742. * tic6x-tdep.c: Likewise.
  2743. * v850-tdep.c: Likewise.
  2744. * xtensa-tdep.c: Likewise.
  2745. 2016-11-03 Yao Qi <yao.qi@linaro.org>
  2746. * arch-utils.h (GDBARCH_BREAKPOINT_FROM_PC): New macro.
  2747. (GDBARCH_BREAKPOINT_MANIPULATION_ENDIAN): New macro.
  2748. * arm-tdep.c (arm_breakpoint_from_pc): Remove.
  2749. (arm_breakpoint_kind_from_pc): New function.
  2750. (arm_sw_breakpoint_from_kind): New function.
  2751. (arm_breakpoint_from_pc): Call arm_breakpoint_kind_from_pc
  2752. and arm_sw_breakpoint_from_kind.
  2753. Use GDBARCH_BREAKPOINT_FROM_PC.
  2754. (arm_remote_breakpoint_from_pc): Call
  2755. arm_breakpoint_kind_from_pc.
  2756. (arm_gdbarch_init): Replace set_gdbarch_breakpoint_from_pc
  2757. with SET_GDBARCH_BREAKPOINT_MANIPULATION.
  2758. * arc-tdep.c: Likewise.
  2759. * bfin-tdep.c: Likewise.
  2760. * cris-tdep.c: Likewise.
  2761. * iq2000-tdep.c: Likewise.
  2762. * m32r-tdep.c: Likewise.
  2763. * mips-tdep.c: Likewise.
  2764. * mt-tdep.c: Likewise.
  2765. * nios2-tdep.c: Likewise.
  2766. * rs6000-tdep.c: Likewise.
  2767. * score-tdep.c: Likewise.
  2768. * sh-tdep.c: Likewise.
  2769. * sh64-tdep.c: Likewise.
  2770. * tic6x-tdep.c: Likewise.
  2771. * v850-tdep.c: Likewise.
  2772. * xtensa-tdep.c: Likewise.
  2773. 2016-11-03 Yao Qi <yao.qi@linaro.org>
  2774. * mips-tdep.c (mips_breakpoint_kind): New enum.
  2775. (mips_breakpoint_from_pc): Use it.
  2776. (mips_remote_breakpoint_from_pc): Likewise.
  2777. 2016-11-03 Yao Qi <yao.qi@linaro.org>
  2778. * arch-utils.h (GDBARCH_BREAKPOINT_MANIPULATION): New macro.
  2779. (SET_GDBARCH_BREAKPOINT_MANIPULATION): New macro.
  2780. aarch64-tdep.c (aarch64_breakpoint_from_pc): Remove. Use
  2781. GDBARCH_BREAKPOINT_MANIPULATION.
  2782. (aarch64_gdbarch_init): Replace set_gdbarch_breakpoint_from_pc
  2783. with SET_GDBARCH_BREAKPOINT_MANIPULATION.
  2784. * alpha-tdep.c: Likewise.
  2785. * avr-tdep.c: Likewise.
  2786. * frv-tdep.c: Likewise.
  2787. * ft32-tdep.c: Likewise.
  2788. * h8300-tdep.c: Likewise.
  2789. * hppa-tdep.c: Likewise.
  2790. * i386-tdep.c: Likewise.
  2791. * lm32-tdep.c: Likewise.
  2792. * m32c-tdep.c: Likewise.
  2793. * m68hc11-tdep.c: Likewise.
  2794. * m68k-tdep.c: Likewise.
  2795. * m88k-tdep.c: Likewise.
  2796. * mep-tdep.c: Likewise.
  2797. * microblaze-tdep.c: Likewise.
  2798. * mn10300-tdep.c: Likewise.
  2799. * moxie-tdep.c: Likewise.
  2800. * msp430-tdep.c: Likewise.
  2801. * rl78-tdep.c: Likewise.
  2802. * rx-tdep.c: Likewise.
  2803. * s390-linux-tdep.c: Likewise.
  2804. * sparc-tdep.c: Likewise.
  2805. * spu-tdep.c: Likewise.
  2806. * tilegx-tdep.c: Likewise.
  2807. * vax-tdep.c: Likewise.
  2808. * xstormy16-tdep.c: Likewise.
  2809. 2016-11-03 Yao Qi <yao.qi@linaro.org>
  2810. * mem-break.c (default_memory_insert_breakpoint): Don't check
  2811. 'bp' against NULL.
  2812. * microblaze-linux-tdep.c (microblaze_linux_memory_remove_breakpoint):
  2813. Likewise.
  2814. * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
  2815. 2016-11-02 Tom Tromey <tom@tromey.com>
  2816. * dwarf2loc.c (dwarf_evaluate_loc_desc::get_base_type): Rename
  2817. from impl_get_base_type. Rewrite.
  2818. (struct dwarf_expr_baton): Remove.
  2819. (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value): Save and
  2820. restore more fields.
  2821. (symbol_needs_eval_context::get_frame_pc): New method.
  2822. * dwarf2expr.h (dwarf_expr_context::get_base_type): Now public,
  2823. virtual.
  2824. (dwarf_expr_context::impl_get_base_type): Remove.
  2825. * dwarf2expr.c (dwarf_expr_context::get_base_type): Remove.
  2826. 2016-10-31 Maciej W. Rozycki <macro@imgtec.com>
  2827. * configure.ac <mips-sgi-irix5*>: Remove <sys/proc.h> _KMEMUSER
  2828. workaround.
  2829. * configure: Regenerate.
  2830. * config.in: Regenerate.
  2831. 2016-10-31 Maciej W. Rozycki <macro@imgtec.com>
  2832. * mips-tdep.c (mips_r3041_reg_names): Remove.
  2833. (mips_breakpoint_from_pc): Remove IDT and PMON breakpoint
  2834. encodings.
  2835. 2016-10-31 Maciej W. Rozycki <macro@imgtec.com>
  2836. * defs.h (gdb_osabi): Remove GDB_OSABI_IRIX enum value.
  2837. * osabi.c (gdb_osabi_names): Remove "Irix" entry.
  2838. * mips-tdep.c (mips_irix_reg_names): Remove.
  2839. (mips_register_type): Remove GDB_OSABI_IRIX code.
  2840. (mips_pseudo_register_type): Likewise.
  2841. (mips_breakpoint_from_pc): Likewise.
  2842. (mips_gdbarch_init): Likewise.
  2843. 2016-10-29 Pedro Alves <palves@redhat.com>
  2844. * NEWS: Clarify C++ requirement.
  2845. 2016-10-29 Pedro Alves <palves@redhat.com>
  2846. * NEWS: Adjust to mention C++11 requirement.
  2847. 2016-10-29 Eli Zaretskii <eliz@gnu.org>
  2848. * NEWS: Mention support for redirection on MS-Windows.
  2849. * windows-nat.c (redir_open, redir_set_redirection)
  2850. (redirect_inferior_handles) [!__CYGWIN__]: New functions.
  2851. (windows_create_inferior) [!__CYGWIN__]: Use
  2852. 'redirect_inferior_handles' to redirect standard handles of the
  2853. debuggee if the command line requests that.
  2854. 2016-10-28 Pedro Alves <palves@redhat.com>
  2855. * Makefile.in (CXX_DIALECT): Get from configure.
  2856. (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
  2857. (FLAGS_TO_PASS): Pass CXX_DIALECT.
  2858. * acinclude.m4: Include ax_cxx_compile_stdcxx.m4.
  2859. * ax_cxx_compile_stdcxx.m4: Add FSF copyright header. Set and
  2860. AC_SUBST CXX_DIALECT instead of changing CXX/CXXCPP.
  2861. * configure.ac: Call AX_CXX_COMPILE_STDCXX.
  2862. * config.in: Regenerate.
  2863. * configure: Regenerate.
  2864. 2016-10-28 Pedro Alves <palves@redhat.com>
  2865. * ax_cxx_compile_stdcxx.m4: New file.
  2866. 2016-10-28 Pedro Alves <palves@redhat.com>
  2867. * maint.c (scoped_command_stats::scoped_command_stats): Clear
  2868. m_space_enabled, m_time_enabled and m_symtab_enabled.
  2869. 2016-10-28 Markus Metzger <markus.t.metzger@intel.com>
  2870. * btrace.c (bfun_s): New typedef.
  2871. (ftrace_update_caller): Print caller in debug dump.
  2872. (ftrace_get_caller, ftrace_match_backtrace, ftrace_fixup_level)
  2873. (ftrace_compute_global_level_offset, ftrace_connect_bfun)
  2874. (ftrace_connect_backtrace, ftrace_bridge_gap, btrace_bridge_gaps): New.
  2875. (btrace_compute_ftrace_bts): Pass vector of gaps. Collect gaps.
  2876. (btrace_compute_ftrace_pt): Likewise.
  2877. (btrace_compute_ftrace): Split into this, ...
  2878. (btrace_compute_ftrace_1): ... this, and ...
  2879. (btrace_finalize_ftrace): ... this. Call btrace_bridge_gaps.
  2880. 2016-10-28 Markus Metzger <markus.t.metzger@intel.com>
  2881. * btrace.c (ftrace_new_return): Start from the previous function's
  2882. level if we can't find a matching call for a return.
  2883. 2016-10-28 Markus Metzger <markus.t.metzger@intel.com>
  2884. * btrace.c (ftrace_update_function): Update tail call heuristic.
  2885. 2016-10-28 Markus Metzger <markus.t.metzger@intel.com>
  2886. * btrace.c (btrace_compute_ftrace_bts, ftrace_add_pt): Allow
  2887. leading gaps.
  2888. * record-btrace.c (record_btrace_single_step_forward)
  2889. (record_btrace_single_step_backward): Jump back to last
  2890. instruction if step ends at a gap.
  2891. (record_btrace_goto_begin): Skip gaps.
  2892. 2016-10-28 Markus Metzger <markus.t.metzger@intel.com>
  2893. * btrace.c (ftrace_add_pt): Fix gap indication. Add warning for non-
  2894. contiguous trace and overflow. Rephrase trace decode warning and print
  2895. instruction number. Remove dead gaps warning.
  2896. (btrace_compute_ftrace_bts): Rephrase warnings and print instruction
  2897. number.
  2898. 2016-10-25 Sandra Loosemore <sandra@codesourcery.com>
  2899. Luis Machado <lgustavo@codesourcery.com>
  2900. Pedro Alves <palves@redhat.com>
  2901. PR gdb/20569
  2902. * exceptions.c (exception_print_same): Moved here from exec.c.
  2903. * exceptions.h (exception_print_same): Declare.
  2904. * exec.h: Include "symfile-add-flags.h".
  2905. (try_open_exec_file): New declaration.
  2906. * exec.c (exception_print_same): Moved to exceptions.c.
  2907. (try_open_exec_file): New function.
  2908. (exec_file_locate_attach): Rename exec_file and full_exec_path
  2909. variables to avoid confusion between target and host pathnames.
  2910. Move pathname processing logic to exec_file_find. Do not return
  2911. early if pathname lookup fails; Call try_open_exec_file.
  2912. * infrun.c (follow_exec): Split and rename execd_pathname variable
  2913. to avoid confusion between target and host pathnames. Warn if
  2914. pathname lookup fails. Pass target pathname to
  2915. target_follow_exec, not hostpathname. Call try_open_exec_file.
  2916. * main.c (symbol_file_add_main_adapter): New function.
  2917. (captured_main_1): Use it.
  2918. * solib-svr4.c (open_symbol_file_object): Adjust to pass
  2919. symfile_add_flags to symbol_file_add_main.
  2920. * solib.c (exec_file_find): Incorporate fallback logic for relative
  2921. pathnames formerly in exec_file_locate_attach.
  2922. * symfile.c (symbol_file_add_main, symbol_file_add_main_1):
  2923. Replace 'from_tty' parameter with a symfile_add_file.
  2924. (symbol_file_command): Adjust to pass symfile_add_flags to
  2925. symbol_file_add_main.
  2926. * symfile.h (symbol_file_add_main): Replace 'from_tty' parameter
  2927. with a symfile_add_file.
  2928. 2016-10-26 Pedro Alves <palves@redhat.com>
  2929. * coffread.c (coff_symfile_read): Use symfile_add_flags.
  2930. * dbxread.c (dbx_symfile_read): Ditto.
  2931. * elfread.c (elf_symfile_read): Ditto.
  2932. * inferior.h: Include symfile-add-flags.h.
  2933. (struct inferior) <symfile_flags>: Now symfile_add_flags.
  2934. * machoread.c (macho_add_oso_symfile, macho_symfile_read_all_oso)
  2935. (macho_symfile_read, mipscoff_symfile_read): Use
  2936. symfile_add_flags.
  2937. * objfile-flags.h: New file.
  2938. * objfiles.c (allocate_objfile): Use objfile_flags.
  2939. * objfiles.h: Include objfile-flags.h.
  2940. (struct objfile) <flags>: Now an objfile_flags.
  2941. (OBJF_REORDERED, OBJF_SHARED, OBJF_READNOW, OBJF_USERLOADED)
  2942. (OBJF_PSYMTABS_READ, OBJF_MAINLINE, OBJF_NOT_FILENAME): Delete.
  2943. Converted to an enum-flags in objfile-flags.h.
  2944. (allocate_objfile): Use objfile_flags.
  2945. * python/py-objfile.c (objfpy_add_separate_debug_file): Remove
  2946. unnecessary local.
  2947. * solib.c (solib_read_symbols, solib_add)
  2948. (reload_shared_libraries_1): Use symfile_add_flags.
  2949. * solib.h: Include "symfile-add-flags.h".
  2950. (solib_read_symbols): Use symfile_add_flags.
  2951. * symfile-add-flags.h: New file.
  2952. * symfile-debug.c (debug_sym_read): Use symfile_add_flags.
  2953. * symfile-mem.c (symbol_file_add_from_memory): Use
  2954. symfile_add_flags.
  2955. * symfile.c (read_symbols, syms_from_objfile_1)
  2956. (syms_from_objfile, finish_new_objfile): Use symfile_add_flags.
  2957. (symbol_file_add_with_addrs): Use symfile_add_flags and
  2958. objfile_flags.
  2959. (symbol_file_add_separate): Use symfile_add_flags.
  2960. (symbol_file_add_from_bfd, symbol_file_add): Use symfile_add_flags
  2961. and objfile_flags.
  2962. (symbol_file_add_main_1): : Use objfile_flags. Fix add_flags vs
  2963. flags confusion.
  2964. (symbol_file_command): Use objfile_flags.
  2965. (add_symbol_file_command): Use symfile_add_flags and
  2966. objfile_flags.
  2967. (clear_symtab_users): Use symfile_add_flags.
  2968. * symfile.h: Include "symfile-add-flags.h" and "objfile-flags.h".
  2969. (struct sym_fns) <sym_read>: Use symfile_add_flags.
  2970. (clear_symtab_users): Use symfile_add_flags.
  2971. (enum symfile_add_flags): Delete, moved to symfile-add-flags.h and
  2972. converted to enum-flags.
  2973. (symbol_file_add, symbol_file_add_from_bfd)
  2974. (symbol_file_add_separate): Use symfile_add_flags.
  2975. * xcoffread.c (xcoff_initial_scan): Use symfile_add_flags.
  2976. 2016-10-26 Pedro Alves <palves@redhat.com>
  2977. * inferior.h (ALL_NON_EXITED_INFERIORS): New macro.
  2978. * infrun.c (do_target_resume): Call target_commit_resume.
  2979. (proceed): Defer target_commit_resume while looping over threads,
  2980. resuming them. Call target_commit_resume at the end.
  2981. * record-btrace.c (record_btrace_commit_resume): New function.
  2982. (init_record_btrace_ops): Install it as to_commit_resume method.
  2983. * record-full.c (record_full_commit_resume): New function.
  2984. (record_full_wait_1): Call the beneath target's to_commit_resume
  2985. method.
  2986. (init_record_full_ops): Install record_full_commit_resume as
  2987. to_commit_resume method.
  2988. * remote.c (struct private_thread_info) <last_resume_step,
  2989. last_resume_sig, vcont_resumed>: New fields.
  2990. (remote_add_thread): Set the new thread's vcont_resumed flag.
  2991. (demand_private_info): Delete.
  2992. (get_private_info_thread, get_private_info_ptid): New functions.
  2993. (remote_update_thread_list): Adjust.
  2994. (process_initial_stop_replies): Clear the thread's vcont_resumed
  2995. flag.
  2996. (remote_resume): If connected in non-stop mode, record the resume
  2997. request and return early.
  2998. (struct private_inferior): New.
  2999. (struct vcont_builder): New.
  3000. (vcont_builder_restart, vcont_builder_flush)
  3001. (vcont_builder_push_action): New functions.
  3002. (MAX_ACTION_SIZE): New macro.
  3003. (remote_commit_resume): New function.
  3004. (thread_pending_fork_status, is_pending_fork_parent_thread): New
  3005. functions.
  3006. (check_pending_event_prevents_wildcard_vcont_callback)
  3007. (check_pending_events_prevent_wildcard_vcont): New functions.
  3008. (process_stop_reply): Adjust. Clear the thread's vcont_resumed
  3009. flag.
  3010. (init_remote_ops): Install remote_commit_resume.
  3011. * target-delegates.c: Regenerate.
  3012. * target.c (defer_target_commit_resume): New global.
  3013. (target_commit_resume, make_cleanup_defer_target_commit_resume):
  3014. New functions.
  3015. * target.h (struct target_ops) <to_commit_resume>: New field.
  3016. (target_resume): Update comments.
  3017. (target_commit_resume): New declaration.
  3018. 2016-10-26 Pedro Alves <palves@redhat.com>
  3019. * inferior.c (exit_inferior_1): Free 'priv'.
  3020. 2016-10-26 Pedro Alves <palves@redhat.com>
  3021. * remote.c (remote_resume_with_hc): New function, factored out
  3022. from ...
  3023. (remote_resume): ... this. Always try vCont first.
  3024. (remote_vcont_resume): Rename to ...
  3025. (remote_resume_with_vcont): ... this. Bail out if execution
  3026. direction is reverse.
  3027. 2016-10-25 Pedro Alves <palves@redhat.com>
  3028. * dwarf2expr.h (struct dwarf_expr_context) <~dwarf_expr_context>:
  3029. Make virtual.
  3030. 2016-10-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
  3031. PR build/20712
  3032. * defs.h: Remove obsolete comment
  3033. (atof): Remove.
  3034. * procfs.c (do_destroy_procinfo_cleanup): Add cast.
  3035. (sysset_t_alloc): Likewise.
  3036. (proc_set_traced_sysentry): Likewise.
  3037. (proc_set_traced_sysexit): Likewise.
  3038. [!PIOCLSTATUS && NEW_PROC_API] (do_closedir_cleanup): Likewise.
  3039. (proc_get_LDT_entry): Initiate cleanups before returns.
  3040. (procfs_wait): Use GDB_SIGNAL_0.
  3041. (procfs_corefile_thread_callback): Add cast.
  3042. * sol-thread.c (td_log_ftype, td_ta_new_ftype, td_ta_delete_ftype)
  3043. (td_init_ftype, td_ta_get_ph_ftype, td_ta_get_nthreads_ftype)
  3044. (td_ta_tsd_iter_ftype, td_ta_thr_iter_ftype)
  3045. (td_thr_validate_ftype, td_thr_tsd_ftype, td_thr_get_info_ftype)
  3046. (td_thr_getfpregs_ftype, td_thr_getxregsize_ftype)
  3047. (td_thr_getxregs_ftype, td_thr_sigsetmask_ftype)
  3048. (td_thr_setprio_ftype, td_thr_setsigpending_ftype)
  3049. (td_thr_setfpregs_ftype, td_thr_setxregs_ftype)
  3050. (td_ta_map_id2thr_ftype, td_ta_map_lwp2thr_ftype)
  3051. (td_thr_getgregs_ftype, td_thr_setgregs_ftype): New typedefs.
  3052. (p_td_log, p_td_ta_new, p_td_ta_delete, p_td_init, p_td_ta_get_ph)
  3053. (p_td_ta_get_nthreads, p_td_ta_tsd_iter, p_td_ta_thr_iter)
  3054. (p_td_thr_validate, p_td_thr_tsd, p_td_thr_get_info)
  3055. (p_td_thr_getfpregs, p_td_thr_getxregsize, p_td_thr_getxregs)
  3056. (p_td_thr_sigsetmask, p_td_thr_setprio, p_td_thr_setsigpending)
  3057. (p_td_thr_setfpregs, p_td_thr_setxregs, p_td_ta_map_id2thr)
  3058. (p_td_ta_map_lwp2thr, p_td_thr_getgregs, p_td_thr_setgregs): Use them.
  3059. (ps_pdread): Add cast.
  3060. (ps_ptread): Likewise.
  3061. (resolve): Likewise.
  3062. * top.c (gdb_safe_append_history): Print pid_t as long.
  3063. 2016-10-25 Pedro Alves <palves@redhat.com>
  3064. * common/common-defs.h (__STDC_FORMAT_MACROS): Define.
  3065. 2016-10-25 Pedro Alves <palves@redhat.com>
  3066. * common/new-op.c: Add comment about -fsanitize=address.
  3067. 2016-10-25 Pedro Alves <palves@redhat.com>
  3068. * common/common-defs.h (__STDC_CONSTANT_MACROS)
  3069. (__STDC_LIMIT_MACROS): Define.
  3070. 2016-10-25 Yao Qi <yao.qi@linaro.org>
  3071. PR gdb/20716
  3072. * common/new-op.c (__has_feature): New macro.
  3073. Don't override operator new if asan is used.
  3074. 2016-10-24 Luis Machado <lgustavo@codesourcery.com>
  3075. * exec.c (exec_file_locate_attach): Prevent NULL pointer dereference
  3076. when duplicating a string.
  3077. 2016-10-24 Luis Machado <lgustavo@codesourcery.com>
  3078. * exec.c (exception_print_same): Fix string comparison to use
  3079. statically-allocated ones.
  3080. 2016-10-21 Tom Tromey <tom@tromey.com>
  3081. * dwarf2expr.h (class dwarf_expr_context)
  3082. <get_frame_base, get_frame_cfa, get_tls_address, dwarf_call,
  3083. push_dwarf_block_entry_value, get_addr_index, get_object_address>:
  3084. Now pure virtual.
  3085. * dwarf2-frame.c (class dwarf_expr_executor)
  3086. <get_frame_base, get_frame_cfa, get_tls_address, dwarf_call,
  3087. push_dwarf_block_entry_value, get_addr_index, get_object_address>:
  3088. New methods.
  3089. <invalid>: New method.
  3090. 2016-10-21 Tom Tromey <tom@tromey.com>
  3091. * minsyms.h (minimal_symbol_reader::record_full): "copy_name" now
  3092. a bool.
  3093. (record, record_with_info): Update.
  3094. * minsyms.c (record): Fix indentation.
  3095. (record_full): Fix indentation. Update for type change.
  3096. * elfread.c (record_minimal_symbol): "copy_name" now a bool.
  3097. (elf_symtab_read): "copy_names" now a bool.
  3098. (elf_rel_plt_read, elf_read_minimal_symbols): Update.
  3099. 2016-10-21 Tom Tromey <tom@tromey.com>
  3100. * main.c: Include <vector>.
  3101. (cmdarg_s): Remove typedef. Don't define VEC.
  3102. (captured_main_1): Use vector, not VEC. Remove cleanups.
  3103. 2016-10-21 Tom Tromey <tom@tromey.com>
  3104. * dwarf2loc.c (struct dwarf_expr_context_funcs): Don't declare.
  3105. (dwarf_expr_read_addr_from_reg, dwarf_expr_get_reg_value)
  3106. (dwarf_expr_read_mem, dwarf_expr_frame_base): Rename; turn into
  3107. methods.
  3108. (get_frame_pc_for_per_cu_dwarf_call): New function.
  3109. (dwarf_expr_frame_cfa, dwarf_expr_frame_pc)
  3110. (dwarf_expr_tls_address): Rename; turn into methods.
  3111. (per_cu_dwarf_call): Remove arguments. Use
  3112. get_frame_pc_for_per_cu_dwarf_call.
  3113. (dwarf_evaluate_loc_desc): New class.
  3114. (dwarf_expr_dwarf_call, dwarf_expr_context)
  3115. (dwarf_expr_push_dwarf_reg_entry_value)
  3116. (dwarf_expr_get_addr_index, dwarf_expr_get_obj_addr): Rename; turn
  3117. into methods.
  3118. (dwarf_expr_ctx_funcs): Remove.
  3119. (dwarf2_evaluate_loc_desc_full): Update.
  3120. (dwarf2_locexpr_baton_eval): Update.
  3121. (symbol_needs_eval_context): New class.
  3122. (symbol_needs_read_addr_from_reg, symbol_needs_get_reg_value)
  3123. (symbol_needs_read_mem, symbol_needs_frame_base)
  3124. (symbol_needs_frame_cfa, symbol_needs_tls_address)
  3125. (symbol_needs_dwarf_call, needs_dwarf_reg_entry_value): Rename;
  3126. turn into methods.
  3127. (needs_get_addr_index, needs_get_obj_addr): Remove; turn into
  3128. methods.
  3129. (symbol_needs_ctx_funcs): Remove.
  3130. (dwarf2_loc_desc_get_symbol_read_needs): Update.
  3131. * dwarf2expr.h (struct dwarf_expr_context_funcs): Remove; turn
  3132. contents into methods.
  3133. (struct dwarf_expr_context) <baton, funcs>: Remove.
  3134. <read_addr_from_reg, get_reg_value, read_mem, get_frame_base,
  3135. get_frame_cfa, get_frame_pc, get_tls_address, dwarf_call,
  3136. impl_get_base_type, push_dwarf_block_entry_value, get_addr_index,
  3137. get_object_address>: Declare new methods.
  3138. (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
  3139. (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
  3140. (ctx_no_get_base_type, ctx_no_push_dwarf_reg_entry_value)
  3141. (ctx_no_get_addr_index): Don't declare.
  3142. * dwarf2expr.c (get_base_type): Use impl_get_base_type.
  3143. (execute_stack_op): Update.
  3144. (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
  3145. (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
  3146. (ctx_no_get_base_type, ctx_no_push_dwarf_reg_entry_value)
  3147. (ctx_no_get_addr_index): Remove; now methods on
  3148. dwarf_expr_context.
  3149. * dwarf2-frame.c (read_addr_from_reg): Take a frame_info, not a
  3150. baton.
  3151. (class dwarf_expr_executor): New class.
  3152. (get_reg_value, read_mem): Rename, turn into methods.
  3153. (execute_stack_op): Use dwarf_expr_executor.
  3154. 2016-10-21 Tom Tromey <tom@tromey.com>
  3155. * dwarf2loc.c (per_cu_dwarf_call)
  3156. (dwarf_expr_push_dwarf_reg_entry_value)
  3157. (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
  3158. (needs_dwarf_reg_entry_value)
  3159. (dwarf2_loc_desc_get_symbol_read_needs): Update.
  3160. * dwarf2expr.h (dwarf_expr_context) <push_address, eval, fetch,
  3161. fetch_address, fetch_in_stack_memory, address_type, grow_stack,
  3162. push, stack_empty_p, add_piece, get_base_type, execute_stack_op,
  3163. pop>: New method declarations.
  3164. (dwarf_expr_push_address, dwarf_expr_eval, dwarf_expr_fetch)
  3165. (dwarf_expr_fetch_address, dwarf_expr_fetch_in_stack_memory):
  3166. Don't declare.
  3167. * dwarf2expr.c (address_type, grow_stack, push, push_address)
  3168. (pop, fetch, fetch_address, fetch_in_stack_memory)
  3169. (stack_empty_p, add_piece, eval, get_base_type)
  3170. (execute_stack_op): Rename. Turn into methods.
  3171. * dwarf2-frame.c (execute_stack_op): Update.
  3172. 2016-10-21 Tom Tromey <tom@tromey.com>
  3173. * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Stack-allocate
  3174. dwarf_expr_context. Remove cleanups.
  3175. (dwarf2_locexpr_baton_eval)
  3176. (dwarf2_loc_desc_get_symbol_read_needs): Likewise.
  3177. * dwarf2expr.h (dwarf_expr_context, ~dwarf_expr_context): Add
  3178. constructors and destructors.
  3179. (new_dwarf_expr_context, free_dwarf_expr_context)
  3180. (make_cleanup_free_dwarf_expr_context): Don't declare.
  3181. * dwarf2-frame.c (execute_stack_op): Stack-allocate
  3182. dwarf_expr_context. Remove cleanups.
  3183. (dwarf_expr_context): Rename from new_dwarf_expr_context. Turn
  3184. into constructor.
  3185. (free_dwarf_expr_context, free_dwarf_expr_context_cleanup):
  3186. Remove.
  3187. (~dwarf_expr_context): Rename from
  3188. make_cleanup_free_dwarf_expr_context. Turn into destructor.
  3189. 2016-10-21 Tom Tromey <tom@tromey.com>
  3190. * dwarf2loc.c: Include <vector>.
  3191. (read_pieced_value, write_pieced_value)
  3192. (dwarf2_compile_expr_to_ax): Use std::vector.
  3193. 2016-10-21 Tom Tromey <tom@tromey.com>
  3194. * stack.c (print_stack_frame_to_uiout): Use scoped_restore.
  3195. * ui-out.c (make_cleanup_restore_current_uiout)
  3196. (restore_current_uiout_cleanup): Remove.
  3197. * infrun.c (print_stop_event): Use scoped_restore.
  3198. * ui-out.h (make_cleanup_restore_current_uiout): Don't declare.
  3199. 2016-10-21 Tom Tromey <tom@tromey.com>
  3200. * elfread.c (elf_read_minimal_symbols): Use gdb::unique_ptr.
  3201. 2016-10-21 Tom Tromey <tom@tromey.com>
  3202. * cli/cli-dump.c (dump_memory_to_file): Use gdb::unique_ptr.
  3203. (restore_binary_file): Likewise.
  3204. 2016-10-21 Tom Tromey <tom@tromey.com>
  3205. * maint.h (scoped_command_stats): New class.
  3206. (make_command_stats_cleanup): Don't declare.
  3207. * maint.c (struct cmd_stats): Remove.
  3208. (~scoped_command_stats): Rename from report_command_stats. Now a
  3209. destructor.
  3210. (scoped_command_stats): Rename from make_command_stats_cleanup.
  3211. Now a constructor.
  3212. * main.c (captured_main_1): New function. Use
  3213. scoped_command_stats.
  3214. (captured_main): Call captured_main_1.
  3215. * event-top.c (command_handler): Use scoped_command_stats.
  3216. 2016-10-21 Tom Tromey <tom@tromey.com>
  3217. * mi/mi-main.c (mi_cmd_data_read_memory): Use gdb::unique_ptr.
  3218. Remove some cleanups.
  3219. 2016-10-21 Tom Tromey <tom@tromey.com>
  3220. * tui/tui-interp.c (tui_on_normal_stop, tui_on_signal_received)
  3221. (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
  3222. (tui_on_no_history, tui_on_user_selected_context_changed):
  3223. Update.
  3224. * top.h (switch_thru_all_uis): New class.
  3225. (SWITCH_THRU_ALL_UIS): Rewrite.
  3226. (make_cleanup_restore_current_ui, switch_thru_all_uis_init)
  3227. (switch_thru_all_uis_cond, switch_thru_all_uis_next): Don't
  3228. declare.
  3229. * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
  3230. (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
  3231. (mi_inferior_exit, mi_inferior_removed, mi_on_signal_received)
  3232. (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
  3233. (mi_on_no_history, mi_on_normal_stop, mi_traceframe_changed)
  3234. (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
  3235. (mi_breakpoint_created, mi_breakpoint_deleted)
  3236. (mi_breakpoint_modified, mi_output_running_pid, mi_on_resume)
  3237. (mi_solib_loaded, mi_solib_unloaded, mi_command_param_changed)
  3238. (mi_memory_changed, mi_user_selected_context_changed): Update.
  3239. * infrun.c (all_uis_check_sync_execution_done)
  3240. (all_uis_on_sync_execution_starting, normal_stop): Update.
  3241. * event-top.c (restore_ui_cleanup)
  3242. (make_cleanup_restore_current_ui, switch_thru_all_uis_init)
  3243. (switch_thru_all_uis_cond, switch_thru_all_uis_next): Remove.
  3244. * cli/cli-interp.c (cli_on_normal_stop, cli_on_signal_received)
  3245. (cli_on_end_stepping_range, cli_on_signal_exited, cli_on_exited)
  3246. (cli_on_no_history, cli_on_user_selected_context_changed):
  3247. Update.
  3248. * breakpoint.c (watchpoint_check): Update.
  3249. 2016-10-21 Tom Tromey <tom@tromey.com>
  3250. * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab): Add
  3251. "reader" argument. Update.
  3252. (xcoff_initial_scan): Update.
  3253. * symfile.h (mdebug_build_psymtabs): Add "reader" argument.
  3254. * mipsread.c (mipscoff_symfile_read): Update.
  3255. (read_alphacoff_dynamic_symtab): Add "reader" argument. Update.
  3256. * minsyms.h (minimal_symbol_reader) <record, record_full>:
  3257. Declare.
  3258. <m_msym_bunch, m_msym_bunch_index, m_msym_count>: New members.
  3259. <record_with_info>: New function, renamed from
  3260. prim_record_minimal_symbol_and_info.
  3261. * minsyms.c (msym_bunch, msym_bunch_index, msym_count): Remove
  3262. globals.
  3263. (minimal_symbol_reader): Initialize new members.
  3264. (minimal_symbol_reader::record): Renamed from
  3265. prim_record_minimal_symbol.
  3266. (minimal_symbol_reader::record_full): Renamed from
  3267. prim_record_minimal_symbol_full.
  3268. (prim_record_minimal_symbol_and_info): Move to minsyms.h; rename.
  3269. * mdebugread.c (mdebug_build_psymtabs, parse_partial_symbols)
  3270. (record_minimal_symbol): Add "reader" argument. Update.
  3271. (elfmdebug_build_psymtabs): Update.
  3272. * machoread.c (macho_symtab_add_minsym, macho_symtab_read): Add
  3273. "reader" argument. Update.
  3274. (macho_symfile_read): Update.
  3275. * elfread.c (record_minimal_symbol, elf_symtab_read)
  3276. (elf_rel_plt_read): Add "reader" argument. Update.
  3277. (elf_read_minimal_symbols): Update.
  3278. * dbxread.c (record_minimal_symbol, read_dbx_dynamic_symtab)
  3279. (read_dbx_symtab): Add "reader" argument. Update.
  3280. (dbx_symfile_read): Update.
  3281. * coffread.c (record_minimal_symbol, coff_symtab_read): Add
  3282. "reader" argument. Update.
  3283. (coff_symfile_read): Update.
  3284. * coff-pe-read.h (read_pe_exported_syms): Add "reader" argument.
  3285. * coff-pe-read.c (add_pe_exported_sym, add_pe_forwarded_sym)
  3286. (read_pe_exported_syms): Add "reader" argument. Update.
  3287. 2016-10-21 Tom Tromey <tom@tromey.com>
  3288. * xcoffread.c (xcoff_initial_scan): Update.
  3289. * mipsread.c (mipscoff_symfile_read): Update.
  3290. * minsyms.c (minimal_symbol_reader): Add obj argument.
  3291. Initialize member.
  3292. (install): Remove objfile argument. Update.
  3293. * mdebugread.c (elfmdebug_build_psymtabs): Update.
  3294. * machoread.c (macho_symfile_read): Update.
  3295. * elfread.c (elf_read_minimal_symbols): Update.
  3296. * dbxread.c (dbx_symfile_read): Update.
  3297. * coffread.c (coff_symfile_read): Update.
  3298. * minsyms.h (minimal_symbol_reader): Add m_objfile member.
  3299. (constructor): Add objfile argument.
  3300. (minimal_symbol_reader::install): Remove objfile argument.
  3301. 2016-10-21 Tom Tromey <tom@tromey.com>
  3302. * xcoffread.c (xcoff_initial_scan): Use
  3303. minimal_symbol_reader.
  3304. * mipsread.c (mipscoff_symfile_read): Use
  3305. minimal_symbol_reader.
  3306. * minsyms.h (minimal_symbol_reader): New class.
  3307. (init_minimal_symbol_collection)
  3308. (make_cleanup_discard_minimal_symbols, install_minimal_symbols):
  3309. Don't declare.
  3310. * minsyms.c (minimal_symbol_reader): Renamed from
  3311. init_minimal_symbol_collection, turned into constructor.
  3312. (~minimal_symbol_reader): Renamed from
  3313. do_discard_minimal_symbols_cleanup, turned into destructor.
  3314. (make_cleanup_discard_minimal_symbols): Remove.
  3315. (minimal_symbol_reader::install): Rename form
  3316. install_minimal_symbols.
  3317. * mdebugread.c (elfmdebug_build_psymtabs): Use
  3318. minimal_symbol_reader.
  3319. * machoread.c (macho_symfile_read): Use
  3320. minimal_symbol_reader.
  3321. * elfread.c (elf_read_minimal_symbols): Use
  3322. minimal_symbol_reader.
  3323. * dbxread.c (dbx_symfile_read): Use minimal_symbol_reader.
  3324. * coffread.c (coff_symfile_read): Use
  3325. minimal_symbol_reader.
  3326. 2016-10-21 Tom Tromey <tom@tromey.com>
  3327. * top.c (new_ui_command, wait_sync_command_done)
  3328. (gdb_readline_wrapper): Use scoped_restore.
  3329. * infrun.c (fetch_inferior_event): Use scoped_restore.
  3330. * infcall.c (call_thread_fsm_should_stop): Use scoped_restore.
  3331. 2016-10-21 Tom Tromey <tom@tromey.com>
  3332. * utils.c (make_cleanup_restore_ui_file, do_restore_ui_file)
  3333. (struct restore_ui_file_closure): Remove.
  3334. * utils.h (make_cleanup_restore_ui_file): Don't declare.
  3335. * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
  3336. scoped_restore.
  3337. * top.c (execute_command_to_string): Use scoped_restore.
  3338. 2016-10-21 Tom Tromey <tom@tromey.com>
  3339. * common/scoped_restore.h: New file.
  3340. * utils.h: Include scoped_restore.h.
  3341. * top.c (execute_command_to_string): Use scoped_restore.
  3342. * python/python.c (python_interactive_command): Use
  3343. scoped_restore.
  3344. (python_command, execute_gdb_command): Likewise.
  3345. * printcmd.c (do_one_display): Use scoped_restore.
  3346. * mi/mi-main.c (exec_continue): Use scoped_restore.
  3347. * mi/mi-cmd-var.c (mi_cmd_var_assign): Use scoped_restore.
  3348. * linux-fork.c (checkpoint_command): Use scoped_restore.
  3349. * infrun.c (restore_execution_direction): Remove.
  3350. (fetch_inferior_event): Use scoped_restore.
  3351. * compile/compile.c (compile_file_command): Use
  3352. scoped_restore.
  3353. (compile_code_command, compile_print_command): Likewise.
  3354. * cli/cli-script.c (execute_user_command): Use
  3355. scoped_restore.
  3356. (while_command, if_command, script_from_file): Likewise.
  3357. * arm-tdep.c (arm_insert_single_step_breakpoint): Use
  3358. scoped_restore.
  3359. 2016-10-21 Tom Tromey <tom@tromey.com>
  3360. * xcoffread.c (read_xcoff_symtab): Make "filestring" const.
  3361. 2016-10-21 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
  3362. Ulrich Weigand <uweigand@de.ibm.com>
  3363. * xcoffread.c (read_xcoff_symtab): Make name of current file as
  3364. pst->filename instead of _start_ in AIX.
  3365. 2016-10-21 Philipp Rudo <prudo@linux.vnet.ibm.com>
  3366. * solist.h (struct target_so_ops): Delete special_symbol_handling
  3367. hook.
  3368. * solib.c (solib_add, reload_shared_libraries): Adjust.
  3369. * solib-aix.c (solib_aix_special_symbol_handling): Delete
  3370. (_initialize_solib_aix): Adjust
  3371. * solib-darwin.c (darwin_special_symbol_handling): Delete
  3372. (_initialize_darwin_solib): Adjust
  3373. * solib-dsbt.c (dsbt_special_symbol_handling): Delete
  3374. (_initialize_dsbt_solib): Adjust
  3375. * solib-frv.c (frv_special_symbol_handling): Delete
  3376. (_initialize_frv_solib): Adjust
  3377. * solib-svr4.c (svr4_special_symbol_handling): Delete
  3378. (_initialize_svr4_solib): Adjust
  3379. * solib-target.c (solib_target_special_symbol_handling): Delete
  3380. (_initialize_solib_target): Adjust
  3381. 2016-10-20 Yao Qi <yao.qi@linaro.org>
  3382. * configure.tgt: Don't configure if target is *-*-vxworks*.
  3383. 2016-10-19 Pedro Alves <palves@redhat.com>
  3384. * config.in: Regenerate.
  3385. 2016-10-18 Pedro Alves <palves@redhat.com>
  3386. * common/common-defs.h (__STDC_CONSTANT_MACROS)
  3387. (__STDC_LIMIT_MACROS): Delete.
  3388. 2016-10-18 Pedro Alves <palves@redhat.com>
  3389. * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
  3390. 2692e23a48e21f6daa029e8af9f1a143b7532f47.
  3391. * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4:
  3392. Regenerate.
  3393. * gnulib/import/Makefile: Update.
  3394. * gnulib/import/alloca: Update.
  3395. * gnulib/import/basename-lgpl: Update.
  3396. * gnulib/import/canonicalize-lgpl: Update.
  3397. * gnulib/import/config: Update.
  3398. * gnulib/import/dirent: Update.
  3399. * gnulib/import/dirfd: Update.
  3400. * gnulib/import/dirname-lgpl: Update.
  3401. * gnulib/import/dirname.h: Update.
  3402. * gnulib/import/dosname.h: Update.
  3403. * gnulib/import/errno: Update.
  3404. * gnulib/import/extra/snippet/arg-nonnull.h: Update.
  3405. * gnulib/import/extra/snippet/c++defs.h: Update.
  3406. * gnulib/import/extra/snippet/warn-on-use.h: Update.
  3407. * gnulib/import/extra/update-copyright: Update.
  3408. * gnulib/import/flexmember.h: Update.
  3409. * gnulib/import/float+.h: Update.
  3410. * gnulib/import/float: Update.
  3411. * gnulib/import/float: Update.
  3412. * gnulib/import/fnmatch: Update.
  3413. * gnulib/import/fnmatch: Update.
  3414. * gnulib/import/fnmatch_loop: Update.
  3415. * gnulib/import/fpucw.h: Update.
  3416. * gnulib/import/frexp: Update.
  3417. * gnulib/import/frexpl: Update.
  3418. * gnulib/import/gettimeofday: Update.
  3419. * gnulib/import/hard-locale: Update.
  3420. * gnulib/import/hard-locale.h: Update.
  3421. * gnulib/import/inttypes: Update.
  3422. * gnulib/import/isnan: Update.
  3423. * gnulib/import/isnand-nolibm.h: Update.
  3424. * gnulib/import/isnand: Update.
  3425. * gnulib/import/isnanl-nolibm.h: Update.
  3426. * gnulib/import/isnanl: Update.
  3427. * gnulib/import/itold: Update.
  3428. * gnulib/import/limits: Update.
  3429. * gnulib/import/localcharset: Update.
  3430. * gnulib/import/localcharset.h: Update.
  3431. * gnulib/import/lstat: Update.
  3432. * gnulib/import/m4/00gnulib: Update.
  3433. * gnulib/import/m4/absolute-header: Update.
  3434. * gnulib/import/m4/alloca: Update.
  3435. * gnulib/import/m4/canonicalize: Update.
  3436. * gnulib/import/m4/codeset: Update.
  3437. * gnulib/import/m4/configmake: Update.
  3438. * gnulib/import/m4/dirent_h: Update.
  3439. * gnulib/import/m4/dirfd: Update.
  3440. * gnulib/import/m4/dirname: Update.
  3441. * gnulib/import/m4/double-slash-root: Update.
  3442. * gnulib/import/m4/eealloc: Update.
  3443. * gnulib/import/m4/errno_h: Update.
  3444. * gnulib/import/m4/exponentd: Update.
  3445. * gnulib/import/m4/exponentl: Update.
  3446. * gnulib/import/m4/extensions: Update.
  3447. * gnulib/import/m4/extern-inline: Update.
  3448. * gnulib/import/m4/fcntl-o: Update.
  3449. * gnulib/import/m4/flexmember: Update.
  3450. * gnulib/import/m4/float_h: Update.
  3451. * gnulib/import/m4/fnmatch: Update.
  3452. * gnulib/import/m4/fpieee: Update.
  3453. * gnulib/import/m4/frexp: Update.
  3454. * gnulib/import/m4/frexpl: Update.
  3455. * gnulib/import/m4/gettimeofday: Update.
  3456. * gnulib/import/m4/glibc21: Update.
  3457. * gnulib/import/m4/gnulib-cache: Update.
  3458. * gnulib/import/m4/gnulib-common: Update.
  3459. * gnulib/import/m4/gnulib-comp: Update.
  3460. * gnulib/import/m4/gnulib-tool: Update.
  3461. * gnulib/import/m4/hard-locale: Update.
  3462. * gnulib/import/m4/include_next: Update.
  3463. * gnulib/import/m4/inttypes-pri: Update.
  3464. * gnulib/import/m4/inttypes: Update.
  3465. * gnulib/import/m4/isnand: Update.
  3466. * gnulib/import/m4/isnanl: Update.
  3467. * gnulib/import/m4/largefile: Update.
  3468. * gnulib/import/m4/limits-h: Update.
  3469. * gnulib/import/m4/localcharset: Update.
  3470. * gnulib/import/m4/locale-fr: Update.
  3471. * gnulib/import/m4/locale-ja: Update.
  3472. * gnulib/import/m4/locale-zh: Update.
  3473. * gnulib/import/m4/longlong: Update.
  3474. * gnulib/import/m4/lstat: Update.
  3475. * gnulib/import/m4/malloc: Update.
  3476. * gnulib/import/m4/malloca: Update.
  3477. * gnulib/import/m4/math_h: Update.
  3478. * gnulib/import/m4/mbrtowc: Update.
  3479. * gnulib/import/m4/mbsinit: Update.
  3480. * gnulib/import/m4/mbsrtowcs: Update.
  3481. * gnulib/import/m4/mbstate_t: Update.
  3482. * gnulib/import/m4/memchr: Update.
  3483. * gnulib/import/m4/memmem: Update.
  3484. * gnulib/import/m4/mmap-anon: Update.
  3485. * gnulib/import/m4/multiarch: Update.
  3486. * gnulib/import/m4/nocrash: Update.
  3487. * gnulib/import/m4/off_t: Update.
  3488. * gnulib/import/m4/pathmax: Update.
  3489. * gnulib/import/m4/rawmemchr: Update.
  3490. * gnulib/import/m4/readlink: Update.
  3491. * gnulib/import/m4/rename: Update.
  3492. * gnulib/import/m4/rmdir: Update.
  3493. * gnulib/import/m4/signal_h: Update.
  3494. * gnulib/import/m4/ssize_t: Update.
  3495. * gnulib/import/m4/stat: Update.
  3496. * gnulib/import/m4/stdbool: Update.
  3497. * gnulib/import/m4/stddef_h: Update.
  3498. * gnulib/import/m4/stdint: Update.
  3499. * gnulib/import/m4/stdio_h: Update.
  3500. * gnulib/import/m4/stdlib_h: Update.
  3501. * gnulib/import/m4/strchrnul: Update.
  3502. * gnulib/import/m4/string_h: Update.
  3503. * gnulib/import/m4/strstr: Update.
  3504. * gnulib/import/m4/strtok_r: Update.
  3505. * gnulib/import/m4/sys_socket_h: Update.
  3506. * gnulib/import/m4/sys_stat_h: Update.
  3507. * gnulib/import/m4/sys_time_h: Update.
  3508. * gnulib/import/m4/sys_types_h: Update.
  3509. * gnulib/import/m4/time_h: Update.
  3510. * gnulib/import/m4/unistd_h: Update.
  3511. * gnulib/import/m4/warn-on-use: Update.
  3512. * gnulib/import/m4/wchar_h: Update.
  3513. * gnulib/import/m4/wchar_t: Update.
  3514. * gnulib/import/m4/wctype_h: Update.
  3515. * gnulib/import/m4/wint_t: Update.
  3516. * gnulib/import/malloc: Update.
  3517. * gnulib/import/malloca: Update.
  3518. * gnulib/import/malloca.h: Update.
  3519. * gnulib/import/math: Update.
  3520. * gnulib/import/math: Update.
  3521. * gnulib/import/mbrtowc: Update.
  3522. * gnulib/import/mbsinit: Update.
  3523. * gnulib/import/mbsrtowcs-impl.h: Update.
  3524. * gnulib/import/mbsrtowcs-state: Update.
  3525. * gnulib/import/mbsrtowcs: Update.
  3526. * gnulib/import/memchr: Update.
  3527. * gnulib/import/memmem: Update.
  3528. * gnulib/import/pathmax.h: Update.
  3529. * gnulib/import/rawmemchr: Update.
  3530. * gnulib/import/readlink: Update.
  3531. * gnulib/import/ref-add.sin: Update.
  3532. * gnulib/import/ref-del.sin: Update.
  3533. * gnulib/import/rename: Update.
  3534. * gnulib/import/rmdir: Update.
  3535. * gnulib/import/same-inode.h: Update.
  3536. * gnulib/import/signal: Update.
  3537. * gnulib/import/stat: Update.
  3538. * gnulib/import/stdbool: Update.
  3539. * gnulib/import/stddef: Update.
  3540. * gnulib/import/stdint: Update.
  3541. * gnulib/import/stdio: Update.
  3542. * gnulib/import/stdlib: Update.
  3543. * gnulib/import/str-two-way.h: Update.
  3544. * gnulib/import/strchrnul: Update.
  3545. * gnulib/import/streq.h: Update.
  3546. * gnulib/import/string: Update.
  3547. * gnulib/import/stripslash: Update.
  3548. * gnulib/import/strnlen1: Update.
  3549. * gnulib/import/strnlen1.h: Update.
  3550. * gnulib/import/strstr: Update.
  3551. * gnulib/import/strtok_r: Update.
  3552. * gnulib/import/sys_stat: Update.
  3553. * gnulib/import/sys_time: Update.
  3554. * gnulib/import/sys_types: Update.
  3555. * gnulib/import/time: Update.
  3556. * gnulib/import/unistd: Update.
  3557. * gnulib/import/unistd: Update.
  3558. * gnulib/import/verify.h: Update.
  3559. * gnulib/import/wchar: Update.
  3560. * gnulib/import/wctype: Update.
  3561. * gnulib/import/flexmember.h: New file.
  3562. * gnulib/import/hard-locale.c: New file.
  3563. * gnulib/import/hard-locale.h: New file.
  3564. * gnulib/import/limits.in.h: New file.
  3565. * gnulib/import/m4/flexmember.m4: New file.
  3566. * gnulib/import/m4/hard-locale.m4: New file.
  3567. * gnulib/import/m4/limits-h.m4: New file.
  3568. 2016-10-18 Pedro Alves <palves@redhat.com>
  3569. * common/common-defs.h: Include "gdb_unique_ptr.h".
  3570. * common/gdb_unique_ptr.h: New.
  3571. 2016-10-18 Maciej W. Rozycki <macro@imgtec.com>
  3572. * i386-tdep.c (i386_mpx_info_bounds): Make sure the architecture
  3573. is `bfd_arch_i386' before proceeding.
  3574. (i386_mpx_set_bounds): Likewise.
  3575. 2016-10-18 Maciej W. Rozycki <macro@imgtec.com>
  3576. * tilegx-tdep.c (tilegx_analyze_prologue): Use the `long long'
  3577. type for `operands'.
  3578. 2016-10-17 Simon Marchi <simon.marchi@ericsson.com>
  3579. * mi/mi-main.c (mi_cmd_trace_save): Check if argument is present
  3580. before using it.
  3581. 2016-10-17 Pedro Alves <palves@redhat.com>
  3582. * charset.h (class wchar_iterator) [PHONY_ICONV] <m_desc>: Use
  3583. 'int' as type.
  3584. 2016-10-14 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
  3585. Ulrich Weigand <uweigand@de.ibm.com>
  3586. * solib-aix.c (solib_aix_bfd_open): Call solib_find so that sysroot
  3587. path is set properly if program has a dependency on .a archive and
  3588. sysroot is set via set sysroot command.
  3589. 2016-10-14 Markus Metzger <markus.t.metzger@intel.com>
  3590. * nat/linux-btrace.c: Remove leftover comment.
  3591. 2016-10-14 Eli Zaretskii <eliz@gnu.org>
  3592. * common/common-defs.h [HAVE_STRINGS_H]: Include strings.h if
  3593. available, to get prototypes of 'strcasecmp' and 'strncasecmp'.
  3594. 2016-10-13 Pedro Alves <palves@redhat.com>
  3595. * contrib/ari/gdb_ari.sh (boolean): Suggest bool instead.
  3596. (false, true): Remove checks.
  3597. 2016-10-12 Tom Tromey <tom@tromey.com>
  3598. * machoread.c (macho_symfile_read_all_oso): Use std::string.
  3599. 2016-10-12 Tom Tromey <tom@tromey.com>
  3600. * tracepoint.c (trace_dump_command): Remove unnecessary
  3601. null_cleanup.
  3602. 2016-10-12 Tom Tromey <tom@tromey.com>
  3603. * valprint.c (generic_emit_char, count_next_character)
  3604. (generic_printstr): Update.
  3605. * charset.c (struct wchar_iterator): Move to charset.h.
  3606. (wchar_iterator::wchar_iterator): Rename from
  3607. make_wchar_iterator, turn into a constructor.
  3608. (wchar_iterator::~wchar_iterator): Rename from
  3609. do_cleanup_iterator, turn into a destructor.
  3610. (make_cleanup_wchar_iterator): Remove.
  3611. (wchar_iterator::iterate): Rename from wchar_iterate. Remove
  3612. "iter" argument. Update.
  3613. * charset.h: Include <vector>.
  3614. (class wchar_iterator): New class, from old struct
  3615. wchar_iterator.
  3616. (make_wchar_iterator, make_cleanup_wchar_iterator): Don't
  3617. declare.
  3618. 2016-10-12 Tom Tromey <tom@tromey.com>
  3619. * selftest.c: Include <vector>, not "vec.h".
  3620. (self_test_function_ptr): Remove.
  3621. (tests): Now a std::vector.
  3622. (register_self_test, run_self_tests): Update.
  3623. 2016-10-13 Pedro Alves <palves@redhat.com>
  3624. Tom Tromey <tom@tromey.com>
  3625. * tid-parse.h (tid_range_parser): New class.
  3626. (enum tid_range_state): Move into tid_range_parser's scope.
  3627. Remove TID_RANGE_ prefix from all values.
  3628. (tid_range_parser_get_tid, tid_range_parser_get_tid_range)
  3629. (tid_range_parser_star_range, tid_range_parser_finished)
  3630. (tid_range_parser_skip, tid_range_parser_qualified): Don't
  3631. declare.
  3632. (tid_is_in_list): Update comment.
  3633. * tid-parse.c (tid_range_parser::tid_range_parser): New.
  3634. (init, finished, get_string, skip, tid_is_qualified)
  3635. (get_tid_or_range, get_tid_range, get_tid, star_range): Rename;
  3636. turn into methods.
  3637. (tid_is_in_list): Adjust.
  3638. * cli/cli-utils.h (number_or_range_parser): New class.
  3639. (init_number_or_range, get_number_or_range)
  3640. (number_range_setup_range): Don't declare.
  3641. * cli/cli-utils.c
  3642. (number_or_range_parser::number_or_range_parser): New.
  3643. (init_number_or_range, get_number_or_range)
  3644. (number_range_setup_range): Rename; turn into methods.
  3645. (number_is_in_list): Adjust.
  3646. * breakpoint.c (map_breakpoint_numbers): Adjust. Use bool.
  3647. (trace_pass_command, get_tracepoint_by_number): Adjust.
  3648. * breakpoint.h (get_tracepoint_by_number): Adjust.
  3649. * inferior.c (detach_inferior_command, kill_inferior_command)
  3650. (remove_inferior_command): Adjust.
  3651. * linespec.c (decode_line_2): Adjust.
  3652. * memattr.c (mem_enable_command, mem_disable_command)
  3653. (mem_delete_command): Adjust.
  3654. * printcmd.c (map_display_numbers): Adjust.
  3655. * reverse.c (delete_bookmark_command, bookmarks_info): Adjust.
  3656. * thread.c (thread_apply_command): Adjust.
  3657. 2016-10-12 Anton Kolesov <anton.kolesov@synopsys.com>
  3658. * arc-newlib-tdep.c: New file.
  3659. * configure.tgt: Add newlib support for ARC.
  3660. 2016-10-12 Anton Kolesov <anton.kolesov@synopsys.com>
  3661. * arc-tdep.h (struct gdbarch_tdep) <jb_pc>: New field.
  3662. * arc-tdep.c (arc_get_longjmp_target): New function.
  3663. (arc_gdbarch_init): Set get_longjmp_target if jb_pc is non-negative.
  3664. (arc_dump_tdep): Print jb_pc.
  3665. 2016-10-12 Anton Kolesov <anton.kolesov@synopsys.com>
  3666. * arc-tdep.h (struct gdbarch_tdep): New.
  3667. * arc-tdep.c (arc_gdbarch_init): Allocate gdbarch_tdep.
  3668. 2016-10-12 Yao Qi <yao.qi@linaro.org>
  3669. PR tdep/20682
  3670. * aarch64-tdep.c: Replace 32 with AARCH64_D_REGISTER_COUNT.
  3671. (aarch64_analyze_prologue): Extend array 'regs' for D registers.
  3672. Assert that operand 0 and 1 can be X or D registers. Update
  3673. register number for D registers. Update registers in frame
  3674. cache.
  3675. * aarch64-tdep.h (AARCH64_D_REGISTER_COUNT): New macro.
  3676. 2016-10-10 Yao Qi <yao.qi@linaro.org>
  3677. * arch/arm.h (enum arm_breakpoint_kinds): New.
  3678. * arm-tdep.c (arm_remote_breakpoint_from_pc): Use
  3679. ARM_BP_KIND_THUMB2.
  3680. 2016-10-10 Yao Qi <yao.qi@linaro.org>
  3681. * m32c-tdep.c (m32c_gdbarch_init): Rename local 'arch' by
  3682. 'gdbarch'.
  3683. 2016-10-10 Yao Qi <yao.qi@linaro.org>
  3684. * v850-tdep.c (v850_breakpoint_from_pc): Use the right
  3685. breakpoint instruction.
  3686. (v850_dbtrap_breakpoint_from_pc): Remove.
  3687. (v850_gdbarch_init): Update.
  3688. 2016-10-08 Simon Marchi <simon.marchi@polymtl.ca>
  3689. * ui-out.c (push_level): Remove "id" parameter.
  3690. (ui_out_begin): Update call.
  3691. 2016-10-07 Joel Brobecker <brobecker@adacore.com>
  3692. GDB 7.12 released.
  3693. 2016-10-07 Markus Metzger <markus.t.metzger@intel.com>
  3694. * python/python.c (gdbpy_decode_line): Call
  3695. string_to_event_location_basic instead of new_linespec_location.
  3696. 2016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
  3697. * target.c (target_supports_multi_process): New function, moved
  3698. from...
  3699. * target.h (target_supports_multi_process): ... here. Remove
  3700. macro.
  3701. * target/target.h (target_supports_multi_process): New prototype.
  3702. 2016-10-06 Pedro Alves <palves@redhat.com>
  3703. * cp-valprint.c (vtbl_ptr_name): Write "extern const" instead of
  3704. EXPORTED_CONST.
  3705. * stub-termcap.c: Remove __cplusplus checks.
  3706. * common/common-defs.h [!__cplusplus] (EXTERN_C, EXTERN_C_PUSH,
  3707. EXTERN_C_POP): Delete.
  3708. * common/common-exceptions.h (GDB_XCPT_SJMP): Update comments.
  3709. (GDB_XCPT) [!__cplusplus]: Delete.
  3710. (throw_exception, throw_exception_sjlj): Update comments.
  3711. * guile/guile-internal.h (as_a_scm_t_subr) [!__cplusplus]: Delete.
  3712. * guile/guile.c (extension_language_guile): Write "extern const"
  3713. instead of EXPORTED_CONST.
  3714. * features/feature_to_c.sh: Don't emit !__cplusplus code. Write
  3715. "extern const" instead of EXPORTED_CONST.
  3716. 2016-10-06 Doug Evans <dje@google.com>
  3717. * python/py-value.c (valpy_long): Handle unsigned values.
  3718. 2016-10-06 Simon Marchi <simon.marchi@ericsson.com>
  3719. * frame.h: Forward-declare struct ui_out.
  3720. 2016-10-06 Tom Tromey <tom@tromey.com>
  3721. * MAINTAINERS: Remove Java test maintainer.
  3722. * varobj.h (java_varobj_ops): Don't declare.
  3723. * valprint.h (struct value_print_options)
  3724. <pascal_static_field_print>: Update comment.
  3725. * utils.c (producer_is_gcc): Remove java reference.
  3726. * symtab.h (struct general_symbol_info): Remove java references.
  3727. (SYMBOL_SEARCH_NAME): Likewise.
  3728. * objfiles.c (allocate_objfile): Update comment.
  3729. * linespec.c (find_linespec_symbols): Remove java references.
  3730. * gnu-v3-abi.c (gnuv3_rtti_type, gnuv3_baseclass_offset): Remove
  3731. java references.
  3732. * gdbtypes.h (struct cplus_struct_type) <is_java>: Remove.
  3733. (TYPE_CPLUS_REALLY_JAVA): Remove.
  3734. * c-varobj.c (enum vsections): Update comment.
  3735. * symtab.c (symbol_set_language, symbol_set_names)
  3736. (symbol_natural_name, symbol_demangled_name)
  3737. (demangle_for_lookup, symbol_matches_domain)
  3738. (default_make_symbol_completion_list_break_on_1): Remove java
  3739. references.
  3740. (JAVA_PREFIX, JAVA_PREFIX_LEN): Remove.
  3741. * psymtab.c (match_partial_symbol, psymtab_search_name)
  3742. (lookup_partial_symbol): Remove java references.
  3743. * dwarf2read.c (find_slot_in_mapped_hash): Remove java references.
  3744. (add_partial_symbol, dwarf2_compute_name, dwarf2_physname)
  3745. (dwarf2_add_member_fn, is_vtable_name, read_structure_type)
  3746. (process_structure_scope, read_subroutine_type)
  3747. (read_subrange_type, load_partial_dies)
  3748. (new_symbol_full, determine_prefix, typename_concat)
  3749. (dwarf2_name): Remove java references.
  3750. (set_cu_language): Treat Java as C++.
  3751. * c-typeprint.c (c_type_print_args): Remove java reference.
  3752. * defs.h (enum language) <language_java>: Remove.
  3753. * Makefile.in (SFILES, HFILES_NO_SRCDIR, COMMON_OBS, YYFILES)
  3754. (YYOBJ, local-maintainer-clean): Don't mention java files.
  3755. * jv-exp.y, jv-lang.c, jv-lang.h, jv-typeprint.c, jv-valprint.c,
  3756. jv-varobj.c: Remove.
  3757. 2016-10-06 Maciej W. Rozycki <macro@imgtec.com>
  3758. * mips-tdep.c (mips_pseudo_register_type): Make FCRs always
  3759. 32-bit.
  3760. 2016-10-06 Maciej W. Rozycki <macro@imgtec.com>
  3761. * mips-tdep.c (mips_pseudo_register_type): Rearrange comments
  3762. throughout.
  3763. 2016-10-06 Markus Metzger <markus.t.metzger@intel.com>
  3764. * stack.c (frame_info): Call val_print_not_saved instead of
  3765. val_print_unavailable if frame_id check fails.
  3766. 2016-10-06 Pedro Alves <palves@redhat.com>
  3767. * jit.c (free_objfile_data): Delete the JIT breakpoint and clear
  3768. the cached code address.
  3769. 2016-10-06 Doug Evans <dje@google.com>
  3770. * features/aarch64-core.xml (cpsr_flags): Elide "type" and specify
  3771. "end" in all fields.
  3772. * features/aarch64.c: Regenerate.
  3773. * features/i386/32bit-mpx.xml (_bndcfgu): Specify type of "preserved"
  3774. and "enabled" fields. Correct size of "enabled" field.
  3775. * features/i386/64bit-mpx.xml (_bndcfgu): Specify type of "preserved"
  3776. and "enabled" fields.
  3777. * features/i386/i386-avx-mpx-linux.c: Regenerate.
  3778. * features/i386/i386-avx-mpx.c: Regenerate.
  3779. * features/i386/i386-avx512-linux.c: Regenerate.
  3780. * features/i386/i386-avx512.c: Regenerate.
  3781. * features/i386/i386-mpx-linux.c: Regenerate.
  3782. * features/i386/i386-mpx.c: Regenerate.
  3783. * features/arc-arcompact.c: Regenerate.
  3784. * features/arc-v2.c: Regenerate.
  3785. * xml-tdesc.c (tdesc_start_field): Require "end" spec. Single bit
  3786. fields default to "bool" type.
  3787. Revert 2016-03-15 Doug Evans <dje@google.com>
  3788. * features/i386/32bit-core.xml (i386_eflags): Remove "end" spec.
  3789. * features/i386/32bit-sse.xml (i386_eflags): Ditto.
  3790. * features/i386/64bit-core.xml (i386_eflags): Ditto.
  3791. * features/i386/64bit-sse.xml (i386_eflags): Ditto.
  3792. * features/i386/x32-core.xml (i386_eflags): Ditto.
  3793. 2016-10-05 Tom Tromey <tom@tromey.com>
  3794. PR breakpoints/20653:
  3795. * location.c (string_to_explicit_location): Use NULL, not '\0'.
  3796. 2016-10-05 Tom Tromey <tom@tromey.com>
  3797. PR symtab/20652:
  3798. * psymtab.c (psymbol_compare): Correctly compare "ginfo.value"
  3799. fields.
  3800. 2016-10-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
  3801. * dwarf2expr.c (dwarf_expr_require_composition): Allow
  3802. DW_OP_GNU_uninit.
  3803. (execute_stack_op): Use dwarf_expr_require_composition instead of
  3804. copying its logic.
  3805. 2016-10-05 Anton Kolesov <anton.kolesov@synopsys.com>
  3806. * arc-tdep.c (arc_frame_prev_register): Remove annoying log message.
  3807. 2016-10-05 Yao Qi <yao.qi@linaro.org>
  3808. * features/Makefile (WHICH): Add
  3809. rs6000/powerpc-isa205-32l, rs6000/powerpc-isa205-64l,
  3810. rs6000/powerpc-isa205-altivec32l, rs6000/powerpc-isa205-altivec64l,
  3811. rs6000/powerpc-isa205-vsx32l and rs6000/powerpc-isa205-vsx64l.
  3812. * regformats/rs6000/powerpc-isa205-32l.dat: Regenerated.
  3813. * regformats/rs6000/powerpc-isa205-64l.dat: Likewise.
  3814. * regformats/rs6000/powerpc-isa205-altivec32l.dat: Likewise.
  3815. * regformats/rs6000/powerpc-isa205-altivec64l.dat: Likewise.
  3816. * regformats/rs6000/powerpc-isa205-vsx32l.dat: Likewise.
  3817. * regformats/rs6000/powerpc-isa205-vsx64l.dat: Likewise.
  3818. 2016-10-05 Yao Qi <yao.qi@linaro.org>
  3819. * features/Makefile (XMLTOC): Add s390-tevx-linux64.xml,
  3820. s390-vx-linux64.xml, s390x-tevx-linux64.xml and
  3821. s390x-vx-linux64.xml.
  3822. 2016-10-05 Yao Qi <yao.qi@linaro.org>
  3823. * features/Makefile: Remove i386/*-expedite. Add i386-expedite,
  3824. amd64-expedite, and x32-expedite.
  3825. 2016-10-05 Terry Guo <terry.guo@arm.com>
  3826. Yao Qi <yao.qi@linaro.org>
  3827. * arm-tdep.c: Adjust includes.
  3828. * features/Makefile (WHICH): Add "arm/" directory to arm
  3829. target descriptions.
  3830. (XMLTOC): Likewise.
  3831. (arm/arm-with-iwmmxt.dat): Adjust the path for
  3832. dependencies.
  3833. * features/arm-core.xml: Moved to ...
  3834. * features/arm/arm-core.xml: ... it.
  3835. * features/arm-fpa.xml: Moved to ...
  3836. * features/arm/arm-fpa.xml: ... it.
  3837. * features/arm-m-profile.xml: Moved to ...
  3838. * features/arm/arm-m-profile.xm: ... it.
  3839. * features/arm-vfpv2.xml: Moved to ...
  3840. * features/arm/arm-vfpv2.xm: ... it.
  3841. * features/arm-vfpv3.xml: Moved to ...
  3842. * features/arm/arm-vfpv3.xml: ... it.
  3843. * features/arm-with-iwmmxt.c: Moved to ...
  3844. * features/arm/arm-with-iwmmxt.c: ... it.
  3845. * features/arm-with-iwmmxt.xml: Moved to ...
  3846. * features/arm/arm-with-iwmmxt.xml: ... it.
  3847. * features/arm-with-m-fpa-layout.c: Moved to ...
  3848. * features/arm/arm-with-m-fpa-layout.c: ... it.
  3849. * features/arm-with-m-fpa-layout.xml: Moved to ...
  3850. * features/arm/arm-with-m-fpa-layout.xml: ... it.
  3851. * features/arm-with-m-vfp-d16.c: Moved to ...
  3852. * features/arm/arm-with-m-vfp-d16.c: ... it.
  3853. * features/arm-with-m-vfp-d16.xml: Moved to ...
  3854. * features/arm/arm-with-m-vfp-d16.xml: ... it.
  3855. * features/arm-with-m.c: Moved to ...
  3856. * features/arm/arm-with-m.c: ... it.
  3857. * features/arm-with-m.xml: Moved to ...
  3858. * features/arm/arm-with-m.xm: ... it.
  3859. * features/arm-with-neon.c: Moved to ...
  3860. * features/arm/arm-with-neon.c: ... it.
  3861. * features/arm-with-neon.xml: Moved to ...
  3862. * features/arm/arm-with-neon.xml: ... it.
  3863. * features/arm-with-vfpv2.c: Moved to ...
  3864. * features/arm/arm-with-vfpv2.c: ... it.
  3865. * features/arm-with-vfpv2.xml: Moved to ...
  3866. * features/arm/arm-with-vfpv2.xml: ... it.
  3867. * features/arm-with-vfpv3.c: Moved to ...
  3868. * features/arm/arm-with-vfpv3.c: ... it.
  3869. * features/arm-with-vfpv3.xml: Moved to ...
  3870. * features/arm/arm-with-vfpv3.xml: ... it.
  3871. * features/xscale-iwmmxt.xml: Moved to ...
  3872. * features/arm/xscale-iwmmxt.xml: ... it.
  3873. 2016-10-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
  3874. 2016-10-03 Simon Marchi <simon.marchi@ericsson.com>
  3875. PR gdb/20487
  3876. * NEWS: Mention new frame field of =thread-selected event.
  3877. * cli/cli-decode.c (add_cmd): Initialize c->suppress_notification.
  3878. (add_com_suppress_notification): New function definition.
  3879. (cmd_func): Set and restore the suppress_notification flag.
  3880. * cli/cli-deicode.h (struct cmd_list_element)
  3881. <suppress_notification>: New field.
  3882. * cli/cli-interp.c (cli_suppress_notification): New global variable.
  3883. (cli_on_user_selected_context_changed): New function.
  3884. (_initialize_cli_interp): Attach to user_selected_context_changed
  3885. observer.
  3886. * command.h (struct cli_suppress_notification): New structure.
  3887. (cli_suppress_notification): New global variable declaration.
  3888. (add_com_suppress_notification): New function declaration.
  3889. * defs.h (enum user_selected_what_flag): New enum.
  3890. (user_selected_what): New enum flag type.
  3891. * frame.h (print_stack_frame_to_uiout): New function declaration.
  3892. * gdbthread.h (print_selected_thread_frame): New function declaration.
  3893. * inferior.c (print_selected_inferior): New function definition.
  3894. (inferior_command): Remove printing of inferior/thread/frame switch
  3895. notifications, notify user_selected_context_changed observer.
  3896. * inferior.h (print_selected_inferior): New function declaration.
  3897. * mi/mi-cmds.c (struct mi_cmd): Add user_selected_context
  3898. suppression to stack-select-frame and thread-select commands.
  3899. * mi/mi-interp.c (struct mi_suppress_notification)
  3900. <user_selected_context>: Initialize.
  3901. (mi_user_selected_context_changed): New function definition.
  3902. (_initialize_mi_interp): Attach to user_selected_context_changed.
  3903. * mi/mi-main.c (mi_cmd_thread_select): Print thread selection reply.
  3904. (mi_execute_command): Handle notification suppression. Notify
  3905. user_selected_context_changed observer on thread change instead of printing
  3906. event directly. Don't send it if command already sends the notification.
  3907. (command_notifies_uscc_observer): New function.
  3908. (mi_cmd_execute): Don't handle notification suppression.
  3909. * mi/mi-main.h (struct mi_suppress_notification)
  3910. <user_selected_context>: New field.
  3911. * stack.c (print_stack_frame_to_uiout): New function definition.
  3912. (select_frame_command): Notify user_selected_context_changed
  3913. observer.
  3914. (frame_command): Call print_selected_thread_frame if there's no frame
  3915. change or notify user_selected_context_changed observer if there is.
  3916. (up_command): Notify user_selected_context_changed observer.
  3917. (down_command): Likewise.
  3918. (_initialize_stack): Suppress user_selected_context notification for
  3919. command select-frame.
  3920. * thread.c (thread_command): Notify
  3921. user_selected_context_changed if the thread has changed, print
  3922. thread info directly if it hasn't.
  3923. (do_captured_thread_select): Do not print thread switch event.
  3924. (print_selected_thread_frame): New function definition.
  3925. * tui/tui-interp.c (tui_on_user_selected_context_changed):
  3926. New function definition.
  3927. (_initialize_tui_interp): Attach to user_selected_context_changed
  3928. observer.
  3929. 2016-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
  3930. PR gdb/20609 - attach of JIT-debug-enabled inf 7.11.1 regression
  3931. * exec.c (exec_file_locate_attach): Add parameter defer_bp_reset.
  3932. Use it.
  3933. * gdbcore.h (exec_file_locate_attach): Add parameter defer_bp_reset.
  3934. * infcmd.c (setup_inferior): Update caller.
  3935. * remote.c (remote_add_inferior): Likewise.
  3936. 2016-09-28 Pedro Alves <palves@redhat.com>
  3937. * infcall.c (run_inferior_call): Remove input from the event
  3938. loop while running the infcall.
  3939. 2016-09-27 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
  3940. * arm-tdep.c (arm_m_addr_is_magic): New function.
  3941. (arm_addr_bits_remove): Call arm_m_addr_is_magic.
  3942. (arm_m_exception_unwind_sniffer): Likewise.
  3943. 2016-09-23 Jon Turney <jon.turney@dronecode.org.uk>
  3944. * windows-nat.c (windows_delete_thread): Adjusting call to
  3945. target_mourn_inferior to include ptid_t argument.
  3946. 2016-09-23 Tom Tromey <tom@tromey.com>
  3947. * utils.h (make_cleanup_dyn_string_delete): Remove declaration.
  3948. * utils.c: Don't include dyn-string.h.
  3949. (do_dyn_string_delete, make_cleanup_dyn_string_delete): Remove.
  3950. * cli/cli-cmds.c: Include <string>. Don't include dyn-string.h.
  3951. (argv_to_string): Rename. Change return type to std::string.
  3952. (alias_command): Use std::string.
  3953. 2016-09-23 Tom Tromey <tom@tromey.com>
  3954. * objfiles.c: Include <vector>.
  3955. (objfile_relocate): Use std::vector.
  3956. 2016-09-23 Tom Tromey <tom@tromey.com>
  3957. * rust-lang.c: Include <string> and <vector>.
  3958. (rust_evaluate_funcall): Use std::vector, std::string.
  3959. (rust_evaluate_subexp): Use std::string.
  3960. (rust_lookup_symbol_nonlocal): Use std::string.
  3961. 2016-09-23 Tom Tromey <tom@tromey.com>
  3962. * cp-namespace.c: Include <string>.
  3963. (cp_search_static_and_baseclasses)
  3964. (cp_lookup_symbol_imports_or_template, find_symbol_in_baseclass):
  3965. Use std::string.
  3966. 2016-09-23 Tom Tromey <tom@tromey.com>
  3967. * break-catch-sig.c: Include <string>.
  3968. (signal_catchpoint_print_one): Use std::string.
  3969. 2016-09-23 Tom Tromey <tom@tromey.com>
  3970. * utils.c (struct restore_ui_out_closure): Remove.
  3971. * objfiles.h (terminate_minimal_symbol_table): Don't declare.
  3972. 2016-09-23 Yao Qi <yao.qi@linaro.org>
  3973. * nat/linux-osdata.c (linux_xfer_osdata_threads): Replace
  3974. sprintf with xsnprintf.
  3975. (linux_xfer_osdata_fds): Likewise.
  3976. 2016-09-23 Pedro Alves <palves@redhat.com>
  3977. * Makefile.in (SFILES): Add common/new-op.c.
  3978. (COMMON_OBS): Add common/new-op.o.
  3979. (new-op.o): New rule.
  3980. * common/common-exceptions.h: Include <new>.
  3981. (struct gdb_quit_bad_alloc): New type.
  3982. * common/new-op.c: New file.
  3983. 2016-09-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
  3984. * rs6000-tdep.c (ppc_process_record_op31): Fix
  3985. regcache_raw_read_unsigned call using the correct parameter type.
  3986. 2016-09-22 Anton Kolesov <anton.kolesov@synopsys.com>
  3987. * arc-tdep.c: Fix ARI warning for printf(%p).
  3988. 2016-09-21 Anton Kolesov <anton.kolesov@synopsys.com>
  3989. * MAINTAINERS (Write After Approval): Add Anton Kolesov.
  3990. 2016-09-21 Anton Kolesov <anton.kolesov@synopsys.com>
  3991. * Makefile.in (ALL_TARGET_OBS): Add arc-tdep.o.
  3992. (HFILES_NO_SRCDIR): Add arc-tdep.h.
  3993. (ALLDEPFILES): Add arc-tdep.c.
  3994. * NEWS: Mention new ARC port.
  3995. * configure.tgt: Add ARC.
  3996. * arc-tdep.c: New file.
  3997. * arc-tdep.h: New file.
  3998. * features/Makefile (XMLTOC): Add arc-v2.xml and arc-arcompact.xml.
  3999. * features/arc-v2.xml: New file.
  4000. * features/arc-v2.c: New file (generated).
  4001. * features/arc-arcompact.xml: New file.
  4002. * features/arc-arcompact.c: New file (generated).
  4003. 2016-09-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
  4004. * rs6000-tdep.c (ppc_process_record_op63): Fix return of instruction
  4005. handlers.
  4006. 2016-09-21 Tom Tromey <tom@tromey.com>
  4007. PR gdb/20604:
  4008. * top.h (quit_force): Update.
  4009. * top.c (quit_force): Changed type of first argument. Don't
  4010. evaluate expression. Pass NULL to kill_or_detach.
  4011. * cli/cli-cmds.c (quit_command): Evaluate "args".
  4012. 2016-09-21 Simon Marchi <simon.marchi@ericsson.com>
  4013. * .gitignore: Ignore more files.
  4014. * data-directory/.gitignore: Likewise.
  4015. 2016-09-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
  4016. * rs6000-tdep.c (PPC_DQ): New macro.
  4017. (ppc_process_record_op4): Add Power ISA 3.0 instructions.
  4018. (ppc_process_record_op19): Likewise.
  4019. (ppc_process_record_op31): Likewise.
  4020. (ppc_process_record_op59): Likewise.
  4021. (ppc_process_record_op60): Likewise.
  4022. (ppc_process_record_op63): Likewise.
  4023. (ppc_process_record): Likewise.
  4024. (ppc_process_record_op61): New function.
  4025. 2016-09-21 Yao Qi <yao.qi@linaro.org>
  4026. * aarch32-linux-nat.c (aarch32_gp_regcache_collect): Keep
  4027. bits 20 to 23.
  4028. 2016-09-20 Tom Tromey <tom@tromey.com>
  4029. * python/py-value.c (convert_value_from_python): Make PyInt_Check
  4030. conditional on Python 2.
  4031. * python/py-arch.c (archpy_disassemble): Make PyInt_Check
  4032. conditional on Python 2.
  4033. 2016-09-20 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
  4034. * rs6000-tdep.c (ppc_process_record_op31): Fix record of Store String
  4035. Word instructions.
  4036. 2016-09-20 Sergio Durigan Junior <sergiodj@redhat.com>
  4037. * fork-inferior.c (startup_inferior): Pass 'event_ptid' instead of
  4038. 'resume_ptid' to 'target_mourn_inferior'. Fix regression
  4039. introduced by my last commit.
  4040. 2016-09-19 Pedro Alves <palves@redhat.com>
  4041. * common/gdb_locale.h [!ENABLE_NLS] (gettext, dgettext, dcgettext,
  4042. textdomain, bindtextdomain): Delete macros.
  4043. * main.c (captured_main) [!ENABLE_NLS]: Skip bintextdomain and
  4044. textdomain calls.
  4045. 2016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
  4046. * darwin-nat.c (darwin_kill_inferior): Adjusting call to
  4047. target_mourn_inferior to include ptid_t argument.
  4048. * fork-child.c (startup_inferior): Likewise.
  4049. * gnu-nat.c (gnu_kill_inferior): Likewise.
  4050. * inf-ptrace.c (inf_ptrace_kill): Likewise.
  4051. * infrun.c (handle_inferior_event_1): Likewise.
  4052. * linux-nat.c (linux_nat_attach): Likewise.
  4053. (linux_nat_kill): Likewise.
  4054. * nto-procfs.c (interrupt_query): Likewise.
  4055. (procfs_interrupt): Likewise.
  4056. (procfs_kill_inferior): Likewise.
  4057. * procfs.c (procfs_kill_inferior): Likewise.
  4058. * record.c (record_mourn_inferior): Likewise.
  4059. * remote-sim.c (gdbsim_kill): Likewise.
  4060. * remote.c (remote_detach_1): Likewise.
  4061. (remote_kill): Likewise.
  4062. * target.c (target_mourn_inferior): Change declaration to accept
  4063. new ptid_t argument; use gdb_assert on it.
  4064. * target.h (target_mourn_inferior): Move function prototype from
  4065. here...
  4066. * target/target.h (target_mourn_inferior): ... to here. Adjust it
  4067. to accept new ptid_t argument.
  4068. * windows-nat.c (get_windows_debug_event): Adjusting call to
  4069. target_mourn_inferior to include ptid_t argument.
  4070. 2016-09-18 Pedro Alves <palves@redhat.com>
  4071. * s390-linux-nat.c: Include <algorithm>.
  4072. 2016-09-18 Pedro Alves <palves@redhat.com>
  4073. * breakpoint.c (hardware_watchpoint_inserted_in_range): Explicitly
  4074. specify the std:min/std::max specialization.
  4075. * exec.c (section_table_read_available_memory): Likewise.
  4076. * remote.c (remote_read_qxfer): Likewise.
  4077. * target.c (simple_verify_memory): Likewise.
  4078. 2016-09-16 Simon Marchi <simark@simark.ca>
  4079. * infrun.c (restore_current_uiout_cleanup): Move to ui-out.c.
  4080. (print_stop_event): Use make_cleanup_restore_current_uiout.
  4081. * python/python.c (execute_gdb_command): Likewise.
  4082. * ui-out.c (restore_current_uiout_cleanup): Move from infrun.c.
  4083. (make_cleanup_restore_current_uiout): New function definition.
  4084. * ui-out.h (make_cleanup_restore_current_uiout): New function
  4085. declaration.
  4086. * utils.c (do_restore_ui_out): Remove.
  4087. (make_cleanup_restore_ui_out): Remove.
  4088. * utils.h (make_cleanup_restore_ui_out): Remove.
  4089. 2016-09-16 Pedro Alves <palves@redhat.com>
  4090. * defs.h (min, max): Delete.
  4091. * aarch64-tdep.c: Include <algorithm> and use std::min and
  4092. std::max throughout.
  4093. * aarch64-tdep.c: Likewise.
  4094. * alpha-tdep.c: Likewise.
  4095. * amd64-tdep.c: Likewise.
  4096. * amd64-windows-tdep.c: Likewise.
  4097. * arm-tdep.c: Likewise.
  4098. * avr-tdep.c: Likewise.
  4099. * breakpoint.c: Likewise.
  4100. * btrace.c: Likewise.
  4101. * ctf.c: Likewise.
  4102. * disasm.c: Likewise.
  4103. * doublest.c: Likewise.
  4104. * dwarf2loc.c: Likewise.
  4105. * dwarf2read.c: Likewise.
  4106. * environ.c: Likewise.
  4107. * exec.c: Likewise.
  4108. * f-exp.y: Likewise.
  4109. * findcmd.c: Likewise.
  4110. * ft32-tdep.c: Likewise.
  4111. * gcore.c: Likewise.
  4112. * hppa-tdep.c: Likewise.
  4113. * i386-darwin-tdep.c: Likewise.
  4114. * i386-tdep.c: Likewise.
  4115. * linux-thread-db.c: Likewise.
  4116. * lm32-tdep.c: Likewise.
  4117. * m32r-tdep.c: Likewise.
  4118. * m88k-tdep.c: Likewise.
  4119. * memrange.c: Likewise.
  4120. * minidebug.c: Likewise.
  4121. * mips-tdep.c: Likewise.
  4122. * moxie-tdep.c: Likewise.
  4123. * nds32-tdep.c: Likewise.
  4124. * nios2-tdep.c: Likewise.
  4125. * nto-procfs.c: Likewise.
  4126. * parse.c: Likewise.
  4127. * ppc-sysv-tdep.c: Likewise.
  4128. * probe.c: Likewise.
  4129. * record-btrace.c: Likewise.
  4130. * remote.c: Likewise.
  4131. * rs6000-tdep.c: Likewise.
  4132. * rx-tdep.c: Likewise.
  4133. * s390-linux-nat.c: Likewise.
  4134. * s390-linux-tdep.c: Likewise.
  4135. * ser-tcp.c: Likewise.
  4136. * sh-tdep.c: Likewise.
  4137. * sh64-tdep.c: Likewise.
  4138. * source.c: Likewise.
  4139. * sparc-tdep.c: Likewise.
  4140. * symfile.c: Likewise.
  4141. * target-memory.c: Likewise.
  4142. * target.c: Likewise.
  4143. * tic6x-tdep.c: Likewise.
  4144. * tilegx-tdep.c: Likewise.
  4145. * tracefile-tfile.c: Likewise.
  4146. * tracepoint.c: Likewise.
  4147. * valprint.c: Likewise.
  4148. * value.c: Likewise.
  4149. * xtensa-tdep.c: Likewise.
  4150. * cli/cli-cmds.c: Likewise.
  4151. * compile/compile-object-load.c: Likewise.
  4152. 2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
  4153. * s390-linux-nat.c (PER_BIT, PER_EVENT_BRANCH, PER_EVENT_IFETCH)
  4154. (PER_EVENT_STORE, PER_EVENT_NULLIFICATION)
  4155. (PER_CONTROL_BRANCH_ADDRESS, PER_CONTROL_SUSPENSION)
  4156. (PER_CONTROL_ALTERATION): New macros.
  4157. (struct s390_debug_reg_state) <break_areas>: New member.
  4158. (s390_forget_process): Free break_areas as well.
  4159. (s390_linux_new_fork): Copy break_areas as well.
  4160. (s390_prepare_to_resume): Install hardware breakpoints.
  4161. (s390_can_use_hw_breakpoint): Indicate support for hardware
  4162. breakpoints.
  4163. (s390_insert_hw_breakpoint, s390_remove_hw_breakpoint): New
  4164. linux_nat target methods.
  4165. (_initialize_s390_nat): Register them.
  4166. 2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
  4167. * nat/linux-nat.h (lwp_is_stepping): New declaration.
  4168. * linux-nat.c (lwp_is_stepping): New function.
  4169. 2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
  4170. * s390-linux-nat.c (gdbcmd.h): New include.
  4171. (s390_show_debug_regs): New function.
  4172. (s390_stopped_by_watchpoint): Call it, if show_debug_regs is set.
  4173. (s390_prepare_to_resume): Likewise.
  4174. (_initialize_s390_nat): Register the command "maint set
  4175. show-debug-regs".
  4176. 2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
  4177. * s390-linux-nat.c (watch_areas): Remove variable. Replace by a
  4178. member of...
  4179. (struct s390_debug_reg_state): ...this. New struct.
  4180. (struct s390_process_info): New struct.
  4181. (s390_process_list): New variable.
  4182. (s390_find_process_pid, s390_add_process, s390_process_info_get)
  4183. (s390_get_debug_reg_state): New functions.
  4184. (s390_stopped_by_watchpoint): Now access the watch_areas VEC via
  4185. s390_get_debug_reg_state.
  4186. (s390_prepare_to_resume): Likewise.
  4187. (s390_insert_watchpoint): Likewise.
  4188. (s390_remove_watchpoint): Likewise.
  4189. (s390_forget_process, s390_linux_new_fork): New linux_nat target
  4190. methods.
  4191. (_initialize_s390_nat): Register them.
  4192. 2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
  4193. * s390-linux-nat.c (s390_watch_area): New typedef. Define a VEC.
  4194. (watch_base): Remove variable.
  4195. (watch_areas): New variable.
  4196. (s390_stopped_by_watchpoint): Transform operations on the
  4197. watch_base list to equivalent operations on the watch_areas VEC.
  4198. (s390_prepare_to_resume): Likewise.
  4199. (s390_insert_watchpoint): Likewise.
  4200. (s390_remove_watchpoint): Likewise.
  4201. 2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
  4202. * s390-linux-nat.c (s390_prepare_to_resume): Use advertised lwp
  4203. functions instead of accessing lwp_info structure members.
  4204. (s390_mark_per_info_changed): New function.
  4205. (s390_new_thread): Use it.
  4206. (s390_refresh_per_info_cb): New function.
  4207. (s390_refresh_per_info): Remove parameter. Refresh all lwps of
  4208. the current process.
  4209. (s390_insert_watchpoint): Adjust call to s390_refresh_per_info.
  4210. (s390_remove_watchpoint): Likewise.
  4211. 2016-09-09 Andreas Arnez <arnez@linux.vnet.ibm.com>
  4212. * elfread.c (auxv.h): New include.
  4213. (elf_gnu_ifunc_resolve_addr): Pass HWCAP to ifunc resolver.
  4214. 2016-09-08 Tom Tromey <tom@tromey.com>
  4215. * remote.c (remote_notif_stop_ack, remote_wait_as)
  4216. (show_remote_cmd): Remove unneeded casts.
  4217. 2016-09-06 Pedro Alves <palves@redhat.com>
  4218. * top.c (wait_sync_command_done): Don't assume current_ui doesn't
  4219. change across events. Restore the current UI before returning.
  4220. (gdb_readline_wrapper): Restore the current UI before returning.
  4221. 2016-09-06 Pedro Alves <palves@redhat.com>
  4222. * event-top.c (restore_ui_cleanup): Now static.
  4223. (make_cleanup_restore_current_ui): New function.
  4224. (switch_thru_all_uis_init): Use it.
  4225. * infcall.c (call_thread_fsm_should_stop): Use it.
  4226. * infrun.c (fetch_inferior_event): Use it.
  4227. * top.c (new_ui_command): Use it.
  4228. * top.h (restore_ui_cleanup): Delete declaration.
  4229. (make_cleanup_restore_current_ui): New declaration.
  4230. 2016-09-05 Ulrich Weigand <uweigand@de.ibm.com>
  4231. * i386-tdep.c (i386_floatformat_for_type): New function.
  4232. (i386_gdbarch_init): Install it.
  4233. * ppc-linux-tdep.c (ppc_floatformat_for_type): New function.
  4234. (ppc_linux_init_abi): Install it.
  4235. 2016-09-05 Ulrich Weigand <uweigand@de.ibm.com>
  4236. * gdbarch.sh (floatformat_for_type): New gdbarch callback.
  4237. * gdbarch.h, gdbarch.c: Re-generate.
  4238. * arch-utils.h (default_floatformat_for_type): New prototype.
  4239. * arch-utils.c (default_floatformat_for_type): New function.
  4240. * doublest.c (floatformat_from_length): Remove.
  4241. (floatformat_from_type): Assume TYPE_FLOATFORMAT is non-NULL.
  4242. * gdbtypes.c (verify_floatformat): Require non-NULL format.
  4243. * dwarf2read.c (dwarf2_init_float_type): New function.
  4244. (read_base_type): Use it.
  4245. * stabsread.c (dbx_init_float_type): New function.
  4246. (read_sun_floating_type): Use it.
  4247. (read_range_type): Likewise.
  4248. 2016-09-05 Ulrich Weigand <uweigand@de.ibm.com>
  4249. * ada-lang.c (ada_language_arch_info): Use gdbarch-provided
  4250. platform ABI floating-point formats for built-in types.
  4251. * d-lang.c (build_d_types): Likewise.
  4252. * f-lang.c (build_fortran_types): Likewise.
  4253. * m2-lang.c (build_m2_types): Likewise.
  4254. * mdebugread.c (basic_type): Likewise.
  4255. * go-lang.c (build_go_types): Use IEEE floating-point formats
  4256. for language built-in types as mandanted by the language.
  4257. * jv-lang.c (build_java_types): Likewise.
  4258. * rust-lang.c (rust_language_arch_info): Likewise.
  4259. * stabsread.c (rs6000_builtin_type): Likewise.
  4260. 2016-09-05 Ulrich Weigand <uweigand@de.ibm.com>
  4261. * gdbtypes.c (init_type): Remove "char" special case.
  4262. (arch_integer_type): Likewise.
  4263. (gdbtypes_post_init): Set TYPE_NOSIGN for "char" type.
  4264. (objfile_type): Likewise.
  4265. * mdebugread.c (basic_type): Likewise.
  4266. * stabsread.c (rs6000_builtin_type): Likewise.
  4267. 2016-09-05 Ulrich Weigand <uweigand@de.ibm.com>
  4268. * gdbtypes.h (enum type_flag_value): Remove.
  4269. Remove references to TYPE_FLAG_... in comments throughout.
  4270. * gdbtypes.c (recursive_dump_type): Do not print TYPE_FLAG_...
  4271. flags, print the corresponding TYPE_... access macro names.
  4272. Remove references to TYPE_FLAG_... in comments throughout.
  4273. * infcall.c: Remove references to TYPE_FLAG_... in comments.
  4274. * valprint.c: Likewise.
  4275. * gdb-gdb.py (class TypeFlag): No longer consider TYPE_FLAG_...
  4276. values, only TYPE_INSTANCE_FLAG_... values.
  4277. (class TypeFlagsPrinter): Likewise.
  4278. 2016-09-05 Ulrich Weigand <uweigand@de.ibm.com>
  4279. * gdbtypes.h (init_type): Remove FLAGS argument. Move OBJFILE
  4280. argument to first position.
  4281. (init_integer_type): New prototype.
  4282. (init_character_type): Likewise.
  4283. (init_boolean_type): Likewise.
  4284. (init_float_type): Likewise.
  4285. (init_decfloat_type): Likewise.
  4286. (init_complex_type): Likewise.
  4287. (init_pointer_type): Likewise.
  4288. * gdbtypes.c (verify_floatflormat): New function.
  4289. (init_type): Remove FLAGS argument and processing. Move OBJFILE
  4290. argument to first position.
  4291. (init_integer_type): New function.
  4292. (init_character_type): Likewise.
  4293. (init_boolean_type): Likewise.
  4294. (init_float_type): Likewise.
  4295. (init_decfloat_type): Likewise.
  4296. (init_complex_type): Likewise.
  4297. (init_pointer_type): Likewise.
  4298. (arch_float_type): Use verify_floatflormat.
  4299. (objfile_type): Use init_..._type helpers instead of calling
  4300. init_type directly.
  4301. * dwarf2read.c (fixup_go_packaging): Update to changed init_type
  4302. prototype.
  4303. (read_namespace_type): Likewise.
  4304. (read_module_type): Likewise.
  4305. (read_typedef): Likewise.
  4306. (read_unspecified_type): Likewise.
  4307. (build_error_marker_type): Likewise.
  4308. (read_base_type): Use init_..._type helpers.
  4309. * mdebugread.c (basic_type): Use init_..._type helpers.
  4310. (parse_type): Update to changed init_type prototype.
  4311. (cross_ref): Likewise.
  4312. * stabsread.c (rs6000_builtin_type): Use init_..._type helpers.
  4313. (read_sun_builtin_type): Likewise.
  4314. (read_sun_floating_type): Likewise.
  4315. (read_range_type): Likewise. Also update to changed init_type
  4316. prototype.
  4317. 2016-09-05 Ulrich Weigand <uweigand@de.ibm.com>
  4318. * gdbtypes.h (arch_decfloat_type): New prototype.
  4319. (arch_pointer_type): Likewise.
  4320. * gdbtypes.c (arch_decfloat_type): New function.
  4321. (arch_pointer_type): Likewise.
  4322. (gdbtypes_post_init): Use arch_decfloat_type.
  4323. * avr-tdep.c (avr_gdbarch_init): Use arch_pointer_type.
  4324. * ft32-tdep.c (ft32_gdbarch_init): Likewise.
  4325. * m32c-tdep.c (make_types): Likewise.
  4326. * rl78-tdep.c (rl78_gdbarch_init): Likewise.
  4327. 2016-09-05 Ulrich Weigand <uweigand@de.ibm.com>
  4328. * gdbtypes.c (set_type_code): New function.
  4329. (init_type, arch_type): Use it.
  4330. 2016-09-05 Ulrich Weigand <uweigand@de.ibm.com>
  4331. * ada-lang.c (ada_language_arch_info): Use gdbarch_long_double_bit
  4332. instead of gdbarch_double_bit for "long_long_float".
  4333. 2016-09-05 Pedro Alves <palves@redhat.com>
  4334. * NEWS: Mention that a C++ compiler is now required.
  4335. * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
  4336. (COMPILE.pre, CC_LD): Use CXX directly.
  4337. (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
  4338. * acinclude.m4: Don't include build-with-cxx.m4.
  4339. * build-with-cxx.m4: Delete file.
  4340. * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
  4341. * warning.m4: Assume $enable_build_with_cxx is yes.
  4342. * configure: Regenerate.
  4343. 2016-09-05 Pedro Alves <palves@redhat.com>
  4344. PR backtrace/19927
  4345. * frame.c (get_frame_id): Compute the frame id if not computed
  4346. yet.
  4347. (unwind_to_current_frame): Delete.
  4348. (get_current_frame): Use get_prev_frame_always_1 to get the
  4349. current frame and assert that that always succeeds.
  4350. (get_prev_frame_if_no_cycle): Skip cycle detection if returning
  4351. the current frame.
  4352. 2016-09-02 Tom Tromey <tom@tromey.com>
  4353. PR gdb/11616:
  4354. * dwarf2read.c (decode_locdesc): Handle DW_OP_form_tls_address.
  4355. * dwarf2loc.c (dwarf2_compile_expr_to_ax): Handle
  4356. DW_OP_form_tls_address.
  4357. (locexpr_describe_location_piece): Likewise.
  4358. * dwarf2expr.h (struct dwarf_expr_context_funcs): Update comment.
  4359. * dwarf2expr.c (execute_stack_op): Handle DW_OP_form_tls_address.
  4360. (ctx_no_get_tls_address): Mention DW_OP_form_tls_address.
  4361. * compile/compile-loc2c.c (struct insn_info): Update comment.
  4362. (compute_stack_depth_worker): Handle DW_OP_form_tls_address.
  4363. 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
  4364. * target.c (target_wait): Mention that the function's prototype
  4365. can be found at target/target.h.
  4366. * target.h (target_wait): Move prototype from here...
  4367. * target/target.h (target_wait): ... to here.
  4368. 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
  4369. * fork-child.c (startup_inferior): Replace calls to target_resume
  4370. by target_continue{,_no_signal}, depending on the case.
  4371. * linux-nat.c (cleanup_target_stop): Call
  4372. target_continue_no_signal instead of target_resume.
  4373. * procfs.c (procfs_wait): Likewise.
  4374. * target.c (target_continue): New function.
  4375. * target/target.h (target_continue): New prototype.
  4376. 2016-08-31 Yao Qi <yao.qi@linaro.org>
  4377. * record-full.c (record_full_insert_breakpoint): Fix typo.
  4378. 2016-08-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
  4379. * thread.c (tp_array_compar): Insert missing parentheses.
  4380. 2016-08-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
  4381. * xtensa-tdep.h (XTENSA_GDBARCH_TDEP_INSTANTIATE): Replace
  4382. designated initializer list by plain initializer list, for C++
  4383. compliance.
  4384. 2016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
  4385. * aarch64-linux-nat.c (ps_get_thread_area): Remove const from
  4386. struct ps_prochandle.
  4387. * amd64-linux-nat.c (ps_get_thread_area): Likewise.
  4388. * arm-linux-nat.c (ps_get_thread_area): Likewise.
  4389. * gdb_proc_service.h (ps_get_thread_area): Likewise.
  4390. * i386-linux-nat.c (ps_get_thread_area): Likewise.
  4391. * m68klinux-nat.c (ps_get_thread_area): Likewise.
  4392. * mips-linux-nat.c (ps_get_thread_area): Likewise.
  4393. * nat/aarch64-linux.c (aarch64_ps_get_thread_area): Likewise.
  4394. * nat/aarch64-linux.h (aarch64_ps_get_thread_area): Likewise.
  4395. * xtensa-linux-nat.c (ps_get_thread_area): Likewise.
  4396. 2016-08-24 Simon Marchi <simon.marchi@ericsson.com>
  4397. * infcmd.c (set_inferior_io_terminal): Set inferior terminal to
  4398. NULL if terminal_name is an empty string.
  4399. (_initialize_infcmd): Make the argument of "set inferior-tty"
  4400. optional, mention it in the help doc.
  4401. 2016-08-24 Carl Love <cel@us.ibm.com>
  4402. * rs6000-tdep.c (rs6000_gdbarch_init): Remove call
  4403. set_gdbarch_deprecated_fp_regnum() architecture
  4404. initialization function.
  4405. 2016-08-23 Simon Marchi <simon.marchi@ericsson.com>
  4406. * stack.c (parse_frame_specification): Fix typo in comment.
  4407. 2016-08-23 Pedro Alves <palves@redhat.com>
  4408. PR gdb/20494
  4409. * inflow.c (our_terminal_info, initial_gdb_ttystate): Update
  4410. comments.
  4411. (enum gdb_has_a_terminal_flag_enum, gdb_has_a_terminal_flag):
  4412. Delete.
  4413. (set_initial_gdb_ttystate): Record our_terminal_info here too,
  4414. instead of ...
  4415. (gdb_has_a_terminal): ... here. Reimplement in terms of
  4416. initial_gdb_ttystate. Make static.
  4417. * terminal.h (gdb_has_a_terminal): Delete declaration.
  4418. (set_initial_gdb_ttystate): Add comment.
  4419. * top.c (show_interactive_mode): Use input_interactive_p instead
  4420. of gdb_has_a_terminal.
  4421. 2016-08-22 Pedro Alves <palves@redhat.com>
  4422. PR gdb/20505
  4423. * linux-tdep.c (linux_vsyscall_range_raw): For core inferiors,
  4424. find the vDSO's start address with AT_SYSINFO_EHDR too, and
  4425. determine the vDSO's size by finding the PT_LOAD segment that
  4426. matches AT_SYSINFO_EHDR.
  4427. 2016-08-19 Yao Qi <yao.qi@linaro.org>
  4428. * aarch64-tdep.c (aarch64_analyze_prologue): Handle register
  4429. based STP instruction.
  4430. 2016-08-19 Yao Qi <yao.qi@linaro.org>
  4431. * completer.c (linespec_location_completer): Make file_to_match
  4432. null-terminated.
  4433. 2016-08-19 Pedro Alves <palves@redhat.com>
  4434. * amd64-tdep.c (amd64_relocate_instruction) <callq>: Handle return
  4435. addresses over 0x7fffffff.
  4436. 2016-08-18 Carl Love <cel@us.ibm.com>
  4437. * MAINTANERS Write After Approval): Add "Carl Love".
  4438. 2016-08-18 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
  4439. * rs6000-tdep.c (ppc_process_record_op31): Handle HTM instructions.
  4440. 2016-08-17 Simon Marchi <simon.marchi@ericsson.com>
  4441. * inferior.c (remove_inferior_command): Fix error message.
  4442. 2016-08-17 Simon Marchi <simon.marchi@ericsson.com>
  4443. * inferior.c (exit_inferior_1): Remove comment.
  4444. 2016-08-15 Matthew Wahab <matthew.wahab@arm.com>
  4445. PR gdb/20457
  4446. * gdb_proc_service.h: Add an include of gregset.h
  4447. [!HAVE_PROC_SERVICE_H]: Remove the include of gregset.h.
  4448. 2016-08-15 Yao Qi <yao.qi@linaro.org>
  4449. * location.c (explicit_location_lex_one): Compare the return
  4450. value of strncmp with zero. Don't check (*inp)[9]. Increment
  4451. *inp by 8.
  4452. 2016-08-11 Pedro Alves <palves@redhat.com>
  4453. PR gdb/20413
  4454. * nat/linux-ptrace.c: Include <sys/procfs.h> instead of
  4455. "gregset.h".
  4456. 2016-08-10 Pedro Alves <palves@redhat.com>
  4457. PR gdb/19187
  4458. * record-full.c (record_full_remove_breakpoint): Don't remove the
  4459. breakpoint from the record_full_breakpoints VEC if we're detaching
  4460. the breakpoint from a fork child.
  4461. 2016-08-10 Pedro Alves <palves@redhat.com>
  4462. PR gdb/19187
  4463. * break-catch-sig.c (signal_catchpoint_remove_location): Adjust
  4464. interface.
  4465. * break-catch-syscall.c (remove_catch_syscall):
  4466. * breakpoint.c (enum remove_bp_reason): Moved to breakpoint.h.
  4467. (remove_breakpoint_1): Pass 'reason' down.
  4468. (remove_catch_fork, remove_catch_vfork, remove_catch_solib)
  4469. (remove_catch_exec, remove_watchpoint, remove_masked_watchpoint)
  4470. (base_breakpoint_remove_location, bkpt_remove_location)
  4471. (bkpt_probe_remove_location, bkpt_probe_remove_location): Adjust
  4472. interface.
  4473. * breakpoint.h (enum remove_bp_reason): Moved here from
  4474. breakpoint.c.
  4475. (struct breakpoint_ops) <remove_location>: Add 'reason' parameter.
  4476. * corelow.c (core_remove_breakpoint): New function.
  4477. (init_core_ops): Install it as to_remove_breakpoint method.
  4478. * exec.c (exec_remove_breakpoint): New function.
  4479. (init_exec_ops): Install it as to_remove_breakpoint method.
  4480. * mem-break.c (memory_remove_breakpoint): Adjust interface.
  4481. * record-btrace.c (record_btrace_remove_breakpoint): Adjust
  4482. interface.
  4483. * record-full.c (record_full_remove_breakpoint)
  4484. (record_full_core_remove_breakpoint): Adjust interface.
  4485. * remote.c (remote_remove_breakpoint): Adjust interface.
  4486. * target-debug.h (target_debug_print_enum_remove_bp_reason): New
  4487. macro.
  4488. * target-delegates.c: Regenerate.
  4489. * target.c (target_remove_breakpoint): Add 'reason' parameter.
  4490. * target.h (struct target_ops) <to_remove_breakpoint>: Add
  4491. 'reason' parameter.
  4492. (target_remove_breakpoint, memory_remove_breakpoint): Add 'reason'
  4493. parameter.
  4494. 2016-08-10 Pedro Alves <palves@redhat.com>
  4495. PR gdb/19187
  4496. * breakpoint.c (insertion_state_t): Delete.
  4497. (enum remove_bp_reason): New.
  4498. (detach_breakpoints, remove_breakpoint_1, remove_breakpoint):
  4499. Adjust to use enum remove_bp_reason instead of insertion_state_t.
  4500. 2016-08-10 Pedro Alves <palves@redhat.com>
  4501. PR gdb/19187
  4502. * breakpoint.c (remove_breakpoint): Remove 'is' parameter and
  4503. always pass mark_uninserted to remove_breakpoint_1.
  4504. (insert_breakpoint_locations, remove_breakpoints)
  4505. (remove_breakpoints_pid, update_global_location_list): Update
  4506. callers.
  4507. 2016-08-10 Руслан Ижбулатов <lrn1986@gmail.com>
  4508. Pedro Alves <palves@redhat.com>
  4509. * windows-nat.c (MS_VC_EXCEPTION): New define.
  4510. (handle_exception_result): New enum.
  4511. (windows_delete_thread): Free the thread's name.
  4512. (handle_exception): Handle MS_VC_EXCEPTION.
  4513. (get_windows_debug_event): Handle HANDLE_EXCEPTION_IGNORED.
  4514. (windows_thread_name): New function.
  4515. (windows_target): Install it as to_thread_name method.
  4516. * NEWS: Mention the thread naming support on MS-Windows.
  4517. 2016-08-10 Pedro Alves <palves@redhat.com>
  4518. * common/signals-state-save-restore.c
  4519. (save_original_signals_state, restore_original_signals_state):
  4520. Wrap perror_with_name arguments with '()'.
  4521. 2016-08-09 Pedro Alves <palves@redhat.com>
  4522. PR gdb/20418
  4523. * event-top.c (ui_register_input_event_handler)
  4524. (ui_unregister_input_event_handler): New functions.
  4525. (async_enable_stdin): Register input in the event loop.
  4526. (async_disable_stdin): Unregister input from the event loop.
  4527. (gdb_setup_readline): Register input in the event loop.
  4528. * infrun.c (check_curr_ui_sync_execution_done): Register input in
  4529. the event loop.
  4530. * target.c (target_terminal_inferior): Don't unregister input from
  4531. the event loop.
  4532. (target_terminal_ours): Don't register input in the event loop.
  4533. * target.h (target_terminal_inferior)
  4534. (target_terminal_ours_for_output, target_terminal_ours): Update
  4535. comments.
  4536. * top.h (ui_register_input_event_handler)
  4537. (ui_unregister_input_event_handler): New declarations.
  4538. * utils.c (ui_unregister_input_event_handler_cleanup)
  4539. (prepare_to_handle_input): New functions.
  4540. (defaulted_query, prompt_for_continue): Use
  4541. prepare_to_handle_input.
  4542. 2016-08-09 Pedro Alves <palves@redhat.com>
  4543. PR mi/20431
  4544. * mi/mi-main.c (mi_execute_command): Enable input and set prompt
  4545. state to PROMPT_NEEDED.
  4546. 2016-08-09 Pedro Alves <palves@redhat.com>
  4547. PR gdb/18653
  4548. * Makefile.in (SFILES): Add
  4549. common/signals-state-save-restore.c.
  4550. (HFILES_NO_SRCDIR): Add common/signals-state-save-restore.h.
  4551. (COMMON_OBS): Add signals-state-save-restore.o.
  4552. (signals-state-save-restore.o): New rule.
  4553. * configure: Regenerate.
  4554. * fork-child.c: Include "signals-state-save-restore.h".
  4555. (fork_inferior): Call restore_original_signals_state.
  4556. * main.c: Include "signals-state-save-restore.h".
  4557. (captured_main): Call save_original_signals_state.
  4558. * common/common.m4: Add sigaction to AC_CHECK_FUNCS checks.
  4559. * common/signals-state-save-restore.c: New file.
  4560. * common/signals-state-save-restore.h: New file.
  4561. 2016-08-09 Pedro Alves <palves@redhat.com>
  4562. * value.c (unpack_value_bitfield): Skip unpacking if the parent
  4563. has no contents buffer to begin with.
  4564. 2016-08-08 Pedro Alves <palves@redhat.com>
  4565. * features/i386/amd64-avx-mpx-linux.c: Regenerate.
  4566. * features/i386/amd64-avx-mpx.c: Regenerate.
  4567. * features/i386/i386-avx-mpx-linux.c: Regenerate.
  4568. * features/i386/i386-avx-mpx.c: Regenerate.
  4569. 2016-08-05 Simon Marchi <simon.marchi@ericsson.com>
  4570. * event-top.h (cli_command_loop): Remove.
  4571. 2016-08-05 Pedro Alves <palves@redhat.com>
  4572. PR remote/20398
  4573. * remote-fileio.c (remote_fileio_quit_handler): Check the quit
  4574. flag before calling quit.
  4575. 2016-08-05 Pedro Alves <palves@redhat.com>
  4576. * NEWS: Mention that GDB and GDBserver build with a C++ compiler
  4577. by default.
  4578. 2016-08-05 Pedro Alves <palves@redhat.com>
  4579. * build-with-cxx.m4: Change help string to be in terms of
  4580. --disable-build-with-cxx.
  4581. * configure: Regenerate.
  4582. 2016-08-04 Yao Qi <yao.qi@linaro.org>
  4583. * aarch64-linux-nat.c (tdesc_arm_with_vfpv3): Remove the
  4584. declaration.
  4585. (aarch64_linux_read_description): Remove code on getting
  4586. auxv and select target description on it. Select target
  4587. description by the result of NT_ARM_VFP ptrace request.
  4588. 2016-08-03 Tom Tromey <tom@tromey.com>
  4589. PR python/18565:
  4590. * python/py-frame.c (frapy_function): Use find_frame_funname.
  4591. 2016-08-03 Tom Tromey <tom@tromey.com>
  4592. * stack.c (find_frame_funname): Avoid any possible leak in case
  4593. cp_remove_params can throw.
  4594. 2016-08-03 Tom Tromey <tom@tromey.com>
  4595. * NEWS: Mention new Python breakpoint events.
  4596. 2016-08-02 Tom Tromey <tom@tromey.com>
  4597. * MAINTAINERS (Core): Add self as Rust maintainer.
  4598. 2016-08-01 Joel Brobecker <brobecker@adacore.com>
  4599. * NEWS: Create a new section for the next release branch.
  4600. Rename the section of the current branch, now that it has
  4601. been cut.
  4602. 2016-08-01 Joel Brobecker <brobecker@adacore.com>
  4603. GDB 7.12 branch created (41bfcd638a4e0e48b96ce4de2845372dea481322):
  4604. * version.in: Bump version to 7.12.50.DATE-git.
  4605. 2016-07-27 Alan Modra <amodra@gmail.com>
  4606. * amd64-darwin-tdep.c: Don't include libbfd.h.
  4607. * i386-darwin-tdep.c: Likewise.
  4608. * rs6000-nat.c: Likewise.
  4609. * rs6000-tdep.c: Likewise.
  4610. 2016-07-26 Tom Tromey <tom@tromey.com>
  4611. * symtab.c (register_symbol_computed_impl): Update.
  4612. PR python/20190:
  4613. * value.h (symbol_read_needs): Declare.
  4614. (symbol_read_needs_frame): Add comment.
  4615. * symtab.h (struct symbol_computed_ops) <read_variable>: Update
  4616. comment.
  4617. <get_symbol_read_needs>: Rename. Change return type.
  4618. * findvar.c (symbol_read_needs): New function.
  4619. (symbol_read_needs_frame): Rewrite.
  4620. (default_read_var_value): Use symbol_read_needs.
  4621. * dwarf2loc.c (struct symbol_needs_baton): Rename.
  4622. <needs>: Renamed from needs_frame. Changed type.
  4623. (needs_frame_read_addr_from_reg, symbol_needs_get_reg_value)
  4624. (symbol_needs_read_mem, symbol_needs_frame_base)
  4625. (symbol_needs_frame_cfa, symbol_needs_tls_address)
  4626. (symbol_needs_dwarf_call): Rename.
  4627. (needs_dwarf_reg_entry_value): Update.
  4628. (symbol_needs_ctx_funcs, dwarf2_loc_desc_get_symbol_read_needs):
  4629. Rename and update.
  4630. (locexpr_get_symbol_read_needs, loclist_symbol_needs): Likewise.
  4631. (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Update.
  4632. * defs.h (enum symbol_needs_kind): New.
  4633. 2016-07-26 Pedro Alves <palves@redhat.com>
  4634. * nat/linux-ptrace.c: Include "gregset.h".
  4635. (linux_ptrace_test_ret_to_nx): Use PTRACE_GETREGS instead of
  4636. PTRACE_PEEKUSER.
  4637. 2016-07-26 Pedro Alves <palves@redhat.com>
  4638. * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Rename 'native'
  4639. parameter to 'ptrace'.
  4640. * nat/amd64-linux-siginfo.c (GDB_SI_SIZE): New define.
  4641. (nat_uptr_t): New an unsigned long.
  4642. (nat_clock_t): Remove attribute __aligned__.
  4643. (struct nat_timeval): Delete.
  4644. (nat_siginfo_t): Remove attribute __aligned__.
  4645. (ptrace_siginfo_t): Define.
  4646. (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
  4647. (compat_x32_siginfo_from_siginfo)
  4648. (siginfo_from_compat_x32_siginfo): Make 'from' parameter const.
  4649. Convert through a ptrace_siginfo_t instead of a nat_siginfo_t.
  4650. Remove casts.
  4651. (amd64_linux_siginfo_fixup_common): Rename 'native' parameter to
  4652. 'ptrace'. Remove static assertions.
  4653. (top level): New static assertions.
  4654. 2016-07-25 Simon Marchi <simon.marchi@ericsson.com>
  4655. * top.h (make_delete_ui_cleanup): New declaration.
  4656. * top.c (delete_ui_cleanup): New function.
  4657. (make_delete_ui_cleanup): New function.
  4658. (new_ui_command): Create restore_ui cleanup earlier, create a
  4659. delete_ui cleanup and discard it on success.
  4660. 2016-07-25 Pedro Alves <palves@redhat.com>
  4661. Jan Kratochvil <jan.kratochvil@redhat.com>
  4662. * nat/linux-procfs.c (parse_proc_status_state): Handle lowercase
  4663. 't'.
  4664. 2016-07-25 Pedro Alves <palves@redhat.com>
  4665. * nat/linux-procfs.c (enum proc_state): New enum.
  4666. (parse_proc_status_state): New function.
  4667. (linux_proc_pid_get_state): Replace output string buffer parameter
  4668. with an output proc_state parameter. Use parse_proc_status_state.
  4669. (linux_proc_pid_is_gone): Adjust to use proc_state values.
  4670. (linux_proc_pid_has_state): Change type of 'state' parameter; now
  4671. an enum proc_state. Adjust to linux_proc_pid_get_state interface
  4672. change.
  4673. (linux_proc_pid_is_stopped)
  4674. (linux_proc_pid_is_trace_stopped_nowarn)
  4675. (linux_proc_pid_is_zombie_maybe_warn): Adjust to
  4676. linux_proc_pid_get_state interface change.
  4677. 2016-07-25 Tim Wiederhake <tim.wiederhake@intel.com>
  4678. * MAINTAINERS (Write After Approval): Add Tim Wiederhake
  4679. 2016-07-25 Tim Wiederhake <tim.wiederhake@intel.com>
  4680. * NEWS: Resume btrace on reconnect.
  4681. * record-btrace.c: Added record-btrace.h include.
  4682. (record_btrace_open): Split into this and ...
  4683. (record_btrace_push_target): ... this.
  4684. (record_btrace_disconnect): New function.
  4685. (init_record_btrace_ops): Use record_btrace_disconnect.
  4686. * record-btrace.h: New file.
  4687. * remote.c: Added record-btrace.h include.
  4688. (remote_start_remote): Check recording status.
  4689. (remote_btrace_maybe_reopen): New function.
  4690. 2016-07-23 Gabriel Krisman Bertazi <gabriel@krisman.be>
  4691. * xml-syscall.c (get_syscalls_by_group): New.
  4692. (get_syscall_group_names): New.
  4693. (struct syscall_group_desc): New structure to store group data.
  4694. (struct syscalls_info): Include field to store the group list.
  4695. (sysinfo_free_syscall_group_desc): New.
  4696. (free_syscalls_info): Free group list.
  4697. (syscall_group_create_syscall_group_desc): New.
  4698. (syscall_group_add_syscall): New.
  4699. (syscall_create_syscall_desc): Add syscall to its groups.
  4700. (syscall_start_syscall): Load group attribute.
  4701. (syscall_group_get_group_by_name): New.
  4702. (xml_list_syscalls_by_group): New.
  4703. (xml_list_of_groups): New.
  4704. * xml-syscall.h (get_syscalls_by_group): Export function
  4705. to retrieve a list of syscalls filtered by the group name.
  4706. (get_syscall_group_names): Export function to retrieve the list
  4707. of syscall groups.
  4708. * break-catch-syscall.c (catch_syscall_split_args): Verify if
  4709. argument is a syscall group and expand it to a list of syscalls
  4710. when creating catchpoints.
  4711. (catch_syscall_completer): Add word completion for system call
  4712. groups.
  4713. * configure.ac: Include dependency for xsltproc when building
  4714. in maintainer-mode.
  4715. * break-catch-syscall.c (_initialize_breakpoint): Update catch
  4716. syscall command documentation.
  4717. * NEWS: Include section about catching groups of syscalls.
  4718. * configure: Regenerate.
  4719. * data-directory/Makefile.in: Generate syscall xml when building
  4720. in maintainer mode.
  4721. * syscalls/gdb-syscalls.dtd: Include group attribute to the
  4722. syscall element.
  4723. * syscalls/apply-defaults.xsl: New.
  4724. * syscalls/linux-defaults.xml.in: New.
  4725. * syscalls/aarch64-linux.xml: Rename to aarch64-linux.xml.in.
  4726. * syscalls/amd64-linux.xml: Rename to amd64-linux.xml.in.
  4727. * syscalls/arm-linux.xml: Rename to arm-linux.xml.in.
  4728. * syscalls/bfin-linux.xml: Rename to bfin-linux.xml.in.
  4729. * syscalls/i386-linux.xml: Rename to i386-linux.xml.in.
  4730. * syscalls/mips-n32-linux.xml: Rename to mips-n32-linux.xml.in.
  4731. * syscalls/mips-n64-linux.xml: Rename to mips-n64-linux.xml.in.
  4732. * syscalls/mips-o32-linux.xml: Rename to mips-o32-linux.xml.in.
  4733. * syscalls/ppc-linux.xml: Rename to ppc-linux.xml.in.
  4734. * syscalls/ppc64-linux.xml: Rename to ppc64-linux.xml.in.
  4735. * syscalls/s390-linux.xml: Rename to s390-linux.xml.in.
  4736. * syscalls/s390x-linux.xml: Rename to s390x-linux.xml.in.
  4737. * syscalls/sparc-linux.xml: Rename to sparc-linux.xml.in.
  4738. * syscalls/sparc64-linux.xml: Rename to sparc64-linux.xml.in.
  4739. * syscalls/aarch64-linux.xml: Regenerate.
  4740. * syscalls/amd64-linux.xml: Regenerate.
  4741. * syscalls/arm-linux.xml: Regenerate.
  4742. * syscalls/i386-linux.xml: Regenerate.
  4743. * syscalls/mips-n32-linux.xml: Regenerate.
  4744. * syscalls/mips-n64-linux.xml: Regenerate.
  4745. * syscalls/mips-o32-linux.xml: Regenerate.
  4746. * syscalls/ppc-linux.xml: Regenerate.
  4747. * syscalls/ppc64-linux.xml: Regenerate.
  4748. * syscalls/s390-linux.xml: Regenerate.
  4749. * syscalls/s390x-linux.xml: Regenerate.
  4750. * syscalls/sparc-linux.xml: Regenerate.
  4751. * syscalls/sparc64-linux.xml: Regenerate.
  4752. 2016-07-23 Andrew Pinski <apinski@cavium.com>
  4753. * nat/aarch64-linux-hw-point.c
  4754. (aarch64_linux_get_debug_reg_capacity): Handle
  4755. ARMv8.1 and ARMv8.2 debug versions.
  4756. * nat/aarch64-linux-hw-point.h
  4757. (AARCH64_DEBUG_ARCH_V8_1): New define.
  4758. (AARCH64_DEBUG_ARCH_V8_2): New define.
  4759. 2016-06-30 Руслан Ижбулатов <lrn1986@gmail.com>
  4760. PR gdb/14529
  4761. * windows-nat.c (signal_event_command): New command 'signal-event'
  4762. for W32 JIT debug support.
  4763. * NEWS: Add an entry about the new 'signal-event' command.
  4764. 2016-07-22 Tom Tromey <tom@tromey.com>
  4765. PR rust/20162:
  4766. * dwarf2read.c (scan_partial_symbols) <DW_TAG_structure_type>:
  4767. Call scan_partial_symbols for children when reading a Rust CU.
  4768. (dwarf2_physname): Ignore invalid DW_AT_linkage_name generated by
  4769. rustc.
  4770. (process_structure_scope) <DW_TAG_subprogram>: Call
  4771. read_func_scope for Rust.
  4772. 2016-07-22 Yao Qi <yao.qi@linaro.org>
  4773. * ctf.c (ctf_traceframe_info): Call bt_ctf_get_uint64 rather than
  4774. bt_ctf_get_int64.
  4775. 2016-07-21 Tom Tromey <tom@tromey.com>
  4776. * rust-lang.c (rust_tuple_struct_type_p): Return false for empty
  4777. structs.
  4778. * rust-exp.y (struct_expr_list): Allow empty elements.
  4779. 2016-07-21 Tom Tromey <tom@tromey.com>
  4780. * configure: Rebuild.
  4781. * warning.m4 (AM_GDB_WARNINGS) <build_warnings>: Add
  4782. -Wunused-but-set-parameter, -Wunused-but-set-variable.
  4783. 2016-07-21 Pedro Alves <palves@redhat.com>
  4784. * go32-nat.c (go32_create_inferior): Add cast.
  4785. * ser-go32.c (dos_noop): Delete.
  4786. (dos_flush_output, dos_setparity, dos_drain_output): New
  4787. functions.
  4788. (dos_write): Add cast.
  4789. (dos_ops): Use dos_flush_output, dos_setparity and
  4790. dos_drain_output.
  4791. * top.c (do_chdir_cleanup): Add cast.
  4792. 2016-07-21 Pedro Alves <palves@redhat.com>
  4793. * windows-nat.c (handle_exception): Remove "th".
  4794. 2016-07-21 Pedro Alves <palves@redhat.com>
  4795. * varobj.c (varobj_value_get_print_value): Move "gdbarch" to block
  4796. scope that uses it.
  4797. 2016-07-20 John Baldwin <jhb@FreeBSD.org>
  4798. * fbsd-nat.c (fbsd_enable_proc_events): Enable "PTRACE_VFORK"
  4799. events.
  4800. (fbsd_pending_vfork_done): Only define if "PTRACE_VFORK" is not
  4801. defined.
  4802. (fbsd_add_vfork_done): Likewise.
  4803. (fbsd_is_vfork_done_pending): Likewise.
  4804. (fbsd_next_vfork_done): Likewise.
  4805. (fbsd_resume): Only ignore pending vfork done events if
  4806. "PTRACE_VFORK" is not defined.
  4807. (fbsd_wait): Only look for pending vfork done events if
  4808. "PTRACE_VFORK" is not defined.
  4809. [PTRACE_VFORK]: Handle "PL_FLAG_VFORKED" and "PL_FLAG_VFORK_DONE"
  4810. events.
  4811. (fbsd_follow_fork): Only fake a vfork done event if "PTRACE_VFORK"
  4812. is not defined.
  4813. 2016-07-20 John Baldwin <jhb@FreeBSD.org>
  4814. * fbsd-nat.c (fbsd_wait): Use "fbsd_enable_proc_events" on
  4815. new child processes.
  4816. 2016-07-20 John Baldwin <jhb@FreeBSD.org>
  4817. * fbsd-nat.c (fbsd_enable_lwp_events): Remove function.
  4818. (fbsd_enable_proc_events): New function.
  4819. (fbsd_enable_follow_fork): Remove function.
  4820. (fbsd_post_startup_inferior): Use "fbsd_enable_proc_events".
  4821. (fbsd_post_attach): Likewise.
  4822. 2016-07-15 John Baldwin <jhb@FreeBSD.org>
  4823. * common/signals.c (gdb_signal_from_host): Handle SIGLIBRT.
  4824. (do_gdb_signal_to_host): Likewise.
  4825. * infrun.c (_initialize_infrun): Pass GDB_SIGNAL_LIBRT through to
  4826. programs.
  4827. * proc-events.c (signal_table): Add entry for SIGLIBRT.
  4828. 2016-07-14 Tom Tromey <tom@tromey.com>
  4829. * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Add missing
  4830. newline.
  4831. 2016-07-14 Tom Tromey <tom@tromey.com>
  4832. * mips-tdep.c (micromips_scan_prologue): Remove "frame_addr".
  4833. (mips_o32_push_dummy_call): Remove "stack_used_p".
  4834. * aarch64-tdep.c (aarch64_record_data_proc_imm): Remove
  4835. "insn_bit28".
  4836. * rust-lang.c (rust_print_type): Remove "len".
  4837. * rust-exp.y (super_name): Remove "current_len".
  4838. * python/py-framefilter.c (py_print_type): Remove "type".
  4839. * mdebugread.c (parse_partial_symbols): Remove
  4840. "past_first_source_file".
  4841. <N_SO>: Remove "valu", "first_so_symnum", "prev_textlow_not_set".
  4842. * m2-valprint.c (m2_print_unbounded_array): Remove
  4843. "content_type".
  4844. (m2_val_print): Remove "i".
  4845. * linespec.c (unexpected_linespec_error): Remove "cleanup".
  4846. * f-valprint.c (f_val_print): Remove "i".
  4847. * elfread.c (elf_symtab_read): Remove "offset".
  4848. * dwarf2-frame.c (dwarf2_fetch_cfa_info): Remove "addr_size".
  4849. * jit.c (jit_dealloc_cache): Remove "i" and "frame_arch".
  4850. 2016-07-14 Tom Tromey <tom@tromey.com>
  4851. * arch-utils.c (default_skip_permanent_breakpoint): Remove
  4852. "bp_insn".
  4853. * disasm.c (do_assembly_only): Remove "num_displayed".
  4854. * dwarf2read.c (read_abbrev_offset): Remove "length".
  4855. (dwarf_decode_macro_bytes) <DW_MACINFO_vendor_ext>: Remove
  4856. "constant".
  4857. * m32c-tdep.c (make_regs): Remove "r2hl", "r3hl", and "intbhl".
  4858. * microblaze-tdep.c (microblaze_frame_cache): Remove "func".
  4859. * tracefile.c (trace_save): Remove "status".
  4860. 2016-07-14 Tom Tromey <tom@tromey.com>
  4861. * symfile.c (simple_overlay_update_1): Remove initialization
  4862. of "size", and commented-out code.
  4863. (simple_overlay_update): Likewise.
  4864. 2016-07-14 Tom Tromey <tom@tromey.com>
  4865. * tui/tui-winsource.c (tui_show_source_line): Use getcurx.
  4866. * tui/tui-io.c (tui_puts): Use getcurx.
  4867. (tui_redisplay_readline): Likewise.
  4868. 2016-07-14 Tom Tromey <tom@tromey.com>
  4869. * inflow.c (child_terminal_ours_1): Use ATTRIBUTE_UNUSED.
  4870. 2016-07-14 Tom Tromey <tom@tromey.com>
  4871. * corefile.c (reopen_exec_file): Only examine st.st_mtime if stat
  4872. succeeded.
  4873. 2016-07-13 Tom Tromey <tom@tromey.com>
  4874. PR python/15620, PR python/18620:
  4875. * python/py-evts.c (gdbpy_initialize_py_events): Call
  4876. add_new_registry for new events.
  4877. * python/py-events.h (events_object) <breakpoint_created,
  4878. breakpoint_deleted, breakpoint_modified>: New fields.
  4879. * python/py-breakpoint.c (gdbpy_breakpoint_created): Emit the
  4880. breakpoint changed event.
  4881. (gdbpy_breakpoint_deleted): Emit the breakpoint deleted event.
  4882. (gdbpy_breakpoint_modified): New function.
  4883. (gdbpy_initialize_breakpoints): Attach to the breakpoint modified
  4884. observer.
  4885. 2016-07-13 Tom Tromey <tom@tromey.com>
  4886. PR python/17698:
  4887. * NEWS: Update.
  4888. * python/py-breakpoint.c (bppy_get_pending): New function.
  4889. (breakpoint_object_getset): Add entry for "pending".
  4890. * breakpoint.h (pending_breakpoint_p): Declare.
  4891. * breakpoint.c (pending_breakpoint_p): New function.
  4892. 2016-07-13 Tom Tromey <tom@tromey.com>
  4893. * python/py-breakpoint.c (bppy_get_visibility)
  4894. (gdbpy_breakpoint_created): Use user_breakpoint_p.
  4895. 2016-07-13 Tom Tromey <tom@tromey.com>
  4896. PR cli/18053:
  4897. * jit.c (jit_reader_load_command): Use tilde_expand.
  4898. (_initialize_jit): Fix help for jit-reader-unload. Set completer
  4899. for new commands.
  4900. 2016-07-12 Tom Tromey <tom@tromey.com>
  4901. PR python/19293:
  4902. * python/lib/gdb/command/unwinders.py (do_enable_unwinder): Call
  4903. gdb.invalidate_cached_frames.
  4904. * python/lib/gdb/unwinder.py (register_unwinder): Call
  4905. gdb.invalidate_cached_frames.
  4906. * python/python.c (gdbpy_invalidate_cached_frames): New function.
  4907. (python_GdbMethods): Add entry for invalidate_cached_frames.
  4908. 2016-07-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
  4909. * cp-namespace.c (cp_lookup_bare_symbol): Initialize
  4910. lang_this.symbol.
  4911. 2016-07-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
  4912. * cp-namespace.c (cp_lookup_bare_symbol): Use language passed as
  4913. parameter to look for the symbol "this".
  4914. 2016-07-06 John Baldwin <jhb@FreeBSD.org>
  4915. * h8300-tdep.c (h8300_print_register): Remove extraneous parentheses.
  4916. 2016-07-06 John Baldwin <jhb@FreeBSD.org>
  4917. * ada-lang.c (ada_unpack_from_contents): Use unsigned constants with
  4918. left shifts.
  4919. 2016-07-06 John Baldwin <jhb@FreeBSD.org>
  4920. * sh64-tdep.c (sh64_analyze_prologue): Set "uses_fp" when setting
  4921. the MEDIA_FP_REGNUM register.
  4922. 2016-07-06 John Baldwin <jhb@FreeBSD.org>
  4923. * score-tdep.c (score7_malloc_and_get_memblock): Remove check for
  4924. negative size.
  4925. 2016-07-06 John Baldwin <jhb@FreeBSD.org>
  4926. * fbsd-nat.c (fbsd_is_vfork_done_pending): Fix return type.
  4927. 2016-07-06 Yao Qi <yao.qi@linaro.org>
  4928. * arm-tdep.c (arm_vfp_cprc_sub_candidate): Don't call
  4929. arm_vfp_cprc_sub_candidate for static field.
  4930. 2016-07-06 Manish Goregaokar <manish@mozilla.com>
  4931. * rust-lang.c (rust_subscript): Allow subscripting pointers.
  4932. 2016-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
  4933. * configure: Regenerate.
  4934. * configure.ac (HAVE_LIBBABELTRACE): Fix pos variable dereference.
  4935. 2016-07-01 Don Breazeal <donb@codesourcery.com>
  4936. * remote.c (remote_get_memory_xfer_limit): New function.
  4937. * target-delegates.c: Regenerate.
  4938. * target.c (memory_xfer_partial): Call
  4939. target_ops.to_get_memory_xfer_limit.
  4940. * target.h (struct target_ops) <to_get_memory_xfer_limit>: New
  4941. member.
  4942. 2016-07-01 John Baldwin <jhb@FreeBSD.org>
  4943. * fbsd-nat.c (struct fbsd_fork_child_info): Rename to ...
  4944. (struct fbsd_fork_info): ... this.
  4945. (struct fbsd_fork_info) <child>: Rename to ...
  4946. (struct fbsd_fork_info) <ptid>: ... this.
  4947. (fbsd_pending_children): Update type.
  4948. (fbsd_remember_child): Update type and field name.
  4949. (fbsd_is_child_pending): Likewise.
  4950. (fbsd_pending_vfork_done): New variable.
  4951. (fbsd_is_vfork_done_pending): New function.
  4952. (fbsd_next_vfork_done): New function.
  4953. (fbsd_resume): Don't resume processes with a pending vfork done
  4954. event.
  4955. (fbsd_wait): Report pending vfork done events.
  4956. (fbsd_follow_fork): Delay and record a pending vfork done event
  4957. for a vfork parent when detaching the child.
  4958. 2016-07-01 John Baldwin <jhb@FreeBSD.org>
  4959. * fbsd-nat.c (super_resume): Move earlier next to "super_wait".
  4960. (resume_one_thread_cb): Move below fork following helper code.
  4961. (resume_all_threads_cb): Likewise.
  4962. (fbsd_resume): Likewise.
  4963. 2016-07-01 John Baldwin <jhb@FreeBSD.org>
  4964. * fbsd-nat.c (fbsd_follow_fork): Only detach child if
  4965. "detach_fork" is true.
  4966. 2016-07-01 John Baldwin <jhb@FreeBSD.org>
  4967. * x86bsd-nat.c: Include 'gdbthread.h'.
  4968. (x86bsd_dr_set): Set debug registers on all threads belonging to
  4969. the current inferior.
  4970. 2016-07-01 John Baldwin <jhb@FreeBSD.org>
  4971. * Makefile.in [HFILES_NO_SRCDIR]: Replace 'amd64bsd-nat.h' with
  4972. 'x86bsd-nat.h'.
  4973. * amd64bsd-nat.c: Include 'x86bsd-nat.h' instead of
  4974. 'amd64bsd-nat.h'.
  4975. (amd64bsd_xsave_len): Rename and move to x86bsd-nat.c.
  4976. (amd64bsd_fetch_inferior_registers): Replace 'amd64bsd_xsave_len'
  4977. with 'x86bsd_xsave_len'.
  4978. (amd64bsd_store_inferior_registers): Likewise.
  4979. (amd64bsd_target): Inherit from x86bsd_target.
  4980. (amd64bsd_dr_get): Rename and move to x86bsd-nat.c.
  4981. (amd64bsd_dr_set): Likewise.
  4982. (amd64bsd_dr_set_control): Likewise.
  4983. (amd64bsd_dr_set_addr): Likewise.
  4984. (amd64bsd_dr_get_addr): Likewise.
  4985. (amd64bsd_dr_get_status): Likewise.
  4986. (amd64bsd_dr_get_control): Likewise.
  4987. * amd64fbsd-nat.c: Include 'x86bsd-nat.h' instead of
  4988. 'amd64bsd-nat.h'.
  4989. (super_mourn_inferior): Move to x86bsd-nat.c.
  4990. (amd64fbsd_mourn_inferior): Rename and move to x86bsd-nat.c.
  4991. (amd64fbsd_read_description): Replace 'amd64bsd_xsave_len' with
  4992. 'x86bsd_xsave_len'.
  4993. (_initialize_amd64fbsd_nat): Remove x86 watchpoint setup and
  4994. mourn_inferior' target op.
  4995. * config/i386/fbsd.mh (NATDEPFILES): Add x86bsd-nat.o.
  4996. * config/i386/fbsd64.mh: Likewise.
  4997. * config/i386/nbsd64.mh: Likewise.
  4998. * config/i386/nbsdelf.mh: Likewise.
  4999. * config/i386/obsd.mh: Likewise.
  5000. * config/i386/obsd64.mh: Likewise.
  5001. * i386bsd-nat.c: Include 'x86bsd-nat.h'.
  5002. (i386bsd_xsave_len): Rename and move to x86bsd-nat.c.
  5003. (i386bsd_fetch_inferior_registers): Replace 'i386bsd_xsave_len'
  5004. with 'x86bsd_xsave_len'.
  5005. (i386bsd_store_inferior_registers): Likewise.
  5006. (i386bsd_target): Inherit from x86bsd_target.
  5007. (i386bsd_dr_get): Rename and move to x86bsd-nat.c.
  5008. (i386bsd_dr_set): Likewise.
  5009. (i386bsd_dr_set_control): Likewise.
  5010. (i386bsd_dr_set_addr): Likewise.
  5011. (i386bsd_dr_get_addr): Likewise.
  5012. (i386bsd_dr_get_status): Likewise.
  5013. (i386bsd_dr_get_control): Likewise.
  5014. * i386bsd-nat.h (i386bsd_xsave_len): Remove.
  5015. (i386bsd_dr_set_control): Remove.
  5016. (i386bsd_dr_set_addr): Remove.
  5017. (i386bsd_dr_get_addr): Remove.
  5018. (i386bsd_dr_get_status): Remove.
  5019. (i386bsd_dr_get_control): Remove.
  5020. * i386fbsd-nat.c: Include 'x86bsd-nat.h'.
  5021. (i386fbsd_read_description): Replace 'i386bsd_xsave_len' with
  5022. 'x86bsd_xsave_len'.
  5023. (_initialize_i386fbsd_nat): Remove x86 watchpoint setup and
  5024. mourn_inferior' target op.
  5025. * x86bsd-nat.c: New file.
  5026. * x86bsd-nat.h: New file.
  5027. 2016-07-01 Pedro Alves <palves@redhat.com>
  5028. Tom Tromey <tom@tromey.com>
  5029. * jit.c (jit_reader_load_command): Call reinit_frame_cache and
  5030. jit_inferior_created_hook.
  5031. (jit_reader_unload_command): Call reinit_frame_cache and
  5032. jit_inferior_exit_hook.
  5033. * jit.c (struct jit_unwind_private) <registers>: Delete field.
  5034. <regcache>: New field.
  5035. (jit_unwind_reg_set_impl): Set the register's value in the
  5036. regcache. Free the passed-in gdb_reg_value.
  5037. (jit_dealloc_cache): Adjust to free the regcache.
  5038. (jit_frame_sniffer): Allocate a regcache instead of an array of
  5039. gdb_reg_value pointers.
  5040. (jit_frame_this_id): Adjust.
  5041. (jit_frame_prev_register): Read raw registers off of the regcache
  5042. instead of from the gdb_reg_value pointer array. Use
  5043. gdbarch_pseudo_register_read_value to read pseudo registers.
  5044. * regcache.c (regcache_raw_set_cached_value): New function,
  5045. factored out from ...
  5046. (regcache_raw_write): ... here.
  5047. * regcache.h (regcache_raw_set_cached_value): Declare.
  5048. 2016-07-01 Pedro Alves <palves@redhat.com>
  5049. Antoine Tremblay <antoine.tremblay@ericsson.com>
  5050. * inf-ptrace.c (inf_ptrace_detach_success): New function, factored
  5051. out from ...
  5052. (inf_ptrace_detach): ... here.
  5053. * inf-ptrace.h (inf_ptrace_detach_success): New declaration.
  5054. * linux-nat.c (get_pending_status): Rename to ...
  5055. (get_detach_signal): ... this, and return a host signal instead of
  5056. filling in a wait status.
  5057. (detach_one_lwp): New function, factored out from detach_callback
  5058. and adjusted to handle detaching from a zombie thread.
  5059. (detach_callback): Skip the leader thread.
  5060. (linux_nat_detach): No longer defer to inf_ptrace_detach to detach
  5061. the leader thread, nor build a signal string to pass down.
  5062. Instead, use target_announce_detach, detach_one_lwp and
  5063. inf_ptrace_detach_success.
  5064. 2016-07-01 Pedro Alves <palves@redhat.com>
  5065. * breakpoint.c (breakpoint_init_inferior): Discard watchpoint
  5066. locations.
  5067. * infcmd.c (detach_command): Call breakpoint_init_inferior.
  5068. 2016-07-01 Pedro Alves <palves@redhat.com>
  5069. * darwin-nat.c (darwin_detach): Use target_announce_detach.
  5070. * inf-ptrace.c (inf_ptrace_detach): Likewise.
  5071. * nto-procfs.c (procfs_detach): Likewise.
  5072. * remote.c (remote_detach_1): Likewise.
  5073. * target.c (target_announce_detach): New function.
  5074. * target.h (target_announce_detach): New declaration.
  5075. 2016-06-29 Tom Tromey <tom@tromey.com>
  5076. PR python/20129:
  5077. * python/lib/gdb/command/frame_filters.py (_do_enable_frame_filter)
  5078. (SetFrameFilterPriority._set_filter_priority): Use "frame_filter",
  5079. not "name".
  5080. 2016-06-29 Tom Tromey <tom@tromey.com>
  5081. PR gdb/17210:
  5082. * target.c (free_memory_read_result_vector): Take a pointer to the
  5083. VEC as an argument.
  5084. (read_memory_robust): Install a cleanup for "result".
  5085. * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Update.
  5086. 2016-06-29 Manish Goregaokar <manish@mozilla.com>
  5087. * rust-lang.c (rust_get_disr_info): Initialize saveptr to NULL.
  5088. 2016-06-29 Manish Goregaokar <manish@mozilla.com>
  5089. * rust-lang.c (rust_get_disr_info): Use strtok_r instead of strsep.
  5090. 2016-06-28 Yao Qi <yao.qi@linaro.org>
  5091. * aarch64-tdep.c (aarch64_displaced_step_b): Use int64_t for
  5092. variable new_offset.
  5093. 2016-06-27 Manish Goregaokar <manish@mozilla.com>
  5094. * rust-lang.c (rust_print_type, rust_decorations): Print unit
  5095. types as "()".
  5096. (rust_print_type): Omit return type for functions returning unit.
  5097. 2016-06-25 Pierre-Marie de Rodat <derodat@adacore.com>
  5098. * python/py-breakpoint.c (bppy_init): Clear bppy_pending_object
  5099. when there is an error during the breakpoint creation.
  5100. 2016-06-25 Tom Tromey <tom@tromey.com>
  5101. * rust-lang.c (rust_get_disr_info, rust_print_type): Fix
  5102. formatting.
  5103. 2016-06-25 Manish Goregaokar <manish@mozilla.com>
  5104. PR gdb/20239
  5105. * rust-lang.c (rust_get_disr_info): Correctly interpret
  5106. NonZero-optimized enums of arbitrary depth.
  5107. (rust_print_type): Correctly print NonZero-optimized
  5108. enums.
  5109. 2016-06-24 David Taylor <dtaylor@emc.com>
  5110. PR gdb/17520 Structure offset wrong when 1/4 GB or greater.
  5111. * c-lang.h: Change all parameters, variables, and struct or union
  5112. members used as struct or union fie3ld offsets from int to
  5113. LONGEST.
  5114. * c-valprint.c: Likewise.
  5115. * cp-abi.c: Likewise.
  5116. * cp-abi.h: Likewise.
  5117. * cp-valprint.c: Likewise.
  5118. * d-valprint.c: Likewise.
  5119. * dwarf2loc.c: Likewise.
  5120. * eval.c: Likewise.
  5121. * extension-priv.h: Likewise.
  5122. * extension.c: Likewise.
  5123. * extension.h: Likewise.
  5124. * findvar.c: Likewise.
  5125. * gdbtypes.h: Likewise.
  5126. * gnu-v2-abi.c: Likewise.
  5127. * gnu-v3-abi.c: Likewise.
  5128. * go-valprint.c: Likewise.
  5129. * guile/guile-internal.h: Likewise.
  5130. * guile/scm-pretty-print.c: Likewise.
  5131. * jv-valprint.c Likewise.
  5132. * opencl-lang.c: Likewise.
  5133. * p-lang.h: Likewise.
  5134. * python/py-prettyprint.c: Likewise.
  5135. * python/python-internal.h: Likewise.
  5136. * spu-tdep.c: Likewise.
  5137. * typeprint.c: Likewise.
  5138. * valarith.c: Likewise.
  5139. * valops.c: Likewise.
  5140. * valprint.c: Likewise.
  5141. * valprint.h: Likewise.
  5142. * value.c: Likewise.
  5143. * value.h: Likewise.
  5144. * p-valprint.c: Likewise.
  5145. * c-typeprint.c (c_type_print_base): When printing offset, use
  5146. plongest, not %d.
  5147. * gdbtypes.c (recursive_dump_type): Ditto.
  5148. 2016-06-24 David Taylor <david.taylor@emc.com>
  5149. * MAINTAINERS (Write After Approval): Add David Taylor.
  5150. 2016-06-24 John Baldwin <jhb@FreeBSD.org>
  5151. * configure.ac: Check for support for system call LWP fields on
  5152. FreeBSD.
  5153. * config.in, configure: Rebuild.
  5154. * data-directory/Makefile.in (SYSCALLS_FILES): Add freebsd.xml.
  5155. * fbsd-nat.c (fbsd_wait) [HAVE_STRUCT_PTRACE_LWPINFO_PL_SYSCALL_CODE]:
  5156. Report system call events.
  5157. [HAVE_STRUCT_PTRACE_LWPINFO_PL_SYSCALL_CODE]
  5158. (fbsd_set_syscall_catchpoint): New function.
  5159. (fbsd_nat_add_target) [HAVE_STRUCT_PTRACE_LWPINFO_PL_SYSCALL_CODE]:
  5160. Set "to_set_syscall_catchpoint" to "fbsd_set_syscall_catchpoint".
  5161. * fbsd-tdep.c: Include xml-syscall.h
  5162. (fbsd_get_syscall_number): New function.
  5163. (fbsd_init_abi): Set XML system call file name.
  5164. Add "get_syscall_number" gdbarch method.
  5165. * syscalls/freebsd.xml: New file.
  5166. 2016-06-24 John Baldwin <jhb@FreeBSD.org>
  5167. * fbsd-tdep.c: Include "auxv.h".
  5168. (fbsd_print_auxv_entry): New function.
  5169. (fbsd_init_abi): Install gdbarch "print_auxv_entry" method.
  5170. 2016-06-24 John Baldwin <jhb@FreeBSD.org>
  5171. * auxv.c (fprint_auxv_entry): New function.
  5172. (default_print_auxv_entry): New function.
  5173. (fprint_target_auxv): Use gdbarch_print_auxv_entry.
  5174. * auxv.h (enum auxv_format): New enum.
  5175. (fprint_auxv_entry): Declare.
  5176. (default_print_auxv_entry): Declare.
  5177. * gdbarch.sh (print_auxv_entry): New.
  5178. * gdbarch.c, gdbarch.h: Re-generated.
  5179. 2016-06-24 John Baldwin <jhb@FreeBSD.org>
  5180. * fbsd-nat.c [KERN_PROC_AUXV] New variable super_xfer_partial.
  5181. (fbsd_xfer_partial): New function.
  5182. (fbsd_nat_add_target) [KERN_PROC_AUXV] Set "to_xfer_partial" to
  5183. "fbsd_xfer_partial".
  5184. 2016-06-23 Tom Tromey <tom@tromey.com>
  5185. * symtab.c (symbol_find_demangled_name): Loop over languages and
  5186. use language_sniff_from_mangled_name.
  5187. * rust-lang.c (rust_sniff_from_mangled_name): New function.
  5188. (rust_language_defn): Update.
  5189. * p-lang.c (pascal_language_defn): Update.
  5190. * opencl-lang.c (opencl_language_defn): Update.
  5191. * objc-lang.c (objc_sniff_from_mangled_name): New function.
  5192. (objc_language_defn): Update.
  5193. * m2-lang.c (m2_language_defn): Update.
  5194. * language.h (struct language_defn) <la_sniff_from_mangled_name>: New
  5195. field.
  5196. (language_sniff_from_mangled_name): Declare.
  5197. * language.c (language_sniff_from_mangled_name): New function.
  5198. (unknown_language_defn, auto_language_defn, local_language_defn):
  5199. Update.
  5200. * jv-lang.c (java_sniff_from_mangled_name): New function.
  5201. (java_language_defn): Use it.
  5202. * go-lang.c (go_sniff_from_mangled_name): New function.
  5203. (go_language_defn): Use it.
  5204. * f-lang.c (f_language_defn): Update.
  5205. * defs.h (enum language): Reorder.
  5206. * d-lang.c (d_sniff_from_mangled_name): New function.
  5207. (d_language_defn): Use it.
  5208. * cp-support.h (gdb_sniff_from_mangled_name): Declare.
  5209. * cp-support.c (gdb_sniff_from_mangled_name): New function.
  5210. * c-lang.c (c_language_defn, cplus_language_defn)
  5211. (asm_language_defn, minimal_language_defn): Update.
  5212. * ada-lang.c (ada_sniff_from_mangled_name): New function.
  5213. (ada_language_defn): Use it.
  5214. 2016-06-23 Tom Tromey <tom@tromey.com>
  5215. * ada-lang.c (ada_extensions): New array.
  5216. (ada_language_defn): Use it.
  5217. * c-lang.c (c_extensions): New array.
  5218. (c_language_defn): Use it.
  5219. (cplus_extensions): New array.
  5220. (cplus_language_defn): Use it.
  5221. (asm_extensions): New array.
  5222. (asm_language_defn): Use it.
  5223. (minimal_language_defn): Update.
  5224. * d-lang.c (d_extensions): New array.
  5225. (d_language_defn): Use it.
  5226. * f-lang.c (f_extensions): New array.
  5227. (f_language_defn): Use it.
  5228. * go-lang.c (go_language_defn): Update.
  5229. * jv-lang.c (java_extensions): New array.
  5230. (java_language_defn): Use it.
  5231. * language.c (add_language): Call add_filename_language.
  5232. (unknown_language_defn, auto_language_defn, local_language_defn):
  5233. Update.
  5234. * language.h (struct language_defn) <la_filename_extensions>: New
  5235. field.
  5236. * m2-lang.c (m2_language_defn): Update.
  5237. * objc-lang.c (objc_extensions): New array.
  5238. (objc_language_defn): Use it.
  5239. * opencl-lang.c (opencl_language_defn): Update.
  5240. * p-lang.c (p_extensions): New array.
  5241. (pascal_language_defn): Use it.
  5242. * rust-lang.c (rust_extensions): New array.
  5243. (rust_language_defn): Use it.
  5244. * symfile.c (add_filename_language): No longer static. Make "ext"
  5245. const.
  5246. (init_filename_language_table): Remove.
  5247. (_initialize_symfile): Update.
  5248. * symfile.h (add_filename_language): Declare.
  5249. 2016-06-23 Tom Tromey <tom@tromey.com>
  5250. * symfile.c (filename_language_table): Now a VEC.
  5251. (fl_table_size, fl_table_next): Remove.
  5252. (add_filename_language): Use VEC_safe_push.
  5253. (set_ext_lang_command, info_ext_lang_command)
  5254. (deduce_language_from_filename): Use VEC_iterate.
  5255. (init_filename_language_table): Use VEC_empty.
  5256. 2016-06-23 Tom Tromey <tom@tromey.com>
  5257. * python/python.c (gdbpy_parameter): Now static.
  5258. * python/python-internal.h (gdbpy_parameter): Don't declare.
  5259. 2016-06-23 Tom Tromey <tom@tromey.com>
  5260. PR gdb/16483:
  5261. * python/lib/gdb/command/frame_filters.py
  5262. (InfoFrameFilter.list_frame_filters): Rename to print_list. Print
  5263. nothing if no filters found. Return value indicating whether
  5264. filters were printed.
  5265. (InfoFrameFilter.print_list): Remove.
  5266. (InfoFrameFilter.invoke): Print message if no frame filters
  5267. found.
  5268. 2016-06-21 Walfred Tedeschi <walfred.tedeschi@intel.com>
  5269. * f-valprint.c (f_val_print): Add field names for printing
  5270. derived types fields.
  5271. 2016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
  5272. * s390-linux-tdep.c (s390_iterate_over_regset_sections): Fix typo
  5273. in name of last-break regset.
  5274. 2016-06-21 Pedro Alves <palves@redhat.com>
  5275. * fork-child.c (fork_inferior): Switch the child to the main UI
  5276. right after vfork. Save/restore the current UI in the parent.
  5277. Flush outputs of the main UI instead of the current UI.
  5278. 2016-06-21 Pedro Alves <palves@redhat.com>
  5279. * breakpoint.c (watchpoint_check): Send watchpoint-deleted output
  5280. to all UIs.
  5281. 2016-06-21 Pedro Alves <palves@redhat.com>
  5282. * NEWS: Mention support for running interpreters on separate
  5283. UIs and the new new-ui command.
  5284. 2016-06-21 Pedro Alves <palves@redhat.com>
  5285. * interps.c (set_top_level_interpreter): New function, factored
  5286. out from captured_main.
  5287. (interpreter_completer): Make extern.
  5288. * interps.h (set_top_level_interpreter, interpreter_completer):
  5289. New declarations.
  5290. (captured_main): Use set_top_level_interpreter.
  5291. * top.c [!O_NOCTTY] (O_NOCTTY): Define as 0.
  5292. (open_terminal_stream, new_ui_command): New functions.
  5293. (init_main): Install the "new-ui" command.
  5294. 2016-06-21 Pedro Alves <palves@redhat.com>
  5295. * cli/cli-script.c (read_next_line): Adjust to per-UI stdin.
  5296. (read_command_lines): Use input_interactive_p instead of
  5297. input_from_terminal_p.
  5298. * defs.h (struct ui): Forward declare.
  5299. (input_from_terminal_p): Rename to ...
  5300. (input_interactive_p): ... this.
  5301. * event-top.c (stdin_event_handler): Pass 0 as from_tty argument
  5302. to quit_command.
  5303. (command_handler): Adjust to per-UI stdin.
  5304. (handle_line_of_input): Adjust to per-UI stdin and use
  5305. input_interactive_p instead of ISATTY and input_from_terminal_p.
  5306. (gdb_readline_no_editing_callback): Adjust to per-UI stdin.
  5307. (command_line_handler): Always pass true as "from_tty" parameter
  5308. of handle_line_of_input and execute_command.
  5309. (async_sigterm_handler): Pass 0 as from_tty argument to
  5310. quit_command.
  5311. * inflow.c (interactive_mode, show_interactive_mode): Moved to ...
  5312. (gdb_has_a_terminal): Don't check interactive_mode here.
  5313. (_initialize_inflow): Don't install "set interactive-mode" here.
  5314. * main.c (captured_command_loop): Adjust to per-UI stdin.
  5315. * mi/mi-interp.c (mi_execute_command_wrapper): Adjust to per-UI
  5316. stdin.
  5317. * top.c (new_ui): Save the stdin stream and whether it's a tty.
  5318. (dont_repeat): Adjust to per-UI stdin.
  5319. (command_line_input): Adjust to per-UI stdin and to use
  5320. input_interactive_p.
  5321. (quit_force): Write history if any UI supports interactive input.
  5322. (interactive_mode, show_interactive_mode): Move here, from
  5323. inflow.c.
  5324. (input_from_terminal_p): Rename to ...
  5325. (input_interactive_p): ... this, and check the "interactive_mode"
  5326. global instead of calling gdb_has_a_terminal.
  5327. (_initialize_top): Install "set interactive-mode" here.
  5328. * top.h (struct ui) <stdin_stream, input_interactive_p>: New
  5329. fields.
  5330. * utils.c (quit): Pass 0 as from_tty argument to quit_force.
  5331. (defaulted_query): Adjust to per-UI stdin and to use
  5332. input_interactive_p.
  5333. 2016-06-21 Pedro Alves <palves@redhat.com>
  5334. * event-top.c (stdin_event_handler): Don't quit gdb if it was a
  5335. secondary UI's input stream that closed. Instead, just delete the
  5336. UI.
  5337. 2016-06-21 Pedro Alves <palves@redhat.com>
  5338. * event-top.c (main_ui_): Delete.
  5339. (main_ui, current_ui, ui_list): No longer initialize here.
  5340. * main.c (captured_main): UI initialization code factored out to
  5341. new new_ui function.
  5342. (gdb_main): Wrap captured_main with TRY/CATCH instead of
  5343. catch_errors.
  5344. * top.c (highest_ui_num): New global.
  5345. (new_ui): New function.
  5346. * top.h (struct ui) <num>: New field.
  5347. (new_ui): New declaration.
  5348. 2016-06-21 Pedro Alves <palves@redhat.com>
  5349. * cli/cli-interp.c (cli_on_normal_stop): Bail out early if there's
  5350. nothing to print. Use should_print_stop_to_console.
  5351. * tui/tui-interp.c (tui_on_normal_stop): Likewise.
  5352. 2016-06-21 Pedro Alves <palves@redhat.com>
  5353. * breakpoint.c (new_until_break_fsm): Add 'cmd_interp' parameter.
  5354. (until_break_fsm_should_stop, until_break_fsm_clean_up): Add
  5355. thread parameter.
  5356. (until_break_command): Pass command interpreter to thread fsm
  5357. ctor.
  5358. * cli/cli-interp.c (should_print_stop_to_console): Adjust.
  5359. * gdbthread.h (struct thread_control_state) <command_interp>:
  5360. Delete field.
  5361. * infcall.c (new_call_thread_fsm): Add 'cmd_interp' parameter.
  5362. Pass it down.
  5363. (call_thread_fsm_should_stop): Add thread parameter.
  5364. (call_function_by_hand_dummy): Pass command interpreter to thread
  5365. fsm ctor. Pass thread pointer to fsm clean up method.
  5366. * infcmd.c: Include interps.h.
  5367. (struct step_command_fsm) <thread>: Delete field.
  5368. (new_step_command_fsm): Add 'cmd_interp' parameter. Pass it down.
  5369. (step_command_fsm_prepare): Remove references to fsm's thread
  5370. field.
  5371. (step_1): Pass command interpreter to thread
  5372. fsm ctor. Pass thread pointer to fsm clean up method.
  5373. (step_command_fsm_should_stop, step_command_fsm_clean_up): Add
  5374. thread parameter and use it.
  5375. (new_until_next_fsm): Add 'cmd_interp' parameter. Pass it down.
  5376. (until_next_fsm_should_stop, until_next_fsm_clean_up): Add thread
  5377. parameter and use it.
  5378. (until_next_command): Pass command interpreter to thread fsm ctor.
  5379. (struct finish_command_fsm) <thread>: Delete field.
  5380. (finish_command_fsm_ops): Add NULL slot for should_notify_stop.
  5381. (new_finish_command_fsm): Add 'cmd_interp' parameter and pass it
  5382. down. Remove thread parameter and adjust.
  5383. (finish_command_fsm_should_stop, finish_command_fsm_clean_up): Add
  5384. thread parameter and use it.
  5385. (finish_command): Pass command interpreter to thread fsm ctor.
  5386. Don't pass thread.
  5387. * infrun.c (follow_fork): Move thread fsm to child fork instead of
  5388. command interpreter, only.
  5389. (clear_proceed_status_thread): Remove reference to command_interp.
  5390. (proceed): Don't record the thread's command interpreter.
  5391. (clean_up_just_stopped_threads_fsms): Pass thread to fsm clean_up
  5392. method.
  5393. (fetch_inferior_event): Pass thread to fsm should_stop method.
  5394. * thread-fsm.c (thread_fsm_ctor): Add 'cmd_interp' parameter.
  5395. Store it.
  5396. (thread_fsm_clean_up, thread_fsm_should_stop): Add thread
  5397. parameter and pass it down.
  5398. * thread-fsm.h (struct thread_fsm) <command_interp>: New field.
  5399. (struct thread_fsm_ops) <clean_up, should_stop>: Add thread
  5400. parameter.
  5401. (thread_fsm_ctor): Add 'cmd_interp' parameter.
  5402. (thread_fsm_clean_up, thread_fsm_should_stop): Add thread
  5403. parameter.
  5404. * thread.c (thread_cancel_execution_command): Pass thread to
  5405. thread fsm clean_up method.
  5406. 2016-06-21 Pedro Alves <palves@redhat.com>
  5407. * cli/cli-interp.c: Include gdbthread.h and thread-fsm.h.
  5408. (should_print_stop_to_console): New function, factored out from
  5409. mi_on_normal_stop_1.
  5410. * cli/cli-interp.h (should_print_stop_to_console): Declare.
  5411. * mi/mi-interp.c (mi_on_normal_stop_1): Use
  5412. should_print_stop_to_console. Pass it the current UI's console
  5413. interpreter.
  5414. * mi/mi-main.c (captured_mi_execute_command): Use the
  5415. INTERP_CONSOLE symbol rather than explicit "console".
  5416. 2016-06-21 Pedro Alves <palves@redhat.com>
  5417. * infcmd.c (prepare_execution_command): Use
  5418. all_uis_on_sync_execution_starting.
  5419. * infrun.c (all_uis_on_sync_execution_starting): New function.
  5420. * infrun.h (all_uis_on_sync_execution_starting): Declare.
  5421. 2016-06-21 Pedro Alves <palves@redhat.com>
  5422. * annotate.c: Include top.h.
  5423. (async_background_execution_p): Delete.
  5424. (print_value_flags): Check the UI's prompt state rather then
  5425. async_background_execution_p.
  5426. * event-loop.c (start_event_loop): Set the prompt state to
  5427. PROMPT_NEEDED.
  5428. * event-top.c (display_gdb_prompt, async_enable_stdin)
  5429. (async_disable_stdin): Check the current UI's prompt state instead
  5430. of the sync_execution global.
  5431. (command_line_handler): Set the prompt state to PROMPT_NEEDED
  5432. before running a command, and display the prompt if still needed
  5433. afterwards.
  5434. * infcall.c (struct call_thread_fsm) <waiting_ui>: New field.
  5435. (new_call_thread_fsm): New parameter 'waiting_ui'. Store it.
  5436. (call_thread_fsm_should_stop): Set the prompt state to
  5437. PROMPT_NEEDED.
  5438. (run_inferior_call): Adjust to temporarily set the prompt state to
  5439. PROMPT_BLOCKED instead of using the sync_execution global.
  5440. (call_function_by_hand_dummy): Pass the current UI to
  5441. new_call_thread_fsm.
  5442. * infcmd.c: Include top.h.
  5443. (continue_1): Check the current UI's prompt state instead of the
  5444. sync_execution global.
  5445. (continue_command): Validate global execution state before calling
  5446. prepare_execution_command.
  5447. (step_1): Call all_uis_check_sync_execution_done.
  5448. (attach_post_wait): Don't call async_enable_stdin here. Remove
  5449. reference to sync_execution.
  5450. * infrun.c (sync_execution): Delete global.
  5451. (follow_fork_inferior)
  5452. (reinstall_readline_callback_handler_cleanup): Check the current
  5453. UI's prompt state instead of the sync_execution global.
  5454. (check_curr_ui_sync_execution_done)
  5455. (all_uis_check_sync_execution_done): New functions.
  5456. (fetch_inferior_event): Call all_uis_check_sync_execution_done
  5457. instead of trying to determine whether the global sync execution
  5458. changed.
  5459. (handle_no_resumed): Check the prompt state of all UIs.
  5460. (normal_stop): Emit the no unwait-for even to all PROMPT_BLOCKED
  5461. UIs. Emit the "Switching to" notification to all UIs. Enable
  5462. stdin in all UIs.
  5463. * infrun.h (sync_execution): Delete.
  5464. (all_uis_check_sync_execution_done): Declare.
  5465. * main.c (captured_command_loop): Don't call
  5466. interp_pre_command_loop if the prompt is blocked.
  5467. (catch_command_errors, catch_command_errors_const): Adjust.
  5468. (captured_main): Set the initial prompt state to PROMPT_NEEDED.
  5469. * mi/mi-interp.c (display_mi_prompt): Set the prompt state to
  5470. PROMPTED.
  5471. (mi_interpreter_resume): Don't clear sync_execution. Remove hack
  5472. comment.
  5473. (mi_execute_command_input_handler): Set the prompt state to
  5474. PROMPT_NEEDED before executing the command, and only display the
  5475. prompt if the prompt state is PROMPT_NEEDED afterwards.
  5476. (mi_on_resume_1): Adjust to check the prompt state.
  5477. * target.c (target_terminal_inferior): Adjust to check the prompt
  5478. state.
  5479. * top.c (wait_sync_command_done, maybe_wait_sync_command_done)
  5480. (execute_command): Check the current UI's prompt state instead of
  5481. sync_execution.
  5482. * top.h (enum prompt_state): New.
  5483. (struct ui) <prompt_state>: New field.
  5484. (ALL_UIS): New macro.
  5485. 2016-06-21 Pedro Alves <palves@redhat.com>
  5486. * top.c (gdb_secondary_prompt_depth): Delete.
  5487. (gdb_in_secondary_prompt_p): Add ui parameter. Use it.
  5488. (gdb_readline_wrapper_cleanup, gdb_readline_wrapper): Adjust to
  5489. per-UI gdb_secondary_prompt_depth.
  5490. * top.h (struct ui) <secondary_prompt_depth>: New field.
  5491. 2016-06-21 Pedro Alves <palves@redhat.com>
  5492. * cli/cli-interp.c (cli_interpreter_pre_command_loop): New
  5493. function.
  5494. (cli_interp_procs): Install it instead of cli_command_loop.
  5495. * cli/cli-interp.h (cli_interpreter_pre_command_loop): Declare.
  5496. * event-top.c (cli_command_loop): Delete.
  5497. * interps.c (interp_new): Remove reference to command_loop_proc.
  5498. (current_interp_command_loop): Delete.
  5499. (interp_pre_command_loop): New function.
  5500. (interp_command_loop_ftype): Delete.
  5501. * interps.h (interp_pre_command_loop_ftype): New typedef.
  5502. (struct interp_procs) <command_loop_proc>: Delele field.
  5503. <pre_command_loop_proc>: New field.
  5504. (current_interp_command_loop): Delete declaration.
  5505. (interp_pre_command_loop): New declaration.
  5506. * main.c (captured_command_loop): Call interp_pre_command_loop
  5507. instead of current_interp_command_loop and start an event loop.
  5508. * mi/mi-interp.c (mi_command_loop): Delete.
  5509. (mi_interpreter_pre_command_loop): New.
  5510. (mi_interp_procs): Update.
  5511. * tui/tui-interp.c (tui_interp_procs): Install
  5512. cli_interpreter_pre_command_loop instead of cli_command_loop.
  5513. 2016-06-21 Pedro Alves <palves@redhat.com>
  5514. * interps.c (current_interpreter): New function.
  5515. * interps.h (current_interpreter): New declaration.
  5516. * mi/mi-cmds.h (raw_stdout): Delete declaration.
  5517. * mi/mi-common.h (struct mi_interp) <raw_stdout,
  5518. saved_raw_stdout>: New field.
  5519. * mi/mi-interp.c (display_mi_prompt): New parameter 'mi'. Adjust
  5520. to per-UI raw_stdout.
  5521. (mi_interpreter_init): Adjust to per-UI raw_stdout.
  5522. (mi_on_sync_execution_done, mi_execute_command_input_handler)
  5523. (mi_command_loop): Pass MI instance to display_mi_prompt.
  5524. (mi_on_normal_stop_1, mi_output_running_pid, mi_on_resume_1)
  5525. (mi_on_resume): Adjust to per-UI raw_stdout.
  5526. (saved_raw_stdout): Delete.
  5527. (mi_set_logging): Adjust to per-UI raw_stdout and
  5528. saved_raw_stdout.
  5529. * mi/mi-main.c (raw_stdout): Delete.
  5530. (mi_cmd_gdb_exit, captured_mi_execute_command)
  5531. (mi_print_exception, mi_load_progress): Adjust to per-UI
  5532. raw_stdout.
  5533. (print_diff_now, mi_print_timing_maybe): New ui_file parameter.
  5534. Pass it along.
  5535. (print_diff): New ui_file parameter. Send output there instead of
  5536. raw_stdout.
  5537. * mi/mi-main.h (struct ui_file): Forward declare.
  5538. (mi_print_timing_maybe): Add ui_file parameter.
  5539. 2016-06-21 Pedro Alves <palves@redhat.com>
  5540. * mi/mi-interp.c (display_mi_prompt): New function.
  5541. 2016-06-21 Pedro Alves <palves@redhat.com>
  5542. * target.c (target_terminal_inferior): Bail out after
  5543. unregistering input_fd if not on the main UI.
  5544. (target_terminal_ours): Bail out after registering input_fd if not
  5545. on the main UI.
  5546. (target_terminal_ours_for_output): Bail out if not on the main UI.
  5547. 2016-06-21 Pedro Alves <palves@redhat.com>
  5548. * event-top.c (restore_ui_cleanup): Make extern.
  5549. * infrun.c (fetch_inferior_event): Always switch to the main UI.
  5550. * top.h (restore_ui_cleanup): Declare.
  5551. 2016-06-21 Pedro Alves <palves@redhat.com>
  5552. PR mi/20034
  5553. * cli/cli-interp.c: Include cli-interp.h and event-top.h.
  5554. (cli_interpreter_resume): Pass 1 to gdb_setup_readline. Set the
  5555. UI's input_handler here.
  5556. (cli_interpreter_supports_command_editing): New function.
  5557. (cli_interp_procs): Install it.
  5558. * cli/cli-interp.h: New file.
  5559. * event-top.c (async_command_editing_p): Rename to ...
  5560. (set_editing_cmd_var): ... this.
  5561. (change_line_handler): Add parameter 'editing', and use it. Bail
  5562. early if the interpreter doesn't support editing. Don't touch
  5563. readline state if editing is off.
  5564. (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
  5565. (gdb_rl_callback_handler_reinstall): Assert the current UI is the
  5566. main UI.
  5567. (display_gdb_prompt): Don't call gdb_rl_callback_handler_remove if
  5568. not using readline. Check whether the current UI is using command
  5569. editing instead of checking the async_command_editing_p global.
  5570. (set_async_editing_command): Delete.
  5571. (gdb_setup_readline): Add 'editing' parameter. Only allow editing
  5572. on the main UI. Don't touch readline state if editing is off.
  5573. (gdb_disable_readline): Don't touch readline state if editing is
  5574. off.
  5575. * event-top.h (gdb_setup_readline): Add 'int' parameter.
  5576. (set_async_editing_command): Delete declaration.
  5577. (change_line_handler, command_line_handler): Declare.
  5578. (async_command_editing_p): Rename to ...
  5579. (set_editing_cmd_var): ... this.
  5580. * infrun.c (reinstall_readline_callback_handler_cleanup): Check
  5581. whether the current UI has editing enabled rather than checking
  5582. the async_command_editing_p global.
  5583. * interps.c (interp_supports_command_editing): New function.
  5584. * interps.h (interp_supports_command_editing_ftype): New typedef.
  5585. (struct interp_procs) <supports_command_editing_proc>: New field.
  5586. (interp_supports_command_editing): Declare.
  5587. * mi/mi-interp.c (mi_interpreter_resume): Pass 0 to
  5588. gdb_setup_readline. Don't clear the async_command_editing_p
  5589. global. Update comments.
  5590. * top.c (gdb_readline_wrapper_line, gdb_readline_wrapper): Check
  5591. whether the current UI has editing enabled rather than checking
  5592. the async_command_editing_p global. Don't touch readline state if
  5593. editing is off.
  5594. (undo_terminal_modifications_before_exit): Switch to the main UI.
  5595. Unconditionally call gdb_disable_readline.
  5596. (set_editing): New function.
  5597. (show_async_command_editing_p): Rename to ...
  5598. (show_editing): ... this. Show the state of the current UI.
  5599. (_initialize_top): Adjust.
  5600. * top.h (struct ui) <command_editing>: New field.
  5601. * tui/tui-interp.c: Include cli/cli-interp.h.
  5602. (tui_resume): Pass 1 to gdb_setup_readline. Set the UI's
  5603. input_handler.
  5604. (tui_interp_procs): Install
  5605. cli_interpreter_supports_command_editing.
  5606. * tui/tui-io.c (tui_getc): Check whether the current UI has
  5607. editing enabled rather than checking the async_command_editing_p
  5608. global.
  5609. 2016-06-21 Pedro Alves <palves@redhat.com>
  5610. * top.c: Call gen_ret_current_ui_field_ptr for current_uiout.
  5611. * top.h (struct ui) <m_current_uiout>: New field.
  5612. * ui-out.c (current_uiout): Delete.
  5613. * ui-out.h (current_uiout): Delete.
  5614. (current_ui_current_uiout_ptr): New declaration.
  5615. (current_uiout): Reimplement as wrapper around
  5616. current_ui_current_uiout_ptr.
  5617. 2016-06-21 Pedro Alves <palves@redhat.com>
  5618. * ui-out.c (default_ui_out_impl): Delete.
  5619. (def_uiout): Delete.
  5620. (current_uiout): Set to NULL.
  5621. (default_table_begin, default_table_body, default_table_end)
  5622. (default_table_header, default_begin, default_end)
  5623. (default_field_int, default_field_skip, default_field_string)
  5624. (default_field_fmt, default_spaces, default_text, default_message)
  5625. (default_wrap_hint, default_flush, default_data_destroy): Delete.
  5626. 2016-06-21 Pedro Alves <palves@redhat.com>
  5627. * event-top.c (gdb_setup_readline): Pass the UI's outstream and
  5628. errstream to stdout_fileopen and stderr_fileopen.
  5629. * exceptions.c: Include top.h.
  5630. (print_flush): Open the current UI's outstream file descriptor,
  5631. instead of hardcoding file descriptor 1.
  5632. * main.c (captured_main): Save the main UI's out and error
  5633. streams. Adjust stderr_fileopen call.
  5634. * top.h (struct ui) <outstream, errstream>: New fields.
  5635. * ui-file.c (stderr_fileopen): Add stream parameter. Use it
  5636. instead of stderr.
  5637. * ui-file.h (stderr_fileopen): Add stream parameter and update
  5638. comment.
  5639. 2016-06-21 Pedro Alves <palves@redhat.com>
  5640. * event-top.c (input_fd): Delete.
  5641. (stdin_event_handler): Switch to the UI whose input descriptor got
  5642. the event. Adjust to per-UI input_fd.
  5643. (gdb_setup_readline): Don't set the input_fd global. Adjust to
  5644. per-UI input_fd.
  5645. (gdb_disable_readline): Adjust to per-UI input_fd.
  5646. * event-top.h (input_fd): Delete declaration.
  5647. * linux-nat.c (linux_nat_terminal_inferior): Don't remove input_fd
  5648. from the event-loop here.
  5649. (linux_nat_terminal_ours): Don't register input_fd in the
  5650. event-loop here.
  5651. * main.c (captured_main): Adjust to per-UI input_fd.
  5652. * remote.c (remote_terminal_inferior): Don't remove input_fd from
  5653. the event-loop here.
  5654. (remote_terminal_ours): Don't register input_fd in the event-loop
  5655. here.
  5656. * target.c: Include top.h and event-top.h.
  5657. (target_terminal_inferior): Remove input_fd from the event-loop
  5658. here.
  5659. (target_terminal_ours): Register input_fd in the event-loop.
  5660. * top.h (struct ui) <input_fd>: New field.
  5661. 2016-06-21 Pedro Alves <palves@redhat.com>
  5662. * cli/cli-script.c (execute_user_command, read_next_line)
  5663. (read_next_line): Adjust to per-UI instream.
  5664. * event-top.c (stdin_event_handler, command_handler)
  5665. (handle_line_of_input, command_line_handler)
  5666. (gdb_readline_no_editing_callback, async_sigterm_handler)
  5667. (gdb_setup_readline): Likewise.
  5668. * inflow.c: Include top.h.
  5669. (gdb_has_a_terminal, child_terminal_init_with_pgrp)
  5670. (gdb_save_tty_state, child_terminal_inferior)
  5671. (child_terminal_ours_1, copy_terminal_info): Use the main UI.
  5672. (initialize_stdin_serial): Adjust to per-UI instream.
  5673. * main.c (captured_command_loop, captured_main): Adjust to per-UI
  5674. instream.
  5675. * mi/mi-interp.c (mi_execute_command_wrapper): Likewise.
  5676. * python/python.c (python_interactive_command): Likewise.
  5677. * terminal.h (struct ui): Forward declare.
  5678. (initialize_stdin_serial): Add struct ui parameter.
  5679. * top.c (instream): Delete.
  5680. (do_restore_instream_cleanup, read_command_file, dont_repeat)
  5681. (gdb_readline_no_editing, command_line_input)
  5682. (input_from_terminal_p, gdb_init): Adjust to per-UI instream.
  5683. * top.h (struct ui) <instream>: New field.
  5684. (instream): Delete declaration.
  5685. (quit): Adjust to per-UI instream.
  5686. 2016-06-21 Pedro Alves <palves@redhat.com>
  5687. * event-loop.c: Include top.h.
  5688. (invoke_async_signal_handlers): Switch to the main UI.
  5689. * event-top.c (main_ui_): Update comment.
  5690. (main_ui): New global.
  5691. * top.h (main_ui): Declare.
  5692. 2016-06-21 Pedro Alves <palves@redhat.com>
  5693. * cli/cli-interp.c (cli_interp): Delete.
  5694. (as_cli_interp): New function.
  5695. (cli_on_normal_stop, cli_on_signal_received)
  5696. (cli_on_end_stepping_range, cli_on_signal_exited, cli_on_exited)
  5697. (cli_on_no_history): Send output to all CLI UIs.
  5698. (cli_on_sync_execution_done, cli_on_command_error): Skip output if
  5699. the top level interpreter is not a CLI.
  5700. (cli_interpreter_init): Don't set cli_interp or install observers
  5701. here.
  5702. (_initialize_cli_interp): Install observers here.
  5703. * event-top.c (main_ui_, ui_list): New globals.
  5704. (current_ui): Point to main_ui_.
  5705. (restore_ui_cleanup, switch_thru_all_uis_init)
  5706. (switch_thru_all_uis_cond, switch_thru_all_uis_next): New
  5707. functions.
  5708. * mi/mi-interp.c (as_mi_interp): New function.
  5709. (mi_interpreter_init): Don't install observers here.
  5710. (mi_on_sync_execution_done): Skip output if the top level
  5711. interpreter is not a MI.
  5712. (mi_new_thread, mi_thread_exit, mi_record_changed)
  5713. (mi_inferior_added, mi_inferior_appeared, mi_inferior_exit)
  5714. (mi_inferior_removed): Send output to all MI UIs.
  5715. (find_mi_interpreter, mi_interp_data): Delete.
  5716. (find_mi_interp): New function.
  5717. (mi_on_signal_received, mi_on_end_stepping_range)
  5718. (mi_on_signal_exited, mi_on_exited, mi_on_no_history): Send output
  5719. to all MI UIs.
  5720. (mi_on_normal_stop): Rename to ...
  5721. (mi_on_normal_stop_1): ... this.
  5722. (mi_on_normal_stop): Reimplement, sending output to all MI UIs.
  5723. (mi_traceframe_changed, mi_tsv_created, mi_tsv_deleted)
  5724. (mi_tsv_modified, mi_breakpoint_created, mi_breakpoint_deleted)
  5725. (mi_breakpoint_modified, mi_output_running_pid): Send output to
  5726. all MI UIs.
  5727. (mi_on_resume): Rename to ...
  5728. (mi_on_resume_1): ... this. Don't handle infcalls here.
  5729. (mi_on_resume): Reimplement, sending output to all MI UIs.
  5730. (mi_solib_loaded, mi_solib_unloaded, mi_command_param_changed)
  5731. (mi_memory_changed): Send output to all MI UIs.
  5732. (report_initial_inferior): Install observers here.
  5733. * top.h (struct ui) <next>: New field.
  5734. (ui_list): Declare.
  5735. (struct switch_thru_all_uis): New.
  5736. (switch_thru_all_uis_init, switch_thru_all_uis_cond)
  5737. (switch_thru_all_uis_next): Declare.
  5738. (SWITCH_THRU_ALL_UIS): New macro.
  5739. * tui/tui-interp.c (tui_interp): Delete global.
  5740. (as_tui_interp): New function.
  5741. (tui_on_normal_stop, tui_on_signal_received)
  5742. (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
  5743. (tui_on_no_history): Send output to all TUI UIs.
  5744. (tui_on_sync_execution_done, tui_on_command_error): Skip output if
  5745. the top level interpreter is not a TUI.
  5746. (tui_init): Don't set tui_interp or install observers here.
  5747. (_initialize_tui_interp): Install observers here.
  5748. 2016-06-21 Pedro Alves <palves@redhat.com>
  5749. * cli/cli-interp.c (cli_uiout): Delete, moved into ...
  5750. (struct cli_interp): ... this new structure.
  5751. (cli_on_normal_stop, cli_on_signal_received)
  5752. (cli_on_end_stepping_range, cli_on_signal_exited, cli_on_exited)
  5753. (cli_on_no_history): Use interp_ui_out.
  5754. (cli_interpreter_init): If top level, set the cli_interp global.
  5755. (cli_interpreter_init): Return the interp's data instead of NULL.
  5756. (cli_interpreter_resume, cli_interpreter_exec, cli_ui_out): Adjust
  5757. to cli_uiout being in the interpreter's data.
  5758. (cli_interp_procs): New, factored out from _initialize_cli_interp.
  5759. (cli_interp_factory): New function.
  5760. (_initialize_cli_interp): Call interp_factory_register.
  5761. * interps.c (get_interp_info): New, factored out from ...
  5762. (get_current_interp_info): ... this.
  5763. (interp_new): Add parameter 'data'. Store it.
  5764. (struct interp_factory): New function.
  5765. (interp_factory_p): New typedef. Define a VEC_P.
  5766. (interpreter_factories): New global.
  5767. (interp_factory_register): New function.
  5768. (interp_add): Add 'ui' parameter. Use get_interp_info and
  5769. interp_lookup_existing.
  5770. (interp_lookup): Rename to ...
  5771. (interp_lookup_existing): ... this. Add 'ui' parameter. Don't
  5772. check for NULL or empty name here.
  5773. (interp_lookup): Add 'ui' parameter and reimplement.
  5774. (interp_set_temp, interpreter_exec_cmd): Adjust.
  5775. (interpreter_completer): Complete on registered interpreter
  5776. factories instead of interpreters.
  5777. * interps.h (interp_factory_func): New typedef.
  5778. (interp_factory_register): Declare.
  5779. (interp_new, interp_add): Adjust.
  5780. (interp_lookup): Declare.
  5781. * main.c (captured_main): Adjust.
  5782. * mi/mi-interp.c (mi_cmd_interpreter_exec): Adjust.
  5783. (mi_interp_procs): New, factored out from
  5784. _initialize_mi_interp.
  5785. (mi_interp_factory): New function.
  5786. * python/python.c (execute_gdb_command): Adjust.
  5787. * tui/tui-interp.c (tui_init): If top level, set the tui_interp
  5788. global.
  5789. (tui_interp_procs): New.
  5790. (tui_interp_factory): New function.
  5791. (_initialize_tui_interp): Call interp_factory_register.
  5792. 2016-06-21 Pedro Alves <palves@redhat.com>
  5793. * breakpoint.c (bpstat_do_actions_1): Access the current UI's
  5794. async field instead of the interpreter_async global.
  5795. * cli/cli-script.c (execute_user_command, while_command)
  5796. (if_command, script_from_file): Likewise.
  5797. * compile/compile.c: Include top.h instead of interps.h.
  5798. (compile_file_command, compile_code_command)
  5799. (compile_print_command): Access the current UI's async field
  5800. instead of the interpreter_async global.
  5801. * guile/guile.c: Include top.h instead of interps.h.
  5802. (guile_repl_command, guile_command, gdbscm_execute_gdb_command):
  5803. Access the current UI's async field instead of the
  5804. interpreter_async global.
  5805. * guile/scm-ports.c: Include top.h instead of interps.h.
  5806. (ioscm_with_output_to_port_worker): Access the current UI's async
  5807. field instead of the interpreter_async global.
  5808. * inf-loop.c (inferior_event_handler): Likewise.
  5809. * infcall.c (run_inferior_call): Likewise.
  5810. * infrun.c (reinstall_readline_callback_handler_cleanup)
  5811. (fetch_inferior_event): Likewise.
  5812. * interps.c (interpreter_async): Delete.
  5813. (struct ui_interp_info): New.
  5814. (get_current_interp_info): New function.
  5815. (interp_list, current_interpreter, top_level_interpreter_ptr):
  5816. Delete.
  5817. (interp_add, interp_set, interp_lookup, interp_ui_out)
  5818. (current_interp_set_logging, interp_set_temp)
  5819. (current_interp_named_p): Adjust to per-UI interpreters.
  5820. (command_interpreter): Delete.
  5821. (command_interp, current_interp_command_loop, interp_quiet_p)
  5822. (interp_exec, interpreter_exec_cmd, interpreter_completer)
  5823. (top_level_interpreter, top_level_interpreter_data): Adjust to
  5824. per-UI interpreters.
  5825. * interps.h (interpreter_async): Delete.
  5826. * main.c (captured_command_loop): Access the current UI's async
  5827. field instead of the interpreter_async global.
  5828. * python/python.c (python_interactive_command, python_command)
  5829. (execute_gdb_command): Likewise.
  5830. * top.c (maybe_wait_sync_command_done, execute_command_to_string):
  5831. Access the current UI's async field instead of the
  5832. interpreter_async global.
  5833. * top.h (struct tl_interp_info): Forward declare.
  5834. (struct ui) <interp_info, async>: New fields.
  5835. 2016-06-21 Pedro Alves <palves@redhat.com>
  5836. * main.c (gdb_stdout, gdb_stderr, gdb_stdlog, gdb_stdin): Delete
  5837. globals.
  5838. (gen_ret_current_ui_field_ptr): New macro. Use it to generate
  5839. wrappers for gdb_stdout, gdb_stderr, gdb_stdlog and gdb_stdin.
  5840. * top.h (struct ui) <m_gdb_stdout, m_gdb_stdin, m_gdb_stderr,
  5841. m_gdb_stdlog>: New fields.
  5842. (current_ui_gdb_stdout_ptr, current_ui_gdb_stdin_ptr)
  5843. (current_ui_gdb_stderr_ptr, current_ui_gdb_stdlog_ptr): Declare.
  5844. (gdb_stdout, gdb_stdin, gdb_stderr, gdb_stdlog): Reimplement as
  5845. macros.
  5846. 2016-06-21 Pedro Alves <palves@redhat.com>
  5847. * event-top.c: Update readline-related comments.
  5848. (input_handler, call_readline): Delete globals.
  5849. (gdb_rl_callback_handler): Call the current UI's input_handler
  5850. method.
  5851. (change_line_handler): Adjust to set current UI's properties
  5852. instead of globals.
  5853. (current_ui_, current_ui): New globals.
  5854. (get_command_line_buffer): Rewrite to refer to the current UI.
  5855. (stdin_event_handler): Adjust to call the call_readline method of
  5856. the current UI.
  5857. (gdb_readline_no_editing_callback): Adjust to call the current UI's
  5858. input_handler method.
  5859. (gdb_setup_readline): Adjust to set current UI's properties
  5860. instead of globals.
  5861. * event-top.h (call_readline, input_handler): Delete declarations.
  5862. * mi/mi-interp.c (mi_interpreter_resume): Adjust to set current
  5863. UI's properties instead of globals.
  5864. * top.c (gdb_readline_wrapper_cleanup): Adjust to set current UI's
  5865. properties instead of globals.
  5866. (gdb_readline_wrapper): Adjust to call and set current UI's
  5867. methods instead of globals.
  5868. * top.h: Include buffer.h and event-loop.h.
  5869. (struct ui): New struct.
  5870. (current_ui): New declaration.
  5871. 2016-06-21 Pedro Alves <palves@redhat.com>
  5872. * ada-lang.c (ada_exception_name_addr_1): Add comment.
  5873. (print_it_exception): Select the current frame.
  5874. 2016-06-17 Yan-Ting Lin <currygt52@gmail.com>
  5875. * Makefile.in (ALL_TARGET_OBS): Add nds32-tdep.o.
  5876. (HFILES_NO_SRCDIR): Add nds32-tdep.h.
  5877. (ALLDEPFILES): Add nds32-tdep.c.
  5878. * NEWS: Mention new NDS32 port.
  5879. * configure.tgt: Add NDS32.
  5880. * nds32-tdep.c: New file.
  5881. * nds32-tdep.h: New file.
  5882. * features/Makefile (XMLTOC): Add nds32.xml.
  5883. * features/nds32-core.xml: New file.
  5884. * features/nds32-fpu.xml: New file.
  5885. * features/nds32-system.xml: New file.
  5886. * features/nds32.c: New file (generated).
  5887. * features/nds32.xml: New file.
  5888. 2016-06-14 John Baldwin <jhb@FreeBSD.org>
  5889. * v850-tdep.c (v850_use_struct_convention): Trim type length checks.
  5890. 2016-06-14 John Baldwin <jhb@FreeBSD.org>
  5891. * tui/tui-stack.c (tui_show_frame_info): Fix type mismatch.
  5892. 2016-06-14 John Baldwin <jhb@FreeBSD.org>
  5893. * rs6000-tdep.c (ppc_process_record_op31): Initialize ra.
  5894. 2016-06-13 Nick Clifton <nickc@redhat.com>
  5895. * gdbtypes.c (replace_type): Fix assertion.
  5896. 2016-06-10 Tom Tromey <tom@tromey.com>
  5897. * gdbtypes.c (arch_type, arch_integer_type, arch_character_type)
  5898. (arch_boolean_type, arch_float_type, arch_complex_type)
  5899. (arch_flags_type, append_flags_type_field)
  5900. (append_flags_type_flag, arch_composite_type)
  5901. (append_composite_type_field_raw)
  5902. (append_composite_type_field_aligned)
  5903. (append_composite_type_field): Make "name" parameter const.
  5904. * gdbtypes.h (arch_type, arch_integer_type, arch_character_type)
  5905. (arch_boolean_type, arch_float_type, arch_complex_type)
  5906. (append_composite_type_field, append_composite_type_field_aligned)
  5907. (append_composite_type_field_raw, arch_flags_type)
  5908. (append_flags_type_field, append_flags_type_flag): Constify.
  5909. 2016-06-10 Tom Tromey <tom@tromey.com>
  5910. PR rust/20110:
  5911. * rust-exp.y (lex_number): Don't truncate large numbers to i32.
  5912. 2016-06-10 Tom Tromey <tom@tromey.com>
  5913. * Makefile.in (COMMON_OBS): Remove rust-exp.o.
  5914. (YYFILES): Add rust-exp.c.
  5915. (YYOBJ): Add rust-exp.o.
  5916. (local-maintainer-clean): Remove rust-exp.c.
  5917. 2016-06-09 Toshihito Kikuchi <k.toshihito@yahoo.de>
  5918. * NEWS: Mention that GDB now supports a negative repeat count in
  5919. the 'x' command.
  5920. * printcmd.c (decode_format): Allow '-' in the parameter
  5921. "string_ptr" to accept a negative repeat count.
  5922. (find_instruction_backward): New function.
  5923. (read_memory_backward): New function.
  5924. (integer_is_zero): New function.
  5925. (find_string_backward): New function.
  5926. (do_examine): Use new functions to examine memory backward.
  5927. (_initialize_printcmd): Mention that 'x' command supports a negative
  5928. repeat count.
  5929. 2016-06-09 Toshihito Kikuchi <k.toshihito@yahoo.de>
  5930. * MAINTAINERS (Write After Approval): Add Toshihito Kikuchi.
  5931. 2016-06-09 Tom Tromey <tom@tromey.com>
  5932. PR python/19819:
  5933. * python/py-xmethods.c (invoke_method_name)
  5934. (py_get_result_type_method_name, py_invoke_method_name): Remove.
  5935. (gdbpy_initialize_xmethods): Don't initialize
  5936. py_invoke_method_name, py_get_result_type_method_name.
  5937. 2016-06-07 Simon Marchi <simon.marchi@ericsson.com>
  5938. * mi/mi-interp.c (mi_record_changed): Add missing braces.
  5939. 2016-06-07 Bernhard Heckel <bernhard.heckel@intel.com>
  5940. * findvar.c (follow_static_link): Check for valid pointer.
  5941. 2016-06-06 Simon Marchi <simon.marchi@ericsson.com>
  5942. * NEWS: Mention the new fields in =record-started.
  5943. * common/btrace-common.h (btrace_format_short_string): New function
  5944. declaration.
  5945. * common/btrace-common.c (btrace_format_short_string): New
  5946. function.
  5947. * mi/mi-interp.c (mi_record_changed): Output method and format
  5948. fields in the =record-started record.
  5949. * record-btrace.c (record_btrace_open): Adapt record_changed
  5950. notification.
  5951. * record-full.c (record_full_open): Likewise.
  5952. * record.c (cmd_record_stop): Likewise.
  5953. 2016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
  5954. * windows-nat.c (handle_output_debug_string): Return type of
  5955. gdb_signal_from_host() is gdb_signal, not an int.
  5956. (windows_get_exec_module_filename): Add pointer casts for C++.
  5957. 2016-06-02 Tom Tromey <tom@tromey.com>
  5958. PR python/18984:
  5959. * python/python.c (gdbpy_solib_name): Use GDB_PY_LLU_ARG.
  5960. 2016-06-01 Pedro Alves <palves@redhat.com>
  5961. * remote-fileio.c (remote_fio_ctrl_c_flag, remote_fio_sa)
  5962. (remote_fio_osa)
  5963. (remote_fio_ofunc, remote_fileio_sig_init, remote_fileio_sig_set)
  5964. (remote_fileio_sig_exit, remote_fileio_ctrl_c_signal_handler):
  5965. Delete.
  5966. (remote_fileio_o_quit_handler): New global.
  5967. (remote_fileio_quit_handler): New function.
  5968. (remote_fileio_reply): Check the quit flag instead of the custom
  5969. 'remote_fio_ctrl_c_flag' flag. Restore the quit handler instead
  5970. of changing the SIGINT handler.
  5971. (do_remote_fileio_request): Override the quit handler instead of
  5972. changing the SIGINT handler.
  5973. 2016-06-01 Nick Clifton <nickc@redhat.com>
  5974. * common/common-utils.c (xmalloc_failed): New function. Provided
  5975. so that the version in libiberty is not linked in.
  5976. 2016-06-01 Markus Metzger <markus.t.metzger@intel.com>
  5977. * infcmd.c (skip_finish_frames): New.
  5978. (finish_command): Call skip_finish_frames.
  5979. 2016-06-01 Yao Qi <yao.qi@linaro.org>
  5980. PR remote/19998
  5981. * remote-fileio.c (remote_fileio_ctrl_c_signal_handler): Call
  5982. quit_serial_event_set.
  5983. 2016-06-01 Joel Brobecker <brobecker@adacore.com>
  5984. GDB 7.11.1 released.
  5985. 2016-05-31 Martin Galvan <martin.galvan@tallertechnologies.com>
  5986. PR c++/19893
  5987. * dwarf2loc.c (coerce_pieced_ref, indirect_synthetic_pointer,
  5988. fetch_const_value_from_synthetic_pointer): New functions.
  5989. (indirect_pieced_value): Move lower half to indirect_synthetic_pointer.
  5990. (pieced_value_funcs): Implement coerce_ref.
  5991. * valops.c (value_addr): Call coerce_ref for synthetic references.
  5992. * valprint.c (valprint_check_validity): Return true for synthetic
  5993. references. Also, don't show "<synthetic pointer>" if they reference
  5994. addressable values.
  5995. (generic_val_print_ref): Handle synthetic references. Also move some
  5996. code to print_ref_address.
  5997. (print_ref_address, get_value_addr_contents): New functions.
  5998. 2016-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
  5999. PR c++/15231
  6000. * dwarf2read.c (enum pc_bounds_kind): Add PC_BOUNDS_INVALID.
  6001. (process_psymtab_comp_unit_reader, read_func_scope): Adjust callers.
  6002. (read_lexical_block_scope): Import DIEs from bare DW_TAG_lexical_block.
  6003. (read_call_site_scope): Adjust callers.
  6004. (dwarf2_get_pc_bounds): Implement pc_bounds_invalid.
  6005. (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds): Adjust callers.
  6006. 2016-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
  6007. Code cleanup: dwarf2_get_pc_bounds: -1/0/+1 -> enum
  6008. * dwarf2read.c (enum pc_bounds_kind) New.
  6009. (dwarf2_get_pc_bounds): Use it in the declaration.
  6010. (process_psymtab_comp_unit_reader): Adjust caller. Rename has_pc_info
  6011. to cu_bounds_kind.
  6012. (read_func_scope, read_lexical_block_scope, read_call_site_scope):
  6013. Adjust callers.
  6014. (dwarf2_get_pc_bounds): Use enum pc_bounds_kind in the definition.
  6015. (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds): Adjust callers.
  6016. 2016-05-29 Jan Kratochvil <jan.kratochvil@redhat.com>
  6017. * NEWS (QCatchSyscalls): Remove the parameter. Include ...
  6018. (QCatchSyscalls:1 in qSupported) ... this separate entry which got
  6019. deleted.
  6020. 2016-05-29 Jan Kratochvil <jan.kratochvil@redhat.com>
  6021. * NEWS (N stop reply): Remove empty line.
  6022. 2016-05-28 Alan Modra <amodra@gmail.com>
  6023. * compile/compile-object-load.c (link_callbacks_multiple_definition,
  6024. link_callbacks_warning, link_callbacks_undefined_symbol,
  6025. link_callbacks_undefined_symbol, link_callbacks_reloc_overflow,
  6026. link_callbacks_reloc_dangerous,
  6027. link_callbacks_unattached_reloc): Return void.
  6028. 2016-05-27 Andrew Burgess <andrew.burgess@embecosm.com>
  6029. * opencl-lang.c (evaluate_subexp_opencl): If
  6030. EVAL_AVOID_SIDE_EFFECTS mode, forward the VALUE_LVAL attribute to
  6031. the returned value in the STRUCTOP_STRUCT case.
  6032. 2016-05-27 Andrew Burgess <andrew.burgess@embecosm.com>
  6033. * eval.c (evaluate_subexp_standard): If EVAL_AVOID_SIDE_EFFECTS
  6034. mode, forward the VALUE_LVAL attribute to the returned value in
  6035. the STRUCTOP_PTR case.
  6036. 2016-05-25 Tom Tromey <tom@tromey.com>
  6037. * python/py-value.c (value_object_as_number): Use correct spelling
  6038. of HAVE_LIBPYTHON2_4.
  6039. 2016-05-25 Bernhard Heckel <bernhard.heckel@intel.com>
  6040. * f-typeprint.c (f_type_print_base): Replace 0 by show.
  6041. 2016-05-25 Bernhard Heckel <bernhard.heckel@intel.com>
  6042. * f-typeprint.c (f_type_print_base): Decrease show by one.
  6043. 2016-05-25 Bernhard Heckel <bernhard.heckel@intel.com>
  6044. * f-typeprint.c (f_type_print_base): Don't print fields when show < 0.
  6045. 2016-05-25 Bernhard Heckel <bernhard.heckel@intel.com>
  6046. * f-typeprint.c (f_type_print_base): Take print level into account.
  6047. 2016-05-24 Tom Tromey <tom@tromey.com>
  6048. PR python/17386:
  6049. * python/py-value.c (value_object_as_number): Add
  6050. nb_inplace_floor_divide, nb_inplace_true_divide, nb_index.
  6051. 2016-05-24 Tom Tromey <tom@tromey.com>
  6052. * python/py-value.c (value_object_as_number): Add
  6053. nb_inplace_divide for Python 2.
  6054. 2016-05-23 Tom Tromey <tom@tromey.com>
  6055. PR python/17981:
  6056. * python/py-breakpoint.c (gdbpy_breakpoints): Return a new tuple
  6057. when there are no breakpoints.
  6058. 2016-05-24 Pedro Alves <palves@redhat.com>
  6059. PR gdb/19828
  6060. * linux-nat.c (attach_proc_task_lwp_callback): Mark the lwp
  6061. resumed, and add the thread to GDB's thread list.
  6062. 2016-05-24 Pedro Alves <palves@redhat.com>
  6063. PR gdb/19828
  6064. * linux-nat.c (get_pending_status): If the thread reported the
  6065. event to the core and it's pending, use the pending status signal
  6066. number.
  6067. 2016-05-24 Pedro Alves <palves@redhat.com>
  6068. PR gdb/19828
  6069. * linux-nat.c (lwp_lwpid_htab): New htab.
  6070. (lwp_info_hash, lwp_lwpid_htab_eq, lwp_lwpid_htab_create)
  6071. (lwp_lwpid_htab_add_lwp): New functions.
  6072. (lwp_list): Tweak comment.
  6073. (lwp_list_add, lwp_list_remove, lwp_lwpid_htab_remove_pid): New
  6074. functions.
  6075. (purge_lwp_list): Rewrite, using htab_traverse_noresize.
  6076. (add_initial_lwp): Add lwp to htab too. Use lwp_list_add.
  6077. (delete_lwp): Use lwp_list_remove. Remove htab too.
  6078. (find_lwp_pid): Search in htab.
  6079. (_initialize_linux_nat): Call lwp_lwpid_htab_create.
  6080. * linux-nat.h (struct lwp_info) <prev>: New field.
  6081. 2016-05-24 Pedro Alves <palves@redhat.com>
  6082. PR gdb/19828
  6083. * linux-nat.c (lwp_lwpid_htab): New htab.
  6084. (lwp_info_hash, lwp_lwpid_htab_eq, lwp_lwpid_htab_create)
  6085. (lwp_lwpid_htab_add_lwp): New functions.
  6086. (lwp_list): Tweak comment.
  6087. (lwp_list_add, lwp_list_remove, lwp_lwpid_htab_remove_pid): New
  6088. functions.
  6089. (purge_lwp_list): Rewrite, using htab_traverse_noresize.
  6090. (add_initial_lwp): Add lwp to htab too. Use lwp_list_add.
  6091. (delete_lwp): Use lwp_list_remove. Remove htab too.
  6092. (find_lwp_pid): Search in htab.
  6093. (_initialize_linux_nat): Call lwp_lwpid_htab_create.
  6094. * linux-nat.h (struct lwp_info) <prev>: New field.
  6095. 2016-05-24 Pedro Alves <palves@redhat.com>
  6096. PR gdb/19828
  6097. * linux-nat.c (linux_resume_one_lwp_throw): Clear the LWP's core
  6098. field.
  6099. (linux_nat_update_thread_list): Don't fetch the core if already
  6100. known.
  6101. 2016-05-24 Pedro Alves <palves@redhat.com>
  6102. PR gdb/19828
  6103. * linux-tdep.c (find_mapping_size): Delete.
  6104. (linux_vsyscall_range_raw): Rewrite reading from
  6105. /proc/PID/task/PID/maps directly instead of using
  6106. gdbarch_find_memory_regions.
  6107. 2016-05-24 Pedro Alves <palves@redhat.com>
  6108. PR gdb/19828
  6109. * linux-nat.c (report_thread_events): New global.
  6110. (linux_handle_extended_wait): Report
  6111. TARGET_WAITKIND_THREAD_CREATED if thread event reporting is
  6112. enabled.
  6113. (wait_lwp, linux_nat_filter_event): Report all thread exits if
  6114. thread event reporting is enabled. Remove comment.
  6115. (filter_exit_event): New function.
  6116. (linux_nat_wait_1): Use it.
  6117. (linux_nat_thread_events): New function.
  6118. (linux_nat_add_target): Install it as target_thread_events method.
  6119. 2016-05-24 Yan-Ting Lin <currygt52@gmail.com>
  6120. * MAINTAINERS (Write After Approval): Add "Yan-Ting Lin".
  6121. 2016-05-23 Yao Qi <yao.qi@arm.com>
  6122. * arch-utils.c (default_code_of_frame_writable): New function.
  6123. * arch-utils.h (default_code_of_frame_writable): Declare.
  6124. * arm-tdep.c (arm_code_of_frame_writable): New function.
  6125. (arm_gdbarch_init): Install gdbarch method
  6126. code_of_frame_writable if the target is M-profile.
  6127. * frame.c (skip_unwritable_frames): New function.
  6128. * frame.h (skip_unwritable_frames): Declare.
  6129. * gdbarch.sh (code_of_frame_writable): New.
  6130. * gdbarch.c, gdbarch.h: Re-generated.
  6131. * infcmd.c (finish_command): Call skip_unwritable_frames.
  6132. 2016-05-23 Tom Tromey <tom@tromey.com>
  6133. PR python/19438, PR python/18393:
  6134. * python/py-objfile.c (objfpy_initialize): Initialize self->dict.
  6135. * python/py-progspace.c (pspy_initialize): Initialize self->dict.
  6136. 2016-05-23 Gary Benson <gbenson@redhat.com>
  6137. * nat/gdb_thread_db.h (td_thr_validate_ftype): Remove typedef.
  6138. * linux-thread-db.c (struct thread_db_info) <td_thr_validate_p>:
  6139. Remove field.
  6140. (try_thread_db_load_1): Remove td_thr_validate initialization.
  6141. 2016-05-23 Jon Boden <jon@ubuntubsd.org> (tiny change)
  6142. * configure.ac: Search for libutil-freebsd as alternative to libutil.
  6143. * configure: Re-generated.
  6144. 2016-05-19 Andreas Schwab <schwab@suse.de>
  6145. * ia64-libunwind-tdep.c (libunwind_descr): Add cast from void *.
  6146. (libunwind_frame_set_descr): Likewise.
  6147. (libunwind_frame_cache): Likewise.
  6148. (libunwind_frame_dealloc_cache): Likewise.
  6149. (libunwind_frame_sniffer): Likewise.
  6150. (libunwind_search_unwind_table): Likewise.
  6151. (libunwind_sigtramp_frame_sniffer): Likewise.
  6152. (libunwind_get_reg_special): Likewise.
  6153. (libunwind_load): Likewise.
  6154. * ia64-linux-nat.c (ia64_linux_fetch_register): Likewise.
  6155. (ia64_linux_store_register): Likewise.
  6156. (ia64_linux_xfer_partial): Likewise.
  6157. * ia64-tdep.c (ia64_access_reg): Likewise.
  6158. (ia64_access_fpreg): Likewise.
  6159. (ia64_access_rse_reg): Likewise.
  6160. (ia64_access_rse_fpreg): Likewise.
  6161. 2016-05-18 Tom Tromey <tom@tromey.com>
  6162. * rust-lang.c (rust_subscript): Initialize "high".
  6163. 2016-05-17 Simon Marchi <simon.marchi@ericsson.com>
  6164. PR gdb/20045
  6165. * mi/mi-main.c (mi_on_resume): Call target_can_async_p instead
  6166. of target_is_async_p.
  6167. 2016-05-17 Simon Marchi <simon.marchi@ericsson.com>
  6168. PR gdb/18077
  6169. * mi/mi-main.c (run_one_inferior): Use run target to determine
  6170. whether to run async or not.
  6171. (mi_cmd_exec_run): Likewise.
  6172. 2016-05-17 Tom Tromey <tom@tromey.com>
  6173. * std-operator.def (OP_RANGE): Rename from OP_F90_RANGE.
  6174. * rust-lang.c: Don't include f-lang.h.
  6175. (rust_range, rust_compute_range, rust_subscript)
  6176. (rust_evaluate_subexp): Update.
  6177. * rust-exp.y: Don't include f-lang.h.
  6178. (ast_range, convert_ast_to_expression): Update.
  6179. * parse.c (operator_length_standard): Update.
  6180. * f-lang.h (enum f90_range_type): Move to expression.h.
  6181. * f-exp.y: Use OP_RANGE.
  6182. * expression.h (enum range_type): New enum; renamed from
  6183. f90_range_type.
  6184. * expprint.c: Don't include f-lang.h.
  6185. (print_subexp_standard, dump_subexp_body_standard): Use OP_RANGE.
  6186. * eval.c (value_f90_subarray, evaluate_subexp_standard): Update.
  6187. 2016-05-17 Tom Tromey <tom@tromey.com>
  6188. * NEWS: Add Rust item.
  6189. 2016-05-17 Tom Tromey <tom@tromey.com>
  6190. Manish Goregaokar <manishsmail@gmail.com>
  6191. * symtab.c (symbol_find_demangled_name): Handle Rust.
  6192. * symfile.c (init_filename_language_table): Treat ".rs" as Rust.
  6193. * std-operator.def (STRUCTOP_ANONYMOUS, OP_RUST_ARRAY): New
  6194. constants.
  6195. * rust-lang.h: New file.
  6196. * rust-lang.c: New file.
  6197. * rust-exp.y: New file.
  6198. * dwarf2read.c (read_file_scope): Add Rust producer sniffing.
  6199. (dwarf2_compute_name, read_func_scope, read_structure_type)
  6200. (read_base_type, read_subrange_type, set_cu_language)
  6201. (new_symbol_full, determine_prefix): Handle Rust.
  6202. * defs.h (enum language) <language_rust>: New constant.
  6203. * Makefile.in (SFILES): Add rust-exp.y, rust-lang.c.
  6204. (COMMON_OBS): Add rust-exp.o, rust-lang.o.
  6205. 2016-05-17 Tom Tromey <tom@tromey.com>
  6206. * valprint.h (struct generic_val_print_array) <array_start,
  6207. array_end>: New fields.
  6208. * valprint.c (generic_val_print_array): Add "decorations"
  6209. parameter. Use "array_start", "array_end".
  6210. (generic_val_print) <TYPE_CODE_ARRAY>: Update.
  6211. * p-valprint.c (p_decorations): Update.
  6212. * m2-valprint.c (m2_decorations): Update.
  6213. * f-valprint.c (f_decorations): Update.
  6214. * c-valprint.c (c_decorations): Update.
  6215. 2016-05-17 Tom Tromey <tom@tromey.com>
  6216. * NEWS: Add "maint selftest" entry.
  6217. * selftest.h: New file.
  6218. * selftest.c: New file.
  6219. * maint.c: Include selftest.h.
  6220. (maintenance_selftest): New function.
  6221. (_initialize_maint_cmds): Add "maint selftest" command.
  6222. * configure.ac (GDB_SELF_TEST): Maybe define.
  6223. * config.in, configure: Rebuild.
  6224. * Makefile.in (SFILES): Add selftest.c.
  6225. (COMMON_OBS): Add selftest.o.
  6226. 2016-05-17 Tom Tromey <tom@tromey.com>
  6227. * expprint.c: Include f-lang.h.
  6228. (print_subexp_standard, dump_subexp_body_standard): Handle
  6229. OP_F90_RANGE.
  6230. 2016-05-17 Tom Tromey <tom@tromey.com>
  6231. * Makefile.in (init.c): Search .y files for initialization
  6232. functions.
  6233. 2016-05-12 Doug Evans <dje@google.com>
  6234. PR symtab/19999
  6235. * dwarf2loc.c (dwarf2_find_location_expression): For DWO files still
  6236. add base_offset.
  6237. 2016-05-10 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
  6238. * iq2000-tdep.c (iq2000_scan_prologue): Remove if that shouldn't guard
  6239. anything.
  6240. * linespec.c (add_sal_to_sals): Restore call to symtab_to_fullname.
  6241. 2016-05-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
  6242. * arm-tdep.c (arm_elf_make_msymbol_special): Use
  6243. ARM_GET_SYM_BRANCH_TYPE to get branch type of a symbol.
  6244. 2016-05-07 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
  6245. * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Remove unused
  6246. variables.
  6247. * aarch64-tdep.c (aarch64_skip_prologue): Likewise.
  6248. (aarch64_scan_prologue): Likewise.
  6249. (aarch64_prologue_prev_register): Likewise.
  6250. (aarch64_dwarf2_prev_register): Likewise.
  6251. (pass_in_v): Likewise.
  6252. (aarch64_push_dummy_call): Likewise.
  6253. (aarch64_breakpoint_from_pc): Likewise.
  6254. (aarch64_return_in_memory): Likewise.
  6255. (aarch64_return_value): Likewise.
  6256. (aarch64_displaced_step_b_cond): Likewise.
  6257. (aarch64_displaced_step_cb): Likewise.
  6258. (aarch64_displaced_step_tb): Likewise.
  6259. (aarch64_gdbarch_init): Likewise.
  6260. (aarch64_process_record): Likewise.
  6261. * alpha-mdebug-tdep.c (alpha_mdebug_init_abi): Likewise.
  6262. * alpha-tdep.c (_initialize_alpha_tdep): Likewise.
  6263. * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise.
  6264. * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Likewise.
  6265. * amd64-tdep.c (fixup_riprel): Likewise.
  6266. * amd64-windows-tdep.c (amd64_windows_frame_decode_epilogue): Likewise.
  6267. (amd64_windows_frame_decode_insns): Likewise.
  6268. (amd64_windows_frame_cache): Likewise.
  6269. (amd64_windows_frame_prev_register): Likewise.
  6270. (amd64_windows_frame_this_id): Likewise.
  6271. (amd64_windows_init_abi): Likewise.
  6272. * arm-linux-tdep.c (arm_linux_get_syscall_number): Likewise.
  6273. (arm_linux_get_next_pcs_syscall_next_pc): Likewise.
  6274. * arm-symbian-tdep.c (arm_symbian_init_abi): Likewise.
  6275. * arm-tdep.c (arm_make_epilogue_frame_cache): Likewise.
  6276. (arm_epilogue_frame_prev_register): Likewise.
  6277. (arm_record_vdata_transfer_insn): Likewise.
  6278. (arm_record_exreg_ld_st_insn): Likewise.
  6279. * auto-load.c (execute_script_contents): Likewise.
  6280. (print_scripts): Likewise.
  6281. * avr-tdep.c (avr_frame_prev_register): Likewise.
  6282. (avr_push_dummy_call): Likewise.
  6283. * bfin-linux-tdep.c (bfin_linux_sigframe_init): Likewise.
  6284. * bfin-tdep.c (bfin_gdbarch_init): Likewise.
  6285. * blockframe.c (find_pc_partial_function_gnu_ifunc): Likewise.
  6286. * break-catch-throw.c (fetch_probe_arguments): Likewise.
  6287. * breakpoint.c (breakpoint_xfer_memory): Likewise.
  6288. (breakpoint_init_inferior): Likewise.
  6289. (breakpoint_inserted_here_p): Likewise.
  6290. (software_breakpoint_inserted_here_p): Likewise.
  6291. (hardware_breakpoint_inserted_here_p): Likewise.
  6292. (bpstat_what): Likewise.
  6293. (break_range_command): Likewise.
  6294. (save_breakpoints): Likewise.
  6295. * coffread.c (coff_symfile_read): Likewise.
  6296. * cris-tdep.c (cris_push_dummy_call): Likewise.
  6297. (cris_scan_prologue): Likewise.
  6298. (cris_register_size): Likewise.
  6299. (_initialize_cris_tdep): Likewise.
  6300. * d-exp.y: Likewise.
  6301. * dbxread.c (dbx_read_symtab): Likewise.
  6302. (process_one_symbol): Likewise.
  6303. (coffstab_build_psymtabs): Likewise.
  6304. (elfstab_build_psymtabs): Likewise.
  6305. * dicos-tdep.c (dicos_init_abi): Likewise.
  6306. * disasm.c (do_mixed_source_and_assembly): Likewise.
  6307. (gdb_disassembly): Likewise.
  6308. * dtrace-probe.c (dtrace_process_dof): Likewise.
  6309. * dwarf2read.c (error_check_comp_unit_head): Likewise.
  6310. (build_type_psymtabs_1): Likewise.
  6311. (skip_one_die): Likewise.
  6312. (process_imported_unit_die): Likewise.
  6313. (dwarf2_physname): Likewise.
  6314. (read_file_scope): Likewise.
  6315. (setup_type_unit_groups): Likewise.
  6316. (create_dwo_cu_reader): Likewise.
  6317. (create_dwo_cu): Likewise.
  6318. (create_dwo_unit_in_dwp_v1): Likewise.
  6319. (create_dwo_unit_in_dwp_v2): Likewise.
  6320. (lookup_dwo_unit_in_dwp): Likewise.
  6321. (free_dwo_file): Likewise.
  6322. (check_producer): Likewise.
  6323. (dwarf2_add_typedef): Likewise.
  6324. (dwarf2_add_member_fn): Likewise.
  6325. (read_unsigned_leb128): Likewise.
  6326. (read_signed_leb128): Likewise.
  6327. (dwarf2_const_value): Likewise.
  6328. (follow_die_sig_1): Likewise.
  6329. (dwarf_decode_macro_bytes): Likewise.
  6330. * extension.c (restore_active_ext_lang): Likewise.
  6331. * frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Likewise.
  6332. * ft32-tdep.c (ft32_analyze_prologue): Likewise.
  6333. * gdbtypes.c (lookup_typename): Likewise.
  6334. (resolve_dynamic_range): Likewise.
  6335. (check_typedef): Likewise.
  6336. * h8300-tdep.c (h8300_is_argument_spill): Likewise.
  6337. (h8300_gdbarch_init): Likewise.
  6338. * hppa-tdep.c (hppa32_push_dummy_call): Likewise.
  6339. (hppa_frame_this_id): Likewise.
  6340. (_initialize_hppa_tdep): Likewise.
  6341. * hppanbsd-tdep.c (hppanbsd_sigtramp_cache_init): Likewise.
  6342. * hppaobsd-tdep.c (hppaobsd_supply_fpregset): Likewise.
  6343. * i386-dicos-tdep.c (i386_dicos_init_abi): Likewise.
  6344. * i386-tdep.c (i386_bnd_type): Likewise.
  6345. (i386_gdbarch_init): Likewise.
  6346. (i386_mpx_bd_base): Likewise.
  6347. * i386nbsd-tdep.c (i386nbsd_sigtramp_cache_init): Likewise.
  6348. * i386obsd-tdep.c (i386obsd_elf_init_abi): Likewise.
  6349. * ia64-tdep.c (examine_prologue): Likewise.
  6350. (ia64_frame_cache): Likewise.
  6351. (ia64_push_dummy_call): Likewise.
  6352. * infcmd.c (finish_command_fsm_async_reply_reason): Likewise.
  6353. (default_print_one_register_info): Likewise.
  6354. * infrun.c (infrun_thread_ptid_changed): Likewise.
  6355. (thread_still_needs_step_over): Likewise.
  6356. (stop_all_threads): Likewise.
  6357. (restart_threads): Likewise.
  6358. (keep_going_stepped_thread): Likewise.
  6359. * iq2000-tdep.c (iq2000_scan_prologue): Likewise.
  6360. * language.c (language_init_primitive_type_symbols): Likewise.
  6361. * linespec.c (add_sal_to_sals): Likewise.
  6362. * linux-nat.c (status_callback): Likewise.
  6363. (kill_unfollowed_fork_children): Likewise.
  6364. (linux_nat_kill): Likewise.
  6365. * linux-tdep.c (linux_fill_prpsinfo): Likewise.
  6366. * linux-thread-db.c (thread_db_notice_clone): Likewise.
  6367. (record_thread): Likewise.
  6368. * location.c (string_to_event_location_basic): Likewise.
  6369. * m32c-tdep.c (m32c_prev_register): Likewise.
  6370. * m32r-linux-tdep.c (m32r_linux_init_abi): Likewise.
  6371. * m32r-tdep.c (decode_prologue): Likewise.
  6372. * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
  6373. * machoread.c (macho_symtab_read): Likewise.
  6374. (macho_symfile_read): Likewise.
  6375. (macho_symfile_offsets): Likewise.
  6376. * maint.c (set_per_command_cmd): Likewise.
  6377. * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Likewise.
  6378. (mi_cmd_stack_list_variables): Likewise.
  6379. * mi/mi-main.c (mi_cmd_exec_run): Likewise.
  6380. (output_register): Likewise.
  6381. (mi_cmd_execute): Likewise.
  6382. (mi_cmd_trace_define_variable): Likewise.
  6383. (print_variable_or_computed): Likewise.
  6384. * minsyms.c (prim_record_minimal_symbol_full): Likewise.
  6385. * mn10300-tdep.c (mn10300_frame_prev_register): Likewise.
  6386. * msp430-tdep.c (msp430_pseudo_register_write): Likewise.
  6387. * mt-tdep.c (mt_registers_info): Likewise.
  6388. * nios2-tdep.c (nios2_analyze_prologue): Likewise.
  6389. (nios2_push_dummy_call): Likewise.
  6390. (nios2_frame_unwind_cache): Likewise.
  6391. (nios2_stub_frame_cache): Likewise.
  6392. (nios2_stub_frame_sniffer): Likewise.
  6393. (nios2_gdbarch_init): Likewise.
  6394. * ppc-ravenscar-thread.c: Likewise.
  6395. * ppcfbsd-tdep.c (ppcfbsd_sigtramp_frame_cache): Likewise.
  6396. * python/py-evts.c (add_new_registry): Likewise.
  6397. * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
  6398. (bpfinishpy_detect_out_scope_cb): Likewise.
  6399. * python/py-framefilter.c (py_print_value): Likewise.
  6400. * python/py-inferior.c (infpy_write_memory): Likewise.
  6401. * python/py-infevents.c (create_inferior_call_event_object): Likewise.
  6402. * python/py-infthread.c (thpy_get_ptid): Likewise.
  6403. * python/py-linetable.c (ltpy_get_pcs_for_line): Likewise.
  6404. (ltpy_get_all_source_lines): Likewise.
  6405. (ltpy_is_valid): Likewise.
  6406. (ltpy_iternext): Likewise.
  6407. * python/py-symtab.c (symtab_and_line_to_sal_object): Likewise.
  6408. * python/py-unwind.c (pyuw_object_attribute_to_pointer): Likewise.
  6409. (unwind_infopy_str): Likewise.
  6410. * python/py-varobj.c (py_varobj_get_iterator): Likewise.
  6411. * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
  6412. * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
  6413. * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
  6414. * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Likewise.
  6415. * s390-linux-tdep.c (s390_supply_tdb_regset): Likewise.
  6416. (s390_frame_prev_register): Likewise.
  6417. (s390_dwarf2_frame_init_reg): Likewise.
  6418. (s390_record_vr): Likewise.
  6419. (s390_process_record): Likewise.
  6420. * score-tdep.c (score_push_dummy_call): Likewise.
  6421. (score3_analyze_prologue): Likewise.
  6422. * sh-tdep.c (sh_extract_return_value_nofpu): Likewise.
  6423. * sh64-tdep.c (sh64_analyze_prologue): Likewise.
  6424. (sh64_push_dummy_call): Likewise.
  6425. (sh64_extract_return_value): Likewise.
  6426. (sh64_do_fp_register): Likewise.
  6427. * solib-aix.c (solib_aix_get_section_offsets): Likewise.
  6428. * solib-darwin.c (darwin_read_exec_load_addr_from_dyld): Likewise.
  6429. (darwin_solib_read_all_image_info_addr): Likewise.
  6430. * solib-dsbt.c (enable_break): Likewise.
  6431. * solib-frv.c (enable_break2): Likewise.
  6432. (frv_fdpic_find_canonical_descriptor): Likewise.
  6433. * solib-svr4.c (svr4_handle_solib_event): Likewise.
  6434. * sparc-tdep.c (sparc_skip_stack_check): Likewise.
  6435. * sparc64-linux-tdep.c (sparc64_linux_get_longjmp_target): Likewise.
  6436. * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
  6437. * spu-tdep.c (info_spu_dma_cmdlist): Likewise.
  6438. * stack.c (read_frame_local): Likewise.
  6439. * symfile.c (symbol_file_add_separate): Likewise.
  6440. (remove_symbol_file_command): Likewise.
  6441. * symmisc.c (maintenance_print_one_line_table): Likewise.
  6442. * symtab.c (symbol_cache_flush): Likewise.
  6443. (basic_lookup_transparent_type): Likewise.
  6444. (sort_search_symbols_remove_dups): Likewise.
  6445. * target.c (target_memory_map): Likewise.
  6446. (target_detach): Likewise.
  6447. (target_resume): Likewise.
  6448. (acquire_fileio_fd): Likewise.
  6449. (target_store_registers): Likewise.
  6450. * thread.c (print_thread_info_1): Likewise.
  6451. * tic6x-tdep.c (tic6x_analyze_prologue): Likewise.
  6452. * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Likewise.
  6453. * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
  6454. (tilegx_analyze_prologue): Likewise.
  6455. (tilegx_stack_frame_destroyed_p): Likewise.
  6456. (tilegx_frame_cache): Likewise.
  6457. * tracefile.c (trace_save): Likewise.
  6458. * tracepoint.c (encode_actions_and_make_cleanup): Likewise.
  6459. (start_tracing): Likewise.
  6460. (print_one_static_tracepoint_marker): Likewise.
  6461. * tui/tui.c (tui_enable): Likewise.
  6462. * valops.c (value_struct_elt_bitpos): Likewise.
  6463. (find_overload_match): Likewise.
  6464. (find_oload_champ): Likewise.
  6465. * value.c (value_contents_copy_raw): Likewise.
  6466. * windows-tdep.c (windows_get_tlb_type): Likewise.
  6467. * x86-linux-nat.c (x86_linux_enable_btrace): Likewise.
  6468. * xcoffread.c (record_minimal_symbol): Likewise.
  6469. (scan_xcoff_symtab): Likewise.
  6470. * xtensa-tdep.c (execute_code): Likewise.
  6471. (xtensa_gdbarch_init): Likewise.
  6472. (_initialize_xtensa_tdep): Likewise.
  6473. 2016-05-04 Ulrich Weigand <uweigand@de.ibm.com>
  6474. * spu-linux-nat.c (spu_bfd_iovec_pread): Add pointer cast for C++.
  6475. (spu_bfd_open): Likewise.
  6476. 2016-05-04 Yao Qi <yao.qi@linaro.org>
  6477. PR gdb/19947
  6478. * corefile.c (read_memory): Rename it to ...
  6479. (read_memory_object): ... it. Add parameter object.
  6480. (read_memory): Call read_memory_object.
  6481. (read_stack): Likewise.
  6482. (read_code): Likewise.
  6483. 2016-05-03 Yunlian Jiang <yunlian@google.com>
  6484. Doug Evans <dje@google.com>
  6485. PR symtab/19914
  6486. * dwarf2read.c (open_and_init_dwp_file): Look at backlink if objfile
  6487. is separate debug file.
  6488. 2016-05-03 Don Breazeal <donb@codesourcery.com>
  6489. * serial.h (gdb_pipe): Fix argument names in comment.
  6490. 2016-05-03 Pedro Alves <palves@redhat.com>
  6491. PR python/20037
  6492. * python/python.c (_initialize_python) [IS_PY3K]: xstrdup/xfree
  6493. oldloc.
  6494. 2016-05-03 Pedro Alves <palves@redhat.com>
  6495. * python/python.c (_initialize_python) [IS_PY3K]: Remove dead
  6496. code.
  6497. 2016-05-03 Pedro Alves <palves@redhat.com>
  6498. * configure.ac (PYTHON_LIBS): Sed away "-Xlinker -export-dynamic".
  6499. * configure: Regenerate.
  6500. 2016-05-03 Pedro Alves <palves@redhat.com>
  6501. * configure.ac (checking for the dynamic export flag): Add
  6502. $PYTHON_CPPFLAGS to CPPFLAGS.
  6503. * configure: Regenerate.
  6504. 2016-05-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
  6505. * symfile.c (find_pc_overlay): Add braces to avoid -Wparentheses
  6506. warning.
  6507. (find_pc_mapped_section): Likewise.
  6508. (list_overlays_command): Likewise.
  6509. 2016-05-02 Eli Zaretskii <eliz@gnu.org>
  6510. * windows-nat.c (_initialize_check_for_gdb_ini): Fix off-by-one
  6511. error in allocation of space for "$HOME/.gdbinit" string. This
  6512. caused GDB to abort on startup whenever a '~/gdb.ini' file was
  6513. actually found, because xsnprintf would hit an assertion
  6514. violation.
  6515. 2016-04-28 Simon Marchi <simon.marchi@ericsson.com>
  6516. * cli/cli-decode.c (help_cmd_list): Do not list commands that
  6517. are deprecated.
  6518. 2016-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
  6519. * remote.c (remote_start_remote): Detect PACKET_vFile_setfs.support.
  6520. 2016-04-27 Martin Galvan <martin.galvan@tallertechnologies.com>
  6521. * c-valprint.c (c_value_print): Always convert val back to reference
  6522. type if we converted it to a pointer type.
  6523. 2016-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
  6524. * configure.ac: Enhance configure check for babeltrace to reject
  6525. non-C++-enabled versions.
  6526. * configure: Regenerate.
  6527. 2016-04-26 Sanimir Agovic <sanimir.agovic@intel.com>
  6528. Keven Boell <keven.boell@intel.com>
  6529. Bernhard Heckel <bernhard.heckel@intel.com>
  6530. * f-valprint.c (f77_create_arrayprint_offset_tbl): Remove
  6531. function.
  6532. (F77_DIM_SIZE, F77_DIM_OFFSET): Remove macro.
  6533. (f77_print_array_1): Use value_subscript to subscript a
  6534. value array.
  6535. (f77_print_array): Remove call to f77_create_arrayprint_offset_tbl.
  6536. (f_val_print): Use value_field to construct a field value.
  6537. 2016-04-26 Bernhard Heckel <bernhard.heckel@intel.com>
  6538. * valarith.c (value_address): Resolve dynamic types.
  6539. 2016-04-26 Bernhard Heckel <bernhard.heckel@intel.com>
  6540. Keven Boell <kevel.boell@intel.com>
  6541. * NEWS: Add new supported features for fortran.
  6542. * gdbtypes.c (remove_dyn_prop): New.
  6543. (resolve_dynamic_struct): Keep type length for fortran structs.
  6544. * gdbtypes.h: Forward declaration of new function.
  6545. * value.c (value_address): Return dynamic resolved location of a value.
  6546. (set_value_component_location): Adjust the value address
  6547. for single value prints.
  6548. (value_primitive_field): Support value types with a dynamic location.
  6549. (set_internalvar): Remove dynamic location property of
  6550. internal variables.
  6551. 2016-04-25 Pedro Alves <palves@redhat.com>
  6552. Yao Qi <yao.qi@linaro.org>
  6553. * mem-break.c (set_raw_breakpoint_at): Create a raw breakpoint
  6554. object. Insert it if it is not inserted yet. Increase the
  6555. refcount and link it into the proc's raw breakpoint list.
  6556. 2016-04-25 Yao Qi <yao.qi@linaro.org>
  6557. * breakpoint.c (should_be_inserted): Return 0 if the location's
  6558. owner is not single step breakpoint or single step breakpoint's
  6559. thread isn't the thread which is stepping past a breakpoint.
  6560. * gdbarch.sh (software_single_step): Update comments.
  6561. * gdbarch.h: Regenerated.
  6562. * infrun.c (struct step_over_info) <thread>: New field.
  6563. (set_step_over_info): New argument 'thread'. Callers updated.
  6564. (clear_step_over_info): Set field thread to -1.
  6565. (thread_is_stepping_over_breakpoint): New function.
  6566. * infrun.h (thread_is_stepping_over_breakpoint): Declaration.
  6567. 2016-04-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
  6568. * ppc-linux-nat.c (ppc_linux_read_description): Use PPC_FEATURE_HAS_VSX
  6569. and PPC_FEATURE_HAS_ALTIVEC to check if such features are available.
  6570. 2016-04-22 Yao Qi <yao.qi@linaro.org>
  6571. * valops.c (read_value_memory): New local variable 'stack'.
  6572. Set it to either TARGET_OBJECT_STACK_MEMORY or
  6573. TARGET_OBJECT_MEMORY.
  6574. 2016-04-22 Pedro Alves <palves@redhat.com>
  6575. * ada-exp.y: Remove all yy symbol remappings.
  6576. (GDB_YY_REMAP_PREFIX): Define.
  6577. Include "yy-remap.h".
  6578. * ada-lang.c (ada_language_defn): Adjust.
  6579. * ada-lang.h (ada_error): Rename to ...
  6580. (ada_yyerror): ... this.
  6581. * c-exp.y: Remove all yy symbol remappings.
  6582. (GDB_YY_REMAP_PREFIX): Define.
  6583. Include "yy-remap.h".
  6584. * c-lang.c (c_language_defn, cplus_language_defn)
  6585. (asm_language_defn, minimal_language_defn): Adjust.
  6586. * c-lang.h (c_error): Rename to ...
  6587. (c_yyerror): ... this.
  6588. * d-exp.y: Remove all yy symbol remappings.
  6589. (GDB_YY_REMAP_PREFIX): Define.
  6590. Include "yy-remap.h".
  6591. * d-lang.c (d_language_defn): Adjust.
  6592. * d-lang.h (d_error): Rename to ...
  6593. (d_yyerror): ... this.
  6594. * f-exp.y: Remove all yy symbol remappings.
  6595. (GDB_YY_REMAP_PREFIX): Define.
  6596. Include "yy-remap.h".
  6597. * f-lang.c (f_language_defn): Adjust.
  6598. * f-lang.h (f_error): Rename to ...
  6599. (f_yyerror): ... this.
  6600. * go-exp.y: Remove all yy symbol remappings.
  6601. (GDB_YY_REMAP_PREFIX): Define.
  6602. Include "yy-remap.h".
  6603. * go-lang.c (go_language_defn): Adjust.
  6604. * go-lang.h (go_error): Rename to ...
  6605. (go_yyerror): ... this.
  6606. * jv-exp.y: Remove all yy symbol remappings.
  6607. (GDB_YY_REMAP_PREFIX): Define.
  6608. Include "yy-remap.h".
  6609. * jv-lang.c (java_language_defn): Adjust.
  6610. * jv-lang.h (java_error): Rename to ...
  6611. (java_yyerror): ... this.
  6612. * m2-exp.y: Remove all yy symbol remappings.
  6613. (GDB_YY_REMAP_PREFIX): Define.
  6614. Include "yy-remap.h".
  6615. * m2-lang.c (m2_language_defn): Adjust.
  6616. * m2-lang.h (m2_error): Rename to ...
  6617. (m2_yyerror): ... this.
  6618. * objc-exp.y: Remove all yy symbol remappings.
  6619. (GDB_YY_REMAP_PREFIX): Define.
  6620. Include "yy-remap.h".
  6621. * objc-lang.c (objc_language_defn): Adjust.
  6622. * opencl-lang.c (opencl_language_defn): Adjust.
  6623. * p-exp.y: Remove all yy symbol remappings.
  6624. (GDB_YY_REMAP_PREFIX): Define.
  6625. Include "yy-remap.h".
  6626. * p-lang.c (pascal_language_defn): Adjust.
  6627. * p-lang.h (pascal_error): Rename to ...
  6628. (pascal_yyerror): ... this.
  6629. * yy-remap.h: New file.
  6630. 2016-04-22 Pedro Alves <palves@redhat.com>
  6631. * common/common-exceptions.h (GDB_XCPT_TRY): Remove mention of
  6632. the foreign frames issue.
  6633. [__cplusplus] (GDB_XCPT): Define as GDB_XCPT_TRY.
  6634. 2016-04-22 Pedro Alves <palves@redhat.com>
  6635. * common/common-exceptions.c (enum catcher_state, struct catcher)
  6636. (current_catcher): Define in C++ mode too.
  6637. (exceptions_state_mc_catch): Call throw_exception_sjlj instead of
  6638. throw_exception.
  6639. (throw_exception_sjlj, throw_exception_cxx): New functions,
  6640. factored out from throw_exception.
  6641. (throw_exception): Reimplement.
  6642. * common/common-exceptions.h (exceptions_state_mc_init)
  6643. (exceptions_state_mc_action_iter)
  6644. (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
  6645. Declare in C++ mode too.
  6646. (TRY): Rename to ...
  6647. (TRY_SJLJ): ... this.
  6648. (CATCH): Rename to ...
  6649. (CATCH_SJLJ): ... this.
  6650. (END_CATCH): Rename to ...
  6651. (END_CATCH_SJLJ): ... this.
  6652. [GDB_XCPT == GDB_XCPT_SJMP] (TRY, CATCH, END_CATCH): Map to SJLJ
  6653. equivalents.
  6654. (throw_exception): Update comments.
  6655. (throw_exception_sjlj): Declare.
  6656. * event-top.c (gdb_rl_callback_read_char_wrapper): Extend intro
  6657. comment. Wrap body in TRY_SJLJ/CATCH_SJLJ and rethrow any
  6658. intercepted exception.
  6659. (gdb_rl_callback_handler): New function.
  6660. (gdb_rl_callback_handler_install): Always install
  6661. gdb_rl_callback_handler as readline callback.
  6662. 2016-04-22 Pedro Alves <palves@redhat.com>
  6663. * event-top.c (rl_callback_read_char_wrapper): Rename to ...
  6664. (gdb_rl_callback_read_char_wrapper): ... this.
  6665. (change_line_handler, gdb_setup_readline): Adjust.
  6666. 2016-04-22 Yao Qi <yao.qi@linaro.org>
  6667. * aarch32-linux-nat.c (aarch32_gp_regcache_supply): Clear CPSR
  6668. bits 20 to 23.
  6669. 2016-04-22 Joel Brobecker <brobecker@adacore.com>
  6670. * MAINTAINER: Remove myself as AIX Maintainer.
  6671. 2016-04-22 Maciej W. Rozycki <macro@imgtec.com>
  6672. * mips-tdep.c (mips_gdbarch_init): For GDB_OSABI_LINUX set
  6673. `num_regs' to 90 rather than 79. Where a target description is
  6674. present adjust the setting appropriately.
  6675. 2016-04-21 Pedro Alves <palves@redhat.com>
  6676. * common/common-exceptions.h (GDB_XCPT_TRY): Add comment.
  6677. (GDB_XCPT): Always define as GDB_XCPT_SJMP.
  6678. 2016-04-21 Pedro Alves <palves@redhat.com>
  6679. * aix-thread.c (pdc_read_data, pdc_write_data): Add cast.
  6680. (aix_thread_resume): Use PTRACE_TYPE_ARG5.
  6681. * rs6000-nat.c (rs6000_ptrace64): Use PTRACE_TYPE_ARG5.
  6682. (rs6000_ptrace_ldinfo): Change type of 'ldi' local to void
  6683. pointer, and cast return to gdb_byte pointer.
  6684. 2016-04-21 Pedro Alves <palves@redhat.com>
  6685. * s390-linux-nat.c (fetch_regset, store_regset, check_regset): Use
  6686. void * instead of gdb_byte *.
  6687. 2016-04-21 Pedro Alves <palves@redhat.com>
  6688. * dwarf2read.c (try_open_dwop_file, open_dwo_file)
  6689. (file_file_name, file_full_name): Add char * cast to sentinel in
  6690. concat/reconcat calls.
  6691. * event-top.c (top_level_prompt): Likewise.
  6692. * guile/guile.c (initialize_scheme_side): Likewise.
  6693. * linux-tdep.c (linux_fill_prpsinfo): Likewise.
  6694. * macrotab.c (macro_source_fullname): Likewise.
  6695. * main.c (get_init_files, captured_main): Likewise.
  6696. * psymtab.c (psymtab_to_fullname): Likewise.
  6697. * python/python.c (_initialize_python)
  6698. (gdbpy_finish_initialization): Likewise.
  6699. * source.c (symtab_to_fullname): Likewise.
  6700. 2016-04-20 Pedro Alves <palves@redhat.com>
  6701. * build-with-cxx.m4 (GDB_AC_BUILD_WITH_CXX): Default to yes.
  6702. * configure: Renegerate.
  6703. 2016-04-20 Pedro Alves <palves@redhat.com>
  6704. * darwin-nat.c (darwin_decode_message): Use gdb_signal_from_host.
  6705. 2016-04-20 Pedro Alves <palves@redhat.com>
  6706. * aarch64-tdep.c (aarch64_record_load_store): Change type of
  6707. 'reg_rm_val' local to ULONGEST.
  6708. 2016-04-20 Pedro Alves <palves@redhat.com>
  6709. * darwin-nat.c (darwin_resume_thread): Add uintptr_t cast.
  6710. 2016-04-20 Doug Evans <xdje42@gmail.com>
  6711. * symmisc.c (dump_symtab_1): Print owning compunit for identical
  6712. blockvectors.
  6713. 2016-04-20 Yao Qi <yao.qi@linaro.org>
  6714. * aarch32-linux-nat.c: Include "arch/arm-linux.h".
  6715. 2016-04-20 Yao Qi <yao.qi@linaro.org>
  6716. * arm-linux-tdep.h (ARM_CPSR_GREGNUM): Move it to ...
  6717. * arch/arm-linux.h: ... here.
  6718. 2016-04-19 John Baldwin <jhb@FreeBSD.org>
  6719. * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Change xstateregs
  6720. to void *.
  6721. (amd64bsd_store_inferior_registers): Likewise.
  6722. * fbsd-nat.c (resume_one_thread_cb): Explicitly cast data to ptid_t *.
  6723. (resume_all_threads_cb): Likewise.
  6724. * i386bsd-nat.c (i386bsd_supply_gregset): Cast gregs to char *.
  6725. (i386bsd_collect_gregset): Likewise.
  6726. (i386bsd_fetch_inferior_registers): Change xstateregs to void *.
  6727. (i386bsd_store_inferior_registers): Likewise.
  6728. 2016-04-19 John Baldwin <jhb@FreeBSD.org>
  6729. * main.c (setup_alternate_signal_stack): Cast to char *.
  6730. 2016-04-19 Doug Evans <xdje42@gmail.com>
  6731. * symmisc.c (dump_symtab_1, dump_symtab): Delete arg objfile.
  6732. All callers updated.
  6733. 2016-04-19 Doug Evans <xdje42@gmail.com>
  6734. PR gdb/17911
  6735. * source.c (is_regular_file): New arg errno_ptr.
  6736. All callers updated.
  6737. 2016-04-19 Andreas Arnez <arnez@linux.vnet.ibm.com>
  6738. * linux-record.c (record_linux_system_call): Merge handling for
  6739. readlink/recv/read and pipe/pipe2.
  6740. 2016-04-14 Walfred Tedeschi <walfred.tedeschi@intel.com>
  6741. * features/i386/amd64-mpx-linux.xml: Remove AVX feature.
  6742. * features/i386/amd64-mpx.xml: Remove AVX feature.
  6743. * features/i386/i386-mpx-linux.xml: Remove AVX feature.
  6744. * features/i386/i386-mpx.xml: Remove AVX feature.
  6745. * features/i386/amd64-mpx-linux.c: Regenerate.
  6746. * features/i386/amd64-mpx.c: Regenerate.
  6747. * features/i386/i386-mpx-linux.c: Regenerate.
  6748. * features/i386/i386-mpx.c: Regenerate.
  6749. * regformats/i386/amd64-mpx-linux.dat: Regenerate.
  6750. * regformats/i386/amd64-mpx.dat: Regenerate.
  6751. * regformats/i386/i386-mpx-linux.dat: Regenerate.
  6752. * regformats/i386/i386-mpx.dat: Regenerate.
  6753. 2016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
  6754. * amd64-linux-tdep.c (features/i386/amd64-avx-mpx-linux.c):
  6755. New include.
  6756. (amd64_linux_core_read_description): Add case for
  6757. X86_XSTATE_AVX_MPX_MASK.
  6758. (_initialize_amd64_linux_tdep): Call initialize_tdesc_amd64_avx_mpx_linux.
  6759. * amd64-linux-tdep.h (tdesc_amd64_avx_mpx_linux): New definition.
  6760. * amd64-tdep.c (features/i386/amd64-avx-mpx.c): New include.
  6761. (amd64_target_description): Add case for X86_XSTATE_AVX_MPX_MASK.
  6762. (_initialize_amd64_tdep): Call initialize_tdesc_amd64_avx_mpx.
  6763. * common/x86-xstate.h (X86_XSTATE_MPX_MASK): Remove AVX bits.
  6764. (X86_XSTATE_AVX_MPX_MASK): New case.
  6765. * features/Makefile (i386/i386-avx-mpx, i386/i386-avx-mpx-linux)
  6766. (i386/amd64-avx-mpx, i386/amd64-avx-mpx-linux): New rules.
  6767. (i386/i386-avx-mpx-expedite, i386/i386-avx-mpx-linux-expedite)
  6768. (i386/amd64-avx-mpx-expedite, i386/amd64-avx-mpx-linux-expedite):
  6769. New expedites.
  6770. * i386-linux-tdep.c (features/i386/i386-avx-mpx-linux.c): New
  6771. include.
  6772. (i386_linux_core_read_description): Add case
  6773. X86_XSTATE_AVX_MPX_MASK.
  6774. (_initialize_i386_linux_tdep): Call
  6775. initialize_tdesc_i386_avx_mpx_linux.
  6776. * i386-linux-tdep.h (tdesc_i386_avx_mpx_linux): New include.
  6777. * i386-tdep.c (features/i386/i386-avx-mpx.c): New include.
  6778. (i386_target_description): Add case for X86_XSTATE_AVX_MPX_MASK.
  6779. * x86-linux-nat.c (x86_linux_read_description): Add case for
  6780. X86_XSTATE_AVX_MPX_MASK.
  6781. * features/i386/amd64-avx-mpx-linux.xml: New file.
  6782. * features/i386/i386-avx-mpx-linux.xml: New file.
  6783. * features/i386/i386-avx-mpx.xml: New file.
  6784. * features/i386/amd64-avx-mpx.xml: New file.
  6785. * features/i386/amd64-avx-mpx-linux.c: Generated.
  6786. * features/i386/amd64-avx-mpx.c: Generated.
  6787. * features/i386/i386-avx-mpx-linux.c: Generated.
  6788. * features/i386/i386-avx-mpx.c: Generated.
  6789. * regformats/i386/amd64-avx-mpx-linux.dat: Generated.
  6790. * regformats/i386/amd64-avx-mpx.dat: Generated.
  6791. * regformats/i386/i386-avx-mpx-linux.dat: Generated.
  6792. * regformats/i386/i386-avx-mpx.dat: Generated.
  6793. 2016-04-18 Pedro Alves <palves@redhat.com>
  6794. * ptrace.m4 (GDB_AC_PTRACE): Don't run tests in C++ mode.
  6795. * configure: Regenerate.
  6796. 2016-04-18 Martin Galvan <martin.galvan@tallertechnologies.com>
  6797. * valops.c (value_addr): For C++ references, set the copied value's
  6798. enclosing_type as well.
  6799. 2016-04-18 Yao Qi <yao.qi@linaro.org>
  6800. Revert:
  6801. 2016-04-15 Yao Qi <yao.qi@linaro.org>
  6802. * arm-tdep.c (thumb_stack_frame_destroyed_p): Return zero if
  6803. PC is far from the end of function.
  6804. 2016-04-16 Pedro Alves <palves@redhat.com>
  6805. * ada-exp.y (yydefred): Define as ada_yydefred.
  6806. 2016-04-15 Pedro Alves <palves@redhat.com>
  6807. * ada-lang.c (ada_lookup_struct_elt_type): Constify 'type_str' and
  6808. 'name_str' locals.
  6809. 2016-04-15 Pedro Alves <palves@redhat.com>
  6810. * btrace.c (pt_btrace_insn_flags): Change return type to
  6811. btrace_insn_flags. Use btrace_insn_flags for local.
  6812. 2016-04-15 Pedro Alves <palves@redhat.com>
  6813. * nat/linux-ptrace.h [__mips__] (GDB_ARCH_IS_TRAP_BRKPT): Also
  6814. accept TRAP_BRKPT.
  6815. [__mips__] (GDB_ARCH_IS_TRAP_HWBKPT): Also accept TRAP_HWBKPT.
  6816. 2016-04-15 Yao Qi <yao.qi@linaro.org>
  6817. * arm-tdep.c (thumb_stack_frame_destroyed_p): Return zero if
  6818. PC is far from the end of function.
  6819. 2016-04-14 Pedro Alves <palves@redhat.com>
  6820. * cli/cli-cmds.c (alias_usage_error): New function.
  6821. (alias_command): Use it.
  6822. * ctf.c (ctf_save_metadata_header): Inline metadata_fmt local in
  6823. ctf_save_write_metadata call.
  6824. 2016-04-14 Pedro Alves <palves@redhat.com>
  6825. * ada-typeprint.c (print_fixed_point_type): Don't pass float as
  6826. argument to function expecting LONGEST.
  6827. * value.c (unpack_long): Add casts to LONGEST.
  6828. 2016-04-13 Luis Machado <lgustavo@codesourcery.com>
  6829. * exec.c (exec_file_locate_attach): Guard a couple functions
  6830. that can throw errors.
  6831. (exception_print_same): New helper function.
  6832. 2016-04-13 Pedro Alves <palves@redhat.com>
  6833. PR remote/19840
  6834. * remote.c (struct remote_state) <last_resume_exec_dir>: New
  6835. field.
  6836. (new_remote_state): Default last_resume_exec_dir to EXEC_FORWARD.
  6837. (remote_open_1): Reset last_resume_exec_dir to EXEC_FORWARD.
  6838. (remote_resume): Store the last execution direction.
  6839. (remote_execution_direction): New function.
  6840. (init_remote_ops): Install it as to_execution_direction target_ops
  6841. method.
  6842. 2016-04-12 Pedro Alves <palves@redhat.com>
  6843. * common/common-exceptions.h (GDB_XCPT_TRY): Update comment.
  6844. [__cplusplus] (GDB_XCPT): Define as GDB_XCPT_TRY.
  6845. 2016-04-12 Pedro Alves <palves@redhat.com>
  6846. * common/common-exceptions.c (struct catcher) <buf>: Now a
  6847. 'jmp_buf' instead of SIGJMP_BUF.
  6848. (exceptions_state_mc_init): Change return type to 'jmp_buf'.
  6849. (throw_exception): Use longjmp instead of SIGLONGJMP.
  6850. * common/common-exceptions.h: Include <setjmp.h> instead of
  6851. "gdb_setjmp.h".
  6852. (exceptions_state_mc_init): Change return type to 'jmp_buf'.
  6853. [GDB_XCPT == GDB_XCPT_SJMP] (TRY): Use setjmp instead of
  6854. SIGSETJMP.
  6855. * cp-support.c: Include "gdb_setjmp.h".
  6856. 2016-04-12 Pedro Alves <palves@redhat.com>
  6857. * common/common-exceptions.c (exception_rethrow): Remove
  6858. prepare_to_throw_exception call.
  6859. * common/common-exceptions.h (prepare_to_throw_exception): Delete
  6860. declaration.
  6861. * exceptions.c (prepare_to_throw_exception): Delete.
  6862. 2016-04-12 Pedro Alves <palves@redhat.com>
  6863. * target.c (target_check_pending_interrupt): Delete.
  6864. * target.h (struct target_ops) <to_check_pending_interrupt>:
  6865. Remove method.
  6866. (target_check_pending_interrupt): Remove declaration.
  6867. * target-delegates.c: Regenerate.
  6868. 2016-04-12 Pedro Alves <palves@redhat.com>
  6869. * defs.h: Update comments on SIGINT handling.
  6870. (immediate_quit): Delete declaration.
  6871. * event-loop.c (call_async_signal_handler): Delete.
  6872. * event-loop.h (call_async_signal_handler): Delete declaration.
  6873. (mark_async_signal_handler): Update comments.
  6874. (gdb_call_async_signal_handler): Delete declaration.
  6875. * event-top.c (handle_sigint): Call mark_async_signal_handler
  6876. instead of gdb_call_async_signal_handler.
  6877. * exceptions.c (prepare_to_throw_exception): Remove reference to
  6878. immediate_quit.
  6879. (exception_fprintf): Remove comments about immediate_quit.
  6880. * mingw-hdep.c (sigint_event, sigint_handler): Delete.
  6881. (gdb_select): Don't wait on sigint_event.
  6882. (gdb_call_async_signal_handler): Delete.
  6883. (_initialize_mingw_hdep): Delete.
  6884. * posix-hdep.c (gdb_call_async_signal_handler): Delete.
  6885. * utils.c (immediate_quit): Delete.
  6886. 2016-04-12 Pedro Alves <palves@redhat.com>
  6887. * defs.h (quit_handler_ftype, quit_handler)
  6888. (make_cleanup_override_quit_handler, default_quit_handler): New.
  6889. (QUIT): Adjust comments.
  6890. * event-top.c (default_quit_handler): New function.
  6891. (quit_handler): New global.
  6892. (struct quit_handler_cleanup_data): New.
  6893. (restore_quit_handler, restore_quit_handler_dtor)
  6894. (make_cleanup_override_quit_handler): New.
  6895. (async_request_quit): Call QUIT.
  6896. * remote.c (struct remote_state) <got_ctrlc_during_io>: New field.
  6897. (async_sigint_remote_twice_token, async_sigint_remote_token):
  6898. Delete.
  6899. (remote_close): Update comments.
  6900. (remote_start_remote): Don't set immediate_quit. Set starting_up
  6901. earlier.
  6902. (remote_serial_quit_handler, remote_unpush_and_throw): New
  6903. functions.
  6904. (remote_open_1): Clear got_ctrlc_during_io. Set
  6905. remote_async_terminal_ours_p unconditionally.
  6906. (async_initialize_sigint_signal_handler)
  6907. (async_handle_remote_sigint, async_handle_remote_sigint_twice)
  6908. (remote_check_pending_interrupt, async_remote_interrupt)
  6909. (async_remote_interrupt_twice)
  6910. (async_cleanup_sigint_signal_handler, ofunc)
  6911. (sync_remote_interrupt, sync_remote_interrupt_twice): Delete.
  6912. (remote_terminal_inferior, remote_terminal_ours): Remove async
  6913. checks.
  6914. (remote_wait_as): Don't install a SIGINT handler in sync mode.
  6915. (readchar, remote_serial_write): Override the quit handler with
  6916. remote_serial_quit_handler.
  6917. (getpkt_or_notif_sane_1): Don't call QUIT.
  6918. (initialize_remote_ops): Don't install
  6919. remote_check_pending_interrupt.
  6920. (_initialize_remote): Don't create async_sigint_remote_token and
  6921. async_sigint_remote_twice_token.
  6922. * ser-base.c (ser_base_wait_for): Call QUIT and use
  6923. interruptible_select.
  6924. (ser_base_write): Call QUIT.
  6925. * ser-go32.c (dos_readchar, dos_write): Call QUIT.
  6926. * ser-unix.c (wait_for): Don't use VTIME. Always take the
  6927. gdb_select path, but call QUIT and interruptible_select.
  6928. * utils.c (maybe_quit): Call the current quit handler. Don't call
  6929. target_check_pending_interrupt.
  6930. (defaulted_query, prompt_for_continue): Override the quit handler
  6931. with the default quit handler.
  6932. 2016-04-12 Pedro Alves <palves@redhat.com>
  6933. * tui/tui-hooks.c (tui_target_has_run): Delete.
  6934. (tui_about_to_proceed): Delete.
  6935. (tui_about_to_proceed_observer): Delete.
  6936. (tui_install_hooks, tui_remove_hooks): Don't install/remove an
  6937. about_to_proceed observer.
  6938. 2016-04-12 Pedro Alves <palves@redhat.com>
  6939. * mi/mi-interp.c (mi_new_thread): Put
  6940. target_terminal_ours_for_output in effect while outputting.
  6941. (mi_thread_exit): Use target_terminal_ours_for_output instead of
  6942. target_terminal_ours.
  6943. (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
  6944. (mi_inferior_exit, mi_inferior_removed, mi_traceframe_changed)
  6945. (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
  6946. (mi_breakpoint_created, mi_breakpoint_deleted)
  6947. (mi_breakpoint_modified, mi_solib_loaded, mi_solib_unloaded)
  6948. (mi_command_param_changed, mi_memory_changed)
  6949. (report_initial_inferior): Use target_terminal_ours_for_output
  6950. instead of target_terminal_ours. Restore terminal settings.
  6951. * mi/mi-main.c (mi_execute_command): Use
  6952. target_terminal_ours_for_output instead of target_terminal_ours.
  6953. Restore terminal settings.
  6954. 2016-04-12 Pedro Alves <palves@redhat.com>
  6955. PR gdb/19828
  6956. * gnu-nat.c (inf_validate_task_sc): Don't call
  6957. target_terminal_ours / target_terminal_inferior around query.
  6958. * i386-tdep.c (i386_record_lea_modrm, i386_process_record): Don't
  6959. call target_terminal_ours / target_terminal_inferior around
  6960. yquery.
  6961. * linux-record.c (record_linux_system_call): Don't call
  6962. target_terminal_ours / target_terminal_inferior around yquery.
  6963. * nto-procfs.c (interrupt_query): Don't call target_terminal_ours
  6964. / target_terminal_inferior around query.
  6965. * record-full.c (record_full_check_insn_num): Remove
  6966. 'set_terminal' parameter. Don't call target_terminal_ours /
  6967. target_terminal_inferior around query.
  6968. (record_full_message, record_full_registers_change)
  6969. (record_full_xfer_partial): Adjust.
  6970. * remote.c (interrupt_query): Don't call target_terminal_ours /
  6971. target_terminal_inferior around query.
  6972. * utils.c (defaulted_query): Install cleanup to restore target
  6973. terminal. Put target_terminal_ours_for_output in effect while
  6974. defaulted producing, and target_terminal_ours in in effect while
  6975. handling input.
  6976. (prompt_for_continue): Install cleanup to restore target terminal.
  6977. Put target_terminal_ours in in effect while handling input.
  6978. 2016-04-12 Pedro Alves <palves@redhat.com>
  6979. * utils.c (defaulted_query, prompt_for_continue): Free temporary
  6980. strings with cleanups, instead of xfree.
  6981. 2016-04-12 Pedro Alves <palves@redhat.com>
  6982. * utils.c (vwarning, internal_vproblem): Use
  6983. make_cleanup_restore_target_terminal and
  6984. target_terminal_ours_for_output.
  6985. 2016-04-12 Pedro Alves <palves@redhat.com>
  6986. * infcmd.c (post_create_inferior, prepare_one_step): Use
  6987. target_terminal_ours_for_output instead of target_terminal_ours.
  6988. 2016-04-12 Pedro Alves <palves@redhat.com>
  6989. * exceptions.c (print_flush): Use target_terminal_ours_for_output
  6990. instead of target_terminal_ours, and restore target terminal with
  6991. a cleanup.
  6992. 2016-04-12 Pedro Alves <palves@redhat.com>
  6993. * cp-support.c (gdb_demangle): Use target_terminal_ours_for_output
  6994. instead of target_terminal_ours, and restore target terminal with
  6995. a cleanup.
  6996. 2016-04-12 Pedro Alves <palves@redhat.com>
  6997. * ada-lang.c (type_as_string, type_as_string_and_cleanup): New
  6998. functions.
  6999. (ada_lookup_struct_elt_type): Use type_as_string_and_cleanup.
  7000. 2016-04-12 Pedro Alves <palves@redhat.com>
  7001. * ser-base.c (fd_event): Retry read_prim on EINTR.
  7002. (do_ser_base_readchar): Retry read_prim on EINTR.
  7003. (ser_base_write): Retry write_prim on EINTR.
  7004. * ser-unix.c (ser_unix_read_prim): Don't retry on EINTR here.
  7005. (ser_unix_write_prim): Remove comment.
  7006. 2016-04-12 Pedro Alves <palves@redhat.com>
  7007. * remote.c (remote_pass_ctrlc): New function.
  7008. (init_remote_ops): Install it.
  7009. * target.c (target_terminal_inferior): Pass pending Ctrl-C to the
  7010. target.
  7011. (target_pass_ctrlc, default_target_pass_ctrlc): New functions.
  7012. * target.h (struct target_ops) <to_pass_ctrlc>: New method.
  7013. (target_pass_ctrlc, default_target_pass_ctrlc): New declarations.
  7014. * target-delegates.c: Regenerate.
  7015. 2016-04-12 Pedro Alves <palves@redhat.com>
  7016. * infcmd.c (interrupt_target_1): Call target_stop is in non-stop
  7017. mode.
  7018. * linux-nat.c (linux_nat_interrupt): Delete.
  7019. (linux_nat_add_target): Don't install linux_nat_interrupt.
  7020. * remote.c (remote_interrupt_ns): Change return type to void.
  7021. Throw error if interrupting the target is not supported.
  7022. (remote_interrupt): Don't call the remote_stop_ns/remote_stop_as.
  7023. 2016-04-12 Pedro Alves <palves@redhat.com>
  7024. * defs.h (clear_quit_flag): Remove declaration.
  7025. * extension-priv.h (struct extension_language_ops)
  7026. <clear_quit_flag>: Remove field and update comments.
  7027. * extension.c (clear_quit_flag): Delete.
  7028. * guile/guile.c (guile_extension_ops): Adjust.
  7029. * python/python.c (python_extension_ops): Adjust.
  7030. (gdbpy_clear_quit_flag): Delete.
  7031. 2016-04-12 Pedro Alves <palves@redhat.com>
  7032. * main.c (captured_main): Don't clear the quit flag.
  7033. 2016-04-12 Pedro Alves <palves@redhat.com>
  7034. * exceptions.c (prepare_to_throw_exception): Don't clear the quit
  7035. flag.
  7036. 2016-04-12 Pedro Alves <palves@redhat.com>
  7037. * event-top.c (command_handler): Don't call clear_quit_flag.
  7038. 2016-04-12 Pedro Alves <palves@redhat.com>
  7039. * remote-sim.c (gdb_os_poll_quit): Don't call clear_quit_flag.
  7040. * remote.c (remote_wait_as): Don't call clear_quit_flag.
  7041. 2016-04-12 Pedro Alves <palves@redhat.com>
  7042. * python/python.c: Include "ser-event.h".
  7043. (gdbpy_event_fds): Delete.
  7044. (gdbpy_serial_event): New.
  7045. (gdbpy_run_events): Change prototype. Use serial_event_clear
  7046. instead of serial_readchar.
  7047. (gdbpy_post_event): Use serial_event_set instead of serial_write.
  7048. (gdbpy_initialize_events): Use make_serial_event instead of
  7049. serial_pipe.
  7050. 2016-04-12 Pedro Alves <palves@redhat.com>
  7051. * defs.h: Extend QUIT-related comments to mention
  7052. interruptible_select.
  7053. (quit_serial_event_set, quit_serial_event_clear): Declare.
  7054. * event-top.c: Include "ser-event.h" and "gdb_select.h".
  7055. (quit_serial_event): New global.
  7056. (async_init_signals): Make quit_serial_event.
  7057. (quit_serial_event_set, quit_serial_event_clear)
  7058. (quit_serial_event_fd, interruptible_select): New functions.
  7059. * extension.c (set_quit_flag): Set the quit serial event.
  7060. (check_quit_flag): Clear the quit serial event.
  7061. * gdb_select.h (interruptible_select): New declaration.
  7062. * guile/scm-ports.c (ioscm_input_waiting): Use
  7063. interruptible_select instead of gdb_select.
  7064. * top.c (gdb_readline_no_editing): Likewise.
  7065. * ui-file.c (stdio_file_read): Likewise.
  7066. 2016-04-12 Pedro Alves <palves@redhat.com>
  7067. * event-loop.c: Include "ser-event.h".
  7068. (async_signal_handlers_serial_event): New global.
  7069. (async_signals_handler, initialize_async_signal_handlers): New
  7070. functions.
  7071. (mark_async_signal_handler): Set
  7072. async_signal_handlers_serial_event.
  7073. (invoke_async_signal_handlers): Clear
  7074. async_signal_handlers_serial_event.
  7075. * event-top.c (async_init_signals): Call
  7076. initialize_async_signal_handlers.
  7077. 2016-04-12 Pedro Alves <palves@redhat.com>
  7078. * Makefile.in (SFILES): Add ser-event.c.
  7079. (HFILES_NO_SRCDIR): Add ser-event.h.
  7080. (COMMON_OBS): Add ser-event.o.
  7081. * ser-event.c, ser-event.h: New files.
  7082. * serial.c (new_serial): New function, factored out from
  7083. (serial_fdopen_ops): ... this.
  7084. (serial_open_ops_1): New function, factored out from
  7085. (serial_open): ... this.
  7086. (serial_open_ops): New function.
  7087. * serial.h (struct serial): Forware declare.
  7088. (serial_open_ops): New declaration.
  7089. 2016-04-12 Pedro Alves <palves@redhat.com>
  7090. * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
  7091. Remove references to name.
  7092. * serial.h (struct serial) <name>: Delete.
  7093. 2016-04-12 Pedro Alves <palves@redhat.com>
  7094. * remote-fileio.c (sigint_fileio_token, remote_fio_no_longjmp):
  7095. Delete.
  7096. (async_remote_fileio_interrupt): Delete.
  7097. (remote_fileio_ctrl_c_signal_handler): Don't call the async signal
  7098. handler. Instead just always set the ctrl_c flag.
  7099. (remote_fileio_reply): Clear remote_fio_ctrl_c_flag before
  7100. re-enabling the SIGINT handler.
  7101. (remote_fileio_func_open, remote_fileio_func_close)
  7102. (remote_fileio_func_read, remote_fileio_func_write)
  7103. (remote_fileio_func_lseek, remote_fileio_func_rename)
  7104. (remote_fileio_func_unlink, remote_fileio_func_stat)
  7105. (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
  7106. (remote_fileio_func_isatty, remote_fileio_func_system)
  7107. (remote_fileio_request): Remove references to
  7108. remote_fio_no_longjmp.
  7109. (initialize_remote_fileio): Don't create an async signal handler.
  7110. 2016-04-12 Pedro Alves <palves@redhat.com>
  7111. * event-top.c (stdin_event_handler): Call QUIT;
  7112. (prompt_for_continue): Don't run with immediate_quit set.
  7113. 2016-04-12 Pedro Alves <palves@redhat.com>
  7114. * tui/tui-io.c (tui_redisplay_readline): Check
  7115. gdb_in_secondary_prompt_p instead of immediate_quit.
  7116. * tui/tui.c: Include top.h.
  7117. (tui_rl_startup_hook): Check gdb_in_secondary_prompt_p instead of
  7118. immediate_quit.
  7119. 2016-04-12 Pedro Alves <palves@redhat.com>
  7120. * top.c (read_command_file): Inline command_loop here.
  7121. (command_loop): Delete.
  7122. 2016-04-12 Pedro Alves <palves@redhat.com>
  7123. * top.c: Include "gdb_select.h".
  7124. (gdb_readline_no_editing): Wait for input with gdb_select instead
  7125. of blocking in fgetc.
  7126. (command_line_input): Don't set immediate_quit.
  7127. 2016-04-08 Martin Galvan <martin.galvan@tallertechnologies.com>
  7128. * value.c (value_next): Make pass-by-reference parameters const-correct.
  7129. (value_parent): Likewise.
  7130. (value_enclosing_type): Likewise.
  7131. (value_lazy): Likewise.
  7132. (value_stack): Likewise.
  7133. (value_embedded_offset): Likewise.
  7134. (value_pointed_to_offset): Likewise.
  7135. (value_raw_address): Likewise.
  7136. (deprecated_value_modifiable): Likewise.
  7137. (value_free_to_mark): Likewise.
  7138. (value_release_to_mark): Likewise.
  7139. (internalvar_name): Likewise.
  7140. (readjust_indirect_value_type): Likewise.
  7141. (value_initialized): Likewise.
  7142. * value.h (value_next): Likewise.
  7143. (value_parent): Likewise.
  7144. (value_enclosing_type): Likewise.
  7145. (value_lazy): Likewise.
  7146. (value_stack): Likewise.
  7147. (value_embedded_offset): Likewise.
  7148. (value_pointed_to_offset): Likewise.
  7149. (value_raw_address): Likewise.
  7150. (deprecated_value_modifiable): Likewise.
  7151. (value_free_to_mark): Likewise.
  7152. (value_release_to_mark): Likewise.
  7153. (internalvar_name): Likewise.
  7154. (readjust_indirect_value_type): Likewise.
  7155. (value_initialized): Likewise.
  7156. 2016-04-07 Yao Qi <yao.qi@linaro.org>
  7157. * record-full.c (record_full_insert_breakpoint): Return
  7158. early if entry on the address is found in
  7159. record_full_breakpoints.
  7160. 2016-04-07 Yao Qi <yao.qi@linaro.org>
  7161. * record-full.c (record_full_insert_breakpoint): Set
  7162. bp_tgt->reqstd_address and bp_tgt->placed_size.
  7163. 2016-04-06 Don Breazeal <donb@codesourcery.com>
  7164. * value.c (value_actual_type): Don't try to get rtti type
  7165. of the value if it has been optimized out.
  7166. (value_optimized_out): If a memory access error occurs,
  7167. just check vaue->optimized_out.
  7168. 2016-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
  7169. Revert the previous commit adding unknown_v_replies_ok.
  7170. 2016-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
  7171. * remote.c (struct remote_state): New field unknown_v_replies_ok.
  7172. (packet_config_support): Read it.
  7173. (remote_start_remote): Set it.
  7174. 2016-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
  7175. * remote.c: Revert check-in by a mistake in the previous commit.
  7176. 2016-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
  7177. Pedro Alves <palves@redhat.com>
  7178. * exec.c (exec_file_locate_attach): Print warning for unsupported
  7179. target_pid_to_exec_file.
  7180. * symfile-mem.c (add_vsyscall_page): Remove the "file" command
  7181. message part.
  7182. 2016-04-04 Simon Marchi <simon.marchi@ericsson.com>
  7183. * cli/cli-decode.c (help_cmd_list): Fix function doc and remove
  7184. trailing spaces.
  7185. 2016-04-01 Artemiy Volkov <artemiyv@acm.org>
  7186. PR gdb/19820
  7187. * eval.c (evaluate_subexp_standard): Allow TYPE_CODE_ENUM to be
  7188. the type of BINOP_REPEAT's second operand.
  7189. 2016-03-31 Yichao Yu <yyc1992@gmail.com>
  7190. PR gdb/19858
  7191. * jit.c (jit_breakpoint_re_set_internal): Return 0 if we already
  7192. got the breakpoint at the right address.
  7193. (jit_inferior_created): New function.
  7194. (_initialize_jit): Install jit_inferior_created as
  7195. inferior_created observer.
  7196. 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
  7197. * NEWS: Mention support for tracepoints on powerpc*-linux.
  7198. 2016-03-31 Catalin Udma <catalin.udma@freescale.com>
  7199. PR python/19743
  7200. * python/python.c (execute_gdb_command): Use console uiout
  7201. when executing gdb command.
  7202. * utils.c (restore_ui_out_closure): New structure.
  7203. (do_restore_ui_out): New function.
  7204. (make_cleanup_restore_ui_out): Likewise.
  7205. * utils.h (make_cleanup_restore_ui_out): Declare.
  7206. 2016-03-31 Pedro Alves <palves@redhat.com>
  7207. * NEWS: Mention that support for "target m32rsdi", "target mips",
  7208. "target pmon", "target ddb", "target rockhopper", and "target lsi"
  7209. was removed.
  7210. * Makefile.in (ALL_TARGET_OBS): Remove remote-m32r-sdi.o and
  7211. remote-mips.o.
  7212. (ALLDEPFILES): Remove remote-m32r-sdi.c and remote-mips.c.
  7213. * configure.tgt: Remove all references to remote-m32r-sdi.o and
  7214. remote-mips.o.
  7215. * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Delete
  7216. function.
  7217. * mips-tdep.h (deprecated_mips_set_processor_regs_hack): Delete
  7218. declaration.
  7219. * remote-m32r-sdi.c, remote-mips.c: Delete files.
  7220. * symfile.c (generic_load, generic_load): Remove comments.
  7221. 2016-03-30 Yao Qi <yao.qi@linaro.org>
  7222. * arm-tdep.c (arm_epilogue_frame_this_id): Check 'func' against
  7223. 0 rather than NULL.
  7224. 2016-03-30 Yao Qi <yao.qi@linaro.org>
  7225. * arm-tdep.c: (arm_make_epilogue_frame_cache): New function.
  7226. (arm_epilogue_frame_this_id): New function.
  7227. (arm_epilogue_frame_prev_register): New function.
  7228. (arm_epilogue_frame_sniffer): New function.
  7229. (arm_epilogue_frame_unwind): New.
  7230. (arm_gdbarch_init): Append unwinder arm_epilogue_frame_unwind.
  7231. 2016-03-30 Yao Qi <yao.qi@linaro.org>
  7232. * arm-tdep.c (arm_stack_frame_destroyed_p): Rename it ...
  7233. (arm_stack_frame_destroyed_p_1): ... here. Don't call
  7234. arm_pc_is_thumb.
  7235. (arm_stack_frame_destroyed_p): Call
  7236. thumb_stack_frame_destroyed_p and
  7237. arm_stack_frame_destroyed_p_1.
  7238. 2016-03-30 Doug Evans <dje@google.com>
  7239. * python/py-utils.c (host_string_to_python_string): New function.
  7240. * python/python-internal.h (host_string_to_python_string): Declare it.
  7241. * python/py-*.c (*): Update all calls to
  7242. PyString_Decode (str, strlen (str), host_charset (), NULL);
  7243. to use host_string_to_python_string instead.
  7244. 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
  7245. * remote.c (remote_check_symbols): Allocate own buffer for reply.
  7246. 2016-03-29 Max Filippov <jcmvbkbc@gmail.com>
  7247. * xtensa-tdep.c (xtensa_frame_cache): Change op1 type to LONGEST.
  7248. Use safe_read_memory_integer instead of read_memory_integer.
  7249. 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
  7250. * NEWS: Mention support for tracepoints on s390*-linux.
  7251. 2016-03-29 Don Breazeal <donb@codesourcery.com>
  7252. * value.c (value_actual_type): Fix formatting issue.
  7253. 2016-03-23 Yao Qi <yao.qi@linaro.org>
  7254. * gdbarch.sh (software_single_step): Remove comments.
  7255. * gdbarch.h: Regenerated.
  7256. 2016-03-21 Yao Qi <yao.qi@linaro.org>
  7257. * arm-tdep.c (arm_record_media): New.
  7258. (arm_record_ld_st_reg_offset): Call arm_record_media.
  7259. 2016-03-21 Yao Qi <yao.qi@linaro.org>
  7260. * arm-linux-tdep.c (arm_canonicalize_syscall): Canonicalize
  7261. more syscalls.
  7262. 2016-03-18 Yao Qi <yao.qi@linaro.org>
  7263. * sparc-tdep.c (sparc_software_single_step): Make it static.
  7264. * sparc-tdep.h (sparc_software_single_step): Remove declaration.
  7265. 2016-03-18 Yao Qi <yao.qi@linaro.org>
  7266. * spu-tdep.c (spu_software_single_step): Throw error when
  7267. target_read_memory fails.
  7268. 2016-03-17 Jan Kratochvil <jan.kratochvil@redhat.com>
  7269. * linux-thread-db.c (check_pid_namespace_match): Extend the message.
  7270. 2016-03-17 Pedro Alves <palves@redhat.com>
  7271. Don Breazeal <donb@codesourcery.com>
  7272. PR remote/19496
  7273. * infcmd.c (notice_new_inferior): Use the 'leave_running' argument
  7274. instead of checking the 'non_stop' global.
  7275. * remote.c (remote_add_thread): New parameter 'executing'. Use it
  7276. to set the new thread's executing state.
  7277. (remote_notice_new_inferior): Rename parameter 'running' to
  7278. 'executing'. Always set the thread state to THREAD_RUNNING in
  7279. non-stop mode, and to THREAD_STOPPED in all-stop mode. Pass
  7280. EXECUTING to remote_add_thread and notice_new_inferior.
  7281. (remote_update_thread_list): Update to pass executing state, not
  7282. running state.
  7283. 2016-03-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
  7284. * syscalls/s390-linux.xml: Add NUMA syscalls and new syscalls up
  7285. to 374.
  7286. * syscalls/s390x-linux.xml: Likewise.
  7287. 2016-03-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
  7288. * linux-record.c (record_mem_at_reg): New helper function.
  7289. (record_linux_system_call): Exploit new helper function where
  7290. applicable.
  7291. 2016-03-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
  7292. * linux-record.c: Fix whitespace issues; tabify, remove trailing
  7293. spaces.
  7294. 2016-03-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
  7295. * linux-record.c (record_linux_system_call): Add missing return
  7296. statements to handling of pipe and pipe2 syscalls.
  7297. 2016-03-16 Doug Evans <dje@google.com>
  7298. * xml-tdesc.c (tdesc_start_enum): Fix c++ build.
  7299. 2016-03-16 Yao Qi <yao.qi@linaro.org>
  7300. * arm-linux-tdep.c (arm_linux_init_abi): Fix
  7301. arm_linux_record_tdep.arg1, arm_linux_record_tdep.arg2 and
  7302. arm_linux_record_tdep.arg3. Set arm_linux_record_tdep.arg4,
  7303. arm_linux_record_tdep.arg5, arm_linux_record_tdep.arg6, and
  7304. arm_linux_record_tdep.arg7.
  7305. 2016-03-15 Keith Seitz <keiths@redhat.com>
  7306. PR breakpoints/18303
  7307. * cp-namespace.c (cp_lookup_bare_symbol): Change assertion to
  7308. look for "::" instead of simply ":".
  7309. (cp_search_static_and_baseclasses): Return null_block_symbol for
  7310. malformed input.
  7311. Remove assertions.
  7312. * cp-support.c (cp_find_first_component_aux): Do not return
  7313. a prefix length for ':' unless the next character is also ':'.
  7314. 2016-03-15 Doug Evans <dje@google.com>
  7315. * features/aarch64-core.xml (cpsr_flags): New flags type.
  7316. (cpsr): Use it.
  7317. * features/aarch64.c: Regenerate.
  7318. 2016-03-15 Doug Evans <dje@google.com>
  7319. * features/i386/32bit-core.xml (i386_eflags): Remove "end" spec.
  7320. * features/i386/32bit-sse.xml (i386_eflags): Ditto.
  7321. * features/i386/64bit-core.xml (i386_eflags): Ditto.
  7322. * features/i386/64bit-sse.xml (i386_eflags): Ditto.
  7323. * features/i386/x32-core.xml (i386_eflags): Ditto.
  7324. 2016-03-15 Doug Evans <dje@google.com>
  7325. Wei-cheng Wang <cole945@gmail.com>
  7326. Extend flags to support multibit and enum bitfields.
  7327. * NEWS: Document new features.
  7328. * c-typeprint.c (c_type_print_varspec_prefix): Handle TYPE_CODE_FLAGS.
  7329. (c_type_print_varspec_suffix, c_type_print_base): Ditto.
  7330. * gdbtypes.c (arch_flags_type): Don't assume all fields are one bit.
  7331. (append_flags_type_field): New function.
  7332. (append_flags_type_flag): Call it.
  7333. * gdbtypes.h (append_flags_type_field): Declare.
  7334. * target-descriptions.c (struct tdesc_type_flag): Delete.
  7335. (enum tdesc_type_kind) <TDESC_TYPE_BOOL>: New enum value.
  7336. (enum tdesc_type_kind) <TDESC_TYPE_ENUM>: Ditto.
  7337. (struct tdesc_type) <u.f>: Delete.
  7338. (tdesc_predefined_types): Add "bool".
  7339. (tdesc_predefined_type): New function.
  7340. (tdesc_gdb_type): Handle TDESC_TYPE_BOOL, TDESC_TYPE_ENUM.
  7341. Update TDESC_TYPE_FLAGS support.
  7342. (tdesc_free_type): Handle TDESC_TYPE_ENUM. Update TDESC_TYPE_FLAGS.
  7343. (tdesc_create_flags): Update.
  7344. (tdesc_create_enum): New function.
  7345. (tdesc_add_field): Initialize start,end to -1.
  7346. (tdesc_add_typed_bitfield): New function.
  7347. (tdesc_add_bitfield): Call it.
  7348. (tdesc_add_flag): Allow TDESC_TYPE_STRUCT. Update.
  7349. (tdesc_add_enum_value): New function.
  7350. (maint_print_c_tdesc_cmd): Fold TDESC_TYPE_FLAGS support into
  7351. TDESC_TYPE_STRUCT. Handle TDESC_TYPE_ENUM.
  7352. * target-descriptions.h (tdesc_create_enum): Declare.
  7353. (tdesc_add_typed_bitfield, tdesc_add_enum_value): Declare.
  7354. * valprint.c (generic_val_print_enum_1): New function.
  7355. (generic_val_print_enum): Call it.
  7356. (val_print_type_code_flags): Make static. Handle multibit bitfields
  7357. and enum bitfields.
  7358. * valprint.h (val_print_type_code_flags): Delete.
  7359. * xml-tdesc.c (struct tdesc_parsing_data) <current_type_is_flags>:
  7360. Delete. All uses removed.
  7361. (tdesc_start_enum): New function.
  7362. (tdesc_start_field): Handle multibit and enum bitfields.
  7363. (tdesc_start_enum_value): New function.
  7364. (enum_value_attributes, enum_children, enum_attributes): New static
  7365. globals.
  7366. (feature_children): Add "enum".
  7367. * features/gdb-target.dtd (enum, evalue): New elements.
  7368. 2016-03-15 Doug Evans <dje@google.com>
  7369. * target-descriptions.c (struct tdesc_type) <u.u.size>: Change type
  7370. from LONGEST to int.
  7371. (struct tdesc_type) <u.f.size>: Ditto.
  7372. (tdesc_set_struct_size): Change type of "size" arg from LONGEST
  7373. to int. Add assertion size > 0.
  7374. (tdesc_create_flags): Ditto.
  7375. * target-descriptions.h (tdesc_set_struct_size): Update.
  7376. (tdesc_create_flags): Update.
  7377. * xml-tdesc.c (MAX_FIELD_SIZE, MAX_FIELD_BITSIZE): New macros.
  7378. (MAX_VECTOR_SIZE): New macro.
  7379. (tdesc_start_struct): Catch conversion errors from LONGEST to int.
  7380. (tdesc_start_flags, tdesc_start_field, tdesc_start_vector): Ditto.
  7381. 2016-03-15 Doug Evans <dje@google.com>
  7382. * target-descriptions.c (maint_print_c_tdesc_cmd): Use "type" for
  7383. TYPE_CODE_FLAGS instead of "field_type", for consistency.
  7384. * features/i386/amd64-avx-linux.c: Regenerate.
  7385. * features/i386/amd64-avx.c: Regenerate.
  7386. * features/i386/amd64-avx512-linux.c: Regenerate.
  7387. * features/i386/amd64-avx512.c: Regenerate.
  7388. * features/i386/amd64-linux.c: Regenerate.
  7389. * features/i386/amd64-mpx-linux.c: Regenerate.
  7390. * features/i386/amd64-mpx.c: Regenerate.
  7391. * features/i386/amd64.c: Regenerate.
  7392. * features/i386/i386-avx-linux.c: Regenerate.
  7393. * features/i386/i386-avx.c: Regenerate.
  7394. * features/i386/i386-avx512-linux.c: Regenerate.
  7395. * features/i386/i386-avx512.c: Regenerate.
  7396. * features/i386/i386-linux.c: Regenerate.
  7397. * features/i386/i386-mmx-linux.c: Regenerate.
  7398. * features/i386/i386-mmx.c: Regenerate.
  7399. * features/i386/i386-mpx-linux.c: Regenerate.
  7400. * features/i386/i386-mpx.c: Regenerate.
  7401. * features/i386/i386.c: Regenerate.
  7402. * features/i386/x32-avx-linux.c: Regenerate.
  7403. * features/i386/x32-avx.c: Regenerate.
  7404. * features/i386/x32-avx512-linux.c: Regenerate.
  7405. * features/i386/x32-avx512.c: Regenerate.
  7406. * features/i386/x32-linux.c: Regenerate.
  7407. * features/i386/x32.c: Regenerate.
  7408. 2016-03-15 Pedro Alves <palves@redhat.com>
  7409. PR gdb/19676
  7410. * linux-thread-db.c (try_thread_db_load_1): Leave
  7411. info->td_ta_thr_iter_p NULL iff debugging a live process and we
  7412. have /proc access.
  7413. (find_new_threads_once): Assert that we have a non-NULL
  7414. info->td_ta_thr_iter_p instead of checking whether the target has
  7415. execution.
  7416. 2016-03-15 Pedro Alves <palves@redhat.com>
  7417. PR gdb/19676
  7418. * infrun.c (displaced_step_prepare): Also disable displaced
  7419. stepping on NOT_SUPPORTED_ERROR.
  7420. * linux-tdep.c (linux_displaced_step_location): If reading auxv
  7421. fails, throw NOT_SUPPORTED_ERROR instead of generic error.
  7422. 2016-03-13 Marcin Kościelnicki <koriakin@0x04.net>
  7423. * s390-linux-tdep.c (s390_gen_return_address): New function.
  7424. (s390_gdbarch_init): Fill gen_return_address hook.
  7425. 2016-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
  7426. * symmisc.c (maintenance_info_line_tables): New function.
  7427. (maintenance_print_one_line_table): New function.
  7428. (_initialize_symmisc): Register 'maint info line-table' command.
  7429. * NEWS: Mention new command.
  7430. 2016-03-11 Marcin Kościelnicki <koriakin@0x04.net>
  7431. * s390-linux-tdep.c (s390_ax_pseudo_register_collect): New function.
  7432. (s390_ax_pseudo_register_push_stack): New function.
  7433. (s390_gdbarch_init): Fill ax_pseudo_register_collect and
  7434. ax_pseudo_register_push_stack hooks.
  7435. 2016-03-10 Simon Marchi <simon.marchi@polymtl.ca>
  7436. * data-directory/Makefile.in (PYTHON_FILE_LIST): Install
  7437. gdb/function/as_string.py.
  7438. * python/lib/gdb/function/as_string.py: New file.
  7439. * NEWS: Mention the new $_as_string function.
  7440. 2016-03-09 Jose E. Marchesi <jose.marchesi@oracle.com>
  7441. * target.h: Fix doc string of target_can_use_hardware_watchpoint.
  7442. 2016-03-09 Pedro Alves <palves@redhat.com>
  7443. * event-top.c (more_to_come): Delete.
  7444. (struct readline_input_state): Delete.
  7445. (readline_input_state): Delete.
  7446. (get_command_line_buffer): New function.
  7447. (command_handler): Update comments. Don't handle NULL commands
  7448. here. Do not execute commented lines.
  7449. (command_line_append_input_line): New function.
  7450. (handle_line_of_input): New function, partly based on
  7451. command_line_handler and command_line_input.
  7452. (command_line_handler): Rewrite.
  7453. * event-top.h (command_handler): New declaration.
  7454. (command_loop): Defer command execution to command_handler.
  7455. (command_line_input): Update comments. Simplify, using struct
  7456. buffer and handle_line_of_input.
  7457. * top.h (struct buffer): New forward declaration.
  7458. (handle_line_of_input): New declaration.
  7459. 2016-03-09 Pedro Alves <palves@redhat.com>
  7460. * event-top.c (command_line_handler): Use xfree + xstrdup instead
  7461. of xrealloc + strcpy.
  7462. * main.c (captured_main): Use xstrdup instead of xmalloc plus
  7463. manual clear.
  7464. * top.c (saved_command_line): Rewrite comment.
  7465. (saved_command_line_size): Delete.
  7466. (command_line_input): Use xfree + xstrdup instead of xrealloc +
  7467. strcpy.
  7468. * top.h (saved_command_line_size): Delete declaration.
  7469. 2016-03-09 Pedro Alves <palves@redhat.com>
  7470. * event-top.c: Include buffer.h.
  7471. (gdb_readline_no_editing_callback): Use struct buffer instead
  7472. of xrealloc.
  7473. 2016-03-09 Pedro Alves <palves@redhat.com>
  7474. * common/buffer.h (buffer_grow_char): New function.
  7475. * top.c: Include buffer.h.
  7476. (gdb_readline_no_editing): Rename 'prompt_arg' parameter to
  7477. 'prompt'. Use struct buffer instead of xrealloc.
  7478. 2016-03-09 Pedro Alves <palves@redhat.com>
  7479. * defs.h (gdb_readline): Delete declaration.
  7480. * top.c (gdb_readline): Rename to ...
  7481. (gdb_readline_no_editing): ... this, and make static.
  7482. 2016-03-09 Pedro Alves <palves@redhat.com>
  7483. * utils.c (prompt_for_continue): Update comments.
  7484. 2016-03-09 Pedro Alves <palves@redhat.com>
  7485. * event-top.c (async_annotation_suffix): Delete.
  7486. (top_level_prompt, command_line_handler): Don't use
  7487. 'async_annotation_suffix' and simplify.
  7488. * event-top.h (async_annotation_suffix): Delete declaration.
  7489. (init_main): Remove reference to 'async_annotation_suffix'.
  7490. 2016-03-09 Pedro Alves <palves@redhat.com>
  7491. * event-top.c (gdb_readline2): Rename to ...
  7492. (gdb_readline_no_editing_callback): ... this.
  7493. (change_line_handler, stdin_event_handler)
  7494. (gdb_setup_readline): Adjust.
  7495. * event-top.h (gdb_readline2): Rename to ...
  7496. (gdb_readline_no_editing_callback): ... this, and move closer to
  7497. other readline-related declarations.
  7498. * mi/mi-interp.c (mi_interpreter_resume): Adjust.
  7499. 2016-03-09 Pedro Alves <palves@redhat.com>
  7500. * top.c (window_hook): Delete.
  7501. (command_loop): Remove references to window_hook.
  7502. 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
  7503. * corefile.c (safe_read_memory_unsigned_integer): New function.
  7504. * gdbcore.h (safe_read_memory_unsigned_integer): New prototype.
  7505. * rs6000-tdep.c (rs6000_frame_cache): Read backchain as unsigned.
  7506. 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
  7507. * rs6000-tdep.c: Add "ax.h" and "ax-gdb.h" includes.
  7508. (rs6000_gen_return_address): New function.
  7509. (rs6000_gdbarch_init): Wire in the above.
  7510. 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
  7511. * rs6000-tdep.c (rs6000_ax_pseudo_register_collect): New function.
  7512. (rs6000_gdbarch_init): Wire in the above.
  7513. 2016-03-09 Andreas Arnez <arnez@linux.vnet.ibm.com>
  7514. * s390-linux-tdep.c (s390_analyze_prologue): Ignore BRC and BRCL
  7515. instructions that do nothing or are conditional traps.
  7516. 2016-03-09 Andreas Arnez <arnez@linux.vnet.ibm.com>
  7517. * s390-linux-tdep.c (s390_prologue_frame_unwind_cache): Store
  7518. frame func's PC in info->func before any other failure can occur.
  7519. (s390_frame_this_id): Use frame_id_build_unavailable_stack if
  7520. info->func has been filled out.
  7521. 2016-03-09 Pedro Alves <palves@redhat.com>
  7522. * osabi.c (gdb_osabi_names): Avoid spaces in osabi names.
  7523. 2016-03-09 Pedro Alves <palves@redhat.com>
  7524. * frv-tdep.c (frv_gdbarch_init): Handle bfd_mach_fr300.
  7525. 2016-03-09 Pedro Alves <palves@redhat.com>
  7526. * cris-tdep.c (cris_gdbarch_init): Return 0 if the info's byte
  7527. order is BFD_ENDIAN_BIG or if the cris version is unsupported.
  7528. 2016-03-09 Pedro Alves <palves@redhat.com>
  7529. * doublest.c: Extend comments.
  7530. (floatformat_to_doublest, floatformat_from_doublest): Copy the
  7531. floatformat's total size, not the host type's size.
  7532. 2016-03-09 Pedro Alves <palves@redhat.com>
  7533. * doublest.c (floatformat_totalsize_bytes): New function.
  7534. (floatformat_from_type): Assert that the type's length is at least
  7535. as long as the floatformat's totalsize.
  7536. * doublest.h (floatformat_totalsize_bytes): New declaration.
  7537. * gdbtypes.c (arch_float_type): Assert that the type's length is
  7538. at least as long as the floatformat's totalsize.
  7539. 2016-03-09 Pedro Alves <palves@redhat.com>
  7540. * hppa-linux-tdep.c (hppa_linux_init_abi): Set the long double
  7541. format to floatformats_ieee_double.
  7542. 2016-03-07 Pedro Alves <palves@redhat.com>
  7543. * mips-tdep.c (mips_gdbarch_init): Check whether info.abfd is NULL
  7544. before calling bfd_get_flavour.
  7545. 2016-03-05 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
  7546. * avr-tdep.c (AVR_LAST_ARG_REGNUM): Define.
  7547. (avr_push_dummy_call): Correct last needed argument register.
  7548. Write MSB of argument into register and subsequent bytes into
  7549. other registers in decreasing order.
  7550. 2016-03-04 Yao Qi <yao.qi@linaro.org>
  7551. * arm-tdep.c (arm_record_vdata_transfer_insn): Simplify the
  7552. condition check. Record the right D register number.
  7553. 2016-03-04 Yao Qi <yao.qi@linaro.org>
  7554. * arm-tdep.c (arm_record_extension_space): Remove code
  7555. printing "Process record does not support".
  7556. (arm_record_data_proc_misc_ld_str): Likewise.
  7557. (decode_insn): Call arm_record_extension_space if condition
  7558. is 0xf. Call arm_record_unsupported_insn if ret isn't
  7559. ARM_RECORD_SUCCESS. Use 'ret' instead of 'insn_id' to hold
  7560. the value of thumb2_record_decode_insn_handler.
  7561. 2016-03-04 Simon Marchi <simon.marchi@ericsson.com>
  7562. * features/feature_to_c.sh: Print the help when passing no
  7563. argument.
  7564. 2016-03-02 Bernhard Heckel <bernhard.heckel@intel.com>
  7565. * MAINTAINERS (Write After Approval): Add Bernhard Heckel.
  7566. 2016-03-02 Bernhard Heckel <bernhard.heckel@intel.com>
  7567. * dwarf2read.c (new_symbol_full): Fix detection of gfortran compilers.
  7568. 2016-03-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
  7569. * s390-linux-tdep.c (s390_backchain_frame_unwind_cache): Avoid
  7570. exception when attempting to access the inferior's backchain.
  7571. 2016-02-29 Yao Qi <yao.qi@linaro.org>
  7572. * aarch64-linux-tdep.c (aarch64_canonicalize_syscall): Support
  7573. eventfd2, eventfd2, dup3, inotify_init1, fallocate and pipe2.
  7574. Return gdb_sys_epoll_create1 instead of gdb_sys_epoll_create
  7575. for aarch64_sys_epoll_create1.
  7576. 2016-02-29 Yao Qi <yao.qi@linaro.org>
  7577. * linux-record.h (enum gdb_syscall) <gdb_sys_fallocate>: New.
  7578. <gdb_sys_eventfd2, gdb_sys_epoll_create1, gdb_sys_dup3>: New.
  7579. <gdb_sys_pipe2, gdb_sys_inotify_init1>: New.
  7580. * linux-record.c (record_linux_system_call): Handle them.
  7581. 2016-02-28 Iain Buclaw <ibuclaw@gdcproject.org>
  7582. * d-namespace.c (d_lookup_symbol_imports): Avoid recursive lookups from
  7583. cyclic imports.
  7584. 2016-02-26 Keith Seitz <keiths@redhat.com>
  7585. * rs6000-tdep.c (rs6000_frame_cache): Explicitly cast return result
  7586. to avoid invalid conversion from void *.
  7587. 2016-02-26 Yao Qi <yao.qi@linaro.org>
  7588. * arm-tdep.c (arm_record_exreg_ld_st_insn): Set 'single_reg'
  7589. per bit 8. Check bit 20 instead of bit 4 for VMOV
  7590. instruction. Record D registers for instructions changing
  7591. S registers. Change of the order of length and address
  7592. in record_buf_mem array.
  7593. 2016-02-26 Yao Qi <yao.qi@linaro.org>
  7594. * arm-tdep.c (thumb_record_ld_st_reg_offset): Fix the register
  7595. number of Rd.
  7596. 2016-02-25 Doug Evans <dje@google.com>
  7597. * remote-m32r-sdi.c (recv_char_data): Initialize val to avoid
  7598. compiler warning.
  7599. (recv_long_data): Ditto.
  7600. 2016-02-25 Simon Marchi <simon.marchi@ericsson.com>
  7601. * i386-linux-tdep.c (i386_linux_handle_segmentation_fault):
  7602. Initialize variables.
  7603. 2016-02-25 Antoine Tremblay <antoine.tremblay@ericsson.com>
  7604. * ax-general.c (ax_reg): Call gdbarch_remote_register_number.
  7605. (ax_reg_mask): Likewise.
  7606. 2016-02-24 Pedro Alves <palves@redhat.com>
  7607. * linux-nat.c (save_sigtrap) Delete.
  7608. (stop_wait_callback): Call save_stop_reason instead of
  7609. save_sigtrap.
  7610. (check_stopped_by_breakpoint): Rename to ...
  7611. (save_stop_reason): ... this. Bits of save_sigtrap folded here.
  7612. Use GDB_ARCH_IS_TRAP_HWBKPT and handle ambiguous
  7613. GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT. Factor out
  7614. common code between the USE_SIGTRAP_SIGINFO and
  7615. !USE_SIGTRAP_SIGINFO blocks.
  7616. (linux_nat_filter_event): Call save_stop_reason instead of
  7617. save_sigtrap.
  7618. * nat/linux-ptrace.h: Check for both SI_KERNEL and TRAP_BRKPT
  7619. si_code for MIPS.
  7620. * nat/linux-ptrace.h: Fix "TRAP_HWBPT" typo in x86 table. Add
  7621. comments on MIPS behavior.
  7622. (GDB_ARCH_IS_TRAP_HWBKPT): Define for all archs.
  7623. 2016-02-24 Marcin Kościelnicki <koriakin@0x04.net>
  7624. * rs6000-tdep.c (rs6000_frame_cache): Initialize frame and pc to 0
  7625. to avoid spurious warnings.
  7626. 2016-02-24 Gary Benson <gbenson@redhat.com>
  7627. * exec.c (exec_file_locate_attach): Do not attempt to
  7628. locate main executable locally if not found in sysroot.
  7629. 2016-02-24 Joel Brobecker <brobecker@adacore.com>
  7630. GDB 7.11 released.
  7631. 2016-02-24 Wei-cheng Wang <cole945@gmail.com>
  7632. * rs6000-tdep.c (rs6000_frame_cache, rs6000_frame_this_id): Handle
  7633. unavailable PC/SP to build unavailable frame.
  7634. 2016-02-23 Doug Evans <dje@google.com>
  7635. Extend "skip" command to support -file, -gfile, -function, -rfunction.
  7636. * NEWS: Document new features.
  7637. * skip.c: #include "fnmatch.h", "gdb_regex.h".
  7638. (skiplist_entry) <file>: Renamed from filename.
  7639. <function>: Renamed from function_name.
  7640. <file_is_glob, function_is_regexp>: New members.
  7641. <compiled_function_regexp, compiled_function_regexp_is_valid>:
  7642. New members.
  7643. (make_skip_entry): New function.
  7644. (free_skiplist_entry, free_skiplist_entry_cleanup): New functions.
  7645. (make_free_skiplist_entry_cleanup): New function.
  7646. (skip_file_command): Update.
  7647. (skip_function, skip_function_command): Update.
  7648. (compile_skip_regexp): New functions.
  7649. (skip_command): Add support for new options.
  7650. (skip_info): Update.
  7651. (skip_file_p, skip_gfile_p): New functions.
  7652. (skip_function_p, skip_rfunction_p): New functions.
  7653. (function_name_is_marked_for_skip): Update and simplify.
  7654. (_initialize_step_skip): Update.
  7655. * symtab.c: #include "fnmatch.h".
  7656. (compare_glob_filenames_for_search): New function.
  7657. * symtab.h (compare_glob_filenames_for_search): Declare.
  7658. * utils.c (count_path_elements): New function.
  7659. (strip_leading_path_elements): New function.
  7660. * utils.h (count_path_elements): Declare.
  7661. (strip_leading_path_elements): Declare.
  7662. 2016-02-23 Simon Marchi <simon.marchi@ericsson.com>
  7663. * arm-tdep.c (arm_decode_svc_copro): Remove "to" parameter.
  7664. (thumb_process_displaced_insn): Likewise.
  7665. (arm_process_displaced_insn): Adjust calls.
  7666. 2016-02-23 Yao Qi <yao.qi@linaro.org>
  7667. * aarch64-linux-tdep.c (enum aarch64_syscall) <aarch64_sys_mknod>:
  7668. Remove.
  7669. <aarch64_sys_mkdir, aarch64_sys_unlink, aarch64_sys_symlink>: Remove.
  7670. <aarch64_sys_link, aarch64_sys_rename, aarch64_sys_faccess>: Remove.
  7671. <aarch64_sys_mknodat, aarch64_sys_mkdirat>: New.
  7672. <aarch64_sys_unlinkat, aarch64_sys_symlinkat>: New.
  7673. <aarch64_sys_linkat, aarch64_sys_renameat>: New.
  7674. <aarch64_sys_faccessat>: New.
  7675. <aarch64_sys_open, aarch64_sys_readlink, aarch64_sys_fstatat>: Remove.
  7676. <aarch64_sys_openat, aarch64_sys_readlinkat>: New.
  7677. <aarch64_sys_newfstatat>: New.
  7678. (UNSUPPORTED_SYSCALL_MAP): New macro.
  7679. (aarch64_canonicalize_syscall): Add missing syscalls.
  7680. 2016-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
  7681. * gdb-gdb.py (class TypeFlagsPrinter): Use parentheses for print.
  7682. 2016-02-22 Yao Qi <yao.qi@linaro.org>
  7683. * arm-tdep.c: Fix code format issues.
  7684. 2016-02-21 Iain Buclaw <ibuclaw@gdcproject.org>
  7685. * d-namespace.c (d_lookup_symbol_imports): Remove argument
  7686. 'search_parents'. All callers updated.
  7687. 2016-02-18 Marcin Kościelnicki <koriakin@0x04.net>
  7688. * s390-linux-tdep.c (s390_guess_tracepoint_registers): New function.
  7689. (s390_gdbarch_init): Fill guess_tracepoint_registers hook.
  7690. 2016-02-18 Walfred Tedeschi <walfred.tedeschi@intel.com>
  7691. * NEWS: Add entry for bound violation.
  7692. * amd64-linux-tdep.c (amd64_linux_init_abi_common):
  7693. Add handler for segmentation fault.
  7694. * gdbarch.sh (handle_segmentation_fault): New.
  7695. * gdbarch.c: Regenerate.
  7696. * gdbarch.h: Regenerate.
  7697. * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): New.
  7698. (SIG_CODE_BONDARY_FAULT): New define.
  7699. (i386_linux_init_abi): Use i386_mpx_bound_violation_handler.
  7700. * i386-linux-tdep.h (i386_linux_handle_segmentation_fault) New.
  7701. * i386-tdep.c (i386_mpx_enabled): Add as external.
  7702. * i386-tdep.c (i386_mpx_enabled): Add as external.
  7703. * infrun.c (handle_segmentation_fault): New function.
  7704. (print_signal_received_reason): Use handle_segmentation_fault.
  7705. 2016-02-18 Marcin Kościelnicki <koriakin@0x04.net>
  7706. * arch-utils.c (default_guess_tracepoint_registers): New function.
  7707. * arch-utils.h (default_guess_tracepoint_registers): New prototype.
  7708. * gdbarch.c: Regenerate.
  7709. * gdbarch.h: Regenerate.
  7710. * gdbarch.sh: Add guess_tracepoint_registers hook.
  7711. * tracefile.c (tracefile_fetch_registers): Use the new gdbarch hook.
  7712. 2016-02-17 Gary Benson <gbenson@redhat.com>
  7713. * exec.c (exec_file_locate_attach): Add missing cleanup.
  7714. 2016-02-16 Don Breazeal <donb@codesourcery.com>
  7715. PR remote/19496
  7716. * remote.c (remove_new_fork_children): Check for pending
  7717. fork status in thread_info.suspend.
  7718. 2016-02-16 Yao Qi <yao.qi@linaro.org>
  7719. * arm-linux-tdep.c (arm_linux_software_single_step): Assign
  7720. 'old_chain' later.
  7721. 2016-02-16 Yao Qi <yao.qi@linaro.org>
  7722. * arch/arm-get-next-pcs.h (struct arm_get_next_pcs_ops)
  7723. <syscall_next_pc>: Remove argument PC. Callers updated.
  7724. * arm-linux-tdep.c (arm_linux_get_next_pcs_syscall_next_pc):
  7725. Remove argument PC. Get pc from regcache_read_pc.
  7726. * arm-tdep.c (arm_get_next_pcs_syscall_next_pc): Remove
  7727. argument PC.
  7728. 2016-02-15 Yao Qi <yao.qi@linaro.org>
  7729. * aarch64-tdep.c (aarch64_analyze_prologue): Remove "0x".
  7730. 2016-02-12 Yao Qi <yao.qi@linaro.org>
  7731. * arch/arm-linux.c (arm_linux_get_next_pcs_fixup): Calculate
  7732. nextpc according to instruction.
  7733. 2016-02-12 Yao Qi <yao.qi@linaro.org>
  7734. * arch/arm-get-next-pcs.c (arm_get_next_pcs): Call
  7735. self->ops->fixup if it isn't NULL.
  7736. * arch/arm-get-next-pcs.h: Include gdb_vecs.h.
  7737. (struct arm_get_next_pcs_ops) <fixup>: New field.
  7738. * arch/arm-linux.c: Include common-regcache.h and
  7739. arch/arm-get-next-pcs.h.
  7740. (arm_linux_get_next_pcs_fixup): New function.
  7741. * arch/arm-linux.h (arm_linux_get_next_pcs_fixup): Declare.
  7742. * arm-linux-tdep.c (arm_linux_get_next_pcs_ops): Initialize
  7743. it with arm_linux_get_next_pcs_fixup.
  7744. (arm_linux_software_single_step): Move code to
  7745. arm_linux_get_next_pcs_fixup.
  7746. * arm-tdep.c (arm_get_next_pcs_ops): Initialize it.
  7747. 2016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
  7748. * xml-tdesc.c (target_fetch_description_xml) [!HAVE_LIBEXPAT]: Warn
  7749. and return NULL.
  7750. 2016-02-12 Markus Metzger <markus.t.metzger@intel.com>
  7751. * frame.h (skip_tailcall_frames): Update comment.
  7752. * frame.c (skip_artificial_frames, skip_tailcall_frames): Return NULL
  7753. if only artificial frames are found. Update comment.
  7754. (frame_unwind_caller_id): Handle NULL return.
  7755. (frame_unwind_caller_pc, frame_unwind_caller_arch): Assert that
  7756. skip_artificial_frames does not return NULL.
  7757. (frame_pop): Add an error if only tailcall frames are found.
  7758. * infcmd.c (finish_command): Move skip_tailcall_frames call into
  7759. forward-execution case. Add an error if only tailcall frames are
  7760. found.
  7761. 2016-02-12 Markus Metzger <markus.t.metzger@intel.com>
  7762. * stack.c (frame_info): Check frame_unwind_caller_id.
  7763. 2016-02-12 Markus Metzger <markus.t.metzger@intel.com>
  7764. * frame.h (skip_tailcall_frames): New.
  7765. * frame.c (skip_tailcall_frames): New.
  7766. (frame_pop): Call skip_tailcall_frames.
  7767. * infcmd.c (finish_command): Call skip_tailcall_frames.
  7768. 2016-02-11 Pedro Alves <palves@redhat.com>
  7769. * Makefile.in (check-parallel): New rule.
  7770. 2016-02-11 Simon Marchi <simon.marchi@ericsson.com>
  7771. * arm-tdep.c (arm_skip_prologue): Remove unused variables.
  7772. (arm_analyze_prologue): Likewise.
  7773. (arm_scan_prologue): Likewise.
  7774. (arm_m_exception_prev_register): Likewise.
  7775. (arm_copy_block_xfer): Likewise.
  7776. (thumb2_copy_block_xfer): Likewise.
  7777. (arm_decode_miscellaneous): Likewise.
  7778. (arm_decode_ld_st_word_ubyte): Likewise.
  7779. (arm_decode_svc_copro): Likewise.
  7780. (thumb2_decode_svc_copro): Likewise.
  7781. (thumb_copy_16bit_ldr_literal): Likewise.
  7782. (thumb_copy_pop_pc_16bit): Likewise.
  7783. (decode_thumb_32bit_ld_mem_hints): Likewise.
  7784. (arm_show_force_mode): Likewise.
  7785. (_initialize_arm_tdep): Likewise.
  7786. (arm_record_strx): Likewise.
  7787. (arm_record_extension_space): Likewise.
  7788. (arm_record_data_proc_misc_ld_str): Likewise.
  7789. (arm_record_exreg_ld_st_insn): Likewise.
  7790. (arm_record_vfp_data_proc_insn): Likewise.
  7791. (arm_record_coproc_data_proc): Likewise.
  7792. (thumb_record_misc): Likewise.
  7793. (thumb_record_ldm_stm_swi): Likewise.
  7794. (thumb2_record_ld_st_dual_ex_tbb): Likewise.
  7795. (thumb2_record_ld_mem_hints): Likewise.
  7796. (thumb2_record_lmul_lmla_div): Likewise.
  7797. (thumb2_record_asimd_struct_ld_st): Likewise.
  7798. (arm_process_record): Likewise.
  7799. 2016-02-11 Simon Marchi <simon.marchi@ericsson.com>
  7800. * arm-tdep.c (arm_displaced_step_copy_insn): Remove.
  7801. (ARM displaced stepping support): Remove reference to
  7802. arm_displaced_step_copy_insn in comment.
  7803. * arm-tdep.h (arm_displaced_step_copy_insn): Remove.
  7804. * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Remove
  7805. reference to arm_displaced_step_copy_insn in comment.
  7806. 2016-02-11 Simon Marchi <simon.marchi@ericsson.com>
  7807. * arm-tdep.c (thumb_copy_unmodified_16bit): Change type of insn.
  7808. (thumb_copy_b): Likewise.
  7809. (arm_decode_b_bl_ldmstm): Likewise.
  7810. (thumb_copy_16bit_ldr_literal): Likewise.
  7811. (thumb_copy_pop_pc_16bit): Likewise.
  7812. 2016-02-11 Antoine Tremblay <antoine.tremblay@ericsson.com>
  7813. * tracepoint.c (encode_actions_1): Use target_gdbarch () rather
  7814. than loc->gdbarch.
  7815. 2016-02-10 Marcin Kościelnicki <koriakin@0x04.net>
  7816. * tracefile-tfile.c (trace_tdesc): New static variable.
  7817. (tfile_open): Clear trace_tdesc, call target_find_description.
  7818. (tfile_interp_line): Recognize tdesc lines.
  7819. (tfile_close): Clear trace_tdesc.
  7820. (tfile_xfer_partial_features): New function.
  7821. (tfile_xfer_partial): Call tfile_xfer_partial_features.
  7822. (tfile_append_tdesc_line): New function.
  7823. 2016-02-10 Marcin Kościelnicki <koriakin@0x04.net>
  7824. * ctf.c (ctf_write_tdesc): New function.
  7825. (ctf_write_ops): Wire in ctf_write_tdesc.
  7826. * tracefile-tfile.c (tfile_write_tdesc): New function.
  7827. (tfile_write_ops): Wire in tfile_write_tdesc.
  7828. * tracefile.c (trace_save): Call write_tdesc method.
  7829. * tracefile.h (struct trace_file_write_ops): Add write_tdesc method.
  7830. * xml-tdesc.c (target_fetch_description_xml): New function.
  7831. * xml-tdesc.h: Add target_fetch_description_xml prototype.
  7832. 2016-02-10 Simon Marchi <simon.marchi@ericsson.com>
  7833. * arm-tdep.c (arm_copy_extra_ld_st): Fix "unpriveleged" typo.
  7834. (arm_decode_dp_misc): Likewise.
  7835. 2016-02-10 Marcin Kościelnicki <koriakin@0x04.net>
  7836. * amd64-tdep.c (amd64_ax_pseudo_register_collect): New function.
  7837. (amd64_init_abi): Fill ax_pseudo_register_collect hook.
  7838. * i386-tdep.c (i386_pseudo_register_read_into_value): Remove
  7839. misleading comment.
  7840. (i386_pseudo_register_write): Ditto.
  7841. (i386_ax_pseudo_register_collect): New function.
  7842. (i386_gdbarch_init): Fill ax_pseudo_register_collect hook.
  7843. * i386-tdep.h: Add i386_ax_pseudo_register_collect prototype.
  7844. 2016-02-10 Marcin Kościelnicki <koriakin@0x04.net>
  7845. * tracefile-tfile.c (tfile_fetch_registers): Use g packet order
  7846. instead of gdb order.
  7847. 2016-02-10 Marcin Kościelnicki <koriakin@0x04.net>
  7848. * tracefile-tfile.c (tfile_fetch_registers): Fix off-by-one in bounds
  7849. check.
  7850. 2016-02-10 Joel Brobecker <brobecker@adacore.com>
  7851. * NEWS: Create a new section for the next release branch.
  7852. Rename the section of the current branch, now that it has
  7853. been cut.
  7854. 2016-02-10 Joel Brobecker <brobecker@adacore.com>
  7855. GDB 7.11 branch created (9ef9e6a6a0dd8f948708cb67c9afcfd0be40cb0a):
  7856. * version.in: Bump version to 7.11.50.DATE-git.
  7857. 2016-02-09 Keith Seitz <keiths@redhat.com>
  7858. PR breakpoints/19546
  7859. * breakpoint.c (breakpoint_event_location_empty_p): New function.
  7860. (update_breakpoints_after_exec, bkpt_re_set): Use this new function
  7861. instead of event_location_empty_p.
  7862. 2016-02-09 Keith Seitz <keiths@redhat.com>
  7863. * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Use
  7864. string_to_event_location_basic instead of string_to_event_location.
  7865. 2016-02-09 Keith Seitz <keiths@redhat.com>
  7866. * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Skip
  7867. leading whitespace and use string_to_event_location_basic instead
  7868. of new_linespec_location.
  7869. 2016-02-09 Keith Seitz <keiths@redhat.com>
  7870. PR python/19506
  7871. * python/py-breakpoint.c (bppy_init): Use
  7872. string_to_event_location_basic instead of new_linespec_location.
  7873. 2016-02-09 Keith Seitz <keiths@redhat.com>
  7874. * location.c (string_to_explicit_location): Note that "-p" is
  7875. reserved for probe locations and return NULL for any input
  7876. that starts with that.
  7877. (string_to_event_location): Move "legacy" linespec code to ...
  7878. (string_to_event_location_basic): ... here.
  7879. * location.h (string_to_event_location): Update comment.
  7880. (string_to_event_location_basic): New function.
  7881. 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
  7882. * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
  7883. to AC_OUTPUT. Remove "exit 0" at the end.
  7884. * configure: Regenerate.
  7885. 2016-02-09 Pedro Alves <palves@redhat.com>
  7886. PR breakpoints/19548
  7887. * breakpoint.c (create_overlay_event_breakpoint): Don't update
  7888. global location list here.
  7889. (create_longjmp_master_breakpoint)
  7890. (create_std_terminate_master_breakpoint)
  7891. (create_exception_master_breakpoint, create_jit_event_breakpoint)
  7892. (update_breakpoint_locations):
  7893. (breakpoint_re_set): Update global location list after all
  7894. breakpoints are re-set.
  7895. 2016-02-08 Simon Marchi <simon.marchi@ericsson.com>
  7896. * remote.c (remote_register_number_and_offset): Remove unused
  7897. variable(s).
  7898. (remote_thread_always_alive): Likewise.
  7899. (remote_update_thread_list): Likewise.
  7900. (process_initial_stop_replies): Likewise.
  7901. (remote_start_remote): Likewise.
  7902. (remote_check_symbols): Likewise.
  7903. (discard_pending_stop_replies): Likewise.
  7904. (process_stop_reply): Likewise.
  7905. (putpkt_binary): Likewise.
  7906. (getpkt): Likewise.
  7907. (remote_add_target_side_condition): Likewise.
  7908. (remote_insert_breakpoint): Likewise.
  7909. (remote_supports_stopped_by_sw_breakpoint): Likewise.
  7910. (remote_supports_stopped_by_hw_breakpoint): Likewise.
  7911. (remote_xfer_partial): Likewise.
  7912. (remote_read_btrace): Likewise.
  7913. (remote_async_serial_handler): Likewise.
  7914. (remote_thread_events): Likewise.
  7915. (_initialize_remote): Likewise.
  7916. 2016-02-07 Simon Marchi <simon.marchi@polymtl.ca>
  7917. * varobj.h (varobj_delete): Remove dellist parameter, update and
  7918. move documentation here.
  7919. * varobj.c (struct cpstack, cppush, cppop): Remove.
  7920. (delete_variable): Remove resultp (first) parameter.
  7921. (delete_variable_1): Likewise.
  7922. (varobj_delete): Remove dellist parameter and unused code.
  7923. (update_dynamic_varobj_children): Adjust varobj_delete call.
  7924. (update_type_if_necessary): Likewise.
  7925. (varobj_set_visualizer): Likewise.
  7926. (varobj_update): Likewise.
  7927. (value_of_root): Likewise.
  7928. (varobj_invalidate_iter): Likewise.
  7929. * mi/mi-cmd-var.c (mi_cmd_var_delete): Likewise.
  7930. 2016-02-04 Yao Qi <yao.qi@linaro.org>
  7931. * remote.c (remote_wait_as): Set rs->waiting_for_stop_reply to
  7932. 0 before handling 'F' and set it back afterwards.
  7933. 2016-02-02 Simon Marchi <simon.marchi@ericsson.com>
  7934. * ui-out.c (MAX_UI_OUT_LEVELS): Remove.
  7935. 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
  7936. * amd64-linux-siginfo.c (nat_siginfo_t, nat_sigval_t, nat_timeval):
  7937. New types.
  7938. (compat_siginfo): New bound fields added.
  7939. (compat_x32_siginfo): New field added.
  7940. (cpt_si_addr_lsb): New define.
  7941. (compat_siginfo_from_siginfo): Use nat_siginfo.
  7942. (siginfo_from_compat_siginfo): Use nat_siginfo.
  7943. (compat_x32_siginfo_from_siginfo): Likewise.
  7944. (siginfo_from_compat_x32_siginfo): Likewise.
  7945. 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
  7946. * linux-tdep.c (linux_get_siginfo_type): Add the _addr_bnd
  7947. structure to the siginfo if extra_fields contains
  7948. LINUX_SIGINFO_FIELD_ADDR_BND.
  7949. 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
  7950. * linux-tdep.h (linux_get_siginfo_type_with_fields): Make extern.
  7951. * linux-tdep.c (linux_get_siginfo_type_with_fields): Make extern.
  7952. * i386-linux-tdep.h (x86_linux_get_siginfo_type): New
  7953. function.
  7954. * amd64-linux-tdep.c (amd64_linux_init_abi_common): Add
  7955. x86_linux_get_siginfo_type for the amd64 abi.
  7956. * i386-linux-tdep.c (x86_linux_get_siginfo_type): New
  7957. function.
  7958. (i386_linux_init_abi): Add new function at the i386 ABI
  7959. initialization.
  7960. 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
  7961. * linux-tdep.h (linux_siginfo_extra_field_values): New enum values.
  7962. (linux_siginfo_extra_fields): New enum type.
  7963. * linux-tdep.c (linux_get_siginfo_type_with_fields): New function.
  7964. (linux_get_siginfo_type): Use new function.
  7965. 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
  7966. * nat/amd64-linux-siginfo.c: New file.
  7967. * nat/amd64-linux-siginfo.h: New file.
  7968. * Makefile.in (HFILES_NO_SRCDIR): Add nat/amd64-linux-siginfo.h.
  7969. (amd64-linux-siginfo.o): New rule.
  7970. * config/i386/linux64.mh (NATDEPFILES): Add amd64-linux-siginfo.o.
  7971. * amd64-linux-nat.c (nat/amd64-linux-siginfo.h): New include.
  7972. (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
  7973. (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
  7974. (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
  7975. (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
  7976. (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
  7977. (cpt_si_fd, si_timerid, si_overrun): Move to nat/amd64-linux-siginfo.c.
  7978. 2016-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
  7979. * value.c (max_value_size): New variable.
  7980. (MIN_VALUE_FOR_MAX_VALUE_SIZE): New define.
  7981. (set_max_value_size): New function.
  7982. (show_max_value_size): New function.
  7983. (check_type_length_before_alloc): New function.
  7984. (allocate_value_contents): Call check_type_length_before_alloc.
  7985. (set_value_enclosing_type): Likewise.
  7986. (_initialize_values): Add set/show handler for max-value-size.
  7987. * NEWS: Mention new set/show command.
  7988. 2016-01-31 Simon Marchi <simon.marchi@polymtl.ca>
  7989. * varobj.h (struct varobj): Fix typos in comments.
  7990. (struct lang_varobj_ops): Likewise.
  7991. * varobj.c (VAROBJ_TABLE_SIZE): Likewise.
  7992. (varobj_create): Move misplaced comment.
  7993. 2016-01-29 Simon Marchi <simon.marchi@ericsson.com>
  7994. * aarch64-tdep.c (aarch64_record_asimd_load_store): Add braces
  7995. to for include additional lines.
  7996. * xcoffread.c (scan_xcoff_symtab): Remove unnecessary braces.
  7997. 2016-01-28 Simon Marchi <simon.marchi@ericsson.com>
  7998. * gnulib/import/Makefile.am: Regenerate.
  7999. * gnulib/import/Makefile.in: Regenerate.
  8000. * gnulib/import/m4/gnulib-cache.m4: Regenerate.
  8001. * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add rawmemchr.
  8002. 2016-01-28 Simon Marchi <simon.marchi@ericsson.com>
  8003. * remote.c (skip_to_semicolon): Remove.
  8004. (remote_parse_stop_reply): Use strchrnul instead of
  8005. skip_to_semicolon.
  8006. * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
  8007. strchrnul.
  8008. * gnulib/aclocal.m4: Regenerate.
  8009. * gnulib/config.in: Regenerate.
  8010. * gnulib/configure: Regenerate.
  8011. * gnulib/import/Makefile.am: Regenerate.
  8012. * gnulib/import/Makefile.in: Regenerate.
  8013. * gnulib/import/m4/gnulib-cache.m4: Regenerate.
  8014. * gnulib/import/m4/gnulib-comp.m4: Regenerate.
  8015. * gnulib/import/m4/rawmemchr.m4: New file.
  8016. * gnulib/import/m4/strchrnul.m4: New file.
  8017. * gnulib/import/rawmemchr.c: New file.
  8018. * gnulib/import/rawmemchr.valgrind: New file.
  8019. * gnulib/import/strchrnul.c: New file.
  8020. * gnulib/import/strchrnul.valgrind: New file.
  8021. 2016-01-28 Yao Qi <yao.qi@linaro.org>
  8022. * breakpoint.c (build_target_command_list): Don't call continue
  8023. if aexpr is NULL.
  8024. (build_target_condition_list): Likewise.
  8025. 2016-01-27 Kevin Buettner <kevinb@redhat.com>
  8026. * rx-tdep.c (rx_push_dummy_call): Treat scalars larger than 8
  8027. bytes as aggregates.
  8028. 2016-01-27 Joel Brobecker <brobecker@adacore.com>
  8029. * MAINTAINERS (Responsible Maintainers): Add Keith Seitz as
  8030. Linespec Maintainers.
  8031. 2016-01-26 Simon Marchi <simon.marchi@ericsson.com>
  8032. * common/common-utils.c (skip_spaces): Fix comment.
  8033. (skip_to_space_const): Likewise.
  8034. 2016-01-25 Yao Qi <yao.qi@linaro.org>
  8035. * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
  8036. Remove argument pc. Get pc by regcache_read_pc. Callers updated.
  8037. (arm_deal_with_atomic_sequence_raw): Likewise.
  8038. (thumb_get_next_pcs_raw): Likewise.
  8039. (arm_get_next_pcs_raw): Likewise.
  8040. (arm_get_next_pcs): Remove argument pc. Callers updated.
  8041. * arch/arm-get-next-pcs.h (arm_get_next_pcs): Update declaration.
  8042. 2016-01-25 Mark Wielaard <mjw@redhat.com>
  8043. * ada-lang.c (ada_evaluate_subexp): Add proper else block.
  8044. * c-typeprint.c (c_type_print_base): Fix misleading indentation of
  8045. if statement.
  8046. * inflow.c (child_terminal_ours_1): Fix misleading indentation of
  8047. statement block by introducing an else.
  8048. * linux-record.c (record_linux_sockaddr): Fix misleading indentation
  8049. of return statements.
  8050. (record_linux_msghdr): Likewise.
  8051. 2016-01-25 Pedro Alves <palves@redhat.com>
  8052. PR threads/19461
  8053. * infrun.c (handle_inferior_event_1) <fork/vfork>: Update
  8054. parent/child running states.
  8055. 2016-01-25 Pedro Alves <palves@redhat.com>
  8056. PR gdb/19494
  8057. * linux-nat.c (kill_one_lwp): New, factored out from ...
  8058. (kill_callback): ... this.
  8059. (kill_wait_callback): New, factored out from ...
  8060. (kill_wait_one_lwp): ... this.
  8061. (kill_unfollowed_fork_children): New function.
  8062. (linux_nat_kill): Use it.
  8063. 2016-01-22 John Baldwin <jhb@FreeBSD.org>
  8064. * fbsd-nat.c (fbsd_pid_to_str): Adjust string format.
  8065. 2016-01-22 Yao Qi <yao.qi@linaro.org>
  8066. * arm-linux-nat.c (fetch_fpregs): Call perror_with_name
  8067. instead of warning.
  8068. (store_fpregs, fetch_regs, store_regs): Likewise.
  8069. (fetch_wmmx_regs, store_wmmx_regs): Likewise.
  8070. (fetch_vfp_regs, store_vfp_regs): Likewise.
  8071. 2016-01-21 Doug Evans <dje@google.com>
  8072. * breakpoint.c (init_breakpoint_sal): Add comment.
  8073. 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
  8074. * ax-gdb.c (gen_traced_pop): Use gen_fetch for string collection.
  8075. 2016-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
  8076. * disasm.c (maybe_add_dis_line_entry): Rename to...
  8077. (add_dis_line_entry): ...this, and update header comment.
  8078. (do_mixed_source_and_assembly): Now use add_dis_line_entry.
  8079. 2016-01-21 Pedro Alves <palves@redhat.com>
  8080. * Makefile.in (COMPILER_CFLAGS): New.
  8081. (CXXFLAGS): Get it from configure.
  8082. (INTERNAL_CFLAGS_BASE, INTERNAL_LDFLAGS): Use COMPILER_CFLAGS
  8083. instead of CFLAGS.
  8084. * build-with-cxx.m4 (GDB_AC_BUILD_WITH_CXX): Set and AC_SUBST
  8085. COMPILER_CFLAGS.
  8086. * configure: Regenerate.
  8087. 2016-01-21 Joel Brobecker <brobecker@adacore.com>
  8088. * location.h (new_address_location): Add new parameters
  8089. "addr_string" and "addr_string_len".
  8090. (get_address_string_location): Add declaration.
  8091. * location.c (new_address_location): Add new parameters
  8092. "addr_string" and "addr_string_len". If not NULL, store
  8093. a copy of the addr_string in the new location as well.
  8094. (get_address_string_location): New function.
  8095. (string_to_event_location): Update call to new_address_location.
  8096. * linespec.c (event_location_to_sals) <ADDRESS_LOCATION>:
  8097. Save the event location in the parser's state before
  8098. passing it to convert_address_location_to_sals.
  8099. * breakpoint.c (create_thread_event_breakpoint): Update call
  8100. to new_address_location.
  8101. (init_breakpoint_sal): Get the event location's string, if any,
  8102. and use it to update call to new_address_location.
  8103. * python/py-finishbreakpoint.c (bpfinishpy_init):
  8104. Update call to new_address_location.
  8105. * spu-tdep.c (spu_catch_start): Likewise.
  8106. * config/djgpp/fnchange.lst: Add entries for
  8107. gdb/testsuite/gdb.base/break-fun-addr1.c and
  8108. gdb/testsuite/gdb.base/break-fun-addr2.c.
  8109. 2016-01-21 Yao Qi <yao.qi@linaro.org>
  8110. * arm-linux-tdep.c (arm_linux_sigreturn_next_pc): Add parameter
  8111. is_thumb and set it according to CPSR saved on the stack.
  8112. (arm_linux_get_next_pcs_syscall_next_pc): Pass is_thumb to
  8113. arm_linux_sigreturn_next_pc.
  8114. 2016-01-20 Simon Marchi <simon.marchi@polymtl.ca>
  8115. * python/lib/gdb/printing.py (FlagEnumerationPrinter.__call__):
  8116. Fix enumerators sort key function.
  8117. 2016-01-20 Joel Brobecker <brobecker@adacore.com>
  8118. * printcmd.c (print_scalar_formatted): Move binary operator from
  8119. end of line to beginning of next line. Adjust formatting
  8120. accordingly.
  8121. 2016-01-19 John Baldwin <jhb@FreeBSD.org>
  8122. * fbsd-nat.c (fbsd_pid_to_exec_file): Use new "buflen" instead of
  8123. "len" with sysctl.
  8124. 2016-01-19 John Baldwin <jhb@FreeBSD.org>
  8125. * fbsd-tdep.c (find_stop_signal): Remove.
  8126. (struct fbsd_collect_regset_section_cb) <lwp>: New field.
  8127. <stop_signal>: New field.
  8128. <abort_iteration>: New field.
  8129. (fbsd_collect_regset_section_cb): Use new fields.
  8130. (fbsd_collect_thread_registers): New function.
  8131. (struct fbsd_corefile_thread_data): New structure.
  8132. (fbsd_corefile_thread): New function.
  8133. (fbsd_make_corefile_notes): Use new function to dump notes for each
  8134. non-exited thread in a process.
  8135. 2016-01-19 John Baldwin <jhb@FreeBSD.org>
  8136. * configure.ac: Check for support for LWP names on FreeBSD.
  8137. * fbsd-nat.c [PT_LWPINFO] New variable debug_fbsd_lwp.
  8138. [TDP_RFPPWAIT || HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME]
  8139. (fbsd_fetch_kinfo_proc): Move function earlier.
  8140. [PT_LWPINFO] (fbsd_thread_alive): New function.
  8141. [PT_LWPINFO] (fbsd_pid_to_str): New function.
  8142. [HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME] (fbsd_thread_name): New function.
  8143. [PT_LWP_EVENTS] (fbsd_enable_lwp_events): New function.
  8144. [PT_LWPINFO] (fbsd_add_threads): New function.
  8145. [PT_LWPINFO] (fbsd_update_thread_list): New function.
  8146. [PT_LWPINFO] New variable super_resume.
  8147. [PT_LWPINFO] (resume_one_thread_cb): New function.
  8148. [PT_LWPINFO] (resume_all_threads_cb): New function.
  8149. [PT_LWPINFO] (fbsd_resume): New function.
  8150. (fbsd_remember_child): Save full ptid instead of plain pid.
  8151. (fbsd_is_child_pending): Return ptid of saved child process.
  8152. (fbsd_wait): Include lwp in returned ptid and switch to LWP ptid on
  8153. first stop.
  8154. [PT_LWP_EVENTS] Handle LWP events.
  8155. [TDP_RFPPWAIT] Include LWP in child ptid.
  8156. (fbsd_post_startup_inferior) [PT_LWP_EVENTS]: Enable LWP events.
  8157. (fbsd_post_attach) [PT_LWP_EVENTS]: Enable LWP events.
  8158. Add threads for existing processes.
  8159. (fbsd_nat_add_target) [PT_LWPINFO]: Set "to_thread_alive" to
  8160. "fbsd_thread_alive".
  8161. Set "to_pid_to_str" to "fbsd_pid_to_str".
  8162. [HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME]: Set "to_thread_name" to
  8163. "fbsd_thread_name".
  8164. [PT_LWPINFO]: Set "to_update_thread_list" to "fbsd_update_thread_list".
  8165. Set "to_has_thread_control" to "tc_schedlock".
  8166. Set "to_resume" to "fbsd_resume".
  8167. (_initialize_fbsd_nat): New function.
  8168. * configure: Regenerate.
  8169. * config.in: Regenerate.
  8170. 2016-01-19 John Baldwin <jhb@FreeBSD.org>
  8171. * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
  8172. get_ptrace_pid.
  8173. (amd64bsd_store_inferior_registers): Use get_ptrace_pid.
  8174. (amd64bsd_dr_get): Use get_ptrace_pid.
  8175. (amd64bsd_dr_set): Use get_ptrace_pid.
  8176. * i386bsd-nat.c (i386bsd_fetch_inferior_registers): Use get_ptrace_pid.
  8177. (i386bsd_store_inferior_registers): Use get_ptrace_pid.
  8178. (i386bsd_dr_get): Use get_ptrace_pid.
  8179. (i386bsd_dr_set): Use get_ptrace_pid.
  8180. * inf-ptrace.c (get_ptrace_pid): Export.
  8181. * inf-ptrace.h (get_ptrace_pid): Declare.
  8182. * ppcfbsd-nat.c (ppcfbsd_fetch_inferior_registers): Use lwp id.
  8183. (ppcfbsd_store_inferior_registers): Use lwp id.
  8184. 2016-01-19 John Baldwin <jhb@FreeBSD.org>
  8185. * fbsd_tdep.c (fbsd_core_pid_to_str): New function.
  8186. (fbsd_core_thread_name): New function.
  8187. (fbsd_init_abi): Add "core_pid_to_str" gdbarch method.
  8188. Add "core_thread_name" gdbarch method.
  8189. 2016-01-19 John Baldwin <jhb@FreeBSD.org>
  8190. * corelow.c (core_thread_name): New function.
  8191. (init_core_ops): Use "core_thread_name" for the "to_thread_name"
  8192. target op.
  8193. * gdbarch.sh (core_thread_name): New gdbarch callback.
  8194. * gdbarch.h: Re-generate.
  8195. * gdbarch.c: Re-generate.
  8196. 2016-01-19 Simon Marchi <simon.marchi@polymtl.ca>
  8197. * python/lib/gdb/printing.py (_EnumInstance.to_string): Explicitly
  8198. convert gdb.Value to integer type using int().
  8199. 2016-01-19 John Baldwin <jhb@FreeBSD.org>
  8200. * configure.ac: Include <sys/types.h when checking for "r_fs" in
  8201. "struct reg".
  8202. * configure: Regenerate.
  8203. 2016-01-19 Pedro Alves <palves@redhat.com>
  8204. * ax-gdb.c (agent_command_1): Adjust call to decode_line_full.
  8205. * break-catch-throw.c (re_set_exception_catchpoint): Pass the
  8206. current program space down to linespec decoding and breakpoint
  8207. location updating.
  8208. * breakpoint.c (parse_breakpoint_sals): Adjust calls to
  8209. decode_line_full.
  8210. (until_break_command): Adjust calls to decode_line_1.
  8211. (base_breakpoint_decode_location, bkpt_decode_location): Add
  8212. 'search_pspace' parameter. Pass it along.
  8213. (bkpt_probe_create_sals_from_location): Adjust calls to
  8214. parse_probes.
  8215. (tracepoint_decode_location, tracepoint_probe_decode_location)
  8216. (strace_marker_decode_location): Add 'search_pspace' parameter.
  8217. Pass it along.
  8218. (all_locations_are_pending): Rewrite to take a breakpoint and
  8219. program space as arguments instead.
  8220. (hoist_existing_locations): New function.
  8221. (update_breakpoint_locations): Add 'filter_pspace' parameter. Use
  8222. hoist_existing_locations instead of always removing all locations,
  8223. and adjust to all_locations_are_pending change.
  8224. (location_to_sals): Add 'search_pspace' parameter. Pass it along.
  8225. Don't disable the breakpoint if there are other locations in
  8226. another program space.
  8227. (breakpoint_re_set_default): Adjust to pass down the current
  8228. program space as filter program space.
  8229. (decode_location_default): Add 'search_pspace' parameter and pass
  8230. it along.
  8231. (prepare_re_set_context): Don't switch program space here.
  8232. (breakpoint_re_set): Use save_current_space_and_thread instead of
  8233. save_current_program_space.
  8234. * breakpoint.h (struct breakpoint_ops) <decode_location>: Add
  8235. 'search_pspace' parameter.
  8236. (update_breakpoint_locations): Add 'filter_pspace' parameter.
  8237. * cli/cli-cmds.c (edit_command, list_command): Adjust calls to
  8238. decode_line_1.
  8239. * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the current
  8240. program space as filter program space.
  8241. * linespec.c (struct linespec_state) <search_pspace>: New field.
  8242. (create_sals_line_offset, convert_explicit_location_to_sals)
  8243. (parse_linespec): Pass the search program space down.
  8244. (linespec_state_constructor): Add 'search_pspace' parameter.
  8245. Store it.
  8246. (linespec_parser_new): Add 'search_pspace' parameter and pass it
  8247. along.
  8248. (linespec_lex_to_end): Adjust.
  8249. (decode_line_full, decode_line_1): Add 'search_pspace' parameter
  8250. and pass it along.
  8251. (decode_line_with_last_displayed): Adjust.
  8252. (collect_symtabs_from_filename, symtabs_from_filename): New
  8253. 'search_pspace' parameter. Use it.
  8254. (find_function_symbols): Pass the search program space down.
  8255. * linespec.h (decode_line_1, decode_line_full): Add
  8256. 'search_pspace' parameter.
  8257. * probe.c (parse_probes_in_pspace): New function, factored out
  8258. from ...
  8259. (parse_probes): ... this. Add 'search_pspace' parameter and use
  8260. it.
  8261. * probe.h (parse_probes): Add pspace' parameter.
  8262. * python/python.c (gdbpy_decode_line): Adjust.
  8263. * tracepoint.c (scope_info): Adjust.
  8264. 2016-01-18 Maciej W. Rozycki <macro@imgtec.com>
  8265. * mips-tdep.c (mips_insn_size): Remove 48-bit microMIPS
  8266. instruction support.
  8267. (micromips_next_pc): Likewise.
  8268. (micromips_scan_prologue): Likewise.
  8269. (micromips_deal_with_atomic_sequence): Likewise.
  8270. (micromips_stack_frame_destroyed_p): Likewise.
  8271. (mips_breakpoint_from_pc): Likewise.
  8272. 2016-01-18 Maciej W. Rozycki <macro@imgtec.com>
  8273. * mips-tdep.c (micromips_insn_at_pc_has_delay_slot): Pass
  8274. unshifted 16-bit microMIPS instruction word to `mips_insn_size'.
  8275. 2016-01-18 Pedro Alves <palves@redhat.com>
  8276. * NEWS: Mention that GDB now displays the ID and name of the
  8277. thread that hit a breakpoint or received a signal.
  8278. * break-catch-sig.c (signal_catchpoint_print_it): Use
  8279. maybe_print_thread_hit_breakpoint.
  8280. * break-catch-syscall.c (print_it_catch_syscall): Likewise.
  8281. * break-catch-throw.c (print_it_exception_catchpoint): Likewise.
  8282. * breakpoint.c (maybe_print_thread_hit_breakpoint): New function.
  8283. (print_it_catch_fork, print_it_catch_vfork, print_it_catch_solib)
  8284. (print_it_catch_exec, print_it_ranged_breakpoint)
  8285. (print_it_watchpoint, print_it_masked_watchpoint, bkpt_print_it):
  8286. Use maybe_print_thread_hit_breakpoint.
  8287. * breakpoint.h (maybe_print_thread_hit_breakpoint): Declare.
  8288. * gdbthread.h (show_thread_that_caused_stop): Declare.
  8289. * infrun.c (print_signal_received_reason): Print which thread
  8290. received signal.
  8291. * thread.c (show_thread_that_caused_stop): New function.
  8292. 2016-01-18 Gary Benson <gbenson@redhat.com>
  8293. * nat/linux-namespaces.c (do_fork): New function.
  8294. (linux_mntns_get_helper): Use the above.
  8295. 2016-01-17 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de> (tiny change)
  8296. Pushed by Joel Brobecker <brobecker@adacore.com>.
  8297. PR gdb/19208
  8298. * dwarf2read.c (read_partial_die): Do not call set_objfile_main_name
  8299. if the function has no name.
  8300. 2016-01-15 Sandra Loosemore <sandra@codesourcery.com>
  8301. * charset.c [PHONY_ICONV] (GDB_DEFAULT_HOST_CHARSET):
  8302. Conditionalize for Windows host.
  8303. (GDB_DEFAULT_TARGET_CHARSET): Match GDB_DEFAULT_HOST_CHARSET.
  8304. (GDB_DEFAULT_TARGET_WIDE_CHARSET): Use UTF-32.
  8305. (phony_iconv_open): Handle both UTF-32 endiannesses.
  8306. (phony_iconv): Likewise. Check for output overflow and clean up
  8307. out-of-input cases. Correct adjustment to input buffer pointer.
  8308. (set_be_le_names) [PHONY_ICONV]: Use hard-wired names to match
  8309. phony_iconv_open.
  8310. 2016-01-15 Pedro Alves <palves@redhat.com>
  8311. * NEWS: Mention star wildcard ranges.
  8312. * cli/cli-utils.c (get_number_or_range): Check state->in_range first.
  8313. (number_range_setup_range): New function.
  8314. * cli/cli-utils.h (number_range_setup_range): New declaration.
  8315. * thread.c (thread_apply_command): Support star TID ranges.
  8316. * tid-parse.c (tid_range_parser_finished)
  8317. (tid_range_parser_string, tid_range_parser_skip)
  8318. (get_tid_or_range, get_tid_or_range): Handle
  8319. TID_RANGE_STATE_STAR_RANGE.
  8320. (tid_range_parser_star_range): New function.
  8321. * tid-parse.h (enum tid_range_state) <TID_RANGE_STATE_STAR_RANGE>:
  8322. New value.
  8323. (tid_range_parser_star_range): New declaration.
  8324. 2016-01-15 Pedro Alves <palves@redhat.com>
  8325. * thread.c (thread_apply_command): Use the tid range parser to
  8326. advance past the thread ID list.
  8327. * tid-parse.c (get_positive_number_trailer): New function.
  8328. (parse_thread_id): Use it.
  8329. (get_tid_or_range): Use it. Return 0 instead of throwing invalid
  8330. thread ID error.
  8331. (get_tid_or_range): Detect negative values. Return 0 instead of
  8332. throwing invalid thread ID error.
  8333. 2016-01-14 Yao Qi <yao.qi@linaro.org>
  8334. * arm-linux-tdep.c (arm_linux_get_next_pcs_syscall_next_pc):
  8335. Declare.
  8336. (arm_linux_get_next_pcs_ops): Install
  8337. arm_linux_get_next_pcs_syscall_next_pc.
  8338. (arm_linux_syscall_next_pc): Change to ...
  8339. (arm_linux_get_next_pcs_syscall_next_pc): ... it.
  8340. (arm_linux_init_abi): Don't set tdep->syscall_next_pc.
  8341. * arm-tdep.c (arm_get_next_pcs_syscall_next_pc): Declare.
  8342. (arm_get_next_pcs_syscall_next_pc): Make it static. Don't
  8343. call tdep->syscall_next_pc.
  8344. * arm-tdep.h (struct gdbarch_tdep) <syscall_next_pc>: Remove.
  8345. (arm_get_next_pcs_syscall_next_pc): Remove.
  8346. 2016-01-14 Yao Qi <yao.qi@linaro.org>
  8347. * remote.c (remote_set_syscall_catchpoint): Cast to char *.
  8348. * thread.c (do_captured_thread_select): Cast to const char *.
  8349. 2016-01-14 Yao Qi <yao.qi@linaro.org>
  8350. * arch/arm-get-next-pcs.c (arm_get_next_pcs_ctor): Change
  8351. argument arm_thumb2_breakpoint to has_thumb2_breakpoint.
  8352. (thumb_get_next_pcs_raw): Check has_thumb2_breakpoint
  8353. instead.
  8354. * arch/arm-get-next-pcs.h (struct arm_get_next_pcs)
  8355. <arm_thumb2_breakpoint>: Remove.
  8356. <has_thumb2_breakpoint>: New field.
  8357. (arm_get_next_pcs_ctor): Update declaration.
  8358. * arm-linux-tdep.c (arm_linux_software_single_step): Pass
  8359. 1 to arm_get_next_pcs_ctor.
  8360. * arm-tdep.c (arm_software_single_step): Pass 0 to
  8361. arm_get_next_pcs_ctor.
  8362. 2016-01-13 Ulrich Weigand <uweigand@de.ibm.com>
  8363. * MAINTAINERS: Add Andreas Arnez as s390 target maintainer.
  8364. 2016-01-13 Yao Qi <yao.qi@linaro.org>
  8365. * arch/arm-get-next-pcs.c (arm_get_next_pcs_raw): Use
  8366. byte_order_for_code to read instruction.
  8367. 2016-01-13 Pedro Alves <palves@redhat.com>
  8368. * NEWS: Mention $_gthread.
  8369. * gdbthread.h (struct thread_info) <global_num>: Mention
  8370. $_gthread.
  8371. * thread.c (thread_num_make_value_helper): New function.
  8372. (thread_id_make_value): Delete.
  8373. (thread_id_per_inf_num_make_value, global_thread_id_make_value):
  8374. New.
  8375. (thread_funcs): Adjust.
  8376. (gthread_funcs): New.
  8377. (_initialize_thread): Register $_gthread variable.
  8378. 2016-01-13 Pedro Alves <palves@redhat.com>
  8379. * NEWS: Mention "info threads -gid".
  8380. * gdbthread.h (struct thread_info) <global_num>: Mention "info
  8381. threads -gid".
  8382. * thread.c (info_threads_command): Handle "-gid".
  8383. (_initialize_thread): Adjust "info threads" help string to mention
  8384. -gid.
  8385. 2016-01-13 Pedro Alves <palves@redhat.com>
  8386. * NEWS: Mention InferiorThread.global_num.
  8387. * python/py-infthread.c (thpy_get_global_num): New function.
  8388. (thread_object_getset): Register "global_num".
  8389. 2016-01-13 Pedro Alves <palves@redhat.com>
  8390. * NEWS: Mention that thread IDs are now per inferior and global
  8391. thread IDs.
  8392. * Makefile.in (SFILES): Add tid-parse.c.
  8393. (COMMON_OBS): Add tid-parse.o.
  8394. (HFILES_NO_SRCDIR): Add tid-parse.h.
  8395. * ada-tasks.c: Adjust to use ptid_to_global_thread_id.
  8396. * breakpoint.c (insert_breakpoint_locations)
  8397. (remove_threaded_breakpoints, bpstat_check_breakpoint_conditions)
  8398. (print_one_breakpoint_location, set_longjmp_breakpoint)
  8399. (check_longjmp_breakpoint_for_call_dummy)
  8400. (set_momentary_breakpoint): Adjust to use global IDs.
  8401. (find_condition_and_thread, watch_command_1): Use parse_thread_id.
  8402. (until_break_command, longjmp_bkpt_dtor)
  8403. (breakpoint_re_set_thread, insert_single_step_breakpoint): Adjust
  8404. to use global IDs.
  8405. * dummy-frame.c (pop_dummy_frame_bpt): Adjust to use
  8406. ptid_to_global_thread_id.
  8407. * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
  8408. * gdbthread.h (struct thread_info): Rename field 'num' to
  8409. 'global_num. Add new fields 'per_inf_num' and 'inf'.
  8410. (thread_id_to_pid): Rename thread_id_to_pid to
  8411. global_thread_id_to_ptid.
  8412. (pid_to_thread_id): Rename to ...
  8413. (ptid_to_global_thread_id): ... this.
  8414. (valid_thread_id): Rename to ...
  8415. (valid_global_thread_id): ... this.
  8416. (find_thread_id): Rename to ...
  8417. (find_thread_global_id): ... this.
  8418. (ALL_THREADS, ALL_THREADS_BY_INFERIOR): Declare.
  8419. (print_thread_info): Add comment.
  8420. * tid-parse.h: New file.
  8421. * tid-parse.c: New file.
  8422. * infcmd.c (step_command_fsm_prepare)
  8423. (step_command_fsm_should_stop): Adjust to use the global thread
  8424. ID.
  8425. (until_next_command, until_next_command)
  8426. (finish_command_fsm_should_stop): Adjust to use the global thread
  8427. ID.
  8428. (attach_post_wait): Adjust to check the inferior number too.
  8429. * inferior.h (struct inferior) <highest_thread_num>: New field.
  8430. * infrun.c (handle_signal_stop)
  8431. (insert_exception_resume_breakpoint)
  8432. (insert_exception_resume_from_probe): Adjust to use the global
  8433. thread ID.
  8434. * record-btrace.c (record_btrace_open): Use global thread IDs.
  8435. * remote.c (process_initial_stop_replies): Also consider the
  8436. inferior number.
  8437. * target.c (target_pre_inferior): Clear the inferior's highest
  8438. thread num.
  8439. * thread.c (clear_thread_inferior_resources): Adjust to use the
  8440. global thread ID.
  8441. (new_thread): New inferior parameter. Adjust to use it. Set both
  8442. the thread's global ID and the thread's per-inferior ID.
  8443. (add_thread_silent): Adjust.
  8444. (find_thread_global_id): New.
  8445. (find_thread_id): Make static. Adjust to rename.
  8446. (valid_thread_id): Rename to ...
  8447. (valid_global_thread_id): ... this.
  8448. (pid_to_thread_id): Rename to ...
  8449. (ptid_to_global_thread_id): ... this.
  8450. (thread_id_to_pid): Rename to ...
  8451. (global_thread_id_to_ptid): ... this. Adjust.
  8452. (first_thread_of_process): Adjust.
  8453. (do_captured_list_thread_ids): Adjust to use global thread IDs.
  8454. (should_print_thread): New function.
  8455. (print_thread_info): Rename to ...
  8456. (print_thread_info_1): ... this, and add new show_global_ids
  8457. parameter. Handle it. Iterate over inferiors.
  8458. (print_thread_info): Reimplement as wrapper around
  8459. print_thread_info_1.
  8460. (show_inferior_qualified_tids): New function.
  8461. (print_thread_id): Use it.
  8462. (tp_array_compar): Compare inferior numbers too.
  8463. (thread_apply_command): Use tid_range_parser.
  8464. (do_captured_thread_select): Use parse_thread_id.
  8465. (thread_id_make_value): Adjust.
  8466. (_initialize_thread): Adjust "info threads" help string.
  8467. * varobj.c (struct varobj_root): Update comment.
  8468. (varobj_create): Adjust to use global thread IDs.
  8469. (value_of_root_1): Adjust to use global_thread_id_to_ptid.
  8470. * windows-tdep.c (display_tib): No longer accept an argument.
  8471. * cli/cli-utils.c (get_number_trailer): Make extern.
  8472. * cli/cli-utils.h (get_number_trailer): Declare.
  8473. (get_number_const): Adjust documentation.
  8474. * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Adjust to use global
  8475. thread IDs.
  8476. * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
  8477. (mi_on_normal_stop, mi_output_running_pid, mi_on_resume):
  8478. * mi/mi-main.c (mi_execute_command, mi_cmd_execute): Likewise.
  8479. * guile/scm-breakpoint.c (gdbscm_set_breakpoint_thread_x):
  8480. Likewise.
  8481. * python/py-breakpoint.c (bppy_set_thread): Likewise.
  8482. * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
  8483. * python/py-infthread.c (thpy_get_num): Add comment and return the
  8484. per-inferior thread ID.
  8485. (thread_object_getset): Update comment of "num".
  8486. 2016-01-13 Pedro Alves <palves@redhat.com>
  8487. * breakpoint.c (remove_threaded_breakpoints)
  8488. (print_one_breakpoint_location): Use print_thread_id.
  8489. * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
  8490. (btrace_fetch, btrace_clear): Use print_thread_id.
  8491. * common/print-utils.c (CELLSIZE): Delete.
  8492. (get_cell): Rename to ...
  8493. (get_print_cell): ... this and made extern. Adjust call callers.
  8494. Adjust to use PRINT_CELL_SIZE.
  8495. * common/print-utils.h (get_print_cell): Declare.
  8496. (PRINT_CELL_SIZE): New.
  8497. * gdbthread.h (print_thread_id): Declare.
  8498. * infcmd.c (signal_command): Use print_thread_id.
  8499. * inferior.c (print_inferior): Use print_thread_id.
  8500. * infrun.c (handle_signal_stop)
  8501. (insert_exception_resume_breakpoint)
  8502. (insert_exception_resume_from_probe)
  8503. (print_signal_received_reason): Use print_thread_id.
  8504. * record-btrace.c (record_btrace_info)
  8505. (record_btrace_resume_thread, record_btrace_cancel_resume)
  8506. (record_btrace_step_thread, record_btrace_wait): Use
  8507. print_thread_id.
  8508. * thread.c (thread_apply_all_command): Use print_thread_id.
  8509. (print_thread_id): New function.
  8510. (thread_apply_command): Use print_thread_id.
  8511. (thread_command, thread_find_command, do_captured_thread_select):
  8512. Use print_thread_id.
  8513. 2016-01-13 Pedro Alves <palves@redhat.com>
  8514. * NEWS: Mention InferiorThread.inferior.
  8515. * python/py-infthread.c (thpy_get_inferior): New.
  8516. (thread_object_getset): Register "inferior".
  8517. 2016-01-13 Pedro Alves <palves@redhat.com>
  8518. * NEWS: Mention $_inferior.
  8519. * inferior.c (inferior_id_make_value): New.
  8520. (inferior_funcs): New.
  8521. (_initialize_inferior): Create $_inferior variable.
  8522. 2016-01-13 Pedro Alves <palves@redhat.com>
  8523. PR breakpoints/19388
  8524. * frame.c (get_current_frame): Use validate_registers_access.
  8525. * gdbthread.h (validate_registers_access): Declare.
  8526. * infrun.c (validate_siginfo_access): Delete.
  8527. (siginfo_value_read, siginfo_value_write): Use
  8528. validate_registers_access.
  8529. * thread.c (validate_registers_access): New function.
  8530. 2016-01-12 Josh Stone <jistone@redhat.com>
  8531. Philippe Waroquiers <philippe.waroquiers@skynet.be>
  8532. * NEWS (Changes since GDB 7.10): Mention QCatchSyscalls and the
  8533. syscall_entry and syscall_return stop reasons. Mention GDB
  8534. support for remote catch syscall.
  8535. * remote.c (PACKET_QCatchSyscalls): New enum.
  8536. (remote_set_syscall_catchpoint): New function.
  8537. (remote_protocol_features): New element for QCatchSyscalls.
  8538. (remote_parse_stop_reply): Parse syscall_entry/return stops.
  8539. (init_remote_ops): Install remote_set_syscall_catchpoint.
  8540. (_initialize_remote): Config QCatchSyscalls.
  8541. * linux-nat.h (struct lwp_info) <syscall_state>: Comment typo.
  8542. 2016-01-12 Yao Qi <yao.qi@linaro.org>
  8543. * nat/linux-ptrace.c (linux_child_function): Cast child_stack
  8544. to gdb_byte * and pass to linux_fork_to_function.
  8545. 2016-01-12 Yao Qi <yao.qi@linaro.org>
  8546. * nat/linux-ptrace.c (linux_fork_to_function): Change type
  8547. of argument 'function'.
  8548. (linux_grandchild_function): Change return type to 'int'.
  8549. Change child_stack's type to 'void *'.
  8550. (linux_child_function): Likewise.
  8551. 2016-01-12 Pedro Alves <palves@redhat.com>
  8552. Remove use of the registered trademark symbol throughout.
  8553. 2016-01-12 Thomas Schwinge <thomas@codesourcery.com>
  8554. * reply_mig_hack.awk: Rewrite one regular expression.
  8555. 2016-01-11 Mike Frysinger <vapier@gentoo.org>
  8556. * acinclude.m4: Include new warning.m4 file.
  8557. * configure: Regenerated.
  8558. * configure.ac: Move all warning logic ...
  8559. * warning.m4: ... here.
  8560. 2016-01-08 Yao Qi <yao.qi@linaro.org>
  8561. * extension.c: Include target.h.
  8562. (set_active_ext_lang): Only call install_gdb_sigint_handler,
  8563. check_quit_flag, and set_quit_flag if target_terminal_is_ours
  8564. returns false.
  8565. (restore_active_ext_lang): Likewise.
  8566. * target.c (target_terminal_is_ours): New function.
  8567. * target.h (target_terminal_is_ours): Declare.
  8568. 2016-01-07 Maciej W. Rozycki <macro@imgtec.com>
  8569. * mips-tdep.c (mips_breakpoint_from_pc): Rename local `status'
  8570. to `err' in the little-endian leg.
  8571. 2016-01-06 Yao Qi <yao.qi@linaro.org>
  8572. * arch/arm-get-next-pcs.c (arm_get_next_pcs): Move it to some
  8573. lines below.
  8574. (thumb_get_next_pcs_raw): Make it static.
  8575. (arm_get_next_pcs_raw): Likewise.
  8576. * arch/arm-get-next-pcs.h (thumb_get_next_pcs_raw): Remove the
  8577. declaration.
  8578. (arm_get_next_pcs_raw): Likewise.
  8579. 2016-01-05 Mike Frysinger <vapier@gentoo.org>
  8580. * version.in: Change cvs to git.
  8581. 2016-01-05 Mike Frysinger <vapier@gentoo.org>
  8582. * configure.tgt (score-*-*): Delete gdb_sim assignment.
  8583. 2016-01-05 Pedro Alves <palves@redhat.com>
  8584. PR sim/13418
  8585. * configure.ac: Define WITH_PPC_SIM when linking in the sim and
  8586. the target is powerpc*.
  8587. * rs6000-tdep.c (init_sim_regno_table): Check WITH_PPC_SIM instead
  8588. of WITH_SIM.
  8589. * configure: Regenerate.
  8590. * config.in: Regenerate.
  8591. 2016-01-04 Markus Metzger <markus.t.metzger@intel.com>
  8592. * btrace.c (btrace_pt_readmem_callback): Do not return in TRY/CATCH.
  8593. 2016-01-02 Mike Frysinger <vapier@gentoo.org>
  8594. * configure.tgt (powerpc*-*-*): Delete test call and
  8595. always assign gdb_sim.
  8596. 2016-01-01 Joel Brobecker <brobecker@adacore.com>
  8597. Update year range in copyright notice of all files.
  8598. 2016-01-01 Joel Brobecker <brobecker@adacore.com>
  8599. * top.c (print_gdb_version): Change copyright year in version
  8600. message.
  8601. 2016-01-01 Joel Brobecker <brobecker@adacore.com>
  8602. * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2015.
  8603. For older changes see ChangeLog-2015.
  8604. Local Variables:
  8605. mode: change-log
  8606. left-margin: 8
  8607. fill-column: 74
  8608. version-control: never
  8609. coding: utf-8
  8610. End: