ChangeLog-2018 637 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188
  1. 2018-12-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
  2. * top.c (command_line_input): Use unique_xmalloc_ptr to
  3. manage memory allocated by readline.
  4. 2018-12-30 Tom Tromey <tom@tromey.com>
  5. * event-top.h (command_line_handler): Update.
  6. * top.c (class gdb_readline_wrapper_cleanup) <m_handler_orig>:
  7. Update.
  8. (gdb_readline_wrapper_line): Update.
  9. * top.h (struct ui) <input_handler>: Take a unique_xmalloc_ptr.
  10. (handle_line_of_input): Update.
  11. * event-top.c: Update.
  12. (gdb_readline_no_editing_callback): Update.
  13. (command_line_handler): Take a unique_xmalloc_ptr.
  14. (handle_line_of_input): Take a const char *.
  15. (command_line_append_input_line): Take a const char *.
  16. 2018-12-28 Tom Tromey <tom@tromey.com>
  17. * source-cache.c (get_language_name): Conditionally compile.
  18. 2018-12-28 Tom Tromey <tom@tromey.com>
  19. * jit.c (free_objfile_data): Only delete breakpoint if non-null.
  20. 2018-12-28 Tom Tromey <tom@tromey.com>
  21. * NEWS: Mention terminal styling.
  22. 2018-12-28 Tom Tromey <tom@tromey.com>
  23. * utils.h (can_emit_style_escape): Declare.
  24. * utils.c (can_emit_style_escape): No longer static.
  25. * cli/cli-style.c (set_style_enabled): New function.
  26. (_initialize_cli_style): Use it.
  27. * tui/tui-winsource.c (tui_show_source_line): Use tui_puts.
  28. (tui_alloc_source_buffer): Change how source lines are allocated.
  29. * tui/tui-source.c (copy_source_line): New function.
  30. (tui_set_source_content): Use source cache.
  31. * tui/tui-io.h (tui_puts): Update.
  32. * tui/tui-io.c (tui_puts_internal): Add window parameter.
  33. (tui_puts): Likewise.
  34. (tui_redisplay_readline): Update.
  35. * tui/tui-data.c (free_content_elements): Change how source window
  36. contents are freed.
  37. * source.c (forget_cached_source_info): Clear the source cache.
  38. (print_source_lines_base): Use the source cache.
  39. * source-cache.h: New file.
  40. * source-cache.c: New file.
  41. * configure.ac: Check for GNU Source Highlight library.
  42. * configure: Update.
  43. * config.in: Update.
  44. * Makefile.in (SRCHIGH_LIBS, SRCHIGH_CFLAGS): New variables.
  45. (INTERNAL_CFLAGS_BASE): Add SRCHIGH_CFLAGS.
  46. (CLIBS): Add SRCHIGH_LIBS.
  47. (COMMON_SFILES): Add source-cache.c.
  48. (HFILES_NO_SRCDIR): Add source-cache.h.
  49. 2018-12-28 Tom Tromey <tom@tromey.com>
  50. * tui/tui-winsource.c (tui_show_source_line): Use wclrtoeol.
  51. 2018-12-28 Tom Tromey <tom@tromey.com>
  52. PR tui/14126:
  53. * tui/tui.c (tui_enable): Call start_color and
  54. use_default_colors.
  55. * tui/tui-io.c (struct color_pair): New.
  56. (color_pair_map, last_color_pair, last_style): New globals.
  57. (tui_setup_io): Clean up color map when shutting down.
  58. (curses_colors): New constant.
  59. (get_color_pair, apply_ansi_escape): New functions.
  60. (tui_write): Rewrite.
  61. (tui_puts_internal): New function, from tui_puts. Add "height"
  62. parameter.
  63. (tui_puts): Use tui_puts_internal.
  64. (tui_redisplay_readline): Use tui_puts_internal.
  65. (_initialize_tui_io): New function.
  66. (color_map): New globals.
  67. (get_color): New function.
  68. * configure.ac: Check for use_default_colors.
  69. * config.in, configure: Rebuild.
  70. 2018-12-28 Tom Tromey <tom@tromey.com>
  71. * ui-out.h (enum class ui_out_style_kind) <ADDRESS>: New
  72. constant.
  73. * ui-out.c (ui_out::field_core_addr): Add styling.
  74. * stack.c (print_frame): Add styling.
  75. * printcmd.c (print_address): Add styling.
  76. (print_address_demangle, info_address_command): Likewise.
  77. * cli/cli-style.h (address_style): Declare.
  78. * cli/cli-style.c (address_style): New global.
  79. (_initialize_cli_style): Register new commands.
  80. * cli-out.c (cli_ui_out::do_field_string): Update.
  81. 2018-12-28 Tom Tromey <tom@tromey.com>
  82. * symfile.c (symbol_file_add_with_addrs): Style file name.
  83. 2018-12-28 Tom Tromey <tom@tromey.com>
  84. * top.c (print_gdb_version): Style gdb version number.
  85. 2018-12-28 Tom Tromey <tom@tromey.com>
  86. * printcmd.c (print_address_symbolic): Style function name.
  87. 2018-12-28 Tom Tromey <tom@tromey.com>
  88. * breakpoint.c (say_where): Style file name.
  89. 2018-12-28 Tom Tromey <tom@tromey.com>
  90. * ui-out.h (enum class ui_out_style_kind) <VARIABLE>: New global.
  91. * stack.c (print_frame_arg): Style name.
  92. * printcmd.c (print_variable_and_value): Style variable name.
  93. * cli/cli-style.h (variable_name_style): Declare.
  94. * cli/cli-style.c (variable_name_style): New global.
  95. (_initialize_cli_style): Update.
  96. * cli-out.c (cli_ui_out::do_field_string): Update.
  97. 2018-12-28 Tom Tromey <tom@tromey.com>
  98. * utils.h (reset_terminal_style): Declare.
  99. * utils.c (can_emit_style_escape): New function.
  100. (set_output_style): Use it.
  101. (reset_terminal_style): New function.
  102. * printcmd.c (printf_command): Call reset_terminal_style.
  103. * cli/cli-cmds.c (echo_command): Call reset_terminal_style.
  104. 2018-12-28 Tom Tromey <tom@tromey.com>
  105. * utils.h (set_output_style, fprintf_styled)
  106. (fputs_styled): Declare.
  107. * utils.c (applied_style, desired_style): New globals.
  108. (emit_style_escape, set_output_style): New function.
  109. (prompt_for_continue): Emit style escapes.
  110. (fputs_maybe_filtered): Likewise.
  111. (fputs_styled, fprintf_styled): New functions.
  112. * ui-out.h (enum class ui_out_style_kind): New.
  113. (class ui_out) <field_string, field_stream, do_field_string>: Add
  114. style parameter.
  115. * ui-out.c (ui_out::field_stream, ui_out::field_string): Add style
  116. parameter.
  117. * tui/tui-out.h (class tui_ui_out) <do_field_string>: Add style
  118. parameter.
  119. * tui/tui-out.c (tui_ui_out::do_field_string): Add style
  120. parameter.
  121. (tui_ui_out::do_field_string): Update.
  122. * tracepoint.c (print_one_static_tracepoint_marker): Style
  123. output.
  124. * stack.c (print_frame_info, print_frame): Style output.
  125. * source.c (print_source_lines_base): Style output.
  126. * skip.c (info_skip_command): Style output.
  127. * record-btrace.c (btrace_call_history_src_line): Style output.
  128. (btrace_call_history): Likewise.
  129. * python/py-framefilter.c (py_print_frame): Style output.
  130. * mi/mi-out.h (class mi_ui_out) <do_field_string>: Add style
  131. parameter.
  132. * mi/mi-out.c (mi_ui_out::do_table_header)
  133. (mi_ui_out::do_field_int): Update.
  134. (mi_ui_out::do_field_string): Update.
  135. * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
  136. Style output.
  137. * cli/cli-style.h: New file.
  138. * cli/cli-style.c: New file.
  139. * cli-out.h (class cli_ui_out) <do_field_string>: Add style
  140. parameter.
  141. * cli-out.c (cli_ui_out::do_table_header)
  142. (cli_ui_out::do_field_int, cli_ui_out::do_field_skip): Update.
  143. (cli_ui_out::do_field_string): Add style parameter. Style the
  144. output.
  145. * breakpoint.c (print_breakpoint_location): Style output.
  146. (update_static_tracepoint): Likewise.
  147. * Makefile.in (SUBDIR_CLI_SRCS): Add cli-style.c.
  148. (HFILES_NO_SRCDIR): Add cli-style.h.
  149. 2018-12-28 Tom Tromey <tom@tromey.com>
  150. * unittests/style-selftests.c: New file.
  151. * ui-style.c: New file.
  152. * ui-style.h: New file.
  153. * ui-file.h: Include ui-style.h.
  154. * Makefile.in (COMMON_SFILES): Add ui-style.c.
  155. (HFILES_NO_SRCDIR): Add ui-style.h.
  156. (SUBDIR_UNITTESTS_SRCS): Add style-selftests.c.
  157. 2018-12-28 Tom Tromey <tom@tromey.com>
  158. * command.h (add_setshow_enum_cmd): Add "context" argument.
  159. * cli/cli-decode.c (add_setshow_enum_cmd): Add "context"
  160. argument. Call set_cmd_context.
  161. 2018-12-28 Tom Tromey <tom@tromey.com>
  162. * utils.c (filter_initialized): New global.
  163. (wrap_buffer): Now a std::string.
  164. (wrap_pointer): Remove.
  165. (flush_wrap_buffer): New function.
  166. (filtered_printing_initialized, set_width, wrap_here)
  167. (fputs_maybe_filtered): Update.
  168. 2018-12-28 Eli Zaretskii <eliz@gnu.org>
  169. * coffread.c (coff_symtab_read): Don't record in minsyms symbols
  170. that are unresolved. This avoids triggering an internal error
  171. when stepping outside of 'main' in MinGW programs.
  172. 2018-12-27 Tom Tromey <tom@tromey.com>
  173. * python/py-utils.c (gdbpy_handle_exception): Translate
  174. PyExc_KeyboardInterrupt to quit.
  175. 2018-12-27 Tom Tromey <tom@tromey.com>
  176. * python/python-internal.h (gdbpy_print_stack_or_quit): Declare.
  177. * python/py-unwind.c (pyuw_sniffer): Use
  178. gdbpy_print_stack_or_quit.
  179. * python/py-framefilter.c (throw_quit_or_print_exception):
  180. Remove.
  181. (gdbpy_apply_frame_filter): Use gdbpy_print_stack_or_quit.
  182. * python/python.c (gdbpy_print_stack_or_quit): New function.
  183. 2018-12-27 Tom Tromey <tom@tromey.com>
  184. * python/py-value.c (convert_value_from_python): Use
  185. gdbpy_convert_exception.
  186. * python/py-param.c (parmpy_init): Use gdbpy_convert_exception.
  187. * python/py-cmd.c (cmdpy_init): Use gdbpy_convert_exception.
  188. * python/py-breakpoint.c (bppy_init): Use
  189. gdbpy_convert_exception.
  190. 2018-12-27 Tom Tromey <tom@tromey.com>
  191. * configure.nat (NATDEPFILES): Use nat/ prefix.
  192. * Makefile.in (CONFIG_SRC_SUBDIR): Add nat.
  193. (%.o: ${srcdir}/nat/%.c): Remove rule.
  194. (INIT_FILES): Do not filter out NATDEPFILES.
  195. 2018-12-27 Tom Tromey <tom@tromey.com>
  196. * Makefile.in (INIT_FILES): Redefine.
  197. (stamp-init): Remove sed, tr invocations. Use for loop. Don't
  198. set LANG or LC_ALL.
  199. 2018-12-27 Tom Tromey <tom@tromey.com>
  200. * Makefile.in (stamp-init): Remove gdbtypes special case.
  201. 2018-12-27 John Baldwin <jhb@FreeBSD.org>
  202. * config/i386/nm-fbsd.h: Remove file.
  203. * Makefile.in (HFILES_NO_SRCDIR): Remove config/i386/nm-fbsd.h.
  204. * configure.nat: Remove NAT_FILE for FreeBSD/i386.
  205. 2018-12-27 Tom Tromey <tom@tromey.com>
  206. * minsyms.h (class minimal_symbol_reader): Use
  207. DISABLE_COPY_AND_ASSIGN.
  208. 2018-12-27 Tom Tromey <tom@tromey.com>
  209. * python/python.c (python_interactive_command): Use std::string.
  210. (gdbpy_parameter): Likewise.
  211. * python/py-utils.c (unicode_to_encoded_string): Update comment.
  212. * python/py-symtab.c (salpy_str): Use PyString_FromFormat.
  213. * python/py-record-btrace.c (recpy_bt_insn_data): Use
  214. byte_vector.
  215. * python/py-objfile.c (objfpy_get_build_id): Use
  216. unique_xmalloc_ptr.
  217. * python/py-inferior.c (infpy_read_memory): Use
  218. unique_xmalloc_ptr.
  219. * python/py-cmd.c (gdbpy_parse_command_name): Use std::string.
  220. 2018-12-26 Simon Marchi <simon.marchi@polymtl.ca>
  221. * target.c (target_terminal::restore_inferior): Remove struct keyword.
  222. 2018-12-26 Simon Marchi <simon.marchi@ericsson.com>
  223. * build-id.c (build_id_to_debug_bfd): Enhance debug output.
  224. * symfile.c (separate_debug_file_exists): Likewise.
  225. 2018-12-24 Andrew Burgess <andrew.burgess@embecosm.com>
  226. * c-exp.y (field_name): Allow DOUBLE_KEYWORD, INT_KEYWORD, LONG,
  227. SHORT, SIGNED_KEYWORD, and UNSIGNED tokens to act as a field
  228. names.
  229. (typename_stoken): New function.
  230. 2018-12-24 Andrew Burgess <andrew.burgess@embecosm.com>
  231. * c-exp.y (field_name): New %token, and new rule.
  232. (exp): Replace uses of 'name' with 'field_name' where appropriate.
  233. 2018-12-24 Andrew Burgess <andrew.burgess@embecosm.com>
  234. PR gdb/13368
  235. * c-exp.y (typebase): Extend the comment.
  236. (ident_tokens): Likewise.
  237. 2018-12-18 Tom Tromey <tom@tromey.com>
  238. * dwarf2read.c (dwarf2_find_containing_comp_unit): Don't take
  239. address of sect_off.
  240. 2018-12-23 Joel Brobecker <brobecker@adacore.com>
  241. GDB 8.2.1 released.
  242. 2018-12-22 Andrew Burgess <andrew.burgess@embecosm.com>
  243. * riscv-tdep.c (riscv_call_arg_struct): Don't adjust size before
  244. assigning locations.
  245. (riscv_return_value): Take more care not to read/write outside of
  246. argument buffer. Cast return value between the declared type and
  247. the abi type.
  248. 2018-12-22 Andrew Burgess <andrew.burgess@embecosm.com>
  249. * riscv-tdep.c (riscv_register_reggroup_p): Save and restore fcsr,
  250. fflags, and frm registers.
  251. 2018-12-22 Andrew Burgess <andrew.burgess@embecosm.com>
  252. * riscv-tdep.c (riscv_dwarf_reg_to_regnum): New function.
  253. (riscv_gdbarch_init): Register new function with gdbarch.
  254. * riscv-tdep.h: New enum to define RISC-V DWARF register numbers.
  255. 2018-12-21 Simon Marchi <simon.marchi@ericsson.com>
  256. * minsyms.c (mst_str): New.
  257. (minimal_symbol_reader::record_full): Add debug output.
  258. 2018-12-21 John Baldwin <jhb@FreeBSD.org>
  259. * fbsd-nat.c (fbsd_handle_debug_trap): Require pl.pl_flags to
  260. equal PL_FLAG_SI.
  261. (fbsd_nat_target::stopped_by_sw_breakpoint): Likewise.
  262. 2018-12-21 Paul Marechal <paul.marechal@ericsson.com>
  263. PR gdb/23974
  264. * target.c (target_read_stralloc): Check for empty vector.
  265. 2018-12-21 Дилян Палаузов <dilyan.palauzov@aegee.org>
  266. * top.c (print_gdb_configuration): Print "--without-python"
  267. if GDB was configured without Python.
  268. 2018-12-21 Andrew Burgess <andrew.burgess@embecosm.com>
  269. * riscv-tdep.c (riscv_scan_prologue): Use plongest to format
  270. a signed offset as a string.
  271. 2018-12-21 Dave Murphy <davem@devkitpro.org>
  272. * dtrace-probe.c (dtrace_static_probe_ops): Explicit zero
  273. initialise.
  274. * probe.c (any_static_probe_ops): Ditto.
  275. * record-btrace.c (record_btrace_thread_observer_token): Ditto.
  276. * stap-probe.c (stap_static_probe_ops): Ditto.
  277. * tui/tui-hooks.c (tui_observers_token): Ditto.
  278. * unittests/observable-selftests.c (token1, token2, token3): Ditto.
  279. 2018-12-19 Andrew Burgess <andrew.burgess@embecosm.com>
  280. * dummy-frame.c (default_dummy_id): Defined new function.
  281. * dummy-frame.h (default_dummy_id): Declare new function.
  282. * frame-unwind.c (default_unwind_pc): Define new function.
  283. (default_unwind_sp): Define new function.
  284. * frame-unwind.h (default_unwind_pc): Declare new function.
  285. (default_unwind_sp): Declare new function.
  286. * frame.c (frame_unwind_pc): Assume gdbarch_unwind_pc is
  287. available.
  288. (get_frame_sp): Assume that gdbarch_unwind_sp is available.
  289. * gdbarch.c: Regenerate.
  290. * gdbarch.h: Regenerate.
  291. * gdbarch.sh: Update definition of dummy_id, unwind_pc, and
  292. unwind_sp. Add additional header files to be included in
  293. generated file.
  294. 2018-12-19 Dimitar Dimitrov <dimitar@dinux.eu>
  295. * nat/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Remove
  296. sp clobbers.
  297. 2018-12-17 Andrew Burgess <andrew.burgess@embecosm.com>
  298. * dwarf2read.c (struct dwarf2_cu): Convert the fields 'mark',
  299. 'has_loclist', 'checked_producer', 'producer_is_gxx_lt_4_6',
  300. 'producer_is_gcc_lt_4_3', 'producer_is_icc_lt_14',
  301. 'processing_has_namespace_info' from unsigned int to bool. Update
  302. comments.
  303. (producer_is_icc_lt_14): Update return type.
  304. (producer_is_gcc_lt_4_3): Likewise.
  305. (producer_is_gxx_lt_4_6): Likewise.
  306. (process_die): Write true instead of 1 into predicate fields.
  307. (dwarf2_start_symtab): Likewise.
  308. (var_decode_location): Likewise.
  309. (dwarf2_mark_helper): Likewise.
  310. (dwarf2_mark): Likewise.
  311. (dwarf2_clear_marks): Write false instead of 0 into predicate
  312. field.
  313. (dwarf2_cu::dwarf2_cu): Initialise predicate fields to false, not
  314. 0.
  315. 2018-12-17 Szabolcs Nagy <szabolcs.nagy@arm.com>
  316. * nat/aarch64-sve-linux-ptrace.h: Include signal.h instead of
  317. asm/sigcontext.h.
  318. 2018-12-17 Philippe Waroquiers <philippe.waroquiers@skynet.be>
  319. * nat/linux-ptrace.c (kill_child): Fix ARI warning by removing
  320. warning trailing new line.
  321. 2018-12-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
  322. * nat/linux-ptrace.c (kill_child): New function.
  323. (linux_ptrace_test_ret_to_nx): Use kill_child instead of local code.
  324. Add a call to kill_child in case of early return after fork.
  325. (linux_check_ptrace_features): Use kill_child instead of local code.
  326. (linux_test_for_tracefork): Likewise.
  327. 2018-12-14 Tom Tromey <tom@tromey.com>
  328. * Makefile.in: Remove "alloca" comment.
  329. (INFOFILES): Remove.
  330. (local-maintainer-clean): Don't use INFOFILES.
  331. 2018-12-13 John Baldwin <jhb@FreeBSD.org>
  332. * syscalls/update-freebsd.sh: New file.
  333. * syscalls/freebsd.xml: Regenerate.
  334. 2018-12-13 John Baldwin <jhb@FreeBSD.org>
  335. * NEWS: Add entry documenting system call aliases.
  336. * break-catch-syscall.c (catch_syscall_split_args): Pass 'result'
  337. to get_syscalls_by_name.
  338. * gdbarch.sh (UNKNOWN_SYSCALL): Remove.
  339. * gdbarch.h: Regenerate.
  340. * syscalls/gdb-syscalls.dtd (syscall): Add alias attribute.
  341. * xml-syscall.c [!HAVE_LIBEXPAT] (get_syscalls_by_name): Rename
  342. from get_syscall_by_name. Now accepts a pointer to a vector of
  343. integers and returns a bool.
  344. [HAVE_LIBEXPAT] (struct syscall_desc): Add alias member.
  345. (syscall_create_syscall_desc): Add alias parameter and pass it to
  346. syscall_desc constructor.
  347. (syscall_start_syscall): Handle alias attribute.
  348. (syscall_attr): Add alias attribute.
  349. (xml_get_syscalls_by_name): Rename from xml_get_syscall_number.
  350. Now accepts a pointer to a vector of integers and returns a
  351. bool. Add syscalls whose alias or name matches the requested
  352. name.
  353. (get_syscalls_by_name): Rename from get_syscall_by_name. Now
  354. accepts a pointer to a vector of integers and returns a bool.
  355. * xml-syscall.h (get_syscalls_by_name): Likewise.
  356. 2018-12-13 John Baldwin <jhb@FreeBSD.org>
  357. * break-catch-syscall.c (catch_syscall_split_args): Pass 'result'
  358. to get_syscalls_by_group.
  359. * xml-syscall.c [!HAVE_LIBEXPAT] (get_syscalls_by_group): Return
  360. false.
  361. [HAVE_LIBEXPAT] (xml_list_syscalls_by_group): Append syscall
  362. numbers to an existing vector of integers and return a bool.
  363. (get_syscalls_by_group): Accept pointer to vector of integers
  364. and change return type to bool.
  365. * xml-syscall.h (get_syscalls_by_group): Likewise.
  366. 2018-12-13 Jim Wilson <jimw@sifive.com>
  367. * riscv-tdep.c (riscv_print_one_register_info): For MSTATUS, add
  368. comment for SD field, and correct xlen calculation. For MISA, add
  369. comment for MXL field, add call to register_size, and correct base
  370. calculation.
  371. 2018-12-13 Stafford Horne <shorne@gmail.com>
  372. * NEWS(New targets): Add or1k*-*-linux*.
  373. 2018-12-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
  374. * nat/linux-osdata.c (linux_xfer_osdata_info_os_types): Forward
  375. declare on one line to fix ARI warning.
  376. 2018-12-12 Andrew Burgess <andrew.burgess@embecosm.com>
  377. * infrun.c (infcall_suspend_state::infcall_suspend_state): New.
  378. (infcall_suspend_state::registers): New.
  379. (infcall_suspend_state::restore): New.
  380. (infcall_suspend_state::thread_suspend): Rename to...
  381. (infcall_suspend_state::m_thread_suspend): ...this.
  382. (infcall_suspend_state::registers): Rename to...
  383. (infcall_suspend_state::m_registers): ...this.
  384. (infcall_suspend_state::siginfo_gdbarch): Rename to...
  385. (infcall_suspend_state::m_siginfo_gdbarch): ...this.
  386. (infcall_suspend_state::siginfo_data): Rename to...
  387. (infcall_suspend_state::m_siginfo_data): ...this.
  388. (save_infcall_suspend_state): Rewrite to use infcall_suspend_state
  389. constructor.
  390. (restore_infcall_suspend_state): Rewrite to use
  391. infcall_suspend_state::restore method.
  392. (get_infcall_suspend_state_regcache): Use
  393. infcall_suspend_state::registers method.
  394. 2018-12-12 Andrew Burgess <andrew.burgess@embecosm.com>
  395. * riscv-tdep.c (riscv_call_arg_scalar_float): Unnamed (variadic)
  396. arguments are passed in integer registers.
  397. (riscv_call_arg_complex_float): Likewise.
  398. 2018-12-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
  399. * nat/linux-osdata.c (common_getter): New function.
  400. (struct osdata_type): Change getter to take_snapshot.
  401. Add LONGEST len_avail and struct buffer buffer.
  402. Change all elements in the initializer.
  403. Add an element for the list of types.
  404. (linux_xfer_osdata_info_os_types): New function.
  405. (linux_common_xfer_osdata): Use common_getter for the list of types.
  406. Replace getter call by common_getter.
  407. (linux_xfer_osdata_cpus): Remove args READBUF, OFFSET, LEN.
  408. Add arg BUFFER. Only keep the code that adds data in BUFFER.
  409. (linux_xfer_osdata_fds): Likewise.
  410. (linux_xfer_osdata_modules): Likewise.
  411. (linux_xfer_osdata_msg): Likewise.
  412. (linux_xfer_osdata_processes): Likewise.
  413. (linux_xfer_osdata_processgroups): Likewise.
  414. (linux_xfer_osdata_sem): Likewise.
  415. (linux_xfer_osdata_shm): Likewise.
  416. (linux_xfer_osdata_isockets): Likewise.
  417. (linux_xfer_osdata_threads): Likewise.
  418. 2018-12-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
  419. * nat/linux-osdata.c: Removed various trailing spaces.
  420. 2018-12-10 Andrew Burgess <andrew.burgess@embecosm.com>
  421. * riscv-tdep.c (riscv_register_name): Fix ARI warning by removing
  422. leading whitespace before #include line.
  423. 2018-12-08 Simon Marchi <simon.marchi@ericsson.com>
  424. Дилян Палаузов <dilyan.palauzov@aegee.org>
  425. PR gdb/23950
  426. * configure.ac: Search for tgetent in libtinfow.
  427. * configure: Re-generate.
  428. 2018-12-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
  429. * linux-thread-db.c (struct thread_db_info): Add td_ta_delete_p.
  430. (thread_db_err_str): Forward declare.
  431. (delete_thread_db_info): Call td_ta_delete_p if available.
  432. (try_thread_db_load_1): Acquire td_ta_delete address.
  433. * nat/gdb_thread_db.h (td_ta_delete_ftype): Declare.
  434. 2018-12-08 Pedro Alves <palves@redhat.com>
  435. * source.c (forward_search_command): Rename to ...
  436. (search_command_helper): ... this. Add 'forward' parameter.
  437. Tweak to use a gdb::def_vector<char> instead of a xrealloc'ed
  438. buffer. Handle backward searches too.
  439. (forward_search_command, reverse_search_command): Reimplement by
  440. calling search_command_helper.
  441. 2018-12-07 Andrew Burgess <andrew.burgess@embecosm.com>
  442. * .dir-locals.el: Copy most of the settings from c-mode over to
  443. c++-mode.
  444. 2018-12-08 Stafford Horne <shorne@gmail.com>
  445. * Makefile.in (ALL_TARGET_OBS): Add or1k-linux-tdep.o.
  446. * configure.tgt: Add or1k*-*-linux*.
  447. * or1k-linux-tdep.c: New file.
  448. * or1k-tdep.c (or1k_gdbarch_init): Call gdbarch_init_osabi.
  449. 2018-12-07 Pedro Alves <palves@redhat.com>
  450. * dwarf2read.c (get_gdb_index_contents_from_section): Use
  451. gdb::make_array_view.
  452. 2018-12-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
  453. * language.c (_initialize_language): Fix leak by assigning
  454. a static string to language. Same for range and case_sensitive,
  455. even if no leak is detected for these variables.
  456. 2018-12-05 John Baldwin <jhb@FreeBSD.org>
  457. * configure: Re-generate.
  458. * configure.ac: Use separate sed expressions to escape variables
  459. in auto-load directories.
  460. 2018-12-05 Andrew Burgess <andrew.burgess@embecosm.com>
  461. * riscv-tdep.c (riscv_features_from_gdbarch_info): New function.
  462. (riscv_find_default_target_description): Use new function to
  463. extract feature from gdbarch_info.
  464. (riscv_gdbarch_init): Add error checks for xlen and flen between
  465. target description and bfd headers. Be smarter about when we
  466. think the hardware floating point abi should be used.
  467. 2018-12-05 Alan Hayward <alan.hayward@arm.com>
  468. * nat/aarch64-linux-hw-point.c
  469. (aarch64_linux_any_set_debug_regs_state): New function.
  470. * nat/aarch64-linux-hw-point.h
  471. (aarch64_linux_any_set_debug_regs_state): New declaration.
  472. * nat/aarch64-linux.c (aarch64_linux_new_thread): Check if any
  473. BPs or WPs are set.
  474. 2018-11-30 John Baldwin <jhb@FreeBSD.org>
  475. * common/filestuff.c [HAVE_KINFO_GETFILE]: Include headers.
  476. (fdwalk) [HAVE_KINFO_GETFILE]: Use kinfo_getfile.
  477. 2018-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
  478. Simon Marchi <simon.marchi@ericsson.com>
  479. * linespec.c (symtab_vector_up): Remove.
  480. (symtabs_from_filename): Change return type to std::vector.
  481. (collect_symtabs_from_filename): Likewise.
  482. (create_sals_line_offset): Assign return value of
  483. collect_symtabs_from_filename to *ls->file_symtabs.
  484. (convert_explicit_location_to_linespec): Remove call to release.
  485. (parse_linespec): Likewise.
  486. (symtab_collector) <symtab_collector>: Remove initialization of
  487. m_symtabs.
  488. <release_symtabs>: Change return type to std::vector<symtab *>.
  489. <operator ()>: Adjust.
  490. 2018-11-30 John Baldwin <jhb@FreeBSD.org>
  491. * fbsd-nat.c [__FreeBSD_version >= 700009] (USE_SIGINFO): Macro
  492. defined.
  493. (union sigval32, struct siginfo32, fbsd_siginfo_size)
  494. (fbsd_convert_siginfo): Make conditional on USE_SIGINFO instead
  495. of KERN_PROC_AUXV and PT_LWPINFO.
  496. (fbsd_nat_target::xfer_partial): Define method unconditionally.
  497. Make TARGET_OBJECT_SIGNAL_INFO conditional on USE_SIGINFO.
  498. Make TARGET_OBJECT_AUXV conditional on KERN_PROC_AUXV.
  499. Make TARGET_OBJECT_FREEBSD_VMMAP and
  500. TARGET_OBJECT_FREEBSD_PS_STRINGS conditional on KERN_PROC_VMMAP
  501. and KERN_PROC_PS_STRINGS.
  502. * fbsd-nat.h: Include <sys/proc.h>.
  503. (fbsd_nat_target::xfer_partial): Declare method unconditionally.
  504. 2018-11-30 Andrew Burgess <andrew.burgess@embecosm.com>
  505. * riscv-linux-nat.c: Add 'inferior.h' and 'target-descriptions.h'
  506. header files.
  507. (riscv_linux_nat_target::read_description): New method.
  508. 2018-11-30 Andrew Burgess <andrew.burgess@embecosm.com>
  509. * arch/riscv.h (riscv_gdbarch_features::hash): New method.
  510. * arch/riscv.c (struct riscv_gdbarch_features_hasher): New.
  511. (riscv_tdesc_cache): New global.
  512. (riscv_create_target_description): Look in the cache before
  513. creating a new target description.
  514. 2018-11-30 Andrew Burgess <andrew.burgess@embecosm.com>
  515. * arch/riscv.h (riscv_gdb_features::operator==): New.
  516. (riscv_gdb_features::operator!=): New.
  517. * riscv-tdep.c (riscv_gdbarch_init): Make use of the inequality
  518. operator.
  519. 2018-11-30 Andrew Burgess <andrew.burgess@embecosm.com>
  520. * arch/riscv.h (riscv_create_target_description): Make return type
  521. const.
  522. * arch/riscv.c (riscv_create_target_description): Likewise.
  523. * riscv-tdep.c (riscv_find_default_target_description): Likewise.
  524. 2018-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
  525. Keith Seitz <keiths@redhat.com>
  526. Tom Tromey <tom@tromey.com>
  527. Sergio Durigan Junior <sergiodj@redhat.com>
  528. https://bugzilla.redhat.com/show_bug.cgi?id=1613614
  529. * dwarf2read.c (dwarf2_find_containing_comp_unit): Add
  530. 'mid_cu->length' to '*cu_off' when checking if 'sect_off' is
  531. inside the CU.
  532. 2018-11-30 Pedro Alves <palves@redhat.com>
  533. * aix-thread.c (aix_thread_target) <aix_thread_target>: Delete.
  534. <stratum>: New override.
  535. * bfd-target.c (aix_thread_target) <aix_thread_target>: Delete.
  536. <stratum>: New override.
  537. * bsd-uthread.c (bsd_uthread_target) <bsd_uthread_target>: Delete.
  538. <stratum>: New override.
  539. * exec.c (exec_target) <exec_target>: Delete.
  540. <stratum>: New override.
  541. * gdbarch-selftests.c (register_to_value_test): Adjust to use the
  542. stratum method instead of the to_stratum field.
  543. * linux-thread-db.c (thread_db_target) <thread_db_target>: Delete.
  544. <stratum>: New override.
  545. (thread_db_target::thread_db_target): Delete.
  546. * make-target-delegates (print_class): Don't print a ctor
  547. declaration. Print a stratum method override declaration.
  548. * process-stratum-target.h (process_stratum_target)
  549. <process_stratum_target>: Delete.
  550. <stratum>: New override.
  551. * ravenscar-thread.c (ravenscar_thread_target)
  552. <ravenscar_thread_target>: Delete.
  553. <stratum>: New override.
  554. * record-btrace.c (record_btrace_target)
  555. <record_btrace_target>: Delete.
  556. <stratum>: New override.
  557. * record-full.c (record_full_base_target)
  558. <record_full_base_target>: Delete.
  559. <stratum>: New override.
  560. * record.c (record_disconnect, record_detach)
  561. (record_mourn_inferior, record_kill): Adjust to use the stratum
  562. method instead of the to_stratum field.
  563. * regcache.c (cooked_read_test, cooked_write_test): Likewise.
  564. * sol-thread.c (sol_thread_target)
  565. <sol_thread_target>: Delete.
  566. <stratum>: New override.
  567. * spu-multiarch.c (spu_multiarch_target)
  568. <spu_multiarch_target>: Delete.
  569. <stratum>: New override.
  570. * target-delegates.c: Regenerate.
  571. * target.c (target_stack::push, target_stack::unpush)
  572. (pop_all_targets_above, pop_all_targets_at_and_above)
  573. (info_target_command, target_require_runnable)
  574. (target_stack::find_beneath): Adjust to use the stratum method
  575. instead of the to_stratum field.
  576. (dummy_target::dummy_target): Delete.
  577. (dummy_target::stratum): New.
  578. (debug_target::debug_target): Delete.
  579. (debug_target::stratum): New.
  580. (maintenance_print_target_stack): Adjust to use the stratum method
  581. instead of the to_stratum field.
  582. * target.h (struct target_ops) <stratum>: New method.
  583. <to_stratum>: Delete.
  584. <is_pushed>: Adjust to use the stratum method
  585. instead of the to_stratum field.
  586. 2018-11-30 Pedro Alves <palves@redhat.com>
  587. * corelow.c (core_target) <has_all_memory, has_execution>: New
  588. overrides.
  589. * inf-child.c (inf_child_target::has_all_memory)
  590. (inf_child_target::has_memory, inf_child_target::has_stack)
  591. (inf_child_target::has_registers)
  592. (inf_child_target::has_execution): Delete.
  593. * inf-child.h (inf_child_target) <has_all_memory, has_memory,
  594. has_stack, has_registers, has_execution>: Delete.
  595. * process-stratum-target.c
  596. (process_stratum_target::has_all_memory)
  597. (process_stratum_target::has_memory)
  598. (process_stratum_target::has_stack)
  599. (process_stratum_target::has_registers)
  600. (process_stratum_target::has_execution): New.
  601. * process-stratum-target.h (process_stratum_target)
  602. <has_all_memory, has_memory, has_stack, has_registers,
  603. has_execution>: New method overrides.
  604. * ravenscar-thread.c (ravenscar_thread_target) <has_all_memory,
  605. has_memory, has_stack, has_registers, has_execution>: Delete.
  606. * remote-sim.c (gdbsim_target) <has_stack, has_registers,
  607. has_execution>: Delete.
  608. * remote.c (remote_target) <has_all_memory, has_memory, has_stack,
  609. has_registers, has_execution>: Delete.
  610. * target.c (default_child_has_all_memory)
  611. (default_child_has_memory, default_child_has_stack)
  612. (default_child_has_registers, default_child_has_execution):
  613. Delete.
  614. * target.h (default_child_has_all_memory)
  615. (default_child_has_memory, default_child_has_stack)
  616. (default_child_has_registers, default_child_has_execution):
  617. Delete.
  618. * tracefile.h (tracefile_target) <has_execution>: New override.
  619. 2018-11-30 Pedro Alves <palves@redhat.com>
  620. * Makefile.in (COMMON_SFILES): Add process-stratum-target.c.
  621. * bsd-kvm.c: Include "process-stratum-target.h".
  622. (bsd_kvm_target): Now inherits from process_stratum_target.
  623. (bsd_kvm_target::bsd_kvm_target): Default it.
  624. * corelow.c: Include "process-stratum-target.h".
  625. (core_target): Now inherits from process_stratum_target.
  626. (core_target::core_target): Don't set to_stratum here.
  627. * inf-child.c (inf_child_target::inf_child_target): Delete.
  628. * inf-child.h: Include "process-stratum-target.h".
  629. (inf_child_target): Inherit from process_stratum_target.
  630. (inf_child_target) <inf_child_target>: Default it.
  631. <can_async_p, supports_non_stop, supports_disable_randomization>:
  632. Delete overrides.
  633. * process-stratum-target.c: New file.
  634. * process-stratum-target.h: New file.
  635. * remote-sim.c: Include "process-stratum-target.h".
  636. (gdbsim_target): Inherit from process_stratum_target.
  637. <gdbsim_target>: Default it.
  638. * remote.c: Include "process-stratum-target.h".
  639. (remote_target): Inherit from process_stratum_target.
  640. <remote_target>: Default it.
  641. * target.c (default_thread_address_space)
  642. (default_thread_architecture): Delete.
  643. * target.h (target_ops) <thread_architecture>: Now returns NULL by
  644. default.
  645. <thread_address_space>: Ditto.
  646. * test-target.h: Include "process-stratum-target.h" instead of
  647. "target.h".
  648. (test_target_ops): Inherit from process_stratum_target.
  649. <test_target_ops>: Default it.
  650. * tracefile.c (tracefile_target::tracefile_target): Delete.
  651. * tracefile.h: Include "process-stratum-target.h".
  652. (tracefile_target): Inherit from process_stratum_target.
  653. <tracefile_target>: Default it.
  654. * target-delegates.c: Regenerate.
  655. 2018-11-30 Pedro Alves <palves@redhat.com>
  656. * Makefile.in (COMMON_SFILES): Add test-target.c.
  657. * gdbarch-selftests.c: Include "test-target.h".
  658. * regcache.c: Include "test-target.h".
  659. * target.c (test_target_info, test_target_ops::info): Move to ...
  660. * test-target.c: ... this new file.
  661. * target.h (test_target_ops): Move to ...
  662. * test-target.h: ... this new file.
  663. 2018-11-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
  664. * source.c (forward_search_command): Fix leak by using
  665. xrealloc even for the first allocation in the loop, as buf
  666. is static.
  667. 2018-11-29 Rajendra SY <rajendra.sy@gmail.com>
  668. PR gdb/23093
  669. * fbsd-tdep.c (fbsd_gdb_signal_from_target)
  670. (fbsd_gdb_signal_to_target): New.
  671. (fbsd_init_abi): Install gdbarch "signal_from_target" and
  672. "signal_to_target" methods.
  673. 2018-11-29 Tom Tromey <tom@tromey.com>
  674. * valarith.c (value_x_unop): Don't set argvec[3].
  675. 2018-11-26 Simon Marchi <simon.marchi@ericsson.com>
  676. PR gdb/23917
  677. * sparc-linux-nat.c (sparc_linux_nat_target): Remove extraneous
  678. semicolon.
  679. 2018-11-26 Pedro Alves <palves@redhat.com>
  680. * procfs.c (procfs_notice_thread): Replace uses of
  681. in_thread_list/is_exited with find_thread_ptid/THREAD_EXITED.
  682. * sol-thread.c (sol_thread_target::wait)
  683. (sol_update_thread_list_callback): Likewise.
  684. 2018-11-25 Tom Tromey <tom@tromey.com>
  685. * ui-out.c (ui_out::field_fmt): Remove comment.
  686. * tui/tui-out.c (tui_ui_out::do_field_fmt): Remove comment.
  687. * mi/mi-out.c (mi_ui_out::do_field_fmt): Remove comment.
  688. 2018-11-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
  689. * source.c (open_source_file): Leak fixed in '8e6a5953e1d Fix 4K
  690. leak in open_source_file' has been partially undone by '2179fbc36d23
  691. Return scoped_fd from open_source_file'. Re-add the transfer of
  692. current s->fullname to the unique_xmalloc_ptr fullname given
  693. to find_and_open_source.
  694. 2018-11-23 Pedro Alves <palves@redhat.com>
  695. * gdbthread.h (enum thread_state): Move comments here.
  696. (is_running, is_stopped, is_exited): Remove declarations.
  697. 2018-11-22 Pedro Alves <palves@redhat.com>
  698. * Makefile.in (COMMON_SFILES): Add thread-iter.c.
  699. * breakpoint.c (breakpoints_should_be_inserted_now): Replace
  700. ALL_NON_EXITED_THREADS with all_non_exited_threads.
  701. (print_one_breakpoint_location): Replace ALL_INFERIORS with
  702. all_inferiors.
  703. * bsd-kvm.c: Include inferior.h.
  704. * btrace.c (btrace_free_objfile): Replace ALL_NON_EXITED_THREADS
  705. with all_non_exited_threads.
  706. * common/filtered-iterator.h: New.
  707. * common/safe-iterator.h: New.
  708. * corelow.c (core_target_open): Don't call init_thread_list here.
  709. * darwin-nat.c (thread_info_from_private_thread_info): Replace
  710. ALL_THREADS with all_threads.
  711. * fbsd-nat.c (fbsd_nat_target::resume): Replace
  712. ALL_NON_EXITED_THREADS with inf->non_exited_threads.
  713. * fbsd-tdep.c (fbsd_make_corefile_notes): Replace
  714. ALL_NON_EXITED_THREADS with inf->non_exited_threads.
  715. * fork-child.c (postfork_hook): Don't call init_thread_list here.
  716. * gdbarch-selftests.c (register_to_value_test): Adjust.
  717. * gdbthread.h: Don't include "inferior.h" here.
  718. (struct inferior): Forward declare.
  719. (enum step_over_calls_kind): Moved here from inferior.h.
  720. (thread_info::deletable): Definition moved to thread.c.
  721. (find_thread_ptid (inferior *, ptid_t)): Declare.
  722. (ALL_THREADS, ALL_THREADS_BY_INFERIOR, ALL_THREADS_SAFE): Delete.
  723. Include "thread-iter.h".
  724. (all_threads, all_non_exited_threads, all_threads_safe): New.
  725. (any_thread_p): Declare.
  726. (thread_list): Delete.
  727. * infcmd.c (signal_command): Replace ALL_NON_EXITED_THREADS with
  728. all_non_exited_threads.
  729. (proceed_after_attach_callback): Delete.
  730. (proceed_after_attach): Take an inferior pointer instead of an
  731. integer PID. Adjust to use range-for.
  732. (attach_post_wait): Pass down inferior pointer instead of pid.
  733. Use range-for instead of ALL_NON_EXITED_THREADS.
  734. (detach_command): Remove init_thread_list call.
  735. * inferior-iter.h: New.
  736. * inferior.c (struct delete_thread_of_inferior_arg): Delete.
  737. (delete_thread_of_inferior): Delete.
  738. (delete_inferior, exit_inferior_1): Use range-for with
  739. inf->threads_safe() instead of iterate_over_threads.
  740. (inferior_appeared): Call init_thread_list here.
  741. (discard_all_inferiors): Use all_non_exited_inferiors.
  742. (find_inferior_id, find_inferior_pid): Use all_inferiors.
  743. (iterate_over_inferiors): Use all_inferiors_safe.
  744. (have_inferiors, number_of_live_inferiors): Use
  745. all_non_exited_inferiors.
  746. (number_of_inferiors): Use all_inferiors and std::distance.
  747. (print_inferior): Use all_inferiors.
  748. * inferior.h: Include gdbthread.h.
  749. (enum step_over_calls_kind): Moved to gdbthread.h.
  750. (struct inferior) <thread_list>: New field.
  751. <threads, non_exited_threads, threads_safe>: New methods.
  752. (ALL_INFERIORS): Delete.
  753. Include "inferior-iter.h".
  754. (ALL_NON_EXITED_INFERIORS): Delete.
  755. (all_inferiors_safe, all_inferiors, all_non_exited_inferiors): New
  756. functions.
  757. * inflow.c (child_interrupt, child_pass_ctrlc): Replace
  758. ALL_NON_EXITED_THREADS with all_non_exited_threads.
  759. * infrun.c (follow_exec): Use all_threads_safe.
  760. (clear_proceed_status, proceed): Use all_non_exited_threads.
  761. (init_wait_for_inferior): Don't clear inline frame state here.
  762. (infrun_thread_stop_requested, for_each_just_stopped_thread): Use
  763. all_threads instead of ALL_NON_EXITED_THREADS.
  764. (random_pending_event_thread): Use all_non_exited_threads instead
  765. of ALL_NON_EXITED_THREADS. Use a lambda for repeated code.
  766. (clean_up_just_stopped_threads_fsms): Use all_non_exited_threads
  767. instead of ALL_NON_EXITED_THREADS.
  768. (handle_no_resumed): Use all_non_exited_threads instead of
  769. ALL_NON_EXITED_THREADS. Use all_inferiors instead of
  770. ALL_INFERIORS.
  771. (restart_threads, switch_back_to_stepped_thread): Use
  772. all_non_exited_threads instead of ALL_NON_EXITED_THREADS.
  773. * linux-nat.c (check_zombie_leaders): Replace ALL_INFERIORS with
  774. all_inferiors.
  775. (kill_unfollowed_fork_children): Use inf->non_exited_threads
  776. instead of ALL_NON_EXITED_THREADS.
  777. * linux-tdep.c (linux_make_corefile_notes): Use
  778. inf->non_exited_threads instead of ALL_NON_EXITED_THREADS.
  779. * linux-thread-db.c (thread_db_target::update_thread_list):
  780. Replace ALL_INFERIORS with all_inferiors.
  781. (thread_db_target::thread_handle_to_thread_info): Use
  782. inf->non_exited_threads instead of ALL_NON_EXITED_THREADS.
  783. * mi/mi-interp.c (multiple_inferiors_p): New.
  784. (mi_on_resume_1): Simplify using all_non_exited_threads and
  785. multiple_inferiors_p.
  786. * mi/mi-main.c (mi_cmd_thread_list_ids): Use all_non_exited_threads
  787. instead of ALL_NON_EXITED_THREADS.
  788. * nto-procfs.c (nto_procfs_target::open): Don't call
  789. init_thread_list here.
  790. * record-btrace.c (record_btrace_target_open)
  791. (record_btrace_target::stop_recording)
  792. (record_btrace_target::close)
  793. (record_btrace_target::record_is_replaying)
  794. (record_btrace_target::resume, record_btrace_target::wait)
  795. (record_btrace_target::record_stop_replaying): Use
  796. all_non_exited_threads instead of ALL_NON_EXITED_THREADS.
  797. * record-full.c (record_full_wait_1): Use all_non_exited_threads
  798. instead of ALL_NON_EXITED_THREADS.
  799. * regcache.c (cooked_read_test): Remove reference to global
  800. thread_list.
  801. * remote-sim.c (gdbsim_target::create_inferior): Don't call
  802. init_thread_list here.
  803. * remote.c (remote_target::update_thread_list): Use
  804. all_threads_safe instead of ALL_NON_EXITED_THREADS.
  805. (remote_target::process_initial_stop_replies): Replace
  806. ALL_INFERIORS with all_non_exited_inferiors and use
  807. all_non_exited_threads instead of ALL_NON_EXITED_THREADS.
  808. (remote_target::open_1): Don't call init_thread_list here.
  809. (remote_target::append_pending_thread_resumptions)
  810. (remote_target::remote_resume_with_hc): Use all_non_exited_threads
  811. instead of ALL_NON_EXITED_THREADS.
  812. (remote_target::commit_resume)
  813. (remote_target::remove_new_fork_children): Replace ALL_INFERIORS
  814. with all_non_exited_inferiors and use all_non_exited_threads
  815. instead of ALL_NON_EXITED_THREADS.
  816. (remote_target::kill_new_fork_children): Use
  817. all_non_exited_threads instead of ALL_NON_EXITED_THREADS. Remove
  818. init_thread_list and init_wait_for_inferior calls.
  819. (remote_target::remote_btrace_maybe_reopen)
  820. (remote_target::thread_handle_to_thread_info): Use
  821. all_non_exited_threads instead of ALL_NON_EXITED_THREADS.
  822. * target.c (target_terminal::restore_inferior)
  823. (target_terminal_is_ours_kind): Replace ALL_INFERIORS with
  824. all_non_exited_inferiors.
  825. * thread-iter.c: New file.
  826. * thread-iter.h: New file.
  827. * thread.c: Include "inline-frame.h".
  828. (thread_list): Delete.
  829. (clear_thread_inferior_resources): Call clear_inline_frame_state.
  830. (init_thread_list): Use all_threads_safe instead of
  831. ALL_THREADS_SAFE. Adjust to per-inferior thread lists.
  832. (new_thread): Adjust to per-inferior thread lists.
  833. (add_thread_silent): Pass inferior to find_thread_ptid.
  834. (thread_info::deletable): New, moved from the header.
  835. (delete_thread_1): Adjust to per-inferior thread lists.
  836. (find_thread_global_id): Use inf->threads().
  837. (find_thread_ptid): Use find_inferior_ptid and pass inferior to
  838. find_thread_ptid.
  839. (find_thread_ptid(inferior*, ptid_t)): New overload.
  840. (iterate_over_threads): Use all_threads_safe.
  841. (any_thread_p): New.
  842. (thread_count): Use all_threads and std::distance.
  843. (live_threads_count): Use all_non_exited_threads and
  844. std::distance.
  845. (valid_global_thread_id): Use all_threads.
  846. (in_thread_list): Use find_thread_ptid.
  847. (first_thread_of_inferior): Adjust to per-inferior thread lists.
  848. (any_thread_of_inferior, any_live_thread_of_inferior): Use
  849. inf->non_exited_threads().
  850. (prune_threads, delete_exited_threads): Use all_threads_safe.
  851. (thread_change_ptid): Pass inferior pointer to find_thread_ptid.
  852. (set_resumed, set_running): Use all_non_exited_threads.
  853. (is_thread_state, is_stopped, is_exited, is_running)
  854. (is_executing): Delete.
  855. (set_executing, set_stop_requested, finish_thread_state): Use
  856. all_non_exited_threads.
  857. (print_thread_info_1): Use all_inferiors and all_threads.
  858. (thread_apply_all_command): Use all_non_exited_threads.
  859. (thread_find_command): Use all_threads.
  860. (update_threads_executing): Use all_non_exited_threads.
  861. * tid-parse.c (parse_thread_id): Use inf->threads.
  862. * x86-bsd-nat.c (x86bsd_dr_set): Use inf->non_exited_threads ().
  863. 2018-11-22 Pedro Alves <palves@redhat.com>
  864. * infrun.c (follow_exec) <set follow-exec new>: Add thread and
  865. switch to it before calling into try_open_exec_file.
  866. 2018-11-22 Pedro Alves <palves@redhat.com>
  867. * cli/cli-interp.c (cli_on_user_selected_context_changed): Use
  868. inferior_thread instead of find_thread_ptid, and only when
  869. inferior_ptid is not null_ptid.
  870. * inferior.c (add_inferior): Don't include target_pid_to_str
  871. output when the inferior is not started.
  872. * python/py-inferior.c (python_on_normal_stop): Don't use
  873. find_thread_ptid.
  874. (tui_on_user_selected_context_changed): Use inferior_thread
  875. instead of find_thread_ptid, and only when inferior_ptid is not
  876. null_ptid.
  877. 2018-11-21 Benno Fünfstück <benno.fuenfstueck@gmail.com>
  878. PR python/23714
  879. * python/python.c (execute_gdb_command): Call
  880. prevent_dont_repeat earlier to avoid affecting dont_repeat.
  881. 2018-11-21 Andrew Burgess <andrew.burgess@embecosm.com>
  882. * Makefile.in (ALL_TARGET_OBS): Add arch/riscv.o.
  883. (HFILES_NO_SRCDIR): Add arch/riscv.h.
  884. * arch/riscv.c: New file.
  885. * arch/riscv.h: New file.
  886. * configure.tgt: Add cpu_obs list of riscv, move riscv-tdep.o into
  887. this list, and add arch/riscv.o.
  888. * features/Makefile: Add riscv features.
  889. * features/riscv/32bit-cpu.c: New file.
  890. * features/riscv/32bit-cpu.xml: New file.
  891. * features/riscv/32bit-csr.c: New file.
  892. * features/riscv/32bit-csr.xml: New file.
  893. * features/riscv/32bit-fpu.c: New file.
  894. * features/riscv/32bit-fpu.xml: New file.
  895. * features/riscv/64bit-cpu.c: New file.
  896. * features/riscv/64bit-cpu.xml: New file.
  897. * features/riscv/64bit-csr.c: New file.
  898. * features/riscv/64bit-csr.xml: New file.
  899. * features/riscv/64bit-fpu.c: New file.
  900. * features/riscv/64bit-fpu.xml: New file.
  901. * features/riscv/rebuild-csr-xml.sh: New file.
  902. * riscv-tdep.c: Add 'arch/riscv.h' include.
  903. (riscv_gdb_reg_names): Delete.
  904. (csr_reggroup): New global.
  905. (struct riscv_register_alias): Delete.
  906. (struct riscv_register_feature): New structure.
  907. (riscv_register_aliases): Delete.
  908. (riscv_xreg_feature): New global.
  909. (riscv_freg_feature): New global.
  910. (riscv_virtual_feature): New global.
  911. (riscv_csr_feature): New global.
  912. (riscv_create_csr_aliases): New function.
  913. (riscv_read_misa_reg): Delete.
  914. (riscv_has_feature): Delete.
  915. (riscv_isa_xlen): Simplify, just return cached xlen.
  916. (riscv_isa_flen): Simplify, just return cached flen.
  917. (riscv_has_fp_abi): Update for changes in struct gdbarch_tdep.
  918. (riscv_register_name): Update to make use of tdesc_register_name.
  919. Look up xreg and freg names in the new globals riscv_xreg_feature
  920. and riscv_freg_feature. Don't supply csr aliases here.
  921. (riscv_fpreg_q_type): Delete.
  922. (riscv_register_type): Use tdesc_register_type in almost all
  923. cases, override the returned type in a few specific cases only.
  924. (riscv_print_one_register_info): Handle errors reading registers.
  925. (riscv_register_reggroup_p): Use tdesc_register_in_reggroup_p for
  926. registers that are otherwise unknown to GDB. Also check the
  927. csr_reggroup.
  928. (riscv_print_registers_info): Remove assert about upper register
  929. number, and use gdbarch_register_reggroup_p instead of
  930. short-cutting.
  931. (riscv_find_default_target_description): New function.
  932. (riscv_check_tdesc_feature): New function.
  933. (riscv_add_reggroups): New function.
  934. (riscv_setup_register_aliases): New function.
  935. (riscv_init_reggroups): New function.
  936. (_initialize_riscv_tdep): Add calls to setup CSR aliases, and
  937. setup register groups. Register new riscv debug variable.
  938. * riscv-tdep.h: Add 'arch/riscv.h' include.
  939. (struct gdbarch_tdep): Remove abi union, and add
  940. riscv_gdbarch_features field. Remove cached quad floating point
  941. type, and provide initialisation for double type field.
  942. * target-descriptions.c (maint_print_c_tdesc_cmd): Add riscv to
  943. the list of targets using the feature based target descriptions.
  944. * NEWS: Mention target description support.
  945. 2018-11-21 Pedro Alves <palves@redhat.com>
  946. * valops.c (find_method_list, value_find_oload_method_list)
  947. (find_overload_match, find_oload_champ): Rename parameters and
  948. locals.
  949. 2018-11-21 Pedro Alves <palves@redhat.com>
  950. * valops.c (find_method_list): Replace pointer and length
  951. parameters with an gdb::array_view. Adjust.
  952. (value_find_oload_method_list): Likewise.
  953. (find_overload_match): Use gdb::array_view for methods list.
  954. Adjust to find_oload_champ interface change.
  955. (find_oload_champ): 'xm_worker_vec' parameter now a pointer/array.
  956. 'num_fns' parameter now a size_t. Eliminate 'fn_count' local.
  957. 2018-11-21 Pedro Alves <palves@redhat.com>
  958. * gdbtypes.c (compare_badness): Change type of parameters to const
  959. reference. Adjust to badness_vector being a std::vector now.
  960. (rank_function): Adjust to badness_vector being a std::vector now.
  961. * gdbtypes.h (badness_vector): Now a typedef to std::vector.
  962. (LENGTH_MATCH): Delete.
  963. (compare_badness): Change type of parameters to const reference.
  964. (rank_function): Return a badness_vector by value now.
  965. (find_overload_match): Adjust to badness_vector being a
  966. std::vector now. Remove cleanups.
  967. (find_oload_champ_namespace): 'oload_champ_bv' parameter now a
  968. badness_vector pointer.
  969. (find_oload_champ_namespace_loop): 'oload_champ_bv' parameter now
  970. a badness_vector pointer. Adjust to badness_vector being a
  971. std::vector now. Remove cleanups.
  972. (find_oload_champ): 'oload_champ_bv' parameter now
  973. a badness_vector pointer. Adjust to badness_vector being a
  974. std::vector now. Remove cleanups.
  975. 2018-11-21 Pedro Alves <palves@redhat.com>
  976. * cp-support.c (sym_return_val_size, sym_return_val_index)
  977. (sym_return_val): Delete.
  978. (overload_list_add_symbol): Add std::vector parameter. Adjust to
  979. add to the vector.
  980. (make_symbol_overload_list): Adjust to return a std::vector
  981. instead of maintaining a global open coded vector.
  982. (make_symbol_overload_list_block): Add std::vector parameter.
  983. (make_symbol_overload_list_block): Rename to ...
  984. (add_symbol_overload_list_block): ... this and add std::vector
  985. parameter.
  986. (make_symbol_overload_list_namespace): Rename to ...
  987. (add_symbol_overload_list_namespace): ... this and add std::vector
  988. parameter.
  989. (make_symbol_overload_list_adl_namespace): Rename to ...
  990. (add_symbol_overload_list_adl_namespace): ... this and add
  991. std::vector parameter.
  992. (make_symbol_overload_list_adl): Delete.
  993. (add_symbol_overload_list_adl): New.
  994. (make_symbol_overload_list_using): Rename to ...
  995. (add_symbol_overload_list_using): ... this and add std::vector
  996. parameter.
  997. (make_symbol_overload_list_qualified): Rename to ...
  998. (add_symbol_overload_list_qualified): ... this and add std::vector
  999. parameter.
  1000. * cp-support.h: Include "common/array-view.h" and <vector>.
  1001. (make_symbol_overload_list): Change return type to std::vector.
  1002. (make_symbol_overload_list_adl): Delete declaration.
  1003. (add_symbol_overload_list_adl): New declaration.
  1004. * valops.c (find_overload_match): Local 'oload_syms' now a
  1005. std::vector.
  1006. (find_oload_champ_namespace): 'oload_syms' parameter now a
  1007. std::vector pointer.
  1008. (find_oload_champ_namespace_loop): 'oload_syms' parameter now a
  1009. std::vector pointer. Adjust to new make_symbol_overload_list
  1010. interface.
  1011. 2018-11-21 Pedro Alves <palves@redhat.com>
  1012. * common/array-view.h (array_view::splice(size_type, size_t)): New.
  1013. (array_view::splice(size_type)): New.
  1014. * eval.c (eval_call, evaluate_funcall): Adjust to use array_view.
  1015. * extension.c (xmethod_worker::get_arg_types): Adjust to return an
  1016. std::vector.
  1017. (xmethod_worker::get_result_type): Adjust to use gdb::array_view.
  1018. * extension.h: Include "common/array-view.h".
  1019. (xmethod_worker::invoke): Adjust to use gdb::array_view.
  1020. (xmethod_worker::get_arg_types): Adjust to return an std::vector.
  1021. (xmethod_worker::get_result_type): Adjust to use gdb::array_view.
  1022. (xmethod_worker::do_get_arg_types): Adjust to use std::vector.
  1023. (xmethod_worker::do_get_result_type): Adjust to use
  1024. gdb::array_view.
  1025. * gdbtypes.c (rank_function): Adjust to use gdb::array_view.
  1026. * gdbtypes.h: Include "common/array-view.h".
  1027. (rank_function): Adjust to use gdb::array_view.
  1028. * python/py-xmethods.c (python_xmethod_worker::invoke)
  1029. (python_xmethod_worker::do_get_arg_types)
  1030. (python_xmethod_worker::do_get_result_type)
  1031. (python_xmethod_worker::invoke): Adjust to new interfaces.
  1032. * valarith.c (value_user_defined_cpp_op, value_user_defined_op)
  1033. (value_x_binop, value_x_unop): Adjust to use gdb::array_view.
  1034. * valops.c (find_overload_match, find_oload_champ_namespace)
  1035. (find_oload_champ_namespace_loop, find_oload_champ): Adjust to use
  1036. gdb:array_view and the new xmethod_worker interfaces.
  1037. * value.c (result_type_of_xmethod, call_xmethod): Adjust to use
  1038. gdb::array_view.
  1039. * value.h (find_overload_match, result_type_of_xmethod)
  1040. (call_xmethod): Adjust to use gdb::array_view.
  1041. * unittests/array-view-selftests.c: Add slicing tests.
  1042. 2018-11-21 Pedro Alves <palves@redhat.com>
  1043. * ada-lang.c (ada_evaluate_subexp): Adjust to pass an array_view.
  1044. * common/array-view.h (make_array_view): New.
  1045. * compile/compile-object-run.c (compile_object_run): Adjust to
  1046. pass an array_view.
  1047. * elfread.c (elf_gnu_ifunc_resolve_addr): Adjust.
  1048. * eval.c (eval_call): Adjust to pass an array_view.
  1049. (evaluate_subexp_standard): Adjust to pass an array_view.
  1050. * gcore.c (call_target_sbrk): Adjust to pass an array_view.
  1051. * guile/scm-value.c (gdbscm_value_call): Likewise.
  1052. * infcall.c (push_dummy_code): Replace pointer + size parameters
  1053. with an array_view parameter.
  1054. (call_function_by_hand, call_function_by_hand_dummy): Likewise and
  1055. adjust.
  1056. * infcall.h: Include "common/array-view.h".
  1057. (call_function_by_hand, call_function_by_hand_dummy): Replace
  1058. pointer + size parameters with an array_view parameter.
  1059. * linux-fork.c (inferior_call_waitpid): Adjust to use array_view.
  1060. * linux-tdep.c (linux_infcall_mmap): Likewise.
  1061. * objc-lang.c (lookup_objc_class, lookup_child_selector)
  1062. (value_nsstring, print_object_command): Likewise.
  1063. * python/py-value.c (valpy_call): Likewise.
  1064. * rust-lang.c (rust_evaluate_funcall): Likewise.
  1065. * spu-tdep.c (flush_ea_cache): Likewise.
  1066. * valarith.c (value_x_binop, value_x_unop): Likewise.
  1067. * valops.c (value_allocate_space_in_inferior): Likewise.
  1068. * unittests/array-view-selftests.c (run_tests): Add
  1069. gdb::make_array_view test.
  1070. 2018-11-20 Andrew Burgess <andrew.burgess@embecosm.com>
  1071. * cli-out.c (cli_ui_out::do_field_int): Use string_printf rather
  1072. than a fixed size buffer.
  1073. 2018-11-20 Andrew Burgess <andrew.burgess@embecosm.com>
  1074. * breakpoint.c (print_one_breakpoint_location): Reduce whitespace,
  1075. and remove insertion of extra spaces in GDB's output.
  1076. * cli-out.c (cli_ui_out::do_field_fmt): Update header comment.
  1077. Layout field into a temporary buffer, and then output it as a
  1078. string field.
  1079. 2018-11-20 Philippe Waroquiers <philippe.waroquiers@skynet.be>
  1080. * NEWS: Document the language choice done by
  1081. 'info [types|functions|variables]|rbreak'.
  1082. 2018-11-20 Philippe Waroquiers <philippe.waroquiers@skynet.be>
  1083. * symtab.c (treg_matches_sym_type_name): Use
  1084. scoped_switch_to_sym_language_if_auto instead of local logic.
  1085. (print_symbol_info): Use scoped_switch_to_sym_language_if_auto
  1086. to switch to SYM language when language mode is auto.
  1087. 2018-11-20 Philippe Waroquiers <philippe.waroquiers@skynet.be>
  1088. * language.h (scoped_switch_to_sym_language_if_auto): New class.
  1089. 2018-11-20 Philippe Waroquiers <philippe.waroquiers@skynet.be>
  1090. * symtab.c (search_symbols): Properly check absence of type regexp
  1091. before entering the loop scanning the minimal symbols.
  1092. 2018-11-20 John Darrington <john@darrington.wattle.id.au>
  1093. * s12z-tdep.c (s12z_extract_return_value): New function.
  1094. (inv_reg_perm) New array.
  1095. (s12z_return_value): Populate readbuf if non-null.
  1096. 2018-11-20 Eli Zaretskii <eliz@gnu.org>
  1097. * common/filestuff.c (gdb_fopen_cloexec): Disable use of "e" mode
  1098. with 'fopen' also if O_CLOEXEC is equal to O_NOINHERIT, to cater
  1099. to MinGW fixed by Gnulib.
  1100. (O_NOINHERIT): Define if not defined.
  1101. 2018-11-19 John Darrington <john@darrington.wattle.id.au>
  1102. * s12z-tdep.c (s12z_frame_cache): Add an assertion.
  1103. 2018-11-19 Simon Marchi <simon.marchi@polymtl.ca>
  1104. * infrun.c (displaced_step_inferior_state) <next>: Remove.
  1105. 2018-11-19 Tom Tromey <tom@tromey.com>
  1106. * source.c (get_filename_and_charpos): Return void.
  1107. 2018-11-19 Simon Marchi <simon.marchi@polymtl.ca>
  1108. * skip.c (_initialize_step_skip): Fix "info skip" help.
  1109. 2018-11-16 Tom Tromey <tom@tromey.com>
  1110. PR rust/23625:
  1111. * rust-lang.c (rust_internal_print_type): Handle TYPE_CODE_PTR.
  1112. 2018-11-19 Simon Marchi <simon.marchi@ericsson.com>
  1113. * infrun.c (displaced_step_inferior_states): Change type to
  1114. std::forward_list.
  1115. (get_displaced_stepping_state): Adjust.
  1116. (displaced_step_in_progress_any_inferior): Adjust.
  1117. (add_displaced_stepping_state): Adjust.
  1118. (remove_displaced_stepping_state): Adjust.
  1119. 2018-11-18 Tom Tromey <tom@tromey.com>
  1120. PR build/23814:
  1121. * target-delegates.c: Rebuild.
  1122. * ia64-linux-nat.c (class ia64_linux_nat_target)
  1123. <have_steppable_watchpoint>: Use override. Return true, not 1.
  1124. (ia64_linux_nat_target::can_use_hw_breakpoint): Rename. Remove
  1125. "self" argument.
  1126. (ia64_linux_nat_target::low_new_thread): Rename.
  1127. (class ia64_linux_nat_target) <read_description>: Don't declare.
  1128. * target.h (struct target_ops) <have_steppable_watchpoint>: Return
  1129. bool.
  1130. 2018-11-16 Alan Hayward <alan.hayward@arm.com>
  1131. PR gdb/22736:
  1132. * aarch64-tdep.c (aarch64_push_dummy_call): Remove
  1133. lang_struct_return code.
  1134. 2018-11-16 Alan Hayward <alan.hayward@arm.com>
  1135. * aarch64-tdep.c (aarch64_push_dummy_call): Replace arg with
  1136. return_method.
  1137. * alpha-tdep.c (alpha_push_dummy_call): Likewise.
  1138. * amd64-tdep.c (amd64_push_arguments): Likewise.
  1139. (amd64_push_dummy_call): Likewise.
  1140. * amd64-windows-tdep.c (amd64_windows_push_arguments): Likewise.
  1141. * arc-tdep.c (arc_push_dummy_call): Likewise.
  1142. * arm-tdep.c (arm_push_dummy_call): Likewise.
  1143. * avr-tdep.c (avr_push_dummy_call): Likewise.
  1144. * bfin-tdep.c (bfin_push_dummy_call): Likewise.
  1145. * cris-tdep.c (cris_push_dummy_call): Likewise.
  1146. * csky-tdep.c (csky_push_dummy_call): Likewise.
  1147. * frv-tdep.c (frv_push_dummy_call): Likewise.
  1148. * gdbarch.c: Regenerate.
  1149. * gdbarch.h: Regenerate.
  1150. * gdbarch.sh (gdbarch_push_dummy_call): Replace arg with
  1151. return_method.
  1152. * h8300-tdep.c (h8300_push_dummy_call): Likewise.
  1153. * hppa-tdep.c (hppa32_push_dummy_call): Likewise.
  1154. (hppa64_push_dummy_call): Likewise.
  1155. * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
  1156. * i386-tdep.c (i386_push_dummy_call): Likewise.
  1157. * ia64-tdep.c (ia64_push_dummy_call): Likewise.
  1158. * infcall.c (call_function_by_hand_dummy): Likewise.
  1159. * iq2000-tdep.c (iq2000_push_dummy_call): Likewise.
  1160. * lm32-tdep.c (lm32_push_dummy_call): Likewise.
  1161. * m32c-tdep.c (m32c_push_dummy_call): Likewise.
  1162. * m32r-tdep.c (m32r_push_dummy_call): Likewise.
  1163. * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
  1164. * m68k-tdep.c (m68k_push_dummy_call): Likewise.
  1165. * mep-tdep.c (mep_push_dummy_call): Likewise.
  1166. * mips-tdep.c (mips_eabi_push_dummy_call): Likewise.
  1167. (mips_n32n64_push_dummy_call): Likewise.
  1168. (mips_o32_push_dummy_call): Likewise.
  1169. (mips_o64_push_dummy_call): Likewise.
  1170. * mn10300-tdep.c (mn10300_push_dummy_call): Likewise.
  1171. * msp430-tdep.c (msp430_push_dummy_call): Likewise.
  1172. * nds32-tdep.c (nds32_push_dummy_call): Likewise.
  1173. * nios2-tdep.c (nios2_push_dummy_call): Likewise.
  1174. * or1k-tdep.c (or1k_push_dummy_call): Likewise.
  1175. * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise.
  1176. (ppc64_sysv_abi_push_dummy_call): Likewise.
  1177. * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Likewise.
  1178. (ppc64_sysv_abi_push_dummy_call): Likewise.
  1179. * riscv-tdep.c (riscv_push_dummy_call): Likewise.
  1180. * rl78-tdep.c (rl78_push_dummy_call): Likewise.
  1181. * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
  1182. * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
  1183. * rx-tdep.c (rx_push_dummy_call): Likewise.
  1184. * s390-tdep.c (s390_push_dummy_call): Likewise.
  1185. * score-tdep.c (score_push_dummy_call): Likewise.
  1186. * sh-tdep.c (sh_push_dummy_call_fpu): Likewise.
  1187. (sh_push_dummy_call_nofpu): Likewise.
  1188. * sparc-tdep.c (sparc32_store_arguments): Likewise.
  1189. (sparc32_push_dummy_call): Likewise.
  1190. * sparc64-tdep.c (sparc64_store_arguments): Likewise.
  1191. (sparc64_push_dummy_call): Likewise.
  1192. * spu-tdep.c (spu_push_dummy_call): Likewise.
  1193. * tic6x-tdep.c (tic6x_push_dummy_call): Likewise.
  1194. * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
  1195. * v850-tdep.c (v850_push_dummy_call): Likewise.
  1196. * vax-tdep.c (vax_push_dummy_call): Likewise.
  1197. * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
  1198. * xtensa-tdep.c (xtensa_push_dummy_call): Likewise.
  1199. 2018-11-16 Alan Hayward <alan.hayward@arm.com>
  1200. * gdbarch.sh (enum function_call_return_method): Add enum.
  1201. * gdbarch.h: Regenerate.
  1202. * infcall.c (call_function_by_hand_dummy): Replace vars with enum.
  1203. 2018-11-15 Joel Brobecker <brobecker@adacore.com>
  1204. * unittests/copy_bitwise-selftests.c: New file.
  1205. * utils.c (selftests::bits_to_str, selftests::check_copy_bitwise)
  1206. (selftests::copy_bitwise_tests): Delete, moving this code to
  1207. unittests/copy_bitwise-selftests.c instead.
  1208. (_initialize_utils): Do not register copy_bitwise tests.
  1209. * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
  1210. unittests/copy_bitwise-selftests.c.
  1211. 2018-11-14 Joel Brobecker <brobecker@adacore.com>
  1212. * ada-lang.c (move_bits): Delete. Update all callers to use
  1213. copy_bitwise instead.
  1214. * dwarf2loc.c (copy_bitwise, bits_to_str::bits_to_str)
  1215. (selftests::check_copy_bitwise, selftests::copy_bitwise_tests):
  1216. Move from here to utils.c.
  1217. (_initialize_dwarf2loc): Remove call to register copy_bitwise
  1218. selftests.
  1219. * utils.h (copy_bitwise): Add declaration.
  1220. * utils.c (copy_bitwise, bits_to_str::bits_to_str)
  1221. (selftests::check_copy_bitwise, selftests::copy_bitwise_tests):
  1222. Moved here from dwarf2loc.c.
  1223. (_initialize_utils): Register copy_bitwise selftests.
  1224. 2018-11-14 Jim Wilson <jimw@sifive.com>
  1225. * riscv-tdep.c (struct riscv_arg_info): New field is_unnamed.
  1226. (riscv_call_arg_scalar_int): If unnamed arg with twice xlen alignment,
  1227. then increment next_regnum if odd.
  1228. (riscv_arg_location): New arg is_unnamed. Set ainfo->is_unnamed.
  1229. (riscv_push_dummy_call): New local ftype. Call check_typedef to set
  1230. function type. Pass new arg to riscv_arg_location based on function
  1231. type.
  1232. (riscv_return_value): Pass new arg to riscv_arg_location.
  1233. * riscv-tdep.c (BIGGEST_ALIGNMENT): New.
  1234. (riscv_type_alignment) <TYPE_CODE_ARRAY>: If TYPE_VECTOR, return min
  1235. of TYPE_LENGTH and BIGGEST_ALIGNMENT.
  1236. * riscv-tdep.c (riscv_call_arg_scalar_int): Use std::min when
  1237. setting len. New local align, set to max of arg align and xlen,
  1238. and pass to first riscv_assign_stack_location call.
  1239. 2018-11-12 Simon Marchi <simon.marchi@polymtl.ca>
  1240. * skip.c (complete_skip_number): New function.
  1241. (_initialize_step_skip): Add completers to some skip commands.
  1242. 2018-11-09 Tom Tromey <tom@tromey.com>
  1243. * remote.c (remote_g_packet_guess_s): Remove typedef and DEF_VEC.
  1244. (struct remote_g_packet_data): Derive from allocate_on_obstack.
  1245. <guesses>: Now a std::vector.
  1246. (remote_g_packet_data_init, register_remote_g_packet_guess):
  1247. Update.
  1248. (remote_read_description_p): Update. Return bool.
  1249. (remote_target::read_description): Update.
  1250. (struct remote_g_packet_guess): Add constructor.
  1251. 2018-11-09 Tom Tromey <tom@tromey.com>
  1252. * common/scoped_fd.h (class scoped_fd): Add move constructor and
  1253. move assignment operator.
  1254. * psymtab.c (psymtab_to_fullname): Update.
  1255. * source.h (open_source_file): Return scoped_fd.
  1256. (find_and_open_source): Likewise.
  1257. * source.c (open_source_file): Return scoped_fd.
  1258. (get_filename_and_charpos): Update.
  1259. (print_source_lines_base): Update. Use scoped_fd::to_file.
  1260. (forward_search_command): Likewise.
  1261. (reverse_search_command): Likewise.
  1262. (find_and_open_source): Return scoped_fd.
  1263. * tui/tui-source.c (tui_set_source_content): Update. Use
  1264. gdb_file_up.
  1265. 2018-11-09 John Baldwin <jhb@FreeBSD.org>
  1266. * minsyms.c (minimal_symbol_reader::install): Fix unsigned
  1267. overflow.
  1268. 2018-11-09 Hafiz Abid Qadeer <abidh@codesourcery.com>
  1269. * configure: Regenerate.
  1270. 2018-11-09 Tom de Vries <tdevries@suse.de>
  1271. * symtab.c (symbol_set_names): Call symbol_find_demangled_name
  1272. unconditionally, to set the language of the symbol. Manage freeing
  1273. returned pointer using gdb::unique_xmalloc_ptr.
  1274. 2018-11-08 Tom Tromey <tom@tromey.com>
  1275. * record.c (require_record_target): Upper-case "<TAB>".
  1276. 2018-11-08 Tom Tromey <tom@tromey.com>
  1277. * python/lib/gdb/command/pretty_printers.py
  1278. (InfoPrettyPrinter.invoke): Don't indent "objfile" heading.
  1279. 2018-11-08 Tom Tromey <tom@tromey.com>
  1280. PR gdb/23555:
  1281. PR gdb/23838:
  1282. * target.h (target_supports_terminal_ours): Return bool.
  1283. * target.c (target_supports_terminal_ours): Handle case where
  1284. current_top_target returns nullptr. Return bool.
  1285. 2018-11-08 Joel Brobecker <brobecker@adacore.com>
  1286. * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1):
  1287. return the correct count for potential HFAs.
  1288. 2018-11-08 Jan Beulich <jbeulich@suse.com>
  1289. * i387-tdep.c (i387_supply_xsave): Split handling of
  1290. X86_XSTATE_ZMM_H and X86_XSTATE_ZMM.
  1291. (i387_collect_xsave): Likewise.
  1292. 2018-11-08 Andrew Burgess <andrew.burgess@embecosm.com>
  1293. * riscv-tdep.c (riscv_insn::decode): Update header comment.
  1294. (riscv_frame_this_id): Catch errors thrown while building the
  1295. frame cache, leave the frame id as the default, which is the outer
  1296. frame id.
  1297. 2018-11-07 Joel Brobecker <brobecker@adacore.com>
  1298. * ada-lang.c (read_atcb): Only set task_info->called_task if
  1299. task_info->state == Entry_Caller_Sleep.
  1300. (print_ada_task_info): Do not check task_info->state before
  1301. checking task_info->called_task.
  1302. (info_task): Likewise.
  1303. 2018-11-07 Joel Brobecker <brobecker@adacore.com>
  1304. * ada-tasks.c (read_atcb): Clear task_info before computing
  1305. the value of each of its fields.
  1306. 2018-11-07 Andrew Burgess <andrew.burgess@embecosm.com>
  1307. * dwarf2read.c (dwarf2_init_integer_type): Check for name being
  1308. NULL before dereferencing it.
  1309. 2018-11-06 Tom de Vries <tdevries@suse.de>
  1310. * linux-tdep.c (linux_vsyscall_range_raw): Use xmalloc to allocate
  1311. program headers.
  1312. 2018-11-06 Max Filippov <jcmvbkbc@gmail.com>
  1313. * configure.tgt (xtensa*-*-linux*): Change to xtensa*-*-*linux*
  1314. so that it applies to uclinux as well.
  1315. 2018-11-06 Marius Muench <marius.muench@eurecom.fr>
  1316. * arm-tdep.c (arm_scan_prologue): Don't dereference FP reg
  1317. when on AAPCS.
  1318. 2018-11-06 John Baldwin <jhb@FreeBSD.org>
  1319. * riscv-fbsd-nat.c (getregs_supplies): Return true for
  1320. RISCV_CSR_SSTATUS_REGNUM.
  1321. 2018-11-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
  1322. * source.c (open_source_file): Fix leak by transferring the
  1323. current s->fullname to the unique_xmalloc_ptr fullname given
  1324. to find_and_open_source.
  1325. 2018-11-04 Tom Tromey <tom@tromey.com>
  1326. * varobj.c (install_default_visualizer): Update.
  1327. * python/python-internal.h (gdbpy_get_varobj_pretty_printer):
  1328. Return gdbpy_ref.
  1329. * python/py-prettyprint.c (search_pp_list): Return gdbpy_ref.
  1330. (find_pretty_printer_from_progspace)
  1331. (find_pretty_printer_from_gdb, find_pretty_printer)
  1332. (gdbpy_get_varobj_pretty_printer): Return gdbpy_ref.
  1333. (gdbpy_get_varobj_pretty_printer, gdbpy_default_visualizer):
  1334. Update.
  1335. 2018-11-04 Tom Tromey <tom@tromey.com>
  1336. * python/python.c (gdbpy_parameter_value): Update.
  1337. * python/python-internal.h (python_string_to_unicode)
  1338. (python_string_to_target_python_string)
  1339. (host_string_to_python_string): Return gdbpy_ref.
  1340. * python/py-utils.c (python_string_to_unicode)
  1341. (unicode_to_encoded_python_string)
  1342. (unicode_to_target_python_string)
  1343. (python_string_to_target_string)
  1344. (python_string_to_target_python_string): Return gdbpy_ref.
  1345. (python_string_to_host_string): Update.
  1346. (host_string_to_python_string): Return gdbpy_ref.
  1347. * python/py-symtab.c (stpy_get_filename, stpy_get_producer)
  1348. (stpy_fullname): Update.
  1349. * python/py-progspace.c (pspy_get_filename, pspy_solib_name):
  1350. Update.
  1351. * python/py-prettyprint.c (print_string_repr): Update.
  1352. * python/py-objfile.c (objfpy_get_filename, objfpy_get_username)
  1353. (objfpy_get_build_id): Update.
  1354. * python/py-breakpoint.c (bppy_get_location)
  1355. (bppy_get_expression, bppy_get_condition, bppy_get_commands):
  1356. Update.
  1357. 2018-11-04 Tom Tromey <tom@tromey.com>
  1358. * python/python-internal.h (gdb_py_object_from_longest)
  1359. (gdb_py_object_from_ulongest): Return gdbpy_ref.
  1360. * python/py-value.c (valpy_int): Update.
  1361. * python/py-utils.c (gdb_py_object_from_longest): Return
  1362. gdbpy_ref.
  1363. (gdb_py_object_from_ulongest): Likewise.
  1364. * python/py-type.c (typy_get_alignof): Update.
  1365. * python/py-linetable.c (ltpy_get_all_source_lines)
  1366. (ltpy_entry_get_line, ltpy_entry_get_pc): Update.
  1367. * python/py-block.c (blpy_get_start, blpy_get_end): Update.
  1368. 2018-11-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
  1369. * ada-lang.c (_initialize_ada_language): Fix typo.
  1370. 2018-11-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
  1371. * language.c (type): Remove.
  1372. (_initialize_language): Remove assignment to type.
  1373. 2018-11-02 Joel Brobecker <brobecker@adacore.com>
  1374. * aarch64-ravenscar-thread.h, aarch64-ravenscar-thread.c: New files.
  1375. * aarch64-tdep.c: #include "aarch64-ravenscar-thread.h".
  1376. (aarch64_gdbarch_init): Add call to register_aarch64_ravenscar_ops.
  1377. * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-ravenscar-thread.o.
  1378. (HFILES_NO_SRCDIR): Add aarch64-ravenscar-thread.h.
  1379. (ALLDEPFILES): Add aarch64-ravenscar-thread.c.
  1380. * configure.tgt (cpu_obs) [aarch64*-*-*]: Add ravenscar-thread.o
  1381. and aarch64-ravenscar-thread.o.
  1382. * NEWS: Add entry documenting Ravenscar tasking support
  1383. on AArch64 ELF.
  1384. 2018-11-02 Matthew Malcomson <matthew.malcomson@arm.com>
  1385. * symtab.c (info_functions_command): Initialize quiet flag.
  1386. * stack.c (info_args_command): Likewise.
  1387. 2018-11-01 Jim Wilson <jimw@sifive.com>
  1388. * riscv-tdep.c (riscv_breakpoint_kind_from_pc): New local unaligned_p.
  1389. Set if pcptr if unaligned. Return 2 if unaligned_p true. Update
  1390. debugging messages.
  1391. 2018-11-01 Joel Brobecker <brobecker@adacore.com>
  1392. * ada-lang.c (ada_watch_location_expression): New function.
  1393. (ada_language_defn): Set la_watch_location_expression to
  1394. ada_watch_location_expression.
  1395. 2018-11-01 Joel Brobecker <brobecker@adacore.com>
  1396. * print-utils.c (int_string): Remove unnecessary trailing spaces.
  1397. 2018-11-01 Joel Brobecker <brobecker@adacore.com>
  1398. * rs6000-tdep.c (skip_prologue): Fix potential negative left
  1399. shifting.
  1400. 2018-11-01 Jerome Guitton <guitton@adacore.com>
  1401. Joel Brobecker <brobecker@adacore.com>
  1402. * defs.h (enum gdb_osabi): Add GDB_OSABI_PIKEOS.
  1403. * osabi.c (gdb_osabi_names): Add name for GDB_OSABI_PIKEOS.
  1404. * arm-pikeos-tdep.c: New file.
  1405. * configure.tgt: Add arm-pikeos-tdep.o to the case of ARM
  1406. embedded system.
  1407. * Makefile.in (ALL_TARGET_OBS): Add arm-pikeos-tdep.o.
  1408. 2018-11-01 Simon Marchi <simon.marchi@ericsson.com>
  1409. * common/pathstuff.c (get_standard_temp_dir): New.
  1410. * common/pathstuff.h (get_standard_temp_dir): New.
  1411. * config.in: Re-generate.
  1412. * configure: Re-generate.
  1413. * configure.ac: Don't check for mkdtemp.
  1414. * gnulib/aclocal-m4-deps.mk: Re-generate.
  1415. * gnulib/aclocal.m4: Re-generate.
  1416. * gnulib/config.in: Re-generate.
  1417. * gnulib/configure: Re-generate.
  1418. * gnulib/import/Makefile.am: Re-generate.
  1419. * gnulib/import/Makefile.in: Re-generate.
  1420. * gnulib/import/m4/gnulib-cache.m4: Re-generate.
  1421. * gnulib/import/m4/gnulib-comp.m4: Re-generate.
  1422. * gnulib/import/m4/mkdtemp.m4: New file.
  1423. * gnulib/import/mkdtemp.c: New file.
  1424. * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES):
  1425. Add mkdtemp module.
  1426. * unittests/mkdir-recursive-selftests.c (test): Use
  1427. get_standard_temp_dir.
  1428. (_initialize_mkdir_recursive_selftests): Remove HAVE_MKDTEMP
  1429. ifdef.
  1430. * compile/compile.c (get_compile_file_tempdir): Likewise.
  1431. 2018-11-01 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
  1432. * rs6000-aix-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
  1433. (SIG_FRAME_LR_OFFSET64): New define.
  1434. (SIG_FRAME_FP_OFFSET64): New define.
  1435. (aix_sighandle_frame_cache): New Function.
  1436. (aix_sighandle_frame_this_id): New Function.
  1437. (aix_sighandle_frame_prev_register): New Function.
  1438. (aix_sighandle_frame_sniffer): New Function.
  1439. (aix_sighandle_frame_unwind): New global variable.
  1440. (rs6000_aix_init_osabi): Install new frame unwinder.
  1441. 2018-10-31 Sergio Durigan Junior <sergiodj@redhat.com>
  1442. PR gdb/23835
  1443. * common/common-defs.h: Don't redefine _FORTIFY_SOURCE if it's
  1444. already defined.
  1445. 2018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
  1446. * ppc-linux-nat.c: Include nat/linux-ptrace.h.
  1447. 2018-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
  1448. * dwarf2read.c (struct dwarf2_cu): Add producer_is_icc field.
  1449. (producer_is_icc): New function.
  1450. (check_producer): Set producer_is_icc field on dwarf2_cu.
  1451. (dwarf2_init_integer_type): New function.
  1452. (read_base_type): Call dwarf2_init_integer_type instead of
  1453. init_integer_type in all cases.
  1454. (dwarf2_cu::dwarf2_cu): Initialise producer_is_icc field.
  1455. * valprint.c (maybe_negate_by_bytes): Add an assertion that the
  1456. LEN is greater than 0.
  1457. 2018-10-30 Tom Tromey <tom@tromey.com>
  1458. * main.c (captured_main_1): Check return value of bfd_init.
  1459. 2018-10-29 Sergio Durigan Junior <sergiodj@redhat.com>
  1460. * common/offset-type.h (DEFINE_OFFSET_REL_OP): Delete.
  1461. Adjust comments.
  1462. 2018-10-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
  1463. * procfs.c: Include common/pathstuff.h.
  1464. 2018-10-28 Andrew Burgess <andrew.burgess@embecosm.com>
  1465. * riscv-linux-nat.c (riscv_linux_nat_target::fetch_registers):
  1466. Add missing braces. No functional change.
  1467. 2018-10-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
  1468. * macrocmd.c (info_macro_command): Use report_unrecognized_option_error
  1469. to report a bad option and fix indentation.
  1470. * demangle.c (demangle_command): Use report_unrecognized_option_error
  1471. to report a bad option and correctly report the bad option.
  1472. 2018-10-27 Tom Tromey <tom@tromey.com>
  1473. PR cli/23364:
  1474. * darwin-nat.c (copied_shell): New global.
  1475. (may_have_sip): Rename from should_disable_startup_with_shell.
  1476. (copy_shell_to_cache, maybe_cache_shell): New functions.
  1477. (darwin_nat_target::create_inferior): Update. Use
  1478. copied_shell.
  1479. 2018-10-27 Tom Tromey <tom@tromey.com>
  1480. * unittests/scoped_fd-selftests.c (test_to_file): New function.
  1481. (run_tests): Call test_to_file.
  1482. * dwarf-index-write.c (write_psymtabs_to_index): Do not reopen
  1483. temporary files.
  1484. * common/scoped_fd.h (scoped_fd::to_file): New method.
  1485. 2018-10-27 Tom Tromey <tom@tromey.com>
  1486. * unittests/scoped_mmap-selftests.c (test_normal): Use
  1487. gdb_mkostemp_cloexec.
  1488. * unittests/scoped_fd-selftests.c (test_destroy, test_release):
  1489. Use gdb_mkostemp_cloexec.
  1490. * gnulib/aclocal-m4-deps.mk, gnulib/aclocal.m4,
  1491. gnulib/config.in, gnulib/configure,
  1492. gnulib/import/Makefile.am, gnulib/import/Makefile.in,
  1493. gnulib/import/m4/gnulib-cache.m4,
  1494. gnulib/import/m4/gnulib-comp.m4: Update.
  1495. * gnulib/import/m4/mkostemp.m4: New file.
  1496. * gnulib/import/m4/mkstemp.m4: Remove.
  1497. * gnulib/import/mkostemp.c: New file.
  1498. * gnulib/import/mkstemp.m4: Remove.
  1499. * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Remove
  1500. mkstemp, add mkostemp. Apply new patch.
  1501. * gnulib/import/stdlib.in.h: Apply patch.
  1502. * gnulib/patches/0002-mkostemp-mkostemps-Fix-compilation-error-in-C-mode-o.patch:
  1503. New file.
  1504. * dwarf-index-write.c (write_psymtabs_to_index): Use
  1505. gdb_mkostemp_cloexec.
  1506. * common/filestuff.h (gdb_mkostemp_cloexec): New function.
  1507. 2018-10-27 Tom Tromey <tom@tromey.com>
  1508. * unittests/mkdir-recursive-selftests.c: New file.
  1509. * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
  1510. unittests/mkdir-recursive-selftests.c.
  1511. * dwarf-index-cache.c (mkdir_recursive): Move to
  1512. common/filestuff.c.
  1513. (index_cache::store): Check return value of mkdir_recursive.
  1514. (create_dir_and_check, test_mkdir_recursive): Move to new file.
  1515. (_initialize_index_cache): Don't register test.
  1516. * common/filestuff.h (mkdir_recursive): Declare.
  1517. * common/filestuff.c (mkdir_recursive): Move from
  1518. dwarf-index-cache.c. Return bool.
  1519. 2018-10-27 Tom Tromey <tom@tromey.com>
  1520. * dwarf-index-write.c (write_psymtabs_to_index): Move
  1521. make_temp_filename to common/pathstuff.c.
  1522. * common/pathstuff.h (make_temp_filename): Declare.
  1523. * common/pathstuff.c (make_temp_filename): New function, moved
  1524. from dwarf-index-write.c.
  1525. 2018-10-27 Tom Tromey <tom@tromey.com>
  1526. * procfs.c (procfs_target::create_inferior): Use get_shell.
  1527. * cli/cli-cmds.c (shell_escape): Use get_shell.
  1528. * windows-nat.c (windows_nat_target::create_inferior): Use
  1529. get_shell.
  1530. * common/pathstuff.c (get_shell): New function.
  1531. * nat/fork-inferior.c (SHELL_FILE, get_startup_shell): Remove.
  1532. (fork_inferior): Use get_shell.
  1533. * common/pathstuff.h (get_shell): Declare.
  1534. 2018-10-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
  1535. * NEWS: Mention changes to 'info [args|functions|locals|variables]'
  1536. 2018-10-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
  1537. * stack.c (print_variable_and_value_data): Add preg and treg.
  1538. (print_frame_local_vars): Add quiet, regexp and t_regexp arguments,
  1539. and update callers.
  1540. (print_frame_arg_vars): Likewise.
  1541. (prepare_reg): New function.
  1542. (info_locals_command): Extract info print args and use them.
  1543. (info_args_command): Likewise.
  1544. (_initialize_stack): Modify on-line help.
  1545. * symtab.c (treg_matches_sym_type_name): New function.
  1546. (search_symbols): New arg t_regexp.
  1547. (symtab_symbol_info): New args quiet, regexp, t_regexp.
  1548. (info_variables_command): Extract info print args and use them.
  1549. (info_functions_command): Likewise.
  1550. (info_types_command): Update call to symtab_symbol_info.
  1551. (_initialize_symtab): Modify on-line help.
  1552. * symtab.h (treg_matches_sym_type_name): New function.
  1553. (search_symbols): New t_regexp arg.
  1554. 2018-10-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
  1555. * cli-utils.c (extract_arg_maybe_quoted): New function.
  1556. (extract_info_print_args): New function.
  1557. (info_print_args_help): New function.
  1558. (report_unrecognized_option_error): New function.
  1559. * cli-utils.h (extract_arg_maybe_quoted): New function.
  1560. (extract_info_print_args): New function.
  1561. (info_print_args_help): New function.
  1562. (report_unrecognized_option_error): New function.
  1563. 2018-10-26 Tom Tromey <tom@tromey.com>
  1564. * dwarf2read.c (recursively_compute_inclusions): Use std::vector.
  1565. (compute_compunit_symtab_includes): Update.
  1566. * symtab.h: (symtab_ptr): Remove typedef. Don't define a VEC.
  1567. (compunit_symtab_ptr): Likewise.
  1568. 2018-10-26 John Baldwin <jhb@FreeBSD.org>
  1569. * fbsd-tdep.c (fbsd_print_auxv_entry): Only use
  1570. default_print_auxv_entry for specific tag values.
  1571. 2018-10-26 John Baldwin <jhb@FreeBSD.org>
  1572. * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_HWCAP2.
  1573. 2018-10-26 Jim Wilson <jimw@sifive.com>
  1574. * riscv-linux-tdep.c: Include tramp-frame.h and trad-frame.h.
  1575. (riscv_linux_sigframe_init): Declare.
  1576. (RISCV_INST_LI_A7_SIGRETURN, RISCV_INT_ECALL): New.
  1577. (riscv_linux_sigframe): New.
  1578. (SIGFRAME_SIGINFO_SIZE, UCONTEXT_MCONTEXT_OFFSET): New.
  1579. (riscv_linux_sigframe_init): Define.
  1580. (riscv_linux_init_abi): Call tramp_frame_prepend_unwinder.
  1581. * riscv-tdep.c (riscv_isa_xlen): Refer to riscv-tdep.h comment.
  1582. (riscv_isa_flen): Likewise. Drop static.
  1583. * riscv-tdep.h (riscv_isa_xlen): Move riscv-tdep.c comment to here.
  1584. (riscv_isa_flen): Likewise. Declare.
  1585. 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
  1586. Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
  1587. * arch/ppc-linux-tdesc.h (tdesc_powerpc_isa207_htm_vsx32l)
  1588. (tdesc_powerpc_isa207_htm_vsx64l): Declare.
  1589. * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_TM_SPRREGSET)
  1590. (PPC32_LINUX_SIZEOF_CGPRREGSET, PPC64_LINUX_SIZEOF_CGPRREGSET)
  1591. (PPC_LINUX_SIZEOF_CFPRREGSET, PPC_LINUX_SIZEOF_CVMXREGSET)
  1592. (PPC_LINUX_SIZEOF_CVSXREGSET, PPC_LINUX_SIZEOF_CPPRREGSET)
  1593. (PPC_LINUX_SIZEOF_CDSCRREGSET, PPC_LINUX_SIZEOF_CTARREGSET):
  1594. Define.
  1595. (struct ppc_linux_features) <htm>: New field.
  1596. (ppc_linux_no_features): Add initializer for htm field.
  1597. * arch/ppc-linux-common.c (ppc_linux_match_description): Return
  1598. new tdescs.
  1599. * nat/ppc-linux.h (PPC_FEATURE2_HTM, NT_PPC_TM_CGPR)
  1600. (NT_PPC_TM_CFPR, NT_PPC_TM_CVMX, NT_PPC_TM_CVSX)
  1601. (NT_PPC_TM_SPR, NT_PPC_TM_CTAR, NT_PPC_TM_CPPR, NT_PPC_TM_CDSCR):
  1602. Define if not already defined.
  1603. * features/Makefile (WHICH): Add rs6000/powerpc-isa207-htm-vsx32l
  1604. and rs6000/powerpc-isa207-htm-vsx64l.
  1605. (XMLTOC): Add rs6000/powerpc-isa207-htm-vsx32l.xml and
  1606. rs6000/powerpc-isa207-htm-vsx64l.xml.
  1607. * features/rs6000/power-htm-spr.xml: New file.
  1608. * features/rs6000/power-htm-core.xml: New file.
  1609. * features/rs6000/power64-htm-core.xml: New file.
  1610. * features/rs6000/power-htm-fpu.xml: New file.
  1611. * features/rs6000/power-htm-altivec.xml: New file.
  1612. * features/rs6000/power-htm-vsx.xml: New file.
  1613. * features/rs6000/power-htm-ppr.xml: New file.
  1614. * features/rs6000/power-htm-dscr.xml: New file.
  1615. * features/rs6000/power-htm-tar.xml: New file.
  1616. * features/rs6000/powerpc-isa207-htm-vsx32l.xml: New file.
  1617. * features/rs6000/powerpc-isa207-htm-vsx64l.xml: New file.
  1618. * features/rs6000/powerpc-isa207-htm-vsx32l.c: Generate.
  1619. * features/rs6000/powerpc-isa207-htm-vsx64l.c: Generate.
  1620. * regformats/rs6000/powerpc-isa207-htm-vsx32l.dat: Generate.
  1621. * regformats/rs6000/powerpc-isa207-htm-vsx64l.dat: Generate.
  1622. * ppc-linux-nat.c (fetch_register, fetch_ppc_registers): Call
  1623. fetch_regset with HTM regsets.
  1624. (store_register, store_ppc_registers): Call store_regset with HTM
  1625. regsets.
  1626. (ppc_linux_nat_target::read_description): Set htm field in the
  1627. features struct if needed.
  1628. * ppc-linux-tdep.c: Include
  1629. features/rs6000/powerpc-isa207-htm-vsx32l.c and
  1630. features/rs6000/powerpc-isa207-htm-vsx64l.c.
  1631. (ppc32_regmap_tm_spr, ppc32_regmap_cgpr, ppc64_le_regmap_cgpr)
  1632. (ppc64_be_regmap_cgpr, ppc32_regmap_cfpr, ppc32_le_regmap_cvmx)
  1633. (ppc32_be_regmap_cvmx, ppc32_regmap_cvsx, ppc32_regmap_cppr)
  1634. (ppc32_regmap_cdscr, ppc32_regmap_ctar): New globals.
  1635. (ppc32_linux_tm_sprregset, ppc32_linux_cgprregset)
  1636. (ppc64_be_linux_cgprregset, ppc64_le_linux_cgprregset)
  1637. (ppc32_linux_cfprregset, ppc32_le_linux_cvmxregset)
  1638. (ppc32_be_linux_cvmxregset, ppc32_linux_cvsxregset)
  1639. (ppc32_linux_cpprregset, ppc32_linux_cdscrregset)
  1640. (ppc32_linux_ctarregset): New globals.
  1641. (ppc_linux_cgprregset, ppc_linux_cvmxregset): New functions.
  1642. (ppc_linux_collect_core_cpgrregset): New function.
  1643. (ppc_linux_iterate_over_regset_sections): Call back with the htm
  1644. regsets.
  1645. (ppc_linux_core_read_description): Check if the tm spr section is
  1646. present and set htm in the features struct.
  1647. (_initialize_ppc_linux_tdep): Call
  1648. initialize_tdesc_powerpc_isa207_htm_vsx32l and
  1649. initialize_tdesc_powerpc_isa207_htm_vsx64l.
  1650. * ppc-linux-tdep.h (ppc_linux_cgprregset, ppc_linux_cvmxregset):
  1651. Declare.
  1652. (ppc32_linux_tm_sprregset, ppc32_linux_cfprregset)
  1653. (ppc32_linux_cvsxregset, ppc32_linux_cpprregset)
  1654. (ppc32_linux_cdscrregset, ppc32_linux_ctarregset): Declare.
  1655. * ppc-tdep.h (struct gdbarch_tdep) <have_htm_spr, have_htm_core>:
  1656. New fields.
  1657. <have_htm_fpu, have_htm_altivec, have_htm_vsx>:
  1658. Likewise.
  1659. <ppc_cppr_regnum, ppc_cdscr_regnum, ppc_ctar_regnum>: Likewise.
  1660. <ppc_cdl0_regnum, ppc_cvsr0_regnum, ppc_cefpr0_regnum>: Likewise.
  1661. (enum) <PPC_TFHAR_REGNUM, PPC_TEXASR_REGNUM, PPC_TFIAR_REGNUM>:
  1662. New enum fields.
  1663. <PPC_CR0_REGNUM, PPC_CCR_REGNUM, PPC_CXER_REGNUM>: Likewise.
  1664. <PPC_CLR_REGNUM, PPC_CCTR_REGNUM, PPC_CF0_REGNUM>: Likewise.
  1665. <PPC_CFPSCR_REGNUM, PPC_CVR0_REGNUM, PPC_CVSCR_REGNUM>: Likewise.
  1666. <PPC_CVRSAVE_REGNUM, PPC_CVSR0_UPPER_REGNUM>: Likewise.
  1667. <PPC_CPPR_REGNUM, PPC_CDSCR_REGNUM>: Likewise.
  1668. <PPC_CTAR_REGNUM>: Likewise.
  1669. (PPC_IS_TMSPR_REGNUM, PPC_IS_CKPTGP_REGNUM, PPC_IS_CKPTFP_REGNUM)
  1670. (PPC_IS_CKPTVMX_REGNUM, PPC_IS_CKPTVSX_REGNUM): Define.
  1671. * rs6000-tdep.c (IS_CDFP_PSEUDOREG, IS_CVSX_PSEUDOREG)
  1672. (IS_CEFP_PSEUDOREG): Define.
  1673. (rs6000_register_name): Hide the upper halves of checkpointed VSX
  1674. registers. Return names for the checkpointed DFP, VSX, and EFP
  1675. pseudo registers.
  1676. (rs6000_pseudo_register_type): Remove initial assert and raise an
  1677. internal error in the else clause instead. Return types for the
  1678. checkpointed DFP, VSX, and EFP pseudo registers.
  1679. (dfp_pseudo_register_read, dfp_pseudo_register_write): Handle
  1680. checkpointed DFP pseudo registers.
  1681. (vsx_pseudo_register_read, vsx_pseudo_register_write): Handle
  1682. checkpointed VSX pseudo registers.
  1683. (efp_pseudo_register_read, efp_pseudo_register_write): Rename
  1684. from efpr_pseudo_register_read and
  1685. efpr_pseudo_register_write. Handle checkpointed EFP pseudo
  1686. registers.
  1687. (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
  1688. Handle checkpointed DFP, VSX, and EFP registers.
  1689. (dfp_ax_pseudo_register_collect, vsx_ax_pseudo_register_collect)
  1690. (efp_ax_pseudo_register_collect): New functions.
  1691. (rs6000_ax_pseudo_register_collect): Move DFP, VSX and EFP pseudo
  1692. register logic to new functions. Handle checkpointed DFP, VSX,
  1693. and EFP pseudo registers.
  1694. (rs6000_gdbarch_init): Look for and validate the htm features.
  1695. Include checkpointed DFP, VSX and EFP pseudo-registers.
  1696. * NEWS: Mention access to PPR, DSCR, TAR, EBB/PMU registers and
  1697. HTM registers.
  1698. 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
  1699. * rs6000-tdep.c (rs6000_gdbarch_init): Reject tdescs with vsx but
  1700. without altivec or fpu.
  1701. 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
  1702. Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
  1703. * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_EBBREGSET)
  1704. (PPC_LINUX_SIZEOF_PMUREGSET): Declare.
  1705. * nat/ppc-linux.h (PPC_FEATURE2_EBB, NT_PPC_EBB, NT_PPC_PMU):
  1706. Define if not already defined.
  1707. * features/rs6000/power-ebb.xml: New file.
  1708. * features/rs6000/power-linux-pmu.xml: New file.
  1709. * features/rs6000/powerpc-isa207-vsx32l.xml: Include ebb and pmu
  1710. features.
  1711. * features/rs6000/powerpc-isa207-vsx64l.xml: Likewise.
  1712. * features/rs6000/powerpc-isa207-vsx32l.c: Re-generate.
  1713. * features/rs6000/powerpc-isa207-vsx64l.c: Re-generate.
  1714. * regformats/rs6000/powerpc-isa207-vsx32l.dat: Re-generate.
  1715. * regformats/rs6000/powerpc-isa207-vsx64l.dat: Re-generate.
  1716. * ppc-linux-nat.c (fetch_register, fetch_ppc_registers): Call
  1717. fetch_regset with ebb and pmu regsets.
  1718. (store_register, store_ppc_registers): Call store_regset with ebb
  1719. and pmu regsets.
  1720. (ppc_linux_nat_target::read_description): Set isa207 field in the
  1721. features struct if ebb and pmu are avaiable.
  1722. * ppc-linux-tdep.c (ppc32_regmap_ebb, ppc32_regmap_pmu)
  1723. (ppc32_linux_ebbregset, ppc32_linux_pmuregset): New globals.
  1724. (ppc_linux_iterate_over_regset_sections): Call back with the ebb
  1725. and pmu regsets.
  1726. (ppc_linux_core_read_description): Check if the pmu section is
  1727. present and set isa207 in the features struct.
  1728. * ppc-linux-tdep.h (ppc32_linux_ebbregset)
  1729. (ppc32_linux_pmuregset): Declare.
  1730. * ppc-tdep.h (struct gdbarch_tdep) <ppc_mmcr0_regnum>: New field.
  1731. <ppc_mmcr2_regnum, ppc_siar_regnum, ppc_sdar_regnum>: New fields.
  1732. <ppc_sier_regnum>: New field.
  1733. (enum): <PPC_BESCR_REGNUM, PPC_EBBHR_REGNUM, PPC_EBBRR_REGNUM>:
  1734. New enum values.
  1735. <PPC_MMCR0_REGNUM, PPC_MMCR2_REGNUM, PPC_SIAR_REGNUM>: New enum
  1736. values.
  1737. <PPC_SDAR_REGNUM, PPC_SIER_REGNUM>: New enum values.
  1738. (PPC_IS_EBB_REGNUM, PPC_IS_PMU_REGNUM): Define.
  1739. * rs6000-tdep.c (rs6000_gdbarch_init): Look for and validate the
  1740. ebb and pmu features.
  1741. 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
  1742. Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
  1743. * arch/ppc-linux-tdesc.h (tdesc_powerpc_isa207_vsx32l)
  1744. (tdesc_powerpc_isa207_vsx64l): Declare.
  1745. * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_TARREGSET): Define.
  1746. (struct ppc_linux_features) <isa207>: New field.
  1747. (ppc_linux_no_features): Add initializer for isa207 field.
  1748. * arch/ppc-linux-common.c (ppc_linux_match_description): Return
  1749. new tdescs.
  1750. * nat/ppc-linux.h (PPC_FEATURE2_ARCH_2_07, PPC_FEATURE2_TAR)
  1751. (NT_PPC_TAR): Define if not already defined.
  1752. * features/Makefile (WHICH): Add rs6000/powerpc-isa207-vsx32l and
  1753. rs6000/powerpc-isa207-vsx64l.
  1754. (XMLTOC): Add rs6000/powerpc-isa207-vsx32l.xml and
  1755. rs6000/powerpc-isa207-vsx64l.xml.
  1756. * features/rs6000/power-tar.xml: New file.
  1757. * features/rs6000/powerpc-isa207-vsx32l.xml: New file.
  1758. * features/rs6000/powerpc-isa207-vsx64l.xml: New file.
  1759. * features/rs6000/powerpc-isa207-vsx32l.c: Generate.
  1760. * features/rs6000/powerpc-isa207-vsx64l.c: Generate.
  1761. * regformats/rs6000/powerpc-isa207-vsx32l.dat: Generate.
  1762. * regformats/rs6000/powerpc-isa207-vsx64l.dat: Generate.
  1763. * ppc-linux-nat.c (fetch_register, fetch_ppc_registers): Call
  1764. fetch_regset with the TAR regset.
  1765. (store_register, store_ppc_registers): Call store_regset with the
  1766. TAR regset.
  1767. (ppc_linux_nat_target::read_description): Set isa207 field in the
  1768. features struct if needed.
  1769. * ppc-linux-tdep.c: Include
  1770. features/rs6000/powerpc-isa207-vsx32l.c and
  1771. features/rs6000/powerpc-isa207-vsx64l.c.
  1772. (ppc32_regmap_tar, ppc32_linux_tarregset): New globals.
  1773. (ppc_linux_iterate_over_regset_sections): Call back with the tar
  1774. regset.
  1775. (ppc_linux_core_read_description): Check if the tar section is
  1776. present and set isa207 in the features struct.
  1777. (_initialize_ppc_linux_tdep): Call
  1778. initialize_tdesc_powerpc_isa207_vsx32l and
  1779. initialize_tdesc_powerpc_isa207_vsx64l.
  1780. * ppc-linux-tdep.h (ppc32_linux_tarregset): Declare.
  1781. * ppc-tdep.h (gdbarch_tdep) <ppc_tar_regnum>: New field.
  1782. (enum) <PPC_TAR_REGNUM>: New enum value.
  1783. * rs6000-tdep.c (rs6000_gdbarch_init): Look for and validate tar
  1784. feature.
  1785. (ppc_process_record_op31): Record changes to TAR.
  1786. 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
  1787. Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
  1788. * arch/ppc-linux-tdesc.h (tdesc_powerpc_isa205_ppr_dscr_vsx32l)
  1789. (tdesc_powerpc_isa205_ppr_dscr_vsx64l): Declare.
  1790. * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_PPRREGSET)
  1791. (PPC_LINUX_SIZEOF_DSCRREGSET): Define.
  1792. (struct ppc_linux_features) <ppr_dscr>: New field.
  1793. (ppc_linux_no_features): Add initializer for ppr_dscr field.
  1794. * arch/ppc-linux-common.c (ppc_linux_match_description): Return
  1795. new tdescs.
  1796. * nat/ppc-linux.h (PPC_FEATURE2_DSCR, NT_PPC_PPR, NT_PPC_DSCR):
  1797. Define if not already defined.
  1798. * features/Makefile (WHICH): Add
  1799. rs6000/powerpc-isa205-ppr-dscr-vsx32l and
  1800. rs6000/powerpc-isa205-ppr-dscr-vsx64l.
  1801. (XMLTOC): Add rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
  1802. rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml.
  1803. * features/rs6000/power-dscr.xml: New file.
  1804. * features/rs6000/power-ppr.xml: New file.
  1805. * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml: New file.
  1806. * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml: New file.
  1807. * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Generate.
  1808. * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Generate.
  1809. * regformats/rs6000/powerpc-isa205-ppr-dscr-vsx32l.dat: Generate.
  1810. * regformats/rs6000/powerpc-isa205-ppr-dscr-vsx64l.dat: Generate.
  1811. * ppc-linux-nat.c: Include <sys/uio.h>.
  1812. (fetch_regset, store_regset, check_regset): New functions.
  1813. (fetch_register, fetch_ppc_registers): Call fetch_regset with
  1814. DSCR and PPR regsets.
  1815. (store_register, store_ppc_registers): Call store_regset with
  1816. DSCR and PPR regsets.
  1817. (ppc_linux_get_hwcap2): New function.
  1818. (ppc_linux_nat_target::read_description): Call
  1819. ppc_linux_get_hwcap2 and check_regset, set ppr_dscr field in the
  1820. features struct if needed.
  1821. * ppc-linux-tdep.c: Include
  1822. features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c and
  1823. features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c.
  1824. (ppc32_regmap_ppr, ppc32_regmap_dscr, ppc32_linux_pprregset)
  1825. (ppc32_linux_dscrregset): New globals.
  1826. (ppc_linux_iterate_over_regset_sections): Call back with the ppr
  1827. and dscr regsets.
  1828. (ppc_linux_core_read_description): Check if the ppr and dscr
  1829. sections are present and set ppr_dscr in the features struct.
  1830. (_initialize_ppc_linux_tdep): Call
  1831. initialize_tdesc_powerpc_isa205_ppr_dscr_vsx32l and
  1832. initialize_tdesc_powerpc_isa205_ppr_dscr_vsx64l.
  1833. * ppc-linux-tdep.h (ppc32_linux_pprregset)
  1834. (ppc32_linux_dscrregset): Declare.
  1835. * ppc-tdep.h (struct gdbarch_tdep) <ppc_ppr_regnum>: New field.
  1836. <ppc_dscr_regnum>: New field.
  1837. (enum) <PPC_PPR_REGNUM, PPC_DSCR_REGNUM>: New enum values.
  1838. * rs6000-tdep.c (rs6000_gdbarch_init): Look for and validate ppr
  1839. and dscr features.
  1840. (ppc_process_record_op31): Record changes to PPR and DSCR.
  1841. 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
  1842. * rs6000-tdep.c (rs6000_gdbarch_init): Replace line wrapping by a
  1843. second initializer line for the have_* variables. Initialize
  1844. have_fpu to 0 instead of 1.
  1845. 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
  1846. * arch/ppc-linux-common.c (ppc_linux_match_description):
  1847. Parenthesize tdesc assignements and indent them properly.
  1848. 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
  1849. * ppc-linux-nat.c (fetch_register): Change if statement to else
  1850. if.
  1851. (store_register): Likewise.
  1852. 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
  1853. * rs6000-tdep.c: Remove reggroups.h include.
  1854. (rs6000_pseudo_register_reggroup_p): Remove.
  1855. (rs6000_gdbarch_init): Remove call to
  1856. set_tdesc_pseudo_register_reggroup_p.
  1857. 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
  1858. * reggroups.c (default_register_reggroup_p): Return true for
  1859. decfloat registers and float_reggroup.
  1860. 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
  1861. * ppc-linux-tdep.c (ppc_linux_collect_vrregset): Remove.
  1862. (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): Replace
  1863. ppc_linux_collect_vrregset by regcache_collect_regset.
  1864. 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
  1865. * linux-tdep.c (linux_collect_regset_section_cb): Use
  1866. std::vector<gdb_byte> instead of char * and malloc for buf.
  1867. Remove xfree.
  1868. 2018-10-26 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
  1869. * xcoffread.c (read_xcoff_symtab): Pass deduced language to
  1870. symtab_start instead of always using language_unknown.
  1871. 2018-10-26 Andrew Burgess <andrew.burgess@embecosm.com>
  1872. * riscv-tdep.c (riscv_read_misa_reg): Update comment, remove
  1873. READ_P parameter, catch and ignore register access errors from
  1874. either the old or new MISA location.
  1875. (riscv_has_feature): Update call to riscv_read_misa_reg.
  1876. 2018-10-25 Andrew Burgess <andrew.burgess@embecosm.com>
  1877. * python/py-function.c (convert_values_to_python): Return
  1878. gdbpy_ref<>. Add header comment.
  1879. (fnpy_call): Adjust.
  1880. 2018-10-25 Andrew Burgess <andrew.burgess@embecosm.com>
  1881. * python/py-cmd.c (cmdpy_completer_helper): Return gdbpy_ref<>.
  1882. (cmdpy_completer_handle_brkchars): Adjust.
  1883. (cmdpy_completer): Adjust.
  1884. 2018-10-25 Andrew Burgess <andrew.burgess@embecosm.com>
  1885. * riscv-linux-nat.c (riscv_linux_nat_target::fetch_registers):
  1886. Pass correct regnum to raw_supply_zeroed.
  1887. 2018-10-23 Hafiz Abid Qadeer <abidh@codesourcery.com>
  1888. * regcache.c (cooked_read_test): Add CSKY to the list of
  1889. architectures with a save_reggroup
  1890. 2018-10-23 Simon Marchi <simon.marchi@polymtl.ca>
  1891. PR gdb/23368
  1892. * infrun.c (follow_exec): In the follow_exec_mode_new case,
  1893. transfer terminal state from old new new inferior.
  1894. * terminal.h (swap_terminal_info): New function.
  1895. * inflow.c (swap_terminal_info): New function.
  1896. 2018-10-23 Tom Tromey <tom@tromey.com>
  1897. * record-btrace.c (get_thread_current_frame_id): Rename from
  1898. get_thread_current_frame. Return a frame_id.
  1899. (record_btrace_start_replaying): Update.
  1900. 2018-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
  1901. * riscv-tdep.c (riscv_register_name): Use the user-friendly names
  1902. for CSRs.
  1903. 2018-10-23 Joel Brobecker <brobecker@adacore.com>
  1904. * riscv-tdep.c (riscv_gdbarch_init): Set the gdbarch's
  1905. have_nonsteppable_watchpoint attribute to 1.
  1906. 2018-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
  1907. * riscv-tdep.c (riscv_gdb_reg_names): Update comment, and all
  1908. register names.
  1909. (struct register_alias): Rename to...
  1910. (struct riscv_register_alias): ...this, and update comment.
  1911. (riscv_register_aliases): Update type, and alias names. Remove
  1912. CSR names from this list.
  1913. (riscv_register_name): Use riscv_gdb_reg_names for int and float
  1914. register names. Add an extra assertion.
  1915. (riscv_is_regnum_a_named_csr): New function.
  1916. (riscv_register_reggroup_p): Use riscv_is_regnum_a_named_csr.
  1917. 2018-10-23 John Darrington <john@darrington.wattle.id.au>
  1918. * configure.tgt: Add configuration for s12z.
  1919. * s12z-tdep.c: New file.
  1920. * NEWS: Mention new target.
  1921. 2018-10-22 Jim Wilson <jimw@sifive.com>
  1922. * riscv-tdep.c (riscv_push_dummy_call) <in_reg>: Check for value in
  1923. FP reg smaller than FP reg size, and fill with -1 instead of 0.
  1924. * riscv-tdep.c (riscv_fpreg_d_type, riscv_fpreg_q_type): New.
  1925. (riscv_register_type): Use them.
  1926. (riscv_print_one_register_info): Handle union of floats same as float.
  1927. * riscv-tdep.h (struct gdbarch_tdep): Add riscv_fpreg_d_type and
  1928. riscv_fpreg_q_type fields.
  1929. 2018-10-21 Simon Marchi <simon.marchi@ericsson.com>
  1930. * gdbarch.sh (gdbarch_num_cooked_regs): New.
  1931. * gdbarch.h: Re-generate.
  1932. * ax-gdb.c (gen_expr): Use gdbarch_num_cooked_regs.
  1933. * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
  1934. * eval.c (evaluate_subexp_standard): Likewise.
  1935. * findvar.c (value_of_register): Likewise.
  1936. (value_of_register_lazy): Likewise.
  1937. (address_from_register): Likewise.
  1938. * frame.c (get_frame_register_bytes): Likewise.
  1939. * gdbarch-selftests.c (register_to_value_test): Likewise.
  1940. * h8300-tdep.c (h8300_register_type): Likewise.
  1941. * i386-tdep.c (i386_dbx_reg_to_regnum): Likewise.
  1942. (i386_svr4_reg_to_regnum): Likewise.
  1943. * infcmd.c (default_print_registers_info): Likewise.
  1944. (registers_info): Likewise.
  1945. (print_vector_info): Likewise.
  1946. (default_print_float_info): Likewise.
  1947. * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
  1948. * mdebugread.c (mdebug_reg_to_regnum): Likewise.
  1949. * mi/mi-main.c (mi_cmd_data_list_register_names): Likewise.
  1950. (mi_cmd_data_list_changed_registers): Likewise.
  1951. (mi_cmd_data_list_register_values): Likewise.
  1952. (mi_cmd_data_write_register_values): Likewise.
  1953. (mi_cmd_trace_frame_collected): Likewise.
  1954. * mips-tdep.c (print_gp_register_row): Likewise.
  1955. (mips_print_registers_info): Likewise.
  1956. * nds32-tdep.c (nds32_gdbarch_init): Likewise.
  1957. * regcache.c (init_regcache_descr): Likewise.
  1958. (register_size): Likewise.
  1959. (register_dump::dump): Likewise.
  1960. (cooked_read_test): Likewise.
  1961. (cooked_write_test): Likewise.
  1962. * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
  1963. (rs6000_gdbarch_init): Likewise.
  1964. * stabsread.c (stab_reg_to_regnum): Likewise.
  1965. * stack.c (info_frame_command): Likewise.
  1966. * target-descriptions.c (tdesc_register_name): Likewise.
  1967. * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
  1968. * tui/tui-regs.c (tui_show_register_group): Likewise.
  1969. * user-regs.c (user_reg_map_name_to_regnum): Likewise.
  1970. (user_reg_map_regnum_to_name): Likewise.
  1971. (value_of_user_reg): Likewise.
  1972. (maintenance_print_user_registers): Likewise.
  1973. * xtensa-tdep.c (xtensa_find_register_by_name): Likewise.
  1974. (xtensa_register_name): Likewise.
  1975. (xtensa_register_type): Likewise.
  1976. (xtensa_reg_to_regnum): Likewise.
  1977. (xtensa_pseudo_register_read): Likewise.
  1978. (xtensa_pseudo_register_write): Likewise.
  1979. 2018-10-21 Simon Marchi <simon.marchi@polymtl.ca>
  1980. * amd64-tdep.c (amd64_pseudo_register_read_value): Use
  1981. correctly-sized buffer with raw_read.
  1982. (amd64_pseudo_register_write): Use correctly-sized buffer for
  1983. raw_read/raw_write.
  1984. 2018-10-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
  1985. * typeprint.c (_initialize_typeprint): Fix wrong prefixname arg
  1986. in add_prefix_cmd of set print type.
  1987. 2018-10-19 Tom Tromey <tom@tromey.com>
  1988. PR tui/18388:
  1989. * NEWS: Mention tabset deprecation.
  1990. * tui/tui-win.c (tui_tab_width, internal_tab_width): New globals.
  1991. (update_tab_width): New function.
  1992. (tui_set_tab_width, tui_show_tab_width): New functions.
  1993. (tui_set_tab_width_command): Use update_tab_width.
  1994. (_initialize_tui_win): Move to end of file. Deprecate "tabset".
  1995. Add new "set tui tab-width" command.
  1996. * tui/tui-source.c (tui_set_source_content): Update.
  1997. * tui/tui-disasm.c (tui_set_disassem_content): Update.
  1998. * tui/tui-data.h (tui_default_tab_len, tui_set_default_tab_len):
  1999. Don't declare.
  2000. (tui_tab_width): Declare.
  2001. * tui/tui-data.c (default_tab_len, tui_default_tab_len)
  2002. (tui_set_default_tab_len): Remove.
  2003. 2018-10-19 Tom Tromey <tom@tromey.com>
  2004. * tui/tui-io.h (key_is_start_sequence, key_is_end_sequence)
  2005. (key_is_backspace, tui_getc): Don't declare.
  2006. * tui/tui-io.c (key_is_start_sequence): Now static.
  2007. (key_is_end_sequence, key_is_backspace): Remove.
  2008. (tui_getc): Now static.
  2009. 2018-10-19 Tom Tromey <tom@tromey.com>
  2010. * symfile.c (reread_symbols): Clear "static_links".
  2011. 2018-10-19 Alan Hayward <alan.hayward@arm.com>
  2012. * aarch64-linux-tdep.c (AARCH64_SIGCONTEXT_RESERVED_SIZE): New
  2013. define.
  2014. (aarch64_linux_sigframe_init): Extra boundary checks.
  2015. 2018-10-19 Andreas Arnez <arnez@linux.ibm.com>
  2016. * s390-tdep.c (s390_pseudo_register_type): For v0-v15 don't yield
  2017. the possibly non-existent tdesc type 'vec128', but the type of raw
  2018. register v16 instead.
  2019. 2018-10-19 Gary Benson <gbenson@redhat.com>
  2020. * cli/cli-interp.c (cli_interp::~cli_interp): New function.
  2021. 2018-10-18 Sergio Durigan Junior <sergiodj@redhat.com>
  2022. PR cli/23785
  2023. * cli/cli-dump.c (restore_binary_file): Check if "file" is
  2024. NULL.
  2025. 2018-10-17 Paul Koning <paul_koning@dell.com>
  2026. * charset.c (convert_between_encodings): Fix unsigned overflow.
  2027. 2018-10-17 John Baldwin <jhb@FreeBSD.org>
  2028. * fbsd-nat.c (fbsd_nat_target::info_proc) Use
  2029. fbsd_info_proc_mappings_header and fbsd_info_proc_mappings_entry.
  2030. * fbsd-tdep.c (fbsd_vm_map_entry_flags): Mark static.
  2031. (fbsd_info_proc_mappings_header, fbsd_info_proc_mappings_entry):
  2032. New functions.
  2033. (fbsd_core_info_proc_mappings): Use fbsd_info_proc_mappings_header
  2034. and fbsd_info_proc_mappings_header.
  2035. * fbsd-tdep.h (fbsd_vm_map_entry_flags): Remove.
  2036. (fbsd_info_proc_mappings_header, fbsd_info_proc_mappings_entry):
  2037. New.
  2038. 2018-10-17 Joel Brobecker <brobecker@adacore.com>
  2039. * MAINTAINERS (Responsible Maintainers): Add Rainer Orth as
  2040. Solaris Maintainer.
  2041. 2018-10-15 Tom Tromey <tom@tromey.com>
  2042. * tui/tui.c (strcat_to_buf): Remove casts.
  2043. * tui/tui-winsource.c (tui_show_source_line)
  2044. (tui_set_is_exec_point_at, tui_line_is_displayed): Remove casts.
  2045. * tui/tui-wingeneral.c (tui_refresh_win, box_win): Remove casts.
  2046. * tui/tui-windata.c (tui_first_data_item_displayed)
  2047. (tui_delete_data_content_windows, tui_erase_data_content)
  2048. (tui_display_all_data, tui_display_data_from)
  2049. (tui_refresh_data_win, tui_vertical_data_scroll): Remove casts.
  2050. * tui/tui-win.c (tui_set_win_height)
  2051. (make_invisible_and_set_new_height, parse_scrolling_args): Remove
  2052. casts.
  2053. * tui/tui-win.c (tui_resize_all): Remove casts.
  2054. (tui_scroll_backward_command, tui_set_focus)
  2055. (tui_set_tab_width_command): Likewise.
  2056. * tui/tui-source.c (tui_vertical_source_scroll): Remove cast.
  2057. * tui/tui-regs.c (tui_show_register_group): Remove cast.
  2058. * tui/tui-layout.c (tui_set_layout_by_name): Remove cast.
  2059. * tui/tui-disasm.c (tui_vertical_disassem_scroll): Remove cast.
  2060. * tui/tui-data.c (tui_partial_win_by_name, tui_free_win_content):
  2061. Remove casts.
  2062. 2018-10-15 Simon Marchi <simon.marchi@ericsson.com>
  2063. * MAINTAINERS (Responsible Maintainers): Add Alan Hayward as
  2064. AArch64/ARM maintainer.
  2065. 2018-10-11 Gary Benson <gbenson@redhat.com>
  2066. * interps.h (interp::m_name): Make private and mutable.
  2067. * interps.c (interp::~interp): Free m_name.
  2068. 2018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
  2069. Simon Marchi <simark@simark.ca>
  2070. * README (`configure' options): Add documentation for new
  2071. "--enable-unit-tests" option.
  2072. * acinclude.m4: Include "selftest.m4".
  2073. * configure: Regenerate.
  2074. * configure.ac: Use "GDB_AC_SELFTEST".
  2075. * maint.c (maintenance_selftest): Update message informing
  2076. that selftests have been disabled.
  2077. (maintenance_info_selftests): Likewise.
  2078. * selftest.m4: New file.
  2079. 2018-10-10 Gary Benson <gbenson@redhat.com>
  2080. * remote.c (remote_target::remote_send_printf): Add
  2081. missing va_end found by Coverity.
  2082. 2018-10-10 Markus Metzger <markus.t.metzger@intel.com>
  2083. * btrace.c (ftrace_update_function): Add indirect jump heuristic.
  2084. 2018-10-09 Tom Tromey <tom@tromey.com>
  2085. * configure: Rebuild.
  2086. * sanitize.m4 (AM_GDB_UBSAN): Default to no.
  2087. * NEWS: Update --enable-ubsan documentation.
  2088. 2018-10-09 Gary Benson <gbenson@redhat.com>
  2089. * dwarf2read.c (create_dwp_hash_table): Fix buffer overrun
  2090. found by Coverity.
  2091. 2018-10-08 Tom Tromey <tom@tromey.com>
  2092. * riscv-fbsd-tdep.c (riscv_fbsd_sigframe_init): Remove unused
  2093. variable.
  2094. (riscv_fbsd_init_abi): Likewise.
  2095. 2018-10-08 Weimin Pan <weimin.pan@oracle.com>
  2096. * valops.c (value_struct_elt_for_reference): Rename local variable
  2097. to work around the shadowing a previous local warning.
  2098. 2018-10-08 John Baldwin <jhb@FreeBSD.org>
  2099. * Makefile.in (ALLDEPFILES): Add riscv-fbsd-nat.c.
  2100. * NEWS: Mention new FreeBSD/riscv native configuration.
  2101. * configure.host: Add riscv*-*-freebsd*.
  2102. * configure.nat: Likewise.
  2103. * riscv-fbsd-nat.c: New file.
  2104. 2018-10-08 John Baldwin <jhb@FreeBSD.org>
  2105. * Makefile.in (ALL_TARGET_OBS): Add riscv-fbsd-tdep.o.
  2106. (HFILES_NO_SRCDIR): Add riscv-fbsd-tdep.h.
  2107. (ALLDEPFILES): Add riscv-fbsd-tdep.c.
  2108. * NEWS: Mention new FreeBSD/riscv target.
  2109. * configure.tgt: Add riscv*-*-freebsd*.
  2110. * riscv-fbsd-tdep.c: New file.
  2111. * riscv-fbsd-tdep.h: New file.
  2112. 2018-10-08 John Baldwin <jhb@FreeBSD.org>
  2113. * regcache.h (struct regcache_map_entry): Note that this type can
  2114. be used with traditional frame caches.
  2115. * trad-frame.c (trad_frame_set_reg_regmap): New.
  2116. * trad-frame.h (trad_frame_set_reg_regmap): New.
  2117. 2018-10-08 Weimin Pan <weimin.pan@oracle.com>
  2118. PR c++/16841
  2119. * valops.c (get_virtual_base_offset): New function.
  2120. (value_struct_elt_for_reference): Use it to get virtual base offset
  2121. and add it in calculating class member address.
  2122. 2018-10-08 John Darrington <john@darrington.wattle.id.au>
  2123. * dwarf2read.c (dwarf2_cu) <producer_is_codewarrior>: New field.
  2124. (check_producer): Check if the producer is codewarrior.
  2125. (producer_is_codewarrior): New function.
  2126. (lnp_state_machine::record_line): Ignore is_stmt flag for records
  2127. produced by codewarrior.
  2128. (dwarf2_cu::dwarf2_cu): Initialize producer_is_codewarrior.
  2129. 2018-10-06 Tom Tromey <tom@tromey.com>
  2130. PR python/19399:
  2131. * python/py-inferior.c: Add "architecture" entry.
  2132. (infpy_architecture): New function.
  2133. 2018-10-06 Tom Tromey <tom@tromey.com>
  2134. PR python/21765:
  2135. * python/py-symbol.c (gdbpy_initialize_symbols): Redefine
  2136. SYMBOL_VARIABLES_DOMAIN, SYMBOL_FUNCTIONS_DOMAIN,
  2137. SYMBOL_TYPES_DOMAIN. Define SYMBOL_MODULE_DOMAIN,
  2138. SYMBOL_COMMON_BLOCK_DOMAIN, SYMBOL_LOC_COMMON_BLOCK.
  2139. 2018-10-06 Tom Tromey <tom@tromey.com>
  2140. PR build/17077:
  2141. * Makefile.in (OPCODES_CFLAGS): Remove "-I$(OPCODES_SRC)/..".
  2142. * arc-tdep.c, frv-tdep.c, lm32-tdep.c, mep-tdep.c,
  2143. microblaze-tdep.c, or1k-tdep.h: Use ../opcodes, not opcodes, in
  2144. #include.
  2145. 2018-10-06 Tom Tromey <tom@tromey.com>
  2146. * python/py-breakpoint.c (bppy_get_location): Handle a
  2147. bp_breakpoint without a location.
  2148. 2018-10-06 Tom Tromey <tom@tromey.com>
  2149. * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq)
  2150. (_RegEx): Reformat help text.
  2151. * python/lib/gdb/function/caller_is.py (CallerIs, CallerMatches)
  2152. (AnyCallerIs, AnyCallerMatches): Reformat help text.
  2153. * python/lib/gdb/function/as_string.py (_AsString): Reformat help
  2154. text.
  2155. * python/lib/gdb/command/xmethods.py (InfoXMethod)
  2156. (EnableXMethod, DisableXMethod): Remove help indentation.
  2157. Capitalize meta-syntactic variables.
  2158. * python/lib/gdb/command/unwinders.py (InfoUnwinder)
  2159. (EnableUnwinder, DisableUnwinder): Remove help indentation.
  2160. Capitalize meta-syntactic variables.
  2161. * python/lib/gdb/command/explore.py (ExploreCommand)
  2162. (ExploreValueCommand, ExploreTypeCommand): Reformat help text.
  2163. * python/lib/gdb/command/type_printers.py (InfoTypePrinter)
  2164. (EnableTypePrinter, DisableTypePrinter): Remove help indentation.
  2165. * python/lib/gdb/command/pretty_printers.py (InfoPrettyPrinter):
  2166. Remove help indentation.
  2167. (EnablePrettyPrinter, DisablePrettyPrinter): Likewise.
  2168. * python/lib/gdb/command/frame_filters.py (EnableFrameFilter)
  2169. (DisableFrameFilter, SetFrameFilterPriority)
  2170. (ShowFrameFilterPriority, InfoFrameFilter): Reword help text.
  2171. 2018-10-06 Tom Tromey <tom@tromey.com>
  2172. PR tui/28819:
  2173. * tui/tui-io.c (gdb_wgetch): New function.
  2174. (tui_mld_getc, tui_getc): Use it.
  2175. 2018-10-05 Tom Tromey <tom@tromey.com>
  2176. * sol-thread.c (sol_thread_target::wait): Rename inner
  2177. "save_ptid".
  2178. 2018-10-04 Tom Tromey <tom@tromey.com>
  2179. * configure: Rebuild.
  2180. * warning.m4 (AM_GDB_WARNINGS): Add -Wshadow=local.
  2181. 2018-10-04 Tom Tromey <tom@tromey.com>
  2182. * guile/scm-frame.c (gdbscm_frame_read_var): Remove inner
  2183. declaration of "block".
  2184. 2018-10-04 Tom Tromey <tom@tromey.com>
  2185. * common/filestuff.c (fdwalk): Remove inner declaration of
  2186. "result".
  2187. 2018-10-04 Tom Tromey <tom@tromey.com>
  2188. * msp430-tdep.c (msp430_push_dummy_call): Rename inner
  2189. "structs_addr" and hoist declaration.
  2190. 2018-10-04 Tom Tromey <tom@tromey.com>
  2191. * linux-tdep.c (linux_make_mappings_corefile_notes): Introduce new
  2192. variable "size".
  2193. 2018-10-04 Tom Tromey <tom@tromey.com>
  2194. * mdebugread.c (parse_partial_symbols): Use std::string.
  2195. 2018-10-04 Tom Tromey <tom@tromey.com>
  2196. * ctf.c (SET_ARRAY_FIELD): Rename "u32".
  2197. * p-valprint.c (pascal_val_print): Split inner "i" variable.
  2198. * xtensa-tdep.c (xtensa_push_dummy_call): Declare "i" in loop
  2199. header.
  2200. * xstormy16-tdep.c (xstormy16_push_dummy_call): Declare "val" in
  2201. more inner scope.
  2202. * xcoffread.c (read_xcoff_symtab): Rename inner "symbol".
  2203. * varobj.c (varobj_update): Rename inner "newobj",
  2204. "type_changed".
  2205. * valprint.c (generic_emit_char): Rename inner "buf".
  2206. * valops.c (find_overload_match): Rename inner "temp".
  2207. (value_struct_elt_for_reference): Declare "v" in more inner
  2208. scope.
  2209. * v850-tdep.c (v850_push_dummy_call): Rename "len".
  2210. * unittests/array-view-selftests.c (run_tests): Rename inner
  2211. "vec".
  2212. * tui/tui-stack.c (tui_show_frame_info): Declare "i" in loop
  2213. header.
  2214. * tracepoint.c (merge_uploaded_trace_state_variables): Declare
  2215. "tsv" in more inner scope.
  2216. (print_one_static_tracepoint_marker): Rename inner
  2217. "tuple_emitter".
  2218. * tic6x-tdep.c (tic6x_analyze_prologue): Declare "inst" lower.
  2219. (tic6x_push_dummy_call): Don't redeclare "addr".
  2220. * target-float.c: Declare "dto" lower.
  2221. * symtab.c (lookup_local_symbol): Rename inner "sym".
  2222. (find_pc_sect_line): Rename inner "pc".
  2223. * stack.c (print_frame): Don't redeclare "gdbarch".
  2224. (return_command): Rename inner "gdbarch".
  2225. * s390-tdep.c (s390_prologue_frame_unwind_cache): Renam inner
  2226. "sp".
  2227. * rust-lang.c (rust_internal_print_type): Declare "i" in loop
  2228. header.
  2229. * rs6000-tdep.c (ppc_process_record): Rename inner "addr".
  2230. * riscv-tdep.c (riscv_push_dummy_call): Declare "info" in inner
  2231. scope.
  2232. * remote.c (remote_target::update_thread_list): Don't redeclare
  2233. "tp".
  2234. (remote_target::process_initial_stop_replies): Rename inner
  2235. "thread".
  2236. (remote_target::remote_parse_stop_reply): Don't redeclare "p".
  2237. (remote_target::wait_as): Don't redeclare "stop_reply".
  2238. (remote_target::get_thread_local_address): Rename inner
  2239. "result".
  2240. (remote_target::get_tib_address): Likewise.
  2241. * regcache.c (cooked_read_test): Rename "regnum".
  2242. * record-btrace.c (cmd_record_btrace_start): Rename inner
  2243. "exception".
  2244. * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Declare "i" in
  2245. loop header.
  2246. * ppc-linux-tdep.c (ppc_linux_syscall_record): Declare "i" in loop
  2247. header.
  2248. (ppu2spu_sniffer): Rename inner "buf".
  2249. * parse.c (operator_check_standard): Rename inner "type",
  2250. "objfile".
  2251. * p-valprint.c (pascal_val_print): Introduce new scope for
  2252. "low_bound", "high_bound".
  2253. * p-exp.y (yylex): Declare "i" in loop header.
  2254. * objfiles.c (objfile_relocate1): Declare "i" in loop header.
  2255. Lower declaration of "s".
  2256. * nios2-tdep.c (nios2_analyze_prologue): Declare "i" in loop
  2257. header.
  2258. (nios2_push_dummy_call): Rename "len".
  2259. * nat/linux-osdata.c (linux_xfer_osdata_cpus): Rename static
  2260. "buf".
  2261. (linux_xfer_osdata_fds, linux_xfer_osdata_shm)
  2262. (linux_xfer_osdata_sem, linux_xfer_osdata_msg)
  2263. (linux_xfer_osdata_modules): Likewise.
  2264. * mips-tdep.c (mips_eabi_push_dummy_call): Rename outer "len".
  2265. (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
  2266. (mips_o64_push_dummy_call): Likewise.
  2267. * microblaze-tdep.c (microblaze_analyze_prologue): Rename inner
  2268. "op".
  2269. * mi/mi-main.c (list_available_thread_groups): Rename inner
  2270. "tuple_emitter".
  2271. (mi_cmd_data_read_memory): Rename inner "opts".
  2272. * mi/mi-cmd-var.c (varobj_update_one): Rename inner
  2273. "tuple_emitter".
  2274. * mep-tdep.c (mep_analyze_prologue): Declare "rn" in loop header.
  2275. * mdebugread.c (parse_symbol): Rename inner "b". Declare "f" in
  2276. more inner scope.
  2277. (parse_partial_symbols): Rename inner "pst", "p", "name"
  2278. * main.c (captured_main_1): Rename inner "i"s.
  2279. * machoread.c (macho_symfile_read_all_oso): Don't redeclare
  2280. "oso2".
  2281. * linux-tdep.c (linux_info_proc): Rename inner "filename".
  2282. * linespec.c (linespec_lexer_lex_string): Rename inner "p".
  2283. * infrun.c (handle_no_resumed): Don't redeclare "thread".
  2284. (handle_signal_stop): Rename inner "gdbarch".
  2285. (handle_command): Declare "signum" in loop header.
  2286. * ia64-tdep.c (ia64_pseudo_register_read): Don't redeclare
  2287. "status".
  2288. (examine_prologue): Rename inner "sol" and "sof".
  2289. (ia64_extract_return_value): Rename inner "val". Declare another
  2290. "val" in a more inner scope.
  2291. * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Declare "buf" in
  2292. inner scope.
  2293. * guile/scm-symbol.c (gdbscm_lookup_symbol): Rename inner
  2294. "except".
  2295. * findvar.c (default_read_var_value): Don't redeclare "addr".
  2296. * f-exp.y (yylex): Declare "i" in loop header.
  2297. * eval.c (evaluate_subexp_standard): Don't redeclare "type".
  2298. Rename inner "type", "expect_type".
  2299. (evaluate_subexp_for_sizeof): Rename inner "pc".
  2300. * elfread.c (elf_symfile_read): Rename inner "abfd".
  2301. * dwarf2read.c (read_debug_names_from_section): Don't redeclare
  2302. "bytes_read".
  2303. (process_psymtab_comp_unit_reader): Don't redeclare "gdbarch".
  2304. (add_partial_subprogram): Rename inner "lowpc" and "highpc".
  2305. (dwarf_decode_line_header): Rename inner "lh".
  2306. * dwarf2loc.c (dwarf2_compile_expr_to_ax): Don't redeclare
  2307. "offset". Declare "i" in loop header.
  2308. (disassemble_dwarf_expression): Rename inner "addr_size".
  2309. * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Rename
  2310. inner "result".
  2311. (dwarf_expr_context::execute_stack_op): Rename inner "offset".
  2312. * dwarf2-frame.c (decode_frame_entry_1): Rename inner "length"s.
  2313. * disasm.c (do_mixed_source_and_assembly_deprecated): Rename inner
  2314. "inner_list_emitter".
  2315. (do_mixed_source_and_assembly): Rename inner "tuple_emitter".
  2316. * disasm-selftests.c (print_one_insn_test): Wrap "bplen"
  2317. declaration in a block.
  2318. * csky-tdep.c (csky_analyze_prologue): Declare "offset" lower.
  2319. * cp-valprint.c (cp_print_value_fields): Don't redeclare
  2320. "obstack_final_size".
  2321. * cp-support.c (inspect_type): Declare "i" in loop header.
  2322. * compile/compile.c (compile_instance::insert_symbol_error):
  2323. Rename inner "e".
  2324. * common/agent.c (agent_run_command): Remove inner "ret"
  2325. declaration.
  2326. * coffread.c (coff_symfile_read): Rename inner "name".
  2327. (coff_symfile_read): Rename inner "abfd".
  2328. * cli/cli-utils.c (get_number_trailer): Rename inner "val".
  2329. * cli/cli-cmds.c (print_disassembly): Rename inner "low" and
  2330. "high".
  2331. * c-exp.y (lex_one_token): Move "len" declaration lower.
  2332. * breakpoint.c (create_longjmp_master_breakpoint): Don't redeclare
  2333. "gdbarch".
  2334. (create_exception_master_breakpoint): Likewise. Don't redeclare
  2335. "b".
  2336. (watch_command_1): Declare "mark" later.
  2337. (clear_command): Don't shadow "a" or "b".
  2338. (delete_command): Rename inner "b".
  2339. (delete_trace_command): Likewise.
  2340. * arm-tdep.c (thumb_process_displaced_32bit_insn): Rename inner
  2341. "op".
  2342. (arm_gdbarch_init): Remove inner "e_flags".
  2343. * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Declare
  2344. "offset" in inner blocks.
  2345. 2018-10-04 Simon Marchi <simon.marchi@ericsson.com>
  2346. * dwarf-index-write.c (file_write): Don't write if the vector is
  2347. empty.
  2348. 2018-10-05 Tom de Vries <tdevries@suse.de>
  2349. * python/py-progspace.c (pspy_solib_name): Fix type mismatch in
  2350. PyArg_ParseTuple call.
  2351. 2018-10-05 Tom de Vries <tdevries@suse.de>
  2352. * python/py-record-btrace.c (recpy_bt_goto): Fix type mismatch in
  2353. PyArg_ParseTuple call.
  2354. 2018-10-04 Joel Brobecker <brobecker@adacore.com>
  2355. * psymtab.c (recursively_search_psymtabs): Reformat parameters
  2356. to avoid exceeding 80 characters per line limit.
  2357. 2018-10-04 Tom Tromey <tom@tromey.com>
  2358. * symfile.c (syms_from_objfile_1, finish_new_objfile)
  2359. (reread_symbols): Update.
  2360. * complaints.h (clear_complaints): Remove argument.
  2361. * complaints.c (enum complaint_series): Remove.
  2362. (series): Remove global.
  2363. (complaint_internal): Update.
  2364. (clear_complaints): Remove argument.
  2365. 2018-10-04 Tom Tromey <tom@tromey.com>
  2366. * symfile.c (symbol_file_add_with_addrs): Do not print "no
  2367. debugging symbols" message if there is a separate debug objfile.
  2368. 2018-10-04 Tom Tromey <tom@tromey.com>
  2369. PR cli/19551:
  2370. * symfile.c (symbol_file_add_with_addrs): Update output.
  2371. * psymtab.c (require_partial_symbols): Update output.
  2372. 2018-10-04 Tom Tromey <tom@tromey.com>
  2373. PR cli/22234:
  2374. * complaints.c: Emit \n.
  2375. 2018-10-04 Tom Tromey <tom@tromey.com>
  2376. * symfile.c (symbol_file_add_with_addrs, symbol_file_clear)
  2377. (separate_debug_file_exists, find_separate_debug_file)
  2378. (add_symbol_file_command, reread_symbols, allocate_symtab)
  2379. (allocate_compunit_symtab): Use filtered printing, not
  2380. unfiltered.
  2381. * psymtab.c (require_partial_symbols, dump_psymtab)
  2382. (allocate_psymtab): Use filtered printing, not unfiltered.
  2383. 2018-10-04 Tom Tromey <tom@tromey.com>
  2384. * complaints.c (complaint_internal): Correctly check complaint
  2385. count.
  2386. 2018-10-04 Tom Tromey <tom@tromey.com>
  2387. * complaints.h (struct complaints): Remove declaration.
  2388. * complaints.c (clear_complaints): Remove an unused variable.
  2389. 2018-10-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
  2390. * MAINTAINERS (Write After Approval): Add self.
  2391. 2018-10-03 Tom Tromey <tom@tromey.com>
  2392. * guile/scm-value.c (gdbscm_value_to_string): Initialize
  2393. "buffer_contents".
  2394. * coffread.c (coff_symtab_read): Initialize "newobj".
  2395. 2018-10-03 Simon Marchi <simon.marchi@polymtl.ca>
  2396. * dwarf2read.c (read_func_scope): Remove struct keyword in
  2397. range-based for.
  2398. 2018-10-03 Tom Tromey <tom@tromey.com>
  2399. * README: Mention --enable-ubsan.
  2400. * NEWS: Mention --enable-ubsan.
  2401. * acinclude.m4: Include sanitize.m4.
  2402. * configure: Rebuild.
  2403. * configure.ac: Call AM_GDB_UBSAN.
  2404. * sanitize.m4: New file.
  2405. 2018-10-03 Tom Tromey <tom@tromey.com>
  2406. * expression.h (enum exp_opcode): Use uint8_t as base type.
  2407. * expprint.c (op_name): Handle invalid opcodes.
  2408. 2018-10-03 Tom Tromey <tom@tromey.com>
  2409. * parse.c (prefixify_expression): Add assert.
  2410. (parse_exp_in_context_1): Throw exception if the expression is
  2411. empty.
  2412. 2018-10-03 Tom Tromey <tom@tromey.com>
  2413. * dwarf2read.c (read_signed_leb128): Work in ULONGEST.
  2414. 2018-10-03 Tom Tromey <tom@tromey.com>
  2415. * c-exp.y (parse_number): Work in unsigned. Remove casts.
  2416. 2018-10-03 Tom Tromey <tom@tromey.com>
  2417. * dwarf2read.c (read_subrange_type): Make "negative_mask"
  2418. unsigned.
  2419. 2018-10-03 Tom Tromey <tom@tromey.com>
  2420. * findvar.c (extract_integer): Do work in an unsigned type.
  2421. 2018-10-03 Tom Tromey <tom@tromey.com>
  2422. * common/enum-flags.h (enum_flags::operator~): Add static assert.
  2423. * symfile-add-flags.h (enum symfile_add_flag): Use unsigned as
  2424. base type.
  2425. * objfile-flags.h (enum objfile_flag): Use unsigned as base type.
  2426. * gdbtypes.h (enum type_instance_flag_value): Use unsigned as base
  2427. type.
  2428. * c-lang.h (enum c_string_type_values): Use unsigned as base
  2429. type.
  2430. * btrace.h (enum btrace_thread_flag): Use unsigned as base type.
  2431. 2018-10-03 Tom Tromey <tom@tromey.com>
  2432. * dwarf2-frame.h (dwarf2_frame_state_reg_info)
  2433. <~dwarf2_frame_state_reg_info>: Update.
  2434. <dwarf2_frame_state_reg_info>: Update.
  2435. <alloc_regs>: Add assertion. Update.
  2436. <reg>: Now a std::vector.
  2437. <num_regs>: Remove.
  2438. <swap>: Update.
  2439. * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
  2440. (execute_cfa_program_test, dwarf2_frame_cache): Update.
  2441. 2018-10-03 Tom Tromey <tom@tromey.com>
  2442. * namespace.c (add_using_directive): Don't pass NULL to memcpy.
  2443. 2018-10-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
  2444. * tid-parse.c (tid_is_in_list): Fix wrong 'See' comment.
  2445. 2018-10-02 Tom Tromey <tom@tromey.com>
  2446. * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Use pulongest.
  2447. 2018-10-02 John Darrington <john@darrington.wattle.id.au>
  2448. * NEWS: Mention changed commands.
  2449. * ser-uds.c: New file.
  2450. * configure.ac (SER_HARDWIRE): Add ser-uds.o.
  2451. * configure: Regenerate.
  2452. * Makefile.in: Add new file.
  2453. * serial.c (serial_open): Check if filename is a socket
  2454. and lookup the appropriate interface accordingly.
  2455. 2018-10-01 Alan Hayward <alan.hayward@arm.com>
  2456. * aarch64-linux-tdep.c (AARCH64_SIGCONTEXT_RESERVED_OFFSET): Add
  2457. define.
  2458. (AARCH64_EXTRA_MAGIC): Likewise.
  2459. (AARCH64_FPSIMD_MAGIC): Likewise.
  2460. (AARCH64_SVE_MAGIC): Likewise.
  2461. (AARCH64_EXTRA_DATAP_OFFSET): Likewise.
  2462. (AARCH64_FPSIMD_FPSR_OFFSET): Likewise.
  2463. (AARCH64_FPSIMD_FPCR_OFFSET): Likewise.
  2464. (AARCH64_FPSIMD_V0_OFFSET): Likewise.
  2465. (AARCH64_FPSIMD_VREG_SIZE): Likewise.
  2466. (AARCH64_SVE_CONTEXT_VL_OFFSET): Likewise.
  2467. (AARCH64_SVE_CONTEXT_REGS_OFFSET): Likewise.
  2468. (AARCH64_SVE_CONTEXT_P_REGS_OFFSET): Likewise.
  2469. (AARCH64_SVE_CONTEXT_FFR_OFFSET): Likewise.
  2470. (AARCH64_SVE_CONTEXT_SIZE): Likewise.
  2471. (read_aarch64_ctx): Add function.
  2472. (aarch64_linux_sigframe_init): Detect FP registers.
  2473. 2018-10-01 Alan Hayward <alan.hayward@arm.com>
  2474. * aarch64-tdep.c (AARCH64_Q0_REGNUM): Move to here.
  2475. (AARCH64_D0_REGNUM): Likewise.
  2476. (AARCH64_S0_REGNUM): Likewise.
  2477. (AARCH64_H0_REGNUM): Likewise.
  2478. (AARCH64_B0_REGNUM): Likewise.
  2479. (AARCH64_SVE_V0_REGNUM): Likewise.
  2480. * arch/aarch64.h (AARCH64_Q0_REGNUM): Move from here.
  2481. (AARCH64_D0_REGNUM): Likewise.
  2482. (AARCH64_S0_REGNUM): Likewise.
  2483. (AARCH64_H0_REGNUM): Likewise.
  2484. (AARCH64_B0_REGNUM): Likewise.
  2485. (AARCH64_SVE_V0_REGNUM): Likewise.
  2486. 2018-10-01 Gary Benson <gbenson@redhat.com>
  2487. * gdb_proc_service.h (gdb_prfpregset_t): Remove typedef.
  2488. * proc-service.c (ps_lgetfpregs, ps_lsetfpregs): Use
  2489. prfpregset_t instead of gdb_prfpregset_t.
  2490. * configure.ac (PRFPREGSET_T_BROKEN): Remove check.
  2491. * configure, config.in: Rebuild.
  2492. 2018-10-01 Gary Benson <gbenson@redhat.com>
  2493. * common/gdb_proc_service.h: New file, factored out from...
  2494. * gdb_proc_service.h: Moved common code to the above file.
  2495. * Makefile.in (HFILES_NO_SRCDIR): Add the above new file.
  2496. 2018-10-01 Gary Benson <gbenson@redhat.com>
  2497. * gdb_proc_service.h: Use elf_gregset_t if prgregset_t is
  2498. undefined. Use elf_fpregset_t if prfpregset_t is undefined.
  2499. 2018-10-01 Gary Benson <gbenson@redhat.com>
  2500. * configure.ac: Check if sys/procfs.h defines elf_fpregset_t.
  2501. (AC_CHECK_HEADERS): Check for linux/elf.h.
  2502. * configure, config.in: Rebuild.
  2503. * gdb_proc_service.h: Include linux/elf.h if sys/procfs.h
  2504. doesn't define elf_fpregset_t.
  2505. 2018-10-01 Gary Benson <gbenson@redhat.com>
  2506. * gdb_proc_service.h: Whitespace change.
  2507. 2018-10-01 Tom Tromey <tom@tromey.com>
  2508. * unittests/scoped_mmap-selftests.c: Don't check HAVE_UNISTD_H.
  2509. * unittests/scoped_fd-selftests.c: Don't check HAVE_UNISTD_H.
  2510. * common/scoped_fd.h: Don't check HAVE_UNISTD_H.
  2511. 2018-10-01 Tom Tromey <tom@tromey.com>
  2512. * README: Minor change.
  2513. 2018-09-30 Pedro Alves <palves@redhat.com>
  2514. * darwin-nat-info.c (darwin_debug_regions_recurse)
  2515. (info_mach_exceptions_command): Remove unused local variables.
  2516. * darwin-nat.c (darwin_decode_notify_message)
  2517. (darwin_nat_target::resume, darwin_nat_target::mourn_inferior)
  2518. (darwin_stop_inferior, darwin_setup_exceptions)
  2519. (darwin_nat_target::kill, darwin_attach_pid, darwin_ptrace_him)
  2520. (darwin_nat_target::attach, darwin_nat_target::detach)
  2521. (darwin_read_write_inferior, darwin_read_dyld_info): Remove unused
  2522. local variables.
  2523. * i386-darwin-nat.c (i386_darwin_dr_set): Remove unused local
  2524. variables.
  2525. 2018-09-29 Tom Tromey <tom@tromey.com>
  2526. * README: Remove some leftover text.
  2527. 2018-09-29 Tom Tromey <tom@tromey.com>
  2528. * PROBLEMS: Rewrite.
  2529. * README: Update.
  2530. 2018-09-28 John Baldwin <jhb@FreeBSD.org>
  2531. * disasm-selftests.c (print_one_insn_test): Add bfd_arch_riscv to
  2532. case with explicit breakpoint kind.
  2533. * riscv-tdep.c (show_use_compressed_breakpoints): Remove
  2534. 'additional_info' and related logic.
  2535. (riscv_debug_breakpoints): New variable.
  2536. (riscv_breakpoint_kind_from_pc): Use the length of the existing
  2537. instruction to determine the breakpoint kind.
  2538. (_initialize_riscv_tdep): Add 'set/show debug riscv breakpoints'
  2539. flag. Update description of 'set/show riscv
  2540. use-compressed-breakpoints' flag.
  2541. 2018-09-28 Andrew Burgess <andrew.burgess@embecosm.com>
  2542. (NEWS): Mention changes to frame related commands.
  2543. * cli/cli-decode.c (add_cmd_suppress_notification): New function.
  2544. (add_prefix_cmd_suppress_notification): New function.
  2545. (add_com_suppress_notification): Call
  2546. add_cmd_suppress_notification.
  2547. * command.h (add_cmd_suppress_notification): Declare.
  2548. (add_prefix_cmd_suppress_notification): Declare.
  2549. * mi/mi-cmd-stack.c: Add 'safe-ctype.h' include.
  2550. (parse_frame_specification): Moved from stack.c, with
  2551. simplification to handle a single argument.
  2552. (mi_cmd_stack_select_frame): Use parse_frame_specification, the
  2553. switch to the selected frame. Add a header comment.
  2554. * stack.c: Remove 'safe-ctype.h' include.
  2555. (find_frame_for_function): Add declaration.
  2556. (find_frame_for_address): New function.
  2557. (parse_frame_specification): Moved into mi/mi-cmd-stack.c.
  2558. (frame_selection_by_function_completer): New function.
  2559. (info_frame_command): Rename to...
  2560. (info_frame_command_core): ...this, and update parameter types.
  2561. (select_frame_command): Rename to...
  2562. (select_frame_command_core): ...this, and update parameter types.
  2563. (frame_command): Rename to...
  2564. (frame_command_core): ...this, and update parameter types.
  2565. (class frame_command_helper): New class to wrap implementations of
  2566. frame related sub-commands.
  2567. (frame_apply_cmd_list): New static global.
  2568. (frame_cmd_list): Make static.
  2569. (select_frame_cmd_list): New global for sub-commands.
  2570. (info_frame_cmd_list): New global for sub-commands.
  2571. (_initialize_stack): Register sub-commands for 'frame',
  2572. 'select-frame', and 'info frame'. Update 'frame apply' commands
  2573. to use frame_apply_cmd_list. Move function local static
  2574. frame_apply_list to file static frame_apply_cmd_list for
  2575. consistency.
  2576. * stack.h (select_frame_command): Delete declarationn.
  2577. (select_frame_for_mi): Declare new function.
  2578. 2018-09-26 Andrew Burgess <andrew.burgess@embecosm.com>
  2579. * riscv-tdep.c (riscv_insn::decode): Decode c.lui.
  2580. (riscv_scan_prologue): Split handling of AUIPC, LUI, ADD, ADDI,
  2581. and NOP.
  2582. 2018-09-26 Simon Marchi <simon.marchi@ericsson.com>
  2583. * elf32-nds32.c (elf32_nds32_allocate_dynrelocs): Remove.
  2584. 2018-09-26 Tom Tromey <tom@tromey.com>
  2585. * valops.c (auto_abandon): Remove dead code.
  2586. 2018-09-26 Tom Tromey <tom@tromey.com>
  2587. * tui/tui-win.c (WIN_HEIGHT_USAGE): Remove extra ">"s.
  2588. 2018-09-24 Tom Tromey <tom@tromey.com>
  2589. * common/pathstuff.c (get_standard_cache_dir): Make
  2590. "xdg_cache_home" and "home" const.
  2591. * top.c (init_history): Make "tmpenv" const.
  2592. * main.c (get_init_files): Make "homedir" const.
  2593. 2018-09-23 Tom Tromey <tom@tromey.com>
  2594. PR python/18852:
  2595. * python/py-param.c (get_set_value): Use gdbpy_handle_exception.
  2596. 2018-09-23 Tom Tromey <tom@tromey.com>
  2597. * python/py-function.c (fnpy_call): Use gdbpy_handle_exception.
  2598. * python/py-cmd.c (cmdpy_function): Use gdbpy_handle_exception.
  2599. * python/python-internal.h (gdbpy_handle_exception): Declare.
  2600. * python/py-utils.c (gdbpy_handle_exception): New function.
  2601. 2018-09-23 Tom Tromey <tom@tromey.com>
  2602. PR python/17284:
  2603. * python/py-type.c (typy_template_argument): Check for negative
  2604. argument number.
  2605. 2018-09-23 Tom Tromey <tom@tromey.com>
  2606. PR python/14062:
  2607. * python/python.c (gdbpy_run_events): Do not ignore exceptions.
  2608. 2018-09-23 Tom Tromey <tom@tromey.com>
  2609. PR python/18170:
  2610. * python/py-value.c (valpy_int): Allow conversion from pointer
  2611. type.
  2612. 2018-09-23 Tom Tromey <tom@tromey.com>
  2613. PR python/20126:
  2614. * python/py-value.c (valpy_int): Respect type sign.
  2615. 2018-09-23 Tom Tromey <tom@tromey.com>
  2616. PR python/18352;
  2617. * python/py-value.c (valpy_float): Allow conversions from int or
  2618. char.
  2619. (valpy_int, valpy_long): Allow conversions from float.
  2620. 2018-09-23 Tom Tromey <tom@tromey.com>
  2621. * ctf.c (ctf_start): Use gdb_fopen_cloexec.
  2622. * common/scoped_mmap.c (mmap_file): Use gdb_open_cloexec.
  2623. 2018-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
  2624. * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Also recognize
  2625. __sighndlr.
  2626. * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Likewise.
  2627. 2018-08-02 Jon Turney <jon.turney@dronecode.org.uk>
  2628. * windows-nat.c (windows_nat_target::wait): Remove a spurious
  2629. target_terminal::ours().
  2630. 2018-09-23 Simon Marchi <simon.marchi@ericsson.com>
  2631. * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): Change type
  2632. of vl to ULONGEST.
  2633. 2018-09-21 Yacov Simhony <ysimhony@gmail.com>
  2634. * breakpoint.c (update_inserted_breakpoint_locations): Remove
  2635. redundant condition.
  2636. 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
  2637. * proc-utils.h (PROC_CTL_WORD_TYPE): Remove.
  2638. * procfs.c: Don't check for PR_MODEL_NATIVE definition.
  2639. * sparc-sol2-nat.c: Likewise. Remove Linux, __arch64__ references.
  2640. * sol-thread.c (ps_pdmodel): Don't guard definition.
  2641. * procfs.c: Fix formatting.
  2642. * procfs.c (sysset_t_alloc): Remove.
  2643. (create_procinfo): Use XNEW instead of sysset_t_alloc.
  2644. (procfs_debug_inferior): Likewise.
  2645. (procfs_set_exec_trap): Likewise.
  2646. (proc_set_traced_sysentry): Don't allocate argp dynamically.
  2647. (proc_set_traced_sysexit): Likewise.
  2648. * procfs.c (create_procinfo): Use xsnprintf to fix ARI warning.
  2649. (dead_procinfo): Likewise.
  2650. (proc_warn): Likewise.
  2651. (proc_error): Likewise.
  2652. (proc_get_LDT_entry): Likewise.
  2653. (do_attach): Likewise.
  2654. (procfs_target::pid_to_str): Likewise.
  2655. (iterate_over_mappings): Likewise.
  2656. * procfs.c (create_procinfo): Fix ARI warning.
  2657. (proc_get_status): Likewise.
  2658. (proc_stop_process): Likewise.
  2659. (proc_run_process): Likewise.
  2660. (proc_kill): Likewise.
  2661. (proc_get_LDT_entry): Likewise.
  2662. (procfs_find_LDT_entry): Likewise.
  2663. (proc_update_threads): Likewise.
  2664. (proc_iterate_over_threads): Likewise.
  2665. (do_attach): Likewise.
  2666. (procfs_xfer_memory): Likewise.
  2667. (invalidate_cache): Likewise.
  2668. (procfs_target::resume): Likewise.
  2669. (procfs_init_inferior): Likewise.
  2670. (procfs_set_exec_trap): Likewise.
  2671. (procfs_target::thread_alive): Likewise.
  2672. (procfs_target::pid_to_exec_file): Likewise.
  2673. (iterate_over_mappings): Likewise.
  2674. (procfs_target::make_corefile_notes): Likewise.
  2675. * sol-thread.c (sol_thread_target::thread_alive): Likewise.
  2676. * procfs.c (procfs_find_LDT_entry): Silence ARI warning.
  2677. (procfs_find_LDT_entry): Likewise.
  2678. * sol-thread.c (ps_lgetLDT): Likewise.
  2679. 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
  2680. PR tdep/17903
  2681. * procfs.c (procfs_target): Declare pid_to_exec_file.
  2682. (procfs_target::pid_to_exec_file): New.
  2683. 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
  2684. * auxv.c (default_print_auxv_entry): Reflect AT_SUN_CAP_HW1
  2685. renaming.
  2686. Handle AT_SUN_EMULATOR, AT_SUN_BRANDNAME, AT_SUN_BRAND_AUX1,
  2687. AT_SUN_BRAND_AUX2, AT_SUN_BRAND_AUX3, AT_SUN_CAP_HW2.
  2688. 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
  2689. * i386-v4-nat.c (regmap, supply_gregset, fill_gregset)
  2690. (supply_fpregset, fill_fpregset): Move ...
  2691. * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64]: ... here.
  2692. Remove HAVE_GREGSET_T, HAVE_FPREGET_T guards.
  2693. Remove references to ioctl-based procfs.
  2694. Include <sys/reg.h>.
  2695. Remove PR_MODEL_NATIVE guards.
  2696. * configure.nat <sol2, i386> (NATDEPFILES): Remove i386-v4-nat.o.
  2697. * Makefile.in (ALLDEPFILES): Remove i386-v4-nat.c.
  2698. 2018-09-19 Xavier Roirand <roirand@adacore.com>
  2699. PR gdb/20981:
  2700. * solib-darwin.c (darwin_get_dyld_bfd): New function.
  2701. (darwin_solib_get_all_image_info_addr_at_init): Update call.
  2702. (darwin_solib_create_inferior_hook): Handle unrelocated dyld.
  2703. 2018-09-19 John Baldwin <jhb@FreeBSD.org>
  2704. * fbsd-tdep.c (fbsd_print_sockaddr_in): Style fix.
  2705. (fbsd_print_sockaddr_in6): Likewise.
  2706. 2018-09-19 Richard Bunt <richard.bunt@arm.com>
  2707. Chris January <chris.january@arm.com>
  2708. * eval.c (skip_undetermined_arglist): Skip argument list helper.
  2709. (evaluate_subexp_standard): Return a dummy type when
  2710. honoring EVAL_SKIP in OP_VAR_VALUE and handle skipping in the
  2711. OP_F77_UNDETERMINED_ARGLIST case.
  2712. * expression.h (enum noside): Update comment.
  2713. 2018-09-19 George Vasick <george.vasick@oracle.com>
  2714. * solib-svr4.c (svr4_same_1): Also handle amd64 ld.so.1.
  2715. 2018-09-19 Stefan Teleman <stefan.teleman@oracle.com>
  2716. April Chin <april.chin@oracle.com>
  2717. Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
  2718. * procfs.c (MAX_PROC_NAME_SIZE): Allow for 6-digit PID_MAX and
  2719. uint_t lwpid_t.
  2720. (create_procinfo): Print pids in /proc without leading zeros.
  2721. 2018-09-18 Sandra Loosemore <sandra@codesourcery.com>
  2722. * nios2-tdep.c (nios2_gcc_target_options): New.
  2723. (nios2_gdb_arch_init): Install new hook.
  2724. 2018-09-18 Simon Marchi <simon.marchi@ericsson.com>
  2725. * patches/0001-Fix-PR-gdb-23558-Use-system-s-getcwd-when-cross-comp.patch:
  2726. New file.
  2727. * update-gnulib.sh: Apply patch.
  2728. * configure: Re-generate.
  2729. 2018-09-18 John Baldwin <jhb@FreeBSD.org>
  2730. * infcmd.c (_initialize_infcmd): Remove "running" from "info proc"
  2731. description. Make "info proc" command descriptions more
  2732. consistent.
  2733. 2018-09-18 John Baldwin <jhb@FreeBSD.org>
  2734. * NEWS: Mention 'info proc files' command.
  2735. 2018-09-18 John Baldwin <jhb@FreeBSD.org>
  2736. * fbsd-nat.c (fbsd_nat_target::info_proc): List open file
  2737. descriptors for IP_FILES and IP_ALL.
  2738. 2018-09-18 John Baldwin <jhb@FreeBSD.org>
  2739. * fbsd-tdep.c (KF_FLAGS, KF_OFFSET, KF_VNODE_TYPE, KF_SOCK_DOMAIN)
  2740. (KF_SOCK_TYPE, KF_SOCK_PROTOCOL, KF_SA_LOCAL, KF_SA_PEER)
  2741. (KINFO_FILE_TYPE_SOCKET, KINFO_FILE_TYPE_PIPE)
  2742. (KINFO_FILE_TYPE_FIFO, KINFO_FILE_TYPE_KQUEUE)
  2743. (KINFO_FILE_TYPE_CRYPTO, KINFO_FILE_TYPE_MQUEUE)
  2744. (KINFO_FILE_TYPE_SHM, KINFO_FILE_TYPE_SEM, KINFO_FILE_TYPE_PTS)
  2745. (KINFO_FILE_TYPE_PROCDESC, KINFO_FILE_FD_TYPE_ROOT)
  2746. (KINFO_FILE_FD_TYPE_JAIL, KINFO_FILE_FD_TYPE_TRACE)
  2747. (KINFO_FILE_FD_TYPE_CTTY, KINFO_FILE_FLAG_READ)
  2748. (KINFO_FILE_FLAG_WRITE, KINFO_FILE_FLAG_APPEND)
  2749. (KINFO_FILE_FLAG_ASYNC, KINFO_FILE_FLAG_FSYNC)
  2750. (KINFO_FILE_FLAG_NONBLOCK, KINFO_FILE_FLAG_DIRECT)
  2751. (KINFO_FILE_FLAG_HASLOCK, KINFO_FILE_FLAG_EXEC)
  2752. (KINFO_FILE_VTYPE_VREG, KINFO_FILE_VTYPE_VDIR)
  2753. (KINFO_FILE_VTYPE_VCHR, KINFO_FILE_VTYPE_VLNK)
  2754. (KINFO_FILE_VTYPE_VSOCK, KINFO_FILE_VTYPE_VFIFO, FBSD_AF_UNIX)
  2755. (FBSD_AF_INET, FBSD_AF_INET6, FBSD_SOCK_STREAM, FBSD_SOCK_DGRAM)
  2756. (FBSD_SOCK_SEQPACKET, FBSD_IPPROTO_ICMP, FBSD_IPPROTO_TCP)
  2757. (FBSD_IPPROTO_UDP, FBSD_IPPROTO_SCTP): New defines.
  2758. (struct fbsd_sockaddr_in, struct fbsd_sockaddr_in6)
  2759. (struct fbsd_sockaddr_un): New types.
  2760. (fbsd_file_fd, fbsd_file_type, fbsd_file_flags, fbsd_ipproto)
  2761. (fbsd_print_sockaddr_in, fbsd_print_sockaddr_in6)
  2762. (fbsd_info_proc_files_header, fbsd_info_proc_files_entry)
  2763. (fbsd_core_info_proc_files): New functions.
  2764. (fbsd_core_info_proc): List open file descriptors for IP_FILES and
  2765. IP_ALL.
  2766. * fbsd-tdep.h (fbsd_info_proc_files_header)
  2767. (fbsd_info_proc_files_entry): New.
  2768. 2018-09-18 John Baldwin <jhb@FreeBSD.org>
  2769. * defs.h (enum info_proc_what) [IP_FILES]: New value.
  2770. * infcmd.c (info_proc_cmd_files): New function.
  2771. (_initialize_infcmd): Register 'info proc files' command.
  2772. 2018-09-18 John Baldwin <jhb@FreeBSD.org>
  2773. * gnulib/aclocal-m4-deps.mk: Re-generate.
  2774. * gnulib/aclocal.m4: Re-generate.
  2775. * gnulib/config.in: Re-generate.
  2776. * gnulib/configure: Re-generate.
  2777. * gnulib/import/Makefile.am: Re-generate.
  2778. * gnulib/import/Makefile.in: Re-generate.
  2779. * gnulib/import/m4/gnulib-cache.m4: Re-generate.
  2780. * gnulib/import/m4/gnulib-comp.m4: Re-generate.
  2781. * gnulib/import/arpa_inet.in.h: New file.
  2782. * gnulib/import/inet_ntop.c: New file.
  2783. * gnulib/import/m4/arpa_inet_h.m4: New file.
  2784. * gnulib/import/m4/inet_ntop.m4: New file.
  2785. * gnulib/import/m4/netinet_in_h.m4: New file.
  2786. * gnulib/import/m4/socklen.m4: New file.
  2787. * gnulib/import/m4/sockpfaf.m4: New file.
  2788. * gnulib/import/m4/stdalign.m4: New file.
  2789. * gnulib/import/m4/sys_uio_h.m4: New file.
  2790. * gnulib/import/netinet_in.in.h: New file.
  2791. * gnulib/import/stdalign.in.h: New file.
  2792. * gnulib/import/sys_socket.c: New file.
  2793. * gnulib/import/sys_socket.in.h: New file.
  2794. * gnulib/import/sys_uio.in.h: New file.
  2795. * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add inet_ntop
  2796. module.
  2797. 2018-09-18 John Baldwin <jhb@FreeBSD.org>
  2798. * gnulib/aclocal-m4-deps.mk: New file.
  2799. * gnulib/update-gnulib.sh: Generate "aclocal-m4-deps.mk"
  2800. deterministically.
  2801. 2018-09-18 John Baldwin <jhb@FreeBSD.org>
  2802. * fbsd-tdep.c (fbsd_core_vnode_path): Use KF_PATH instead of
  2803. KVE_PATH.
  2804. 2018-09-18 Tom Tromey <tom@tromey.com>
  2805. * compile/compile-object-load.c (struct
  2806. link_hash_table_cleanup_data): Add constructor and destructor.
  2807. Use DISABLE_COPY_AND_ASSIGN.
  2808. (~link_hash_table_cleanup_data): Rename from
  2809. link_hash_table_free. Now a destructor.
  2810. (copy_sections): Use gdb::unique_xmalloc_ptr. Remove cleanups.
  2811. 2018-09-18 Tom Tromey <tom@tromey.com>
  2812. * compile/compile-object-run.c (do_module_cleanup): Use delete.
  2813. * compile/compile-object-load.c (struct munmap_list): Move to
  2814. header file.
  2815. (munmap_list::add): Rename from munmap_list_add; rewrite.
  2816. (munmap_list::~munmap_list): Rename from munmap_list_free.
  2817. (munmap_listp_free_cleanup): Remove.
  2818. (compile_object_load): Update.
  2819. * compile/compile-object-load.h (struct munmap_list): Move from
  2820. compile-object-load.c. Rewrite.
  2821. 2018-09-18 Alan Hayward <alan.hayward@arm.com>
  2822. * aarch64-tdep.c (pass_in_v): Use register size.
  2823. (aarch64_extract_return_value): Likewise.
  2824. (aarch64_store_return_value): Likewise.
  2825. 2018-09-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
  2826. * utils.c (dump_core) [HAVE_SETRLIMIT]: Cast RLIM_INFINITY to
  2827. rlim_t.
  2828. 2018-09-17 Philippe Waroquiers <philippe.waroquiers@skynet.be>
  2829. * python/lib/gdb/command/frame_filters.py (EnableFrameFilter):
  2830. Fix short help line.
  2831. 2018-09-17 Tom Tromey <tom@tromey.com>
  2832. PR python/20445:
  2833. * configure: Rebuild.
  2834. * configure.ac: Conditionally use -DNDEBUG for Python.
  2835. 2018-09-17 Tom Tromey <tom@tromey.com>
  2836. * configure: Rebuild.
  2837. * configure.ac: Use gmp as a library dependency when checking for
  2838. mpfr.
  2839. 2018-09-17 Pedro Alves <palves@redhat.com>
  2840. * python/py-inferior.c (find_inferior_object): Delete.
  2841. 2018-09-17 Simon Marchi <simon.marchi@ericsson.com>
  2842. * compile/compile-cplus-types.c
  2843. (compile_cplus_instance::enter_scope): Don't use new_scope after
  2844. std::move.
  2845. 2018-09-17 Tom Tromey <tom@tromey.com>
  2846. * common/pathstuff.c (get_standard_cache_dir): Use
  2847. ~/Library/Caches on macOS.
  2848. * common/pathstuff.h (get_standard_cache_dir): Update comment.
  2849. 2018-09-17 Simon Marchi <simon.marchi@polymtl.ca>
  2850. PR python/23669
  2851. * breakpoint.c (commands_cmd_element): New.
  2852. (_initialize_breakpoint): Assign commands_cmd_element.
  2853. * breakpoint.h (commands_cmd_element): New.
  2854. * cli/cli-script.c (while_cmd_element, if_command,
  2855. define_cmd_element): New.
  2856. (command_name_equals): Remove.
  2857. (process_next_line): Compare commands by pointer, not by name.
  2858. (_initialize_cli_script): Assign the various cmd_list_element
  2859. variables.
  2860. * compile/compile.c (compile_cmd_element): New.
  2861. (_initialize_compile): Assign compile_cmd_element.
  2862. * compile/compile.h (compile_cmd_element): New.
  2863. * guile/guile.c (guile_cmd_element): New.
  2864. (install_gdb_commands): Assign guile_cmd_element.
  2865. * guile/guile.h (guile_cmd_element): New.
  2866. * python/python.c (python_cmd_element): New.
  2867. (_initialize_python): Assign python_cmd_element.
  2868. * python/python.h (python_cmd_element): New.
  2869. * tracepoint.c (while_stepping_cmd_element): New.
  2870. (_initialize_tracepoint): Assign while_stepping_cmd_element.
  2871. * tracepoint.h (while_stepping_cmd_element): New.
  2872. 2018-09-17 Tom Tromey <tom@tromey.com>
  2873. * infrun.c (save_infcall_suspend_state): Return
  2874. infcall_suspend_state_up.
  2875. (save_infcall_control_state): Return infcall_control_state_up.
  2876. * inferior.h (save_infcall_suspend_state)
  2877. (save_infcall_control_state): Declare later. Return unique
  2878. pointers.
  2879. 2018-09-17 Tom Tromey <tom@tromey.com>
  2880. * infrun.c (struct stop_context): Declare constructor,
  2881. destructor, "changed" method.
  2882. (stop_context::stop_context): Rename from save_stop_context.
  2883. (stop_context::~stop_context): Rename from
  2884. release_stop_context_cleanup.
  2885. (normal_stop): Update.
  2886. (stop_context::changed): Rename from stop_context_changed. Return
  2887. bool.
  2888. 2018-09-17 Tom Tromey <tom@tromey.com>
  2889. * inferior.h (struct infcall_suspend_state_deleter): New.
  2890. (infcall_suspend_state_up): New typedef.
  2891. (struct infcall_control_state_deleter): New.
  2892. (infcall_control_state_up): New typedef.
  2893. (make_cleanup_restore_infcall_suspend_state)
  2894. (make_cleanup_restore_infcall_control_state): Don't declare.
  2895. * infcall.c (call_function_by_hand_dummy): Update.
  2896. * infrun.c (do_restore_infcall_suspend_state_cleanup)
  2897. (make_cleanup_restore_infcall_suspend_state): Remove.
  2898. (do_restore_infcall_control_state_cleanup)
  2899. (make_cleanup_restore_infcall_control_state): Remove.
  2900. 2018-09-17 Tom Tromey <tom@tromey.com>
  2901. * gdbthread.h (struct thread_control_state): Add initializer.
  2902. (class thread_info) <control>: Remove initializer.
  2903. * inferior.h (struct inferior_control_state): Add initializer.
  2904. (class inferior) <control>: Remove initializer.
  2905. (exit_inferior_1): Update.
  2906. * infrun.c (struct infcall_control_state): Add constructors.
  2907. (save_infcall_control_state): Use new.
  2908. (restore_infcall_control_state, discard_infcall_control_state):
  2909. Use delete.
  2910. 2018-09-17 Tom Tromey <tom@tromey.com>
  2911. * infrun.c (struct infcall_suspend_state) <registers>: Now a
  2912. unique_ptr.
  2913. <siginfo_data>: Now a unique_xmalloc_ptr.
  2914. (save_infcall_suspend_state, restore_infcall_suspend_state)
  2915. (discard_infcall_suspend_state)
  2916. (get_infcall_suspend_state_regcache): Update.
  2917. 2018-09-17 Tom Tromey <tom@tromey.com>
  2918. * gdbthread.h (struct thread_suspend_state): Add initializers.
  2919. (class thread_info) <suspend>: Remove initializer.
  2920. * infrun.c (struct infcall_suspend_state): Add initializers.
  2921. (save_infcall_suspend_state): Use new.
  2922. (discard_infcall_suspend_state): Use delete.
  2923. 2018-09-16 Tom Tromey <tom@tromey.com>
  2924. * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
  2925. Remove.
  2926. * python/py-varobj.c (py_varobj_iter_ctor): Change pyiter to
  2927. rvalue reference. Remove CPYCHECKER_STEALS_REFERENCE_TO_ARG.
  2928. (py_varobj_iter_new): Likewise.
  2929. (py_varobj_get_iterator): Use gdbpy_ref.
  2930. 2018-09-16 Tom Tromey <tom@tromey.com>
  2931. * python/py-threadevent.c (py_get_event_thread): Simplify.
  2932. * python/py-inferior.c (infpy_thread_from_thread_handle):
  2933. Return immediately after calling thread_to_thread_object. Use
  2934. Py_RETURN_NONE.
  2935. (thread_to_thread_object): Set the exception on a NULL return.
  2936. 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
  2937. * Makefile.in (LIBGDB_OBS): Sort COMMON_OBS.
  2938. 2018-09-16 Tom Tromey <tom@tromey.com>
  2939. * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
  2940. Remove.
  2941. 2018-09-16 Tom Tromey <tom@tromey.com>
  2942. * python/python-internal.h (thread_to_thread_object): Change
  2943. return type.
  2944. * python/py-inferior.c (thread_to_thread_object): Return a new
  2945. reference.
  2946. (infpy_thread_from_thread_handle): Update.
  2947. * python/py-infthread.c (gdbpy_selected_thread): Update.
  2948. * python/py-stopevent.c (create_stop_event_object): Update.
  2949. * python/py-threadevent.c (py_get_event_thread): Return a new
  2950. reference.
  2951. (py_get_event_thread): Update.
  2952. * python/py-event.h (py_get_event_thread): Change return type.
  2953. * python/py-continueevent.c (create_continue_event_object):
  2954. Update.
  2955. 2018-09-16 Tom Tromey <tom@tromey.com>
  2956. * python/py-progspace.c (pspy_get_objfiles): Update.
  2957. * python/python-internal.h (objfile_to_objfile_object): Change
  2958. return type.
  2959. * python/py-newobjfileevent.c (create_new_objfile_event_object):
  2960. Update.
  2961. * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
  2962. Update.
  2963. * python/python.c (gdbpy_get_current_objfile): Update.
  2964. (gdbpy_objfiles): Update.
  2965. * python/py-objfile.c (objfpy_get_owner, gdbpy_lookup_objfile):
  2966. Update.
  2967. (objfile_to_objfile_object): Return a new reference.
  2968. * python/py-symtab.c (stpy_get_objfile): Update.
  2969. * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
  2970. Update.
  2971. 2018-09-16 Tom Tromey <tom@tromey.com>
  2972. * python/py-inferior.c (infpy_get_progspace): Update.
  2973. * python/python-internal.h (pspace_to_pspace_object): Change
  2974. return type.
  2975. * python/py-newobjfileevent.c
  2976. (create_clear_objfiles_event_object): Update.
  2977. * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
  2978. Update.
  2979. * python/python.c (gdbpy_get_current_progspace): Update.
  2980. (gdbpy_progspaces): Update.
  2981. * python/py-progspace.c (pspace_to_pspace_object): Return a new
  2982. reference.
  2983. * python/py-objfile.c (objfpy_get_progspace): Update.
  2984. * python/py-prettyprint.c (find_pretty_printer_from_progspace):
  2985. Update.
  2986. 2018-09-16 Tom Tromey <tom@tromey.com>
  2987. * python/lib/gdb/__init__.py (current_progspace, objfiles)
  2988. (solib_name, block_for_pc, find_pc_line): New functions.
  2989. (execute_unwinders): Update.
  2990. * python/py-block.c (gdbpy_block_for_pc): Remove.
  2991. * python/py-inferior.c (infpy_get_progspace): New function.
  2992. (inferior_object_getset) <progspace>: Add.
  2993. * python/py-progspace.c (pspy_objfiles): Rewrite.
  2994. (pspy_solib_name, pspy_block_for_pc)
  2995. (pspy_find_pc_line, pspy_is_valid): New functions.
  2996. (progspace_object_methods): Add entries for solib_name,
  2997. block_for_pc, find_pc_line, is_valid.
  2998. * python/python-internal.h (gdbpy_block_for_pc)
  2999. (build_objfiles_list): Don't declare.
  3000. * python/python.c: Don't include solib.h.
  3001. (gdbpy_solib_name, gdbpy_find_pc_line)
  3002. (gdbpy_get_current_progspace, build_objfiles_list)
  3003. (gdbpy_objfiles): Remove.
  3004. (GdbMethods) <current_progspace, objfiles, block_for_pc,
  3005. solib_name, find_pc_line>: Remove entries.
  3006. 2018-09-16 Tom Tromey <tom@tromey.com>
  3007. * top.c (new_ui_command): Use GNU style for metasyntactic
  3008. variables.
  3009. * breakpoint.c (stopat_command): Use GNU style for metasyntactic
  3010. variables.
  3011. * maint.c (maintenance_translate_address): Remove "<>" around
  3012. text.
  3013. * interps.c (interpreter_exec_cmd): Use GNU style for
  3014. metasyntactic variables.
  3015. * nto-procfs.c (nto_procfs_target_info): Use GNU style for
  3016. metasyntactic variables.
  3017. * tracepoint.c (tfind_range_command): Use GNU style for
  3018. metasyntactic variables.
  3019. (tfind_outside_command): Likewise.
  3020. (_initialize_tracepoint): Likewise.
  3021. * remote.c (extended_remote_target::create_inferior): Use GNU
  3022. style for metasyntactic variables.
  3023. * sparc64-tdep.c (adi_examine_command): Use GNU style for
  3024. metasyntactic variables.
  3025. (adi_assign_command): Likewise.
  3026. 2018-09-16 Tom Tromey <tom@tromey.com>
  3027. * disasm.c (show_disassembler_options_sfunc): Use GNU style for
  3028. metasyntactic variables. Print message if no disassembler options
  3029. are available.
  3030. 2018-09-15 Tom Tromey <tom@tromey.com>
  3031. * infcmd.c (get_inferior_args): Return const char *.
  3032. * inferior.h (get_inferior_args): Return type now const.
  3033. * linux-tdep.c (linux_fill_prpsinfo): Update.
  3034. * procfs.c (procfs_target::make_corefile_notes): Update.
  3035. 2018-09-07 Tom Tromey <tom@tromey.com>
  3036. * python/python.c (execute_gdb_command): Call bpstat_do_actions
  3037. inside the TRY.
  3038. 2018-09-14 Sandra Loosemore <sandra@codesourcery.com>
  3039. * nios2-tdep.c (nios2_type_align): New.
  3040. (nios2_gdb_arch_init): Install type_align hook.
  3041. 2018-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
  3042. * eval.c (fake_method::fake_method): Call xzalloc directly for a
  3043. type that is neither object file owned, nor gdbarch owned.
  3044. * gdbtypes.c (get_type_gdbarch): Add an assert that returned
  3045. gdbarch is non-NULL.
  3046. (alloc_type_instance): Allocate non-objfile owned types on the
  3047. gdbarch obstack.
  3048. (copy_type_recursive): Allocate TYPE_FIELDS and TYPE_RANGE_DATA
  3049. using TYPE_ALLOC to ensure memory is allocated on the correct
  3050. obstack.
  3051. * gdbtypes.h (TYPE_ALLOC): Allocate space on either the objfile
  3052. obstack, or the gdbarch obstack.
  3053. (TYPE_ZALLOC): Rewrite using TYPE_ALLOC.
  3054. 2018-09-14 Tom Tromey <tom@tromey.com>
  3055. * infcall.c (call_function_by_hand_dummy): Remove unnecessary
  3056. block.
  3057. 2018-09-14 Tom Tromey <tom@tromey.com>
  3058. * nat/fork-inferior.c (get_startup_shell): Remove "static".
  3059. 2018-09-13 Tom Tromey <tom@tromey.com>
  3060. * python/py-inferior.c (infpy_thread_from_thread_handle): Now
  3061. static.
  3062. 2018-09-13 Tom Tromey <tom@tromey.com>
  3063. * exec.c (try_open_exec_file): Use std::string.
  3064. 2018-09-13 Tom Tromey <tom@tromey.com>
  3065. * utils.h (gdb_bfd_errmsg): Return std::string.
  3066. * exec.c (exec_file_attach): Update.
  3067. * compile/compile-object-load.c (compile_object_load): Update.
  3068. * utils.c (gdb_bfd_errmsg): Return std::string.
  3069. 2018-09-13 Tom Tromey <tom@tromey.com>
  3070. * procfs.c (struct procinfo_deleter): New.
  3071. (procinfo_up): New typedef.
  3072. (do_destroy_procinfo_cleanup): Remove.
  3073. (procfs_target::info_proc): Use procinfo_up. Remove cleanups.
  3074. 2018-09-13 Tom Tromey <tom@tromey.com>
  3075. * source.c (add_path): Use gdb::unique_xmalloc_ptr.
  3076. 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
  3077. 2018-09-13 Tom Tromey <tom@tromey.com>
  3078. * python/py-progspace.c (PSPY_REQUIRE_VALID): New macro.
  3079. (pspy_get_objfiles): New function.
  3080. (progspace_object_methods): New.
  3081. (pspace_object_type): Add tp_methods callback.
  3082. * python/python-internal.h (build_objfiles_list): New
  3083. declaration.
  3084. * python/python.c (build_objfiles_list): New function.
  3085. (gdbpy_objfiles): Implement using build_objfiles_list.
  3086. * NEWS: Mention the Progspace.objfiles method.
  3087. 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
  3088. * python/py-inferior.c (infpy_get_progspace): New function.
  3089. (inferior_object_getset): Add progspace property.
  3090. * NEWS: Mention the new property.
  3091. 2018-09-13 Tom Tromey <tom@tromey.com>
  3092. PR rust/23650:
  3093. * rust-lang.c (rust_evaluate_subexp): Use field name, not "foo".
  3094. 2018-09-13 Tom Tromey <tom@tromey.com>
  3095. PR rust/23626:
  3096. * rust-lang.c (rust_enum_variant): Now static.
  3097. (rust_empty_enum_p): New function.
  3098. (rust_print_enum, rust_evaluate_subexp, rust_print_struct_def):
  3099. Handle empty enum.
  3100. 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
  3101. * python/py-inferior.c (infpy_repr): New.
  3102. (inferior_object_type): Register infpy_repr.
  3103. * python/py-objfile.c (objfpy_repr): New.
  3104. (objfile_object_type): Register objfpy_repr.
  3105. 2018-09-12 John Baldwin <jhb@FreeBSD.org>
  3106. * fbsd-nat.c (fbsd_nat_target::info_proc): Remove unused variable.
  3107. 2018-09-12 John Baldwin <jhb@FreeBSD.org>
  3108. * aarch64-fbsd-tdep.h (AARCH64_FBSD_SIZEOF_GREGSET): Fix comment
  3109. typo.
  3110. 2018-09-12 Sergio Durigan Junior <sergiodj@redhat.com>
  3111. * common/common-utils.c: Don't include '<sys/stat.h>'.
  3112. (is_regular_file): Move to...
  3113. * common/filestuff.c (is_regular_file): ... here.
  3114. * common/common-utils.h (is_regular_file): Move to...
  3115. * common/filestuff.h (is_regular_file): ... here.
  3116. 2018-09-12 Simon Marchi <simon.marchi@ericsson.com>
  3117. * skip.c (debug_skip): New variable.
  3118. (skiplist_entry::do_skip_file_p): Add debug output.
  3119. (skiplist_entry::do_skip_gfile_p): Likewise.
  3120. (skiplist_entry::skip_function_p): Likewise.
  3121. (_initialize_step_skip): Create debug command.
  3122. * NEWS: Mention set/show debug skip.
  3123. 2018-09-11 Xavier Roirand <roirand@adacore.com>
  3124. * darwin-nat.c (should_disable_startup_with_shell):
  3125. New function.
  3126. (darwin_nat_target::create_inferior): Add call.
  3127. 2018-09-11 Xavier Roirand <roirand@adacore.com>
  3128. * darwin-nat.h (struct darwin_thread_info) <gdb_port,
  3129. inf_port, msg_state>: Initialize.
  3130. (struct darwin_thread_info) <signaled, single_step>: Change
  3131. type and initialize.
  3132. (struct darwin_thread_info) <event>: Initialize.
  3133. 2018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
  3134. PR gdb/23555
  3135. PR gdb/23558
  3136. * gnulib/import/m4/getcwd-path-max.m4: Add cross-compilation
  3137. guesses.
  3138. 2018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
  3139. Revert:
  3140. 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
  3141. PR gdb/23555
  3142. PR gdb/23558
  3143. * gnulib/aclocal.m4: Regenerate.
  3144. * gnulib/config.in: Regenerate.
  3145. * gnulib/configure: Regenerate.
  3146. * gnulib/import/Makefile.am: Update.
  3147. * gnulib/import/Makefile.in: Update.
  3148. * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
  3149. * gnulib/import/_Noreturn.h: ... this.
  3150. * gnulib/import/alloca.in.h: Update.
  3151. * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
  3152. * gnulib/import/arg-nonnull.h: ... this.
  3153. * gnulib/import/assure.h: Update.
  3154. * gnulib/import/at-func.c: Update.
  3155. * gnulib/import/basename-lgpl.c: Update.
  3156. * gnulib/import/extra/snippet/c++defs.h: Rename to...
  3157. * gnulib/import/c++defs.h: ... this.
  3158. * gnulib/import/canonicalize-lgpl.c: Update.
  3159. * gnulib/import/cdefs.h: Update.
  3160. * gnulib/import/chdir-long.c: Update.
  3161. * gnulib/import/chdir-long.h: Update.
  3162. * gnulib/import/cloexec.c: Update.
  3163. * gnulib/import/cloexec.h: Update.
  3164. * gnulib/import/close.c: Update.
  3165. * gnulib/import/closedir.c: Update.
  3166. * gnulib/import/config.charset: Update.
  3167. * gnulib/import/dirent-private.h: Update.
  3168. * gnulib/import/dirent.in.h: Update.
  3169. * gnulib/import/dirfd.c: Update.
  3170. * gnulib/import/dirname-lgpl.c: Update.
  3171. * gnulib/import/dirname.h: Update.
  3172. * gnulib/import/dosname.h: Update.
  3173. * gnulib/import/dup-safer-flag.c: Update.
  3174. * gnulib/import/dup-safer.c: Update.
  3175. * gnulib/import/dup.c: Update.
  3176. * gnulib/import/dup2.c: Update.
  3177. * gnulib/import/errno.in.h: Update.
  3178. * gnulib/import/error.c: Update.
  3179. * gnulib/import/error.h: Update.
  3180. * gnulib/import/exitfail.c: Update.
  3181. * gnulib/import/exitfail.h: Update.
  3182. * gnulib/import/extra/update-copyright: Update.
  3183. * gnulib/import/fchdir.c: Update.
  3184. * gnulib/import/fcntl.c: Update.
  3185. * gnulib/import/fcntl.in.h: Update.
  3186. * gnulib/import/fd-hook.c: Update.
  3187. * gnulib/import/fd-hook.h: Update.
  3188. * gnulib/import/fd-safer-flag.c: Update.
  3189. * gnulib/import/fd-safer.c: Update.
  3190. * gnulib/import/fdopendir.c: Update.
  3191. * gnulib/import/filename.h: Update.
  3192. * gnulib/import/filenamecat-lgpl.c: Update.
  3193. * gnulib/import/filenamecat.h: Update.
  3194. * gnulib/import/flexmember.h: Update.
  3195. * gnulib/import/float+.h: Update.
  3196. * gnulib/import/float.c: Update.
  3197. * gnulib/import/float.in.h: Update.
  3198. * gnulib/import/fnmatch.c: Update.
  3199. * gnulib/import/fnmatch.in.h: Update.
  3200. * gnulib/import/fnmatch_loop.c: Update.
  3201. * gnulib/import/fpucw.h: Update.
  3202. * gnulib/import/frexp.c: Update.
  3203. * gnulib/import/frexpl.c: Update.
  3204. * gnulib/import/fstat.c: Update.
  3205. * gnulib/import/fstatat.c: Update.
  3206. * gnulib/import/getcwd-lgpl.c: Update.
  3207. * gnulib/import/getcwd.c: Update.
  3208. * gnulib/import/getdtablesize.c: Update.
  3209. * gnulib/import/getlogin_r.c: Update.
  3210. * gnulib/import/getprogname.c: Update.
  3211. * gnulib/import/getprogname.h: Update.
  3212. * gnulib/import/gettext.h: Update.
  3213. * gnulib/import/gettimeofday.c: Update.
  3214. * gnulib/import/glob-libc.h: Update.
  3215. * gnulib/import/glob.c: Update.
  3216. * gnulib/import/glob.in.h: Update.
  3217. * gnulib/import/glob_internal.h: Update.
  3218. * gnulib/import/glob_pattern_p.c: Update.
  3219. * gnulib/import/globfree.c: Update.
  3220. * gnulib/import/hard-locale.c: Update.
  3221. * gnulib/import/hard-locale.h: Update.
  3222. * gnulib/import/intprops.h: Update.
  3223. * gnulib/import/inttypes.in.h: Update.
  3224. * gnulib/import/isnan.c: Update.
  3225. * gnulib/import/isnand-nolibm.h: Update.
  3226. * gnulib/import/isnand.c: Update.
  3227. * gnulib/import/isnanl-nolibm.h: Update.
  3228. * gnulib/import/isnanl.c: Update.
  3229. * gnulib/import/itold.c: Update.
  3230. * gnulib/import/libc-config.h: Update.
  3231. * gnulib/import/limits.in.h: Update.
  3232. * gnulib/import/localcharset.c: Update.
  3233. * gnulib/import/localcharset.h: Update.
  3234. * gnulib/import/localtime-buffer.c: Update.
  3235. * gnulib/import/localtime-buffer.h: Update.
  3236. * gnulib/import/lstat.c: Update.
  3237. * gnulib/import/m4/00gnulib.m4: Update.
  3238. * gnulib/import/m4/__inline.m4: Update.
  3239. * gnulib/import/m4/absolute-header.m4: Update.
  3240. * gnulib/import/m4/alloca.m4: Update.
  3241. * gnulib/import/m4/builtin-expect.m4: Update.
  3242. * gnulib/import/m4/canonicalize.m4: Update.
  3243. * gnulib/import/m4/chdir-long.m4: Update.
  3244. * gnulib/import/m4/close.m4: Update.
  3245. * gnulib/import/m4/closedir.m4: Update.
  3246. * gnulib/import/m4/configmake.m4: Update.
  3247. * gnulib/import/m4/d-ino.m4: Update.
  3248. * gnulib/import/m4/d-type.m4: Update.
  3249. * gnulib/import/m4/dirent_h.m4: Update.
  3250. * gnulib/import/m4/dirfd.m4: Update.
  3251. * gnulib/import/m4/dirname.m4: Update.
  3252. * gnulib/import/m4/double-slash-root.m4: Update.
  3253. * gnulib/import/m4/dup.m4: Update.
  3254. * gnulib/import/m4/dup2.m4: Update.
  3255. * gnulib/import/m4/eealloc.m4: Update.
  3256. * gnulib/import/m4/environ.m4: Update.
  3257. * gnulib/import/m4/errno_h.m4: Update.
  3258. * gnulib/import/m4/error.m4: Update.
  3259. * gnulib/import/m4/exponentd.m4: Update.
  3260. * gnulib/import/m4/exponentl.m4: Update.
  3261. * gnulib/import/m4/extensions.m4: Update.
  3262. * gnulib/import/m4/extern-inline.m4: Update.
  3263. * gnulib/import/m4/fchdir.m4: Update.
  3264. * gnulib/import/m4/fcntl-o.m4: Update.
  3265. * gnulib/import/m4/fcntl.m4: Update.
  3266. * gnulib/import/m4/fcntl_h.m4: Update.
  3267. * gnulib/import/m4/fdopendir.m4: Update.
  3268. * gnulib/import/m4/filenamecat.m4: Update.
  3269. * gnulib/import/m4/flexmember.m4: Update.
  3270. * gnulib/import/m4/float_h.m4: Update.
  3271. * gnulib/import/m4/fnmatch.m4: Update.
  3272. * gnulib/import/m4/fnmatch_h.m4: Update.
  3273. * gnulib/import/m4/fpieee.m4: Update.
  3274. * gnulib/import/m4/frexp.m4: Update.
  3275. * gnulib/import/m4/frexpl.m4: Update.
  3276. * gnulib/import/m4/fstat.m4: Update.
  3277. * gnulib/import/m4/fstatat.m4: Update.
  3278. * gnulib/import/m4/getcwd-abort-bug.m4: Update.
  3279. * gnulib/import/m4/getcwd-path-max.m4: Update.
  3280. * gnulib/import/m4/getcwd.m4: Update.
  3281. * gnulib/import/m4/getdtablesize.m4: Update.
  3282. * gnulib/import/m4/getlogin.m4: Update.
  3283. * gnulib/import/m4/getlogin_r.m4: Update.
  3284. * gnulib/import/m4/getpagesize.m4: Update.
  3285. * gnulib/import/m4/getprogname.m4: Update.
  3286. * gnulib/import/m4/gettimeofday.m4: Update.
  3287. * gnulib/import/m4/glibc21.m4: Update.
  3288. * gnulib/import/m4/glob.m4: Update.
  3289. * gnulib/import/m4/glob_h.m4: Update.
  3290. * gnulib/import/m4/gnulib-cache.m4: Update.
  3291. * gnulib/import/m4/gnulib-common.m4: Update.
  3292. * gnulib/import/m4/gnulib-comp.m4: Update.
  3293. * gnulib/import/m4/gnulib-tool.m4: Update.
  3294. * gnulib/import/m4/hard-locale.m4: Update.
  3295. * gnulib/import/m4/include_next.m4: Update.
  3296. * gnulib/import/m4/inttypes-pri.m4: Update.
  3297. * gnulib/import/m4/inttypes.m4: Update.
  3298. * gnulib/import/m4/isnand.m4: Update.
  3299. * gnulib/import/m4/isnanl.m4: Update.
  3300. * gnulib/import/m4/largefile.m4: Update.
  3301. * gnulib/import/m4/limits-h.m4: Update.
  3302. * gnulib/import/m4/localcharset.m4: Update.
  3303. * gnulib/import/m4/locale-fr.m4: Update.
  3304. * gnulib/import/m4/locale-ja.m4: Update.
  3305. * gnulib/import/m4/locale-zh.m4: Update.
  3306. * gnulib/import/m4/localtime-buffer.m4: Update.
  3307. * gnulib/import/m4/longlong.m4: Update.
  3308. * gnulib/import/m4/lstat.m4: Update.
  3309. * gnulib/import/m4/malloc.m4: Update.
  3310. * gnulib/import/m4/malloca.m4: Update.
  3311. * gnulib/import/m4/math_h.m4: Update.
  3312. * gnulib/import/m4/mbrtowc.m4: Update.
  3313. * gnulib/import/m4/mbsinit.m4: Update.
  3314. * gnulib/import/m4/mbsrtowcs.m4: Update.
  3315. * gnulib/import/m4/mbstate_t.m4: Update.
  3316. * gnulib/import/m4/memchr.m4: Update.
  3317. * gnulib/import/m4/memmem.m4: Update.
  3318. * gnulib/import/m4/mempcpy.m4: Update.
  3319. * gnulib/import/m4/memrchr.m4: Update.
  3320. * gnulib/import/m4/mkdir.m4: Update.
  3321. * gnulib/import/m4/mkstemp.m4: Update.
  3322. * gnulib/import/m4/mmap-anon.m4: Update.
  3323. * gnulib/import/m4/mode_t.m4: Update.
  3324. * gnulib/import/m4/msvc-inval.m4: Update.
  3325. * gnulib/import/m4/msvc-nothrow.m4: Update.
  3326. * gnulib/import/m4/multiarch.m4: Update.
  3327. * gnulib/import/m4/nocrash.m4: Update.
  3328. * gnulib/import/m4/off_t.m4: Update.
  3329. * gnulib/import/m4/onceonly.m4: Update.
  3330. * gnulib/import/m4/open-cloexec.m4: Update.
  3331. * gnulib/import/m4/open.m4: Update.
  3332. * gnulib/import/m4/openat.m4: Update.
  3333. * gnulib/import/m4/opendir.m4: Update.
  3334. * gnulib/import/m4/pathmax.m4: Update.
  3335. * gnulib/import/m4/rawmemchr.m4: Update.
  3336. * gnulib/import/m4/readdir.m4: Update.
  3337. * gnulib/import/m4/readlink.m4: Update.
  3338. * gnulib/import/m4/realloc.m4: Update.
  3339. * gnulib/import/m4/rename.m4: Update.
  3340. * gnulib/import/m4/rewinddir.m4: Update.
  3341. * gnulib/import/m4/rmdir.m4: Update.
  3342. * gnulib/import/m4/save-cwd.m4: Update.
  3343. * gnulib/import/m4/secure_getenv.m4: Update.
  3344. * gnulib/import/m4/setenv.m4: Update.
  3345. * gnulib/import/m4/signal_h.m4: Update.
  3346. * gnulib/import/m4/ssize_t.m4: Update.
  3347. * gnulib/import/m4/stat-time.m4: Update.
  3348. * gnulib/import/m4/stat.m4: Update.
  3349. * gnulib/import/m4/std-gnu11.m4: Update.
  3350. * gnulib/import/m4/stdbool.m4: Update.
  3351. * gnulib/import/m4/stddef_h.m4: Update.
  3352. * gnulib/import/m4/stdint.m4: Update.
  3353. * gnulib/import/m4/stdio_h.m4: Update.
  3354. * gnulib/import/m4/stdlib_h.m4: Update.
  3355. * gnulib/import/m4/strchrnul.m4: Update.
  3356. * gnulib/import/m4/strdup.m4: Update.
  3357. * gnulib/import/m4/strerror.m4: Update.
  3358. * gnulib/import/m4/string_h.m4: Update.
  3359. * gnulib/import/m4/strstr.m4: Update.
  3360. * gnulib/import/m4/strtok_r.m4: Update.
  3361. * gnulib/import/m4/sys_socket_h.m4: Update.
  3362. * gnulib/import/m4/sys_stat_h.m4: Update.
  3363. * gnulib/import/m4/sys_time_h.m4: Update.
  3364. * gnulib/import/m4/sys_types_h.m4: Update.
  3365. * gnulib/import/m4/tempname.m4: Update.
  3366. * gnulib/import/m4/time_h.m4: Update.
  3367. * gnulib/import/m4/unistd-safer.m4: Update.
  3368. * gnulib/import/m4/unistd_h.m4: Update.
  3369. * gnulib/import/m4/warn-on-use.m4: Update.
  3370. * gnulib/import/m4/wchar_h.m4: Update.
  3371. * gnulib/import/m4/wchar_t.m4: Update.
  3372. * gnulib/import/m4/wctype_h.m4: Update.
  3373. * gnulib/import/m4/wint_t.m4: Update.
  3374. * gnulib/import/malloc.c: Update.
  3375. * gnulib/import/malloc/scratch_buffer.h: Update.
  3376. * gnulib/import/malloc/scratch_buffer_grow.c: Update.
  3377. * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
  3378. * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
  3379. * gnulib/import/malloca.c: Update.
  3380. * gnulib/import/malloca.h: Update.
  3381. * gnulib/import/malloca.valgrind: Update.
  3382. * gnulib/import/math.in.h: Update.
  3383. * gnulib/import/mbrtowc.c: Update.
  3384. * gnulib/import/mbsinit.c: Update.
  3385. * gnulib/import/mbsrtowcs-impl.h: Update.
  3386. * gnulib/import/mbsrtowcs-state.c: Update.
  3387. * gnulib/import/mbsrtowcs.c: Update.
  3388. * gnulib/import/memchr.c: Update.
  3389. * gnulib/import/memmem.c: Update.
  3390. * gnulib/import/mempcpy.c: Update.
  3391. * gnulib/import/memrchr.c: Update.
  3392. * gnulib/import/mkdir.c: Update.
  3393. * gnulib/import/mkstemp.c: Update.
  3394. * gnulib/import/msvc-inval.c: Update.
  3395. * gnulib/import/msvc-inval.h: Update.
  3396. * gnulib/import/msvc-nothrow.c: Update.
  3397. * gnulib/import/msvc-nothrow.h: Update.
  3398. * gnulib/import/open.c: Update.
  3399. * gnulib/import/openat-die.c: Update.
  3400. * gnulib/import/openat-priv.h: Update.
  3401. * gnulib/import/openat-proc.c: Update.
  3402. * gnulib/import/openat.c: Update.
  3403. * gnulib/import/openat.h: Update.
  3404. * gnulib/import/opendir.c: Update.
  3405. * gnulib/import/pathmax.h: Update.
  3406. * gnulib/import/pipe-safer.c: Update.
  3407. * gnulib/import/rawmemchr.c: Update.
  3408. * gnulib/import/readdir.c: Update.
  3409. * gnulib/import/readlink.c: Update.
  3410. * gnulib/import/realloc.c: Update.
  3411. * gnulib/import/ref-add.sin: Update.
  3412. * gnulib/import/ref-del.sin: Update.
  3413. * gnulib/import/rename.c: Update.
  3414. * gnulib/import/rewinddir.c: Update.
  3415. * gnulib/import/rmdir.c: Update.
  3416. * gnulib/import/same-inode.h: Update.
  3417. * gnulib/import/save-cwd.c: Update.
  3418. * gnulib/import/save-cwd.h: Update.
  3419. * gnulib/import/scratch_buffer.h: Update.
  3420. * gnulib/import/secure_getenv.c: Update.
  3421. * gnulib/import/setenv.c: Update.
  3422. * gnulib/import/signal.in.h: Update.
  3423. * gnulib/import/stat-time.c: Update.
  3424. * gnulib/import/stat-time.h: Update.
  3425. * gnulib/import/stat-w32.c: Update.
  3426. * gnulib/import/stat-w32.h: Update.
  3427. * gnulib/import/stat.c: Update.
  3428. * gnulib/import/stdbool.in.h: Update.
  3429. * gnulib/import/stddef.in.h: Update.
  3430. * gnulib/import/stdint.in.h: Update.
  3431. * gnulib/import/stdio.in.h: Update.
  3432. * gnulib/import/stdlib.in.h: Update.
  3433. * gnulib/import/str-two-way.h: Update.
  3434. * gnulib/import/strchrnul.c: Update.
  3435. * gnulib/import/strdup.c: Update.
  3436. * gnulib/import/streq.h: Update.
  3437. * gnulib/import/strerror-override.c: Update.
  3438. * gnulib/import/strerror-override.h: Update.
  3439. * gnulib/import/strerror.c: Update.
  3440. * gnulib/import/string.in.h: Update.
  3441. * gnulib/import/stripslash.c: Update.
  3442. * gnulib/import/strnlen1.c: Update.
  3443. * gnulib/import/strnlen1.h: Update.
  3444. * gnulib/import/strstr.c: Update.
  3445. * gnulib/import/strtok_r.c: Update.
  3446. * gnulib/import/sys_stat.in.h: Update.
  3447. * gnulib/import/sys_time.in.h: Update.
  3448. * gnulib/import/sys_types.in.h: Update.
  3449. * gnulib/import/tempname.c: Update.
  3450. * gnulib/import/tempname.h: Update.
  3451. * gnulib/import/time.in.h: Update.
  3452. * gnulib/import/unistd--.h: Update.
  3453. * gnulib/import/unistd-safer.h: Update.
  3454. * gnulib/import/unistd.in.h: Update.
  3455. * gnulib/import/unsetenv.c: Update.
  3456. * gnulib/import/verify.h: Update.
  3457. * gnulib/import/extra/snippet/warn-on-use.h: Update.
  3458. * gnulib/import/wchar.in.h: Update.
  3459. * gnulib/import/wctype.in.h: Update.
  3460. * gnulib/import/xalloc-oversized.h: Update.
  3461. * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
  3462. "53e2c179f26a890fa6685af4b6c1397ee370433b".
  3463. 2018-09-10 Simon Marchi <simon.marchi@ericsson.com>
  3464. * record-btrace.c (get_thread_current_frame): Remove
  3465. old_inferior_ptid.
  3466. 2018-09-10 Jerome Guitton <guitton@adacore.com>
  3467. * ada-lang.c (ada_value_struct_elt): Call ada_to_fixed_type
  3468. with check_tag to 1 if and only if the type is tagged and the
  3469. component being searched cannot been found in the current
  3470. view. Otherwise, always call ada_to_fixed_type with
  3471. check_tag to 0.
  3472. 2018-09-10 Xavier Roirand <roirand@adacore.com>
  3473. * ada-lang.c (ada_is_access_to_unconstrained_array): Remove static
  3474. declaration.
  3475. * ada-lang.h: add ada_is_access_to_unconstrained_array prototype.
  3476. * ada-varobj.c (ada_varobj_get_number_of_children,
  3477. ada_varobj_describe_child, ada_value_is_changeable_p): Cleanup code.
  3478. 2018-09-10 Xavier Roirand <roirand@adacore.com>
  3479. * ada-valprint.c (ada_value_print): Use type instead of
  3480. enclosing type.
  3481. 2018-09-10 Xavier Roirand <roirand@adacore.com>
  3482. * ada-lang.c (ada_value_subscript): Handle case when parameter is
  3483. an array of access to unconstrained array.
  3484. 2018-09-10 Xavier Roirand <roirand@adacore.com>
  3485. * ada-lang.c (ada_is_access_to_unconstrained_array): New function.
  3486. (ada_check_typedef): Use it.
  3487. 2018-09-10 Xavier Roirand <roirand@adacore.com>
  3488. * ada-varobj.c (ada_varobj_describe_struct_child)
  3489. (ada_varobj_describe_child): Handle union case like struct one.
  3490. 2018-09-10 Tom Tromey <tom@tromey.com>
  3491. PR python/18380:
  3492. * python/python.c (_initialize_python): Make example in "python"
  3493. help work in Python 3.
  3494. 2018-09-10 Eli Zaretskii <eliz@gnu.org>
  3495. * Makefile.in (transformed_name): Use INSTALL_SCRIPT instead of
  3496. INSTALL_PROGRAM to install gdb-add-index.sh. Don't append
  3497. $(EXEEXT) to the script, as it is not a program.
  3498. 2018-09-09 Simon Marchi <simon.marchi@ericsson.com>
  3499. * python/py-prettyprint.c (pretty_print_one_value): Return
  3500. gdbpy_ref<>.
  3501. (print_string_repr): Adjust.
  3502. (apply_varobj_pretty_printer): Return gdbpy_ref<>.
  3503. * python/python-internal.h (apply_varobj_pretty_printer): Return
  3504. gdbpy_ref<>.
  3505. * varobj.c (varobj_value_get_print_value): Adjust.
  3506. 2018-09-08 Tom Tromey <tom@tromey.com>
  3507. PR python/16047:
  3508. * python/py-prettyprint.c (pretty_print_one_value): Check for
  3509. to_string method.
  3510. 2018-09-08 Joel Brobecker <brobecker@adacore.com>
  3511. * ada-lang.c (resolve_subexp): Pass correct OPLEN in call to
  3512. replace_operator_with_call.
  3513. 2018-09-08 Joel Brobecker <brobecker@adacore.com>
  3514. * ada-lang.c (ada_value_cast): Remove unnecessary parentheses.
  3515. 2018-09-08 Joel Brobecker <brobecker@adacore.com>
  3516. * ada-typeprint.c (print_range): Print the bounds using TYPE
  3517. rather than its TYPE_TARGET_TYPE.
  3518. 2018-09-08 Joel Brobecker <brobecker@adacore.com>
  3519. * ada-lang.c (ada_to_fixed_value): Minor reformatting in
  3520. call to ada_to_fixed_value_create.
  3521. 2018-09-08 Jerome Guitton <guitton@adacore.com>
  3522. * ada-lang.c (ada_decode): strip dot prefix in symbol name.
  3523. 2018-09-08 Joel Brobecker <brobecker@adacore.com>
  3524. * ada-lang.c (ada_exception_sal): Replace gdb_assert calls
  3525. by calls to error.
  3526. 2018-09-08 Joel Brobecker <brobecker@adacore.com>
  3527. * ada-lang.c (ada_unhandled_exception_name_addr_from_raise):
  3528. Move update of loop variable "fi".
  3529. 2018-09-08 Joel Brobecker <brobecker@adacore.com>
  3530. * ada-lang.c (value_assign_to_component): In the case of
  3531. big-endian targets, extract the bits of the given VAL
  3532. using an src_offset of zero if container is not a scalar.
  3533. 2018-09-06 Simon Ser <contact@emersion.fr>
  3534. PR gdb/23105
  3535. * fbsd-nat.c (fbsd_nat_target::xfer_partial): Add support for
  3536. TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
  3537. * fbsd-tdep.c (fbsd_make_note_desc): New.
  3538. (fbsd_make_corefile_notes): Write NT_PROCSTAT_AUXV,
  3539. NT_PROCSTAT_VMMAP and NT_PROCSTAT_PS_STRINGS notes.
  3540. * target.h (enum target_object) Add FreeBSD-specific
  3541. TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
  3542. 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
  3543. * compile/compile-c.h (generate_c_for_variable_locations):
  3544. Change reference to pointer.
  3545. * compile/compile-c-support.c (compile_program) <compute>:
  3546. Likewise.
  3547. * compile/compile-c-symbols.c (generate_vla_size): Likewise.
  3548. (generate_c_for_for_one_variable): Likewise
  3549. (generate_c_for_variable_locations): Likewise
  3550. * compile/compile-c-types.c (compile_c_instance::convert_type):
  3551. Likewise
  3552. * compile/compile-cplus-symbols.c (convert_one_symbol):
  3553. std::move the scope passed to enter_scope.
  3554. * compile/compile-cplus-types.c
  3555. (compile_cplus_instance::enter_scope): Make parameter
  3556. rvalue-reference.
  3557. (compile_cplus_instance::new_scope): Change reference to
  3558. pointer.
  3559. (compile_cplus_instance::convert_type): Likewise
  3560. (compile_cplus_convert_typedef): std::move the scope passed to
  3561. enter_scope.
  3562. (compile_cplus_convert_struct_or_union): Likewise.
  3563. (compile_cplus_convert_enum): Likewise.
  3564. (compile_cplus_convert_namespace): Likewise.
  3565. * compile/compile-cplus.h (compile_cplus_instance)
  3566. <enter_scope>: Make parameter rvalue-reference.
  3567. * compile/compile-internal.h (compile_instance)
  3568. <get_cached_type>: Likewise
  3569. * compile/compile-loc2c.c (push): Likewise
  3570. (pushf): Likewise
  3571. (unary): Likewise
  3572. (binary): Likewise
  3573. (print_label): Likewise
  3574. (pushf_register_address): Likewise
  3575. (pushf_register): Likewise
  3576. (do_compile_dwarf_expr_to_c): Likewise
  3577. (compile_dwarf_expr_to_c): Likewise
  3578. (compile_dwarf_bounds_to_c): Likewise
  3579. * compile/compile.c (compile_instance::get_cached_type):
  3580. Likewise
  3581. * compile/compile.h (compile_dwarf_expr_to_c): Likewise.
  3582. (compile_dwarf_bounds_to_c): Likewise
  3583. * dwarf2loc.c (locexpr_generate_c_location): Likewise.
  3584. (dwarf2_compile_property_to_c): Likewise
  3585. * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise
  3586. * symtab.h (struct symbol_computed_ops) <generate_c_location>:
  3587. Likewise
  3588. 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
  3589. * tui/tui-data.h (struct tui_win_element) <highlight>: Remove.
  3590. * tui/tui-data.c (init_content_element): Don't initialize it.
  3591. 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
  3592. * tui/tui-data.h (struct tui_win_info)
  3593. <detail::opaque>: Remove.
  3594. * tui/tui-data.c (init_win_info): Remove assignment.
  3595. 2018-09-05 Tom Tromey <tom@tromey.com>
  3596. * warning.m4 (AM_GDB_WARNINGS): Add -Wformat when testing
  3597. -Wformat-nonliteral.
  3598. * target-float.c (host_float_ops<T>::to_string)
  3599. (host_float_ops<T>::from_string): Use
  3600. DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
  3601. * configure: Rebuild.
  3602. 2018-09-05 Simon Marchi <simon.marchi@ericsson.com>
  3603. * printcmd.c (printf_c_string): Use
  3604. DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
  3605. (printf_wide_c_string, printf_pointer, ui_printf): Likewise.
  3606. 2018-09-05 Tom Tromey <tom@tromey.com>
  3607. * cli/cli-cmds.c (shell_escape, edit_command): Remove cast.
  3608. 2018-09-05 Tom de Vries <tdevries@suse.de>
  3609. * dwarf2loc.c (sect_variable_value): Call indirect_synthetic_pointer
  3610. with resolve_abstract_p == true.
  3611. (indirect_synthetic_pointer): Add resolve_abstract_p parameter,
  3612. defaulting to false. Propagate resolve_abstract_p to
  3613. dwarf2_fetch_die_loc_sect_off.
  3614. * dwarf2loc.h (dwarf2_fetch_die_loc_sect_off): Add resolve_abstract_p
  3615. parameter, defaulting to false.
  3616. * dwarf2read.c (read_variable): Add variable to abstract_to_concrete.
  3617. (dwarf2_fetch_die_loc_sect_off): Add and handle resolve_abstract_p
  3618. parameter.
  3619. * dwarf2read.h (struct die_info): Forward-declare.
  3620. (die_info_ptr): New typedef.
  3621. (struct dwarf2_per_objfile): Add abstract_to_concrete field.
  3622. 2018-09-05 Joel Brobecker <brobecker@adacore.com>
  3623. GDB 8.2 released.
  3624. 2018-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
  3625. Pedro Alves <palves@redhat.com>
  3626. * gnulib/Makefile.in (aclocal_m4_deps): Move to
  3627. "aclocal-m4-deps.mk". Include file here.
  3628. $(srcdir)/aclocal.m4: Add "configure.ac".
  3629. * gnulib/aclocal-m4-deps.mk: New file.
  3630. * gnulib/update-gnulib.sh: Automatically update
  3631. "aclocal-m4-deps.mk".
  3632. 2018-09-04 Tom Tromey <tom@tromey.com>
  3633. * configure: Rebuild.
  3634. * configure.ac: Remove multi-ice code.
  3635. 2018-09-04 Tom Tromey <tom@tromey.com>
  3636. * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS): Remove.
  3637. (ada-exp.o): Update.
  3638. 2018-09-04 Tom Tromey <tom@tromey.com>
  3639. * Makefile.in (printcmd.o, target-float.o): Remove.
  3640. (GDB_WARN_CFLAGS_NO_FORMAT): Remove.
  3641. 2018-09-04 Tom Tromey <tom@tromey.com>
  3642. * gnulib/Makefile.in: Remove obsolete comment.
  3643. * Makefile.in: Remove obsolete comment.
  3644. 2018-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
  3645. * riscv-tdep.c (riscv_frame_cache): Fix ARI warning, don't end a
  3646. line with '+'.
  3647. 2018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
  3648. * riscv-tdep.c: Add 'prologue-value.h' include.
  3649. (struct riscv_unwind_cache): New struct.
  3650. (riscv_debug_unwinder): New global.
  3651. (riscv_scan_prologue): Update arguments, capture register details
  3652. from prologue scan.
  3653. (riscv_skip_prologue): Reformat arguments line, move end of
  3654. prologue calculation into riscv_scan_prologue.
  3655. (riscv_frame_cache): Update return type, create
  3656. riscv_unwind_cache, scan the prologue, and fill in remaining cache
  3657. details.
  3658. (riscv_frame_this_id): Use frame id computed in riscv_frame_cache.
  3659. (riscv_frame_prev_register): Use the trad_frame within the
  3660. riscv_unwind_cache.
  3661. (_initialize_riscv_tdep): Add 'set/show debug riscv unwinder'
  3662. flag.
  3663. 2018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
  3664. * trad-frame.h (trad_frame_set_realreg): Declare.
  3665. (trad_frame_set_addr): Declare.
  3666. * trad-frame.c (trad_frame_set_realreg): Define new function.
  3667. (trad_frame_set_addr): Define new function.
  3668. (trad_frame_set_reg_realreg): Use new function.
  3669. (trad_frame_set_reg_addr): Use new function.
  3670. 2018-09-01 Keith Seitz <keiths@redhat.com>
  3671. * compile/compile-cplus-types.c (compile_cplus_debug_output_1): Use
  3672. pulongest instead of "%lld".
  3673. * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol): Remove
  3674. ATTRIBUTE_UNUSED.
  3675. 2018-08-31 Tom Tromey <tom@tromey.com>
  3676. * dwarf2read.c (dwarf2_add_field): Set the TYPE_LENGTH of the
  3677. variant part type.
  3678. 2018-08-31 Pedro Alves <palves@redhat.com>
  3679. * gdbarch.h: Regenerate.
  3680. 2018-08-31 Pedro Alves <palves@redhat.com>
  3681. * gdbarch.sh (have_nonsteppable_watchpoint): Add comment.
  3682. * target.h (Hardware watchpoint interfaces): Describe
  3683. continuable/steppable/non-steppable watchpoints.
  3684. * gdbarch.h, gdbarch.c: Regenerate.
  3685. 2018-08-31 Pedro Alves <palves@redhat.com>
  3686. * nto-procfs.c (nto_procfs_target::have_continuable_watchpoint):
  3687. Delete.
  3688. * s390-linux-nat.c
  3689. (s390_linux_nat_target::have_continuable_watchpoint): Delete.
  3690. * target.h (target_ops::have_continuable_watchpoint): Delete.
  3691. (target_have_continuable_watchpoint): Delete.
  3692. * x86-nat.h (x86_nat_target::have_continuable_watchpoint): Delete.
  3693. * target-delegates.c: Regenerate.
  3694. 2018-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
  3695. * gnulib/Makefile.in (aclocal_m4_deps): Update according to
  3696. the files present in "gnulib/import/m4/".
  3697. 2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
  3698. * riscv-tdep.c (riscv_insn::decode): Decode c.addi4spn, c.sd,
  3699. c.sw, c.swsp, and c.sdsp.
  3700. 2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
  3701. * riscv-tdep.c (struct riscv_inferior_data): Delete.
  3702. (riscv_read_misa_reg): Don't cache value read into inferior data.
  3703. (riscv_new_inferior_data): Delete.
  3704. (riscv_inferior_data_cleanup): Delete.
  3705. (riscv_inferior_data): Delete.
  3706. (riscv_invalidate_inferior_data): Delete.
  3707. (_initialize_riscv_tdep): Remove initialisation of inferior data.
  3708. 2018-08-30 Simon Marchi <simon.marchi@ericsson.com>
  3709. * compile/compile-cplus-types.c
  3710. (compile_cplus_instance::leave_scope): Take the address of scope
  3711. object.
  3712. (compile_cplus_instance::convert_qualified_base): Compare quals
  3713. to 0.
  3714. 2018-08-30 Keith Seitz <keiths@redhat.com>
  3715. * compile/compile-cplus-types.c (compile_cplus_instance::enter_scope):
  3716. Use "%s" and host_address_to_string instead of "%p" in printf.
  3717. 2018-08-29 Keith Seitz <keiths@redhat.com>
  3718. * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Add compile-cplus-symbols.c
  3719. and compile-cplus-types.c.
  3720. (HFILES_NO_SRCDIR): Add gcc-cp-plugin.h.
  3721. * c-lang.c (cplus_language_defn): Set C++ compile functions.
  3722. * c-lang.h (cplus_get_compile_context, cplus_compute_program):
  3723. Declare.
  3724. * compile/compile-c-support.c: Include compile-cplus.h.
  3725. (load_libcompile): Templatize.
  3726. (get_compile_context): "New" function.
  3727. (c_get_compile_context): Use get_compile_context.
  3728. (cplus_get_compile_context): New function.
  3729. (cplus_push_user_expression, cplus_pop_user_expression)
  3730. (cplus_add_code_header, cplus_add_input, cplus_compile_program)
  3731. (cplus_compute_program): Define new structs/functions.
  3732. * compile/compile-cplus-symmbols.c: New file.
  3733. * compile/compile-cplus-types.c: New file.
  3734. * compile/compile-cplus.h: New file.
  3735. * compile/compile-internal.h (debug_compile_oracle, GCC_TYPE_NONE):
  3736. Declare.
  3737. * compile/compile-object-load.c (get_out_value_type): Use
  3738. strncmp_iw when comparing symbol names.
  3739. (compile_object_load): Add mst_bss and mst_data.
  3740. * compile/compile.c (_initialize_compile): Remove
  3741. -Wno-implicit-function-declaration from `compile_args'.
  3742. * compile/gcc-cp-plugin.h: New file.
  3743. * NEWS: Mention C++ compile support and new debug options.
  3744. 2018-08-29 Keith Seitz <keiths@redhat.com>
  3745. * linespec.c (collect_info::add_symbol): Make virtual.
  3746. (struct symbol_searcher_collect_info): New struct.
  3747. (symbol_searcher::find_all_symbols): New method.
  3748. * symtab.h (class symbol_searcher): New class.
  3749. 2018-08-29 Keith Seitz <keiths@redhat.com>
  3750. * linespec.c (struct linespec) <function_symbols, label_symbols>:
  3751. Change to vector of block_symbol. Update all users.
  3752. (struct collect_info) <symbols>: Likewise.
  3753. (collect_info::add_symbol): Take block_symbol as argument.
  3754. Update all callers.
  3755. (decode_compound_collector) <m_symbols>: Change type to vector
  3756. of block_symbol. Update all users.
  3757. (decode_compound_collector::operator ()): Change parameter type
  3758. to block_symbol.
  3759. (find_method, find_function_symbols, find_linespec_symbols)
  3760. (find_label_symbols_in_block, find_label_symbols): Change symbol
  3761. vectors to block_symbol vectors.
  3762. * symtab.h (symbol_found_callback_ftype): Change parameter type to
  3763. block_symbol.
  3764. 2018-08-29 Keith Seitz <keiths@redhat.com>
  3765. * linespec.c (symbolp): Remove typedef and VEC definitions.
  3766. (bound_minimal_symbol_d): Likewise.
  3767. 2018-08-29 Keith Seitz <keiths@redhat.com>
  3768. * linespec.c (decode_compound_collector::decode_compound_collector):
  3769. Remove initialization for `m_symtabs'.
  3770. (decode_compound_collector::release_symbols): Change return type
  3771. to std::vector. Update all callers.
  3772. (class decode_compound_collector) <m_symbols>: Change type to
  3773. std::vector.
  3774. (lookup_prefix_sym): Change return type to std::vector. Update all
  3775. callers.
  3776. (compare_symbols): Remove.
  3777. (std_compare_symbols): Rename to `compare_symbols'.
  3778. (find_method): Change `sym_classes' parameter to std::vector.
  3779. Update all callers. Use std::sort to sort sym_classes.
  3780. (find_linespec_symbols): Remove cleanup.
  3781. 2018-08-29 Keith Seitz <keiths@redhat.com>
  3782. * linespec.c (struct linespec) <minimal_symbols>: Change type to
  3783. std::vector. Update all users.
  3784. (convert_linespec_to_sals): Use std::sort to sort minimal symbols.
  3785. (struct collect_info) <minimal_symbols>: Likewise.
  3786. (compare_msymbols): Return bool. Change parameters to const
  3787. bound_minimal_symbol references.
  3788. (find_method, find_function_symbols, find_linespec_symbols): Change
  3789. `minsyms' parameter to std::vector. Update all callers.
  3790. 2018-08-29 Keith Seitz <keiths@redhat.com>
  3791. * linespec.c (struct linespec) <label_symbols>: Change type to
  3792. std::vector. Update all users.
  3793. (find_label_symbols_in_block): Change `result' parameter to
  3794. std::vector. Update all callers.
  3795. (find_label_symbols): Return std::vector. Update all callers.
  3796. 2018-08-29 Keith Seitz <keiths@redhat.com>
  3797. * linespec.c (struct linespec) <function_symbols>: Change type to
  3798. std::vector. Update all users.
  3799. (struct collect_info) <function_symbols>: Likewise.
  3800. (convert_linespec_to_sals): Use std::sort to sort function_symbols.
  3801. (std_compare_symbols): New function.
  3802. (find_method, find_function_symbols, find_linespec_symbols)
  3803. (find_label_symbols_in_block): Change `symbols' parameter to
  3804. std::vector. Update all callers.
  3805. (find_label_symbols): Likewise for `function_symbols' and
  3806. `label_funcs_ret'.
  3807. 2018-08-29 Keith Seitz <keiths@redhat.com>
  3808. * linespec.c (symtab_vector_up): Define.
  3809. (struct linespec) <file_symtabs>: Change type to std::vector *.
  3810. Update all uses.
  3811. (struct collect_info) <file_symtabs>: Likewise.
  3812. (collect_symtabs_from_filename): Return symtab_vector_up.
  3813. Update all callers.
  3814. (decode_objc): Remove cleanup.
  3815. (symtab_collector::symtab_collector): Initialize `m_symtabs'.
  3816. (symtab_collector::release_symtabs): Return symtab_vector_up.
  3817. Update all callers.
  3818. (class symtab_collector) <m_symtabs>: Change type to symtab_vector_up.
  3819. Update all users.
  3820. (collect_symtabs_from_filename, symtabs_from_filename): Return
  3821. symtab_vector_up. Update all callers.
  3822. 2018-08-29 Tom Tromey <tom@tromey.com>
  3823. * csky-tdep.c (csky_analyze_prologue): Use
  3824. core_addr_to_string_nz.
  3825. 2018-08-29 Tom Tromey <tom@tromey.com>
  3826. * windows-nat.c (struct xlate_exception) <them>: Change type to
  3827. DWORD.
  3828. (xlate): Fix formatting. Remove last entry.
  3829. (struct xlate_exception, xlate): Comment out.
  3830. (windows_nat_target::resume): Use ranged for.
  3831. 2018-08-29 Jim Wilson <jimw@sifive.com>
  3832. * riscv-linux-nat.c: Include elf/common.h instead of elf.h.
  3833. (riscv_linux_nat_target::fetch_registers): Use NT_FPREGSET instead
  3834. of NT_PRFPREG.
  3835. (riscv_linux_nat_target::store_registers): Likewise.
  3836. 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
  3837. PR gdb/23555
  3838. PR gdb/23558
  3839. * gnulib/aclocal.m4: Regenerate.
  3840. * gnulib/config.in: Regenerate.
  3841. * gnulib/configure: Regenerate.
  3842. * gnulib/import/Makefile.am: Update.
  3843. * gnulib/import/Makefile.in: Update.
  3844. * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
  3845. * gnulib/import/_Noreturn.h: ... this.
  3846. * gnulib/import/alloca.in.h: Update.
  3847. * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
  3848. * gnulib/import/arg-nonnull.h: ... this.
  3849. * gnulib/import/assure.h: Update.
  3850. * gnulib/import/at-func.c: Update.
  3851. * gnulib/import/basename-lgpl.c: Update.
  3852. * gnulib/import/extra/snippet/c++defs.h: Rename to...
  3853. * gnulib/import/c++defs.h: ... this.
  3854. * gnulib/import/canonicalize-lgpl.c: Update.
  3855. * gnulib/import/cdefs.h: Update.
  3856. * gnulib/import/chdir-long.c: Update.
  3857. * gnulib/import/chdir-long.h: Update.
  3858. * gnulib/import/cloexec.c: Update.
  3859. * gnulib/import/cloexec.h: Update.
  3860. * gnulib/import/close.c: Update.
  3861. * gnulib/import/closedir.c: Update.
  3862. * gnulib/import/config.charset: Update.
  3863. * gnulib/import/dirent-private.h: Update.
  3864. * gnulib/import/dirent.in.h: Update.
  3865. * gnulib/import/dirfd.c: Update.
  3866. * gnulib/import/dirname-lgpl.c: Update.
  3867. * gnulib/import/dirname.h: Update.
  3868. * gnulib/import/dosname.h: Update.
  3869. * gnulib/import/dup-safer-flag.c: Update.
  3870. * gnulib/import/dup-safer.c: Update.
  3871. * gnulib/import/dup.c: Update.
  3872. * gnulib/import/dup2.c: Update.
  3873. * gnulib/import/errno.in.h: Update.
  3874. * gnulib/import/error.c: Update.
  3875. * gnulib/import/error.h: Update.
  3876. * gnulib/import/exitfail.c: Update.
  3877. * gnulib/import/exitfail.h: Update.
  3878. * gnulib/import/extra/update-copyright: Update.
  3879. * gnulib/import/fchdir.c: Update.
  3880. * gnulib/import/fcntl.c: Update.
  3881. * gnulib/import/fcntl.in.h: Update.
  3882. * gnulib/import/fd-hook.c: Update.
  3883. * gnulib/import/fd-hook.h: Update.
  3884. * gnulib/import/fd-safer-flag.c: Update.
  3885. * gnulib/import/fd-safer.c: Update.
  3886. * gnulib/import/fdopendir.c: Update.
  3887. * gnulib/import/filename.h: Update.
  3888. * gnulib/import/filenamecat-lgpl.c: Update.
  3889. * gnulib/import/filenamecat.h: Update.
  3890. * gnulib/import/flexmember.h: Update.
  3891. * gnulib/import/float+.h: Update.
  3892. * gnulib/import/float.c: Update.
  3893. * gnulib/import/float.in.h: Update.
  3894. * gnulib/import/fnmatch.c: Update.
  3895. * gnulib/import/fnmatch.in.h: Update.
  3896. * gnulib/import/fnmatch_loop.c: Update.
  3897. * gnulib/import/fpucw.h: Update.
  3898. * gnulib/import/frexp.c: Update.
  3899. * gnulib/import/frexpl.c: Update.
  3900. * gnulib/import/fstat.c: Update.
  3901. * gnulib/import/fstatat.c: Update.
  3902. * gnulib/import/getcwd-lgpl.c: Update.
  3903. * gnulib/import/getcwd.c: Update.
  3904. * gnulib/import/getdtablesize.c: Update.
  3905. * gnulib/import/getlogin_r.c: Update.
  3906. * gnulib/import/getprogname.c: Update.
  3907. * gnulib/import/getprogname.h: Update.
  3908. * gnulib/import/gettext.h: Update.
  3909. * gnulib/import/gettimeofday.c: Update.
  3910. * gnulib/import/glob-libc.h: Update.
  3911. * gnulib/import/glob.c: Update.
  3912. * gnulib/import/glob.in.h: Update.
  3913. * gnulib/import/glob_internal.h: Update.
  3914. * gnulib/import/glob_pattern_p.c: Update.
  3915. * gnulib/import/globfree.c: Update.
  3916. * gnulib/import/hard-locale.c: Update.
  3917. * gnulib/import/hard-locale.h: Update.
  3918. * gnulib/import/intprops.h: Update.
  3919. * gnulib/import/inttypes.in.h: Update.
  3920. * gnulib/import/isnan.c: Update.
  3921. * gnulib/import/isnand-nolibm.h: Update.
  3922. * gnulib/import/isnand.c: Update.
  3923. * gnulib/import/isnanl-nolibm.h: Update.
  3924. * gnulib/import/isnanl.c: Update.
  3925. * gnulib/import/itold.c: Update.
  3926. * gnulib/import/libc-config.h: Update.
  3927. * gnulib/import/limits.in.h: Update.
  3928. * gnulib/import/localcharset.c: Update.
  3929. * gnulib/import/localcharset.h: Update.
  3930. * gnulib/import/localtime-buffer.c: Update.
  3931. * gnulib/import/localtime-buffer.h: Update.
  3932. * gnulib/import/lstat.c: Update.
  3933. * gnulib/import/m4/00gnulib.m4: Update.
  3934. * gnulib/import/m4/__inline.m4: Update.
  3935. * gnulib/import/m4/absolute-header.m4: Update.
  3936. * gnulib/import/m4/alloca.m4: Update.
  3937. * gnulib/import/m4/builtin-expect.m4: Update.
  3938. * gnulib/import/m4/canonicalize.m4: Update.
  3939. * gnulib/import/m4/chdir-long.m4: Update.
  3940. * gnulib/import/m4/close.m4: Update.
  3941. * gnulib/import/m4/closedir.m4: Update.
  3942. * gnulib/import/m4/configmake.m4: Update.
  3943. * gnulib/import/m4/d-ino.m4: Update.
  3944. * gnulib/import/m4/d-type.m4: Update.
  3945. * gnulib/import/m4/dirent_h.m4: Update.
  3946. * gnulib/import/m4/dirfd.m4: Update.
  3947. * gnulib/import/m4/dirname.m4: Update.
  3948. * gnulib/import/m4/double-slash-root.m4: Update.
  3949. * gnulib/import/m4/dup.m4: Update.
  3950. * gnulib/import/m4/dup2.m4: Update.
  3951. * gnulib/import/m4/eealloc.m4: Update.
  3952. * gnulib/import/m4/environ.m4: Update.
  3953. * gnulib/import/m4/errno_h.m4: Update.
  3954. * gnulib/import/m4/error.m4: Update.
  3955. * gnulib/import/m4/exponentd.m4: Update.
  3956. * gnulib/import/m4/exponentl.m4: Update.
  3957. * gnulib/import/m4/extensions.m4: Update.
  3958. * gnulib/import/m4/extern-inline.m4: Update.
  3959. * gnulib/import/m4/fchdir.m4: Update.
  3960. * gnulib/import/m4/fcntl-o.m4: Update.
  3961. * gnulib/import/m4/fcntl.m4: Update.
  3962. * gnulib/import/m4/fcntl_h.m4: Update.
  3963. * gnulib/import/m4/fdopendir.m4: Update.
  3964. * gnulib/import/m4/filenamecat.m4: Update.
  3965. * gnulib/import/m4/flexmember.m4: Update.
  3966. * gnulib/import/m4/float_h.m4: Update.
  3967. * gnulib/import/m4/fnmatch.m4: Update.
  3968. * gnulib/import/m4/fnmatch_h.m4: Update.
  3969. * gnulib/import/m4/fpieee.m4: Update.
  3970. * gnulib/import/m4/frexp.m4: Update.
  3971. * gnulib/import/m4/frexpl.m4: Update.
  3972. * gnulib/import/m4/fstat.m4: Update.
  3973. * gnulib/import/m4/fstatat.m4: Update.
  3974. * gnulib/import/m4/getcwd-abort-bug.m4: Update.
  3975. * gnulib/import/m4/getcwd-path-max.m4: Update.
  3976. * gnulib/import/m4/getcwd.m4: Update.
  3977. * gnulib/import/m4/getdtablesize.m4: Update.
  3978. * gnulib/import/m4/getlogin.m4: Update.
  3979. * gnulib/import/m4/getlogin_r.m4: Update.
  3980. * gnulib/import/m4/getpagesize.m4: Update.
  3981. * gnulib/import/m4/getprogname.m4: Update.
  3982. * gnulib/import/m4/gettimeofday.m4: Update.
  3983. * gnulib/import/m4/glibc21.m4: Update.
  3984. * gnulib/import/m4/glob.m4: Update.
  3985. * gnulib/import/m4/glob_h.m4: Update.
  3986. * gnulib/import/m4/gnulib-cache.m4: Update.
  3987. * gnulib/import/m4/gnulib-common.m4: Update.
  3988. * gnulib/import/m4/gnulib-comp.m4: Update.
  3989. * gnulib/import/m4/gnulib-tool.m4: Update.
  3990. * gnulib/import/m4/hard-locale.m4: Update.
  3991. * gnulib/import/m4/include_next.m4: Update.
  3992. * gnulib/import/m4/inttypes-pri.m4: Update.
  3993. * gnulib/import/m4/inttypes.m4: Update.
  3994. * gnulib/import/m4/isnand.m4: Update.
  3995. * gnulib/import/m4/isnanl.m4: Update.
  3996. * gnulib/import/m4/largefile.m4: Update.
  3997. * gnulib/import/m4/limits-h.m4: Update.
  3998. * gnulib/import/m4/localcharset.m4: Update.
  3999. * gnulib/import/m4/locale-fr.m4: Update.
  4000. * gnulib/import/m4/locale-ja.m4: Update.
  4001. * gnulib/import/m4/locale-zh.m4: Update.
  4002. * gnulib/import/m4/localtime-buffer.m4: Update.
  4003. * gnulib/import/m4/longlong.m4: Update.
  4004. * gnulib/import/m4/lstat.m4: Update.
  4005. * gnulib/import/m4/malloc.m4: Update.
  4006. * gnulib/import/m4/malloca.m4: Update.
  4007. * gnulib/import/m4/math_h.m4: Update.
  4008. * gnulib/import/m4/mbrtowc.m4: Update.
  4009. * gnulib/import/m4/mbsinit.m4: Update.
  4010. * gnulib/import/m4/mbsrtowcs.m4: Update.
  4011. * gnulib/import/m4/mbstate_t.m4: Update.
  4012. * gnulib/import/m4/memchr.m4: Update.
  4013. * gnulib/import/m4/memmem.m4: Update.
  4014. * gnulib/import/m4/mempcpy.m4: Update.
  4015. * gnulib/import/m4/memrchr.m4: Update.
  4016. * gnulib/import/m4/mkdir.m4: Update.
  4017. * gnulib/import/m4/mkstemp.m4: Update.
  4018. * gnulib/import/m4/mmap-anon.m4: Update.
  4019. * gnulib/import/m4/mode_t.m4: Update.
  4020. * gnulib/import/m4/msvc-inval.m4: Update.
  4021. * gnulib/import/m4/msvc-nothrow.m4: Update.
  4022. * gnulib/import/m4/multiarch.m4: Update.
  4023. * gnulib/import/m4/nocrash.m4: Update.
  4024. * gnulib/import/m4/off_t.m4: Update.
  4025. * gnulib/import/m4/onceonly.m4: Update.
  4026. * gnulib/import/m4/open-cloexec.m4: Update.
  4027. * gnulib/import/m4/open.m4: Update.
  4028. * gnulib/import/m4/openat.m4: Update.
  4029. * gnulib/import/m4/opendir.m4: Update.
  4030. * gnulib/import/m4/pathmax.m4: Update.
  4031. * gnulib/import/m4/rawmemchr.m4: Update.
  4032. * gnulib/import/m4/readdir.m4: Update.
  4033. * gnulib/import/m4/readlink.m4: Update.
  4034. * gnulib/import/m4/realloc.m4: Update.
  4035. * gnulib/import/m4/rename.m4: Update.
  4036. * gnulib/import/m4/rewinddir.m4: Update.
  4037. * gnulib/import/m4/rmdir.m4: Update.
  4038. * gnulib/import/m4/save-cwd.m4: Update.
  4039. * gnulib/import/m4/secure_getenv.m4: Update.
  4040. * gnulib/import/m4/setenv.m4: Update.
  4041. * gnulib/import/m4/signal_h.m4: Update.
  4042. * gnulib/import/m4/ssize_t.m4: Update.
  4043. * gnulib/import/m4/stat-time.m4: Update.
  4044. * gnulib/import/m4/stat.m4: Update.
  4045. * gnulib/import/m4/std-gnu11.m4: Update.
  4046. * gnulib/import/m4/stdbool.m4: Update.
  4047. * gnulib/import/m4/stddef_h.m4: Update.
  4048. * gnulib/import/m4/stdint.m4: Update.
  4049. * gnulib/import/m4/stdio_h.m4: Update.
  4050. * gnulib/import/m4/stdlib_h.m4: Update.
  4051. * gnulib/import/m4/strchrnul.m4: Update.
  4052. * gnulib/import/m4/strdup.m4: Update.
  4053. * gnulib/import/m4/strerror.m4: Update.
  4054. * gnulib/import/m4/string_h.m4: Update.
  4055. * gnulib/import/m4/strstr.m4: Update.
  4056. * gnulib/import/m4/strtok_r.m4: Update.
  4057. * gnulib/import/m4/sys_socket_h.m4: Update.
  4058. * gnulib/import/m4/sys_stat_h.m4: Update.
  4059. * gnulib/import/m4/sys_time_h.m4: Update.
  4060. * gnulib/import/m4/sys_types_h.m4: Update.
  4061. * gnulib/import/m4/tempname.m4: Update.
  4062. * gnulib/import/m4/time_h.m4: Update.
  4063. * gnulib/import/m4/unistd-safer.m4: Update.
  4064. * gnulib/import/m4/unistd_h.m4: Update.
  4065. * gnulib/import/m4/warn-on-use.m4: Update.
  4066. * gnulib/import/m4/wchar_h.m4: Update.
  4067. * gnulib/import/m4/wchar_t.m4: Update.
  4068. * gnulib/import/m4/wctype_h.m4: Update.
  4069. * gnulib/import/m4/wint_t.m4: Update.
  4070. * gnulib/import/malloc.c: Update.
  4071. * gnulib/import/malloc/scratch_buffer.h: Update.
  4072. * gnulib/import/malloc/scratch_buffer_grow.c: Update.
  4073. * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
  4074. * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
  4075. * gnulib/import/malloca.c: Update.
  4076. * gnulib/import/malloca.h: Update.
  4077. * gnulib/import/malloca.valgrind: Update.
  4078. * gnulib/import/math.in.h: Update.
  4079. * gnulib/import/mbrtowc.c: Update.
  4080. * gnulib/import/mbsinit.c: Update.
  4081. * gnulib/import/mbsrtowcs-impl.h: Update.
  4082. * gnulib/import/mbsrtowcs-state.c: Update.
  4083. * gnulib/import/mbsrtowcs.c: Update.
  4084. * gnulib/import/memchr.c: Update.
  4085. * gnulib/import/memmem.c: Update.
  4086. * gnulib/import/mempcpy.c: Update.
  4087. * gnulib/import/memrchr.c: Update.
  4088. * gnulib/import/mkdir.c: Update.
  4089. * gnulib/import/mkstemp.c: Update.
  4090. * gnulib/import/msvc-inval.c: Update.
  4091. * gnulib/import/msvc-inval.h: Update.
  4092. * gnulib/import/msvc-nothrow.c: Update.
  4093. * gnulib/import/msvc-nothrow.h: Update.
  4094. * gnulib/import/open.c: Update.
  4095. * gnulib/import/openat-die.c: Update.
  4096. * gnulib/import/openat-priv.h: Update.
  4097. * gnulib/import/openat-proc.c: Update.
  4098. * gnulib/import/openat.c: Update.
  4099. * gnulib/import/openat.h: Update.
  4100. * gnulib/import/opendir.c: Update.
  4101. * gnulib/import/pathmax.h: Update.
  4102. * gnulib/import/pipe-safer.c: Update.
  4103. * gnulib/import/rawmemchr.c: Update.
  4104. * gnulib/import/readdir.c: Update.
  4105. * gnulib/import/readlink.c: Update.
  4106. * gnulib/import/realloc.c: Update.
  4107. * gnulib/import/ref-add.sin: Update.
  4108. * gnulib/import/ref-del.sin: Update.
  4109. * gnulib/import/rename.c: Update.
  4110. * gnulib/import/rewinddir.c: Update.
  4111. * gnulib/import/rmdir.c: Update.
  4112. * gnulib/import/same-inode.h: Update.
  4113. * gnulib/import/save-cwd.c: Update.
  4114. * gnulib/import/save-cwd.h: Update.
  4115. * gnulib/import/scratch_buffer.h: Update.
  4116. * gnulib/import/secure_getenv.c: Update.
  4117. * gnulib/import/setenv.c: Update.
  4118. * gnulib/import/signal.in.h: Update.
  4119. * gnulib/import/stat-time.c: Update.
  4120. * gnulib/import/stat-time.h: Update.
  4121. * gnulib/import/stat-w32.c: Update.
  4122. * gnulib/import/stat-w32.h: Update.
  4123. * gnulib/import/stat.c: Update.
  4124. * gnulib/import/stdbool.in.h: Update.
  4125. * gnulib/import/stddef.in.h: Update.
  4126. * gnulib/import/stdint.in.h: Update.
  4127. * gnulib/import/stdio.in.h: Update.
  4128. * gnulib/import/stdlib.in.h: Update.
  4129. * gnulib/import/str-two-way.h: Update.
  4130. * gnulib/import/strchrnul.c: Update.
  4131. * gnulib/import/strdup.c: Update.
  4132. * gnulib/import/streq.h: Update.
  4133. * gnulib/import/strerror-override.c: Update.
  4134. * gnulib/import/strerror-override.h: Update.
  4135. * gnulib/import/strerror.c: Update.
  4136. * gnulib/import/string.in.h: Update.
  4137. * gnulib/import/stripslash.c: Update.
  4138. * gnulib/import/strnlen1.c: Update.
  4139. * gnulib/import/strnlen1.h: Update.
  4140. * gnulib/import/strstr.c: Update.
  4141. * gnulib/import/strtok_r.c: Update.
  4142. * gnulib/import/sys_stat.in.h: Update.
  4143. * gnulib/import/sys_time.in.h: Update.
  4144. * gnulib/import/sys_types.in.h: Update.
  4145. * gnulib/import/tempname.c: Update.
  4146. * gnulib/import/tempname.h: Update.
  4147. * gnulib/import/time.in.h: Update.
  4148. * gnulib/import/unistd--.h: Update.
  4149. * gnulib/import/unistd-safer.h: Update.
  4150. * gnulib/import/unistd.in.h: Update.
  4151. * gnulib/import/unsetenv.c: Update.
  4152. * gnulib/import/verify.h: Update.
  4153. * gnulib/import/extra/snippet/warn-on-use.h: Update.
  4154. * gnulib/import/wchar.in.h: Update.
  4155. * gnulib/import/wctype.in.h: Update.
  4156. * gnulib/import/xalloc-oversized.h: Update.
  4157. * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
  4158. "53e2c179f26a890fa6685af4b6c1397ee370433b".
  4159. 2018-08-16 Gary Benson <gbenson@redhat.com>
  4160. PR gdb/13000:
  4161. * main.c (captured_main_1): Exit with nonzero status
  4162. in batch mode if the last command to be executed failed.
  4163. * NEWS: Mention the above.
  4164. 2018-08-29 Simon Marchi <simon.marchi@ericsson.com>
  4165. * csky-tdep.c (csky_memory_insert_breakpoint): Remove newline at
  4166. end of warning message.
  4167. 2018-08-29 Alan Hayward <alan.hayward@arm.com>
  4168. PR gdb/22943:
  4169. * aarch64-tdep.c (is_hfa_or_hva): Remove function.
  4170. (aarch64_extract_return_value): Use
  4171. aapcs_is_vfp_call_or_return_candidate.
  4172. (aarch64_return_in_memory): Likewise.
  4173. (aarch64_store_return_value): Likewise.
  4174. 2018-08-29 Alan Hayward <alan.hayward@arm.com>
  4175. * aarch64-tdep.c
  4176. (aapcs_is_vfp_call_or_return_candidate): Make static
  4177. (pass_in_v_or_stack): Remove function.
  4178. (pass_in_v_vfp_candidate): New function.
  4179. (aarch64_push_dummy_call): Check for float register candidates.
  4180. 2018-08-29 Alan Hayward <alan.hayward@arm.com>
  4181. * aarch64-tdep.c (HA_MAX_NUM_FLDS): New macro.
  4182. (aapcs_is_vfp_call_or_return_candidate_1): New function.
  4183. (aapcs_is_vfp_call_or_return_candidate): Likewise.
  4184. 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
  4185. PR build/23399
  4186. * common/agent.c (IPA_SYM_STRUCT_NAME): Define.
  4187. (struct ipa_sym_addresses): Rename to...
  4188. (struct ipa_sym_addresses_common): ... this.
  4189. * common/agent.h (IPA_SYM): Use IPA_SYM_STRUCT_NAME.
  4190. 2018-08-28 Tom Tromey <tom@tromey.com>
  4191. * c-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
  4192. (token_fifo): Now a std::vector.
  4193. (yylex, c_parse): Update.
  4194. * d-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
  4195. (token_fifo): Now a std::vector.
  4196. (yylex, d_parse): Update.
  4197. * go-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
  4198. (token_fifo): Now a std::vector.
  4199. (yylex, go_parse): Update.
  4200. 2018-08-28 Simon Marchi <simon.marchi@ericsson.com>
  4201. * parser-defs.h (struct type_stack) <elements>: Change type to
  4202. std::vector<union type_stack_elt>.
  4203. <depth, size>: Remove.
  4204. * parse.c (parse_exp_in_context_1): Adjust.
  4205. (type_stack_reserve): Remove.
  4206. (check_type_stack_depth): Remove.
  4207. (insert_into_type_stack): Adjust to std::vector.
  4208. (insert_type): Likewise.
  4209. (push_type): Likewise.
  4210. (push_type_int): Likewise.
  4211. (insert_type_address_space): Likewise.
  4212. (pop_type): Likewise.
  4213. (pop_type_int): Likewise.
  4214. (pop_typelist): Likewise.
  4215. (pop_type_stack): Likewise.
  4216. (append_type_stack): Likewise.
  4217. (push_type_stack): Likewise.
  4218. (get_type_stack): Likewise.
  4219. (type_stack_cleanup): Likewise.
  4220. (push_typelist): Likewise.
  4221. (follow_types): Likewise.
  4222. (_initialize_parse): Likewise.
  4223. 2018-08-28 Hafiz Abid Qadeer <abidh@codesourcery.com>
  4224. * NEWS: Mention csky target.
  4225. 2018-08-28 Jiangshuai Li <jiangshuai_li@c-sky.com>
  4226. Hafiz Abid Qadeer <abidh@codesourcery.com>
  4227. Don Breazeal <donb@codesourcery.com>
  4228. * csky-linux-tdep.c: New file.
  4229. * csky-tdep.c: Likewise.
  4230. * csky-tdep.h: Likewise.
  4231. * Makefile.in (ALL_TARGET_OBS): Add csky-linux-tdep.o and
  4232. csky-tdep.o.
  4233. (HFILES_NO_SRCDIR): Add csky-tdep.h.
  4234. (ALLDEPFILES): Add csky-linux-tdep.c and csky-tdep.c
  4235. * configure.tgt: Add csky support.
  4236. 2018-08-27 Jan Vrany <jan.vrany@fit.cvut.cz>
  4237. * python/py-framefilter.c (py_print_frame): Print frame architecture
  4238. when printing on an MI output.
  4239. 2018-08-27 Tom Tromey <tom@tromey.com>
  4240. PR build/23087:
  4241. * configure: Rebuild.
  4242. * warning.m4 (AM_GDB_WARNINGS): Remove -Wno-narrowing.
  4243. 2018-08-27 Tom Tromey <tom@tromey.com>
  4244. * aarch64-linux-tdep.c
  4245. (aarch64_linux_iterate_over_regset_sections) <sve_regmap>: Add
  4246. casts to int.
  4247. 2018-08-27 Tom Tromey <tom@tromey.com>
  4248. * ppc64-tdep.c (insn_d, insn_ds, insn_xfx): Add casts to
  4249. unsigned.
  4250. (ppc64_standard_linkage1, ppc64_standard_linkage2)
  4251. (ppc64_standard_linkage3, ppc64_standard_linkage4)
  4252. (ppc64_standard_linkage5, ppc64_standard_linkage6)
  4253. (ppc64_standard_linkage7, ppc64_standard_linkage8): Add casts to
  4254. unsigned.
  4255. 2018-08-27 Tom Tromey <tom@tromey.com>
  4256. * xtensa-tdep.h (XTREG_END): Add cast to unsigned.
  4257. (XTENSA_GDBARCH_TDEP_INSTANTIATE): Likewise.
  4258. 2018-08-27 Tom Tromey <tom@tromey.com>
  4259. * tramp-frame.h (TRAMP_SENTINEL_INSN): Redefine.
  4260. * tilegx-linux-tdep.c (tilegx_linux_rt_sigframe): Use
  4261. ULONGEST_MAX.
  4262. * tic6x-linux-tdep.c (tic6x_linux_rt_sigreturn_tramp_frame): Use
  4263. ULONGEST_MAX.
  4264. * sparc64-linux-tdep.c (sparc64_linux_rt_sigframe): Use
  4265. ULONGEST_MAX.
  4266. * sparc-linux-tdep.c (sparc32_linux_sigframe)
  4267. (sparc32_linux_rt_sigframe): Use ULONGEST_MAX.
  4268. * ppc-nbsd-tdep.c (ppcnbsd_sigtramp, ppcnbsd2_sigtramp): Use
  4269. ULONGEST_MAX.
  4270. * ppc-linux-tdep.c (ppc32_linux_sigaction_tramp_frame)
  4271. (ppc64_linux_sigaction_tramp_frame)
  4272. (ppc32_linux_sighandler_tramp_frame)
  4273. (ppc64_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
  4274. * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame)
  4275. (nios2_r2_linux_rt_sigreturn_tramp_frame): Use ULONGEST_MAX.
  4276. * mn10300-linux-tdep.c (am33_linux_sigframe)
  4277. (am33_linux_rt_sigframe): Use ULONGEST_MAX.
  4278. * mips64-obsd-tdep.c (mips64obsd_sigframe): Use ULONGEST_MAX.
  4279. * mips-linux-tdep.c (mips_linux_o32_sigframe)
  4280. (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
  4281. (mips_linux_n64_rt_sigframe, micromips_linux_o32_sigframe)
  4282. (micromips_linux_o32_rt_sigframe, micromips_linux_n32_rt_sigframe)
  4283. (micromips_linux_n64_rt_sigframe): Use ULONGEST_MAX.
  4284. * mips-fbsd-tdep.c (mips_fbsd_sigframe, mipsn32_fbsd_sigframe)
  4285. (mips64_fbsd_sigframe): Use ULONGEST_MAX.
  4286. * microblaze-linux-tdep.c
  4287. (microblaze_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
  4288. * i386-nbsd-tdep.c (i386nbsd_sigtramp_sc16, i386nbsd_sigtramp_sc2)
  4289. (i386nbsd_sigtramp_si2, i386nbsd_sigtramp_si31)
  4290. (i386nbsd_sigtramp_si4): Use ULONGEST_MAX.
  4291. * hppa-nbsd-tdep.c (hppanbsd_sigtramp_si4): Use ULONGEST_MAX.
  4292. * common/common-types.h (ULONGEST_MAX): New define.
  4293. (CORE_ADDR_MAX): Fix formatting.
  4294. * bfin-linux-tdep.c (bfin_linux_sigframe): Use ULONGEST_MAX.
  4295. * arm-obsd-tdep.c (armobsd_sigframe): Use ULONGEST_MAX.
  4296. * arm-linux-tdep.c (arm_linux_sigreturn_tramp_frame)
  4297. (arm_linux_rt_sigreturn_tramp_frame)
  4298. (arm_eabi_linux_sigreturn_tramp_frame)
  4299. (arm_eabi_linux_rt_sigreturn_tramp_frame)
  4300. (thumb2_eabi_linux_sigreturn_tramp_frame)
  4301. (thumb2_eabi_linux_rt_sigreturn_tramp_frame)
  4302. (arm_linux_restart_syscall_tramp_frame)
  4303. (arm_kernel_linux_restart_syscall_tramp_frame): Use ULONGEST_MAX.
  4304. * arm-fbsd-tdep.c (arm_fbsd_sigframe): Use ULONGEST_MAX.
  4305. * aarch64-linux-tdep.c (aarch64_linux_rt_sigframe): Use
  4306. ULONGEST_MAX.
  4307. * aarch64-fbsd-tdep.c (aarch64_fbsd_sigframe): Use ULONGEST_MAX.
  4308. 2018-08-27 Tom Tromey <tom@tromey.com>
  4309. * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Use
  4310. CORE_ADDR_MAX.
  4311. * mips-tdep.c (mips_deal_with_atomic_sequence)
  4312. (micromips_deal_with_atomic_sequence): Use CORE_ADDR_MAX.
  4313. * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw)
  4314. (arm_deal_with_atomic_sequence_raw): Use CORE_ADDR_MAX.
  4315. * alpha-tdep.c (alpha_deal_with_atomic_sequence): Use
  4316. CORE_ADDR_MAX.
  4317. * aarch64-tdep.c (aarch64_software_single_step): Use
  4318. CORE_ADDR_MAX.
  4319. 2018-08-27 Tom Tromey <tom@tromey.com>
  4320. * linespec.c (complete_linespec_component): Add cast to "char".
  4321. * completer.c (completion_tracker::build_completion_result): Add
  4322. cast to "char".
  4323. 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
  4324. * solist.h (struct solist, struct target_so_ops): Fix
  4325. indentation.
  4326. 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
  4327. * ada-tasks.c (ada_task_info_s): Remove typedef.
  4328. (DEF_VEC_O(ada_task_info_s)): Remove.
  4329. (struct ada_tasks_inferior_data): Initialize fields.
  4330. <task_list>: Make an std::vector.
  4331. (get_ada_tasks_inferior_data): Allocate with new.
  4332. (ada_get_task_number): Adjust.
  4333. (get_task_number_from_id): Likewise.
  4334. (valid_task_id): Likewise.
  4335. (ada_get_task_info_from_ptid): Likewise.
  4336. (iterate_over_live_ada_tasks): Likewise.
  4337. (add_ada_task): Likewise.
  4338. (read_known_tasks): Likewise.
  4339. (ada_build_task_list): Likewise.
  4340. (print_ada_task_info): Likewise.
  4341. (info_task): Likewise.
  4342. (task_command_1): Likewise.
  4343. 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
  4344. * ada-lang.c (add_angle_brackets): Return std::string.
  4345. 2018-08-25 Simon Marchi <simon.marchi@polymtl.ca>
  4346. * python/py-threadevent.c (py_get_event_thread): Initialize
  4347. pythread.
  4348. 2018-08-24 Pedro Alves <palves@redhat.com>
  4349. * python/py-bpevent.c (create_breakpoint_event_object): Use
  4350. copy-initialization.
  4351. * python/py-continueevent.c (emit_continue_event): Use
  4352. copy-initialization.
  4353. * python/py-exitedevent.c (create_exited_event_object): Return a
  4354. gdbpy_ref<>.
  4355. (emit_exited_event): Use copy-initialization.
  4356. * python/py-inferior.c (python_new_inferior)
  4357. (python_inferior_deleted, add_thread_object): Use
  4358. copy-initialization.
  4359. * python/py-infevents.c (create_inferior_call_event_object)
  4360. (create_register_changed_event_object)
  4361. (create_memory_changed_event_object): Return a gdbpy_ref<>.
  4362. (emit_inferior_call_event, emit_memory_changed_event)
  4363. (emit_register_changed_event): Use copy-initialization.
  4364. * python/py-newobjfileevent.c (create_new_objfile_event_object):
  4365. Return a gdbpy_ref<>.
  4366. (emit_new_objfile_event): Use copy-initialization.
  4367. (create_clear_objfiles_event_object): Return a gdbpy_ref<>.
  4368. (emit_clear_objfiles_event): Use copy-initialization.
  4369. * python/py-signalevent.c (create_signal_event_object): Use
  4370. copy-initialization.
  4371. * python/py-threadevent.c (create_thread_event_object): Use
  4372. copy-initialization.
  4373. 2018-08-24 Pedro Alves <palves@redhat.com>
  4374. Simon Marchi <simon.marchi@ericsson.com>
  4375. PR gdb/23379
  4376. * python/py-continueevent.c: Include "gdbthread.h".
  4377. (create_continue_event_object): Add intro comment. Add 'ptid'
  4378. parameter. Use it to find thread to pass to
  4379. create_thread_event_object.
  4380. (emit_continue_event): Pass PTID down to
  4381. create_continue_event_object.
  4382. * python/py-event.h (py_get_event_thread): Declare.
  4383. (create_thread_event_object): Remove default from 'thread'
  4384. parameter.
  4385. * python/py-stopevent.c (create_stop_event_object): Use
  4386. py_get_event_thread.
  4387. * python/py-threadevent.c (get_event_thread): Rename to ...
  4388. (py_get_event_thread): ... this, make extern, add 'ptid' parameter
  4389. and use it to find the thread.
  4390. (create_thread_event_object): Assert that THREAD isn't null.
  4391. Don't find the event thread here.
  4392. 2018-08-23 Kevin Buettner <kevinb@redhat.com>
  4393. * block.h (blockrange, blockranges): New struct declarations.
  4394. (struct block): Add new field named `ranges'.
  4395. (BLOCK_RANGES, BLOCK_NRANGES, BLOCK_RANGE, BLOCK_CONTIGUOUS_P)
  4396. (BLOCK_RANGE_START, BLOCK_RANGE_END, BLOCK_ENTRY_PC): New
  4397. macros for accessing ranges in struct block.
  4398. (make_blockranges): New declaration.
  4399. block.c (make_blockranges): New function.
  4400. * dwarf2read.c (dwarf2_record_block_ranges): Fill in BLOCK_RANGES
  4401. for block.
  4402. * symtab.h (find_pc_partial_function): Add new parameter `block'.
  4403. * blockframe.c (cache_pc_function_block): New static global.
  4404. (clear_pc_function_cache): Clear cache_pc_function_block.
  4405. (find_pc_partial_function): Move comment to symtab.h. Add
  4406. support for non-contiguous blocks.
  4407. * cli/cli-cmds.c (block.h): Include.
  4408. (print_disassembly): Handle printing of non-contiguous blocks.
  4409. (disassemble_current_function): Likewise.
  4410. (disassemble_command): Likewise.
  4411. * ax-gdb.c (gen_var_ref): Use BLOCK_ENTRY_PC in place of
  4412. BLOCK_START.
  4413. * blockframe.c (get_pc_function_start): Likewise.
  4414. * compile/compile-c-symbols.c (convert_one_symbol): Likewise.
  4415. (gcc_symbol_address): Likewise.
  4416. * compile/compile-object-run.c (compile_object_run): Likewise.
  4417. * compile/compile.c (get_expr_block_and_pc): Likewise.
  4418. * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
  4419. (func_addr_to_tail_call_list): Likewise.
  4420. * findvar.c (default_read_var_value): Likewise.
  4421. * inline-frame.c (inline_frame_this_id): Likewise.
  4422. (skip-inline_frames): Likewise.
  4423. * infcmd.c (until_next_command): Likewise.
  4424. * linespec.c (convert_linespec_to_sals): Likewise.
  4425. * parse.c (parse_exp_in_context_1): Likewise.
  4426. * printcmd.c (build_address_symbolic): likewise.
  4427. (info_address_command): Likewise.
  4428. symtab.c (find_function_start_sal): Likewise.
  4429. (skip_prologue_sal): Likewise.
  4430. (find_function_alias_target): Likewise.
  4431. (find_gnu_ifunc): Likewise.
  4432. * stack.c (find_frame_funname): Likewise.
  4433. * symtab.c (fixup_symbol_section): Likewise.
  4434. (find_function_start_sal): Likewise.
  4435. (skip_prologue_sal): Likewsie.
  4436. (find_function_alias_target): Likewise.
  4437. (find_gnu_ifunc): Likewise.
  4438. * tracepoint.c (info_scope_command): Likewise.
  4439. * value.c (value_fn_field): Likewise.
  4440. * infrun.c (fill_in_stop_func): Use find_function_entry_range_from_pc
  4441. in place of find_pc_partial_function.
  4442. * blockframe.c (find_function_entry_range_from_pc): New function.
  4443. * symtab.h (find_function_entry_range_from_pc): Declare and document.
  4444. * objfiles.c (objfile_relocate1): Relocate start and end addresses
  4445. for each range in a block.
  4446. 2018-08-23 Xavier Roirand <roirand@adacore.com>
  4447. * machoread.c (macho_symfile_read_all_oso): Remove uneeded
  4448. incrementation.
  4449. 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
  4450. * solib-svr4.c (read_program_headers_from_bfd): Return
  4451. gdb::optional<gdb::byte_vector>.
  4452. (svr4_exec_displacement): Adjust.
  4453. 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
  4454. * solib-svr4.c (read_program_header): Return
  4455. gdb::optional<gdb::byte_vector>, remove p_sect_size param.
  4456. (find_program_interpreter): Return
  4457. gdb::optional<gdb::byte_vector>.
  4458. (scan_dyntag_auxv): Adjust.
  4459. (enable_break): Adjust.
  4460. (svr4_exec_displacement): Adjust.
  4461. 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
  4462. * inf-child.h (inf_child_target) <terminal_save_inferior>: New.
  4463. * inf-child.c (inf_child_target::terminal_save_inferior): New.
  4464. 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
  4465. * guile/scm-string.c (gdbscm_scm_from_printf): Use
  4466. string_vprintf.
  4467. * guile/scm-utils.c (gdbscm_printf): Likewise.
  4468. * serial.c (serial_printf): Likewise.
  4469. * xml-support.c (gdb_xml_parser::vdebug): Likewise.
  4470. 2018-08-22 Jan Vrany <jan.vrany@fit.cvut.cz>
  4471. * stack.c (print_frame): Print frame architecture when printing on
  4472. an MI output.
  4473. * NEWS: Mention new "arch" attribute in frame output.
  4474. 2018-08-21 Alan Hayward <alan.hayward@arm.com>
  4475. * arch/aarch64.h (aarch64_regnum): Update comment.
  4476. 2018-08-21 Alan Hayward <alan.hayward@arm.com>
  4477. * NEWS: Add SVE to 8.2 section.
  4478. 2018-08-21 Pedro Alves <palves@redhat.com>
  4479. * guile/scm-utils.c (gdbscm_parse_function_args_1): New, factored
  4480. out from gdbscm_parse_function_args.
  4481. (gdbscm_parse_function_args): Rework to use gdbscm_wrap and
  4482. gdbscm_parse_function_args_1.
  4483. 2018-08-21 Simon Marchi <simon.marchi@ericsson.com>
  4484. PR gdb/17816
  4485. * m32c-tdep.c (m32c_decode_srcdest4): Remove unnecessary ternary
  4486. operator.
  4487. 2018-08-19 Simon Marchi <simon.marchi@polymtl.ca>
  4488. * solib-svr4.c (svr4_exec_displacement): Fix formatting.
  4489. 2018-08-19 Michael Spang <spang@google.com>
  4490. PR gdb/11786
  4491. * solib-svr4.c (svr4_exec_displacement): Ignore memsz fields
  4492. for PT_TLS segments.
  4493. 2018-08-18 Kevin Buettner <kevinb@redhat.com>
  4494. * dwarf2expr.h (struct dwarf_expr_context): Add virtual method
  4495. dwarf_variable_value.
  4496. * dwarf2-frame.c (class dwarf_expr_executor):
  4497. Add override for dwarf_variable_value.
  4498. * dwarf2loc.c (class dwarf_evaluate_loc_desc): Likewise.
  4499. (class symbol_needs_eval_context): Likewise.
  4500. (indirect_synthetic_pointer): Add forward declaration.
  4501. (sect_variable_value): New function.
  4502. (dwarf2_compile_expr_to_ax): Add case for DW_OP_GNU_variable_value.
  4503. * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Add case
  4504. for DW_OP_GNU_variable_value.
  4505. 2018-08-16 Tom Tromey <tom@tromey.com>
  4506. * top.c (read_command_file): Update.
  4507. (command_line_input): Remove "repeat" argument.
  4508. * ada-lang.c (get_selections): Update.
  4509. * linespec.c (decode_line_2): Update.
  4510. * defs.h (command_line_input): Remove argument.
  4511. * cli/cli-script.c (read_next_line): Update.
  4512. * python/py-gdb-readline.c: Update.
  4513. 2018-08-17 Tom Tromey <tom@tromey.com>
  4514. * cli/cli-script.c (read_next_line): Pass 0 as repeat argument to
  4515. command_line_input.
  4516. 2018-08-15 Tom Tromey <tom@tromey.com>
  4517. * aarch64-linux-tdep.c (aarch64_linux_core_read_vq): Use pulongest.
  4518. 2018-08-14 Jan Vrany <jan.vrany@fit.cvut.cz>
  4519. * mi/mi-cmd-disas.c (mi_cmd_disassemble): Add -a option.
  4520. If used, use find_pc_partial_function to find address range
  4521. to disassemble.
  4522. * mi/mi-main.c (mi_cmd_list_features): Report
  4523. "data-disassemble-a-option" feature.
  4524. * NEWS: Mention new -data-disassemble option -a.
  4525. 2018-08-13 Tom Tromey <tom@tromey.com>
  4526. * common/common-defs.h (_FORTIFY_SOURCE): Define.
  4527. 2018-08-13 Alan Hayward <alan.hayward@arm.com>
  4528. * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): New function.
  4529. (aarch64_linux_collect_sve_regset): Likewise.
  4530. (aarch64_linux_iterate_over_regset_sections): Check for SVE.
  4531. * regcache.h (regcache_map_entry_size): New function.
  4532. 2018-08-13 Alan Hayward <alan.hayward@arm.com>
  4533. * aarch64-linux-tdep.c (SVE_HEADER_SIZE_LENGTH): Add define.
  4534. (SVE_HEADER_MAX_SIZE_LENGTH): Likewise.
  4535. (SVE_HEADER_VL_LENGTH): Likewise.
  4536. (SVE_HEADER_MAX_VL_LENGTH): Likewise.
  4537. (SVE_HEADER_FLAGS_LENGTH): Likewise.
  4538. (SVE_HEADER_RESERVED_LENGTH): Likewise.
  4539. (SVE_HEADER_SIZE_OFFSET): Likewise.
  4540. (SVE_HEADER_MAX_SIZE_OFFSET): Likewise.
  4541. (SVE_HEADER_VL_OFFSET): Likewise.
  4542. (SVE_HEADER_MAX_VL_OFFSET): Likewise.
  4543. (SVE_HEADER_FLAGS_OFFSET): Likewise.
  4544. (SVE_HEADER_RESERVED_OFFSET): Likewise.
  4545. (SVE_HEADER_SIZE): Likewise.
  4546. (aarch64_linux_core_read_vq): Add function.
  4547. (aarch64_linux_core_read_description): Check for SVE section.
  4548. 2018-08-13 Alan Hayward <alan.hayward@arm.com>
  4549. * aarch64-fbsd-tdep.c
  4550. (aarch64_fbsd_iterate_over_regset_sections): Add supply_size and
  4551. collect_size.
  4552. * aarch64-linux-tdep.c
  4553. (aarch64_linux_iterate_over_regset_sections): Likewise.
  4554. * alpha-linux-tdep.c
  4555. (alpha_linux_iterate_over_regset_sections):
  4556. * alpha-nbsd-tdep.c
  4557. (alphanbsd_iterate_over_regset_sections): Likewise.
  4558. * amd64-fbsd-tdep.c
  4559. (amd64fbsd_iterate_over_regset_sections): Likewise.
  4560. * amd64-linux-tdep.c
  4561. (amd64_linux_iterate_over_regset_sections): Likewise.
  4562. * arm-bsd-tdep.c
  4563. (armbsd_iterate_over_regset_sections): Likewise.
  4564. * arm-fbsd-tdep.c
  4565. (arm_fbsd_iterate_over_regset_sections): Likewise.
  4566. * arm-linux-tdep.c
  4567. (arm_linux_iterate_over_regset_sections): Likewise.
  4568. * corelow.c (get_core_registers_cb): Likewise.
  4569. (core_target::fetch_registers): Likewise.
  4570. * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
  4571. * frv-linux-tdep.c (frv_linux_iterate_over_regset_sections): Likewise.
  4572. * gdbarch.h (void): Regenerate.
  4573. * gdbarch.sh: Add supply_size and collect_size.
  4574. * hppa-linux-tdep.c (hppa_linux_iterate_over_regset_sections): Likewise.
  4575. * hppa-nbsd-tdep.c (hppanbsd_iterate_over_regset_sections): Likewise.
  4576. * hppa-obsd-tdep.c (hppaobsd_iterate_over_regset_sections): Likewise.
  4577. * i386-fbsd-tdep.c (i386fbsd_iterate_over_regset_sections): Likewise.
  4578. * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections): Likewise.
  4579. * i386-tdep.c (i386_iterate_over_regset_sections): Likewise.
  4580. * ia64-linux-tdep.c (ia64_linux_iterate_over_regset_sections): Likewise.
  4581. * linux-tdep.c (linux_collect_regset_section_cb): Likewise.
  4582. * m32r-linux-tdep.c (m32r_linux_iterate_over_regset_sections): Likewise.
  4583. * m68k-bsd-tdep.c (m68kbsd_iterate_over_regset_sections): Likewise.
  4584. * m68k-linux-tdep.c (m68k_linux_iterate_over_regset_sections): Likewise.
  4585. * mips-fbsd-tdep.c (mips_fbsd_iterate_over_regset_sections): Likewise.
  4586. * mips-linux-tdep.c (mips_linux_iterate_over_regset_sections): Likewise.
  4587. * mips-nbsd-tdep.c (mipsnbsd_iterate_over_regset_sections): Likewise.
  4588. * mips64-obsd-tdep.c (mips64obsd_iterate_over_regset_sections):
  4589. Likewise.
  4590. * mn10300-linux-tdep.c (am33_iterate_over_regset_sections): Likewise.
  4591. * nios2-linux-tdep.c (nios2_iterate_over_regset_sections): Likewise.
  4592. * ppc-fbsd-tdep.c (ppcfbsd_iterate_over_regset_sections): Likewise.
  4593. * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections): Likewise.
  4594. * ppc-nbsd-tdep.c (ppcnbsd_iterate_over_regset_sections): Likewise.
  4595. * ppc-obsd-tdep.c (ppcobsd_iterate_over_regset_sections): Likewise.
  4596. * riscv-linux-tdep.c (riscv_linux_iterate_over_regset_sections):
  4597. Likewise.
  4598. * rs6000-aix-tdep.c (rs6000_aix_iterate_over_regset_sections): Likewise.
  4599. * s390-linux-tdep.c (s390_iterate_over_regset_sections): Likewise.
  4600. * score-tdep.c (score7_linux_iterate_over_regset_sections): Likewise.
  4601. * sh-tdep.c (sh_iterate_over_regset_sections): Likewise.
  4602. * sparc-tdep.c (sparc_iterate_over_regset_sections): Likewise.
  4603. * tilegx-linux-tdep.c (tilegx_iterate_over_regset_sections): Likewise.
  4604. * vax-tdep.c (vax_iterate_over_regset_sections): Likewise.
  4605. * xtensa-tdep.c (xtensa_iterate_over_regset_sections): Likewise.
  4606. 2018-08-10 Simon Marchi <simon.marchi@ericsson.com>
  4607. * nat/linux-osdata.c (commandline_from_pid): Replace xstrprintf
  4608. with string_printf.
  4609. 2018-08-10 Keith Seitz <keiths@redhat.com>
  4610. * compile/compile-c-support.c (add_code_header, add_code_footer):
  4611. Move into policy class.
  4612. (c_push_user_expression, pop_user_expression_nop)
  4613. (c_add_code_header, c_add_code_footer, c_add_input): New policy class.
  4614. (compile_program): New host class.
  4615. (c_compile_program): New typedef.
  4616. (c_compute_porgram): Use c_compile_program.
  4617. 2018-08-10 Keith Seitz <keiths@redhat.com>
  4618. * compile/compile-internal.h (compile_instance::~compile_instance):
  4619. Remove calls to htab_delete.
  4620. <m_type_map, m_symbol_err_map>: Switch type to htab_up.
  4621. * compile.c (compile_instance::compile_instance): Initialize
  4622. htab unique pointers.
  4623. (compile_instance::get_cached_type, compile_instance::insert_type)
  4624. (compile_instance::error_symbol_once): Update for unique_ptr.
  4625. 2018-08-10 Keith Seitz <keiths@redhat.com>
  4626. * compile/compile-c-symbols.c (struct symbol_error)
  4627. (hash_symbol_error, eq_symbol_error, del_symbol_error)
  4628. (compile_instance::insert_symbol_error)
  4629. (compile_instance::error_symbol_once): Move to ...
  4630. * compile/compile.c: ... here.
  4631. 2018-08-10 Keith Seitz <keiths@redhat.com>
  4632. * compile/compile-c-support.c (c_get_compile_context): Use `new'
  4633. instead of `new_compile_instance'.
  4634. * compile/compile-c-symbols.c (compile_instance::insert_symbol_error):
  4635. Update description.
  4636. If the symbol error map is not initialized, create it.
  4637. (generate_c_for_for_one_symbol): Do not check/initialize
  4638. the symbol error map.
  4639. * compile/compile-c-types.c (compile_c_instance): Make a class.
  4640. Update all callers.
  4641. (compile_instance::compile_instance): Initialize the type cache.
  4642. (get_cached_type): New function.
  4643. (insert_type): Update description.
  4644. (compile_c_instance::m_default_cflags): Define.
  4645. (convert_type): Update description. Use get_cached_type.
  4646. (delete_instance): Moved to destructor.
  4647. (new_compile_instance): Moved to constructor.
  4648. * compile/compile-c.h (compile_c_instance): Make class inheriting
  4649. from compile_instance.
  4650. <base>: Remove field.
  4651. <type_map, symbol_err_map>: Move to base class.
  4652. <c_plugin>: Rename to `m_plugin' and remove pointer type.
  4653. * compile/compile-internal.h (compile_instance): Make class.
  4654. <type_map_t, symbol_err_map_t>: Define.
  4655. <fe>: Rename to `m_gcc_fe'.
  4656. <scope, block, gcc_target_options>: Add `m_' prefix.
  4657. <m_type_map, m_symbol_err_map>: New fields, moved from
  4658. compile_c_instance.
  4659. <destroy>: Remove.
  4660. (convert_type, new_compile_instance): Remove.
  4661. * compile/compile.c (cleanup_compile_instance): Remove.
  4662. (compile_to_object): Use unique_ptr to eliminate cleanups.
  4663. (compile_instance::set_print_callback, compile_instance::version)
  4664. (compile_instance::set_verbose)
  4665. (compile_instance::set_driver_filename)
  4666. (compile_instance::set_triplet_regexp)
  4667. (compile_instance::set_arguments)
  4668. (compile_instance::set_source_file)
  4669. (compile_instance::compile): Define.
  4670. 2018-08-10 Keith Seitz <keiths@redhat.com>
  4671. * Makefile.in (HFILES_NO_SRCDIR): Add compile/gcc-c-plugin.h.
  4672. * compile/compile-c-types.c: Define GCC_METHODN macros and include
  4673. gcc-c-fe.def to define C plugin.
  4674. (delete_instance): Delete `c_plugin'.
  4675. (new_compile_instance): Initialize `c_plugin'.
  4676. * compile/compile-c.h: Include gcc_c_plugin.h.
  4677. (struct compile_c_instance) <c_plugin>: New member.
  4678. * gcc-c-plugin.h: New file.
  4679. Update all callers with API change.
  4680. 2018-08-10 Keith Seitz <keiths@redhat.com>
  4681. * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Move header files ...
  4682. (HFILES_NO_SRCDIR): ... to here.
  4683. Add compile-internal.h and compile-c.h.
  4684. * compile/compile-c-support.c: Include compile-c.h.
  4685. * compile/compile-c-symbols.c: Include compile-c.h.
  4686. (generate_c_for_variable_locations): Update comment.
  4687. * compile/compile-c-types.c: Include compile-c.h.
  4688. * compile/compile-c.h: New file -- moved C language declarations
  4689. from other files here.
  4690. * compile/compile-internal.h: Do not include hashtab.h or
  4691. common/enum-flags.h.
  4692. (gcc_qualifiers_flags, struct compile_c_instance, C_CTX)
  4693. (gcc_convert_symbol, gcc_symbol_address)
  4694. (generate_c_for_variable_locations, c_get_mode_for_size)
  4695. (c_get_range_decl_name): Definitions moved to compile-c.h.
  4696. * compile/compile-loc2c.c: Include compile-c.h.
  4697. 2018-08-10 Keith Seitz <keiths@redhat.com>
  4698. * compile/compile-c-symbols.c (symbol_substitution_name): Rename to ...
  4699. (c_symbol_substitution_name): ... this.
  4700. Update all callers.
  4701. 2018-08-10 Keith Seitz <keiths@redhat.com>
  4702. * compile/compile-c-support.c (c_compute_program): Use
  4703. unique_xmalloc_ptr to eliminate cleanup.
  4704. * compile/compile-c-symbols.c (generate_c_for_variable_locations):
  4705. Return a unique_xmalloc_ptr and eliminate cleanup.
  4706. * compile/compile-internal.h (generate_c_for_variable_locations):
  4707. Return unique_xmalloc_ptr and update description.
  4708. 2018-08-10 Alan Hayward <alan.hayward@arm.com>
  4709. * corelow.c (core_target::get_core_register_section): Rename
  4710. min_size to section_min_size.
  4711. 2018-08-09 Jim Wilson <jimw@sifive.com>
  4712. * Makefile.in (ALL_TARGET_OBS): Add riscv-linux-tdep.c.
  4713. (ALLDEPFILES): Add riscv-linux-nat.c, and riscv-linux-tdep.c.
  4714. * NEWS: Mention new GNU/Linux RISC-V target.
  4715. * configure.host: Add riscv*-*-linux*.
  4716. * configure.nat: Add riscv*.
  4717. * configure.tgt: Add riscv*-*-linux*.
  4718. * riscv-linux-nat.c: New file.
  4719. * riscv-linux-tdep.c: New file.
  4720. 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
  4721. * infrun.c (resume): Make static, add forward declaration.
  4722. (proceed): Update header comment.
  4723. * infrun.h (resume): Delete declaration.
  4724. 2018-08-09 Tom Tromey <tom@tromey.com>
  4725. * riscv-tdep.h: Minor formatting fixes.
  4726. 2018-08-09 Simon Marchi <simon.marchi@ericsson.com>
  4727. * common/scoped_mmap.c (mmap_file): Silence ARI warning.
  4728. * dwarf-index-cache.c (create_dir_and_check): Likewise.
  4729. (test_mkdir_recursive): Likewise.
  4730. * dwarf-index-write.c (write_psymtabs_to_index): Likewise.
  4731. 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
  4732. * valarith.c (value_subscripted_rvalue): If an array is not in
  4733. memory, and we don't know the upper bound, then we can't know that
  4734. the requested element exists or not.
  4735. 2018-08-08 Simon Marchi <simon.marchi@ericsson.com>
  4736. * target.c (str_comma_list_concat_elem): Fix typo in comment.
  4737. (target_options_to_string): Add comment.
  4738. 2018-08-08 Tom Tromey <tom@tromey.com>
  4739. * unittests/scoped_mmap-selftests.c: Check result of "write".
  4740. 2018-08-08 Jim Wilson <jimw@sifive.com>
  4741. * riscv-tdep.c (enum opcode): Add jump, branch, lr, and sc opcodes.
  4742. (decode_register_index_short): New.
  4743. (decode_j_type_insn, decode_cj_type_insn): New.
  4744. (decode_b_type_insn, decode_cb_type_insn): New.
  4745. (riscv_insn::decode): Add support for jumps, branches, lr, and sc. New
  4746. local xlen. Check xlen when decoding ambiguous compressed insns. In
  4747. compressed decode, use is_c_lui_insn instead of is_lui_insn, and
  4748. is_c_sw_insn instead of is_sw_insn.
  4749. (riscv_next_pc, riscv_next_pc_atomic_sequence): New.
  4750. (riscv_software_single_step): New.
  4751. * riscv-tdep.h (riscv_software_single_step): Declare.
  4752. * riscv-tdep.c (riscv_isa_xlen): Drop static.
  4753. * riscv-tdep.h (riscv_isa_xlen): Add extern declaration.
  4754. 2018-08-08 Andrew Burgess <andrew.burgess@embecosm.com>
  4755. PR gdb/18050:
  4756. * target.c (dispose_inferior): Don't dispose of inferiors that are
  4757. already killed.
  4758. 2018-08-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
  4759. * remote.c (remote_target::download_tracepoint): Change char* to
  4760. const char*.
  4761. 2018-08-07 Simon Marchi <simon.marchi@polymtl.ca>
  4762. * target.h (target_options_to_string): Return an std::string.
  4763. * target.c (str_comma_list_concat_elem): Return void, use
  4764. std::string.
  4765. (do_option): Likewise.
  4766. (target_options_to_string): Return an std::string.
  4767. * linux-nat.c (linux_nat_target::wait): Adjust.
  4768. * target-debug.h (target_debug_print_options): Adjust.
  4769. 2018-08-07 Tom Tromey <tom@tromey.com>
  4770. * Makefile.in (CPPFLAGS): New variable.
  4771. (INTERNAL_CPPFLAGS): Use it.
  4772. 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
  4773. * NEWS: Mention the index cache.
  4774. 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
  4775. * common/pathstuff.h (get_standard_cache_dir): New.
  4776. * common/pathstuff.c (get_standard_cache_dir): New.
  4777. * build-id.h (build_id_to_string): New.
  4778. * dwarf-index-common.h (INDEX4_SUFFIX, INDEX5_SUFFIX,
  4779. DEBUG_STR_SUFFIX): Move to here.
  4780. * dwarf-index-write.c (INDEX4_SUFFIX, INDEX5_SUFFIX,
  4781. DEBUG_STR_SUFFIX): Move from there.
  4782. (write_psymtabs_to_index): Make non-static, add basename
  4783. parameter. Write to temporary files, rename when done.
  4784. (save_gdb_index_command): Adjust call to
  4785. write_psymtabs_to_index.
  4786. * dwarf2read.h (dwarf2_per_objfile) <index_cache_res>: New
  4787. field.
  4788. * dwarf2read.c (dwz_file) <index_cache_res>: New field.
  4789. (get_gdb_index_contents_from_cache): New.
  4790. (get_gdb_index_contents_from_cache_dwz): New.
  4791. (dwarf2_initialize_objfile): Read index from cache.
  4792. (dwarf2_build_psymtabs): Save to index.
  4793. * dwarf-index-cache.h: New file.
  4794. * dwarf-index-cache.c: New file.
  4795. * dwarf-index-write.h: New file.
  4796. 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
  4797. * gnulib/aclocal.m4: Re-generate.
  4798. * gnulib/config.in: Re-generate.
  4799. * gnulib/configure: Re-generate.
  4800. * gnulib/import/Makefile.am: Re-generate.
  4801. * gnulib/import/Makefile.in: Re-generate.
  4802. * gnulib/import/m4/gnulib-cache.m4: Re-generate.
  4803. * gnulib/import/m4/gnulib-comp.m4: Re-generate.
  4804. * gnulib/import/m4/mkdir.m4: New file.
  4805. * gnulib/import/mkdir.c: New file.
  4806. * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkdir
  4807. module.
  4808. 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
  4809. * Makefile.in (COMMON_SFILES): Add common/scoped_mmap.c.
  4810. * common/scoped_mmap.c: New file.
  4811. * common/scoped_mmap.h (destroy): New method.
  4812. (~scoped_mmap, reset): Use destroy.
  4813. (scoped_mmap): New move constructor.
  4814. (mmap_file): New declaration.
  4815. * unittests/scoped_mmap-selftests.c (test_normal,
  4816. test_invalid_filename, run_tests): New functions.
  4817. (_initialize_scoped_mmap_selftests): Register selftest.
  4818. 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
  4819. * dwarf2read.c (read_gdb_index_from_section): Rename to...
  4820. (read_gdb_index_from_buffer): ... this. Remove section
  4821. parameter, add buffer parameter.
  4822. (get_gdb_index_contents_ftype,
  4823. get_gdb_index_contents_dwz_ftype): New typedefs.
  4824. (dwarf2_read_gdb_index): Add callback parameters to get the
  4825. index contents.
  4826. (get_gdb_index_contents_from_section): New.
  4827. (dwarf2_initialize_objfile): Update call to
  4828. dwarf2_read_gdb_index.
  4829. 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
  4830. * common/filestuff.h (gdb_fopen_cloexec): New overload.
  4831. (gdb_open_cloexec): Likewise.
  4832. * nat/linux-osdata.c (command_from_pid): Use string_printf.
  4833. (commandline_from_pid): Likewise.
  4834. (linux_xfer_osdata_threads): Likewise.
  4835. (linux_xfer_osdata_fds): Likewise.
  4836. * ada-lang.c (is_package_name): Likewise.
  4837. * auxv.c (procfs_xfer_auxv): Likewise.
  4838. * breakpoint.c (print_one_breakpoint_location): Use
  4839. uiout::field_fmt.
  4840. (print_one_catch_solib): Use string_printf.
  4841. * coff-pe-read.c (add_pe_exported_sym): Likewise.
  4842. (add_pe_forwarded_sym): Likewise.
  4843. * dwarf2read.c (create_type_unit_group): Likewise.
  4844. (build_error_marker_type): Likewise.
  4845. * infcall.c (get_function_name): Likewise.
  4846. * valprint.c (print_converted_chars_to_obstack): Likewise.
  4847. * xtensa-tdep.c (xtensa_register_type): Likewise.
  4848. 2018-08-06 Simon Marchi <simon.marchi@ericsson.com>
  4849. * remote.c (remote_target::download_tracepoint): Fix format
  4850. string errors.
  4851. 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
  4852. * tracefile.c: Include common/byte-vector.h.
  4853. (trace_save): Change type of buf to gdb::byte_vector. Initialize
  4854. with trace_regblock_size if needed. Update uses of buf.
  4855. 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
  4856. * tracepoint.h (collection_list) <m_regs_mask>: Change type to
  4857. std::vector<unsigned char>.
  4858. * tracepoint.c (collection_list::collection_list): Remove
  4859. m_regs_mask initializer from initializer list. Resize
  4860. m_regs_mask using the largest remote register number.
  4861. (collection_list::add_remote_register): Remove size check on
  4862. m_regs_mask. Use at to access element.
  4863. (collection_list::stringify): Change type of temp_buf to
  4864. gdb::char_vector. Update uses of temp_buf. Resize if needed to
  4865. stringify the register mask. Use pack_hex_byte for the register
  4866. mask.
  4867. 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
  4868. * tracepoint.h (class collection_list) <add_register>: Remove.
  4869. <add_remote_register, add_ax_registers, add_local_register>:
  4870. Declare.
  4871. <add_memrange>: Add scope parameter.
  4872. * tracepoint.c (encode_actions_1): Likewise.
  4873. (collection_list::add_register): Rename to ...
  4874. (collection_list::add_remote_register): ... this. Update
  4875. comment.
  4876. (collection_list::add_ax_registers, add_local_register): New
  4877. methods.
  4878. (collection_list::add_memrange): Add scope parameter. Call
  4879. add_local_register instead of add_register.
  4880. (finalize_tracepoint_aexpr): New function.
  4881. (collection_list::collect_symbol): Update calls to add_memrange.
  4882. Call add_local_register instead of add_register. Call
  4883. add_ax_registers. Call finalize_tracepoint_aexpr.
  4884. (encode_actions_1): Get remote regnos for $reg action. Call
  4885. add_remote_register, add_ax_registers, and add_local_register.
  4886. Update call to add_memrange. Call finalize_tracepoint_aexpr.
  4887. (validate_actionline): Call finalize_tracepoint_aexpr.
  4888. 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
  4889. * remote.c (remote_target::download_tracepoint): Remove BUF_SIZE.
  4890. Replace array buf with gdb::char_vector buf, of size
  4891. get_remote_packet_size (). Replace references to buf and
  4892. BUF_SIZE to buf.data () and buf.size (). Replace strcpy, strcat
  4893. and xsnprintf with snprintf. Raise errors if the buffer is too
  4894. small.
  4895. 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
  4896. * remote.c (remote_target::download_tracepoint): Fix the has_more
  4897. predicate in the QTDP action list iteration.
  4898. 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
  4899. * remote.c (remote_target::download_tracepoint): Fix indentation
  4900. in for block.
  4901. 2018-08-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
  4902. * proc-api.c (_initialize_proc_api): Remove c, unused.
  4903. * procfs.c (procfs_init_inferior): Remove signals, unused.
  4904. (procfs_target::make_corefile_notes): Remove old_chain, fpregs,
  4905. unused.
  4906. 2018-08-06 Sergey Korolev <s.korolev@ndmsystems.com>
  4907. Andrew Burgess <andrew.burgess@embecosm.com>
  4908. * linux-nat.c (linux_nat_target::follow_fork): Avoid using
  4909. 'W_STOPCODE (0)' as this could be ambiguous.
  4910. 2018-08-03 Sergio Durigan Junior <sergiodj@redhat.com>
  4911. * ser-tcp.c (net_open): Fix thinko when deciding whether to
  4912. disable TCP's Nagle algorithm (use "ai_protocol" instead of
  4913. "ai_socktype").
  4914. 2018-08-02 Tom Tromey <tom@tromey.com>
  4915. PR symtab/16842.
  4916. * dwarf2read.c (read_func_scope): Set symtab on template parameter
  4917. symbols.
  4918. (process_structure_scope): Likewise.
  4919. 2018-08-02 Xavier Roirand <roirand@adacore.com>
  4920. PR gdb/22629:
  4921. * darwin-nat.c (darwin_kill_inferior): Fix handling of
  4922. kill inferior.
  4923. 2018-08-02 Tom Tromey <tom@tromey.com>
  4924. * darwin-nat.c (find_inferior_task_it, darwin_find_thread)
  4925. (darwin_suspend_inferior, darwin_resume_inferior)
  4926. (darwin_decode_notify_message, darwin_resume_inferior_threads)
  4927. (darwin_check_new_threads): Check result of get_darwin_inferior.
  4928. 2018-07-31 Joel Brobecker <brobecker@adacore.com>
  4929. GDB 8.1.1 released.
  4930. 2018-07-31 Jan Vrany <jan.vrany@fit.cvut.cz>
  4931. * varobj.c (varobj_get_path_expr_parent): Report an error if
  4932. parent is a dynamic varobj.
  4933. 2018-07-31 Simon Marchi <simon.marchi@ericsson.com>
  4934. * gnulib/aclocal.m4: Re-generate.
  4935. * gnulib/config.in: Re-generate.
  4936. * gnulib/configure: Re-generate.
  4937. * gnulib/import/Makefile.in: Re-generate.
  4938. * gnulib/import/m4/gnulib-comp.m4: Re-generate.
  4939. * gnulib/import/m4/onceonly.m4: Re-generate.
  4940. 2018-07-31 Simon Marchi <simon.marchi@ericsson.com>
  4941. * target-descriptions.c (struct xml_test_tdesc): New.
  4942. (xml_tdesc): Change type to std::vector<xml_test_tdesc>.
  4943. (record_xml_tdesc): Update.
  4944. (maintenance_check_xml_descriptions): Update.
  4945. * target-descriptions.h (record_xml_tdesc): Update comment.
  4946. 2018-07-30 Andrew Burgess <andrew.burgess@embecosm.com>
  4947. * eval.c (evaluate_subexp_for_sizeof): Check for array type before
  4948. checking array bounds are defined.
  4949. 2018-07-30 Tom Tromey <tom@tromey.com>
  4950. * nat/linux-osdata.c (pid_pgid_entry::operator<): Fix
  4951. irreflexivity violation.
  4952. 2018-07-30 Tom Tromey <tom@tromey.com>
  4953. * cli/cli-decode.c (lookup_cmd): Remove lint code.
  4954. * value.c (unpack_long): Remove lint code.
  4955. * valops.c (value_ind): Remove lint code.
  4956. * valarith.c (value_x_binop, value_x_unop, value_equal)
  4957. (value_pos): Remove lint code.
  4958. 2018-07-28 Tom de Vries <tdevries@suse.de>
  4959. * eval.c (evaluate_subexp_for_sizeof): Interpret size of dynamic type
  4960. with undefined upper bound as <optimized out>.
  4961. 2018-07-27 Sergio Durigan Junior <sergiodj@redhat.com>
  4962. * gcore.in: Rename variable "name" to "prefix". Expand
  4963. "usage" text.
  4964. 2018-07-14 Jon Turney <jon.turney@dronecode.org.uk>
  4965. * windows-nat.c (windows_nat_target::create_inferior): Update to
  4966. call close() in global namespace.
  4967. 2018-07-26 Tom Tromey <tom@tromey.com>
  4968. * dwarf-index-write.c (add_address_entry): Don't add objfile
  4969. offsets.
  4970. * dbxread.c (find_stab_function): Rename from
  4971. find_stab_function_addr. Return a bound_minimal_symbol.
  4972. (read_dbx_symtab): Use raw_text_low, raw_text_high.
  4973. Don't add objfile offsets.
  4974. (end_psymtab): Use raw_text_low, raw_text_high,
  4975. MSYMBOL_VALUE_RAW_ADDRESS.
  4976. (read_ofile_symtab): Update.
  4977. (process_one_symbol): Update.
  4978. * dwarf2read.c (create_addrmap_from_index): Don't add objfile
  4979. offsets.
  4980. (dw2_relocate): Remove.
  4981. (dw2_find_pc_sect_symtab): Bias PC by the text offset before
  4982. searching addrmap.
  4983. (dwarf2_gdb_index_functions, dwarf2_debug_names_functions):
  4984. Update.
  4985. (process_psymtab_comp_unit_reader, add_partial_symbol)
  4986. (add_partial_subprogram, dwarf2_ranges_read): Update.
  4987. (load_partial_dies): Update.
  4988. (add_address_entry): Don't add objfile offsets.
  4989. (dwarf2_build_include_psymtabs): Update.
  4990. (create_addrmap_from_aranges): Don't add objfile offsets.
  4991. (dw2_find_pc_sect_compunit_symtab): Update.
  4992. * mdebugread.c (parse_symbol): Don't add objfile offsets.
  4993. (parse_lines): Remove 'pst' parameter, replace with 'textlow'.
  4994. Update.
  4995. (parse_partial_symbols): Don't add objfile offsets. Use
  4996. raw_text_low, raw_text_high. Update.
  4997. (handle_psymbol_enumerators, psymtab_to_symtab_1): Update.
  4998. * objfiles.c (objfile_relocate1): Don't relocate psymtabs_addrmap
  4999. or call 'relocate' quick function. Clear psymbol_map.
  5000. * psympriv.h (struct partial_symbol) <address>: Add section
  5001. offset.
  5002. <set_unrelocated_address>: Rename from set_address.
  5003. <raw_text_low, raw_text_high>: New methods.
  5004. <text_low, text_high>: Add objfile parameter.
  5005. (add_psymbol_to_bcache): Add 'section' parameter. Call
  5006. set_unrelocated_address.
  5007. * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
  5008. (find_pc_psymbol): Update.
  5009. (fixup_psymbol_section, relocate_psymtabs): Remove.
  5010. (dump_psymtab, psym_functions): Update.
  5011. (add_psymbol_to_bcache, add_psymbol_to_list): Add 'section'
  5012. parameter.
  5013. (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
  5014. (start_psymtab_common): Update.
  5015. * symfile-debug.c (debug_qf_relocate): Remove.
  5016. (debug_sym_quick_functions): Update.
  5017. * symfile.h (struct quick_symbol_functions) <relocate>: Remove.
  5018. * xcoffread.c (scan_xcoff_symtab): Don't add objfile offsets.
  5019. Update.
  5020. 2018-07-26 Tom Tromey <tromey@redhat.com>
  5021. * dbxread.c (end_psymtab): Use text_high_valid and
  5022. text_low_valid.
  5023. * mdebugread.c (parse_partial_symbols): Use text_low_valid.
  5024. (psymtab_to_symtab_1): Use text_high_valid and text_low_valid.
  5025. * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
  5026. Update comment.
  5027. <text_low_valid, text_high_valid>: New fields.
  5028. <set_text_low, set_text_high>: Update.
  5029. * xcoffread.c (scan_xcoff_symtab): Use text_low_valid.
  5030. 2018-07-26 Tom Tromey <tom@tromey.com>
  5031. * dbxread.c (read_dbx_symtab, end_psymtab, read_ofile_symtab):
  5032. Update.
  5033. * dwarf2read.c (dwarf2_create_include_psymtab): Don't initialize
  5034. textlow and texthigh fields.
  5035. (process_psymtab_comp_unit_reader, dwarf2_build_include_psymtabs):
  5036. Update.
  5037. * mdebugread.c (parse_lines, parse_partial_symbols)
  5038. (psymtab_to_symtab_1): Update.
  5039. * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
  5040. Rename fields. Update comment. Now private.
  5041. <text_low, text_high, set_text_low, set_text_high>: New methods.
  5042. * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
  5043. (find_pc_sect_psymbol, relocate_psymtabs, dump_psymtab)
  5044. (start_psymtab_common, maintenance_info_psymtabs)
  5045. (maintenance_check_psymtabs): Update.
  5046. * xcoffread.c (xcoff_end_psymtab): Don't initialize textlow and
  5047. texthigh fields.
  5048. (scan_xcoff_symtab): Update.
  5049. 2018-07-26 Tom Tromey <tromey@redhat.com>
  5050. * psympriv.h (struct partial_symbol) <unrelocated_address,
  5051. address, set_address>: New methods.
  5052. * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymbol)
  5053. (fixup_psymbol_section, relocate_psymtabs): Update.
  5054. (print_partial_symbols): Add 'objfile' parameter. Update.
  5055. (dump_psymtab, add_psymbol_to_bcache, psym_fill_psymbol_map):
  5056. Update.
  5057. 2018-07-26 Tom Tromey <tom@tromey.com>
  5058. * dwarf-index-write.c (write_psymbols, debug_names::insert)
  5059. (debug_names::write_psymbols): Update.
  5060. * psympriv.h (struct partial_symbol): Derive from
  5061. general_symbol_info.
  5062. <obj_section>: New method.
  5063. (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.n
  5064. * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
  5065. (find_pc_sect_psymbol, fixup_psymbol_section)
  5066. (match_partial_symbol, lookup_partial_symbol, relocate_psymtabs)
  5067. (print_partial_symbols, recursively_search_psymtabs)
  5068. (compare_psymbols, psymbol_hash, psymbol_compare)
  5069. (add_psymbol_to_bcache, maintenance_check_psymtabs)
  5070. (psymbol_name_matches, psym_fill_psymbol_map): Update.
  5071. 2018-07-26 Tom Tromey <tromey@redhat.com>
  5072. * dbxread.c (end_psymtab): Remove dead code.
  5073. 2018-07-26 Andrew Burgess <andrew.burgess@embecosm.com>
  5074. * dwarf2-frame-tailcall.c (tailcall_frame_sniffer): Exit early if
  5075. DWARF unwinders are disabled.
  5076. * dwarf2-frame.c: Add dwarf2read.h include.
  5077. (dwarf2_frame_sniffer): Exit early if DWARF unwinders are
  5078. disabled.
  5079. (dwarf2_frame_unwinders_enabled_p): Define.
  5080. (show_dwarf_unwinders_enabled_p): New function.
  5081. (_initialize_dwarf2_frame): Register switch to control DWARF
  5082. unwinder use.
  5083. * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Declare.
  5084. * dwarf2read.c (set_dwarf_cmdlist): Remove static keyword.
  5085. (show_dwarf_cmdlist): Remove static keyword.
  5086. * dwarf2read.h (set_dwarf_cmdlist): Declare.
  5087. (show_dwarf_cmdlist): Declare.
  5088. * NEWS: Document new feature.
  5089. 2018-07-26 Tom de Vries <tdevries@suse.de>
  5090. PR breakpoints/23366
  5091. * infcmd.c (info_program_command): Handle ptid == minus_one_ptid.
  5092. 2018-07-26 Tom de Vries <tdevries@suse.de>
  5093. * dwarf2read.c (read_subrange_type): Warn if DW_AT_upper_bound or
  5094. DW_AT_count can't be translated to a dynamic prop.
  5095. 2018-07-25 Tom de Vries <tdevries@suse.de>
  5096. * dwarf2loc.c (dwarf2_locexpr_baton_eval): Wrap ctx.eval call in
  5097. try/catch.
  5098. 2018-07-25 Jan Vrany <jan.vrany@fit.cvut.cz>
  5099. * breakpoint.c (enable_disable_bp_num_loc): Notify observers.
  5100. 2018-07-25 Joel Brobecker <brobecker@adacore.com>
  5101. * MAINTAINERS (Global Maintainers): Add Tom Tromey.
  5102. 2018-07-24 Keith Seitz <keiths@redhat.comt
  5103. PR symtab/23010
  5104. * dwarf2read.c (dw2_add_symbol_to_list): New function.
  5105. (fixup_go_packaging, new_symbol): Use dw2_add_symbol_to_list
  5106. instead of add_symbol_to_list.
  5107. (read_file_scope): Call prepare_one_comp_unit before reading
  5108. any other DIEs.
  5109. 2018-07-24 Simon Marchi <simon.marchi@ericsson.com>
  5110. * common/scoped_mmap.h (class scoped_mmap): Fix indentation.
  5111. 2018-07-24 Tom Tromey <tom@tromey.com>
  5112. * utils.c (malloc, realloc, free): Don't declare.
  5113. * configure, config.in: Rebuild.
  5114. * configure.ac: Don't check for declarations of free, malloc, or
  5115. realloc.
  5116. 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
  5117. * aarch64-linux-nat.c
  5118. (aarch64_linux_nat_target::stopped_data_address): Remove unused
  5119. variable.
  5120. * arm-linux-nat.c (fetch_regs): Likewise.
  5121. (store_regs): Likewise.
  5122. (fetch_vfp_regs): Likewise.
  5123. (store_vfp_regs): Likewise.
  5124. (arm_linux_nat_target::insert_hw_breakpoint): Likewise.
  5125. (arm_linux_nat_target::remove_hw_breakpoint): Likewise.
  5126. (arm_linux_nat_target::insert_watchpoint): Likewise.
  5127. (arm_linux_nat_target::remove_watchpoint): Likewise.
  5128. * mips-linux-nat.c (mips_linux_nat_target::insert_watchpoint):
  5129. Likewise.
  5130. * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs):
  5131. Likewise.
  5132. * ppc-linux-nat.c (fetch_register): Likewise.
  5133. (fetch_all_gp_regs): Likewise.
  5134. (fetch_ppc_registers): Likewise.
  5135. (store_all_gp_regs): Likewise.
  5136. (store_ppc_registers): Likewise.
  5137. (hwdebug_insert_point): Likewise.
  5138. (can_use_watchpoint_cond_accel): Likewise.
  5139. * remote-sim.c (gdb_os_write_stdout): Likewise.
  5140. 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
  5141. Tom Tromey <tom@tromey.com>
  5142. * warning.m4 (AM_GDB_WARNINGS): Add -Wunused-variable and special
  5143. test for it.
  5144. * configure: Rebuild.
  5145. 2018-07-22 Tom Tromey <tom@tromey.com>
  5146. * regformats/regdat.sh: Define xmltarget_${name} inside
  5147. #ifndef IN_PROCESS_AGENT.
  5148. 2018-07-22 Tom Tromey <tom@tromey.com>
  5149. * value.c (value_fetch_lazy_bitfield): Remove unused variable.
  5150. 2018-07-22 Tom Tromey <tom@tromey.com>
  5151. * symfile.c (reread_symbols): Notify iter, not objfile.
  5152. 2018-07-22 Tom Tromey <tom@tromey.com>
  5153. * ravenscar-thread.c (ravenscar_thread_target::store_registers):
  5154. Use arch_ops.
  5155. (ravenscar_thread_target::prepare_to_store): Likewise.
  5156. 2018-07-22 Tom Tromey <tom@tromey.com>
  5157. * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Remove
  5158. unused variable. Call value_fetch_lazy when needed.
  5159. * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
  5160. Remove unused variable. Call value_fetch_lazy when needed.
  5161. 2018-07-22 Tom Tromey <tom@tromey.com>
  5162. * m32c-tdep.c (mark_dma): Return void.
  5163. (make_regs): Remove unused declarations.
  5164. 2018-07-22 Tom Tromey <tom@tromey.com>
  5165. * guile/scm-cmd.c (gdbscm_dont_repeat): Call
  5166. cmdscm_get_valid_command_smob_arg_unsafe for effect.
  5167. * guile/scm-block.c (gdbscm_make_block_syms_iter): Call
  5168. bkscm_get_valid_block_smob_arg_unsafe for effect.
  5169. 2018-07-22 Tom Tromey <tom@tromey.com>
  5170. * bfin-tdep.c (bfin_push_dummy_call): Use arg_type, not
  5171. value_type.
  5172. 2018-07-22 Tom Tromey <tom@tromey.com>
  5173. * windows-nat.c (saved_context): Conditionally define.
  5174. * remote.c (remote_target::remote_btrace_maybe_reopen):
  5175. Conditionally declare "warned".
  5176. * inflow.c (sigquit_ours): Conditionally define.
  5177. (new_tty): Move "tty" declaration inside #if.
  5178. * guile/guile.c (guile_datadir): Conditionally define.
  5179. * charset.c (set_be_le_names): Move some declarations inside #if.
  5180. * btrace.c (parse_xml_btrace): Move "errcode" declaration inside
  5181. #if.
  5182. (parse_xml_btrace_conf): Likewise.
  5183. 2018-07-22 Tom Tromey <tom@tromey.com>
  5184. * spu-tdep.c (spu_get_overlay_table): Remove unused variable.
  5185. 2018-07-22 Tom Tromey <tom@tromey.com>
  5186. * guile/scm-value.c (gdbscm_value_call): Remove unused variables.
  5187. * guile/scm-math.c (vlscm_unop_gdbthrow, vlscm_binop_gdbthrow)
  5188. (vlscm_convert_typed_value_from_scheme): Remove unused variable.
  5189. * buildsym-legacy.c (get_macro_table): Remove unused variable.
  5190. * stack.c (frame_apply_level_command): Remove unused variable.
  5191. * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused variable.
  5192. * sparc64-tdep.c (adi_examine_command): Remove unused variable.
  5193. * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Remove
  5194. unused variable.
  5195. * nios2-tdep.c (nios2_push_dummy_call): Remove unused variable.
  5196. * mep-tdep.c (mep_push_dummy_call): Remove unused variable.
  5197. * ada-lang.c (ada_lookup_symbol_list_worker): Remove unused
  5198. variable.
  5199. * amd64-tdep.c (amd64_supply_xsave): Remove unused variable.
  5200. * arm-tdep.c (arm_record_data_proc_misc_ld_str): Remove unused
  5201. variable.
  5202. * breakpoint.c (check_no_tracepoint_commands, update_watchpoint):
  5203. Remove unused variable.
  5204. * cli/cli-script.c (recurse_read_control_structure): Remove unused
  5205. variable.
  5206. * common/tdesc.c (print_xml_feature::visit): Remove unused
  5207. variable.
  5208. * compile/compile-object-load.c (store_regs): Remove unused
  5209. variables.
  5210. * complaints.c (clear_complaints): Remove unused variable.
  5211. * corelow.c (core_target_open): Remove unused variable.
  5212. * fbsd-tdep.c (fbsd_core_info_proc_status): Remove unused
  5213. variable.
  5214. * guile/scm-frame.c (gdbscm_frame_read_var): Remove unused
  5215. variable.
  5216. * guile/scm-symtab.c (stscm_print_sal_smob): Remove unused
  5217. variable.
  5218. * guile/scm-type.c (gdbscm_field_baseclass_p): Remove unused
  5219. variable.
  5220. * guile/scm-utils.c (gdbscm_parse_function_args): Remove unused
  5221. variable.
  5222. * hppa-tdep.c (hppa_stub_frame_unwind_cache): Remove unused
  5223. variable.
  5224. * ia64-tdep.c (examine_prologue): Remove unused variable.
  5225. * infcall.c (run_inferior_call): Remove unused variable.
  5226. * inferior.c (exit_inferior): Remove unused variable.
  5227. * infrun.c (infrun_thread_ptid_changed): Remove unused variable.
  5228. * linespec.c (decode_line_2): Remove unused variable.
  5229. * linux-nat.c (super_close): Remove.
  5230. * linux-tdep.c (linux_info_proc): Remove unused variable.
  5231. * mi/mi-main.c (mi_execute_command): Remove unused variable.
  5232. * microblaze-linux-tdep.c (microblaze_linux_sigtramp_cache):
  5233. Remove unused variable.
  5234. * parse.c (find_minsym_type_and_address): Remove unused variable.
  5235. * printcmd.c (info_symbol_command, printf_floating): Remove unused
  5236. variable.
  5237. * python/py-breakpoint.c (bppy_set_commands): Remove unused
  5238. variable.
  5239. * python/py-unwind.c (unwind_infopy_dealloc): Remove unused
  5240. variables.
  5241. * record-btrace.c (record_btrace_target::store_registers): Remove
  5242. unused variable.
  5243. (cmd_show_record_btrace_cpu): Remove unused variable.
  5244. * riscv-tdep.c (riscv_register_reggroup_p)
  5245. (riscv_push_dummy_call, riscv_return_value): Remove unused
  5246. variable.
  5247. * rust-exp.y (literal): Remove unused variable.
  5248. * rust-lang.c (rust_evaluate_subexp) <OP_RUST_ARARAY>: Remove
  5249. unused variable.
  5250. <STRUCTOP_ANONYMOUS>: Likewise.
  5251. * s390-linux-tdep.c (s390_linux_init_abi_31)
  5252. (s390_linux_init_abi_64): Remove unused variable.
  5253. * ser-ming2.c (ser_windows_read_prim, pipe_select_thread)
  5254. (file_select_thread, net_windows_open, _initialize_ser_windows):
  5255. Remove unused variables.
  5256. * symtab.c (find_pc_sect_line): Remove unused variable.
  5257. * target-memory.c (compute_garbled_blocks): Remove unused
  5258. variable.
  5259. (target_write_memory_blocks): Remove unused variable.
  5260. * target.c (target_stack::unpush): Remove unused variables.
  5261. * tracepoint.c (start_tracing, all_tracepoint_actions)
  5262. (merge_uploaded_trace_state_variables)
  5263. (print_one_static_tracepoint_marker): Remove unused variable.
  5264. * unittests/basic_string_view/element_access/char/1.cc (test01):
  5265. Remove unused variable.
  5266. * windows-nat.c (windows_continue, windows_add_all_dlls)
  5267. (do_initial_windows_stuff, windows_nat_target::create_inferior):
  5268. Remove unused variables.
  5269. 2018-07-21 Simon Marchi <simon.marchi@polymtl.ca>
  5270. * arm-tdep.c (arm_gdbarch_init): Declare attr_arch and
  5271. attr_profile in HAVE_ELF.
  5272. * rs6000-tdep.c (bfd_uses_spe_extensions): Declare vector_abi in
  5273. HAVE_ELF.
  5274. 2018-07-20 Simon Marchi <simon.marchi@polymtl.ca>
  5275. * frame.c (frame_register_unwind): Change parameter name.
  5276. (frame_unwind_register): Likewise.
  5277. (frame_unwind_register_value): Likewise.
  5278. (frame_unwind_register_signed): Likewise.
  5279. (frame_unwind_register_unsigned): Likewise.
  5280. * frame.h (frame_register_unwind): Likewise.
  5281. (frame_unwind_register): Likewise.
  5282. (frame_unwind_register_value): Likewise.
  5283. (frame_unwind_register_signed): Likewise.
  5284. (frame_unwind_register_unsigned): Likewise.
  5285. (frame_unwind_arch): Likewise.
  5286. 2018-07-20 Maciej W. Rozycki <macro@mips.com>
  5287. * MAINTAINERS: Update my e-mail address, downgrade to MIPS I-IV
  5288. ISA maintenance.
  5289. 2018-07-20 Maciej W. Rozycki <macro@mips.com>
  5290. * mips-linux-nat.c (mips_linux_nat_target::read_description):
  5291. Call `get_ptrace_pid' rather than extracting the ptrace PID by
  5292. hand.
  5293. 2018-07-20 Keith Seitz <keiths@redhat.com>
  5294. * buildsym.h (struct buildsym_compunit) <m_objfile, m_subfiles,
  5295. m_main_subfile, m_comp_dir, m_producer, m_debugformat,
  5296. m_compunit_symtab, m_language>: Add "m_" prefix.
  5297. Update all uses.
  5298. * buildsym.c: Update all uses.
  5299. 2018-07-20 Tom Tromey <tom@tromey.com>
  5300. * buildsym-legacy.h (record_line): Don't use record_line_ftype.
  5301. * buildsym.h (record_line_ftype): Remove typedef.
  5302. 2018-07-20 Tom Tromey <tom@tromey.com>
  5303. * buildsym-legacy.h (augment_type_symtab): Don't declare.
  5304. (end_expandable_symtab): Likewise.
  5305. (end_symtab_get_static_block): Likewise.
  5306. (end_symtab_from_static_block): Likewise.
  5307. * buildsym-legacy.c (augment_type_symtab): Remove.
  5308. (end_expandable_symtab): Remove.
  5309. (end_symtab_get_static_block): Remove.
  5310. (end_symtab_from_static_block): Remove.
  5311. 2018-07-20 Tom Tromey <tom@tromey.com>
  5312. * dwarf2read.c: Include buildsym.h.
  5313. (struct dwarf2_cu) <builder>: New method.
  5314. (fixup_go_packaging): Update.
  5315. (process_full_comp_unit, process_full_type_unit): Update. Don't
  5316. use scoped_free_pendings.
  5317. (using_directives): Add "cu" parameter, remove "language".
  5318. (read_import_statement, setup_type_unit_groups, )
  5319. (read_func_scope, read_lexical_block_scope)
  5320. (dwarf2_record_block_ranges, read_namespace): Update.
  5321. (lnp_state_machine::lnp_state_machine): Add cu parameter.
  5322. (lnp_state_machine::handle_end_sequence): Update.
  5323. (class lnp_state_machine) <m_cu>: New member.
  5324. <m_record_line_callback>: Remove.
  5325. <m_currently_recording_lines>: New member.
  5326. (lnp_state_machine::handle_set_file): Update.
  5327. (noop_record_line): Remove.
  5328. (dwarf_record_line_p): Add cu parameter.
  5329. (dwarf_record_line_1, dwarf_finish_line): Likewise.
  5330. (lnp_state_machine::record_line)
  5331. (lnp_state_machine::lnp_state_machine)
  5332. (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
  5333. (dwarf_decode_lines): Update.
  5334. (dwarf2_start_subfile): Add cu parameter.
  5335. (dwarf2_start_symtab, new_symbol): Update.
  5336. (macro_start_file, dwarf_decode_macro_bytes): Add cu parameter.
  5337. Remove dwarf2_per_objfile parameter.
  5338. (dwarf_decode_macros): Update.
  5339. 2018-07-20 Tom Tromey <tom@tromey.com>
  5340. * stabsread.c (define_symbol): Update.
  5341. * buildsym-legacy.h (get_buildsym_compunit): Declare.
  5342. * dwarf2read.c (new_symbol): Update.
  5343. * cp-support.h (cp_scan_for_anonymous_namespaces): Update.
  5344. * cp-namespace.c: Include buildsym.h.
  5345. (cp_scan_for_anonymous_namespaces): Add "compunit" parameter.
  5346. * buildsym-legacy.c (get_buildsym_compunit): New function.
  5347. 2018-07-20 Tom Tromey <tom@tromey.com>
  5348. * xcoffread.c: Include buildsym-legacy.h.
  5349. * windows-nat.c: Include buildsym-legacy.h.
  5350. * stabsread.c: Include buildsym-legacy.h.
  5351. * mdebugread.c: Include buildsym-legacy.h.
  5352. * buildsym-legacy.h: New file.
  5353. * buildsym-legacy.c: New file, from buildsym.c.
  5354. * go32-nat.c: Include buildsym-legacy.h.
  5355. * dwarf2read.c: Include buildsym-legacy.h.
  5356. * dbxread.c: Include buildsym-legacy.h.
  5357. * cp-namespace.c: Include buildsym-legacy.h.
  5358. * coffread.c: Include buildsym-legacy.h.
  5359. * buildsym.h: Move some contents to buildsym-legacy.h.
  5360. * buildsym.c: Include buildsym-legacy.h. Move many functions to
  5361. buildsym-legacy.c.
  5362. * Makefile.in (HFILES_NO_SRCDIR): Add buildsym-legacy.h.
  5363. 2018-07-20 Tom Tromey <tom@tromey.com>
  5364. * buildsym.h (struct buildsym_compunit): Move from buildsym.c.
  5365. * buildsym.c (struct buildsym_compunit): Move to buildsym.h.
  5366. (buildsym_compunit::buildsym_compunit)
  5367. (buildsym_compunit::~buildsym_compunit)
  5368. (buildsym_compunit::get_macro_table): Define.
  5369. 2018-07-20 Tom Tromey <tom@tromey.com>
  5370. * buildsym.c (reset_symtab_globals): Remove.
  5371. (buildsym_compunit::end_symtab_from_static_block): Update.
  5372. (buildsym_compunit::augment_type_symtab): Update.
  5373. (end_symtab_from_static_block): Call free_buildsym_compunit.
  5374. (augment_type_symtab, end_symtab, end_expandable_symtab):
  5375. Likewise.
  5376. 2018-07-20 Tom Tromey <tom@tromey.com>
  5377. * arch-utils.c: Do not include buildsym.h.
  5378. * mipsread.c: Do not include buildsym.h.
  5379. * machoread.c: Do not include buildsym.h.
  5380. * elfread.c: Do not include buildsym.h.
  5381. 2018-07-20 Tom Tromey <tom@tromey.com>
  5382. * buildsym.c (buildsym_compunit::buildsym_compunit): Do more
  5383. initialization.
  5384. (buildsym_compunit): Add new constructor.
  5385. (struct buildsym_compunit) <get_last_source_file, finish_block,
  5386. record_block_range, start_subfile, patch_subfile_names,
  5387. push_subfile, pop_subfile, record_line, get_compunit_symtab,
  5388. set_last_source_start_addr, get_last_source_start_addr,
  5389. get_local_using_directives, set_local_using_directives,
  5390. get_global_using_directives, outermost_context_p,
  5391. get_current_context_stack, get_context_stack_depth,
  5392. get_current_subfile, get_local_symbols, get_file_symbols,
  5393. get_global_symbols, record_debugformat, record_producer,
  5394. push_context, pop_context, end_symtab_get_static_block,
  5395. end_symtab_from_static_block, end_symtab, end_expandable_symtab>:
  5396. New public methods.
  5397. <record_pending_block, finish_block_internal, make_blockvector,
  5398. watch_main_source_file_lossage, end_symtab_with_blockvector>: New
  5399. private methods.
  5400. Update all users.
  5401. 2018-05-22 Tom Tromey <tom@tromey.com>
  5402. * buildsym.c (record_pending_block): Move earlier. Remove objfile
  5403. parameter.
  5404. (finish_block_internal): Update.
  5405. 2018-07-20 Tom Tromey <tom@tromey.com>
  5406. * buildsym.c (record_pending_block): Move earlier. Remove objfile
  5407. parameter.
  5408. (finish_block_internal): Update.
  5409. 2018-07-20 Tom Tromey <tom@tromey.com>
  5410. * buildsym.h (EXTERN): Don't define or undef.
  5411. * buildsym.c (EXTERN): Don't define.
  5412. 2018-07-20 Tom Tromey <tom@tromey.com>
  5413. * buildsym.c: Remove TODO comment.
  5414. 2018-07-20 Tom Tromey <tom@tromey.com>
  5415. * coffread.c (coff_symtab_read): Update.
  5416. * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
  5417. (xcoff_new_init): Update.
  5418. * mipsread.c (mipscoff_new_init): Update.
  5419. * mdebugread.c (mdebug_build_psymtabs): Update.
  5420. * elfread.c (elf_new_init): Update.
  5421. * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
  5422. Update.
  5423. * dbxread.c (dbx_new_init, dbx_psymtab_to_symtab_1)
  5424. (coffstab_build_psymtabs, elfstab_build_psymtabs)
  5425. (stabsect_build_psymtabs): Update.
  5426. * buildsym.h (buildsym_init): Don't declare.
  5427. * buildsym.c: Update comment.
  5428. (prepare_for_building): Remove.
  5429. (start_symtab, restart_symtab): Update.
  5430. (reset_symtab_globals): Update comment.
  5431. (buildsym_init): Remove.
  5432. 2018-07-20 Tom Tromey <tom@tromey.com>
  5433. * xcoffread.c (read_xcoff_symtab, process_xcoff_symbol): Update.
  5434. * stabsread.c (patch_block_stabs, define_symbol, read_type)
  5435. (read_enum_type, common_block_start, common_block_end)
  5436. (cleanup_undefined_types_1, finish_global_stabs): Update.
  5437. * mdebugread.c (psymtab_to_symtab_1): Update.
  5438. * dwarf2read.c (fixup_go_packaging, read_func_scope)
  5439. (read_lexical_block_scope, new_symbol): Update.
  5440. * dbxread.c (process_one_symbol): Update.
  5441. * coffread.c (coff_symtab_read, process_coff_symbol)
  5442. (coff_read_enum_type): Update.
  5443. * buildsym.h (file_symbols, global_symbols, local_symbols): Don't
  5444. declare.
  5445. (get_local_symbols, get_file_symbols, get_global_symbols): New
  5446. functions.
  5447. * buildsym.c (~buildsym_compunit): Clean up m_file_symbols and
  5448. m_global_symbols.
  5449. <m_file_symbols, m_local_symbols, m_global_symbols>: New members.
  5450. (~scoped_free_pendings): Update.
  5451. (finish_block, prepare_for_building, reset_symtab_globals)
  5452. (end_symtab_get_static_block, end_symtab_with_blockvector)
  5453. (augment_type_symtab, push_context): Update.
  5454. (get_local_symbols, get_file_symbols, get_global_symbols): New
  5455. functions.
  5456. (buildsym_init): Update.
  5457. 2018-07-20 Tom Tromey <tom@tromey.com>
  5458. * dwarf2read.c (process_full_comp_unit): Do not set list_in_scope.
  5459. (process_full_type_unit): Likewise.
  5460. (dwarf2_start_symtab): Set list_in_scope.
  5461. 2018-07-20 Tom Tromey <tom@tromey.com>
  5462. * dwarf2read.c (process_psymtab_comp_unit_reader)
  5463. (build_type_psymtabs_reader): Do not set list_in_scope.
  5464. 2018-07-20 Tom Tromey <tom@tromey.com>
  5465. * buildsym.c (free_pendings): Remove.
  5466. (add_symbol_to_list, scoped_free_pendings)
  5467. (finish_block_internal, buildsym_init): Update.
  5468. 2018-07-20 Tom Tromey <tom@tromey.com>
  5469. * xcoffread.c (read_xcoff_symtab): Update.
  5470. * dwarf2read.c (read_func_scope, read_lexical_block_scope):
  5471. Update.
  5472. * dbxread.c (process_one_symbol): Update.
  5473. * coffread.c (coff_symtab_read): Update.
  5474. * buildsym.h (finish_block): Update.
  5475. * buildsym.c (finish_block): Remove "listhead" argument.
  5476. (end_symtab_get_static_block): Update.
  5477. 2018-07-20 Tom Tromey <tom@tromey.com>
  5478. * buildsym.h (class scoped_free_pendings): Remove constructor.
  5479. * buildsym.c (struct buildsym_compunit) <free_pending_blocks>: New
  5480. method.
  5481. <m_pending_block_obstack, m_pending_blocks>: New members.
  5482. (pending_block_obstack, pending_blocks): Remove.
  5483. (scoped_free_pendings::scoped_free_pendings): Default.
  5484. (~scoped_free_pendings): Update.
  5485. (free_pending_blocks): Remove.
  5486. (finish_block_internal, record_pending_block, make_blockvector)
  5487. (end_symtab_get_static_block, augment_type_symtab, push_context)
  5488. (buildsym_init): Update.
  5489. 2018-07-20 Tom Tromey <tom@tromey.com>
  5490. * buildsym.c (struct buildsym_compunit) <m_pending_addrmap,
  5491. m_pending_addrmap_obstack, m_pending_addrmap_interesting>: New
  5492. members.
  5493. (pending_addrmap, pending_addrmap_obstack)
  5494. (pending_addrmap_interesting): Remove.
  5495. (scoped_free_pendings, record_block_range, make_blockvector)
  5496. (prepare_for_building, reset_symtab_globals, buildsym_init):
  5497. Update.
  5498. 2018-07-20 Tom Tromey <tom@tromey.com>
  5499. * xcoffread.c (process_linenos): Update.
  5500. * stabsread.c (define_symbol, read_type, read_enum_type): Update.
  5501. * mdebugread.c (psymtab_to_symtab_1): Update.
  5502. * dwarf2read.c (setup_type_unit_groups)
  5503. (lnp_state_machine::handle_set_file, dwarf_record_line_p)
  5504. (lnp_state_machine::record_line, dwarf_decode_lines): Update.
  5505. * dbxread.c (process_one_symbol): Update.
  5506. * coffread.c (coff_symtab_read, enter_linenos)
  5507. (process_coff_symbol): Update.
  5508. * buildsym.h (current_subfile): Don't declare.
  5509. (get_current_subfile): Declare.
  5510. * buildsym.c (struct buildsym_compunit) <m_current_subfile>: New
  5511. member.
  5512. (start_subfile, free_buildsym_compunit, push_subfile)
  5513. (prepare_for_building, start_symtab): Update.
  5514. (get_current_subfile): New function.
  5515. 2018-07-20 Tom Tromey <tom@tromey.com>
  5516. * coffread.c (coff_symtab_read): Update.
  5517. * xcoffread.c (read_xcoff_symtab): Update.
  5518. * dwarf2read.c (new_symbol): Update.
  5519. (read_func_scope, read_lexical_block_scope): Update.
  5520. * dbxread.c (process_one_symbol): Update.
  5521. * buildsym.h (context_stack, context_stack_depth): Don't declare.
  5522. (outermost_context_p): Remove macro.
  5523. (outermost_context_p, get_current_context_stack)
  5524. (get_context_stack_depth): Declare.
  5525. (pop_context): Return struct context_stack.
  5526. * buildsym.c (struct buildsym_compunit) <m_context_stack: New
  5527. member.
  5528. (context_stack_size): Remove.
  5529. (INITIAL_CONTEXT_STACK_SIZE): Remove.
  5530. (prepare_for_building, end_symtab_get_static_block)
  5531. (augment_type_symtab, push_context): Update.
  5532. (pop_context): Return struct context_stack.
  5533. (outermost_context_p, get_current_context_stack)
  5534. (get_context_stack_depth): New functions.
  5535. (buildsym_init): Update.
  5536. 2018-07-20 Tom Tromey <tom@tromey.com>
  5537. * rust-exp.y: Now a pure parser. Update all rules.
  5538. (%union): Move earlier.
  5539. (current_parser, work_obstack): Remove globals.
  5540. (rust_parser, ~rust_parser): Update.
  5541. (class rust_parser) <copy_name, concat3, crate_name, super_name,
  5542. lex_character, lex_number, lex_string, lex_identifier,
  5543. rust_lookup_type, convert_params_to_types, convert_ast_to_type,
  5544. convert_name, convert_params_to_expression,
  5545. convert_ast_to_expression, ast_basic_type, ast_operation,
  5546. ast_compound_assignment, rust_op, ast_literal, ast_dliteral,
  5547. ast_structop, ast_structop_anonymous, ast_unary, ast_cast,
  5548. ast_call_ish, ast_path, ast_string, ast_struct, ast_range,
  5549. ast_array_type, ast_slice_type, ast_reference_type,
  5550. ast_pointer_type, ast_function_type, ast_tuple_type>: New methods.
  5551. (rust_parse): Update.
  5552. (rustyyerror, rustyylex): Add parser parameter.
  5553. (rust_lex_test_one, rust_lex_int_test, rust_lex_exception_test)
  5554. (rust_lex_stringish_test, rust_lex_test_sequence)
  5555. (rust_lex_test_trailing_dot, rust_lex_test_completion)
  5556. (rust_lex_test_push_back, rust_lex_tests): Update.
  5557. 2018-07-19 Pedro Alves <palves@redhat.com>
  5558. * guile/guile-internal.h (gdbscm_scm_to_c_string): Now returns a
  5559. gdb::unique_xmalloc_ptr.
  5560. * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x):
  5561. Adjust to use dbscm_wrap and gdb::unique_xmalloc_ptr.
  5562. * guile/scm-exception.c (gdbscm_exception_message_to_string): Use
  5563. copy-initialization.
  5564. * guile/scm-pretty-print.c (ppscm_print_children): Use
  5565. gdb::unique_xmalloc_ptr instead of cleanups.
  5566. (gdbscm_apply_val_pretty_printer): Remove cleanups.
  5567. * guile/scm-string.c (gdbscm_scm_to_c_string): Now returns a
  5568. gdb::unique_xmalloc_ptr.
  5569. * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
  5570. Adjust to use gdb::unique_xmalloc_ptr.
  5571. * guile/scm-utils.c (extract_arg): Adjust.
  5572. * guile/scm-value.c (gdbscm_value_field): Adjust to use
  5573. gdb::unique_xmalloc_ptr instead of a cleanup.
  5574. 2018-07-19 Tom Tromey <tom@tromey.com>
  5575. * utils.c (do_value_free_to_mark)
  5576. (make_cleanup_value_free_to_mark): Remove.
  5577. * utils.h (make_cleanup_value_free_to_mark): Remove.
  5578. 2018-07-19 Pedro Alves <palves@redhat.com>
  5579. * guile/guile-internal.h (gdbscm_wrap): Really make 'args' a
  5580. forwarding reference.
  5581. 2018-07-18 Pedro Alves <palves@redhat.com>
  5582. * guile/guile.c (gdbscm_execute_gdb_command): Adjust to use
  5583. gdbscm_wrap. Use gdb::unique_xmalloc_ptr<char> instead of a
  5584. cleanup.
  5585. 2018-07-18 Pedro Alves <palves@redhat.com>
  5586. * guile/guile-internal.h: Add comment about mixing GDB and Scheme
  5587. exceptions.
  5588. (GDBSCM_HANDLE_GDB_EXCEPTION_WITH_CLEANUPS): Delete.
  5589. (gdbscm_wrap): New.
  5590. * guile/scm-frame.c (gdbscm_frame_read_register): Use xfree
  5591. directly instead of a cleanup.
  5592. * guile/scm-math.c (vlscm_unop_gdbthrow): New, factored out from ...
  5593. (vlscm_unop): ... this. Reimplement using gdbscm_wrap.
  5594. (vlscm_binop_gdbthrow): New, factored out from ...
  5595. (vlscm_binop): ... this. Reimplement using gdbscm_wrap.
  5596. (vlscm_rich_compare): Use gdbscm_wrap.
  5597. * guile/scm-symbol.c (gdbscm_lookup_symbol): Use xfree directly
  5598. instead of a cleanup.
  5599. (gdbscm_lookup_global_symbol): Use xfree directly instead of a
  5600. cleanup.
  5601. * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
  5602. Use xfree directly instead of a cleanup.
  5603. * guile/scm-value.c (gdbscm_make_value, gdbscm_make_lazy_value):
  5604. Adjust to use gdbscm_wrap and scoped_value_mark.
  5605. (gdbscm_value_optimized_out_p): Adjust to use gdbscm_wrap.
  5606. (gdbscm_value_address, gdbscm_value_dereference)
  5607. (gdbscm_value_referenced_value): Adjust to use gdbscm_wrap and
  5608. scoped_value_mark.
  5609. (gdbscm_value_dynamic_type): Use scoped_value_mark.
  5610. (vlscm_do_cast, gdbscm_value_field): Adjust to use gdbscm_wrap and
  5611. scoped_value_mark.
  5612. (gdbscm_value_subscript, gdbscm_value_call): Adjust to use
  5613. gdbscm_wrap and scoped_value_mark.
  5614. (gdbscm_value_to_string): Use xfree directly instead of a
  5615. cleanup. Move 'buffer' unique_ptr to TRY scope.
  5616. (gdbscm_value_to_lazy_string): Use xfree directly instead of a
  5617. cleanup. Move 'buffer' unique_ptr to TRY scope. Use
  5618. scoped_value_mark.
  5619. (gdbscm_value_fetch_lazy_x): Use gdbscm_wrap.
  5620. (gdbscm_parse_and_eval): Adjust to use gdbscm_wrap and
  5621. scoped_value_mark.
  5622. (gdbscm_history_ref, gdbscm_history_append_x): Adjust to use
  5623. gdbscm_wrap.
  5624. 2018-07-18 Tom de Vries <tdevries@suse.de>
  5625. * findvar.c (default_read_var_value): Also resolve dynamic type for
  5626. LOC_OPTIMIZED_OUT vars.
  5627. 2018-07-18 Maciej W. Rozycki <macro@mips.com>
  5628. * mips-tdep.c (micromips_next_pc): Add SYSCALL instruction
  5629. decoding.
  5630. 2018-07-17 Tom Tromey <tom@tromey.com>
  5631. * guile/scm-param.c (pascm_set_func, pascm_show_func)
  5632. (compute_enum_list, pascm_set_param_value_x)
  5633. (gdbscm_parameter_value): Update.
  5634. * guile/guile-internal.h (gdbscm_scm_to_string): Update.
  5635. (gdbscm_scm_to_host_string): Update.
  5636. * guile/scm-math.c (vlscm_convert_typed_value_from_scheme):
  5637. Update.
  5638. * guile/scm-cmd.c (cmdscm_add_completion): Update.
  5639. * guile/scm-pretty-print.c (ppscm_print_string_repr): Update.
  5640. * guile/scm-string.c (gdbscm_scm_to_string): Return
  5641. unique_xmalloc_ptr.
  5642. (gdbscm_scm_to_host_string): Likewise.
  5643. 2018-07-17 Tom Tromey <tom@tromey.com>
  5644. * guile/guile.c (gdbscm_eval_from_control_command): Update.
  5645. * guile/guile-internal.h (gdbscm_safe_eval_string): Update.
  5646. * guile/scm-objfile.c (gdbscm_execute_objfile_script): Update.
  5647. * guile/scm-safe-call.c (gdbscm_safe_eval_string): Return
  5648. unique_xmalloc_ptr.
  5649. 2018-07-17 Tom Tromey <tom@tromey.com>
  5650. * guile/scm-param.c (pascm_signal_setshow_error): Update.
  5651. * guile/guile-internal.h (gdbscm_exception_message_to_string):
  5652. Update.
  5653. * guile/scm-cmd.c (cmdscm_function): Update.
  5654. * guile/scm-pretty-print.c
  5655. (ppscm_print_exception_unless_memory_error): Update.
  5656. * guile/scm-exception.c (gdbscm_exception_message_to_string):
  5657. Return unique_xmalloc_ptr.
  5658. 2018-07-17 Tom Tromey <tom@tromey.com>
  5659. * guile/scm-pretty-print.c (ppscm_make_pp_type_error_exception):
  5660. Use string_printf.
  5661. 2018-07-17 Jim Wilson <jimw@sifive.com>
  5662. * riscv-tdep.c (riscv_has_feature): Delete comment that refers to
  5663. set_gdbarch_decr_pc_after_break. Call riscv_read_misa_reg always.
  5664. (riscv_gdbarch_init): Delete local has_compressed_isa. Delete now
  5665. unecessary braces after EF_RISCV_RVC test. Delete call to
  5666. set_gdbarch_decr_pc_after_break.
  5667. * riscv-tdep.h (DECLARE_CSR): Use RISCV_FIRST_CSR_REGNUM instead of
  5668. RISCV_LAST_FP_REGNUM + 1.
  5669. (RSICV_CSR_LEGACY_MISA_REGNUM): Add RISCV_FIRST_CSR_REGNUM.
  5670. 2018-07-17 Tom Tromey <tom@tromey.com>
  5671. * configure.ac: Remove --disable-gdbcli.
  5672. * configure: Rebuild.
  5673. * Makefile.in (SUBDIR_CLI_DEPS, SUBDIR_CLI_LDFLAGS)
  5674. (SUBDIR_CLI_CFLAGS): Remove.
  5675. (SFILES): Use SUBDIR_CLI_SRCS.
  5676. (COMMON_OBS): Use SUBDIR_CLI_OBS.
  5677. 2018-07-17 Tom Tromey <tom@tromey.com>
  5678. PR gdb/18624:
  5679. * coffread.c (coff_symtab_read): Use scoped_free_pendings.
  5680. 2018-07-16 Jim Wilson <jimw@sifive.com>
  5681. * riscv-tdep.c (riscv_gdbarch_init): Call gdbarch_init_osabi.
  5682. 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
  5683. * ia64-libunwind-tdep.c (libunwind_frame_cache): Remove unused
  5684. variable.
  5685. (libunwind_frame_sniffer): Likewise.
  5686. (libunwind_frame_prev_register): Likewise.
  5687. (libunwind_sigtramp_frame_sniffer): Likewise.
  5688. * ia64-tdep.c (ia64_access_reg): Likewise.
  5689. (ia64_access_rse_reg): Likewise.
  5690. (ia64_libunwind_sigtramp_frame_this_id): Likewise.
  5691. * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Likewise.
  5692. 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
  5693. * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Add cast.
  5694. 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
  5695. * remote-sim.c (gdbsim_target::close,
  5696. gdbsim_target::mourn_inferior): Remove unused variables.
  5697. 2018-07-16 Simon Marchi <simon.marchi@polymtl.ca>
  5698. * ia64-tdep.c (ktab_buf): New global.
  5699. (getunwind_table): Return a gdb::optional<gdb::byte_vector>.
  5700. (get_kernel_table): Adjust.
  5701. 2018-07-16 Tom Tromey <tom@tromey.com>
  5702. * xcoffread.c (read_xcoff_symtab): Use outermost_context_p.
  5703. * dwarf2read.c (using_directives, new_symbol): Use
  5704. outermost_context_p.
  5705. * dbxread.c (process_one_symbol): Use outermost_context_p.
  5706. * coffread.c (coff_symtab_read): Use outermost_context_p.
  5707. 2018-07-16 Tom Tromey <tom@tromey.com>
  5708. * dwarf2read.c (using_directives, read_func_scope)
  5709. (read_lexical_block_scope): Update.
  5710. * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
  5711. * buildsym.h (local_using_directives, global_using_directives):
  5712. Don't declare.
  5713. (get_local_using_directives, set_local_using_directives)
  5714. (get_global_using_directives): Declare.
  5715. * buildsym.c (struct buildsym_compunit) <m_local_using_directives,
  5716. m_global_using_directives>: New members.
  5717. (finish_block_internal, prepare_for_building)
  5718. (reset_symtab_globals, end_symtab_get_static_block)
  5719. (push_context): Update.
  5720. (get_local_using_directives, set_local_using_directives)
  5721. (get_global_using_directives): New functions.
  5722. (buildsym_init): Update.
  5723. 2018-07-16 Tom Tromey <tom@tromey.com>
  5724. * xcoffread.c (xcoff_initial_scan): Don't call
  5725. free_pending_blocks.
  5726. * dbxread.c (dbx_symfile_read): Don't call free_pending_blocks.
  5727. * buildsym.h (class scoped_free_pendings): Add constructor.
  5728. (free_pending_blocks): Don't declare.
  5729. * buildsym.c (scoped_free_pendings::scoped_free_pendings): New.
  5730. (free_pending_blocks): Now static.
  5731. 2018-07-16 Tom Tromey <tom@tromey.com>
  5732. * buildsym.h (push_subfile, pop_subfile): Update declarations.
  5733. * buildsym.c (struct buildsym_compunit) <m_subfile_stack>: New
  5734. member.
  5735. (struct subfile_stack): Remove.
  5736. (subfile_stack): Remove.
  5737. (push_subfile, pop_subfile, buildsym_init): Update.
  5738. 2018-07-16 Tom Tromey <tom@tromey.com>
  5739. * buildsym.c (push_subfile): Use gdb_assert.
  5740. (pop_subfile): Use gdb_assert.
  5741. 2018-07-16 Tom Tromey <tom@tromey.com>
  5742. * buildsym.h (merge_symbol_lists): Remove.
  5743. * buildsym.c (merge_symbol_lists): Remove.
  5744. 2018-07-16 Tom Tromey <tom@tromey.com>
  5745. * stabsread.c (scan_file_globals): Update comment.
  5746. * stabsread.h (scan_file_globals): Move from buildsym.h.
  5747. * buildsym.h (scan_file_globals): Move to stabsread.h.
  5748. 2018-07-16 Tom Tromey <tom@tromey.com>
  5749. * xcoffread.c (xcoff_new_init): Update.
  5750. * mipsread.c (mipscoff_new_init): Update.
  5751. * mdebugread.c (mdebug_build_psymtabs): Update.
  5752. * elfread.c (elf_new_init): Update.
  5753. * dbxread.c (dbx_new_init, coffstab_build_psymtabs)
  5754. (elfstab_build_psymtabs, stabsect_build_psymtabs): Update.
  5755. * buildsym.h (buildsym_new_init): Don't declare.
  5756. * buildsym.c (buildsym_new_init): Remove.
  5757. 2018-07-16 Tom Tromey <tom@tromey.com>
  5758. * stabsread.h (within_function): Move from buildsym.h.
  5759. * stabsread.c (start_stabs): Clear within_function.
  5760. * coffread.c (coff_start_symtab): Clear within_function.
  5761. * buildsym.h (within_function): Move to stabsread.h.
  5762. * buildsym.c (prepare_for_building): Update.
  5763. 2018-07-16 Tom Tromey <tom@tromey.com>
  5764. * stabsread.h (processing_gcc_compilation): Move from buildsym.h.
  5765. * dwarf2read.c (dwarf2_start_symtab): Don't set
  5766. processing_gcc_compilation.
  5767. * buildsym.h (processing_gcc_compilation): Move to stabsread.h.
  5768. 2018-07-16 Tom Tromey <tom@tromey.com>
  5769. * stabsread.h (HASHSIZE, hashname, symnum, next_symbol_text)
  5770. (next_symbol_text_func): Move from buildsym.h.
  5771. * stabsread.c (hashname): Move from buildsym.c.
  5772. * buildsym.h (HASHSIZE, symnum, next_symbol_text)
  5773. (next_symbol_text_func, hashname): Move to stabsread.h.
  5774. * buildsym.c: Don't include bcache.h
  5775. (hashname): Move to stasbread.c.
  5776. 2018-07-16 Tom Tromey <tom@tromey.com>
  5777. * buildsym.h (context_stack_size): Don't declare.
  5778. * buildsym.c (context_stack_size): New global.
  5779. 2018-07-16 Tom Tromey <tom@tromey.com>
  5780. * dbxread.c (processing_acc_compilation): New global.
  5781. * buildsym.h (processing_acc_compilation): Don't declare.
  5782. 2018-07-16 Tom Tromey <tom@tromey.com>
  5783. * xcoffread.c (aix_process_linenos, complete_symtab): Update.
  5784. * dbxread.c (read_ofile_symtab): Update.
  5785. * coffread.c (coff_start_symtab, coff_end_symtab): Update.
  5786. * buildsym.h (last_source_start_addr): Remove.
  5787. (set_last_source_start_addr, get_last_source_start_addr):
  5788. Declare.
  5789. * buildsym.c (buildsym_compunit::buildsym_compunit): Add last_addr
  5790. parameter.
  5791. (struct buildsym_compunit) <m_last_source_start_addr>: New
  5792. member.
  5793. (prepare_for_building): Remove start_addr parameter.
  5794. (start_symtab, restart_symtab, end_symtab_get_static_block)
  5795. (end_symtab_with_blockvector): Update.
  5796. (set_last_source_start_addr, get_last_source_start_addr): New
  5797. functions.
  5798. 2018-07-16 Tom Tromey <tom@tromey.com>
  5799. * buildsym.c (struct buildsym_compunit) <m_have_line_numbers>: New
  5800. member.
  5801. (have_line_numbers): Remove.
  5802. (record_line, prepare_for_building, end_symtab_get_static_block)
  5803. (augment_type_symtab): Update.
  5804. 2018-07-16 Tom Tromey <tom@tromey.com>
  5805. * buildsym.c (~buildsym_compunit): Free the macro table.
  5806. (struct buildsym_compunit) <get_macro_table, release_macros>: New
  5807. methods.
  5808. <m_pending_macros>: New member.
  5809. (pending_macros): Remove.
  5810. (~scoped_free_pendings, get_macro_table, prepare_for_building)
  5811. (reset_symtab_globals, end_symtab_get_static_block)
  5812. (end_symtab_with_blockvector, augment_type_symtab)
  5813. (buildsym_init): Update.
  5814. 2018-07-16 Tom Tromey <tom@tromey.com>
  5815. * buildsym.c (buildsym_compunit::buildsym_compunit): Add name
  5816. parameter.
  5817. (buildsym_compunit::set_last_source_file): New method.
  5818. <m_last_source_file>: New member.
  5819. (prepare_for_building): Remove "name" parameter.
  5820. (start_symtab, restart_symtab, reset_symtab_globals): Update.
  5821. (last_source_file): Remove.
  5822. (set_last_source_file, get_last_source_file): Update.
  5823. 2018-07-16 Tom Tromey <tom@tromey.com>
  5824. * buildsym.c (prepare_for_building): Add assert.
  5825. 2018-07-16 Tom Tromey <tom@tromey.com>
  5826. * buildsym.c (~buildsym_compunit): Update.
  5827. (struct buildsym_compunit) <comp_unit>: Now a unique_xmalloc_ptr.
  5828. (start_subfile, patch_subfile_names)
  5829. (end_symtab_with_blockvector): Update.
  5830. 2018-07-16 Tom Tromey <tom@tromey.com>
  5831. * buildsym.c (struct buildsym_compunit): Add constructor,
  5832. destructor, initializers.
  5833. (start_buildsym_compunit): Remove.
  5834. (free_buildsym_compunit): Use "delete".
  5835. (start_symtab, restart_symtab): Use "new".
  5836. 2018-07-13 Simon Marchi <simon.marchi@polymtl.ca>
  5837. * symfile.c (set_objfile_default_section_offset): Remove struct
  5838. keyword.
  5839. 2018-07-14 Stafford Horne <shorne@gmail.com>
  5840. * (Responsible Maintainers): Add myself as or1k maintainer.
  5841. 2018-07-13 Tom Tromey <tom@tromey.com>
  5842. * symfile.c (set_objfile_default_section_offset): Use extra braces
  5843. around initializer.
  5844. 2018-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
  5845. * s390-tdep.c (s390_displaced_step_fixup): Adjust PC for a
  5846. non-branching basr.
  5847. 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
  5848. * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
  5849. unittests/cli-utils-selftests.c
  5850. * unittests/cli-utils-selftests.c: New file.
  5851. 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
  5852. * NEWS: Mention new commands. Mention change to 'thread apply'.
  5853. 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
  5854. * thread.c (thr_try_catch_cmd): New function.
  5855. (thread_apply_all_command): Handle qcs flags.
  5856. (thread_apply_command): Handle qcs flags.
  5857. (taas_command): New function.
  5858. (tfaas_command): New function.
  5859. (_initialize_thread): Update to setup the new commands 'taas
  5860. and 'tfaas'. Change doc string for 'thread apply'.
  5861. 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
  5862. * stack.c: (trailing_outermost_frame): New function, mostly
  5863. extracted from backtrace_command_1.
  5864. (leading_innermost_frame): New function.
  5865. (backtrace_command_1): Update to call trailing_outermost_frame.
  5866. (frame_apply_command_count): New function.
  5867. (frame_apply_level_command): New function.
  5868. (frame_apply_all_command): New function.
  5869. (frame_apply_command): New function.
  5870. (faas_command): New function.
  5871. (frame_cmd_list): New variable.
  5872. (_initialize_stack): Update to setup the new commands 'frame apply'
  5873. and 'faas'.
  5874. 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
  5875. * cli-utils.c (number_or_range_parser::get_number): Only handle
  5876. numbers or convenience var as numbers.
  5877. (parse_flags): New function.
  5878. (parse_flags_qcs): New function.
  5879. (number_or_range_parser::finished): Ensure parsing end is detected
  5880. before end of string.
  5881. * cli-utils.h (parse_flags): New function.
  5882. (parse_flags_qcs): New function.
  5883. (number_or_range_parser): Remove m_finished bool.
  5884. (number_or_range_parser::skip_range): Set m_in_range to false.
  5885. 2018-07-12 Sergio Durigan Junior <sergiodj@redhat.com>
  5886. * ser-tcp.c (try_connect): Declare 'ioarg' as 'u_long' if building
  5887. on Windows.
  5888. 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
  5889. Jan Kratochvil <jan.kratochvil@redhat.com>
  5890. Paul Fertser <fercerpav@gmail.com>
  5891. Tsutomu Seki <sekiriki@gmail.com>
  5892. Pedro Alves <palves@redhat.com>
  5893. * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
  5894. 'unittests/parse-connection-spec-selftests.c'.
  5895. (COMMON_SFILES): Add 'common/netstuff.c'.
  5896. (HFILES_NO_SRCDIR): Add 'common/netstuff.h'.
  5897. * NEWS (Changes since GDB 8.2): Mention IPv6 support.
  5898. * common/netstuff.c: New file.
  5899. * common/netstuff.h: New file.
  5900. * ser-tcp.c: Include 'netstuff.h' and 'wspiapi.h'.
  5901. (wait_for_connect): Update comment. New parameter
  5902. 'gdb::optional<int> sock' instead of 'struct serial *scb'.
  5903. Use 'sock' directly instead of 'scb->fd'.
  5904. (try_connect): New function, with code from 'net_open'.
  5905. (net_open): Rewrite main loop to deal with multiple
  5906. sockets/addresses. Handle IPv6-style hostnames; implement
  5907. support for IPv6 connections.
  5908. * unittests/parse-connection-spec-selftests.c: New file.
  5909. 2018-07-11 Pedro Alves <palves@redhat.com>
  5910. PR gdb/23377
  5911. * remote.c (remote_target::remote_detach_pid): Call
  5912. set_current_process.
  5913. 2018-07-11 Pedro Alves <palves@redhat.com>
  5914. * h8300-tdep.c (h8300_gdbarch_init): Remove
  5915. set_gdbarch_ecoff_reg_to_regnum calls.
  5916. 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
  5917. PR c++/23373
  5918. * c-typeprint.c (c_type_print_base_struct_union): Don't print
  5919. offsets/sizes for static members of a class/struct.
  5920. 2018-07-11 Alan Hayward <alan.hayward@arm.com>
  5921. * target-descriptions.c (tdesc_register_bitsize): Rename.
  5922. * target-descriptions.h (tdesc_register_bitsize): Likewise.
  5923. * rs6000-tdep.c (rs6000_gdbarch_init): Use new name.
  5924. * aarch64-tdep.c (aarch64_get_tdesc_vq): Convert size.
  5925. 2018-07-10 Tom Tromey <tom@tromey.com>
  5926. * breakpoint.c (moribund_locations): Now static and a
  5927. std::vector.
  5928. (breakpoint_init_inferior, moribund_breakpoint_here_p)
  5929. (build_bpstat_chain, update_global_location_list)
  5930. (breakpoint_retire_moribund): Update.
  5931. * breakpoint.h (bp_location_p): Remove typedef. Don't declare
  5932. VEC.
  5933. 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
  5934. * riscv-tdep.c (riscv_is_fp_regno_p): New function.
  5935. (riscv_register_reggroup_p): Use new function, remove unneeded
  5936. parenthesis.
  5937. (riscv_push_dummy_call): Extend assert to compare against xlen or
  5938. flen based on register type.
  5939. 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
  5940. * riscv-tdep.c (riscv_print_arg_location): Use TYPE_SAFE_NAME.
  5941. 2018-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
  5942. * remote.c (show_hardware_watchpoint_limit): New function.
  5943. (show_hardware_watchpoint_length_limit): New function.
  5944. (show_hardware_breakpoint_limit): New function.
  5945. (_initialize_remote): Use add_setshow_zuinteger_unlimited_cmd
  5946. where appropriate, update help text.
  5947. 2018-07-09 Tom Tromey <tom@tromey.com>
  5948. * Makefile.in (CDEPS): Don't mention XM_CDEPS.
  5949. (CLIBS): Don't mention NAT_CLIBS.
  5950. 2018-07-09 Tom Tromey <tom@tromey.com>
  5951. * Makefile.in (ADD_FILES, ADD_DEPS): Remove.
  5952. (LIBGDB_OBS, clean mostlyclean): Update.
  5953. (gdb$(EXEEXT), insight$(EXEEXT)): Update.
  5954. 2018-07-09 Tom Tromey <tom@tromey.com>
  5955. * Makefile.in (%.c: %.y): Use ECHO_YACC.
  5956. (%.c: %.l): Use ECHO_LEX. Just fail if flex not available.
  5957. * silent-rules.mk (ECHO_YACC, ECHO_LEX): New variables.
  5958. 2018-07-09 Tom Tromey <tom@tromey.com>
  5959. * Makefile.in (ALLDEPFILES): Remove exec.c.
  5960. (COMMON_OBS): Remove exec.o.
  5961. (COMMON_SFILES): Add exec.c.
  5962. 2018-07-09 Tom Tromey <tom@tromey.com>
  5963. * Makefile.in (LINT, LINTFLAGS, LINTFILES, lint): Remove.
  5964. 2018-07-09 Tom Tromey <tom@tromey.com>
  5965. * Makefile.in (clean mostlyclean): Remove stamp-version.
  5966. (version.c): Depend on stamp-version.
  5967. (stamp-version): New rule, from version.c rule.
  5968. 2018-07-09 Tom Tromey <tom@tromey.com>
  5969. * Makefile.in (init.c): Depend on stamp-init.
  5970. (stamp-init): New rule, from init.c rule.
  5971. (clean mostlyclean): Remove stamp-init.
  5972. 2018-07-09 Tom Tromey <tom@tromey.com>
  5973. * Makefile.in (INIT_FILES): Remove CONFIG_SRCS,
  5974. SUBDIR_GCC_COMPILE_SRCS.
  5975. 2018-07-09 Tom Tromey <tom@tromey.com>
  5976. * Makefile.in (init.c): Remove some unused sed rules.
  5977. 2018-07-09 Tom Tromey <tom@tromey.com>
  5978. * Makefile.in (TSOBS): Remove.
  5979. (INIT_FILES): Update.
  5980. (LIBGDB_OBS): Update.
  5981. (COMMON_SFILES): Add inflow.c.
  5982. (SFILES): Remove inflow.c.
  5983. 2018-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
  5984. * contrib/gdb-add-index.sh ($dwarf5): New, use it.
  5985. 2018-07-07 Simon Marchi <simon.marchi@polymtl.ca>
  5986. * ia64-libunwind-tdep.c (get_reg_name, get_fpreg_name,
  5987. get_saveloc_name, is_signal_frame_name, step_name,
  5988. init_remote_name, create_addr_space_name,
  5989. destroy_addr_space_name, search_unwind_table_name,
  5990. find_dyn_list_name): Constify.
  5991. 2018-07-05 Simon Marchi <simon.marchi@polymtl.ca>
  5992. * darwin-nat.c (darwin_pthread_kill): New function.
  5993. (darwin_resume_thread): Use darwin_pthread_kill.
  5994. 2018-07-05 Tom de Vries <tdevries@suse.de>
  5995. * macroexp.c (macro_buffer) <operator=>: New member function.
  5996. 2018-07-04 Tom Tromey <tom@tromey.com>
  5997. * darwin-nat.c (darwin_attach_pid): Use exit_inferior.
  5998. 2018-07-04 Simon Marchi <simon.marchi@polymtl.ca>
  5999. * common/common-defs.h (HAVE_USEFUL_SBRK): Define.
  6000. * main.c: Use HAVE_USEFUL_SBRK instead of HAVE_SBRK.
  6001. * maint.c: Likewise.
  6002. * top.c: Likewise.
  6003. 2018-07-04 Joel Brobecker <brobecker@adacore.com>
  6004. * NEWS: Create a new section for the next release branch.
  6005. Rename the section of the current branch, now that it has
  6006. been cut.
  6007. 2018-07-04 Joel Brobecker <brobecker@adacore.com>
  6008. GDB 8.2 branch created (1b919490e8ba30bf1d6941df0ed112b0e557017e):
  6009. * version.in: Bump version to 8.2.50.DATE-git.
  6010. 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
  6011. Pedro Alves <palves@redhat.com>
  6012. * linux-nat.c (linux_init_ptrace): Rename to ...
  6013. (linux_init_ptrace_procfs): ... this. Call
  6014. linux_proc_init_warnings.
  6015. (linux_nat_target::post_attach)
  6016. (linux_nat_target::post_startup_inferior): Adjust.
  6017. * nat/linux-procfs.c (linux_proc_init_warnings): Define function.
  6018. * nat/linux-procfs.h (linux_proc_init_warnings): Declare function.
  6019. 2018-07-04 Tom de Vries <tdevries@suse.de>
  6020. * dwarf2read.c (error_check_comp_unit_head): Move dwarf version
  6021. check ...
  6022. (read_comp_unit_head): ... here.
  6023. 2018-07-03 Tom Tromey <tom@tromey.com>
  6024. * tracepoint.c (process_tracepoint_on_disconnect, start_tracing)
  6025. (stop_tracing, tstatus_command)
  6026. (find_matching_tracepoint_location, merge_uploaded_tracepoints)
  6027. (print_one_static_tracepoint_marker): Update.
  6028. * breakpoint.c (static_tracepoints_here, all_tracepoints): Return
  6029. std::vector.
  6030. * breakpoint.h (breakpoint_p): Remove typedef. Don't declare
  6031. VEC.
  6032. (all_tracepoints, static_tracepoints_here): Return std::vector.
  6033. 2018-07-03 Tom Tromey <tom@tromey.com>
  6034. * common/ptid.c (ptid_equal): Remove.
  6035. * common/ptid.h (ptid_equal): Don't declare.
  6036. * ada-tasks.c: Update.
  6037. * breakpoint.c: Update.
  6038. * common/agent.c: Update.
  6039. * corelow.c: Update.
  6040. * darwin-nat-info.c: Update.
  6041. * darwin-nat.c: Update.
  6042. * dcache.c: Update.
  6043. * dtrace-probe.c: Update.
  6044. * dummy-frame.c: Update.
  6045. * fbsd-nat.c: Update.
  6046. * frame.c: Update.
  6047. * gdbthread.h: Update.
  6048. * gnu-nat.c: Update.
  6049. * go32-nat.c: Update.
  6050. * inf-loop.c: Update.
  6051. * inf-ptrace.c: Update.
  6052. * infcall.c: Update.
  6053. * infcmd.c: Update.
  6054. * inflow.c: Update.
  6055. * infrun.c: Update.
  6056. * linux-fork.c: Update.
  6057. * linux-nat.c: Update.
  6058. * linux-thread-db.c: Update.
  6059. * mi/mi-cmd-var.c: Update.
  6060. * mi/mi-interp.c: Update.
  6061. * mi/mi-main.c: Update.
  6062. * nto-procfs.c: Update.
  6063. * ppc-linux-tdep.c: Update.
  6064. * procfs.c: Update.
  6065. * python/py-inferior.c: Update.
  6066. * python/py-record-btrace.c: Update.
  6067. * python/py-record.c: Update.
  6068. * ravenscar-thread.c: Update.
  6069. * regcache.c: Update.
  6070. * remote-sim.c: Update.
  6071. * remote.c: Update.
  6072. * sol-thread.c: Update.
  6073. * solib.c: Update.
  6074. * target.c: Update.
  6075. * tui/tui-stack.c: Update.
  6076. * varobj.c: Update.
  6077. * windows-nat.c: Update.
  6078. * windows-tdep.c: Update.
  6079. 2018-07-03 Tom Tromey <tom@tromey.com>
  6080. * common/ptid.c (ptid_match): Remove.
  6081. * common/ptid.h (ptid_match): Don't declare.
  6082. * fbsd-nat.c: Update.
  6083. * infcmd.c: Update.
  6084. * infrun.c: Update.
  6085. * linux-nat.c: Update.
  6086. * record-btrace.c: Update.
  6087. * regcache.c: Update.
  6088. * remote.c: Update.
  6089. 2018-07-03 Tom Tromey <tom@tromey.com>
  6090. * common/ptid.c (ptid_tid_p): Remove.
  6091. * common/ptid.h (ptid_tid_p): Don't declare.
  6092. * sol-thread.c: Update.
  6093. 2018-07-03 Tom Tromey <tom@tromey.com>
  6094. * common/ptid.c (ptid_lwp_p): Remove.
  6095. * common/ptid.h (ptid_lwp_p): Don't declare.
  6096. * fbsd-nat.c: Update.
  6097. * linux-nat.c: Update.
  6098. * nat/linux-procfs.c: Update.
  6099. * nat/x86-linux-dregs.c: Update.
  6100. * sol-thread.c: Update.
  6101. 2018-07-03 Tom Tromey <tom@tromey.com>
  6102. * common/ptid.c (ptid_is_pid): Remove.
  6103. * common/ptid.h (ptid_is_pid): Don't declare.
  6104. * infrun.c: Update.
  6105. * linux-nat.c: Update.
  6106. * mi/mi-interp.c: Update.
  6107. * remote.c: Update.
  6108. * thread.c: Update.
  6109. 2018-07-03 Tom Tromey <tom@tromey.com>
  6110. * common/ptid.c (ptid_get_tid): Remove.
  6111. * common/ptid.h (ptid_get_tid): Don't declare.
  6112. * ada-tasks.c: Update.
  6113. * aix-thread.c: Update.
  6114. * bsd-uthread.c: Update.
  6115. * darwin-nat.c: Update.
  6116. * fbsd-nat.c: Update.
  6117. * i386-darwin-nat.c: Update.
  6118. * infrun.c: Update.
  6119. * linux-tdep.c: Update.
  6120. * nto-procfs.c: Update.
  6121. * ppc-ravenscar-thread.c: Update.
  6122. * python/py-infthread.c: Update.
  6123. * ravenscar-thread.c: Update.
  6124. * sol-thread.c: Update.
  6125. * sparc-ravenscar-thread.c: Update.
  6126. * windows-nat.c: Update.
  6127. 2018-07-03 Tom Tromey <tom@tromey.com>
  6128. * common/ptid.c (ptid_get_lwp): Remove.
  6129. * common/ptid.h (ptid_get_lwp): Don't declare.
  6130. * aarch64-linux-nat.c: Update.
  6131. * ada-tasks.c: Update.
  6132. * aix-thread.c: Update.
  6133. * amd64-linux-nat.c: Update.
  6134. * arm-linux-nat.c: Update.
  6135. * corelow.c: Update.
  6136. * fbsd-nat.c: Update.
  6137. * fbsd-tdep.c: Update.
  6138. * gnu-nat.c: Update.
  6139. * i386-cygwin-tdep.c: Update.
  6140. * i386-gnu-nat.c: Update.
  6141. * i386-linux-nat.c: Update.
  6142. * ia64-linux-nat.c: Update.
  6143. * inf-ptrace.c: Update.
  6144. * infrun.c: Update.
  6145. * linux-fork.c: Update.
  6146. * linux-nat.c: Update.
  6147. * linux-tdep.c: Update.
  6148. * linux-thread-db.c: Update.
  6149. * mips-linux-nat.c: Update.
  6150. * nat/aarch64-linux-hw-point.c: Update.
  6151. * nat/aarch64-linux.c: Update.
  6152. * nat/linux-btrace.c: Update.
  6153. * nat/linux-osdata.c: Update.
  6154. * nat/linux-procfs.c: Update.
  6155. * nat/x86-linux-dregs.c: Update.
  6156. * obsd-nat.c: Update.
  6157. * ppc-fbsd-nat.c: Update.
  6158. * ppc-linux-nat.c: Update.
  6159. * procfs.c: Update.
  6160. * python/py-infthread.c: Update.
  6161. * ravenscar-thread.c: Update.
  6162. * remote.c: Update.
  6163. * s390-linux-nat.c: Update.
  6164. * sol-thread.c: Update.
  6165. * sol2-tdep.c: Update.
  6166. * spu-linux-nat.c: Update.
  6167. * x86-linux-nat.c: Update.
  6168. * xtensa-linux-nat.c: Update.
  6169. 2018-07-03 Tom Tromey <tom@tromey.com>
  6170. * common/ptid.c (ptid_get_pid): Remove.
  6171. * common/ptid.h (ptid_get_pid): Don't declare.
  6172. * aarch64-linux-nat.c: Update.
  6173. * ada-lang.c: Update.
  6174. * aix-thread.c: Update.
  6175. * alpha-bsd-nat.c: Update.
  6176. * amd64-fbsd-nat.c: Update.
  6177. * amd64-linux-nat.c: Update.
  6178. * arm-linux-nat.c: Update.
  6179. * arm-nbsd-nat.c: Update.
  6180. * auxv.c: Update.
  6181. * break-catch-syscall.c: Update.
  6182. * breakpoint.c: Update.
  6183. * bsd-uthread.c: Update.
  6184. * corelow.c: Update.
  6185. * ctf.c: Update.
  6186. * darwin-nat.c: Update.
  6187. * fbsd-nat.c: Update.
  6188. * fbsd-tdep.c: Update.
  6189. * gcore.c: Update.
  6190. * gnu-nat.c: Update.
  6191. * hppa-nbsd-nat.c: Update.
  6192. * hppa-obsd-nat.c: Update.
  6193. * i386-fbsd-nat.c: Update.
  6194. * ia64-linux-nat.c: Update.
  6195. * inf-ptrace.c: Update.
  6196. * infcmd.c: Update.
  6197. * inferior.c: Update.
  6198. * inferior.h: Update.
  6199. * inflow.c: Update.
  6200. * infrun.c: Update.
  6201. * linux-fork.c: Update.
  6202. * linux-nat.c: Update.
  6203. * linux-tdep.c: Update.
  6204. * linux-thread-db.c: Update.
  6205. * m68k-bsd-nat.c: Update.
  6206. * mi/mi-interp.c: Update.
  6207. * mi/mi-main.c: Update.
  6208. * mips-linux-nat.c: Update.
  6209. * mips-nbsd-nat.c: Update.
  6210. * mips64-obsd-nat.c: Update.
  6211. * nat/aarch64-linux-hw-point.c: Update.
  6212. * nat/aarch64-linux.c: Update.
  6213. * nat/linux-btrace.c: Update.
  6214. * nat/linux-osdata.c: Update.
  6215. * nat/linux-procfs.c: Update.
  6216. * nat/x86-linux-dregs.c: Update.
  6217. * nto-procfs.c: Update.
  6218. * obsd-nat.c: Update.
  6219. * ppc-linux-nat.c: Update.
  6220. * ppc-nbsd-nat.c: Update.
  6221. * ppc-obsd-nat.c: Update.
  6222. * proc-service.c: Update.
  6223. * procfs.c: Update.
  6224. * python/py-inferior.c: Update.
  6225. * python/py-infthread.c: Update.
  6226. * ravenscar-thread.c: Update.
  6227. * record.c: Update.
  6228. * remote-sim.c: Update.
  6229. * remote.c: Update.
  6230. * rs6000-nat.c: Update.
  6231. * s390-linux-nat.c: Update.
  6232. * sh-nbsd-nat.c: Update.
  6233. * sol-thread.c: Update.
  6234. * sparc-nat.c: Update.
  6235. * sparc64-tdep.c: Update.
  6236. * spu-linux-nat.c: Update.
  6237. * spu-tdep.c: Update.
  6238. * target-debug.h: Update.
  6239. * target.c: Update.
  6240. * thread.c: Update.
  6241. * tid-parse.c: Update.
  6242. * tracefile-tfile.c: Update.
  6243. * vax-bsd-nat.c: Update.
  6244. * windows-nat.c: Update.
  6245. * x86-linux-nat.c: Update.
  6246. * x86-nat.c: Update.
  6247. 2018-07-03 Tom Tromey <tom@tromey.com>
  6248. * common/ptid.c (pid_to_ptid): Remove.
  6249. * common/ptid.h (pid_to_ptid): Don't declare.
  6250. * aix-thread.c: Update.
  6251. * arm-linux-nat.c: Update.
  6252. * common/ptid.c: Update.
  6253. * common/ptid.h: Update.
  6254. * corelow.c: Update.
  6255. * ctf.c: Update.
  6256. * darwin-nat.c: Update.
  6257. * fbsd-nat.c: Update.
  6258. * fork-child.c: Update.
  6259. * gnu-nat.c: Update.
  6260. * go32-nat.c: Update.
  6261. * inf-ptrace.c: Update.
  6262. * infcmd.c: Update.
  6263. * inferior.c: Update.
  6264. * infrun.c: Update.
  6265. * linux-fork.c: Update.
  6266. * linux-nat.c: Update.
  6267. * nat/aarch64-linux-hw-point.c: Update.
  6268. * nat/fork-inferior.c: Update.
  6269. * nat/x86-linux-dregs.c: Update.
  6270. * nto-procfs.c: Update.
  6271. * obsd-nat.c: Update.
  6272. * procfs.c: Update.
  6273. * progspace.c: Update.
  6274. * remote.c: Update.
  6275. * rs6000-nat.c: Update.
  6276. * s390-linux-nat.c: Update.
  6277. * sol-thread.c: Update.
  6278. * spu-linux-nat.c: Update.
  6279. * target.c: Update.
  6280. * top.c: Update.
  6281. * tracefile-tfile.c: Update.
  6282. * windows-nat.c: Update.
  6283. 2018-07-03 Tom Tromey <tom@tromey.com>
  6284. * common/ptid.h (ptid_build): Don't declare.
  6285. * common/ptid.c (ptid_build): Remove.
  6286. * aix-thread.c: Update.
  6287. * bsd-kvm.c: Update.
  6288. * bsd-uthread.c: Update.
  6289. * common/agent.c: Update.
  6290. * common/ptid.c: Update.
  6291. * common/ptid.h: Update.
  6292. * corelow.c: Update.
  6293. * darwin-nat.c: Update.
  6294. * fbsd-nat.c: Update.
  6295. * gnu-nat.c: Update.
  6296. * linux-fork.c: Update.
  6297. * linux-nat.c: Update.
  6298. * linux-thread-db.c: Update.
  6299. * nat/linux-osdata.c: Update.
  6300. * nat/linux-procfs.c: Update.
  6301. * nto-procfs.c: Update.
  6302. * obsd-nat.c: Update.
  6303. * proc-service.c: Update.
  6304. * procfs.c: Update.
  6305. * ravenscar-thread.c: Update.
  6306. * remote-sim.c: Update.
  6307. * remote.c: Update.
  6308. * sol-thread.c: Update.
  6309. * target.c: Update.
  6310. * windows-nat.c: Update.
  6311. 2018-07-03 Tom Tromey <tom@tromey.com>
  6312. * infrun.c (follow_exec): Use exit_inferior_silent.
  6313. * inferior.c (exit_inferior_num_silent): Remove.
  6314. * inferior.h (exit_inferior_num_silent): Don't declare.
  6315. 2018-07-03 Tom Tromey <tom@tromey.com>
  6316. PR cli/23340:
  6317. * darwin-nat.c (darwin_attach_pid): Reset inferior and
  6318. inferior_ptid on error.
  6319. 2018-07-02 Maciej W. Rozycki <macro@mips.com>
  6320. Simon Marchi <simon.marchi@polymtl.ca>
  6321. PR tdep/8282
  6322. * disasm.h (gdb_disassembler): Add
  6323. `m_disassembler_options_holder'. member
  6324. * disasm.c (get_all_disassembler_options): New function.
  6325. (gdb_disassembler::gdb_disassembler): Use it.
  6326. (gdb_buffered_insn_length_init_dis): Likewise.
  6327. (gdb_buffered_insn_length): Adjust accordingly.
  6328. (set_disassembler_options): Handle options with arguments.
  6329. (show_disassembler_options_sfunc): Likewise. Add a leading new
  6330. line if showing options with descriptions.
  6331. (disassembler_options_completer): Adapt to using the
  6332. `disasm_options_and_args_t' structure.
  6333. * mips-tdep.c (mips_disassembler_options): New variable.
  6334. (mips_disassembler_options_o32): Likewise.
  6335. (mips_disassembler_options_n32): Likewise.
  6336. (mips_disassembler_options_n64): Likewise.
  6337. (gdb_print_insn_mips): Don't set `disassembler_options'.
  6338. (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): Remove
  6339. functions.
  6340. (mips_gdbarch_init): Always set `gdbarch_print_insn' to
  6341. `gdb_print_insn_mips'. Set `gdbarch_disassembler_options',
  6342. `gdbarch_disassembler_options_implicit' and
  6343. `gdbarch_valid_disassembler_options'.
  6344. * arm-tdep.c (_initialize_arm_tdep): Adapt to using the
  6345. `disasm_options_and_args_t' structure.
  6346. * gdbarch.sh (disassembler_options_implicit): New `gdbarch'
  6347. method.
  6348. (valid_disassembler_options): Switch from `disasm_options_t' to
  6349. the `disasm_options_and_args_t' structure.
  6350. * NEWS: Document `set disassembler-options' support for the MIPS
  6351. target.
  6352. * gdbarch.h: Regenerate.
  6353. * gdbarch.c: Regenerate.
  6354. 2018-07-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
  6355. * riscv-tdep.c (riscv_register_aliases): Swap "fp" and "s0" entries.
  6356. 2018-06-29 Joel Brobecker <brobecker@adacore.com>
  6357. * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Add missing
  6358. parameter in call to amd64_target_description.
  6359. * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise.
  6360. * amd64-fbsd-tdep.c (amd64fbsd_core_read_description)
  6361. (amd64fbsd_init_abi): Likewise.
  6362. * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
  6363. * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
  6364. * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
  6365. * amd64-fbsd-nat.c (amd64_fbsd_nat_target): Likewise.
  6366. 2018-06-29 Pedro Alves <palves@redhat.com>
  6367. * amd64-tdep.h (amd64_create_target_description): Add
  6368. "segments" parameter.
  6369. * amd64-tdep.c (amd64_none_init_abi, amd64_x32_none_init_abi)
  6370. (_initialize_amd64_tdep): Update call to
  6371. amd64_create_target_description.
  6372. (amd64_target_description): Add "segments" parameter. Adjust
  6373. the implementation to use it.
  6374. * amd64-linux-tdep.c (amd64_linux_read_description): Update
  6375. call to amd64_create_target_description.
  6376. * amd64-windows-tdep.c (amd64_windows_init_abi): Likewise.
  6377. * arch/amd64.h (amd64_create_target_description): Add
  6378. "segments" register.
  6379. * arch/amd64.c (amd64_create_target_description): Add
  6380. "segments" parameter. Call create_feature_i386_64bit_segments
  6381. only if SEGMENTS is true.
  6382. * gdbserver/win32-i386-low.c (i386_arch_setup): Update
  6383. call to amd64_create_target_description.
  6384. 2018-06-29 Pedro Alves <palves@redhat.com>
  6385. * thread.c (thread_target_id_str): New, factored out from ...
  6386. (print_thread_info_1): ... here. Use it to compute the max
  6387. "Target Id" column width.
  6388. 2018-06-29 Pedro Alves <palves@redhat.com>
  6389. * remote.c (remote_target::extra_thread_info): Delete
  6390. 'display_buf' and 'n' locals. from the cache, regardless of
  6391. packet mechanims is in use. Use cache for qThreadExtra and qP
  6392. methods too.
  6393. 2018-06-29 Pedro Alves <palves@redhat.com>
  6394. * blockframe.c (find_pc_sect_containing_function): New function.
  6395. * breakpoint.c (print_breakpoint_location): Don't call
  6396. find_pc_sect_function.
  6397. * linespec.c (create_sals_line_offset): Record the location's
  6398. symbol in the sal.
  6399. * linespec.c (convert_address_location_to_sals): Fill in sal's
  6400. symbol with find_pc_sect_containing_function.
  6401. * symtab.c (find_function_start_sal): Rename to ...
  6402. (find_function_start_sal_1): ... this.
  6403. (find_function_start_sal): Reimplement as wrapper around
  6404. find_function_start_sal_1, and use
  6405. find_pc_sect_containing_function to fill in the sal's symbol.
  6406. (find_function_start_sal(symbol*, bool)): Adjust.
  6407. * symtab.h (find_pc_function, find_pc_sect_function): Adjust
  6408. comments.
  6409. (find_pc_sect_containing_function): Declare.
  6410. 2018-06-29 Pedro Alves <palves@redhat.com>
  6411. * inline-frame.c (stopped_by_user_bp_inline_frame): Return
  6412. true if the the location has no symbol.
  6413. 2018-06-28 Tom Tromey <tom@tromey.com>
  6414. * NEWS: Mention --enable-codesign.
  6415. * silent-rules.mk (ECHO_SIGN): New variable.
  6416. * configure.ac: Add --enable-codesign.
  6417. * configure: Rebuild.
  6418. * Makefile.in (CODESIGN, CODESIGN_CERT): New variables.
  6419. (gdb$(EXEEXT)): Optionally invoke codesign.
  6420. 2018-06-28 Pedro Alves <palves@redhat.com>
  6421. * gdbthread.h (struct thread_suspend_state) <stop_pc>: Extend
  6422. comments.
  6423. (switch_to_thread_no_regs): Adjust comment.
  6424. * infcmd.c (stop_pc): Delete.
  6425. (post_create_inferior, info_program_command): Replace references
  6426. to stop_pc with references to thread_info->suspend.stop_pc.
  6427. * inferior.h (stop_pc): Delete declaration.
  6428. * infrun.c (proceed, handle_syscall_event, fill_in_stop_func)
  6429. (handle_inferior_event_1, handle_signal_stop)
  6430. (process_event_stop_test, keep_going_stepped_thread)
  6431. (handle_step_into_function, handle_step_into_function_backward)
  6432. (print_stop_location): Replace references to stop_pc with
  6433. references to thread_info->suspend.stop_pc.
  6434. (struct infcall_suspend_state) <stop_pc>: Delete field.
  6435. (save_infcall_suspend_state, restore_infcall_suspend_state):
  6436. Remove references to inf_stat->stop_pc.
  6437. * linux-fork.c (fork_load_infrun_state): Likewise.
  6438. * record-btrace.c (record_btrace_set_replay): Likewise.
  6439. * record-full.c (record_full_goto_entry): Likewise.
  6440. * remote.c (print_one_stopped_thread): Likewise.
  6441. * target.c (target_resume): Extend comment.
  6442. * thread.c (set_executing_thread): New.
  6443. (set_executing): Use it.
  6444. (switch_to_thread_no_regs, switch_to_no_thread, switch_to_thread):
  6445. Remove references to stop_pc.
  6446. 2018-06-28 Pedro Alves <palves@redhat.com>
  6447. * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>:
  6448. Moving fetching stop_pc until after ecs->event_thread is refreshed.
  6449. 2018-06-28 Tom Tromey <tom@tromey.com>
  6450. * coffread.c (coff_symfile_finish): Update.
  6451. * xcoffread.c (xcoff_symfile_finish): Update.
  6452. * elfread.c (elf_symfile_finish): Update.
  6453. * symfile.h (dwarf2_free_objfile): Don't declare.
  6454. * dwarf2read.c (_initialize_dwarf2_read): Use
  6455. register_objfile_data_with_cleanup.
  6456. (dwarf2_free_objfile): Now static. Change signature.
  6457. 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
  6458. * symfile.c (add_symbol_file_command, _initialize_symfile): Add
  6459. option "-o" to add-symbol-file-load to add an offset to each
  6460. section's load address.
  6461. * symfile.c (set_objfile_default_section_offset): New function.
  6462. 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
  6463. * symfile.c (add_symbol_file_command): Make sure that sections
  6464. with the same name are sorted in the same order.
  6465. 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
  6466. * symfile.c (add_symbol_file_command, _initialize_symfile): Do not
  6467. require the second argument. If omitted, load sections at the
  6468. addresses specified in the file.
  6469. 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
  6470. * symfile.c (symbol_file_command, symbol_file_add_main_1)
  6471. (_initialize_symfile): Add option "-o" to symbol-file to add an
  6472. offset to each section of the symbol file.
  6473. 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
  6474. * MAINTAINERS (Write After Approval): Add Petr Tesarik.
  6475. 2018-06-27 Tom Tromey <tom@tromey.com>
  6476. * stack.c (_initialize_stack): Update "func" help text.
  6477. 2018-06-27 Tom Tromey <tom@tromey.com>
  6478. * python/py-unwind.c (unwind_info_object) <saved_regs>: Now a
  6479. std::vector.
  6480. (unwind_infopy_str, pyuw_create_unwind_info)
  6481. (unwind_infopy_add_saved_register, pyuw_sniffer)
  6482. (unwind_infopy_dealloc, unwind_infopy_add_saved_register):
  6483. Update.
  6484. (struct saved_reg): Add constructor.
  6485. <value>: Now a gdbpy_ref<>.
  6486. 2018-06-27 Tom Tromey <tom@tromey.com>
  6487. * machoread.c (macho_symfile_read): Define "symbol_table" earlier.
  6488. 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
  6489. * gdb-gdb.py.in: Format using autopep8.
  6490. 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
  6491. * gdb-gdb.py.in (CoreAddrPrettyPrinter): New class.
  6492. (type_lookup_function): Recognize CORE_ADDR values.
  6493. 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
  6494. * gdb-gdb.py.in (StructMainTypePrettyPrinter) <to_string>: Don't
  6495. print tag_name.
  6496. 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
  6497. * gdb-gdb.py.in (TypeFlag) <__cmp__>: Remove.
  6498. <__lt__>: Add.
  6499. 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
  6500. * gdb-gdb.py: Move to...
  6501. * gdb-gdb.py.in: ... here.
  6502. * configure.ac (AC_CONFIG_FILES): Add gdb-gdb.py.
  6503. * Makefile.in (all): Add gdb-gdb.gdb and gdb-gdb.py as
  6504. dependencies.
  6505. (distclean): Remove gdb-gdb.py when cleaning.
  6506. (gdb-gdb.py, gdb-gdb.gdb): New rules.
  6507. * configure: Re-generate.
  6508. 2018-06-27 Pedro Alves <palves@redhat.com>
  6509. * proc-service.c (get_ps_regcache): New.
  6510. (ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
  6511. (ps_lsetfpregs): Use it.
  6512. 2018-06-27 Omair Javaid <omair.javaid@linaro.org>
  6513. PR gdb/21695
  6514. * dwarf2read.c (lnp_state_machine::check_line_address): Update
  6515. declaration.
  6516. (dwarf_decode_lines_1): Adjust.
  6517. 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
  6518. * fbsd-nat.h (class fbsd_nat_target) <find_memory_regions>: Add
  6519. override.
  6520. <info_proc>: Likewise.
  6521. 2018-06-26 Joel Brobecker <brobecker@adacore.com>
  6522. * windows-nat.c (do_windows_fetch_inferior_registers): Rename
  6523. to windows_fetch_one_register, and only handle the case of
  6524. fetching one register. Move the code that reloads the context
  6525. and iterates over all registers if R is negative to...
  6526. (windows_nat_target::fetch_registers): ... here.
  6527. (do_windows_store_inferior_registers): Rename to
  6528. windows_store_one_register, and only handle the case of storing
  6529. one register. Move the code that handles the case where r is
  6530. negative to...
  6531. (windows_nat_target::store_registers) ... here.
  6532. 2018-06-26 Tom Tromey <tom@tromey.com>
  6533. PR rust/22574:
  6534. * typeprint.c (whatis_exp): Allow ptype/o for Rust.
  6535. * rust-lang.c (rust_print_struct_def): Add podata parameter.
  6536. Update.
  6537. (rust_internal_print_type): Add podata parameter.
  6538. (rust_print_type): Update.
  6539. 2018-06-26 Tom Tromey <tom@tromey.com>
  6540. * typeprint.h (struct print_offset_data) <update, finish,
  6541. maybe_print_hole>: New methods.
  6542. <indentation>: New constant.
  6543. * typeprint.c (print_offset_data::indentation): Define.
  6544. (print_offset_data::maybe_print_hole, print_offset_data::update)
  6545. (print_offset_data::finish): Move from c-typeprint.c and rename.
  6546. * c-typeprint.c (OFFSET_SPC_LEN): Remove.
  6547. (print_spaces_filtered_with_print_options): Update.
  6548. (c_print_type_union_field_offset, maybe_print_hole)
  6549. (c_print_type_struct_field_offset): Move to typeprint.c and
  6550. rename.
  6551. (c_type_print_base_struct_union): Update.
  6552. 2018-06-25 Pedro Alves <palves@redhat.com>
  6553. * gdbthread.h (thread_info_ref, delete_thread)
  6554. (delete_thread_silent, first_thread_of_inferior)
  6555. (any_thread_of_inferior, switch_to_thread)
  6556. (enable_thread_stack_temporaries)
  6557. (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
  6558. (get_last_thread_stack_temporary)
  6559. (value_in_thread_stack_temporaries, can_access_registers_thread):
  6560. Spell out "struct thread_info" instead of just "thread_info".
  6561. * inferior.h (notice_new_inferior): Likewise.
  6562. 2018-06-25 Pedro Alves <palves@redhat.com>
  6563. * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
  6564. pass thread_info pointer to delete_thread.
  6565. (windows_nat_target::detach): Pass inferior pointer to
  6566. detach_inferior.
  6567. * aix-thread.c (sync_threadlists): Pass thread_info pointer to
  6568. delete_thread.
  6569. * bsd-kvm.c (bsd_kvm_target::close): Use discard_all_inferiors.
  6570. * darwin-nat.c (darwin_check_new_threads): Use find_thread_ptid
  6571. and pass a thread_info pointer to delete_thread.
  6572. * fbsd-nat.c (fbsd_nat_target::wait): Use find_thread_ptid and
  6573. pass thread_info pointer to delete_thread.
  6574. * go32-nat.c (go32_nat_target::mourn_inferior): Remove
  6575. delete_thread_silent call.
  6576. * procfs.c (procfs_target::detach): Pass inferior pointer to
  6577. detach_inferior.
  6578. (procfs_target::wait): Pass thread_info pointer to delete_thread.
  6579. * remote-sim.c (gdbsim_target::mourn_inferior): Remove
  6580. delete_thread_silent call.
  6581. * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
  6582. pass thread_info pointer to delete_thread.
  6583. (windows_nat_target::detach): Pass inferior pointer to
  6584. delete_inferior.
  6585. 2018-06-22 Alan Hayward <alan.hayward@arm.com>
  6586. * regcache.c (readable_regcache::read_part): Fix asserts.
  6587. (reg_buffer::raw_collect_part): New function.
  6588. (regcache::write_part): Fix asserts.
  6589. (reg_buffer::raw_supply_part): New function.
  6590. (regcache::transfer_regset_register): New helper function.
  6591. (regcache::transfer_regset): Call new functions.
  6592. (regcache_supply_regset): Use gdb_byte*.
  6593. (regcache::supply_regset): Likewise.
  6594. (regcache_collect_regset): Likewise.
  6595. (regcache::collect_regset): Likewise.
  6596. * regcache.h (reg_buffer::raw_collect_part): New declaration.
  6597. (reg_buffer::raw_supply_part): Likewise.
  6598. (regcache::transfer_regset_register): Likewise.
  6599. (regcache::transfer_regset): Use gdb_byte*.
  6600. 2018-06-22 Alan Hayward <alan.hayward@arm.com>
  6601. * nat/aarch64-sve-linux-ptrace.h (HAS_SVE_STATE): Use &.
  6602. 2018-06-21 Pedro Alves <palves@redhat.com>
  6603. * ada-lang.h (ada_get_task_number): Take a thread_info pointer
  6604. instead of a ptid_t. All callers adjusted.
  6605. * ada-tasks.c (ada_get_task_number): Likewise. All callers
  6606. adjusted.
  6607. (print_ada_task_info, display_current_task_id, task_command_1):
  6608. Adjust.
  6609. * breakpoint.c (watchpoint_in_thread_scope): Adjust to use
  6610. inferior_thread.
  6611. (breakpoint_kind): Adjust.
  6612. (remove_breakpoints_pid): Rename to ...
  6613. (remove_breakpoints_inf): ... this. Adjust to take an inferior
  6614. pointer. All callers adjusted.
  6615. (bpstat_clear_actions): Use inferior_thread.
  6616. (get_bpstat_thread): New.
  6617. (bpstat_do_actions): Use it.
  6618. (bpstat_check_breakpoint_conditions, bpstat_stop_status): Adjust
  6619. to take a thread_info pointer. All callers adjusted.
  6620. (set_longjmp_breakpoint_for_call_dummy, set_momentary_breakpoint)
  6621. (breakpoint_re_set_thread): Use inferior_thread.
  6622. * breakpoint.h (struct inferior): Forward declare.
  6623. (bpstat_stop_status): Update.
  6624. (remove_breakpoints_pid): Delete.
  6625. (remove_breakpoints_inf): New.
  6626. * bsd-uthread.c (bsd_uthread_target::wait)
  6627. (bsd_uthread_target::update_thread_list): Use find_thread_ptid.
  6628. * btrace.c (btrace_add_pc, btrace_enable, btrace_fetch)
  6629. (maint_btrace_packet_history_cmd)
  6630. (maint_btrace_clear_packet_history_cmd): Adjust.
  6631. (maint_btrace_clear_cmd, maint_info_btrace_cmd): Adjust to use
  6632. inferior_thread.
  6633. * cli/cli-interp.c: Include "inferior.h".
  6634. * common/refcounted-object.h (struct
  6635. refcounted_object_ref_policy): New.
  6636. * compile/compile-object-load.c: Include gdbthread.h.
  6637. (store_regs): Use inferior_thread.
  6638. * corelow.c (core_target::close): Use current_inferior.
  6639. (core_target_open): Adjust to use first_thread_of_inferior and use
  6640. the current inferior.
  6641. * ctf.c (ctf_target::close): Adjust to use current_inferior.
  6642. * dummy-frame.c (dummy_frame_id) <ptid>: Delete, replaced by ...
  6643. <thread>: ... this new field. All references adjusted.
  6644. (dummy_frame_pop, dummy_frame_discard, register_dummy_frame_dtor):
  6645. Take a thread_info pointer instead of a ptid_t.
  6646. * dummy-frame.h (dummy_frame_push, dummy_frame_pop)
  6647. (dummy_frame_discard, register_dummy_frame_dtor): Take a
  6648. thread_info pointer instead of a ptid_t.
  6649. * elfread.c: Include "inferior.h".
  6650. (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop):
  6651. Use inferior_thread.
  6652. * eval.c (evaluate_subexp): Likewise.
  6653. * frame.c (frame_pop, has_stack_frames, find_frame_sal): Use
  6654. inferior_thread.
  6655. * gdb_proc_service.h (struct thread_info): Forward declare.
  6656. (struct ps_prochandle) <ptid>: Delete, replaced by ...
  6657. <thread>: ... this new field. All references adjusted.
  6658. * gdbarch.h, gdbarch.c: Regenerate.
  6659. * gdbarch.sh (get_syscall_number): Replace 'ptid' parameter with a
  6660. 'thread' parameter. All implementations and callers adjusted.
  6661. * gdbthread.h (thread_info) <set_running>: New method.
  6662. (delete_thread, delete_thread_silent): Take a thread_info pointer
  6663. instead of a ptid.
  6664. (global_thread_id_to_ptid, ptid_to_global_thread_id): Delete.
  6665. (first_thread_of_process): Delete, replaced by ...
  6666. (first_thread_of_inferior): ... this new function. All callers
  6667. adjusted.
  6668. (any_live_thread_of_process): Delete, replaced by ...
  6669. (any_live_thread_of_inferior): ... this new function. All callers
  6670. adjusted.
  6671. (switch_to_thread, switch_to_no_thread): Declare.
  6672. (is_executing): Delete.
  6673. (enable_thread_stack_temporaries): Update comment.
  6674. <enable_thread_stack_temporaries>: Take a thread_info pointer
  6675. instead of a ptid_t. Incref the thread.
  6676. <~enable_thread_stack_temporaries>: Decref the thread.
  6677. <m_ptid>: Delete
  6678. <m_thr>: New.
  6679. (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
  6680. (get_last_thread_stack_temporary)
  6681. (value_in_thread_stack_temporaries, can_access_registers_thread):
  6682. Take a thread_info pointer instead of a ptid_t. All callers
  6683. adjusted.
  6684. * infcall.c (get_call_return_value): Use inferior_thread.
  6685. (run_inferior_call): Work with thread pointers instead of ptid_t.
  6686. (call_function_by_hand_dummy): Work with thread pointers instead
  6687. of ptid_t. Use thread_info_ref.
  6688. * infcmd.c (proceed_thread_callback): Access thread's state
  6689. directly.
  6690. (ensure_valid_thread, ensure_not_running): Use inferior_thread,
  6691. access thread's state directly.
  6692. (continue_command): Use inferior_thread.
  6693. (info_program_command): Use find_thread_ptid and access thread
  6694. state directly.
  6695. (proceed_after_attach_callback): Use thread state directly.
  6696. (notice_new_inferior): Take a thread_info pointer instead of a
  6697. ptid_t. All callers adjusted.
  6698. (exit_inferior): Take an inferior pointer instead of a pid. All
  6699. callers adjusted.
  6700. (exit_inferior_silent): New.
  6701. (detach_inferior): Delete.
  6702. (valid_gdb_inferior_id, pid_to_gdb_inferior_id)
  6703. (gdb_inferior_id_to_pid, in_inferior_list): Delete.
  6704. (detach_inferior_command, kill_inferior_command): Use
  6705. find_inferior_id instead of valid_gdb_inferior_id and
  6706. gdb_inferior_id_to_pid.
  6707. (inferior_command): Use inferior and thread pointers.
  6708. * inferior.h (struct thread_info): Forward declare.
  6709. (notice_new_inferior): Take a thread_info pointer instead of a
  6710. ptid_t. All callers adjusted.
  6711. (detach_inferior): Delete declaration.
  6712. (exit_inferior, exit_inferior_silent): Take an inferior pointer
  6713. instead of a pid. All callers adjusted.
  6714. (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list)
  6715. (valid_gdb_inferior_id): Delete.
  6716. * infrun.c (follow_fork_inferior, proceed_after_vfork_done)
  6717. (handle_vfork_child_exec_or_exit, follow_exec): Adjust.
  6718. (struct displaced_step_inferior_state) <pid>: Delete, replaced by
  6719. ...
  6720. <inf>: ... this new field.
  6721. <step_ptid>: Delete, replaced by ...
  6722. <step_thread>: ... this new field.
  6723. (get_displaced_stepping_state): Take an inferior pointer instead
  6724. of a pid. All callers adjusted.
  6725. (displaced_step_in_progress_any_inferior): Adjust.
  6726. (displaced_step_in_progress_thread): Take a thread pointer instead
  6727. of a ptid_t. All callers adjusted.
  6728. (displaced_step_in_progress, add_displaced_stepping_state): Take
  6729. an inferior pointer instead of a pid. All callers adjusted.
  6730. (get_displaced_step_closure_by_addr): Adjust.
  6731. (remove_displaced_stepping_state): Take an inferior pointer
  6732. instead of a pid. All callers adjusted.
  6733. (displaced_step_prepare_throw, displaced_step_prepare)
  6734. (displaced_step_fixup): Take a thread pointer instead of a ptid_t.
  6735. All callers adjusted.
  6736. (start_step_over): Adjust.
  6737. (infrun_thread_ptid_changed): Remove bit updating ptids in the
  6738. displaced step queue.
  6739. (do_target_resume): Adjust.
  6740. (fetch_inferior_event): Use inferior_thread.
  6741. (context_switch, get_inferior_stop_soon): Take an
  6742. execution_control_state pointer instead of a ptid_t. All callers
  6743. adjusted.
  6744. (switch_to_thread_cleanup): Delete.
  6745. (stop_all_threads): Use scoped_restore_current_thread.
  6746. * inline-frame.c: Include "gdbthread.h".
  6747. (inline_state) <inline_state>: Take a thread pointer instead of a
  6748. ptid_t. All callers adjusted.
  6749. <ptid>: Delete, replaced by ...
  6750. <thread>: ... this new field.
  6751. (find_inline_frame_state): Take a thread pointer instead of a
  6752. ptid_t. All callers adjusted.
  6753. (skip_inline_frames, step_into_inline_frame)
  6754. (inline_skipped_frames, inline_skipped_symbol): Take a thread
  6755. pointer instead of a ptid_t. All callers adjusted.
  6756. * inline-frame.h (skip_inline_frames, step_into_inline_frame)
  6757. (inline_skipped_frames, inline_skipped_symbol): Likewise.
  6758. * linux-fork.c (delete_checkpoint_command): Adjust to use thread
  6759. pointers directly.
  6760. * linux-nat.c (get_detach_signal): Likewise.
  6761. * linux-thread-db.c (thread_from_lwp): New 'stopped' parameter.
  6762. (thread_db_notice_clone): Adjust.
  6763. (thread_db_find_new_threads_silently)
  6764. (thread_db_find_new_threads_2, thread_db_find_new_threads_1): Take
  6765. a thread pointer instead of a ptid_t. All callers adjusted.
  6766. * mi/mi-cmd-var.c: Include "inferior.h".
  6767. (mi_cmd_var_update_iter): Update to use thread pointers.
  6768. * mi/mi-interp.c (mi_new_thread): Update to use the thread's
  6769. inferior directly.
  6770. (mi_output_running_pid, mi_inferior_count): Delete, bits factored
  6771. out to ...
  6772. (mi_output_running): ... this new function.
  6773. (mi_on_resume_1): Adjust to use it.
  6774. (mi_user_selected_context_changed): Adjust to use inferior_thread.
  6775. * mi/mi-main.c (proceed_thread): Adjust to use thread pointers
  6776. directly.
  6777. (interrupt_thread_callback): : Adjust to use thread and inferior
  6778. pointers.
  6779. * proc-service.c: Include "gdbthread.h".
  6780. (ps_pglobal_lookup): Adjust to use the thread's inferior directly.
  6781. * progspace-and-thread.c: Include "inferior.h".
  6782. * progspace.c: Include "inferior.h".
  6783. * python/py-exitedevent.c (create_exited_event_object): Adjust to
  6784. hold a reference to an inferior_object.
  6785. * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust to use
  6786. inferior_thread.
  6787. * python/py-inferior.c (struct inferior_object): Give the type a
  6788. tag name instead of a typedef.
  6789. (python_on_normal_stop): No need to check if the current thread is
  6790. listed.
  6791. (inferior_to_inferior_object): Change return type to
  6792. inferior_object. All callers adjusted.
  6793. (find_thread_object): Delete, bits factored out to ...
  6794. (thread_to_thread_object): ... this new function.
  6795. * python/py-infthread.c (create_thread_object): Use
  6796. inferior_to_inferior_object.
  6797. (thpy_is_stopped): Use thread pointer directly.
  6798. (gdbpy_selected_thread): Use inferior_thread.
  6799. * python/py-record-btrace.c (btpy_list_object) <ptid>: Delete
  6800. field, replaced with ...
  6801. <thread>: ... this new field. All users adjusted.
  6802. (btpy_insn_or_gap_new): Drop const.
  6803. (btpy_list_new): Take a thread pointer instead of a ptid_t. All
  6804. callers adjusted.
  6805. * python/py-record.c: Include "gdbthread.h".
  6806. (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
  6807. a ptid_t. All callers adjusted.
  6808. (gdbpy_current_recording): Use inferior_thread.
  6809. * python/py-record.h (recpy_record_object) <ptid>: Delete
  6810. field, replaced with ...
  6811. <thread>: ... this new field. All users adjusted.
  6812. (recpy_element_object) <ptid>: Delete
  6813. field, replaced with ...
  6814. <thread>: ... this new field. All users adjusted.
  6815. (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
  6816. a ptid_t. All callers adjusted.
  6817. * python/py-threadevent.c: Include "gdbthread.h".
  6818. (get_event_thread): Use thread_to_thread_object.
  6819. * python/python-internal.h (struct inferior_object): Forward
  6820. declare.
  6821. (find_thread_object, find_inferior_object): Delete declarations.
  6822. (thread_to_thread_object, inferior_to_inferior_object): New
  6823. declarations.
  6824. * record-btrace.c: Include "inferior.h".
  6825. (require_btrace_thread): Use inferior_thread.
  6826. (record_btrace_frame_sniffer)
  6827. (record_btrace_tailcall_frame_sniffer): Use inferior_thread.
  6828. (get_thread_current_frame): Use scoped_restore_current_thread and
  6829. switch_to_thread.
  6830. (get_thread_current_frame): Use thread pointer directly.
  6831. (record_btrace_replay_at_breakpoint): Use thread's inferior
  6832. pointer directly.
  6833. * record-full.c: Include "inferior.h".
  6834. * regcache.c: Include "gdbthread.h".
  6835. (get_thread_arch_regcache): Use the inferior's address space
  6836. directly.
  6837. (get_thread_regcache, registers_changed_thread): New.
  6838. * regcache.h (get_thread_regcache(thread_info *thread)): New
  6839. overload.
  6840. (registers_changed_thread): New.
  6841. (remote_target) <remote_detach_1>: Swap order of parameters.
  6842. (remote_add_thread): <remote_add_thread>: Return the new thread.
  6843. (get_remote_thread_info(ptid_t)): New overload.
  6844. (remote_target::remote_notice_new_inferior): Use thread pointers
  6845. directly.
  6846. (remote_target::process_initial_stop_replies): Use
  6847. thread_info::set_running.
  6848. (remote_target::remote_detach_1, remote_target::detach)
  6849. (extended_remote_target::detach): Adjust.
  6850. * stack.c (frame_show_address): Use inferior_thread.
  6851. * target-debug.h (target_debug_print_thread_info_pp): New.
  6852. * target-delegates.c: Regenerate.
  6853. * target.c (default_thread_address_space): Delete.
  6854. (memory_xfer_partial_1): Use current_inferior.
  6855. (target_detach): Use current_inferior.
  6856. (target_thread_address_space): Delete.
  6857. (generic_mourn_inferior): Use current_inferior.
  6858. * target.h (struct target_ops) <thread_address_space>: Delete.
  6859. (target_thread_address_space): Delete.
  6860. * thread.c (init_thread_list): Use ALL_THREADS_SAFE. Use thread
  6861. pointers directly.
  6862. (delete_thread_1, delete_thread, delete_thread_silent): Take a
  6863. thread pointer instead of a ptid_t. Adjust all callers.
  6864. (ptid_to_global_thread_id, global_thread_id_to_ptid): Delete.
  6865. (first_thread_of_process): Delete, replaced by ...
  6866. (first_thread_of_inferior): ... this new function. All callers
  6867. adjusted.
  6868. (any_thread_of_process): Rename to ...
  6869. (any_thread_of_inferior): ... this, and take an inferior pointer.
  6870. (any_live_thread_of_process): Rename to ...
  6871. (any_live_thread_of_inferior): ... this, and take an inferior
  6872. pointer.
  6873. (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
  6874. (value_in_thread_stack_temporaries)
  6875. (get_last_thread_stack_temporary): Take a thread pointer instead
  6876. of a ptid_t. Adjust all callers.
  6877. (thread_info::set_running): New.
  6878. (validate_registers_access): Use inferior_thread.
  6879. (can_access_registers_ptid): Rename to ...
  6880. (can_access_registers_thread): ... this, and take a thread
  6881. pointer.
  6882. (print_thread_info_1): Adjust to compare thread pointers instead
  6883. of ptids.
  6884. (switch_to_no_thread, switch_to_thread): Make extern.
  6885. (scoped_restore_current_thread::~scoped_restore_current_thread):
  6886. Use m_thread pointer directly.
  6887. (scoped_restore_current_thread::scoped_restore_current_thread):
  6888. Use inferior_thread.
  6889. (thread_command): Use thread pointer directly.
  6890. (thread_num_make_value_helper): Use inferior_thread.
  6891. * top.c (execute_command): Use inferior_thread.
  6892. * tui/tui-interp.c: Include "inferior.h".
  6893. * varobj.c (varobj_create): Use inferior_thread.
  6894. (value_of_root_1): Use find_thread_global_id instead of
  6895. global_thread_id_to_ptid.
  6896. 2018-06-21 Alan Hayward <alan.hayward@arm.com>
  6897. * regcache.c (readable_regcache::read_part): Avoid memcpy when
  6898. possible.
  6899. (regcache::write_part): Likewise.
  6900. (readable_regcache::cooked_read_part): Update comment.
  6901. (readable_regcache::cooked_write_part): Likewise.
  6902. * regcache.h: (readable_regcache::read_part): Likewise.
  6903. (regcache::write_part): Likewise.
  6904. 2018-06-21 Richard Bunt <richard.bunt@arm.com>
  6905. Dirk Schubert <dirk.schubert@arm.com>
  6906. * aarch64-linux-nat.c (post_attach): New.
  6907. (aarch64_linux_nat_target::post_attach): Override post_attach to
  6908. record the number of hardware debug registers.
  6909. 2018-06-20 Tom Tromey <tom@tromey.com>
  6910. * python/py-param.c (add_setshow_generic): Make parameters const.
  6911. (parmpy_init): Update.
  6912. 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
  6913. * regcache.h (regcache_cooked_read_ftype): Rename to...
  6914. (register_read_ftype): ...this, change type to function_view.
  6915. (class reg_buffer) <save>: Remove src parameter.
  6916. (readonly_detached_regcache) <readonly_detached_regcache>: Make
  6917. parameter non-const in first overload. Remove src parameter in
  6918. second overload.
  6919. * regcache.c (do_cooked_read): Remove.
  6920. (readonly_detached_regcache::readonly_detached_regcache): Make
  6921. parameter non-const, adjust call to other constructor.
  6922. (reg_buffer::save): Remove src parameter.
  6923. * frame.c (do_frame_register_read): Remove.
  6924. (frame_save_as_regcache): Use lambda function.
  6925. * ppc-linux-tdep.c (ppu2spu_unwind_register): Change type of src
  6926. parameter to ppu2spu_data *.
  6927. (ppu2spu_sniffer): Use lambda function.
  6928. 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
  6929. * record-full.c (record_full_target::insert_breakpoint): Remove
  6930. "struct" keyword, add const.
  6931. 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
  6932. * common/common-defs.h (PACKAGE_NAME, PACKAGE_VERSION,
  6933. PACKAGE_STRING, PACKAGE_TARNAME): Undefine.
  6934. * configure.ac: Remove AC_PREREQ, add missing quoting.
  6935. * gnulib/configure.ac: Modernize usage of
  6936. AC_INIT/AM_INIT_AUTOMAKE. Remove AC_PREREQ.
  6937. * gnulib/update-gnulib.sh (AUTOCONF_VERSION): Bump to 2.69.
  6938. (AUTOMAKE_VERSION): Bump to 1.15.1.
  6939. * configure: Re-generate.
  6940. * config.in: Re-generate.
  6941. * aclocal.m4: Re-generate.
  6942. * gnulib/aclocal.m4: Re-generate.
  6943. * gnulib/config.in: Re-generate.
  6944. * gnulib/configure: Re-generate.
  6945. * gnulib/import/Makefile.in: Re-generate.
  6946. 2018-06-19 Pedro Alves <palves@redhat.com>
  6947. * minsyms.c (msym_prefer_to_msym_type): New, factored out from ...
  6948. (lookup_minimal_symbol_by_pc_section): ... here with
  6949. gdb_assert_not_reached added.
  6950. 2018-06-19 Pedro Alves <palves@redhat.com>
  6951. * inline-frame.c (stopped_by_user_bp_inline_frame): Replace PC
  6952. parameter with a block parameter. Compare location's block symbol
  6953. with the frame's block instead of addresses.
  6954. (skip_inline_frames): Pass the current block instead of the
  6955. frame's address. Break out as soon as we determine the frame
  6956. should not be skipped.
  6957. 2018-06-18 Tom Tromey <tom@tromey.com>
  6958. * solib-aix.c (solib_aix_get_section_offsets): Return
  6959. unique_xmalloc_ptr.
  6960. (solib_aix_solib_create_inferior_hook): Update.
  6961. 2018-06-18 Tom Tromey <tom@tromey.com>
  6962. * solib-darwin.c (darwin_current_sos): Use unique_xmalloc_ptr.
  6963. 2018-06-18 Tom Tromey <tom@tromey.com>
  6964. * solib-frv.c (frv_relocate_main_executable): Use
  6965. unique_xmalloc_ptr.
  6966. * solib-dsbt.c (dsbt_relocate_main_executable): Use
  6967. unique_xmalloc_ptr.
  6968. 2018-06-18 Tom Tromey <tom@tromey.com>
  6969. * objfiles.h (inhibit_section_map_updates): Update.
  6970. (resume_section_map_updates, resume_section_map_updates_cleanup):
  6971. Remove.
  6972. * solib-svr4.c (svr4_handle_solib_event): Update.
  6973. * objfiles.c (inhibit_section_map_updates): Return
  6974. scoped_restore_tmpl<int>.
  6975. (resume_section_map_updates, resume_section_map_updates_cleanup):
  6976. Remove.
  6977. 2018-06-18 Tom Tromey <tom@tromey.com>
  6978. * valprint.h (read_string): Update.
  6979. * valprint.c (read_string): Change type of "buffer".
  6980. (val_print_string): Update.
  6981. * python/py-value.c (valpy_string): Update.
  6982. * language.h (struct language_defn) <la_get_string>: Change
  6983. type of "buffer".
  6984. (default_get_string, c_get_string): Update.
  6985. * language.c (default_get_string): Change type of "buffer".
  6986. * guile/scm-value.c (gdbscm_value_to_string): Update.
  6987. * c-lang.c (c_get_string): Change type of "buffer".
  6988. 2018-06-18 Tom Tromey <tom@tromey.com>
  6989. * ser-mingw.c (struct pipe_state_destroyer): New.
  6990. (pipe_state_up): New typedef.
  6991. (cleanup_pipe_state): Remove.
  6992. (pipe_windows_open): Use pipe_state_up. Don't release argv.
  6993. 2018-06-18 Tom Tromey <tom@tromey.com>
  6994. * rust-lang.h (rust_yyerror): Don't declare.
  6995. * rust-lang.c (rust_language_defn): Update.
  6996. * rust-exp.y (yyerror): Now static.
  6997. * parse.c (parse_exp_in_context_1): Update.
  6998. * p-lang.h (p_yyerror): Don't declare.
  6999. * p-lang.c (p_language_defn): Update.
  7000. * p-exp.y (yyerror): Now static.
  7001. * opencl-lang.c (opencl_language_defn): Update.
  7002. * objc-lang.c (objc_language_defn): Update.
  7003. * m2-lang.h (m2_yyerror): Don't declare.
  7004. * m2-lang.c (m2_language_defn): Update.
  7005. * m2-exp.y (yyerror): Now static.
  7006. * language.h (struct language_defn) <la_error>: Remove.
  7007. * language.c (unk_lang_error): Remove.
  7008. (unknown_language_defn, auto_language_defn): Remove.
  7009. * go-lang.h (go_yyerror): Don't declare.
  7010. * go-lang.c (go_language_defn): Update.
  7011. * go-exp.y (yyerror): Now static.
  7012. * f-lang.h (f_yyerror): Don't declare.
  7013. * f-lang.c (f_language_defn): Update.
  7014. * f-exp.y (yyerror): Now static.
  7015. * d-lang.h (d_yyerror): Don't declare.
  7016. * d-lang.c (d_language_defn): Update.
  7017. * d-exp.y (yyerror): Now static.
  7018. * c-lang.h (c_yyerror): Don't declare.
  7019. * c-lang.c (c_language_defn, cplus_language_defn)
  7020. (asm_language_defn, minimal_language_defn): Update.
  7021. * c-exp.y (yyerror): Now static.
  7022. * ada-lang.h (ada_yyerror): Don't declare.
  7023. * ada-lang.c (ada_language_defn): Update.
  7024. * ada-exp.y (yyerror): Now static.
  7025. 2018-06-18 Alan Hayward <alan.hayward@arm.com>
  7026. * aarch64-linux-nat.c (fetch_sveregs_from_thread): New function.
  7027. (store_sveregs_to_thread): Likewise.
  7028. (aarch64_linux_fetch_inferior_registers): Check for SVE.
  7029. (aarch64_linux_store_inferior_registers): Likewise.
  7030. * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs): New
  7031. function.
  7032. (aarch64_sve_regs_copy_to_regcache): Likewise.
  7033. (aarch64_sve_regs_copy_from_regcache): Likewise.
  7034. * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_sveregs): New
  7035. declaration.
  7036. (aarch64_sve_regs_copy_to_regcache): Likewise.
  7037. (aarch64_sve_regs_copy_from_regcache): Likewise.
  7038. (sve_context): Structure from Linux headers.
  7039. (SVE_SIG_ZREGS_SIZE): Define from Linux headers.
  7040. (SVE_SIG_ZREG_SIZE): Likewise.
  7041. (SVE_SIG_PREG_SIZE): Likewise.
  7042. (SVE_SIG_FFR_SIZE): Likewise.
  7043. (SVE_SIG_REGS_OFFSET): Likewise.
  7044. (SVE_SIG_ZREGS_OFFSET): Likewise.
  7045. (SVE_SIG_ZREG_OFFSET): Likewise.
  7046. (SVE_SIG_ZREGS_SIZE): Likewise.
  7047. (SVE_SIG_PREGS_OFFSET): Likewise.
  7048. (SVE_SIG_PREG_OFFSET): Likewise.
  7049. (SVE_SIG_PREGS_SIZE): Likewise.
  7050. (SVE_SIG_FFR_OFFSET): Likewise.
  7051. (SVE_SIG_REGS_SIZE): Likewise.
  7052. (SVE_SIG_CONTEXT_SIZE): Likewise.
  7053. (SVE_PT_REGS_MASK): Likewise.
  7054. (SVE_PT_REGS_FPSIMD): Likewise.
  7055. (SVE_PT_REGS_SVE): Likewise.
  7056. (SVE_PT_VL_INHERIT): Likewise.
  7057. (SVE_PT_VL_ONEXEC): Likewise.
  7058. (SVE_PT_REGS_OFFSET): Likewise.
  7059. (SVE_PT_FPSIMD_OFFSET): Likewise.
  7060. (SVE_PT_FPSIMD_SIZE): Likewise.
  7061. (SVE_PT_SVE_ZREG_SIZE): Likewise.
  7062. (SVE_PT_SVE_PREG_SIZE): Likewise.
  7063. (SVE_PT_SVE_FFR_SIZE): Likewise.
  7064. (SVE_PT_SVE_FPSR_SIZE): Likewise.
  7065. (SVE_PT_SVE_FPCR_SIZE): Likewise.
  7066. (__SVE_SIG_TO_PT): Likewise.
  7067. (SVE_PT_SVE_OFFSET): Likewise.
  7068. (SVE_PT_SVE_ZREGS_OFFSET): Likewise.
  7069. (SVE_PT_SVE_ZREG_OFFSET): Likewise.
  7070. (SVE_PT_SVE_ZREGS_SIZE): Likewise.
  7071. (SVE_PT_SVE_PREGS_OFFSET): Likewise.
  7072. (SVE_PT_SVE_PREG_OFFSET): Likewise.
  7073. (SVE_PT_SVE_PREGS_SIZE): Likewise.
  7074. (SVE_PT_SVE_FFR_OFFSET): Likewise.
  7075. (SVE_PT_SVE_FPSR_OFFSET): Likewise.
  7076. (SVE_PT_SVE_FPCR_OFFSET): Likewise.
  7077. (SVE_PT_SVE_SIZE): Likewise.
  7078. (SVE_PT_SIZE): Likewise.
  7079. (HAS_SVE_STATE): New define.
  7080. 2018-06-18 Alan Hayward <alan.hayward@arm.com>
  7081. * nat/aarch64-sve-linux-sigcontext.h: New file.
  7082. * nat/aarch64-sve-linux-ptrace.h (SVE_VQ_BYTES): Move to
  7083. new files.
  7084. (SVE_VQ_MIN): Likewise.
  7085. (SVE_VQ_MAX): Likewise.
  7086. (SVE_VL_MIN): Likewise.
  7087. (SVE_VL_MAX): Likewise.
  7088. (SVE_NUM_ZREGS): Likewise.
  7089. (SVE_NUM_PREGS): Likewise.
  7090. (sve_vl_valid): Likewise.
  7091. (struct user_sve_header): Likewise.
  7092. 2018-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
  7093. Richard Bunt <Richard.Bunt@arm.com>
  7094. * linux-nat.c (stop_wait_callback): Don't discard SIGSTOP if it
  7095. was requested by GDB.
  7096. 2018-06-15 Tom de Vries <tdevries@suse.de>
  7097. * MAINTAINERS (Write After Approval): Add Tom de Vries.
  7098. 2018-06-14 Simon Marchi <simon.marchi@polymtl.ca>
  7099. * gnulib/update-gnulib.sh: Print expected versions of
  7100. autoconf/aclocal.
  7101. 2018-06-14 Simon Marchi <simon.marchi@ericsson.com>
  7102. * arch-utils.c (default_type_align): Use type_length_units.
  7103. * gdbtypes.c (type_align): Use type_length_units.
  7104. 2018-06-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
  7105. * cli/cli-script.c (_initialize_cli_script): Fix online documentation
  7106. of 'define' command.
  7107. 2018-06-14 Tom de Vries <tdevries@suse.de>
  7108. PR cli/22573
  7109. * infcmd.c (print_return_value_1): Use get_user_print_options instead of
  7110. get_no_prettyformat_print_options.
  7111. 2018-06-13 Simon Marchi <simon.marchi@ericsson.com>
  7112. * sparc-nat.h: Include target.h.
  7113. * sparc64-linux-nat.c (class sparc64_linux_nat_target)
  7114. <fetch_registers>: Remove this argument in function call.
  7115. <store_registers>: Remove this argument in function call, remove
  7116. extra semicolon.
  7117. <low_forget_process>: Call sparc64_forget_process instead of
  7118. sparc_forget_process.
  7119. 2018-06-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
  7120. * procfs.c (_initialize_procfs): Use add_inf_child_target.
  7121. (procfs_target::make_corefile_notes): Adjust to new
  7122. target_read_alloc return type.
  7123. 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
  7124. Stephen Roberts <stephen.roberts@arm.com>
  7125. PR gdb/22882
  7126. * infrun.c (fetch_inferior_event): If GDB is not proceeding then
  7127. run INF_EXEC_COMPLETE handler, even when not calling normal_stop.
  7128. Move should_notify_stop local into more inner scope.
  7129. 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
  7130. Stephen Roberts <stephen.roberts@arm.com>
  7131. PR gdb/22882
  7132. * infrun.c (resume_1): Add call to mark_async_event_handler.
  7133. 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
  7134. * infrun.c (do_target_wait): Change old version of $pc printed.
  7135. 2018-06-11 Simon Marchi <simon.marchi@ericsson.com>
  7136. * dwarf2read.c (read_index_from_section): Rename to...
  7137. (read_gdb_index_from_section): ... this, update all callers.
  7138. (dwarf2_read_index): Rename to...
  7139. (dwarf2_read_gdb_index): ... this, update all callers.
  7140. 2018-06-11 John David Anglin <danglin@gcc.gnu.org>
  7141. * hppa-linux-nat.c
  7142. (hppa_linux_nat_target::fetch_inferior_registers): Rename to
  7143. hppa_linux_nat_target::fetch_registers.
  7144. 2018-06-11 Alan Hayward <alan.hayward@arm.com>
  7145. * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Add mappings.
  7146. * aarch64-tdep.h (AARCH64_DWARF_SVE_VG): Add define.
  7147. (AARCH64_DWARF_SVE_FFR): Likewise.
  7148. (AARCH64_DWARF_SVE_P0): Likewise.
  7149. (AARCH64_DWARF_SVE_Z0): Likewise.
  7150. 2018-06-11 Alan Hayward <alan.hayward@arm.com>
  7151. * common/common-regcache.h (raw_compare): New function.
  7152. * regcache.c (regcache::raw_compare): Likewise.
  7153. * regcache.h (regcache::raw_compare): New declaration.
  7154. 2018-06-11 Alan Hayward <alan.hayward@arm.com>
  7155. * common/common-regcache.h (reg_buffer_common): New structure.
  7156. * regcache.c (reg_buffer::invalidate): Move from detached_regcache.
  7157. (reg_buffer::raw_supply): Likewise.
  7158. (reg_buffer::raw_supply_integer): Likewise.
  7159. (reg_buffer::raw_supply_zeroed): Likewise.
  7160. (reg_buffer::raw_collect): Likewise.
  7161. (reg_buffer::raw_collect_integer): Likewise.
  7162. * regcache.h (reg_buffer::invalidate): Move from detached_regcache.
  7163. (reg_buffer::raw_supply): Likewise.
  7164. (reg_buffer::raw_supply_integer): Likewise.
  7165. (reg_buffer::raw_supply_zeroed): Likewise.
  7166. (reg_buffer::raw_collect): Likewise.
  7167. (reg_buffer::raw_collect_integer): Likewise.
  7168. 2018-06-10 Tom Tromey <tom@tromey.com>
  7169. * remote.c (stop_reply_p): Remove typedef. Don't declare queue.
  7170. (class remote_state) <stop_reply_queue>: Now std::vector.
  7171. (remote_state::~remote_state)
  7172. (remote_target::stop_reply_queue_length): Update.
  7173. (struct queue_iter_param, remove_child_of_pending_fork)
  7174. (struct check_pending_event_prevents_wildcard_vcont_callback_data)
  7175. (check_pending_event_prevents_wildcard_vcont_callback)
  7176. (remove_stop_reply_for_inferior)
  7177. (remove_stop_reply_of_remote_state)
  7178. (remote_notif_remove_once_on_match)
  7179. (stop_reply_match_ptid_and_ws)
  7180. (remote_kill_child_of_pending_fork): Remove.
  7181. (remote_target::remove_new_fork_children)
  7182. (remote_target::check_pending_events_prevent_wildcard_vcont)
  7183. (remote_target::discard_pending_stop_replies)
  7184. (remote_target::discard_pending_stop_replies_in_queue)
  7185. (remote_target::remote_notif_remove_queued_reply)
  7186. (remote_target::queued_stop_reply)
  7187. (remote_target::push_stop_reply, remote_target::peek_stop_reply)
  7188. (remote_target::wait, remote_target::kill_new_fork_children)
  7189. (remote_target::async): Update.
  7190. 2018-06-10 Tom Tromey <tom@tromey.com>
  7191. * record-full.c (record_full_arch_list_cleanups): Remove.
  7192. (record_full_message): Use try/catch.
  7193. (record_full_wait_cleanups): Remove.
  7194. (record_full_wait_1): Use try/catch.
  7195. (record_full_restore): Likewise.
  7196. 2018-06-10 Tom Tromey <tom@tromey.com>
  7197. * record-full.c (record_full_breakpoint_p): Remove typedef. Don't
  7198. declare VEC. Add constructor.
  7199. <in_target_beneath>: Now bool.
  7200. (record_full_breakpoints): Now a std::vector, static.
  7201. (record_full_sync_record_breakpoints)
  7202. (record_full_init_record_breakpoints)
  7203. (record_full_target::insert_breakpoint)
  7204. (record_full_target::remove_breakpoint): Update. Don't use XNEW.
  7205. 2018-06-10 Simon Marchi <simon.marchi@polymtl.ca>
  7206. * dwarf2read.c (process_cu_includes): Remove struct keyword.
  7207. * serial.c (serial_interface_lookup): Remove struct keyword.
  7208. 2018-06-10 Tom Tromey <tom@tromey.com>
  7209. * procfs.c (procfs_target::xfer_partial): Use "beneath" as a
  7210. method.
  7211. * nto-procfs.c (nto_procfs_target::xfer_partial): Use "beneath" as
  7212. a method.
  7213. * go32-nat.c (go32_nat_target::xfer_partial): Use "beneath" as a
  7214. method.
  7215. * arm-linux-nat.c (arm_linux_nat_target::read_description): Use
  7216. "beneath" as a method.
  7217. * arm-fbsd-nat.c (arm_fbsd_nat_target::read_description):
  7218. Use "beneath" as a method.
  7219. 2018-06-10 Tom Tromey <tom@tromey.com>
  7220. * tracefile.c (struct trace_file_writer_deleter): New.
  7221. <operator()>: Rename from trace_file_writer_xfree.
  7222. (trace_file_writer_up): New typedef.
  7223. (tsave_command, trace_save_tfile, trace_save_ctf): Update.
  7224. 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
  7225. * regcache.h (reg_buffer) <~reg_buffer>: Use default destructor.
  7226. <m_registers, m_register_status>: Change type to
  7227. std::unique_ptr.
  7228. * regcache.c (reg_buffer::reg_buffer): Use new instead of
  7229. XCNEWVEC.
  7230. 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
  7231. * common/common-regcache.h (enum register_status): Add
  7232. underlying type "signed char".
  7233. * regcache.h (reg_buffer) <m_register_status>: Change type to
  7234. register_status *.
  7235. * regcache.c (reg_buffer::reg_buffer): Alocate arrays of
  7236. register_status instead of signed char.
  7237. (reg_buffer::save): Use REG_UNKNOWN instead of 0.
  7238. (reg_buffer::get_register_status): Remove cast.
  7239. (readable_regcache::raw_read): Remove cast.
  7240. (readable_regcache::cooked_read): Remove cast.
  7241. 2018-06-09 Tom Tromey <tom@tromey.com>
  7242. * source.c (reverse_search_command, forward_search_command): Use
  7243. scoped_fd.
  7244. 2018-06-09 Tom Tromey <tom@tromey.com>
  7245. * serial.c (serial_ops_p): Remove typedef. Don't declare VEC.
  7246. (serial_ops_list): Now static, std::vector.
  7247. (serial_interface_lookup, serial_add_interface): Update.
  7248. 2018-06-09 Tom Tromey <tom@tromey.com>
  7249. * dwarf2read.c (process_cu_includes): Update.
  7250. (process_full_comp_unit): Update.
  7251. * dwarf2read.h (struct dwarf2_per_objfile) <just_read_cus>: Now a
  7252. std::vector.
  7253. 2018-06-08 Paul Koning <paul_koning@dell.com>
  7254. PR gdb/23252
  7255. * python/python.c (do_start_initialization):
  7256. Avoid call to internal Python API.
  7257. (init__gdb_module): New function.
  7258. 2018-06-08 Gary Benson <gbenson@redhat.com>
  7259. * linux-thread-db.c (valprint.h): New include.
  7260. (struct check_thread_db_info): New structure.
  7261. (check_thread_db_on_load, tdb_testinfo): New static globals.
  7262. (check_thread_db, check_thread_db_callback): New functions.
  7263. (try_thread_db_load_1): Run integrity checks if requested.
  7264. (maintenance_check_libthread_db): New function.
  7265. (_initialize_thread_db): Register "maint check libthread-db"
  7266. and "maint set/show check-libthread-db".
  7267. * NEWS: Mention the above new commands.
  7268. 2018-06-08 Tom Tromey <tom@tromey.com>
  7269. * windows-nat.c (windows_nat_target::xfer_partial): "beneath" is
  7270. now a method.
  7271. 2018-06-08 Tom Tromey <tom@tromey.com>
  7272. * btrace.c (parse_xml_raw): Use gdb::unique_xmalloc_ptr.
  7273. 2018-06-08 Tom Tromey <tom@tromey.com>
  7274. * common/btrace-common.h (struct btrace_data): Add constructor,
  7275. destructor, move assignment operator.
  7276. <empty, clear, fini>: New methods.
  7277. <format>: Initialize.
  7278. (btrace_data_init, btrace_data_fini, btrace_data_clear)
  7279. (btrace_data_empty): Don't declare.
  7280. * common/btrace-common.c (btrace_data_init): Remove.
  7281. (btrace_data::fini): Rename from btrace_data_fini.
  7282. (btrace_data::empty): Rename from btrace_data_empty.
  7283. (btrace_data::clear): Rename from btrace_data_clear. Return
  7284. bool.
  7285. * btrace.h (make_cleanup_btrace_data): Don't declare.
  7286. * btrace.c (btrace_add_pc, btrace_stitch_trace, btrace_clear)
  7287. (parse_xml_btrace): Update.
  7288. (do_btrace_data_cleanup, make_cleanup_btrace_data): Remove.
  7289. (maint_btrace_clear_packet_history_cmd): Update.
  7290. 2018-06-07 Pedro Alves <palves@redhat.com>
  7291. * target.h (target_ops) <beneath>: Now a method. All references
  7292. updated.
  7293. (class target_stack): New.
  7294. * target.c (g_target_stack): New.
  7295. (g_current_top_target): Delete.
  7296. (current_top_target): Get the top target out of g_target_stack.
  7297. (target_stack::push, target_stack::unpush): New.
  7298. (push_target, unpush_target): Reimplement.
  7299. (target_is_pushed): Reimplement in terms of g_target_stack.
  7300. (target_ops::beneath, target_stack::find_beneath): New.
  7301. 2018-06-07 Pedro Alves <palves@redhat.com>
  7302. * target.h (find_target_beneath): Delete declaration.
  7303. * target.c (find_target_beneath): Delete definition.
  7304. * aix-thread.c: All callers of find_target_beneath adjusted to
  7305. call target_ops::beneath instead.
  7306. * bsd-uthread.c: Likewise.
  7307. * linux-thread-db.c: Likewise.
  7308. * ravenscar-thread.c: Likewise.
  7309. * sol-thread.c: Likewise.
  7310. * spu-multiarch.c: Likewise.
  7311. 2018-06-07 Pedro Alves <palves@redhat.com>
  7312. * target.h (target_ops) <beneath>: Now a method. All references
  7313. updated.
  7314. (target_ops) <m_beneath>: New.
  7315. * target.c (target_ops::beneath): New.
  7316. * corelow.c: Adjust all references to target_ops::beneath.
  7317. * linux-thread-db.c: Likewise.
  7318. * make-target-delegates: Likewise.
  7319. * record-btrace.c: Likewise.
  7320. * record-full.c: Likewise.
  7321. * remote.c: Likewise.
  7322. * target.c: Likewise.
  7323. * target-delegates.c: Regenerate.
  7324. 2018-06-07 Pedro Alves <palves@redhat.com>
  7325. * target.h (target_stack): Delete.
  7326. (current_top_target): Declare function.
  7327. * target.c (target_stack): Delete.
  7328. (g_current_top_target): New.
  7329. (current_top_target): New function.
  7330. * auxv.c: Use current_top_target instead of target_stack
  7331. throughout.
  7332. * avr-tdep.c: Likewise.
  7333. * breakpoint.c: Likewise.
  7334. * corefile.c: Likewise.
  7335. * elfread.c: Likewise.
  7336. * eval.c: Likewise.
  7337. * exceptions.c: Likewise.
  7338. * frame.c: Likewise.
  7339. * gdbarch-selftests.c: Likewise.
  7340. * gnu-v3-abi.c: Likewise.
  7341. * ia64-tdep.c: Likewise.
  7342. * ia64-vms-tdep.c: Likewise.
  7343. * infcall.c: Likewise.
  7344. * infcmd.c: Likewise.
  7345. * infrun.c: Likewise.
  7346. * linespec.c: Likewise.
  7347. * linux-tdep.c: Likewise.
  7348. * minsyms.c: Likewise.
  7349. * ppc-linux-nat.c: Likewise.
  7350. * ppc-linux-tdep.c: Likewise.
  7351. * procfs.c: Likewise.
  7352. * regcache.c: Likewise.
  7353. * remote.c: Likewise.
  7354. * rs6000-tdep.c: Likewise.
  7355. * s390-linux-nat.c: Likewise.
  7356. * s390-tdep.c: Likewise.
  7357. * solib-aix.c: Likewise.
  7358. * solib-darwin.c: Likewise.
  7359. * solib-dsbt.c: Likewise.
  7360. * solib-spu.c: Likewise.
  7361. * solib-svr4.c: Likewise.
  7362. * solib-target.c: Likewise.
  7363. * sparc-tdep.c: Likewise.
  7364. * sparc64-tdep.c: Likewise.
  7365. * spu-tdep.c: Likewise.
  7366. * symfile.c: Likewise.
  7367. * symtab.c: Likewise.
  7368. * target-descriptions.c: Likewise.
  7369. * target-memory.c: Likewise.
  7370. * target.c: Likewise.
  7371. * target.h: Likewise.
  7372. * tracefile-tfile.c: Likewise.
  7373. * tracepoint.c: Likewise.
  7374. * valops.c: Likewise.
  7375. * valprint.c: Likewise.
  7376. * value.c: Likewise.
  7377. * windows-tdep.c: Likewise.
  7378. * mi/mi-main.c: Likewise.
  7379. 2018-06-07 Tom Tromey <tom@tromey.com>
  7380. * valprint.h (build_address_symbolic): Declare.
  7381. * printcmd.c (print_address_symbolic): Update.
  7382. (build_address_symbolic): Change "name" and "filename" to
  7383. std::string.
  7384. * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
  7385. Update.
  7386. * defs.h (build_address_symbolic): Remove declaration.
  7387. 2018-06-07 Alan Hayward <alan.hayward@arm.com>
  7388. * aarch64-tdep.c (AARCH64_SVE_V0_REGNUM): Add define.
  7389. (aarch64_vnv_type): Add function.
  7390. (aarch64_pseudo_register_name): Add V regs for SVE.
  7391. (aarch64_pseudo_register_type): Likewise.
  7392. (aarch64_pseudo_register_reggroup_p): Likewise.
  7393. (aarch64_pseudo_read_value_2): Use V0 offset for SVE
  7394. (aarch64_pseudo_read_value): Add V regs for SVE.
  7395. (aarch64_pseudo_write_2): Use V0 offset for SVE
  7396. (aarch64_pseudo_write): Add V regs for SVE.
  7397. * aarch64-tdep.h (struct gdbarch_tdep): Add vnv_type.
  7398. 2018-06-06 Sergio Durigan Junior <sergiodj@redhat.com>
  7399. * arch/aarch64.h (sve_vq_from_vl): Guard with #ifndef.
  7400. (sve_vl_from_vq): Likewise.
  7401. 2018-06-05 Tom Tromey <tom@tromey.com>
  7402. * cli/cli-cmds.c (show_version): Update.
  7403. * top.c (print_gdb_version): Add "interactive" parameter.
  7404. Update.
  7405. * main.c (captured_main_1): Update.
  7406. * top.h (print_gdb_version): Add "interactive" parameter and a
  7407. comment.
  7408. 2018-06-05 David Malcolm <dmalcolm@redhat.com>
  7409. * common/enum-flags.h: Add trailing semicolon to example in
  7410. comment.
  7411. 2018-06-05 Tom Tromey <tom@tromey.com>
  7412. PR cli/12326:
  7413. * NEWS: Add entry about pager.
  7414. * utils.c (pagination_disabled_for_command): New global.
  7415. (prompt_for_continue): Allow "c" response to prompt.
  7416. (reinitialize_more_filter): Clear
  7417. pagination_disabled_for_command.
  7418. (fputs_maybe_filtered): Check pagination_disabled_for_command.
  7419. 2018-06-04 Tom Tromey <tom@tromey.com>
  7420. * ada-lang.h (ada_lookup_symbol_list): Update.
  7421. * ada-lang.c (resolve_subexp): Update.
  7422. (symbols_are_identical_enums): Change type of syms. Remove nsyms
  7423. parameter.
  7424. (remove_extra_symbols, remove_irrelevant_renamings): Likewise.
  7425. (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Change
  7426. results parameter to std::vector.
  7427. (ada_iterate_over_symbols, ada_lookup_symbol, get_var_value):
  7428. Update.
  7429. * ada-exp.y (block_lookup): Update.
  7430. (select_possible_type_sym): Change type of syms. Remove nsyms
  7431. parameter.
  7432. (write_var_or_type, write_name_assoc): Update.
  7433. 2018-06-04 Joel Brobecker <brobecker@adacore.com>
  7434. * windows-nat.c (windows_nat_target::xfer_partial): Return
  7435. TARGET_XFER_E_IO if we need to delegate to the target beneath
  7436. but BENEATH is NULL.
  7437. 2018-06-04 Simon Marchi <simon.marchi@ericsson.com>
  7438. * Makefile.in (config.status): Add configure.nat as a
  7439. dependency.
  7440. 2018-06-04 Tom Tromey <tom@tromey.com>
  7441. * cp-name-parser.y (cpname_state): Add method declarations.
  7442. (HANDLE_QUAL): Update.
  7443. (cpname_state::d_grab, cpname_state::fill_comp)
  7444. (cpname_state::make_operator, cpname_state::make_dtor)
  7445. (cpname_state::make_builtin_type, cpname_state::make_name)
  7446. (cpname_state::d_qualify, cpname_state::d_int_type)
  7447. (cpname_state::d_unary, cpname_state::d_binary): Now methods.
  7448. (%union): Move earlier.
  7449. 2018-06-04 Alan Hayward <alan.hayward@arm.com>
  7450. * elfread.c (elf_symfile_segments): Use ELF_SECTION_IN_SEGMENT.
  7451. 2018-06-04 Alan Hayward <alan.hayward@arm.com>
  7452. * aarch64-tdep.c (aarch64_pseudo_read_value_1): New helper func.
  7453. (aarch64_pseudo_write_1): Likewise.
  7454. (aarch64_pseudo_read_value): Use helper.
  7455. (aarch64_pseudo_write): Likewise.
  7456. 2018-06-04 Pedro Alves <palves@redhat.com>
  7457. * darwin-nat.c (darwin_ops): Delete.
  7458. (darwin_attach_pid): Use get_native_target.
  7459. 2018-06-04 Alan Hayward <alan.hayward@arm.com>
  7460. * aarch64-tdep.c (aarch64_get_tdesc_vq): Use uint64_t for VQ.
  7461. * aarch64-tdep.h (struct gdbarch_tdep): Likewise.
  7462. 2018-06-04 Alan Hayward <alan.hayward@arm.com>
  7463. * aarch64-linux-nat.c (aarch64_linux_read_description): Support SVE.
  7464. * aarch64-tdep.c (aarch64_get_tdesc_vq): New function.
  7465. (aarch64_gdbarch_init): Check for SVE.
  7466. * aarch64-tdep.h (gdbarch_tdep::has_sve): New function.
  7467. 2018-06-04 Alan Hayward <alan.hayward@arm.com>
  7468. * aarch64-tdep.c (aarch64_read_description): Use uint64_t for VQ.
  7469. * aarch64-tdep.h (aarch64_read_description): Likewise.
  7470. * arch/aarch64.c (aarch64_create_target_description): Likewise.
  7471. * arch/aarch64.h (aarch64_create_target_description): Likewise.
  7472. * features/aarch64-sve.c (create_feature_aarch64_sve): Likewise.
  7473. * nat/aarch64-sve-linux-ptrace.c(aarch64_sve_get_vq): Likewise.
  7474. * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_vq): Likewise.
  7475. 2018-06-02 Simon Marchi <simon.marchi@ericsson.com>
  7476. * value.c (value_fetch_lazy_bitfield): New.
  7477. (value_fetch_lazy_memory): New.
  7478. (value_fetch_lazy_register): New.
  7479. (value_fetch_lazy): Factor out to smaller functions.
  7480. 2018-06-01 Tom Tromey <tom@tromey.com>
  7481. * cp-name-parser.y (backslashable, represented): Now const.
  7482. 2018-06-01 Tom Tromey <tom@tromey.com>
  7483. * cp-name-parser.y: Include parser-defs.h.
  7484. (parser_fprintf): Remove declaration.
  7485. 2018-06-01 Tom Tromey <tom@tromey.com>
  7486. * cp-name-parser.y: Use %pure-parser, %lex-param, and
  7487. %parse-param.
  7488. (lexptr, prev_lexptr, error_lexptr, global_errmsg, demangle_info)
  7489. (global_result): Remove globals.
  7490. (struct cpname_state): New.
  7491. (yyparse): Don't declare.
  7492. (yylex, yyerror): Move declarations after %union.
  7493. (d_grab, fill_comp, make_operator, make_dtor, make_builtin_type)
  7494. (make_name): Add state parameter.
  7495. Update all callers.
  7496. (d_qualify, d_int_type, d_unary, d_binary, parse_number) Add state
  7497. parameter.
  7498. (HANDLE_QUAL, HANDLE_SPECIAL, HANDLE_TOKEN2, HANDLE_TOKEN3):
  7499. Update.
  7500. (yylex): Add lvalp, state parameters.
  7501. (yyerror): Add state parameter.
  7502. (cp_demangled_name_to_comp): Update.
  7503. 2018-06-01 Tom Tromey <tom@tromey.com>
  7504. * cp-name-parser.y (parser_fprintf): Declare.
  7505. (GDB_YY_REMAP_PREFIX): Define.
  7506. Include yy-remap.h. Don't redefine yy* identifiers.
  7507. 2018-06-01 Tom Tromey <tom@tromey.com>
  7508. * python/py-type.c (typy_legacy_template_argument): Update.
  7509. * cp-support.h (cp_demangled_name_to_comp): Update.
  7510. * cp-name-parser.y (cp_demangled_name_to_comp): Change errmsg
  7511. parameter to be a "std::string *".
  7512. (main): Update.
  7513. 2018-06-01 H.J. Lu <hongjiu.lu@intel.com>
  7514. * ada-lex.l: Include "diagnostics.h" instead of
  7515. "common/diagnostics.h".
  7516. * unittests/environ-selftests.c: Likewise.
  7517. * common/diagnostics.h: Moved to ../include.
  7518. 2018-06-01 Joel Brobecker <brobecker@adacore.com>
  7519. * breakpoint.c (breakpoint_re_set): Temporarily force language_mode
  7520. to language_mode_manual while calling breakpoint_re_set_one.
  7521. 2018-06-01 Tom Tromey <tom@tromey.com>
  7522. * valops.c (value_cast_structs, destructor_name_p): Update.
  7523. * symtab.c (gdb_mangle_name): Update.
  7524. * stabsread.c (define_symbol, read_cpp_abbrev, read_baseclasses):
  7525. Update.
  7526. * p-valprint.c (pascal_object_is_vtbl_ptr_type)
  7527. (pascal_object_print_value_fields, pascal_object_print_value):
  7528. Update.
  7529. * p-typeprint.c (pascal_type_print_derivation_info): Update.
  7530. * linespec.c (find_methods): Update.
  7531. * gdbtypes.h (type_name_no_tag): Remove.
  7532. (type_name_or_error): Rename from type_name_no_tag_or_error.
  7533. * gdbtypes.c (type_name_no_tag): Remove.
  7534. (type_name_or_error): Rename from type_name_no_tag_or_error.
  7535. (lookup_struct_elt_type, check_typedef): Update.
  7536. * expprint.c (print_subexp_standard): Update.
  7537. * dwarf2read.c (dwarf2_add_field, load_partial_dies): Update.
  7538. * d-namespace.c (d_lookup_nested_symbol): Update.
  7539. * cp-valprint.c (cp_is_vtbl_ptr_type, cp_print_value_fields)
  7540. (cp_print_class_member): Update.
  7541. * cp-namespace.c (cp_lookup_nested_symbol): Update.
  7542. * completer.c (add_struct_fields): Update.
  7543. * c-typeprint.c (cp_type_print_derivation_info)
  7544. (c_type_print_varspec_prefix, c_type_print_base_struct_union):
  7545. Update.
  7546. * ada-lang.c (parse_old_style_renaming, xget_renaming_scope)
  7547. (ada_prefer_type, ada_is_exception_sym): Update.
  7548. 2018-06-01 Tom Tromey <tom@tromey.com>
  7549. * valops.c (enum_constant_from_type, value_namespace_elt)
  7550. (value_maybe_namespace_elt): Update.
  7551. * valarith.c (find_size_for_pointer_math): Update.
  7552. * target-descriptions.c (make_gdb_type): Update.
  7553. * symmisc.c (print_symbol): Update.
  7554. * stabsread.c (define_symbol, read_type)
  7555. (complain_about_struct_wipeout, add_undefined_type)
  7556. (cleanup_undefined_types_1): Update.
  7557. * rust-lang.c (rust_tuple_type_p, rust_slice_type_p)
  7558. (rust_range_type_p, val_print_struct, rust_print_struct_def)
  7559. (rust_internal_print_type, rust_composite_type)
  7560. (rust_evaluate_funcall, rust_evaluate_subexp)
  7561. (rust_inclusive_range_type_p): Update.
  7562. * python/py-type.c (typy_get_tag): Update.
  7563. * p-typeprint.c (pascal_type_print_base): Update.
  7564. * mdebugread.c (parse_symbol, parse_type): Update.
  7565. * m2-typeprint.c (m2_long_set, m2_record_fields, m2_enum):
  7566. Update.
  7567. * guile/scm-type.c (gdbscm_type_tag): Update.
  7568. * go-lang.c (sixg_string_p): Update.
  7569. * gnu-v3-abi.c (build_gdb_vtable_type, build_std_type_info_type):
  7570. Update.
  7571. * gdbtypes.h (struct main_type) <tag_name>: Remove.
  7572. (TYPE_TAG_NAME): Remove.
  7573. * gdbtypes.c (type_name_no_tag): Simplify.
  7574. (check_typedef, check_types_equal, recursive_dump_type)
  7575. (copy_type_recursive, arch_composite_type): Update.
  7576. * f-typeprint.c (f_type_print_base): Update. Print "Type" prefix
  7577. in summary mode when needed.
  7578. * eval.c (evaluate_funcall): Update.
  7579. * dwarf2read.c (fixup_go_packaging, read_structure_type)
  7580. (process_structure_scope, read_enumeration_type)
  7581. (read_namespace_type, read_module_type, determine_prefix): Update.
  7582. * cp-support.c (inspect_type): Update.
  7583. * coffread.c (process_coff_symbol, decode_base_type): Update.
  7584. * c-varobj.c (c_is_path_expr_parent): Update.
  7585. * c-typeprint.c (c_type_print_base_struct_union): Update.
  7586. (c_type_print_base_1): Update. Print struct/class/union/enum in
  7587. summary when using C language.
  7588. * ax-gdb.c (gen_struct_ref, gen_namespace_elt)
  7589. (gen_maybe_namespace_elt): Update.
  7590. * ada-lang.c (ada_type_name): Simplify.
  7591. (empty_record, ada_template_to_fixed_record_type_1)
  7592. (template_to_static_fixed_type)
  7593. (to_record_with_fixed_variant_part, ada_check_typedef): Update.
  7594. 2018-06-01 Tom Tromey <tom@tromey.com>
  7595. * dwarf2read.c (dwarf2_compute_name): Pass CU's language to
  7596. c_print_type.
  7597. * c-typeprint.c (c_print_type_1): Add "language" parameter.
  7598. (c_print_type): Update.
  7599. (c_print_type): New overload.
  7600. (c_type_print_varspec_prefix, c_type_print_args)
  7601. (c_type_print_varspec_suffix, c_print_type_no_offsets)
  7602. (c_type_print_base_struct_union, c_type_print_base_1)
  7603. (cp_type_print_method_args): Add "language" parameter.
  7604. (c_type_print_base): Update.
  7605. * c-lang.h (c_print_type): Add new overload.
  7606. 2018-06-01 Tom Tromey <tom@tromey.com>
  7607. * typeprint.h (c_type_print_varspec_suffix): Don't declare.
  7608. * c-typeprint.c (c_type_print_varspec_suffix): Now static.
  7609. 2018-06-01 Alan Hayward <alan.hayward@arm.com>
  7610. * aarch64-tdep.c (aarch64_sve_register_names): New const
  7611. var.
  7612. * arch/aarch64.h (enum aarch64_regnum): Add SVE entries.
  7613. (AARCH64_SVE_Z_REGS_NUM): New define.
  7614. (AARCH64_SVE_P_REGS_NUM): Likewise.
  7615. (AARCH64_SVE_NUM_REGS): Likewise.
  7616. 2018-05-31 Uros Bizjak <ubizjak@gmail.com>
  7617. * nat/linux-ptrace.h [__alpha__]
  7618. (GDB_ARCH_IS_TRAP_BRKPT, GDB_ARCH_IS_TRAP_HWBKPT): Remove
  7619. definitions.
  7620. 2018-05-31 Maciej W. Rozycki <macro@mips.com>
  7621. * arch-utils.c (gdbarch_info_fill): Set `default_byte_order' to
  7622. the endianness selected.
  7623. * NEWS: Document `set endian auto' mode operation update.
  7624. 2018-05-31 Alan Hayward <alan.hayward@arm.com>
  7625. * Makefile.in: Add new header.
  7626. * arch/aarch64.h (sve_vg_from_vl): New macro.
  7627. (sve_vl_from_vg): Likewise.
  7628. (sve_vq_from_vl): Likewise.
  7629. (sve_vl_from_vq): Likewise.
  7630. (sve_vq_from_vg): Likewise.
  7631. (sve_vg_from_vq): Likewise.
  7632. * configure.nat: Add new c file.
  7633. * nat/aarch64-sve-linux-ptrace.c: New file.
  7634. * nat/aarch64-sve-linux-ptrace.h: New file.
  7635. 2018-05-31 Alan Hayward <alan.hayward@arm.com>
  7636. * aarch64-linux-nat.c (aarch64_linux_read_description):
  7637. Add parmeter zero.
  7638. * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
  7639. Likewise.
  7640. * aarch64-tdep.c (tdesc_aarch64_list): Add.
  7641. (aarch64_read_description): Use VQ to index tdesc_aarch64_list.
  7642. (aarch64_gdbarch_init): Add parmeter zero.
  7643. * aarch64-tdep.h (aarch64_read_description): Add VQ parmeter.
  7644. * arch/aarch64.c (aarch64_create_target_description): Check VQ.
  7645. * arch/aarch64.h (aarch64_create_target_description): Add VQ.
  7646. parmeter.
  7647. * features/aarch64-sve.c: New file.
  7648. 2018-05-31 Omair Javaid <omair.javaid@linaro.org>
  7649. PR gdb/23210
  7650. * gdbarch.sh (significant_addr_bit): Default to zero when
  7651. not set by target architecture.
  7652. * gdbarch.c: Re-generated.
  7653. * utils.c (address_significant): Update.
  7654. 2018-05-30 Joel Brobecker <brobecker@adacore.com>
  7655. * stack.c (func_command): Remove trailing newline in call to error.
  7656. 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
  7657. * regcache.h (regcache_raw_collect): Remove, update callers to
  7658. use regcache::raw_collect.
  7659. * regcache.c (regcache_raw_collect): Remove.
  7660. 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
  7661. * regcache.h (regcache_raw_supply): Remove, update callers to
  7662. use detached_regcache::raw_supply.
  7663. * regcache.c (regcache_raw_supply): Remove.
  7664. 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
  7665. * regcache.h (regcache_cooked_write_part): Remove, update
  7666. callers to use regcache::cooked_write_part.
  7667. * regcache.c (regcache_cooked_write_part): Remove.
  7668. 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
  7669. * regcache.h (regcache_cooked_read_part): Remove, update callers
  7670. to use readable_regcache::cooked_read_part.
  7671. * regcache.c (regcache_cooked_read_part): Remove.
  7672. 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
  7673. * regcache.h (regcache_cooked_read_value): Remove, update
  7674. callers to use readable_regcache::cooked_read_value.
  7675. * regcache.c (regcache_cooked_read_value): Remove.
  7676. 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
  7677. * regcache.h (regcache_cooked_write): Remove, update callers to
  7678. use regcache::cooked_write.
  7679. * regcache.c (regcache_cooked_write): Remove.
  7680. 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
  7681. * regcache.h (regcache_invalidate): Remove, update callers to
  7682. use detached_regcache::invalidate instead.
  7683. * regcache.c (regcache_invalidate): Remove.
  7684. 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
  7685. * regcache.h (regcache_raw_write_part): Remove, update callers
  7686. to use regcache::raw_write_part instead.
  7687. * regcache.c (regcache_raw_write_part): Remove.
  7688. 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
  7689. * regcache.h (regcache_raw_read_part): Remove, update callers to
  7690. use readable_regcache::raw_read_part instead.
  7691. * regcache.c (regcache_raw_read_part): Remove.
  7692. 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
  7693. * regcache.h (regcache_cooked_read): Remove, update callers to
  7694. use readable_regcache::cooked_read instead.
  7695. * regcache.c (regcache_cooked_read): Remove.
  7696. 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
  7697. * regcache.h (regcache_raw_write): Remove, update callers to use
  7698. regcache::raw_write instead.
  7699. * regcache.c (regcache_raw_write): Remove.
  7700. 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
  7701. * regcache.h (regcache_raw_read): Remove, update callers to use
  7702. readable_regcache::raw_read instead.
  7703. * regcache.c (regcache_raw_read): Remove.
  7704. 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
  7705. * regcache.h (regcache_raw_update): Remove, update callers to
  7706. use readable_regcache::raw_update instead.
  7707. * regcache.c (regcache_raw_update): Remove.
  7708. 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
  7709. * regcache.h (regcache_register_status): Remove, update callers
  7710. to use reg_buffer::get_register_status directly instead.
  7711. * regcache.c (regcache_register_status): Remove.
  7712. 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
  7713. * regcache.h (regcache_get_ptid): Remove, update all callers to
  7714. call regcache::ptid instead.
  7715. * regcache.c (regcache_get_ptid): Remove.
  7716. 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
  7717. * Makefile.in (ALL_TARGET_OBS): Add or1k-tdep.o.
  7718. 2018-05-30 Pedro Alves <palves@redhat.com>
  7719. * common/common-exceptions.h (exception_rethrow): Use
  7720. ATTRIBUTE_NORETURN.
  7721. 2018-05-29 Simon Marchi <simon.marchi@polymtl.ca>
  7722. * breakpoint.c (print_solib_event, check_status_catch_solib):
  7723. Remove struct keyword in range-based for loops.
  7724. * dbxread.c (find_corresponding_bincl_psymtab): Likewise.
  7725. * dwarf2read.c (compute_delayed_physnames, rust_union_quirks);
  7726. Likewise.
  7727. * linespec.c (find_superclass_methods, search_minsyms_for_name):
  7728. Likewise.
  7729. * symfile.c (addr_info_make_relative): Likewise.
  7730. * thread.c (value_in_thread_stack_temporaries): Likewise.
  7731. 2018-06-12 Weimin Pan <weimin.pan@oracle.com>
  7732. PR gdb/16841
  7733. * valops.c (value_struct_elt_for_reference): Call check_typedef on
  7734. aggregate type to get its real type before accessing it.
  7735. 2018-05-29 Weimin Pan <weimin.pan@oracle.com>
  7736. * minsyms.h (lookup_minimal_symbol_and_objfile): Remove declaration.
  7737. * minsyms.c (lookup_minimal_symbol_and_objfile): Remove definition.
  7738. * coff-pe-read.c (add_pe_forwarded_sym): Replace
  7739. lookup_minimal_symbol_and_objfile with lookup_bound_minimal_symbol.
  7740. * glibc-tdep.c (glibc_skip_solib_resolver): Likewise.
  7741. * jit.c (jit_breakpoint_re_set_internal): Likewise.
  7742. * printcmd.c (info_address_command): Likewise.
  7743. 2018-05-29 Tom Tromey <tom@tromey.com>
  7744. * windows-nat.c (handle_exception): Update fall-through comment.
  7745. 2018-05-29 Tom Tromey <tom@tromey.com>
  7746. * progspace.h (so_list_ptr): Remove typedef. Don't declare VEC.
  7747. (struct program_space) <added_solibs>: Now a std::vector.
  7748. * breakpoint.c (print_solib_event): Update.
  7749. (check_status_catch_solib): Update.
  7750. * progspace.c (clear_program_space_solib_cache): Update.
  7751. * solib.c (update_solib_list): Update.
  7752. 2018-05-29 Tom Tromey <tom@tromey.com>
  7753. * python/py-type.c (typy_richcompare): Update.
  7754. * guile/scm-type.c (tyscm_equal_p_type_smob): Update.
  7755. * gdbtypes.h (types_deeply_equal): Return bool.
  7756. (types_equal): Likewise.
  7757. * gdbtypes.c (type_equality_entry_d): Remove typedef. Don't
  7758. declare VEC.
  7759. (check_types_equal): Change worklist to std::vector. Return
  7760. bool.
  7761. (struct type_equality_entry): Add constructor.
  7762. (compare_maybe_null_strings): Return bool.
  7763. (check_types_worklist): Return bool. Change worklist to
  7764. std::vector.
  7765. (types_deeply_equal): Use std::vector.
  7766. (types_equal): Return bool.
  7767. (compare_maybe_null_strings): Simplify.
  7768. 2018-05-29 Tom Tromey <tom@tromey.com>
  7769. * record-btrace.c (tp_t): Remove typedef. Don't declare VEC.
  7770. 2018-05-29 Tom Tromey <tom@tromey.com>
  7771. * objc-lang.h: Don't include cp-support.h.
  7772. * common/gdb_vecs.h (const_char_ptr): Remove typedef. Don't
  7773. declare VEC.
  7774. 2018-05-27 Tom Tromey <tom@tromey.com>
  7775. * Makefile.in (DEPFILES): Don't reference REMOTE_OBS.
  7776. 2018-05-25 Tom Tromey <tom@tromey.com>
  7777. * value.c (value::location): Initialize.
  7778. 2018-05-25 Tom Tromey <tom@tromey.com>
  7779. * dbxread.c (init_bincl_list): Remove.
  7780. (bincl_list): Now a std::vector.
  7781. (bincls_allocated, next_bincl): Remove.
  7782. (free_bincl_list, do_free_bincl_list_cleanup)
  7783. (make_cleanup_free_bincl_list): Remove.
  7784. (dbx_read_symtab, elfstab_build_psymtabs): Use scoped_restore,
  7785. unique_xmalloc_ptr.
  7786. (find_corresponding_bincl_psymtab, read_dbx_symtab): Update.
  7787. (struct header_file_location): Add constructor.
  7788. (add_bincl_to_list): Remove.
  7789. 2018-05-25 Tom Tromey <tom@tromey.com>
  7790. * tui/tui.c (tui_enable): Update.
  7791. * mi/mi-interp.c (mi_interp::init): Update.
  7792. * interps.h (class interp) <name>: New method.
  7793. <m_name>: Rename from name.
  7794. (~scoped_restore_interp): Update.
  7795. * interps.c (interp::interp): Update.
  7796. (interp_add, interp_set, interp_lookup_existing)
  7797. (current_interp_named_p): Update.
  7798. 2018-05-25 Tom Tromey <tom@tromey.com>
  7799. * interps.c (interp_name): Remove.
  7800. * mi/mi-interp.c (mi_interp::init): Update.
  7801. * interps.h (interp_name): Remove.
  7802. (~scoped_restore_interp): Update.
  7803. * tui/tui.c (tui_enable): Update.
  7804. 2018-05-25 Tom Tromey <tom@tromey.com>
  7805. * utils.c (fputs_maybe_filtered): Update.
  7806. * linespec.c (decode_line_full): Update.
  7807. * mi/mi-interp.c (mi_on_normal_stop_1, mi_tsv_modified)
  7808. (mi_print_breakpoint_for_event, mi_solib_loaded)
  7809. (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
  7810. (mi_user_selected_context_changed): Update.
  7811. * mi/mi-main.c (mi_execute_command): Update.
  7812. * cli/cli-script.c (execute_control_command): Update.
  7813. * python/python.c (execute_gdb_command): Update.
  7814. * solib.c (info_sharedlibrary_command): Update.
  7815. * interps.c (interp_ui_out): Remove.
  7816. * interps.h (interp_ui_out): Remove.
  7817. 2018-05-25 Tom Tromey <tom@tromey.com>
  7818. * tui/tui-interp.c (as_tui_interp): Use dynamic_cast.
  7819. * mi/mi-interp.c (as_mi_interp): Use dynamic_cast.
  7820. * cli/cli-interp.c (as_cli_interp): Use dynamic_cast.
  7821. 2018-05-25 Tom Tromey <tom@tromey.com>
  7822. * cli/cli-interp.c (safe_execute_command): Use scoped_restore.
  7823. * interps.c (interp_exec): Use scoped_restore.
  7824. 2018-05-25 Tom Tromey <tom@tromey.com>
  7825. * remote.c (remote_target::remote_file_get): Use
  7826. gdb::byte_vector.
  7827. (remote_target::remote_file_put): Likewise.
  7828. 2018-05-25 Tom Tromey <tom@tromey.com>
  7829. * coff-pe-read.c (struct read_pe_section_data) <section_name>: Now
  7830. a std::string.
  7831. (get_pe_section_index, add_pe_exported_sym): Update.
  7832. (read_pe_exported_syms): Use gdb::def_vector.
  7833. 2018-05-25 Tom Tromey <tom@tromey.com>
  7834. * frame.c (remove_prev_frame): Remove.
  7835. (get_prev_frame_if_no_cycle): Use TRY/CATCH.
  7836. 2018-05-25 Maciej W. Rozycki <macro@mips.com>
  7837. * mips-linux-tdep.h (mips_supply_fpregset, mips_fill_fpregset):
  7838. Remove prototypes.
  7839. * mips-linux-nat.c (supply_fpregset): Always call
  7840. `mips64_supply_fpregset' rather than `mips_supply_fpregset'.
  7841. (fill_fpregset): Always call `mips64_fill_fpregset' rather than
  7842. `mips_fill_fpregset'.
  7843. * mips-linux-tdep.c (mips_supply_fpregset)
  7844. (mips_supply_fpregset_wrapper, mips_fill_fpregset)
  7845. (mips_fill_fpregset_wrapper): Remove functions.
  7846. (mips64_supply_fpregset, mips64_fill_fpregset): Update comments.
  7847. (mips_linux_fpregset): Remove variable.
  7848. (mips_linux_iterate_over_regset_sections): Use
  7849. `mips64_linux_fpregset' in place of `mips_linux_fpregset'.
  7850. (mips_linux_o32_sigframe_init): Remove comment.
  7851. 2018-05-25 Pedro Alves <palves@redhat.com>
  7852. * remote.c (struct vCont_action_support, MAXTHREADLISTRESULTS)
  7853. (struct readahead_cache, struct packet_reg, struct
  7854. remote_arch_state, class remote_state): Move higher up in the
  7855. file.
  7856. (remote_target::m_remote_state): Now an object instead of a pointer.
  7857. (remote_target::get_remote_state): Adjust.
  7858. 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
  7859. * stack.c (select_and_print_frame): Delete.
  7860. (struct function_bounds): Move struct within function.
  7861. (func_command): Most content moved into new function
  7862. find_frame_for_function, use new function, print result, add
  7863. function comment.
  7864. (find_frame_for_function): New function, now returns a result.
  7865. 2018-05-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
  7866. * stack.c (iterate_over_block_arg_vars): Fix comment.
  7867. (print_frame_arg_vars): Pass stream in cb_data, not gdb_stdout.
  7868. 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
  7869. PR gdb/23203
  7870. * frame.c
  7871. (scoped_restore_selected_frame::scoped_restore_selected_frame):
  7872. Define.
  7873. (scoped_restore_selected_frame::~scoped_restore_selected_frame):
  7874. Define.
  7875. * frame.h (class scoped_restore_selected_frame): New class.
  7876. * stack.c (print_frame_local_vars): Remove catching and rethrowing
  7877. of any exception, use scoped_restore_selected_frame to restore the
  7878. frame instead.
  7879. 2018-05-24 Pedro Alves <palves@redhat.com>
  7880. * darwin-nat.h (darwin_nat_target::create_inferior): Mark with
  7881. override.
  7882. 2018-05-23 Tom Tromey <tom@tromey.com>
  7883. * complaints.c (struct complaints): Remove.
  7884. (symfile_complaint_book): Remove.
  7885. (series): New global.
  7886. (complaint_internal): Update.
  7887. (clear_complaints): Update.
  7888. 2018-05-23 Tom Tromey <tom@tromey.com>
  7889. * complaints.c (counters): New global.
  7890. (struct complain): Remove.
  7891. (struct complaints) <root>: Remove.
  7892. (complaint_sentinel): Remove.
  7893. (symfile_complaint_book): Update.
  7894. (find_complaint) Remove.
  7895. (complaint_internal, clear_complaints): Update.
  7896. 2018-05-23 Tom Tromey <tom@tromey.com>
  7897. * complaints.c (struct complain) <file, line>: Remove.
  7898. (find_complaint): Remove file, line parameters.
  7899. (complaint_internal): Update.
  7900. 2018-05-23 Tom Tromey <tom@tromey.com>
  7901. * complaints.c (vcomplaint): Remove.
  7902. (complaint_internal) Merge in contents of vcomplaint.
  7903. 2018-05-23 Tom Tromey <tom@tromey.com>
  7904. * complaints.c (struct complaints) <explanation>: Remove.
  7905. (symfile_explanations): Remove.
  7906. (symfile_complaint_book): Update.
  7907. (vcomplaint): Update.
  7908. (struct explanation): Remove.
  7909. 2018-05-23 Tom Tromey <tom@tromey.com>
  7910. * complaints.c (symfile_complaints): Remove.
  7911. (complaint_internal): Remove "complaints" parameter.
  7912. (clear_complaints, vcomplaint): Remove "c" parameter.
  7913. (get_complaints): Remove.
  7914. * dwarf2read.c (dwarf2_statement_list_fits_in_line_number_section_complaint)
  7915. (dwarf2_debug_line_missing_file_complaint)
  7916. (dwarf2_debug_line_missing_end_sequence_complaint)
  7917. (dwarf2_complex_location_expr_complaint)
  7918. (dwarf2_const_value_length_mismatch_complaint)
  7919. (dwarf2_section_buffer_overflow_complaint)
  7920. (dwarf2_macro_malformed_definition_complaint)
  7921. (dwarf2_invalid_attrib_class_complaint)
  7922. (create_addrmap_from_index, dw2_symtab_iter_next)
  7923. (dw2_expand_marked_cus)
  7924. (dw2_debug_names_iterator::find_vec_in_debug_names)
  7925. (dw2_debug_names_iterator::next, dw2_debug_names_iterator::next)
  7926. (create_debug_type_hash_table, init_cutu_and_read_dies)
  7927. (partial_die_parent_scope, add_partial_enumeration)
  7928. (skip_one_die, fixup_go_packaging, quirk_rust_enum, process_die)
  7929. (dwarf2_compute_name, dwarf2_physname, read_namespace_alias)
  7930. (read_import_statement, read_file_scope, create_dwo_cu_reader)
  7931. (create_cus_hash_table, create_dwp_hash_table)
  7932. (inherit_abstract_dies, read_func_scope, read_call_site_scope)
  7933. (dwarf2_rnglists_process, dwarf2_ranges_process)
  7934. (dwarf2_add_type_defn, dwarf2_attach_fields_to_type)
  7935. (dwarf2_add_member_fn, get_alignment, maybe_set_alignment)
  7936. (handle_struct_member_die, process_structure_scope)
  7937. (read_array_type, read_common_block, read_module_type)
  7938. (read_tag_pointer_type, read_typedef, read_base_type)
  7939. (read_subrange_type, load_partial_dies, partial_die_info::read)
  7940. (partial_die_info::read, partial_die_info::read)
  7941. (partial_die_info::read, read_checked_initial_length_and_offset)
  7942. (dwarf2_string_attr, read_formatted_entries)
  7943. (dwarf_decode_line_header)
  7944. (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
  7945. (new_symbol, dwarf2_const_value_attr, lookup_die_type)
  7946. (read_type_die_1, determine_prefix, dwarf2_get_ref_die_offset)
  7947. (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
  7948. (get_signatured_type, get_DW_AT_signature_type)
  7949. (decode_locdesc, file_file_name, consume_improper_spaces)
  7950. (skip_form_bytes, skip_unknown_opcode, dwarf_parse_macro_header)
  7951. (dwarf_decode_macro_bytes, dwarf_decode_macros)
  7952. (dwarf2_symbol_mark_computed, set_die_type)
  7953. (read_attribute_value): Update.
  7954. * stap-probe.c (handle_stap_probe, get_stap_base_address):
  7955. Update.
  7956. * dbxread.c (unknown_symtype_complaint)
  7957. (lbrac_mismatch_complaint, repeated_header_complaint)
  7958. (set_namestring, function_outside_compilation_unit_complaint)
  7959. (read_dbx_symtab, process_one_symbol): Update.
  7960. * gdbtypes.c (stub_noname_complaint): Update.
  7961. * windows-nat.c (handle_unload_dll): Update.
  7962. * coffread.c (coff_symtab_read, enter_linenos, decode_type)
  7963. (decode_base_type): Update.
  7964. * xcoffread.c (bf_notfound_complaint, ef_complaint)
  7965. (eb_complaint, record_include_begin, record_include_end)
  7966. (enter_line_range, xcoff_next_symbol_text, read_xcoff_symtab)
  7967. (process_xcoff_symbol, read_symbol)
  7968. (function_outside_compilation_unit_complaint)
  7969. (scan_xcoff_symtab): Update.
  7970. * machoread.c (macho_symtab_read, macho_add_oso_symfile): Update.
  7971. * buildsym.c (finish_block_internal, make_blockvector)
  7972. (end_symtab_get_static_block, augment_type_symtab): Update.
  7973. * dtrace-probe.c (dtrace_process_dof)
  7974. (dtrace_static_probe_ops::get_probes): Update.
  7975. * complaints.h (struct complaint): Don't declare.
  7976. (symfile_complaints): Remove.
  7977. (complaint_internal): Remove "complaints" parameter.
  7978. (complaint): Likewise.
  7979. (clear_complaints): Likewise.
  7980. * symfile.c (syms_from_objfile_1, finish_new_objfile)
  7981. (reread_symbols): Update.
  7982. * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
  7983. (dwarf2_frame_cache, decode_frame_entry): Update.
  7984. * dwarf2loc.c (dwarf_reg_to_regnum): Update.
  7985. * objc-lang.c (lookup_objc_class, lookup_child_selector)
  7986. (info_selectors_command): Update.
  7987. * macrotab.c (macro_include, check_for_redefinition)
  7988. (macro_undef): Update.
  7989. * objfiles.c (filter_overlapping_sections): Update.
  7990. * stabsread.c (invalid_cpp_abbrev_complaint)
  7991. (reg_value_complaint, stabs_general_complaint, dbx_lookup_type)
  7992. (define_symbol, error_type, read_type, rs6000_builtin_type)
  7993. (stabs_method_name_from_physname, read_member_functions)
  7994. (read_cpp_abbrev, read_baseclasses, read_tilde_fields)
  7995. (attach_fields_to_type, complain_about_struct_wipeout)
  7996. (read_range_type, read_args, common_block_start)
  7997. (common_block_end, cleanup_undefined_types_1, scan_file_globals):
  7998. Update.
  7999. * mdebugread.c (index_complaint, unknown_ext_complaint)
  8000. (basic_type_complaint, bad_tag_guess_complaint)
  8001. (bad_rfd_entry_complaint, unexpected_type_code_complaint)
  8002. (reg_value_complaint, parse_symbol, parse_type, upgrade_type)
  8003. (parse_procedure, parse_lines)
  8004. (function_outside_compilation_unit_complaint)
  8005. (parse_partial_symbols, psymtab_to_symtab_1, cross_ref)
  8006. (bad_tag_guess_complaint, reg_value_complaint): Update.
  8007. * cp-support.c (demangled_name_complaint): Update.
  8008. * macroscope.c (sal_macro_scope): Update.
  8009. * dwarf-index-write.c (class debug_names): Update.
  8010. 2018-05-23 Tom Tromey <tom@tromey.com>
  8011. * complaints.c (clear_complaints): Remove "noisy" parameter.
  8012. * complaints.h (clear_complaints): Update.
  8013. * symfile.c (syms_from_objfile_1, finish_new_objfile)
  8014. (reread_symbols): Update.
  8015. 2018-05-23 Tom Tromey <tom@tromey.com>
  8016. * complaints.c (enum complaint_series): Remove FIRST_MESSAGE,
  8017. SUBSEQUENT_MESSAGE.
  8018. (vcomplaint, clear_complaints): Update.
  8019. (symfile_explanations): Remove some messages.
  8020. 2018-05-23 Tom Tromey <tom@tromey.com>
  8021. * complaints.c (internal_complaint): Remove.
  8022. * complaints.h (internal_complaint): Remove.
  8023. 2018-05-22 Maciej W. Rozycki <macro@mips.com>
  8024. * i387-tdep.c (i387_collect_xsave): Make `i' unsigned.
  8025. 2018-05-22 Pedro Alves <palves@redhat.com>
  8026. * remote-fileio.c (remote_fileio_reply, remote_fileio_ioerror)
  8027. (remote_fileio_badfd, remote_fileio_return_errno)
  8028. (remote_fileio_return_success, remote_fileio_func_open)
  8029. (remote_fileio_func_open, remote_fileio_func_close)
  8030. (remote_fileio_func_read, remote_fileio_func_write)
  8031. (remote_fileio_func_lseek, remote_fileio_func_rename)
  8032. (remote_fileio_func_unlink, remote_fileio_func_stat)
  8033. (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
  8034. (remote_fileio_func_isatty, remote_fileio_func_system): Add
  8035. remote_target parameter.
  8036. (remote_fio_func_map) <func>: Add remote_target parameter.
  8037. (do_remote_fileio_request, remote_fileio_request):
  8038. * remote-fileio.h (remote_fileio_request):
  8039. * remote-notif.c (remote_notif_ack, remote_notif_parse, ): Add
  8040. remote_target parameter.
  8041. (remote_notif_process, handle_notification): Adjust to pass down
  8042. the remote.
  8043. (remote_notif_state_allocate): Add remote_target parameter. Save
  8044. it.
  8045. * remote-notif.h (struct remote_target): Forward declare.
  8046. (struct notif_client) <parse, ack, can_get_pending_events>: Add
  8047. remote_target parameter.
  8048. (struct remote_notif_state) <remote>: New field.
  8049. (remote_notif_ack, remote_notif_parse): Add remote_target
  8050. parameter.
  8051. (remote_notif_state_allocate, remote_notif_state_allocate): Add
  8052. remote_target parameter.
  8053. * remote.c (OPAQUETHREADBYTES, threadref, gdb_ext_thread_info)
  8054. (threads_listing_context, rmt_thread_action, protocol_feature)
  8055. (packet_reg, stop_reply, stop_reply_p, enum packet_support)
  8056. (packet_result, struct threads_listing_context, remote_state):
  8057. Move definitions and declarations higher up.
  8058. (remote_target) <~remote_target>: Declare.
  8059. (remote_download_command_source, remote_file_put, remote_file_get)
  8060. (remote_file_delete, remote_hostio_pread, remote_hostio_pwrite)
  8061. (remote_hostio_pread_vFile, remote_hostio_send_command)
  8062. (remote_hostio_set_filesystem, remote_hostio_open)
  8063. (remote_hostio_close, remote_hostio_unlink, remote_state)
  8064. (get_remote_state, get_remote_packet_size, get_memory_packet_size)
  8065. (get_memory_write_packet_size, get_memory_read_packet_size)
  8066. (append_pending_thread_resumptions, remote_detach_1)
  8067. (append_resumption, remote_resume_with_vcont)
  8068. (add_current_inferior_and_thread, wait_ns, wait_as)
  8069. (process_stop_reply, remote_notice_new_inferior)
  8070. (process_initial_stop_replies, remote_add_thread)
  8071. (btrace_sync_conf, remote_btrace_maybe_reopen)
  8072. (remove_new_fork_children, kill_new_fork_children)
  8073. (discard_pending_stop_replies, stop_reply_queue_length)
  8074. (check_pending_events_prevent_wildcard_vcont)
  8075. (discard_pending_stop_replies_in_queue, stop_reply)
  8076. (remote_notif_remove_queued_reply, stop_reply *queued_stop_reply)
  8077. (peek_stop_reply, remote_parse_stop_reply, remote_stop_ns)
  8078. (remote_interrupt_as, remote_interrupt_ns)
  8079. (remote_get_noisy_reply, remote_query_attached)
  8080. (remote_add_inferior, remote_current_thread, get_current_thread)
  8081. (set_thread, set_general_thread, set_continue_thread)
  8082. (set_general_process, write_ptid)
  8083. (remote_unpack_thread_info_response, remote_get_threadinfo)
  8084. (parse_threadlist_response, remote_get_threadlist)
  8085. (remote_threadlist_iterator, remote_get_threads_with_ql)
  8086. (remote_get_threads_with_qxfer)
  8087. (remote_get_threads_with_qthreadinfo, extended_remote_restart)
  8088. (get_offsets, remote_check_symbols, remote_supported_packet)
  8089. (remote_query_supported, remote_packet_size)
  8090. (remote_serial_quit_handler, remote_detach_pid)
  8091. (remote_vcont_probe, remote_resume_with_hc)
  8092. (send_interrupt_sequence, interrupt_query)
  8093. (remote_notif_get_pending_events, fetch_register_using_p)
  8094. (send_g_packet, process_g_packet, fetch_registers_using_g)
  8095. (store_register_using_P, store_registers_using_G)
  8096. (set_remote_traceframe, check_binary_download)
  8097. (remote_write_bytes_aux, remote_write_bytes, remote_read_bytes_1)
  8098. (remote_xfer_live_readonly_partial, remote_read_bytes)
  8099. (remote_send_printf, remote_flash_write, readchar)
  8100. (remote_serial_write, putpkt, putpkt_binary, skip_frame)
  8101. (read_frame, getpkt, getpkt_or_notif_sane_1, getpkt_sane)
  8102. (getpkt_or_notif_sane, remote_vkill, remote_kill_k)
  8103. (extended_remote_disable_randomization, extended_remote_run)
  8104. (send_environment_packet, extended_remote_environment_support)
  8105. (extended_remote_set_inferior_cwd, remote_write_qxfer)
  8106. (remote_read_qxfer, push_stop_reply, vcont_r_supported)
  8107. (packet_command): Now methods of ...
  8108. (remote_target): ... this class.
  8109. (m_remote_state) <remote_target>: New field.
  8110. (struct remote_state) <stop_reply_queue,
  8111. remote_async_inferior_event_token, wait_forever_enabled_p>: New
  8112. fields.
  8113. (remote_state::remote_state): Allocate stop_reply_queue.
  8114. (remote_state): Delete global.
  8115. (get_remote_state_raw): Delete.
  8116. (remote_target::get_remote_state): Allocate m_remote_state on
  8117. demand.
  8118. (get_current_remote_target): New.
  8119. (remote_ops, extended_remote_ops): Delete.
  8120. (wait_forever_enabled_p, remote_async_inferior_event_token):
  8121. Delete, moved to struct remote_state.
  8122. (remote_target::close): Delete self. Destruction bits split to
  8123. ...
  8124. (remote_target::~remote_target): ... this.
  8125. (show_memory_packet_size): Adjust to use
  8126. get_current_remote_target.
  8127. (struct protocol_feature) <func>: Add remote_target parameter.
  8128. All callers adjusted.
  8129. (curr_quit_handler_target): New.
  8130. (remote_serial_quit_handler): Reimplement.
  8131. (remote_target::open_1): Adjust to use get_current_remote_target.
  8132. Heap-allocate remote_target/extended_remote_target instances.
  8133. (vcont_builder::vcont_builder): Add remote_target parameter, and
  8134. save it in m_remote. All callers adjusted.
  8135. (vcont_builder::m_remote): New field.
  8136. (vcont_builder::restart, vcont_builder::flush)
  8137. (vcont_builder::push_action): Use it.
  8138. (remote_target::commit_resume): Use it.
  8139. (struct queue_iter_param) <remote>: New field.
  8140. (remote_target::remove_new_fork_children): Fill in 'remote' field.
  8141. (check_pending_event_prevents_wildcard_vcont_callback_data): New.
  8142. (check_pending_event_prevents_wildcard_vcont_callback)
  8143. (remote_target::check_pending_events_prevent_wildcard_vcont)
  8144. (remote_target::discard_pending_stop_replies)
  8145. (remote_target::discard_pending_stop_replies_in_queue)
  8146. (remote_target::remote_notif_remove_queued_reply): Fill in
  8147. 'remote' field.
  8148. (remote_notif_get_pending_events): New.
  8149. (remote_target::readchar, remote_target::remote_serial_write):
  8150. Save/restore curr_quit_handler_target.
  8151. (putpkt): New.
  8152. (kill_new_fork_children): Fill in 'remote' field.
  8153. (packet_command): Use get_current_remote_target, defer to
  8154. remote_target method of same name.
  8155. (scoped_remote_fd::scoped_remote_fd): Add 'remote_target'
  8156. parameter, and save it in m_remote. All callers adjusted.
  8157. (scoped_remote_fd::release): Use m_remote.
  8158. (scoped_remote_fd::m_remote): New field.
  8159. (remote_file_put, remote_file_get, remote_file_delete): Use
  8160. get_current_remote_target, defer to remote_target method of same
  8161. name.
  8162. (remote_btrace_reset): Add remote_state paremeter. Update all
  8163. callers.
  8164. (remote_async_inferior_event_handler). Pass down 'data'.
  8165. (remote_new_objfile): Use get_current_remote_target.
  8166. (remote_target::vcont_r_supported): New.
  8167. (set_range_stepping): Use get_current_remote_target and
  8168. remote_target::vcont_r_supported.
  8169. (_initialize_remote): Don't allocate 'remote_state' and
  8170. 'stop_reply_queue' globals.
  8171. * remote.h (struct remote_target): Forward declare.
  8172. (getpkt, putpkt, remote_notif_get_pending_events): Add
  8173. 'remote_target' parameter.
  8174. 2018-05-22 Pedro Alves <palves@redhat.com>
  8175. * remote.c (vcont_builder): Now a class. Make all data members
  8176. private.
  8177. (vcont_builder) <vcont_builder, restart, flush, push_action>:
  8178. Declare methods.
  8179. (vcont_builder_restart): Rename to ...
  8180. (vcont_builder::restart): ... this.
  8181. (vcont_builder_flush): Rename to ...
  8182. (vcont_builder::flush): ... this.
  8183. (vcont_builder_push_action): Rename to ...
  8184. (vcont_builder::push_action): ... this.
  8185. (remote_target::commit_resume): Adjust.
  8186. 2018-05-22 Pedro Alves <palves@redhat.com>
  8187. * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE): Rename to ...
  8188. (DEFAULT_MAX_MEMORY_PACKET_SIZE_FIXED): ... this.
  8189. (get_fixed_memory_packet_size): New.
  8190. (get_memory_packet_size): Use it.
  8191. (set_memory_packet_size): Don't override the config size with
  8192. DEFAULT_MAX_MEMORY_PACKET_SIZE.
  8193. (show_memory_packet_size): Use get_fixed_memory_packet_size.
  8194. Don't refer to get_memory_packet_size if not connected to a remote
  8195. target. Show "(default)" if configured size is 0.
  8196. 2018-05-22 Pedro Alves <palves@redhat.com>
  8197. * remote.c (remote_target::mourn_inferior): Move
  8198. discard_pending_stop_replies call here from ...
  8199. (_initialize_remote): ... here.
  8200. 2018-05-22 Pedro Alves <palves@redhat.com>
  8201. * remote.c (compare_section_command): Remove set_general_process
  8202. call.
  8203. 2018-05-22 Pedro Alves <palves@redhat.com>
  8204. * remote.c (struct packet_reg, struct remote_arch_state):
  8205. Move higher up in the file.
  8206. (remote_state) <m_arch_states>: Store remote_arch_state values
  8207. instead of remote_arch_state pointers.
  8208. (remote_state::get_remote_arch_state): Adjust.
  8209. 2018-05-22 Pedro Alves <palves@redhat.com>
  8210. * remote.c: Include <unordered_map>.
  8211. (remote_state): Now a class.
  8212. (remote_state) <get_remote_arch_state>: Declare method.
  8213. <get_remote_arch_state>: New field.
  8214. (remote_arch_state) <remote_arch_state>: Declare ctor.
  8215. <regs>: Now a unique_ptr.
  8216. (remote_gdbarch_data_handle): Delete.
  8217. (get_remote_arch_state): Delete.
  8218. (remote_state::get_remote_arch_state): New.
  8219. (get_remote_state): Adjust to call remote_state's
  8220. get_remote_arch_state method.
  8221. (init_remote_state): Delete, bits factored out to ...
  8222. (remote_arch_state::remote_arch_state): ... this new method.
  8223. (get_remote_packet_size, get_memory_packet_size)
  8224. (process_g_packet, remote_target::fetch_registers)
  8225. (remote_target::prepare_to_store, store_registers_using_G)
  8226. (remote_target::store_registers, remote_target::get_trace_status):
  8227. Adjust to call remote_state's method.
  8228. (_initialize_remote): Remove reference to
  8229. remote_gdbarch_data_handle.
  8230. 2018-05-22 Pedro Alves <palves@redhat.com>
  8231. * remote.c (struct readahead_cache) <invalidate, invalidate_fd,
  8232. pread>: New method declarations.
  8233. (remote_target::open_1): Adjust.
  8234. (readahead_cache_invalidate): Rename to ...
  8235. (readahead_cache::invalidate): ... this, and adjust to be a class
  8236. method.
  8237. (readahead_cache_invalidate_fd): Rename to ...
  8238. (readahead_cache::invalidate_fd): ... this, and adjust to be a
  8239. class method.
  8240. (remote_hostio_pwrite): Adjust.
  8241. (remote_hostio_pread_from_cache): Rename to ...
  8242. (readahead_cache::pread): ... this, and adjust to be a class
  8243. method.
  8244. (remote_hostio_close): Adjust.
  8245. 2018-05-22 Pedro Alves <palves@redhat.com>
  8246. * remote.c (remote_hostio_close_cleanup): Delete.
  8247. (class scoped_remote_fd): New.
  8248. (remote_file_put, remote_file_get): Use it.
  8249. 2018-05-22 Pedro Alves <palves@redhat.com>
  8250. (struct vCont_action_support): Use bool and initialize all fields.
  8251. (struct readahead_cache): Initialize all fields.
  8252. (remote_state): Use bool and initialize all fields.
  8253. (remote_state::remote_state, remote_state::~remote_state): New.
  8254. (new_remote_state): Delete.
  8255. (_initialize_remote): Use new to allocate remote_state.
  8256. 2018-05-22 Pedro Alves <palves@redhat.com>
  8257. 張俊芝 <zjz@zjz.name>
  8258. PR gdb/22973
  8259. * c-exp.y: Include "c-support.h".
  8260. (parse_number, c_parse_escape, lex_one_token): Use TOLOWER instead
  8261. of tolower. Use c_ident_is_alpha to scan names.
  8262. * c-lang.c: Include "c-support.h".
  8263. (convert_ucn, convert_octal, convert_hex, convert_escape): Use
  8264. ISXDIGIT instead of isxdigit and ISDIGIT instead of isdigit.
  8265. * c-support.h: New file, with bits factored out from ...
  8266. * cp-name-parser.y: ... this file.
  8267. Include "c-support.h".
  8268. (cp_ident_is_alpha, cp_ident_is_alnum): Deleted, moved to
  8269. c-support.h and renamed.
  8270. (symbol_end, yylex): Adjust.
  8271. 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
  8272. * arch/ppc-linux-common.c (ppc_linux_has_isa205): Change the
  8273. parameter type to CORE_ADDR.
  8274. * arch/ppc-linux-common.h (ppc_linux_has_isa205): Change the
  8275. parameter type in declaration to CORE_ADDR.
  8276. * ppc-linux-tdep.c (ppc_linux_core_read_description): Call
  8277. target_auxv_search to get AT_HWCAP and use the result to get the
  8278. target description.
  8279. * ppc-linux-nat.c (ppc_linux_get_hwcap): Change the return type
  8280. to CORE_ADDR. Remove the cast of the return value to unsigned
  8281. long. Fix error predicate of target_auxv_search.
  8282. (ppc_linux_nat_target::read_description): Change the type of the
  8283. hwcap variable to CORE_ADDR.
  8284. 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
  8285. * rs6000-tdep.c (rs6000_gdbarch_init): Assign 1 to have_dfp only
  8286. if the size of fpscr is larger than 32 bits.
  8287. 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
  8288. * ppc-linux-tdep.c (ppc_linux_vsxregset): New function.
  8289. (ppc32_linux_vsxregmap): New global.
  8290. (ppc32_linux_vsxregset): Initialize with ppc32_linux_vsxregmap,
  8291. regcache_supply_regset, and regcache_collect_regset.
  8292. * ppc-linux-tdep.h (ppc_linux_vsxregset): Declare.
  8293. * ppc-linux-nat.c (supply_vsxregset, fill_vsxregset): Remove.
  8294. (fetch_vsx_register, store_vsx_register): Remove.
  8295. (fetch_vsx_registers): Add regno parameter. Get regset using
  8296. ppc_linux_vsxregset. Use regset to supply registers.
  8297. (store_vsx_registers): Add regno parameter. Get regset using
  8298. ppc_linux_vsxregset. Use regset to collect registers.
  8299. (fetch_register): Call fetch_vsx_registers instead of
  8300. fetch_vsx_register.
  8301. (store_register): Call store_vsx_registers instead of
  8302. store_vsx_register.
  8303. (fetch_ppc_registers): Call fetch_vsx_registers with -1 for the
  8304. new regno parameter.
  8305. (store_ppc_registers): Call store_vsx_registers with -1 for the
  8306. new regno parameter.
  8307. * rs6000-tdep.c (ppc_vsx_support_p, ppc_supply_vsxreget)
  8308. (ppc_collect_vsxregset): Remove.
  8309. 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
  8310. * ppc-tdep.h (struct ppc_reg_offsets): Remove vector register
  8311. offset fields.
  8312. * ppc-fbsd-tdep.c (ppc32_fbsd_reg_offsets): Remove initializers
  8313. for vector register offset fields.
  8314. (ppc64_fbsd_reg_offsets): Likewise.
  8315. * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
  8316. to vector register offset fields.
  8317. * ppc-obsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
  8318. to vector register offset fields.
  8319. * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Remove assignment to
  8320. vector register offset fields.
  8321. * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Remove
  8322. initializers for vector register offset fields.
  8323. (rs6000_aix64_reg_offsets): Likewise.
  8324. * rs6000-tdep.c (ppc_vrreg_offset): Remove.
  8325. (ppc_supply_vrregset): Remove.
  8326. (ppc_collect_vrregset): Remove.
  8327. * ppc-linux-tdep.c (ppc_linux_collect_vrregset): New function.
  8328. (ppc_linux_vrregset) : New function.
  8329. (ppc32_le_linux_vrregmap, ppc32_be_linux_vrregmap)
  8330. (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): New globals.
  8331. (ppc32_linux_vrregset): Remove.
  8332. (ppc_linux_iterate_over_regset_sections): Call ppc_linux_vrregset
  8333. and use result instead of ppc32_linux_vrregset.
  8334. (ppc32_linux_reg_offsets): Remove initializers for vector register
  8335. offset fields.
  8336. (ppc64_linux_reg_offsets): Likewise.
  8337. * ppc-linux-tdep.h (ppc_linux_vrregset): New declaration.
  8338. * ppc-linux-nat.c: Include regset.h.
  8339. (gdb_vrregset_t): Adjust comment to account for little-endian
  8340. mode.
  8341. (supply_vrregset, fill_vrregset): Remove.
  8342. (fetch_altivec_register, store_altivec_register): Remove.
  8343. (fetch_altivec_registers): Add regno parameter. Get regset using
  8344. ppc_linux_vrregset. Use regset to supply registers.
  8345. (store_altivec_registers): Add regno parameter. Get regset using
  8346. ppc_linux_vrregset. Use regset to collect registers.
  8347. (fetch_register): Call fetch_altivec_registers instead of
  8348. fetch_altivec_register.
  8349. (store_register): Call store_altivec_registers instead of
  8350. store_altivec_register.
  8351. (fetch_ppc_registers): Call fetch_altivec_registers with -1 for
  8352. the new regno parameter.
  8353. (store_ppc_registers): Call store_altivec_registers with -1 for
  8354. the new regno parameter.
  8355. 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
  8356. * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_VRREGSET)
  8357. (PPC_LINUX_SIZEOF_VSXREGSET): Define.
  8358. * ppc-linux-nat.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
  8359. (gdb_vrregset_t): Change array type size to
  8360. PPC_LINUX_SIZEOF_VRREGSET.
  8361. (gdb_vsxregset_t): Change array type size to
  8362. PPC_LINUX_SIZEOF_VSXREGSET.
  8363. * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections):
  8364. Change integer literals to PPC_LINUX_SIZEOF_VRREGSET and
  8365. PPC_LINUX_SIZEOF_VSXREGSET.
  8366. 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
  8367. * configure.nat <linux powerpc>: Add ppc-linux.o to NATDEPFILES.
  8368. * ppc-linux-nat.c (ppc_linux_target_wordsize): Move to
  8369. nat/ppc-linux.c.
  8370. (ppc_linux_nat_target::auxv_parse): Get thread id tid. Call
  8371. ppc_linux_target_wordsize with tid.
  8372. (ppc_linux_nat_target::read_description): Call ppc_linux_target
  8373. wordsize with tid.
  8374. * nat/ppc-linux.c: Include nat/gdb_ptrace.h.
  8375. (ppc64_64bit_inferior_p): Add static and inline specifiers.
  8376. (ppc_linux_target_wordsize): Move here from ppc-linux-nat.c. Add
  8377. tid parameter. Remove static specifier.
  8378. * nat/ppc-linux.h (ppc64_64bit_inferior_p): Remove declaration.
  8379. (ppc_linux_target_wordsize): New declaration.
  8380. 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
  8381. * arch/ppc-linux-common.c: New file.
  8382. * arch/ppc-linux-common.h: New file.
  8383. * arch/ppc-linux-tdesc.h: New file.
  8384. * configure.tgt (powerpc*-*-linux*): Add arch/ppc-linux-common.o.
  8385. * Makefile.in (ALL_TARGET_OBS): Add arch/ppc-linux-common.o.
  8386. (HFILES_NO_SRCDIR): Add arch/ppc-linux-common.h and
  8387. arch/ppc-linux-tdesc.h.
  8388. * ppc-linux-nat.c: Include arch/ppc-linux-common.h and
  8389. arch/ppc-linux-tdesc.h.
  8390. (ppc_linux_nat_target::read_description): Remove target
  8391. description matching code. Fill a ppc_linux_features struct and
  8392. call ppc_linux_match_description with it. Move comment about ISA
  8393. 2.05 to ppc-linux-common.c.
  8394. * ppc-linux-tdep.c: Include arch/ppc-linux-common.h and
  8395. arch/ppc-linux-tdesc.h.
  8396. (ppc_linux_core_read_description): Remove target description
  8397. matching code. Fill a ppc_linux_features struct and call
  8398. ppc_linux_match_description with it.
  8399. * ppc-linux-tdep.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
  8400. (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
  8401. (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
  8402. (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
  8403. (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
  8404. (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
  8405. (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
  8406. (tdesc_powerpc_e500l): Remove.
  8407. 2018-05-22 Joel Brobecker <brobecker@adacore.com>
  8408. * ada-lang.c (catch_assert_command): Pass empty string instead
  8409. of NULL for excep_string argument.
  8410. 2018-05-22 Maciej W. Rozycki <macro@mips.com>
  8411. * mips-linux-nat.c (mips64_linux_register_addr): Return -1 if
  8412. the width of the requested register exceeds the width of the
  8413. `ptrace' data type.
  8414. 2018-05-21 Tom Tromey <tom@tromey.com>
  8415. * printcmd.c (output_command): Remove.
  8416. (output_command_const): Rename to output_command.
  8417. * valprint.h (output_command): Rename from output_command_const.
  8418. * tracepoint.c (trace_dump_actions): Call output_command.
  8419. 2018-05-21 Tom Tromey <tom@tromey.com>
  8420. * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
  8421. (mi_cmd_catch_exception, mi_cmd_catch_handlers): Update.
  8422. * ada-lang.h (create_ada_exception_catchpoint): Update.
  8423. * ada-lang.c (struct ada_catchpoint) <excep_string>: Now a
  8424. std::string.
  8425. (create_excep_cond_exprs, ~ada_catchpoint)
  8426. (should_stop_exception, print_one_exception)
  8427. (print_mention_exception, print_recreate_exception): Update.
  8428. (ada_get_next_arg): Remove.
  8429. (catch_ada_exception_command_split): Use std::string. Change type
  8430. of "excep_string", "cond_string".
  8431. (catch_ada_exception_command): Update.
  8432. (create_ada_exception_catchpoint): Change type of excep_string.
  8433. (ada_exception_sal): Remove excep_string parameter.
  8434. (~ada_catchpoint): Remove.
  8435. 2018-05-21 Tom Tromey <tom@tromey.com>
  8436. * ada-lang.c (ada_collect_symbol_completion_matches): Remove
  8437. cleanup.
  8438. 2018-05-21 Tom Tromey <tom@tromey.com>
  8439. * ada-lang.c (ada_exception_message_1, ada_exception_message):
  8440. Return unique_xmalloc_ptr.
  8441. (print_it_exception): Update.
  8442. 2018-05-21 Tom Tromey <tom@tromey.com>
  8443. * tracepoint.c (trace_dump_actions): Use std::string.
  8444. 2018-05-21 Tom Tromey <tom@tromey.com>
  8445. * symfile.c (reread_symbols): Use std::string for original_name.
  8446. 2018-05-21 Tom Tromey <tom@tromey.com>
  8447. * dwarf2read.c (dwarf2_read_debug_names): Use std::unique_ptr.
  8448. (mapped_index_base): Use DISABLE_COPY_AND_ASSIGN. Default
  8449. constructor.
  8450. 2018-05-20 Simon Marchi <simon.marchi@polymtl.ca>
  8451. * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Rename the wrong
  8452. instance to...
  8453. (HAVE_IS_TRIVIALLY_CONSTRUCTIBLE): ... this.
  8454. * objfiles.c (get_objfile_bfd_data): Allocate
  8455. objfile_per_bfd_storage with obstack_new when allocating on
  8456. obstack.
  8457. 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
  8458. * ada-lang.c (cache_symbol): Use XOBNEW and/or XOBNEWVEC and/or
  8459. OBSTACK_ZALLOC.
  8460. * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
  8461. * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
  8462. * mdebugread.c (mdebug_build_psymtabs): Likewise.
  8463. (add_pending): Likewise.
  8464. (parse_symbol): Likewise.
  8465. (parse_partial_symbols): Likewise.
  8466. (psymtab_to_symtab_1): Likewise.
  8467. (new_psymtab): Likewise.
  8468. (elfmdebug_build_psymtabs): Likewise.
  8469. * minsyms.c (terminate_minimal_symbol_table): Likewise.
  8470. * objfiles.c (get_objfile_bfd_data): Likewise.
  8471. (objfile_register_static_link): Likewise.
  8472. * psymtab.c (allocate_psymtab): Likewise.
  8473. * stabsread.c (read_member_functions): Likewise.
  8474. * xcoffread.c (xcoff_end_psymtab): Likewise.
  8475. 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
  8476. * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Define if
  8477. compiler supports std::is_trivially_constructible.
  8478. * common/poison.h: Include obstack.h.
  8479. (IsMallocable): Define to is_trivially_constructible if the
  8480. compiler supports it, define to true_type otherwise.
  8481. (xobnew): New.
  8482. (XOBNEW): Redefine.
  8483. (xobnewvec): New.
  8484. (XOBNEWVEC): Redefine.
  8485. * gdb_obstack.h (obstack_zalloc): New.
  8486. (OBSTACK_ZALLOC): Redefine.
  8487. (obstack_calloc): New.
  8488. (OBSTACK_CALLOC): Redefine.
  8489. (obstack_new): New.
  8490. * gdbarch.sh: Include gdb_obstack in gdbarch.h.
  8491. (gdbarch_obstack): New declaration in gdbarch.h, definition in
  8492. gdbarch.c.
  8493. (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Use
  8494. obstack_calloc/obstack_zalloc.
  8495. (gdbarch_obstack_zalloc): Remove.
  8496. * target-descriptions.c (tdesc_data_init): Use obstack_new.
  8497. 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
  8498. * stack.c (backtrace_command_1): Remove useless variable int i.
  8499. 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
  8500. * stack.c (print_frame_info): Fix comment.
  8501. 2018-05-18 Tom Tromey <tom@tromey.com>
  8502. * dwarf2read.c (struct dwz_file): Add constructor, initializers.
  8503. <dwz_bfd>: Now a gdb_bfd_ref_ptr.
  8504. (~dwarf2_per_objfile): Update
  8505. (dwarf2_get_dwz_file): Use new.
  8506. * dwarf2read.h (struct dwarf2_per_objfile) <dwz_file>: Now a
  8507. unique_ptr.
  8508. 2018-05-18 Tom Tromey <tom@tromey.com>
  8509. * dwarf2read.h (struct dwarf2_per_objfile) <dwp_file>: Now a
  8510. unique_ptr.
  8511. * dwarf2read.c (struct dwp_file): Add constructor and
  8512. initializers.
  8513. (open_and_init_dwp_file): Return a unique_ptr.
  8514. (dwarf2_per_objfile, create_dwp_hash_table)
  8515. (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2)
  8516. (lookup_dwo_unit_in_dwp): Update.
  8517. (open_and_init_dwp_file, get_dwp_file): Update.
  8518. 2018-05-18 Tom Tromey <tom@tromey.com>
  8519. * dwarf2read.c (dwarf2_per_objfile): Update.
  8520. (struct mapped_index): Add initializers.
  8521. (dwarf2_read_index): Use new.
  8522. (dw2_symtab_iter_init): Update.
  8523. * dwarf2read.h (struct dwarf2_per_objfile) <index_table>: Now a
  8524. unique_ptr.
  8525. 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
  8526. * dwarf2read.c (mapped_index) <total_size>: Remove.
  8527. 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
  8528. * unittests/format_pieces-selftests.c (test_format_specifier):
  8529. Add ARI comments.
  8530. 2018-05-18 Tom Tromey <tom@tromey.com>
  8531. * c-typeprint.c (maybe_print_hole): New function.
  8532. (c_print_type_struct_field_offset): Update.
  8533. (c_type_print_base_struct_union): Call maybe_print_hole.
  8534. 2018-05-17 Keith Seitz <keiths@redhat.com>
  8535. * breakpoint.c (build_bpstat_chain): New function, moved from
  8536. bpstat_stop_status.
  8537. (bpstat_stop_status): Add optional parameter, `stop_chain'.
  8538. If no stop chain is passed, call build_bpstat_chain to build it.
  8539. * breakpoint.h (build_bpstat_chain): Declare.
  8540. (bpstat_stop_status): Move documentation here from breakpoint.c.
  8541. * infrun.c (handle_signal_stop): Before eliding inlined frames,
  8542. build the stop chain and pass it to skip_inline_frames.
  8543. Pass this stop chain to bpstat_stop_status.
  8544. * inline-frame.c: Include breakpoint.h.
  8545. (stopped_by_user_bp_inline_frame): New function.
  8546. (skip_inline_frames): Add parameter `stop_chain'.
  8547. Move documention to inline-frame.h.
  8548. If non-NULL, use stopped_by_user_bp_inline_frame to determine
  8549. whether the frame should be elided.
  8550. * inline-frame.h (skip_inline_frames): Add parameter `stop_chain'.
  8551. Add moved documentation and update for new parameter.
  8552. 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
  8553. PR cli/14975
  8554. * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
  8555. unittests/format_pieces-selftests.c.
  8556. * common/format.h (format_piece) <operator==>: New.
  8557. (format_pieces) <operator[]>: Remove.
  8558. * common/format.c (format_pieces::format_pieces): Handle \e.
  8559. * unittests/format_pieces-selftests.c: New.
  8560. 2018-05-17 Tom Tromey <tom@tromey.com>
  8561. PR symtab/23010:
  8562. * dwarf2read.c (load_cu, dw2_do_instantiate_symtab)
  8563. (dw2_instantiate_symtab): Add skip_partial parameter.
  8564. (dw2_find_last_source_symtab, dw2_map_expand_apply)
  8565. (dw2_lookup_symbol, dw2_expand_symtabs_for_function)
  8566. (dw2_expand_all_symtabs, dw2_expand_symtabs_with_fullname)
  8567. (dw2_expand_symtabs_matching_one)
  8568. (dw2_find_pc_sect_compunit_symtab)
  8569. (dw2_debug_names_lookup_symbol)
  8570. (dw2_debug_names_expand_symtabs_for_function): Update.
  8571. (init_cutu_and_read_dies): Add skip_partial parameter.
  8572. (process_psymtab_comp_unit, build_type_psymtabs_1)
  8573. (process_skeletonless_type_unit, load_partial_comp_unit)
  8574. (psymtab_to_symtab_1): Update.
  8575. (load_full_comp_unit): Add skip_partial parameter.
  8576. (process_imported_unit_die, dwarf2_read_addr_index)
  8577. (follow_die_offset, dwarf2_fetch_die_loc_sect_off)
  8578. (dwarf2_fetch_constant_bytes, dwarf2_fetch_die_type_sect_off)
  8579. (read_signatured_type): Update.
  8580. 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
  8581. * value.c (release_value): Remove unused variable.
  8582. (record_latest_value): Likewise.
  8583. (access_value_history): Likewise.
  8584. (preserve_values): Likewise.
  8585. 2018-05-17 Tom Tromey <tom@tromey.com>
  8586. * extension.h (struct ext_lang_type_printers) <py_type_printers>:
  8587. Initialize.
  8588. 2018-05-16 Maciej W. Rozycki <macro@mips.com>
  8589. PR gdb/22286
  8590. * linux-nat-trad.c (linux_nat_trad_target::fetch_register):
  8591. Also handle registers whose width is not a multiple of
  8592. PTRACE_TYPE_RET.
  8593. (linux_nat_trad_target::store_register): Likewise.
  8594. 2018-05-16 Tom Tromey <tom@tromey.com>
  8595. * gdbcore.h (core_bfd): Redefine.
  8596. * corelow.c (core_target::close): Update.
  8597. (core_target_open): Update.
  8598. * progspace.h (struct program_space) <cbfd>: Now a
  8599. gdb_bfd_ref_ptr.
  8600. 2018-05-16 Tom Tromey <tom@tromey.com>
  8601. PR cli/19551:
  8602. * symfile-add-flags.h (enum symfile_add_flags)
  8603. <SYMFILE_NOT_FILENAME>: New constant.
  8604. * symfile.c (read_symbols): Use SYMFILE_NOT_FILENAME. Get
  8605. objfile name from BFD.
  8606. (symbol_file_add_with_addrs): Check SYMFILE_NOT_FILENAME.
  8607. * minidebug.c (find_separate_debug_file_in_section): Put
  8608. ".gnu_debugdata" into BFD's file name.
  8609. 2018-05-16 Simon Marchi <simon.marchi@ericsson.com>
  8610. * regcache.c (regcache_read_ftype, regcache_write_ftype):
  8611. Remove.
  8612. 2018-05-15 Tamar Christina <tamar.christina@arm.com>
  8613. PR binutils/21446
  8614. * aarch64-tdep.c (aarch64_analyze_prologue,
  8615. aarch64_software_single_step, aarch64_displaced_step_copy_insn):
  8616. Indicate not interested in errors.
  8617. 2018-05-15 Maciej W. Rozycki <macro@mips.com>
  8618. * mips-linux-nat.c (mips_linux_nat_target::fetch_registers):
  8619. Supply the MIPS_ZERO_REGNUM register.
  8620. 2018-05-15 Maciej W. Rozycki <macro@mips.com>
  8621. * mips-tdep.c (mask_address_var): Make variable static.
  8622. 2018-05-14 Tom Tromey <tom@tromey.com>
  8623. * dwarf2read.c (rust_union_quirks): Clear rust_unions.
  8624. 2018-05-11 Andrew Burgess <andrew.burgess@embecosm.com>
  8625. * i387-tdep.c (i387_collect_xsave): Use FXSAVE_MXCSR_ADDR not
  8626. FXSAVE_ADDR for the mxcsr register.
  8627. 2018-05-11 Max Filippov <jcmvbkbc@gmail.com>
  8628. * configure.tgt (xtensa*-*-linux*): Drop gdb_target definition.
  8629. 2018-05-11 Pedro Alves <palves@redhat.com>
  8630. * corelow.c (core_target) <core_target>: No longer inline.
  8631. Initialize m_core_gdbarch, m_core_vec and build the section table
  8632. here.
  8633. <~core_target>: New.
  8634. <core_gdbarch, get_core_register_section>: New methods.
  8635. <m_core_section_table, m_core_vec, m_core_gdbarch>: New fields,
  8636. factored out from ...
  8637. <core_data, core_vec, core_gdbarch>: ... these deleted globals.
  8638. (core_ops): Delete.
  8639. (sniff_core_bfd): Add gdbarch parameter.
  8640. (core_close): Delete, merged into ...
  8641. (core_target::close): ... here. Delete self.
  8642. (core_close_cleanup): Delete.
  8643. (core_target_open): Allocate a core_target on the heap. Use a
  8644. unique_ptr instead of a cleanup. Bits moved into the core_target
  8645. ctor. Adjust to use core_target methods instead of globals.
  8646. (get_core_register_section): Rename to ...
  8647. (core_target::get_core_register_section): ... this and adjust.
  8648. (struct get_core_registers_cb_data): New.
  8649. (get_core_registers_cb): Use it. Use bool.
  8650. (core_target::fetch_registers, core_target::files_info)
  8651. (core_target::xfer_partial, core_target::read_description)
  8652. (core_target::pid_to, core_target::thread_name): Adjust to
  8653. reference class fields instead of globals.
  8654. * target.h (struct target_ops_deleter, target_ops_up): New.
  8655. 2018-05-11 Pedro Alves <palves@redhat.com>
  8656. * corefile.c (core_file_command): Move to corelow.c.
  8657. * corelow.c (the_core_target): Delete.
  8658. (core_file_command): Moved from corefile.c. Check exec_bfd
  8659. instead of the_core_target. Use target_detach instead of calling
  8660. into the_core_target directly.
  8661. (maybe_say_no_core_file_now): New.
  8662. (core_target::detach): Use it.
  8663. (_initialize_corelow): Remove references to the_core_target.
  8664. * gdbcore.h (the_core_target): Delete.
  8665. 2018-05-11 Tom Tromey <tromey@redhat.com>
  8666. Pedro Alves <palves@redhat.com>
  8667. * corefile.c (core_bfd): Remove.
  8668. * gdbcore.h (core_bfd): Now a macro.
  8669. * progspace.h (struct program_space) <cbfd>: New field.
  8670. 2018-05-11 Tom Tromey <tom@tromey.com>
  8671. * mdebugread.c (parse_partial_symbols, psymtab_to_symtab_1): Use
  8672. gdb::def_vector.
  8673. 2018-05-10 Tom Tromey <tom@tromey.com>
  8674. * configure: Rebuild.
  8675. * warning.m4 (AM_GDB_WARNINGS): Use -Wimplicit-fallthrough=3.
  8676. 2018-05-10 Joel Brobecker <brobecker@adacore.com>
  8677. PR server/23158:
  8678. * regformats/regdat.sh: Adjust script, following the addition
  8679. of the new expedite_regs parameter to init_target_desc.
  8680. 2018-05-10 Omair Javaid <omair.javaid@linaro.org>
  8681. PR gdb/23127
  8682. * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add call to
  8683. set_gdbarch_significant_addr_bit.
  8684. * aarch64-tdep.c (aarch64_gdbarch_init): Remove call to
  8685. set_gdbarch_significant_addr_bit.
  8686. * utils.c (address_significant): Update to sign extend addr.
  8687. 2018-05-09 Max Filippov <jcmvbkbc@gmail.com>
  8688. * xtensa-linux-tdep.c (xtensa-tdep.h): New include.
  8689. (xtensa_linux_init_abi): Limit tdep->num_regs by
  8690. tdep->num_nopriv_regs.
  8691. * xtensa-tdep.c (xtensa_derive_tdep): Calculate
  8692. tdep->num_nopriv_regs and only copy it to tdep->num_regs if it's
  8693. not initialized.
  8694. 2018-05-08 Simon Marchi <simon.marchi@ericsson.com>
  8695. * unittests/string_view-selftests.c: Define GNULIB_NAMESPACE.
  8696. 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
  8697. * common/x86-xstate.h (I387_FCTRL_INIT_VAL): New constant.
  8698. (I387_MXCSR_INIT_VAL): New constant.
  8699. * amd64-tdep.c (amd64_supply_xsave): Only read state from xsave
  8700. buffer if it was supplied by the inferior.
  8701. * i387-tdep.c (i387_supply_fsave): Use I387_MXCSR_INIT_VAL.
  8702. (i387_xsave_get_clear_bv): New function.
  8703. (i387_supply_xsave): Only read x87 control registers from the
  8704. xsave buffer if the feature is enabled, and the state will have
  8705. been written, otherwise, provide a suitable default.
  8706. (i387_collect_xsave): Pre-clear all registers in xsave buffer,
  8707. including x87 control registers. Update control registers if they
  8708. have changed from the default value, and mark features as enabled
  8709. as required.
  8710. * i387-tdep.h (i387_xsave_get_clear_bv): Declare.
  8711. 2018-05-08 Ulrich Weigand <uweigand@de.ibm.com>
  8712. * spu-tdep.c (info_spu_event_command): Fix output formatting.
  8713. 2018-05-07 Tom Tromey <tom@tromey.com>
  8714. * configure: Rebuild.
  8715. * warning.m4 (AM_GDB_WARNINGS): Add -Wduplicated-cond.
  8716. 2018-05-07 Tom Tromey <tom@tromey.com>
  8717. PR tdep/20362:
  8718. * arm-tdep.c (arm_record_vfp_data_proc_insn): Properly mask off D
  8719. bit. Use correct value for VDIV.
  8720. 2018-05-04 Tom Tromey <tom@tromey.com>
  8721. * configure: Rebuild.
  8722. * warning.m4 (AM_GDB_WARNINGS): Add -Wimplicit-fallthrough.
  8723. 2018-05-04 Tom Tromey <tom@tromey.com>
  8724. * linux-record.c (record_linux_system_call) <case
  8725. RECORD_SYS_RECVFROM>: Add "break".
  8726. 2018-05-04 Tom Tromey <tom@tromey.com>
  8727. * mi/mi-main.c (mi_cmd_trace_frame_collected) <REGISTERS_FORMAT>:
  8728. Add missing "break".
  8729. * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals) <NO_FRAME_FILTERS>:
  8730. Add missing "break".
  8731. 2018-05-04 Tom Tromey <tom@tromey.com>
  8732. * rs6000-tdep.c (ppc_process_record_op4)
  8733. (ppc_process_record_op63): Add fall-through comment.
  8734. 2018-05-04 Tom Tromey <tom@tromey.com>
  8735. * i386-tdep.c (i386_process_record): Add fall-through comment.
  8736. 2018-05-04 Tom Tromey <tom@tromey.com>
  8737. * stabsread.c (define_symbol) <case 'p'>: Add fall-through
  8738. comment.
  8739. 2018-05-04 Tom Tromey <tom@tromey.com>
  8740. * riscv-tdep.c (riscv_isa_xlen): Add fall-through comment.
  8741. * utils.c (can_dump_core) <LIMIT_CUR>: Add fall-through comment.
  8742. * eval.c (fetch_subexp_value) <MEMORY_ERROR>: Add fall-through
  8743. comment.
  8744. * d-valprint.c (d_val_print) <TYPE_CODE_STRUCT>: Add fall-through
  8745. comment.
  8746. * coffread.c (coff_symtab_read) <C_LABEL>: Add fall-through
  8747. comment.
  8748. 2018-05-04 Tom Tromey <tom@tromey.com>
  8749. * dwarf2loc.c (unimplemented): Add ATTRIBUTE_NORETURN.
  8750. 2018-05-04 Tom Tromey <tom@tromey.com>
  8751. * s390-tdep.c (s390_process_record): Fix fall-through comments.
  8752. * xcoffread.c (scan_xcoff_symtab): Move comment later.
  8753. * symfile.c (section_is_mapped): Fix fall-through comment.
  8754. * stabsread.c (define_symbol, read_member_functions): Fix
  8755. fall-through comment.
  8756. * s390-linux-tdep.c (s390_process_record): Fix fall-through
  8757. comment.
  8758. * remote.c (remote_wait_as): Fix fall-through comment.
  8759. * p-exp.y (yylex): Fix fall-through comment.
  8760. * nat/x86-dregs.c (x86_length_and_rw_bits): Fix fall-through
  8761. comment.
  8762. * msp430-tdep.c (msp430_gdbarch_init): Fix fall-through comment.
  8763. * mdebugread.c (parse_partial_symbols): Fix fall-through comment.
  8764. * jv-exp.y (yylex): Fix fall-through comment.
  8765. * go-exp.y (lex_one_token): Fix fall-through comment.
  8766. * gdbtypes.c (get_discrete_bounds, rank_one_type): Fix
  8767. fall-through comment.
  8768. * f-exp.y (yylex): Fix fall-through comment.
  8769. * dwarf2read.c (process_die): Fix fall-through comments.
  8770. * dbxread.c (process_one_symbol): Fix fall-through comment.
  8771. * d-exp.y (lex_one_token): Fix fall-through comment.
  8772. * cp-name-parser.y (yylex): Fix fall-through comment.
  8773. * coffread.c (coff_symtab_read): Fix fall-through comment.
  8774. * c-exp.y (lex_one_token): Fix fall-through comment.
  8775. * arm-tdep.c (arm_decode_miscellaneous): Fix fall-through
  8776. comment.
  8777. * arch/arm.c (arm_instruction_changes_pc): Fix fall-through
  8778. comment.
  8779. 2018-05-04 Tom Tromey <tom@tromey.com>
  8780. PR python/22730:
  8781. * NEWS: Mention gdb.execute change.
  8782. * gdbcmd.h (execute_control_command): Don't declare.
  8783. * python/python.c (execute_gdb_command): Use read_command_lines_1,
  8784. execute_control_commands, execute_control_commands_to_string.
  8785. * cli/cli-script.h (execute_control_commands)
  8786. (execute_control_commands_to_string): Declare.
  8787. (execute_control_command): Add from_tty parameter.
  8788. * cli/cli-script.c (execute_control_commands)
  8789. (execute_control_commands_to_string): New functions.
  8790. (execute_user_command): Use execute_control_commands.
  8791. (execute_control_command_1): Add "from_tty" parameter. Update.
  8792. (execute_control_command): Likewise.
  8793. 2018-05-04 Tom Tromey <tom@tromey.com>
  8794. PR python/22731:
  8795. * NEWS: Mention that breakpoint commands are writable.
  8796. * python/py-breakpoint.c (bppy_set_commands): New function.
  8797. (breakpoint_object_getset) <"commands">: Use it.
  8798. 2018-05-04 Tom Tromey <tom@tromey.com>
  8799. * tracepoint.c (actions_command): Update.
  8800. * mi/mi-cmd-break.c (mi_command_line_array)
  8801. (mi_command_line_array_cnt, mi_command_line_array_ptr)
  8802. (mi_read_next_line): Remove.
  8803. (mi_cmd_break_commands): Update.
  8804. * cli/cli-script.h (read_command_lines, read_command_lines_1): Use
  8805. function_view.
  8806. * cli/cli-script.c (get_command_line): Update.
  8807. (process_next_line): Use function_view. Constify.
  8808. (recurse_read_control_structure, read_command_lines)
  8809. (read_command_lines_1): Change argument types to function_view.
  8810. (do_define_command, document_command): Update.
  8811. * breakpoint.h (check_tracepoint_command): Don't declare.
  8812. * breakpoint.c (check_tracepoint_command): Remove.
  8813. (commands_command_1, create_tracepoint_from_upload): Update.
  8814. 2018-05-04 Tom Tromey <tom@tromey.com>
  8815. PR gdb/11750:
  8816. * cli/cli-script.h (enum command_control_type) <define_control>:
  8817. New constant.
  8818. * cli/cli-script.c (multi_line_command_p): Handle define_control.
  8819. (build_command_line, execute_control_command_1)
  8820. (process_next_line): Likewise.
  8821. (do_define_command): New function, extracted from define_command.
  8822. (define_command): Use it.
  8823. 2018-05-04 Tom Tromey <tom@tromey.com>
  8824. * tracepoint.c (actions_command): Update.
  8825. * cli/cli-script.h (read_command_lines): Update.
  8826. * cli/cli-script.c (read_command_lines): Constify prompt_arg.
  8827. (MAX_TMPBUF): Remove define.
  8828. (define_command): Use string_printf.
  8829. (document_command): Likewise.
  8830. * breakpoint.c (commands_command_1): Update.
  8831. 2018-05-04 Tom Tromey <tom@tromey.com>
  8832. * top.c (execute_command): Update.
  8833. * cli/cli-script.h (print_command_lines): Now varargs.
  8834. * cli/cli-script.c (print_command_lines): Now varargs.
  8835. (execute_control_command_1) <case while_control, case if_control>:
  8836. Update.
  8837. 2018-05-04 Tom Tromey <tom@tromey.com>
  8838. * tracepoint.c (all_tracepoint_actions): Rename from
  8839. all_tracepoint_actions_and_cleanup. Change return type.
  8840. (actions_command, encode_actions_1, encode_actions)
  8841. (trace_dump_actions, tdump_command): Update.
  8842. * remote.c (remote_download_command_source): Update.
  8843. * python/python.c (gdbpy_eval_from_control_command)
  8844. (python_command, python_interactive_command): Update.
  8845. * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
  8846. * guile/guile.c (guile_command)
  8847. (gdbscm_eval_from_control_command, guile_command): Update.
  8848. * compile/compile.c (compile_code_command)
  8849. (compile_print_command, compile_to_object): Update.
  8850. * cli/cli-script.h (struct command_lines_deleter): New.
  8851. (counted_command_line): New typedef.
  8852. (struct command_line): Add constructor, destructor.
  8853. <body_list>: Remove.
  8854. <body_list_0, body_list_1>: New members.
  8855. (command_line_up): Remove typedef.
  8856. (read_command_lines, read_command_lines_1, get_command_line):
  8857. Update.
  8858. (copy_command_lines): Don't declare.
  8859. * cli/cli-script.c (build_command_line): Use "new".
  8860. (get_command_line): Return counted_command_line.
  8861. (print_command_lines, execute_user_command)
  8862. (execute_control_command_1, while_command, if_command): Update.
  8863. (realloc_body_list): Remove.
  8864. (process_next_line, recurse_read_control_structure): Update.
  8865. (read_command_lines, read_command_lines_1): Return counted_command_line.
  8866. (free_command_lines): Use "delete".
  8867. (copy_command_lines): Remove.
  8868. (define_command, document_command, show_user_1): Update.
  8869. * cli/cli-decode.h (struct cmd_list_element) <user_commands>: Now
  8870. a counted_command_line.
  8871. * breakpoint.h (counted_command_line): Remove typedef.
  8872. (breakpoint_set_commands): Update.
  8873. * breakpoint.c (check_no_tracepoint_commands)
  8874. (validate_commands_for_breakpoint): Update.
  8875. (breakpoint_set_commands): Change commands to be a
  8876. counted_command_line.
  8877. (commands_command_1, update_dprintf_command_list)
  8878. (create_tracepoint_from_upload): Update.
  8879. 2018-05-04 Tom Tromey <tom@tromey.com>
  8880. * cli/cli-decode.h (cmd_list_element): New constructor.
  8881. (~cmd_list_element): New destructor.
  8882. (struct cmd_list_element): Add initializers.
  8883. * cli/cli-decode.c (do_add_cmd): Use "new".
  8884. (delete_cmd): Use "delete".
  8885. 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
  8886. Pedro Alves <palves@redhat.com>
  8887. PR breakpoints/19806 and support for PR external/20207.
  8888. * NEWS: Mention Aarch64 watchpoint improvements.
  8889. * aarch64-linux-nat.c (aarch64_linux_stopped_data_address): Fix missed
  8890. watchpoints and PR external/20207 watchpoints.
  8891. * nat/aarch64-linux-hw-point.c
  8892. (kernel_supports_any_contiguous_range): New.
  8893. (aarch64_watchpoint_offset): New.
  8894. (aarch64_watchpoint_length): Support PR external/20207 watchpoints.
  8895. (aarch64_point_encode_ctrl_reg): New parameter offset, new asserts.
  8896. (aarch64_point_is_aligned): Support PR external/20207 watchpoints.
  8897. (aarch64_align_watchpoint): New parameters aligned_offset_p and
  8898. next_addr_orig_p. Support PR external/20207 watchpoints.
  8899. (aarch64_downgrade_regs): New.
  8900. (aarch64_dr_state_insert_one_point): New parameters offset and
  8901. addr_orig.
  8902. (aarch64_dr_state_remove_one_point): Likewise.
  8903. (aarch64_handle_breakpoint): Update caller.
  8904. (aarch64_handle_aligned_watchpoint): Likewise.
  8905. (aarch64_handle_unaligned_watchpoint): Support addr_orig and
  8906. aligned_offset.
  8907. (aarch64_linux_set_debug_regs): Remove const from state. Call
  8908. aarch64_downgrade_regs.
  8909. (aarch64_show_debug_reg_state): Print also dr_addr_orig_wp.
  8910. * nat/aarch64-linux-hw-point.h (DR_CONTROL_LENGTH): Rename to ...
  8911. (DR_CONTROL_MASK): ... this.
  8912. (struct aarch64_debug_reg_state): New field dr_addr_orig_wp.
  8913. (unsigned int aarch64_watchpoint_offset): New prototype.
  8914. (aarch64_linux_set_debug_regs): Remove const from state.
  8915. * utils.c (align_up, align_down): Move to ...
  8916. * common/common-utils.c (align_up, align_down): ... here.
  8917. * utils.h (align_up, align_down): Move to ...
  8918. * common/common-utils.h (align_up, align_down): ... here.
  8919. 2018-05-04 Joel Brobecker <brobecker@adacore.com>
  8920. * sparc-tdep.c (sparc_structure_return_p): Re-implement to
  8921. match the ABI as summarized in GCC's gcc/config/sparc/sparc.c.
  8922. (sparc_arg_by_memory_p): Renamed from sparc_arg_on_registers_p.
  8923. Re-implement to match the ABI as summarized in GCC's
  8924. gcc/config/sparc/sparc.c. All callers updated.
  8925. (sparc32_store_arguments): Remove assertion.
  8926. 2018-05-04 Tom Tromey <tom@tromey.com>
  8927. * printcmd.c: Don't include tui.h.
  8928. (decode_format): Use skip_spaces.
  8929. 2018-05-04 Tom Tromey <tom@tromey.com>
  8930. PR gdb/22619:
  8931. * printcmd.c (last_count): New global.
  8932. (x_command): Use saved count when repeating.
  8933. 2018-05-04 Tom Tromey <tom@tromey.com>
  8934. * nto-procfs.c (do_closedir_cleanup): Remove.
  8935. (procfs_pidlist): Use gdb_dir_up.
  8936. * procfs.c (do_closedir_cleanup): Remove.
  8937. (proc_update_threads): Use gdb_dir_up.
  8938. * common/filestuff.h (struct gdb_dir_deleter): New.
  8939. (gdb_dir_up): New typedef.
  8940. 2018-05-04 Tom Tromey <tom@tromey.com>
  8941. * ada-lang.c (print_mention_exception): Use std::string.
  8942. 2018-05-04 Tom Tromey <tom@tromey.com>
  8943. * ada-lang.c (create_excep_cond_exprs): Update.
  8944. (ada_exception_catchpoint_cond_string): Use std::string.
  8945. 2018-05-04 Tom Tromey <tom@tromey.com>
  8946. * ada-lang.c (xget_renaming_scope): Return std::string.
  8947. (old_renaming_is_invisible): Update.
  8948. 2018-05-04 Tom Tromey <tom@tromey.com>
  8949. * bfd-target.c (target_bfd::m_bfd): Now a gdb_bfd_ref_ptr.
  8950. (target_bfd::target_bfd, target_bfd::~target_bfd): Update.
  8951. 2018-05-04 Ulrich Weigand <uweigand@de.ibm.com>
  8952. * spu-linux-nat.c (spu_linux_nat_target::wait): Fix syntax error.
  8953. 2018-05-04 Tom Tromey <tom@tromey.com>
  8954. * remote.c (remote_query_supported_append): Change type.
  8955. (remote_check_symbols): Update.
  8956. 2018-05-04 Paul Pluzhnikov <ppluzhnikov@google.com>
  8957. PR gdb/11420
  8958. * configure.ac: Prepend libpython.
  8959. * python/python-config.py: Likewise.
  8960. * configure: Regenerate.
  8961. 2018-05-03 Simon Marchi <simon.marchi@ericsson.com>
  8962. * Makefile.in (%.c: %.l): Use -t instead of --stdout.
  8963. 2018-05-03 Pedro Alves <palves@redhat.com>
  8964. * s390-linux-nat.c
  8965. (s390_linux_nat_target::have_continuable_watchpoint): Mark with
  8966. override. Write 'true' instead of '1'.
  8967. (s390_linux_nat_target::watchpoint_addr_within_range): Remove
  8968. declaration.
  8969. 2018-05-02 Pedro Alves <palves@redhat.com>
  8970. * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Use
  8971. add_inf_child_target.
  8972. * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Use
  8973. add_inf_child_target.
  8974. * aix-thread.c (aix_thread_target_info): New.
  8975. (aix_thread_target) <shortname, longname, doc>: Delete.
  8976. <info>: New.
  8977. * alpha-bsd-nat.c (_initialize_alphabsd_nat): Use
  8978. add_inf_child_target.
  8979. * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
  8980. add_inf_child_target.
  8981. * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Use
  8982. add_inf_child_target.
  8983. * amd64-linux-nat.c (_initialize_amd64_linux_nat): Use
  8984. add_inf_child_target.
  8985. * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Use
  8986. add_inf_child_target.
  8987. * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Use
  8988. add_inf_child_target.
  8989. * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Use
  8990. add_inf_child_target.
  8991. * arm-linux-nat.c (_initialize_arm_linux_nat): Use
  8992. add_inf_child_target.
  8993. * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Use
  8994. add_inf_child_target.
  8995. * bfd-target.c (target_bfd_target_info): New.
  8996. (target_bfd) <shortname, longname, doc>: Delete.
  8997. <info>: New.
  8998. * bsd-kvm.c (bsd_kvm_target_info): New.
  8999. (bsd_kvm_target) <shortname, longname, doc>: Delete.
  9000. <info>: New.
  9001. (bsd_kvm_target::open): Rename to ...
  9002. (bsd_kvm_target_open): ... this. Adjust.
  9003. * bsd-uthread.c (bsd_uthread_target_info): New.
  9004. (bsd_uthread_target) <shortname, longname, doc>: Delete.
  9005. <info>: New.
  9006. * corefile.c (core_file_command): Adjust.
  9007. * corelow.c (core_target_info): New.
  9008. (core_target) <shortname, longname, doc>: Delete.
  9009. <info>: New.
  9010. (core_target::open): Rename to ...
  9011. (core_target_open): ... this. Adjust.
  9012. * ctf.c (ctf_target_info): New.
  9013. (ctf_target) <shortname, longname, doc>: Delete.
  9014. <info>: New.
  9015. (ctf_target::open): Rename to ...
  9016. (ctf_target_open): ... this.
  9017. (_initialize_ctf): Adjust.
  9018. * exec.c (exec_target_info): New.
  9019. (exec_target) <shortname, longname, doc>: Delete.
  9020. <info>: New.
  9021. (exec_target::open): Rename to ...
  9022. (exec_target_open): ... this.
  9023. * gdbcore.h (core_target_open): Declare.
  9024. * go32-nat.c (_initialize_go32_nat): Use add_inf_child_target.
  9025. * hppa-linux-nat.c (_initialize_hppa_linux_nat): Use
  9026. add_inf_child_target.
  9027. * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Use
  9028. add_inf_child_target.
  9029. * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Use
  9030. add_inf_child_target.
  9031. * i386-darwin-nat.c (_initialize_i386_darwin_nat): Use
  9032. add_inf_child_target.
  9033. * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Use
  9034. add_inf_child_target.
  9035. * i386-gnu-nat.c (_initialize_i386gnu_nat): Use
  9036. add_inf_child_target.
  9037. * i386-linux-nat.c (_initialize_i386_linux_nat): Use
  9038. add_inf_child_target.
  9039. * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Use
  9040. add_inf_child_target.
  9041. * i386-obsd-nat.c (_initialize_i386obsd_nat): Use
  9042. add_inf_child_target.
  9043. * ia64-linux-nat.c (_initialize_ia64_linux_nat): Use
  9044. add_inf_child_target.
  9045. * inf-child.c (inf_child_target_info): New.
  9046. (inf_child_target::info): New.
  9047. (inf_child_open_target): Remove 'target' parameter. Use
  9048. get_native_target instead.
  9049. (inf_child_target::open): Delete.
  9050. (add_inf_child_target): New.
  9051. * inf-child.h (inf_child_target) <shortname, longname, doc, open>:
  9052. Delete.
  9053. <info>: New.
  9054. (add_inf_child_target): Declare.
  9055. (inf_child_open_target): Declare.
  9056. * linux-thread-db.c (thread_db_target_info): New.
  9057. (thread_db_target) <shortname, longname, doc>: Delete.
  9058. <info>: New.
  9059. * m32r-linux-nat.c (_initialize_m32r_linux_nat): Use
  9060. add_inf_child_target.
  9061. * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Use
  9062. add_inf_child_target.
  9063. * m68k-linux-nat.c (_initialize_m68k_linux_nat): Use
  9064. add_inf_child_target.
  9065. * m88k-bsd-nat.c (_initialize_m88kbsd_nat): Use
  9066. add_inf_child_target.
  9067. * make-target-delegates (print_class): Adjust.
  9068. * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Use
  9069. add_inf_child_target.
  9070. * mips-linux-nat.c (_initialize_mips_linux_nat): Use
  9071. add_inf_child_target.
  9072. * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Use
  9073. add_inf_child_target.
  9074. * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Use
  9075. add_inf_child_target.
  9076. * nto-procfs.c (nto_native_target_info): New.
  9077. (nto_procfs_target_native) <shortname, longname, doc>:
  9078. Delete.
  9079. <info>: New.
  9080. (nto_procfs_target_info): New.
  9081. (nto_procfs_target_procfs) <shortname, longname, doc>:
  9082. Delete.
  9083. <info>: New.
  9084. (init_procfs_targets): Adjust.
  9085. * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Use
  9086. add_inf_child_target.
  9087. * ppc-linux-nat.c (_initialize_ppc_linux_nat): Use
  9088. add_inf_child_target.
  9089. * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Use
  9090. add_inf_child_target.
  9091. * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Use
  9092. add_inf_child_target.
  9093. * ravenscar-thread.c (ravenscar_target_info): New.
  9094. (ravenscar_thread_target) <shortname, longname, doc>:
  9095. Delete.
  9096. <info>: New.
  9097. * record-btrace.c (record_btrace_target_info):
  9098. (record_btrace_target) <shortname, longname, doc>: Delete.
  9099. <info>: New.
  9100. (record_btrace_target::open): Rename to ...
  9101. (record_btrace_target_open): ... this. Adjust.
  9102. * record-full.c (record_longname, record_doc): New.
  9103. (record_full_base_target) <shortname, longname, doc>: Delete.
  9104. <info>: New.
  9105. (record_full_target_info): New.
  9106. (record_full_target): <shortname>: Delete.
  9107. <info>: New.
  9108. (record_full_core_open_1, record_full_open_1): Update comments.
  9109. (record_full_base_target::open): Rename to ...
  9110. (record_full_open): ... this.
  9111. (cmd_record_full_restore): Update.
  9112. (_initialize_record_full): Update.
  9113. * remote-sim.c (remote_sim_target_info): New.
  9114. (gdbsim_target) <shortname, longname, doc>: Delete.
  9115. <info>: New.
  9116. (gdbsim_target::open): Rename to ...
  9117. (gdbsim_target_open): ... this.
  9118. (_initialize_remote_sim): Adjust.
  9119. * remote.c (remote_doc): New.
  9120. (remote_target_info): New.
  9121. (remote_target) <shortname, longname, doc>: Delete.
  9122. <info>: New.
  9123. (extended_remote_target_info): New.
  9124. (extended_remote_target) <shortname, longname, doc>: Delete.
  9125. <info>: New.
  9126. (remote_target::open_1): Make static. Adjust.
  9127. * rs6000-nat.c (_initialize_rs6000_nat): Use add_inf_child_target.
  9128. * s390-linux-nat.c (_initialize_s390_nat): Use
  9129. add_inf_child_target.
  9130. * sh-nbsd-nat.c (_initialize_shnbsd_nat): Use
  9131. add_inf_child_target.
  9132. * sol-thread.c (thread_db_target_info): New.
  9133. (sol_thread_target) <shortname, longname, doc>: Delete.
  9134. <info>: New.
  9135. * sparc-linux-nat.c (_initialize_sparc_linux_nat): Use
  9136. add_inf_child_target.
  9137. * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Use
  9138. add_inf_child_target.
  9139. * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Use
  9140. add_inf_child_target.
  9141. * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Use
  9142. add_inf_child_target.
  9143. * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Use
  9144. add_inf_child_target.
  9145. * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Use
  9146. add_inf_child_target.
  9147. * spu-linux-nat.c (_initialize_spu_nat): Use
  9148. add_inf_child_target.
  9149. * spu-multiarch.c (spu_multiarch_target_info): New.
  9150. (spu_multiarch_target) <shortname, longname, doc>: Delete.
  9151. <info>: New.
  9152. * target-delegates.c: Regenerate.
  9153. * target.c: Include <unordered_map>.
  9154. (target_ops_p): Delete.
  9155. (DEF_VEC_P(target_ops_p)): Delete.
  9156. (target_factories): New.
  9157. (test_target_info): New.
  9158. (test_target_ops::info): New.
  9159. (open_target): Adjust to use target_factories.
  9160. (add_target_with_completer): Rename to ...
  9161. (add_target): ... this. Change prototype. Register target_info
  9162. and open callback in target_factories. Register target_info in
  9163. command context instead of target_ops.
  9164. (add_target): Delete old implementation.
  9165. (add_deprecated_target_alias): Change prototype. Adjust.
  9166. (the_native_target): New.
  9167. (set_native_target, get_native_target): New.
  9168. (find_default_run_target): Use the_native_target.
  9169. (find_attach_target, find_run_target): Simplify.
  9170. (target_ops::open): Delete.
  9171. (dummy_target_info): New.
  9172. (dummy_target::shortname, dummy_target::longname)
  9173. (dummy_target::doc): Delete.
  9174. (dummy_target::info): New.
  9175. (debug_target::shortname, debug_target::longname)
  9176. (debug_target::doc): Delete.
  9177. (debug_target::info): New.
  9178. * target.h (struct target_info): New.
  9179. (target_ops::~target_ops): Add comment.
  9180. (target_ops::info): New.
  9181. (target_ops::shortname, target_ops::longname, target_ops::doc): No
  9182. longer virtual. Implement in terms of target_info.
  9183. (set_native_target, get_native_target): Declare.
  9184. (target_open_ftype): New.
  9185. (add_target, add_target_with_completer)
  9186. (add_deprecated_target_alias): Change prototype.
  9187. (test_target) <shortname, longname, doc>: Delete.
  9188. <info>: New.
  9189. * tilegx-linux-nat.c (_initialize_tile_linux_nat): Use
  9190. add_inf_child_target.
  9191. * tracefile-tfile.c (tfile_target_info): New.
  9192. (tfile_target) <shortname, longname, doc>: Delete.
  9193. <info>: New.
  9194. (tfile_target::open): Rename to ...
  9195. (tfile_target_open): ... this.
  9196. (_initialize_tracefile_tfile): Adjust.
  9197. * vax-bsd-nat.c (_initialize_vaxbsd_nat): Use
  9198. add_inf_child_target.
  9199. * windows-nat.c (_initialize_windows_nat): Use
  9200. add_inf_child_target.
  9201. * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Use
  9202. add_inf_child_target.
  9203. 2018-05-02 Pedro Alves <palves@redhat.com>
  9204. * linux-nat.h (linux_nat_target) <low_new_thread,
  9205. low_delete_thread, low_new_fork, low_forget_process,
  9206. low_prepare_to_resume, low_siginfo_fixup, low_status_is_event>:
  9207. New virtual methods.
  9208. (linux_nat_set_new_thread, linux_nat_set_delete_thread)
  9209. (linux_nat_new_fork_ftype, linux_nat_set_new_fork)
  9210. (linux_nat_forget_process_ftype, linux_nat_set_forget_process)
  9211. (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
  9212. (linux_nat_set_prepare_to_resume, linux_nat_set_status_is_event):
  9213. Delete.
  9214. * linux-fork.c (delete_fork): Adjust to call low method.
  9215. * linux-nat.c (linux_nat_new_thread, linux_nat_delete_thread)
  9216. (linux_nat_new_fork, linux_nat_forget_process_hook)
  9217. (linux_nat_prepare_to_resume, linux_nat_siginfo_fixup)
  9218. (linux_nat_status_is_event):
  9219. (linux_nat_target::follow_fork, lwp_free, add_lwp, detach_one_lwp)
  9220. (linux_resume_one_lwp_throw, linux_handle_extended_wait): Adjust
  9221. to call low method.
  9222. (sigtrap_is_event): Rename to ...
  9223. (linux_nat_target::low_status_is_event): ... this.
  9224. (linux_nat_set_status_is_event): Delete.
  9225. (save_stop_reason, linux_nat_wait_1)
  9226. (linux_nat_target::mourn_inferior, siginfo_fixup): Adjust to call
  9227. low methods.
  9228. (linux_nat_set_new_thread, linux_nat_set_delete_thread)
  9229. (linux_nat_set_new_fork, linux_nat_set_forget_process)
  9230. (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
  9231. (linux_nat_set_prepare_to_resume): Delete.
  9232. * aarch64-linux-nat.c: All linux_nat_set_* callbacks converted to
  9233. low virtual methods.
  9234. * amd64-linux-nat.c: Likewise.
  9235. * arm-linux-nat.c: Likewise.
  9236. * i386-linux-nat.c: Likewise.
  9237. * ia64-linux-nat.c: Likewise.
  9238. * mips-linux-nat.c: Likewise.
  9239. * ppc-linux-nat.c: Likewise.
  9240. * s390-linux-nat.c: Likewise.
  9241. * sparc64-linux-nat.c: Likewise.
  9242. * x86-linux-nat.c: Likewise.
  9243. * x86-linux-nat.h: Include "nat/x86-linux.h".
  9244. (x86_linux_nat_target) <low_new_fork, low_forget_process,
  9245. low_prepare_to_resume, low_new_thread, low_delete_thread>:
  9246. Override methods.
  9247. 2018-05-02 Pedro Alves <palves@redhat.com>
  9248. * target.h (target_ops)
  9249. <stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
  9250. stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint,
  9251. stopped_by_watchpoint, have_continuable_watchpoint,
  9252. stopped_data_address, watchpoint_addr_within_range,
  9253. can_accel_watchpoint_condition, can_run, thread_alive,
  9254. has_all_memory, has_memory, has_stack, has_registers,
  9255. has_execution, can_async_p, is_async_p, supports_non_stop,
  9256. always_non_stop_p, can_execute_reverse, supports_multi_process,
  9257. supports_enable_disable_tracepoint,
  9258. supports_disable_randomization, supports_string_tracing,
  9259. supports_evaluation_of_breakpoint_conditions,
  9260. can_run_breakpoint_commands, filesystem_is_local,
  9261. can_download_tracepoint, get_trace_state_variable_value,
  9262. set_trace_notes, get_tib_address, use_agent, can_use_agent,
  9263. record_is_replaying, record_will_replay,
  9264. augmented_libraries_svr4_read>: Adjust to return bool.
  9265. * aarch64-linux-nat.c: All implementations adjusted.
  9266. * aix-thread.c: All implementations adjusted.
  9267. * arm-linux-nat.c: All implementations adjusted.
  9268. * breakpoint.c: All implementations adjusted.
  9269. * bsd-kvm.c: All implementations adjusted.
  9270. * bsd-uthread.c: All implementations adjusted.
  9271. * corelow.c: All implementations adjusted.
  9272. * ctf.c: All implementations adjusted.
  9273. * darwin-nat.c: All implementations adjusted.
  9274. * darwin-nat.h: All implementations adjusted.
  9275. * exec.c: All implementations adjusted.
  9276. * fbsd-nat.c: All implementations adjusted.
  9277. * fbsd-nat.h: All implementations adjusted.
  9278. * gnu-nat.c: All implementations adjusted.
  9279. * gnu-nat.h: All implementations adjusted.
  9280. * go32-nat.c: All implementations adjusted.
  9281. * ia64-linux-nat.c: All implementations adjusted.
  9282. * inf-child.c: All implementations adjusted.
  9283. * inf-child.h: All implementations adjusted.
  9284. * inf-ptrace.c: All implementations adjusted.
  9285. * inf-ptrace.h: All implementations adjusted.
  9286. * linux-nat.c: All implementations adjusted.
  9287. * linux-nat.h: All implementations adjusted.
  9288. * mips-linux-nat.c: All implementations adjusted.
  9289. * nto-procfs.c: All implementations adjusted.
  9290. * ppc-linux-nat.c: All implementations adjusted.
  9291. * procfs.c: All implementations adjusted.
  9292. * ravenscar-thread.c: All implementations adjusted.
  9293. * record-btrace.c: All implementations adjusted.
  9294. * record-full.c: All implementations adjusted.
  9295. * remote-sim.c: All implementations adjusted.
  9296. * remote.c: All implementations adjusted.
  9297. * s390-linux-nat.c: All implementations adjusted.
  9298. * sol-thread.c: All implementations adjusted.
  9299. * spu-multiarch.c: All implementations adjusted.
  9300. * target-delegates.c: All implementations adjusted.
  9301. * target.c: All implementations adjusted.
  9302. * target.h: All implementations adjusted.
  9303. * tracefile-tfile.c: All implementations adjusted.
  9304. * tracefile.c: All implementations adjusted.
  9305. * tracefile.h: All implementations adjusted.
  9306. * windows-nat.c: All implementations adjusted.
  9307. * x86-linux-nat.h: All implementations adjusted.
  9308. * x86-nat.h: All implementations adjusted.
  9309. 2018-05-02 Pedro Alves <palves@redhat.com>
  9310. * make-target-delegates (scan_target_h): Don't trim lines here.
  9311. Replace sequences of tabs and/or whitespace with a single
  9312. whitespace.
  9313. (top level, parsing methods): Trim each line before processing it
  9314. here.
  9315. 2018-05-02 Pedro Alves <palves@redhat.com>
  9316. John Baldwin <jhb@freebsd.org>
  9317. * target.h (enum strata) <debug_stratum>: New.
  9318. (struct target_ops) <all delegation methods>: Replace by C++
  9319. virtual methods, and drop "to_" prefix. All references updated
  9320. throughout.
  9321. <to_shortname, to_longname, to_doc, to_data,
  9322. to_have_steppable_watchpoint, to_have_continuable_watchpoint,
  9323. to_has_thread_control, to_attach_no_wait>: Delete, replaced by
  9324. virtual methods. All references updated throughout.
  9325. <can_attach, supports_terminal_ours, can_create_inferior,
  9326. get_thread_control_capabilities, attach_no_wait>: New
  9327. virtual methods.
  9328. <insert_breakpoint, remove_breakpoint>: Now
  9329. TARGET_DEFAULT_NORETURN methods.
  9330. <info_proc>: Now returns bool.
  9331. <to_magic>: Delete.
  9332. (OPS_MAGIC): Delete.
  9333. (current_target): Delete. All references replaced by references
  9334. to ...
  9335. (target_stack): ... this. New.
  9336. (target_shortname, target_longname): Adjust.
  9337. (target_can_run): Now a function declaration.
  9338. (default_child_has_all_memory, default_child_has_memory)
  9339. (default_child_has_stack, default_child_has_registers)
  9340. (default_child_has_execution): Remove target_ops parameter.
  9341. (complete_target_initialization): Delete.
  9342. (memory_breakpoint_target): New template class.
  9343. (test_target_ops): Refactor as a C++ class with virtual methods.
  9344. * make-target-delegates (NAME_PART): Tighten.
  9345. (POINTER_PART, CP_SYMBOL): New.
  9346. (SIMPLE_RETURN_PART): Reimplement.
  9347. (VEC_RETURN_PART): Expect less.
  9348. (RETURN_PART, VIRTUAL_PART): New.
  9349. (METHOD): Adjust to C++ virtual methods.
  9350. (scan_target_h): Remove reference to C99.
  9351. (dname): Output "target_ops::" prefix.
  9352. (write_function_header): Adjust to output a C++ class method.
  9353. (write_declaration): New.
  9354. (write_delegator): Adjust to output a C++ class method.
  9355. (tdname): Output "dummy_target::" prefix.
  9356. (write_tdefault, write_debugmethod): Adjust to output a C++ class
  9357. method.
  9358. (tdefault_names, debug_names): Delete.
  9359. (return_types, tdefaults, styles, argtypes_array): New.
  9360. (top level): All methods are delegators.
  9361. (print_class): New.
  9362. (top level): Print dummy_target and debug_target classes.
  9363. * target-delegates.c: Regenerate.
  9364. * target-debug.h (target_debug_print_enum_info_proc_what)
  9365. (target_debug_print_thread_control_capabilities)
  9366. (target_debug_print_thread_info_p): New.
  9367. * target.c (dummy_target): Delete.
  9368. (the_dummy_target, the_debug_target): New.
  9369. (target_stack): Now extern.
  9370. (set_targetdebug): Push/unpush debug target.
  9371. (default_child_has_all_memory, default_child_has_memory)
  9372. (default_child_has_stack, default_child_has_registers)
  9373. (default_child_has_execution): Remove target_ops parameter.
  9374. (complete_target_initialization): Delete.
  9375. (add_target_with_completer): No longer call
  9376. complete_target_initialization.
  9377. (target_supports_terminal_ours): Use regular delegation.
  9378. (update_current_target): Delete.
  9379. (push_target): No longer check magic number. Don't call
  9380. update_current_target.
  9381. (unpush_target): Don't call update_current_target.
  9382. (target_is_pushed): No longer check magic number.
  9383. (target_require_runnable): Skip for all stratums over
  9384. process_stratum.
  9385. (target_ops::info_proc): New.
  9386. (target_info_proc): Use find_target_at and
  9387. find_default_run_target.
  9388. (target_supports_disable_randomization): Use regular delegation.
  9389. (target_get_osdata): Use find_target_at.
  9390. (target_ops::open, target_ops::close, target_ops::can_attach)
  9391. (target_ops::attach, target_ops::can_create_inferior)
  9392. (target_ops::create_inferior, target_ops::can_run)
  9393. (target_can_run): New.
  9394. (default_fileio_target): Use regular delegation.
  9395. (target_ops::fileio_open, target_ops::fileio_pwrite)
  9396. (target_ops::fileio_pread, target_ops::fileio_fstat)
  9397. (target_ops::fileio_close, target_ops::fileio_unlink)
  9398. (target_ops::fileio_readlink): New.
  9399. (target_fileio_open_1, target_fileio_unlink)
  9400. (target_fileio_readlink): Always call the target method. Handle
  9401. FILEIO_ENOSYS.
  9402. (return_zero, return_zero_has_execution): Delete.
  9403. (init_dummy_target): Delete.
  9404. (dummy_target::dummy_target, dummy_target::shortname)
  9405. (dummy_target::longname, dummy_target::doc)
  9406. (debug_target::debug_target, debug_target::shortname)
  9407. (debug_target::longname, debug_target::doc): New.
  9408. (target_supports_delete_record): Use regular delegation.
  9409. (setup_target_debug): Delete.
  9410. (maintenance_print_target_stack): Skip debug_stratum.
  9411. (initialize_targets): Instantiate the_dummy_target and
  9412. the_debug_target.
  9413. * auxv.c (target_auxv_parse): Remove 'ops' parameter. Adjust to
  9414. use target_stack.
  9415. (target_auxv_search, fprint_target_auxv): Adjust.
  9416. (info_auxv_command): Adjust to use target_stack.
  9417. * auxv.h (target_auxv_parse): Remove 'ops' parameter.
  9418. * exceptions.c (print_flush): Handle a NULL target_stack.
  9419. * regcache.c (target_ops_no_register): Refactor as class with
  9420. virtual methods.
  9421. * exec.c (exec_target): New class.
  9422. (exec_ops): Now an exec_target.
  9423. (exec_open, exec_close_1, exec_get_section_table)
  9424. (exec_xfer_partial, exec_files_info, exec_has_memory)
  9425. (exec_make_note_section): Refactor as exec_target methods.
  9426. (exec_file_clear, ignore, exec_remove_breakpoint, init_exec_ops):
  9427. Delete.
  9428. (exec_target::find_memory_regions): New.
  9429. (_initialize_exec): Don't call init_exec_ops.
  9430. * gdbcore.h (exec_file_clear): Delete.
  9431. * corefile.c (core_target): Delete.
  9432. (core_file_command): Adjust.
  9433. * corelow.c (core_target): New class.
  9434. (the_core_target): New.
  9435. (core_close): Remove target_ops parameter.
  9436. (core_close_cleanup): Adjust.
  9437. (core_target::close): New.
  9438. (core_open, core_detach, get_core_registers, core_files_info)
  9439. (core_xfer_partial, core_thread_alive, core_read_description)
  9440. (core_pid_to_str, core_thread_name, core_has_memory)
  9441. (core_has_stack, core_has_registers, core_info_proc): Rework as
  9442. core_target methods.
  9443. (ignore, core_remove_breakpoint, init_core_ops): Delete.
  9444. (_initialize_corelow): Initialize the_core_target.
  9445. * gdbcore.h (core_target): Delete.
  9446. (the_core_target): New.
  9447. * ctf.c: (ctf_target): New class.
  9448. (ctf_ops): Now a ctf_target.
  9449. (ctf_open, ctf_close, ctf_files_info, ctf_fetch_registers)
  9450. (ctf_xfer_partial, ctf_get_trace_state_variable_value)
  9451. (ctf_trace_find, ctf_traceframe_info): Refactor as ctf_target
  9452. methods.
  9453. (init_ctf_ops): Delete.
  9454. (_initialize_ctf): Don't call it.
  9455. * tracefile-tfile.c (tfile_target): New class.
  9456. (tfile_ops): Now a tfile_target.
  9457. (tfile_open, tfile_close, tfile_files_info)
  9458. (tfile_get_tracepoint_status, tfile_trace_find)
  9459. (tfile_fetch_registers, tfile_xfer_partial)
  9460. (tfile_get_trace_state_variable_value, tfile_traceframe_info):
  9461. Refactor as tfile_target methods.
  9462. (tfile_xfer_partial_features): Remove target_ops parameter.
  9463. (init_tfile_ops): Delete.
  9464. (_initialize_tracefile_tfile): Don't call it.
  9465. * tracefile.c (tracefile_has_all_memory, tracefile_has_memory)
  9466. (tracefile_has_stack, tracefile_has_registers)
  9467. (tracefile_thread_alive, tracefile_get_trace_status): Refactor as
  9468. tracefile_target methods.
  9469. (init_tracefile_ops): Delete.
  9470. (tracefile_target::tracefile_target): New.
  9471. * tracefile.h: Include "target.h".
  9472. (tracefile_target): New class.
  9473. (init_tracefile_ops): Delete.
  9474. * spu-multiarch.c (spu_multiarch_target): New class.
  9475. (spu_ops): Now a spu_multiarch_target.
  9476. (spu_thread_architecture, spu_region_ok_for_hw_watchpoint)
  9477. (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
  9478. (spu_search_memory, spu_mourn_inferior): Refactor as
  9479. spu_multiarch_target methods.
  9480. (init_spu_ops): Delete.
  9481. (_initialize_spu_multiarch): Remove references to init_spu_ops,
  9482. complete_target_initialization.
  9483. * ravenscar-thread.c (ravenscar_thread_target): New class.
  9484. (ravenscar_ops): Now a ravenscar_thread_target.
  9485. (ravenscar_resume, ravenscar_wait, ravenscar_update_thread_list)
  9486. (ravenscar_thread_alive, ravenscar_pid_to_str)
  9487. (ravenscar_fetch_registers, ravenscar_store_registers)
  9488. (ravenscar_prepare_to_store, ravenscar_stopped_by_sw_breakpoint)
  9489. (ravenscar_stopped_by_hw_breakpoint)
  9490. (ravenscar_stopped_by_watchpoint, ravenscar_stopped_data_address)
  9491. (ravenscar_mourn_inferior, ravenscar_core_of_thread)
  9492. (ravenscar_get_ada_task_ptid): Refactor as ravenscar_thread_target
  9493. methods.
  9494. (init_ravenscar_thread_ops): Delete.
  9495. (_initialize_ravenscar): Remove references to
  9496. init_ravenscar_thread_ops and complete_target_initialization.
  9497. * bsd-uthread.c (bsd_uthread_ops_hack): Delete.
  9498. (bsd_uthread_target): New class.
  9499. (bsd_uthread_ops): Now a bsd_uthread_target.
  9500. (bsd_uthread_activate): Adjust to refer to bsd_uthread_ops.
  9501. (bsd_uthread_close, bsd_uthread_mourn_inferior)
  9502. (bsd_uthread_fetch_registers, bsd_uthread_store_registers)
  9503. (bsd_uthread_wait, bsd_uthread_resume, bsd_uthread_thread_alive)
  9504. (bsd_uthread_update_thread_list, bsd_uthread_extra_thread_info)
  9505. (bsd_uthread_pid_to_str): Refactor as bsd_uthread_target methods.
  9506. (bsd_uthread_target): Delete function.
  9507. (_initialize_bsd_uthread): Remove reference to
  9508. complete_target_initialization.
  9509. * bfd-target.c (target_bfd_data): Delete. Fields folded into ...
  9510. (target_bfd): ... this new class.
  9511. (target_bfd_xfer_partial, target_bfd_get_section_table)
  9512. (target_bfd_close): Refactor as target_bfd methods.
  9513. (target_bfd::~target_bfd): New.
  9514. (target_bfd_reopen): Adjust.
  9515. (target_bfd::close): New.
  9516. * record-btrace.c (record_btrace_target): New class.
  9517. (record_btrace_ops): Now a record_btrace_target.
  9518. (record_btrace_open, record_btrace_stop_recording)
  9519. (record_btrace_disconnect, record_btrace_close)
  9520. (record_btrace_async, record_btrace_info)
  9521. (record_btrace_insn_history, record_btrace_insn_history_range)
  9522. (record_btrace_insn_history_from, record_btrace_call_history)
  9523. (record_btrace_call_history_range)
  9524. (record_btrace_call_history_from, record_btrace_record_method)
  9525. (record_btrace_is_replaying, record_btrace_will_replay)
  9526. (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
  9527. (record_btrace_remove_breakpoint, record_btrace_fetch_registers)
  9528. (record_btrace_store_registers, record_btrace_prepare_to_store)
  9529. (record_btrace_to_get_unwinder)
  9530. (record_btrace_to_get_tailcall_unwinder, record_btrace_resume)
  9531. (record_btrace_commit_resume, record_btrace_wait)
  9532. (record_btrace_stop, record_btrace_can_execute_reverse)
  9533. (record_btrace_stopped_by_sw_breakpoint)
  9534. (record_btrace_supports_stopped_by_sw_breakpoint)
  9535. (record_btrace_stopped_by_hw_breakpoint)
  9536. (record_btrace_supports_stopped_by_hw_breakpoint)
  9537. (record_btrace_update_thread_list, record_btrace_thread_alive)
  9538. (record_btrace_goto_begin, record_btrace_goto_end)
  9539. (record_btrace_goto, record_btrace_stop_replaying_all)
  9540. (record_btrace_execution_direction)
  9541. (record_btrace_prepare_to_generate_core)
  9542. (record_btrace_done_generating_core): Refactor as
  9543. record_btrace_target methods.
  9544. (init_record_btrace_ops): Delete.
  9545. (_initialize_record_btrace): Remove reference to
  9546. init_record_btrace_ops.
  9547. * record-full.c (RECORD_FULL_IS_REPLAY): Adjust to always refer to
  9548. the execution_direction global.
  9549. (record_full_base_target, record_full_target)
  9550. (record_full_core_target): New classes.
  9551. (record_full_ops): Now a record_full_target.
  9552. (record_full_core_ops): Now a record_full_core_target.
  9553. (record_full_target::detach, record_full_target::disconnect)
  9554. (record_full_core_target::disconnect)
  9555. (record_full_target::mourn_inferior, record_full_target::kill):
  9556. New.
  9557. (record_full_open, record_full_close, record_full_async): Refactor
  9558. as methods of the record_full_base_target class.
  9559. (record_full_resume, record_full_commit_resume): Refactor
  9560. as methods of the record_full_target class.
  9561. (record_full_wait, record_full_stopped_by_watchpoint)
  9562. (record_full_stopped_data_address)
  9563. (record_full_stopped_by_sw_breakpoint)
  9564. (record_full_supports_stopped_by_sw_breakpoint)
  9565. (record_full_stopped_by_hw_breakpoint)
  9566. (record_full_supports_stopped_by_hw_breakpoint): Refactor as
  9567. methods of the record_full_base_target class.
  9568. (record_full_store_registers, record_full_xfer_partial)
  9569. (record_full_insert_breakpoint, record_full_remove_breakpoint):
  9570. Refactor as methods of the record_full_target class.
  9571. (record_full_can_execute_reverse, record_full_get_bookmark)
  9572. (record_full_goto_bookmark, record_full_execution_direction)
  9573. (record_full_record_method, record_full_info, record_full_delete)
  9574. (record_full_is_replaying, record_full_will_replay)
  9575. (record_full_goto_begin, record_full_goto_end, record_full_goto)
  9576. (record_full_stop_replaying): Refactor as methods of the
  9577. record_full_base_target class.
  9578. (record_full_core_resume, record_full_core_kill)
  9579. (record_full_core_fetch_registers)
  9580. (record_full_core_prepare_to_store)
  9581. (record_full_core_store_registers, record_full_core_xfer_partial)
  9582. (record_full_core_insert_breakpoint)
  9583. (record_full_core_remove_breakpoint)
  9584. (record_full_core_has_execution): Refactor
  9585. as methods of the record_full_core_target class.
  9586. (record_full_base_target::supports_delete_record): New.
  9587. (init_record_full_ops): Delete.
  9588. (init_record_full_core_ops): Delete.
  9589. (record_full_save): Refactor as method of the
  9590. record_full_base_target class.
  9591. (_initialize_record_full): Remove references to
  9592. init_record_full_ops and init_record_full_core_ops.
  9593. * remote.c (remote_target, extended_remote_target): New classes.
  9594. (remote_ops): Now a remote_target.
  9595. (extended_remote_ops): Now an extended_remote_target.
  9596. (remote_insert_fork_catchpoint, remote_remove_fork_catchpoint)
  9597. (remote_insert_vfork_catchpoint, remote_remove_vfork_catchpoint)
  9598. (remote_insert_exec_catchpoint, remote_remove_exec_catchpoint)
  9599. (remote_pass_signals, remote_set_syscall_catchpoint)
  9600. (remote_program_signals, )
  9601. (remote_thread_always_alive): Remove target_ops parameter.
  9602. (remote_thread_alive, remote_thread_name)
  9603. (remote_update_thread_list, remote_threads_extra_info)
  9604. (remote_static_tracepoint_marker_at)
  9605. (remote_static_tracepoint_markers_by_strid)
  9606. (remote_get_ada_task_ptid, remote_close, remote_start_remote)
  9607. (remote_open): Refactor as methods of remote_target.
  9608. (extended_remote_open, extended_remote_detach)
  9609. (extended_remote_attach, extended_remote_post_attach):
  9610. (extended_remote_supports_disable_randomization)
  9611. (extended_remote_create_inferior): : Refactor as method of
  9612. extended_remote_target.
  9613. (remote_set_permissions, remote_open_1, remote_detach)
  9614. (remote_follow_fork, remote_follow_exec, remote_disconnect)
  9615. (remote_resume, remote_commit_resume, remote_stop)
  9616. (remote_interrupt, remote_pass_ctrlc, remote_terminal_inferior)
  9617. (remote_terminal_ours, remote_wait, remote_fetch_registers)
  9618. (remote_prepare_to_store, remote_store_registers)
  9619. (remote_flash_erase, remote_flash_done, remote_files_info)
  9620. (remote_kill, remote_mourn, remote_insert_breakpoint)
  9621. (remote_remove_breakpoint, remote_insert_watchpoint)
  9622. (remote_watchpoint_addr_within_range)
  9623. (remote_remove_watchpoint, remote_region_ok_for_hw_watchpoint)
  9624. (remote_check_watch_resources, remote_stopped_by_sw_breakpoint)
  9625. (remote_supports_stopped_by_sw_breakpoint)
  9626. (remote_stopped_by_hw_breakpoint)
  9627. (remote_supports_stopped_by_hw_breakpoint)
  9628. (remote_stopped_by_watchpoint, remote_stopped_data_address)
  9629. (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
  9630. (remote_verify_memory): Refactor as methods of remote_target.
  9631. (remote_write_qxfer, remote_read_qxfer): Remove target_ops
  9632. parameter.
  9633. (remote_xfer_partial, remote_get_memory_xfer_limit)
  9634. (remote_search_memory, remote_rcmd, remote_memory_map)
  9635. (remote_pid_to_str, remote_get_thread_local_address)
  9636. (remote_get_tib_address, remote_read_description): Refactor as
  9637. methods of remote_target.
  9638. (remote_target::fileio_open, remote_target::fileio_pwrite)
  9639. (remote_target::fileio_pread, remote_target::fileio_close): New.
  9640. (remote_hostio_readlink, remote_hostio_fstat)
  9641. (remote_filesystem_is_local, remote_can_execute_reverse)
  9642. (remote_supports_non_stop, remote_supports_disable_randomization)
  9643. (remote_supports_multi_process, remote_supports_cond_breakpoints)
  9644. (remote_supports_enable_disable_tracepoint)
  9645. (remote_supports_string_tracing)
  9646. (remote_can_run_breakpoint_commands, remote_trace_init)
  9647. (remote_download_tracepoint, remote_can_download_tracepoint)
  9648. (remote_download_trace_state_variable, remote_enable_tracepoint)
  9649. (remote_disable_tracepoint, remote_trace_set_readonly_regions)
  9650. (remote_trace_start, remote_get_trace_status)
  9651. (remote_get_tracepoint_status, remote_trace_stop)
  9652. (remote_trace_find, remote_get_trace_state_variable_value)
  9653. (remote_save_trace_data, remote_get_raw_trace_data)
  9654. (remote_set_disconnected_tracing, remote_core_of_thread)
  9655. (remote_set_circular_trace_buffer, remote_traceframe_info)
  9656. (remote_get_min_fast_tracepoint_insn_len)
  9657. (remote_set_trace_buffer_size, remote_set_trace_notes)
  9658. (remote_use_agent, remote_can_use_agent, remote_enable_btrace)
  9659. (remote_disable_btrace, remote_teardown_btrace)
  9660. (remote_read_btrace, remote_btrace_conf)
  9661. (remote_augmented_libraries_svr4_read, remote_load)
  9662. (remote_pid_to_exec_file, remote_can_do_single_step)
  9663. (remote_execution_direction, remote_thread_handle_to_thread_info):
  9664. Refactor as methods of remote_target.
  9665. (init_remote_ops, init_extended_remote_ops): Delete.
  9666. (remote_can_async_p, remote_is_async_p, remote_async)
  9667. (remote_thread_events, remote_upload_tracepoints)
  9668. (remote_upload_trace_state_variables): Refactor as methods of
  9669. remote_target.
  9670. (_initialize_remote): Remove references to init_remote_ops and
  9671. init_extended_remote_ops.
  9672. * remote-sim.c (gdbsim_target): New class.
  9673. (gdbsim_fetch_register, gdbsim_store_register, gdbsim_kill)
  9674. (gdbsim_load, gdbsim_create_inferior, gdbsim_open, gdbsim_close)
  9675. (gdbsim_detach, gdbsim_resume, gdbsim_interrupt)
  9676. (gdbsim_wait, gdbsim_prepare_to_store, gdbsim_xfer_partial)
  9677. (gdbsim_files_info, gdbsim_mourn_inferior, gdbsim_thread_alive)
  9678. (gdbsim_pid_to_str, gdbsim_has_all_memory, gdbsim_has_memory):
  9679. Refactor as methods of gdbsim_target.
  9680. (gdbsim_ops): Now a gdbsim_target.
  9681. (init_gdbsim_ops): Delete.
  9682. (gdbsim_cntrl_c): Adjust.
  9683. (_initialize_remote_sim): Remove reference to init_gdbsim_ops.
  9684. * amd64-linux-nat.c (amd64_linux_nat_target): New class.
  9685. (the_amd64_linux_nat_target): New.
  9686. (amd64_linux_fetch_inferior_registers)
  9687. (amd64_linux_store_inferior_registers): Refactor as methods of
  9688. amd64_linux_nat_target.
  9689. (_initialize_amd64_linux_nat): Adjust. Set linux_target.
  9690. * i386-linux-nat.c: Don't include "linux-nat.h".
  9691. (i386_linux_nat_target): New class.
  9692. (the_i386_linux_nat_target): New.
  9693. (i386_linux_fetch_inferior_registers)
  9694. (i386_linux_store_inferior_registers, i386_linux_resume): Refactor
  9695. as methods of i386_linux_nat_target.
  9696. (_initialize_i386_linux_nat): Adjust. Set linux_target.
  9697. * inf-child.c (inf_child_ops): Delete.
  9698. (inf_child_fetch_inferior_registers)
  9699. (inf_child_store_inferior_registers): Delete.
  9700. (inf_child_post_attach, inf_child_prepare_to_store): Refactor as
  9701. methods of inf_child_target.
  9702. (inf_child_target::supports_terminal_ours)
  9703. (inf_child_target::terminal_init)
  9704. (inf_child_target::terminal_inferior)
  9705. (inf_child_target::terminal_ours_for_output)
  9706. (inf_child_target::terminal_ours, inf_child_target::interrupt)
  9707. (inf_child_target::pass_ctrlc, inf_child_target::terminal_info):
  9708. New.
  9709. (inf_child_open, inf_child_disconnect, inf_child_close)
  9710. (inf_child_mourn_inferior, inf_child_maybe_unpush_target)
  9711. (inf_child_post_startup_inferior, inf_child_can_run)
  9712. (inf_child_pid_to_exec_file): Refactor as methods of
  9713. inf_child_target.
  9714. (inf_child_follow_fork): Delete.
  9715. (inf_child_target::can_create_inferior)
  9716. (inf_child_target::can_attach): New.
  9717. (inf_child_target::has_all_memory, inf_child_target::has_memory)
  9718. (inf_child_target::has_stack, inf_child_target::has_registers)
  9719. (inf_child_target::has_execution): New.
  9720. (inf_child_fileio_open, inf_child_fileio_pwrite)
  9721. (inf_child_fileio_pread, inf_child_fileio_fstat)
  9722. (inf_child_fileio_close, inf_child_fileio_unlink)
  9723. (inf_child_fileio_readlink, inf_child_use_agent)
  9724. (inf_child_can_use_agent): Refactor as methods of
  9725. inf_child_target.
  9726. (return_zero, inf_child_target): Delete.
  9727. (inf_child_target::inf_child_target): New.
  9728. * inf-child.h: Include "target.h".
  9729. (inf_child_target): Delete function prototype.
  9730. (inf_child_target): New class.
  9731. (inf_child_open_target, inf_child_mourn_inferior)
  9732. (inf_child_maybe_unpush_target): Delete.
  9733. * inf-ptrace.c (inf_ptrace_target::~inf_ptrace_target): New.
  9734. (inf_ptrace_follow_fork, inf_ptrace_insert_fork_catchpoint)
  9735. (inf_ptrace_remove_fork_catchpoint, inf_ptrace_create_inferior)
  9736. (inf_ptrace_post_startup_inferior, inf_ptrace_mourn_inferior)
  9737. (inf_ptrace_attach, inf_ptrace_post_attach, inf_ptrace_detach)
  9738. (inf_ptrace_detach_success, inf_ptrace_kill, inf_ptrace_resume)
  9739. (inf_ptrace_wait, inf_ptrace_xfer_partial)
  9740. (inf_ptrace_thread_alive, inf_ptrace_files_info)
  9741. (inf_ptrace_pid_to_str, inf_ptrace_auxv_parse): Refactor as
  9742. methods of inf_ptrace_target.
  9743. (inf_ptrace_target): Delete function.
  9744. * inf-ptrace.h: Include "inf-child.h".
  9745. (inf_ptrace_target): Delete function declaration.
  9746. (inf_ptrace_target): New class.
  9747. (inf_ptrace_trad_target, inf_ptrace_detach_success): Delete.
  9748. * linux-nat.c (linux_target): New.
  9749. (linux_ops, linux_ops_saved, super_xfer_partial): Delete.
  9750. (linux_nat_target::~linux_nat_target): New.
  9751. (linux_child_post_attach, linux_child_post_startup_inferior)
  9752. (linux_child_follow_fork, linux_child_insert_fork_catchpoint)
  9753. (linux_child_remove_fork_catchpoint)
  9754. (linux_child_insert_vfork_catchpoint)
  9755. (linux_child_remove_vfork_catchpoint)
  9756. (linux_child_insert_exec_catchpoint)
  9757. (linux_child_remove_exec_catchpoint)
  9758. (linux_child_set_syscall_catchpoint, linux_nat_pass_signals)
  9759. (linux_nat_create_inferior, linux_nat_attach, linux_nat_detach)
  9760. (linux_nat_resume, linux_nat_stopped_by_watchpoint)
  9761. (linux_nat_stopped_data_address)
  9762. (linux_nat_stopped_by_sw_breakpoint)
  9763. (linux_nat_supports_stopped_by_sw_breakpoint)
  9764. (linux_nat_stopped_by_hw_breakpoint)
  9765. (linux_nat_supports_stopped_by_hw_breakpoint, linux_nat_wait)
  9766. (linux_nat_kill, linux_nat_mourn_inferior)
  9767. (linux_nat_xfer_partial, linux_nat_thread_alive)
  9768. (linux_nat_update_thread_list, linux_nat_pid_to_str)
  9769. (linux_nat_thread_name, linux_child_pid_to_exec_file)
  9770. (linux_child_static_tracepoint_markers_by_strid)
  9771. (linux_nat_is_async_p, linux_nat_can_async_p)
  9772. (linux_nat_supports_non_stop, linux_nat_always_non_stop_p)
  9773. (linux_nat_supports_multi_process)
  9774. (linux_nat_supports_disable_randomization, linux_nat_async)
  9775. (linux_nat_stop, linux_nat_close, linux_nat_thread_address_space)
  9776. (linux_nat_core_of_thread, linux_nat_filesystem_is_local)
  9777. (linux_nat_fileio_open, linux_nat_fileio_readlink)
  9778. (linux_nat_fileio_unlink, linux_nat_thread_events): Refactor as
  9779. methods of linux_nat_target.
  9780. (linux_nat_wait_1, linux_xfer_siginfo, linux_proc_xfer_partial)
  9781. (linux_proc_xfer_spu, linux_nat_xfer_osdata): Remove target_ops
  9782. parameter.
  9783. (check_stopped_by_watchpoint): Adjust.
  9784. (linux_xfer_partial): Delete.
  9785. (linux_target_install_ops, linux_target, linux_nat_add_target):
  9786. Delete.
  9787. (linux_nat_target::linux_nat_target): New.
  9788. * linux-nat.h: Include "inf-ptrace.h".
  9789. (linux_nat_target): New.
  9790. (linux_target, linux_target_install_ops, linux_nat_add_target):
  9791. Delete function declarations.
  9792. (linux_target): Declare global.
  9793. * linux-thread-db.c (thread_db_target): New.
  9794. (thread_db_target::thread_db_target): New.
  9795. (thread_db_ops): Delete.
  9796. (the_thread_db_target): New.
  9797. (thread_db_detach, thread_db_wait, thread_db_mourn_inferior)
  9798. (thread_db_update_thread_list, thread_db_pid_to_str)
  9799. (thread_db_extra_thread_info)
  9800. (thread_db_thread_handle_to_thread_info)
  9801. (thread_db_get_thread_local_address, thread_db_get_ada_task_ptid)
  9802. (thread_db_resume): Refactor as methods of thread_db_target.
  9803. (init_thread_db_ops): Delete.
  9804. (_initialize_thread_db): Remove reference to init_thread_db_ops.
  9805. * x86-linux-nat.c: Don't include "linux-nat.h".
  9806. (super_post_startup_inferior): Delete.
  9807. (x86_linux_nat_target::~x86_linux_nat_target): New.
  9808. (x86_linux_child_post_startup_inferior)
  9809. (x86_linux_read_description, x86_linux_enable_btrace)
  9810. (x86_linux_disable_btrace, x86_linux_teardown_btrace)
  9811. (x86_linux_read_btrace, x86_linux_btrace_conf): Refactor as
  9812. methods of x86_linux_nat_target.
  9813. (x86_linux_create_target): Delete. Bits folded ...
  9814. (x86_linux_add_target): ... here. Now takes a linux_nat_target
  9815. pointer.
  9816. * x86-linux-nat.h: Include "linux-nat.h" and "x86-nat.h".
  9817. (x86_linux_nat_target): New class.
  9818. (x86_linux_create_target): Delete.
  9819. (x86_linux_add_target): Now takes a linux_nat_target pointer.
  9820. * x86-nat.c (x86_insert_watchpoint, x86_remove_watchpoint)
  9821. (x86_region_ok_for_watchpoint, x86_stopped_data_address)
  9822. (x86_stopped_by_watchpoint, x86_insert_hw_breakpoint)
  9823. (x86_remove_hw_breakpoint, x86_can_use_hw_breakpoint)
  9824. (x86_stopped_by_hw_breakpoint): Remove target_ops parameter and
  9825. make extern.
  9826. (x86_use_watchpoints): Delete.
  9827. * x86-nat.h: Include "breakpoint.h" and "target.h".
  9828. (x86_use_watchpoints): Delete.
  9829. (x86_can_use_hw_breakpoint, x86_region_ok_for_hw_watchpoint)
  9830. (x86_stopped_by_watchpoint, x86_stopped_data_address)
  9831. (x86_insert_watchpoint, x86_remove_watchpoint)
  9832. (x86_insert_hw_breakpoint, x86_remove_hw_breakpoint)
  9833. (x86_stopped_by_hw_breakpoint): New declarations.
  9834. (x86_nat_target): New template class.
  9835. * ppc-linux-nat.c (ppc_linux_nat_target): New class.
  9836. (the_ppc_linux_nat_target): New.
  9837. (ppc_linux_fetch_inferior_registers)
  9838. (ppc_linux_can_use_hw_breakpoint)
  9839. (ppc_linux_region_ok_for_hw_watchpoint)
  9840. (ppc_linux_ranged_break_num_registers)
  9841. (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
  9842. (ppc_linux_insert_mask_watchpoint)
  9843. (ppc_linux_remove_mask_watchpoint)
  9844. (ppc_linux_can_accel_watchpoint_condition)
  9845. (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint)
  9846. (ppc_linux_stopped_data_address, ppc_linux_stopped_by_watchpoint)
  9847. (ppc_linux_watchpoint_addr_within_range)
  9848. (ppc_linux_masked_watch_num_registers)
  9849. (ppc_linux_store_inferior_registers, ppc_linux_auxv_parse)
  9850. (ppc_linux_read_description): Refactor as methods of
  9851. ppc_linux_nat_target.
  9852. (_initialize_ppc_linux_nat): Adjust. Set linux_target.
  9853. * procfs.c (procfs_xfer_partial): Delete forward declaration.
  9854. (procfs_target): New class.
  9855. (the_procfs_target): New.
  9856. (procfs_target): Delete function.
  9857. (procfs_auxv_parse, procfs_attach, procfs_detach)
  9858. (procfs_fetch_registers, procfs_store_registers, procfs_wait)
  9859. (procfs_xfer_partial, procfs_resume, procfs_pass_signals)
  9860. (procfs_files_info, procfs_kill_inferior, procfs_mourn_inferior)
  9861. (procfs_create_inferior, procfs_update_thread_list)
  9862. (procfs_thread_alive, procfs_pid_to_str)
  9863. (procfs_can_use_hw_breakpoint, procfs_stopped_by_watchpoint)
  9864. (procfs_stopped_data_address, procfs_insert_watchpoint)
  9865. (procfs_remove_watchpoint, procfs_region_ok_for_hw_watchpoint)
  9866. (proc_find_memory_regions, procfs_info_proc)
  9867. (procfs_make_note_section): Refactor as methods of procfs_target.
  9868. (_initialize_procfs): Adjust.
  9869. * sol-thread.c (sol_thread_target): New class.
  9870. (sol_thread_ops): Now a sol_thread_target.
  9871. (sol_thread_detach, sol_thread_resume, sol_thread_wait)
  9872. (sol_thread_fetch_registers, sol_thread_store_registers)
  9873. (sol_thread_xfer_partial, sol_thread_mourn_inferior)
  9874. (sol_thread_alive, solaris_pid_to_str, sol_update_thread_list)
  9875. (sol_get_ada_task_ptid): Refactor as methods of sol_thread_target.
  9876. (init_sol_thread_ops): Delete.
  9877. (_initialize_sol_thread): Adjust. Remove references to
  9878. init_sol_thread_ops and complete_target_initialization.
  9879. * windows-nat.c (windows_nat_target): New class.
  9880. (windows_fetch_inferior_registers)
  9881. (windows_store_inferior_registers, windows_resume, windows_wait)
  9882. (windows_attach, windows_detach, windows_pid_to_exec_file)
  9883. (windows_files_info, windows_create_inferior)
  9884. (windows_mourn_inferior, windows_interrupt, windows_kill_inferior)
  9885. (windows_close, windows_pid_to_str, windows_xfer_partial)
  9886. (windows_get_tib_address, windows_get_ada_task_ptid)
  9887. (windows_thread_name, windows_thread_alive): Refactor as
  9888. windows_nat_target methods.
  9889. (do_initial_windows_stuff): Adjust.
  9890. (windows_target): Delete function.
  9891. (_initialize_windows_nat): Adjust.
  9892. * darwin-nat.c (darwin_resume, darwin_wait_to, darwin_interrupt)
  9893. (darwin_mourn_inferior, darwin_kill_inferior)
  9894. (darwin_create_inferior, darwin_attach, darwin_detach)
  9895. (darwin_pid_to_str, darwin_thread_alive, darwin_xfer_partial)
  9896. (darwin_pid_to_exec_file, darwin_get_ada_task_ptid)
  9897. (darwin_supports_multi_process): Refactor as darwin_nat_target
  9898. methods.
  9899. (darwin_resume_to, darwin_files_info): Delete.
  9900. (_initialize_darwin_inferior): Rename to ...
  9901. (_initialize_darwin_nat): ... this. Adjust to C++ification.
  9902. * darwin-nat.h: Include "inf-child.h".
  9903. (darwin_nat_target): New class.
  9904. (darwin_complete_target): Delete.
  9905. * i386-darwin-nat.c (i386_darwin_nat_target): New class.
  9906. (darwin_target): New.
  9907. (i386_darwin_fetch_inferior_registers)
  9908. (i386_darwin_store_inferior_registers): Refactor as methods of
  9909. darwin_nat_target.
  9910. (darwin_complete_target): Delete, with ...
  9911. (_initialize_i386_darwin_nat): ... bits factored out here.
  9912. * alpha-linux-nat.c (alpha_linux_nat_target): New class.
  9913. (the_alpha_linux_nat_target): New.
  9914. (alpha_linux_register_u_offset): Refactor as
  9915. alpha_linux_nat_target method.
  9916. (_initialize_alpha_linux_nat): Adjust.
  9917. * linux-nat-trad.c (inf_ptrace_register_u_offset): Delete.
  9918. (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
  9919. (inf_ptrace_store_register, inf_ptrace_store_registers): Refact as
  9920. methods of linux_nat_trad_target.
  9921. (linux_trad_target): Delete.
  9922. * linux-nat-trad.h (linux_trad_target): Delete function.
  9923. (linux_nat_trad_target): New class.
  9924. * mips-linux-nat.c (mips_linux_nat_target): New class.
  9925. (super_fetch_registers, super_store_registers, super_close):
  9926. Delete.
  9927. (the_mips_linux_nat_target): New.
  9928. (mips64_linux_regsets_fetch_registers)
  9929. (mips64_linux_regsets_store_registers)
  9930. (mips64_linux_fetch_registers, mips64_linux_store_registers)
  9931. (mips_linux_register_u_offset, mips_linux_read_description)
  9932. (mips_linux_can_use_hw_breakpoint)
  9933. (mips_linux_stopped_by_watchpoint)
  9934. (mips_linux_stopped_data_address)
  9935. (mips_linux_region_ok_for_hw_watchpoint)
  9936. (mips_linux_insert_watchpoint, mips_linux_remove_watchpoint)
  9937. (mips_linux_close): Refactor as methods of mips_linux_nat.
  9938. (_initialize_mips_linux_nat): Adjust to C++ification.
  9939. * aix-thread.c (aix_thread_target): New class.
  9940. (aix_thread_ops): Now an aix_thread_target.
  9941. (aix_thread_detach, aix_thread_resume, aix_thread_wait)
  9942. (aix_thread_fetch_registers, aix_thread_store_registers)
  9943. (aix_thread_xfer_partial, aix_thread_mourn_inferior)
  9944. (aix_thread_thread_alive, aix_thread_pid_to_str)
  9945. (aix_thread_extra_thread_info, aix_thread_get_ada_task_ptid):
  9946. Refactor as methods of aix_thread_target.
  9947. (init_aix_thread_ops): Delete.
  9948. (_initialize_aix_thread): Remove references to init_aix_thread_ops
  9949. and complete_target_initialization.
  9950. * rs6000-nat.c (rs6000_xfer_shared_libraries): Delete.
  9951. (rs6000_nat_target): New class.
  9952. (the_rs6000_nat_target): New.
  9953. (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers)
  9954. (rs6000_xfer_partial, rs6000_wait, rs6000_create_inferior)
  9955. (rs6000_xfer_shared_libraries): Refactor as rs6000_nat_target methods.
  9956. (super_create_inferior): Delete.
  9957. (_initialize_rs6000_nat): Adjust to C++ification.
  9958. * arm-linux-nat.c (arm_linux_nat_target): New class.
  9959. (the_arm_linux_nat_target): New.
  9960. (arm_linux_fetch_inferior_registers)
  9961. (arm_linux_store_inferior_registers, arm_linux_read_description)
  9962. (arm_linux_can_use_hw_breakpoint, arm_linux_insert_hw_breakpoint)
  9963. (arm_linux_remove_hw_breakpoint)
  9964. (arm_linux_region_ok_for_hw_watchpoint)
  9965. (arm_linux_insert_watchpoint, arm_linux_remove_watchpoint)
  9966. (arm_linux_stopped_data_address, arm_linux_stopped_by_watchpoint)
  9967. (arm_linux_watchpoint_addr_within_range): Refactor as methods of
  9968. arm_linux_nat_target.
  9969. (_initialize_arm_linux_nat): Adjust to C++ification.
  9970. * aarch64-linux-nat.c (aarch64_linux_nat_target): New class.
  9971. (the_aarch64_linux_nat_target): New.
  9972. (aarch64_linux_fetch_inferior_registers)
  9973. (aarch64_linux_store_inferior_registers)
  9974. (aarch64_linux_child_post_startup_inferior)
  9975. (aarch64_linux_read_description)
  9976. (aarch64_linux_can_use_hw_breakpoint)
  9977. (aarch64_linux_insert_hw_breakpoint)
  9978. (aarch64_linux_remove_hw_breakpoint)
  9979. (aarch64_linux_insert_watchpoint, aarch64_linux_remove_watchpoint)
  9980. (aarch64_linux_region_ok_for_hw_watchpoint)
  9981. (aarch64_linux_stopped_data_address)
  9982. (aarch64_linux_stopped_by_watchpoint)
  9983. (aarch64_linux_watchpoint_addr_within_range)
  9984. (aarch64_linux_can_do_single_step): Refactor as methods of
  9985. aarch64_linux_nat_target.
  9986. (super_post_startup_inferior): Delete.
  9987. (_initialize_aarch64_linux_nat): Adjust to C++ification.
  9988. * hppa-linux-nat.c (hppa_linux_nat_target): New class.
  9989. (the_hppa_linux_nat_target): New.
  9990. (hppa_linux_fetch_inferior_registers)
  9991. (hppa_linux_store_inferior_registers): Refactor as methods of
  9992. hppa_linux_nat_target.
  9993. (_initialize_hppa_linux_nat): Adjust to C++ification.
  9994. * ia64-linux-nat.c (ia64_linux_nat_target): New class.
  9995. (the_ia64_linux_nat_target): New.
  9996. (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint)
  9997. (ia64_linux_stopped_data_address)
  9998. (ia64_linux_stopped_by_watchpoint, ia64_linux_fetch_registers)
  9999. (ia64_linux_store_registers, ia64_linux_xfer_partial): Refactor as
  10000. ia64_linux_nat_target methods.
  10001. (super_xfer_partial): Delete.
  10002. (_initialize_ia64_linux_nat): Adjust to C++ification.
  10003. * m32r-linux-nat.c (m32r_linux_nat_target): New class.
  10004. (the_m32r_linux_nat_target): New.
  10005. (m32r_linux_fetch_inferior_registers)
  10006. (m32r_linux_store_inferior_registers): Refactor as
  10007. m32r_linux_nat_target methods.
  10008. (_initialize_m32r_linux_nat): Adjust to C++ification.
  10009. * m68k-linux-nat.c (m68k_linux_nat_target): New class.
  10010. (the_m68k_linux_nat_target): New.
  10011. (m68k_linux_fetch_inferior_registers)
  10012. (m68k_linux_store_inferior_registers): Refactor as
  10013. m68k_linux_nat_target methods.
  10014. (_initialize_m68k_linux_nat): Adjust to C++ification.
  10015. * s390-linux-nat.c (s390_linux_nat_target): New class.
  10016. (the_s390_linux_nat_target): New.
  10017. (s390_linux_fetch_inferior_registers)
  10018. (s390_linux_store_inferior_registers, s390_stopped_by_watchpoint)
  10019. (s390_insert_watchpoint, s390_remove_watchpoint)
  10020. (s390_can_use_hw_breakpoint, s390_insert_hw_breakpoint)
  10021. (s390_remove_hw_breakpoint, s390_region_ok_for_hw_watchpoint)
  10022. (s390_auxv_parse, s390_read_description): Refactor as methods of
  10023. s390_linux_nat_target.
  10024. (_initialize_s390_nat): Adjust to C++ification.
  10025. * sparc-linux-nat.c (sparc_linux_nat_target): New class.
  10026. (the_sparc_linux_nat_target): New.
  10027. (_initialize_sparc_linux_nat): Adjust to C++ification.
  10028. * sparc-nat.c (sparc_fetch_inferior_registers)
  10029. (sparc_store_inferior_registers): Remove target_ops parameter.
  10030. * sparc-nat.h (sparc_fetch_inferior_registers)
  10031. (sparc_store_inferior_registers): Remove target_ops parameter.
  10032. * sparc64-linux-nat.c (sparc64_linux_nat_target): New class.
  10033. (the_sparc64_linux_nat_target): New.
  10034. (_initialize_sparc64_linux_nat): Adjust to C++ification.
  10035. * spu-linux-nat.c (spu_linux_nat_target): New class.
  10036. (the_spu_linux_nat_target): New.
  10037. (spu_child_post_startup_inferior, spu_child_post_attach)
  10038. (spu_child_wait, spu_fetch_inferior_registers)
  10039. (spu_store_inferior_registers, spu_xfer_partial)
  10040. (spu_can_use_hw_breakpoint): Refactor as spu_linux_nat_target
  10041. methods.
  10042. (_initialize_spu_nat): Adjust to C++ification.
  10043. * tilegx-linux-nat.c (tilegx_linux_nat_target): New class.
  10044. (the_tilegx_linux_nat_target): New.
  10045. (fetch_inferior_registers, store_inferior_registers):
  10046. Refactor as methods.
  10047. (_initialize_tile_linux_nat): Adjust to C++ification.
  10048. * xtensa-linux-nat.c (xtensa_linux_nat_target): New class.
  10049. (the_xtensa_linux_nat_target): New.
  10050. (xtensa_linux_fetch_inferior_registers)
  10051. (xtensa_linux_store_inferior_registers): Refactor as
  10052. xtensa_linux_nat_target methods.
  10053. (_initialize_xtensa_linux_nat): Adjust to C++ification.
  10054. * fbsd-nat.c (USE_SIGTRAP_SIGINFO): Delete.
  10055. (fbsd_pid_to_exec_file, fbsd_find_memory_regions)
  10056. (fbsd_find_memory_regions, fbsd_info_proc, fbsd_xfer_partial)
  10057. (fbsd_thread_alive, fbsd_pid_to_str, fbsd_thread_name)
  10058. (fbsd_update_thread_list, fbsd_resume, fbsd_wait)
  10059. (fbsd_stopped_by_sw_breakpoint)
  10060. (fbsd_supports_stopped_by_sw_breakpoint, fbsd_follow_fork)
  10061. (fbsd_insert_fork_catchpoint, fbsd_remove_fork_catchpoint)
  10062. (fbsd_insert_vfork_catchpoint, fbsd_remove_vfork_catchpoint)
  10063. (fbsd_post_startup_inferior, fbsd_post_attach)
  10064. (fbsd_insert_exec_catchpoint, fbsd_remove_exec_catchpoint)
  10065. (fbsd_set_syscall_catchpoint)
  10066. (super_xfer_partial, super_resume, super_wait)
  10067. (fbsd_supports_stopped_by_hw_breakpoint): Delete.
  10068. (fbsd_handle_debug_trap): Remove target_ops parameter.
  10069. (fbsd_nat_add_target): Delete.
  10070. * fbsd-nat.h: Include "inf-ptrace.h".
  10071. (fbsd_nat_add_target): Delete.
  10072. (USE_SIGTRAP_SIGINFO): Define.
  10073. (fbsd_nat_target): New class.
  10074. * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers)
  10075. (amd64bsd_store_inferior_registers): Remove target_ops parameter.
  10076. (amd64bsd_target): Delete.
  10077. * amd64-bsd-nat.h: New file.
  10078. * amd64-fbsd-nat.c: Include "amd64-bsd-nat.h" instead of
  10079. "x86-bsd-nat.h".
  10080. (amd64_fbsd_nat_target): New class.
  10081. (the_amd64_fbsd_nat_target): New.
  10082. (amd64fbsd_read_description): Refactor as method of
  10083. amd64_fbsd_nat_target.
  10084. (amd64_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
  10085. (_initialize_amd64fbsd_nat): Adjust to C++ification.
  10086. * amd64-nat.h (amd64bsd_target): Delete function declaration.
  10087. * i386-bsd-nat.c (i386bsd_fetch_inferior_registers)
  10088. (i386bsd_store_inferior_registers): Remove target_ops parameter.
  10089. (i386bsd_target): Delete.
  10090. * i386-bsd-nat.h (i386bsd_target): Delete function declaration.
  10091. (i386bsd_fetch_inferior_registers)
  10092. (i386bsd_store_inferior_registers): Declare.
  10093. (i386_bsd_nat_target): New class.
  10094. * i386-fbsd-nat.c (i386_fbsd_nat_target): New class.
  10095. (the_i386_fbsd_nat_target): New.
  10096. (i386fbsd_resume, i386fbsd_read_description): Refactor as
  10097. i386_fbsd_nat_target methods.
  10098. (i386_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
  10099. (_initialize_i386fbsd_nat): Adjust to C++ification.
  10100. * x86-bsd-nat.c (super_mourn_inferior): Delete.
  10101. (x86bsd_mourn_inferior, x86bsd_target): Delete.
  10102. (_initialize_x86_bsd_nat): Adjust to C++ification.
  10103. * x86-bsd-nat.h: Include "x86-nat.h".
  10104. (x86bsd_target): Delete declaration.
  10105. (x86bsd_nat_target): New class.
  10106. * aarch64-fbsd-nat.c (aarch64_fbsd_nat_target): New class.
  10107. (the_aarch64_fbsd_nat_target): New.
  10108. (aarch64_fbsd_fetch_inferior_registers)
  10109. (aarch64_fbsd_store_inferior_registers): Refactor as methods of
  10110. aarch64_fbsd_nat_target.
  10111. (_initialize_aarch64_fbsd_nat): Adjust to C++ification.
  10112. * alpha-bsd-nat.c (alpha_bsd_nat_target): New class.
  10113. (the_alpha_bsd_nat_target): New.
  10114. (alphabsd_fetch_inferior_registers)
  10115. (alphabsd_store_inferior_registers): Refactor as
  10116. alpha_bsd_nat_target methods.
  10117. (_initialize_alphabsd_nat): Refactor as methods of
  10118. alpha_bsd_nat_target.
  10119. * amd64-nbsd-nat.c: Include "amd64-bsd-nat.h".
  10120. (the_amd64_nbsd_nat_target): New.
  10121. (_initialize_amd64nbsd_nat): Adjust to C++ification.
  10122. * amd64-obsd-nat.c: Include "amd64-bsd-nat.h".
  10123. (the_amd64_obsd_nat_target): New.
  10124. (_initialize_amd64obsd_nat): Adjust to C++ification.
  10125. * arm-fbsd-nat.c (arm_fbsd_nat_target): New.
  10126. (the_arm_fbsd_nat_target): New.
  10127. (arm_fbsd_fetch_inferior_registers)
  10128. (arm_fbsd_store_inferior_registers, arm_fbsd_read_description):
  10129. (_initialize_arm_fbsd_nat): Refactor as methods of
  10130. arm_fbsd_nat_target.
  10131. (_initialize_arm_fbsd_nat): Adjust to C++ification.
  10132. * arm-nbsd-nat.c (arm_netbsd_nat_target): New class.
  10133. (the_arm_netbsd_nat_target): New.
  10134. (armnbsd_fetch_registers, armnbsd_store_registers): Refactor as
  10135. arm_netbsd_nat_target.
  10136. (_initialize_arm_netbsd_nat): Adjust to C++ification.
  10137. * hppa-nbsd-nat.c (hppa_nbsd_nat_target): New class.
  10138. (the_hppa_nbsd_nat_target): New.
  10139. (hppanbsd_fetch_registers, hppanbsd_store_registers): Refactor as
  10140. hppa_nbsd_nat_target methods.
  10141. (_initialize_hppanbsd_nat): Adjust to C++ification.
  10142. * hppa-obsd-nat.c (hppa_obsd_nat_target): New class.
  10143. (the_hppa_obsd_nat_target): New.
  10144. (hppaobsd_fetch_registers, hppaobsd_store_registers): Refactor as
  10145. methods of hppa_obsd_nat_target.
  10146. (_initialize_hppaobsd_nat): Adjust to C++ification. Use
  10147. add_target.
  10148. * i386-nbsd-nat.c (the_i386_nbsd_nat_target): New.
  10149. (_initialize_i386nbsd_nat): Adjust to C++ification. Use
  10150. add_target.
  10151. * i386-obsd-nat.c (the_i386_obsd_nat_target): New.
  10152. (_initialize_i386obsd_nat): Use add_target.
  10153. * m68k-bsd-nat.c (m68k_bsd_nat_target): New class.
  10154. (the_m68k_bsd_nat_target): New.
  10155. (m68kbsd_fetch_inferior_registers)
  10156. (m68kbsd_store_inferior_registers): Refactor as methods of
  10157. m68k_bsd_nat_target.
  10158. (_initialize_m68kbsd_nat): Adjust to C++ification.
  10159. * mips-fbsd-nat.c (mips_fbsd_nat_target): New class.
  10160. (the_mips_fbsd_nat_target): New.
  10161. (mips_fbsd_fetch_inferior_registers)
  10162. (mips_fbsd_store_inferior_registers): Refactor as methods of
  10163. mips_fbsd_nat_target.
  10164. (_initialize_mips_fbsd_nat): Adjust to C++ification. Use
  10165. add_target.
  10166. * mips-nbsd-nat.c (mips_nbsd_nat_target): New class.
  10167. (the_mips_nbsd_nat_target): New.
  10168. (mipsnbsd_fetch_inferior_registers)
  10169. (mipsnbsd_store_inferior_registers): Refactor as methods of
  10170. mips_nbsd_nat_target.
  10171. (_initialize_mipsnbsd_nat): Adjust to C++ification.
  10172. * mips64-obsd-nat.c (mips64_obsd_nat_target): New class.
  10173. (the_mips64_obsd_nat_target): New.
  10174. (mips64obsd_fetch_inferior_registers)
  10175. (mips64obsd_store_inferior_registers): Refactor as methods of
  10176. mips64_obsd_nat_target.
  10177. (_initialize_mips64obsd_nat): Adjust to C++ification. Use
  10178. add_target.
  10179. * nbsd-nat.c (nbsd_pid_to_exec_file): Refactor as method of
  10180. nbsd_nat_target.
  10181. * nbsd-nat.h: Include "inf-ptrace.h".
  10182. (nbsd_nat_target): New class.
  10183. * obsd-nat.c (obsd_pid_to_str, obsd_update_thread_list)
  10184. (obsd_wait): Refactor as methods of obsd_nat_target.
  10185. (obsd_add_target): Delete.
  10186. * obsd-nat.h: Include "inf-ptrace.h".
  10187. (obsd_nat_target): New class.
  10188. * ppc-fbsd-nat.c (ppc_fbsd_nat_target): New class.
  10189. (the_ppc_fbsd_nat_target): New.
  10190. (ppcfbsd_fetch_inferior_registers)
  10191. (ppcfbsd_store_inferior_registers): Refactor as methods of
  10192. ppc_fbsd_nat_target.
  10193. (_initialize_ppcfbsd_nat): Adjust to C++ification. Use
  10194. add_target.
  10195. * ppc-nbsd-nat.c (ppc_nbsd_nat_target): New class.
  10196. (the_ppc_nbsd_nat_target): New.
  10197. (ppcnbsd_fetch_inferior_registers)
  10198. (ppcnbsd_store_inferior_registers): Refactor as methods of
  10199. ppc_nbsd_nat_target.
  10200. (_initialize_ppcnbsd_nat): Adjust to C++ification.
  10201. * ppc-obsd-nat.c (ppc_obsd_nat_target): New class.
  10202. (the_ppc_obsd_nat_target): New.
  10203. (ppcobsd_fetch_registers, ppcobsd_store_registers): Refactor as
  10204. methods of ppc_obsd_nat_target.
  10205. (_initialize_ppcobsd_nat): Adjust to C++ification. Use
  10206. add_target.
  10207. * sh-nbsd-nat.c (sh_nbsd_nat_target): New class.
  10208. (the_sh_nbsd_nat_target): New.
  10209. (shnbsd_fetch_inferior_registers)
  10210. (shnbsd_store_inferior_registers): Refactor as methods of
  10211. sh_nbsd_nat_target.
  10212. (_initialize_shnbsd_nat): Adjust to C++ification.
  10213. * sparc-nat.c (sparc_xfer_wcookie): Make extern.
  10214. (inf_ptrace_xfer_partial): Delete.
  10215. (sparc_xfer_partial, sparc_target): Delete.
  10216. * sparc-nat.h (sparc_fetch_inferior_registers)
  10217. (sparc_store_inferior_registers, sparc_xfer_wcookie): Declare.
  10218. (sparc_target): Delete function declaration.
  10219. (sparc_target): New template class.
  10220. * sparc-nbsd-nat.c (the_sparc_nbsd_nat_target): New.
  10221. (_initialize_sparcnbsd_nat): Adjust to C++ification.
  10222. * sparc64-fbsd-nat.c (the_sparc64_fbsd_nat_target): New.
  10223. (_initialize_sparc64fbsd_nat): Adjust to C++ification. Use
  10224. add_target.
  10225. * sparc64-nbsd-nat.c (the_sparc64_nbsd_nat_target): New.
  10226. (_initialize_sparc64nbsd_nat): Adjust to C++ification.
  10227. * sparc64-obsd-nat.c (the_sparc64_obsd_nat_target): New.
  10228. (_initialize_sparc64obsd_nat): Adjust to C++ification. Use
  10229. add_target.
  10230. * vax-bsd-nat.c (vax_bsd_nat_target): New class.
  10231. (the_vax_bsd_nat_target): New.
  10232. (vaxbsd_fetch_inferior_registers)
  10233. (vaxbsd_store_inferior_registers): Refactor as vax_bsd_nat_target
  10234. methods.
  10235. (_initialize_vaxbsd_nat): Adjust to C++ification.
  10236. * bsd-kvm.c (bsd_kvm_target): New class.
  10237. (bsd_kvm_ops): Now a bsd_kvm_target.
  10238. (bsd_kvm_open, bsd_kvm_close, bsd_kvm_xfer_partial)
  10239. (bsd_kvm_files_info, bsd_kvm_fetch_registers)
  10240. (bsd_kvm_thread_alive, bsd_kvm_pid_to_str): Refactor as methods of
  10241. bsd_kvm_target.
  10242. (bsd_kvm_return_one): Delete.
  10243. (bsd_kvm_add_target): Adjust to C++ification.
  10244. * nto-procfs.c (nto_procfs_target, nto_procfs_target_native)
  10245. (nto_procfs_target_procfs): New classes.
  10246. (procfs_open_1, procfs_thread_alive, procfs_update_thread_list)
  10247. (procfs_files_info, procfs_pid_to_exec_file, procfs_attach)
  10248. (procfs_post_attach, procfs_wait, procfs_fetch_registers)
  10249. (procfs_xfer_partial, procfs_detach, procfs_insert_breakpoint)
  10250. (procfs_remove_breakpoint, procfs_insert_hw_breakpoint)
  10251. (procfs_remove_hw_breakpoint, procfs_resume)
  10252. (procfs_mourn_inferior, procfs_create_inferior, procfs_interrupt)
  10253. (procfs_kill_inferior, procfs_store_registers)
  10254. (procfs_pass_signals, procfs_pid_to_str, procfs_can_run): Refactor
  10255. as methods of nto_procfs_target.
  10256. (nto_procfs_ops): Now an nto_procfs_target_procfs.
  10257. (nto_native_ops): Delete.
  10258. (procfs_open, procfs_native_open): Delete.
  10259. (nto_native_ops): Now an nto_procfs_target_native.
  10260. (init_procfs_targets): Adjust to C++ification.
  10261. (procfs_can_use_hw_breakpoint, procfs_remove_hw_watchpoint)
  10262. (procfs_insert_hw_watchpoint, procfs_stopped_by_watchpoint):
  10263. Refactor as methods of nto_procfs_target.
  10264. * go32-nat.c (go32_nat_target): New class.
  10265. (the_go32_nat_target): New.
  10266. (go32_attach, go32_resume, go32_wait, go32_fetch_registers)
  10267. (go32_store_registers, go32_xfer_partial, go32_files_info)
  10268. (go32_kill_inferior, go32_create_inferior, go32_mourn_inferior)
  10269. (go32_terminal_init, go32_terminal_info, go32_terminal_inferior)
  10270. (go32_terminal_ours, go32_pass_ctrlc, go32_thread_alive)
  10271. (go32_pid_to_str): Refactor as methods of go32_nat_target.
  10272. (go32_target): Delete.
  10273. (_initialize_go32_nat): Adjust to C++ification.
  10274. * gnu-nat.c (gnu_wait, gnu_resume, gnu_kill_inferior)
  10275. (gnu_mourn_inferior, gnu_create_inferior, gnu_attach, gnu_detach)
  10276. (gnu_stop, gnu_thread_alive, gnu_xfer_partial)
  10277. (gnu_find_memory_regions, gnu_pid_to_str): Refactor as methods of
  10278. gnu_nat_target.
  10279. (gnu_target): Delete.
  10280. * gnu-nat.h (gnu_target): Delete.
  10281. (gnu_nat_target): New class.
  10282. * i386-gnu-nat.c (gnu_base_target): New.
  10283. (i386_gnu_nat_target): New class.
  10284. (the_i386_gnu_nat_target): New.
  10285. (_initialize_i386gnu_nat): Adjust to C++ification.
  10286. 2018-05-02 Pedro Alves <palves@redhat.com>
  10287. * bfd-target.c (target_bfd_xclose): Rename to ...
  10288. (target_bfd_close): ... this.
  10289. (target_bfd_reopen): Adjust.
  10290. * target.c (target_close): Remove references to to_xclose.
  10291. * target.h (target_ops::to_xclose): Delete.
  10292. (target_ops::to_close): Update comments.
  10293. 2018-05-02 Pedro Alves <palves@redhat.com>
  10294. * alpha-linux-nat.c: Include "linux-nat-trad.h" instead of
  10295. "linux-nat.h".
  10296. * configure.nat (alpha-linux, linux-mips): Add linux-nat-trad.o.
  10297. * inf-ptrace.c (inf_ptrace_register_u_offset)
  10298. (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
  10299. (inf_ptrace_store_register, inf_ptrace_store_registers)
  10300. (inf_ptrace_trad_target): Move to ...
  10301. * linux-nat-trad.c: ... this new file.
  10302. * linux-nat-trad.h: New file.
  10303. * linux-nat.c (linux_target_install_ops): Make extern.
  10304. (linux_trad_target): Delete.
  10305. * linux-nat.h (linux_trad_target): Delete declaration.
  10306. (linux_target_install_ops): Declare.
  10307. * mips-linux-nat.c: Include "linux-nat-trad.h" instead of
  10308. "linux-nat.h".
  10309. 2018-05-02 Pedro Alves <palves@redhat.com>
  10310. * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
  10311. procfs_target/add_target here.
  10312. * procfs.c (procfs_target): Make static.
  10313. (_initialize_procfs): Call add_target here.
  10314. * procfs.h (struct target_ops): Remove forward declaration.
  10315. (procfs_target): Remove declaration.
  10316. * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Delete.
  10317. 2018-05-02 Pedro Alves <palves@redhat.com>
  10318. * procfs.c (procfs_stopped_by_watchpoint)
  10319. (procfs_insert_watchpoint, procfs_remove_watchpoint)
  10320. (procfs_region_ok_for_hw_watchpoint, procfs_stopped_data_address):
  10321. Forward declare.
  10322. (procfs_use_watchpoints): Delete, move contents...
  10323. (procfs_target): ... here.
  10324. * procfs.h (procfs_use_watchpoints): Delete declaration.
  10325. * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
  10326. procfs_use_watchpoints.
  10327. * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Don't call
  10328. procfs_use_watchpoints.
  10329. 2018-05-02 Tom Tromey <tom@tromey.com>
  10330. PR python/20084:
  10331. * python/python.c (gdbpy_parameter_value): Handle var_zuinteger
  10332. and var_zuinteger_unlimited.
  10333. * python/py-param.c (struct parm_constant): Add PARAM_ZUINTEGER
  10334. and PARAM_ZUINTEGER_UNLIMITED.
  10335. (set_parameter_value): Handle var_zuinteger and
  10336. var_zuinteger_unlimited.
  10337. (add_setshow_generic): Likewise.
  10338. (parmpy_init): Likewise.
  10339. 2018-04-28 Dan Robertson <danlrobertson89@gmail.com>
  10340. PR rust/23124
  10341. * rust-exp.y (convert_params_to_types): Ensure that the params
  10342. pointer is not null before dereferencing it.
  10343. 2018-04-30 Tom Tromey <tom@tromey.com>
  10344. * darwin-nat-info.c (darwin_debug_regions_recurse): Remove use of
  10345. is_mi_like_p.
  10346. 2018-04-30 Tom Tromey <tom@tromey.com>
  10347. * breakpoint.c (mention): Remove use of is_mi_like_p.
  10348. (print_mention_ranged_breakpoint): Likewise.
  10349. * break-catch-throw.c (print_it_exception_catchpoint): Remove use
  10350. of is_mi_like_p.
  10351. 2018-04-30 Tom Tromey <tom@tromey.com>
  10352. * tracepoint.c (tvariables_info_1): Remove use of is_mi_like_p.
  10353. 2018-04-30 Tom Tromey <tom@tromey.com>
  10354. * spu-tdep.c (info_spu_mailbox_list, info_spu_dma_cmdlist)
  10355. (info_spu_event_command): Remove some uses of is_mi_like_p.
  10356. 2018-04-30 Tom Tromey <tom@tromey.com>
  10357. * python/py-framefilter.c (py_print_single_arg)
  10358. (enumerate_locals, py_print_args, py_print_frame): Remove some
  10359. uses of is_mi_like_p.
  10360. 2018-04-30 Tom Tromey <tom@tromey.com>
  10361. * ui-out.c: Update.
  10362. * cli-out.h (cli_ui_out::do_is_mi_like_p): Update.
  10363. * ui-out.h (ui_out::is_mi_like_p): Now const.
  10364. (ui_out::do_is_mi_like_p): Now const.
  10365. * mi/mi-out.h (mi_ui_out::do_is_mi_like_p): Update.
  10366. 2018-04-30 Tom Tromey <tom@tromey.com>
  10367. * varobj.c (varobj_set_visualizer): Use new_reference.
  10368. * python/python.c (gdbpy_decode_line): Use new_reference.
  10369. * python/py-cmd.c (cmdpy_function, cmdpy_completer_helper): Use
  10370. new_reference.
  10371. 2018-04-30 Tom Tromey <tom@tromey.com>
  10372. * varobj.c (install_new_value): Use new_reference.
  10373. * value.h (value_incref): Return void. Swap intro comment with
  10374. value_decref.
  10375. * value.c (set_value_parent): Use new_reference.
  10376. (value_incref): Return void. Update intro comment.
  10377. (release_value): Use new_reference.
  10378. * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use new_reference.
  10379. 2018-04-30 Tom Tromey <tom@tromey.com>
  10380. * symfile-mem.c (symbol_file_add_from_memory): Use new_reference.
  10381. * gdb_bfd.h (new_bfd_ref): Remove.
  10382. (gdb_bfd_open): Update comment.
  10383. * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
  10384. (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_record_inclusion)
  10385. (gdb_bfd_fdopenr): Use new_reference.
  10386. * exec.c (exec_file_attach): Use new_reference.
  10387. 2018-04-30 Tom Tromey <tom@tromey.com>
  10388. * common/gdb_ref_ptr.h (ref_ptr::new_reference): New static
  10389. method.
  10390. 2018-04-30 Tom Tromey <tom@tromey.com>
  10391. * jit.c (jit_read_code_entry): Use type_align.
  10392. * i386-tdep.c (i386_gdbarch_init): Don't call
  10393. set_gdbarch_long_long_align_bit.
  10394. * gdbarch.sh: Remove long_long_align_bit.
  10395. * gdbarch.c, gdbarch.h: Rebuild.
  10396. * arc-tdep.c (arc_type_align): New function.
  10397. (arc_gdbarch_init): Use arc_type_align. Don't call
  10398. set_gdbarch_long_long_align_bit.
  10399. 2018-04-30 Tom Tromey <tom@tromey.com>
  10400. * rust-lang.c (rust_type_alignment): Remove.
  10401. (rust_composite_type): Use type_align.
  10402. 2018-04-30 Tom Tromey <tom@tromey.com>
  10403. * NEWS: Mention Type.align.
  10404. * python/py-type.c (typy_get_alignof): New function.
  10405. (type_object_getset): Add "alignof".
  10406. 2018-04-30 Tom Tromey <tom@tromey.com>
  10407. PR exp/17095:
  10408. * NEWS: Update.
  10409. * std-operator.def (UNOP_ALIGNOF): New operator.
  10410. * expprint.c (dump_subexp_body_standard) <case UNOP_ALIGNOF>:
  10411. New.
  10412. * eval.c (evaluate_subexp_standard) <case UNOP_ALIGNOF>: New.
  10413. * c-lang.c (c_op_print_tab): Add alignof.
  10414. * c-exp.y (ALIGNOF): New token.
  10415. (exp): Add "ALIGNOF" production.
  10416. (ident_tokens): Add _Alignof and alignof.
  10417. 2018-04-30 Tom Tromey <tom@tromey.com>
  10418. * i386-tdep.c (i386_type_align): New function.
  10419. (i386_gdbarch_init): Update.
  10420. * gdbarch.sh (type_align): New method.
  10421. * gdbarch.c, gdbarch.h: Rebuild.
  10422. * arch-utils.h (default_type_align): Declare.
  10423. * arch-utils.c (default_type_align): New function.
  10424. * gdbtypes.h (TYPE_ALIGN_BITS): New define.
  10425. (struct type) <align_log2>: New field.
  10426. <instance_flags>: Now a bitfield.
  10427. (TYPE_RAW_ALIGN): New macro.
  10428. (type_align, type_raw_align, set_type_align): Declare.
  10429. * gdbtypes.c (type_align, type_raw_align, set_type_align): New
  10430. functions.
  10431. * dwarf2read.c (quirk_rust_enum): Set type alignment.
  10432. (get_alignment, maybe_set_alignment): New functions.
  10433. (read_structure_type, read_enumeration_type, read_array_type)
  10434. (read_set_type, read_tag_pointer_type, read_tag_reference_type)
  10435. (read_subrange_type, read_base_type): Set type alignment.
  10436. 2018-04-30 Simon Marchi <simon.marchi@ericsson.com>
  10437. * dwarf2read.c (read_index_from_section): Use bool.
  10438. 2018-04-29 Fabian Groffen <grobian@gentoo.org>
  10439. PR gdb/22950
  10440. * proc-events.c (init_syscall_table): Guard usage os SYS_uuidsys
  10441. with #ifdef.
  10442. 2018-04-29 John Reiser <jreiser@BitWagon.com>
  10443. PR build/22873
  10444. * Makefile.in: (.c:.l, .c:.y): Write the target only in the
  10445. last step, and do it atomically.
  10446. 2018-04-27 Alexandre Oliva <aoliva@redhat.com>
  10447. * compile/compile-c-types.c (convert_int, convert_float):
  10448. Update for C FE v1.
  10449. 2018-04-27 Tom Tromey <tom@tromey.com>
  10450. PR rust/22545:
  10451. * rust-lang.c (rust_inclusive_range_type_p): New function.
  10452. (rust_range): Handle inclusive ranges.
  10453. (rust_compute_range): Likewise.
  10454. * rust-exp.y (struct rust_op) <inclusive>: New field.
  10455. (DOTDOTEQ): New constant.
  10456. (range_expr): Add "..=" productions.
  10457. (operator_tokens): Add "..=" token.
  10458. (ast_range): Add "inclusive" parameter.
  10459. (convert_ast_to_expression) <case OP_RANGE>: Handle inclusive
  10460. ranges.
  10461. * parse.c (operator_length_standard) <case OP_RANGE>: Handle new
  10462. bounds values.
  10463. * expression.h (enum range_type) <NONE_BOUND_DEFAULT_EXCLUSIVE,
  10464. LOW_BOUND_DEFAULT_EXCLUSIVE>: New constants.
  10465. Update comments.
  10466. * expprint.c (print_subexp_standard): Handle new bounds values.
  10467. (dump_subexp_body_standard): Likewise.
  10468. 2018-04-27 Tom Tromey <tom@tromey.com>
  10469. * configure: Rebuild.
  10470. * warning.m4 (AM_GDB_WARNINGS): Add -Wsuggest-override.
  10471. * dwarf2loc.c (class dwarf_evaluate_loc_desc): Use "override", not
  10472. "OVERRIDE".
  10473. (class symbol_needs_eval_context): Likewise.
  10474. * dwarf2read.c (mock_mapped_index::symbol_name_count)
  10475. (mock_mapped_index::symbol_name_at): Use "override". Remove
  10476. "virtual".
  10477. * dwarf2-frame.c (dwarf_expr_executor::get_addr_index): Use
  10478. "override".
  10479. (class dwarf_expr_executor): Use "override", not "OVERRIDE".
  10480. * aarch64-tdep.c (instruction_reader::read): Use "override".
  10481. (instruction_reader_test::read): Likewise.
  10482. * arm-tdep.c (instruction_reader::read): Use "override".
  10483. (instruction_reader_thumb::read): Likewise.
  10484. 2018-04-26 Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl>
  10485. PR remote/9665
  10486. * remote.c (send_g_packet): Use putpkt/getpkt/packet_check_result
  10487. instead of remote_send.
  10488. (remote_send): Remove.
  10489. 2018-04-26 Pedro Alves <palves@redhat.com>
  10490. * elfread.c (elf_gnu_ifunc_resolver_return_stop): Use
  10491. find_function_start_sal instead of find_pc_line.
  10492. 2018-04-26 Pedro Alves <palves@redhat.com>
  10493. * breakpoint.c (set_breakpoint_location_function): Handle
  10494. mst_data_gnu_ifunc.
  10495. * c-exp.y (variable production): Handle mst_data_gnu_ifunc.
  10496. * elfread.c (elf_symtab_read): Give data symbols with
  10497. BSF_GNU_INDIRECT_FUNCTION set mst_data_gnu_ifunc type.
  10498. (elf_rel_plt_read): Update comment.
  10499. * linespec.c (convert_linespec_to_sals): Handle
  10500. mst_data_gnu_ifunc.
  10501. (minsym_found): Handle mst_data_gnu_ifunc.
  10502. * minsyms.c (msymbol_is_function, minimal_symbol_reader::record)
  10503. (find_solib_trampoline_target): Handle mst_data_gnu_ifunc.
  10504. * parse.c (find_minsym_type_and_address): Handle
  10505. mst_data_gnu_ifunc.
  10506. * symmisc.c (dump_msymbols): Handle mst_data_gnu_ifunc.
  10507. * symtab.c (find_gnu_ifunc): Handle mst_data_gnu_ifunc.
  10508. * symtab.h (minimal_symbol_type) <mst_text_gnu_ifunc>: Update
  10509. comment.
  10510. <mst_data_gnu_ifunc>: New enumerator.
  10511. 2018-04-26 Pedro Alves <palves@redhat.com>
  10512. * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Rename to ...
  10513. (lookup_minimal_symbol_by_pc_section): ... this. Replace
  10514. 'want_trampoline' parameter by a lookup_msym_prefer parameter.
  10515. Handle it.
  10516. (lookup_minimal_symbol_by_pc_section): Delete old implementation.
  10517. (lookup_minimal_symbol_by_pc): Adjust.
  10518. (in_gnu_ifunc_stub): Prefer GNU ifunc symbols.
  10519. (lookup_solib_trampoline_symbol_by_pc): Adjust.
  10520. * minsyms.h (lookup_msym_prefer): New enum.
  10521. (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
  10522. parameter by a lookup_msym_prefer parameter.
  10523. 2018-04-26 Pedro Alves <palves@redhat.com>
  10524. * elfread.c (elf_gnu_ifunc_record_cache): Check if the symbol name
  10525. ends in "@plt" instead of looking at the symbol's section.
  10526. 2018-04-26 Pedro Alves <palves@redhat.com>
  10527. * blockframe.c (cache_pc_function_is_gnu_ifunc): Delete. Remove
  10528. all references.
  10529. (find_pc_partial_function_gnu_ifunc): Rename to ...
  10530. (find_pc_partial_function): ... this, and remove references to
  10531. 'is_gnu_ifunc_p'.
  10532. (find_pc_partial_function): Delete old implementation.
  10533. * symtab.h (find_pc_partial_function_gnu_ifunc): Delete.
  10534. 2018-04-26 Pedro Alves <palves@redhat.com>
  10535. * linespec.c (struct bound_minimal_symbol_search_key): New.
  10536. (convert_linespec_to_sals): Sort minimal symbols earlier. Don't
  10537. skip first line if we found a GNU ifunc minimal symbol by name.
  10538. (compare_msymbols): Change parameters to work with a destructured
  10539. lhs minsym.
  10540. (compare_msymbols_for_qsort, compare_msymbols_for_bsearch): New
  10541. functions.
  10542. 2018-04-26 Pedro Alves <palves@redhat.com>
  10543. * breakpoint.c (set_breakpoint_location_function): Don't resolve
  10544. ifunc targets here. Instead, if we have an ifunc minsym, use its
  10545. address/name.
  10546. (add_location_to_breakpoint): Store the minsym and the objfile in
  10547. the breakpoint location.
  10548. * breakpoint.h (bp_location) <msymbol, objfile>: New fields.
  10549. * linespec.c (minsym_found): Resolve GNU ifunc targets here.
  10550. Record the minsym in the sal.
  10551. * symtab.h (symtab_and_line) <msymbol>: New field.
  10552. 2018-04-26 Pedro Alves <palves@redhat.com>
  10553. * elfread.c (elf_gnu_ifunc_resolve_by_got): Don't write to *ADDR_P
  10554. unless we actually resolved the ifunc.
  10555. 2018-04-26 Pedro Alves <palves@redhat.com>
  10556. * c-exp.y (variable production): Prefer ifunc minsyms over
  10557. regular function symbols.
  10558. * symtab.c (find_gnu_ifunc): New function.
  10559. * minsyms.h (lookup_msym_prefer): New enum.
  10560. (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
  10561. parameter by a lookup_msym_prefer parameter.
  10562. * symtab.h (find_gnu_ifunc): New declaration.
  10563. 2018-04-26 Pedro Alves <palves@redhat.com>
  10564. * blockframe.c (find_gnu_ifunc_target_type): New function.
  10565. (find_function_type): New.
  10566. * eval.c (evaluate_var_msym_value): For GNU ifunc types, always
  10567. return a value with a memory address.
  10568. (eval_call): For calls to GNU ifunc functions, try to find the
  10569. type of the target function from the type that the resolver
  10570. returns.
  10571. * gdbtypes.c (objfile_type): Don't install a return type for ifunc
  10572. symbols.
  10573. * infcall.c (find_function_return_type): Delete.
  10574. (find_function_addr): Add 'function_type' parameter. For calls to
  10575. GNU ifunc functions, try to find the type of the target function
  10576. from the type that the resolver returns, and return it via
  10577. FUNCTION_TYPE.
  10578. (call_function_by_hand_dummy): Adjust to use the function type
  10579. returned by find_function_addr.
  10580. (find_function_addr): Add 'function_type' parameter and move
  10581. description here.
  10582. * symtab.h (find_function_type, find_gnu_ifunc_target_type): New
  10583. declarations.
  10584. 2018-04-26 Pedro Alves <palves@redhat.com>
  10585. * c-exp.y (variable production): Skip finding an alias for ifunc
  10586. symbols.
  10587. 2018-04-26 Pedro Alves <palves@redhat.com>
  10588. * elfread.c (elf_rel_plt_read): Look for relocations for .got.plt too.
  10589. 2018-04-25 Pedro Alves <palves@redhat.com>
  10590. * infcmd.c (kill_command): Print the pid as string, not the whole
  10591. thread's ptid. Add comment. s/has been killed/killed/ in output
  10592. message.
  10593. * remote.c (remote_detach_1): Print the pid as string, not the
  10594. whole thread's ptid.
  10595. 2018-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
  10596. Sergio Durigan Junior <sergiodj@redhat.com>
  10597. Pedro Alves <palves@redhat.com>
  10598. * infcmd.c (kill_command): Print message when inferior has
  10599. been killed.
  10600. * inferior.c (print_inferior_events): Remove 'static'. Set as
  10601. '1'.
  10602. (add_inferior): Improve message printed when
  10603. 'print_inferior_events' is on.
  10604. (exit_inferior): Remove message printed when
  10605. 'print_inferior_events' is on.
  10606. (detach_inferior): Improve message printed when
  10607. 'print_inferior_events' is on.
  10608. (initialize_inferiors): Use 'add_inferior_silent' to set
  10609. 'current_inferior_'.
  10610. * inferior.h (print_inferior_events): Declare here as
  10611. 'extern'.
  10612. * infrun.c (follow_fork_inferior): Print '[Attaching...]' or
  10613. '[Detaching...]' messages when 'print_inferior_events' is on.
  10614. Use 'add_thread_silent' instead of 'add_thread'. Add '[' and ']'
  10615. as prefix/suffix for messages. Remove periods. Fix erroneous
  10616. 'Detaching after fork from child...', replace it by '... from
  10617. parent...'.
  10618. (handle_vfork_child_exec_or_exit): Add '[' and ']' as
  10619. prefix/suffix when printing 'Detaching...' messages. Print
  10620. them when 'print_inferior_events' is on.
  10621. * remote.c (remote_detach_1): Print message when detaching
  10622. from inferior and '!is_fork_parent'.
  10623. 2018-04-24 Tom Tromey <tom@tromey.com>
  10624. * cli-out.h: Reindent.
  10625. 2018-04-24 Tom Tromey <tom@tromey.com>
  10626. * cli-out.c (cli_ui_out::out_field_fmt): Remove.
  10627. (cli_ui_out::do_field_string): Use fputs_filtered.
  10628. * cli-out.h (class cli_ui_out) <out_field_fmt>: Remove.
  10629. 2018-04-23 Tom Tromey <tom@tromey.com>
  10630. * guile/scm-frame.c (gdbscm_frame_read_var): Use
  10631. gdb::unique_xmalloc_ptr.
  10632. 2018-04-23 Tom Tromey <tom@tromey.com>
  10633. * configure: Rebuild.
  10634. 2018-04-21 Pedro Alves <palves@redhat.com>
  10635. Rajendra SY <rajendra.sy@gmail.com>
  10636. * inf-ptrace.c (inf_ptrace_attach): Mark the thread as executing.
  10637. * remote.c (extended_remote_attach): In all-stop mode, mark the
  10638. thread as executing.
  10639. 2018-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
  10640. * thread.c (thread_apply_all_command): Fix comment.
  10641. (thread_command): Fix comment.
  10642. 2018-04-10 Alan Hayward <alan.hayward@arm.com>
  10643. * common/tdesc.h (tdesc_create_feature): Remove xml filename
  10644. parameter.
  10645. * features/aarch64-core.c (create_feature_aarch64_core):
  10646. Regenerate.
  10647. * features/aarch64-fpu.c (create_feature_aarch64_fpu):
  10648. Likewise.
  10649. * features/i386/32bit-avx.c (create_feature_i386_32bit_avx):
  10650. Likewise.
  10651. * features/i386/32bit-avx512.c
  10652. (create_feature_i386_32bit_avx512): Likewise.
  10653. * features/i386/32bit-core.c (create_feature_i386_32bit_core):
  10654. Likewise.
  10655. * features/i386/32bit-linux.c (create_feature_i386_32bit_linux):
  10656. Likewise.
  10657. * features/i386/32bit-mpx.c (create_feature_i386_32bit_mpx):
  10658. Likewise.
  10659. * features/i386/32bit-pkeys.c (create_feature_i386_32bit_pkeys):
  10660. Likewise.
  10661. * features/i386/32bit-sse.c (create_feature_i386_32bit_sse):
  10662. Likewise.
  10663. * features/i386/64bit-avx.c (create_feature_i386_64bit_avx):
  10664. Likewise.
  10665. * features/i386/64bit-avx512.c
  10666. (create_feature_i386_64bit_avx512): Likewise.
  10667. * features/i386/64bit-core.c (create_feature_i386_64bit_core):
  10668. Likewise.
  10669. * features/i386/64bit-linux.c (create_feature_i386_64bit_linux):
  10670. Likewise.
  10671. * features/i386/64bit-mpx.c (create_feature_i386_64bit_mpx):
  10672. Likewise.
  10673. * features/i386/64bit-pkeys.c (create_feature_i386_64bit_pkeys):
  10674. Likewise.
  10675. * features/i386/64bit-segments.c
  10676. (create_feature_i386_64bit_segments): Likewise.
  10677. * features/i386/64bit-sse.c (create_feature_i386_64bit_sse):
  10678. Likewise.
  10679. * features/i386/x32-core.c
  10680. (create_feature_i386_x32_core): Likewise.
  10681. * features/tic6x-c6xp.c (create_feature_tic6x_c6xp): Likewise.
  10682. * features/tic6x-core.c (create_feature_tic6x_core): Likewise.
  10683. * features/tic6x-gp.c (create_feature_tic6x_gp): Likewise.
  10684. * target-descriptions.c: In generated code, don't pass xml
  10685. filename.
  10686. 2018-04-18 Alan Hayward <alan.hayward@arm.com>
  10687. * common/tdesc.c (print_xml_feature::visit_pre): Add xml parsing.
  10688. (print_xml_feature::visit_post): Likewise.
  10689. (print_xml_feature::visit): Likewise.
  10690. * common/tdesc.h (tdesc_get_features_xml): Use const tdesc.
  10691. (print_xml_feature): Add new class.
  10692. * regformats/regdat.sh: Null xmltarget on feature targets.
  10693. * target-descriptions.c (struct target_desc): Add xmltarget.
  10694. (maintenance_check_tdesc_xml_convert): Add unittest function.
  10695. (tdesc_get_features_xml): Add function to get xml.
  10696. (maintenance_check_xml_descriptions): Test xml generation.
  10697. * xml-tdesc.c (string_read_description_xml): Add function.
  10698. * xml-tdesc.h (string_read_description_xml): Add declaration.
  10699. 2018-04-18 Alan Hayward <alan.hayward@arm.com>
  10700. * features/Makefile: Add feature marker to targets with new style
  10701. target descriptions.
  10702. * regformats/aarch64.dat: Regenerate.
  10703. * regformats/i386/amd64-avx-avx512-linux.dat: Likewise.
  10704. * regformats/i386/amd64-avx-linux.dat: Likewise.
  10705. * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Likewise.
  10706. * regformats/i386/amd64-avx-mpx-linux.dat: Likewise.
  10707. * regformats/i386/amd64-linux.dat: Likewise.
  10708. * regformats/i386/amd64-mpx-linux.dat: Likewise.
  10709. * regformats/i386/amd64.dat: Likewise.
  10710. * regformats/i386/i386-avx-avx512-linux.dat: Likewise.
  10711. * regformats/i386/i386-avx-linux.dat: Likewise.
  10712. * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Likewise.
  10713. * regformats/i386/i386-avx-mpx-linux.dat: Likewise.
  10714. * regformats/i386/i386-linux.dat: Likewise.
  10715. * regformats/i386/i386-mmx-linux.dat: Likewise.
  10716. * regformats/i386/i386-mpx-linux.dat: Likewise.
  10717. * regformats/i386/i386.dat: Likewise.
  10718. * regformats/i386/x32-avx-avx512-linux.dat: Likewise.
  10719. * regformats/i386/x32-avx-linux.dat: Likewise.
  10720. * regformats/i386/x32-linux.dat: Likewise.
  10721. * regformats/tic6x-c62x-linux.dat: Likewise.
  10722. * regformats/tic6x-c64x-linux.dat: Likewise.
  10723. * regformats/tic6x-c64xp-linux.dat: Likewise.
  10724. * regformats/regdat.sh: Parse feature marker.
  10725. 2018-04-18 Alan Hayward <alan.hayward@arm.com>
  10726. * common/tdesc.h (tdesc_architecture_name): Add new declaration.
  10727. (tdesc_osabi_name): Likewise.
  10728. * target-descriptions.c (tdesc_architecture_name): Add new
  10729. function.
  10730. (tdesc_osabi_name): Likewise.
  10731. 2018-04-18 Alan Hayward <alan.hayward@arm.com>
  10732. * common/tdesc.c (tdesc_predefined_type): Move to here.
  10733. (tdesc_named_type): Likewise.
  10734. (tdesc_create_vector): Likewise.
  10735. (tdesc_create_struct): Likewise.
  10736. (tdesc_set_struct_size): Likewise.
  10737. (tdesc_create_union): Likewise.
  10738. (tdesc_create_flags): Likewise.
  10739. (tdesc_create_enum): Likewise.
  10740. (tdesc_add_field): Likewise.
  10741. (tdesc_add_typed_bitfield): Likewise.
  10742. (tdesc_add_bitfield): Likewise.
  10743. (tdesc_add_flag): Likewise.
  10744. (tdesc_add_enum_value): Likewise.
  10745. * common/tdesc.h (struct tdesc_type_builtin): Likewise.
  10746. (struct tdesc_type_vector): Likewise.
  10747. (struct tdesc_type_field): Likewise.
  10748. (struct tdesc_type_with_fields): Likewise.
  10749. (tdesc_create_enum): Add declaration.
  10750. (tdesc_add_typed_bitfield): Likewise.
  10751. (tdesc_add_enum_value): Likewise.
  10752. * target-descriptions.c (tdesc_type_field): Move from here.
  10753. (tdesc_type_builtin): Likewise.
  10754. (tdesc_type_vector): Likewise.
  10755. (tdesc_type_with_fields): Likewise.
  10756. (tdesc_predefined_types): Likewise.
  10757. (tdesc_named_type): Likewise.
  10758. (tdesc_create_vector): Likewise.
  10759. (tdesc_create_struct): Likewise.
  10760. (tdesc_set_struct_size): Likewise.
  10761. (tdesc_create_union): Likewise.
  10762. (tdesc_create_flags): Likewise.
  10763. (tdesc_create_enum): Likewise.
  10764. (tdesc_add_field): Likewise.
  10765. (tdesc_add_typed_bitfield): Likewise.
  10766. (tdesc_add_bitfield): Likewise.
  10767. (tdesc_add_flag): Likewise.
  10768. (tdesc_add_enum_value): Likewise.
  10769. * target-descriptions.h (tdesc_create_enum): Likewise.
  10770. (tdesc_add_typed_bitfield): Likewise.
  10771. (tdesc_add_enum_value): Likewise.
  10772. 2018-04-18 Alan Hayward <alan.hayward@arm.com>
  10773. * common/tdesc.c (tdesc_feature::accept): Move to here.
  10774. (tdesc_feature::operator==): Likewise.
  10775. (tdesc_create_reg): Likewise.
  10776. * common/tdesc.h (tdesc_type_kind): Likewise.
  10777. (struct tdesc_type): Likewise.
  10778. (struct tdesc_feature): Likewise.
  10779. * regformats/regdat.sh: Create a feature.
  10780. * target-descriptions.c (tdesc_type_kind): Move from here.
  10781. (tdesc_type): Likewise.
  10782. (tdesc_type_up): Likewise.
  10783. (tdesc_feature): Likewise.
  10784. (tdesc_create_reg): Likewise.
  10785. 2018-04-18 Alan Hayward <alan.hayward@arm.com>
  10786. * Makefile.in: Add arch/tdesc.c
  10787. * common/tdesc.c: New file.
  10788. * common/tdesc.h (tdesc_element_visitor): Move to here.
  10789. (tdesc_element): Likewise.
  10790. (tdesc_reg): Likewise.
  10791. (tdesc_reg_up): Likewise.
  10792. * regformats/regdef.h (reg): Add offset to constructors.
  10793. * target-descriptions.c (tdesc_element_visitor): Move from here.
  10794. (tdesc_element): Likewise.
  10795. (tdesc_reg): Likewise.
  10796. (tdesc_reg_up): Likewise.
  10797. 2018-04-17 Tom Tromey <tom@tromey.com>
  10798. * dwarf2read.c (quirk_rust_enum): Conditionally drop the
  10799. discriminant field.
  10800. 2018-04-17 Tom Tromey <tom@tromey.com>
  10801. * dwarf2read.c (quirk_rust_enum): Handle unions correctly.
  10802. 2018-04-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
  10803. * symtab.c (print_symbol_info): Skip printing filename and line
  10804. number when `last' is NULL.
  10805. (symtab_symbol_info): Use empty string instead of NULL for first
  10806. invocation of print_symbol_info.
  10807. (rbreak_command): Pass NULL to `last' parameter of
  10808. print_symbol_info.
  10809. 2018-04-16 Simon Marchi <simon.marchi@ericsson.com>
  10810. * linux-tdep.c (linux_spu_make_corefile_notes): Return note_data
  10811. instead of nullptr.
  10812. 2018-04-16 Pedro Alves <palves@redhat.com>
  10813. * MAINTAINERS (sh): Remove.
  10814. * Makefile.in (ALL_TARGET_OBS): Remove sh64-tdep.o.
  10815. (HFILES_NO_SRCDIR): Remove sh64-tdep.h.
  10816. (ALLDEPFILES): Remove sh64-tdep.c.
  10817. * NEWS: Mentions that support for SH-5/SH64 is removed.
  10818. * configure.tgt (sh*-*-linux*): Remove reference to sh64-tdep.o.
  10819. (sh*-*-openbsd*): Ditto.
  10820. (sh64-*-elf*): Remove.
  10821. (sh*): Remove.
  10822. * regcache.c (cooked_write_test): Remove bfd_mach_sh5 case.
  10823. * sh-linux-tdep.c: Remove reference to bfd_mach_sh5.
  10824. * sh-tdep.c: No longer include "sh64-tdep.h".
  10825. (sh_gdbarch_init): Remove reference to bfd_mach_sh5.
  10826. * sh64-tdep.c, sh64-tdep.h: Remove files.
  10827. 2018-04-16 Pedro Alves <palves@redhat.com>
  10828. * MAINTAINERS: Remove m88k.
  10829. * Makefile.in (ALL_TARGET_OBS): Remove m88k-tdep.o.
  10830. (HFILES_NO_SRCDIR): Remove m88k-tdep.h.
  10831. (ALLDEPFILES): Remove m88k-bsd-nat.c and m88k-tdep.c.
  10832. * NEWS: Mention that support for m88k was removed.
  10833. * configure.host (m88*-*-*): Remove support.
  10834. * configure.nat (m88k-*-*): Remove support.
  10835. * configure.tgt (m88*-*-openbsd*): Remove.
  10836. * m88k-bsd-nat.c, m88k-tdep.c, m88k-tdep.h: Delete.
  10837. 2018-04-15 Simon Marchi <simon.marchi@polymtl.ca>
  10838. * configure.tgt (x86_tobjs): New variable.
  10839. (amd64_tobjs, i386_tobjs): Use it.
  10840. 2018-04-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
  10841. * symtab.c (print_symbol_info): Precede the symbol definition by
  10842. the line number when available.
  10843. * NEWS: Advertise this enhancement.
  10844. 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
  10845. * NEWS (New options): announce set/show record btrace cpu.
  10846. * btrace.c: Include record-btrace.h.
  10847. (btrace_compute_ftrace_pt): Skip enabling errata workarounds if
  10848. the vendor is unknown.
  10849. (btrace_compute_ftrace_1): Add cpu parameter. Update callers.
  10850. Maybe overwrite the btrace configuration's cpu.
  10851. (btrace_compute_ftrace): Add cpu parameter. Update callers.
  10852. (btrace_fetch): Add cpu parameter. Update callers.
  10853. (btrace_maint_update_pt_packets): Call record_btrace_get_cpu.
  10854. Maybe overwrite the btrace configuration's cpu. Skip enabling
  10855. errata workarounds if the vendor is unknown.
  10856. * python/py-record-btrace.c: Include record-btrace.h.
  10857. (recpy_bt_begin, recpy_bt_end, recpy_bt_instruction_history)
  10858. (recpy_bt_function_call_history): Call record_btrace_get_cpu.
  10859. * record-btrace.c (record_btrace_cpu_state_kind): New.
  10860. (record_btrace_cpu): New.
  10861. (set_record_btrace_cpu_cmdlist): New.
  10862. (record_btrace_get_cpu): New.
  10863. (require_btrace_thread, record_btrace_info)
  10864. (record_btrace_resume_thread): Call record_btrace_get_cpu.
  10865. (cmd_set_record_btrace_cpu_none): New.
  10866. (cmd_set_record_btrace_cpu_auto): New.
  10867. (cmd_set_record_btrace_cpu): New.
  10868. (cmd_show_record_btrace_cpu): New.
  10869. (_initialize_record_btrace): Initialize set/show record btrace cpu
  10870. commands.
  10871. * record-btrace.h (record_btrace_get_cpu): New.
  10872. 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
  10873. * record.c (set_record_command): Fix typo in message.
  10874. 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
  10875. * record-btrace.c (cmd_set_record_btrace): Print sub-commands.
  10876. 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
  10877. * infrun.c (process_event_stop_test): Call
  10878. gdbarch_in_indirect_branch_thunk.
  10879. * gdbarch.sh (in_indirect_branch_thunk): New.
  10880. * gdbarch.c: Regenerated.
  10881. * gdbarch.h: Regenerated.
  10882. * x86-tdep.h: New.
  10883. * x86-tdep.c: New.
  10884. * Makefile.in (ALL_TARGET_OBS): Add x86-tdep.o.
  10885. (HFILES_NO_SRCDIR): Add x86-tdep.h.
  10886. (ALLDEPFILES): Add x86-tdep.c.
  10887. * arch-utils.h (default_in_indirect_branch_thunk): New.
  10888. * arch-utils.c (default_in_indirect_branch_thunk): New.
  10889. * i386-tdep: Include x86-tdep.h.
  10890. (i386_in_indirect_branch_thunk): New.
  10891. (i386_elf_init_abi): Set in_indirect_branch_thunk gdbarch
  10892. function.
  10893. * amd64-tdep: Include x86-tdep.h.
  10894. (amd64_in_indirect_branch_thunk): New.
  10895. (amd64_init_abi): Set in_indirect_branch_thunk gdbarch function.
  10896. 2018-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
  10897. PR gdb/23053
  10898. * dwarf-index-write.c (data_buf::grow) (write_one_signatured_type)
  10899. (recursively_write_psymbols) (debug_names::recursively_write_psymbols)
  10900. (debug_names::write_one_signatured_type): Fix -D_GLIBCXX_DEBUG
  10901. regression.
  10902. 2018-04-12 Tom Tromey <tom@tromey.com>
  10903. * rust-lang.c (rust_print_struct_def): Remove univariant code.
  10904. (rust_evaluate_subexp): Likewise.
  10905. 2018-04-12 Pedro Alves <palves@redhat.com>
  10906. * procfs.c (procfs_detach): Make forward declaration's prototype
  10907. match definition's protototype.
  10908. (proc_get_LDT_entry): Remove stale do_cleanups call.
  10909. 2018-04-12 Pedro Alves <palves@redhat.com>
  10910. * target.h (target_ops::to_has_exited): Delete.
  10911. (target_has_exited): Delete.
  10912. * target-delegates.c: Regenerate.
  10913. 2018-04-11 Pedro Alves <palves@redhat.com>
  10914. * target.c (fileio_fh_t::t): Add comment.
  10915. (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
  10916. (target_fileio_close): Handle a NULL target.
  10917. (invalidate_fileio_fh): New.
  10918. (target_close): Call it.
  10919. * remote.c (remote_hostio_send_command): No longer check whether
  10920. remote_desc is open.
  10921. 2018-04-11 Pedro Alves <palves@redhat.com>
  10922. * target.c (fileio_fh_t): Make it a named struct instead of a
  10923. typedef.
  10924. (fileio_fh_t::is_closed): New method.
  10925. (DEF_VEC_O (fileio_fh_t)): Remove.
  10926. (fileio_fhandles): Now a std::vector.
  10927. (is_closed_fileio_fh): Delete.
  10928. (acquire_fileio_fd): Adjust. Rename parameters.
  10929. (release_fileio_fd): Adjust.
  10930. (fileio_fd_to_fh): Reimplement as a function instead of a macro.
  10931. (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
  10932. (target_fileio_close): Adjust.
  10933. 2018-04-10 Simon Marchi <simon.marchi@ericsson.com>
  10934. * auto-load.c (auto_load_safe_path_vec_update): Iterate by
  10935. index.
  10936. 2018-04-10 Pedro Alves <palves@redhat.com>
  10937. * gdbthread.h (finish_thread_state_cleanup): Delete declaration.
  10938. (scoped_finish_thread_state): New class.
  10939. * infcmd.c (run_command_1): Use it instead of finish_thread_state
  10940. cleanup.
  10941. * infrun.c (proceed, prepare_for_detach, wait_for_inferior)
  10942. (fetch_inferior_event, normal_stop): Likewise.
  10943. * thread.c (finish_thread_state_cleanup): Delete.
  10944. 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
  10945. Pedro Alves <palves@redhat.com>
  10946. * value.c: Include "selftest.h" and "common/array-view.h".
  10947. (struct range) <operator ==>: New.
  10948. (test_ranges_contain): New.
  10949. (check_ranges_vector): New.
  10950. (test_insert_into_bit_range_vector): New.
  10951. (_initialize_values): Register selftests.
  10952. * common/array-view.h (operator==, operator!=): New.
  10953. 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
  10954. * common/gdb_vecs.h (unordered_remove): Add overload that takes
  10955. an iterator.
  10956. * inline-frame.c: Include <algorithm>.
  10957. (struct inline_state): Add constructor.
  10958. (inline_state_s): Remove.
  10959. (DEF_VEC_O(inline_state_s)): Remove.
  10960. (inline_states): Change type to std::vector.
  10961. (find_inline_frame_state): Adjust to std::vector.
  10962. (allocate_inline_frame_state): Remove.
  10963. (clear_inline_frame_state): Adjust to std::vector.
  10964. (skip_inline_frames): Adjust to std::vector.
  10965. 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
  10966. * tracepoint.h (struct trace_state_variable): Add constructor.
  10967. <name>: Change type to std::string.
  10968. * tracepoint.c (tsv_s): Remove.
  10969. (DEF_VEC_O(tsv_s)): Remove.
  10970. (tvariables): Change to std::vector.
  10971. (create_trace_state_variable): Adjust to std::vector.
  10972. (find_trace_state_variable): Likewise.
  10973. (find_trace_state_variable_by_number): Likewise.
  10974. (delete_trace_state_variable): Likewise.
  10975. (trace_variable_command): Adjust to std::string.
  10976. (delete_trace_variable_command): Likewise.
  10977. (tvariables_info_1): Adjust to std::vector.
  10978. (save_trace_state_variables): Likewise.
  10979. (start_tracing): Likewise.
  10980. (merge_uploaded_trace_state_variables): Adjust to std::vector
  10981. and std::string.
  10982. * target.h (struct target_ops)
  10983. <to_download_trace_state_variable>: Pass reference to
  10984. trace_state_variable.
  10985. * target-debug.h (target_debug_print_const_trace_state_variable_r): New.
  10986. * target-delegates.c: Re-generate.
  10987. * mi/mi-interp.c (mi_tsv_created): Adjust to std::string.
  10988. (mi_tsv_deleted): Likewise.
  10989. * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
  10990. * remote.c (remote_download_trace_state_variable): Change
  10991. pointer to reference and adjust.
  10992. * make-target-delegates (parse_argtypes): Handle references.
  10993. (write_function_header): Likewise.
  10994. (munge_type): Likewise.
  10995. 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
  10996. * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
  10997. string_view-selftests.c.
  10998. * unittests/basic_string_view/capacity/1.cc: Adapt to GDB
  10999. testsuite.
  11000. * unittests/basic_string_view/cons/char/1.cc: Likewise.
  11001. * unittests/basic_string_view/cons/char/2.cc: Likewise.
  11002. * unittests/basic_string_view/cons/char/3.cc: Likewise.
  11003. * unittests/basic_string_view/element_access/char/1.cc:
  11004. Likewise.
  11005. * unittests/basic_string_view/element_access/char/empty.cc:
  11006. Likewise.
  11007. * unittests/basic_string_view/element_access/char/front_back.cc:
  11008. Likewise.
  11009. * unittests/basic_string_view/inserters/char/2.cc: Likewise.
  11010. * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc:
  11011. Likewise.
  11012. * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc:
  11013. Likewise.
  11014. * unittests/basic_string_view/modifiers/swap/char/1.cc:
  11015. Likewise.
  11016. * unittests/basic_string_view/operations/compare/char/1.cc:
  11017. Likewise.
  11018. * unittests/basic_string_view/operations/compare/char/13650.cc:
  11019. Likewise.
  11020. * unittests/basic_string_view/operations/copy/char/1.cc:
  11021. Likewise.
  11022. * unittests/basic_string_view/operations/data/char/1.cc:
  11023. Likewise.
  11024. * unittests/basic_string_view/operations/find/char/1.cc:
  11025. Likewise.
  11026. * unittests/basic_string_view/operations/find/char/2.cc:
  11027. Likewise.
  11028. * unittests/basic_string_view/operations/find/char/3.cc:
  11029. Likewise.
  11030. * unittests/basic_string_view/operations/find/char/4.cc:
  11031. Likewise.
  11032. * unittests/basic_string_view/operations/rfind/char/1.cc:
  11033. Likewise.
  11034. * unittests/basic_string_view/operations/rfind/char/2.cc:
  11035. Likewise.
  11036. * unittests/basic_string_view/operations/rfind/char/3.cc:
  11037. Likewise.
  11038. * unittests/basic_string_view/operations/substr/char/1.cc:
  11039. Likewise.
  11040. * unittests/basic_string_view/operators/char/2.cc: Likewise.
  11041. * unittests/string_view-selftests.c: New file.
  11042. 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
  11043. * unittests/basic_string_view/capacity/1.cc: New file.
  11044. * unittests/basic_string_view/capacity/empty_neg.cc: New file.
  11045. * unittests/basic_string_view/cons/char/1.cc: New file.
  11046. * unittests/basic_string_view/cons/char/2.cc: New file.
  11047. * unittests/basic_string_view/cons/char/3.cc: New file.
  11048. * unittests/basic_string_view/cons/wchar_t/1.cc: New file.
  11049. * unittests/basic_string_view/cons/wchar_t/2.cc: New file.
  11050. * unittests/basic_string_view/cons/wchar_t/3.cc: New file.
  11051. * unittests/basic_string_view/element_access/char/1.cc: New file.
  11052. * unittests/basic_string_view/element_access/char/2.cc: New file.
  11053. * unittests/basic_string_view/element_access/char/empty.cc: New file.
  11054. * unittests/basic_string_view/element_access/char/front_back.cc: New file.
  11055. * unittests/basic_string_view/element_access/wchar_t/1.cc: New file.
  11056. * unittests/basic_string_view/element_access/wchar_t/2.cc: New file.
  11057. * unittests/basic_string_view/element_access/wchar_t/empty.cc: New file.
  11058. * unittests/basic_string_view/element_access/wchar_t/front_back.cc: New file.
  11059. * unittests/basic_string_view/include.cc: New file.
  11060. * unittests/basic_string_view/inserters/char/1.cc: New file.
  11061. * unittests/basic_string_view/inserters/char/2.cc: New file.
  11062. * unittests/basic_string_view/inserters/char/3.cc: New file.
  11063. * unittests/basic_string_view/inserters/pod/10081-out.cc: New file.
  11064. * unittests/basic_string_view/inserters/wchar_t/1.cc: New file.
  11065. * unittests/basic_string_view/inserters/wchar_t/2.cc: New file.
  11066. * unittests/basic_string_view/inserters/wchar_t/3.cc: New file.
  11067. * unittests/basic_string_view/literals/types.cc: New file.
  11068. * unittests/basic_string_view/literals/values.cc: New file.
  11069. * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: New file.
  11070. * unittests/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc: New file.
  11071. * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: New file.
  11072. * unittests/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc: New file.
  11073. * unittests/basic_string_view/modifiers/swap/char/1.cc: New file.
  11074. * unittests/basic_string_view/modifiers/swap/wchar_t/1.cc: New file.
  11075. * unittests/basic_string_view/operations/compare/char/1.cc: New file.
  11076. * unittests/basic_string_view/operations/compare/char/13650.cc: New file.
  11077. * unittests/basic_string_view/operations/compare/char/2.cc: New file.
  11078. * unittests/basic_string_view/operations/compare/char/70483.cc: New file.
  11079. * unittests/basic_string_view/operations/compare/wchar_t/1.cc: New file.
  11080. * unittests/basic_string_view/operations/compare/wchar_t/13650.cc: New file.
  11081. * unittests/basic_string_view/operations/compare/wchar_t/2.cc: New file.
  11082. * unittests/basic_string_view/operations/copy/char/1.cc: New file.
  11083. * unittests/basic_string_view/operations/copy/wchar_t/1.cc: New file.
  11084. * unittests/basic_string_view/operations/data/char/1.cc: New file.
  11085. * unittests/basic_string_view/operations/data/wchar_t/1.cc: New file.
  11086. * unittests/basic_string_view/operations/find/char/1.cc: New file.
  11087. * unittests/basic_string_view/operations/find/char/2.cc: New file.
  11088. * unittests/basic_string_view/operations/find/char/3.cc: New file.
  11089. * unittests/basic_string_view/operations/find/char/4.cc: New file.
  11090. * unittests/basic_string_view/operations/find/wchar_t/1.cc: New file.
  11091. * unittests/basic_string_view/operations/find/wchar_t/2.cc: New file.
  11092. * unittests/basic_string_view/operations/find/wchar_t/3.cc: New file.
  11093. * unittests/basic_string_view/operations/find/wchar_t/4.cc: New file.
  11094. * unittests/basic_string_view/operations/rfind/char/1.cc: New file.
  11095. * unittests/basic_string_view/operations/rfind/char/2.cc: New file.
  11096. * unittests/basic_string_view/operations/rfind/char/3.cc: New file.
  11097. * unittests/basic_string_view/operations/rfind/wchar_t/1.cc: New file.
  11098. * unittests/basic_string_view/operations/rfind/wchar_t/2.cc: New file.
  11099. * unittests/basic_string_view/operations/rfind/wchar_t/3.cc: New file.
  11100. * unittests/basic_string_view/operations/string_conversion/1.cc: New file.
  11101. * unittests/basic_string_view/operations/substr/char/1.cc: New file.
  11102. * unittests/basic_string_view/operations/substr/wchar_t/1.cc: New file.
  11103. * unittests/basic_string_view/operators/char/2.cc: New file.
  11104. * unittests/basic_string_view/operators/wchar_t/2.cc: New file.
  11105. * unittests/basic_string_view/range_access/char/1.cc: New file.
  11106. * unittests/basic_string_view/range_access/wchar_t/1.cc: New file.
  11107. * unittests/basic_string_view/requirements/explicit_instantiation/1.cc: New file.
  11108. * unittests/basic_string_view/requirements/explicit_instantiation/char/1.cc: New file.
  11109. * unittests/basic_string_view/requirements/explicit_instantiation/char16_t/1.cc: New file.
  11110. * unittests/basic_string_view/requirements/explicit_instantiation/char32_t/1.cc: New file.
  11111. * unittests/basic_string_view/requirements/explicit_instantiation/wchar_t/1.cc: New file.
  11112. * unittests/basic_string_view/requirements/typedefs.cc: New file.
  11113. * unittests/basic_string_view/typedefs.cc: New file.
  11114. * unittests/basic_string_view/types/1.cc: New file.
  11115. 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
  11116. * common/gdb_string_view.h: Remove libstdc++ implementation
  11117. details, adjust to gdb reality.
  11118. * common/gdb_string_view.tcc: Likewise.
  11119. * cli/cli-script.c (struct string_view): Remove.
  11120. (user_args) <m_args>: Change element type to gdb::string_view.
  11121. (user_args::insert_args): Adjust.
  11122. 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
  11123. * common/gdb_string_view.h: New file.
  11124. * common/gdb_string_view.tcc: New file.
  11125. 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
  11126. * ax_cxx_compile_stdcxx.m4: Sync with upstream.
  11127. * configure: Re-generate.
  11128. 2018-04-09 Pedro Alves <palves@redhat.com>
  11129. * gdbarch.sh: Include "observable.h" instead of "observer.h".
  11130. (set_target_gdbarch): Call
  11131. gdb::observers::architecture_changed.notify instead of
  11132. observer_notify_architecture_changed.
  11133. 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
  11134. * tracepoint.c (struct current_traceframe_cleanup): Remove.
  11135. (do_restore_current_traceframe_cleanup): Remove.
  11136. (restore_current_traceframe_cleanup_dtor): Remove.
  11137. (make_cleanup_restore_current_traceframe): Remove.
  11138. (scoped_restore_current_traceframe::scoped_restore_current_traceframe):
  11139. New.
  11140. * tracepoint.h (struct scoped_restore_current_traceframe): New.
  11141. * infrun.c (fetch_inferior_event): Use
  11142. scoped_restore_current_traceframe.
  11143. 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
  11144. * dwarf2read.h (struct dwarf2_per_objfile) <n_type_units>:
  11145. Remove.
  11146. <n_allocated_type_units>: Remove.
  11147. <all_type_units>: Change to std::vector.
  11148. * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
  11149. to std::vector change.
  11150. (dwarf2_per_objfile::get_cutu): Likewise.
  11151. (dwarf2_per_objfile::get_tu): Likewise.
  11152. (create_signatured_type_table_from_index): Likewise.
  11153. (create_signatured_type_table_from_debug_names): Likewise.
  11154. (dw2_symtab_iter_next): Likewise.
  11155. (dw2_print_stats): Likewise.
  11156. (dw2_expand_all_symtabs): Likewise.
  11157. (dw2_expand_marked_cus): Likewise.
  11158. (dw2_debug_names_iterator::next): Likewise.
  11159. (dwarf2_initialize_objfile): Likewise.
  11160. (add_signatured_type_cu_to_table): Likewise.
  11161. (create_all_type_units): Likewise.
  11162. (add_type_unit): Likewise.
  11163. (struct tu_abbrev_offset): Add constructor.
  11164. (build_type_psymtabs_1): Adjust to std::vector change.
  11165. (print_tu_stats): Likewise.
  11166. * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
  11167. (write_debug_names): Likewise.
  11168. 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
  11169. * dwarf2read.h (struct dwarf2_per_objfile) <all_comp_units>: Likewise.
  11170. Make an std::vector.
  11171. <n_comp_units>: Remove.
  11172. * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
  11173. to std::vector change.
  11174. (dwarf2_per_objfile::get_cutu): Likewise.
  11175. (dwarf2_per_objfile::get_cu): Likewise.
  11176. (create_cus_from_index): Likewise.
  11177. (create_addrmap_from_index): Likewise.
  11178. (create_addrmap_from_aranges): Likewise.
  11179. (dwarf2_read_index): Likewise.
  11180. (dw2_find_last_source_symtab): Likewise.
  11181. (dw2_map_symtabs_matching_filename): Likewise.
  11182. (dw2_symtab_iter_next): Likewise.
  11183. (dw2_print_stats): Likewise.
  11184. (dw2_expand_all_symtabs): Likewise.
  11185. (dw2_expand_symtabs_with_fullname): Likewise.
  11186. (dw2_expand_marked_cus): Likewise.
  11187. (dw2_map_symbol_filenames): Likewise.
  11188. (create_cus_from_debug_names): Likewise.
  11189. (dwarf2_read_debug_names): Likewise.
  11190. (dw2_debug_names_iterator::next): Likewise.
  11191. (dwarf2_initialize_objfile): Likewise.
  11192. (set_partial_user): Likewise.
  11193. (dwarf2_build_psymtabs_hard): Likewise.
  11194. (read_comp_units_from_section): Remove arguments, adjust to
  11195. std::vector change.
  11196. (create_all_comp_units): Adjust to std::vector and
  11197. read_comp_units_from_section changes.
  11198. (dwarf2_find_containing_comp_unit): Adjust to std::vector
  11199. change.
  11200. * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
  11201. (psyms_seen_size): Likewise.
  11202. (write_gdbindex): Likewise.
  11203. (write_debug_names): Likewise.
  11204. 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
  11205. * dwarf2read.c (create_cus_from_index_list): Replace objfile arg
  11206. with dwarf2_per_objfile.
  11207. (create_cus_from_index): Likewise.
  11208. (create_signatured_type_table_from_index): Likewise.
  11209. (dwarf2_read_index): Likewise.
  11210. (dwarf2_initialize_objfile): Likewise.
  11211. (dwarf2_fetch_die_loc_sect_off): Get dwarf2_per_objfile from
  11212. per_cu rather than get_dwarf2_per_objfile.
  11213. 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
  11214. * dwarf2read.h (struct signatured_type): Forward declare.
  11215. (struct dwarf2_per_objfile) <get_cutu, get_cu, get_tu>:
  11216. New methods.
  11217. * dwarf2read.c (dwarf2_per_objfile::get_cutu): Rename from...
  11218. (dw2_get_cutu): ...this.
  11219. (dwarf2_per_objfile::get_cu): Rename from...
  11220. (dw2_get_cu): ...this.
  11221. (dwarf2_per_objfile::get_tu): New.
  11222. (create_addrmap_from_index): Adjust.
  11223. (create_addrmap_from_aranges): Adjust.
  11224. (dw2_find_last_source_symtab): Adjust.
  11225. (dw2_map_symtabs_matching_filename): Adjust.
  11226. (dw2_symtab_iter_next): Adjust.
  11227. (dw2_print_stats): Adjust.
  11228. (dw2_expand_all_symtabs): Adjust.
  11229. (dw2_expand_symtabs_with_fullname): Adjust.
  11230. (dw2_expand_marked_cus): Adjust.
  11231. (dw_expand_symtabs_matching_file_matcher): Adjust.
  11232. (dw2_map_symbol_filenames): Adjust.
  11233. (dw2_debug_names_iterator::next): Adjust.
  11234. (dwarf2_initialize_objfile): Adjust.
  11235. (set_partial_user): Adjust.
  11236. (dwarf2_build_psymtabs_hard): Adjust.
  11237. 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
  11238. * dwarf2read.c (create_signatured_type_table_from_debug_names):
  11239. Remove unused variables.
  11240. (dw2_map_symtabs_matching_filename): Likewise.
  11241. (dwarf2_record_block_ranges): Likewise.
  11242. (dwarf2_read_addr_index): Likewise.
  11243. (follow_die_offset): Likewise.
  11244. 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
  11245. * progspace.c (clone_program_space): Pass SYMFILE_DEFER_BP_RESET
  11246. to symbol_file_add_main.
  11247. 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
  11248. PR mi/22299
  11249. * mi/mi-console.c (do_fputc_async_safe): New.
  11250. (mi_console_file::write_async_safe): New.
  11251. (mi_console_file::flush): Adjust calls to fputstrn_unfiltered.
  11252. * mi/mi-console.h (class mi_console_file) <write_async_safe>:
  11253. New.
  11254. * ui-file.c (ui_file::putstrn): Adjust call to
  11255. fputstrn_unfiltered.
  11256. * utils.c (printchar): Replace do_fputs and do_fprintf
  11257. parameters by do_fputc.
  11258. (fputstr_filtered): Adjust call to printchar.
  11259. (fputstr_unfiltered): Likewise.
  11260. (fputstrn_filtered): Likewise.
  11261. (fputstrn_unfiltered): Add do_fputc parameter, pass to
  11262. printchar.
  11263. * utils.h (do_fputc_ftype): New typedef.
  11264. (fputstrn_unfiltered): Add do_fputc parameter.
  11265. 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
  11266. * regformats/i386/i386-avx.dat: Remove.
  11267. 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
  11268. PR gdb/22979
  11269. * amd64-tdep.c (amd64_none_init_abi): New function.
  11270. (amd64_x32_none_init_abi): New function.
  11271. (_initialize_amd64_tdep): Register handlers for x86-64 and
  11272. x64_32 with GDB_OSABI_NONE.
  11273. * osabi.c (gdbarch_init_osabi): Allow running handlers for the
  11274. GDB_OSABI_NONE osabi.
  11275. 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
  11276. PR gdb/22980
  11277. * defs.h (enum gdb_osabi): Remove GDB_OSABI_UNINITIALIZED, add
  11278. GDB_OSABI_NONE.
  11279. * arch-utils.c (gdbarch_info_init): Don't set info->osabi.
  11280. * osabi.c (gdb_osabi_names): Add "unknown" entry.
  11281. 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
  11282. * common/byte-vector.h (char_vector): New type.
  11283. * target.h (target_read_alloc): Return
  11284. gdb::optional<byte_vector>.
  11285. (target_read_stralloc): Return gdb::optional<char_vector>.
  11286. (target_get_osdata): Return gdb::optional<char_vector>.
  11287. * target.c (target_read_alloc_1): Templatize. Replacement
  11288. manual memory management with vector.
  11289. (target_read_alloc): Change return type, adjust.
  11290. (target_read_stralloc): Change return type, adjust.
  11291. (target_get_osdata): Change return type, adjust.
  11292. * auxv.c (struct auxv_info) <length>: Remove.
  11293. <data>: Change type to gdb::optional<byte_vector>.
  11294. (auxv_inferior_data_cleanup): Free auxv_info with delete.
  11295. (get_auxv_inferior_data): Allocate auxv_info with new, adjust.
  11296. (target_auxv_search): Adjust.
  11297. (fprint_target_auxv): Adjust.
  11298. * avr-tdep.c (avr_io_reg_read_command): Adjust.
  11299. * linux-tdep.c (linux_spu_make_corefile_notes): Adjust.
  11300. (linux_make_corefile_notes): Adjust.
  11301. * osdata.c (get_osdata): Adjust.
  11302. * remote.c (remote_get_threads_with_qxfer): Adjust.
  11303. (remote_memory_map): Adjust.
  11304. (remote_traceframe_info): Adjust.
  11305. (btrace_read_config): Adjust.
  11306. (remote_read_btrace): Adjust.
  11307. (remote_pid_to_exec_file): Adjust.
  11308. * solib-aix.c (solib_aix_get_library_list): Adjust.
  11309. * solib-dsbt.c (decode_loadmap): Don't free buf.
  11310. (dsbt_get_initial_loadmaps): Adjust.
  11311. * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Adjust.
  11312. * solib-target.c (solib_target_current_sos): Adjust.
  11313. * tracepoint.c (sdata_make_value): Adjust.
  11314. * xml-support.c (xinclude_start_include): Adjust.
  11315. (xml_fetch_content_from_file): Adjust.
  11316. * xml-support.h (xml_fetch_another): Change return type.
  11317. (xml_fetch_content_from_file): Change return type.
  11318. * xml-syscall.c (xml_init_syscalls_info): Adjust.
  11319. * xml-tdesc.c (file_read_description_xml): Adjust.
  11320. (fetch_available_features_from_target): Change return type.
  11321. (target_fetch_description_xml): Adjust.
  11322. (target_read_description_xml): Adjust.
  11323. 2018-04-06 Tom Tromey <tom@tromey.com>
  11324. * value.c (~value): Update.
  11325. (struct value) <contents>: Now unique_xmalloc_ptr.
  11326. (value_contents_bits_eq, allocate_value_contents)
  11327. (value_contents_raw, value_contents_all_raw)
  11328. (value_contents_for_printing, value_contents_for_printing_const)
  11329. (set_value_enclosing_type): Update.
  11330. 2018-04-06 Tom Tromey <tom@tromey.com>
  11331. * value.c (range_s): Remove typedef, VEC.
  11332. (struct range): Add operator<.
  11333. (range_lessthan): Remove.
  11334. (ranges_contain): Change type.
  11335. (~value): Update.
  11336. (struct value) <unavailable, optimized_out>: Now std::vector.
  11337. (value_entirely_available)
  11338. (value_entirely_covered_by_range_vector)
  11339. (value_entirely_unavailable, value_entirely_optimized_out):
  11340. Update.
  11341. (insert_into_bit_range_vector): Change argument type.
  11342. (find_first_range_overlap): Likewise.
  11343. (struct ranges_and_idx, value_contents_bits_eq)
  11344. (require_not_optimized_out, require_available): Update.
  11345. (ranges_copy_adjusted): Change argument types.
  11346. (value_optimized_out, value_copy, value_fetch_lazy): Update.
  11347. 2018-04-06 Tom Tromey <tom@tromey.com>
  11348. * value.c (~value): Update.
  11349. (struct value) <parent>: Now a value_ref_ptr.
  11350. (value_parent, set_value_parent, value_address, value_copy):
  11351. Update.
  11352. 2018-04-06 Tom Tromey <tom@tromey.com>
  11353. * value.c (struct value): Add constructor, destructor, and member
  11354. initializers.
  11355. (allocate_value_lazy, value_decref): Update.
  11356. 2018-04-06 Tom Tromey <tom@tromey.com>
  11357. * value.c (struct value) <released, next>: Remove.
  11358. (all_values): Now a std::vector.
  11359. (allocate_value_lazy): Update.
  11360. (value_next): Remove.
  11361. (value_mark, value_free_to_mark, release_value)
  11362. (value_release_to_mark): Update.
  11363. 2018-04-06 Tom Tromey <tom@tromey.com>
  11364. * value.h (fetch_subexp_value, value_release_to_mark): Update.
  11365. (free_value_chain): Remove.
  11366. * value.c (free_value_chain): Remove.
  11367. (value_release_to_mark): Return a std::vector.
  11368. * ppc-linux-nat.c (num_memory_accesses): Change "chain" to a
  11369. std::vector.
  11370. (check_condition): Update.
  11371. * eval.c (fetch_subexp_value): Change "val_chain" to a
  11372. std::vector.
  11373. * breakpoint.c (update_watchpoint): Update.
  11374. (can_use_hardware_watchpoint): Change "vals" to a std::vector.
  11375. 2018-04-06 Tom Tromey <tom@tromey.com>
  11376. * value.h (free_all_values): Remove.
  11377. * value.c (free_all_values): Remove.
  11378. 2018-04-06 Tom Tromey <tom@tromey.com>
  11379. * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk)
  11380. (value_history_chain, value_history_count): Remove.
  11381. (value_history): New global.
  11382. (record_latest_value, access_value_history, show_values)
  11383. (preserve_values): Update.
  11384. 2018-04-06 Tom Tromey <tom@tromey.com>
  11385. * varobj.h (struct varobj) <value>: Now a value_ref_ptr.
  11386. * varobj.c (varobj_set_display_format, varobj_set_value)
  11387. (install_default_visualizer, construct_visualizer)
  11388. (install_new_value, ~varobj, varobj_get_value_type)
  11389. (my_value_of_variable, varobj_editable_p): Update.
  11390. * c-varobj.c (c_describe_child, c_value_of_variable)
  11391. (cplus_number_of_children, cplus_describe_child): Update.
  11392. * ada-varobj.c (ada_number_of_children, ada_name_of_child)
  11393. (ada_path_expr_of_child, ada_value_of_child, ada_type_of_child)
  11394. (ada_value_of_variable, ada_value_is_changeable_p): Update.
  11395. 2018-04-06 Tom Tromey <tom@tromey.com>
  11396. * printcmd.c (last_examine_address): Change type to
  11397. value_ref_ptr.
  11398. (do_examine, x_command): Update.
  11399. 2018-04-06 Tom Tromey <tom@tromey.com>
  11400. * value.c (release_value): Update.
  11401. * breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr.
  11402. (struct bpstats) <val>: Now a value_ref_ptr.
  11403. * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
  11404. (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
  11405. (~watchpoint, print_it_watchpoint, watch_command_1)
  11406. (invalidate_bp_value_on_memory_change): Update.
  11407. 2018-04-06 Tom Tromey <tom@tromey.com>
  11408. * varobj.c (varobj_clear_saved_item)
  11409. (update_dynamic_varobj_children, install_new_value, ~varobj):
  11410. Update.
  11411. * value.h (value_incref): Move declaration earlier.
  11412. (value_decref): Rename from value_free.
  11413. (struct value_ref_policy): New.
  11414. (value_ref_ptr): New typedef.
  11415. (struct value_deleter): Remove.
  11416. (gdb_value_up): Remove typedef.
  11417. (release_value): Change return type.
  11418. (release_value_or_incref): Remove.
  11419. * value.c (set_value_parent): Update.
  11420. (value_incref): Change return type.
  11421. (value_decref): Rename from value_free.
  11422. (value_free_to_mark, free_all_values, free_value_chain): Update.
  11423. (release_value): Return value_ref_ptr.
  11424. (release_value_or_incref): Remove.
  11425. (record_latest_value, set_internalvar, clear_internalvar):
  11426. Update.
  11427. * stack.c (info_frame_command): Don't call value_free.
  11428. * python/py-value.c (valpy_dealloc, valpy_new)
  11429. (value_to_value_object): Update.
  11430. * printcmd.c (do_examine): Update.
  11431. * opencl-lang.c (lval_func_free_closure): Update.
  11432. * mi/mi-main.c (register_changed_p): Don't call value_free.
  11433. * mep-tdep.c (mep_frame_prev_register): Don't call value_free.
  11434. * m88k-tdep.c (m88k_frame_prev_register): Don't call value_free.
  11435. * m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call
  11436. value_free.
  11437. * guile/scm-value.c (vlscm_free_value_smob)
  11438. (vlscm_scm_from_value): Update.
  11439. * frame.c (frame_register_unwind, frame_unwind_register_signed)
  11440. (frame_unwind_register_unsigned, get_frame_register_bytes)
  11441. (put_frame_register_bytes): Don't call value_free.
  11442. * findvar.c (address_from_register): Don't call value_free.
  11443. * dwarf2read.c (dwarf2_compute_name): Don't call value_free.
  11444. * dwarf2loc.c (entry_data_value_free_closure)
  11445. (value_of_dwarf_reg_entry, free_pieced_value_closure)
  11446. (dwarf2_evaluate_loc_desc_full): Update.
  11447. * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
  11448. (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
  11449. (~watchpoint, watch_command_1)
  11450. (invalidate_bp_value_on_memory_change): Update.
  11451. * alpha-tdep.c (alpha_register_to_value): Don't call value_free.
  11452. 2018-04-06 Simon Marchi <simon.marchi@polymtl.ca>
  11453. PR gdb/23022
  11454. * warning.m4: Add -Wno-error=deprecated-register.
  11455. * configure: Re-generate.
  11456. 2018-04-05 Tom Tromey <tom@tromey.com>
  11457. * linespec.h: Remove include of "vec.h".
  11458. 2018-04-05 Tom Tromey <tom@tromey.com>
  11459. * linespec.c (typep): Remove typedef.
  11460. (find_methods, find_superclass_methods): Take a std::vector.
  11461. (find_method): Use std::vector.
  11462. 2018-04-05 Tom Tromey <tom@tromey.com>
  11463. * utils.c (compare_strings): Remove.
  11464. * utils.h (compare_strings): Remove.
  11465. * objc-lang.h (find_imps): Update.
  11466. * objc-lang.c (find_methods): Take a std::vector.
  11467. (uniquify_strings, find_imps): Likewise.
  11468. * linespec.c (find_methods): Take a std::vector.
  11469. (decode_objc): Use std::vector.
  11470. (add_all_symbol_names_from_pspace, find_superclass_methods): Take
  11471. a std::vector.
  11472. (find_method, find_function_symbols): Use std::vector.
  11473. 2018-04-05 Tom Tromey <tom@tromey.com>
  11474. * completer.c (completion_tracker::completion_tracker): Remove
  11475. cast.
  11476. (completion_tracker::discard_completions): Likewise.
  11477. * breakpoint.c (ambiguous_names_p): Remove cast.
  11478. * ada-lang.c (_initialize_ada_language): Remove cast.
  11479. * utils.h (streq): Update.
  11480. (streq_hash): Add new declaration.
  11481. * utils.c (streq): Return bool.
  11482. (streq_hash): New function.
  11483. 2018-04-05 Tom Tromey <tom@tromey.com>
  11484. * linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>:
  11485. Remove a string copy.
  11486. 2018-04-05 Tom Tromey <tom@tromey.com>
  11487. * linespec.c (filter_results): Use std::vector.
  11488. (decode_line_2, decode_line_full): Update.
  11489. 2018-04-05 Tom Tromey <tom@tromey.com>
  11490. * linespec.c (canonical_to_fullform): Return std::string.
  11491. (filter_results): Update.
  11492. (struct decode_line_2_item): Add constructor.
  11493. <fullform, displayform>: Now std::string.
  11494. (decode_line_2_compare_items): Now a std::sort comparator.
  11495. (decode_line_2): Update.
  11496. 2018-04-05 Tom Tromey <tom@tromey.com>
  11497. * linespec.c (copy_token_string): Return a unique_xmalloc_ptr.
  11498. (unexpected_linespec_error): Update.
  11499. (linespec_parse_basic, parse_linespec): Update.
  11500. 2018-04-05 Tom Tromey <tom@tromey.com>
  11501. * linespec.c (linespec_parse_basic): Reindent.
  11502. 2018-04-05 Tom Tromey <tom@tromey.com>
  11503. * minsyms.h (iterate_over_minimal_symbols): Update.
  11504. * minsyms.c (iterate_over_minimal_symbols): Take a
  11505. gdb::function_view.
  11506. * linespec.c (struct collect_minsyms): Remove.
  11507. (compare_msyms): Now a std::sort comparator.
  11508. (add_minsym): Add parameters.
  11509. (search_minsyms_for_name): Update. Use std::vector.
  11510. 2018-04-03 Tom Tromey <tom@tromey.com>
  11511. * mipsread.c (read_alphacoff_dynamic_symtab): Use
  11512. gdb::byte_vector.
  11513. 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
  11514. * MAINTAINERS (Write After Approval): Add Weimin Pan.
  11515. 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
  11516. PR gdb/16959
  11517. * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when
  11518. printing static type.
  11519. 2018-04-01 Tom Tromey <tom@tromey.com>
  11520. * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector.
  11521. (rs6000_xfer_shared_libraries): Update.
  11522. 2018-04-01 Simon Marchi <simon.marchi@polymtl.ca>
  11523. * common/gdb_vecs.h (char_ptr): Remove.
  11524. * tracepoint.c (encode_actions_1): Remove usage of char_ptr.
  11525. 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
  11526. * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC
  11527. with std::vector.
  11528. * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove.
  11529. 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
  11530. * tracepoint.h (struct uploaded_tp): Initialize fields.
  11531. <actions, step_actions, cmd_strings>: Change type to
  11532. std::vector<char *>.
  11533. * tracepoint.c (get_uploaded_tp): Allocate with new.
  11534. (free_uploaded_tps): Free with delete.
  11535. (parse_tracepoint_definition): Adjust to std::vector change.
  11536. * breakpoint.c (read_uploaded_action): Likewise.
  11537. (create_tracepoint_from_upload): Likewise.
  11538. * ctf.c (ctf_write_uploaded_tp): Likewise.
  11539. (SET_ARRAY_FIELD): Likewise.
  11540. * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise.
  11541. 2018-03-30 Tom Tromey <tom@tromey.com>
  11542. * solib-svr4.c (lm_info_read): Use gdb::byte_vector. Return
  11543. std::unique_ptr.
  11544. (svr4_keep_data_in_core): Update.
  11545. (svr4_read_so_list): Update.
  11546. 2018-03-30 Tom Tromey <tom@tromey.com>
  11547. * windows-nat.c (handle_output_debug_string, handle_exception):
  11548. Update.
  11549. * target.h (target_read_string): Update.
  11550. * target.c (target_read_string): Change "string" to
  11551. unique_xmalloc_ptr.
  11552. * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
  11553. Update.
  11554. * solib-frv.c (frv_current_sos): Update.
  11555. * solib-dsbt.c (dsbt_current_sos): Update.
  11556. * solib-darwin.c (darwin_current_sos): Update.
  11557. * linux-thread-db.c (inferior_has_bug): Update.
  11558. * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>:
  11559. Update. Remove alloca.
  11560. * ada-lang.c (ada_main_name): Update.
  11561. 2018-03-30 Tom Tromey <tom@tromey.com>
  11562. * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove.
  11563. (struct dwo_file_deleter): New.
  11564. (dwo_file_up): New typedef.
  11565. (open_and_init_dwo_file): Use dwo_file_up.
  11566. (free_dwo_file_cleanup): Remove.
  11567. 2018-03-30 Tom Tromey <tom@tromey.com>
  11568. * dwarf2read.c (free_dwo_file): Remove "objfile" parameter.
  11569. (free_dwo_file_cleanup, free_dwo_file_from_slot): Update.
  11570. 2018-03-30 Tom Tromey <tom@tromey.com>
  11571. * dwarf2read.c (class free_cached_comp_units): New class.
  11572. (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it.
  11573. (free_cached_comp_units): Remove function.
  11574. 2018-03-30 Tom Tromey <tom@tromey.com>
  11575. * utils.h (make_cleanup_unpush_target): Remove.
  11576. * inf-ptrace.c (struct target_unpusher): New.
  11577. (target_unpush_up) New typedef.
  11578. (inf_ptrace_create_inferior, inf_ptrace_attach): Use
  11579. target_unpush_up.
  11580. * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove.
  11581. 2018-03-27 Tom Tromey <tom@tromey.com>
  11582. * utils.c (prompt_for_continue): Use unique_xmalloc_ptr.
  11583. 2018-03-27 Pedro Alves <palves@redhat.com>
  11584. Tom Tromey <tom@tromey.com>
  11585. * top.c (class gdb_readline_wrapper_cleanup): Add constructor,
  11586. destructor. Now a class.
  11587. (gdb_readline_wrapper_cleanup): Remove function.
  11588. (gdb_readline_wrapper): Remove cleanups.
  11589. 2018-03-27 Tom Tromey <tom@tromey.com>
  11590. * typeprint.h (struct type_print_options) <local_typedefs,
  11591. global_typedefs>: Remove "struct" keyword.
  11592. (class typedef_hash_table): New class.
  11593. (recursively_update_typedef_hash, add_template_parameters)
  11594. (create_typedef_hash, free_typedef_hash, copy_typedef_hash)
  11595. (find_typedef_in_hash): Don't declare.
  11596. * typeprint.c (struct typedef_hash_table): Move to typeprint.h.
  11597. (typedef_hash_table::recursively_update): Rename from
  11598. recursively_update_typedef_hash. Now a member.
  11599. (typedef_hash_table::add_template_parameters): Rename from
  11600. add_template_parameters. Now a member.
  11601. (typedef_hash_table::typedef_hash_table): Now a constructor;
  11602. rename from create_typedef_hash.
  11603. (typedef_hash_table::~typedef_hash_table): Now a destructor;
  11604. rename from free_typedef_hash.
  11605. (do_free_typedef_hash, make_cleanup_free_typedef_hash)
  11606. (do_free_global_table): Remove.
  11607. (typedef_hash_table::typedef_hash_table): New constructor; renamed
  11608. from copy_type_recursive.
  11609. (create_global_typedef_table): Remove.
  11610. (typedef_hash_table::find_global_typedef): Now a member of
  11611. typedef_hash_table.
  11612. (typedef_hash_table::find_typedef): Rename from
  11613. find_typedef_in_hash; now a member.
  11614. (whatis_exp): Update.
  11615. * extension.h (struct ext_lang_type_printers): Add constructor and
  11616. destructor.
  11617. (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't
  11618. declare.
  11619. * extension.c (ext_lang_type_printers::ext_lang_type_printers):
  11620. Now a constructor; rename from start_ext_lang_type_printers.
  11621. (ext_lang_type_printers): Now a destructor; rename from
  11622. free_ext_lang_type_printers.
  11623. * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1):
  11624. Update.
  11625. (c_type_print_base_struct_union): Update. Remove cleanups.
  11626. 2018-03-27 Tom Tromey <tom@tromey.com>
  11627. * dwarf-index-write.c: Include <cmath>.
  11628. 2018-03-27 Joel Brobecker <brobecker@adacore.com>
  11629. * NEWS: Add entry describing new "set|show varsize-limit" command.
  11630. * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit"
  11631. command.
  11632. * printcmd.c (_initialize_printcmd): Add "set var" alias of
  11633. "set variable".
  11634. 2018-03-27 Simon Marchi <simon.marchi@ericsson.com>
  11635. * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and
  11636. dwarf-index-write.c
  11637. (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h.
  11638. * dwarf-index-common.c: New file.
  11639. * dwarf-index-common.h: New file.
  11640. * dwarf-index-write.c: New file.
  11641. * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h.
  11642. (struct dwarf2_section_info): Move from here.
  11643. (dwarf2_section_info_def): Likewise.
  11644. (DEF_VEC_O (dwarf2_section_info_def)): Likewise.
  11645. (offset_type): Likewise.
  11646. (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise.
  11647. (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise.
  11648. (DW2_GDB_INDEX_CU_SET_VALUE): Likewise.
  11649. (byte_swap): Likewise.
  11650. (MAYBE_SWAP): Likewise.
  11651. (dwarf2_per_cu_ptr): Likewise.
  11652. (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise.
  11653. (struct tu_stats): Likewise.
  11654. (struct dwarf2_per_objfile): Likewise.
  11655. (struct dwarf2_per_cu_data): Likewise.
  11656. (struct signatured_type): Likewise.
  11657. (sig_type_ptr): Likewise.
  11658. (DEF_VEC_P (sig_type_ptr)): Likewise.
  11659. (INDEX4_SUFFIX): Likewise.
  11660. (INDEX5_SUFFIX): Likewise.
  11661. (DEBUG_STR_SUFFIX): Likewise.
  11662. (dwarf2_read_section): Make non-static.
  11663. (mapped_index_string_hash): Move from here.
  11664. (dwarf5_djb_hash): Likewise.
  11665. (file_write): Likewise.
  11666. (class data_buf): Likewise.
  11667. (struct symtab_index_entry): Likewise.
  11668. (struct mapped_symtab): Likewise.
  11669. (find_slot): Likewise.
  11670. (hash_expand): Likewise.
  11671. (add_index_entry): Likewise.
  11672. (uniquify_cu_indices): Likewise.
  11673. (class c_str_view): Likewise.
  11674. (class c_str_view_hasher): Likewise.
  11675. (class vector_hasher): Likewise.
  11676. (write_hash_table): Likewise.
  11677. (psym_index_map): Likewise.
  11678. (struct addrmap_index_data): Likewise.
  11679. (add_address_entry): Likewise.
  11680. (add_address_entry_worker): Likewise.
  11681. (write_address_map): Likewise.
  11682. (symbol_kind): Likewise.
  11683. (write_psymbols): Likewise.
  11684. (struct signatured_type_index_data): Likewise.
  11685. (write_one_signatured_type): Likewise.
  11686. (recursively_count_psymbols): Likewise.
  11687. (recursively_write_psymbols): Likewise.
  11688. (class debug_names): Likewise.
  11689. (check_dwarf64_offsets): Likewise.
  11690. (psyms_seen_size): Likewise.
  11691. (write_gdbindex): Likewise.
  11692. (write_debug_names): Likewise.
  11693. (assert_file_size): Likewise.
  11694. (write_psymtabs_to_index): Likewise.
  11695. (save_gdb_index_command): Likewise.
  11696. (_initialize_dwarf2_read): Don't register the "save gdb-index"
  11697. command.
  11698. * dwarf2read.h: New file.
  11699. 2018-03-27 Joel Brobecker <brobecker@adacore.com>
  11700. PR gdb/22670
  11701. * dwarf2read.c (dwarf2_physname): Do not return the demangled
  11702. symbol name if the CU's language stores symbol names in linkage
  11703. format.
  11704. * language.h (struct language_defn)
  11705. <la_store_sym_names_in_linkage_form_p>: New field. Adjust
  11706. all instances of this struct.
  11707. 2018-03-26 Tom Tromey <tom@tromey.com>
  11708. * stack.c (backtrace_command_1): Remove verbose code.
  11709. 2018-03-26 Tom Tromey <tom@tromey.com>
  11710. * python/py-framefilter.c (py_print_type): Don't catch
  11711. exceptions. Return void.
  11712. (py_print_value): Likewise.
  11713. (py_print_single_arg): Likewise.
  11714. (enumerate_args): Don't catch exceptions.
  11715. (py_print_args): Likewise.
  11716. (py_print_frame): Likewise.
  11717. (gdbpy_apply_frame_filter): Catch exceptions here.
  11718. 2018-03-26 Tom Tromey <tom@tromey.com>
  11719. * stack.c (_initialize_stack): Remove trailing newlines from help
  11720. text. Add "Usage" line to "backtrace" help.
  11721. 2018-03-26 Tom Tromey <tom@tromey.com>
  11722. PR python/16486:
  11723. * python/py-framefilter.c (py_print_args): Call wrap_hint.
  11724. 2018-03-26 Tom Tromey <tom@tromey.com>
  11725. * python/py-framefilter.c (py_print_single_arg): Return
  11726. EXT_LANG_BT_ERROR from catch.
  11727. 2018-03-26 Tom Tromey <tom@tromey.com>
  11728. PR backtrace/15584:
  11729. * stack.c (backtrace_command_1): Move some code into no-filters
  11730. "if".
  11731. 2018-03-26 Tom Tromey <tom@tromey.com>
  11732. * python/py-framefilter.c (throw_quit_or_print_exception): New
  11733. function.
  11734. (gdbpy_apply_frame_filter): Use it.
  11735. 2018-03-26 Tom Tromey <tom@tromey.com>
  11736. PR cli/17716:
  11737. * python/py-framefilter.c (py_print_type, py_print_value)
  11738. (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use
  11739. RETURN_MASK_ERROR.
  11740. 2018-03-26 Tom Tromey <tom@tromey.com>
  11741. * python/py-framefilter.c (enumerate_args): Use
  11742. gdb::unique_xmalloc_ptr.
  11743. 2018-03-26 Tom Tromey <tom@tromey.com>
  11744. * python/py-framefilter.c (py_print_frame): Return
  11745. EXT_LANG_BT_OK.
  11746. (gdbpy_apply_frame_filter): Update comment.
  11747. * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>:
  11748. Remove.
  11749. <EXT_LANG_BT_NO_FILTERS>: Change value.
  11750. 2018-03-26 Tom Tromey <tom@tromey.com>
  11751. PR backtrace/15582:
  11752. * stack.c (backtrace_command): Parse "hide" argument.
  11753. * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE.
  11754. * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New
  11755. constant.
  11756. 2018-03-26 Tom Tromey <tom@tromey.com>
  11757. * stack.c (backtrace_command_1): Remove "show_locals" parameter,
  11758. add "flags".
  11759. (backtrace_command): Remove "fulltrace", add "flags".
  11760. 2018-03-26 Tom Tromey <tom@tromey.com>
  11761. * stack.c (backtrace_command): Rewrite command line parsing.
  11762. 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
  11763. * dwarf2read.c (DEF_VEC_I(offset_type)): Remove.
  11764. 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
  11765. * filename-seen-cache.h: Add include guard.
  11766. 2018-03-26 Keith Seitz <keiths@redhat.com>
  11767. * symfile.c (place_section): Remove "struct" from section_addr_info
  11768. in comment.
  11769. * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove
  11770. "struct" keyword from section_addr_info.
  11771. 2018-03-26 Alan Hayward <alan.hayward@arm.com>
  11772. * regformats/regdef.h (reg): Add constructors.
  11773. 2018-03-25 Pedro Alves <palves@redhat.com>
  11774. * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE
  11775. if then/else bodies in var_func_name extraction.
  11776. 2018-03-23 Weimin Pan <weimin.pan@oracle.com>
  11777. * minsyms.c (lookup_minimal_symbol_and_objfile): Use
  11778. lookup_minimal_symbol() to find symbol entry.
  11779. * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment.
  11780. 2018-03-23 Keith Seitz <keiths@redhat.com>
  11781. PR c++/22968
  11782. * dwarf2read.c (scan_partial_symbols): Scan structs/classes for
  11783. nested type definitions for C++, too.
  11784. 2018-03-23 Tom Tromey <tom@tromey.com>
  11785. * machoread.c (struct oso_el): Add a constructor. Don't define as
  11786. a typedef.
  11787. (macho_register_oso): Remove.
  11788. (macho_symtab_read): Take a std::vector.
  11789. (oso_el_compare_name): Now a std::sort comparator.
  11790. (macho_symfile_read_all_oso): Take a std::vector.
  11791. (macho_symfile_read): Use std::vector. Remove cleanups.
  11792. 2018-03-22 Tom Tromey <tom@tromey.com>
  11793. * record-full.c (record_full_exec_insn): Use gdb::byte_vector.
  11794. (record_full_goto_bookmark): Use std::string.
  11795. 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
  11796. PR tdep/18295
  11797. * rs6000-tdep.c (skip_prologue): Match both stwux and stdux
  11798. a single mask.
  11799. 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
  11800. * rs6000-tdep.c (store_insn_p): New function.
  11801. (skip_prologue): New variable alloca_reg_offset. Set lr_reg
  11802. and cr_reg to their unshifted values. Use store_insn_p to
  11803. match LR saves using either R1 or fdata->alloca_reg. Use
  11804. store_insn_p to match CR saves. Set alloca_reg_offset
  11805. when alloca_reg and framep are set. Remove lr_reg shift
  11806. when assigning to fdata->lr_register.
  11807. 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
  11808. * linux-tdep.c (linux_info_proc): For "info proc cmdline", print
  11809. command line args instead of emitting a warning.
  11810. 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
  11811. * tracepoint.h (struct static_tracepoint_marker): Initialize
  11812. fields, define default constructor, move constructor and move
  11813. assignment, disable the rest.
  11814. <str_id, extra>: Make std::string.
  11815. (release_static_tracepoint_marker): Remove.
  11816. (free_current_marker): Remove.
  11817. * tracepoint.c (free_current_marker): Remove.
  11818. (parse_static_tracepoint_marker_definition): Adjust to
  11819. std::string, use new hex2str overload.
  11820. (release_static_tracepoint_marker): Remove.
  11821. (print_one_static_tracepoint_marker): Get marker by reference
  11822. and adjust to std::string.
  11823. (info_static_tracepoint_markers_command): Adjust to std::vector
  11824. changes
  11825. * target.h (static_tracepoint_marker_p): Remove typedef.
  11826. (DEF_VEC_P(static_tracepoint_marker_p)): Remove.
  11827. (struct target_ops) <to_static_tracepoint_marker_at>: Return
  11828. bool.
  11829. <to_static_tracepoint_markers_by_strid>: Return std::vector.
  11830. * target-debug.h
  11831. (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove.
  11832. (target_debug_print_std_vector_static_tracepoint_marker): New.
  11833. (target_debug_print_struct_static_tracepoint_marker_p): Rename
  11834. to...
  11835. (target_debug_print_static_tracepoint_marker_p): ... this.
  11836. * target-delegates.c: Re-generate.
  11837. * breakpoint.h (struct tracepoint) <static_trace_marker_id>:
  11838. Make std::string.
  11839. * breakpoint.c (init_breakpoint_sal): Adjust to std::string.
  11840. (decode_static_tracepoint_spec): Adjust to std::vector.
  11841. (tracepoint_print_one_detail): Adjust to std::string.
  11842. (strace_marker_decode_location): Adjust to std::string.
  11843. (update_static_tracepoint): Adjust to std::string, remove call
  11844. to release_static_tracepoint_marker.
  11845. * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
  11846. Adjust to std::vector.
  11847. * remote.c (remote_static_tracepoint_marker_at): Return bool.
  11848. (remote_static_tracepoint_markers_by_strid): Adjust to
  11849. std::vector.
  11850. * common/rsp-low.h (hex2str): New overload with explicit count
  11851. of bytes.
  11852. * common/rsp-low.c (hex2str): New overload with explicit count
  11853. of bytes.
  11854. * unittests/rsp-low-selftests.c (test_hex2str): New function.
  11855. (_initialize_rsp_low_selftests): Add test_hex2str test.
  11856. * unittests/tracepoint-selftests.c
  11857. (test_parse_static_tracepoint_marker_definition): Adjust to
  11858. std::string.
  11859. 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
  11860. * tracepoint.c (parse_static_tracepoint_marker_definition):
  11861. Consider case where the definition is followed by more
  11862. definitions.
  11863. * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
  11864. tracepoint-selftests.c.
  11865. * unittests/tracepoint-selftests.c: New.
  11866. 2018-03-21 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
  11867. * MAINTAINERS (Write After Approval): Add Pedro Franco de
  11868. Carvalho.
  11869. 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
  11870. * symtab.c (find_pc_sect_line): fixed indentation.
  11871. 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
  11872. * symtab.c (find_pc_sect_line): now uses binary search.
  11873. 2018-03-19 Tom Tromey <tom@tromey.com>
  11874. * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain
  11875. "IDENT" production.
  11876. 2018-03-19 Pedro Alves <palves@redhat.com>
  11877. Tom Tromey <tom@tromey.com>
  11878. * unittests/observable-selftests.c: New file.
  11879. * common/observable.h: New file.
  11880. * observable.h: New file.
  11881. * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c,
  11882. arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c,
  11883. breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c,
  11884. corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c,
  11885. extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c,
  11886. infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c,
  11887. linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c,
  11888. mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c,
  11889. ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c,
  11890. python/py-breakpoint.c, python/py-finishbreakpoint.c,
  11891. python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c,
  11892. record-btrace.c, record-full.c, record.c, regcache.c, remote.c,
  11893. riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c,
  11894. spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c,
  11895. symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c,
  11896. tui/tui-interp.c, valops.c: Update all users.
  11897. * tui/tui-hooks.c (tui_bp_created_observer)
  11898. (tui_bp_deleted_observer, tui_bp_modified_observer)
  11899. (tui_inferior_exit_observer, tui_before_prompt_observer)
  11900. (tui_normal_stop_observer, tui_register_changed_observer):
  11901. Remove.
  11902. (tui_observers_token): New global.
  11903. (attach_or_detach, tui_attach_detach_observers): New functions.
  11904. (tui_install_hooks, tui_remove_hooks): Use
  11905. tui_attach_detach_observers.
  11906. * record-btrace.c (record_btrace_thread_observer): Remove.
  11907. (record_btrace_thread_observer_token): New global.
  11908. * observer.sh: Remove.
  11909. * observer.c: Rename to observable.c.
  11910. * observable.c (namespace gdb_observers): Define new objects.
  11911. (observer_debug): Move into gdb_observers namespace.
  11912. (struct observer, struct observer_list, xalloc_observer_list_node)
  11913. (xfree_observer_list_node, generic_observer_attach)
  11914. (generic_observer_detach, generic_observer_notify): Remove.
  11915. (_initialize_observer): Update.
  11916. Don't include observer.inc.
  11917. * Makefile.in (generated_files): Remove observer.h, observer.inc.
  11918. (clean mostlyclean): Likewise.
  11919. (observer.h, observer.inc): Remove targets.
  11920. (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c.
  11921. (COMMON_SFILES): Use observable.c, not observer.c.
  11922. * .gitignore: Remove observer.h.
  11923. 2018-03-18 Tom Tromey <tom@tromey.com>
  11924. * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use
  11925. gdb::def_vector.
  11926. (bfd_lookup_symbol_from_dyn_symtab): Likewise.
  11927. 2018-03-17 Tom Tromey <tom@tromey.com>
  11928. * auto-load.c (auto_load_objfile_script_1): Use std::string.
  11929. 2018-03-17 Tom Tromey <tom@tromey.com>
  11930. * target.c (class scoped_target_fd): New.
  11931. (target_fileio_close_cleanup): Remove.
  11932. (target_fileio_read_alloc_1): Use scoped_target_fd.
  11933. 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
  11934. * silent-rules.mk: New.
  11935. * Makefile.in: Include silent-rules.mk
  11936. (srcdir, VPATH, top_srcdir): Move up.
  11937. (COMPILE): Add ECHO_CXX.
  11938. (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
  11939. (init.c): Add ECHO_INIT_C.
  11940. (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
  11941. (version.c): Add ECHO_GEN.
  11942. (printcmd.o): Add ECHO_CXX.
  11943. (target-float.o): Add ECHO_CXX.
  11944. (ada-exp.o): Add ECHO_CXX.
  11945. (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
  11946. (insight$(EXEEXT)): Add ECHO_CXXLD.
  11947. * gnulib/configure.ac: Add AM_SILENT_RULES.
  11948. * gnulib/aclocal.m4: Re-generate.
  11949. * gnulib/configure: Re-generate.
  11950. * gnulib/import/Makefile.in: Re-generate.
  11951. 2018-03-16 Tom Tromey <tom@tromey.com>
  11952. * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
  11953. * utils.h (make_cleanup_free_section_addr_info): Don't declare.
  11954. * utils.c (do_free_section_addr_info)
  11955. (make_cleanup_free_section_addr_info): Remove.
  11956. * symfile.h (struct other_sections): Add constructor.
  11957. (struct section_addr_info): Remove.
  11958. (section_addr_info): New typedef.
  11959. (struct sym_fns) <sym_offsets>: Change type of parameter.
  11960. (build_section_addr_info_from_objfile)
  11961. (relative_addr_info_to_section_offsets, addr_info_make_relative)
  11962. (default_symfile_offsets, symbol_file_add)
  11963. (symbol_file_add_from_bfd)
  11964. (build_section_addr_info_from_section_table): Update.
  11965. (alloc_section_addr_info, free_section_addr_info): Don't declare.
  11966. * symfile.c (alloc_section_addr_info): Remove.
  11967. (build_section_addr_info_from_section_table): Change return type.
  11968. Update.
  11969. (build_section_addr_info_from_bfd)
  11970. (build_section_addr_info_from_objfile): Likewise.
  11971. (free_section_addr_info): Remove.
  11972. (relative_addr_info_to_section_offsets): Change type of "addrs".
  11973. (addrs_section_compar): Now a std::sort comparator.
  11974. (addrs_section_sort): Change return type.
  11975. (addr_info_make_relative): Change type of "addrs". Update.
  11976. (default_symfile_offsets, syms_from_objfile_1)
  11977. (syms_from_objfile, symbol_file_add_with_addrs): Likewise.
  11978. (symbol_file_add_separate): Update.
  11979. (symbol_file_add): Change type of "addrs". Update.
  11980. (add_symbol_file_command): Update. Remove cleanups.
  11981. * symfile-mem.c (symbol_file_add_from_memory): Update. Remove
  11982. cleanups.
  11983. * symfile-debug.c (debug_sym_offsets): Change type of "info".
  11984. * solib.c (solib_read_symbols): Update.
  11985. * objfiles.c (objfile_relocate): Update. Remove cleanups.
  11986. * machoread.c (macho_symfile_offsets): Update.
  11987. * jit.c (jit_bfd_try_read_symtab): Update.
  11988. 2018-03-15 Simon Marchi <simon.marchi@polymtl.ca>
  11989. * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
  11990. unittests/utils-selftests.c.
  11991. * unittests/utils-selftests.c: New file.
  11992. 2018-03-14 Tom Tromey <tom@tromey.com>
  11993. PR cli/14977:
  11994. * printcmd.c (printf_c_string, printf_wide_c_string): Special case
  11995. for NULL.
  11996. 2018-03-14 Tom Tromey <tom@tromey.com>
  11997. PR cli/19918:
  11998. * printcmd.c (printf_pointer): Allow "-" in format.
  11999. 2018-03-14 Tom Tromey <tom@tromey.com>
  12000. * printcmd.c (_initialize_printcmd): Add usage to printf.
  12001. 2018-03-14 Yao Qi <qiyao@sourceware.org>
  12002. * MAINTAINERS: Update my email address.
  12003. 2018-03-13 Tom Tromey <tom@tromey.com>
  12004. * machoread.c (macho_check_dsym): Change filenamep to a
  12005. std::string*.
  12006. (macho_symfile_read): Update.
  12007. * symfile.c (load_command): Use std::string.
  12008. 2018-03-12 Andrew Burgess <andrew.burgess@embecosm.com>
  12009. * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
  12010. to error message string.
  12011. (riscv_register_name): Use xsnprintf instead of sprintf.
  12012. (riscv_insn::fetch_instruction): Use gdb_assert instead of
  12013. internal_error.
  12014. (riscv_print_arg_location): Use gdb_assert_not_reached instead of
  12015. error.
  12016. (riscv_push_dummy_call): Likewise.
  12017. 2018-03-12 Tom Tromey <tom@tromey.com>
  12018. * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
  12019. Use gdb::byte_vector.
  12020. * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
  12021. 2018-03-12 Yao Qi <yao.qi@linaro.org>
  12022. * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
  12023. parameter type to readable_regcache.
  12024. * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
  12025. the declaration.
  12026. 2018-03-11 Tom Tromey <tom@tromey.com>
  12027. * dwarf2read.c (struct nextfield): Add initializers.
  12028. (struct nextfnfield): Remove.
  12029. (struct fnfieldlist): Add initializers. Remove "length" and
  12030. "head", use std::vector.
  12031. (struct decl_field_list): Remove.
  12032. (struct field_info): Add initializers.
  12033. <fields, baseclasses>: Now std::vector.
  12034. <nbaseclasses, nfnfields, typedef_field_list_count,
  12035. nested_types_list_count>: Remove.
  12036. (dwarf2_add_field, dwarf2_add_type_defn)
  12037. (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
  12038. (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
  12039. (process_structure_scope): Update.
  12040. 2018-03-11 Tom Tromey <tom@tromey.com>
  12041. * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
  12042. for use by std::sort.
  12043. (build_type_psymtabs_1): Use std::vector.
  12044. 2018-03-09 Eli Zaretskii <eliz@gnu.org>
  12045. * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
  12046. and LIBMPFR in the printed configuration.
  12047. 2018-03-08 Tom Tromey <tom@tromey.com>
  12048. * source.c (get_filename_and_charpos): Use scoped_fd.
  12049. * nto-procfs.c (procfs_open_1): Use scoped_fd.
  12050. (procfs_pidlist): Likewise.
  12051. * procfs.c (proc_get_LDT_entry): Use scoped_fd.
  12052. (iterate_over_mappings): Likewise.
  12053. 2018-03-08 Tom Tromey <tom@tromey.com>
  12054. * infcall.c (struct call_return_meta_info)
  12055. <stack_temporaries_enabled>: Remove.
  12056. (get_call_return_value, call_function_by_hand_dummy): Update.
  12057. * thread.c (disable_thread_stack_temporaries): Remove.
  12058. (enable_thread_stack_temporaries): Remove.
  12059. (thread_stack_temporaries_enabled_p): Return bool.
  12060. (push_thread_stack_temporary, value_in_thread_stack_temporaries)
  12061. (get_last_thread_stack_temporary): Update.
  12062. * eval.c (evaluate_subexp): Update.
  12063. * gdbthread.h (class enable_thread_stack_temporaries): Now a
  12064. class, not a function.
  12065. (value_ptr, value_vec): Remove typedefs.
  12066. (class thread_info) <stack_temporaries_enabled>: Now bool.
  12067. <stack_temporaries>: Now a std::vector.
  12068. (thread_stack_temporaries_enabled_p)
  12069. (value_in_thread_stack_temporaries): Return bool.
  12070. 2018-03-08 Simon Marchi <simon.marchi@ericsson.com>
  12071. * remote.c (putpkt_binary): Fix omitted bytes reporting.
  12072. (getpkt_or_notif_sane_1): Likewise.
  12073. 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
  12074. * build-id.c (build_id_to_debug_bfd): Use std::string.
  12075. 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
  12076. * build-id.c (find_separate_debug_file_by_buildid): Return
  12077. std::string.
  12078. * build-id.h (find_separate_debug_file_by_buildid): Return
  12079. std::string.
  12080. * coffread.c (coff_symfile_read): Adjust to std::string.
  12081. * elfread.c (elf_symfile_read): Adjust to std::string.
  12082. * symfile.c (separate_debug_file_exists): Change parameter to
  12083. std::string.
  12084. (find_separate_debug_file): Return std::string.
  12085. (find_separate_debug_file_by_debuglink): Return std::string.
  12086. * symfile.h (find_separate_debug_file_by_debuglink): Return
  12087. std::string.
  12088. 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
  12089. * common/xml-utils.c (xml_escape_text): Move code to...
  12090. (xml_escape_text_append): ... this new function.
  12091. * common/xml-utils.h (xml_escape_text_append): New declaration.
  12092. * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
  12093. New function.
  12094. (_initialize_xml_utils): register test_xml_escape_text_append as
  12095. a selftest.
  12096. 2018-03-07 Alan Hayward <alan.hayward@arm.com>
  12097. * defs.h: Remove MAX_REGISTER_SIZE.
  12098. * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
  12099. asserts.
  12100. * python/py-unwind.c (pyuw_sniffer): Likewise.
  12101. 2018-03-07 Tom Tromey <tom@tromey.com>
  12102. * linux-tdep.c (linux_info_proc): Update.
  12103. * target.h (struct target_ops) <to_fileio_readlink>: Return
  12104. optional<string>.
  12105. (target_fileio_readlink): Return optional<string>.
  12106. * remote.c (remote_hostio_readlink): Return optional<string>.
  12107. * inf-child.c (inf_child_fileio_readlink): Return
  12108. optional<string>.
  12109. * target.c (target_fileio_readlink): Return optional<string>.
  12110. 2018-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
  12111. * regcache.c (cooked_read_test): Add riscv to the list of
  12112. architectures that have a save_reggroup.
  12113. 2018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
  12114. * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
  12115. value is not a dynamic class object.
  12116. 2018-03-06 Tom Tromey <tom@tromey.com>
  12117. * rust-exp.y: Formatting fixes.
  12118. 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
  12119. * riscv-tdep.c (riscv_register_name): Remove target description
  12120. support.
  12121. (riscv_gdbarch_init): Remove target description check.
  12122. 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
  12123. * riscv-tdep.c: Remove 'Contributed by ...' lines from header
  12124. comment.
  12125. * riscv-tdep.h: Likewise.
  12126. 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
  12127. * riscv-tdep.c (riscv_pseudo_register_read): Delete.
  12128. (riscv_pseudo_register_write): Delete.
  12129. (riscv_gdbarch_init): Remove all use of pseudo registers.
  12130. 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
  12131. * record-btrace.c (btrace_print_lines): Replace cleanup
  12132. parameter with RAII equivalents.
  12133. (btrace_insn_history): Replace cleanup with RAII equivalents.
  12134. * ui-out.h (make_cleanup_ui_out_list_begin_end,
  12135. make_cleanup_ui_out_tuple_begin_end): Remove.
  12136. * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
  12137. make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
  12138. make_cleanup_ui_out_list_begin_end): Remove.
  12139. 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
  12140. * record-btrace.c (record_btrace_maybe_mark_async_event): Change
  12141. parameter types to std::vector. Use bool.
  12142. (record_btrace_wait): Replace VEC(tp_t) with
  12143. std::vector<thread_info *>.
  12144. * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
  12145. 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
  12146. * record-btrace.c (record_btrace_disable_callback): Remove.
  12147. (struct scoped_btrace_disable): New.
  12148. (record_btrace_open): Use scoped_btrace_disable.
  12149. 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
  12150. * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
  12151. reading values from registers.
  12152. 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
  12153. * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
  12154. where appropriate.
  12155. 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
  12156. * riscv-tdep.c (riscv_print_arg_location): Add header comment,
  12157. change parameter type. Use GDB's print functions, and use
  12158. core_addr_to_string where appropriate.
  12159. (riscv_push_dummy_call): Use core_addr_to_string where
  12160. appropriate, update call to riscv_print_arg_location, and reindent
  12161. a few lines.
  12162. (riscv_return_value): Update call to riscv_print_arg_location.
  12163. 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
  12164. Tim Newsome <tim@sifive.com>
  12165. Albert Ou <a0u@eecs.berkeley.edu>
  12166. Darius Rad <darius@bluespec.com>
  12167. * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
  12168. (HFILES_NO_SRCDIR): Add riscv-tdep.h.
  12169. (ALLDEPFILES): Add riscv-tdep.c
  12170. * configure.tgt: Add riscv support.
  12171. * riscv-tdep.c: New file.
  12172. * riscv-tdep.h: New file.
  12173. * NEWS: Mention new target.
  12174. * MAINTAINERS: Add entry for riscv.
  12175. 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
  12176. * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
  12177. fields within aggregates.
  12178. 2018-03-04 Simon Marchi <simon.marchi@polymtl.ca>
  12179. * record-btrace.c (btrace_print_lines): Change type of flags to
  12180. gdb_disassembly_flags.
  12181. 2018-03-04 John Baldwin <jhb@FreeBSD.org>
  12182. * fbsd-nat.c: Include "inf-ptrace.h".
  12183. (USE_SIGTRAP_SIGINFO): Conditionally define.
  12184. [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
  12185. (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
  12186. [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
  12187. function.
  12188. [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
  12189. Likewise.
  12190. [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
  12191. Likewise.
  12192. (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
  12193. "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
  12194. "supports_stopped_by_hw_breakpoint" target methods.
  12195. 2018-03-04 John Baldwin <jhb@FreeBSD.org>
  12196. * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
  12197. * fbsd-nat.c (debug_fbsd_nat): New variable.
  12198. (show_fbsd_nat_debug): New function.
  12199. (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
  12200. (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
  12201. 2018-03-04 John Baldwin <jhb@FreeBSD.org>
  12202. * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
  12203. * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
  12204. prototype.
  12205. * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
  12206. (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
  12207. method.
  12208. 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
  12209. * common/gdb_vecs.c (free_char_ptr_vec): Remove.
  12210. * common/gdb_vecs.h (free_char_ptr_vec): Remove.
  12211. 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
  12212. * charset.c (struct charset_vector): New.
  12213. (charsets): Change type to charset_vector.
  12214. (find_charset_names): Adjust.
  12215. (add_one): Adjust.
  12216. (_initialize_charset): Adjust.
  12217. 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
  12218. * progspace.h (struct program_space) <deleted_solibs>: Change
  12219. type to std::vector<std::string>.
  12220. * progspace.c (clear_program_space_solib_cache): Adjust.
  12221. * breakpoint.c (print_solib_event): Adjust.
  12222. (check_status_catch_solib): Adjust.
  12223. * solib.c (update_solib_list): Adjust.
  12224. * ui-out.h (class ui_out) <field_string>: New overload.
  12225. * ui-out.c (ui_out::field_string): New overload.
  12226. 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
  12227. * progspace.h (struct program_space): Add constructor and
  12228. destructor, initialize fields.
  12229. (add_program_space): Remove.
  12230. * progspace.c (add_program_space): Rename to...
  12231. (program_space::program_space): ... this.
  12232. (release_program_space): Rename to...
  12233. (program_space::~program_space): ... this.
  12234. (delete_program_space): Use delete to delete program_space.
  12235. (initialize_progspace): Use new to allocate program_space.
  12236. * inferior.c (add_inferior_with_spaces): Likewise.
  12237. (clone_inferior_command): Likewise.
  12238. * infrun.c (follow_fork_inferior): Likewise.
  12239. (handle_vfork_child_exec_or_exit): Likewise.
  12240. 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
  12241. * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
  12242. (delim_string_to_char_ptr_vec): Return std::vector of
  12243. gdb::unique_xmalloc_ptr.
  12244. (dirnames_to_char_ptr_vec_append): Take std::vector of
  12245. gdb::unique_xmalloc_ptr.
  12246. (dirnames_to_char_ptr_vec): Return std::vector of
  12247. gdb::unique_xmalloc_ptr.
  12248. * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
  12249. Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
  12250. (delim_string_to_char_ptr_vec): Return an std::vector of
  12251. gdb::unique_xmalloc_ptr, adjust the code.
  12252. (dirnames_to_char_ptr_vec_append): Take an std::vector of
  12253. gdb::unique_xmalloc_ptr, adjust the code.
  12254. (dirnames_to_char_ptr_vec): Return an std::vector of
  12255. gdb::unique_xmalloc_ptr, adjust the code.
  12256. * auto-load.c (auto_load_safe_path_vec): Change type to
  12257. std::vector of gdb::unique_xmalloc_ptr.
  12258. (auto_load_expand_dir_vars): Return an std::vector of
  12259. gdb::unique_xmalloc_ptr, adjust the code.
  12260. (auto_load_safe_path_vec_update): Adjust.
  12261. (filename_is_in_auto_load_safe_path_vec): Adjust.
  12262. (auto_load_objfile_script_1): Adjust.
  12263. * build-id.c (build_id_to_debug_bfd): Adjust.
  12264. * linux-thread-db.c (thread_db_load_search): Adjust.
  12265. * source.c (add_path): Adjust.
  12266. (openp): Adjust.
  12267. * symfile.c (find_separate_debug_file): Adjust.
  12268. * utils.c (do_free_char_ptr_vec): Remove.
  12269. (make_cleanup_free_char_ptr_vec): Remove.
  12270. 2018-03-01 Sergio Durigan Junior <sergiodj@redhat.com>
  12271. PR gdb/22907
  12272. * common/pathstuff.c: Conditionally include "<windows.h>".
  12273. 2018-03-01 Georg Sauthoff <mail@georg.so>
  12274. PR gdb/22888
  12275. * gcore.in: Quote variables and switch interpreter to bash.
  12276. 2018-03-01 Tom Tromey <tom@tromey.com>
  12277. * dwarf2read.c (alloc_discriminant_info): Fix default_index
  12278. assertion. Add assertion for discriminant_index.
  12279. (quirk_rust_enum): Use correct base type name in univariant case.
  12280. 2018-03-01 Simon Marchi <simon.marchi@ericsson.com>
  12281. * record.c (get_call_history_modifiers): Return a
  12282. record_print_flags.
  12283. (cmd_record_call_history): Adjust.
  12284. * record-btrace.c (record_btrace_call_history): Adjust.
  12285. (record_btrace_call_history_range): Adjust.
  12286. (record_btrace_call_history_from): Adjust.
  12287. * target-debug.h (target_debug_print_record_print_flags): New.
  12288. * target-delegates.c: Re-generate.
  12289. * target.c (target_call_history): Change flags type.
  12290. (target_call_history_from): Likewise.
  12291. (target_call_history_range): Likewise.
  12292. * target.h (struct target_ops) <target_call_history>: Likewise.
  12293. (target_call_history_from): Likewise.
  12294. (target_call_history_range): Likewise.
  12295. 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
  12296. Simon Marchi <simon.marchi@polymtl.ca>
  12297. * common/common-utils.c: Include "sys/stat.h".
  12298. (is_regular_file): Move here from "source.c"; change return
  12299. type to "bool".
  12300. * common/common-utils.h (is_regular_file): New prototype.
  12301. * common/pathstuff.c (contains_dir_separator): New function.
  12302. * common/pathstuff.h (contains_dir_separator): New prototype.
  12303. * source.c: Don't include "sys/stat.h".
  12304. (is_regular_file): Move to "common/common-utils.c".
  12305. 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
  12306. * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
  12307. (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
  12308. * auto-load.c: Include "common/pathstuff.h".
  12309. * common/common-def.h (current_directory): Move here.
  12310. * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
  12311. function.
  12312. * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
  12313. prototype.
  12314. * common/pathstuff.c: New file.
  12315. * common/pathstuff.h: New file.
  12316. * compile/compile.c: Include "common/pathstuff.h".
  12317. * defs.h (current_directory): Move to "common/common-defs.h".
  12318. * dwarf2read.c: Include "common/pathstuff.h".
  12319. * exec.c: Likewise.
  12320. * guile/scm-safe-call.c: Likewise.
  12321. * linux-thread-db.c: Likewise.
  12322. * main.c: Likewise.
  12323. * nto-tdep.c: Likewise.
  12324. * objfiles.c: Likewise.
  12325. * source.c: Likewise.
  12326. * symtab.c: Likewise.
  12327. * utils.c: Include "common/pathstuff.h".
  12328. (gdb_realpath): Move to "common/pathstuff.c".
  12329. (gdb_realpath_keepfile): Likewise.
  12330. (gdb_abspath): Likewise.
  12331. * utils.h (gdb_realpath): Move to "common/pathstuff.h".
  12332. (gdb_realpath_keepfile): Likewise.
  12333. (gdb_abspath): Likewise.
  12334. 2018-02-28 John Baldwin <jhb@FreeBSD.org>
  12335. * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
  12336. wildcard process pid for super_resume for kernels with a
  12337. specific bug.
  12338. 2018-02-27 Phil Muldoon <pmuldoon@redhat.com>
  12339. * compile/compile.c (get_args): Add additional comments
  12340. explaining function.
  12341. 2018-02-27 Simon Marchi <simon.marchi@polymtl.ca>
  12342. Tom Tromey <tom@tromey.com>
  12343. * target.h (memory_write_request_s): Remove typedef. Don't define
  12344. VEC.
  12345. (target_write_memory_blocks): Change argument to std::vector.
  12346. (struct memory_write_request): Add constructor.
  12347. * target-memory.c (compare_block_starting_address): Return bool.
  12348. Change argument types.
  12349. (claim_memory): Change arguments to use std::vector.
  12350. (split_regular_and_flash_blocks, blocks_to_erase)
  12351. (compute_garbled_blocks): Likewise.
  12352. (cleanup_request_data, cleanup_write_requests_vector): Remove.
  12353. (target_write_memory_blocks): Change argument to std::vector.
  12354. * symfile.c (struct load_section_data): Add constructor and
  12355. destructor. Use std::vector for "requests".
  12356. (struct load_progress_data): Add initializers.
  12357. (load_section_callback): Update. Use "new".
  12358. (clear_memory_write_data): Remove.
  12359. (generic_load): Update.
  12360. 2018-02-27 Alan Hayward <alan.hayward@arm.com>
  12361. * arch/aarch64.h: Use common/tdesc.h.
  12362. 2018-02-26 Maciej W. Rozycki <macro@mips.com>
  12363. * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
  12364. architecture with a 64-bit ABI.
  12365. 2018-02-26 Maciej W. Rozycki <macro@mips.com>
  12366. * mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
  12367. ahead of target description loading.
  12368. 2018-02-26 Tom Tromey <tom@tromey.com>
  12369. * stack.c (backtrace_command_1): Update.
  12370. * python/python-internal.h (gdbpy_apply_frame_filter): Change type
  12371. of "flags".
  12372. * python/py-framefilter.c (py_print_frame)
  12373. (gdbpy_apply_frame_filter): Change type of "flags".
  12374. * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
  12375. of "flags".
  12376. (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
  12377. (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
  12378. * extension.h (enum frame_filter_flag): Rename from
  12379. frame_filter_flags.
  12380. (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
  12381. (apply_ext_lang_frame_filter): Change type of "flags".
  12382. * extension.c (apply_ext_lang_frame_filter): Change type of
  12383. "flags".
  12384. * extension-priv.h (struct extension_language_ops)
  12385. <apply_frame_filter>: Change type of "flags".
  12386. 2018-02-26 Tom Tromey <tom@tromey.com>
  12387. PR python/16497:
  12388. * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix
  12389. off-by-one in py_end computation.
  12390. * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
  12391. PRINT_MORE_FRAMES.
  12392. * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
  12393. constant.
  12394. 2018-02-26 Tom Tromey <tom@tromey.com>
  12395. * dwarf2read.c (struct variant_field): New.
  12396. (struct nextfield) <variant>: New field.
  12397. (dwarf2_add_field): Handle DW_TAG_variant_part.
  12398. (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
  12399. discriminated union.
  12400. (read_structure_type): Handle DW_TAG_variant_part.
  12401. (handle_struct_member_die): New function, extracted from
  12402. process_structure_scope. Handle DW_TAG_variant.
  12403. (process_structure_scope): Handle discriminated unions. Call
  12404. handle_struct_member_die.
  12405. 2018-02-26 Tom Tromey <tom@tromey.com>
  12406. * rust-lang.h (rust_last_path_segment): Declare.
  12407. * rust-lang.c (rust_last_path_segment): Now public. Change
  12408. contract.
  12409. (struct disr_info): Remove.
  12410. (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
  12411. (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
  12412. (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
  12413. (rust_enum_p, rust_enum_variant): New function.
  12414. (rust_underscore_fields): Remove "offset" parameter.
  12415. (rust_print_enum): New function.
  12416. (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
  12417. <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
  12418. (rust_print_struct_def): Add "for_rust_enum" parameter. Handle
  12419. enums.
  12420. (rust_internal_print_type): New function, from rust_print_type.
  12421. Remove enum code.
  12422. (rust_print_type): Call rust_internal_print_type.
  12423. (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
  12424. Update enum handling.
  12425. * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
  12426. (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
  12427. (rust_union_quirks): New functions.
  12428. (process_full_comp_unit, process_full_type_unit): Call
  12429. rust_union_quirks.
  12430. (process_structure_scope): Update rust_unions if necessary.
  12431. 2018-02-26 Tom Tromey <tom@tromey.com>
  12432. * value.h (value_union_variant): Declare.
  12433. * valops.c (value_union_variant): New function.
  12434. * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
  12435. (struct discriminant_info): New.
  12436. (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
  12437. enumerator.
  12438. (struct main_type) <flag_discriminated_union>: New field.
  12439. 2018-02-26 Tom Tromey <tom@tromey.com>
  12440. * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
  12441. unittests/unpack-selftests.c.
  12442. * unittests/unpack-selftests.c: New file.
  12443. * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
  12444. 2018-02-26 Yao Qi <yao.qi@linaro.org>
  12445. * dwarf2read.c (struct partial_die_info) <read>: New method.
  12446. (read_partial_die): Remove the declaration.
  12447. (load_partial_dies): Update.
  12448. (partial_die_info::partial_die_info):
  12449. (read_partial_die): Change it to partial_die_info::read.
  12450. 2018-02-26 Yao Qi <yao.qi@linaro.org>
  12451. * dwarf2read.c (struct partial_die_info) <fixup>: New method.
  12452. (fixup_partial_die): Remove declaration.
  12453. (scan_partial_symbols): Update.
  12454. (partial_die_parent_scope): Likewise.
  12455. (partial_die_full_name): Likewise.
  12456. (fixup_partial_die): Change it to partial_die_info::fixup.
  12457. 2018-02-26 Yao Qi <yao.qi@linaro.org>
  12458. * dwarf2read.c (read_partial_die): Update the declaration.
  12459. (load_partial_dies): Caller update.
  12460. (read_partial_die): Remove one argument abbrev_len.
  12461. 2018-02-26 Yao Qi <yao.qi@linaro.org>
  12462. * dwarf2read.c (struct partial_die_info): Add ctor, delete
  12463. assignment operator.
  12464. (load_partial_dies): Use ctor and copy ctor.
  12465. (read_partial_die): Update.
  12466. (dwarf2_cu::find_partial_die): Use ctor.
  12467. 2018-02-26 Yao Qi <yao.qi@linaro.org>
  12468. * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
  12469. (find_partial_die_in_comp_unit): Change it to
  12470. dwarf2_cu::find_partial_die.
  12471. (find_partial_die): Update.
  12472. 2018-02-26 Yao Qi <yao.qi@linaro.org>
  12473. * dwarf2read.c (read_partial_die): Remove the code checking abbrev
  12474. is NULL.
  12475. 2018-02-26 Yao Qi <yao.qi@linaro.org>
  12476. * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
  12477. 2018-02-26 Alan Hayward <alan.hayward@arm.com>
  12478. * arch/amd64.h: Use common/tdesc.h.
  12479. * arch/i386.c: Likewise.
  12480. * arch/i386.h: Likewise.
  12481. * arch/tic6x.c: Likewise.
  12482. * arch/tdesc.h: Move file from here...
  12483. * common/tdesc.h: ...to here.
  12484. * features/aarch64-core.c: Regenerate.
  12485. * features/aarch64-fpu.c: Regenerate.
  12486. * features/i386/32bit-avx.c: Regenerate.
  12487. * features/i386/32bit-avx512.c: Regenerate.
  12488. * features/i386/32bit-core.c: Regenerate.
  12489. * features/i386/32bit-linux.c: Regenerate.
  12490. * features/i386/32bit-mpx.c: Regenerate.
  12491. * features/i386/32bit-pkeys.c: Regenerate.
  12492. * features/i386/32bit-sse.c: Regenerate.
  12493. * features/i386/64bit-avx.c: Regenerate.
  12494. * features/i386/64bit-avx512.c: Regenerate.
  12495. * features/i386/64bit-core.c: Regenerate.
  12496. * features/i386/64bit-linux.c: Regenerate.
  12497. * features/i386/64bit-mpx.c: Regenerate.
  12498. * features/i386/64bit-pkeys.c: Regenerate.
  12499. * features/i386/64bit-segments.c: Regenerate.
  12500. * features/i386/64bit-sse.c: Regenerate.
  12501. * features/i386/x32-core.c: Regenerate.
  12502. * features/tic6x-c6xp.c: Regenerate.
  12503. * features/tic6x-core.c: Regenerate.
  12504. * features/tic6x-gp.c: Regenerate.
  12505. * target-descriptions.c: Use common/tdesc.h.
  12506. * target-descriptions.h: Likewise.
  12507. 2018-02-24 Tom Tromey <tom@tromey.com>
  12508. * linux-thread-db.c (try_thread_db_load_from_pdir_1)
  12509. (try_thread_db_load_from_dir, thread_db_load_search): Use
  12510. std::string.
  12511. (info_auto_load_libthread_db_compare): Return bool. Change
  12512. argument types.
  12513. (info_auto_load_libthread_db): Use std::vector, std::string.
  12514. Remove cleanups.
  12515. 2018-02-24 Tom Tromey <tom@tromey.com>
  12516. * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
  12517. std::string.
  12518. * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
  12519. std::string*.
  12520. * gdbarch.c: Rebuild.
  12521. * gdbarch.h: Rebuild.
  12522. * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
  12523. * arch-utils.h (default_fast_tracepoint_valid_at): Update.
  12524. * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
  12525. std::string*.
  12526. 2018-02-23 Simon Marchi <simon.marchi@polymtl.ca>
  12527. * gdbtypes.h (sect_offset): Change type to uint64_t.
  12528. (sect_offset_str): New function.
  12529. * dwarf2read.c (create_addrmap_from_aranges): Use
  12530. sect_offset_str.
  12531. (error_check_comp_unit_head): Likewise.
  12532. (create_debug_type_hash_table): Likewise.
  12533. (read_cutu_die_from_dwo): Likewise.
  12534. (init_cutu_and_read_dies): Likewise.
  12535. (init_cutu_and_read_dies_no_follow): Likewise.
  12536. (process_psymtab_comp_unit_reader): Likewise.
  12537. (partial_die_parent_scope): Likewise.
  12538. (peek_die_abbrev): Likewise.
  12539. (process_queue): Likewise.
  12540. (dwarf2_physname): Likewise.
  12541. (read_namespace_alias): Likewise.
  12542. (read_import_statement): Likewise.
  12543. (create_dwo_cu_reader): Likewise.
  12544. (create_cus_hash_table): Likewise.
  12545. (lookup_dwo_cutu): Likewise.
  12546. (inherit_abstract_dies): Likewise.
  12547. (read_func_scope): Likewise.
  12548. (read_call_site_scope): Likewise.
  12549. (dwarf2_add_member_fn): Likewise.
  12550. (read_common_block): Likewise.
  12551. (read_module_type): Likewise.
  12552. (read_typedef): Likewise.
  12553. (read_subrange_type): Likewise.
  12554. (load_partial_dies): Likewise.
  12555. (read_partial_die): Likewise.
  12556. (find_partial_die): Likewise.
  12557. (read_str_index): Likewise.
  12558. (dwarf2_string_attr): Likewise.
  12559. (build_error_marker_type): Likewise.
  12560. (lookup_die_type): Likewise.
  12561. (dump_die_shallow): Likewise.
  12562. (follow_die_ref): Likewise.
  12563. (dwarf2_fetch_die_loc_sect_off): Likewise.
  12564. (dwarf2_fetch_constant_bytes): Likewise.
  12565. (follow_die_sig): Likewise.
  12566. (get_signatured_type): Likewise.
  12567. (get_DW_AT_signature_type): Likewise.
  12568. (dwarf2_find_containing_comp_unit): Likewise.
  12569. (set_die_type): Likewise.
  12570. 2018-02-21 John Baldwin <jhb@FreeBSD.org>
  12571. * arch/aarch64.c: Include "common-defs.h".
  12572. * arch/amd64.c: Likewise.
  12573. * arch/i386.c: Likewise.
  12574. 2018-02-21 Tom Tromey <tom@tromey.com>
  12575. * value.h: (extract_field_op): Update.
  12576. * eval.c (extract_field_op): Return a const char *.
  12577. * expression.h (parse_expression_for_completion): Update.
  12578. * completer.c (complete_expression): Update.
  12579. (add_struct_fields): Make fieldname const.
  12580. * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
  12581. (mark_completion_tag, parse_exp_in_context_1): Update.
  12582. (parse_expression_for_completion): Change "name" to
  12583. unique_xmalloc_ptr*.
  12584. 2018-02-21 Tom Tromey <tom@tromey.com>
  12585. * infcall.c (call_function_by_hand_dummy): Use std::vector.
  12586. 2018-02-21 Yao Qi <yao.qi@linaro.org>
  12587. * avr-tdep.c (avr_read_pc): Change parameter type to
  12588. readable_regcache.
  12589. * gdbarch.sh (read_pc): Likewise.
  12590. * gdbarch.c: Re-generated.
  12591. * gdbarch.h: Re-generated.
  12592. * hppa-tdep.c (hppa_read_pc): Change parameter type to
  12593. readable_regcache.
  12594. * ia64-tdep.c (ia64_read_pc): Likewise.
  12595. * mips-tdep.c (mips_read_pc): Likewise.
  12596. * spu-tdep.c (spu_read_pc): Likewise.
  12597. 2018-02-21 Yao Qi <yao.qi@linaro.org>
  12598. * Makefile.in (COMMON_SFILES): Add regcache-dump.c
  12599. * regcache-dump.c: New file.
  12600. * regcache.c: Move register_dump to regcache-dump.c.
  12601. (maintenance_print_registers): Likewise.
  12602. (maintenance_print_raw_registers): Likewise.
  12603. (maintenance_print_cooked_registers): Likewise.
  12604. (maintenance_print_register_groups): Likewise.
  12605. (maintenance_print_remote_registers): Likewise.
  12606. (_initialize_regcache): Likewise.
  12607. * regcache.h (register_dump): Moved from regcache.c.
  12608. 2018-02-21 Yao Qi <yao.qi@linaro.org>
  12609. * regcache.c (regcache::regcache): Update.
  12610. (regcache::invalidate): Move it to detached_regcache::invalidate.
  12611. (get_thread_arch_aspace_regcache): Update.
  12612. (regcache::raw_update): Update.
  12613. (regcache::cooked_read): Remove some code.
  12614. (regcache::cooked_read_value): Likewise.
  12615. (regcache::raw_write): Remove assert on m_readonly_p.
  12616. (regcache::raw_supply_integer): Move it to
  12617. detached_regcache::raw_supply_integer.
  12618. (regcache::raw_supply_zeroed): Likewise.
  12619. * regcache.h (detached_regcache) <raw_supply_integer>: New
  12620. declaration.
  12621. <raw_supply_zeroed, invalidate>: Likewise.
  12622. (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
  12623. <invalidate>: Likewise.
  12624. <m_readonly_p>: Removed.
  12625. 2018-02-21 Yao Qi <yao.qi@linaro.org>
  12626. * infcmd.c (get_return_value): Let stop_regs point to
  12627. get_current_regcache.
  12628. * regcache.c (regcache::regcache): Remove.
  12629. (register_dump_reg_buffer): New class.
  12630. (regcache_print): Adjust.
  12631. * regcache.h (regcache): Remove constructors.
  12632. 2018-02-21 Yao Qi <yao.qi@linaro.org>
  12633. * regcache.c (class register_dump): New class.
  12634. (register_dump_regcache, register_dump_none): New class.
  12635. (register_dump_remote, register_dump_groups): New class.
  12636. (regcache_print): Update.
  12637. * regcache.h (regcache_dump_what): Move it to regcache.c.
  12638. (regcache) <dump>: Remove.
  12639. 2018-02-21 Yao Qi <yao.qi@linaro.org>
  12640. * jit.c (struct jit_unwind_private) <regcache>: Change its type to
  12641. reg_buffer_rw *.
  12642. (jit_unwind_reg_set_impl): Call raw_supply.
  12643. (jit_frame_sniffer): Use reg_buffer_rw.
  12644. * record-full.c (record_full_core_regbuf): Change its type.
  12645. (record_full_core_open_1): Use reg_buffer_rw.
  12646. (record_full_close): Likewise.
  12647. (record_full_core_fetch_registers): Use regcache->raw_supply.
  12648. (record_full_core_store_registers): Likewise.
  12649. * regcache.c (regcache::get_register_status): Move it to
  12650. reg_buffer.
  12651. (regcache_raw_set_cached_value): Remove.
  12652. (regcache::raw_set_cached_value): Remove.
  12653. (regcache::raw_write): Call raw_supply.
  12654. (regcache::raw_supply): Move it to reg_buffer_rw.
  12655. * regcache.h (regcache_raw_set_cached_value): Remove.
  12656. (reg_buffer_rw): New class.
  12657. 2018-02-21 Yao Qi <yao.qi@linaro.org>
  12658. * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
  12659. readonly_detached_regcache.
  12660. (dummy_frame_prev_register): Use regcache->cooked_read.
  12661. * frame.c (frame_save_as_regcache): Change return type.
  12662. (frame_pop): Update.
  12663. * frame.h (frame_save_as_regcache): Update declaration.
  12664. * inferior.h (get_infcall_suspend_state_regcache): Update
  12665. declaration.
  12666. * infrun.c (infcall_suspend_state) <registers>: use
  12667. readonly_detached_regcache.
  12668. (save_infcall_suspend_state): Don't use regcache_dup.
  12669. (get_infcall_suspend_state_regcache): Change return type.
  12670. * linux-fork.c (struct fork_info) <savedregs>: Change to
  12671. readonly_detached_regcache.
  12672. <pc>: New field.
  12673. (fork_save_infrun_state): Don't use regcache_dup.
  12674. (info_checkpoints_command): Adjust.
  12675. * mi/mi-main.c (register_changed_p): Update declaration.
  12676. (mi_cmd_data_list_changed_registers): Use
  12677. readonly_detached_regcache.
  12678. (register_changed_p): Change parameter type to
  12679. readonly_detached_regcache.
  12680. * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
  12681. readonly_detached_regcache.
  12682. (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
  12683. * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
  12684. New.
  12685. (regcache::save): Move it to reg_buffer.
  12686. (regcache::restore): Change parameter type.
  12687. (regcache_dup): Remove.
  12688. * regcache.h (reg_buffer) <save>: New method.
  12689. (readonly_detached_regcache): New class.
  12690. * spu-tdep.c (spu2ppu_cache) <regcache>: Use
  12691. readonly_detached_regcache.
  12692. (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
  12693. 2018-02-21 Yao Qi <yao.qi@linaro.org>
  12694. * frame.c (frame_save_as_regcache): Use regcache method save.
  12695. (frame_pop): Use regcache method restore.
  12696. * infrun.c (restore_infcall_suspend_state): Likewise.
  12697. * linux-fork.c (fork_load_infrun_state): Likewise.
  12698. * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
  12699. save.
  12700. * regcache.c (regcache_save): Remove.
  12701. (regcache::restore): More asserts.
  12702. (regcache_cpy): Remove.
  12703. * regcache.h (regcache_save): Remove the declaration.
  12704. (regcache::restore): Move from private to public.
  12705. Remove the friend declaration of regcache_cpy.
  12706. (regcache_cpy): Remove declaration.
  12707. 2018-02-21 Yao Qi <yao.qi@linaro.org>
  12708. * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
  12709. parameter type to 'readable_regcache *'.
  12710. * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
  12711. * arm-tdep.c (arm_neon_quad_read): Likewise.
  12712. (arm_pseudo_read): Likewise.
  12713. * avr-tdep.c (avr_pseudo_register_read): Likewise.
  12714. * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
  12715. * frv-tdep.c (frv_pseudo_register_read): Likewise.
  12716. * gdbarch.c: Re-generated.
  12717. * gdbarch.h: Re-generated.
  12718. * gdbarch.sh (pseudo_register_read): Change parameter type to
  12719. 'readable_regcache *'.
  12720. (pseudo_register_read_value): Likewise.
  12721. * h8300-tdep.c (pseudo_from_raw_register): Likewise.
  12722. (h8300_pseudo_register_read): Likewise.
  12723. * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
  12724. * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
  12725. (i386_pseudo_register_read_into_value): Likewise.
  12726. (i386_pseudo_register_read_value): Likewise.
  12727. * i386-tdep.h (i386_pseudo_register_read_into_value): Update
  12728. declaration.
  12729. * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
  12730. * m32c-tdep.c (m32c_raw_read): Likewise.
  12731. (m32c_read_flg): Likewise.
  12732. (m32c_banked_register): Likewise.
  12733. (m32c_banked_read): Likewise.
  12734. (m32c_sb_read): Likewise.
  12735. (m32c_part_read): Likewise.
  12736. (m32c_cat_read): Likewise.
  12737. (m32c_r3r2r1r0_read): Likewise.
  12738. (m32c_pseudo_register_read): Likewise.
  12739. * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
  12740. * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
  12741. (mep_pseudo_cr64_read): Likewise.
  12742. (mep_pseudo_register_read): Likewise.
  12743. * mips-tdep.c (mips_pseudo_register_read): Likewise.
  12744. * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
  12745. * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
  12746. * regcache.c (regcache::raw_read): Move it to readable_regcache.
  12747. (regcache::cooked_read): Likewise.
  12748. (regcache::cooked_read_value): Likewise.
  12749. (regcache_cooked_read_signed):
  12750. (regcache::cooked_read): Likewise.
  12751. * regcache.h (readable_regcache): New class.
  12752. (regcache): Inherit readable_regcache. Move some methods to
  12753. readable_regcache.
  12754. * rl78-tdep.c (rl78_pseudo_register_read): Change
  12755. parameter type to 'readable_regcache *'.
  12756. * rs6000-tdep.c (do_regcache_raw_read): Remove.
  12757. (e500_pseudo_register_read): Change parameter type to
  12758. 'readable_regcache *'.
  12759. (dfp_pseudo_register_read): Likewise.
  12760. (vsx_pseudo_register_read): Likewise.
  12761. (efpr_pseudo_register_read): Likewise.
  12762. * s390-tdep.c (s390_pseudo_register_read): Likewise.
  12763. * sh-tdep.c (sh_pseudo_register_read): Likewise.
  12764. * sh64-tdep.c (pseudo_register_read_portions): Likewise.
  12765. (sh64_pseudo_register_read): Likewise.
  12766. * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
  12767. * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
  12768. * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
  12769. (spu_pseudo_register_read): Likewise.
  12770. * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
  12771. (xtensa_pseudo_register_read): Likewise.
  12772. 2018-02-21 Yao Qi <yao.qi@linaro.org>
  12773. * regcache.c (regcache::regcache): Call reg_buffer ctor.
  12774. (regcache::arch): Move it to reg_buffer::arch.
  12775. (regcache::register_buffer): Likewise.
  12776. (regcache::assert_regnum): Likewise.
  12777. (regcache::num_raw_registers): Likewise.
  12778. * regcache.h (reg_buffer): New class.
  12779. (regcache): Inherit reg_buffer.
  12780. 2018-02-20 Simon Marchi <simon.marchi@ericsson.com>
  12781. * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
  12782. gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
  12783. 2018-02-20 Markus Metzger <markus.t.metzger@intel.com>
  12784. * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
  12785. 2018-02-19 Alan Hayward <alan.hayward@arm.com>
  12786. * Makefile.in: (COMMON_SFILES): Add common/*.c files.
  12787. (SFILES): Remove common/*.c files.
  12788. (COMMON_OBS): Remove some *.o files built from common/*.c files.
  12789. * common/common.host: Add common reference.
  12790. * configure.ac: Likewise.
  12791. * configure: Regenerate.
  12792. 2018-02-16 Yao Qi <yao.qi@linaro.org>
  12793. * block.c (block_namespace_info): Inherit allocate_on_obstack.
  12794. (block_initialize_namespace): Use new.
  12795. * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
  12796. (dwarf2_free_objfile): Use delete.
  12797. * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
  12798. (copy_type_recursive): Use new.
  12799. * gdb_obstack.h (allocate_on_obstack): New.
  12800. 2018-02-15 Yao Qi <yao.qi@linaro.org>
  12801. PR gdb/22849
  12802. * inferior.c (exit_inferior_1): Reset inf->control.
  12803. 2018-02-15 Joel Brobecker <brobecker@adacore.com>
  12804. * ada-lang.c (ada_to_fixed_value_create): Delete advance
  12805. declaration.
  12806. 2018-02-14 Pedro Alves <palves@redhat.com>
  12807. * frame-unwind.c (frame_unwind_try_unwinder): Always call
  12808. frame_cleanup_after_sniffer on exception.
  12809. 2018-02-14 Tom Tromey <tom@tromey.com>
  12810. * solist.h (struct target_so_ops) <bfd_open>: Make pathname
  12811. const.
  12812. (solib_bfd_open): Make pathname const.
  12813. * solib.c (solib_bfd_open): Make pathname const.
  12814. * solib-spu.c (spu_bfd_fopen): Make name const.
  12815. (spu_bfd_open): Make pathname const.
  12816. * solib-darwin.c (darwin_bfd_open): Make pathname const.
  12817. * solib-aix.c (solib_aix_bfd_open): Make pathname const.
  12818. 2018-02-14 Tom Tromey <tom@tromey.com>
  12819. * symfile.c (symfile_bfd_open): Update.
  12820. * source.h (openp, source_full_path_of, find_and_open_source):
  12821. Change argument type to unique_xmalloc_ptr.
  12822. * source.c (openp): Take a unique_xmalloc_ptr.
  12823. (source_full_path_of, find_and_open_source): Likewise.
  12824. (open_source_file, symtab_to_fullname): Update.
  12825. * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
  12826. unique_xmalloc_ptr.
  12827. * solib.c (solib_find_1): Use unique_xmalloc_ptr.
  12828. (exec_file_find): Update.
  12829. * psymtab.c (psymtab_to_fullname): Update.
  12830. * nto-tdep.h (nto_find_and_open_solib): Update.
  12831. * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
  12832. unique_xmalloc_ptr.
  12833. * exec.c (exec_file_attach): Update.
  12834. * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
  12835. * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
  12836. 2018-02-14 Tom Tromey <tom@tromey.com>
  12837. * solib.c: Include source.h.
  12838. * nto-tdep.c: Include source.h.
  12839. * mi/mi-cmd-env.c: Include source.h.
  12840. * infcmd.c: Include source.h.
  12841. * exec.c: Include source.h.
  12842. * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
  12843. (add_path, directory_switch, source_path, init_source_path): Move
  12844. declarations...
  12845. * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
  12846. (add_path, directory_switch, source_path, init_source_path):
  12847. ...here.
  12848. 2018-02-14 Tom Tromey <tom@tromey.com>
  12849. * solist.h (exec_file_find, solib_find): Return
  12850. unique_xmalloc_ptr.
  12851. (solib_bfd_fopen): Take a const char *.
  12852. * solib.c (solib_find_1): Return unique_xmalloc_ptr.
  12853. (exec_file_find, solib_find): Likewise.
  12854. (solib_bfd_fopen): Do not take ownership of "pathname".
  12855. (solib_bfd_open): Use unique_xmalloc_ptr.
  12856. * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
  12857. * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
  12858. * infrun.c (follow_exec): Use unique_xmalloc_ptr.
  12859. * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
  12860. 2018-02-14 Joel Brobecker <brobecker@adacore.com>
  12861. * ada-lang.c (name_match_type_from_name): Remove reference to
  12862. ada_name_for_lookup in function's documentation.
  12863. * ada-lang.h (ada_name_for_lookup): Delete declaration.
  12864. 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
  12865. * defs.h (enum openp_flags): New enum.
  12866. (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
  12867. Move to enum openp_flags.
  12868. (openp_flags): New enum flags.
  12869. (openp): Change parameter type to openp_flags.
  12870. * source.c (openp): Change parameter type to openp_flags.
  12871. * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
  12872. * dwarf2read.c (try_open_dwop_file): Use openp_flags.
  12873. 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
  12874. * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
  12875. per-command.
  12876. 2018-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
  12877. * dwarf2read.c (dwarf2_release_queue): Delete function, move body
  12878. into...
  12879. (class dwarf2_queue_guard): ...the destructor of this new class.
  12880. (dw2_do_instantiate_symtab): Create instance of the new class
  12881. dwarf2_queue_guard, remove cleanup.
  12882. 2018-02-09 Tom Tromey <tom@tromey.com>
  12883. * source.c (find_source_lines): Don't reference past the end of
  12884. the vector.
  12885. 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
  12886. * remote.c (remote_btrace_maybe_reopen): Change error message.
  12887. * btrace.c (btrace_enable): Likewise.
  12888. (parse_xml_btrace): Likewise.
  12889. (parse_xml_btrace_conf): Likewise.
  12890. 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
  12891. * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
  12892. (linux_enable_pt, linux_enable_bts): Call
  12893. diagnose_perf_event_open_fail.
  12894. 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
  12895. * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
  12896. Remove parameter and change return type. Update callers. Move it.
  12897. (linux_enable_bts, linux_enable_pt): Improve error message.
  12898. (linux_enable_pt): Remove zero buffer size check.
  12899. (linux_enable_btrace): Improve error messages. Remove NULL return
  12900. check.
  12901. 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
  12902. * btrace.c (btrace_enable): Remove target_supports_btrace call.
  12903. * nat/linux-btrace.c (perf_event_pt_event_type): Move.
  12904. (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
  12905. (linux_supports_pt, linux_supports_btrace): Remove.
  12906. (linux_enable_bts): Call cpu_supports_bts.
  12907. * nat/linux-btrace.h (linux_supports_btrace): Remove.
  12908. * remote.c (remote_supports_btrace): Remove.
  12909. (init_remote_ops): Remove remote_supports_btrace.
  12910. * target-delegates.c: Regenerated.
  12911. * target.c (target_supports_btrace): Remove.
  12912. * target.h (target_ops) <to_supports_btrace>: Remove
  12913. (target_supports_btrace): Remove.
  12914. * x86-linux-nat.c (x86_linux_create_target): Remove
  12915. linux_supports_btrace.
  12916. 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
  12917. * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
  12918. btrace failed.
  12919. * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
  12920. exception and use message in own exception.
  12921. 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
  12922. * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
  12923. (perf_event_pt_event_type): Use gdb_file_up.
  12924. (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
  12925. scoped_fd, and scoped_mmap.
  12926. 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
  12927. * common/scoped_mmap.h: New.
  12928. * unittests/scoped_mmap-selftest.c: New.
  12929. * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
  12930. unittests/scoped_mmap-selftest.c.
  12931. 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
  12932. * common/scoped_fd.h: New.
  12933. * unittests/scoped_fd-selftest.c: New.
  12934. * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
  12935. unittests/scoped_fd-selftest.c.
  12936. 2018-02-09 Tom Tromey <tom@tromey.com>
  12937. * auto-load.c (auto_load_section_scripts): Use
  12938. gdb::unique_xmalloc_ptr.
  12939. 2018-02-09 Tom Tromey <tom@tromey.com>
  12940. * auto-load.c (execute_script_contents): Use std::string.
  12941. 2018-02-09 Joel Brobecker <brobecker@adacore.com>
  12942. * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
  12943. Python function, rather than a new command.
  12944. 2018-02-08 Tom Tromey <tom@tromey.com>
  12945. * solib.c (solib_find_1): Use std::string.
  12946. (solib_bfd_fopen): Use unique_xmalloc_ptr.
  12947. 2018-02-08 Tom Tromey <tom@tromey.com>
  12948. * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
  12949. 2018-02-08 Tom Tromey <tom@tromey.com>
  12950. * source.c (find_source_lines): Use gdb::def_vector.
  12951. 2018-02-08 Tom Tromey <tom@tromey.com>
  12952. * macrocmd.c (struct temporary_macro_definition): New.
  12953. (macro_define_command): Use temporary_macro_definition. Remove
  12954. cleanups.
  12955. (free_macro_definition_ptr): Remove.
  12956. 2018-02-08 Tom Tromey <tom@tromey.com>
  12957. * macroexp.c (maybe_expand): Use std::string.
  12958. 2018-02-08 Tom Tromey <tom@tromey.com>
  12959. * macroexp.c (struct macro_buffer): Add initializers for some
  12960. members.
  12961. (init_buffer, init_shared_buffer, free_buffer)
  12962. (free_buffer_return_text): Remove.
  12963. (macro_buffer): New constructors.
  12964. (~macro_buffer): New destructor.
  12965. (macro_buffer::set_shared): New method.
  12966. (macro_buffer::resize_buffer, macro_buffer::appendc)
  12967. (macro_buffer::appendmem): Now methods, not free functions.
  12968. (set_token, append_tokens_without_splicing, stringify)
  12969. (macro_stringify): Update.
  12970. (gather_arguments): Change return type. Remove argc_p argument,
  12971. add args_ptr argument. Use std::vector.
  12972. (substitute_args): Remove argc argument. Accept std::vector.
  12973. (expand): Update. Use std::vector.
  12974. (scan, macro_expand, macro_expand_next): Update.
  12975. 2018-02-08 Tom Tromey <tom@tromey.com>
  12976. * symtab.c (default_collect_symbol_completion_matches_break_on):
  12977. Use unique_xmalloc_ptr.
  12978. * macroscope.h: (sal_macro_scope, user_macro_scope)
  12979. (default_macro_scope): Return unique_xmalloc_ptr.
  12980. * macroscope.c (sal_macro_scope, user_macro_scope)
  12981. (default_macro_scope): Return unique_xmalloc_ptr.
  12982. * macroexp.h (macro_expand, macro_expand_once): Return
  12983. unique_xmalloc_ptr.
  12984. * macroexp.c (macro_expand, macro_expand_once): Return
  12985. unique_xmalloc_ptr.
  12986. * macrocmd.c (macro_expand_command, macro_expand_once_command)
  12987. (info_macro_command, info_macros_command): Use
  12988. unique_xmalloc_ptr.
  12989. * compile/compile-c-support.c (write_macro_definitions): Use
  12990. unique_xmalloc_ptr.
  12991. * c-exp.y (c_parse): Use unique_xmalloc_ptr.
  12992. 2018-02-07 Simon Marchi <simon.marchi@ericsson.com>
  12993. * value.c (value_static_field): Assign field type instead of
  12994. containing type when returning an optimized out value.
  12995. 2018-02-06 Yao Qi <yao.qi@linaro.org>
  12996. * ft32-tdep.c (ft32_read_pc): Remove.
  12997. (ft32_write_pc): Remove.
  12998. (ft32_gdbarch_init): Update.
  12999. * m32r-tdep.c (m32r_read_pc): Remove.
  13000. (m32r_gdbarch_init): Update.
  13001. * mep-tdep.c (mep_read_pc): Remove.
  13002. (mep_gdbarch_init): Update.
  13003. * microblaze-tdep.c (microblaze_write_pc): Remove.
  13004. (microblaze_gdbarch_init): Update.
  13005. * mn10300-tdep.c (mn10300_read_pc): Remove.
  13006. (mn10300_write_pc): Remove.
  13007. (mn10300_gdbarch_init): Update.
  13008. * moxie-tdep.c (moxie_read_pc): Remove.
  13009. (moxie_write_pc): Remove.
  13010. (moxie_gdbarch_init): Update.
  13011. 2018-02-06 Yao Qi <yao.qi@linaro.org>
  13012. * expprint.c (print_subexp_standard): Handle
  13013. OP_F77_UNDETERMINED_ARGLIST.
  13014. (dump_subexp_body_standard): Likewise.
  13015. 2018-02-05 Alan Hayward <alan.hayward@arm.com>
  13016. * target-descriptions.c (tdesc_element_visitor) Add empty
  13017. implementations.
  13018. (tdesc_type): Move make_gdb_type from here.
  13019. (tdesc_type_builtin): Likewise.
  13020. (tdesc_type_vector): Likewise.
  13021. (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
  13022. (make_gdb_type_struct): Move from tdesc_type_with_fields.
  13023. (make_gdb_type_union): Likewise.
  13024. (make_gdb_type_flags): Likewise.
  13025. (make_gdb_type_enum): Likewise.
  13026. (make_gdb_type): New function.
  13027. (tdesc_register_type): Use static make_gdb_type.
  13028. 2018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com>
  13029. * infcmd.c (default_print_one_register_info): Align natural-format
  13030. column values consistently one under another.
  13031. (pad_to_column): New function.
  13032. 2018-02-05 Joel Brobecker <brobecker@adacore.com>
  13033. * dwarf2read.c (dwarf2_physname): Move commment.
  13034. 2018-02-01 Leszek Swirski <leszeks@google.com>
  13035. * varobj.c (varobj_formatted_print_options): Allow recursive
  13036. pretty printing if pretty printing is enabled.
  13037. 2018-02-01 Leszek Swirski <leszeks@google.com>
  13038. * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
  13039. names after a structop as a filename.
  13040. 2018-02-01 Yao Qi <yao.qi@linaro.org>
  13041. * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
  13042. (arm_record_coproc_data_proc): Likewise.
  13043. 2018-02-01 Yao Qi <yao.qi@linaro.org>
  13044. * arm-tdep.c (arm_record_extension_space): Change ret to signed.
  13045. 2018-01-31 Nikola Prica <nikola.prica@rt-rk.com>
  13046. * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
  13047. assign shifted lr_reg to fdata->lr_register when lr_reg is set.
  13048. 2018-01-31 Pedro Alves <palves@redhat.com>
  13049. * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
  13050. * inflow.c (child_terminal_save_inferior): Wrap reference to
  13051. tcgetpgrp in HAVE_TERMIOS_H.
  13052. (child_interrupt, child_pass_ctrlc): Wrap references to signal in
  13053. _WIN32.
  13054. * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
  13055. always iterate over all inferiors.
  13056. (gdbsim_cntrl_c): Adjust.
  13057. * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
  13058. 2018-01-31 Joel Brobecker <brobecker@adacore.com>
  13059. * gdbtypes.c (lookup_array_range_type): Make sure the array's
  13060. index type is objfile-owned if the element type is as well.
  13061. 2018-01-31 Joel Brobecker <brobecker@adacore.com>
  13062. GDB 8.1 released.
  13063. 2018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com>
  13064. * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
  13065. "features/s390x-linux64.c".
  13066. (_initialize_s390_linux_tdep): Remove initialization of tdescs
  13067. s390_linux32 and s390x_linux64.
  13068. (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
  13069. default tdesc.
  13070. * s390-tdep.c: Include "features/s390-linux32.c" and
  13071. "features/s390x-linux64.c".
  13072. (s390_tdesc_valid): Add check for tdesc_has_registers.
  13073. (s390_gdbarch_init): Make sure there is always a valid tdesc.
  13074. (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
  13075. tdesc_s390x_linux64.
  13076. * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
  13077. tdesc_s390x_linux64 to...
  13078. * s390-tdep.h: ...here.
  13079. 2018-01-30 Pedro Alves <palves@redhat.com>
  13080. PR gdb/13211
  13081. * config.in, configure: Regenerate.
  13082. * configure.ac: Check for getpgid.
  13083. * go32-nat.c (go32_pass_ctrlc): New.
  13084. (go32_target): Install it.
  13085. * inf-child.c (inf_child_target): Install
  13086. child_terminal_save_inferior, child_pass_ctrlc and
  13087. child_interrupt.
  13088. * inf-ptrace.c (inf_ptrace_interrupt): Delete.
  13089. (inf_ptrace_target): No longer install it.
  13090. * infcmd.c (interrupt_target_1): Adjust.
  13091. * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
  13092. (child_interrupt): Declare.
  13093. (inferior::terminal_state): New.
  13094. * inflow.c (struct terminal_info): Update comments.
  13095. (inferior_process_group): Delete.
  13096. (terminal_is_ours): Delete.
  13097. (gdb_tty_state): New.
  13098. (child_terminal_init): Adjust.
  13099. (is_gdb_terminal, sharing_input_terminal_1)
  13100. (sharing_input_terminal): New functions.
  13101. (child_terminal_inferior): Adjust. Use sharing_input_terminal.
  13102. Set the process's actual process group in the foreground if
  13103. possible. Handle is_ours_for_output/is_ours distinction. Don't
  13104. mark terminal as the inferior's if not sharing GDB's terminal.
  13105. Don't check attach_flag.
  13106. (child_terminal_ours_for_output, child_terminal_ours): Adjust to
  13107. pass down a target_terminal_state.
  13108. (child_terminal_save_inferior): New, factored out from ...
  13109. (child_terminal_ours_1): ... this. Handle
  13110. target_terminal_state::is_ours_for_output.
  13111. (child_interrupt, child_pass_ctrlc): New.
  13112. (inflow_inferior_exit): Clear the inferior's terminal_state.
  13113. (copy_terminal_info): Copy the inferior's terminal state.
  13114. (_initialize_inflow): Remove reference to terminal_is_ours.
  13115. * inflow.h (inferior_process_group): Delete.
  13116. * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
  13117. * procfs.c (procfs_target): Don't install procfs_interrupt.
  13118. (procfs_interrupt): Delete.
  13119. * remote.c (remote_serial_quit_handler): Adjust.
  13120. (remote_interrupt): Remove ptid parameter. Adjust.
  13121. * target-delegates.c: Regenerate.
  13122. * target.c: Include "terminal.h".
  13123. (target_terminal::terminal_state): Rename to ...
  13124. (target_terminal::m_terminal_state): ... this.
  13125. (target_terminal::init): Adjust.
  13126. (target_terminal::inferior): Adjust to per-inferior
  13127. terminal_state.
  13128. (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
  13129. (target_terminal::ours, target_terminal::ours_for_output): Use
  13130. target_terminal_is_ours_kind.
  13131. (target_interrupt): Remove ptid parameter. Adjust.
  13132. (default_target_pass_ctrlc): Adjust.
  13133. * target.h (target_ops::to_terminal_save_inferior): New field.
  13134. (target_ops::to_interrupt): Remove ptid_t parameter.
  13135. (target_interrupt): Remove ptid_t parameter. Update comment.
  13136. (target_pass_ctrlc): Update comment.
  13137. * target/target.h (target_terminal_state): New scoped enum,
  13138. factored out of ...
  13139. (target_terminal::terminal_state): ... here.
  13140. (target_terminal::inferior): Update comments.
  13141. (target_terminal::restore_inferior): New.
  13142. (target_terminal::is_inferior, target_terminal::is_ours)
  13143. (target_terminal::is_ours_for_output): Adjust.
  13144. (target_terminal::scoped_restore_terminal_state): Adjust to
  13145. rename, and call restore_inferior() instead of inferior().
  13146. (target_terminal::scoped_restore_terminal_state::m_state): Change
  13147. type.
  13148. (target_terminal::terminal_state): Rename to ...
  13149. (target_terminal::m_terminal_state): ... this and change type.
  13150. 2018-01-30 Pedro Alves <palves@redhat.com>
  13151. * linux-nat.c (wait_for_signal): New function.
  13152. (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
  13153. directly.
  13154. (async_terminal_is_ours)
  13155. (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
  13156. (linux_nat_add_target): Don't override
  13157. to_terminal_inferior/to_terminal_ours.
  13158. 2018-01-29 Sergio Durigan Junior <sergiodj@redhat.com>
  13159. * remote.c (remote_follow_fork): Don't call "detach_inferior".
  13160. 2018-01-28 Simon Marchi <simon.marchi@ericsson.com>
  13161. * dwarf2read.c (free_dwo_files): Add forward-declaration.
  13162. (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
  13163. dwarf2_per_objfile_free here.
  13164. (dwarf2_per_objfile_free): Remove.
  13165. (_initialize_dwarf2_read): Don't register
  13166. dwarf2_per_objfile_free as a registry cleanup.
  13167. 2018-01-27 Eli Zaretskii <eliz@gnu.org>
  13168. Avoid compilation errors in MinGW native builds
  13169. The error is triggered by including python-internal.h, and the
  13170. error message is:
  13171. In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
  13172. from build-gnulib/import/math.h:27,
  13173. from d:/usr/Python26/include/pyport.h:235,
  13174. from d:/usr/Python26/include/Python.h:58,
  13175. from python/python-internal.h:94,
  13176. from python/py-arch.c:24:
  13177. d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
  13178. using ::hypot;
  13179. ^~~~~
  13180. This happens because Python headers define 'hypot' to expand t
  13181. '_hypot' in the Windows builds.
  13182. * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
  13183. 'hypoth'. This avoids a compilation error.
  13184. 2018-01-26 Alan Hayward <alan.hayward@arm.com>
  13185. * MAINTAINERS (Write After Approval): Fix ordering.
  13186. 2018-01-26 Alan Hayward <alan.hayward@arm.com>
  13187. * MAINTAINERS (Write After Approval): Add Alan Hayward.
  13188. 2018-01-26 Alan Modra <amodra@gmail.com>
  13189. * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
  13190. (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
  13191. Remove nop. Make const. Comment.
  13192. (powerpc32_plt_stub_so_2): New.
  13193. (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
  13194. Correct count. Update uses.
  13195. (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
  13196. Move common code reading PLT entry word. Correct
  13197. powerpc32_plt_stub PLT address calculation.
  13198. * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
  13199. (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
  13200. (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
  13201. (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
  13202. (ppc64_standard_linkage8): Likewise.
  13203. * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
  13204. Correct insns description.
  13205. * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
  13206. 2018-01-24 Pedro Alves <palves@redhat.com>
  13207. GCC PR libstdc++/83906
  13208. * gdbtypes.c (operator==(const dynamic_prop &,
  13209. const dynamic_prop &)): New.
  13210. (operator==(const range_bounds &, const range_bounds &)): New.
  13211. (check_types_equal): Use them instead of memcmp.
  13212. * gdbtypes.h (operator==(const dynamic_prop &,
  13213. const dynamic_prop &)): Declare.
  13214. (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
  13215. (operator==(const range_bounds &, const range_bounds &)): Declare.
  13216. (operator!=(const range_bounds &, const range_bounds &)): Declare.
  13217. 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
  13218. * s390-linux-tdep.c (s390_record_address_mask)
  13219. (s390_record_calc_disp_common, s390_record_calc_disp)
  13220. (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
  13221. (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
  13222. (s390_process_record): Move to s390-tdep.c.
  13223. (s390_linux_init_abi_any): Adjust.
  13224. * s390-tdep.c (s390_record_address_mask)
  13225. (s390_record_calc_disp_common, s390_record_calc_disp)
  13226. (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
  13227. (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
  13228. (s390_process_record): Moved from s390-linux-tdep.c
  13229. (s390_gdbarch_init): Adjust.
  13230. 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
  13231. * s390-linux-nat.c (s390-tdep.h): New include.
  13232. * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
  13233. (HFILES_NO_SRCDIR): Add s390-tdep.h.
  13234. (ALLDEPFILES): Add s390-tdep.c.
  13235. * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
  13236. * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
  13237. * s390-tdep.h: ...this. New file.
  13238. * s390-linux-tdep.c (s390-tdep.h): New include.
  13239. (_initialize_s390_tdep): Rename to...
  13240. (_initialize_s390_linux_tdep): ...this and adjust.
  13241. (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
  13242. (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
  13243. s390-tdep.h.
  13244. (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
  13245. (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
  13246. (s390_is_partial_instruction, s390_software_single_step)
  13247. (is_non_branch_ril, s390_displaced_step_copy_insn)
  13248. (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
  13249. (s390_prologue_data, s390_addr, s390_store, s390_load)
  13250. (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
  13251. (s390_register_call_saved, s390_guess_tracepoint_registers)
  13252. (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
  13253. (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
  13254. (s390_pseudo_register_name, s390_pseudo_register_type)
  13255. (s390_pseudo_register_read, s390_pseudo_register_write)
  13256. (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
  13257. (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
  13258. (s390_addr_bits_remove, s390_address_class_type_flags)
  13259. (s390_address_class_type_flags_to_name)
  13260. (s390_address_class_name_to_type_flags, s390_effective_inner_type)
  13261. (s390_function_arg_float, s390_function_arg_vector)
  13262. (is_power_of_two, s390_function_arg_integer, s390_arg_state)
  13263. (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
  13264. (s390_frame_align, s390_register_return_value, s390_return_value)
  13265. (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
  13266. (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
  13267. (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
  13268. (s390_trad_frame_prev_register, s390_unwind_cache)
  13269. (s390_prologue_frame_unwind_cache)
  13270. (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
  13271. (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
  13272. (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
  13273. (s390_stub_frame_this_id, s390_stub_frame_prev_register)
  13274. (s390_stub_frame_sniffer, s390_stub_frame_unwind)
  13275. (s390_frame_base_address, s390_local_base_address)
  13276. (s390_frame_base, s390_gcc_target_options)
  13277. (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
  13278. (s390_validate_reg_range, s390_tdesc_valid)
  13279. (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
  13280. * s390-tdep.c: ...this. New file.
  13281. 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
  13282. * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
  13283. (s390_process_record, s390_gdbarch_tdep_alloc)
  13284. (s390_linux_init_abi_any): Use/set new hook.
  13285. 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
  13286. * s390-linux-tdep.c (osabi.h): New include.
  13287. (s390_linux_init_abi_31, s390_linux_init_abi_64)
  13288. (s390_linux_init_abi_any): New functions.
  13289. (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
  13290. 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
  13291. * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
  13292. tdesc_has_registers check
  13293. 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
  13294. * s390-linux-tdep.c (s390_tdesc_valid): New function.
  13295. (s390_validate_reg_range): New macro.
  13296. (s390_gdbarch_init): Adjust.
  13297. 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
  13298. * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
  13299. (s390_gdbarch_tdep_alloc): Adjust.
  13300. (s390_gdbarch_init): Adjust.
  13301. 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
  13302. * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
  13303. <have_tdb>: Change type to bool.
  13304. (s390_gdbarch_tdep_alloc): Adjust.
  13305. (s390_gdbarch_init): Adjust.
  13306. 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
  13307. * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
  13308. (gdbarch_tdep) <have_upper, have_vx>: New fields.
  13309. (s390_gdbarch_tdep_alloc): New function.
  13310. (s390_gdbarch_init): Allocate tdep at start and use its fields
  13311. instead of separate variables.
  13312. 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
  13313. * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
  13314. when looking for cached gdbarch and add comment for remaining.
  13315. 2018-01-22 Pedro Alves <palves@redhat.com>
  13316. Sergio Durigan Junior <sergiodj@redhat.com>
  13317. * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
  13318. case.
  13319. 2018-01-22 Maciej W. Rozycki <macro@mips.com>
  13320. * MAINTAINERS: Update my company e-mail address.
  13321. 2018-01-22 Yao Qi <yao.qi@linaro.org>
  13322. * regcache.c (cooked_write_test): New function.
  13323. (_initialize_regcache): Register the test.
  13324. 2018-01-22 Yao Qi <yao.qi@linaro.org>
  13325. * ia64-tdep.c (ia64_pseudo_register_read): Call
  13326. regcache->cooked_read instead of regcache_cooked_read_unsigned.
  13327. * m32c-tdep.c (m32c_cat_read): Likewise.
  13328. (m32c_r3r2r1r0_read): Likewise.
  13329. * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
  13330. * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
  13331. 2018-01-22 Yao Qi <yao.qi@linaro.org>
  13332. * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
  13333. method raw_read instead of regcache_raw_read.
  13334. * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
  13335. * arm-tdep.c (arm_neon_quad_read): Likewise.
  13336. * avr-tdep.c (avr_pseudo_register_read): Likewise.
  13337. * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
  13338. * frv-tdep.c (frv_pseudo_register_read): Likewise.
  13339. * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
  13340. * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
  13341. (i386_pseudo_register_read_into_value): Likewise.
  13342. * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
  13343. * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
  13344. * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
  13345. * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
  13346. * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
  13347. * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
  13348. * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
  13349. * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
  13350. * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
  13351. 2018-01-22 Yao Qi <yao.qi@linaro.org>
  13352. * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
  13353. * configure.tgt: Remove target mt.
  13354. * mt-tdep.c: Remove.
  13355. * regcache.c (cooked_read_test): Remove the check for mt.
  13356. 2018-01-22 Yao Qi <yao.qi@linaro.org>
  13357. * jit.c (jit_frame_prev_register): Call regcache::cooked_read
  13358. instead of gdbarch_pseudo_register_read_value.
  13359. 2018-01-22 Joel Brobecker <brobecker@adacore.com>
  13360. * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
  13361. language is Ada.
  13362. 2018-01-22 Joel Brobecker <brobecker@adacore.com>
  13363. * linespec.c (create_sals_line_offset): Remove code that preserved
  13364. the symtab_and_line's line number.
  13365. 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
  13366. * varobj.c (varobj_create): Don't set valid_block when creating a
  13367. floating varobj.
  13368. 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
  13369. * varobj.c (varobj_create): Remove out of date comment.
  13370. 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
  13371. PR mi/20395
  13372. * ada-exp.y (write_var_from_sym): Pass extra parameter when
  13373. updating innermost block.
  13374. * parse.c (innermost_block_tracker::update): Take extra type
  13375. parameter, and check types match before updating innermost block.
  13376. (write_dollar_variable): Update innermost block for registers.
  13377. * parser-defs.h (enum innermost_block_tracker_type): New enum.
  13378. (innermost_block_tracker::innermost_block_tracker): Initialise
  13379. m_types member.
  13380. (innermost_block_tracker::reset): Take type parameter.
  13381. (innermost_block_tracker::update): Take type parameter, and pass
  13382. type through as needed.
  13383. (innermost_block_tracker::m_types): New member.
  13384. * varobj.c (varobj_create): Pass type when reseting innermost
  13385. block.
  13386. 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
  13387. * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
  13388. * ada-lang.c (resolve_subexp): Likewise.
  13389. * breakpoint.c (set_breakpoint_condition) Likewise.
  13390. (watch_command_1) Likewise.
  13391. * c-exp.y (variable): Likewise.
  13392. * d-exp.y (PrimaryExpression): Likewise.
  13393. * f-exp.y (variable): Likewise.
  13394. * go-exp.y (variable): Likewise.
  13395. * m2-exp.y (variable): Likewise.
  13396. * objfiles.c (objfile::~objfile): Likewise.
  13397. * p-exp.y (variable): Likewise.
  13398. * parse.c (innermost_block): Change type.
  13399. * parser-defs.h (class innermost_block_tracker): New.
  13400. (innermost_block): Change to innermost_block_tracker.
  13401. * printcmd.c (display_command): Switch to innermost_block API.
  13402. (do_one_display): Likewise.
  13403. * rust-exp.y (do_one_display): Likewise.
  13404. * symfile.c (clear_symtab_users): Likewise.
  13405. * varobj.c (varobj_create): Switch to innermost_block API, replace
  13406. use of innermost_block with block stored on varobj object.
  13407. 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
  13408. * expression.h (innermost_block): Remove declaration.
  13409. * varobj.c: Add 'parser-defs.h' include.
  13410. 2018-01-19 Tom Tromey <tom@tromey.com>
  13411. * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
  13412. symbols in the static and global blocks.
  13413. 2018-01-19 James Clarke <jrtc27@jrtc27.com>
  13414. * nat/linux-ptrace.c: Remove unnecessary reinclusion of
  13415. gdb_ptrace.h, and move including gdb_wait.h ...
  13416. * nat/linux-ptrace.h: ... to here.
  13417. 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
  13418. * inf-ptrace.c (inf_ptrace_detach): Adjust call to
  13419. inf_ptrace_detach_success.
  13420. (inf_ptrace_detach_success): Add inferior parameter, use it
  13421. instead of inferior_ptid, pass it to detach_inferior.
  13422. * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
  13423. parameter.
  13424. * inferior.c (detach_inferior): Add overload that takes an
  13425. inferior object.
  13426. * inferior.h (detach_inferior): Likewise.
  13427. * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
  13428. use inferior_ptid, adjust call to inf_ptrace_detach_success.
  13429. * linux-thread-db.c (thread_db_detach): Use inf parameter.
  13430. 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
  13431. * target.h (struct target_ops) <to_detach>: Add inferior
  13432. parameter.
  13433. (target_detach): Likewise.
  13434. * target.c (dispose_inferior): Pass inferior down.
  13435. (target_detach): Pass inferior down. Assert that it is equal to
  13436. the current inferior.
  13437. * aix-thread.c (aix_thread_detach): Pass inferior down.
  13438. * corefile.c (core_file_command): Pass current_inferior() down.
  13439. * corelow.c (core_detach): Add inferior parameter.
  13440. * darwin-nat.c (darwin_detach): Likewise.
  13441. * gnu-nat.c (gnu_detach): Likewise.
  13442. * inf-ptrace.c (inf_ptrace_detach): Likewise.
  13443. * infcmd.c (detach_command): Pass current_inferior() down to
  13444. target_detach.
  13445. * infrun.c (follow_fork_inferior): Pass parent_inf to
  13446. target_detach.
  13447. (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
  13448. target_detach.
  13449. * linux-nat.c (linux_nat_detach): Add inferior parameter.
  13450. * linux-thread-db.c (thread_db_detach): Likewise.
  13451. * nto-procfs.c (procfs_detach): Likewise.
  13452. * procfs.c (procfs_detach): Likewise.
  13453. * record.c (record_detach): Likewise.
  13454. * record.h (struct inferior): Forward-declare.
  13455. (record_detach): Add inferior parameter.
  13456. * remote-sim.c (gdbsim_detach): Likewise.
  13457. * remote.c (remote_detach_1): Likewise.
  13458. (remote_detach): Likewise.
  13459. (extended_remote_detach): Likewise.
  13460. * sol-thread.c (sol_thread_detach): Likewise.
  13461. * target-debug.h (target_debug_print_inferior_p): New macro.
  13462. * target-delegates.c: Re-generate.
  13463. * top.c (kill_or_detach): Pass inferior down to target_detach.
  13464. * windows-nat.c (windows_detach): Add inferior parameter.
  13465. 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
  13466. * target.h (struct target_ops) <to_detach>: Remove args
  13467. parameter.
  13468. (target_detach): Likewise.
  13469. * target.c (dispose_inferior): Adjust.
  13470. (target_detach): Remove args parameter, adjust.
  13471. * aix-thread.c (aix_thread_detach): Adjust.
  13472. * corefile.c (core_file_command): Adjust.
  13473. * corelow.c (core_detach): Adjust.
  13474. * darwin-nat.c (darwin_detach): Adjust.
  13475. * gnu-nat.c (gnu_detach): Adjust.
  13476. * inf-ptrace.c (inf_ptrace_detach): Adjust.
  13477. * infcmd.c (detach_command): Adjust
  13478. * infrun.c (follow_fork_inferior): Adjust.
  13479. (handle_vfork_child_exec_or_exit): Adjust.
  13480. * linux-fork.c (linux_fork_detach): Remove args parameter.
  13481. * linux-fork.h (linux_fork_detach): Likewise.
  13482. * linux-nat.c (linux_nat_detach): Likewise, and adjust.
  13483. * linux-thread-db.c (thread_db_detach): Likewise.
  13484. * nto-procfs.c (procfs_detach): Likewise.
  13485. * procfs.c (procfs_detach): Likewise.
  13486. (do_detach): Remove signo parameter.
  13487. * record.c (record_detach): Remove args parameter.
  13488. * record.h (record_detach): Likewise.
  13489. * remote-sim.c (gdbsim_detach): Likewise.
  13490. * remote.c (remote_detach_1): Likewise.
  13491. (remote_detach): Likewise.
  13492. (extended_remote_detach): Likewise.
  13493. * sol-thread.c (sol_thread_detach): Likewise.
  13494. * target-delegates.c: Re-generate.
  13495. * top.c (struct qt_args) <args>: Remove field.
  13496. (kill_or_detach): Don't pass args.
  13497. (quit_force): Don't set args.
  13498. * windows-nat.c (windows_detach): Remove args parameter.
  13499. 2018-01-19 Yao Qi <yao.qi@linaro.org>
  13500. * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
  13501. (arm_linux_init_abi): Install it.
  13502. 2018-01-19 Yao Qi <yao.qi@linaro.org>
  13503. * osabi.c (gdb_osabi_names): Extend the regexp for
  13504. arm-linux-gnueabihf.
  13505. 2018-01-18 Yao Qi <yao.qi@linaro.org>
  13506. * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
  13507. m_abbrevs.
  13508. (abbrev_table::add_abbrev): Update.
  13509. (abbrev_table::lookup_abbrev): Update.
  13510. 2018-01-18 Yao Qi <yao.qi@linaro.org>
  13511. * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
  13512. 2018-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
  13513. * compile/compile.c (compile_to_object): Convert "triplet_rx"
  13514. to "std::string".
  13515. 2018-01-17 Tom Tromey <tom@tromey.com>
  13516. * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC.
  13517. 2018-01-17 Tom Tromey <tom@tromey.com>
  13518. * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
  13519. * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
  13520. (create_array_type_with_stride): Update.
  13521. * dwarf2read.c (set_die_type): Update.
  13522. 2018-01-17 Tom Tromey <tom@tromey.com>
  13523. * dwarf2read.c (delayed_method_info): Remove typedef.
  13524. (dwarf2_cu::method_info): Now a std::vector.
  13525. (add_to_method_list): Update.
  13526. (free_delayed_list): Remove.
  13527. (compute_delayed_physnames): Update.
  13528. (process_full_comp_unit, process_full_type_unit): Clear the method
  13529. list. Remove cleanups.
  13530. (psymtab_include_file_name): Add name_holder parameter. Use
  13531. unique_xmalloc_ptr.
  13532. (dwarf_decode_lines): Update.
  13533. 2018-01-17 Tom Tromey <tom@tromey.com>
  13534. Simon Marchi <simon.marchi@ericsson.com>
  13535. * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
  13536. (dwarf2_per_objfile::free_cached_comp_units)
  13537. (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
  13538. (init_cutu_and_read_dies_no_follow): Update.
  13539. (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
  13540. (dwarf2_cu::~dwarf2_cu): New.
  13541. (free_heap_comp_unit, free_stack_comp_unit): Remove.
  13542. (age_cached_comp_units, free_one_cached_comp_unit): Update.
  13543. 2018-01-17 Tom Tromey <tom@tromey.com>
  13544. Simon Marchi <simon.marchi@ericsson.com>
  13545. * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
  13546. (struct die_reader_specs) <abbrev_table>: New member.
  13547. (struct abbrev_table): Add constructor.
  13548. <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
  13549. <abbrev_obstack>: Now an auto_obstack.
  13550. (abbrev_table_up): New typedef.
  13551. (init_cu_die_reader): Add abbrev_table parameter.
  13552. (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
  13553. Add result_dwo_abbrev_table.
  13554. (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
  13555. (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
  13556. Update.
  13557. (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
  13558. parameter.
  13559. (skip_children): Update.
  13560. (abbrev_table::alloc_abbrev): Rename from
  13561. abbrev_table_alloc_abbrev.
  13562. (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
  13563. (abbrev_table::lookup_abbrev): Rename from
  13564. abbrev_table_lookup_abbrev.
  13565. (abbrev_table_read_table): Return abbrev_table_up.
  13566. (abbrev_table_free, abbrev_table_free_cleanup)
  13567. (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
  13568. (load_partial_dies): Update.
  13569. 2018-01-17 Tom Tromey <tom@tromey.com>
  13570. * dwarf2read.c (dwarf2_compute_name): Update comment.
  13571. (read_func_scope, read_variable): Update.
  13572. (new_symbol): Remove.
  13573. (new_symbol_full): Rename to new_symbol.
  13574. 2018-01-17 Mike Gulick <mgulick@mathworks.com>
  13575. PR gdb/16577
  13576. * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
  13577. a warning instead of throwing an error, set section size to 0 and return
  13578. NULL.
  13579. * gdb_bfd.h (gdb_bfd_map_section): Update description.
  13580. 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
  13581. * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
  13582. std::string.
  13583. (linux_ptrace_attach_fail_reason_string): Likewise.
  13584. * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
  13585. Likewise.
  13586. (linux_ptrace_attach_fail_reason_string): Likewise.
  13587. * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
  13588. 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
  13589. * linux-nat.c (linux_nat_attach): Remove xstrdup.
  13590. 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
  13591. PR gdb/21559
  13592. * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
  13593. checking for fs_base/gs_base fields in struct user_regs_struct.
  13594. * configure: Regenerate.
  13595. 2018-01-17 Yao Qi <yao.qi@linaro.org>
  13596. * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
  13597. function.
  13598. (aarch64_linux_init_abi): Install it to gdbarch hook
  13599. gcc_target_options.
  13600. 2018-01-15 Pedro Alves <palves@redhat.com>
  13601. * common/signals-state-save-restore.c
  13602. (save_original_signals_state): Fix typos.
  13603. 2017-01-12 Tom Tromey <tom@tromey.com>
  13604. Sergio Durigan Junior <sergiodj@redhat.com>
  13605. * Makefile.in (install-only): Install gdb-add-index.
  13606. 2018-01-12 John Baldwin <jhb@FreeBSD.org>
  13607. * fbsd-tdep.c (KVE_PROTECTION): Correct value.
  13608. 2018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
  13609. * infrun.c (keep_going_pass_signal): Clear step-over info when
  13610. insert_breakpoints fails.
  13611. 2018-01-11 Pedro Alves <palves@redhat.com>
  13612. PR gdb/22583
  13613. * infrun.c (resume): Rename to ...
  13614. (resume_1): ... this.
  13615. (resume): Reimplement as wrapper around resume_1.
  13616. 2018-01-11 Pedro Alves <palves@redhat.com>
  13617. PR remote/22597
  13618. * remote.c (remote_parse_stop_reply): Default to the last-set
  13619. general thread instead of to 'magic_null_ptid'.
  13620. 2018-01-10 Pedro Alves <palves@redhat.com>
  13621. * language.h (language_get_symbol_name_matcher): Rename ...
  13622. (get_symbol_name_matcher): ... this.
  13623. * language.c (language_get_symbol_name_matcher): Ditto.
  13624. * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
  13625. callers adjusted.
  13626. 2018-01-10 Pedro Alves <palves@redhat.com>
  13627. PR gdb/22670
  13628. * dwarf2read.c
  13629. (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
  13630. Adjust to use language_get_symbol_name_matcher instead of
  13631. language_defn::la_get_symbol_name_matcher.
  13632. * language.c (language_get_symbol_name_matcher): If in Ada mode
  13633. and the lookup name is a verbatim match, return Ada's matcher.
  13634. * language.h (language_get_symbol_name_matcher): Adjust comment.
  13635. (ada_lookup_name_info::verbatim_p):: New method.
  13636. 2018-01-10 Pedro Alves <palves@redhat.com>
  13637. PR gdb/22670
  13638. * ada-lang.c (ada_collect_symbol_completion_matches): If the
  13639. minsym's language is language_auto or language_cplus, pass down
  13640. language_ada instead.
  13641. * symtab.c (compare_symbol_name): Don't frob symbol language here.
  13642. 2018-01-10 Pedro Alves <palves@redhat.com>
  13643. PR gdb/22670
  13644. * minsyms.c (linkage_name_str): New function.
  13645. (iterate_over_minimal_symbols): Use it.
  13646. 2018-01-09 John Baldwin <jhb@FreeBSD.org>
  13647. * NEWS: Document that 'info proc' now works on FreeBSD.
  13648. 2018-01-09 John Baldwin <jhb@FreeBSD.org>
  13649. * configure.ac: Check for kinfo_getfile in libutil.
  13650. * configure: Regenerate.
  13651. * config.in: Regenerate.
  13652. * fbsd-nat.c: Include "fbsd-tdep.h".
  13653. (fbsd_fetch_cmdline): New.
  13654. (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
  13655. rather than calling error.
  13656. (fbsd_info_proc): New.
  13657. (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
  13658. (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
  13659. (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
  13660. 2018-01-09 John Baldwin <jhb@FreeBSD.org>
  13661. * fbsd-nat.c (struct free_deleter): Remove.
  13662. (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
  13663. 2018-01-09 John Baldwin <jhb@FreeBSD.org>
  13664. * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
  13665. NULL for an empty pathname.
  13666. 2018-01-09 John Baldwin <jhb@FreeBSD.org>
  13667. * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
  13668. (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
  13669. (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
  13670. (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
  13671. (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
  13672. (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
  13673. (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
  13674. (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
  13675. (kinfo_proc_layout_32, kinfo_proc_layout_i386)
  13676. (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
  13677. (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
  13678. (fbsd_core_fetch_timeval, fbsd_print_sigset)
  13679. (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
  13680. (fbsd_init_abi): Install gdbarch "core_info_proc" method.
  13681. * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
  13682. 2018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
  13683. * gnu-nat.c: Include <elf.h> and <link.h>.
  13684. (gnu_xfer_auxv): New function.
  13685. (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
  13686. TARGET_OBJECT_AUXV.
  13687. 2018-01-08 Yao Qi <yao.qi@linaro.org>
  13688. Simon Marchi <simon.marchi@ericsson.com>
  13689. * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
  13690. common/selftest.c.
  13691. (COMMON_OBS): Remove selftest.o.
  13692. * configure.ac: Append selftest-arch.c and common/selftest.c to
  13693. CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS.
  13694. * configure: Re-generated.
  13695. * maint.c (maintenance_selftest): Wrap selftests::run_tests with
  13696. GDB_SELF_TEST.
  13697. (maintenance_info_selftests): Likewise.
  13698. 2018-01-08 Xavier Roirand <roirand@adacore.com>
  13699. * ada-valprint.c (val_print_packed_array_elements): Use
  13700. proper number of elements when printing an array indexed
  13701. by an enumeration type.
  13702. 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
  13703. * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
  13704. (dw2_get_file_names_reader): Adjust.
  13705. (lookup_dwo_signatured_type): Adjust.
  13706. (lookup_dwp_signatured_type): Adjust.
  13707. (lookup_signatured_type): Adjust.
  13708. (create_type_unit_group): Adjust.
  13709. (get_type_unit_group): Adjust.
  13710. (process_psymtab_comp_unit_reader): Adjust.
  13711. (build_type_psymtabs_reader): Adjust.
  13712. (scan_partial_symbols): Adjust.
  13713. (add_partial_symbol): Adjust.
  13714. (add_partial_subprogram): Adjust.
  13715. (peek_die_abbrev): Adjust.
  13716. (fixup_go_packaging): Adjust.
  13717. (process_imported_unit_die): Adjust.
  13718. (dwarf2_compute_name): Adjust.
  13719. (dwarf2_physname): Adjust.
  13720. (read_import_statement): Adjust.
  13721. (handle_DW_AT_stmt_list): Adjust.
  13722. (read_file_scope): Adjust.
  13723. (read_func_scope): Adjust.
  13724. (read_lexical_block_scope): Adjust.
  13725. (read_call_site_scope): Adjust.
  13726. (read_variable): Adjust.
  13727. (dwarf2_rnglists_process): Adjust.
  13728. (dwarf2_ranges_process): Adjust.
  13729. (dwarf2_ranges_read): Adjust.
  13730. (dwarf2_get_pc_bounds): Adjust.
  13731. (dwarf2_record_block_ranges): Adjust.
  13732. (dwarf2_add_field): Adjust.
  13733. (dwarf2_add_member_fn): Adjust.
  13734. (read_structure_type): Adjust.
  13735. (process_structure_scope): Adjust.
  13736. (read_enumeration_type): Adjust.
  13737. (read_array_type): Adjust.
  13738. (mark_common_block_symbol_computed): Adjust.
  13739. (read_common_block): Adjust.
  13740. (read_namespace_type): Adjust.
  13741. (read_namespace): Adjust.
  13742. (read_module_type): Adjust.
  13743. (read_tag_pointer_type): Adjust.
  13744. (read_tag_ptr_to_member_type): Adjust.
  13745. (read_tag_string_type): Adjust.
  13746. (read_subroutine_type): Adjust.
  13747. (read_typedef): Adjust.
  13748. (read_base_type): Adjust.
  13749. (attr_to_dynamic_prop): Adjust.
  13750. (read_subrange_type): Adjust.
  13751. (read_unspecified_type): Adjust.
  13752. (dwarf2_read_abbrevs): Adjust.
  13753. (load_partial_dies): Adjust.
  13754. (read_partial_die): Adjust.
  13755. (find_partial_die): Adjust.
  13756. (guess_partial_die_structure_name): Adjust.
  13757. (fixup_partial_die): Adjust.
  13758. (read_attribute_value): Adjust.
  13759. (read_addr_index): Adjust.
  13760. (read_addr_index_from_leb128): Adjust.
  13761. (read_str_index): Adjust.
  13762. (dwarf2_string_attr): Adjust.
  13763. (get_debug_line_section): Adjust.
  13764. (dwarf_decode_line_header): Adjust.
  13765. (lnp_state_machine::check_line_address): Adjust.
  13766. (dwarf_decode_lines_1): Adjust.
  13767. (dwarf_decode_lines): Adjust.
  13768. (dwarf2_start_symtab): Adjust.
  13769. (var_decode_location): Adjust.
  13770. (new_symbol_full): Adjust.
  13771. (dwarf2_const_value_data): Adjust.
  13772. (dwarf2_const_value_attr): Adjust.
  13773. (dwarf2_const_value): Adjust.
  13774. (die_type): Adjust.
  13775. (die_containing_type): Adjust.
  13776. (build_error_marker_type): Adjust.
  13777. (lookup_die_type): Adjust.
  13778. (guess_full_die_structure_name): Adjust.
  13779. (anonymous_struct_prefix): Adjust.
  13780. (determine_prefix): Adjust.
  13781. (dwarf2_name): Adjust.
  13782. (follow_die_ref_or_sig): Adjust.
  13783. (follow_die_offset): Adjust.
  13784. (follow_die_ref): Adjust.
  13785. (follow_die_sig_1): Adjust.
  13786. (follow_die_sig): Adjust.
  13787. (get_signatured_type): Adjust.
  13788. (get_DW_AT_signature_type): Adjust.
  13789. (decode_locdesc): Adjust.
  13790. (dwarf_decode_macros): Adjust.
  13791. (cu_debug_loc_section): Adjust.
  13792. (fill_in_loclist_baton): Adjust.
  13793. (dwarf2_symbol_mark_computed): Adjust.
  13794. (init_one_comp_unit): Don't assign
  13795. dwarf2_cu::dwarf2_per_objfile.
  13796. (set_die_type): Adjust.
  13797. 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
  13798. * dwarf2read.c (struct mapped_debug_names): Add constructor.
  13799. <dwarf2_per_objfile>: New field.
  13800. (dwarf2_per_objfile): Remove global.
  13801. (get_dwarf2_per_objfile): New function.
  13802. (set_dwarf2_per_objfile): New function.
  13803. (dwarf2_build_psymtabs_hard): Change objfile parameter to
  13804. dwarf2_per_objfile.
  13805. (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
  13806. (read_abbrev_offset): Likewise.
  13807. (read_indirect_string): Likewise.
  13808. (read_indirect_line_string): Likewise.
  13809. (read_indirect_string_at_offset): Likewise.
  13810. (read_indirect_string_from_dwz): Likewise.
  13811. (dwarf2_find_containing_comp_unit): Change objfile parameter to
  13812. dwarf2_per_objfile.
  13813. (age_cached_comp_units): Add dwarf2_per_objfile parameter.
  13814. (create_all_comp_units): Change objfile parameter to
  13815. dwarf2_per_objfile.
  13816. (create_all_type_units): Likewise.
  13817. (process_queue): Add dwarf2_per_objfile parameter.
  13818. (read_and_check_comp_unit_head): Likewise.
  13819. (lookup_dwo_unit_in_dwp): Likewise.
  13820. (get_dwp_file): Likewise.
  13821. (process_cu_includes): Likewise.
  13822. (struct free_dwo_file_cleanup_data): New struct.
  13823. (dwarf2_has_info): Use get_dwarf2_per_objfile and
  13824. set_dwarf2_per_objfile.
  13825. (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
  13826. (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
  13827. context, adjust calls.
  13828. (dw2_instantiate_symtab): Likewise.
  13829. (dw2_get_cutu): Add dwarf2_per_objfile parameter.
  13830. (dw2_get_cu): Likewise.
  13831. (create_cu_from_index_list): Change objfile parameter to
  13832. dwarf2_per_objfile.
  13833. (create_cus_from_index_list): Get dwarf2_per_objfile from
  13834. context, adjust calls.
  13835. (create_cus_from_index): Likewise.
  13836. (create_signatured_type_table_from_index): Change objfile
  13837. parameter to dwarf2_per_objfile.
  13838. (create_signatured_type_table_from_debug_names): Change objfile
  13839. parameter to dwarf2_per_objfile.
  13840. (create_addrmap_from_index): Likewise.
  13841. (create_addrmap_from_aranges): Likewise.
  13842. (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
  13843. (dw2_setup): Remove.
  13844. (dw2_get_file_names_reader): Get dwarf2_per_objfile from
  13845. context.
  13846. (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
  13847. get_dwarf2_per_objfile.
  13848. (dw2_forget_cached_source_info): Likewise.
  13849. (dw2_map_symtabs_matching_filename): Likewise.
  13850. (struct dw2_symtab_iterator) <index>: Remove.
  13851. <dwarf2_per_objfile>: New field.
  13852. (dw2_symtab_iter_init): Replace index parameter with
  13853. dwarf2_per_objfile.
  13854. (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
  13855. (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
  13856. (dw2_print_stats): Likewise.
  13857. (dw2_dump): Likewise.
  13858. (dw2_expand_symtabs_for_function): Likewise.
  13859. (dw2_expand_all_symtabs): Likewise.
  13860. (dw2_expand_symtabs_with_fullname): Likewise.
  13861. (dw2_expand_marked_cus): Replace index and objfile parameters
  13862. with dwarf2_per_objfile.
  13863. (dw_expand_symtabs_matching_file_matcher): Add
  13864. dwarf2_per_objfile parameter and adjust calls.
  13865. (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
  13866. adjust calls.
  13867. (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
  13868. (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
  13869. adjust calls.
  13870. (create_cus_from_debug_names_list): Replace objfile parameter
  13871. with dwarf2_per_objfile and adjust calls.
  13872. (create_cus_from_debug_names): Likewise.
  13873. (dwarf2_read_debug_names): Likewise.
  13874. (mapped_debug_names::namei_to_name): Adjust call.
  13875. (dw2_debug_names_iterator::next): Likewise.
  13876. (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
  13877. (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
  13878. (dw2_debug_names_dump): Likewise.
  13879. (dw2_debug_names_expand_symtabs_for_function): Likewise.
  13880. (dw2_debug_names_expand_symtabs_matching): Likewise.
  13881. (dwarf2_initialize_objfile): Likewise.
  13882. (dwarf2_build_psymtabs): Likewise.
  13883. (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
  13884. this_cu.
  13885. (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
  13886. (read_and_check_comp_unit_head): Likewise.
  13887. (read_abbrev_offset): Likewise.
  13888. (create_debug_type_hash_table): Likewise.
  13889. (create_debug_types_hash_table): Likewise.
  13890. (create_all_type_units): Replace objfile parameter with
  13891. dwarf2_per_objfile.
  13892. (add_type_unit): Add dwarf2_per_objfile parameter.
  13893. (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
  13894. with dwarf2_per_objfile.
  13895. (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
  13896. (lookup_dwp_signatured_type): Likewise.
  13897. (lookup_signatured_type): Likewise.
  13898. (read_cutu_die_from_dwo): Likewise.
  13899. (init_tu_and_read_dwo_dies): Likewise.
  13900. (init_cutu_and_read_dies): Likewise.
  13901. (init_cutu_and_read_dies_no_follow): Likewise.
  13902. (allocate_type_unit_groups_table): Add objfile parameter.
  13903. (create_type_unit_group): Use dwarf2_per_objfile from cu.
  13904. (get_type_unit_group): Likewise.
  13905. (process_psymtab_comp_unit): Update call.
  13906. (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
  13907. (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
  13908. (print_tu_stats): Likewise.
  13909. (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
  13910. in void* parameter.
  13911. (build_type_psymtabs): Change objfile parameter to
  13912. dwarf2_per_objfile.
  13913. (process_skeletonless_type_unit): Use dwarf2_per_objfile
  13914. passed in void* parameter.
  13915. (process_skeletonless_type_units): Change objfile parameter to
  13916. dwarf2_per_objfile.
  13917. (set_partial_user): Likewise.
  13918. (dwarf2_build_psymtabs_hard): Likewise.
  13919. (read_comp_units_from_section): Likewise.
  13920. (create_all_comp_units): Likewise.
  13921. (scan_partial_symbols): Update calls.
  13922. (add_partial_symbol): Likewise.
  13923. (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
  13924. (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
  13925. (process_queue): Add dwarf2_per_objfile parameter.
  13926. (get_compunit_symtab): Use dwarf2_per_objfile from cu.
  13927. (compute_compunit_symtab_includes): Likewise.
  13928. (process_cu_includes): Add dwarf2_per_objfile parameter.
  13929. (process_full_comp_unit): Use dwarf2_per_objfile from cu.
  13930. (process_full_type_unit): Likewise.
  13931. (process_imported_unit_die): Update call.
  13932. (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
  13933. (read_file_scope): Likewise.
  13934. (allocate_dwo_file_hash_table): Add objfile parameter.
  13935. (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
  13936. (create_cus_hash_table): Likewise.
  13937. (create_dwp_hash_table): Likewise.
  13938. (create_dwo_unit_in_dwp_v1): Likewise.
  13939. (create_dwp_v2_section): Likewise.
  13940. (create_dwo_unit_in_dwp_v2): Likewise.
  13941. (lookup_dwo_unit_in_dwp): Likewise.
  13942. (try_open_dwop_file): Likewise.
  13943. (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
  13944. (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
  13945. cleanup to include a reference to dwarf2_per_objfile.
  13946. (open_dwp_file): Add dwarf2_per_objfile parameter.
  13947. (open_and_init_dwp_file): Likewise.
  13948. (get_dwp_file): Likewise.
  13949. (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
  13950. (queue_and_load_all_dwo_tus): Update call.
  13951. (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
  13952. data.
  13953. (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
  13954. (dwarf2_ranges_process): Likewise.
  13955. (dwarf2_get_pc_bounds): Likewise.
  13956. (mark_common_block_symbol_computed): Likewise.
  13957. (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
  13958. (dwarf2_read_abbrevs): Update call.
  13959. (read_partial_die): Use dwarf2_per_objfile from cu.
  13960. (find_partial_die): Likewise.
  13961. (fixup_partial_die): Likewise.
  13962. (read_attribute_value): Likewise.
  13963. (read_indirect_string_at_offset_from): Add objfile parameter.
  13964. (read_indirect_string_at_offset): Add dwarf2_per_objfile
  13965. parameter.
  13966. (read_indirect_string_from_dwz): Add objfile parameter.
  13967. (read_indirect_string): Add objfile parameter.
  13968. (read_addr_index_1): Add dwarf2_per_objfile parameter.
  13969. (read_addr_index): Use dwarf2_per_objfile from cu.
  13970. (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
  13971. call dw2_setup.
  13972. (read_str_index): Use dwarf2_per_objfile from cu.
  13973. (get_debug_line_section): Likewise.
  13974. (read_formatted_entries): Add dwarf2_per_objfile parameter.
  13975. (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
  13976. (new_symbol_full): Use dwarf2_per_objfile from cu.
  13977. (build_error_marker_type): Likewise.
  13978. (lookup_die_type): Likewise.
  13979. (determine_prefix): Likewise.
  13980. (follow_die_offset): Likewise.
  13981. (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
  13982. (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
  13983. (dwarf2_fetch_die_type_sect_off): Likewise.
  13984. (dwarf2_get_die_type): Likewise.
  13985. (follow_die_sig_1): Use dwarf2_per_objfile from cu.
  13986. (get_signatured_type): Likewise.
  13987. (get_DW_AT_signature_type): Likewise.
  13988. (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
  13989. (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
  13990. (cu_debug_loc_section): Likewise.
  13991. (fill_in_loclist_baton): Likewise.
  13992. (dwarf2_symbol_mark_computed): Likewise.
  13993. (dwarf2_find_containing_comp_unit): Change objfile parameter to
  13994. dwarf2_per_objfile.
  13995. (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
  13996. parameter.
  13997. (age_cached_comp_units): Add dwarf2_per_objfile parameter.
  13998. (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
  13999. (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
  14000. (set_die_type): Use dwarf2_free_objfile from cu.
  14001. (get_die_type_at_offset): Likewise.
  14002. (dwarf2_per_objfile_free): Don't assign global variable.
  14003. (debug_names) <constructor>: Add dwarf2_per_objfile
  14004. parameter, update m_debugstrlookup construction.
  14005. (debug_names::debug_str_lookup): Add dwarf2_per_objfile
  14006. parameter.
  14007. <m_dwarf2_per_objfile>: New field.
  14008. <lookup>: Use m_dwarf2_per_objfile.
  14009. (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
  14010. (psyms_seen_size): Likewise.
  14011. (write_gdbindex): Replace objfile parameter with
  14012. dwarf2_per_objfile.
  14013. (write_debug_names): Likewise.
  14014. (write_psymtabs_to_index): Likewise.
  14015. (save_gdb_index_command): Use get_dwarf2_per_objfile, update
  14016. calls.
  14017. 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
  14018. * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
  14019. <dwarf2_per_objfile>: New field.
  14020. (struct dwarf2_per_cu_data) <objfile>: Remove.
  14021. <dwarf2_per_objfile>: New field.
  14022. (create_cu_from_index_list): Assign dwarf2_per_objfile instead
  14023. of objfile.
  14024. (create_signatured_type_table_from_index): Likewise.
  14025. (create_debug_type_hash_table): Likewise.
  14026. (fill_in_sig_entry_from_dwo_entry): Likewise.
  14027. (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
  14028. (create_type_unit_group): Assign dwarf2_per_objfile instead of
  14029. objfile.
  14030. (create_partial_symtab): Access objfile through
  14031. dwarf2_per_objfile.
  14032. (process_psymtab_comp_unit_reader): Likewise.
  14033. (read_comp_units_from_section): Likewise.
  14034. (scan_partial_symbols): Likewise.
  14035. (add_partial_symbol): Likewise.
  14036. (add_partial_subprogram): Likewise.
  14037. (peek_die_abbrev): Likewise.
  14038. (fixup_go_packaging): Likewise.
  14039. (process_full_comp_unit): Likewise.
  14040. (process_full_type_unit): Likewise.
  14041. (process_imported_unit_die): Likewise.
  14042. (dwarf2_compute_name): Likewise.
  14043. (dwarf2_physname): Likewise.
  14044. (read_import_statement): Likewise.
  14045. (create_cus_hash_table): Assign dwarf2_physname instead of
  14046. objfile.
  14047. (read_func_scope): Access objfile through dwarf2_per_objfile.
  14048. (read_lexical_block_scope): Likewise.
  14049. (read_call_site_scope): Likewise.
  14050. (read_variable): Likewise.
  14051. (dwarf2_rnglists_process): Likewise.
  14052. (dwarf2_ranges_process): Likewise.
  14053. (dwarf2_ranges_read): Likewise.
  14054. (dwarf2_record_block_ranges): Likewise.
  14055. (dwarf2_add_field): Likewise.
  14056. (dwarf2_add_member_fn): Likewise.
  14057. (read_structure_type): Likewise.
  14058. (process_structure_scope): Likewise.
  14059. (read_enumeration_type): Likewise.
  14060. (read_array_type): Likewise.
  14061. (read_common_block): Likewise.
  14062. (read_namespace_type): Likewise.
  14063. (read_namespace): Likewise.
  14064. (read_module_type): Likewise.
  14065. (read_tag_pointer_type): Likewise.
  14066. (read_tag_ptr_to_member_type): Likewise.
  14067. (read_tag_string_type): Likewise.
  14068. (read_subroutine_type): Likewise.
  14069. (read_typedef): Likewise.
  14070. (read_base_type): Likewise.
  14071. (attr_to_dynamic_prop): Likewise.
  14072. (read_subrange_type): Likewise.
  14073. (read_unspecified_type): Likewise.
  14074. (load_partial_dies): Likewise.
  14075. (read_partial_die): Likewise.
  14076. (find_partial_die): Likewise.
  14077. (guess_partial_die_structure_name): Likewise.
  14078. (fixup_partial_die): Likewise.
  14079. (read_attribute_value): Likewise.
  14080. (read_addr_index_from_leb128): Likewise.
  14081. (dwarf2_read_addr_index): Likewise.
  14082. (dwarf2_string_attr): Likewise.
  14083. (lnp_state_machine::check_line_address): Likewise.
  14084. (dwarf_decode_lines_1): Likewise.
  14085. (dwarf_decode_lines): Likewise.
  14086. (dwarf2_start_symtab): Likewise.
  14087. (var_decode_location): Likewise.
  14088. (new_symbol_full): Likewise.
  14089. (dwarf2_const_value_data): Likewise.
  14090. (dwarf2_const_value_attr): Likewise.
  14091. (dwarf2_const_value): Likewise.
  14092. (die_type): Likewise.
  14093. (die_containing_type): Likewise.
  14094. (lookup_die_type): Likewise.
  14095. (guess_full_die_structure_name): Likewise.
  14096. (anonymous_struct_prefix): Likewise.
  14097. (dwarf2_name): Likewise.
  14098. (follow_die_ref_or_sig): Likewise.
  14099. (follow_die_offset): Likewise.
  14100. (follow_die_ref): Likewise.
  14101. (dwarf2_fetch_die_loc_sect_off): Likewise.
  14102. (dwarf2_fetch_constant_bytes): Likewise.
  14103. (dwarf2_fetch_die_type_sect_off): Likewise.
  14104. (dwarf2_get_die_type): Likewise.
  14105. (follow_die_sig): Likewise.
  14106. (decode_locdesc): Likewise.
  14107. (dwarf2_per_cu_objfile): Likewise.
  14108. (dwarf2_per_cu_text_offset): Likewise.
  14109. (init_one_comp_unit): Assign dwarf2_per_objfile instead of
  14110. objfile.
  14111. (set_die_type): Access objfile through
  14112. dwarf2_per_objfile.
  14113. 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
  14114. * valprint.c (converted_character_d): Remove typedef.
  14115. (DEF_VEC_O (converted_character_d)): Remove.
  14116. (count_next_character): Use std::vector.
  14117. (print_converted_chars_to_obstack): Likewise.
  14118. (generic_printstr): Likewise.
  14119. 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
  14120. * xml-support.h (struct gdb_xml_value): Add constructor.
  14121. <value>: Change type to unique_xmalloc_ptr.
  14122. (gdb_xml_value_s): Remove typedef.
  14123. (DEF_VEC_O (gdb_xml_value_s)): Remove.
  14124. (gdb_xml_element_start_handler): Change parameter type to
  14125. std::vector.
  14126. (xml_find_attribute): Likewise.
  14127. * xml-support.c (xml_find_attribute): Change parameter type to
  14128. std::vector and adjust.
  14129. (gdb_xml_values_cleanup): Remove.
  14130. (gdb_xml_parser::start_element): Adjust to std::vector.
  14131. (xinclude_start_include): Change paraeter type to std::vector
  14132. and adjust.
  14133. * btrace.c (check_xml_btrace_version): Likewise.
  14134. (parse_xml_btrace_block): Likewise.
  14135. (parse_xml_btrace_pt_config_cpu): Likewise.
  14136. (parse_xml_btrace_pt): Likewise.
  14137. (parse_xml_btrace_conf_bts): Likewise.
  14138. (parse_xml_btrace_conf_pt): Likewise.
  14139. * memory-map.c (memory_map_start_memory): Likewise.
  14140. (memory_map_start_property): Likewise.
  14141. * osdata.c (osdata_start_osdata): Likewise.
  14142. (osdata_start_item): Likewise.
  14143. (osdata_start_column): Likewise.
  14144. * remote.c (start_thread): Likewise.
  14145. * solib-aix.c (library_list_start_library): Likewise.
  14146. (library_list_start_list): Likewise.
  14147. * solib-svr4.c (library_list_start_library): Likewise.
  14148. (svr4_library_list_start_list): Likewise.
  14149. * solib-target.c (library_list_start_segment): Likewise.
  14150. (library_list_start_section): Likewise.
  14151. (library_list_start_library): Likewise.
  14152. (library_list_start_list): Likewise.
  14153. * tracepoint.c (traceframe_info_start_memory): Likewise.
  14154. (traceframe_info_start_tvar): Likewise.
  14155. * xml-syscall.c (syscall_start_syscall): Likewise.
  14156. * xml-tdesc.c (tdesc_start_target): Likewise.
  14157. (tdesc_start_feature): Likewise.
  14158. (tdesc_start_reg): Likewise.
  14159. (tdesc_start_union): Likewise.
  14160. (tdesc_start_struct): Likewise.
  14161. (tdesc_start_flags): Likewise.
  14162. (tdesc_start_enum): Likewise.
  14163. (tdesc_start_field): Likewise.
  14164. (tdesc_start_enum_value): Likewise.
  14165. (tdesc_start_vector): Likewise.
  14166. 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
  14167. * extension.h (struct xmethod_worker) <clone>: Remove.
  14168. * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
  14169. Remove.
  14170. (python_xmethod_worker::clone): Remove.
  14171. * valops.c (find_overload_match): Use std::move instead of
  14172. clone.
  14173. 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
  14174. * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
  14175. (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
  14176. <free_xmethod_worker_data>: Remove.
  14177. <get_matching_xmethod_workers>: Chance VEC to std::vector.
  14178. <get_xmethod_arg_types>: Remove.
  14179. <get_xmethod_result_type>: Remove.
  14180. <invoke_xmethod>: Remove.
  14181. * extension.c (new_xmethod_worker): Remove.
  14182. (clone_xmethod_worker): Remove.
  14183. (get_matching_xmethod_workers): Return void, pass std::vector by
  14184. pointer.
  14185. (get_xmethod_arg_types): Rename to...
  14186. (xmethod_worker::get_arg_types): ... this, and adjust.
  14187. (get_xmethod_result_type): Rename to...
  14188. (xmethod_worker::get_result_type): ... this, and adjust.
  14189. (invoke_xmethod): Remove.
  14190. (free_xmethod_worker): Remove.
  14191. (free_xmethod_worker_vec): Remove.
  14192. * extension.h (enum ext_lang_rc): Move here from
  14193. extension-priv.h.
  14194. (struct xmethod_worker): Add constructor and destructor.
  14195. <data>: Remove.
  14196. <value>: Remove.
  14197. <invoke, clone, do_get_result_type, do_get_arg_types>: New
  14198. virtual pure methods.
  14199. <get_arg_types, get_result_type>: New methods.
  14200. (xmethod_worker_ptr): Remove typedef.
  14201. (DEF_VEC_P (xmethod_worker_ptr)): Remove.
  14202. (xmethod_worker_vec): Remove typedef.
  14203. (xmethod_worker_up): New typedef.
  14204. (invoke_xmethod): Remove.
  14205. (clone_xmethod_worker): Remove.
  14206. (free_xmethod_worker): Remove.
  14207. (free_xmethod_worker_vec): Remove.
  14208. (get_xmethod_arg_types): Remove.
  14209. (get_xmethod_result_type): Remove.
  14210. * valops.c (find_method_list): Use std::vector, don't use
  14211. intermediate vector.
  14212. (value_find_oload_method_list): Use std::vector.
  14213. (find_overload_match): Use std::vector.
  14214. (find_oload_champ): Use std::vector.
  14215. * value.c (value_free): Use operator delete.
  14216. (value_of_xmethod): Rename to...
  14217. (value_from_xmethod): ... this. Don't assign
  14218. xmethod_worker::value, take rvalue-reference.
  14219. (result_type_of_xmethod): Adjust.
  14220. (call_xmethod): Adjust.
  14221. * value.h: Include extension.h.
  14222. (struct xmethod_worker): Don't forward-declare.
  14223. (value_of_xmethod): Rename to...
  14224. (value_from_xmethod): ... this, take rvalue-reference.
  14225. * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
  14226. (struct python_xmethod_worker): ... this, add constructor and
  14227. destructor.
  14228. <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
  14229. (gdbpy_free_xmethod_worker_data): Rename to...
  14230. (python_xmethod_worker::~python_xmethod_worker): ... this and
  14231. adjust.
  14232. (gdbpy_clone_xmethod_worker_data): Rename to...
  14233. (python_xmethod_worker::clone): ... this and adjust.
  14234. (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
  14235. temporary vector.
  14236. (gdbpy_get_xmethod_arg_types): Rename to...
  14237. (python_xmethod_worker::do_get_arg_types): ... this and adjust.
  14238. (gdbpy_get_xmethod_result_type): Rename to...
  14239. (python_xmethod_worker::do_get_result_type): ... this and
  14240. adjust.
  14241. (gdbpy_invoke_xmethod): Rename to...
  14242. (python_xmethod_worker::invoke): ... this and adjust.
  14243. (new_python_xmethod_worker): Rename to...
  14244. (python_xmethod_worker::python_xmethod_worker): ... this and
  14245. adjust.
  14246. * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
  14247. Remove.
  14248. (gdbpy_free_xmethod_worker_data): Remove.
  14249. (gdbpy_get_matching_xmethod_workers): Use std::vector.
  14250. (gdbpy_get_xmethod_arg_types): Remove.
  14251. (gdbpy_get_xmethod_result_type): Remove.
  14252. (gdbpy_invoke_xmethod): Remove.
  14253. * python/python.c (python_extension_ops): Remove obsolete
  14254. callbacks.
  14255. 2018-01-05 Pedro Alves <palves@redhat.com>
  14256. PR gdb/18653
  14257. * common/signals-state-save-restore.c
  14258. (save_original_signals_state): New parameter 'quiet'. Warn if we
  14259. find a custom handler preinstalled, instead of internal erroring.
  14260. But only warn if !quiet.
  14261. * common/signals-state-save-restore.h
  14262. (save_original_signals_state): New parameter 'quiet'.
  14263. * main.c (captured_main_1): Move save_original_signals_state call
  14264. after option handling, and pass QUIET.
  14265. 2018-01-05 Pedro Alves <palves@redhat.com>
  14266. * spu-tdep.c (spu_catch_start): Pass
  14267. symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
  14268. 2018-01-05 Pedro Alves <palves@redhat.com>
  14269. PR gdb/22670
  14270. * ada-lang.c (literal_symbol_name_matcher): New function.
  14271. (ada_get_symbol_name_matcher): Use it for
  14272. symbol_name_match_type::SEARCH_NAME.
  14273. * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
  14274. it down instead of assuming symbol_name_match_type::FULL.
  14275. * block.h (block_lookup_symbol): New parameter 'match_type'.
  14276. * c-valprint.c (print_unpacked_pointer): Use
  14277. lookup_symbol_search_name instead of lookup_symbol.
  14278. * compile/compile-object-load.c (get_out_value_type): Pass down
  14279. symbol_name_match_type::SEARCH_NAME.
  14280. * cp-namespace.c (cp_basic_lookup_symbol): Pass down
  14281. symbol_name_match_type::FULL.
  14282. * cp-support.c (cp_get_symbol_name_matcher): Handle
  14283. symbol_name_match_type::SEARCH_NAME.
  14284. * infrun.c (insert_exception_resume_breakpoint): Use
  14285. lookup_symbol_search_name.
  14286. * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
  14287. * psymtab.c (maintenance_check_psymtabs): Use
  14288. symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
  14289. * stack.c (print_frame_args): Use lookup_symbol_search_name and
  14290. SYMBOL_SEARCH_NAME.
  14291. * symtab.c (lookup_local_symbol): Don't demangle the lookup name
  14292. if symbol_name_match_type::SEARCH_NAME.
  14293. (lookup_symbol_in_language): Pass down
  14294. symbol_name_match_type::FULL.
  14295. (lookup_symbol_search_name): New.
  14296. (lookup_language_this): Pass down
  14297. symbol_name_match_type::SEARCH_NAME.
  14298. (lookup_symbol_aux, lookup_local_symbol): New parameter
  14299. 'match_type'. Pass it down.
  14300. * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
  14301. (lookup_symbol_search_name): New declaration.
  14302. (lookup_symbol_in_block): New 'match_type' parameter.
  14303. 2018-01-05 Pedro Alves <palves@redhat.com>
  14304. PR gdb/22670
  14305. * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
  14306. ada_lookup_symbol.
  14307. (ada_lookup_symbol): Reimplement in terms of
  14308. ada_lookup_symbol_list, bits factored out from
  14309. ada_lookup_encoded_symbol.
  14310. 2018-01-05 Joel Brobecker <brobecker@adacore.com>
  14311. * ada-exp.y (write_object_renaming): When subscripting an array
  14312. using a symbol as the index, pass the block in call to
  14313. ada_lookup_encoded_symbol when looking that symbol up.
  14314. 2018-01-05 Jerome Guitton <guitton@adacore.com>
  14315. * ada-lang.c (ada_array_length): Use ada_index_type instead of
  14316. TYPE_INDEX_TYPE.
  14317. 2018-01-05 Joel Brobecker <brobecker@adacore.com>
  14318. * ada-lang.c (ada_to_fixed_value_create): Add handling of
  14319. the case where VALUE_LVAL (val0) is not lval_memory.
  14320. 2018-01-05 Xavier Roirand <roirand@adacore.com>
  14321. * ada-valprint.c (print_optional_low_bound): Handle
  14322. character-indexed array printing like boolean-indexed array
  14323. printing.
  14324. 2018-01-05 Joel Brobecker <brobecker@adacore.com>
  14325. * NEWS: Create a new section for the next release branch.
  14326. Rename the section of the current branch, now that it has
  14327. been cut.
  14328. 2018-01-05 Joel Brobecker <brobecker@adacore.com>
  14329. GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
  14330. * version.in: Bump version to 8.1.50.DATE-git.
  14331. 2018-01-03 Xavier Roirand <roirand@adacore.com>
  14332. * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
  14333. Add field.
  14334. * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
  14335. Add field.
  14336. (default_exception_support_info) <catch_handlers_sym>: Add field.
  14337. (exception_support_info_fallback) <catch_handlers_sym>: Add field.
  14338. (ada_exception_name_addr_1): Add "catch handlers" handling.
  14339. (ada_exception_catchpoint_cond_string) <ex>: New parameter.
  14340. Update all callers.
  14341. (create_excep_cond_exprs) <ex>: Add parameter.
  14342. (re_set_exception): Update create_excep_cond_exprs call.
  14343. (print_it_exception, print_one_exception, print_mention_exception)
  14344. (print_recreate_exception): Add "catch handler" handling.
  14345. (allocate_location_catch_handlers, re_set_catch_handlers)
  14346. (check_status_catch_handlers, print_it_catch_handlers)
  14347. (print_one_catch_handlers, print_mention_catch_handlers)
  14348. (print_recreate_catch_handlers): New function.
  14349. (catch_handlers_breakpoint_ops): New variable.
  14350. (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
  14351. Add parameter. Add "catch handler" handling.
  14352. (ada_exception_sym_name, ada_exception_breakpoint_ops):
  14353. Add "catch handler" handling.
  14354. (ada_exception_catchpoint_cond_string): Add "catch handler"
  14355. handling.
  14356. (create_ada_exception_catchpoint): Update create_excep_cond_exprs
  14357. call.
  14358. (catch_ada_handlers_command): New function.
  14359. (initialize_ada_catchpoint_ops): Initialize "catch handlers"
  14360. operations structure.
  14361. (_initialize_ada_language): Add "catch handlers" command entry.
  14362. * NEWS: Document "catch handlers" feature.
  14363. 2018-01-02 Joel Brobecker <brobecker@adacore.com>
  14364. * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
  14365. account when creating the array type of the slice.
  14366. (ada_value_slice): Likewise.
  14367. 2018-01-02 Joel Brobecker <brobecker@adacore.com>
  14368. * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
  14369. New enum value.
  14370. (create_array_type_with_stride): Add byte_stride_prop parameter.
  14371. * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
  14372. New parameter. Update all callers in this file.
  14373. (array_type_has_dynamic_stride): New function.
  14374. (is_dynamic_type_internal, resolve_dynamic_array): Add handling
  14375. of arrays with dynamic byte strides.
  14376. * dwarf2read.c (read_array_type): Add support for dynamic
  14377. DW_AT_byte_stride attributes.
  14378. 2018-01-02 Joel Brobecker <brobecker@adacore.com>
  14379. * dwarf2read.c (read_unspecified_type): Treat
  14380. DW_TAG_enumeration_type DIEs from Ada units as stubs.
  14381. 2018-01-01 Joel Brobecker <brobecker@adacore.com>
  14382. Update copyright year range in all GDB files.
  14383. 2018-01-01, 18 Joel Brobecker <brobecker@adacore.com>
  14384. * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
  14385. and gdb/testsuite/gdb.base/step-line.c.
  14386. 2018-01-01 Joel Brobecker <brobecker@adacore.com>
  14387. * copyright.py (main): Dump the contents of
  14388. MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
  14389. even if BY_HAND is empty.
  14390. 2018-01-01 Joel Brobecker <brobecker@adacore.com>
  14391. * top.c (print_gdb_version): Update Copyright year in version
  14392. message.
  14393. 2018-01-01 Joel Brobecker <brobecker@adacore.com>
  14394. * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
  14395. For older changes see ChangeLog-2017.
  14396. Local Variables:
  14397. mode: change-log
  14398. left-margin: 8
  14399. fill-column: 74
  14400. version-control: never
  14401. coding: utf-8
  14402. End: